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