@privy-io/api-types 0.23.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 +30 -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/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 +83 -6
- package/resources/cards.d.mts.map +1 -1
- package/resources/cards.d.ts +83 -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 +177 -1
- package/resources/fiat.d.mts.map +1 -1
- package/resources/fiat.d.ts +177 -1
- 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 +4 -0
- package/resources/wallet-automations.d.mts.map +1 -1
- package/resources/wallet-automations.d.ts +4 -0
- package/resources/wallet-automations.d.ts.map +1 -1
- package/resources/wallets/actions.d.mts +38 -11
- package/resources/wallets/actions.d.mts.map +1 -1
- package/resources/wallets/actions.d.ts +38 -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 +60 -9
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +60 -9
- 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 +63 -1
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +63 -1
- 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 +132 -56
- package/src/resources/aggregations.ts +1 -1
- package/src/resources/apps.ts +126 -0
- package/src/resources/cards.ts +107 -5
- package/src/resources/client-auth.ts +1 -1
- package/src/resources/fiat.ts +228 -0
- package/src/resources/index.ts +39 -1
- 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 +5 -0
- package/src/resources/wallets/actions.ts +46 -10
- package/src/resources/wallets/balance.ts +3 -0
- package/src/resources/wallets/index.ts +4 -0
- package/src/resources/wallets/transactions.ts +4 -0
- package/src/resources/wallets/wallets.ts +71 -0
- package/src/resources/webhooks.ts +78 -0
- 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/cards.ts
CHANGED
|
@@ -57,13 +57,12 @@ export interface CardIssuingCardResponse {
|
|
|
57
57
|
id: string;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
|
-
* The
|
|
60
|
+
* The stablecoin the card settles in.
|
|
61
61
|
*/
|
|
62
62
|
asset: string;
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
|
-
* USD
|
|
66
|
-
* unavailable.
|
|
65
|
+
* USD amount the card can spend right now, or null when unavailable.
|
|
67
66
|
*/
|
|
68
67
|
balance_formatted: string | null;
|
|
69
68
|
|
|
@@ -94,6 +93,11 @@ export interface CardIssuingCardResponse {
|
|
|
94
93
|
*/
|
|
95
94
|
exp_year: number | null;
|
|
96
95
|
|
|
96
|
+
/**
|
|
97
|
+
* The funding sources the card can spend from, with at most one `selected`.
|
|
98
|
+
*/
|
|
99
|
+
funding_sources: Array<CardIssuingFundingSource>;
|
|
100
|
+
|
|
97
101
|
last4: string | null;
|
|
98
102
|
|
|
99
103
|
provider_id: string;
|
|
@@ -141,6 +145,12 @@ export interface CardIssuingConfig {
|
|
|
141
145
|
* Stripe publishable key for initializing Stripe.js in the browser.
|
|
142
146
|
*/
|
|
143
147
|
publishable_key: string;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Stripe account the publishable key acts on; absent when the key belongs to the
|
|
151
|
+
* app directly.
|
|
152
|
+
*/
|
|
153
|
+
stripe_account?: string;
|
|
144
154
|
}
|
|
145
155
|
|
|
146
156
|
/**
|
|
@@ -168,8 +178,7 @@ export interface CardIssuingConfigResponse {
|
|
|
168
178
|
*/
|
|
169
179
|
export interface CardIssuingCreateCardInput {
|
|
170
180
|
/**
|
|
171
|
-
* The asset
|
|
172
|
-
* Tempo.
|
|
181
|
+
* The asset that funds the card on `chain_id`.
|
|
173
182
|
*/
|
|
174
183
|
asset: string;
|
|
175
184
|
|
|
@@ -389,6 +398,48 @@ export interface CardIssuingEphemeralKeyResponse {
|
|
|
389
398
|
data: CardIssuingEphemeralKey;
|
|
390
399
|
}
|
|
391
400
|
|
|
401
|
+
/**
|
|
402
|
+
* The funding wallet's shares in an ERC-4626 Earn vault, which the card spends
|
|
403
|
+
* instead of its `asset` balance.
|
|
404
|
+
*/
|
|
405
|
+
export interface CardIssuingErc4626VaultFundingSource {
|
|
406
|
+
/**
|
|
407
|
+
* Earn provider of an ERC-4626 vault a card can spend.
|
|
408
|
+
*/
|
|
409
|
+
provider: CardIssuingErc4626VaultProvider;
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Whether this is the source the card spends right now.
|
|
413
|
+
*/
|
|
414
|
+
selected: boolean;
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* EVM address: 0x followed by 40 hex characters. Preserves input case.
|
|
418
|
+
*/
|
|
419
|
+
share_token_address: SharedAPI.EvmAddress;
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* EVM address: 0x followed by 40 hex characters. Preserves input case.
|
|
423
|
+
*/
|
|
424
|
+
spender_address: SharedAPI.EvmAddress;
|
|
425
|
+
|
|
426
|
+
type: 'erc4626_vault';
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Earn provider of an ERC-4626 vault a card can spend.
|
|
431
|
+
*/
|
|
432
|
+
export type CardIssuingErc4626VaultProvider = 'morpho' | 'aave';
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Funds a card can spend, where `selected`, not list position, marks the one it
|
|
436
|
+
* spends.
|
|
437
|
+
*/
|
|
438
|
+
export type CardIssuingFundingSource =
|
|
439
|
+
| CardIssuingWalletFundingSource
|
|
440
|
+
| CardIssuingErc4626VaultFundingSource
|
|
441
|
+
| CardIssuingTempoEarnVaultFundingSource;
|
|
442
|
+
|
|
392
443
|
/**
|
|
393
444
|
* Query parameters for listing cards bound to the authenticated Privy user.
|
|
394
445
|
*/
|
|
@@ -476,6 +527,40 @@ export interface CardIssuingStatementQueryParams {
|
|
|
476
527
|
environment: SharedAPI.IntegrationEnvironment;
|
|
477
528
|
}
|
|
478
529
|
|
|
530
|
+
/**
|
|
531
|
+
* The funding wallet's shares in a Tempo Earn vault, which a card that also lists
|
|
532
|
+
* its wallet can switch to and back from.
|
|
533
|
+
*/
|
|
534
|
+
export interface CardIssuingTempoEarnVaultFundingSource {
|
|
535
|
+
/**
|
|
536
|
+
* EVM address: 0x followed by 40 hex characters. Preserves input case.
|
|
537
|
+
*/
|
|
538
|
+
asset_address: SharedAPI.EvmAddress;
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Whether the card spends this vault right now; neither it nor the wallet is when
|
|
542
|
+
* the wallet chose a vault outside the app's Earn vaults.
|
|
543
|
+
*/
|
|
544
|
+
selected: boolean;
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* EVM address: 0x followed by 40 hex characters. Preserves input case.
|
|
548
|
+
*/
|
|
549
|
+
share_token_address: SharedAPI.EvmAddress;
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* EVM address: 0x followed by 40 hex characters. Preserves input case.
|
|
553
|
+
*/
|
|
554
|
+
spender_address: SharedAPI.EvmAddress;
|
|
555
|
+
|
|
556
|
+
type: 'tempo_earn_vault';
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* EVM address: 0x followed by 40 hex characters. Preserves input case.
|
|
560
|
+
*/
|
|
561
|
+
vault_address: SharedAPI.EvmAddress;
|
|
562
|
+
}
|
|
563
|
+
|
|
479
564
|
/**
|
|
480
565
|
* Card activity
|
|
481
566
|
*/
|
|
@@ -544,6 +629,18 @@ export interface CardIssuingUpdateCardInput {
|
|
|
544
629
|
status?: CardIssuingCardStatus;
|
|
545
630
|
}
|
|
546
631
|
|
|
632
|
+
/**
|
|
633
|
+
* The funding wallet's `asset` balance.
|
|
634
|
+
*/
|
|
635
|
+
export interface CardIssuingWalletFundingSource {
|
|
636
|
+
/**
|
|
637
|
+
* Whether this is the source the card spends right now.
|
|
638
|
+
*/
|
|
639
|
+
selected: boolean;
|
|
640
|
+
|
|
641
|
+
type: 'wallet';
|
|
642
|
+
}
|
|
643
|
+
|
|
547
644
|
export declare namespace Cards {
|
|
548
645
|
export {
|
|
549
646
|
type CardIssuingBankAgreement as CardIssuingBankAgreement,
|
|
@@ -576,6 +673,9 @@ export declare namespace Cards {
|
|
|
576
673
|
type CardIssuingEphemeralKey as CardIssuingEphemeralKey,
|
|
577
674
|
type CardIssuingEphemeralKeyRequestBody as CardIssuingEphemeralKeyRequestBody,
|
|
578
675
|
type CardIssuingEphemeralKeyResponse as CardIssuingEphemeralKeyResponse,
|
|
676
|
+
type CardIssuingErc4626VaultFundingSource as CardIssuingErc4626VaultFundingSource,
|
|
677
|
+
type CardIssuingErc4626VaultProvider as CardIssuingErc4626VaultProvider,
|
|
678
|
+
type CardIssuingFundingSource as CardIssuingFundingSource,
|
|
579
679
|
type CardIssuingListCardsInput as CardIssuingListCardsInput,
|
|
580
680
|
type CardIssuingListTransactionsInput as CardIssuingListTransactionsInput,
|
|
581
681
|
type CardIssuingMerchant as CardIssuingMerchant,
|
|
@@ -583,9 +683,11 @@ export declare namespace Cards {
|
|
|
583
683
|
type CardIssuingReplaceCardRequestBody as CardIssuingReplaceCardRequestBody,
|
|
584
684
|
type CardIssuingReplacementReason as CardIssuingReplacementReason,
|
|
585
685
|
type CardIssuingStatementQueryParams as CardIssuingStatementQueryParams,
|
|
686
|
+
type CardIssuingTempoEarnVaultFundingSource as CardIssuingTempoEarnVaultFundingSource,
|
|
586
687
|
type CardIssuingTransactionResponse as CardIssuingTransactionResponse,
|
|
587
688
|
type CardIssuingTransactionStatus as CardIssuingTransactionStatus,
|
|
588
689
|
type CardIssuingTransactionsResponse as CardIssuingTransactionsResponse,
|
|
589
690
|
type CardIssuingUpdateCardInput as CardIssuingUpdateCardInput,
|
|
691
|
+
type CardIssuingWalletFundingSource as CardIssuingWalletFundingSource,
|
|
590
692
|
};
|
|
591
693
|
}
|
|
@@ -96,7 +96,7 @@ export interface BridgeBrlFiatVirtualAccountDepositInstructions {
|
|
|
96
96
|
/**
|
|
97
97
|
* Supported destination stablecoin assets for fiat-to-crypto transfers.
|
|
98
98
|
*/
|
|
99
|
-
export type BridgeDestinationAsset = 'usdb' | 'usdc' | 'usdt' | 'dai' | 'pyusd' | 'eurc';
|
|
99
|
+
export type BridgeDestinationAsset = 'usdb' | 'usdc' | 'usdt' | 'dai' | 'pyusd' | 'eurc' | 'ousd';
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
102
|
* The deposit instructions for a virtual account.
|
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
|
*/
|
|
@@ -618,6 +692,12 @@ export interface KYBAssociatedPerson {
|
|
|
618
692
|
*/
|
|
619
693
|
residential_address: VerificationAddress;
|
|
620
694
|
|
|
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 & {});
|
|
700
|
+
|
|
621
701
|
/**
|
|
622
702
|
* Supporting documents for this person, such as proof of address.
|
|
623
703
|
*/
|
|
@@ -628,6 +708,12 @@ export interface KYBAssociatedPerson {
|
|
|
628
708
|
*/
|
|
629
709
|
is_director?: boolean;
|
|
630
710
|
|
|
711
|
+
/**
|
|
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.
|
|
714
|
+
*/
|
|
715
|
+
kyc_screen?: KyxScreen;
|
|
716
|
+
|
|
631
717
|
/**
|
|
632
718
|
* Legal middle name.
|
|
633
719
|
*/
|
|
@@ -638,6 +724,12 @@ export interface KYBAssociatedPerson {
|
|
|
638
724
|
*/
|
|
639
725
|
nationalities?: Array<string>;
|
|
640
726
|
|
|
727
|
+
/**
|
|
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.
|
|
730
|
+
*/
|
|
731
|
+
ofac_screen?: KyxScreen;
|
|
732
|
+
|
|
641
733
|
/**
|
|
642
734
|
* Percentage of the business this person owns.
|
|
643
735
|
*/
|
|
@@ -682,6 +774,21 @@ export interface KYBAssociatedPerson {
|
|
|
682
774
|
* A postal address used in KYC and KYB data submission.
|
|
683
775
|
*/
|
|
684
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 & {});
|
|
685
792
|
}
|
|
686
793
|
|
|
687
794
|
/**
|
|
@@ -1064,6 +1171,18 @@ export interface KYBSubmitData {
|
|
|
1064
1171
|
*/
|
|
1065
1172
|
is_dao?: boolean;
|
|
1066
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
|
+
|
|
1067
1186
|
/**
|
|
1068
1187
|
* Whether the business operates in prohibited jurisdictions.
|
|
1069
1188
|
*/
|
|
@@ -1141,6 +1260,22 @@ export interface KYBSubmitData {
|
|
|
1141
1260
|
* A postal address used in KYC and KYB data submission.
|
|
1142
1261
|
*/
|
|
1143
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 & {});
|
|
1144
1279
|
}
|
|
1145
1280
|
|
|
1146
1281
|
/**
|
|
@@ -1290,6 +1425,11 @@ export interface KYCStatusResponse {
|
|
|
1290
1425
|
* Terms of Service acceptance status for a KYC or KYB flow.
|
|
1291
1426
|
*/
|
|
1292
1427
|
tos: KyxTosStatusDetail;
|
|
1428
|
+
|
|
1429
|
+
/**
|
|
1430
|
+
* Stripe Issuing cardholder ID assigned by Bridge for this user.
|
|
1431
|
+
*/
|
|
1432
|
+
stripe_cardholder_id?: string;
|
|
1293
1433
|
}
|
|
1294
1434
|
|
|
1295
1435
|
/**
|
|
@@ -1316,6 +1456,12 @@ export interface KYCSubmitData {
|
|
|
1316
1456
|
*/
|
|
1317
1457
|
identifying_information?: Array<VerificationDocument>;
|
|
1318
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
|
+
|
|
1319
1465
|
/**
|
|
1320
1466
|
* Legal last name.
|
|
1321
1467
|
*/
|
|
@@ -1337,6 +1483,12 @@ export interface KYCSubmitData {
|
|
|
1337
1483
|
*/
|
|
1338
1484
|
nonresident_alien_attestation?: boolean;
|
|
1339
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
|
+
|
|
1340
1492
|
/**
|
|
1341
1493
|
* Phone number in E.164 format.
|
|
1342
1494
|
*/
|
|
@@ -1347,6 +1499,12 @@ export interface KYCSubmitData {
|
|
|
1347
1499
|
*/
|
|
1348
1500
|
residential_address?: VerificationAddress;
|
|
1349
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
|
+
|
|
1350
1508
|
/**
|
|
1351
1509
|
* Latin-1 transliteration of the first name. Required for non-Latin-1 names.
|
|
1352
1510
|
*/
|
|
@@ -1366,6 +1524,24 @@ export interface KYCSubmitData {
|
|
|
1366
1524
|
* A postal address used in KYC and KYB data submission.
|
|
1367
1525
|
*/
|
|
1368
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 & {});
|
|
1369
1545
|
}
|
|
1370
1546
|
|
|
1371
1547
|
/**
|
|
@@ -1432,6 +1608,11 @@ export type KyxCapabilityStatus = string;
|
|
|
1432
1608
|
* An endorsement with its approval status and missing requirements.
|
|
1433
1609
|
*/
|
|
1434
1610
|
export interface KyxEndorsement {
|
|
1611
|
+
/**
|
|
1612
|
+
* Provider issue codes, or null if none.
|
|
1613
|
+
*/
|
|
1614
|
+
issues: Array<string> | null;
|
|
1615
|
+
|
|
1435
1616
|
/**
|
|
1436
1617
|
* Missing requirements, or null if complete.
|
|
1437
1618
|
*/
|
|
@@ -1473,6 +1654,27 @@ export type KyxProvider = 'bridge';
|
|
|
1473
1654
|
*/
|
|
1474
1655
|
export type KyxProviderStatus = string;
|
|
1475
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
|
+
|
|
1476
1678
|
/**
|
|
1477
1679
|
* Request body for initiating Terms of Service acceptance.
|
|
1478
1680
|
*/
|
|
@@ -1785,8 +1987,27 @@ export interface PayoutDestination {
|
|
|
1785
1987
|
* The ID of a previously registered external fiat account to pay out to.
|
|
1786
1988
|
*/
|
|
1787
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;
|
|
1788
1996
|
}
|
|
1789
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
|
+
|
|
1790
2011
|
/**
|
|
1791
2012
|
* The source crypto asset, chain, and amount for a payout.
|
|
1792
2013
|
*/
|
|
@@ -1895,11 +2116,15 @@ export declare namespace Fiat {
|
|
|
1895
2116
|
type CreateFiatDepositAccountRequestBody as CreateFiatDepositAccountRequestBody,
|
|
1896
2117
|
type CreateFiatDepositAccountSource as CreateFiatDepositAccountSource,
|
|
1897
2118
|
type CreatePayoutRequestBody as CreatePayoutRequestBody,
|
|
2119
|
+
type DeveloperFeePercent as DeveloperFeePercent,
|
|
1898
2120
|
type ExternalFiatAccount as ExternalFiatAccount,
|
|
1899
2121
|
type ExternalFiatAccountAddress as ExternalFiatAccountAddress,
|
|
2122
|
+
type ExternalFiatAccountBusinessOwner as ExternalFiatAccountBusinessOwner,
|
|
1900
2123
|
type ExternalFiatAccountData as ExternalFiatAccountData,
|
|
1901
2124
|
type ExternalFiatAccountGBData as ExternalFiatAccountGBData,
|
|
1902
2125
|
type ExternalFiatAccountIbanData as ExternalFiatAccountIbanData,
|
|
2126
|
+
type ExternalFiatAccountIndividualOwner as ExternalFiatAccountIndividualOwner,
|
|
2127
|
+
type ExternalFiatAccountOwner as ExternalFiatAccountOwner,
|
|
1903
2128
|
type ExternalFiatAccountPixData as ExternalFiatAccountPixData,
|
|
1904
2129
|
type ExternalFiatAccountResponse as ExternalFiatAccountResponse,
|
|
1905
2130
|
type ExternalFiatAccountSwiftCategory as ExternalFiatAccountSwiftCategory,
|
|
@@ -1946,6 +2171,8 @@ export declare namespace Fiat {
|
|
|
1946
2171
|
type KyxEnvironment as KyxEnvironment,
|
|
1947
2172
|
type KyxProvider as KyxProvider,
|
|
1948
2173
|
type KyxProviderStatus as KyxProviderStatus,
|
|
2174
|
+
type KyxScreen as KyxScreen,
|
|
2175
|
+
type KyxScreenResult as KyxScreenResult,
|
|
1949
2176
|
type KyxTosRequestBody as KyxTosRequestBody,
|
|
1950
2177
|
type KyxTosResponse as KyxTosResponse,
|
|
1951
2178
|
type KyxTosStatus as KyxTosStatus,
|
|
@@ -1967,6 +2194,7 @@ export declare namespace Fiat {
|
|
|
1967
2194
|
type OrganizationExternalFiatAccount as OrganizationExternalFiatAccount,
|
|
1968
2195
|
type OrganizationExternalFiatAccountResponse as OrganizationExternalFiatAccountResponse,
|
|
1969
2196
|
type PayoutDestination as PayoutDestination,
|
|
2197
|
+
type PayoutPaymentRail as PayoutPaymentRail,
|
|
1970
2198
|
type PayoutSource as PayoutSource,
|
|
1971
2199
|
type VerificationAddress as VerificationAddress,
|
|
1972
2200
|
type VerificationDocument as VerificationDocument,
|