@platforma-sdk/block-tools 2.1.5

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.
package/dist/lib.d.ts ADDED
@@ -0,0 +1,2637 @@
1
+ import { z } from 'zod';
2
+ import { MiLogger } from '@milaboratories/ts-helpers';
3
+ import { ContentAnyLocal, ContentRelative, ContentAbsoluteFile, ContentAbsoluteTextLocal, ContentAbsoluteBinaryLocal, ContentExplicitBase64, ContentAbsoluteFolder, ContentAbsoluteUrl, BlockPackId, BlockPackDescriptionRaw } from '@milaboratories/pl-model-middle-layer';
4
+
5
+ interface FullBlockPackageName {
6
+ organization: string;
7
+ package: string;
8
+ version: string;
9
+ }
10
+ declare function packageContentPrefix(bp: FullBlockPackageName): string;
11
+ declare function payloadFilePath(bp: FullBlockPackageName, file: string): string;
12
+ type BlockPackageNameWithoutVersion = Pick<FullBlockPackageName, 'organization' | 'package'>;
13
+ declare function packageOverviewPath(bp: BlockPackageNameWithoutVersion): string;
14
+ declare const GlobalOverviewPath = "v1/overview.json";
15
+ declare const MetaFile = "meta.json";
16
+ interface PackageOverviewEntry {
17
+ version: string;
18
+ meta: object;
19
+ }
20
+ type PackageOverview = PackageOverviewEntry[];
21
+ interface GlobalOverviewEntry {
22
+ organization: string;
23
+ package: string;
24
+ allVersions: string[];
25
+ latestVersion: string;
26
+ latestMeta: object;
27
+ }
28
+ type GlobalOverview = GlobalOverviewEntry[];
29
+
30
+ declare const PlPackageConfigData: z.ZodObject<{
31
+ organization: z.ZodString;
32
+ package: z.ZodString;
33
+ version: z.ZodOptional<z.ZodString>;
34
+ files: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
35
+ meta: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ organization: string;
38
+ meta: {} & {
39
+ [k: string]: unknown;
40
+ };
41
+ files: Record<string, string>;
42
+ package: string;
43
+ version?: string | undefined;
44
+ }, {
45
+ organization: string;
46
+ meta: {} & {
47
+ [k: string]: unknown;
48
+ };
49
+ package: string;
50
+ version?: string | undefined;
51
+ files?: Record<string, string> | undefined;
52
+ }>;
53
+ declare const PlRegCommonConfigData: z.ZodObject<{
54
+ registries: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
55
+ registry: z.ZodOptional<z.ZodString>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ registries: Record<string, string>;
58
+ registry?: string | undefined;
59
+ }, {
60
+ registries?: Record<string, string> | undefined;
61
+ registry?: string | undefined;
62
+ }>;
63
+ type PlRegCommonConfigData = z.infer<typeof PlRegCommonConfigData>;
64
+ declare const PlRegFullPackageConfigData: z.ZodObject<{
65
+ organization: z.ZodString;
66
+ version: z.ZodString;
67
+ meta: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
68
+ files: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
69
+ package: z.ZodString;
70
+ registries: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
71
+ registry: z.ZodString;
72
+ }, "strip", z.ZodTypeAny, {
73
+ organization: string;
74
+ version: string;
75
+ meta: {} & {
76
+ [k: string]: unknown;
77
+ };
78
+ files: Record<string, string>;
79
+ package: string;
80
+ registries: Record<string, string>;
81
+ registry: string;
82
+ }, {
83
+ organization: string;
84
+ version: string;
85
+ meta: {} & {
86
+ [k: string]: unknown;
87
+ };
88
+ package: string;
89
+ registry: string;
90
+ files?: Record<string, string> | undefined;
91
+ registries?: Record<string, string> | undefined;
92
+ }>;
93
+ type PlRegFullPackageConfigData = z.infer<typeof PlRegFullPackageConfigData>;
94
+ declare const PlRegPackageConfigDataShard: z.ZodObject<{
95
+ organization: z.ZodOptional<z.ZodString>;
96
+ version: z.ZodOptional<z.ZodString>;
97
+ meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
98
+ files: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
99
+ package: z.ZodOptional<z.ZodString>;
100
+ registries: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
101
+ registry: z.ZodOptional<z.ZodString>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ files: Record<string, string>;
104
+ registries: Record<string, string>;
105
+ organization?: string | undefined;
106
+ version?: string | undefined;
107
+ meta?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
108
+ package?: string | undefined;
109
+ registry?: string | undefined;
110
+ }, {
111
+ organization?: string | undefined;
112
+ version?: string | undefined;
113
+ meta?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
114
+ files?: Record<string, string> | undefined;
115
+ package?: string | undefined;
116
+ registries?: Record<string, string> | undefined;
117
+ registry?: string | undefined;
118
+ }>;
119
+ type PlRegPackageConfigDataShard = z.infer<typeof PlRegPackageConfigDataShard>;
120
+ declare const PlPackageJsonConfigFile = "pl.package.json";
121
+ declare const PlPackageYamlConfigFile = "pl.package.yaml";
122
+
123
+ interface RegistryStorage {
124
+ putFile(file: string, buffer: Buffer): Promise<void>;
125
+ getFile(file: string): Promise<Buffer | undefined>;
126
+ listFiles(prefix: string): Promise<string[]>;
127
+ deleteFiles(...files: string[]): Promise<void>;
128
+ }
129
+
130
+ /**
131
+ * Layout:
132
+ *
133
+ * _updates_v1/per_package/
134
+ * organisationA/package1/1.2.3/seedABC <-- Tells that change happened for organisationA/package1 version 1.2.3, and reassembly of package1 overview is required
135
+ * organisationA/package1/1.2.3/seedCDE
136
+ * organisationB/package2/1.4.3/seedFGH
137
+ *
138
+ * _updates_v1/_global_update_in <-- Anybody who changes contents writes a random seed in this file
139
+ * _updates_v1/_global_update_out <-- Update process writes update seed from the _global_update_in here after successful update.
140
+ * Mismatch between contents of those files is a sign that another update should be performed.
141
+ *
142
+ * v1/ <-- Actual block packages content
143
+ * organisationA/package2/1.2.3/meta.json
144
+ * organisationA/package2/1.2.3/main.template.plj.gz
145
+ * organisationA/package2/1.2.3/...
146
+ * organisationA/package2/overview.json <-- Per-package aggregated meta-data over all available versions
147
+ * ...
148
+ *
149
+ * v1/overview.json <-- aggregated information about all packages
150
+ *
151
+ */
152
+ declare class BlockRegistry {
153
+ private readonly storage;
154
+ private readonly logger?;
155
+ constructor(storage: RegistryStorage, logger?: MiLogger | undefined);
156
+ constructNewPackage(pack: FullBlockPackageName): BlockRegistryPackConstructor;
157
+ private updateRegistry;
158
+ updateIfNeeded(force?: boolean): Promise<void>;
159
+ getPackageOverview(name: BlockPackageNameWithoutVersion): Promise<undefined | PackageOverview>;
160
+ getGlobalOverview(): Promise<undefined | GlobalOverview>;
161
+ }
162
+ declare class BlockRegistryPackConstructor {
163
+ private readonly storage;
164
+ readonly name: FullBlockPackageName;
165
+ private metaAdded;
166
+ readonly seed: `${string}-${string}-${string}-${string}-${string}`;
167
+ constructor(storage: RegistryStorage, name: FullBlockPackageName);
168
+ addFile(file: string, content: Buffer): Promise<void>;
169
+ writeMeta(meta: object): Promise<void>;
170
+ finish(): Promise<void>;
171
+ }
172
+
173
+ declare class PlRegPackageConfig {
174
+ readonly conf: PlRegFullPackageConfigData;
175
+ constructor(conf: PlRegFullPackageConfigData);
176
+ createRegistry(logger?: MiLogger): BlockRegistry;
177
+ get fullPackageName(): FullBlockPackageName;
178
+ }
179
+
180
+ type index_BlockPackageNameWithoutVersion = BlockPackageNameWithoutVersion;
181
+ type index_FullBlockPackageName = FullBlockPackageName;
182
+ type index_GlobalOverview = GlobalOverview;
183
+ type index_GlobalOverviewEntry = GlobalOverviewEntry;
184
+ declare const index_GlobalOverviewPath: typeof GlobalOverviewPath;
185
+ declare const index_MetaFile: typeof MetaFile;
186
+ type index_PackageOverview = PackageOverview;
187
+ type index_PackageOverviewEntry = PackageOverviewEntry;
188
+ declare const index_PlPackageConfigData: typeof PlPackageConfigData;
189
+ declare const index_PlPackageJsonConfigFile: typeof PlPackageJsonConfigFile;
190
+ declare const index_PlPackageYamlConfigFile: typeof PlPackageYamlConfigFile;
191
+ type index_PlRegCommonConfigData = PlRegCommonConfigData;
192
+ type index_PlRegFullPackageConfigData = PlRegFullPackageConfigData;
193
+ type index_PlRegPackageConfig = PlRegPackageConfig;
194
+ declare const index_PlRegPackageConfig: typeof PlRegPackageConfig;
195
+ type index_PlRegPackageConfigDataShard = PlRegPackageConfigDataShard;
196
+ declare const index_packageContentPrefix: typeof packageContentPrefix;
197
+ declare const index_packageOverviewPath: typeof packageOverviewPath;
198
+ declare const index_payloadFilePath: typeof payloadFilePath;
199
+ declare namespace index {
200
+ export { type index_BlockPackageNameWithoutVersion as BlockPackageNameWithoutVersion, type index_FullBlockPackageName as FullBlockPackageName, type index_GlobalOverview as GlobalOverview, type index_GlobalOverviewEntry as GlobalOverviewEntry, index_GlobalOverviewPath as GlobalOverviewPath, index_MetaFile as MetaFile, type index_PackageOverview as PackageOverview, type index_PackageOverviewEntry as PackageOverviewEntry, index_PlPackageConfigData as PlPackageConfigData, index_PlPackageJsonConfigFile as PlPackageJsonConfigFile, index_PlPackageYamlConfigFile as PlPackageYamlConfigFile, type index_PlRegCommonConfigData as PlRegCommonConfigData, type index_PlRegFullPackageConfigData as PlRegFullPackageConfigData, index_PlRegPackageConfig as PlRegPackageConfig, type index_PlRegPackageConfigDataShard as PlRegPackageConfigDataShard, index_packageContentPrefix as packageContentPrefix, index_packageOverviewPath as packageOverviewPath, index_payloadFilePath as payloadFilePath };
201
+ }
202
+
203
+ declare function BlockComponentsDescription(moduleRoot: string): z.ZodObject<{
204
+ workflow: z.ZodEffects<z.ZodString, {
205
+ file: string;
206
+ type: "absolute-file";
207
+ }, string>;
208
+ model: z.ZodEffects<z.ZodString, {
209
+ file: string;
210
+ type: "absolute-file";
211
+ }, string>;
212
+ ui: z.ZodEffects<z.ZodString, {
213
+ type: "absolute-folder";
214
+ folder: string;
215
+ }, string>;
216
+ }, "strip", z.ZodTypeAny, {
217
+ ui: {
218
+ type: "absolute-folder";
219
+ folder: string;
220
+ };
221
+ workflow: {
222
+ file: string;
223
+ type: "absolute-file";
224
+ };
225
+ model: {
226
+ file: string;
227
+ type: "absolute-file";
228
+ };
229
+ }, {
230
+ ui: string;
231
+ workflow: string;
232
+ model: string;
233
+ }>;
234
+ type BlockComponentsDescription = z.infer<ReturnType<typeof BlockComponentsDescription>>;
235
+ declare function BlockComponentsConsolidate(dstFolder: string, fileAccumulator?: string[]): z.ZodPipeline<z.ZodObject<{
236
+ workflow: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
237
+ type: z.ZodLiteral<"explicit-base64">;
238
+ mimeType: z.ZodString;
239
+ content: z.ZodString;
240
+ }, "strict", z.ZodTypeAny, {
241
+ type: "explicit-base64";
242
+ content: string;
243
+ mimeType: string;
244
+ }, {
245
+ type: "explicit-base64";
246
+ content: string;
247
+ mimeType: string;
248
+ }>, z.ZodObject<{
249
+ type: z.ZodLiteral<"absolute-file">;
250
+ file: z.ZodString;
251
+ }, "strict", z.ZodTypeAny, {
252
+ file: string;
253
+ type: "absolute-file";
254
+ }, {
255
+ file: string;
256
+ type: "absolute-file";
257
+ }>]>, {
258
+ type: "explicit-base64";
259
+ content: string;
260
+ mimeType: string;
261
+ } | {
262
+ path: string;
263
+ type: "relative";
264
+ }, {
265
+ type: "explicit-base64";
266
+ content: string;
267
+ mimeType: string;
268
+ } | {
269
+ file: string;
270
+ type: "absolute-file";
271
+ }>;
272
+ model: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
273
+ type: z.ZodLiteral<"explicit-base64">;
274
+ mimeType: z.ZodString;
275
+ content: z.ZodString;
276
+ }, "strict", z.ZodTypeAny, {
277
+ type: "explicit-base64";
278
+ content: string;
279
+ mimeType: string;
280
+ }, {
281
+ type: "explicit-base64";
282
+ content: string;
283
+ mimeType: string;
284
+ }>, z.ZodObject<{
285
+ type: z.ZodLiteral<"absolute-file">;
286
+ file: z.ZodString;
287
+ }, "strict", z.ZodTypeAny, {
288
+ file: string;
289
+ type: "absolute-file";
290
+ }, {
291
+ file: string;
292
+ type: "absolute-file";
293
+ }>]>, {
294
+ type: "explicit-base64";
295
+ content: string;
296
+ mimeType: string;
297
+ } | {
298
+ path: string;
299
+ type: "relative";
300
+ }, {
301
+ type: "explicit-base64";
302
+ content: string;
303
+ mimeType: string;
304
+ } | {
305
+ file: string;
306
+ type: "absolute-file";
307
+ }>;
308
+ ui: z.ZodEffects<z.ZodObject<{
309
+ type: z.ZodLiteral<"absolute-folder">;
310
+ folder: z.ZodString;
311
+ }, "strict", z.ZodTypeAny, {
312
+ type: "absolute-folder";
313
+ folder: string;
314
+ }, {
315
+ type: "absolute-folder";
316
+ folder: string;
317
+ }>, {
318
+ path: string;
319
+ type: "relative";
320
+ }, {
321
+ type: "absolute-folder";
322
+ folder: string;
323
+ }>;
324
+ }, "strip", z.ZodTypeAny, {
325
+ ui: {
326
+ path: string;
327
+ type: "relative";
328
+ };
329
+ workflow: {
330
+ type: "explicit-base64";
331
+ content: string;
332
+ mimeType: string;
333
+ } | {
334
+ path: string;
335
+ type: "relative";
336
+ };
337
+ model: {
338
+ type: "explicit-base64";
339
+ content: string;
340
+ mimeType: string;
341
+ } | {
342
+ path: string;
343
+ type: "relative";
344
+ };
345
+ }, {
346
+ ui: {
347
+ type: "absolute-folder";
348
+ folder: string;
349
+ };
350
+ workflow: {
351
+ type: "explicit-base64";
352
+ content: string;
353
+ mimeType: string;
354
+ } | {
355
+ file: string;
356
+ type: "absolute-file";
357
+ };
358
+ model: {
359
+ type: "explicit-base64";
360
+ content: string;
361
+ mimeType: string;
362
+ } | {
363
+ file: string;
364
+ type: "absolute-file";
365
+ };
366
+ }>, z.ZodObject<{
367
+ workflow: z.ZodObject<{
368
+ type: z.ZodLiteral<"relative">;
369
+ path: z.ZodString;
370
+ }, "strict", z.ZodTypeAny, {
371
+ path: string;
372
+ type: "relative";
373
+ }, {
374
+ path: string;
375
+ type: "relative";
376
+ }>;
377
+ model: z.ZodObject<{
378
+ type: z.ZodLiteral<"relative">;
379
+ path: z.ZodString;
380
+ }, "strict", z.ZodTypeAny, {
381
+ path: string;
382
+ type: "relative";
383
+ }, {
384
+ path: string;
385
+ type: "relative";
386
+ }>;
387
+ ui: z.ZodObject<{
388
+ type: z.ZodLiteral<"relative">;
389
+ path: z.ZodString;
390
+ }, "strict", z.ZodTypeAny, {
391
+ path: string;
392
+ type: "relative";
393
+ }, {
394
+ path: string;
395
+ type: "relative";
396
+ }>;
397
+ }, "strip", z.ZodTypeAny, {
398
+ ui: {
399
+ path: string;
400
+ type: "relative";
401
+ };
402
+ workflow: {
403
+ path: string;
404
+ type: "relative";
405
+ };
406
+ model: {
407
+ path: string;
408
+ type: "relative";
409
+ };
410
+ }, {
411
+ ui: {
412
+ path: string;
413
+ type: "relative";
414
+ };
415
+ workflow: {
416
+ path: string;
417
+ type: "relative";
418
+ };
419
+ model: {
420
+ path: string;
421
+ type: "relative";
422
+ };
423
+ }>>;
424
+ declare function BlockComponentsAbsoluteUrl(prefix: string): z.ZodObject<{
425
+ workflow: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
426
+ type: z.ZodLiteral<"explicit-base64">;
427
+ mimeType: z.ZodString;
428
+ content: z.ZodString;
429
+ }, "strict", z.ZodTypeAny, {
430
+ type: "explicit-base64";
431
+ content: string;
432
+ mimeType: string;
433
+ }, {
434
+ type: "explicit-base64";
435
+ content: string;
436
+ mimeType: string;
437
+ }>, z.ZodObject<{
438
+ type: z.ZodLiteral<"relative">;
439
+ path: z.ZodString;
440
+ }, "strict", z.ZodTypeAny, {
441
+ path: string;
442
+ type: "relative";
443
+ }, {
444
+ path: string;
445
+ type: "relative";
446
+ }>]>, {
447
+ type: "explicit-base64";
448
+ content: string;
449
+ mimeType: string;
450
+ } | {
451
+ type: "absolute-url";
452
+ url: string;
453
+ }, {
454
+ type: "explicit-base64";
455
+ content: string;
456
+ mimeType: string;
457
+ } | {
458
+ path: string;
459
+ type: "relative";
460
+ }>;
461
+ model: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
462
+ type: z.ZodLiteral<"explicit-base64">;
463
+ mimeType: z.ZodString;
464
+ content: z.ZodString;
465
+ }, "strict", z.ZodTypeAny, {
466
+ type: "explicit-base64";
467
+ content: string;
468
+ mimeType: string;
469
+ }, {
470
+ type: "explicit-base64";
471
+ content: string;
472
+ mimeType: string;
473
+ }>, z.ZodObject<{
474
+ type: z.ZodLiteral<"relative">;
475
+ path: z.ZodString;
476
+ }, "strict", z.ZodTypeAny, {
477
+ path: string;
478
+ type: "relative";
479
+ }, {
480
+ path: string;
481
+ type: "relative";
482
+ }>]>, {
483
+ type: "explicit-base64";
484
+ content: string;
485
+ mimeType: string;
486
+ } | {
487
+ type: "absolute-url";
488
+ url: string;
489
+ }, {
490
+ type: "explicit-base64";
491
+ content: string;
492
+ mimeType: string;
493
+ } | {
494
+ path: string;
495
+ type: "relative";
496
+ }>;
497
+ ui: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
498
+ type: z.ZodLiteral<"explicit-base64">;
499
+ mimeType: z.ZodString;
500
+ content: z.ZodString;
501
+ }, "strict", z.ZodTypeAny, {
502
+ type: "explicit-base64";
503
+ content: string;
504
+ mimeType: string;
505
+ }, {
506
+ type: "explicit-base64";
507
+ content: string;
508
+ mimeType: string;
509
+ }>, z.ZodObject<{
510
+ type: z.ZodLiteral<"relative">;
511
+ path: z.ZodString;
512
+ }, "strict", z.ZodTypeAny, {
513
+ path: string;
514
+ type: "relative";
515
+ }, {
516
+ path: string;
517
+ type: "relative";
518
+ }>]>, {
519
+ type: "explicit-base64";
520
+ content: string;
521
+ mimeType: string;
522
+ } | {
523
+ type: "absolute-url";
524
+ url: string;
525
+ }, {
526
+ type: "explicit-base64";
527
+ content: string;
528
+ mimeType: string;
529
+ } | {
530
+ path: string;
531
+ type: "relative";
532
+ }>;
533
+ }, "strip", z.ZodTypeAny, {
534
+ ui: {
535
+ type: "explicit-base64";
536
+ content: string;
537
+ mimeType: string;
538
+ } | {
539
+ type: "absolute-url";
540
+ url: string;
541
+ };
542
+ workflow: {
543
+ type: "explicit-base64";
544
+ content: string;
545
+ mimeType: string;
546
+ } | {
547
+ type: "absolute-url";
548
+ url: string;
549
+ };
550
+ model: {
551
+ type: "explicit-base64";
552
+ content: string;
553
+ mimeType: string;
554
+ } | {
555
+ type: "absolute-url";
556
+ url: string;
557
+ };
558
+ }, {
559
+ ui: {
560
+ type: "explicit-base64";
561
+ content: string;
562
+ mimeType: string;
563
+ } | {
564
+ path: string;
565
+ type: "relative";
566
+ };
567
+ workflow: {
568
+ type: "explicit-base64";
569
+ content: string;
570
+ mimeType: string;
571
+ } | {
572
+ path: string;
573
+ type: "relative";
574
+ };
575
+ model: {
576
+ type: "explicit-base64";
577
+ content: string;
578
+ mimeType: string;
579
+ } | {
580
+ path: string;
581
+ type: "relative";
582
+ };
583
+ }>;
584
+ type BlockComponentsAbsolute = z.infer<ReturnType<typeof BlockComponentsAbsoluteUrl>>;
585
+
586
+ type ContentCtxFs = {
587
+ type: 'local';
588
+ /** Folder relative to which content should be resolved */
589
+ path: string;
590
+ };
591
+ type ContentCtxUrl = {
592
+ type: 'remote';
593
+ /** URL prefix from which content should be resolved */
594
+ url: string;
595
+ };
596
+ /** Describes a place relative to which any content references should be interpreted */
597
+ type ContentCtx = ContentCtxFs | ContentCtxUrl;
598
+ /** Zod type that resolves node module request into absolute content */
599
+ declare function ResolvedModuleFile(moduleRoot: string): z.ZodEffects<z.ZodString, {
600
+ file: string;
601
+ type: "absolute-file";
602
+ }, string>;
603
+ /**
604
+ * Zod type that resolves node module request for folder into absolute folder,
605
+ * given a list of expected index files in that folder
606
+ * */
607
+ declare function ResolvedModuleFolder(moduleRoot: string, ...indexFilesToLookFor: [string, ...string[]]): z.ZodEffects<z.ZodString, {
608
+ type: "absolute-folder";
609
+ folder: string;
610
+ }, string>;
611
+ declare function mapLocalToAbsolute(root: string): <T extends ContentAnyLocal>(value: T) => Exclude<T, ContentRelative> | ContentAbsoluteFile;
612
+ declare function absoluteToString(): (value: ContentAbsoluteTextLocal) => Promise<string>;
613
+ declare function absoluteToBase64(): (value: ContentAbsoluteBinaryLocal) => Promise<ContentExplicitBase64>;
614
+ declare function cpAbsoluteToRelative(dstFolder: string, fileAccumulator?: string[]): <T extends Exclude<ContentAnyLocal, ContentRelative>>(value: T) => Promise<Exclude<T, ContentAbsoluteFile> | ContentRelative>;
615
+ declare function packFolderToRelativeTgz(dstFolder: string, tgzName: string, fileAccumulator?: string[]): (value: ContentAbsoluteFolder) => Promise<ContentRelative>;
616
+ declare function mapRemoteToAbsolute(rootUrl: string): <T extends ContentAnyLocal>(value: T) => Exclude<T, ContentRelative> | ContentAbsoluteUrl;
617
+
618
+ declare function ResolvedBlockPackDescriptionFromPackageJson(root: string): z.ZodObject<{
619
+ id: z.ZodObject<{
620
+ organization: z.ZodString;
621
+ name: z.ZodString;
622
+ version: z.ZodString;
623
+ }, "strict", z.ZodTypeAny, {
624
+ name: string;
625
+ organization: string;
626
+ version: string;
627
+ }, {
628
+ name: string;
629
+ organization: string;
630
+ version: string;
631
+ }>;
632
+ components: z.ZodObject<{
633
+ workflow: z.ZodEffects<z.ZodString, {
634
+ file: string;
635
+ type: "absolute-file";
636
+ }, string>;
637
+ model: z.ZodEffects<z.ZodString, {
638
+ file: string;
639
+ type: "absolute-file";
640
+ }, string>;
641
+ ui: z.ZodEffects<z.ZodString, {
642
+ type: "absolute-folder";
643
+ folder: string;
644
+ }, string>;
645
+ }, "strip", z.ZodTypeAny, {
646
+ ui: {
647
+ type: "absolute-folder";
648
+ folder: string;
649
+ };
650
+ workflow: {
651
+ file: string;
652
+ type: "absolute-file";
653
+ };
654
+ model: {
655
+ file: string;
656
+ type: "absolute-file";
657
+ };
658
+ }, {
659
+ ui: string;
660
+ workflow: string;
661
+ model: string;
662
+ }>;
663
+ meta: z.ZodObject<{
664
+ title: z.ZodString;
665
+ description: z.ZodString;
666
+ longDescription: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, {
667
+ type: "explicit-string";
668
+ content: string;
669
+ } | {
670
+ path: string;
671
+ type: "relative";
672
+ }, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
673
+ type: z.ZodLiteral<"explicit-string">;
674
+ content: z.ZodString;
675
+ }, "strict", z.ZodTypeAny, {
676
+ type: "explicit-string";
677
+ content: string;
678
+ }, {
679
+ type: "explicit-string";
680
+ content: string;
681
+ }>, z.ZodObject<{
682
+ type: z.ZodLiteral<"relative">;
683
+ path: z.ZodString;
684
+ }, "strict", z.ZodTypeAny, {
685
+ path: string;
686
+ type: "relative";
687
+ }, {
688
+ path: string;
689
+ type: "relative";
690
+ }>, z.ZodObject<{
691
+ type: z.ZodLiteral<"absolute-file">;
692
+ file: z.ZodString;
693
+ }, "strict", z.ZodTypeAny, {
694
+ file: string;
695
+ type: "absolute-file";
696
+ }, {
697
+ file: string;
698
+ type: "absolute-file";
699
+ }>]>]>, {
700
+ type: "explicit-string";
701
+ content: string;
702
+ } | {
703
+ file: string;
704
+ type: "absolute-file";
705
+ }, string | {
706
+ type: "explicit-string";
707
+ content: string;
708
+ } | {
709
+ path: string;
710
+ type: "relative";
711
+ } | {
712
+ file: string;
713
+ type: "absolute-file";
714
+ }>>;
715
+ logo: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, {
716
+ type: "explicit-base64";
717
+ content: string;
718
+ mimeType: string;
719
+ } | {
720
+ path: string;
721
+ type: "relative";
722
+ }, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
723
+ type: z.ZodLiteral<"explicit-base64">;
724
+ mimeType: z.ZodString;
725
+ content: z.ZodString;
726
+ }, "strict", z.ZodTypeAny, {
727
+ type: "explicit-base64";
728
+ content: string;
729
+ mimeType: string;
730
+ }, {
731
+ type: "explicit-base64";
732
+ content: string;
733
+ mimeType: string;
734
+ }>, z.ZodObject<{
735
+ type: z.ZodLiteral<"relative">;
736
+ path: z.ZodString;
737
+ }, "strict", z.ZodTypeAny, {
738
+ path: string;
739
+ type: "relative";
740
+ }, {
741
+ path: string;
742
+ type: "relative";
743
+ }>, z.ZodObject<{
744
+ type: z.ZodLiteral<"absolute-file">;
745
+ file: z.ZodString;
746
+ }, "strict", z.ZodTypeAny, {
747
+ file: string;
748
+ type: "absolute-file";
749
+ }, {
750
+ file: string;
751
+ type: "absolute-file";
752
+ }>]>]>, {
753
+ type: "explicit-base64";
754
+ content: string;
755
+ mimeType: string;
756
+ } | {
757
+ file: string;
758
+ type: "absolute-file";
759
+ }, string | {
760
+ type: "explicit-base64";
761
+ content: string;
762
+ mimeType: string;
763
+ } | {
764
+ path: string;
765
+ type: "relative";
766
+ } | {
767
+ file: string;
768
+ type: "absolute-file";
769
+ }>>;
770
+ url: z.ZodOptional<z.ZodString>;
771
+ docs: z.ZodOptional<z.ZodString>;
772
+ support: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
773
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
774
+ organization: z.ZodObject<{
775
+ name: z.ZodString;
776
+ url: z.ZodString;
777
+ logo: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, {
778
+ type: "explicit-base64";
779
+ content: string;
780
+ mimeType: string;
781
+ } | {
782
+ path: string;
783
+ type: "relative";
784
+ }, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
785
+ type: z.ZodLiteral<"explicit-base64">;
786
+ mimeType: z.ZodString;
787
+ content: z.ZodString;
788
+ }, "strict", z.ZodTypeAny, {
789
+ type: "explicit-base64";
790
+ content: string;
791
+ mimeType: string;
792
+ }, {
793
+ type: "explicit-base64";
794
+ content: string;
795
+ mimeType: string;
796
+ }>, z.ZodObject<{
797
+ type: z.ZodLiteral<"relative">;
798
+ path: z.ZodString;
799
+ }, "strict", z.ZodTypeAny, {
800
+ path: string;
801
+ type: "relative";
802
+ }, {
803
+ path: string;
804
+ type: "relative";
805
+ }>, z.ZodObject<{
806
+ type: z.ZodLiteral<"absolute-file">;
807
+ file: z.ZodString;
808
+ }, "strict", z.ZodTypeAny, {
809
+ file: string;
810
+ type: "absolute-file";
811
+ }, {
812
+ file: string;
813
+ type: "absolute-file";
814
+ }>]>]>, {
815
+ type: "explicit-base64";
816
+ content: string;
817
+ mimeType: string;
818
+ } | {
819
+ file: string;
820
+ type: "absolute-file";
821
+ }, string | {
822
+ type: "explicit-base64";
823
+ content: string;
824
+ mimeType: string;
825
+ } | {
826
+ path: string;
827
+ type: "relative";
828
+ } | {
829
+ file: string;
830
+ type: "absolute-file";
831
+ }>>;
832
+ }, "strip", z.ZodTypeAny, {
833
+ name: string;
834
+ url: string;
835
+ logo?: {
836
+ type: "explicit-base64";
837
+ content: string;
838
+ mimeType: string;
839
+ } | {
840
+ file: string;
841
+ type: "absolute-file";
842
+ } | undefined;
843
+ }, {
844
+ name: string;
845
+ url: string;
846
+ logo?: string | {
847
+ type: "explicit-base64";
848
+ content: string;
849
+ mimeType: string;
850
+ } | {
851
+ path: string;
852
+ type: "relative";
853
+ } | {
854
+ file: string;
855
+ type: "absolute-file";
856
+ } | undefined;
857
+ }>;
858
+ }, "strip", z.ZodTypeAny, {
859
+ organization: {
860
+ name: string;
861
+ url: string;
862
+ logo?: {
863
+ type: "explicit-base64";
864
+ content: string;
865
+ mimeType: string;
866
+ } | {
867
+ file: string;
868
+ type: "absolute-file";
869
+ } | undefined;
870
+ };
871
+ title: string;
872
+ description: string;
873
+ url?: string | undefined;
874
+ longDescription?: {
875
+ type: "explicit-string";
876
+ content: string;
877
+ } | {
878
+ file: string;
879
+ type: "absolute-file";
880
+ } | undefined;
881
+ logo?: {
882
+ type: "explicit-base64";
883
+ content: string;
884
+ mimeType: string;
885
+ } | {
886
+ file: string;
887
+ type: "absolute-file";
888
+ } | undefined;
889
+ docs?: string | undefined;
890
+ support?: string | undefined;
891
+ tags?: string[] | undefined;
892
+ }, {
893
+ organization: {
894
+ name: string;
895
+ url: string;
896
+ logo?: string | {
897
+ type: "explicit-base64";
898
+ content: string;
899
+ mimeType: string;
900
+ } | {
901
+ path: string;
902
+ type: "relative";
903
+ } | {
904
+ file: string;
905
+ type: "absolute-file";
906
+ } | undefined;
907
+ };
908
+ title: string;
909
+ description: string;
910
+ url?: string | undefined;
911
+ longDescription?: string | {
912
+ type: "explicit-string";
913
+ content: string;
914
+ } | {
915
+ path: string;
916
+ type: "relative";
917
+ } | {
918
+ file: string;
919
+ type: "absolute-file";
920
+ } | undefined;
921
+ logo?: string | {
922
+ type: "explicit-base64";
923
+ content: string;
924
+ mimeType: string;
925
+ } | {
926
+ path: string;
927
+ type: "relative";
928
+ } | {
929
+ file: string;
930
+ type: "absolute-file";
931
+ } | undefined;
932
+ docs?: string | undefined;
933
+ support?: string | undefined;
934
+ tags?: string[] | undefined;
935
+ }>;
936
+ }, "strip", z.ZodTypeAny, {
937
+ components: {
938
+ ui: {
939
+ type: "absolute-folder";
940
+ folder: string;
941
+ };
942
+ workflow: {
943
+ file: string;
944
+ type: "absolute-file";
945
+ };
946
+ model: {
947
+ file: string;
948
+ type: "absolute-file";
949
+ };
950
+ };
951
+ meta: {
952
+ organization: {
953
+ name: string;
954
+ url: string;
955
+ logo?: {
956
+ type: "explicit-base64";
957
+ content: string;
958
+ mimeType: string;
959
+ } | {
960
+ file: string;
961
+ type: "absolute-file";
962
+ } | undefined;
963
+ };
964
+ title: string;
965
+ description: string;
966
+ url?: string | undefined;
967
+ longDescription?: {
968
+ type: "explicit-string";
969
+ content: string;
970
+ } | {
971
+ file: string;
972
+ type: "absolute-file";
973
+ } | undefined;
974
+ logo?: {
975
+ type: "explicit-base64";
976
+ content: string;
977
+ mimeType: string;
978
+ } | {
979
+ file: string;
980
+ type: "absolute-file";
981
+ } | undefined;
982
+ docs?: string | undefined;
983
+ support?: string | undefined;
984
+ tags?: string[] | undefined;
985
+ };
986
+ id: {
987
+ name: string;
988
+ organization: string;
989
+ version: string;
990
+ };
991
+ }, {
992
+ components: {
993
+ ui: string;
994
+ workflow: string;
995
+ model: string;
996
+ };
997
+ meta: {
998
+ organization: {
999
+ name: string;
1000
+ url: string;
1001
+ logo?: string | {
1002
+ type: "explicit-base64";
1003
+ content: string;
1004
+ mimeType: string;
1005
+ } | {
1006
+ path: string;
1007
+ type: "relative";
1008
+ } | {
1009
+ file: string;
1010
+ type: "absolute-file";
1011
+ } | undefined;
1012
+ };
1013
+ title: string;
1014
+ description: string;
1015
+ url?: string | undefined;
1016
+ longDescription?: string | {
1017
+ type: "explicit-string";
1018
+ content: string;
1019
+ } | {
1020
+ path: string;
1021
+ type: "relative";
1022
+ } | {
1023
+ file: string;
1024
+ type: "absolute-file";
1025
+ } | undefined;
1026
+ logo?: string | {
1027
+ type: "explicit-base64";
1028
+ content: string;
1029
+ mimeType: string;
1030
+ } | {
1031
+ path: string;
1032
+ type: "relative";
1033
+ } | {
1034
+ file: string;
1035
+ type: "absolute-file";
1036
+ } | undefined;
1037
+ docs?: string | undefined;
1038
+ support?: string | undefined;
1039
+ tags?: string[] | undefined;
1040
+ };
1041
+ id: {
1042
+ name: string;
1043
+ organization: string;
1044
+ version: string;
1045
+ };
1046
+ }>;
1047
+ type BlockPackDescriptionAbsolute = z.infer<ReturnType<typeof ResolvedBlockPackDescriptionFromPackageJson>>;
1048
+ declare function BlockPackDescriptionConsolidateToFolder(dstFolder: string, fileAccumulator?: string[]): z.ZodPipeline<z.ZodObject<{
1049
+ id: z.ZodObject<{
1050
+ organization: z.ZodString;
1051
+ name: z.ZodString;
1052
+ version: z.ZodString;
1053
+ }, "strict", z.ZodTypeAny, {
1054
+ name: string;
1055
+ organization: string;
1056
+ version: string;
1057
+ }, {
1058
+ name: string;
1059
+ organization: string;
1060
+ version: string;
1061
+ }>;
1062
+ components: z.ZodPipeline<z.ZodObject<{
1063
+ workflow: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1064
+ type: z.ZodLiteral<"explicit-base64">;
1065
+ mimeType: z.ZodString;
1066
+ content: z.ZodString;
1067
+ }, "strict", z.ZodTypeAny, {
1068
+ type: "explicit-base64";
1069
+ content: string;
1070
+ mimeType: string;
1071
+ }, {
1072
+ type: "explicit-base64";
1073
+ content: string;
1074
+ mimeType: string;
1075
+ }>, z.ZodObject<{
1076
+ type: z.ZodLiteral<"absolute-file">;
1077
+ file: z.ZodString;
1078
+ }, "strict", z.ZodTypeAny, {
1079
+ file: string;
1080
+ type: "absolute-file";
1081
+ }, {
1082
+ file: string;
1083
+ type: "absolute-file";
1084
+ }>]>, {
1085
+ type: "explicit-base64";
1086
+ content: string;
1087
+ mimeType: string;
1088
+ } | {
1089
+ path: string;
1090
+ type: "relative";
1091
+ }, {
1092
+ type: "explicit-base64";
1093
+ content: string;
1094
+ mimeType: string;
1095
+ } | {
1096
+ file: string;
1097
+ type: "absolute-file";
1098
+ }>;
1099
+ model: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1100
+ type: z.ZodLiteral<"explicit-base64">;
1101
+ mimeType: z.ZodString;
1102
+ content: z.ZodString;
1103
+ }, "strict", z.ZodTypeAny, {
1104
+ type: "explicit-base64";
1105
+ content: string;
1106
+ mimeType: string;
1107
+ }, {
1108
+ type: "explicit-base64";
1109
+ content: string;
1110
+ mimeType: string;
1111
+ }>, z.ZodObject<{
1112
+ type: z.ZodLiteral<"absolute-file">;
1113
+ file: z.ZodString;
1114
+ }, "strict", z.ZodTypeAny, {
1115
+ file: string;
1116
+ type: "absolute-file";
1117
+ }, {
1118
+ file: string;
1119
+ type: "absolute-file";
1120
+ }>]>, {
1121
+ type: "explicit-base64";
1122
+ content: string;
1123
+ mimeType: string;
1124
+ } | {
1125
+ path: string;
1126
+ type: "relative";
1127
+ }, {
1128
+ type: "explicit-base64";
1129
+ content: string;
1130
+ mimeType: string;
1131
+ } | {
1132
+ file: string;
1133
+ type: "absolute-file";
1134
+ }>;
1135
+ ui: z.ZodEffects<z.ZodObject<{
1136
+ type: z.ZodLiteral<"absolute-folder">;
1137
+ folder: z.ZodString;
1138
+ }, "strict", z.ZodTypeAny, {
1139
+ type: "absolute-folder";
1140
+ folder: string;
1141
+ }, {
1142
+ type: "absolute-folder";
1143
+ folder: string;
1144
+ }>, {
1145
+ path: string;
1146
+ type: "relative";
1147
+ }, {
1148
+ type: "absolute-folder";
1149
+ folder: string;
1150
+ }>;
1151
+ }, "strip", z.ZodTypeAny, {
1152
+ ui: {
1153
+ path: string;
1154
+ type: "relative";
1155
+ };
1156
+ workflow: {
1157
+ type: "explicit-base64";
1158
+ content: string;
1159
+ mimeType: string;
1160
+ } | {
1161
+ path: string;
1162
+ type: "relative";
1163
+ };
1164
+ model: {
1165
+ type: "explicit-base64";
1166
+ content: string;
1167
+ mimeType: string;
1168
+ } | {
1169
+ path: string;
1170
+ type: "relative";
1171
+ };
1172
+ }, {
1173
+ ui: {
1174
+ type: "absolute-folder";
1175
+ folder: string;
1176
+ };
1177
+ workflow: {
1178
+ type: "explicit-base64";
1179
+ content: string;
1180
+ mimeType: string;
1181
+ } | {
1182
+ file: string;
1183
+ type: "absolute-file";
1184
+ };
1185
+ model: {
1186
+ type: "explicit-base64";
1187
+ content: string;
1188
+ mimeType: string;
1189
+ } | {
1190
+ file: string;
1191
+ type: "absolute-file";
1192
+ };
1193
+ }>, z.ZodObject<{
1194
+ workflow: z.ZodObject<{
1195
+ type: z.ZodLiteral<"relative">;
1196
+ path: z.ZodString;
1197
+ }, "strict", z.ZodTypeAny, {
1198
+ path: string;
1199
+ type: "relative";
1200
+ }, {
1201
+ path: string;
1202
+ type: "relative";
1203
+ }>;
1204
+ model: z.ZodObject<{
1205
+ type: z.ZodLiteral<"relative">;
1206
+ path: z.ZodString;
1207
+ }, "strict", z.ZodTypeAny, {
1208
+ path: string;
1209
+ type: "relative";
1210
+ }, {
1211
+ path: string;
1212
+ type: "relative";
1213
+ }>;
1214
+ ui: z.ZodObject<{
1215
+ type: z.ZodLiteral<"relative">;
1216
+ path: z.ZodString;
1217
+ }, "strict", z.ZodTypeAny, {
1218
+ path: string;
1219
+ type: "relative";
1220
+ }, {
1221
+ path: string;
1222
+ type: "relative";
1223
+ }>;
1224
+ }, "strip", z.ZodTypeAny, {
1225
+ ui: {
1226
+ path: string;
1227
+ type: "relative";
1228
+ };
1229
+ workflow: {
1230
+ path: string;
1231
+ type: "relative";
1232
+ };
1233
+ model: {
1234
+ path: string;
1235
+ type: "relative";
1236
+ };
1237
+ }, {
1238
+ ui: {
1239
+ path: string;
1240
+ type: "relative";
1241
+ };
1242
+ workflow: {
1243
+ path: string;
1244
+ type: "relative";
1245
+ };
1246
+ model: {
1247
+ path: string;
1248
+ type: "relative";
1249
+ };
1250
+ }>>;
1251
+ meta: z.ZodObject<{
1252
+ title: z.ZodString;
1253
+ description: z.ZodString;
1254
+ longDescription: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1255
+ type: z.ZodLiteral<"explicit-string">;
1256
+ content: z.ZodString;
1257
+ }, "strict", z.ZodTypeAny, {
1258
+ type: "explicit-string";
1259
+ content: string;
1260
+ }, {
1261
+ type: "explicit-string";
1262
+ content: string;
1263
+ }>, z.ZodObject<{
1264
+ type: z.ZodLiteral<"absolute-file">;
1265
+ file: z.ZodString;
1266
+ }, "strict", z.ZodTypeAny, {
1267
+ file: string;
1268
+ type: "absolute-file";
1269
+ }, {
1270
+ file: string;
1271
+ type: "absolute-file";
1272
+ }>]>, {
1273
+ type: "explicit-string";
1274
+ content: string;
1275
+ } | {
1276
+ path: string;
1277
+ type: "relative";
1278
+ }, {
1279
+ type: "explicit-string";
1280
+ content: string;
1281
+ } | {
1282
+ file: string;
1283
+ type: "absolute-file";
1284
+ }>>;
1285
+ logo: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1286
+ type: z.ZodLiteral<"explicit-base64">;
1287
+ mimeType: z.ZodString;
1288
+ content: z.ZodString;
1289
+ }, "strict", z.ZodTypeAny, {
1290
+ type: "explicit-base64";
1291
+ content: string;
1292
+ mimeType: string;
1293
+ }, {
1294
+ type: "explicit-base64";
1295
+ content: string;
1296
+ mimeType: string;
1297
+ }>, z.ZodObject<{
1298
+ type: z.ZodLiteral<"absolute-file">;
1299
+ file: z.ZodString;
1300
+ }, "strict", z.ZodTypeAny, {
1301
+ file: string;
1302
+ type: "absolute-file";
1303
+ }, {
1304
+ file: string;
1305
+ type: "absolute-file";
1306
+ }>]>, {
1307
+ type: "explicit-base64";
1308
+ content: string;
1309
+ mimeType: string;
1310
+ } | {
1311
+ path: string;
1312
+ type: "relative";
1313
+ }, {
1314
+ type: "explicit-base64";
1315
+ content: string;
1316
+ mimeType: string;
1317
+ } | {
1318
+ file: string;
1319
+ type: "absolute-file";
1320
+ }>>;
1321
+ url: z.ZodOptional<z.ZodString>;
1322
+ docs: z.ZodOptional<z.ZodString>;
1323
+ support: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1324
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1325
+ organization: z.ZodObject<{
1326
+ name: z.ZodString;
1327
+ url: z.ZodString;
1328
+ logo: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1329
+ type: z.ZodLiteral<"explicit-base64">;
1330
+ mimeType: z.ZodString;
1331
+ content: z.ZodString;
1332
+ }, "strict", z.ZodTypeAny, {
1333
+ type: "explicit-base64";
1334
+ content: string;
1335
+ mimeType: string;
1336
+ }, {
1337
+ type: "explicit-base64";
1338
+ content: string;
1339
+ mimeType: string;
1340
+ }>, z.ZodObject<{
1341
+ type: z.ZodLiteral<"absolute-file">;
1342
+ file: z.ZodString;
1343
+ }, "strict", z.ZodTypeAny, {
1344
+ file: string;
1345
+ type: "absolute-file";
1346
+ }, {
1347
+ file: string;
1348
+ type: "absolute-file";
1349
+ }>]>, {
1350
+ type: "explicit-base64";
1351
+ content: string;
1352
+ mimeType: string;
1353
+ } | {
1354
+ path: string;
1355
+ type: "relative";
1356
+ }, {
1357
+ type: "explicit-base64";
1358
+ content: string;
1359
+ mimeType: string;
1360
+ } | {
1361
+ file: string;
1362
+ type: "absolute-file";
1363
+ }>>;
1364
+ }, "strip", z.ZodTypeAny, {
1365
+ name: string;
1366
+ url: string;
1367
+ logo?: {
1368
+ type: "explicit-base64";
1369
+ content: string;
1370
+ mimeType: string;
1371
+ } | {
1372
+ path: string;
1373
+ type: "relative";
1374
+ } | undefined;
1375
+ }, {
1376
+ name: string;
1377
+ url: string;
1378
+ logo?: {
1379
+ type: "explicit-base64";
1380
+ content: string;
1381
+ mimeType: string;
1382
+ } | {
1383
+ file: string;
1384
+ type: "absolute-file";
1385
+ } | undefined;
1386
+ }>;
1387
+ }, "strip", z.ZodTypeAny, {
1388
+ organization: {
1389
+ name: string;
1390
+ url: string;
1391
+ logo?: {
1392
+ type: "explicit-base64";
1393
+ content: string;
1394
+ mimeType: string;
1395
+ } | {
1396
+ path: string;
1397
+ type: "relative";
1398
+ } | undefined;
1399
+ };
1400
+ title: string;
1401
+ description: string;
1402
+ url?: string | undefined;
1403
+ longDescription?: {
1404
+ type: "explicit-string";
1405
+ content: string;
1406
+ } | {
1407
+ path: string;
1408
+ type: "relative";
1409
+ } | undefined;
1410
+ logo?: {
1411
+ type: "explicit-base64";
1412
+ content: string;
1413
+ mimeType: string;
1414
+ } | {
1415
+ path: string;
1416
+ type: "relative";
1417
+ } | undefined;
1418
+ docs?: string | undefined;
1419
+ support?: string | undefined;
1420
+ tags?: string[] | undefined;
1421
+ }, {
1422
+ organization: {
1423
+ name: string;
1424
+ url: string;
1425
+ logo?: {
1426
+ type: "explicit-base64";
1427
+ content: string;
1428
+ mimeType: string;
1429
+ } | {
1430
+ file: string;
1431
+ type: "absolute-file";
1432
+ } | undefined;
1433
+ };
1434
+ title: string;
1435
+ description: string;
1436
+ url?: string | undefined;
1437
+ longDescription?: {
1438
+ type: "explicit-string";
1439
+ content: string;
1440
+ } | {
1441
+ file: string;
1442
+ type: "absolute-file";
1443
+ } | undefined;
1444
+ logo?: {
1445
+ type: "explicit-base64";
1446
+ content: string;
1447
+ mimeType: string;
1448
+ } | {
1449
+ file: string;
1450
+ type: "absolute-file";
1451
+ } | undefined;
1452
+ docs?: string | undefined;
1453
+ support?: string | undefined;
1454
+ tags?: string[] | undefined;
1455
+ }>;
1456
+ }, "strip", z.ZodTypeAny, {
1457
+ components: {
1458
+ ui: {
1459
+ path: string;
1460
+ type: "relative";
1461
+ };
1462
+ workflow: {
1463
+ path: string;
1464
+ type: "relative";
1465
+ };
1466
+ model: {
1467
+ path: string;
1468
+ type: "relative";
1469
+ };
1470
+ };
1471
+ meta: {
1472
+ organization: {
1473
+ name: string;
1474
+ url: string;
1475
+ logo?: {
1476
+ type: "explicit-base64";
1477
+ content: string;
1478
+ mimeType: string;
1479
+ } | {
1480
+ path: string;
1481
+ type: "relative";
1482
+ } | undefined;
1483
+ };
1484
+ title: string;
1485
+ description: string;
1486
+ url?: string | undefined;
1487
+ longDescription?: {
1488
+ type: "explicit-string";
1489
+ content: string;
1490
+ } | {
1491
+ path: string;
1492
+ type: "relative";
1493
+ } | undefined;
1494
+ logo?: {
1495
+ type: "explicit-base64";
1496
+ content: string;
1497
+ mimeType: string;
1498
+ } | {
1499
+ path: string;
1500
+ type: "relative";
1501
+ } | undefined;
1502
+ docs?: string | undefined;
1503
+ support?: string | undefined;
1504
+ tags?: string[] | undefined;
1505
+ };
1506
+ id: {
1507
+ name: string;
1508
+ organization: string;
1509
+ version: string;
1510
+ };
1511
+ }, {
1512
+ components: {
1513
+ ui: {
1514
+ type: "absolute-folder";
1515
+ folder: string;
1516
+ };
1517
+ workflow: {
1518
+ type: "explicit-base64";
1519
+ content: string;
1520
+ mimeType: string;
1521
+ } | {
1522
+ file: string;
1523
+ type: "absolute-file";
1524
+ };
1525
+ model: {
1526
+ type: "explicit-base64";
1527
+ content: string;
1528
+ mimeType: string;
1529
+ } | {
1530
+ file: string;
1531
+ type: "absolute-file";
1532
+ };
1533
+ };
1534
+ meta: {
1535
+ organization: {
1536
+ name: string;
1537
+ url: string;
1538
+ logo?: {
1539
+ type: "explicit-base64";
1540
+ content: string;
1541
+ mimeType: string;
1542
+ } | {
1543
+ file: string;
1544
+ type: "absolute-file";
1545
+ } | undefined;
1546
+ };
1547
+ title: string;
1548
+ description: string;
1549
+ url?: string | undefined;
1550
+ longDescription?: {
1551
+ type: "explicit-string";
1552
+ content: string;
1553
+ } | {
1554
+ file: string;
1555
+ type: "absolute-file";
1556
+ } | undefined;
1557
+ logo?: {
1558
+ type: "explicit-base64";
1559
+ content: string;
1560
+ mimeType: string;
1561
+ } | {
1562
+ file: string;
1563
+ type: "absolute-file";
1564
+ } | undefined;
1565
+ docs?: string | undefined;
1566
+ support?: string | undefined;
1567
+ tags?: string[] | undefined;
1568
+ };
1569
+ id: {
1570
+ name: string;
1571
+ organization: string;
1572
+ version: string;
1573
+ };
1574
+ }>, z.ZodObject<{
1575
+ id: z.ZodObject<{
1576
+ organization: z.ZodString;
1577
+ name: z.ZodString;
1578
+ version: z.ZodString;
1579
+ }, "strict", z.ZodTypeAny, {
1580
+ name: string;
1581
+ organization: string;
1582
+ version: string;
1583
+ }, {
1584
+ name: string;
1585
+ organization: string;
1586
+ version: string;
1587
+ }>;
1588
+ components: z.ZodObject<{
1589
+ workflow: z.ZodObject<{
1590
+ type: z.ZodLiteral<"relative">;
1591
+ path: z.ZodString;
1592
+ }, "strict", z.ZodTypeAny, {
1593
+ path: string;
1594
+ type: "relative";
1595
+ }, {
1596
+ path: string;
1597
+ type: "relative";
1598
+ }>;
1599
+ model: z.ZodObject<{
1600
+ type: z.ZodLiteral<"relative">;
1601
+ path: z.ZodString;
1602
+ }, "strict", z.ZodTypeAny, {
1603
+ path: string;
1604
+ type: "relative";
1605
+ }, {
1606
+ path: string;
1607
+ type: "relative";
1608
+ }>;
1609
+ ui: z.ZodObject<{
1610
+ type: z.ZodLiteral<"relative">;
1611
+ path: z.ZodString;
1612
+ }, "strict", z.ZodTypeAny, {
1613
+ path: string;
1614
+ type: "relative";
1615
+ }, {
1616
+ path: string;
1617
+ type: "relative";
1618
+ }>;
1619
+ }, "strip", z.ZodTypeAny, {
1620
+ ui: {
1621
+ path: string;
1622
+ type: "relative";
1623
+ };
1624
+ workflow: {
1625
+ path: string;
1626
+ type: "relative";
1627
+ };
1628
+ model: {
1629
+ path: string;
1630
+ type: "relative";
1631
+ };
1632
+ }, {
1633
+ ui: {
1634
+ path: string;
1635
+ type: "relative";
1636
+ };
1637
+ workflow: {
1638
+ path: string;
1639
+ type: "relative";
1640
+ };
1641
+ model: {
1642
+ path: string;
1643
+ type: "relative";
1644
+ };
1645
+ }>;
1646
+ meta: z.ZodObject<{
1647
+ title: z.ZodString;
1648
+ description: z.ZodString;
1649
+ longDescription: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1650
+ type: z.ZodLiteral<"explicit-string">;
1651
+ content: z.ZodString;
1652
+ }, "strict", z.ZodTypeAny, {
1653
+ type: "explicit-string";
1654
+ content: string;
1655
+ }, {
1656
+ type: "explicit-string";
1657
+ content: string;
1658
+ }>, z.ZodObject<{
1659
+ type: z.ZodLiteral<"relative">;
1660
+ path: z.ZodString;
1661
+ }, "strict", z.ZodTypeAny, {
1662
+ path: string;
1663
+ type: "relative";
1664
+ }, {
1665
+ path: string;
1666
+ type: "relative";
1667
+ }>]>>;
1668
+ logo: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1669
+ type: z.ZodLiteral<"explicit-base64">;
1670
+ mimeType: z.ZodString;
1671
+ content: z.ZodString;
1672
+ }, "strict", z.ZodTypeAny, {
1673
+ type: "explicit-base64";
1674
+ content: string;
1675
+ mimeType: string;
1676
+ }, {
1677
+ type: "explicit-base64";
1678
+ content: string;
1679
+ mimeType: string;
1680
+ }>, z.ZodObject<{
1681
+ type: z.ZodLiteral<"relative">;
1682
+ path: z.ZodString;
1683
+ }, "strict", z.ZodTypeAny, {
1684
+ path: string;
1685
+ type: "relative";
1686
+ }, {
1687
+ path: string;
1688
+ type: "relative";
1689
+ }>]>>;
1690
+ url: z.ZodOptional<z.ZodString>;
1691
+ docs: z.ZodOptional<z.ZodString>;
1692
+ support: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1693
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1694
+ organization: z.ZodObject<{
1695
+ name: z.ZodString;
1696
+ url: z.ZodString;
1697
+ logo: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1698
+ type: z.ZodLiteral<"explicit-base64">;
1699
+ mimeType: z.ZodString;
1700
+ content: z.ZodString;
1701
+ }, "strict", z.ZodTypeAny, {
1702
+ type: "explicit-base64";
1703
+ content: string;
1704
+ mimeType: string;
1705
+ }, {
1706
+ type: "explicit-base64";
1707
+ content: string;
1708
+ mimeType: string;
1709
+ }>, z.ZodObject<{
1710
+ type: z.ZodLiteral<"relative">;
1711
+ path: z.ZodString;
1712
+ }, "strict", z.ZodTypeAny, {
1713
+ path: string;
1714
+ type: "relative";
1715
+ }, {
1716
+ path: string;
1717
+ type: "relative";
1718
+ }>]>>;
1719
+ }, "strip", z.ZodTypeAny, {
1720
+ name: string;
1721
+ url: string;
1722
+ logo?: {
1723
+ type: "explicit-base64";
1724
+ content: string;
1725
+ mimeType: string;
1726
+ } | {
1727
+ path: string;
1728
+ type: "relative";
1729
+ } | undefined;
1730
+ }, {
1731
+ name: string;
1732
+ url: string;
1733
+ logo?: {
1734
+ type: "explicit-base64";
1735
+ content: string;
1736
+ mimeType: string;
1737
+ } | {
1738
+ path: string;
1739
+ type: "relative";
1740
+ } | undefined;
1741
+ }>;
1742
+ }, "strip", z.ZodTypeAny, {
1743
+ organization: {
1744
+ name: string;
1745
+ url: string;
1746
+ logo?: {
1747
+ type: "explicit-base64";
1748
+ content: string;
1749
+ mimeType: string;
1750
+ } | {
1751
+ path: string;
1752
+ type: "relative";
1753
+ } | undefined;
1754
+ };
1755
+ title: string;
1756
+ description: string;
1757
+ url?: string | undefined;
1758
+ longDescription?: {
1759
+ type: "explicit-string";
1760
+ content: string;
1761
+ } | {
1762
+ path: string;
1763
+ type: "relative";
1764
+ } | undefined;
1765
+ logo?: {
1766
+ type: "explicit-base64";
1767
+ content: string;
1768
+ mimeType: string;
1769
+ } | {
1770
+ path: string;
1771
+ type: "relative";
1772
+ } | undefined;
1773
+ docs?: string | undefined;
1774
+ support?: string | undefined;
1775
+ tags?: string[] | undefined;
1776
+ }, {
1777
+ organization: {
1778
+ name: string;
1779
+ url: string;
1780
+ logo?: {
1781
+ type: "explicit-base64";
1782
+ content: string;
1783
+ mimeType: string;
1784
+ } | {
1785
+ path: string;
1786
+ type: "relative";
1787
+ } | undefined;
1788
+ };
1789
+ title: string;
1790
+ description: string;
1791
+ url?: string | undefined;
1792
+ longDescription?: {
1793
+ type: "explicit-string";
1794
+ content: string;
1795
+ } | {
1796
+ path: string;
1797
+ type: "relative";
1798
+ } | undefined;
1799
+ logo?: {
1800
+ type: "explicit-base64";
1801
+ content: string;
1802
+ mimeType: string;
1803
+ } | {
1804
+ path: string;
1805
+ type: "relative";
1806
+ } | undefined;
1807
+ docs?: string | undefined;
1808
+ support?: string | undefined;
1809
+ tags?: string[] | undefined;
1810
+ }>;
1811
+ }, "strip", z.ZodTypeAny, {
1812
+ components: {
1813
+ ui: {
1814
+ path: string;
1815
+ type: "relative";
1816
+ };
1817
+ workflow: {
1818
+ path: string;
1819
+ type: "relative";
1820
+ };
1821
+ model: {
1822
+ path: string;
1823
+ type: "relative";
1824
+ };
1825
+ };
1826
+ meta: {
1827
+ organization: {
1828
+ name: string;
1829
+ url: string;
1830
+ logo?: {
1831
+ type: "explicit-base64";
1832
+ content: string;
1833
+ mimeType: string;
1834
+ } | {
1835
+ path: string;
1836
+ type: "relative";
1837
+ } | undefined;
1838
+ };
1839
+ title: string;
1840
+ description: string;
1841
+ url?: string | undefined;
1842
+ longDescription?: {
1843
+ type: "explicit-string";
1844
+ content: string;
1845
+ } | {
1846
+ path: string;
1847
+ type: "relative";
1848
+ } | undefined;
1849
+ logo?: {
1850
+ type: "explicit-base64";
1851
+ content: string;
1852
+ mimeType: string;
1853
+ } | {
1854
+ path: string;
1855
+ type: "relative";
1856
+ } | undefined;
1857
+ docs?: string | undefined;
1858
+ support?: string | undefined;
1859
+ tags?: string[] | undefined;
1860
+ };
1861
+ id: {
1862
+ name: string;
1863
+ organization: string;
1864
+ version: string;
1865
+ };
1866
+ }, {
1867
+ components: {
1868
+ ui: {
1869
+ path: string;
1870
+ type: "relative";
1871
+ };
1872
+ workflow: {
1873
+ path: string;
1874
+ type: "relative";
1875
+ };
1876
+ model: {
1877
+ path: string;
1878
+ type: "relative";
1879
+ };
1880
+ };
1881
+ meta: {
1882
+ organization: {
1883
+ name: string;
1884
+ url: string;
1885
+ logo?: {
1886
+ type: "explicit-base64";
1887
+ content: string;
1888
+ mimeType: string;
1889
+ } | {
1890
+ path: string;
1891
+ type: "relative";
1892
+ } | undefined;
1893
+ };
1894
+ title: string;
1895
+ description: string;
1896
+ url?: string | undefined;
1897
+ longDescription?: {
1898
+ type: "explicit-string";
1899
+ content: string;
1900
+ } | {
1901
+ path: string;
1902
+ type: "relative";
1903
+ } | undefined;
1904
+ logo?: {
1905
+ type: "explicit-base64";
1906
+ content: string;
1907
+ mimeType: string;
1908
+ } | {
1909
+ path: string;
1910
+ type: "relative";
1911
+ } | undefined;
1912
+ docs?: string | undefined;
1913
+ support?: string | undefined;
1914
+ tags?: string[] | undefined;
1915
+ };
1916
+ id: {
1917
+ name: string;
1918
+ organization: string;
1919
+ version: string;
1920
+ };
1921
+ }>>;
1922
+ declare const BlockPackDescriptionManifest: z.ZodObject<{
1923
+ id: z.ZodObject<{
1924
+ organization: z.ZodString;
1925
+ name: z.ZodString;
1926
+ version: z.ZodString;
1927
+ }, "strict", z.ZodTypeAny, {
1928
+ name: string;
1929
+ organization: string;
1930
+ version: string;
1931
+ }, {
1932
+ name: string;
1933
+ organization: string;
1934
+ version: string;
1935
+ }>;
1936
+ components: z.ZodObject<{
1937
+ workflow: z.ZodObject<{
1938
+ type: z.ZodLiteral<"relative">;
1939
+ path: z.ZodString;
1940
+ }, "strict", z.ZodTypeAny, {
1941
+ path: string;
1942
+ type: "relative";
1943
+ }, {
1944
+ path: string;
1945
+ type: "relative";
1946
+ }>;
1947
+ model: z.ZodObject<{
1948
+ type: z.ZodLiteral<"relative">;
1949
+ path: z.ZodString;
1950
+ }, "strict", z.ZodTypeAny, {
1951
+ path: string;
1952
+ type: "relative";
1953
+ }, {
1954
+ path: string;
1955
+ type: "relative";
1956
+ }>;
1957
+ ui: z.ZodObject<{
1958
+ type: z.ZodLiteral<"relative">;
1959
+ path: z.ZodString;
1960
+ }, "strict", z.ZodTypeAny, {
1961
+ path: string;
1962
+ type: "relative";
1963
+ }, {
1964
+ path: string;
1965
+ type: "relative";
1966
+ }>;
1967
+ }, "strip", z.ZodTypeAny, {
1968
+ ui: {
1969
+ path: string;
1970
+ type: "relative";
1971
+ };
1972
+ workflow: {
1973
+ path: string;
1974
+ type: "relative";
1975
+ };
1976
+ model: {
1977
+ path: string;
1978
+ type: "relative";
1979
+ };
1980
+ }, {
1981
+ ui: {
1982
+ path: string;
1983
+ type: "relative";
1984
+ };
1985
+ workflow: {
1986
+ path: string;
1987
+ type: "relative";
1988
+ };
1989
+ model: {
1990
+ path: string;
1991
+ type: "relative";
1992
+ };
1993
+ }>;
1994
+ meta: z.ZodObject<{
1995
+ title: z.ZodString;
1996
+ description: z.ZodString;
1997
+ longDescription: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1998
+ type: z.ZodLiteral<"explicit-string">;
1999
+ content: z.ZodString;
2000
+ }, "strict", z.ZodTypeAny, {
2001
+ type: "explicit-string";
2002
+ content: string;
2003
+ }, {
2004
+ type: "explicit-string";
2005
+ content: string;
2006
+ }>, z.ZodObject<{
2007
+ type: z.ZodLiteral<"relative">;
2008
+ path: z.ZodString;
2009
+ }, "strict", z.ZodTypeAny, {
2010
+ path: string;
2011
+ type: "relative";
2012
+ }, {
2013
+ path: string;
2014
+ type: "relative";
2015
+ }>]>>;
2016
+ logo: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2017
+ type: z.ZodLiteral<"explicit-base64">;
2018
+ mimeType: z.ZodString;
2019
+ content: z.ZodString;
2020
+ }, "strict", z.ZodTypeAny, {
2021
+ type: "explicit-base64";
2022
+ content: string;
2023
+ mimeType: string;
2024
+ }, {
2025
+ type: "explicit-base64";
2026
+ content: string;
2027
+ mimeType: string;
2028
+ }>, z.ZodObject<{
2029
+ type: z.ZodLiteral<"relative">;
2030
+ path: z.ZodString;
2031
+ }, "strict", z.ZodTypeAny, {
2032
+ path: string;
2033
+ type: "relative";
2034
+ }, {
2035
+ path: string;
2036
+ type: "relative";
2037
+ }>]>>;
2038
+ url: z.ZodOptional<z.ZodString>;
2039
+ docs: z.ZodOptional<z.ZodString>;
2040
+ support: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
2041
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2042
+ organization: z.ZodObject<{
2043
+ name: z.ZodString;
2044
+ url: z.ZodString;
2045
+ logo: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2046
+ type: z.ZodLiteral<"explicit-base64">;
2047
+ mimeType: z.ZodString;
2048
+ content: z.ZodString;
2049
+ }, "strict", z.ZodTypeAny, {
2050
+ type: "explicit-base64";
2051
+ content: string;
2052
+ mimeType: string;
2053
+ }, {
2054
+ type: "explicit-base64";
2055
+ content: string;
2056
+ mimeType: string;
2057
+ }>, z.ZodObject<{
2058
+ type: z.ZodLiteral<"relative">;
2059
+ path: z.ZodString;
2060
+ }, "strict", z.ZodTypeAny, {
2061
+ path: string;
2062
+ type: "relative";
2063
+ }, {
2064
+ path: string;
2065
+ type: "relative";
2066
+ }>]>>;
2067
+ }, "strip", z.ZodTypeAny, {
2068
+ name: string;
2069
+ url: string;
2070
+ logo?: {
2071
+ type: "explicit-base64";
2072
+ content: string;
2073
+ mimeType: string;
2074
+ } | {
2075
+ path: string;
2076
+ type: "relative";
2077
+ } | undefined;
2078
+ }, {
2079
+ name: string;
2080
+ url: string;
2081
+ logo?: {
2082
+ type: "explicit-base64";
2083
+ content: string;
2084
+ mimeType: string;
2085
+ } | {
2086
+ path: string;
2087
+ type: "relative";
2088
+ } | undefined;
2089
+ }>;
2090
+ }, "strip", z.ZodTypeAny, {
2091
+ organization: {
2092
+ name: string;
2093
+ url: string;
2094
+ logo?: {
2095
+ type: "explicit-base64";
2096
+ content: string;
2097
+ mimeType: string;
2098
+ } | {
2099
+ path: string;
2100
+ type: "relative";
2101
+ } | undefined;
2102
+ };
2103
+ title: string;
2104
+ description: string;
2105
+ url?: string | undefined;
2106
+ longDescription?: {
2107
+ type: "explicit-string";
2108
+ content: string;
2109
+ } | {
2110
+ path: string;
2111
+ type: "relative";
2112
+ } | undefined;
2113
+ logo?: {
2114
+ type: "explicit-base64";
2115
+ content: string;
2116
+ mimeType: string;
2117
+ } | {
2118
+ path: string;
2119
+ type: "relative";
2120
+ } | undefined;
2121
+ docs?: string | undefined;
2122
+ support?: string | undefined;
2123
+ tags?: string[] | undefined;
2124
+ }, {
2125
+ organization: {
2126
+ name: string;
2127
+ url: string;
2128
+ logo?: {
2129
+ type: "explicit-base64";
2130
+ content: string;
2131
+ mimeType: string;
2132
+ } | {
2133
+ path: string;
2134
+ type: "relative";
2135
+ } | undefined;
2136
+ };
2137
+ title: string;
2138
+ description: string;
2139
+ url?: string | undefined;
2140
+ longDescription?: {
2141
+ type: "explicit-string";
2142
+ content: string;
2143
+ } | {
2144
+ path: string;
2145
+ type: "relative";
2146
+ } | undefined;
2147
+ logo?: {
2148
+ type: "explicit-base64";
2149
+ content: string;
2150
+ mimeType: string;
2151
+ } | {
2152
+ path: string;
2153
+ type: "relative";
2154
+ } | undefined;
2155
+ docs?: string | undefined;
2156
+ support?: string | undefined;
2157
+ tags?: string[] | undefined;
2158
+ }>;
2159
+ }, "strip", z.ZodTypeAny, {
2160
+ components: {
2161
+ ui: {
2162
+ path: string;
2163
+ type: "relative";
2164
+ };
2165
+ workflow: {
2166
+ path: string;
2167
+ type: "relative";
2168
+ };
2169
+ model: {
2170
+ path: string;
2171
+ type: "relative";
2172
+ };
2173
+ };
2174
+ meta: {
2175
+ organization: {
2176
+ name: string;
2177
+ url: string;
2178
+ logo?: {
2179
+ type: "explicit-base64";
2180
+ content: string;
2181
+ mimeType: string;
2182
+ } | {
2183
+ path: string;
2184
+ type: "relative";
2185
+ } | undefined;
2186
+ };
2187
+ title: string;
2188
+ description: string;
2189
+ url?: string | undefined;
2190
+ longDescription?: {
2191
+ type: "explicit-string";
2192
+ content: string;
2193
+ } | {
2194
+ path: string;
2195
+ type: "relative";
2196
+ } | undefined;
2197
+ logo?: {
2198
+ type: "explicit-base64";
2199
+ content: string;
2200
+ mimeType: string;
2201
+ } | {
2202
+ path: string;
2203
+ type: "relative";
2204
+ } | undefined;
2205
+ docs?: string | undefined;
2206
+ support?: string | undefined;
2207
+ tags?: string[] | undefined;
2208
+ };
2209
+ id: {
2210
+ name: string;
2211
+ organization: string;
2212
+ version: string;
2213
+ };
2214
+ }, {
2215
+ components: {
2216
+ ui: {
2217
+ path: string;
2218
+ type: "relative";
2219
+ };
2220
+ workflow: {
2221
+ path: string;
2222
+ type: "relative";
2223
+ };
2224
+ model: {
2225
+ path: string;
2226
+ type: "relative";
2227
+ };
2228
+ };
2229
+ meta: {
2230
+ organization: {
2231
+ name: string;
2232
+ url: string;
2233
+ logo?: {
2234
+ type: "explicit-base64";
2235
+ content: string;
2236
+ mimeType: string;
2237
+ } | {
2238
+ path: string;
2239
+ type: "relative";
2240
+ } | undefined;
2241
+ };
2242
+ title: string;
2243
+ description: string;
2244
+ url?: string | undefined;
2245
+ longDescription?: {
2246
+ type: "explicit-string";
2247
+ content: string;
2248
+ } | {
2249
+ path: string;
2250
+ type: "relative";
2251
+ } | undefined;
2252
+ logo?: {
2253
+ type: "explicit-base64";
2254
+ content: string;
2255
+ mimeType: string;
2256
+ } | {
2257
+ path: string;
2258
+ type: "relative";
2259
+ } | undefined;
2260
+ docs?: string | undefined;
2261
+ support?: string | undefined;
2262
+ tags?: string[] | undefined;
2263
+ };
2264
+ id: {
2265
+ name: string;
2266
+ organization: string;
2267
+ version: string;
2268
+ };
2269
+ }>;
2270
+ type BlockPackDescriptionManifest = z.infer<typeof BlockPackDescriptionManifest>;
2271
+ declare const BlockPackManifest: z.ZodObject<z.objectUtil.extendShape<{
2272
+ id: z.ZodObject<{
2273
+ organization: z.ZodString;
2274
+ name: z.ZodString;
2275
+ version: z.ZodString;
2276
+ }, "strict", z.ZodTypeAny, {
2277
+ name: string;
2278
+ organization: string;
2279
+ version: string;
2280
+ }, {
2281
+ name: string;
2282
+ organization: string;
2283
+ version: string;
2284
+ }>;
2285
+ components: z.ZodObject<{
2286
+ workflow: z.ZodObject<{
2287
+ type: z.ZodLiteral<"relative">;
2288
+ path: z.ZodString;
2289
+ }, "strict", z.ZodTypeAny, {
2290
+ path: string;
2291
+ type: "relative";
2292
+ }, {
2293
+ path: string;
2294
+ type: "relative";
2295
+ }>;
2296
+ model: z.ZodObject<{
2297
+ type: z.ZodLiteral<"relative">;
2298
+ path: z.ZodString;
2299
+ }, "strict", z.ZodTypeAny, {
2300
+ path: string;
2301
+ type: "relative";
2302
+ }, {
2303
+ path: string;
2304
+ type: "relative";
2305
+ }>;
2306
+ ui: z.ZodObject<{
2307
+ type: z.ZodLiteral<"relative">;
2308
+ path: z.ZodString;
2309
+ }, "strict", z.ZodTypeAny, {
2310
+ path: string;
2311
+ type: "relative";
2312
+ }, {
2313
+ path: string;
2314
+ type: "relative";
2315
+ }>;
2316
+ }, "strip", z.ZodTypeAny, {
2317
+ ui: {
2318
+ path: string;
2319
+ type: "relative";
2320
+ };
2321
+ workflow: {
2322
+ path: string;
2323
+ type: "relative";
2324
+ };
2325
+ model: {
2326
+ path: string;
2327
+ type: "relative";
2328
+ };
2329
+ }, {
2330
+ ui: {
2331
+ path: string;
2332
+ type: "relative";
2333
+ };
2334
+ workflow: {
2335
+ path: string;
2336
+ type: "relative";
2337
+ };
2338
+ model: {
2339
+ path: string;
2340
+ type: "relative";
2341
+ };
2342
+ }>;
2343
+ meta: z.ZodObject<{
2344
+ title: z.ZodString;
2345
+ description: z.ZodString;
2346
+ longDescription: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2347
+ type: z.ZodLiteral<"explicit-string">;
2348
+ content: z.ZodString;
2349
+ }, "strict", z.ZodTypeAny, {
2350
+ type: "explicit-string";
2351
+ content: string;
2352
+ }, {
2353
+ type: "explicit-string";
2354
+ content: string;
2355
+ }>, z.ZodObject<{
2356
+ type: z.ZodLiteral<"relative">;
2357
+ path: z.ZodString;
2358
+ }, "strict", z.ZodTypeAny, {
2359
+ path: string;
2360
+ type: "relative";
2361
+ }, {
2362
+ path: string;
2363
+ type: "relative";
2364
+ }>]>>;
2365
+ logo: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2366
+ type: z.ZodLiteral<"explicit-base64">;
2367
+ mimeType: z.ZodString;
2368
+ content: z.ZodString;
2369
+ }, "strict", z.ZodTypeAny, {
2370
+ type: "explicit-base64";
2371
+ content: string;
2372
+ mimeType: string;
2373
+ }, {
2374
+ type: "explicit-base64";
2375
+ content: string;
2376
+ mimeType: string;
2377
+ }>, z.ZodObject<{
2378
+ type: z.ZodLiteral<"relative">;
2379
+ path: z.ZodString;
2380
+ }, "strict", z.ZodTypeAny, {
2381
+ path: string;
2382
+ type: "relative";
2383
+ }, {
2384
+ path: string;
2385
+ type: "relative";
2386
+ }>]>>;
2387
+ url: z.ZodOptional<z.ZodString>;
2388
+ docs: z.ZodOptional<z.ZodString>;
2389
+ support: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
2390
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2391
+ organization: z.ZodObject<{
2392
+ name: z.ZodString;
2393
+ url: z.ZodString;
2394
+ logo: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2395
+ type: z.ZodLiteral<"explicit-base64">;
2396
+ mimeType: z.ZodString;
2397
+ content: z.ZodString;
2398
+ }, "strict", z.ZodTypeAny, {
2399
+ type: "explicit-base64";
2400
+ content: string;
2401
+ mimeType: string;
2402
+ }, {
2403
+ type: "explicit-base64";
2404
+ content: string;
2405
+ mimeType: string;
2406
+ }>, z.ZodObject<{
2407
+ type: z.ZodLiteral<"relative">;
2408
+ path: z.ZodString;
2409
+ }, "strict", z.ZodTypeAny, {
2410
+ path: string;
2411
+ type: "relative";
2412
+ }, {
2413
+ path: string;
2414
+ type: "relative";
2415
+ }>]>>;
2416
+ }, "strip", z.ZodTypeAny, {
2417
+ name: string;
2418
+ url: string;
2419
+ logo?: {
2420
+ type: "explicit-base64";
2421
+ content: string;
2422
+ mimeType: string;
2423
+ } | {
2424
+ path: string;
2425
+ type: "relative";
2426
+ } | undefined;
2427
+ }, {
2428
+ name: string;
2429
+ url: string;
2430
+ logo?: {
2431
+ type: "explicit-base64";
2432
+ content: string;
2433
+ mimeType: string;
2434
+ } | {
2435
+ path: string;
2436
+ type: "relative";
2437
+ } | undefined;
2438
+ }>;
2439
+ }, "strip", z.ZodTypeAny, {
2440
+ organization: {
2441
+ name: string;
2442
+ url: string;
2443
+ logo?: {
2444
+ type: "explicit-base64";
2445
+ content: string;
2446
+ mimeType: string;
2447
+ } | {
2448
+ path: string;
2449
+ type: "relative";
2450
+ } | undefined;
2451
+ };
2452
+ title: string;
2453
+ description: string;
2454
+ url?: string | undefined;
2455
+ longDescription?: {
2456
+ type: "explicit-string";
2457
+ content: string;
2458
+ } | {
2459
+ path: string;
2460
+ type: "relative";
2461
+ } | undefined;
2462
+ logo?: {
2463
+ type: "explicit-base64";
2464
+ content: string;
2465
+ mimeType: string;
2466
+ } | {
2467
+ path: string;
2468
+ type: "relative";
2469
+ } | undefined;
2470
+ docs?: string | undefined;
2471
+ support?: string | undefined;
2472
+ tags?: string[] | undefined;
2473
+ }, {
2474
+ organization: {
2475
+ name: string;
2476
+ url: string;
2477
+ logo?: {
2478
+ type: "explicit-base64";
2479
+ content: string;
2480
+ mimeType: string;
2481
+ } | {
2482
+ path: string;
2483
+ type: "relative";
2484
+ } | undefined;
2485
+ };
2486
+ title: string;
2487
+ description: string;
2488
+ url?: string | undefined;
2489
+ longDescription?: {
2490
+ type: "explicit-string";
2491
+ content: string;
2492
+ } | {
2493
+ path: string;
2494
+ type: "relative";
2495
+ } | undefined;
2496
+ logo?: {
2497
+ type: "explicit-base64";
2498
+ content: string;
2499
+ mimeType: string;
2500
+ } | {
2501
+ path: string;
2502
+ type: "relative";
2503
+ } | undefined;
2504
+ docs?: string | undefined;
2505
+ support?: string | undefined;
2506
+ tags?: string[] | undefined;
2507
+ }>;
2508
+ }, {
2509
+ schema: z.ZodLiteral<"v1">;
2510
+ files: z.ZodArray<z.ZodString, "many">;
2511
+ }>, "strip", z.ZodTypeAny, {
2512
+ components: {
2513
+ ui: {
2514
+ path: string;
2515
+ type: "relative";
2516
+ };
2517
+ workflow: {
2518
+ path: string;
2519
+ type: "relative";
2520
+ };
2521
+ model: {
2522
+ path: string;
2523
+ type: "relative";
2524
+ };
2525
+ };
2526
+ meta: {
2527
+ organization: {
2528
+ name: string;
2529
+ url: string;
2530
+ logo?: {
2531
+ type: "explicit-base64";
2532
+ content: string;
2533
+ mimeType: string;
2534
+ } | {
2535
+ path: string;
2536
+ type: "relative";
2537
+ } | undefined;
2538
+ };
2539
+ title: string;
2540
+ description: string;
2541
+ url?: string | undefined;
2542
+ longDescription?: {
2543
+ type: "explicit-string";
2544
+ content: string;
2545
+ } | {
2546
+ path: string;
2547
+ type: "relative";
2548
+ } | undefined;
2549
+ logo?: {
2550
+ type: "explicit-base64";
2551
+ content: string;
2552
+ mimeType: string;
2553
+ } | {
2554
+ path: string;
2555
+ type: "relative";
2556
+ } | undefined;
2557
+ docs?: string | undefined;
2558
+ support?: string | undefined;
2559
+ tags?: string[] | undefined;
2560
+ };
2561
+ id: {
2562
+ name: string;
2563
+ organization: string;
2564
+ version: string;
2565
+ };
2566
+ schema: "v1";
2567
+ files: string[];
2568
+ }, {
2569
+ components: {
2570
+ ui: {
2571
+ path: string;
2572
+ type: "relative";
2573
+ };
2574
+ workflow: {
2575
+ path: string;
2576
+ type: "relative";
2577
+ };
2578
+ model: {
2579
+ path: string;
2580
+ type: "relative";
2581
+ };
2582
+ };
2583
+ meta: {
2584
+ organization: {
2585
+ name: string;
2586
+ url: string;
2587
+ logo?: {
2588
+ type: "explicit-base64";
2589
+ content: string;
2590
+ mimeType: string;
2591
+ } | {
2592
+ path: string;
2593
+ type: "relative";
2594
+ } | undefined;
2595
+ };
2596
+ title: string;
2597
+ description: string;
2598
+ url?: string | undefined;
2599
+ longDescription?: {
2600
+ type: "explicit-string";
2601
+ content: string;
2602
+ } | {
2603
+ path: string;
2604
+ type: "relative";
2605
+ } | undefined;
2606
+ logo?: {
2607
+ type: "explicit-base64";
2608
+ content: string;
2609
+ mimeType: string;
2610
+ } | {
2611
+ path: string;
2612
+ type: "relative";
2613
+ } | undefined;
2614
+ docs?: string | undefined;
2615
+ support?: string | undefined;
2616
+ tags?: string[] | undefined;
2617
+ };
2618
+ id: {
2619
+ name: string;
2620
+ organization: string;
2621
+ version: string;
2622
+ };
2623
+ schema: "v1";
2624
+ files: string[];
2625
+ }>;
2626
+ type BlockPackManifest = z.infer<typeof BlockPackManifest>;
2627
+ declare const BlockPackManifestFile = "manifest.json";
2628
+
2629
+ declare function buildBlockPackDist(description: BlockPackDescriptionAbsolute, dst: string): Promise<BlockPackManifest>;
2630
+
2631
+ declare const BlockDescriptionPackageJsonField = "block";
2632
+ declare function parsePackageName(packageName: string): Pick<BlockPackId, 'organization' | 'name'>;
2633
+ declare function tryLoadPackDescription(moduleRoot: string): Promise<BlockPackDescriptionAbsolute | undefined>;
2634
+ declare function loadPackDescriptionRaw(moduleRoot: string): Promise<BlockPackDescriptionRaw>;
2635
+ declare function loadPackDescription(moduleRoot: string): Promise<BlockPackDescriptionAbsolute>;
2636
+
2637
+ export { type BlockComponentsAbsolute, BlockComponentsAbsoluteUrl, BlockComponentsConsolidate, BlockComponentsDescription, BlockDescriptionPackageJsonField, type BlockPackDescriptionAbsolute, BlockPackDescriptionConsolidateToFolder, BlockPackDescriptionManifest, BlockPackManifest, BlockPackManifestFile, type ContentCtx, index as RegistryV1, ResolvedBlockPackDescriptionFromPackageJson, ResolvedModuleFile, ResolvedModuleFolder, absoluteToBase64, absoluteToString, buildBlockPackDist, cpAbsoluteToRelative, loadPackDescription, loadPackDescriptionRaw, mapLocalToAbsolute, mapRemoteToAbsolute, packFolderToRelativeTgz, parsePackageName, tryLoadPackDescription };