noresponse 2.0.18 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/lib/no_response/integrations.rb +1 -1
  3. data/lib/no_response/late_results.rb +23 -17
  4. data/lib/no_response/models/operations/createwebhookendpoint_response.rb +34 -0
  5. data/lib/no_response/models/operations/createwebhookendpoint_response.rbi +20 -0
  6. data/lib/no_response/models/operations/deletewebhookendpoint_request.rb +29 -0
  7. data/lib/no_response/models/operations/deletewebhookendpoint_request.rbi +14 -0
  8. data/lib/no_response/models/operations/deletewebhookendpoint_response.rb +28 -0
  9. data/lib/no_response/models/operations/deletewebhookendpoint_response.rbi +14 -0
  10. data/lib/no_response/models/operations/listwebhookendpoints_response.rb +32 -0
  11. data/lib/no_response/models/operations/listwebhookendpoints_response.rbi +20 -0
  12. data/lib/no_response/models/operations/rotatewebhooksigningkey_request.rb +33 -0
  13. data/lib/no_response/models/operations/rotatewebhooksigningkey_request.rbi +20 -0
  14. data/lib/no_response/models/operations/rotatewebhooksigningkey_response.rb +32 -0
  15. data/lib/no_response/models/operations/rotatewebhooksigningkey_response.rbi +20 -0
  16. data/lib/no_response/models/operations/sendwebhooktestevent_request.rb +33 -0
  17. data/lib/no_response/models/operations/sendwebhooktestevent_request.rbi +20 -0
  18. data/lib/no_response/models/operations/sendwebhooktestevent_response.rb +32 -0
  19. data/lib/no_response/models/operations/sendwebhooktestevent_response.rbi +20 -0
  20. data/lib/no_response/models/operations.rb +8 -0
  21. data/lib/no_response/models/shared/assessment.rb +12 -2
  22. data/lib/no_response/models/shared/assessment.rbi +6 -0
  23. data/lib/no_response/models/shared/assessmentauthcontext.rb +121 -0
  24. data/lib/no_response/models/shared/assessmentauthcontext.rbi +56 -0
  25. data/lib/no_response/models/shared/assessmentquery.rb +1 -1
  26. data/lib/no_response/models/shared/assessmentrequest.rb +1 -1
  27. data/lib/no_response/models/shared/authcontext.rb +4 -4
  28. data/lib/no_response/models/shared/badrequesterrorcode.rb +1 -0
  29. data/lib/no_response/models/shared/conflicterrorcode.rb +2 -0
  30. data/lib/no_response/models/shared/hookpoint.rb +5 -2
  31. data/lib/no_response/models/shared/responsemode.rb +4 -1
  32. data/lib/no_response/models/shared/security.rb +3 -3
  33. data/lib/no_response/models/shared/signingkey.rb +49 -0
  34. data/lib/no_response/models/shared/signingkey.rbi +26 -0
  35. data/lib/no_response/models/shared/signingsecret.rb +49 -0
  36. data/lib/no_response/models/shared/signingsecret.rbi +26 -0
  37. data/lib/no_response/models/shared/transport.rb +5 -2
  38. data/lib/no_response/models/shared/webhookendpoint.rb +100 -0
  39. data/lib/no_response/models/shared/webhookendpoint.rbi +50 -0
  40. data/lib/no_response/models/shared/webhookendpointcreated.rb +41 -0
  41. data/lib/no_response/models/shared/webhookendpointcreated.rbi +20 -0
  42. data/lib/no_response/models/shared/webhookendpointlist.rb +32 -0
  43. data/lib/no_response/models/shared/webhookendpointlist.rbi +14 -0
  44. data/lib/no_response/models/shared/webhookendpointrequest.rb +42 -0
  45. data/lib/no_response/models/shared/webhookendpointrequest.rbi +20 -0
  46. data/lib/no_response/models/shared/webhookendpointstate.rb +20 -0
  47. data/lib/no_response/models/shared/webhookendpointstate.rbi +9 -0
  48. data/lib/no_response/models/shared/webhookkeyrotation.rb +65 -0
  49. data/lib/no_response/models/shared/webhookkeyrotation.rbi +32 -0
  50. data/lib/no_response/models/shared/webhookkeyrotationrequest.rb +23 -0
  51. data/lib/no_response/models/shared/webhookkeyrotationrequest.rbi +9 -0
  52. data/lib/no_response/models/shared/webhooktest.rb +86 -0
  53. data/lib/no_response/models/shared/webhooktest.rbi +38 -0
  54. data/lib/no_response/models/shared/webhooktestrequest.rb +39 -0
  55. data/lib/no_response/models/shared/webhooktestrequest.rbi +14 -0
  56. data/lib/no_response/models/shared/webhooktestrequestevent.rb +19 -0
  57. data/lib/no_response/models/shared/webhooktestrequestevent.rbi +9 -0
  58. data/lib/no_response/models/shared.rb +13 -0
  59. data/lib/no_response/noresponseclient.rb +2 -1
  60. data/lib/no_response/sdkconfiguration.rb +5 -2
  61. data/lib/no_response/webhookendpoints.rb +1444 -0
  62. data/lib/no_response/webhooks.rb +7 -2
  63. data/lib/noresponse.rb +1 -0
  64. metadata +45 -2
@@ -50,9 +50,13 @@ module NoResponse
50
50
  # "assessment.updated", and an EndpointVerification for
51
51
  # "endpoint.verification". Deliveries are at least once and unordered:
52
52
  # deduplicate on id and keep the highest assessment_version.
53
- Event = Struct.new(:id, :type, :created_at, :data, keyword_init: true) do
53
+ Event = Struct.new(:id, :type, :created_at, :data, :test, keyword_init: true) do
54
54
  # True for the terminal expiry event: delete what you hold and fetch nothing.
55
55
  def expired? = data.is_a?(AssessmentExpired)
56
+
57
+ # True on an event sent by the send-test-event call: data is a fixed
58
+ # example assessment, not one of yours. Acknowledge it and apply nothing.
59
+ def test? = test == true
56
60
  end
57
61
 
58
62
  class << self
@@ -132,7 +136,8 @@ module NoResponse
132
136
  raise VerificationError.new(:invalid_payload, 'Webhook event envelope is malformed')
133
137
  end
134
138
 
135
- Event.new(id: body['id'], type: body['type'], created_at: body['created_at'], data: event_data(body['type'], data))
139
+ Event.new(id: body['id'], type: body['type'], created_at: body['created_at'], data: event_data(body['type'], data),
140
+ test: body['test'] == true && body['type'] == 'assessment.updated')
136
141
  end
137
142
 
138
143
  def event_data(type, data)
data/lib/noresponse.rb CHANGED
@@ -6,6 +6,7 @@ module NoResponse
6
6
  autoload :Assessments, "no_response/assessments"
7
7
  autoload :Keys, "no_response/keys"
8
8
  autoload :Integrations, "no_response/integrations"
9
+ autoload :WebhookEndpoints, "no_response/webhookendpoints"
9
10
 
10
11
  module Models
11
12
  autoload :Shared, "no_response/models/shared"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noresponse
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.18
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - NoResponse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-22 00:00:00.000000000 Z
11
+ date: 2026-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64
@@ -281,16 +281,24 @@ files:
281
281
  - lib/no_response/models/operations/createassessment_response.rbi
282
282
  - lib/no_response/models/operations/createintegration_response.rb
283
283
  - lib/no_response/models/operations/createintegration_response.rbi
284
+ - lib/no_response/models/operations/createwebhookendpoint_response.rb
285
+ - lib/no_response/models/operations/createwebhookendpoint_response.rbi
284
286
  - lib/no_response/models/operations/deleteintegration_request.rb
285
287
  - lib/no_response/models/operations/deleteintegration_request.rbi
286
288
  - lib/no_response/models/operations/deleteintegration_response.rb
287
289
  - lib/no_response/models/operations/deleteintegration_response.rbi
290
+ - lib/no_response/models/operations/deletewebhookendpoint_request.rb
291
+ - lib/no_response/models/operations/deletewebhookendpoint_request.rbi
292
+ - lib/no_response/models/operations/deletewebhookendpoint_response.rb
293
+ - lib/no_response/models/operations/deletewebhookendpoint_response.rbi
288
294
  - lib/no_response/models/operations/getassessment_request.rb
289
295
  - lib/no_response/models/operations/getassessment_request.rbi
290
296
  - lib/no_response/models/operations/getassessment_response.rb
291
297
  - lib/no_response/models/operations/getassessment_response.rbi
292
298
  - lib/no_response/models/operations/listintegrations_response.rb
293
299
  - lib/no_response/models/operations/listintegrations_response.rbi
300
+ - lib/no_response/models/operations/listwebhookendpoints_response.rb
301
+ - lib/no_response/models/operations/listwebhookendpoints_response.rbi
294
302
  - lib/no_response/models/operations/queryaccountassessments_response.rb
295
303
  - lib/no_response/models/operations/queryaccountassessments_response.rbi
296
304
  - lib/no_response/models/operations/recordassessmentoutcome_request.rb
@@ -303,6 +311,14 @@ files:
303
311
  - lib/no_response/models/operations/rotateintegrationsecret_request.rbi
304
312
  - lib/no_response/models/operations/rotateintegrationsecret_response.rb
305
313
  - lib/no_response/models/operations/rotateintegrationsecret_response.rbi
314
+ - lib/no_response/models/operations/rotatewebhooksigningkey_request.rb
315
+ - lib/no_response/models/operations/rotatewebhooksigningkey_request.rbi
316
+ - lib/no_response/models/operations/rotatewebhooksigningkey_response.rb
317
+ - lib/no_response/models/operations/rotatewebhooksigningkey_response.rbi
318
+ - lib/no_response/models/operations/sendwebhooktestevent_request.rb
319
+ - lib/no_response/models/operations/sendwebhooktestevent_request.rbi
320
+ - lib/no_response/models/operations/sendwebhooktestevent_response.rb
321
+ - lib/no_response/models/operations/sendwebhooktestevent_response.rbi
306
322
  - lib/no_response/models/shared.rb
307
323
  - lib/no_response/models/shared/alternate_name.rb
308
324
  - lib/no_response/models/shared/alternate_name.rbi
@@ -310,6 +326,8 @@ files:
310
326
  - lib/no_response/models/shared/alternate_name_union.rbi
311
327
  - lib/no_response/models/shared/assessment.rb
312
328
  - lib/no_response/models/shared/assessment.rbi
329
+ - lib/no_response/models/shared/assessmentauthcontext.rb
330
+ - lib/no_response/models/shared/assessmentauthcontext.rbi
313
331
  - lib/no_response/models/shared/assessmentlist.rb
314
332
  - lib/no_response/models/shared/assessmentlist.rbi
315
333
  - lib/no_response/models/shared/assessmentoutcome.rb
@@ -466,6 +484,10 @@ files:
466
484
  - lib/no_response/models/shared/signal.rbi
467
485
  - lib/no_response/models/shared/signaloutcome.rb
468
486
  - lib/no_response/models/shared/signaloutcome.rbi
487
+ - lib/no_response/models/shared/signingkey.rb
488
+ - lib/no_response/models/shared/signingkey.rbi
489
+ - lib/no_response/models/shared/signingsecret.rb
490
+ - lib/no_response/models/shared/signingsecret.rbi
469
491
  - lib/no_response/models/shared/social_profile.rb
470
492
  - lib/no_response/models/shared/social_profile.rbi
471
493
  - lib/no_response/models/shared/social_profile_union.rb
@@ -478,6 +500,26 @@ files:
478
500
  - lib/no_response/models/shared/timezone_union.rbi
479
501
  - lib/no_response/models/shared/transport.rb
480
502
  - lib/no_response/models/shared/transport.rbi
503
+ - lib/no_response/models/shared/webhookendpoint.rb
504
+ - lib/no_response/models/shared/webhookendpoint.rbi
505
+ - lib/no_response/models/shared/webhookendpointcreated.rb
506
+ - lib/no_response/models/shared/webhookendpointcreated.rbi
507
+ - lib/no_response/models/shared/webhookendpointlist.rb
508
+ - lib/no_response/models/shared/webhookendpointlist.rbi
509
+ - lib/no_response/models/shared/webhookendpointrequest.rb
510
+ - lib/no_response/models/shared/webhookendpointrequest.rbi
511
+ - lib/no_response/models/shared/webhookendpointstate.rb
512
+ - lib/no_response/models/shared/webhookendpointstate.rbi
513
+ - lib/no_response/models/shared/webhookkeyrotation.rb
514
+ - lib/no_response/models/shared/webhookkeyrotation.rbi
515
+ - lib/no_response/models/shared/webhookkeyrotationrequest.rb
516
+ - lib/no_response/models/shared/webhookkeyrotationrequest.rbi
517
+ - lib/no_response/models/shared/webhooktest.rb
518
+ - lib/no_response/models/shared/webhooktest.rbi
519
+ - lib/no_response/models/shared/webhooktestrequest.rb
520
+ - lib/no_response/models/shared/webhooktestrequest.rbi
521
+ - lib/no_response/models/shared/webhooktestrequestevent.rb
522
+ - lib/no_response/models/shared/webhooktestrequestevent.rbi
481
523
  - lib/no_response/models/shared/website.rb
482
524
  - lib/no_response/models/shared/website.rbi
483
525
  - lib/no_response/models/shared/website_union.rb
@@ -498,6 +540,7 @@ files:
498
540
  - lib/no_response/utils/url.rb
499
541
  - lib/no_response/utils/utils.rb
500
542
  - lib/no_response/wait.rb
543
+ - lib/no_response/webhookendpoints.rb
501
544
  - lib/no_response/webhooks.rb
502
545
  - lib/noresponse.rb
503
546
  homepage: