@proton/wrap-constants 0.0.48 → 0.0.49

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