@privy-io/api-types 0.9.0 → 0.10.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 (153) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/client.d.mts +33 -30
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +33 -30
  5. package/client.d.ts.map +1 -1
  6. package/client.js +22 -8
  7. package/client.js.map +1 -1
  8. package/client.mjs +23 -9
  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 +646 -644
  28. package/resources/client-auth.d.mts.map +1 -1
  29. package/resources/client-auth.d.ts +646 -644
  30. package/resources/client-auth.d.ts.map +1 -1
  31. package/resources/embedded-wallets.d.mts +114 -114
  32. package/resources/embedded-wallets.d.mts.map +1 -1
  33. package/resources/embedded-wallets.d.ts +114 -114
  34. package/resources/embedded-wallets.d.ts.map +1 -1
  35. package/resources/funding.d.mts +42 -42
  36. package/resources/funding.d.mts.map +1 -1
  37. package/resources/funding.d.ts +42 -42
  38. package/resources/funding.d.ts.map +1 -1
  39. package/resources/index.d.mts +19 -18
  40. package/resources/index.d.mts.map +1 -1
  41. package/resources/index.d.ts +19 -18
  42. package/resources/index.d.ts.map +1 -1
  43. package/resources/index.js +3 -1
  44. package/resources/index.js.map +1 -1
  45. package/resources/index.mjs +2 -1
  46. package/resources/index.mjs.map +1 -1
  47. package/resources/intents.d.mts +269 -265
  48. package/resources/intents.d.mts.map +1 -1
  49. package/resources/intents.d.ts +269 -265
  50. package/resources/intents.d.ts.map +1 -1
  51. package/resources/key-quorums.d.mts +20 -20
  52. package/resources/key-quorums.d.mts.map +1 -1
  53. package/resources/key-quorums.d.ts +20 -20
  54. package/resources/key-quorums.d.ts.map +1 -1
  55. package/resources/kraken-embed.d.mts +12 -20
  56. package/resources/kraken-embed.d.mts.map +1 -1
  57. package/resources/kraken-embed.d.ts +12 -20
  58. package/resources/kraken-embed.d.ts.map +1 -1
  59. package/resources/organizations.d.mts +65 -0
  60. package/resources/organizations.d.mts.map +1 -0
  61. package/resources/organizations.d.ts +65 -0
  62. package/resources/organizations.d.ts.map +1 -0
  63. package/resources/organizations.js +9 -0
  64. package/resources/organizations.js.map +1 -0
  65. package/resources/organizations.mjs +5 -0
  66. package/resources/organizations.mjs.map +1 -0
  67. package/resources/policies.d.mts +258 -240
  68. package/resources/policies.d.mts.map +1 -1
  69. package/resources/policies.d.ts +258 -240
  70. package/resources/policies.d.ts.map +1 -1
  71. package/resources/shared.d.mts +28 -28
  72. package/resources/shared.d.mts.map +1 -1
  73. package/resources/shared.d.ts +28 -28
  74. package/resources/shared.d.ts.map +1 -1
  75. package/resources/swaps.d.mts +6 -9
  76. package/resources/swaps.d.mts.map +1 -1
  77. package/resources/swaps.d.ts +6 -9
  78. package/resources/swaps.d.ts.map +1 -1
  79. package/resources/swaps.js.map +1 -1
  80. package/resources/swaps.mjs.map +1 -1
  81. package/resources/transactions.d.mts +53 -53
  82. package/resources/transactions.d.mts.map +1 -1
  83. package/resources/transactions.d.ts +53 -53
  84. package/resources/transactions.d.ts.map +1 -1
  85. package/resources/users.d.mts +468 -459
  86. package/resources/users.d.mts.map +1 -1
  87. package/resources/users.d.ts +468 -459
  88. package/resources/users.d.ts.map +1 -1
  89. package/resources/wallet-actions.d.mts +302 -145
  90. package/resources/wallet-actions.d.mts.map +1 -1
  91. package/resources/wallet-actions.d.ts +302 -145
  92. package/resources/wallet-actions.d.ts.map +1 -1
  93. package/resources/wallets/index.d.mts +1 -1
  94. package/resources/wallets/index.d.mts.map +1 -1
  95. package/resources/wallets/index.d.ts +1 -1
  96. package/resources/wallets/index.d.ts.map +1 -1
  97. package/resources/wallets/index.js.map +1 -1
  98. package/resources/wallets/index.mjs.map +1 -1
  99. package/resources/wallets/transactions.d.mts +7 -2
  100. package/resources/wallets/transactions.d.mts.map +1 -1
  101. package/resources/wallets/transactions.d.ts +7 -2
  102. package/resources/wallets/transactions.d.ts.map +1 -1
  103. package/resources/wallets/transactions.js +1 -1
  104. package/resources/wallets/transactions.mjs +1 -1
  105. package/resources/wallets/wallets.d.mts +1424 -1227
  106. package/resources/wallets/wallets.d.mts.map +1 -1
  107. package/resources/wallets/wallets.d.ts +1424 -1227
  108. package/resources/wallets/wallets.d.ts.map +1 -1
  109. package/resources/wallets/wallets.js +4 -1
  110. package/resources/wallets/wallets.js.map +1 -1
  111. package/resources/wallets/wallets.mjs +4 -1
  112. package/resources/wallets/wallets.mjs.map +1 -1
  113. package/resources/webhooks.d.mts +935 -877
  114. package/resources/webhooks.d.mts.map +1 -1
  115. package/resources/webhooks.d.ts +935 -877
  116. package/resources/webhooks.d.ts.map +1 -1
  117. package/resources/yield.d.mts +157 -157
  118. package/resources/yield.d.mts.map +1 -1
  119. package/resources/yield.d.ts +157 -157
  120. package/resources/yield.d.ts.map +1 -1
  121. package/src/client.ts +594 -516
  122. package/src/internal/types.ts +6 -8
  123. package/src/resources/accounts.ts +157 -103
  124. package/src/resources/aggregations.ts +55 -55
  125. package/src/resources/apps.ts +221 -178
  126. package/src/resources/client-auth.ts +887 -887
  127. package/src/resources/embedded-wallets.ts +150 -150
  128. package/src/resources/funding.ts +66 -66
  129. package/src/resources/index.ts +504 -475
  130. package/src/resources/intents.ts +326 -322
  131. package/src/resources/key-quorums.ts +23 -23
  132. package/src/resources/kraken-embed.ts +14 -22
  133. package/src/resources/organizations.ts +82 -0
  134. package/src/resources/policies.ts +379 -352
  135. package/src/resources/shared.ts +34 -34
  136. package/src/resources/swaps.ts +5 -10
  137. package/src/resources/transactions.ts +86 -86
  138. package/src/resources/users.ts +707 -696
  139. package/src/resources/wallet-actions.ts +392 -185
  140. package/src/resources/wallets/index.ts +157 -148
  141. package/src/resources/wallets/transactions.ts +18 -3
  142. package/src/resources/wallets/wallets.ts +1937 -1686
  143. package/src/resources/webhooks.ts +1172 -1100
  144. package/src/resources/yield.ts +188 -188
  145. package/src/version.ts +1 -1
  146. package/version.d.mts +1 -1
  147. package/version.d.mts.map +1 -1
  148. package/version.d.ts +1 -1
  149. package/version.d.ts.map +1 -1
  150. package/version.js +1 -1
  151. package/version.js.map +1 -1
  152. package/version.mjs +1 -1
  153. package/version.mjs.map +1 -1
@@ -4,62 +4,52 @@ import * as WalletsAPI from "./wallets/wallets.js";
4
4
  export declare class Accounts extends APIResource {
5
5
  }
6
6
  /**
7
- * A single asset entry in a balance, representing holdings across all supported
8
- * chains.
7
+ * Query parameters for the account balance endpoint.
9
8
  */
10
- export interface BalanceAsset {
11
- /**
12
- * The amount of the asset held, denominated in the unit of the asset itself, with
13
- * 1 decimal of precision.
14
- */
15
- amount: string;
16
- /**
17
- * A monetary value with its currency denomination.
18
- */
19
- price: SharedAPI.CurrencyAmount;
9
+ export interface AccountBalanceParams {
20
10
  /**
21
- * The symbol of the asset (e.g. USDC, ETH).
11
+ * When set to true, returns balances from testnet chains instead of mainnets.
22
12
  */
23
- symbol: string;
13
+ testnet_mode?: 'true' | 'false';
24
14
  }
25
15
  /**
26
- * A single asset entry scoped to a specific chain.
16
+ * The balance of a digital asset account, aggregated across all wallets and
17
+ * supported chains.
27
18
  */
28
- export interface BalanceAssetByChain {
29
- /**
30
- * The amount of the asset held on this chain, denominated in the unit of the asset
31
- * itself.
32
- */
33
- amount: string;
19
+ export interface AccountBalanceResponse {
34
20
  /**
35
- * The CAIP-2 chain identifier (e.g. eip155:8453).
21
+ * The individual asset balances, each computed across all supported chains.
36
22
  */
37
- chain_id: string;
23
+ assets: Array<BalanceAsset>;
38
24
  /**
39
25
  * A monetary value with its currency denomination.
40
26
  */
41
- price: SharedAPI.CurrencyAmount;
27
+ total: SharedAPI.CurrencyAmount;
42
28
  /**
43
- * The symbol of the asset (e.g. USDC, ETH).
29
+ * Individual asset balances per chain.
44
30
  */
45
- symbol: string;
31
+ assets_by_chain?: Array<BalanceAssetByChain>;
46
32
  }
47
33
  /**
48
- * Balances for an asset account or wallet
34
+ * An optional display name for the account.
49
35
  */
50
- export interface BalanceResponse {
36
+ export type AccountDisplayName = string;
37
+ /**
38
+ * A digital asset account that groups wallets under a single entity.
39
+ */
40
+ export interface AccountResponse {
51
41
  /**
52
- * The individual asset balances, each computed across all supported chains.
42
+ * The account ID.
53
43
  */
54
- assets: Array<BalanceAsset>;
44
+ id: string;
55
45
  /**
56
- * A monetary value with its currency denomination.
46
+ * An optional display name for the account.
57
47
  */
58
- total: SharedAPI.CurrencyAmount;
48
+ display_name: string | null;
59
49
  /**
60
- * Individual asset balances per chain.
50
+ * The wallets belonging to this account.
61
51
  */
62
- assets_by_chain?: Array<BalanceAssetByChain>;
52
+ wallets: Array<AccountWallet>;
63
53
  }
64
54
  /**
65
55
  * A wallet belonging to a digital asset account.
@@ -82,23 +72,6 @@ export interface AccountWallet {
82
72
  */
83
73
  custody?: WalletsAPI.WalletCustodian;
84
74
  }
85
- /**
86
- * A digital asset account that groups wallets under a single entity.
87
- */
88
- export interface AccountResponse {
89
- /**
90
- * The account ID.
91
- */
92
- id: string;
93
- /**
94
- * An optional display name for the account.
95
- */
96
- display_name: string | null;
97
- /**
98
- * The wallets belonging to this account.
99
- */
100
- wallets: Array<AccountWallet>;
101
- }
102
75
  /**
103
76
  * Configuration for a wallet to create within an account.
104
77
  */
@@ -113,38 +86,25 @@ export interface AccountWalletConfigurationItem {
113
86
  custody?: WalletsAPI.WalletCustodian;
114
87
  }
115
88
  /**
116
- * An optional display name for the account.
89
+ * IDs for wallets to include in this account.
117
90
  */
118
- export type AccountDisplayName = string;
91
+ export type AccountWalletIDs = Array<string>;
119
92
  /**
120
93
  * Configuration for the wallets on this account.
121
94
  */
122
95
  export type AccountWalletsConfiguration = Array<AccountWalletConfigurationItem>;
123
96
  /**
124
- * Input for creating a digital asset account.
125
- */
126
- export interface CreateAccountInput {
127
- /**
128
- * Configuration for the wallets on this account.
129
- */
130
- wallets_configuration: AccountWalletsConfiguration;
131
- /**
132
- * An optional display name for the account.
133
- */
134
- display_name?: AccountDisplayName;
135
- }
136
- /**
137
- * Input for updating a digital asset account.
97
+ * Paginated list of digital asset accounts for the dashboard.
138
98
  */
139
- export interface UpdateAccountInput {
99
+ export interface AccountsDashboardListResponse {
140
100
  /**
141
- * An optional display name for the account.
101
+ * The list of accounts, with balances included for dashboard display.
142
102
  */
143
- display_name?: AccountDisplayName;
103
+ data: Array<AssetAccountWithBalance>;
144
104
  /**
145
- * Configuration for the wallets on this account.
105
+ * Cursor for fetching the next page of results, or null if no more results.
146
106
  */
147
- wallets_configuration?: AccountWalletsConfiguration;
107
+ next_cursor: string | null;
148
108
  }
149
109
  /**
150
110
  * Paginated list of digital asset accounts.
@@ -182,23 +142,50 @@ export interface AssetAccountWithBalance {
182
142
  wallets: Array<AccountWallet>;
183
143
  }
184
144
  /**
185
- * Paginated list of digital asset accounts for the dashboard.
145
+ * A single asset entry in a balance, representing holdings across all supported
146
+ * chains.
186
147
  */
187
- export interface AccountsDashboardListResponse {
148
+ export interface BalanceAsset {
188
149
  /**
189
- * The list of accounts, with balances included for dashboard display.
150
+ * The amount of the asset held, denominated in the unit of the asset itself, with
151
+ * 1 decimal of precision.
190
152
  */
191
- data: Array<AssetAccountWithBalance>;
153
+ amount: string;
192
154
  /**
193
- * Cursor for fetching the next page of results, or null if no more results.
155
+ * A monetary value with its currency denomination.
194
156
  */
195
- next_cursor: string | null;
157
+ price: SharedAPI.CurrencyAmount;
158
+ /**
159
+ * The symbol of the asset (e.g. USDC, ETH).
160
+ */
161
+ symbol: string;
196
162
  }
197
163
  /**
198
- * The balance of a digital asset account, aggregated across all wallets and
199
- * supported chains.
164
+ * A single asset entry scoped to a specific chain.
200
165
  */
201
- export interface AccountBalanceResponse {
166
+ export interface BalanceAssetByChain {
167
+ /**
168
+ * The amount of the asset held on this chain, denominated in the unit of the asset
169
+ * itself.
170
+ */
171
+ amount: string;
172
+ /**
173
+ * The CAIP-2 chain identifier (e.g. eip155:8453).
174
+ */
175
+ chain_id: string;
176
+ /**
177
+ * A monetary value with its currency denomination.
178
+ */
179
+ price: SharedAPI.CurrencyAmount;
180
+ /**
181
+ * The symbol of the asset (e.g. USDC, ETH).
182
+ */
183
+ symbol: string;
184
+ }
185
+ /**
186
+ * Balances for an asset account or wallet
187
+ */
188
+ export interface BalanceResponse {
202
189
  /**
203
190
  * The individual asset balances, each computed across all supported chains.
204
191
  */
@@ -213,15 +200,70 @@ export interface AccountBalanceResponse {
213
200
  assets_by_chain?: Array<BalanceAssetByChain>;
214
201
  }
215
202
  /**
216
- * Query parameters for the account balance endpoint.
203
+ * Input for creating a digital asset account from existing wallets with a
204
+ * `wallet_ids` parameter.
217
205
  */
218
- export interface AccountBalanceParams {
206
+ export interface CreateAccountFromWalletIDsInput {
219
207
  /**
220
- * When set to true, returns balances from testnet chains instead of mainnets.
208
+ * IDs for wallets to include in this account.
221
209
  */
222
- testnet_mode?: 'true' | 'false';
210
+ wallet_ids: AccountWalletIDs;
211
+ /**
212
+ * An optional display name for the account.
213
+ */
214
+ display_name?: AccountDisplayName;
215
+ }
216
+ /**
217
+ * Input for creating a digital asset account from new wallets with a
218
+ * `wallets_configuration` specification.
219
+ */
220
+ export interface CreateAccountFromWalletsConfigurationInput {
221
+ /**
222
+ * Configuration for the wallets on this account.
223
+ */
224
+ wallets_configuration: AccountWalletsConfiguration;
225
+ /**
226
+ * An optional display name for the account.
227
+ */
228
+ display_name?: AccountDisplayName;
223
229
  }
230
+ /**
231
+ * Input for creating a digital asset account.
232
+ */
233
+ export type CreateAccountInput = CreateAccountFromWalletsConfigurationInput | CreateAccountFromWalletIDsInput;
234
+ /**
235
+ * Input for updating a digital asset account by adding existing wallets with a
236
+ * `wallet_ids` parameter.
237
+ */
238
+ export interface UpdateAccountFromWalletIDsInput {
239
+ /**
240
+ * IDs for wallets to include in this account.
241
+ */
242
+ wallet_ids: AccountWalletIDs;
243
+ /**
244
+ * An optional display name for the account.
245
+ */
246
+ display_name?: AccountDisplayName;
247
+ }
248
+ /**
249
+ * Input for updating a digital asset account with a `wallets_configuration`
250
+ * specification.
251
+ */
252
+ export interface UpdateAccountFromWalletsConfigurationInput {
253
+ /**
254
+ * An optional display name for the account.
255
+ */
256
+ display_name?: AccountDisplayName;
257
+ /**
258
+ * Configuration for the wallets on this account.
259
+ */
260
+ wallets_configuration?: AccountWalletsConfiguration;
261
+ }
262
+ /**
263
+ * Input for updating a digital asset account.
264
+ */
265
+ export type UpdateAccountInput = UpdateAccountFromWalletsConfigurationInput | UpdateAccountFromWalletIDsInput;
224
266
  export declare namespace Accounts {
225
- export { type BalanceAsset as BalanceAsset, type BalanceAssetByChain as BalanceAssetByChain, type BalanceResponse as BalanceResponse, type AccountWallet as AccountWallet, type AccountResponse as AccountResponse, type AccountWalletConfigurationItem as AccountWalletConfigurationItem, type AccountDisplayName as AccountDisplayName, type AccountWalletsConfiguration as AccountWalletsConfiguration, type CreateAccountInput as CreateAccountInput, type UpdateAccountInput as UpdateAccountInput, type AccountsListResponse as AccountsListResponse, type AssetAccountWithBalance as AssetAccountWithBalance, type AccountsDashboardListResponse as AccountsDashboardListResponse, type AccountBalanceResponse as AccountBalanceResponse, type AccountBalanceParams as AccountBalanceParams, };
267
+ export { type AccountBalanceParams as AccountBalanceParams, type AccountBalanceResponse as AccountBalanceResponse, type AccountDisplayName as AccountDisplayName, type AccountResponse as AccountResponse, type AccountWallet as AccountWallet, type AccountWalletConfigurationItem as AccountWalletConfigurationItem, type AccountWalletIDs as AccountWalletIDs, type AccountWalletsConfiguration as AccountWalletsConfiguration, type AccountsDashboardListResponse as AccountsDashboardListResponse, type AccountsListResponse as AccountsListResponse, type AssetAccountWithBalance as AssetAccountWithBalance, type BalanceAsset as BalanceAsset, type BalanceAssetByChain as BalanceAssetByChain, type BalanceResponse as BalanceResponse, type CreateAccountFromWalletIDsInput as CreateAccountFromWalletIDsInput, type CreateAccountFromWalletsConfigurationInput as CreateAccountFromWalletsConfigurationInput, type CreateAccountInput as CreateAccountInput, type UpdateAccountFromWalletIDsInput as UpdateAccountFromWalletIDsInput, type UpdateAccountFromWalletsConfigurationInput as UpdateAccountFromWalletsConfigurationInput, type UpdateAccountInput as UpdateAccountInput, };
226
268
  }
227
269
  //# sourceMappingURL=accounts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../src/resources/accounts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,KAAK,UAAU;AAEtB,qBAAa,QAAS,SAAQ,WAAW;CAAG;AAE5C;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC,cAAc,CAAC;IAEhC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC,cAAc,CAAC;IAEhC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAE5B;;OAEG;IACH,K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AAgB,IAAI,gBAAgB,EACzC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -3,48 +3,6 @@ import * as PoliciesAPI from "./policies.mjs";
3
3
  import * as SharedAPI from "./shared.mjs";
4
4
  export declare class Aggregations extends APIResource {
5
5
  }
6
- /**
7
- * The RPC method this aggregation applies to.
8
- */
9
- export type AggregationMethod = 'eth_signTransaction' | 'eth_signUserOperation';
10
- /**
11
- * The metric configuration for an aggregation, defining what field/field_source to
12
- * measure and the aggregation function to apply.
13
- */
14
- export interface AggregationMetric {
15
- field: string;
16
- field_source: string;
17
- /**
18
- * The aggregation function to apply.
19
- */
20
- function: 'sum';
21
- /**
22
- * A Solidity ABI definition for decoding smart contract calldata.
23
- */
24
- abi?: PoliciesAPI.AbiSchema;
25
- }
26
- /**
27
- * The time window configuration for an aggregation.
28
- */
29
- export interface AggregationWindow {
30
- /**
31
- * Duration of the rolling window in seconds (1-72 hours).
32
- */
33
- seconds: number;
34
- type: 'rolling';
35
- }
36
- /**
37
- * A grouping configuration for an aggregation. Maximum of 2 group_by fields
38
- * allowed.
39
- */
40
- export interface AggregationGroupBy {
41
- field: string;
42
- field_source: string;
43
- /**
44
- * A Solidity ABI definition for decoding smart contract calldata.
45
- */
46
- abi?: PoliciesAPI.AbiSchema;
47
- }
48
6
  /**
49
7
  * An aggregation that measures and tracks metrics over a period of time.
50
8
  */
@@ -87,6 +45,18 @@ export interface Aggregation {
87
45
  */
88
46
  group_by?: Array<AggregationGroupBy>;
89
47
  }
48
+ /**
49
+ * A grouping configuration for an aggregation. Maximum of 2 group_by fields
50
+ * allowed.
51
+ */
52
+ export interface AggregationGroupBy {
53
+ field: string;
54
+ field_source: string;
55
+ /**
56
+ * A Solidity ABI definition for decoding smart contract calldata.
57
+ */
58
+ abi?: PoliciesAPI.AbiSchema;
59
+ }
90
60
  /**
91
61
  * Input for creating an aggregation.
92
62
  */
@@ -127,7 +97,37 @@ export interface AggregationInput {
127
97
  */
128
98
  owner_id?: SharedAPI.OwnerIDInput | null;
129
99
  }
100
+ /**
101
+ * The RPC method this aggregation applies to.
102
+ */
103
+ export type AggregationMethod = 'eth_signTransaction' | 'eth_signUserOperation';
104
+ /**
105
+ * The metric configuration for an aggregation, defining what field/field_source to
106
+ * measure and the aggregation function to apply.
107
+ */
108
+ export interface AggregationMetric {
109
+ field: string;
110
+ field_source: string;
111
+ /**
112
+ * The aggregation function to apply.
113
+ */
114
+ function: 'sum';
115
+ /**
116
+ * A Solidity ABI definition for decoding smart contract calldata.
117
+ */
118
+ abi?: PoliciesAPI.AbiSchema;
119
+ }
120
+ /**
121
+ * The time window configuration for an aggregation.
122
+ */
123
+ export interface AggregationWindow {
124
+ /**
125
+ * Duration of the rolling window in seconds (1-72 hours).
126
+ */
127
+ seconds: number;
128
+ type: 'rolling';
129
+ }
130
130
  export declare namespace Aggregations {
131
- export { type AggregationMethod as AggregationMethod, type AggregationMetric as AggregationMetric, type AggregationWindow as AggregationWindow, type AggregationGroupBy as AggregationGroupBy, type Aggregation as Aggregation, type AggregationInput as AggregationInput, };
131
+ export { type Aggregation as Aggregation, type AggregationGroupBy as AggregationGroupBy, type AggregationInput as AggregationInput, type AggregationMethod as AggregationMethod, type AggregationMetric as AggregationMetric, type AggregationWindow as AggregationWindow, };
132
132
  }
133
133
  //# sourceMappingURL=aggregations.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"aggregations.d.mts","sourceRoot":"","sources":["../src/resources/aggregations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,SAAS;AAErB,qBAAa,YAAa,SAAQ,WAAW;CAAG;AAEhD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,GAAG,uBAAuB,CAAC;AAEhF;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IAEd,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC;IAEhB;;OAEG;IACH,GAAG,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,SAAS,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IAEd,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,GAAG,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,iBAAiB,CAAC;IAE1B;;;OAGG;IACH,MAAM,EAAE,iBAAiB,CAAC;IAE1B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;OAEG;IACH,MAAM,EAAE,iBAAiB,CAAC;IAE1B;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;IAEhD;;OAEG;I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IAEhB;;OAEG;IACH,GAAG,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -3,48 +3,6 @@ import * as PoliciesAPI from "./policies.js";
3
3
  import * as SharedAPI from "./shared.js";
4
4
  export declare class Aggregations extends APIResource {
5
5
  }
6
- /**
7
- * The RPC method this aggregation applies to.
8
- */
9
- export type AggregationMethod = 'eth_signTransaction' | 'eth_signUserOperation';
10
- /**
11
- * The metric configuration for an aggregation, defining what field/field_source to
12
- * measure and the aggregation function to apply.
13
- */
14
- export interface AggregationMetric {
15
- field: string;
16
- field_source: string;
17
- /**
18
- * The aggregation function to apply.
19
- */
20
- function: 'sum';
21
- /**
22
- * A Solidity ABI definition for decoding smart contract calldata.
23
- */
24
- abi?: PoliciesAPI.AbiSchema;
25
- }
26
- /**
27
- * The time window configuration for an aggregation.
28
- */
29
- export interface AggregationWindow {
30
- /**
31
- * Duration of the rolling window in seconds (1-72 hours).
32
- */
33
- seconds: number;
34
- type: 'rolling';
35
- }
36
- /**
37
- * A grouping configuration for an aggregation. Maximum of 2 group_by fields
38
- * allowed.
39
- */
40
- export interface AggregationGroupBy {
41
- field: string;
42
- field_source: string;
43
- /**
44
- * A Solidity ABI definition for decoding smart contract calldata.
45
- */
46
- abi?: PoliciesAPI.AbiSchema;
47
- }
48
6
  /**
49
7
  * An aggregation that measures and tracks metrics over a period of time.
50
8
  */
@@ -87,6 +45,18 @@ export interface Aggregation {
87
45
  */
88
46
  group_by?: Array<AggregationGroupBy>;
89
47
  }
48
+ /**
49
+ * A grouping configuration for an aggregation. Maximum of 2 group_by fields
50
+ * allowed.
51
+ */
52
+ export interface AggregationGroupBy {
53
+ field: string;
54
+ field_source: string;
55
+ /**
56
+ * A Solidity ABI definition for decoding smart contract calldata.
57
+ */
58
+ abi?: PoliciesAPI.AbiSchema;
59
+ }
90
60
  /**
91
61
  * Input for creating an aggregation.
92
62
  */
@@ -127,7 +97,37 @@ export interface AggregationInput {
127
97
  */
128
98
  owner_id?: SharedAPI.OwnerIDInput | null;
129
99
  }
100
+ /**
101
+ * The RPC method this aggregation applies to.
102
+ */
103
+ export type AggregationMethod = 'eth_signTransaction' | 'eth_signUserOperation';
104
+ /**
105
+ * The metric configuration for an aggregation, defining what field/field_source to
106
+ * measure and the aggregation function to apply.
107
+ */
108
+ export interface AggregationMetric {
109
+ field: string;
110
+ field_source: string;
111
+ /**
112
+ * The aggregation function to apply.
113
+ */
114
+ function: 'sum';
115
+ /**
116
+ * A Solidity ABI definition for decoding smart contract calldata.
117
+ */
118
+ abi?: PoliciesAPI.AbiSchema;
119
+ }
120
+ /**
121
+ * The time window configuration for an aggregation.
122
+ */
123
+ export interface AggregationWindow {
124
+ /**
125
+ * Duration of the rolling window in seconds (1-72 hours).
126
+ */
127
+ seconds: number;
128
+ type: 'rolling';
129
+ }
130
130
  export declare namespace Aggregations {
131
- export { type AggregationMethod as AggregationMethod, type AggregationMetric as AggregationMetric, type AggregationWindow as AggregationWindow, type AggregationGroupBy as AggregationGroupBy, type Aggregation as Aggregation, type AggregationInput as AggregationInput, };
131
+ export { type Aggregation as Aggregation, type AggregationGroupBy as AggregationGroupBy, type AggregationInput as AggregationInput, type AggregationMethod as AggregationMethod, type AggregationMetric as AggregationMetric, type AggregationWindow as AggregationWindow, };
132
132
  }
133
133
  //# sourceMappingURL=aggregations.d.ts.map
@@ -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