workos 4.1.0 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +37 -0
- data/.github/workflows/release.yml +43 -0
- data/.rubocop.yml +8 -1
- data/Gemfile.lock +22 -69
- data/lib/workos/audit_log_export.rb +8 -31
- data/lib/workos/audit_logs.rb +0 -26
- data/lib/workos/authentication_factor_and_challenge.rb +0 -3
- data/lib/workos/authentication_response.rb +3 -6
- data/lib/workos/challenge.rb +9 -28
- data/lib/workos/client.rb +0 -41
- data/lib/workos/configuration.rb +0 -1
- data/lib/workos/connection.rb +11 -35
- data/lib/workos/directory.rb +10 -37
- data/lib/workos/directory_group.rb +9 -36
- data/lib/workos/directory_sync.rb +0 -21
- data/lib/workos/directory_user.rb +17 -51
- data/lib/workos/errors.rb +0 -16
- data/lib/workos/event.rb +5 -26
- data/lib/workos/events.rb +0 -7
- data/lib/workos/factor.rb +9 -28
- data/lib/workos/hash_provider.rb +0 -1
- data/lib/workos/impersonator.rb +0 -3
- data/lib/workos/invitation.rb +12 -37
- data/lib/workos/mfa.rb +0 -42
- data/lib/workos/organization.rb +8 -31
- data/lib/workos/organization_membership.rb +8 -27
- data/lib/workos/organizations.rb +0 -26
- data/lib/workos/passwordless.rb +0 -14
- data/lib/workos/portal.rb +1 -13
- data/lib/workos/profile.rb +12 -39
- data/lib/workos/profile_and_token.rb +1 -4
- data/lib/workos/refresh_authentication_response.rb +2 -5
- data/lib/workos/sso.rb +1 -43
- data/lib/workos/types/intent.rb +16 -0
- data/lib/workos/types/list_struct.rb +8 -5
- data/lib/workos/types/passwordless_session_struct.rb +10 -9
- data/lib/workos/types/provider.rb +15 -0
- data/lib/workos/types.rb +5 -23
- data/lib/workos/user.rb +10 -31
- data/lib/workos/user_and_token.rb +1 -4
- data/lib/workos/user_management.rb +36 -244
- data/lib/workos/user_response.rb +0 -3
- data/lib/workos/verify_challenge.rb +4 -18
- data/lib/workos/version.rb +1 -2
- data/lib/workos/webhook.rb +5 -26
- data/lib/workos/webhooks.rb +1 -38
- data/lib/workos.rb +0 -2
- data/spec/lib/workos/audit_logs_spec.rb +2 -3
- data/spec/lib/workos/configuration_spec.rb +0 -1
- data/spec/lib/workos/directory_sync_spec.rb +0 -1
- data/spec/lib/workos/directory_user_spec.rb +0 -1
- data/spec/lib/workos/event_spec.rb +0 -1
- data/spec/lib/workos/mfa_spec.rb +0 -1
- data/spec/lib/workos/organizations_spec.rb +0 -1
- data/spec/lib/workos/passwordless_spec.rb +0 -1
- data/spec/lib/workos/portal_spec.rb +0 -1
- data/spec/lib/workos/sso_spec.rb +0 -1
- data/spec/lib/workos/user_management_spec.rb +29 -1
- data/spec/lib/workos/webhooks_spec.rb +0 -1
- data/spec/spec_helper.rb +0 -9
- data/spec/support/fixtures/vcr_cassettes/user_management/revoke_session/not_found.yml +80 -0
- data/spec/support/fixtures/vcr_cassettes/user_management/revoke_session/valid.yml +76 -0
- data/spec/support/shared_examples/client_spec.rb +0 -1
- data/workos.gemspec +1 -6
- metadata +15 -129
- data/.semaphore/rubygems.yml +0 -24
- data/.semaphore/semaphore.yml +0 -51
- data/bin/tapioca +0 -29
- data/codecov.yml +0 -12
- data/devbox.json +0 -18
- data/devbox.lock +0 -11
- data/lib/workos/types/audit_log_export_struct.rb +0 -17
- data/lib/workos/types/challenge_struct.rb +0 -18
- data/lib/workos/types/connection_struct.rb +0 -20
- data/lib/workos/types/directory_group_struct.rb +0 -19
- data/lib/workos/types/directory_struct.rb +0 -19
- data/lib/workos/types/directory_user_struct.rb +0 -26
- data/lib/workos/types/event_struct.rb +0 -15
- data/lib/workos/types/factor_struct.rb +0 -18
- data/lib/workos/types/intent_enum.rb +0 -17
- data/lib/workos/types/invitation_struct.rb +0 -20
- data/lib/workos/types/magic_auth_challenge_struct.rb +0 -12
- data/lib/workos/types/organization_membership_struct.rb +0 -16
- data/lib/workos/types/organization_struct.rb +0 -17
- data/lib/workos/types/profile_struct.rb +0 -21
- data/lib/workos/types/provider_enum.rb +0 -16
- data/lib/workos/types/user_struct.rb +0 -18
- data/lib/workos/types/verify_challenge_struct.rb +0 -13
- data/lib/workos/types/webhook_struct.rb +0 -15
- data/sorbet/config +0 -2
- data/sorbet/rbi/gems/addressable@2.8.0.rbi +0 -290
- data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -54
- data/sorbet/rbi/gems/codecov@0.2.12.rbi +0 -55
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
- data/sorbet/rbi/gems/crack@0.4.5.rbi +0 -57
- data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +0 -185
- data/sorbet/rbi/gems/docile@1.3.5.rbi +0 -54
- data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +0 -82
- data/sorbet/rbi/gems/json@2.5.1.rbi +0 -109
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -8
- data/sorbet/rbi/gems/parallel@1.20.1.rbi +0 -113
- data/sorbet/rbi/gems/parser@3.0.1.0.rbi +0 -1187
- data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -8
- data/sorbet/rbi/gems/public_suffix@4.0.6.rbi +0 -146
- data/sorbet/rbi/gems/rainbow@3.0.0.rbi +0 -153
- data/sorbet/rbi/gems/rake@13.0.3.rbi +0 -807
- data/sorbet/rbi/gems/rbi@0.0.16.rbi +0 -2118
- data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +0 -1117
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -709
- data/sorbet/rbi/gems/rspec-core@3.9.3.rbi +0 -2467
- data/sorbet/rbi/gems/rspec-expectations@3.9.4.rbi +0 -1569
- data/sorbet/rbi/gems/rspec-mocks@3.9.1.rbi +0 -1493
- data/sorbet/rbi/gems/rspec-support@3.9.4.rbi +0 -511
- data/sorbet/rbi/gems/rspec@3.9.0.rbi +0 -38
- data/sorbet/rbi/gems/rubocop-ast@1.4.1.rbi +0 -1881
- data/sorbet/rbi/gems/rubocop@0.93.1.rbi +0 -11497
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -405
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -89
- data/sorbet/rbi/gems/simplecov@0.21.2.rbi +0 -577
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.2.rbi +0 -8
- data/sorbet/rbi/gems/spoom@1.1.15.rbi +0 -1549
- data/sorbet/rbi/gems/tapioca@0.7.3.rbi +0 -1718
- data/sorbet/rbi/gems/thor@1.2.1.rbi +0 -844
- data/sorbet/rbi/gems/unicode-display_width@1.7.0.rbi +0 -22
- data/sorbet/rbi/gems/unparser@0.6.2.rbi +0 -8
- data/sorbet/rbi/gems/vcr@5.0.0.rbi +0 -699
- data/sorbet/rbi/gems/webmock@3.12.2.rbi +0 -662
- data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +0 -268
- data/sorbet/rbi/gems/yard@0.9.26.rbi +0 -4048
- data/sorbet/tapioca/config.yml +0 -13
- data/sorbet/tapioca/require.rb +0 -4
metadata
CHANGED
|
@@ -1,29 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: workos
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.1
|
|
4
|
+
version: 4.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- WorkOS
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-04-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: sorbet-runtime
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - "~>"
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0.5'
|
|
20
|
-
type: :runtime
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - "~>"
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: '0.5'
|
|
27
13
|
- !ruby/object:Gem::Dependency
|
|
28
14
|
name: bundler
|
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -38,20 +24,6 @@ dependencies:
|
|
|
38
24
|
- - ">="
|
|
39
25
|
- !ruby/object:Gem::Version
|
|
40
26
|
version: 2.0.1
|
|
41
|
-
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: codecov
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - "~>"
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: 0.2.8
|
|
48
|
-
type: :development
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - "~>"
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: 0.2.8
|
|
55
27
|
- !ruby/object:Gem::Dependency
|
|
56
28
|
name: rspec
|
|
57
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -80,34 +52,6 @@ dependencies:
|
|
|
80
52
|
- - "~>"
|
|
81
53
|
- !ruby/object:Gem::Version
|
|
82
54
|
version: '0.77'
|
|
83
|
-
- !ruby/object:Gem::Dependency
|
|
84
|
-
name: sorbet
|
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
|
86
|
-
requirements:
|
|
87
|
-
- - "~>"
|
|
88
|
-
- !ruby/object:Gem::Version
|
|
89
|
-
version: '0.5'
|
|
90
|
-
type: :development
|
|
91
|
-
prerelease: false
|
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
-
requirements:
|
|
94
|
-
- - "~>"
|
|
95
|
-
- !ruby/object:Gem::Version
|
|
96
|
-
version: '0.5'
|
|
97
|
-
- !ruby/object:Gem::Dependency
|
|
98
|
-
name: tapioca
|
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
|
100
|
-
requirements:
|
|
101
|
-
- - ">="
|
|
102
|
-
- !ruby/object:Gem::Version
|
|
103
|
-
version: '0'
|
|
104
|
-
type: :development
|
|
105
|
-
prerelease: false
|
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
-
requirements:
|
|
108
|
-
- - ">="
|
|
109
|
-
- !ruby/object:Gem::Version
|
|
110
|
-
version: '0'
|
|
111
55
|
- !ruby/object:Gem::Dependency
|
|
112
56
|
name: vcr
|
|
113
57
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -146,12 +90,12 @@ files:
|
|
|
146
90
|
- ".github/CODEOWNERS"
|
|
147
91
|
- ".github/pull_request_template.md"
|
|
148
92
|
- ".github/renovate.json"
|
|
93
|
+
- ".github/workflows/ci.yml"
|
|
94
|
+
- ".github/workflows/release.yml"
|
|
149
95
|
- ".gitignore"
|
|
150
96
|
- ".rspec"
|
|
151
97
|
- ".rubocop.yml"
|
|
152
98
|
- ".ruby-version"
|
|
153
|
-
- ".semaphore/rubygems.yml"
|
|
154
|
-
- ".semaphore/semaphore.yml"
|
|
155
99
|
- Gemfile
|
|
156
100
|
- Gemfile.lock
|
|
157
101
|
- LICENSE
|
|
@@ -159,10 +103,6 @@ files:
|
|
|
159
103
|
- bin/build
|
|
160
104
|
- bin/console
|
|
161
105
|
- bin/publish
|
|
162
|
-
- bin/tapioca
|
|
163
|
-
- codecov.yml
|
|
164
|
-
- devbox.json
|
|
165
|
-
- devbox.lock
|
|
166
106
|
- lib/workos.rb
|
|
167
107
|
- lib/workos/audit_log_export.rb
|
|
168
108
|
- lib/workos/audit_logs.rb
|
|
@@ -195,26 +135,10 @@ files:
|
|
|
195
135
|
- lib/workos/refresh_authentication_response.rb
|
|
196
136
|
- lib/workos/sso.rb
|
|
197
137
|
- lib/workos/types.rb
|
|
198
|
-
- lib/workos/types/
|
|
199
|
-
- lib/workos/types/challenge_struct.rb
|
|
200
|
-
- lib/workos/types/connection_struct.rb
|
|
201
|
-
- lib/workos/types/directory_group_struct.rb
|
|
202
|
-
- lib/workos/types/directory_struct.rb
|
|
203
|
-
- lib/workos/types/directory_user_struct.rb
|
|
204
|
-
- lib/workos/types/event_struct.rb
|
|
205
|
-
- lib/workos/types/factor_struct.rb
|
|
206
|
-
- lib/workos/types/intent_enum.rb
|
|
207
|
-
- lib/workos/types/invitation_struct.rb
|
|
138
|
+
- lib/workos/types/intent.rb
|
|
208
139
|
- lib/workos/types/list_struct.rb
|
|
209
|
-
- lib/workos/types/magic_auth_challenge_struct.rb
|
|
210
|
-
- lib/workos/types/organization_membership_struct.rb
|
|
211
|
-
- lib/workos/types/organization_struct.rb
|
|
212
140
|
- lib/workos/types/passwordless_session_struct.rb
|
|
213
|
-
- lib/workos/types/
|
|
214
|
-
- lib/workos/types/provider_enum.rb
|
|
215
|
-
- lib/workos/types/user_struct.rb
|
|
216
|
-
- lib/workos/types/verify_challenge_struct.rb
|
|
217
|
-
- lib/workos/types/webhook_struct.rb
|
|
141
|
+
- lib/workos/types/provider.rb
|
|
218
142
|
- lib/workos/user.rb
|
|
219
143
|
- lib/workos/user_and_token.rb
|
|
220
144
|
- lib/workos/user_management.rb
|
|
@@ -223,48 +147,6 @@ files:
|
|
|
223
147
|
- lib/workos/version.rb
|
|
224
148
|
- lib/workos/webhook.rb
|
|
225
149
|
- lib/workos/webhooks.rb
|
|
226
|
-
- sorbet/config
|
|
227
|
-
- sorbet/rbi/gems/addressable@2.8.0.rbi
|
|
228
|
-
- sorbet/rbi/gems/ast@2.4.2.rbi
|
|
229
|
-
- sorbet/rbi/gems/codecov@0.2.12.rbi
|
|
230
|
-
- sorbet/rbi/gems/coderay@1.1.3.rbi
|
|
231
|
-
- sorbet/rbi/gems/crack@0.4.5.rbi
|
|
232
|
-
- sorbet/rbi/gems/diff-lcs@1.4.4.rbi
|
|
233
|
-
- sorbet/rbi/gems/docile@1.3.5.rbi
|
|
234
|
-
- sorbet/rbi/gems/hashdiff@1.0.1.rbi
|
|
235
|
-
- sorbet/rbi/gems/json@2.5.1.rbi
|
|
236
|
-
- sorbet/rbi/gems/method_source@1.0.0.rbi
|
|
237
|
-
- sorbet/rbi/gems/parallel@1.20.1.rbi
|
|
238
|
-
- sorbet/rbi/gems/parser@3.0.1.0.rbi
|
|
239
|
-
- sorbet/rbi/gems/pry@0.14.2.rbi
|
|
240
|
-
- sorbet/rbi/gems/public_suffix@4.0.6.rbi
|
|
241
|
-
- sorbet/rbi/gems/rainbow@3.0.0.rbi
|
|
242
|
-
- sorbet/rbi/gems/rake@13.0.3.rbi
|
|
243
|
-
- sorbet/rbi/gems/rbi@0.0.16.rbi
|
|
244
|
-
- sorbet/rbi/gems/regexp_parser@2.1.1.rbi
|
|
245
|
-
- sorbet/rbi/gems/rexml@3.2.5.rbi
|
|
246
|
-
- sorbet/rbi/gems/rspec-core@3.9.3.rbi
|
|
247
|
-
- sorbet/rbi/gems/rspec-expectations@3.9.4.rbi
|
|
248
|
-
- sorbet/rbi/gems/rspec-mocks@3.9.1.rbi
|
|
249
|
-
- sorbet/rbi/gems/rspec-support@3.9.4.rbi
|
|
250
|
-
- sorbet/rbi/gems/rspec@3.9.0.rbi
|
|
251
|
-
- sorbet/rbi/gems/rubocop-ast@1.4.1.rbi
|
|
252
|
-
- sorbet/rbi/gems/rubocop@0.93.1.rbi
|
|
253
|
-
- sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi
|
|
254
|
-
- sorbet/rbi/gems/simplecov-html@0.12.3.rbi
|
|
255
|
-
- sorbet/rbi/gems/simplecov@0.21.2.rbi
|
|
256
|
-
- sorbet/rbi/gems/simplecov_json_formatter@0.1.2.rbi
|
|
257
|
-
- sorbet/rbi/gems/spoom@1.1.15.rbi
|
|
258
|
-
- sorbet/rbi/gems/tapioca@0.7.3.rbi
|
|
259
|
-
- sorbet/rbi/gems/thor@1.2.1.rbi
|
|
260
|
-
- sorbet/rbi/gems/unicode-display_width@1.7.0.rbi
|
|
261
|
-
- sorbet/rbi/gems/unparser@0.6.2.rbi
|
|
262
|
-
- sorbet/rbi/gems/vcr@5.0.0.rbi
|
|
263
|
-
- sorbet/rbi/gems/webmock@3.12.2.rbi
|
|
264
|
-
- sorbet/rbi/gems/yard-sorbet@0.8.0.rbi
|
|
265
|
-
- sorbet/rbi/gems/yard@0.9.26.rbi
|
|
266
|
-
- sorbet/tapioca/config.yml
|
|
267
|
-
- sorbet/tapioca/require.rb
|
|
268
150
|
- spec/lib/workos/audit_logs_spec.rb
|
|
269
151
|
- spec/lib/workos/configuration_spec.rb
|
|
270
152
|
- spec/lib/workos/directory_sync_spec.rb
|
|
@@ -410,6 +292,8 @@ files:
|
|
|
410
292
|
- spec/support/fixtures/vcr_cassettes/user_management/reset_password/valid.yml
|
|
411
293
|
- spec/support/fixtures/vcr_cassettes/user_management/revoke_invitation/invalid.yml
|
|
412
294
|
- spec/support/fixtures/vcr_cassettes/user_management/revoke_invitation/valid.yml
|
|
295
|
+
- spec/support/fixtures/vcr_cassettes/user_management/revoke_session/not_found.yml
|
|
296
|
+
- spec/support/fixtures/vcr_cassettes/user_management/revoke_session/valid.yml
|
|
413
297
|
- spec/support/fixtures/vcr_cassettes/user_management/send_invitation/invalid.yml
|
|
414
298
|
- spec/support/fixtures/vcr_cassettes/user_management/send_invitation/valid.yml
|
|
415
299
|
- spec/support/fixtures/vcr_cassettes/user_management/send_magic_auth_code/valid.yml
|
|
@@ -433,7 +317,7 @@ licenses:
|
|
|
433
317
|
- MIT
|
|
434
318
|
metadata:
|
|
435
319
|
documentation_uri: https://docs.workos.com/sdk/ruby
|
|
436
|
-
post_install_message:
|
|
320
|
+
post_install_message:
|
|
437
321
|
rdoc_options: []
|
|
438
322
|
require_paths:
|
|
439
323
|
- lib
|
|
@@ -441,15 +325,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
441
325
|
requirements:
|
|
442
326
|
- - ">="
|
|
443
327
|
- !ruby/object:Gem::Version
|
|
444
|
-
version: '2.
|
|
328
|
+
version: '2.7'
|
|
445
329
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
446
330
|
requirements:
|
|
447
331
|
- - ">="
|
|
448
332
|
- !ruby/object:Gem::Version
|
|
449
333
|
version: '0'
|
|
450
334
|
requirements: []
|
|
451
|
-
rubygems_version: 3.
|
|
452
|
-
signing_key:
|
|
335
|
+
rubygems_version: 3.4.19
|
|
336
|
+
signing_key:
|
|
453
337
|
specification_version: 4
|
|
454
338
|
summary: API client for WorkOS
|
|
455
339
|
test_files:
|
|
@@ -598,6 +482,8 @@ test_files:
|
|
|
598
482
|
- spec/support/fixtures/vcr_cassettes/user_management/reset_password/valid.yml
|
|
599
483
|
- spec/support/fixtures/vcr_cassettes/user_management/revoke_invitation/invalid.yml
|
|
600
484
|
- spec/support/fixtures/vcr_cassettes/user_management/revoke_invitation/valid.yml
|
|
485
|
+
- spec/support/fixtures/vcr_cassettes/user_management/revoke_session/not_found.yml
|
|
486
|
+
- spec/support/fixtures/vcr_cassettes/user_management/revoke_session/valid.yml
|
|
601
487
|
- spec/support/fixtures/vcr_cassettes/user_management/send_invitation/invalid.yml
|
|
602
488
|
- spec/support/fixtures/vcr_cassettes/user_management/send_invitation/valid.yml
|
|
603
489
|
- spec/support/fixtures/vcr_cassettes/user_management/send_magic_auth_code/valid.yml
|
data/.semaphore/rubygems.yml
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
version: v1.0
|
|
2
|
-
|
|
3
|
-
name: Rubygems deployment
|
|
4
|
-
agent:
|
|
5
|
-
machine:
|
|
6
|
-
type: e1-standard-2
|
|
7
|
-
os_image: ubuntu1804
|
|
8
|
-
|
|
9
|
-
blocks:
|
|
10
|
-
- name: Build & Publish 🛠 💎
|
|
11
|
-
task:
|
|
12
|
-
secrets:
|
|
13
|
-
- name: workos-rubygems
|
|
14
|
-
jobs:
|
|
15
|
-
- name: Publish to Rubygems
|
|
16
|
-
commands:
|
|
17
|
-
- checkout
|
|
18
|
-
- sem-version ruby 2.6.5
|
|
19
|
-
- gem update --system
|
|
20
|
-
- gem install bundler
|
|
21
|
-
- bundle install
|
|
22
|
-
- chmod 0600 /home/semaphore/.gem/credentials
|
|
23
|
-
- bundle exec gem build workos --output=release.gem
|
|
24
|
-
- bundle exec gem push release.gem
|
data/.semaphore/semaphore.yml
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
version: v1.0
|
|
2
|
-
name: Ruby
|
|
3
|
-
|
|
4
|
-
agent:
|
|
5
|
-
machine:
|
|
6
|
-
type: e1-standard-2
|
|
7
|
-
os_image: ubuntu2004
|
|
8
|
-
|
|
9
|
-
blocks:
|
|
10
|
-
- name: Run Sorbet 🍦
|
|
11
|
-
task:
|
|
12
|
-
jobs:
|
|
13
|
-
- name: srb tc
|
|
14
|
-
commands:
|
|
15
|
-
- checkout
|
|
16
|
-
- bundle install
|
|
17
|
-
- bundle exec srb tc
|
|
18
|
-
|
|
19
|
-
- name: Run Rubocop 🚔
|
|
20
|
-
task:
|
|
21
|
-
jobs:
|
|
22
|
-
- name: rubocop
|
|
23
|
-
commands:
|
|
24
|
-
- checkout
|
|
25
|
-
- bundle install
|
|
26
|
-
- bundle exec rubocop
|
|
27
|
-
|
|
28
|
-
- name: Run Tests 👩🏽🔬
|
|
29
|
-
task:
|
|
30
|
-
secrets:
|
|
31
|
-
- name: codecov-workos-ruby
|
|
32
|
-
jobs:
|
|
33
|
-
- name: Ruby 1.9.3
|
|
34
|
-
matrix:
|
|
35
|
-
- env_var: RUBY_VERSION
|
|
36
|
-
values:
|
|
37
|
-
- 1.9.3-p551
|
|
38
|
-
- 2.0.0-p648
|
|
39
|
-
- 2.3.4
|
|
40
|
-
- 2.5.7
|
|
41
|
-
- 2.6.5
|
|
42
|
-
- 2.7.3
|
|
43
|
-
- 3.0.2
|
|
44
|
-
commands:
|
|
45
|
-
- checkout
|
|
46
|
-
- sem-version ruby $RUBY_VERSION
|
|
47
|
-
- bundle install
|
|
48
|
-
- bundle exec rspec
|
|
49
|
-
promotions:
|
|
50
|
-
- name: Deploy workos-rb to rubygems
|
|
51
|
-
pipeline_file: rubygems.yml
|
data/bin/tapioca
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
#
|
|
5
|
-
# This file was generated by Bundler.
|
|
6
|
-
#
|
|
7
|
-
# The application 'tapioca' is installed as part of a gem, and
|
|
8
|
-
# this file is here to facilitate running it.
|
|
9
|
-
#
|
|
10
|
-
|
|
11
|
-
require 'pathname'
|
|
12
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
|
13
|
-
Pathname.new(__FILE__).realpath,)
|
|
14
|
-
|
|
15
|
-
bundle_binstub = File.expand_path('bundle', __dir__)
|
|
16
|
-
|
|
17
|
-
if File.file?(bundle_binstub)
|
|
18
|
-
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
|
19
|
-
load(bundle_binstub)
|
|
20
|
-
else
|
|
21
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
22
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
require 'rubygems'
|
|
27
|
-
require 'bundler/setup'
|
|
28
|
-
|
|
29
|
-
load Gem.bin_path('tapioca', 'tapioca')
|
data/codecov.yml
DELETED
data/devbox.json
DELETED
data/devbox.lock
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
# typed: strict
|
|
3
|
-
|
|
4
|
-
module WorkOS
|
|
5
|
-
module Types
|
|
6
|
-
# This AuditLogExportStruct acts as a typed interface
|
|
7
|
-
# for the AuditLogExport class
|
|
8
|
-
class AuditLogExportStruct < T::Struct
|
|
9
|
-
const :object, String
|
|
10
|
-
const :id, String
|
|
11
|
-
const :state, String
|
|
12
|
-
const :url, T.nilable(String)
|
|
13
|
-
const :created_at, String
|
|
14
|
-
const :updated_at, String
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
# typed: strict
|
|
3
|
-
|
|
4
|
-
module WorkOS
|
|
5
|
-
module Types
|
|
6
|
-
# This ChallgengeStruct acts as a typed interface
|
|
7
|
-
# for the Factor class
|
|
8
|
-
class ChallengeStruct < T::Struct
|
|
9
|
-
const :id, String
|
|
10
|
-
const :object, String
|
|
11
|
-
const :expires_at, String
|
|
12
|
-
const :code, T.nilable(String)
|
|
13
|
-
const :authentication_factor_id, String
|
|
14
|
-
const :created_at, String
|
|
15
|
-
const :updated_at, String
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
# typed: strict
|
|
3
|
-
|
|
4
|
-
module WorkOS
|
|
5
|
-
module Types
|
|
6
|
-
# This ConnectionStruct acts as a typed interface
|
|
7
|
-
# for the Connection class
|
|
8
|
-
class ConnectionStruct < T::Struct
|
|
9
|
-
const :id, String
|
|
10
|
-
const :name, String
|
|
11
|
-
const :connection_type, String
|
|
12
|
-
const :domains, T::Array[T.untyped]
|
|
13
|
-
const :organization_id, T.nilable(String)
|
|
14
|
-
const :state, String
|
|
15
|
-
const :status, String
|
|
16
|
-
const :created_at, String
|
|
17
|
-
const :updated_at, String
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
# typed: strict
|
|
3
|
-
|
|
4
|
-
module WorkOS
|
|
5
|
-
module Types
|
|
6
|
-
# This DirectoryGroupStruct acts as a typed interface
|
|
7
|
-
# for the DirectoryGroup class
|
|
8
|
-
class DirectoryGroupStruct < T::Struct
|
|
9
|
-
const :id, String
|
|
10
|
-
const :directory_id, String
|
|
11
|
-
const :organization_id, T.nilable(String)
|
|
12
|
-
const :idp_id, String
|
|
13
|
-
const :name, String
|
|
14
|
-
const :created_at, String
|
|
15
|
-
const :updated_at, String
|
|
16
|
-
const :raw_attributes, T::Hash[Symbol, Object]
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
# typed: strict
|
|
3
|
-
|
|
4
|
-
module WorkOS
|
|
5
|
-
module Types
|
|
6
|
-
# This DirectoryStruct acts as a typed interface
|
|
7
|
-
# for the Directory class
|
|
8
|
-
class DirectoryStruct < T::Struct
|
|
9
|
-
const :id, String
|
|
10
|
-
const :name, String
|
|
11
|
-
const :domain, T.nilable(String)
|
|
12
|
-
const :type, String
|
|
13
|
-
const :state, String
|
|
14
|
-
const :organization_id, T.nilable(String)
|
|
15
|
-
const :created_at, String
|
|
16
|
-
const :updated_at, String
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
# typed: strict
|
|
3
|
-
|
|
4
|
-
module WorkOS
|
|
5
|
-
module Types
|
|
6
|
-
# The DirectoryUserStruct acts as a typed interface
|
|
7
|
-
# for the DirectoryUser class
|
|
8
|
-
class DirectoryUserStruct < T::Struct
|
|
9
|
-
const :id, String
|
|
10
|
-
const :directory_id, String
|
|
11
|
-
const :organization_id, T.nilable(String)
|
|
12
|
-
const :idp_id, String
|
|
13
|
-
const :emails, T::Array[T.untyped]
|
|
14
|
-
const :first_name, T.nilable(String)
|
|
15
|
-
const :last_name, T.nilable(String)
|
|
16
|
-
const :job_title, T.nilable(String)
|
|
17
|
-
const :username, T.nilable(String)
|
|
18
|
-
const :state, T.nilable(String)
|
|
19
|
-
const :groups, T::Array[T.untyped]
|
|
20
|
-
const :custom_attributes, T::Hash[Symbol, T.untyped]
|
|
21
|
-
const :raw_attributes, T::Hash[Symbol, Object]
|
|
22
|
-
const :created_at, String
|
|
23
|
-
const :updated_at, String
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
# typed: strict
|
|
3
|
-
|
|
4
|
-
module WorkOS
|
|
5
|
-
module Types
|
|
6
|
-
# The EventStruct acts as a typed interface
|
|
7
|
-
# for the Event class
|
|
8
|
-
class EventStruct < T::Struct
|
|
9
|
-
const :id, String
|
|
10
|
-
const :event, String
|
|
11
|
-
const :data, T::Hash[Symbol, Object]
|
|
12
|
-
const :created_at, String
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
# typed: strict
|
|
3
|
-
|
|
4
|
-
module WorkOS
|
|
5
|
-
module Types
|
|
6
|
-
# This FactorStruct acts as a typed interface
|
|
7
|
-
# for the Factor class
|
|
8
|
-
class FactorStruct < T::Struct
|
|
9
|
-
const :id, String
|
|
10
|
-
const :object, String
|
|
11
|
-
const :type, String
|
|
12
|
-
const :totp, T.nilable(T::Hash[Symbol, Object])
|
|
13
|
-
const :sms, T.nilable(T::Hash[Symbol, Object])
|
|
14
|
-
const :created_at, String
|
|
15
|
-
const :updated_at, String
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
# typed: strict
|
|
3
|
-
|
|
4
|
-
module WorkOS
|
|
5
|
-
module Types
|
|
6
|
-
# The IntentEnum is type-safe declarations of a fixed set of values for
|
|
7
|
-
# intents while generating an Admin Portal link.
|
|
8
|
-
class Intent < T::Enum
|
|
9
|
-
enums do
|
|
10
|
-
AUDIT_LOGS = new('audit_logs')
|
|
11
|
-
DSYNC = new('dsync')
|
|
12
|
-
LOG_STREAMS = new('log_streams')
|
|
13
|
-
SSO = new('sso')
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
# typed: strict
|
|
3
|
-
|
|
4
|
-
module WorkOS
|
|
5
|
-
module Types
|
|
6
|
-
# This InvitationStruct acts as a typed interface for the Invitation class
|
|
7
|
-
class InvitationStruct < T::Struct
|
|
8
|
-
const :id, String
|
|
9
|
-
const :email, String
|
|
10
|
-
const :state, String
|
|
11
|
-
const :token, String
|
|
12
|
-
const :organization_id, T.nilable(String)
|
|
13
|
-
const :accepted_at, T.nilable(String)
|
|
14
|
-
const :revoked_at, T.nilable(String)
|
|
15
|
-
const :expires_at, String
|
|
16
|
-
const :created_at, String
|
|
17
|
-
const :updated_at, String
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
# typed: true
|
|
3
|
-
|
|
4
|
-
module WorkOS
|
|
5
|
-
module Types
|
|
6
|
-
# This MagicAuthChallengeStruct acts as a typed interface for the
|
|
7
|
-
# MagicAuthChallenge class
|
|
8
|
-
class MagicAuthChallengeStruct < T::Struct
|
|
9
|
-
const :id, String
|
|
10
|
-
end
|
|
11
|
-
end
|
|
12
|
-
end
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
# typed: strict
|
|
3
|
-
|
|
4
|
-
module WorkOS
|
|
5
|
-
module Types
|
|
6
|
-
# This OrganizationMembershipStruct acts as a typed interface for the OrganizationMembership class
|
|
7
|
-
class OrganizationMembershipStruct < T::Struct
|
|
8
|
-
const :id, String
|
|
9
|
-
const :user_id, String
|
|
10
|
-
const :organization_id, T.nilable(String)
|
|
11
|
-
const :status, String
|
|
12
|
-
const :created_at, String
|
|
13
|
-
const :updated_at, String
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
# typed: strict
|
|
3
|
-
|
|
4
|
-
module WorkOS
|
|
5
|
-
module Types
|
|
6
|
-
# This OrganizationStruct acts as a typed interface
|
|
7
|
-
# for the Organization class
|
|
8
|
-
class OrganizationStruct < T::Struct
|
|
9
|
-
const :id, String
|
|
10
|
-
const :name, String
|
|
11
|
-
const :allow_profiles_outside_organization, T::Boolean
|
|
12
|
-
const :domains, T::Array[T.untyped]
|
|
13
|
-
const :created_at, String
|
|
14
|
-
const :updated_at, String
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
# typed: strict
|
|
3
|
-
|
|
4
|
-
module WorkOS
|
|
5
|
-
module Types
|
|
6
|
-
# The ProfileStruct acts as a typed interface
|
|
7
|
-
# for the Profile class
|
|
8
|
-
class ProfileStruct < T::Struct
|
|
9
|
-
const :id, String
|
|
10
|
-
const :email, String
|
|
11
|
-
const :first_name, T.nilable(String)
|
|
12
|
-
const :last_name, T.nilable(String)
|
|
13
|
-
const :groups, T.nilable(T::Array[String])
|
|
14
|
-
const :organization_id, T.nilable(String)
|
|
15
|
-
const :connection_id, String
|
|
16
|
-
const :connection_type, String
|
|
17
|
-
const :idp_id, T.nilable(String)
|
|
18
|
-
const :raw_attributes, T::Hash[Symbol, Object]
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
# typed: strict
|
|
3
|
-
|
|
4
|
-
module WorkOS
|
|
5
|
-
module Types
|
|
6
|
-
# The ProviderEnum is type-safe declarations of a
|
|
7
|
-
# fixed set of values for SSO Providers.
|
|
8
|
-
class Provider < T::Enum
|
|
9
|
-
enums do
|
|
10
|
-
GitHub = new('GitHubOAuth')
|
|
11
|
-
Google = new('GoogleOAuth')
|
|
12
|
-
Microsoft = new('MicrosoftOAuth')
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|