@nf2t/nifitools-js 0.0.0 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,958 @@
1
+ import JSZip from 'jszip';
2
+ import { z } from 'zod';
3
+
4
+ declare const NarAttributeTypeSchema: z.ZodEnum<["writes", "reads"]>;
5
+ type NarAttributeType = z.infer<typeof NarAttributeTypeSchema>;
6
+ declare const NarAttributeSchema: z.ZodObject<{
7
+ narId: z.ZodString;
8
+ extensionId: z.ZodString;
9
+ type: z.ZodEnum<["writes", "reads"]>;
10
+ id: z.ZodString;
11
+ name: z.ZodString;
12
+ description: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ type: "writes" | "reads";
15
+ narId: string;
16
+ extensionId: string;
17
+ id: string;
18
+ name: string;
19
+ description: string;
20
+ }, {
21
+ type: "writes" | "reads";
22
+ narId: string;
23
+ extensionId: string;
24
+ id: string;
25
+ name: string;
26
+ description: string;
27
+ }>;
28
+ type NarAttribute = z.infer<typeof NarAttributeSchema>;
29
+ declare const NarAttributesSchema: z.ZodArray<z.ZodObject<{
30
+ narId: z.ZodString;
31
+ extensionId: z.ZodString;
32
+ type: z.ZodEnum<["writes", "reads"]>;
33
+ id: z.ZodString;
34
+ name: z.ZodString;
35
+ description: z.ZodString;
36
+ }, "strip", z.ZodTypeAny, {
37
+ type: "writes" | "reads";
38
+ narId: string;
39
+ extensionId: string;
40
+ id: string;
41
+ name: string;
42
+ description: string;
43
+ }, {
44
+ type: "writes" | "reads";
45
+ narId: string;
46
+ extensionId: string;
47
+ id: string;
48
+ name: string;
49
+ description: string;
50
+ }>, "many">;
51
+ type NarAttributes = z.infer<typeof NarAttributesSchema>;
52
+ declare const NarExtensionRelationship: z.ZodObject<{
53
+ name: z.ZodString;
54
+ description: z.ZodOptional<z.ZodString>;
55
+ autoTerminated: z.ZodBoolean;
56
+ }, "strip", z.ZodTypeAny, {
57
+ name: string;
58
+ autoTerminated: boolean;
59
+ description?: string | undefined;
60
+ }, {
61
+ name: string;
62
+ autoTerminated: boolean;
63
+ description?: string | undefined;
64
+ }>;
65
+ declare const NarExtensionProperty: z.ZodObject<{
66
+ name: z.ZodString;
67
+ displayName: z.ZodString;
68
+ description: z.ZodOptional<z.ZodString>;
69
+ required: z.ZodOptional<z.ZodBoolean>;
70
+ sensitive: z.ZodOptional<z.ZodBoolean>;
71
+ expressionLanguageSupported: z.ZodOptional<z.ZodBoolean>;
72
+ expressionLanguageScope: z.ZodOptional<z.ZodString>;
73
+ dynamicallyModifiesClasspath: z.ZodOptional<z.ZodBoolean>;
74
+ dynamic: z.ZodOptional<z.ZodBoolean>;
75
+ }, "strip", z.ZodTypeAny, {
76
+ name: string;
77
+ displayName: string;
78
+ description?: string | undefined;
79
+ required?: boolean | undefined;
80
+ sensitive?: boolean | undefined;
81
+ expressionLanguageSupported?: boolean | undefined;
82
+ expressionLanguageScope?: string | undefined;
83
+ dynamicallyModifiesClasspath?: boolean | undefined;
84
+ dynamic?: boolean | undefined;
85
+ }, {
86
+ name: string;
87
+ displayName: string;
88
+ description?: string | undefined;
89
+ required?: boolean | undefined;
90
+ sensitive?: boolean | undefined;
91
+ expressionLanguageSupported?: boolean | undefined;
92
+ expressionLanguageScope?: string | undefined;
93
+ dynamicallyModifiesClasspath?: boolean | undefined;
94
+ dynamic?: boolean | undefined;
95
+ }>;
96
+ declare const NarExtensionSchema: z.ZodObject<{
97
+ narId: z.ZodString;
98
+ name: z.ZodString;
99
+ type: z.ZodString;
100
+ description: z.ZodOptional<z.ZodString>;
101
+ tags: z.ZodArray<z.ZodString, "many">;
102
+ relationships: z.ZodArray<z.ZodObject<{
103
+ name: z.ZodString;
104
+ description: z.ZodOptional<z.ZodString>;
105
+ autoTerminated: z.ZodBoolean;
106
+ }, "strip", z.ZodTypeAny, {
107
+ name: string;
108
+ autoTerminated: boolean;
109
+ description?: string | undefined;
110
+ }, {
111
+ name: string;
112
+ autoTerminated: boolean;
113
+ description?: string | undefined;
114
+ }>, "many">;
115
+ properties: z.ZodArray<z.ZodObject<{
116
+ name: z.ZodString;
117
+ displayName: z.ZodString;
118
+ description: z.ZodOptional<z.ZodString>;
119
+ required: z.ZodOptional<z.ZodBoolean>;
120
+ sensitive: z.ZodOptional<z.ZodBoolean>;
121
+ expressionLanguageSupported: z.ZodOptional<z.ZodBoolean>;
122
+ expressionLanguageScope: z.ZodOptional<z.ZodString>;
123
+ dynamicallyModifiesClasspath: z.ZodOptional<z.ZodBoolean>;
124
+ dynamic: z.ZodOptional<z.ZodBoolean>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ name: string;
127
+ displayName: string;
128
+ description?: string | undefined;
129
+ required?: boolean | undefined;
130
+ sensitive?: boolean | undefined;
131
+ expressionLanguageSupported?: boolean | undefined;
132
+ expressionLanguageScope?: string | undefined;
133
+ dynamicallyModifiesClasspath?: boolean | undefined;
134
+ dynamic?: boolean | undefined;
135
+ }, {
136
+ name: string;
137
+ displayName: string;
138
+ description?: string | undefined;
139
+ required?: boolean | undefined;
140
+ sensitive?: boolean | undefined;
141
+ expressionLanguageSupported?: boolean | undefined;
142
+ expressionLanguageScope?: string | undefined;
143
+ dynamicallyModifiesClasspath?: boolean | undefined;
144
+ dynamic?: boolean | undefined;
145
+ }>, "many">;
146
+ required: z.ZodOptional<z.ZodBoolean>;
147
+ sensitive: z.ZodOptional<z.ZodBoolean>;
148
+ expressionLanguageSupported: z.ZodOptional<z.ZodBoolean>;
149
+ expressionLanguageScope: z.ZodOptional<z.ZodString>;
150
+ dynamicallyModifiesClasspath: z.ZodOptional<z.ZodBoolean>;
151
+ dynamic: z.ZodOptional<z.ZodBoolean>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ type: string;
154
+ narId: string;
155
+ name: string;
156
+ tags: string[];
157
+ relationships: {
158
+ name: string;
159
+ autoTerminated: boolean;
160
+ description?: string | undefined;
161
+ }[];
162
+ properties: {
163
+ name: string;
164
+ displayName: string;
165
+ description?: string | undefined;
166
+ required?: boolean | undefined;
167
+ sensitive?: boolean | undefined;
168
+ expressionLanguageSupported?: boolean | undefined;
169
+ expressionLanguageScope?: string | undefined;
170
+ dynamicallyModifiesClasspath?: boolean | undefined;
171
+ dynamic?: boolean | undefined;
172
+ }[];
173
+ description?: string | undefined;
174
+ required?: boolean | undefined;
175
+ sensitive?: boolean | undefined;
176
+ expressionLanguageSupported?: boolean | undefined;
177
+ expressionLanguageScope?: string | undefined;
178
+ dynamicallyModifiesClasspath?: boolean | undefined;
179
+ dynamic?: boolean | undefined;
180
+ }, {
181
+ type: string;
182
+ narId: string;
183
+ name: string;
184
+ tags: string[];
185
+ relationships: {
186
+ name: string;
187
+ autoTerminated: boolean;
188
+ description?: string | undefined;
189
+ }[];
190
+ properties: {
191
+ name: string;
192
+ displayName: string;
193
+ description?: string | undefined;
194
+ required?: boolean | undefined;
195
+ sensitive?: boolean | undefined;
196
+ expressionLanguageSupported?: boolean | undefined;
197
+ expressionLanguageScope?: string | undefined;
198
+ dynamicallyModifiesClasspath?: boolean | undefined;
199
+ dynamic?: boolean | undefined;
200
+ }[];
201
+ description?: string | undefined;
202
+ required?: boolean | undefined;
203
+ sensitive?: boolean | undefined;
204
+ expressionLanguageSupported?: boolean | undefined;
205
+ expressionLanguageScope?: string | undefined;
206
+ dynamicallyModifiesClasspath?: boolean | undefined;
207
+ dynamic?: boolean | undefined;
208
+ }>;
209
+ type NarExtension = z.infer<typeof NarExtensionSchema>;
210
+ declare const NarExtensionsSchema: z.ZodArray<z.ZodObject<{
211
+ narId: z.ZodString;
212
+ name: z.ZodString;
213
+ type: z.ZodString;
214
+ description: z.ZodOptional<z.ZodString>;
215
+ tags: z.ZodArray<z.ZodString, "many">;
216
+ relationships: z.ZodArray<z.ZodObject<{
217
+ name: z.ZodString;
218
+ description: z.ZodOptional<z.ZodString>;
219
+ autoTerminated: z.ZodBoolean;
220
+ }, "strip", z.ZodTypeAny, {
221
+ name: string;
222
+ autoTerminated: boolean;
223
+ description?: string | undefined;
224
+ }, {
225
+ name: string;
226
+ autoTerminated: boolean;
227
+ description?: string | undefined;
228
+ }>, "many">;
229
+ properties: z.ZodArray<z.ZodObject<{
230
+ name: z.ZodString;
231
+ displayName: z.ZodString;
232
+ description: z.ZodOptional<z.ZodString>;
233
+ required: z.ZodOptional<z.ZodBoolean>;
234
+ sensitive: z.ZodOptional<z.ZodBoolean>;
235
+ expressionLanguageSupported: z.ZodOptional<z.ZodBoolean>;
236
+ expressionLanguageScope: z.ZodOptional<z.ZodString>;
237
+ dynamicallyModifiesClasspath: z.ZodOptional<z.ZodBoolean>;
238
+ dynamic: z.ZodOptional<z.ZodBoolean>;
239
+ }, "strip", z.ZodTypeAny, {
240
+ name: string;
241
+ displayName: string;
242
+ description?: string | undefined;
243
+ required?: boolean | undefined;
244
+ sensitive?: boolean | undefined;
245
+ expressionLanguageSupported?: boolean | undefined;
246
+ expressionLanguageScope?: string | undefined;
247
+ dynamicallyModifiesClasspath?: boolean | undefined;
248
+ dynamic?: boolean | undefined;
249
+ }, {
250
+ name: string;
251
+ displayName: string;
252
+ description?: string | undefined;
253
+ required?: boolean | undefined;
254
+ sensitive?: boolean | undefined;
255
+ expressionLanguageSupported?: boolean | undefined;
256
+ expressionLanguageScope?: string | undefined;
257
+ dynamicallyModifiesClasspath?: boolean | undefined;
258
+ dynamic?: boolean | undefined;
259
+ }>, "many">;
260
+ required: z.ZodOptional<z.ZodBoolean>;
261
+ sensitive: z.ZodOptional<z.ZodBoolean>;
262
+ expressionLanguageSupported: z.ZodOptional<z.ZodBoolean>;
263
+ expressionLanguageScope: z.ZodOptional<z.ZodString>;
264
+ dynamicallyModifiesClasspath: z.ZodOptional<z.ZodBoolean>;
265
+ dynamic: z.ZodOptional<z.ZodBoolean>;
266
+ }, "strip", z.ZodTypeAny, {
267
+ type: string;
268
+ narId: string;
269
+ name: string;
270
+ tags: string[];
271
+ relationships: {
272
+ name: string;
273
+ autoTerminated: boolean;
274
+ description?: string | undefined;
275
+ }[];
276
+ properties: {
277
+ name: string;
278
+ displayName: string;
279
+ description?: string | undefined;
280
+ required?: boolean | undefined;
281
+ sensitive?: boolean | undefined;
282
+ expressionLanguageSupported?: boolean | undefined;
283
+ expressionLanguageScope?: string | undefined;
284
+ dynamicallyModifiesClasspath?: boolean | undefined;
285
+ dynamic?: boolean | undefined;
286
+ }[];
287
+ description?: string | undefined;
288
+ required?: boolean | undefined;
289
+ sensitive?: boolean | undefined;
290
+ expressionLanguageSupported?: boolean | undefined;
291
+ expressionLanguageScope?: string | undefined;
292
+ dynamicallyModifiesClasspath?: boolean | undefined;
293
+ dynamic?: boolean | undefined;
294
+ }, {
295
+ type: string;
296
+ narId: string;
297
+ name: string;
298
+ tags: string[];
299
+ relationships: {
300
+ name: string;
301
+ autoTerminated: boolean;
302
+ description?: string | undefined;
303
+ }[];
304
+ properties: {
305
+ name: string;
306
+ displayName: string;
307
+ description?: string | undefined;
308
+ required?: boolean | undefined;
309
+ sensitive?: boolean | undefined;
310
+ expressionLanguageSupported?: boolean | undefined;
311
+ expressionLanguageScope?: string | undefined;
312
+ dynamicallyModifiesClasspath?: boolean | undefined;
313
+ dynamic?: boolean | undefined;
314
+ }[];
315
+ description?: string | undefined;
316
+ required?: boolean | undefined;
317
+ sensitive?: boolean | undefined;
318
+ expressionLanguageSupported?: boolean | undefined;
319
+ expressionLanguageScope?: string | undefined;
320
+ dynamicallyModifiesClasspath?: boolean | undefined;
321
+ dynamic?: boolean | undefined;
322
+ }>, "many">;
323
+ type NarExtensions = z.infer<typeof NarExtensionsSchema>;
324
+ declare const ManifestSchema: z.ZodRecord<z.ZodString, z.ZodString>;
325
+ type Manifest = z.infer<typeof ManifestSchema>;
326
+ declare const NarSchema: z.ZodObject<{
327
+ manifest: z.ZodRecord<z.ZodString, z.ZodString>;
328
+ name: z.ZodString;
329
+ lastModified: z.ZodNumber;
330
+ size: z.ZodNumber;
331
+ systemApiVersion: z.ZodOptional<z.ZodString>;
332
+ groupId: z.ZodOptional<z.ZodString>;
333
+ artifactId: z.ZodOptional<z.ZodString>;
334
+ version: z.ZodOptional<z.ZodString>;
335
+ buildTag: z.ZodOptional<z.ZodString>;
336
+ buildTimestamp: z.ZodOptional<z.ZodString>;
337
+ }, "strip", z.ZodTypeAny, {
338
+ name: string;
339
+ manifest: Record<string, string>;
340
+ lastModified: number;
341
+ size: number;
342
+ systemApiVersion?: string | undefined;
343
+ groupId?: string | undefined;
344
+ artifactId?: string | undefined;
345
+ version?: string | undefined;
346
+ buildTag?: string | undefined;
347
+ buildTimestamp?: string | undefined;
348
+ }, {
349
+ name: string;
350
+ manifest: Record<string, string>;
351
+ lastModified: number;
352
+ size: number;
353
+ systemApiVersion?: string | undefined;
354
+ groupId?: string | undefined;
355
+ artifactId?: string | undefined;
356
+ version?: string | undefined;
357
+ buildTag?: string | undefined;
358
+ buildTimestamp?: string | undefined;
359
+ }>;
360
+ type Nar = z.infer<typeof NarSchema>;
361
+ declare const NarsSchema: z.ZodArray<z.ZodObject<{
362
+ manifest: z.ZodRecord<z.ZodString, z.ZodString>;
363
+ name: z.ZodString;
364
+ lastModified: z.ZodNumber;
365
+ size: z.ZodNumber;
366
+ systemApiVersion: z.ZodOptional<z.ZodString>;
367
+ groupId: z.ZodOptional<z.ZodString>;
368
+ artifactId: z.ZodOptional<z.ZodString>;
369
+ version: z.ZodOptional<z.ZodString>;
370
+ buildTag: z.ZodOptional<z.ZodString>;
371
+ buildTimestamp: z.ZodOptional<z.ZodString>;
372
+ }, "strip", z.ZodTypeAny, {
373
+ name: string;
374
+ manifest: Record<string, string>;
375
+ lastModified: number;
376
+ size: number;
377
+ systemApiVersion?: string | undefined;
378
+ groupId?: string | undefined;
379
+ artifactId?: string | undefined;
380
+ version?: string | undefined;
381
+ buildTag?: string | undefined;
382
+ buildTimestamp?: string | undefined;
383
+ }, {
384
+ name: string;
385
+ manifest: Record<string, string>;
386
+ lastModified: number;
387
+ size: number;
388
+ systemApiVersion?: string | undefined;
389
+ groupId?: string | undefined;
390
+ artifactId?: string | undefined;
391
+ version?: string | undefined;
392
+ buildTag?: string | undefined;
393
+ buildTimestamp?: string | undefined;
394
+ }>, "many">;
395
+ type Nars = z.infer<typeof NarsSchema>;
396
+ declare const NarExportSchema: z.ZodObject<{
397
+ nars: z.ZodArray<z.ZodObject<{
398
+ manifest: z.ZodRecord<z.ZodString, z.ZodString>;
399
+ name: z.ZodString;
400
+ lastModified: z.ZodNumber;
401
+ size: z.ZodNumber;
402
+ systemApiVersion: z.ZodOptional<z.ZodString>;
403
+ groupId: z.ZodOptional<z.ZodString>;
404
+ artifactId: z.ZodOptional<z.ZodString>;
405
+ version: z.ZodOptional<z.ZodString>;
406
+ buildTag: z.ZodOptional<z.ZodString>;
407
+ buildTimestamp: z.ZodOptional<z.ZodString>;
408
+ }, "strip", z.ZodTypeAny, {
409
+ name: string;
410
+ manifest: Record<string, string>;
411
+ lastModified: number;
412
+ size: number;
413
+ systemApiVersion?: string | undefined;
414
+ groupId?: string | undefined;
415
+ artifactId?: string | undefined;
416
+ version?: string | undefined;
417
+ buildTag?: string | undefined;
418
+ buildTimestamp?: string | undefined;
419
+ }, {
420
+ name: string;
421
+ manifest: Record<string, string>;
422
+ lastModified: number;
423
+ size: number;
424
+ systemApiVersion?: string | undefined;
425
+ groupId?: string | undefined;
426
+ artifactId?: string | undefined;
427
+ version?: string | undefined;
428
+ buildTag?: string | undefined;
429
+ buildTimestamp?: string | undefined;
430
+ }>, "many">;
431
+ extensions: z.ZodArray<z.ZodObject<{
432
+ narId: z.ZodString;
433
+ name: z.ZodString;
434
+ type: z.ZodString;
435
+ description: z.ZodOptional<z.ZodString>;
436
+ tags: z.ZodArray<z.ZodString, "many">;
437
+ relationships: z.ZodArray<z.ZodObject<{
438
+ name: z.ZodString;
439
+ description: z.ZodOptional<z.ZodString>;
440
+ autoTerminated: z.ZodBoolean;
441
+ }, "strip", z.ZodTypeAny, {
442
+ name: string;
443
+ autoTerminated: boolean;
444
+ description?: string | undefined;
445
+ }, {
446
+ name: string;
447
+ autoTerminated: boolean;
448
+ description?: string | undefined;
449
+ }>, "many">;
450
+ properties: z.ZodArray<z.ZodObject<{
451
+ name: z.ZodString;
452
+ displayName: z.ZodString;
453
+ description: z.ZodOptional<z.ZodString>;
454
+ required: z.ZodOptional<z.ZodBoolean>;
455
+ sensitive: z.ZodOptional<z.ZodBoolean>;
456
+ expressionLanguageSupported: z.ZodOptional<z.ZodBoolean>;
457
+ expressionLanguageScope: z.ZodOptional<z.ZodString>;
458
+ dynamicallyModifiesClasspath: z.ZodOptional<z.ZodBoolean>;
459
+ dynamic: z.ZodOptional<z.ZodBoolean>;
460
+ }, "strip", z.ZodTypeAny, {
461
+ name: string;
462
+ displayName: string;
463
+ description?: string | undefined;
464
+ required?: boolean | undefined;
465
+ sensitive?: boolean | undefined;
466
+ expressionLanguageSupported?: boolean | undefined;
467
+ expressionLanguageScope?: string | undefined;
468
+ dynamicallyModifiesClasspath?: boolean | undefined;
469
+ dynamic?: boolean | undefined;
470
+ }, {
471
+ name: string;
472
+ displayName: string;
473
+ description?: string | undefined;
474
+ required?: boolean | undefined;
475
+ sensitive?: boolean | undefined;
476
+ expressionLanguageSupported?: boolean | undefined;
477
+ expressionLanguageScope?: string | undefined;
478
+ dynamicallyModifiesClasspath?: boolean | undefined;
479
+ dynamic?: boolean | undefined;
480
+ }>, "many">;
481
+ required: z.ZodOptional<z.ZodBoolean>;
482
+ sensitive: z.ZodOptional<z.ZodBoolean>;
483
+ expressionLanguageSupported: z.ZodOptional<z.ZodBoolean>;
484
+ expressionLanguageScope: z.ZodOptional<z.ZodString>;
485
+ dynamicallyModifiesClasspath: z.ZodOptional<z.ZodBoolean>;
486
+ dynamic: z.ZodOptional<z.ZodBoolean>;
487
+ }, "strip", z.ZodTypeAny, {
488
+ type: string;
489
+ narId: string;
490
+ name: string;
491
+ tags: string[];
492
+ relationships: {
493
+ name: string;
494
+ autoTerminated: boolean;
495
+ description?: string | undefined;
496
+ }[];
497
+ properties: {
498
+ name: string;
499
+ displayName: string;
500
+ description?: string | undefined;
501
+ required?: boolean | undefined;
502
+ sensitive?: boolean | undefined;
503
+ expressionLanguageSupported?: boolean | undefined;
504
+ expressionLanguageScope?: string | undefined;
505
+ dynamicallyModifiesClasspath?: boolean | undefined;
506
+ dynamic?: boolean | undefined;
507
+ }[];
508
+ description?: string | undefined;
509
+ required?: boolean | undefined;
510
+ sensitive?: boolean | undefined;
511
+ expressionLanguageSupported?: boolean | undefined;
512
+ expressionLanguageScope?: string | undefined;
513
+ dynamicallyModifiesClasspath?: boolean | undefined;
514
+ dynamic?: boolean | undefined;
515
+ }, {
516
+ type: string;
517
+ narId: string;
518
+ name: string;
519
+ tags: string[];
520
+ relationships: {
521
+ name: string;
522
+ autoTerminated: boolean;
523
+ description?: string | undefined;
524
+ }[];
525
+ properties: {
526
+ name: string;
527
+ displayName: string;
528
+ description?: string | undefined;
529
+ required?: boolean | undefined;
530
+ sensitive?: boolean | undefined;
531
+ expressionLanguageSupported?: boolean | undefined;
532
+ expressionLanguageScope?: string | undefined;
533
+ dynamicallyModifiesClasspath?: boolean | undefined;
534
+ dynamic?: boolean | undefined;
535
+ }[];
536
+ description?: string | undefined;
537
+ required?: boolean | undefined;
538
+ sensitive?: boolean | undefined;
539
+ expressionLanguageSupported?: boolean | undefined;
540
+ expressionLanguageScope?: string | undefined;
541
+ dynamicallyModifiesClasspath?: boolean | undefined;
542
+ dynamic?: boolean | undefined;
543
+ }>, "many">;
544
+ attributes: z.ZodArray<z.ZodObject<{
545
+ narId: z.ZodString;
546
+ extensionId: z.ZodString;
547
+ type: z.ZodEnum<["writes", "reads"]>;
548
+ id: z.ZodString;
549
+ name: z.ZodString;
550
+ description: z.ZodString;
551
+ }, "strip", z.ZodTypeAny, {
552
+ type: "writes" | "reads";
553
+ narId: string;
554
+ extensionId: string;
555
+ id: string;
556
+ name: string;
557
+ description: string;
558
+ }, {
559
+ type: "writes" | "reads";
560
+ narId: string;
561
+ extensionId: string;
562
+ id: string;
563
+ name: string;
564
+ description: string;
565
+ }>, "many">;
566
+ }, "strip", z.ZodTypeAny, {
567
+ nars: {
568
+ name: string;
569
+ manifest: Record<string, string>;
570
+ lastModified: number;
571
+ size: number;
572
+ systemApiVersion?: string | undefined;
573
+ groupId?: string | undefined;
574
+ artifactId?: string | undefined;
575
+ version?: string | undefined;
576
+ buildTag?: string | undefined;
577
+ buildTimestamp?: string | undefined;
578
+ }[];
579
+ extensions: {
580
+ type: string;
581
+ narId: string;
582
+ name: string;
583
+ tags: string[];
584
+ relationships: {
585
+ name: string;
586
+ autoTerminated: boolean;
587
+ description?: string | undefined;
588
+ }[];
589
+ properties: {
590
+ name: string;
591
+ displayName: string;
592
+ description?: string | undefined;
593
+ required?: boolean | undefined;
594
+ sensitive?: boolean | undefined;
595
+ expressionLanguageSupported?: boolean | undefined;
596
+ expressionLanguageScope?: string | undefined;
597
+ dynamicallyModifiesClasspath?: boolean | undefined;
598
+ dynamic?: boolean | undefined;
599
+ }[];
600
+ description?: string | undefined;
601
+ required?: boolean | undefined;
602
+ sensitive?: boolean | undefined;
603
+ expressionLanguageSupported?: boolean | undefined;
604
+ expressionLanguageScope?: string | undefined;
605
+ dynamicallyModifiesClasspath?: boolean | undefined;
606
+ dynamic?: boolean | undefined;
607
+ }[];
608
+ attributes: {
609
+ type: "writes" | "reads";
610
+ narId: string;
611
+ extensionId: string;
612
+ id: string;
613
+ name: string;
614
+ description: string;
615
+ }[];
616
+ }, {
617
+ nars: {
618
+ name: string;
619
+ manifest: Record<string, string>;
620
+ lastModified: number;
621
+ size: number;
622
+ systemApiVersion?: string | undefined;
623
+ groupId?: string | undefined;
624
+ artifactId?: string | undefined;
625
+ version?: string | undefined;
626
+ buildTag?: string | undefined;
627
+ buildTimestamp?: string | undefined;
628
+ }[];
629
+ extensions: {
630
+ type: string;
631
+ narId: string;
632
+ name: string;
633
+ tags: string[];
634
+ relationships: {
635
+ name: string;
636
+ autoTerminated: boolean;
637
+ description?: string | undefined;
638
+ }[];
639
+ properties: {
640
+ name: string;
641
+ displayName: string;
642
+ description?: string | undefined;
643
+ required?: boolean | undefined;
644
+ sensitive?: boolean | undefined;
645
+ expressionLanguageSupported?: boolean | undefined;
646
+ expressionLanguageScope?: string | undefined;
647
+ dynamicallyModifiesClasspath?: boolean | undefined;
648
+ dynamic?: boolean | undefined;
649
+ }[];
650
+ description?: string | undefined;
651
+ required?: boolean | undefined;
652
+ sensitive?: boolean | undefined;
653
+ expressionLanguageSupported?: boolean | undefined;
654
+ expressionLanguageScope?: string | undefined;
655
+ dynamicallyModifiesClasspath?: boolean | undefined;
656
+ dynamic?: boolean | undefined;
657
+ }[];
658
+ attributes: {
659
+ type: "writes" | "reads";
660
+ narId: string;
661
+ extensionId: string;
662
+ id: string;
663
+ name: string;
664
+ description: string;
665
+ }[];
666
+ }>;
667
+ type IncomingFiles = File[];
668
+ type ReadNarsParameters = {
669
+ files: IncomingFiles;
670
+ options?: JSZip.JSZipLoadOptions;
671
+ DOMParser: DOMParser;
672
+ setCurrentProgress: (current: number, total: number) => void;
673
+ parseNar: (nar: Nar) => Promise<void>;
674
+ parseExtension: (extension: NarExtension) => Promise<void>;
675
+ parseAttribute: (extension: NarAttribute) => Promise<void>;
676
+ };
677
+ type ReadNarsResult = {
678
+ readonly filesLength: number;
679
+ filesCount: number;
680
+ narCount: number;
681
+ narSuccessCount: number;
682
+ narErrorCount: number;
683
+ };
684
+ declare function readNars({ files, options, setCurrentProgress, parseNar, parseExtension, parseAttribute, DOMParser }: ReadNarsParameters): Promise<ReadNarsResult>;
685
+ declare const WriteNarsSchema: z.ZodObject<{
686
+ nars: z.ZodArray<z.ZodObject<{
687
+ manifest: z.ZodRecord<z.ZodString, z.ZodString>;
688
+ name: z.ZodString;
689
+ lastModified: z.ZodNumber;
690
+ size: z.ZodNumber;
691
+ systemApiVersion: z.ZodOptional<z.ZodString>;
692
+ groupId: z.ZodOptional<z.ZodString>;
693
+ artifactId: z.ZodOptional<z.ZodString>;
694
+ version: z.ZodOptional<z.ZodString>;
695
+ buildTag: z.ZodOptional<z.ZodString>;
696
+ buildTimestamp: z.ZodOptional<z.ZodString>;
697
+ }, "strip", z.ZodTypeAny, {
698
+ name: string;
699
+ manifest: Record<string, string>;
700
+ lastModified: number;
701
+ size: number;
702
+ systemApiVersion?: string | undefined;
703
+ groupId?: string | undefined;
704
+ artifactId?: string | undefined;
705
+ version?: string | undefined;
706
+ buildTag?: string | undefined;
707
+ buildTimestamp?: string | undefined;
708
+ }, {
709
+ name: string;
710
+ manifest: Record<string, string>;
711
+ lastModified: number;
712
+ size: number;
713
+ systemApiVersion?: string | undefined;
714
+ groupId?: string | undefined;
715
+ artifactId?: string | undefined;
716
+ version?: string | undefined;
717
+ buildTag?: string | undefined;
718
+ buildTimestamp?: string | undefined;
719
+ }>, "many">;
720
+ extensions: z.ZodArray<z.ZodObject<{
721
+ narId: z.ZodString;
722
+ name: z.ZodString;
723
+ type: z.ZodString;
724
+ description: z.ZodOptional<z.ZodString>;
725
+ tags: z.ZodArray<z.ZodString, "many">;
726
+ relationships: z.ZodArray<z.ZodObject<{
727
+ name: z.ZodString;
728
+ description: z.ZodOptional<z.ZodString>;
729
+ autoTerminated: z.ZodBoolean;
730
+ }, "strip", z.ZodTypeAny, {
731
+ name: string;
732
+ autoTerminated: boolean;
733
+ description?: string | undefined;
734
+ }, {
735
+ name: string;
736
+ autoTerminated: boolean;
737
+ description?: string | undefined;
738
+ }>, "many">;
739
+ properties: z.ZodArray<z.ZodObject<{
740
+ name: z.ZodString;
741
+ displayName: z.ZodString;
742
+ description: z.ZodOptional<z.ZodString>;
743
+ required: z.ZodOptional<z.ZodBoolean>;
744
+ sensitive: z.ZodOptional<z.ZodBoolean>;
745
+ expressionLanguageSupported: z.ZodOptional<z.ZodBoolean>;
746
+ expressionLanguageScope: z.ZodOptional<z.ZodString>;
747
+ dynamicallyModifiesClasspath: z.ZodOptional<z.ZodBoolean>;
748
+ dynamic: z.ZodOptional<z.ZodBoolean>;
749
+ }, "strip", z.ZodTypeAny, {
750
+ name: string;
751
+ displayName: string;
752
+ description?: string | undefined;
753
+ required?: boolean | undefined;
754
+ sensitive?: boolean | undefined;
755
+ expressionLanguageSupported?: boolean | undefined;
756
+ expressionLanguageScope?: string | undefined;
757
+ dynamicallyModifiesClasspath?: boolean | undefined;
758
+ dynamic?: boolean | undefined;
759
+ }, {
760
+ name: string;
761
+ displayName: string;
762
+ description?: string | undefined;
763
+ required?: boolean | undefined;
764
+ sensitive?: boolean | undefined;
765
+ expressionLanguageSupported?: boolean | undefined;
766
+ expressionLanguageScope?: string | undefined;
767
+ dynamicallyModifiesClasspath?: boolean | undefined;
768
+ dynamic?: boolean | undefined;
769
+ }>, "many">;
770
+ required: z.ZodOptional<z.ZodBoolean>;
771
+ sensitive: z.ZodOptional<z.ZodBoolean>;
772
+ expressionLanguageSupported: z.ZodOptional<z.ZodBoolean>;
773
+ expressionLanguageScope: z.ZodOptional<z.ZodString>;
774
+ dynamicallyModifiesClasspath: z.ZodOptional<z.ZodBoolean>;
775
+ dynamic: z.ZodOptional<z.ZodBoolean>;
776
+ }, "strip", z.ZodTypeAny, {
777
+ type: string;
778
+ narId: string;
779
+ name: string;
780
+ tags: string[];
781
+ relationships: {
782
+ name: string;
783
+ autoTerminated: boolean;
784
+ description?: string | undefined;
785
+ }[];
786
+ properties: {
787
+ name: string;
788
+ displayName: string;
789
+ description?: string | undefined;
790
+ required?: boolean | undefined;
791
+ sensitive?: boolean | undefined;
792
+ expressionLanguageSupported?: boolean | undefined;
793
+ expressionLanguageScope?: string | undefined;
794
+ dynamicallyModifiesClasspath?: boolean | undefined;
795
+ dynamic?: boolean | undefined;
796
+ }[];
797
+ description?: string | undefined;
798
+ required?: boolean | undefined;
799
+ sensitive?: boolean | undefined;
800
+ expressionLanguageSupported?: boolean | undefined;
801
+ expressionLanguageScope?: string | undefined;
802
+ dynamicallyModifiesClasspath?: boolean | undefined;
803
+ dynamic?: boolean | undefined;
804
+ }, {
805
+ type: string;
806
+ narId: string;
807
+ name: string;
808
+ tags: string[];
809
+ relationships: {
810
+ name: string;
811
+ autoTerminated: boolean;
812
+ description?: string | undefined;
813
+ }[];
814
+ properties: {
815
+ name: string;
816
+ displayName: string;
817
+ description?: string | undefined;
818
+ required?: boolean | undefined;
819
+ sensitive?: boolean | undefined;
820
+ expressionLanguageSupported?: boolean | undefined;
821
+ expressionLanguageScope?: string | undefined;
822
+ dynamicallyModifiesClasspath?: boolean | undefined;
823
+ dynamic?: boolean | undefined;
824
+ }[];
825
+ description?: string | undefined;
826
+ required?: boolean | undefined;
827
+ sensitive?: boolean | undefined;
828
+ expressionLanguageSupported?: boolean | undefined;
829
+ expressionLanguageScope?: string | undefined;
830
+ dynamicallyModifiesClasspath?: boolean | undefined;
831
+ dynamic?: boolean | undefined;
832
+ }>, "many">;
833
+ attributes: z.ZodArray<z.ZodObject<{
834
+ narId: z.ZodString;
835
+ extensionId: z.ZodString;
836
+ type: z.ZodEnum<["writes", "reads"]>;
837
+ id: z.ZodString;
838
+ name: z.ZodString;
839
+ description: z.ZodString;
840
+ }, "strip", z.ZodTypeAny, {
841
+ type: "writes" | "reads";
842
+ narId: string;
843
+ extensionId: string;
844
+ id: string;
845
+ name: string;
846
+ description: string;
847
+ }, {
848
+ type: "writes" | "reads";
849
+ narId: string;
850
+ extensionId: string;
851
+ id: string;
852
+ name: string;
853
+ description: string;
854
+ }>, "many">;
855
+ }, "strip", z.ZodTypeAny, {
856
+ nars: {
857
+ name: string;
858
+ manifest: Record<string, string>;
859
+ lastModified: number;
860
+ size: number;
861
+ systemApiVersion?: string | undefined;
862
+ groupId?: string | undefined;
863
+ artifactId?: string | undefined;
864
+ version?: string | undefined;
865
+ buildTag?: string | undefined;
866
+ buildTimestamp?: string | undefined;
867
+ }[];
868
+ extensions: {
869
+ type: string;
870
+ narId: string;
871
+ name: string;
872
+ tags: string[];
873
+ relationships: {
874
+ name: string;
875
+ autoTerminated: boolean;
876
+ description?: string | undefined;
877
+ }[];
878
+ properties: {
879
+ name: string;
880
+ displayName: string;
881
+ description?: string | undefined;
882
+ required?: boolean | undefined;
883
+ sensitive?: boolean | undefined;
884
+ expressionLanguageSupported?: boolean | undefined;
885
+ expressionLanguageScope?: string | undefined;
886
+ dynamicallyModifiesClasspath?: boolean | undefined;
887
+ dynamic?: boolean | undefined;
888
+ }[];
889
+ description?: string | undefined;
890
+ required?: boolean | undefined;
891
+ sensitive?: boolean | undefined;
892
+ expressionLanguageSupported?: boolean | undefined;
893
+ expressionLanguageScope?: string | undefined;
894
+ dynamicallyModifiesClasspath?: boolean | undefined;
895
+ dynamic?: boolean | undefined;
896
+ }[];
897
+ attributes: {
898
+ type: "writes" | "reads";
899
+ narId: string;
900
+ extensionId: string;
901
+ id: string;
902
+ name: string;
903
+ description: string;
904
+ }[];
905
+ }, {
906
+ nars: {
907
+ name: string;
908
+ manifest: Record<string, string>;
909
+ lastModified: number;
910
+ size: number;
911
+ systemApiVersion?: string | undefined;
912
+ groupId?: string | undefined;
913
+ artifactId?: string | undefined;
914
+ version?: string | undefined;
915
+ buildTag?: string | undefined;
916
+ buildTimestamp?: string | undefined;
917
+ }[];
918
+ extensions: {
919
+ type: string;
920
+ narId: string;
921
+ name: string;
922
+ tags: string[];
923
+ relationships: {
924
+ name: string;
925
+ autoTerminated: boolean;
926
+ description?: string | undefined;
927
+ }[];
928
+ properties: {
929
+ name: string;
930
+ displayName: string;
931
+ description?: string | undefined;
932
+ required?: boolean | undefined;
933
+ sensitive?: boolean | undefined;
934
+ expressionLanguageSupported?: boolean | undefined;
935
+ expressionLanguageScope?: string | undefined;
936
+ dynamicallyModifiesClasspath?: boolean | undefined;
937
+ dynamic?: boolean | undefined;
938
+ }[];
939
+ description?: string | undefined;
940
+ required?: boolean | undefined;
941
+ sensitive?: boolean | undefined;
942
+ expressionLanguageSupported?: boolean | undefined;
943
+ expressionLanguageScope?: string | undefined;
944
+ dynamicallyModifiesClasspath?: boolean | undefined;
945
+ dynamic?: boolean | undefined;
946
+ }[];
947
+ attributes: {
948
+ type: "writes" | "reads";
949
+ narId: string;
950
+ extensionId: string;
951
+ id: string;
952
+ name: string;
953
+ description: string;
954
+ }[];
955
+ }>;
956
+ type WriteNars = z.infer<typeof WriteNarsSchema>;
957
+
958
+ export { type IncomingFiles, type Manifest, ManifestSchema, type Nar, type NarAttribute, NarAttributeSchema, type NarAttributeType, NarAttributeTypeSchema, type NarAttributes, NarAttributesSchema, NarExportSchema, type NarExtension, NarExtensionProperty, NarExtensionRelationship, NarExtensionSchema, type NarExtensions, NarExtensionsSchema, NarSchema, type Nars, NarsSchema, type ReadNarsParameters, type ReadNarsResult, type WriteNars, WriteNarsSchema, readNars };