@milaboratories/pl-model-middle-layer 1.2.19 → 1.3.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 (31) hide show
  1. package/dist/block_meta/block_components.d.ts +213 -77
  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 +1245 -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} +1 -167
  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/index.js +1 -1
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.mjs +114 -104
  20. package/dist/index.mjs.map +1 -1
  21. package/package.json +3 -3
  22. package/src/block_meta/block_components.ts +2 -5
  23. package/src/block_meta/block_description.ts +29 -0
  24. package/src/block_meta/block_manifest.ts +38 -0
  25. package/src/block_meta/{meta.ts → block_meta.ts} +0 -13
  26. package/src/block_meta/content_conversion.ts +24 -4
  27. package/src/block_meta/content_types.ts +14 -3
  28. package/src/block_meta/index.ts +6 -52
  29. package/dist/block_meta/block_pack_id.d.ts.map +0 -1
  30. package/dist/block_meta/meta.d.ts.map +0 -1
  31. /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
150
  ui: string;
49
- workflow: string;
151
+ workflow: {
152
+ type: string;
153
+ main: any;
154
+ } | {
155
+ type: "workflow-v1";
156
+ main: string;
157
+ };
50
158
  model: string;
51
159
  }, {
52
160
  ui: string;
53
- workflow: string;
161
+ workflow: string | {
162
+ type: "workflow-v1";
163
+ main: string;
164
+ };
54
165
  model: string;
55
166
  }>;
56
167
  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
- workflow: {
94
- type: "relative";
95
- path: string;
96
- };
97
- model: {
98
- type: "relative";
99
- path: string;
100
- };
101
- }, {
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;
113
- };
114
- }>;
115
- export type BlockComponentsManifest = z.infer<typeof BlockComponentsManifest>;
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;
@@ -232,12 +352,18 @@ export declare function BlockComponentsAbsoluteUrl(prefix: string): z.ZodObject<
232
352
  url: string;
233
353
  };
234
354
  workflow: {
235
- type: "explicit-base64";
236
- content: string;
237
- mimeType: string;
355
+ type: string;
356
+ main: any;
238
357
  } | {
239
- type: "absolute-url";
240
- url: string;
358
+ type: "workflow-v1";
359
+ main: {
360
+ type: "explicit-base64";
361
+ content: string;
362
+ mimeType: string;
363
+ } | {
364
+ type: "absolute-url";
365
+ url: string;
366
+ };
241
367
  };
242
368
  model: {
243
369
  type: "explicit-base64";
@@ -263,6 +389,16 @@ export declare function BlockComponentsAbsoluteUrl(prefix: string): z.ZodObject<
263
389
  } | {
264
390
  type: "relative";
265
391
  path: string;
392
+ } | {
393
+ type: "workflow-v1";
394
+ main: {
395
+ type: "explicit-base64";
396
+ content: string;
397
+ mimeType: string;
398
+ } | {
399
+ type: "relative";
400
+ path: string;
401
+ };
266
402
  };
267
403
  model: {
268
404
  type: "explicit-base64";
@@ -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,M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