@milaboratories/pl-model-middle-layer 1.2.20 → 1.4.0

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 (52) hide show
  1. package/dist/block_meta/block_components.d.ts +221 -85
  2. package/dist/block_meta/block_components.d.ts.map +1 -1
  3. package/dist/block_meta/block_description.d.ts +872 -0
  4. package/dist/block_meta/block_description.d.ts.map +1 -0
  5. package/dist/block_meta/{block_pack_id.d.ts → block_id.d.ts} +1 -1
  6. package/dist/block_meta/block_id.d.ts.map +1 -0
  7. package/dist/block_meta/block_manifest.d.ts +1246 -0
  8. package/dist/block_meta/block_manifest.d.ts.map +1 -0
  9. package/dist/block_meta/{meta.d.ts → block_meta.d.ts} +36 -102
  10. package/dist/block_meta/block_meta.d.ts.map +1 -0
  11. package/dist/block_meta/content_conversion.d.ts +9 -1
  12. package/dist/block_meta/content_conversion.d.ts.map +1 -1
  13. package/dist/block_meta/content_types.d.ts +40 -5
  14. package/dist/block_meta/content_types.d.ts.map +1 -1
  15. package/dist/block_meta/index.d.ts +6 -1665
  16. package/dist/block_meta/index.d.ts.map +1 -1
  17. package/dist/block_registry/block_pack_spec.d.ts +201 -0
  18. package/dist/block_registry/block_pack_spec.d.ts.map +1 -0
  19. package/dist/block_registry/index.d.ts +4 -0
  20. package/dist/block_registry/index.d.ts.map +1 -0
  21. package/dist/block_registry/overview.d.ts +914 -0
  22. package/dist/block_registry/overview.d.ts.map +1 -0
  23. package/dist/block_registry/registry_spec.d.ts +184 -0
  24. package/dist/block_registry/registry_spec.d.ts.map +1 -0
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +1 -1
  28. package/dist/index.js.map +1 -1
  29. package/dist/index.mjs +202 -125
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/project_overview.d.ts +1 -1
  32. package/dist/project_overview.d.ts.map +1 -1
  33. package/package.json +2 -2
  34. package/src/block_meta/block_components.ts +5 -5
  35. package/src/block_meta/block_description.ts +29 -0
  36. package/src/block_meta/block_manifest.ts +40 -0
  37. package/src/block_meta/{meta.ts → block_meta.ts} +8 -13
  38. package/src/block_meta/content_conversion.ts +24 -4
  39. package/src/block_meta/content_types.ts +14 -3
  40. package/src/block_meta/index.ts +6 -52
  41. package/src/block_registry/block_pack_spec.ts +51 -0
  42. package/src/block_registry/index.ts +3 -0
  43. package/src/block_registry/overview.ts +27 -0
  44. package/src/block_registry/registry_spec.ts +38 -0
  45. package/src/index.ts +1 -1
  46. package/src/project_overview.ts +1 -1
  47. package/dist/block_meta/block_pack_id.d.ts.map +0 -1
  48. package/dist/block_meta/meta.d.ts.map +0 -1
  49. package/dist/block_pack.d.ts +0 -24
  50. package/dist/block_pack.d.ts.map +0 -1
  51. package/src/block_pack.ts +0 -29
  52. /package/src/block_meta/{block_pack_id.ts → block_id.ts} +0 -0
@@ -20,101 +20,153 @@ export declare function Workflow<const Content extends z.ZodTypeAny>(contentType
20
20
  main: Content;
21
21
  }>[k_1]; }>]>]>;
22
22
  export declare function BlockComponents<const WfAndModel extends z.ZodTypeAny, const UI extends z.ZodTypeAny>(wfAndModel: WfAndModel, ui: UI): z.ZodObject<{
23
- workflow: WfAndModel;
23
+ workflow: z.ZodUnion<[z.ZodEffects<WfAndModel, {
24
+ type: string;
25
+ main: any;
26
+ }, z.input<WfAndModel>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
27
+ type: z.ZodLiteral<"workflow-v1">;
28
+ main: WfAndModel;
29
+ }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
30
+ type: z.ZodLiteral<"workflow-v1">;
31
+ main: WfAndModel;
32
+ }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
33
+ type: z.ZodLiteral<"workflow-v1">;
34
+ main: WfAndModel;
35
+ }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
36
+ type: z.ZodLiteral<"workflow-v1">;
37
+ main: WfAndModel;
38
+ }>]: z.baseObjectInputType<{
39
+ type: z.ZodLiteral<"workflow-v1">;
40
+ main: WfAndModel;
41
+ }>[k_1]; }>]>]>;
24
42
  model: WfAndModel;
25
43
  ui: UI;
26
- }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
27
- workflow: WfAndModel;
44
+ }, "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<{
49
+ type: z.ZodLiteral<"workflow-v1">;
50
+ main: WfAndModel;
51
+ }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
52
+ type: z.ZodLiteral<"workflow-v1">;
53
+ main: WfAndModel;
54
+ }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
55
+ type: z.ZodLiteral<"workflow-v1">;
56
+ main: WfAndModel;
57
+ }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
58
+ type: z.ZodLiteral<"workflow-v1">;
59
+ main: WfAndModel;
60
+ }>]: z.baseObjectInputType<{
61
+ type: z.ZodLiteral<"workflow-v1">;
62
+ main: WfAndModel;
63
+ }>[k_1]; }>]>]>;
28
64
  model: WfAndModel;
29
65
  ui: UI;
30
66
  }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
31
- workflow: WfAndModel;
67
+ workflow: z.ZodUnion<[z.ZodEffects<WfAndModel, {
68
+ type: string;
69
+ main: any;
70
+ }, z.input<WfAndModel>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
71
+ type: z.ZodLiteral<"workflow-v1">;
72
+ main: WfAndModel;
73
+ }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
74
+ type: z.ZodLiteral<"workflow-v1">;
75
+ main: WfAndModel;
76
+ }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
77
+ type: z.ZodLiteral<"workflow-v1">;
78
+ main: WfAndModel;
79
+ }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
80
+ type: z.ZodLiteral<"workflow-v1">;
81
+ main: WfAndModel;
82
+ }>]: z.baseObjectInputType<{
83
+ type: z.ZodLiteral<"workflow-v1">;
84
+ main: WfAndModel;
85
+ }>[k_1]; }>]>]>;
32
86
  model: WfAndModel;
33
87
  ui: UI;
34
- }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
35
- workflow: WfAndModel;
88
+ }>, 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<{
93
+ type: z.ZodLiteral<"workflow-v1">;
94
+ main: WfAndModel;
95
+ }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
96
+ type: z.ZodLiteral<"workflow-v1">;
97
+ main: WfAndModel;
98
+ }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
99
+ type: z.ZodLiteral<"workflow-v1">;
100
+ main: WfAndModel;
101
+ }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
102
+ type: z.ZodLiteral<"workflow-v1">;
103
+ main: WfAndModel;
104
+ }>]: z.baseObjectInputType<{
105
+ type: z.ZodLiteral<"workflow-v1">;
106
+ main: WfAndModel;
107
+ }>[k_1]; }>]>]>;
36
108
  model: WfAndModel;
37
109
  ui: UI;
38
110
  }>]: z.baseObjectInputType<{
39
- workflow: WfAndModel;
111
+ workflow: z.ZodUnion<[z.ZodEffects<WfAndModel, {
112
+ type: string;
113
+ main: any;
114
+ }, z.input<WfAndModel>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
115
+ type: z.ZodLiteral<"workflow-v1">;
116
+ main: WfAndModel;
117
+ }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
118
+ type: z.ZodLiteral<"workflow-v1">;
119
+ main: WfAndModel;
120
+ }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
121
+ type: z.ZodLiteral<"workflow-v1">;
122
+ main: WfAndModel;
123
+ }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
124
+ type: z.ZodLiteral<"workflow-v1">;
125
+ main: WfAndModel;
126
+ }>]: z.baseObjectInputType<{
127
+ type: z.ZodLiteral<"workflow-v1">;
128
+ main: WfAndModel;
129
+ }>[k_1]; }>]>]>;
40
130
  model: WfAndModel;
41
131
  ui: UI;
42
- }>[k_1]; }>;
132
+ }>[k_1_1]; }>;
43
133
  export declare const BlockComponentsDescriptionRaw: z.ZodObject<{
44
- workflow: z.ZodString;
134
+ workflow: z.ZodUnion<[z.ZodEffects<z.ZodString, {
135
+ type: string;
136
+ main: any;
137
+ }, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
138
+ type: z.ZodLiteral<"workflow-v1">;
139
+ main: z.ZodString;
140
+ }, "strip", z.ZodTypeAny, {
141
+ type: "workflow-v1";
142
+ main: string;
143
+ }, {
144
+ type: "workflow-v1";
145
+ main: string;
146
+ }>]>]>;
45
147
  model: z.ZodString;
46
148
  ui: z.ZodString;
47
149
  }, "strip", z.ZodTypeAny, {
48
- ui: string;
49
- workflow: string;
50
- model: string;
51
- }, {
52
- ui: string;
53
- workflow: string;
54
- model: string;
55
- }>;
56
- export type BlockComponentsDescriptionRaw = z.infer<typeof BlockComponentsDescriptionRaw>;
57
- export declare const BlockComponentsManifest: z.ZodObject<{
58
- workflow: z.ZodObject<{
59
- type: z.ZodLiteral<"relative">;
60
- path: z.ZodString;
61
- }, "strict", z.ZodTypeAny, {
62
- type: "relative";
63
- path: string;
64
- }, {
65
- type: "relative";
66
- path: string;
67
- }>;
68
- model: z.ZodObject<{
69
- type: z.ZodLiteral<"relative">;
70
- path: z.ZodString;
71
- }, "strict", z.ZodTypeAny, {
72
- type: "relative";
73
- path: string;
74
- }, {
75
- type: "relative";
76
- path: string;
77
- }>;
78
- ui: z.ZodObject<{
79
- type: z.ZodLiteral<"relative">;
80
- path: z.ZodString;
81
- }, "strict", z.ZodTypeAny, {
82
- type: "relative";
83
- path: string;
84
- }, {
85
- type: "relative";
86
- path: string;
87
- }>;
88
- }, "strip", z.ZodTypeAny, {
89
- ui: {
90
- type: "relative";
91
- path: string;
92
- };
93
150
  workflow: {
94
- type: "relative";
95
- path: string;
96
- };
97
- model: {
98
- type: "relative";
99
- path: string;
151
+ type: string;
152
+ main: any;
153
+ } | {
154
+ type: "workflow-v1";
155
+ main: string;
100
156
  };
157
+ model: string;
158
+ ui: string;
101
159
  }, {
102
- ui: {
103
- type: "relative";
104
- path: string;
105
- };
106
- workflow: {
107
- type: "relative";
108
- path: string;
109
- };
110
- model: {
111
- type: "relative";
112
- path: string;
160
+ workflow: string | {
161
+ type: "workflow-v1";
162
+ main: string;
113
163
  };
164
+ model: string;
165
+ ui: string;
114
166
  }>;
115
- export type BlockComponentsManifest = z.infer<typeof BlockComponentsManifest>;
167
+ export type BlockComponentsDescriptionRaw = z.infer<typeof BlockComponentsDescriptionRaw>;
116
168
  export declare function BlockComponentsAbsoluteUrl(prefix: string): z.ZodObject<{
117
- workflow: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
169
+ workflow: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
118
170
  type: z.ZodLiteral<"explicit-base64">;
119
171
  mimeType: z.ZodString;
120
172
  content: z.ZodString;
@@ -149,7 +201,75 @@ export declare function BlockComponentsAbsoluteUrl(prefix: string): z.ZodObject<
149
201
  } | {
150
202
  type: "relative";
151
203
  path: string;
152
- }>;
204
+ }>, {
205
+ type: string;
206
+ main: any;
207
+ }, {
208
+ type: "explicit-base64";
209
+ content: string;
210
+ mimeType: string;
211
+ } | {
212
+ type: "relative";
213
+ path: string;
214
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
215
+ type: z.ZodLiteral<"workflow-v1">;
216
+ main: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
217
+ type: z.ZodLiteral<"explicit-base64">;
218
+ mimeType: z.ZodString;
219
+ content: z.ZodString;
220
+ }, "strict", z.ZodTypeAny, {
221
+ type: "explicit-base64";
222
+ content: string;
223
+ mimeType: string;
224
+ }, {
225
+ type: "explicit-base64";
226
+ content: string;
227
+ mimeType: string;
228
+ }>, z.ZodObject<{
229
+ type: z.ZodLiteral<"relative">;
230
+ path: z.ZodString;
231
+ }, "strict", z.ZodTypeAny, {
232
+ type: "relative";
233
+ path: string;
234
+ }, {
235
+ type: "relative";
236
+ path: string;
237
+ }>]>, {
238
+ type: "explicit-base64";
239
+ content: string;
240
+ mimeType: string;
241
+ } | {
242
+ type: "absolute-url";
243
+ url: string;
244
+ }, {
245
+ type: "explicit-base64";
246
+ content: string;
247
+ mimeType: string;
248
+ } | {
249
+ type: "relative";
250
+ path: string;
251
+ }>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ type: "workflow-v1";
254
+ main: {
255
+ type: "explicit-base64";
256
+ content: string;
257
+ mimeType: string;
258
+ } | {
259
+ type: "absolute-url";
260
+ url: string;
261
+ };
262
+ }, {
263
+ type: "workflow-v1";
264
+ main: {
265
+ type: "explicit-base64";
266
+ content: string;
267
+ mimeType: string;
268
+ } | {
269
+ type: "relative";
270
+ path: string;
271
+ };
272
+ }>]>]>;
153
273
  model: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
154
274
  type: z.ZodLiteral<"explicit-base64">;
155
275
  mimeType: z.ZodString;
@@ -223,15 +343,21 @@ export declare function BlockComponentsAbsoluteUrl(prefix: string): z.ZodObject<
223
343
  path: string;
224
344
  }>;
225
345
  }, "strip", z.ZodTypeAny, {
226
- ui: {
227
- type: "explicit-base64";
228
- content: string;
229
- mimeType: string;
346
+ workflow: {
347
+ type: string;
348
+ main: any;
230
349
  } | {
231
- type: "absolute-url";
232
- url: string;
350
+ type: "workflow-v1";
351
+ main: {
352
+ type: "explicit-base64";
353
+ content: string;
354
+ mimeType: string;
355
+ } | {
356
+ type: "absolute-url";
357
+ url: string;
358
+ };
233
359
  };
234
- workflow: {
360
+ model: {
235
361
  type: "explicit-base64";
236
362
  content: string;
237
363
  mimeType: string;
@@ -239,7 +365,7 @@ export declare function BlockComponentsAbsoluteUrl(prefix: string): z.ZodObject<
239
365
  type: "absolute-url";
240
366
  url: string;
241
367
  };
242
- model: {
368
+ ui: {
243
369
  type: "explicit-base64";
244
370
  content: string;
245
371
  mimeType: string;
@@ -248,15 +374,25 @@ export declare function BlockComponentsAbsoluteUrl(prefix: string): z.ZodObject<
248
374
  url: string;
249
375
  };
250
376
  }, {
251
- ui: {
377
+ workflow: {
252
378
  type: "explicit-base64";
253
379
  content: string;
254
380
  mimeType: string;
255
381
  } | {
256
382
  type: "relative";
257
383
  path: string;
384
+ } | {
385
+ type: "workflow-v1";
386
+ main: {
387
+ type: "explicit-base64";
388
+ content: string;
389
+ mimeType: string;
390
+ } | {
391
+ type: "relative";
392
+ path: string;
393
+ };
258
394
  };
259
- workflow: {
395
+ model: {
260
396
  type: "explicit-base64";
261
397
  content: string;
262
398
  mimeType: string;
@@ -264,7 +400,7 @@ export declare function BlockComponentsAbsoluteUrl(prefix: string): z.ZodObject<
264
400
  type: "relative";
265
401
  path: string;
266
402
  };
267
- model: {
403
+ ui: {
268
404
  type: "explicit-base64";
269
405
  content: string;
270
406
  mimeType: string;
@@ -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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