workos 7.0.0 → 7.1.1
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/lint.yml +1 -1
- data/.github/workflows/release-please.yml +30 -2
- data/.github/workflows/release.yml +1 -1
- data/.last-synced-sha +1 -0
- data/.oagen-manifest.json +739 -4
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +23 -0
- data/Gemfile.lock +2 -2
- data/README.md +0 -1
- data/lib/workos/admin_portal/domain_verification_intent_options.rb +18 -0
- data/lib/workos/admin_portal/generate_link.rb +3 -3
- data/lib/workos/admin_portal/intent_options.rb +6 -2
- data/lib/workos/admin_portal.rb +3 -3
- data/lib/workos/authorization.rb +61 -67
- data/lib/workos/client.rb +8 -0
- data/lib/workos/directory_sync/directory_user_with_groups.rb +10 -2
- data/lib/workos/groups/create_group.rb +22 -0
- data/lib/workos/groups/create_group_membership.rb +18 -0
- data/lib/workos/groups/update_group.rb +7 -0
- data/lib/workos/groups.rb +256 -0
- data/lib/workos/session.rb +16 -5
- data/lib/workos/shared/waitlist_user.rb +37 -0
- data/lib/workos/shared/waitlist_user_approved.rb +34 -0
- data/lib/workos/shared/waitlist_user_created.rb +34 -0
- data/lib/workos/shared/waitlist_user_denied.rb +34 -0
- data/lib/workos/types/create_webhook_endpoint_events.rb +4 -1
- data/lib/workos/types/groups_order.rb +9 -0
- data/lib/workos/types/sso_provider.rb +10 -1
- data/lib/workos/types/user_management_authentication_provider.rb +10 -1
- data/lib/workos/types/user_management_organization_membership_groups_order.rb +9 -0
- data/lib/workos/types/waitlist_user_state.rb +14 -0
- data/lib/workos/user_management/invitation.rb +3 -0
- data/lib/workos/user_management/invitation_accepted_data.rb +3 -0
- data/lib/workos/user_management/invitation_created_data.rb +3 -0
- data/lib/workos/user_management/invitation_resent_data.rb +3 -0
- data/lib/workos/user_management/invitation_revoked_data.rb +3 -0
- data/lib/workos/user_management/user_invite.rb +3 -0
- data/lib/workos/user_management.rb +32 -40
- data/lib/workos/user_management_organization_membership_groups.rb +60 -0
- data/lib/workos/version.rb +1 -1
- data/lib/workos.rb +4 -0
- data/rbi/workos/admin_portal.rbi +2 -2
- data/rbi/workos/authorization.rbi +13 -12
- data/rbi/workos/client.rbi +6 -0
- data/rbi/workos/create_group.rbi +30 -0
- data/rbi/workos/create_group_membership.rbi +24 -0
- data/rbi/workos/domain_verification_intent_options.rbi +24 -0
- data/rbi/workos/generate_link.rbi +2 -2
- data/rbi/workos/groups.rbi +97 -0
- data/rbi/workos/intent_options.rbi +8 -2
- data/rbi/workos/invitation.rbi +6 -0
- data/rbi/workos/invitation_accepted_data.rbi +6 -0
- data/rbi/workos/invitation_created_data.rbi +6 -0
- data/rbi/workos/invitation_resent_data.rbi +6 -0
- data/rbi/workos/invitation_revoked_data.rbi +6 -0
- data/rbi/workos/update_group.rbi +30 -0
- data/rbi/workos/user_invite.rbi +6 -0
- data/rbi/workos/user_management_organization_membership_groups.rbi +25 -0
- data/rbi/workos/waitlist_user.rbi +60 -0
- data/rbi/workos/waitlist_user_approved.rbi +54 -0
- data/rbi/workos/waitlist_user_created.rbi +54 -0
- data/rbi/workos/waitlist_user_denied.rbi +54 -0
- data/test/workos/test_authorization.rb +33 -33
- data/test/workos/test_groups.rb +89 -0
- data/test/workos/test_model_round_trip.rb +153 -24
- data/test/workos/test_session.rb +125 -0
- data/test/workos/test_user_management_organization_membership_groups.rb +33 -0
- metadata +29 -8
- data/lib/workos/user_management/urn_ietf_params_oauth_grant_type_device_code_session_authenticate_request.rb +0 -8
- data/lib/workos/user_management/urn_workos_oauth_grant_type_email_verification_code_session_authenticate_request.rb +0 -8
- data/lib/workos/user_management/urn_workos_oauth_grant_type_magic_auth_code_session_authenticate_request.rb +0 -8
- data/lib/workos/user_management/urn_workos_oauth_grant_type_mfa_totp_session_authenticate_request.rb +0 -8
- data/lib/workos/user_management/urn_workos_oauth_grant_type_organization_selection_session_authenticate_request.rb +0 -8
- /data/lib/workos/{shared → groups}/group.rb +0 -0
|
@@ -15,6 +15,7 @@ module WorkOS
|
|
|
15
15
|
organization_id: :organization_id,
|
|
16
16
|
inviter_user_id: :inviter_user_id,
|
|
17
17
|
accepted_user_id: :accepted_user_id,
|
|
18
|
+
role_slug: :role_slug,
|
|
18
19
|
created_at: :created_at,
|
|
19
20
|
updated_at: :updated_at,
|
|
20
21
|
token: :token,
|
|
@@ -32,6 +33,7 @@ module WorkOS
|
|
|
32
33
|
:organization_id,
|
|
33
34
|
:inviter_user_id,
|
|
34
35
|
:accepted_user_id,
|
|
36
|
+
:role_slug,
|
|
35
37
|
:created_at,
|
|
36
38
|
:updated_at,
|
|
37
39
|
:token,
|
|
@@ -49,6 +51,7 @@ module WorkOS
|
|
|
49
51
|
@organization_id = hash[:organization_id]
|
|
50
52
|
@inviter_user_id = hash[:inviter_user_id]
|
|
51
53
|
@accepted_user_id = hash[:accepted_user_id]
|
|
54
|
+
@role_slug = hash[:role_slug]
|
|
52
55
|
@created_at = hash[:created_at]
|
|
53
56
|
@updated_at = hash[:updated_at]
|
|
54
57
|
@token = hash[:token]
|
|
@@ -630,16 +630,6 @@ module WorkOS
|
|
|
630
630
|
password_hash_type: nil,
|
|
631
631
|
request_options: {}
|
|
632
632
|
)
|
|
633
|
-
params = {}.compact
|
|
634
|
-
if password
|
|
635
|
-
case password[:type]
|
|
636
|
-
when "plaintext"
|
|
637
|
-
params["password"] = password[:password]
|
|
638
|
-
when "hashed"
|
|
639
|
-
params["password_hash"] = password[:password_hash]
|
|
640
|
-
params["password_hash_type"] = password[:password_hash_type]
|
|
641
|
-
end
|
|
642
|
-
end
|
|
643
633
|
body = {
|
|
644
634
|
"email" => email,
|
|
645
635
|
"first_name" => first_name,
|
|
@@ -651,11 +641,19 @@ module WorkOS
|
|
|
651
641
|
"password_hash" => password_hash,
|
|
652
642
|
"password_hash_type" => password_hash_type
|
|
653
643
|
}.compact
|
|
644
|
+
if password
|
|
645
|
+
case password[:type]
|
|
646
|
+
when "plaintext"
|
|
647
|
+
body["password"] = password[:password]
|
|
648
|
+
when "hashed"
|
|
649
|
+
body["password_hash"] = password[:password_hash]
|
|
650
|
+
body["password_hash_type"] = password[:password_hash_type]
|
|
651
|
+
end
|
|
652
|
+
end
|
|
654
653
|
response = @client.request(
|
|
655
654
|
method: :post,
|
|
656
655
|
path: "/user_management/users",
|
|
657
656
|
auth: true,
|
|
658
|
-
params: params,
|
|
659
657
|
body: body,
|
|
660
658
|
request_options: request_options
|
|
661
659
|
)
|
|
@@ -730,16 +728,6 @@ module WorkOS
|
|
|
730
728
|
password_hash_type: nil,
|
|
731
729
|
request_options: {}
|
|
732
730
|
)
|
|
733
|
-
params = {}.compact
|
|
734
|
-
if password
|
|
735
|
-
case password[:type]
|
|
736
|
-
when "plaintext"
|
|
737
|
-
params["password"] = password[:password]
|
|
738
|
-
when "hashed"
|
|
739
|
-
params["password_hash"] = password[:password_hash]
|
|
740
|
-
params["password_hash_type"] = password[:password_hash_type]
|
|
741
|
-
end
|
|
742
|
-
end
|
|
743
731
|
body = {
|
|
744
732
|
"email" => email,
|
|
745
733
|
"first_name" => first_name,
|
|
@@ -752,11 +740,19 @@ module WorkOS
|
|
|
752
740
|
"password_hash" => password_hash,
|
|
753
741
|
"password_hash_type" => password_hash_type
|
|
754
742
|
}.compact
|
|
743
|
+
if password
|
|
744
|
+
case password[:type]
|
|
745
|
+
when "plaintext"
|
|
746
|
+
body["password"] = password[:password]
|
|
747
|
+
when "hashed"
|
|
748
|
+
body["password_hash"] = password[:password_hash]
|
|
749
|
+
body["password_hash_type"] = password[:password_hash_type]
|
|
750
|
+
end
|
|
751
|
+
end
|
|
755
752
|
response = @client.request(
|
|
756
753
|
method: :put,
|
|
757
754
|
path: "/user_management/users/#{WorkOS::Util.encode_path(id)}",
|
|
758
755
|
auth: true,
|
|
759
|
-
params: params,
|
|
760
756
|
body: body,
|
|
761
757
|
request_options: request_options
|
|
762
758
|
)
|
|
@@ -1271,26 +1267,24 @@ module WorkOS
|
|
|
1271
1267
|
role: nil,
|
|
1272
1268
|
request_options: {}
|
|
1273
1269
|
)
|
|
1274
|
-
params = {}.compact
|
|
1275
|
-
if role
|
|
1276
|
-
case role[:type]
|
|
1277
|
-
when "single"
|
|
1278
|
-
params["role_slug"] = role[:role_slug]
|
|
1279
|
-
when "multiple"
|
|
1280
|
-
params["role_slugs"] = role[:role_slugs]
|
|
1281
|
-
end
|
|
1282
|
-
end
|
|
1283
1270
|
body = {
|
|
1284
1271
|
"user_id" => user_id,
|
|
1285
1272
|
"organization_id" => organization_id,
|
|
1286
1273
|
"role_slug" => role_slug,
|
|
1287
1274
|
"role_slugs" => role_slugs
|
|
1288
1275
|
}.compact
|
|
1276
|
+
if role
|
|
1277
|
+
case role[:type]
|
|
1278
|
+
when "single"
|
|
1279
|
+
body["role_slug"] = role[:role_slug]
|
|
1280
|
+
when "multiple"
|
|
1281
|
+
body["role_slugs"] = role[:role_slugs]
|
|
1282
|
+
end
|
|
1283
|
+
end
|
|
1289
1284
|
response = @client.request(
|
|
1290
1285
|
method: :post,
|
|
1291
1286
|
path: "/user_management/organization_memberships",
|
|
1292
1287
|
auth: true,
|
|
1293
|
-
params: params,
|
|
1294
1288
|
body: body,
|
|
1295
1289
|
request_options: request_options
|
|
1296
1290
|
)
|
|
@@ -1331,24 +1325,22 @@ module WorkOS
|
|
|
1331
1325
|
role: nil,
|
|
1332
1326
|
request_options: {}
|
|
1333
1327
|
)
|
|
1334
|
-
|
|
1328
|
+
body = {
|
|
1329
|
+
"role_slug" => role_slug,
|
|
1330
|
+
"role_slugs" => role_slugs
|
|
1331
|
+
}.compact
|
|
1335
1332
|
if role
|
|
1336
1333
|
case role[:type]
|
|
1337
1334
|
when "single"
|
|
1338
|
-
|
|
1335
|
+
body["role_slug"] = role[:role_slug]
|
|
1339
1336
|
when "multiple"
|
|
1340
|
-
|
|
1337
|
+
body["role_slugs"] = role[:role_slugs]
|
|
1341
1338
|
end
|
|
1342
1339
|
end
|
|
1343
|
-
body = {
|
|
1344
|
-
"role_slug" => role_slug,
|
|
1345
|
-
"role_slugs" => role_slugs
|
|
1346
|
-
}.compact
|
|
1347
1340
|
response = @client.request(
|
|
1348
1341
|
method: :put,
|
|
1349
1342
|
path: "/user_management/organization_memberships/#{WorkOS::Util.encode_path(id)}",
|
|
1350
1343
|
auth: true,
|
|
1351
|
-
params: params,
|
|
1352
1344
|
body: body,
|
|
1353
1345
|
request_options: request_options
|
|
1354
1346
|
)
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
require "json"
|
|
6
|
+
|
|
7
|
+
module WorkOS
|
|
8
|
+
class UserManagementOrganizationMembershipGroups
|
|
9
|
+
def initialize(client)
|
|
10
|
+
@client = client
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
# List groups
|
|
14
|
+
# @param om_id [String] Unique identifier of the Organization Membership.
|
|
15
|
+
# @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
|
|
16
|
+
# @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
|
|
17
|
+
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
18
|
+
# @param order [WorkOS::Types::UserManagementOrganizationMembershipGroupsOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending.
|
|
19
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
20
|
+
# @return [WorkOS::Types::ListStruct<WorkOS::Group>]
|
|
21
|
+
def list_organization_membership_groups(
|
|
22
|
+
om_id:,
|
|
23
|
+
before: nil,
|
|
24
|
+
after: nil,
|
|
25
|
+
limit: nil,
|
|
26
|
+
order: "desc",
|
|
27
|
+
request_options: {}
|
|
28
|
+
)
|
|
29
|
+
params = {
|
|
30
|
+
"before" => before,
|
|
31
|
+
"after" => after,
|
|
32
|
+
"limit" => limit,
|
|
33
|
+
"order" => order
|
|
34
|
+
}.compact
|
|
35
|
+
response = @client.request(
|
|
36
|
+
method: :get,
|
|
37
|
+
path: "/user_management/organization_memberships/#{WorkOS::Util.encode_path(om_id)}/groups",
|
|
38
|
+
auth: true,
|
|
39
|
+
params: params,
|
|
40
|
+
request_options: request_options
|
|
41
|
+
)
|
|
42
|
+
fetch_next = ->(cursor) {
|
|
43
|
+
list_organization_membership_groups(
|
|
44
|
+
om_id: om_id,
|
|
45
|
+
before: before,
|
|
46
|
+
after: cursor,
|
|
47
|
+
limit: limit,
|
|
48
|
+
order: order,
|
|
49
|
+
request_options: request_options
|
|
50
|
+
)
|
|
51
|
+
}
|
|
52
|
+
WorkOS::Types::ListStruct.from_response(
|
|
53
|
+
response,
|
|
54
|
+
model: WorkOS::Group,
|
|
55
|
+
filters: {om_id: om_id, before: before, limit: limit, order: order},
|
|
56
|
+
fetch_next: fetch_next
|
|
57
|
+
)
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
data/lib/workos/version.rb
CHANGED
data/lib/workos.rb
CHANGED
|
@@ -18,6 +18,7 @@ loader.collapse("#{__dir__}/workos/connect")
|
|
|
18
18
|
loader.collapse("#{__dir__}/workos/directory_sync")
|
|
19
19
|
loader.collapse("#{__dir__}/workos/events")
|
|
20
20
|
loader.collapse("#{__dir__}/workos/feature_flags")
|
|
21
|
+
loader.collapse("#{__dir__}/workos/groups")
|
|
21
22
|
loader.collapse("#{__dir__}/workos/multi_factor_auth")
|
|
22
23
|
loader.collapse("#{__dir__}/workos/organization_domains")
|
|
23
24
|
loader.collapse("#{__dir__}/workos/organizations")
|
|
@@ -30,6 +31,9 @@ loader.collapse("#{__dir__}/workos/vault")
|
|
|
30
31
|
loader.collapse("#{__dir__}/workos/webhooks")
|
|
31
32
|
loader.collapse("#{__dir__}/workos/widgets")
|
|
32
33
|
loader.ignore("#{__dir__}/workos/errors.rb")
|
|
34
|
+
loader.ignore("#{__dir__}/workos/inflections.rb")
|
|
35
|
+
loader.ignore("#{__dir__}/workos/configuration.rb")
|
|
33
36
|
loader.setup
|
|
34
37
|
|
|
35
38
|
require "workos/errors"
|
|
39
|
+
require "workos/configuration"
|
data/rbi/workos/admin_portal.rbi
CHANGED
|
@@ -16,11 +16,11 @@ module WorkOS
|
|
|
16
16
|
success_url: T.nilable(String),
|
|
17
17
|
intent: T.nilable(String),
|
|
18
18
|
intent_options: T.nilable(WorkOS::IntentOptions),
|
|
19
|
-
|
|
19
|
+
it_contact_emails: T.nilable(T::Array[String]),
|
|
20
20
|
request_options: T::Hash[Symbol, T.untyped]
|
|
21
21
|
).returns(WorkOS::PortalLinkResponse)
|
|
22
22
|
end
|
|
23
|
-
def generate_link(organization:, return_url:, success_url:, intent:, intent_options:,
|
|
23
|
+
def generate_link(organization:, return_url:, success_url:, intent:, intent_options:, it_contact_emails:, request_options:); end
|
|
24
24
|
|
|
25
25
|
end
|
|
26
26
|
end
|
|
@@ -32,7 +32,7 @@ module WorkOS
|
|
|
32
32
|
request_options: T::Hash[Symbol, T.untyped]
|
|
33
33
|
).returns(WorkOS::Types::ListStruct)
|
|
34
34
|
end
|
|
35
|
-
def
|
|
35
|
+
def list_resources_for_membership(organization_membership_id:, permission_slug:, before:, after:, limit:, order:, request_options:); end
|
|
36
36
|
|
|
37
37
|
sig do
|
|
38
38
|
params(
|
|
@@ -45,7 +45,7 @@ module WorkOS
|
|
|
45
45
|
request_options: T::Hash[Symbol, T.untyped]
|
|
46
46
|
).returns(WorkOS::Types::ListStruct)
|
|
47
47
|
end
|
|
48
|
-
def
|
|
48
|
+
def list_effective_permissions(organization_membership_id:, resource_id:, before:, after:, limit:, order:, request_options:); end
|
|
49
49
|
|
|
50
50
|
sig do
|
|
51
51
|
params(
|
|
@@ -71,7 +71,7 @@ module WorkOS
|
|
|
71
71
|
request_options: T::Hash[Symbol, T.untyped]
|
|
72
72
|
).returns(WorkOS::Types::ListStruct)
|
|
73
73
|
end
|
|
74
|
-
def
|
|
74
|
+
def list_role_assignments(organization_membership_id:, before:, after:, limit:, order:, request_options:); end
|
|
75
75
|
|
|
76
76
|
sig do
|
|
77
77
|
params(
|
|
@@ -104,7 +104,7 @@ module WorkOS
|
|
|
104
104
|
request_options: T::Hash[Symbol, T.untyped]
|
|
105
105
|
).returns(NilClass)
|
|
106
106
|
end
|
|
107
|
-
def
|
|
107
|
+
def remove_role_assignment(organization_membership_id:, role_assignment_id:, request_options:); end
|
|
108
108
|
|
|
109
109
|
sig do
|
|
110
110
|
params(
|
|
@@ -162,7 +162,7 @@ module WorkOS
|
|
|
162
162
|
request_options: T::Hash[Symbol, T.untyped]
|
|
163
163
|
).returns(WorkOS::Role)
|
|
164
164
|
end
|
|
165
|
-
def
|
|
165
|
+
def add_organization_role_permission(organization_id:, slug:, request_options:); end
|
|
166
166
|
|
|
167
167
|
sig do
|
|
168
168
|
params(
|
|
@@ -172,7 +172,7 @@ module WorkOS
|
|
|
172
172
|
request_options: T::Hash[Symbol, T.untyped]
|
|
173
173
|
).returns(WorkOS::Role)
|
|
174
174
|
end
|
|
175
|
-
def
|
|
175
|
+
def set_organization_role_permissions(organization_id:, slug:, permissions:, request_options:); end
|
|
176
176
|
|
|
177
177
|
sig do
|
|
178
178
|
params(
|
|
@@ -182,7 +182,7 @@ module WorkOS
|
|
|
182
182
|
request_options: T::Hash[Symbol, T.untyped]
|
|
183
183
|
).returns(WorkOS::Role)
|
|
184
184
|
end
|
|
185
|
-
def
|
|
185
|
+
def remove_organization_role_permission(organization_id:, slug:, permission_slug:, request_options:); end
|
|
186
186
|
|
|
187
187
|
sig do
|
|
188
188
|
params(
|
|
@@ -192,7 +192,7 @@ module WorkOS
|
|
|
192
192
|
request_options: T::Hash[Symbol, T.untyped]
|
|
193
193
|
).returns(WorkOS::AuthorizationResource)
|
|
194
194
|
end
|
|
195
|
-
def
|
|
195
|
+
def get_resource_by_external_id(organization_id:, resource_type_slug:, external_id:, request_options:); end
|
|
196
196
|
|
|
197
197
|
sig do
|
|
198
198
|
params(
|
|
@@ -207,7 +207,7 @@ module WorkOS
|
|
|
207
207
|
request_options: T::Hash[Symbol, T.untyped]
|
|
208
208
|
).returns(WorkOS::AuthorizationResource)
|
|
209
209
|
end
|
|
210
|
-
def
|
|
210
|
+
def update_resource_by_external_id(organization_id:, resource_type_slug:, external_id:, name:, description:, parent_resource_id:, parent_resource_external_id:, parent_resource_type_slug:, request_options:); end
|
|
211
211
|
|
|
212
212
|
sig do
|
|
213
213
|
params(
|
|
@@ -218,7 +218,7 @@ module WorkOS
|
|
|
218
218
|
request_options: T::Hash[Symbol, T.untyped]
|
|
219
219
|
).returns(NilClass)
|
|
220
220
|
end
|
|
221
|
-
def
|
|
221
|
+
def delete_resource_by_external_id(organization_id:, resource_type_slug:, external_id:, cascade_delete:, request_options:); end
|
|
222
222
|
|
|
223
223
|
sig do
|
|
224
224
|
params(
|
|
@@ -234,7 +234,7 @@ module WorkOS
|
|
|
234
234
|
request_options: T::Hash[Symbol, T.untyped]
|
|
235
235
|
).returns(WorkOS::Types::ListStruct)
|
|
236
236
|
end
|
|
237
|
-
def
|
|
237
|
+
def list_memberships_for_resource_by_external_id(organization_id:, resource_type_slug:, external_id:, permission_slug:, before:, after:, limit:, order:, assignment:, request_options:); end
|
|
238
238
|
|
|
239
239
|
sig do
|
|
240
240
|
params(
|
|
@@ -244,11 +244,12 @@ module WorkOS
|
|
|
244
244
|
order: T.nilable(String),
|
|
245
245
|
organization_id: T.nilable(String),
|
|
246
246
|
resource_type_slug: T.nilable(String),
|
|
247
|
+
resource_external_id: T.nilable(String),
|
|
247
248
|
search: T.nilable(String),
|
|
248
249
|
request_options: T::Hash[Symbol, T.untyped]
|
|
249
250
|
).returns(WorkOS::Types::ListStruct)
|
|
250
251
|
end
|
|
251
|
-
def list_resources(before:, after:, limit:, order:, organization_id:, resource_type_slug:, search:, request_options:); end
|
|
252
|
+
def list_resources(before:, after:, limit:, order:, organization_id:, resource_type_slug:, resource_external_id:, search:, request_options:); end
|
|
252
253
|
|
|
253
254
|
sig do
|
|
254
255
|
params(
|
data/rbi/workos/client.rbi
CHANGED
|
@@ -42,6 +42,9 @@ module WorkOS
|
|
|
42
42
|
sig { returns(WorkOS::AuditLogs) }
|
|
43
43
|
def audit_logs; end
|
|
44
44
|
|
|
45
|
+
sig { returns(WorkOS::Groups) }
|
|
46
|
+
def groups; end
|
|
47
|
+
|
|
45
48
|
sig { returns(WorkOS::AdminPortal) }
|
|
46
49
|
def admin_portal; end
|
|
47
50
|
|
|
@@ -51,6 +54,9 @@ module WorkOS
|
|
|
51
54
|
sig { returns(WorkOS::UserManagement) }
|
|
52
55
|
def user_management; end
|
|
53
56
|
|
|
57
|
+
sig { returns(WorkOS::UserManagementOrganizationMembershipGroups) }
|
|
58
|
+
def user_management_organization_membership_groups; end
|
|
59
|
+
|
|
54
60
|
sig { returns(WorkOS::Webhooks) }
|
|
55
61
|
def webhooks; end
|
|
56
62
|
|
|
@@ -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 CreateGroup
|
|
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 name; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: String).returns(String) }
|
|
16
|
+
def name=(value); end
|
|
17
|
+
|
|
18
|
+
sig { returns(T.nilable(String)) }
|
|
19
|
+
def description; end
|
|
20
|
+
|
|
21
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
22
|
+
def description=(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
|
|
@@ -0,0 +1,24 @@
|
|
|
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 CreateGroupMembership
|
|
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 organization_membership_id; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: String).returns(String) }
|
|
16
|
+
def organization_membership_id=(value); end
|
|
17
|
+
|
|
18
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
19
|
+
def to_h; end
|
|
20
|
+
|
|
21
|
+
sig { params(args: T.untyped).returns(String) }
|
|
22
|
+
def to_json(*args); end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
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 DomainVerificationIntentOptions
|
|
9
|
+
sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
|
|
10
|
+
def initialize(json); end
|
|
11
|
+
|
|
12
|
+
sig { returns(T.nilable(String)) }
|
|
13
|
+
def domain_name; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
16
|
+
def domain_name=(value); end
|
|
17
|
+
|
|
18
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
19
|
+
def to_h; end
|
|
20
|
+
|
|
21
|
+
sig { params(args: T.untyped).returns(String) }
|
|
22
|
+
def to_json(*args); end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -40,10 +40,10 @@ module WorkOS
|
|
|
40
40
|
def intent_options=(value); end
|
|
41
41
|
|
|
42
42
|
sig { returns(T.nilable(T::Array[String])) }
|
|
43
|
-
def
|
|
43
|
+
def it_contact_emails; end
|
|
44
44
|
|
|
45
45
|
sig { params(value: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) }
|
|
46
|
-
def
|
|
46
|
+
def it_contact_emails=(value); end
|
|
47
47
|
|
|
48
48
|
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
49
49
|
def to_h; end
|
|
@@ -0,0 +1,97 @@
|
|
|
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 Groups
|
|
9
|
+
sig { params(client: WorkOS::BaseClient).void }
|
|
10
|
+
def initialize(client); end
|
|
11
|
+
|
|
12
|
+
sig do
|
|
13
|
+
params(
|
|
14
|
+
organization_id: String,
|
|
15
|
+
before: T.nilable(String),
|
|
16
|
+
after: T.nilable(String),
|
|
17
|
+
limit: T.nilable(Integer),
|
|
18
|
+
order: T.nilable(String),
|
|
19
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
20
|
+
).returns(WorkOS::Types::ListStruct)
|
|
21
|
+
end
|
|
22
|
+
def list_organization_groups(organization_id:, before:, after:, limit:, order:, request_options:); end
|
|
23
|
+
|
|
24
|
+
sig do
|
|
25
|
+
params(
|
|
26
|
+
organization_id: String,
|
|
27
|
+
name: String,
|
|
28
|
+
description: T.nilable(String),
|
|
29
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
30
|
+
).returns(WorkOS::Group)
|
|
31
|
+
end
|
|
32
|
+
def create_organization_group(organization_id:, name:, description:, request_options:); end
|
|
33
|
+
|
|
34
|
+
sig do
|
|
35
|
+
params(
|
|
36
|
+
organization_id: String,
|
|
37
|
+
group_id: String,
|
|
38
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
39
|
+
).returns(WorkOS::Group)
|
|
40
|
+
end
|
|
41
|
+
def get_organization_group(organization_id:, group_id:, request_options:); end
|
|
42
|
+
|
|
43
|
+
sig do
|
|
44
|
+
params(
|
|
45
|
+
organization_id: String,
|
|
46
|
+
group_id: String,
|
|
47
|
+
name: T.nilable(String),
|
|
48
|
+
description: T.nilable(String),
|
|
49
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
50
|
+
).returns(WorkOS::Group)
|
|
51
|
+
end
|
|
52
|
+
def update_organization_group(organization_id:, group_id:, name:, description:, request_options:); end
|
|
53
|
+
|
|
54
|
+
sig do
|
|
55
|
+
params(
|
|
56
|
+
organization_id: String,
|
|
57
|
+
group_id: String,
|
|
58
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
59
|
+
).returns(NilClass)
|
|
60
|
+
end
|
|
61
|
+
def delete_organization_group(organization_id:, group_id:, request_options:); end
|
|
62
|
+
|
|
63
|
+
sig do
|
|
64
|
+
params(
|
|
65
|
+
organization_id: String,
|
|
66
|
+
group_id: String,
|
|
67
|
+
before: T.nilable(String),
|
|
68
|
+
after: T.nilable(String),
|
|
69
|
+
limit: T.nilable(Integer),
|
|
70
|
+
order: T.nilable(String),
|
|
71
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
72
|
+
).returns(WorkOS::Types::ListStruct)
|
|
73
|
+
end
|
|
74
|
+
def list_group_organization_memberships(organization_id:, group_id:, before:, after:, limit:, order:, request_options:); end
|
|
75
|
+
|
|
76
|
+
sig do
|
|
77
|
+
params(
|
|
78
|
+
organization_id: String,
|
|
79
|
+
group_id: String,
|
|
80
|
+
organization_membership_id: String,
|
|
81
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
82
|
+
).returns(WorkOS::Group)
|
|
83
|
+
end
|
|
84
|
+
def create_group_organization_membership(organization_id:, group_id:, organization_membership_id:, request_options:); end
|
|
85
|
+
|
|
86
|
+
sig do
|
|
87
|
+
params(
|
|
88
|
+
organization_id: String,
|
|
89
|
+
group_id: String,
|
|
90
|
+
om_id: String,
|
|
91
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
92
|
+
).returns(NilClass)
|
|
93
|
+
end
|
|
94
|
+
def delete_group_organization_membership(organization_id:, group_id:, om_id:, request_options:); end
|
|
95
|
+
|
|
96
|
+
end
|
|
97
|
+
end
|
|
@@ -9,12 +9,18 @@ module WorkOS
|
|
|
9
9
|
sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
|
|
10
10
|
def initialize(json); end
|
|
11
11
|
|
|
12
|
-
sig { returns(WorkOS::SSOIntentOptions) }
|
|
12
|
+
sig { returns(T.nilable(WorkOS::SSOIntentOptions)) }
|
|
13
13
|
def sso; end
|
|
14
14
|
|
|
15
|
-
sig { params(value: WorkOS::SSOIntentOptions).returns(WorkOS::SSOIntentOptions) }
|
|
15
|
+
sig { params(value: T.nilable(WorkOS::SSOIntentOptions)).returns(T.nilable(WorkOS::SSOIntentOptions)) }
|
|
16
16
|
def sso=(value); end
|
|
17
17
|
|
|
18
|
+
sig { returns(T.nilable(WorkOS::DomainVerificationIntentOptions)) }
|
|
19
|
+
def domain_verification; end
|
|
20
|
+
|
|
21
|
+
sig { params(value: T.nilable(WorkOS::DomainVerificationIntentOptions)).returns(T.nilable(WorkOS::DomainVerificationIntentOptions)) }
|
|
22
|
+
def domain_verification=(value); end
|
|
23
|
+
|
|
18
24
|
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
19
25
|
def to_h; end
|
|
20
26
|
|
data/rbi/workos/invitation.rbi
CHANGED
|
@@ -69,6 +69,12 @@ module WorkOS
|
|
|
69
69
|
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
70
70
|
def accepted_user_id=(value); end
|
|
71
71
|
|
|
72
|
+
sig { returns(T.nilable(String)) }
|
|
73
|
+
def role_slug; end
|
|
74
|
+
|
|
75
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
76
|
+
def role_slug=(value); end
|
|
77
|
+
|
|
72
78
|
sig { returns(String) }
|
|
73
79
|
def created_at; end
|
|
74
80
|
|
|
@@ -69,6 +69,12 @@ module WorkOS
|
|
|
69
69
|
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
70
70
|
def accepted_user_id=(value); end
|
|
71
71
|
|
|
72
|
+
sig { returns(T.nilable(String)) }
|
|
73
|
+
def role_slug; end
|
|
74
|
+
|
|
75
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
76
|
+
def role_slug=(value); end
|
|
77
|
+
|
|
72
78
|
sig { returns(String) }
|
|
73
79
|
def created_at; end
|
|
74
80
|
|
|
@@ -69,6 +69,12 @@ module WorkOS
|
|
|
69
69
|
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
70
70
|
def accepted_user_id=(value); end
|
|
71
71
|
|
|
72
|
+
sig { returns(T.nilable(String)) }
|
|
73
|
+
def role_slug; end
|
|
74
|
+
|
|
75
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
76
|
+
def role_slug=(value); end
|
|
77
|
+
|
|
72
78
|
sig { returns(String) }
|
|
73
79
|
def created_at; end
|
|
74
80
|
|
|
@@ -69,6 +69,12 @@ module WorkOS
|
|
|
69
69
|
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
70
70
|
def accepted_user_id=(value); end
|
|
71
71
|
|
|
72
|
+
sig { returns(T.nilable(String)) }
|
|
73
|
+
def role_slug; end
|
|
74
|
+
|
|
75
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
76
|
+
def role_slug=(value); end
|
|
77
|
+
|
|
72
78
|
sig { returns(String) }
|
|
73
79
|
def created_at; end
|
|
74
80
|
|
|
@@ -69,6 +69,12 @@ module WorkOS
|
|
|
69
69
|
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
70
70
|
def accepted_user_id=(value); end
|
|
71
71
|
|
|
72
|
+
sig { returns(T.nilable(String)) }
|
|
73
|
+
def role_slug; end
|
|
74
|
+
|
|
75
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
76
|
+
def role_slug=(value); end
|
|
77
|
+
|
|
72
78
|
sig { returns(String) }
|
|
73
79
|
def created_at; end
|
|
74
80
|
|