@milaboratories/pl-model-middle-layer 1.19.3 → 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.
@@ -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,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
- }> 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;
@@ -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
- }, "strip", z.ZodTypeAny, {
386
- organization: {
387
- name: string;
388
- url: string;
389
- logo?: {
390
- type: "explicit-base64";
391
- mimeType: string;
392
- content: string;
393
- } | {
394
- type: "relative";
395
- path: string;
396
- } | {
397
- type: "absolute-file";
398
- file: string;
399
- } | undefined;
400
- } & {
401
- [k: string]: unknown;
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
444
  type: "relative";
410
445
  path: string;
411
- } | {
412
- type: "absolute-file";
413
- file: string;
414
- } | undefined;
415
- changelog?: {
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, {
419
459
  type: "relative";
420
460
  path: string;
421
- } | {
422
- type: "absolute-file";
423
- file: string;
424
- } | undefined;
425
- logo?: {
426
- type: "explicit-base64";
427
- mimeType: string;
428
- content: string;
429
- } | {
461
+ }, {
430
462
  type: "relative";
431
463
  path: string;
432
- } | {
464
+ }>, z.ZodObject<{
465
+ type: z.ZodLiteral<"absolute-file">;
466
+ file: z.ZodString;
467
+ }, "strict", z.ZodTypeAny, {
433
468
  type: "absolute-file";
434
469
  file: 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
- type: "explicit-base64";
450
- mimeType: string;
451
- content: string;
452
- } | {
453
- type: "relative";
454
- path: string;
455
- } | {
456
- type: "absolute-file";
457
- file: string;
458
- } | undefined;
459
- } & {
460
- [k: string]: unknown;
461
- };
462
- title: string;
463
- description: string;
464
- longDescription?: string | {
470
+ }, {
471
+ type: "absolute-file";
472
+ file: string;
473
+ }>]>]>>;
474
+ changelog: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
465
475
  type: "explicit-string";
466
476
  content: string;
467
477
  } | {
468
478
  type: "relative";
469
479
  path: string;
470
- } | {
471
- type: "absolute-file";
472
- file: string;
473
- } | undefined;
474
- changelog?: 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, {
478
493
  type: "relative";
479
494
  path: string;
480
- } | {
495
+ }, {
496
+ type: "relative";
497
+ path: string;
498
+ }>, z.ZodObject<{
499
+ type: z.ZodLiteral<"absolute-file">;
500
+ file: z.ZodString;
501
+ }, "strict", z.ZodTypeAny, {
502
+ type: "absolute-file";
503
+ file: string;
504
+ }, {
481
505
  type: "absolute-file";
482
506
  file: string;
483
- } | undefined;
484
- logo?: string | {
507
+ }>]>]>>;
508
+ logo: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
485
509
  type: "explicit-base64";
486
510
  mimeType: string;
487
511
  content: string;
488
512
  } | {
489
513
  type: "relative";
490
514
  path: string;
491
- } | {
492
- type: "absolute-file";
493
- file: 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<{
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.ZodObject<{
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.ZodObject<{
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.ZodObject<{
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,7 +651,25 @@ declare const BlockPackMetaEmbeddedBase64: z.ZodObject<{
571
651
  type: "explicit-base64";
572
652
  mimeType: string;
573
653
  content: string;
574
- }>>;
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
+ }>]>]>>;
575
673
  }, z.ZodTypeAny, "passthrough">>;
576
674
  /**
577
675
  * The order of blocks on the "marketplace" (higher values push block higher to the top of the list).
@@ -591,98 +689,629 @@ declare const BlockPackMetaEmbeddedBase64: z.ZodObject<{
591
689
  * If not provided, the block is supported on all operating systems.
592
690
  */
593
691
  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
- }>;
653
- type BlockPackMetaEmbeddedBase64 = z.infer<typeof BlockPackMetaEmbeddedBase64>;
654
- declare const BlockPackMetaEmbeddedBytes: z.ZodObject<{
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<{
655
706
  title: z.ZodString;
656
707
  description: z.ZodString;
657
- longDescription: z.ZodOptional<z.ZodString>;
658
- changelog: z.ZodOptional<z.ZodString>;
659
- logo: z.ZodOptional<z.ZodObject<{
660
- type: z.ZodLiteral<"explicit-bytes">;
661
- mimeType: z.ZodString;
662
- content: z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>;
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;
663
717
  }, "strict", z.ZodTypeAny, {
664
- type: "explicit-bytes";
665
- mimeType: string;
666
- content: Uint8Array<ArrayBuffer>;
718
+ type: "explicit-string";
719
+ content: string;
667
720
  }, {
668
- type: "explicit-bytes";
669
- mimeType: string;
670
- content: Uint8Array<ArrayBuffer>;
671
- }>>;
672
- url: z.ZodOptional<z.ZodString>;
673
- docs: z.ZodOptional<z.ZodString>;
674
- support: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
675
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
676
- organization: z.ZodObject<{
677
- name: z.ZodString;
678
- url: z.ZodString;
679
- logo: z.ZodOptional<z.ZodObject<{
680
- type: z.ZodLiteral<"explicit-bytes">;
681
- mimeType: z.ZodString;
682
- content: z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>;
683
- }, "strict", z.ZodTypeAny, {
684
- type: "explicit-bytes";
685
- mimeType: string;
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
+ */
1258
+ deprecated: z.ZodOptional<z.ZodBoolean>;
1259
+ /**
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.
1261
+ */
1262
+ termsOfServiceUrl: z.ZodOptional<z.ZodString>;
1263
+ /**
1264
+ * Supported operating systems.
1265
+ * If not provided, the block is supported on all operating systems.
1266
+ */
1267
+ supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
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">>;
1282
+ type BlockPackMetaEmbeddedBase64 = z.infer<typeof BlockPackMetaEmbeddedBase64>;
1283
+ declare const BlockPackMetaEmbeddedBytes: z.ZodObject<{
1284
+ title: z.ZodString;
1285
+ description: z.ZodString;
1286
+ longDescription: z.ZodOptional<z.ZodString>;
1287
+ changelog: z.ZodOptional<z.ZodString>;
1288
+ logo: z.ZodOptional<z.ZodObject<{
1289
+ type: z.ZodLiteral<"explicit-bytes">;
1290
+ mimeType: z.ZodString;
1291
+ content: z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>;
1292
+ }, "strict", z.ZodTypeAny, {
1293
+ type: "explicit-bytes";
1294
+ mimeType: string;
1295
+ content: Uint8Array<ArrayBuffer>;
1296
+ }, {
1297
+ type: "explicit-bytes";
1298
+ mimeType: string;
1299
+ content: Uint8Array<ArrayBuffer>;
1300
+ }>>;
1301
+ url: z.ZodOptional<z.ZodString>;
1302
+ docs: z.ZodOptional<z.ZodString>;
1303
+ support: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1304
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1305
+ organization: z.ZodObject<{
1306
+ name: z.ZodString;
1307
+ url: z.ZodString;
1308
+ logo: z.ZodOptional<z.ZodObject<{
1309
+ type: z.ZodLiteral<"explicit-bytes">;
1310
+ mimeType: z.ZodString;
1311
+ content: z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>;
1312
+ }, "strict", z.ZodTypeAny, {
1313
+ type: "explicit-bytes";
1314
+ mimeType: string;
686
1315
  content: Uint8Array<ArrayBuffer>;
687
1316
  }, {
688
1317
  type: "explicit-bytes";
@@ -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, {
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
- } | 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?: {
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
- } | undefined;
781
- } & {
782
- [k: string]: unknown;
783
- };
784
- title: string;
785
- description: string;
786
- longDescription?: string | undefined;
787
- changelog?: string | undefined;
788
- logo?: {
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
- } | 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
- }>;
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 };