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.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/.github/workflows/docs.yml +2 -2
- data/.github/workflows/lint.yml +1 -1
- data/.github/workflows/release-please.yml +1 -1
- data/.github/workflows/release.yml +1 -1
- data/.last-synced-sha +1 -1
- data/.oagen-manifest.json +92 -2
- data/.release-please-manifest.json +1 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +214 -0
- data/Gemfile.lock +2 -2
- data/lib/workos/admin_portal/generate_link.rb +3 -0
- data/lib/workos/admin_portal/revoke_link.rb +22 -0
- data/lib/workos/admin_portal.rb +27 -0
- data/lib/workos/agents/agent_blueprint.rb +3 -0
- data/lib/workos/agents/agent_blueprint_invocable_as.rb +18 -0
- data/lib/workos/agents/agent_blueprints_create_request.rb +3 -0
- data/lib/workos/agents/agent_blueprints_create_request_invocable_as.rb +18 -0
- data/lib/workos/agents/agent_blueprints_update_request.rb +3 -0
- data/lib/workos/agents/agent_blueprints_update_request_invocable_as.rb +18 -0
- data/lib/workos/agents/agent_registration.rb +3 -0
- data/lib/workos/agents.rb +25 -0
- data/lib/workos/authorization/user_role_assignment_source.rb +5 -2
- data/lib/workos/authorization/user_role_assignment_source_group.rb +7 -0
- data/lib/workos/directory_sync/directory_sync_rate_limit_error.rb +25 -0
- data/lib/workos/directory_sync/directory_sync_response.rb +18 -0
- data/lib/workos/directory_sync.rb +19 -0
- data/lib/workos/feature_flags/flag_updated_context_previous_attribute_data.rb +3 -0
- data/lib/workos/feature_flags/flag_updated_context_previous_attribute_data_owner.rb +7 -0
- data/lib/workos/pipes/add_data_integrations_get_data_integration_authorize_url_request.rb +37 -0
- data/lib/workos/pipes/connected_account.rb +6 -0
- data/lib/workos/pipes/connected_account_input.rb +6 -0
- data/lib/workos/pipes/connected_account_write_response.rb +73 -0
- data/lib/workos/pipes/connected_account_write_response_warning.rb +22 -0
- data/lib/workos/pipes/create_connected_account.rb +40 -0
- data/lib/workos/pipes/create_organization_connected_account.rb +43 -0
- data/lib/workos/pipes/data_integration_credentials_response.rb +1 -1
- data/lib/workos/pipes/{data_integration_credentials_response_credential.rb → data_integration_vended_credential.rb} +9 -3
- data/lib/workos/pipes/data_integrations_create_api_key_connection_request.rb +37 -0
- data/lib/workos/pipes/data_integrations_create_client_credentials_connection_request.rb +43 -0
- data/lib/workos/pipes/data_integrations_get_data_integration_authorize_url_request.rb +3 -0
- data/lib/workos/pipes/data_integrations_list_response_data_connected_account.rb +6 -0
- data/lib/workos/pipes/data_integrations_upsert_api_key_request.rb +6 -3
- data/lib/workos/pipes/data_integrations_upsert_api_key_request_2.rb +37 -0
- data/lib/workos/pipes/data_integrations_upsert_client_credentials_request.rb +6 -3
- data/lib/workos/pipes/data_integrations_upsert_client_credentials_request_2.rb +43 -0
- data/lib/workos/pipes/organization_connected_account.rb +40 -0
- data/lib/workos/pipes/reauthorize_data_integrations_get_data_integration_authorize_url_request.rb +40 -0
- data/lib/workos/pipes/reauthorize_data_integrations_upsert_api_key_request.rb +40 -0
- data/lib/workos/pipes/reauthorize_data_integrations_upsert_client_credentials_request.rb +46 -0
- data/lib/workos/pipes.rb +192 -31
- data/lib/workos/shared/agent_blueprint_created_data.rb +3 -0
- data/lib/workos/shared/agent_blueprint_created_data_invocable_as.rb +18 -0
- data/lib/workos/shared/agent_blueprint_updated_data.rb +40 -1
- data/lib/workos/shared/agent_blueprint_updated_data_invocable_as.rb +18 -0
- data/lib/workos/shared/pipe_connected_account.rb +6 -0
- data/lib/workos/sso/token_query.rb +3 -0
- data/lib/workos/sso.rb +3 -0
- data/lib/workos/types/add_data_integrations_get_data_integration_authorize_url_request_connection_owner.rb +13 -0
- data/lib/workos/types/agent_blueprint_created_data_invocable_as_instance_types.rb +13 -0
- data/lib/workos/types/agent_blueprint_invocable_as_instance_types.rb +9 -0
- data/lib/workos/types/agent_blueprint_updated_data_invocable_as_instance_types.rb +9 -0
- data/lib/workos/types/agent_blueprints_create_request_invocable_as_instance_types.rb +9 -0
- data/lib/workos/types/agent_blueprints_update_request_invocable_as_instance_types.rb +9 -0
- data/lib/workos/types/agent_instance_created_data_type.rb +1 -5
- data/lib/workos/types/agent_instance_deleted_data_type.rb +1 -1
- data/lib/workos/types/agent_instance_type.rb +1 -1
- data/lib/workos/types/connected_account_write_response_auth_method.rb +9 -0
- data/lib/workos/types/connected_account_write_response_connection_role.rb +9 -0
- data/lib/workos/types/connected_account_write_response_state.rb +9 -0
- data/lib/workos/types/create_connected_account_state.rb +9 -0
- data/lib/workos/types/create_data_integration_ownership.rb +1 -5
- data/lib/workos/types/create_organization_connected_account_state.rb +9 -0
- data/lib/workos/types/data_integration_ownership.rb +1 -1
- data/lib/workos/types/data_integrations_create_api_key_connection_request_connection_owner.rb +9 -0
- data/lib/workos/types/data_integrations_create_client_credentials_connection_request_connection_owner.rb +9 -0
- data/lib/workos/types/data_integrations_get_data_integration_authorize_url_request_connection_owner.rb +1 -1
- data/lib/workos/types/data_integrations_get_user_token_request_connection_owner.rb +1 -1
- data/lib/workos/types/data_integrations_list_response_data_connection_owner.rb +1 -1
- data/lib/workos/types/data_integrations_upsert_api_key_request_2_connection_owner.rb +9 -0
- data/lib/workos/types/data_integrations_upsert_api_key_request_connection_owner.rb +1 -1
- data/lib/workos/types/data_integrations_upsert_client_credentials_request_2_connection_owner.rb +9 -0
- data/lib/workos/types/data_integrations_upsert_client_credentials_request_connection_owner.rb +1 -1
- data/lib/workos/types/data_integrations_vend_credentials_request_connection_owner.rb +1 -1
- data/lib/workos/types/organization_connected_account_state.rb +9 -0
- data/lib/workos/types/pipes_ownership.rb +1 -1
- data/lib/workos/types/reauthorize_data_integrations_get_data_integration_authorize_url_request_connection_owner.rb +9 -0
- data/lib/workos/types/reauthorize_data_integrations_upsert_api_key_request_connection_owner.rb +9 -0
- data/lib/workos/types/reauthorize_data_integrations_upsert_client_credentials_request_connection_owner.rb +9 -0
- data/lib/workos/types/resource_export_completed_data_resource_type.rb +2 -1
- data/lib/workos/types/vault_dek_rekeyed_data_actor_source.rb +9 -0
- data/lib/workos/user_management.rb +1 -1
- data/lib/workos/vault/vault_dek_rekeyed.rb +34 -0
- data/lib/workos/vault/vault_dek_rekeyed_data.rb +31 -0
- data/lib/workos/version.rb +1 -1
- data/rbi/workos/add_data_integrations_get_data_integration_authorize_url_request.rbi +60 -0
- data/rbi/workos/admin_portal.rbi +11 -1
- data/rbi/workos/agent_blueprint.rbi +6 -0
- data/rbi/workos/agent_blueprint_created_data.rbi +6 -0
- data/rbi/workos/agent_blueprint_created_data_invocable_as.rbi +24 -0
- data/rbi/workos/agent_blueprint_invocable_as.rbi +24 -0
- data/rbi/workos/agent_blueprint_updated_data.rbi +6 -0
- data/rbi/workos/agent_blueprint_updated_data_invocable_as.rbi +24 -0
- data/rbi/workos/agent_blueprints_create_request.rbi +6 -0
- data/rbi/workos/agent_blueprints_create_request_invocable_as.rbi +24 -0
- data/rbi/workos/agent_blueprints_update_request.rbi +6 -0
- data/rbi/workos/agent_blueprints_update_request_invocable_as.rbi +24 -0
- data/rbi/workos/agent_registration.rbi +6 -0
- data/rbi/workos/agents.rbi +12 -2
- data/rbi/workos/connected_account.rbi +12 -0
- data/rbi/workos/connected_account_input.rbi +12 -0
- data/rbi/workos/connected_account_write_response.rbi +132 -0
- data/rbi/workos/connected_account_write_response_warning.rbi +30 -0
- data/rbi/workos/create_connected_account.rbi +66 -0
- data/rbi/workos/create_organization_connected_account.rbi +72 -0
- data/rbi/workos/data_integration_credentials_response.rbi +2 -2
- data/rbi/workos/data_integration_vended_credential.rbi +66 -0
- data/rbi/workos/data_integrations_create_api_key_connection_request.rbi +60 -0
- data/rbi/workos/data_integrations_create_client_credentials_connection_request.rbi +72 -0
- data/rbi/workos/data_integrations_get_data_integration_authorize_url_request.rbi +6 -0
- data/rbi/workos/data_integrations_list_response_data_connected_account.rbi +12 -0
- data/rbi/workos/data_integrations_upsert_api_key_request.rbi +12 -6
- data/rbi/workos/data_integrations_upsert_api_key_request_2.rbi +60 -0
- data/rbi/workos/data_integrations_upsert_client_credentials_request.rbi +12 -6
- data/rbi/workos/data_integrations_upsert_client_credentials_request_2.rbi +72 -0
- data/rbi/workos/directory_sync.rbi +8 -0
- data/rbi/workos/directory_sync_rate_limit_error.rbi +36 -0
- data/rbi/workos/directory_sync_response.rbi +24 -0
- data/rbi/workos/flag_updated_context_previous_attribute_data.rbi +6 -0
- data/rbi/workos/flag_updated_context_previous_attribute_data_owner.rbi +36 -0
- data/rbi/workos/generate_link.rbi +6 -0
- data/rbi/workos/organization_connected_account.rbi +66 -0
- data/rbi/workos/pipe_connected_account.rbi +12 -0
- data/rbi/workos/pipes.rbi +64 -15
- data/rbi/workos/reauthorize_data_integrations_get_data_integration_authorize_url_request.rbi +66 -0
- data/rbi/workos/reauthorize_data_integrations_upsert_api_key_request.rbi +66 -0
- data/rbi/workos/reauthorize_data_integrations_upsert_client_credentials_request.rbi +78 -0
- data/rbi/workos/revoke_link.rbi +30 -0
- data/rbi/workos/sso.rbi +2 -1
- data/rbi/workos/token_query.rbi +6 -0
- data/rbi/workos/user_role_assignment_source.rbi +6 -0
- data/rbi/workos/user_role_assignment_source_group.rbi +30 -0
- data/rbi/workos/vault_dek_rekeyed.rbi +54 -0
- data/rbi/workos/{data_integration_credentials_response_credential.rbi → vault_dek_rekeyed_data.rbi} +13 -19
- data/test/workos/test_admin_portal.rb +9 -1
- data/test/workos/test_admin_portal_model_round_trip.rb +14 -0
- data/test/workos/test_agents.rb +8 -0
- data/test/workos/test_agents_model_round_trip.rb +35 -0
- data/test/workos/test_authorization_model_round_trip.rb +15 -1
- data/test/workos/test_directory_sync.rb +8 -0
- data/test/workos/test_directory_sync_model_round_trip.rb +24 -0
- data/test/workos/test_feature_flags_model_round_trip.rb +16 -0
- data/test/workos/test_pipes.rb +20 -4
- data/test/workos/test_pipes_model_round_trip.rb +284 -15
- data/test/workos/test_shared_model_round_trip.rb +30 -6
- data/test/workos/test_sso_model_round_trip.rb +1 -0
- data/test/workos/test_vault_model_round_trip.rb +33 -0
- 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
|
|
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
|
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
module WorkOS
|
|
6
6
|
module Types
|
|
7
|
-
|
|
8
|
-
DELEGATED = "delegated"
|
|
9
|
-
AUTONOMOUS = "autonomous"
|
|
10
|
-
ALL = [DELEGATED, AUTONOMOUS].freeze
|
|
11
|
-
end
|
|
7
|
+
AgentInstanceCreatedDataType = AgentBlueprintCreatedDataInvocableAsInstanceTypes
|
|
12
8
|
end
|
|
13
9
|
end
|
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
module WorkOS
|
|
6
6
|
module Types
|
|
7
|
-
|
|
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
|
+
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 =
|
|
7
|
+
DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner = AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner
|
|
8
8
|
end
|
|
9
9
|
end
|
data/lib/workos/types/data_integrations_upsert_client_credentials_request_2_connection_owner.rb
ADDED
|
@@ -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
|
data/lib/workos/types/data_integrations_upsert_client_credentials_request_connection_owner.rb
CHANGED
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
module WorkOS
|
|
6
6
|
module Types
|
|
7
|
-
DataIntegrationsUpsertClientCredentialsRequestConnectionOwner =
|
|
7
|
+
DataIntegrationsUpsertClientCredentialsRequestConnectionOwner = 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
|
data/lib/workos/types/reauthorize_data_integrations_upsert_api_key_request_connection_owner.rb
ADDED
|
@@ -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
|
-
|
|
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
|
|
@@ -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
|
data/lib/workos/version.rb
CHANGED