workos 10.3.0 → 10.4.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 +2 -2
- data/.github/workflows/docs.yml +3 -3
- data/.github/workflows/lint.yml +2 -2
- data/.github/workflows/release-please.yml +3 -3
- data/.github/workflows/release.yml +2 -2
- data/.last-synced-sha +1 -1
- data/.oagen-manifest.json +234 -156
- data/.release-please-manifest.json +1 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +174 -0
- data/Gemfile.lock +14 -14
- data/README.md +23 -0
- data/lib/workos/admin_portal.rb +2 -2
- data/lib/workos/agents.rb +5 -1
- data/lib/workos/api_keys/validate_api_key.rb +12 -1
- data/lib/workos/base_client.rb +6 -2
- data/lib/workos/configuration.rb +3 -2
- data/lib/workos/inflections.rb +2 -0
- data/lib/workos/multi_factor_auth.rb +1 -1
- data/lib/workos/pipes/connected_account.rb +9 -0
- data/lib/workos/pipes/create_data_integration.rb +3 -0
- data/lib/workos/pipes/data_integration.rb +3 -0
- data/lib/workos/pipes/data_integration_installation.rb +9 -0
- data/lib/workos/pipes/data_integrations_get_data_integration_authorize_url_request.rb +3 -0
- data/lib/workos/pipes/data_integrations_get_user_token_request.rb +11 -2
- data/lib/workos/pipes/data_integrations_list_response_data.rb +18 -3
- data/lib/workos/pipes/data_integrations_list_response_data_connected_account.rb +9 -0
- data/lib/workos/pipes/data_integrations_upsert_api_key_request.rb +25 -1
- data/lib/workos/pipes/data_integrations_upsert_client_credentials_request.rb +6 -0
- data/lib/workos/pipes/data_integrations_vend_credentials_request.rb +11 -2
- data/lib/workos/pipes.rb +324 -17
- data/lib/workos/session_manager.rb +11 -6
- data/lib/workos/shared/account_selection_required_error.rb +22 -0
- data/lib/workos/shared/pipe_connected_account.rb +15 -0
- data/lib/workos/shared/pipes_account_connection_add_failed.rb +34 -0
- data/lib/workos/shared/pipes_account_connection_add_failed_data.rb +49 -0
- data/lib/workos/shared/pipes_account_connection_connected.rb +34 -0
- data/lib/workos/shared/pipes_account_connection_connection_failed.rb +34 -0
- data/lib/workos/shared/pipes_account_connection_connection_failed_data.rb +7 -0
- data/lib/workos/shared/pipes_account_connection_disconnected.rb +34 -0
- data/lib/workos/shared/pipes_account_connection_reauthorization_needed.rb +34 -0
- data/lib/workos/shared/pipes_connected_account_connection_failed_data.rb +1 -40
- data/lib/workos/types/connected_account_connection_role.rb +13 -0
- data/lib/workos/types/create_data_integration_ownership.rb +13 -0
- data/lib/workos/types/create_webhook_endpoint_events.rb +6 -1
- data/lib/workos/types/data_integration_installation_connection_role.rb +9 -0
- data/lib/workos/types/data_integration_ownership.rb +9 -0
- data/lib/workos/types/data_integrations_get_data_integration_authorize_url_request_connection_owner.rb +9 -0
- data/lib/workos/types/data_integrations_get_user_token_request_connection_owner.rb +9 -0
- data/lib/workos/types/data_integrations_list_response_data_connected_account_connection_role.rb +9 -0
- data/lib/workos/types/data_integrations_list_response_data_connection_owner.rb +9 -0
- data/lib/workos/types/data_integrations_upsert_api_key_request_connection_owner.rb +9 -0
- data/lib/workos/types/data_integrations_upsert_client_credentials_request_connection_owner.rb +9 -0
- data/lib/workos/types/data_integrations_vend_credentials_request_connection_owner.rb +9 -0
- data/lib/workos/types/pipe_connected_account_auth_method.rb +9 -0
- data/lib/workos/types/pipe_connected_account_connection_role.rb +9 -0
- data/lib/workos/types/pipes_ownership.rb +9 -0
- data/lib/workos/types/resource_export_completed_data_resource_type.rb +3 -1
- data/lib/workos/user_management/authkit_oauth_resource.rb +34 -0
- data/lib/workos/user_management/create_authkit_oauth_resource.rb +22 -0
- data/lib/workos/user_management.rb +87 -0
- data/lib/workos/version.rb +1 -1
- data/rbi/workos/account_selection_required_error.rbi +30 -0
- data/rbi/workos/agents.rbi +2 -1
- data/rbi/workos/authkit_oauth_resource.rbi +54 -0
- data/rbi/workos/connected_account.rbi +18 -0
- data/rbi/workos/create_authkit_oauth_resource.rbi +30 -0
- data/rbi/workos/create_data_integration.rbi +6 -0
- data/rbi/workos/data_integration.rbi +6 -0
- data/rbi/workos/data_integration_installation.rbi +19 -1
- data/rbi/workos/data_integrations_get_data_integration_authorize_url_request.rbi +6 -0
- data/rbi/workos/data_integrations_get_user_token_request.rbi +18 -0
- data/rbi/workos/data_integrations_list_response_data.rbi +12 -0
- data/rbi/workos/data_integrations_list_response_data_connected_account.rbi +18 -0
- data/rbi/workos/data_integrations_upsert_api_key_request.rbi +12 -0
- data/rbi/workos/data_integrations_upsert_client_credentials_request.rbi +12 -0
- data/rbi/workos/data_integrations_vend_credentials_request.rbi +18 -0
- data/rbi/workos/pipe_connected_account.rbi +30 -0
- data/rbi/workos/pipes.rbi +122 -11
- data/rbi/workos/pipes_account_connection_add_failed.rbi +54 -0
- data/rbi/workos/pipes_account_connection_add_failed_data.rbi +84 -0
- data/rbi/workos/pipes_account_connection_connected.rbi +54 -0
- data/rbi/workos/pipes_account_connection_connection_failed.rbi +54 -0
- data/rbi/workos/pipes_account_connection_connection_failed_data.rbi +84 -0
- data/rbi/workos/pipes_account_connection_disconnected.rbi +54 -0
- data/rbi/workos/pipes_account_connection_reauthorization_needed.rbi +54 -0
- data/rbi/workos/pipes_connected_account_connection_failed_data.rbi +6 -0
- data/rbi/workos/user_management.rbi +28 -0
- data/test/workos/test_pipes.rb +64 -0
- data/test/workos/test_pipes_model_round_trip.rb +35 -5
- data/test/workos/test_session.rb +63 -0
- data/test/workos/test_shared_model_round_trip.rb +161 -0
- data/test/workos/test_user_management.rb +24 -0
- data/test/workos/test_user_management_model_round_trip.rb +32 -0
- metadata +35 -1
data/rbi/workos/agents.rbi
CHANGED
|
@@ -148,12 +148,13 @@ module WorkOS
|
|
|
148
148
|
after: T.nilable(String),
|
|
149
149
|
limit: T.nilable(Integer),
|
|
150
150
|
order: T.nilable(String),
|
|
151
|
+
organization_id: T.nilable(String),
|
|
151
152
|
agent_blueprint_id: T.nilable(String),
|
|
152
153
|
agent_instance_id: T.nilable(String),
|
|
153
154
|
request_options: T::Hash[Symbol, T.untyped]
|
|
154
155
|
).returns(T::Array[WorkOS::AgentInstanceSession])
|
|
155
156
|
end
|
|
156
|
-
def list_sessions(before:, after:, limit:, order:, agent_blueprint_id:, agent_instance_id:, request_options:); end
|
|
157
|
+
def list_sessions(before:, after:, limit:, order:, organization_id:, agent_blueprint_id:, agent_instance_id:, request_options:); end
|
|
157
158
|
|
|
158
159
|
sig do
|
|
159
160
|
params(
|
|
@@ -0,0 +1,54 @@
|
|
|
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 AuthkitOAuthResource
|
|
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(String) }
|
|
25
|
+
def uri; end
|
|
26
|
+
|
|
27
|
+
sig { params(value: String).returns(String) }
|
|
28
|
+
def uri=(value); end
|
|
29
|
+
|
|
30
|
+
sig { returns(T::Boolean) }
|
|
31
|
+
def default; end
|
|
32
|
+
|
|
33
|
+
sig { params(value: T::Boolean).returns(T::Boolean) }
|
|
34
|
+
def default=(value); end
|
|
35
|
+
|
|
36
|
+
sig { returns(String) }
|
|
37
|
+
def created_at; end
|
|
38
|
+
|
|
39
|
+
sig { params(value: String).returns(String) }
|
|
40
|
+
def created_at=(value); end
|
|
41
|
+
|
|
42
|
+
sig { returns(String) }
|
|
43
|
+
def updated_at; end
|
|
44
|
+
|
|
45
|
+
sig { params(value: String).returns(String) }
|
|
46
|
+
def updated_at=(value); end
|
|
47
|
+
|
|
48
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
49
|
+
def to_h; end
|
|
50
|
+
|
|
51
|
+
sig { params(args: T.untyped).returns(String) }
|
|
52
|
+
def to_json(*args); end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -21,6 +21,24 @@ module WorkOS
|
|
|
21
21
|
sig { params(value: String).returns(String) }
|
|
22
22
|
def id=(value); end
|
|
23
23
|
|
|
24
|
+
sig { returns(String) }
|
|
25
|
+
def connection_role; end
|
|
26
|
+
|
|
27
|
+
sig { params(value: String).returns(String) }
|
|
28
|
+
def connection_role=(value); end
|
|
29
|
+
|
|
30
|
+
sig { returns(T.nilable(String)) }
|
|
31
|
+
def account_identifier; end
|
|
32
|
+
|
|
33
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
34
|
+
def account_identifier=(value); end
|
|
35
|
+
|
|
36
|
+
sig { returns(T.nilable(String)) }
|
|
37
|
+
def account_display_name; end
|
|
38
|
+
|
|
39
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
40
|
+
def account_display_name=(value); end
|
|
41
|
+
|
|
24
42
|
sig { returns(T.nilable(String)) }
|
|
25
43
|
def user_id; end
|
|
26
44
|
|
|
@@ -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 CreateAuthkitOAuthResource
|
|
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 uri; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: String).returns(String) }
|
|
16
|
+
def uri=(value); end
|
|
17
|
+
|
|
18
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
19
|
+
def default; end
|
|
20
|
+
|
|
21
|
+
sig { params(value: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
|
|
22
|
+
def default=(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
|
|
@@ -15,6 +15,12 @@ module WorkOS
|
|
|
15
15
|
sig { params(value: String).returns(String) }
|
|
16
16
|
def provider=(value); end
|
|
17
17
|
|
|
18
|
+
sig { returns(T.nilable(String)) }
|
|
19
|
+
def ownership; end
|
|
20
|
+
|
|
21
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
22
|
+
def ownership=(value); end
|
|
23
|
+
|
|
18
24
|
sig { returns(T.nilable(String)) }
|
|
19
25
|
def description; end
|
|
20
26
|
|
|
@@ -33,6 +33,12 @@ module WorkOS
|
|
|
33
33
|
sig { params(value: String).returns(String) }
|
|
34
34
|
def integration_type=(value); end
|
|
35
35
|
|
|
36
|
+
sig { returns(String) }
|
|
37
|
+
def ownership; end
|
|
38
|
+
|
|
39
|
+
sig { params(value: String).returns(String) }
|
|
40
|
+
def ownership=(value); end
|
|
41
|
+
|
|
36
42
|
sig { returns(T.nilable(String)) }
|
|
37
43
|
def description; end
|
|
38
44
|
|
|
@@ -16,9 +16,27 @@ module WorkOS
|
|
|
16
16
|
def id=(value); end
|
|
17
17
|
|
|
18
18
|
sig { returns(String) }
|
|
19
|
-
def
|
|
19
|
+
def connection_role; end
|
|
20
20
|
|
|
21
21
|
sig { params(value: String).returns(String) }
|
|
22
|
+
def connection_role=(value); end
|
|
23
|
+
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
def account_identifier; end
|
|
26
|
+
|
|
27
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
28
|
+
def account_identifier=(value); end
|
|
29
|
+
|
|
30
|
+
sig { returns(T.nilable(String)) }
|
|
31
|
+
def account_display_name; end
|
|
32
|
+
|
|
33
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
34
|
+
def account_display_name=(value); end
|
|
35
|
+
|
|
36
|
+
sig { returns(T.nilable(String)) }
|
|
37
|
+
def user_id; end
|
|
38
|
+
|
|
39
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
22
40
|
def user_id=(value); end
|
|
23
41
|
|
|
24
42
|
sig { returns(T.nilable(String)) }
|
|
@@ -21,6 +21,12 @@ module WorkOS
|
|
|
21
21
|
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
22
22
|
def organization_id=(value); end
|
|
23
23
|
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
def connection_owner; end
|
|
26
|
+
|
|
27
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
28
|
+
def connection_owner=(value); end
|
|
29
|
+
|
|
24
30
|
sig { returns(T.nilable(String)) }
|
|
25
31
|
def return_to; end
|
|
26
32
|
|
|
@@ -21,6 +21,24 @@ module WorkOS
|
|
|
21
21
|
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
22
22
|
def organization_id=(value); end
|
|
23
23
|
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
def connected_account_id; end
|
|
26
|
+
|
|
27
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
28
|
+
def connected_account_id=(value); end
|
|
29
|
+
|
|
30
|
+
sig { returns(T.nilable(String)) }
|
|
31
|
+
def connection_owner; end
|
|
32
|
+
|
|
33
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
34
|
+
def connection_owner=(value); end
|
|
35
|
+
|
|
36
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
37
|
+
def supports_multiple_connections; end
|
|
38
|
+
|
|
39
|
+
sig { params(value: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
|
|
40
|
+
def supports_multiple_connections=(value); end
|
|
41
|
+
|
|
24
42
|
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
25
43
|
def to_h; end
|
|
26
44
|
|
|
@@ -63,6 +63,12 @@ module WorkOS
|
|
|
63
63
|
sig { params(value: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) }
|
|
64
64
|
def auth_methods=(value); end
|
|
65
65
|
|
|
66
|
+
sig { returns(String) }
|
|
67
|
+
def connection_owner; end
|
|
68
|
+
|
|
69
|
+
sig { params(value: String).returns(String) }
|
|
70
|
+
def connection_owner=(value); end
|
|
71
|
+
|
|
66
72
|
sig { returns(String) }
|
|
67
73
|
def ownership; end
|
|
68
74
|
|
|
@@ -87,6 +93,12 @@ module WorkOS
|
|
|
87
93
|
sig { params(value: T.nilable(WorkOS::DataIntegrationsListResponseDataConnectedAccount)).returns(T.nilable(WorkOS::DataIntegrationsListResponseDataConnectedAccount)) }
|
|
88
94
|
def connected_account=(value); end
|
|
89
95
|
|
|
96
|
+
sig { returns(T::Array[WorkOS::DataIntegrationsListResponseDataConnectedAccount]) }
|
|
97
|
+
def connected_accounts; end
|
|
98
|
+
|
|
99
|
+
sig { params(value: T::Array[WorkOS::DataIntegrationsListResponseDataConnectedAccount]).returns(T::Array[WorkOS::DataIntegrationsListResponseDataConnectedAccount]) }
|
|
100
|
+
def connected_accounts=(value); end
|
|
101
|
+
|
|
90
102
|
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
91
103
|
def to_h; end
|
|
92
104
|
|
|
@@ -21,6 +21,24 @@ module WorkOS
|
|
|
21
21
|
sig { params(value: String).returns(String) }
|
|
22
22
|
def id=(value); end
|
|
23
23
|
|
|
24
|
+
sig { returns(String) }
|
|
25
|
+
def connection_role; end
|
|
26
|
+
|
|
27
|
+
sig { params(value: String).returns(String) }
|
|
28
|
+
def connection_role=(value); end
|
|
29
|
+
|
|
30
|
+
sig { returns(T.nilable(String)) }
|
|
31
|
+
def account_identifier; end
|
|
32
|
+
|
|
33
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
34
|
+
def account_identifier=(value); end
|
|
35
|
+
|
|
36
|
+
sig { returns(T.nilable(String)) }
|
|
37
|
+
def account_display_name; end
|
|
38
|
+
|
|
39
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
40
|
+
def account_display_name=(value); end
|
|
41
|
+
|
|
24
42
|
sig { returns(T.nilable(String)) }
|
|
25
43
|
def user_id; end
|
|
26
44
|
|
|
@@ -21,6 +21,18 @@ module WorkOS
|
|
|
21
21
|
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
22
22
|
def organization_id=(value); end
|
|
23
23
|
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
def connected_account_id; end
|
|
26
|
+
|
|
27
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
28
|
+
def connected_account_id=(value); end
|
|
29
|
+
|
|
30
|
+
sig { returns(T.nilable(String)) }
|
|
31
|
+
def connection_owner; end
|
|
32
|
+
|
|
33
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
34
|
+
def connection_owner=(value); end
|
|
35
|
+
|
|
24
36
|
sig { returns(String) }
|
|
25
37
|
def secret; end
|
|
26
38
|
|
|
@@ -21,6 +21,18 @@ module WorkOS
|
|
|
21
21
|
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
22
22
|
def organization_id=(value); end
|
|
23
23
|
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
def connected_account_id; end
|
|
26
|
+
|
|
27
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
28
|
+
def connected_account_id=(value); end
|
|
29
|
+
|
|
30
|
+
sig { returns(T.nilable(String)) }
|
|
31
|
+
def connection_owner; end
|
|
32
|
+
|
|
33
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
34
|
+
def connection_owner=(value); end
|
|
35
|
+
|
|
24
36
|
sig { returns(String) }
|
|
25
37
|
def client_id; end
|
|
26
38
|
|
|
@@ -21,6 +21,24 @@ module WorkOS
|
|
|
21
21
|
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
22
22
|
def organization_id=(value); end
|
|
23
23
|
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
def connected_account_id; end
|
|
26
|
+
|
|
27
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
28
|
+
def connected_account_id=(value); end
|
|
29
|
+
|
|
30
|
+
sig { returns(T.nilable(String)) }
|
|
31
|
+
def connection_owner; end
|
|
32
|
+
|
|
33
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
34
|
+
def connection_owner=(value); end
|
|
35
|
+
|
|
36
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
37
|
+
def supports_multiple_connections; end
|
|
38
|
+
|
|
39
|
+
sig { params(value: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
|
|
40
|
+
def supports_multiple_connections=(value); end
|
|
41
|
+
|
|
24
42
|
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
25
43
|
def to_h; end
|
|
26
44
|
|
|
@@ -21,6 +21,24 @@ module WorkOS
|
|
|
21
21
|
sig { params(value: String).returns(String) }
|
|
22
22
|
def id=(value); end
|
|
23
23
|
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
def connection_role; end
|
|
26
|
+
|
|
27
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
28
|
+
def connection_role=(value); end
|
|
29
|
+
|
|
30
|
+
sig { returns(T.nilable(String)) }
|
|
31
|
+
def account_identifier; end
|
|
32
|
+
|
|
33
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
34
|
+
def account_identifier=(value); end
|
|
35
|
+
|
|
36
|
+
sig { returns(T.nilable(String)) }
|
|
37
|
+
def account_display_name; end
|
|
38
|
+
|
|
39
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
40
|
+
def account_display_name=(value); end
|
|
41
|
+
|
|
24
42
|
sig { returns(String) }
|
|
25
43
|
def data_integration_id; end
|
|
26
44
|
|
|
@@ -51,6 +69,18 @@ module WorkOS
|
|
|
51
69
|
sig { params(value: T::Array[String]).returns(T::Array[String]) }
|
|
52
70
|
def scopes=(value); end
|
|
53
71
|
|
|
72
|
+
sig { returns(T.nilable(String)) }
|
|
73
|
+
def auth_method; end
|
|
74
|
+
|
|
75
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
76
|
+
def auth_method=(value); end
|
|
77
|
+
|
|
78
|
+
sig { returns(T.nilable(String)) }
|
|
79
|
+
def api_key_last_4; end
|
|
80
|
+
|
|
81
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
82
|
+
def api_key_last_4=(value); end
|
|
83
|
+
|
|
54
84
|
sig { returns(String) }
|
|
55
85
|
def state; end
|
|
56
86
|
|
data/rbi/workos/pipes.rbi
CHANGED
|
@@ -15,14 +15,16 @@ module WorkOS
|
|
|
15
15
|
after: T.nilable(String),
|
|
16
16
|
limit: T.nilable(Integer),
|
|
17
17
|
order: T.nilable(String),
|
|
18
|
+
ownership: T.nilable(String),
|
|
18
19
|
request_options: T::Hash[Symbol, T.untyped]
|
|
19
20
|
).returns(WorkOS::Types::ListStruct)
|
|
20
21
|
end
|
|
21
|
-
def list_data_integrations(before:, after:, limit:, order:, request_options:); end
|
|
22
|
+
def list_data_integrations(before:, after:, limit:, order:, ownership:, request_options:); end
|
|
22
23
|
|
|
23
24
|
sig do
|
|
24
25
|
params(
|
|
25
26
|
provider: String,
|
|
27
|
+
ownership: T.nilable(String),
|
|
26
28
|
description: T.nilable(String),
|
|
27
29
|
enabled: T.nilable(T::Boolean),
|
|
28
30
|
scopes: T.nilable(T::Array[String]),
|
|
@@ -34,7 +36,7 @@ module WorkOS
|
|
|
34
36
|
request_options: T::Hash[Symbol, T.untyped]
|
|
35
37
|
).returns(WorkOS::DataIntegration)
|
|
36
38
|
end
|
|
37
|
-
def create_data_integration(provider:, description:, enabled:, scopes:, auth_methods:, config:, credentials:, api_key:, custom_provider:, request_options:); end
|
|
39
|
+
def create_data_integration(provider:, ownership:, description:, enabled:, scopes:, auth_methods:, config:, credentials:, api_key:, custom_provider:, request_options:); end
|
|
38
40
|
|
|
39
41
|
sig do
|
|
40
42
|
params(
|
|
@@ -72,22 +74,25 @@ module WorkOS
|
|
|
72
74
|
user_id: String,
|
|
73
75
|
secret: String,
|
|
74
76
|
organization_id: T.nilable(String),
|
|
77
|
+
connected_account_id: T.nilable(String),
|
|
78
|
+
connection_owner: T.nilable(String),
|
|
75
79
|
request_options: T::Hash[Symbol, T.untyped]
|
|
76
80
|
).returns(WorkOS::ConnectedAccount)
|
|
77
81
|
end
|
|
78
|
-
def update_data_integration_api_key(slug:, user_id:, secret:, organization_id:, request_options:); end
|
|
82
|
+
def update_data_integration_api_key(slug:, user_id:, secret:, organization_id:, connected_account_id:, connection_owner:, request_options:); end
|
|
79
83
|
|
|
80
84
|
sig do
|
|
81
85
|
params(
|
|
82
86
|
slug: String,
|
|
83
87
|
user_id: String,
|
|
84
88
|
organization_id: T.nilable(String),
|
|
89
|
+
connection_owner: T.nilable(String),
|
|
85
90
|
return_to: T.nilable(String),
|
|
86
91
|
config: T.nilable(T::Hash[String, String]),
|
|
87
92
|
request_options: T::Hash[Symbol, T.untyped]
|
|
88
93
|
).returns(WorkOS::DataIntegrationAuthorizeUrlResponse)
|
|
89
94
|
end
|
|
90
|
-
def authorize_data_integration(slug:, user_id:, organization_id:, return_to:, config:, request_options:); end
|
|
95
|
+
def authorize_data_integration(slug:, user_id:, organization_id:, connection_owner:, return_to:, config:, request_options:); end
|
|
91
96
|
|
|
92
97
|
sig do
|
|
93
98
|
params(
|
|
@@ -96,41 +101,142 @@ module WorkOS
|
|
|
96
101
|
client_id: String,
|
|
97
102
|
client_secret: String,
|
|
98
103
|
organization_id: T.nilable(String),
|
|
104
|
+
connected_account_id: T.nilable(String),
|
|
105
|
+
connection_owner: T.nilable(String),
|
|
99
106
|
config: T.nilable(T::Hash[String, String]),
|
|
100
107
|
request_options: T::Hash[Symbol, T.untyped]
|
|
101
108
|
).returns(WorkOS::ConnectedAccount)
|
|
102
109
|
end
|
|
103
|
-
def update_data_integration_client_credentials(slug:, user_id:, client_id:, client_secret:, organization_id:, config:, request_options:); end
|
|
110
|
+
def update_data_integration_client_credentials(slug:, user_id:, client_id:, client_secret:, organization_id:, connected_account_id:, connection_owner:, config:, request_options:); end
|
|
104
111
|
|
|
105
112
|
sig do
|
|
106
113
|
params(
|
|
107
114
|
slug: String,
|
|
108
115
|
user_id: String,
|
|
109
116
|
organization_id: T.nilable(String),
|
|
117
|
+
connected_account_id: T.nilable(String),
|
|
118
|
+
connection_owner: T.nilable(String),
|
|
119
|
+
supports_multiple_connections: T.nilable(T::Boolean),
|
|
110
120
|
request_options: T::Hash[Symbol, T.untyped]
|
|
111
121
|
).returns(WorkOS::DataIntegrationCredentialsResponse)
|
|
112
122
|
end
|
|
113
|
-
def create_data_integration_credential(slug:, user_id:, organization_id:, request_options:); end
|
|
123
|
+
def create_data_integration_credential(slug:, user_id:, organization_id:, connected_account_id:, connection_owner:, supports_multiple_connections:, request_options:); end
|
|
124
|
+
|
|
125
|
+
sig do
|
|
126
|
+
params(
|
|
127
|
+
slug: String,
|
|
128
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
129
|
+
).returns(WorkOS::DataIntegration)
|
|
130
|
+
end
|
|
131
|
+
def list_data_integration_organization(slug:, request_options:); end
|
|
132
|
+
|
|
133
|
+
sig do
|
|
134
|
+
params(
|
|
135
|
+
slug: String,
|
|
136
|
+
description: T.nilable(String),
|
|
137
|
+
enabled: T.nilable(T::Boolean),
|
|
138
|
+
scopes: T.nilable(T::Array[String]),
|
|
139
|
+
credentials: T.nilable(WorkOS::DataIntegrationCredentialsInput),
|
|
140
|
+
api_key: T.nilable(WorkOS::ApiKeyInstallation),
|
|
141
|
+
custom_provider: T.nilable(WorkOS::UpdateCustomProviderDefinition),
|
|
142
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
143
|
+
).returns(WorkOS::DataIntegration)
|
|
144
|
+
end
|
|
145
|
+
def update_data_integration_organization(slug:, description:, enabled:, scopes:, credentials:, api_key:, custom_provider:, request_options:); end
|
|
146
|
+
|
|
147
|
+
sig do
|
|
148
|
+
params(
|
|
149
|
+
slug: String,
|
|
150
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
151
|
+
).returns(NilClass)
|
|
152
|
+
end
|
|
153
|
+
def delete_data_integration_organization(slug:, request_options:); end
|
|
114
154
|
|
|
115
155
|
sig do
|
|
116
156
|
params(
|
|
117
157
|
provider: String,
|
|
118
158
|
user_id: String,
|
|
119
159
|
organization_id: T.nilable(String),
|
|
160
|
+
connected_account_id: T.nilable(String),
|
|
161
|
+
connection_owner: T.nilable(String),
|
|
162
|
+
supports_multiple_connections: T.nilable(T::Boolean),
|
|
120
163
|
request_options: T::Hash[Symbol, T.untyped]
|
|
121
164
|
).returns(WorkOS::DataIntegrationAccessTokenResponse)
|
|
122
165
|
end
|
|
123
|
-
def get_access_token(provider:, user_id:, organization_id:, request_options:); end
|
|
166
|
+
def get_access_token(provider:, user_id:, organization_id:, connected_account_id:, connection_owner:, supports_multiple_connections:, request_options:); end
|
|
167
|
+
|
|
168
|
+
sig do
|
|
169
|
+
params(
|
|
170
|
+
organization_id: String,
|
|
171
|
+
slug: String,
|
|
172
|
+
supports_multiple_connections: T.nilable(T::Boolean),
|
|
173
|
+
connected_account_id: T.nilable(String),
|
|
174
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
175
|
+
).returns(WorkOS::ConnectedAccount)
|
|
176
|
+
end
|
|
177
|
+
def get_organization_connected_account(organization_id:, slug:, supports_multiple_connections:, connected_account_id:, request_options:); end
|
|
178
|
+
|
|
179
|
+
sig do
|
|
180
|
+
params(
|
|
181
|
+
organization_id: String,
|
|
182
|
+
slug: String,
|
|
183
|
+
access_token: T.nilable(String),
|
|
184
|
+
refresh_token: T.nilable(String),
|
|
185
|
+
expires_at: T.nilable(String),
|
|
186
|
+
scopes: T.nilable(T::Array[String]),
|
|
187
|
+
state: T.nilable(String),
|
|
188
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
189
|
+
).returns(WorkOS::ConnectedAccount)
|
|
190
|
+
end
|
|
191
|
+
def create_organization_connected_account(organization_id:, slug:, access_token:, refresh_token:, expires_at:, scopes:, state:, request_options:); end
|
|
192
|
+
|
|
193
|
+
sig do
|
|
194
|
+
params(
|
|
195
|
+
organization_id: String,
|
|
196
|
+
slug: String,
|
|
197
|
+
access_token: T.nilable(String),
|
|
198
|
+
refresh_token: T.nilable(String),
|
|
199
|
+
expires_at: T.nilable(String),
|
|
200
|
+
scopes: T.nilable(T::Array[String]),
|
|
201
|
+
state: T.nilable(String),
|
|
202
|
+
supports_multiple_connections: T.nilable(T::Boolean),
|
|
203
|
+
connected_account_id: T.nilable(String),
|
|
204
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
205
|
+
).returns(WorkOS::ConnectedAccount)
|
|
206
|
+
end
|
|
207
|
+
def update_organization_connected_account(organization_id:, slug:, access_token:, refresh_token:, expires_at:, scopes:, state:, supports_multiple_connections:, connected_account_id:, request_options:); end
|
|
208
|
+
|
|
209
|
+
sig do
|
|
210
|
+
params(
|
|
211
|
+
organization_id: String,
|
|
212
|
+
slug: String,
|
|
213
|
+
supports_multiple_connections: T.nilable(T::Boolean),
|
|
214
|
+
connected_account_id: T.nilable(String),
|
|
215
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
216
|
+
).returns(NilClass)
|
|
217
|
+
end
|
|
218
|
+
def delete_organization_connected_account(organization_id:, slug:, supports_multiple_connections:, connected_account_id:, request_options:); end
|
|
219
|
+
|
|
220
|
+
sig do
|
|
221
|
+
params(
|
|
222
|
+
organization_id: String,
|
|
223
|
+
supports_multiple_connections: T.nilable(T::Boolean),
|
|
224
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
225
|
+
).returns(WorkOS::DataIntegrationsListResponse)
|
|
226
|
+
end
|
|
227
|
+
def list_organization_data_providers(organization_id:, supports_multiple_connections:, request_options:); end
|
|
124
228
|
|
|
125
229
|
sig do
|
|
126
230
|
params(
|
|
127
231
|
user_id: String,
|
|
128
232
|
slug: String,
|
|
129
233
|
organization_id: T.nilable(String),
|
|
234
|
+
supports_multiple_connections: T.nilable(T::Boolean),
|
|
235
|
+
connected_account_id: T.nilable(String),
|
|
130
236
|
request_options: T::Hash[Symbol, T.untyped]
|
|
131
237
|
).returns(WorkOS::ConnectedAccount)
|
|
132
238
|
end
|
|
133
|
-
def get_user_connected_account(user_id:, slug:, organization_id:, request_options:); end
|
|
239
|
+
def get_user_connected_account(user_id:, slug:, organization_id:, supports_multiple_connections:, connected_account_id:, request_options:); end
|
|
134
240
|
|
|
135
241
|
sig do
|
|
136
242
|
params(
|
|
@@ -157,29 +263,34 @@ module WorkOS
|
|
|
157
263
|
scopes: T.nilable(T::Array[String]),
|
|
158
264
|
state: T.nilable(String),
|
|
159
265
|
organization_id: T.nilable(String),
|
|
266
|
+
supports_multiple_connections: T.nilable(T::Boolean),
|
|
267
|
+
connected_account_id: T.nilable(String),
|
|
160
268
|
request_options: T::Hash[Symbol, T.untyped]
|
|
161
269
|
).returns(WorkOS::ConnectedAccount)
|
|
162
270
|
end
|
|
163
|
-
def update_user_connected_account(user_id:, slug:, access_token:, refresh_token:, expires_at:, scopes:, state:, organization_id:, request_options:); end
|
|
271
|
+
def update_user_connected_account(user_id:, slug:, access_token:, refresh_token:, expires_at:, scopes:, state:, organization_id:, supports_multiple_connections:, connected_account_id:, request_options:); end
|
|
164
272
|
|
|
165
273
|
sig do
|
|
166
274
|
params(
|
|
167
275
|
user_id: String,
|
|
168
276
|
slug: String,
|
|
169
277
|
organization_id: T.nilable(String),
|
|
278
|
+
supports_multiple_connections: T.nilable(T::Boolean),
|
|
279
|
+
connected_account_id: T.nilable(String),
|
|
170
280
|
request_options: T::Hash[Symbol, T.untyped]
|
|
171
281
|
).returns(NilClass)
|
|
172
282
|
end
|
|
173
|
-
def delete_user_connected_account(user_id:, slug:, organization_id:, request_options:); end
|
|
283
|
+
def delete_user_connected_account(user_id:, slug:, organization_id:, supports_multiple_connections:, connected_account_id:, request_options:); end
|
|
174
284
|
|
|
175
285
|
sig do
|
|
176
286
|
params(
|
|
177
287
|
user_id: String,
|
|
178
288
|
organization_id: T.nilable(String),
|
|
289
|
+
supports_multiple_connections: T.nilable(T::Boolean),
|
|
179
290
|
request_options: T::Hash[Symbol, T.untyped]
|
|
180
291
|
).returns(WorkOS::DataIntegrationsListResponse)
|
|
181
292
|
end
|
|
182
|
-
def list_user_data_providers(user_id:, organization_id:, request_options:); end
|
|
293
|
+
def list_user_data_providers(user_id:, organization_id:, supports_multiple_connections:, request_options:); end
|
|
183
294
|
|
|
184
295
|
end
|
|
185
296
|
end
|
|
@@ -0,0 +1,54 @@
|
|
|
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 PipesAccountConnectionAddFailed
|
|
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(String) }
|
|
25
|
+
def event; end
|
|
26
|
+
|
|
27
|
+
sig { params(value: String).returns(String) }
|
|
28
|
+
def event=(value); end
|
|
29
|
+
|
|
30
|
+
sig { returns(WorkOS::PipesAccountConnectionAddFailedData) }
|
|
31
|
+
def data; end
|
|
32
|
+
|
|
33
|
+
sig { params(value: WorkOS::PipesAccountConnectionAddFailedData).returns(WorkOS::PipesAccountConnectionAddFailedData) }
|
|
34
|
+
def data=(value); end
|
|
35
|
+
|
|
36
|
+
sig { returns(String) }
|
|
37
|
+
def created_at; end
|
|
38
|
+
|
|
39
|
+
sig { params(value: String).returns(String) }
|
|
40
|
+
def created_at=(value); end
|
|
41
|
+
|
|
42
|
+
sig { returns(T.nilable(WorkOS::EventContext)) }
|
|
43
|
+
def context; end
|
|
44
|
+
|
|
45
|
+
sig { params(value: T.nilable(WorkOS::EventContext)).returns(T.nilable(WorkOS::EventContext)) }
|
|
46
|
+
def context=(value); end
|
|
47
|
+
|
|
48
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
49
|
+
def to_h; end
|
|
50
|
+
|
|
51
|
+
sig { params(args: T.untyped).returns(String) }
|
|
52
|
+
def to_json(*args); end
|
|
53
|
+
end
|
|
54
|
+
end
|