@privy-io/api-types 0.16.0 → 0.18.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 +74 -0
- package/client.d.mts +14 -17
- package/client.d.mts.map +1 -1
- package/client.d.ts +14 -17
- package/client.d.ts.map +1 -1
- package/client.js +0 -3
- package/client.js.map +1 -1
- package/client.mjs +0 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +1 -1
- package/resources/accounts.d.ts +1 -1
- package/resources/apps.d.mts +3 -3
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +3 -3
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +42 -4
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +42 -4
- 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 +7 -8
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +7 -8
- 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/kraken-embed.d.mts +110 -17
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +110 -17
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/onramps.d.mts +4 -4
- package/resources/onramps.d.ts +4 -4
- package/resources/policies.d.mts +48 -8
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +48 -8
- package/resources/policies.d.ts.map +1 -1
- package/resources/swaps.d.mts +2 -1
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +2 -1
- 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 +41 -8
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +41 -8
- package/resources/users.d.ts.map +1 -1
- package/resources/{wallet-actions.d.ts → wallets/actions.d.mts} +262 -60
- package/resources/wallets/actions.d.mts.map +1 -0
- package/resources/{wallet-actions.d.mts → wallets/actions.d.ts} +262 -60
- 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 +9 -6
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +9 -6
- 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 +10 -3
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +10 -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 +323 -78
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +323 -78
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +4 -0
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +4 -0
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +379 -71
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +379 -71
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/yield.d.mts +11 -7
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +11 -7
- 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 +96 -83
- package/src/resources/accounts.ts +1 -1
- package/src/resources/apps.ts +3 -3
- package/src/resources/client-auth.ts +61 -3
- package/src/resources/embedded-wallets.ts +7 -0
- package/src/resources/index.ts +48 -40
- package/src/resources/kraken-embed.ts +439 -848
- package/src/resources/onramps.ts +4 -4
- package/src/resources/policies.ts +96 -36
- package/src/resources/swaps.ts +2 -1
- package/src/resources/transactions.ts +18 -9
- package/src/resources/users.ts +49 -7
- package/src/resources/{wallet-actions.ts → wallets/actions.ts} +323 -67
- package/src/resources/wallets/balance.ts +24 -64
- package/src/resources/wallets/index.ts +59 -0
- package/src/resources/wallets/transactions.ts +12 -10
- package/src/resources/wallets/wallets.ts +582 -116
- package/src/resources/webhooks.ts +458 -76
- package/src/resources/yield.ts +11 -15
- 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,5 +1,51 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export {
|
|
4
|
+
Actions,
|
|
5
|
+
type AaveVaultDetails,
|
|
6
|
+
type CustodianTransactionWalletActionStep,
|
|
7
|
+
type CustodianTransactionWalletActionStepStatus,
|
|
8
|
+
type EvmTransactionWalletActionStep,
|
|
9
|
+
type EvmUserOperationEntrypointVersion,
|
|
10
|
+
type EvmUserOperationWalletActionStep,
|
|
11
|
+
type EvmWalletActionStepStatus,
|
|
12
|
+
type EarnAsset,
|
|
13
|
+
type EarnDepositActionResponse,
|
|
14
|
+
type EarnDepositRequestBody,
|
|
15
|
+
type EarnFeeCollectActionResponse,
|
|
16
|
+
type EarnFeeCollectRequestBody,
|
|
17
|
+
type EarnIncentiveClaimActionResponse,
|
|
18
|
+
type EarnIncentiveClaimRequestBody,
|
|
19
|
+
type EarnIncentiveRewardEntry,
|
|
20
|
+
type EarnIncentiveRewardsQuery,
|
|
21
|
+
type EarnIncentiveRewardsResponse,
|
|
22
|
+
type EarnIncetiveClaimRewardEntry,
|
|
23
|
+
type EarnWithdrawActionResponse,
|
|
24
|
+
type EarnWithdrawRequestBody,
|
|
25
|
+
type EthereumEarnPositionQuery,
|
|
26
|
+
type EthereumEarnPositionResponse,
|
|
27
|
+
type EthereumEarnProvider,
|
|
28
|
+
type EthereumEarnVaultDetailsResponse,
|
|
29
|
+
type ExternalTransactionWalletActionStep,
|
|
30
|
+
type ExternalTransactionWalletActionStepStatus,
|
|
31
|
+
type FailureReason,
|
|
32
|
+
type ListWalletActionsQuery,
|
|
33
|
+
type ListWalletActionsResponse,
|
|
34
|
+
type MorphoVaultDetails,
|
|
35
|
+
type SvmTransactionWalletActionStep,
|
|
36
|
+
type SvmWalletActionStepStatus,
|
|
37
|
+
type SwapActionResponse,
|
|
38
|
+
type TvmTransactionWalletActionStep,
|
|
39
|
+
type TvmWalletActionStepStatus,
|
|
40
|
+
type TransferActionResponse,
|
|
41
|
+
type VedaVaultDetails,
|
|
42
|
+
type WalletActionInclude,
|
|
43
|
+
type WalletActionResponse,
|
|
44
|
+
type WalletActionStatus,
|
|
45
|
+
type WalletActionStep,
|
|
46
|
+
type WalletActionStepType,
|
|
47
|
+
type WalletActionType,
|
|
48
|
+
} from './actions';
|
|
3
49
|
export { Balance, type BalanceGetResponse, type BalanceGetParams } from './balance';
|
|
4
50
|
export { Transactions, type TransactionGetResponse, type TransactionGetParams } from './transactions';
|
|
5
51
|
export {
|
|
@@ -128,9 +174,13 @@ export {
|
|
|
128
174
|
type SparkClaimStaticDepositRpcInputParams,
|
|
129
175
|
type SparkClaimStaticDepositRpcResponse,
|
|
130
176
|
type SparkClaimStaticDepositRpcResponseData,
|
|
177
|
+
type SparkCoopExitFeeQuote,
|
|
178
|
+
type SparkCoopExitRequest,
|
|
131
179
|
type SparkCreateLightningInvoiceRpcInput,
|
|
132
180
|
type SparkCreateLightningInvoiceRpcInputParams,
|
|
133
181
|
type SparkCreateLightningInvoiceRpcResponse,
|
|
182
|
+
type SparkCurrencyAmount,
|
|
183
|
+
type SparkExitSpeed,
|
|
134
184
|
type SparkGetBalanceRpcInput,
|
|
135
185
|
type SparkGetBalanceRpcResponse,
|
|
136
186
|
type SparkGetClaimStaticDepositQuoteRpcInput,
|
|
@@ -140,6 +190,9 @@ export {
|
|
|
140
190
|
type SparkGetStaticDepositAddressRpcInput,
|
|
141
191
|
type SparkGetStaticDepositAddressRpcResponse,
|
|
142
192
|
type SparkGetStaticDepositAddressRpcResponseData,
|
|
193
|
+
type SparkGetWithdrawalFeeQuoteRpcInput,
|
|
194
|
+
type SparkGetWithdrawalFeeQuoteRpcInputParams,
|
|
195
|
+
type SparkGetWithdrawalFeeQuoteRpcResponse,
|
|
143
196
|
type SparkLightningFee,
|
|
144
197
|
type SparkLightningReceiveRequest,
|
|
145
198
|
type SparkLightningSendRequest,
|
|
@@ -167,6 +220,9 @@ export {
|
|
|
167
220
|
type SparkTransferTokensRpcResponseData,
|
|
168
221
|
type SparkUserTokenMetadata,
|
|
169
222
|
type SparkWalletLeaf,
|
|
223
|
+
type SparkWithdrawRpcInput,
|
|
224
|
+
type SparkWithdrawRpcInputParams,
|
|
225
|
+
type SparkWithdrawRpcResponse,
|
|
170
226
|
type SuiCommandName,
|
|
171
227
|
type SwapSubmissionStatus,
|
|
172
228
|
type TempoAaAuthorization,
|
|
@@ -176,6 +232,7 @@ export {
|
|
|
176
232
|
type TokenTransferDestination,
|
|
177
233
|
type TokenTransferSource,
|
|
178
234
|
type TotalFeeConfigurationBps,
|
|
235
|
+
type TransactionChainNameInput,
|
|
179
236
|
type TransactionDetail,
|
|
180
237
|
type TransactionTokenAddressInput,
|
|
181
238
|
type TransferQuoteRequestBody,
|
|
@@ -212,6 +269,7 @@ export {
|
|
|
212
269
|
type WalletAPIRegisterAuthorizationKeyInput,
|
|
213
270
|
type WalletAPIRevokeAuthorizationKeyInput,
|
|
214
271
|
type WalletAsset,
|
|
272
|
+
type WalletAssetChainNameInput,
|
|
215
273
|
type WalletAuthenticateBoundEncryptedRequestBody,
|
|
216
274
|
type WalletAuthenticateBoundRequestBody,
|
|
217
275
|
type WalletAuthenticateBoundUnencryptedRequestBody,
|
|
@@ -237,6 +295,7 @@ export {
|
|
|
237
295
|
type WalletRpcRequestBody,
|
|
238
296
|
type WalletRpcResponse,
|
|
239
297
|
type WalletSolanaAsset,
|
|
298
|
+
type WalletTronAsset,
|
|
240
299
|
type WalletUpdateRequestBody,
|
|
241
300
|
type WalletCreateParams,
|
|
242
301
|
type WalletUpdateParams,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as TransactionsAPI from '../transactions';
|
|
4
5
|
import * as WalletsAPI from './wallets';
|
|
5
6
|
import { APIPromise } from '../../core/api-promise';
|
|
6
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -49,15 +50,10 @@ export namespace TransactionGetResponse {
|
|
|
49
50
|
|
|
50
51
|
privy_transaction_id: string;
|
|
51
52
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
| 'failed'
|
|
57
|
-
| 'replaced'
|
|
58
|
-
| 'finalized'
|
|
59
|
-
| 'provider_error'
|
|
60
|
-
| 'pending';
|
|
53
|
+
/**
|
|
54
|
+
* Status of a blockchain transaction submitted by Privy.
|
|
55
|
+
*/
|
|
56
|
+
status: TransactionsAPI.BlockchainTransactionStatus;
|
|
61
57
|
|
|
62
58
|
transaction_hash: string | null;
|
|
63
59
|
|
|
@@ -77,7 +73,10 @@ export namespace TransactionGetResponse {
|
|
|
77
73
|
}
|
|
78
74
|
|
|
79
75
|
export interface TransactionGetParams {
|
|
80
|
-
|
|
76
|
+
/**
|
|
77
|
+
* Chains supported for transaction history queries.
|
|
78
|
+
*/
|
|
79
|
+
chain: WalletsAPI.TransactionChainNameInput;
|
|
81
80
|
|
|
82
81
|
/**
|
|
83
82
|
* Exactly one of `token` or `asset` is required. Cannot be used together with
|
|
@@ -95,10 +94,13 @@ export interface TransactionGetParams {
|
|
|
95
94
|
| 'eth'
|
|
96
95
|
| 'avax'
|
|
97
96
|
| 'pol'
|
|
97
|
+
| 'bnb'
|
|
98
98
|
| 'usdt'
|
|
99
99
|
| 'eurc'
|
|
100
100
|
| 'usdb'
|
|
101
|
+
| 'pathusd'
|
|
101
102
|
| 'sol'
|
|
103
|
+
| 'trx'
|
|
102
104
|
| Array<WalletsAPI.WalletAsset>;
|
|
103
105
|
|
|
104
106
|
cursor?: string;
|