prelude-sdk 0.7.0 → 0.8.0

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 (118) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +3 -5
  4. data/lib/prelude_sdk/client.rb +4 -0
  5. data/lib/prelude_sdk/internal/type/base_model.rb +5 -5
  6. data/lib/prelude_sdk/models/intel/kyc_match_params.rb +96 -0
  7. data/lib/prelude_sdk/models/intel/kyc_match_response.rb +305 -0
  8. data/lib/prelude_sdk/models/notify_reply_params.rb +60 -0
  9. data/lib/prelude_sdk/models/notify_reply_response.rb +65 -0
  10. data/lib/prelude_sdk/models/signals.rb +125 -0
  11. data/lib/prelude_sdk/models/target.rb +39 -0
  12. data/lib/prelude_sdk/models/verification/phone/history_list_params.rb +177 -0
  13. data/lib/prelude_sdk/models/verification/phone/history_list_response.rb +286 -0
  14. data/lib/prelude_sdk/models/verification/phone/history_retrieve_params.rb +24 -0
  15. data/lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb +890 -0
  16. data/lib/prelude_sdk/models/verification/phone/phone_verification_carrier.rb +29 -0
  17. data/lib/prelude_sdk/models/verification/phone/phone_verification_money.rb +35 -0
  18. data/lib/prelude_sdk/models/verification/phone/phone_verification_psd2_transaction.rb +29 -0
  19. data/lib/prelude_sdk/models/verification_check_params.rb +3 -38
  20. data/lib/prelude_sdk/models/verification_create_params.rb +6 -161
  21. data/lib/prelude_sdk/models/verification_management/sandbox_add_phone_number_params.rb +37 -0
  22. data/lib/prelude_sdk/models/verification_management/sandbox_add_phone_number_response.rb +27 -0
  23. data/lib/prelude_sdk/models/verification_management/sandbox_delete_phone_number_params.rb +22 -0
  24. data/lib/prelude_sdk/models/verification_management/sandbox_delete_phone_number_response.rb +19 -0
  25. data/lib/prelude_sdk/models/verification_management/sandbox_list_phone_numbers_params.rb +16 -0
  26. data/lib/prelude_sdk/models/verification_management/sandbox_list_phone_numbers_response.rb +47 -0
  27. data/lib/prelude_sdk/models/watch_evaluate_params.rb +68 -0
  28. data/lib/prelude_sdk/models/watch_evaluate_response.rb +266 -0
  29. data/lib/prelude_sdk/models/watch_predict_params.rb +6 -160
  30. data/lib/prelude_sdk/models/watch_send_events_params.rb +3 -38
  31. data/lib/prelude_sdk/models/watch_send_feedbacks_params.rb +3 -38
  32. data/lib/prelude_sdk/models.rb +14 -0
  33. data/lib/prelude_sdk/resources/intel/kyc.rb +62 -0
  34. data/lib/prelude_sdk/resources/intel.rb +20 -0
  35. data/lib/prelude_sdk/resources/notify.rb +35 -0
  36. data/lib/prelude_sdk/resources/verification/phone/history.rb +104 -0
  37. data/lib/prelude_sdk/resources/verification/phone.rb +21 -0
  38. data/lib/prelude_sdk/resources/verification.rb +7 -3
  39. data/lib/prelude_sdk/resources/verification_management/sandbox.rb +99 -0
  40. data/lib/prelude_sdk/resources/verification_management.rb +5 -0
  41. data/lib/prelude_sdk/resources/watch.rb +45 -2
  42. data/lib/prelude_sdk/version.rb +1 -1
  43. data/lib/prelude_sdk.rb +26 -0
  44. data/rbi/prelude_sdk/client.rbi +3 -0
  45. data/rbi/prelude_sdk/models/intel/kyc_match_params.rbi +147 -0
  46. data/rbi/prelude_sdk/models/intel/kyc_match_response.rbi +736 -0
  47. data/rbi/prelude_sdk/models/notify_reply_params.rbi +87 -0
  48. data/rbi/prelude_sdk/models/notify_reply_response.rbi +94 -0
  49. data/rbi/prelude_sdk/models/signals.rbi +200 -0
  50. data/rbi/prelude_sdk/models/target.rbi +61 -0
  51. data/rbi/prelude_sdk/models/verification/phone/history_list_params.rbi +436 -0
  52. data/rbi/prelude_sdk/models/verification/phone/history_list_response.rbi +661 -0
  53. data/rbi/prelude_sdk/models/verification/phone/history_retrieve_params.rbi +42 -0
  54. data/rbi/prelude_sdk/models/verification/phone/history_retrieve_response.rbi +2229 -0
  55. data/rbi/prelude_sdk/models/verification/phone/phone_verification_carrier.rbi +39 -0
  56. data/rbi/prelude_sdk/models/verification/phone/phone_verification_money.rbi +46 -0
  57. data/rbi/prelude_sdk/models/verification/phone/phone_verification_psd2_transaction.rbi +68 -0
  58. data/rbi/prelude_sdk/models/verification_check_params.rbi +4 -85
  59. data/rbi/prelude_sdk/models/verification_create_params.rbi +8 -328
  60. data/rbi/prelude_sdk/models/verification_management/sandbox_add_phone_number_params.rbi +58 -0
  61. data/rbi/prelude_sdk/models/verification_management/sandbox_add_phone_number_response.rbi +42 -0
  62. data/rbi/prelude_sdk/models/verification_management/sandbox_delete_phone_number_params.rbi +43 -0
  63. data/rbi/prelude_sdk/models/verification_management/sandbox_delete_phone_number_response.rbi +32 -0
  64. data/rbi/prelude_sdk/models/verification_management/sandbox_list_phone_numbers_params.rbi +34 -0
  65. data/rbi/prelude_sdk/models/verification_management/sandbox_list_phone_numbers_response.rbi +101 -0
  66. data/rbi/prelude_sdk/models/watch_evaluate_params.rbi +109 -0
  67. data/rbi/prelude_sdk/models/watch_evaluate_response.rbi +496 -0
  68. data/rbi/prelude_sdk/models/watch_predict_params.rbi +8 -320
  69. data/rbi/prelude_sdk/models/watch_send_events_params.rbi +4 -93
  70. data/rbi/prelude_sdk/models/watch_send_feedbacks_params.rbi +4 -95
  71. data/rbi/prelude_sdk/models.rbi +14 -0
  72. data/rbi/prelude_sdk/resources/intel/kyc.rbi +61 -0
  73. data/rbi/prelude_sdk/resources/intel.rbi +17 -0
  74. data/rbi/prelude_sdk/resources/notify.rbi +31 -0
  75. data/rbi/prelude_sdk/resources/verification/phone/history.rbi +112 -0
  76. data/rbi/prelude_sdk/resources/verification/phone.rbi +18 -0
  77. data/rbi/prelude_sdk/resources/verification.rbi +6 -3
  78. data/rbi/prelude_sdk/resources/verification_management/sandbox.rbi +76 -0
  79. data/rbi/prelude_sdk/resources/verification_management.rbi +4 -0
  80. data/rbi/prelude_sdk/resources/watch.rbi +49 -2
  81. data/sig/prelude_sdk/client.rbs +2 -0
  82. data/sig/prelude_sdk/models/intel/kyc_match_params.rbs +91 -0
  83. data/sig/prelude_sdk/models/intel/kyc_match_response.rbs +276 -0
  84. data/sig/prelude_sdk/models/notify_reply_params.rbs +50 -0
  85. data/sig/prelude_sdk/models/notify_reply_response.rbs +54 -0
  86. data/sig/prelude_sdk/models/signals.rbs +101 -0
  87. data/sig/prelude_sdk/models/target.rbs +29 -0
  88. data/sig/prelude_sdk/models/verification/phone/history_list_params.rbs +187 -0
  89. data/sig/prelude_sdk/models/verification/phone/history_list_response.rbs +241 -0
  90. data/sig/prelude_sdk/models/verification/phone/history_retrieve_params.rbs +27 -0
  91. data/sig/prelude_sdk/models/verification/phone/history_retrieve_response.rbs +873 -0
  92. data/sig/prelude_sdk/models/verification/phone/phone_verification_carrier.rbs +23 -0
  93. data/sig/prelude_sdk/models/verification/phone/phone_verification_money.rbs +21 -0
  94. data/sig/prelude_sdk/models/verification/phone/phone_verification_psd2_transaction.rbs +37 -0
  95. data/sig/prelude_sdk/models/verification_check_params.rbs +4 -37
  96. data/sig/prelude_sdk/models/verification_create_params.rbs +9 -142
  97. data/sig/prelude_sdk/models/verification_management/sandbox_add_phone_number_params.rbs +30 -0
  98. data/sig/prelude_sdk/models/verification_management/sandbox_add_phone_number_response.rbs +18 -0
  99. data/sig/prelude_sdk/models/verification_management/sandbox_delete_phone_number_params.rbs +26 -0
  100. data/sig/prelude_sdk/models/verification_management/sandbox_delete_phone_number_response.rbs +15 -0
  101. data/sig/prelude_sdk/models/verification_management/sandbox_list_phone_numbers_params.rbs +17 -0
  102. data/sig/prelude_sdk/models/verification_management/sandbox_list_phone_numbers_response.rbs +45 -0
  103. data/sig/prelude_sdk/models/watch_evaluate_params.rbs +52 -0
  104. data/sig/prelude_sdk/models/watch_evaluate_response.rbs +178 -0
  105. data/sig/prelude_sdk/models/watch_predict_params.rbs +9 -142
  106. data/sig/prelude_sdk/models/watch_send_events_params.rbs +4 -37
  107. data/sig/prelude_sdk/models/watch_send_feedbacks_params.rbs +4 -37
  108. data/sig/prelude_sdk/models.rbs +14 -0
  109. data/sig/prelude_sdk/resources/intel/kyc.rbs +23 -0
  110. data/sig/prelude_sdk/resources/intel.rbs +9 -0
  111. data/sig/prelude_sdk/resources/notify.rbs +9 -0
  112. data/sig/prelude_sdk/resources/verification/phone/history.rbs +32 -0
  113. data/sig/prelude_sdk/resources/verification/phone.rbs +11 -0
  114. data/sig/prelude_sdk/resources/verification.rbs +5 -3
  115. data/sig/prelude_sdk/resources/verification_management/sandbox.rbs +24 -0
  116. data/sig/prelude_sdk/resources/verification_management.rbs +2 -0
  117. data/sig/prelude_sdk/resources/watch.rbs +11 -2
  118. metadata +79 -1
@@ -0,0 +1,890 @@
1
+ # frozen_string_literal: true
2
+
3
+ module PreludeSDK
4
+ module Models
5
+ module Verification
6
+ module Phone
7
+ # @see PreludeSDK::Resources::Verification::Phone::History#retrieve
8
+ class HistoryRetrieveResponse < PreludeSDK::Internal::Type::BaseModel
9
+ # @!attribute id
10
+ # The verification identifier.
11
+ #
12
+ # @return [String]
13
+ required :id, String
14
+
15
+ # @!attribute created_at
16
+ #
17
+ # @return [Time]
18
+ required :created_at, Time
19
+
20
+ # @!attribute expires_at
21
+ #
22
+ # @return [Time]
23
+ required :expires_at, Time
24
+
25
+ # @!attribute phone_number
26
+ # The E.164 phone number the verification targeted.
27
+ #
28
+ # @return [String]
29
+ required :phone_number, String
30
+
31
+ # @!attribute status
32
+ # The outcome of the verification.
33
+ #
34
+ # - `converted` - The end user submitted a valid code.
35
+ # - `not_converted` - The verification expired without a valid code.
36
+ # - `pending_check` - A code was delivered and Prelude is still waiting for a
37
+ # check.
38
+ # - `sent` - A code was sent and the verification window is still open.
39
+ # - `challenged` - The verification was restricted to non-SMS and non-voice
40
+ # channels.
41
+ # - `suspected_fraud` - The anti-fraud system blocked the verification.
42
+ # - `in_blocklist` - The phone number is on the configured block list.
43
+ # - `invalid_line` - The phone number is not a valid line type.
44
+ # - `invalid_number` - The phone number is not a valid number.
45
+ # - `rate_limited` - The verification was refused by a rate limit.
46
+ # - `expired_signals` - The SDK signals were collected too long before the
47
+ # request.
48
+ # - `shadowed` - The anti-fraud system flagged the verification without blocking
49
+ # it.
50
+ #
51
+ # @return [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Status]
52
+ required :status, enum: -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Status }
53
+
54
+ # @!attribute app_version
55
+ # Version of your application, when known.
56
+ #
57
+ # @return [String, nil]
58
+ optional :app_version, String
59
+
60
+ # @!attribute block_reasons
61
+ # Why the anti-fraud system blocked the verification. Empty unless it did.
62
+ #
63
+ # - `behavioral_pattern` - The phone number past behavior during verification
64
+ # flows exhibits suspicious patterns.
65
+ # - `device_attribute` - The end-user device reported attributes associated with
66
+ # fraud or emulation.
67
+ # - `fraud_database` - The phone number appears in a fraud database.
68
+ # - `location_discrepancy` - The phone number region and the observed location
69
+ # disagree.
70
+ # - `missing_signals` - The verification expected Prelude SDK signals and none
71
+ # arrived.
72
+ # - `network_fingerprint` - The network fingerprint matches known fraudulent
73
+ # traffic.
74
+ # - `poor_conversion_history` - The phone number rarely completes the
75
+ # verifications it starts.
76
+ # - `prefix_concentration` - The phone number is part of a range known to be
77
+ # associated with suspicious activity patterns.
78
+ # - `repeated_number` - The phone number was used far more often than normal
79
+ # traffic would explain.
80
+ # - `suspected_request_tampering` - The SDK signals were altered or expired
81
+ # between collection and use.
82
+ # - `suspicious_ip_address` - The originating IP address is associated with
83
+ # suspicious activity.
84
+ # - `temporary_phone_number` - The phone number is known to be a temporary or
85
+ # disposable number.
86
+ #
87
+ # @return [Array<Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason>, nil]
88
+ optional :block_reasons,
89
+ -> { PreludeSDK::Internal::Type::ArrayOf[enum: PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason] }
90
+
91
+ # @!attribute carrier
92
+ # The end user's mobile network.
93
+ #
94
+ # @return [PreludeSDK::Models::Verification::Phone::PhoneVerificationCarrier, nil]
95
+ optional :carrier, -> { PreludeSDK::Verification::Phone::PhoneVerificationCarrier }
96
+
97
+ # @!attribute correlation_id
98
+ # The correlation identifier you supplied when creating the verification.
99
+ #
100
+ # @return [String, nil]
101
+ optional :correlation_id, String
102
+
103
+ # @!attribute device_model
104
+ # Model of the end-user device, when known.
105
+ #
106
+ # @return [String, nil]
107
+ optional :device_model, String
108
+
109
+ # @!attribute device_platform
110
+ # Platform of the end-user device, when known.
111
+ #
112
+ # @return [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::DevicePlatform, nil]
113
+ optional :device_platform,
114
+ enum: -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::DevicePlatform }
115
+
116
+ # @!attribute ip_address
117
+ # IP address the verification was created from.
118
+ #
119
+ # @return [String, nil]
120
+ optional :ip_address, String
121
+
122
+ # @!attribute ip_address_region
123
+ # ISO 3166-1 alpha-2 region of the caller's IP address.
124
+ #
125
+ # @return [String, nil]
126
+ optional :ip_address_region, String
127
+
128
+ # @!attribute ip_distance_meters
129
+ # Distance between the phone number region and the IP location.
130
+ #
131
+ # @return [Integer, nil]
132
+ optional :ip_distance_meters, Integer
133
+
134
+ # @!attribute lifecycle
135
+ # Chronological timeline of the verification: creation, message attempts with
136
+ # delivery events, code checks and signals reception. Omitted when Prelude holds
137
+ # no timeline for the verification.
138
+ #
139
+ # @return [PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle, nil]
140
+ optional :lifecycle, -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle }
141
+
142
+ # @!attribute phone_number_condition
143
+ # Whether the phone number was allow-listed, block-listed, or sandboxed at
144
+ # verification time.
145
+ #
146
+ # @return [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::PhoneNumberCondition, nil]
147
+ optional :phone_number_condition,
148
+ enum: -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::PhoneNumberCondition }
149
+
150
+ # @!attribute phone_number_current_condition
151
+ # Whether the phone number is currently allow-listed, block-listed, or sandboxed.
152
+ #
153
+ # @return [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::PhoneNumberCurrentCondition, nil]
154
+ optional :phone_number_current_condition,
155
+ enum: -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::PhoneNumberCurrentCondition }
156
+
157
+ # @!attribute phone_number_region
158
+ # ISO 3166-1 alpha-2 region of the phone number.
159
+ #
160
+ # @return [String, nil]
161
+ optional :phone_number_region, String
162
+
163
+ # @!attribute signals
164
+ # The anti-fraud signals you forwarded when creating the verification.
165
+ #
166
+ # @return [PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Signals, nil]
167
+ optional :signals, -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Signals }
168
+
169
+ # @!attribute signals_hash_status
170
+ # Whether the SDK signals integrity check passed.
171
+ #
172
+ # @return [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::SignalsHashStatus, nil]
173
+ optional :signals_hash_status,
174
+ enum: -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::SignalsHashStatus }
175
+
176
+ # @!attribute template_id
177
+ # The template used for this verification.
178
+ #
179
+ # @return [String, nil]
180
+ optional :template_id, String
181
+
182
+ # @!method initialize(id:, created_at:, expires_at:, phone_number:, status:, app_version: nil, block_reasons: nil, carrier: nil, correlation_id: nil, device_model: nil, device_platform: nil, ip_address: nil, ip_address_region: nil, ip_distance_meters: nil, lifecycle: nil, phone_number_condition: nil, phone_number_current_condition: nil, phone_number_region: nil, signals: nil, signals_hash_status: nil, template_id: nil)
183
+ # Some parameter documentations has been truncated, see
184
+ # {PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse} for more
185
+ # details.
186
+ #
187
+ # A verification and everything Prelude recorded about it.
188
+ #
189
+ # @param id [String] The verification identifier.
190
+ #
191
+ # @param created_at [Time]
192
+ #
193
+ # @param expires_at [Time]
194
+ #
195
+ # @param phone_number [String] The E.164 phone number the verification targeted.
196
+ #
197
+ # @param status [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Status] The outcome of the verification.
198
+ #
199
+ # @param app_version [String] Version of your application, when known.
200
+ #
201
+ # @param block_reasons [Array<Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason>] Why the anti-fraud system blocked the verification. Empty unless it did.
202
+ #
203
+ # @param carrier [PreludeSDK::Models::Verification::Phone::PhoneVerificationCarrier] The end user's mobile network.
204
+ #
205
+ # @param correlation_id [String] The correlation identifier you supplied when creating the verification.
206
+ #
207
+ # @param device_model [String] Model of the end-user device, when known.
208
+ #
209
+ # @param device_platform [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::DevicePlatform] Platform of the end-user device, when known.
210
+ #
211
+ # @param ip_address [String] IP address the verification was created from.
212
+ #
213
+ # @param ip_address_region [String] ISO 3166-1 alpha-2 region of the caller's IP address.
214
+ #
215
+ # @param ip_distance_meters [Integer] Distance between the phone number region and the IP location.
216
+ #
217
+ # @param lifecycle [PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle] Chronological timeline of the verification: creation, message attempts with deli
218
+ #
219
+ # @param phone_number_condition [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::PhoneNumberCondition] Whether the phone number was allow-listed, block-listed, or sandboxed at verific
220
+ #
221
+ # @param phone_number_current_condition [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::PhoneNumberCurrentCondition] Whether the phone number is currently allow-listed, block-listed, or sandboxed.
222
+ #
223
+ # @param phone_number_region [String] ISO 3166-1 alpha-2 region of the phone number.
224
+ #
225
+ # @param signals [PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Signals] The anti-fraud signals you forwarded when creating the verification.
226
+ #
227
+ # @param signals_hash_status [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::SignalsHashStatus] Whether the SDK signals integrity check passed.
228
+ #
229
+ # @param template_id [String] The template used for this verification.
230
+
231
+ # The outcome of the verification.
232
+ #
233
+ # - `converted` - The end user submitted a valid code.
234
+ # - `not_converted` - The verification expired without a valid code.
235
+ # - `pending_check` - A code was delivered and Prelude is still waiting for a
236
+ # check.
237
+ # - `sent` - A code was sent and the verification window is still open.
238
+ # - `challenged` - The verification was restricted to non-SMS and non-voice
239
+ # channels.
240
+ # - `suspected_fraud` - The anti-fraud system blocked the verification.
241
+ # - `in_blocklist` - The phone number is on the configured block list.
242
+ # - `invalid_line` - The phone number is not a valid line type.
243
+ # - `invalid_number` - The phone number is not a valid number.
244
+ # - `rate_limited` - The verification was refused by a rate limit.
245
+ # - `expired_signals` - The SDK signals were collected too long before the
246
+ # request.
247
+ # - `shadowed` - The anti-fraud system flagged the verification without blocking
248
+ # it.
249
+ #
250
+ # @see PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse#status
251
+ module Status
252
+ extend PreludeSDK::Internal::Type::Enum
253
+
254
+ CONVERTED = :converted
255
+ NOT_CONVERTED = :not_converted
256
+ PENDING_CHECK = :pending_check
257
+ SENT = :sent
258
+ CHALLENGED = :challenged
259
+ SUSPECTED_FRAUD = :suspected_fraud
260
+ IN_BLOCKLIST = :in_blocklist
261
+ INVALID_LINE = :invalid_line
262
+ INVALID_NUMBER = :invalid_number
263
+ RATE_LIMITED = :rate_limited
264
+ EXPIRED_SIGNALS = :expired_signals
265
+ SHADOWED = :shadowed
266
+
267
+ # @!method self.values
268
+ # @return [Array<Symbol>]
269
+ end
270
+
271
+ module BlockReason
272
+ extend PreludeSDK::Internal::Type::Enum
273
+
274
+ BEHAVIORAL_PATTERN = :behavioral_pattern
275
+ DEVICE_ATTRIBUTE = :device_attribute
276
+ FRAUD_DATABASE = :fraud_database
277
+ LOCATION_DISCREPANCY = :location_discrepancy
278
+ MISSING_SIGNALS = :missing_signals
279
+ NETWORK_FINGERPRINT = :network_fingerprint
280
+ POOR_CONVERSION_HISTORY = :poor_conversion_history
281
+ PREFIX_CONCENTRATION = :prefix_concentration
282
+ REPEATED_NUMBER = :repeated_number
283
+ SUSPECTED_REQUEST_TAMPERING = :suspected_request_tampering
284
+ SUSPICIOUS_IP_ADDRESS = :suspicious_ip_address
285
+ TEMPORARY_PHONE_NUMBER = :temporary_phone_number
286
+
287
+ # @!method self.values
288
+ # @return [Array<Symbol>]
289
+ end
290
+
291
+ # Platform of the end-user device, when known.
292
+ #
293
+ # @see PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse#device_platform
294
+ module DevicePlatform
295
+ extend PreludeSDK::Internal::Type::Enum
296
+
297
+ ANDROID = :android
298
+ IOS = :ios
299
+ IPADOS = :ipados
300
+ TVOS = :tvos
301
+ WEB = :web
302
+
303
+ # @!method self.values
304
+ # @return [Array<Symbol>]
305
+ end
306
+
307
+ # @see PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse#lifecycle
308
+ class Lifecycle < PreludeSDK::Internal::Type::BaseModel
309
+ # @!attribute events
310
+ #
311
+ # @return [Array<PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event>]
312
+ required :events,
313
+ -> { PreludeSDK::Internal::Type::ArrayOf[PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event] }
314
+
315
+ # @!attribute total_cost
316
+ #
317
+ # @return [PreludeSDK::Models::Verification::Phone::PhoneVerificationMoney, nil]
318
+ optional :total_cost, -> { PreludeSDK::Verification::Phone::PhoneVerificationMoney }
319
+
320
+ # @!attribute undeliverable_route_count
321
+ # How many times the message was reported undeliverable by independent routes.
322
+ # Above zero usually means the phone number is incorrect or the device
323
+ # unreachable.
324
+ #
325
+ # @return [Integer, nil]
326
+ optional :undeliverable_route_count, Integer
327
+
328
+ # @!method initialize(events:, total_cost: nil, undeliverable_route_count: nil)
329
+ # Some parameter documentations has been truncated, see
330
+ # {PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle}
331
+ # for more details.
332
+ #
333
+ # Chronological timeline of the verification: creation, message attempts with
334
+ # delivery events, code checks and signals reception. Omitted when Prelude holds
335
+ # no timeline for the verification.
336
+ #
337
+ # @param events [Array<PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event>]
338
+ #
339
+ # @param total_cost [PreludeSDK::Models::Verification::Phone::PhoneVerificationMoney]
340
+ #
341
+ # @param undeliverable_route_count [Integer] How many times the message was reported undeliverable by independent routes. Abo
342
+
343
+ class Event < PreludeSDK::Internal::Type::BaseModel
344
+ # @!attribute type
345
+ #
346
+ # @return [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Type]
347
+ required :type,
348
+ enum: -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Type }
349
+
350
+ # @!attribute attempt
351
+ # One message sent for this verification.
352
+ #
353
+ # @return [PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt, nil]
354
+ optional :attempt,
355
+ -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt }
356
+
357
+ # @!attribute check
358
+ # One code submission for this verification.
359
+ #
360
+ # @return [PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Check, nil]
361
+ optional :check,
362
+ -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Check }
363
+
364
+ # @!attribute create
365
+ #
366
+ # @return [PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Create, nil]
367
+ optional :create,
368
+ -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Create }
369
+
370
+ # @!attribute signals
371
+ #
372
+ # @return [PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Signals, nil]
373
+ optional :signals,
374
+ -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Signals }
375
+
376
+ # @!method initialize(type:, attempt: nil, check: nil, create: nil, signals: nil)
377
+ # One timeline entry. `type` names the single payload field that is set.
378
+ #
379
+ # @param type [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Type]
380
+ #
381
+ # @param attempt [PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt] One message sent for this verification.
382
+ #
383
+ # @param check [PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Check] One code submission for this verification.
384
+ #
385
+ # @param create [PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Create]
386
+ #
387
+ # @param signals [PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Signals]
388
+
389
+ # @see PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event#type
390
+ module Type
391
+ extend PreludeSDK::Internal::Type::Enum
392
+
393
+ CREATE = :create
394
+ ATTEMPT = :attempt
395
+ CHECK = :check
396
+ SIGNALS = :signals
397
+
398
+ # @!method self.values
399
+ # @return [Array<Symbol>]
400
+ end
401
+
402
+ # @see PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event#attempt
403
+ class Attempt < PreludeSDK::Internal::Type::BaseModel
404
+ # @!attribute id
405
+ #
406
+ # @return [String]
407
+ required :id, String
408
+
409
+ # @!attribute created_at
410
+ #
411
+ # @return [Time]
412
+ required :created_at, Time
413
+
414
+ # @!attribute carrier
415
+ # The end user's mobile network.
416
+ #
417
+ # @return [PreludeSDK::Models::Verification::Phone::PhoneVerificationCarrier, nil]
418
+ optional :carrier, -> { PreludeSDK::Verification::Phone::PhoneVerificationCarrier }
419
+
420
+ # @!attribute channel
421
+ #
422
+ # @return [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::Channel, nil]
423
+ optional :channel,
424
+ enum: -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::Channel }
425
+
426
+ # @!attribute content
427
+ # Message body. While the verification can still be completed, the code inside it
428
+ # is masked rather than removed.
429
+ #
430
+ # @return [String, nil]
431
+ optional :content, String
432
+
433
+ # @!attribute cost
434
+ #
435
+ # @return [PreludeSDK::Models::Verification::Phone::PhoneVerificationMoney, nil]
436
+ optional :cost, -> { PreludeSDK::Verification::Phone::PhoneVerificationMoney }
437
+
438
+ # @!attribute delivery_events
439
+ #
440
+ # @return [Array<PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::DeliveryEvent>, nil]
441
+ optional :delivery_events,
442
+ -> { PreludeSDK::Internal::Type::ArrayOf[PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::DeliveryEvent] }
443
+
444
+ # @!attribute delivery_status
445
+ #
446
+ # @return [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::DeliveryStatus, nil]
447
+ optional :delivery_status,
448
+ enum: -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::DeliveryStatus }
449
+
450
+ # @!attribute preferred_channel
451
+ # Channel you asked for, when it differs from the one used.
452
+ #
453
+ # @return [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::PreferredChannel, nil]
454
+ optional :preferred_channel,
455
+ enum: -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::PreferredChannel }
456
+
457
+ # @!attribute status
458
+ #
459
+ # @return [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::Status, nil]
460
+ optional :status,
461
+ enum: -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::Status }
462
+
463
+ # @!attribute trigger
464
+ # What caused the attempt.
465
+ #
466
+ # @return [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::Trigger, nil]
467
+ optional :trigger,
468
+ enum: -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::Trigger }
469
+
470
+ # @!method initialize(id:, created_at:, carrier: nil, channel: nil, content: nil, cost: nil, delivery_events: nil, delivery_status: nil, preferred_channel: nil, status: nil, trigger: nil)
471
+ # Some parameter documentations has been truncated, see
472
+ # {PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt}
473
+ # for more details.
474
+ #
475
+ # One message sent for this verification.
476
+ #
477
+ # @param id [String]
478
+ #
479
+ # @param created_at [Time]
480
+ #
481
+ # @param carrier [PreludeSDK::Models::Verification::Phone::PhoneVerificationCarrier] The end user's mobile network.
482
+ #
483
+ # @param channel [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::Channel]
484
+ #
485
+ # @param content [String] Message body. While the verification can still be completed, the code inside it
486
+ #
487
+ # @param cost [PreludeSDK::Models::Verification::Phone::PhoneVerificationMoney]
488
+ #
489
+ # @param delivery_events [Array<PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::DeliveryEvent>]
490
+ #
491
+ # @param delivery_status [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::DeliveryStatus]
492
+ #
493
+ # @param preferred_channel [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::PreferredChannel] Channel you asked for, when it differs from the one used.
494
+ #
495
+ # @param status [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::Status]
496
+ #
497
+ # @param trigger [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::Trigger] What caused the attempt.
498
+
499
+ # @see PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt#channel
500
+ module Channel
501
+ extend PreludeSDK::Internal::Type::Enum
502
+
503
+ SMS = :sms
504
+ RCS = :rcs
505
+ WHATSAPP = :whatsapp
506
+ VIBER = :viber
507
+ ZALO = :zalo
508
+ TELEGRAM = :telegram
509
+ VOICE = :voice
510
+ SILENT = :silent
511
+
512
+ # @!method self.values
513
+ # @return [Array<Symbol>]
514
+ end
515
+
516
+ class DeliveryEvent < PreludeSDK::Internal::Type::BaseModel
517
+ # @!attribute received_at
518
+ #
519
+ # @return [Time]
520
+ required :received_at, Time
521
+
522
+ # @!attribute status
523
+ # The state this event reported. It is finer-grained than the attempt's
524
+ # `delivery_status` and includes the states a silent verification goes through.
525
+ #
526
+ # @return [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::DeliveryEvent::Status]
527
+ required :status,
528
+ enum: -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::DeliveryEvent::Status }
529
+
530
+ # @!method initialize(received_at:, status:)
531
+ # Some parameter documentations has been truncated, see
532
+ # {PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::DeliveryEvent}
533
+ # for more details.
534
+ #
535
+ # @param received_at [Time]
536
+ #
537
+ # @param status [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::DeliveryEvent::Status] The state this event reported. It is finer-grained than the attempt's
538
+ # `delivery\_
539
+
540
+ # The state this event reported. It is finer-grained than the attempt's
541
+ # `delivery_status` and includes the states a silent verification goes through.
542
+ #
543
+ # @see PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt::DeliveryEvent#status
544
+ module Status
545
+ extend PreludeSDK::Internal::Type::Enum
546
+
547
+ UNKNOWN = :unknown
548
+ SUBMITTED = :submitted
549
+ IN_TRANSIT = :in_transit
550
+ DELIVERED = :delivered
551
+ UNDELIVERABLE = :undeliverable
552
+ EXPIRED = :expired
553
+ READ = :read
554
+ SILENT_STARTED = :silent_started
555
+ SILENT_VERIFIED = :silent_verified
556
+ SILENT_MISMATCH = :silent_mismatch
557
+
558
+ # @!method self.values
559
+ # @return [Array<Symbol>]
560
+ end
561
+ end
562
+
563
+ # @see PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt#delivery_status
564
+ module DeliveryStatus
565
+ extend PreludeSDK::Internal::Type::Enum
566
+
567
+ UNKNOWN = :unknown
568
+ IN_TRANSIT = :in_transit
569
+ DELIVERED = :delivered
570
+ UNDELIVERABLE = :undeliverable
571
+ READ = :read
572
+
573
+ # @!method self.values
574
+ # @return [Array<Symbol>]
575
+ end
576
+
577
+ # Channel you asked for, when it differs from the one used.
578
+ #
579
+ # @see PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt#preferred_channel
580
+ module PreferredChannel
581
+ extend PreludeSDK::Internal::Type::Enum
582
+
583
+ SMS = :sms
584
+ RCS = :rcs
585
+ WHATSAPP = :whatsapp
586
+ VIBER = :viber
587
+ ZALO = :zalo
588
+ TELEGRAM = :telegram
589
+ VOICE = :voice
590
+ SILENT = :silent
591
+
592
+ # @!method self.values
593
+ # @return [Array<Symbol>]
594
+ end
595
+
596
+ # @see PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt#status
597
+ module Status
598
+ extend PreludeSDK::Internal::Type::Enum
599
+
600
+ SUCCEEDED = :succeeded
601
+ FAILED = :failed
602
+
603
+ # @!method self.values
604
+ # @return [Array<Symbol>]
605
+ end
606
+
607
+ # What caused the attempt.
608
+ #
609
+ # @see PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Attempt#trigger
610
+ module Trigger
611
+ extend PreludeSDK::Internal::Type::Enum
612
+
613
+ INITIAL = :initial
614
+ AUTO_RETRY = :auto_retry
615
+ USER_RETRY = :user_retry
616
+
617
+ # @!method self.values
618
+ # @return [Array<Symbol>]
619
+ end
620
+ end
621
+
622
+ # @see PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event#check
623
+ class Check < PreludeSDK::Internal::Type::BaseModel
624
+ # @!attribute created_at
625
+ #
626
+ # @return [Time]
627
+ required :created_at, Time
628
+
629
+ # @!attribute is_valid
630
+ #
631
+ # @return [Boolean]
632
+ required :is_valid, PreludeSDK::Internal::Type::Boolean
633
+
634
+ # @!attribute channel
635
+ #
636
+ # @return [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Check::Channel, nil]
637
+ optional :channel,
638
+ enum: -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Check::Channel }
639
+
640
+ # @!attribute psd2_info
641
+ # Present on checks against a `prelude:psd2` code.
642
+ #
643
+ # @return [PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Check::Psd2Info, nil]
644
+ optional :psd2_info,
645
+ -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Check::Psd2Info }
646
+
647
+ # @!attribute status_detail
648
+ # Why an invalid check failed, when known.
649
+ #
650
+ # @return [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Check::StatusDetail, nil]
651
+ optional :status_detail,
652
+ enum: -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Check::StatusDetail }
653
+
654
+ # @!attribute value
655
+ # The submitted code. Absent while the verification can still be completed, so
656
+ # that a check in flight cannot be read back through this endpoint, and absent on
657
+ # silent verification checks, which carry no code.
658
+ #
659
+ # @return [String, nil]
660
+ optional :value, String
661
+
662
+ # @!method initialize(created_at:, is_valid:, channel: nil, psd2_info: nil, status_detail: nil, value: nil)
663
+ # Some parameter documentations has been truncated, see
664
+ # {PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Check}
665
+ # for more details.
666
+ #
667
+ # One code submission for this verification.
668
+ #
669
+ # @param created_at [Time]
670
+ #
671
+ # @param is_valid [Boolean]
672
+ #
673
+ # @param channel [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Check::Channel]
674
+ #
675
+ # @param psd2_info [PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Check::Psd2Info] Present on checks against a `prelude:psd2` code.
676
+ #
677
+ # @param status_detail [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Check::StatusDetail] Why an invalid check failed, when known.
678
+ #
679
+ # @param value [String] The submitted code. Absent while the verification can still be completed, so tha
680
+
681
+ # @see PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Check#channel
682
+ module Channel
683
+ extend PreludeSDK::Internal::Type::Enum
684
+
685
+ SMS = :sms
686
+ RCS = :rcs
687
+ WHATSAPP = :whatsapp
688
+ VIBER = :viber
689
+ ZALO = :zalo
690
+ TELEGRAM = :telegram
691
+ VOICE = :voice
692
+ SILENT = :silent
693
+
694
+ # @!method self.values
695
+ # @return [Array<Symbol>]
696
+ end
697
+
698
+ # @see PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Check#psd2_info
699
+ class Psd2Info < PreludeSDK::Internal::Type::BaseModel
700
+ # @!attribute expected_transaction
701
+ # The transaction submitted when the code was issued.
702
+ #
703
+ # @return [PreludeSDK::Models::Verification::Phone::PhoneVerificationPsd2Transaction, nil]
704
+ optional :expected_transaction, -> { PreludeSDK::Verification::Phone::PhoneVerificationPsd2Transaction }
705
+
706
+ # @!attribute received_transaction
707
+ # The transaction submitted with this check. Differs from `expected_transaction`
708
+ # when `status_detail` is `transaction_mismatch`.
709
+ #
710
+ # @return [PreludeSDK::Models::Verification::Phone::PhoneVerificationPsd2Transaction, nil]
711
+ optional :received_transaction, -> { PreludeSDK::Verification::Phone::PhoneVerificationPsd2Transaction }
712
+
713
+ # @!method initialize(expected_transaction: nil, received_transaction: nil)
714
+ # Some parameter documentations has been truncated, see
715
+ # {PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Check::Psd2Info}
716
+ # for more details.
717
+ #
718
+ # Present on checks against a `prelude:psd2` code.
719
+ #
720
+ # @param expected_transaction [PreludeSDK::Models::Verification::Phone::PhoneVerificationPsd2Transaction] The transaction submitted when the code was issued.
721
+ #
722
+ # @param received_transaction [PreludeSDK::Models::Verification::Phone::PhoneVerificationPsd2Transaction] The transaction submitted with this check. Differs from `expected_transaction` w
723
+ end
724
+
725
+ # Why an invalid check failed, when known.
726
+ #
727
+ # @see PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Check#status_detail
728
+ module StatusDetail
729
+ extend PreludeSDK::Internal::Type::Enum
730
+
731
+ EXPIRED_ATTEMPT = :expired_attempt
732
+ EXPIRED_AUTH = :expired_auth
733
+ RATE_LIMITED = :rate_limited
734
+ TRANSACTION_MISSING = :transaction_missing
735
+ TRANSACTION_MISMATCH = :transaction_mismatch
736
+
737
+ # @!method self.values
738
+ # @return [Array<Symbol>]
739
+ end
740
+ end
741
+
742
+ # @see PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event#create
743
+ class Create < PreludeSDK::Internal::Type::BaseModel
744
+ # @!attribute created_at
745
+ #
746
+ # @return [Time]
747
+ required :created_at, Time
748
+
749
+ # @!attribute cost
750
+ #
751
+ # @return [PreludeSDK::Models::Verification::Phone::PhoneVerificationMoney, nil]
752
+ optional :cost, -> { PreludeSDK::Verification::Phone::PhoneVerificationMoney }
753
+
754
+ # @!method initialize(created_at:, cost: nil)
755
+ # @param created_at [Time]
756
+ # @param cost [PreludeSDK::Models::Verification::Phone::PhoneVerificationMoney]
757
+ end
758
+
759
+ # @see PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event#signals
760
+ class Signals < PreludeSDK::Internal::Type::BaseModel
761
+ # @!attribute received_at
762
+ #
763
+ # @return [Time]
764
+ required :received_at, Time
765
+
766
+ # @!attribute expired_at
767
+ #
768
+ # @return [Time, nil]
769
+ optional :expired_at, Time
770
+
771
+ # @!attribute status
772
+ #
773
+ # @return [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Signals::Status, nil]
774
+ optional :status,
775
+ enum: -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Signals::Status }
776
+
777
+ # @!method initialize(received_at:, expired_at: nil, status: nil)
778
+ # @param received_at [Time]
779
+ # @param expired_at [Time]
780
+ # @param status [Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Signals::Status]
781
+
782
+ # @see PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle::Event::Signals#status
783
+ module Status
784
+ extend PreludeSDK::Internal::Type::Enum
785
+
786
+ VALID = :valid
787
+ INVALID = :invalid
788
+
789
+ # @!method self.values
790
+ # @return [Array<Symbol>]
791
+ end
792
+ end
793
+ end
794
+ end
795
+
796
+ # Whether the phone number was allow-listed, block-listed, or sandboxed at
797
+ # verification time.
798
+ #
799
+ # @see PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse#phone_number_condition
800
+ module PhoneNumberCondition
801
+ extend PreludeSDK::Internal::Type::Enum
802
+
803
+ ALLOW_LISTED = :allow_listed
804
+ BLOCK_LISTED = :block_listed
805
+ SANDBOXED = :sandboxed
806
+
807
+ # @!method self.values
808
+ # @return [Array<Symbol>]
809
+ end
810
+
811
+ # Whether the phone number is currently allow-listed, block-listed, or sandboxed.
812
+ #
813
+ # @see PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse#phone_number_current_condition
814
+ module PhoneNumberCurrentCondition
815
+ extend PreludeSDK::Internal::Type::Enum
816
+
817
+ ALLOW_LISTED = :allow_listed
818
+ BLOCK_LISTED = :block_listed
819
+ SANDBOXED = :sandboxed
820
+
821
+ # @!method self.values
822
+ # @return [Array<Symbol>]
823
+ end
824
+
825
+ # @see PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse#signals
826
+ class Signals < PreludeSDK::Internal::Type::BaseModel
827
+ # @!attribute is_trusted_user
828
+ # Whether you flagged this end user as trusted when creating the verification.
829
+ # Declared by you, not computed by Prelude.
830
+ #
831
+ # @return [Boolean]
832
+ required :is_trusted_user, PreludeSDK::Internal::Type::Boolean
833
+
834
+ # @!attribute device_id
835
+ # End-user device identifier you forwarded.
836
+ #
837
+ # @return [String, nil]
838
+ optional :device_id, String
839
+
840
+ # @!attribute ja4_fingerprint
841
+ # TLS fingerprint you forwarded.
842
+ #
843
+ # @return [String, nil]
844
+ optional :ja4_fingerprint, String
845
+
846
+ # @!attribute os_version
847
+ #
848
+ # @return [String, nil]
849
+ optional :os_version, String
850
+
851
+ # @!attribute user_agent
852
+ #
853
+ # @return [String, nil]
854
+ optional :user_agent, String
855
+
856
+ # @!method initialize(is_trusted_user:, device_id: nil, ja4_fingerprint: nil, os_version: nil, user_agent: nil)
857
+ # Some parameter documentations has been truncated, see
858
+ # {PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Signals} for
859
+ # more details.
860
+ #
861
+ # The anti-fraud signals you forwarded when creating the verification.
862
+ #
863
+ # @param is_trusted_user [Boolean] Whether you flagged this end user as trusted when creating the verification. Dec
864
+ #
865
+ # @param device_id [String] End-user device identifier you forwarded.
866
+ #
867
+ # @param ja4_fingerprint [String] TLS fingerprint you forwarded.
868
+ #
869
+ # @param os_version [String]
870
+ #
871
+ # @param user_agent [String]
872
+ end
873
+
874
+ # Whether the SDK signals integrity check passed.
875
+ #
876
+ # @see PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse#signals_hash_status
877
+ module SignalsHashStatus
878
+ extend PreludeSDK::Internal::Type::Enum
879
+
880
+ VALID = :valid
881
+ INVALID = :invalid
882
+
883
+ # @!method self.values
884
+ # @return [Array<Symbol>]
885
+ end
886
+ end
887
+ end
888
+ end
889
+ end
890
+ end