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
|
@@ -27,6 +27,14 @@ module Auth0
|
|
|
27
27
|
# @option params [Integer, nil] :per_page
|
|
28
28
|
# @option params [Boolean, nil] :include_totals
|
|
29
29
|
#
|
|
30
|
+
# @example
|
|
31
|
+
# client.organizations.enabled_connections.list(
|
|
32
|
+
# id: "id",
|
|
33
|
+
# page: 1,
|
|
34
|
+
# per_page: 1,
|
|
35
|
+
# include_totals: true
|
|
36
|
+
# )
|
|
37
|
+
#
|
|
30
38
|
# @return [Auth0::Types::ListOrganizationConnectionsOffsetPaginatedResponseContent]
|
|
31
39
|
def list(request_options: {}, **params)
|
|
32
40
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -56,7 +64,7 @@ module Auth0
|
|
|
56
64
|
end
|
|
57
65
|
code = response.code.to_i
|
|
58
66
|
if code.between?(200, 299)
|
|
59
|
-
parsed_response = Auth0::Types::ListOrganizationConnectionsOffsetPaginatedResponseContent.load(response.body)
|
|
67
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationConnectionsOffsetPaginatedResponseContent.load(response.body))
|
|
60
68
|
[parsed_response, response]
|
|
61
69
|
else
|
|
62
70
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -80,6 +88,12 @@ module Auth0
|
|
|
80
88
|
# @option request_options [Integer] :timeout_in_seconds
|
|
81
89
|
# @option params [String] :id
|
|
82
90
|
#
|
|
91
|
+
# @example
|
|
92
|
+
# client.organizations.enabled_connections.add(
|
|
93
|
+
# id: "id",
|
|
94
|
+
# connection_id: "connection_id"
|
|
95
|
+
# )
|
|
96
|
+
#
|
|
83
97
|
# @return [Auth0::Types::AddOrganizationConnectionResponseContent]
|
|
84
98
|
def add(request_options: {}, **params)
|
|
85
99
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -101,7 +115,7 @@ module Auth0
|
|
|
101
115
|
end
|
|
102
116
|
code = response.code.to_i
|
|
103
117
|
if code.between?(200, 299)
|
|
104
|
-
Auth0::Types::AddOrganizationConnectionResponseContent.load(response.body)
|
|
118
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::AddOrganizationConnectionResponseContent.load(response.body))
|
|
105
119
|
else
|
|
106
120
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
107
121
|
raise error_class.new(response.body, code: code)
|
|
@@ -122,6 +136,12 @@ module Auth0
|
|
|
122
136
|
# @option params [String] :id
|
|
123
137
|
# @option params [String] :connection_id
|
|
124
138
|
#
|
|
139
|
+
# @example
|
|
140
|
+
# client.organizations.enabled_connections.get(
|
|
141
|
+
# id: "id",
|
|
142
|
+
# connection_id: "connectionId"
|
|
143
|
+
# )
|
|
144
|
+
#
|
|
125
145
|
# @return [Auth0::Types::GetOrganizationConnectionResponseContent]
|
|
126
146
|
def get(request_options: {}, **params)
|
|
127
147
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -138,7 +158,7 @@ module Auth0
|
|
|
138
158
|
end
|
|
139
159
|
code = response.code.to_i
|
|
140
160
|
if code.between?(200, 299)
|
|
141
|
-
Auth0::Types::GetOrganizationConnectionResponseContent.load(response.body)
|
|
161
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetOrganizationConnectionResponseContent.load(response.body))
|
|
142
162
|
else
|
|
143
163
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
144
164
|
raise error_class.new(response.body, code: code)
|
|
@@ -160,6 +180,12 @@ module Auth0
|
|
|
160
180
|
# @option params [String] :id
|
|
161
181
|
# @option params [String] :connection_id
|
|
162
182
|
#
|
|
183
|
+
# @example
|
|
184
|
+
# client.organizations.enabled_connections.delete(
|
|
185
|
+
# id: "id",
|
|
186
|
+
# connection_id: "connectionId"
|
|
187
|
+
# )
|
|
188
|
+
#
|
|
163
189
|
# @return [untyped]
|
|
164
190
|
def delete(request_options: {}, **params)
|
|
165
191
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -193,6 +219,12 @@ module Auth0
|
|
|
193
219
|
# @option params [String] :id
|
|
194
220
|
# @option params [String] :connection_id
|
|
195
221
|
#
|
|
222
|
+
# @example
|
|
223
|
+
# client.organizations.enabled_connections.update(
|
|
224
|
+
# id: "id",
|
|
225
|
+
# connection_id: "connectionId"
|
|
226
|
+
# )
|
|
227
|
+
#
|
|
196
228
|
# @return [Auth0::Types::UpdateOrganizationConnectionResponseContent]
|
|
197
229
|
def update(request_options: {}, **params)
|
|
198
230
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -214,7 +246,7 @@ module Auth0
|
|
|
214
246
|
end
|
|
215
247
|
code = response.code.to_i
|
|
216
248
|
if code.between?(200, 299)
|
|
217
|
-
Auth0::Types::UpdateOrganizationConnectionResponseContent.load(response.body)
|
|
249
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateOrganizationConnectionResponseContent.load(response.body))
|
|
218
250
|
else
|
|
219
251
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
220
252
|
raise error_class.new(response.body, code: code)
|
|
@@ -24,6 +24,13 @@ module Auth0
|
|
|
24
24
|
# @option params [String, nil] :from
|
|
25
25
|
# @option params [Integer, nil] :take
|
|
26
26
|
#
|
|
27
|
+
# @example
|
|
28
|
+
# client.organizations.groups.list(
|
|
29
|
+
# organization_id: "organization_id",
|
|
30
|
+
# from: "from",
|
|
31
|
+
# take: 1
|
|
32
|
+
# )
|
|
33
|
+
#
|
|
27
34
|
# @return [Auth0::Types::ListOrganizationGroupsResponseContent]
|
|
28
35
|
def list(request_options: {}, **params)
|
|
29
36
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -51,7 +58,7 @@ module Auth0
|
|
|
51
58
|
end
|
|
52
59
|
code = response.code.to_i
|
|
53
60
|
if code.between?(200, 299)
|
|
54
|
-
parsed_response = Auth0::Types::ListOrganizationGroupsResponseContent.load(response.body)
|
|
61
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationGroupsResponseContent.load(response.body))
|
|
55
62
|
[parsed_response, response]
|
|
56
63
|
else
|
|
57
64
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -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.groups.roles.list(
|
|
31
|
+
# organization_id: "organization_id",
|
|
32
|
+
# group_id: "group_id",
|
|
33
|
+
# from: "from",
|
|
34
|
+
# take: 1
|
|
35
|
+
# )
|
|
36
|
+
#
|
|
29
37
|
# @return [Auth0::Types::ListOrganizationGroupRolesResponseContent]
|
|
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::ListOrganizationGroupRolesResponseContent.load(response.body)
|
|
64
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationGroupRolesResponseContent.load(response.body))
|
|
57
65
|
[parsed_response, response]
|
|
58
66
|
else
|
|
59
67
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -74,6 +82,13 @@ module Auth0
|
|
|
74
82
|
# @option params [String] :organization_id
|
|
75
83
|
# @option params [String] :group_id
|
|
76
84
|
#
|
|
85
|
+
# @example
|
|
86
|
+
# client.organizations.groups.roles.create(
|
|
87
|
+
# organization_id: "organization_id",
|
|
88
|
+
# group_id: "group_id",
|
|
89
|
+
# roles: ["roles"]
|
|
90
|
+
# )
|
|
91
|
+
#
|
|
77
92
|
# @return [untyped]
|
|
78
93
|
def create(request_options: {}, **params)
|
|
79
94
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -112,6 +127,13 @@ module Auth0
|
|
|
112
127
|
# @option params [String] :organization_id
|
|
113
128
|
# @option params [String] :group_id
|
|
114
129
|
#
|
|
130
|
+
# @example
|
|
131
|
+
# client.organizations.groups.roles.delete(
|
|
132
|
+
# organization_id: "organization_id",
|
|
133
|
+
# group_id: "group_id",
|
|
134
|
+
# roles: ["roles"]
|
|
135
|
+
# )
|
|
136
|
+
#
|
|
115
137
|
# @return [untyped]
|
|
116
138
|
def delete(request_options: {}, **params)
|
|
117
139
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -31,6 +31,17 @@ module Auth0
|
|
|
31
31
|
# @option params [Boolean, nil] :include_fields
|
|
32
32
|
# @option params [String, nil] :sort
|
|
33
33
|
#
|
|
34
|
+
# @example
|
|
35
|
+
# client.organizations.invitations.list(
|
|
36
|
+
# id: "id",
|
|
37
|
+
# page: 1,
|
|
38
|
+
# per_page: 1,
|
|
39
|
+
# include_totals: true,
|
|
40
|
+
# fields: "fields",
|
|
41
|
+
# include_fields: true,
|
|
42
|
+
# sort: "sort"
|
|
43
|
+
# )
|
|
44
|
+
#
|
|
34
45
|
# @return [Auth0::Types::ListOrganizationInvitationsOffsetPaginatedResponseContent]
|
|
35
46
|
def list(request_options: {}, **params)
|
|
36
47
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -63,7 +74,7 @@ module Auth0
|
|
|
63
74
|
end
|
|
64
75
|
code = response.code.to_i
|
|
65
76
|
if code.between?(200, 299)
|
|
66
|
-
parsed_response = Auth0::Types::ListOrganizationInvitationsOffsetPaginatedResponseContent.load(response.body)
|
|
77
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationInvitationsOffsetPaginatedResponseContent.load(response.body))
|
|
67
78
|
[parsed_response, response]
|
|
68
79
|
else
|
|
69
80
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -86,6 +97,18 @@ module Auth0
|
|
|
86
97
|
# @option request_options [Integer] :timeout_in_seconds
|
|
87
98
|
# @option params [String] :id
|
|
88
99
|
#
|
|
100
|
+
# @example
|
|
101
|
+
# client.organizations.invitations.create(
|
|
102
|
+
# id: "id",
|
|
103
|
+
# inviter: {
|
|
104
|
+
# name: "name"
|
|
105
|
+
# },
|
|
106
|
+
# invitee: {
|
|
107
|
+
# email: "email"
|
|
108
|
+
# },
|
|
109
|
+
# client_id: "client_id"
|
|
110
|
+
# )
|
|
111
|
+
#
|
|
89
112
|
# @return [Auth0::Types::CreateOrganizationInvitationResponseContent]
|
|
90
113
|
def create(request_options: {}, **params)
|
|
91
114
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -107,7 +130,7 @@ module Auth0
|
|
|
107
130
|
end
|
|
108
131
|
code = response.code.to_i
|
|
109
132
|
if code.between?(200, 299)
|
|
110
|
-
Auth0::Types::CreateOrganizationInvitationResponseContent.load(response.body)
|
|
133
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateOrganizationInvitationResponseContent.load(response.body))
|
|
111
134
|
else
|
|
112
135
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
113
136
|
raise error_class.new(response.body, code: code)
|
|
@@ -126,6 +149,14 @@ module Auth0
|
|
|
126
149
|
# @option params [String, nil] :fields
|
|
127
150
|
# @option params [Boolean, nil] :include_fields
|
|
128
151
|
#
|
|
152
|
+
# @example
|
|
153
|
+
# client.organizations.invitations.get(
|
|
154
|
+
# id: "id",
|
|
155
|
+
# invitation_id: "invitation_id",
|
|
156
|
+
# fields: "fields",
|
|
157
|
+
# include_fields: true
|
|
158
|
+
# )
|
|
159
|
+
#
|
|
129
160
|
# @return [Auth0::Types::GetOrganizationInvitationResponseContent]
|
|
130
161
|
def get(request_options: {}, **params)
|
|
131
162
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -147,7 +178,7 @@ module Auth0
|
|
|
147
178
|
end
|
|
148
179
|
code = response.code.to_i
|
|
149
180
|
if code.between?(200, 299)
|
|
150
|
-
Auth0::Types::GetOrganizationInvitationResponseContent.load(response.body)
|
|
181
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetOrganizationInvitationResponseContent.load(response.body))
|
|
151
182
|
else
|
|
152
183
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
153
184
|
raise error_class.new(response.body, code: code)
|
|
@@ -164,6 +195,12 @@ module Auth0
|
|
|
164
195
|
# @option params [String] :id
|
|
165
196
|
# @option params [String] :invitation_id
|
|
166
197
|
#
|
|
198
|
+
# @example
|
|
199
|
+
# client.organizations.invitations.delete(
|
|
200
|
+
# id: "id",
|
|
201
|
+
# invitation_id: "invitation_id"
|
|
202
|
+
# )
|
|
203
|
+
#
|
|
167
204
|
# @return [untyped]
|
|
168
205
|
def delete(request_options: {}, **params)
|
|
169
206
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -51,6 +51,16 @@ module Auth0
|
|
|
51
51
|
# @option params [String, nil] :fields
|
|
52
52
|
# @option params [Boolean, nil] :include_fields
|
|
53
53
|
#
|
|
54
|
+
# @example
|
|
55
|
+
# client.organizations.members.list(
|
|
56
|
+
# id: "id",
|
|
57
|
+
# include_totals: true,
|
|
58
|
+
# from: "from",
|
|
59
|
+
# take: 1,
|
|
60
|
+
# fields: "fields",
|
|
61
|
+
# include_fields: true
|
|
62
|
+
# )
|
|
63
|
+
#
|
|
54
64
|
# @return [Auth0::Types::ListOrganizationMembersPaginatedResponseContent]
|
|
55
65
|
def list(request_options: {}, **params)
|
|
56
66
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -81,7 +91,7 @@ module Auth0
|
|
|
81
91
|
end
|
|
82
92
|
code = response.code.to_i
|
|
83
93
|
if code.between?(200, 299)
|
|
84
|
-
parsed_response = Auth0::Types::ListOrganizationMembersPaginatedResponseContent.load(response.body)
|
|
94
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationMembersPaginatedResponseContent.load(response.body))
|
|
85
95
|
[parsed_response, response]
|
|
86
96
|
else
|
|
87
97
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -107,6 +117,12 @@ module Auth0
|
|
|
107
117
|
# @option request_options [Integer] :timeout_in_seconds
|
|
108
118
|
# @option params [String] :id
|
|
109
119
|
#
|
|
120
|
+
# @example
|
|
121
|
+
# client.organizations.members.create(
|
|
122
|
+
# id: "id",
|
|
123
|
+
# members: ["members"]
|
|
124
|
+
# )
|
|
125
|
+
#
|
|
110
126
|
# @return [untyped]
|
|
111
127
|
def create(request_options: {}, **params)
|
|
112
128
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -142,6 +158,12 @@ module Auth0
|
|
|
142
158
|
# @option request_options [Integer] :timeout_in_seconds
|
|
143
159
|
# @option params [String] :id
|
|
144
160
|
#
|
|
161
|
+
# @example
|
|
162
|
+
# client.organizations.members.delete(
|
|
163
|
+
# id: "id",
|
|
164
|
+
# members: ["members"]
|
|
165
|
+
# )
|
|
166
|
+
#
|
|
145
167
|
# @return [untyped]
|
|
146
168
|
def delete(request_options: {}, **params)
|
|
147
169
|
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.members.effective_roles.list(
|
|
31
|
+
# id: "id",
|
|
32
|
+
# user_id: "user_id",
|
|
33
|
+
# from: "from",
|
|
34
|
+
# take: 1
|
|
35
|
+
# )
|
|
36
|
+
#
|
|
29
37
|
# @return [Auth0::Types::ListOrganizationMemberEffectiveRolesResponseContent]
|
|
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::ListOrganizationMemberEffectiveRolesResponseContent.load(response.body)
|
|
64
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationMemberEffectiveRolesResponseContent.load(response.body))
|
|
57
65
|
[parsed_response, response]
|
|
58
66
|
else
|
|
59
67
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -29,6 +29,15 @@ module Auth0
|
|
|
29
29
|
# @option params [Integer, nil] :take
|
|
30
30
|
# @option params [String] :role_id
|
|
31
31
|
#
|
|
32
|
+
# @example
|
|
33
|
+
# client.organizations.members.effective_roles.sources.groups.list(
|
|
34
|
+
# id: "id",
|
|
35
|
+
# user_id: "user_id",
|
|
36
|
+
# from: "from",
|
|
37
|
+
# take: 1,
|
|
38
|
+
# role_id: "role_id"
|
|
39
|
+
# )
|
|
40
|
+
#
|
|
32
41
|
# @return [Auth0::Types::ListOrganizationMemberRoleSourceGroupsResponseContent]
|
|
33
42
|
def list(request_options: {}, **params)
|
|
34
43
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -57,7 +66,7 @@ module Auth0
|
|
|
57
66
|
end
|
|
58
67
|
code = response.code.to_i
|
|
59
68
|
if code.between?(200, 299)
|
|
60
|
-
parsed_response = Auth0::Types::ListOrganizationMemberRoleSourceGroupsResponseContent.load(response.body)
|
|
69
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationMemberRoleSourceGroupsResponseContent.load(response.body))
|
|
61
70
|
[parsed_response, response]
|
|
62
71
|
else
|
|
63
72
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -34,6 +34,15 @@ module Auth0
|
|
|
34
34
|
# @option params [Integer, nil] :per_page
|
|
35
35
|
# @option params [Boolean, nil] :include_totals
|
|
36
36
|
#
|
|
37
|
+
# @example
|
|
38
|
+
# client.organizations.members.roles.list(
|
|
39
|
+
# id: "id",
|
|
40
|
+
# user_id: "user_id",
|
|
41
|
+
# page: 1,
|
|
42
|
+
# per_page: 1,
|
|
43
|
+
# include_totals: true
|
|
44
|
+
# )
|
|
45
|
+
#
|
|
37
46
|
# @return [Auth0::Types::ListOrganizationMemberRolesOffsetPaginatedResponseContent]
|
|
38
47
|
def list(request_options: {}, **params)
|
|
39
48
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -63,7 +72,7 @@ module Auth0
|
|
|
63
72
|
end
|
|
64
73
|
code = response.code.to_i
|
|
65
74
|
if code.between?(200, 299)
|
|
66
|
-
parsed_response = Auth0::Types::ListOrganizationMemberRolesOffsetPaginatedResponseContent.load(response.body)
|
|
75
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationMemberRolesOffsetPaginatedResponseContent.load(response.body))
|
|
67
76
|
[parsed_response, response]
|
|
68
77
|
else
|
|
69
78
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -89,6 +98,13 @@ module Auth0
|
|
|
89
98
|
# @option params [String] :id
|
|
90
99
|
# @option params [String] :user_id
|
|
91
100
|
#
|
|
101
|
+
# @example
|
|
102
|
+
# client.organizations.members.roles.assign(
|
|
103
|
+
# id: "id",
|
|
104
|
+
# user_id: "user_id",
|
|
105
|
+
# roles: ["roles"]
|
|
106
|
+
# )
|
|
107
|
+
#
|
|
92
108
|
# @return [untyped]
|
|
93
109
|
def assign(request_options: {}, **params)
|
|
94
110
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -132,6 +148,13 @@ module Auth0
|
|
|
132
148
|
# @option params [String] :id
|
|
133
149
|
# @option params [String] :user_id
|
|
134
150
|
#
|
|
151
|
+
# @example
|
|
152
|
+
# client.organizations.members.roles.delete(
|
|
153
|
+
# id: "id",
|
|
154
|
+
# user_id: "user_id",
|
|
155
|
+
# roles: ["roles"]
|
|
156
|
+
# )
|
|
157
|
+
#
|
|
135
158
|
# @return [untyped]
|
|
136
159
|
def delete(request_options: {}, **params)
|
|
137
160
|
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
|