@privy-io/api-types 0.7.0 → 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 +43 -0
- package/client.d.mts +37 -28
- package/client.d.mts.map +1 -1
- package/client.d.ts +37 -28
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +79 -106
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +79 -106
- 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 +139 -70
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +139 -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 +796 -427
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +796 -427
- 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 +17 -14
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +17 -14
- 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/intents.d.mts +224 -1757
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +224 -1757
- 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 +74 -26
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +74 -26
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +8 -8
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +8 -8
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/policies.d.mts +335 -926
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +335 -926
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +48 -41
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +48 -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 +155 -93
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +155 -93
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +61 -94
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +61 -94
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js.map +1 -1
- 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/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 +1 -0
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +1 -0
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/wallets.d.mts +2377 -971
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +2377 -971
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +18 -6
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +18 -6
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +438 -33
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +438 -33
- 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 +25 -1
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +25 -1
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +721 -72
- package/src/resources/accounts.ts +93 -120
- package/src/resources/aggregations.ts +18 -702
- package/src/resources/apps.ts +187 -110
- package/src/resources/client-auth.ts +1358 -893
- 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 +368 -47
- package/src/resources/intents.ts +370 -3100
- package/src/resources/key-quorums.ts +100 -32
- package/src/resources/policies.ts +583 -1558
- package/src/resources/shared.ts +79 -0
- package/src/resources/swaps.ts +136 -0
- package/src/resources/transactions.ts +185 -91
- package/src/resources/users.ts +79 -132
- package/src/resources/wallet-actions.ts +251 -0
- package/src/resources/wallets/index.ts +144 -16
- package/src/resources/wallets/transactions.ts +2 -0
- package/src/resources/wallets/wallets.ts +2893 -1023
- package/src/resources/webhooks.ts +547 -47
- package/src/resources/yield.ts +29 -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
|
@@ -1,10 +1,79 @@
|
|
|
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 SharedAPI from './shared';
|
|
4
5
|
import * as WalletsAPI from './wallets/wallets';
|
|
5
6
|
|
|
6
7
|
export class Accounts extends APIResource {}
|
|
7
8
|
|
|
9
|
+
/**
|
|
10
|
+
* A single asset entry in a balance, representing holdings across all supported
|
|
11
|
+
* chains.
|
|
12
|
+
*/
|
|
13
|
+
export interface BalanceAsset {
|
|
14
|
+
/**
|
|
15
|
+
* The amount of the asset held, denominated in the unit of the asset itself, with
|
|
16
|
+
* 1 decimal of precision.
|
|
17
|
+
*/
|
|
18
|
+
amount: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* A monetary value with its currency denomination.
|
|
22
|
+
*/
|
|
23
|
+
price: SharedAPI.CurrencyAmount;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The symbol of the asset (e.g. USDC, ETH).
|
|
27
|
+
*/
|
|
28
|
+
symbol: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* A single asset entry scoped to a specific chain.
|
|
33
|
+
*/
|
|
34
|
+
export interface BalanceAssetByChain {
|
|
35
|
+
/**
|
|
36
|
+
* The amount of the asset held on this chain, denominated in the unit of the asset
|
|
37
|
+
* itself.
|
|
38
|
+
*/
|
|
39
|
+
amount: string;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* The CAIP-2 chain identifier (e.g. eip155:8453).
|
|
43
|
+
*/
|
|
44
|
+
chain_id: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* A monetary value with its currency denomination.
|
|
48
|
+
*/
|
|
49
|
+
price: SharedAPI.CurrencyAmount;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The symbol of the asset (e.g. USDC, ETH).
|
|
53
|
+
*/
|
|
54
|
+
symbol: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Balances for an asset account or wallet
|
|
59
|
+
*/
|
|
60
|
+
export interface BalanceResponse {
|
|
61
|
+
/**
|
|
62
|
+
* The individual asset balances, each computed across all supported chains.
|
|
63
|
+
*/
|
|
64
|
+
assets: Array<BalanceAsset>;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* A monetary value with its currency denomination.
|
|
68
|
+
*/
|
|
69
|
+
total: SharedAPI.CurrencyAmount;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Individual asset balances per chain.
|
|
73
|
+
*/
|
|
74
|
+
assets_by_chain?: Array<BalanceAssetByChain>;
|
|
75
|
+
}
|
|
76
|
+
|
|
8
77
|
/**
|
|
9
78
|
* A wallet belonging to a digital asset account.
|
|
10
79
|
*/
|
|
@@ -130,7 +199,10 @@ export interface AssetAccountWithBalance {
|
|
|
130
199
|
*/
|
|
131
200
|
id: string;
|
|
132
201
|
|
|
133
|
-
|
|
202
|
+
/**
|
|
203
|
+
* Balances for an asset account or wallet
|
|
204
|
+
*/
|
|
205
|
+
balance: BalanceResponse;
|
|
134
206
|
|
|
135
207
|
/**
|
|
136
208
|
* An optional display name for the account.
|
|
@@ -143,72 +215,6 @@ export interface AssetAccountWithBalance {
|
|
|
143
215
|
wallets: Array<AccountWallet>;
|
|
144
216
|
}
|
|
145
217
|
|
|
146
|
-
export namespace AssetAccountWithBalance {
|
|
147
|
-
export interface Balance {
|
|
148
|
-
/**
|
|
149
|
-
* The individual asset balances, each computed across all supported chains.
|
|
150
|
-
*/
|
|
151
|
-
assets: Array<Balance.Asset>;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* The total balance across all assets.
|
|
155
|
-
*/
|
|
156
|
-
total: Balance.Total;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export namespace Balance {
|
|
160
|
-
export interface Asset {
|
|
161
|
-
/**
|
|
162
|
-
* The amount of the asset held, denominated in the unit of the asset itself, with
|
|
163
|
-
* 1 decimal of precision.
|
|
164
|
-
*/
|
|
165
|
-
amount: string;
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* The price of the asset in the provided currency.
|
|
169
|
-
*/
|
|
170
|
-
price: Asset.Price;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* The symbol of the asset (e.g. USDC, ETH).
|
|
174
|
-
*/
|
|
175
|
-
symbol: string;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
export namespace Asset {
|
|
179
|
-
/**
|
|
180
|
-
* The price of the asset in the provided currency.
|
|
181
|
-
*/
|
|
182
|
-
export interface Price {
|
|
183
|
-
/**
|
|
184
|
-
* The currency code.
|
|
185
|
-
*/
|
|
186
|
-
currency: 'usd';
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* The monetary value as a string.
|
|
190
|
-
*/
|
|
191
|
-
value: string;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* The total balance across all assets.
|
|
197
|
-
*/
|
|
198
|
-
export interface Total {
|
|
199
|
-
/**
|
|
200
|
-
* The currency code.
|
|
201
|
-
*/
|
|
202
|
-
currency: 'usd';
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* The monetary value as a string.
|
|
206
|
-
*/
|
|
207
|
-
value: string;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
218
|
/**
|
|
213
219
|
* Paginated list of digital asset accounts for the dashboard.
|
|
214
220
|
*/
|
|
@@ -232,68 +238,34 @@ export interface AccountBalanceResponse {
|
|
|
232
238
|
/**
|
|
233
239
|
* The individual asset balances, each computed across all supported chains.
|
|
234
240
|
*/
|
|
235
|
-
assets: Array<
|
|
241
|
+
assets: Array<BalanceAsset>;
|
|
236
242
|
|
|
237
243
|
/**
|
|
238
|
-
*
|
|
244
|
+
* A monetary value with its currency denomination.
|
|
239
245
|
*/
|
|
240
|
-
total:
|
|
246
|
+
total: SharedAPI.CurrencyAmount;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Individual asset balances per chain.
|
|
250
|
+
*/
|
|
251
|
+
assets_by_chain?: Array<BalanceAssetByChain>;
|
|
241
252
|
}
|
|
242
253
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* The price of the asset in the provided currency.
|
|
253
|
-
*/
|
|
254
|
-
price: Asset.Price;
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* The symbol of the asset (e.g. USDC, ETH).
|
|
258
|
-
*/
|
|
259
|
-
symbol: string;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
export namespace Asset {
|
|
263
|
-
/**
|
|
264
|
-
* The price of the asset in the provided currency.
|
|
265
|
-
*/
|
|
266
|
-
export interface Price {
|
|
267
|
-
/**
|
|
268
|
-
* The currency code.
|
|
269
|
-
*/
|
|
270
|
-
currency: 'usd';
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* The monetary value as a string.
|
|
274
|
-
*/
|
|
275
|
-
value: string;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* The total balance across all assets.
|
|
281
|
-
*/
|
|
282
|
-
export interface Total {
|
|
283
|
-
/**
|
|
284
|
-
* The currency code.
|
|
285
|
-
*/
|
|
286
|
-
currency: 'usd';
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* The monetary value as a string.
|
|
290
|
-
*/
|
|
291
|
-
value: string;
|
|
292
|
-
}
|
|
254
|
+
/**
|
|
255
|
+
* Query parameters for the account balance endpoint.
|
|
256
|
+
*/
|
|
257
|
+
export interface AccountBalanceParams {
|
|
258
|
+
/**
|
|
259
|
+
* When set to true, returns balances from testnet chains instead of mainnets.
|
|
260
|
+
*/
|
|
261
|
+
testnet_mode?: 'true' | 'false';
|
|
293
262
|
}
|
|
294
263
|
|
|
295
264
|
export declare namespace Accounts {
|
|
296
265
|
export {
|
|
266
|
+
type BalanceAsset as BalanceAsset,
|
|
267
|
+
type BalanceAssetByChain as BalanceAssetByChain,
|
|
268
|
+
type BalanceResponse as BalanceResponse,
|
|
297
269
|
type AccountWallet as AccountWallet,
|
|
298
270
|
type AccountResponse as AccountResponse,
|
|
299
271
|
type AccountWalletConfigurationItem as AccountWalletConfigurationItem,
|
|
@@ -305,5 +277,6 @@ export declare namespace Accounts {
|
|
|
305
277
|
type AssetAccountWithBalance as AssetAccountWithBalance,
|
|
306
278
|
type AccountsDashboardListResponse as AccountsDashboardListResponse,
|
|
307
279
|
type AccountBalanceResponse as AccountBalanceResponse,
|
|
280
|
+
type AccountBalanceParams as AccountBalanceParams,
|
|
308
281
|
};
|
|
309
282
|
}
|