@privy-io/api-types 0.6.1 → 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.
Files changed (197) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/client.d.mts +53 -29
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +53 -29
  5. package/client.d.ts.map +1 -1
  6. package/client.js +32 -7
  7. package/client.js.map +1 -1
  8. package/client.mjs +34 -9
  9. package/client.mjs.map +1 -1
  10. package/package.json +12 -1
  11. package/resources/accounts.d.mts +146 -4
  12. package/resources/accounts.d.mts.map +1 -1
  13. package/resources/accounts.d.ts +146 -4
  14. package/resources/accounts.d.ts.map +1 -1
  15. package/resources/accounts.js.map +1 -1
  16. package/resources/accounts.mjs.map +1 -1
  17. package/resources/aggregations.d.mts +18 -392
  18. package/resources/aggregations.d.mts.map +1 -1
  19. package/resources/aggregations.d.ts +18 -392
  20. package/resources/aggregations.d.ts.map +1 -1
  21. package/resources/aggregations.js.map +1 -1
  22. package/resources/aggregations.mjs.map +1 -1
  23. package/resources/apps.d.mts +197 -70
  24. package/resources/apps.d.mts.map +1 -1
  25. package/resources/apps.d.ts +197 -70
  26. package/resources/apps.d.ts.map +1 -1
  27. package/resources/apps.js.map +1 -1
  28. package/resources/apps.mjs.map +1 -1
  29. package/resources/client-auth.d.mts +975 -463
  30. package/resources/client-auth.d.mts.map +1 -1
  31. package/resources/client-auth.d.ts +975 -463
  32. package/resources/client-auth.d.ts.map +1 -1
  33. package/resources/client-auth.js.map +1 -1
  34. package/resources/client-auth.mjs.map +1 -1
  35. package/resources/cross-app.d.mts +14 -13
  36. package/resources/cross-app.d.mts.map +1 -1
  37. package/resources/cross-app.d.ts +14 -13
  38. package/resources/cross-app.d.ts.map +1 -1
  39. package/resources/embedded-wallets.d.mts +165 -81
  40. package/resources/embedded-wallets.d.mts.map +1 -1
  41. package/resources/embedded-wallets.d.ts +165 -81
  42. package/resources/embedded-wallets.d.ts.map +1 -1
  43. package/resources/embedded-wallets.js.map +1 -1
  44. package/resources/embedded-wallets.mjs.map +1 -1
  45. package/resources/funding.d.mts +150 -64
  46. package/resources/funding.d.mts.map +1 -1
  47. package/resources/funding.d.ts +150 -64
  48. package/resources/funding.d.ts.map +1 -1
  49. package/resources/funding.js.map +1 -1
  50. package/resources/funding.mjs.map +1 -1
  51. package/resources/index.d.mts +18 -14
  52. package/resources/index.d.mts.map +1 -1
  53. package/resources/index.d.ts +18 -14
  54. package/resources/index.d.ts.map +1 -1
  55. package/resources/index.js +9 -1
  56. package/resources/index.js.map +1 -1
  57. package/resources/index.mjs +6 -2
  58. package/resources/index.mjs.map +1 -1
  59. package/resources/intents.d.mts +446 -31
  60. package/resources/intents.d.mts.map +1 -1
  61. package/resources/intents.d.ts +446 -31
  62. package/resources/intents.d.ts.map +1 -1
  63. package/resources/intents.js.map +1 -1
  64. package/resources/intents.mjs.map +1 -1
  65. package/resources/key-quorums.d.mts +108 -17
  66. package/resources/key-quorums.d.mts.map +1 -1
  67. package/resources/key-quorums.d.ts +108 -17
  68. package/resources/key-quorums.d.ts.map +1 -1
  69. package/resources/key-quorums.js +26 -9
  70. package/resources/key-quorums.js.map +1 -1
  71. package/resources/key-quorums.mjs +26 -9
  72. package/resources/key-quorums.mjs.map +1 -1
  73. package/resources/kraken-embed.d.mts +62 -0
  74. package/resources/kraken-embed.d.mts.map +1 -0
  75. package/resources/kraken-embed.d.ts +62 -0
  76. package/resources/kraken-embed.d.ts.map +1 -0
  77. package/resources/kraken-embed.js +9 -0
  78. package/resources/kraken-embed.js.map +1 -0
  79. package/resources/kraken-embed.mjs +5 -0
  80. package/resources/kraken-embed.mjs.map +1 -0
  81. package/resources/policies.d.mts +342 -926
  82. package/resources/policies.d.mts.map +1 -1
  83. package/resources/policies.d.ts +342 -926
  84. package/resources/policies.d.ts.map +1 -1
  85. package/resources/policies.js +51 -41
  86. package/resources/policies.js.map +1 -1
  87. package/resources/policies.mjs +51 -41
  88. package/resources/policies.mjs.map +1 -1
  89. package/resources/shared.d.mts +59 -0
  90. package/resources/shared.d.mts.map +1 -0
  91. package/resources/shared.d.ts +59 -0
  92. package/resources/shared.d.ts.map +1 -0
  93. package/resources/shared.js +9 -0
  94. package/resources/shared.js.map +1 -0
  95. package/resources/shared.mjs +5 -0
  96. package/resources/shared.mjs.map +1 -0
  97. package/resources/swaps.d.mts +108 -0
  98. package/resources/swaps.d.mts.map +1 -0
  99. package/resources/swaps.d.ts +108 -0
  100. package/resources/swaps.d.ts.map +1 -0
  101. package/resources/swaps.js +9 -0
  102. package/resources/swaps.js.map +1 -0
  103. package/resources/swaps.mjs +5 -0
  104. package/resources/swaps.mjs.map +1 -0
  105. package/resources/transactions.d.mts +158 -93
  106. package/resources/transactions.d.mts.map +1 -1
  107. package/resources/transactions.d.ts +158 -93
  108. package/resources/transactions.d.ts.map +1 -1
  109. package/resources/transactions.js +3 -0
  110. package/resources/transactions.js.map +1 -1
  111. package/resources/transactions.mjs +3 -0
  112. package/resources/transactions.mjs.map +1 -1
  113. package/resources/users.d.mts +64 -94
  114. package/resources/users.d.mts.map +1 -1
  115. package/resources/users.d.ts +64 -94
  116. package/resources/users.d.ts.map +1 -1
  117. package/resources/users.js +3 -0
  118. package/resources/users.js.map +1 -1
  119. package/resources/users.mjs +3 -0
  120. package/resources/users.mjs.map +1 -1
  121. package/resources/wallet-actions.d.mts +187 -0
  122. package/resources/wallet-actions.d.mts.map +1 -0
  123. package/resources/wallet-actions.d.ts +187 -0
  124. package/resources/wallet-actions.d.ts.map +1 -0
  125. package/resources/wallet-actions.js +9 -0
  126. package/resources/wallet-actions.js.map +1 -0
  127. package/resources/wallet-actions.mjs +5 -0
  128. package/resources/wallet-actions.mjs.map +1 -0
  129. package/resources/wallets/balance.d.mts +7 -4
  130. package/resources/wallets/balance.d.mts.map +1 -1
  131. package/resources/wallets/balance.d.ts +7 -4
  132. package/resources/wallets/balance.d.ts.map +1 -1
  133. package/resources/wallets/balance.js +3 -0
  134. package/resources/wallets/balance.js.map +1 -1
  135. package/resources/wallets/balance.mjs +3 -0
  136. package/resources/wallets/balance.mjs.map +1 -1
  137. package/resources/wallets/index.d.mts +1 -1
  138. package/resources/wallets/index.d.mts.map +1 -1
  139. package/resources/wallets/index.d.ts +1 -1
  140. package/resources/wallets/index.d.ts.map +1 -1
  141. package/resources/wallets/index.js.map +1 -1
  142. package/resources/wallets/index.mjs.map +1 -1
  143. package/resources/wallets/transactions.d.mts +10 -6
  144. package/resources/wallets/transactions.d.mts.map +1 -1
  145. package/resources/wallets/transactions.d.ts +10 -6
  146. package/resources/wallets/transactions.d.ts.map +1 -1
  147. package/resources/wallets/transactions.js +3 -0
  148. package/resources/wallets/transactions.js.map +1 -1
  149. package/resources/wallets/transactions.mjs +3 -0
  150. package/resources/wallets/transactions.mjs.map +1 -1
  151. package/resources/wallets/wallets.d.mts +2399 -936
  152. package/resources/wallets/wallets.d.mts.map +1 -1
  153. package/resources/wallets/wallets.d.ts +2399 -936
  154. package/resources/wallets/wallets.d.ts.map +1 -1
  155. package/resources/wallets/wallets.js +28 -10
  156. package/resources/wallets/wallets.js.map +1 -1
  157. package/resources/wallets/wallets.mjs +28 -10
  158. package/resources/wallets/wallets.mjs.map +1 -1
  159. package/resources/webhooks.d.mts +780 -339
  160. package/resources/webhooks.d.mts.map +1 -1
  161. package/resources/webhooks.d.ts +780 -339
  162. package/resources/webhooks.d.ts.map +1 -1
  163. package/resources/webhooks.js.map +1 -1
  164. package/resources/webhooks.mjs.map +1 -1
  165. package/resources/yield.d.mts +50 -9
  166. package/resources/yield.d.mts.map +1 -1
  167. package/resources/yield.d.ts +50 -9
  168. package/resources/yield.d.ts.map +1 -1
  169. package/src/client.ts +884 -99
  170. package/src/resources/accounts.ts +179 -3
  171. package/src/resources/aggregations.ts +18 -702
  172. package/src/resources/apps.ts +250 -85
  173. package/src/resources/client-auth.ts +1453 -786
  174. package/src/resources/cross-app.ts +19 -15
  175. package/src/resources/embedded-wallets.ts +219 -123
  176. package/src/resources/funding.ts +263 -173
  177. package/src/resources/index.ts +444 -61
  178. package/src/resources/intents.ts +575 -37
  179. package/src/resources/key-quorums.ts +137 -21
  180. package/src/resources/kraken-embed.ts +85 -0
  181. package/src/resources/policies.ts +582 -1550
  182. package/src/resources/shared.ts +79 -0
  183. package/src/resources/swaps.ts +136 -0
  184. package/src/resources/transactions.ts +188 -91
  185. package/src/resources/users.ts +82 -132
  186. package/src/resources/wallet-actions.ts +251 -0
  187. package/src/resources/wallets/balance.ts +9 -2
  188. package/src/resources/wallets/index.ts +146 -16
  189. package/src/resources/wallets/transactions.ts +12 -4
  190. package/src/resources/wallets/wallets.ts +2922 -974
  191. package/src/resources/webhooks.ts +970 -454
  192. package/src/resources/yield.ts +68 -10
  193. package/src/version.ts +1 -1
  194. package/version.d.mts +1 -1
  195. package/version.d.ts +1 -1
  196. package/version.js +1 -1
  197. package/version.mjs +1 -1
@@ -1,7 +1,8 @@
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 WalletsAPI from './wallets/wallets';
4
+ import * as PoliciesAPI from './policies';
5
+ import * as SharedAPI from './shared';
5
6
 
6
7
  export class Aggregations extends APIResource {}
7
8
 
@@ -24,49 +25,10 @@ export interface AggregationMetric {
24
25
  */
25
26
  function: 'sum';
26
27
 
27
- abi?: Array<AggregationMetric.Abi>;
28
- }
29
-
30
- export namespace AggregationMetric {
31
- export interface Abi {
32
- type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
33
-
34
- anonymous?: boolean;
35
-
36
- inputs?: Array<Abi.Input>;
37
-
38
- name?: string;
39
-
40
- outputs?: Array<Abi.Output>;
41
-
42
- stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
43
- }
44
-
45
- export namespace Abi {
46
- export interface Input {
47
- type: string;
48
-
49
- components?: Array<unknown>;
50
-
51
- indexed?: boolean;
52
-
53
- internalType?: string;
54
-
55
- name?: string;
56
- }
57
-
58
- export interface Output {
59
- type: string;
60
-
61
- components?: Array<unknown>;
62
-
63
- indexed?: boolean;
64
-
65
- internalType?: string;
66
-
67
- name?: string;
68
- }
69
- }
28
+ /**
29
+ * A Solidity ABI definition for decoding smart contract calldata.
30
+ */
31
+ abi?: PoliciesAPI.AbiSchema;
70
32
  }
71
33
 
72
34
  /**
@@ -90,49 +52,10 @@ export interface AggregationGroupBy {
90
52
 
91
53
  field_source: string;
92
54
 
93
- abi?: Array<AggregationGroupBy.Abi>;
94
- }
95
-
96
- export namespace AggregationGroupBy {
97
- export interface Abi {
98
- type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
99
-
100
- anonymous?: boolean;
101
-
102
- inputs?: Array<Abi.Input>;
103
-
104
- name?: string;
105
-
106
- outputs?: Array<Abi.Output>;
107
-
108
- stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
109
- }
110
-
111
- export namespace Abi {
112
- export interface Input {
113
- type: string;
114
-
115
- components?: Array<unknown>;
116
-
117
- indexed?: boolean;
118
-
119
- internalType?: string;
120
-
121
- name?: string;
122
- }
123
-
124
- export interface Output {
125
- type: string;
126
-
127
- components?: Array<unknown>;
128
-
129
- indexed?: boolean;
130
-
131
- internalType?: string;
132
-
133
- name?: string;
134
- }
135
- }
55
+ /**
56
+ * A Solidity ABI definition for decoding smart contract calldata.
57
+ */
58
+ abi?: PoliciesAPI.AbiSchema;
136
59
  }
137
60
 
138
61
  /**
@@ -178,22 +101,7 @@ export interface Aggregation {
178
101
  /**
179
102
  * Optional conditions to filter events before aggregation.
180
103
  */
181
- conditions?: Array<
182
- | Aggregation.UnionMember0
183
- | Aggregation.UnionMember1
184
- | Aggregation.UnionMember2
185
- | Aggregation.UnionMember3
186
- | Aggregation.UnionMember4
187
- | Aggregation.UnionMember5
188
- | Aggregation.UnionMember6
189
- | Aggregation.UnionMember7
190
- | Aggregation.UnionMember8
191
- | Aggregation.UnionMember9
192
- | Aggregation.UnionMember10
193
- | Aggregation.UnionMember11
194
- | Aggregation.UnionMember12
195
- | Aggregation.UnionMember13
196
- >;
104
+ conditions?: Array<PoliciesAPI.PolicyCondition>;
197
105
 
198
106
  /**
199
107
  * Optional grouping configuration for bucketing metrics.
@@ -201,287 +109,6 @@ export interface Aggregation {
201
109
  group_by?: Array<AggregationGroupBy>;
202
110
  }
203
111
 
204
- export namespace Aggregation {
205
- export interface UnionMember0 {
206
- field: 'to' | 'value' | 'chain_id';
207
-
208
- field_source: 'ethereum_transaction';
209
-
210
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
211
-
212
- value: string | Array<string>;
213
- }
214
-
215
- export interface UnionMember1 {
216
- abi: Array<UnionMember1.Abi>;
217
-
218
- field: string;
219
-
220
- field_source: 'ethereum_calldata';
221
-
222
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
223
-
224
- value: string | Array<string>;
225
- }
226
-
227
- export namespace UnionMember1 {
228
- export interface Abi {
229
- type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
230
-
231
- anonymous?: boolean;
232
-
233
- inputs?: Array<Abi.Input>;
234
-
235
- name?: string;
236
-
237
- outputs?: Array<Abi.Output>;
238
-
239
- stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
240
- }
241
-
242
- export namespace Abi {
243
- export interface Input {
244
- type: string;
245
-
246
- components?: Array<unknown>;
247
-
248
- indexed?: boolean;
249
-
250
- internalType?: string;
251
-
252
- name?: string;
253
- }
254
-
255
- export interface Output {
256
- type: string;
257
-
258
- components?: Array<unknown>;
259
-
260
- indexed?: boolean;
261
-
262
- internalType?: string;
263
-
264
- name?: string;
265
- }
266
- }
267
- }
268
-
269
- export interface UnionMember2 {
270
- field: 'chainId' | 'verifyingContract' | 'chain_id' | 'verifying_contract';
271
-
272
- field_source: 'ethereum_typed_data_domain';
273
-
274
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
275
-
276
- value: string | Array<string>;
277
- }
278
-
279
- export interface UnionMember3 {
280
- field: string;
281
-
282
- field_source: 'ethereum_typed_data_message';
283
-
284
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
285
-
286
- typed_data: UnionMember3.TypedData;
287
-
288
- value: string | Array<string>;
289
- }
290
-
291
- export namespace UnionMember3 {
292
- export interface TypedData {
293
- primary_type: string;
294
-
295
- types: { [key: string]: Array<TypedData.Type> };
296
- }
297
-
298
- export namespace TypedData {
299
- export interface Type {
300
- name: string;
301
-
302
- type: string;
303
- }
304
- }
305
- }
306
-
307
- export interface UnionMember4 {
308
- field: 'contract';
309
-
310
- field_source: 'ethereum_7702_authorization';
311
-
312
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
313
-
314
- value: string | Array<string>;
315
- }
316
-
317
- export interface UnionMember5 {
318
- field: 'programId';
319
-
320
- field_source: 'solana_program_instruction';
321
-
322
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
323
-
324
- value: string | Array<string>;
325
- }
326
-
327
- export interface UnionMember6 {
328
- field: 'instructionName' | 'Transfer.from' | 'Transfer.to' | 'Transfer.lamports';
329
-
330
- field_source: 'solana_system_program_instruction';
331
-
332
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
333
-
334
- value: string | Array<string>;
335
- }
336
-
337
- export interface UnionMember7 {
338
- field:
339
- | 'instructionName'
340
- | 'Transfer.source'
341
- | 'Transfer.destination'
342
- | 'Transfer.authority'
343
- | 'Transfer.amount'
344
- | 'TransferChecked.source'
345
- | 'TransferChecked.destination'
346
- | 'TransferChecked.authority'
347
- | 'TransferChecked.amount'
348
- | 'TransferChecked.mint'
349
- | 'Burn.account'
350
- | 'Burn.mint'
351
- | 'Burn.authority'
352
- | 'Burn.amount'
353
- | 'MintTo.mint'
354
- | 'MintTo.account'
355
- | 'MintTo.authority'
356
- | 'MintTo.amount'
357
- | 'CloseAccount.account'
358
- | 'CloseAccount.destination'
359
- | 'CloseAccount.authority'
360
- | 'InitializeAccount3.account'
361
- | 'InitializeAccount3.mint'
362
- | 'InitializeAccount3.owner';
363
-
364
- field_source: 'solana_token_program_instruction';
365
-
366
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
367
-
368
- value: string | Array<string>;
369
- }
370
-
371
- export interface UnionMember8 {
372
- field:
373
- | 'TransferContract.to_address'
374
- | 'TransferContract.amount'
375
- | 'TriggerSmartContract.contract_address'
376
- | 'TriggerSmartContract.call_value'
377
- | 'TriggerSmartContract.token_id'
378
- | 'TriggerSmartContract.call_token_value';
379
-
380
- field_source: 'tron_transaction';
381
-
382
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
383
-
384
- value: string | Array<string>;
385
- }
386
-
387
- export interface UnionMember9 {
388
- field: 'current_unix_timestamp';
389
-
390
- field_source: 'system';
391
-
392
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
393
-
394
- value: string | Array<string>;
395
- }
396
-
397
- export interface UnionMember10 {
398
- field: string;
399
-
400
- field_source: 'reference';
401
-
402
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
403
-
404
- value: string | Array<string>;
405
- }
406
-
407
- export interface UnionMember11 {
408
- abi: Array<UnionMember11.Abi>;
409
-
410
- field: string;
411
-
412
- field_source: 'tron_trigger_smart_contract_data';
413
-
414
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
415
-
416
- value: string | Array<string>;
417
- }
418
-
419
- export namespace UnionMember11 {
420
- export interface Abi {
421
- type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
422
-
423
- anonymous?: boolean;
424
-
425
- inputs?: Array<Abi.Input>;
426
-
427
- name?: string;
428
-
429
- outputs?: Array<Abi.Output>;
430
-
431
- stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
432
- }
433
-
434
- export namespace Abi {
435
- export interface Input {
436
- type: string;
437
-
438
- components?: Array<unknown>;
439
-
440
- indexed?: boolean;
441
-
442
- internalType?: string;
443
-
444
- name?: string;
445
- }
446
-
447
- export interface Output {
448
- type: string;
449
-
450
- components?: Array<unknown>;
451
-
452
- indexed?: boolean;
453
-
454
- internalType?: string;
455
-
456
- name?: string;
457
- }
458
- }
459
- }
460
-
461
- export interface UnionMember12 {
462
- field: 'commandName';
463
-
464
- field_source: 'sui_transaction_command';
465
-
466
- operator: 'eq' | 'in';
467
-
468
- /**
469
- * SUI transaction commands allowlist for raw_sign endpoint policy evaluation
470
- */
471
- value: WalletsAPI.SuiCommandName | Array<WalletsAPI.SuiCommandName>;
472
- }
473
-
474
- export interface UnionMember13 {
475
- field: 'recipient' | 'amount';
476
-
477
- field_source: 'sui_transfer_objects_command';
478
-
479
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
480
-
481
- value: string | Array<string>;
482
- }
483
- }
484
-
485
112
  /**
486
113
  * Input for creating an aggregation.
487
114
  */
@@ -510,22 +137,7 @@ export interface AggregationInput {
510
137
  /**
511
138
  * Optional conditions to filter events before aggregation.
512
139
  */
513
- conditions?: Array<
514
- | AggregationInput.UnionMember0
515
- | AggregationInput.UnionMember1
516
- | AggregationInput.UnionMember2
517
- | AggregationInput.UnionMember3
518
- | AggregationInput.UnionMember4
519
- | AggregationInput.UnionMember5
520
- | AggregationInput.UnionMember6
521
- | AggregationInput.UnionMember7
522
- | AggregationInput.UnionMember8
523
- | AggregationInput.UnionMember9
524
- | AggregationInput.UnionMember10
525
- | AggregationInput.UnionMember11
526
- | AggregationInput.UnionMember12
527
- | AggregationInput.UnionMember13
528
- >;
140
+ conditions?: Array<PoliciesAPI.PolicyCondition>;
529
141
 
530
142
  /**
531
143
  * Optional grouping configuration for bucketing metrics.
@@ -533,312 +145,16 @@ export interface AggregationInput {
533
145
  group_by?: Array<AggregationGroupBy>;
534
146
 
535
147
  /**
536
- * The owner of the resource. If you provide this, do not specify an owner_id as it
537
- * will be generated automatically. When updating a wallet, you can set the owner
538
- * to null to remove the owner.
539
- */
540
- owner?: AggregationInput.PublicKeyOwner | AggregationInput.UserOwner | null;
541
-
542
- owner_id?: string | null;
543
- }
544
-
545
- export namespace AggregationInput {
546
- export interface UnionMember0 {
547
- field: 'to' | 'value' | 'chain_id';
548
-
549
- field_source: 'ethereum_transaction';
550
-
551
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
552
-
553
- value: string | Array<string>;
554
- }
555
-
556
- export interface UnionMember1 {
557
- abi: Array<UnionMember1.Abi>;
558
-
559
- field: string;
560
-
561
- field_source: 'ethereum_calldata';
562
-
563
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
564
-
565
- value: string | Array<string>;
566
- }
567
-
568
- export namespace UnionMember1 {
569
- export interface Abi {
570
- type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
571
-
572
- anonymous?: boolean;
573
-
574
- inputs?: Array<Abi.Input>;
575
-
576
- name?: string;
577
-
578
- outputs?: Array<Abi.Output>;
579
-
580
- stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
581
- }
582
-
583
- export namespace Abi {
584
- export interface Input {
585
- type: string;
586
-
587
- components?: Array<unknown>;
588
-
589
- indexed?: boolean;
590
-
591
- internalType?: string;
592
-
593
- name?: string;
594
- }
595
-
596
- export interface Output {
597
- type: string;
598
-
599
- components?: Array<unknown>;
600
-
601
- indexed?: boolean;
602
-
603
- internalType?: string;
604
-
605
- name?: string;
606
- }
607
- }
608
- }
609
-
610
- export interface UnionMember2 {
611
- field: 'chainId' | 'verifyingContract' | 'chain_id' | 'verifying_contract';
612
-
613
- field_source: 'ethereum_typed_data_domain';
614
-
615
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
616
-
617
- value: string | Array<string>;
618
- }
619
-
620
- export interface UnionMember3 {
621
- field: string;
622
-
623
- field_source: 'ethereum_typed_data_message';
624
-
625
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
626
-
627
- typed_data: UnionMember3.TypedData;
628
-
629
- value: string | Array<string>;
630
- }
631
-
632
- export namespace UnionMember3 {
633
- export interface TypedData {
634
- primary_type: string;
635
-
636
- types: { [key: string]: Array<TypedData.Type> };
637
- }
638
-
639
- export namespace TypedData {
640
- export interface Type {
641
- name: string;
642
-
643
- type: string;
644
- }
645
- }
646
- }
647
-
648
- export interface UnionMember4 {
649
- field: 'contract';
650
-
651
- field_source: 'ethereum_7702_authorization';
652
-
653
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
654
-
655
- value: string | Array<string>;
656
- }
657
-
658
- export interface UnionMember5 {
659
- field: 'programId';
660
-
661
- field_source: 'solana_program_instruction';
662
-
663
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
664
-
665
- value: string | Array<string>;
666
- }
667
-
668
- export interface UnionMember6 {
669
- field: 'instructionName' | 'Transfer.from' | 'Transfer.to' | 'Transfer.lamports';
670
-
671
- field_source: 'solana_system_program_instruction';
672
-
673
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
674
-
675
- value: string | Array<string>;
676
- }
677
-
678
- export interface UnionMember7 {
679
- field:
680
- | 'instructionName'
681
- | 'Transfer.source'
682
- | 'Transfer.destination'
683
- | 'Transfer.authority'
684
- | 'Transfer.amount'
685
- | 'TransferChecked.source'
686
- | 'TransferChecked.destination'
687
- | 'TransferChecked.authority'
688
- | 'TransferChecked.amount'
689
- | 'TransferChecked.mint'
690
- | 'Burn.account'
691
- | 'Burn.mint'
692
- | 'Burn.authority'
693
- | 'Burn.amount'
694
- | 'MintTo.mint'
695
- | 'MintTo.account'
696
- | 'MintTo.authority'
697
- | 'MintTo.amount'
698
- | 'CloseAccount.account'
699
- | 'CloseAccount.destination'
700
- | 'CloseAccount.authority'
701
- | 'InitializeAccount3.account'
702
- | 'InitializeAccount3.mint'
703
- | 'InitializeAccount3.owner';
704
-
705
- field_source: 'solana_token_program_instruction';
706
-
707
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
708
-
709
- value: string | Array<string>;
710
- }
711
-
712
- export interface UnionMember8 {
713
- field:
714
- | 'TransferContract.to_address'
715
- | 'TransferContract.amount'
716
- | 'TriggerSmartContract.contract_address'
717
- | 'TriggerSmartContract.call_value'
718
- | 'TriggerSmartContract.token_id'
719
- | 'TriggerSmartContract.call_token_value';
720
-
721
- field_source: 'tron_transaction';
722
-
723
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
724
-
725
- value: string | Array<string>;
726
- }
727
-
728
- export interface UnionMember9 {
729
- field: 'current_unix_timestamp';
730
-
731
- field_source: 'system';
732
-
733
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
734
-
735
- value: string | Array<string>;
736
- }
737
-
738
- export interface UnionMember10 {
739
- field: string;
740
-
741
- field_source: 'reference';
742
-
743
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
744
-
745
- value: string | Array<string>;
746
- }
747
-
748
- export interface UnionMember11 {
749
- abi: Array<UnionMember11.Abi>;
750
-
751
- field: string;
752
-
753
- field_source: 'tron_trigger_smart_contract_data';
754
-
755
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
756
-
757
- value: string | Array<string>;
758
- }
759
-
760
- export namespace UnionMember11 {
761
- export interface Abi {
762
- type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
763
-
764
- anonymous?: boolean;
765
-
766
- inputs?: Array<Abi.Input>;
767
-
768
- name?: string;
769
-
770
- outputs?: Array<Abi.Output>;
771
-
772
- stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
773
- }
774
-
775
- export namespace Abi {
776
- export interface Input {
777
- type: string;
778
-
779
- components?: Array<unknown>;
780
-
781
- indexed?: boolean;
782
-
783
- internalType?: string;
784
-
785
- name?: string;
786
- }
787
-
788
- export interface Output {
789
- type: string;
790
-
791
- components?: Array<unknown>;
792
-
793
- indexed?: boolean;
794
-
795
- internalType?: string;
796
-
797
- name?: string;
798
- }
799
- }
800
- }
801
-
802
- export interface UnionMember12 {
803
- field: 'commandName';
804
-
805
- field_source: 'sui_transaction_command';
806
-
807
- operator: 'eq' | 'in';
808
-
809
- /**
810
- * SUI transaction commands allowlist for raw_sign endpoint policy evaluation
811
- */
812
- value: WalletsAPI.SuiCommandName | Array<WalletsAPI.SuiCommandName>;
813
- }
814
-
815
- export interface UnionMember13 {
816
- field: 'recipient' | 'amount';
817
-
818
- field_source: 'sui_transfer_objects_command';
819
-
820
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
821
-
822
- value: string | Array<string>;
823
- }
824
-
825
- /**
826
- * The P-256 public key of the owner of the resource, in base64-encoded DER format.
827
- * If you provide this, do not specify an owner_id as it will be generated
828
- * automatically.
148
+ * The owner of the resource, specified as a Privy user ID, a P-256 public key, or
149
+ * null to remove the current owner.
829
150
  */
830
- export interface PublicKeyOwner {
831
- public_key: string;
832
- }
151
+ owner?: SharedAPI.OwnerInput | null;
833
152
 
834
153
  /**
835
- * The user ID of the owner of the resource. The user must already exist, and this
836
- * value must start with "did:privy:". If you provide this, do not specify an
837
- * owner_id as it will be generated automatically.
154
+ * The key quorum ID to set as the owner of the resource. If you provide this, do
155
+ * not specify an owner.
838
156
  */
839
- export interface UserOwner {
840
- user_id: string;
841
- }
157
+ owner_id?: SharedAPI.OwnerIDInput | null;
842
158
  }
843
159
 
844
160
  export declare namespace Aggregations {