workos 2.17.0 → 3.0.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 (109) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/Gemfile.lock +5 -14
  4. data/lib/workos/authentication_factor_and_challenge.rb +31 -0
  5. data/lib/workos/authentication_response.rb +27 -0
  6. data/lib/workos/invitation.rb +68 -0
  7. data/lib/workos/organization_membership.rb +50 -0
  8. data/lib/workos/types/invitation_struct.rb +20 -0
  9. data/lib/workos/types/magic_auth_challenge_struct.rb +12 -0
  10. data/lib/workos/types/organization_membership_struct.rb +15 -0
  11. data/lib/workos/types/user_struct.rb +17 -0
  12. data/lib/workos/types.rb +9 -5
  13. data/lib/workos/user.rb +57 -0
  14. data/lib/workos/user_and_token.rb +29 -0
  15. data/lib/workos/user_management.rb +1008 -0
  16. data/lib/workos/user_response.rb +25 -0
  17. data/lib/workos/version.rb +1 -1
  18. data/lib/workos.rb +17 -12
  19. data/spec/lib/workos/user_management_spec.rb +1092 -0
  20. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/invalid.yml +84 -0
  21. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/valid.yml +82 -0
  22. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_email_verification/invalid.yml +83 -0
  23. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_email_verification/valid.yml +81 -0
  24. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_magic_auth/invalid.yml +82 -0
  25. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_magic_auth/valid.yml +82 -0
  26. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_organization_selection/invalid.yml +81 -0
  27. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_organization_selection/valid.yml +82 -0
  28. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/invalid.yml +82 -0
  29. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/valid.yml +82 -0
  30. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_totp/invalid.yml +83 -0
  31. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_totp/valid.yml +81 -0
  32. data/spec/support/fixtures/vcr_cassettes/user_management/confirm_password_reset/invalid.yml +82 -0
  33. data/spec/support/fixtures/vcr_cassettes/user_management/confirm_password_reset/valid.yml +82 -0
  34. data/spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/invalid.yml +83 -0
  35. data/spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/valid.yml +82 -0
  36. data/spec/support/fixtures/vcr_cassettes/user_management/create_user_invalid.yml +83 -0
  37. data/spec/support/fixtures/vcr_cassettes/user_management/create_user_valid.yml +82 -0
  38. data/spec/support/fixtures/vcr_cassettes/user_management/delete_organization_membership/invalid.yml +82 -0
  39. data/spec/support/fixtures/vcr_cassettes/user_management/delete_organization_membership/valid.yml +78 -0
  40. data/spec/support/fixtures/vcr_cassettes/user_management/delete_user/invalid.yml +82 -0
  41. data/spec/support/fixtures/vcr_cassettes/user_management/delete_user/valid.yml +78 -0
  42. data/spec/support/fixtures/vcr_cassettes/user_management/enroll_auth_factor/invalid.yml +82 -0
  43. data/spec/support/fixtures/vcr_cassettes/user_management/enroll_auth_factor/valid.yml +82 -0
  44. data/spec/support/fixtures/vcr_cassettes/user_management/get_invitation/invalid.yml +82 -0
  45. data/spec/support/fixtures/vcr_cassettes/user_management/get_invitation/valid.yml +82 -0
  46. data/spec/support/fixtures/vcr_cassettes/user_management/get_organization_membership.yml +82 -0
  47. data/spec/support/fixtures/vcr_cassettes/user_management/get_user.yml +82 -0
  48. data/spec/support/fixtures/vcr_cassettes/user_management/list_auth_factors/invalid.yml +82 -0
  49. data/spec/support/fixtures/vcr_cassettes/user_management/list_auth_factors/valid.yml +82 -0
  50. data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_after.yml +83 -0
  51. data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_before.yml +83 -0
  52. data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_limit.yml +83 -0
  53. data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_no_options.yml +83 -0
  54. data/spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_organization_id.yml +83 -0
  55. data/spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/no_options.yml +82 -0
  56. data/spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/with_options.yml +82 -0
  57. data/spec/support/fixtures/vcr_cassettes/user_management/list_users/no_options.yml +82 -0
  58. data/spec/support/fixtures/vcr_cassettes/user_management/list_users/with_options.yml +82 -0
  59. data/spec/support/fixtures/vcr_cassettes/user_management/reset_password/invalid.yml +82 -0
  60. data/spec/support/fixtures/vcr_cassettes/user_management/reset_password/valid.yml +82 -0
  61. data/spec/support/fixtures/vcr_cassettes/user_management/revoke_invitation/invalid.yml +82 -0
  62. data/spec/support/fixtures/vcr_cassettes/user_management/revoke_invitation/valid.yml +82 -0
  63. data/spec/support/fixtures/vcr_cassettes/user_management/send_invitation/invalid.yml +82 -0
  64. data/spec/support/fixtures/vcr_cassettes/user_management/send_invitation/valid.yml +82 -0
  65. data/spec/support/fixtures/vcr_cassettes/user_management/send_magic_auth_code/valid.yml +82 -0
  66. data/spec/support/fixtures/vcr_cassettes/user_management/send_password_reset_email/invalid.yml +83 -0
  67. data/spec/support/fixtures/vcr_cassettes/user_management/send_password_reset_email/valid.yml +82 -0
  68. data/spec/support/fixtures/vcr_cassettes/user_management/send_verification_email/invalid.yml +82 -0
  69. data/spec/support/fixtures/vcr_cassettes/user_management/send_verification_email/valid.yml +82 -0
  70. data/spec/support/fixtures/vcr_cassettes/user_management/update_user/invalid.yml +82 -0
  71. data/spec/support/fixtures/vcr_cassettes/user_management/update_user/valid.yml +82 -0
  72. data/spec/support/fixtures/vcr_cassettes/user_management/update_user_password/invalid.yml +82 -0
  73. data/spec/support/fixtures/vcr_cassettes/user_management/update_user_password/valid.yml +82 -0
  74. data/spec/support/fixtures/vcr_cassettes/user_management/verify_email/invalid_code.yml +83 -0
  75. data/spec/support/fixtures/vcr_cassettes/user_management/verify_email/invalid_magic_auth_challenge.yml +82 -0
  76. data/spec/support/fixtures/vcr_cassettes/user_management/verify_email/valid.yml +82 -0
  77. data/workos.gemspec +0 -1
  78. metadata +131 -49
  79. data/bin/docs +0 -5
  80. data/docs/WorkOS/APIError.html +0 -160
  81. data/docs/WorkOS/AuditLog.html +0 -235
  82. data/docs/WorkOS/AuditTrail.html +0 -235
  83. data/docs/WorkOS/AuthenticationError.html +0 -160
  84. data/docs/WorkOS/Base.html +0 -287
  85. data/docs/WorkOS/Client.html +0 -504
  86. data/docs/WorkOS/InvalidRequestError.html +0 -160
  87. data/docs/WorkOS/Profile.html +0 -788
  88. data/docs/WorkOS/RequestError.html +0 -135
  89. data/docs/WorkOS/SSO.html +0 -691
  90. data/docs/WorkOS/Types/ProfileStruct.html +0 -135
  91. data/docs/WorkOS/Types/Provider.html +0 -135
  92. data/docs/WorkOS/Types.html +0 -128
  93. data/docs/WorkOS/WorkOSError.html +0 -447
  94. data/docs/WorkOS.html +0 -324
  95. data/docs/class_list.html +0 -51
  96. data/docs/css/common.css +0 -1
  97. data/docs/css/full_list.css +0 -58
  98. data/docs/css/style.css +0 -496
  99. data/docs/file.README.html +0 -252
  100. data/docs/file_list.html +0 -56
  101. data/docs/frames.html +0 -17
  102. data/docs/index.html +0 -250
  103. data/docs/js/app.js +0 -314
  104. data/docs/js/full_list.js +0 -216
  105. data/docs/js/jquery.js +0 -4
  106. data/docs/method_list.html +0 -267
  107. data/docs/top-level-namespace.html +0 -110
  108. data/lib/workos/audit_trail.rb +0 -111
  109. data/spec/lib/workos/audit_trail_spec.rb +0 -146
@@ -0,0 +1,82 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.workos.com/user_management/users/user_01H968BR1R84DSPYS9QR5PM6RZ/email_verification/confirm
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"code":"333495"}'
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-darwin21; v2.16.0
18
+ Authorization:
19
+ - Bearer <API_KEY>
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ Date:
26
+ - Thu, 31 Aug 2023 16:57:30 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Content-Length:
30
+ - "375"
31
+ Connection:
32
+ - keep-alive
33
+ Cf-Ray:
34
+ - 7ff6d01c4853c71d-SEA
35
+ Cf-Cache-Status:
36
+ - DYNAMIC
37
+ Etag:
38
+ - W/"177-YBu4ZtIor9/cOTTWMVDcStQWgKw"
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
+ - 04bda556-68f2-4d4a-bf9a-4c062ef6a74c
67
+ X-Xss-Protection:
68
+ - "0"
69
+ Set-Cookie:
70
+ - __cf_bm=qyedAgoptBqJ5xN5lPHoIU9qwCUCQvbE3HD8c76nhUk-1693501050-0-AcNrMwoG1S+cyYFaLGGofemD2IQZEpdx4y1XWCEMFHec7s4VMppzx23C+RjWZW2swKRgz9N172Txwwh4bPatEvQ=;
71
+ path=/; expires=Thu, 31-Aug-23 17:27:30 GMT; domain=.workos.com; HttpOnly;
72
+ Secure; SameSite=None
73
+ - __cfruid=682f9a6af8fd91f62014876911781063f77faebe-1693501050; path=/; domain=.workos.com;
74
+ HttpOnly; Secure; SameSite=None
75
+ Server:
76
+ - cloudflare
77
+ body:
78
+ encoding: UTF-8
79
+ string: '{"user":{"object":"user","id":"user_01H968BR1R84DSPYS9QR5PM6RZ","email":"test@workos.com","email_verified":true,"first_name":"Adam","last_name":"Test","created_at":"2023-08-31T16:55:56.619Z","updated_at":"2023-08-31T16:57:30.574Z","user_type":"unmanaged","email_verified_at":"2023-08-31T16:57:30.628Z","google_oauth_profile_id":null,"microsoft_oauth_profile_id":null}}'
80
+ http_version:
81
+ recorded_at: Thu, 31 Aug 2023 16:57:30 GMT
82
+ recorded_with: VCR 5.0.0
data/workos.gemspec CHANGED
@@ -31,7 +31,6 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency 'tapioca'
32
32
  spec.add_development_dependency 'vcr', '~> 5.0.0'
33
33
  spec.add_development_dependency 'webmock'
34
- spec.add_development_dependency 'yard'
35
34
 
36
35
  spec.required_ruby_version = '>= 2.5'
37
36
  end
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: 2.17.0
4
+ version: 3.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-14 00:00:00.000000000 Z
11
+ date: 2023-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorbet-runtime
@@ -136,20 +136,6 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: yard
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
139
  description: API client for WorkOS
154
140
  email:
155
141
  - support@workos.com
@@ -172,44 +158,16 @@ files:
172
158
  - README.md
173
159
  - bin/build
174
160
  - bin/console
175
- - bin/docs
176
161
  - bin/publish
177
162
  - bin/tapioca
178
163
  - codecov.yml
179
164
  - devbox.json
180
165
  - devbox.lock
181
- - docs/WorkOS.html
182
- - docs/WorkOS/APIError.html
183
- - docs/WorkOS/AuditLog.html
184
- - docs/WorkOS/AuditTrail.html
185
- - docs/WorkOS/AuthenticationError.html
186
- - docs/WorkOS/Base.html
187
- - docs/WorkOS/Client.html
188
- - docs/WorkOS/InvalidRequestError.html
189
- - docs/WorkOS/Profile.html
190
- - docs/WorkOS/RequestError.html
191
- - docs/WorkOS/SSO.html
192
- - docs/WorkOS/Types.html
193
- - docs/WorkOS/Types/ProfileStruct.html
194
- - docs/WorkOS/Types/Provider.html
195
- - docs/WorkOS/WorkOSError.html
196
- - docs/class_list.html
197
- - docs/css/common.css
198
- - docs/css/full_list.css
199
- - docs/css/style.css
200
- - docs/file.README.html
201
- - docs/file_list.html
202
- - docs/frames.html
203
- - docs/index.html
204
- - docs/js/app.js
205
- - docs/js/full_list.js
206
- - docs/js/jquery.js
207
- - docs/method_list.html
208
- - docs/top-level-namespace.html
209
166
  - lib/workos.rb
210
167
  - lib/workos/audit_log_export.rb
211
168
  - lib/workos/audit_logs.rb
212
- - lib/workos/audit_trail.rb
169
+ - lib/workos/authentication_factor_and_challenge.rb
170
+ - lib/workos/authentication_response.rb
213
171
  - lib/workos/challenge.rb
214
172
  - lib/workos/client.rb
215
173
  - lib/workos/configuration.rb
@@ -224,8 +182,10 @@ files:
224
182
  - lib/workos/events.rb
225
183
  - lib/workos/factor.rb
226
184
  - lib/workos/hash_provider.rb
185
+ - lib/workos/invitation.rb
227
186
  - lib/workos/mfa.rb
228
187
  - lib/workos/organization.rb
188
+ - lib/workos/organization_membership.rb
229
189
  - lib/workos/organizations.rb
230
190
  - lib/workos/passwordless.rb
231
191
  - lib/workos/portal.rb
@@ -242,13 +202,21 @@ files:
242
202
  - lib/workos/types/event_struct.rb
243
203
  - lib/workos/types/factor_struct.rb
244
204
  - lib/workos/types/intent_enum.rb
205
+ - lib/workos/types/invitation_struct.rb
245
206
  - lib/workos/types/list_struct.rb
207
+ - lib/workos/types/magic_auth_challenge_struct.rb
208
+ - lib/workos/types/organization_membership_struct.rb
246
209
  - lib/workos/types/organization_struct.rb
247
210
  - lib/workos/types/passwordless_session_struct.rb
248
211
  - lib/workos/types/profile_struct.rb
249
212
  - lib/workos/types/provider_enum.rb
213
+ - lib/workos/types/user_struct.rb
250
214
  - lib/workos/types/verify_challenge_struct.rb
251
215
  - lib/workos/types/webhook_struct.rb
216
+ - lib/workos/user.rb
217
+ - lib/workos/user_and_token.rb
218
+ - lib/workos/user_management.rb
219
+ - lib/workos/user_response.rb
252
220
  - lib/workos/verify_challenge.rb
253
221
  - lib/workos/version.rb
254
222
  - lib/workos/webhook.rb
@@ -296,7 +264,6 @@ files:
296
264
  - sorbet/tapioca/config.yml
297
265
  - sorbet/tapioca/require.rb
298
266
  - spec/lib/workos/audit_logs_spec.rb
299
- - spec/lib/workos/audit_trail_spec.rb
300
267
  - spec/lib/workos/configuration_spec.rb
301
268
  - spec/lib/workos/directory_sync_spec.rb
302
269
  - spec/lib/workos/directory_user_spec.rb
@@ -306,6 +273,7 @@ files:
306
273
  - spec/lib/workos/passwordless_spec.rb
307
274
  - spec/lib/workos/portal_spec.rb
308
275
  - spec/lib/workos/sso_spec.rb
276
+ - spec/lib/workos/user_management_spec.rb
309
277
  - spec/lib/workos/webhooks_spec.rb
310
278
  - spec/spec_helper.rb
311
279
  - spec/support/fixtures/vcr_cassettes/audit_logs/create_event.yml
@@ -394,6 +362,63 @@ files:
394
362
  - spec/support/fixtures/vcr_cassettes/sso/list_connections/with_no_options.yml
395
363
  - spec/support/fixtures/vcr_cassettes/sso/list_connections/with_organization_id.yml
396
364
  - spec/support/fixtures/vcr_cassettes/sso/profile.yml
365
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/invalid.yml
366
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/valid.yml
367
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_email_verification/invalid.yml
368
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_email_verification/valid.yml
369
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_magic_auth/invalid.yml
370
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_magic_auth/valid.yml
371
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_organization_selection/invalid.yml
372
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_organization_selection/valid.yml
373
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/invalid.yml
374
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/valid.yml
375
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_totp/invalid.yml
376
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_totp/valid.yml
377
+ - spec/support/fixtures/vcr_cassettes/user_management/confirm_password_reset/invalid.yml
378
+ - spec/support/fixtures/vcr_cassettes/user_management/confirm_password_reset/valid.yml
379
+ - spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/invalid.yml
380
+ - spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/valid.yml
381
+ - spec/support/fixtures/vcr_cassettes/user_management/create_user_invalid.yml
382
+ - spec/support/fixtures/vcr_cassettes/user_management/create_user_valid.yml
383
+ - spec/support/fixtures/vcr_cassettes/user_management/delete_organization_membership/invalid.yml
384
+ - spec/support/fixtures/vcr_cassettes/user_management/delete_organization_membership/valid.yml
385
+ - spec/support/fixtures/vcr_cassettes/user_management/delete_user/invalid.yml
386
+ - spec/support/fixtures/vcr_cassettes/user_management/delete_user/valid.yml
387
+ - spec/support/fixtures/vcr_cassettes/user_management/enroll_auth_factor/invalid.yml
388
+ - spec/support/fixtures/vcr_cassettes/user_management/enroll_auth_factor/valid.yml
389
+ - spec/support/fixtures/vcr_cassettes/user_management/get_invitation/invalid.yml
390
+ - spec/support/fixtures/vcr_cassettes/user_management/get_invitation/valid.yml
391
+ - spec/support/fixtures/vcr_cassettes/user_management/get_organization_membership.yml
392
+ - spec/support/fixtures/vcr_cassettes/user_management/get_user.yml
393
+ - spec/support/fixtures/vcr_cassettes/user_management/list_auth_factors/invalid.yml
394
+ - spec/support/fixtures/vcr_cassettes/user_management/list_auth_factors/valid.yml
395
+ - spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_after.yml
396
+ - spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_before.yml
397
+ - spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_limit.yml
398
+ - spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_no_options.yml
399
+ - spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_organization_id.yml
400
+ - spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/no_options.yml
401
+ - spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/with_options.yml
402
+ - spec/support/fixtures/vcr_cassettes/user_management/list_users/no_options.yml
403
+ - spec/support/fixtures/vcr_cassettes/user_management/list_users/with_options.yml
404
+ - spec/support/fixtures/vcr_cassettes/user_management/reset_password/invalid.yml
405
+ - spec/support/fixtures/vcr_cassettes/user_management/reset_password/valid.yml
406
+ - spec/support/fixtures/vcr_cassettes/user_management/revoke_invitation/invalid.yml
407
+ - spec/support/fixtures/vcr_cassettes/user_management/revoke_invitation/valid.yml
408
+ - spec/support/fixtures/vcr_cassettes/user_management/send_invitation/invalid.yml
409
+ - spec/support/fixtures/vcr_cassettes/user_management/send_invitation/valid.yml
410
+ - spec/support/fixtures/vcr_cassettes/user_management/send_magic_auth_code/valid.yml
411
+ - spec/support/fixtures/vcr_cassettes/user_management/send_password_reset_email/invalid.yml
412
+ - spec/support/fixtures/vcr_cassettes/user_management/send_password_reset_email/valid.yml
413
+ - spec/support/fixtures/vcr_cassettes/user_management/send_verification_email/invalid.yml
414
+ - spec/support/fixtures/vcr_cassettes/user_management/send_verification_email/valid.yml
415
+ - spec/support/fixtures/vcr_cassettes/user_management/update_user/invalid.yml
416
+ - spec/support/fixtures/vcr_cassettes/user_management/update_user/valid.yml
417
+ - spec/support/fixtures/vcr_cassettes/user_management/update_user_password/invalid.yml
418
+ - spec/support/fixtures/vcr_cassettes/user_management/update_user_password/valid.yml
419
+ - spec/support/fixtures/vcr_cassettes/user_management/verify_email/invalid_code.yml
420
+ - spec/support/fixtures/vcr_cassettes/user_management/verify_email/invalid_magic_auth_challenge.yml
421
+ - spec/support/fixtures/vcr_cassettes/user_management/verify_email/valid.yml
397
422
  - spec/support/profile.txt
398
423
  - spec/support/shared_examples/client_spec.rb
399
424
  - spec/support/webhook_payload.txt
@@ -418,13 +443,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
418
443
  - !ruby/object:Gem::Version
419
444
  version: '0'
420
445
  requirements: []
421
- rubygems_version: 3.4.22
446
+ rubygems_version: 3.5.3
422
447
  signing_key:
423
448
  specification_version: 4
424
449
  summary: API client for WorkOS
425
450
  test_files:
426
451
  - spec/lib/workos/audit_logs_spec.rb
427
- - spec/lib/workos/audit_trail_spec.rb
428
452
  - spec/lib/workos/configuration_spec.rb
429
453
  - spec/lib/workos/directory_sync_spec.rb
430
454
  - spec/lib/workos/directory_user_spec.rb
@@ -434,6 +458,7 @@ test_files:
434
458
  - spec/lib/workos/passwordless_spec.rb
435
459
  - spec/lib/workos/portal_spec.rb
436
460
  - spec/lib/workos/sso_spec.rb
461
+ - spec/lib/workos/user_management_spec.rb
437
462
  - spec/lib/workos/webhooks_spec.rb
438
463
  - spec/spec_helper.rb
439
464
  - spec/support/fixtures/vcr_cassettes/audit_logs/create_event.yml
@@ -522,6 +547,63 @@ test_files:
522
547
  - spec/support/fixtures/vcr_cassettes/sso/list_connections/with_no_options.yml
523
548
  - spec/support/fixtures/vcr_cassettes/sso/list_connections/with_organization_id.yml
524
549
  - spec/support/fixtures/vcr_cassettes/sso/profile.yml
550
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/invalid.yml
551
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/valid.yml
552
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_email_verification/invalid.yml
553
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_email_verification/valid.yml
554
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_magic_auth/invalid.yml
555
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_magic_auth/valid.yml
556
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_organization_selection/invalid.yml
557
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_organization_selection/valid.yml
558
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/invalid.yml
559
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/valid.yml
560
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_totp/invalid.yml
561
+ - spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_totp/valid.yml
562
+ - spec/support/fixtures/vcr_cassettes/user_management/confirm_password_reset/invalid.yml
563
+ - spec/support/fixtures/vcr_cassettes/user_management/confirm_password_reset/valid.yml
564
+ - spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/invalid.yml
565
+ - spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/valid.yml
566
+ - spec/support/fixtures/vcr_cassettes/user_management/create_user_invalid.yml
567
+ - spec/support/fixtures/vcr_cassettes/user_management/create_user_valid.yml
568
+ - spec/support/fixtures/vcr_cassettes/user_management/delete_organization_membership/invalid.yml
569
+ - spec/support/fixtures/vcr_cassettes/user_management/delete_organization_membership/valid.yml
570
+ - spec/support/fixtures/vcr_cassettes/user_management/delete_user/invalid.yml
571
+ - spec/support/fixtures/vcr_cassettes/user_management/delete_user/valid.yml
572
+ - spec/support/fixtures/vcr_cassettes/user_management/enroll_auth_factor/invalid.yml
573
+ - spec/support/fixtures/vcr_cassettes/user_management/enroll_auth_factor/valid.yml
574
+ - spec/support/fixtures/vcr_cassettes/user_management/get_invitation/invalid.yml
575
+ - spec/support/fixtures/vcr_cassettes/user_management/get_invitation/valid.yml
576
+ - spec/support/fixtures/vcr_cassettes/user_management/get_organization_membership.yml
577
+ - spec/support/fixtures/vcr_cassettes/user_management/get_user.yml
578
+ - spec/support/fixtures/vcr_cassettes/user_management/list_auth_factors/invalid.yml
579
+ - spec/support/fixtures/vcr_cassettes/user_management/list_auth_factors/valid.yml
580
+ - spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_after.yml
581
+ - spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_before.yml
582
+ - spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_limit.yml
583
+ - spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_no_options.yml
584
+ - spec/support/fixtures/vcr_cassettes/user_management/list_invitations/with_organization_id.yml
585
+ - spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/no_options.yml
586
+ - spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/with_options.yml
587
+ - spec/support/fixtures/vcr_cassettes/user_management/list_users/no_options.yml
588
+ - spec/support/fixtures/vcr_cassettes/user_management/list_users/with_options.yml
589
+ - spec/support/fixtures/vcr_cassettes/user_management/reset_password/invalid.yml
590
+ - spec/support/fixtures/vcr_cassettes/user_management/reset_password/valid.yml
591
+ - spec/support/fixtures/vcr_cassettes/user_management/revoke_invitation/invalid.yml
592
+ - spec/support/fixtures/vcr_cassettes/user_management/revoke_invitation/valid.yml
593
+ - spec/support/fixtures/vcr_cassettes/user_management/send_invitation/invalid.yml
594
+ - spec/support/fixtures/vcr_cassettes/user_management/send_invitation/valid.yml
595
+ - spec/support/fixtures/vcr_cassettes/user_management/send_magic_auth_code/valid.yml
596
+ - spec/support/fixtures/vcr_cassettes/user_management/send_password_reset_email/invalid.yml
597
+ - spec/support/fixtures/vcr_cassettes/user_management/send_password_reset_email/valid.yml
598
+ - spec/support/fixtures/vcr_cassettes/user_management/send_verification_email/invalid.yml
599
+ - spec/support/fixtures/vcr_cassettes/user_management/send_verification_email/valid.yml
600
+ - spec/support/fixtures/vcr_cassettes/user_management/update_user/invalid.yml
601
+ - spec/support/fixtures/vcr_cassettes/user_management/update_user/valid.yml
602
+ - spec/support/fixtures/vcr_cassettes/user_management/update_user_password/invalid.yml
603
+ - spec/support/fixtures/vcr_cassettes/user_management/update_user_password/valid.yml
604
+ - spec/support/fixtures/vcr_cassettes/user_management/verify_email/invalid_code.yml
605
+ - spec/support/fixtures/vcr_cassettes/user_management/verify_email/invalid_magic_auth_challenge.yml
606
+ - spec/support/fixtures/vcr_cassettes/user_management/verify_email/valid.yml
525
607
  - spec/support/profile.txt
526
608
  - spec/support/shared_examples/client_spec.rb
527
609
  - spec/support/webhook_payload.txt
data/bin/docs DELETED
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- bundle exec yard -o docs
4
- rm docs/index.html
5
- mv docs/_index.html docs/index.html
@@ -1,160 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Exception: WorkOS::APIError
8
-
9
- &mdash; Documentation by YARD 0.9.22
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
-
17
- <script type="text/javascript">
18
- pathId = "WorkOS::APIError";
19
- relpath = '../';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="../class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../_index.html">Index (A)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../WorkOS.html" title="WorkOS (module)">WorkOS</a></span></span>
41
- &raquo;
42
- <span class="title">APIError</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="../class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Exception: WorkOS::APIError
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName"><span class='object_link'><a href="WorkOSError.html" title="WorkOS::WorkOSError (class)">WorkOSError</a></span></span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next">StandardError</li>
78
-
79
- <li class="next"><span class='object_link'><a href="WorkOSError.html" title="WorkOS::WorkOSError (class)">WorkOSError</a></span></li>
80
-
81
- <li class="next">WorkOS::APIError</li>
82
-
83
- </ul>
84
- <a href="#" class="inheritanceTree">show all</a>
85
-
86
- </dd>
87
- </dl>
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
- <dl>
100
- <dt>Defined in:</dt>
101
- <dd>lib/workos/errors.rb</dd>
102
- </dl>
103
-
104
- </div>
105
-
106
- <h2>Overview</h2><div class="docstring">
107
- <div class="discussion">
108
-
109
- <p>APIError is a generic error that may be raised in cases where none of the other named errors cover the problem. It could also be raised in the case that a new error has been introduced in the API, but this version of the Ruby SDK doesn&#39;t know how to handle it.</p>
110
-
111
-
112
- </div>
113
- </div>
114
- <div class="tags">
115
-
116
-
117
- </div>
118
-
119
-
120
-
121
-
122
-
123
- <h2>Instance Attribute Summary</h2>
124
-
125
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="WorkOSError.html" title="WorkOS::WorkOSError (class)">WorkOSError</a></span></h3>
126
- <p class="inherited"><span class='object_link'><a href="WorkOSError.html#http_status-instance_method" title="WorkOS::WorkOSError#http_status (method)">#http_status</a></span>, <span class='object_link'><a href="WorkOSError.html#request_id-instance_method" title="WorkOS::WorkOSError#request_id (method)">#request_id</a></span></p>
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
- <h2>Method Summary</h2>
137
-
138
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="WorkOSError.html" title="WorkOS::WorkOSError (class)">WorkOSError</a></span></h3>
139
- <p class="inherited"><span class='object_link'><a href="WorkOSError.html#initialize-instance_method" title="WorkOS::WorkOSError#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="WorkOSError.html#to_s-instance_method" title="WorkOS::WorkOSError#to_s (method)">#to_s</a></span></p>
140
-
141
-
142
- <div id="constructor_details" class="method_details_list">
143
- <h2>Constructor Details</h2>
144
-
145
- <p class="notice">This class inherits a constructor from <span class='object_link'><a href="WorkOSError.html#initialize-instance_method" title="WorkOS::WorkOSError#initialize (method)">WorkOS::WorkOSError</a></span></p>
146
-
147
- </div>
148
-
149
-
150
- </div>
151
-
152
- <div id="footer">
153
- Generated on Tue Apr 7 22:21:08 2020 by
154
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
155
- 0.9.22 (ruby-2.7.1).
156
- </div>
157
-
158
- </div>
159
- </body>
160
- </html>