noresponse 9.5.3 → 9.5.4

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: 3f67905e1ca7b4e260c8f95f17732b34c06eb40a8aae71b250cf0c42543e0757
4
- data.tar.gz: 4daaf7cd4b1115e3bd4757cb71b996cf672ddba389dbafda64720c81a7778340
3
+ metadata.gz: 354dd131b4c047efcfd551c5634f17692fc887adf9ed8b636fefa98c85047b2e
4
+ data.tar.gz: 1059d1f88657362daa76c82ab292e0b3f62ecd691f171240f9cef136156e6050
5
5
  SHA512:
6
- metadata.gz: bcc4f8d99e1981818d8eb7949d5b7c9048db148082d51ce6f8f2def2e6fba33d86de6a567f39954d9cc04ba573faf8571db3dee80466a3de75f1903a5adf83fa
7
- data.tar.gz: c6710e1e088aa28f46912d104895ccc53f7aa8212b181fcbc67aff19a814c95ade1dc554305f11b194a9b99f5fbaa946f178b1e4bf0079eec67f120024dc3894
6
+ metadata.gz: df0e774954cef90887bbc0f91a0193a8b5eed0e30c880f192f6ea2c3a0d20ba9030803d8b8501c94b2902e947e0c6ade2551a2592eedf8ad177dedaeec2b6ab9
7
+ data.tar.gz: c866eae8a37c46887f1a69da3dc98b119c05b9581d7e0ae7f6de5379fd2b9566794d62d7e80cab73537c8c84d2d3d7b51878b2c08a4f3e2b06baab4b813c720c
@@ -0,0 +1,19 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ module NoResponse
5
+ module Models
6
+ module Shared
7
+ # AccountType - personal, or business: an account a company or school manages.
8
+ class AccountType
9
+ include ::Crystalline::Enum
10
+ enums do
11
+ PERSONAL = new("personal")
12
+ BUSINESS = new("business")
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::AccountType
5
+ extend ::Crystalline::MetadataFields::ClassMethods
6
+ end
7
+
8
+ class NoResponse::Models::Shared::AccountType
9
+ end
@@ -0,0 +1,158 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ module NoResponse
5
+ module Models
6
+ module Shared
7
+ # One online-account search of the signup's email or username, detailed view only. name and domain name the platform searched, not a provider. outcome is the search's signal outcome: found, not_found, or a failure (blocked, unavailable, inconclusive) with its reason; a failure is not reported as not_found. The members after reason are what the platform returned beside an account it found, each absent when it did not say.
8
+ class OnlineAccount
9
+ extend T::Sig
10
+ include Crystalline::MetadataFields
11
+
12
+ # The platform's name, such as Adobe or GitHub.
13
+ field :name, ::String, {'format_json': {'letter_case': ::NoResponse::Utils.field_name("name"), required: true}}
14
+ # The platform's domain, lower case: the host its logo is fetched for.
15
+ field(
16
+ :domain,
17
+ ::String,
18
+ {'format_json': {'letter_case': ::NoResponse::Utils.field_name("domain"), required: true}}
19
+ )
20
+
21
+ field(
22
+ :identifier,
23
+ Models::Shared::Identifier,
24
+ {
25
+ 'format_json': {
26
+ 'letter_case': ::NoResponse::Utils.field_name("identifier"),
27
+ required: true,
28
+ 'decoder': ::NoResponse::Utils.open_enum_from_string(Models::Shared::Identifier, false)
29
+ }
30
+ }
31
+ )
32
+ # Per-signal outcome. A source that timed out, was blocked or errored reports blocked, unavailable or inconclusive with a reason and is listed in incomplete_sources; not_found is a definite absence.
33
+ field(
34
+ :outcome,
35
+ Models::Shared::SignalOutcome,
36
+ {
37
+ 'format_json': {
38
+ 'letter_case': ::NoResponse::Utils.field_name("outcome"),
39
+ required: true,
40
+ 'decoder': ::NoResponse::Utils.open_enum_from_string(Models::Shared::SignalOutcome, false)
41
+ }
42
+ }
43
+ )
44
+ # Why a signal or source did not produce a definite found/not_found. timed_out means the source missed the request deadline; a continuation may still settle it. deferred means the (source, identifier) pair is async-only and was not attempted on the synchronous path; a continuation settles it.
45
+ field(
46
+ :reason,
47
+ Crystalline::Nilable.new(Models::Shared::FailureReason),
48
+ {
49
+ 'format_json': {
50
+ 'letter_case': ::NoResponse::Utils.field_name("reason"),
51
+ 'decoder': ::NoResponse::Utils.open_enum_from_string(Models::Shared::FailureReason, true)
52
+ }
53
+ }
54
+ )
55
+ # How the account signs in, as the platform reports it, sorted: a password, a Google, Facebook, Apple or Microsoft account, the organisation's single sign-on, or another method.
56
+ field(
57
+ :sign_in,
58
+ Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::SignIn)),
59
+ {'format_json': {'letter_case': ::NoResponse::Utils.field_name("sign_in")}}
60
+ )
61
+ # Whether the platform says the account's email is verified.
62
+ field(
63
+ :email_verified,
64
+ Crystalline::Nilable.new(Crystalline::Boolean.new),
65
+ {'format_json': {'letter_case': ::NoResponse::Utils.field_name("email_verified")}}
66
+ )
67
+ # Whether the platform says the account is blocked or suspended.
68
+ field(
69
+ :blocked,
70
+ Crystalline::Nilable.new(Crystalline::Boolean.new),
71
+ {'format_json': {'letter_case': ::NoResponse::Utils.field_name("blocked")}}
72
+ )
73
+ # personal, or business: an account a company or school manages.
74
+ field(
75
+ :account_type,
76
+ Crystalline::Nilable.new(Models::Shared::AccountType),
77
+ {
78
+ 'format_json': {
79
+ 'letter_case': ::NoResponse::Utils.field_name("account_type"),
80
+ 'decoder': ::NoResponse::Utils.open_enum_from_string(Models::Shared::AccountType, true)
81
+ }
82
+ }
83
+ )
84
+ # Whether the account has its own profile picture rather than the platform's default. The picture is not returned.
85
+ field(
86
+ :has_avatar,
87
+ Crystalline::Nilable.new(Crystalline::Boolean.new),
88
+ {'format_json': {'letter_case': ::NoResponse::Utils.field_name("has_avatar")}}
89
+ )
90
+ # The first letters of the account holder's first name, as the platform shows them (Life360 shows two and hides the rest). It is evidence only: it does not change the score or the consistency results.
91
+ field(
92
+ :first_name_prefix,
93
+ Crystalline::Nilable.new(::String),
94
+ {'format_json': {'letter_case': ::NoResponse::Utils.field_name("first_name_prefix")}}
95
+ )
96
+
97
+ sig {
98
+ params(
99
+ name: ::String,
100
+ domain: ::String,
101
+ identifier: Models::Shared::Identifier,
102
+ outcome: Models::Shared::SignalOutcome,
103
+ reason: T.nilable(Models::Shared::FailureReason),
104
+ sign_in: T.nilable(T::Array[Models::Shared::SignIn]),
105
+ email_verified: T.nilable(T::Boolean),
106
+ blocked: T.nilable(T::Boolean),
107
+ account_type: T.nilable(Models::Shared::AccountType),
108
+ has_avatar: T.nilable(T::Boolean),
109
+ first_name_prefix: T.nilable(::String)
110
+ )
111
+ .void
112
+ }
113
+ def initialize(
114
+ name:,
115
+ domain:,
116
+ identifier:,
117
+ outcome:,
118
+ reason: nil,
119
+ sign_in: nil,
120
+ email_verified: nil,
121
+ blocked: nil,
122
+ account_type: nil,
123
+ has_avatar: nil,
124
+ first_name_prefix: nil
125
+ )
126
+ @name = name
127
+ @domain = domain
128
+ @identifier = identifier
129
+ @outcome = outcome
130
+ @reason = reason
131
+ @sign_in = sign_in
132
+ @email_verified = email_verified
133
+ @blocked = blocked
134
+ @account_type = account_type
135
+ @has_avatar = has_avatar
136
+ @first_name_prefix = first_name_prefix
137
+ end
138
+
139
+ sig { params(other: T.untyped).returns(T::Boolean) }
140
+ def ==(other)
141
+ return false unless other.is_a?(self.class)
142
+ return false unless @name == other.name
143
+ return false unless @domain == other.domain
144
+ return false unless @identifier == other.identifier
145
+ return false unless @outcome == other.outcome
146
+ return false unless @reason == other.reason
147
+ return false unless @sign_in == other.sign_in
148
+ return false unless @email_verified == other.email_verified
149
+ return false unless @blocked == other.blocked
150
+ return false unless @account_type == other.account_type
151
+ return false unless @has_avatar == other.has_avatar
152
+ return false unless @first_name_prefix == other.first_name_prefix
153
+ true
154
+ end
155
+ end
156
+ end
157
+ end
158
+ end
@@ -0,0 +1,74 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ class NoResponse::Models::Shared::OnlineAccount
5
+ extend ::Crystalline::MetadataFields::ClassMethods
6
+ end
7
+
8
+ class NoResponse::Models::Shared::OnlineAccount
9
+ def name
10
+ end
11
+
12
+ def name=(str_)
13
+ end
14
+
15
+ def domain
16
+ end
17
+
18
+ def domain=(str_)
19
+ end
20
+
21
+ def identifier
22
+ end
23
+
24
+ def identifier=(str_)
25
+ end
26
+
27
+ def outcome
28
+ end
29
+
30
+ def outcome=(str_)
31
+ end
32
+
33
+ def reason
34
+ end
35
+
36
+ def reason=(str_)
37
+ end
38
+
39
+ def sign_in
40
+ end
41
+
42
+ def sign_in=(str_)
43
+ end
44
+
45
+ def email_verified
46
+ end
47
+
48
+ def email_verified=(str_)
49
+ end
50
+
51
+ def blocked
52
+ end
53
+
54
+ def blocked=(str_)
55
+ end
56
+
57
+ def account_type
58
+ end
59
+
60
+ def account_type=(str_)
61
+ end
62
+
63
+ def has_avatar
64
+ end
65
+
66
+ def has_avatar=(str_)
67
+ end
68
+
69
+ def first_name_prefix
70
+ end
71
+
72
+ def first_name_prefix=(str_)
73
+ end
74
+ end
@@ -32,21 +32,29 @@ module NoResponse
32
32
  Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::RiskDetailsEvent)),
33
33
  {'format_json': {'letter_case': ::NoResponse::Utils.field_name("events")}}
34
34
  )
35
+ # Every online-account search of the email or username: the platform, what the search came to and, for an account found, what the platform returned beside it. Found first, then not found, then searches that failed or are still running, each by platform name; at most 64. A failed or running search keeps its own outcome and is not reported as not_found.
36
+ field(
37
+ :accounts,
38
+ Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::OnlineAccount)),
39
+ {'format_json': {'letter_case': ::NoResponse::Utils.field_name("accounts")}}
40
+ )
35
41
 
36
42
  sig {
37
43
  params(
38
44
  phone_names: T.nilable(T::Array[Models::Shared::RiskDetailsPhoneName]),
39
45
  breaches: T.nilable(T::Array[Models::Shared::Breach]),
40
46
  breach_names: T.nilable(T::Array[Models::Shared::RiskDetailsBreachName]),
41
- events: T.nilable(T::Array[Models::Shared::RiskDetailsEvent])
47
+ events: T.nilable(T::Array[Models::Shared::RiskDetailsEvent]),
48
+ accounts: T.nilable(T::Array[Models::Shared::OnlineAccount])
42
49
  )
43
50
  .void
44
51
  }
45
- def initialize(phone_names: nil, breaches: nil, breach_names: nil, events: nil)
52
+ def initialize(phone_names: nil, breaches: nil, breach_names: nil, events: nil, accounts: nil)
46
53
  @phone_names = phone_names
47
54
  @breaches = breaches
48
55
  @breach_names = breach_names
49
56
  @events = events
57
+ @accounts = accounts
50
58
  end
51
59
 
52
60
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -56,6 +64,7 @@ module NoResponse
56
64
  return false unless @breaches == other.breaches
57
65
  return false unless @breach_names == other.breach_names
58
66
  return false unless @events == other.events
67
+ return false unless @accounts == other.accounts
59
68
  true
60
69
  end
61
70
  end
@@ -29,4 +29,10 @@ class NoResponse::Models::Shared::RiskDetails
29
29
 
30
30
  def events=(str_)
31
31
  end
32
+
33
+ def accounts
34
+ end
35
+
36
+ def accounts=(str_)
37
+ end
32
38
  end
@@ -0,0 +1,24 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ module NoResponse
5
+ module Models
6
+ module Shared
7
+
8
+ class SignIn
9
+ include ::Crystalline::Enum
10
+ enums do
11
+ PASSWORD = new("password")
12
+ GOOGLE = new("google")
13
+ FACEBOOK = new("facebook")
14
+ APPLE = new("apple")
15
+ MICROSOFT = new("microsoft")
16
+ SSO = new("sso")
17
+ OTHER = new("other")
18
+ end
19
+
20
+ open!
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,9 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ class NoResponse::Models::Shared::SignIn
5
+ extend ::Crystalline::MetadataFields::ClassMethods
6
+ end
7
+
8
+ class NoResponse::Models::Shared::SignIn
9
+ end
@@ -30,6 +30,7 @@ module NoResponse
30
30
  autoload :AccountRiskChanged, "no_response/models/shared/accountriskchanged.rb"
31
31
  autoload :AccountRiskChangedEvent, "no_response/models/shared/accountriskchangedevent.rb"
32
32
  autoload :AccountRiskReason, "no_response/models/shared/accountriskreason.rb"
33
+ autoload :AccountType, "no_response/models/shared/accounttype.rb"
33
34
  autoload :Action, "no_response/models/shared/action.rb"
34
35
  autoload :Admission, "no_response/models/shared/admission.rb"
35
36
  autoload :AggregateBucket, "no_response/models/shared/aggregatebucket.rb"
@@ -228,6 +229,7 @@ module NoResponse
228
229
  autoload :Namespace, "no_response/models/shared/namespace.rb"
229
230
  autoload :NotFoundErrorCode, "no_response/models/shared/notfounderrorcode.rb"
230
231
  autoload :OnExpiry, "no_response/models/shared/onexpiry.rb"
232
+ autoload :OnlineAccount, "no_response/models/shared/onlineaccount.rb"
231
233
  autoload :OperationalAggregate, "no_response/models/shared/operationalaggregate.rb"
232
234
  autoload :OperationalAggregateBucket, "no_response/models/shared/operationalaggregatebucket.rb"
233
235
  autoload :OperationalAggregateQueue, "no_response/models/shared/operationalaggregatequeue.rb"
@@ -373,6 +375,7 @@ module NoResponse
373
375
  autoload :LocationUnion, "no_response/models/shared/location_union.rb"
374
376
  autoload :NameCandidate, "no_response/models/shared/name_candidate.rb"
375
377
  autoload :NameCandidateUnion, "no_response/models/shared/name_candidate_union.rb"
378
+ autoload :SignIn, "no_response/models/shared/sign_in.rb"
376
379
  autoload :SocialProfile, "no_response/models/shared/social_profile.rb"
377
380
  autoload :SocialProfileUnion, "no_response/models/shared/social_profile_union.rb"
378
381
  autoload :Timezone, "no_response/models/shared/timezone.rb"
@@ -95,9 +95,9 @@ module NoResponse
95
95
 
96
96
  @language = "ruby"
97
97
  @openapi_doc_version = "1"
98
- @sdk_version = "9.5.3"
98
+ @sdk_version = "9.5.4"
99
99
  @gen_version = "internal"
100
- @user_agent = "noresponse-sdk/ruby 9.5.3 internal 1 noresponse"
100
+ @user_agent = "noresponse-sdk/ruby 9.5.4 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: 9.5.3
4
+ version: 9.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - NoResponse
@@ -717,6 +717,8 @@ files:
717
717
  - lib/no_response/models/shared/accountriskchangedevent.rbi
718
718
  - lib/no_response/models/shared/accountriskreason.rb
719
719
  - lib/no_response/models/shared/accountriskreason.rbi
720
+ - lib/no_response/models/shared/accounttype.rb
721
+ - lib/no_response/models/shared/accounttype.rbi
720
722
  - lib/no_response/models/shared/action.rb
721
723
  - lib/no_response/models/shared/action.rbi
722
724
  - lib/no_response/models/shared/actor.rb
@@ -1133,6 +1135,8 @@ files:
1133
1135
  - lib/no_response/models/shared/notfounderrorcode.rbi
1134
1136
  - lib/no_response/models/shared/onexpiry.rb
1135
1137
  - lib/no_response/models/shared/onexpiry.rbi
1138
+ - lib/no_response/models/shared/onlineaccount.rb
1139
+ - lib/no_response/models/shared/onlineaccount.rbi
1136
1140
  - lib/no_response/models/shared/operationalaggregate.rb
1137
1141
  - lib/no_response/models/shared/operationalaggregate.rbi
1138
1142
  - lib/no_response/models/shared/operationalaggregatebucket.rb
@@ -1321,6 +1325,8 @@ files:
1321
1325
  - lib/no_response/models/shared/settingsrequestflows.rbi
1322
1326
  - lib/no_response/models/shared/sharedidentifier.rb
1323
1327
  - lib/no_response/models/shared/sharedidentifier.rbi
1328
+ - lib/no_response/models/shared/sign_in.rb
1329
+ - lib/no_response/models/shared/sign_in.rbi
1324
1330
  - lib/no_response/models/shared/signal.rb
1325
1331
  - lib/no_response/models/shared/signal.rbi
1326
1332
  - lib/no_response/models/shared/signaloutcome.rb