@privy-io/api-types 0.3.4 → 0.5.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 +82 -0
- package/LICENSE +1 -1
- package/README.md +31 -0
- package/client.d.mts +21 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +21 -11
- package/client.d.ts.map +1 -1
- package/client.js +20 -3
- package/client.js.map +1 -1
- package/client.mjs +20 -3
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/aggregations.d.mts +507 -0
- package/resources/aggregations.d.mts.map +1 -0
- package/resources/aggregations.d.ts +507 -0
- package/resources/aggregations.d.ts.map +1 -0
- package/resources/aggregations.js +9 -0
- package/resources/aggregations.js.map +1 -0
- package/resources/aggregations.mjs +5 -0
- package/resources/aggregations.mjs.map +1 -0
- package/resources/client-auth.d.mts +183 -24
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +183 -24
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/funding.d.mts +4 -4
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +4 -4
- package/resources/funding.d.ts.map +1 -1
- package/resources/index.d.mts +7 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +7 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/key-quorums.d.mts +4 -1
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +4 -1
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/policies.d.mts +89 -135
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +89 -135
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs.map +1 -1
- package/resources/users.d.mts +679 -415
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +679 -415
- package/resources/users.d.ts.map +1 -1
- package/resources/wallets/balance.d.mts +11 -6
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +11 -6
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.js +1 -2
- package/resources/wallets/balance.js.map +1 -1
- package/resources/wallets/balance.mjs +1 -2
- 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 +3 -3
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +3 -3
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/wallets.d.mts +347 -65
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +347 -65
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +1 -1
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +1 -1
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +940 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +940 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +9 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +5 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources/yield.d.mts +264 -0
- package/resources/yield.d.mts.map +1 -0
- package/resources/yield.d.ts +264 -0
- package/resources/yield.d.ts.map +1 -0
- package/resources/yield.js +9 -0
- package/resources/yield.js.map +1 -0
- package/resources/yield.mjs +5 -0
- package/resources/yield.mjs.map +1 -0
- package/src/client.ts +331 -16
- package/src/internal/parse.ts +6 -0
- package/src/resources/aggregations.ts +853 -0
- package/src/resources/client-auth.ts +309 -35
- package/src/resources/funding.ts +4 -1
- package/src/resources/index.ts +156 -9
- package/src/resources/key-quorums.ts +4 -1
- package/src/resources/policies.ts +129 -214
- package/src/resources/users.ts +974 -650
- package/src/resources/wallets/balance.ts +24 -6
- package/src/resources/wallets/index.ts +13 -3
- package/src/resources/wallets/transactions.ts +11 -3
- package/src/resources/wallets/wallets.ts +468 -91
- package/src/resources/webhooks.ts +1287 -0
- package/src/resources/yield.ts +330 -0
- 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
|
@@ -13,11 +13,14 @@ export class Balance extends APIResource {
|
|
|
13
13
|
* ```ts
|
|
14
14
|
* const balance = await client.wallets.balance.get(
|
|
15
15
|
* 'wallet_id',
|
|
16
|
-
* { asset: 'usdc', chain: 'ethereum' },
|
|
17
16
|
* );
|
|
18
17
|
* ```
|
|
19
18
|
*/
|
|
20
|
-
get(
|
|
19
|
+
get(
|
|
20
|
+
walletID: string,
|
|
21
|
+
query: BalanceGetParams | null | undefined = {},
|
|
22
|
+
options?: RequestOptions,
|
|
23
|
+
): APIPromise<BalanceGetResponse> {
|
|
21
24
|
return this._client.get(path`/v1/wallets/${walletID}/balance`, { query, ...options });
|
|
22
25
|
}
|
|
23
26
|
}
|
|
@@ -28,7 +31,7 @@ export interface BalanceGetResponse {
|
|
|
28
31
|
|
|
29
32
|
export namespace BalanceGetResponse {
|
|
30
33
|
export interface Balance {
|
|
31
|
-
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'sol';
|
|
34
|
+
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
32
35
|
|
|
33
36
|
chain:
|
|
34
37
|
| 'ethereum'
|
|
@@ -57,9 +60,24 @@ export namespace BalanceGetResponse {
|
|
|
57
60
|
}
|
|
58
61
|
|
|
59
62
|
export interface BalanceGetParams {
|
|
60
|
-
|
|
63
|
+
/**
|
|
64
|
+
* The token contract address(es) to query in format "chain:address" (e.g.,
|
|
65
|
+
* "base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" or
|
|
66
|
+
* "solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v").
|
|
67
|
+
*/
|
|
68
|
+
token?: string | Array<string>;
|
|
69
|
+
|
|
70
|
+
asset?:
|
|
71
|
+
| 'usdc'
|
|
72
|
+
| 'eth'
|
|
73
|
+
| 'pol'
|
|
74
|
+
| 'usdt'
|
|
75
|
+
| 'eurc'
|
|
76
|
+
| 'usdb'
|
|
77
|
+
| 'sol'
|
|
78
|
+
| Array<'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol'>;
|
|
61
79
|
|
|
62
|
-
chain
|
|
80
|
+
chain?:
|
|
63
81
|
| 'ethereum'
|
|
64
82
|
| 'arbitrum'
|
|
65
83
|
| 'base'
|
|
@@ -95,7 +113,7 @@ export interface BalanceGetParams {
|
|
|
95
113
|
| 'solana_testnet'
|
|
96
114
|
>;
|
|
97
115
|
|
|
98
|
-
include_currency?: 'usd';
|
|
116
|
+
include_currency?: 'usd' | 'eur';
|
|
99
117
|
}
|
|
100
118
|
|
|
101
119
|
export declare namespace Balance {
|
|
@@ -4,13 +4,23 @@ export { Balance, type BalanceGetResponse, type BalanceGetParams } from './balan
|
|
|
4
4
|
export { Transactions, type TransactionGetResponse, type TransactionGetParams } from './transactions';
|
|
5
5
|
export {
|
|
6
6
|
Wallets,
|
|
7
|
+
type WalletRevokeResponse,
|
|
7
8
|
type CurveSigningChainType,
|
|
9
|
+
type ExtendedChainType,
|
|
8
10
|
type FirstClassChainType,
|
|
9
|
-
type Wallet,
|
|
10
11
|
type WalletChainType,
|
|
11
|
-
type WalletRevokeResponse,
|
|
12
|
-
type ExtendedChainType,
|
|
13
12
|
type WalletCustodian,
|
|
13
|
+
type CustodialWalletProvider,
|
|
14
|
+
type CustodialWalletChainType,
|
|
15
|
+
type CustodialWalletCreateInput,
|
|
16
|
+
type CustodialWallet,
|
|
17
|
+
type HpkeImportConfig,
|
|
18
|
+
type SuiCommandName,
|
|
19
|
+
type Wallet,
|
|
20
|
+
type WalletBatchItemInput,
|
|
21
|
+
type WalletBatchCreateInput,
|
|
22
|
+
type WalletBatchCreateResult,
|
|
23
|
+
type WalletBatchCreateResponse,
|
|
14
24
|
type EthereumPersonalSignRpcInput,
|
|
15
25
|
type EthereumSignTransactionRpcInput,
|
|
16
26
|
type EthereumSendTransactionRpcInput,
|
|
@@ -61,7 +61,7 @@ export namespace TransactionGetResponse {
|
|
|
61
61
|
|
|
62
62
|
export namespace Transaction {
|
|
63
63
|
export interface UnionMember0 {
|
|
64
|
-
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'sol';
|
|
64
|
+
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
65
65
|
|
|
66
66
|
chain:
|
|
67
67
|
| 'ethereum'
|
|
@@ -99,7 +99,7 @@ export namespace TransactionGetResponse {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
export interface UnionMember1 {
|
|
102
|
-
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'sol';
|
|
102
|
+
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
103
103
|
|
|
104
104
|
chain:
|
|
105
105
|
| 'ethereum'
|
|
@@ -139,7 +139,15 @@ export namespace TransactionGetResponse {
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
export interface TransactionGetParams {
|
|
142
|
-
asset:
|
|
142
|
+
asset:
|
|
143
|
+
| 'usdc'
|
|
144
|
+
| 'eth'
|
|
145
|
+
| 'pol'
|
|
146
|
+
| 'usdt'
|
|
147
|
+
| 'eurc'
|
|
148
|
+
| 'usdb'
|
|
149
|
+
| 'sol'
|
|
150
|
+
| Array<'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol'>;
|
|
143
151
|
|
|
144
152
|
chain: 'ethereum' | 'arbitrum' | 'base' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'sepolia';
|
|
145
153
|
|