@privy-io/api-types 0.9.0 → 0.11.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 +46 -0
- package/client.d.mts +40 -43
- package/client.d.mts.map +1 -1
- package/client.d.ts +40 -43
- package/client.d.ts.map +1 -1
- package/client.js +28 -20
- package/client.js.map +1 -1
- package/client.mjs +29 -21
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +128 -86
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +128 -86
- package/resources/accounts.d.ts.map +1 -1
- package/resources/aggregations.d.mts +43 -43
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +43 -43
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/apps.d.mts +169 -135
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +169 -135
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +931 -947
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +931 -947
- 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/embedded-wallets.d.mts +122 -122
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +122 -122
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/fiat.d.mts +110 -0
- package/resources/fiat.d.mts.map +1 -0
- package/resources/fiat.d.ts +110 -0
- package/resources/fiat.d.ts.map +1 -0
- package/resources/fiat.js +9 -0
- package/resources/fiat.js.map +1 -0
- package/resources/fiat.mjs +5 -0
- package/resources/fiat.mjs.map +1 -0
- package/resources/funding.d.mts +86 -86
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +86 -86
- package/resources/funding.d.ts.map +1 -1
- package/resources/index.d.mts +20 -18
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +20 -18
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +269 -265
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +269 -265
- package/resources/intents.d.ts.map +1 -1
- package/resources/key-quorums.d.mts +15 -146
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +15 -146
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +0 -92
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +0 -92
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +12 -20
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +12 -20
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/organizations.d.mts +65 -0
- package/resources/organizations.d.mts.map +1 -0
- package/resources/organizations.d.ts +65 -0
- package/resources/organizations.d.ts.map +1 -0
- package/resources/organizations.js +9 -0
- package/resources/organizations.js.map +1 -0
- package/resources/organizations.mjs +5 -0
- package/resources/organizations.mjs.map +1 -0
- package/resources/policies.d.mts +261 -553
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +261 -553
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +0 -229
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +0 -229
- package/resources/policies.mjs.map +1 -1
- package/resources/shared.d.mts +28 -28
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +28 -28
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +6 -9
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +6 -9
- package/resources/swaps.d.ts.map +1 -1
- package/resources/swaps.js.map +1 -1
- package/resources/swaps.mjs.map +1 -1
- package/resources/transactions.d.mts +80 -96
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +80 -96
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js +0 -17
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs +0 -17
- package/resources/transactions.mjs.map +1 -1
- package/resources/users.d.mts +480 -815
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +480 -815
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +0 -272
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +0 -272
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +302 -145
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +302 -145
- package/resources/wallet-actions.d.ts.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 +7 -2
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +7 -2
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +1 -1
- package/resources/wallets/transactions.mjs +1 -1
- package/resources/wallets/wallets.d.mts +1592 -1580
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +1592 -1580
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +45 -103
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +45 -103
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +935 -877
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +935 -877
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/yield.d.mts +157 -157
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +157 -157
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +650 -618
- package/src/internal/types.ts +6 -8
- package/src/resources/accounts.ts +157 -103
- package/src/resources/aggregations.ts +55 -55
- package/src/resources/apps.ts +221 -178
- package/src/resources/client-auth.ts +1271 -1315
- package/src/resources/embedded-wallets.ts +160 -160
- package/src/resources/fiat.ts +177 -0
- package/src/resources/funding.ts +130 -130
- package/src/resources/index.ts +551 -542
- package/src/resources/intents.ts +326 -322
- package/src/resources/key-quorums.ts +16 -218
- package/src/resources/kraken-embed.ts +14 -22
- package/src/resources/organizations.ts +82 -0
- package/src/resources/policies.ts +383 -848
- package/src/resources/shared.ts +34 -34
- package/src/resources/swaps.ts +5 -10
- package/src/resources/transactions.ts +116 -136
- package/src/resources/users.ts +693 -1160
- package/src/resources/wallet-actions.ts +392 -185
- package/src/resources/wallets/index.ts +160 -156
- package/src/resources/wallets/transactions.ts +18 -3
- package/src/resources/wallets/wallets.ts +2123 -2113
- package/src/resources/webhooks.ts +1172 -1100
- package/src/resources/yield.ts +188 -188
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
package/src/internal/types.ts
CHANGED
|
@@ -40,7 +40,6 @@ type OverloadedParameters<T> =
|
|
|
40
40
|
: T extends (...args: infer A) => unknown ? A
|
|
41
41
|
: never;
|
|
42
42
|
|
|
43
|
-
/* eslint-disable */
|
|
44
43
|
/**
|
|
45
44
|
* These imports attempt to get types from a parent package's dependencies.
|
|
46
45
|
* Unresolved bare specifiers can trigger [automatic type acquisition][1] in some projects, which
|
|
@@ -63,19 +62,18 @@ type OverloadedParameters<T> =
|
|
|
63
62
|
*
|
|
64
63
|
* [1]: https://www.typescriptlang.org/tsconfig/#typeAcquisition
|
|
65
64
|
*/
|
|
66
|
-
/** @ts-ignore For users with \@types/node */
|
|
65
|
+
/** @ts-ignore For users with \@types/node */ /* prettier-ignore */
|
|
67
66
|
type UndiciTypesRequestInit = NotAny<import('../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit>;
|
|
68
|
-
/** @ts-ignore For users with undici */
|
|
67
|
+
/** @ts-ignore For users with undici */ /* prettier-ignore */
|
|
69
68
|
type UndiciRequestInit = NotAny<import('../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/undici/index.d.ts').RequestInit>;
|
|
70
|
-
/** @ts-ignore For users with \@types/bun */
|
|
69
|
+
/** @ts-ignore For users with \@types/bun */ /* prettier-ignore */
|
|
71
70
|
type BunRequestInit = globalThis.FetchRequestInit;
|
|
72
|
-
/** @ts-ignore For users with node-fetch@2 */
|
|
71
|
+
/** @ts-ignore For users with node-fetch@2 */ /* prettier-ignore */
|
|
73
72
|
type NodeFetch2RequestInit = NotAny<import('../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit>;
|
|
74
|
-
/** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */
|
|
73
|
+
/** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */ /* prettier-ignore */
|
|
75
74
|
type NodeFetch3RequestInit = NotAny<import('../node_modules/node-fetch').RequestInit> | NotAny<import('../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/node-fetch').RequestInit>;
|
|
76
|
-
/** @ts-ignore For users who use Deno */
|
|
75
|
+
/** @ts-ignore For users who use Deno */ /* prettier-ignore */
|
|
77
76
|
type FetchRequestInit = NonNullable<OverloadedParameters<typeof fetch>[1]>;
|
|
78
|
-
/* eslint-enable */
|
|
79
77
|
|
|
80
78
|
type RequestInits =
|
|
81
79
|
| NotAny<UndiciTypesRequestInit>
|
|
@@ -7,71 +7,59 @@ import * as WalletsAPI from './wallets/wallets';
|
|
|
7
7
|
export class Accounts extends APIResource {}
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
* chains.
|
|
10
|
+
* Query parameters for the account balance endpoint.
|
|
12
11
|
*/
|
|
13
|
-
export interface
|
|
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
|
-
|
|
12
|
+
export interface AccountBalanceParams {
|
|
25
13
|
/**
|
|
26
|
-
*
|
|
14
|
+
* When set to true, returns balances from testnet chains instead of mainnets.
|
|
27
15
|
*/
|
|
28
|
-
|
|
16
|
+
testnet_mode?: 'true' | 'false';
|
|
29
17
|
}
|
|
30
18
|
|
|
31
19
|
/**
|
|
32
|
-
*
|
|
20
|
+
* The balance of a digital asset account, aggregated across all wallets and
|
|
21
|
+
* supported chains.
|
|
33
22
|
*/
|
|
34
|
-
export interface
|
|
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
|
-
|
|
23
|
+
export interface AccountBalanceResponse {
|
|
41
24
|
/**
|
|
42
|
-
* The
|
|
25
|
+
* The individual asset balances, each computed across all supported chains.
|
|
43
26
|
*/
|
|
44
|
-
|
|
27
|
+
assets: Array<BalanceAsset>;
|
|
45
28
|
|
|
46
29
|
/**
|
|
47
30
|
* A monetary value with its currency denomination.
|
|
48
31
|
*/
|
|
49
|
-
|
|
32
|
+
total: SharedAPI.CurrencyAmount;
|
|
50
33
|
|
|
51
34
|
/**
|
|
52
|
-
*
|
|
35
|
+
* Individual asset balances per chain.
|
|
53
36
|
*/
|
|
54
|
-
|
|
37
|
+
assets_by_chain?: Array<BalanceAssetByChain>;
|
|
55
38
|
}
|
|
56
39
|
|
|
57
40
|
/**
|
|
58
|
-
*
|
|
41
|
+
* An optional display name for the account.
|
|
59
42
|
*/
|
|
60
|
-
export
|
|
43
|
+
export type AccountDisplayName = string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* A digital asset account that groups wallets under a single entity.
|
|
47
|
+
*/
|
|
48
|
+
export interface AccountResponse {
|
|
61
49
|
/**
|
|
62
|
-
* The
|
|
50
|
+
* The account ID.
|
|
63
51
|
*/
|
|
64
|
-
|
|
52
|
+
id: string;
|
|
65
53
|
|
|
66
54
|
/**
|
|
67
|
-
*
|
|
55
|
+
* An optional display name for the account.
|
|
68
56
|
*/
|
|
69
|
-
|
|
57
|
+
display_name: string | null;
|
|
70
58
|
|
|
71
59
|
/**
|
|
72
|
-
*
|
|
60
|
+
* The wallets belonging to this account.
|
|
73
61
|
*/
|
|
74
|
-
|
|
62
|
+
wallets: Array<AccountWallet>;
|
|
75
63
|
}
|
|
76
64
|
|
|
77
65
|
/**
|
|
@@ -99,26 +87,6 @@ export interface AccountWallet {
|
|
|
99
87
|
custody?: WalletsAPI.WalletCustodian;
|
|
100
88
|
}
|
|
101
89
|
|
|
102
|
-
/**
|
|
103
|
-
* A digital asset account that groups wallets under a single entity.
|
|
104
|
-
*/
|
|
105
|
-
export interface AccountResponse {
|
|
106
|
-
/**
|
|
107
|
-
* The account ID.
|
|
108
|
-
*/
|
|
109
|
-
id: string;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* An optional display name for the account.
|
|
113
|
-
*/
|
|
114
|
-
display_name: string | null;
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* The wallets belonging to this account.
|
|
118
|
-
*/
|
|
119
|
-
wallets: Array<AccountWallet>;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
90
|
/**
|
|
123
91
|
* Configuration for a wallet to create within an account.
|
|
124
92
|
*/
|
|
@@ -135,9 +103,9 @@ export interface AccountWalletConfigurationItem {
|
|
|
135
103
|
}
|
|
136
104
|
|
|
137
105
|
/**
|
|
138
|
-
*
|
|
106
|
+
* IDs for wallets to include in this account.
|
|
139
107
|
*/
|
|
140
|
-
export type
|
|
108
|
+
export type AccountWalletIDs = Array<string>;
|
|
141
109
|
|
|
142
110
|
/**
|
|
143
111
|
* Configuration for the wallets on this account.
|
|
@@ -145,33 +113,18 @@ export type AccountDisplayName = string;
|
|
|
145
113
|
export type AccountWalletsConfiguration = Array<AccountWalletConfigurationItem>;
|
|
146
114
|
|
|
147
115
|
/**
|
|
148
|
-
*
|
|
149
|
-
*/
|
|
150
|
-
export interface CreateAccountInput {
|
|
151
|
-
/**
|
|
152
|
-
* Configuration for the wallets on this account.
|
|
153
|
-
*/
|
|
154
|
-
wallets_configuration: AccountWalletsConfiguration;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* An optional display name for the account.
|
|
158
|
-
*/
|
|
159
|
-
display_name?: AccountDisplayName;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Input for updating a digital asset account.
|
|
116
|
+
* Paginated list of digital asset accounts for the dashboard.
|
|
164
117
|
*/
|
|
165
|
-
export interface
|
|
118
|
+
export interface AccountsDashboardListResponse {
|
|
166
119
|
/**
|
|
167
|
-
*
|
|
120
|
+
* The list of accounts, with balances included for dashboard display.
|
|
168
121
|
*/
|
|
169
|
-
|
|
122
|
+
data: Array<AssetAccountWithBalance>;
|
|
170
123
|
|
|
171
124
|
/**
|
|
172
|
-
*
|
|
125
|
+
* Cursor for fetching the next page of results, or null if no more results.
|
|
173
126
|
*/
|
|
174
|
-
|
|
127
|
+
next_cursor: string | null;
|
|
175
128
|
}
|
|
176
129
|
|
|
177
130
|
/**
|
|
@@ -216,25 +169,57 @@ export interface AssetAccountWithBalance {
|
|
|
216
169
|
}
|
|
217
170
|
|
|
218
171
|
/**
|
|
219
|
-
*
|
|
172
|
+
* A single asset entry in a balance, representing holdings across all supported
|
|
173
|
+
* chains.
|
|
220
174
|
*/
|
|
221
|
-
export interface
|
|
175
|
+
export interface BalanceAsset {
|
|
222
176
|
/**
|
|
223
|
-
* The
|
|
177
|
+
* The amount of the asset held, denominated in the unit of the asset itself, with
|
|
178
|
+
* 1 decimal of precision.
|
|
224
179
|
*/
|
|
225
|
-
|
|
180
|
+
amount: string;
|
|
226
181
|
|
|
227
182
|
/**
|
|
228
|
-
*
|
|
183
|
+
* A monetary value with its currency denomination.
|
|
229
184
|
*/
|
|
230
|
-
|
|
185
|
+
price: SharedAPI.CurrencyAmount;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* The symbol of the asset (e.g. USDC, ETH).
|
|
189
|
+
*/
|
|
190
|
+
symbol: string;
|
|
231
191
|
}
|
|
232
192
|
|
|
233
193
|
/**
|
|
234
|
-
*
|
|
235
|
-
* supported chains.
|
|
194
|
+
* A single asset entry scoped to a specific chain.
|
|
236
195
|
*/
|
|
237
|
-
export interface
|
|
196
|
+
export interface BalanceAssetByChain {
|
|
197
|
+
/**
|
|
198
|
+
* The amount of the asset held on this chain, denominated in the unit of the asset
|
|
199
|
+
* itself.
|
|
200
|
+
*/
|
|
201
|
+
amount: string;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* The CAIP-2 chain identifier (e.g. eip155:8453).
|
|
205
|
+
*/
|
|
206
|
+
chain_id: string;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* A monetary value with its currency denomination.
|
|
210
|
+
*/
|
|
211
|
+
price: SharedAPI.CurrencyAmount;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* The symbol of the asset (e.g. USDC, ETH).
|
|
215
|
+
*/
|
|
216
|
+
symbol: string;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Balances for an asset account or wallet
|
|
221
|
+
*/
|
|
222
|
+
export interface BalanceResponse {
|
|
238
223
|
/**
|
|
239
224
|
* The individual asset balances, each computed across all supported chains.
|
|
240
225
|
*/
|
|
@@ -252,31 +237,100 @@ export interface AccountBalanceResponse {
|
|
|
252
237
|
}
|
|
253
238
|
|
|
254
239
|
/**
|
|
255
|
-
*
|
|
240
|
+
* Input for creating a digital asset account from existing wallets with a
|
|
241
|
+
* `wallet_ids` parameter.
|
|
256
242
|
*/
|
|
257
|
-
export interface
|
|
243
|
+
export interface CreateAccountFromWalletIDsInput {
|
|
258
244
|
/**
|
|
259
|
-
*
|
|
245
|
+
* IDs for wallets to include in this account.
|
|
260
246
|
*/
|
|
261
|
-
|
|
247
|
+
wallet_ids: AccountWalletIDs;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* An optional display name for the account.
|
|
251
|
+
*/
|
|
252
|
+
display_name?: AccountDisplayName;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Input for creating a digital asset account from new wallets with a
|
|
257
|
+
* `wallets_configuration` specification.
|
|
258
|
+
*/
|
|
259
|
+
export interface CreateAccountFromWalletsConfigurationInput {
|
|
260
|
+
/**
|
|
261
|
+
* Configuration for the wallets on this account.
|
|
262
|
+
*/
|
|
263
|
+
wallets_configuration: AccountWalletsConfiguration;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* An optional display name for the account.
|
|
267
|
+
*/
|
|
268
|
+
display_name?: AccountDisplayName;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Input for creating a digital asset account.
|
|
273
|
+
*/
|
|
274
|
+
export type CreateAccountInput = CreateAccountFromWalletsConfigurationInput | CreateAccountFromWalletIDsInput;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Input for updating a digital asset account by adding existing wallets with a
|
|
278
|
+
* `wallet_ids` parameter.
|
|
279
|
+
*/
|
|
280
|
+
export interface UpdateAccountFromWalletIDsInput {
|
|
281
|
+
/**
|
|
282
|
+
* IDs for wallets to include in this account.
|
|
283
|
+
*/
|
|
284
|
+
wallet_ids: AccountWalletIDs;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* An optional display name for the account.
|
|
288
|
+
*/
|
|
289
|
+
display_name?: AccountDisplayName;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Input for updating a digital asset account with a `wallets_configuration`
|
|
294
|
+
* specification.
|
|
295
|
+
*/
|
|
296
|
+
export interface UpdateAccountFromWalletsConfigurationInput {
|
|
297
|
+
/**
|
|
298
|
+
* An optional display name for the account.
|
|
299
|
+
*/
|
|
300
|
+
display_name?: AccountDisplayName;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Configuration for the wallets on this account.
|
|
304
|
+
*/
|
|
305
|
+
wallets_configuration?: AccountWalletsConfiguration;
|
|
262
306
|
}
|
|
263
307
|
|
|
308
|
+
/**
|
|
309
|
+
* Input for updating a digital asset account.
|
|
310
|
+
*/
|
|
311
|
+
export type UpdateAccountInput = UpdateAccountFromWalletsConfigurationInput | UpdateAccountFromWalletIDsInput;
|
|
312
|
+
|
|
264
313
|
export declare namespace Accounts {
|
|
265
314
|
export {
|
|
266
|
-
type
|
|
267
|
-
type
|
|
268
|
-
type
|
|
269
|
-
type AccountWallet as AccountWallet,
|
|
315
|
+
type AccountBalanceParams as AccountBalanceParams,
|
|
316
|
+
type AccountBalanceResponse as AccountBalanceResponse,
|
|
317
|
+
type AccountDisplayName as AccountDisplayName,
|
|
270
318
|
type AccountResponse as AccountResponse,
|
|
319
|
+
type AccountWallet as AccountWallet,
|
|
271
320
|
type AccountWalletConfigurationItem as AccountWalletConfigurationItem,
|
|
272
|
-
type
|
|
321
|
+
type AccountWalletIDs as AccountWalletIDs,
|
|
273
322
|
type AccountWalletsConfiguration as AccountWalletsConfiguration,
|
|
274
|
-
type
|
|
275
|
-
type UpdateAccountInput as UpdateAccountInput,
|
|
323
|
+
type AccountsDashboardListResponse as AccountsDashboardListResponse,
|
|
276
324
|
type AccountsListResponse as AccountsListResponse,
|
|
277
325
|
type AssetAccountWithBalance as AssetAccountWithBalance,
|
|
278
|
-
type
|
|
279
|
-
type
|
|
280
|
-
type
|
|
326
|
+
type BalanceAsset as BalanceAsset,
|
|
327
|
+
type BalanceAssetByChain as BalanceAssetByChain,
|
|
328
|
+
type BalanceResponse as BalanceResponse,
|
|
329
|
+
type CreateAccountFromWalletIDsInput as CreateAccountFromWalletIDsInput,
|
|
330
|
+
type CreateAccountFromWalletsConfigurationInput as CreateAccountFromWalletsConfigurationInput,
|
|
331
|
+
type CreateAccountInput as CreateAccountInput,
|
|
332
|
+
type UpdateAccountFromWalletIDsInput as UpdateAccountFromWalletIDsInput,
|
|
333
|
+
type UpdateAccountFromWalletsConfigurationInput as UpdateAccountFromWalletsConfigurationInput,
|
|
334
|
+
type UpdateAccountInput as UpdateAccountInput,
|
|
281
335
|
};
|
|
282
336
|
}
|
|
@@ -6,58 +6,6 @@ import * as SharedAPI from './shared';
|
|
|
6
6
|
|
|
7
7
|
export class Aggregations extends APIResource {}
|
|
8
8
|
|
|
9
|
-
/**
|
|
10
|
-
* The RPC method this aggregation applies to.
|
|
11
|
-
*/
|
|
12
|
-
export type AggregationMethod = 'eth_signTransaction' | 'eth_signUserOperation';
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* The metric configuration for an aggregation, defining what field/field_source to
|
|
16
|
-
* measure and the aggregation function to apply.
|
|
17
|
-
*/
|
|
18
|
-
export interface AggregationMetric {
|
|
19
|
-
field: string;
|
|
20
|
-
|
|
21
|
-
field_source: string;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* The aggregation function to apply.
|
|
25
|
-
*/
|
|
26
|
-
function: 'sum';
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* A Solidity ABI definition for decoding smart contract calldata.
|
|
30
|
-
*/
|
|
31
|
-
abi?: PoliciesAPI.AbiSchema;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* The time window configuration for an aggregation.
|
|
36
|
-
*/
|
|
37
|
-
export interface AggregationWindow {
|
|
38
|
-
/**
|
|
39
|
-
* Duration of the rolling window in seconds (1-72 hours).
|
|
40
|
-
*/
|
|
41
|
-
seconds: number;
|
|
42
|
-
|
|
43
|
-
type: 'rolling';
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* A grouping configuration for an aggregation. Maximum of 2 group_by fields
|
|
48
|
-
* allowed.
|
|
49
|
-
*/
|
|
50
|
-
export interface AggregationGroupBy {
|
|
51
|
-
field: string;
|
|
52
|
-
|
|
53
|
-
field_source: string;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* A Solidity ABI definition for decoding smart contract calldata.
|
|
57
|
-
*/
|
|
58
|
-
abi?: PoliciesAPI.AbiSchema;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
9
|
/**
|
|
62
10
|
* An aggregation that measures and tracks metrics over a period of time.
|
|
63
11
|
*/
|
|
@@ -109,6 +57,21 @@ export interface Aggregation {
|
|
|
109
57
|
group_by?: Array<AggregationGroupBy>;
|
|
110
58
|
}
|
|
111
59
|
|
|
60
|
+
/**
|
|
61
|
+
* A grouping configuration for an aggregation. Maximum of 2 group_by fields
|
|
62
|
+
* allowed.
|
|
63
|
+
*/
|
|
64
|
+
export interface AggregationGroupBy {
|
|
65
|
+
field: string;
|
|
66
|
+
|
|
67
|
+
field_source: string;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* A Solidity ABI definition for decoding smart contract calldata.
|
|
71
|
+
*/
|
|
72
|
+
abi?: PoliciesAPI.AbiSchema;
|
|
73
|
+
}
|
|
74
|
+
|
|
112
75
|
/**
|
|
113
76
|
* Input for creating an aggregation.
|
|
114
77
|
*/
|
|
@@ -157,13 +120,50 @@ export interface AggregationInput {
|
|
|
157
120
|
owner_id?: SharedAPI.OwnerIDInput | null;
|
|
158
121
|
}
|
|
159
122
|
|
|
123
|
+
/**
|
|
124
|
+
* The RPC method this aggregation applies to.
|
|
125
|
+
*/
|
|
126
|
+
export type AggregationMethod = 'eth_signTransaction' | 'eth_signUserOperation';
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* The metric configuration for an aggregation, defining what field/field_source to
|
|
130
|
+
* measure and the aggregation function to apply.
|
|
131
|
+
*/
|
|
132
|
+
export interface AggregationMetric {
|
|
133
|
+
field: string;
|
|
134
|
+
|
|
135
|
+
field_source: string;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* The aggregation function to apply.
|
|
139
|
+
*/
|
|
140
|
+
function: 'sum';
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* A Solidity ABI definition for decoding smart contract calldata.
|
|
144
|
+
*/
|
|
145
|
+
abi?: PoliciesAPI.AbiSchema;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* The time window configuration for an aggregation.
|
|
150
|
+
*/
|
|
151
|
+
export interface AggregationWindow {
|
|
152
|
+
/**
|
|
153
|
+
* Duration of the rolling window in seconds (1-72 hours).
|
|
154
|
+
*/
|
|
155
|
+
seconds: number;
|
|
156
|
+
|
|
157
|
+
type: 'rolling';
|
|
158
|
+
}
|
|
159
|
+
|
|
160
160
|
export declare namespace Aggregations {
|
|
161
161
|
export {
|
|
162
|
+
type Aggregation as Aggregation,
|
|
163
|
+
type AggregationGroupBy as AggregationGroupBy,
|
|
164
|
+
type AggregationInput as AggregationInput,
|
|
162
165
|
type AggregationMethod as AggregationMethod,
|
|
163
166
|
type AggregationMetric as AggregationMetric,
|
|
164
167
|
type AggregationWindow as AggregationWindow,
|
|
165
|
-
type AggregationGroupBy as AggregationGroupBy,
|
|
166
|
-
type Aggregation as Aggregation,
|
|
167
|
-
type AggregationInput as AggregationInput,
|
|
168
168
|
};
|
|
169
169
|
}
|