noresponse 2.0.17 → 2.0.18

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 (34) 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/deleteintegration_request.rb +33 -0
  6. data/lib/no_response/models/operations/deleteintegration_request.rbi +14 -0
  7. data/lib/no_response/models/operations/deleteintegration_response.rb +28 -0
  8. data/lib/no_response/models/operations/deleteintegration_response.rbi +14 -0
  9. data/lib/no_response/models/operations/listintegrations_response.rb +32 -0
  10. data/lib/no_response/models/operations/listintegrations_response.rbi +20 -0
  11. data/lib/no_response/models/operations/rotateintegrationsecret_request.rb +37 -0
  12. data/lib/no_response/models/operations/rotateintegrationsecret_request.rbi +20 -0
  13. data/lib/no_response/models/operations/rotateintegrationsecret_response.rb +32 -0
  14. data/lib/no_response/models/operations/rotateintegrationsecret_response.rbi +20 -0
  15. data/lib/no_response/models/operations.rb +6 -0
  16. data/lib/no_response/models/shared/conflicterrorcode.rb +1 -0
  17. data/lib/no_response/models/shared/integration.rb +112 -0
  18. data/lib/no_response/models/shared/integration.rbi +56 -0
  19. data/lib/no_response/models/shared/integrationhookpoint.rb +19 -0
  20. data/lib/no_response/models/shared/integrationhookpoint.rbi +9 -0
  21. data/lib/no_response/models/shared/integrationlist.rb +32 -0
  22. data/lib/no_response/models/shared/integrationlist.rbi +14 -0
  23. data/lib/no_response/models/shared/integrationplatform.rb +19 -0
  24. data/lib/no_response/models/shared/integrationplatform.rbi +9 -0
  25. data/lib/no_response/models/shared/integrationrequest.rb +62 -0
  26. data/lib/no_response/models/shared/integrationrequest.rbi +26 -0
  27. data/lib/no_response/models/shared/integrationrotationrequest.rb +33 -0
  28. data/lib/no_response/models/shared/integrationrotationrequest.rbi +14 -0
  29. data/lib/no_response/models/shared/scope.rb +1 -0
  30. data/lib/no_response/models/shared.rb +6 -0
  31. data/lib/no_response/noresponseclient.rb +2 -1
  32. data/lib/no_response/sdkconfiguration.rb +2 -2
  33. data/lib/noresponse.rb +1 -0
  34. metadata +26 -1
@@ -0,0 +1,62 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ module NoResponse
5
+ module Models
6
+ module Shared
7
+ # POST /v1/integrations body. Registers a hosted endpoint for one authentication provider. The tenant is the API key that signs the request, so the body has no tenant field and refuses one like any other unknown member. A WorkOS integration needs signing_secret, the Actions secret shown in the WorkOS dashboard, which NoResponse uses to verify each Action request and to sign its answer. An Auth0 integration sends no signing_secret: NoResponse generates the shared secret and returns it once.
8
+ class IntegrationRequest
9
+ extend T::Sig
10
+ include Crystalline::MetadataFields
11
+
12
+ # The authentication provider that calls the endpoint.
13
+ field(
14
+ :platform,
15
+ Models::Shared::IntegrationPlatform,
16
+ {
17
+ 'format_json': {
18
+ 'letter_case': ::NoResponse::Utils.field_name("platform"),
19
+ required: true,
20
+ 'decoder': ::NoResponse::Utils.open_enum_from_string(Models::Shared::IntegrationPlatform, false)
21
+ }
22
+ }
23
+ )
24
+ # The provider events the endpoint scores. Default both: pre_registration (WorkOS user registration Action, Auth0 pre-user-registration trigger) and post_login (WorkOS authentication Action, Auth0 post-login trigger). An event that is not listed is answered allow without an assessment.
25
+ field(
26
+ :hook_points,
27
+ Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::IntegrationHookPoint)),
28
+ {'format_json': {'letter_case': ::NoResponse::Utils.field_name("hook_points")}}
29
+ )
30
+ # The WorkOS Actions signing secret, as the WorkOS dashboard shows it: 16 to 256 printable ASCII characters with no spaces. It is stored sealed and is not returned.
31
+ field(
32
+ :signing_secret,
33
+ Crystalline::Nilable.new(::String),
34
+ {'format_json': {'letter_case': ::NoResponse::Utils.field_name("signing_secret")}}
35
+ )
36
+
37
+ sig {
38
+ params(
39
+ platform: Models::Shared::IntegrationPlatform,
40
+ hook_points: T.nilable(T::Array[Models::Shared::IntegrationHookPoint]),
41
+ signing_secret: T.nilable(::String)
42
+ )
43
+ .void
44
+ }
45
+ def initialize(platform:, hook_points: nil, signing_secret: nil)
46
+ @platform = platform
47
+ @hook_points = hook_points
48
+ @signing_secret = signing_secret
49
+ end
50
+
51
+ sig { params(other: T.untyped).returns(T::Boolean) }
52
+ def ==(other)
53
+ return false unless other.is_a?(self.class)
54
+ return false unless @platform == other.platform
55
+ return false unless @hook_points == other.hook_points
56
+ return false unless @signing_secret == other.signing_secret
57
+ true
58
+ end
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,26 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ class NoResponse::Models::Shared::IntegrationRequest
5
+ extend ::Crystalline::MetadataFields::ClassMethods
6
+ end
7
+
8
+ class NoResponse::Models::Shared::IntegrationRequest
9
+ def platform
10
+ end
11
+
12
+ def platform=(str_)
13
+ end
14
+
15
+ def hook_points
16
+ end
17
+
18
+ def hook_points=(str_)
19
+ end
20
+
21
+ def signing_secret
22
+ end
23
+
24
+ def signing_secret=(str_)
25
+ end
26
+ end
@@ -0,0 +1,33 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ module NoResponse
5
+ module Models
6
+ module Shared
7
+ # POST /v1/integrations/{integration_id}/rotate body. For an Auth0 integration send {}: NoResponse generates a new shared secret and returns it once. For a WorkOS integration send the new signing_secret after regenerating it in the WorkOS dashboard. Either way the previous secret is still accepted for 24 hours, so the provider can be switched over without a refused call.
8
+ class IntegrationRotationRequest
9
+ extend T::Sig
10
+ include Crystalline::MetadataFields
11
+
12
+ # The WorkOS Actions signing secret, as the WorkOS dashboard shows it: 16 to 256 printable ASCII characters with no spaces. It is stored sealed and is not returned.
13
+ field(
14
+ :signing_secret,
15
+ Crystalline::Nilable.new(::String),
16
+ {'format_json': {'letter_case': ::NoResponse::Utils.field_name("signing_secret")}}
17
+ )
18
+
19
+ sig { params(signing_secret: T.nilable(::String)).void }
20
+ def initialize(signing_secret: nil)
21
+ @signing_secret = signing_secret
22
+ end
23
+
24
+ sig { params(other: T.untyped).returns(T::Boolean) }
25
+ def ==(other)
26
+ return false unless other.is_a?(self.class)
27
+ return false unless @signing_secret == other.signing_secret
28
+ true
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,14 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ class NoResponse::Models::Shared::IntegrationRotationRequest
5
+ extend ::Crystalline::MetadataFields::ClassMethods
6
+ end
7
+
8
+ class NoResponse::Models::Shared::IntegrationRotationRequest
9
+ def signing_secret
10
+ end
11
+
12
+ def signing_secret=(str_)
13
+ end
14
+ end
@@ -12,6 +12,7 @@ module NoResponse
12
12
  HISTORY = new("history")
13
13
  WEBHOOKS = new("webhooks")
14
14
  DETAILED = new("detailed")
15
+ INTEGRATIONS = new("integrations")
15
16
  end
16
17
 
17
18
  open!
@@ -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"
@@ -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
19
19
 
20
20
  # Instantiates the SDK, configuring it with the provided parameters.
21
21
  #
@@ -89,6 +89,7 @@ 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)
92
93
  end
93
94
 
94
95
  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.18"
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.18 internal 1 noresponse"
98
98
  end
99
99
 
100
100
  sig { returns([String, T::Hash[Symbol, String]]) }
data/lib/noresponse.rb CHANGED
@@ -5,6 +5,7 @@ module NoResponse
5
5
  autoload :NoResponseClient, "no_response/noresponseclient"
6
6
  autoload :Assessments, "no_response/assessments"
7
7
  autoload :Keys, "no_response/keys"
8
+ autoload :Integrations, "no_response/integrations"
8
9
 
9
10
  module Models
10
11
  autoload :Shared, "no_response/models/shared"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noresponse
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.17
4
+ version: 2.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - NoResponse
@@ -254,6 +254,7 @@ files:
254
254
  - lib/crystalline/utils.rb
255
255
  - lib/no_response/assessments.rb
256
256
  - lib/no_response/auth.rb
257
+ - lib/no_response/integrations.rb
257
258
  - lib/no_response/issued_credential.rb
258
259
  - lib/no_response/keys.rb
259
260
  - lib/no_response/late_results.rb
@@ -278,10 +279,18 @@ files:
278
279
  - lib/no_response/models/operations/createassessment_request.rbi
279
280
  - lib/no_response/models/operations/createassessment_response.rb
280
281
  - lib/no_response/models/operations/createassessment_response.rbi
282
+ - lib/no_response/models/operations/createintegration_response.rb
283
+ - lib/no_response/models/operations/createintegration_response.rbi
284
+ - lib/no_response/models/operations/deleteintegration_request.rb
285
+ - lib/no_response/models/operations/deleteintegration_request.rbi
286
+ - lib/no_response/models/operations/deleteintegration_response.rb
287
+ - lib/no_response/models/operations/deleteintegration_response.rbi
281
288
  - lib/no_response/models/operations/getassessment_request.rb
282
289
  - lib/no_response/models/operations/getassessment_request.rbi
283
290
  - lib/no_response/models/operations/getassessment_response.rb
284
291
  - lib/no_response/models/operations/getassessment_response.rbi
292
+ - lib/no_response/models/operations/listintegrations_response.rb
293
+ - lib/no_response/models/operations/listintegrations_response.rbi
285
294
  - lib/no_response/models/operations/queryaccountassessments_response.rb
286
295
  - lib/no_response/models/operations/queryaccountassessments_response.rbi
287
296
  - lib/no_response/models/operations/recordassessmentoutcome_request.rb
@@ -290,6 +299,10 @@ files:
290
299
  - lib/no_response/models/operations/recordassessmentoutcome_response.rbi
291
300
  - lib/no_response/models/operations/rotateapikey_response.rb
292
301
  - lib/no_response/models/operations/rotateapikey_response.rbi
302
+ - lib/no_response/models/operations/rotateintegrationsecret_request.rb
303
+ - lib/no_response/models/operations/rotateintegrationsecret_request.rbi
304
+ - lib/no_response/models/operations/rotateintegrationsecret_response.rb
305
+ - lib/no_response/models/operations/rotateintegrationsecret_response.rbi
293
306
  - lib/no_response/models/shared.rb
294
307
  - lib/no_response/models/shared/alternate_name.rb
295
308
  - lib/no_response/models/shared/alternate_name.rbi
@@ -367,6 +380,18 @@ files:
367
380
  - lib/no_response/models/shared/incompletereason.rbi
368
381
  - lib/no_response/models/shared/incompletesource.rb
369
382
  - lib/no_response/models/shared/incompletesource.rbi
383
+ - lib/no_response/models/shared/integration.rb
384
+ - lib/no_response/models/shared/integration.rbi
385
+ - lib/no_response/models/shared/integrationhookpoint.rb
386
+ - lib/no_response/models/shared/integrationhookpoint.rbi
387
+ - lib/no_response/models/shared/integrationlist.rb
388
+ - lib/no_response/models/shared/integrationlist.rbi
389
+ - lib/no_response/models/shared/integrationplatform.rb
390
+ - lib/no_response/models/shared/integrationplatform.rbi
391
+ - lib/no_response/models/shared/integrationrequest.rb
392
+ - lib/no_response/models/shared/integrationrequest.rbi
393
+ - lib/no_response/models/shared/integrationrotationrequest.rb
394
+ - lib/no_response/models/shared/integrationrotationrequest.rbi
370
395
  - lib/no_response/models/shared/ipsummary.rb
371
396
  - lib/no_response/models/shared/ipsummary.rbi
372
397
  - lib/no_response/models/shared/ipsummarytype.rb