workos 9.0.0 → 9.1.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.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +2 -2
  3. data/.github/workflows/docs.yml +2 -2
  4. data/.github/workflows/lint.yml +2 -2
  5. data/.github/workflows/release-please.yml +27 -3
  6. data/.github/workflows/release.yml +2 -2
  7. data/.last-synced-sha +1 -1
  8. data/.oagen-manifest.json +28 -12
  9. data/.release-please-manifest.json +1 -1
  10. data/.ruby-version +1 -1
  11. data/CHANGELOG.md +33 -0
  12. data/Gemfile.lock +4 -4
  13. data/lib/workos/{directory_sync/dsync_deactivated.rb → api_keys/api_key_updated.rb} +2 -2
  14. data/lib/workos/api_keys/api_key_updated_data.rb +49 -0
  15. data/lib/workos/{directory_sync/dsync_deactivated_data_domain.rb → api_keys/api_key_updated_data_owner.rb} +1 -1
  16. data/lib/workos/api_keys/api_key_updated_data_previous_attribute.rb +18 -0
  17. data/lib/workos/api_keys/expire_api_key.rb +18 -0
  18. data/lib/workos/api_keys.rb +25 -0
  19. data/lib/workos/authorization.rb +10 -10
  20. data/lib/workos/base_client.rb +19 -2
  21. data/lib/workos/connect/user_object.rb +3 -0
  22. data/lib/workos/connect.rb +1 -1
  23. data/lib/workos/directory_sync/dsync_token_created.rb +34 -0
  24. data/lib/workos/directory_sync/dsync_token_created_data.rb +34 -0
  25. data/lib/workos/directory_sync/dsync_token_revoked.rb +34 -0
  26. data/lib/workos/{types/dsync_deactivated_data_type.rb → directory_sync/dsync_token_revoked_data.rb} +1 -3
  27. data/lib/workos/directory_sync.rb +2 -2
  28. data/lib/workos/events.rb +1 -1
  29. data/lib/workos/groups.rb +2 -2
  30. data/lib/workos/inflections.rb +0 -1
  31. data/lib/workos/organization_membership_service.rb +2 -2
  32. data/lib/workos/organizations.rb +1 -1
  33. data/lib/workos/types/audit_log_configuration_log_stream_type.rb +2 -1
  34. data/lib/workos/types/create_webhook_endpoint_events.rb +2 -1
  35. data/lib/workos/types/radar_standalone_response_control.rb +1 -2
  36. data/lib/workos/user_management/create_user.rb +3 -0
  37. data/lib/workos/user_management/email_change_confirmation_user.rb +3 -0
  38. data/lib/workos/user_management/revoke_session.rb +2 -6
  39. data/lib/workos/user_management/update_user.rb +3 -0
  40. data/lib/workos/{types/dsync_deactivated_data_state.rb → user_management/user_api_key_updated_data_owner.rb} +1 -3
  41. data/lib/workos/user_management.rb +12 -9
  42. data/lib/workos/vault/{object.rb → vault_object.rb} +1 -1
  43. data/lib/workos/vault.rb +4 -4
  44. data/lib/workos/version.rb +1 -1
  45. data/lib/workos/webhooks.rb +1 -1
  46. data/rbi/workos/{dsync_deactivated.rbi → api_key_updated.rbi} +3 -3
  47. data/rbi/workos/api_key_updated_data.rbi +84 -0
  48. data/rbi/workos/api_key_updated_data_owner.rbi +30 -0
  49. data/rbi/workos/api_key_updated_data_previous_attribute.rbi +24 -0
  50. data/rbi/workos/api_keys.rbi +9 -0
  51. data/rbi/workos/create_user.rbi +6 -0
  52. data/rbi/workos/dsync_token_created.rbi +54 -0
  53. data/rbi/workos/{dsync_deactivated_data.rbi → dsync_token_created_data.rbi} +9 -33
  54. data/rbi/workos/dsync_token_revoked.rbi +54 -0
  55. data/rbi/workos/dsync_token_revoked_data.rbi +54 -0
  56. data/rbi/workos/email_change_confirmation_user.rbi +6 -0
  57. data/rbi/workos/expire_api_key.rbi +24 -0
  58. data/rbi/workos/revoke_session.rbi +0 -6
  59. data/rbi/workos/update_user.rbi +6 -0
  60. data/rbi/workos/user.rbi +6 -0
  61. data/rbi/workos/{dsync_deactivated_data_domain.rbi → user_api_key_updated_data_owner.rbi} +5 -5
  62. data/rbi/workos/user_management.rbi +5 -4
  63. data/rbi/workos/user_object.rbi +6 -0
  64. data/rbi/workos/vault.rbi +2 -2
  65. data/rbi/workos/{object.rbi → vault_object.rbi} +1 -1
  66. data/renovate.json +1 -61
  67. data/test/workos/test_api_keys.rb +9 -1
  68. data/test/workos/test_base_client.rb +64 -0
  69. data/test/workos/test_model_round_trip.rb +167 -53
  70. data/test/workos/test_vault.rb +0 -1
  71. metadata +26 -17
  72. data/lib/workos/directory_sync/dsync_deactivated_data.rb +0 -46
  73. /data/lib/workos/{authorization → groups}/user_organization_membership_base_list_data.rb +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09d3066dd5295b0e1f4bad62901c5e3efce798c893163bd3041dd6c65c1cbd98'
4
- data.tar.gz: 25cafd8df5cb61b6181ed4a9922911d1e740be5a106621b97ef7885d655636a8
3
+ metadata.gz: d5bf8d039e74032934018104dfea6d320879461dba4c31f31bbf598b2f31eda6
4
+ data.tar.gz: 3d3fcf304a78be2a804cab6965e31560296f1d21c2c3e66cc5f106651e759baf
5
5
  SHA512:
6
- metadata.gz: f9c151ad91db61f0587641043cf1b9e8c75831cb676b86ddcf04e40f0439b1a40aa6b5ea8a73d9819cba88a82a37d4469ac94403d5724a34116884be931a5802
7
- data.tar.gz: 8e2c4bc8f9defea99d6d67f4de71d4d0750b286eb6c58300333e9e6a237eef76af20b8fe015acb7e799a88dd4492714c8cb74a58857b86660d823c60572d5b9e
6
+ metadata.gz: 688d93035a70deb0779be44d0185e44cf7fd53ad5e5143157f5c29321d84d88f04bc696d6a65a2b050d86eec6a9cdea807418ae2360936b046648a1e8e77854c
7
+ data.tar.gz: 28e078a1307dc71956d840ec6925946aaca7b70ea7cf60b8cbb16caee9db25afbc11c28863155a82c92f62e81fb4c5937490237af4859ce7dd1f2b5012fce8a4
@@ -21,8 +21,8 @@ jobs:
21
21
  - '3.4'
22
22
  - '4.0'
23
23
  steps:
24
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
25
- - uses: ruby/setup-ruby@6aaa311d81eba98ae12eaffbcb63296ace0efcde # 1.307.0
24
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 6.0.3
25
+ - uses: ruby/setup-ruby@12fd324f1d0b43274fdc8130f6980590a667c455 # 1.312.0
26
26
  with:
27
27
  ruby-version: ${{ matrix.ruby }}
28
28
  bundler-cache: true
@@ -14,8 +14,8 @@ jobs:
14
14
  permissions:
15
15
  contents: read
16
16
  steps:
17
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18
- - uses: ruby/setup-ruby@6aaa311d81eba98ae12eaffbcb63296ace0efcde # 1.307.0
17
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 6.0.3
18
+ - uses: ruby/setup-ruby@12fd324f1d0b43274fdc8130f6980590a667c455 # 1.312.0
19
19
  with:
20
20
  bundler-cache: true
21
21
  - run: ./script/docs
@@ -15,8 +15,8 @@ jobs:
15
15
  name: Lint
16
16
  runs-on: ubuntu-latest
17
17
  steps:
18
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
19
- - uses: ruby/setup-ruby@6aaa311d81eba98ae12eaffbcb63296ace0efcde # 1.307.0
18
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 6.0.3
19
+ - uses: ruby/setup-ruby@12fd324f1d0b43274fdc8130f6980590a667c455 # 1.312.0
20
20
  with:
21
21
  bundler-cache: true
22
22
 
@@ -5,12 +5,18 @@ on:
5
5
  branches:
6
6
  - main
7
7
 
8
+ concurrency:
9
+ group: release-please
10
+ cancel-in-progress: false
11
+
8
12
  permissions:
9
13
  contents: write
10
14
  pull-requests: write
11
15
 
12
16
  jobs:
13
17
  release-please:
18
+ needs: publish-release
19
+ if: needs.publish-release.outputs.is-release != 'true'
14
20
  runs-on: ubuntu-latest
15
21
  outputs:
16
22
  pr: ${{ steps.release.outputs.pr }}
@@ -35,7 +41,7 @@ jobs:
35
41
 
36
42
  - name: Checkout release PR branch
37
43
  if: steps.release.outputs.pr
38
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
44
+ uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 6.0.3
39
45
  with:
40
46
  ref: ${{ fromJSON(steps.release.outputs.pr).headBranchName }}
41
47
  token: ${{ steps.generate-token.outputs.token }}
@@ -131,7 +137,7 @@ jobs:
131
137
 
132
138
  - name: Set up Ruby
133
139
  if: steps.release.outputs.pr
134
- uses: ruby/setup-ruby@6aaa311d81eba98ae12eaffbcb63296ace0efcde # 1.307.0
140
+ uses: ruby/setup-ruby@12fd324f1d0b43274fdc8130f6980590a667c455 # 1.312.0
135
141
  with:
136
142
  ruby-version: ruby
137
143
 
@@ -157,6 +163,10 @@ jobs:
157
163
  runs-on: ubuntu-latest
158
164
  permissions:
159
165
  contents: write
166
+ pull-requests: write
167
+ outputs:
168
+ is-release: ${{ steps.detect.outputs.is-release }}
169
+ version: ${{ steps.detect.outputs.version }}
160
170
  steps:
161
171
  - name: Generate token
162
172
  id: generate-token
@@ -165,7 +175,7 @@ jobs:
165
175
  app-id: ${{ vars.SDK_BOT_APP_ID }}
166
176
  private-key: ${{ secrets.SDK_BOT_PRIVATE_KEY }}
167
177
 
168
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
178
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 6.0.3
169
179
  with:
170
180
  fetch-depth: 0
171
181
  token: ${{ steps.generate-token.outputs.token }}
@@ -181,6 +191,9 @@ jobs:
181
191
  VERSION="${BASH_REMATCH[1]}"
182
192
  echo "is-release=true" >> "$GITHUB_OUTPUT"
183
193
  echo "version=$VERSION" >> "$GITHUB_OUTPUT"
194
+ if [[ "$SUBJECT" =~ \#([0-9]+) ]]; then
195
+ echo "pr-number=${BASH_REMATCH[1]}" >> "$GITHUB_OUTPUT"
196
+ fi
184
197
  echo "Detected release PR merge for v$VERSION"
185
198
  else
186
199
  echo "Not a release PR merge: $SUBJECT"
@@ -222,3 +235,14 @@ jobs:
222
235
  gh release create "$TAG" \
223
236
  --title "$TAG" \
224
237
  --notes-file /tmp/release-notes.md
238
+
239
+ - name: Mark release PR as tagged
240
+ if: steps.detect.outputs.is-release == 'true' && steps.detect.outputs['pr-number']
241
+ env:
242
+ GH_TOKEN: ${{ steps.generate-token.outputs.token }}
243
+ PR_NUMBER: ${{ steps.detect.outputs['pr-number'] }}
244
+ run: |
245
+ set -euo pipefail
246
+ gh pr edit "$PR_NUMBER" \
247
+ --remove-label "autorelease: pending" \
248
+ --add-label "autorelease: tagged"
@@ -22,10 +22,10 @@ jobs:
22
22
  role-to-assume: rg_oidc_akr_fn8dx45asckvmsnd2kka
23
23
 
24
24
  - name: Checkout
25
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
25
+ uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 6.0.3
26
26
 
27
27
  - name: Setup Ruby
28
- uses: ruby/setup-ruby@6aaa311d81eba98ae12eaffbcb63296ace0efcde # 1.307.0
28
+ uses: ruby/setup-ruby@12fd324f1d0b43274fdc8130f6980590a667c455 # 1.312.0
29
29
  with:
30
30
  bundler-cache: true
31
31
 
data/.last-synced-sha CHANGED
@@ -1 +1 @@
1
- cb6857d51b453e3cbdb5bf3647d3ca229dd8af65
1
+ d8c5a7de598792b1cee18d4a9842825110e5c74a
data/.oagen-manifest.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 2,
3
3
  "language": "ruby",
4
- "generatedAt": "2026-05-26T15:39:28.792Z",
4
+ "generatedAt": "2026-06-03T19:20:02.984Z",
5
5
  "files": [
6
6
  "lib/workos.rb",
7
7
  "lib/workos/admin_portal.rb",
@@ -19,8 +19,13 @@
19
19
  "lib/workos/api_keys/api_key_revoked.rb",
20
20
  "lib/workos/api_keys/api_key_revoked_data.rb",
21
21
  "lib/workos/api_keys/api_key_revoked_data_owner.rb",
22
+ "lib/workos/api_keys/api_key_updated.rb",
23
+ "lib/workos/api_keys/api_key_updated_data.rb",
24
+ "lib/workos/api_keys/api_key_updated_data_owner.rb",
25
+ "lib/workos/api_keys/api_key_updated_data_previous_attribute.rb",
22
26
  "lib/workos/api_keys/api_key_validation_response.rb",
23
27
  "lib/workos/api_keys/create_organization_api_key.rb",
28
+ "lib/workos/api_keys/expire_api_key.rb",
24
29
  "lib/workos/api_keys/organization_api_key.rb",
25
30
  "lib/workos/api_keys/organization_api_key_owner.rb",
26
31
  "lib/workos/api_keys/organization_api_key_with_value.rb",
@@ -75,7 +80,6 @@
75
80
  "lib/workos/authorization/update_authorization_resource.rb",
76
81
  "lib/workos/authorization/update_organization_role.rb",
77
82
  "lib/workos/authorization/update_role.rb",
78
- "lib/workos/authorization/user_organization_membership_base_list_data.rb",
79
83
  "lib/workos/authorization/user_role_assignment.rb",
80
84
  "lib/workos/authorization/user_role_assignment_resource.rb",
81
85
  "lib/workos/client.rb",
@@ -106,9 +110,6 @@
106
110
  "lib/workos/directory_sync/dsync_activated.rb",
107
111
  "lib/workos/directory_sync/dsync_activated_data.rb",
108
112
  "lib/workos/directory_sync/dsync_activated_data_domain.rb",
109
- "lib/workos/directory_sync/dsync_deactivated.rb",
110
- "lib/workos/directory_sync/dsync_deactivated_data.rb",
111
- "lib/workos/directory_sync/dsync_deactivated_data_domain.rb",
112
113
  "lib/workos/directory_sync/dsync_deleted.rb",
113
114
  "lib/workos/directory_sync/dsync_deleted_data.rb",
114
115
  "lib/workos/directory_sync/dsync_group_created.rb",
@@ -119,6 +120,10 @@
119
120
  "lib/workos/directory_sync/dsync_group_user_added_data.rb",
120
121
  "lib/workos/directory_sync/dsync_group_user_removed.rb",
121
122
  "lib/workos/directory_sync/dsync_group_user_removed_data.rb",
123
+ "lib/workos/directory_sync/dsync_token_created.rb",
124
+ "lib/workos/directory_sync/dsync_token_created_data.rb",
125
+ "lib/workos/directory_sync/dsync_token_revoked.rb",
126
+ "lib/workos/directory_sync/dsync_token_revoked_data.rb",
122
127
  "lib/workos/directory_sync/dsync_user_created.rb",
123
128
  "lib/workos/directory_sync/dsync_user_deleted.rb",
124
129
  "lib/workos/directory_sync/dsync_user_updated.rb",
@@ -168,6 +173,7 @@
168
173
  "lib/workos/groups/create_group_membership.rb",
169
174
  "lib/workos/groups/group.rb",
170
175
  "lib/workos/groups/update_group.rb",
176
+ "lib/workos/groups/user_organization_membership_base_list_data.rb",
171
177
  "lib/workos/inflections.rb",
172
178
  "lib/workos/multi_factor_auth.rb",
173
179
  "lib/workos/multi_factor_auth/authentication_challenge.rb",
@@ -336,8 +342,6 @@
336
342
  "lib/workos/types/directory_user_with_groups_state.rb",
337
343
  "lib/workos/types/dsync_activated_data_state.rb",
338
344
  "lib/workos/types/dsync_activated_data_type.rb",
339
- "lib/workos/types/dsync_deactivated_data_state.rb",
340
- "lib/workos/types/dsync_deactivated_data_type.rb",
341
345
  "lib/workos/types/dsync_deleted_data_state.rb",
342
346
  "lib/workos/types/dsync_deleted_data_type.rb",
343
347
  "lib/workos/types/dsync_user_updated_data_state.rb",
@@ -543,6 +547,7 @@
543
547
  "lib/workos/user_management/user_api_key_created_data_owner.rb",
544
548
  "lib/workos/user_management/user_api_key_owner.rb",
545
549
  "lib/workos/user_management/user_api_key_revoked_data_owner.rb",
550
+ "lib/workos/user_management/user_api_key_updated_data_owner.rb",
546
551
  "lib/workos/user_management/user_api_key_with_value.rb",
547
552
  "lib/workos/user_management/user_api_key_with_value_owner.rb",
548
553
  "lib/workos/user_management/user_created.rb",
@@ -562,7 +567,6 @@
562
567
  "lib/workos/vault/decrypt_request.rb",
563
568
  "lib/workos/vault/decrypt_response.rb",
564
569
  "lib/workos/vault/delete_object_response.rb",
565
- "lib/workos/vault/object.rb",
566
570
  "lib/workos/vault/object_metadata.rb",
567
571
  "lib/workos/vault/object_summary.rb",
568
572
  "lib/workos/vault/object_version.rb",
@@ -591,6 +595,7 @@
591
595
  "lib/workos/vault/vault_metadata_read_data.rb",
592
596
  "lib/workos/vault/vault_names_listed.rb",
593
597
  "lib/workos/vault/vault_names_listed_data.rb",
598
+ "lib/workos/vault/vault_object.rb",
594
599
  "lib/workos/vault/version_list_response.rb",
595
600
  "lib/workos/webhooks.rb",
596
601
  "lib/workos/webhooks/create_webhook_endpoint.rb",
@@ -614,6 +619,10 @@
614
619
  "rbi/workos/api_key_revoked.rbi",
615
620
  "rbi/workos/api_key_revoked_data.rbi",
616
621
  "rbi/workos/api_key_revoked_data_owner.rbi",
622
+ "rbi/workos/api_key_updated.rbi",
623
+ "rbi/workos/api_key_updated_data.rbi",
624
+ "rbi/workos/api_key_updated_data_owner.rbi",
625
+ "rbi/workos/api_key_updated_data_previous_attribute.rbi",
617
626
  "rbi/workos/api_key_validation_response.rbi",
618
627
  "rbi/workos/api_keys.rbi",
619
628
  "rbi/workos/application_credentials_list_item.rbi",
@@ -782,9 +791,6 @@
782
791
  "rbi/workos/dsync_activated.rbi",
783
792
  "rbi/workos/dsync_activated_data.rbi",
784
793
  "rbi/workos/dsync_activated_data_domain.rbi",
785
- "rbi/workos/dsync_deactivated.rbi",
786
- "rbi/workos/dsync_deactivated_data.rbi",
787
- "rbi/workos/dsync_deactivated_data_domain.rbi",
788
794
  "rbi/workos/dsync_deleted.rbi",
789
795
  "rbi/workos/dsync_deleted_data.rbi",
790
796
  "rbi/workos/dsync_group_created.rbi",
@@ -795,6 +801,10 @@
795
801
  "rbi/workos/dsync_group_user_added_data.rbi",
796
802
  "rbi/workos/dsync_group_user_removed.rbi",
797
803
  "rbi/workos/dsync_group_user_removed_data.rbi",
804
+ "rbi/workos/dsync_token_created.rbi",
805
+ "rbi/workos/dsync_token_created_data.rbi",
806
+ "rbi/workos/dsync_token_revoked.rbi",
807
+ "rbi/workos/dsync_token_revoked_data.rbi",
798
808
  "rbi/workos/dsync_user_created.rbi",
799
809
  "rbi/workos/dsync_user_deleted.rbi",
800
810
  "rbi/workos/dsync_user_updated.rbi",
@@ -815,6 +825,7 @@
815
825
  "rbi/workos/event_list_list_metadata.rbi",
816
826
  "rbi/workos/event_schema.rbi",
817
827
  "rbi/workos/events.rbi",
828
+ "rbi/workos/expire_api_key.rbi",
818
829
  "rbi/workos/external_auth_complete_response.rbi",
819
830
  "rbi/workos/feature_flag.rbi",
820
831
  "rbi/workos/feature_flag_owner.rbi",
@@ -882,7 +893,6 @@
882
893
  "rbi/workos/mfa_totp_session_authenticate_request.rbi",
883
894
  "rbi/workos/multi_factor_auth.rbi",
884
895
  "rbi/workos/new_connect_application_secret.rbi",
885
- "rbi/workos/object.rbi",
886
896
  "rbi/workos/object_metadata.rbi",
887
897
  "rbi/workos/object_summary.rbi",
888
898
  "rbi/workos/object_version.rbi",
@@ -1013,6 +1023,7 @@
1013
1023
  "rbi/workos/user_api_key_created_data_owner.rbi",
1014
1024
  "rbi/workos/user_api_key_owner.rbi",
1015
1025
  "rbi/workos/user_api_key_revoked_data_owner.rbi",
1026
+ "rbi/workos/user_api_key_updated_data_owner.rbi",
1016
1027
  "rbi/workos/user_api_key_with_value.rbi",
1017
1028
  "rbi/workos/user_api_key_with_value_owner.rbi",
1018
1029
  "rbi/workos/user_authentication_factor_enroll_response.rbi",
@@ -1056,6 +1067,7 @@
1056
1067
  "rbi/workos/vault_metadata_read_data.rbi",
1057
1068
  "rbi/workos/vault_names_listed.rbi",
1058
1069
  "rbi/workos/vault_names_listed_data.rbi",
1070
+ "rbi/workos/vault_object.rbi",
1059
1071
  "rbi/workos/verify_email_address.rbi",
1060
1072
  "rbi/workos/verify_email_response.rbi",
1061
1073
  "rbi/workos/waitlist_user.rbi",
@@ -1830,6 +1842,10 @@
1830
1842
  "sdkMethod": "delete_api_key",
1831
1843
  "service": "api_keys"
1832
1844
  },
1845
+ "POST /api_keys/{id}/expire": {
1846
+ "sdkMethod": "create_api_key_expire",
1847
+ "service": "api_keys"
1848
+ },
1833
1849
  "GET /user_management/users/{userId}/api_keys": {
1834
1850
  "sdkMethod": "list_user_api_keys",
1835
1851
  "service": "user_management"
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "9.0.0"
2
+ ".": "9.1.0"
3
3
  }
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.3.11
1
+ 3.4.9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # Changelog
2
2
 
3
+ ## [9.1.0](https://github.com/workos/workos-ruby/compare/v9.0.0...v9.1.0) (2026-06-17)
4
+
5
+ ### Bug Fixes
6
+
7
+ * **renovate:** explicitly enable minor and patch updates ([#493](https://github.com/workos/workos-ruby/issues/493)) ([c6da3f3](https://github.com/workos/workos-ruby/commit/c6da3f3acdf4dd7a6a65b3ae6463102ff0c024e1))
8
+ * Use Thread.current[] instead of Fiber[] for connection cache ([#499](https://github.com/workos/workos-ruby/issues/499)) ([a44d650](https://github.com/workos/workos-ruby/commit/a44d6500b29d05fe7a5a0ac7449d1a4bee88fd38))
9
+
10
+ - [#495](https://github.com/workos/workos-ruby/pull/495) feat(generated): regenerate from spec (8 changes)
11
+
12
+ **Features**
13
+ - **[api_keys](https://workos.com/docs/reference/authkit/api-keys)**:
14
+ - Added model `ExpireApiKey`
15
+ - Added model `ApiKeyUpdated`
16
+ - Added model `ApiKeyUpdatedData`
17
+ - Added model `ApiKeyUpdatedDataOwner`
18
+ - Added model `UserApiKeyUpdatedDataOwner`
19
+ - Added model `ApiKeyUpdatedDataPreviousAttribute`
20
+ - Added endpoint `POST /api_keys/{id}/expire`
21
+ - **[audit_logs](https://workos.com/docs/reference/audit-logs)**:
22
+ - Added `Snowflake` to `AuditLogConfigurationLogStreamType`
23
+ - **[connect](https://workos.com/docs/reference/workos-connect/standalone)**:
24
+ - Added `name` to `UserObject`
25
+ - **[directory_sync](https://workos.com/docs/reference/directory-sync)**:
26
+ - Added model `DsyncTokenCreated`
27
+ - Added model `DsyncTokenCreatedData`
28
+ - Added model `DsyncTokenRevoked`
29
+ - Added model `DsyncTokenRevokedData`
30
+ - **[user_management](https://workos.com/docs/reference/authkit/user)**:
31
+ - Added `name` to user management models
32
+ - **[webhooks](https://workos.com/docs/reference/webhooks)**:
33
+ - Added `api_key.updated` to `CreateWebhookEndpointEvents`
34
+ - Added `api_key.updated` to `UpdateWebhookEndpointEvents`
35
+
3
36
  ## [9.0.0](https://github.com/workos/workos-ruby/compare/v8.0.1...v9.0.0) (2026-05-26)
4
37
 
5
38
  ### Bug Fixes
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- workos (9.0.0)
4
+ workos (9.1.0)
5
5
  jwt (~> 3.1)
6
6
  logger (~> 1.7)
7
7
  zeitwerk (~> 2.6)
@@ -90,7 +90,7 @@ GEM
90
90
  crack (>= 0.3.2)
91
91
  hashdiff (>= 0.4.0, < 2.0.0)
92
92
  webrick (1.9.2)
93
- yard (0.9.43)
93
+ yard (0.9.44)
94
94
  yard-markdown (0.7.1)
95
95
  csv
96
96
  rdoc
@@ -153,8 +153,8 @@ CHECKSUMS
153
153
  unicode-emoji (4.2.0) sha256=519e69150f75652e40bf736106cfbc8f0f73aa3fb6a65afe62fefa7f80b0f80f
154
154
  webmock (3.26.2) sha256=774556f2ea6371846cca68c01769b2eac0d134492d21f6d0ab5dd643965a4c90
155
155
  webrick (1.9.2) sha256=beb4a15fc474defed24a3bda4ffd88a490d517c9e4e6118c3edce59e45864131
156
- workos (9.0.0)
157
- yard (0.9.43) sha256=cf8733a8f0485df2a162927e9b5f182215a61f6d22de096b8f402c726a1c5821
156
+ workos (9.1.0)
157
+ yard (0.9.44) sha256=eb087e9b631ccd887b049f303d489963945452d5e2a7eb49a5a74a7cf6887f28
158
158
  yard-markdown (0.7.1) sha256=06c378632dfe7ba053be9ba469eb4701aa0470e36bcf7e5546f353eb90c1bfd1
159
159
  zeitwerk (2.7.5) sha256=d8da92128c09ea6ec62c949011b00ed4a20242b255293dd66bf41545398f73dd
160
160
 
@@ -3,7 +3,7 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module WorkOS
6
- class DsyncDeactivated < WorkOS::Types::BaseModel
6
+ class ApiKeyUpdated < WorkOS::Types::BaseModel
7
7
  HASH_ATTRS = {
8
8
  object: :object,
9
9
  id: :id,
@@ -26,7 +26,7 @@ module WorkOS
26
26
  @object = hash[:object]
27
27
  @id = hash[:id]
28
28
  @event = hash[:event]
29
- @data = hash[:data] ? WorkOS::DsyncDeactivatedData.new(hash[:data]) : nil
29
+ @data = hash[:data] ? WorkOS::ApiKeyUpdatedData.new(hash[:data]) : nil
30
30
  @created_at = hash[:created_at]
31
31
  @context = hash[:context] ? WorkOS::EventContext.new(hash[:context]) : nil
32
32
  end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class ApiKeyUpdatedData < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ id: :id,
10
+ owner: :owner,
11
+ name: :name,
12
+ obfuscated_value: :obfuscated_value,
13
+ last_used_at: :last_used_at,
14
+ expires_at: :expires_at,
15
+ permissions: :permissions,
16
+ created_at: :created_at,
17
+ updated_at: :updated_at,
18
+ previous_attributes: :previous_attributes
19
+ }.freeze
20
+
21
+ attr_accessor \
22
+ :object,
23
+ :id,
24
+ :owner,
25
+ :name,
26
+ :obfuscated_value,
27
+ :last_used_at,
28
+ :expires_at,
29
+ :permissions,
30
+ :created_at,
31
+ :updated_at,
32
+ :previous_attributes
33
+
34
+ def initialize(json)
35
+ hash = self.class.normalize(json)
36
+ @object = hash[:object]
37
+ @id = hash[:id]
38
+ @owner = hash[:owner] ? (case hash[:owner][:type] when "organization" then WorkOS::ApiKeyUpdatedDataOwner.new(hash[:owner]) when "user" then WorkOS::UserApiKeyUpdatedDataOwner.new(hash[:owner]) else hash[:owner] end) : nil
39
+ @name = hash[:name]
40
+ @obfuscated_value = hash[:obfuscated_value]
41
+ @last_used_at = hash[:last_used_at]
42
+ @expires_at = hash[:expires_at]
43
+ @permissions = hash[:permissions] || []
44
+ @created_at = hash[:created_at]
45
+ @updated_at = hash[:updated_at]
46
+ @previous_attributes = hash[:previous_attributes] ? WorkOS::ApiKeyUpdatedDataPreviousAttribute.new(hash[:previous_attributes]) : nil
47
+ end
48
+ end
49
+ end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module WorkOS
6
- DsyncDeactivatedDataDomain = DsyncActivatedDataDomain
6
+ ApiKeyUpdatedDataOwner = ApiKeyCreatedDataOwner
7
7
  end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class ApiKeyUpdatedDataPreviousAttribute < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ expires_at: :expires_at
9
+ }.freeze
10
+
11
+ attr_accessor :expires_at
12
+
13
+ def initialize(json)
14
+ hash = self.class.normalize(json)
15
+ @expires_at = hash[:expires_at]
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class ExpireApiKey < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ expires_at: :expires_at
9
+ }.freeze
10
+
11
+ attr_accessor :expires_at
12
+
13
+ def initialize(json)
14
+ hash = self.class.normalize(json)
15
+ @expires_at = hash[:expires_at]
16
+ end
17
+ end
18
+ end
@@ -127,5 +127,30 @@ module WorkOS
127
127
  )
128
128
  nil
129
129
  end
130
+
131
+ # Expire an API key
132
+ # @param id [String] The unique ID of the API key.
133
+ # @param expires_at [String, nil] When the API key should expire. If omitted or in the past, the key expires immediately. Use null to clear a scheduled future expiration.
134
+ # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
135
+ # @return [WorkOS::ApiKey]
136
+ def create_api_key_expire(
137
+ id:,
138
+ expires_at: nil,
139
+ request_options: {}
140
+ )
141
+ body = {
142
+ "expires_at" => expires_at
143
+ }.compact
144
+ response = @client.request(
145
+ method: :post,
146
+ path: "/api_keys/#{WorkOS::Util.encode_path(id)}/expire",
147
+ auth: true,
148
+ body: body,
149
+ request_options: request_options
150
+ )
151
+ result = WorkOS::ApiKey.new(response.body)
152
+ result.last_response = WorkOS::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"])
153
+ result
154
+ end
130
155
  end
131
156
  end
@@ -93,7 +93,7 @@ module WorkOS
93
93
  # @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"`.
94
94
  # @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"`.
95
95
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
96
- # @param order [WorkOS::Types::PaginationOrder, 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.
96
+ # @param order [WorkOS::Types::PaginationOrder, 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).
97
97
  # @param permission_slug [String] The permission slug to filter by. Only child resources where the organization membership has this permission are returned.
98
98
  # @param parent_resource [WorkOS::Authorization::ParentResourceById, WorkOS::Authorization::ParentResourceByExternalId] Identifies the parent resource.
99
99
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
@@ -157,7 +157,7 @@ module WorkOS
157
157
  # @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"`.
158
158
  # @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"`.
159
159
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
160
- # @param order [WorkOS::Types::PaginationOrder, 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.
160
+ # @param order [WorkOS::Types::PaginationOrder, 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).
161
161
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
162
162
  # @return [WorkOS::Types::ListStruct<WorkOS::AuthorizationPermission>]
163
163
  def list_effective_permissions(
@@ -208,7 +208,7 @@ module WorkOS
208
208
  # @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"`.
209
209
  # @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"`.
210
210
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
211
- # @param order [WorkOS::Types::PaginationOrder, 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.
211
+ # @param order [WorkOS::Types::PaginationOrder, 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).
212
212
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
213
213
  # @return [WorkOS::Types::ListStruct<WorkOS::AuthorizationPermission>]
214
214
  def list_effective_permissions_by_external_id(
@@ -259,7 +259,7 @@ module WorkOS
259
259
  # @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"`.
260
260
  # @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"`.
261
261
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
262
- # @param order [WorkOS::Types::PaginationOrder, 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.
262
+ # @param order [WorkOS::Types::PaginationOrder, 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).
263
263
  # @param resource_id [String, nil] Filter assignments by the ID of the resource.
264
264
  # @param resource_external_id [String, nil] Filter assignments by the external ID of the resource.
265
265
  # @param resource_type_slug [String, nil] Filter assignments by the slug of the resource type.
@@ -706,7 +706,7 @@ module WorkOS
706
706
  # @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"`.
707
707
  # @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"`.
708
708
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
709
- # @param order [WorkOS::Types::PaginationOrder, 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.
709
+ # @param order [WorkOS::Types::PaginationOrder, 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).
710
710
  # @param permission_slug [String] The permission slug to filter by. Only users with this permission on the resource are returned.
711
711
  # @param assignment [WorkOS::Types::AuthorizationAssignment, nil] Filter by assignment type. Use "direct" for direct assignments only, or "indirect" to include inherited assignments.
712
712
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
@@ -767,7 +767,7 @@ module WorkOS
767
767
  # @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"`.
768
768
  # @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"`.
769
769
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
770
- # @param order [WorkOS::Types::PaginationOrder, 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.
770
+ # @param order [WorkOS::Types::PaginationOrder, 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).
771
771
  # @param role_slug [String, nil] Filter assignments by the slug of the role.
772
772
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
773
773
  # @return [WorkOS::Types::ListStruct<WorkOS::UserRoleAssignment>]
@@ -821,7 +821,7 @@ module WorkOS
821
821
  # @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"`.
822
822
  # @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"`.
823
823
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
824
- # @param order [WorkOS::Types::PaginationOrder, 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.
824
+ # @param order [WorkOS::Types::PaginationOrder, 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).
825
825
  # @param organization_id [String, nil] Filter resources by organization ID.
826
826
  # @param resource_type_slug [String, nil] Filter resources by resource type slug.
827
827
  # @param resource_external_id [String, nil] Filter resources by external ID.
@@ -1023,7 +1023,7 @@ module WorkOS
1023
1023
  # @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"`.
1024
1024
  # @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"`.
1025
1025
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
1026
- # @param order [WorkOS::Types::PaginationOrder, 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.
1026
+ # @param order [WorkOS::Types::PaginationOrder, 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).
1027
1027
  # @param permission_slug [String] The permission slug to filter by. Only users with this permission on the resource are returned.
1028
1028
  # @param assignment [WorkOS::Types::AuthorizationAssignment, nil] Filter by assignment type. Use `direct` for direct assignments only, or `indirect` to include inherited assignments.
1029
1029
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
@@ -1078,7 +1078,7 @@ module WorkOS
1078
1078
  # @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"`.
1079
1079
  # @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"`.
1080
1080
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
1081
- # @param order [WorkOS::Types::PaginationOrder, 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.
1081
+ # @param order [WorkOS::Types::PaginationOrder, 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).
1082
1082
  # @param role_slug [String, nil] Filter assignments by the slug of the role.
1083
1083
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
1084
1084
  # @return [WorkOS::Types::ListStruct<WorkOS::UserRoleAssignment>]
@@ -1272,7 +1272,7 @@ module WorkOS
1272
1272
  # @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"`.
1273
1273
  # @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"`.
1274
1274
  # @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
1275
- # @param order [WorkOS::Types::PaginationOrder, 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.
1275
+ # @param order [WorkOS::Types::PaginationOrder, 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).
1276
1276
  # @param request_options [Hash] (see WorkOS::Types::RequestOptions)
1277
1277
  # @return [WorkOS::Types::ListStruct<WorkOS::AuthorizationPermission>]
1278
1278
  def list_permissions(