@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
|
@@ -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.
|
|
1310
|
-
*
|
|
1378
|
+
* Payload for the usage.gas_sponsorship.recorded webhook event (sponsored network
|
|
1379
|
+
* gas).
|
|
1311
1380
|
*/
|
|
1312
|
-
export interface
|
|
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.
|
|
1402
|
+
type: 'usage.gas_sponsorship.recorded';
|
|
1334
1403
|
}
|
|
1335
1404
|
|
|
1336
1405
|
/**
|
|
1337
|
-
*
|
|
1338
|
-
* gas).
|
|
1406
|
+
* The type of operation that incurred a usage charge.
|
|
1339
1407
|
*/
|
|
1340
|
-
export
|
|
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.
|
|
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
|
-
|
|
|
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,
|
package/src/resources/yield.ts
CHANGED
|
@@ -25,8 +25,8 @@ export interface EthereumVaultDetailsResponse {
|
|
|
25
25
|
id: string;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* Annual percentage yield earned by the app from
|
|
29
|
-
*
|
|
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.
|
|
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.
|
|
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.
|
|
1
|
+
export declare const VERSION = "0.24.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.24.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|