auth0 6.2.0 → 6.3.0
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.
- checksums.yaml +4 -4
- data/.fern/metadata.json +3 -3
- data/.fern/replay.lock +7 -1
- data/.version +1 -1
- data/CHANGELOG.md +7 -0
- data/EXAMPLES.md +44 -0
- data/examples/ruby-api/Gemfile.lock +1 -1
- data/lib/auth0/actions/client.rb +47 -6
- data/lib/auth0/actions/executions/client.rb +4 -1
- data/lib/auth0/actions/modules/client.rb +40 -6
- data/lib/auth0/actions/modules/versions/client.rb +19 -3
- data/lib/auth0/actions/triggers/bindings/client.rb +12 -2
- data/lib/auth0/actions/triggers/client.rb +4 -1
- data/lib/auth0/actions/versions/client.rb +27 -4
- data/lib/auth0/agents/client.rb +22 -4
- data/lib/auth0/anomaly/blocks/client.rb +6 -0
- data/lib/auth0/api/authentication_endpoints.rb +40 -0
- data/lib/auth0/attack_protection/bot_detection/client.rb +8 -2
- data/lib/auth0/attack_protection/breached_password_detection/client.rb +8 -2
- data/lib/auth0/attack_protection/brute_force_protection/client.rb +8 -2
- data/lib/auth0/attack_protection/captcha/client.rb +8 -2
- data/lib/auth0/attack_protection/phone_provider_protection/client.rb +8 -2
- data/lib/auth0/attack_protection/suspicious_ip_throttling/client.rb +8 -2
- data/lib/auth0/branding/client.rb +8 -2
- data/lib/auth0/branding/phone/providers/client.rb +31 -5
- data/lib/auth0/branding/phone/templates/client.rb +39 -7
- data/lib/auth0/branding/templates/client.rb +10 -1
- data/lib/auth0/branding/themes/client.rb +162 -4
- data/lib/auth0/client.rb +8 -8
- data/lib/auth0/client_grants/client.rb +28 -4
- data/lib/auth0/client_grants/organizations/client.rb +9 -1
- data/lib/auth0/clients/client.rb +46 -7
- data/lib/auth0/clients/connections/client.rb +11 -1
- data/lib/auth0/clients/credentials/client.rb +36 -7
- data/lib/auth0/clients/types/create_client_request_content.rb +2 -0
- data/lib/auth0/clients/types/update_client_request_content.rb +2 -0
- data/lib/auth0/connection_profiles/client.rb +30 -6
- data/lib/auth0/connections/client.rb +37 -4
- data/lib/auth0/connections/clients/client.rb +21 -2
- data/lib/auth0/connections/directory_provisioning/client.rb +73 -8
- data/lib/auth0/connections/directory_provisioning/synchronizations/client.rb +4 -1
- data/lib/auth0/connections/keys/client.rb +31 -8
- data/lib/auth0/connections/scim_configuration/client.rb +37 -6
- data/lib/auth0/connections/scim_configuration/tokens/client.rb +14 -2
- data/lib/auth0/connections/users/client.rb +6 -0
- data/lib/auth0/custom_domains/client.rb +43 -8
- data/lib/auth0/device_credentials/client.rb +25 -2
- data/lib/auth0/email_templates/client.rb +19 -4
- data/lib/auth0/emails/provider/client.rb +23 -3
- data/lib/auth0/event_streams/client.rb +38 -5
- data/lib/auth0/event_streams/deliveries/client.rb +19 -2
- data/lib/auth0/event_streams/redeliveries/client.rb +10 -1
- data/lib/auth0/events/client.rb +7 -0
- data/lib/auth0/experimentation/client.rb +19 -0
- data/lib/auth0/experimentation/experiments/client.rb +63 -0
- data/lib/auth0/experimentation/experiments/types/advance_ramp_request_content.rb +15 -0
- data/lib/auth0/flows/client.rb +28 -4
- data/lib/auth0/flows/executions/client.rb +23 -2
- data/lib/auth0/flows/vault/connections/client.rb +31 -4
- data/lib/auth0/forms/client.rb +27 -4
- data/lib/auth0/groups/client.rb +21 -2
- data/lib/auth0/groups/members/client.rb +10 -1
- data/lib/auth0/groups/roles/client.rb +20 -1
- data/lib/auth0/guardian/client.rb +77 -0
- data/lib/auth0/guardian/enrollments/client.rb +11 -2
- data/lib/auth0/guardian/factors/client.rb +21 -5
- data/lib/auth0/guardian/factors/duo/settings/client.rb +12 -3
- data/lib/auth0/guardian/factors/email/client.rb +93 -0
- data/lib/auth0/guardian/factors/email/types/set_email_factor_settings_request_content.rb +17 -0
- data/lib/auth0/guardian/factors/phone/client.rb +110 -8
- data/lib/auth0/guardian/factors/phone/types/set_phone_factor_settings_request_content.rb +17 -0
- data/lib/auth0/guardian/factors/push_notification/client.rb +48 -12
- data/lib/auth0/guardian/factors/sms/client.rb +32 -9
- data/lib/auth0/guardian/policies/client.rb +8 -2
- data/lib/auth0/guardian/types/set_guardian_settings_request_content.rb +17 -0
- data/lib/auth0/hooks/client.rb +33 -4
- data/lib/auth0/hooks/secrets/client.rb +38 -4
- data/lib/auth0/jobs/client.rb +4 -1
- data/lib/auth0/jobs/errors/client.rb +9 -4
- data/lib/auth0/jobs/users_exports/client.rb +4 -1
- data/lib/auth0/jobs/users_imports/client.rb +14 -6
- data/lib/auth0/jobs/verification_email/client.rb +4 -1
- data/lib/auth0/keys/custom_signing/client.rb +13 -2
- data/lib/auth0/keys/encryption/client.rb +33 -5
- data/lib/auth0/keys/network_acls/client.rb +19 -3
- data/lib/auth0/keys/signing/client.rb +21 -7
- data/lib/auth0/log_streams/client.rb +29 -7
- data/lib/auth0/logs/client.rb +16 -2
- data/lib/auth0/network_acls/client.rb +41 -4
- data/lib/auth0/organizations/client.rb +109 -5
- data/lib/auth0/organizations/client_grants/client.rb +25 -2
- data/lib/auth0/organizations/clients/client.rb +38 -4
- data/lib/auth0/organizations/connections/client.rb +37 -4
- data/lib/auth0/organizations/connections/types/create_organization_all_connection_request_parameters.rb +2 -0
- data/lib/auth0/organizations/connections/types/update_organization_connection_request_parameters.rb +2 -0
- data/lib/auth0/organizations/discovery_domains/client.rb +42 -5
- data/lib/auth0/organizations/enabled_connections/client.rb +36 -4
- data/lib/auth0/organizations/groups/client.rb +8 -1
- data/lib/auth0/organizations/groups/roles/client.rb +23 -1
- data/lib/auth0/organizations/invitations/client.rb +40 -3
- data/lib/auth0/organizations/members/client.rb +23 -1
- data/lib/auth0/organizations/members/effective_roles/client.rb +9 -1
- data/lib/auth0/organizations/members/effective_roles/sources/groups/client.rb +10 -1
- data/lib/auth0/organizations/members/roles/client.rb +24 -1
- data/lib/auth0/organizations/organization_template/client.rb +16 -1
- data/lib/auth0/organizations/roles/groups/client.rb +9 -1
- data/lib/auth0/organizations/roles/members/client.rb +11 -1
- data/lib/auth0/organizations/types/search_organizations_request_parameters.rb +19 -0
- data/lib/auth0/prompts/client.rb +8 -2
- data/lib/auth0/prompts/custom_text/client.rb +20 -2
- data/lib/auth0/prompts/partials/client.rb +16 -2
- data/lib/auth0/prompts/rendering/client.rb +34 -4
- data/lib/auth0/rate_limit_policies/client.rb +37 -4
- data/lib/auth0/refresh_tokens/client.rb +25 -3
- data/lib/auth0/resource_servers/client.rb +102 -4
- data/lib/auth0/resource_servers/types/create_resource_server_request_content.rb +4 -0
- data/lib/auth0/resource_servers/types/search_resource_servers_request_parameters.rb +23 -0
- data/lib/auth0/resource_servers/types/update_resource_server_request_content.rb +4 -0
- data/lib/auth0/risk_assessments/settings/client.rb +8 -2
- data/lib/auth0/risk_assessments/settings/new_device/client.rb +8 -2
- data/lib/auth0/roles/client.rb +26 -4
- data/lib/auth0/roles/groups/client.rb +20 -1
- data/lib/auth0/roles/permissions/client.rb +27 -1
- data/lib/auth0/roles/users/client.rb +15 -1
- data/lib/auth0/rules/client.rb +33 -4
- data/lib/auth0/rules_configs/client.rb +19 -5
- data/lib/auth0/self_service_profiles/client.rb +23 -4
- data/lib/auth0/self_service_profiles/custom_text/client.rb +23 -3
- data/lib/auth0/self_service_profiles/sso_ticket/client.rb +10 -1
- data/lib/auth0/sessions/client.rb +14 -2
- data/lib/auth0/stats/client.rb +16 -5
- data/lib/auth0/supplemental_signals/client.rb +8 -2
- data/lib/auth0/tenants/settings/client.rb +11 -2
- data/lib/auth0/tenants/settings/types/update_tenant_settings_request_content.rb +2 -0
- data/lib/auth0/tickets/client.rb +8 -2
- data/lib/auth0/token_exchange_profiles/client.rb +26 -3
- data/lib/auth0/types/advance_ramp_response_content.rb +15 -0
- data/lib/auth0/types/anonymous_sessions.rb +10 -0
- data/lib/auth0/types/client.rb +6 -0
- data/lib/auth0/types/client_my_organization_patch_configuration.rb +4 -0
- data/lib/auth0/types/client_my_organization_post_configuration.rb +4 -0
- data/lib/auth0/types/client_my_organization_response_configuration.rb +4 -0
- data/lib/auth0/types/connection_identity_provider_enum.rb +4 -13
- data/lib/auth0/types/connection_options_ad.rb +2 -0
- data/lib/auth0/types/connection_options_adfs.rb +2 -0
- data/lib/auth0/types/connection_options_azure_ad.rb +2 -0
- data/lib/auth0/types/connection_options_common_saml.rb +2 -0
- data/lib/auth0/types/connection_options_ping_federate.rb +2 -0
- data/lib/auth0/types/connection_options_saml.rb +2 -0
- data/lib/auth0/types/connection_properties_options.rb +4 -0
- data/lib/auth0/types/connection_strategy_enum.rb +4 -13
- data/lib/auth0/types/connection_thumbprints_sha384.rb +23 -0
- data/lib/auth0/types/connection_thumbprints_sha384ad.rb +23 -0
- data/lib/auth0/types/connection_thumbprints_sha384saml.rb +23 -0
- data/lib/auth0/types/create_anonymous_sessions.rb +10 -0
- data/lib/auth0/types/create_client_response_content.rb +6 -0
- data/lib/auth0/types/create_organization_all_connection_response_content.rb +2 -0
- data/lib/auth0/types/create_resource_server_response_content.rb +4 -0
- data/lib/auth0/types/get_client_response_content.rb +6 -0
- data/lib/auth0/types/get_email_factor_settings_response_content.rb +11 -0
- data/lib/auth0/types/get_guardian_settings_response_content.rb +15 -0
- data/lib/auth0/types/get_organization_all_connection_response_content.rb +2 -0
- data/lib/auth0/types/get_phone_factor_settings_response_content.rb +11 -0
- data/lib/auth0/types/get_resource_server_response_content.rb +4 -0
- data/lib/auth0/types/get_tenant_settings_response_content.rb +2 -0
- data/lib/auth0/types/oauth_scope.rb +1 -2
- data/lib/auth0/types/organization_all_connection_post.rb +2 -0
- data/lib/auth0/types/organization_member_access_level_enum.rb +14 -0
- data/lib/auth0/types/organization_member_access_level_enum_with_null.rb +14 -0
- data/lib/auth0/types/organization_sort_field_enum.rb +13 -0
- data/lib/auth0/types/resource_server.rb +4 -0
- data/lib/auth0/types/resource_server_access_token.rb +10 -0
- data/lib/auth0/types/resource_server_access_token_claims_mapping.rb +10 -0
- data/lib/auth0/types/resource_server_access_token_custom_claims_mapping.rb +23 -0
- data/lib/auth0/types/resource_server_access_token_custom_claims_mapping_rule.rb +11 -0
- data/lib/auth0/types/resource_server_search_response.rb +53 -0
- data/lib/auth0/types/resource_server_sort_field_enum.rb +13 -0
- data/lib/auth0/types/resource_server_subject_type_authorization.rb +2 -0
- data/lib/auth0/types/resource_server_subject_type_authorization_anonymous_user.rb +10 -0
- data/lib/auth0/types/resource_server_subject_type_authorization_anonymous_user_policy_enum.rb +12 -0
- data/lib/auth0/types/rotate_client_secret_response_content.rb +6 -0
- data/lib/auth0/types/search_organization.rb +23 -0
- data/lib/auth0/types/{list_template_organizations_paginated_response_content.rb → search_organizations_paginated_response_content.rb} +3 -3
- data/lib/auth0/types/search_parser_enum.rb +12 -0
- data/lib/auth0/types/search_resource_servers_response_content.rb +11 -0
- data/lib/auth0/types/set_email_factor_settings_response_content.rb +11 -0
- data/lib/auth0/types/set_guardian_settings_response_content.rb +15 -0
- data/lib/auth0/types/set_phone_factor_settings_response_content.rb +11 -0
- data/lib/auth0/types/tenant_settings_sessions.rb +2 -0
- data/lib/auth0/types/tenant_settings_sessions_anonymous.rb +12 -0
- data/lib/auth0/types/update_anonymous_sessions.rb +10 -0
- data/lib/auth0/types/update_client_response_content.rb +6 -0
- data/lib/auth0/types/update_connection_options.rb +4 -0
- data/lib/auth0/types/update_organization_all_connection_response_content.rb +2 -0
- data/lib/auth0/types/update_resource_server_response_content.rb +4 -0
- data/lib/auth0/types/update_tenant_settings_response_content.rb +2 -0
- data/lib/auth0/user_attribute_profiles/client.rb +40 -6
- data/lib/auth0/user_blocks/client.rb +20 -2
- data/lib/auth0/user_grants/client.rb +17 -1
- data/lib/auth0/users/authentication_methods/client.rb +57 -9
- data/lib/auth0/users/authenticators/client.rb +3 -0
- data/lib/auth0/users/client.rb +54 -9
- data/lib/auth0/users/connected_accounts/client.rb +8 -1
- data/lib/auth0/users/effective_permissions/client.rb +9 -1
- data/lib/auth0/users/effective_permissions/sources/roles/client.rb +10 -1
- data/lib/auth0/users/effective_roles/client.rb +8 -1
- data/lib/auth0/users/effective_roles/sources/groups/client.rb +9 -1
- data/lib/auth0/users/enrollments/client.rb +9 -4
- data/lib/auth0/users/groups/client.rb +11 -1
- data/lib/auth0/users/identities/client.rb +17 -5
- data/lib/auth0/users/logs/client.rb +10 -1
- data/lib/auth0/users/multifactor/client.rb +9 -0
- data/lib/auth0/users/organizations/client.rb +9 -1
- data/lib/auth0/users/permissions/client.rb +27 -1
- data/lib/auth0/users/refresh_token/client.rb +12 -1
- data/lib/auth0/users/risk_assessments/client.rb +7 -0
- data/lib/auth0/users/roles/client.rb +21 -1
- data/lib/auth0/users/sessions/client.rb +12 -1
- data/lib/auth0/verifiable_credentials/verification/templates/client.rb +32 -4
- data/lib/auth0/version.rb +1 -1
- data/lib/auth0.rb +46 -16
- data/wiremock/wiremock-mappings.json +333 -191
- metadata +40 -10
- data/lib/auth0/organization_templates/client.rb +0 -220
- data/lib/auth0/organization_templates/types/create_organization_template_request_content.rb +0 -35
- data/lib/auth0/organization_templates/types/list_organization_templates_request_parameters.rb +0 -13
- data/lib/auth0/organization_templates/types/list_template_organizations_request_parameters.rb +0 -15
- data/lib/auth0/organization_templates/types/update_organization_template_request_content.rb +0 -37
- data/lib/auth0/types/list_organization_templates_paginated_response_content.rb +0 -11
- data/lib/auth0/types/organization_template_assigned_organization.rb +0 -10
|
@@ -22,6 +22,9 @@ module Auth0
|
|
|
22
22
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
23
23
|
# @option request_options [Integer] :timeout_in_seconds
|
|
24
24
|
#
|
|
25
|
+
# @example
|
|
26
|
+
# client.rules_configs.list
|
|
27
|
+
#
|
|
25
28
|
# @return [Array[Auth0::Types::RulesConfig]]
|
|
26
29
|
def list(request_options: {}, **_params)
|
|
27
30
|
request = Auth0::Internal::JSON::Request.new(
|
|
@@ -36,10 +39,12 @@ module Auth0
|
|
|
36
39
|
raise Auth0::Errors::TimeoutError
|
|
37
40
|
end
|
|
38
41
|
code = response.code.to_i
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
if code.between?(200, 299)
|
|
43
|
+
Auth0::Internal::Types::Utils.coerce(Internal::Types::Array[Auth0::Types::RulesConfig], (response.body.to_s.empty? ? nil : JSON.parse(response.body, symbolize_names: true)))
|
|
44
|
+
else
|
|
45
|
+
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
46
|
+
raise error_class.new(response.body, code: code)
|
|
47
|
+
end
|
|
43
48
|
end
|
|
44
49
|
|
|
45
50
|
# Sets a rules config variable.
|
|
@@ -53,6 +58,12 @@ module Auth0
|
|
|
53
58
|
# @option request_options [Integer] :timeout_in_seconds
|
|
54
59
|
# @option params [String] :key
|
|
55
60
|
#
|
|
61
|
+
# @example
|
|
62
|
+
# client.rules_configs.set(
|
|
63
|
+
# key: "key",
|
|
64
|
+
# value: "value"
|
|
65
|
+
# )
|
|
66
|
+
#
|
|
56
67
|
# @return [Auth0::Types::SetRulesConfigResponseContent]
|
|
57
68
|
def set(request_options: {}, **params)
|
|
58
69
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -74,7 +85,7 @@ module Auth0
|
|
|
74
85
|
end
|
|
75
86
|
code = response.code.to_i
|
|
76
87
|
if code.between?(200, 299)
|
|
77
|
-
Auth0::Types::SetRulesConfigResponseContent.load(response.body)
|
|
88
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::SetRulesConfigResponseContent.load(response.body))
|
|
78
89
|
else
|
|
79
90
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
80
91
|
raise error_class.new(response.body, code: code)
|
|
@@ -92,6 +103,9 @@ module Auth0
|
|
|
92
103
|
# @option request_options [Integer] :timeout_in_seconds
|
|
93
104
|
# @option params [String] :key
|
|
94
105
|
#
|
|
106
|
+
# @example
|
|
107
|
+
# client.rules_configs.delete(key: "key")
|
|
108
|
+
#
|
|
95
109
|
# @return [untyped]
|
|
96
110
|
def delete(request_options: {}, **params)
|
|
97
111
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -23,6 +23,13 @@ module Auth0
|
|
|
23
23
|
# @option params [Integer, nil] :per_page
|
|
24
24
|
# @option params [Boolean, nil] :include_totals
|
|
25
25
|
#
|
|
26
|
+
# @example
|
|
27
|
+
# client.self_service_profiles.list(
|
|
28
|
+
# page: 1,
|
|
29
|
+
# per_page: 1,
|
|
30
|
+
# include_totals: true
|
|
31
|
+
# )
|
|
32
|
+
#
|
|
26
33
|
# @return [Auth0::Types::ListSelfServiceProfilesPaginatedResponseContent]
|
|
27
34
|
def list(request_options: {}, **params)
|
|
28
35
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -52,7 +59,7 @@ module Auth0
|
|
|
52
59
|
end
|
|
53
60
|
code = response.code.to_i
|
|
54
61
|
if code.between?(200, 299)
|
|
55
|
-
parsed_response = Auth0::Types::ListSelfServiceProfilesPaginatedResponseContent.load(response.body)
|
|
62
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListSelfServiceProfilesPaginatedResponseContent.load(response.body))
|
|
56
63
|
[parsed_response, response]
|
|
57
64
|
else
|
|
58
65
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -71,6 +78,9 @@ module Auth0
|
|
|
71
78
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
72
79
|
# @option request_options [Integer] :timeout_in_seconds
|
|
73
80
|
#
|
|
81
|
+
# @example
|
|
82
|
+
# client.self_service_profiles.create(name: "name")
|
|
83
|
+
#
|
|
74
84
|
# @return [Auth0::Types::CreateSelfServiceProfileResponseContent]
|
|
75
85
|
def create(request_options: {}, **params)
|
|
76
86
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -88,7 +98,7 @@ module Auth0
|
|
|
88
98
|
end
|
|
89
99
|
code = response.code.to_i
|
|
90
100
|
if code.between?(200, 299)
|
|
91
|
-
Auth0::Types::CreateSelfServiceProfileResponseContent.load(response.body)
|
|
101
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateSelfServiceProfileResponseContent.load(response.body))
|
|
92
102
|
else
|
|
93
103
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
94
104
|
raise error_class.new(response.body, code: code)
|
|
@@ -106,6 +116,9 @@ module Auth0
|
|
|
106
116
|
# @option request_options [Integer] :timeout_in_seconds
|
|
107
117
|
# @option params [String] :id
|
|
108
118
|
#
|
|
119
|
+
# @example
|
|
120
|
+
# client.self_service_profiles.get(id: "id")
|
|
121
|
+
#
|
|
109
122
|
# @return [Auth0::Types::GetSelfServiceProfileResponseContent]
|
|
110
123
|
def get(request_options: {}, **params)
|
|
111
124
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -122,7 +135,7 @@ module Auth0
|
|
|
122
135
|
end
|
|
123
136
|
code = response.code.to_i
|
|
124
137
|
if code.between?(200, 299)
|
|
125
|
-
Auth0::Types::GetSelfServiceProfileResponseContent.load(response.body)
|
|
138
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetSelfServiceProfileResponseContent.load(response.body))
|
|
126
139
|
else
|
|
127
140
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
128
141
|
raise error_class.new(response.body, code: code)
|
|
@@ -140,6 +153,9 @@ module Auth0
|
|
|
140
153
|
# @option request_options [Integer] :timeout_in_seconds
|
|
141
154
|
# @option params [String] :id
|
|
142
155
|
#
|
|
156
|
+
# @example
|
|
157
|
+
# client.self_service_profiles.delete(id: "id")
|
|
158
|
+
#
|
|
143
159
|
# @return [untyped]
|
|
144
160
|
def delete(request_options: {}, **params)
|
|
145
161
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -172,6 +188,9 @@ module Auth0
|
|
|
172
188
|
# @option request_options [Integer] :timeout_in_seconds
|
|
173
189
|
# @option params [String] :id
|
|
174
190
|
#
|
|
191
|
+
# @example
|
|
192
|
+
# client.self_service_profiles.update(id: "id")
|
|
193
|
+
#
|
|
175
194
|
# @return [Auth0::Types::UpdateSelfServiceProfileResponseContent]
|
|
176
195
|
def update(request_options: {}, **params)
|
|
177
196
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -193,7 +212,7 @@ module Auth0
|
|
|
193
212
|
end
|
|
194
213
|
code = response.code.to_i
|
|
195
214
|
if code.between?(200, 299)
|
|
196
|
-
Auth0::Types::UpdateSelfServiceProfileResponseContent.load(response.body)
|
|
215
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateSelfServiceProfileResponseContent.load(response.body))
|
|
197
216
|
else
|
|
198
217
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
199
218
|
raise error_class.new(response.body, code: code)
|
|
@@ -25,6 +25,13 @@ module Auth0
|
|
|
25
25
|
# @option params [Auth0::Types::SelfServiceProfileCustomTextLanguageEnum] :language
|
|
26
26
|
# @option params [Auth0::Types::SelfServiceProfileCustomTextPageEnum] :page
|
|
27
27
|
#
|
|
28
|
+
# @example
|
|
29
|
+
# client.self_service_profiles.custom_text.list(
|
|
30
|
+
# id: "id",
|
|
31
|
+
# language: "en",
|
|
32
|
+
# page: "get-started"
|
|
33
|
+
# )
|
|
34
|
+
#
|
|
28
35
|
# @return [Hash[String, String]]
|
|
29
36
|
def list(request_options: {}, **params)
|
|
30
37
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -41,7 +48,7 @@ module Auth0
|
|
|
41
48
|
end
|
|
42
49
|
code = response.code.to_i
|
|
43
50
|
if code.between?(200, 299)
|
|
44
|
-
Auth0::Types::ListSelfServiceProfileCustomTextResponseContent.load(response.body)
|
|
51
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::ListSelfServiceProfileCustomTextResponseContent.load(response.body))
|
|
45
52
|
else
|
|
46
53
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
47
54
|
raise error_class.new(response.body, code: code)
|
|
@@ -62,14 +69,27 @@ module Auth0
|
|
|
62
69
|
# @option params [Auth0::Types::SelfServiceProfileCustomTextLanguageEnum] :language
|
|
63
70
|
# @option params [Auth0::Types::SelfServiceProfileCustomTextPageEnum] :page
|
|
64
71
|
#
|
|
72
|
+
# @example
|
|
73
|
+
# client.self_service_profiles.custom_text.set(
|
|
74
|
+
# id: "id",
|
|
75
|
+
# language: "en",
|
|
76
|
+
# page: "get-started",
|
|
77
|
+
# request: {
|
|
78
|
+
# key: "value"
|
|
79
|
+
# }
|
|
80
|
+
# )
|
|
81
|
+
#
|
|
65
82
|
# @return [Hash[String, String]]
|
|
66
83
|
def set(request_options: {}, **params)
|
|
67
84
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
85
|
+
path_param_names = %i[id language page]
|
|
86
|
+
body_params = params.except(*path_param_names)
|
|
87
|
+
|
|
68
88
|
request = Auth0::Internal::JSON::Request.new(
|
|
69
89
|
base_url: request_options[:base_url],
|
|
70
90
|
method: "PUT",
|
|
71
91
|
path: "self-service-profiles/#{URI.encode_uri_component(params[:id].to_s)}/custom-text/#{URI.encode_uri_component(params[:language].to_s)}/#{URI.encode_uri_component(params[:page].to_s)}",
|
|
72
|
-
body:
|
|
92
|
+
body: body_params,
|
|
73
93
|
request_options: request_options
|
|
74
94
|
)
|
|
75
95
|
begin
|
|
@@ -79,7 +99,7 @@ module Auth0
|
|
|
79
99
|
end
|
|
80
100
|
code = response.code.to_i
|
|
81
101
|
if code.between?(200, 299)
|
|
82
|
-
Auth0::Types::SetSelfServiceProfileCustomTextResponseContent.load(response.body)
|
|
102
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::SetSelfServiceProfileCustomTextResponseContent.load(response.body))
|
|
83
103
|
else
|
|
84
104
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
85
105
|
raise error_class.new(response.body, code: code)
|
|
@@ -23,6 +23,9 @@ module Auth0
|
|
|
23
23
|
# @option request_options [Integer] :timeout_in_seconds
|
|
24
24
|
# @option params [String] :id
|
|
25
25
|
#
|
|
26
|
+
# @example
|
|
27
|
+
# client.self_service_profiles.sso_ticket.create(id: "id")
|
|
28
|
+
#
|
|
26
29
|
# @return [Auth0::Types::CreateSelfServiceProfileSSOTicketResponseContent]
|
|
27
30
|
def create(request_options: {}, **params)
|
|
28
31
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -44,7 +47,7 @@ module Auth0
|
|
|
44
47
|
end
|
|
45
48
|
code = response.code.to_i
|
|
46
49
|
if code.between?(200, 299)
|
|
47
|
-
Auth0::Types::CreateSelfServiceProfileSSOTicketResponseContent.load(response.body)
|
|
50
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateSelfServiceProfileSSOTicketResponseContent.load(response.body))
|
|
48
51
|
else
|
|
49
52
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
50
53
|
raise error_class.new(response.body, code: code)
|
|
@@ -70,6 +73,12 @@ module Auth0
|
|
|
70
73
|
# @option params [String] :profile_id
|
|
71
74
|
# @option params [String] :id
|
|
72
75
|
#
|
|
76
|
+
# @example
|
|
77
|
+
# client.self_service_profiles.sso_ticket.revoke(
|
|
78
|
+
# profile_id: "profileId",
|
|
79
|
+
# id: "id"
|
|
80
|
+
# )
|
|
81
|
+
#
|
|
73
82
|
# @return [untyped]
|
|
74
83
|
def revoke(request_options: {}, **params)
|
|
75
84
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -21,6 +21,9 @@ module Auth0
|
|
|
21
21
|
# @option request_options [Integer] :timeout_in_seconds
|
|
22
22
|
# @option params [String] :id
|
|
23
23
|
#
|
|
24
|
+
# @example
|
|
25
|
+
# client.sessions.get(id: "id")
|
|
26
|
+
#
|
|
24
27
|
# @return [Auth0::Types::GetSessionResponseContent]
|
|
25
28
|
def get(request_options: {}, **params)
|
|
26
29
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -37,7 +40,7 @@ module Auth0
|
|
|
37
40
|
end
|
|
38
41
|
code = response.code.to_i
|
|
39
42
|
if code.between?(200, 299)
|
|
40
|
-
Auth0::Types::GetSessionResponseContent.load(response.body)
|
|
43
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetSessionResponseContent.load(response.body))
|
|
41
44
|
else
|
|
42
45
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
43
46
|
raise error_class.new(response.body, code: code)
|
|
@@ -55,6 +58,9 @@ module Auth0
|
|
|
55
58
|
# @option request_options [Integer] :timeout_in_seconds
|
|
56
59
|
# @option params [String] :id
|
|
57
60
|
#
|
|
61
|
+
# @example
|
|
62
|
+
# client.sessions.delete(id: "id")
|
|
63
|
+
#
|
|
58
64
|
# @return [untyped]
|
|
59
65
|
def delete(request_options: {}, **params)
|
|
60
66
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -87,6 +93,9 @@ module Auth0
|
|
|
87
93
|
# @option request_options [Integer] :timeout_in_seconds
|
|
88
94
|
# @option params [String] :id
|
|
89
95
|
#
|
|
96
|
+
# @example
|
|
97
|
+
# client.sessions.update(id: "id")
|
|
98
|
+
#
|
|
90
99
|
# @return [Auth0::Types::UpdateSessionResponseContent]
|
|
91
100
|
def update(request_options: {}, **params)
|
|
92
101
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -108,7 +117,7 @@ module Auth0
|
|
|
108
117
|
end
|
|
109
118
|
code = response.code.to_i
|
|
110
119
|
if code.between?(200, 299)
|
|
111
|
-
Auth0::Types::UpdateSessionResponseContent.load(response.body)
|
|
120
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateSessionResponseContent.load(response.body))
|
|
112
121
|
else
|
|
113
122
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
114
123
|
raise error_class.new(response.body, code: code)
|
|
@@ -126,6 +135,9 @@ module Auth0
|
|
|
126
135
|
# @option request_options [Integer] :timeout_in_seconds
|
|
127
136
|
# @option params [String] :id
|
|
128
137
|
#
|
|
138
|
+
# @example
|
|
139
|
+
# client.sessions.revoke(id: "id")
|
|
140
|
+
#
|
|
129
141
|
# @return [untyped]
|
|
130
142
|
def revoke(request_options: {}, **params)
|
|
131
143
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
data/lib/auth0/stats/client.rb
CHANGED
|
@@ -20,6 +20,9 @@ module Auth0
|
|
|
20
20
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
21
21
|
# @option request_options [Integer] :timeout_in_seconds
|
|
22
22
|
#
|
|
23
|
+
# @example
|
|
24
|
+
# client.stats.get_active_users_count
|
|
25
|
+
#
|
|
23
26
|
# @return [Integer]
|
|
24
27
|
def get_active_users_count(request_options: {}, **_params)
|
|
25
28
|
request = Auth0::Internal::JSON::Request.new(
|
|
@@ -35,7 +38,7 @@ module Auth0
|
|
|
35
38
|
end
|
|
36
39
|
code = response.code.to_i
|
|
37
40
|
if code.between?(200, 299)
|
|
38
|
-
Auth0::Types::GetActiveUsersCountStatsResponseContent.load(response.body)
|
|
41
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetActiveUsersCountStatsResponseContent.load(response.body))
|
|
39
42
|
else
|
|
40
43
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
41
44
|
raise error_class.new(response.body, code: code)
|
|
@@ -55,6 +58,12 @@ module Auth0
|
|
|
55
58
|
# @option params [String, nil] :from
|
|
56
59
|
# @option params [String, nil] :to
|
|
57
60
|
#
|
|
61
|
+
# @example
|
|
62
|
+
# client.stats.get_daily(
|
|
63
|
+
# from: "from",
|
|
64
|
+
# to: "to"
|
|
65
|
+
# )
|
|
66
|
+
#
|
|
58
67
|
# @return [Array[Auth0::Types::DailyStats]]
|
|
59
68
|
def get_daily(request_options: {}, **params)
|
|
60
69
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -75,10 +84,12 @@ module Auth0
|
|
|
75
84
|
raise Auth0::Errors::TimeoutError
|
|
76
85
|
end
|
|
77
86
|
code = response.code.to_i
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
87
|
+
if code.between?(200, 299)
|
|
88
|
+
Auth0::Internal::Types::Utils.coerce(Internal::Types::Array[Auth0::Types::DailyStats], (response.body.to_s.empty? ? nil : JSON.parse(response.body, symbolize_names: true)))
|
|
89
|
+
else
|
|
90
|
+
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
91
|
+
raise error_class.new(response.body, code: code)
|
|
92
|
+
end
|
|
82
93
|
end
|
|
83
94
|
end
|
|
84
95
|
end
|
|
@@ -20,6 +20,9 @@ module Auth0
|
|
|
20
20
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
21
21
|
# @option request_options [Integer] :timeout_in_seconds
|
|
22
22
|
#
|
|
23
|
+
# @example
|
|
24
|
+
# client.supplemental_signals.get
|
|
25
|
+
#
|
|
23
26
|
# @return [Auth0::Types::GetSupplementalSignalsResponseContent]
|
|
24
27
|
def get(request_options: {}, **_params)
|
|
25
28
|
request = Auth0::Internal::JSON::Request.new(
|
|
@@ -35,7 +38,7 @@ module Auth0
|
|
|
35
38
|
end
|
|
36
39
|
code = response.code.to_i
|
|
37
40
|
if code.between?(200, 299)
|
|
38
|
-
Auth0::Types::GetSupplementalSignalsResponseContent.load(response.body)
|
|
41
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetSupplementalSignalsResponseContent.load(response.body))
|
|
39
42
|
else
|
|
40
43
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
41
44
|
raise error_class.new(response.body, code: code)
|
|
@@ -52,6 +55,9 @@ module Auth0
|
|
|
52
55
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
53
56
|
# @option request_options [Integer] :timeout_in_seconds
|
|
54
57
|
#
|
|
58
|
+
# @example
|
|
59
|
+
# client.supplemental_signals.patch(akamai_enabled: true)
|
|
60
|
+
#
|
|
55
61
|
# @return [Auth0::Types::PatchSupplementalSignalsResponseContent]
|
|
56
62
|
def patch(request_options: {}, **params)
|
|
57
63
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -69,7 +75,7 @@ module Auth0
|
|
|
69
75
|
end
|
|
70
76
|
code = response.code.to_i
|
|
71
77
|
if code.between?(200, 299)
|
|
72
|
-
Auth0::Types::PatchSupplementalSignalsResponseContent.load(response.body)
|
|
78
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::PatchSupplementalSignalsResponseContent.load(response.body))
|
|
73
79
|
else
|
|
74
80
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
75
81
|
raise error_class.new(response.body, code: code)
|
|
@@ -23,6 +23,12 @@ module Auth0
|
|
|
23
23
|
# @option params [String, nil] :fields
|
|
24
24
|
# @option params [Boolean, nil] :include_fields
|
|
25
25
|
#
|
|
26
|
+
# @example
|
|
27
|
+
# client.tenants.settings.get(
|
|
28
|
+
# fields: "fields",
|
|
29
|
+
# include_fields: true
|
|
30
|
+
# )
|
|
31
|
+
#
|
|
26
32
|
# @return [Auth0::Types::GetTenantSettingsResponseContent]
|
|
27
33
|
def get(request_options: {}, **params)
|
|
28
34
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -44,7 +50,7 @@ module Auth0
|
|
|
44
50
|
end
|
|
45
51
|
code = response.code.to_i
|
|
46
52
|
if code.between?(200, 299)
|
|
47
|
-
Auth0::Types::GetTenantSettingsResponseContent.load(response.body)
|
|
53
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetTenantSettingsResponseContent.load(response.body))
|
|
48
54
|
else
|
|
49
55
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
50
56
|
raise error_class.new(response.body, code: code)
|
|
@@ -61,6 +67,9 @@ module Auth0
|
|
|
61
67
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
62
68
|
# @option request_options [Integer] :timeout_in_seconds
|
|
63
69
|
#
|
|
70
|
+
# @example
|
|
71
|
+
# client.tenants.settings.update
|
|
72
|
+
#
|
|
64
73
|
# @return [Auth0::Types::UpdateTenantSettingsResponseContent]
|
|
65
74
|
def update(request_options: {}, **params)
|
|
66
75
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -78,7 +87,7 @@ module Auth0
|
|
|
78
87
|
end
|
|
79
88
|
code = response.code.to_i
|
|
80
89
|
if code.between?(200, 299)
|
|
81
|
-
Auth0::Types::UpdateTenantSettingsResponseContent.load(response.body)
|
|
90
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateTenantSettingsResponseContent.load(response.body))
|
|
82
91
|
else
|
|
83
92
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
84
93
|
raise error_class.new(response.body, code: code)
|
|
@@ -55,6 +55,8 @@ module Auth0
|
|
|
55
55
|
|
|
56
56
|
field :enabled_locales, -> { Internal::Types::Array[Auth0::Types::TenantSettingsSupportedLocalesEnum] }, optional: true, nullable: false
|
|
57
57
|
|
|
58
|
+
field :access_token, -> { Auth0::Types::ResourceServerAccessToken }, optional: true, nullable: false
|
|
59
|
+
|
|
58
60
|
field :security_headers, -> { Auth0::Types::TenantSettingsNullableSecurityHeaders }, optional: true, nullable: false
|
|
59
61
|
|
|
60
62
|
field :session_cookie, -> { Auth0::Types::SessionCookieSchema }, optional: true, nullable: false
|
data/lib/auth0/tickets/client.rb
CHANGED
|
@@ -21,6 +21,9 @@ module Auth0
|
|
|
21
21
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
22
22
|
# @option request_options [Integer] :timeout_in_seconds
|
|
23
23
|
#
|
|
24
|
+
# @example
|
|
25
|
+
# client.tickets.verify_email(user_id: "user_id")
|
|
26
|
+
#
|
|
24
27
|
# @return [Auth0::Types::VerifyEmailTicketResponseContent]
|
|
25
28
|
def verify_email(request_options: {}, **params)
|
|
26
29
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -38,7 +41,7 @@ module Auth0
|
|
|
38
41
|
end
|
|
39
42
|
code = response.code.to_i
|
|
40
43
|
if code.between?(200, 299)
|
|
41
|
-
Auth0::Types::VerifyEmailTicketResponseContent.load(response.body)
|
|
44
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::VerifyEmailTicketResponseContent.load(response.body))
|
|
42
45
|
else
|
|
43
46
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
44
47
|
raise error_class.new(response.body, code: code)
|
|
@@ -59,6 +62,9 @@ module Auth0
|
|
|
59
62
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
60
63
|
# @option request_options [Integer] :timeout_in_seconds
|
|
61
64
|
#
|
|
65
|
+
# @example
|
|
66
|
+
# client.tickets.change_password
|
|
67
|
+
#
|
|
62
68
|
# @return [Auth0::Types::ChangePasswordTicketResponseContent]
|
|
63
69
|
def change_password(request_options: {}, **params)
|
|
64
70
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -76,7 +82,7 @@ module Auth0
|
|
|
76
82
|
end
|
|
77
83
|
code = response.code.to_i
|
|
78
84
|
if code.between?(200, 299)
|
|
79
|
-
Auth0::Types::ChangePasswordTicketResponseContent.load(response.body)
|
|
85
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::ChangePasswordTicketResponseContent.load(response.body))
|
|
80
86
|
else
|
|
81
87
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
82
88
|
raise error_class.new(response.body, code: code)
|
|
@@ -35,6 +35,12 @@ module Auth0
|
|
|
35
35
|
# @option params [String, nil] :from
|
|
36
36
|
# @option params [Integer, nil] :take
|
|
37
37
|
#
|
|
38
|
+
# @example
|
|
39
|
+
# client.token_exchange_profiles.list(
|
|
40
|
+
# from: "from",
|
|
41
|
+
# take: 1
|
|
42
|
+
# )
|
|
43
|
+
#
|
|
38
44
|
# @return [Auth0::Types::ListTokenExchangeProfileResponseContent]
|
|
39
45
|
def list(request_options: {}, **params)
|
|
40
46
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -62,7 +68,7 @@ module Auth0
|
|
|
62
68
|
end
|
|
63
69
|
code = response.code.to_i
|
|
64
70
|
if code.between?(200, 299)
|
|
65
|
-
parsed_response = Auth0::Types::ListTokenExchangeProfileResponseContent.load(response.body)
|
|
71
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListTokenExchangeProfileResponseContent.load(response.body))
|
|
66
72
|
[parsed_response, response]
|
|
67
73
|
else
|
|
68
74
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -85,6 +91,14 @@ module Auth0
|
|
|
85
91
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
86
92
|
# @option request_options [Integer] :timeout_in_seconds
|
|
87
93
|
#
|
|
94
|
+
# @example
|
|
95
|
+
# client.token_exchange_profiles.create(
|
|
96
|
+
# name: "name",
|
|
97
|
+
# subject_token_type: "subject_token_type",
|
|
98
|
+
# action_id: "action_id",
|
|
99
|
+
# type: "custom_authentication"
|
|
100
|
+
# )
|
|
101
|
+
#
|
|
88
102
|
# @return [Auth0::Types::CreateTokenExchangeProfileResponseContent]
|
|
89
103
|
def create(request_options: {}, **params)
|
|
90
104
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -102,7 +116,7 @@ module Auth0
|
|
|
102
116
|
end
|
|
103
117
|
code = response.code.to_i
|
|
104
118
|
if code.between?(200, 299)
|
|
105
|
-
Auth0::Types::CreateTokenExchangeProfileResponseContent.load(response.body)
|
|
119
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateTokenExchangeProfileResponseContent.load(response.body))
|
|
106
120
|
else
|
|
107
121
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
108
122
|
raise error_class.new(response.body, code: code)
|
|
@@ -124,6 +138,9 @@ module Auth0
|
|
|
124
138
|
# @option request_options [Integer] :timeout_in_seconds
|
|
125
139
|
# @option params [String] :id
|
|
126
140
|
#
|
|
141
|
+
# @example
|
|
142
|
+
# client.token_exchange_profiles.get(id: "id")
|
|
143
|
+
#
|
|
127
144
|
# @return [Auth0::Types::GetTokenExchangeProfileResponseContent]
|
|
128
145
|
def get(request_options: {}, **params)
|
|
129
146
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -140,7 +157,7 @@ module Auth0
|
|
|
140
157
|
end
|
|
141
158
|
code = response.code.to_i
|
|
142
159
|
if code.between?(200, 299)
|
|
143
|
-
Auth0::Types::GetTokenExchangeProfileResponseContent.load(response.body)
|
|
160
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetTokenExchangeProfileResponseContent.load(response.body))
|
|
144
161
|
else
|
|
145
162
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
146
163
|
raise error_class.new(response.body, code: code)
|
|
@@ -162,6 +179,9 @@ module Auth0
|
|
|
162
179
|
# @option request_options [Integer] :timeout_in_seconds
|
|
163
180
|
# @option params [String] :id
|
|
164
181
|
#
|
|
182
|
+
# @example
|
|
183
|
+
# client.token_exchange_profiles.delete(id: "id")
|
|
184
|
+
#
|
|
165
185
|
# @return [untyped]
|
|
166
186
|
def delete(request_options: {}, **params)
|
|
167
187
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -198,6 +218,9 @@ module Auth0
|
|
|
198
218
|
# @option request_options [Integer] :timeout_in_seconds
|
|
199
219
|
# @option params [String] :id
|
|
200
220
|
#
|
|
221
|
+
# @example
|
|
222
|
+
# client.token_exchange_profiles.update(id: "id")
|
|
223
|
+
#
|
|
201
224
|
# @return [untyped]
|
|
202
225
|
def update(request_options: {}, **params)
|
|
203
226
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
class AdvanceRampResponseContent < Internal::Types::Model
|
|
6
|
+
field :experiment_id, -> { String }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :from_level, -> { Integer }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :to_level, -> { Integer }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :current_level, -> { Integer }, optional: false, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Types
|
|
5
|
+
# Anonymous sessions configuration for this client.
|
|
6
|
+
class AnonymousSessions < Internal::Types::Model
|
|
7
|
+
field :active, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
data/lib/auth0/types/client.rb
CHANGED
|
@@ -5,6 +5,10 @@ module Auth0
|
|
|
5
5
|
class Client < Internal::Types::Model
|
|
6
6
|
field :client_id, -> { String }, optional: true, nullable: false
|
|
7
7
|
|
|
8
|
+
field :created_at, -> { String }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :updated_at, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
8
12
|
field :tenant, -> { String }, optional: true, nullable: false
|
|
9
13
|
|
|
10
14
|
field :name, -> { String }, optional: true, nullable: false
|
|
@@ -117,6 +121,8 @@ module Auth0
|
|
|
117
121
|
|
|
118
122
|
field :identity_assertion_authorization_grant, -> { Auth0::Types::IdentityAssertionAuthorizationGrant }, optional: true, nullable: false
|
|
119
123
|
|
|
124
|
+
field :anonymous_sessions, -> { Auth0::Types::AnonymousSessions }, optional: true, nullable: false
|
|
125
|
+
|
|
120
126
|
field :third_party_security_mode, -> { Auth0::Types::ClientThirdPartySecurityModeEnum }, optional: true, nullable: false
|
|
121
127
|
|
|
122
128
|
field :redirection_policy, -> { Auth0::Types::ClientRedirectionPolicyEnum }, optional: true, nullable: false
|
|
@@ -15,6 +15,10 @@ module Auth0
|
|
|
15
15
|
field :connection_deletion_behavior, -> { Auth0::Types::ClientMyOrganizationDeletionBehaviorEnum }, optional: false, nullable: false
|
|
16
16
|
|
|
17
17
|
field :invitation_landing_client_id, -> { String }, optional: true, nullable: false
|
|
18
|
+
|
|
19
|
+
field :enforce_permission_ceiling, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
20
|
+
|
|
21
|
+
field :enforce_self_assignment_restriction, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
18
22
|
end
|
|
19
23
|
end
|
|
20
24
|
end
|
|
@@ -15,6 +15,10 @@ module Auth0
|
|
|
15
15
|
field :connection_deletion_behavior, -> { Auth0::Types::ClientMyOrganizationDeletionBehaviorEnum }, optional: false, nullable: false
|
|
16
16
|
|
|
17
17
|
field :invitation_landing_client_id, -> { String }, optional: true, nullable: false
|
|
18
|
+
|
|
19
|
+
field :enforce_permission_ceiling, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
20
|
+
|
|
21
|
+
field :enforce_self_assignment_restriction, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
18
22
|
end
|
|
19
23
|
end
|
|
20
24
|
end
|
|
@@ -15,6 +15,10 @@ module Auth0
|
|
|
15
15
|
field :connection_deletion_behavior, -> { Auth0::Types::ClientMyOrganizationDeletionBehaviorEnum }, optional: false, nullable: false
|
|
16
16
|
|
|
17
17
|
field :invitation_landing_client_id, -> { String }, optional: true, nullable: false
|
|
18
|
+
|
|
19
|
+
field :enforce_permission_ceiling, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
20
|
+
|
|
21
|
+
field :enforce_self_assignment_restriction, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
18
22
|
end
|
|
19
23
|
end
|
|
20
24
|
end
|
|
@@ -61,23 +61,14 @@ module Auth0
|
|
|
61
61
|
YAHOO = "yahoo"
|
|
62
62
|
YANDEX = "yandex"
|
|
63
63
|
NOTION_MCP = "notion-mcp"
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
ASANA = "asana"
|
|
65
|
+
ATLASSIAN = "atlassian"
|
|
66
66
|
CLOUDFLARE_MCP = "cloudflare-mcp"
|
|
67
|
-
|
|
68
|
-
FIGMA_MCP = "figma-mcp"
|
|
69
|
-
GITLAB_MCP = "gitlab-mcp"
|
|
70
|
-
GUSTO_MCP = "gusto-mcp"
|
|
71
|
-
HEROKU_MCP = "heroku-mcp"
|
|
67
|
+
GITLAB = "gitlab"
|
|
72
68
|
HUBSPOT_MCP = "hubspot-mcp"
|
|
73
|
-
INTERCOM_MCP = "intercom-mcp"
|
|
74
69
|
LINEAR_MCP = "linear-mcp"
|
|
75
|
-
PAGERDUTY_MCP = "pagerduty-mcp"
|
|
76
70
|
SENTRY_MCP = "sentry-mcp"
|
|
77
|
-
|
|
78
|
-
SUPABASE_MCP = "supabase-mcp"
|
|
79
|
-
VERCEL_MCP = "vercel-mcp"
|
|
80
|
-
XERO_MCP = "xero-mcp"
|
|
71
|
+
SLACK = "slack"
|
|
81
72
|
end
|
|
82
73
|
end
|
|
83
74
|
end
|