workos 9.0.0 → 9.2.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 (129) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +2 -2
  3. data/.github/workflows/docs.yml +2 -2
  4. data/.github/workflows/lint.yml +2 -2
  5. data/.github/workflows/release-please.yml +49 -66
  6. data/.github/workflows/release.yml +2 -2
  7. data/.last-synced-sha +1 -1
  8. data/.oagen-manifest.json +101 -14
  9. data/.release-please-manifest.json +1 -1
  10. data/.ruby-version +1 -1
  11. data/CHANGELOG.md +89 -0
  12. data/Gemfile.lock +4 -4
  13. data/lib/workos/{directory_sync/dsync_deactivated.rb → api_keys/api_key_updated.rb} +2 -2
  14. data/lib/workos/api_keys/api_key_updated_data.rb +49 -0
  15. data/lib/workos/{directory_sync/dsync_deactivated_data_domain.rb → api_keys/api_key_updated_data_owner.rb} +1 -1
  16. data/lib/workos/api_keys/api_key_updated_data_previous_attribute.rb +18 -0
  17. data/lib/workos/api_keys/expire_api_key.rb +18 -0
  18. data/lib/workos/api_keys.rb +25 -0
  19. data/lib/workos/{types/dsync_deactivated_data_type.rb → authorization/create_group_role_assignment.rb} +1 -3
  20. data/lib/workos/authorization/delete_group_role_assignments_by_criteria.rb +7 -0
  21. data/lib/workos/authorization/group_role_assignment.rb +37 -0
  22. data/lib/workos/authorization/group_role_assignment_list.rb +25 -0
  23. data/lib/workos/authorization/group_role_assignment_resource.rb +25 -0
  24. data/lib/workos/authorization/replace_group_role_assignment_entry.rb +7 -0
  25. data/lib/workos/authorization/replace_group_role_assignments.rb +18 -0
  26. data/lib/workos/authorization/user_role_assignment_resource.rb +1 -19
  27. data/lib/workos/authorization.rb +190 -10
  28. data/lib/workos/base_client.rb +19 -2
  29. data/lib/workos/client.rb +8 -0
  30. data/lib/workos/client_api/client_api_token.rb +22 -0
  31. data/lib/workos/client_api/client_api_token_response.rb +18 -0
  32. data/lib/workos/client_api.rb +39 -0
  33. data/lib/workos/connect/user_object.rb +3 -0
  34. data/lib/workos/connect.rb +1 -1
  35. data/lib/workos/directory_sync/dsync_token_created.rb +34 -0
  36. data/lib/workos/directory_sync/dsync_token_created_data.rb +34 -0
  37. data/lib/workos/directory_sync/dsync_token_revoked.rb +34 -0
  38. data/lib/workos/directory_sync/dsync_token_revoked_data.rb +7 -0
  39. data/lib/workos/directory_sync.rb +2 -2
  40. data/lib/workos/events.rb +1 -1
  41. data/lib/workos/groups.rb +2 -2
  42. data/lib/workos/inflections.rb +0 -1
  43. data/lib/workos/organization_membership_service.rb +2 -2
  44. data/lib/workos/organizations.rb +1 -1
  45. data/lib/workos/pipes/connected_account.rb +6 -0
  46. data/lib/workos/pipes/data_integrations_list_response_data.rb +3 -0
  47. data/lib/workos/pipes/data_integrations_list_response_data_connected_account.rb +6 -0
  48. data/lib/workos/pipes.rb +5 -5
  49. data/lib/workos/pipes_provider/configure_data_integration_body.rb +28 -0
  50. data/lib/workos/pipes_provider/data_integration_configuration_list_response.rb +22 -0
  51. data/lib/workos/{directory_sync/dsync_deactivated_data.rb → pipes_provider/data_integration_configuration_response.rb} +13 -13
  52. data/lib/workos/pipes_provider/data_integration_credentials.rb +31 -0
  53. data/lib/workos/pipes_provider.rb +68 -0
  54. data/lib/workos/types/audit_log_configuration_log_stream_type.rb +2 -1
  55. data/lib/workos/types/connected_account_auth_method.rb +13 -0
  56. data/lib/workos/types/create_webhook_endpoint_events.rb +2 -1
  57. data/lib/workos/types/data_integration_access_token_response_error.rb +2 -2
  58. data/lib/workos/types/data_integration_credentials_credentials_type.rb +14 -0
  59. data/lib/workos/types/{dsync_deactivated_data_state.rb → data_integrations_list_response_data_auth_methods.rb} +1 -1
  60. data/lib/workos/types/data_integrations_list_response_data_connected_account_auth_method.rb +9 -0
  61. data/lib/workos/types/radar_standalone_response_control.rb +1 -2
  62. data/lib/workos/types/widget_session_token_scopes.rb +2 -1
  63. data/lib/workos/user_management/create_user.rb +3 -0
  64. data/lib/workos/user_management/email_change_confirmation_user.rb +3 -0
  65. data/lib/workos/user_management/revoke_session.rb +2 -6
  66. data/lib/workos/user_management/update_user.rb +3 -0
  67. data/lib/workos/user_management/user_api_key_updated_data_owner.rb +7 -0
  68. data/lib/workos/user_management.rb +13 -10
  69. data/lib/workos/vault/{object.rb → vault_object.rb} +1 -1
  70. data/lib/workos/vault.rb +4 -4
  71. data/lib/workos/version.rb +1 -1
  72. data/lib/workos/webhooks.rb +1 -1
  73. data/lib/workos/widgets/widget_session_token_response.rb +1 -12
  74. data/lib/workos.rb +2 -0
  75. data/rbi/workos/{dsync_deactivated.rbi → api_key_updated.rbi} +3 -3
  76. data/rbi/workos/api_key_updated_data.rbi +84 -0
  77. data/rbi/workos/api_key_updated_data_owner.rbi +30 -0
  78. data/rbi/workos/api_key_updated_data_previous_attribute.rbi +24 -0
  79. data/rbi/workos/api_keys.rbi +9 -0
  80. data/rbi/workos/authorization.rbi +63 -0
  81. data/rbi/workos/authorization_code_session_authenticate_request.rbi +2 -2
  82. data/rbi/workos/client.rbi +6 -0
  83. data/rbi/workos/client_api.rbi +22 -0
  84. data/rbi/workos/client_api_token.rbi +30 -0
  85. data/rbi/workos/client_api_token_response.rbi +24 -0
  86. data/rbi/workos/configure_data_integration_body.rbi +42 -0
  87. data/rbi/workos/connected_account.rbi +12 -0
  88. data/rbi/workos/create_group_role_assignment.rbi +42 -0
  89. data/rbi/workos/create_user.rbi +6 -0
  90. data/rbi/workos/data_integration_configuration_list_response.rbi +30 -0
  91. data/rbi/workos/{dsync_deactivated_data.rbi → data_integration_configuration_response.rbi} +21 -21
  92. data/rbi/workos/data_integration_credentials.rbi +48 -0
  93. data/rbi/workos/data_integrations_list_response_data.rbi +6 -0
  94. data/rbi/workos/data_integrations_list_response_data_connected_account.rbi +12 -0
  95. data/rbi/workos/delete_group_role_assignments_by_criteria.rbi +42 -0
  96. data/rbi/workos/dsync_token_created.rbi +54 -0
  97. data/rbi/workos/dsync_token_created_data.rbi +54 -0
  98. data/rbi/workos/dsync_token_revoked.rbi +54 -0
  99. data/rbi/workos/dsync_token_revoked_data.rbi +54 -0
  100. data/rbi/workos/email_change_confirmation_user.rbi +6 -0
  101. data/rbi/workos/expire_api_key.rbi +24 -0
  102. data/rbi/workos/group_role_assignment.rbi +60 -0
  103. data/rbi/workos/group_role_assignment_resource.rbi +36 -0
  104. data/rbi/workos/organization_membership_service.rbi +1 -1
  105. data/rbi/workos/pipes.rbi +2 -2
  106. data/rbi/workos/pipes_provider.rbi +34 -0
  107. data/rbi/workos/refresh_token_session_authenticate_request.rbi +2 -2
  108. data/rbi/workos/replace_group_role_assignment_entry.rbi +42 -0
  109. data/rbi/workos/replace_group_role_assignments.rbi +24 -0
  110. data/rbi/workos/revoke_session.rbi +0 -6
  111. data/rbi/workos/update_user.rbi +6 -0
  112. data/rbi/workos/user.rbi +6 -0
  113. data/rbi/workos/{dsync_deactivated_data_domain.rbi → user_api_key_updated_data_owner.rbi} +5 -5
  114. data/rbi/workos/user_management.rbi +8 -7
  115. data/rbi/workos/user_object.rbi +6 -0
  116. data/rbi/workos/vault.rbi +2 -2
  117. data/rbi/workos/{object.rbi → vault_object.rbi} +1 -1
  118. data/renovate.json +1 -61
  119. data/test/workos/test_api_keys.rb +9 -1
  120. data/test/workos/test_authorization.rb +48 -0
  121. data/test/workos/test_base_client.rb +64 -0
  122. data/test/workos/test_client_api.rb +33 -0
  123. data/test/workos/test_model_round_trip.rb +363 -67
  124. data/test/workos/test_pipes.rb +3 -3
  125. data/test/workos/test_pipes_provider.rb +41 -0
  126. data/test/workos/test_user_management.rb +2 -2
  127. data/test/workos/test_vault.rb +0 -1
  128. metadata +61 -17
  129. /data/lib/workos/{authorization → groups}/user_organization_membership_base_list_data.rb +0 -0
@@ -52,6 +52,186 @@ module WorkOS
52
52
  @client = client
53
53
  end
54
54
 
55
+ # List role assignments for a group
56
+ # @param group_id [String] The ID of the group.
57
+ # @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
58
+ # @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
59
+ # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
60
+ # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
61
+ # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
62
+ # @return [WorkOS::Types::ListStruct<WorkOS::GroupRoleAssignment>]
63
+ def list_group_role_assignments(
64
+ group_id:,
65
+ before: nil,
66
+ after: nil,
67
+ limit: 10,
68
+ order: "desc",
69
+ request_options: {}
70
+ )
71
+ params = {
72
+ "before" => before,
73
+ "after" => after,
74
+ "limit" => limit,
75
+ "order" => order
76
+ }.compact
77
+ response = @client.request(
78
+ method: :get,
79
+ path: "/authorization/groups/#{WorkOS::Util.encode_path(group_id)}/role_assignments",
80
+ auth: true,
81
+ params: params,
82
+ request_options: request_options
83
+ )
84
+ fetch_next = ->(cursor) {
85
+ list_group_role_assignments(
86
+ group_id: group_id,
87
+ before: before,
88
+ after: cursor,
89
+ limit: limit,
90
+ order: order,
91
+ request_options: request_options
92
+ )
93
+ }
94
+ WorkOS::Types::ListStruct.from_response(
95
+ response,
96
+ model: WorkOS::GroupRoleAssignment,
97
+ filters: {group_id: group_id, before: before, limit: limit, order: order},
98
+ fetch_next: fetch_next
99
+ )
100
+ end
101
+
102
+ # Assign a role to a group
103
+ # @param group_id [String] The ID of the group.
104
+ # @param role_slug [String] The slug of the role to assign to the group.
105
+ # @param resource_id [String, nil] The ID of the resource. Omit along with the external-id fields to target the organization itself.
106
+ # @param resource_external_id [String, nil] The external ID of the resource.
107
+ # @param resource_type_slug [String, nil] The resource type slug.
108
+ # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
109
+ # @return [WorkOS::GroupRoleAssignment]
110
+ def create_group_role_assignment(
111
+ group_id:,
112
+ role_slug:,
113
+ resource_id: nil,
114
+ resource_external_id: nil,
115
+ resource_type_slug: nil,
116
+ request_options: {}
117
+ )
118
+ body = {
119
+ "role_slug" => role_slug,
120
+ "resource_id" => resource_id,
121
+ "resource_external_id" => resource_external_id,
122
+ "resource_type_slug" => resource_type_slug
123
+ }.compact
124
+ response = @client.request(
125
+ method: :post,
126
+ path: "/authorization/groups/#{WorkOS::Util.encode_path(group_id)}/role_assignments",
127
+ auth: true,
128
+ body: body,
129
+ request_options: request_options
130
+ )
131
+ result = WorkOS::GroupRoleAssignment.new(response.body)
132
+ result.last_response = WorkOS::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"])
133
+ result
134
+ end
135
+
136
+ # Replace all role assignments for a group
137
+ # @param group_id [String] The ID of the group.
138
+ # @param role_assignments [Array<WorkOS::ReplaceGroupRoleAssignmentEntry>] The list of role assignments that should exist for the group. All existing assignments will be replaced.
139
+ # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
140
+ # @return [WorkOS::Types::ListStruct<WorkOS::GroupRoleAssignment>]
141
+ def update_group_role_assignments(
142
+ group_id:,
143
+ role_assignments:,
144
+ request_options: {}
145
+ )
146
+ body = {
147
+ "role_assignments" => role_assignments
148
+ }
149
+ response = @client.request(
150
+ method: :put,
151
+ path: "/authorization/groups/#{WorkOS::Util.encode_path(group_id)}/role_assignments",
152
+ auth: true,
153
+ body: body,
154
+ request_options: request_options
155
+ )
156
+ WorkOS::Types::ListStruct.from_response(
157
+ response,
158
+ model: WorkOS::GroupRoleAssignment,
159
+ filters: {group_id: group_id, role_assignments: role_assignments}
160
+ )
161
+ end
162
+
163
+ # Remove group role assignments by criteria
164
+ # @param group_id [String] The ID of the group.
165
+ # @param role_slug [String] The slug of the role to remove assignments for.
166
+ # @param resource_id [String, nil] The ID of the resource. Mutually exclusive with `resource_external_id` and `resource_type_slug`.
167
+ # @param resource_external_id [String, nil] The external ID of the resource.
168
+ # @param resource_type_slug [String, nil] The resource type slug.
169
+ # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
170
+ # @return [void]
171
+ def delete_group_role_assignments(
172
+ group_id:,
173
+ role_slug:,
174
+ resource_id: nil,
175
+ resource_external_id: nil,
176
+ resource_type_slug: nil,
177
+ request_options: {}
178
+ )
179
+ body = {
180
+ "role_slug" => role_slug,
181
+ "resource_id" => resource_id,
182
+ "resource_external_id" => resource_external_id,
183
+ "resource_type_slug" => resource_type_slug
184
+ }.compact
185
+ @client.request(
186
+ method: :delete,
187
+ path: "/authorization/groups/#{WorkOS::Util.encode_path(group_id)}/role_assignments",
188
+ auth: true,
189
+ body: body,
190
+ request_options: request_options
191
+ )
192
+ nil
193
+ end
194
+
195
+ # Get a group role assignment
196
+ # @param group_id [String] The ID of the group.
197
+ # @param role_assignment_id [String] The ID of the group role assignment.
198
+ # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
199
+ # @return [WorkOS::GroupRoleAssignment]
200
+ def get_group_role_assignment(
201
+ group_id:,
202
+ role_assignment_id:,
203
+ request_options: {}
204
+ )
205
+ response = @client.request(
206
+ method: :get,
207
+ path: "/authorization/groups/#{WorkOS::Util.encode_path(group_id)}/role_assignments/#{WorkOS::Util.encode_path(role_assignment_id)}",
208
+ auth: true,
209
+ request_options: request_options
210
+ )
211
+ result = WorkOS::GroupRoleAssignment.new(response.body)
212
+ result.last_response = WorkOS::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"])
213
+ result
214
+ end
215
+
216
+ # Remove a group role assignment
217
+ # @param group_id [String] The ID of the group.
218
+ # @param role_assignment_id [String] The ID of the group role assignment to remove.
219
+ # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
220
+ # @return [void]
221
+ def delete_group_role_assignment(
222
+ group_id:,
223
+ role_assignment_id:,
224
+ request_options: {}
225
+ )
226
+ @client.request(
227
+ method: :delete,
228
+ path: "/authorization/groups/#{WorkOS::Util.encode_path(group_id)}/role_assignments/#{WorkOS::Util.encode_path(role_assignment_id)}",
229
+ auth: true,
230
+ request_options: request_options
231
+ )
232
+ nil
233
+ end
234
+
55
235
  # Check authorization
56
236
  # @param organization_membership_id [String] The ID of the organization membership to check.
57
237
  # @param permission_slug [String] The slug of the permission to check.
@@ -93,7 +273,7 @@ module WorkOS
93
273
  # @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
94
274
  # @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
95
275
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
96
- # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending.
276
+ # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
97
277
  # @param permission_slug [String] The permission slug to filter by. Only child resources where the organization membership has this permission are returned.
98
278
  # @param parent_resource [WorkOS::Authorization::ParentResourceById, WorkOS::Authorization::ParentResourceByExternalId] Identifies the parent resource.
99
279
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
@@ -157,7 +337,7 @@ module WorkOS
157
337
  # @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
158
338
  # @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
159
339
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
160
- # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending.
340
+ # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
161
341
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
162
342
  # @return [WorkOS::Types::ListStruct<WorkOS::AuthorizationPermission>]
163
343
  def list_effective_permissions(
@@ -208,7 +388,7 @@ module WorkOS
208
388
  # @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
209
389
  # @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
210
390
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
211
- # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending.
391
+ # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
212
392
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
213
393
  # @return [WorkOS::Types::ListStruct<WorkOS::AuthorizationPermission>]
214
394
  def list_effective_permissions_by_external_id(
@@ -259,7 +439,7 @@ module WorkOS
259
439
  # @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
260
440
  # @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
261
441
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
262
- # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending.
442
+ # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
263
443
  # @param resource_id [String, nil] Filter assignments by the ID of the resource.
264
444
  # @param resource_external_id [String, nil] Filter assignments by the external ID of the resource.
265
445
  # @param resource_type_slug [String, nil] Filter assignments by the slug of the resource type.
@@ -706,7 +886,7 @@ module WorkOS
706
886
  # @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
707
887
  # @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
708
888
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
709
- # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending.
889
+ # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
710
890
  # @param permission_slug [String] The permission slug to filter by. Only users with this permission on the resource are returned.
711
891
  # @param assignment [WorkOS::Types::AuthorizationAssignment, nil] Filter by assignment type. Use "direct" for direct assignments only, or "indirect" to include inherited assignments.
712
892
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
@@ -767,7 +947,7 @@ module WorkOS
767
947
  # @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
768
948
  # @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
769
949
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
770
- # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending.
950
+ # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
771
951
  # @param role_slug [String, nil] Filter assignments by the slug of the role.
772
952
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
773
953
  # @return [WorkOS::Types::ListStruct<WorkOS::UserRoleAssignment>]
@@ -821,7 +1001,7 @@ module WorkOS
821
1001
  # @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
822
1002
  # @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
823
1003
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
824
- # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending.
1004
+ # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
825
1005
  # @param organization_id [String, nil] Filter resources by organization ID.
826
1006
  # @param resource_type_slug [String, nil] Filter resources by resource type slug.
827
1007
  # @param resource_external_id [String, nil] Filter resources by external ID.
@@ -1023,7 +1203,7 @@ module WorkOS
1023
1203
  # @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
1024
1204
  # @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
1025
1205
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
1026
- # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending.
1206
+ # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
1027
1207
  # @param permission_slug [String] The permission slug to filter by. Only users with this permission on the resource are returned.
1028
1208
  # @param assignment [WorkOS::Types::AuthorizationAssignment, nil] Filter by assignment type. Use `direct` for direct assignments only, or `indirect` to include inherited assignments.
1029
1209
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
@@ -1078,7 +1258,7 @@ module WorkOS
1078
1258
  # @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
1079
1259
  # @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
1080
1260
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
1081
- # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending.
1261
+ # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
1082
1262
  # @param role_slug [String, nil] Filter assignments by the slug of the role.
1083
1263
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
1084
1264
  # @return [WorkOS::Types::ListStruct<WorkOS::UserRoleAssignment>]
@@ -1272,7 +1452,7 @@ module WorkOS
1272
1452
  # @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
1273
1453
  # @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
1274
1454
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
1275
- # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending.
1455
+ # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
1276
1456
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
1277
1457
  # @return [WorkOS::Types::ListStruct<WorkOS::AuthorizationPermission>]
1278
1458
  def list_permissions(
@@ -166,7 +166,7 @@ module WorkOS
166
166
  end
167
167
 
168
168
  # Close all persistent connections cached by this client on the current
169
- # fiber/thread.
169
+ # thread.
170
170
  #
171
171
  # Call this before forking (e.g. in a Puma `on_worker_boot` block) to
172
172
  # avoid sharing `Net::HTTP` sockets across processes.
@@ -302,8 +302,25 @@ module WorkOS
302
302
  "#{uri.scheme}:#{uri.host}:#{uri.port}:#{timeout}"
303
303
  end
304
304
 
305
+ # Per-fiber connection cache (non-inherited).
306
+ #
307
+ # Uses Thread.current[] (Ruby fiber-local storage) rather than
308
+ # Fiber[] (inheritable fiber storage). Fiber[] is inherited *by
309
+ # reference* by every child fiber and every child thread, so a live
310
+ # Net::HTTP socket cached in a parent fiber would be shared across
311
+ # worker threads spawned afterward (e.g. Solid Queue, Puma). Net::HTTP
312
+ # sockets are not thread-safe; concurrent use corrupts the stream and
313
+ # surfaces as FrozenError on the SSLContext, Errno::EBADF, "stream
314
+ # closed in another thread" (IOError), and Net::HTTPBadResponse.
315
+ # Thread.current[] is not inherited across threads, so each thread
316
+ # gets its own isolated cache.
317
+ #
318
+ # Note: Thread.current[] is fiber-local in Ruby — each Fiber within a
319
+ # thread has its own slot. In fiber-based servers (Async, Falcon) this
320
+ # means one connection cache per fiber rather than per OS thread, which
321
+ # is the desired behavior: each concurrent request gets its own sockets.
305
322
  def thread_connections
306
- Fiber[:workos_connections] ||= {}
323
+ Thread.current[:workos_connections] ||= {}
307
324
  end
308
325
 
309
326
  def build_request(klass, path, auth:, request_options:)
data/lib/workos/client.rb CHANGED
@@ -16,6 +16,10 @@ module WorkOS
16
16
  @authorization ||= WorkOS::Authorization.new(self)
17
17
  end
18
18
 
19
+ def client_api
20
+ @client_api ||= WorkOS::ClientApi.new(self)
21
+ end
22
+
19
23
  def sso
20
24
  @sso ||= WorkOS::SSO.new(self)
21
25
  end
@@ -48,6 +52,10 @@ module WorkOS
48
52
  @api_keys ||= WorkOS::ApiKeys.new(self)
49
53
  end
50
54
 
55
+ def pipes_provider
56
+ @pipes_provider ||= WorkOS::PipesProvider.new(self)
57
+ end
58
+
51
59
  def groups
52
60
  @groups ||= WorkOS::Groups.new(self)
53
61
  end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class ClientApiToken < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ organization_id: :organization_id,
9
+ user_id: :user_id
10
+ }.freeze
11
+
12
+ attr_accessor \
13
+ :organization_id,
14
+ :user_id
15
+
16
+ def initialize(json)
17
+ hash = self.class.normalize(json)
18
+ @organization_id = hash[:organization_id]
19
+ @user_id = hash[:user_id]
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class ClientApiTokenResponse < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ token: :token
9
+ }.freeze
10
+
11
+ attr_accessor :token
12
+
13
+ def initialize(json)
14
+ hash = self.class.normalize(json)
15
+ @token = hash[:token]
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ require "json"
6
+
7
+ module WorkOS
8
+ class ClientApi
9
+ def initialize(client)
10
+ @client = client
11
+ end
12
+
13
+ # Generate a Client API token
14
+ # @param organization_id [String] The ID of the organization to scope the Client API token to.
15
+ # @param user_id [String] The ID of the user to issue the Client API token for.
16
+ # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
17
+ # @return [WorkOS::ClientApiTokenResponse]
18
+ def create_token(
19
+ organization_id:,
20
+ user_id:,
21
+ request_options: {}
22
+ )
23
+ body = {
24
+ "organization_id" => organization_id,
25
+ "user_id" => user_id
26
+ }
27
+ response = @client.request(
28
+ method: :post,
29
+ path: "/client/token",
30
+ auth: true,
31
+ body: body,
32
+ request_options: request_options
33
+ )
34
+ result = WorkOS::ClientApiTokenResponse.new(response.body)
35
+ result.last_response = WorkOS::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"])
36
+ result
37
+ end
38
+ end
39
+ end
@@ -9,6 +9,7 @@ module WorkOS
9
9
  email: :email,
10
10
  first_name: :first_name,
11
11
  last_name: :last_name,
12
+ name: :name,
12
13
  metadata: :metadata
13
14
  }.freeze
14
15
 
@@ -17,6 +18,7 @@ module WorkOS
17
18
  :email,
18
19
  :first_name,
19
20
  :last_name,
21
+ :name,
20
22
  :metadata
21
23
 
22
24
  def initialize(json)
@@ -25,6 +27,7 @@ module WorkOS
25
27
  @email = hash[:email]
26
28
  @first_name = hash[:first_name]
27
29
  @last_name = hash[:last_name]
30
+ @name = hash[:name]
28
31
  @metadata = hash[:metadata] || {}
29
32
  end
30
33
  end
@@ -43,7 +43,7 @@ module WorkOS
43
43
  # @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
44
44
  # @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
45
45
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
46
- # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending.
46
+ # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
47
47
  # @param organization_id [String, nil] Filter Connect Applications by organization ID.
48
48
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
49
49
  # @return [WorkOS::Types::ListStruct<WorkOS::ConnectApplication>]
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class DsyncTokenCreated < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ id: :id,
10
+ event: :event,
11
+ data: :data,
12
+ created_at: :created_at,
13
+ context: :context
14
+ }.freeze
15
+
16
+ attr_accessor \
17
+ :object,
18
+ :id,
19
+ :event,
20
+ :data,
21
+ :created_at,
22
+ :context
23
+
24
+ def initialize(json)
25
+ hash = self.class.normalize(json)
26
+ @object = hash[:object]
27
+ @id = hash[:id]
28
+ @event = hash[:event]
29
+ @data = hash[:data] ? WorkOS::DsyncTokenCreatedData.new(hash[:data]) : nil
30
+ @created_at = hash[:created_at]
31
+ @context = hash[:context] ? WorkOS::EventContext.new(hash[:context]) : nil
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class DsyncTokenCreatedData < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ id: :id,
10
+ directory_id: :directory_id,
11
+ organization_id: :organization_id,
12
+ token_suffix: :token_suffix,
13
+ created_at: :created_at
14
+ }.freeze
15
+
16
+ attr_accessor \
17
+ :object,
18
+ :id,
19
+ :directory_id,
20
+ :organization_id,
21
+ :token_suffix,
22
+ :created_at
23
+
24
+ def initialize(json)
25
+ hash = self.class.normalize(json)
26
+ @object = hash[:object]
27
+ @id = hash[:id]
28
+ @directory_id = hash[:directory_id]
29
+ @organization_id = hash[:organization_id]
30
+ @token_suffix = hash[:token_suffix]
31
+ @created_at = hash[:created_at]
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class DsyncTokenRevoked < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ id: :id,
10
+ event: :event,
11
+ data: :data,
12
+ created_at: :created_at,
13
+ context: :context
14
+ }.freeze
15
+
16
+ attr_accessor \
17
+ :object,
18
+ :id,
19
+ :event,
20
+ :data,
21
+ :created_at,
22
+ :context
23
+
24
+ def initialize(json)
25
+ hash = self.class.normalize(json)
26
+ @object = hash[:object]
27
+ @id = hash[:id]
28
+ @event = hash[:event]
29
+ @data = hash[:data] ? WorkOS::DsyncTokenRevokedData.new(hash[:data]) : nil
30
+ @created_at = hash[:created_at]
31
+ @context = hash[:context] ? WorkOS::EventContext.new(hash[:context]) : nil
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ DsyncTokenRevokedData = DsyncTokenCreatedData
7
+ end
@@ -106,7 +106,7 @@ module WorkOS
106
106
  # @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
107
107
  # @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
108
108
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
109
- # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending.
109
+ # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
110
110
  # @param directory [String, nil] Unique identifier of the WorkOS Directory. This value can be obtained from the WorkOS dashboard or from the WorkOS API.
111
111
  # @param user [String, nil] Unique identifier of the WorkOS Directory User. This value can be obtained from the WorkOS API.
112
112
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
@@ -177,7 +177,7 @@ module WorkOS
177
177
  # @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
178
178
  # @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
179
179
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
180
- # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending.
180
+ # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
181
181
  # @param directory [String, nil] Unique identifier of the WorkOS Directory. This value can be obtained from the WorkOS dashboard or from the WorkOS API.
182
182
  # @param group [String, nil] Unique identifier of the WorkOS Directory Group. This value can be obtained from the WorkOS API.
183
183
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
data/lib/workos/events.rb CHANGED
@@ -14,7 +14,7 @@ module WorkOS
14
14
  # @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
15
15
  # @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
16
16
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
17
- # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending.
17
+ # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
18
18
  # @param events [Array<String>, nil] Filter events by one or more event types (e.g. `dsync.user.created`).
19
19
  # @param range_start [String, nil] ISO-8601 date string to filter events created after this date.
20
20
  # @param range_end [String, nil] ISO-8601 date string to filter events created before this date.
data/lib/workos/groups.rb CHANGED
@@ -15,7 +15,7 @@ module WorkOS
15
15
  # @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
16
16
  # @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
17
17
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
18
- # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending.
18
+ # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
19
19
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
20
20
  # @return [WorkOS::Types::ListStruct<WorkOS::Group>]
21
21
  def list_organization_groups(
@@ -161,7 +161,7 @@ module WorkOS
161
161
  # @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
162
162
  # @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
163
163
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
164
- # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending.
164
+ # @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
165
165
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
166
166
  # @return [WorkOS::Types::ListStruct<WorkOS::UserOrganizationMembershipBaseListData>]
167
167
  def list_group_organization_memberships(
@@ -50,7 +50,6 @@ WORKOS_INFLECTIONS = {
50
50
  "create_oauth_application" => "CreateOAuthApplication",
51
51
  "jwt_template_response" => "JWTTemplateResponse",
52
52
  "mfa_totp_session_authenticate_request" => "MFATotpSessionAuthenticateRequest",
53
- "object" => "ObjectModel",
54
53
  "pkce" => "PKCE",
55
54
  "sso" => "SSO",
56
55
  "sso_authorize_url_response" => "SSOAuthorizeUrlResponse",