noresponse 2.1.15 → 3.0.1
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 +1 -1
- data/lib/no_response/assessments.rb +2 -2
- data/lib/no_response/late_results.rb +108 -35
- data/lib/no_response/models/shared/account.rb +1 -1
- data/lib/no_response/models/shared/accountdecisionsbyflow.rb +1 -1
- data/lib/no_response/models/shared/assessment.rb +41 -176
- data/lib/no_response/models/shared/assessment.rbi +10 -82
- data/lib/no_response/models/shared/assessmentdetail.rb +245 -0
- data/lib/no_response/models/shared/assessmentdetail.rbi +122 -0
- data/lib/no_response/models/shared/{assessmentauthcontext.rb → assessmentdetailauthcontext.rb} +1 -1
- data/lib/no_response/models/shared/{assessmentauthcontext.rbi → assessmentdetailauthcontext.rbi} +2 -2
- data/lib/no_response/models/shared/{assessmenttiming.rb → assessmentdetailtiming.rb} +1 -1
- data/lib/no_response/models/shared/{assessmenttiming.rbi → assessmentdetailtiming.rbi} +2 -2
- data/lib/no_response/models/shared/assessmentlist.rb +3 -3
- data/lib/no_response/models/shared/assessmentrequest.rb +15 -14
- data/lib/no_response/models/shared/assessmentrequest.rbi +4 -4
- data/lib/no_response/models/shared/assessmentrequestpolicycontext.rb +3 -16
- data/lib/no_response/models/shared/assessmentrequestpolicycontext.rbi +0 -6
- data/lib/no_response/models/shared/depth.rb +4 -1
- data/lib/no_response/models/shared/flow.rb +6 -4
- data/lib/no_response/models/shared.rb +3 -3
- data/lib/no_response/sdkconfiguration.rb +2 -2
- data/lib/no_response/webhooks.rb +1 -1
- metadata +7 -7
- data/lib/no_response/models/shared/assessmentflow.rb +0 -17
- data/lib/no_response/models/shared/assessmentflow.rbi +0 -9
|
@@ -4,22 +4,11 @@
|
|
|
4
4
|
module NoResponse
|
|
5
5
|
module Models
|
|
6
6
|
module Shared
|
|
7
|
-
|
|
7
|
+
# Optional policy inputs: region.
|
|
8
8
|
class AssessmentRequestPolicyContext
|
|
9
9
|
extend T::Sig
|
|
10
10
|
include Crystalline::MetadataFields
|
|
11
11
|
|
|
12
|
-
# The provider flow the assessment gates. Use the top-level flow instead; this member is ignored when the top-level flow is present. Absent means signup.
|
|
13
|
-
field(
|
|
14
|
-
:flow,
|
|
15
|
-
Crystalline::Nilable.new(Models::Shared::Flow),
|
|
16
|
-
{
|
|
17
|
-
'format_json': {
|
|
18
|
-
'letter_case': ::NoResponse::Utils.field_name("flow"),
|
|
19
|
-
'decoder': ::NoResponse::Utils.enum_from_string(Models::Shared::Flow, true)
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
)
|
|
23
12
|
# ISO 3166-1 alpha-2 region of the signup, as the provider determines it.
|
|
24
13
|
field(
|
|
25
14
|
:region,
|
|
@@ -27,16 +16,14 @@ module NoResponse
|
|
|
27
16
|
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("region")}}
|
|
28
17
|
)
|
|
29
18
|
|
|
30
|
-
sig { params(
|
|
31
|
-
def initialize(
|
|
32
|
-
@flow = flow
|
|
19
|
+
sig { params(region: T.nilable(::String)).void }
|
|
20
|
+
def initialize(region: nil)
|
|
33
21
|
@region = region
|
|
34
22
|
end
|
|
35
23
|
|
|
36
24
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
37
25
|
def ==(other)
|
|
38
26
|
return false unless other.is_a?(self.class)
|
|
39
|
-
return false unless @flow == other.flow
|
|
40
27
|
return false unless @region == other.region
|
|
41
28
|
true
|
|
42
29
|
end
|
|
@@ -5,11 +5,14 @@ module NoResponse
|
|
|
5
5
|
module Models
|
|
6
6
|
module Shared
|
|
7
7
|
# Depth - How long the synchronous answer waits for sources. quick waits only for the fast sources, those that answer within 500 ms of ingress (or deadline_ms when lower); full waits for the whole budget, up to 3000 ms. Sources still running at the cut continue asynchronously and update the assessment either way.
|
|
8
|
-
class Depth
|
|
8
|
+
class Depth
|
|
9
|
+
include ::Crystalline::Enum
|
|
9
10
|
enums do
|
|
10
11
|
QUICK = new("quick")
|
|
11
12
|
FULL = new("full")
|
|
12
13
|
end
|
|
14
|
+
|
|
15
|
+
open!
|
|
13
16
|
end
|
|
14
17
|
end
|
|
15
18
|
end
|
|
@@ -4,14 +4,16 @@
|
|
|
4
4
|
module NoResponse
|
|
5
5
|
module Models
|
|
6
6
|
module Shared
|
|
7
|
-
# Flow - The
|
|
8
|
-
class Flow
|
|
7
|
+
# Flow - The customer event an assessment is made for: signup (a new account), login (a returning sign-in) or purchase (a payment or credit grant). The account's risk is reported with the decision for this flow.
|
|
8
|
+
class Flow
|
|
9
|
+
include ::Crystalline::Enum
|
|
9
10
|
enums do
|
|
10
11
|
SIGNUP = new("signup")
|
|
11
12
|
LOGIN = new("login")
|
|
12
|
-
|
|
13
|
-
PROFILE_CHANGE = new("profile_change")
|
|
13
|
+
PURCHASE = new("purchase")
|
|
14
14
|
end
|
|
15
|
+
|
|
16
|
+
open!
|
|
15
17
|
end
|
|
16
18
|
end
|
|
17
19
|
end
|
|
@@ -11,10 +11,11 @@ module NoResponse
|
|
|
11
11
|
autoload :AccountRisk, "no_response/models/shared/accountrisk.rb"
|
|
12
12
|
autoload :AccountRiskReason, "no_response/models/shared/accountriskreason.rb"
|
|
13
13
|
autoload :Assessment, "no_response/models/shared/assessment.rb"
|
|
14
|
-
autoload :AssessmentAuthContext, "no_response/models/shared/assessmentauthcontext.rb"
|
|
15
14
|
autoload :AssessmentDeletion, "no_response/models/shared/assessmentdeletion.rb"
|
|
16
15
|
autoload :AssessmentDeletionAccount, "no_response/models/shared/assessmentdeletionaccount.rb"
|
|
17
|
-
autoload :
|
|
16
|
+
autoload :AssessmentDetail, "no_response/models/shared/assessmentdetail.rb"
|
|
17
|
+
autoload :AssessmentDetailAuthContext, "no_response/models/shared/assessmentdetailauthcontext.rb"
|
|
18
|
+
autoload :AssessmentDetailTiming, "no_response/models/shared/assessmentdetailtiming.rb"
|
|
18
19
|
autoload :AssessmentList, "no_response/models/shared/assessmentlist.rb"
|
|
19
20
|
autoload :AssessmentOutcome, "no_response/models/shared/assessmentoutcome.rb"
|
|
20
21
|
autoload :AssessmentOutcomeRequest, "no_response/models/shared/assessmentoutcomerequest.rb"
|
|
@@ -24,7 +25,6 @@ module NoResponse
|
|
|
24
25
|
autoload :AssessmentRequestIdentifiers, "no_response/models/shared/assessmentrequestidentifiers.rb"
|
|
25
26
|
autoload :AssessmentRequestIssuedCredential, "no_response/models/shared/assessmentrequestissuedcredential.rb"
|
|
26
27
|
autoload :AssessmentRequestPolicyContext, "no_response/models/shared/assessmentrequestpolicycontext.rb"
|
|
27
|
-
autoload :AssessmentTiming, "no_response/models/shared/assessmenttiming.rb"
|
|
28
28
|
autoload :AssuranceLevel, "no_response/models/shared/assurancelevel.rb"
|
|
29
29
|
autoload :AuthContext, "no_response/models/shared/authcontext.rb"
|
|
30
30
|
autoload :AuthContextMfa, "no_response/models/shared/authcontextmfa.rb"
|
|
@@ -95,9 +95,9 @@ module NoResponse
|
|
|
95
95
|
|
|
96
96
|
@language = "ruby"
|
|
97
97
|
@openapi_doc_version = "1"
|
|
98
|
-
@sdk_version = "
|
|
98
|
+
@sdk_version = "3.0.1"
|
|
99
99
|
@gen_version = "internal"
|
|
100
|
-
@user_agent = "noresponse-sdk/ruby
|
|
100
|
+
@user_agent = "noresponse-sdk/ruby 3.0.1 internal 1 noresponse"
|
|
101
101
|
end
|
|
102
102
|
|
|
103
103
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
data/lib/no_response/webhooks.rb
CHANGED
|
@@ -55,7 +55,7 @@ module NoResponse
|
|
|
55
55
|
# "assessment.updated", an EndpointVerification for
|
|
56
56
|
# "endpoint.verification" and an AccountDeleted for "account.deleted".
|
|
57
57
|
# Deliveries are at least once and unordered:
|
|
58
|
-
# deduplicate on id and keep the highest assessment_version.
|
|
58
|
+
# deduplicate on id and keep the highest detail.assessment_version.
|
|
59
59
|
Event = Struct.new(:id, :type, :created_at, :data, :test, keyword_init: true) do
|
|
60
60
|
# True for the terminal expiry event: delete what you hold and fetch nothing.
|
|
61
61
|
def expired? = data.is_a?(AssessmentExpired)
|
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:
|
|
4
|
+
version: 3.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- NoResponse
|
|
@@ -363,14 +363,16 @@ files:
|
|
|
363
363
|
- lib/no_response/models/shared/alternate_name_union.rbi
|
|
364
364
|
- lib/no_response/models/shared/assessment.rb
|
|
365
365
|
- lib/no_response/models/shared/assessment.rbi
|
|
366
|
-
- lib/no_response/models/shared/assessmentauthcontext.rb
|
|
367
|
-
- lib/no_response/models/shared/assessmentauthcontext.rbi
|
|
368
366
|
- lib/no_response/models/shared/assessmentdeletion.rb
|
|
369
367
|
- lib/no_response/models/shared/assessmentdeletion.rbi
|
|
370
368
|
- lib/no_response/models/shared/assessmentdeletionaccount.rb
|
|
371
369
|
- lib/no_response/models/shared/assessmentdeletionaccount.rbi
|
|
372
|
-
- lib/no_response/models/shared/
|
|
373
|
-
- lib/no_response/models/shared/
|
|
370
|
+
- lib/no_response/models/shared/assessmentdetail.rb
|
|
371
|
+
- lib/no_response/models/shared/assessmentdetail.rbi
|
|
372
|
+
- lib/no_response/models/shared/assessmentdetailauthcontext.rb
|
|
373
|
+
- lib/no_response/models/shared/assessmentdetailauthcontext.rbi
|
|
374
|
+
- lib/no_response/models/shared/assessmentdetailtiming.rb
|
|
375
|
+
- lib/no_response/models/shared/assessmentdetailtiming.rbi
|
|
374
376
|
- lib/no_response/models/shared/assessmentlist.rb
|
|
375
377
|
- lib/no_response/models/shared/assessmentlist.rbi
|
|
376
378
|
- lib/no_response/models/shared/assessmentoutcome.rb
|
|
@@ -389,8 +391,6 @@ files:
|
|
|
389
391
|
- lib/no_response/models/shared/assessmentrequestissuedcredential.rbi
|
|
390
392
|
- lib/no_response/models/shared/assessmentrequestpolicycontext.rb
|
|
391
393
|
- lib/no_response/models/shared/assessmentrequestpolicycontext.rbi
|
|
392
|
-
- lib/no_response/models/shared/assessmenttiming.rb
|
|
393
|
-
- lib/no_response/models/shared/assessmenttiming.rbi
|
|
394
394
|
- lib/no_response/models/shared/assurancelevel.rb
|
|
395
395
|
- lib/no_response/models/shared/assurancelevel.rbi
|
|
396
396
|
- lib/no_response/models/shared/authcontext.rb
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# typed: true
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module NoResponse
|
|
5
|
-
module Models
|
|
6
|
-
module Shared
|
|
7
|
-
# AssessmentFlow - The customer event an assessment is made for: signup (a new account), login (a returning sign-in) or purchase (a payment or credit grant). The account's risk is reported with the decision for this flow.
|
|
8
|
-
class AssessmentFlow < T::Enum
|
|
9
|
-
enums do
|
|
10
|
-
SIGNUP = new("signup")
|
|
11
|
-
LOGIN = new("login")
|
|
12
|
-
PURCHASE = new("purchase")
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|