noresponse 2.1.0 → 2.1.2
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.
- checksums.yaml +4 -4
- data/lib/no_response/accounts.rb +654 -0
- data/lib/no_response/assessments.rb +1 -1
- data/lib/no_response/models/operations/getaccount_request.rb +29 -0
- data/lib/no_response/models/operations/getaccount_request.rbi +14 -0
- data/lib/no_response/models/operations/getaccount_response.rb +32 -0
- data/lib/no_response/models/operations/getaccount_response.rbi +20 -0
- data/lib/no_response/models/operations/listaccountassessments_request.rb +61 -0
- data/lib/no_response/models/operations/listaccountassessments_request.rbi +32 -0
- data/lib/no_response/models/operations/listaccountassessments_response.rb +44 -0
- data/lib/no_response/models/operations/listaccountassessments_response.rbi +20 -0
- data/lib/no_response/models/operations.rb +4 -0
- data/lib/no_response/models/shared/account.rb +83 -0
- data/lib/no_response/models/shared/account.rbi +44 -0
- data/lib/no_response/models/shared/accountdecision.rb +21 -0
- data/lib/no_response/models/shared/accountdecision.rbi +9 -0
- data/lib/no_response/models/shared/accountdecisionsbyflow.rb +74 -0
- data/lib/no_response/models/shared/accountdecisionsbyflow.rbi +26 -0
- data/lib/no_response/models/shared/accountrisk.rb +62 -0
- data/lib/no_response/models/shared/accountrisk.rbi +26 -0
- data/lib/no_response/models/shared/accountriskreason.rb +67 -0
- data/lib/no_response/models/shared/accountriskreason.rbi +26 -0
- data/lib/no_response/models/shared/assessment.rb +1 -1
- data/lib/no_response/models/shared/assessmentlist.rb +1 -1
- data/lib/no_response/models/shared/assessmentquery.rb +1 -1
- data/lib/no_response/models/shared/assessmentrequest.rb +2 -2
- data/lib/no_response/models/shared.rb +5 -0
- data/lib/no_response/noresponseclient.rb +2 -1
- data/lib/no_response/sdkconfiguration.rb +2 -2
- data/lib/noresponse.rb +1 -0
- metadata +20 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module NoResponse
|
|
5
|
+
module Models
|
|
6
|
+
module Shared
|
|
7
|
+
|
|
8
|
+
class AccountRiskReason
|
|
9
|
+
extend T::Sig
|
|
10
|
+
include Crystalline::MetadataFields
|
|
11
|
+
|
|
12
|
+
# A stable reason code. New codes may appear; ignore any you do not know.
|
|
13
|
+
field(
|
|
14
|
+
:code,
|
|
15
|
+
Models::Shared::ReasonCode,
|
|
16
|
+
{
|
|
17
|
+
'format_json': {
|
|
18
|
+
'letter_case': ::NoResponse::Utils.field_name("code"),
|
|
19
|
+
required: true,
|
|
20
|
+
'decoder': ::NoResponse::Utils.open_enum_from_string(Models::Shared::ReasonCode, false)
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
field(
|
|
26
|
+
:weight,
|
|
27
|
+
::Integer,
|
|
28
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("weight"), required: true}}
|
|
29
|
+
)
|
|
30
|
+
# The submitted identifier or client context field a reason concerns; absent when it concerns the whole assessment. Client context is a claimed hint, not a device fingerprint.
|
|
31
|
+
field(
|
|
32
|
+
:identifier,
|
|
33
|
+
Crystalline::Nilable.new(Models::Shared::ReasonIdentifier),
|
|
34
|
+
{
|
|
35
|
+
'format_json': {
|
|
36
|
+
'letter_case': ::NoResponse::Utils.field_name("identifier"),
|
|
37
|
+
'decoder': ::NoResponse::Utils.open_enum_from_string(Models::Shared::ReasonIdentifier, true)
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
sig {
|
|
43
|
+
params(
|
|
44
|
+
code: Models::Shared::ReasonCode,
|
|
45
|
+
weight: ::Integer,
|
|
46
|
+
identifier: T.nilable(Models::Shared::ReasonIdentifier)
|
|
47
|
+
)
|
|
48
|
+
.void
|
|
49
|
+
}
|
|
50
|
+
def initialize(code:, weight:, identifier: nil)
|
|
51
|
+
@code = code
|
|
52
|
+
@weight = weight
|
|
53
|
+
@identifier = identifier
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
57
|
+
def ==(other)
|
|
58
|
+
return false unless other.is_a?(self.class)
|
|
59
|
+
return false unless @code == other.code
|
|
60
|
+
return false unless @weight == other.weight
|
|
61
|
+
return false unless @identifier == other.identifier
|
|
62
|
+
true
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
class NoResponse::Models::Shared::AccountRiskReason
|
|
5
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class NoResponse::Models::Shared::AccountRiskReason
|
|
9
|
+
def code
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def code=(str_)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def weight
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def weight=(str_)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def identifier
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def identifier=(str_)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -15,7 +15,7 @@ module NoResponse
|
|
|
15
15
|
::String,
|
|
16
16
|
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("assessment_id"), required: true}}
|
|
17
17
|
)
|
|
18
|
-
# Your own opaque identifier for the account being checked, scoped to your tenant. Use an id you mint, with no direct identifier (email, phone, name or national id) in it. '|' is accepted so an Auth0 user id such as 'auth0|64abc' passes unchanged; '@', '+', '$' and whitespace are refused, as is
|
|
18
|
+
# Your own opaque identifier for the account being checked, scoped to your tenant. Use an id you mint, with no direct identifier (email, phone, name or national id) in it. '|' is accepted so an Auth0 user id such as 'auth0|64abc' passes unchanged; '@', '+', '$' and whitespace are refused by the pattern, as is an exact-shape JWT; a hex digest such as a SHA-256 is allowed, because hashing an internal id is a common pseudonymous scheme. A value such as '07700900123' or 'jane.doe.gmail.com' cannot be told apart from an opaque id. It travels in bodies, and in a URL only as the path segment of GET /v1/accounts/{account_id} and its /assessments. An assessment requested by a provider hook at pre_registration, which has no account yet, carries the server-issued account_id pre: followed by its assessment_id.
|
|
19
19
|
field(
|
|
20
20
|
:account_id,
|
|
21
21
|
::String,
|
|
@@ -9,7 +9,7 @@ module NoResponse
|
|
|
9
9
|
extend T::Sig
|
|
10
10
|
include Crystalline::MetadataFields
|
|
11
11
|
|
|
12
|
-
# Your own opaque identifier for the account being checked, scoped to your tenant. Use an id you mint, with no direct identifier (email, phone, name or national id) in it. '|' is accepted so an Auth0 user id such as 'auth0|64abc' passes unchanged; '@', '+', '$' and whitespace are refused, as is
|
|
12
|
+
# Your own opaque identifier for the account being checked, scoped to your tenant. Use an id you mint, with no direct identifier (email, phone, name or national id) in it. '|' is accepted so an Auth0 user id such as 'auth0|64abc' passes unchanged; '@', '+', '$' and whitespace are refused by the pattern, as is an exact-shape JWT; a hex digest such as a SHA-256 is allowed, because hashing an internal id is a common pseudonymous scheme. A value such as '07700900123' or 'jane.doe.gmail.com' cannot be told apart from an opaque id. It travels in bodies, and in a URL only as the path segment of GET /v1/accounts/{account_id} and its /assessments. An assessment requested by a provider hook at pre_registration, which has no account yet, carries the server-issued account_id pre: followed by its assessment_id.
|
|
13
13
|
field(
|
|
14
14
|
:account_id,
|
|
15
15
|
::String,
|
|
@@ -9,7 +9,7 @@ module NoResponse
|
|
|
9
9
|
extend T::Sig
|
|
10
10
|
include Crystalline::MetadataFields
|
|
11
11
|
|
|
12
|
-
# Your own opaque identifier for the account being checked, scoped to your tenant. Use an id you mint, with no direct identifier (email, phone, name or national id) in it. '|' is accepted so an Auth0 user id such as 'auth0|64abc' passes unchanged; '@', '+', '$' and whitespace are refused, as is
|
|
12
|
+
# Your own opaque identifier for the account being checked, scoped to your tenant. Use an id you mint, with no direct identifier (email, phone, name or national id) in it. '|' is accepted so an Auth0 user id such as 'auth0|64abc' passes unchanged; '@', '+', '$' and whitespace are refused by the pattern, as is an exact-shape JWT; a hex digest such as a SHA-256 is allowed, because hashing an internal id is a common pseudonymous scheme. A value such as '07700900123' or 'jane.doe.gmail.com' cannot be told apart from an opaque id. It travels in bodies, and in a URL only as the path segment of GET /v1/accounts/{account_id} and its /assessments. An assessment requested by a provider hook at pre_registration, which has no account yet, carries the server-issued account_id pre: followed by its assessment_id.
|
|
13
13
|
field(
|
|
14
14
|
:account_id,
|
|
15
15
|
::String,
|
|
@@ -9,7 +9,7 @@ module NoResponse
|
|
|
9
9
|
extend T::Sig
|
|
10
10
|
include Crystalline::MetadataFields
|
|
11
11
|
|
|
12
|
-
# Your own opaque identifier for the account being checked, scoped to your tenant. Use an id you mint, with no direct identifier (email, phone, name or national id) in it. '|' is accepted so an Auth0 user id such as 'auth0|64abc' passes unchanged; '@', '+', '$' and whitespace are refused, as is
|
|
12
|
+
# Your own opaque identifier for the account being checked, scoped to your tenant. Use an id you mint, with no direct identifier (email, phone, name or national id) in it. '|' is accepted so an Auth0 user id such as 'auth0|64abc' passes unchanged; '@', '+', '$' and whitespace are refused by the pattern, as is an exact-shape JWT; a hex digest such as a SHA-256 is allowed, because hashing an internal id is a common pseudonymous scheme. A value such as '07700900123' or 'jane.doe.gmail.com' cannot be told apart from an opaque id. It travels in bodies, and in a URL only as the path segment of GET /v1/accounts/{account_id} and its /assessments. An assessment requested by a provider hook at pre_registration, which has no account yet, carries the server-issued account_id pre: followed by its assessment_id.
|
|
13
13
|
field(
|
|
14
14
|
:account_id,
|
|
15
15
|
::String,
|
|
@@ -33,7 +33,7 @@ module NoResponse
|
|
|
33
33
|
Crystalline::Nilable.new(::String),
|
|
34
34
|
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("request_id")}}
|
|
35
35
|
)
|
|
36
|
-
# Optional tighter budget, 50 to
|
|
36
|
+
# Optional tighter budget, 50 to 3000 ms, measured from the moment the request reaches NoResponse. Absent means the 3000 ms ceiling; a value above it is refused with 400 rather than clamped.
|
|
37
37
|
field(
|
|
38
38
|
:deadline_ms,
|
|
39
39
|
Crystalline::Nilable.new(::Integer),
|
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
module NoResponse
|
|
5
5
|
module Models
|
|
6
6
|
module Shared
|
|
7
|
+
autoload :Account, "no_response/models/shared/account.rb"
|
|
8
|
+
autoload :AccountDecision, "no_response/models/shared/accountdecision.rb"
|
|
9
|
+
autoload :AccountDecisionsByFlow, "no_response/models/shared/accountdecisionsbyflow.rb"
|
|
10
|
+
autoload :AccountRisk, "no_response/models/shared/accountrisk.rb"
|
|
11
|
+
autoload :AccountRiskReason, "no_response/models/shared/accountriskreason.rb"
|
|
7
12
|
autoload :Assessment, "no_response/models/shared/assessment.rb"
|
|
8
13
|
autoload :AssessmentAuthContext, "no_response/models/shared/assessmentauthcontext.rb"
|
|
9
14
|
autoload :AssessmentList, "no_response/models/shared/assessmentlist.rb"
|
|
@@ -15,7 +15,7 @@ module NoResponse
|
|
|
15
15
|
class NoResponseClient
|
|
16
16
|
extend T::Sig
|
|
17
17
|
|
|
18
|
-
attr_accessor :assessments, :keys, :integrations, :webhook_endpoints
|
|
18
|
+
attr_accessor :assessments, :accounts, :keys, :integrations, :webhook_endpoints
|
|
19
19
|
|
|
20
20
|
# Instantiates the SDK, configuring it with the provided parameters.
|
|
21
21
|
#
|
|
@@ -88,6 +88,7 @@ module NoResponse
|
|
|
88
88
|
sig { void }
|
|
89
89
|
def init_sdks
|
|
90
90
|
@assessments = Assessments.new(@sdk_configuration)
|
|
91
|
+
@accounts = Accounts.new(@sdk_configuration)
|
|
91
92
|
@keys = Keys.new(@sdk_configuration)
|
|
92
93
|
@integrations = Integrations.new(@sdk_configuration)
|
|
93
94
|
@webhook_endpoints = WebhookEndpoints.new(@sdk_configuration)
|
|
@@ -95,9 +95,9 @@ module NoResponse
|
|
|
95
95
|
|
|
96
96
|
@language = "ruby"
|
|
97
97
|
@openapi_doc_version = "1"
|
|
98
|
-
@sdk_version = "2.1.
|
|
98
|
+
@sdk_version = "2.1.2"
|
|
99
99
|
@gen_version = "internal"
|
|
100
|
-
@user_agent = "noresponse-sdk/ruby 2.1.
|
|
100
|
+
@user_agent = "noresponse-sdk/ruby 2.1.2 internal 1 noresponse"
|
|
101
101
|
end
|
|
102
102
|
|
|
103
103
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
data/lib/noresponse.rb
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
module NoResponse
|
|
5
5
|
autoload :NoResponseClient, "no_response/noresponseclient"
|
|
6
6
|
autoload :Assessments, "no_response/assessments"
|
|
7
|
+
autoload :Accounts, "no_response/accounts"
|
|
7
8
|
autoload :Keys, "no_response/keys"
|
|
8
9
|
autoload :Integrations, "no_response/integrations"
|
|
9
10
|
autoload :WebhookEndpoints, "no_response/webhookendpoints"
|
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.1.
|
|
4
|
+
version: 2.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- NoResponse
|
|
@@ -252,6 +252,7 @@ files:
|
|
|
252
252
|
- lib/crystalline/module.rb
|
|
253
253
|
- lib/crystalline/types.rb
|
|
254
254
|
- lib/crystalline/utils.rb
|
|
255
|
+
- lib/no_response/accounts.rb
|
|
255
256
|
- lib/no_response/assessments.rb
|
|
256
257
|
- lib/no_response/auth.rb
|
|
257
258
|
- lib/no_response/integrations.rb
|
|
@@ -291,10 +292,18 @@ files:
|
|
|
291
292
|
- lib/no_response/models/operations/deletewebhookendpoint_request.rbi
|
|
292
293
|
- lib/no_response/models/operations/deletewebhookendpoint_response.rb
|
|
293
294
|
- lib/no_response/models/operations/deletewebhookendpoint_response.rbi
|
|
295
|
+
- lib/no_response/models/operations/getaccount_request.rb
|
|
296
|
+
- lib/no_response/models/operations/getaccount_request.rbi
|
|
297
|
+
- lib/no_response/models/operations/getaccount_response.rb
|
|
298
|
+
- lib/no_response/models/operations/getaccount_response.rbi
|
|
294
299
|
- lib/no_response/models/operations/getassessment_request.rb
|
|
295
300
|
- lib/no_response/models/operations/getassessment_request.rbi
|
|
296
301
|
- lib/no_response/models/operations/getassessment_response.rb
|
|
297
302
|
- lib/no_response/models/operations/getassessment_response.rbi
|
|
303
|
+
- lib/no_response/models/operations/listaccountassessments_request.rb
|
|
304
|
+
- lib/no_response/models/operations/listaccountassessments_request.rbi
|
|
305
|
+
- lib/no_response/models/operations/listaccountassessments_response.rb
|
|
306
|
+
- lib/no_response/models/operations/listaccountassessments_response.rbi
|
|
298
307
|
- lib/no_response/models/operations/listintegrations_response.rb
|
|
299
308
|
- lib/no_response/models/operations/listintegrations_response.rbi
|
|
300
309
|
- lib/no_response/models/operations/listwebhookendpoints_response.rb
|
|
@@ -320,6 +329,16 @@ files:
|
|
|
320
329
|
- lib/no_response/models/operations/sendwebhooktestevent_response.rb
|
|
321
330
|
- lib/no_response/models/operations/sendwebhooktestevent_response.rbi
|
|
322
331
|
- lib/no_response/models/shared.rb
|
|
332
|
+
- lib/no_response/models/shared/account.rb
|
|
333
|
+
- lib/no_response/models/shared/account.rbi
|
|
334
|
+
- lib/no_response/models/shared/accountdecision.rb
|
|
335
|
+
- lib/no_response/models/shared/accountdecision.rbi
|
|
336
|
+
- lib/no_response/models/shared/accountdecisionsbyflow.rb
|
|
337
|
+
- lib/no_response/models/shared/accountdecisionsbyflow.rbi
|
|
338
|
+
- lib/no_response/models/shared/accountrisk.rb
|
|
339
|
+
- lib/no_response/models/shared/accountrisk.rbi
|
|
340
|
+
- lib/no_response/models/shared/accountriskreason.rb
|
|
341
|
+
- lib/no_response/models/shared/accountriskreason.rbi
|
|
323
342
|
- lib/no_response/models/shared/alternate_name.rb
|
|
324
343
|
- lib/no_response/models/shared/alternate_name.rbi
|
|
325
344
|
- lib/no_response/models/shared/alternate_name_union.rb
|