workos 9.3.0 → 9.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/.last-synced-sha +1 -1
- data/.oagen-manifest.json +110 -1
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +123 -0
- data/Gemfile.lock +2 -2
- data/lib/workos/admin_portal/generate_link.rb +0 -3
- data/lib/workos/admin_portal.rb +0 -3
- data/lib/workos/authorization/user_role_assignment.rb +3 -0
- data/lib/workos/authorization/user_role_assignment_source.rb +22 -0
- data/lib/workos/pipes/connected_account_dto.rb +31 -0
- data/lib/workos/pipes/create_data_integration.rb +34 -0
- data/lib/workos/pipes/custom_provider_definition.rb +49 -0
- data/lib/workos/pipes/data_integration.rb +55 -0
- data/lib/workos/pipes/data_integration_credential.rb +25 -0
- data/lib/workos/pipes/data_integration_credentials_dto.rb +25 -0
- data/lib/workos/pipes/data_integration_credentials_response.rb +25 -0
- data/lib/workos/pipes/data_integration_credentials_response_credential.rb +34 -0
- data/lib/workos/pipes/data_integration_custom_provider.rb +49 -0
- data/lib/workos/pipes/data_integrations_upsert_api_key_request.rb +25 -0
- data/lib/workos/pipes/data_integrations_vend_credentials_request.rb +22 -0
- data/lib/workos/pipes/update_custom_provider_definition.rb +49 -0
- data/lib/workos/pipes/update_data_integration.rb +31 -0
- data/lib/workos/pipes.rb +304 -0
- data/lib/workos/radar/radar_standalone_assess_request.rb +5 -2
- data/lib/workos/radar.rb +5 -2
- data/lib/workos/shared/auth_method_mismatch_error.rb +22 -0
- data/lib/workos/types/audit_log_export_state.rb +2 -1
- data/lib/workos/types/connected_account_state.rb +1 -2
- data/lib/workos/types/create_webhook_endpoint_events.rb +8 -1
- data/lib/workos/types/custom_provider_definition_authenticate_via.rb +13 -0
- data/lib/workos/types/data_integration_credential_type.rb +13 -0
- data/lib/workos/types/data_integration_credentials_response_error.rb +9 -0
- data/lib/workos/types/data_integration_credentials_type.rb +9 -0
- data/lib/workos/types/data_integration_custom_provider_authenticate_via.rb +9 -0
- data/lib/workos/types/data_integration_state.rb +14 -0
- data/lib/workos/types/data_integrations_list_response_data_connected_account_state.rb +6 -1
- data/lib/workos/types/update_custom_provider_definition_authenticate_via.rb +9 -0
- data/lib/workos/types/user_role_assignment_source_type.rb +13 -0
- data/lib/workos/user_management/authorization_code_session_authenticate_request.rb +5 -2
- data/lib/workos/user_management/create_magic_code_and_return.rb +14 -2
- data/lib/workos/user_management/create_user.rb +9 -0
- data/lib/workos/user_management/magic_auth_code_session_authenticate_request.rb +5 -2
- data/lib/workos/user_management/magic_auth_send_magic_auth_code_and_return_response.rb +18 -0
- data/lib/workos/user_management/password_session_authenticate_request.rb +8 -2
- data/lib/workos/user_management/radar_email_challenge_code_session_authenticate_request.rb +43 -0
- data/lib/workos/user_management/radar_sms_challenge_code_session_authenticate_request.rb +46 -0
- data/lib/workos/user_management/send_radar_sms_challenge.rb +31 -0
- data/lib/workos/user_management/send_radar_sms_challenge_response.rb +22 -0
- data/lib/workos/user_management/user_create_response.rb +7 -0
- data/lib/workos/user_management.rb +165 -6
- data/lib/workos/version.rb +1 -1
- data/rbi/workos/admin_portal.rbi +1 -2
- data/rbi/workos/auth_method_mismatch_error.rbi +30 -0
- data/rbi/workos/authorization_code_session_authenticate_request.rbi +6 -0
- data/rbi/workos/connected_account_dto.rbi +48 -0
- data/rbi/workos/create_data_integration.rbi +54 -0
- data/rbi/workos/create_magic_code_and_return.rbi +24 -0
- data/rbi/workos/create_user.rbi +18 -0
- data/rbi/workos/custom_provider_definition.rbi +84 -0
- data/rbi/workos/data_integration.rbi +96 -0
- data/rbi/workos/data_integration_credential.rbi +36 -0
- data/rbi/workos/data_integration_credentials_dto.rbi +36 -0
- data/rbi/workos/data_integration_credentials_response.rbi +36 -0
- data/rbi/workos/data_integration_credentials_response_credential.rbi +54 -0
- data/rbi/workos/data_integration_custom_provider.rbi +84 -0
- data/rbi/workos/data_integrations_upsert_api_key_request.rbi +36 -0
- data/rbi/workos/data_integrations_vend_credentials_request.rbi +30 -0
- data/rbi/workos/generate_link.rbi +0 -6
- data/rbi/workos/magic_auth_code_session_authenticate_request.rbi +6 -0
- data/rbi/workos/magic_auth_send_magic_auth_code_and_return_response.rbi +24 -0
- data/rbi/workos/password_session_authenticate_request.rbi +12 -0
- data/rbi/workos/pipes.rbi +104 -0
- data/rbi/workos/radar.rbi +2 -1
- data/rbi/workos/radar_email_challenge_code_session_authenticate_request.rbi +72 -0
- data/rbi/workos/radar_sms_challenge_code_session_authenticate_request.rbi +78 -0
- data/rbi/workos/radar_standalone_assess_request.rbi +6 -0
- data/rbi/workos/send_radar_sms_challenge.rbi +48 -0
- data/rbi/workos/send_radar_sms_challenge_response.rbi +30 -0
- data/rbi/workos/update_custom_provider_definition.rbi +84 -0
- data/rbi/workos/update_data_integration.rbi +48 -0
- data/rbi/workos/user_create_response.rbi +24 -0
- data/rbi/workos/user_management.rbi +47 -5
- data/rbi/workos/user_role_assignment.rbi +6 -0
- data/rbi/workos/user_role_assignment_source.rbi +30 -0
- data/test/workos/test_admin_portal_model_round_trip.rb +33 -0
- data/test/workos/test_audit_logs_model_round_trip.rb +218 -0
- data/test/workos/test_authorization_model_round_trip.rb +456 -0
- data/test/workos/test_connect_model_round_trip.rb +30 -0
- data/test/workos/test_groups_model_round_trip.rb +33 -0
- data/test/workos/test_model_round_trip.rb +2 -7857
- data/test/workos/test_organizations_model_round_trip.rb +29 -0
- data/test/workos/test_pipes.rb +72 -0
- data/test/workos/test_pipes_model_round_trip.rb +389 -0
- data/test/workos/test_radar_model_round_trip.rb +85 -0
- data/test/workos/test_shared_model_round_trip.rb +92 -0
- data/test/workos/test_user_management.rb +24 -0
- data/test/workos/test_user_management_model_round_trip.rb +1048 -0
- data/test/workos/test_webhooks_model_round_trip.rb +53 -0
- metadata +62 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class CustomProviderDefinition < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
name: :name,
|
|
9
|
+
authorization_url: :authorization_url,
|
|
10
|
+
token_url: :token_url,
|
|
11
|
+
refresh_token_url: :refresh_token_url,
|
|
12
|
+
pkce_enabled: :pkce_enabled,
|
|
13
|
+
request_scope_separator: :request_scope_separator,
|
|
14
|
+
scopes_required: :scopes_required,
|
|
15
|
+
client_secret_required: :client_secret_required,
|
|
16
|
+
additional_authorization_parameters: :additional_authorization_parameters,
|
|
17
|
+
token_body_content_type: :token_body_content_type,
|
|
18
|
+
authenticate_via: :authenticate_via
|
|
19
|
+
}.freeze
|
|
20
|
+
|
|
21
|
+
attr_accessor \
|
|
22
|
+
:name,
|
|
23
|
+
:authorization_url,
|
|
24
|
+
:token_url,
|
|
25
|
+
:refresh_token_url,
|
|
26
|
+
:pkce_enabled,
|
|
27
|
+
:request_scope_separator,
|
|
28
|
+
:scopes_required,
|
|
29
|
+
:client_secret_required,
|
|
30
|
+
:additional_authorization_parameters,
|
|
31
|
+
:token_body_content_type,
|
|
32
|
+
:authenticate_via
|
|
33
|
+
|
|
34
|
+
def initialize(json)
|
|
35
|
+
hash = self.class.normalize(json)
|
|
36
|
+
@name = hash[:name]
|
|
37
|
+
@authorization_url = hash[:authorization_url]
|
|
38
|
+
@token_url = hash[:token_url]
|
|
39
|
+
@refresh_token_url = hash[:refresh_token_url]
|
|
40
|
+
@pkce_enabled = hash[:pkce_enabled]
|
|
41
|
+
@request_scope_separator = hash[:request_scope_separator]
|
|
42
|
+
@scopes_required = hash[:scopes_required]
|
|
43
|
+
@client_secret_required = hash[:client_secret_required]
|
|
44
|
+
@additional_authorization_parameters = hash[:additional_authorization_parameters] || {}
|
|
45
|
+
@token_body_content_type = hash[:token_body_content_type]
|
|
46
|
+
@authenticate_via = hash[:authenticate_via]
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class DataIntegration < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
object: :object,
|
|
9
|
+
id: :id,
|
|
10
|
+
slug: :slug,
|
|
11
|
+
integration_type: :integration_type,
|
|
12
|
+
description: :description,
|
|
13
|
+
enabled: :enabled,
|
|
14
|
+
state: :state,
|
|
15
|
+
scopes: :scopes,
|
|
16
|
+
redirect_uri: :redirect_uri,
|
|
17
|
+
credentials: :credentials,
|
|
18
|
+
custom_provider: :custom_provider,
|
|
19
|
+
created_at: :created_at,
|
|
20
|
+
updated_at: :updated_at
|
|
21
|
+
}.freeze
|
|
22
|
+
|
|
23
|
+
attr_accessor \
|
|
24
|
+
:object,
|
|
25
|
+
:id,
|
|
26
|
+
:slug,
|
|
27
|
+
:integration_type,
|
|
28
|
+
:description,
|
|
29
|
+
:enabled,
|
|
30
|
+
:state,
|
|
31
|
+
:scopes,
|
|
32
|
+
:redirect_uri,
|
|
33
|
+
:credentials,
|
|
34
|
+
:custom_provider,
|
|
35
|
+
:created_at,
|
|
36
|
+
:updated_at
|
|
37
|
+
|
|
38
|
+
def initialize(json)
|
|
39
|
+
hash = self.class.normalize(json)
|
|
40
|
+
@object = hash[:object]
|
|
41
|
+
@id = hash[:id]
|
|
42
|
+
@slug = hash[:slug]
|
|
43
|
+
@integration_type = hash[:integration_type]
|
|
44
|
+
@description = hash[:description]
|
|
45
|
+
@enabled = hash[:enabled]
|
|
46
|
+
@state = hash[:state]
|
|
47
|
+
@scopes = hash[:scopes] || []
|
|
48
|
+
@redirect_uri = hash[:redirect_uri]
|
|
49
|
+
@credentials = hash[:credentials] ? WorkOS::DataIntegrationCredential.new(hash[:credentials]) : nil
|
|
50
|
+
@custom_provider = hash[:custom_provider] ? WorkOS::DataIntegrationCustomProvider.new(hash[:custom_provider]) : nil
|
|
51
|
+
@created_at = hash[:created_at]
|
|
52
|
+
@updated_at = hash[:updated_at]
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class DataIntegrationCredential < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
type: :type,
|
|
9
|
+
client_id: :client_id,
|
|
10
|
+
redacted_client_secret: :redacted_client_secret
|
|
11
|
+
}.freeze
|
|
12
|
+
|
|
13
|
+
attr_accessor \
|
|
14
|
+
:type,
|
|
15
|
+
:client_id,
|
|
16
|
+
:redacted_client_secret
|
|
17
|
+
|
|
18
|
+
def initialize(json)
|
|
19
|
+
hash = self.class.normalize(json)
|
|
20
|
+
@type = hash[:type]
|
|
21
|
+
@client_id = hash[:client_id]
|
|
22
|
+
@redacted_client_secret = hash[:redacted_client_secret]
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class DataIntegrationCredentialsDto < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
type: :type,
|
|
9
|
+
client_id: :client_id,
|
|
10
|
+
client_secret: :client_secret
|
|
11
|
+
}.freeze
|
|
12
|
+
|
|
13
|
+
attr_accessor \
|
|
14
|
+
:type,
|
|
15
|
+
:client_id,
|
|
16
|
+
:client_secret
|
|
17
|
+
|
|
18
|
+
def initialize(json)
|
|
19
|
+
hash = self.class.normalize(json)
|
|
20
|
+
@type = hash[:type]
|
|
21
|
+
@client_id = hash[:client_id]
|
|
22
|
+
@client_secret = hash[:client_secret]
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class DataIntegrationCredentialsResponse < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
active: :active,
|
|
9
|
+
credential: :credential,
|
|
10
|
+
error: :error
|
|
11
|
+
}.freeze
|
|
12
|
+
|
|
13
|
+
attr_accessor \
|
|
14
|
+
:active,
|
|
15
|
+
:credential,
|
|
16
|
+
:error
|
|
17
|
+
|
|
18
|
+
def initialize(json)
|
|
19
|
+
hash = self.class.normalize(json)
|
|
20
|
+
@active = hash[:active]
|
|
21
|
+
@credential = hash[:credential] ? WorkOS::DataIntegrationCredentialsResponseCredential.new(hash[:credential]) : nil
|
|
22
|
+
@error = hash[:error]
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class DataIntegrationCredentialsResponseCredential < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
object: :object,
|
|
9
|
+
auth_method: :auth_method,
|
|
10
|
+
value: :value,
|
|
11
|
+
expires_at: :expires_at,
|
|
12
|
+
scopes: :scopes,
|
|
13
|
+
missing_scopes: :missing_scopes
|
|
14
|
+
}.freeze
|
|
15
|
+
|
|
16
|
+
attr_accessor \
|
|
17
|
+
:object,
|
|
18
|
+
:auth_method,
|
|
19
|
+
:value,
|
|
20
|
+
:expires_at,
|
|
21
|
+
:scopes,
|
|
22
|
+
:missing_scopes
|
|
23
|
+
|
|
24
|
+
def initialize(json)
|
|
25
|
+
hash = self.class.normalize(json)
|
|
26
|
+
@object = hash[:object]
|
|
27
|
+
@auth_method = hash[:auth_method]
|
|
28
|
+
@value = hash[:value]
|
|
29
|
+
@expires_at = hash[:expires_at]
|
|
30
|
+
@scopes = hash[:scopes] || []
|
|
31
|
+
@missing_scopes = hash[:missing_scopes] || []
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class DataIntegrationCustomProvider < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
name: :name,
|
|
9
|
+
authorization_url: :authorization_url,
|
|
10
|
+
token_url: :token_url,
|
|
11
|
+
refresh_token_url: :refresh_token_url,
|
|
12
|
+
pkce_enabled: :pkce_enabled,
|
|
13
|
+
request_scope_separator: :request_scope_separator,
|
|
14
|
+
scopes_required: :scopes_required,
|
|
15
|
+
client_secret_required: :client_secret_required,
|
|
16
|
+
additional_authorization_parameters: :additional_authorization_parameters,
|
|
17
|
+
token_body_content_type: :token_body_content_type,
|
|
18
|
+
authenticate_via: :authenticate_via
|
|
19
|
+
}.freeze
|
|
20
|
+
|
|
21
|
+
attr_accessor \
|
|
22
|
+
:name,
|
|
23
|
+
:authorization_url,
|
|
24
|
+
:token_url,
|
|
25
|
+
:refresh_token_url,
|
|
26
|
+
:pkce_enabled,
|
|
27
|
+
:request_scope_separator,
|
|
28
|
+
:scopes_required,
|
|
29
|
+
:client_secret_required,
|
|
30
|
+
:additional_authorization_parameters,
|
|
31
|
+
:token_body_content_type,
|
|
32
|
+
:authenticate_via
|
|
33
|
+
|
|
34
|
+
def initialize(json)
|
|
35
|
+
hash = self.class.normalize(json)
|
|
36
|
+
@name = hash[:name]
|
|
37
|
+
@authorization_url = hash[:authorization_url]
|
|
38
|
+
@token_url = hash[:token_url]
|
|
39
|
+
@refresh_token_url = hash[:refresh_token_url]
|
|
40
|
+
@pkce_enabled = hash[:pkce_enabled]
|
|
41
|
+
@request_scope_separator = hash[:request_scope_separator]
|
|
42
|
+
@scopes_required = hash[:scopes_required]
|
|
43
|
+
@client_secret_required = hash[:client_secret_required]
|
|
44
|
+
@additional_authorization_parameters = hash[:additional_authorization_parameters] || {}
|
|
45
|
+
@token_body_content_type = hash[:token_body_content_type]
|
|
46
|
+
@authenticate_via = hash[:authenticate_via]
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class DataIntegrationsUpsertApiKeyRequest < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
user_id: :user_id,
|
|
9
|
+
organization_id: :organization_id,
|
|
10
|
+
secret: :secret
|
|
11
|
+
}.freeze
|
|
12
|
+
|
|
13
|
+
attr_accessor \
|
|
14
|
+
:user_id,
|
|
15
|
+
:organization_id,
|
|
16
|
+
:secret
|
|
17
|
+
|
|
18
|
+
def initialize(json)
|
|
19
|
+
hash = self.class.normalize(json)
|
|
20
|
+
@user_id = hash[:user_id]
|
|
21
|
+
@organization_id = hash[:organization_id]
|
|
22
|
+
@secret = hash[:secret]
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class DataIntegrationsVendCredentialsRequest < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
user_id: :user_id,
|
|
9
|
+
organization_id: :organization_id
|
|
10
|
+
}.freeze
|
|
11
|
+
|
|
12
|
+
attr_accessor \
|
|
13
|
+
:user_id,
|
|
14
|
+
:organization_id
|
|
15
|
+
|
|
16
|
+
def initialize(json)
|
|
17
|
+
hash = self.class.normalize(json)
|
|
18
|
+
@user_id = hash[:user_id]
|
|
19
|
+
@organization_id = hash[:organization_id]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class UpdateCustomProviderDefinition < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
name: :name,
|
|
9
|
+
authorization_url: :authorization_url,
|
|
10
|
+
token_url: :token_url,
|
|
11
|
+
refresh_token_url: :refresh_token_url,
|
|
12
|
+
pkce_enabled: :pkce_enabled,
|
|
13
|
+
request_scope_separator: :request_scope_separator,
|
|
14
|
+
scopes_required: :scopes_required,
|
|
15
|
+
client_secret_required: :client_secret_required,
|
|
16
|
+
additional_authorization_parameters: :additional_authorization_parameters,
|
|
17
|
+
token_body_content_type: :token_body_content_type,
|
|
18
|
+
authenticate_via: :authenticate_via
|
|
19
|
+
}.freeze
|
|
20
|
+
|
|
21
|
+
attr_accessor \
|
|
22
|
+
:name,
|
|
23
|
+
:authorization_url,
|
|
24
|
+
:token_url,
|
|
25
|
+
:refresh_token_url,
|
|
26
|
+
:pkce_enabled,
|
|
27
|
+
:request_scope_separator,
|
|
28
|
+
:scopes_required,
|
|
29
|
+
:client_secret_required,
|
|
30
|
+
:additional_authorization_parameters,
|
|
31
|
+
:token_body_content_type,
|
|
32
|
+
:authenticate_via
|
|
33
|
+
|
|
34
|
+
def initialize(json)
|
|
35
|
+
hash = self.class.normalize(json)
|
|
36
|
+
@name = hash[:name]
|
|
37
|
+
@authorization_url = hash[:authorization_url]
|
|
38
|
+
@token_url = hash[:token_url]
|
|
39
|
+
@refresh_token_url = hash[:refresh_token_url]
|
|
40
|
+
@pkce_enabled = hash[:pkce_enabled]
|
|
41
|
+
@request_scope_separator = hash[:request_scope_separator]
|
|
42
|
+
@scopes_required = hash[:scopes_required]
|
|
43
|
+
@client_secret_required = hash[:client_secret_required]
|
|
44
|
+
@additional_authorization_parameters = hash[:additional_authorization_parameters] || {}
|
|
45
|
+
@token_body_content_type = hash[:token_body_content_type]
|
|
46
|
+
@authenticate_via = hash[:authenticate_via]
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
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 UpdateDataIntegration < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
description: :description,
|
|
9
|
+
enabled: :enabled,
|
|
10
|
+
scopes: :scopes,
|
|
11
|
+
credentials: :credentials,
|
|
12
|
+
custom_provider: :custom_provider
|
|
13
|
+
}.freeze
|
|
14
|
+
|
|
15
|
+
attr_accessor \
|
|
16
|
+
:description,
|
|
17
|
+
:enabled,
|
|
18
|
+
:scopes,
|
|
19
|
+
:credentials,
|
|
20
|
+
:custom_provider
|
|
21
|
+
|
|
22
|
+
def initialize(json)
|
|
23
|
+
hash = self.class.normalize(json)
|
|
24
|
+
@description = hash[:description]
|
|
25
|
+
@enabled = hash[:enabled]
|
|
26
|
+
@scopes = hash[:scopes] || []
|
|
27
|
+
@credentials = hash[:credentials] ? WorkOS::DataIntegrationCredentialsDto.new(hash[:credentials]) : nil
|
|
28
|
+
@custom_provider = hash[:custom_provider] ? WorkOS::UpdateCustomProviderDefinition.new(hash[:custom_provider]) : nil
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|