@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.
Files changed (180) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/client.d.mts +40 -43
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +40 -43
  5. package/client.d.ts.map +1 -1
  6. package/client.js +28 -20
  7. package/client.js.map +1 -1
  8. package/client.mjs +29 -21
  9. package/client.mjs.map +1 -1
  10. package/internal/types.d.mts +6 -6
  11. package/internal/types.d.mts.map +1 -1
  12. package/internal/types.d.ts +6 -6
  13. package/internal/types.d.ts.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/accounts.d.mts +128 -86
  16. package/resources/accounts.d.mts.map +1 -1
  17. package/resources/accounts.d.ts +128 -86
  18. package/resources/accounts.d.ts.map +1 -1
  19. package/resources/aggregations.d.mts +43 -43
  20. package/resources/aggregations.d.mts.map +1 -1
  21. package/resources/aggregations.d.ts +43 -43
  22. package/resources/aggregations.d.ts.map +1 -1
  23. package/resources/apps.d.mts +169 -135
  24. package/resources/apps.d.mts.map +1 -1
  25. package/resources/apps.d.ts +169 -135
  26. package/resources/apps.d.ts.map +1 -1
  27. package/resources/client-auth.d.mts +931 -947
  28. package/resources/client-auth.d.mts.map +1 -1
  29. package/resources/client-auth.d.ts +931 -947
  30. package/resources/client-auth.d.ts.map +1 -1
  31. package/resources/client-auth.js.map +1 -1
  32. package/resources/client-auth.mjs.map +1 -1
  33. package/resources/embedded-wallets.d.mts +122 -122
  34. package/resources/embedded-wallets.d.mts.map +1 -1
  35. package/resources/embedded-wallets.d.ts +122 -122
  36. package/resources/embedded-wallets.d.ts.map +1 -1
  37. package/resources/fiat.d.mts +110 -0
  38. package/resources/fiat.d.mts.map +1 -0
  39. package/resources/fiat.d.ts +110 -0
  40. package/resources/fiat.d.ts.map +1 -0
  41. package/resources/fiat.js +9 -0
  42. package/resources/fiat.js.map +1 -0
  43. package/resources/fiat.mjs +5 -0
  44. package/resources/fiat.mjs.map +1 -0
  45. package/resources/funding.d.mts +86 -86
  46. package/resources/funding.d.mts.map +1 -1
  47. package/resources/funding.d.ts +86 -86
  48. package/resources/funding.d.ts.map +1 -1
  49. package/resources/index.d.mts +20 -18
  50. package/resources/index.d.mts.map +1 -1
  51. package/resources/index.d.ts +20 -18
  52. package/resources/index.d.ts.map +1 -1
  53. package/resources/index.js +5 -1
  54. package/resources/index.js.map +1 -1
  55. package/resources/index.mjs +3 -1
  56. package/resources/index.mjs.map +1 -1
  57. package/resources/intents.d.mts +269 -265
  58. package/resources/intents.d.mts.map +1 -1
  59. package/resources/intents.d.ts +269 -265
  60. package/resources/intents.d.ts.map +1 -1
  61. package/resources/key-quorums.d.mts +15 -146
  62. package/resources/key-quorums.d.mts.map +1 -1
  63. package/resources/key-quorums.d.ts +15 -146
  64. package/resources/key-quorums.d.ts.map +1 -1
  65. package/resources/key-quorums.js +0 -92
  66. package/resources/key-quorums.js.map +1 -1
  67. package/resources/key-quorums.mjs +0 -92
  68. package/resources/key-quorums.mjs.map +1 -1
  69. package/resources/kraken-embed.d.mts +12 -20
  70. package/resources/kraken-embed.d.mts.map +1 -1
  71. package/resources/kraken-embed.d.ts +12 -20
  72. package/resources/kraken-embed.d.ts.map +1 -1
  73. package/resources/organizations.d.mts +65 -0
  74. package/resources/organizations.d.mts.map +1 -0
  75. package/resources/organizations.d.ts +65 -0
  76. package/resources/organizations.d.ts.map +1 -0
  77. package/resources/organizations.js +9 -0
  78. package/resources/organizations.js.map +1 -0
  79. package/resources/organizations.mjs +5 -0
  80. package/resources/organizations.mjs.map +1 -0
  81. package/resources/policies.d.mts +261 -553
  82. package/resources/policies.d.mts.map +1 -1
  83. package/resources/policies.d.ts +261 -553
  84. package/resources/policies.d.ts.map +1 -1
  85. package/resources/policies.js +0 -229
  86. package/resources/policies.js.map +1 -1
  87. package/resources/policies.mjs +0 -229
  88. package/resources/policies.mjs.map +1 -1
  89. package/resources/shared.d.mts +28 -28
  90. package/resources/shared.d.mts.map +1 -1
  91. package/resources/shared.d.ts +28 -28
  92. package/resources/shared.d.ts.map +1 -1
  93. package/resources/swaps.d.mts +6 -9
  94. package/resources/swaps.d.mts.map +1 -1
  95. package/resources/swaps.d.ts +6 -9
  96. package/resources/swaps.d.ts.map +1 -1
  97. package/resources/swaps.js.map +1 -1
  98. package/resources/swaps.mjs.map +1 -1
  99. package/resources/transactions.d.mts +80 -96
  100. package/resources/transactions.d.mts.map +1 -1
  101. package/resources/transactions.d.ts +80 -96
  102. package/resources/transactions.d.ts.map +1 -1
  103. package/resources/transactions.js +0 -17
  104. package/resources/transactions.js.map +1 -1
  105. package/resources/transactions.mjs +0 -17
  106. package/resources/transactions.mjs.map +1 -1
  107. package/resources/users.d.mts +480 -815
  108. package/resources/users.d.mts.map +1 -1
  109. package/resources/users.d.ts +480 -815
  110. package/resources/users.d.ts.map +1 -1
  111. package/resources/users.js +0 -272
  112. package/resources/users.js.map +1 -1
  113. package/resources/users.mjs +0 -272
  114. package/resources/users.mjs.map +1 -1
  115. package/resources/wallet-actions.d.mts +302 -145
  116. package/resources/wallet-actions.d.mts.map +1 -1
  117. package/resources/wallet-actions.d.ts +302 -145
  118. package/resources/wallet-actions.d.ts.map +1 -1
  119. package/resources/wallets/index.d.mts +1 -1
  120. package/resources/wallets/index.d.mts.map +1 -1
  121. package/resources/wallets/index.d.ts +1 -1
  122. package/resources/wallets/index.d.ts.map +1 -1
  123. package/resources/wallets/index.js.map +1 -1
  124. package/resources/wallets/index.mjs.map +1 -1
  125. package/resources/wallets/transactions.d.mts +7 -2
  126. package/resources/wallets/transactions.d.mts.map +1 -1
  127. package/resources/wallets/transactions.d.ts +7 -2
  128. package/resources/wallets/transactions.d.ts.map +1 -1
  129. package/resources/wallets/transactions.js +1 -1
  130. package/resources/wallets/transactions.mjs +1 -1
  131. package/resources/wallets/wallets.d.mts +1592 -1580
  132. package/resources/wallets/wallets.d.mts.map +1 -1
  133. package/resources/wallets/wallets.d.ts +1592 -1580
  134. package/resources/wallets/wallets.d.ts.map +1 -1
  135. package/resources/wallets/wallets.js +45 -103
  136. package/resources/wallets/wallets.js.map +1 -1
  137. package/resources/wallets/wallets.mjs +45 -103
  138. package/resources/wallets/wallets.mjs.map +1 -1
  139. package/resources/webhooks.d.mts +935 -877
  140. package/resources/webhooks.d.mts.map +1 -1
  141. package/resources/webhooks.d.ts +935 -877
  142. package/resources/webhooks.d.ts.map +1 -1
  143. package/resources/yield.d.mts +157 -157
  144. package/resources/yield.d.mts.map +1 -1
  145. package/resources/yield.d.ts +157 -157
  146. package/resources/yield.d.ts.map +1 -1
  147. package/src/client.ts +650 -618
  148. package/src/internal/types.ts +6 -8
  149. package/src/resources/accounts.ts +157 -103
  150. package/src/resources/aggregations.ts +55 -55
  151. package/src/resources/apps.ts +221 -178
  152. package/src/resources/client-auth.ts +1271 -1315
  153. package/src/resources/embedded-wallets.ts +160 -160
  154. package/src/resources/fiat.ts +177 -0
  155. package/src/resources/funding.ts +130 -130
  156. package/src/resources/index.ts +551 -542
  157. package/src/resources/intents.ts +326 -322
  158. package/src/resources/key-quorums.ts +16 -218
  159. package/src/resources/kraken-embed.ts +14 -22
  160. package/src/resources/organizations.ts +82 -0
  161. package/src/resources/policies.ts +383 -848
  162. package/src/resources/shared.ts +34 -34
  163. package/src/resources/swaps.ts +5 -10
  164. package/src/resources/transactions.ts +116 -136
  165. package/src/resources/users.ts +693 -1160
  166. package/src/resources/wallet-actions.ts +392 -185
  167. package/src/resources/wallets/index.ts +160 -156
  168. package/src/resources/wallets/transactions.ts +18 -3
  169. package/src/resources/wallets/wallets.ts +2123 -2113
  170. package/src/resources/webhooks.ts +1172 -1100
  171. package/src/resources/yield.ts +188 -188
  172. package/src/version.ts +1 -1
  173. package/version.d.mts +1 -1
  174. package/version.d.mts.map +1 -1
  175. package/version.d.ts +1 -1
  176. package/version.d.ts.map +1 -1
  177. package/version.js +1 -1
  178. package/version.js.map +1 -1
  179. package/version.mjs +1 -1
  180. package/version.mjs.map +1 -1
@@ -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
- * A single asset entry in a balance, representing holdings across all supported
11
- * chains.
10
+ * Query parameters for the account balance endpoint.
12
11
  */
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
-
12
+ export interface AccountBalanceParams {
25
13
  /**
26
- * The symbol of the asset (e.g. USDC, ETH).
14
+ * When set to true, returns balances from testnet chains instead of mainnets.
27
15
  */
28
- symbol: string;
16
+ testnet_mode?: 'true' | 'false';
29
17
  }
30
18
 
31
19
  /**
32
- * A single asset entry scoped to a specific chain.
20
+ * The balance of a digital asset account, aggregated across all wallets and
21
+ * supported chains.
33
22
  */
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
-
23
+ export interface AccountBalanceResponse {
41
24
  /**
42
- * The CAIP-2 chain identifier (e.g. eip155:8453).
25
+ * The individual asset balances, each computed across all supported chains.
43
26
  */
44
- chain_id: string;
27
+ assets: Array<BalanceAsset>;
45
28
 
46
29
  /**
47
30
  * A monetary value with its currency denomination.
48
31
  */
49
- price: SharedAPI.CurrencyAmount;
32
+ total: SharedAPI.CurrencyAmount;
50
33
 
51
34
  /**
52
- * The symbol of the asset (e.g. USDC, ETH).
35
+ * Individual asset balances per chain.
53
36
  */
54
- symbol: string;
37
+ assets_by_chain?: Array<BalanceAssetByChain>;
55
38
  }
56
39
 
57
40
  /**
58
- * Balances for an asset account or wallet
41
+ * An optional display name for the account.
59
42
  */
60
- export interface BalanceResponse {
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 individual asset balances, each computed across all supported chains.
50
+ * The account ID.
63
51
  */
64
- assets: Array<BalanceAsset>;
52
+ id: string;
65
53
 
66
54
  /**
67
- * A monetary value with its currency denomination.
55
+ * An optional display name for the account.
68
56
  */
69
- total: SharedAPI.CurrencyAmount;
57
+ display_name: string | null;
70
58
 
71
59
  /**
72
- * Individual asset balances per chain.
60
+ * The wallets belonging to this account.
73
61
  */
74
- assets_by_chain?: Array<BalanceAssetByChain>;
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
- * An optional display name for the account.
106
+ * IDs for wallets to include in this account.
139
107
  */
140
- export type AccountDisplayName = string;
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
- * Input for creating a digital asset account.
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 UpdateAccountInput {
118
+ export interface AccountsDashboardListResponse {
166
119
  /**
167
- * An optional display name for the account.
120
+ * The list of accounts, with balances included for dashboard display.
168
121
  */
169
- display_name?: AccountDisplayName;
122
+ data: Array<AssetAccountWithBalance>;
170
123
 
171
124
  /**
172
- * Configuration for the wallets on this account.
125
+ * Cursor for fetching the next page of results, or null if no more results.
173
126
  */
174
- wallets_configuration?: AccountWalletsConfiguration;
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
- * Paginated list of digital asset accounts for the dashboard.
172
+ * A single asset entry in a balance, representing holdings across all supported
173
+ * chains.
220
174
  */
221
- export interface AccountsDashboardListResponse {
175
+ export interface BalanceAsset {
222
176
  /**
223
- * The list of accounts, with balances included for dashboard display.
177
+ * The amount of the asset held, denominated in the unit of the asset itself, with
178
+ * 1 decimal of precision.
224
179
  */
225
- data: Array<AssetAccountWithBalance>;
180
+ amount: string;
226
181
 
227
182
  /**
228
- * Cursor for fetching the next page of results, or null if no more results.
183
+ * A monetary value with its currency denomination.
229
184
  */
230
- next_cursor: string | null;
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
- * The balance of a digital asset account, aggregated across all wallets and
235
- * supported chains.
194
+ * A single asset entry scoped to a specific chain.
236
195
  */
237
- export interface AccountBalanceResponse {
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
- * Query parameters for the account balance endpoint.
240
+ * Input for creating a digital asset account from existing wallets with a
241
+ * `wallet_ids` parameter.
256
242
  */
257
- export interface AccountBalanceParams {
243
+ export interface CreateAccountFromWalletIDsInput {
258
244
  /**
259
- * When set to true, returns balances from testnet chains instead of mainnets.
245
+ * IDs for wallets to include in this account.
260
246
  */
261
- testnet_mode?: 'true' | 'false';
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 BalanceAsset as BalanceAsset,
267
- type BalanceAssetByChain as BalanceAssetByChain,
268
- type BalanceResponse as BalanceResponse,
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 AccountDisplayName as AccountDisplayName,
321
+ type AccountWalletIDs as AccountWalletIDs,
273
322
  type AccountWalletsConfiguration as AccountWalletsConfiguration,
274
- type CreateAccountInput as CreateAccountInput,
275
- type UpdateAccountInput as UpdateAccountInput,
323
+ type AccountsDashboardListResponse as AccountsDashboardListResponse,
276
324
  type AccountsListResponse as AccountsListResponse,
277
325
  type AssetAccountWithBalance as AssetAccountWithBalance,
278
- type AccountsDashboardListResponse as AccountsDashboardListResponse,
279
- type AccountBalanceResponse as AccountBalanceResponse,
280
- type AccountBalanceParams as AccountBalanceParams,
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
  }