didit-sdk 2.34.0 → 2.35.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 +12 -0
- data/lib/didit/resources/authentication_setup.rb +29 -28
- data/lib/didit/resources/bank.rb +132 -2
- data/lib/didit/resources/messages.rb +1 -1
- data/lib/didit/resources/phone.rb +735 -9
- data/lib/didit/resources/pricing.rb +42 -0
- data/lib/didit/types/bank.rb +60 -0
- data/lib/didit/types/components.rb +454 -99
- data/lib/didit/types/phone.rb +216 -0
- data/lib/didit/types.rb +79 -9
- data/lib/didit/version.rb +1 -1
- data/sig/didit/resources/bank.rbs +2 -0
- data/sig/didit/resources/phone.rbs +40 -1
- data/sig/didit/resources/pricing.rbs +2 -0
- data/sig/didit/types/bank.rbs +58 -0
- data/sig/didit/types/components.rbs +391 -82
- data/sig/didit/types/phone.rbs +211 -1
- metadata +1 -1
|
@@ -686,8 +686,12 @@ module Didit
|
|
|
686
686
|
VALUES = [ONE_TIME, ONGOING].freeze
|
|
687
687
|
end
|
|
688
688
|
|
|
689
|
-
# Why the link failed. A failed link is not an HTTP error: the link reads with `status: failed` and this object.
|
|
690
|
-
#
|
|
689
|
+
# Why the link failed. A failed link is not an HTTP error: the link reads with `status: failed` and this object.
|
|
690
|
+
# `bank_cancelled` ends a link only on the fifth cancel at the bank: until then a person who backs out at the bank
|
|
691
|
+
# returns to the list of banks with a notice and the link stays `opened`. A bank that cannot be reached
|
|
692
|
+
# (`bank_unavailable`) also returns the person to the list of banks and leaves the link `opened`. A link ended by
|
|
693
|
+
# the simulate operation fails at once. A renew link whose connection changed meanwhile reads `renewal_not_needed`
|
|
694
|
+
# or `renewal_window_expired`.
|
|
691
695
|
module BankLinkErrorCode
|
|
692
696
|
DUPLICATE_CONFLICT = "duplicate_conflict"
|
|
693
697
|
RENEWAL_LOGIN_MISMATCH = "renewal_login_mismatch"
|
|
@@ -867,6 +871,40 @@ module Didit
|
|
|
867
871
|
VALUES = [BOOKED, PENDING].freeze
|
|
868
872
|
end
|
|
869
873
|
|
|
874
|
+
# Known values of an open enum: the API may send others.
|
|
875
|
+
module BankVerificationCoverageBankAccess
|
|
876
|
+
ONE_TIME = "one_time"
|
|
877
|
+
ONGOING = "ongoing"
|
|
878
|
+
|
|
879
|
+
VALUES = [ONE_TIME, ONGOING].freeze
|
|
880
|
+
end
|
|
881
|
+
|
|
882
|
+
# Known values of an open enum: the API may send others.
|
|
883
|
+
module BankVerificationCoverageBankSegments
|
|
884
|
+
PERSONAL = "personal"
|
|
885
|
+
BUSINESS = "business"
|
|
886
|
+
|
|
887
|
+
VALUES = [PERSONAL, BUSINESS].freeze
|
|
888
|
+
end
|
|
889
|
+
|
|
890
|
+
# Whether the bank can be reached today: `operational`, `degraded` or `down`.
|
|
891
|
+
module BankVerificationCoverageBankStatus
|
|
892
|
+
OPERATIONAL = "operational"
|
|
893
|
+
DEGRADED = "degraded"
|
|
894
|
+
DOWN = "down"
|
|
895
|
+
|
|
896
|
+
VALUES = [OPERATIONAL, DEGRADED, DOWN].freeze
|
|
897
|
+
end
|
|
898
|
+
|
|
899
|
+
# Known values of an open enum: the API may send others.
|
|
900
|
+
module BankVerificationCoverageDataRead
|
|
901
|
+
ACCOUNTS = "accounts"
|
|
902
|
+
BALANCES = "balances"
|
|
903
|
+
TRANSACTIONS = "transactions"
|
|
904
|
+
|
|
905
|
+
VALUES = [ACCOUNTS, BALANCES, TRANSACTIONS].freeze
|
|
906
|
+
end
|
|
907
|
+
|
|
870
908
|
# Currency of every price in the response.
|
|
871
909
|
module BankVerificationPricingCurrency
|
|
872
910
|
USD = "USD"
|
|
@@ -3393,6 +3431,38 @@ module Didit
|
|
|
3393
3431
|
VALUES = [PENDING, PROCESSING, COMPLETED, FAILED].freeze
|
|
3394
3432
|
end
|
|
3395
3433
|
|
|
3434
|
+
# `unverified` until the first successful check, then `verified`.
|
|
3435
|
+
module PhoneFactorEnrollmentStatus
|
|
3436
|
+
UNVERIFIED = "unverified"
|
|
3437
|
+
VERIFIED = "verified"
|
|
3438
|
+
DISABLED = "disabled"
|
|
3439
|
+
|
|
3440
|
+
VALUES = [UNVERIFIED, VERIFIED, DISABLED].freeze
|
|
3441
|
+
end
|
|
3442
|
+
|
|
3443
|
+
# The factor type.
|
|
3444
|
+
module PhoneFactorEnrollmentType
|
|
3445
|
+
TOTP = "totp"
|
|
3446
|
+
|
|
3447
|
+
VALUES = [TOTP].freeze
|
|
3448
|
+
end
|
|
3449
|
+
|
|
3450
|
+
# `unverified` until the first successful check, `verified` after it, `disabled` while its checks are turned off.
|
|
3451
|
+
module PhoneFactorStatus
|
|
3452
|
+
UNVERIFIED = "unverified"
|
|
3453
|
+
VERIFIED = "verified"
|
|
3454
|
+
DISABLED = "disabled"
|
|
3455
|
+
|
|
3456
|
+
VALUES = [UNVERIFIED, VERIFIED, DISABLED].freeze
|
|
3457
|
+
end
|
|
3458
|
+
|
|
3459
|
+
# The factor.
|
|
3460
|
+
module PhoneFactorType
|
|
3461
|
+
TOTP = "totp"
|
|
3462
|
+
|
|
3463
|
+
VALUES = [TOTP].freeze
|
|
3464
|
+
end
|
|
3465
|
+
|
|
3396
3466
|
# Whether the signal raised the risk or added trust.
|
|
3397
3467
|
module PhoneIntelligenceReasonCodesDirection
|
|
3398
3468
|
RISK = "risk"
|
|
@@ -3401,6 +3471,84 @@ module Didit
|
|
|
3401
3471
|
VALUES = [RISK, TRUST].freeze
|
|
3402
3472
|
end
|
|
3403
3473
|
|
|
3474
|
+
# Where this network stands: `submitted` - the request reached it; `in_review` - it is reviewing; `approved`;
|
|
3475
|
+
# `rejected`.
|
|
3476
|
+
module PhoneNetworkDecisionStatus
|
|
3477
|
+
SUBMITTED = "submitted"
|
|
3478
|
+
IN_REVIEW = "in_review"
|
|
3479
|
+
APPROVED = "approved"
|
|
3480
|
+
REJECTED = "rejected"
|
|
3481
|
+
|
|
3482
|
+
VALUES = [SUBMITTED, IN_REVIEW, APPROVED, REJECTED].freeze
|
|
3483
|
+
end
|
|
3484
|
+
|
|
3485
|
+
# The network feature.
|
|
3486
|
+
module PhoneNetworkRegistrationFeature
|
|
3487
|
+
SILENT_VERIFICATION = "silent_verification"
|
|
3488
|
+
SIM_SWAP = "sim_swap"
|
|
3489
|
+
NUMBER_VERIFICATION = "number_verification"
|
|
3490
|
+
|
|
3491
|
+
VALUES = [SILENT_VERIFICATION, SIM_SWAP, NUMBER_VERIFICATION].freeze
|
|
3492
|
+
end
|
|
3493
|
+
|
|
3494
|
+
# `submitted` - sent to the networks; `in_review` - they are reviewing; `approved` - every network approved;
|
|
3495
|
+
# `partly_approved` - some approved and some rejected; `rejected` - none approved.
|
|
3496
|
+
module PhoneNetworkRegistrationStatus
|
|
3497
|
+
SUBMITTED = "submitted"
|
|
3498
|
+
IN_REVIEW = "in_review"
|
|
3499
|
+
APPROVED = "approved"
|
|
3500
|
+
PARTLY_APPROVED = "partly_approved"
|
|
3501
|
+
REJECTED = "rejected"
|
|
3502
|
+
|
|
3503
|
+
VALUES = [SUBMITTED, IN_REVIEW, APPROVED, PARTLY_APPROVED, REJECTED].freeze
|
|
3504
|
+
end
|
|
3505
|
+
|
|
3506
|
+
# The network feature.
|
|
3507
|
+
module PhoneNetworkRegistrationSummaryFeature
|
|
3508
|
+
SILENT_VERIFICATION = "silent_verification"
|
|
3509
|
+
SIM_SWAP = "sim_swap"
|
|
3510
|
+
NUMBER_VERIFICATION = "number_verification"
|
|
3511
|
+
|
|
3512
|
+
VALUES = [SILENT_VERIFICATION, SIM_SWAP, NUMBER_VERIFICATION].freeze
|
|
3513
|
+
end
|
|
3514
|
+
|
|
3515
|
+
# Where the registration stands.
|
|
3516
|
+
module PhoneNetworkRegistrationSummaryStatus
|
|
3517
|
+
SUBMITTED = "submitted"
|
|
3518
|
+
IN_REVIEW = "in_review"
|
|
3519
|
+
APPROVED = "approved"
|
|
3520
|
+
PARTLY_APPROVED = "partly_approved"
|
|
3521
|
+
REJECTED = "rejected"
|
|
3522
|
+
|
|
3523
|
+
VALUES = [SUBMITTED, IN_REVIEW, APPROVED, PARTLY_APPROVED, REJECTED].freeze
|
|
3524
|
+
end
|
|
3525
|
+
|
|
3526
|
+
# `on` while the networks review: the feature answers for your verified test numbers, marked `test: true`. `off`
|
|
3527
|
+
# once the registration is approved or rejected.
|
|
3528
|
+
module PhoneNetworkRegistrationTestAccess
|
|
3529
|
+
ON = "on"
|
|
3530
|
+
OFF = "off"
|
|
3531
|
+
|
|
3532
|
+
VALUES = [ON, OFF].freeze
|
|
3533
|
+
end
|
|
3534
|
+
|
|
3535
|
+
# `code_sent` - Didit sent it a code, which makes it a verified test number once checked; `verified` - it answers
|
|
3536
|
+
# the feature under test access.
|
|
3537
|
+
module PhoneNetworkRegistrationTestNumberStatus
|
|
3538
|
+
CODE_SENT = "code_sent"
|
|
3539
|
+
VERIFIED = "verified"
|
|
3540
|
+
|
|
3541
|
+
VALUES = [CODE_SENT, VERIFIED].freeze
|
|
3542
|
+
end
|
|
3543
|
+
|
|
3544
|
+
# `on` - the registration is under review, so the feature answers for its test numbers, with `test: true` in the
|
|
3545
|
+
# answer.
|
|
3546
|
+
module PhoneNetworkRegistrationTestNumberTestAccess
|
|
3547
|
+
ON = "on"
|
|
3548
|
+
|
|
3549
|
+
VALUES = [ON].freeze
|
|
3550
|
+
end
|
|
3551
|
+
|
|
3404
3552
|
# Decision for this phone number. Mirrors the top-level `status`.
|
|
3405
3553
|
module PhoneRiskResponsePhoneStatus
|
|
3406
3554
|
APPROVED = "Approved"
|
|
@@ -3420,47 +3568,102 @@ module Didit
|
|
|
3420
3568
|
VALUES = [APPROVED, IN_REVIEW, DECLINED].freeze
|
|
3421
3569
|
end
|
|
3422
3570
|
|
|
3423
|
-
#
|
|
3424
|
-
module
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
NOT_PRESENT = "Not Present"
|
|
3571
|
+
# The platform it is for.
|
|
3572
|
+
module PhoneSdkKeyPlatform
|
|
3573
|
+
IOS = "ios"
|
|
3574
|
+
ANDROID = "android"
|
|
3575
|
+
WEB = "web"
|
|
3429
3576
|
|
|
3430
|
-
VALUES = [
|
|
3577
|
+
VALUES = [IOS, ANDROID, WEB].freeze
|
|
3431
3578
|
end
|
|
3432
3579
|
|
|
3433
|
-
#
|
|
3434
|
-
module
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
NOT_FINISHED = "Not Finished"
|
|
3439
|
-
EXPIRED = "Expired"
|
|
3580
|
+
# The platform it is for.
|
|
3581
|
+
module PhoneSdkKeyRotatedPlatform
|
|
3582
|
+
IOS = "ios"
|
|
3583
|
+
ANDROID = "android"
|
|
3584
|
+
WEB = "web"
|
|
3440
3585
|
|
|
3441
|
-
VALUES = [
|
|
3586
|
+
VALUES = [IOS, ANDROID, WEB].freeze
|
|
3442
3587
|
end
|
|
3443
3588
|
|
|
3444
|
-
#
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
INFORMATION = "information"
|
|
3589
|
+
# `active` - the new value works; `expiring` - it was rotated again; `revoked` - it stopped working.
|
|
3590
|
+
module PhoneSdkKeyRotatedStatus
|
|
3591
|
+
ACTIVE = "active"
|
|
3592
|
+
EXPIRING = "expiring"
|
|
3593
|
+
REVOKED = "revoked"
|
|
3450
3594
|
|
|
3451
|
-
VALUES = [
|
|
3595
|
+
VALUES = [ACTIVE, EXPIRING, REVOKED].freeze
|
|
3452
3596
|
end
|
|
3453
3597
|
|
|
3454
|
-
# `
|
|
3455
|
-
#
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
FAILED = "Failed"
|
|
3461
|
-
EXPIRED_OR_NOT_FOUND = "Expired or Not Found"
|
|
3598
|
+
# `active` - it works; `expiring` - it was rotated and stops working at `previous_expires_at`; `revoked` - it
|
|
3599
|
+
# stopped working.
|
|
3600
|
+
module PhoneSdkKeyStatus
|
|
3601
|
+
ACTIVE = "active"
|
|
3602
|
+
EXPIRING = "expiring"
|
|
3603
|
+
REVOKED = "revoked"
|
|
3462
3604
|
|
|
3463
|
-
VALUES = [
|
|
3605
|
+
VALUES = [ACTIVE, EXPIRING, REVOKED].freeze
|
|
3606
|
+
end
|
|
3607
|
+
|
|
3608
|
+
# The platform it is for.
|
|
3609
|
+
module PhoneSdkKeySummaryPlatform
|
|
3610
|
+
IOS = "ios"
|
|
3611
|
+
ANDROID = "android"
|
|
3612
|
+
WEB = "web"
|
|
3613
|
+
|
|
3614
|
+
VALUES = [IOS, ANDROID, WEB].freeze
|
|
3615
|
+
end
|
|
3616
|
+
|
|
3617
|
+
# An active key works, an expiring key works until its rotation overlap ends, and a revoked key has stopped
|
|
3618
|
+
# working.
|
|
3619
|
+
module PhoneSdkKeySummaryStatus
|
|
3620
|
+
ACTIVE = "active"
|
|
3621
|
+
EXPIRING = "expiring"
|
|
3622
|
+
REVOKED = "revoked"
|
|
3623
|
+
|
|
3624
|
+
VALUES = [ACTIVE, EXPIRING, REVOKED].freeze
|
|
3625
|
+
end
|
|
3626
|
+
|
|
3627
|
+
# `live` - the network answers silent checks for production traffic. `test` - it answers only while it approves
|
|
3628
|
+
# production use, for the verified test numbers of a registration.
|
|
3629
|
+
module PhoneSilentCoverageNetworkApproval
|
|
3630
|
+
LIVE = "live"
|
|
3631
|
+
TEST = "test"
|
|
3632
|
+
|
|
3633
|
+
VALUES = [LIVE, TEST].freeze
|
|
3634
|
+
end
|
|
3635
|
+
|
|
3636
|
+
# When `eligible` is `false`, why: `unsupported_network` - the number's mobile network cannot run the check;
|
|
3637
|
+
# `not_mobile_data` - the device is not on mobile data (send `ip_address` to have this checked);
|
|
3638
|
+
# `country_not_covered` - silent verification does not run in the number's country.
|
|
3639
|
+
module PhoneSilentEligibilityReason
|
|
3640
|
+
UNSUPPORTED_NETWORK = "unsupported_network"
|
|
3641
|
+
NOT_MOBILE_DATA = "not_mobile_data"
|
|
3642
|
+
COUNTRY_NOT_COVERED = "country_not_covered"
|
|
3643
|
+
|
|
3644
|
+
VALUES = [UNSUPPORTED_NETWORK, NOT_MOBILE_DATA, COUNTRY_NOT_COVERED].freeze
|
|
3645
|
+
end
|
|
3646
|
+
|
|
3647
|
+
# `submitted` - sent to the networks; `in_review` - they are reviewing; `approved` - every network approved;
|
|
3648
|
+
# `partly_approved` - some approved and some rejected; `rejected` - none approved.
|
|
3649
|
+
module PhoneSilentRegistrationStatus
|
|
3650
|
+
SUBMITTED = "submitted"
|
|
3651
|
+
IN_REVIEW = "in_review"
|
|
3652
|
+
APPROVED = "approved"
|
|
3653
|
+
PARTLY_APPROVED = "partly_approved"
|
|
3654
|
+
REJECTED = "rejected"
|
|
3655
|
+
|
|
3656
|
+
VALUES = [SUBMITTED, IN_REVIEW, APPROVED, PARTLY_APPROVED, REJECTED].freeze
|
|
3657
|
+
end
|
|
3658
|
+
|
|
3659
|
+
# Completeness of the WhatsApp profile. Phone only; null for email.
|
|
3660
|
+
module PhoneSocialFootprintWhatsappProfileCompleteness
|
|
3661
|
+
BASIC = "Basic"
|
|
3662
|
+
PARTIAL = "Partial"
|
|
3663
|
+
COMPLETE = "Complete"
|
|
3664
|
+
NOT_PRESENT = "Not Present"
|
|
3665
|
+
|
|
3666
|
+
VALUES = [BASIC, PARTIAL, COMPLETE, NOT_PRESENT].freeze
|
|
3464
3667
|
end
|
|
3465
3668
|
|
|
3466
3669
|
# `Success` - OTP sent to a new verification. `Retry` - OTP re-sent for the pending verification created by a
|
|
@@ -8898,6 +9101,79 @@ module Didit
|
|
|
8898
9101
|
field :reference, "reference", :string
|
|
8899
9102
|
end
|
|
8900
9103
|
|
|
9104
|
+
class BankVerificationCountryCoverage < Didit::Model
|
|
9105
|
+
field :country, "country", :string
|
|
9106
|
+
field :name, "name", :string
|
|
9107
|
+
field :updated_at, "updated_at", :datetime
|
|
9108
|
+
field :open, "open", "BankVerificationCoverageOpen"
|
|
9109
|
+
field :data_read, "data_read", [:array, :string]
|
|
9110
|
+
field :balances_note, "balances_note", :string
|
|
9111
|
+
field :banks, "banks", [:array, "BankVerificationCoverageBank"]
|
|
9112
|
+
end
|
|
9113
|
+
|
|
9114
|
+
# Where Didit covers bank data and what is open today. No prices: see the bank verification pricing feed.
|
|
9115
|
+
class BankVerificationCoverage < Didit::Model
|
|
9116
|
+
field :updated_at, "updated_at", :datetime
|
|
9117
|
+
field :open, "open", "BankVerificationCoverageAvailability"
|
|
9118
|
+
field :data_read, "data_read", [:array, :string]
|
|
9119
|
+
field :balances_note, "balances_note", :string
|
|
9120
|
+
field :countries, "countries", [:map, "BankVerificationCoverageCountriesValue"]
|
|
9121
|
+
end
|
|
9122
|
+
|
|
9123
|
+
class BankVerificationCoverageAvailability < Didit::Model
|
|
9124
|
+
field :bank_verification_in_workflows, "bank_verification_in_workflows", "BankVerificationWorkflowsAvailability"
|
|
9125
|
+
field :bank_data_api_one_time, "bank_data_api_one_time", "BankVerificationOneTimeAvailability"
|
|
9126
|
+
field :bank_data_api_ongoing, "bank_data_api_ongoing", "BankVerificationOngoingAvailability"
|
|
9127
|
+
end
|
|
9128
|
+
|
|
9129
|
+
# One bank. Only what the catalogue has: a field nobody observed is left out. The id is a permanent public
|
|
9130
|
+
# identifier.
|
|
9131
|
+
class BankVerificationCoverageBank < Didit::Model
|
|
9132
|
+
field :id, "id", :string
|
|
9133
|
+
field :name, "name", :string
|
|
9134
|
+
field :country, "country", :string
|
|
9135
|
+
field :segments, "segments", [:array, :string]
|
|
9136
|
+
field :access, "access", [:array, :string]
|
|
9137
|
+
field :history_days_max, "history_days_max", :integer
|
|
9138
|
+
field :pending_transactions, "pending_transactions", :boolean
|
|
9139
|
+
field :status, "status", :string
|
|
9140
|
+
field :consent_days_max, "consent_days_max", :integer
|
|
9141
|
+
field :balance_types, "balance_types", [:array, :string]
|
|
9142
|
+
field :logo_url, "logo_url", :string
|
|
9143
|
+
end
|
|
9144
|
+
|
|
9145
|
+
class BankVerificationCoverageCountriesValue < Didit::Model
|
|
9146
|
+
field :name, "name", :string
|
|
9147
|
+
field :banks, "banks", :integer
|
|
9148
|
+
field :banks_by_segment, "banks_by_segment", "BankVerificationCoverageCountriesValueBanksBySegment"
|
|
9149
|
+
field :open, "open", "BankVerificationCoverageOpen"
|
|
9150
|
+
field :banks_url, "banks_url", :string
|
|
9151
|
+
end
|
|
9152
|
+
|
|
9153
|
+
class BankVerificationCoverageCountriesValueBanksBySegment < Didit::Model
|
|
9154
|
+
field :personal, "personal", :integer
|
|
9155
|
+
field :business, "business", :integer
|
|
9156
|
+
end
|
|
9157
|
+
|
|
9158
|
+
class BankVerificationCoverageOpen < Didit::Model
|
|
9159
|
+
field :bank_verification_in_workflows, "bank_verification_in_workflows", :boolean
|
|
9160
|
+
field :bank_data_api_one_time, "bank_data_api_one_time", :boolean
|
|
9161
|
+
field :bank_data_api_ongoing, "bank_data_api_ongoing", :boolean
|
|
9162
|
+
field :account_check, "account_check", :boolean
|
|
9163
|
+
end
|
|
9164
|
+
|
|
9165
|
+
# The Bank data API with one-time access, for live applications.
|
|
9166
|
+
class BankVerificationOneTimeAvailability < Didit::Model
|
|
9167
|
+
field :live_applications, "live_applications", :boolean
|
|
9168
|
+
field :countries, "countries", [:array, :string]
|
|
9169
|
+
end
|
|
9170
|
+
|
|
9171
|
+
# The Bank data API with ongoing access, for live applications.
|
|
9172
|
+
class BankVerificationOngoingAvailability < Didit::Model
|
|
9173
|
+
field :live_applications, "live_applications", :boolean
|
|
9174
|
+
field :countries, "countries", [:array, :string]
|
|
9175
|
+
end
|
|
9176
|
+
|
|
8901
9177
|
# Public Bank Verification list prices: the statement upload, the own provider key fee and each country's methods.
|
|
8902
9178
|
class BankVerificationPricing < Didit::Model
|
|
8903
9179
|
field :currency, "currency", :string
|
|
@@ -9036,6 +9312,12 @@ module Didit
|
|
|
9036
9312
|
field :requested_scopes, "requested_scopes", [:array, :string]
|
|
9037
9313
|
end
|
|
9038
9314
|
|
|
9315
|
+
# Bank Verification inside verification workflows.
|
|
9316
|
+
class BankVerificationWorkflowsAvailability < Didit::Model
|
|
9317
|
+
field :live, "live", :boolean
|
|
9318
|
+
field :countries, "countries", [:array, :string]
|
|
9319
|
+
end
|
|
9320
|
+
|
|
9039
9321
|
# Result of a top-up charged to the organization's saved card.
|
|
9040
9322
|
class BillingTopUpCharge < Didit::Model
|
|
9041
9323
|
field :outcome, "outcome", :string
|
|
@@ -11495,6 +11777,37 @@ module Didit
|
|
|
11495
11777
|
field :failed_insufficient_balance, "failed_insufficient_balance", :integer
|
|
11496
11778
|
end
|
|
11497
11779
|
|
|
11780
|
+
class PhoneFactor < Didit::Model
|
|
11781
|
+
field :factor_id, "factor_id", :string
|
|
11782
|
+
field :type, "type", :string
|
|
11783
|
+
field :status, "status", :string
|
|
11784
|
+
field :user_id, "user_id", :string
|
|
11785
|
+
field :friendly_name, "friendly_name", :string
|
|
11786
|
+
field :metadata, "metadata", [:map, :string]
|
|
11787
|
+
field :created_at, "created_at", :datetime
|
|
11788
|
+
field :last_used_at, "last_used_at", :datetime
|
|
11789
|
+
end
|
|
11790
|
+
|
|
11791
|
+
# The enrollment of a TOTP factor: `totp.uri` is what the authenticator app needs.
|
|
11792
|
+
class PhoneFactorEnrollment < Didit::Model
|
|
11793
|
+
field :factor_id, "factor_id", :string
|
|
11794
|
+
field :type, "type", :string
|
|
11795
|
+
field :status, "status", :string
|
|
11796
|
+
field :totp, "totp", "PhoneFactorEnrollmentTotp"
|
|
11797
|
+
end
|
|
11798
|
+
|
|
11799
|
+
# A `totp` factor: what the authenticator app needs.
|
|
11800
|
+
class PhoneFactorEnrollmentTotp < Didit::Model
|
|
11801
|
+
field :uri, "uri", :string
|
|
11802
|
+
end
|
|
11803
|
+
|
|
11804
|
+
class PhoneFactorsPage < Didit::Model
|
|
11805
|
+
field :count, "count", :integer
|
|
11806
|
+
field :next, "next", :string
|
|
11807
|
+
field :previous, "previous", :string
|
|
11808
|
+
field :results, "results", [:array, "PhoneFactor"]
|
|
11809
|
+
end
|
|
11810
|
+
|
|
11498
11811
|
# Normalized phone-intelligence block. Present only when the intelligence add-on ran for this lookup; when present
|
|
11499
11812
|
# it is also exposed under the `enrichment` alias with identical values.
|
|
11500
11813
|
class PhoneIntelligence < Didit::Model
|
|
@@ -11530,6 +11843,48 @@ module Didit
|
|
|
11530
11843
|
field :source, "source", :string
|
|
11531
11844
|
end
|
|
11532
11845
|
|
|
11846
|
+
# One mobile network's decision on a registration.
|
|
11847
|
+
class PhoneNetworkDecision < Didit::Model
|
|
11848
|
+
field :name, "name", :string
|
|
11849
|
+
field :status, "status", :string
|
|
11850
|
+
field :decided_at, "decided_at", :datetime
|
|
11851
|
+
field :reason, "reason", :string
|
|
11852
|
+
end
|
|
11853
|
+
|
|
11854
|
+
class PhoneNetworkRegistration < Didit::Model
|
|
11855
|
+
field :registration_id, "registration_id", :string
|
|
11856
|
+
field :feature, "feature", :string
|
|
11857
|
+
field :country, "country", :string
|
|
11858
|
+
field :use_case, "use_case", :string
|
|
11859
|
+
field :status, "status", :string
|
|
11860
|
+
field :networks, "networks", [:array, "PhoneNetworkDecision"]
|
|
11861
|
+
field :live_at, "live_at", :datetime
|
|
11862
|
+
field :test_access, "test_access", :string
|
|
11863
|
+
field :test_numbers, "test_numbers", [:array, "PhoneNetworkRegistrationTestNumber"]
|
|
11864
|
+
end
|
|
11865
|
+
|
|
11866
|
+
class PhoneNetworkRegistrationSummary < Didit::Model
|
|
11867
|
+
field :registration_id, "registration_id", :string
|
|
11868
|
+
field :feature, "feature", :string
|
|
11869
|
+
field :country, "country", :string
|
|
11870
|
+
field :use_case, "use_case", :string
|
|
11871
|
+
field :status, "status", :string
|
|
11872
|
+
end
|
|
11873
|
+
|
|
11874
|
+
class PhoneNetworkRegistrationTestNumber < Didit::Model
|
|
11875
|
+
field :phone_number, "phone_number", :string
|
|
11876
|
+
field :status, "status", :string
|
|
11877
|
+
field :verification_id, "verification_id", :string
|
|
11878
|
+
field :test_access, "test_access", :string
|
|
11879
|
+
end
|
|
11880
|
+
|
|
11881
|
+
class PhoneNetworkRegistrationsPage < Didit::Model
|
|
11882
|
+
field :count, "count", :integer
|
|
11883
|
+
field :next, "next", :string
|
|
11884
|
+
field :previous, "previous", :string
|
|
11885
|
+
field :results, "results", [:array, "PhoneNetworkRegistrationSummary"]
|
|
11886
|
+
end
|
|
11887
|
+
|
|
11533
11888
|
class PhoneRiskResponse < Didit::Model
|
|
11534
11889
|
field :request_id, "request_id", :string
|
|
11535
11890
|
field :status, "status", :string
|
|
@@ -11567,6 +11922,72 @@ module Didit
|
|
|
11567
11922
|
field :type, "type", :string
|
|
11568
11923
|
end
|
|
11569
11924
|
|
|
11925
|
+
# A publishable key of a client SDK. It is not a secret: it is bound to the app ids it may run in and cannot make
|
|
11926
|
+
# a server call.
|
|
11927
|
+
class PhoneSdkKey < Didit::Model
|
|
11928
|
+
field :key_id, "key_id", :string
|
|
11929
|
+
field :platform, "platform", :string
|
|
11930
|
+
field :publishable_key, "publishable_key", :string
|
|
11931
|
+
field :app_ids, "app_ids", [:array, :string]
|
|
11932
|
+
field :status, "status", :string
|
|
11933
|
+
field :created_at, "created_at", :datetime
|
|
11934
|
+
end
|
|
11935
|
+
|
|
11936
|
+
class PhoneSdkKeyRotated < Didit::Model
|
|
11937
|
+
field :key_id, "key_id", :string
|
|
11938
|
+
field :platform, "platform", :string
|
|
11939
|
+
field :publishable_key, "publishable_key", :string
|
|
11940
|
+
field :app_ids, "app_ids", [:array, :string]
|
|
11941
|
+
field :status, "status", :string
|
|
11942
|
+
field :created_at, "created_at", :datetime
|
|
11943
|
+
field :previous_expires_at, "previous_expires_at", :datetime
|
|
11944
|
+
end
|
|
11945
|
+
|
|
11946
|
+
# A client SDK key as returned by the list operation.
|
|
11947
|
+
class PhoneSdkKeySummary < Didit::Model
|
|
11948
|
+
field :key_id, "key_id", :string
|
|
11949
|
+
field :platform, "platform", :string
|
|
11950
|
+
field :status, "status", :string
|
|
11951
|
+
end
|
|
11952
|
+
|
|
11953
|
+
# The publishable keys of your client SDKs.
|
|
11954
|
+
class PhoneSdkKeysPage < Didit::Model
|
|
11955
|
+
field :results, "results", [:array, "PhoneSdkKeySummary"]
|
|
11956
|
+
end
|
|
11957
|
+
|
|
11958
|
+
# Where silent verification runs: one entry per country, and per country the mobile networks that can run the
|
|
11959
|
+
# check.
|
|
11960
|
+
class PhoneSilentCoverage < Didit::Model
|
|
11961
|
+
field :countries, "countries", [:array, "PhoneSilentCoverageCountry"]
|
|
11962
|
+
end
|
|
11963
|
+
|
|
11964
|
+
class PhoneSilentCoverageCountry < Didit::Model
|
|
11965
|
+
field :country, "country", :string
|
|
11966
|
+
field :wifi, "wifi", :boolean
|
|
11967
|
+
field :networks, "networks", [:array, "PhoneSilentCoverageNetwork"]
|
|
11968
|
+
end
|
|
11969
|
+
|
|
11970
|
+
class PhoneSilentCoverageNetwork < Didit::Model
|
|
11971
|
+
field :name, "name", :string
|
|
11972
|
+
field :approval, "approval", :string
|
|
11973
|
+
end
|
|
11974
|
+
|
|
11975
|
+
class PhoneSilentEligibility < Didit::Model
|
|
11976
|
+
field :eligible, "eligible", :boolean
|
|
11977
|
+
field :reason, "reason", :string
|
|
11978
|
+
field :network, "network", :string
|
|
11979
|
+
field :country, "country", :string
|
|
11980
|
+
field :wifi_possible, "wifi_possible", :boolean
|
|
11981
|
+
end
|
|
11982
|
+
|
|
11983
|
+
class PhoneSilentRegistration < Didit::Model
|
|
11984
|
+
field :registration_id, "registration_id", :string
|
|
11985
|
+
field :country, "country", :string
|
|
11986
|
+
field :status, "status", :string
|
|
11987
|
+
field :networks, "networks", [:array, "PhoneNetworkDecision"]
|
|
11988
|
+
field :live_at, "live_at", :datetime
|
|
11989
|
+
end
|
|
11990
|
+
|
|
11570
11991
|
# Social footprint of the phone number: the online platforms it is registered on. Present only when
|
|
11571
11992
|
# `enable_social` was set and the check completed. Every count may be null when no data was returned for it.
|
|
11572
11993
|
# `profiles_registered: 0` means the platforms were checked and the phone number was found on none of them - a
|
|
@@ -11591,72 +12012,6 @@ module Didit
|
|
|
11591
12012
|
field :profiles, "profiles", [:map, "SocialFootprintProfile"]
|
|
11592
12013
|
end
|
|
11593
12014
|
|
|
11594
|
-
class PhoneVerificationCheckResponse < Didit::Model
|
|
11595
|
-
field :request_id, "request_id", :string
|
|
11596
|
-
field :status, "status", :string
|
|
11597
|
-
field :message, "message", :string
|
|
11598
|
-
field :phone, "phone", "PhoneVerificationCheckResponsePhone"
|
|
11599
|
-
field :vendor_data, "vendor_data", :string
|
|
11600
|
-
field :metadata, "metadata", :any
|
|
11601
|
-
field :created_at, "created_at", :datetime
|
|
11602
|
-
end
|
|
11603
|
-
|
|
11604
|
-
# Full phone report. Present (non-null) only on finalized outcomes (`Approved`/`Declined`); `null` on `Failed` and
|
|
11605
|
-
# absent on `Expired or Not Found`.
|
|
11606
|
-
class PhoneVerificationCheckResponsePhone < Didit::Model
|
|
11607
|
-
field :status, "status", :string
|
|
11608
|
-
field :phone_number_prefix, "phone_number_prefix", :string
|
|
11609
|
-
field :phone_number, "phone_number", :string
|
|
11610
|
-
field :full_number, "full_number", :string
|
|
11611
|
-
field :country_code, "country_code", :string
|
|
11612
|
-
field :country_name, "country_name", :string
|
|
11613
|
-
field :carrier, "carrier", "PhoneVerificationCheckResponsePhoneCarrier"
|
|
11614
|
-
field :is_disposable, "is_disposable", :boolean
|
|
11615
|
-
field :is_virtual, "is_virtual", :boolean
|
|
11616
|
-
field :verification_method, "verification_method", :string
|
|
11617
|
-
field :verification_attempts, "verification_attempts", :integer
|
|
11618
|
-
field :verified_at, "verified_at", :datetime
|
|
11619
|
-
field :warnings, "warnings", [:array, "PhoneVerificationCheckResponsePhoneWarnings"]
|
|
11620
|
-
field :lifecycle, "lifecycle", [:array, "PhoneVerificationCheckResponsePhoneLifecycle"]
|
|
11621
|
-
field :matches, "matches", [:array, "PhoneVerificationCheckResponsePhoneMatches"]
|
|
11622
|
-
field :phone_social, "phone_social", "PhoneSocialFootprint"
|
|
11623
|
-
field :phone_intelligence, "phone_intelligence", "PhoneIntelligence"
|
|
11624
|
-
end
|
|
11625
|
-
|
|
11626
|
-
# Current network serving the number, from the carrier lookup run at finalization.
|
|
11627
|
-
class PhoneVerificationCheckResponsePhoneCarrier < Didit::Model
|
|
11628
|
-
field :name, "name", :string
|
|
11629
|
-
field :type, "type", :string
|
|
11630
|
-
end
|
|
11631
|
-
|
|
11632
|
-
class PhoneVerificationCheckResponsePhoneLifecycle < Didit::Model
|
|
11633
|
-
field :type, "type", :string
|
|
11634
|
-
field :timestamp, "timestamp", :datetime
|
|
11635
|
-
field :details, "details", :any
|
|
11636
|
-
field :fee, "fee", :float
|
|
11637
|
-
end
|
|
11638
|
-
|
|
11639
|
-
class PhoneVerificationCheckResponsePhoneMatches < Didit::Model
|
|
11640
|
-
field :session_id, "session_id", :string
|
|
11641
|
-
field :session_number, "session_number", :integer
|
|
11642
|
-
field :vendor_data, "vendor_data", :string
|
|
11643
|
-
field :verification_date, "verification_date", :string
|
|
11644
|
-
field :phone_number, "phone_number", :string
|
|
11645
|
-
field :status, "status", :string
|
|
11646
|
-
field :is_blocklisted, "is_blocklisted", :boolean
|
|
11647
|
-
field :api_service, "api_service", :string
|
|
11648
|
-
field :source, "source", :string
|
|
11649
|
-
end
|
|
11650
|
-
|
|
11651
|
-
class PhoneVerificationCheckResponsePhoneWarnings < Didit::Model
|
|
11652
|
-
field :feature, "feature", :string
|
|
11653
|
-
field :risk, "risk", :string
|
|
11654
|
-
field :additional_data, "additional_data", :any
|
|
11655
|
-
field :log_type, "log_type", :string
|
|
11656
|
-
field :short_description, "short_description", :string
|
|
11657
|
-
field :long_description, "long_description", :string
|
|
11658
|
-
end
|
|
11659
|
-
|
|
11660
12015
|
class PhoneVerificationSendResponse < Didit::Model
|
|
11661
12016
|
field :request_id, "request_id", :string
|
|
11662
12017
|
field :status, "status", :string
|