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
@@ -45,7 +45,7 @@ module WorkOS
45
45
 
46
46
  # Authenticate
47
47
  # @param client_id [String] The client ID of the application.
48
- # @param client_secret [String, nil] The client secret of the application.
48
+ # @param client_secret [String, nil] The client secret of the application. May be omitted by public clients that authenticate through other means, such as a PKCE `code_verifier`.
49
49
  # @param grant_type [String]
50
50
  # @param code [String, nil] The authorization code received from the redirect.
51
51
  # @param code_verifier [String, nil] The PKCE code verifier used to derive the code challenge passed to the authorization URL.
@@ -432,18 +432,15 @@ module WorkOS
432
432
 
433
433
  # Revoke Session
434
434
  # @param session_id [String] The ID of the session to revoke. This can be extracted from the `sid` claim of the access token.
435
- # @param return_to [String, nil] The URL to redirect the user to after session revocation.
436
435
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
437
436
  # @return [void]
438
437
  def revoke_session(
439
438
  session_id:,
440
- return_to: nil,
441
439
  request_options: {}
442
440
  )
443
441
  body = {
444
- "session_id" => session_id,
445
- "return_to" => return_to
446
- }.compact
442
+ "session_id" => session_id
443
+ }
447
444
  @client.request(
448
445
  method: :post,
449
446
  path: "/user_management/sessions/revoke",
@@ -568,7 +565,7 @@ module WorkOS
568
565
  # @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"`.
569
566
  # @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"`.
570
567
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
571
- # @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.
568
+ # @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).
572
569
  # @param organization [String, nil] (deprecated) Filter users by the organization they are a member of. Deprecated in favor of `organization_id`.
573
570
  # @param organization_id [String, nil] Filter users by the organization they are a member of.
574
571
  # @param email [String, nil] Filter users by their email address.
@@ -624,6 +621,7 @@ module WorkOS
624
621
  # @param email [String] The email address of the user.
625
622
  # @param first_name [String, nil] The first name of the user.
626
623
  # @param last_name [String, nil] The last name of the user.
624
+ # @param name [String, nil] The user's full name.
627
625
  # @param email_verified [Boolean, nil] Whether the user's email has been verified.
628
626
  # @param metadata [Hash{String => String}, nil] Object containing metadata key/value pairs associated with the user.
629
627
  # @param external_id [String, nil] The external ID of the user.
@@ -634,6 +632,7 @@ module WorkOS
634
632
  email:,
635
633
  first_name: nil,
636
634
  last_name: nil,
635
+ name: nil,
637
636
  email_verified: nil,
638
637
  metadata: nil,
639
638
  external_id: nil,
@@ -644,6 +643,7 @@ module WorkOS
644
643
  "email" => email,
645
644
  "first_name" => first_name,
646
645
  "last_name" => last_name,
646
+ "name" => name,
647
647
  "email_verified" => email_verified,
648
648
  "metadata" => metadata,
649
649
  "external_id" => external_id
@@ -714,6 +714,7 @@ module WorkOS
714
714
  # @param email [String, nil] The email address of the user.
715
715
  # @param first_name [String, nil] The first name of the user.
716
716
  # @param last_name [String, nil] The last name of the user.
717
+ # @param name [String, nil] The user's full name.
717
718
  # @param email_verified [Boolean, nil] Whether the user's email has been verified.
718
719
  # @param metadata [Hash{String => String}, nil] Object containing metadata key/value pairs associated with the user.
719
720
  # @param external_id [String, nil] The external ID of the user.
@@ -726,6 +727,7 @@ module WorkOS
726
727
  email: nil,
727
728
  first_name: nil,
728
729
  last_name: nil,
730
+ name: nil,
729
731
  email_verified: nil,
730
732
  metadata: nil,
731
733
  external_id: nil,
@@ -737,6 +739,7 @@ module WorkOS
737
739
  "email" => email,
738
740
  "first_name" => first_name,
739
741
  "last_name" => last_name,
742
+ "name" => name,
740
743
  "email_verified" => email_verified,
741
744
  "metadata" => metadata,
742
745
  "external_id" => external_id,
@@ -899,7 +902,7 @@ module WorkOS
899
902
  # @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"`.
900
903
  # @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"`.
901
904
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
902
- # @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.
905
+ # @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).
903
906
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
904
907
  # @return [WorkOS::Types::ListStruct<WorkOS::UserSessionsListItem>]
905
908
  def list_sessions(
@@ -945,7 +948,7 @@ module WorkOS
945
948
  # @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"`.
946
949
  # @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"`.
947
950
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
948
- # @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.
951
+ # @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).
949
952
  # @param organization_id [String, nil] The ID of the [organization](https://workos.com/docs/reference/organization) that the recipient will join.
950
953
  # @param email [String, nil] The email address of the recipient.
951
954
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
@@ -1243,7 +1246,7 @@ module WorkOS
1243
1246
  # @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"`.
1244
1247
  # @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"`.
1245
1248
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
1246
- # @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.
1249
+ # @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).
1247
1250
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
1248
1251
  # @return [WorkOS::Types::ListStruct<WorkOS::AuthorizedConnectApplicationListData>]
1249
1252
  def list_user_authorized_applications(
@@ -3,7 +3,7 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module WorkOS
6
- class ObjectModel < WorkOS::Types::BaseModel
6
+ class VaultObject < WorkOS::Types::BaseModel
7
7
  HASH_ATTRS = {
8
8
  id: :id,
9
9
  metadata: :metadata,
data/lib/workos/vault.rb CHANGED
@@ -169,7 +169,7 @@ module WorkOS
169
169
  # Read an object by name
170
170
  # @param name [String] Unique name of the object.
171
171
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
172
- # @return [WorkOS::ObjectModel]
172
+ # @return [WorkOS::VaultObject]
173
173
  def get_name(
174
174
  name:,
175
175
  request_options: {}
@@ -180,7 +180,7 @@ module WorkOS
180
180
  auth: true,
181
181
  request_options: request_options
182
182
  )
183
- result = WorkOS::ObjectModel.new(response.body)
183
+ result = WorkOS::VaultObject.new(response.body)
184
184
  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"])
185
185
  result
186
186
  end
@@ -188,7 +188,7 @@ module WorkOS
188
188
  # Read an object by ID
189
189
  # @param id [String] Unique identifier of the object.
190
190
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
191
- # @return [WorkOS::ObjectModel]
191
+ # @return [WorkOS::VaultObject]
192
192
  def get_kv(
193
193
  id:,
194
194
  request_options: {}
@@ -199,7 +199,7 @@ module WorkOS
199
199
  auth: true,
200
200
  request_options: request_options
201
201
  )
202
- result = WorkOS::ObjectModel.new(response.body)
202
+ result = WorkOS::VaultObject.new(response.body)
203
203
  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"])
204
204
  result
205
205
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # @oagen-ignore-file
4
4
  module WorkOS
5
- VERSION = "9.0.0"
5
+ VERSION = "9.2.0"
6
6
  end
@@ -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::WebhookEndpoint>]
21
21
  def list_webhook_endpoints(
@@ -3,16 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module WorkOS
6
- class WidgetSessionTokenResponse < 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
6
+ WidgetSessionTokenResponse = ClientApiTokenResponse
18
7
  end
data/lib/workos.rb CHANGED
@@ -14,6 +14,7 @@ loader.collapse("#{__dir__}/workos/admin_portal")
14
14
  loader.collapse("#{__dir__}/workos/api_keys")
15
15
  loader.collapse("#{__dir__}/workos/audit_logs")
16
16
  loader.collapse("#{__dir__}/workos/authorization")
17
+ loader.collapse("#{__dir__}/workos/client_api")
17
18
  loader.collapse("#{__dir__}/workos/connect")
18
19
  loader.collapse("#{__dir__}/workos/directory_sync")
19
20
  loader.collapse("#{__dir__}/workos/events")
@@ -24,6 +25,7 @@ loader.collapse("#{__dir__}/workos/organization_domains")
24
25
  loader.collapse("#{__dir__}/workos/organization_membership")
25
26
  loader.collapse("#{__dir__}/workos/organizations")
26
27
  loader.collapse("#{__dir__}/workos/pipes")
28
+ loader.collapse("#{__dir__}/workos/pipes_provider")
27
29
  loader.collapse("#{__dir__}/workos/radar")
28
30
  loader.collapse("#{__dir__}/workos/shared")
29
31
  loader.collapse("#{__dir__}/workos/sso")
@@ -5,7 +5,7 @@
5
5
  # typed: strong
6
6
 
7
7
  module WorkOS
8
- class DsyncDeactivated
8
+ class ApiKeyUpdated
9
9
  sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
10
  def initialize(json); end
11
11
 
@@ -27,10 +27,10 @@ module WorkOS
27
27
  sig { params(value: String).returns(String) }
28
28
  def event=(value); end
29
29
 
30
- sig { returns(WorkOS::DsyncDeactivatedData) }
30
+ sig { returns(WorkOS::ApiKeyUpdatedData) }
31
31
  def data; end
32
32
 
33
- sig { params(value: WorkOS::DsyncDeactivatedData).returns(WorkOS::DsyncDeactivatedData) }
33
+ sig { params(value: WorkOS::ApiKeyUpdatedData).returns(WorkOS::ApiKeyUpdatedData) }
34
34
  def data=(value); end
35
35
 
36
36
  sig { returns(String) }
@@ -0,0 +1,84 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ # typed: strong
6
+
7
+ module WorkOS
8
+ class ApiKeyUpdatedData
9
+ sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
+ def initialize(json); end
11
+
12
+ sig { returns(String) }
13
+ def object; end
14
+
15
+ sig { params(value: String).returns(String) }
16
+ def object=(value); end
17
+
18
+ sig { returns(String) }
19
+ def id; end
20
+
21
+ sig { params(value: String).returns(String) }
22
+ def id=(value); end
23
+
24
+ sig { returns(T.any(WorkOS::ApiKeyUpdatedDataOwner, WorkOS::UserApiKeyUpdatedDataOwner)) }
25
+ def owner; end
26
+
27
+ sig { params(value: T.any(WorkOS::ApiKeyUpdatedDataOwner, WorkOS::UserApiKeyUpdatedDataOwner)).returns(T.any(WorkOS::ApiKeyUpdatedDataOwner, WorkOS::UserApiKeyUpdatedDataOwner)) }
28
+ def owner=(value); end
29
+
30
+ sig { returns(String) }
31
+ def name; end
32
+
33
+ sig { params(value: String).returns(String) }
34
+ def name=(value); end
35
+
36
+ sig { returns(String) }
37
+ def obfuscated_value; end
38
+
39
+ sig { params(value: String).returns(String) }
40
+ def obfuscated_value=(value); end
41
+
42
+ sig { returns(T.nilable(String)) }
43
+ def last_used_at; end
44
+
45
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
46
+ def last_used_at=(value); end
47
+
48
+ sig { returns(T.nilable(String)) }
49
+ def expires_at; end
50
+
51
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
52
+ def expires_at=(value); end
53
+
54
+ sig { returns(T::Array[String]) }
55
+ def permissions; end
56
+
57
+ sig { params(value: T::Array[String]).returns(T::Array[String]) }
58
+ def permissions=(value); end
59
+
60
+ sig { returns(String) }
61
+ def created_at; end
62
+
63
+ sig { params(value: String).returns(String) }
64
+ def created_at=(value); end
65
+
66
+ sig { returns(String) }
67
+ def updated_at; end
68
+
69
+ sig { params(value: String).returns(String) }
70
+ def updated_at=(value); end
71
+
72
+ sig { returns(WorkOS::ApiKeyUpdatedDataPreviousAttribute) }
73
+ def previous_attributes; end
74
+
75
+ sig { params(value: WorkOS::ApiKeyUpdatedDataPreviousAttribute).returns(WorkOS::ApiKeyUpdatedDataPreviousAttribute) }
76
+ def previous_attributes=(value); end
77
+
78
+ sig { returns(T::Hash[Symbol, T.untyped]) }
79
+ def to_h; end
80
+
81
+ sig { params(args: T.untyped).returns(String) }
82
+ def to_json(*args); end
83
+ end
84
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ # typed: strong
6
+
7
+ module WorkOS
8
+ class ApiKeyUpdatedDataOwner
9
+ sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
+ def initialize(json); end
11
+
12
+ sig { returns(String) }
13
+ def type; end
14
+
15
+ sig { params(value: String).returns(String) }
16
+ def type=(value); end
17
+
18
+ sig { returns(String) }
19
+ def id; end
20
+
21
+ sig { params(value: String).returns(String) }
22
+ def id=(value); end
23
+
24
+ sig { returns(T::Hash[Symbol, T.untyped]) }
25
+ def to_h; end
26
+
27
+ sig { params(args: T.untyped).returns(String) }
28
+ def to_json(*args); end
29
+ end
30
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ # typed: strong
6
+
7
+ module WorkOS
8
+ class ApiKeyUpdatedDataPreviousAttribute
9
+ sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
+ def initialize(json); end
11
+
12
+ sig { returns(T.nilable(String)) }
13
+ def expires_at; end
14
+
15
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
16
+ def expires_at=(value); end
17
+
18
+ sig { returns(T::Hash[Symbol, T.untyped]) }
19
+ def to_h; end
20
+
21
+ sig { params(args: T.untyped).returns(String) }
22
+ def to_json(*args); end
23
+ end
24
+ end
@@ -48,5 +48,14 @@ module WorkOS
48
48
  end
49
49
  def delete_api_key(id:, request_options:); end
50
50
 
51
+ sig do
52
+ params(
53
+ id: String,
54
+ expires_at: T.nilable(String),
55
+ request_options: T::Hash[Symbol, T.untyped]
56
+ ).returns(WorkOS::ApiKey)
57
+ end
58
+ def create_api_key_expire(id:, expires_at:, request_options:); end
59
+
51
60
  end
52
61
  end
@@ -93,6 +93,69 @@ module WorkOS
93
93
  sig { params(client: WorkOS::BaseClient).void }
94
94
  def initialize(client); end
95
95
 
96
+ sig do
97
+ params(
98
+ group_id: String,
99
+ before: T.nilable(String),
100
+ after: T.nilable(String),
101
+ limit: T.nilable(Integer),
102
+ order: T.nilable(String),
103
+ request_options: T::Hash[Symbol, T.untyped]
104
+ ).returns(WorkOS::Types::ListStruct)
105
+ end
106
+ def list_group_role_assignments(group_id:, before:, after:, limit:, order:, request_options:); end
107
+
108
+ sig do
109
+ params(
110
+ group_id: String,
111
+ role_slug: String,
112
+ resource_id: T.nilable(String),
113
+ resource_external_id: T.nilable(String),
114
+ resource_type_slug: T.nilable(String),
115
+ request_options: T::Hash[Symbol, T.untyped]
116
+ ).returns(WorkOS::GroupRoleAssignment)
117
+ end
118
+ def create_group_role_assignment(group_id:, role_slug:, resource_id:, resource_external_id:, resource_type_slug:, request_options:); end
119
+
120
+ sig do
121
+ params(
122
+ group_id: String,
123
+ role_assignments: T::Array[WorkOS::ReplaceGroupRoleAssignmentEntry],
124
+ request_options: T::Hash[Symbol, T.untyped]
125
+ ).returns(WorkOS::Types::ListStruct)
126
+ end
127
+ def update_group_role_assignments(group_id:, role_assignments:, request_options:); end
128
+
129
+ sig do
130
+ params(
131
+ group_id: String,
132
+ role_slug: String,
133
+ resource_id: T.nilable(String),
134
+ resource_external_id: T.nilable(String),
135
+ resource_type_slug: T.nilable(String),
136
+ request_options: T::Hash[Symbol, T.untyped]
137
+ ).returns(NilClass)
138
+ end
139
+ def delete_group_role_assignments(group_id:, role_slug:, resource_id:, resource_external_id:, resource_type_slug:, request_options:); end
140
+
141
+ sig do
142
+ params(
143
+ group_id: String,
144
+ role_assignment_id: String,
145
+ request_options: T::Hash[Symbol, T.untyped]
146
+ ).returns(WorkOS::GroupRoleAssignment)
147
+ end
148
+ def get_group_role_assignment(group_id:, role_assignment_id:, request_options:); end
149
+
150
+ sig do
151
+ params(
152
+ group_id: String,
153
+ role_assignment_id: String,
154
+ request_options: T::Hash[Symbol, T.untyped]
155
+ ).returns(NilClass)
156
+ end
157
+ def delete_group_role_assignment(group_id:, role_assignment_id:, request_options:); end
158
+
96
159
  sig do
97
160
  params(
98
161
  organization_membership_id: String,
@@ -15,10 +15,10 @@ module WorkOS
15
15
  sig { params(value: String).returns(String) }
16
16
  def client_id=(value); end
17
17
 
18
- sig { returns(String) }
18
+ sig { returns(T.nilable(String)) }
19
19
  def client_secret; end
20
20
 
21
- sig { params(value: String).returns(String) }
21
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
22
22
  def client_secret=(value); end
23
23
 
24
24
  sig { returns(String) }
@@ -15,6 +15,9 @@ module WorkOS
15
15
  sig { returns(WorkOS::Authorization) }
16
16
  def authorization; end
17
17
 
18
+ sig { returns(WorkOS::ClientApi) }
19
+ def client_api; end
20
+
18
21
  sig { returns(WorkOS::SSO) }
19
22
  def sso; end
20
23
 
@@ -42,6 +45,9 @@ module WorkOS
42
45
  sig { returns(WorkOS::ApiKeys) }
43
46
  def api_keys; end
44
47
 
48
+ sig { returns(WorkOS::PipesProvider) }
49
+ def pipes_provider; end
50
+
45
51
  sig { returns(WorkOS::Groups) }
46
52
  def groups; end
47
53
 
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ # typed: strong
6
+
7
+ module WorkOS
8
+ class ClientApi
9
+ sig { params(client: WorkOS::BaseClient).void }
10
+ def initialize(client); end
11
+
12
+ sig do
13
+ params(
14
+ organization_id: String,
15
+ user_id: String,
16
+ request_options: T::Hash[Symbol, T.untyped]
17
+ ).returns(WorkOS::ClientApiTokenResponse)
18
+ end
19
+ def create_token(organization_id:, user_id:, request_options:); end
20
+
21
+ end
22
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ # typed: strong
6
+
7
+ module WorkOS
8
+ class ClientApiToken
9
+ sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
+ def initialize(json); end
11
+
12
+ sig { returns(String) }
13
+ def organization_id; end
14
+
15
+ sig { params(value: String).returns(String) }
16
+ def organization_id=(value); end
17
+
18
+ sig { returns(String) }
19
+ def user_id; end
20
+
21
+ sig { params(value: String).returns(String) }
22
+ def user_id=(value); end
23
+
24
+ sig { returns(T::Hash[Symbol, T.untyped]) }
25
+ def to_h; end
26
+
27
+ sig { params(args: T.untyped).returns(String) }
28
+ def to_json(*args); end
29
+ end
30
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ # typed: strong
6
+
7
+ module WorkOS
8
+ class ClientApiTokenResponse
9
+ sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
+ def initialize(json); end
11
+
12
+ sig { returns(String) }
13
+ def token; end
14
+
15
+ sig { params(value: String).returns(String) }
16
+ def token=(value); end
17
+
18
+ sig { returns(T::Hash[Symbol, T.untyped]) }
19
+ def to_h; end
20
+
21
+ sig { params(args: T.untyped).returns(String) }
22
+ def to_json(*args); end
23
+ end
24
+ end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ # typed: strong
6
+
7
+ module WorkOS
8
+ class ConfigureDataIntegrationBody
9
+ sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
+ def initialize(json); end
11
+
12
+ sig { returns(T.nilable(T::Boolean)) }
13
+ def enabled; end
14
+
15
+ sig { params(value: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
16
+ def enabled=(value); end
17
+
18
+ sig { returns(T.nilable(T::Array[String])) }
19
+ def scopes; end
20
+
21
+ sig { params(value: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) }
22
+ def scopes=(value); end
23
+
24
+ sig { returns(T.nilable(String)) }
25
+ def client_id; end
26
+
27
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
28
+ def client_id=(value); end
29
+
30
+ sig { returns(T.nilable(String)) }
31
+ def client_secret; end
32
+
33
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
34
+ def client_secret=(value); end
35
+
36
+ sig { returns(T::Hash[Symbol, T.untyped]) }
37
+ def to_h; end
38
+
39
+ sig { params(args: T.untyped).returns(String) }
40
+ def to_json(*args); end
41
+ end
42
+ end
@@ -39,6 +39,18 @@ module WorkOS
39
39
  sig { params(value: T::Array[String]).returns(T::Array[String]) }
40
40
  def scopes=(value); end
41
41
 
42
+ sig { returns(T.nilable(String)) }
43
+ def auth_method; end
44
+
45
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
46
+ def auth_method=(value); end
47
+
48
+ sig { returns(T.nilable(String)) }
49
+ def api_key_last_4; end
50
+
51
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
52
+ def api_key_last_4=(value); end
53
+
42
54
  sig { returns(String) }
43
55
  def state; end
44
56