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
|
@@ -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.organizations.organization_template.get(id: "id")
|
|
28
|
+
#
|
|
26
29
|
# @return [Auth0::Types::OrganizationTemplate]
|
|
27
30
|
def get(request_options: {}, **params)
|
|
28
31
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -39,7 +42,7 @@ module Auth0
|
|
|
39
42
|
end
|
|
40
43
|
code = response.code.to_i
|
|
41
44
|
if code.between?(200, 299)
|
|
42
|
-
Auth0::Types::OrganizationTemplate.load(response.body)
|
|
45
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::OrganizationTemplate.load(response.body))
|
|
43
46
|
else
|
|
44
47
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
45
48
|
raise error_class.new(response.body, code: code)
|
|
@@ -58,6 +61,12 @@ module Auth0
|
|
|
58
61
|
# @option params [String] :id
|
|
59
62
|
# @option params [String] :template_id
|
|
60
63
|
#
|
|
64
|
+
# @example
|
|
65
|
+
# client.organizations.organization_template.assign_organization_template(
|
|
66
|
+
# id: "id",
|
|
67
|
+
# template_id: "template_id"
|
|
68
|
+
# )
|
|
69
|
+
#
|
|
61
70
|
# @return [untyped]
|
|
62
71
|
def assign_organization_template(request_options: {}, **params)
|
|
63
72
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -91,6 +100,12 @@ module Auth0
|
|
|
91
100
|
# @option params [String] :id
|
|
92
101
|
# @option params [String] :template_id
|
|
93
102
|
#
|
|
103
|
+
# @example
|
|
104
|
+
# client.organizations.organization_template.unassign_organization_template(
|
|
105
|
+
# id: "id",
|
|
106
|
+
# template_id: "template_id"
|
|
107
|
+
# )
|
|
108
|
+
#
|
|
94
109
|
# @return [untyped]
|
|
95
110
|
def unassign_organization_template(request_options: {}, **params)
|
|
96
111
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -26,6 +26,14 @@ module Auth0
|
|
|
26
26
|
# @option params [String, nil] :from
|
|
27
27
|
# @option params [Integer, nil] :take
|
|
28
28
|
#
|
|
29
|
+
# @example
|
|
30
|
+
# client.organizations.roles.groups.list(
|
|
31
|
+
# organization_id: "organization_id",
|
|
32
|
+
# role_id: "role_id",
|
|
33
|
+
# from: "from",
|
|
34
|
+
# take: 1
|
|
35
|
+
# )
|
|
36
|
+
#
|
|
29
37
|
# @return [Auth0::Types::ListOrganizationRoleGroupsResponseContent]
|
|
30
38
|
def list(request_options: {}, **params)
|
|
31
39
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -53,7 +61,7 @@ module Auth0
|
|
|
53
61
|
end
|
|
54
62
|
code = response.code.to_i
|
|
55
63
|
if code.between?(200, 299)
|
|
56
|
-
parsed_response = Auth0::Types::ListOrganizationRoleGroupsResponseContent.load(response.body)
|
|
64
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationRoleGroupsResponseContent.load(response.body))
|
|
57
65
|
[parsed_response, response]
|
|
58
66
|
else
|
|
59
67
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -34,6 +34,16 @@ module Auth0
|
|
|
34
34
|
# @option params [String, nil] :fields
|
|
35
35
|
# @option params [Boolean, nil] :include_fields
|
|
36
36
|
#
|
|
37
|
+
# @example
|
|
38
|
+
# client.organizations.roles.members.list(
|
|
39
|
+
# id: "id",
|
|
40
|
+
# role_id: "role_id",
|
|
41
|
+
# from: "from",
|
|
42
|
+
# take: 1,
|
|
43
|
+
# fields: "fields",
|
|
44
|
+
# include_fields: true
|
|
45
|
+
# )
|
|
46
|
+
#
|
|
37
47
|
# @return [Auth0::Types::ListOrganizationRoleMembersResponseContent]
|
|
38
48
|
def list(request_options: {}, **params)
|
|
39
49
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -63,7 +73,7 @@ module Auth0
|
|
|
63
73
|
end
|
|
64
74
|
code = response.code.to_i
|
|
65
75
|
if code.between?(200, 299)
|
|
66
|
-
parsed_response = Auth0::Types::ListOrganizationRoleMembersResponseContent.load(response.body)
|
|
76
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationRoleMembersResponseContent.load(response.body))
|
|
67
77
|
[parsed_response, response]
|
|
68
78
|
else
|
|
69
79
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module Organizations
|
|
5
|
+
module Types
|
|
6
|
+
class SearchOrganizationsRequestParameters < Internal::Types::Model
|
|
7
|
+
field :q, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :parser, -> { Auth0::Types::SearchParserEnum }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :take, -> { Integer }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :from, -> { String }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :sort, -> { Auth0::Types::OrganizationSortFieldEnum }, optional: true, nullable: false
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
data/lib/auth0/prompts/client.rb
CHANGED
|
@@ -24,6 +24,9 @@ module Auth0
|
|
|
24
24
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
25
25
|
# @option request_options [Integer] :timeout_in_seconds
|
|
26
26
|
#
|
|
27
|
+
# @example
|
|
28
|
+
# client.prompts.get_settings
|
|
29
|
+
#
|
|
27
30
|
# @return [Auth0::Types::GetSettingsResponseContent]
|
|
28
31
|
def get_settings(request_options: {}, **_params)
|
|
29
32
|
request = Auth0::Internal::JSON::Request.new(
|
|
@@ -39,7 +42,7 @@ module Auth0
|
|
|
39
42
|
end
|
|
40
43
|
code = response.code.to_i
|
|
41
44
|
if code.between?(200, 299)
|
|
42
|
-
Auth0::Types::GetSettingsResponseContent.load(response.body)
|
|
45
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetSettingsResponseContent.load(response.body))
|
|
43
46
|
else
|
|
44
47
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
45
48
|
raise error_class.new(response.body, code: code)
|
|
@@ -60,6 +63,9 @@ module Auth0
|
|
|
60
63
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
61
64
|
# @option request_options [Integer] :timeout_in_seconds
|
|
62
65
|
#
|
|
66
|
+
# @example
|
|
67
|
+
# client.prompts.update_settings
|
|
68
|
+
#
|
|
63
69
|
# @return [Auth0::Types::UpdateSettingsResponseContent]
|
|
64
70
|
def update_settings(request_options: {}, **params)
|
|
65
71
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -77,7 +83,7 @@ module Auth0
|
|
|
77
83
|
end
|
|
78
84
|
code = response.code.to_i
|
|
79
85
|
if code.between?(200, 299)
|
|
80
|
-
Auth0::Types::UpdateSettingsResponseContent.load(response.body)
|
|
86
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateSettingsResponseContent.load(response.body))
|
|
81
87
|
else
|
|
82
88
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
83
89
|
raise error_class.new(response.body, code: code)
|
|
@@ -23,6 +23,12 @@ module Auth0
|
|
|
23
23
|
# @option params [Auth0::Types::PromptGroupNameEnum] :prompt
|
|
24
24
|
# @option params [Auth0::Types::PromptLanguageEnum] :language
|
|
25
25
|
#
|
|
26
|
+
# @example
|
|
27
|
+
# client.prompts.custom_text.get(
|
|
28
|
+
# prompt: "login",
|
|
29
|
+
# language: "am"
|
|
30
|
+
# )
|
|
31
|
+
#
|
|
26
32
|
# @return [Hash[String, Object]]
|
|
27
33
|
def get(request_options: {}, **params)
|
|
28
34
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -39,7 +45,7 @@ module Auth0
|
|
|
39
45
|
end
|
|
40
46
|
code = response.code.to_i
|
|
41
47
|
if code.between?(200, 299)
|
|
42
|
-
Auth0::Types::GetCustomTextsByLanguageResponseContent.load(response.body)
|
|
48
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetCustomTextsByLanguageResponseContent.load(response.body))
|
|
43
49
|
else
|
|
44
50
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
45
51
|
raise error_class.new(response.body, code: code)
|
|
@@ -58,14 +64,26 @@ module Auth0
|
|
|
58
64
|
# @option params [Auth0::Types::PromptGroupNameEnum] :prompt
|
|
59
65
|
# @option params [Auth0::Types::PromptLanguageEnum] :language
|
|
60
66
|
#
|
|
67
|
+
# @example
|
|
68
|
+
# client.prompts.custom_text.set(
|
|
69
|
+
# prompt: "login",
|
|
70
|
+
# language: "am",
|
|
71
|
+
# request: {
|
|
72
|
+
# key: "value"
|
|
73
|
+
# }
|
|
74
|
+
# )
|
|
75
|
+
#
|
|
61
76
|
# @return [untyped]
|
|
62
77
|
def set(request_options: {}, **params)
|
|
63
78
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
79
|
+
path_param_names = %i[prompt language]
|
|
80
|
+
body_params = params.except(*path_param_names)
|
|
81
|
+
|
|
64
82
|
request = Auth0::Internal::JSON::Request.new(
|
|
65
83
|
base_url: request_options[:base_url],
|
|
66
84
|
method: "PUT",
|
|
67
85
|
path: "prompts/#{URI.encode_uri_component(params[:prompt].to_s)}/custom-text/#{URI.encode_uri_component(params[:language].to_s)}",
|
|
68
|
-
body:
|
|
86
|
+
body: body_params,
|
|
69
87
|
request_options: request_options
|
|
70
88
|
)
|
|
71
89
|
begin
|
|
@@ -22,6 +22,9 @@ module Auth0
|
|
|
22
22
|
# @option request_options [Integer] :timeout_in_seconds
|
|
23
23
|
# @option params [Auth0::Types::PartialGroupsEnum] :prompt
|
|
24
24
|
#
|
|
25
|
+
# @example
|
|
26
|
+
# client.prompts.partials.get(prompt: "login")
|
|
27
|
+
#
|
|
25
28
|
# @return [Hash[String, Object]]
|
|
26
29
|
def get(request_options: {}, **params)
|
|
27
30
|
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::GetPartialsResponseContent.load(response.body)
|
|
44
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetPartialsResponseContent.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)
|
|
@@ -56,14 +59,25 @@ module Auth0
|
|
|
56
59
|
# @option request_options [Integer] :timeout_in_seconds
|
|
57
60
|
# @option params [Auth0::Types::PartialGroupsEnum] :prompt
|
|
58
61
|
#
|
|
62
|
+
# @example
|
|
63
|
+
# client.prompts.partials.set(
|
|
64
|
+
# prompt: "login",
|
|
65
|
+
# request: {
|
|
66
|
+
# key: "value"
|
|
67
|
+
# }
|
|
68
|
+
# )
|
|
69
|
+
#
|
|
59
70
|
# @return [untyped]
|
|
60
71
|
def set(request_options: {}, **params)
|
|
61
72
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
73
|
+
path_param_names = %i[prompt]
|
|
74
|
+
body_params = params.except(*path_param_names)
|
|
75
|
+
|
|
62
76
|
request = Auth0::Internal::JSON::Request.new(
|
|
63
77
|
base_url: request_options[:base_url],
|
|
64
78
|
method: "PUT",
|
|
65
79
|
path: "prompts/#{URI.encode_uri_component(params[:prompt].to_s)}/partials",
|
|
66
|
-
body:
|
|
80
|
+
body: body_params,
|
|
67
81
|
request_options: request_options
|
|
68
82
|
)
|
|
69
83
|
begin
|
|
@@ -29,6 +29,18 @@ module Auth0
|
|
|
29
29
|
# @option params [String, nil] :screen
|
|
30
30
|
# @option params [Auth0::Types::AculRenderingModeEnum, nil] :rendering_mode
|
|
31
31
|
#
|
|
32
|
+
# @example
|
|
33
|
+
# client.prompts.rendering.list(
|
|
34
|
+
# fields: "fields",
|
|
35
|
+
# include_fields: true,
|
|
36
|
+
# page: 1,
|
|
37
|
+
# per_page: 1,
|
|
38
|
+
# include_totals: true,
|
|
39
|
+
# prompt: "prompt",
|
|
40
|
+
# screen: "screen",
|
|
41
|
+
# rendering_mode: "advanced"
|
|
42
|
+
# )
|
|
43
|
+
#
|
|
32
44
|
# @return [Auth0::Types::ListAculsOffsetPaginatedResponseContent]
|
|
33
45
|
def list(request_options: {}, **params)
|
|
34
46
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -63,7 +75,7 @@ module Auth0
|
|
|
63
75
|
end
|
|
64
76
|
code = response.code.to_i
|
|
65
77
|
if code.between?(200, 299)
|
|
66
|
-
parsed_response = Auth0::Types::ListAculsOffsetPaginatedResponseContent.load(response.body)
|
|
78
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListAculsOffsetPaginatedResponseContent.load(response.body))
|
|
67
79
|
[parsed_response, response]
|
|
68
80
|
else
|
|
69
81
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -84,6 +96,12 @@ module Auth0
|
|
|
84
96
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
85
97
|
# @option request_options [Integer] :timeout_in_seconds
|
|
86
98
|
#
|
|
99
|
+
# @example
|
|
100
|
+
# client.prompts.rendering.bulk_update(configs: [{
|
|
101
|
+
# prompt: "login",
|
|
102
|
+
# screen: "login"
|
|
103
|
+
# }])
|
|
104
|
+
#
|
|
87
105
|
# @return [Auth0::Types::BulkUpdateAculResponseContent]
|
|
88
106
|
def bulk_update(request_options: {}, **params)
|
|
89
107
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -101,7 +119,7 @@ module Auth0
|
|
|
101
119
|
end
|
|
102
120
|
code = response.code.to_i
|
|
103
121
|
if code.between?(200, 299)
|
|
104
|
-
Auth0::Types::BulkUpdateAculResponseContent.load(response.body)
|
|
122
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::BulkUpdateAculResponseContent.load(response.body))
|
|
105
123
|
else
|
|
106
124
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
107
125
|
raise error_class.new(response.body, code: code)
|
|
@@ -120,6 +138,12 @@ module Auth0
|
|
|
120
138
|
# @option params [Auth0::Types::PromptGroupNameEnum] :prompt
|
|
121
139
|
# @option params [Auth0::Types::ScreenGroupNameEnum] :screen
|
|
122
140
|
#
|
|
141
|
+
# @example
|
|
142
|
+
# client.prompts.rendering.get(
|
|
143
|
+
# prompt: "login",
|
|
144
|
+
# screen: "login"
|
|
145
|
+
# )
|
|
146
|
+
#
|
|
123
147
|
# @return [Auth0::Types::GetAculResponseContent]
|
|
124
148
|
def get(request_options: {}, **params)
|
|
125
149
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -136,7 +160,7 @@ module Auth0
|
|
|
136
160
|
end
|
|
137
161
|
code = response.code.to_i
|
|
138
162
|
if code.between?(200, 299)
|
|
139
|
-
Auth0::Types::GetAculResponseContent.load(response.body)
|
|
163
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetAculResponseContent.load(response.body))
|
|
140
164
|
else
|
|
141
165
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
142
166
|
raise error_class.new(response.body, code: code)
|
|
@@ -157,6 +181,12 @@ module Auth0
|
|
|
157
181
|
# @option params [Auth0::Types::PromptGroupNameEnum] :prompt
|
|
158
182
|
# @option params [Auth0::Types::ScreenGroupNameEnum] :screen
|
|
159
183
|
#
|
|
184
|
+
# @example
|
|
185
|
+
# client.prompts.rendering.update(
|
|
186
|
+
# prompt: "login",
|
|
187
|
+
# screen: "login"
|
|
188
|
+
# )
|
|
189
|
+
#
|
|
160
190
|
# @return [Auth0::Types::UpdateAculResponseContent]
|
|
161
191
|
def update(request_options: {}, **params)
|
|
162
192
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -178,7 +208,7 @@ module Auth0
|
|
|
178
208
|
end
|
|
179
209
|
code = response.code.to_i
|
|
180
210
|
if code.between?(200, 299)
|
|
181
|
-
Auth0::Types::UpdateAculResponseContent.load(response.body)
|
|
211
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateAculResponseContent.load(response.body))
|
|
182
212
|
else
|
|
183
213
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
184
214
|
raise error_class.new(response.body, code: code)
|
|
@@ -23,6 +23,15 @@ module Auth0
|
|
|
23
23
|
# @option params [Integer, nil] :take
|
|
24
24
|
# @option params [String, nil] :from
|
|
25
25
|
#
|
|
26
|
+
# @example
|
|
27
|
+
# client.rate_limit_policies.list(
|
|
28
|
+
# resource: "oauth_authentication_api",
|
|
29
|
+
# consumer: "client",
|
|
30
|
+
# consumer_selector: "consumer_selector",
|
|
31
|
+
# take: 1,
|
|
32
|
+
# from: "from"
|
|
33
|
+
# )
|
|
34
|
+
#
|
|
26
35
|
# @return [Auth0::Types::ListRateLimitPoliciesPaginatedResponseContent]
|
|
27
36
|
def list(request_options: {}, **params)
|
|
28
37
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -53,7 +62,7 @@ module Auth0
|
|
|
53
62
|
end
|
|
54
63
|
code = response.code.to_i
|
|
55
64
|
if code.between?(200, 299)
|
|
56
|
-
parsed_response = Auth0::Types::ListRateLimitPoliciesPaginatedResponseContent.load(response.body)
|
|
65
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListRateLimitPoliciesPaginatedResponseContent.load(response.body))
|
|
57
66
|
[parsed_response, response]
|
|
58
67
|
else
|
|
59
68
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -70,6 +79,16 @@ module Auth0
|
|
|
70
79
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
71
80
|
# @option request_options [Integer] :timeout_in_seconds
|
|
72
81
|
#
|
|
82
|
+
# @example
|
|
83
|
+
# client.rate_limit_policies.create(
|
|
84
|
+
# resource: "oauth_authentication_api",
|
|
85
|
+
# consumer: "client",
|
|
86
|
+
# consumer_selector: "consumer_selector",
|
|
87
|
+
# configuration: {
|
|
88
|
+
# action: "allow"
|
|
89
|
+
# }
|
|
90
|
+
# )
|
|
91
|
+
#
|
|
73
92
|
# @return [Auth0::Types::CreateRateLimitPolicyResponseContent]
|
|
74
93
|
def create(request_options: {}, **params)
|
|
75
94
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -87,7 +106,7 @@ module Auth0
|
|
|
87
106
|
end
|
|
88
107
|
code = response.code.to_i
|
|
89
108
|
if code.between?(200, 299)
|
|
90
|
-
Auth0::Types::CreateRateLimitPolicyResponseContent.load(response.body)
|
|
109
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateRateLimitPolicyResponseContent.load(response.body))
|
|
91
110
|
else
|
|
92
111
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
93
112
|
raise error_class.new(response.body, code: code)
|
|
@@ -103,6 +122,9 @@ module Auth0
|
|
|
103
122
|
# @option request_options [Integer] :timeout_in_seconds
|
|
104
123
|
# @option params [String] :id
|
|
105
124
|
#
|
|
125
|
+
# @example
|
|
126
|
+
# client.rate_limit_policies.get(id: "id")
|
|
127
|
+
#
|
|
106
128
|
# @return [Auth0::Types::GetRateLimitPolicyResponseContent]
|
|
107
129
|
def get(request_options: {}, **params)
|
|
108
130
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -119,7 +141,7 @@ module Auth0
|
|
|
119
141
|
end
|
|
120
142
|
code = response.code.to_i
|
|
121
143
|
if code.between?(200, 299)
|
|
122
|
-
Auth0::Types::GetRateLimitPolicyResponseContent.load(response.body)
|
|
144
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetRateLimitPolicyResponseContent.load(response.body))
|
|
123
145
|
else
|
|
124
146
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
125
147
|
raise error_class.new(response.body, code: code)
|
|
@@ -135,6 +157,9 @@ module Auth0
|
|
|
135
157
|
# @option request_options [Integer] :timeout_in_seconds
|
|
136
158
|
# @option params [String] :id
|
|
137
159
|
#
|
|
160
|
+
# @example
|
|
161
|
+
# client.rate_limit_policies.delete(id: "id")
|
|
162
|
+
#
|
|
138
163
|
# @return [untyped]
|
|
139
164
|
def delete(request_options: {}, **params)
|
|
140
165
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -165,6 +190,14 @@ module Auth0
|
|
|
165
190
|
# @option request_options [Integer] :timeout_in_seconds
|
|
166
191
|
# @option params [String] :id
|
|
167
192
|
#
|
|
193
|
+
# @example
|
|
194
|
+
# client.rate_limit_policies.update(
|
|
195
|
+
# id: "id",
|
|
196
|
+
# configuration: {
|
|
197
|
+
# action: "allow"
|
|
198
|
+
# }
|
|
199
|
+
# )
|
|
200
|
+
#
|
|
168
201
|
# @return [Auth0::Types::UpdateRateLimitPolicyResponseContent]
|
|
169
202
|
def update(request_options: {}, **params)
|
|
170
203
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -186,7 +219,7 @@ module Auth0
|
|
|
186
219
|
end
|
|
187
220
|
code = response.code.to_i
|
|
188
221
|
if code.between?(200, 299)
|
|
189
|
-
Auth0::Types::UpdateRateLimitPolicyResponseContent.load(response.body)
|
|
222
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateRateLimitPolicyResponseContent.load(response.body))
|
|
190
223
|
else
|
|
191
224
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
192
225
|
raise error_class.new(response.body, code: code)
|
|
@@ -27,6 +27,16 @@ module Auth0
|
|
|
27
27
|
# @option params [String, nil] :fields
|
|
28
28
|
# @option params [Boolean, nil] :include_fields
|
|
29
29
|
#
|
|
30
|
+
# @example
|
|
31
|
+
# client.refresh_tokens.list(
|
|
32
|
+
# user_id: "user_id",
|
|
33
|
+
# client_id: "client_id",
|
|
34
|
+
# from: "from",
|
|
35
|
+
# take: 1,
|
|
36
|
+
# fields: "fields",
|
|
37
|
+
# include_fields: true
|
|
38
|
+
# )
|
|
39
|
+
#
|
|
30
40
|
# @return [Auth0::Types::GetRefreshTokensPaginatedResponseContent]
|
|
31
41
|
def list(request_options: {}, **params)
|
|
32
42
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -58,7 +68,7 @@ module Auth0
|
|
|
58
68
|
end
|
|
59
69
|
code = response.code.to_i
|
|
60
70
|
if code.between?(200, 299)
|
|
61
|
-
parsed_response = Auth0::Types::GetRefreshTokensPaginatedResponseContent.load(response.body)
|
|
71
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::GetRefreshTokensPaginatedResponseContent.load(response.body))
|
|
62
72
|
[parsed_response, response]
|
|
63
73
|
else
|
|
64
74
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -77,6 +87,9 @@ module Auth0
|
|
|
77
87
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
78
88
|
# @option request_options [Integer] :timeout_in_seconds
|
|
79
89
|
#
|
|
90
|
+
# @example
|
|
91
|
+
# client.refresh_tokens.revoke
|
|
92
|
+
#
|
|
80
93
|
# @return [untyped]
|
|
81
94
|
def revoke(request_options: {}, **params)
|
|
82
95
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -110,6 +123,9 @@ module Auth0
|
|
|
110
123
|
# @option request_options [Integer] :timeout_in_seconds
|
|
111
124
|
# @option params [String] :id
|
|
112
125
|
#
|
|
126
|
+
# @example
|
|
127
|
+
# client.refresh_tokens.get(id: "id")
|
|
128
|
+
#
|
|
113
129
|
# @return [Auth0::Types::GetRefreshTokenResponseContent]
|
|
114
130
|
def get(request_options: {}, **params)
|
|
115
131
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -126,7 +142,7 @@ module Auth0
|
|
|
126
142
|
end
|
|
127
143
|
code = response.code.to_i
|
|
128
144
|
if code.between?(200, 299)
|
|
129
|
-
Auth0::Types::GetRefreshTokenResponseContent.load(response.body)
|
|
145
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetRefreshTokenResponseContent.load(response.body))
|
|
130
146
|
else
|
|
131
147
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
132
148
|
raise error_class.new(response.body, code: code)
|
|
@@ -144,6 +160,9 @@ module Auth0
|
|
|
144
160
|
# @option request_options [Integer] :timeout_in_seconds
|
|
145
161
|
# @option params [String] :id
|
|
146
162
|
#
|
|
163
|
+
# @example
|
|
164
|
+
# client.refresh_tokens.delete(id: "id")
|
|
165
|
+
#
|
|
147
166
|
# @return [untyped]
|
|
148
167
|
def delete(request_options: {}, **params)
|
|
149
168
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -176,6 +195,9 @@ module Auth0
|
|
|
176
195
|
# @option request_options [Integer] :timeout_in_seconds
|
|
177
196
|
# @option params [String] :id
|
|
178
197
|
#
|
|
198
|
+
# @example
|
|
199
|
+
# client.refresh_tokens.update(id: "id")
|
|
200
|
+
#
|
|
179
201
|
# @return [Auth0::Types::UpdateRefreshTokenResponseContent]
|
|
180
202
|
def update(request_options: {}, **params)
|
|
181
203
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -197,7 +219,7 @@ module Auth0
|
|
|
197
219
|
end
|
|
198
220
|
code = response.code.to_i
|
|
199
221
|
if code.between?(200, 299)
|
|
200
|
-
Auth0::Types::UpdateRefreshTokenResponseContent.load(response.body)
|
|
222
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateRefreshTokenResponseContent.load(response.body))
|
|
201
223
|
else
|
|
202
224
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
203
225
|
raise error_class.new(response.body, code: code)
|