@privy-io/node 0.7.0 → 0.9.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 (117) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/client.d.mts +18 -8
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +18 -8
  5. package/client.d.ts.map +1 -1
  6. package/client.js +20 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +20 -3
  9. package/client.mjs.map +1 -1
  10. package/internal/parse.d.mts.map +1 -1
  11. package/internal/parse.d.ts.map +1 -1
  12. package/internal/parse.js +5 -0
  13. package/internal/parse.js.map +1 -1
  14. package/internal/parse.mjs +5 -0
  15. package/internal/parse.mjs.map +1 -1
  16. package/package.json +21 -1
  17. package/resources/aggregations.d.mts +507 -0
  18. package/resources/aggregations.d.mts.map +1 -0
  19. package/resources/aggregations.d.ts +507 -0
  20. package/resources/aggregations.d.ts.map +1 -0
  21. package/resources/aggregations.js +9 -0
  22. package/resources/aggregations.js.map +1 -0
  23. package/resources/aggregations.mjs +5 -0
  24. package/resources/aggregations.mjs.map +1 -0
  25. package/resources/client-auth.d.mts +168 -2
  26. package/resources/client-auth.d.mts.map +1 -1
  27. package/resources/client-auth.d.ts +168 -2
  28. package/resources/client-auth.d.ts.map +1 -1
  29. package/resources/index.d.mts +6 -3
  30. package/resources/index.d.mts.map +1 -1
  31. package/resources/index.d.ts +6 -3
  32. package/resources/index.d.ts.map +1 -1
  33. package/resources/index.js +7 -1
  34. package/resources/index.js.map +1 -1
  35. package/resources/index.mjs +3 -0
  36. package/resources/index.mjs.map +1 -1
  37. package/resources/key-quorums.d.mts +4 -1
  38. package/resources/key-quorums.d.mts.map +1 -1
  39. package/resources/key-quorums.d.ts +4 -1
  40. package/resources/key-quorums.d.ts.map +1 -1
  41. package/resources/policies.d.mts +21 -20
  42. package/resources/policies.d.mts.map +1 -1
  43. package/resources/policies.d.ts +21 -20
  44. package/resources/policies.d.ts.map +1 -1
  45. package/resources/users.d.mts +21 -11
  46. package/resources/users.d.mts.map +1 -1
  47. package/resources/users.d.ts +21 -11
  48. package/resources/users.d.ts.map +1 -1
  49. package/resources/wallets/balance.d.mts +11 -6
  50. package/resources/wallets/balance.d.mts.map +1 -1
  51. package/resources/wallets/balance.d.ts +11 -6
  52. package/resources/wallets/balance.d.ts.map +1 -1
  53. package/resources/wallets/balance.js +1 -2
  54. package/resources/wallets/balance.js.map +1 -1
  55. package/resources/wallets/balance.mjs +1 -2
  56. package/resources/wallets/balance.mjs.map +1 -1
  57. package/resources/wallets/index.d.mts +1 -1
  58. package/resources/wallets/index.d.mts.map +1 -1
  59. package/resources/wallets/index.d.ts +1 -1
  60. package/resources/wallets/index.d.ts.map +1 -1
  61. package/resources/wallets/index.js.map +1 -1
  62. package/resources/wallets/index.mjs.map +1 -1
  63. package/resources/wallets/transactions.d.mts +3 -3
  64. package/resources/wallets/transactions.d.mts.map +1 -1
  65. package/resources/wallets/transactions.d.ts +3 -3
  66. package/resources/wallets/transactions.d.ts.map +1 -1
  67. package/resources/wallets/wallets.d.mts +249 -61
  68. package/resources/wallets/wallets.d.mts.map +1 -1
  69. package/resources/wallets/wallets.d.ts +249 -61
  70. package/resources/wallets/wallets.d.ts.map +1 -1
  71. package/resources/wallets/wallets.js.map +1 -1
  72. package/resources/wallets/wallets.mjs.map +1 -1
  73. package/resources/webhooks.d.mts +940 -0
  74. package/resources/webhooks.d.mts.map +1 -0
  75. package/resources/webhooks.d.ts +940 -0
  76. package/resources/webhooks.d.ts.map +1 -0
  77. package/resources/webhooks.js +9 -0
  78. package/resources/webhooks.js.map +1 -0
  79. package/resources/webhooks.mjs +5 -0
  80. package/resources/webhooks.mjs.map +1 -0
  81. package/resources/yield.d.mts +264 -0
  82. package/resources/yield.d.mts.map +1 -0
  83. package/resources/yield.d.ts +264 -0
  84. package/resources/yield.d.ts.map +1 -0
  85. package/resources/yield.js +9 -0
  86. package/resources/yield.js.map +1 -0
  87. package/resources/yield.mjs +5 -0
  88. package/resources/yield.mjs.map +1 -0
  89. package/src/client.ts +198 -9
  90. package/src/internal/parse.ts +6 -0
  91. package/src/resources/aggregations.ts +853 -0
  92. package/src/resources/client-auth.ts +288 -1
  93. package/src/resources/index.ts +87 -3
  94. package/src/resources/key-quorums.ts +4 -1
  95. package/src/resources/policies.ts +21 -20
  96. package/src/resources/users.ts +58 -41
  97. package/src/resources/wallets/balance.ts +24 -6
  98. package/src/resources/wallets/index.ts +6 -2
  99. package/src/resources/wallets/transactions.ts +11 -3
  100. package/src/resources/wallets/wallets.ts +333 -78
  101. package/src/resources/webhooks.ts +1287 -0
  102. package/src/resources/yield.ts +330 -0
  103. package/src/types/x402.d.ts +18 -0
  104. package/src/version.ts +1 -1
  105. package/src/x402.ts +87 -0
  106. package/version.d.mts +1 -1
  107. package/version.d.ts +1 -1
  108. package/version.js +1 -1
  109. package/version.mjs +1 -1
  110. package/x402.d.mts +54 -0
  111. package/x402.d.mts.map +1 -0
  112. package/x402.d.ts +54 -0
  113. package/x402.d.ts.map +1 -0
  114. package/x402.js +75 -0
  115. package/x402.js.map +1 -0
  116. package/x402.mjs +72 -0
  117. package/x402.mjs.map +1 -0
@@ -0,0 +1,853 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import * as WalletsAPI from './wallets/wallets';
5
+
6
+ export class Aggregations extends APIResource {}
7
+
8
+ /**
9
+ * The RPC method this aggregation applies to.
10
+ */
11
+ export type AggregationMethod = 'eth_signTransaction' | 'eth_signUserOperation';
12
+
13
+ /**
14
+ * The metric configuration for an aggregation, defining what field/field_source to
15
+ * measure and the aggregation function to apply.
16
+ */
17
+ export interface AggregationMetric {
18
+ field: string;
19
+
20
+ field_source: string;
21
+
22
+ /**
23
+ * The aggregation function to apply.
24
+ */
25
+ function: 'sum';
26
+
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
+ }
70
+ }
71
+
72
+ /**
73
+ * The time window configuration for an aggregation.
74
+ */
75
+ export interface AggregationWindow {
76
+ /**
77
+ * Duration of the rolling window in seconds (1-72 hours).
78
+ */
79
+ seconds: number;
80
+
81
+ type: 'rolling';
82
+ }
83
+
84
+ /**
85
+ * A grouping configuration for an aggregation. Maximum of 2 group_by fields
86
+ * allowed.
87
+ */
88
+ export interface AggregationGroupBy {
89
+ field: string;
90
+
91
+ field_source: string;
92
+
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
+ }
136
+ }
137
+
138
+ /**
139
+ * An aggregation that measures and tracks metrics over a period of time.
140
+ */
141
+ export interface Aggregation {
142
+ /**
143
+ * Unique ID of the aggregation.
144
+ */
145
+ id: string;
146
+
147
+ /**
148
+ * Unix timestamp of when the aggregation was created in milliseconds.
149
+ */
150
+ created_at: number;
151
+
152
+ /**
153
+ * The RPC method this aggregation applies to.
154
+ */
155
+ method: AggregationMethod;
156
+
157
+ /**
158
+ * The metric configuration for an aggregation, defining what field/field_source to
159
+ * measure and the aggregation function to apply.
160
+ */
161
+ metric: AggregationMetric;
162
+
163
+ /**
164
+ * The name of the aggregation.
165
+ */
166
+ name: string;
167
+
168
+ /**
169
+ * The key quorum ID of the owner of the aggregation.
170
+ */
171
+ owner_id: string | null;
172
+
173
+ /**
174
+ * The time window configuration for an aggregation.
175
+ */
176
+ window: AggregationWindow;
177
+
178
+ /**
179
+ * Optional conditions to filter events before aggregation.
180
+ */
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
+ >;
197
+
198
+ /**
199
+ * Optional grouping configuration for bucketing metrics.
200
+ */
201
+ group_by?: Array<AggregationGroupBy>;
202
+ }
203
+
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
+ /**
486
+ * Input for creating an aggregation.
487
+ */
488
+ export interface AggregationInput {
489
+ /**
490
+ * The RPC method this aggregation applies to.
491
+ */
492
+ method: AggregationMethod;
493
+
494
+ /**
495
+ * The metric configuration for an aggregation, defining what field/field_source to
496
+ * measure and the aggregation function to apply.
497
+ */
498
+ metric: AggregationMetric;
499
+
500
+ /**
501
+ * The name of the aggregation.
502
+ */
503
+ name: string;
504
+
505
+ /**
506
+ * The time window configuration for an aggregation.
507
+ */
508
+ window: AggregationWindow;
509
+
510
+ /**
511
+ * Optional conditions to filter events before aggregation.
512
+ */
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
+ >;
529
+
530
+ /**
531
+ * Optional grouping configuration for bucketing metrics.
532
+ */
533
+ group_by?: Array<AggregationGroupBy>;
534
+
535
+ /**
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.
829
+ */
830
+ export interface PublicKeyOwner {
831
+ public_key: string;
832
+ }
833
+
834
+ /**
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.
838
+ */
839
+ export interface UserOwner {
840
+ user_id: string;
841
+ }
842
+ }
843
+
844
+ export declare namespace Aggregations {
845
+ export {
846
+ type AggregationMethod as AggregationMethod,
847
+ type AggregationMetric as AggregationMetric,
848
+ type AggregationWindow as AggregationWindow,
849
+ type AggregationGroupBy as AggregationGroupBy,
850
+ type Aggregation as Aggregation,
851
+ type AggregationInput as AggregationInput,
852
+ };
853
+ }