@milaboratories/pl-model-middle-layer 1.21.0 → 1.22.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.
- package/dist/block_meta/block_components.cjs +19 -26
- package/dist/block_meta/block_components.cjs.map +1 -1
- package/dist/block_meta/block_components.d.ts +46 -428
- package/dist/block_meta/block_components.d.ts.map +1 -1
- package/dist/block_meta/block_components.js +19 -23
- package/dist/block_meta/block_components.js.map +1 -1
- package/dist/block_meta/block_description.cjs +5 -3
- package/dist/block_meta/block_description.cjs.map +1 -1
- package/dist/block_meta/block_description.d.ts +402 -914
- package/dist/block_meta/block_description.d.ts.map +1 -1
- package/dist/block_meta/block_description.js +5 -3
- package/dist/block_meta/block_description.js.map +1 -1
- package/dist/block_meta/block_id.d.ts +4 -4
- package/dist/block_meta/block_manifest.cjs +10 -1
- package/dist/block_meta/block_manifest.cjs.map +1 -1
- package/dist/block_meta/block_manifest.d.ts +1045 -1623
- package/dist/block_meta/block_manifest.d.ts.map +1 -1
- package/dist/block_meta/block_manifest.js +11 -2
- package/dist/block_meta/block_manifest.js.map +1 -1
- package/dist/block_meta/block_meta.cjs.map +1 -1
- package/dist/block_meta/block_meta.d.ts +164 -246
- package/dist/block_meta/block_meta.d.ts.map +1 -1
- package/dist/block_meta/block_meta.js.map +1 -1
- package/dist/block_meta/content_types.cjs +25 -77
- package/dist/block_meta/content_types.cjs.map +1 -1
- package/dist/block_meta/content_types.d.ts +71 -387
- package/dist/block_meta/content_types.d.ts.map +1 -1
- package/dist/block_meta/content_types.js +26 -64
- package/dist/block_meta/content_types.js.map +1 -1
- package/dist/block_meta/index.d.ts +3 -3
- package/dist/block_registry/block_pack_spec.d.ts +16 -16
- package/dist/block_registry/overview.d.ts +1534 -1534
- package/dist/block_registry/registry_spec.d.ts +12 -12
- package/dist/index.cjs +1 -18
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -3
- package/package.json +2 -2
- package/src/block_meta/block_components.ts +67 -42
- package/src/block_meta/block_description.ts +18 -3
- package/src/block_meta/block_manifest.ts +14 -3
- package/src/block_meta/block_meta.ts +40 -6
- package/src/block_meta/content_types.ts +149 -207
|
@@ -1,286 +1,124 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/block_meta/content_types.d.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
content: z.ZodString;
|
|
7
|
-
}, "strict", z.ZodTypeAny, {
|
|
4
|
+
/** Inlined plain string (e.g. a short text snippet or markdown body). */
|
|
5
|
+
type ContentExplicitString = {
|
|
8
6
|
type: "explicit-string";
|
|
9
7
|
content: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
8
|
+
};
|
|
9
|
+
/** Inlined binary blob carried as base64 (e.g. a serialized logo image). */
|
|
10
|
+
type ContentExplicitBase64 = {
|
|
11
|
+
type: "explicit-base64"; /** MIME type used to interpret `content`. */
|
|
12
|
+
mimeType: string; /** Base64-encoded binary payload. */
|
|
12
13
|
content: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
14
|
+
};
|
|
15
|
+
/** Inlined binary blob carried as raw bytes. Wire form only; not used in JSON. */
|
|
16
|
+
type ContentExplicitBytes = {
|
|
17
|
+
type: "explicit-bytes"; /** MIME type used to interpret `content`. */
|
|
18
|
+
mimeType: string;
|
|
19
|
+
content: Uint8Array;
|
|
20
|
+
};
|
|
21
|
+
/** Reference to a file by path relative to the carrying structure. */
|
|
22
|
+
type ContentRelative = {
|
|
23
|
+
type: "relative";
|
|
24
|
+
path: string;
|
|
25
|
+
};
|
|
26
|
+
/** Reference to a file at an absolute local path. */
|
|
27
|
+
type ContentAbsoluteFile = {
|
|
28
|
+
type: "absolute-file";
|
|
29
|
+
file: string;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Reference to a folder at an absolute local path. Used for UI bundles
|
|
33
|
+
* delivered as folders; the desktop "add block" dialog reads such folders on
|
|
34
|
+
* demand instead of pulling every UI bundle eagerly.
|
|
35
|
+
*/
|
|
36
|
+
type ContentAbsoluteFolder = {
|
|
37
|
+
type: "absolute-folder";
|
|
38
|
+
folder: string;
|
|
39
|
+
};
|
|
40
|
+
/** Reference to a file by remote URL (e.g. served from the registry). */
|
|
41
|
+
type ContentAbsoluteUrl = {
|
|
42
|
+
type: "absolute-url";
|
|
43
|
+
url: string;
|
|
44
|
+
};
|
|
45
|
+
/** Canonical union of every content carrier shape used across the platform. */
|
|
46
|
+
type Content = ContentExplicitString | ContentExplicitBase64 | ContentExplicitBytes | ContentRelative | ContentAbsoluteFile | ContentAbsoluteFolder | ContentAbsoluteUrl;
|
|
47
|
+
/** Inlined or relative-path content (text/binary inlined, or relative path). */
|
|
48
|
+
type ContentExplicitOrRelative = ContentExplicitString | ContentExplicitBase64 | ContentRelative;
|
|
49
|
+
/** Any locally-resolvable content (inlined, relative path, or absolute file). */
|
|
50
|
+
type ContentAnyLocal = ContentExplicitString | ContentExplicitBase64 | ContentRelative | ContentAbsoluteFile;
|
|
51
|
+
/** Text content available locally (inlined, relative path, or absolute file). */
|
|
52
|
+
type ContentAnyTextLocal = ContentExplicitString | ContentRelative | ContentAbsoluteFile;
|
|
53
|
+
/** Binary content available locally (inlined base64, relative path, or absolute file). */
|
|
54
|
+
type ContentAnyBinaryLocal = ContentExplicitBase64 | ContentRelative | ContentAbsoluteFile;
|
|
55
|
+
/** Binary content fully resolved (inlined base64 or absolute file). */
|
|
56
|
+
type ContentAbsoluteBinaryLocal = ContentExplicitBase64 | ContentAbsoluteFile;
|
|
57
|
+
/** Text content fully resolved (inlined string or absolute file). */
|
|
58
|
+
type ContentAbsoluteTextLocal = ContentExplicitString | ContentAbsoluteFile;
|
|
59
|
+
/** Binary content in manifest form (inlined base64 or path relative to the manifest). */
|
|
60
|
+
type ContentRelativeBinary = ContentExplicitBase64 | ContentRelative;
|
|
61
|
+
/** Text content in manifest form (inlined string or path relative to the manifest). */
|
|
62
|
+
type ContentRelativeText = ContentExplicitString | ContentRelative;
|
|
15
63
|
declare const ContentExplicitBase64: z.ZodObject<{
|
|
16
64
|
type: z.ZodLiteral<"explicit-base64">;
|
|
17
65
|
mimeType: z.ZodString;
|
|
18
66
|
content: z.ZodString;
|
|
19
67
|
}, "strict", z.ZodTypeAny, {
|
|
20
68
|
type: "explicit-base64";
|
|
21
|
-
content: string;
|
|
22
69
|
mimeType: string;
|
|
70
|
+
content: string;
|
|
23
71
|
}, {
|
|
24
72
|
type: "explicit-base64";
|
|
25
|
-
content: string;
|
|
26
73
|
mimeType: string;
|
|
74
|
+
content: string;
|
|
27
75
|
}>;
|
|
28
|
-
type ContentExplicitBase64 = z.infer<typeof ContentExplicitBase64>;
|
|
29
|
-
declare const ContentRelative: z.ZodObject<{
|
|
30
|
-
type: z.ZodLiteral<"relative">;
|
|
31
|
-
path: z.ZodString;
|
|
32
|
-
}, "strict", z.ZodTypeAny, {
|
|
33
|
-
type: "relative";
|
|
34
|
-
path: string;
|
|
35
|
-
}, {
|
|
36
|
-
type: "relative";
|
|
37
|
-
path: string;
|
|
38
|
-
}>;
|
|
39
|
-
type ContentRelative = z.infer<typeof ContentRelative>;
|
|
40
|
-
declare const ContentAbsoluteFile: z.ZodObject<{
|
|
41
|
-
type: z.ZodLiteral<"absolute-file">;
|
|
42
|
-
file: z.ZodString;
|
|
43
|
-
}, "strict", z.ZodTypeAny, {
|
|
44
|
-
type: "absolute-file";
|
|
45
|
-
file: string;
|
|
46
|
-
}, {
|
|
47
|
-
type: "absolute-file";
|
|
48
|
-
file: string;
|
|
49
|
-
}>;
|
|
50
|
-
type ContentAbsoluteFile = z.infer<typeof ContentAbsoluteFile>;
|
|
51
|
-
declare const ContentAbsoluteUrl: z.ZodObject<{
|
|
52
|
-
type: z.ZodLiteral<"absolute-url">;
|
|
53
|
-
url: z.ZodString;
|
|
54
|
-
}, "strict", z.ZodTypeAny, {
|
|
55
|
-
type: "absolute-url";
|
|
56
|
-
url: string;
|
|
57
|
-
}, {
|
|
58
|
-
type: "absolute-url";
|
|
59
|
-
url: string;
|
|
60
|
-
}>;
|
|
61
|
-
type ContentAbsoluteUrl = z.infer<typeof ContentAbsoluteUrl>;
|
|
62
76
|
declare const ContentExplicitBytes: z.ZodObject<{
|
|
63
77
|
type: z.ZodLiteral<"explicit-bytes">;
|
|
64
78
|
mimeType: z.ZodString;
|
|
65
79
|
content: z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>;
|
|
66
80
|
}, "strict", z.ZodTypeAny, {
|
|
67
81
|
type: "explicit-bytes";
|
|
68
|
-
content: Uint8Array<ArrayBuffer>;
|
|
69
82
|
mimeType: string;
|
|
83
|
+
content: Uint8Array<ArrayBuffer>;
|
|
70
84
|
}, {
|
|
71
85
|
type: "explicit-bytes";
|
|
72
|
-
content: Uint8Array<ArrayBuffer>;
|
|
73
86
|
mimeType: string;
|
|
87
|
+
content: Uint8Array<ArrayBuffer>;
|
|
74
88
|
}>;
|
|
75
|
-
|
|
76
|
-
declare const ContentAbsoluteFolder: z.ZodObject<{
|
|
77
|
-
type: z.ZodLiteral<"absolute-folder">;
|
|
78
|
-
folder: z.ZodString;
|
|
79
|
-
}, "strict", z.ZodTypeAny, {
|
|
80
|
-
type: "absolute-folder";
|
|
81
|
-
folder: string;
|
|
82
|
-
}, {
|
|
83
|
-
type: "absolute-folder";
|
|
84
|
-
folder: string;
|
|
85
|
-
}>;
|
|
86
|
-
type ContentAbsoluteFolder = z.infer<typeof ContentAbsoluteFolder>;
|
|
87
|
-
declare const ContentAny: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
88
|
-
type: z.ZodLiteral<"explicit-string">;
|
|
89
|
-
content: z.ZodString;
|
|
90
|
-
}, "strict", z.ZodTypeAny, {
|
|
91
|
-
type: "explicit-string";
|
|
92
|
-
content: string;
|
|
93
|
-
}, {
|
|
94
|
-
type: "explicit-string";
|
|
95
|
-
content: string;
|
|
96
|
-
}>, z.ZodObject<{
|
|
97
|
-
type: z.ZodLiteral<"explicit-base64">;
|
|
98
|
-
mimeType: z.ZodString;
|
|
99
|
-
content: z.ZodString;
|
|
100
|
-
}, "strict", z.ZodTypeAny, {
|
|
101
|
-
type: "explicit-base64";
|
|
102
|
-
content: string;
|
|
103
|
-
mimeType: string;
|
|
104
|
-
}, {
|
|
105
|
-
type: "explicit-base64";
|
|
106
|
-
content: string;
|
|
107
|
-
mimeType: string;
|
|
108
|
-
}>, z.ZodObject<{
|
|
89
|
+
declare const ContentRelative: z.ZodObject<{
|
|
109
90
|
type: z.ZodLiteral<"relative">;
|
|
110
91
|
path: z.ZodString;
|
|
111
92
|
}, "strict", z.ZodTypeAny, {
|
|
112
|
-
type: "relative";
|
|
113
93
|
path: string;
|
|
114
|
-
}, {
|
|
115
94
|
type: "relative";
|
|
116
|
-
path: string;
|
|
117
|
-
}>, z.ZodObject<{
|
|
118
|
-
type: z.ZodLiteral<"absolute-file">;
|
|
119
|
-
file: z.ZodString;
|
|
120
|
-
}, "strict", z.ZodTypeAny, {
|
|
121
|
-
type: "absolute-file";
|
|
122
|
-
file: string;
|
|
123
95
|
}, {
|
|
124
|
-
type: "absolute-file";
|
|
125
|
-
file: string;
|
|
126
|
-
}>, z.ZodObject<{
|
|
127
|
-
type: z.ZodLiteral<"absolute-url">;
|
|
128
|
-
url: z.ZodString;
|
|
129
|
-
}, "strict", z.ZodTypeAny, {
|
|
130
|
-
type: "absolute-url";
|
|
131
|
-
url: string;
|
|
132
|
-
}, {
|
|
133
|
-
type: "absolute-url";
|
|
134
|
-
url: string;
|
|
135
|
-
}>]>;
|
|
136
|
-
type ContentAny = z.infer<typeof ContentAny>;
|
|
137
|
-
declare const ContentExplicitOrRelative: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
138
|
-
type: z.ZodLiteral<"explicit-string">;
|
|
139
|
-
content: z.ZodString;
|
|
140
|
-
}, "strict", z.ZodTypeAny, {
|
|
141
|
-
type: "explicit-string";
|
|
142
|
-
content: string;
|
|
143
|
-
}, {
|
|
144
|
-
type: "explicit-string";
|
|
145
|
-
content: string;
|
|
146
|
-
}>, z.ZodObject<{
|
|
147
|
-
type: z.ZodLiteral<"explicit-base64">;
|
|
148
|
-
mimeType: z.ZodString;
|
|
149
|
-
content: z.ZodString;
|
|
150
|
-
}, "strict", z.ZodTypeAny, {
|
|
151
|
-
type: "explicit-base64";
|
|
152
|
-
content: string;
|
|
153
|
-
mimeType: string;
|
|
154
|
-
}, {
|
|
155
|
-
type: "explicit-base64";
|
|
156
|
-
content: string;
|
|
157
|
-
mimeType: string;
|
|
158
|
-
}>, z.ZodObject<{
|
|
159
|
-
type: z.ZodLiteral<"relative">;
|
|
160
|
-
path: z.ZodString;
|
|
161
|
-
}, "strict", z.ZodTypeAny, {
|
|
162
|
-
type: "relative";
|
|
163
96
|
path: string;
|
|
164
|
-
}, {
|
|
165
97
|
type: "relative";
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
type ContentExplicitOrRelative = z.infer<typeof ContentExplicitOrRelative>;
|
|
169
|
-
declare const ContentAnyLocal: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
170
|
-
type: z.ZodLiteral<"explicit-string">;
|
|
171
|
-
content: z.ZodString;
|
|
172
|
-
}, "strict", z.ZodTypeAny, {
|
|
173
|
-
type: "explicit-string";
|
|
174
|
-
content: string;
|
|
175
|
-
}, {
|
|
176
|
-
type: "explicit-string";
|
|
177
|
-
content: string;
|
|
178
|
-
}>, z.ZodObject<{
|
|
98
|
+
}>;
|
|
99
|
+
declare const ContentRelativeBinary: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
179
100
|
type: z.ZodLiteral<"explicit-base64">;
|
|
180
101
|
mimeType: z.ZodString;
|
|
181
102
|
content: z.ZodString;
|
|
182
103
|
}, "strict", z.ZodTypeAny, {
|
|
183
104
|
type: "explicit-base64";
|
|
184
|
-
content: string;
|
|
185
105
|
mimeType: string;
|
|
186
|
-
}, {
|
|
187
|
-
type: "explicit-base64";
|
|
188
|
-
content: string;
|
|
189
|
-
mimeType: string;
|
|
190
|
-
}>, z.ZodObject<{
|
|
191
|
-
type: z.ZodLiteral<"relative">;
|
|
192
|
-
path: z.ZodString;
|
|
193
|
-
}, "strict", z.ZodTypeAny, {
|
|
194
|
-
type: "relative";
|
|
195
|
-
path: string;
|
|
196
|
-
}, {
|
|
197
|
-
type: "relative";
|
|
198
|
-
path: string;
|
|
199
|
-
}>, z.ZodObject<{
|
|
200
|
-
type: z.ZodLiteral<"absolute-file">;
|
|
201
|
-
file: z.ZodString;
|
|
202
|
-
}, "strict", z.ZodTypeAny, {
|
|
203
|
-
type: "absolute-file";
|
|
204
|
-
file: string;
|
|
205
|
-
}, {
|
|
206
|
-
type: "absolute-file";
|
|
207
|
-
file: string;
|
|
208
|
-
}>]>;
|
|
209
|
-
type ContentAnyLocal = z.infer<typeof ContentAnyLocal>;
|
|
210
|
-
declare const ContentAnyRemote: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
211
|
-
type: z.ZodLiteral<"explicit-string">;
|
|
212
|
-
content: z.ZodString;
|
|
213
|
-
}, "strict", z.ZodTypeAny, {
|
|
214
|
-
type: "explicit-string";
|
|
215
106
|
content: string;
|
|
216
107
|
}, {
|
|
217
|
-
type: "explicit-string";
|
|
218
|
-
content: string;
|
|
219
|
-
}>, z.ZodObject<{
|
|
220
|
-
type: z.ZodLiteral<"explicit-base64">;
|
|
221
|
-
mimeType: z.ZodString;
|
|
222
|
-
content: z.ZodString;
|
|
223
|
-
}, "strict", z.ZodTypeAny, {
|
|
224
108
|
type: "explicit-base64";
|
|
225
|
-
content: string;
|
|
226
109
|
mimeType: string;
|
|
227
|
-
}, {
|
|
228
|
-
type: "explicit-base64";
|
|
229
110
|
content: string;
|
|
230
|
-
mimeType: string;
|
|
231
111
|
}>, z.ZodObject<{
|
|
232
112
|
type: z.ZodLiteral<"relative">;
|
|
233
113
|
path: z.ZodString;
|
|
234
114
|
}, "strict", z.ZodTypeAny, {
|
|
235
|
-
type: "relative";
|
|
236
115
|
path: string;
|
|
237
|
-
}, {
|
|
238
116
|
type: "relative";
|
|
239
|
-
path: string;
|
|
240
|
-
}>, z.ZodObject<{
|
|
241
|
-
type: z.ZodLiteral<"absolute-url">;
|
|
242
|
-
url: z.ZodString;
|
|
243
|
-
}, "strict", z.ZodTypeAny, {
|
|
244
|
-
type: "absolute-url";
|
|
245
|
-
url: string;
|
|
246
117
|
}, {
|
|
247
|
-
type: "absolute-url";
|
|
248
|
-
url: string;
|
|
249
|
-
}>]>;
|
|
250
|
-
type ContentAnyRemote = z.infer<typeof ContentAnyRemote>;
|
|
251
|
-
declare const ContentAnyBinaryLocal: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
252
|
-
type: z.ZodLiteral<"explicit-base64">;
|
|
253
|
-
mimeType: z.ZodString;
|
|
254
|
-
content: z.ZodString;
|
|
255
|
-
}, "strict", z.ZodTypeAny, {
|
|
256
|
-
type: "explicit-base64";
|
|
257
|
-
content: string;
|
|
258
|
-
mimeType: string;
|
|
259
|
-
}, {
|
|
260
|
-
type: "explicit-base64";
|
|
261
|
-
content: string;
|
|
262
|
-
mimeType: string;
|
|
263
|
-
}>, z.ZodObject<{
|
|
264
|
-
type: z.ZodLiteral<"relative">;
|
|
265
|
-
path: z.ZodString;
|
|
266
|
-
}, "strict", z.ZodTypeAny, {
|
|
267
|
-
type: "relative";
|
|
268
118
|
path: string;
|
|
269
|
-
}, {
|
|
270
119
|
type: "relative";
|
|
271
|
-
path: string;
|
|
272
|
-
}>, z.ZodObject<{
|
|
273
|
-
type: z.ZodLiteral<"absolute-file">;
|
|
274
|
-
file: z.ZodString;
|
|
275
|
-
}, "strict", z.ZodTypeAny, {
|
|
276
|
-
type: "absolute-file";
|
|
277
|
-
file: string;
|
|
278
|
-
}, {
|
|
279
|
-
type: "absolute-file";
|
|
280
|
-
file: string;
|
|
281
120
|
}>]>;
|
|
282
|
-
|
|
283
|
-
declare const ContentAnyTextLocal: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
121
|
+
declare const ContentRelativeText: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
284
122
|
type: z.ZodLiteral<"explicit-string">;
|
|
285
123
|
content: z.ZodString;
|
|
286
124
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -293,179 +131,33 @@ declare const ContentAnyTextLocal: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
293
131
|
type: z.ZodLiteral<"relative">;
|
|
294
132
|
path: z.ZodString;
|
|
295
133
|
}, "strict", z.ZodTypeAny, {
|
|
296
|
-
type: "relative";
|
|
297
134
|
path: string;
|
|
298
|
-
}, {
|
|
299
135
|
type: "relative";
|
|
300
|
-
path: string;
|
|
301
|
-
}>, z.ZodObject<{
|
|
302
|
-
type: z.ZodLiteral<"absolute-file">;
|
|
303
|
-
file: z.ZodString;
|
|
304
|
-
}, "strict", z.ZodTypeAny, {
|
|
305
|
-
type: "absolute-file";
|
|
306
|
-
file: string;
|
|
307
136
|
}, {
|
|
308
|
-
|
|
309
|
-
|
|
137
|
+
path: string;
|
|
138
|
+
type: "relative";
|
|
310
139
|
}>]>;
|
|
311
|
-
|
|
312
|
-
declare const ContentAbsoluteBinaryRemote: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
140
|
+
declare const DescriptionContentBinary: z.ZodUnion<[z.ZodEffects<z.ZodString, ContentRelativeBinary, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
313
141
|
type: z.ZodLiteral<"explicit-base64">;
|
|
314
142
|
mimeType: z.ZodString;
|
|
315
143
|
content: z.ZodString;
|
|
316
144
|
}, "strict", z.ZodTypeAny, {
|
|
317
145
|
type: "explicit-base64";
|
|
318
|
-
content: string;
|
|
319
146
|
mimeType: string;
|
|
320
|
-
}, {
|
|
321
|
-
type: "explicit-base64";
|
|
322
|
-
content: string;
|
|
323
|
-
mimeType: string;
|
|
324
|
-
}>, z.ZodObject<{
|
|
325
|
-
type: z.ZodLiteral<"absolute-url">;
|
|
326
|
-
url: z.ZodString;
|
|
327
|
-
}, "strict", z.ZodTypeAny, {
|
|
328
|
-
type: "absolute-url";
|
|
329
|
-
url: string;
|
|
330
|
-
}, {
|
|
331
|
-
type: "absolute-url";
|
|
332
|
-
url: string;
|
|
333
|
-
}>]>;
|
|
334
|
-
type ContentAbsoluteBinaryRemote = z.infer<typeof ContentAbsoluteBinaryRemote>;
|
|
335
|
-
declare const ContentAbsoluteBinaryLocal: 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
147
|
content: string;
|
|
342
|
-
mimeType: string;
|
|
343
148
|
}, {
|
|
344
149
|
type: "explicit-base64";
|
|
345
|
-
content: string;
|
|
346
150
|
mimeType: string;
|
|
347
|
-
}>, z.ZodObject<{
|
|
348
|
-
type: z.ZodLiteral<"absolute-file">;
|
|
349
|
-
file: z.ZodString;
|
|
350
|
-
}, "strict", z.ZodTypeAny, {
|
|
351
|
-
type: "absolute-file";
|
|
352
|
-
file: string;
|
|
353
|
-
}, {
|
|
354
|
-
type: "absolute-file";
|
|
355
|
-
file: string;
|
|
356
|
-
}>]>;
|
|
357
|
-
type ContentAbsoluteBinaryLocal = z.infer<typeof ContentAbsoluteBinaryLocal>;
|
|
358
|
-
declare const ContentAbsoluteTextRemote: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
359
|
-
type: z.ZodLiteral<"explicit-string">;
|
|
360
|
-
content: z.ZodString;
|
|
361
|
-
}, "strict", z.ZodTypeAny, {
|
|
362
|
-
type: "explicit-string";
|
|
363
|
-
content: string;
|
|
364
|
-
}, {
|
|
365
|
-
type: "explicit-string";
|
|
366
|
-
content: string;
|
|
367
|
-
}>, z.ZodObject<{
|
|
368
|
-
type: z.ZodLiteral<"absolute-url">;
|
|
369
|
-
url: z.ZodString;
|
|
370
|
-
}, "strict", z.ZodTypeAny, {
|
|
371
|
-
type: "absolute-url";
|
|
372
|
-
url: string;
|
|
373
|
-
}, {
|
|
374
|
-
type: "absolute-url";
|
|
375
|
-
url: string;
|
|
376
|
-
}>]>;
|
|
377
|
-
type ContentAbsoluteTextRemote = z.infer<typeof ContentAbsoluteTextRemote>;
|
|
378
|
-
declare const ContentAbsoluteTextLocal: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
379
|
-
type: z.ZodLiteral<"explicit-string">;
|
|
380
|
-
content: z.ZodString;
|
|
381
|
-
}, "strict", z.ZodTypeAny, {
|
|
382
|
-
type: "explicit-string";
|
|
383
|
-
content: string;
|
|
384
|
-
}, {
|
|
385
|
-
type: "explicit-string";
|
|
386
|
-
content: string;
|
|
387
|
-
}>, z.ZodObject<{
|
|
388
|
-
type: z.ZodLiteral<"absolute-file">;
|
|
389
|
-
file: z.ZodString;
|
|
390
|
-
}, "strict", z.ZodTypeAny, {
|
|
391
|
-
type: "absolute-file";
|
|
392
|
-
file: string;
|
|
393
|
-
}, {
|
|
394
|
-
type: "absolute-file";
|
|
395
|
-
file: string;
|
|
396
|
-
}>]>;
|
|
397
|
-
type ContentAbsoluteTextLocal = z.infer<typeof ContentAbsoluteTextLocal>;
|
|
398
|
-
declare const ContentRelativeBinary: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
399
|
-
type: z.ZodLiteral<"explicit-base64">;
|
|
400
|
-
mimeType: z.ZodString;
|
|
401
|
-
content: z.ZodString;
|
|
402
|
-
}, "strict", z.ZodTypeAny, {
|
|
403
|
-
type: "explicit-base64";
|
|
404
|
-
content: string;
|
|
405
|
-
mimeType: string;
|
|
406
|
-
}, {
|
|
407
|
-
type: "explicit-base64";
|
|
408
|
-
content: string;
|
|
409
|
-
mimeType: string;
|
|
410
|
-
}>, z.ZodObject<{
|
|
411
|
-
type: z.ZodLiteral<"relative">;
|
|
412
|
-
path: z.ZodString;
|
|
413
|
-
}, "strict", z.ZodTypeAny, {
|
|
414
|
-
type: "relative";
|
|
415
|
-
path: string;
|
|
416
|
-
}, {
|
|
417
|
-
type: "relative";
|
|
418
|
-
path: string;
|
|
419
|
-
}>]>;
|
|
420
|
-
type ContentRelativeBinary = z.infer<typeof ContentRelativeBinary>;
|
|
421
|
-
declare const ContentRelativeText: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
422
|
-
type: z.ZodLiteral<"explicit-string">;
|
|
423
|
-
content: z.ZodString;
|
|
424
|
-
}, "strict", z.ZodTypeAny, {
|
|
425
|
-
type: "explicit-string";
|
|
426
|
-
content: string;
|
|
427
|
-
}, {
|
|
428
|
-
type: "explicit-string";
|
|
429
151
|
content: string;
|
|
430
152
|
}>, z.ZodObject<{
|
|
431
153
|
type: z.ZodLiteral<"relative">;
|
|
432
154
|
path: z.ZodString;
|
|
433
155
|
}, "strict", z.ZodTypeAny, {
|
|
434
|
-
type: "relative";
|
|
435
156
|
path: string;
|
|
436
|
-
}, {
|
|
437
|
-
type: "relative";
|
|
438
|
-
path: string;
|
|
439
|
-
}>]>;
|
|
440
|
-
type ContentRelativeText = z.infer<typeof ContentRelativeText>;
|
|
441
|
-
declare const DescriptionContentBinary: z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
442
157
|
type: "relative";
|
|
443
|
-
path: string;
|
|
444
|
-
} | {
|
|
445
|
-
type: "explicit-base64";
|
|
446
|
-
content: string;
|
|
447
|
-
mimeType: string;
|
|
448
|
-
}, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
449
|
-
type: z.ZodLiteral<"explicit-base64">;
|
|
450
|
-
mimeType: z.ZodString;
|
|
451
|
-
content: z.ZodString;
|
|
452
|
-
}, "strict", z.ZodTypeAny, {
|
|
453
|
-
type: "explicit-base64";
|
|
454
|
-
content: string;
|
|
455
|
-
mimeType: string;
|
|
456
158
|
}, {
|
|
457
|
-
type: "explicit-base64";
|
|
458
|
-
content: string;
|
|
459
|
-
mimeType: string;
|
|
460
|
-
}>, z.ZodObject<{
|
|
461
|
-
type: z.ZodLiteral<"relative">;
|
|
462
|
-
path: z.ZodString;
|
|
463
|
-
}, "strict", z.ZodTypeAny, {
|
|
464
|
-
type: "relative";
|
|
465
159
|
path: string;
|
|
466
|
-
}, {
|
|
467
160
|
type: "relative";
|
|
468
|
-
path: string;
|
|
469
161
|
}>, z.ZodObject<{
|
|
470
162
|
type: z.ZodLiteral<"absolute-file">;
|
|
471
163
|
file: z.ZodString;
|
|
@@ -476,14 +168,7 @@ declare const DescriptionContentBinary: z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
|
476
168
|
type: "absolute-file";
|
|
477
169
|
file: string;
|
|
478
170
|
}>]>]>;
|
|
479
|
-
|
|
480
|
-
declare const DescriptionContentText: z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
481
|
-
type: "relative";
|
|
482
|
-
path: string;
|
|
483
|
-
} | {
|
|
484
|
-
type: "explicit-string";
|
|
485
|
-
content: string;
|
|
486
|
-
}, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
171
|
+
declare const DescriptionContentText: z.ZodUnion<[z.ZodEffects<z.ZodString, ContentRelativeText, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
487
172
|
type: z.ZodLiteral<"explicit-string">;
|
|
488
173
|
content: z.ZodString;
|
|
489
174
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -496,11 +181,11 @@ declare const DescriptionContentText: z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
|
496
181
|
type: z.ZodLiteral<"relative">;
|
|
497
182
|
path: z.ZodString;
|
|
498
183
|
}, "strict", z.ZodTypeAny, {
|
|
499
|
-
type: "relative";
|
|
500
184
|
path: string;
|
|
501
|
-
}, {
|
|
502
185
|
type: "relative";
|
|
186
|
+
}, {
|
|
503
187
|
path: string;
|
|
188
|
+
type: "relative";
|
|
504
189
|
}>, z.ZodObject<{
|
|
505
190
|
type: z.ZodLiteral<"absolute-file">;
|
|
506
191
|
file: z.ZodString;
|
|
@@ -511,7 +196,6 @@ declare const DescriptionContentText: z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
|
511
196
|
type: "absolute-file";
|
|
512
197
|
file: string;
|
|
513
198
|
}>]>]>;
|
|
514
|
-
type DescriptionContentText = z.infer<typeof DescriptionContentText>;
|
|
515
199
|
//#endregion
|
|
516
|
-
export {
|
|
200
|
+
export { Content, ContentAbsoluteBinaryLocal, ContentAbsoluteFile, ContentAbsoluteFolder, ContentAbsoluteTextLocal, ContentAbsoluteUrl, ContentAnyBinaryLocal, ContentAnyLocal, ContentAnyTextLocal, ContentExplicitBase64, ContentExplicitBytes, ContentExplicitOrRelative, ContentExplicitString, ContentRelative, ContentRelativeBinary, ContentRelativeText, DescriptionContentBinary, DescriptionContentText };
|
|
517
201
|
//# sourceMappingURL=content_types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content_types.d.ts","names":[],"sources":["../../src/block_meta/content_types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"content_types.d.ts","names":[],"sources":["../../src/block_meta/content_types.ts"],"mappings":";;;;KAUY,qBAAA;EACV,IAAA;EACA,OAAA;AAAA;;KAIU,qBAAA;EACV,IAAA,qBAD+B;EAG/B,QAAA,UAH+B;EAK/B,OAAA;AAAA;;KAIU,oBAAA;EACV,IAAA,oBADU;EAGV,QAAA;EACA,OAAA,EAAS,UAAA;AAAA;;KAIC,eAAA;EACV,IAAA;EACA,IAAA;AAAA;;KAIU,mBAAA;EACV,IAAA;EACA,IAAA;AAAA;;AAFF;;;;KAUY,qBAAA;EACV,IAAA;EACA,MAAA;AAAA;;KAIU,kBAAA;EACV,IAAA;EACA,GAAA;AAAA;;KAIU,OAAA,GACR,qBAAA,GACA,qBAAA,GACA,oBAAA,GACA,eAAA,GACA,mBAAA,GACA,qBAAA,GACA,kBAAA;AAPJ;AAAA,KAeY,yBAAA,GACR,qBAAA,GACA,qBAAA,GACA,eAAA;;KAGQ,eAAA,GACR,qBAAA,GACA,qBAAA,GACA,eAAA,GACA,mBAAA;;KAGQ,mBAAA,GAAsB,qBAAA,GAAwB,eAAA,GAAkB,mBAAA;;KAGhE,qBAAA,GAAwB,qBAAA,GAAwB,eAAA,GAAkB,mBAAA;;KAGlE,0BAAA,GAA6B,qBAAA,GAAwB,mBAAA;;KAGrD,wBAAA,GAA2B,qBAAA,GAAwB,mBAAA;;KAGnD,qBAAA,GAAwB,qBAAA,GAAwB,eAAA;;KAGhD,mBAAA,GAAsB,qBAAA,GAAwB,eAAA;AAAA,cAkB7C,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAQrB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAQpB,eAAA,EAAe,CAAA,CAAA,SAAA;;;;;;;;;;cAcf,qBAAA,EAAqB,CAAA,CAAA,qBAAA,UAAA,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAKrB,mBAAA,EAAmB,CAAA,CAAA,qBAAA,UAAA,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAYnB,wBAAA,EAAwB,CAAA,CAAA,QAAA,EAAA,CAAA,CAAA,UAAA,CAAA,CAAA,CAAA,SAAA,EAAA,qBAAA,WAAA,CAAA,CAAA,qBAAA,UAAA,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAWxB,sBAAA,EAAsB,CAAA,CAAA,QAAA,EAAA,CAAA,CAAA,UAAA,CAAA,CAAA,CAAA,SAAA,EAAA,mBAAA,WAAA,CAAA,CAAA,qBAAA,UAAA,CAAA,CAAA,SAAA"}
|