workos 10.4.0 → 10.5.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 (159) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +1 -1
  3. data/.github/workflows/docs.yml +2 -2
  4. data/.github/workflows/lint.yml +1 -1
  5. data/.github/workflows/release-please.yml +1 -1
  6. data/.github/workflows/release.yml +1 -1
  7. data/.last-synced-sha +1 -1
  8. data/.oagen-manifest.json +92 -2
  9. data/.release-please-manifest.json +1 -1
  10. data/.ruby-version +1 -1
  11. data/CHANGELOG.md +214 -0
  12. data/Gemfile.lock +2 -2
  13. data/lib/workos/admin_portal/generate_link.rb +3 -0
  14. data/lib/workos/admin_portal/revoke_link.rb +22 -0
  15. data/lib/workos/admin_portal.rb +27 -0
  16. data/lib/workos/agents/agent_blueprint.rb +3 -0
  17. data/lib/workos/agents/agent_blueprint_invocable_as.rb +18 -0
  18. data/lib/workos/agents/agent_blueprints_create_request.rb +3 -0
  19. data/lib/workos/agents/agent_blueprints_create_request_invocable_as.rb +18 -0
  20. data/lib/workos/agents/agent_blueprints_update_request.rb +3 -0
  21. data/lib/workos/agents/agent_blueprints_update_request_invocable_as.rb +18 -0
  22. data/lib/workos/agents/agent_registration.rb +3 -0
  23. data/lib/workos/agents.rb +25 -0
  24. data/lib/workos/authorization/user_role_assignment_source.rb +5 -2
  25. data/lib/workos/authorization/user_role_assignment_source_group.rb +7 -0
  26. data/lib/workos/directory_sync/directory_sync_rate_limit_error.rb +25 -0
  27. data/lib/workos/directory_sync/directory_sync_response.rb +18 -0
  28. data/lib/workos/directory_sync.rb +19 -0
  29. data/lib/workos/feature_flags/flag_updated_context_previous_attribute_data.rb +3 -0
  30. data/lib/workos/feature_flags/flag_updated_context_previous_attribute_data_owner.rb +7 -0
  31. data/lib/workos/pipes/add_data_integrations_get_data_integration_authorize_url_request.rb +37 -0
  32. data/lib/workos/pipes/connected_account.rb +6 -0
  33. data/lib/workos/pipes/connected_account_input.rb +6 -0
  34. data/lib/workos/pipes/connected_account_write_response.rb +73 -0
  35. data/lib/workos/pipes/connected_account_write_response_warning.rb +22 -0
  36. data/lib/workos/pipes/create_connected_account.rb +40 -0
  37. data/lib/workos/pipes/create_organization_connected_account.rb +43 -0
  38. data/lib/workos/pipes/data_integration_credentials_response.rb +1 -1
  39. data/lib/workos/pipes/{data_integration_credentials_response_credential.rb → data_integration_vended_credential.rb} +9 -3
  40. data/lib/workos/pipes/data_integrations_create_api_key_connection_request.rb +37 -0
  41. data/lib/workos/pipes/data_integrations_create_client_credentials_connection_request.rb +43 -0
  42. data/lib/workos/pipes/data_integrations_get_data_integration_authorize_url_request.rb +3 -0
  43. data/lib/workos/pipes/data_integrations_list_response_data_connected_account.rb +6 -0
  44. data/lib/workos/pipes/data_integrations_upsert_api_key_request.rb +6 -3
  45. data/lib/workos/pipes/data_integrations_upsert_api_key_request_2.rb +37 -0
  46. data/lib/workos/pipes/data_integrations_upsert_client_credentials_request.rb +6 -3
  47. data/lib/workos/pipes/data_integrations_upsert_client_credentials_request_2.rb +43 -0
  48. data/lib/workos/pipes/organization_connected_account.rb +40 -0
  49. data/lib/workos/pipes/reauthorize_data_integrations_get_data_integration_authorize_url_request.rb +40 -0
  50. data/lib/workos/pipes/reauthorize_data_integrations_upsert_api_key_request.rb +40 -0
  51. data/lib/workos/pipes/reauthorize_data_integrations_upsert_client_credentials_request.rb +46 -0
  52. data/lib/workos/pipes.rb +192 -31
  53. data/lib/workos/shared/agent_blueprint_created_data.rb +3 -0
  54. data/lib/workos/shared/agent_blueprint_created_data_invocable_as.rb +18 -0
  55. data/lib/workos/shared/agent_blueprint_updated_data.rb +40 -1
  56. data/lib/workos/shared/agent_blueprint_updated_data_invocable_as.rb +18 -0
  57. data/lib/workos/shared/pipe_connected_account.rb +6 -0
  58. data/lib/workos/sso/token_query.rb +3 -0
  59. data/lib/workos/sso.rb +3 -0
  60. data/lib/workos/types/add_data_integrations_get_data_integration_authorize_url_request_connection_owner.rb +13 -0
  61. data/lib/workos/types/agent_blueprint_created_data_invocable_as_instance_types.rb +13 -0
  62. data/lib/workos/types/agent_blueprint_invocable_as_instance_types.rb +9 -0
  63. data/lib/workos/types/agent_blueprint_updated_data_invocable_as_instance_types.rb +9 -0
  64. data/lib/workos/types/agent_blueprints_create_request_invocable_as_instance_types.rb +9 -0
  65. data/lib/workos/types/agent_blueprints_update_request_invocable_as_instance_types.rb +9 -0
  66. data/lib/workos/types/agent_instance_created_data_type.rb +1 -5
  67. data/lib/workos/types/agent_instance_deleted_data_type.rb +1 -1
  68. data/lib/workos/types/agent_instance_type.rb +1 -1
  69. data/lib/workos/types/connected_account_write_response_auth_method.rb +9 -0
  70. data/lib/workos/types/connected_account_write_response_connection_role.rb +9 -0
  71. data/lib/workos/types/connected_account_write_response_state.rb +9 -0
  72. data/lib/workos/types/create_connected_account_state.rb +9 -0
  73. data/lib/workos/types/create_data_integration_ownership.rb +1 -5
  74. data/lib/workos/types/create_organization_connected_account_state.rb +9 -0
  75. data/lib/workos/types/data_integration_ownership.rb +1 -1
  76. data/lib/workos/types/data_integrations_create_api_key_connection_request_connection_owner.rb +9 -0
  77. data/lib/workos/types/data_integrations_create_client_credentials_connection_request_connection_owner.rb +9 -0
  78. data/lib/workos/types/data_integrations_get_data_integration_authorize_url_request_connection_owner.rb +1 -1
  79. data/lib/workos/types/data_integrations_get_user_token_request_connection_owner.rb +1 -1
  80. data/lib/workos/types/data_integrations_list_response_data_connection_owner.rb +1 -1
  81. data/lib/workos/types/data_integrations_upsert_api_key_request_2_connection_owner.rb +9 -0
  82. data/lib/workos/types/data_integrations_upsert_api_key_request_connection_owner.rb +1 -1
  83. data/lib/workos/types/data_integrations_upsert_client_credentials_request_2_connection_owner.rb +9 -0
  84. data/lib/workos/types/data_integrations_upsert_client_credentials_request_connection_owner.rb +1 -1
  85. data/lib/workos/types/data_integrations_vend_credentials_request_connection_owner.rb +1 -1
  86. data/lib/workos/types/organization_connected_account_state.rb +9 -0
  87. data/lib/workos/types/pipes_ownership.rb +1 -1
  88. data/lib/workos/types/reauthorize_data_integrations_get_data_integration_authorize_url_request_connection_owner.rb +9 -0
  89. data/lib/workos/types/reauthorize_data_integrations_upsert_api_key_request_connection_owner.rb +9 -0
  90. data/lib/workos/types/reauthorize_data_integrations_upsert_client_credentials_request_connection_owner.rb +9 -0
  91. data/lib/workos/types/resource_export_completed_data_resource_type.rb +2 -1
  92. data/lib/workos/types/vault_dek_rekeyed_data_actor_source.rb +9 -0
  93. data/lib/workos/user_management.rb +1 -1
  94. data/lib/workos/vault/vault_dek_rekeyed.rb +34 -0
  95. data/lib/workos/vault/vault_dek_rekeyed_data.rb +31 -0
  96. data/lib/workos/version.rb +1 -1
  97. data/rbi/workos/add_data_integrations_get_data_integration_authorize_url_request.rbi +60 -0
  98. data/rbi/workos/admin_portal.rbi +11 -1
  99. data/rbi/workos/agent_blueprint.rbi +6 -0
  100. data/rbi/workos/agent_blueprint_created_data.rbi +6 -0
  101. data/rbi/workos/agent_blueprint_created_data_invocable_as.rbi +24 -0
  102. data/rbi/workos/agent_blueprint_invocable_as.rbi +24 -0
  103. data/rbi/workos/agent_blueprint_updated_data.rbi +6 -0
  104. data/rbi/workos/agent_blueprint_updated_data_invocable_as.rbi +24 -0
  105. data/rbi/workos/agent_blueprints_create_request.rbi +6 -0
  106. data/rbi/workos/agent_blueprints_create_request_invocable_as.rbi +24 -0
  107. data/rbi/workos/agent_blueprints_update_request.rbi +6 -0
  108. data/rbi/workos/agent_blueprints_update_request_invocable_as.rbi +24 -0
  109. data/rbi/workos/agent_registration.rbi +6 -0
  110. data/rbi/workos/agents.rbi +12 -2
  111. data/rbi/workos/connected_account.rbi +12 -0
  112. data/rbi/workos/connected_account_input.rbi +12 -0
  113. data/rbi/workos/connected_account_write_response.rbi +132 -0
  114. data/rbi/workos/connected_account_write_response_warning.rbi +30 -0
  115. data/rbi/workos/create_connected_account.rbi +66 -0
  116. data/rbi/workos/create_organization_connected_account.rbi +72 -0
  117. data/rbi/workos/data_integration_credentials_response.rbi +2 -2
  118. data/rbi/workos/data_integration_vended_credential.rbi +66 -0
  119. data/rbi/workos/data_integrations_create_api_key_connection_request.rbi +60 -0
  120. data/rbi/workos/data_integrations_create_client_credentials_connection_request.rbi +72 -0
  121. data/rbi/workos/data_integrations_get_data_integration_authorize_url_request.rbi +6 -0
  122. data/rbi/workos/data_integrations_list_response_data_connected_account.rbi +12 -0
  123. data/rbi/workos/data_integrations_upsert_api_key_request.rbi +12 -6
  124. data/rbi/workos/data_integrations_upsert_api_key_request_2.rbi +60 -0
  125. data/rbi/workos/data_integrations_upsert_client_credentials_request.rbi +12 -6
  126. data/rbi/workos/data_integrations_upsert_client_credentials_request_2.rbi +72 -0
  127. data/rbi/workos/directory_sync.rbi +8 -0
  128. data/rbi/workos/directory_sync_rate_limit_error.rbi +36 -0
  129. data/rbi/workos/directory_sync_response.rbi +24 -0
  130. data/rbi/workos/flag_updated_context_previous_attribute_data.rbi +6 -0
  131. data/rbi/workos/flag_updated_context_previous_attribute_data_owner.rbi +36 -0
  132. data/rbi/workos/generate_link.rbi +6 -0
  133. data/rbi/workos/organization_connected_account.rbi +66 -0
  134. data/rbi/workos/pipe_connected_account.rbi +12 -0
  135. data/rbi/workos/pipes.rbi +64 -15
  136. data/rbi/workos/reauthorize_data_integrations_get_data_integration_authorize_url_request.rbi +66 -0
  137. data/rbi/workos/reauthorize_data_integrations_upsert_api_key_request.rbi +66 -0
  138. data/rbi/workos/reauthorize_data_integrations_upsert_client_credentials_request.rbi +78 -0
  139. data/rbi/workos/revoke_link.rbi +30 -0
  140. data/rbi/workos/sso.rbi +2 -1
  141. data/rbi/workos/token_query.rbi +6 -0
  142. data/rbi/workos/user_role_assignment_source.rbi +6 -0
  143. data/rbi/workos/user_role_assignment_source_group.rbi +30 -0
  144. data/rbi/workos/vault_dek_rekeyed.rbi +54 -0
  145. data/rbi/workos/{data_integration_credentials_response_credential.rbi → vault_dek_rekeyed_data.rbi} +13 -19
  146. data/test/workos/test_admin_portal.rb +9 -1
  147. data/test/workos/test_admin_portal_model_round_trip.rb +14 -0
  148. data/test/workos/test_agents.rb +8 -0
  149. data/test/workos/test_agents_model_round_trip.rb +35 -0
  150. data/test/workos/test_authorization_model_round_trip.rb +15 -1
  151. data/test/workos/test_directory_sync.rb +8 -0
  152. data/test/workos/test_directory_sync_model_round_trip.rb +24 -0
  153. data/test/workos/test_feature_flags_model_round_trip.rb +16 -0
  154. data/test/workos/test_pipes.rb +20 -4
  155. data/test/workos/test_pipes_model_round_trip.rb +284 -15
  156. data/test/workos/test_shared_model_round_trip.rb +30 -6
  157. data/test/workos/test_sso_model_round_trip.rb +1 -0
  158. data/test/workos/test_vault_model_round_trip.rb +33 -0
  159. metadata +73 -3
@@ -11,6 +11,7 @@ module WorkOS
11
11
  description: :description,
12
12
  permissions: :permissions,
13
13
  invocable_by: :invocable_by,
14
+ invocable_as: :invocable_as,
14
15
  session_settings: :session_settings,
15
16
  created_at: :created_at,
16
17
  updated_at: :updated_at
@@ -23,6 +24,7 @@ module WorkOS
23
24
  :description,
24
25
  :permissions,
25
26
  :invocable_by,
27
+ :invocable_as,
26
28
  :session_settings,
27
29
  :created_at,
28
30
  :updated_at
@@ -35,6 +37,7 @@ module WorkOS
35
37
  @description = hash[:description]
36
38
  @permissions = hash[:permissions] || []
37
39
  @invocable_by = hash[:invocable_by] ? WorkOS::AgentBlueprintCreatedDataInvocableBy.new(hash[:invocable_by]) : nil
40
+ @invocable_as = hash[:invocable_as] ? WorkOS::AgentBlueprintCreatedDataInvocableAs.new(hash[:invocable_as]) : nil
38
41
  @session_settings = hash[:session_settings] ? WorkOS::AgentBlueprintCreatedDataSessionSetting.new(hash[:session_settings]) : nil
39
42
  @created_at = hash[:created_at]
40
43
  @updated_at = hash[:updated_at]
@@ -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 AgentBlueprintCreatedDataInvocableAs < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ instance_types: :instance_types
9
+ }.freeze
10
+
11
+ attr_accessor :instance_types
12
+
13
+ def initialize(json)
14
+ hash = self.class.normalize(json)
15
+ @instance_types = hash[:instance_types] || []
16
+ end
17
+ end
18
+ end
@@ -3,5 +3,44 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module WorkOS
6
- AgentBlueprintUpdatedData = AgentBlueprintCreatedData
6
+ class AgentBlueprintUpdatedData < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ id: :id,
10
+ name: :name,
11
+ description: :description,
12
+ permissions: :permissions,
13
+ invocable_by: :invocable_by,
14
+ invocable_as: :invocable_as,
15
+ session_settings: :session_settings,
16
+ created_at: :created_at,
17
+ updated_at: :updated_at
18
+ }.freeze
19
+
20
+ attr_accessor \
21
+ :object,
22
+ :id,
23
+ :name,
24
+ :description,
25
+ :permissions,
26
+ :invocable_by,
27
+ :invocable_as,
28
+ :session_settings,
29
+ :created_at,
30
+ :updated_at
31
+
32
+ def initialize(json)
33
+ hash = self.class.normalize(json)
34
+ @object = hash[:object]
35
+ @id = hash[:id]
36
+ @name = hash[:name]
37
+ @description = hash[:description]
38
+ @permissions = hash[:permissions] || []
39
+ @invocable_by = hash[:invocable_by] ? WorkOS::AgentBlueprintUpdatedDataInvocableBy.new(hash[:invocable_by]) : nil
40
+ @invocable_as = hash[:invocable_as] ? WorkOS::AgentBlueprintUpdatedDataInvocableAs.new(hash[:invocable_as]) : nil
41
+ @session_settings = hash[:session_settings] ? WorkOS::AgentBlueprintUpdatedDataSessionSetting.new(hash[:session_settings]) : nil
42
+ @created_at = hash[:created_at]
43
+ @updated_at = hash[:updated_at]
44
+ end
45
+ end
7
46
  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 AgentBlueprintUpdatedDataInvocableAs < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ instance_types: :instance_types
9
+ }.freeze
10
+
11
+ attr_accessor :instance_types
12
+
13
+ def initialize(json)
14
+ hash = self.class.normalize(json)
15
+ @instance_types = hash[:instance_types] || []
16
+ end
17
+ end
18
+ end
@@ -18,6 +18,8 @@ module WorkOS
18
18
  auth_method: :auth_method,
19
19
  api_key_last_4: :api_key_last_4,
20
20
  state: :state,
21
+ established_by_user_id: :established_by_user_id,
22
+ state_reason: :state_reason,
21
23
  created_at: :created_at,
22
24
  updated_at: :updated_at
23
25
  }.freeze
@@ -36,6 +38,8 @@ module WorkOS
36
38
  :auth_method,
37
39
  :api_key_last_4,
38
40
  :state,
41
+ :established_by_user_id,
42
+ :state_reason,
39
43
  :created_at,
40
44
  :updated_at
41
45
 
@@ -54,6 +58,8 @@ module WorkOS
54
58
  @auth_method = hash[:auth_method]
55
59
  @api_key_last_4 = hash[:api_key_last_4]
56
60
  @state = hash[:state]
61
+ @established_by_user_id = hash[:established_by_user_id]
62
+ @state_reason = hash[:state_reason]
57
63
  @created_at = hash[:created_at]
58
64
  @updated_at = hash[:updated_at]
59
65
  end
@@ -9,6 +9,7 @@ module WorkOS
9
9
  client_secret: :client_secret,
10
10
  code: :code,
11
11
  grant_type: :grant_type,
12
+ code_verifier: :code_verifier,
12
13
  subject_token: :subject_token,
13
14
  subject_token_type: :subject_token_type,
14
15
  organization_id: :organization_id
@@ -19,6 +20,7 @@ module WorkOS
19
20
  :client_secret,
20
21
  :code,
21
22
  :grant_type,
23
+ :code_verifier,
22
24
  :subject_token,
23
25
  :subject_token_type,
24
26
  :organization_id
@@ -29,6 +31,7 @@ module WorkOS
29
31
  @client_secret = hash[:client_secret]
30
32
  @code = hash[:code]
31
33
  @grant_type = hash[:grant_type]
34
+ @code_verifier = hash[:code_verifier]
32
35
  @subject_token = hash[:subject_token]
33
36
  @subject_token_type = hash[:subject_token_type]
34
37
  @organization_id = hash[:organization_id]
data/lib/workos/sso.rb CHANGED
@@ -507,6 +507,7 @@ module WorkOS
507
507
 
508
508
  # Get a Profile and Token
509
509
  # @param code [String, nil] The authorization code received from the authorization callback. Required when `grant_type` is `authorization_code`.
510
+ # @param code_verifier [String, nil] The PKCE code verifier matching the `code_challenge` sent with the authorization request. Required when the authorization request included a `code_challenge`. Must be sent in the request body.
510
511
  # @param subject_token [String, nil] The OIDC ID token to exchange. Required when `grant_type` is `urn:ietf:params:oauth:grant-type:token-exchange`. Must be sent in the request body.
511
512
  # @param subject_token_type [String, nil] The type of the subject token. Required when `grant_type` is `urn:ietf:params:oauth:grant-type:token-exchange`. Must be sent in the request body.
512
513
  # @param organization_id [String, nil] The ID of the organization whose connection the subject token is validated against. Required when `grant_type` is `urn:ietf:params:oauth:grant-type:token-exchange`. Must be sent in the request body.
@@ -514,6 +515,7 @@ module WorkOS
514
515
  # @return [WorkOS::SSOTokenResponse]
515
516
  def get_profile_and_token(
516
517
  code: nil,
518
+ code_verifier: nil,
517
519
  subject_token: nil,
518
520
  subject_token_type: nil,
519
521
  organization_id: nil,
@@ -524,6 +526,7 @@ module WorkOS
524
526
  "client_id" => request_options[:client_id] || @client.client_id,
525
527
  "client_secret" => request_options[:api_key] || @client.api_key,
526
528
  "code" => code,
529
+ "code_verifier" => code_verifier,
527
530
  "subject_token" => subject_token,
528
531
  "subject_token_type" => subject_token_type,
529
532
  "organization_id" => organization_id
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ class AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner
8
+ USER = "user"
9
+ ORGANIZATION = "organization"
10
+ ALL = [USER, ORGANIZATION].freeze
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ class AgentBlueprintCreatedDataInvocableAsInstanceTypes
8
+ DELEGATED = "delegated"
9
+ AUTONOMOUS = "autonomous"
10
+ ALL = [DELEGATED, AUTONOMOUS].freeze
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ AgentBlueprintInvocableAsInstanceTypes = AgentBlueprintCreatedDataInvocableAsInstanceTypes
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ AgentBlueprintUpdatedDataInvocableAsInstanceTypes = AgentBlueprintCreatedDataInvocableAsInstanceTypes
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ AgentBlueprintsCreateRequestInvocableAsInstanceTypes = AgentBlueprintCreatedDataInvocableAsInstanceTypes
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ AgentBlueprintsUpdateRequestInvocableAsInstanceTypes = AgentBlueprintCreatedDataInvocableAsInstanceTypes
8
+ end
9
+ end
@@ -4,10 +4,6 @@
4
4
 
5
5
  module WorkOS
6
6
  module Types
7
- class AgentInstanceCreatedDataType
8
- DELEGATED = "delegated"
9
- AUTONOMOUS = "autonomous"
10
- ALL = [DELEGATED, AUTONOMOUS].freeze
11
- end
7
+ AgentInstanceCreatedDataType = AgentBlueprintCreatedDataInvocableAsInstanceTypes
12
8
  end
13
9
  end
@@ -4,6 +4,6 @@
4
4
 
5
5
  module WorkOS
6
6
  module Types
7
- AgentInstanceDeletedDataType = AgentInstanceCreatedDataType
7
+ AgentInstanceDeletedDataType = AgentBlueprintCreatedDataInvocableAsInstanceTypes
8
8
  end
9
9
  end
@@ -4,6 +4,6 @@
4
4
 
5
5
  module WorkOS
6
6
  module Types
7
- AgentInstanceType = AgentInstanceCreatedDataType
7
+ AgentInstanceType = AgentBlueprintCreatedDataInvocableAsInstanceTypes
8
8
  end
9
9
  end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ ConnectedAccountWriteResponseAuthMethod = ConnectedAccountAuthMethod
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ ConnectedAccountWriteResponseConnectionRole = ConnectedAccountConnectionRole
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ ConnectedAccountWriteResponseState = ConnectedAccountState
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ CreateConnectedAccountState = ConnectedAccountInputState
8
+ end
9
+ end
@@ -4,10 +4,6 @@
4
4
 
5
5
  module WorkOS
6
6
  module Types
7
- class CreateDataIntegrationOwnership
8
- USER = "user"
9
- ORGANIZATION = "organization"
10
- ALL = [USER, ORGANIZATION].freeze
11
- end
7
+ CreateDataIntegrationOwnership = AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner
12
8
  end
13
9
  end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ CreateOrganizationConnectedAccountState = ConnectedAccountInputState
8
+ end
9
+ end
@@ -4,6 +4,6 @@
4
4
 
5
5
  module WorkOS
6
6
  module Types
7
- DataIntegrationOwnership = CreateDataIntegrationOwnership
7
+ DataIntegrationOwnership = AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner
8
8
  end
9
9
  end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ DataIntegrationsCreateApiKeyConnectionRequestConnectionOwner = AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ DataIntegrationsCreateClientCredentialsConnectionRequestConnectionOwner = AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner
8
+ end
9
+ end
@@ -4,6 +4,6 @@
4
4
 
5
5
  module WorkOS
6
6
  module Types
7
- DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner = CreateDataIntegrationOwnership
7
+ DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner = AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner
8
8
  end
9
9
  end
@@ -4,6 +4,6 @@
4
4
 
5
5
  module WorkOS
6
6
  module Types
7
- DataIntegrationsGetUserTokenRequestConnectionOwner = CreateDataIntegrationOwnership
7
+ DataIntegrationsGetUserTokenRequestConnectionOwner = AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner
8
8
  end
9
9
  end
@@ -4,6 +4,6 @@
4
4
 
5
5
  module WorkOS
6
6
  module Types
7
- DataIntegrationsListResponseDataConnectionOwner = CreateDataIntegrationOwnership
7
+ DataIntegrationsListResponseDataConnectionOwner = AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner
8
8
  end
9
9
  end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ DataIntegrationsUpsertApiKeyRequest2ConnectionOwner = AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner
8
+ end
9
+ end
@@ -4,6 +4,6 @@
4
4
 
5
5
  module WorkOS
6
6
  module Types
7
- DataIntegrationsUpsertApiKeyRequestConnectionOwner = CreateDataIntegrationOwnership
7
+ DataIntegrationsUpsertApiKeyRequestConnectionOwner = AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner
8
8
  end
9
9
  end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ DataIntegrationsUpsertClientCredentialsRequest2ConnectionOwner = AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner
8
+ end
9
+ end
@@ -4,6 +4,6 @@
4
4
 
5
5
  module WorkOS
6
6
  module Types
7
- DataIntegrationsUpsertClientCredentialsRequestConnectionOwner = CreateDataIntegrationOwnership
7
+ DataIntegrationsUpsertClientCredentialsRequestConnectionOwner = AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner
8
8
  end
9
9
  end
@@ -4,6 +4,6 @@
4
4
 
5
5
  module WorkOS
6
6
  module Types
7
- DataIntegrationsVendCredentialsRequestConnectionOwner = CreateDataIntegrationOwnership
7
+ DataIntegrationsVendCredentialsRequestConnectionOwner = AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner
8
8
  end
9
9
  end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ OrganizationConnectedAccountState = ConnectedAccountInputState
8
+ end
9
+ end
@@ -4,6 +4,6 @@
4
4
 
5
5
  module WorkOS
6
6
  module Types
7
- PipesOwnership = CreateDataIntegrationOwnership
7
+ PipesOwnership = AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner
8
8
  end
9
9
  end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ ReauthorizeDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner = AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ ReauthorizeDataIntegrationsUpsertApiKeyRequestConnectionOwner = AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ ReauthorizeDataIntegrationsUpsertClientCredentialsRequestConnectionOwner = AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner
8
+ end
9
+ end
@@ -12,7 +12,8 @@ module WorkOS
12
12
  AUDIT_LOG_EVENTS = "auditLogEvents"
13
13
  CONNECTIONS = "connections"
14
14
  DIRECTORY_USERS = "directoryUsers"
15
- ALL = [USERS, ORGANIZATIONS, EVENTS, SESSIONS, AUDIT_LOG_EVENTS, CONNECTIONS, DIRECTORY_USERS].freeze
15
+ SCIM_LOGS = "scimLogs"
16
+ ALL = [USERS, ORGANIZATIONS, EVENTS, SESSIONS, AUDIT_LOG_EVENTS, CONNECTIONS, DIRECTORY_USERS, SCIM_LOGS].freeze
16
17
  end
17
18
  end
18
19
  end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ module Types
7
+ VaultDekRekeyedDataActorSource = VaultDataCreatedDataActorSource
8
+ end
9
+ end
@@ -1003,7 +1003,7 @@ module WorkOS
1003
1003
  end
1004
1004
 
1005
1005
  # Create a user
1006
- # @param email [String] The email address of the user.
1006
+ # @param email [String] The email address of the user. WorkOS trims whitespace and converts the address to lowercase before storing it.
1007
1007
  # @param first_name [String, nil] The first name of the user.
1008
1008
  # @param last_name [String, nil] The last name of the user.
1009
1009
  # @param name [String, nil] The user's full name.
@@ -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 VaultDekRekeyed < 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::VaultDekRekeyedData.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,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class VaultDekRekeyedData < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ actor_id: :actor_id,
9
+ actor_source: :actor_source,
10
+ actor_name: :actor_name,
11
+ key_ids: :key_ids,
12
+ key_context: :key_context
13
+ }.freeze
14
+
15
+ attr_accessor \
16
+ :actor_id,
17
+ :actor_source,
18
+ :actor_name,
19
+ :key_ids,
20
+ :key_context
21
+
22
+ def initialize(json)
23
+ hash = self.class.normalize(json)
24
+ @actor_id = hash[:actor_id]
25
+ @actor_source = hash[:actor_source]
26
+ @actor_name = hash[:actor_name]
27
+ @key_ids = hash[:key_ids] || []
28
+ @key_context = hash[:key_context] || {}
29
+ end
30
+ end
31
+ end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # @oagen-ignore-file
4
4
  module WorkOS
5
- VERSION = "10.4.0"
5
+ VERSION = "10.5.0"
6
6
  end