workos 4.1.0 → 4.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +37 -0
  3. data/.github/workflows/release.yml +43 -0
  4. data/.rubocop.yml +8 -1
  5. data/Gemfile.lock +22 -69
  6. data/lib/workos/audit_log_export.rb +8 -31
  7. data/lib/workos/audit_logs.rb +0 -26
  8. data/lib/workos/authentication_factor_and_challenge.rb +0 -3
  9. data/lib/workos/authentication_response.rb +3 -6
  10. data/lib/workos/challenge.rb +9 -28
  11. data/lib/workos/client.rb +0 -41
  12. data/lib/workos/configuration.rb +0 -1
  13. data/lib/workos/connection.rb +11 -35
  14. data/lib/workos/directory.rb +10 -37
  15. data/lib/workos/directory_group.rb +9 -36
  16. data/lib/workos/directory_sync.rb +0 -21
  17. data/lib/workos/directory_user.rb +17 -51
  18. data/lib/workos/errors.rb +0 -16
  19. data/lib/workos/event.rb +5 -26
  20. data/lib/workos/events.rb +0 -7
  21. data/lib/workos/factor.rb +9 -28
  22. data/lib/workos/hash_provider.rb +0 -1
  23. data/lib/workos/impersonator.rb +0 -3
  24. data/lib/workos/invitation.rb +12 -37
  25. data/lib/workos/mfa.rb +0 -42
  26. data/lib/workos/organization.rb +8 -31
  27. data/lib/workos/organization_membership.rb +8 -27
  28. data/lib/workos/organizations.rb +0 -26
  29. data/lib/workos/passwordless.rb +0 -14
  30. data/lib/workos/portal.rb +1 -13
  31. data/lib/workos/profile.rb +12 -39
  32. data/lib/workos/profile_and_token.rb +1 -4
  33. data/lib/workos/refresh_authentication_response.rb +2 -5
  34. data/lib/workos/sso.rb +1 -43
  35. data/lib/workos/types/intent.rb +16 -0
  36. data/lib/workos/types/list_struct.rb +8 -5
  37. data/lib/workos/types/passwordless_session_struct.rb +10 -9
  38. data/lib/workos/types/provider.rb +15 -0
  39. data/lib/workos/types.rb +5 -23
  40. data/lib/workos/user.rb +10 -31
  41. data/lib/workos/user_and_token.rb +1 -4
  42. data/lib/workos/user_management.rb +36 -244
  43. data/lib/workos/user_response.rb +0 -3
  44. data/lib/workos/verify_challenge.rb +4 -18
  45. data/lib/workos/version.rb +1 -2
  46. data/lib/workos/webhook.rb +5 -26
  47. data/lib/workos/webhooks.rb +1 -38
  48. data/lib/workos.rb +0 -2
  49. data/spec/lib/workos/audit_logs_spec.rb +2 -3
  50. data/spec/lib/workos/configuration_spec.rb +0 -1
  51. data/spec/lib/workos/directory_sync_spec.rb +0 -1
  52. data/spec/lib/workos/directory_user_spec.rb +0 -1
  53. data/spec/lib/workos/event_spec.rb +0 -1
  54. data/spec/lib/workos/mfa_spec.rb +0 -1
  55. data/spec/lib/workos/organizations_spec.rb +0 -1
  56. data/spec/lib/workos/passwordless_spec.rb +0 -1
  57. data/spec/lib/workos/portal_spec.rb +0 -1
  58. data/spec/lib/workos/sso_spec.rb +0 -1
  59. data/spec/lib/workos/user_management_spec.rb +29 -1
  60. data/spec/lib/workos/webhooks_spec.rb +0 -1
  61. data/spec/spec_helper.rb +0 -9
  62. data/spec/support/fixtures/vcr_cassettes/user_management/revoke_session/not_found.yml +80 -0
  63. data/spec/support/fixtures/vcr_cassettes/user_management/revoke_session/valid.yml +76 -0
  64. data/spec/support/shared_examples/client_spec.rb +0 -1
  65. data/workos.gemspec +1 -6
  66. metadata +15 -129
  67. data/.semaphore/rubygems.yml +0 -24
  68. data/.semaphore/semaphore.yml +0 -51
  69. data/bin/tapioca +0 -29
  70. data/codecov.yml +0 -12
  71. data/devbox.json +0 -18
  72. data/devbox.lock +0 -11
  73. data/lib/workos/types/audit_log_export_struct.rb +0 -17
  74. data/lib/workos/types/challenge_struct.rb +0 -18
  75. data/lib/workos/types/connection_struct.rb +0 -20
  76. data/lib/workos/types/directory_group_struct.rb +0 -19
  77. data/lib/workos/types/directory_struct.rb +0 -19
  78. data/lib/workos/types/directory_user_struct.rb +0 -26
  79. data/lib/workos/types/event_struct.rb +0 -15
  80. data/lib/workos/types/factor_struct.rb +0 -18
  81. data/lib/workos/types/intent_enum.rb +0 -17
  82. data/lib/workos/types/invitation_struct.rb +0 -20
  83. data/lib/workos/types/magic_auth_challenge_struct.rb +0 -12
  84. data/lib/workos/types/organization_membership_struct.rb +0 -16
  85. data/lib/workos/types/organization_struct.rb +0 -17
  86. data/lib/workos/types/profile_struct.rb +0 -21
  87. data/lib/workos/types/provider_enum.rb +0 -16
  88. data/lib/workos/types/user_struct.rb +0 -18
  89. data/lib/workos/types/verify_challenge_struct.rb +0 -13
  90. data/lib/workos/types/webhook_struct.rb +0 -15
  91. data/sorbet/config +0 -2
  92. data/sorbet/rbi/gems/addressable@2.8.0.rbi +0 -290
  93. data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -54
  94. data/sorbet/rbi/gems/codecov@0.2.12.rbi +0 -55
  95. data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
  96. data/sorbet/rbi/gems/crack@0.4.5.rbi +0 -57
  97. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +0 -185
  98. data/sorbet/rbi/gems/docile@1.3.5.rbi +0 -54
  99. data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +0 -82
  100. data/sorbet/rbi/gems/json@2.5.1.rbi +0 -109
  101. data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -8
  102. data/sorbet/rbi/gems/parallel@1.20.1.rbi +0 -113
  103. data/sorbet/rbi/gems/parser@3.0.1.0.rbi +0 -1187
  104. data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -8
  105. data/sorbet/rbi/gems/public_suffix@4.0.6.rbi +0 -146
  106. data/sorbet/rbi/gems/rainbow@3.0.0.rbi +0 -153
  107. data/sorbet/rbi/gems/rake@13.0.3.rbi +0 -807
  108. data/sorbet/rbi/gems/rbi@0.0.16.rbi +0 -2118
  109. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +0 -1117
  110. data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -709
  111. data/sorbet/rbi/gems/rspec-core@3.9.3.rbi +0 -2467
  112. data/sorbet/rbi/gems/rspec-expectations@3.9.4.rbi +0 -1569
  113. data/sorbet/rbi/gems/rspec-mocks@3.9.1.rbi +0 -1493
  114. data/sorbet/rbi/gems/rspec-support@3.9.4.rbi +0 -511
  115. data/sorbet/rbi/gems/rspec@3.9.0.rbi +0 -38
  116. data/sorbet/rbi/gems/rubocop-ast@1.4.1.rbi +0 -1881
  117. data/sorbet/rbi/gems/rubocop@0.93.1.rbi +0 -11497
  118. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -405
  119. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -89
  120. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +0 -577
  121. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.2.rbi +0 -8
  122. data/sorbet/rbi/gems/spoom@1.1.15.rbi +0 -1549
  123. data/sorbet/rbi/gems/tapioca@0.7.3.rbi +0 -1718
  124. data/sorbet/rbi/gems/thor@1.2.1.rbi +0 -844
  125. data/sorbet/rbi/gems/unicode-display_width@1.7.0.rbi +0 -22
  126. data/sorbet/rbi/gems/unparser@0.6.2.rbi +0 -8
  127. data/sorbet/rbi/gems/vcr@5.0.0.rbi +0 -699
  128. data/sorbet/rbi/gems/webmock@3.12.2.rbi +0 -662
  129. data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +0 -268
  130. data/sorbet/rbi/gems/yard@0.9.26.rbi +0 -4048
  131. data/sorbet/tapioca/config.yml +0 -13
  132. data/sorbet/tapioca/require.rb +0 -4
@@ -1,8 +0,0 @@
1
- # typed: true
2
-
3
- # DO NOT EDIT MANUALLY
4
- # This is an autogenerated file for types exported from the `pry` gem.
5
- # Please instead update this file by running `bin/tapioca gem pry`.
6
-
7
- # THIS IS AN EMPTY RBI FILE.
8
- # see https://github.com/Shopify/tapioca/wiki/Manual-Gem-Requires
@@ -1,146 +0,0 @@
1
- # typed: true
2
-
3
- # DO NOT EDIT MANUALLY
4
- # This is an autogenerated file for types exported from the `public_suffix` gem.
5
- # Please instead update this file by running `bin/tapioca gem public_suffix`.
6
-
7
- module PublicSuffix
8
- class << self
9
- def decompose(name, rule); end
10
- def domain(name, **options); end
11
- def normalize(name); end
12
- def parse(name, list: T.unsafe(nil), default_rule: T.unsafe(nil), ignore_private: T.unsafe(nil)); end
13
- def valid?(name, list: T.unsafe(nil), default_rule: T.unsafe(nil), ignore_private: T.unsafe(nil)); end
14
- end
15
- end
16
-
17
- PublicSuffix::BANG = T.let(T.unsafe(nil), String)
18
- PublicSuffix::DOT = T.let(T.unsafe(nil), String)
19
-
20
- class PublicSuffix::Domain
21
- def initialize(*args); end
22
-
23
- def domain; end
24
- def domain?; end
25
- def name; end
26
- def sld; end
27
- def subdomain; end
28
- def subdomain?; end
29
- def tld; end
30
- def to_a; end
31
- def to_s; end
32
- def trd; end
33
-
34
- class << self
35
- def name_to_labels(name); end
36
- end
37
- end
38
-
39
- class PublicSuffix::DomainInvalid < ::PublicSuffix::Error; end
40
- class PublicSuffix::DomainNotAllowed < ::PublicSuffix::DomainInvalid; end
41
- class PublicSuffix::Error < ::StandardError; end
42
-
43
- class PublicSuffix::List
44
- def initialize; end
45
-
46
- def <<(rule); end
47
- def ==(other); end
48
- def add(rule); end
49
- def clear; end
50
- def default_rule; end
51
- def each(&block); end
52
- def empty?; end
53
- def eql?(other); end
54
- def find(name, default: T.unsafe(nil), **options); end
55
- def size; end
56
-
57
- protected
58
-
59
- def rules; end
60
-
61
- private
62
-
63
- def entry_to_rule(entry, value); end
64
- def rule_to_entry(rule); end
65
- def select(name, ignore_private: T.unsafe(nil)); end
66
-
67
- class << self
68
- def default(**options); end
69
- def default=(value); end
70
- def parse(input, private_domains: T.unsafe(nil)); end
71
- end
72
- end
73
-
74
- PublicSuffix::List::DEFAULT_LIST_PATH = T.let(T.unsafe(nil), String)
75
-
76
- module PublicSuffix::Rule
77
- class << self
78
- def default; end
79
- def factory(content, private: T.unsafe(nil)); end
80
- end
81
- end
82
-
83
- class PublicSuffix::Rule::Base
84
- def initialize(value:, length: T.unsafe(nil), private: T.unsafe(nil)); end
85
-
86
- def ==(other); end
87
- def decompose(*_arg0); end
88
- def eql?(other); end
89
- def length; end
90
- def match?(name); end
91
- def parts; end
92
- def private; end
93
- def value; end
94
-
95
- class << self
96
- def build(content, private: T.unsafe(nil)); end
97
- end
98
- end
99
-
100
- class PublicSuffix::Rule::Entry < ::Struct
101
- def length; end
102
- def length=(_); end
103
- def private; end
104
- def private=(_); end
105
- def type; end
106
- def type=(_); end
107
-
108
- class << self
109
- def [](*_arg0); end
110
- def inspect; end
111
- def keyword_init?; end
112
- def members; end
113
- def new(*_arg0); end
114
- end
115
- end
116
-
117
- class PublicSuffix::Rule::Exception < ::PublicSuffix::Rule::Base
118
- def decompose(domain); end
119
- def parts; end
120
- def rule; end
121
-
122
- class << self
123
- def build(content, private: T.unsafe(nil)); end
124
- end
125
- end
126
-
127
- class PublicSuffix::Rule::Normal < ::PublicSuffix::Rule::Base
128
- def decompose(domain); end
129
- def parts; end
130
- def rule; end
131
- end
132
-
133
- class PublicSuffix::Rule::Wildcard < ::PublicSuffix::Rule::Base
134
- def initialize(value:, length: T.unsafe(nil), private: T.unsafe(nil)); end
135
-
136
- def decompose(domain); end
137
- def parts; end
138
- def rule; end
139
-
140
- class << self
141
- def build(content, private: T.unsafe(nil)); end
142
- end
143
- end
144
-
145
- PublicSuffix::STAR = T.let(T.unsafe(nil), String)
146
- PublicSuffix::VERSION = T.let(T.unsafe(nil), String)
@@ -1,153 +0,0 @@
1
- # typed: true
2
-
3
- # DO NOT EDIT MANUALLY
4
- # This is an autogenerated file for types exported from the `rainbow` gem.
5
- # Please instead update this file by running `bin/tapioca gem rainbow`.
6
-
7
- module Rainbow
8
- class << self
9
- def enabled; end
10
- def enabled=(value); end
11
- def global; end
12
- def new; end
13
- def uncolor(string); end
14
- end
15
- end
16
-
17
- class Rainbow::Color
18
- def ground; end
19
-
20
- class << self
21
- def build(ground, values); end
22
- def parse_hex_color(hex); end
23
- end
24
- end
25
-
26
- class Rainbow::Color::Indexed < ::Rainbow::Color
27
- def initialize(ground, num); end
28
-
29
- def codes; end
30
- def num; end
31
- end
32
-
33
- class Rainbow::Color::Named < ::Rainbow::Color::Indexed
34
- def initialize(ground, name); end
35
-
36
- class << self
37
- def color_names; end
38
- def valid_names; end
39
- end
40
- end
41
-
42
- Rainbow::Color::Named::NAMES = T.let(T.unsafe(nil), Hash)
43
-
44
- class Rainbow::Color::RGB < ::Rainbow::Color::Indexed
45
- def initialize(ground, *values); end
46
-
47
- def b; end
48
- def codes; end
49
- def g; end
50
- def r; end
51
-
52
- private
53
-
54
- def code_from_rgb; end
55
-
56
- class << self
57
- def to_ansi_domain(value); end
58
- end
59
- end
60
-
61
- class Rainbow::Color::X11Named < ::Rainbow::Color::RGB
62
- include ::Rainbow::X11ColorNames
63
-
64
- def initialize(ground, name); end
65
-
66
- class << self
67
- def color_names; end
68
- def valid_names; end
69
- end
70
- end
71
-
72
- class Rainbow::NullPresenter < ::String
73
- def background(*_values); end
74
- def bg(*_values); end
75
- def black; end
76
- def blink; end
77
- def blue; end
78
- def bold; end
79
- def bright; end
80
- def color(*_values); end
81
- def cyan; end
82
- def dark; end
83
- def faint; end
84
- def fg(*_values); end
85
- def foreground(*_values); end
86
- def green; end
87
- def hide; end
88
- def inverse; end
89
- def italic; end
90
- def magenta; end
91
- def method_missing(method_name, *args); end
92
- def red; end
93
- def reset; end
94
- def underline; end
95
- def white; end
96
- def yellow; end
97
-
98
- private
99
-
100
- def respond_to_missing?(method_name, *args); end
101
- end
102
-
103
- class Rainbow::Presenter < ::String
104
- def background(*values); end
105
- def bg(*values); end
106
- def black; end
107
- def blink; end
108
- def blue; end
109
- def bold; end
110
- def bright; end
111
- def color(*values); end
112
- def cyan; end
113
- def dark; end
114
- def faint; end
115
- def fg(*values); end
116
- def foreground(*values); end
117
- def green; end
118
- def hide; end
119
- def inverse; end
120
- def italic; end
121
- def magenta; end
122
- def method_missing(method_name, *args); end
123
- def red; end
124
- def reset; end
125
- def underline; end
126
- def white; end
127
- def yellow; end
128
-
129
- private
130
-
131
- def respond_to_missing?(method_name, *args); end
132
- def wrap_with_sgr(codes); end
133
- end
134
-
135
- Rainbow::Presenter::TERM_EFFECTS = T.let(T.unsafe(nil), Hash)
136
-
137
- class Rainbow::StringUtils
138
- class << self
139
- def uncolor(string); end
140
- def wrap_with_sgr(string, codes); end
141
- end
142
- end
143
-
144
- class Rainbow::Wrapper
145
- def initialize(enabled = T.unsafe(nil)); end
146
-
147
- def enabled; end
148
- def enabled=(_arg0); end
149
- def wrap(string); end
150
- end
151
-
152
- module Rainbow::X11ColorNames; end
153
- Rainbow::X11ColorNames::NAMES = T.let(T.unsafe(nil), Hash)