@privy-io/api-types 0.6.1 → 0.8.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 +72 -0
- package/client.d.mts +53 -29
- package/client.d.mts.map +1 -1
- package/client.d.ts +53 -29
- package/client.d.ts.map +1 -1
- package/client.js +32 -7
- package/client.js.map +1 -1
- package/client.mjs +34 -9
- package/client.mjs.map +1 -1
- package/package.json +12 -1
- package/resources/accounts.d.mts +146 -4
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +146 -4
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs.map +1 -1
- package/resources/aggregations.d.mts +18 -392
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +18 -392
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/aggregations.js.map +1 -1
- package/resources/aggregations.mjs.map +1 -1
- package/resources/apps.d.mts +197 -70
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +197 -70
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs.map +1 -1
- package/resources/client-auth.d.mts +975 -463
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +975 -463
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/client-auth.js.map +1 -1
- package/resources/client-auth.mjs.map +1 -1
- package/resources/cross-app.d.mts +14 -13
- package/resources/cross-app.d.mts.map +1 -1
- package/resources/cross-app.d.ts +14 -13
- package/resources/cross-app.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +165 -81
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +165 -81
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/embedded-wallets.js.map +1 -1
- package/resources/embedded-wallets.mjs.map +1 -1
- package/resources/funding.d.mts +150 -64
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +150 -64
- package/resources/funding.d.ts.map +1 -1
- package/resources/funding.js.map +1 -1
- package/resources/funding.mjs.map +1 -1
- package/resources/index.d.mts +18 -14
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +18 -14
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +6 -2
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +446 -31
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +446 -31
- package/resources/intents.d.ts.map +1 -1
- package/resources/intents.js.map +1 -1
- package/resources/intents.mjs.map +1 -1
- package/resources/key-quorums.d.mts +108 -17
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +108 -17
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +26 -9
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +26 -9
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +62 -0
- package/resources/kraken-embed.d.mts.map +1 -0
- package/resources/kraken-embed.d.ts +62 -0
- package/resources/kraken-embed.d.ts.map +1 -0
- package/resources/kraken-embed.js +9 -0
- package/resources/kraken-embed.js.map +1 -0
- package/resources/kraken-embed.mjs +5 -0
- package/resources/kraken-embed.mjs.map +1 -0
- package/resources/policies.d.mts +342 -926
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +342 -926
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +51 -41
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +51 -41
- package/resources/policies.mjs.map +1 -1
- package/resources/shared.d.mts +59 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +59 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +9 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +5 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/swaps.d.mts +108 -0
- package/resources/swaps.d.mts.map +1 -0
- package/resources/swaps.d.ts +108 -0
- package/resources/swaps.d.ts.map +1 -0
- package/resources/swaps.js +9 -0
- package/resources/swaps.js.map +1 -0
- package/resources/swaps.mjs +5 -0
- package/resources/swaps.mjs.map +1 -0
- package/resources/transactions.d.mts +158 -93
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +158 -93
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js +3 -0
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs +3 -0
- package/resources/transactions.mjs.map +1 -1
- package/resources/users.d.mts +64 -94
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +64 -94
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +3 -0
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +3 -0
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +187 -0
- package/resources/wallet-actions.d.mts.map +1 -0
- package/resources/wallet-actions.d.ts +187 -0
- package/resources/wallet-actions.d.ts.map +1 -0
- package/resources/wallet-actions.js +9 -0
- package/resources/wallet-actions.js.map +1 -0
- package/resources/wallet-actions.mjs +5 -0
- package/resources/wallet-actions.mjs.map +1 -0
- package/resources/wallets/balance.d.mts +7 -4
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +7 -4
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.js +3 -0
- package/resources/wallets/balance.js.map +1 -1
- package/resources/wallets/balance.mjs +3 -0
- package/resources/wallets/balance.mjs.map +1 -1
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- 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 +10 -6
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +10 -6
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +3 -0
- package/resources/wallets/transactions.js.map +1 -1
- package/resources/wallets/transactions.mjs +3 -0
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +2399 -936
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +2399 -936
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +28 -10
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +28 -10
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +780 -339
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +780 -339
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/yield.d.mts +50 -9
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +50 -9
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +884 -99
- package/src/resources/accounts.ts +179 -3
- package/src/resources/aggregations.ts +18 -702
- package/src/resources/apps.ts +250 -85
- package/src/resources/client-auth.ts +1453 -786
- package/src/resources/cross-app.ts +19 -15
- package/src/resources/embedded-wallets.ts +219 -123
- package/src/resources/funding.ts +263 -173
- package/src/resources/index.ts +444 -61
- package/src/resources/intents.ts +575 -37
- package/src/resources/key-quorums.ts +137 -21
- package/src/resources/kraken-embed.ts +85 -0
- package/src/resources/policies.ts +582 -1550
- package/src/resources/shared.ts +79 -0
- package/src/resources/swaps.ts +136 -0
- package/src/resources/transactions.ts +188 -91
- package/src/resources/users.ts +82 -132
- package/src/resources/wallet-actions.ts +251 -0
- package/src/resources/wallets/balance.ts +9 -2
- package/src/resources/wallets/index.ts +146 -16
- package/src/resources/wallets/transactions.ts +12 -4
- package/src/resources/wallets/wallets.ts +2922 -974
- package/src/resources/webhooks.ts +970 -454
- package/src/resources/yield.ts +68 -10
- 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/yield.ts
CHANGED
|
@@ -65,11 +65,6 @@ export interface EthereumYieldSweepResponse {
|
|
|
65
65
|
*/
|
|
66
66
|
id: string;
|
|
67
67
|
|
|
68
|
-
/**
|
|
69
|
-
* The ID of the ERC-20 approval transaction (for deposits).
|
|
70
|
-
*/
|
|
71
|
-
approval_transaction_id: string | null;
|
|
72
|
-
|
|
73
68
|
/**
|
|
74
69
|
* The amount of underlying assets involved. Set after the sweep is confirmed
|
|
75
70
|
* on-chain.
|
|
@@ -91,11 +86,6 @@ export interface EthereumYieldSweepResponse {
|
|
|
91
86
|
*/
|
|
92
87
|
status: EthereumYieldSweepStatus;
|
|
93
88
|
|
|
94
|
-
/**
|
|
95
|
-
* The ID of the underlying blockchain transaction (deposit/withdraw).
|
|
96
|
-
*/
|
|
97
|
-
transaction_id: string | null;
|
|
98
|
-
|
|
99
89
|
/**
|
|
100
90
|
* Type of yield sweep.
|
|
101
91
|
*/
|
|
@@ -187,6 +177,12 @@ export interface EthereumVaultDetailsResponse {
|
|
|
187
177
|
*/
|
|
188
178
|
id: string;
|
|
189
179
|
|
|
180
|
+
/**
|
|
181
|
+
* Annual percentage yield earned by the app from fee wrapper fees, in basis
|
|
182
|
+
* points. Null when APY data is unavailable.
|
|
183
|
+
*/
|
|
184
|
+
app_apy: number | null;
|
|
185
|
+
|
|
190
186
|
/**
|
|
191
187
|
* Underlying asset token address.
|
|
192
188
|
*/
|
|
@@ -202,6 +198,11 @@ export interface EthereumVaultDetailsResponse {
|
|
|
202
198
|
*/
|
|
203
199
|
caip2: string;
|
|
204
200
|
|
|
201
|
+
/**
|
|
202
|
+
* Human-readable vault name from the yield provider.
|
|
203
|
+
*/
|
|
204
|
+
name: string;
|
|
205
|
+
|
|
205
206
|
/**
|
|
206
207
|
* Supported yield/lending protocol providers.
|
|
207
208
|
*/
|
|
@@ -360,10 +361,65 @@ export interface EthereumYieldClaimResponse {
|
|
|
360
361
|
*/
|
|
361
362
|
caip2: EvmCaip2ChainID;
|
|
362
363
|
|
|
364
|
+
/**
|
|
365
|
+
* Unix timestamp of when the claim was created, in milliseconds.
|
|
366
|
+
*/
|
|
367
|
+
created_at: number;
|
|
368
|
+
|
|
363
369
|
/**
|
|
364
370
|
* List of reward tokens claimed.
|
|
365
371
|
*/
|
|
366
372
|
rewards: Array<EthereumYieldClaimReward>;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* The current status of the claim transaction.
|
|
376
|
+
*/
|
|
377
|
+
status:
|
|
378
|
+
| 'broadcasted'
|
|
379
|
+
| 'confirmed'
|
|
380
|
+
| 'execution_reverted'
|
|
381
|
+
| 'failed'
|
|
382
|
+
| 'replaced'
|
|
383
|
+
| 'finalized'
|
|
384
|
+
| 'provider_error'
|
|
385
|
+
| 'pending';
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Unix timestamp of when the claim was last updated, in milliseconds.
|
|
389
|
+
*/
|
|
390
|
+
updated_at: number;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Input for fetching a yield reward claim by ID.
|
|
395
|
+
*/
|
|
396
|
+
export interface EthereumYieldClaimIDInput {
|
|
397
|
+
/**
|
|
398
|
+
* The yield claim transaction ID.
|
|
399
|
+
*/
|
|
400
|
+
id: string;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Headers required to authorize yield operations.
|
|
405
|
+
*/
|
|
406
|
+
export interface YieldAuthorizationHeaders {
|
|
407
|
+
/**
|
|
408
|
+
* ID of your Privy app.
|
|
409
|
+
*/
|
|
410
|
+
'privy-app-id': string;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Request authorization signature. If multiple signatures are required, they
|
|
414
|
+
* should be comma separated.
|
|
415
|
+
*/
|
|
416
|
+
'privy-authorization-signature'?: string;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Request expiry. Value is a Unix timestamp in milliseconds representing the
|
|
420
|
+
* deadline by which the request must be processed.
|
|
421
|
+
*/
|
|
422
|
+
'privy-request-expiry'?: string;
|
|
367
423
|
}
|
|
368
424
|
|
|
369
425
|
export declare namespace Yield {
|
|
@@ -385,5 +441,7 @@ export declare namespace Yield {
|
|
|
385
441
|
type EthereumYieldClaimInput as EthereumYieldClaimInput,
|
|
386
442
|
type EthereumYieldClaimReward as EthereumYieldClaimReward,
|
|
387
443
|
type EthereumYieldClaimResponse as EthereumYieldClaimResponse,
|
|
444
|
+
type EthereumYieldClaimIDInput as EthereumYieldClaimIDInput,
|
|
445
|
+
type YieldAuthorizationHeaders as YieldAuthorizationHeaders,
|
|
388
446
|
};
|
|
389
447
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.8.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.8.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.8.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.8.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|