@proton/wrap-constants 0.0.47 → 0.0.50

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.
@@ -1,53 +1,93 @@
1
1
  import * as z from 'zod';
2
- import { ZodRawShape } from 'zod/lib/src/types/base';
3
- export declare const createAbstractAuthParser: (contract: string, action: string, data: ZodRawShape) => z.ZodObject<{
2
+ export declare const createAbstractAuthParser: (contract: string, action: string, data: z.ZodRawShape) => z.ZodObject<{
4
3
  signer: z.ZodObject<{
5
4
  actor: z.ZodString;
6
5
  permission: z.ZodString;
7
- }, {
8
- strict: true;
6
+ }, "strip", z.ZodTypeAny, {
7
+ actor: string;
8
+ permission: string;
9
9
  }, {
10
10
  actor: string;
11
11
  permission: string;
12
12
  }>;
13
- signatures: z.ZodArray<z.ZodString>;
14
- transaction: z.ZodObject<{
13
+ signatures: z.ZodArray<z.ZodString, "many">;
14
+ transaction: z.ZodObject<z.extendShape<{
15
15
  expiration: z.ZodString;
16
16
  ref_block_num: z.ZodNumber;
17
17
  ref_block_prefix: z.ZodNumber;
18
18
  max_net_usage_words: z.ZodNumber;
19
19
  max_cpu_usage_ms: z.ZodNumber;
20
20
  delay_sec: z.ZodNumber;
21
- context_free_actions: z.ZodArray<z.ZodAny>;
22
- transaction_extensions: z.ZodArray<z.ZodAny>;
23
- } & {
21
+ context_free_actions: z.ZodArray<z.ZodObject<{
22
+ account: z.ZodString;
23
+ name: z.ZodString;
24
+ authorization: z.ZodArray<z.ZodObject<{
25
+ actor: z.ZodString;
26
+ permission: z.ZodString;
27
+ }, "strip", z.ZodTypeAny, {
28
+ actor: string;
29
+ permission: string;
30
+ }, {
31
+ actor: string;
32
+ permission: string;
33
+ }>, "many">;
34
+ data: z.ZodAny;
35
+ hex_data: z.ZodOptional<z.ZodString>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ data?: any;
38
+ hex_data?: string | undefined;
39
+ account: string;
40
+ name: string;
41
+ authorization: {
42
+ actor: string;
43
+ permission: string;
44
+ }[];
45
+ }, {
46
+ data?: any;
47
+ hex_data?: string | undefined;
48
+ account: string;
49
+ name: string;
50
+ authorization: {
51
+ actor: string;
52
+ permission: string;
53
+ }[];
54
+ }>, "many">;
55
+ transaction_extensions: z.ZodArray<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">>, "many">;
56
+ }, {
24
57
  actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
25
58
  account: z.ZodString | z.ZodLiteral<string>;
26
59
  name: z.ZodLiteral<string>;
27
- data: z.ZodObject<ZodRawShape, {
28
- strict: true;
60
+ data: z.ZodObject<z.ZodRawShape, "strip", z.ZodTypeAny, {
61
+ [x: string]: any;
29
62
  }, {
30
63
  [x: string]: any;
31
- [x: number]: any;
32
64
  }>;
33
65
  authorization: z.ZodArray<z.ZodObject<{
34
66
  actor: z.ZodString;
35
67
  permission: z.ZodString;
36
- }, {
37
- strict: true;
68
+ }, "strip", z.ZodTypeAny, {
69
+ actor: string;
70
+ permission: string;
38
71
  }, {
39
72
  actor: string;
40
73
  permission: string;
41
- }>>;
42
- }, {
43
- strict: true;
44
- }, {
74
+ }>, "many">;
75
+ }, "strip", z.ZodTypeAny, {
45
76
  account: string;
77
+ data: {
78
+ [x: string]: any;
79
+ };
46
80
  name: string;
81
+ authorization: {
82
+ actor: string;
83
+ permission: string;
84
+ }[];
85
+ }, {
86
+ account: string;
47
87
  data: {
48
88
  [x: string]: any;
49
- [x: number]: any;
50
89
  };
90
+ name: string;
51
91
  authorization: {
52
92
  actor: string;
53
93
  permission: string;
@@ -61,16 +101,22 @@ export declare const createAbstractAuthParser: (contract: string, action: string
61
101
  key: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
62
102
  modulus: z.ZodString;
63
103
  exponent: z.ZodString;
64
- }, {
65
- strict: true;
104
+ }, "strip", z.ZodTypeAny, {
105
+ modulus: string;
106
+ exponent: string;
66
107
  }, {
67
108
  modulus: string;
68
109
  exponent: string;
69
- }>]>>;
110
+ }>]>, "many">;
70
111
  user_presence: z.ZodNumber;
71
112
  rpid: z.ZodString;
72
- }, {
73
- strict: true;
113
+ }, "strip", z.ZodTypeAny, {
114
+ key: (string | {
115
+ modulus: string;
116
+ exponent: string;
117
+ })[];
118
+ user_presence: number;
119
+ rpid: string;
74
120
  }, {
75
121
  key: (string | {
76
122
  modulus: string;
@@ -83,94 +129,168 @@ export declare const createAbstractAuthParser: (contract: string, action: string
83
129
  permissions: z.ZodArray<z.ZodObject<{
84
130
  actor: z.ZodString;
85
131
  permission: z.ZodString;
86
- }, {
87
- strict: true;
132
+ }, "strip", z.ZodTypeAny, {
133
+ actor: string;
134
+ permission: string;
88
135
  }, {
89
136
  actor: string;
90
137
  permission: string;
91
- }>>;
138
+ }>, "many">;
92
139
  signature: z.ZodObject<{
93
140
  auth_data: z.ZodString;
94
141
  client_json: z.ZodString;
95
142
  signature: z.ZodString;
96
- }, {
97
- strict: true;
98
- }, {
143
+ }, "strip", z.ZodTypeAny, {
144
+ signature: string;
99
145
  auth_data: string;
100
146
  client_json: string;
147
+ }, {
101
148
  signature: string;
149
+ auth_data: string;
150
+ client_json: string;
102
151
  }>;
103
- trx: z.ZodObject<{
152
+ trx: z.ZodObject<z.extendShape<{
104
153
  expiration: z.ZodString;
105
154
  ref_block_num: z.ZodNumber;
106
155
  ref_block_prefix: z.ZodNumber;
107
156
  max_net_usage_words: z.ZodNumber;
108
157
  max_cpu_usage_ms: z.ZodNumber;
109
158
  delay_sec: z.ZodNumber;
110
- context_free_actions: z.ZodArray<z.ZodAny>;
111
- transaction_extensions: z.ZodArray<z.ZodAny>;
112
- } & {
159
+ context_free_actions: z.ZodArray<z.ZodObject<{
160
+ account: z.ZodString;
161
+ name: z.ZodString;
162
+ authorization: z.ZodArray<z.ZodObject<{
163
+ actor: z.ZodString;
164
+ permission: z.ZodString;
165
+ }, "strip", z.ZodTypeAny, {
166
+ actor: string;
167
+ permission: string;
168
+ }, {
169
+ actor: string;
170
+ permission: string;
171
+ }>, "many">;
172
+ data: z.ZodAny;
173
+ hex_data: z.ZodOptional<z.ZodString>;
174
+ }, "strip", z.ZodTypeAny, {
175
+ data?: any;
176
+ hex_data?: string | undefined;
177
+ account: string;
178
+ name: string;
179
+ authorization: {
180
+ actor: string;
181
+ permission: string;
182
+ }[];
183
+ }, {
184
+ data?: any;
185
+ hex_data?: string | undefined;
186
+ account: string;
187
+ name: string;
188
+ authorization: {
189
+ actor: string;
190
+ permission: string;
191
+ }[];
192
+ }>, "many">;
193
+ transaction_extensions: z.ZodArray<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">>, "many">;
194
+ }, {
113
195
  actions: z.ZodArray<z.ZodObject<{
114
196
  account: z.ZodString | z.ZodLiteral<string>;
115
197
  name: z.ZodLiteral<string>;
116
- data: z.ZodUnion<[z.ZodString, z.ZodObject<ZodRawShape, {
117
- strict: true;
198
+ data: z.ZodUnion<[z.ZodString, z.ZodObject<z.ZodRawShape, "strip", z.ZodTypeAny, {
199
+ [x: string]: any;
118
200
  }, {
119
201
  [x: string]: any;
120
- [x: number]: any;
121
202
  }>]>;
122
203
  authorization: z.ZodArray<z.ZodObject<{
123
204
  actor: z.ZodString;
124
205
  permission: z.ZodString;
125
- }, {
126
- strict: true;
206
+ }, "strip", z.ZodTypeAny, {
207
+ actor: string;
208
+ permission: string;
127
209
  }, {
128
210
  actor: string;
129
211
  permission: string;
130
- }>>;
131
- }, {
132
- strict: true;
212
+ }>, "many">;
213
+ }, "strip", z.ZodTypeAny, {
214
+ account: string;
215
+ data: string | {
216
+ [x: string]: any;
217
+ };
218
+ name: string;
219
+ authorization: {
220
+ actor: string;
221
+ permission: string;
222
+ }[];
133
223
  }, {
224
+ account: string;
225
+ data: string | {
226
+ [x: string]: any;
227
+ };
228
+ name: string;
229
+ authorization: {
230
+ actor: string;
231
+ permission: string;
232
+ }[];
233
+ }>, "many">;
234
+ }>, "strip", z.ZodTypeAny, {
235
+ expiration: string;
236
+ ref_block_num: number;
237
+ ref_block_prefix: number;
238
+ max_net_usage_words: number;
239
+ max_cpu_usage_ms: number;
240
+ delay_sec: number;
241
+ context_free_actions: {
242
+ data?: any;
243
+ hex_data?: string | undefined;
134
244
  account: string;
135
245
  name: string;
246
+ authorization: {
247
+ actor: string;
248
+ permission: string;
249
+ }[];
250
+ }[];
251
+ transaction_extensions: ((string | number)[] | undefined)[];
252
+ actions: {
253
+ account: string;
136
254
  data: string | {
137
255
  [x: string]: any;
138
- [x: number]: any;
139
256
  };
257
+ name: string;
140
258
  authorization: {
141
259
  actor: string;
142
260
  permission: string;
143
261
  }[];
144
- }>>;
145
- }, import("zod/lib/src/helpers/objectUtil").objectUtil.MergeObjectParams<{
146
- strict: true;
262
+ }[];
147
263
  }, {
148
- strict: true;
149
- }>, {
150
264
  expiration: string;
151
265
  ref_block_num: number;
152
266
  ref_block_prefix: number;
153
267
  max_net_usage_words: number;
154
268
  max_cpu_usage_ms: number;
155
269
  delay_sec: number;
156
- context_free_actions: any[];
157
- transaction_extensions: any[];
158
- actions: {
270
+ context_free_actions: {
271
+ data?: any;
272
+ hex_data?: string | undefined;
159
273
  account: string;
160
274
  name: string;
275
+ authorization: {
276
+ actor: string;
277
+ permission: string;
278
+ }[];
279
+ }[];
280
+ transaction_extensions: ((string | number)[] | undefined)[];
281
+ actions: {
282
+ account: string;
161
283
  data: string | {
162
284
  [x: string]: any;
163
- [x: number]: any;
164
285
  };
286
+ name: string;
165
287
  authorization: {
166
288
  actor: string;
167
289
  permission: string;
168
290
  }[];
169
291
  }[];
170
292
  }>;
171
- }, {
172
- strict: true;
173
- }, {
293
+ }, "strip", z.ZodTypeAny, {
174
294
  account: string;
175
295
  key: {
176
296
  key: (string | {
@@ -180,16 +300,66 @@ export declare const createAbstractAuthParser: (contract: string, action: string
180
300
  user_presence: number;
181
301
  rpid: string;
182
302
  };
303
+ nonce: number;
304
+ permissions: {
305
+ actor: string;
306
+ permission: string;
307
+ }[];
183
308
  signature: {
309
+ signature: string;
184
310
  auth_data: string;
185
311
  client_json: string;
186
- signature: string;
312
+ };
313
+ trx: {
314
+ expiration: string;
315
+ ref_block_num: number;
316
+ ref_block_prefix: number;
317
+ max_net_usage_words: number;
318
+ max_cpu_usage_ms: number;
319
+ delay_sec: number;
320
+ context_free_actions: {
321
+ data?: any;
322
+ hex_data?: string | undefined;
323
+ account: string;
324
+ name: string;
325
+ authorization: {
326
+ actor: string;
327
+ permission: string;
328
+ }[];
329
+ }[];
330
+ transaction_extensions: ((string | number)[] | undefined)[];
331
+ actions: {
332
+ account: string;
333
+ data: string | {
334
+ [x: string]: any;
335
+ };
336
+ name: string;
337
+ authorization: {
338
+ actor: string;
339
+ permission: string;
340
+ }[];
341
+ }[];
342
+ };
343
+ }, {
344
+ account: string;
345
+ key: {
346
+ key: (string | {
347
+ modulus: string;
348
+ exponent: string;
349
+ })[];
350
+ user_presence: number;
351
+ rpid: string;
187
352
  };
188
353
  nonce: number;
189
354
  permissions: {
190
355
  actor: string;
191
356
  permission: string;
192
357
  }[];
358
+ signature: {
359
+ signature: string;
360
+ auth_data: string;
361
+ client_json: string;
362
+ };
193
363
  trx: {
194
364
  expiration: string;
195
365
  ref_block_num: number;
@@ -197,15 +367,23 @@ export declare const createAbstractAuthParser: (contract: string, action: string
197
367
  max_net_usage_words: number;
198
368
  max_cpu_usage_ms: number;
199
369
  delay_sec: number;
200
- context_free_actions: any[];
201
- transaction_extensions: any[];
202
- actions: {
370
+ context_free_actions: {
371
+ data?: any;
372
+ hex_data?: string | undefined;
203
373
  account: string;
204
374
  name: string;
375
+ authorization: {
376
+ actor: string;
377
+ permission: string;
378
+ }[];
379
+ }[];
380
+ transaction_extensions: ((string | number)[] | undefined)[];
381
+ actions: {
382
+ account: string;
205
383
  data: string | {
206
384
  [x: string]: any;
207
- [x: number]: any;
208
385
  };
386
+ name: string;
209
387
  authorization: {
210
388
  actor: string;
211
389
  permission: string;
@@ -216,17 +394,15 @@ export declare const createAbstractAuthParser: (contract: string, action: string
216
394
  authorization: z.ZodArray<z.ZodObject<{
217
395
  actor: z.ZodString;
218
396
  permission: z.ZodString;
219
- }, {
220
- strict: true;
397
+ }, "strip", z.ZodTypeAny, {
398
+ actor: string;
399
+ permission: string;
221
400
  }, {
222
401
  actor: string;
223
402
  permission: string;
224
- }>>;
225
- }, {
226
- strict: true;
227
- }, {
403
+ }>, "many">;
404
+ }, "strip", z.ZodTypeAny, {
228
405
  account: "webauthn";
229
- name: "exec";
230
406
  data: {
231
407
  account: string;
232
408
  key: {
@@ -237,16 +413,16 @@ export declare const createAbstractAuthParser: (contract: string, action: string
237
413
  user_presence: number;
238
414
  rpid: string;
239
415
  };
240
- signature: {
241
- auth_data: string;
242
- client_json: string;
243
- signature: string;
244
- };
245
416
  nonce: number;
246
417
  permissions: {
247
418
  actor: string;
248
419
  permission: string;
249
420
  }[];
421
+ signature: {
422
+ signature: string;
423
+ auth_data: string;
424
+ client_json: string;
425
+ };
250
426
  trx: {
251
427
  expiration: string;
252
428
  ref_block_num: number;
@@ -254,15 +430,23 @@ export declare const createAbstractAuthParser: (contract: string, action: string
254
430
  max_net_usage_words: number;
255
431
  max_cpu_usage_ms: number;
256
432
  delay_sec: number;
257
- context_free_actions: any[];
258
- transaction_extensions: any[];
259
- actions: {
433
+ context_free_actions: {
434
+ data?: any;
435
+ hex_data?: string | undefined;
260
436
  account: string;
261
437
  name: string;
438
+ authorization: {
439
+ actor: string;
440
+ permission: string;
441
+ }[];
442
+ }[];
443
+ transaction_extensions: ((string | number)[] | undefined)[];
444
+ actions: {
445
+ account: string;
262
446
  data: string | {
263
447
  [x: string]: any;
264
- [x: number]: any;
265
448
  };
449
+ name: string;
266
450
  authorization: {
267
451
  actor: string;
268
452
  permission: string;
@@ -270,38 +454,13 @@ export declare const createAbstractAuthParser: (contract: string, action: string
270
454
  }[];
271
455
  };
272
456
  };
457
+ name: "exec";
273
458
  authorization: {
274
459
  actor: string;
275
460
  permission: string;
276
461
  }[];
277
- }>]>>;
278
- }, import("zod/lib/src/helpers/objectUtil").objectUtil.MergeObjectParams<{
279
- strict: true;
280
- }, {
281
- strict: true;
282
- }>, {
283
- expiration: string;
284
- ref_block_num: number;
285
- ref_block_prefix: number;
286
- max_net_usage_words: number;
287
- max_cpu_usage_ms: number;
288
- delay_sec: number;
289
- context_free_actions: any[];
290
- transaction_extensions: any[];
291
- actions: ({
292
- account: string;
293
- name: string;
294
- data: {
295
- [x: string]: any;
296
- [x: number]: any;
297
- };
298
- authorization: {
299
- actor: string;
300
- permission: string;
301
- }[];
302
- } | {
462
+ }, {
303
463
  account: "webauthn";
304
- name: "exec";
305
464
  data: {
306
465
  account: string;
307
466
  key: {
@@ -312,16 +471,16 @@ export declare const createAbstractAuthParser: (contract: string, action: string
312
471
  user_presence: number;
313
472
  rpid: string;
314
473
  };
315
- signature: {
316
- auth_data: string;
317
- client_json: string;
318
- signature: string;
319
- };
320
474
  nonce: number;
321
475
  permissions: {
322
476
  actor: string;
323
477
  permission: string;
324
478
  }[];
479
+ signature: {
480
+ signature: string;
481
+ auth_data: string;
482
+ client_json: string;
483
+ };
325
484
  trx: {
326
485
  expiration: string;
327
486
  ref_block_num: number;
@@ -329,15 +488,23 @@ export declare const createAbstractAuthParser: (contract: string, action: string
329
488
  max_net_usage_words: number;
330
489
  max_cpu_usage_ms: number;
331
490
  delay_sec: number;
332
- context_free_actions: any[];
333
- transaction_extensions: any[];
334
- actions: {
491
+ context_free_actions: {
492
+ data?: any;
493
+ hex_data?: string | undefined;
335
494
  account: string;
336
495
  name: string;
496
+ authorization: {
497
+ actor: string;
498
+ permission: string;
499
+ }[];
500
+ }[];
501
+ transaction_extensions: ((string | number)[] | undefined)[];
502
+ actions: {
503
+ account: string;
337
504
  data: string | {
338
505
  [x: string]: any;
339
- [x: number]: any;
340
506
  };
507
+ name: string;
341
508
  authorization: {
342
509
  actor: string;
343
510
  permission: string;
@@ -345,43 +512,42 @@ export declare const createAbstractAuthParser: (contract: string, action: string
345
512
  }[];
346
513
  };
347
514
  };
515
+ name: "exec";
348
516
  authorization: {
349
517
  actor: string;
350
518
  permission: string;
351
519
  }[];
352
- })[];
353
- }>;
354
- }, {
355
- strict: true;
356
- }, {
357
- signer: {
358
- actor: string;
359
- permission: string;
360
- };
361
- signatures: string[];
362
- transaction: {
520
+ }>]>, "many">;
521
+ }>, "strip", z.ZodTypeAny, {
363
522
  expiration: string;
364
523
  ref_block_num: number;
365
524
  ref_block_prefix: number;
366
525
  max_net_usage_words: number;
367
526
  max_cpu_usage_ms: number;
368
527
  delay_sec: number;
369
- context_free_actions: any[];
370
- transaction_extensions: any[];
371
- actions: ({
528
+ context_free_actions: {
529
+ data?: any;
530
+ hex_data?: string | undefined;
372
531
  account: string;
373
532
  name: string;
533
+ authorization: {
534
+ actor: string;
535
+ permission: string;
536
+ }[];
537
+ }[];
538
+ transaction_extensions: ((string | number)[] | undefined)[];
539
+ actions: ({
540
+ account: string;
374
541
  data: {
375
542
  [x: string]: any;
376
- [x: number]: any;
377
543
  };
544
+ name: string;
378
545
  authorization: {
379
546
  actor: string;
380
547
  permission: string;
381
548
  }[];
382
549
  } | {
383
550
  account: "webauthn";
384
- name: "exec";
385
551
  data: {
386
552
  account: string;
387
553
  key: {
@@ -392,16 +558,103 @@ export declare const createAbstractAuthParser: (contract: string, action: string
392
558
  user_presence: number;
393
559
  rpid: string;
394
560
  };
561
+ nonce: number;
562
+ permissions: {
563
+ actor: string;
564
+ permission: string;
565
+ }[];
395
566
  signature: {
567
+ signature: string;
396
568
  auth_data: string;
397
569
  client_json: string;
398
- signature: string;
570
+ };
571
+ trx: {
572
+ expiration: string;
573
+ ref_block_num: number;
574
+ ref_block_prefix: number;
575
+ max_net_usage_words: number;
576
+ max_cpu_usage_ms: number;
577
+ delay_sec: number;
578
+ context_free_actions: {
579
+ data?: any;
580
+ hex_data?: string | undefined;
581
+ account: string;
582
+ name: string;
583
+ authorization: {
584
+ actor: string;
585
+ permission: string;
586
+ }[];
587
+ }[];
588
+ transaction_extensions: ((string | number)[] | undefined)[];
589
+ actions: {
590
+ account: string;
591
+ data: string | {
592
+ [x: string]: any;
593
+ };
594
+ name: string;
595
+ authorization: {
596
+ actor: string;
597
+ permission: string;
598
+ }[];
599
+ }[];
600
+ };
601
+ };
602
+ name: "exec";
603
+ authorization: {
604
+ actor: string;
605
+ permission: string;
606
+ }[];
607
+ })[];
608
+ }, {
609
+ expiration: string;
610
+ ref_block_num: number;
611
+ ref_block_prefix: number;
612
+ max_net_usage_words: number;
613
+ max_cpu_usage_ms: number;
614
+ delay_sec: number;
615
+ context_free_actions: {
616
+ data?: any;
617
+ hex_data?: string | undefined;
618
+ account: string;
619
+ name: string;
620
+ authorization: {
621
+ actor: string;
622
+ permission: string;
623
+ }[];
624
+ }[];
625
+ transaction_extensions: ((string | number)[] | undefined)[];
626
+ actions: ({
627
+ account: string;
628
+ data: {
629
+ [x: string]: any;
630
+ };
631
+ name: string;
632
+ authorization: {
633
+ actor: string;
634
+ permission: string;
635
+ }[];
636
+ } | {
637
+ account: "webauthn";
638
+ data: {
639
+ account: string;
640
+ key: {
641
+ key: (string | {
642
+ modulus: string;
643
+ exponent: string;
644
+ })[];
645
+ user_presence: number;
646
+ rpid: string;
399
647
  };
400
648
  nonce: number;
401
649
  permissions: {
402
650
  actor: string;
403
651
  permission: string;
404
652
  }[];
653
+ signature: {
654
+ signature: string;
655
+ auth_data: string;
656
+ client_json: string;
657
+ };
405
658
  trx: {
406
659
  expiration: string;
407
660
  ref_block_num: number;
@@ -409,15 +662,23 @@ export declare const createAbstractAuthParser: (contract: string, action: string
409
662
  max_net_usage_words: number;
410
663
  max_cpu_usage_ms: number;
411
664
  delay_sec: number;
412
- context_free_actions: any[];
413
- transaction_extensions: any[];
414
- actions: {
665
+ context_free_actions: {
666
+ data?: any;
667
+ hex_data?: string | undefined;
415
668
  account: string;
416
669
  name: string;
670
+ authorization: {
671
+ actor: string;
672
+ permission: string;
673
+ }[];
674
+ }[];
675
+ transaction_extensions: ((string | number)[] | undefined)[];
676
+ actions: {
677
+ account: string;
417
678
  data: string | {
418
679
  [x: string]: any;
419
- [x: number]: any;
420
680
  };
681
+ name: string;
421
682
  authorization: {
422
683
  actor: string;
423
684
  permission: string;
@@ -425,220 +686,799 @@ export declare const createAbstractAuthParser: (contract: string, action: string
425
686
  }[];
426
687
  };
427
688
  };
689
+ name: "exec";
428
690
  authorization: {
429
691
  actor: string;
430
692
  permission: string;
431
693
  }[];
432
694
  })[];
433
- };
434
- }>;
435
- declare const generateAuthActionsBaseParser: z.ZodObject<{
436
- account: z.ZodString | z.ZodLiteral<string>;
437
- name: z.ZodLiteral<string>;
438
- data: z.ZodObject<{
439
- time: z.ZodString;
440
- protonAccount: z.ZodString;
441
- }, {
442
- strict: true;
443
- }, {
444
- time: string;
445
- protonAccount: string;
446
695
  }>;
447
- authorization: z.ZodArray<z.ZodObject<{
448
- actor: z.ZodString;
449
- permission: z.ZodString;
450
- }, {
451
- strict: true;
452
- }, {
696
+ }, "strip", z.ZodTypeAny, {
697
+ signer: {
453
698
  actor: string;
454
699
  permission: string;
455
- }>>;
456
- }, {
457
- strict: true;
458
- }, {
459
- account: string;
460
- name: string;
461
- data: {
462
- time: string;
463
- protonAccount: string;
464
700
  };
465
- authorization: {
466
- actor: string;
467
- permission: string;
468
- }[];
469
- }>;
470
- export declare type GenerateAuthBaseAction = z.infer<typeof generateAuthActionsBaseParser>;
471
- export declare const generateAuthParser: z.ZodObject<{
472
- signer: z.ZodObject<{
473
- actor: z.ZodString;
474
- permission: z.ZodString;
475
- }, {
476
- strict: true;
477
- }, {
478
- actor: string;
479
- permission: string;
480
- }>;
481
- signatures: z.ZodArray<z.ZodString>;
482
- transaction: z.ZodObject<{
483
- expiration: z.ZodString;
484
- ref_block_num: z.ZodNumber;
485
- ref_block_prefix: z.ZodNumber;
486
- max_net_usage_words: z.ZodNumber;
487
- max_cpu_usage_ms: z.ZodNumber;
488
- delay_sec: z.ZodNumber;
489
- context_free_actions: z.ZodArray<z.ZodAny>;
490
- transaction_extensions: z.ZodArray<z.ZodAny>;
491
- } & {
492
- actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
493
- account: z.ZodString | z.ZodLiteral<string>;
494
- name: z.ZodLiteral<string>;
495
- data: z.ZodObject<ZodRawShape, {
496
- strict: true;
497
- }, {
498
- [x: string]: any;
499
- [x: number]: any;
500
- }>;
501
- authorization: z.ZodArray<z.ZodObject<{
502
- actor: z.ZodString;
503
- permission: z.ZodString;
504
- }, {
505
- strict: true;
506
- }, {
701
+ signatures: string[];
702
+ transaction: {
703
+ expiration: string;
704
+ ref_block_num: number;
705
+ ref_block_prefix: number;
706
+ max_net_usage_words: number;
707
+ max_cpu_usage_ms: number;
708
+ delay_sec: number;
709
+ context_free_actions: {
710
+ data?: any;
711
+ hex_data?: string | undefined;
712
+ account: string;
713
+ name: string;
714
+ authorization: {
507
715
  actor: string;
508
716
  permission: string;
509
- }>>;
510
- }, {
511
- strict: true;
512
- }, {
717
+ }[];
718
+ }[];
719
+ transaction_extensions: ((string | number)[] | undefined)[];
720
+ actions: ({
513
721
  account: string;
514
- name: string;
515
722
  data: {
516
723
  [x: string]: any;
517
- [x: number]: any;
518
724
  };
725
+ name: string;
519
726
  authorization: {
520
727
  actor: string;
521
728
  permission: string;
522
729
  }[];
523
- }>, z.ZodObject<{
524
- account: z.ZodLiteral<"webauthn">;
525
- name: z.ZodLiteral<"exec">;
526
- data: z.ZodObject<{
527
- account: z.ZodString;
528
- key: z.ZodObject<{
529
- key: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
530
- modulus: z.ZodString;
531
- exponent: z.ZodString;
532
- }, {
533
- strict: true;
534
- }, {
535
- modulus: string;
536
- exponent: string;
537
- }>]>>;
538
- user_presence: z.ZodNumber;
539
- rpid: z.ZodString;
540
- }, {
541
- strict: true;
542
- }, {
730
+ } | {
731
+ account: "webauthn";
732
+ data: {
733
+ account: string;
734
+ key: {
543
735
  key: (string | {
544
736
  modulus: string;
545
737
  exponent: string;
546
738
  })[];
547
739
  user_presence: number;
548
740
  rpid: string;
549
- }>;
550
- nonce: z.ZodNumber;
551
- permissions: z.ZodArray<z.ZodObject<{
552
- actor: z.ZodString;
553
- permission: z.ZodString;
554
- }, {
555
- strict: true;
556
- }, {
741
+ };
742
+ nonce: number;
743
+ permissions: {
557
744
  actor: string;
558
745
  permission: string;
559
- }>>;
560
- signature: z.ZodObject<{
561
- auth_data: z.ZodString;
562
- client_json: z.ZodString;
563
- signature: z.ZodString;
564
- }, {
565
- strict: true;
566
- }, {
746
+ }[];
747
+ signature: {
748
+ signature: string;
567
749
  auth_data: string;
568
750
  client_json: string;
569
- signature: string;
570
- }>;
571
- trx: z.ZodObject<{
572
- expiration: z.ZodString;
573
- ref_block_num: z.ZodNumber;
574
- ref_block_prefix: z.ZodNumber;
575
- max_net_usage_words: z.ZodNumber;
576
- max_cpu_usage_ms: z.ZodNumber;
577
- delay_sec: z.ZodNumber;
578
- context_free_actions: z.ZodArray<z.ZodAny>;
579
- transaction_extensions: z.ZodArray<z.ZodAny>;
580
- } & {
581
- actions: z.ZodArray<z.ZodObject<{
582
- account: z.ZodString | z.ZodLiteral<string>;
583
- name: z.ZodLiteral<string>;
584
- data: z.ZodUnion<[z.ZodString, z.ZodObject<ZodRawShape, {
585
- strict: true;
586
- }, {
751
+ };
752
+ trx: {
753
+ expiration: string;
754
+ ref_block_num: number;
755
+ ref_block_prefix: number;
756
+ max_net_usage_words: number;
757
+ max_cpu_usage_ms: number;
758
+ delay_sec: number;
759
+ context_free_actions: {
760
+ data?: any;
761
+ hex_data?: string | undefined;
762
+ account: string;
763
+ name: string;
764
+ authorization: {
765
+ actor: string;
766
+ permission: string;
767
+ }[];
768
+ }[];
769
+ transaction_extensions: ((string | number)[] | undefined)[];
770
+ actions: {
771
+ account: string;
772
+ data: string | {
587
773
  [x: string]: any;
588
- [x: number]: any;
589
- }>]>;
590
- authorization: z.ZodArray<z.ZodObject<{
591
- actor: z.ZodString;
592
- permission: z.ZodString;
774
+ };
775
+ name: string;
776
+ authorization: {
777
+ actor: string;
778
+ permission: string;
779
+ }[];
780
+ }[];
781
+ };
782
+ };
783
+ name: "exec";
784
+ authorization: {
785
+ actor: string;
786
+ permission: string;
787
+ }[];
788
+ })[];
789
+ };
790
+ }, {
791
+ signer: {
792
+ actor: string;
793
+ permission: string;
794
+ };
795
+ signatures: string[];
796
+ transaction: {
797
+ expiration: string;
798
+ ref_block_num: number;
799
+ ref_block_prefix: number;
800
+ max_net_usage_words: number;
801
+ max_cpu_usage_ms: number;
802
+ delay_sec: number;
803
+ context_free_actions: {
804
+ data?: any;
805
+ hex_data?: string | undefined;
806
+ account: string;
807
+ name: string;
808
+ authorization: {
809
+ actor: string;
810
+ permission: string;
811
+ }[];
812
+ }[];
813
+ transaction_extensions: ((string | number)[] | undefined)[];
814
+ actions: ({
815
+ account: string;
816
+ data: {
817
+ [x: string]: any;
818
+ };
819
+ name: string;
820
+ authorization: {
821
+ actor: string;
822
+ permission: string;
823
+ }[];
824
+ } | {
825
+ account: "webauthn";
826
+ data: {
827
+ account: string;
828
+ key: {
829
+ key: (string | {
830
+ modulus: string;
831
+ exponent: string;
832
+ })[];
833
+ user_presence: number;
834
+ rpid: string;
835
+ };
836
+ nonce: number;
837
+ permissions: {
838
+ actor: string;
839
+ permission: string;
840
+ }[];
841
+ signature: {
842
+ signature: string;
843
+ auth_data: string;
844
+ client_json: string;
845
+ };
846
+ trx: {
847
+ expiration: string;
848
+ ref_block_num: number;
849
+ ref_block_prefix: number;
850
+ max_net_usage_words: number;
851
+ max_cpu_usage_ms: number;
852
+ delay_sec: number;
853
+ context_free_actions: {
854
+ data?: any;
855
+ hex_data?: string | undefined;
856
+ account: string;
857
+ name: string;
858
+ authorization: {
859
+ actor: string;
860
+ permission: string;
861
+ }[];
862
+ }[];
863
+ transaction_extensions: ((string | number)[] | undefined)[];
864
+ actions: {
865
+ account: string;
866
+ data: string | {
867
+ [x: string]: any;
868
+ };
869
+ name: string;
870
+ authorization: {
871
+ actor: string;
872
+ permission: string;
873
+ }[];
874
+ }[];
875
+ };
876
+ };
877
+ name: "exec";
878
+ authorization: {
879
+ actor: string;
880
+ permission: string;
881
+ }[];
882
+ })[];
883
+ };
884
+ }>;
885
+ declare const generateAuthActionsBaseParser: z.ZodObject<{
886
+ account: z.ZodString | z.ZodLiteral<string>;
887
+ name: z.ZodLiteral<string>;
888
+ data: z.ZodObject<{
889
+ time: z.ZodString;
890
+ protonAccount: z.ZodString;
891
+ }, "strip", z.ZodTypeAny, {
892
+ time: string;
893
+ protonAccount: string;
894
+ }, {
895
+ time: string;
896
+ protonAccount: string;
897
+ }>;
898
+ authorization: z.ZodArray<z.ZodObject<{
899
+ actor: z.ZodString;
900
+ permission: z.ZodString;
901
+ }, "strip", z.ZodTypeAny, {
902
+ actor: string;
903
+ permission: string;
904
+ }, {
905
+ actor: string;
906
+ permission: string;
907
+ }>, "many">;
908
+ }, "strip", z.ZodTypeAny, {
909
+ account: string;
910
+ data: {
911
+ time: string;
912
+ protonAccount: string;
913
+ };
914
+ name: string;
915
+ authorization: {
916
+ actor: string;
917
+ permission: string;
918
+ }[];
919
+ }, {
920
+ account: string;
921
+ data: {
922
+ time: string;
923
+ protonAccount: string;
924
+ };
925
+ name: string;
926
+ authorization: {
927
+ actor: string;
928
+ permission: string;
929
+ }[];
930
+ }>;
931
+ export declare type GenerateAuthBaseAction = z.infer<typeof generateAuthActionsBaseParser>;
932
+ export declare const generateAuthParser: z.ZodObject<{
933
+ signer: z.ZodObject<{
934
+ actor: z.ZodString;
935
+ permission: z.ZodString;
936
+ }, "strip", z.ZodTypeAny, {
937
+ actor: string;
938
+ permission: string;
939
+ }, {
940
+ actor: string;
941
+ permission: string;
942
+ }>;
943
+ signatures: z.ZodArray<z.ZodString, "many">;
944
+ transaction: z.ZodObject<z.extendShape<{
945
+ expiration: z.ZodString;
946
+ ref_block_num: z.ZodNumber;
947
+ ref_block_prefix: z.ZodNumber;
948
+ max_net_usage_words: z.ZodNumber;
949
+ max_cpu_usage_ms: z.ZodNumber;
950
+ delay_sec: z.ZodNumber;
951
+ context_free_actions: z.ZodArray<z.ZodObject<{
952
+ account: z.ZodString;
953
+ name: z.ZodString;
954
+ authorization: z.ZodArray<z.ZodObject<{
955
+ actor: z.ZodString;
956
+ permission: z.ZodString;
957
+ }, "strip", z.ZodTypeAny, {
958
+ actor: string;
959
+ permission: string;
960
+ }, {
961
+ actor: string;
962
+ permission: string;
963
+ }>, "many">;
964
+ data: z.ZodAny;
965
+ hex_data: z.ZodOptional<z.ZodString>;
966
+ }, "strip", z.ZodTypeAny, {
967
+ data?: any;
968
+ hex_data?: string | undefined;
969
+ account: string;
970
+ name: string;
971
+ authorization: {
972
+ actor: string;
973
+ permission: string;
974
+ }[];
975
+ }, {
976
+ data?: any;
977
+ hex_data?: string | undefined;
978
+ account: string;
979
+ name: string;
980
+ authorization: {
981
+ actor: string;
982
+ permission: string;
983
+ }[];
984
+ }>, "many">;
985
+ transaction_extensions: z.ZodArray<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">>, "many">;
986
+ }, {
987
+ actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
988
+ account: z.ZodString | z.ZodLiteral<string>;
989
+ name: z.ZodLiteral<string>;
990
+ data: z.ZodObject<z.ZodRawShape, "strip", z.ZodTypeAny, {
991
+ [x: string]: any;
992
+ }, {
993
+ [x: string]: any;
994
+ }>;
995
+ authorization: z.ZodArray<z.ZodObject<{
996
+ actor: z.ZodString;
997
+ permission: z.ZodString;
998
+ }, "strip", z.ZodTypeAny, {
999
+ actor: string;
1000
+ permission: string;
1001
+ }, {
1002
+ actor: string;
1003
+ permission: string;
1004
+ }>, "many">;
1005
+ }, "strip", z.ZodTypeAny, {
1006
+ account: string;
1007
+ data: {
1008
+ [x: string]: any;
1009
+ };
1010
+ name: string;
1011
+ authorization: {
1012
+ actor: string;
1013
+ permission: string;
1014
+ }[];
1015
+ }, {
1016
+ account: string;
1017
+ data: {
1018
+ [x: string]: any;
1019
+ };
1020
+ name: string;
1021
+ authorization: {
1022
+ actor: string;
1023
+ permission: string;
1024
+ }[];
1025
+ }>, z.ZodObject<{
1026
+ account: z.ZodLiteral<"webauthn">;
1027
+ name: z.ZodLiteral<"exec">;
1028
+ data: z.ZodObject<{
1029
+ account: z.ZodString;
1030
+ key: z.ZodObject<{
1031
+ key: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1032
+ modulus: z.ZodString;
1033
+ exponent: z.ZodString;
1034
+ }, "strip", z.ZodTypeAny, {
1035
+ modulus: string;
1036
+ exponent: string;
1037
+ }, {
1038
+ modulus: string;
1039
+ exponent: string;
1040
+ }>]>, "many">;
1041
+ user_presence: z.ZodNumber;
1042
+ rpid: z.ZodString;
1043
+ }, "strip", z.ZodTypeAny, {
1044
+ key: (string | {
1045
+ modulus: string;
1046
+ exponent: string;
1047
+ })[];
1048
+ user_presence: number;
1049
+ rpid: string;
1050
+ }, {
1051
+ key: (string | {
1052
+ modulus: string;
1053
+ exponent: string;
1054
+ })[];
1055
+ user_presence: number;
1056
+ rpid: string;
1057
+ }>;
1058
+ nonce: z.ZodNumber;
1059
+ permissions: z.ZodArray<z.ZodObject<{
1060
+ actor: z.ZodString;
1061
+ permission: z.ZodString;
1062
+ }, "strip", z.ZodTypeAny, {
1063
+ actor: string;
1064
+ permission: string;
1065
+ }, {
1066
+ actor: string;
1067
+ permission: string;
1068
+ }>, "many">;
1069
+ signature: z.ZodObject<{
1070
+ auth_data: z.ZodString;
1071
+ client_json: z.ZodString;
1072
+ signature: z.ZodString;
1073
+ }, "strip", z.ZodTypeAny, {
1074
+ signature: string;
1075
+ auth_data: string;
1076
+ client_json: string;
1077
+ }, {
1078
+ signature: string;
1079
+ auth_data: string;
1080
+ client_json: string;
1081
+ }>;
1082
+ trx: z.ZodObject<z.extendShape<{
1083
+ expiration: z.ZodString;
1084
+ ref_block_num: z.ZodNumber;
1085
+ ref_block_prefix: z.ZodNumber;
1086
+ max_net_usage_words: z.ZodNumber;
1087
+ max_cpu_usage_ms: z.ZodNumber;
1088
+ delay_sec: z.ZodNumber;
1089
+ context_free_actions: z.ZodArray<z.ZodObject<{
1090
+ account: z.ZodString;
1091
+ name: z.ZodString;
1092
+ authorization: z.ZodArray<z.ZodObject<{
1093
+ actor: z.ZodString;
1094
+ permission: z.ZodString;
1095
+ }, "strip", z.ZodTypeAny, {
1096
+ actor: string;
1097
+ permission: string;
593
1098
  }, {
594
- strict: true;
1099
+ actor: string;
1100
+ permission: string;
1101
+ }>, "many">;
1102
+ data: z.ZodAny;
1103
+ hex_data: z.ZodOptional<z.ZodString>;
1104
+ }, "strip", z.ZodTypeAny, {
1105
+ data?: any;
1106
+ hex_data?: string | undefined;
1107
+ account: string;
1108
+ name: string;
1109
+ authorization: {
1110
+ actor: string;
1111
+ permission: string;
1112
+ }[];
1113
+ }, {
1114
+ data?: any;
1115
+ hex_data?: string | undefined;
1116
+ account: string;
1117
+ name: string;
1118
+ authorization: {
1119
+ actor: string;
1120
+ permission: string;
1121
+ }[];
1122
+ }>, "many">;
1123
+ transaction_extensions: z.ZodArray<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">>, "many">;
1124
+ }, {
1125
+ actions: z.ZodArray<z.ZodObject<{
1126
+ account: z.ZodString | z.ZodLiteral<string>;
1127
+ name: z.ZodLiteral<string>;
1128
+ data: z.ZodUnion<[z.ZodString, z.ZodObject<z.ZodRawShape, "strip", z.ZodTypeAny, {
1129
+ [x: string]: any;
595
1130
  }, {
1131
+ [x: string]: any;
1132
+ }>]>;
1133
+ authorization: z.ZodArray<z.ZodObject<{
1134
+ actor: z.ZodString;
1135
+ permission: z.ZodString;
1136
+ }, "strip", z.ZodTypeAny, {
1137
+ actor: string;
1138
+ permission: string;
1139
+ }, {
1140
+ actor: string;
1141
+ permission: string;
1142
+ }>, "many">;
1143
+ }, "strip", z.ZodTypeAny, {
1144
+ account: string;
1145
+ data: string | {
1146
+ [x: string]: any;
1147
+ };
1148
+ name: string;
1149
+ authorization: {
1150
+ actor: string;
1151
+ permission: string;
1152
+ }[];
1153
+ }, {
1154
+ account: string;
1155
+ data: string | {
1156
+ [x: string]: any;
1157
+ };
1158
+ name: string;
1159
+ authorization: {
1160
+ actor: string;
1161
+ permission: string;
1162
+ }[];
1163
+ }>, "many">;
1164
+ }>, "strip", z.ZodTypeAny, {
1165
+ expiration: string;
1166
+ ref_block_num: number;
1167
+ ref_block_prefix: number;
1168
+ max_net_usage_words: number;
1169
+ max_cpu_usage_ms: number;
1170
+ delay_sec: number;
1171
+ context_free_actions: {
1172
+ data?: any;
1173
+ hex_data?: string | undefined;
1174
+ account: string;
1175
+ name: string;
1176
+ authorization: {
1177
+ actor: string;
1178
+ permission: string;
1179
+ }[];
1180
+ }[];
1181
+ transaction_extensions: ((string | number)[] | undefined)[];
1182
+ actions: {
1183
+ account: string;
1184
+ data: string | {
1185
+ [x: string]: any;
1186
+ };
1187
+ name: string;
1188
+ authorization: {
1189
+ actor: string;
1190
+ permission: string;
1191
+ }[];
1192
+ }[];
1193
+ }, {
1194
+ expiration: string;
1195
+ ref_block_num: number;
1196
+ ref_block_prefix: number;
1197
+ max_net_usage_words: number;
1198
+ max_cpu_usage_ms: number;
1199
+ delay_sec: number;
1200
+ context_free_actions: {
1201
+ data?: any;
1202
+ hex_data?: string | undefined;
1203
+ account: string;
1204
+ name: string;
1205
+ authorization: {
1206
+ actor: string;
1207
+ permission: string;
1208
+ }[];
1209
+ }[];
1210
+ transaction_extensions: ((string | number)[] | undefined)[];
1211
+ actions: {
1212
+ account: string;
1213
+ data: string | {
1214
+ [x: string]: any;
1215
+ };
1216
+ name: string;
1217
+ authorization: {
1218
+ actor: string;
1219
+ permission: string;
1220
+ }[];
1221
+ }[];
1222
+ }>;
1223
+ }, "strip", z.ZodTypeAny, {
1224
+ account: string;
1225
+ key: {
1226
+ key: (string | {
1227
+ modulus: string;
1228
+ exponent: string;
1229
+ })[];
1230
+ user_presence: number;
1231
+ rpid: string;
1232
+ };
1233
+ nonce: number;
1234
+ permissions: {
1235
+ actor: string;
1236
+ permission: string;
1237
+ }[];
1238
+ signature: {
1239
+ signature: string;
1240
+ auth_data: string;
1241
+ client_json: string;
1242
+ };
1243
+ trx: {
1244
+ expiration: string;
1245
+ ref_block_num: number;
1246
+ ref_block_prefix: number;
1247
+ max_net_usage_words: number;
1248
+ max_cpu_usage_ms: number;
1249
+ delay_sec: number;
1250
+ context_free_actions: {
1251
+ data?: any;
1252
+ hex_data?: string | undefined;
1253
+ account: string;
1254
+ name: string;
1255
+ authorization: {
1256
+ actor: string;
1257
+ permission: string;
1258
+ }[];
1259
+ }[];
1260
+ transaction_extensions: ((string | number)[] | undefined)[];
1261
+ actions: {
1262
+ account: string;
1263
+ data: string | {
1264
+ [x: string]: any;
1265
+ };
1266
+ name: string;
1267
+ authorization: {
1268
+ actor: string;
1269
+ permission: string;
1270
+ }[];
1271
+ }[];
1272
+ };
1273
+ }, {
1274
+ account: string;
1275
+ key: {
1276
+ key: (string | {
1277
+ modulus: string;
1278
+ exponent: string;
1279
+ })[];
1280
+ user_presence: number;
1281
+ rpid: string;
1282
+ };
1283
+ nonce: number;
1284
+ permissions: {
1285
+ actor: string;
1286
+ permission: string;
1287
+ }[];
1288
+ signature: {
1289
+ signature: string;
1290
+ auth_data: string;
1291
+ client_json: string;
1292
+ };
1293
+ trx: {
1294
+ expiration: string;
1295
+ ref_block_num: number;
1296
+ ref_block_prefix: number;
1297
+ max_net_usage_words: number;
1298
+ max_cpu_usage_ms: number;
1299
+ delay_sec: number;
1300
+ context_free_actions: {
1301
+ data?: any;
1302
+ hex_data?: string | undefined;
1303
+ account: string;
1304
+ name: string;
1305
+ authorization: {
1306
+ actor: string;
1307
+ permission: string;
1308
+ }[];
1309
+ }[];
1310
+ transaction_extensions: ((string | number)[] | undefined)[];
1311
+ actions: {
1312
+ account: string;
1313
+ data: string | {
1314
+ [x: string]: any;
1315
+ };
1316
+ name: string;
1317
+ authorization: {
1318
+ actor: string;
1319
+ permission: string;
1320
+ }[];
1321
+ }[];
1322
+ };
1323
+ }>;
1324
+ authorization: z.ZodArray<z.ZodObject<{
1325
+ actor: z.ZodString;
1326
+ permission: z.ZodString;
1327
+ }, "strip", z.ZodTypeAny, {
1328
+ actor: string;
1329
+ permission: string;
1330
+ }, {
1331
+ actor: string;
1332
+ permission: string;
1333
+ }>, "many">;
1334
+ }, "strip", z.ZodTypeAny, {
1335
+ account: "webauthn";
1336
+ data: {
1337
+ account: string;
1338
+ key: {
1339
+ key: (string | {
1340
+ modulus: string;
1341
+ exponent: string;
1342
+ })[];
1343
+ user_presence: number;
1344
+ rpid: string;
1345
+ };
1346
+ nonce: number;
1347
+ permissions: {
1348
+ actor: string;
1349
+ permission: string;
1350
+ }[];
1351
+ signature: {
1352
+ signature: string;
1353
+ auth_data: string;
1354
+ client_json: string;
1355
+ };
1356
+ trx: {
1357
+ expiration: string;
1358
+ ref_block_num: number;
1359
+ ref_block_prefix: number;
1360
+ max_net_usage_words: number;
1361
+ max_cpu_usage_ms: number;
1362
+ delay_sec: number;
1363
+ context_free_actions: {
1364
+ data?: any;
1365
+ hex_data?: string | undefined;
1366
+ account: string;
1367
+ name: string;
1368
+ authorization: {
596
1369
  actor: string;
597
1370
  permission: string;
598
- }>>;
599
- }, {
600
- strict: true;
601
- }, {
1371
+ }[];
1372
+ }[];
1373
+ transaction_extensions: ((string | number)[] | undefined)[];
1374
+ actions: {
602
1375
  account: string;
603
- name: string;
604
1376
  data: string | {
605
1377
  [x: string]: any;
606
- [x: number]: any;
607
1378
  };
1379
+ name: string;
608
1380
  authorization: {
609
1381
  actor: string;
610
1382
  permission: string;
611
1383
  }[];
612
- }>>;
613
- }, import("zod/lib/src/helpers/objectUtil").objectUtil.MergeObjectParams<{
614
- strict: true;
615
- }, {
616
- strict: true;
617
- }>, {
1384
+ }[];
1385
+ };
1386
+ };
1387
+ name: "exec";
1388
+ authorization: {
1389
+ actor: string;
1390
+ permission: string;
1391
+ }[];
1392
+ }, {
1393
+ account: "webauthn";
1394
+ data: {
1395
+ account: string;
1396
+ key: {
1397
+ key: (string | {
1398
+ modulus: string;
1399
+ exponent: string;
1400
+ })[];
1401
+ user_presence: number;
1402
+ rpid: string;
1403
+ };
1404
+ nonce: number;
1405
+ permissions: {
1406
+ actor: string;
1407
+ permission: string;
1408
+ }[];
1409
+ signature: {
1410
+ signature: string;
1411
+ auth_data: string;
1412
+ client_json: string;
1413
+ };
1414
+ trx: {
618
1415
  expiration: string;
619
1416
  ref_block_num: number;
620
1417
  ref_block_prefix: number;
621
1418
  max_net_usage_words: number;
622
1419
  max_cpu_usage_ms: number;
623
1420
  delay_sec: number;
624
- context_free_actions: any[];
625
- transaction_extensions: any[];
626
- actions: {
1421
+ context_free_actions: {
1422
+ data?: any;
1423
+ hex_data?: string | undefined;
627
1424
  account: string;
628
1425
  name: string;
1426
+ authorization: {
1427
+ actor: string;
1428
+ permission: string;
1429
+ }[];
1430
+ }[];
1431
+ transaction_extensions: ((string | number)[] | undefined)[];
1432
+ actions: {
1433
+ account: string;
629
1434
  data: string | {
630
1435
  [x: string]: any;
631
- [x: number]: any;
632
1436
  };
1437
+ name: string;
633
1438
  authorization: {
634
1439
  actor: string;
635
1440
  permission: string;
636
1441
  }[];
637
1442
  }[];
638
- }>;
639
- }, {
640
- strict: true;
641
- }, {
1443
+ };
1444
+ };
1445
+ name: "exec";
1446
+ authorization: {
1447
+ actor: string;
1448
+ permission: string;
1449
+ }[];
1450
+ }>]>, "many">;
1451
+ }>, "strip", z.ZodTypeAny, {
1452
+ expiration: string;
1453
+ ref_block_num: number;
1454
+ ref_block_prefix: number;
1455
+ max_net_usage_words: number;
1456
+ max_cpu_usage_ms: number;
1457
+ delay_sec: number;
1458
+ context_free_actions: {
1459
+ data?: any;
1460
+ hex_data?: string | undefined;
1461
+ account: string;
1462
+ name: string;
1463
+ authorization: {
1464
+ actor: string;
1465
+ permission: string;
1466
+ }[];
1467
+ }[];
1468
+ transaction_extensions: ((string | number)[] | undefined)[];
1469
+ actions: ({
1470
+ account: string;
1471
+ data: {
1472
+ [x: string]: any;
1473
+ };
1474
+ name: string;
1475
+ authorization: {
1476
+ actor: string;
1477
+ permission: string;
1478
+ }[];
1479
+ } | {
1480
+ account: "webauthn";
1481
+ data: {
642
1482
  account: string;
643
1483
  key: {
644
1484
  key: (string | {
@@ -648,16 +1488,16 @@ export declare const generateAuthParser: z.ZodObject<{
648
1488
  user_presence: number;
649
1489
  rpid: string;
650
1490
  };
651
- signature: {
652
- auth_data: string;
653
- client_json: string;
654
- signature: string;
655
- };
656
1491
  nonce: number;
657
1492
  permissions: {
658
1493
  actor: string;
659
1494
  permission: string;
660
1495
  }[];
1496
+ signature: {
1497
+ signature: string;
1498
+ auth_data: string;
1499
+ client_json: string;
1500
+ };
661
1501
  trx: {
662
1502
  expiration: string;
663
1503
  ref_block_num: number;
@@ -665,36 +1505,66 @@ export declare const generateAuthParser: z.ZodObject<{
665
1505
  max_net_usage_words: number;
666
1506
  max_cpu_usage_ms: number;
667
1507
  delay_sec: number;
668
- context_free_actions: any[];
669
- transaction_extensions: any[];
670
- actions: {
1508
+ context_free_actions: {
1509
+ data?: any;
1510
+ hex_data?: string | undefined;
671
1511
  account: string;
672
1512
  name: string;
1513
+ authorization: {
1514
+ actor: string;
1515
+ permission: string;
1516
+ }[];
1517
+ }[];
1518
+ transaction_extensions: ((string | number)[] | undefined)[];
1519
+ actions: {
1520
+ account: string;
673
1521
  data: string | {
674
1522
  [x: string]: any;
675
- [x: number]: any;
676
1523
  };
1524
+ name: string;
677
1525
  authorization: {
678
1526
  actor: string;
679
1527
  permission: string;
680
1528
  }[];
681
1529
  }[];
682
1530
  };
683
- }>;
684
- authorization: z.ZodArray<z.ZodObject<{
685
- actor: z.ZodString;
686
- permission: z.ZodString;
687
- }, {
688
- strict: true;
689
- }, {
1531
+ };
1532
+ name: "exec";
1533
+ authorization: {
690
1534
  actor: string;
691
1535
  permission: string;
692
- }>>;
693
- }, {
694
- strict: true;
695
- }, {
1536
+ }[];
1537
+ })[];
1538
+ }, {
1539
+ expiration: string;
1540
+ ref_block_num: number;
1541
+ ref_block_prefix: number;
1542
+ max_net_usage_words: number;
1543
+ max_cpu_usage_ms: number;
1544
+ delay_sec: number;
1545
+ context_free_actions: {
1546
+ data?: any;
1547
+ hex_data?: string | undefined;
1548
+ account: string;
1549
+ name: string;
1550
+ authorization: {
1551
+ actor: string;
1552
+ permission: string;
1553
+ }[];
1554
+ }[];
1555
+ transaction_extensions: ((string | number)[] | undefined)[];
1556
+ actions: ({
1557
+ account: string;
1558
+ data: {
1559
+ [x: string]: any;
1560
+ };
1561
+ name: string;
1562
+ authorization: {
1563
+ actor: string;
1564
+ permission: string;
1565
+ }[];
1566
+ } | {
696
1567
  account: "webauthn";
697
- name: "exec";
698
1568
  data: {
699
1569
  account: string;
700
1570
  key: {
@@ -705,16 +1575,16 @@ export declare const generateAuthParser: z.ZodObject<{
705
1575
  user_presence: number;
706
1576
  rpid: string;
707
1577
  };
708
- signature: {
709
- auth_data: string;
710
- client_json: string;
711
- signature: string;
712
- };
713
1578
  nonce: number;
714
1579
  permissions: {
715
1580
  actor: string;
716
1581
  permission: string;
717
1582
  }[];
1583
+ signature: {
1584
+ signature: string;
1585
+ auth_data: string;
1586
+ client_json: string;
1587
+ };
718
1588
  trx: {
719
1589
  expiration: string;
720
1590
  ref_block_num: number;
@@ -722,15 +1592,23 @@ export declare const generateAuthParser: z.ZodObject<{
722
1592
  max_net_usage_words: number;
723
1593
  max_cpu_usage_ms: number;
724
1594
  delay_sec: number;
725
- context_free_actions: any[];
726
- transaction_extensions: any[];
727
- actions: {
1595
+ context_free_actions: {
1596
+ data?: any;
1597
+ hex_data?: string | undefined;
728
1598
  account: string;
729
1599
  name: string;
1600
+ authorization: {
1601
+ actor: string;
1602
+ permission: string;
1603
+ }[];
1604
+ }[];
1605
+ transaction_extensions: ((string | number)[] | undefined)[];
1606
+ actions: {
1607
+ account: string;
730
1608
  data: string | {
731
1609
  [x: string]: any;
732
- [x: number]: any;
733
1610
  };
1611
+ name: string;
734
1612
  authorization: {
735
1613
  actor: string;
736
1614
  permission: string;
@@ -738,38 +1616,49 @@ export declare const generateAuthParser: z.ZodObject<{
738
1616
  }[];
739
1617
  };
740
1618
  };
1619
+ name: "exec";
741
1620
  authorization: {
742
1621
  actor: string;
743
1622
  permission: string;
744
1623
  }[];
745
- }>]>>;
746
- }, import("zod/lib/src/helpers/objectUtil").objectUtil.MergeObjectParams<{
747
- strict: true;
748
- }, {
749
- strict: true;
750
- }>, {
1624
+ })[];
1625
+ }>;
1626
+ }, "strip", z.ZodTypeAny, {
1627
+ signer: {
1628
+ actor: string;
1629
+ permission: string;
1630
+ };
1631
+ signatures: string[];
1632
+ transaction: {
751
1633
  expiration: string;
752
1634
  ref_block_num: number;
753
1635
  ref_block_prefix: number;
754
1636
  max_net_usage_words: number;
755
1637
  max_cpu_usage_ms: number;
756
1638
  delay_sec: number;
757
- context_free_actions: any[];
758
- transaction_extensions: any[];
759
- actions: ({
1639
+ context_free_actions: {
1640
+ data?: any;
1641
+ hex_data?: string | undefined;
760
1642
  account: string;
761
1643
  name: string;
1644
+ authorization: {
1645
+ actor: string;
1646
+ permission: string;
1647
+ }[];
1648
+ }[];
1649
+ transaction_extensions: ((string | number)[] | undefined)[];
1650
+ actions: ({
1651
+ account: string;
762
1652
  data: {
763
1653
  [x: string]: any;
764
- [x: number]: any;
765
1654
  };
1655
+ name: string;
766
1656
  authorization: {
767
1657
  actor: string;
768
1658
  permission: string;
769
1659
  }[];
770
1660
  } | {
771
1661
  account: "webauthn";
772
- name: "exec";
773
1662
  data: {
774
1663
  account: string;
775
1664
  key: {
@@ -780,16 +1669,16 @@ export declare const generateAuthParser: z.ZodObject<{
780
1669
  user_presence: number;
781
1670
  rpid: string;
782
1671
  };
783
- signature: {
784
- auth_data: string;
785
- client_json: string;
786
- signature: string;
787
- };
788
1672
  nonce: number;
789
1673
  permissions: {
790
1674
  actor: string;
791
1675
  permission: string;
792
1676
  }[];
1677
+ signature: {
1678
+ signature: string;
1679
+ auth_data: string;
1680
+ client_json: string;
1681
+ };
793
1682
  trx: {
794
1683
  expiration: string;
795
1684
  ref_block_num: number;
@@ -797,15 +1686,23 @@ export declare const generateAuthParser: z.ZodObject<{
797
1686
  max_net_usage_words: number;
798
1687
  max_cpu_usage_ms: number;
799
1688
  delay_sec: number;
800
- context_free_actions: any[];
801
- transaction_extensions: any[];
802
- actions: {
1689
+ context_free_actions: {
1690
+ data?: any;
1691
+ hex_data?: string | undefined;
803
1692
  account: string;
804
1693
  name: string;
1694
+ authorization: {
1695
+ actor: string;
1696
+ permission: string;
1697
+ }[];
1698
+ }[];
1699
+ transaction_extensions: ((string | number)[] | undefined)[];
1700
+ actions: {
1701
+ account: string;
805
1702
  data: string | {
806
1703
  [x: string]: any;
807
- [x: number]: any;
808
1704
  };
1705
+ name: string;
809
1706
  authorization: {
810
1707
  actor: string;
811
1708
  permission: string;
@@ -813,14 +1710,13 @@ export declare const generateAuthParser: z.ZodObject<{
813
1710
  }[];
814
1711
  };
815
1712
  };
1713
+ name: "exec";
816
1714
  authorization: {
817
1715
  actor: string;
818
1716
  permission: string;
819
1717
  }[];
820
1718
  })[];
821
- }>;
822
- }, {
823
- strict: true;
1719
+ };
824
1720
  }, {
825
1721
  signer: {
826
1722
  actor: string;
@@ -834,22 +1730,29 @@ export declare const generateAuthParser: z.ZodObject<{
834
1730
  max_net_usage_words: number;
835
1731
  max_cpu_usage_ms: number;
836
1732
  delay_sec: number;
837
- context_free_actions: any[];
838
- transaction_extensions: any[];
839
- actions: ({
1733
+ context_free_actions: {
1734
+ data?: any;
1735
+ hex_data?: string | undefined;
840
1736
  account: string;
841
1737
  name: string;
1738
+ authorization: {
1739
+ actor: string;
1740
+ permission: string;
1741
+ }[];
1742
+ }[];
1743
+ transaction_extensions: ((string | number)[] | undefined)[];
1744
+ actions: ({
1745
+ account: string;
842
1746
  data: {
843
1747
  [x: string]: any;
844
- [x: number]: any;
845
1748
  };
1749
+ name: string;
846
1750
  authorization: {
847
1751
  actor: string;
848
1752
  permission: string;
849
1753
  }[];
850
1754
  } | {
851
1755
  account: "webauthn";
852
- name: "exec";
853
1756
  data: {
854
1757
  account: string;
855
1758
  key: {
@@ -860,16 +1763,16 @@ export declare const generateAuthParser: z.ZodObject<{
860
1763
  user_presence: number;
861
1764
  rpid: string;
862
1765
  };
863
- signature: {
864
- auth_data: string;
865
- client_json: string;
866
- signature: string;
867
- };
868
1766
  nonce: number;
869
1767
  permissions: {
870
1768
  actor: string;
871
1769
  permission: string;
872
1770
  }[];
1771
+ signature: {
1772
+ signature: string;
1773
+ auth_data: string;
1774
+ client_json: string;
1775
+ };
873
1776
  trx: {
874
1777
  expiration: string;
875
1778
  ref_block_num: number;
@@ -877,15 +1780,23 @@ export declare const generateAuthParser: z.ZodObject<{
877
1780
  max_net_usage_words: number;
878
1781
  max_cpu_usage_ms: number;
879
1782
  delay_sec: number;
880
- context_free_actions: any[];
881
- transaction_extensions: any[];
882
- actions: {
1783
+ context_free_actions: {
1784
+ data?: any;
1785
+ hex_data?: string | undefined;
883
1786
  account: string;
884
1787
  name: string;
1788
+ authorization: {
1789
+ actor: string;
1790
+ permission: string;
1791
+ }[];
1792
+ }[];
1793
+ transaction_extensions: ((string | number)[] | undefined)[];
1794
+ actions: {
1795
+ account: string;
885
1796
  data: string | {
886
1797
  [x: string]: any;
887
- [x: number]: any;
888
1798
  };
1799
+ name: string;
889
1800
  authorization: {
890
1801
  actor: string;
891
1802
  permission: string;
@@ -893,6 +1804,7 @@ export declare const generateAuthParser: z.ZodObject<{
893
1804
  }[];
894
1805
  };
895
1806
  };
1807
+ name: "exec";
896
1808
  authorization: {
897
1809
  actor: string;
898
1810
  permission: string;