@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.
Files changed (148) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/client.d.mts +16 -16
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +16 -16
  5. package/client.d.ts.map +1 -1
  6. package/client.js +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +1 -1
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/accounts.d.mts +0 -8
  12. package/resources/accounts.d.mts.map +1 -1
  13. package/resources/accounts.d.ts +0 -8
  14. package/resources/accounts.d.ts.map +1 -1
  15. package/resources/aggregations.d.mts +1 -1
  16. package/resources/aggregations.d.mts.map +1 -1
  17. package/resources/aggregations.d.ts +1 -1
  18. package/resources/aggregations.d.ts.map +1 -1
  19. package/resources/apps.d.mts +88 -1
  20. package/resources/apps.d.mts.map +1 -1
  21. package/resources/apps.d.ts +88 -1
  22. package/resources/apps.d.ts.map +1 -1
  23. package/resources/cards.d.mts +87 -6
  24. package/resources/cards.d.mts.map +1 -1
  25. package/resources/cards.d.ts +87 -6
  26. package/resources/cards.d.ts.map +1 -1
  27. package/resources/client-auth.d.mts +1 -1
  28. package/resources/client-auth.d.mts.map +1 -1
  29. package/resources/client-auth.d.ts +1 -1
  30. package/resources/client-auth.d.ts.map +1 -1
  31. package/resources/fiat.d.mts +701 -61
  32. package/resources/fiat.d.mts.map +1 -1
  33. package/resources/fiat.d.ts +701 -61
  34. package/resources/fiat.d.ts.map +1 -1
  35. package/resources/index.d.mts +8 -8
  36. package/resources/index.d.mts.map +1 -1
  37. package/resources/index.d.ts +8 -8
  38. package/resources/index.d.ts.map +1 -1
  39. package/resources/index.js +1 -1
  40. package/resources/index.js.map +1 -1
  41. package/resources/index.mjs +1 -1
  42. package/resources/index.mjs.map +1 -1
  43. package/resources/intents.d.mts +82 -4
  44. package/resources/intents.d.mts.map +1 -1
  45. package/resources/intents.d.ts +82 -4
  46. package/resources/intents.d.ts.map +1 -1
  47. package/resources/key-quorums.d.mts +14 -1
  48. package/resources/key-quorums.d.mts.map +1 -1
  49. package/resources/key-quorums.d.ts +14 -1
  50. package/resources/key-quorums.d.ts.map +1 -1
  51. package/resources/policies/condition-sets.d.mts +21 -0
  52. package/resources/policies/condition-sets.d.mts.map +1 -0
  53. package/resources/policies/condition-sets.d.ts +21 -0
  54. package/resources/policies/condition-sets.d.ts.map +1 -0
  55. package/resources/policies/condition-sets.js +9 -0
  56. package/resources/policies/condition-sets.js.map +1 -0
  57. package/resources/policies/condition-sets.mjs +5 -0
  58. package/resources/policies/condition-sets.mjs.map +1 -0
  59. package/resources/policies/index.d.mts +3 -0
  60. package/resources/policies/index.d.mts.map +1 -0
  61. package/resources/policies/index.d.ts +3 -0
  62. package/resources/policies/index.d.ts.map +1 -0
  63. package/resources/policies/index.js +9 -0
  64. package/resources/policies/index.js.map +1 -0
  65. package/resources/policies/index.mjs +4 -0
  66. package/resources/policies/index.mjs.map +1 -0
  67. package/resources/policies/policies.d.mts +775 -0
  68. package/resources/policies/policies.d.mts.map +1 -0
  69. package/resources/policies/policies.d.ts +775 -0
  70. package/resources/policies/policies.d.ts.map +1 -0
  71. package/resources/policies/policies.js +17 -0
  72. package/resources/policies/policies.js.map +1 -0
  73. package/resources/policies/policies.mjs +12 -0
  74. package/resources/policies/policies.mjs.map +1 -0
  75. package/resources/policies.d.mts +1 -698
  76. package/resources/policies.d.mts.map +1 -1
  77. package/resources/policies.d.ts +1 -698
  78. package/resources/policies.d.ts.map +1 -1
  79. package/resources/policies.js +2 -5
  80. package/resources/policies.js.map +1 -1
  81. package/resources/policies.mjs +1 -3
  82. package/resources/policies.mjs.map +1 -1
  83. package/resources/users.d.mts +25 -20
  84. package/resources/users.d.mts.map +1 -1
  85. package/resources/users.d.ts +25 -20
  86. package/resources/users.d.ts.map +1 -1
  87. package/resources/wallet-automations.d.mts +14 -8
  88. package/resources/wallet-automations.d.mts.map +1 -1
  89. package/resources/wallet-automations.d.ts +14 -8
  90. package/resources/wallet-automations.d.ts.map +1 -1
  91. package/resources/wallets/actions.d.mts +45 -11
  92. package/resources/wallets/actions.d.mts.map +1 -1
  93. package/resources/wallets/actions.d.ts +45 -11
  94. package/resources/wallets/actions.d.ts.map +1 -1
  95. package/resources/wallets/balance.d.mts +3 -3
  96. package/resources/wallets/balance.d.mts.map +1 -1
  97. package/resources/wallets/balance.d.ts +3 -3
  98. package/resources/wallets/balance.d.ts.map +1 -1
  99. package/resources/wallets/index.d.mts +2 -2
  100. package/resources/wallets/index.d.mts.map +1 -1
  101. package/resources/wallets/index.d.ts +2 -2
  102. package/resources/wallets/index.d.ts.map +1 -1
  103. package/resources/wallets/index.js.map +1 -1
  104. package/resources/wallets/index.mjs.map +1 -1
  105. package/resources/wallets/transactions.d.mts +4 -1
  106. package/resources/wallets/transactions.d.mts.map +1 -1
  107. package/resources/wallets/transactions.d.ts +4 -1
  108. package/resources/wallets/transactions.d.ts.map +1 -1
  109. package/resources/wallets/wallets.d.mts +287 -17
  110. package/resources/wallets/wallets.d.mts.map +1 -1
  111. package/resources/wallets/wallets.d.ts +287 -17
  112. package/resources/wallets/wallets.d.ts.map +1 -1
  113. package/resources/wallets/wallets.js.map +1 -1
  114. package/resources/wallets/wallets.mjs.map +1 -1
  115. package/resources/webhooks.d.mts +76 -14
  116. package/resources/webhooks.d.mts.map +1 -1
  117. package/resources/webhooks.d.ts +76 -14
  118. package/resources/webhooks.d.ts.map +1 -1
  119. package/resources/yield.d.mts +2 -2
  120. package/resources/yield.d.ts +2 -2
  121. package/src/client.ts +196 -62
  122. package/src/resources/accounts.ts +0 -10
  123. package/src/resources/aggregations.ts +1 -1
  124. package/src/resources/apps.ts +126 -0
  125. package/src/resources/cards.ts +112 -5
  126. package/src/resources/client-auth.ts +1 -1
  127. package/src/resources/fiat.ts +938 -136
  128. package/src/resources/index.ts +71 -4
  129. package/src/resources/intents.ts +114 -3
  130. package/src/resources/key-quorums.ts +16 -0
  131. package/src/resources/policies/condition-sets.ts +25 -0
  132. package/src/resources/policies/index.ts +63 -0
  133. package/src/resources/policies/policies.ts +1122 -0
  134. package/src/resources/policies.ts +1 -1023
  135. package/src/resources/users.ts +31 -25
  136. package/src/resources/wallet-automations.ts +16 -9
  137. package/src/resources/wallets/actions.ts +54 -10
  138. package/src/resources/wallets/balance.ts +3 -0
  139. package/src/resources/wallets/index.ts +18 -0
  140. package/src/resources/wallets/transactions.ts +4 -0
  141. package/src/resources/wallets/wallets.ts +358 -10
  142. package/src/resources/webhooks.ts +93 -15
  143. package/src/resources/yield.ts +2 -2
  144. package/src/version.ts +1 -1
  145. package/version.d.mts +1 -1
  146. package/version.d.ts +1 -1
  147. package/version.js +1 -1
  148. package/version.mjs +1 -1
@@ -242,6 +242,122 @@ export interface Currency {
242
242
  */
243
243
  export type CurrencyAsset = 'native-currency' | 'USDC';
244
244
 
245
+ /**
246
+ * Denylist input for an email domain, which blocks every email address on the
247
+ * domain.
248
+ */
249
+ export interface DenylistEmailDomainInput {
250
+ type: 'emailDomain';
251
+
252
+ /**
253
+ * An email domain.
254
+ */
255
+ value: EmailDomain;
256
+ }
257
+
258
+ /**
259
+ * Denylist input for an email address, which also blocks its `+` and `.` variants.
260
+ */
261
+ export interface DenylistEmailInput {
262
+ type: 'email';
263
+
264
+ value: string;
265
+ }
266
+
267
+ /**
268
+ * A denylist entry for an app.
269
+ */
270
+ export interface DenylistEntry {
271
+ /**
272
+ * The ID of the denylist entry.
273
+ */
274
+ id: string;
275
+
276
+ /**
277
+ * The type of identifier a denylist rule blocks.
278
+ */
279
+ rule_type: DenylistRuleType;
280
+
281
+ /**
282
+ * The blocked identifier.
283
+ */
284
+ value: string;
285
+ }
286
+
287
+ /**
288
+ * Input for adding a denylist entry. Discriminated by type.
289
+ */
290
+ export type DenylistEntryCreateRequestBody =
291
+ | DenylistEmailInput
292
+ | DenylistEmailDomainInput
293
+ | DenylistPhoneInput
294
+ | DenylistEthereumAddressInput
295
+ | DenylistSolanaAddressInput;
296
+
297
+ /**
298
+ * Input for removing a denylist entry.
299
+ */
300
+ export interface DenylistEntryDeleteRequestBody {
301
+ /**
302
+ * The ID of the denylist entry to remove.
303
+ */
304
+ id: string;
305
+ }
306
+
307
+ /**
308
+ * Denylist input for an Ethereum wallet address, which blocks SIWE logins.
309
+ */
310
+ export interface DenylistEthereumAddressInput {
311
+ type: 'ethereumAddress';
312
+
313
+ value: string;
314
+ }
315
+
316
+ /**
317
+ * A page of denylist entries for an app.
318
+ */
319
+ export interface DenylistListResponse {
320
+ /**
321
+ * Denylist entries in this page.
322
+ */
323
+ data: Array<DenylistEntry>;
324
+
325
+ /**
326
+ * Cursor for the next page, which is null only when this page is empty, so keep
327
+ * paging until `data` is empty.
328
+ */
329
+ next_cursor: string | null;
330
+ }
331
+
332
+ /**
333
+ * Denylist input for a phone number.
334
+ */
335
+ export interface DenylistPhoneInput {
336
+ type: 'phone';
337
+
338
+ value: string;
339
+ }
340
+
341
+ /**
342
+ * The type of identifier a denylist rule blocks.
343
+ */
344
+ export type DenylistRuleType =
345
+ | 'email'
346
+ | 'emailDomain'
347
+ | 'phone'
348
+ | 'ethereumAddress'
349
+ | 'solanaAddress'
350
+ | (string & {});
351
+
352
+ /**
353
+ * Denylist input for a Solana wallet address, which blocks SIWS logins.
354
+ */
355
+ export interface DenylistSolanaAddressInput {
356
+ type: 'solanaAddress';
357
+
358
+ value: string;
359
+ }
360
+
245
361
  /**
246
362
  * An email domain.
247
363
  */
@@ -490,6 +606,16 @@ export declare namespace Apps {
490
606
  type CaptchaProvider as CaptchaProvider,
491
607
  type Currency as Currency,
492
608
  type CurrencyAsset as CurrencyAsset,
609
+ type DenylistEmailDomainInput as DenylistEmailDomainInput,
610
+ type DenylistEmailInput as DenylistEmailInput,
611
+ type DenylistEntry as DenylistEntry,
612
+ type DenylistEntryCreateRequestBody as DenylistEntryCreateRequestBody,
613
+ type DenylistEntryDeleteRequestBody as DenylistEntryDeleteRequestBody,
614
+ type DenylistEthereumAddressInput as DenylistEthereumAddressInput,
615
+ type DenylistListResponse as DenylistListResponse,
616
+ type DenylistPhoneInput as DenylistPhoneInput,
617
+ type DenylistRuleType as DenylistRuleType,
618
+ type DenylistSolanaAddressInput as DenylistSolanaAddressInput,
493
619
  type EmailDomain as EmailDomain,
494
620
  type EmailDomainInviteInput as EmailDomainInviteInput,
495
621
  type EmailInviteInput as EmailInviteInput,
@@ -57,13 +57,12 @@ export interface CardIssuingCardResponse {
57
57
  id: string;
58
58
 
59
59
  /**
60
- * The asset the card funds from. 'usdc' on EVM and Solana, 'pathusd' on Tempo.
60
+ * The stablecoin the card settles in.
61
61
  */
62
62
  asset: string;
63
63
 
64
64
  /**
65
- * USD balance of the card funding wallet on the configured chain, or null when
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;
@@ -132,10 +136,21 @@ export interface CardIssuingCardsResponse {
132
136
  * Browser-safe configuration for rendering Stripe Issuing card details.
133
137
  */
134
138
  export interface CardIssuingConfig {
139
+ /**
140
+ * Logo for the in-app card face. Null when none is set.
141
+ */
142
+ card_logo_url: string | null;
143
+
135
144
  /**
136
145
  * Stripe publishable key for initializing Stripe.js in the browser.
137
146
  */
138
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;
139
154
  }
140
155
 
141
156
  /**
@@ -163,8 +178,7 @@ export interface CardIssuingConfigResponse {
163
178
  */
164
179
  export interface CardIssuingCreateCardInput {
165
180
  /**
166
- * The asset to fund the card. Must be 'usdc' on EVM and Solana, or 'pathusd' on
167
- * Tempo.
181
+ * The asset that funds the card on `chain_id`.
168
182
  */
169
183
  asset: string;
170
184
 
@@ -384,6 +398,48 @@ export interface CardIssuingEphemeralKeyResponse {
384
398
  data: CardIssuingEphemeralKey;
385
399
  }
386
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
+
387
443
  /**
388
444
  * Query parameters for listing cards bound to the authenticated Privy user.
389
445
  */
@@ -471,6 +527,40 @@ export interface CardIssuingStatementQueryParams {
471
527
  environment: SharedAPI.IntegrationEnvironment;
472
528
  }
473
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
+
474
564
  /**
475
565
  * Card activity
476
566
  */
@@ -539,6 +629,18 @@ export interface CardIssuingUpdateCardInput {
539
629
  status?: CardIssuingCardStatus;
540
630
  }
541
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
+
542
644
  export declare namespace Cards {
543
645
  export {
544
646
  type CardIssuingBankAgreement as CardIssuingBankAgreement,
@@ -571,6 +673,9 @@ export declare namespace Cards {
571
673
  type CardIssuingEphemeralKey as CardIssuingEphemeralKey,
572
674
  type CardIssuingEphemeralKeyRequestBody as CardIssuingEphemeralKeyRequestBody,
573
675
  type CardIssuingEphemeralKeyResponse as CardIssuingEphemeralKeyResponse,
676
+ type CardIssuingErc4626VaultFundingSource as CardIssuingErc4626VaultFundingSource,
677
+ type CardIssuingErc4626VaultProvider as CardIssuingErc4626VaultProvider,
678
+ type CardIssuingFundingSource as CardIssuingFundingSource,
574
679
  type CardIssuingListCardsInput as CardIssuingListCardsInput,
575
680
  type CardIssuingListTransactionsInput as CardIssuingListTransactionsInput,
576
681
  type CardIssuingMerchant as CardIssuingMerchant,
@@ -578,9 +683,11 @@ export declare namespace Cards {
578
683
  type CardIssuingReplaceCardRequestBody as CardIssuingReplaceCardRequestBody,
579
684
  type CardIssuingReplacementReason as CardIssuingReplacementReason,
580
685
  type CardIssuingStatementQueryParams as CardIssuingStatementQueryParams,
686
+ type CardIssuingTempoEarnVaultFundingSource as CardIssuingTempoEarnVaultFundingSource,
581
687
  type CardIssuingTransactionResponse as CardIssuingTransactionResponse,
582
688
  type CardIssuingTransactionStatus as CardIssuingTransactionStatus,
583
689
  type CardIssuingTransactionsResponse as CardIssuingTransactionsResponse,
584
690
  type CardIssuingUpdateCardInput as CardIssuingUpdateCardInput,
691
+ type CardIssuingWalletFundingSource as CardIssuingWalletFundingSource,
585
692
  };
586
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.