@milaboratories/pl-model-middle-layer 1.19.4 → 1.20.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.d.ts +46 -46
- package/dist/block_meta/block_description.d.ts +2298 -824
- package/dist/block_meta/block_description.d.ts.map +1 -1
- package/dist/block_meta/block_manifest.d.ts +4853 -2214
- package/dist/block_meta/block_manifest.d.ts.map +1 -1
- package/dist/block_meta/block_meta.cjs +3 -2
- package/dist/block_meta/block_meta.cjs.map +1 -1
- package/dist/block_meta/block_meta.d.ts +1041 -253
- package/dist/block_meta/block_meta.d.ts.map +1 -1
- package/dist/block_meta/block_meta.js +3 -2
- package/dist/block_meta/block_meta.js.map +1 -1
- package/dist/block_meta/content_types.d.ts +26 -26
- package/dist/block_registry/block_pack_spec.d.ts +8 -8
- package/dist/block_registry/overview.d.ts +10368 -6188
- package/dist/block_registry/overview.d.ts.map +1 -1
- package/dist/block_registry/registry_spec.d.ts +20 -20
- package/package.json +3 -3
- package/src/block_meta/block_meta.test.ts +44 -0
- package/src/block_meta/block_meta.ts +57 -36
|
@@ -44,7 +44,20 @@ declare function BlockPackMeta<const LongStringType extends z.ZodTypeAny, const
|
|
|
44
44
|
* If not provided, the block is supported on all operating systems.
|
|
45
45
|
*/
|
|
46
46
|
supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
|
|
47
|
-
|
|
47
|
+
/**
|
|
48
|
+
* Runtime capabilities the block needs from the backend (e.g.
|
|
49
|
+
* "wasm:v1"). Desktop refuses to install if any listed token is
|
|
50
|
+
* missing from the backend's `serverInfo.capabilities`.
|
|
51
|
+
*
|
|
52
|
+
* Tokens follow the backend's `<feature>:<version>` format defined in
|
|
53
|
+
* `core/pl/platform/api/plapiserver/server_capabilities.go`. The
|
|
54
|
+
* schema itself accepts loose strings (not an enum) so future
|
|
55
|
+
* capabilities don't break Desktops that ship before each token is
|
|
56
|
+
* added — the same forward-compat property `BlockPackMeta` itself
|
|
57
|
+
* enjoys at the field level, applied recursively at the token level.
|
|
58
|
+
*/
|
|
59
|
+
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
60
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
48
61
|
title: z.ZodString;
|
|
49
62
|
description: z.ZodString;
|
|
50
63
|
longDescription: z.ZodOptional<LongStringType>;
|
|
@@ -85,7 +98,20 @@ declare function BlockPackMeta<const LongStringType extends z.ZodTypeAny, const
|
|
|
85
98
|
* If not provided, the block is supported on all operating systems.
|
|
86
99
|
*/
|
|
87
100
|
supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
|
|
88
|
-
|
|
101
|
+
/**
|
|
102
|
+
* Runtime capabilities the block needs from the backend (e.g.
|
|
103
|
+
* "wasm:v1"). Desktop refuses to install if any listed token is
|
|
104
|
+
* missing from the backend's `serverInfo.capabilities`.
|
|
105
|
+
*
|
|
106
|
+
* Tokens follow the backend's `<feature>:<version>` format defined in
|
|
107
|
+
* `core/pl/platform/api/plapiserver/server_capabilities.go`. The
|
|
108
|
+
* schema itself accepts loose strings (not an enum) so future
|
|
109
|
+
* capabilities don't break Desktops that ship before each token is
|
|
110
|
+
* added — the same forward-compat property `BlockPackMeta` itself
|
|
111
|
+
* enjoys at the field level, applied recursively at the token level.
|
|
112
|
+
*/
|
|
113
|
+
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
114
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
89
115
|
title: z.ZodString;
|
|
90
116
|
description: z.ZodString;
|
|
91
117
|
longDescription: z.ZodOptional<LongStringType>;
|
|
@@ -126,7 +152,20 @@ declare function BlockPackMeta<const LongStringType extends z.ZodTypeAny, const
|
|
|
126
152
|
* If not provided, the block is supported on all operating systems.
|
|
127
153
|
*/
|
|
128
154
|
supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
|
|
129
|
-
|
|
155
|
+
/**
|
|
156
|
+
* Runtime capabilities the block needs from the backend (e.g.
|
|
157
|
+
* "wasm:v1"). Desktop refuses to install if any listed token is
|
|
158
|
+
* missing from the backend's `serverInfo.capabilities`.
|
|
159
|
+
*
|
|
160
|
+
* Tokens follow the backend's `<feature>:<version>` format defined in
|
|
161
|
+
* `core/pl/platform/api/plapiserver/server_capabilities.go`. The
|
|
162
|
+
* schema itself accepts loose strings (not an enum) so future
|
|
163
|
+
* capabilities don't break Desktops that ship before each token is
|
|
164
|
+
* added — the same forward-compat property `BlockPackMeta` itself
|
|
165
|
+
* enjoys at the field level, applied recursively at the token level.
|
|
166
|
+
*/
|
|
167
|
+
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
168
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
130
169
|
declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
131
170
|
title: z.ZodString;
|
|
132
171
|
description: z.ZodString;
|
|
@@ -134,8 +173,8 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
134
173
|
type: "explicit-string";
|
|
135
174
|
content: string;
|
|
136
175
|
} | {
|
|
137
|
-
path: string;
|
|
138
176
|
type: "relative";
|
|
177
|
+
path: string;
|
|
139
178
|
}, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
140
179
|
type: z.ZodLiteral<"explicit-string">;
|
|
141
180
|
content: z.ZodString;
|
|
@@ -149,11 +188,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
149
188
|
type: z.ZodLiteral<"relative">;
|
|
150
189
|
path: z.ZodString;
|
|
151
190
|
}, "strict", z.ZodTypeAny, {
|
|
152
|
-
path: string;
|
|
153
191
|
type: "relative";
|
|
154
|
-
}, {
|
|
155
192
|
path: string;
|
|
193
|
+
}, {
|
|
156
194
|
type: "relative";
|
|
195
|
+
path: string;
|
|
157
196
|
}>, z.ZodObject<{
|
|
158
197
|
type: z.ZodLiteral<"absolute-file">;
|
|
159
198
|
file: z.ZodString;
|
|
@@ -168,8 +207,8 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
168
207
|
type: "explicit-string";
|
|
169
208
|
content: string;
|
|
170
209
|
} | {
|
|
171
|
-
path: string;
|
|
172
210
|
type: "relative";
|
|
211
|
+
path: string;
|
|
173
212
|
}, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
174
213
|
type: z.ZodLiteral<"explicit-string">;
|
|
175
214
|
content: z.ZodString;
|
|
@@ -183,11 +222,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
183
222
|
type: z.ZodLiteral<"relative">;
|
|
184
223
|
path: z.ZodString;
|
|
185
224
|
}, "strict", z.ZodTypeAny, {
|
|
186
|
-
path: string;
|
|
187
225
|
type: "relative";
|
|
188
|
-
}, {
|
|
189
226
|
path: string;
|
|
227
|
+
}, {
|
|
190
228
|
type: "relative";
|
|
229
|
+
path: string;
|
|
191
230
|
}>, z.ZodObject<{
|
|
192
231
|
type: z.ZodLiteral<"absolute-file">;
|
|
193
232
|
file: z.ZodString;
|
|
@@ -199,12 +238,12 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
199
238
|
file: string;
|
|
200
239
|
}>]>]>>;
|
|
201
240
|
logo: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
202
|
-
path: string;
|
|
203
|
-
type: "relative";
|
|
204
|
-
} | {
|
|
205
241
|
type: "explicit-base64";
|
|
206
242
|
mimeType: string;
|
|
207
243
|
content: string;
|
|
244
|
+
} | {
|
|
245
|
+
type: "relative";
|
|
246
|
+
path: string;
|
|
208
247
|
}, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
209
248
|
type: z.ZodLiteral<"explicit-base64">;
|
|
210
249
|
mimeType: z.ZodString;
|
|
@@ -221,11 +260,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
221
260
|
type: z.ZodLiteral<"relative">;
|
|
222
261
|
path: z.ZodString;
|
|
223
262
|
}, "strict", z.ZodTypeAny, {
|
|
224
|
-
path: string;
|
|
225
263
|
type: "relative";
|
|
226
|
-
}, {
|
|
227
264
|
path: string;
|
|
265
|
+
}, {
|
|
228
266
|
type: "relative";
|
|
267
|
+
path: string;
|
|
229
268
|
}>, z.ZodObject<{
|
|
230
269
|
type: z.ZodLiteral<"absolute-file">;
|
|
231
270
|
file: z.ZodString;
|
|
@@ -244,12 +283,12 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
244
283
|
name: z.ZodString;
|
|
245
284
|
url: z.ZodString;
|
|
246
285
|
logo: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
247
|
-
path: string;
|
|
248
|
-
type: "relative";
|
|
249
|
-
} | {
|
|
250
286
|
type: "explicit-base64";
|
|
251
287
|
mimeType: string;
|
|
252
288
|
content: string;
|
|
289
|
+
} | {
|
|
290
|
+
type: "relative";
|
|
291
|
+
path: string;
|
|
253
292
|
}, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
254
293
|
type: z.ZodLiteral<"explicit-base64">;
|
|
255
294
|
mimeType: z.ZodString;
|
|
@@ -266,11 +305,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
266
305
|
type: z.ZodLiteral<"relative">;
|
|
267
306
|
path: z.ZodString;
|
|
268
307
|
}, "strict", z.ZodTypeAny, {
|
|
269
|
-
path: string;
|
|
270
308
|
type: "relative";
|
|
271
|
-
}, {
|
|
272
309
|
path: string;
|
|
310
|
+
}, {
|
|
273
311
|
type: "relative";
|
|
312
|
+
path: string;
|
|
274
313
|
}>, z.ZodObject<{
|
|
275
314
|
type: z.ZodLiteral<"absolute-file">;
|
|
276
315
|
file: z.ZodString;
|
|
@@ -285,12 +324,12 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
285
324
|
name: z.ZodString;
|
|
286
325
|
url: z.ZodString;
|
|
287
326
|
logo: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
288
|
-
path: string;
|
|
289
|
-
type: "relative";
|
|
290
|
-
} | {
|
|
291
327
|
type: "explicit-base64";
|
|
292
328
|
mimeType: string;
|
|
293
329
|
content: string;
|
|
330
|
+
} | {
|
|
331
|
+
type: "relative";
|
|
332
|
+
path: string;
|
|
294
333
|
}, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
295
334
|
type: z.ZodLiteral<"explicit-base64">;
|
|
296
335
|
mimeType: z.ZodString;
|
|
@@ -307,11 +346,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
307
346
|
type: z.ZodLiteral<"relative">;
|
|
308
347
|
path: z.ZodString;
|
|
309
348
|
}, "strict", z.ZodTypeAny, {
|
|
310
|
-
path: string;
|
|
311
349
|
type: "relative";
|
|
312
|
-
}, {
|
|
313
350
|
path: string;
|
|
351
|
+
}, {
|
|
314
352
|
type: "relative";
|
|
353
|
+
path: string;
|
|
315
354
|
}>, z.ZodObject<{
|
|
316
355
|
type: z.ZodLiteral<"absolute-file">;
|
|
317
356
|
file: z.ZodString;
|
|
@@ -326,12 +365,12 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
326
365
|
name: z.ZodString;
|
|
327
366
|
url: z.ZodString;
|
|
328
367
|
logo: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
329
|
-
path: string;
|
|
330
|
-
type: "relative";
|
|
331
|
-
} | {
|
|
332
368
|
type: "explicit-base64";
|
|
333
369
|
mimeType: string;
|
|
334
370
|
content: string;
|
|
371
|
+
} | {
|
|
372
|
+
type: "relative";
|
|
373
|
+
path: string;
|
|
335
374
|
}, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
336
375
|
type: z.ZodLiteral<"explicit-base64">;
|
|
337
376
|
mimeType: z.ZodString;
|
|
@@ -348,11 +387,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
348
387
|
type: z.ZodLiteral<"relative">;
|
|
349
388
|
path: z.ZodString;
|
|
350
389
|
}, "strict", z.ZodTypeAny, {
|
|
351
|
-
path: string;
|
|
352
390
|
type: "relative";
|
|
353
|
-
}, {
|
|
354
391
|
path: string;
|
|
392
|
+
}, {
|
|
355
393
|
type: "relative";
|
|
394
|
+
path: string;
|
|
356
395
|
}>, z.ZodObject<{
|
|
357
396
|
type: z.ZodLiteral<"absolute-file">;
|
|
358
397
|
file: z.ZodString;
|
|
@@ -382,132 +421,98 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
382
421
|
* If not provided, the block is supported on all operating systems.
|
|
383
422
|
*/
|
|
384
423
|
supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
};
|
|
403
|
-
title: string;
|
|
404
|
-
description: string;
|
|
405
|
-
longDescription?: {
|
|
424
|
+
/**
|
|
425
|
+
* Runtime capabilities the block needs from the backend (e.g.
|
|
426
|
+
* "wasm:v1"). Desktop refuses to install if any listed token is
|
|
427
|
+
* missing from the backend's `serverInfo.capabilities`.
|
|
428
|
+
*
|
|
429
|
+
* Tokens follow the backend's `<feature>:<version>` format defined in
|
|
430
|
+
* `core/pl/platform/api/plapiserver/server_capabilities.go`. The
|
|
431
|
+
* schema itself accepts loose strings (not an enum) so future
|
|
432
|
+
* capabilities don't break Desktops that ship before each token is
|
|
433
|
+
* added — the same forward-compat property `BlockPackMeta` itself
|
|
434
|
+
* enjoys at the field level, applied recursively at the token level.
|
|
435
|
+
*/
|
|
436
|
+
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
437
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
438
|
+
title: z.ZodString;
|
|
439
|
+
description: z.ZodString;
|
|
440
|
+
longDescription: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
406
441
|
type: "explicit-string";
|
|
407
442
|
content: string;
|
|
408
443
|
} | {
|
|
409
|
-
path: string;
|
|
410
444
|
type: "relative";
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
445
|
+
path: string;
|
|
446
|
+
}, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
447
|
+
type: z.ZodLiteral<"explicit-string">;
|
|
448
|
+
content: z.ZodString;
|
|
449
|
+
}, "strict", z.ZodTypeAny, {
|
|
416
450
|
type: "explicit-string";
|
|
417
451
|
content: string;
|
|
418
|
-
}
|
|
452
|
+
}, {
|
|
453
|
+
type: "explicit-string";
|
|
454
|
+
content: string;
|
|
455
|
+
}>, z.ZodObject<{
|
|
456
|
+
type: z.ZodLiteral<"relative">;
|
|
457
|
+
path: z.ZodString;
|
|
458
|
+
}, "strict", z.ZodTypeAny, {
|
|
459
|
+
type: "relative";
|
|
419
460
|
path: string;
|
|
461
|
+
}, {
|
|
420
462
|
type: "relative";
|
|
421
|
-
|
|
463
|
+
path: string;
|
|
464
|
+
}>, z.ZodObject<{
|
|
465
|
+
type: z.ZodLiteral<"absolute-file">;
|
|
466
|
+
file: z.ZodString;
|
|
467
|
+
}, "strict", z.ZodTypeAny, {
|
|
422
468
|
type: "absolute-file";
|
|
423
469
|
file: string;
|
|
424
|
-
}
|
|
425
|
-
logo?: {
|
|
426
|
-
path: string;
|
|
427
|
-
type: "relative";
|
|
428
|
-
} | {
|
|
470
|
+
}, {
|
|
429
471
|
type: "absolute-file";
|
|
430
472
|
file: string;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
mimeType: string;
|
|
434
|
-
content: string;
|
|
435
|
-
} | undefined;
|
|
436
|
-
url?: string | undefined;
|
|
437
|
-
docs?: string | undefined;
|
|
438
|
-
support?: string | undefined;
|
|
439
|
-
tags?: string[] | undefined;
|
|
440
|
-
marketplaceRanking?: number | undefined;
|
|
441
|
-
deprecated?: boolean | undefined;
|
|
442
|
-
termsOfServiceUrl?: string | undefined;
|
|
443
|
-
supportedPlatforms?: ("windows-x64" | "windows-aarch64" | "macosx-x64" | "macosx-aarch64" | "linux-x64" | "linux-aarch64")[] | undefined;
|
|
444
|
-
}, {
|
|
445
|
-
organization: {
|
|
446
|
-
name: string;
|
|
447
|
-
url: string;
|
|
448
|
-
logo?: string | {
|
|
449
|
-
path: string;
|
|
450
|
-
type: "relative";
|
|
451
|
-
} | {
|
|
452
|
-
type: "absolute-file";
|
|
453
|
-
file: string;
|
|
454
|
-
} | {
|
|
455
|
-
type: "explicit-base64";
|
|
456
|
-
mimeType: string;
|
|
457
|
-
content: string;
|
|
458
|
-
} | undefined;
|
|
459
|
-
} & {
|
|
460
|
-
[k: string]: unknown;
|
|
461
|
-
};
|
|
462
|
-
title: string;
|
|
463
|
-
description: string;
|
|
464
|
-
longDescription?: string | {
|
|
473
|
+
}>]>]>>;
|
|
474
|
+
changelog: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
465
475
|
type: "explicit-string";
|
|
466
476
|
content: string;
|
|
467
477
|
} | {
|
|
468
|
-
path: string;
|
|
469
478
|
type: "relative";
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
479
|
+
path: string;
|
|
480
|
+
}, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
481
|
+
type: z.ZodLiteral<"explicit-string">;
|
|
482
|
+
content: z.ZodString;
|
|
483
|
+
}, "strict", z.ZodTypeAny, {
|
|
475
484
|
type: "explicit-string";
|
|
476
485
|
content: string;
|
|
477
|
-
}
|
|
486
|
+
}, {
|
|
487
|
+
type: "explicit-string";
|
|
488
|
+
content: string;
|
|
489
|
+
}>, z.ZodObject<{
|
|
490
|
+
type: z.ZodLiteral<"relative">;
|
|
491
|
+
path: z.ZodString;
|
|
492
|
+
}, "strict", z.ZodTypeAny, {
|
|
493
|
+
type: "relative";
|
|
478
494
|
path: string;
|
|
495
|
+
}, {
|
|
479
496
|
type: "relative";
|
|
480
|
-
|
|
497
|
+
path: string;
|
|
498
|
+
}>, z.ZodObject<{
|
|
499
|
+
type: z.ZodLiteral<"absolute-file">;
|
|
500
|
+
file: z.ZodString;
|
|
501
|
+
}, "strict", z.ZodTypeAny, {
|
|
481
502
|
type: "absolute-file";
|
|
482
503
|
file: string;
|
|
483
|
-
}
|
|
484
|
-
logo?: string | {
|
|
485
|
-
path: string;
|
|
486
|
-
type: "relative";
|
|
487
|
-
} | {
|
|
504
|
+
}, {
|
|
488
505
|
type: "absolute-file";
|
|
489
506
|
file: string;
|
|
490
|
-
}
|
|
507
|
+
}>]>]>>;
|
|
508
|
+
logo: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
491
509
|
type: "explicit-base64";
|
|
492
510
|
mimeType: string;
|
|
493
511
|
content: string;
|
|
494
|
-
} |
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
tags?: string[] | undefined;
|
|
499
|
-
marketplaceRanking?: number | undefined;
|
|
500
|
-
deprecated?: boolean | undefined;
|
|
501
|
-
termsOfServiceUrl?: string | undefined;
|
|
502
|
-
supportedPlatforms?: ("windows-x64" | "windows-aarch64" | "macosx-x64" | "macosx-aarch64" | "linux-x64" | "linux-aarch64")[] | undefined;
|
|
503
|
-
}>;
|
|
504
|
-
type BlockPackMetaDescriptionRaw = z.infer<typeof BlockPackMetaDescriptionRaw>;
|
|
505
|
-
declare const BlockPackMetaEmbeddedBase64: z.ZodObject<{
|
|
506
|
-
title: z.ZodString;
|
|
507
|
-
description: z.ZodString;
|
|
508
|
-
longDescription: z.ZodOptional<z.ZodString>;
|
|
509
|
-
changelog: z.ZodOptional<z.ZodString>;
|
|
510
|
-
logo: z.ZodOptional<z.ZodObject<{
|
|
512
|
+
} | {
|
|
513
|
+
type: "relative";
|
|
514
|
+
path: string;
|
|
515
|
+
}, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
511
516
|
type: z.ZodLiteral<"explicit-base64">;
|
|
512
517
|
mimeType: z.ZodString;
|
|
513
518
|
content: z.ZodString;
|
|
@@ -519,7 +524,25 @@ declare const BlockPackMetaEmbeddedBase64: z.ZodObject<{
|
|
|
519
524
|
type: "explicit-base64";
|
|
520
525
|
mimeType: string;
|
|
521
526
|
content: string;
|
|
522
|
-
}
|
|
527
|
+
}>, z.ZodObject<{
|
|
528
|
+
type: z.ZodLiteral<"relative">;
|
|
529
|
+
path: z.ZodString;
|
|
530
|
+
}, "strict", z.ZodTypeAny, {
|
|
531
|
+
type: "relative";
|
|
532
|
+
path: string;
|
|
533
|
+
}, {
|
|
534
|
+
type: "relative";
|
|
535
|
+
path: string;
|
|
536
|
+
}>, z.ZodObject<{
|
|
537
|
+
type: z.ZodLiteral<"absolute-file">;
|
|
538
|
+
file: z.ZodString;
|
|
539
|
+
}, "strict", z.ZodTypeAny, {
|
|
540
|
+
type: "absolute-file";
|
|
541
|
+
file: string;
|
|
542
|
+
}, {
|
|
543
|
+
type: "absolute-file";
|
|
544
|
+
file: string;
|
|
545
|
+
}>]>]>>;
|
|
523
546
|
url: z.ZodOptional<z.ZodString>;
|
|
524
547
|
docs: z.ZodOptional<z.ZodString>;
|
|
525
548
|
support: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
|
|
@@ -527,7 +550,14 @@ declare const BlockPackMetaEmbeddedBase64: z.ZodObject<{
|
|
|
527
550
|
organization: z.ZodObject<{
|
|
528
551
|
name: z.ZodString;
|
|
529
552
|
url: z.ZodString;
|
|
530
|
-
logo: z.ZodOptional<z.
|
|
553
|
+
logo: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
554
|
+
type: "explicit-base64";
|
|
555
|
+
mimeType: string;
|
|
556
|
+
content: string;
|
|
557
|
+
} | {
|
|
558
|
+
type: "relative";
|
|
559
|
+
path: string;
|
|
560
|
+
}, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
531
561
|
type: z.ZodLiteral<"explicit-base64">;
|
|
532
562
|
mimeType: z.ZodString;
|
|
533
563
|
content: z.ZodString;
|
|
@@ -539,11 +569,36 @@ declare const BlockPackMetaEmbeddedBase64: z.ZodObject<{
|
|
|
539
569
|
type: "explicit-base64";
|
|
540
570
|
mimeType: string;
|
|
541
571
|
content: string;
|
|
542
|
-
}
|
|
572
|
+
}>, z.ZodObject<{
|
|
573
|
+
type: z.ZodLiteral<"relative">;
|
|
574
|
+
path: z.ZodString;
|
|
575
|
+
}, "strict", z.ZodTypeAny, {
|
|
576
|
+
type: "relative";
|
|
577
|
+
path: string;
|
|
578
|
+
}, {
|
|
579
|
+
type: "relative";
|
|
580
|
+
path: string;
|
|
581
|
+
}>, z.ZodObject<{
|
|
582
|
+
type: z.ZodLiteral<"absolute-file">;
|
|
583
|
+
file: z.ZodString;
|
|
584
|
+
}, "strict", z.ZodTypeAny, {
|
|
585
|
+
type: "absolute-file";
|
|
586
|
+
file: string;
|
|
587
|
+
}, {
|
|
588
|
+
type: "absolute-file";
|
|
589
|
+
file: string;
|
|
590
|
+
}>]>]>>;
|
|
543
591
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
544
592
|
name: z.ZodString;
|
|
545
593
|
url: z.ZodString;
|
|
546
|
-
logo: z.ZodOptional<z.
|
|
594
|
+
logo: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
595
|
+
type: "explicit-base64";
|
|
596
|
+
mimeType: string;
|
|
597
|
+
content: string;
|
|
598
|
+
} | {
|
|
599
|
+
type: "relative";
|
|
600
|
+
path: string;
|
|
601
|
+
}, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
547
602
|
type: z.ZodLiteral<"explicit-base64">;
|
|
548
603
|
mimeType: z.ZodString;
|
|
549
604
|
content: z.ZodString;
|
|
@@ -555,11 +610,36 @@ declare const BlockPackMetaEmbeddedBase64: z.ZodObject<{
|
|
|
555
610
|
type: "explicit-base64";
|
|
556
611
|
mimeType: string;
|
|
557
612
|
content: string;
|
|
558
|
-
}
|
|
613
|
+
}>, z.ZodObject<{
|
|
614
|
+
type: z.ZodLiteral<"relative">;
|
|
615
|
+
path: z.ZodString;
|
|
616
|
+
}, "strict", z.ZodTypeAny, {
|
|
617
|
+
type: "relative";
|
|
618
|
+
path: string;
|
|
619
|
+
}, {
|
|
620
|
+
type: "relative";
|
|
621
|
+
path: string;
|
|
622
|
+
}>, z.ZodObject<{
|
|
623
|
+
type: z.ZodLiteral<"absolute-file">;
|
|
624
|
+
file: z.ZodString;
|
|
625
|
+
}, "strict", z.ZodTypeAny, {
|
|
626
|
+
type: "absolute-file";
|
|
627
|
+
file: string;
|
|
628
|
+
}, {
|
|
629
|
+
type: "absolute-file";
|
|
630
|
+
file: string;
|
|
631
|
+
}>]>]>>;
|
|
559
632
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
560
633
|
name: z.ZodString;
|
|
561
634
|
url: z.ZodString;
|
|
562
|
-
logo: z.ZodOptional<z.
|
|
635
|
+
logo: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
636
|
+
type: "explicit-base64";
|
|
637
|
+
mimeType: string;
|
|
638
|
+
content: string;
|
|
639
|
+
} | {
|
|
640
|
+
type: "relative";
|
|
641
|
+
path: string;
|
|
642
|
+
}, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
563
643
|
type: z.ZodLiteral<"explicit-base64">;
|
|
564
644
|
mimeType: z.ZodString;
|
|
565
645
|
content: z.ZodString;
|
|
@@ -571,16 +651,610 @@ declare const BlockPackMetaEmbeddedBase64: z.ZodObject<{
|
|
|
571
651
|
type: "explicit-base64";
|
|
572
652
|
mimeType: string;
|
|
573
653
|
content: string;
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
654
|
+
}>, z.ZodObject<{
|
|
655
|
+
type: z.ZodLiteral<"relative">;
|
|
656
|
+
path: z.ZodString;
|
|
657
|
+
}, "strict", z.ZodTypeAny, {
|
|
658
|
+
type: "relative";
|
|
659
|
+
path: string;
|
|
660
|
+
}, {
|
|
661
|
+
type: "relative";
|
|
662
|
+
path: string;
|
|
663
|
+
}>, z.ZodObject<{
|
|
664
|
+
type: z.ZodLiteral<"absolute-file">;
|
|
665
|
+
file: z.ZodString;
|
|
666
|
+
}, "strict", z.ZodTypeAny, {
|
|
667
|
+
type: "absolute-file";
|
|
668
|
+
file: string;
|
|
669
|
+
}, {
|
|
670
|
+
type: "absolute-file";
|
|
671
|
+
file: string;
|
|
672
|
+
}>]>]>>;
|
|
673
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
674
|
+
/**
|
|
675
|
+
* The order of blocks on the "marketplace" (higher values push block higher to the top of the list).
|
|
676
|
+
* `undefined` value or absent field is treated exactly the same as number `0`.
|
|
677
|
+
*/
|
|
678
|
+
marketplaceRanking: z.ZodOptional<z.ZodNumber>;
|
|
679
|
+
/**
|
|
680
|
+
* If true, the block is deprecated and should not be used.
|
|
681
|
+
*/
|
|
682
|
+
deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
683
|
+
/**
|
|
684
|
+
* The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.
|
|
685
|
+
*/
|
|
686
|
+
termsOfServiceUrl: z.ZodOptional<z.ZodString>;
|
|
687
|
+
/**
|
|
688
|
+
* Supported operating systems.
|
|
689
|
+
* If not provided, the block is supported on all operating systems.
|
|
690
|
+
*/
|
|
691
|
+
supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
|
|
692
|
+
/**
|
|
693
|
+
* Runtime capabilities the block needs from the backend (e.g.
|
|
694
|
+
* "wasm:v1"). Desktop refuses to install if any listed token is
|
|
695
|
+
* missing from the backend's `serverInfo.capabilities`.
|
|
696
|
+
*
|
|
697
|
+
* Tokens follow the backend's `<feature>:<version>` format defined in
|
|
698
|
+
* `core/pl/platform/api/plapiserver/server_capabilities.go`. The
|
|
699
|
+
* schema itself accepts loose strings (not an enum) so future
|
|
700
|
+
* capabilities don't break Desktops that ship before each token is
|
|
701
|
+
* added — the same forward-compat property `BlockPackMeta` itself
|
|
702
|
+
* enjoys at the field level, applied recursively at the token level.
|
|
703
|
+
*/
|
|
704
|
+
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
705
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
706
|
+
title: z.ZodString;
|
|
707
|
+
description: z.ZodString;
|
|
708
|
+
longDescription: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
709
|
+
type: "explicit-string";
|
|
710
|
+
content: string;
|
|
711
|
+
} | {
|
|
712
|
+
type: "relative";
|
|
713
|
+
path: string;
|
|
714
|
+
}, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
715
|
+
type: z.ZodLiteral<"explicit-string">;
|
|
716
|
+
content: z.ZodString;
|
|
717
|
+
}, "strict", z.ZodTypeAny, {
|
|
718
|
+
type: "explicit-string";
|
|
719
|
+
content: string;
|
|
720
|
+
}, {
|
|
721
|
+
type: "explicit-string";
|
|
722
|
+
content: string;
|
|
723
|
+
}>, z.ZodObject<{
|
|
724
|
+
type: z.ZodLiteral<"relative">;
|
|
725
|
+
path: z.ZodString;
|
|
726
|
+
}, "strict", z.ZodTypeAny, {
|
|
727
|
+
type: "relative";
|
|
728
|
+
path: string;
|
|
729
|
+
}, {
|
|
730
|
+
type: "relative";
|
|
731
|
+
path: string;
|
|
732
|
+
}>, z.ZodObject<{
|
|
733
|
+
type: z.ZodLiteral<"absolute-file">;
|
|
734
|
+
file: z.ZodString;
|
|
735
|
+
}, "strict", z.ZodTypeAny, {
|
|
736
|
+
type: "absolute-file";
|
|
737
|
+
file: string;
|
|
738
|
+
}, {
|
|
739
|
+
type: "absolute-file";
|
|
740
|
+
file: string;
|
|
741
|
+
}>]>]>>;
|
|
742
|
+
changelog: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
743
|
+
type: "explicit-string";
|
|
744
|
+
content: string;
|
|
745
|
+
} | {
|
|
746
|
+
type: "relative";
|
|
747
|
+
path: string;
|
|
748
|
+
}, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
749
|
+
type: z.ZodLiteral<"explicit-string">;
|
|
750
|
+
content: z.ZodString;
|
|
751
|
+
}, "strict", z.ZodTypeAny, {
|
|
752
|
+
type: "explicit-string";
|
|
753
|
+
content: string;
|
|
754
|
+
}, {
|
|
755
|
+
type: "explicit-string";
|
|
756
|
+
content: string;
|
|
757
|
+
}>, z.ZodObject<{
|
|
758
|
+
type: z.ZodLiteral<"relative">;
|
|
759
|
+
path: z.ZodString;
|
|
760
|
+
}, "strict", z.ZodTypeAny, {
|
|
761
|
+
type: "relative";
|
|
762
|
+
path: string;
|
|
763
|
+
}, {
|
|
764
|
+
type: "relative";
|
|
765
|
+
path: string;
|
|
766
|
+
}>, z.ZodObject<{
|
|
767
|
+
type: z.ZodLiteral<"absolute-file">;
|
|
768
|
+
file: z.ZodString;
|
|
769
|
+
}, "strict", z.ZodTypeAny, {
|
|
770
|
+
type: "absolute-file";
|
|
771
|
+
file: string;
|
|
772
|
+
}, {
|
|
773
|
+
type: "absolute-file";
|
|
774
|
+
file: string;
|
|
775
|
+
}>]>]>>;
|
|
776
|
+
logo: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
777
|
+
type: "explicit-base64";
|
|
778
|
+
mimeType: string;
|
|
779
|
+
content: string;
|
|
780
|
+
} | {
|
|
781
|
+
type: "relative";
|
|
782
|
+
path: string;
|
|
783
|
+
}, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
784
|
+
type: z.ZodLiteral<"explicit-base64">;
|
|
785
|
+
mimeType: z.ZodString;
|
|
786
|
+
content: z.ZodString;
|
|
787
|
+
}, "strict", z.ZodTypeAny, {
|
|
788
|
+
type: "explicit-base64";
|
|
789
|
+
mimeType: string;
|
|
790
|
+
content: string;
|
|
791
|
+
}, {
|
|
792
|
+
type: "explicit-base64";
|
|
793
|
+
mimeType: string;
|
|
794
|
+
content: string;
|
|
795
|
+
}>, z.ZodObject<{
|
|
796
|
+
type: z.ZodLiteral<"relative">;
|
|
797
|
+
path: z.ZodString;
|
|
798
|
+
}, "strict", z.ZodTypeAny, {
|
|
799
|
+
type: "relative";
|
|
800
|
+
path: string;
|
|
801
|
+
}, {
|
|
802
|
+
type: "relative";
|
|
803
|
+
path: string;
|
|
804
|
+
}>, z.ZodObject<{
|
|
805
|
+
type: z.ZodLiteral<"absolute-file">;
|
|
806
|
+
file: z.ZodString;
|
|
807
|
+
}, "strict", z.ZodTypeAny, {
|
|
808
|
+
type: "absolute-file";
|
|
809
|
+
file: string;
|
|
810
|
+
}, {
|
|
811
|
+
type: "absolute-file";
|
|
812
|
+
file: string;
|
|
813
|
+
}>]>]>>;
|
|
814
|
+
url: z.ZodOptional<z.ZodString>;
|
|
815
|
+
docs: z.ZodOptional<z.ZodString>;
|
|
816
|
+
support: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
|
|
817
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
818
|
+
organization: z.ZodObject<{
|
|
819
|
+
name: z.ZodString;
|
|
820
|
+
url: z.ZodString;
|
|
821
|
+
logo: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
822
|
+
type: "explicit-base64";
|
|
823
|
+
mimeType: string;
|
|
824
|
+
content: string;
|
|
825
|
+
} | {
|
|
826
|
+
type: "relative";
|
|
827
|
+
path: string;
|
|
828
|
+
}, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
829
|
+
type: z.ZodLiteral<"explicit-base64">;
|
|
830
|
+
mimeType: z.ZodString;
|
|
831
|
+
content: z.ZodString;
|
|
832
|
+
}, "strict", z.ZodTypeAny, {
|
|
833
|
+
type: "explicit-base64";
|
|
834
|
+
mimeType: string;
|
|
835
|
+
content: string;
|
|
836
|
+
}, {
|
|
837
|
+
type: "explicit-base64";
|
|
838
|
+
mimeType: string;
|
|
839
|
+
content: string;
|
|
840
|
+
}>, z.ZodObject<{
|
|
841
|
+
type: z.ZodLiteral<"relative">;
|
|
842
|
+
path: z.ZodString;
|
|
843
|
+
}, "strict", z.ZodTypeAny, {
|
|
844
|
+
type: "relative";
|
|
845
|
+
path: string;
|
|
846
|
+
}, {
|
|
847
|
+
type: "relative";
|
|
848
|
+
path: string;
|
|
849
|
+
}>, z.ZodObject<{
|
|
850
|
+
type: z.ZodLiteral<"absolute-file">;
|
|
851
|
+
file: z.ZodString;
|
|
852
|
+
}, "strict", z.ZodTypeAny, {
|
|
853
|
+
type: "absolute-file";
|
|
854
|
+
file: string;
|
|
855
|
+
}, {
|
|
856
|
+
type: "absolute-file";
|
|
857
|
+
file: string;
|
|
858
|
+
}>]>]>>;
|
|
859
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
860
|
+
name: z.ZodString;
|
|
861
|
+
url: z.ZodString;
|
|
862
|
+
logo: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
863
|
+
type: "explicit-base64";
|
|
864
|
+
mimeType: string;
|
|
865
|
+
content: string;
|
|
866
|
+
} | {
|
|
867
|
+
type: "relative";
|
|
868
|
+
path: string;
|
|
869
|
+
}, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
870
|
+
type: z.ZodLiteral<"explicit-base64">;
|
|
871
|
+
mimeType: z.ZodString;
|
|
872
|
+
content: z.ZodString;
|
|
873
|
+
}, "strict", z.ZodTypeAny, {
|
|
874
|
+
type: "explicit-base64";
|
|
875
|
+
mimeType: string;
|
|
876
|
+
content: string;
|
|
877
|
+
}, {
|
|
878
|
+
type: "explicit-base64";
|
|
879
|
+
mimeType: string;
|
|
880
|
+
content: string;
|
|
881
|
+
}>, z.ZodObject<{
|
|
882
|
+
type: z.ZodLiteral<"relative">;
|
|
883
|
+
path: z.ZodString;
|
|
884
|
+
}, "strict", z.ZodTypeAny, {
|
|
885
|
+
type: "relative";
|
|
886
|
+
path: string;
|
|
887
|
+
}, {
|
|
888
|
+
type: "relative";
|
|
889
|
+
path: string;
|
|
890
|
+
}>, z.ZodObject<{
|
|
891
|
+
type: z.ZodLiteral<"absolute-file">;
|
|
892
|
+
file: z.ZodString;
|
|
893
|
+
}, "strict", z.ZodTypeAny, {
|
|
894
|
+
type: "absolute-file";
|
|
895
|
+
file: string;
|
|
896
|
+
}, {
|
|
897
|
+
type: "absolute-file";
|
|
898
|
+
file: string;
|
|
899
|
+
}>]>]>>;
|
|
900
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
901
|
+
name: z.ZodString;
|
|
902
|
+
url: z.ZodString;
|
|
903
|
+
logo: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
904
|
+
type: "explicit-base64";
|
|
905
|
+
mimeType: string;
|
|
906
|
+
content: string;
|
|
907
|
+
} | {
|
|
908
|
+
type: "relative";
|
|
909
|
+
path: string;
|
|
910
|
+
}, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
911
|
+
type: z.ZodLiteral<"explicit-base64">;
|
|
912
|
+
mimeType: z.ZodString;
|
|
913
|
+
content: z.ZodString;
|
|
914
|
+
}, "strict", z.ZodTypeAny, {
|
|
915
|
+
type: "explicit-base64";
|
|
916
|
+
mimeType: string;
|
|
917
|
+
content: string;
|
|
918
|
+
}, {
|
|
919
|
+
type: "explicit-base64";
|
|
920
|
+
mimeType: string;
|
|
921
|
+
content: string;
|
|
922
|
+
}>, z.ZodObject<{
|
|
923
|
+
type: z.ZodLiteral<"relative">;
|
|
924
|
+
path: z.ZodString;
|
|
925
|
+
}, "strict", z.ZodTypeAny, {
|
|
926
|
+
type: "relative";
|
|
927
|
+
path: string;
|
|
928
|
+
}, {
|
|
929
|
+
type: "relative";
|
|
930
|
+
path: string;
|
|
931
|
+
}>, z.ZodObject<{
|
|
932
|
+
type: z.ZodLiteral<"absolute-file">;
|
|
933
|
+
file: z.ZodString;
|
|
934
|
+
}, "strict", z.ZodTypeAny, {
|
|
935
|
+
type: "absolute-file";
|
|
936
|
+
file: string;
|
|
937
|
+
}, {
|
|
938
|
+
type: "absolute-file";
|
|
939
|
+
file: string;
|
|
940
|
+
}>]>]>>;
|
|
941
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
942
|
+
/**
|
|
943
|
+
* The order of blocks on the "marketplace" (higher values push block higher to the top of the list).
|
|
944
|
+
* `undefined` value or absent field is treated exactly the same as number `0`.
|
|
945
|
+
*/
|
|
946
|
+
marketplaceRanking: z.ZodOptional<z.ZodNumber>;
|
|
947
|
+
/**
|
|
948
|
+
* If true, the block is deprecated and should not be used.
|
|
949
|
+
*/
|
|
950
|
+
deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
951
|
+
/**
|
|
952
|
+
* The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.
|
|
953
|
+
*/
|
|
954
|
+
termsOfServiceUrl: z.ZodOptional<z.ZodString>;
|
|
955
|
+
/**
|
|
956
|
+
* Supported operating systems.
|
|
957
|
+
* If not provided, the block is supported on all operating systems.
|
|
958
|
+
*/
|
|
959
|
+
supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
|
|
960
|
+
/**
|
|
961
|
+
* Runtime capabilities the block needs from the backend (e.g.
|
|
962
|
+
* "wasm:v1"). Desktop refuses to install if any listed token is
|
|
963
|
+
* missing from the backend's `serverInfo.capabilities`.
|
|
964
|
+
*
|
|
965
|
+
* Tokens follow the backend's `<feature>:<version>` format defined in
|
|
966
|
+
* `core/pl/platform/api/plapiserver/server_capabilities.go`. The
|
|
967
|
+
* schema itself accepts loose strings (not an enum) so future
|
|
968
|
+
* capabilities don't break Desktops that ship before each token is
|
|
969
|
+
* added — the same forward-compat property `BlockPackMeta` itself
|
|
970
|
+
* enjoys at the field level, applied recursively at the token level.
|
|
971
|
+
*/
|
|
972
|
+
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
973
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
974
|
+
type BlockPackMetaDescriptionRaw = z.infer<typeof BlockPackMetaDescriptionRaw>;
|
|
975
|
+
declare const BlockPackMetaEmbeddedBase64: z.ZodObject<{
|
|
976
|
+
title: z.ZodString;
|
|
977
|
+
description: z.ZodString;
|
|
978
|
+
longDescription: z.ZodOptional<z.ZodString>;
|
|
979
|
+
changelog: z.ZodOptional<z.ZodString>;
|
|
980
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
981
|
+
type: z.ZodLiteral<"explicit-base64">;
|
|
982
|
+
mimeType: z.ZodString;
|
|
983
|
+
content: z.ZodString;
|
|
984
|
+
}, "strict", z.ZodTypeAny, {
|
|
985
|
+
type: "explicit-base64";
|
|
986
|
+
mimeType: string;
|
|
987
|
+
content: string;
|
|
988
|
+
}, {
|
|
989
|
+
type: "explicit-base64";
|
|
990
|
+
mimeType: string;
|
|
991
|
+
content: string;
|
|
992
|
+
}>>;
|
|
993
|
+
url: z.ZodOptional<z.ZodString>;
|
|
994
|
+
docs: z.ZodOptional<z.ZodString>;
|
|
995
|
+
support: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
|
|
996
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
997
|
+
organization: z.ZodObject<{
|
|
998
|
+
name: z.ZodString;
|
|
999
|
+
url: z.ZodString;
|
|
1000
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
1001
|
+
type: z.ZodLiteral<"explicit-base64">;
|
|
1002
|
+
mimeType: z.ZodString;
|
|
1003
|
+
content: z.ZodString;
|
|
1004
|
+
}, "strict", z.ZodTypeAny, {
|
|
1005
|
+
type: "explicit-base64";
|
|
1006
|
+
mimeType: string;
|
|
1007
|
+
content: string;
|
|
1008
|
+
}, {
|
|
1009
|
+
type: "explicit-base64";
|
|
1010
|
+
mimeType: string;
|
|
1011
|
+
content: string;
|
|
1012
|
+
}>>;
|
|
1013
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1014
|
+
name: z.ZodString;
|
|
1015
|
+
url: z.ZodString;
|
|
1016
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
1017
|
+
type: z.ZodLiteral<"explicit-base64">;
|
|
1018
|
+
mimeType: z.ZodString;
|
|
1019
|
+
content: z.ZodString;
|
|
1020
|
+
}, "strict", z.ZodTypeAny, {
|
|
1021
|
+
type: "explicit-base64";
|
|
1022
|
+
mimeType: string;
|
|
1023
|
+
content: string;
|
|
1024
|
+
}, {
|
|
1025
|
+
type: "explicit-base64";
|
|
1026
|
+
mimeType: string;
|
|
1027
|
+
content: string;
|
|
1028
|
+
}>>;
|
|
1029
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1030
|
+
name: z.ZodString;
|
|
1031
|
+
url: z.ZodString;
|
|
1032
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
1033
|
+
type: z.ZodLiteral<"explicit-base64">;
|
|
1034
|
+
mimeType: z.ZodString;
|
|
1035
|
+
content: z.ZodString;
|
|
1036
|
+
}, "strict", z.ZodTypeAny, {
|
|
1037
|
+
type: "explicit-base64";
|
|
1038
|
+
mimeType: string;
|
|
1039
|
+
content: string;
|
|
1040
|
+
}, {
|
|
1041
|
+
type: "explicit-base64";
|
|
1042
|
+
mimeType: string;
|
|
1043
|
+
content: string;
|
|
1044
|
+
}>>;
|
|
1045
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1046
|
+
/**
|
|
1047
|
+
* The order of blocks on the "marketplace" (higher values push block higher to the top of the list).
|
|
1048
|
+
* `undefined` value or absent field is treated exactly the same as number `0`.
|
|
1049
|
+
*/
|
|
1050
|
+
marketplaceRanking: z.ZodOptional<z.ZodNumber>;
|
|
1051
|
+
/**
|
|
1052
|
+
* If true, the block is deprecated and should not be used.
|
|
1053
|
+
*/
|
|
1054
|
+
deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
1055
|
+
/**
|
|
1056
|
+
* The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.
|
|
1057
|
+
*/
|
|
1058
|
+
termsOfServiceUrl: z.ZodOptional<z.ZodString>;
|
|
1059
|
+
/**
|
|
1060
|
+
* Supported operating systems.
|
|
1061
|
+
* If not provided, the block is supported on all operating systems.
|
|
1062
|
+
*/
|
|
1063
|
+
supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
|
|
1064
|
+
/**
|
|
1065
|
+
* Runtime capabilities the block needs from the backend (e.g.
|
|
1066
|
+
* "wasm:v1"). Desktop refuses to install if any listed token is
|
|
1067
|
+
* missing from the backend's `serverInfo.capabilities`.
|
|
1068
|
+
*
|
|
1069
|
+
* Tokens follow the backend's `<feature>:<version>` format defined in
|
|
1070
|
+
* `core/pl/platform/api/plapiserver/server_capabilities.go`. The
|
|
1071
|
+
* schema itself accepts loose strings (not an enum) so future
|
|
1072
|
+
* capabilities don't break Desktops that ship before each token is
|
|
1073
|
+
* added — the same forward-compat property `BlockPackMeta` itself
|
|
1074
|
+
* enjoys at the field level, applied recursively at the token level.
|
|
1075
|
+
*/
|
|
1076
|
+
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1077
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1078
|
+
title: z.ZodString;
|
|
1079
|
+
description: z.ZodString;
|
|
1080
|
+
longDescription: z.ZodOptional<z.ZodString>;
|
|
1081
|
+
changelog: z.ZodOptional<z.ZodString>;
|
|
1082
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
1083
|
+
type: z.ZodLiteral<"explicit-base64">;
|
|
1084
|
+
mimeType: z.ZodString;
|
|
1085
|
+
content: z.ZodString;
|
|
1086
|
+
}, "strict", z.ZodTypeAny, {
|
|
1087
|
+
type: "explicit-base64";
|
|
1088
|
+
mimeType: string;
|
|
1089
|
+
content: string;
|
|
1090
|
+
}, {
|
|
1091
|
+
type: "explicit-base64";
|
|
1092
|
+
mimeType: string;
|
|
1093
|
+
content: string;
|
|
1094
|
+
}>>;
|
|
1095
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1096
|
+
docs: z.ZodOptional<z.ZodString>;
|
|
1097
|
+
support: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
|
|
1098
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1099
|
+
organization: z.ZodObject<{
|
|
1100
|
+
name: z.ZodString;
|
|
1101
|
+
url: z.ZodString;
|
|
1102
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
1103
|
+
type: z.ZodLiteral<"explicit-base64">;
|
|
1104
|
+
mimeType: z.ZodString;
|
|
1105
|
+
content: z.ZodString;
|
|
1106
|
+
}, "strict", z.ZodTypeAny, {
|
|
1107
|
+
type: "explicit-base64";
|
|
1108
|
+
mimeType: string;
|
|
1109
|
+
content: string;
|
|
1110
|
+
}, {
|
|
1111
|
+
type: "explicit-base64";
|
|
1112
|
+
mimeType: string;
|
|
1113
|
+
content: string;
|
|
1114
|
+
}>>;
|
|
1115
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1116
|
+
name: z.ZodString;
|
|
1117
|
+
url: z.ZodString;
|
|
1118
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
1119
|
+
type: z.ZodLiteral<"explicit-base64">;
|
|
1120
|
+
mimeType: z.ZodString;
|
|
1121
|
+
content: z.ZodString;
|
|
1122
|
+
}, "strict", z.ZodTypeAny, {
|
|
1123
|
+
type: "explicit-base64";
|
|
1124
|
+
mimeType: string;
|
|
1125
|
+
content: string;
|
|
1126
|
+
}, {
|
|
1127
|
+
type: "explicit-base64";
|
|
1128
|
+
mimeType: string;
|
|
1129
|
+
content: string;
|
|
1130
|
+
}>>;
|
|
1131
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1132
|
+
name: z.ZodString;
|
|
1133
|
+
url: z.ZodString;
|
|
1134
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
1135
|
+
type: z.ZodLiteral<"explicit-base64">;
|
|
1136
|
+
mimeType: z.ZodString;
|
|
1137
|
+
content: z.ZodString;
|
|
1138
|
+
}, "strict", z.ZodTypeAny, {
|
|
1139
|
+
type: "explicit-base64";
|
|
1140
|
+
mimeType: string;
|
|
1141
|
+
content: string;
|
|
1142
|
+
}, {
|
|
1143
|
+
type: "explicit-base64";
|
|
1144
|
+
mimeType: string;
|
|
1145
|
+
content: string;
|
|
1146
|
+
}>>;
|
|
1147
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1148
|
+
/**
|
|
1149
|
+
* The order of blocks on the "marketplace" (higher values push block higher to the top of the list).
|
|
1150
|
+
* `undefined` value or absent field is treated exactly the same as number `0`.
|
|
1151
|
+
*/
|
|
1152
|
+
marketplaceRanking: z.ZodOptional<z.ZodNumber>;
|
|
1153
|
+
/**
|
|
1154
|
+
* If true, the block is deprecated and should not be used.
|
|
1155
|
+
*/
|
|
1156
|
+
deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
1157
|
+
/**
|
|
1158
|
+
* The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.
|
|
1159
|
+
*/
|
|
1160
|
+
termsOfServiceUrl: z.ZodOptional<z.ZodString>;
|
|
1161
|
+
/**
|
|
1162
|
+
* Supported operating systems.
|
|
1163
|
+
* If not provided, the block is supported on all operating systems.
|
|
1164
|
+
*/
|
|
1165
|
+
supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
|
|
1166
|
+
/**
|
|
1167
|
+
* Runtime capabilities the block needs from the backend (e.g.
|
|
1168
|
+
* "wasm:v1"). Desktop refuses to install if any listed token is
|
|
1169
|
+
* missing from the backend's `serverInfo.capabilities`.
|
|
1170
|
+
*
|
|
1171
|
+
* Tokens follow the backend's `<feature>:<version>` format defined in
|
|
1172
|
+
* `core/pl/platform/api/plapiserver/server_capabilities.go`. The
|
|
1173
|
+
* schema itself accepts loose strings (not an enum) so future
|
|
1174
|
+
* capabilities don't break Desktops that ship before each token is
|
|
1175
|
+
* added — the same forward-compat property `BlockPackMeta` itself
|
|
1176
|
+
* enjoys at the field level, applied recursively at the token level.
|
|
1177
|
+
*/
|
|
1178
|
+
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1179
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1180
|
+
title: z.ZodString;
|
|
1181
|
+
description: z.ZodString;
|
|
1182
|
+
longDescription: z.ZodOptional<z.ZodString>;
|
|
1183
|
+
changelog: z.ZodOptional<z.ZodString>;
|
|
1184
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
1185
|
+
type: z.ZodLiteral<"explicit-base64">;
|
|
1186
|
+
mimeType: z.ZodString;
|
|
1187
|
+
content: z.ZodString;
|
|
1188
|
+
}, "strict", z.ZodTypeAny, {
|
|
1189
|
+
type: "explicit-base64";
|
|
1190
|
+
mimeType: string;
|
|
1191
|
+
content: string;
|
|
1192
|
+
}, {
|
|
1193
|
+
type: "explicit-base64";
|
|
1194
|
+
mimeType: string;
|
|
1195
|
+
content: string;
|
|
1196
|
+
}>>;
|
|
1197
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1198
|
+
docs: z.ZodOptional<z.ZodString>;
|
|
1199
|
+
support: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
|
|
1200
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1201
|
+
organization: z.ZodObject<{
|
|
1202
|
+
name: z.ZodString;
|
|
1203
|
+
url: z.ZodString;
|
|
1204
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
1205
|
+
type: z.ZodLiteral<"explicit-base64">;
|
|
1206
|
+
mimeType: z.ZodString;
|
|
1207
|
+
content: z.ZodString;
|
|
1208
|
+
}, "strict", z.ZodTypeAny, {
|
|
1209
|
+
type: "explicit-base64";
|
|
1210
|
+
mimeType: string;
|
|
1211
|
+
content: string;
|
|
1212
|
+
}, {
|
|
1213
|
+
type: "explicit-base64";
|
|
1214
|
+
mimeType: string;
|
|
1215
|
+
content: string;
|
|
1216
|
+
}>>;
|
|
1217
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1218
|
+
name: z.ZodString;
|
|
1219
|
+
url: z.ZodString;
|
|
1220
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
1221
|
+
type: z.ZodLiteral<"explicit-base64">;
|
|
1222
|
+
mimeType: z.ZodString;
|
|
1223
|
+
content: z.ZodString;
|
|
1224
|
+
}, "strict", z.ZodTypeAny, {
|
|
1225
|
+
type: "explicit-base64";
|
|
1226
|
+
mimeType: string;
|
|
1227
|
+
content: string;
|
|
1228
|
+
}, {
|
|
1229
|
+
type: "explicit-base64";
|
|
1230
|
+
mimeType: string;
|
|
1231
|
+
content: string;
|
|
1232
|
+
}>>;
|
|
1233
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1234
|
+
name: z.ZodString;
|
|
1235
|
+
url: z.ZodString;
|
|
1236
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
1237
|
+
type: z.ZodLiteral<"explicit-base64">;
|
|
1238
|
+
mimeType: z.ZodString;
|
|
1239
|
+
content: z.ZodString;
|
|
1240
|
+
}, "strict", z.ZodTypeAny, {
|
|
1241
|
+
type: "explicit-base64";
|
|
1242
|
+
mimeType: string;
|
|
1243
|
+
content: string;
|
|
1244
|
+
}, {
|
|
1245
|
+
type: "explicit-base64";
|
|
1246
|
+
mimeType: string;
|
|
1247
|
+
content: string;
|
|
1248
|
+
}>>;
|
|
1249
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1250
|
+
/**
|
|
1251
|
+
* The order of blocks on the "marketplace" (higher values push block higher to the top of the list).
|
|
1252
|
+
* `undefined` value or absent field is treated exactly the same as number `0`.
|
|
1253
|
+
*/
|
|
1254
|
+
marketplaceRanking: z.ZodOptional<z.ZodNumber>;
|
|
1255
|
+
/**
|
|
1256
|
+
* If true, the block is deprecated and should not be used.
|
|
1257
|
+
*/
|
|
584
1258
|
deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
585
1259
|
/**
|
|
586
1260
|
* The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.
|
|
@@ -591,65 +1265,20 @@ declare const BlockPackMetaEmbeddedBase64: z.ZodObject<{
|
|
|
591
1265
|
* If not provided, the block is supported on all operating systems.
|
|
592
1266
|
*/
|
|
593
1267
|
supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
longDescription?: string | undefined;
|
|
609
|
-
changelog?: string | undefined;
|
|
610
|
-
logo?: {
|
|
611
|
-
type: "explicit-base64";
|
|
612
|
-
mimeType: string;
|
|
613
|
-
content: string;
|
|
614
|
-
} | undefined;
|
|
615
|
-
url?: string | undefined;
|
|
616
|
-
docs?: string | undefined;
|
|
617
|
-
support?: string | undefined;
|
|
618
|
-
tags?: string[] | undefined;
|
|
619
|
-
marketplaceRanking?: number | undefined;
|
|
620
|
-
deprecated?: boolean | undefined;
|
|
621
|
-
termsOfServiceUrl?: string | undefined;
|
|
622
|
-
supportedPlatforms?: ("windows-x64" | "windows-aarch64" | "macosx-x64" | "macosx-aarch64" | "linux-x64" | "linux-aarch64")[] | undefined;
|
|
623
|
-
}, {
|
|
624
|
-
organization: {
|
|
625
|
-
name: string;
|
|
626
|
-
url: string;
|
|
627
|
-
logo?: {
|
|
628
|
-
type: "explicit-base64";
|
|
629
|
-
mimeType: string;
|
|
630
|
-
content: string;
|
|
631
|
-
} | undefined;
|
|
632
|
-
} & {
|
|
633
|
-
[k: string]: unknown;
|
|
634
|
-
};
|
|
635
|
-
title: string;
|
|
636
|
-
description: string;
|
|
637
|
-
longDescription?: string | undefined;
|
|
638
|
-
changelog?: string | undefined;
|
|
639
|
-
logo?: {
|
|
640
|
-
type: "explicit-base64";
|
|
641
|
-
mimeType: string;
|
|
642
|
-
content: string;
|
|
643
|
-
} | undefined;
|
|
644
|
-
url?: string | undefined;
|
|
645
|
-
docs?: string | undefined;
|
|
646
|
-
support?: string | undefined;
|
|
647
|
-
tags?: string[] | undefined;
|
|
648
|
-
marketplaceRanking?: number | undefined;
|
|
649
|
-
deprecated?: boolean | undefined;
|
|
650
|
-
termsOfServiceUrl?: string | undefined;
|
|
651
|
-
supportedPlatforms?: ("windows-x64" | "windows-aarch64" | "macosx-x64" | "macosx-aarch64" | "linux-x64" | "linux-aarch64")[] | undefined;
|
|
652
|
-
}>;
|
|
1268
|
+
/**
|
|
1269
|
+
* Runtime capabilities the block needs from the backend (e.g.
|
|
1270
|
+
* "wasm:v1"). Desktop refuses to install if any listed token is
|
|
1271
|
+
* missing from the backend's `serverInfo.capabilities`.
|
|
1272
|
+
*
|
|
1273
|
+
* Tokens follow the backend's `<feature>:<version>` format defined in
|
|
1274
|
+
* `core/pl/platform/api/plapiserver/server_capabilities.go`. The
|
|
1275
|
+
* schema itself accepts loose strings (not an enum) so future
|
|
1276
|
+
* capabilities don't break Desktops that ship before each token is
|
|
1277
|
+
* added — the same forward-compat property `BlockPackMeta` itself
|
|
1278
|
+
* enjoys at the field level, applied recursively at the token level.
|
|
1279
|
+
*/
|
|
1280
|
+
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1281
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
653
1282
|
type BlockPackMetaEmbeddedBase64 = z.infer<typeof BlockPackMetaEmbeddedBase64>;
|
|
654
1283
|
declare const BlockPackMetaEmbeddedBytes: z.ZodObject<{
|
|
655
1284
|
title: z.ZodString;
|
|
@@ -740,65 +1369,224 @@ declare const BlockPackMetaEmbeddedBytes: z.ZodObject<{
|
|
|
740
1369
|
* If not provided, the block is supported on all operating systems.
|
|
741
1370
|
*/
|
|
742
1371
|
supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
1372
|
+
/**
|
|
1373
|
+
* Runtime capabilities the block needs from the backend (e.g.
|
|
1374
|
+
* "wasm:v1"). Desktop refuses to install if any listed token is
|
|
1375
|
+
* missing from the backend's `serverInfo.capabilities`.
|
|
1376
|
+
*
|
|
1377
|
+
* Tokens follow the backend's `<feature>:<version>` format defined in
|
|
1378
|
+
* `core/pl/platform/api/plapiserver/server_capabilities.go`. The
|
|
1379
|
+
* schema itself accepts loose strings (not an enum) so future
|
|
1380
|
+
* capabilities don't break Desktops that ship before each token is
|
|
1381
|
+
* added — the same forward-compat property `BlockPackMeta` itself
|
|
1382
|
+
* enjoys at the field level, applied recursively at the token level.
|
|
1383
|
+
*/
|
|
1384
|
+
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1385
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1386
|
+
title: z.ZodString;
|
|
1387
|
+
description: z.ZodString;
|
|
1388
|
+
longDescription: z.ZodOptional<z.ZodString>;
|
|
1389
|
+
changelog: z.ZodOptional<z.ZodString>;
|
|
1390
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
1391
|
+
type: z.ZodLiteral<"explicit-bytes">;
|
|
1392
|
+
mimeType: z.ZodString;
|
|
1393
|
+
content: z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>;
|
|
1394
|
+
}, "strict", z.ZodTypeAny, {
|
|
1395
|
+
type: "explicit-bytes";
|
|
1396
|
+
mimeType: string;
|
|
1397
|
+
content: Uint8Array<ArrayBuffer>;
|
|
1398
|
+
}, {
|
|
760
1399
|
type: "explicit-bytes";
|
|
761
1400
|
mimeType: string;
|
|
762
1401
|
content: Uint8Array<ArrayBuffer>;
|
|
763
|
-
}
|
|
764
|
-
url
|
|
765
|
-
docs
|
|
766
|
-
support
|
|
767
|
-
tags
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
1402
|
+
}>>;
|
|
1403
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1404
|
+
docs: z.ZodOptional<z.ZodString>;
|
|
1405
|
+
support: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
|
|
1406
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1407
|
+
organization: z.ZodObject<{
|
|
1408
|
+
name: z.ZodString;
|
|
1409
|
+
url: z.ZodString;
|
|
1410
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
1411
|
+
type: z.ZodLiteral<"explicit-bytes">;
|
|
1412
|
+
mimeType: z.ZodString;
|
|
1413
|
+
content: z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>;
|
|
1414
|
+
}, "strict", z.ZodTypeAny, {
|
|
1415
|
+
type: "explicit-bytes";
|
|
1416
|
+
mimeType: string;
|
|
1417
|
+
content: Uint8Array<ArrayBuffer>;
|
|
1418
|
+
}, {
|
|
1419
|
+
type: "explicit-bytes";
|
|
1420
|
+
mimeType: string;
|
|
1421
|
+
content: Uint8Array<ArrayBuffer>;
|
|
1422
|
+
}>>;
|
|
1423
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1424
|
+
name: z.ZodString;
|
|
1425
|
+
url: z.ZodString;
|
|
1426
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
1427
|
+
type: z.ZodLiteral<"explicit-bytes">;
|
|
1428
|
+
mimeType: z.ZodString;
|
|
1429
|
+
content: z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>;
|
|
1430
|
+
}, "strict", z.ZodTypeAny, {
|
|
1431
|
+
type: "explicit-bytes";
|
|
1432
|
+
mimeType: string;
|
|
1433
|
+
content: Uint8Array<ArrayBuffer>;
|
|
1434
|
+
}, {
|
|
1435
|
+
type: "explicit-bytes";
|
|
1436
|
+
mimeType: string;
|
|
1437
|
+
content: Uint8Array<ArrayBuffer>;
|
|
1438
|
+
}>>;
|
|
1439
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1440
|
+
name: z.ZodString;
|
|
1441
|
+
url: z.ZodString;
|
|
1442
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
1443
|
+
type: z.ZodLiteral<"explicit-bytes">;
|
|
1444
|
+
mimeType: z.ZodString;
|
|
1445
|
+
content: z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>;
|
|
1446
|
+
}, "strict", z.ZodTypeAny, {
|
|
1447
|
+
type: "explicit-bytes";
|
|
1448
|
+
mimeType: string;
|
|
1449
|
+
content: Uint8Array<ArrayBuffer>;
|
|
1450
|
+
}, {
|
|
777
1451
|
type: "explicit-bytes";
|
|
778
1452
|
mimeType: string;
|
|
779
1453
|
content: Uint8Array<ArrayBuffer>;
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
1454
|
+
}>>;
|
|
1455
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1456
|
+
/**
|
|
1457
|
+
* The order of blocks on the "marketplace" (higher values push block higher to the top of the list).
|
|
1458
|
+
* `undefined` value or absent field is treated exactly the same as number `0`.
|
|
1459
|
+
*/
|
|
1460
|
+
marketplaceRanking: z.ZodOptional<z.ZodNumber>;
|
|
1461
|
+
/**
|
|
1462
|
+
* If true, the block is deprecated and should not be used.
|
|
1463
|
+
*/
|
|
1464
|
+
deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
1465
|
+
/**
|
|
1466
|
+
* The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.
|
|
1467
|
+
*/
|
|
1468
|
+
termsOfServiceUrl: z.ZodOptional<z.ZodString>;
|
|
1469
|
+
/**
|
|
1470
|
+
* Supported operating systems.
|
|
1471
|
+
* If not provided, the block is supported on all operating systems.
|
|
1472
|
+
*/
|
|
1473
|
+
supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
|
|
1474
|
+
/**
|
|
1475
|
+
* Runtime capabilities the block needs from the backend (e.g.
|
|
1476
|
+
* "wasm:v1"). Desktop refuses to install if any listed token is
|
|
1477
|
+
* missing from the backend's `serverInfo.capabilities`.
|
|
1478
|
+
*
|
|
1479
|
+
* Tokens follow the backend's `<feature>:<version>` format defined in
|
|
1480
|
+
* `core/pl/platform/api/plapiserver/server_capabilities.go`. The
|
|
1481
|
+
* schema itself accepts loose strings (not an enum) so future
|
|
1482
|
+
* capabilities don't break Desktops that ship before each token is
|
|
1483
|
+
* added — the same forward-compat property `BlockPackMeta` itself
|
|
1484
|
+
* enjoys at the field level, applied recursively at the token level.
|
|
1485
|
+
*/
|
|
1486
|
+
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1487
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1488
|
+
title: z.ZodString;
|
|
1489
|
+
description: z.ZodString;
|
|
1490
|
+
longDescription: z.ZodOptional<z.ZodString>;
|
|
1491
|
+
changelog: z.ZodOptional<z.ZodString>;
|
|
1492
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
1493
|
+
type: z.ZodLiteral<"explicit-bytes">;
|
|
1494
|
+
mimeType: z.ZodString;
|
|
1495
|
+
content: z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>;
|
|
1496
|
+
}, "strict", z.ZodTypeAny, {
|
|
1497
|
+
type: "explicit-bytes";
|
|
1498
|
+
mimeType: string;
|
|
1499
|
+
content: Uint8Array<ArrayBuffer>;
|
|
1500
|
+
}, {
|
|
789
1501
|
type: "explicit-bytes";
|
|
790
1502
|
mimeType: string;
|
|
791
1503
|
content: Uint8Array<ArrayBuffer>;
|
|
792
|
-
}
|
|
793
|
-
url
|
|
794
|
-
docs
|
|
795
|
-
support
|
|
796
|
-
tags
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
1504
|
+
}>>;
|
|
1505
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1506
|
+
docs: z.ZodOptional<z.ZodString>;
|
|
1507
|
+
support: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
|
|
1508
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1509
|
+
organization: z.ZodObject<{
|
|
1510
|
+
name: z.ZodString;
|
|
1511
|
+
url: z.ZodString;
|
|
1512
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
1513
|
+
type: z.ZodLiteral<"explicit-bytes">;
|
|
1514
|
+
mimeType: z.ZodString;
|
|
1515
|
+
content: z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>;
|
|
1516
|
+
}, "strict", z.ZodTypeAny, {
|
|
1517
|
+
type: "explicit-bytes";
|
|
1518
|
+
mimeType: string;
|
|
1519
|
+
content: Uint8Array<ArrayBuffer>;
|
|
1520
|
+
}, {
|
|
1521
|
+
type: "explicit-bytes";
|
|
1522
|
+
mimeType: string;
|
|
1523
|
+
content: Uint8Array<ArrayBuffer>;
|
|
1524
|
+
}>>;
|
|
1525
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1526
|
+
name: z.ZodString;
|
|
1527
|
+
url: z.ZodString;
|
|
1528
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
1529
|
+
type: z.ZodLiteral<"explicit-bytes">;
|
|
1530
|
+
mimeType: z.ZodString;
|
|
1531
|
+
content: z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>;
|
|
1532
|
+
}, "strict", z.ZodTypeAny, {
|
|
1533
|
+
type: "explicit-bytes";
|
|
1534
|
+
mimeType: string;
|
|
1535
|
+
content: Uint8Array<ArrayBuffer>;
|
|
1536
|
+
}, {
|
|
1537
|
+
type: "explicit-bytes";
|
|
1538
|
+
mimeType: string;
|
|
1539
|
+
content: Uint8Array<ArrayBuffer>;
|
|
1540
|
+
}>>;
|
|
1541
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1542
|
+
name: z.ZodString;
|
|
1543
|
+
url: z.ZodString;
|
|
1544
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
1545
|
+
type: z.ZodLiteral<"explicit-bytes">;
|
|
1546
|
+
mimeType: z.ZodString;
|
|
1547
|
+
content: z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>;
|
|
1548
|
+
}, "strict", z.ZodTypeAny, {
|
|
1549
|
+
type: "explicit-bytes";
|
|
1550
|
+
mimeType: string;
|
|
1551
|
+
content: Uint8Array<ArrayBuffer>;
|
|
1552
|
+
}, {
|
|
1553
|
+
type: "explicit-bytes";
|
|
1554
|
+
mimeType: string;
|
|
1555
|
+
content: Uint8Array<ArrayBuffer>;
|
|
1556
|
+
}>>;
|
|
1557
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1558
|
+
/**
|
|
1559
|
+
* The order of blocks on the "marketplace" (higher values push block higher to the top of the list).
|
|
1560
|
+
* `undefined` value or absent field is treated exactly the same as number `0`.
|
|
1561
|
+
*/
|
|
1562
|
+
marketplaceRanking: z.ZodOptional<z.ZodNumber>;
|
|
1563
|
+
/**
|
|
1564
|
+
* If true, the block is deprecated and should not be used.
|
|
1565
|
+
*/
|
|
1566
|
+
deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
1567
|
+
/**
|
|
1568
|
+
* The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.
|
|
1569
|
+
*/
|
|
1570
|
+
termsOfServiceUrl: z.ZodOptional<z.ZodString>;
|
|
1571
|
+
/**
|
|
1572
|
+
* Supported operating systems.
|
|
1573
|
+
* If not provided, the block is supported on all operating systems.
|
|
1574
|
+
*/
|
|
1575
|
+
supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
|
|
1576
|
+
/**
|
|
1577
|
+
* Runtime capabilities the block needs from the backend (e.g.
|
|
1578
|
+
* "wasm:v1"). Desktop refuses to install if any listed token is
|
|
1579
|
+
* missing from the backend's `serverInfo.capabilities`.
|
|
1580
|
+
*
|
|
1581
|
+
* Tokens follow the backend's `<feature>:<version>` format defined in
|
|
1582
|
+
* `core/pl/platform/api/plapiserver/server_capabilities.go`. The
|
|
1583
|
+
* schema itself accepts loose strings (not an enum) so future
|
|
1584
|
+
* capabilities don't break Desktops that ship before each token is
|
|
1585
|
+
* added — the same forward-compat property `BlockPackMeta` itself
|
|
1586
|
+
* enjoys at the field level, applied recursively at the token level.
|
|
1587
|
+
*/
|
|
1588
|
+
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1589
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
802
1590
|
type BlockPackMetaEmbeddedBytes = z.infer<typeof BlockPackMetaEmbeddedBytes>;
|
|
803
1591
|
//#endregion
|
|
804
1592
|
export { BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPlatform };
|