noresponse 10.0.1 → 10.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d4580d3276d8e1a6e9b3d9456c55be2baf736602067bf61df070a896ee39903b
4
- data.tar.gz: 768921ebf728b70d51b2241e9ec839917f4791d22e0d0b665537b40d9b8a8aea
3
+ metadata.gz: 47be67d4a5ea5ad8b80822a30612f68c07105ecf68e7c4d2c9589352612ba67a
4
+ data.tar.gz: 804eb7cbce3840df38b218c7644868aef1692bb0b4557794f725d45687fe097c
5
5
  SHA512:
6
- metadata.gz: 88f56f17d0374b4df2a7886ee75ee575198c6cae98cf25042f2d4f72708b4311c301d2e6d1dc0a99c8dbe4cb6652c0f48d6c8f2852f0abe8df7a6c8f319feef9
7
- data.tar.gz: 2c988fcfe40dc2d6731842e349a229e32b3bf43489adcf4ccaf0af840256208f804c143622412892f899a0b4fdc4de0a6d28e01d80f0b7af971878419da52eeb
6
+ metadata.gz: d6a91801af8bbc5d579de77fd601334c6c3e4ea00fe0c06f0be10080d6ada6ff9b74912351927ce924cb77d805fe515b5a0ac7609eb5a380d208128aa64ccb1a
7
+ data.tar.gz: 41acbf922cadaab5d58f52a99e5372dedd793f842a6eb56bd07a901074f19b5e8b7a0dbf325bffbcb842c0b463411e004471935883264810078a3b99072c50ae
@@ -0,0 +1,21 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ module NoResponse
5
+ module Models
6
+ module Shared
7
+ # Attribute - name_gender is the records' gender against the submitted first name's usual one.
8
+ class Attribute
9
+ include ::Crystalline::Enum
10
+ enums do
11
+ BIRTH_DATE = new("birth_date")
12
+ GENDER = new("gender")
13
+ NATIONALITY = new("nationality")
14
+ NAME_GENDER = new("name_gender")
15
+ end
16
+
17
+ open!
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,9 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ class NoResponse::Models::Shared::Attribute
5
+ extend ::Crystalline::MetadataFields::ClassMethods
6
+ end
7
+
8
+ class NoResponse::Models::Shared::Attribute
9
+ end
@@ -80,6 +80,18 @@ module NoResponse
80
80
  Crystalline::Nilable.new(::Integer),
81
81
  {'format_json': {'letter_case': ::NoResponse::Utils.field_name("block_threshold")}}
82
82
  )
83
+ # The score at which this answer's flow starts to recommend step_up. Absent from an answer stored before it was recorded.
84
+ field(
85
+ :step_up_threshold,
86
+ Crystalline::Nilable.new(::Integer),
87
+ {'format_json': {'letter_case': ::NoResponse::Utils.field_name("step_up_threshold")}}
88
+ )
89
+ # The score at which this answer's flow starts to recommend review. An answer nothing answered recommends review below it, with confidence unavailable. Absent from an answer stored before it was recorded.
90
+ field(
91
+ :review_threshold,
92
+ Crystalline::Nilable.new(::Integer),
93
+ {'format_json': {'letter_case': ::NoResponse::Utils.field_name("review_threshold")}}
94
+ )
83
95
  # Labels the v0 policy as hand-authored and not statistically validated.
84
96
  field(
85
97
  :policy_basis,
@@ -110,6 +122,8 @@ module NoResponse
110
122
  coverage: Models::Shared::RiskCoverage,
111
123
  block: T.nilable(T::Boolean),
112
124
  block_threshold: T.nilable(::Integer),
125
+ step_up_threshold: T.nilable(::Integer),
126
+ review_threshold: T.nilable(::Integer),
113
127
  policy_basis: ::String,
114
128
  summary: T.nilable(Models::Shared::RiskSummary),
115
129
  details: T.nilable(Models::Shared::RiskDetails)
@@ -126,6 +140,8 @@ module NoResponse
126
140
  coverage:,
127
141
  block: nil,
128
142
  block_threshold: nil,
143
+ step_up_threshold: nil,
144
+ review_threshold: nil,
129
145
  policy_basis: "heuristic_unvalidated",
130
146
  summary: nil,
131
147
  details: nil
@@ -139,6 +155,8 @@ module NoResponse
139
155
  @coverage = coverage
140
156
  @block = block
141
157
  @block_threshold = block_threshold
158
+ @step_up_threshold = step_up_threshold
159
+ @review_threshold = review_threshold
142
160
  unless policy_basis == "heuristic_unvalidated"
143
161
  raise ArgumentError, "Invalid value for policy_basis"
144
162
  end
@@ -160,6 +178,8 @@ module NoResponse
160
178
  return false unless @coverage == other.coverage
161
179
  return false unless @block == other.block
162
180
  return false unless @block_threshold == other.block_threshold
181
+ return false unless @step_up_threshold == other.step_up_threshold
182
+ return false unless @review_threshold == other.review_threshold
163
183
  return false unless @policy_basis == other.policy_basis
164
184
  return false unless @summary == other.summary
165
185
  return false unless @details == other.details
@@ -60,6 +60,18 @@ class NoResponse::Models::Shared::Risk
60
60
  def block_threshold=(str_)
61
61
  end
62
62
 
63
+ def step_up_threshold
64
+ end
65
+
66
+ def step_up_threshold=(str_)
67
+ end
68
+
69
+ def review_threshold
70
+ end
71
+
72
+ def review_threshold=(str_)
73
+ end
74
+
63
75
  def policy_basis
64
76
  end
65
77
 
@@ -38,6 +38,12 @@ module NoResponse
38
38
  Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::OnlineAccount)),
39
39
  {'format_json': {'letter_case': ::NoResponse::Utils.field_name("accounts")}}
40
40
  )
41
+ # What an identity_attribute_conflict reason weighed: each attribute the records disagree on and the sites reporting it. Absent when the reason did not fire, and on an answer stored before conflicts were recorded. No value is served.
42
+ field(
43
+ :attribute_conflicts,
44
+ Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::RiskDetailsAttributeConflict)),
45
+ {'format_json': {'letter_case': ::NoResponse::Utils.field_name("attribute_conflicts")}}
46
+ )
41
47
 
42
48
  sig {
43
49
  params(
@@ -45,16 +51,25 @@ module NoResponse
45
51
  breaches: T.nilable(T::Array[Models::Shared::Breach]),
46
52
  breach_names: T.nilable(T::Array[Models::Shared::RiskDetailsBreachName]),
47
53
  events: T.nilable(T::Array[Models::Shared::RiskDetailsEvent]),
48
- accounts: T.nilable(T::Array[Models::Shared::OnlineAccount])
54
+ accounts: T.nilable(T::Array[Models::Shared::OnlineAccount]),
55
+ attribute_conflicts: T.nilable(T::Array[Models::Shared::RiskDetailsAttributeConflict])
49
56
  )
50
57
  .void
51
58
  }
52
- def initialize(phone_names: nil, breaches: nil, breach_names: nil, events: nil, accounts: nil)
59
+ def initialize(
60
+ phone_names: nil,
61
+ breaches: nil,
62
+ breach_names: nil,
63
+ events: nil,
64
+ accounts: nil,
65
+ attribute_conflicts: nil
66
+ )
53
67
  @phone_names = phone_names
54
68
  @breaches = breaches
55
69
  @breach_names = breach_names
56
70
  @events = events
57
71
  @accounts = accounts
72
+ @attribute_conflicts = attribute_conflicts
58
73
  end
59
74
 
60
75
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -65,6 +80,7 @@ module NoResponse
65
80
  return false unless @breach_names == other.breach_names
66
81
  return false unless @events == other.events
67
82
  return false unless @accounts == other.accounts
83
+ return false unless @attribute_conflicts == other.attribute_conflicts
68
84
  true
69
85
  end
70
86
  end
@@ -35,4 +35,10 @@ class NoResponse::Models::Shared::RiskDetails
35
35
 
36
36
  def accounts=(str_)
37
37
  end
38
+
39
+ def attribute_conflicts
40
+ end
41
+
42
+ def attribute_conflicts=(str_)
43
+ end
38
44
  end
@@ -0,0 +1,62 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ module NoResponse
5
+ module Models
6
+ module Shared
7
+
8
+ class RiskDetailsAttributeConflict
9
+ extend T::Sig
10
+ include Crystalline::MetadataFields
11
+
12
+ # name_gender is the records' gender against the submitted first name's usual one.
13
+ field(
14
+ :attribute,
15
+ Models::Shared::Attribute,
16
+ {
17
+ 'format_json': {
18
+ 'letter_case': ::NoResponse::Utils.field_name("attribute"),
19
+ required: true,
20
+ 'decoder': ::NoResponse::Utils.open_enum_from_string(Models::Shared::Attribute, false)
21
+ }
22
+ }
23
+ )
24
+ # The domains of the breached sites whose tables report the attribute, newest breach first, at most 32. Absent when none of the tables has a site.
25
+ field(
26
+ :sites,
27
+ Crystalline::Nilable.new(Crystalline::Array.new(::String)),
28
+ {'format_json': {'letter_case': ::NoResponse::Utils.field_name("sites")}}
29
+ )
30
+ # How many of the tables reporting the attribute have no site, such as a credential list or a stealer log. Absent when none.
31
+ field(
32
+ :unsited,
33
+ Crystalline::Nilable.new(::Integer),
34
+ {'format_json': {'letter_case': ::NoResponse::Utils.field_name("unsited")}}
35
+ )
36
+
37
+ sig {
38
+ params(
39
+ attribute: Models::Shared::Attribute,
40
+ sites: T.nilable(T::Array[::String]),
41
+ unsited: T.nilable(::Integer)
42
+ )
43
+ .void
44
+ }
45
+ def initialize(attribute:, sites: nil, unsited: nil)
46
+ @attribute = attribute
47
+ @sites = sites
48
+ @unsited = unsited
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 @attribute == other.attribute
55
+ return false unless @sites == other.sites
56
+ return false unless @unsited == other.unsited
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::RiskDetailsAttributeConflict
5
+ extend ::Crystalline::MetadataFields::ClassMethods
6
+ end
7
+
8
+ class NoResponse::Models::Shared::RiskDetailsAttributeConflict
9
+ def attribute
10
+ end
11
+
12
+ def attribute=(str_)
13
+ end
14
+
15
+ def sites
16
+ end
17
+
18
+ def sites=(str_)
19
+ end
20
+
21
+ def unsited
22
+ end
23
+
24
+ def unsited=(str_)
25
+ end
26
+ end
@@ -70,6 +70,7 @@ module NoResponse
70
70
  autoload :AssessmentUpdatedData, "no_response/models/shared/assessmentupdateddata.rb"
71
71
  autoload :AssessmentUpdatedEvent, "no_response/models/shared/assessmentupdatedevent.rb"
72
72
  autoload :AssuranceLevel, "no_response/models/shared/assurancelevel.rb"
73
+ autoload :Attribute, "no_response/models/shared/attribute.rb"
73
74
  autoload :AttributeAgreement, "no_response/models/shared/attributeagreement.rb"
74
75
  autoload :AuditEvent, "no_response/models/shared/auditevent.rb"
75
76
  autoload :AuditEventEvent, "no_response/models/shared/auditeventevent.rb"
@@ -310,6 +311,7 @@ module NoResponse
310
311
  autoload :RiskConfidence, "no_response/models/shared/riskconfidence.rb"
311
312
  autoload :RiskCoverage, "no_response/models/shared/riskcoverage.rb"
312
313
  autoload :RiskDetails, "no_response/models/shared/riskdetails.rb"
314
+ autoload :RiskDetailsAttributeConflict, "no_response/models/shared/riskdetailsattributeconflict.rb"
313
315
  autoload :RiskDetailsBreachName, "no_response/models/shared/riskdetailsbreachname.rb"
314
316
  autoload :RiskDetailsEvent, "no_response/models/shared/riskdetailsevent.rb"
315
317
  autoload :RiskDetailsEventKind, "no_response/models/shared/riskdetailseventkind.rb"
@@ -95,9 +95,9 @@ module NoResponse
95
95
 
96
96
  @language = "ruby"
97
97
  @openapi_doc_version = "1"
98
- @sdk_version = "10.0.1"
98
+ @sdk_version = "10.0.2"
99
99
  @gen_version = "internal"
100
- @user_agent = "noresponse-sdk/ruby 10.0.1 internal 1 noresponse"
100
+ @user_agent = "noresponse-sdk/ruby 10.0.2 internal 1 noresponse"
101
101
  end
102
102
 
103
103
  sig { returns([String, T::Hash[Symbol, String]]) }
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: 10.0.1
4
+ version: 10.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - NoResponse
@@ -807,6 +807,8 @@ files:
807
807
  - lib/no_response/models/shared/assessmentupdatedevent.rbi
808
808
  - lib/no_response/models/shared/assurancelevel.rb
809
809
  - lib/no_response/models/shared/assurancelevel.rbi
810
+ - lib/no_response/models/shared/attribute.rb
811
+ - lib/no_response/models/shared/attribute.rbi
810
812
  - lib/no_response/models/shared/attributeagreement.rb
811
813
  - lib/no_response/models/shared/attributeagreement.rbi
812
814
  - lib/no_response/models/shared/auditevent.rb
@@ -1295,6 +1297,8 @@ files:
1295
1297
  - lib/no_response/models/shared/riskcoverage.rbi
1296
1298
  - lib/no_response/models/shared/riskdetails.rb
1297
1299
  - lib/no_response/models/shared/riskdetails.rbi
1300
+ - lib/no_response/models/shared/riskdetailsattributeconflict.rb
1301
+ - lib/no_response/models/shared/riskdetailsattributeconflict.rbi
1298
1302
  - lib/no_response/models/shared/riskdetailsbreachname.rb
1299
1303
  - lib/no_response/models/shared/riskdetailsbreachname.rbi
1300
1304
  - lib/no_response/models/shared/riskdetailsevent.rb