auth0 6.5.0 → 6.7.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.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +3 -3
  3. data/.fern/replay.lock +362 -48
  4. data/.version +1 -1
  5. data/CHANGELOG.md +15 -0
  6. data/EXAMPLES.md +20 -0
  7. data/README.md +18 -0
  8. data/examples/ruby-api/Gemfile.lock +3 -3
  9. data/lib/auth0/attack_protection/brute_force_protection/types/update_brute_force_settings_request_content.rb +2 -2
  10. data/lib/auth0/attack_protection/client.rb +0 -5
  11. data/lib/auth0/auth_client.rb +27 -2
  12. data/lib/auth0/client.rb +15 -2
  13. data/lib/auth0/clients/client.rb +3 -0
  14. data/lib/auth0/clients/types/create_client_request_content.rb +4 -0
  15. data/lib/auth0/clients/types/list_clients_request_parameters.rb +2 -0
  16. data/lib/auth0/clients/types/update_client_request_content.rb +4 -0
  17. data/lib/auth0/connections/keys/client.rb +19 -5
  18. data/lib/auth0/emails/provider/client.rb +1 -6
  19. data/lib/auth0/emails/provider/types/create_email_provider_request_content.rb +1 -1
  20. data/lib/auth0/experimentation/experiments/client.rb +2 -1
  21. data/lib/auth0/experimentation/experiments/types/create_experiment_request_content.rb +1 -1
  22. data/lib/auth0/experimentation/segments/client.rb +4 -1
  23. data/lib/auth0/experimentation/segments/types/list_segments_request_parameters.rb +2 -0
  24. data/lib/auth0/internal/http/rate_limit.rb +103 -0
  25. data/lib/auth0/internal/http/raw_client.rb +14 -2
  26. data/lib/auth0/mixins/httpproxy.rb +9 -1
  27. data/lib/auth0/mixins/initializer.rb +5 -0
  28. data/lib/auth0/portals/client.rb +198 -0
  29. data/lib/auth0/portals/types/create_portal_request_content.rb +21 -0
  30. data/lib/auth0/portals/types/update_portal_request_content.rb +23 -0
  31. data/lib/auth0/resource_servers/types/create_resource_server_request_content.rb +4 -0
  32. data/lib/auth0/resource_servers/types/update_resource_server_request_content.rb +4 -0
  33. data/lib/auth0/self_service_profiles/sso_ticket/types/create_self_service_profile_sso_ticket_request_content.rb +2 -0
  34. data/lib/auth0/types/client.rb +6 -0
  35. data/lib/auth0/types/client_credential_algorithm_enum.rb +2 -0
  36. data/lib/auth0/types/client_oidc_support.rb +15 -0
  37. data/lib/auth0/types/client_oidc_support_patch.rb +2 -1
  38. data/lib/auth0/types/client_oidc_support_post.rb +2 -2
  39. data/lib/auth0/types/client_profile_client_configuration.rb +2 -0
  40. data/lib/auth0/types/client_profile_client_configuration_oidc_support.rb +10 -0
  41. data/lib/auth0/types/client_profile_client_configuration_oidc_support_allowed_scopes_enum.rb +14 -0
  42. data/lib/auth0/types/client_profile_client_configuration_oidc_support_default_value.rb +15 -0
  43. data/lib/auth0/types/client_search_response.rb +6 -0
  44. data/lib/auth0/types/{list_attack_protection_captcha_policies_response_content.rb → connection_client_id_samlxaa_requesting_app.rb} +2 -2
  45. data/lib/auth0/types/connection_client_secret_samlxaa_requesting_app.rb +23 -0
  46. data/lib/auth0/types/connection_options_auth0.rb +2 -0
  47. data/lib/auth0/types/connection_options_saml.rb +10 -0
  48. data/lib/auth0/types/connection_otp_channel_settings.rb +12 -0
  49. data/lib/auth0/types/connection_otp_settings.rb +12 -0
  50. data/lib/auth0/types/connection_passkey_authentication_method.rb +2 -0
  51. data/lib/auth0/types/connection_password_options_dictionary.rb +2 -0
  52. data/lib/auth0/types/connection_properties_options.rb +6 -0
  53. data/lib/auth0/types/connection_response_content_saml.rb +2 -0
  54. data/lib/auth0/types/consent_signing_key.rb +15 -0
  55. data/lib/auth0/types/create_client_response_content.rb +6 -0
  56. data/lib/auth0/types/create_connection_request_content_saml.rb +2 -0
  57. data/lib/auth0/types/create_resource_server_response_content.rb +4 -0
  58. data/lib/auth0/types/event_stream_cloud_event_context.rb +2 -0
  59. data/lib/auth0/types/event_stream_cloud_event_context_transaction.rb +30 -0
  60. data/lib/auth0/types/event_stream_cloud_event_context_transaction_protocol_enum.rb +24 -0
  61. data/lib/auth0/types/event_stream_cloud_event_context_transaction_response_mode_enum.rb +14 -0
  62. data/lib/auth0/types/event_stream_cloud_event_context_transaction_response_type_item_enum.rb +13 -0
  63. data/lib/auth0/types/express_configuration.rb +2 -0
  64. data/lib/auth0/types/express_configuration_or_null.rb +2 -0
  65. data/lib/auth0/types/get_brute_force_settings_response_content.rb +2 -2
  66. data/lib/auth0/types/get_client_response_content.rb +6 -0
  67. data/lib/auth0/types/get_resource_server_response_content.rb +4 -0
  68. data/lib/auth0/types/google_account_linking_configuration.rb +10 -0
  69. data/lib/auth0/types/google_account_linking_configuration_create.rb +10 -0
  70. data/lib/auth0/types/google_account_linking_configuration_or_null.rb +10 -0
  71. data/lib/auth0/types/guardian_factor_name_enum.rb +1 -0
  72. data/lib/auth0/types/include_user_profile_size_header_enum.rb +11 -0
  73. data/lib/auth0/types/internal_server_error_body.rb +13 -0
  74. data/lib/auth0/types/internal_server_error_body_error.rb +11 -0
  75. data/lib/auth0/types/list_portals_response_content.rb +9 -0
  76. data/lib/auth0/types/list_user_consent_signing_keys_response_content.rb +9 -0
  77. data/lib/auth0/types/log_stream_filter_group_name_enum.rb +3 -0
  78. data/lib/auth0/types/oauth_scope.rb +4 -0
  79. data/lib/auth0/types/page_component.rb +33 -0
  80. data/lib/auth0/types/page_component_auth0form.rb +9 -0
  81. data/lib/auth0/types/page_component_auth0form_config.rb +11 -0
  82. data/lib/auth0/types/page_component_auth0media_image.rb +9 -0
  83. data/lib/auth0/types/page_component_auth0media_image_config.rb +13 -0
  84. data/lib/auth0/types/page_component_auth0my_account_mfa_management.rb +9 -0
  85. data/lib/auth0/types/page_component_auth0my_account_mfa_management_config.rb +7 -0
  86. data/lib/auth0/types/page_component_auth0my_account_passkey_management.rb +9 -0
  87. data/lib/auth0/types/page_component_auth0my_account_passkey_management_config.rb +7 -0
  88. data/lib/auth0/types/page_component_auth0my_organization_details_edit.rb +9 -0
  89. data/lib/auth0/types/page_component_auth0my_organization_details_edit_config.rb +7 -0
  90. data/lib/auth0/types/page_component_auth0my_organization_domain_table.rb +9 -0
  91. data/lib/auth0/types/page_component_auth0my_organization_domain_table_config.rb +7 -0
  92. data/lib/auth0/types/page_component_auth0my_organization_member_management.rb +9 -0
  93. data/lib/auth0/types/page_component_auth0my_organization_member_management_config.rb +7 -0
  94. data/lib/auth0/types/page_component_auth0structure_section.rb +9 -0
  95. data/lib/auth0/types/page_component_auth0structure_section_config.rb +15 -0
  96. data/lib/auth0/types/page_component_auth0structure_section_variant_enum.rb +12 -0
  97. data/lib/auth0/types/page_component_auth0structure_separator.rb +9 -0
  98. data/lib/auth0/types/page_component_auth0structure_separator_config.rb +11 -0
  99. data/lib/auth0/types/page_component_auth0structure_separator_variant_enum.rb +13 -0
  100. data/lib/auth0/types/page_component_auth0typography_heading.rb +9 -0
  101. data/lib/auth0/types/page_component_auth0typography_heading_config.rb +11 -0
  102. data/lib/auth0/types/page_component_auth0typography_rich_text.rb +9 -0
  103. data/lib/auth0/types/page_component_auth0typography_rich_text_config.rb +9 -0
  104. data/lib/auth0/types/page_component_no_children.rb +31 -0
  105. data/lib/auth0/types/page_slug.rb +23 -0
  106. data/lib/auth0/types/password_dictionary_match_type_enum.rb +12 -0
  107. data/lib/auth0/types/portal.rb +25 -0
  108. data/lib/auth0/types/portal_client_secret_post.rb +11 -0
  109. data/lib/auth0/types/portal_client_secret_post_request.rb +13 -0
  110. data/lib/auth0/types/portal_client_secret_post_request_token_endpoint_auth_method.rb +11 -0
  111. data/lib/auth0/types/portal_client_secret_post_token_endpoint_auth_method.rb +11 -0
  112. data/lib/auth0/types/portal_custom_code.rb +9 -0
  113. data/lib/auth0/types/portal_custom_code_nullable.rb +23 -0
  114. data/lib/auth0/types/portal_date_time.rb +23 -0
  115. data/lib/auth0/types/portal_id.rb +23 -0
  116. data/lib/auth0/types/portal_name.rb +23 -0
  117. data/lib/auth0/types/portal_navigation.rb +9 -0
  118. data/lib/auth0/types/portal_navigation_nullable.rb +23 -0
  119. data/lib/auth0/types/portal_page.rb +13 -0
  120. data/lib/auth0/types/portal_pages_by_type.rb +11 -0
  121. data/lib/auth0/types/portal_pages_by_type_nullable.rb +23 -0
  122. data/lib/auth0/types/portal_slug.rb +23 -0
  123. data/lib/auth0/types/portal_summary.rb +17 -0
  124. data/lib/auth0/types/position.rb +13 -0
  125. data/lib/auth0/types/post_connection_keys_request_content.rb +2 -0
  126. data/lib/auth0/types/resource_server.rb +4 -0
  127. data/lib/auth0/types/resource_server_agent_subject_claims_response_enum.rb +12 -0
  128. data/lib/auth0/types/resource_server_agent_subject_claims_schema_enum.rb +12 -0
  129. data/lib/auth0/types/resource_server_search_response.rb +4 -0
  130. data/lib/auth0/types/resource_server_type_enum.rb +12 -0
  131. data/lib/auth0/types/rotate_client_secret_response_content.rb +6 -0
  132. data/lib/auth0/types/rotate_connection_keys_request_content.rb +2 -0
  133. data/lib/auth0/types/screen_group_name_enum.rb +1 -0
  134. data/lib/auth0/types/self_service_profile_sso_ticket_universal_logout_config.rb +10 -0
  135. data/lib/auth0/types/sidebar.rb +9 -0
  136. data/lib/auth0/types/sidebar_component.rb +19 -0
  137. data/lib/auth0/types/sidebar_component_auth0external_link.rb +10 -0
  138. data/lib/auth0/types/sidebar_component_auth0external_link_config.rb +13 -0
  139. data/lib/auth0/types/sidebar_component_auth0external_link_v2.rb +9 -0
  140. data/lib/auth0/types/sidebar_component_auth0external_link_v2config.rb +13 -0
  141. data/lib/auth0/types/sidebar_component_auth0internal_link.rb +10 -0
  142. data/lib/auth0/types/sidebar_component_auth0internal_link_config.rb +13 -0
  143. data/lib/auth0/types/sidebar_component_auth0internal_link_v2.rb +9 -0
  144. data/lib/auth0/types/sidebar_component_auth0internal_link_v2config.rb +13 -0
  145. data/lib/auth0/types/tenant_settings_flags.rb +0 -2
  146. data/lib/auth0/types/update_brute_force_settings_response_content.rb +2 -2
  147. data/lib/auth0/types/update_client_response_content.rb +6 -0
  148. data/lib/auth0/types/update_connection_options.rb +6 -0
  149. data/lib/auth0/types/update_connection_request_content_saml.rb +2 -0
  150. data/lib/auth0/types/update_resource_server_response_content.rb +4 -0
  151. data/lib/auth0/types/update_variation_overrides_map.rb +1 -1
  152. data/lib/auth0/users/client.rb +120 -0
  153. data/lib/auth0/version.rb +1 -1
  154. data/lib/auth0.rb +86 -23
  155. data/wiremock/wiremock-mappings.json +310 -190
  156. metadata +87 -23
  157. data/lib/auth0/attack_protection/captcha_policies/client.rb +0 -210
  158. data/lib/auth0/attack_protection/captcha_policies/types/create_attack_protection_captcha_policy_request_content.rb +0 -21
  159. data/lib/auth0/attack_protection/captcha_policies/types/update_attack_protection_captcha_policy_request_content.rb +0 -23
  160. data/lib/auth0/types/attack_protection_captcha_policy.rb +0 -24
  161. data/lib/auth0/types/attack_protection_captcha_policy_action.rb +0 -24
  162. data/lib/auth0/types/attack_protection_captcha_policy_action_input.rb +0 -24
  163. data/lib/auth0/types/attack_protection_captcha_policy_match.rb +0 -12
  164. data/lib/auth0/types/captcha_active_provider_enum.rb +0 -17
  165. data/lib/auth0/types/captcha_policy_action_arkose.rb +0 -16
  166. data/lib/auth0/types/captcha_policy_action_arkose_input.rb +0 -18
  167. data/lib/auth0/types/captcha_policy_action_auth_challenge.rb +0 -10
  168. data/lib/auth0/types/captcha_policy_action_friendly_captcha.rb +0 -10
  169. data/lib/auth0/types/captcha_policy_action_friendly_captcha_input.rb +0 -12
  170. data/lib/auth0/types/captcha_policy_action_hcaptcha.rb +0 -10
  171. data/lib/auth0/types/captcha_policy_action_hcaptcha_input.rb +0 -12
  172. data/lib/auth0/types/captcha_policy_action_recaptcha_enterprise.rb +0 -12
  173. data/lib/auth0/types/captcha_policy_action_recaptcha_enterprise_input.rb +0 -14
  174. data/lib/auth0/types/captcha_policy_action_recaptcha_v2.rb +0 -10
  175. data/lib/auth0/types/captcha_policy_action_recaptcha_v2input.rb +0 -12
  176. data/lib/auth0/types/captcha_policy_action_simple_captcha.rb +0 -8
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ module PortalPagesByTypeNullable
6
+ # PortalPagesByTypeNullable is an alias for Object
7
+
8
+ # @option str [String]
9
+ #
10
+ # @return [untyped]
11
+ def self.load(str)
12
+ ::JSON.parse(str)
13
+ end
14
+
15
+ # @option value [untyped]
16
+ #
17
+ # @return [String]
18
+ def self.dump(value)
19
+ ::JSON.generate(value)
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ module PortalSlug
6
+ # PortalSlug is an alias for String
7
+
8
+ # @option str [String]
9
+ #
10
+ # @return [untyped]
11
+ def self.load(str)
12
+ ::JSON.parse(str)
13
+ end
14
+
15
+ # @option value [untyped]
16
+ #
17
+ # @return [String]
18
+ def self.dump(value)
19
+ ::JSON.generate(value)
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class PortalSummary < Internal::Types::Model
6
+ field :id, -> { String }, optional: false, nullable: false
7
+
8
+ field :name, -> { String }, optional: false, nullable: false
9
+
10
+ field :slug, -> { String }, optional: false, nullable: false
11
+
12
+ field :created_at, -> { String }, optional: false, nullable: false
13
+
14
+ field :updated_at, -> { String }, optional: false, nullable: false
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ module Position
6
+ extend Auth0::Internal::Types::Enum
7
+
8
+ LEFT = "left"
9
+ CENTER = "center"
10
+ RIGHT = "right"
11
+ end
12
+ end
13
+ end
@@ -3,6 +3,8 @@
3
3
  module Auth0
4
4
  module Types
5
5
  class PostConnectionKeysRequestContent < Internal::Types::Model
6
+ field :key_use, -> { Auth0::Types::ConnectionKeyUseEnum }, optional: true, nullable: false
7
+
6
8
  field :signing_alg, -> { Auth0::Types::PostConnectionKeysAlgEnum }, optional: true, nullable: false
7
9
  end
8
10
  end
@@ -52,6 +52,10 @@ module Auth0
52
52
  field :authorization_policy, -> { Auth0::Types::ResourceServerAuthorizationPolicy }, optional: true, nullable: false
53
53
 
54
54
  field :client_id, -> { String }, optional: true, nullable: false
55
+
56
+ field :agent_subject_claims, -> { Auth0::Types::ResourceServerAgentSubjectClaimsResponseEnum }, optional: true, nullable: false
57
+
58
+ field :type, -> { Auth0::Types::ResourceServerTypeEnum }, optional: true, nullable: false
55
59
  end
56
60
  end
57
61
  end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ module ResourceServerAgentSubjectClaimsResponseEnum
6
+ extend Auth0::Internal::Types::Enum
7
+
8
+ OFF = "off"
9
+ AUTH0V1 = "auth0-v1"
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ module ResourceServerAgentSubjectClaimsSchemaEnum
6
+ extend Auth0::Internal::Types::Enum
7
+
8
+ OFF = "off"
9
+ AUTH0V1 = "auth0-v1"
10
+ end
11
+ end
12
+ end
@@ -50,6 +50,10 @@ module Auth0
50
50
  field :authorization_policy, -> { Auth0::Types::ResourceServerAuthorizationPolicy }, optional: true, nullable: false
51
51
 
52
52
  field :client_id, -> { String }, optional: true, nullable: false
53
+
54
+ field :agent_subject_claims, -> { Auth0::Types::ResourceServerAgentSubjectClaimsResponseEnum }, optional: true, nullable: false
55
+
56
+ field :type, -> { Auth0::Types::ResourceServerTypeEnum }, optional: true, nullable: false
53
57
  end
54
58
  end
55
59
  end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ module ResourceServerTypeEnum
6
+ extend Auth0::Internal::Types::Enum
7
+
8
+ UNIVERSAL_COMMERCE_PROTOCOL_SERVER = "universal_commerce_protocol_server"
9
+ MODEL_CONTEXT_PROTOCOL_SERVER = "model_context_protocol_server"
10
+ end
11
+ end
12
+ end
@@ -119,6 +119,8 @@ module Auth0
119
119
 
120
120
  field :my_organization_configuration, -> { Auth0::Types::ClientMyOrganizationResponseConfiguration }, optional: true, nullable: false
121
121
 
122
+ field :google_account_linking, -> { Auth0::Types::GoogleAccountLinkingConfiguration }, optional: true, nullable: false
123
+
122
124
  field :identity_assertion_authorization_grant, -> { Auth0::Types::IdentityAssertionAuthorizationGrant }, optional: true, nullable: false
123
125
 
124
126
  field :anonymous_sessions, -> { Auth0::Types::AnonymousSessions }, optional: true, nullable: false
@@ -127,6 +129,8 @@ module Auth0
127
129
 
128
130
  field :third_party_security_mode, -> { Auth0::Types::ClientThirdPartySecurityModeEnum }, optional: true, nullable: false
129
131
 
132
+ field :oidc_support, -> { Auth0::Types::ClientOidcSupport }, optional: true, nullable: false
133
+
130
134
  field :redirection_policy, -> { Auth0::Types::ClientRedirectionPolicyEnum }, optional: true, nullable: false
131
135
 
132
136
  field :resource_server_identifier, -> { String }, optional: true, nullable: false
@@ -139,6 +143,8 @@ module Auth0
139
143
 
140
144
  field :external_metadata_status, -> { Auth0::Types::ClientExternalMetadataStatusEnum }, optional: true, nullable: false
141
145
 
146
+ field :agent_id, -> { String }, optional: true, nullable: false
147
+
142
148
  field :external_client_id, -> { String }, optional: true, nullable: false
143
149
 
144
150
  field :jwks_uri, -> { String }, optional: true, nullable: false
@@ -3,6 +3,8 @@
3
3
  module Auth0
4
4
  module Types
5
5
  class RotateConnectionKeysRequestContent < Internal::Types::Model
6
+ field :key_use, -> { Auth0::Types::ConnectionKeyUseEnum }, optional: true, nullable: false
7
+
6
8
  field :signing_alg, -> { Auth0::Types::RotateConnectionKeysSigningAlgEnum }, optional: true, nullable: false
7
9
  end
8
10
  end
@@ -35,6 +35,7 @@ module Auth0
35
35
  CUSTOM_FORM = "custom-form"
36
36
  CONSENT = "consent"
37
37
  CONSENT_TENANT_SCOPES = "consent-tenant-scopes"
38
+ PENDING_CONSENT = "pending-consent"
38
39
  CUSTOMIZED_CONSENT = "customized-consent"
39
40
  LOGOUT = "logout"
40
41
  LOGOUT_COMPLETE = "logout-complete"
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ # Configuration for the setup of Universal Logout in the Self-Service Enterprise Configuration flow.
6
+ class SelfServiceProfileSSOTicketUniversalLogoutConfig < Internal::Types::Model
7
+ field :allow_configuration, -> { Internal::Types::Boolean }, optional: false, nullable: false
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class Sidebar < Internal::Types::Model
6
+ field :components, -> { Internal::Types::Array[Auth0::Types::SidebarComponent] }, optional: true, nullable: false
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class SidebarComponent < Internal::Types::Model
6
+ extend Auth0::Internal::Types::Union
7
+
8
+ discriminant :type
9
+
10
+ member -> { Auth0::Types::SidebarComponentAuth0ExternalLink }, key: "SIDEBAR_COMPONENT_AUTH0EXTERNAL_LINK"
11
+
12
+ member -> { Auth0::Types::SidebarComponentAuth0InternalLink }, key: "SIDEBAR_COMPONENT_AUTH0INTERNAL_LINK"
13
+
14
+ member -> { Auth0::Types::SidebarComponentAuth0ExternalLinkV2 }, key: "SIDEBAR_COMPONENT_AUTH0EXTERNAL_LINK_V2"
15
+
16
+ member -> { Auth0::Types::SidebarComponentAuth0InternalLinkV2 }, key: "SIDEBAR_COMPONENT_AUTH0INTERNAL_LINK_V2"
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ # Deprecated. Use "sidebar:component:auth0:external_link:v2" instead.
6
+ class SidebarComponentAuth0ExternalLink < Internal::Types::Model
7
+ field :config, -> { Auth0::Types::SidebarComponentAuth0ExternalLinkConfig }, optional: false, nullable: false
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class SidebarComponentAuth0ExternalLinkConfig < Internal::Types::Model
6
+ field :label, -> { String }, optional: false, nullable: false
7
+
8
+ field :url, -> { String }, optional: false, nullable: false
9
+
10
+ field :icon, -> { String }, optional: true, nullable: false
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class SidebarComponentAuth0ExternalLinkV2 < Internal::Types::Model
6
+ field :config, -> { Auth0::Types::SidebarComponentAuth0ExternalLinkV2Config }, optional: false, nullable: false
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class SidebarComponentAuth0ExternalLinkV2Config < Internal::Types::Model
6
+ field :label, -> { String }, optional: false, nullable: false
7
+
8
+ field :href, -> { String }, optional: false, nullable: false
9
+
10
+ field :icon, -> { String }, optional: true, nullable: false
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ # Deprecated. Use "sidebar:component:auth0:internal_link:v2" instead.
6
+ class SidebarComponentAuth0InternalLink < Internal::Types::Model
7
+ field :config, -> { Auth0::Types::SidebarComponentAuth0InternalLinkConfig }, optional: false, nullable: false
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class SidebarComponentAuth0InternalLinkConfig < Internal::Types::Model
6
+ field :label, -> { String }, optional: false, nullable: false
7
+
8
+ field :to, -> { String }, optional: false, nullable: false
9
+
10
+ field :icon, -> { String }, optional: true, nullable: false
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class SidebarComponentAuth0InternalLinkV2 < Internal::Types::Model
6
+ field :config, -> { Auth0::Types::SidebarComponentAuth0InternalLinkV2Config }, optional: false, nullable: false
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Types
5
+ class SidebarComponentAuth0InternalLinkV2Config < Internal::Types::Model
6
+ field :label, -> { String }, optional: false, nullable: false
7
+
8
+ field :page_slug, -> { String }, optional: false, nullable: false
9
+
10
+ field :icon, -> { String }, optional: true, nullable: false
11
+ end
12
+ end
13
+ end
@@ -52,8 +52,6 @@ module Auth0
52
52
 
53
53
  field :improved_signup_bot_detection_in_classic, -> { Internal::Types::Boolean }, optional: true, nullable: false
54
54
 
55
- field :genai_trial, -> { Internal::Types::Boolean }, optional: true, nullable: false
56
-
57
55
  field :local_resource_discovery, -> { Internal::Types::Boolean }, optional: true, nullable: false
58
56
 
59
57
  field :enable_dynamic_client_registration, -> { Internal::Types::Boolean }, optional: true, nullable: false
@@ -11,9 +11,9 @@ module Auth0
11
11
 
12
12
  field :mode, -> { Auth0::Types::BruteForceProtectionModeEnum }, optional: true, nullable: false
13
13
 
14
- field :max_attempts, -> { Integer }, optional: true, nullable: false
15
-
16
14
  field :form_submission_mode, -> { Auth0::Types::BruteForceProtectionFormSubmissionModeEnum }, optional: true, nullable: false
15
+
16
+ field :max_attempts, -> { Integer }, optional: true, nullable: false
17
17
  end
18
18
  end
19
19
  end
@@ -119,6 +119,8 @@ module Auth0
119
119
 
120
120
  field :my_organization_configuration, -> { Auth0::Types::ClientMyOrganizationResponseConfiguration }, optional: true, nullable: false
121
121
 
122
+ field :google_account_linking, -> { Auth0::Types::GoogleAccountLinkingConfiguration }, optional: true, nullable: false
123
+
122
124
  field :identity_assertion_authorization_grant, -> { Auth0::Types::IdentityAssertionAuthorizationGrant }, optional: true, nullable: false
123
125
 
124
126
  field :anonymous_sessions, -> { Auth0::Types::AnonymousSessions }, optional: true, nullable: false
@@ -127,6 +129,8 @@ module Auth0
127
129
 
128
130
  field :third_party_security_mode, -> { Auth0::Types::ClientThirdPartySecurityModeEnum }, optional: true, nullable: false
129
131
 
132
+ field :oidc_support, -> { Auth0::Types::ClientOidcSupport }, optional: true, nullable: false
133
+
130
134
  field :redirection_policy, -> { Auth0::Types::ClientRedirectionPolicyEnum }, optional: true, nullable: false
131
135
 
132
136
  field :resource_server_identifier, -> { String }, optional: true, nullable: false
@@ -139,6 +143,8 @@ module Auth0
139
143
 
140
144
  field :external_metadata_status, -> { Auth0::Types::ClientExternalMetadataStatusEnum }, optional: true, nullable: false
141
145
 
146
+ field :agent_id, -> { String }, optional: true, nullable: false
147
+
142
148
  field :external_client_id, -> { String }, optional: true, nullable: false
143
149
 
144
150
  field :jwks_uri, -> { String }, optional: true, nullable: false
@@ -25,6 +25,8 @@ module Auth0
25
25
 
26
26
  field :custom_scripts, -> { Auth0::Types::ConnectionCustomScripts }, optional: true, nullable: false, api_name: "customScripts"
27
27
 
28
+ field :otp_settings, -> { Auth0::Types::ConnectionOtpSettings }, optional: true, nullable: false
29
+
28
30
  field :authentication_methods, -> { Auth0::Types::ConnectionAuthenticationMethods }, optional: true, nullable: false
29
31
 
30
32
  field :passkey_options, -> { Auth0::Types::ConnectionPasskeyOptions }, optional: true, nullable: false
@@ -87,6 +89,10 @@ module Auth0
87
89
 
88
90
  field :use_oauth_spec_scope, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "useOauthSpecScope"
89
91
 
92
+ field :client_id, -> { String }, optional: true, nullable: false
93
+
94
+ field :allowed_audiences, -> { Internal::Types::Array[String] }, optional: true, nullable: false
95
+
90
96
  field :discovery_url, -> { String }, optional: true, nullable: false
91
97
 
92
98
  field :oidc_metadata, -> { Auth0::Types::ConnectionsOidcMetadata }, optional: true, nullable: false
@@ -14,6 +14,8 @@ module Auth0
14
14
 
15
15
  field :options, -> { Auth0::Types::ConnectionOptionsSAML }, optional: true, nullable: false
16
16
 
17
+ field :cross_app_access_requesting_app, -> { Auth0::Types::CrossAppAccessRequestingApp }, optional: true, nullable: false
18
+
17
19
  field :cross_app_access_resource_app, -> { Auth0::Types::ConnectionCrossAppAccessResourceApp }, optional: true, nullable: false
18
20
 
19
21
  field :show_as_button, -> { Internal::Types::Boolean }, optional: true, nullable: false
@@ -52,6 +52,10 @@ module Auth0
52
52
  field :authorization_policy, -> { Auth0::Types::ResourceServerAuthorizationPolicy }, optional: true, nullable: false
53
53
 
54
54
  field :client_id, -> { String }, optional: true, nullable: false
55
+
56
+ field :agent_subject_claims, -> { Auth0::Types::ResourceServerAgentSubjectClaimsResponseEnum }, optional: true, nullable: false
57
+
58
+ field :type, -> { Auth0::Types::ResourceServerTypeEnum }, optional: true, nullable: false
55
59
  end
56
60
  end
57
61
  end
@@ -3,7 +3,7 @@
3
3
  module Auth0
4
4
  module Types
5
5
  module UpdateVariationOverridesMap
6
- # UpdateVariationOverridesMap is an alias for Hash
6
+ # UpdateVariationOverridesMap is an alias for Object
7
7
 
8
8
  # @option str [String]
9
9
  #
@@ -438,6 +438,126 @@ module Auth0
438
438
  end
439
439
  end
440
440
 
441
+ # Retrieve all consent signing keys registered for a user. Returns an empty `keys` array when the user has no keys
442
+ # registered.
443
+ #
444
+ # @param request_options [Hash]
445
+ # @param params [Hash]
446
+ # @option request_options [String] :base_url
447
+ # @option request_options [Hash{String => Object}] :additional_headers
448
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
449
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
450
+ # @option request_options [Integer] :timeout_in_seconds
451
+ # @option params [String] :id
452
+ #
453
+ # @example
454
+ # client.users.list_consent_signing_keys(id: "id")
455
+ #
456
+ # @return [Auth0::Types::ListUserConsentSigningKeysResponseContent]
457
+ def list_consent_signing_keys(request_options: {}, **params)
458
+ params = Auth0::Internal::Types::Utils.normalize_keys(params)
459
+ request = Auth0::Internal::JSON::Request.new(
460
+ base_url: request_options[:base_url],
461
+ method: "GET",
462
+ path: "users/#{URI.encode_uri_component(params[:id].to_s)}/consent-signing-keys",
463
+ request_options: request_options
464
+ )
465
+ begin
466
+ response = @client.send(request)
467
+ rescue Net::HTTPRequestTimeout
468
+ raise Auth0::Errors::TimeoutError
469
+ end
470
+ code = response.code.to_i
471
+ if code.between?(200, 299)
472
+ (response.body.to_s.empty? ? nil : Auth0::Types::ListUserConsentSigningKeysResponseContent.load(response.body))
473
+ else
474
+ error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
475
+ raise error_class.new(response.body, code: code)
476
+ end
477
+ end
478
+
479
+ # Retrieve a single consent signing key for a user by its key identifier (kid). Returns 404 if the key does not
480
+ # exist.
481
+ #
482
+ # @param request_options [Hash]
483
+ # @param params [Hash]
484
+ # @option request_options [String] :base_url
485
+ # @option request_options [Hash{String => Object}] :additional_headers
486
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
487
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
488
+ # @option request_options [Integer] :timeout_in_seconds
489
+ # @option params [String] :id
490
+ # @option params [String] :kid
491
+ #
492
+ # @example
493
+ # client.users.get_consent_signing_key(
494
+ # id: "id",
495
+ # kid: "kid"
496
+ # )
497
+ #
498
+ # @return [Auth0::Types::ConsentSigningKey]
499
+ def get_consent_signing_key(request_options: {}, **params)
500
+ params = Auth0::Internal::Types::Utils.normalize_keys(params)
501
+ request = Auth0::Internal::JSON::Request.new(
502
+ base_url: request_options[:base_url],
503
+ method: "GET",
504
+ path: "users/#{URI.encode_uri_component(params[:id].to_s)}/consent-signing-keys/#{URI.encode_uri_component(params[:kid].to_s)}",
505
+ request_options: request_options
506
+ )
507
+ begin
508
+ response = @client.send(request)
509
+ rescue Net::HTTPRequestTimeout
510
+ raise Auth0::Errors::TimeoutError
511
+ end
512
+ code = response.code.to_i
513
+ if code.between?(200, 299)
514
+ (response.body.to_s.empty? ? nil : Auth0::Types::ConsentSigningKey.load(response.body))
515
+ else
516
+ error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
517
+ raise error_class.new(response.body, code: code)
518
+ end
519
+ end
520
+
521
+ # Remove a single consent signing key for a user by its key identifier (kid). The operation is idempotent and
522
+ # returns 204 whether or not the key existed.
523
+ #
524
+ # @param request_options [Hash]
525
+ # @param params [Hash]
526
+ # @option request_options [String] :base_url
527
+ # @option request_options [Hash{String => Object}] :additional_headers
528
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
529
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
530
+ # @option request_options [Integer] :timeout_in_seconds
531
+ # @option params [String] :id
532
+ # @option params [String] :kid
533
+ #
534
+ # @example
535
+ # client.users.delete_consent_signing_key(
536
+ # id: "id",
537
+ # kid: "kid"
538
+ # )
539
+ #
540
+ # @return [untyped]
541
+ def delete_consent_signing_key(request_options: {}, **params)
542
+ params = Auth0::Internal::Types::Utils.normalize_keys(params)
543
+ request = Auth0::Internal::JSON::Request.new(
544
+ base_url: request_options[:base_url],
545
+ method: "DELETE",
546
+ path: "users/#{URI.encode_uri_component(params[:id].to_s)}/consent-signing-keys/#{URI.encode_uri_component(params[:kid].to_s)}",
547
+ request_options: request_options
548
+ )
549
+ begin
550
+ response = @client.send(request)
551
+ rescue Net::HTTPRequestTimeout
552
+ raise Auth0::Errors::TimeoutError
553
+ end
554
+ code = response.code.to_i
555
+ return if code.between?(200, 299)
556
+
557
+ error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
558
+ raise error_class.new(response.body, code: code)
559
+ end
560
+
441
561
  # Remove an existing multi-factor authentication (MFA) [recovery
442
562
  # code](https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa) and generate a new one. If a
443
563
  # user cannot access the original device or account used for MFA enrollment, they can use a recovery code to
data/lib/auth0/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Auth0
4
- VERSION = "6.5.0"
4
+ VERSION = "6.7.0"
5
5
  end