@privy-io/api-types 0.21.0 → 0.23.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 (82) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/client.d.mts +12 -12
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +12 -12
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/accounts.d.mts +0 -8
  10. package/resources/accounts.d.mts.map +1 -1
  11. package/resources/accounts.d.ts +0 -8
  12. package/resources/accounts.d.ts.map +1 -1
  13. package/resources/cards.d.mts +26 -9
  14. package/resources/cards.d.mts.map +1 -1
  15. package/resources/cards.d.ts +26 -9
  16. package/resources/cards.d.ts.map +1 -1
  17. package/resources/fiat.d.mts +525 -61
  18. package/resources/fiat.d.mts.map +1 -1
  19. package/resources/fiat.d.ts +525 -61
  20. package/resources/fiat.d.ts.map +1 -1
  21. package/resources/index.d.mts +6 -6
  22. package/resources/index.d.mts.map +1 -1
  23. package/resources/index.d.ts +6 -6
  24. package/resources/index.d.ts.map +1 -1
  25. package/resources/index.js.map +1 -1
  26. package/resources/index.mjs.map +1 -1
  27. package/resources/shared.d.mts +23 -1
  28. package/resources/shared.d.mts.map +1 -1
  29. package/resources/shared.d.ts +23 -1
  30. package/resources/shared.d.ts.map +1 -1
  31. package/resources/swaps.d.mts +2 -1
  32. package/resources/swaps.d.mts.map +1 -1
  33. package/resources/swaps.d.ts +2 -1
  34. package/resources/swaps.d.ts.map +1 -1
  35. package/resources/wallet-automations.d.mts +100 -6
  36. package/resources/wallet-automations.d.mts.map +1 -1
  37. package/resources/wallet-automations.d.ts +100 -6
  38. package/resources/wallet-automations.d.ts.map +1 -1
  39. package/resources/wallet-automations.js.map +1 -1
  40. package/resources/wallet-automations.mjs.map +1 -1
  41. package/resources/wallets/actions.d.mts +44 -4
  42. package/resources/wallets/actions.d.mts.map +1 -1
  43. package/resources/wallets/actions.d.ts +44 -4
  44. package/resources/wallets/actions.d.ts.map +1 -1
  45. package/resources/wallets/balance.d.mts +1 -1
  46. package/resources/wallets/balance.d.mts.map +1 -1
  47. package/resources/wallets/balance.d.ts +1 -1
  48. package/resources/wallets/balance.d.ts.map +1 -1
  49. package/resources/wallets/index.d.mts +2 -2
  50. package/resources/wallets/index.d.mts.map +1 -1
  51. package/resources/wallets/index.d.ts +2 -2
  52. package/resources/wallets/index.d.ts.map +1 -1
  53. package/resources/wallets/index.js.map +1 -1
  54. package/resources/wallets/index.mjs.map +1 -1
  55. package/resources/wallets/wallets.d.mts +367 -13
  56. package/resources/wallets/wallets.d.mts.map +1 -1
  57. package/resources/wallets/wallets.d.ts +367 -13
  58. package/resources/wallets/wallets.d.ts.map +1 -1
  59. package/resources/wallets/wallets.js.map +1 -1
  60. package/resources/wallets/wallets.mjs.map +1 -1
  61. package/resources/webhooks.d.mts +22 -15
  62. package/resources/webhooks.d.mts.map +1 -1
  63. package/resources/webhooks.d.ts +22 -15
  64. package/resources/webhooks.d.ts.map +1 -1
  65. package/src/client.ts +108 -6
  66. package/src/resources/accounts.ts +0 -10
  67. package/src/resources/cards.ts +29 -8
  68. package/src/resources/fiat.ts +637 -63
  69. package/src/resources/index.ts +54 -3
  70. package/src/resources/shared.ts +32 -0
  71. package/src/resources/swaps.ts +2 -1
  72. package/src/resources/wallet-automations.ts +120 -6
  73. package/src/resources/wallets/actions.ts +53 -3
  74. package/src/resources/wallets/balance.ts +9 -0
  75. package/src/resources/wallets/index.ts +26 -0
  76. package/src/resources/wallets/wallets.ts +469 -8
  77. package/src/resources/webhooks.ts +27 -16
  78. package/src/version.ts +1 -1
  79. package/version.d.mts +1 -1
  80. package/version.d.ts +1 -1
  81. package/version.js +1 -1
  82. package/version.mjs +1 -1
@@ -1306,10 +1306,10 @@ export interface TransactionStillPendingWebhookPayload {
1306
1306
  }
1307
1307
 
1308
1308
  /**
1309
- * Payload for the usage.cross_chain_fee.recorded webhook event (Privy fee on a
1310
- * cross-chain transfer or swap).
1309
+ * Payload for the usage.gas_sponsorship.recorded webhook event (sponsored network
1310
+ * gas).
1311
1311
  */
1312
- export interface UsageCrossChainFeeRecordedWebhookPayload {
1312
+ export interface UsageGasSponsorshipRecordedWebhookPayload {
1313
1313
  amount_usd: string;
1314
1314
 
1315
1315
  /**
@@ -1330,14 +1330,19 @@ export interface UsageCrossChainFeeRecordedWebhookPayload {
1330
1330
  /**
1331
1331
  * The type of webhook event.
1332
1332
  */
1333
- type: 'usage.cross_chain_fee.recorded';
1333
+ type: 'usage.gas_sponsorship.recorded';
1334
1334
  }
1335
1335
 
1336
1336
  /**
1337
- * Payload for the usage.gas_sponsorship.recorded webhook event (sponsored network
1338
- * gas).
1337
+ * The type of operation that incurred a usage charge.
1339
1338
  */
1340
- export interface UsageGasSponsorshipRecordedWebhookPayload {
1339
+ export type UsageSourceType = 'wallet-action-transfer' | 'wallet-action-swap' | 'rpc';
1340
+
1341
+ /**
1342
+ * Payload for the usage.swap_provider_fee.recorded webhook event (swap provider
1343
+ * fee on a cross-chain transfer or swap).
1344
+ */
1345
+ export interface UsageSwapProviderFeeRecordedWebhookPayload {
1341
1346
  amount_usd: string;
1342
1347
 
1343
1348
  /**
@@ -1358,14 +1363,9 @@ export interface UsageGasSponsorshipRecordedWebhookPayload {
1358
1363
  /**
1359
1364
  * The type of webhook event.
1360
1365
  */
1361
- type: 'usage.gas_sponsorship.recorded';
1366
+ type: 'usage.swap_provider_fee.recorded';
1362
1367
  }
1363
1368
 
1364
- /**
1365
- * The type of operation that incurred a usage charge.
1366
- */
1367
- export type UsageSourceType = 'wallet-action-transfer' | 'wallet-action-swap' | 'rpc';
1368
-
1369
1369
  /**
1370
1370
  * Payload for the user.authenticated webhook event.
1371
1371
  */
@@ -4048,7 +4048,17 @@ export type WalletFundsAsset =
4048
4048
  | WalletFundsErc20Asset
4049
4049
  | WalletFundsSplAsset
4050
4050
  | WalletFundsSacAsset
4051
- | WalletFundsTrc20Asset;
4051
+ | WalletFundsTrc20Asset
4052
+ | WalletFundsBtknAsset;
4053
+
4054
+ /**
4055
+ * A token issued on Spark, identified by its BTKN identifier.
4056
+ */
4057
+ export interface WalletFundsBtknAsset {
4058
+ identifier: string;
4059
+
4060
+ type: 'btkn';
4061
+ }
4052
4062
 
4053
4063
  /**
4054
4064
  * An ERC-20 token asset.
@@ -4220,7 +4230,7 @@ export type WebhookPayload =
4220
4230
  | YieldClaimConfirmedWebhookPayload
4221
4231
  | UserOperationCompletedWebhookPayload
4222
4232
  | UsageGasSponsorshipRecordedWebhookPayload
4223
- | UsageCrossChainFeeRecordedWebhookPayload
4233
+ | UsageSwapProviderFeeRecordedWebhookPayload
4224
4234
  | IntentCreatedWebhookPayload
4225
4235
  | IntentAuthorizedWebhookPayload
4226
4236
  | IntentRejectedWebhookPayload
@@ -4379,9 +4389,9 @@ export declare namespace Webhooks {
4379
4389
  type TransactionProviderErrorWebhookPayload as TransactionProviderErrorWebhookPayload,
4380
4390
  type TransactionReplacedWebhookPayload as TransactionReplacedWebhookPayload,
4381
4391
  type TransactionStillPendingWebhookPayload as TransactionStillPendingWebhookPayload,
4382
- type UsageCrossChainFeeRecordedWebhookPayload as UsageCrossChainFeeRecordedWebhookPayload,
4383
4392
  type UsageGasSponsorshipRecordedWebhookPayload as UsageGasSponsorshipRecordedWebhookPayload,
4384
4393
  type UsageSourceType as UsageSourceType,
4394
+ type UsageSwapProviderFeeRecordedWebhookPayload as UsageSwapProviderFeeRecordedWebhookPayload,
4385
4395
  type UserAuthenticatedWebhookPayload as UserAuthenticatedWebhookPayload,
4386
4396
  type UserCreatedWebhookPayload as UserCreatedWebhookPayload,
4387
4397
  type UserDeletedWebhookPayload as UserDeletedWebhookPayload,
@@ -4426,6 +4436,7 @@ export declare namespace Webhooks {
4426
4436
  type WalletArchivedWebhookPayload as WalletArchivedWebhookPayload,
4427
4437
  type WalletAutomationSubmittedWebhookPayload as WalletAutomationSubmittedWebhookPayload,
4428
4438
  type WalletFundsAsset as WalletFundsAsset,
4439
+ type WalletFundsBtknAsset as WalletFundsBtknAsset,
4429
4440
  type WalletFundsErc20Asset as WalletFundsErc20Asset,
4430
4441
  type WalletFundsNativeTokenAsset as WalletFundsNativeTokenAsset,
4431
4442
  type WalletFundsSacAsset as WalletFundsSacAsset,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.21.0'; // x-release-please-version
1
+ export const VERSION = '0.23.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.21.0";
1
+ export declare const VERSION = "0.23.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.21.0";
1
+ export declare const VERSION = "0.23.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.21.0'; // x-release-please-version
4
+ exports.VERSION = '0.23.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.21.0'; // x-release-please-version
1
+ export const VERSION = '0.23.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map