noresponse 2.0.17 → 2.0.19

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 (79) hide show
  1. checksums.yaml +4 -4
  2. data/lib/no_response/integrations.rb +1156 -0
  3. data/lib/no_response/models/operations/createintegration_response.rb +32 -0
  4. data/lib/no_response/models/operations/createintegration_response.rbi +20 -0
  5. data/lib/no_response/models/operations/createwebhookendpoint_response.rb +34 -0
  6. data/lib/no_response/models/operations/createwebhookendpoint_response.rbi +20 -0
  7. data/lib/no_response/models/operations/deleteintegration_request.rb +33 -0
  8. data/lib/no_response/models/operations/deleteintegration_request.rbi +14 -0
  9. data/lib/no_response/models/operations/deleteintegration_response.rb +28 -0
  10. data/lib/no_response/models/operations/deleteintegration_response.rbi +14 -0
  11. data/lib/no_response/models/operations/deletewebhookendpoint_request.rb +29 -0
  12. data/lib/no_response/models/operations/deletewebhookendpoint_request.rbi +14 -0
  13. data/lib/no_response/models/operations/deletewebhookendpoint_response.rb +28 -0
  14. data/lib/no_response/models/operations/deletewebhookendpoint_response.rbi +14 -0
  15. data/lib/no_response/models/operations/listintegrations_response.rb +32 -0
  16. data/lib/no_response/models/operations/listintegrations_response.rbi +20 -0
  17. data/lib/no_response/models/operations/listwebhookendpoints_response.rb +32 -0
  18. data/lib/no_response/models/operations/listwebhookendpoints_response.rbi +20 -0
  19. data/lib/no_response/models/operations/rotateintegrationsecret_request.rb +37 -0
  20. data/lib/no_response/models/operations/rotateintegrationsecret_request.rbi +20 -0
  21. data/lib/no_response/models/operations/rotateintegrationsecret_response.rb +32 -0
  22. data/lib/no_response/models/operations/rotateintegrationsecret_response.rbi +20 -0
  23. data/lib/no_response/models/operations/rotatewebhooksigningkey_request.rb +33 -0
  24. data/lib/no_response/models/operations/rotatewebhooksigningkey_request.rbi +20 -0
  25. data/lib/no_response/models/operations/rotatewebhooksigningkey_response.rb +32 -0
  26. data/lib/no_response/models/operations/rotatewebhooksigningkey_response.rbi +20 -0
  27. data/lib/no_response/models/operations/sendwebhooktestevent_request.rb +33 -0
  28. data/lib/no_response/models/operations/sendwebhooktestevent_request.rbi +20 -0
  29. data/lib/no_response/models/operations/sendwebhooktestevent_response.rb +32 -0
  30. data/lib/no_response/models/operations/sendwebhooktestevent_response.rbi +20 -0
  31. data/lib/no_response/models/operations.rb +14 -0
  32. data/lib/no_response/models/shared/assessmentquery.rb +1 -1
  33. data/lib/no_response/models/shared/assessmentrequest.rb +1 -1
  34. data/lib/no_response/models/shared/badrequesterrorcode.rb +1 -0
  35. data/lib/no_response/models/shared/conflicterrorcode.rb +3 -0
  36. data/lib/no_response/models/shared/integration.rb +112 -0
  37. data/lib/no_response/models/shared/integration.rbi +56 -0
  38. data/lib/no_response/models/shared/integrationhookpoint.rb +19 -0
  39. data/lib/no_response/models/shared/integrationhookpoint.rbi +9 -0
  40. data/lib/no_response/models/shared/integrationlist.rb +32 -0
  41. data/lib/no_response/models/shared/integrationlist.rbi +14 -0
  42. data/lib/no_response/models/shared/integrationplatform.rb +19 -0
  43. data/lib/no_response/models/shared/integrationplatform.rbi +9 -0
  44. data/lib/no_response/models/shared/integrationrequest.rb +62 -0
  45. data/lib/no_response/models/shared/integrationrequest.rbi +26 -0
  46. data/lib/no_response/models/shared/integrationrotationrequest.rb +33 -0
  47. data/lib/no_response/models/shared/integrationrotationrequest.rbi +14 -0
  48. data/lib/no_response/models/shared/responsemode.rb +4 -1
  49. data/lib/no_response/models/shared/scope.rb +1 -0
  50. data/lib/no_response/models/shared/signingkey.rb +49 -0
  51. data/lib/no_response/models/shared/signingkey.rbi +26 -0
  52. data/lib/no_response/models/shared/signingsecret.rb +49 -0
  53. data/lib/no_response/models/shared/signingsecret.rbi +26 -0
  54. data/lib/no_response/models/shared/webhookendpoint.rb +100 -0
  55. data/lib/no_response/models/shared/webhookendpoint.rbi +50 -0
  56. data/lib/no_response/models/shared/webhookendpointcreated.rb +41 -0
  57. data/lib/no_response/models/shared/webhookendpointcreated.rbi +20 -0
  58. data/lib/no_response/models/shared/webhookendpointlist.rb +32 -0
  59. data/lib/no_response/models/shared/webhookendpointlist.rbi +14 -0
  60. data/lib/no_response/models/shared/webhookendpointrequest.rb +42 -0
  61. data/lib/no_response/models/shared/webhookendpointrequest.rbi +20 -0
  62. data/lib/no_response/models/shared/webhookendpointstate.rb +20 -0
  63. data/lib/no_response/models/shared/webhookendpointstate.rbi +9 -0
  64. data/lib/no_response/models/shared/webhookkeyrotation.rb +65 -0
  65. data/lib/no_response/models/shared/webhookkeyrotation.rbi +32 -0
  66. data/lib/no_response/models/shared/webhookkeyrotationrequest.rb +23 -0
  67. data/lib/no_response/models/shared/webhookkeyrotationrequest.rbi +9 -0
  68. data/lib/no_response/models/shared/webhooktest.rb +86 -0
  69. data/lib/no_response/models/shared/webhooktest.rbi +38 -0
  70. data/lib/no_response/models/shared/webhooktestrequest.rb +39 -0
  71. data/lib/no_response/models/shared/webhooktestrequest.rbi +14 -0
  72. data/lib/no_response/models/shared/webhooktestrequestevent.rb +19 -0
  73. data/lib/no_response/models/shared/webhooktestrequestevent.rbi +9 -0
  74. data/lib/no_response/models/shared.rb +18 -0
  75. data/lib/no_response/noresponseclient.rb +3 -1
  76. data/lib/no_response/sdkconfiguration.rb +2 -2
  77. data/lib/no_response/webhookendpoints.rb +1444 -0
  78. data/lib/noresponse.rb +2 -0
  79. metadata +67 -1
@@ -0,0 +1,38 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ class NoResponse::Models::Shared::WebhookTest
5
+ extend ::Crystalline::MetadataFields::ClassMethods
6
+ end
7
+
8
+ class NoResponse::Models::Shared::WebhookTest
9
+ def delivery_id
10
+ end
11
+
12
+ def delivery_id=(str_)
13
+ end
14
+
15
+ def endpoint_id
16
+ end
17
+
18
+ def endpoint_id=(str_)
19
+ end
20
+
21
+ def event
22
+ end
23
+
24
+ def event=(str_)
25
+ end
26
+
27
+ def state
28
+ end
29
+
30
+ def state=(str_)
31
+ end
32
+
33
+ def verified
34
+ end
35
+
36
+ def verified=(str_)
37
+ end
38
+ end
@@ -0,0 +1,39 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ module NoResponse
5
+ module Models
6
+ module Shared
7
+ # POST /v1/webhooks/{endpoint_id}/test body: which event to send.
8
+ class WebhookTestRequest
9
+ extend T::Sig
10
+ include Crystalline::MetadataFields
11
+
12
+ # endpoint.verification sends a fresh challenge now, in this call, and the endpoint is verified if it echoes it. assessment.updated queues an event whose data is a fixed example assessment, with test true, delivered and retried like any other; the endpoint must be verified.
13
+ field(
14
+ :event,
15
+ Models::Shared::WebhookTestRequestEvent,
16
+ {
17
+ 'format_json': {
18
+ 'letter_case': ::NoResponse::Utils.field_name("event"),
19
+ required: true,
20
+ 'decoder': ::NoResponse::Utils.open_enum_from_string(Models::Shared::WebhookTestRequestEvent, false)
21
+ }
22
+ }
23
+ )
24
+
25
+ sig { params(event: Models::Shared::WebhookTestRequestEvent).void }
26
+ def initialize(event:)
27
+ @event = event
28
+ end
29
+
30
+ sig { params(other: T.untyped).returns(T::Boolean) }
31
+ def ==(other)
32
+ return false unless other.is_a?(self.class)
33
+ return false unless @event == other.event
34
+ true
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,14 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ class NoResponse::Models::Shared::WebhookTestRequest
5
+ extend ::Crystalline::MetadataFields::ClassMethods
6
+ end
7
+
8
+ class NoResponse::Models::Shared::WebhookTestRequest
9
+ def event
10
+ end
11
+
12
+ def event=(str_)
13
+ end
14
+ end
@@ -0,0 +1,19 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ module NoResponse
5
+ module Models
6
+ module Shared
7
+ # WebhookTestRequestEvent - endpoint.verification sends a fresh challenge now, in this call, and the endpoint is verified if it echoes it. assessment.updated queues an event whose data is a fixed example assessment, with test true, delivered and retried like any other; the endpoint must be verified.
8
+ class WebhookTestRequestEvent
9
+ include ::Crystalline::Enum
10
+ enums do
11
+ ENDPOINT_VERIFICATION = new("endpoint.verification")
12
+ ASSESSMENT_UPDATED = new("assessment.updated")
13
+ end
14
+
15
+ open!
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,9 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ class NoResponse::Models::Shared::WebhookTestRequestEvent
5
+ extend ::Crystalline::MetadataFields::ClassMethods
6
+ end
7
+
8
+ class NoResponse::Models::Shared::WebhookTestRequestEvent
9
+ end
@@ -38,6 +38,12 @@ module NoResponse
38
38
  autoload :IdentifierKind, "no_response/models/shared/identifierkind.rb"
39
39
  autoload :IncompleteReason, "no_response/models/shared/incompletereason.rb"
40
40
  autoload :IncompleteSource, "no_response/models/shared/incompletesource.rb"
41
+ autoload :Integration, "no_response/models/shared/integration.rb"
42
+ autoload :IntegrationHookPoint, "no_response/models/shared/integrationhookpoint.rb"
43
+ autoload :IntegrationList, "no_response/models/shared/integrationlist.rb"
44
+ autoload :IntegrationPlatform, "no_response/models/shared/integrationplatform.rb"
45
+ autoload :IntegrationRequest, "no_response/models/shared/integrationrequest.rb"
46
+ autoload :IntegrationRotationRequest, "no_response/models/shared/integrationrotationrequest.rb"
41
47
  autoload :IpSummary, "no_response/models/shared/ipsummary.rb"
42
48
  autoload :IpSummaryType, "no_response/models/shared/ipsummarytype.rb"
43
49
  autoload :KeyRotation, "no_response/models/shared/keyrotation.rb"
@@ -70,8 +76,20 @@ module NoResponse
70
76
  autoload :Security, "no_response/models/shared/security.rb"
71
77
  autoload :Signal, "no_response/models/shared/signal.rb"
72
78
  autoload :SignalOutcome, "no_response/models/shared/signaloutcome.rb"
79
+ autoload :SigningKey, "no_response/models/shared/signingkey.rb"
80
+ autoload :SigningSecret, "no_response/models/shared/signingsecret.rb"
73
81
  autoload :Status, "no_response/models/shared/status.rb"
74
82
  autoload :Transport, "no_response/models/shared/transport.rb"
83
+ autoload :WebhookEndpoint, "no_response/models/shared/webhookendpoint.rb"
84
+ autoload :WebhookEndpointCreated, "no_response/models/shared/webhookendpointcreated.rb"
85
+ autoload :WebhookEndpointList, "no_response/models/shared/webhookendpointlist.rb"
86
+ autoload :WebhookEndpointRequest, "no_response/models/shared/webhookendpointrequest.rb"
87
+ autoload :WebhookEndpointState, "no_response/models/shared/webhookendpointstate.rb"
88
+ autoload :WebhookKeyRotation, "no_response/models/shared/webhookkeyrotation.rb"
89
+ autoload :WebhookKeyRotationRequest, "no_response/models/shared/webhookkeyrotationrequest.rb"
90
+ autoload :WebhookTest, "no_response/models/shared/webhooktest.rb"
91
+ autoload :WebhookTestRequest, "no_response/models/shared/webhooktestrequest.rb"
92
+ autoload :WebhookTestRequestEvent, "no_response/models/shared/webhooktestrequestevent.rb"
75
93
  autoload :AlternateName, "no_response/models/shared/alternate_name.rb"
76
94
  autoload :AlternateNameUnion, "no_response/models/shared/alternate_name_union.rb"
77
95
  autoload :Email, "no_response/models/shared/email.rb"
@@ -15,7 +15,7 @@ module NoResponse
15
15
  class NoResponseClient
16
16
  extend T::Sig
17
17
 
18
- attr_accessor :assessments, :keys
18
+ attr_accessor :assessments, :keys, :integrations, :webhook_endpoints
19
19
 
20
20
  # Instantiates the SDK, configuring it with the provided parameters.
21
21
  #
@@ -89,6 +89,8 @@ module NoResponse
89
89
  def init_sdks
90
90
  @assessments = Assessments.new(@sdk_configuration)
91
91
  @keys = Keys.new(@sdk_configuration)
92
+ @integrations = Integrations.new(@sdk_configuration)
93
+ @webhook_endpoints = WebhookEndpoints.new(@sdk_configuration)
92
94
  end
93
95
 
94
96
  sig { params(base_url: String, url_variables: T.nilable(T::Hash[Symbol, T.any(String, T::Enum)])).returns(String) }
@@ -92,9 +92,9 @@ module NoResponse
92
92
 
93
93
  @language = "ruby"
94
94
  @openapi_doc_version = "1"
95
- @sdk_version = "2.0.17"
95
+ @sdk_version = "2.0.19"
96
96
  @gen_version = "internal"
97
- @user_agent = "noresponse-sdk/ruby 2.0.17 internal 1 noresponse"
97
+ @user_agent = "noresponse-sdk/ruby 2.0.19 internal 1 noresponse"
98
98
  end
99
99
 
100
100
  sig { returns([String, T::Hash[Symbol, String]]) }