auth0-python 5.7.0__py3-none-any.whl → 5.8.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- auth0/management/__init__.py +41 -4
- auth0/management/attack_protection/__init__.py +10 -1
- auth0/management/attack_protection/client.py +19 -0
- auth0/management/attack_protection/phone_provider_protection/__init__.py +4 -0
- auth0/management/attack_protection/phone_provider_protection/client.py +187 -0
- auth0/management/attack_protection/phone_provider_protection/raw_client.py +370 -0
- auth0/management/clients/client.py +30 -8
- auth0/management/clients/raw_client.py +72 -12
- auth0/management/connections/client.py +17 -0
- auth0/management/connections/raw_client.py +25 -0
- auth0/management/email_templates/client.py +8 -8
- auth0/management/email_templates/raw_client.py +8 -8
- auth0/management/keys/signing/raw_client.py +22 -0
- auth0/management/management_client.py +3 -1
- auth0/management/organizations/connections/raw_client.py +22 -0
- auth0/management/organizations/enabled_connections/raw_client.py +111 -0
- auth0/management/organizations/members/raw_client.py +23 -0
- auth0/management/organizations/members/roles/raw_client.py +23 -0
- auth0/management/organizations/raw_client.py +44 -0
- auth0/management/roles/permissions/raw_client.py +22 -0
- auth0/management/self_service_profiles/sso_ticket/raw_client.py +23 -0
- auth0/management/types/__init__.py +41 -3
- auth0/management/types/client.py +6 -0
- auth0/management/types/client_token_vault_privileged_access_with_credential_id.py +26 -0
- auth0/management/types/client_token_vault_privileged_access_with_public_key.py +26 -0
- auth0/management/types/connection_for_list.py +2 -0
- auth0/management/types/connection_response_content_oidc.py +2 -0
- auth0/management/types/connection_response_content_okta.py +2 -0
- auth0/management/types/create_client_response_content.py +6 -0
- auth0/management/types/create_connection_request_content_oidc.py +2 -0
- auth0/management/types/create_connection_request_content_okta.py +2 -0
- auth0/management/types/create_connection_response_content.py +2 -0
- auth0/management/types/create_user_response_content.py +26 -6
- auth0/management/types/cross_app_access_requesting_app.py +26 -0
- auth0/management/types/delete_user_identity_response_content_item.py +2 -1
- auth0/management/types/email_template_name_enum.py +1 -0
- auth0/management/types/fed_cm_login_google_patch.py +26 -0
- auth0/management/types/fed_cm_login_patch.py +24 -0
- auth0/management/types/get_client_response_content.py +6 -0
- auth0/management/types/get_connection_response_content.py +2 -0
- auth0/management/types/get_phone_provider_protection_response_content.py +20 -0
- auth0/management/types/get_user_response_content.py +26 -6
- auth0/management/types/native_social_login_apple_patch.py +26 -0
- auth0/management/types/native_social_login_facebook_patch.py +26 -0
- auth0/management/types/native_social_login_google_patch.py +26 -0
- auth0/management/types/native_social_login_patch.py +28 -0
- auth0/management/types/patch_phone_provider_protection_response_content.py +20 -0
- auth0/management/types/phone_provider_protection_backoff_strategy_enum.py +5 -0
- auth0/management/types/rotate_client_secret_response_content.py +6 -0
- auth0/management/types/token_vault_privileged_access_ip_allowlist_entry.py +3 -0
- auth0/management/types/update_client_response_content.py +6 -0
- auth0/management/types/update_connection_request_content_oidc.py +2 -0
- auth0/management/types/update_connection_request_content_okta.py +2 -0
- auth0/management/types/update_connection_response_content.py +2 -0
- auth0/management/types/update_user_response_content.py +26 -6
- auth0/management/types/user_identity_schema.py +2 -5
- auth0/management/types/user_response_schema.py +26 -6
- auth0/management/user_attribute_profiles/raw_client.py +22 -0
- auth0/management/users/connected_accounts/raw_client.py +23 -0
- auth0/management/users/identities/client.py +2 -0
- auth0/management/users/identities/raw_client.py +2 -0
- auth0/management/users/organizations/raw_client.py +23 -0
- auth0/management/users/permissions/raw_client.py +44 -0
- auth0/management/users/roles/raw_client.py +44 -0
- {auth0_python-5.7.0.dist-info → auth0_python-5.8.0.dist-info}/METADATA +1 -1
- {auth0_python-5.7.0.dist-info → auth0_python-5.8.0.dist-info}/RECORD +68 -53
- auth0/management/types/user_date_schema.py +0 -5
- {auth0_python-5.7.0.dist-info → auth0_python-5.8.0.dist-info}/WHEEL +0 -0
- {auth0_python-5.7.0.dist-info → auth0_python-5.8.0.dist-info}/licenses/LICENSE +0 -0
auth0/management/__init__.py
CHANGED
|
@@ -239,6 +239,8 @@ if typing.TYPE_CHECKING:
|
|
|
239
239
|
ClientTokenExchangeConfiguration,
|
|
240
240
|
ClientTokenExchangeConfigurationOrNull,
|
|
241
241
|
ClientTokenExchangeTypeEnum,
|
|
242
|
+
ClientTokenVaultPrivilegedAccessWithCredentialId,
|
|
243
|
+
ClientTokenVaultPrivilegedAccessWithPublicKey,
|
|
242
244
|
ConnectedAccount,
|
|
243
245
|
ConnectedAccountAccessTypeEnum,
|
|
244
246
|
ConnectionAccessTokenUrloAuth1,
|
|
@@ -1015,6 +1017,7 @@ if typing.TYPE_CHECKING:
|
|
|
1015
1017
|
CreatedUserAuthenticationMethodTypeEnum,
|
|
1016
1018
|
CredentialDeviceTypeEnum,
|
|
1017
1019
|
CredentialId,
|
|
1020
|
+
CrossAppAccessRequestingApp,
|
|
1018
1021
|
CspDirectives,
|
|
1019
1022
|
CspFlag,
|
|
1020
1023
|
CspFlags,
|
|
@@ -1480,6 +1483,8 @@ if typing.TYPE_CHECKING:
|
|
|
1480
1483
|
ExtensibilityEmailProviderCredentials,
|
|
1481
1484
|
FedCmLogin,
|
|
1482
1485
|
FedCmLoginGoogle,
|
|
1486
|
+
FedCmLoginGooglePatch,
|
|
1487
|
+
FedCmLoginPatch,
|
|
1483
1488
|
FederatedConnectionTokenSet,
|
|
1484
1489
|
FlowAction,
|
|
1485
1490
|
FlowActionActivecampaign,
|
|
@@ -2116,6 +2121,7 @@ if typing.TYPE_CHECKING:
|
|
|
2116
2121
|
GetOrganizationInvitationResponseContent,
|
|
2117
2122
|
GetOrganizationResponseContent,
|
|
2118
2123
|
GetPartialsResponseContent,
|
|
2124
|
+
GetPhoneProviderProtectionResponseContent,
|
|
2119
2125
|
GetPhoneTemplateResponseContent,
|
|
2120
2126
|
GetRateLimitPolicyResponseContent,
|
|
2121
2127
|
GetRefreshTokenResponseContent,
|
|
@@ -2299,8 +2305,12 @@ if typing.TYPE_CHECKING:
|
|
|
2299
2305
|
MfaPolicyEnum,
|
|
2300
2306
|
NativeSocialLogin,
|
|
2301
2307
|
NativeSocialLoginApple,
|
|
2308
|
+
NativeSocialLoginApplePatch,
|
|
2302
2309
|
NativeSocialLoginFacebook,
|
|
2310
|
+
NativeSocialLoginFacebookPatch,
|
|
2303
2311
|
NativeSocialLoginGoogle,
|
|
2312
|
+
NativeSocialLoginGooglePatch,
|
|
2313
|
+
NativeSocialLoginPatch,
|
|
2304
2314
|
NetworkAclAction,
|
|
2305
2315
|
NetworkAclActionAllowEnum,
|
|
2306
2316
|
NetworkAclActionBlockEnum,
|
|
@@ -2345,6 +2355,7 @@ if typing.TYPE_CHECKING:
|
|
|
2345
2355
|
PasswordMaxLengthExceededPolicyEnum,
|
|
2346
2356
|
PasswordSequentialCharactersPolicyEnum,
|
|
2347
2357
|
PatchClientCredentialResponseContent,
|
|
2358
|
+
PatchPhoneProviderProtectionResponseContent,
|
|
2348
2359
|
PatchRateLimitPolicyConfigurationRequestContent,
|
|
2349
2360
|
PatchRateLimitPolicyConfigurationRequestContentAction,
|
|
2350
2361
|
PatchRateLimitPolicyConfigurationRequestContentActionAction,
|
|
@@ -2361,6 +2372,7 @@ if typing.TYPE_CHECKING:
|
|
|
2361
2372
|
PhoneProviderCredentials,
|
|
2362
2373
|
PhoneProviderDeliveryMethodEnum,
|
|
2363
2374
|
PhoneProviderNameEnum,
|
|
2375
|
+
PhoneProviderProtectionBackoffStrategyEnum,
|
|
2364
2376
|
PhoneProviderSchemaMasked,
|
|
2365
2377
|
PhoneTemplate,
|
|
2366
2378
|
PhoneTemplateBody,
|
|
@@ -2539,6 +2551,7 @@ if typing.TYPE_CHECKING:
|
|
|
2539
2551
|
TokenQuota,
|
|
2540
2552
|
TokenQuotaClientCredentials,
|
|
2541
2553
|
TokenQuotaConfiguration,
|
|
2554
|
+
TokenVaultPrivilegedAccessIpAllowlistEntry,
|
|
2542
2555
|
TooManyRequestsSchema,
|
|
2543
2556
|
TooManyRequestsSchemaError,
|
|
2544
2557
|
TwilioProviderConfiguration,
|
|
@@ -2693,7 +2706,6 @@ if typing.TYPE_CHECKING:
|
|
|
2693
2706
|
UserAuthenticationMethodProperties,
|
|
2694
2707
|
UserAuthenticationMethodPropertiesEnum,
|
|
2695
2708
|
UserBlockIdentifier,
|
|
2696
|
-
UserDateSchema,
|
|
2697
2709
|
UserEffectivePermissionResponseContent,
|
|
2698
2710
|
UserEffectivePermissionRoleSourceEnum,
|
|
2699
2711
|
UserEffectivePermissionRoleSourceResponseContent,
|
|
@@ -3035,6 +3047,8 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
3035
3047
|
"ClientTokenExchangeConfiguration": ".types",
|
|
3036
3048
|
"ClientTokenExchangeConfigurationOrNull": ".types",
|
|
3037
3049
|
"ClientTokenExchangeTypeEnum": ".types",
|
|
3050
|
+
"ClientTokenVaultPrivilegedAccessWithCredentialId": ".types",
|
|
3051
|
+
"ClientTokenVaultPrivilegedAccessWithPublicKey": ".types",
|
|
3038
3052
|
"ConflictError": ".errors",
|
|
3039
3053
|
"ConnectedAccount": ".types",
|
|
3040
3054
|
"ConnectedAccountAccessTypeEnum": ".types",
|
|
@@ -3813,6 +3827,7 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
3813
3827
|
"CreatedUserAuthenticationMethodTypeEnum": ".types",
|
|
3814
3828
|
"CredentialDeviceTypeEnum": ".types",
|
|
3815
3829
|
"CredentialId": ".types",
|
|
3830
|
+
"CrossAppAccessRequestingApp": ".types",
|
|
3816
3831
|
"CspDirectives": ".types",
|
|
3817
3832
|
"CspFlag": ".types",
|
|
3818
3833
|
"CspFlags": ".types",
|
|
@@ -4282,6 +4297,8 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
4282
4297
|
"ExtensibilityEmailProviderCredentials": ".types",
|
|
4283
4298
|
"FedCmLogin": ".types",
|
|
4284
4299
|
"FedCmLoginGoogle": ".types",
|
|
4300
|
+
"FedCmLoginGooglePatch": ".types",
|
|
4301
|
+
"FedCmLoginPatch": ".types",
|
|
4285
4302
|
"FederatedConnectionTokenSet": ".types",
|
|
4286
4303
|
"FlowAction": ".types",
|
|
4287
4304
|
"FlowActionActivecampaign": ".types",
|
|
@@ -4919,6 +4936,7 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
4919
4936
|
"GetOrganizationInvitationResponseContent": ".types",
|
|
4920
4937
|
"GetOrganizationResponseContent": ".types",
|
|
4921
4938
|
"GetPartialsResponseContent": ".types",
|
|
4939
|
+
"GetPhoneProviderProtectionResponseContent": ".types",
|
|
4922
4940
|
"GetPhoneTemplateResponseContent": ".types",
|
|
4923
4941
|
"GetRateLimitPolicyResponseContent": ".types",
|
|
4924
4942
|
"GetRefreshTokenResponseContent": ".types",
|
|
@@ -5105,8 +5123,12 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
5105
5123
|
"MfaPolicyEnum": ".types",
|
|
5106
5124
|
"NativeSocialLogin": ".types",
|
|
5107
5125
|
"NativeSocialLoginApple": ".types",
|
|
5126
|
+
"NativeSocialLoginApplePatch": ".types",
|
|
5108
5127
|
"NativeSocialLoginFacebook": ".types",
|
|
5128
|
+
"NativeSocialLoginFacebookPatch": ".types",
|
|
5109
5129
|
"NativeSocialLoginGoogle": ".types",
|
|
5130
|
+
"NativeSocialLoginGooglePatch": ".types",
|
|
5131
|
+
"NativeSocialLoginPatch": ".types",
|
|
5110
5132
|
"NetworkAclAction": ".types",
|
|
5111
5133
|
"NetworkAclActionAllowEnum": ".types",
|
|
5112
5134
|
"NetworkAclActionBlockEnum": ".types",
|
|
@@ -5152,6 +5174,7 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
5152
5174
|
"PasswordMaxLengthExceededPolicyEnum": ".types",
|
|
5153
5175
|
"PasswordSequentialCharactersPolicyEnum": ".types",
|
|
5154
5176
|
"PatchClientCredentialResponseContent": ".types",
|
|
5177
|
+
"PatchPhoneProviderProtectionResponseContent": ".types",
|
|
5155
5178
|
"PatchRateLimitPolicyConfigurationRequestContent": ".types",
|
|
5156
5179
|
"PatchRateLimitPolicyConfigurationRequestContentAction": ".types",
|
|
5157
5180
|
"PatchRateLimitPolicyConfigurationRequestContentActionAction": ".types",
|
|
@@ -5169,6 +5192,7 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
5169
5192
|
"PhoneProviderCredentials": ".types",
|
|
5170
5193
|
"PhoneProviderDeliveryMethodEnum": ".types",
|
|
5171
5194
|
"PhoneProviderNameEnum": ".types",
|
|
5195
|
+
"PhoneProviderProtectionBackoffStrategyEnum": ".types",
|
|
5172
5196
|
"PhoneProviderSchemaMasked": ".types",
|
|
5173
5197
|
"PhoneTemplate": ".types",
|
|
5174
5198
|
"PhoneTemplateBody": ".types",
|
|
@@ -5346,10 +5370,11 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
5346
5370
|
"TestEventDataContent": ".types",
|
|
5347
5371
|
"TokenExchangeProfileResponseContent": ".types",
|
|
5348
5372
|
"TokenExchangeProfileTypeEnum": ".types",
|
|
5373
|
+
"TokenProvider": ".token_provider",
|
|
5349
5374
|
"TokenQuota": ".types",
|
|
5350
5375
|
"TokenQuotaClientCredentials": ".types",
|
|
5351
5376
|
"TokenQuotaConfiguration": ".types",
|
|
5352
|
-
"
|
|
5377
|
+
"TokenVaultPrivilegedAccessIpAllowlistEntry": ".types",
|
|
5353
5378
|
"TooManyRequestsError": ".errors",
|
|
5354
5379
|
"TooManyRequestsSchema": ".types",
|
|
5355
5380
|
"TooManyRequestsSchemaError": ".types",
|
|
@@ -5506,7 +5531,6 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
5506
5531
|
"UserAuthenticationMethodProperties": ".types",
|
|
5507
5532
|
"UserAuthenticationMethodPropertiesEnum": ".types",
|
|
5508
5533
|
"UserBlockIdentifier": ".types",
|
|
5509
|
-
"UserDateSchema": ".types",
|
|
5510
5534
|
"UserEffectivePermissionResponseContent": ".types",
|
|
5511
5535
|
"UserEffectivePermissionRoleSourceEnum": ".types",
|
|
5512
5536
|
"UserEffectivePermissionRoleSourceResponseContent": ".types",
|
|
@@ -5849,6 +5873,8 @@ __all__ = [
|
|
|
5849
5873
|
"ClientTokenExchangeConfiguration",
|
|
5850
5874
|
"ClientTokenExchangeConfigurationOrNull",
|
|
5851
5875
|
"ClientTokenExchangeTypeEnum",
|
|
5876
|
+
"ClientTokenVaultPrivilegedAccessWithCredentialId",
|
|
5877
|
+
"ClientTokenVaultPrivilegedAccessWithPublicKey",
|
|
5852
5878
|
"ConflictError",
|
|
5853
5879
|
"ConnectedAccount",
|
|
5854
5880
|
"ConnectedAccountAccessTypeEnum",
|
|
@@ -6627,6 +6653,7 @@ __all__ = [
|
|
|
6627
6653
|
"CreatedUserAuthenticationMethodTypeEnum",
|
|
6628
6654
|
"CredentialDeviceTypeEnum",
|
|
6629
6655
|
"CredentialId",
|
|
6656
|
+
"CrossAppAccessRequestingApp",
|
|
6630
6657
|
"CspDirectives",
|
|
6631
6658
|
"CspFlag",
|
|
6632
6659
|
"CspFlags",
|
|
@@ -6640,6 +6667,7 @@ __all__ = [
|
|
|
6640
6667
|
"CspReportingEndpoints",
|
|
6641
6668
|
"CspReportingInfrastructure",
|
|
6642
6669
|
"CustomDomain",
|
|
6670
|
+
"CustomDomainHeader",
|
|
6643
6671
|
"CustomDomainCustomClientIpHeader",
|
|
6644
6672
|
"CustomDomainCustomClientIpHeaderEnum",
|
|
6645
6673
|
"CustomDomainProvisioningTypeEnum",
|
|
@@ -7095,6 +7123,8 @@ __all__ = [
|
|
|
7095
7123
|
"ExtensibilityEmailProviderCredentials",
|
|
7096
7124
|
"FedCmLogin",
|
|
7097
7125
|
"FedCmLoginGoogle",
|
|
7126
|
+
"FedCmLoginGooglePatch",
|
|
7127
|
+
"FedCmLoginPatch",
|
|
7098
7128
|
"FederatedConnectionTokenSet",
|
|
7099
7129
|
"FlowAction",
|
|
7100
7130
|
"FlowActionActivecampaign",
|
|
@@ -7732,6 +7762,7 @@ __all__ = [
|
|
|
7732
7762
|
"GetOrganizationInvitationResponseContent",
|
|
7733
7763
|
"GetOrganizationResponseContent",
|
|
7734
7764
|
"GetPartialsResponseContent",
|
|
7765
|
+
"GetPhoneProviderProtectionResponseContent",
|
|
7735
7766
|
"GetPhoneTemplateResponseContent",
|
|
7736
7767
|
"GetRateLimitPolicyResponseContent",
|
|
7737
7768
|
"GetRefreshTokenResponseContent",
|
|
@@ -7918,8 +7949,12 @@ __all__ = [
|
|
|
7918
7949
|
"MfaPolicyEnum",
|
|
7919
7950
|
"NativeSocialLogin",
|
|
7920
7951
|
"NativeSocialLoginApple",
|
|
7952
|
+
"NativeSocialLoginApplePatch",
|
|
7921
7953
|
"NativeSocialLoginFacebook",
|
|
7954
|
+
"NativeSocialLoginFacebookPatch",
|
|
7922
7955
|
"NativeSocialLoginGoogle",
|
|
7956
|
+
"NativeSocialLoginGooglePatch",
|
|
7957
|
+
"NativeSocialLoginPatch",
|
|
7923
7958
|
"NetworkAclAction",
|
|
7924
7959
|
"NetworkAclActionAllowEnum",
|
|
7925
7960
|
"NetworkAclActionBlockEnum",
|
|
@@ -7965,6 +8000,7 @@ __all__ = [
|
|
|
7965
8000
|
"PasswordMaxLengthExceededPolicyEnum",
|
|
7966
8001
|
"PasswordSequentialCharactersPolicyEnum",
|
|
7967
8002
|
"PatchClientCredentialResponseContent",
|
|
8003
|
+
"PatchPhoneProviderProtectionResponseContent",
|
|
7968
8004
|
"PatchRateLimitPolicyConfigurationRequestContent",
|
|
7969
8005
|
"PatchRateLimitPolicyConfigurationRequestContentAction",
|
|
7970
8006
|
"PatchRateLimitPolicyConfigurationRequestContentActionAction",
|
|
@@ -7982,6 +8018,7 @@ __all__ = [
|
|
|
7982
8018
|
"PhoneProviderCredentials",
|
|
7983
8019
|
"PhoneProviderDeliveryMethodEnum",
|
|
7984
8020
|
"PhoneProviderNameEnum",
|
|
8021
|
+
"PhoneProviderProtectionBackoffStrategyEnum",
|
|
7985
8022
|
"PhoneProviderSchemaMasked",
|
|
7986
8023
|
"PhoneTemplate",
|
|
7987
8024
|
"PhoneTemplateBody",
|
|
@@ -8163,6 +8200,7 @@ __all__ = [
|
|
|
8163
8200
|
"TokenQuota",
|
|
8164
8201
|
"TokenQuotaClientCredentials",
|
|
8165
8202
|
"TokenQuotaConfiguration",
|
|
8203
|
+
"TokenVaultPrivilegedAccessIpAllowlistEntry",
|
|
8166
8204
|
"TooManyRequestsError",
|
|
8167
8205
|
"TooManyRequestsSchema",
|
|
8168
8206
|
"TooManyRequestsSchemaError",
|
|
@@ -8319,7 +8357,6 @@ __all__ = [
|
|
|
8319
8357
|
"UserAuthenticationMethodProperties",
|
|
8320
8358
|
"UserAuthenticationMethodPropertiesEnum",
|
|
8321
8359
|
"UserBlockIdentifier",
|
|
8322
|
-
"UserDateSchema",
|
|
8323
8360
|
"UserEffectivePermissionResponseContent",
|
|
8324
8361
|
"UserEffectivePermissionRoleSourceEnum",
|
|
8325
8362
|
"UserEffectivePermissionRoleSourceResponseContent",
|
|
@@ -6,12 +6,20 @@ import typing
|
|
|
6
6
|
from importlib import import_module
|
|
7
7
|
|
|
8
8
|
if typing.TYPE_CHECKING:
|
|
9
|
-
from . import
|
|
9
|
+
from . import (
|
|
10
|
+
bot_detection,
|
|
11
|
+
breached_password_detection,
|
|
12
|
+
brute_force_protection,
|
|
13
|
+
captcha,
|
|
14
|
+
phone_provider_protection,
|
|
15
|
+
suspicious_ip_throttling,
|
|
16
|
+
)
|
|
10
17
|
_dynamic_imports: typing.Dict[str, str] = {
|
|
11
18
|
"bot_detection": ".bot_detection",
|
|
12
19
|
"breached_password_detection": ".breached_password_detection",
|
|
13
20
|
"brute_force_protection": ".brute_force_protection",
|
|
14
21
|
"captcha": ".captcha",
|
|
22
|
+
"phone_provider_protection": ".phone_provider_protection",
|
|
15
23
|
"suspicious_ip_throttling": ".suspicious_ip_throttling",
|
|
16
24
|
}
|
|
17
25
|
|
|
@@ -42,5 +50,6 @@ __all__ = [
|
|
|
42
50
|
"breached_password_detection",
|
|
43
51
|
"brute_force_protection",
|
|
44
52
|
"captcha",
|
|
53
|
+
"phone_provider_protection",
|
|
45
54
|
"suspicious_ip_throttling",
|
|
46
55
|
]
|
|
@@ -15,6 +15,7 @@ if typing.TYPE_CHECKING:
|
|
|
15
15
|
)
|
|
16
16
|
from .brute_force_protection.client import AsyncBruteForceProtectionClient, BruteForceProtectionClient
|
|
17
17
|
from .captcha.client import AsyncCaptchaClient, CaptchaClient
|
|
18
|
+
from .phone_provider_protection.client import AsyncPhoneProviderProtectionClient, PhoneProviderProtectionClient
|
|
18
19
|
from .suspicious_ip_throttling.client import AsyncSuspiciousIpThrottlingClient, SuspiciousIpThrottlingClient
|
|
19
20
|
|
|
20
21
|
|
|
@@ -26,6 +27,7 @@ class AttackProtectionClient:
|
|
|
26
27
|
self._breached_password_detection: typing.Optional[BreachedPasswordDetectionClient] = None
|
|
27
28
|
self._brute_force_protection: typing.Optional[BruteForceProtectionClient] = None
|
|
28
29
|
self._captcha: typing.Optional[CaptchaClient] = None
|
|
30
|
+
self._phone_provider_protection: typing.Optional[PhoneProviderProtectionClient] = None
|
|
29
31
|
self._suspicious_ip_throttling: typing.Optional[SuspiciousIpThrottlingClient] = None
|
|
30
32
|
|
|
31
33
|
@property
|
|
@@ -71,6 +73,14 @@ class AttackProtectionClient:
|
|
|
71
73
|
self._captcha = CaptchaClient(client_wrapper=self._client_wrapper)
|
|
72
74
|
return self._captcha
|
|
73
75
|
|
|
76
|
+
@property
|
|
77
|
+
def phone_provider_protection(self):
|
|
78
|
+
if self._phone_provider_protection is None:
|
|
79
|
+
from .phone_provider_protection.client import PhoneProviderProtectionClient # noqa: E402
|
|
80
|
+
|
|
81
|
+
self._phone_provider_protection = PhoneProviderProtectionClient(client_wrapper=self._client_wrapper)
|
|
82
|
+
return self._phone_provider_protection
|
|
83
|
+
|
|
74
84
|
@property
|
|
75
85
|
def suspicious_ip_throttling(self):
|
|
76
86
|
if self._suspicious_ip_throttling is None:
|
|
@@ -88,6 +98,7 @@ class AsyncAttackProtectionClient:
|
|
|
88
98
|
self._breached_password_detection: typing.Optional[AsyncBreachedPasswordDetectionClient] = None
|
|
89
99
|
self._brute_force_protection: typing.Optional[AsyncBruteForceProtectionClient] = None
|
|
90
100
|
self._captcha: typing.Optional[AsyncCaptchaClient] = None
|
|
101
|
+
self._phone_provider_protection: typing.Optional[AsyncPhoneProviderProtectionClient] = None
|
|
91
102
|
self._suspicious_ip_throttling: typing.Optional[AsyncSuspiciousIpThrottlingClient] = None
|
|
92
103
|
|
|
93
104
|
@property
|
|
@@ -135,6 +146,14 @@ class AsyncAttackProtectionClient:
|
|
|
135
146
|
self._captcha = AsyncCaptchaClient(client_wrapper=self._client_wrapper)
|
|
136
147
|
return self._captcha
|
|
137
148
|
|
|
149
|
+
@property
|
|
150
|
+
def phone_provider_protection(self):
|
|
151
|
+
if self._phone_provider_protection is None:
|
|
152
|
+
from .phone_provider_protection.client import AsyncPhoneProviderProtectionClient # noqa: E402
|
|
153
|
+
|
|
154
|
+
self._phone_provider_protection = AsyncPhoneProviderProtectionClient(client_wrapper=self._client_wrapper)
|
|
155
|
+
return self._phone_provider_protection
|
|
156
|
+
|
|
138
157
|
@property
|
|
139
158
|
def suspicious_ip_throttling(self):
|
|
140
159
|
if self._suspicious_ip_throttling is None:
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
6
|
+
from ...core.request_options import RequestOptions
|
|
7
|
+
from ...types.get_phone_provider_protection_response_content import GetPhoneProviderProtectionResponseContent
|
|
8
|
+
from ...types.patch_phone_provider_protection_response_content import PatchPhoneProviderProtectionResponseContent
|
|
9
|
+
from ...types.phone_provider_protection_backoff_strategy_enum import PhoneProviderProtectionBackoffStrategyEnum
|
|
10
|
+
from .raw_client import AsyncRawPhoneProviderProtectionClient, RawPhoneProviderProtectionClient
|
|
11
|
+
|
|
12
|
+
# this is used as the default value for optional parameters
|
|
13
|
+
OMIT = typing.cast(typing.Any, ...)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class PhoneProviderProtectionClient:
|
|
17
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
18
|
+
self._raw_client = RawPhoneProviderProtectionClient(client_wrapper=client_wrapper)
|
|
19
|
+
|
|
20
|
+
@property
|
|
21
|
+
def with_raw_response(self) -> RawPhoneProviderProtectionClient:
|
|
22
|
+
"""
|
|
23
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
24
|
+
|
|
25
|
+
Returns
|
|
26
|
+
-------
|
|
27
|
+
RawPhoneProviderProtectionClient
|
|
28
|
+
"""
|
|
29
|
+
return self._raw_client
|
|
30
|
+
|
|
31
|
+
def get(
|
|
32
|
+
self, *, request_options: typing.Optional[RequestOptions] = None
|
|
33
|
+
) -> GetPhoneProviderProtectionResponseContent:
|
|
34
|
+
"""
|
|
35
|
+
Get the phone provider protection configuration for a tenant.
|
|
36
|
+
|
|
37
|
+
Parameters
|
|
38
|
+
----------
|
|
39
|
+
request_options : typing.Optional[RequestOptions]
|
|
40
|
+
Request-specific configuration.
|
|
41
|
+
|
|
42
|
+
Returns
|
|
43
|
+
-------
|
|
44
|
+
GetPhoneProviderProtectionResponseContent
|
|
45
|
+
Phone provider protection configuration successfully retrieved.
|
|
46
|
+
|
|
47
|
+
Examples
|
|
48
|
+
--------
|
|
49
|
+
from auth0 import Auth0
|
|
50
|
+
|
|
51
|
+
client = Auth0(
|
|
52
|
+
token="YOUR_TOKEN",
|
|
53
|
+
)
|
|
54
|
+
client.attack_protection.phone_provider_protection.get()
|
|
55
|
+
"""
|
|
56
|
+
_response = self._raw_client.get(request_options=request_options)
|
|
57
|
+
return _response.data
|
|
58
|
+
|
|
59
|
+
def patch(
|
|
60
|
+
self,
|
|
61
|
+
*,
|
|
62
|
+
type: PhoneProviderProtectionBackoffStrategyEnum,
|
|
63
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
64
|
+
) -> PatchPhoneProviderProtectionResponseContent:
|
|
65
|
+
"""
|
|
66
|
+
Update the phone provider protection configuration for a tenant.
|
|
67
|
+
|
|
68
|
+
Parameters
|
|
69
|
+
----------
|
|
70
|
+
type : PhoneProviderProtectionBackoffStrategyEnum
|
|
71
|
+
|
|
72
|
+
request_options : typing.Optional[RequestOptions]
|
|
73
|
+
Request-specific configuration.
|
|
74
|
+
|
|
75
|
+
Returns
|
|
76
|
+
-------
|
|
77
|
+
PatchPhoneProviderProtectionResponseContent
|
|
78
|
+
Phone provider protection configuration successfully updated.
|
|
79
|
+
|
|
80
|
+
Examples
|
|
81
|
+
--------
|
|
82
|
+
from auth0 import Auth0
|
|
83
|
+
|
|
84
|
+
client = Auth0(
|
|
85
|
+
token="YOUR_TOKEN",
|
|
86
|
+
)
|
|
87
|
+
client.attack_protection.phone_provider_protection.patch(
|
|
88
|
+
type="exponential",
|
|
89
|
+
)
|
|
90
|
+
"""
|
|
91
|
+
_response = self._raw_client.patch(type=type, request_options=request_options)
|
|
92
|
+
return _response.data
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
class AsyncPhoneProviderProtectionClient:
|
|
96
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
97
|
+
self._raw_client = AsyncRawPhoneProviderProtectionClient(client_wrapper=client_wrapper)
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def with_raw_response(self) -> AsyncRawPhoneProviderProtectionClient:
|
|
101
|
+
"""
|
|
102
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
103
|
+
|
|
104
|
+
Returns
|
|
105
|
+
-------
|
|
106
|
+
AsyncRawPhoneProviderProtectionClient
|
|
107
|
+
"""
|
|
108
|
+
return self._raw_client
|
|
109
|
+
|
|
110
|
+
async def get(
|
|
111
|
+
self, *, request_options: typing.Optional[RequestOptions] = None
|
|
112
|
+
) -> GetPhoneProviderProtectionResponseContent:
|
|
113
|
+
"""
|
|
114
|
+
Get the phone provider protection configuration for a tenant.
|
|
115
|
+
|
|
116
|
+
Parameters
|
|
117
|
+
----------
|
|
118
|
+
request_options : typing.Optional[RequestOptions]
|
|
119
|
+
Request-specific configuration.
|
|
120
|
+
|
|
121
|
+
Returns
|
|
122
|
+
-------
|
|
123
|
+
GetPhoneProviderProtectionResponseContent
|
|
124
|
+
Phone provider protection configuration successfully retrieved.
|
|
125
|
+
|
|
126
|
+
Examples
|
|
127
|
+
--------
|
|
128
|
+
import asyncio
|
|
129
|
+
|
|
130
|
+
from auth0 import AsyncAuth0
|
|
131
|
+
|
|
132
|
+
client = AsyncAuth0(
|
|
133
|
+
token="YOUR_TOKEN",
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
async def main() -> None:
|
|
138
|
+
await client.attack_protection.phone_provider_protection.get()
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
asyncio.run(main())
|
|
142
|
+
"""
|
|
143
|
+
_response = await self._raw_client.get(request_options=request_options)
|
|
144
|
+
return _response.data
|
|
145
|
+
|
|
146
|
+
async def patch(
|
|
147
|
+
self,
|
|
148
|
+
*,
|
|
149
|
+
type: PhoneProviderProtectionBackoffStrategyEnum,
|
|
150
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
151
|
+
) -> PatchPhoneProviderProtectionResponseContent:
|
|
152
|
+
"""
|
|
153
|
+
Update the phone provider protection configuration for a tenant.
|
|
154
|
+
|
|
155
|
+
Parameters
|
|
156
|
+
----------
|
|
157
|
+
type : PhoneProviderProtectionBackoffStrategyEnum
|
|
158
|
+
|
|
159
|
+
request_options : typing.Optional[RequestOptions]
|
|
160
|
+
Request-specific configuration.
|
|
161
|
+
|
|
162
|
+
Returns
|
|
163
|
+
-------
|
|
164
|
+
PatchPhoneProviderProtectionResponseContent
|
|
165
|
+
Phone provider protection configuration successfully updated.
|
|
166
|
+
|
|
167
|
+
Examples
|
|
168
|
+
--------
|
|
169
|
+
import asyncio
|
|
170
|
+
|
|
171
|
+
from auth0 import AsyncAuth0
|
|
172
|
+
|
|
173
|
+
client = AsyncAuth0(
|
|
174
|
+
token="YOUR_TOKEN",
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
async def main() -> None:
|
|
179
|
+
await client.attack_protection.phone_provider_protection.patch(
|
|
180
|
+
type="exponential",
|
|
181
|
+
)
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
asyncio.run(main())
|
|
185
|
+
"""
|
|
186
|
+
_response = await self._raw_client.patch(type=type, request_options=request_options)
|
|
187
|
+
return _response.data
|