workos 3.0.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.semaphore/semaphore.yml +1 -1
  3. data/Gemfile.lock +1 -1
  4. data/lib/workos/directory_sync.rb +3 -0
  5. data/lib/workos/organization_membership.rb +4 -1
  6. data/lib/workos/organizations.rb +1 -0
  7. data/lib/workos/sso.rb +1 -0
  8. data/lib/workos/types/organization_membership_struct.rb +2 -1
  9. data/lib/workos/types/user_struct.rb +1 -0
  10. data/lib/workos/user.rb +4 -1
  11. data/lib/workos/user_management.rb +3 -0
  12. data/lib/workos/version.rb +1 -1
  13. data/spec/lib/workos/directory_sync_spec.rb +30 -15
  14. data/spec/lib/workos/organizations_spec.rb +6 -3
  15. data/spec/lib/workos/sso_spec.rb +12 -6
  16. data/spec/lib/workos/user_management_spec.rb +14 -7
  17. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_after.yml +1 -1
  18. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_before.yml +1 -1
  19. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_domain.yml +1 -1
  20. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_limit.yml +1 -1
  21. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_no_options.yml +1 -1
  22. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_search.yml +1 -1
  23. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_after.yml +1 -1
  24. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_before.yml +1 -1
  25. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_directory.yml +1 -1
  26. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_limit.yml +1 -1
  27. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_no_options.yml +1 -1
  28. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_user.yml +1 -1
  29. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_after.yml +1 -1
  30. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_before.yml +1 -1
  31. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_directory.yml +1 -1
  32. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_group.yml +1 -1
  33. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_limit.yml +1 -1
  34. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_no_options.yml +72 -71
  35. data/spec/support/fixtures/vcr_cassettes/organization/list.yml +1 -1
  36. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_after.yml +1 -1
  37. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_before.yml +1 -1
  38. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_connection_type.yml +1 -1
  39. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_domain.yml +1 -1
  40. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_limit.yml +1 -1
  41. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_no_options.yml +1 -1
  42. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_organization_id.yml +1 -1
  43. data/spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/valid.yml +1 -1
  44. data/spec/support/fixtures/vcr_cassettes/user_management/get_organization_membership.yml +1 -1
  45. data/spec/support/fixtures/vcr_cassettes/user_management/get_user.yml +79 -79
  46. data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_after.yml +1 -1
  47. data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_before.yml +1 -1
  48. data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_limit.yml +1 -1
  49. data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_no_options.yml +1 -1
  50. data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_organization_id.yml +1 -1
  51. data/spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/no_options.yml +2 -2
  52. data/spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/with_options.yml +1 -1
  53. data/spec/support/fixtures/vcr_cassettes/user_management/list_users/no_options.yml +1 -1
  54. metadata +3 -3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.workos.com/directory_users?group=directory_group_01FBXGP79EJAYKW0WS9JCK1V6E
5
+ uri: https://api.workos.com/directory_users?group=directory_group_01FBXGP79EJAYKW0WS9JCK1V6E&order=desc
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.workos.com/directory_users?directory=directory_01FAZYMST676QMTFN1DDJZZX87&limit=2
5
+ uri: https://api.workos.com/directory_users?directory=directory_01FAZYMST676QMTFN1DDJZZX87&limit=2&order=desc
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -1,74 +1,75 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.workos.com/directory_users
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Content-Type:
11
- - application/json
12
- Accept-Encoding:
13
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- Accept:
15
- - "*/*"
16
- User-Agent:
17
- - WorkOS; ruby/2.7.1; x86_64-darwin19; v0.10.3
18
- Authorization:
19
- - Bearer <API_KEY>
20
- response:
21
- status:
22
- code: 422
23
- message: Unprocessable Entity
24
- headers:
25
- Server:
26
- - Cowboy
27
- Connection:
28
- - keep-alive
29
- Vary:
30
- - Origin, Accept-Encoding
31
- Access-Control-Allow-Credentials:
32
- - 'true'
33
- Content-Security-Policy:
34
- - 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
35
- https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
36
- ''self'';script-src-attr ''none'';style-src ''self'' https: ''unsafe-inline'';upgrade-insecure-requests'
37
- X-Dns-Prefetch-Control:
38
- - 'off'
39
- Expect-Ct:
40
- - max-age=0
41
- X-Frame-Options:
42
- - SAMEORIGIN
43
- Strict-Transport-Security:
44
- - max-age=15552000; includeSubDomains
45
- X-Download-Options:
46
- - noopen
47
- X-Content-Type-Options:
48
- - nosniff
49
- X-Permitted-Cross-Domain-Policies:
50
- - none
51
- Referrer-Policy:
52
- - no-referrer
53
- X-Xss-Protection:
54
- - '0'
55
- X-Request-Id:
56
- - 7ec78e21-576f-44a4-895f-bd911a3f4b04
57
- Content-Type:
58
- - application/json; charset=utf-8
59
- Content-Length:
60
- - '222'
61
- Etag:
62
- - W/"de-33B+CY27z2HlOGKZPu4nzUVQpuI"
63
- Date:
64
- - Thu, 22 Apr 2021 21:58:34 GMT
65
- Via:
66
- - 1.1 vegur
67
- body:
68
- encoding: UTF-8
69
- string: '{"message":"Validation failed","errors":[{"field":"directory","code":"Please
70
- provide either \"directory\" or \"group\" parameters."},{"field":"group","code":"Please
71
- provide either \"directory\" or \"group\" parameters."}]}'
72
- http_version:
73
- recorded_at: Thu, 22 Apr 2021 21:58:34 GMT
3
+ - request:
4
+ method: get
5
+ uri: https://api.workos.com/directory_users?order=desc
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ User-Agent:
17
+ - WorkOS; ruby/2.7.1; x86_64-darwin19; v0.10.3
18
+ Authorization:
19
+ - Bearer <API_KEY>
20
+ response:
21
+ status:
22
+ code: 422
23
+ message: Unprocessable Entity
24
+ headers:
25
+ Server:
26
+ - Cowboy
27
+ Connection:
28
+ - keep-alive
29
+ Vary:
30
+ - Origin, Accept-Encoding
31
+ Access-Control-Allow-Credentials:
32
+ - "true"
33
+ Content-Security-Policy:
34
+ - "default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self'
35
+ https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src
36
+ 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"
37
+ X-Dns-Prefetch-Control:
38
+ - "off"
39
+ Expect-Ct:
40
+ - max-age=0
41
+ X-Frame-Options:
42
+ - SAMEORIGIN
43
+ Strict-Transport-Security:
44
+ - max-age=15552000; includeSubDomains
45
+ X-Download-Options:
46
+ - noopen
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Permitted-Cross-Domain-Policies:
50
+ - none
51
+ Referrer-Policy:
52
+ - no-referrer
53
+ X-Xss-Protection:
54
+ - "0"
55
+ X-Request-Id:
56
+ - 7ec78e21-576f-44a4-895f-bd911a3f4b04
57
+ Content-Type:
58
+ - application/json; charset=utf-8
59
+ Content-Length:
60
+ - "222"
61
+ Etag:
62
+ - W/"de-33B+CY27z2HlOGKZPu4nzUVQpuI"
63
+ Date:
64
+ - Thu, 22 Apr 2021 21:58:34 GMT
65
+ Via:
66
+ - 1.1 vegur
67
+ body:
68
+ encoding: UTF-8
69
+ string:
70
+ '{"message":"Validation failed","errors":[{"field":"directory","code":"Please
71
+ provide either \"directory\" or \"group\" parameters."},{"field":"group","code":"Please
72
+ provide either \"directory\" or \"group\" parameters."}]}'
73
+ http_version:
74
+ recorded_at: Thu, 22 Apr 2021 21:58:34 GMT
74
75
  recorded_with: VCR 5.0.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.workos.com/organizations
5
+ uri: https://api.workos.com/organizations?order=desc
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.workos.com/connections?after=conn_01FA3WGCWPCCY1V2FGES2FDNP7
5
+ uri: https://api.workos.com/connections?after=conn_01FA3WGCWPCCY1V2FGES2FDNP7&order=desc
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.workos.com/connections?before=conn_01FA3WGCWPCCY1V2FGES2FDNP7
5
+ uri: https://api.workos.com/connections?before=conn_01FA3WGCWPCCY1V2FGES2FDNP7&order=desc
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.workos.com/connections?connection_type=OktaSAML
5
+ uri: https://api.workos.com/connections?connection_type=OktaSAML&order=desc
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.workos.com/connections?domain=foo-corp.com
5
+ uri: https://api.workos.com/connections?domain=foo-corp.com&order=desc
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.workos.com/connections?limit=2
5
+ uri: https://api.workos.com/connections?limit=2&order=desc
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.workos.com/connections
5
+ uri: https://api.workos.com/connections?order=desc
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.workos.com/connections?organization_id=org_01F9293WD2PDEEV4Y625XPZVG7
5
+ uri: https://api.workos.com/connections?order=desc&organization_id=org_01F9293WD2PDEEV4Y625XPZVG7
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -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","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","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
@@ -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", "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", "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
@@ -1,82 +1,82 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.workos.com/user_management/users/user_01H7TVSKS45SDHN5V9XPSM6H44
6
- body:
7
- encoding: US-ASCII
8
- string: ""
9
- headers:
10
- Content-Type:
11
- - application/json
12
- Accept-Encoding:
13
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- Accept:
15
- - "*/*"
16
- User-Agent:
17
- - WorkOS; ruby/3.0.2; arm64-darwin22; v2.16.0
18
- Authorization:
19
- - Bearer <API_KEY>
20
- response:
21
- status:
22
- code: 200
23
- message: OK
24
- headers:
25
- Date:
26
- - Mon, 14 Aug 2023 21:42:04 GMT
27
- Content-Type:
28
- - application/json; charset=utf-8
29
- Transfer-Encoding:
30
- - chunked
31
- Connection:
32
- - keep-alive
33
- Cf-Ray:
34
- - 7f6c5d952da1431b-EWR
35
- Cf-Cache-Status:
36
- - DYNAMIC
37
- Etag:
38
- - W/"141-O6DsNeF3SRNndlNrActm2XgXhM8"
39
- Strict-Transport-Security:
40
- - max-age=15552000; includeSubDomains
41
- Vary:
42
- - Origin, Accept-Encoding
43
- Via:
44
- - 1.1 spaces-router (devel)
45
- Access-Control-Allow-Credentials:
46
- - "true"
47
- Content-Security-Policy:
48
- - "default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self'
49
- https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src
50
- 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"
51
- Expect-Ct:
52
- - max-age=0
53
- Referrer-Policy:
54
- - no-referrer
55
- X-Content-Type-Options:
56
- - nosniff
57
- X-Dns-Prefetch-Control:
58
- - "off"
59
- X-Download-Options:
60
- - noopen
61
- X-Frame-Options:
62
- - SAMEORIGIN
63
- X-Permitted-Cross-Domain-Policies:
64
- - none
65
- X-Request-Id:
66
- - d774318d-c77b-47eb-9974-47e587a5242e
67
- X-Xss-Protection:
68
- - "0"
69
- Set-Cookie:
70
- - __cf_bm=BV7wg6GRB.g.PmjVqpTueEgpVm4zhgL.Jb_FhpUkQDc-1692049324-0-AXZinFJJ+pibtaAcxVXaSSRque4aiUt1xUih81Q0oIyBpuoQFVT1fZc5kmyCUhdM/7VR/NhM818gxjJLjAC0BHE=;
71
- path=/; expires=Mon, 14-Aug-23 22:12:04 GMT; domain=.workos.com; HttpOnly;
72
- Secure; SameSite=None
73
- - __cfruid=5c73c06a5245951a8821c4d8302ae7be643317b4-1692049324; path=/; domain=.workos.com;
74
- HttpOnly; Secure; SameSite=None
75
- Server:
76
- - cloudflare
77
- body:
78
- encoding: ASCII-8BIT
79
- string: '{"object":"user","id":"user_01H7TVSKS45SDHN5V9XPSM6H44","email":"bob@example.com","first_name":"Bob","last_name":"Loblaw","created_at":"2023-08-14T20:28:58.929Z","updated_at":"2023-08-14T20:28:58.929Z","email_verified":false}'
80
- http_version:
81
- recorded_at: Mon, 14 Aug 2023 21:42:04 GMT
3
+ - request:
4
+ method: get
5
+ uri: https://api.workos.com/user_management/users/user_01HP0B4ZV2FWWVY0BF16GFDAER
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ User-Agent:
17
+ - WorkOS; ruby/3.1.1; arm64-darwin21; v3.0.0
18
+ Authorization:
19
+ - Bearer <API_KEY>
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Tue, 06 Feb 2024 23:16:59 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Cf-Ray:
34
+ - 85171aa13cb71017-LAX
35
+ Cf-Cache-Status:
36
+ - DYNAMIC
37
+ Etag:
38
+ - W/"fc-DvbCxkCW5Wocu/IoMzE4Fvwf0ns"
39
+ Strict-Transport-Security:
40
+ - max-age=15552000; includeSubDomains
41
+ Vary:
42
+ - Origin, Accept-Encoding
43
+ Via:
44
+ - 1.1 spaces-router (devel)
45
+ Access-Control-Allow-Credentials:
46
+ - 'true'
47
+ Content-Security-Policy:
48
+ - 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
49
+ https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
50
+ ''self'';script-src-attr ''none'';style-src ''self'' https: ''unsafe-inline'';upgrade-insecure-requests'
51
+ Expect-Ct:
52
+ - max-age=0
53
+ Referrer-Policy:
54
+ - no-referrer
55
+ X-Content-Type-Options:
56
+ - nosniff
57
+ X-Dns-Prefetch-Control:
58
+ - 'off'
59
+ X-Download-Options:
60
+ - noopen
61
+ X-Frame-Options:
62
+ - SAMEORIGIN
63
+ X-Permitted-Cross-Domain-Policies:
64
+ - none
65
+ X-Request-Id:
66
+ - d889e317-2368-4fe7-b0a2-1c47be3d9ca3
67
+ X-Xss-Protection:
68
+ - '0'
69
+ Set-Cookie:
70
+ - __cf_bm=zsxf6bU0PO_IAuZj57IP3Rk5q298HNg4.dSEXeYctso-1707261419-1-AdcDe/e31u5UfcVRh4MJqIcXlsdh/l5nwm8LpGN+dPD9ouq8nTzZ4nfMdt4Ukpc91Tohr0dOd9F6590AmrTiLUM=;
71
+ path=/; expires=Tue, 06-Feb-24 23:46:59 GMT; domain=.workos.com; HttpOnly;
72
+ Secure; SameSite=None
73
+ - __cfruid=60c1b96c058658fb8ea6f02357a98f597642db51-1707261419; path=/; domain=.workos.com;
74
+ HttpOnly; Secure; SameSite=None
75
+ Server:
76
+ - cloudflare
77
+ body:
78
+ encoding: ASCII-8BIT
79
+ string: '{"object":"user","id":"user_01HP0B4ZV2FWWVY0BF16GFDAER","email":"bob@example.com","email_verified":false,"first_name":"Bob","last_name":"Loblaw","profile_picture_url":null,"created_at":"2024-02-06T23:13:18.137Z","updated_at":"2024-02-06T23:13:36.946Z"}'
80
+ http_version:
81
+ recorded_at: Tue, 06 Feb 2024 23:16:59 GMT
82
82
  recorded_with: VCR 5.0.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.workos.com/user_management/invitations?after=invitation_01H5JQDV7R7ATEYZDEG0W5PRYS
5
+ uri: https://api.workos.com/user_management/invitations?after=invitation_01H5JQDV7R7ATEYZDEG0W5PRYS&order=desc
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.workos.com/user_management/invitations?before=invitation_01H5JQDV7R7ATEYZDEG0W5PRYS
5
+ uri: https://api.workos.com/user_management/invitations?before=invitation_01H5JQDV7R7ATEYZDEG0W5PRYS&order=desc
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.workos.com/user_management/invitations?limit=2
5
+ uri: https://api.workos.com/user_management/invitations?limit=2&order=desc
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.workos.com/user_management/invitations
5
+ uri: https://api.workos.com/user_management/invitations?order=desc
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.workos.com/user_management/invitations?organization_id=org_01H5JQDV7R7ATEYZDEG0W5PRYS
5
+ uri: https://api.workos.com/user_management/invitations?order=desc&organization_id=org_01H5JQDV7R7ATEYZDEG0W5PRYS
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.workos.com/user_management/organization_memberships
5
+ uri: https://api.workos.com/user_management/organization_memberships?order=desc
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ""
@@ -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","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","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","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","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","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","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
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.workos.com/user_management/users
5
+ uri: https://api.workos.com/user_management/users?order=desc
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ""
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: 3.0.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - WorkOS
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-26 00:00:00.000000000 Z
11
+ date: 2024-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorbet-runtime
@@ -443,7 +443,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
443
443
  - !ruby/object:Gem::Version
444
444
  version: '0'
445
445
  requirements: []
446
- rubygems_version: 3.5.3
446
+ rubygems_version: 3.5.6
447
447
  signing_key:
448
448
  specification_version: 4
449
449
  summary: API client for WorkOS