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,662 +0,0 @@
1
- # typed: true
2
-
3
- # DO NOT EDIT MANUALLY
4
- # This is an autogenerated file for types exported from the `webmock` gem.
5
- # Please instead update this file by running `bin/tapioca gem webmock`.
6
-
7
- module Net::WebMockHTTPResponse
8
- def read_body(dest = T.unsafe(nil), &block); end
9
- end
10
-
11
- class Net::WebMockNetBufferedIO < ::Net::BufferedIO
12
- def initialize(io, *args, **kwargs); end
13
-
14
- def rbuf_fill; end
15
- end
16
-
17
- class PatchedStringIO < ::StringIO
18
- def orig_read_nonblock(*_arg0); end
19
- def read_nonblock(size, *args, **kwargs); end
20
- end
21
-
22
- class StubSocket
23
- def initialize(*args); end
24
-
25
- def close; end
26
- def closed?; end
27
- def continue_timeout; end
28
- def continue_timeout=(_arg0); end
29
- def io; end
30
- def read_timeout; end
31
- def read_timeout=(_arg0); end
32
- def readuntil(*args); end
33
- def write_timeout; end
34
- def write_timeout=(_arg0); end
35
- end
36
-
37
- class StubSocket::StubIO
38
- def setsockopt(*args); end
39
- end
40
-
41
- module WebMock
42
- include ::WebMock::API
43
- extend ::WebMock::API
44
-
45
- def after_request(*args, &block); end
46
- def allow_net_connect!(*args, &block); end
47
- def disable_net_connect!(*args, &block); end
48
- def net_connect_allowed?(*args, &block); end
49
- def registered_request?(*args, &block); end
50
- def reset_callbacks(*args, &block); end
51
- def reset_webmock(*args, &block); end
52
-
53
- class << self
54
- def after_request(options = T.unsafe(nil), &block); end
55
- def allow_net_connect!(options = T.unsafe(nil)); end
56
- def disable!(options = T.unsafe(nil)); end
57
- def disable_net_connect!(options = T.unsafe(nil)); end
58
- def disallow_net_connect!(options = T.unsafe(nil)); end
59
- def enable!(options = T.unsafe(nil)); end
60
- def enable_net_connect!(options = T.unsafe(nil)); end
61
- def globally_stub_request(order = T.unsafe(nil), &block); end
62
- def hide_body_diff!; end
63
- def hide_stubbing_instructions!; end
64
- def included(clazz); end
65
- def net_connect_allowed?(uri = T.unsafe(nil)); end
66
- def net_connect_explicit_allowed?(allowed, uri = T.unsafe(nil)); end
67
- def print_executed_requests; end
68
- def registered_request?(request_signature); end
69
- def request(method, uri); end
70
- def reset!; end
71
- def reset_callbacks; end
72
- def reset_webmock; end
73
- def show_body_diff!; end
74
- def show_body_diff?; end
75
- def show_stubbing_instructions!; end
76
- def show_stubbing_instructions?; end
77
- def version; end
78
- end
79
- end
80
-
81
- module WebMock::API
82
- extend ::WebMock::API
83
-
84
- def a_request(method, uri); end
85
- def assert_not_requested(*args, &block); end
86
- def assert_requested(*args, &block); end
87
- def hash_excluding(*args); end
88
- def hash_including(*args); end
89
- def refute_requested(*args, &block); end
90
- def remove_request_stub(stub); end
91
- def reset_executed_requests!; end
92
- def stub_http_request(method, uri); end
93
- def stub_request(method, uri); end
94
-
95
- private
96
-
97
- def anythingize_lonely_keys(*args); end
98
- def assert_request_not_requested(request, options = T.unsafe(nil)); end
99
- def assert_request_requested(request, options = T.unsafe(nil)); end
100
- def convert_uri_method_and_options_to_request_and_options(method, uri, options, &block); end
101
-
102
- class << self
103
- def request(method, uri); end
104
- end
105
- end
106
-
107
- class WebMock::AssertionFailure
108
- class << self
109
- def error_class; end
110
- def error_class=(_arg0); end
111
- def failure(message); end
112
- end
113
- end
114
-
115
- class WebMock::BodyPattern
116
- include ::WebMock::RSpecMatcherDetector
117
-
118
- def initialize(pattern); end
119
-
120
- def matches?(body, content_type = T.unsafe(nil)); end
121
- def pattern; end
122
- def to_s; end
123
-
124
- private
125
-
126
- def assert_non_multipart_body(content_type); end
127
- def body_as_hash(body, content_type); end
128
- def body_format(content_type); end
129
- def empty_string?(string); end
130
- def matching_body_hashes?(query_parameters, pattern, content_type); end
131
- def normalize_hash(hash); end
132
- def url_encoded_body?(content_type); end
133
- end
134
-
135
- WebMock::BodyPattern::BODY_FORMATS = T.let(T.unsafe(nil), Hash)
136
-
137
- class WebMock::CallbackRegistry
138
- class << self
139
- def add_callback(options, block); end
140
- def any_callbacks?; end
141
- def callbacks; end
142
- def invoke_callbacks(options, request_signature, response); end
143
- def reset; end
144
- end
145
- end
146
-
147
- class WebMock::Config
148
- include ::Singleton
149
- extend ::Singleton::SingletonClassMethods
150
-
151
- def initialize; end
152
-
153
- def allow; end
154
- def allow=(_arg0); end
155
- def allow_localhost; end
156
- def allow_localhost=(_arg0); end
157
- def allow_net_connect; end
158
- def allow_net_connect=(_arg0); end
159
- def net_http_connect_on_start; end
160
- def net_http_connect_on_start=(_arg0); end
161
- def query_values_notation; end
162
- def query_values_notation=(_arg0); end
163
- def show_body_diff; end
164
- def show_body_diff=(_arg0); end
165
- def show_stubbing_instructions; end
166
- def show_stubbing_instructions=(_arg0); end
167
- end
168
-
169
- class WebMock::Deprecation
170
- class << self
171
- def warning(message); end
172
- end
173
- end
174
-
175
- class WebMock::DynamicResponse < ::WebMock::Response
176
- def initialize(responder); end
177
-
178
- def evaluate(request_signature); end
179
- def responder; end
180
- def responder=(_arg0); end
181
- end
182
-
183
- class WebMock::HashValidator
184
- def initialize(hash); end
185
-
186
- def validate_keys(*valid_keys); end
187
- end
188
-
189
- class WebMock::HeadersPattern
190
- def initialize(pattern); end
191
-
192
- def matches?(headers); end
193
- def pp_to_s; end
194
- def to_s; end
195
-
196
- private
197
-
198
- def empty_headers?(headers); end
199
- end
200
-
201
- class WebMock::HttpLibAdapter
202
- class << self
203
- def adapter_for(lib); end
204
- end
205
- end
206
-
207
- class WebMock::HttpLibAdapterRegistry
208
- include ::Singleton
209
- extend ::Singleton::SingletonClassMethods
210
-
211
- def initialize; end
212
-
213
- def each_adapter(&block); end
214
- def http_lib_adapters; end
215
- def http_lib_adapters=(_arg0); end
216
- def register(lib, adapter); end
217
- end
218
-
219
- module WebMock::HttpLibAdapters; end
220
-
221
- class WebMock::HttpLibAdapters::NetHttpAdapter < ::WebMock::HttpLibAdapter
222
- class << self
223
- def disable!; end
224
- def enable!; end
225
- end
226
- end
227
-
228
- WebMock::HttpLibAdapters::NetHttpAdapter::OriginalNetBufferedIO = Net::BufferedIO
229
- WebMock::HttpLibAdapters::NetHttpAdapter::OriginalNetHTTP = Net::HTTP
230
- module WebMock::Matchers; end
231
-
232
- class WebMock::Matchers::AnyArgMatcher
233
- def initialize(ignore); end
234
-
235
- def ==(other); end
236
- end
237
-
238
- class WebMock::Matchers::HashArgumentMatcher
239
- def initialize(expected); end
240
-
241
- def ==(_actual, &block); end
242
-
243
- class << self
244
- def from_rspec_matcher(matcher); end
245
- end
246
- end
247
-
248
- class WebMock::Matchers::HashExcludingMatcher < ::WebMock::Matchers::HashArgumentMatcher
249
- def ==(actual); end
250
- def inspect; end
251
- end
252
-
253
- class WebMock::Matchers::HashIncludingMatcher < ::WebMock::Matchers::HashArgumentMatcher
254
- def ==(actual); end
255
- def inspect; end
256
- end
257
-
258
- class WebMock::MethodPattern
259
- def initialize(pattern); end
260
-
261
- def matches?(method); end
262
- def to_s; end
263
- end
264
-
265
- class WebMock::NetConnectNotAllowedError < ::Exception
266
- def initialize(request_signature); end
267
- end
268
-
269
- module WebMock::NetHTTPUtility
270
- class << self
271
- def check_right_http_connection; end
272
- def get_uri(net_http, path); end
273
- def puts_warning_for_right_http_if_needed; end
274
- def request_signature_from_request(net_http, request, body = T.unsafe(nil)); end
275
- def validate_headers(headers); end
276
- end
277
- end
278
-
279
- module WebMock::RSpecMatcherDetector
280
- def rSpecHashExcludingMatcher?(matcher); end
281
- def rSpecHashIncludingMatcher?(matcher); end
282
- end
283
-
284
- class WebMock::RackResponse < ::WebMock::Response
285
- def initialize(app); end
286
-
287
- def body_from_rack_response(response); end
288
- def build_rack_env(request); end
289
- def evaluate(request); end
290
- def session; end
291
- def session_options; end
292
- end
293
-
294
- class WebMock::RequestBodyDiff
295
- def initialize(request_signature, request_stub); end
296
-
297
- def body_diff; end
298
-
299
- private
300
-
301
- def parseable_json?(body_pattern); end
302
- def request_signature; end
303
- def request_signature_body_hash; end
304
- def request_signature_diffable?; end
305
- def request_signature_parseable_json?; end
306
- def request_stub; end
307
- def request_stub_body; end
308
- def request_stub_body_hash; end
309
- def request_stub_diffable?; end
310
- def request_stub_parseable_json?; end
311
- end
312
-
313
- class WebMock::RequestExecutionVerifier
314
- def initialize(request_pattern = T.unsafe(nil), expected_times_executed = T.unsafe(nil), at_least_times_executed = T.unsafe(nil), at_most_times_executed = T.unsafe(nil)); end
315
-
316
- def at_least_times_executed; end
317
- def at_least_times_executed=(_arg0); end
318
- def at_most_times_executed; end
319
- def at_most_times_executed=(_arg0); end
320
- def description; end
321
- def does_not_match?; end
322
- def expected_times_executed; end
323
- def expected_times_executed=(_arg0); end
324
- def failure_message; end
325
- def failure_message_when_negated; end
326
- def matches?; end
327
- def request_pattern; end
328
- def request_pattern=(_arg0); end
329
- def times_executed; end
330
- def times_executed=(_arg0); end
331
-
332
- private
333
-
334
- def failure_message_phrase(is_negated = T.unsafe(nil)); end
335
- def quantity_phrase(is_negated = T.unsafe(nil)); end
336
- def times(times); end
337
-
338
- class << self
339
- def executed_requests_message; end
340
- end
341
- end
342
-
343
- class WebMock::RequestPattern
344
- def initialize(method, uri, options = T.unsafe(nil)); end
345
-
346
- def body_pattern; end
347
- def headers_pattern; end
348
- def matches?(request_signature); end
349
- def method_pattern; end
350
- def to_s; end
351
- def uri_pattern; end
352
- def with(options = T.unsafe(nil), &block); end
353
-
354
- private
355
-
356
- def assign_options(options); end
357
- def create_uri_pattern(uri); end
358
- def set_basic_auth_as_headers!(options); end
359
- def validate_basic_auth!(basic_auth); end
360
- end
361
-
362
- class WebMock::RequestRegistry
363
- include ::Singleton
364
- extend ::Singleton::SingletonClassMethods
365
-
366
- def initialize; end
367
-
368
- def requested_signatures; end
369
- def requested_signatures=(_arg0); end
370
- def reset!; end
371
- def times_executed(request_pattern); end
372
- def to_s; end
373
- end
374
-
375
- class WebMock::RequestSignature
376
- def initialize(method, uri, options = T.unsafe(nil)); end
377
-
378
- def ==(other); end
379
- def body; end
380
- def body=(_arg0); end
381
- def eql?(other); end
382
- def hash; end
383
- def headers; end
384
- def headers=(headers); end
385
- def json_headers?; end
386
- def method; end
387
- def method=(_arg0); end
388
- def to_s; end
389
- def uri; end
390
- def uri=(_arg0); end
391
- def url_encoded?; end
392
-
393
- private
394
-
395
- def assign_options(options); end
396
- end
397
-
398
- class WebMock::RequestSignatureSnippet
399
- def initialize(request_signature); end
400
-
401
- def request_signature; end
402
- def request_stub; end
403
- def request_stubs; end
404
- def stubbing_instructions; end
405
-
406
- private
407
-
408
- def add_body_diff(stub, text); end
409
- def pretty_print_to_string(string_to_print); end
410
- def request_params; end
411
- def signature_stub_body_diff(stub); end
412
- end
413
-
414
- class WebMock::RequestStub
415
- def initialize(method, uri); end
416
-
417
- def and_raise(*exceptions); end
418
- def and_return(*response_hashes, &block); end
419
- def and_timeout; end
420
- def has_responses?; end
421
- def matches?(request_signature); end
422
- def request_pattern; end
423
- def request_pattern=(_arg0); end
424
- def response; end
425
- def then; end
426
- def times(number); end
427
- def to_rack(app, options = T.unsafe(nil)); end
428
- def to_raise(*exceptions); end
429
- def to_return(*response_hashes, &block); end
430
- def to_s; end
431
- def to_timeout; end
432
- def with(params = T.unsafe(nil), &block); end
433
-
434
- class << self
435
- def from_request_signature(signature); end
436
- end
437
- end
438
-
439
- class WebMock::Response
440
- def initialize(options = T.unsafe(nil)); end
441
-
442
- def ==(other); end
443
- def body; end
444
- def body=(body); end
445
- def evaluate(request_signature); end
446
- def exception; end
447
- def exception=(exception); end
448
- def headers; end
449
- def headers=(headers); end
450
- def options=(options); end
451
- def raise_error_if_any; end
452
- def should_timeout; end
453
- def status; end
454
- def status=(status); end
455
-
456
- private
457
-
458
- def assert_valid_body!; end
459
- def read_raw_response(raw_response); end
460
- def stringify_body!; end
461
- end
462
-
463
- class WebMock::Response::InvalidBody < ::StandardError; end
464
-
465
- class WebMock::ResponseFactory
466
- class << self
467
- def response_for(options); end
468
- end
469
- end
470
-
471
- class WebMock::ResponsesSequence
472
- def initialize(responses); end
473
-
474
- def end?; end
475
- def next_response; end
476
- def times_to_repeat; end
477
- def times_to_repeat=(_arg0); end
478
-
479
- private
480
-
481
- def increase_position; end
482
- end
483
-
484
- class WebMock::StubRegistry
485
- include ::Singleton
486
- extend ::Singleton::SingletonClassMethods
487
-
488
- def initialize; end
489
-
490
- def global_stubs; end
491
- def register_global_stub(order = T.unsafe(nil), &block); end
492
- def register_request_stub(stub); end
493
- def registered_request?(request_signature); end
494
- def remove_request_stub(stub); end
495
- def request_stubs; end
496
- def request_stubs=(_arg0); end
497
- def reset!; end
498
- def response_for_request(request_signature); end
499
-
500
- private
501
-
502
- def evaluate_response_for_request(response, request_signature); end
503
- def request_stub_for(request_signature); end
504
- end
505
-
506
- class WebMock::StubRequestSnippet
507
- def initialize(request_stub); end
508
-
509
- def body_pattern; end
510
- def to_s(with_response = T.unsafe(nil)); end
511
- end
512
-
513
- class WebMock::URIAddressablePattern < ::WebMock::URIPattern
514
- def add_query_params(query_params); end
515
-
516
- private
517
-
518
- def matches_with_variations?(uri); end
519
- def pattern_inspect; end
520
- def pattern_matches?(uri); end
521
- def template_matches_uri?(template, uri); end
522
- end
523
-
524
- class WebMock::URICallablePattern < ::WebMock::URIPattern
525
- private
526
-
527
- def pattern_matches?(uri); end
528
- end
529
-
530
- class WebMock::URIPattern
531
- include ::WebMock::RSpecMatcherDetector
532
-
533
- def initialize(pattern); end
534
-
535
- def add_query_params(query_params); end
536
- def matches?(uri); end
537
- def to_s; end
538
-
539
- private
540
-
541
- def pattern_inspect; end
542
- def query_params_matches?(uri); end
543
- end
544
-
545
- class WebMock::URIRegexpPattern < ::WebMock::URIPattern
546
- private
547
-
548
- def pattern_matches?(uri); end
549
- end
550
-
551
- class WebMock::URIStringPattern < ::WebMock::URIPattern
552
- def add_query_params(query_params); end
553
-
554
- private
555
-
556
- def pattern_inspect; end
557
- def pattern_matches?(uri); end
558
- end
559
-
560
- module WebMock::Util; end
561
-
562
- class WebMock::Util::HashCounter
563
- def initialize; end
564
-
565
- def each(&block); end
566
- def get(key); end
567
- def hash; end
568
- def hash=(_arg0); end
569
- def put(key, num = T.unsafe(nil)); end
570
- def select(&block); end
571
- end
572
-
573
- class WebMock::Util::HashKeysStringifier
574
- class << self
575
- def stringify_keys!(arg, options = T.unsafe(nil)); end
576
- end
577
- end
578
-
579
- class WebMock::Util::Headers
580
- class << self
581
- def basic_auth_header(*credentials); end
582
- def decode_userinfo_from_header(header); end
583
- def normalize_headers(headers); end
584
- def pp_headers_string(headers); end
585
- def sorted_headers_string(headers); end
586
- end
587
- end
588
-
589
- class WebMock::Util::JSON
590
- class << self
591
- def convert_json_to_yaml(json); end
592
- def parse(json); end
593
- def unescape(str); end
594
- end
595
- end
596
-
597
- class WebMock::Util::JSON::ParseError < ::StandardError; end
598
-
599
- class WebMock::Util::QueryMapper
600
- class << self
601
- def collect_query_hash(query_array, empty_accumulator, options); end
602
- def collect_query_parts(query); end
603
- def dehash(hash); end
604
- def fill_accumulator_for_dot(accumulator, key, value); end
605
- def fill_accumulator_for_flat(accumulator, key, value); end
606
- def fill_accumulator_for_flat_array(accumulator, key, value); end
607
- def fill_accumulator_for_subscript(accumulator, key, value); end
608
- def normalize_query_hash(query_hash, empty_accumulator, options); end
609
- def query_to_values(query, options = T.unsafe(nil)); end
610
- def to_query(parent, value, options = T.unsafe(nil)); end
611
- def values_to_query(new_query_values, options = T.unsafe(nil)); end
612
- end
613
- end
614
-
615
- class WebMock::Util::URI
616
- class << self
617
- def encode_unsafe_chars_in_userinfo(userinfo); end
618
- def heuristic_parse(uri); end
619
- def is_uri_localhost?(uri); end
620
- def normalize_uri(uri); end
621
- def sort_query_values(query_values); end
622
- def strip_default_port_from_uri_string(uri_string); end
623
- def uris_encoded_and_unencoded(uris); end
624
- def uris_with_inferred_port_and_without(uris); end
625
- def uris_with_scheme_and_without(uris); end
626
- def uris_with_trailing_slash_and_without(uris); end
627
- def variations_of_uri_as_strings(uri_object, only_with_scheme: T.unsafe(nil)); end
628
- end
629
- end
630
-
631
- WebMock::Util::URI::ADDRESSABLE_URIS = T.let(T.unsafe(nil), Hash)
632
- module WebMock::Util::URI::CharacterClasses; end
633
- WebMock::Util::URI::CharacterClasses::USERINFO = T.let(T.unsafe(nil), String)
634
- WebMock::Util::URI::NORMALIZED_URIS = T.let(T.unsafe(nil), Hash)
635
-
636
- class WebMock::Util::ValuesStringifier
637
- class << self
638
- def stringify_values(value); end
639
- end
640
- end
641
-
642
- WebMock::VERSION = T.let(T.unsafe(nil), String)
643
-
644
- class WebMock::VersionChecker
645
- def initialize(library_name, library_version, min_patch_level, max_minor_version = T.unsafe(nil), unsupported_versions = T.unsafe(nil)); end
646
-
647
- def check_version!; end
648
-
649
- private
650
-
651
- def colorize(text, color_code); end
652
- def compare_version; end
653
- def parse_version(version); end
654
- def too_high?; end
655
- def too_low?; end
656
- def unsupported_version?; end
657
- def version_requirement; end
658
- def warn_about_too_high; end
659
- def warn_about_too_low; end
660
- def warn_about_unsupported_version; end
661
- def warn_in_red(text); end
662
- end