@milaboratories/pl-model-middle-layer 1.19.4 → 1.21.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 (35) hide show
  1. package/dist/block_meta/block_components.d.ts +55 -55
  2. package/dist/block_meta/block_description.d.ts +2308 -834
  3. package/dist/block_meta/block_description.d.ts.map +1 -1
  4. package/dist/block_meta/block_id.d.ts +4 -4
  5. package/dist/block_meta/block_manifest.d.ts +5127 -2488
  6. package/dist/block_meta/block_manifest.d.ts.map +1 -1
  7. package/dist/block_meta/block_meta.cjs +3 -2
  8. package/dist/block_meta/block_meta.cjs.map +1 -1
  9. package/dist/block_meta/block_meta.d.ts +1065 -277
  10. package/dist/block_meta/block_meta.d.ts.map +1 -1
  11. package/dist/block_meta/block_meta.js +3 -2
  12. package/dist/block_meta/block_meta.js.map +1 -1
  13. package/dist/block_meta/content_types.d.ts +49 -49
  14. package/dist/block_registry/block_pack_spec.d.ts +16 -16
  15. package/dist/block_registry/overview.d.ts +9794 -5614
  16. package/dist/block_registry/overview.d.ts.map +1 -1
  17. package/dist/block_registry/registry_spec.d.ts +12 -12
  18. package/dist/pframe/internal_api/api_factory.cjs.map +1 -1
  19. package/dist/pframe/internal_api/api_factory.d.ts +36 -2
  20. package/dist/pframe/internal_api/api_factory.d.ts.map +1 -1
  21. package/dist/pframe/internal_api/api_factory.js.map +1 -1
  22. package/dist/pframe/internal_api/api_read.d.ts +40 -3
  23. package/dist/pframe/internal_api/api_read.d.ts.map +1 -1
  24. package/dist/pframe/internal_api/index.d.ts +5 -5
  25. package/dist/pframe/internal_api/pframe.d.ts +21 -3
  26. package/dist/pframe/internal_api/pframe.d.ts.map +1 -1
  27. package/dist/pframe/internal_api/table.d.ts +51 -1
  28. package/dist/pframe/internal_api/table.d.ts.map +1 -1
  29. package/package.json +2 -2
  30. package/src/block_meta/block_meta.test.ts +44 -0
  31. package/src/block_meta/block_meta.ts +57 -36
  32. package/src/pframe/internal_api/api_factory.ts +44 -0
  33. package/src/pframe/internal_api/api_read.ts +48 -1
  34. package/src/pframe/internal_api/pframe.ts +23 -2
  35. package/src/pframe/internal_api/table.ts +54 -0
@@ -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
- }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
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
- }>, any> extends infer T ? { [k in keyof T]: T[k] } : never, z.baseObjectInputType<{
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,16 +152,29 @@ 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
- }> extends infer T_1 ? { [k_1 in keyof T_1]: T_1[k_1] } : never>;
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;
133
172
  longDescription: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
173
+ type: "relative";
174
+ path: string;
175
+ } | {
134
176
  type: "explicit-string";
135
177
  content: string;
136
- } | {
137
- path: string;
138
- type: "relative";
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;
@@ -165,11 +204,11 @@ declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
165
204
  file: string;
166
205
  }>]>]>>;
167
206
  changelog: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
207
+ type: "relative";
208
+ path: string;
209
+ } | {
168
210
  type: "explicit-string";
169
211
  content: string;
170
- } | {
171
- path: string;
172
- type: "relative";
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,33 +238,33 @@ 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
241
  type: "relative";
242
+ path: string;
204
243
  } | {
205
244
  type: "explicit-base64";
206
- mimeType: string;
207
245
  content: string;
246
+ mimeType: string;
208
247
  }, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
209
248
  type: z.ZodLiteral<"explicit-base64">;
210
249
  mimeType: z.ZodString;
211
250
  content: z.ZodString;
212
251
  }, "strict", z.ZodTypeAny, {
213
252
  type: "explicit-base64";
214
- mimeType: string;
215
253
  content: string;
254
+ mimeType: string;
216
255
  }, {
217
256
  type: "explicit-base64";
218
- mimeType: string;
219
257
  content: string;
258
+ mimeType: string;
220
259
  }>, 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,33 +283,33 @@ 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
286
  type: "relative";
287
+ path: string;
249
288
  } | {
250
289
  type: "explicit-base64";
251
- mimeType: string;
252
290
  content: string;
291
+ mimeType: string;
253
292
  }, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
254
293
  type: z.ZodLiteral<"explicit-base64">;
255
294
  mimeType: z.ZodString;
256
295
  content: z.ZodString;
257
296
  }, "strict", z.ZodTypeAny, {
258
297
  type: "explicit-base64";
259
- mimeType: string;
260
298
  content: string;
299
+ mimeType: string;
261
300
  }, {
262
301
  type: "explicit-base64";
263
- mimeType: string;
264
302
  content: string;
303
+ mimeType: string;
265
304
  }>, 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,33 +324,33 @@ 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
327
  type: "relative";
328
+ path: string;
290
329
  } | {
291
330
  type: "explicit-base64";
292
- mimeType: string;
293
331
  content: string;
332
+ mimeType: string;
294
333
  }, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
295
334
  type: z.ZodLiteral<"explicit-base64">;
296
335
  mimeType: z.ZodString;
297
336
  content: z.ZodString;
298
337
  }, "strict", z.ZodTypeAny, {
299
338
  type: "explicit-base64";
300
- mimeType: string;
301
339
  content: string;
340
+ mimeType: string;
302
341
  }, {
303
342
  type: "explicit-base64";
304
- mimeType: string;
305
343
  content: string;
344
+ mimeType: string;
306
345
  }>, 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,33 +365,33 @@ 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
368
  type: "relative";
369
+ path: string;
331
370
  } | {
332
371
  type: "explicit-base64";
333
- mimeType: string;
334
372
  content: string;
373
+ mimeType: string;
335
374
  }, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
336
375
  type: z.ZodLiteral<"explicit-base64">;
337
376
  mimeType: z.ZodString;
338
377
  content: z.ZodString;
339
378
  }, "strict", z.ZodTypeAny, {
340
379
  type: "explicit-base64";
341
- mimeType: string;
342
380
  content: string;
381
+ mimeType: string;
343
382
  }, {
344
383
  type: "explicit-base64";
345
- mimeType: string;
346
384
  content: string;
385
+ mimeType: string;
347
386
  }>, 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,144 +421,128 @@ 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
- }, "strip", z.ZodTypeAny, {
386
- organization: {
387
- name: string;
388
- url: string;
389
- logo?: {
390
- path: string;
391
- type: "relative";
392
- } | {
393
- type: "absolute-file";
394
- file: string;
395
- } | {
396
- type: "explicit-base64";
397
- mimeType: string;
398
- content: string;
399
- } | undefined;
400
- } & {
401
- [k: string]: unknown;
402
- };
403
- title: string;
404
- description: string;
405
- longDescription?: {
406
- type: "explicit-string";
407
- content: string;
408
- } | {
409
- path: string;
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, {
410
441
  type: "relative";
442
+ path: string;
411
443
  } | {
412
- type: "absolute-file";
413
- file: string;
414
- } | undefined;
415
- changelog?: {
416
444
  type: "explicit-string";
417
445
  content: string;
418
- } | {
446
+ }, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
447
+ type: z.ZodLiteral<"explicit-string">;
448
+ content: z.ZodString;
449
+ }, "strict", z.ZodTypeAny, {
450
+ type: "explicit-string";
451
+ content: string;
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
- } | undefined;
425
- logo?: {
426
- path: string;
427
- type: "relative";
428
- } | {
470
+ }, {
429
471
  type: "absolute-file";
430
472
  file: string;
473
+ }>]>]>>;
474
+ changelog: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
475
+ type: "relative";
476
+ path: string;
431
477
  } | {
432
- type: "explicit-base64";
433
- mimeType: string;
478
+ type: "explicit-string";
434
479
  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 | {
480
+ }, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
481
+ type: z.ZodLiteral<"explicit-string">;
482
+ content: z.ZodString;
483
+ }, "strict", z.ZodTypeAny, {
465
484
  type: "explicit-string";
466
485
  content: string;
467
- } | {
468
- path: string;
469
- type: "relative";
470
- } | {
471
- type: "absolute-file";
472
- file: string;
473
- } | undefined;
474
- changelog?: string | {
486
+ }, {
475
487
  type: "explicit-string";
476
488
  content: string;
477
- } | {
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
- } | undefined;
484
- logo?: string | {
485
- path: string;
486
- type: "relative";
487
- } | {
504
+ }, {
488
505
  type: "absolute-file";
489
506
  file: string;
507
+ }>]>]>>;
508
+ logo: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
509
+ type: "relative";
510
+ path: string;
490
511
  } | {
491
512
  type: "explicit-base64";
492
- mimeType: string;
493
513
  content: string;
494
- } | undefined;
495
- url?: string | undefined;
496
- docs?: string | undefined;
497
- support?: string | undefined;
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<{
514
+ mimeType: 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;
514
519
  }, "strict", z.ZodTypeAny, {
515
520
  type: "explicit-base64";
516
- mimeType: string;
517
521
  content: string;
522
+ mimeType: string;
518
523
  }, {
519
524
  type: "explicit-base64";
520
- mimeType: string;
521
525
  content: string;
522
- }>>;
526
+ mimeType: string;
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,50 +550,701 @@ 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.ZodObject<{
553
+ logo: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
554
+ type: "relative";
555
+ path: string;
556
+ } | {
557
+ type: "explicit-base64";
558
+ content: string;
559
+ mimeType: 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;
534
564
  }, "strict", z.ZodTypeAny, {
535
565
  type: "explicit-base64";
536
- mimeType: string;
537
566
  content: string;
567
+ mimeType: string;
538
568
  }, {
539
569
  type: "explicit-base64";
540
- mimeType: string;
541
570
  content: string;
542
- }>>;
571
+ mimeType: string;
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.ZodObject<{
547
- type: z.ZodLiteral<"explicit-base64">;
548
- mimeType: z.ZodString;
549
- content: z.ZodString;
550
- }, "strict", z.ZodTypeAny, {
594
+ logo: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
595
+ type: "relative";
596
+ path: string;
597
+ } | {
551
598
  type: "explicit-base64";
552
- mimeType: string;
553
599
  content: string;
554
- }, {
555
- type: "explicit-base64";
556
600
  mimeType: string;
557
- content: string;
558
- }>>;
559
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
560
- name: z.ZodString;
561
- url: z.ZodString;
562
- logo: z.ZodOptional<z.ZodObject<{
601
+ }, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
563
602
  type: z.ZodLiteral<"explicit-base64">;
564
603
  mimeType: z.ZodString;
565
604
  content: z.ZodString;
566
605
  }, "strict", z.ZodTypeAny, {
567
606
  type: "explicit-base64";
568
- mimeType: string;
569
607
  content: string;
608
+ mimeType: string;
609
+ }, {
610
+ type: "explicit-base64";
611
+ content: string;
612
+ mimeType: string;
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
+ }>]>]>>;
632
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
633
+ name: z.ZodString;
634
+ url: z.ZodString;
635
+ logo: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
636
+ type: "relative";
637
+ path: string;
638
+ } | {
639
+ type: "explicit-base64";
640
+ content: string;
641
+ mimeType: string;
642
+ }, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
643
+ type: z.ZodLiteral<"explicit-base64">;
644
+ mimeType: z.ZodString;
645
+ content: z.ZodString;
646
+ }, "strict", z.ZodTypeAny, {
647
+ type: "explicit-base64";
648
+ content: string;
649
+ mimeType: string;
650
+ }, {
651
+ type: "explicit-base64";
652
+ content: string;
653
+ mimeType: string;
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: "relative";
710
+ path: string;
711
+ } | {
712
+ type: "explicit-string";
713
+ content: 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: "relative";
744
+ path: string;
745
+ } | {
746
+ type: "explicit-string";
747
+ content: 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: "relative";
778
+ path: string;
779
+ } | {
780
+ type: "explicit-base64";
781
+ content: string;
782
+ mimeType: 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
+ content: string;
790
+ mimeType: string;
791
+ }, {
792
+ type: "explicit-base64";
793
+ content: string;
794
+ mimeType: 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: "relative";
823
+ path: string;
824
+ } | {
825
+ type: "explicit-base64";
826
+ content: string;
827
+ mimeType: 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
+ content: string;
835
+ mimeType: string;
836
+ }, {
837
+ type: "explicit-base64";
838
+ content: string;
839
+ mimeType: 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: "relative";
864
+ path: string;
865
+ } | {
866
+ type: "explicit-base64";
867
+ content: string;
868
+ mimeType: 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
+ content: string;
876
+ mimeType: string;
877
+ }, {
878
+ type: "explicit-base64";
879
+ content: string;
880
+ mimeType: 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: "relative";
905
+ path: string;
906
+ } | {
907
+ type: "explicit-base64";
908
+ content: string;
909
+ mimeType: 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
+ content: string;
917
+ mimeType: string;
918
+ }, {
919
+ type: "explicit-base64";
920
+ content: string;
921
+ mimeType: 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
+ content: string;
987
+ mimeType: string;
988
+ }, {
989
+ type: "explicit-base64";
990
+ content: string;
991
+ mimeType: 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
+ content: string;
1007
+ mimeType: string;
1008
+ }, {
1009
+ type: "explicit-base64";
1010
+ content: string;
1011
+ mimeType: 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
+ content: string;
1023
+ mimeType: string;
1024
+ }, {
1025
+ type: "explicit-base64";
1026
+ content: string;
1027
+ mimeType: 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
+ content: string;
1039
+ mimeType: string;
1040
+ }, {
1041
+ type: "explicit-base64";
1042
+ content: string;
1043
+ mimeType: 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
+ content: string;
1089
+ mimeType: string;
1090
+ }, {
1091
+ type: "explicit-base64";
1092
+ content: string;
1093
+ mimeType: 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
+ content: string;
1109
+ mimeType: string;
1110
+ }, {
1111
+ type: "explicit-base64";
1112
+ content: string;
1113
+ mimeType: 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
+ content: string;
1125
+ mimeType: string;
1126
+ }, {
1127
+ type: "explicit-base64";
1128
+ content: string;
1129
+ mimeType: 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
+ content: string;
1141
+ mimeType: string;
1142
+ }, {
1143
+ type: "explicit-base64";
1144
+ content: string;
1145
+ mimeType: 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
+ content: string;
1191
+ mimeType: string;
1192
+ }, {
1193
+ type: "explicit-base64";
1194
+ content: string;
1195
+ mimeType: 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
+ content: string;
1211
+ mimeType: string;
1212
+ }, {
1213
+ type: "explicit-base64";
1214
+ content: string;
1215
+ mimeType: 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
+ content: string;
1227
+ mimeType: string;
570
1228
  }, {
571
1229
  type: "explicit-base64";
1230
+ content: string;
1231
+ mimeType: 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
+ content: string;
572
1243
  mimeType: string;
1244
+ }, {
1245
+ type: "explicit-base64";
573
1246
  content: string;
1247
+ mimeType: string;
574
1248
  }>>;
575
1249
  }, z.ZodTypeAny, "passthrough">>;
576
1250
  /**
@@ -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
- }, "strip", z.ZodTypeAny, {
595
- organization: {
596
- name: string;
597
- url: string;
598
- logo?: {
599
- type: "explicit-base64";
600
- mimeType: string;
601
- content: string;
602
- } | undefined;
603
- } & {
604
- [k: string]: unknown;
605
- };
606
- title: string;
607
- description: string;
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;
@@ -662,12 +1291,12 @@ declare const BlockPackMetaEmbeddedBytes: z.ZodObject<{
662
1291
  content: z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>;
663
1292
  }, "strict", z.ZodTypeAny, {
664
1293
  type: "explicit-bytes";
665
- mimeType: string;
666
1294
  content: Uint8Array<ArrayBuffer>;
1295
+ mimeType: string;
667
1296
  }, {
668
1297
  type: "explicit-bytes";
669
- mimeType: string;
670
1298
  content: Uint8Array<ArrayBuffer>;
1299
+ mimeType: string;
671
1300
  }>>;
672
1301
  url: z.ZodOptional<z.ZodString>;
673
1302
  docs: z.ZodOptional<z.ZodString>;
@@ -682,12 +1311,12 @@ declare const BlockPackMetaEmbeddedBytes: z.ZodObject<{
682
1311
  content: z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>;
683
1312
  }, "strict", z.ZodTypeAny, {
684
1313
  type: "explicit-bytes";
685
- mimeType: string;
686
1314
  content: Uint8Array<ArrayBuffer>;
1315
+ mimeType: string;
687
1316
  }, {
688
1317
  type: "explicit-bytes";
689
- mimeType: string;
690
1318
  content: Uint8Array<ArrayBuffer>;
1319
+ mimeType: string;
691
1320
  }>>;
692
1321
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
693
1322
  name: z.ZodString;
@@ -698,12 +1327,12 @@ declare const BlockPackMetaEmbeddedBytes: z.ZodObject<{
698
1327
  content: z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>;
699
1328
  }, "strict", z.ZodTypeAny, {
700
1329
  type: "explicit-bytes";
701
- mimeType: string;
702
1330
  content: Uint8Array<ArrayBuffer>;
1331
+ mimeType: string;
703
1332
  }, {
704
1333
  type: "explicit-bytes";
705
- mimeType: string;
706
1334
  content: Uint8Array<ArrayBuffer>;
1335
+ mimeType: string;
707
1336
  }>>;
708
1337
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
709
1338
  name: z.ZodString;
@@ -714,12 +1343,12 @@ declare const BlockPackMetaEmbeddedBytes: z.ZodObject<{
714
1343
  content: z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>;
715
1344
  }, "strict", z.ZodTypeAny, {
716
1345
  type: "explicit-bytes";
717
- mimeType: string;
718
1346
  content: Uint8Array<ArrayBuffer>;
1347
+ mimeType: string;
719
1348
  }, {
720
1349
  type: "explicit-bytes";
721
- mimeType: string;
722
1350
  content: Uint8Array<ArrayBuffer>;
1351
+ mimeType: string;
723
1352
  }>>;
724
1353
  }, z.ZodTypeAny, "passthrough">>;
725
1354
  /**
@@ -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
- }, "strip", z.ZodTypeAny, {
744
- organization: {
745
- name: string;
746
- url: string;
747
- logo?: {
748
- type: "explicit-bytes";
749
- mimeType: string;
750
- content: Uint8Array<ArrayBuffer>;
751
- } | undefined;
752
- } & {
753
- [k: string]: unknown;
754
- };
755
- title: string;
756
- description: string;
757
- longDescription?: string | undefined;
758
- changelog?: string | undefined;
759
- logo?: {
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, {
760
1395
  type: "explicit-bytes";
1396
+ content: Uint8Array<ArrayBuffer>;
761
1397
  mimeType: string;
1398
+ }, {
1399
+ type: "explicit-bytes";
762
1400
  content: Uint8Array<ArrayBuffer>;
763
- } | undefined;
764
- url?: string | undefined;
765
- docs?: string | undefined;
766
- support?: string | undefined;
767
- tags?: string[] | undefined;
768
- marketplaceRanking?: number | undefined;
769
- deprecated?: boolean | undefined;
770
- termsOfServiceUrl?: string | undefined;
771
- supportedPlatforms?: ("windows-x64" | "windows-aarch64" | "macosx-x64" | "macosx-aarch64" | "linux-x64" | "linux-aarch64")[] | undefined;
772
- }, {
773
- organization: {
774
- name: string;
775
- url: string;
776
- logo?: {
1401
+ mimeType: string;
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
+ content: Uint8Array<ArrayBuffer>;
1417
+ mimeType: string;
1418
+ }, {
1419
+ type: "explicit-bytes";
1420
+ content: Uint8Array<ArrayBuffer>;
1421
+ mimeType: string;
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
+ content: Uint8Array<ArrayBuffer>;
1433
+ mimeType: string;
1434
+ }, {
1435
+ type: "explicit-bytes";
1436
+ content: Uint8Array<ArrayBuffer>;
1437
+ mimeType: string;
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, {
777
1447
  type: "explicit-bytes";
1448
+ content: Uint8Array<ArrayBuffer>;
778
1449
  mimeType: string;
1450
+ }, {
1451
+ type: "explicit-bytes";
779
1452
  content: Uint8Array<ArrayBuffer>;
780
- } | undefined;
781
- } & {
782
- [k: string]: unknown;
783
- };
784
- title: string;
785
- description: string;
786
- longDescription?: string | undefined;
787
- changelog?: string | undefined;
788
- logo?: {
1453
+ mimeType: string;
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, {
789
1497
  type: "explicit-bytes";
1498
+ content: Uint8Array<ArrayBuffer>;
790
1499
  mimeType: string;
1500
+ }, {
1501
+ type: "explicit-bytes";
791
1502
  content: Uint8Array<ArrayBuffer>;
792
- } | undefined;
793
- url?: string | undefined;
794
- docs?: string | undefined;
795
- support?: string | undefined;
796
- tags?: string[] | undefined;
797
- marketplaceRanking?: number | undefined;
798
- deprecated?: boolean | undefined;
799
- termsOfServiceUrl?: string | undefined;
800
- supportedPlatforms?: ("windows-x64" | "windows-aarch64" | "macosx-x64" | "macosx-aarch64" | "linux-x64" | "linux-aarch64")[] | undefined;
801
- }>;
1503
+ mimeType: string;
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
+ content: Uint8Array<ArrayBuffer>;
1519
+ mimeType: string;
1520
+ }, {
1521
+ type: "explicit-bytes";
1522
+ content: Uint8Array<ArrayBuffer>;
1523
+ mimeType: string;
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
+ content: Uint8Array<ArrayBuffer>;
1535
+ mimeType: string;
1536
+ }, {
1537
+ type: "explicit-bytes";
1538
+ content: Uint8Array<ArrayBuffer>;
1539
+ mimeType: string;
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
+ content: Uint8Array<ArrayBuffer>;
1551
+ mimeType: string;
1552
+ }, {
1553
+ type: "explicit-bytes";
1554
+ content: Uint8Array<ArrayBuffer>;
1555
+ mimeType: string;
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 };