prelude-sdk 0.8.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/prelude_sdk/models/verification/phone/history_list_response.rb +4 -4
- data/lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb +56 -36
- data/lib/prelude_sdk/models/verification_create_response.rb +59 -33
- data/lib/prelude_sdk/models/watch_evaluate_response.rb +54 -2
- data/lib/prelude_sdk/models/watch_predict_response.rb +53 -30
- data/lib/prelude_sdk/resources/watch.rb +3 -3
- data/lib/prelude_sdk/version.rb +1 -1
- data/rbi/prelude_sdk/models/verification/phone/history_list_response.rbi +6 -6
- data/rbi/prelude_sdk/models/verification/phone/history_retrieve_response.rbi +131 -70
- data/rbi/prelude_sdk/models/verification_create_response.rbi +143 -65
- data/rbi/prelude_sdk/models/watch_evaluate_response.rbi +105 -5
- data/rbi/prelude_sdk/models/watch_predict_response.rbi +135 -62
- data/rbi/prelude_sdk/resources/watch.rbi +3 -3
- data/sig/prelude_sdk/models/verification/phone/history_retrieve_response.rbs +30 -16
- data/sig/prelude_sdk/models/verification_create_response.rbs +32 -14
- data/sig/prelude_sdk/models/watch_evaluate_response.rbs +28 -4
- data/sig/prelude_sdk/models/watch_predict_response.rbs +32 -14
- metadata +2 -2
|
@@ -41,8 +41,8 @@ module PreludeSDK
|
|
|
41
41
|
# - `invalid_line` - The phone number is not a valid line type.
|
|
42
42
|
# - `invalid_number` - The phone number is not a valid number.
|
|
43
43
|
# - `rate_limited` - The verification was refused by a rate limit.
|
|
44
|
-
# - `expired_signals` - The SDK signals were collected too long before the
|
|
45
|
-
#
|
|
44
|
+
# - `expired_signals` - The SDK signals were collected too long before the request
|
|
45
|
+
# to still attest to it.
|
|
46
46
|
# - `shadowed` - The anti-fraud system flagged the verification without blocking
|
|
47
47
|
# it.
|
|
48
48
|
sig do
|
|
@@ -59,31 +59,44 @@ module PreludeSDK
|
|
|
59
59
|
sig { params(app_version: String).void }
|
|
60
60
|
attr_writer :app_version
|
|
61
61
|
|
|
62
|
-
# Why the anti-fraud system blocked the verification. Empty unless it did.
|
|
62
|
+
# Why the anti-fraud system blocked the verification. Empty unless it did. These
|
|
63
|
+
# are the same labels the Verify and Watch APIs serve as `risk_factors`.
|
|
63
64
|
#
|
|
64
|
-
# - `
|
|
65
|
-
#
|
|
66
|
-
# - `
|
|
67
|
-
#
|
|
68
|
-
# - `
|
|
69
|
-
#
|
|
70
|
-
#
|
|
65
|
+
# - `automation_signature` - The request appears to come from an automated client
|
|
66
|
+
# rather than a person.
|
|
67
|
+
# - `carrier_not_permitted` - The destination carrier is one this account does not
|
|
68
|
+
# accept traffic for.
|
|
69
|
+
# - `client_fingerprint_mismatch` - The client does not appear to be the platform
|
|
70
|
+
# it identifies itself as.
|
|
71
|
+
# - `custom_policy` - A rule configured for your account matched this request.
|
|
72
|
+
# - `device_emulator` - The request appears to come from an emulator rather than a
|
|
73
|
+
# physical device.
|
|
74
|
+
# - `device_not_permitted` - The device platform is one your account blocks.
|
|
75
|
+
# - `device_reuse` - One device is driving verifications for an unusual number of
|
|
76
|
+
# phone numbers.
|
|
77
|
+
# - `expired_signals` - The SDK signals were collected too long before the request
|
|
78
|
+
# to still attest to it.
|
|
79
|
+
# - `fraud_database` - The phone number is flagged in one or more of the fraud
|
|
80
|
+
# databases Prelude consults.
|
|
81
|
+
# - `invalid_signature` - The SDK signature did not verify, so the request cannot
|
|
82
|
+
# be attributed to the device it claims to come from.
|
|
83
|
+
# - `ip_concentration` - The request shares its origin with an unusual volume of
|
|
84
|
+
# other verifications.
|
|
85
|
+
# - `ip_reputation` - The originating IP address is not trusted.
|
|
86
|
+
# - `location_mismatch` - The network location and the phone number's country are
|
|
87
|
+
# inconsistent.
|
|
71
88
|
# - `missing_signals` - The verification expected Prelude SDK signals and none
|
|
72
89
|
# arrived.
|
|
73
|
-
# - `
|
|
74
|
-
#
|
|
75
|
-
# - `poor_conversion_history` -
|
|
76
|
-
#
|
|
77
|
-
# - `
|
|
78
|
-
#
|
|
79
|
-
# - `
|
|
80
|
-
#
|
|
81
|
-
# - `
|
|
82
|
-
#
|
|
83
|
-
# - `suspicious_ip_address` - The originating IP address is associated with
|
|
84
|
-
# suspicious activity.
|
|
85
|
-
# - `temporary_phone_number` - The phone number is known to be a temporary or
|
|
86
|
-
# disposable number.
|
|
90
|
+
# - `number_range_abuse` - The phone number belongs to a range currently
|
|
91
|
+
# associated with abuse.
|
|
92
|
+
# - `poor_conversion_history` - Traffic resembling this request rarely completes a
|
|
93
|
+
# verification.
|
|
94
|
+
# - `proxy_network` - The request did not arrive over the subscriber's own access
|
|
95
|
+
# network.
|
|
96
|
+
# - `repeated_attempts` - The phone number exceeded the allowed number of
|
|
97
|
+
# verification attempts in a short period.
|
|
98
|
+
# - `temporary_phone_number` - The phone number belongs to a disposable or
|
|
99
|
+
# short-lived numbering service.
|
|
87
100
|
sig do
|
|
88
101
|
returns(
|
|
89
102
|
T.nilable(
|
|
@@ -341,38 +354,51 @@ module PreludeSDK
|
|
|
341
354
|
# - `invalid_line` - The phone number is not a valid line type.
|
|
342
355
|
# - `invalid_number` - The phone number is not a valid number.
|
|
343
356
|
# - `rate_limited` - The verification was refused by a rate limit.
|
|
344
|
-
# - `expired_signals` - The SDK signals were collected too long before the
|
|
345
|
-
#
|
|
357
|
+
# - `expired_signals` - The SDK signals were collected too long before the request
|
|
358
|
+
# to still attest to it.
|
|
346
359
|
# - `shadowed` - The anti-fraud system flagged the verification without blocking
|
|
347
360
|
# it.
|
|
348
361
|
status:,
|
|
349
362
|
# Version of your application, when known.
|
|
350
363
|
app_version: nil,
|
|
351
|
-
# Why the anti-fraud system blocked the verification. Empty unless it did.
|
|
364
|
+
# Why the anti-fraud system blocked the verification. Empty unless it did. These
|
|
365
|
+
# are the same labels the Verify and Watch APIs serve as `risk_factors`.
|
|
352
366
|
#
|
|
353
|
-
# - `
|
|
354
|
-
#
|
|
355
|
-
# - `
|
|
356
|
-
#
|
|
357
|
-
# - `
|
|
358
|
-
#
|
|
359
|
-
#
|
|
367
|
+
# - `automation_signature` - The request appears to come from an automated client
|
|
368
|
+
# rather than a person.
|
|
369
|
+
# - `carrier_not_permitted` - The destination carrier is one this account does not
|
|
370
|
+
# accept traffic for.
|
|
371
|
+
# - `client_fingerprint_mismatch` - The client does not appear to be the platform
|
|
372
|
+
# it identifies itself as.
|
|
373
|
+
# - `custom_policy` - A rule configured for your account matched this request.
|
|
374
|
+
# - `device_emulator` - The request appears to come from an emulator rather than a
|
|
375
|
+
# physical device.
|
|
376
|
+
# - `device_not_permitted` - The device platform is one your account blocks.
|
|
377
|
+
# - `device_reuse` - One device is driving verifications for an unusual number of
|
|
378
|
+
# phone numbers.
|
|
379
|
+
# - `expired_signals` - The SDK signals were collected too long before the request
|
|
380
|
+
# to still attest to it.
|
|
381
|
+
# - `fraud_database` - The phone number is flagged in one or more of the fraud
|
|
382
|
+
# databases Prelude consults.
|
|
383
|
+
# - `invalid_signature` - The SDK signature did not verify, so the request cannot
|
|
384
|
+
# be attributed to the device it claims to come from.
|
|
385
|
+
# - `ip_concentration` - The request shares its origin with an unusual volume of
|
|
386
|
+
# other verifications.
|
|
387
|
+
# - `ip_reputation` - The originating IP address is not trusted.
|
|
388
|
+
# - `location_mismatch` - The network location and the phone number's country are
|
|
389
|
+
# inconsistent.
|
|
360
390
|
# - `missing_signals` - The verification expected Prelude SDK signals and none
|
|
361
391
|
# arrived.
|
|
362
|
-
# - `
|
|
363
|
-
#
|
|
364
|
-
# - `poor_conversion_history` -
|
|
365
|
-
#
|
|
366
|
-
# - `
|
|
367
|
-
#
|
|
368
|
-
# - `
|
|
369
|
-
#
|
|
370
|
-
# - `
|
|
371
|
-
#
|
|
372
|
-
# - `suspicious_ip_address` - The originating IP address is associated with
|
|
373
|
-
# suspicious activity.
|
|
374
|
-
# - `temporary_phone_number` - The phone number is known to be a temporary or
|
|
375
|
-
# disposable number.
|
|
392
|
+
# - `number_range_abuse` - The phone number belongs to a range currently
|
|
393
|
+
# associated with abuse.
|
|
394
|
+
# - `poor_conversion_history` - Traffic resembling this request rarely completes a
|
|
395
|
+
# verification.
|
|
396
|
+
# - `proxy_network` - The request did not arrive over the subscriber's own access
|
|
397
|
+
# network.
|
|
398
|
+
# - `repeated_attempts` - The phone number exceeded the allowed number of
|
|
399
|
+
# verification attempts in a short period.
|
|
400
|
+
# - `temporary_phone_number` - The phone number belongs to a disposable or
|
|
401
|
+
# short-lived numbering service.
|
|
376
402
|
block_reasons: nil,
|
|
377
403
|
# The end user's mobile network.
|
|
378
404
|
carrier: nil,
|
|
@@ -463,8 +489,8 @@ module PreludeSDK
|
|
|
463
489
|
# - `invalid_line` - The phone number is not a valid line type.
|
|
464
490
|
# - `invalid_number` - The phone number is not a valid number.
|
|
465
491
|
# - `rate_limited` - The verification was refused by a rate limit.
|
|
466
|
-
# - `expired_signals` - The SDK signals were collected too long before the
|
|
467
|
-
#
|
|
492
|
+
# - `expired_signals` - The SDK signals were collected too long before the request
|
|
493
|
+
# to still attest to it.
|
|
468
494
|
# - `shadowed` - The anti-fraud system flagged the verification without blocking
|
|
469
495
|
# it.
|
|
470
496
|
module Status
|
|
@@ -563,14 +589,44 @@ module PreludeSDK
|
|
|
563
589
|
end
|
|
564
590
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
565
591
|
|
|
566
|
-
|
|
592
|
+
AUTOMATION_SIGNATURE =
|
|
567
593
|
T.let(
|
|
568
|
-
:
|
|
594
|
+
:automation_signature,
|
|
569
595
|
PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason::TaggedSymbol
|
|
570
596
|
)
|
|
571
|
-
|
|
597
|
+
CARRIER_NOT_PERMITTED =
|
|
572
598
|
T.let(
|
|
573
|
-
:
|
|
599
|
+
:carrier_not_permitted,
|
|
600
|
+
PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason::TaggedSymbol
|
|
601
|
+
)
|
|
602
|
+
CLIENT_FINGERPRINT_MISMATCH =
|
|
603
|
+
T.let(
|
|
604
|
+
:client_fingerprint_mismatch,
|
|
605
|
+
PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason::TaggedSymbol
|
|
606
|
+
)
|
|
607
|
+
CUSTOM_POLICY =
|
|
608
|
+
T.let(
|
|
609
|
+
:custom_policy,
|
|
610
|
+
PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason::TaggedSymbol
|
|
611
|
+
)
|
|
612
|
+
DEVICE_EMULATOR =
|
|
613
|
+
T.let(
|
|
614
|
+
:device_emulator,
|
|
615
|
+
PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason::TaggedSymbol
|
|
616
|
+
)
|
|
617
|
+
DEVICE_NOT_PERMITTED =
|
|
618
|
+
T.let(
|
|
619
|
+
:device_not_permitted,
|
|
620
|
+
PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason::TaggedSymbol
|
|
621
|
+
)
|
|
622
|
+
DEVICE_REUSE =
|
|
623
|
+
T.let(
|
|
624
|
+
:device_reuse,
|
|
625
|
+
PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason::TaggedSymbol
|
|
626
|
+
)
|
|
627
|
+
EXPIRED_SIGNALS =
|
|
628
|
+
T.let(
|
|
629
|
+
:expired_signals,
|
|
574
630
|
PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason::TaggedSymbol
|
|
575
631
|
)
|
|
576
632
|
FRAUD_DATABASE =
|
|
@@ -578,44 +634,49 @@ module PreludeSDK
|
|
|
578
634
|
:fraud_database,
|
|
579
635
|
PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason::TaggedSymbol
|
|
580
636
|
)
|
|
581
|
-
|
|
637
|
+
INVALID_SIGNATURE =
|
|
582
638
|
T.let(
|
|
583
|
-
:
|
|
639
|
+
:invalid_signature,
|
|
584
640
|
PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason::TaggedSymbol
|
|
585
641
|
)
|
|
586
|
-
|
|
642
|
+
IP_CONCENTRATION =
|
|
587
643
|
T.let(
|
|
588
|
-
:
|
|
644
|
+
:ip_concentration,
|
|
589
645
|
PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason::TaggedSymbol
|
|
590
646
|
)
|
|
591
|
-
|
|
647
|
+
IP_REPUTATION =
|
|
592
648
|
T.let(
|
|
593
|
-
:
|
|
649
|
+
:ip_reputation,
|
|
594
650
|
PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason::TaggedSymbol
|
|
595
651
|
)
|
|
596
|
-
|
|
652
|
+
LOCATION_MISMATCH =
|
|
597
653
|
T.let(
|
|
598
|
-
:
|
|
654
|
+
:location_mismatch,
|
|
599
655
|
PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason::TaggedSymbol
|
|
600
656
|
)
|
|
601
|
-
|
|
657
|
+
MISSING_SIGNALS =
|
|
602
658
|
T.let(
|
|
603
|
-
:
|
|
659
|
+
:missing_signals,
|
|
604
660
|
PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason::TaggedSymbol
|
|
605
661
|
)
|
|
606
|
-
|
|
662
|
+
NUMBER_RANGE_ABUSE =
|
|
607
663
|
T.let(
|
|
608
|
-
:
|
|
664
|
+
:number_range_abuse,
|
|
665
|
+
PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason::TaggedSymbol
|
|
666
|
+
)
|
|
667
|
+
POOR_CONVERSION_HISTORY =
|
|
668
|
+
T.let(
|
|
669
|
+
:poor_conversion_history,
|
|
609
670
|
PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason::TaggedSymbol
|
|
610
671
|
)
|
|
611
|
-
|
|
672
|
+
PROXY_NETWORK =
|
|
612
673
|
T.let(
|
|
613
|
-
:
|
|
674
|
+
:proxy_network,
|
|
614
675
|
PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason::TaggedSymbol
|
|
615
676
|
)
|
|
616
|
-
|
|
677
|
+
REPEATED_ATTEMPTS =
|
|
617
678
|
T.let(
|
|
618
|
-
:
|
|
679
|
+
:repeated_attempts,
|
|
619
680
|
PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason::TaggedSymbol
|
|
620
681
|
)
|
|
621
682
|
TEMPORARY_PHONE_NUMBER =
|
|
@@ -89,9 +89,10 @@ module PreludeSDK
|
|
|
89
89
|
# landline).
|
|
90
90
|
# - `invalid_phone_number` - The phone number is not a valid phone number (e.g.
|
|
91
91
|
# unallocated range).
|
|
92
|
-
# - `invalid_signature` - The signature
|
|
93
|
-
#
|
|
94
|
-
#
|
|
92
|
+
# - `invalid_signature` - The SDK signature did not verify, so the request cannot
|
|
93
|
+
# be attributed to the device it claims to come from.
|
|
94
|
+
# - `repeated_attempts` - The phone number exceeded the allowed number of
|
|
95
|
+
# verification attempts in a short period.
|
|
95
96
|
# - `suspicious` - The verification attempt was deemed suspicious by the
|
|
96
97
|
# anti-fraud system.
|
|
97
98
|
sig do
|
|
@@ -121,26 +122,41 @@ module PreludeSDK
|
|
|
121
122
|
# present when status is "blocked" or "shadow_blocked" and the anti-fraud system
|
|
122
123
|
# detected specific risk signals.
|
|
123
124
|
#
|
|
124
|
-
# - `
|
|
125
|
-
#
|
|
126
|
-
# - `
|
|
127
|
-
#
|
|
128
|
-
# - `
|
|
129
|
-
#
|
|
130
|
-
# - `
|
|
131
|
-
#
|
|
132
|
-
#
|
|
133
|
-
#
|
|
134
|
-
# - `
|
|
135
|
-
#
|
|
136
|
-
# - `
|
|
137
|
-
#
|
|
138
|
-
# - `
|
|
139
|
-
#
|
|
140
|
-
# - `
|
|
141
|
-
#
|
|
142
|
-
# - `
|
|
143
|
-
#
|
|
125
|
+
# - `automation_signature` - The request appears to come from an automated client
|
|
126
|
+
# rather than a person.
|
|
127
|
+
# - `carrier_not_permitted` - The destination carrier is one this account does not
|
|
128
|
+
# accept traffic for.
|
|
129
|
+
# - `client_fingerprint_mismatch` - The client does not appear to be the platform
|
|
130
|
+
# it identifies itself as.
|
|
131
|
+
# - `custom_policy` - A rule configured for your account matched this request.
|
|
132
|
+
# - `device_emulator` - The request appears to come from an emulator rather than a
|
|
133
|
+
# physical device.
|
|
134
|
+
# - `device_not_permitted` - The device platform is one your account blocks.
|
|
135
|
+
# - `device_reuse` - One device is driving verifications for an unusual number of
|
|
136
|
+
# phone numbers.
|
|
137
|
+
# - `expired_signals` - The SDK signals were collected too long before the request
|
|
138
|
+
# to still attest to it.
|
|
139
|
+
# - `fraud_database` - The phone number is flagged in one or more of the fraud
|
|
140
|
+
# databases Prelude consults.
|
|
141
|
+
# - `invalid_signature` - The SDK signature did not verify, so the request cannot
|
|
142
|
+
# be attributed to the device it claims to come from.
|
|
143
|
+
# - `ip_concentration` - The request shares its origin with an unusual volume of
|
|
144
|
+
# other verifications.
|
|
145
|
+
# - `ip_reputation` - The originating IP address is not trusted.
|
|
146
|
+
# - `location_mismatch` - The network location and the phone number's country are
|
|
147
|
+
# inconsistent.
|
|
148
|
+
# - `missing_signals` - The verification expected Prelude SDK signals and none
|
|
149
|
+
# arrived.
|
|
150
|
+
# - `number_range_abuse` - The phone number belongs to a range currently
|
|
151
|
+
# associated with abuse.
|
|
152
|
+
# - `poor_conversion_history` - Traffic resembling this request rarely completes a
|
|
153
|
+
# verification.
|
|
154
|
+
# - `proxy_network` - The request did not arrive over the subscriber's own access
|
|
155
|
+
# network.
|
|
156
|
+
# - `repeated_attempts` - The phone number exceeded the allowed number of
|
|
157
|
+
# verification attempts in a short period.
|
|
158
|
+
# - `temporary_phone_number` - The phone number belongs to a disposable or
|
|
159
|
+
# short-lived numbering service.
|
|
144
160
|
sig do
|
|
145
161
|
returns(
|
|
146
162
|
T.nilable(
|
|
@@ -231,9 +247,10 @@ module PreludeSDK
|
|
|
231
247
|
# landline).
|
|
232
248
|
# - `invalid_phone_number` - The phone number is not a valid phone number (e.g.
|
|
233
249
|
# unallocated range).
|
|
234
|
-
# - `invalid_signature` - The signature
|
|
235
|
-
#
|
|
236
|
-
#
|
|
250
|
+
# - `invalid_signature` - The SDK signature did not verify, so the request cannot
|
|
251
|
+
# be attributed to the device it claims to come from.
|
|
252
|
+
# - `repeated_attempts` - The phone number exceeded the allowed number of
|
|
253
|
+
# verification attempts in a short period.
|
|
237
254
|
# - `suspicious` - The verification attempt was deemed suspicious by the
|
|
238
255
|
# anti-fraud system.
|
|
239
256
|
reason: nil,
|
|
@@ -242,26 +259,41 @@ module PreludeSDK
|
|
|
242
259
|
# present when status is "blocked" or "shadow_blocked" and the anti-fraud system
|
|
243
260
|
# detected specific risk signals.
|
|
244
261
|
#
|
|
245
|
-
# - `
|
|
246
|
-
#
|
|
247
|
-
# - `
|
|
248
|
-
#
|
|
249
|
-
# - `
|
|
250
|
-
#
|
|
251
|
-
# - `
|
|
252
|
-
#
|
|
253
|
-
#
|
|
254
|
-
#
|
|
255
|
-
# - `
|
|
256
|
-
#
|
|
257
|
-
# - `
|
|
258
|
-
#
|
|
259
|
-
# - `
|
|
260
|
-
#
|
|
261
|
-
# - `
|
|
262
|
-
#
|
|
263
|
-
# - `
|
|
264
|
-
#
|
|
262
|
+
# - `automation_signature` - The request appears to come from an automated client
|
|
263
|
+
# rather than a person.
|
|
264
|
+
# - `carrier_not_permitted` - The destination carrier is one this account does not
|
|
265
|
+
# accept traffic for.
|
|
266
|
+
# - `client_fingerprint_mismatch` - The client does not appear to be the platform
|
|
267
|
+
# it identifies itself as.
|
|
268
|
+
# - `custom_policy` - A rule configured for your account matched this request.
|
|
269
|
+
# - `device_emulator` - The request appears to come from an emulator rather than a
|
|
270
|
+
# physical device.
|
|
271
|
+
# - `device_not_permitted` - The device platform is one your account blocks.
|
|
272
|
+
# - `device_reuse` - One device is driving verifications for an unusual number of
|
|
273
|
+
# phone numbers.
|
|
274
|
+
# - `expired_signals` - The SDK signals were collected too long before the request
|
|
275
|
+
# to still attest to it.
|
|
276
|
+
# - `fraud_database` - The phone number is flagged in one or more of the fraud
|
|
277
|
+
# databases Prelude consults.
|
|
278
|
+
# - `invalid_signature` - The SDK signature did not verify, so the request cannot
|
|
279
|
+
# be attributed to the device it claims to come from.
|
|
280
|
+
# - `ip_concentration` - The request shares its origin with an unusual volume of
|
|
281
|
+
# other verifications.
|
|
282
|
+
# - `ip_reputation` - The originating IP address is not trusted.
|
|
283
|
+
# - `location_mismatch` - The network location and the phone number's country are
|
|
284
|
+
# inconsistent.
|
|
285
|
+
# - `missing_signals` - The verification expected Prelude SDK signals and none
|
|
286
|
+
# arrived.
|
|
287
|
+
# - `number_range_abuse` - The phone number belongs to a range currently
|
|
288
|
+
# associated with abuse.
|
|
289
|
+
# - `poor_conversion_history` - Traffic resembling this request rarely completes a
|
|
290
|
+
# verification.
|
|
291
|
+
# - `proxy_network` - The request did not arrive over the subscriber's own access
|
|
292
|
+
# network.
|
|
293
|
+
# - `repeated_attempts` - The phone number exceeded the allowed number of
|
|
294
|
+
# verification attempts in a short period.
|
|
295
|
+
# - `temporary_phone_number` - The phone number belongs to a disposable or
|
|
296
|
+
# short-lived numbering service.
|
|
265
297
|
risk_factors: nil,
|
|
266
298
|
# The silent verification specific properties.
|
|
267
299
|
silent: nil
|
|
@@ -505,9 +537,10 @@ module PreludeSDK
|
|
|
505
537
|
# landline).
|
|
506
538
|
# - `invalid_phone_number` - The phone number is not a valid phone number (e.g.
|
|
507
539
|
# unallocated range).
|
|
508
|
-
# - `invalid_signature` - The signature
|
|
509
|
-
#
|
|
510
|
-
#
|
|
540
|
+
# - `invalid_signature` - The SDK signature did not verify, so the request cannot
|
|
541
|
+
# be attributed to the device it claims to come from.
|
|
542
|
+
# - `repeated_attempts` - The phone number exceeded the allowed number of
|
|
543
|
+
# verification attempts in a short period.
|
|
511
544
|
# - `suspicious` - The verification attempt was deemed suspicious by the
|
|
512
545
|
# anti-fraud system.
|
|
513
546
|
module Reason
|
|
@@ -581,14 +614,44 @@ module PreludeSDK
|
|
|
581
614
|
end
|
|
582
615
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
583
616
|
|
|
584
|
-
|
|
617
|
+
AUTOMATION_SIGNATURE =
|
|
585
618
|
T.let(
|
|
586
|
-
:
|
|
619
|
+
:automation_signature,
|
|
587
620
|
PreludeSDK::Models::VerificationCreateResponse::RiskFactor::TaggedSymbol
|
|
588
621
|
)
|
|
589
|
-
|
|
622
|
+
CARRIER_NOT_PERMITTED =
|
|
590
623
|
T.let(
|
|
591
|
-
:
|
|
624
|
+
:carrier_not_permitted,
|
|
625
|
+
PreludeSDK::Models::VerificationCreateResponse::RiskFactor::TaggedSymbol
|
|
626
|
+
)
|
|
627
|
+
CLIENT_FINGERPRINT_MISMATCH =
|
|
628
|
+
T.let(
|
|
629
|
+
:client_fingerprint_mismatch,
|
|
630
|
+
PreludeSDK::Models::VerificationCreateResponse::RiskFactor::TaggedSymbol
|
|
631
|
+
)
|
|
632
|
+
CUSTOM_POLICY =
|
|
633
|
+
T.let(
|
|
634
|
+
:custom_policy,
|
|
635
|
+
PreludeSDK::Models::VerificationCreateResponse::RiskFactor::TaggedSymbol
|
|
636
|
+
)
|
|
637
|
+
DEVICE_EMULATOR =
|
|
638
|
+
T.let(
|
|
639
|
+
:device_emulator,
|
|
640
|
+
PreludeSDK::Models::VerificationCreateResponse::RiskFactor::TaggedSymbol
|
|
641
|
+
)
|
|
642
|
+
DEVICE_NOT_PERMITTED =
|
|
643
|
+
T.let(
|
|
644
|
+
:device_not_permitted,
|
|
645
|
+
PreludeSDK::Models::VerificationCreateResponse::RiskFactor::TaggedSymbol
|
|
646
|
+
)
|
|
647
|
+
DEVICE_REUSE =
|
|
648
|
+
T.let(
|
|
649
|
+
:device_reuse,
|
|
650
|
+
PreludeSDK::Models::VerificationCreateResponse::RiskFactor::TaggedSymbol
|
|
651
|
+
)
|
|
652
|
+
EXPIRED_SIGNALS =
|
|
653
|
+
T.let(
|
|
654
|
+
:expired_signals,
|
|
592
655
|
PreludeSDK::Models::VerificationCreateResponse::RiskFactor::TaggedSymbol
|
|
593
656
|
)
|
|
594
657
|
FRAUD_DATABASE =
|
|
@@ -596,34 +659,49 @@ module PreludeSDK
|
|
|
596
659
|
:fraud_database,
|
|
597
660
|
PreludeSDK::Models::VerificationCreateResponse::RiskFactor::TaggedSymbol
|
|
598
661
|
)
|
|
599
|
-
|
|
662
|
+
INVALID_SIGNATURE =
|
|
600
663
|
T.let(
|
|
601
|
-
:
|
|
664
|
+
:invalid_signature,
|
|
602
665
|
PreludeSDK::Models::VerificationCreateResponse::RiskFactor::TaggedSymbol
|
|
603
666
|
)
|
|
604
|
-
|
|
667
|
+
IP_CONCENTRATION =
|
|
605
668
|
T.let(
|
|
606
|
-
:
|
|
669
|
+
:ip_concentration,
|
|
607
670
|
PreludeSDK::Models::VerificationCreateResponse::RiskFactor::TaggedSymbol
|
|
608
671
|
)
|
|
609
|
-
|
|
672
|
+
IP_REPUTATION =
|
|
610
673
|
T.let(
|
|
611
|
-
:
|
|
674
|
+
:ip_reputation,
|
|
612
675
|
PreludeSDK::Models::VerificationCreateResponse::RiskFactor::TaggedSymbol
|
|
613
676
|
)
|
|
614
|
-
|
|
677
|
+
LOCATION_MISMATCH =
|
|
615
678
|
T.let(
|
|
616
|
-
:
|
|
679
|
+
:location_mismatch,
|
|
617
680
|
PreludeSDK::Models::VerificationCreateResponse::RiskFactor::TaggedSymbol
|
|
618
681
|
)
|
|
619
|
-
|
|
682
|
+
MISSING_SIGNALS =
|
|
620
683
|
T.let(
|
|
621
|
-
:
|
|
684
|
+
:missing_signals,
|
|
622
685
|
PreludeSDK::Models::VerificationCreateResponse::RiskFactor::TaggedSymbol
|
|
623
686
|
)
|
|
624
|
-
|
|
687
|
+
NUMBER_RANGE_ABUSE =
|
|
625
688
|
T.let(
|
|
626
|
-
:
|
|
689
|
+
:number_range_abuse,
|
|
690
|
+
PreludeSDK::Models::VerificationCreateResponse::RiskFactor::TaggedSymbol
|
|
691
|
+
)
|
|
692
|
+
POOR_CONVERSION_HISTORY =
|
|
693
|
+
T.let(
|
|
694
|
+
:poor_conversion_history,
|
|
695
|
+
PreludeSDK::Models::VerificationCreateResponse::RiskFactor::TaggedSymbol
|
|
696
|
+
)
|
|
697
|
+
PROXY_NETWORK =
|
|
698
|
+
T.let(
|
|
699
|
+
:proxy_network,
|
|
700
|
+
PreludeSDK::Models::VerificationCreateResponse::RiskFactor::TaggedSymbol
|
|
701
|
+
)
|
|
702
|
+
REPEATED_ATTEMPTS =
|
|
703
|
+
T.let(
|
|
704
|
+
:repeated_attempts,
|
|
627
705
|
PreludeSDK::Models::VerificationCreateResponse::RiskFactor::TaggedSymbol
|
|
628
706
|
)
|
|
629
707
|
TEMPORARY_PHONE_NUMBER =
|