@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
@@ -216,6 +216,18 @@ export interface DepositFailedData {
216
216
  source: DepositStartedSource;
217
217
  }
218
218
 
219
+ /**
220
+ * Metadata identifying a refunded wallet deposit.
221
+ */
222
+ export interface DepositMetadata {
223
+ /**
224
+ * Relay details for a refunded wallet deposit.
225
+ */
226
+ details: RefundDetails;
227
+
228
+ type: 'refund';
229
+ }
230
+
219
231
  /**
220
232
  * Details of a fiat deposit that has begun processing into a deposit account.
221
233
  */
@@ -336,6 +348,11 @@ export interface FundsDepositedWebhookPayload {
336
348
  */
337
349
  bridge_metadata?: BridgeMetadata;
338
350
 
351
+ /**
352
+ * Metadata identifying a refunded wallet deposit.
353
+ */
354
+ deposit_metadata?: DepositMetadata;
355
+
339
356
  /**
340
357
  * The transaction fee paid, as a stringified bigint in the chain's native token.
341
358
  */
@@ -1009,6 +1026,58 @@ export interface PrivateKeyExportWebhookPayload {
1009
1026
  export_source?: WalletsAPI.ExportType;
1010
1027
  }
1011
1028
 
1029
+ /**
1030
+ * Relay details for a refunded wallet deposit.
1031
+ */
1032
+ export interface RefundDetails {
1033
+ /**
1034
+ * The transaction hash of the transfer that was refunded.
1035
+ */
1036
+ original_transaction_hash: string;
1037
+
1038
+ /**
1039
+ * The provider that handled the refund.
1040
+ */
1041
+ provider: 'relay';
1042
+
1043
+ /**
1044
+ * The Privy wallet action ID of the transfer that was refunded.
1045
+ */
1046
+ wallet_action_id: string;
1047
+ }
1048
+
1049
+ /**
1050
+ * Metadata identifying a refunded wallet deposit.
1051
+ */
1052
+ export interface RefundMetadata {
1053
+ /**
1054
+ * Relay details for a refunded wallet deposit.
1055
+ */
1056
+ details: RefundDetails;
1057
+
1058
+ type: 'refund';
1059
+ }
1060
+
1061
+ /**
1062
+ * Relay details for a refunded wallet deposit.
1063
+ */
1064
+ export interface RelayRefundDetails {
1065
+ /**
1066
+ * The transaction hash of the transfer that was refunded.
1067
+ */
1068
+ original_transaction_hash: string;
1069
+
1070
+ /**
1071
+ * The provider that handled the refund.
1072
+ */
1073
+ provider: 'relay';
1074
+
1075
+ /**
1076
+ * The Privy wallet action ID of the transfer that was refunded.
1077
+ */
1078
+ wallet_action_id: string;
1079
+ }
1080
+
1012
1081
  /**
1013
1082
  * Payload for the wallet.seed_phrase_export webhook event.
1014
1083
  */
@@ -1306,10 +1375,10 @@ export interface TransactionStillPendingWebhookPayload {
1306
1375
  }
1307
1376
 
1308
1377
  /**
1309
- * Payload for the usage.cross_chain_fee.recorded webhook event (Privy fee on a
1310
- * cross-chain transfer or swap).
1378
+ * Payload for the usage.gas_sponsorship.recorded webhook event (sponsored network
1379
+ * gas).
1311
1380
  */
1312
- export interface UsageCrossChainFeeRecordedWebhookPayload {
1381
+ export interface UsageGasSponsorshipRecordedWebhookPayload {
1313
1382
  amount_usd: string;
1314
1383
 
1315
1384
  /**
@@ -1330,14 +1399,19 @@ export interface UsageCrossChainFeeRecordedWebhookPayload {
1330
1399
  /**
1331
1400
  * The type of webhook event.
1332
1401
  */
1333
- type: 'usage.cross_chain_fee.recorded';
1402
+ type: 'usage.gas_sponsorship.recorded';
1334
1403
  }
1335
1404
 
1336
1405
  /**
1337
- * Payload for the usage.gas_sponsorship.recorded webhook event (sponsored network
1338
- * gas).
1406
+ * The type of operation that incurred a usage charge.
1339
1407
  */
1340
- export interface UsageGasSponsorshipRecordedWebhookPayload {
1408
+ export type UsageSourceType = 'wallet-action-transfer' | 'wallet-action-swap' | 'rpc';
1409
+
1410
+ /**
1411
+ * Payload for the usage.swap_provider_fee.recorded webhook event (swap provider
1412
+ * fee on a cross-chain transfer or swap).
1413
+ */
1414
+ export interface UsageSwapProviderFeeRecordedWebhookPayload {
1341
1415
  amount_usd: string;
1342
1416
 
1343
1417
  /**
@@ -1358,14 +1432,9 @@ export interface UsageGasSponsorshipRecordedWebhookPayload {
1358
1432
  /**
1359
1433
  * The type of webhook event.
1360
1434
  */
1361
- type: 'usage.gas_sponsorship.recorded';
1435
+ type: 'usage.swap_provider_fee.recorded';
1362
1436
  }
1363
1437
 
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
1438
  /**
1370
1439
  * Payload for the user.authenticated webhook event.
1371
1440
  */
@@ -1441,6 +1510,11 @@ export interface UserKYCUpdatedData {
1441
1510
  * Terms of service status in a KYC update event.
1442
1511
  */
1443
1512
  tos: UserKYCUpdatedTosData;
1513
+
1514
+ /**
1515
+ * Stripe Issuing cardholder ID assigned by Bridge for this user.
1516
+ */
1517
+ stripe_cardholder_id?: string;
1444
1518
  }
1445
1519
 
1446
1520
  /**
@@ -4230,7 +4304,7 @@ export type WebhookPayload =
4230
4304
  | YieldClaimConfirmedWebhookPayload
4231
4305
  | UserOperationCompletedWebhookPayload
4232
4306
  | UsageGasSponsorshipRecordedWebhookPayload
4233
- | UsageCrossChainFeeRecordedWebhookPayload
4307
+ | UsageSwapProviderFeeRecordedWebhookPayload
4234
4308
  | IntentCreatedWebhookPayload
4235
4309
  | IntentAuthorizedWebhookPayload
4236
4310
  | IntentRejectedWebhookPayload
@@ -4355,6 +4429,7 @@ export declare namespace Webhooks {
4355
4429
  type DepositCompletedData as DepositCompletedData,
4356
4430
  type DepositCompletedDestination as DepositCompletedDestination,
4357
4431
  type DepositFailedData as DepositFailedData,
4432
+ type DepositMetadata as DepositMetadata,
4358
4433
  type DepositStartedData as DepositStartedData,
4359
4434
  type DepositStartedDestination as DepositStartedDestination,
4360
4435
  type DepositStartedSource as DepositStartedSource,
@@ -4381,6 +4456,9 @@ export declare namespace Webhooks {
4381
4456
  type OrganizationKYBUpdatedKYBData as OrganizationKYBUpdatedKYBData,
4382
4457
  type OrganizationKYBUpdatedTosData as OrganizationKYBUpdatedTosData,
4383
4458
  type PrivateKeyExportWebhookPayload as PrivateKeyExportWebhookPayload,
4459
+ type RefundDetails as RefundDetails,
4460
+ type RefundMetadata as RefundMetadata,
4461
+ type RelayRefundDetails as RelayRefundDetails,
4384
4462
  type SeedPhraseExportWebhookPayload as SeedPhraseExportWebhookPayload,
4385
4463
  type TransactionBroadcastedWebhookPayload as TransactionBroadcastedWebhookPayload,
4386
4464
  type TransactionConfirmedWebhookPayload as TransactionConfirmedWebhookPayload,
@@ -4389,9 +4467,9 @@ export declare namespace Webhooks {
4389
4467
  type TransactionProviderErrorWebhookPayload as TransactionProviderErrorWebhookPayload,
4390
4468
  type TransactionReplacedWebhookPayload as TransactionReplacedWebhookPayload,
4391
4469
  type TransactionStillPendingWebhookPayload as TransactionStillPendingWebhookPayload,
4392
- type UsageCrossChainFeeRecordedWebhookPayload as UsageCrossChainFeeRecordedWebhookPayload,
4393
4470
  type UsageGasSponsorshipRecordedWebhookPayload as UsageGasSponsorshipRecordedWebhookPayload,
4394
4471
  type UsageSourceType as UsageSourceType,
4472
+ type UsageSwapProviderFeeRecordedWebhookPayload as UsageSwapProviderFeeRecordedWebhookPayload,
4395
4473
  type UserAuthenticatedWebhookPayload as UserAuthenticatedWebhookPayload,
4396
4474
  type UserCreatedWebhookPayload as UserCreatedWebhookPayload,
4397
4475
  type UserDeletedWebhookPayload as UserDeletedWebhookPayload,
@@ -25,8 +25,8 @@ export interface EthereumVaultDetailsResponse {
25
25
  id: string;
26
26
 
27
27
  /**
28
- * Annual percentage yield earned by the app from fee wrapper fees, in basis
29
- * points. Null when APY data is unavailable.
28
+ * Annual percentage yield earned by the app from vault fees, in basis points. Null
29
+ * when APY data is unavailable.
30
30
  */
31
31
  app_apy: number | null;
32
32
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.22.0'; // x-release-please-version
1
+ export const VERSION = '0.24.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.22.0";
1
+ export declare const VERSION = "0.24.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.22.0";
1
+ export declare const VERSION = "0.24.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.22.0'; // x-release-please-version
4
+ exports.VERSION = '0.24.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.22.0'; // x-release-please-version
1
+ export const VERSION = '0.24.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map