@privy-io/api-types 0.15.0 → 0.17.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 +141 -0
- package/client.d.mts +30 -33
- package/client.d.mts.map +1 -1
- package/client.d.ts +30 -33
- package/client.d.ts.map +1 -1
- package/client.js +9 -4
- package/client.js.map +1 -1
- package/client.mjs +9 -4
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +6 -2
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +6 -2
- package/resources/accounts.d.ts.map +1 -1
- package/resources/aggregations.d.mts +14 -4
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +14 -4
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/apps.d.mts +44 -23
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +44 -23
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +32 -8
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +32 -8
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +6 -0
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +6 -0
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/index.d.mts +15 -16
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +15 -16
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +65 -79
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +65 -79
- 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 +9 -8
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +9 -8
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/kraken-embed.d.mts +208 -218
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +208 -218
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/kraken-embed.js.map +1 -1
- package/resources/kraken-embed.mjs.map +1 -1
- package/resources/onramps.d.mts +50 -48
- package/resources/onramps.d.mts.map +1 -1
- package/resources/onramps.d.ts +50 -48
- package/resources/onramps.d.ts.map +1 -1
- package/resources/policies.d.mts +93 -24
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +93 -24
- package/resources/policies.d.ts.map +1 -1
- package/resources/shared.d.mts +15 -3
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +15 -3
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +3 -2
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +3 -2
- package/resources/swaps.d.ts.map +1 -1
- package/resources/transactions.d.mts +9 -2
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +9 -2
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +33 -7
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +33 -7
- package/resources/users.d.ts.map +1 -1
- package/resources/{wallet-actions.d.ts → wallets/actions.d.mts} +383 -68
- package/resources/wallets/actions.d.mts.map +1 -0
- package/resources/{wallet-actions.d.mts → wallets/actions.d.ts} +383 -68
- package/resources/wallets/actions.d.ts.map +1 -0
- package/resources/wallets/actions.js +9 -0
- package/resources/wallets/actions.js.map +1 -0
- package/resources/wallets/actions.mjs +5 -0
- package/resources/wallets/actions.mjs.map +1 -0
- package/resources/wallets/balance.d.mts +11 -4
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +11 -4
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/index.d.mts +2 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +2 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js +3 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs +1 -0
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +14 -3
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +14 -3
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js.map +1 -1
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +846 -97
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +846 -97
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +19 -2
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +19 -2
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +596 -108
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +596 -108
- 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 +30 -30
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +30 -30
- package/resources/yield.d.ts.map +1 -1
- package/resources/yield.js.map +1 -1
- package/resources/yield.mjs.map +1 -1
- package/src/client.ts +223 -76
- package/src/resources/accounts.ts +7 -1
- package/src/resources/aggregations.ts +16 -3
- package/src/resources/apps.ts +60 -30
- package/src/resources/client-auth.ts +41 -7
- package/src/resources/embedded-wallets.ts +7 -0
- package/src/resources/index.ts +107 -36
- package/src/resources/intents.ts +73 -91
- package/src/resources/key-quorums.ts +11 -9
- package/src/resources/kraken-embed.ts +560 -1065
- package/src/resources/onramps.ts +69 -54
- package/src/resources/policies.ts +162 -52
- package/src/resources/shared.ts +18 -2
- package/src/resources/swaps.ts +3 -2
- package/src/resources/transactions.ts +18 -9
- package/src/resources/users.ts +38 -6
- package/src/resources/{wallet-actions.ts → wallets/actions.ts} +496 -78
- package/src/resources/wallets/balance.ts +26 -56
- package/src/resources/wallets/index.ts +93 -0
- package/src/resources/wallets/transactions.ts +17 -10
- package/src/resources/wallets/wallets.ts +1312 -177
- package/src/resources/webhooks.ts +729 -118
- package/src/resources/yield.ts +33 -41
- 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/resources/wallet-actions.d.mts.map +0 -1
- package/resources/wallet-actions.d.ts.map +0 -1
- package/resources/wallet-actions.js +0 -9
- package/resources/wallet-actions.js.map +0 -1
- package/resources/wallet-actions.mjs +0 -5
- package/resources/wallet-actions.mjs.map +0 -1
|
@@ -1,9 +1,113 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '
|
|
4
|
-
import * as WalletsAPI from './wallets
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as WalletsAPI from './wallets';
|
|
5
5
|
|
|
6
|
-
export class
|
|
6
|
+
export class Actions extends APIResource {}
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Vault details for an Aave earn vault, including fee visibility.
|
|
10
|
+
*/
|
|
11
|
+
export interface AaveVaultDetails {
|
|
12
|
+
/**
|
|
13
|
+
* Vault identifier.
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* EVM address of the vault admin wallet.
|
|
19
|
+
*/
|
|
20
|
+
admin_wallet_address: string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Privy wallet ID of the vault admin.
|
|
24
|
+
*/
|
|
25
|
+
admin_wallet_id: string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Annual percentage yield earned by the app from fee wrapper fees, in basis
|
|
29
|
+
* points.
|
|
30
|
+
*/
|
|
31
|
+
app_apy: number | null;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Asset metadata for an earn vault position.
|
|
35
|
+
*/
|
|
36
|
+
asset: EarnAsset;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Fees available to collect, in smallest unit of the underlying asset.
|
|
40
|
+
*/
|
|
41
|
+
available_fees: string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Available liquidity in USD.
|
|
45
|
+
*/
|
|
46
|
+
available_liquidity_usd: number | null;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* CAIP-2 chain identifier (e.g. "eip155:8453").
|
|
50
|
+
*/
|
|
51
|
+
caip2: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Human-readable vault name from the yield provider.
|
|
55
|
+
*/
|
|
56
|
+
name: string;
|
|
57
|
+
|
|
58
|
+
provider: 'aave';
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Total value locked in USD.
|
|
62
|
+
*/
|
|
63
|
+
tvl_usd: number | null;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Annual percentage yield available to the user, after fees and excluding rewards,
|
|
67
|
+
* in basis points (e.g. 500 for 5%). 1 basis point = 0.01%.
|
|
68
|
+
*/
|
|
69
|
+
user_apy: number | null;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Onchain vault contract address.
|
|
73
|
+
*/
|
|
74
|
+
vault_address: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* A wallet action step representing a transaction executed by a custodian (e.g.
|
|
79
|
+
* Bridge).
|
|
80
|
+
*/
|
|
81
|
+
export interface CustodianTransactionWalletActionStep {
|
|
82
|
+
/**
|
|
83
|
+
* Identifier of the custodian executing this transaction (e.g. "bridge").
|
|
84
|
+
*/
|
|
85
|
+
custodian: string;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Status of a custodian transaction step in a wallet action.
|
|
89
|
+
*/
|
|
90
|
+
status: CustodianTransactionWalletActionStepStatus;
|
|
91
|
+
|
|
92
|
+
type: 'custodian_transaction';
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
96
|
+
*/
|
|
97
|
+
failure_reason?: FailureReason;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Status of a custodian transaction step in a wallet action.
|
|
102
|
+
*/
|
|
103
|
+
export type CustodianTransactionWalletActionStepStatus =
|
|
104
|
+
| 'preparing'
|
|
105
|
+
| 'queued'
|
|
106
|
+
| 'custodian_reviewing'
|
|
107
|
+
| 'pending'
|
|
108
|
+
| 'confirmed'
|
|
109
|
+
| 'rejected'
|
|
110
|
+
| 'failed';
|
|
7
111
|
|
|
8
112
|
/**
|
|
9
113
|
* A wallet action step consisting of an EVM transaction.
|
|
@@ -31,8 +135,19 @@ export interface EvmTransactionWalletActionStep {
|
|
|
31
135
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
32
136
|
*/
|
|
33
137
|
failure_reason?: FailureReason;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Whether this step has reached on-chain finality. Absent until finality is
|
|
141
|
+
* confirmed.
|
|
142
|
+
*/
|
|
143
|
+
finalized?: boolean;
|
|
34
144
|
}
|
|
35
145
|
|
|
146
|
+
/**
|
|
147
|
+
* The ERC-4337 entrypoint contract version used by the user operation.
|
|
148
|
+
*/
|
|
149
|
+
export type EvmUserOperationEntrypointVersion = '0.6' | '0.7' | '0.8' | '0.9';
|
|
150
|
+
|
|
36
151
|
/**
|
|
37
152
|
* A wallet action step consisting of an EVM user operation.
|
|
38
153
|
*/
|
|
@@ -49,9 +164,9 @@ export interface EvmUserOperationWalletActionStep {
|
|
|
49
164
|
caip2: string;
|
|
50
165
|
|
|
51
166
|
/**
|
|
52
|
-
* The entrypoint version
|
|
167
|
+
* The ERC-4337 entrypoint contract version used by the user operation.
|
|
53
168
|
*/
|
|
54
|
-
entrypoint_version:
|
|
169
|
+
entrypoint_version: EvmUserOperationEntrypointVersion;
|
|
55
170
|
|
|
56
171
|
/**
|
|
57
172
|
* Status of an EVM step in a wallet action.
|
|
@@ -70,6 +185,17 @@ export interface EvmUserOperationWalletActionStep {
|
|
|
70
185
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
71
186
|
*/
|
|
72
187
|
failure_reason?: FailureReason;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Whether this step has reached on-chain finality. Absent until finality is
|
|
191
|
+
* confirmed.
|
|
192
|
+
*/
|
|
193
|
+
finalized?: boolean;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Amount charged in USD for gas sponsorship on this step.
|
|
197
|
+
*/
|
|
198
|
+
gas_credits_charged_usd?: string;
|
|
73
199
|
}
|
|
74
200
|
|
|
75
201
|
/**
|
|
@@ -214,6 +340,98 @@ export interface EarnDepositRequestBody {
|
|
|
214
340
|
raw_amount?: string;
|
|
215
341
|
}
|
|
216
342
|
|
|
343
|
+
/**
|
|
344
|
+
* Response for an earn fee collect action.
|
|
345
|
+
*/
|
|
346
|
+
export interface EarnFeeCollectActionResponse {
|
|
347
|
+
/**
|
|
348
|
+
* The ID of the wallet action.
|
|
349
|
+
*/
|
|
350
|
+
id: string;
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Underlying asset token address.
|
|
354
|
+
*/
|
|
355
|
+
asset_address: string;
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* CAIP-2 chain identifier.
|
|
359
|
+
*/
|
|
360
|
+
caip2: string;
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
364
|
+
*/
|
|
365
|
+
created_at: string;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Base-unit amount of fees collected (e.g. "1500000"). Populated after on-chain
|
|
369
|
+
* confirmation.
|
|
370
|
+
*/
|
|
371
|
+
raw_amount: string | null;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Status of a wallet action.
|
|
375
|
+
*/
|
|
376
|
+
status: WalletActionStatus;
|
|
377
|
+
|
|
378
|
+
type: 'earn_fee_collect';
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* ERC-4626 vault contract address.
|
|
382
|
+
*/
|
|
383
|
+
vault_address: string;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* The vault ID.
|
|
387
|
+
*/
|
|
388
|
+
vault_id: string;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* The ID of the wallet involved in the action.
|
|
392
|
+
*/
|
|
393
|
+
wallet_id: string;
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Human-readable decimal amount of fees collected (e.g. "1.5"). Omitted when the
|
|
397
|
+
* token is not in the asset registry. Null while the action is pending; populated
|
|
398
|
+
* after on-chain confirmation.
|
|
399
|
+
*/
|
|
400
|
+
amount?: string | null;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
404
|
+
* the asset registry.
|
|
405
|
+
*/
|
|
406
|
+
asset?: string;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
410
|
+
* present when the token is known in the asset registry.
|
|
411
|
+
*/
|
|
412
|
+
decimals?: number;
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
416
|
+
*/
|
|
417
|
+
failure_reason?: FailureReason;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* The steps of the wallet action. Only returned if `?include=steps` is provided.
|
|
421
|
+
*/
|
|
422
|
+
steps?: Array<WalletActionStep>;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Input for collecting accumulated fees from an Aave vault.
|
|
427
|
+
*/
|
|
428
|
+
export interface EarnFeeCollectRequestBody {
|
|
429
|
+
/**
|
|
430
|
+
* The ID of the vault to collect fees from.
|
|
431
|
+
*/
|
|
432
|
+
vault_id: string;
|
|
433
|
+
}
|
|
434
|
+
|
|
217
435
|
/**
|
|
218
436
|
* Response for an earn incentive claim action.
|
|
219
437
|
*/
|
|
@@ -465,6 +683,11 @@ export interface EthereumEarnPositionQuery {
|
|
|
465
683
|
* The vault ID to get position for.
|
|
466
684
|
*/
|
|
467
685
|
vault_id: string;
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Include archived wallets in lookup. Defaults to false.
|
|
689
|
+
*/
|
|
690
|
+
include_archived?: boolean;
|
|
468
691
|
}
|
|
469
692
|
|
|
470
693
|
/**
|
|
@@ -500,17 +723,100 @@ export interface EthereumEarnPositionResponse {
|
|
|
500
723
|
/**
|
|
501
724
|
* Supported earn provider protocols.
|
|
502
725
|
*/
|
|
503
|
-
export type EthereumEarnProvider = 'morpho' | 'aave';
|
|
726
|
+
export type EthereumEarnProvider = 'morpho' | 'aave' | 'veda';
|
|
504
727
|
|
|
505
728
|
/**
|
|
506
729
|
* Detailed vault information including current APY, liquidity, and asset metadata.
|
|
730
|
+
* Discriminated on provider.
|
|
731
|
+
*/
|
|
732
|
+
export type EthereumEarnVaultDetailsResponse = AaveVaultDetails | MorphoVaultDetails | VedaVaultDetails;
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* A wallet action step representing a cross-chain/cross-asset fill by an external
|
|
736
|
+
* provider.
|
|
737
|
+
*/
|
|
738
|
+
export interface ExternalTransactionWalletActionStep {
|
|
739
|
+
/**
|
|
740
|
+
* Status of an external transaction step in a wallet action.
|
|
741
|
+
*/
|
|
742
|
+
status: ExternalTransactionWalletActionStepStatus;
|
|
743
|
+
|
|
744
|
+
type: 'external_transaction';
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
748
|
+
*/
|
|
749
|
+
failure_reason?: FailureReason;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Status of an external transaction step in a wallet action.
|
|
507
754
|
*/
|
|
508
|
-
export
|
|
755
|
+
export type ExternalTransactionWalletActionStepStatus =
|
|
756
|
+
| 'preparing'
|
|
757
|
+
| 'queued'
|
|
758
|
+
| 'pending'
|
|
759
|
+
| 'confirmed'
|
|
760
|
+
| 'rejected'
|
|
761
|
+
| 'failed';
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
765
|
+
*/
|
|
766
|
+
export interface FailureReason {
|
|
767
|
+
/**
|
|
768
|
+
* Human-readable failure message.
|
|
769
|
+
*/
|
|
770
|
+
message: string;
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* Additional error details, if available.
|
|
774
|
+
*/
|
|
775
|
+
details?: unknown;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* Query parameters for listing wallet actions.
|
|
780
|
+
*/
|
|
781
|
+
export interface ListWalletActionsQuery {
|
|
782
|
+
cursor?: string;
|
|
783
|
+
|
|
784
|
+
limit?: number | null;
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* Type of wallet action
|
|
788
|
+
*/
|
|
789
|
+
type?: WalletActionType;
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* Paginated list of wallet actions.
|
|
794
|
+
*/
|
|
795
|
+
export interface ListWalletActionsResponse {
|
|
796
|
+
data: Array<WalletActionResponse>;
|
|
797
|
+
|
|
798
|
+
next_cursor: string | null;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* Vault details for a Morpho earn vault.
|
|
803
|
+
*/
|
|
804
|
+
export interface MorphoVaultDetails {
|
|
509
805
|
/**
|
|
510
806
|
* Vault identifier.
|
|
511
807
|
*/
|
|
512
808
|
id: string;
|
|
513
809
|
|
|
810
|
+
/**
|
|
811
|
+
* EVM address of the vault admin wallet.
|
|
812
|
+
*/
|
|
813
|
+
admin_wallet_address: string;
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* Privy wallet ID of the vault admin.
|
|
817
|
+
*/
|
|
818
|
+
admin_wallet_id: string;
|
|
819
|
+
|
|
514
820
|
/**
|
|
515
821
|
* Annual percentage yield earned by the app from fee wrapper fees, in basis
|
|
516
822
|
* points.
|
|
@@ -537,10 +843,12 @@ export interface EthereumEarnVaultDetailsResponse {
|
|
|
537
843
|
*/
|
|
538
844
|
name: string;
|
|
539
845
|
|
|
846
|
+
provider: 'morpho';
|
|
847
|
+
|
|
540
848
|
/**
|
|
541
|
-
*
|
|
849
|
+
* Total rewards annual percentage rate in basis points.
|
|
542
850
|
*/
|
|
543
|
-
|
|
851
|
+
total_rewards_apr: number;
|
|
544
852
|
|
|
545
853
|
/**
|
|
546
854
|
* Total value locked in USD.
|
|
@@ -548,8 +856,8 @@ export interface EthereumEarnVaultDetailsResponse {
|
|
|
548
856
|
tvl_usd: number | null;
|
|
549
857
|
|
|
550
858
|
/**
|
|
551
|
-
*
|
|
552
|
-
* = 0.01%.
|
|
859
|
+
* Annual percentage yield available to the user, after fees and excluding rewards,
|
|
860
|
+
* in basis points (e.g. 500 for 5%). 1 basis point = 0.01%.
|
|
553
861
|
*/
|
|
554
862
|
user_apy: number | null;
|
|
555
863
|
|
|
@@ -559,50 +867,6 @@ export interface EthereumEarnVaultDetailsResponse {
|
|
|
559
867
|
vault_address: string;
|
|
560
868
|
}
|
|
561
869
|
|
|
562
|
-
/**
|
|
563
|
-
* A wallet action step representing a cross-chain/cross-asset fill by an external
|
|
564
|
-
* provider.
|
|
565
|
-
*/
|
|
566
|
-
export interface ExternalTransactionWalletActionStep {
|
|
567
|
-
/**
|
|
568
|
-
* Status of an external transaction step in a wallet action.
|
|
569
|
-
*/
|
|
570
|
-
status: ExternalTransactionWalletActionStepStatus;
|
|
571
|
-
|
|
572
|
-
type: 'external_transaction';
|
|
573
|
-
|
|
574
|
-
/**
|
|
575
|
-
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
576
|
-
*/
|
|
577
|
-
failure_reason?: FailureReason;
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
/**
|
|
581
|
-
* Status of an external transaction step in a wallet action.
|
|
582
|
-
*/
|
|
583
|
-
export type ExternalTransactionWalletActionStepStatus =
|
|
584
|
-
| 'preparing'
|
|
585
|
-
| 'queued'
|
|
586
|
-
| 'pending'
|
|
587
|
-
| 'confirmed'
|
|
588
|
-
| 'rejected'
|
|
589
|
-
| 'failed';
|
|
590
|
-
|
|
591
|
-
/**
|
|
592
|
-
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
593
|
-
*/
|
|
594
|
-
export interface FailureReason {
|
|
595
|
-
/**
|
|
596
|
-
* Human-readable failure message.
|
|
597
|
-
*/
|
|
598
|
-
message: string;
|
|
599
|
-
|
|
600
|
-
/**
|
|
601
|
-
* Additional error details, if available.
|
|
602
|
-
*/
|
|
603
|
-
details?: unknown;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
870
|
/**
|
|
607
871
|
* A wallet action step consisting of an SVM (Solana) transaction.
|
|
608
872
|
*/
|
|
@@ -628,6 +892,17 @@ export interface SvmTransactionWalletActionStep {
|
|
|
628
892
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
629
893
|
*/
|
|
630
894
|
failure_reason?: FailureReason;
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* Whether this step has reached on-chain finality. Absent until finality is
|
|
898
|
+
* confirmed.
|
|
899
|
+
*/
|
|
900
|
+
finalized?: boolean;
|
|
901
|
+
|
|
902
|
+
/**
|
|
903
|
+
* Amount charged in USD for gas sponsorship on this step.
|
|
904
|
+
*/
|
|
905
|
+
gas_credits_charged_usd?: string;
|
|
631
906
|
}
|
|
632
907
|
|
|
633
908
|
/**
|
|
@@ -638,7 +913,6 @@ export type SvmWalletActionStepStatus =
|
|
|
638
913
|
| 'queued'
|
|
639
914
|
| 'pending'
|
|
640
915
|
| 'confirmed'
|
|
641
|
-
| 'finalized'
|
|
642
916
|
| 'rejected'
|
|
643
917
|
| 'reverted'
|
|
644
918
|
| 'failed';
|
|
@@ -694,21 +968,29 @@ export interface SwapActionResponse {
|
|
|
694
968
|
*/
|
|
695
969
|
wallet_id: string;
|
|
696
970
|
|
|
971
|
+
/**
|
|
972
|
+
* Recipient address on the destination chain. Present for cross-chain swaps. May
|
|
973
|
+
* differ from the source wallet address when swapping between chain types (e.g.
|
|
974
|
+
* EVM to Solana).
|
|
975
|
+
*/
|
|
976
|
+
destination_address?: string;
|
|
977
|
+
|
|
697
978
|
/**
|
|
698
979
|
* Destination chain CAIP-2 identifier. Present for cross-chain swaps.
|
|
699
980
|
*/
|
|
700
981
|
destination_caip2?: string;
|
|
701
982
|
|
|
702
983
|
/**
|
|
703
|
-
* Estimated fee breakdown from the provider quote.
|
|
984
|
+
* Estimated fee breakdown from the provider quote. Only present for cross-chain
|
|
985
|
+
* swaps. Populated after on-chain confirmation.
|
|
704
986
|
*/
|
|
705
|
-
estimated_fees?: Array<WalletsAPI.FeeLineItem
|
|
987
|
+
estimated_fees?: Array<WalletsAPI.FeeLineItem> | null;
|
|
706
988
|
|
|
707
989
|
/**
|
|
708
990
|
* Gas cost for a blockchain action. Includes both raw base-unit amount and a
|
|
709
991
|
* human-readable decimal string, plus the gas token symbol.
|
|
710
992
|
*/
|
|
711
|
-
estimated_gas?: WalletsAPI.Gas;
|
|
993
|
+
estimated_gas?: WalletsAPI.Gas | null;
|
|
712
994
|
|
|
713
995
|
/**
|
|
714
996
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
@@ -716,15 +998,16 @@ export interface SwapActionResponse {
|
|
|
716
998
|
failure_reason?: FailureReason;
|
|
717
999
|
|
|
718
1000
|
/**
|
|
719
|
-
* Actual fees paid for the swap. Populated after on-chain confirmation.
|
|
1001
|
+
* Actual fees paid for the swap. Populated after on-chain confirmation. Only
|
|
1002
|
+
* present for cross-chain swaps.
|
|
720
1003
|
*/
|
|
721
|
-
fees?: Array<WalletsAPI.FeeLineItem
|
|
1004
|
+
fees?: Array<WalletsAPI.FeeLineItem> | null;
|
|
722
1005
|
|
|
723
1006
|
/**
|
|
724
1007
|
* Gas cost for a blockchain action. Includes both raw base-unit amount and a
|
|
725
1008
|
* human-readable decimal string, plus the gas token symbol.
|
|
726
1009
|
*/
|
|
727
|
-
gas?: WalletsAPI.Gas;
|
|
1010
|
+
gas?: WalletsAPI.Gas | null;
|
|
728
1011
|
|
|
729
1012
|
/**
|
|
730
1013
|
* The steps of the wallet action. Only returned if `?include=steps` is provided.
|
|
@@ -732,6 +1015,45 @@ export interface SwapActionResponse {
|
|
|
732
1015
|
steps?: Array<WalletActionStep>;
|
|
733
1016
|
}
|
|
734
1017
|
|
|
1018
|
+
/**
|
|
1019
|
+
* A wallet action step consisting of a TVM (Tron) transaction.
|
|
1020
|
+
*/
|
|
1021
|
+
export interface TvmTransactionWalletActionStep {
|
|
1022
|
+
/**
|
|
1023
|
+
* CAIP-2 chain identifier for the Tron network.
|
|
1024
|
+
*/
|
|
1025
|
+
caip2: string;
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* Status of a TVM (Tron) step in a wallet action.
|
|
1029
|
+
*/
|
|
1030
|
+
status: TvmWalletActionStepStatus;
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* The Tron transaction ID. Null until broadcast.
|
|
1034
|
+
*/
|
|
1035
|
+
transaction_id: string | null;
|
|
1036
|
+
|
|
1037
|
+
type: 'tvm_transaction';
|
|
1038
|
+
|
|
1039
|
+
/**
|
|
1040
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1041
|
+
*/
|
|
1042
|
+
failure_reason?: FailureReason;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* Status of a TVM (Tron) step in a wallet action.
|
|
1047
|
+
*/
|
|
1048
|
+
export type TvmWalletActionStepStatus =
|
|
1049
|
+
| 'preparing'
|
|
1050
|
+
| 'queued'
|
|
1051
|
+
| 'pending'
|
|
1052
|
+
| 'confirmed'
|
|
1053
|
+
| 'rejected'
|
|
1054
|
+
| 'reverted'
|
|
1055
|
+
| 'failed';
|
|
1056
|
+
|
|
735
1057
|
/**
|
|
736
1058
|
* Response for a transfer action.
|
|
737
1059
|
*/
|
|
@@ -751,6 +1073,13 @@ export interface TransferActionResponse {
|
|
|
751
1073
|
*/
|
|
752
1074
|
destination_address: string;
|
|
753
1075
|
|
|
1076
|
+
/**
|
|
1077
|
+
* Amount received on the destination chain. For exact_output cross-chain
|
|
1078
|
+
* transfers, set at creation (the guaranteed exact amount). For exact_input
|
|
1079
|
+
* cross-chain transfers, null until fill confirmation.
|
|
1080
|
+
*/
|
|
1081
|
+
destination_amount: string | null;
|
|
1082
|
+
|
|
754
1083
|
/**
|
|
755
1084
|
* Chain name (e.g. "base", "ethereum").
|
|
756
1085
|
*/
|
|
@@ -769,10 +1098,9 @@ export interface TransferActionResponse {
|
|
|
769
1098
|
wallet_id: string;
|
|
770
1099
|
|
|
771
1100
|
/**
|
|
772
|
-
*
|
|
773
|
-
* transfers, or after fill confirmation for exact_input transfers.
|
|
1101
|
+
* Whether the amount refers to the input token or output token.
|
|
774
1102
|
*/
|
|
775
|
-
|
|
1103
|
+
amount_type?: WalletsAPI.AmountType;
|
|
776
1104
|
|
|
777
1105
|
/**
|
|
778
1106
|
* Destination asset for cross-asset transfers. Omitted for same-asset transfers.
|
|
@@ -785,15 +1113,16 @@ export interface TransferActionResponse {
|
|
|
785
1113
|
destination_chain?: string;
|
|
786
1114
|
|
|
787
1115
|
/**
|
|
788
|
-
* Estimated fee breakdown from the provider quote.
|
|
1116
|
+
* Estimated fee breakdown from the provider quote. Only present for cross-chain or
|
|
1117
|
+
* cross-asset transfers. Populated after on-chain confirmation.
|
|
789
1118
|
*/
|
|
790
|
-
estimated_fees?: Array<WalletsAPI.FeeLineItem
|
|
1119
|
+
estimated_fees?: Array<WalletsAPI.FeeLineItem> | null;
|
|
791
1120
|
|
|
792
1121
|
/**
|
|
793
1122
|
* Gas cost for a blockchain action. Includes both raw base-unit amount and a
|
|
794
1123
|
* human-readable decimal string, plus the gas token symbol.
|
|
795
1124
|
*/
|
|
796
|
-
estimated_gas?: WalletsAPI.Gas;
|
|
1125
|
+
estimated_gas?: WalletsAPI.Gas | null;
|
|
797
1126
|
|
|
798
1127
|
/**
|
|
799
1128
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
@@ -801,19 +1130,20 @@ export interface TransferActionResponse {
|
|
|
801
1130
|
failure_reason?: FailureReason;
|
|
802
1131
|
|
|
803
1132
|
/**
|
|
804
|
-
* Actual fees paid for the transfer. Populated after on-chain confirmation.
|
|
1133
|
+
* Actual fees paid for the transfer. Populated after on-chain confirmation. Only
|
|
1134
|
+
* present for cross-chain transfers.
|
|
805
1135
|
*/
|
|
806
|
-
fees?: Array<WalletsAPI.FeeLineItem
|
|
1136
|
+
fees?: Array<WalletsAPI.FeeLineItem> | null;
|
|
807
1137
|
|
|
808
1138
|
/**
|
|
809
1139
|
* Gas cost for a blockchain action. Includes both raw base-unit amount and a
|
|
810
1140
|
* human-readable decimal string, plus the gas token symbol.
|
|
811
1141
|
*/
|
|
812
|
-
gas?: WalletsAPI.Gas;
|
|
1142
|
+
gas?: WalletsAPI.Gas | null;
|
|
813
1143
|
|
|
814
1144
|
/**
|
|
815
|
-
* Decimal amount sent on the source chain (e.g. "1.5").
|
|
816
|
-
* cross-chain transfers until
|
|
1145
|
+
* Decimal amount sent on the source chain (e.g. "1.5"). For exact_output
|
|
1146
|
+
* cross-chain transfers, null until fill confirmation.
|
|
817
1147
|
*/
|
|
818
1148
|
source_amount?: string;
|
|
819
1149
|
|
|
@@ -841,6 +1171,75 @@ export interface TransferActionResponse {
|
|
|
841
1171
|
steps?: Array<WalletActionStep>;
|
|
842
1172
|
}
|
|
843
1173
|
|
|
1174
|
+
/**
|
|
1175
|
+
* Vault details for a Veda (BoringVault) earn vault.
|
|
1176
|
+
*/
|
|
1177
|
+
export interface VedaVaultDetails {
|
|
1178
|
+
/**
|
|
1179
|
+
* Vault identifier.
|
|
1180
|
+
*/
|
|
1181
|
+
id: string;
|
|
1182
|
+
|
|
1183
|
+
/**
|
|
1184
|
+
* EVM address of the vault admin wallet.
|
|
1185
|
+
*/
|
|
1186
|
+
admin_wallet_address: string;
|
|
1187
|
+
|
|
1188
|
+
/**
|
|
1189
|
+
* Privy wallet ID of the vault admin.
|
|
1190
|
+
*/
|
|
1191
|
+
admin_wallet_id: string;
|
|
1192
|
+
|
|
1193
|
+
/**
|
|
1194
|
+
* Annual percentage yield earned by the app from fee wrapper fees, in basis
|
|
1195
|
+
* points.
|
|
1196
|
+
*/
|
|
1197
|
+
app_apy: number | null;
|
|
1198
|
+
|
|
1199
|
+
/**
|
|
1200
|
+
* Asset metadata for an earn vault position.
|
|
1201
|
+
*/
|
|
1202
|
+
asset: EarnAsset;
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* Available liquidity in USD.
|
|
1206
|
+
*/
|
|
1207
|
+
available_liquidity_usd: number | null;
|
|
1208
|
+
|
|
1209
|
+
/**
|
|
1210
|
+
* CAIP-2 chain identifier (e.g. "eip155:8453").
|
|
1211
|
+
*/
|
|
1212
|
+
caip2: string;
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* Human-readable vault name from the yield provider.
|
|
1216
|
+
*/
|
|
1217
|
+
name: string;
|
|
1218
|
+
|
|
1219
|
+
provider: 'veda';
|
|
1220
|
+
|
|
1221
|
+
/**
|
|
1222
|
+
* Total value locked in USD.
|
|
1223
|
+
*/
|
|
1224
|
+
tvl_usd: number | null;
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* Annual percentage yield available to the user, after fees and excluding rewards,
|
|
1228
|
+
* in basis points (e.g. 500 for 5%). 1 basis point = 0.01%.
|
|
1229
|
+
*/
|
|
1230
|
+
user_apy: number | null;
|
|
1231
|
+
|
|
1232
|
+
/**
|
|
1233
|
+
* Onchain vault contract address.
|
|
1234
|
+
*/
|
|
1235
|
+
vault_address: string;
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* Expandable relations to include on a wallet action response.
|
|
1240
|
+
*/
|
|
1241
|
+
export type WalletActionInclude = 'steps';
|
|
1242
|
+
|
|
844
1243
|
/**
|
|
845
1244
|
* Response for a wallet action, discriminated on type.
|
|
846
1245
|
*/
|
|
@@ -849,7 +1248,8 @@ export type WalletActionResponse =
|
|
|
849
1248
|
| TransferActionResponse
|
|
850
1249
|
| EarnDepositActionResponse
|
|
851
1250
|
| EarnWithdrawActionResponse
|
|
852
|
-
| EarnIncentiveClaimActionResponse
|
|
1251
|
+
| EarnIncentiveClaimActionResponse
|
|
1252
|
+
| EarnFeeCollectActionResponse;
|
|
853
1253
|
|
|
854
1254
|
/**
|
|
855
1255
|
* Status of a wallet action.
|
|
@@ -863,7 +1263,9 @@ export type WalletActionStep =
|
|
|
863
1263
|
| EvmTransactionWalletActionStep
|
|
864
1264
|
| EvmUserOperationWalletActionStep
|
|
865
1265
|
| SvmTransactionWalletActionStep
|
|
866
|
-
|
|
|
1266
|
+
| TvmTransactionWalletActionStep
|
|
1267
|
+
| ExternalTransactionWalletActionStep
|
|
1268
|
+
| CustodianTransactionWalletActionStep;
|
|
867
1269
|
|
|
868
1270
|
/**
|
|
869
1271
|
* Type of a wallet action step.
|
|
@@ -872,7 +1274,9 @@ export type WalletActionStepType =
|
|
|
872
1274
|
| 'evm_transaction'
|
|
873
1275
|
| 'evm_user_operation'
|
|
874
1276
|
| 'svm_transaction'
|
|
875
|
-
| '
|
|
1277
|
+
| 'tvm_transaction'
|
|
1278
|
+
| 'external_transaction'
|
|
1279
|
+
| 'custodian_transaction';
|
|
876
1280
|
|
|
877
1281
|
/**
|
|
878
1282
|
* Type of wallet action
|
|
@@ -882,16 +1286,23 @@ export type WalletActionType =
|
|
|
882
1286
|
| 'transfer'
|
|
883
1287
|
| 'earn_deposit'
|
|
884
1288
|
| 'earn_withdraw'
|
|
885
|
-
| 'earn_incentive_claim'
|
|
1289
|
+
| 'earn_incentive_claim'
|
|
1290
|
+
| 'earn_fee_collect';
|
|
886
1291
|
|
|
887
|
-
export declare namespace
|
|
1292
|
+
export declare namespace Actions {
|
|
888
1293
|
export {
|
|
1294
|
+
type AaveVaultDetails as AaveVaultDetails,
|
|
1295
|
+
type CustodianTransactionWalletActionStep as CustodianTransactionWalletActionStep,
|
|
1296
|
+
type CustodianTransactionWalletActionStepStatus as CustodianTransactionWalletActionStepStatus,
|
|
889
1297
|
type EvmTransactionWalletActionStep as EvmTransactionWalletActionStep,
|
|
1298
|
+
type EvmUserOperationEntrypointVersion as EvmUserOperationEntrypointVersion,
|
|
890
1299
|
type EvmUserOperationWalletActionStep as EvmUserOperationWalletActionStep,
|
|
891
1300
|
type EvmWalletActionStepStatus as EvmWalletActionStepStatus,
|
|
892
1301
|
type EarnAsset as EarnAsset,
|
|
893
1302
|
type EarnDepositActionResponse as EarnDepositActionResponse,
|
|
894
1303
|
type EarnDepositRequestBody as EarnDepositRequestBody,
|
|
1304
|
+
type EarnFeeCollectActionResponse as EarnFeeCollectActionResponse,
|
|
1305
|
+
type EarnFeeCollectRequestBody as EarnFeeCollectRequestBody,
|
|
895
1306
|
type EarnIncentiveClaimActionResponse as EarnIncentiveClaimActionResponse,
|
|
896
1307
|
type EarnIncentiveClaimRequestBody as EarnIncentiveClaimRequestBody,
|
|
897
1308
|
type EarnIncentiveRewardEntry as EarnIncentiveRewardEntry,
|
|
@@ -907,10 +1318,17 @@ export declare namespace WalletActions {
|
|
|
907
1318
|
type ExternalTransactionWalletActionStep as ExternalTransactionWalletActionStep,
|
|
908
1319
|
type ExternalTransactionWalletActionStepStatus as ExternalTransactionWalletActionStepStatus,
|
|
909
1320
|
type FailureReason as FailureReason,
|
|
1321
|
+
type ListWalletActionsQuery as ListWalletActionsQuery,
|
|
1322
|
+
type ListWalletActionsResponse as ListWalletActionsResponse,
|
|
1323
|
+
type MorphoVaultDetails as MorphoVaultDetails,
|
|
910
1324
|
type SvmTransactionWalletActionStep as SvmTransactionWalletActionStep,
|
|
911
1325
|
type SvmWalletActionStepStatus as SvmWalletActionStepStatus,
|
|
912
1326
|
type SwapActionResponse as SwapActionResponse,
|
|
1327
|
+
type TvmTransactionWalletActionStep as TvmTransactionWalletActionStep,
|
|
1328
|
+
type TvmWalletActionStepStatus as TvmWalletActionStepStatus,
|
|
913
1329
|
type TransferActionResponse as TransferActionResponse,
|
|
1330
|
+
type VedaVaultDetails as VedaVaultDetails,
|
|
1331
|
+
type WalletActionInclude as WalletActionInclude,
|
|
914
1332
|
type WalletActionResponse as WalletActionResponse,
|
|
915
1333
|
type WalletActionStatus as WalletActionStatus,
|
|
916
1334
|
type WalletActionStep as WalletActionStep,
|