auth0 6.0.0.beta.4 → 6.0.0.beta.5

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 (100) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +1 -1
  3. data/.fern/replay.lock +7 -1
  4. data/.version +1 -1
  5. data/CHANGELOG.md +6 -0
  6. data/lib/auth0/agents/client.rb +201 -0
  7. data/lib/auth0/agents/types/create_agent_request_content.rb +17 -0
  8. data/lib/auth0/agents/types/list_agents_request_parameters.rb +13 -0
  9. data/lib/auth0/agents/types/patch_agent_request_parameters.rb +15 -0
  10. data/lib/auth0/client.rb +5 -0
  11. data/lib/auth0/client_grants/client.rb +2 -0
  12. data/lib/auth0/client_grants/organizations/client.rb +2 -0
  13. data/lib/auth0/client_grants/organizations/types/list_client_grant_organizations_request_parameters.rb +2 -0
  14. data/lib/auth0/client_grants/types/list_client_grants_request_parameters.rb +2 -0
  15. data/lib/auth0/connections/client.rb +2 -0
  16. data/lib/auth0/connections/directory_provisioning/client.rb +76 -0
  17. data/lib/auth0/connections/directory_provisioning/types/add_synchronized_groups_request_content.rb +15 -0
  18. data/lib/auth0/connections/directory_provisioning/types/delete_synchronized_groups_request_content.rb +15 -0
  19. data/lib/auth0/connections/directory_provisioning/types/list_synchronized_groups_request_parameters.rb +2 -0
  20. data/lib/auth0/connections/types/list_connections_query_parameters.rb +2 -0
  21. data/lib/auth0/event_streams/deliveries/client.rb +27 -17
  22. data/lib/auth0/flows/executions/client.rb +2 -0
  23. data/lib/auth0/flows/executions/types/list_flow_executions_request_parameters.rb +2 -0
  24. data/lib/auth0/groups/client.rb +2 -0
  25. data/lib/auth0/groups/types/list_groups_request_parameters.rb +2 -0
  26. data/lib/auth0/organizations/client.rb +9 -0
  27. data/lib/auth0/organizations/clients/client.rb +223 -0
  28. data/lib/auth0/organizations/clients/types/create_organization_clients_request_content.rb +15 -0
  29. data/lib/auth0/organizations/clients/types/delete_organization_clients_request_content.rb +15 -0
  30. data/lib/auth0/organizations/clients/types/list_organization_clients_request_parameters.rb +17 -0
  31. data/lib/auth0/organizations/clients/types/update_organization_client_request_content.rb +17 -0
  32. data/lib/auth0/organizations/members/client.rb +5 -1
  33. data/lib/auth0/organizations/members/roles/client.rb +3 -0
  34. data/lib/auth0/organizations/members/types/list_organization_members_request_parameters.rb +2 -0
  35. data/lib/auth0/organizations/roles/client.rb +5 -0
  36. data/lib/auth0/organizations/roles/groups/client.rb +68 -0
  37. data/lib/auth0/organizations/roles/groups/types/list_organization_role_groups_request_parameters.rb +21 -0
  38. data/lib/auth0/organizations/roles/members/client.rb +6 -0
  39. data/lib/auth0/organizations/types/create_organization_request_content.rb +2 -0
  40. data/lib/auth0/organizations/types/list_organizations_request_parameters.rb +4 -0
  41. data/lib/auth0/organizations/types/update_organization_request_content.rb +2 -0
  42. data/lib/auth0/roles/client.rb +4 -0
  43. data/lib/auth0/roles/types/create_role_request_content.rb +4 -0
  44. data/lib/auth0/roles/types/list_roles_request_parameters.rb +4 -0
  45. data/lib/auth0/roles/users/client.rb +5 -0
  46. data/lib/auth0/roles/users/types/list_role_users_request_parameters.rb +2 -0
  47. data/lib/auth0/types/acul_context_enum.rb +1 -0
  48. data/lib/auth0/types/agent_metadata.rb +23 -0
  49. data/lib/auth0/types/agent_response_content.rb +19 -0
  50. data/lib/auth0/types/conflict_schema.rb +14 -0
  51. data/lib/auth0/types/conflict_schema_error.rb +11 -0
  52. data/lib/auth0/types/connection_connected_accounts_purpose.rb +2 -0
  53. data/lib/auth0/types/connection_connected_accounts_purpose_xaa.rb +2 -0
  54. data/lib/auth0/types/create_organization_client_request_item.rb +11 -0
  55. data/lib/auth0/types/create_organization_clients_response_content.rb +23 -0
  56. data/lib/auth0/types/create_organization_response_content.rb +4 -0
  57. data/lib/auth0/types/create_role_response_content.rb +4 -0
  58. data/lib/auth0/types/event_stream_cloud_event.rb +1 -1
  59. data/lib/auth0/types/event_stream_cloud_event_data.rb +23 -0
  60. data/lib/auth0/types/event_stream_delivery_attempt.rb +2 -0
  61. data/lib/auth0/types/get_organization_by_name_response_content.rb +4 -0
  62. data/lib/auth0/types/get_organization_client_response_content.rb +13 -0
  63. data/lib/auth0/types/get_organization_response_content.rb +4 -0
  64. data/lib/auth0/types/get_role_response_content.rb +4 -0
  65. data/lib/auth0/types/guardian_factor.rb +2 -0
  66. data/lib/auth0/types/guardian_factor_settings.rb +12 -0
  67. data/lib/auth0/types/list_agents_response_content.rb +11 -0
  68. data/lib/auth0/types/list_event_stream_deliveries_response_content.rb +11 -0
  69. data/lib/auth0/types/list_organization_clients_response_content.rb +11 -0
  70. data/lib/auth0/types/list_organization_role_groups_response_content.rb +12 -0
  71. data/lib/auth0/types/not_found_schema.rb +14 -0
  72. data/lib/auth0/types/not_found_schema_error.rb +11 -0
  73. data/lib/auth0/types/oauth_scope.rb +8 -0
  74. data/lib/auth0/types/organization.rb +4 -0
  75. data/lib/auth0/types/organization_client.rb +13 -0
  76. data/lib/auth0/types/organization_client_association.rb +11 -0
  77. data/lib/auth0/types/organization_client_metadata.rb +20 -0
  78. data/lib/auth0/types/organization_client_metadata_organization_usage_enum.rb +13 -0
  79. data/lib/auth0/types/role.rb +4 -0
  80. data/lib/auth0/types/role_group.rb +26 -0
  81. data/lib/auth0/types/role_type_enum.rb +12 -0
  82. data/lib/auth0/types/self_service_profile_sso_ticket_google_workspace_config.rb +2 -0
  83. data/lib/auth0/types/synchronized_group_payload.rb +6 -0
  84. data/lib/auth0/types/synchronized_group_selection_id.rb +9 -0
  85. data/lib/auth0/types/update_organization_client_response_content.rb +13 -0
  86. data/lib/auth0/types/update_organization_response_content.rb +4 -0
  87. data/lib/auth0/types/update_role_response_content.rb +4 -0
  88. data/lib/auth0/types/user_effective_permission_role_source_response_content.rb +4 -0
  89. data/lib/auth0/users/groups/client.rb +2 -0
  90. data/lib/auth0/users/groups/types/get_user_groups_request_parameters.rb +2 -0
  91. data/lib/auth0/users/permissions/client.rb +3 -0
  92. data/lib/auth0/users/refresh_token/client.rb +2 -0
  93. data/lib/auth0/users/refresh_token/types/list_refresh_tokens_request_parameters.rb +2 -0
  94. data/lib/auth0/users/roles/client.rb +3 -0
  95. data/lib/auth0/users/sessions/client.rb +2 -0
  96. data/lib/auth0/users/sessions/types/list_user_sessions_request_parameters.rb +2 -0
  97. data/lib/auth0/version.rb +1 -1
  98. data/lib/auth0.rb +38 -2
  99. data/wiremock/wiremock-mappings.json +592 -55
  100. metadata +38 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e241ac2a91d98b8a1ea47e5e608745bf4a079599ae4984328a7c164e5f638ee
4
- data.tar.gz: '08d0a78287039e8acb0c143c141ad40b87c363b2bc0a4ec8f2112209b1010f7a'
3
+ metadata.gz: 44661a16cc8215e532d46465e5c647b067908ee2d302802b1533b62dc3ad201b
4
+ data.tar.gz: dd5f4eb1891e573e222dc8cbb0805fb5feb163ba605ddb295794e53785a4537b
5
5
  SHA512:
6
- metadata.gz: 932d565d27507eb9f5bb90ca5ae05fba481ca715cb38cc9dd0a096068bbfd2180a7a38d165fe863eab49b9338558c8075235c617545cb09380217eb69da05185
7
- data.tar.gz: f2a217f155ac1bf1040efa0a0df6e9831f9dac594c586edfb75b94fa5f4dd3ba93f78ab27041610693a5dba7f3586dd21a27168423e0d480e45e4714445bcec7
6
+ metadata.gz: 0eff9acb7ca50565e1743084fe3d617ba4fe76249dac4e8937384638225bfa2ca05d2e09c4dc1c457101345fcf2e459ec5c05611b48fb2803140f728d8d10f7b
7
+ data.tar.gz: 32905d9e1bf76a1baff84734f5d03d97e0592256f76693690e882193ad939dc022b4c10c3486ba9436ad0f45ad0b6562f819a53d7e7a5ed824545becd9565161
data/.fern/metadata.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "offsetSemantics": "page-index",
11
11
  "useDefaultRequestParameterValues": true
12
12
  },
13
- "originGitCommit": "e2027b1584b1668f39ed802f114e54458b09bb57",
13
+ "originGitCommit": "8857b12c5a5345e87088f8d57ba9cffdb82ed9fe",
14
14
  "originGitCommitIsDirty": false,
15
15
  "invokedBy": "ci",
16
16
  "ciProvider": "github",
data/.fern/replay.lock CHANGED
@@ -24,5 +24,11 @@ generations:
24
24
  cli_version: unknown
25
25
  generator_versions:
26
26
  fernapi/fern-ruby-sdk: 1.17.8
27
- current_generation: d8a88028849ce519e8fdc20765c78e367f372110
27
+ - commit_sha: ff82f16a518e8ee51b23570ed1a303f3c070ff02
28
+ tree_hash: 6b4ba82c8dbe3556b6c8e7dd4f7c4d32671aa12a
29
+ timestamp: 2026-08-04T06:22:44.311Z
30
+ cli_version: unknown
31
+ generator_versions:
32
+ fernapi/fern-ruby-sdk: 1.17.8
33
+ current_generation: ff82f16a518e8ee51b23570ed1a303f3c070ff02
28
34
  patches: []
data/.version CHANGED
@@ -1 +1 @@
1
- v6.0.0.beta.4
1
+ v6.0.0.beta.5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## [v6.0.0.beta.5](https://github.com/auth0/ruby-auth0/tree/v6.0.0.beta.5) (2026-08-05)
4
+ [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v6.0.0.beta.4...v6.0.0.beta.5)
5
+
6
+ **Added**
7
+ - feat: add Agents and Organization Clients clients, Organization Level Roles, and Org-to-App Entitlement [\#777](https://github.com/auth0/ruby-auth0/pull/777) ([fern-api[bot]](https://github.com/apps/fern-api))
8
+
3
9
  ## [v6.0.0.beta.4](https://github.com/auth0/ruby-auth0/tree/v6.0.0.beta.4) (2026-07-22)
4
10
  [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v6.0.0.beta.3...v6.0.0.beta.4)
5
11
 
@@ -0,0 +1,201 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Agents
5
+ class Client
6
+ # @param client [Auth0::Internal::Http::RawClient]
7
+ #
8
+ # @return [void]
9
+ def initialize(client:)
10
+ @client = client
11
+ end
12
+
13
+ # Get agents
14
+ #
15
+ # @param request_options [Hash]
16
+ # @param params [Hash]
17
+ # @option request_options [String] :base_url
18
+ # @option request_options [Hash{String => Object}] :additional_headers
19
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
20
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
21
+ # @option request_options [Integer] :timeout_in_seconds
22
+ # @option params [String, nil] :from
23
+ # @option params [Integer, nil] :take
24
+ #
25
+ # @return [Auth0::Types::ListAgentsResponseContent]
26
+ def list(request_options: {}, **params)
27
+ params = Auth0::Internal::Types::Utils.normalize_keys(params)
28
+ query_params = {}
29
+ query_params["from"] = params[:from] if params.key?(:from)
30
+ query_params["take"] = params.fetch(:take, 50)
31
+
32
+ Auth0::Internal::CursorItemIterator.new(
33
+ cursor_field: :next_,
34
+ item_field: :agents,
35
+ initial_cursor: query_params["from"]
36
+ ) do |next_cursor|
37
+ query_params["from"] = next_cursor
38
+ request = Auth0::Internal::JSON::Request.new(
39
+ base_url: request_options[:base_url],
40
+ method: "GET",
41
+ path: "agents",
42
+ query: query_params,
43
+ request_options: request_options
44
+ )
45
+ begin
46
+ response = @client.send(request)
47
+ rescue Net::HTTPRequestTimeout
48
+ raise Auth0::Errors::TimeoutError
49
+ end
50
+ code = response.code.to_i
51
+ if code.between?(200, 299)
52
+ parsed_response = Auth0::Types::ListAgentsResponseContent.load(response.body)
53
+ [parsed_response, response]
54
+ else
55
+ error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
56
+ raise error_class.new(response.body, code: code)
57
+ end
58
+ end
59
+ end
60
+
61
+ # Create an agent
62
+ #
63
+ # @param request_options [Hash]
64
+ # @param params [Auth0::Agents::Types::CreateAgentRequestContent]
65
+ # @option request_options [String] :base_url
66
+ # @option request_options [Hash{String => Object}] :additional_headers
67
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
68
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
69
+ # @option request_options [Integer] :timeout_in_seconds
70
+ #
71
+ # @return [Auth0::Types::AgentResponseContent]
72
+ def create(request_options: {}, **params)
73
+ params = Auth0::Internal::Types::Utils.normalize_keys(params)
74
+ request = Auth0::Internal::JSON::Request.new(
75
+ base_url: request_options[:base_url],
76
+ method: "POST",
77
+ path: "agents",
78
+ body: Auth0::Agents::Types::CreateAgentRequestContent.new(params).to_h,
79
+ request_options: request_options
80
+ )
81
+ begin
82
+ response = @client.send(request)
83
+ rescue Net::HTTPRequestTimeout
84
+ raise Auth0::Errors::TimeoutError
85
+ end
86
+ code = response.code.to_i
87
+ if code.between?(200, 299)
88
+ Auth0::Types::AgentResponseContent.load(response.body)
89
+ else
90
+ error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
91
+ raise error_class.new(response.body, code: code)
92
+ end
93
+ end
94
+
95
+ # Get an agent
96
+ #
97
+ # @param request_options [Hash]
98
+ # @param params [Hash]
99
+ # @option request_options [String] :base_url
100
+ # @option request_options [Hash{String => Object}] :additional_headers
101
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
102
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
103
+ # @option request_options [Integer] :timeout_in_seconds
104
+ # @option params [String] :id
105
+ #
106
+ # @return [Auth0::Types::AgentResponseContent]
107
+ def read(request_options: {}, **params)
108
+ params = Auth0::Internal::Types::Utils.normalize_keys(params)
109
+ request = Auth0::Internal::JSON::Request.new(
110
+ base_url: request_options[:base_url],
111
+ method: "GET",
112
+ path: "agents/#{URI.encode_uri_component(params[:id].to_s)}",
113
+ request_options: request_options
114
+ )
115
+ begin
116
+ response = @client.send(request)
117
+ rescue Net::HTTPRequestTimeout
118
+ raise Auth0::Errors::TimeoutError
119
+ end
120
+ code = response.code.to_i
121
+ if code.between?(200, 299)
122
+ Auth0::Types::AgentResponseContent.load(response.body)
123
+ else
124
+ error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
125
+ raise error_class.new(response.body, code: code)
126
+ end
127
+ end
128
+
129
+ # Delete an agent
130
+ #
131
+ # @param request_options [Hash]
132
+ # @param params [Hash]
133
+ # @option request_options [String] :base_url
134
+ # @option request_options [Hash{String => Object}] :additional_headers
135
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
136
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
137
+ # @option request_options [Integer] :timeout_in_seconds
138
+ # @option params [String] :id
139
+ #
140
+ # @return [untyped]
141
+ def delete(request_options: {}, **params)
142
+ params = Auth0::Internal::Types::Utils.normalize_keys(params)
143
+ request = Auth0::Internal::JSON::Request.new(
144
+ base_url: request_options[:base_url],
145
+ method: "DELETE",
146
+ path: "agents/#{URI.encode_uri_component(params[:id].to_s)}",
147
+ request_options: request_options
148
+ )
149
+ begin
150
+ response = @client.send(request)
151
+ rescue Net::HTTPRequestTimeout
152
+ raise Auth0::Errors::TimeoutError
153
+ end
154
+ code = response.code.to_i
155
+ return if code.between?(200, 299)
156
+
157
+ error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
158
+ raise error_class.new(response.body, code: code)
159
+ end
160
+
161
+ # Update an agent
162
+ #
163
+ # @param request_options [Hash]
164
+ # @param params [Auth0::Agents::Types::PatchAgentRequestParameters]
165
+ # @option request_options [String] :base_url
166
+ # @option request_options [Hash{String => Object}] :additional_headers
167
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
168
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
169
+ # @option request_options [Integer] :timeout_in_seconds
170
+ # @option params [String] :id
171
+ #
172
+ # @return [Auth0::Types::AgentResponseContent]
173
+ def update(request_options: {}, **params)
174
+ params = Auth0::Internal::Types::Utils.normalize_keys(params)
175
+ request_data = Auth0::Agents::Types::PatchAgentRequestParameters.new(params).to_h
176
+ non_body_param_names = %w[id]
177
+ body = request_data.except(*non_body_param_names)
178
+
179
+ request = Auth0::Internal::JSON::Request.new(
180
+ base_url: request_options[:base_url],
181
+ method: "PATCH",
182
+ path: "agents/#{URI.encode_uri_component(params[:id].to_s)}",
183
+ body: body,
184
+ request_options: request_options
185
+ )
186
+ begin
187
+ response = @client.send(request)
188
+ rescue Net::HTTPRequestTimeout
189
+ raise Auth0::Errors::TimeoutError
190
+ end
191
+ code = response.code.to_i
192
+ if code.between?(200, 299)
193
+ Auth0::Types::AgentResponseContent.load(response.body)
194
+ else
195
+ error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
196
+ raise error_class.new(response.body, code: code)
197
+ end
198
+ end
199
+ end
200
+ end
201
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Agents
5
+ module Types
6
+ class CreateAgentRequestContent < Internal::Types::Model
7
+ field :name, -> { String }, optional: false, nullable: false
8
+
9
+ field :client_id, -> { String }, optional: true, nullable: false
10
+
11
+ field :external_agent_id, -> { String }, optional: true, nullable: false
12
+
13
+ field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Agents
5
+ module Types
6
+ class ListAgentsRequestParameters < Internal::Types::Model
7
+ field :from, -> { String }, optional: true, nullable: false
8
+
9
+ field :take, -> { Integer }, optional: true, nullable: false
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Agents
5
+ module Types
6
+ class PatchAgentRequestParameters < Internal::Types::Model
7
+ field :id, -> { String }, optional: false, nullable: false
8
+
9
+ field :name, -> { String }, optional: true, nullable: false
10
+
11
+ field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
12
+ end
13
+ end
14
+ end
15
+ end
data/lib/auth0/client.rb CHANGED
@@ -28,6 +28,11 @@ module Auth0
28
28
  @actions ||= Auth0::Actions::Client.new(client: @raw_client)
29
29
  end
30
30
 
31
+ # @return [Auth0::Agents::Client]
32
+ def agents
33
+ @agents ||= Auth0::Agents::Client.new(client: @raw_client)
34
+ end
35
+
31
36
  # @return [Auth0::Branding::Client]
32
37
  def branding
33
38
  @branding ||= Auth0::Branding::Client.new(client: @raw_client)
@@ -21,6 +21,7 @@ module Auth0
21
21
  # @option request_options [Hash{String => Object}] :additional_query_parameters
22
22
  # @option request_options [Hash{String => Object}] :additional_body_parameters
23
23
  # @option request_options [Integer] :timeout_in_seconds
24
+ # @option params [Boolean, nil] :include_totals
24
25
  # @option params [String, nil] :from
25
26
  # @option params [Integer, nil] :take
26
27
  # @option params [String, nil] :audience
@@ -33,6 +34,7 @@ module Auth0
33
34
  def list(request_options: {}, **params)
34
35
  params = Auth0::Internal::Types::Utils.normalize_keys(params)
35
36
  query_params = {}
37
+ query_params["include_totals"] = params.fetch(:include_totals, true)
36
38
  query_params["from"] = params[:from] if params.key?(:from)
37
39
  query_params["take"] = params.fetch(:take, 50)
38
40
  query_params["audience"] = params[:audience] if params.key?(:audience)
@@ -19,6 +19,7 @@ module Auth0
19
19
  # @option request_options [Hash{String => Object}] :additional_body_parameters
20
20
  # @option request_options [Integer] :timeout_in_seconds
21
21
  # @option params [String] :id
22
+ # @option params [Boolean, nil] :include_totals
22
23
  # @option params [String, nil] :from
23
24
  # @option params [Integer, nil] :take
24
25
  #
@@ -26,6 +27,7 @@ module Auth0
26
27
  def list(request_options: {}, **params)
27
28
  params = Auth0::Internal::Types::Utils.normalize_keys(params)
28
29
  query_params = {}
30
+ query_params["include_totals"] = params.fetch(:include_totals, true)
29
31
  query_params["from"] = params[:from] if params.key?(:from)
30
32
  query_params["take"] = params.fetch(:take, 50)
31
33
 
@@ -7,6 +7,8 @@ module Auth0
7
7
  class ListClientGrantOrganizationsRequestParameters < Internal::Types::Model
8
8
  field :id, -> { String }, optional: false, nullable: false
9
9
 
10
+ field :include_totals, -> { Internal::Types::Boolean }, optional: true, nullable: false
11
+
10
12
  field :from, -> { String }, optional: true, nullable: false
11
13
 
12
14
  field :take, -> { Integer }, optional: true, nullable: false
@@ -4,6 +4,8 @@ module Auth0
4
4
  module ClientGrants
5
5
  module Types
6
6
  class ListClientGrantsRequestParameters < Internal::Types::Model
7
+ field :include_totals, -> { Internal::Types::Boolean }, optional: true, nullable: false
8
+
7
9
  field :from, -> { String }, optional: true, nullable: false
8
10
 
9
11
  field :take, -> { Integer }, optional: true, nullable: false
@@ -39,6 +39,7 @@ module Auth0
39
39
  # @option request_options [Hash{String => Object}] :additional_query_parameters
40
40
  # @option request_options [Hash{String => Object}] :additional_body_parameters
41
41
  # @option request_options [Integer] :timeout_in_seconds
42
+ # @option params [Boolean, nil] :include_totals
42
43
  # @option params [String, nil] :from
43
44
  # @option params [Integer, nil] :take
44
45
  # @option params [Auth0::Types::ConnectionStrategyEnum, nil] :strategy
@@ -50,6 +51,7 @@ module Auth0
50
51
  def list(request_options: {}, **params)
51
52
  params = Auth0::Internal::Types::Utils.normalize_keys(params)
52
53
  query_params = {}
54
+ query_params["include_totals"] = params.fetch(:include_totals, true)
53
55
  query_params["from"] = params[:from] if params.key?(:from)
54
56
  query_params["take"] = params.fetch(:take, 50)
55
57
  query_params["strategy"] = params[:strategy] if params.key?(:strategy)
@@ -241,6 +241,7 @@ module Auth0
241
241
  # @option params [String] :id
242
242
  # @option params [String, nil] :from
243
243
  # @option params [Integer, nil] :take
244
+ # @option params [String, nil] :q
244
245
  #
245
246
  # @return [Auth0::Types::ListSynchronizedGroupsResponseContent]
246
247
  def list_synchronized_groups(request_options: {}, **params)
@@ -248,6 +249,7 @@ module Auth0
248
249
  query_params = {}
249
250
  query_params["from"] = params[:from] if params.key?(:from)
250
251
  query_params["take"] = params.fetch(:take, 50)
252
+ query_params["q"] = params[:q] if params.key?(:q)
251
253
 
252
254
  Auth0::Internal::CursorItemIterator.new(
253
255
  cursor_field: :next_,
@@ -278,6 +280,43 @@ module Auth0
278
280
  end
279
281
  end
280
282
 
283
+ # Add synchronized group selections to a directory provisioning configuration.
284
+ #
285
+ # @param request_options [Hash]
286
+ # @param params [Auth0::Connections::DirectoryProvisioning::Types::AddSynchronizedGroupsRequestContent]
287
+ # @option request_options [String] :base_url
288
+ # @option request_options [Hash{String => Object}] :additional_headers
289
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
290
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
291
+ # @option request_options [Integer] :timeout_in_seconds
292
+ # @option params [String] :id
293
+ #
294
+ # @return [untyped]
295
+ def add_synchronized_group_selections(request_options: {}, **params)
296
+ params = Auth0::Internal::Types::Utils.normalize_keys(params)
297
+ request_data = Auth0::Connections::DirectoryProvisioning::Types::AddSynchronizedGroupsRequestContent.new(params).to_h
298
+ non_body_param_names = %w[id]
299
+ body = request_data.except(*non_body_param_names)
300
+
301
+ request = Auth0::Internal::JSON::Request.new(
302
+ base_url: request_options[:base_url],
303
+ method: "POST",
304
+ path: "connections/#{URI.encode_uri_component(params[:id].to_s)}/directory-provisioning/synchronized-groups",
305
+ body: body,
306
+ request_options: request_options
307
+ )
308
+ begin
309
+ response = @client.send(request)
310
+ rescue Net::HTTPRequestTimeout
311
+ raise Auth0::Errors::TimeoutError
312
+ end
313
+ code = response.code.to_i
314
+ return if code.between?(200, 299)
315
+
316
+ error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
317
+ raise error_class.new(response.body, code: code)
318
+ end
319
+
281
320
  # Create or replace the selected groups for a connection directory provisioning configuration.
282
321
  #
283
322
  # @param request_options [Hash]
@@ -315,6 +354,43 @@ module Auth0
315
354
  raise error_class.new(response.body, code: code)
316
355
  end
317
356
 
357
+ # Delete synchronized group selections for a directory provisioning configuration
358
+ #
359
+ # @param request_options [Hash]
360
+ # @param params [Auth0::Connections::DirectoryProvisioning::Types::DeleteSynchronizedGroupsRequestContent]
361
+ # @option request_options [String] :base_url
362
+ # @option request_options [Hash{String => Object}] :additional_headers
363
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
364
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
365
+ # @option request_options [Integer] :timeout_in_seconds
366
+ # @option params [String] :id
367
+ #
368
+ # @return [untyped]
369
+ def delete_synchronized_group_selections(request_options: {}, **params)
370
+ params = Auth0::Internal::Types::Utils.normalize_keys(params)
371
+ request_data = Auth0::Connections::DirectoryProvisioning::Types::DeleteSynchronizedGroupsRequestContent.new(params).to_h
372
+ non_body_param_names = %w[id]
373
+ body = request_data.except(*non_body_param_names)
374
+
375
+ request = Auth0::Internal::JSON::Request.new(
376
+ base_url: request_options[:base_url],
377
+ method: "DELETE",
378
+ path: "connections/#{URI.encode_uri_component(params[:id].to_s)}/directory-provisioning/synchronized-groups",
379
+ body: body,
380
+ request_options: request_options
381
+ )
382
+ begin
383
+ response = @client.send(request)
384
+ rescue Net::HTTPRequestTimeout
385
+ raise Auth0::Errors::TimeoutError
386
+ end
387
+ code = response.code.to_i
388
+ return if code.between?(200, 299)
389
+
390
+ error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
391
+ raise error_class.new(response.body, code: code)
392
+ end
393
+
318
394
  # @return [Auth0::Synchronizations::Client]
319
395
  def synchronizations
320
396
  @synchronizations ||= Auth0::Connections::DirectoryProvisioning::Synchronizations::Client.new(client: @client)
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Connections
5
+ module DirectoryProvisioning
6
+ module Types
7
+ class AddSynchronizedGroupsRequestContent < Internal::Types::Model
8
+ field :id, -> { String }, optional: false, nullable: false
9
+
10
+ field :groups, -> { Internal::Types::Array[Auth0::Types::SynchronizedGroupPayload] }, optional: false, nullable: false
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Auth0
4
+ module Connections
5
+ module DirectoryProvisioning
6
+ module Types
7
+ class DeleteSynchronizedGroupsRequestContent < Internal::Types::Model
8
+ field :id, -> { String }, optional: false, nullable: false
9
+
10
+ field :groups, -> { Internal::Types::Array[Auth0::Types::SynchronizedGroupSelectionID] }, optional: false, nullable: false
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -10,6 +10,8 @@ module Auth0
10
10
  field :from, -> { String }, optional: true, nullable: false
11
11
 
12
12
  field :take, -> { Integer }, optional: true, nullable: false
13
+
14
+ field :q, -> { String }, optional: true, nullable: false
13
15
  end
14
16
  end
15
17
  end
@@ -4,6 +4,8 @@ module Auth0
4
4
  module Connections
5
5
  module Types
6
6
  class ListConnectionsQueryParameters < Internal::Types::Model
7
+ field :include_totals, -> { Internal::Types::Boolean }, optional: true, nullable: false
8
+
7
9
  field :from, -> { String }, optional: true, nullable: false
8
10
 
9
11
  field :take, -> { Integer }, optional: true, nullable: false
@@ -26,7 +26,7 @@ module Auth0
26
26
  # @option params [String, nil] :from
27
27
  # @option params [Integer, nil] :take
28
28
  #
29
- # @return [Array[Auth0::Types::EventStreamDelivery]]
29
+ # @return [Auth0::Types::ListEventStreamDeliveriesResponseContent]
30
30
  def list(request_options: {}, **params)
31
31
  params = Auth0::Internal::Types::Utils.normalize_keys(params)
32
32
  query_params = {}
@@ -37,23 +37,33 @@ module Auth0
37
37
  query_params["from"] = params[:from] if params.key?(:from)
38
38
  query_params["take"] = params.fetch(:take, 50)
39
39
 
40
- request = Auth0::Internal::JSON::Request.new(
41
- base_url: request_options[:base_url],
42
- method: "GET",
43
- path: "event-streams/#{URI.encode_uri_component(params[:id].to_s)}/deliveries",
44
- query: query_params,
45
- request_options: request_options
46
- )
47
- begin
48
- response = @client.send(request)
49
- rescue Net::HTTPRequestTimeout
50
- raise Auth0::Errors::TimeoutError
40
+ Auth0::Internal::CursorItemIterator.new(
41
+ cursor_field: :next_,
42
+ item_field: :deliveries,
43
+ initial_cursor: query_params["from"]
44
+ ) do |next_cursor|
45
+ query_params["from"] = next_cursor
46
+ request = Auth0::Internal::JSON::Request.new(
47
+ base_url: request_options[:base_url],
48
+ method: "GET",
49
+ path: "event-streams/#{URI.encode_uri_component(params[:id].to_s)}/deliveries",
50
+ query: query_params,
51
+ request_options: request_options
52
+ )
53
+ begin
54
+ response = @client.send(request)
55
+ rescue Net::HTTPRequestTimeout
56
+ raise Auth0::Errors::TimeoutError
57
+ end
58
+ code = response.code.to_i
59
+ if code.between?(200, 299)
60
+ parsed_response = Auth0::Types::ListEventStreamDeliveriesResponseContent.load(response.body)
61
+ [parsed_response, response]
62
+ else
63
+ error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
64
+ raise error_class.new(response.body, code: code)
65
+ end
51
66
  end
52
- code = response.code.to_i
53
- return if code.between?(200, 299)
54
-
55
- error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
56
- raise error_class.new(response.body, code: code)
57
67
  end
58
68
 
59
69
  # @param request_options [Hash]
@@ -19,6 +19,7 @@ module Auth0
19
19
  # @option request_options [Hash{String => Object}] :additional_body_parameters
20
20
  # @option request_options [Integer] :timeout_in_seconds
21
21
  # @option params [String] :flow_id
22
+ # @option params [Boolean, nil] :include_totals
22
23
  # @option params [String, nil] :from
23
24
  # @option params [Integer, nil] :take
24
25
  #
@@ -26,6 +27,7 @@ module Auth0
26
27
  def list(request_options: {}, **params)
27
28
  params = Auth0::Internal::Types::Utils.normalize_keys(params)
28
29
  query_params = {}
30
+ query_params["include_totals"] = params.fetch(:include_totals, true)
29
31
  query_params["from"] = params[:from] if params.key?(:from)
30
32
  query_params["take"] = params.fetch(:take, 50)
31
33
 
@@ -7,6 +7,8 @@ module Auth0
7
7
  class ListFlowExecutionsRequestParameters < Internal::Types::Model
8
8
  field :flow_id, -> { String }, optional: false, nullable: false
9
9
 
10
+ field :include_totals, -> { Internal::Types::Boolean }, optional: true, nullable: false
11
+
10
12
  field :from, -> { String }, optional: true, nullable: false
11
13
 
12
14
  field :take, -> { Integer }, optional: true, nullable: false
@@ -25,6 +25,7 @@ module Auth0
25
25
  # @option params [String, nil] :search
26
26
  # @option params [String, nil] :fields
27
27
  # @option params [Boolean, nil] :include_fields
28
+ # @option params [Boolean, nil] :include_totals
28
29
  # @option params [String, nil] :from
29
30
  # @option params [Integer, nil] :take
30
31
  #
@@ -38,6 +39,7 @@ module Auth0
38
39
  query_params["search"] = params[:search] if params.key?(:search)
39
40
  query_params["fields"] = params[:fields] if params.key?(:fields)
40
41
  query_params["include_fields"] = params[:include_fields] if params.key?(:include_fields)
42
+ query_params["include_totals"] = params.fetch(:include_totals, true)
41
43
  query_params["from"] = params[:from] if params.key?(:from)
42
44
  query_params["take"] = params.fetch(:take, 50)
43
45
 
@@ -16,6 +16,8 @@ module Auth0
16
16
 
17
17
  field :include_fields, -> { Internal::Types::Boolean }, optional: true, nullable: false
18
18
 
19
+ field :include_totals, -> { Internal::Types::Boolean }, optional: true, nullable: false
20
+
19
21
  field :from, -> { String }, optional: true, nullable: false
20
22
 
21
23
  field :take, -> { Integer }, optional: true, nullable: false