@digicatapult/sqnc-process-management 2.2.131 → 2.2.132

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/build/index.js +95 -0
  2. package/build/index.js.map +1 -0
  3. package/build/lib/process/__tests__/unit.test.js +191 -0
  4. package/build/lib/process/__tests__/unit.test.js.map +1 -0
  5. package/build/lib/process/api.js +206 -0
  6. package/build/lib/process/api.js.map +1 -0
  7. package/build/lib/process/constants.js +5 -0
  8. package/build/lib/process/constants.js.map +1 -0
  9. package/build/{src/lib → lib}/process/hex.js +4 -2
  10. package/build/lib/process/hex.js.map +1 -0
  11. package/build/lib/process/index.js +304 -0
  12. package/build/lib/process/index.js.map +1 -0
  13. package/build/{src/lib → lib}/types/error.js +9 -6
  14. package/build/lib/types/error.js.map +1 -0
  15. package/build/lib/types/polkadot.d.js +2 -0
  16. package/build/lib/types/polkadot.d.js.map +1 -0
  17. package/build/lib/types/process.d.js +2 -0
  18. package/build/lib/types/process.d.js.map +1 -0
  19. package/build/lib/types/validation.js +179 -0
  20. package/build/lib/types/validation.js.map +1 -0
  21. package/build/lib/utils/polkadot.js +26 -0
  22. package/build/lib/utils/polkadot.js.map +1 -0
  23. package/build/version.js +5 -0
  24. package/build/version.js.map +1 -0
  25. package/package.json +12 -10
  26. package/build/package.json +0 -65
  27. package/build/src/index.d.ts +0 -2
  28. package/build/src/index.js +0 -127
  29. package/build/src/lib/process/_tests_/unit.test.d.ts +0 -1
  30. package/build/src/lib/process/_tests_/unit.test.js +0 -112
  31. package/build/src/lib/process/api.d.ts +0 -10
  32. package/build/src/lib/process/api.js +0 -193
  33. package/build/src/lib/process/constants.d.ts +0 -3
  34. package/build/src/lib/process/constants.js +0 -3
  35. package/build/src/lib/process/hex.d.ts +0 -2
  36. package/build/src/lib/process/index.d.ts +0 -22
  37. package/build/src/lib/process/index.js +0 -311
  38. package/build/src/lib/types/error.d.ts +0 -14
  39. package/build/src/lib/types/validation.d.ts +0 -3592
  40. package/build/src/lib/types/validation.js +0 -128
  41. package/build/src/lib/utils/polkadot.d.ts +0 -6
  42. package/build/src/lib/utils/polkadot.js +0 -28
  43. package/build/src/version.d.ts +0 -2
  44. package/build/src/version.js +0 -3
  45. package/build/tests/fixtures/processes.d.ts +0 -281
  46. package/build/tests/fixtures/processes.js +0 -1066
  47. package/build/tests/fixtures/programs.d.ts +0 -14
  48. package/build/tests/fixtures/programs.js +0 -211
  49. package/build/tests/helpers/containers.d.ts +0 -7
  50. package/build/tests/helpers/containers.js +0 -40
  51. package/build/tests/helpers/substrateHelper.d.ts +0 -2
  52. package/build/tests/helpers/substrateHelper.js +0 -100
  53. package/build/tests/integration/command-functions.test.d.ts +0 -1
  54. package/build/tests/integration/command-functions.test.js +0 -414
  55. package/build/tests/integration/without-manual-seal.test.d.ts +0 -1
  56. package/build/tests/integration/without-manual-seal.test.js +0 -52
  57. package/build/tsconfig.tsbuildinfo +0 -1
@@ -1,3592 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const restrictionValidation: z.ZodUnion<[z.ZodLiteral<"None">, z.ZodLiteral<"Fail">, z.ZodObject<{
3
- SenderHasInputRole: z.ZodObject<{
4
- index: z.ZodNumber;
5
- role_key: z.ZodString;
6
- }, "strip", z.ZodTypeAny, {
7
- index: number;
8
- role_key: string;
9
- }, {
10
- index: number;
11
- role_key: string;
12
- }>;
13
- }, "strict", z.ZodTypeAny, {
14
- SenderHasInputRole: {
15
- index: number;
16
- role_key: string;
17
- };
18
- }, {
19
- SenderHasInputRole: {
20
- index: number;
21
- role_key: string;
22
- };
23
- }>, z.ZodObject<{
24
- SenderHasOutputRole: z.ZodObject<{
25
- index: z.ZodNumber;
26
- role_key: z.ZodString;
27
- }, "strip", z.ZodTypeAny, {
28
- index: number;
29
- role_key: string;
30
- }, {
31
- index: number;
32
- role_key: string;
33
- }>;
34
- }, "strict", z.ZodTypeAny, {
35
- SenderHasOutputRole: {
36
- index: number;
37
- role_key: string;
38
- };
39
- }, {
40
- SenderHasOutputRole: {
41
- index: number;
42
- role_key: string;
43
- };
44
- }>, z.ZodObject<{
45
- OutputHasRole: z.ZodObject<{
46
- index: z.ZodNumber;
47
- role_key: z.ZodString;
48
- }, "strip", z.ZodTypeAny, {
49
- index: number;
50
- role_key: string;
51
- }, {
52
- index: number;
53
- role_key: string;
54
- }>;
55
- }, "strict", z.ZodTypeAny, {
56
- OutputHasRole: {
57
- index: number;
58
- role_key: string;
59
- };
60
- }, {
61
- OutputHasRole: {
62
- index: number;
63
- role_key: string;
64
- };
65
- }>, z.ZodObject<{
66
- OutputHasMetadata: z.ZodObject<{
67
- index: z.ZodNumber;
68
- metadata_key: z.ZodString;
69
- }, "strip", z.ZodTypeAny, {
70
- index: number;
71
- metadata_key: string;
72
- }, {
73
- index: number;
74
- metadata_key: string;
75
- }>;
76
- }, "strict", z.ZodTypeAny, {
77
- OutputHasMetadata: {
78
- index: number;
79
- metadata_key: string;
80
- };
81
- }, {
82
- OutputHasMetadata: {
83
- index: number;
84
- metadata_key: string;
85
- };
86
- }>, z.ZodObject<{
87
- InputHasRole: z.ZodObject<{
88
- index: z.ZodNumber;
89
- role_key: z.ZodString;
90
- }, "strip", z.ZodTypeAny, {
91
- index: number;
92
- role_key: string;
93
- }, {
94
- index: number;
95
- role_key: string;
96
- }>;
97
- }, "strict", z.ZodTypeAny, {
98
- InputHasRole: {
99
- index: number;
100
- role_key: string;
101
- };
102
- }, {
103
- InputHasRole: {
104
- index: number;
105
- role_key: string;
106
- };
107
- }>, z.ZodObject<{
108
- InputHasMetadata: z.ZodObject<{
109
- index: z.ZodNumber;
110
- metadata_key: z.ZodString;
111
- }, "strip", z.ZodTypeAny, {
112
- index: number;
113
- metadata_key: string;
114
- }, {
115
- index: number;
116
- metadata_key: string;
117
- }>;
118
- }, "strict", z.ZodTypeAny, {
119
- InputHasMetadata: {
120
- index: number;
121
- metadata_key: string;
122
- };
123
- }, {
124
- InputHasMetadata: {
125
- index: number;
126
- metadata_key: string;
127
- };
128
- }>, z.ZodObject<{
129
- MatchInputOutputRole: z.ZodObject<{
130
- input_index: z.ZodNumber;
131
- input_role_key: z.ZodString;
132
- output_index: z.ZodNumber;
133
- output_role_key: z.ZodString;
134
- }, "strip", z.ZodTypeAny, {
135
- input_index: number;
136
- input_role_key: string;
137
- output_index: number;
138
- output_role_key: string;
139
- }, {
140
- input_index: number;
141
- input_role_key: string;
142
- output_index: number;
143
- output_role_key: string;
144
- }>;
145
- }, "strict", z.ZodTypeAny, {
146
- MatchInputOutputRole: {
147
- input_index: number;
148
- input_role_key: string;
149
- output_index: number;
150
- output_role_key: string;
151
- };
152
- }, {
153
- MatchInputOutputRole: {
154
- input_index: number;
155
- input_role_key: string;
156
- output_index: number;
157
- output_role_key: string;
158
- };
159
- }>, z.ZodObject<{
160
- MatchInputOutputMetadataValue: z.ZodObject<{
161
- input_index: z.ZodNumber;
162
- input_metadata_key: z.ZodString;
163
- output_index: z.ZodNumber;
164
- output_metadata_key: z.ZodString;
165
- }, "strip", z.ZodTypeAny, {
166
- input_index: number;
167
- output_index: number;
168
- input_metadata_key: string;
169
- output_metadata_key: string;
170
- }, {
171
- input_index: number;
172
- output_index: number;
173
- input_metadata_key: string;
174
- output_metadata_key: string;
175
- }>;
176
- }, "strict", z.ZodTypeAny, {
177
- MatchInputOutputMetadataValue: {
178
- input_index: number;
179
- output_index: number;
180
- input_metadata_key: string;
181
- output_metadata_key: string;
182
- };
183
- }, {
184
- MatchInputOutputMetadataValue: {
185
- input_index: number;
186
- output_index: number;
187
- input_metadata_key: string;
188
- output_metadata_key: string;
189
- };
190
- }>, z.ZodObject<{
191
- MatchInputIdOutputMetadataValue: z.ZodObject<{
192
- input_index: z.ZodNumber;
193
- output_index: z.ZodNumber;
194
- output_metadata_key: z.ZodString;
195
- }, "strip", z.ZodTypeAny, {
196
- input_index: number;
197
- output_index: number;
198
- output_metadata_key: string;
199
- }, {
200
- input_index: number;
201
- output_index: number;
202
- output_metadata_key: string;
203
- }>;
204
- }, "strict", z.ZodTypeAny, {
205
- MatchInputIdOutputMetadataValue: {
206
- input_index: number;
207
- output_index: number;
208
- output_metadata_key: string;
209
- };
210
- }, {
211
- MatchInputIdOutputMetadataValue: {
212
- input_index: number;
213
- output_index: number;
214
- output_metadata_key: string;
215
- };
216
- }>, z.ZodObject<{
217
- FixedNumberOfInputs: z.ZodObject<{
218
- num_inputs: z.ZodNumber;
219
- }, "strip", z.ZodTypeAny, {
220
- num_inputs: number;
221
- }, {
222
- num_inputs: number;
223
- }>;
224
- }, "strict", z.ZodTypeAny, {
225
- FixedNumberOfInputs: {
226
- num_inputs: number;
227
- };
228
- }, {
229
- FixedNumberOfInputs: {
230
- num_inputs: number;
231
- };
232
- }>, z.ZodObject<{
233
- FixedNumberOfOutputs: z.ZodObject<{
234
- num_outputs: z.ZodNumber;
235
- }, "strip", z.ZodTypeAny, {
236
- num_outputs: number;
237
- }, {
238
- num_outputs: number;
239
- }>;
240
- }, "strict", z.ZodTypeAny, {
241
- FixedNumberOfOutputs: {
242
- num_outputs: number;
243
- };
244
- }, {
245
- FixedNumberOfOutputs: {
246
- num_outputs: number;
247
- };
248
- }>, z.ZodObject<{
249
- FixedInputMetadataValue: z.ZodObject<{
250
- index: z.ZodNumber;
251
- metadata_key: z.ZodString;
252
- metadata_value: z.ZodUnion<[z.ZodObject<{
253
- File: z.ZodString;
254
- }, "strip", z.ZodTypeAny, {
255
- File: string;
256
- }, {
257
- File: string;
258
- }>, z.ZodObject<{
259
- Literal: z.ZodString;
260
- }, "strip", z.ZodTypeAny, {
261
- Literal: string;
262
- }, {
263
- Literal: string;
264
- }>, z.ZodObject<{
265
- TokenId: z.ZodNumber;
266
- }, "strip", z.ZodTypeAny, {
267
- TokenId: number;
268
- }, {
269
- TokenId: number;
270
- }>, z.ZodObject<{
271
- None: z.ZodNull;
272
- }, "strip", z.ZodTypeAny, {
273
- None: null;
274
- }, {
275
- None: null;
276
- }>]>;
277
- }, "strip", z.ZodTypeAny, {
278
- index: number;
279
- metadata_key: string;
280
- metadata_value: {
281
- File: string;
282
- } | {
283
- Literal: string;
284
- } | {
285
- TokenId: number;
286
- } | {
287
- None: null;
288
- };
289
- }, {
290
- index: number;
291
- metadata_key: string;
292
- metadata_value: {
293
- File: string;
294
- } | {
295
- Literal: string;
296
- } | {
297
- TokenId: number;
298
- } | {
299
- None: null;
300
- };
301
- }>;
302
- }, "strict", z.ZodTypeAny, {
303
- FixedInputMetadataValue: {
304
- index: number;
305
- metadata_key: string;
306
- metadata_value: {
307
- File: string;
308
- } | {
309
- Literal: string;
310
- } | {
311
- TokenId: number;
312
- } | {
313
- None: null;
314
- };
315
- };
316
- }, {
317
- FixedInputMetadataValue: {
318
- index: number;
319
- metadata_key: string;
320
- metadata_value: {
321
- File: string;
322
- } | {
323
- Literal: string;
324
- } | {
325
- TokenId: number;
326
- } | {
327
- None: null;
328
- };
329
- };
330
- }>, z.ZodObject<{
331
- FixedOutputMetadataValue: z.ZodObject<{
332
- index: z.ZodNumber;
333
- metadata_key: z.ZodString;
334
- metadata_value: z.ZodUnion<[z.ZodObject<{
335
- File: z.ZodString;
336
- }, "strip", z.ZodTypeAny, {
337
- File: string;
338
- }, {
339
- File: string;
340
- }>, z.ZodObject<{
341
- Literal: z.ZodString;
342
- }, "strip", z.ZodTypeAny, {
343
- Literal: string;
344
- }, {
345
- Literal: string;
346
- }>, z.ZodObject<{
347
- TokenId: z.ZodNumber;
348
- }, "strip", z.ZodTypeAny, {
349
- TokenId: number;
350
- }, {
351
- TokenId: number;
352
- }>, z.ZodObject<{
353
- None: z.ZodNull;
354
- }, "strip", z.ZodTypeAny, {
355
- None: null;
356
- }, {
357
- None: null;
358
- }>]>;
359
- }, "strip", z.ZodTypeAny, {
360
- index: number;
361
- metadata_key: string;
362
- metadata_value: {
363
- File: string;
364
- } | {
365
- Literal: string;
366
- } | {
367
- TokenId: number;
368
- } | {
369
- None: null;
370
- };
371
- }, {
372
- index: number;
373
- metadata_key: string;
374
- metadata_value: {
375
- File: string;
376
- } | {
377
- Literal: string;
378
- } | {
379
- TokenId: number;
380
- } | {
381
- None: null;
382
- };
383
- }>;
384
- }, "strict", z.ZodTypeAny, {
385
- FixedOutputMetadataValue: {
386
- index: number;
387
- metadata_key: string;
388
- metadata_value: {
389
- File: string;
390
- } | {
391
- Literal: string;
392
- } | {
393
- TokenId: number;
394
- } | {
395
- None: null;
396
- };
397
- };
398
- }, {
399
- FixedOutputMetadataValue: {
400
- index: number;
401
- metadata_key: string;
402
- metadata_value: {
403
- File: string;
404
- } | {
405
- Literal: string;
406
- } | {
407
- TokenId: number;
408
- } | {
409
- None: null;
410
- };
411
- };
412
- }>, z.ZodObject<{
413
- FixedInputMetadataValueType: z.ZodObject<{
414
- index: z.ZodNumber;
415
- metadata_key: z.ZodString;
416
- metadata_value_type: z.ZodEnum<["File", "Literal", "TokenId", "None"]>;
417
- }, "strip", z.ZodTypeAny, {
418
- index: number;
419
- metadata_key: string;
420
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
421
- }, {
422
- index: number;
423
- metadata_key: string;
424
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
425
- }>;
426
- }, "strict", z.ZodTypeAny, {
427
- FixedInputMetadataValueType: {
428
- index: number;
429
- metadata_key: string;
430
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
431
- };
432
- }, {
433
- FixedInputMetadataValueType: {
434
- index: number;
435
- metadata_key: string;
436
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
437
- };
438
- }>, z.ZodObject<{
439
- FixedOutputMetadataValueType: z.ZodObject<{
440
- index: z.ZodNumber;
441
- metadata_key: z.ZodString;
442
- metadata_value_type: z.ZodEnum<["File", "Literal", "TokenId", "None"]>;
443
- }, "strip", z.ZodTypeAny, {
444
- index: number;
445
- metadata_key: string;
446
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
447
- }, {
448
- index: number;
449
- metadata_key: string;
450
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
451
- }>;
452
- }, "strict", z.ZodTypeAny, {
453
- FixedOutputMetadataValueType: {
454
- index: number;
455
- metadata_key: string;
456
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
457
- };
458
- }, {
459
- FixedOutputMetadataValueType: {
460
- index: number;
461
- metadata_key: string;
462
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
463
- };
464
- }>]>;
465
- export declare const stepValidation: z.ZodUnion<[z.ZodObject<{
466
- Op: z.ZodEnum<["Identity", "TransferL", "TransferR", "NotL", "NotR", "And", "Nand", "Or", "Nor", "Xor", "Xnor", "ImplicationL", "ImplicationR", "InhibitionL", "InhibitionR"]>;
467
- }, "strip", z.ZodTypeAny, {
468
- Op: "Identity" | "TransferL" | "TransferR" | "NotL" | "NotR" | "And" | "Nand" | "Or" | "Nor" | "Xor" | "Xnor" | "ImplicationL" | "ImplicationR" | "InhibitionL" | "InhibitionR";
469
- }, {
470
- Op: "Identity" | "TransferL" | "TransferR" | "NotL" | "NotR" | "And" | "Nand" | "Or" | "Nor" | "Xor" | "Xnor" | "ImplicationL" | "ImplicationR" | "InhibitionL" | "InhibitionR";
471
- }>, z.ZodObject<{
472
- Restriction: z.ZodUnion<[z.ZodLiteral<"None">, z.ZodLiteral<"Fail">, z.ZodObject<{
473
- SenderHasInputRole: z.ZodObject<{
474
- index: z.ZodNumber;
475
- role_key: z.ZodString;
476
- }, "strip", z.ZodTypeAny, {
477
- index: number;
478
- role_key: string;
479
- }, {
480
- index: number;
481
- role_key: string;
482
- }>;
483
- }, "strict", z.ZodTypeAny, {
484
- SenderHasInputRole: {
485
- index: number;
486
- role_key: string;
487
- };
488
- }, {
489
- SenderHasInputRole: {
490
- index: number;
491
- role_key: string;
492
- };
493
- }>, z.ZodObject<{
494
- SenderHasOutputRole: z.ZodObject<{
495
- index: z.ZodNumber;
496
- role_key: z.ZodString;
497
- }, "strip", z.ZodTypeAny, {
498
- index: number;
499
- role_key: string;
500
- }, {
501
- index: number;
502
- role_key: string;
503
- }>;
504
- }, "strict", z.ZodTypeAny, {
505
- SenderHasOutputRole: {
506
- index: number;
507
- role_key: string;
508
- };
509
- }, {
510
- SenderHasOutputRole: {
511
- index: number;
512
- role_key: string;
513
- };
514
- }>, z.ZodObject<{
515
- OutputHasRole: z.ZodObject<{
516
- index: z.ZodNumber;
517
- role_key: z.ZodString;
518
- }, "strip", z.ZodTypeAny, {
519
- index: number;
520
- role_key: string;
521
- }, {
522
- index: number;
523
- role_key: string;
524
- }>;
525
- }, "strict", z.ZodTypeAny, {
526
- OutputHasRole: {
527
- index: number;
528
- role_key: string;
529
- };
530
- }, {
531
- OutputHasRole: {
532
- index: number;
533
- role_key: string;
534
- };
535
- }>, z.ZodObject<{
536
- OutputHasMetadata: z.ZodObject<{
537
- index: z.ZodNumber;
538
- metadata_key: z.ZodString;
539
- }, "strip", z.ZodTypeAny, {
540
- index: number;
541
- metadata_key: string;
542
- }, {
543
- index: number;
544
- metadata_key: string;
545
- }>;
546
- }, "strict", z.ZodTypeAny, {
547
- OutputHasMetadata: {
548
- index: number;
549
- metadata_key: string;
550
- };
551
- }, {
552
- OutputHasMetadata: {
553
- index: number;
554
- metadata_key: string;
555
- };
556
- }>, z.ZodObject<{
557
- InputHasRole: z.ZodObject<{
558
- index: z.ZodNumber;
559
- role_key: z.ZodString;
560
- }, "strip", z.ZodTypeAny, {
561
- index: number;
562
- role_key: string;
563
- }, {
564
- index: number;
565
- role_key: string;
566
- }>;
567
- }, "strict", z.ZodTypeAny, {
568
- InputHasRole: {
569
- index: number;
570
- role_key: string;
571
- };
572
- }, {
573
- InputHasRole: {
574
- index: number;
575
- role_key: string;
576
- };
577
- }>, z.ZodObject<{
578
- InputHasMetadata: z.ZodObject<{
579
- index: z.ZodNumber;
580
- metadata_key: z.ZodString;
581
- }, "strip", z.ZodTypeAny, {
582
- index: number;
583
- metadata_key: string;
584
- }, {
585
- index: number;
586
- metadata_key: string;
587
- }>;
588
- }, "strict", z.ZodTypeAny, {
589
- InputHasMetadata: {
590
- index: number;
591
- metadata_key: string;
592
- };
593
- }, {
594
- InputHasMetadata: {
595
- index: number;
596
- metadata_key: string;
597
- };
598
- }>, z.ZodObject<{
599
- MatchInputOutputRole: z.ZodObject<{
600
- input_index: z.ZodNumber;
601
- input_role_key: z.ZodString;
602
- output_index: z.ZodNumber;
603
- output_role_key: z.ZodString;
604
- }, "strip", z.ZodTypeAny, {
605
- input_index: number;
606
- input_role_key: string;
607
- output_index: number;
608
- output_role_key: string;
609
- }, {
610
- input_index: number;
611
- input_role_key: string;
612
- output_index: number;
613
- output_role_key: string;
614
- }>;
615
- }, "strict", z.ZodTypeAny, {
616
- MatchInputOutputRole: {
617
- input_index: number;
618
- input_role_key: string;
619
- output_index: number;
620
- output_role_key: string;
621
- };
622
- }, {
623
- MatchInputOutputRole: {
624
- input_index: number;
625
- input_role_key: string;
626
- output_index: number;
627
- output_role_key: string;
628
- };
629
- }>, z.ZodObject<{
630
- MatchInputOutputMetadataValue: z.ZodObject<{
631
- input_index: z.ZodNumber;
632
- input_metadata_key: z.ZodString;
633
- output_index: z.ZodNumber;
634
- output_metadata_key: z.ZodString;
635
- }, "strip", z.ZodTypeAny, {
636
- input_index: number;
637
- output_index: number;
638
- input_metadata_key: string;
639
- output_metadata_key: string;
640
- }, {
641
- input_index: number;
642
- output_index: number;
643
- input_metadata_key: string;
644
- output_metadata_key: string;
645
- }>;
646
- }, "strict", z.ZodTypeAny, {
647
- MatchInputOutputMetadataValue: {
648
- input_index: number;
649
- output_index: number;
650
- input_metadata_key: string;
651
- output_metadata_key: string;
652
- };
653
- }, {
654
- MatchInputOutputMetadataValue: {
655
- input_index: number;
656
- output_index: number;
657
- input_metadata_key: string;
658
- output_metadata_key: string;
659
- };
660
- }>, z.ZodObject<{
661
- MatchInputIdOutputMetadataValue: z.ZodObject<{
662
- input_index: z.ZodNumber;
663
- output_index: z.ZodNumber;
664
- output_metadata_key: z.ZodString;
665
- }, "strip", z.ZodTypeAny, {
666
- input_index: number;
667
- output_index: number;
668
- output_metadata_key: string;
669
- }, {
670
- input_index: number;
671
- output_index: number;
672
- output_metadata_key: string;
673
- }>;
674
- }, "strict", z.ZodTypeAny, {
675
- MatchInputIdOutputMetadataValue: {
676
- input_index: number;
677
- output_index: number;
678
- output_metadata_key: string;
679
- };
680
- }, {
681
- MatchInputIdOutputMetadataValue: {
682
- input_index: number;
683
- output_index: number;
684
- output_metadata_key: string;
685
- };
686
- }>, z.ZodObject<{
687
- FixedNumberOfInputs: z.ZodObject<{
688
- num_inputs: z.ZodNumber;
689
- }, "strip", z.ZodTypeAny, {
690
- num_inputs: number;
691
- }, {
692
- num_inputs: number;
693
- }>;
694
- }, "strict", z.ZodTypeAny, {
695
- FixedNumberOfInputs: {
696
- num_inputs: number;
697
- };
698
- }, {
699
- FixedNumberOfInputs: {
700
- num_inputs: number;
701
- };
702
- }>, z.ZodObject<{
703
- FixedNumberOfOutputs: z.ZodObject<{
704
- num_outputs: z.ZodNumber;
705
- }, "strip", z.ZodTypeAny, {
706
- num_outputs: number;
707
- }, {
708
- num_outputs: number;
709
- }>;
710
- }, "strict", z.ZodTypeAny, {
711
- FixedNumberOfOutputs: {
712
- num_outputs: number;
713
- };
714
- }, {
715
- FixedNumberOfOutputs: {
716
- num_outputs: number;
717
- };
718
- }>, z.ZodObject<{
719
- FixedInputMetadataValue: z.ZodObject<{
720
- index: z.ZodNumber;
721
- metadata_key: z.ZodString;
722
- metadata_value: z.ZodUnion<[z.ZodObject<{
723
- File: z.ZodString;
724
- }, "strip", z.ZodTypeAny, {
725
- File: string;
726
- }, {
727
- File: string;
728
- }>, z.ZodObject<{
729
- Literal: z.ZodString;
730
- }, "strip", z.ZodTypeAny, {
731
- Literal: string;
732
- }, {
733
- Literal: string;
734
- }>, z.ZodObject<{
735
- TokenId: z.ZodNumber;
736
- }, "strip", z.ZodTypeAny, {
737
- TokenId: number;
738
- }, {
739
- TokenId: number;
740
- }>, z.ZodObject<{
741
- None: z.ZodNull;
742
- }, "strip", z.ZodTypeAny, {
743
- None: null;
744
- }, {
745
- None: null;
746
- }>]>;
747
- }, "strip", z.ZodTypeAny, {
748
- index: number;
749
- metadata_key: string;
750
- metadata_value: {
751
- File: string;
752
- } | {
753
- Literal: string;
754
- } | {
755
- TokenId: number;
756
- } | {
757
- None: null;
758
- };
759
- }, {
760
- index: number;
761
- metadata_key: string;
762
- metadata_value: {
763
- File: string;
764
- } | {
765
- Literal: string;
766
- } | {
767
- TokenId: number;
768
- } | {
769
- None: null;
770
- };
771
- }>;
772
- }, "strict", z.ZodTypeAny, {
773
- FixedInputMetadataValue: {
774
- index: number;
775
- metadata_key: string;
776
- metadata_value: {
777
- File: string;
778
- } | {
779
- Literal: string;
780
- } | {
781
- TokenId: number;
782
- } | {
783
- None: null;
784
- };
785
- };
786
- }, {
787
- FixedInputMetadataValue: {
788
- index: number;
789
- metadata_key: string;
790
- metadata_value: {
791
- File: string;
792
- } | {
793
- Literal: string;
794
- } | {
795
- TokenId: number;
796
- } | {
797
- None: null;
798
- };
799
- };
800
- }>, z.ZodObject<{
801
- FixedOutputMetadataValue: z.ZodObject<{
802
- index: z.ZodNumber;
803
- metadata_key: z.ZodString;
804
- metadata_value: z.ZodUnion<[z.ZodObject<{
805
- File: z.ZodString;
806
- }, "strip", z.ZodTypeAny, {
807
- File: string;
808
- }, {
809
- File: string;
810
- }>, z.ZodObject<{
811
- Literal: z.ZodString;
812
- }, "strip", z.ZodTypeAny, {
813
- Literal: string;
814
- }, {
815
- Literal: string;
816
- }>, z.ZodObject<{
817
- TokenId: z.ZodNumber;
818
- }, "strip", z.ZodTypeAny, {
819
- TokenId: number;
820
- }, {
821
- TokenId: number;
822
- }>, z.ZodObject<{
823
- None: z.ZodNull;
824
- }, "strip", z.ZodTypeAny, {
825
- None: null;
826
- }, {
827
- None: null;
828
- }>]>;
829
- }, "strip", z.ZodTypeAny, {
830
- index: number;
831
- metadata_key: string;
832
- metadata_value: {
833
- File: string;
834
- } | {
835
- Literal: string;
836
- } | {
837
- TokenId: number;
838
- } | {
839
- None: null;
840
- };
841
- }, {
842
- index: number;
843
- metadata_key: string;
844
- metadata_value: {
845
- File: string;
846
- } | {
847
- Literal: string;
848
- } | {
849
- TokenId: number;
850
- } | {
851
- None: null;
852
- };
853
- }>;
854
- }, "strict", z.ZodTypeAny, {
855
- FixedOutputMetadataValue: {
856
- index: number;
857
- metadata_key: string;
858
- metadata_value: {
859
- File: string;
860
- } | {
861
- Literal: string;
862
- } | {
863
- TokenId: number;
864
- } | {
865
- None: null;
866
- };
867
- };
868
- }, {
869
- FixedOutputMetadataValue: {
870
- index: number;
871
- metadata_key: string;
872
- metadata_value: {
873
- File: string;
874
- } | {
875
- Literal: string;
876
- } | {
877
- TokenId: number;
878
- } | {
879
- None: null;
880
- };
881
- };
882
- }>, z.ZodObject<{
883
- FixedInputMetadataValueType: z.ZodObject<{
884
- index: z.ZodNumber;
885
- metadata_key: z.ZodString;
886
- metadata_value_type: z.ZodEnum<["File", "Literal", "TokenId", "None"]>;
887
- }, "strip", z.ZodTypeAny, {
888
- index: number;
889
- metadata_key: string;
890
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
891
- }, {
892
- index: number;
893
- metadata_key: string;
894
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
895
- }>;
896
- }, "strict", z.ZodTypeAny, {
897
- FixedInputMetadataValueType: {
898
- index: number;
899
- metadata_key: string;
900
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
901
- };
902
- }, {
903
- FixedInputMetadataValueType: {
904
- index: number;
905
- metadata_key: string;
906
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
907
- };
908
- }>, z.ZodObject<{
909
- FixedOutputMetadataValueType: z.ZodObject<{
910
- index: z.ZodNumber;
911
- metadata_key: z.ZodString;
912
- metadata_value_type: z.ZodEnum<["File", "Literal", "TokenId", "None"]>;
913
- }, "strip", z.ZodTypeAny, {
914
- index: number;
915
- metadata_key: string;
916
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
917
- }, {
918
- index: number;
919
- metadata_key: string;
920
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
921
- }>;
922
- }, "strict", z.ZodTypeAny, {
923
- FixedOutputMetadataValueType: {
924
- index: number;
925
- metadata_key: string;
926
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
927
- };
928
- }, {
929
- FixedOutputMetadataValueType: {
930
- index: number;
931
- metadata_key: string;
932
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
933
- };
934
- }>]>;
935
- }, "strip", z.ZodTypeAny, {
936
- Restriction: "None" | "Fail" | {
937
- SenderHasInputRole: {
938
- index: number;
939
- role_key: string;
940
- };
941
- } | {
942
- SenderHasOutputRole: {
943
- index: number;
944
- role_key: string;
945
- };
946
- } | {
947
- OutputHasRole: {
948
- index: number;
949
- role_key: string;
950
- };
951
- } | {
952
- OutputHasMetadata: {
953
- index: number;
954
- metadata_key: string;
955
- };
956
- } | {
957
- InputHasRole: {
958
- index: number;
959
- role_key: string;
960
- };
961
- } | {
962
- InputHasMetadata: {
963
- index: number;
964
- metadata_key: string;
965
- };
966
- } | {
967
- MatchInputOutputRole: {
968
- input_index: number;
969
- input_role_key: string;
970
- output_index: number;
971
- output_role_key: string;
972
- };
973
- } | {
974
- MatchInputOutputMetadataValue: {
975
- input_index: number;
976
- output_index: number;
977
- input_metadata_key: string;
978
- output_metadata_key: string;
979
- };
980
- } | {
981
- MatchInputIdOutputMetadataValue: {
982
- input_index: number;
983
- output_index: number;
984
- output_metadata_key: string;
985
- };
986
- } | {
987
- FixedNumberOfInputs: {
988
- num_inputs: number;
989
- };
990
- } | {
991
- FixedNumberOfOutputs: {
992
- num_outputs: number;
993
- };
994
- } | {
995
- FixedInputMetadataValue: {
996
- index: number;
997
- metadata_key: string;
998
- metadata_value: {
999
- File: string;
1000
- } | {
1001
- Literal: string;
1002
- } | {
1003
- TokenId: number;
1004
- } | {
1005
- None: null;
1006
- };
1007
- };
1008
- } | {
1009
- FixedOutputMetadataValue: {
1010
- index: number;
1011
- metadata_key: string;
1012
- metadata_value: {
1013
- File: string;
1014
- } | {
1015
- Literal: string;
1016
- } | {
1017
- TokenId: number;
1018
- } | {
1019
- None: null;
1020
- };
1021
- };
1022
- } | {
1023
- FixedInputMetadataValueType: {
1024
- index: number;
1025
- metadata_key: string;
1026
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
1027
- };
1028
- } | {
1029
- FixedOutputMetadataValueType: {
1030
- index: number;
1031
- metadata_key: string;
1032
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
1033
- };
1034
- };
1035
- }, {
1036
- Restriction: "None" | "Fail" | {
1037
- SenderHasInputRole: {
1038
- index: number;
1039
- role_key: string;
1040
- };
1041
- } | {
1042
- SenderHasOutputRole: {
1043
- index: number;
1044
- role_key: string;
1045
- };
1046
- } | {
1047
- OutputHasRole: {
1048
- index: number;
1049
- role_key: string;
1050
- };
1051
- } | {
1052
- OutputHasMetadata: {
1053
- index: number;
1054
- metadata_key: string;
1055
- };
1056
- } | {
1057
- InputHasRole: {
1058
- index: number;
1059
- role_key: string;
1060
- };
1061
- } | {
1062
- InputHasMetadata: {
1063
- index: number;
1064
- metadata_key: string;
1065
- };
1066
- } | {
1067
- MatchInputOutputRole: {
1068
- input_index: number;
1069
- input_role_key: string;
1070
- output_index: number;
1071
- output_role_key: string;
1072
- };
1073
- } | {
1074
- MatchInputOutputMetadataValue: {
1075
- input_index: number;
1076
- output_index: number;
1077
- input_metadata_key: string;
1078
- output_metadata_key: string;
1079
- };
1080
- } | {
1081
- MatchInputIdOutputMetadataValue: {
1082
- input_index: number;
1083
- output_index: number;
1084
- output_metadata_key: string;
1085
- };
1086
- } | {
1087
- FixedNumberOfInputs: {
1088
- num_inputs: number;
1089
- };
1090
- } | {
1091
- FixedNumberOfOutputs: {
1092
- num_outputs: number;
1093
- };
1094
- } | {
1095
- FixedInputMetadataValue: {
1096
- index: number;
1097
- metadata_key: string;
1098
- metadata_value: {
1099
- File: string;
1100
- } | {
1101
- Literal: string;
1102
- } | {
1103
- TokenId: number;
1104
- } | {
1105
- None: null;
1106
- };
1107
- };
1108
- } | {
1109
- FixedOutputMetadataValue: {
1110
- index: number;
1111
- metadata_key: string;
1112
- metadata_value: {
1113
- File: string;
1114
- } | {
1115
- Literal: string;
1116
- } | {
1117
- TokenId: number;
1118
- } | {
1119
- None: null;
1120
- };
1121
- };
1122
- } | {
1123
- FixedInputMetadataValueType: {
1124
- index: number;
1125
- metadata_key: string;
1126
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
1127
- };
1128
- } | {
1129
- FixedOutputMetadataValueType: {
1130
- index: number;
1131
- metadata_key: string;
1132
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
1133
- };
1134
- };
1135
- }>]>;
1136
- export declare const programValidation: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1137
- Op: z.ZodEnum<["Identity", "TransferL", "TransferR", "NotL", "NotR", "And", "Nand", "Or", "Nor", "Xor", "Xnor", "ImplicationL", "ImplicationR", "InhibitionL", "InhibitionR"]>;
1138
- }, "strip", z.ZodTypeAny, {
1139
- Op: "Identity" | "TransferL" | "TransferR" | "NotL" | "NotR" | "And" | "Nand" | "Or" | "Nor" | "Xor" | "Xnor" | "ImplicationL" | "ImplicationR" | "InhibitionL" | "InhibitionR";
1140
- }, {
1141
- Op: "Identity" | "TransferL" | "TransferR" | "NotL" | "NotR" | "And" | "Nand" | "Or" | "Nor" | "Xor" | "Xnor" | "ImplicationL" | "ImplicationR" | "InhibitionL" | "InhibitionR";
1142
- }>, z.ZodObject<{
1143
- Restriction: z.ZodUnion<[z.ZodLiteral<"None">, z.ZodLiteral<"Fail">, z.ZodObject<{
1144
- SenderHasInputRole: z.ZodObject<{
1145
- index: z.ZodNumber;
1146
- role_key: z.ZodString;
1147
- }, "strip", z.ZodTypeAny, {
1148
- index: number;
1149
- role_key: string;
1150
- }, {
1151
- index: number;
1152
- role_key: string;
1153
- }>;
1154
- }, "strict", z.ZodTypeAny, {
1155
- SenderHasInputRole: {
1156
- index: number;
1157
- role_key: string;
1158
- };
1159
- }, {
1160
- SenderHasInputRole: {
1161
- index: number;
1162
- role_key: string;
1163
- };
1164
- }>, z.ZodObject<{
1165
- SenderHasOutputRole: z.ZodObject<{
1166
- index: z.ZodNumber;
1167
- role_key: z.ZodString;
1168
- }, "strip", z.ZodTypeAny, {
1169
- index: number;
1170
- role_key: string;
1171
- }, {
1172
- index: number;
1173
- role_key: string;
1174
- }>;
1175
- }, "strict", z.ZodTypeAny, {
1176
- SenderHasOutputRole: {
1177
- index: number;
1178
- role_key: string;
1179
- };
1180
- }, {
1181
- SenderHasOutputRole: {
1182
- index: number;
1183
- role_key: string;
1184
- };
1185
- }>, z.ZodObject<{
1186
- OutputHasRole: z.ZodObject<{
1187
- index: z.ZodNumber;
1188
- role_key: z.ZodString;
1189
- }, "strip", z.ZodTypeAny, {
1190
- index: number;
1191
- role_key: string;
1192
- }, {
1193
- index: number;
1194
- role_key: string;
1195
- }>;
1196
- }, "strict", z.ZodTypeAny, {
1197
- OutputHasRole: {
1198
- index: number;
1199
- role_key: string;
1200
- };
1201
- }, {
1202
- OutputHasRole: {
1203
- index: number;
1204
- role_key: string;
1205
- };
1206
- }>, z.ZodObject<{
1207
- OutputHasMetadata: z.ZodObject<{
1208
- index: z.ZodNumber;
1209
- metadata_key: z.ZodString;
1210
- }, "strip", z.ZodTypeAny, {
1211
- index: number;
1212
- metadata_key: string;
1213
- }, {
1214
- index: number;
1215
- metadata_key: string;
1216
- }>;
1217
- }, "strict", z.ZodTypeAny, {
1218
- OutputHasMetadata: {
1219
- index: number;
1220
- metadata_key: string;
1221
- };
1222
- }, {
1223
- OutputHasMetadata: {
1224
- index: number;
1225
- metadata_key: string;
1226
- };
1227
- }>, z.ZodObject<{
1228
- InputHasRole: z.ZodObject<{
1229
- index: z.ZodNumber;
1230
- role_key: z.ZodString;
1231
- }, "strip", z.ZodTypeAny, {
1232
- index: number;
1233
- role_key: string;
1234
- }, {
1235
- index: number;
1236
- role_key: string;
1237
- }>;
1238
- }, "strict", z.ZodTypeAny, {
1239
- InputHasRole: {
1240
- index: number;
1241
- role_key: string;
1242
- };
1243
- }, {
1244
- InputHasRole: {
1245
- index: number;
1246
- role_key: string;
1247
- };
1248
- }>, z.ZodObject<{
1249
- InputHasMetadata: z.ZodObject<{
1250
- index: z.ZodNumber;
1251
- metadata_key: z.ZodString;
1252
- }, "strip", z.ZodTypeAny, {
1253
- index: number;
1254
- metadata_key: string;
1255
- }, {
1256
- index: number;
1257
- metadata_key: string;
1258
- }>;
1259
- }, "strict", z.ZodTypeAny, {
1260
- InputHasMetadata: {
1261
- index: number;
1262
- metadata_key: string;
1263
- };
1264
- }, {
1265
- InputHasMetadata: {
1266
- index: number;
1267
- metadata_key: string;
1268
- };
1269
- }>, z.ZodObject<{
1270
- MatchInputOutputRole: z.ZodObject<{
1271
- input_index: z.ZodNumber;
1272
- input_role_key: z.ZodString;
1273
- output_index: z.ZodNumber;
1274
- output_role_key: z.ZodString;
1275
- }, "strip", z.ZodTypeAny, {
1276
- input_index: number;
1277
- input_role_key: string;
1278
- output_index: number;
1279
- output_role_key: string;
1280
- }, {
1281
- input_index: number;
1282
- input_role_key: string;
1283
- output_index: number;
1284
- output_role_key: string;
1285
- }>;
1286
- }, "strict", z.ZodTypeAny, {
1287
- MatchInputOutputRole: {
1288
- input_index: number;
1289
- input_role_key: string;
1290
- output_index: number;
1291
- output_role_key: string;
1292
- };
1293
- }, {
1294
- MatchInputOutputRole: {
1295
- input_index: number;
1296
- input_role_key: string;
1297
- output_index: number;
1298
- output_role_key: string;
1299
- };
1300
- }>, z.ZodObject<{
1301
- MatchInputOutputMetadataValue: z.ZodObject<{
1302
- input_index: z.ZodNumber;
1303
- input_metadata_key: z.ZodString;
1304
- output_index: z.ZodNumber;
1305
- output_metadata_key: z.ZodString;
1306
- }, "strip", z.ZodTypeAny, {
1307
- input_index: number;
1308
- output_index: number;
1309
- input_metadata_key: string;
1310
- output_metadata_key: string;
1311
- }, {
1312
- input_index: number;
1313
- output_index: number;
1314
- input_metadata_key: string;
1315
- output_metadata_key: string;
1316
- }>;
1317
- }, "strict", z.ZodTypeAny, {
1318
- MatchInputOutputMetadataValue: {
1319
- input_index: number;
1320
- output_index: number;
1321
- input_metadata_key: string;
1322
- output_metadata_key: string;
1323
- };
1324
- }, {
1325
- MatchInputOutputMetadataValue: {
1326
- input_index: number;
1327
- output_index: number;
1328
- input_metadata_key: string;
1329
- output_metadata_key: string;
1330
- };
1331
- }>, z.ZodObject<{
1332
- MatchInputIdOutputMetadataValue: z.ZodObject<{
1333
- input_index: z.ZodNumber;
1334
- output_index: z.ZodNumber;
1335
- output_metadata_key: z.ZodString;
1336
- }, "strip", z.ZodTypeAny, {
1337
- input_index: number;
1338
- output_index: number;
1339
- output_metadata_key: string;
1340
- }, {
1341
- input_index: number;
1342
- output_index: number;
1343
- output_metadata_key: string;
1344
- }>;
1345
- }, "strict", z.ZodTypeAny, {
1346
- MatchInputIdOutputMetadataValue: {
1347
- input_index: number;
1348
- output_index: number;
1349
- output_metadata_key: string;
1350
- };
1351
- }, {
1352
- MatchInputIdOutputMetadataValue: {
1353
- input_index: number;
1354
- output_index: number;
1355
- output_metadata_key: string;
1356
- };
1357
- }>, z.ZodObject<{
1358
- FixedNumberOfInputs: z.ZodObject<{
1359
- num_inputs: z.ZodNumber;
1360
- }, "strip", z.ZodTypeAny, {
1361
- num_inputs: number;
1362
- }, {
1363
- num_inputs: number;
1364
- }>;
1365
- }, "strict", z.ZodTypeAny, {
1366
- FixedNumberOfInputs: {
1367
- num_inputs: number;
1368
- };
1369
- }, {
1370
- FixedNumberOfInputs: {
1371
- num_inputs: number;
1372
- };
1373
- }>, z.ZodObject<{
1374
- FixedNumberOfOutputs: z.ZodObject<{
1375
- num_outputs: z.ZodNumber;
1376
- }, "strip", z.ZodTypeAny, {
1377
- num_outputs: number;
1378
- }, {
1379
- num_outputs: number;
1380
- }>;
1381
- }, "strict", z.ZodTypeAny, {
1382
- FixedNumberOfOutputs: {
1383
- num_outputs: number;
1384
- };
1385
- }, {
1386
- FixedNumberOfOutputs: {
1387
- num_outputs: number;
1388
- };
1389
- }>, z.ZodObject<{
1390
- FixedInputMetadataValue: z.ZodObject<{
1391
- index: z.ZodNumber;
1392
- metadata_key: z.ZodString;
1393
- metadata_value: z.ZodUnion<[z.ZodObject<{
1394
- File: z.ZodString;
1395
- }, "strip", z.ZodTypeAny, {
1396
- File: string;
1397
- }, {
1398
- File: string;
1399
- }>, z.ZodObject<{
1400
- Literal: z.ZodString;
1401
- }, "strip", z.ZodTypeAny, {
1402
- Literal: string;
1403
- }, {
1404
- Literal: string;
1405
- }>, z.ZodObject<{
1406
- TokenId: z.ZodNumber;
1407
- }, "strip", z.ZodTypeAny, {
1408
- TokenId: number;
1409
- }, {
1410
- TokenId: number;
1411
- }>, z.ZodObject<{
1412
- None: z.ZodNull;
1413
- }, "strip", z.ZodTypeAny, {
1414
- None: null;
1415
- }, {
1416
- None: null;
1417
- }>]>;
1418
- }, "strip", z.ZodTypeAny, {
1419
- index: number;
1420
- metadata_key: string;
1421
- metadata_value: {
1422
- File: string;
1423
- } | {
1424
- Literal: string;
1425
- } | {
1426
- TokenId: number;
1427
- } | {
1428
- None: null;
1429
- };
1430
- }, {
1431
- index: number;
1432
- metadata_key: string;
1433
- metadata_value: {
1434
- File: string;
1435
- } | {
1436
- Literal: string;
1437
- } | {
1438
- TokenId: number;
1439
- } | {
1440
- None: null;
1441
- };
1442
- }>;
1443
- }, "strict", z.ZodTypeAny, {
1444
- FixedInputMetadataValue: {
1445
- index: number;
1446
- metadata_key: string;
1447
- metadata_value: {
1448
- File: string;
1449
- } | {
1450
- Literal: string;
1451
- } | {
1452
- TokenId: number;
1453
- } | {
1454
- None: null;
1455
- };
1456
- };
1457
- }, {
1458
- FixedInputMetadataValue: {
1459
- index: number;
1460
- metadata_key: string;
1461
- metadata_value: {
1462
- File: string;
1463
- } | {
1464
- Literal: string;
1465
- } | {
1466
- TokenId: number;
1467
- } | {
1468
- None: null;
1469
- };
1470
- };
1471
- }>, z.ZodObject<{
1472
- FixedOutputMetadataValue: z.ZodObject<{
1473
- index: z.ZodNumber;
1474
- metadata_key: z.ZodString;
1475
- metadata_value: z.ZodUnion<[z.ZodObject<{
1476
- File: z.ZodString;
1477
- }, "strip", z.ZodTypeAny, {
1478
- File: string;
1479
- }, {
1480
- File: string;
1481
- }>, z.ZodObject<{
1482
- Literal: z.ZodString;
1483
- }, "strip", z.ZodTypeAny, {
1484
- Literal: string;
1485
- }, {
1486
- Literal: string;
1487
- }>, z.ZodObject<{
1488
- TokenId: z.ZodNumber;
1489
- }, "strip", z.ZodTypeAny, {
1490
- TokenId: number;
1491
- }, {
1492
- TokenId: number;
1493
- }>, z.ZodObject<{
1494
- None: z.ZodNull;
1495
- }, "strip", z.ZodTypeAny, {
1496
- None: null;
1497
- }, {
1498
- None: null;
1499
- }>]>;
1500
- }, "strip", z.ZodTypeAny, {
1501
- index: number;
1502
- metadata_key: string;
1503
- metadata_value: {
1504
- File: string;
1505
- } | {
1506
- Literal: string;
1507
- } | {
1508
- TokenId: number;
1509
- } | {
1510
- None: null;
1511
- };
1512
- }, {
1513
- index: number;
1514
- metadata_key: string;
1515
- metadata_value: {
1516
- File: string;
1517
- } | {
1518
- Literal: string;
1519
- } | {
1520
- TokenId: number;
1521
- } | {
1522
- None: null;
1523
- };
1524
- }>;
1525
- }, "strict", z.ZodTypeAny, {
1526
- FixedOutputMetadataValue: {
1527
- index: number;
1528
- metadata_key: string;
1529
- metadata_value: {
1530
- File: string;
1531
- } | {
1532
- Literal: string;
1533
- } | {
1534
- TokenId: number;
1535
- } | {
1536
- None: null;
1537
- };
1538
- };
1539
- }, {
1540
- FixedOutputMetadataValue: {
1541
- index: number;
1542
- metadata_key: string;
1543
- metadata_value: {
1544
- File: string;
1545
- } | {
1546
- Literal: string;
1547
- } | {
1548
- TokenId: number;
1549
- } | {
1550
- None: null;
1551
- };
1552
- };
1553
- }>, z.ZodObject<{
1554
- FixedInputMetadataValueType: z.ZodObject<{
1555
- index: z.ZodNumber;
1556
- metadata_key: z.ZodString;
1557
- metadata_value_type: z.ZodEnum<["File", "Literal", "TokenId", "None"]>;
1558
- }, "strip", z.ZodTypeAny, {
1559
- index: number;
1560
- metadata_key: string;
1561
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
1562
- }, {
1563
- index: number;
1564
- metadata_key: string;
1565
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
1566
- }>;
1567
- }, "strict", z.ZodTypeAny, {
1568
- FixedInputMetadataValueType: {
1569
- index: number;
1570
- metadata_key: string;
1571
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
1572
- };
1573
- }, {
1574
- FixedInputMetadataValueType: {
1575
- index: number;
1576
- metadata_key: string;
1577
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
1578
- };
1579
- }>, z.ZodObject<{
1580
- FixedOutputMetadataValueType: z.ZodObject<{
1581
- index: z.ZodNumber;
1582
- metadata_key: z.ZodString;
1583
- metadata_value_type: z.ZodEnum<["File", "Literal", "TokenId", "None"]>;
1584
- }, "strip", z.ZodTypeAny, {
1585
- index: number;
1586
- metadata_key: string;
1587
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
1588
- }, {
1589
- index: number;
1590
- metadata_key: string;
1591
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
1592
- }>;
1593
- }, "strict", z.ZodTypeAny, {
1594
- FixedOutputMetadataValueType: {
1595
- index: number;
1596
- metadata_key: string;
1597
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
1598
- };
1599
- }, {
1600
- FixedOutputMetadataValueType: {
1601
- index: number;
1602
- metadata_key: string;
1603
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
1604
- };
1605
- }>]>;
1606
- }, "strip", z.ZodTypeAny, {
1607
- Restriction: "None" | "Fail" | {
1608
- SenderHasInputRole: {
1609
- index: number;
1610
- role_key: string;
1611
- };
1612
- } | {
1613
- SenderHasOutputRole: {
1614
- index: number;
1615
- role_key: string;
1616
- };
1617
- } | {
1618
- OutputHasRole: {
1619
- index: number;
1620
- role_key: string;
1621
- };
1622
- } | {
1623
- OutputHasMetadata: {
1624
- index: number;
1625
- metadata_key: string;
1626
- };
1627
- } | {
1628
- InputHasRole: {
1629
- index: number;
1630
- role_key: string;
1631
- };
1632
- } | {
1633
- InputHasMetadata: {
1634
- index: number;
1635
- metadata_key: string;
1636
- };
1637
- } | {
1638
- MatchInputOutputRole: {
1639
- input_index: number;
1640
- input_role_key: string;
1641
- output_index: number;
1642
- output_role_key: string;
1643
- };
1644
- } | {
1645
- MatchInputOutputMetadataValue: {
1646
- input_index: number;
1647
- output_index: number;
1648
- input_metadata_key: string;
1649
- output_metadata_key: string;
1650
- };
1651
- } | {
1652
- MatchInputIdOutputMetadataValue: {
1653
- input_index: number;
1654
- output_index: number;
1655
- output_metadata_key: string;
1656
- };
1657
- } | {
1658
- FixedNumberOfInputs: {
1659
- num_inputs: number;
1660
- };
1661
- } | {
1662
- FixedNumberOfOutputs: {
1663
- num_outputs: number;
1664
- };
1665
- } | {
1666
- FixedInputMetadataValue: {
1667
- index: number;
1668
- metadata_key: string;
1669
- metadata_value: {
1670
- File: string;
1671
- } | {
1672
- Literal: string;
1673
- } | {
1674
- TokenId: number;
1675
- } | {
1676
- None: null;
1677
- };
1678
- };
1679
- } | {
1680
- FixedOutputMetadataValue: {
1681
- index: number;
1682
- metadata_key: string;
1683
- metadata_value: {
1684
- File: string;
1685
- } | {
1686
- Literal: string;
1687
- } | {
1688
- TokenId: number;
1689
- } | {
1690
- None: null;
1691
- };
1692
- };
1693
- } | {
1694
- FixedInputMetadataValueType: {
1695
- index: number;
1696
- metadata_key: string;
1697
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
1698
- };
1699
- } | {
1700
- FixedOutputMetadataValueType: {
1701
- index: number;
1702
- metadata_key: string;
1703
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
1704
- };
1705
- };
1706
- }, {
1707
- Restriction: "None" | "Fail" | {
1708
- SenderHasInputRole: {
1709
- index: number;
1710
- role_key: string;
1711
- };
1712
- } | {
1713
- SenderHasOutputRole: {
1714
- index: number;
1715
- role_key: string;
1716
- };
1717
- } | {
1718
- OutputHasRole: {
1719
- index: number;
1720
- role_key: string;
1721
- };
1722
- } | {
1723
- OutputHasMetadata: {
1724
- index: number;
1725
- metadata_key: string;
1726
- };
1727
- } | {
1728
- InputHasRole: {
1729
- index: number;
1730
- role_key: string;
1731
- };
1732
- } | {
1733
- InputHasMetadata: {
1734
- index: number;
1735
- metadata_key: string;
1736
- };
1737
- } | {
1738
- MatchInputOutputRole: {
1739
- input_index: number;
1740
- input_role_key: string;
1741
- output_index: number;
1742
- output_role_key: string;
1743
- };
1744
- } | {
1745
- MatchInputOutputMetadataValue: {
1746
- input_index: number;
1747
- output_index: number;
1748
- input_metadata_key: string;
1749
- output_metadata_key: string;
1750
- };
1751
- } | {
1752
- MatchInputIdOutputMetadataValue: {
1753
- input_index: number;
1754
- output_index: number;
1755
- output_metadata_key: string;
1756
- };
1757
- } | {
1758
- FixedNumberOfInputs: {
1759
- num_inputs: number;
1760
- };
1761
- } | {
1762
- FixedNumberOfOutputs: {
1763
- num_outputs: number;
1764
- };
1765
- } | {
1766
- FixedInputMetadataValue: {
1767
- index: number;
1768
- metadata_key: string;
1769
- metadata_value: {
1770
- File: string;
1771
- } | {
1772
- Literal: string;
1773
- } | {
1774
- TokenId: number;
1775
- } | {
1776
- None: null;
1777
- };
1778
- };
1779
- } | {
1780
- FixedOutputMetadataValue: {
1781
- index: number;
1782
- metadata_key: string;
1783
- metadata_value: {
1784
- File: string;
1785
- } | {
1786
- Literal: string;
1787
- } | {
1788
- TokenId: number;
1789
- } | {
1790
- None: null;
1791
- };
1792
- };
1793
- } | {
1794
- FixedInputMetadataValueType: {
1795
- index: number;
1796
- metadata_key: string;
1797
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
1798
- };
1799
- } | {
1800
- FixedOutputMetadataValueType: {
1801
- index: number;
1802
- metadata_key: string;
1803
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
1804
- };
1805
- };
1806
- }>]>, "many">;
1807
- export declare const processValidation: z.ZodObject<{
1808
- name: z.ZodString;
1809
- version: z.ZodNumber;
1810
- program: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1811
- Op: z.ZodEnum<["Identity", "TransferL", "TransferR", "NotL", "NotR", "And", "Nand", "Or", "Nor", "Xor", "Xnor", "ImplicationL", "ImplicationR", "InhibitionL", "InhibitionR"]>;
1812
- }, "strip", z.ZodTypeAny, {
1813
- Op: "Identity" | "TransferL" | "TransferR" | "NotL" | "NotR" | "And" | "Nand" | "Or" | "Nor" | "Xor" | "Xnor" | "ImplicationL" | "ImplicationR" | "InhibitionL" | "InhibitionR";
1814
- }, {
1815
- Op: "Identity" | "TransferL" | "TransferR" | "NotL" | "NotR" | "And" | "Nand" | "Or" | "Nor" | "Xor" | "Xnor" | "ImplicationL" | "ImplicationR" | "InhibitionL" | "InhibitionR";
1816
- }>, z.ZodObject<{
1817
- Restriction: z.ZodUnion<[z.ZodLiteral<"None">, z.ZodLiteral<"Fail">, z.ZodObject<{
1818
- SenderHasInputRole: z.ZodObject<{
1819
- index: z.ZodNumber;
1820
- role_key: z.ZodString;
1821
- }, "strip", z.ZodTypeAny, {
1822
- index: number;
1823
- role_key: string;
1824
- }, {
1825
- index: number;
1826
- role_key: string;
1827
- }>;
1828
- }, "strict", z.ZodTypeAny, {
1829
- SenderHasInputRole: {
1830
- index: number;
1831
- role_key: string;
1832
- };
1833
- }, {
1834
- SenderHasInputRole: {
1835
- index: number;
1836
- role_key: string;
1837
- };
1838
- }>, z.ZodObject<{
1839
- SenderHasOutputRole: z.ZodObject<{
1840
- index: z.ZodNumber;
1841
- role_key: z.ZodString;
1842
- }, "strip", z.ZodTypeAny, {
1843
- index: number;
1844
- role_key: string;
1845
- }, {
1846
- index: number;
1847
- role_key: string;
1848
- }>;
1849
- }, "strict", z.ZodTypeAny, {
1850
- SenderHasOutputRole: {
1851
- index: number;
1852
- role_key: string;
1853
- };
1854
- }, {
1855
- SenderHasOutputRole: {
1856
- index: number;
1857
- role_key: string;
1858
- };
1859
- }>, z.ZodObject<{
1860
- OutputHasRole: z.ZodObject<{
1861
- index: z.ZodNumber;
1862
- role_key: z.ZodString;
1863
- }, "strip", z.ZodTypeAny, {
1864
- index: number;
1865
- role_key: string;
1866
- }, {
1867
- index: number;
1868
- role_key: string;
1869
- }>;
1870
- }, "strict", z.ZodTypeAny, {
1871
- OutputHasRole: {
1872
- index: number;
1873
- role_key: string;
1874
- };
1875
- }, {
1876
- OutputHasRole: {
1877
- index: number;
1878
- role_key: string;
1879
- };
1880
- }>, z.ZodObject<{
1881
- OutputHasMetadata: z.ZodObject<{
1882
- index: z.ZodNumber;
1883
- metadata_key: z.ZodString;
1884
- }, "strip", z.ZodTypeAny, {
1885
- index: number;
1886
- metadata_key: string;
1887
- }, {
1888
- index: number;
1889
- metadata_key: string;
1890
- }>;
1891
- }, "strict", z.ZodTypeAny, {
1892
- OutputHasMetadata: {
1893
- index: number;
1894
- metadata_key: string;
1895
- };
1896
- }, {
1897
- OutputHasMetadata: {
1898
- index: number;
1899
- metadata_key: string;
1900
- };
1901
- }>, z.ZodObject<{
1902
- InputHasRole: z.ZodObject<{
1903
- index: z.ZodNumber;
1904
- role_key: z.ZodString;
1905
- }, "strip", z.ZodTypeAny, {
1906
- index: number;
1907
- role_key: string;
1908
- }, {
1909
- index: number;
1910
- role_key: string;
1911
- }>;
1912
- }, "strict", z.ZodTypeAny, {
1913
- InputHasRole: {
1914
- index: number;
1915
- role_key: string;
1916
- };
1917
- }, {
1918
- InputHasRole: {
1919
- index: number;
1920
- role_key: string;
1921
- };
1922
- }>, z.ZodObject<{
1923
- InputHasMetadata: z.ZodObject<{
1924
- index: z.ZodNumber;
1925
- metadata_key: z.ZodString;
1926
- }, "strip", z.ZodTypeAny, {
1927
- index: number;
1928
- metadata_key: string;
1929
- }, {
1930
- index: number;
1931
- metadata_key: string;
1932
- }>;
1933
- }, "strict", z.ZodTypeAny, {
1934
- InputHasMetadata: {
1935
- index: number;
1936
- metadata_key: string;
1937
- };
1938
- }, {
1939
- InputHasMetadata: {
1940
- index: number;
1941
- metadata_key: string;
1942
- };
1943
- }>, z.ZodObject<{
1944
- MatchInputOutputRole: z.ZodObject<{
1945
- input_index: z.ZodNumber;
1946
- input_role_key: z.ZodString;
1947
- output_index: z.ZodNumber;
1948
- output_role_key: z.ZodString;
1949
- }, "strip", z.ZodTypeAny, {
1950
- input_index: number;
1951
- input_role_key: string;
1952
- output_index: number;
1953
- output_role_key: string;
1954
- }, {
1955
- input_index: number;
1956
- input_role_key: string;
1957
- output_index: number;
1958
- output_role_key: string;
1959
- }>;
1960
- }, "strict", z.ZodTypeAny, {
1961
- MatchInputOutputRole: {
1962
- input_index: number;
1963
- input_role_key: string;
1964
- output_index: number;
1965
- output_role_key: string;
1966
- };
1967
- }, {
1968
- MatchInputOutputRole: {
1969
- input_index: number;
1970
- input_role_key: string;
1971
- output_index: number;
1972
- output_role_key: string;
1973
- };
1974
- }>, z.ZodObject<{
1975
- MatchInputOutputMetadataValue: z.ZodObject<{
1976
- input_index: z.ZodNumber;
1977
- input_metadata_key: z.ZodString;
1978
- output_index: z.ZodNumber;
1979
- output_metadata_key: z.ZodString;
1980
- }, "strip", z.ZodTypeAny, {
1981
- input_index: number;
1982
- output_index: number;
1983
- input_metadata_key: string;
1984
- output_metadata_key: string;
1985
- }, {
1986
- input_index: number;
1987
- output_index: number;
1988
- input_metadata_key: string;
1989
- output_metadata_key: string;
1990
- }>;
1991
- }, "strict", z.ZodTypeAny, {
1992
- MatchInputOutputMetadataValue: {
1993
- input_index: number;
1994
- output_index: number;
1995
- input_metadata_key: string;
1996
- output_metadata_key: string;
1997
- };
1998
- }, {
1999
- MatchInputOutputMetadataValue: {
2000
- input_index: number;
2001
- output_index: number;
2002
- input_metadata_key: string;
2003
- output_metadata_key: string;
2004
- };
2005
- }>, z.ZodObject<{
2006
- MatchInputIdOutputMetadataValue: z.ZodObject<{
2007
- input_index: z.ZodNumber;
2008
- output_index: z.ZodNumber;
2009
- output_metadata_key: z.ZodString;
2010
- }, "strip", z.ZodTypeAny, {
2011
- input_index: number;
2012
- output_index: number;
2013
- output_metadata_key: string;
2014
- }, {
2015
- input_index: number;
2016
- output_index: number;
2017
- output_metadata_key: string;
2018
- }>;
2019
- }, "strict", z.ZodTypeAny, {
2020
- MatchInputIdOutputMetadataValue: {
2021
- input_index: number;
2022
- output_index: number;
2023
- output_metadata_key: string;
2024
- };
2025
- }, {
2026
- MatchInputIdOutputMetadataValue: {
2027
- input_index: number;
2028
- output_index: number;
2029
- output_metadata_key: string;
2030
- };
2031
- }>, z.ZodObject<{
2032
- FixedNumberOfInputs: z.ZodObject<{
2033
- num_inputs: z.ZodNumber;
2034
- }, "strip", z.ZodTypeAny, {
2035
- num_inputs: number;
2036
- }, {
2037
- num_inputs: number;
2038
- }>;
2039
- }, "strict", z.ZodTypeAny, {
2040
- FixedNumberOfInputs: {
2041
- num_inputs: number;
2042
- };
2043
- }, {
2044
- FixedNumberOfInputs: {
2045
- num_inputs: number;
2046
- };
2047
- }>, z.ZodObject<{
2048
- FixedNumberOfOutputs: z.ZodObject<{
2049
- num_outputs: z.ZodNumber;
2050
- }, "strip", z.ZodTypeAny, {
2051
- num_outputs: number;
2052
- }, {
2053
- num_outputs: number;
2054
- }>;
2055
- }, "strict", z.ZodTypeAny, {
2056
- FixedNumberOfOutputs: {
2057
- num_outputs: number;
2058
- };
2059
- }, {
2060
- FixedNumberOfOutputs: {
2061
- num_outputs: number;
2062
- };
2063
- }>, z.ZodObject<{
2064
- FixedInputMetadataValue: z.ZodObject<{
2065
- index: z.ZodNumber;
2066
- metadata_key: z.ZodString;
2067
- metadata_value: z.ZodUnion<[z.ZodObject<{
2068
- File: z.ZodString;
2069
- }, "strip", z.ZodTypeAny, {
2070
- File: string;
2071
- }, {
2072
- File: string;
2073
- }>, z.ZodObject<{
2074
- Literal: z.ZodString;
2075
- }, "strip", z.ZodTypeAny, {
2076
- Literal: string;
2077
- }, {
2078
- Literal: string;
2079
- }>, z.ZodObject<{
2080
- TokenId: z.ZodNumber;
2081
- }, "strip", z.ZodTypeAny, {
2082
- TokenId: number;
2083
- }, {
2084
- TokenId: number;
2085
- }>, z.ZodObject<{
2086
- None: z.ZodNull;
2087
- }, "strip", z.ZodTypeAny, {
2088
- None: null;
2089
- }, {
2090
- None: null;
2091
- }>]>;
2092
- }, "strip", z.ZodTypeAny, {
2093
- index: number;
2094
- metadata_key: string;
2095
- metadata_value: {
2096
- File: string;
2097
- } | {
2098
- Literal: string;
2099
- } | {
2100
- TokenId: number;
2101
- } | {
2102
- None: null;
2103
- };
2104
- }, {
2105
- index: number;
2106
- metadata_key: string;
2107
- metadata_value: {
2108
- File: string;
2109
- } | {
2110
- Literal: string;
2111
- } | {
2112
- TokenId: number;
2113
- } | {
2114
- None: null;
2115
- };
2116
- }>;
2117
- }, "strict", z.ZodTypeAny, {
2118
- FixedInputMetadataValue: {
2119
- index: number;
2120
- metadata_key: string;
2121
- metadata_value: {
2122
- File: string;
2123
- } | {
2124
- Literal: string;
2125
- } | {
2126
- TokenId: number;
2127
- } | {
2128
- None: null;
2129
- };
2130
- };
2131
- }, {
2132
- FixedInputMetadataValue: {
2133
- index: number;
2134
- metadata_key: string;
2135
- metadata_value: {
2136
- File: string;
2137
- } | {
2138
- Literal: string;
2139
- } | {
2140
- TokenId: number;
2141
- } | {
2142
- None: null;
2143
- };
2144
- };
2145
- }>, z.ZodObject<{
2146
- FixedOutputMetadataValue: z.ZodObject<{
2147
- index: z.ZodNumber;
2148
- metadata_key: z.ZodString;
2149
- metadata_value: z.ZodUnion<[z.ZodObject<{
2150
- File: z.ZodString;
2151
- }, "strip", z.ZodTypeAny, {
2152
- File: string;
2153
- }, {
2154
- File: string;
2155
- }>, z.ZodObject<{
2156
- Literal: z.ZodString;
2157
- }, "strip", z.ZodTypeAny, {
2158
- Literal: string;
2159
- }, {
2160
- Literal: string;
2161
- }>, z.ZodObject<{
2162
- TokenId: z.ZodNumber;
2163
- }, "strip", z.ZodTypeAny, {
2164
- TokenId: number;
2165
- }, {
2166
- TokenId: number;
2167
- }>, z.ZodObject<{
2168
- None: z.ZodNull;
2169
- }, "strip", z.ZodTypeAny, {
2170
- None: null;
2171
- }, {
2172
- None: null;
2173
- }>]>;
2174
- }, "strip", z.ZodTypeAny, {
2175
- index: number;
2176
- metadata_key: string;
2177
- metadata_value: {
2178
- File: string;
2179
- } | {
2180
- Literal: string;
2181
- } | {
2182
- TokenId: number;
2183
- } | {
2184
- None: null;
2185
- };
2186
- }, {
2187
- index: number;
2188
- metadata_key: string;
2189
- metadata_value: {
2190
- File: string;
2191
- } | {
2192
- Literal: string;
2193
- } | {
2194
- TokenId: number;
2195
- } | {
2196
- None: null;
2197
- };
2198
- }>;
2199
- }, "strict", z.ZodTypeAny, {
2200
- FixedOutputMetadataValue: {
2201
- index: number;
2202
- metadata_key: string;
2203
- metadata_value: {
2204
- File: string;
2205
- } | {
2206
- Literal: string;
2207
- } | {
2208
- TokenId: number;
2209
- } | {
2210
- None: null;
2211
- };
2212
- };
2213
- }, {
2214
- FixedOutputMetadataValue: {
2215
- index: number;
2216
- metadata_key: string;
2217
- metadata_value: {
2218
- File: string;
2219
- } | {
2220
- Literal: string;
2221
- } | {
2222
- TokenId: number;
2223
- } | {
2224
- None: null;
2225
- };
2226
- };
2227
- }>, z.ZodObject<{
2228
- FixedInputMetadataValueType: z.ZodObject<{
2229
- index: z.ZodNumber;
2230
- metadata_key: z.ZodString;
2231
- metadata_value_type: z.ZodEnum<["File", "Literal", "TokenId", "None"]>;
2232
- }, "strip", z.ZodTypeAny, {
2233
- index: number;
2234
- metadata_key: string;
2235
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
2236
- }, {
2237
- index: number;
2238
- metadata_key: string;
2239
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
2240
- }>;
2241
- }, "strict", z.ZodTypeAny, {
2242
- FixedInputMetadataValueType: {
2243
- index: number;
2244
- metadata_key: string;
2245
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
2246
- };
2247
- }, {
2248
- FixedInputMetadataValueType: {
2249
- index: number;
2250
- metadata_key: string;
2251
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
2252
- };
2253
- }>, z.ZodObject<{
2254
- FixedOutputMetadataValueType: z.ZodObject<{
2255
- index: z.ZodNumber;
2256
- metadata_key: z.ZodString;
2257
- metadata_value_type: z.ZodEnum<["File", "Literal", "TokenId", "None"]>;
2258
- }, "strip", z.ZodTypeAny, {
2259
- index: number;
2260
- metadata_key: string;
2261
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
2262
- }, {
2263
- index: number;
2264
- metadata_key: string;
2265
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
2266
- }>;
2267
- }, "strict", z.ZodTypeAny, {
2268
- FixedOutputMetadataValueType: {
2269
- index: number;
2270
- metadata_key: string;
2271
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
2272
- };
2273
- }, {
2274
- FixedOutputMetadataValueType: {
2275
- index: number;
2276
- metadata_key: string;
2277
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
2278
- };
2279
- }>]>;
2280
- }, "strip", z.ZodTypeAny, {
2281
- Restriction: "None" | "Fail" | {
2282
- SenderHasInputRole: {
2283
- index: number;
2284
- role_key: string;
2285
- };
2286
- } | {
2287
- SenderHasOutputRole: {
2288
- index: number;
2289
- role_key: string;
2290
- };
2291
- } | {
2292
- OutputHasRole: {
2293
- index: number;
2294
- role_key: string;
2295
- };
2296
- } | {
2297
- OutputHasMetadata: {
2298
- index: number;
2299
- metadata_key: string;
2300
- };
2301
- } | {
2302
- InputHasRole: {
2303
- index: number;
2304
- role_key: string;
2305
- };
2306
- } | {
2307
- InputHasMetadata: {
2308
- index: number;
2309
- metadata_key: string;
2310
- };
2311
- } | {
2312
- MatchInputOutputRole: {
2313
- input_index: number;
2314
- input_role_key: string;
2315
- output_index: number;
2316
- output_role_key: string;
2317
- };
2318
- } | {
2319
- MatchInputOutputMetadataValue: {
2320
- input_index: number;
2321
- output_index: number;
2322
- input_metadata_key: string;
2323
- output_metadata_key: string;
2324
- };
2325
- } | {
2326
- MatchInputIdOutputMetadataValue: {
2327
- input_index: number;
2328
- output_index: number;
2329
- output_metadata_key: string;
2330
- };
2331
- } | {
2332
- FixedNumberOfInputs: {
2333
- num_inputs: number;
2334
- };
2335
- } | {
2336
- FixedNumberOfOutputs: {
2337
- num_outputs: number;
2338
- };
2339
- } | {
2340
- FixedInputMetadataValue: {
2341
- index: number;
2342
- metadata_key: string;
2343
- metadata_value: {
2344
- File: string;
2345
- } | {
2346
- Literal: string;
2347
- } | {
2348
- TokenId: number;
2349
- } | {
2350
- None: null;
2351
- };
2352
- };
2353
- } | {
2354
- FixedOutputMetadataValue: {
2355
- index: number;
2356
- metadata_key: string;
2357
- metadata_value: {
2358
- File: string;
2359
- } | {
2360
- Literal: string;
2361
- } | {
2362
- TokenId: number;
2363
- } | {
2364
- None: null;
2365
- };
2366
- };
2367
- } | {
2368
- FixedInputMetadataValueType: {
2369
- index: number;
2370
- metadata_key: string;
2371
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
2372
- };
2373
- } | {
2374
- FixedOutputMetadataValueType: {
2375
- index: number;
2376
- metadata_key: string;
2377
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
2378
- };
2379
- };
2380
- }, {
2381
- Restriction: "None" | "Fail" | {
2382
- SenderHasInputRole: {
2383
- index: number;
2384
- role_key: string;
2385
- };
2386
- } | {
2387
- SenderHasOutputRole: {
2388
- index: number;
2389
- role_key: string;
2390
- };
2391
- } | {
2392
- OutputHasRole: {
2393
- index: number;
2394
- role_key: string;
2395
- };
2396
- } | {
2397
- OutputHasMetadata: {
2398
- index: number;
2399
- metadata_key: string;
2400
- };
2401
- } | {
2402
- InputHasRole: {
2403
- index: number;
2404
- role_key: string;
2405
- };
2406
- } | {
2407
- InputHasMetadata: {
2408
- index: number;
2409
- metadata_key: string;
2410
- };
2411
- } | {
2412
- MatchInputOutputRole: {
2413
- input_index: number;
2414
- input_role_key: string;
2415
- output_index: number;
2416
- output_role_key: string;
2417
- };
2418
- } | {
2419
- MatchInputOutputMetadataValue: {
2420
- input_index: number;
2421
- output_index: number;
2422
- input_metadata_key: string;
2423
- output_metadata_key: string;
2424
- };
2425
- } | {
2426
- MatchInputIdOutputMetadataValue: {
2427
- input_index: number;
2428
- output_index: number;
2429
- output_metadata_key: string;
2430
- };
2431
- } | {
2432
- FixedNumberOfInputs: {
2433
- num_inputs: number;
2434
- };
2435
- } | {
2436
- FixedNumberOfOutputs: {
2437
- num_outputs: number;
2438
- };
2439
- } | {
2440
- FixedInputMetadataValue: {
2441
- index: number;
2442
- metadata_key: string;
2443
- metadata_value: {
2444
- File: string;
2445
- } | {
2446
- Literal: string;
2447
- } | {
2448
- TokenId: number;
2449
- } | {
2450
- None: null;
2451
- };
2452
- };
2453
- } | {
2454
- FixedOutputMetadataValue: {
2455
- index: number;
2456
- metadata_key: string;
2457
- metadata_value: {
2458
- File: string;
2459
- } | {
2460
- Literal: string;
2461
- } | {
2462
- TokenId: number;
2463
- } | {
2464
- None: null;
2465
- };
2466
- };
2467
- } | {
2468
- FixedInputMetadataValueType: {
2469
- index: number;
2470
- metadata_key: string;
2471
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
2472
- };
2473
- } | {
2474
- FixedOutputMetadataValueType: {
2475
- index: number;
2476
- metadata_key: string;
2477
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
2478
- };
2479
- };
2480
- }>]>, "many">;
2481
- }, "strip", z.ZodTypeAny, {
2482
- name: string;
2483
- version: number;
2484
- program: ({
2485
- Op: "Identity" | "TransferL" | "TransferR" | "NotL" | "NotR" | "And" | "Nand" | "Or" | "Nor" | "Xor" | "Xnor" | "ImplicationL" | "ImplicationR" | "InhibitionL" | "InhibitionR";
2486
- } | {
2487
- Restriction: "None" | "Fail" | {
2488
- SenderHasInputRole: {
2489
- index: number;
2490
- role_key: string;
2491
- };
2492
- } | {
2493
- SenderHasOutputRole: {
2494
- index: number;
2495
- role_key: string;
2496
- };
2497
- } | {
2498
- OutputHasRole: {
2499
- index: number;
2500
- role_key: string;
2501
- };
2502
- } | {
2503
- OutputHasMetadata: {
2504
- index: number;
2505
- metadata_key: string;
2506
- };
2507
- } | {
2508
- InputHasRole: {
2509
- index: number;
2510
- role_key: string;
2511
- };
2512
- } | {
2513
- InputHasMetadata: {
2514
- index: number;
2515
- metadata_key: string;
2516
- };
2517
- } | {
2518
- MatchInputOutputRole: {
2519
- input_index: number;
2520
- input_role_key: string;
2521
- output_index: number;
2522
- output_role_key: string;
2523
- };
2524
- } | {
2525
- MatchInputOutputMetadataValue: {
2526
- input_index: number;
2527
- output_index: number;
2528
- input_metadata_key: string;
2529
- output_metadata_key: string;
2530
- };
2531
- } | {
2532
- MatchInputIdOutputMetadataValue: {
2533
- input_index: number;
2534
- output_index: number;
2535
- output_metadata_key: string;
2536
- };
2537
- } | {
2538
- FixedNumberOfInputs: {
2539
- num_inputs: number;
2540
- };
2541
- } | {
2542
- FixedNumberOfOutputs: {
2543
- num_outputs: number;
2544
- };
2545
- } | {
2546
- FixedInputMetadataValue: {
2547
- index: number;
2548
- metadata_key: string;
2549
- metadata_value: {
2550
- File: string;
2551
- } | {
2552
- Literal: string;
2553
- } | {
2554
- TokenId: number;
2555
- } | {
2556
- None: null;
2557
- };
2558
- };
2559
- } | {
2560
- FixedOutputMetadataValue: {
2561
- index: number;
2562
- metadata_key: string;
2563
- metadata_value: {
2564
- File: string;
2565
- } | {
2566
- Literal: string;
2567
- } | {
2568
- TokenId: number;
2569
- } | {
2570
- None: null;
2571
- };
2572
- };
2573
- } | {
2574
- FixedInputMetadataValueType: {
2575
- index: number;
2576
- metadata_key: string;
2577
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
2578
- };
2579
- } | {
2580
- FixedOutputMetadataValueType: {
2581
- index: number;
2582
- metadata_key: string;
2583
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
2584
- };
2585
- };
2586
- })[];
2587
- }, {
2588
- name: string;
2589
- version: number;
2590
- program: ({
2591
- Op: "Identity" | "TransferL" | "TransferR" | "NotL" | "NotR" | "And" | "Nand" | "Or" | "Nor" | "Xor" | "Xnor" | "ImplicationL" | "ImplicationR" | "InhibitionL" | "InhibitionR";
2592
- } | {
2593
- Restriction: "None" | "Fail" | {
2594
- SenderHasInputRole: {
2595
- index: number;
2596
- role_key: string;
2597
- };
2598
- } | {
2599
- SenderHasOutputRole: {
2600
- index: number;
2601
- role_key: string;
2602
- };
2603
- } | {
2604
- OutputHasRole: {
2605
- index: number;
2606
- role_key: string;
2607
- };
2608
- } | {
2609
- OutputHasMetadata: {
2610
- index: number;
2611
- metadata_key: string;
2612
- };
2613
- } | {
2614
- InputHasRole: {
2615
- index: number;
2616
- role_key: string;
2617
- };
2618
- } | {
2619
- InputHasMetadata: {
2620
- index: number;
2621
- metadata_key: string;
2622
- };
2623
- } | {
2624
- MatchInputOutputRole: {
2625
- input_index: number;
2626
- input_role_key: string;
2627
- output_index: number;
2628
- output_role_key: string;
2629
- };
2630
- } | {
2631
- MatchInputOutputMetadataValue: {
2632
- input_index: number;
2633
- output_index: number;
2634
- input_metadata_key: string;
2635
- output_metadata_key: string;
2636
- };
2637
- } | {
2638
- MatchInputIdOutputMetadataValue: {
2639
- input_index: number;
2640
- output_index: number;
2641
- output_metadata_key: string;
2642
- };
2643
- } | {
2644
- FixedNumberOfInputs: {
2645
- num_inputs: number;
2646
- };
2647
- } | {
2648
- FixedNumberOfOutputs: {
2649
- num_outputs: number;
2650
- };
2651
- } | {
2652
- FixedInputMetadataValue: {
2653
- index: number;
2654
- metadata_key: string;
2655
- metadata_value: {
2656
- File: string;
2657
- } | {
2658
- Literal: string;
2659
- } | {
2660
- TokenId: number;
2661
- } | {
2662
- None: null;
2663
- };
2664
- };
2665
- } | {
2666
- FixedOutputMetadataValue: {
2667
- index: number;
2668
- metadata_key: string;
2669
- metadata_value: {
2670
- File: string;
2671
- } | {
2672
- Literal: string;
2673
- } | {
2674
- TokenId: number;
2675
- } | {
2676
- None: null;
2677
- };
2678
- };
2679
- } | {
2680
- FixedInputMetadataValueType: {
2681
- index: number;
2682
- metadata_key: string;
2683
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
2684
- };
2685
- } | {
2686
- FixedOutputMetadataValueType: {
2687
- index: number;
2688
- metadata_key: string;
2689
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
2690
- };
2691
- };
2692
- })[];
2693
- }>;
2694
- export declare const simpleProcesssValidation: z.ZodArray<z.ZodObject<{
2695
- name: z.ZodString;
2696
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2697
- name: z.ZodString;
2698
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2699
- name: z.ZodString;
2700
- }, z.ZodTypeAny, "passthrough">>, "many">;
2701
- export declare const processesValidation: z.ZodArray<z.ZodObject<{
2702
- name: z.ZodString;
2703
- version: z.ZodNumber;
2704
- program: z.ZodArray<z.ZodUnion<[z.ZodObject<{
2705
- Op: z.ZodEnum<["Identity", "TransferL", "TransferR", "NotL", "NotR", "And", "Nand", "Or", "Nor", "Xor", "Xnor", "ImplicationL", "ImplicationR", "InhibitionL", "InhibitionR"]>;
2706
- }, "strip", z.ZodTypeAny, {
2707
- Op: "Identity" | "TransferL" | "TransferR" | "NotL" | "NotR" | "And" | "Nand" | "Or" | "Nor" | "Xor" | "Xnor" | "ImplicationL" | "ImplicationR" | "InhibitionL" | "InhibitionR";
2708
- }, {
2709
- Op: "Identity" | "TransferL" | "TransferR" | "NotL" | "NotR" | "And" | "Nand" | "Or" | "Nor" | "Xor" | "Xnor" | "ImplicationL" | "ImplicationR" | "InhibitionL" | "InhibitionR";
2710
- }>, z.ZodObject<{
2711
- Restriction: z.ZodUnion<[z.ZodLiteral<"None">, z.ZodLiteral<"Fail">, z.ZodObject<{
2712
- SenderHasInputRole: z.ZodObject<{
2713
- index: z.ZodNumber;
2714
- role_key: z.ZodString;
2715
- }, "strip", z.ZodTypeAny, {
2716
- index: number;
2717
- role_key: string;
2718
- }, {
2719
- index: number;
2720
- role_key: string;
2721
- }>;
2722
- }, "strict", z.ZodTypeAny, {
2723
- SenderHasInputRole: {
2724
- index: number;
2725
- role_key: string;
2726
- };
2727
- }, {
2728
- SenderHasInputRole: {
2729
- index: number;
2730
- role_key: string;
2731
- };
2732
- }>, z.ZodObject<{
2733
- SenderHasOutputRole: z.ZodObject<{
2734
- index: z.ZodNumber;
2735
- role_key: z.ZodString;
2736
- }, "strip", z.ZodTypeAny, {
2737
- index: number;
2738
- role_key: string;
2739
- }, {
2740
- index: number;
2741
- role_key: string;
2742
- }>;
2743
- }, "strict", z.ZodTypeAny, {
2744
- SenderHasOutputRole: {
2745
- index: number;
2746
- role_key: string;
2747
- };
2748
- }, {
2749
- SenderHasOutputRole: {
2750
- index: number;
2751
- role_key: string;
2752
- };
2753
- }>, z.ZodObject<{
2754
- OutputHasRole: z.ZodObject<{
2755
- index: z.ZodNumber;
2756
- role_key: z.ZodString;
2757
- }, "strip", z.ZodTypeAny, {
2758
- index: number;
2759
- role_key: string;
2760
- }, {
2761
- index: number;
2762
- role_key: string;
2763
- }>;
2764
- }, "strict", z.ZodTypeAny, {
2765
- OutputHasRole: {
2766
- index: number;
2767
- role_key: string;
2768
- };
2769
- }, {
2770
- OutputHasRole: {
2771
- index: number;
2772
- role_key: string;
2773
- };
2774
- }>, z.ZodObject<{
2775
- OutputHasMetadata: z.ZodObject<{
2776
- index: z.ZodNumber;
2777
- metadata_key: z.ZodString;
2778
- }, "strip", z.ZodTypeAny, {
2779
- index: number;
2780
- metadata_key: string;
2781
- }, {
2782
- index: number;
2783
- metadata_key: string;
2784
- }>;
2785
- }, "strict", z.ZodTypeAny, {
2786
- OutputHasMetadata: {
2787
- index: number;
2788
- metadata_key: string;
2789
- };
2790
- }, {
2791
- OutputHasMetadata: {
2792
- index: number;
2793
- metadata_key: string;
2794
- };
2795
- }>, z.ZodObject<{
2796
- InputHasRole: z.ZodObject<{
2797
- index: z.ZodNumber;
2798
- role_key: z.ZodString;
2799
- }, "strip", z.ZodTypeAny, {
2800
- index: number;
2801
- role_key: string;
2802
- }, {
2803
- index: number;
2804
- role_key: string;
2805
- }>;
2806
- }, "strict", z.ZodTypeAny, {
2807
- InputHasRole: {
2808
- index: number;
2809
- role_key: string;
2810
- };
2811
- }, {
2812
- InputHasRole: {
2813
- index: number;
2814
- role_key: string;
2815
- };
2816
- }>, z.ZodObject<{
2817
- InputHasMetadata: z.ZodObject<{
2818
- index: z.ZodNumber;
2819
- metadata_key: z.ZodString;
2820
- }, "strip", z.ZodTypeAny, {
2821
- index: number;
2822
- metadata_key: string;
2823
- }, {
2824
- index: number;
2825
- metadata_key: string;
2826
- }>;
2827
- }, "strict", z.ZodTypeAny, {
2828
- InputHasMetadata: {
2829
- index: number;
2830
- metadata_key: string;
2831
- };
2832
- }, {
2833
- InputHasMetadata: {
2834
- index: number;
2835
- metadata_key: string;
2836
- };
2837
- }>, z.ZodObject<{
2838
- MatchInputOutputRole: z.ZodObject<{
2839
- input_index: z.ZodNumber;
2840
- input_role_key: z.ZodString;
2841
- output_index: z.ZodNumber;
2842
- output_role_key: z.ZodString;
2843
- }, "strip", z.ZodTypeAny, {
2844
- input_index: number;
2845
- input_role_key: string;
2846
- output_index: number;
2847
- output_role_key: string;
2848
- }, {
2849
- input_index: number;
2850
- input_role_key: string;
2851
- output_index: number;
2852
- output_role_key: string;
2853
- }>;
2854
- }, "strict", z.ZodTypeAny, {
2855
- MatchInputOutputRole: {
2856
- input_index: number;
2857
- input_role_key: string;
2858
- output_index: number;
2859
- output_role_key: string;
2860
- };
2861
- }, {
2862
- MatchInputOutputRole: {
2863
- input_index: number;
2864
- input_role_key: string;
2865
- output_index: number;
2866
- output_role_key: string;
2867
- };
2868
- }>, z.ZodObject<{
2869
- MatchInputOutputMetadataValue: z.ZodObject<{
2870
- input_index: z.ZodNumber;
2871
- input_metadata_key: z.ZodString;
2872
- output_index: z.ZodNumber;
2873
- output_metadata_key: z.ZodString;
2874
- }, "strip", z.ZodTypeAny, {
2875
- input_index: number;
2876
- output_index: number;
2877
- input_metadata_key: string;
2878
- output_metadata_key: string;
2879
- }, {
2880
- input_index: number;
2881
- output_index: number;
2882
- input_metadata_key: string;
2883
- output_metadata_key: string;
2884
- }>;
2885
- }, "strict", z.ZodTypeAny, {
2886
- MatchInputOutputMetadataValue: {
2887
- input_index: number;
2888
- output_index: number;
2889
- input_metadata_key: string;
2890
- output_metadata_key: string;
2891
- };
2892
- }, {
2893
- MatchInputOutputMetadataValue: {
2894
- input_index: number;
2895
- output_index: number;
2896
- input_metadata_key: string;
2897
- output_metadata_key: string;
2898
- };
2899
- }>, z.ZodObject<{
2900
- MatchInputIdOutputMetadataValue: z.ZodObject<{
2901
- input_index: z.ZodNumber;
2902
- output_index: z.ZodNumber;
2903
- output_metadata_key: z.ZodString;
2904
- }, "strip", z.ZodTypeAny, {
2905
- input_index: number;
2906
- output_index: number;
2907
- output_metadata_key: string;
2908
- }, {
2909
- input_index: number;
2910
- output_index: number;
2911
- output_metadata_key: string;
2912
- }>;
2913
- }, "strict", z.ZodTypeAny, {
2914
- MatchInputIdOutputMetadataValue: {
2915
- input_index: number;
2916
- output_index: number;
2917
- output_metadata_key: string;
2918
- };
2919
- }, {
2920
- MatchInputIdOutputMetadataValue: {
2921
- input_index: number;
2922
- output_index: number;
2923
- output_metadata_key: string;
2924
- };
2925
- }>, z.ZodObject<{
2926
- FixedNumberOfInputs: z.ZodObject<{
2927
- num_inputs: z.ZodNumber;
2928
- }, "strip", z.ZodTypeAny, {
2929
- num_inputs: number;
2930
- }, {
2931
- num_inputs: number;
2932
- }>;
2933
- }, "strict", z.ZodTypeAny, {
2934
- FixedNumberOfInputs: {
2935
- num_inputs: number;
2936
- };
2937
- }, {
2938
- FixedNumberOfInputs: {
2939
- num_inputs: number;
2940
- };
2941
- }>, z.ZodObject<{
2942
- FixedNumberOfOutputs: z.ZodObject<{
2943
- num_outputs: z.ZodNumber;
2944
- }, "strip", z.ZodTypeAny, {
2945
- num_outputs: number;
2946
- }, {
2947
- num_outputs: number;
2948
- }>;
2949
- }, "strict", z.ZodTypeAny, {
2950
- FixedNumberOfOutputs: {
2951
- num_outputs: number;
2952
- };
2953
- }, {
2954
- FixedNumberOfOutputs: {
2955
- num_outputs: number;
2956
- };
2957
- }>, z.ZodObject<{
2958
- FixedInputMetadataValue: z.ZodObject<{
2959
- index: z.ZodNumber;
2960
- metadata_key: z.ZodString;
2961
- metadata_value: z.ZodUnion<[z.ZodObject<{
2962
- File: z.ZodString;
2963
- }, "strip", z.ZodTypeAny, {
2964
- File: string;
2965
- }, {
2966
- File: string;
2967
- }>, z.ZodObject<{
2968
- Literal: z.ZodString;
2969
- }, "strip", z.ZodTypeAny, {
2970
- Literal: string;
2971
- }, {
2972
- Literal: string;
2973
- }>, z.ZodObject<{
2974
- TokenId: z.ZodNumber;
2975
- }, "strip", z.ZodTypeAny, {
2976
- TokenId: number;
2977
- }, {
2978
- TokenId: number;
2979
- }>, z.ZodObject<{
2980
- None: z.ZodNull;
2981
- }, "strip", z.ZodTypeAny, {
2982
- None: null;
2983
- }, {
2984
- None: null;
2985
- }>]>;
2986
- }, "strip", z.ZodTypeAny, {
2987
- index: number;
2988
- metadata_key: string;
2989
- metadata_value: {
2990
- File: string;
2991
- } | {
2992
- Literal: string;
2993
- } | {
2994
- TokenId: number;
2995
- } | {
2996
- None: null;
2997
- };
2998
- }, {
2999
- index: number;
3000
- metadata_key: string;
3001
- metadata_value: {
3002
- File: string;
3003
- } | {
3004
- Literal: string;
3005
- } | {
3006
- TokenId: number;
3007
- } | {
3008
- None: null;
3009
- };
3010
- }>;
3011
- }, "strict", z.ZodTypeAny, {
3012
- FixedInputMetadataValue: {
3013
- index: number;
3014
- metadata_key: string;
3015
- metadata_value: {
3016
- File: string;
3017
- } | {
3018
- Literal: string;
3019
- } | {
3020
- TokenId: number;
3021
- } | {
3022
- None: null;
3023
- };
3024
- };
3025
- }, {
3026
- FixedInputMetadataValue: {
3027
- index: number;
3028
- metadata_key: string;
3029
- metadata_value: {
3030
- File: string;
3031
- } | {
3032
- Literal: string;
3033
- } | {
3034
- TokenId: number;
3035
- } | {
3036
- None: null;
3037
- };
3038
- };
3039
- }>, z.ZodObject<{
3040
- FixedOutputMetadataValue: z.ZodObject<{
3041
- index: z.ZodNumber;
3042
- metadata_key: z.ZodString;
3043
- metadata_value: z.ZodUnion<[z.ZodObject<{
3044
- File: z.ZodString;
3045
- }, "strip", z.ZodTypeAny, {
3046
- File: string;
3047
- }, {
3048
- File: string;
3049
- }>, z.ZodObject<{
3050
- Literal: z.ZodString;
3051
- }, "strip", z.ZodTypeAny, {
3052
- Literal: string;
3053
- }, {
3054
- Literal: string;
3055
- }>, z.ZodObject<{
3056
- TokenId: z.ZodNumber;
3057
- }, "strip", z.ZodTypeAny, {
3058
- TokenId: number;
3059
- }, {
3060
- TokenId: number;
3061
- }>, z.ZodObject<{
3062
- None: z.ZodNull;
3063
- }, "strip", z.ZodTypeAny, {
3064
- None: null;
3065
- }, {
3066
- None: null;
3067
- }>]>;
3068
- }, "strip", z.ZodTypeAny, {
3069
- index: number;
3070
- metadata_key: string;
3071
- metadata_value: {
3072
- File: string;
3073
- } | {
3074
- Literal: string;
3075
- } | {
3076
- TokenId: number;
3077
- } | {
3078
- None: null;
3079
- };
3080
- }, {
3081
- index: number;
3082
- metadata_key: string;
3083
- metadata_value: {
3084
- File: string;
3085
- } | {
3086
- Literal: string;
3087
- } | {
3088
- TokenId: number;
3089
- } | {
3090
- None: null;
3091
- };
3092
- }>;
3093
- }, "strict", z.ZodTypeAny, {
3094
- FixedOutputMetadataValue: {
3095
- index: number;
3096
- metadata_key: string;
3097
- metadata_value: {
3098
- File: string;
3099
- } | {
3100
- Literal: string;
3101
- } | {
3102
- TokenId: number;
3103
- } | {
3104
- None: null;
3105
- };
3106
- };
3107
- }, {
3108
- FixedOutputMetadataValue: {
3109
- index: number;
3110
- metadata_key: string;
3111
- metadata_value: {
3112
- File: string;
3113
- } | {
3114
- Literal: string;
3115
- } | {
3116
- TokenId: number;
3117
- } | {
3118
- None: null;
3119
- };
3120
- };
3121
- }>, z.ZodObject<{
3122
- FixedInputMetadataValueType: z.ZodObject<{
3123
- index: z.ZodNumber;
3124
- metadata_key: z.ZodString;
3125
- metadata_value_type: z.ZodEnum<["File", "Literal", "TokenId", "None"]>;
3126
- }, "strip", z.ZodTypeAny, {
3127
- index: number;
3128
- metadata_key: string;
3129
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
3130
- }, {
3131
- index: number;
3132
- metadata_key: string;
3133
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
3134
- }>;
3135
- }, "strict", z.ZodTypeAny, {
3136
- FixedInputMetadataValueType: {
3137
- index: number;
3138
- metadata_key: string;
3139
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
3140
- };
3141
- }, {
3142
- FixedInputMetadataValueType: {
3143
- index: number;
3144
- metadata_key: string;
3145
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
3146
- };
3147
- }>, z.ZodObject<{
3148
- FixedOutputMetadataValueType: z.ZodObject<{
3149
- index: z.ZodNumber;
3150
- metadata_key: z.ZodString;
3151
- metadata_value_type: z.ZodEnum<["File", "Literal", "TokenId", "None"]>;
3152
- }, "strip", z.ZodTypeAny, {
3153
- index: number;
3154
- metadata_key: string;
3155
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
3156
- }, {
3157
- index: number;
3158
- metadata_key: string;
3159
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
3160
- }>;
3161
- }, "strict", z.ZodTypeAny, {
3162
- FixedOutputMetadataValueType: {
3163
- index: number;
3164
- metadata_key: string;
3165
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
3166
- };
3167
- }, {
3168
- FixedOutputMetadataValueType: {
3169
- index: number;
3170
- metadata_key: string;
3171
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
3172
- };
3173
- }>]>;
3174
- }, "strip", z.ZodTypeAny, {
3175
- Restriction: "None" | "Fail" | {
3176
- SenderHasInputRole: {
3177
- index: number;
3178
- role_key: string;
3179
- };
3180
- } | {
3181
- SenderHasOutputRole: {
3182
- index: number;
3183
- role_key: string;
3184
- };
3185
- } | {
3186
- OutputHasRole: {
3187
- index: number;
3188
- role_key: string;
3189
- };
3190
- } | {
3191
- OutputHasMetadata: {
3192
- index: number;
3193
- metadata_key: string;
3194
- };
3195
- } | {
3196
- InputHasRole: {
3197
- index: number;
3198
- role_key: string;
3199
- };
3200
- } | {
3201
- InputHasMetadata: {
3202
- index: number;
3203
- metadata_key: string;
3204
- };
3205
- } | {
3206
- MatchInputOutputRole: {
3207
- input_index: number;
3208
- input_role_key: string;
3209
- output_index: number;
3210
- output_role_key: string;
3211
- };
3212
- } | {
3213
- MatchInputOutputMetadataValue: {
3214
- input_index: number;
3215
- output_index: number;
3216
- input_metadata_key: string;
3217
- output_metadata_key: string;
3218
- };
3219
- } | {
3220
- MatchInputIdOutputMetadataValue: {
3221
- input_index: number;
3222
- output_index: number;
3223
- output_metadata_key: string;
3224
- };
3225
- } | {
3226
- FixedNumberOfInputs: {
3227
- num_inputs: number;
3228
- };
3229
- } | {
3230
- FixedNumberOfOutputs: {
3231
- num_outputs: number;
3232
- };
3233
- } | {
3234
- FixedInputMetadataValue: {
3235
- index: number;
3236
- metadata_key: string;
3237
- metadata_value: {
3238
- File: string;
3239
- } | {
3240
- Literal: string;
3241
- } | {
3242
- TokenId: number;
3243
- } | {
3244
- None: null;
3245
- };
3246
- };
3247
- } | {
3248
- FixedOutputMetadataValue: {
3249
- index: number;
3250
- metadata_key: string;
3251
- metadata_value: {
3252
- File: string;
3253
- } | {
3254
- Literal: string;
3255
- } | {
3256
- TokenId: number;
3257
- } | {
3258
- None: null;
3259
- };
3260
- };
3261
- } | {
3262
- FixedInputMetadataValueType: {
3263
- index: number;
3264
- metadata_key: string;
3265
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
3266
- };
3267
- } | {
3268
- FixedOutputMetadataValueType: {
3269
- index: number;
3270
- metadata_key: string;
3271
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
3272
- };
3273
- };
3274
- }, {
3275
- Restriction: "None" | "Fail" | {
3276
- SenderHasInputRole: {
3277
- index: number;
3278
- role_key: string;
3279
- };
3280
- } | {
3281
- SenderHasOutputRole: {
3282
- index: number;
3283
- role_key: string;
3284
- };
3285
- } | {
3286
- OutputHasRole: {
3287
- index: number;
3288
- role_key: string;
3289
- };
3290
- } | {
3291
- OutputHasMetadata: {
3292
- index: number;
3293
- metadata_key: string;
3294
- };
3295
- } | {
3296
- InputHasRole: {
3297
- index: number;
3298
- role_key: string;
3299
- };
3300
- } | {
3301
- InputHasMetadata: {
3302
- index: number;
3303
- metadata_key: string;
3304
- };
3305
- } | {
3306
- MatchInputOutputRole: {
3307
- input_index: number;
3308
- input_role_key: string;
3309
- output_index: number;
3310
- output_role_key: string;
3311
- };
3312
- } | {
3313
- MatchInputOutputMetadataValue: {
3314
- input_index: number;
3315
- output_index: number;
3316
- input_metadata_key: string;
3317
- output_metadata_key: string;
3318
- };
3319
- } | {
3320
- MatchInputIdOutputMetadataValue: {
3321
- input_index: number;
3322
- output_index: number;
3323
- output_metadata_key: string;
3324
- };
3325
- } | {
3326
- FixedNumberOfInputs: {
3327
- num_inputs: number;
3328
- };
3329
- } | {
3330
- FixedNumberOfOutputs: {
3331
- num_outputs: number;
3332
- };
3333
- } | {
3334
- FixedInputMetadataValue: {
3335
- index: number;
3336
- metadata_key: string;
3337
- metadata_value: {
3338
- File: string;
3339
- } | {
3340
- Literal: string;
3341
- } | {
3342
- TokenId: number;
3343
- } | {
3344
- None: null;
3345
- };
3346
- };
3347
- } | {
3348
- FixedOutputMetadataValue: {
3349
- index: number;
3350
- metadata_key: string;
3351
- metadata_value: {
3352
- File: string;
3353
- } | {
3354
- Literal: string;
3355
- } | {
3356
- TokenId: number;
3357
- } | {
3358
- None: null;
3359
- };
3360
- };
3361
- } | {
3362
- FixedInputMetadataValueType: {
3363
- index: number;
3364
- metadata_key: string;
3365
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
3366
- };
3367
- } | {
3368
- FixedOutputMetadataValueType: {
3369
- index: number;
3370
- metadata_key: string;
3371
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
3372
- };
3373
- };
3374
- }>]>, "many">;
3375
- }, "strip", z.ZodTypeAny, {
3376
- name: string;
3377
- version: number;
3378
- program: ({
3379
- Op: "Identity" | "TransferL" | "TransferR" | "NotL" | "NotR" | "And" | "Nand" | "Or" | "Nor" | "Xor" | "Xnor" | "ImplicationL" | "ImplicationR" | "InhibitionL" | "InhibitionR";
3380
- } | {
3381
- Restriction: "None" | "Fail" | {
3382
- SenderHasInputRole: {
3383
- index: number;
3384
- role_key: string;
3385
- };
3386
- } | {
3387
- SenderHasOutputRole: {
3388
- index: number;
3389
- role_key: string;
3390
- };
3391
- } | {
3392
- OutputHasRole: {
3393
- index: number;
3394
- role_key: string;
3395
- };
3396
- } | {
3397
- OutputHasMetadata: {
3398
- index: number;
3399
- metadata_key: string;
3400
- };
3401
- } | {
3402
- InputHasRole: {
3403
- index: number;
3404
- role_key: string;
3405
- };
3406
- } | {
3407
- InputHasMetadata: {
3408
- index: number;
3409
- metadata_key: string;
3410
- };
3411
- } | {
3412
- MatchInputOutputRole: {
3413
- input_index: number;
3414
- input_role_key: string;
3415
- output_index: number;
3416
- output_role_key: string;
3417
- };
3418
- } | {
3419
- MatchInputOutputMetadataValue: {
3420
- input_index: number;
3421
- output_index: number;
3422
- input_metadata_key: string;
3423
- output_metadata_key: string;
3424
- };
3425
- } | {
3426
- MatchInputIdOutputMetadataValue: {
3427
- input_index: number;
3428
- output_index: number;
3429
- output_metadata_key: string;
3430
- };
3431
- } | {
3432
- FixedNumberOfInputs: {
3433
- num_inputs: number;
3434
- };
3435
- } | {
3436
- FixedNumberOfOutputs: {
3437
- num_outputs: number;
3438
- };
3439
- } | {
3440
- FixedInputMetadataValue: {
3441
- index: number;
3442
- metadata_key: string;
3443
- metadata_value: {
3444
- File: string;
3445
- } | {
3446
- Literal: string;
3447
- } | {
3448
- TokenId: number;
3449
- } | {
3450
- None: null;
3451
- };
3452
- };
3453
- } | {
3454
- FixedOutputMetadataValue: {
3455
- index: number;
3456
- metadata_key: string;
3457
- metadata_value: {
3458
- File: string;
3459
- } | {
3460
- Literal: string;
3461
- } | {
3462
- TokenId: number;
3463
- } | {
3464
- None: null;
3465
- };
3466
- };
3467
- } | {
3468
- FixedInputMetadataValueType: {
3469
- index: number;
3470
- metadata_key: string;
3471
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
3472
- };
3473
- } | {
3474
- FixedOutputMetadataValueType: {
3475
- index: number;
3476
- metadata_key: string;
3477
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
3478
- };
3479
- };
3480
- })[];
3481
- }, {
3482
- name: string;
3483
- version: number;
3484
- program: ({
3485
- Op: "Identity" | "TransferL" | "TransferR" | "NotL" | "NotR" | "And" | "Nand" | "Or" | "Nor" | "Xor" | "Xnor" | "ImplicationL" | "ImplicationR" | "InhibitionL" | "InhibitionR";
3486
- } | {
3487
- Restriction: "None" | "Fail" | {
3488
- SenderHasInputRole: {
3489
- index: number;
3490
- role_key: string;
3491
- };
3492
- } | {
3493
- SenderHasOutputRole: {
3494
- index: number;
3495
- role_key: string;
3496
- };
3497
- } | {
3498
- OutputHasRole: {
3499
- index: number;
3500
- role_key: string;
3501
- };
3502
- } | {
3503
- OutputHasMetadata: {
3504
- index: number;
3505
- metadata_key: string;
3506
- };
3507
- } | {
3508
- InputHasRole: {
3509
- index: number;
3510
- role_key: string;
3511
- };
3512
- } | {
3513
- InputHasMetadata: {
3514
- index: number;
3515
- metadata_key: string;
3516
- };
3517
- } | {
3518
- MatchInputOutputRole: {
3519
- input_index: number;
3520
- input_role_key: string;
3521
- output_index: number;
3522
- output_role_key: string;
3523
- };
3524
- } | {
3525
- MatchInputOutputMetadataValue: {
3526
- input_index: number;
3527
- output_index: number;
3528
- input_metadata_key: string;
3529
- output_metadata_key: string;
3530
- };
3531
- } | {
3532
- MatchInputIdOutputMetadataValue: {
3533
- input_index: number;
3534
- output_index: number;
3535
- output_metadata_key: string;
3536
- };
3537
- } | {
3538
- FixedNumberOfInputs: {
3539
- num_inputs: number;
3540
- };
3541
- } | {
3542
- FixedNumberOfOutputs: {
3543
- num_outputs: number;
3544
- };
3545
- } | {
3546
- FixedInputMetadataValue: {
3547
- index: number;
3548
- metadata_key: string;
3549
- metadata_value: {
3550
- File: string;
3551
- } | {
3552
- Literal: string;
3553
- } | {
3554
- TokenId: number;
3555
- } | {
3556
- None: null;
3557
- };
3558
- };
3559
- } | {
3560
- FixedOutputMetadataValue: {
3561
- index: number;
3562
- metadata_key: string;
3563
- metadata_value: {
3564
- File: string;
3565
- } | {
3566
- Literal: string;
3567
- } | {
3568
- TokenId: number;
3569
- } | {
3570
- None: null;
3571
- };
3572
- };
3573
- } | {
3574
- FixedInputMetadataValueType: {
3575
- index: number;
3576
- metadata_key: string;
3577
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
3578
- };
3579
- } | {
3580
- FixedOutputMetadataValueType: {
3581
- index: number;
3582
- metadata_key: string;
3583
- metadata_value_type: "File" | "Literal" | "TokenId" | "None";
3584
- };
3585
- };
3586
- })[];
3587
- }>, "many">;
3588
- export type ValidationRestriction = z.infer<typeof restrictionValidation>;
3589
- export type ValidationProgramStep = z.infer<typeof stepValidation>;
3590
- export type ValidationProgram = z.infer<typeof programValidation>;
3591
- export type ValidationProcess = z.infer<typeof processValidation>;
3592
- export type ValidationProcesses = z.infer<typeof processesValidation>;