workos 9.3.0 → 9.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/.last-synced-sha +1 -1
- data/.oagen-manifest.json +117 -1
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +139 -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 +43 -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 +61 -0
- data/lib/workos/user_management.rb +261 -9
- 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 +72 -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 +108 -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 +54 -0
- data/test/workos/test_user_management_model_round_trip.rb +1087 -0
- data/test/workos/test_webhooks_model_round_trip.rb +53 -0
- metadata +62 -1
|
@@ -13,7 +13,8 @@ module WorkOS
|
|
|
13
13
|
invitation_token: :invitation_token,
|
|
14
14
|
ip_address: :ip_address,
|
|
15
15
|
device_id: :device_id,
|
|
16
|
-
user_agent: :user_agent
|
|
16
|
+
user_agent: :user_agent,
|
|
17
|
+
radar_auth_attempt_id: :radar_auth_attempt_id
|
|
17
18
|
}.freeze
|
|
18
19
|
|
|
19
20
|
attr_accessor \
|
|
@@ -25,7 +26,8 @@ module WorkOS
|
|
|
25
26
|
:invitation_token,
|
|
26
27
|
:ip_address,
|
|
27
28
|
:device_id,
|
|
28
|
-
:user_agent
|
|
29
|
+
:user_agent,
|
|
30
|
+
:radar_auth_attempt_id
|
|
29
31
|
|
|
30
32
|
def initialize(json)
|
|
31
33
|
hash = self.class.normalize(json)
|
|
@@ -38,6 +40,7 @@ module WorkOS
|
|
|
38
40
|
@ip_address = hash[:ip_address]
|
|
39
41
|
@device_id = hash[:device_id]
|
|
40
42
|
@user_agent = hash[:user_agent]
|
|
43
|
+
@radar_auth_attempt_id = hash[:radar_auth_attempt_id]
|
|
41
44
|
end
|
|
42
45
|
end
|
|
43
46
|
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class MagicAuthSendMagicAuthCodeAndReturnResponse < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
object: :object,
|
|
9
|
+
id: :id,
|
|
10
|
+
user_id: :user_id,
|
|
11
|
+
email: :email,
|
|
12
|
+
expires_at: :expires_at,
|
|
13
|
+
created_at: :created_at,
|
|
14
|
+
updated_at: :updated_at,
|
|
15
|
+
code: :code,
|
|
16
|
+
radar_auth_attempt_id: :radar_auth_attempt_id
|
|
17
|
+
}.freeze
|
|
18
|
+
|
|
19
|
+
attr_accessor \
|
|
20
|
+
:object,
|
|
21
|
+
:id,
|
|
22
|
+
:user_id,
|
|
23
|
+
:email,
|
|
24
|
+
:expires_at,
|
|
25
|
+
:created_at,
|
|
26
|
+
:updated_at,
|
|
27
|
+
:code,
|
|
28
|
+
:radar_auth_attempt_id
|
|
29
|
+
|
|
30
|
+
def initialize(json)
|
|
31
|
+
hash = self.class.normalize(json)
|
|
32
|
+
@object = hash[:object]
|
|
33
|
+
@id = hash[:id]
|
|
34
|
+
@user_id = hash[:user_id]
|
|
35
|
+
@email = hash[:email]
|
|
36
|
+
@expires_at = hash[:expires_at]
|
|
37
|
+
@created_at = hash[:created_at]
|
|
38
|
+
@updated_at = hash[:updated_at]
|
|
39
|
+
@code = hash[:code]
|
|
40
|
+
@radar_auth_attempt_id = hash[:radar_auth_attempt_id]
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -13,7 +13,9 @@ module WorkOS
|
|
|
13
13
|
invitation_token: :invitation_token,
|
|
14
14
|
ip_address: :ip_address,
|
|
15
15
|
device_id: :device_id,
|
|
16
|
-
user_agent: :user_agent
|
|
16
|
+
user_agent: :user_agent,
|
|
17
|
+
signals_id: :signals_id,
|
|
18
|
+
radar_auth_attempt_id: :radar_auth_attempt_id
|
|
17
19
|
}.freeze
|
|
18
20
|
|
|
19
21
|
attr_accessor \
|
|
@@ -25,7 +27,9 @@ module WorkOS
|
|
|
25
27
|
:invitation_token,
|
|
26
28
|
:ip_address,
|
|
27
29
|
:device_id,
|
|
28
|
-
:user_agent
|
|
30
|
+
:user_agent,
|
|
31
|
+
:signals_id,
|
|
32
|
+
:radar_auth_attempt_id
|
|
29
33
|
|
|
30
34
|
def initialize(json)
|
|
31
35
|
hash = self.class.normalize(json)
|
|
@@ -38,6 +42,8 @@ module WorkOS
|
|
|
38
42
|
@ip_address = hash[:ip_address]
|
|
39
43
|
@device_id = hash[:device_id]
|
|
40
44
|
@user_agent = hash[:user_agent]
|
|
45
|
+
@signals_id = hash[:signals_id]
|
|
46
|
+
@radar_auth_attempt_id = hash[:radar_auth_attempt_id]
|
|
41
47
|
end
|
|
42
48
|
end
|
|
43
49
|
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class RadarEmailChallengeCodeSessionAuthenticateRequest < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
client_id: :client_id,
|
|
9
|
+
client_secret: :client_secret,
|
|
10
|
+
grant_type: :grant_type,
|
|
11
|
+
code: :code,
|
|
12
|
+
radar_challenge_id: :radar_challenge_id,
|
|
13
|
+
pending_authentication_token: :pending_authentication_token,
|
|
14
|
+
ip_address: :ip_address,
|
|
15
|
+
device_id: :device_id,
|
|
16
|
+
user_agent: :user_agent
|
|
17
|
+
}.freeze
|
|
18
|
+
|
|
19
|
+
attr_accessor \
|
|
20
|
+
:client_id,
|
|
21
|
+
:client_secret,
|
|
22
|
+
:grant_type,
|
|
23
|
+
:code,
|
|
24
|
+
:radar_challenge_id,
|
|
25
|
+
:pending_authentication_token,
|
|
26
|
+
:ip_address,
|
|
27
|
+
:device_id,
|
|
28
|
+
:user_agent
|
|
29
|
+
|
|
30
|
+
def initialize(json)
|
|
31
|
+
hash = self.class.normalize(json)
|
|
32
|
+
@client_id = hash[:client_id]
|
|
33
|
+
@client_secret = hash[:client_secret]
|
|
34
|
+
@grant_type = hash[:grant_type]
|
|
35
|
+
@code = hash[:code]
|
|
36
|
+
@radar_challenge_id = hash[:radar_challenge_id]
|
|
37
|
+
@pending_authentication_token = hash[:pending_authentication_token]
|
|
38
|
+
@ip_address = hash[:ip_address]
|
|
39
|
+
@device_id = hash[:device_id]
|
|
40
|
+
@user_agent = hash[:user_agent]
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class RadarSmsChallengeCodeSessionAuthenticateRequest < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
client_id: :client_id,
|
|
9
|
+
client_secret: :client_secret,
|
|
10
|
+
grant_type: :grant_type,
|
|
11
|
+
code: :code,
|
|
12
|
+
verification_id: :verification_id,
|
|
13
|
+
phone_number: :phone_number,
|
|
14
|
+
pending_authentication_token: :pending_authentication_token,
|
|
15
|
+
ip_address: :ip_address,
|
|
16
|
+
device_id: :device_id,
|
|
17
|
+
user_agent: :user_agent
|
|
18
|
+
}.freeze
|
|
19
|
+
|
|
20
|
+
attr_accessor \
|
|
21
|
+
:client_id,
|
|
22
|
+
:client_secret,
|
|
23
|
+
:grant_type,
|
|
24
|
+
:code,
|
|
25
|
+
:verification_id,
|
|
26
|
+
:phone_number,
|
|
27
|
+
:pending_authentication_token,
|
|
28
|
+
:ip_address,
|
|
29
|
+
:device_id,
|
|
30
|
+
:user_agent
|
|
31
|
+
|
|
32
|
+
def initialize(json)
|
|
33
|
+
hash = self.class.normalize(json)
|
|
34
|
+
@client_id = hash[:client_id]
|
|
35
|
+
@client_secret = hash[:client_secret]
|
|
36
|
+
@grant_type = hash[:grant_type]
|
|
37
|
+
@code = hash[:code]
|
|
38
|
+
@verification_id = hash[:verification_id]
|
|
39
|
+
@phone_number = hash[:phone_number]
|
|
40
|
+
@pending_authentication_token = hash[:pending_authentication_token]
|
|
41
|
+
@ip_address = hash[:ip_address]
|
|
42
|
+
@device_id = hash[:device_id]
|
|
43
|
+
@user_agent = hash[:user_agent]
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
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 SendRadarSmsChallenge < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
user_id: :user_id,
|
|
9
|
+
pending_authentication_token: :pending_authentication_token,
|
|
10
|
+
phone_number: :phone_number,
|
|
11
|
+
ip_address: :ip_address,
|
|
12
|
+
user_agent: :user_agent
|
|
13
|
+
}.freeze
|
|
14
|
+
|
|
15
|
+
attr_accessor \
|
|
16
|
+
:user_id,
|
|
17
|
+
:pending_authentication_token,
|
|
18
|
+
:phone_number,
|
|
19
|
+
:ip_address,
|
|
20
|
+
:user_agent
|
|
21
|
+
|
|
22
|
+
def initialize(json)
|
|
23
|
+
hash = self.class.normalize(json)
|
|
24
|
+
@user_id = hash[:user_id]
|
|
25
|
+
@pending_authentication_token = hash[:pending_authentication_token]
|
|
26
|
+
@phone_number = hash[:phone_number]
|
|
27
|
+
@ip_address = hash[:ip_address]
|
|
28
|
+
@user_agent = hash[:user_agent]
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
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 SendRadarSmsChallengeResponse < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
verification_id: :verification_id,
|
|
9
|
+
phone_number: :phone_number
|
|
10
|
+
}.freeze
|
|
11
|
+
|
|
12
|
+
attr_accessor \
|
|
13
|
+
:verification_id,
|
|
14
|
+
:phone_number
|
|
15
|
+
|
|
16
|
+
def initialize(json)
|
|
17
|
+
hash = self.class.normalize(json)
|
|
18
|
+
@verification_id = hash[:verification_id]
|
|
19
|
+
@phone_number = hash[:phone_number]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class UserCreateResponse < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
object: :object,
|
|
9
|
+
id: :id,
|
|
10
|
+
first_name: :first_name,
|
|
11
|
+
last_name: :last_name,
|
|
12
|
+
name: :name,
|
|
13
|
+
profile_picture_url: :profile_picture_url,
|
|
14
|
+
email: :email,
|
|
15
|
+
email_verified: :email_verified,
|
|
16
|
+
external_id: :external_id,
|
|
17
|
+
metadata: :metadata,
|
|
18
|
+
last_sign_in_at: :last_sign_in_at,
|
|
19
|
+
locale: :locale,
|
|
20
|
+
created_at: :created_at,
|
|
21
|
+
updated_at: :updated_at,
|
|
22
|
+
radar_auth_attempt_id: :radar_auth_attempt_id
|
|
23
|
+
}.freeze
|
|
24
|
+
|
|
25
|
+
attr_accessor \
|
|
26
|
+
:object,
|
|
27
|
+
:id,
|
|
28
|
+
:first_name,
|
|
29
|
+
:last_name,
|
|
30
|
+
:name,
|
|
31
|
+
:profile_picture_url,
|
|
32
|
+
:email,
|
|
33
|
+
:email_verified,
|
|
34
|
+
:external_id,
|
|
35
|
+
:metadata,
|
|
36
|
+
:last_sign_in_at,
|
|
37
|
+
:locale,
|
|
38
|
+
:created_at,
|
|
39
|
+
:updated_at,
|
|
40
|
+
:radar_auth_attempt_id
|
|
41
|
+
|
|
42
|
+
def initialize(json)
|
|
43
|
+
hash = self.class.normalize(json)
|
|
44
|
+
@object = hash[:object]
|
|
45
|
+
@id = hash[:id]
|
|
46
|
+
@first_name = hash[:first_name]
|
|
47
|
+
@last_name = hash[:last_name]
|
|
48
|
+
@name = hash[:name]
|
|
49
|
+
@profile_picture_url = hash[:profile_picture_url]
|
|
50
|
+
@email = hash[:email]
|
|
51
|
+
@email_verified = hash[:email_verified]
|
|
52
|
+
@external_id = hash[:external_id]
|
|
53
|
+
@metadata = hash[:metadata] || {}
|
|
54
|
+
@last_sign_in_at = hash[:last_sign_in_at]
|
|
55
|
+
@locale = hash[:locale]
|
|
56
|
+
@created_at = hash[:created_at]
|
|
57
|
+
@updated_at = hash[:updated_at]
|
|
58
|
+
@radar_auth_attempt_id = hash[:radar_auth_attempt_id]
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|