@milaboratories/pl-model-middle-layer 1.3.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/block_meta/block_components.d.ts +225 -51
  2. package/dist/block_meta/block_components.d.ts.map +1 -1
  3. package/dist/block_meta/block_description.d.ts +34 -28
  4. package/dist/block_meta/block_description.d.ts.map +1 -1
  5. package/dist/block_meta/block_manifest.d.ts +133 -69
  6. package/dist/block_meta/block_manifest.d.ts.map +1 -1
  7. package/dist/block_meta/block_meta.d.ts +102 -2
  8. package/dist/block_meta/block_meta.d.ts.map +1 -1
  9. package/dist/block_registry/block_pack_spec.d.ts +201 -0
  10. package/dist/block_registry/block_pack_spec.d.ts.map +1 -0
  11. package/dist/block_registry/index.d.ts +4 -0
  12. package/dist/block_registry/index.d.ts.map +1 -0
  13. package/dist/block_registry/overview.d.ts +914 -0
  14. package/dist/block_registry/overview.d.ts.map +1 -0
  15. package/dist/block_registry/registry_spec.d.ts +184 -0
  16. package/dist/block_registry/registry_spec.d.ts.map +1 -0
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +1 -1
  20. package/dist/index.js.map +1 -1
  21. package/dist/index.mjs +187 -118
  22. package/dist/index.mjs.map +1 -1
  23. package/dist/project_overview.d.ts +1 -1
  24. package/dist/project_overview.d.ts.map +1 -1
  25. package/package.json +1 -1
  26. package/src/block_meta/block_components.ts +17 -10
  27. package/src/block_meta/block_manifest.ts +7 -5
  28. package/src/block_meta/block_meta.ts +10 -2
  29. package/src/block_registry/block_pack_spec.ts +51 -0
  30. package/src/block_registry/index.ts +3 -0
  31. package/src/block_registry/overview.ts +27 -0
  32. package/src/block_registry/registry_spec.ts +38 -0
  33. package/src/index.ts +1 -1
  34. package/src/project_overview.ts +1 -1
  35. package/dist/block_pack.d.ts +0 -24
  36. package/dist/block_pack.d.ts.map +0 -1
  37. package/src/block_pack.ts +0 -29
@@ -1,9 +1,40 @@
1
1
  import { z } from 'zod';
2
2
  export type BlockPackComponents = {};
3
- export declare function Workflow<const Content extends z.ZodTypeAny>(contentType: Content): z.ZodUnion<[z.ZodEffects<Content, {
4
- type: string;
5
- main: any;
6
- }, z.input<Content>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3
+ export declare function WorkflowV1<const Content extends z.ZodTypeAny>(contentType: Content): z.ZodObject<{
4
+ type: z.ZodLiteral<"workflow-v1">;
5
+ main: Content;
6
+ }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
7
+ type: z.ZodLiteral<"workflow-v1">;
8
+ main: Content;
9
+ }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
10
+ type: z.ZodLiteral<"workflow-v1">;
11
+ main: Content;
12
+ }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
13
+ type: z.ZodLiteral<"workflow-v1">;
14
+ main: Content;
15
+ }>]: z.baseObjectInputType<{
16
+ type: z.ZodLiteral<"workflow-v1">;
17
+ main: Content;
18
+ }>[k_1]; }>;
19
+ export declare function Workflow<const Content extends z.ZodTypeAny>(contentType: Content): z.ZodUnion<[z.ZodPipeline<z.ZodEffects<Content, {
20
+ type: "workflow-v1";
21
+ main: z.TypeOf<Content>;
22
+ }, z.input<Content>>, z.ZodObject<{
23
+ type: z.ZodLiteral<"workflow-v1">;
24
+ main: Content;
25
+ }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
26
+ type: z.ZodLiteral<"workflow-v1">;
27
+ main: Content;
28
+ }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
29
+ type: z.ZodLiteral<"workflow-v1">;
30
+ main: Content;
31
+ }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
32
+ type: z.ZodLiteral<"workflow-v1">;
33
+ main: Content;
34
+ }>]: z.baseObjectInputType<{
35
+ type: z.ZodLiteral<"workflow-v1">;
36
+ main: Content;
37
+ }>[k_1]; }>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7
38
  type: z.ZodLiteral<"workflow-v1">;
8
39
  main: Content;
9
40
  }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
@@ -20,10 +51,25 @@ export declare function Workflow<const Content extends z.ZodTypeAny>(contentType
20
51
  main: Content;
21
52
  }>[k_1]; }>]>]>;
22
53
  export declare function BlockComponents<const WfAndModel extends z.ZodTypeAny, const UI extends z.ZodTypeAny>(wfAndModel: WfAndModel, ui: UI): z.ZodObject<{
23
- workflow: z.ZodUnion<[z.ZodEffects<WfAndModel, {
24
- type: string;
25
- main: any;
26
- }, z.input<WfAndModel>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
54
+ workflow: z.ZodUnion<[z.ZodPipeline<z.ZodEffects<WfAndModel, {
55
+ type: "workflow-v1";
56
+ main: z.TypeOf<WfAndModel>;
57
+ }, z.input<WfAndModel>>, z.ZodObject<{
58
+ type: z.ZodLiteral<"workflow-v1">;
59
+ main: WfAndModel;
60
+ }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
61
+ type: z.ZodLiteral<"workflow-v1">;
62
+ main: WfAndModel;
63
+ }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
64
+ type: z.ZodLiteral<"workflow-v1">;
65
+ main: WfAndModel;
66
+ }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
67
+ type: z.ZodLiteral<"workflow-v1">;
68
+ main: WfAndModel;
69
+ }>]: z.baseObjectInputType<{
70
+ type: z.ZodLiteral<"workflow-v1">;
71
+ main: WfAndModel;
72
+ }>[k_1]; }>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
27
73
  type: z.ZodLiteral<"workflow-v1">;
28
74
  main: WfAndModel;
29
75
  }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
@@ -42,10 +88,25 @@ export declare function BlockComponents<const WfAndModel extends z.ZodTypeAny, c
42
88
  model: WfAndModel;
43
89
  ui: UI;
44
90
  }, "strip", z.ZodTypeAny, { [k_2 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
45
- workflow: z.ZodUnion<[z.ZodEffects<WfAndModel, {
46
- type: string;
47
- main: any;
48
- }, z.input<WfAndModel>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
91
+ workflow: z.ZodUnion<[z.ZodPipeline<z.ZodEffects<WfAndModel, {
92
+ type: "workflow-v1";
93
+ main: z.TypeOf<WfAndModel>;
94
+ }, z.input<WfAndModel>>, z.ZodObject<{
95
+ type: z.ZodLiteral<"workflow-v1">;
96
+ main: WfAndModel;
97
+ }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
98
+ type: z.ZodLiteral<"workflow-v1">;
99
+ main: WfAndModel;
100
+ }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
101
+ type: z.ZodLiteral<"workflow-v1">;
102
+ main: WfAndModel;
103
+ }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
104
+ type: z.ZodLiteral<"workflow-v1">;
105
+ main: WfAndModel;
106
+ }>]: z.baseObjectInputType<{
107
+ type: z.ZodLiteral<"workflow-v1">;
108
+ main: WfAndModel;
109
+ }>[k_1]; }>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
49
110
  type: z.ZodLiteral<"workflow-v1">;
50
111
  main: WfAndModel;
51
112
  }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
@@ -64,10 +125,25 @@ export declare function BlockComponents<const WfAndModel extends z.ZodTypeAny, c
64
125
  model: WfAndModel;
65
126
  ui: UI;
66
127
  }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
67
- workflow: z.ZodUnion<[z.ZodEffects<WfAndModel, {
68
- type: string;
69
- main: any;
70
- }, z.input<WfAndModel>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
128
+ workflow: z.ZodUnion<[z.ZodPipeline<z.ZodEffects<WfAndModel, {
129
+ type: "workflow-v1";
130
+ main: z.TypeOf<WfAndModel>;
131
+ }, z.input<WfAndModel>>, z.ZodObject<{
132
+ type: z.ZodLiteral<"workflow-v1">;
133
+ main: WfAndModel;
134
+ }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
135
+ type: z.ZodLiteral<"workflow-v1">;
136
+ main: WfAndModel;
137
+ }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
138
+ type: z.ZodLiteral<"workflow-v1">;
139
+ main: WfAndModel;
140
+ }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
141
+ type: z.ZodLiteral<"workflow-v1">;
142
+ main: WfAndModel;
143
+ }>]: z.baseObjectInputType<{
144
+ type: z.ZodLiteral<"workflow-v1">;
145
+ main: WfAndModel;
146
+ }>[k_1]; }>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
71
147
  type: z.ZodLiteral<"workflow-v1">;
72
148
  main: WfAndModel;
73
149
  }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
@@ -86,10 +162,25 @@ export declare function BlockComponents<const WfAndModel extends z.ZodTypeAny, c
86
162
  model: WfAndModel;
87
163
  ui: UI;
88
164
  }>, any>[k_2]; }, { [k_1_1 in keyof z.baseObjectInputType<{
89
- workflow: z.ZodUnion<[z.ZodEffects<WfAndModel, {
90
- type: string;
91
- main: any;
92
- }, z.input<WfAndModel>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
165
+ workflow: z.ZodUnion<[z.ZodPipeline<z.ZodEffects<WfAndModel, {
166
+ type: "workflow-v1";
167
+ main: z.TypeOf<WfAndModel>;
168
+ }, z.input<WfAndModel>>, z.ZodObject<{
169
+ type: z.ZodLiteral<"workflow-v1">;
170
+ main: WfAndModel;
171
+ }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
172
+ type: z.ZodLiteral<"workflow-v1">;
173
+ main: WfAndModel;
174
+ }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
175
+ type: z.ZodLiteral<"workflow-v1">;
176
+ main: WfAndModel;
177
+ }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
178
+ type: z.ZodLiteral<"workflow-v1">;
179
+ main: WfAndModel;
180
+ }>]: z.baseObjectInputType<{
181
+ type: z.ZodLiteral<"workflow-v1">;
182
+ main: WfAndModel;
183
+ }>[k_1]; }>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
93
184
  type: z.ZodLiteral<"workflow-v1">;
94
185
  main: WfAndModel;
95
186
  }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
@@ -108,10 +199,25 @@ export declare function BlockComponents<const WfAndModel extends z.ZodTypeAny, c
108
199
  model: WfAndModel;
109
200
  ui: UI;
110
201
  }>]: z.baseObjectInputType<{
111
- workflow: z.ZodUnion<[z.ZodEffects<WfAndModel, {
112
- type: string;
113
- main: any;
114
- }, z.input<WfAndModel>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
202
+ workflow: z.ZodUnion<[z.ZodPipeline<z.ZodEffects<WfAndModel, {
203
+ type: "workflow-v1";
204
+ main: z.TypeOf<WfAndModel>;
205
+ }, z.input<WfAndModel>>, z.ZodObject<{
206
+ type: z.ZodLiteral<"workflow-v1">;
207
+ main: WfAndModel;
208
+ }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
209
+ type: z.ZodLiteral<"workflow-v1">;
210
+ main: WfAndModel;
211
+ }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
212
+ type: z.ZodLiteral<"workflow-v1">;
213
+ main: WfAndModel;
214
+ }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
215
+ type: z.ZodLiteral<"workflow-v1">;
216
+ main: WfAndModel;
217
+ }>]: z.baseObjectInputType<{
218
+ type: z.ZodLiteral<"workflow-v1">;
219
+ main: WfAndModel;
220
+ }>[k_1]; }>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
115
221
  type: z.ZodLiteral<"workflow-v1">;
116
222
  main: WfAndModel;
117
223
  }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
@@ -131,10 +237,19 @@ export declare function BlockComponents<const WfAndModel extends z.ZodTypeAny, c
131
237
  ui: UI;
132
238
  }>[k_1_1]; }>;
133
239
  export declare const BlockComponentsDescriptionRaw: z.ZodObject<{
134
- workflow: z.ZodUnion<[z.ZodEffects<z.ZodString, {
135
- type: string;
136
- main: any;
137
- }, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
240
+ workflow: z.ZodUnion<[z.ZodPipeline<z.ZodEffects<z.ZodString, {
241
+ type: "workflow-v1";
242
+ main: string;
243
+ }, string>, z.ZodObject<{
244
+ type: z.ZodLiteral<"workflow-v1">;
245
+ main: z.ZodString;
246
+ }, "strip", z.ZodTypeAny, {
247
+ type: "workflow-v1";
248
+ main: string;
249
+ }, {
250
+ type: "workflow-v1";
251
+ main: string;
252
+ }>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
138
253
  type: z.ZodLiteral<"workflow-v1">;
139
254
  main: z.ZodString;
140
255
  }, "strip", z.ZodTypeAny, {
@@ -147,26 +262,23 @@ export declare const BlockComponentsDescriptionRaw: z.ZodObject<{
147
262
  model: z.ZodString;
148
263
  ui: z.ZodString;
149
264
  }, "strip", z.ZodTypeAny, {
150
- ui: string;
151
265
  workflow: {
152
- type: string;
153
- main: any;
154
- } | {
155
266
  type: "workflow-v1";
156
267
  main: string;
157
268
  };
158
269
  model: string;
159
- }, {
160
270
  ui: string;
271
+ }, {
161
272
  workflow: string | {
162
273
  type: "workflow-v1";
163
274
  main: string;
164
275
  };
165
276
  model: string;
277
+ ui: string;
166
278
  }>;
167
279
  export type BlockComponentsDescriptionRaw = z.infer<typeof BlockComponentsDescriptionRaw>;
168
280
  export declare function BlockComponentsAbsoluteUrl(prefix: string): z.ZodObject<{
169
- workflow: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
281
+ workflow: z.ZodUnion<[z.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
170
282
  type: z.ZodLiteral<"explicit-base64">;
171
283
  mimeType: z.ZodString;
172
284
  content: z.ZodString;
@@ -202,8 +314,15 @@ export declare function BlockComponentsAbsoluteUrl(prefix: string): z.ZodObject<
202
314
  type: "relative";
203
315
  path: string;
204
316
  }>, {
205
- type: string;
206
- main: any;
317
+ type: "workflow-v1";
318
+ main: {
319
+ type: "explicit-base64";
320
+ content: string;
321
+ mimeType: string;
322
+ } | {
323
+ type: "absolute-url";
324
+ url: string;
325
+ };
207
326
  }, {
208
327
  type: "explicit-base64";
209
328
  content: string;
@@ -211,7 +330,65 @@ export declare function BlockComponentsAbsoluteUrl(prefix: string): z.ZodObject<
211
330
  } | {
212
331
  type: "relative";
213
332
  path: string;
214
- }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
333
+ }>, z.ZodObject<{
334
+ type: z.ZodLiteral<"workflow-v1">;
335
+ main: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
336
+ type: z.ZodLiteral<"explicit-base64">;
337
+ mimeType: z.ZodString;
338
+ content: z.ZodString;
339
+ }, "strict", z.ZodTypeAny, {
340
+ type: "explicit-base64";
341
+ content: string;
342
+ mimeType: string;
343
+ }, {
344
+ type: "explicit-base64";
345
+ content: string;
346
+ mimeType: string;
347
+ }>, z.ZodObject<{
348
+ type: z.ZodLiteral<"relative">;
349
+ path: z.ZodString;
350
+ }, "strict", z.ZodTypeAny, {
351
+ type: "relative";
352
+ path: string;
353
+ }, {
354
+ type: "relative";
355
+ path: string;
356
+ }>]>, {
357
+ type: "explicit-base64";
358
+ content: string;
359
+ mimeType: string;
360
+ } | {
361
+ type: "absolute-url";
362
+ url: string;
363
+ }, {
364
+ type: "explicit-base64";
365
+ content: string;
366
+ mimeType: string;
367
+ } | {
368
+ type: "relative";
369
+ path: string;
370
+ }>;
371
+ }, "strip", z.ZodTypeAny, {
372
+ type: "workflow-v1";
373
+ main: {
374
+ type: "explicit-base64";
375
+ content: string;
376
+ mimeType: string;
377
+ } | {
378
+ type: "absolute-url";
379
+ url: string;
380
+ };
381
+ }, {
382
+ type: "workflow-v1";
383
+ main: {
384
+ type: "explicit-base64";
385
+ content: string;
386
+ mimeType: string;
387
+ } | {
388
+ type: "relative";
389
+ path: string;
390
+ };
391
+ }>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
215
392
  type: z.ZodLiteral<"workflow-v1">;
216
393
  main: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
217
394
  type: z.ZodLiteral<"explicit-base64">;
@@ -343,18 +520,7 @@ export declare function BlockComponentsAbsoluteUrl(prefix: string): z.ZodObject<
343
520
  path: string;
344
521
  }>;
345
522
  }, "strip", z.ZodTypeAny, {
346
- ui: {
347
- type: "explicit-base64";
348
- content: string;
349
- mimeType: string;
350
- } | {
351
- type: "absolute-url";
352
- url: string;
353
- };
354
523
  workflow: {
355
- type: string;
356
- main: any;
357
- } | {
358
524
  type: "workflow-v1";
359
525
  main: {
360
526
  type: "explicit-base64";
@@ -373,15 +539,15 @@ export declare function BlockComponentsAbsoluteUrl(prefix: string): z.ZodObject<
373
539
  type: "absolute-url";
374
540
  url: string;
375
541
  };
376
- }, {
377
542
  ui: {
378
543
  type: "explicit-base64";
379
544
  content: string;
380
545
  mimeType: string;
381
546
  } | {
382
- type: "relative";
383
- path: string;
547
+ type: "absolute-url";
548
+ url: string;
384
549
  };
550
+ }, {
385
551
  workflow: {
386
552
  type: "explicit-base64";
387
553
  content: string;
@@ -408,6 +574,14 @@ export declare function BlockComponentsAbsoluteUrl(prefix: string): z.ZodObject<
408
574
  type: "relative";
409
575
  path: string;
410
576
  };
577
+ ui: {
578
+ type: "explicit-base64";
579
+ content: string;
580
+ mimeType: string;
581
+ } | {
582
+ type: "relative";
583
+ path: string;
584
+ };
411
585
  }>;
412
586
  export type BlockComponentsAbsolute = z.infer<ReturnType<typeof BlockComponentsAbsoluteUrl>>;
413
587
  //# sourceMappingURL=block_components.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"block_components.d.ts","sourceRoot":"","sources":["../../src/block_meta/block_components.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,MAAM,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAErC,wBAAgB,QAAQ,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC,UAAU,EAAE,WAAW,EAAE,OAAO;;;;;;;;;;;;;;;;;;gBAehF;AAED,wBAAgB,eAAe,CAC7B,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,UAAU,EACrC,KAAK,CAAC,EAAE,SAAS,CAAC,CAAC,UAAU,EAC7B,UAAU,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM/B;AAED,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA0C,CAAC;AACrF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAE1F,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;EAA0C,CAAC;AACrF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAE1F,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKxD;AACD,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC"}
@@ -4,10 +4,19 @@ import { z, ZodTypeAny } from 'zod';
4
4
  * strings are converted to explicit content type. */
5
5
  export declare const BlockPackDescriptionFromPackageJsonRaw: z.ZodObject<{
6
6
  components: z.ZodObject<{
7
- workflow: z.ZodUnion<[z.ZodEffects<z.ZodString, {
8
- type: string;
9
- main: any;
10
- }, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7
+ workflow: z.ZodUnion<[z.ZodPipeline<z.ZodEffects<z.ZodString, {
8
+ type: "workflow-v1";
9
+ main: string;
10
+ }, string>, z.ZodObject<{
11
+ type: z.ZodLiteral<"workflow-v1">;
12
+ main: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ type: "workflow-v1";
15
+ main: string;
16
+ }, {
17
+ type: "workflow-v1";
18
+ main: string;
19
+ }>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11
20
  type: z.ZodLiteral<"workflow-v1">;
12
21
  main: z.ZodString;
13
22
  }, "strip", z.ZodTypeAny, {
@@ -20,22 +29,19 @@ export declare const BlockPackDescriptionFromPackageJsonRaw: z.ZodObject<{
20
29
  model: z.ZodString;
21
30
  ui: z.ZodString;
22
31
  }, "strip", z.ZodTypeAny, {
23
- ui: string;
24
32
  workflow: {
25
- type: string;
26
- main: any;
27
- } | {
28
33
  type: "workflow-v1";
29
34
  main: string;
30
35
  };
31
36
  model: string;
32
- }, {
33
37
  ui: string;
38
+ }, {
34
39
  workflow: string | {
35
40
  type: "workflow-v1";
36
41
  main: string;
37
42
  };
38
43
  model: string;
44
+ ui: string;
39
45
  }>;
40
46
  meta: z.ZodObject<{
41
47
  title: z.ZodString;
@@ -275,15 +281,12 @@ export declare const BlockPackDescriptionFromPackageJsonRaw: z.ZodObject<{
275
281
  }>;
276
282
  }, "strip", z.ZodTypeAny, {
277
283
  components: {
278
- ui: string;
279
284
  workflow: {
280
- type: string;
281
- main: any;
282
- } | {
283
285
  type: "workflow-v1";
284
286
  main: string;
285
287
  };
286
288
  model: string;
289
+ ui: string;
287
290
  };
288
291
  meta: {
289
292
  organization: {
@@ -331,12 +334,12 @@ export declare const BlockPackDescriptionFromPackageJsonRaw: z.ZodObject<{
331
334
  };
332
335
  }, {
333
336
  components: {
334
- ui: string;
335
337
  workflow: string | {
336
338
  type: "workflow-v1";
337
339
  main: string;
338
340
  };
339
341
  model: string;
342
+ ui: string;
340
343
  };
341
344
  meta: {
342
345
  organization: {
@@ -479,10 +482,19 @@ export declare const BlockPackDescriptionRaw: z.ZodObject<{
479
482
  version: string;
480
483
  }>;
481
484
  components: z.ZodObject<{
482
- workflow: z.ZodUnion<[z.ZodEffects<z.ZodString, {
483
- type: string;
484
- main: any;
485
- }, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
485
+ workflow: z.ZodUnion<[z.ZodPipeline<z.ZodEffects<z.ZodString, {
486
+ type: "workflow-v1";
487
+ main: string;
488
+ }, string>, z.ZodObject<{
489
+ type: z.ZodLiteral<"workflow-v1">;
490
+ main: z.ZodString;
491
+ }, "strip", z.ZodTypeAny, {
492
+ type: "workflow-v1";
493
+ main: string;
494
+ }, {
495
+ type: "workflow-v1";
496
+ main: string;
497
+ }>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
486
498
  type: z.ZodLiteral<"workflow-v1">;
487
499
  main: z.ZodString;
488
500
  }, "strip", z.ZodTypeAny, {
@@ -495,22 +507,19 @@ export declare const BlockPackDescriptionRaw: z.ZodObject<{
495
507
  model: z.ZodString;
496
508
  ui: z.ZodString;
497
509
  }, "strip", z.ZodTypeAny, {
498
- ui: string;
499
510
  workflow: {
500
- type: string;
501
- main: any;
502
- } | {
503
511
  type: "workflow-v1";
504
512
  main: string;
505
513
  };
506
514
  model: string;
507
- }, {
508
515
  ui: string;
516
+ }, {
509
517
  workflow: string | {
510
518
  type: "workflow-v1";
511
519
  main: string;
512
520
  };
513
521
  model: string;
522
+ ui: string;
514
523
  }>;
515
524
  meta: z.ZodObject<{
516
525
  title: z.ZodString;
@@ -750,15 +759,12 @@ export declare const BlockPackDescriptionRaw: z.ZodObject<{
750
759
  }>;
751
760
  }, "strip", z.ZodTypeAny, {
752
761
  components: {
753
- ui: string;
754
762
  workflow: {
755
- type: string;
756
- main: any;
757
- } | {
758
763
  type: "workflow-v1";
759
764
  main: string;
760
765
  };
761
766
  model: string;
767
+ ui: string;
762
768
  };
763
769
  meta: {
764
770
  organization: {
@@ -811,12 +817,12 @@ export declare const BlockPackDescriptionRaw: z.ZodObject<{
811
817
  };
812
818
  }, {
813
819
  components: {
814
- ui: string;
815
820
  workflow: string | {
816
821
  type: "workflow-v1";
817
822
  main: string;
818
823
  };
819
824
  model: string;
825
+ ui: string;
820
826
  };
821
827
  meta: {
822
828
  organization: {
@@ -1 +1 @@
1
- {"version":3,"file":"block_description.d.ts","sourceRoot":"","sources":["../../src/block_meta/block_description.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,KAAK,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