workos 6.1.0 → 6.2.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/CODEOWNERS +2 -2
- data/.github/workflows/ci.yml +1 -1
- data/.github/workflows/lint-pr-title.yml +1 -1
- data/.github/workflows/release-please.yml +2 -2
- data/.github/workflows/release.yml +3 -3
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +13 -0
- data/Gemfile.lock +1 -1
- data/lib/workos/organization_membership.rb +4 -1
- data/lib/workos/user_management.rb +16 -0
- data/lib/workos/version.rb +1 -1
- data/renovate.json +32 -0
- data/spec/lib/workos/user_management_spec.rb +75 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/valid.yml +1 -1
- data/spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/valid_multiple_roles.yml +1 -1
- data/spec/support/fixtures/vcr_cassettes/user_management/deactivate_organization_membership.yml +1 -1
- data/spec/support/fixtures/vcr_cassettes/user_management/get_organization_membership.yml +1 -1
- data/spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/no_options.yml +1 -1
- data/spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/with_options.yml +1 -1
- data/spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/with_statuses_option.yml +1 -1
- data/spec/support/fixtures/vcr_cassettes/user_management/reactivate_organization_membership.yml +1 -1
- data/spec/support/fixtures/vcr_cassettes/user_management/update_organization_membership/valid.yml +1 -1
- data/spec/support/fixtures/vcr_cassettes/user_management/update_organization_membership/valid_multiple_roles.yml +1 -1
- metadata +3 -3
- data/.github/renovate.json +0 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c9c6ccd08e504b94efe3d05a9d17efdd7cb6aa51d6b967fc501795c8c3436ac7
|
|
4
|
+
data.tar.gz: 20387dad535d45bbb77f91fad656227ab22a7488c0450d96c7ef275ffdd5bbdd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 19b1c44a201a6f7a991d140e05530807019b239d7781587aad85edae61a35cce2456c812b659ec75679f5667327fc42f64455b152b6ca3bcfcccedeb01431e36
|
|
7
|
+
data.tar.gz: dfcac436c3f95c90412a0122c241a5e48b90fdf1d5ec0bcfd2974b73819a9731cc2172e697861d9c14f9a5c66fcbc0d30bed3d56f62cd23a8782dc7effee46db
|
data/.github/CODEOWNERS
CHANGED
data/.github/workflows/ci.yml
CHANGED
|
@@ -20,7 +20,7 @@ jobs:
|
|
|
20
20
|
- '3.1'
|
|
21
21
|
- '3.2'
|
|
22
22
|
steps:
|
|
23
|
-
- uses: actions/checkout@v6
|
|
23
|
+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
24
24
|
- uses: ruby/setup-ruby@675dd7ba1b06c8786a1480d89c384f5620a42647 # v1.281.0
|
|
25
25
|
with:
|
|
26
26
|
ruby-version: ${{ matrix.ruby }}
|
|
@@ -15,6 +15,6 @@ jobs:
|
|
|
15
15
|
name: Validate PR title
|
|
16
16
|
runs-on: ubuntu-latest
|
|
17
17
|
steps:
|
|
18
|
-
- uses: amannn/action-semantic-pull-request@v6
|
|
18
|
+
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
|
|
19
19
|
env:
|
|
20
20
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -15,11 +15,11 @@ jobs:
|
|
|
15
15
|
steps:
|
|
16
16
|
- name: Generate token
|
|
17
17
|
id: generate-token
|
|
18
|
-
uses: actions/create-github-app-token@v2
|
|
18
|
+
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
|
|
19
19
|
with:
|
|
20
20
|
app-id: ${{ vars.SDK_BOT_APP_ID }}
|
|
21
21
|
private-key: ${{ secrets.SDK_BOT_PRIVATE_KEY }}
|
|
22
22
|
|
|
23
|
-
- uses: googleapis/release-please-action@v4
|
|
23
|
+
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
|
|
24
24
|
with:
|
|
25
25
|
token: ${{ steps.generate-token.outputs.token }}
|
|
@@ -17,15 +17,15 @@ jobs:
|
|
|
17
17
|
contents: read
|
|
18
18
|
steps:
|
|
19
19
|
- name: Configure RubyGems credentials
|
|
20
|
-
uses: rubygems/configure-rubygems-credentials@
|
|
20
|
+
uses: rubygems/configure-rubygems-credentials@88679b3ac821ffda0116bf098443db9ac7822e40
|
|
21
21
|
with:
|
|
22
22
|
role-to-assume: rg_oidc_akr_fn8dx45asckvmsnd2kka
|
|
23
23
|
|
|
24
24
|
- name: Checkout
|
|
25
|
-
uses: actions/checkout@v6
|
|
25
|
+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
26
26
|
|
|
27
27
|
- name: Setup Ruby
|
|
28
|
-
uses: ruby/setup-ruby@v1
|
|
28
|
+
uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0
|
|
29
29
|
with:
|
|
30
30
|
ruby-version: "3.2"
|
|
31
31
|
bundler-cache: true
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [6.2.0](https://github.com/workos/workos-ruby/compare/v6.1.0...v6.2.0) (2026-03-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **user-management:** add directory_managed to OrganizationMembership ([#446](https://github.com/workos/workos-ruby/issues/446)) ([914d824](https://github.com/workos/workos-ruby/commit/914d824668b70950905d5db666978e9609c9f706))
|
|
9
|
+
* **user-management:** add invitation accept endpoint ([#448](https://github.com/workos/workos-ruby/issues/448)) ([b5b4da1](https://github.com/workos/workos-ruby/commit/b5b4da1c031bc5f688562fdc33506e03b769f650))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* update renovate rules ([#443](https://github.com/workos/workos-ruby/issues/443)) ([f156c79](https://github.com/workos/workos-ruby/commit/f156c799e88269493104628760f94b8abaebf542))
|
|
15
|
+
|
|
3
16
|
## [6.1.0](https://github.com/workos/workos-ruby/compare/workos-v6.0.0...workos/v6.1.0) (2026-02-10)
|
|
4
17
|
|
|
5
18
|
|
data/Gemfile.lock
CHANGED
|
@@ -7,7 +7,8 @@ module WorkOS
|
|
|
7
7
|
class OrganizationMembership
|
|
8
8
|
include HashProvider
|
|
9
9
|
|
|
10
|
-
attr_accessor :id, :user_id, :organization_id, :status, :role, :roles, :custom_attributes, :
|
|
10
|
+
attr_accessor :id, :user_id, :organization_id, :status, :role, :roles, :custom_attributes, :directory_managed,
|
|
11
|
+
:created_at, :updated_at
|
|
11
12
|
|
|
12
13
|
def initialize(json)
|
|
13
14
|
hash = JSON.parse(json, symbolize_names: true)
|
|
@@ -19,6 +20,7 @@ module WorkOS
|
|
|
19
20
|
@role = hash[:role]
|
|
20
21
|
@roles = hash[:roles]
|
|
21
22
|
@custom_attributes = hash[:custom_attributes]
|
|
23
|
+
@directory_managed = hash[:directory_managed]
|
|
22
24
|
@created_at = hash[:created_at]
|
|
23
25
|
@updated_at = hash[:updated_at]
|
|
24
26
|
end
|
|
@@ -32,6 +34,7 @@ module WorkOS
|
|
|
32
34
|
role: role,
|
|
33
35
|
roles: roles,
|
|
34
36
|
custom_attributes: custom_attributes,
|
|
37
|
+
directory_managed: directory_managed,
|
|
35
38
|
created_at: created_at,
|
|
36
39
|
updated_at: updated_at,
|
|
37
40
|
}
|
|
@@ -1172,6 +1172,22 @@ module WorkOS
|
|
|
1172
1172
|
WorkOS::Invitation.new(response.body)
|
|
1173
1173
|
end
|
|
1174
1174
|
|
|
1175
|
+
# Accepts an existing Invitation.
|
|
1176
|
+
#
|
|
1177
|
+
# @param [String] id The unique ID of the Invitation.
|
|
1178
|
+
#
|
|
1179
|
+
# @return WorkOS::Invitation
|
|
1180
|
+
def accept_invitation(id:)
|
|
1181
|
+
request = post_request(
|
|
1182
|
+
path: "/user_management/invitations/#{id}/accept",
|
|
1183
|
+
auth: true,
|
|
1184
|
+
)
|
|
1185
|
+
|
|
1186
|
+
response = execute_request(request: request)
|
|
1187
|
+
|
|
1188
|
+
WorkOS::Invitation.new(response.body)
|
|
1189
|
+
end
|
|
1190
|
+
|
|
1175
1191
|
# Revokes an existing Invitation.
|
|
1176
1192
|
#
|
|
1177
1193
|
# @param [String] id The unique ID of the Invitation.
|
data/lib/workos/version.rb
CHANGED
data/renovate.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": [
|
|
3
|
+
"config:recommended"
|
|
4
|
+
],
|
|
5
|
+
"schedule": [
|
|
6
|
+
"on the 15th day of the month before 12pm"
|
|
7
|
+
],
|
|
8
|
+
"timezone": "UTC",
|
|
9
|
+
"rebaseWhen": "conflicted",
|
|
10
|
+
"packageRules": [
|
|
11
|
+
{
|
|
12
|
+
"matchUpdateTypes": [
|
|
13
|
+
"minor",
|
|
14
|
+
"patch"
|
|
15
|
+
],
|
|
16
|
+
"automerge": true,
|
|
17
|
+
"groupName": "minor and patch updates"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"matchUpdateTypes": [
|
|
21
|
+
"major"
|
|
22
|
+
],
|
|
23
|
+
"automerge": false
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"matchUpdateTypes": [
|
|
27
|
+
"digest"
|
|
28
|
+
],
|
|
29
|
+
"automerge": false
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
@@ -1728,6 +1728,81 @@ describe WorkOS::UserManagement do
|
|
|
1728
1728
|
end
|
|
1729
1729
|
end
|
|
1730
1730
|
|
|
1731
|
+
describe '.accept_invitation' do
|
|
1732
|
+
context 'with a valid id' do
|
|
1733
|
+
it 'accepts invitation' do
|
|
1734
|
+
expect(described_class).to receive(:post_request) do |options|
|
|
1735
|
+
expect(options[:path]).to eq('/user_management/invitations/invitation_123/accept')
|
|
1736
|
+
expect(options[:auth]).to be true
|
|
1737
|
+
|
|
1738
|
+
double('request')
|
|
1739
|
+
end.and_return(double('request'))
|
|
1740
|
+
|
|
1741
|
+
response_body = {
|
|
1742
|
+
id: 'invitation_123',
|
|
1743
|
+
email: 'test@workos.com',
|
|
1744
|
+
state: 'accepted',
|
|
1745
|
+
}.to_json
|
|
1746
|
+
|
|
1747
|
+
expect(described_class).to receive(:execute_request).and_return(
|
|
1748
|
+
double('response', body: response_body),
|
|
1749
|
+
)
|
|
1750
|
+
|
|
1751
|
+
invitation = described_class.accept_invitation(
|
|
1752
|
+
id: 'invitation_123',
|
|
1753
|
+
)
|
|
1754
|
+
|
|
1755
|
+
expect(invitation.id).to eq('invitation_123')
|
|
1756
|
+
expect(invitation.email).to eq('test@workos.com')
|
|
1757
|
+
expect(invitation.state).to eq('accepted')
|
|
1758
|
+
end
|
|
1759
|
+
end
|
|
1760
|
+
|
|
1761
|
+
context 'with an invalid id' do
|
|
1762
|
+
it 'returns an error' do
|
|
1763
|
+
expect(described_class).to receive(:post_request) do |options|
|
|
1764
|
+
expect(options[:path]).to eq('/user_management/invitations/invalid_id/accept')
|
|
1765
|
+
expect(options[:auth]).to be true
|
|
1766
|
+
|
|
1767
|
+
double('request')
|
|
1768
|
+
end.and_return(double('request'))
|
|
1769
|
+
|
|
1770
|
+
expect(described_class).to receive(:execute_request).and_raise(
|
|
1771
|
+
WorkOS::NotFoundError.new(message: 'Invitation not found'),
|
|
1772
|
+
)
|
|
1773
|
+
|
|
1774
|
+
expect do
|
|
1775
|
+
described_class.accept_invitation(id: 'invalid_id')
|
|
1776
|
+
end.to raise_error(
|
|
1777
|
+
WorkOS::NotFoundError,
|
|
1778
|
+
/Invitation not found/,
|
|
1779
|
+
)
|
|
1780
|
+
end
|
|
1781
|
+
end
|
|
1782
|
+
|
|
1783
|
+
context 'when invitation has already been accepted' do
|
|
1784
|
+
it 'returns an error' do
|
|
1785
|
+
expect(described_class).to receive(:post_request) do |options|
|
|
1786
|
+
expect(options[:path]).to eq('/user_management/invitations/invitation_123/accept')
|
|
1787
|
+
expect(options[:auth]).to be true
|
|
1788
|
+
|
|
1789
|
+
double('request')
|
|
1790
|
+
end.and_return(double('request'))
|
|
1791
|
+
|
|
1792
|
+
expect(described_class).to receive(:execute_request).and_raise(
|
|
1793
|
+
WorkOS::InvalidRequestError.new(message: 'Invite has already been accepted'),
|
|
1794
|
+
)
|
|
1795
|
+
|
|
1796
|
+
expect do
|
|
1797
|
+
described_class.accept_invitation(id: 'invitation_123')
|
|
1798
|
+
end.to raise_error(
|
|
1799
|
+
WorkOS::InvalidRequestError,
|
|
1800
|
+
/Invite has already been accepted/,
|
|
1801
|
+
)
|
|
1802
|
+
end
|
|
1803
|
+
end
|
|
1804
|
+
end
|
|
1805
|
+
|
|
1731
1806
|
describe '.revoke_invitation' do
|
|
1732
1807
|
context 'with valid payload' do
|
|
1733
1808
|
it 'revokes invitation' do
|
data/spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/valid.yml
CHANGED
|
@@ -76,7 +76,7 @@ http_interactions:
|
|
|
76
76
|
- cloudflare
|
|
77
77
|
body:
|
|
78
78
|
encoding: UTF-8
|
|
79
|
-
string: '{"object":"organization_membership","id":"om_01H5JQDV7R7ATEYZDEG0W5PRYS","user_id":"user_01H5JQDV7R7ATEYZDEG0W5PRYS","organization_id":"organization_01H5JQDV7R7ATEYZDEG0W5PRYS","status":"active","role":{"slug":"member"},"created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}'
|
|
79
|
+
string: '{"object":"organization_membership","id":"om_01H5JQDV7R7ATEYZDEG0W5PRYS","user_id":"user_01H5JQDV7R7ATEYZDEG0W5PRYS","organization_id":"organization_01H5JQDV7R7ATEYZDEG0W5PRYS","status":"active","role":{"slug":"member"},"directory_managed":false,"created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}'
|
|
80
80
|
http_version:
|
|
81
81
|
recorded_at: Thu, 17 Aug 2023 14:20:07 GMT
|
|
82
82
|
recorded_with: VCR 5.0.0
|
|
@@ -71,6 +71,6 @@ http_interactions:
|
|
|
71
71
|
path=/; domain=.workos.com; HttpOnly; Secure; SameSite=None
|
|
72
72
|
body:
|
|
73
73
|
encoding: UTF-8
|
|
74
|
-
string: '{"object":"organization_membership","id":"om_01H5JQDV7R7ATEYZDEG0W5PRYS","user_id":"user_01H5JQDV7R7ATEYZDEG0W5PRYS","organization_id":"organization_01H5JQDV7R7ATEYZDEG0W5PRYS","status":"active","role":{"slug":"member"}, "roles":[{"slug":"member"}, {"slug":"admin"}], "created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}'
|
|
74
|
+
string: '{"object":"organization_membership","id":"om_01H5JQDV7R7ATEYZDEG0W5PRYS","user_id":"user_01H5JQDV7R7ATEYZDEG0W5PRYS","organization_id":"organization_01H5JQDV7R7ATEYZDEG0W5PRYS","status":"active","role":{"slug":"member"}, "roles":[{"slug":"member"}, {"slug":"admin"}], "directory_managed":false,"created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}'
|
|
75
75
|
recorded_at: Mon, 06 Oct 2025 19:57:34 GMT
|
|
76
76
|
recorded_with: VCR 6.3.1
|
data/spec/support/fixtures/vcr_cassettes/user_management/deactivate_organization_membership.yml
CHANGED
|
@@ -58,7 +58,7 @@ http_interactions:
|
|
|
58
58
|
- "0"
|
|
59
59
|
body:
|
|
60
60
|
encoding: ASCII-8BIT
|
|
61
|
-
string: '{"object":"organization_membership","id":"om_01HXYT0G3H5QG9YTSHSHFZQE6D","organization_id":"org_01HRCVHACPY05V2FP0KEBQZYD3","user_id":"user_01HXYSZBKQE2N3NHBKZHDP1X5X","status":"inactive","role":{"slug":"member"},"created_at":"2024-05-15T19:00:05.359Z","updated_at":"2024-05-15T19:13:06.259Z"}'
|
|
61
|
+
string: '{"object":"organization_membership","id":"om_01HXYT0G3H5QG9YTSHSHFZQE6D","organization_id":"org_01HRCVHACPY05V2FP0KEBQZYD3","user_id":"user_01HXYSZBKQE2N3NHBKZHDP1X5X","status":"inactive","role":{"slug":"member"},"directory_managed":false,"created_at":"2024-05-15T19:00:05.359Z","updated_at":"2024-05-15T19:13:06.259Z"}'
|
|
62
62
|
http_version:
|
|
63
63
|
recorded_at: Wed, 15 May 2024 19:13:06 GMT
|
|
64
64
|
recorded_with: VCR 5.0.0
|
|
@@ -76,7 +76,7 @@ http_interactions:
|
|
|
76
76
|
- cloudflare
|
|
77
77
|
body:
|
|
78
78
|
encoding: ASCII-8BIT
|
|
79
|
-
string: '{"object": "organization_membership", "id": "om_01H5JQDV7R7ATEYZDEG0W5PRYS", "user_id": "user_01H5JQDV7R7ATEYZDEG0W5PRYS", "organization_id": "organization_01H5JQDV7R7ATEYZDEG0W5PRYS", "status": "active", "role": {"slug": "member"}, "created_at": "2023-07-18T02:07:19.911Z", "updated_at": "2023-07-18T02:07:19.911Z"}'
|
|
79
|
+
string: '{"object": "organization_membership", "id": "om_01H5JQDV7R7ATEYZDEG0W5PRYS", "user_id": "user_01H5JQDV7R7ATEYZDEG0W5PRYS", "organization_id": "organization_01H5JQDV7R7ATEYZDEG0W5PRYS", "status": "active", "role": {"slug": "member"}, "directory_managed": false, "created_at": "2023-07-18T02:07:19.911Z", "updated_at": "2023-07-18T02:07:19.911Z"}'
|
|
80
80
|
http_version:
|
|
81
81
|
recorded_at: Mon, 14 Aug 2023 21:42:04 GMT
|
|
82
82
|
recorded_with: VCR 5.0.0
|
|
@@ -76,7 +76,7 @@ http_interactions:
|
|
|
76
76
|
- cloudflare
|
|
77
77
|
body:
|
|
78
78
|
encoding: ASCII-8BIT
|
|
79
|
-
string: '{"object":"list","data":[{"object":"organization_membership","id":"om_01H5JQDV7R7ATEYZDEG0W5PRYS","user_id":"user_01H5JQDV7R7ATEYZDEG0W5PRYS","organization_id":"organization_01H5JQDV7R7ATEYZDEG0W5PRYS","status": "active","role":{"slug":"member"},"created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}, {"object":"organization_membership","id":"om_01H5JQDV7R7ATEYZDEG0W5PRYS","user_id":"user_01H5JQDV7R7ATEYZDEG0W5PRYS","organization_id":"organization_01H5JQDV7R7ATEYZDEG0W5PRYS","status": "active","role":{"slug":"member"},"created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}],"list_metadata":{"before":"before-id","after":null}}'
|
|
79
|
+
string: '{"object":"list","data":[{"object":"organization_membership","id":"om_01H5JQDV7R7ATEYZDEG0W5PRYS","user_id":"user_01H5JQDV7R7ATEYZDEG0W5PRYS","organization_id":"organization_01H5JQDV7R7ATEYZDEG0W5PRYS","status": "active","role":{"slug":"member"},"directory_managed":false,"created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}, {"object":"organization_membership","id":"om_01H5JQDV7R7ATEYZDEG0W5PRYS","user_id":"user_01H5JQDV7R7ATEYZDEG0W5PRYS","organization_id":"organization_01H5JQDV7R7ATEYZDEG0W5PRYS","status": "active","role":{"slug":"member"},"directory_managed":false,"created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}],"list_metadata":{"before":"before-id","after":null}}'
|
|
80
80
|
http_version:
|
|
81
81
|
recorded_at: Tue, 15 Aug 2023 14:12:43 GMT
|
|
82
82
|
recorded_with: VCR 5.0.0
|
|
@@ -76,7 +76,7 @@ http_interactions:
|
|
|
76
76
|
- cloudflare
|
|
77
77
|
body:
|
|
78
78
|
encoding: ASCII-8BIT
|
|
79
|
-
string: '{"object":"list","data":[{"object":"organization_membership","id":"om_01H5JQDV7R7ATEYZDEG0W5PRYS","user_id":"user_01H5JQDV7R7ATEYZDEG0W5PRYS","organization_id":"organization_01H5JQDV7R7ATEYZDEG0W5PRYS","status": "active","role":{"slug":"member"},"created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}],"list_metadata":{"before":null,"after":null}}'
|
|
79
|
+
string: '{"object":"list","data":[{"object":"organization_membership","id":"om_01H5JQDV7R7ATEYZDEG0W5PRYS","user_id":"user_01H5JQDV7R7ATEYZDEG0W5PRYS","organization_id":"organization_01H5JQDV7R7ATEYZDEG0W5PRYS","status": "active","role":{"slug":"member"},"directory_managed":false,"created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}],"list_metadata":{"before":null,"after":null}}'
|
|
80
80
|
http_version:
|
|
81
81
|
recorded_at: Tue, 15 Aug 2023 16:37:20 GMT
|
|
82
82
|
recorded_with: VCR 5.0.0
|
|
@@ -58,7 +58,7 @@ http_interactions:
|
|
|
58
58
|
- "0"
|
|
59
59
|
body:
|
|
60
60
|
encoding: ASCII-8BIT
|
|
61
|
-
string: '{"object":"list","data":[{"object":"organization_membership","id":"om_01HXYT0G3H5QG9YTSHSHFZQE6D","organization_id":"org_01HRCVHACPY05V2FP0KEBQZYD3","user_id":"user_01HXYSZBKQE2N3NHBKZHDP1X5X","status":"active","role":{"slug":"member"},"created_at":"2024-05-15T19:00:05.359Z","updated_at":"2024-05-15T19:13:06.427Z"}],"list_metadata":{"before":null,"after":null}}'
|
|
61
|
+
string: '{"object":"list","data":[{"object":"organization_membership","id":"om_01HXYT0G3H5QG9YTSHSHFZQE6D","organization_id":"org_01HRCVHACPY05V2FP0KEBQZYD3","user_id":"user_01HXYSZBKQE2N3NHBKZHDP1X5X","status":"active","role":{"slug":"member"},"directory_managed":false,"created_at":"2024-05-15T19:00:05.359Z","updated_at":"2024-05-15T19:13:06.427Z"}],"list_metadata":{"before":null,"after":null}}'
|
|
62
62
|
http_version:
|
|
63
63
|
recorded_at: Wed, 15 May 2024 19:14:44 GMT
|
|
64
64
|
recorded_with: VCR 5.0.0
|
data/spec/support/fixtures/vcr_cassettes/user_management/reactivate_organization_membership.yml
CHANGED
|
@@ -58,7 +58,7 @@ http_interactions:
|
|
|
58
58
|
- "0"
|
|
59
59
|
body:
|
|
60
60
|
encoding: ASCII-8BIT
|
|
61
|
-
string: '{"object":"organization_membership","id":"om_01HXYT0G3H5QG9YTSHSHFZQE6D","organization_id":"org_01HRCVHACPY05V2FP0KEBQZYD3","user_id":"user_01HXYSZBKQE2N3NHBKZHDP1X5X","status":"active","role":{"slug":"member"},"created_at":"2024-05-15T19:00:05.359Z","updated_at":"2024-05-15T19:13:06.427Z"}'
|
|
61
|
+
string: '{"object":"organization_membership","id":"om_01HXYT0G3H5QG9YTSHSHFZQE6D","organization_id":"org_01HRCVHACPY05V2FP0KEBQZYD3","user_id":"user_01HXYSZBKQE2N3NHBKZHDP1X5X","status":"active","role":{"slug":"member"},"directory_managed":false,"created_at":"2024-05-15T19:00:05.359Z","updated_at":"2024-05-15T19:13:06.427Z"}'
|
|
62
62
|
http_version:
|
|
63
63
|
recorded_at: Wed, 15 May 2024 19:13:06 GMT
|
|
64
64
|
recorded_with: VCR 5.0.0
|
data/spec/support/fixtures/vcr_cassettes/user_management/update_organization_membership/valid.yml
CHANGED
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
- cloudflare
|
|
77
77
|
body:
|
|
78
78
|
encoding: UTF-8
|
|
79
|
-
string: '{"object":"organization_membership","id":"om_01H5JQDV7R7ATEYZDEG0W5PRYS","user_id":"user_01H5JQDV7R7ATEYZDEG0W5PRYS","organization_id":"organization_01H5JQDV7R7ATEYZDEG0W5PRYS","status":"active","role":{"slug":"admin"},"created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}'
|
|
79
|
+
string: '{"object":"organization_membership","id":"om_01H5JQDV7R7ATEYZDEG0W5PRYS","user_id":"user_01H5JQDV7R7ATEYZDEG0W5PRYS","organization_id":"organization_01H5JQDV7R7ATEYZDEG0W5PRYS","status":"active","role":{"slug":"admin"},"directory_managed":false,"created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}'
|
|
80
80
|
http_version:
|
|
81
81
|
recorded_at: Wed, 15 May 2024 19:13:06 GMT
|
|
82
82
|
recorded_with: VCR 5.0.0
|
|
@@ -71,6 +71,6 @@ http_interactions:
|
|
|
71
71
|
path=/; domain=.workos.com; HttpOnly; Secure; SameSite=None
|
|
72
72
|
body:
|
|
73
73
|
encoding: UTF-8
|
|
74
|
-
string: '{"object":"organization_membership","id":"om_01H5JQDV7R7ATEYZDEG0W5PRYS","user_id":"user_01H5JQDV7R7ATEYZDEG0W5PRYS","organization_id":"organization_01H5JQDV7R7ATEYZDEG0W5PRYS","status":"active","role":{"slug":"admin"},"roles":[{"slug":"admin"},{"slug":"editor"}],"created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}'
|
|
74
|
+
string: '{"object":"organization_membership","id":"om_01H5JQDV7R7ATEYZDEG0W5PRYS","user_id":"user_01H5JQDV7R7ATEYZDEG0W5PRYS","organization_id":"organization_01H5JQDV7R7ATEYZDEG0W5PRYS","status":"active","role":{"slug":"admin"},"roles":[{"slug":"admin"},{"slug":"editor"}],"directory_managed":false,"created_at":"2023-07-18T02:07:19.911Z","updated_at":"2023-07-18T02:07:19.911Z"}'
|
|
75
75
|
recorded_at: Tue, 07 Oct 2025 14:22:26 GMT
|
|
76
76
|
recorded_with: VCR 6.3.1
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: workos
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.
|
|
4
|
+
version: 6.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- WorkOS
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-03-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: encryptor
|
|
@@ -131,7 +131,6 @@ extra_rdoc_files: []
|
|
|
131
131
|
files:
|
|
132
132
|
- ".github/CODEOWNERS"
|
|
133
133
|
- ".github/pull_request_template.md"
|
|
134
|
-
- ".github/renovate.json"
|
|
135
134
|
- ".github/workflows/ci.yml"
|
|
136
135
|
- ".github/workflows/lint-pr-title.yml"
|
|
137
136
|
- ".github/workflows/release-please.yml"
|
|
@@ -211,6 +210,7 @@ files:
|
|
|
211
210
|
- lib/workos/webhooks.rb
|
|
212
211
|
- lib/workos/widgets.rb
|
|
213
212
|
- release-please-config.json
|
|
213
|
+
- renovate.json
|
|
214
214
|
- spec/lib/workos/audit_logs_spec.rb
|
|
215
215
|
- spec/lib/workos/cache_spec.rb
|
|
216
216
|
- spec/lib/workos/client.rb
|