auth0 6.2.0 → 6.4.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 +6 -5
- data/.fern/replay.lock +13 -1
- data/.version +1 -1
- data/CHANGELOG.md +13 -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 +4 -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 +29 -0
- data/lib/auth0/experimentation/experiments/client.rb +367 -0
- data/lib/auth0/experimentation/experiments/types/advance_ramp_request_content.rb +15 -0
- data/lib/auth0/experimentation/experiments/types/create_experiment_request_content.rb +27 -0
- data/lib/auth0/experimentation/experiments/types/list_experiments_request_parameters.rb +21 -0
- data/lib/auth0/experimentation/experiments/types/update_experiment_request_parameters.rb +25 -0
- data/lib/auth0/experimentation/experiments/types/update_experiment_status_request_content.rb +15 -0
- data/lib/auth0/experimentation/feature_flags/client.rb +280 -0
- data/lib/auth0/experimentation/feature_flags/types/create_feature_flag_request_content.rb +17 -0
- data/lib/auth0/experimentation/feature_flags/types/list_feature_flags_request_parameters.rb +19 -0
- data/lib/auth0/experimentation/feature_flags/types/update_feature_flag_request_content.rb +19 -0
- data/lib/auth0/experimentation/feature_flags/types/update_feature_flag_status_request_content.rb +15 -0
- data/lib/auth0/experimentation/feature_flags/variations/client.rb +230 -0
- data/lib/auth0/experimentation/feature_flags/variations/types/create_variation_request_content.rb +21 -0
- data/lib/auth0/experimentation/feature_flags/variations/types/update_variation_request_content.rb +23 -0
- data/lib/auth0/experimentation/segments/client.rb +228 -0
- data/lib/auth0/experimentation/segments/types/create_segment_request_content.rb +17 -0
- data/lib/auth0/experimentation/segments/types/list_segments_request_parameters.rb +17 -0
- data/lib/auth0/experimentation/segments/types/update_segment_request_content.rb +19 -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 -10
- 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/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 +6 -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 +6 -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/allocation_item.rb +27 -0
- data/lib/auth0/types/allocation_request_item.rb +19 -0
- data/lib/auth0/types/{connection_deletion_behavior_enum.rb → allocation_strategy_enum.rb} +3 -3
- data/lib/auth0/types/anonymous_sessions.rb +10 -0
- data/lib/auth0/types/async_approval_notifications_channels_enum.rb +1 -0
- data/lib/auth0/types/authentication_flow_enum.rb +16 -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/client_oidc_backchannel_logout_initiators_enum.rb +1 -0
- data/lib/auth0/types/client_oidc_support_allowed_scopes_enum.rb +14 -0
- data/lib/auth0/types/client_oidc_support_post.rb +15 -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_experiment_response_content.rb +45 -0
- data/lib/auth0/types/create_feature_flag_parameters.rb +23 -0
- data/lib/auth0/types/create_feature_flag_response_content.rb +23 -0
- data/lib/auth0/types/create_organization_all_connection_response_content.rb +2 -0
- data/lib/auth0/types/create_resource_server_response_content.rb +6 -0
- data/lib/auth0/types/create_segment_response_content.rb +21 -0
- data/lib/auth0/types/create_variation_response_content.rb +21 -0
- data/lib/auth0/types/{organization_deletion_behavior_enum.rb → default_config_enum.rb} +3 -3
- data/lib/auth0/types/experiment_list_item.rb +45 -0
- data/lib/auth0/types/experiment_status_enum.rb +15 -0
- data/lib/auth0/types/experiment_transition_status_enum.rb +14 -0
- data/lib/auth0/types/experiment_validation_error.rb +11 -0
- data/lib/auth0/types/feature_flag.rb +23 -0
- data/lib/auth0/types/feature_flag_config_param.rb +13 -0
- data/lib/auth0/types/feature_flag_config_param_type_enum.rb +15 -0
- data/lib/auth0/types/feature_flag_config_params.rb +23 -0
- data/lib/auth0/types/feature_flag_status_enum.rb +13 -0
- data/lib/auth0/types/feature_flag_type_enum.rb +12 -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_experiment_response_content.rb +45 -0
- data/lib/auth0/types/get_feature_flag_response_content.rb +23 -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 +6 -0
- data/lib/auth0/types/get_segment_response_content.rb +21 -0
- data/lib/auth0/types/get_tenant_settings_response_content.rb +2 -0
- data/lib/auth0/types/get_variation_response_content.rb +21 -0
- data/lib/auth0/types/list_experiments_response_content.rb +11 -0
- data/lib/auth0/types/list_feature_flags_response_content.rb +11 -0
- data/lib/auth0/types/list_segments_response_content.rb +11 -0
- data/lib/auth0/types/list_variations_response_content.rb +9 -0
- data/lib/auth0/types/oauth_scope.rb +4 -3
- 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 +6 -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 +55 -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/segment.rb +21 -0
- data/lib/auth0/types/segment_contains_expression.rb +9 -0
- data/lib/auth0/types/segment_ends_with_expression.rb +9 -0
- data/lib/auth0/types/segment_exists_expression.rb +9 -0
- data/lib/auth0/types/segment_match_conditions.rb +30 -0
- data/lib/auth0/types/segment_match_expression.rb +19 -0
- data/lib/auth0/types/segment_not_match_conditions.rb +30 -0
- data/lib/auth0/types/segment_rule.rb +11 -0
- data/lib/auth0/types/segment_starts_with_expression.rb +9 -0
- data/lib/auth0/types/segment_type_enum.rb +12 -0
- data/lib/auth0/types/segment_type_filter_enum.rb +12 -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_experiment_response_content.rb +45 -0
- data/lib/auth0/types/update_experiment_status_response_content.rb +45 -0
- data/lib/auth0/types/update_feature_flag_parameters.rb +23 -0
- data/lib/auth0/types/update_feature_flag_response_content.rb +23 -0
- data/lib/auth0/types/update_feature_flag_status_response_content.rb +23 -0
- data/lib/auth0/types/update_organization_all_connection_response_content.rb +2 -0
- data/lib/auth0/types/update_resource_server_response_content.rb +6 -0
- data/lib/auth0/types/update_segment_response_content.rb +21 -0
- data/lib/auth0/types/update_tenant_settings_response_content.rb +2 -0
- data/lib/auth0/types/update_variation_overrides_map.rb +23 -0
- data/lib/auth0/types/update_variation_response_content.rb +21 -0
- data/lib/auth0/types/validate_experiment_response_content.rb +11 -0
- data/lib/auth0/types/variation.rb +21 -0
- data/lib/auth0/types/variation_overrides_map.rb +23 -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 +75 -23
- 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 +107 -18
- data/wiremock/wiremock-mappings.json +1246 -366
- metadata +108 -19
- 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/organizations/organization_template/client.rb +0 -117
- data/lib/auth0/types/list_organization_templates_paginated_response_content.rb +0 -11
- data/lib/auth0/types/organization_template.rb +0 -39
- data/lib/auth0/types/organization_template_allowed_strategy_enum.rb +0 -17
- data/lib/auth0/types/organization_template_assigned_organization.rb +0 -10
- data/lib/auth0/types/organization_template_role_visibility_enum.rb +0 -13
- data/lib/auth0/types/organization_template_role_visibility_override.rb +0 -12
- data/lib/auth0/types/organization_template_role_visibility_policy.rb +0 -12
- data/lib/auth0/types/organization_template_use_for_organization_discovery.rb +0 -12
|
@@ -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)
|
|
@@ -25,6 +25,15 @@ module Auth0
|
|
|
25
25
|
# @option params [Boolean, nil] :include_totals
|
|
26
26
|
# @option params [Boolean, nil] :include_fields
|
|
27
27
|
#
|
|
28
|
+
# @example
|
|
29
|
+
# client.resource_servers.list(
|
|
30
|
+
# identifiers: ["identifiers"],
|
|
31
|
+
# page: 1,
|
|
32
|
+
# per_page: 1,
|
|
33
|
+
# include_totals: true,
|
|
34
|
+
# include_fields: true
|
|
35
|
+
# )
|
|
36
|
+
#
|
|
28
37
|
# @return [Auth0::Types::ListResourceServerOffsetPaginatedResponseContent]
|
|
29
38
|
def list(request_options: {}, **params)
|
|
30
39
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -56,7 +65,7 @@ module Auth0
|
|
|
56
65
|
end
|
|
57
66
|
code = response.code.to_i
|
|
58
67
|
if code.between?(200, 299)
|
|
59
|
-
parsed_response = Auth0::Types::ListResourceServerOffsetPaginatedResponseContent.load(response.body)
|
|
68
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListResourceServerOffsetPaginatedResponseContent.load(response.body))
|
|
60
69
|
[parsed_response, response]
|
|
61
70
|
else
|
|
62
71
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -76,6 +85,9 @@ module Auth0
|
|
|
76
85
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
77
86
|
# @option request_options [Integer] :timeout_in_seconds
|
|
78
87
|
#
|
|
88
|
+
# @example
|
|
89
|
+
# client.resource_servers.create(identifier: "identifier")
|
|
90
|
+
#
|
|
79
91
|
# @return [Auth0::Types::CreateResourceServerResponseContent]
|
|
80
92
|
def create(request_options: {}, **params)
|
|
81
93
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -93,13 +105,87 @@ module Auth0
|
|
|
93
105
|
end
|
|
94
106
|
code = response.code.to_i
|
|
95
107
|
if code.between?(200, 299)
|
|
96
|
-
Auth0::Types::CreateResourceServerResponseContent.load(response.body)
|
|
108
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateResourceServerResponseContent.load(response.body))
|
|
97
109
|
else
|
|
98
110
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
99
111
|
raise error_class.new(response.body, code: code)
|
|
100
112
|
end
|
|
101
113
|
end
|
|
102
114
|
|
|
115
|
+
# Search resource servers using SCIM or Lucene filter syntax with low-latency, eventually consistent results. Use
|
|
116
|
+
# the parser parameter to specify "scim" or "lucene" syntax (default: "lucene"). This endpoint provides an
|
|
117
|
+
# alternative to the standard GET /resource-servers endpoint with better performance for complex queries.
|
|
118
|
+
# Results may not reflect recent updates immediately.
|
|
119
|
+
#
|
|
120
|
+
# The `signing_secret` field is not supported by this endpoint.
|
|
121
|
+
#
|
|
122
|
+
# @param request_options [Hash]
|
|
123
|
+
# @param params [Hash]
|
|
124
|
+
# @option request_options [String] :base_url
|
|
125
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
126
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
127
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
128
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
129
|
+
# @option params [String, nil] :q
|
|
130
|
+
# @option params [Auth0::Types::SearchParserEnum, nil] :parser
|
|
131
|
+
# @option params [String, nil] :fields
|
|
132
|
+
# @option params [Boolean, nil] :include_fields
|
|
133
|
+
# @option params [Integer, nil] :take
|
|
134
|
+
# @option params [String, nil] :from
|
|
135
|
+
# @option params [Auth0::Types::ResourceServerSortFieldEnum, nil] :sort
|
|
136
|
+
#
|
|
137
|
+
# @example
|
|
138
|
+
# client.resource_servers.search(
|
|
139
|
+
# q: "q",
|
|
140
|
+
# parser: "scim",
|
|
141
|
+
# fields: "fields",
|
|
142
|
+
# include_fields: true,
|
|
143
|
+
# take: 1,
|
|
144
|
+
# from: "from",
|
|
145
|
+
# sort: "identifier"
|
|
146
|
+
# )
|
|
147
|
+
#
|
|
148
|
+
# @return [Auth0::Types::SearchResourceServersResponseContent]
|
|
149
|
+
def search(request_options: {}, **params)
|
|
150
|
+
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
151
|
+
query_params = {}
|
|
152
|
+
query_params["q"] = params[:q] if params.key?(:q)
|
|
153
|
+
query_params["parser"] = params[:parser] if params.key?(:parser)
|
|
154
|
+
query_params["fields"] = params[:fields] if params.key?(:fields)
|
|
155
|
+
query_params["include_fields"] = params[:include_fields] if params.key?(:include_fields)
|
|
156
|
+
query_params["take"] = params.fetch(:take, 50)
|
|
157
|
+
query_params["from"] = params[:from] if params.key?(:from)
|
|
158
|
+
query_params["sort"] = params[:sort] if params.key?(:sort)
|
|
159
|
+
|
|
160
|
+
Auth0::Internal::CursorItemIterator.new(
|
|
161
|
+
cursor_field: :next_,
|
|
162
|
+
item_field: :resource_servers,
|
|
163
|
+
initial_cursor: query_params["from"]
|
|
164
|
+
) do |next_cursor|
|
|
165
|
+
query_params["from"] = next_cursor
|
|
166
|
+
request = Auth0::Internal::JSON::Request.new(
|
|
167
|
+
base_url: request_options[:base_url],
|
|
168
|
+
method: "GET",
|
|
169
|
+
path: "resource-servers/search",
|
|
170
|
+
query: query_params,
|
|
171
|
+
request_options: request_options
|
|
172
|
+
)
|
|
173
|
+
begin
|
|
174
|
+
response = @client.send(request)
|
|
175
|
+
rescue Net::HTTPRequestTimeout
|
|
176
|
+
raise Auth0::Errors::TimeoutError
|
|
177
|
+
end
|
|
178
|
+
code = response.code.to_i
|
|
179
|
+
if code.between?(200, 299)
|
|
180
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::SearchResourceServersResponseContent.load(response.body))
|
|
181
|
+
[parsed_response, response]
|
|
182
|
+
else
|
|
183
|
+
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
184
|
+
raise error_class.new(response.body, code: code)
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
|
|
103
189
|
# Retrieve <a href="https://auth0.com/docs/apis">API</a> details with the given ID.
|
|
104
190
|
#
|
|
105
191
|
# @param request_options [Hash]
|
|
@@ -112,6 +198,12 @@ module Auth0
|
|
|
112
198
|
# @option params [String] :id
|
|
113
199
|
# @option params [Boolean, nil] :include_fields
|
|
114
200
|
#
|
|
201
|
+
# @example
|
|
202
|
+
# client.resource_servers.get(
|
|
203
|
+
# id: "id",
|
|
204
|
+
# include_fields: true
|
|
205
|
+
# )
|
|
206
|
+
#
|
|
115
207
|
# @return [Auth0::Types::GetResourceServerResponseContent]
|
|
116
208
|
def get(request_options: {}, **params)
|
|
117
209
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -132,7 +224,7 @@ module Auth0
|
|
|
132
224
|
end
|
|
133
225
|
code = response.code.to_i
|
|
134
226
|
if code.between?(200, 299)
|
|
135
|
-
Auth0::Types::GetResourceServerResponseContent.load(response.body)
|
|
227
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetResourceServerResponseContent.load(response.body))
|
|
136
228
|
else
|
|
137
229
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
138
230
|
raise error_class.new(response.body, code: code)
|
|
@@ -151,6 +243,9 @@ module Auth0
|
|
|
151
243
|
# @option request_options [Integer] :timeout_in_seconds
|
|
152
244
|
# @option params [String] :id
|
|
153
245
|
#
|
|
246
|
+
# @example
|
|
247
|
+
# client.resource_servers.delete(id: "id")
|
|
248
|
+
#
|
|
154
249
|
# @return [untyped]
|
|
155
250
|
def delete(request_options: {}, **params)
|
|
156
251
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -184,6 +279,9 @@ module Auth0
|
|
|
184
279
|
# @option request_options [Integer] :timeout_in_seconds
|
|
185
280
|
# @option params [String] :id
|
|
186
281
|
#
|
|
282
|
+
# @example
|
|
283
|
+
# client.resource_servers.update(id: "id")
|
|
284
|
+
#
|
|
187
285
|
# @return [Auth0::Types::UpdateResourceServerResponseContent]
|
|
188
286
|
def update(request_options: {}, **params)
|
|
189
287
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -205,7 +303,7 @@ module Auth0
|
|
|
205
303
|
end
|
|
206
304
|
code = response.code.to_i
|
|
207
305
|
if code.between?(200, 299)
|
|
208
|
-
Auth0::Types::UpdateResourceServerResponseContent.load(response.body)
|
|
306
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateResourceServerResponseContent.load(response.body))
|
|
209
307
|
else
|
|
210
308
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
211
309
|
raise error_class.new(response.body, code: code)
|
|
@@ -22,16 +22,22 @@ module Auth0
|
|
|
22
22
|
|
|
23
23
|
field :token_lifetime, -> { Integer }, optional: true, nullable: false
|
|
24
24
|
|
|
25
|
+
field :token_lifetime_for_anonymous_access_tokens, -> { Integer }, optional: true, nullable: false
|
|
26
|
+
|
|
25
27
|
field :token_dialect, -> { Auth0::Types::ResourceServerTokenDialectSchemaEnum }, optional: true, nullable: false
|
|
26
28
|
|
|
27
29
|
field :skip_consent_for_verifiable_first_party_clients, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
28
30
|
|
|
29
31
|
field :enforce_policies, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
30
32
|
|
|
33
|
+
field :access_token, -> { Auth0::Types::ResourceServerAccessToken }, optional: true, nullable: false
|
|
34
|
+
|
|
31
35
|
field :token_encryption, -> { Auth0::Types::ResourceServerTokenEncryption }, optional: true, nullable: false
|
|
32
36
|
|
|
33
37
|
field :consent_policy, -> { Auth0::Types::ResourceServerConsentPolicyEnum }, optional: true, nullable: false
|
|
34
38
|
|
|
39
|
+
field :require_consent_non_repudiation, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
40
|
+
|
|
35
41
|
field :authorization_details, -> { Internal::Types::Array[Object] }, optional: true, nullable: false
|
|
36
42
|
|
|
37
43
|
field :proof_of_possession, -> { Auth0::Types::ResourceServerProofOfPossession }, optional: true, nullable: false
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Auth0
|
|
4
|
+
module ResourceServers
|
|
5
|
+
module Types
|
|
6
|
+
class SearchResourceServersRequestParameters < 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 :fields, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :include_fields, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :take, -> { Integer }, optional: true, nullable: false
|
|
16
|
+
|
|
17
|
+
field :from, -> { String }, optional: true, nullable: false
|
|
18
|
+
|
|
19
|
+
field :sort, -> { Auth0::Types::ResourceServerSortFieldEnum }, optional: true, nullable: false
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -24,14 +24,20 @@ module Auth0
|
|
|
24
24
|
|
|
25
25
|
field :token_lifetime, -> { Integer }, optional: true, nullable: false
|
|
26
26
|
|
|
27
|
+
field :token_lifetime_for_anonymous_access_tokens, -> { Integer }, optional: true, nullable: false
|
|
28
|
+
|
|
27
29
|
field :token_dialect, -> { Auth0::Types::ResourceServerTokenDialectSchemaEnum }, optional: true, nullable: false
|
|
28
30
|
|
|
29
31
|
field :enforce_policies, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
30
32
|
|
|
33
|
+
field :access_token, -> { Auth0::Types::ResourceServerAccessToken }, optional: true, nullable: false
|
|
34
|
+
|
|
31
35
|
field :token_encryption, -> { Auth0::Types::ResourceServerTokenEncryption }, optional: true, nullable: false
|
|
32
36
|
|
|
33
37
|
field :consent_policy, -> { Auth0::Types::ResourceServerConsentPolicyEnum }, optional: true, nullable: false
|
|
34
38
|
|
|
39
|
+
field :require_consent_non_repudiation, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
40
|
+
|
|
35
41
|
field :authorization_details, -> { Internal::Types::Array[Object] }, optional: true, nullable: false
|
|
36
42
|
|
|
37
43
|
field :proof_of_possession, -> { Auth0::Types::ResourceServerProofOfPossession }, optional: true, nullable: false
|
|
@@ -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.risk_assessments.settings.get
|
|
26
|
+
#
|
|
24
27
|
# @return [Auth0::Types::GetRiskAssessmentsSettingsResponseContent]
|
|
25
28
|
def get(request_options: {}, **_params)
|
|
26
29
|
request = Auth0::Internal::JSON::Request.new(
|
|
@@ -36,7 +39,7 @@ module Auth0
|
|
|
36
39
|
end
|
|
37
40
|
code = response.code.to_i
|
|
38
41
|
if code.between?(200, 299)
|
|
39
|
-
Auth0::Types::GetRiskAssessmentsSettingsResponseContent.load(response.body)
|
|
42
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetRiskAssessmentsSettingsResponseContent.load(response.body))
|
|
40
43
|
else
|
|
41
44
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
42
45
|
raise error_class.new(response.body, code: code)
|
|
@@ -53,6 +56,9 @@ module Auth0
|
|
|
53
56
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
54
57
|
# @option request_options [Integer] :timeout_in_seconds
|
|
55
58
|
#
|
|
59
|
+
# @example
|
|
60
|
+
# client.risk_assessments.settings.update(enabled: true)
|
|
61
|
+
#
|
|
56
62
|
# @return [Auth0::Types::UpdateRiskAssessmentsSettingsResponseContent]
|
|
57
63
|
def update(request_options: {}, **params)
|
|
58
64
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -70,7 +76,7 @@ module Auth0
|
|
|
70
76
|
end
|
|
71
77
|
code = response.code.to_i
|
|
72
78
|
if code.between?(200, 299)
|
|
73
|
-
Auth0::Types::UpdateRiskAssessmentsSettingsResponseContent.load(response.body)
|
|
79
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateRiskAssessmentsSettingsResponseContent.load(response.body))
|
|
74
80
|
else
|
|
75
81
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
76
82
|
raise error_class.new(response.body, code: code)
|
|
@@ -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.risk_assessments.settings.new_device.get
|
|
27
|
+
#
|
|
25
28
|
# @return [Auth0::Types::GetRiskAssessmentsSettingsNewDeviceResponseContent]
|
|
26
29
|
def get(request_options: {}, **_params)
|
|
27
30
|
request = Auth0::Internal::JSON::Request.new(
|
|
@@ -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::GetRiskAssessmentsSettingsNewDeviceResponseContent.load(response.body)
|
|
43
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetRiskAssessmentsSettingsNewDeviceResponseContent.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)
|
|
@@ -54,6 +57,9 @@ module Auth0
|
|
|
54
57
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
55
58
|
# @option request_options [Integer] :timeout_in_seconds
|
|
56
59
|
#
|
|
60
|
+
# @example
|
|
61
|
+
# client.risk_assessments.settings.new_device.update(remember_for: 1)
|
|
62
|
+
#
|
|
57
63
|
# @return [Auth0::Types::UpdateRiskAssessmentsSettingsNewDeviceResponseContent]
|
|
58
64
|
def update(request_options: {}, **params)
|
|
59
65
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -71,7 +77,7 @@ module Auth0
|
|
|
71
77
|
end
|
|
72
78
|
code = response.code.to_i
|
|
73
79
|
if code.between?(200, 299)
|
|
74
|
-
Auth0::Types::UpdateRiskAssessmentsSettingsNewDeviceResponseContent.load(response.body)
|
|
80
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateRiskAssessmentsSettingsNewDeviceResponseContent.load(response.body))
|
|
75
81
|
else
|
|
76
82
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
77
83
|
raise error_class.new(response.body, code: code)
|