@privy-io/api-types 0.22.0 → 0.24.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.
- package/CHANGELOG.md +41 -0
- package/client.d.mts +16 -16
- package/client.d.mts.map +1 -1
- package/client.d.ts +16 -16
- package/client.d.ts.map +1 -1
- package/client.js +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +0 -8
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +0 -8
- package/resources/accounts.d.ts.map +1 -1
- package/resources/aggregations.d.mts +1 -1
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +1 -1
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/apps.d.mts +88 -1
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +88 -1
- package/resources/apps.d.ts.map +1 -1
- package/resources/cards.d.mts +87 -6
- package/resources/cards.d.mts.map +1 -1
- package/resources/cards.d.ts +87 -6
- package/resources/cards.d.ts.map +1 -1
- package/resources/client-auth.d.mts +1 -1
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +1 -1
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/fiat.d.mts +701 -61
- package/resources/fiat.d.mts.map +1 -1
- package/resources/fiat.d.ts +701 -61
- package/resources/fiat.d.ts.map +1 -1
- package/resources/index.d.mts +8 -8
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +82 -4
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +82 -4
- package/resources/intents.d.ts.map +1 -1
- package/resources/key-quorums.d.mts +14 -1
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +14 -1
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/policies/condition-sets.d.mts +21 -0
- package/resources/policies/condition-sets.d.mts.map +1 -0
- package/resources/policies/condition-sets.d.ts +21 -0
- package/resources/policies/condition-sets.d.ts.map +1 -0
- package/resources/policies/condition-sets.js +9 -0
- package/resources/policies/condition-sets.js.map +1 -0
- package/resources/policies/condition-sets.mjs +5 -0
- package/resources/policies/condition-sets.mjs.map +1 -0
- package/resources/policies/index.d.mts +3 -0
- package/resources/policies/index.d.mts.map +1 -0
- package/resources/policies/index.d.ts +3 -0
- package/resources/policies/index.d.ts.map +1 -0
- package/resources/policies/index.js +9 -0
- package/resources/policies/index.js.map +1 -0
- package/resources/policies/index.mjs +4 -0
- package/resources/policies/index.mjs.map +1 -0
- package/resources/policies/policies.d.mts +775 -0
- package/resources/policies/policies.d.mts.map +1 -0
- package/resources/policies/policies.d.ts +775 -0
- package/resources/policies/policies.d.ts.map +1 -0
- package/resources/policies/policies.js +17 -0
- package/resources/policies/policies.js.map +1 -0
- package/resources/policies/policies.mjs +12 -0
- package/resources/policies/policies.mjs.map +1 -0
- package/resources/policies.d.mts +1 -698
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +1 -698
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +2 -5
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +1 -3
- package/resources/policies.mjs.map +1 -1
- package/resources/users.d.mts +25 -20
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +25 -20
- package/resources/users.d.ts.map +1 -1
- package/resources/wallet-automations.d.mts +14 -8
- package/resources/wallet-automations.d.mts.map +1 -1
- package/resources/wallet-automations.d.ts +14 -8
- package/resources/wallet-automations.d.ts.map +1 -1
- package/resources/wallets/actions.d.mts +45 -11
- package/resources/wallets/actions.d.mts.map +1 -1
- package/resources/wallets/actions.d.ts +45 -11
- package/resources/wallets/actions.d.ts.map +1 -1
- package/resources/wallets/balance.d.mts +3 -3
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +3 -3
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/index.d.mts +2 -2
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +2 -2
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +4 -1
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +4 -1
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/wallets.d.mts +287 -17
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +287 -17
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +76 -14
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +76 -14
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/yield.d.mts +2 -2
- package/resources/yield.d.ts +2 -2
- package/src/client.ts +196 -62
- package/src/resources/accounts.ts +0 -10
- package/src/resources/aggregations.ts +1 -1
- package/src/resources/apps.ts +126 -0
- package/src/resources/cards.ts +112 -5
- package/src/resources/client-auth.ts +1 -1
- package/src/resources/fiat.ts +938 -136
- package/src/resources/index.ts +71 -4
- package/src/resources/intents.ts +114 -3
- package/src/resources/key-quorums.ts +16 -0
- package/src/resources/policies/condition-sets.ts +25 -0
- package/src/resources/policies/index.ts +63 -0
- package/src/resources/policies/policies.ts +1122 -0
- package/src/resources/policies.ts +1 -1023
- package/src/resources/users.ts +31 -25
- package/src/resources/wallet-automations.ts +16 -9
- package/src/resources/wallets/actions.ts +54 -10
- package/src/resources/wallets/balance.ts +3 -0
- package/src/resources/wallets/index.ts +18 -0
- package/src/resources/wallets/transactions.ts +4 -0
- package/src/resources/wallets/wallets.ts +358 -10
- package/src/resources/webhooks.ts +93 -15
- package/src/resources/yield.ts +2 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/fiat.ts
CHANGED
|
@@ -23,6 +23,12 @@ export interface BridgeCreateExternalFiatAccountRequestBody {
|
|
|
23
23
|
*/
|
|
24
24
|
provider: 'bridge';
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* The individual or business that owns the account. Required for `iban`, `gb`, and
|
|
28
|
+
* `swift` accounts.
|
|
29
|
+
*/
|
|
30
|
+
account_owner?: ExternalFiatAccountOwner;
|
|
31
|
+
|
|
26
32
|
/**
|
|
27
33
|
* Physical address associated with an external fiat account.
|
|
28
34
|
*/
|
|
@@ -55,6 +61,12 @@ export interface BridgeCreateFiatDepositAccountRequestBody {
|
|
|
55
61
|
*/
|
|
56
62
|
source: CreateFiatDepositAccountSource;
|
|
57
63
|
|
|
64
|
+
/**
|
|
65
|
+
* A developer fee as a percentage string from 0 up to (not including) 100, e.g.
|
|
66
|
+
* "1.5" for 1.5%.
|
|
67
|
+
*/
|
|
68
|
+
developer_fee_percent?: DeveloperFeePercent;
|
|
69
|
+
|
|
58
70
|
/**
|
|
59
71
|
* The Privy API environment.
|
|
60
72
|
*/
|
|
@@ -111,6 +123,12 @@ export interface BridgeFiatDepositAccount {
|
|
|
111
123
|
*/
|
|
112
124
|
destination: FiatDepositAccountDestination;
|
|
113
125
|
|
|
126
|
+
/**
|
|
127
|
+
* A developer fee as a percentage string from 0 up to (not including) 100, e.g.
|
|
128
|
+
* "1.5" for 1.5%.
|
|
129
|
+
*/
|
|
130
|
+
developer_fee_percent: DeveloperFeePercent;
|
|
131
|
+
|
|
114
132
|
/**
|
|
115
133
|
* The Privy API environment.
|
|
116
134
|
*/
|
|
@@ -183,6 +201,12 @@ export interface CreateExternalFiatAccountRequestBody {
|
|
|
183
201
|
*/
|
|
184
202
|
provider: 'bridge';
|
|
185
203
|
|
|
204
|
+
/**
|
|
205
|
+
* The individual or business that owns the account. Required for `iban`, `gb`, and
|
|
206
|
+
* `swift` accounts.
|
|
207
|
+
*/
|
|
208
|
+
account_owner?: ExternalFiatAccountOwner;
|
|
209
|
+
|
|
186
210
|
/**
|
|
187
211
|
* Physical address associated with an external fiat account.
|
|
188
212
|
*/
|
|
@@ -215,6 +239,12 @@ export interface CreateFiatDepositAccountRequestBody {
|
|
|
215
239
|
*/
|
|
216
240
|
source: CreateFiatDepositAccountSource;
|
|
217
241
|
|
|
242
|
+
/**
|
|
243
|
+
* A developer fee as a percentage string from 0 up to (not including) 100, e.g.
|
|
244
|
+
* "1.5" for 1.5%.
|
|
245
|
+
*/
|
|
246
|
+
developer_fee_percent?: DeveloperFeePercent;
|
|
247
|
+
|
|
218
248
|
/**
|
|
219
249
|
* The Privy API environment.
|
|
220
250
|
*/
|
|
@@ -241,8 +271,20 @@ export interface CreatePayoutRequestBody {
|
|
|
241
271
|
* The source crypto asset, chain, and amount for a payout.
|
|
242
272
|
*/
|
|
243
273
|
source: PayoutSource;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* A developer fee as a percentage string from 0 up to (not including) 100, e.g.
|
|
277
|
+
* "1.5" for 1.5%.
|
|
278
|
+
*/
|
|
279
|
+
developer_fee_percent?: DeveloperFeePercent;
|
|
244
280
|
}
|
|
245
281
|
|
|
282
|
+
/**
|
|
283
|
+
* A developer fee as a percentage string from 0 up to (not including) 100, e.g.
|
|
284
|
+
* "1.5" for 1.5%.
|
|
285
|
+
*/
|
|
286
|
+
export type DeveloperFeePercent = string;
|
|
287
|
+
|
|
246
288
|
/**
|
|
247
289
|
* A Bridge external fiat account linked to a user.
|
|
248
290
|
*/
|
|
@@ -291,6 +333,15 @@ export interface ExternalFiatAccountAddress {
|
|
|
291
333
|
street_line_2?: string;
|
|
292
334
|
}
|
|
293
335
|
|
|
336
|
+
/**
|
|
337
|
+
* A business that owns an external fiat account.
|
|
338
|
+
*/
|
|
339
|
+
export interface ExternalFiatAccountBusinessOwner {
|
|
340
|
+
business_name: string;
|
|
341
|
+
|
|
342
|
+
type: 'business';
|
|
343
|
+
}
|
|
344
|
+
|
|
294
345
|
/**
|
|
295
346
|
* Bank account details. The `type` field discriminates which shape applies.
|
|
296
347
|
*/
|
|
@@ -341,6 +392,23 @@ export interface ExternalFiatAccountIbanData {
|
|
|
341
392
|
type: 'iban';
|
|
342
393
|
}
|
|
343
394
|
|
|
395
|
+
/**
|
|
396
|
+
* An individual who owns an external fiat account.
|
|
397
|
+
*/
|
|
398
|
+
export interface ExternalFiatAccountIndividualOwner {
|
|
399
|
+
first_name: string;
|
|
400
|
+
|
|
401
|
+
last_name: string;
|
|
402
|
+
|
|
403
|
+
type: 'individual';
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* The individual or business that owns the account. Required for `iban`, `gb`, and
|
|
408
|
+
* `swift` accounts.
|
|
409
|
+
*/
|
|
410
|
+
export type ExternalFiatAccountOwner = ExternalFiatAccountIndividualOwner | ExternalFiatAccountBusinessOwner;
|
|
411
|
+
|
|
344
412
|
/**
|
|
345
413
|
* Brazilian Pix account data for an external fiat account. Provide exactly one of
|
|
346
414
|
* `pix_key` or `br_code`.
|
|
@@ -454,6 +522,12 @@ export interface FiatDepositAccount {
|
|
|
454
522
|
*/
|
|
455
523
|
destination: FiatDepositAccountDestination;
|
|
456
524
|
|
|
525
|
+
/**
|
|
526
|
+
* A developer fee as a percentage string from 0 up to (not including) 100, e.g.
|
|
527
|
+
* "1.5" for 1.5%.
|
|
528
|
+
*/
|
|
529
|
+
developer_fee_percent: DeveloperFeePercent;
|
|
530
|
+
|
|
457
531
|
/**
|
|
458
532
|
* The Privy API environment.
|
|
459
533
|
*/
|
|
@@ -560,187 +634,268 @@ export interface FiatDepositInstructions {
|
|
|
560
634
|
export type FiatPaymentRail = 'sepa' | 'ach_push' | 'wire' | 'fednow' | 'faster_payments';
|
|
561
635
|
|
|
562
636
|
/**
|
|
563
|
-
*
|
|
637
|
+
* Primary purpose the business will use the account for. Passthrough to the
|
|
638
|
+
* provider. See the
|
|
639
|
+
* [Bridge customer API reference](https://apidocs.bridge.xyz/platform/customers/customers/api)
|
|
640
|
+
* for accepted values.
|
|
564
641
|
*/
|
|
565
|
-
export
|
|
642
|
+
export type KYBAccountPurpose = string;
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* A beneficial owner, control person, or signer associated with the business. At
|
|
646
|
+
* least one of has_ownership, has_control, or is_signer must be true, and the
|
|
647
|
+
* business must have at least one control person and one signer.
|
|
648
|
+
*/
|
|
649
|
+
export interface KYBAssociatedPerson {
|
|
566
650
|
/**
|
|
567
|
-
*
|
|
651
|
+
* Date of birth in YYYY-MM-DD format. Must be 18 years or older.
|
|
652
|
+
*/
|
|
653
|
+
date_of_birth: string;
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* Email address.
|
|
568
657
|
*/
|
|
569
658
|
email: string;
|
|
570
659
|
|
|
571
660
|
/**
|
|
572
|
-
*
|
|
661
|
+
* Legal first name.
|
|
573
662
|
*/
|
|
574
|
-
|
|
663
|
+
first_name: string;
|
|
575
664
|
|
|
576
665
|
/**
|
|
577
|
-
*
|
|
666
|
+
* Whether this person is a control person.
|
|
578
667
|
*/
|
|
579
|
-
|
|
668
|
+
has_control: boolean;
|
|
580
669
|
|
|
581
670
|
/**
|
|
582
|
-
*
|
|
671
|
+
* Whether this person owns 25% or more of the business.
|
|
583
672
|
*/
|
|
584
|
-
|
|
673
|
+
has_ownership: boolean;
|
|
585
674
|
|
|
586
675
|
/**
|
|
587
|
-
*
|
|
676
|
+
* Identifying documents for this person.
|
|
588
677
|
*/
|
|
589
|
-
|
|
678
|
+
identifying_information: Array<VerificationDocument>;
|
|
590
679
|
|
|
591
680
|
/**
|
|
592
|
-
*
|
|
681
|
+
* Whether this person is a signer for the business.
|
|
593
682
|
*/
|
|
594
|
-
|
|
683
|
+
is_signer: boolean;
|
|
595
684
|
|
|
596
685
|
/**
|
|
597
|
-
*
|
|
686
|
+
* Legal last name.
|
|
598
687
|
*/
|
|
599
|
-
|
|
600
|
-
}
|
|
688
|
+
last_name: string;
|
|
601
689
|
|
|
602
|
-
/**
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
kyb_statuses: Array<KYBStatusResponse>;
|
|
690
|
+
/**
|
|
691
|
+
* A postal address used in KYC and KYB data submission.
|
|
692
|
+
*/
|
|
693
|
+
residential_address: VerificationAddress;
|
|
607
694
|
|
|
608
|
-
|
|
609
|
-
|
|
695
|
+
/**
|
|
696
|
+
* When this person (a control person) attested to having verified the business
|
|
697
|
+
* ownership structure (ISO 8601).
|
|
698
|
+
*/
|
|
699
|
+
attested_ownership_structure_at?: (string & {}) | (string & {});
|
|
610
700
|
|
|
611
|
-
/**
|
|
612
|
-
* Full KYB status for an organization with a given provider.
|
|
613
|
-
*/
|
|
614
|
-
export interface KYBStatusResponse {
|
|
615
701
|
/**
|
|
616
|
-
*
|
|
702
|
+
* Supporting documents for this person, such as proof of address.
|
|
617
703
|
*/
|
|
618
|
-
|
|
704
|
+
documents?: Array<KYBIndividualDocument>;
|
|
619
705
|
|
|
620
|
-
|
|
706
|
+
/**
|
|
707
|
+
* Whether this person is a director.
|
|
708
|
+
*/
|
|
709
|
+
is_director?: boolean;
|
|
621
710
|
|
|
622
711
|
/**
|
|
623
|
-
*
|
|
712
|
+
* Result of a KYC/AML or OFAC screen you performed and are relying on the provider
|
|
713
|
+
* to accept, honoured only for developers enrolled in reliance.
|
|
624
714
|
*/
|
|
625
|
-
|
|
715
|
+
kyc_screen?: KyxScreen;
|
|
626
716
|
|
|
627
717
|
/**
|
|
628
|
-
*
|
|
718
|
+
* Legal middle name.
|
|
629
719
|
*/
|
|
630
|
-
|
|
720
|
+
middle_name?: string;
|
|
631
721
|
|
|
632
722
|
/**
|
|
633
|
-
*
|
|
723
|
+
* ISO 3166-1 alpha-3 codes for all nationalities held.
|
|
634
724
|
*/
|
|
635
|
-
|
|
725
|
+
nationalities?: Array<string>;
|
|
636
726
|
|
|
637
727
|
/**
|
|
638
|
-
* KYC/
|
|
728
|
+
* Result of a KYC/AML or OFAC screen you performed and are relying on the provider
|
|
729
|
+
* to accept, honoured only for developers enrolled in reliance.
|
|
639
730
|
*/
|
|
640
|
-
|
|
731
|
+
ofac_screen?: KyxScreen;
|
|
641
732
|
|
|
642
733
|
/**
|
|
643
|
-
*
|
|
734
|
+
* Percentage of the business this person owns.
|
|
644
735
|
*/
|
|
645
|
-
|
|
736
|
+
ownership_percentage?: number;
|
|
646
737
|
|
|
647
738
|
/**
|
|
648
|
-
*
|
|
739
|
+
* Phone number in E.164 format.
|
|
649
740
|
*/
|
|
650
|
-
|
|
741
|
+
phone?: string;
|
|
651
742
|
|
|
652
743
|
/**
|
|
653
|
-
*
|
|
744
|
+
* Place of birth for an associated person.
|
|
654
745
|
*/
|
|
655
|
-
|
|
656
|
-
}
|
|
746
|
+
place_of_birth?: KYBPlaceOfBirth;
|
|
657
747
|
|
|
658
|
-
/**
|
|
659
|
-
* Request body for initiating Terms of Service acceptance for an organization.
|
|
660
|
-
*/
|
|
661
|
-
export interface KYBTosRequestBody {
|
|
662
748
|
/**
|
|
663
|
-
*
|
|
749
|
+
* Date the relationship with the business was established, in YYYY-MM-DD format.
|
|
664
750
|
*/
|
|
665
|
-
|
|
751
|
+
relationship_established_at?: string;
|
|
666
752
|
|
|
667
753
|
/**
|
|
668
|
-
*
|
|
754
|
+
* Job title. Required when has_control is true.
|
|
669
755
|
*/
|
|
670
|
-
|
|
756
|
+
title?: string;
|
|
671
757
|
|
|
672
758
|
/**
|
|
673
|
-
*
|
|
759
|
+
* Latin-1 transliteration of the first name. Required for non-Latin-1 names.
|
|
674
760
|
*/
|
|
675
|
-
|
|
761
|
+
transliterated_first_name?: string;
|
|
676
762
|
|
|
677
763
|
/**
|
|
678
|
-
*
|
|
764
|
+
* Latin-1 transliteration of the last name. Required for non-Latin-1 names.
|
|
679
765
|
*/
|
|
680
|
-
|
|
766
|
+
transliterated_last_name?: string;
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* Latin-1 transliteration of the middle name. Required for non-Latin-1 names.
|
|
770
|
+
*/
|
|
771
|
+
transliterated_middle_name?: string;
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* A postal address used in KYC and KYB data submission.
|
|
775
|
+
*/
|
|
776
|
+
transliterated_residential_address?: VerificationAddress;
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* When you verified this person against a database source (ISO 8601).
|
|
780
|
+
*/
|
|
781
|
+
verified_database_at?: (string & {}) | (string & {});
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* When you verified the government ID for this person (ISO 8601).
|
|
785
|
+
*/
|
|
786
|
+
verified_govid_at?: (string & {}) | (string & {});
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* When you verified proof of address for this person (ISO 8601).
|
|
790
|
+
*/
|
|
791
|
+
verified_proof_of_address_at?: (string & {}) | (string & {});
|
|
681
792
|
}
|
|
682
793
|
|
|
683
794
|
/**
|
|
684
|
-
*
|
|
795
|
+
* A supporting document for business verification.
|
|
685
796
|
*/
|
|
686
|
-
export interface
|
|
797
|
+
export interface KYBBusinessDocument {
|
|
687
798
|
/**
|
|
688
|
-
*
|
|
799
|
+
* Base64-encoded data URI of the document.
|
|
689
800
|
*/
|
|
690
|
-
|
|
801
|
+
file: string;
|
|
691
802
|
|
|
692
803
|
/**
|
|
693
|
-
*
|
|
804
|
+
* What this document evidences. Supports multiple purposes per file.
|
|
694
805
|
*/
|
|
695
|
-
|
|
806
|
+
purposes: Array<KYBDocumentPurpose>;
|
|
696
807
|
|
|
697
808
|
/**
|
|
698
|
-
* Document description.
|
|
809
|
+
* Document description. Required when "other" is one of the purposes.
|
|
699
810
|
*/
|
|
700
811
|
description?: string;
|
|
812
|
+
}
|
|
701
813
|
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
814
|
+
/**
|
|
815
|
+
* Legal structure of the business. Passthrough to the provider. See the
|
|
816
|
+
* [Bridge customer API reference](https://apidocs.bridge.xyz/platform/customers/customers/api)
|
|
817
|
+
* for accepted values.
|
|
818
|
+
*/
|
|
819
|
+
export type KYBBusinessType = string;
|
|
706
820
|
|
|
821
|
+
/**
|
|
822
|
+
* What a supporting business document evidences. Passthrough to the provider. See
|
|
823
|
+
* the
|
|
824
|
+
* [Bridge customer API reference](https://apidocs.bridge.xyz/platform/customers/customers/api)
|
|
825
|
+
* for accepted values.
|
|
826
|
+
*/
|
|
827
|
+
export type KYBDocumentPurpose = string;
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* Estimated annual revenue of the business, in USD buckets. Passthrough to the
|
|
831
|
+
* provider. See the
|
|
832
|
+
* [Bridge customer API reference](https://apidocs.bridge.xyz/platform/customers/customers/api)
|
|
833
|
+
* for accepted values.
|
|
834
|
+
*/
|
|
835
|
+
export type KYBEstimatedAnnualRevenue = string;
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* A high-risk activity the business engages in. Passthrough to the provider. See
|
|
839
|
+
* the
|
|
840
|
+
* [Bridge customer API reference](https://apidocs.bridge.xyz/platform/customers/customers/api)
|
|
841
|
+
* for accepted values.
|
|
842
|
+
*/
|
|
843
|
+
export type KYBHighRiskActivity = string;
|
|
844
|
+
|
|
845
|
+
/**
|
|
846
|
+
* A supporting document for an associated person.
|
|
847
|
+
*/
|
|
848
|
+
export interface KYBIndividualDocument {
|
|
707
849
|
/**
|
|
708
|
-
* Base64-encoded
|
|
850
|
+
* Base64-encoded data URI of the document.
|
|
709
851
|
*/
|
|
710
|
-
|
|
852
|
+
file: string;
|
|
711
853
|
|
|
712
854
|
/**
|
|
713
|
-
*
|
|
855
|
+
* What this document evidences. Supports multiple purposes per file.
|
|
714
856
|
*/
|
|
715
|
-
|
|
857
|
+
purposes: Array<KYBIndividualDocumentPurpose>;
|
|
716
858
|
|
|
717
859
|
/**
|
|
718
|
-
* Document
|
|
860
|
+
* Document description. Required when "other" is one of the purposes.
|
|
719
861
|
*/
|
|
720
|
-
|
|
862
|
+
description?: string;
|
|
721
863
|
}
|
|
722
864
|
|
|
723
865
|
/**
|
|
724
|
-
*
|
|
866
|
+
* What a supporting document for an associated person evidences. Passthrough to
|
|
867
|
+
* the provider. See the
|
|
868
|
+
* [Bridge customer API reference](https://apidocs.bridge.xyz/platform/customers/customers/api)
|
|
869
|
+
* for accepted values.
|
|
725
870
|
*/
|
|
726
|
-
export
|
|
871
|
+
export type KYBIndividualDocumentPurpose = string;
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* Request body for initiating a hosted KYB flow for an organization.
|
|
875
|
+
*/
|
|
876
|
+
export interface KYBLinksRequestBody {
|
|
877
|
+
/**
|
|
878
|
+
* Email address for the organization.
|
|
879
|
+
*/
|
|
880
|
+
email: string;
|
|
881
|
+
|
|
727
882
|
/**
|
|
728
883
|
* KYC/KYB provider identifier.
|
|
729
884
|
*/
|
|
730
885
|
provider: KyxProvider;
|
|
731
886
|
|
|
732
887
|
/**
|
|
733
|
-
*
|
|
888
|
+
* Legal name of the business.
|
|
734
889
|
*/
|
|
735
|
-
|
|
890
|
+
business_name?: string;
|
|
736
891
|
|
|
737
892
|
/**
|
|
738
|
-
*
|
|
893
|
+
* Client-side agreement ID for ToS acceptance.
|
|
739
894
|
*/
|
|
740
|
-
|
|
895
|
+
client_agreement_id?: string;
|
|
741
896
|
|
|
742
897
|
/**
|
|
743
|
-
* Endorsements to request during
|
|
898
|
+
* Endorsements to request during KYB.
|
|
744
899
|
*/
|
|
745
900
|
endorsements?: Array<KyxEndorsementName>;
|
|
746
901
|
|
|
@@ -750,59 +905,92 @@ export interface KYCLinksRequestBody {
|
|
|
750
905
|
environment?: KyxEnvironment;
|
|
751
906
|
|
|
752
907
|
/**
|
|
753
|
-
* URI to redirect
|
|
908
|
+
* URI to redirect after completing KYB.
|
|
754
909
|
*/
|
|
755
910
|
redirect_uri?: string;
|
|
756
911
|
}
|
|
757
912
|
|
|
758
913
|
/**
|
|
759
|
-
*
|
|
914
|
+
* Place of birth for an associated person.
|
|
760
915
|
*/
|
|
761
|
-
export interface
|
|
916
|
+
export interface KYBPlaceOfBirth {
|
|
762
917
|
/**
|
|
763
|
-
*
|
|
918
|
+
* ISO 3166-1 alpha-3 country code.
|
|
764
919
|
*/
|
|
765
|
-
|
|
920
|
+
country: string;
|
|
766
921
|
|
|
767
922
|
/**
|
|
768
|
-
*
|
|
923
|
+
* City of birth.
|
|
769
924
|
*/
|
|
770
|
-
|
|
925
|
+
city?: string;
|
|
926
|
+
}
|
|
771
927
|
|
|
928
|
+
/**
|
|
929
|
+
* A public exchange listing for the business.
|
|
930
|
+
*/
|
|
931
|
+
export interface KYBPubliclyTradedListing {
|
|
772
932
|
/**
|
|
773
|
-
*
|
|
933
|
+
* ISO 10383 market identifier code of the listing venue.
|
|
774
934
|
*/
|
|
775
|
-
|
|
935
|
+
market_identifier_code: string;
|
|
776
936
|
|
|
777
937
|
/**
|
|
778
|
-
*
|
|
938
|
+
* ISIN with dashes removed.
|
|
779
939
|
*/
|
|
780
|
-
|
|
940
|
+
stock_number: string;
|
|
781
941
|
|
|
782
942
|
/**
|
|
783
|
-
*
|
|
943
|
+
* Exchange ticker symbol.
|
|
784
944
|
*/
|
|
785
|
-
|
|
945
|
+
ticker: string;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
/**
|
|
949
|
+
* Details of the regulated activity a business is licensed to perform.
|
|
950
|
+
*/
|
|
951
|
+
export interface KYBRegulatedActivity {
|
|
952
|
+
/**
|
|
953
|
+
* License number issued by the regulator.
|
|
954
|
+
*/
|
|
955
|
+
license_number: string;
|
|
786
956
|
|
|
787
957
|
/**
|
|
788
|
-
*
|
|
958
|
+
* ISO 3166-1 alpha-3 country code of the primary regulator.
|
|
789
959
|
*/
|
|
790
|
-
|
|
960
|
+
primary_regulatory_authority_country: string;
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* Name of the primary regulator.
|
|
964
|
+
*/
|
|
965
|
+
primary_regulatory_authority_name: string;
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* Description of the regulated activities performed.
|
|
969
|
+
*/
|
|
970
|
+
regulated_activities_description: string;
|
|
791
971
|
}
|
|
792
972
|
|
|
793
973
|
/**
|
|
794
|
-
*
|
|
974
|
+
* Primary source of the funds the business will transact with. Passthrough to the
|
|
975
|
+
* provider. See the
|
|
976
|
+
* [Bridge customer API reference](https://apidocs.bridge.xyz/platform/customers/customers/api)
|
|
977
|
+
* for accepted values.
|
|
795
978
|
*/
|
|
796
|
-
export
|
|
797
|
-
|
|
979
|
+
export type KYBSourceOfFunds = string;
|
|
980
|
+
|
|
981
|
+
/**
|
|
982
|
+
* List of KYB status snapshots, one per configured provider/environment.
|
|
983
|
+
*/
|
|
984
|
+
export interface KYBStatusListResponse {
|
|
985
|
+
kyb_statuses: Array<KYBStatusResponse>;
|
|
798
986
|
|
|
799
987
|
next_cursor: string | null;
|
|
800
988
|
}
|
|
801
989
|
|
|
802
990
|
/**
|
|
803
|
-
* Full
|
|
991
|
+
* Full KYB status for an organization with a given provider.
|
|
804
992
|
*/
|
|
805
|
-
export interface
|
|
993
|
+
export interface KYBStatusResponse {
|
|
806
994
|
/**
|
|
807
995
|
* Capability statuses for the customer.
|
|
808
996
|
*/
|
|
@@ -823,7 +1011,7 @@ export interface KYCStatusResponse {
|
|
|
823
1011
|
/**
|
|
824
1012
|
* Verification status detail for a KYC or KYB check.
|
|
825
1013
|
*/
|
|
826
|
-
|
|
1014
|
+
kyb: KyxVerificationStatusDetail;
|
|
827
1015
|
|
|
828
1016
|
/**
|
|
829
1017
|
* KYC/KYB provider identifier.
|
|
@@ -847,74 +1035,544 @@ export interface KYCStatusResponse {
|
|
|
847
1035
|
}
|
|
848
1036
|
|
|
849
1037
|
/**
|
|
850
|
-
*
|
|
1038
|
+
* KYB verification data for headless submission. Fields are individually optional
|
|
1039
|
+
* because the provider accepts partial submissions and grants endorsements once
|
|
1040
|
+
* enough data has arrived; a partial submission can be completed by calling the
|
|
1041
|
+
* endpoint again.
|
|
851
1042
|
*/
|
|
852
|
-
export interface
|
|
1043
|
+
export interface KYBSubmitData {
|
|
853
1044
|
/**
|
|
854
|
-
*
|
|
1045
|
+
* Primary purpose the business will use the account for. Passthrough to the
|
|
1046
|
+
* provider. See the
|
|
1047
|
+
* [Bridge customer API reference](https://apidocs.bridge.xyz/platform/customers/customers/api)
|
|
1048
|
+
* for accepted values.
|
|
855
1049
|
*/
|
|
856
|
-
|
|
1050
|
+
account_purpose?: KYBAccountPurpose;
|
|
857
1051
|
|
|
858
1052
|
/**
|
|
859
|
-
*
|
|
1053
|
+
* Free-text purpose. Required when account_purpose is "other".
|
|
860
1054
|
*/
|
|
861
|
-
|
|
1055
|
+
account_purpose_other?: string;
|
|
862
1056
|
|
|
863
1057
|
/**
|
|
864
|
-
*
|
|
1058
|
+
* Whether the business moves funds on behalf of third parties.
|
|
865
1059
|
*/
|
|
866
|
-
|
|
1060
|
+
acting_as_intermediary?: boolean;
|
|
867
1061
|
|
|
868
1062
|
/**
|
|
869
|
-
*
|
|
1063
|
+
* Beneficial owners, control persons, and signers.
|
|
870
1064
|
*/
|
|
871
|
-
|
|
1065
|
+
associated_persons?: Array<KYBAssociatedPerson>;
|
|
872
1066
|
|
|
873
1067
|
/**
|
|
874
|
-
*
|
|
1068
|
+
* Short summary of what the business does.
|
|
875
1069
|
*/
|
|
876
|
-
|
|
1070
|
+
business_description?: string;
|
|
877
1071
|
|
|
878
1072
|
/**
|
|
879
|
-
*
|
|
1073
|
+
* 2022 NAICS codes describing the industries the business operates in.
|
|
880
1074
|
*/
|
|
881
|
-
|
|
1075
|
+
business_industry?: Array<string>;
|
|
882
1076
|
|
|
883
1077
|
/**
|
|
884
|
-
*
|
|
1078
|
+
* Registered legal name as filed with government authorities.
|
|
885
1079
|
*/
|
|
886
|
-
|
|
887
|
-
}
|
|
1080
|
+
business_legal_name?: string;
|
|
888
1081
|
|
|
889
|
-
/**
|
|
890
|
-
* Request body for headless KYC data submission.
|
|
891
|
-
*/
|
|
892
|
-
export interface KYCSubmitRequestBody {
|
|
893
1082
|
/**
|
|
894
|
-
*
|
|
1083
|
+
* Public trading name (DBA), if different from the legal name.
|
|
895
1084
|
*/
|
|
896
|
-
|
|
1085
|
+
business_trade_name?: string;
|
|
897
1086
|
|
|
898
1087
|
/**
|
|
899
|
-
*
|
|
1088
|
+
* Legal structure of the business. Passthrough to the provider. See the
|
|
1089
|
+
* [Bridge customer API reference](https://apidocs.bridge.xyz/platform/customers/customers/api)
|
|
1090
|
+
* for accepted values.
|
|
900
1091
|
*/
|
|
901
|
-
|
|
1092
|
+
business_type?: KYBBusinessType;
|
|
902
1093
|
|
|
903
1094
|
/**
|
|
904
|
-
*
|
|
1095
|
+
* Description of the AML and sanctions screening controls in place.
|
|
905
1096
|
*/
|
|
906
|
-
|
|
1097
|
+
compliance_screening_explanation?: string;
|
|
907
1098
|
|
|
908
1099
|
/**
|
|
909
|
-
*
|
|
1100
|
+
* Whether the business conducts money services.
|
|
910
1101
|
*/
|
|
911
|
-
|
|
1102
|
+
conducts_money_services?: boolean;
|
|
912
1103
|
|
|
913
1104
|
/**
|
|
914
|
-
*
|
|
1105
|
+
* Description of the money services conducted.
|
|
915
1106
|
*/
|
|
916
|
-
|
|
917
|
-
|
|
1107
|
+
conducts_money_services_description?: string;
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* Whether money services are conducted through the provider. Requires a
|
|
1111
|
+
* flow_of_funds document when true.
|
|
1112
|
+
*/
|
|
1113
|
+
conducts_money_services_using_bridge?: boolean;
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* Supporting documents for verification.
|
|
1117
|
+
*/
|
|
1118
|
+
documents?: Array<KYBBusinessDocument>;
|
|
1119
|
+
|
|
1120
|
+
/**
|
|
1121
|
+
* Primary business email address.
|
|
1122
|
+
*/
|
|
1123
|
+
email?: string;
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* Estimated annual revenue of the business, in USD buckets. Passthrough to the
|
|
1127
|
+
* provider. See the
|
|
1128
|
+
* [Bridge customer API reference](https://apidocs.bridge.xyz/platform/customers/customers/api)
|
|
1129
|
+
* for accepted values.
|
|
1130
|
+
*/
|
|
1131
|
+
estimated_annual_revenue_usd?: KYBEstimatedAnnualRevenue;
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* Expected monthly payment volume in USD. Required for high-risk businesses.
|
|
1135
|
+
*/
|
|
1136
|
+
expected_monthly_payments_usd?: number;
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* Whether the business is tax-registered outside its country of incorporation.
|
|
1140
|
+
*/
|
|
1141
|
+
has_foreign_tax_registration?: boolean;
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* Whether an intermediate entity owner holds 25% or more of the business.
|
|
1145
|
+
*/
|
|
1146
|
+
has_material_intermediary_ownership?: boolean;
|
|
1147
|
+
|
|
1148
|
+
/**
|
|
1149
|
+
* High-risk activities the business engages in.
|
|
1150
|
+
*/
|
|
1151
|
+
high_risk_activities?: Array<KYBHighRiskActivity>;
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* Explanation of the high-risk activities. Required unless the only value is
|
|
1155
|
+
* "none_of_the_above".
|
|
1156
|
+
*/
|
|
1157
|
+
high_risk_activities_explanation?: string;
|
|
1158
|
+
|
|
1159
|
+
/**
|
|
1160
|
+
* Business tax and registration identifiers.
|
|
1161
|
+
*/
|
|
1162
|
+
identifying_information?: Array<VerificationDocument>;
|
|
1163
|
+
|
|
1164
|
+
/**
|
|
1165
|
+
* Date of incorporation in YYYY-MM-DD format.
|
|
1166
|
+
*/
|
|
1167
|
+
incorporation_date?: string;
|
|
1168
|
+
|
|
1169
|
+
/**
|
|
1170
|
+
* Whether the business is a decentralized autonomous organization.
|
|
1171
|
+
*/
|
|
1172
|
+
is_dao?: boolean;
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* Result of a KYC/AML or OFAC screen you performed and are relying on the provider
|
|
1176
|
+
* to accept, honoured only for developers enrolled in reliance.
|
|
1177
|
+
*/
|
|
1178
|
+
kyb_screen?: KyxScreen;
|
|
1179
|
+
|
|
1180
|
+
/**
|
|
1181
|
+
* Result of a KYC/AML or OFAC screen you performed and are relying on the provider
|
|
1182
|
+
* to accept, honoured only for developers enrolled in reliance.
|
|
1183
|
+
*/
|
|
1184
|
+
ofac_screen?: KyxScreen;
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* Whether the business operates in prohibited jurisdictions.
|
|
1188
|
+
*/
|
|
1189
|
+
operates_in_prohibited_countries?: boolean;
|
|
1190
|
+
|
|
1191
|
+
/**
|
|
1192
|
+
* Additional websites and social handles.
|
|
1193
|
+
*/
|
|
1194
|
+
other_websites?: Array<string>;
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* Ownership percentage at which a person is treated as a beneficial owner.
|
|
1198
|
+
*/
|
|
1199
|
+
ownership_threshold?: number;
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* Business phone number in E.164 format.
|
|
1203
|
+
*/
|
|
1204
|
+
phone?: string;
|
|
1205
|
+
|
|
1206
|
+
/**
|
|
1207
|
+
* A postal address used in KYC and KYB data submission.
|
|
1208
|
+
*/
|
|
1209
|
+
physical_address?: VerificationAddress;
|
|
1210
|
+
|
|
1211
|
+
/**
|
|
1212
|
+
* Primary website. If omitted, a proof_of_nature_of_business document is required.
|
|
1213
|
+
*/
|
|
1214
|
+
primary_website?: string;
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* Public exchange listings for the business.
|
|
1218
|
+
*/
|
|
1219
|
+
publicly_traded_listings?: Array<KYBPubliclyTradedListing>;
|
|
1220
|
+
|
|
1221
|
+
/**
|
|
1222
|
+
* A postal address used in KYC and KYB data submission.
|
|
1223
|
+
*/
|
|
1224
|
+
registered_address?: VerificationAddress;
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* Details of the regulated activity a business is licensed to perform.
|
|
1228
|
+
*/
|
|
1229
|
+
regulated_activity?: KYBRegulatedActivity;
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* Primary source of the funds the business will transact with. Passthrough to the
|
|
1233
|
+
* provider. See the
|
|
1234
|
+
* [Bridge customer API reference](https://apidocs.bridge.xyz/platform/customers/customers/api)
|
|
1235
|
+
* for accepted values.
|
|
1236
|
+
*/
|
|
1237
|
+
source_of_funds?: KYBSourceOfFunds;
|
|
1238
|
+
|
|
1239
|
+
/**
|
|
1240
|
+
* Free-text detail on the source of funds. Required for high-risk businesses.
|
|
1241
|
+
*/
|
|
1242
|
+
source_of_funds_description?: string;
|
|
1243
|
+
|
|
1244
|
+
/**
|
|
1245
|
+
* Latin-1 transliteration of the legal name. Required for non-Latin-1 names.
|
|
1246
|
+
*/
|
|
1247
|
+
transliterated_business_legal_name?: string;
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* Latin-1 transliteration of the trade name. Required for non-Latin-1 names.
|
|
1251
|
+
*/
|
|
1252
|
+
transliterated_business_trade_name?: string;
|
|
1253
|
+
|
|
1254
|
+
/**
|
|
1255
|
+
* A postal address used in KYC and KYB data submission.
|
|
1256
|
+
*/
|
|
1257
|
+
transliterated_physical_address?: VerificationAddress;
|
|
1258
|
+
|
|
1259
|
+
/**
|
|
1260
|
+
* A postal address used in KYC and KYB data submission.
|
|
1261
|
+
*/
|
|
1262
|
+
transliterated_registered_address?: VerificationAddress;
|
|
1263
|
+
|
|
1264
|
+
/**
|
|
1265
|
+
* When you verified the business against a database source (ISO 8601).
|
|
1266
|
+
*/
|
|
1267
|
+
verified_database_at?: (string & {}) | (string & {});
|
|
1268
|
+
|
|
1269
|
+
/**
|
|
1270
|
+
* When you verified the business registration documents (ISO 8601).
|
|
1271
|
+
*/
|
|
1272
|
+
verified_govid_at?: (string & {}) | (string & {});
|
|
1273
|
+
|
|
1274
|
+
/**
|
|
1275
|
+
* When you verified the business proof of address (ISO 8601), required for EEA
|
|
1276
|
+
* customers and SEPA rails under reliance.
|
|
1277
|
+
*/
|
|
1278
|
+
verified_proof_of_address_at?: (string & {}) | (string & {});
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
/**
|
|
1282
|
+
* Request body for headless KYB data submission.
|
|
1283
|
+
*/
|
|
1284
|
+
export interface KYBSubmitRequestBody {
|
|
1285
|
+
/**
|
|
1286
|
+
* KYB verification data for headless submission. Fields are individually optional
|
|
1287
|
+
* because the provider accepts partial submissions and grants endorsements once
|
|
1288
|
+
* enough data has arrived; a partial submission can be completed by calling the
|
|
1289
|
+
* endpoint again.
|
|
1290
|
+
*/
|
|
1291
|
+
data: KYBSubmitData;
|
|
1292
|
+
|
|
1293
|
+
/**
|
|
1294
|
+
* KYC/KYB provider identifier.
|
|
1295
|
+
*/
|
|
1296
|
+
provider: KyxProvider;
|
|
1297
|
+
|
|
1298
|
+
/**
|
|
1299
|
+
* Client-side agreement ID for ToS acceptance.
|
|
1300
|
+
*/
|
|
1301
|
+
client_agreement_id?: string;
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
* Endorsements to request during KYB.
|
|
1305
|
+
*/
|
|
1306
|
+
endorsements?: Array<KyxEndorsementName>;
|
|
1307
|
+
|
|
1308
|
+
/**
|
|
1309
|
+
* Provider environment (production or sandbox).
|
|
1310
|
+
*/
|
|
1311
|
+
environment?: KyxEnvironment;
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
/**
|
|
1315
|
+
* Request body for initiating Terms of Service acceptance for an organization.
|
|
1316
|
+
*/
|
|
1317
|
+
export interface KYBTosRequestBody {
|
|
1318
|
+
/**
|
|
1319
|
+
* Email address for the organization.
|
|
1320
|
+
*/
|
|
1321
|
+
email: string;
|
|
1322
|
+
|
|
1323
|
+
/**
|
|
1324
|
+
* KYC/KYB provider identifier.
|
|
1325
|
+
*/
|
|
1326
|
+
provider: KyxProvider;
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* Legal name of the business.
|
|
1330
|
+
*/
|
|
1331
|
+
business_name?: string;
|
|
1332
|
+
|
|
1333
|
+
/**
|
|
1334
|
+
* Provider environment (production or sandbox).
|
|
1335
|
+
*/
|
|
1336
|
+
environment?: KyxEnvironment;
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
/**
|
|
1340
|
+
* Request body for initiating a hosted KYC flow.
|
|
1341
|
+
*/
|
|
1342
|
+
export interface KYCLinksRequestBody {
|
|
1343
|
+
/**
|
|
1344
|
+
* KYC/KYB provider identifier.
|
|
1345
|
+
*/
|
|
1346
|
+
provider: KyxProvider;
|
|
1347
|
+
|
|
1348
|
+
/**
|
|
1349
|
+
* Client-side agreement ID for ToS acceptance.
|
|
1350
|
+
*/
|
|
1351
|
+
client_agreement_id?: string;
|
|
1352
|
+
|
|
1353
|
+
/**
|
|
1354
|
+
* Email address for the KYC session.
|
|
1355
|
+
*/
|
|
1356
|
+
email?: string;
|
|
1357
|
+
|
|
1358
|
+
/**
|
|
1359
|
+
* Endorsements to request during KYC.
|
|
1360
|
+
*/
|
|
1361
|
+
endorsements?: Array<KyxEndorsementName>;
|
|
1362
|
+
|
|
1363
|
+
/**
|
|
1364
|
+
* Provider environment (production or sandbox).
|
|
1365
|
+
*/
|
|
1366
|
+
environment?: KyxEnvironment;
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* URI to redirect the user after completing KYC.
|
|
1370
|
+
*/
|
|
1371
|
+
redirect_uri?: string;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* List of KYC status snapshots, one per configured provider/environment.
|
|
1376
|
+
*/
|
|
1377
|
+
export interface KYCStatusListResponse {
|
|
1378
|
+
kyc_statuses: Array<KYCStatusResponse>;
|
|
1379
|
+
|
|
1380
|
+
next_cursor: string | null;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
* Full KYC status for a user with a given provider.
|
|
1385
|
+
*/
|
|
1386
|
+
export interface KYCStatusResponse {
|
|
1387
|
+
/**
|
|
1388
|
+
* Capability statuses for the customer.
|
|
1389
|
+
*/
|
|
1390
|
+
capabilities: KyxCapabilities;
|
|
1391
|
+
|
|
1392
|
+
endorsements: Array<KyxEndorsement>;
|
|
1393
|
+
|
|
1394
|
+
/**
|
|
1395
|
+
* Provider environment (production or sandbox).
|
|
1396
|
+
*/
|
|
1397
|
+
environment: KyxEnvironment;
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
* Items that will be required in the future.
|
|
1401
|
+
*/
|
|
1402
|
+
future_requirements_due: Array<string>;
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* Verification status detail for a KYC or KYB check.
|
|
1406
|
+
*/
|
|
1407
|
+
kyc: KyxVerificationStatusDetail;
|
|
1408
|
+
|
|
1409
|
+
/**
|
|
1410
|
+
* KYC/KYB provider identifier.
|
|
1411
|
+
*/
|
|
1412
|
+
provider: KyxProvider;
|
|
1413
|
+
|
|
1414
|
+
/**
|
|
1415
|
+
* Top-level items still needed (e.g. link a bank account).
|
|
1416
|
+
*/
|
|
1417
|
+
requirements_due: Array<string>;
|
|
1418
|
+
|
|
1419
|
+
/**
|
|
1420
|
+
* KYC/KYB status for the user.
|
|
1421
|
+
*/
|
|
1422
|
+
status: KyxProviderStatus;
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
* Terms of Service acceptance status for a KYC or KYB flow.
|
|
1426
|
+
*/
|
|
1427
|
+
tos: KyxTosStatusDetail;
|
|
1428
|
+
|
|
1429
|
+
/**
|
|
1430
|
+
* Stripe Issuing cardholder ID assigned by Bridge for this user.
|
|
1431
|
+
*/
|
|
1432
|
+
stripe_cardholder_id?: string;
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
* KYC verification data for headless submission.
|
|
1437
|
+
*/
|
|
1438
|
+
export interface KYCSubmitData {
|
|
1439
|
+
/**
|
|
1440
|
+
* Date of birth in YYYY-MM-DD format.
|
|
1441
|
+
*/
|
|
1442
|
+
date_of_birth?: string;
|
|
1443
|
+
|
|
1444
|
+
/**
|
|
1445
|
+
* Email address.
|
|
1446
|
+
*/
|
|
1447
|
+
email?: string;
|
|
1448
|
+
|
|
1449
|
+
/**
|
|
1450
|
+
* Legal first name.
|
|
1451
|
+
*/
|
|
1452
|
+
first_name?: string;
|
|
1453
|
+
|
|
1454
|
+
/**
|
|
1455
|
+
* Identifying documents.
|
|
1456
|
+
*/
|
|
1457
|
+
identifying_information?: Array<VerificationDocument>;
|
|
1458
|
+
|
|
1459
|
+
/**
|
|
1460
|
+
* Result of a KYC/AML or OFAC screen you performed and are relying on the provider
|
|
1461
|
+
* to accept, honoured only for developers enrolled in reliance.
|
|
1462
|
+
*/
|
|
1463
|
+
kyc_screen?: KyxScreen;
|
|
1464
|
+
|
|
1465
|
+
/**
|
|
1466
|
+
* Legal last name.
|
|
1467
|
+
*/
|
|
1468
|
+
last_name?: string;
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* Legal middle name.
|
|
1472
|
+
*/
|
|
1473
|
+
middle_name?: string;
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* ISO 3166-1 alpha-3 codes for all nationalities held.
|
|
1477
|
+
*/
|
|
1478
|
+
nationalities?: Array<string>;
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
* Attests the user is a nonresident alien to satisfy identification without a US
|
|
1482
|
+
* tax ID (must be enabled for you).
|
|
1483
|
+
*/
|
|
1484
|
+
nonresident_alien_attestation?: boolean;
|
|
1485
|
+
|
|
1486
|
+
/**
|
|
1487
|
+
* Result of a KYC/AML or OFAC screen you performed and are relying on the provider
|
|
1488
|
+
* to accept, honoured only for developers enrolled in reliance.
|
|
1489
|
+
*/
|
|
1490
|
+
ofac_screen?: KyxScreen;
|
|
1491
|
+
|
|
1492
|
+
/**
|
|
1493
|
+
* Phone number in E.164 format.
|
|
1494
|
+
*/
|
|
1495
|
+
phone?: string;
|
|
1496
|
+
|
|
1497
|
+
/**
|
|
1498
|
+
* A postal address used in KYC and KYB data submission.
|
|
1499
|
+
*/
|
|
1500
|
+
residential_address?: VerificationAddress;
|
|
1501
|
+
|
|
1502
|
+
/**
|
|
1503
|
+
* Stripe Link shared data ID that supplies name, date of birth, address, and US
|
|
1504
|
+
* SSN (omit those fields); retrieval errors surface in endorsements[].issues.
|
|
1505
|
+
*/
|
|
1506
|
+
stripe_link_shared_data_id?: string;
|
|
1507
|
+
|
|
1508
|
+
/**
|
|
1509
|
+
* Latin-1 transliteration of the first name. Required for non-Latin-1 names.
|
|
1510
|
+
*/
|
|
1511
|
+
transliterated_first_name?: string;
|
|
1512
|
+
|
|
1513
|
+
/**
|
|
1514
|
+
* Latin-1 transliteration of the last name. Required for non-Latin-1 names.
|
|
1515
|
+
*/
|
|
1516
|
+
transliterated_last_name?: string;
|
|
1517
|
+
|
|
1518
|
+
/**
|
|
1519
|
+
* Latin-1 transliteration of the middle name. Required for non-Latin-1 names.
|
|
1520
|
+
*/
|
|
1521
|
+
transliterated_middle_name?: string;
|
|
1522
|
+
|
|
1523
|
+
/**
|
|
1524
|
+
* A postal address used in KYC and KYB data submission.
|
|
1525
|
+
*/
|
|
1526
|
+
transliterated_residential_address?: VerificationAddress;
|
|
1527
|
+
|
|
1528
|
+
/**
|
|
1529
|
+
* When you verified the user against a database source (ISO 8601), which loosens
|
|
1530
|
+
* the identifying-document requirement under reliance.
|
|
1531
|
+
*/
|
|
1532
|
+
verified_database_at?: (string & {}) | (string & {});
|
|
1533
|
+
|
|
1534
|
+
/**
|
|
1535
|
+
* When you verified the government ID (ISO 8601), which loosens the
|
|
1536
|
+
* identifying-document requirement under reliance.
|
|
1537
|
+
*/
|
|
1538
|
+
verified_govid_at?: (string & {}) | (string & {});
|
|
1539
|
+
|
|
1540
|
+
/**
|
|
1541
|
+
* When you verified proof of address (ISO 8601), required for EEA customers and
|
|
1542
|
+
* SEPA rails under reliance.
|
|
1543
|
+
*/
|
|
1544
|
+
verified_proof_of_address_at?: (string & {}) | (string & {});
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
/**
|
|
1548
|
+
* Request body for headless KYC data submission.
|
|
1549
|
+
*/
|
|
1550
|
+
export interface KYCSubmitRequestBody {
|
|
1551
|
+
/**
|
|
1552
|
+
* KYC verification data for headless submission.
|
|
1553
|
+
*/
|
|
1554
|
+
data: KYCSubmitData;
|
|
1555
|
+
|
|
1556
|
+
/**
|
|
1557
|
+
* KYC/KYB provider identifier.
|
|
1558
|
+
*/
|
|
1559
|
+
provider: KyxProvider;
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
* Client-side agreement ID for ToS acceptance.
|
|
1563
|
+
*/
|
|
1564
|
+
client_agreement_id?: string;
|
|
1565
|
+
|
|
1566
|
+
/**
|
|
1567
|
+
* Endorsements to request during KYC.
|
|
1568
|
+
*/
|
|
1569
|
+
endorsements?: Array<KyxEndorsementName>;
|
|
1570
|
+
|
|
1571
|
+
/**
|
|
1572
|
+
* Provider environment (production or sandbox).
|
|
1573
|
+
*/
|
|
1574
|
+
environment?: KyxEnvironment;
|
|
1575
|
+
}
|
|
918
1576
|
|
|
919
1577
|
/**
|
|
920
1578
|
* Capability statuses for the customer.
|
|
@@ -950,6 +1608,11 @@ export type KyxCapabilityStatus = string;
|
|
|
950
1608
|
* An endorsement with its approval status and missing requirements.
|
|
951
1609
|
*/
|
|
952
1610
|
export interface KyxEndorsement {
|
|
1611
|
+
/**
|
|
1612
|
+
* Provider issue codes, or null if none.
|
|
1613
|
+
*/
|
|
1614
|
+
issues: Array<string> | null;
|
|
1615
|
+
|
|
953
1616
|
/**
|
|
954
1617
|
* Missing requirements, or null if complete.
|
|
955
1618
|
*/
|
|
@@ -991,6 +1654,27 @@ export type KyxProvider = 'bridge';
|
|
|
991
1654
|
*/
|
|
992
1655
|
export type KyxProviderStatus = string;
|
|
993
1656
|
|
|
1657
|
+
/**
|
|
1658
|
+
* Result of a KYC/AML or OFAC screen you performed and are relying on the provider
|
|
1659
|
+
* to accept, honoured only for developers enrolled in reliance.
|
|
1660
|
+
*/
|
|
1661
|
+
export interface KyxScreen {
|
|
1662
|
+
/**
|
|
1663
|
+
* Outcome of a screen performed under KYC/KYB reliance.
|
|
1664
|
+
*/
|
|
1665
|
+
result: KyxScreenResult;
|
|
1666
|
+
|
|
1667
|
+
/**
|
|
1668
|
+
* When the screen was performed (ISO 8601 date or date-time).
|
|
1669
|
+
*/
|
|
1670
|
+
screened_at: (string & {}) | (string & {});
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
/**
|
|
1674
|
+
* Outcome of a screen performed under KYC/KYB reliance.
|
|
1675
|
+
*/
|
|
1676
|
+
export type KyxScreenResult = 'passed' | 'failed';
|
|
1677
|
+
|
|
994
1678
|
/**
|
|
995
1679
|
* Request body for initiating Terms of Service acceptance.
|
|
996
1680
|
*/
|
|
@@ -1303,8 +1987,27 @@ export interface PayoutDestination {
|
|
|
1303
1987
|
* The ID of a previously registered external fiat account to pay out to.
|
|
1304
1988
|
*/
|
|
1305
1989
|
fiat_account_id: string;
|
|
1990
|
+
|
|
1991
|
+
/**
|
|
1992
|
+
* A fiat payment rail a payout can settle over. `ach` is a standard ACH credit to
|
|
1993
|
+
* the destination account.
|
|
1994
|
+
*/
|
|
1995
|
+
payment_rail?: PayoutPaymentRail;
|
|
1306
1996
|
}
|
|
1307
1997
|
|
|
1998
|
+
/**
|
|
1999
|
+
* A fiat payment rail a payout can settle over. `ach` is a standard ACH credit to
|
|
2000
|
+
* the destination account.
|
|
2001
|
+
*/
|
|
2002
|
+
export type PayoutPaymentRail =
|
|
2003
|
+
| 'ach'
|
|
2004
|
+
| 'ach_same_day'
|
|
2005
|
+
| 'wire'
|
|
2006
|
+
| 'fednow'
|
|
2007
|
+
| 'sepa'
|
|
2008
|
+
| 'faster_payments'
|
|
2009
|
+
| 'pix';
|
|
2010
|
+
|
|
1308
2011
|
/**
|
|
1309
2012
|
* The source crypto asset, chain, and amount for a payout.
|
|
1310
2013
|
*/
|
|
@@ -1325,6 +2028,83 @@ export interface PayoutSource {
|
|
|
1325
2028
|
chain: string;
|
|
1326
2029
|
}
|
|
1327
2030
|
|
|
2031
|
+
/**
|
|
2032
|
+
* A postal address used in KYC and KYB data submission.
|
|
2033
|
+
*/
|
|
2034
|
+
export interface VerificationAddress {
|
|
2035
|
+
/**
|
|
2036
|
+
* City.
|
|
2037
|
+
*/
|
|
2038
|
+
city: string;
|
|
2039
|
+
|
|
2040
|
+
/**
|
|
2041
|
+
* ISO 3166-1 alpha-3 country code.
|
|
2042
|
+
*/
|
|
2043
|
+
country: string;
|
|
2044
|
+
|
|
2045
|
+
/**
|
|
2046
|
+
* Street address line 1.
|
|
2047
|
+
*/
|
|
2048
|
+
street_line_1: string;
|
|
2049
|
+
|
|
2050
|
+
/**
|
|
2051
|
+
* Postal code. Required for countries that use them.
|
|
2052
|
+
*/
|
|
2053
|
+
postal_code?: string;
|
|
2054
|
+
|
|
2055
|
+
/**
|
|
2056
|
+
* Street address line 2.
|
|
2057
|
+
*/
|
|
2058
|
+
street_line_2?: string;
|
|
2059
|
+
|
|
2060
|
+
/**
|
|
2061
|
+
* ISO 3166-2 state or province code. Required for US addresses.
|
|
2062
|
+
*/
|
|
2063
|
+
subdivision?: string;
|
|
2064
|
+
}
|
|
2065
|
+
|
|
2066
|
+
/**
|
|
2067
|
+
* An identifying document for KYC or KYB verification. Also used for business
|
|
2068
|
+
* identifiers such as tax and registration numbers, for which the image and
|
|
2069
|
+
* expiration fields do not apply.
|
|
2070
|
+
*/
|
|
2071
|
+
export interface VerificationDocument {
|
|
2072
|
+
/**
|
|
2073
|
+
* ISO 3166-1 alpha-3 issuing country code.
|
|
2074
|
+
*/
|
|
2075
|
+
issuing_country: string;
|
|
2076
|
+
|
|
2077
|
+
/**
|
|
2078
|
+
* Document type identifier.
|
|
2079
|
+
*/
|
|
2080
|
+
type: string;
|
|
2081
|
+
|
|
2082
|
+
/**
|
|
2083
|
+
* Document description.
|
|
2084
|
+
*/
|
|
2085
|
+
description?: string;
|
|
2086
|
+
|
|
2087
|
+
/**
|
|
2088
|
+
* Document expiration date.
|
|
2089
|
+
*/
|
|
2090
|
+
expiration?: string;
|
|
2091
|
+
|
|
2092
|
+
/**
|
|
2093
|
+
* Base64-encoded back image.
|
|
2094
|
+
*/
|
|
2095
|
+
image_back?: string;
|
|
2096
|
+
|
|
2097
|
+
/**
|
|
2098
|
+
* Base64-encoded front image.
|
|
2099
|
+
*/
|
|
2100
|
+
image_front?: string;
|
|
2101
|
+
|
|
2102
|
+
/**
|
|
2103
|
+
* Document number.
|
|
2104
|
+
*/
|
|
2105
|
+
number?: string;
|
|
2106
|
+
}
|
|
2107
|
+
|
|
1328
2108
|
export declare namespace Fiat {
|
|
1329
2109
|
export {
|
|
1330
2110
|
type BridgeCreateExternalFiatAccountRequestBody as BridgeCreateExternalFiatAccountRequestBody,
|
|
@@ -1336,11 +2116,15 @@ export declare namespace Fiat {
|
|
|
1336
2116
|
type CreateFiatDepositAccountRequestBody as CreateFiatDepositAccountRequestBody,
|
|
1337
2117
|
type CreateFiatDepositAccountSource as CreateFiatDepositAccountSource,
|
|
1338
2118
|
type CreatePayoutRequestBody as CreatePayoutRequestBody,
|
|
2119
|
+
type DeveloperFeePercent as DeveloperFeePercent,
|
|
1339
2120
|
type ExternalFiatAccount as ExternalFiatAccount,
|
|
1340
2121
|
type ExternalFiatAccountAddress as ExternalFiatAccountAddress,
|
|
2122
|
+
type ExternalFiatAccountBusinessOwner as ExternalFiatAccountBusinessOwner,
|
|
1341
2123
|
type ExternalFiatAccountData as ExternalFiatAccountData,
|
|
1342
2124
|
type ExternalFiatAccountGBData as ExternalFiatAccountGBData,
|
|
1343
2125
|
type ExternalFiatAccountIbanData as ExternalFiatAccountIbanData,
|
|
2126
|
+
type ExternalFiatAccountIndividualOwner as ExternalFiatAccountIndividualOwner,
|
|
2127
|
+
type ExternalFiatAccountOwner as ExternalFiatAccountOwner,
|
|
1344
2128
|
type ExternalFiatAccountPixData as ExternalFiatAccountPixData,
|
|
1345
2129
|
type ExternalFiatAccountResponse as ExternalFiatAccountResponse,
|
|
1346
2130
|
type ExternalFiatAccountSwiftCategory as ExternalFiatAccountSwiftCategory,
|
|
@@ -1355,13 +2139,26 @@ export declare namespace Fiat {
|
|
|
1355
2139
|
type FiatDepositAccountStatus as FiatDepositAccountStatus,
|
|
1356
2140
|
type FiatDepositInstructions as FiatDepositInstructions,
|
|
1357
2141
|
type FiatPaymentRail as FiatPaymentRail,
|
|
2142
|
+
type KYBAccountPurpose as KYBAccountPurpose,
|
|
2143
|
+
type KYBAssociatedPerson as KYBAssociatedPerson,
|
|
2144
|
+
type KYBBusinessDocument as KYBBusinessDocument,
|
|
2145
|
+
type KYBBusinessType as KYBBusinessType,
|
|
2146
|
+
type KYBDocumentPurpose as KYBDocumentPurpose,
|
|
2147
|
+
type KYBEstimatedAnnualRevenue as KYBEstimatedAnnualRevenue,
|
|
2148
|
+
type KYBHighRiskActivity as KYBHighRiskActivity,
|
|
2149
|
+
type KYBIndividualDocument as KYBIndividualDocument,
|
|
2150
|
+
type KYBIndividualDocumentPurpose as KYBIndividualDocumentPurpose,
|
|
1358
2151
|
type KYBLinksRequestBody as KYBLinksRequestBody,
|
|
2152
|
+
type KYBPlaceOfBirth as KYBPlaceOfBirth,
|
|
2153
|
+
type KYBPubliclyTradedListing as KYBPubliclyTradedListing,
|
|
2154
|
+
type KYBRegulatedActivity as KYBRegulatedActivity,
|
|
2155
|
+
type KYBSourceOfFunds as KYBSourceOfFunds,
|
|
1359
2156
|
type KYBStatusListResponse as KYBStatusListResponse,
|
|
1360
2157
|
type KYBStatusResponse as KYBStatusResponse,
|
|
2158
|
+
type KYBSubmitData as KYBSubmitData,
|
|
2159
|
+
type KYBSubmitRequestBody as KYBSubmitRequestBody,
|
|
1361
2160
|
type KYBTosRequestBody as KYBTosRequestBody,
|
|
1362
|
-
type KYCIdentifyingDocument as KYCIdentifyingDocument,
|
|
1363
2161
|
type KYCLinksRequestBody as KYCLinksRequestBody,
|
|
1364
|
-
type KYCResidentialAddress as KYCResidentialAddress,
|
|
1365
2162
|
type KYCStatusListResponse as KYCStatusListResponse,
|
|
1366
2163
|
type KYCStatusResponse as KYCStatusResponse,
|
|
1367
2164
|
type KYCSubmitData as KYCSubmitData,
|
|
@@ -1374,6 +2171,8 @@ export declare namespace Fiat {
|
|
|
1374
2171
|
type KyxEnvironment as KyxEnvironment,
|
|
1375
2172
|
type KyxProvider as KyxProvider,
|
|
1376
2173
|
type KyxProviderStatus as KyxProviderStatus,
|
|
2174
|
+
type KyxScreen as KyxScreen,
|
|
2175
|
+
type KyxScreenResult as KyxScreenResult,
|
|
1377
2176
|
type KyxTosRequestBody as KyxTosRequestBody,
|
|
1378
2177
|
type KyxTosResponse as KyxTosResponse,
|
|
1379
2178
|
type KyxTosStatus as KyxTosStatus,
|
|
@@ -1395,6 +2194,9 @@ export declare namespace Fiat {
|
|
|
1395
2194
|
type OrganizationExternalFiatAccount as OrganizationExternalFiatAccount,
|
|
1396
2195
|
type OrganizationExternalFiatAccountResponse as OrganizationExternalFiatAccountResponse,
|
|
1397
2196
|
type PayoutDestination as PayoutDestination,
|
|
2197
|
+
type PayoutPaymentRail as PayoutPaymentRail,
|
|
1398
2198
|
type PayoutSource as PayoutSource,
|
|
2199
|
+
type VerificationAddress as VerificationAddress,
|
|
2200
|
+
type VerificationDocument as VerificationDocument,
|
|
1399
2201
|
};
|
|
1400
2202
|
}
|