@supernova-studio/client 0.12.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -16,7 +16,7 @@ import { z as z14 } from "zod";
16
16
  import { z as z17 } from "zod";
17
17
  import { z as z15 } from "zod";
18
18
  import { z as z16 } from "zod";
19
- import { z as z82 } from "zod";
19
+ import { z as z83 } from "zod";
20
20
  import { z as z18 } from "zod";
21
21
  import { z as z20 } from "zod";
22
22
  import { z as z19 } from "zod";
@@ -26,19 +26,21 @@ import { z as z25 } from "zod";
26
26
  import { z as z24 } from "zod";
27
27
  import { z as z23 } from "zod";
28
28
  import { z as z26 } from "zod";
29
- import { z as z32 } from "zod";
29
+ import { z as z33 } from "zod";
30
30
  import { z as z27 } from "zod";
31
31
  import { z as z28 } from "zod";
32
32
  import { z as z29 } from "zod";
33
33
  import { z as z30 } from "zod";
34
34
  import { z as z31 } from "zod";
35
- import { z as z33 } from "zod";
35
+ import {
36
+ z as z32
37
+ } from "zod";
38
+ import { z as z34 } from "zod";
39
+ import { z as z39 } from "zod";
36
40
  import { z as z38 } from "zod";
37
41
  import { z as z37 } from "zod";
38
42
  import { z as z36 } from "zod";
39
43
  import { z as z35 } from "zod";
40
- import { z as z34 } from "zod";
41
- import { z as z39 } from "zod";
42
44
  import { z as z40 } from "zod";
43
45
  import { z as z41 } from "zod";
44
46
  import { z as z42 } from "zod";
@@ -68,54 +70,54 @@ import { z as z65 } from "zod";
68
70
  import { z as z66 } from "zod";
69
71
  import { z as z67 } from "zod";
70
72
  import { z as z68 } from "zod";
71
- import { z as z70 } from "zod";
72
73
  import { z as z69 } from "zod";
73
74
  import { z as z71 } from "zod";
75
+ import { z as z70 } from "zod";
74
76
  import { z as z72 } from "zod";
75
- import { z as z80 } from "zod";
76
77
  import { z as z73 } from "zod";
77
- import { z as z75 } from "zod";
78
+ import { z as z81 } from "zod";
78
79
  import { z as z74 } from "zod";
79
80
  import { z as z76 } from "zod";
81
+ import { z as z75 } from "zod";
80
82
  import { z as z77 } from "zod";
81
83
  import { z as z78 } from "zod";
82
84
  import { z as z79 } from "zod";
83
- import { z as z81 } from "zod";
84
- import { z as z83 } from "zod";
85
- import { z as z86 } from "zod";
86
- import { z as z85 } from "zod";
85
+ import { z as z80 } from "zod";
86
+ import { z as z82 } from "zod";
87
87
  import { z as z84 } from "zod";
88
88
  import { z as z87 } from "zod";
89
+ import { z as z86 } from "zod";
90
+ import { z as z85 } from "zod";
89
91
  import { z as z88 } from "zod";
90
- import { z as z98 } from "zod";
91
92
  import { z as z89 } from "zod";
93
+ import { z as z99 } from "zod";
92
94
  import { z as z90 } from "zod";
93
- import { z as z92 } from "zod";
94
95
  import { z as z91 } from "zod";
95
- import { z as z94 } from "zod";
96
96
  import { z as z93 } from "zod";
97
+ import { z as z92 } from "zod";
97
98
  import { z as z95 } from "zod";
99
+ import { z as z94 } from "zod";
98
100
  import { z as z96 } from "zod";
99
101
  import { z as z97 } from "zod";
100
- import { z as z99 } from "zod";
102
+ import { z as z98 } from "zod";
101
103
  import { z as z100 } from "zod";
102
104
  import { z as z101 } from "zod";
103
105
  import { z as z102 } from "zod";
104
106
  import { z as z103 } from "zod";
105
107
  import { z as z104 } from "zod";
106
- import { z as z107 } from "zod";
107
108
  import { z as z105 } from "zod";
108
- import { z as z106 } from "zod";
109
109
  import { z as z108 } from "zod";
110
- import { z as z113 } from "zod";
110
+ import { z as z106 } from "zod";
111
+ import { z as z107 } from "zod";
111
112
  import { z as z109 } from "zod";
113
+ import { z as z114 } from "zod";
112
114
  import { z as z110 } from "zod";
113
115
  import { z as z111 } from "zod";
114
116
  import { z as z112 } from "zod";
115
- import { z as z114 } from "zod";
116
- import { z as z116 } from "zod";
117
+ import { z as z113 } from "zod";
117
118
  import { z as z115 } from "zod";
118
119
  import { z as z117 } from "zod";
120
+ import { z as z116 } from "zod";
119
121
  import { z as z118 } from "zod";
120
122
  import { z as z119 } from "zod";
121
123
  import { z as z120 } from "zod";
@@ -123,6 +125,7 @@ import { z as z121 } from "zod";
123
125
  import { z as z122 } from "zod";
124
126
  import { z as z123 } from "zod";
125
127
  import { z as z124 } from "zod";
128
+ import { z as z125 } from "zod";
126
129
  var PluginOAuthRequestSchema = z.object({
127
130
  id: z.string(),
128
131
  codeChallenge: z.string(),
@@ -640,8 +643,8 @@ function zodUpdateInputOmit() {
640
643
  function nullishToOptional(type) {
641
644
  return type.nullish().transform((t) => t ?? void 0);
642
645
  }
643
- var PageBlockCalloutType = z32.enum(["Info", "Primary", "Success", "Warning", "Error"]);
644
- var PageBlockTypeV1 = z32.enum([
646
+ var PageBlockCalloutType = z33.enum(["Info", "Primary", "Success", "Warning", "Error"]);
647
+ var PageBlockTypeV1 = z33.enum([
645
648
  "Text",
646
649
  "Heading",
647
650
  "Code",
@@ -674,7 +677,7 @@ var PageBlockTypeV1 = z32.enum([
674
677
  "TableRow",
675
678
  "TableCell"
676
679
  ]);
677
- var PageBlockCodeLanguage = z32.enum([
680
+ var PageBlockCodeLanguage = z33.enum([
678
681
  "Angular",
679
682
  "Bash",
680
683
  "C",
@@ -708,68 +711,68 @@ var PageBlockCodeLanguage = z32.enum([
708
711
  "XML",
709
712
  "YAML"
710
713
  ]);
711
- var PageBlockAlignment = z32.enum(["Left", "Center", "Stretch", "Right"]);
712
- var PageBlockThemeType = z32.enum(["Override", "Comparison"]);
713
- var PageBlockAssetType = z32.enum(["image", "figmaFrame"]);
714
- var PageBlockTilesAlignment = z32.enum(["Center", "FrameHeight"]);
715
- var PageBlockTilesLayout = z32.enum(["C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1", "C1_75"]);
716
- var PageBlockTheme = z32.object({
717
- themeIds: z32.array(z32.string()),
714
+ var PageBlockAlignment = z33.enum(["Left", "Center", "Stretch", "Right"]);
715
+ var PageBlockThemeType = z33.enum(["Override", "Comparison"]);
716
+ var PageBlockAssetType = z33.enum(["image", "figmaFrame"]);
717
+ var PageBlockTilesAlignment = z33.enum(["Center", "FrameHeight"]);
718
+ var PageBlockTilesLayout = z33.enum(["C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1", "C1_75"]);
719
+ var PageBlockTheme = z33.object({
720
+ themeIds: z33.array(z33.string()),
718
721
  type: PageBlockThemeType
719
722
  });
720
- var PageBlockUrlPreview = z32.object({
721
- title: nullishToOptional(z32.string()),
722
- description: nullishToOptional(z32.string()),
723
- thumbnailUrl: nullishToOptional(z32.string())
724
- });
725
- var PageBlockFrameOrigin = z32.object({
726
- sourceFileName: nullishToOptional(z32.string()),
727
- title: nullishToOptional(z32.string()),
728
- previewUrl: nullishToOptional(z32.string()),
729
- valid: nullishToOptional(z32.boolean()),
730
- referenceId: nullishToOptional(z32.string()),
731
- assetId: nullishToOptional(z32.string()),
732
- assetScale: nullishToOptional(z32.number()),
733
- width: nullishToOptional(z32.number()),
734
- height: nullishToOptional(z32.number())
735
- });
736
- var PageBlockFrame = z32.object({
737
- persistentId: z32.string(),
738
- sourceId: z32.string(),
739
- sourceFrameId: z32.string(),
740
- title: nullishToOptional(z32.string()),
741
- description: nullishToOptional(z32.string()),
723
+ var PageBlockUrlPreview = z33.object({
724
+ title: nullishToOptional(z33.string()),
725
+ description: nullishToOptional(z33.string()),
726
+ thumbnailUrl: nullishToOptional(z33.string())
727
+ });
728
+ var PageBlockFrameOrigin = z33.object({
729
+ sourceFileName: nullishToOptional(z33.string()),
730
+ title: nullishToOptional(z33.string()),
731
+ previewUrl: nullishToOptional(z33.string()),
732
+ valid: nullishToOptional(z33.boolean()),
733
+ referenceId: nullishToOptional(z33.string()),
734
+ assetId: nullishToOptional(z33.string()),
735
+ assetScale: nullishToOptional(z33.number()),
736
+ width: nullishToOptional(z33.number()),
737
+ height: nullishToOptional(z33.number())
738
+ });
739
+ var PageBlockFrame = z33.object({
740
+ persistentId: z33.string(),
741
+ sourceId: z33.string(),
742
+ sourceFrameId: z33.string(),
743
+ title: nullishToOptional(z33.string()),
744
+ description: nullishToOptional(z33.string()),
742
745
  backgroundColor: nullishToOptional(ColorTokenInlineData),
743
746
  origin: nullishToOptional(PageBlockFrameOrigin)
744
747
  });
745
- var PageBlockAsset = z32.object({
748
+ var PageBlockAsset = z33.object({
746
749
  type: PageBlockAssetType,
747
- id: nullishToOptional(z32.string()),
748
- url: nullishToOptional(z32.string()),
750
+ id: nullishToOptional(z33.string()),
751
+ url: nullishToOptional(z33.string()),
749
752
  figmaFrame: nullishToOptional(PageBlockFrame)
750
753
  });
751
- var PageBlockLinkPreview = z32.object({
752
- title: nullishToOptional(z32.string()),
753
- valid: nullishToOptional(z32.boolean())
754
+ var PageBlockLinkPreview = z33.object({
755
+ title: nullishToOptional(z33.string()),
756
+ valid: nullishToOptional(z33.boolean())
754
757
  });
755
- var PageBlockShortcut = z32.object({
756
- persistentId: z32.string(),
757
- title: nullishToOptional(z32.string()),
758
- description: nullishToOptional(z32.string()),
758
+ var PageBlockShortcut = z33.object({
759
+ persistentId: z33.string(),
760
+ title: nullishToOptional(z33.string()),
761
+ description: nullishToOptional(z33.string()),
759
762
  asset: nullishToOptional(PageBlockAsset),
760
- documentationItemId: nullishToOptional(z32.string()),
761
- url: nullishToOptional(z32.string()),
763
+ documentationItemId: nullishToOptional(z33.string()),
764
+ url: nullishToOptional(z33.string()),
762
765
  urlPreview: nullishToOptional(PageBlockUrlPreview),
763
766
  documentationItemPreview: nullishToOptional(PageBlockLinkPreview)
764
767
  });
765
- var PageBlockCustomBlockPropertyImageValue = z32.object({
768
+ var PageBlockCustomBlockPropertyImageValue = z33.object({
766
769
  asset: nullishToOptional(PageBlockAsset),
767
- assetId: nullishToOptional(z32.string()),
768
- assetUrl: nullishToOptional(z32.string())
770
+ assetId: nullishToOptional(z33.string()),
771
+ assetUrl: nullishToOptional(z33.string())
769
772
  });
770
- var PageBlockCustomBlockPropertyValue = z32.object({
771
- key: z32.string(),
772
- value: z32.any()
773
+ var PageBlockCustomBlockPropertyValue = z33.object({
774
+ key: z33.string(),
775
+ value: z33.any()
773
776
  // TODO Artem: for some reason there are cases when there's an array here in the DB
774
777
  // e.g. element id 67451 in the dev db
775
778
  // value: z
@@ -780,312 +783,315 @@ var PageBlockCustomBlockPropertyValue = z32.object({
780
783
  // .or(TypographyTokenData)
781
784
  // .or(PageBlockCustomBlockPropertyImageValue),
782
785
  });
783
- var PageBlockFigmaFrameProperties = z32.object({
786
+ var PageBlockFigmaFrameProperties = z33.object({
784
787
  color: nullishToOptional(
785
- z32.object({
786
- value: z32.string()
788
+ z33.object({
789
+ value: z33.string()
787
790
  })
788
791
  ),
789
792
  alignment: PageBlockTilesAlignment,
790
793
  layout: PageBlockTilesLayout,
791
794
  backgroundColor: nullishToOptional(ColorTokenInlineData),
792
- showTitles: z32.boolean()
795
+ showTitles: z33.boolean()
793
796
  });
794
- var PageBlockRenderCodeProperties = z32.object({
795
- showCode: z32.boolean()
797
+ var PageBlockRenderCodeProperties = z33.object({
798
+ showCode: z33.boolean()
796
799
  });
797
- var PageBlockAssetComponent = z32.object({
798
- persistentId: z32.string(),
799
- componentAssetId: z32.string(),
800
- title: nullishToOptional(z32.string()),
801
- description: nullishToOptional(z32.string()),
800
+ var PageBlockAssetComponent = z33.object({
801
+ persistentId: z33.string(),
802
+ componentAssetId: z33.string(),
803
+ title: nullishToOptional(z33.string()),
804
+ description: nullishToOptional(z33.string()),
802
805
  backgroundColor: nullishToOptional(ColorTokenInlineData)
803
806
  });
804
- var PageBlockTableColumn = z32.object({
805
- id: z32.string(),
807
+ var PageBlockTableColumn = z33.object({
808
+ id: z33.string(),
806
809
  width: DimensionTokenData
807
810
  });
808
- var PageBlockTableProperties = z32.object({
809
- showBorders: z32.boolean(),
810
- showHeaderRow: z32.boolean(),
811
- showHeaderColumn: z32.boolean(),
812
- columns: z32.array(PageBlockTableColumn)
811
+ var PageBlockTableProperties = z33.object({
812
+ showBorders: z33.boolean(),
813
+ showHeaderRow: z33.boolean(),
814
+ showHeaderColumn: z33.boolean(),
815
+ columns: z33.array(PageBlockTableColumn)
813
816
  });
814
- var PageBlockTextSpanAttributeType = z32.enum(["Bold", "Italic", "Link", "Strikethrough", "Code"]);
815
- var PageBlockTextSpanAttribute = z32.object({
817
+ var PageBlockTextSpanAttributeType = z33.enum(["Bold", "Italic", "Link", "Strikethrough", "Code"]);
818
+ var PageBlockTextSpanAttribute = z33.object({
816
819
  type: PageBlockTextSpanAttributeType,
817
- link: nullishToOptional(z32.string()),
818
- documentationItemId: nullishToOptional(z32.string()),
819
- openInNewWindow: nullishToOptional(z32.boolean())
820
+ link: nullishToOptional(z33.string()),
821
+ documentationItemId: nullishToOptional(z33.string()),
822
+ openInNewWindow: nullishToOptional(z33.boolean())
820
823
  });
821
- var PageBlockTextSpan = z32.object({
822
- text: z32.string(),
823
- attributes: z32.array(PageBlockTextSpanAttribute)
824
+ var PageBlockTextSpan = z33.object({
825
+ text: z33.string(),
826
+ attributes: z33.array(PageBlockTextSpanAttribute)
824
827
  });
825
- var PageBlockText = z32.object({
826
- spans: z32.array(PageBlockTextSpan)
828
+ var PageBlockText = z33.object({
829
+ spans: z33.array(PageBlockTextSpan)
827
830
  });
828
- var PageBlockBaseV1 = z32.object({
829
- persistentId: z32.string(),
831
+ var PageBlockBaseV1 = z33.object({
832
+ persistentId: z33.string(),
830
833
  type: PageBlockTypeV1,
831
834
  // Element linking
832
- designObjectId: nullishToOptional(z32.string()),
833
- designObjectIds: nullishToOptional(z32.array(z32.string())),
834
- tokenType: nullishToOptional(DesignTokenType.or(z32.literal("Font"))),
835
- showNestedGroups: nullishToOptional(z32.boolean()),
836
- brandId: nullishToOptional(z32.string()),
835
+ designObjectId: nullishToOptional(z33.string()),
836
+ designObjectIds: nullishToOptional(z33.array(z33.string())),
837
+ tokenType: nullishToOptional(DesignTokenType.or(z33.literal("Font"))),
838
+ showNestedGroups: nullishToOptional(z33.boolean()),
839
+ brandId: nullishToOptional(z33.string()),
837
840
  // Rich text
838
841
  text: nullishToOptional(PageBlockText),
839
- caption: nullishToOptional(z32.string()),
840
- headingType: nullishToOptional(z32.number().min(1).max(3)),
842
+ caption: nullishToOptional(z33.string()),
843
+ headingType: nullishToOptional(z33.number().min(1).max(3)),
841
844
  codeLanguage: nullishToOptional(PageBlockCodeLanguage),
842
845
  calloutType: nullishToOptional(PageBlockCalloutType),
843
- urlInput: nullishToOptional(z32.string()),
844
- url: nullishToOptional(z32.string()),
846
+ urlInput: nullishToOptional(z33.string()),
847
+ url: nullishToOptional(z33.string()),
845
848
  urlPreview: nullishToOptional(PageBlockUrlPreview),
846
849
  // Image
847
850
  asset: nullishToOptional(PageBlockAsset),
848
851
  alignment: nullishToOptional(PageBlockAlignment),
849
852
  // Shortcuts block
850
- shortcuts: nullishToOptional(z32.array(PageBlockShortcut)),
853
+ shortcuts: nullishToOptional(z33.array(PageBlockShortcut)),
851
854
  // Custom blocks
852
- customBlockKey: nullishToOptional(z32.string()),
853
- customBlockProperties: nullishToOptional(z32.array(PageBlockCustomBlockPropertyValue)),
854
- variantKey: nullishToOptional(z32.string()),
855
+ customBlockKey: nullishToOptional(z33.string()),
856
+ customBlockProperties: nullishToOptional(z33.array(PageBlockCustomBlockPropertyValue)),
857
+ variantKey: nullishToOptional(z33.string()),
855
858
  // Figma frames
856
859
  figmaFrameProperties: nullishToOptional(PageBlockFigmaFrameProperties),
857
- figmaFrames: nullishToOptional(z32.array(PageBlockFrame)),
860
+ figmaFrames: nullishToOptional(z33.array(PageBlockFrame)),
858
861
  // Generic
859
862
  size: nullishToOptional(Size),
860
863
  backgroundColor: nullishToOptional(ColorTokenInlineData),
861
864
  // Render code
862
865
  renderCodeProperties: nullishToOptional(PageBlockRenderCodeProperties),
863
866
  // Component assets
864
- componentAssets: nullishToOptional(z32.array(PageBlockAssetComponent)),
867
+ componentAssets: nullishToOptional(z33.array(PageBlockAssetComponent)),
865
868
  // Tables
866
869
  tableProperties: nullishToOptional(PageBlockTableProperties),
867
- columnId: nullishToOptional(z32.string()),
870
+ columnId: nullishToOptional(z33.string()),
868
871
  // Token spreadsheet
869
872
  theme: nullishToOptional(PageBlockTheme),
870
- blacklistedElementProperties: nullishToOptional(z32.array(z32.string())),
873
+ blacklistedElementProperties: nullishToOptional(z33.array(z33.string())),
871
874
  // Arbitrary
872
- userMetadata: nullishToOptional(z32.string())
875
+ userMetadata: nullishToOptional(z33.string())
873
876
  });
874
877
  var PageBlockV1 = PageBlockBaseV1.extend({
875
- children: z32.lazy(
878
+ children: z33.lazy(
876
879
  () => PageBlockV1.array().nullish().transform((t) => t ?? [])
877
880
  )
878
881
  });
879
- var PageBlockLinkType = z33.enum(["DocumentationItem", "PageHeading", "Url"]);
880
- var PageBlockImageType = z33.enum(["Upload", "Asset", "FigmaNode"]);
881
- var PageBlockImageAlignment = z33.enum(["Left", "Center", "Stretch"]);
882
- var PageBlockTableCellAlignment = z33.enum(["Left", "Center", "Right"]);
883
- var PageBlockPreviewContainerSize = z33.enum(["Centered", "NaturalHeight"]);
884
- var PageBlockThemeDisplayMode = z33.enum(["Split", "Override"]);
885
- var PageBlockColorV2 = z33.string();
886
- var PageBlockAppearanceV2 = z33.object({
882
+ var PageBlockLinkType = z34.enum(["DocumentationItem", "PageHeading", "Url"]);
883
+ var PageBlockImageType = z34.enum(["Upload", "Asset", "FigmaNode"]);
884
+ var PageBlockImageAlignment = z34.enum(["Left", "Center", "Stretch"]);
885
+ var PageBlockTableCellAlignment = z34.enum(["Left", "Center", "Right"]);
886
+ var PageBlockPreviewContainerSize = z34.enum(["Centered", "NaturalHeight"]);
887
+ var PageBlockThemeDisplayMode = z34.enum(["Split", "Override"]);
888
+ var PageBlockColorV2 = z34.object({
889
+ value: z34.string(),
890
+ referencedTokenId: z34.string().optional()
891
+ });
892
+ var PageBlockAppearanceV2 = z34.object({
887
893
  itemBackgroundColor: PageBlockColorV2.optional(),
888
- numberOfColumns: z33.number().optional()
894
+ numberOfColumns: z34.number().optional()
889
895
  });
890
- var PageBlockItemUntypedValue = z33.object({
891
- value: z33.any()
892
- }).and(z33.record(z33.any()));
893
- var PageBlockLinkV2 = z33.object({
896
+ var PageBlockItemUntypedValue = z34.object({
897
+ value: z34.any()
898
+ }).and(z34.record(z34.any()));
899
+ var PageBlockLinkV2 = z34.object({
894
900
  type: PageBlockLinkType,
895
- documentationItemId: z33.string().optional(),
896
- pageHeadingId: z33.string().optional(),
897
- url: z33.string().optional(),
898
- openInNewTab: z33.boolean().optional()
901
+ documentationItemId: z34.string().optional(),
902
+ pageHeadingId: z34.string().optional(),
903
+ url: z34.string().optional(),
904
+ openInNewTab: z34.boolean().optional()
899
905
  });
900
- var PageBlockItemV2 = z33.object({
901
- id: z33.string(),
906
+ var PageBlockItemV2 = z34.object({
907
+ id: z34.string(),
902
908
  linksTo: PageBlockLinkV2.optional(),
903
- props: z33.record(PageBlockItemUntypedValue)
909
+ props: z34.record(PageBlockItemUntypedValue)
904
910
  });
905
- var PageBlockDataV2 = z33.object({
906
- packageId: z33.string(),
907
- variantId: z33.string().optional(),
908
- indentLevel: z33.number(),
911
+ var PageBlockDataV2 = z34.object({
912
+ packageId: z34.string(),
913
+ variantId: z34.string().optional(),
914
+ indentLevel: z34.number(),
909
915
  appearance: PageBlockAppearanceV2.optional(),
910
- items: z33.array(PageBlockItemV2)
916
+ items: z34.array(PageBlockItemV2)
911
917
  });
912
- var PageBlockItemImageReference = z33.object({
918
+ var PageBlockItemImageReference = z34.object({
913
919
  type: PageBlockImageType,
914
- url: z33.string(),
915
- assetId: z33.string().optional(),
920
+ url: z34.string(),
921
+ assetId: z34.string().optional(),
916
922
  size: Size.optional(),
917
- figmaFile: z33.object({
918
- sourceId: z33.string(),
919
- frameId: z33.string(),
920
- frameReferenceId: z33.string(),
921
- origin: z33.object({
922
- title: z33.string().optional(),
923
- sourceFileName: z33.string().optional()
923
+ figmaFile: z34.object({
924
+ sourceId: z34.string(),
925
+ frameId: z34.string(),
926
+ frameReferenceId: z34.string(),
927
+ origin: z34.object({
928
+ title: z34.string().optional(),
929
+ sourceFileName: z34.string().optional()
924
930
  })
925
931
  }).optional()
926
932
  });
927
- var PageBlockItemAssetValue = z33.object({
928
- selectedPropertyIds: z33.array(z33.string()).optional(),
929
- showSearch: z33.boolean().optional(),
933
+ var PageBlockItemAssetValue = z34.object({
934
+ selectedPropertyIds: z34.array(z34.string()).optional(),
935
+ showSearch: z34.boolean().optional(),
930
936
  previewContainerSize: PageBlockPreviewContainerSize.optional(),
931
937
  backgroundColor: PageBlockColorV2.optional(),
932
- value: z33.array(
933
- z33.object({
934
- entityId: z33.string(),
935
- entityType: z33.enum(["Asset", "AssetGroup"]),
936
- entityMeta: z33.object({
937
- title: z33.string().optional(),
938
- description: z33.string().optional()
938
+ value: z34.array(
939
+ z34.object({
940
+ entityId: z34.string(),
941
+ entityType: z34.enum(["Asset", "AssetGroup"]),
942
+ entityMeta: z34.object({
943
+ title: z34.string().optional(),
944
+ description: z34.string().optional()
939
945
  }).optional()
940
946
  })
941
947
  )
942
948
  });
943
- var PageBlockItemAssetPropertyValue = z33.object({
944
- value: z33.array(z33.string())
949
+ var PageBlockItemAssetPropertyValue = z34.object({
950
+ value: z34.array(z34.string())
945
951
  });
946
- var PageBlockItemBooleanValue = z33.object({
947
- value: z33.boolean()
952
+ var PageBlockItemBooleanValue = z34.object({
953
+ value: z34.boolean()
948
954
  });
949
- var PageBlockItemCodeValue = z33.object({
955
+ var PageBlockItemCodeValue = z34.object({
950
956
  format: PageBlockCodeLanguage.optional(),
951
- caption: z33.string().optional(),
952
- value: z33.string()
953
- });
954
- var PageBlockItemSandboxValue = z33.object({
955
- showCode: z33.boolean().optional(),
956
- backgroundColor: z33.string().optional(),
957
- alignPreview: z33.enum(["Left", "Center"]).optional(),
958
- previewHeight: z33.number().optional(),
959
- value: z33.string()
960
- });
961
- var PageBlockItemColorValue = z33.record(z33.any());
962
- var PageBlockItemComponentValue = z33.object({
963
- selectedPropertyIds: z33.array(z33.string()).optional(),
964
- value: z33.array(
965
- z33.object({
966
- entityId: z33.string(),
967
- entityType: z33.enum(["Component", "ComponentGroup"])
957
+ caption: z34.string().optional(),
958
+ value: z34.string()
959
+ });
960
+ var PageBlockItemSandboxValue = z34.object({
961
+ showCode: z34.boolean().optional(),
962
+ backgroundColor: z34.string().optional(),
963
+ alignPreview: z34.enum(["Left", "Center"]).optional(),
964
+ previewHeight: z34.number().optional(),
965
+ value: z34.string()
966
+ });
967
+ var PageBlockItemColorValue = z34.record(z34.any());
968
+ var PageBlockItemComponentValue = z34.object({
969
+ selectedPropertyIds: z34.array(z34.string()).optional(),
970
+ value: z34.array(
971
+ z34.object({
972
+ entityId: z34.string(),
973
+ entityType: z34.enum(["Component", "ComponentGroup"])
968
974
  })
969
975
  )
970
976
  });
971
- var PageBlockItemComponentPropertyValue = z33.object({
972
- value: z33.string()
977
+ var PageBlockItemComponentPropertyValue = z34.object({
978
+ value: z34.string()
973
979
  });
974
- var PageBlockItemDividerValue = z33.object({});
975
- var PageBlockItemEmbedValue = z33.object({
976
- value: z33.string().optional(),
977
- caption: z33.string().optional(),
978
- height: z33.number().optional()
980
+ var PageBlockItemDividerValue = z34.object({});
981
+ var PageBlockItemEmbedValue = z34.object({
982
+ value: z34.string().optional(),
983
+ caption: z34.string().optional(),
984
+ height: z34.number().optional()
979
985
  });
980
- var PageBlockItemFigmaNodeValue = z33.object({
981
- selectedPropertyIds: z33.array(z33.string()).optional(),
982
- showSearch: z33.boolean().optional(),
986
+ var PageBlockItemFigmaNodeValue = z34.object({
987
+ selectedPropertyIds: z34.array(z34.string()).optional(),
988
+ showSearch: z34.boolean().optional(),
983
989
  previewContainerSize: PageBlockPreviewContainerSize.optional(),
984
- backgroundColor: z33.string().optional(),
985
- value: z33.array(
986
- z33.object({
987
- entityId: z33.string(),
988
- entityMeta: z33.object({
989
- title: z33.string().optional(),
990
- description: z33.string().optional()
990
+ backgroundColor: z34.string().optional(),
991
+ value: z34.array(
992
+ z34.object({
993
+ entityId: z34.string(),
994
+ entityMeta: z34.object({
995
+ title: z34.string().optional(),
996
+ description: z34.string().optional()
991
997
  }).optional()
992
998
  })
993
999
  )
994
1000
  });
995
- var PageBlockItemImageValue = z33.object({
996
- alt: z33.string().optional(),
997
- caption: z33.string().optional(),
1001
+ var PageBlockItemImageValue = z34.object({
1002
+ alt: z34.string().optional(),
1003
+ caption: z34.string().optional(),
998
1004
  alignment: PageBlockImageAlignment.optional(),
999
1005
  value: PageBlockItemImageReference.optional()
1000
1006
  });
1001
- var PageBlockItemMarkdownValue = z33.object({
1002
- value: z33.string()
1007
+ var PageBlockItemMarkdownValue = z34.object({
1008
+ value: z34.string()
1003
1009
  });
1004
- var PageBlockItemMultiRichTextValue = z33.object({
1010
+ var PageBlockItemMultiRichTextValue = z34.object({
1005
1011
  value: PageBlockText.array()
1006
1012
  });
1007
- var PageBlockItemMultiSelectValue = z33.object({
1008
- value: z33.array(z33.string())
1013
+ var PageBlockItemMultiSelectValue = z34.object({
1014
+ value: z34.array(z34.string())
1009
1015
  });
1010
- var PageBlockItemNumberValue = z33.object({
1011
- value: z33.number()
1016
+ var PageBlockItemNumberValue = z34.object({
1017
+ value: z34.number()
1012
1018
  });
1013
- var PageBlockItemRichTextValue = z33.object({
1019
+ var PageBlockItemRichTextValue = z34.object({
1014
1020
  value: PageBlockText,
1015
1021
  calloutType: PageBlockCalloutType.optional()
1016
1022
  });
1017
- var PageBlockItemSingleSelectValue = z33.object({
1018
- value: z33.string()
1023
+ var PageBlockItemSingleSelectValue = z34.object({
1024
+ value: z34.string()
1019
1025
  });
1020
- var PageBlockItemStorybookValue = z33.object({
1021
- caption: z33.string().optional(),
1022
- height: z33.number().optional(),
1023
- showAddons: z33.boolean().optional(),
1024
- value: z33.string()
1026
+ var PageBlockItemStorybookValue = z34.object({
1027
+ caption: z34.string().optional(),
1028
+ height: z34.number().optional(),
1029
+ showAddons: z34.boolean().optional(),
1030
+ value: z34.string()
1025
1031
  });
1026
- var PageBlockItemTextValue = z33.object({
1027
- value: z33.string()
1032
+ var PageBlockItemTextValue = z34.object({
1033
+ value: z34.string()
1028
1034
  });
1029
- var PageBlockItemTokenValue = z33.object({
1030
- selectedPropertyIds: z33.array(z33.string()).optional(),
1031
- selectedThemeIds: z33.array(z33.string()).optional(),
1035
+ var PageBlockItemTokenValue = z34.object({
1036
+ selectedPropertyIds: z34.array(z34.string()).optional(),
1037
+ selectedThemeIds: z34.array(z34.string()).optional(),
1032
1038
  themeDisplayMode: PageBlockThemeDisplayMode.optional(),
1033
- value: z33.array(
1034
- z33.object({
1035
- entityId: z33.string(),
1036
- entityType: z33.enum(["Token", "TokenGroup"]),
1037
- entityMeta: z33.object({
1038
- showNestedGroups: z33.boolean().optional()
1039
+ value: z34.array(
1040
+ z34.object({
1041
+ entityId: z34.string(),
1042
+ entityType: z34.enum(["Token", "TokenGroup"]),
1043
+ entityMeta: z34.object({
1044
+ showNestedGroups: z34.boolean().optional()
1039
1045
  }).optional()
1040
1046
  })
1041
1047
  )
1042
1048
  });
1043
- var PageBlockItemTokenPropertyValue = z33.object({
1044
- selectedPropertyIds: z33.array(z33.string()).optional(),
1045
- selectedThemeIds: z33.array(z33.string()).optional(),
1046
- value: z33.array(z33.string())
1049
+ var PageBlockItemTokenPropertyValue = z34.object({
1050
+ selectedPropertyIds: z34.array(z34.string()).optional(),
1051
+ selectedThemeIds: z34.array(z34.string()).optional(),
1052
+ value: z34.array(z34.string())
1047
1053
  });
1048
- var PageBlockItemTokenTypeValue = z33.object({
1049
- value: z33.array(DesignTokenType)
1054
+ var PageBlockItemTokenTypeValue = z34.object({
1055
+ value: z34.array(DesignTokenType)
1050
1056
  });
1051
- var PageBlockItemUrlValue = z33.object({
1052
- value: z33.string()
1057
+ var PageBlockItemUrlValue = z34.object({
1058
+ value: z34.string()
1053
1059
  });
1054
- var PageBlockItemTableRichTextNode = z33.object({
1055
- type: z33.literal("RichText"),
1060
+ var PageBlockItemTableRichTextNode = z34.object({
1061
+ type: z34.literal("RichText"),
1056
1062
  value: PageBlockItemRichTextValue.shape.value
1057
1063
  });
1058
- var PageBlockItemTableMultiRichTextNode = z33.object({
1059
- type: z33.literal("MultiRichText"),
1064
+ var PageBlockItemTableMultiRichTextNode = z34.object({
1065
+ type: z34.literal("MultiRichText"),
1060
1066
  value: PageBlockItemMultiRichTextValue.shape.value
1061
1067
  });
1062
- var PageBlockItemTableImageNode = z33.object({
1063
- type: z33.literal("Image"),
1068
+ var PageBlockItemTableImageNode = z34.object({
1069
+ type: z34.literal("Image"),
1064
1070
  caption: PageBlockItemImageValue.shape.caption,
1065
1071
  value: PageBlockItemImageValue.shape.value
1066
1072
  });
1067
- var PageBlockItemTableNode = z33.discriminatedUnion("type", [
1073
+ var PageBlockItemTableNode = z34.discriminatedUnion("type", [
1068
1074
  PageBlockItemTableRichTextNode,
1069
1075
  // PageBlockItemTableMultiRichTextNode,
1070
1076
  PageBlockItemTableImageNode
1071
1077
  ]);
1072
- var PageBlockItemTableCell = z33.object({
1073
- id: z33.string(),
1074
- nodes: z33.array(PageBlockItemTableNode),
1075
- columnWidth: z33.number().optional(),
1078
+ var PageBlockItemTableCell = z34.object({
1079
+ id: z34.string(),
1080
+ nodes: z34.array(PageBlockItemTableNode),
1081
+ columnWidth: z34.number().optional(),
1076
1082
  alignment: PageBlockTableCellAlignment
1077
1083
  });
1078
- var PageBlockItemTableRow = z33.object({
1079
- cells: z33.array(PageBlockItemTableCell)
1084
+ var PageBlockItemTableRow = z34.object({
1085
+ cells: z34.array(PageBlockItemTableCell)
1080
1086
  });
1081
- var PageBlockItemTableValue = z33.object({
1082
- highlightHeaderColumn: z33.boolean().optional(),
1083
- highlightHeaderRow: z33.boolean().optional(),
1084
- showBorder: z33.boolean().optional(),
1085
- value: z33.array(PageBlockItemTableRow)
1087
+ var PageBlockItemTableValue = z34.object({
1088
+ highlightHeaderColumn: z34.boolean().optional(),
1089
+ highlightHeaderRow: z34.boolean().optional(),
1090
+ showBorder: z34.boolean().optional(),
1091
+ value: z34.array(PageBlockItemTableRow)
1086
1092
  });
1087
1093
  var RESERVED_OBJECT_ID_PREFIX = "x-sn-reserved-";
1088
- var SafeIdSchema = z34.string().refine(
1094
+ var SafeIdSchema = z35.string().refine(
1089
1095
  (value) => {
1090
1096
  return !value.startsWith(RESERVED_OBJECT_ID_PREFIX);
1091
1097
  },
@@ -1093,35 +1099,35 @@ var SafeIdSchema = z34.string().refine(
1093
1099
  message: `ID value can't start with ${RESERVED_OBJECT_ID_PREFIX}`
1094
1100
  }
1095
1101
  );
1096
- var DocumentationPageAssetType = z35.enum(["image", "figmaFrame"]);
1097
- var DocumentationPageImageAsset = z35.object({
1098
- type: z35.literal(DocumentationPageAssetType.Enum.image),
1099
- url: z35.string().optional(),
1102
+ var DocumentationPageAssetType = z36.enum(["image", "figmaFrame"]);
1103
+ var DocumentationPageImageAsset = z36.object({
1104
+ type: z36.literal(DocumentationPageAssetType.Enum.image),
1105
+ url: z36.string().optional(),
1100
1106
  id: SafeIdSchema
1101
1107
  });
1102
- var DocumentationPageFrameAsset = z35.object({
1103
- type: z35.literal(DocumentationPageAssetType.Enum.figmaFrame),
1104
- url: z35.string().optional(),
1108
+ var DocumentationPageFrameAsset = z36.object({
1109
+ type: z36.literal(DocumentationPageAssetType.Enum.figmaFrame),
1110
+ url: z36.string().optional(),
1105
1111
  figmaFrame: PageBlockFrame
1106
1112
  });
1107
- var DocumentationPageAsset = z35.discriminatedUnion("type", [
1113
+ var DocumentationPageAsset = z36.discriminatedUnion("type", [
1108
1114
  DocumentationPageImageAsset,
1109
1115
  DocumentationPageFrameAsset
1110
1116
  ]);
1111
- var DocumentationItemHeaderAlignmentSchema = z36.enum(["Left", "Center"]);
1112
- var DocumentationItemHeaderImageScaleTypeSchema = z36.enum(["AspectFill", "AspectFit"]);
1117
+ var DocumentationItemHeaderAlignmentSchema = z37.enum(["Left", "Center"]);
1118
+ var DocumentationItemHeaderImageScaleTypeSchema = z37.enum(["AspectFill", "AspectFit"]);
1113
1119
  var DocumentationItemHeaderAlignment = DocumentationItemHeaderAlignmentSchema.enum;
1114
1120
  var DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleTypeSchema.enum;
1115
- var DocumentationItemHeader = z36.object({
1116
- description: z36.string(),
1121
+ var DocumentationItemHeader = z37.object({
1122
+ description: z37.string(),
1117
1123
  alignment: DocumentationItemHeaderAlignmentSchema,
1118
1124
  foregroundColor: ColorTokenData.nullish(),
1119
1125
  backgroundColor: ColorTokenData.nullish(),
1120
1126
  backgroundImageAsset: DocumentationPageAsset.nullish(),
1121
1127
  backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
1122
- showBackgroundOverlay: z36.boolean(),
1123
- showCoverText: z36.boolean(),
1124
- minHeight: z36.number().nullish()
1128
+ showBackgroundOverlay: z37.boolean(),
1129
+ showCoverText: z37.boolean(),
1130
+ minHeight: z37.number().nullish()
1125
1131
  });
1126
1132
  var defaultDocumentationItemHeader = {
1127
1133
  alignment: DocumentationItemHeaderAlignment.Left,
@@ -1130,158 +1136,158 @@ var defaultDocumentationItemHeader = {
1130
1136
  showBackgroundOverlay: false,
1131
1137
  showCoverText: true
1132
1138
  };
1133
- var DocumentationItemConfiguration = z37.object({
1134
- showSidebar: z37.boolean(),
1139
+ var DocumentationItemConfiguration = z38.object({
1140
+ showSidebar: z38.boolean(),
1135
1141
  header: DocumentationItemHeader
1136
1142
  });
1137
- var DocumentationPageDataV1 = z38.object({
1138
- blocks: z38.array(PageBlockV1),
1143
+ var DocumentationPageDataV1 = z39.object({
1144
+ blocks: z39.array(PageBlockV1),
1139
1145
  configuration: nullishToOptional(DocumentationItemConfiguration)
1140
1146
  });
1141
- var DocumentationPageElementDataV1 = z38.object({
1147
+ var DocumentationPageElementDataV1 = z39.object({
1142
1148
  value: DocumentationPageDataV1
1143
1149
  });
1144
- var DocumentationPageDataV2 = z39.object({
1150
+ var DocumentationPageDataV2 = z40.object({
1145
1151
  configuration: nullishToOptional(DocumentationItemConfiguration)
1146
1152
  });
1147
- var DocumentationPageElementDataV2 = z39.object({
1153
+ var DocumentationPageElementDataV2 = z40.object({
1148
1154
  value: DocumentationPageDataV2
1149
1155
  });
1150
- var DurationUnit = z40.enum(["Ms"]);
1151
- var DurationValue = z40.object({
1156
+ var DurationUnit = z41.enum(["Ms"]);
1157
+ var DurationValue = z41.object({
1152
1158
  unit: DurationUnit,
1153
- measure: z40.number()
1159
+ measure: z41.number()
1154
1160
  });
1155
1161
  var DurationTokenData = tokenAliasOrValue(DurationValue);
1156
- var FigmaFileStructureNodeType = z41.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
1157
- var FigmaFileStructureNodeBase = z41.object({
1158
- id: z41.string(),
1159
- name: z41.string(),
1162
+ var FigmaFileStructureNodeType = z42.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
1163
+ var FigmaFileStructureNodeBase = z42.object({
1164
+ id: z42.string(),
1165
+ name: z42.string(),
1160
1166
  type: FigmaFileStructureNodeType,
1161
1167
  size: SizeOrUndefined,
1162
- parentComponentSetId: z41.string().optional()
1168
+ parentComponentSetId: z42.string().optional()
1163
1169
  });
1164
1170
  var FigmaFileStructureNode = FigmaFileStructureNodeBase.extend({
1165
- children: z41.lazy(() => FigmaFileStructureNode.array())
1171
+ children: z42.lazy(() => FigmaFileStructureNode.array())
1166
1172
  });
1167
- var FigmaFileStructureStatistics = z41.object({
1168
- frames: z41.number().nullable().optional().transform((v) => v ?? 0),
1169
- components: z41.number().nullable().optional().transform((v) => v ?? 0),
1170
- componentSets: z41.number().nullable().optional().transform((v) => v ?? 0)
1173
+ var FigmaFileStructureStatistics = z42.object({
1174
+ frames: z42.number().nullable().optional().transform((v) => v ?? 0),
1175
+ components: z42.number().nullable().optional().transform((v) => v ?? 0),
1176
+ componentSets: z42.number().nullable().optional().transform((v) => v ?? 0)
1171
1177
  });
1172
- var FigmaFileStructureElementData = z41.object({
1173
- value: z41.object({
1178
+ var FigmaFileStructureElementData = z42.object({
1179
+ value: z42.object({
1174
1180
  structure: FigmaFileStructureNode,
1175
1181
  assetsInFile: FigmaFileStructureStatistics
1176
1182
  })
1177
1183
  });
1178
- var FigmaNodeReferenceData = z42.object({
1179
- structureElementId: z42.string(),
1180
- nodeId: z42.string(),
1181
- fileId: z42.string().optional(),
1182
- valid: z42.boolean(),
1183
- assetId: z42.string().optional(),
1184
- assetScale: z42.number().optional(),
1185
- assetWidth: z42.number().optional(),
1186
- assetHeight: z42.number().optional(),
1187
- assetUrl: z42.string().optional()
1188
- });
1189
- var FigmaNodeReferenceElementData = z42.object({
1184
+ var FigmaNodeReferenceData = z43.object({
1185
+ structureElementId: z43.string(),
1186
+ nodeId: z43.string(),
1187
+ fileId: z43.string().optional(),
1188
+ valid: z43.boolean(),
1189
+ assetId: z43.string().optional(),
1190
+ assetScale: z43.number().optional(),
1191
+ assetWidth: z43.number().optional(),
1192
+ assetHeight: z43.number().optional(),
1193
+ assetUrl: z43.string().optional()
1194
+ });
1195
+ var FigmaNodeReferenceElementData = z43.object({
1190
1196
  value: FigmaNodeReferenceData
1191
1197
  });
1192
- var FontFamilyValue = z43.string();
1198
+ var FontFamilyValue = z44.string();
1193
1199
  var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
1194
- var FontSizeUnit = z44.enum(["Pixels", "Rem", "Percent"]);
1195
- var FontSizeValue = z44.object({
1200
+ var FontSizeUnit = z45.enum(["Pixels", "Rem", "Percent"]);
1201
+ var FontSizeValue = z45.object({
1196
1202
  unit: FontSizeUnit,
1197
- measure: z44.number()
1203
+ measure: z45.number()
1198
1204
  });
1199
1205
  var FontSizeTokenData = tokenAliasOrValue(FontSizeValue);
1200
- var FontWeightValue = z45.string();
1206
+ var FontWeightValue = z46.string();
1201
1207
  var FontWeightTokenData = tokenAliasOrValue(FontWeightValue);
1202
- var GradientType = z46.enum(["Linear", "Radial", "Angular"]);
1203
- var GradientStop = z46.object({
1204
- position: z46.number(),
1208
+ var GradientType = z47.enum(["Linear", "Radial", "Angular"]);
1209
+ var GradientStop = z47.object({
1210
+ position: z47.number(),
1205
1211
  color: ColorTokenData
1206
1212
  });
1207
- var GradientLayerValue = z46.object({
1213
+ var GradientLayerValue = z47.object({
1208
1214
  from: Point2D,
1209
1215
  to: Point2D,
1210
1216
  type: GradientType,
1211
- aspectRatio: nullishToOptional(z46.number()),
1217
+ aspectRatio: nullishToOptional(z47.number()),
1212
1218
  // z.number(),
1213
- stops: z46.array(GradientStop).min(2)
1219
+ stops: z47.array(GradientStop).min(2)
1214
1220
  });
1215
1221
  var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
1216
- var GradientTokenValue = z46.array(GradientLayerData);
1222
+ var GradientTokenValue = z47.array(GradientLayerData);
1217
1223
  var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
1218
- var DocumentationGroupBehavior = z47.enum(["Group", "Tabs"]);
1219
- var ElementGroupData = z47.object({
1224
+ var DocumentationGroupBehavior = z48.enum(["Group", "Tabs"]);
1225
+ var ElementGroupData = z48.object({
1220
1226
  behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
1221
1227
  configuration: nullishToOptional(DocumentationItemConfiguration)
1222
1228
  });
1223
- var ElementGroupElementData = z47.object({
1229
+ var ElementGroupElementData = z48.object({
1224
1230
  value: ElementGroupData.optional()
1225
1231
  });
1226
- var LetterSpacingUnit = z48.enum(["Pixels", "Rem", "Percent"]);
1227
- var LetterSpacingValue = z48.object({
1232
+ var LetterSpacingUnit = z49.enum(["Pixels", "Rem", "Percent"]);
1233
+ var LetterSpacingValue = z49.object({
1228
1234
  unit: LetterSpacingUnit,
1229
- measure: z48.number()
1235
+ measure: z49.number()
1230
1236
  });
1231
1237
  var LetterSpacingTokenData = tokenAliasOrValue(LetterSpacingValue);
1232
- var LineHeightUnit = z49.enum(["Pixels", "Rem", "Percent", "Raw"]);
1233
- var LineHeightValue = z49.object({
1238
+ var LineHeightUnit = z50.enum(["Pixels", "Rem", "Percent", "Raw"]);
1239
+ var LineHeightValue = z50.object({
1234
1240
  unit: LineHeightUnit,
1235
- measure: z49.number()
1241
+ measure: z50.number()
1236
1242
  });
1237
1243
  var LineHeightTokenData = tokenAliasOrValue(LineHeightValue);
1238
- var ParagraphIndentUnit = z50.enum(["Pixels", "Rem", "Percent"]);
1239
- var ParagraphIndentValue = z50.object({
1244
+ var ParagraphIndentUnit = z51.enum(["Pixels", "Rem", "Percent"]);
1245
+ var ParagraphIndentValue = z51.object({
1240
1246
  unit: ParagraphIndentUnit,
1241
- measure: z50.number()
1247
+ measure: z51.number()
1242
1248
  });
1243
1249
  var ParagraphIndentTokenData = tokenAliasOrValue(ParagraphIndentValue);
1244
- var ParagraphSpacingUnit = z51.enum(["Pixels", "Rem", "Percent"]);
1245
- var ParagraphSpacingValue = z51.object({
1250
+ var ParagraphSpacingUnit = z52.enum(["Pixels", "Rem", "Percent"]);
1251
+ var ParagraphSpacingValue = z52.object({
1246
1252
  unit: ParagraphSpacingUnit,
1247
- measure: z51.number()
1253
+ measure: z52.number()
1248
1254
  });
1249
1255
  var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
1250
- var ProductCopyValue = z52.string();
1256
+ var ProductCopyValue = z53.string();
1251
1257
  var ProductCopyTokenData = tokenAliasOrValue(ProductCopyValue);
1252
- var ShadowType = z53.enum(["Drop", "Inner"]);
1253
- var ShadowLayerValue = z53.object({
1258
+ var ShadowType = z54.enum(["Drop", "Inner"]);
1259
+ var ShadowLayerValue = z54.object({
1254
1260
  color: ColorTokenData,
1255
- x: z53.number(),
1256
- y: z53.number(),
1257
- radius: z53.number(),
1258
- spread: z53.number(),
1261
+ x: z54.number(),
1262
+ y: z54.number(),
1263
+ radius: z54.number(),
1264
+ spread: z54.number(),
1259
1265
  opacity: OpacityTokenData,
1260
1266
  type: ShadowType
1261
1267
  });
1262
1268
  var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
1263
- var ShadowTokenData = tokenAliasOrValue(z53.array(ShadowTokenDataBase));
1264
- var SizeUnit = z54.enum(["Pixels", "Rem", "Percent"]);
1265
- var SizeValue = z54.object({
1269
+ var ShadowTokenData = tokenAliasOrValue(z54.array(ShadowTokenDataBase));
1270
+ var SizeUnit = z55.enum(["Pixels", "Rem", "Percent"]);
1271
+ var SizeValue = z55.object({
1266
1272
  unit: SizeUnit,
1267
- measure: z54.number()
1273
+ measure: z55.number()
1268
1274
  });
1269
1275
  var SizeTokenData = tokenAliasOrValue(SizeValue);
1270
- var SpaceUnit = z55.enum(["Pixels", "Rem", "Percent"]);
1271
- var SpaceValue = z55.object({
1276
+ var SpaceUnit = z56.enum(["Pixels", "Rem", "Percent"]);
1277
+ var SpaceValue = z56.object({
1272
1278
  unit: SpaceUnit,
1273
- measure: z55.number()
1279
+ measure: z56.number()
1274
1280
  });
1275
1281
  var SpaceTokenData = tokenAliasOrValue(SpaceValue);
1276
- var StringValue = z56.string();
1282
+ var StringValue = z57.string();
1277
1283
  var StringTokenData = tokenAliasOrValue(StringValue);
1278
- var TextCase = z57.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
1284
+ var TextCase = z58.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
1279
1285
  var TextCaseValue = TextCase;
1280
1286
  var TextCaseTokenData = tokenAliasOrValue(TextCaseValue);
1281
- var TextDecoration = z58.enum(["None", "Underline", "Strikethrough"]);
1287
+ var TextDecoration = z59.enum(["None", "Underline", "Strikethrough"]);
1282
1288
  var TextDecorationValue = TextDecoration;
1283
1289
  var TextDecorationTokenData = tokenAliasOrValue(TextDecorationValue);
1284
- var TypographyValue = z59.object({
1290
+ var TypographyValue = z60.object({
1285
1291
  fontSize: FontSizeTokenData,
1286
1292
  fontFamily: FontFamilyTokenData,
1287
1293
  fontWeight: FontWeightTokenData,
@@ -1293,75 +1299,75 @@ var TypographyValue = z59.object({
1293
1299
  paragraphSpacing: ParagraphSpacingTokenData.optional()
1294
1300
  });
1295
1301
  var TypographyTokenData = tokenAliasOrValue(TypographyValue);
1296
- var Visibility = z60.enum(["Hidden", "Visible"]);
1302
+ var Visibility = z61.enum(["Hidden", "Visible"]);
1297
1303
  var VisibilityValue = Visibility;
1298
1304
  var VisibilityTokenData = tokenAliasOrValue(VisibilityValue);
1299
- var ZIndexUnit = z61.enum(["Raw"]);
1300
- var ZIndexValue = z61.object({
1305
+ var ZIndexUnit = z62.enum(["Raw"]);
1306
+ var ZIndexValue = z62.object({
1301
1307
  unit: ZIndexUnit,
1302
- measure: z61.number()
1308
+ measure: z62.number()
1303
1309
  });
1304
1310
  var ZIndexTokenData = tokenAliasOrValue(ZIndexValue);
1305
- var DesignElementOrigin = z62.object({
1306
- id: z62.string(),
1307
- sourceId: z62.string(),
1308
- name: z62.string()
1309
- });
1310
- var DesignElementBase = z62.object({
1311
- id: z62.string(),
1312
- persistentId: z62.string(),
1311
+ var DesignElementOrigin = z63.object({
1312
+ id: z63.string(),
1313
+ sourceId: z63.string(),
1314
+ name: z63.string()
1315
+ });
1316
+ var DesignElementBase = z63.object({
1317
+ id: z63.string(),
1318
+ persistentId: z63.string(),
1313
1319
  meta: ObjectMeta,
1314
- designSystemVersionId: z62.string(),
1315
- createdAt: z62.date(),
1316
- updatedAt: z62.date()
1320
+ designSystemVersionId: z63.string(),
1321
+ createdAt: z63.date(),
1322
+ updatedAt: z63.date()
1317
1323
  });
1318
1324
  var DesignElementImportedBase = DesignElementBase.extend({
1319
1325
  origin: DesignElementOrigin
1320
1326
  });
1321
- var DesignElementGroupablePart = z62.object({
1322
- parentPersistentId: z62.string().optional(),
1323
- sortOrder: z62.number()
1327
+ var DesignElementGroupablePart = z63.object({
1328
+ parentPersistentId: z63.string().optional(),
1329
+ sortOrder: z63.number()
1324
1330
  });
1325
1331
  var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
1326
1332
  var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
1327
- parentPersistentId: z62.string()
1333
+ parentPersistentId: z63.string()
1328
1334
  });
1329
- var DesignElementBrandedPart = z62.object({
1330
- brandPersistentId: z62.string()
1335
+ var DesignElementBrandedPart = z63.object({
1336
+ brandPersistentId: z63.string()
1331
1337
  });
1332
- var DesignElementSlugPart = z62.object({
1333
- slug: z62.string().optional(),
1334
- userSlug: z62.string().optional()
1338
+ var DesignElementSlugPart = z63.object({
1339
+ slug: z63.string().optional(),
1340
+ userSlug: z63.string().optional()
1335
1341
  });
1336
- var ComponentOriginPart = z63.object({
1337
- nodeId: z63.string().optional(),
1338
- width: z63.number().optional(),
1339
- height: z63.number().optional()
1342
+ var ComponentOriginPart = z64.object({
1343
+ nodeId: z64.string().optional(),
1344
+ width: z64.number().optional(),
1345
+ height: z64.number().optional()
1340
1346
  });
1341
- var ComponentAsset = z63.object({
1342
- assetId: z63.string(),
1343
- assetPath: z63.string()
1347
+ var ComponentAsset = z64.object({
1348
+ assetId: z64.string(),
1349
+ assetPath: z64.string()
1344
1350
  });
1345
1351
  var ComponentOrigin = DesignElementOrigin.extend(ComponentOriginPart.shape);
1346
1352
  var Component = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
1347
1353
  origin: ComponentOrigin.optional(),
1348
1354
  thumbnail: ComponentAsset,
1349
1355
  svg: ComponentAsset.optional(),
1350
- isAsset: z63.boolean()
1356
+ isAsset: z64.boolean()
1351
1357
  });
1352
1358
  var DocumentationPageV1 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
1353
- shortPersistentId: z64.string(),
1359
+ shortPersistentId: z65.string(),
1354
1360
  data: DocumentationPageDataV1
1355
1361
  });
1356
1362
  var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
1357
- shortPersistentId: z65.string(),
1363
+ shortPersistentId: z66.string(),
1358
1364
  data: DocumentationPageDataV2
1359
1365
  });
1360
- var FigmaFileStructureOrigin = z66.object({
1361
- sourceId: z66.string(),
1362
- fileId: z66.string().optional()
1366
+ var FigmaFileStructureOrigin = z67.object({
1367
+ sourceId: z67.string(),
1368
+ fileId: z67.string().optional()
1363
1369
  });
1364
- var FigmaFileStructureData = z66.object({
1370
+ var FigmaFileStructureData = z67.object({
1365
1371
  rootNode: FigmaFileStructureNode,
1366
1372
  assetsInFile: FigmaFileStructureStatistics
1367
1373
  });
@@ -1373,7 +1379,7 @@ var FigmaNodeReference = DesignElementBase.extend({
1373
1379
  data: FigmaNodeReferenceData
1374
1380
  });
1375
1381
  var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
1376
- shortPersistentId: z67.string().optional(),
1382
+ shortPersistentId: z68.string().optional(),
1377
1383
  childType: DesignElementType,
1378
1384
  data: ElementGroupData.optional()
1379
1385
  });
@@ -1381,13 +1387,13 @@ var BrandedElementGroup = ElementGroup.extend(DesignElementBrandedPart.shape);
1381
1387
  var PageBlockV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend({
1382
1388
  data: PageBlockDataV2
1383
1389
  });
1384
- var PageBlockEditorModelV2 = z68.object({
1385
- id: z68.string(),
1390
+ var PageBlockEditorModelV2 = z69.object({
1391
+ id: z69.string(),
1386
1392
  data: PageBlockDataV2
1387
1393
  });
1388
- var DesignTokenOriginPart = z69.object({
1389
- referenceOriginId: z69.string().optional(),
1390
- referencePersistentId: z69.string().optional()
1394
+ var DesignTokenOriginPart = z70.object({
1395
+ referenceOriginId: z70.string().optional(),
1396
+ referencePersistentId: z70.string().optional()
1391
1397
  });
1392
1398
  var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
1393
1399
  var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
@@ -1399,111 +1405,111 @@ var UpdateDesignTokenBase = DesignTokenBase.omit({
1399
1405
  brandPersistentId: true,
1400
1406
  designSystemVersionId: true
1401
1407
  });
1402
- var BlurTokenTypedData = z69.object({
1403
- type: z69.literal("Blur"),
1408
+ var BlurTokenTypedData = z70.object({
1409
+ type: z70.literal("Blur"),
1404
1410
  data: BlurTokenData
1405
1411
  });
1406
- var ColorTokenTypedData = z69.object({
1407
- type: z69.literal("Color"),
1412
+ var ColorTokenTypedData = z70.object({
1413
+ type: z70.literal("Color"),
1408
1414
  data: ColorTokenData
1409
1415
  });
1410
- var GradientTokenTypedData = z69.object({
1411
- type: z69.literal("Gradient"),
1416
+ var GradientTokenTypedData = z70.object({
1417
+ type: z70.literal("Gradient"),
1412
1418
  data: GradientTokenData
1413
1419
  });
1414
- var OpacityTokenTypedData = z69.object({
1415
- type: z69.literal("Opacity"),
1420
+ var OpacityTokenTypedData = z70.object({
1421
+ type: z70.literal("Opacity"),
1416
1422
  data: OpacityTokenData
1417
1423
  });
1418
- var ShadowTokenTypedData = z69.object({
1419
- type: z69.literal("Shadow"),
1424
+ var ShadowTokenTypedData = z70.object({
1425
+ type: z70.literal("Shadow"),
1420
1426
  data: ShadowTokenData
1421
1427
  });
1422
- var TypographyTokenTypedData = z69.object({
1423
- type: z69.literal("Typography"),
1428
+ var TypographyTokenTypedData = z70.object({
1429
+ type: z70.literal("Typography"),
1424
1430
  data: TypographyTokenData
1425
1431
  });
1426
- var StringTokenTypedData = z69.object({
1427
- type: z69.literal("String"),
1432
+ var StringTokenTypedData = z70.object({
1433
+ type: z70.literal("String"),
1428
1434
  data: StringTokenData
1429
1435
  });
1430
- var DimensionTokenTypedData = z69.object({
1431
- type: z69.literal("Dimension"),
1436
+ var DimensionTokenTypedData = z70.object({
1437
+ type: z70.literal("Dimension"),
1432
1438
  data: DimensionTokenData
1433
1439
  });
1434
- var FontSizeTokenTypedData = z69.object({
1435
- type: z69.literal("FontSize"),
1440
+ var FontSizeTokenTypedData = z70.object({
1441
+ type: z70.literal("FontSize"),
1436
1442
  data: FontSizeTokenData
1437
1443
  });
1438
- var FontFamilyTokenTypedData = z69.object({
1439
- type: z69.literal("FontFamily"),
1444
+ var FontFamilyTokenTypedData = z70.object({
1445
+ type: z70.literal("FontFamily"),
1440
1446
  data: FontFamilyTokenData
1441
1447
  });
1442
- var FontWeightTokenTypedData = z69.object({
1443
- type: z69.literal("FontWeight"),
1448
+ var FontWeightTokenTypedData = z70.object({
1449
+ type: z70.literal("FontWeight"),
1444
1450
  data: FontWeightTokenData
1445
1451
  });
1446
- var LetterSpacingTokenTypedData = z69.object({
1447
- type: z69.literal("LetterSpacing"),
1452
+ var LetterSpacingTokenTypedData = z70.object({
1453
+ type: z70.literal("LetterSpacing"),
1448
1454
  data: LetterSpacingTokenData
1449
1455
  });
1450
- var LineHeightTokenTypedData = z69.object({
1451
- type: z69.literal("LineHeight"),
1456
+ var LineHeightTokenTypedData = z70.object({
1457
+ type: z70.literal("LineHeight"),
1452
1458
  data: LineHeightTokenData
1453
1459
  });
1454
- var ParagraphSpacingTokenTypedData = z69.object({
1455
- type: z69.literal("ParagraphSpacing"),
1460
+ var ParagraphSpacingTokenTypedData = z70.object({
1461
+ type: z70.literal("ParagraphSpacing"),
1456
1462
  data: ParagraphSpacingTokenData
1457
1463
  });
1458
- var TextCaseTokenTypedData = z69.object({
1459
- type: z69.literal("TextCase"),
1464
+ var TextCaseTokenTypedData = z70.object({
1465
+ type: z70.literal("TextCase"),
1460
1466
  data: TextCaseTokenData
1461
1467
  });
1462
- var TextDecorationTokenTypedData = z69.object({
1463
- type: z69.literal("TextDecoration"),
1468
+ var TextDecorationTokenTypedData = z70.object({
1469
+ type: z70.literal("TextDecoration"),
1464
1470
  data: TextDecorationTokenData
1465
1471
  });
1466
- var BorderRadiusTokenTypedData = z69.object({
1467
- type: z69.literal("BorderRadius"),
1472
+ var BorderRadiusTokenTypedData = z70.object({
1473
+ type: z70.literal("BorderRadius"),
1468
1474
  data: BorderRadiusTokenData
1469
1475
  });
1470
- var BorderWidthTokenTypedData = z69.object({
1471
- type: z69.literal("BorderWidth"),
1476
+ var BorderWidthTokenTypedData = z70.object({
1477
+ type: z70.literal("BorderWidth"),
1472
1478
  data: BorderWidthTokenData
1473
1479
  });
1474
- var BorderTypedData = z69.object({
1475
- type: z69.literal("Border"),
1480
+ var BorderTypedData = z70.object({
1481
+ type: z70.literal("Border"),
1476
1482
  data: BorderTokenData
1477
1483
  });
1478
- var ProductCopyTypedData = z69.object({
1479
- type: z69.literal("ProductCopy"),
1484
+ var ProductCopyTypedData = z70.object({
1485
+ type: z70.literal("ProductCopy"),
1480
1486
  data: ProductCopyTokenData
1481
1487
  });
1482
- var SizeTypedData = z69.object({
1483
- type: z69.literal("Size"),
1488
+ var SizeTypedData = z70.object({
1489
+ type: z70.literal("Size"),
1484
1490
  data: SizeTokenData
1485
1491
  });
1486
- var SpaceTypedData = z69.object({
1487
- type: z69.literal("Space"),
1492
+ var SpaceTypedData = z70.object({
1493
+ type: z70.literal("Space"),
1488
1494
  data: SpaceTokenData
1489
1495
  });
1490
- var VisibilityTypedData = z69.object({
1491
- type: z69.literal("Visibility"),
1496
+ var VisibilityTypedData = z70.object({
1497
+ type: z70.literal("Visibility"),
1492
1498
  data: VisibilityTokenData
1493
1499
  });
1494
- var ZIndexTypedData = z69.object({
1495
- type: z69.literal("ZIndex"),
1500
+ var ZIndexTypedData = z70.object({
1501
+ type: z70.literal("ZIndex"),
1496
1502
  data: ZIndexTokenData
1497
1503
  });
1498
- var DurationTypedData = z69.object({
1499
- type: z69.literal("Duration"),
1504
+ var DurationTypedData = z70.object({
1505
+ type: z70.literal("Duration"),
1500
1506
  data: DurationTokenData
1501
1507
  });
1502
- var FontTypedData = z69.object({
1503
- type: z69.literal("Font"),
1504
- data: z69.record(z69.any())
1508
+ var FontTypedData = z70.object({
1509
+ type: z70.literal("Font"),
1510
+ data: z70.record(z70.any())
1505
1511
  });
1506
- var DesignTokenTypedData = z69.discriminatedUnion("type", [
1512
+ var DesignTokenTypedData = z70.discriminatedUnion("type", [
1507
1513
  BlurTokenTypedData,
1508
1514
  BorderRadiusTokenTypedData,
1509
1515
  BorderWidthTokenTypedData,
@@ -1536,66 +1542,66 @@ var CreateDesignToken = DesignTokenTypedData.and(CreateDesignTokenBase);
1536
1542
  var ThemeOverrideOriginPart = DesignTokenOriginPart;
1537
1543
  var ThemeOverrideOrigin = DesignTokenOrigin;
1538
1544
  var ThemeOverride = DesignTokenTypedData.and(
1539
- z70.object({
1540
- tokenPersistentId: z70.string(),
1545
+ z71.object({
1546
+ tokenPersistentId: z71.string(),
1541
1547
  origin: ThemeOverrideOrigin.optional().nullable().transform((v) => v ?? void 0)
1542
1548
  })
1543
1549
  );
1544
- var ThemeElementData = z70.object({
1545
- value: z70.object({
1546
- overrides: z70.array(ThemeOverride)
1550
+ var ThemeElementData = z71.object({
1551
+ value: z71.object({
1552
+ overrides: z71.array(ThemeOverride)
1547
1553
  })
1548
1554
  });
1549
- var ThemeOriginPart = z70.object({});
1550
- var ThemeOriginObject = z70.object({
1551
- id: z70.string(),
1552
- name: z70.string()
1555
+ var ThemeOriginPart = z71.object({});
1556
+ var ThemeOriginObject = z71.object({
1557
+ id: z71.string(),
1558
+ name: z71.string()
1553
1559
  });
1554
- var ThemeOriginSource = z70.object({
1555
- sourceId: z70.string(),
1556
- sourceObjects: z70.array(ThemeOriginObject)
1560
+ var ThemeOriginSource = z71.object({
1561
+ sourceId: z71.string(),
1562
+ sourceObjects: z71.array(ThemeOriginObject)
1557
1563
  });
1558
- var ThemeOrigin = z70.object({
1559
- sources: z70.array(ThemeOriginSource)
1564
+ var ThemeOrigin = z71.object({
1565
+ sources: z71.array(ThemeOriginSource)
1560
1566
  });
1561
1567
  var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
1562
1568
  origin: ThemeOrigin.optional(),
1563
- overrides: z70.array(ThemeOverride)
1569
+ overrides: z71.array(ThemeOverride)
1564
1570
  });
1565
- var FigmaFileDownloadScope = z71.object({
1566
- styles: z71.boolean(),
1567
- components: z71.boolean(),
1568
- currentVersion: z71.literal("__latest__").nullable(),
1569
- publishedVersion: z71.string().nullable(),
1570
- downloadChunkSize: z71.number().optional()
1571
+ var FigmaFileDownloadScope = z72.object({
1572
+ styles: z72.boolean(),
1573
+ components: z72.boolean(),
1574
+ currentVersion: z72.literal("__latest__").nullable(),
1575
+ publishedVersion: z72.string().nullable(),
1576
+ downloadChunkSize: z72.number().optional()
1571
1577
  });
1572
- var FigmaFileAccessData = z71.object({
1573
- accessToken: z71.string()
1578
+ var FigmaFileAccessData = z72.object({
1579
+ accessToken: z72.string()
1574
1580
  });
1575
- var ImportFunctionInput = z72.object({
1576
- importJobId: z72.string(),
1577
- importContextId: z72.string(),
1578
- designSystemId: z72.string().optional()
1581
+ var ImportFunctionInput = z73.object({
1582
+ importJobId: z73.string(),
1583
+ importContextId: z73.string(),
1584
+ designSystemId: z73.string().optional()
1579
1585
  });
1580
- var ImportedFigmaSourceData = z72.object({
1581
- sourceId: z72.string(),
1586
+ var ImportedFigmaSourceData = z73.object({
1587
+ sourceId: z73.string(),
1582
1588
  figmaRemote: DataSourceFigmaRemote
1583
1589
  });
1584
- var FigmaImportBaseContext = z72.object({
1585
- designSystemId: z72.string(),
1590
+ var FigmaImportBaseContext = z73.object({
1591
+ designSystemId: z73.string(),
1586
1592
  /**
1587
1593
  * Data required for accessing Figma files. This should contain access data for all file ids
1588
1594
  * mentioned in the `importedSourceDataBySourceId`
1589
1595
  *
1590
1596
  * fileId: file data
1591
1597
  */
1592
- fileAccessByFileId: z72.record(FigmaFileAccessData),
1598
+ fileAccessByFileId: z73.record(FigmaFileAccessData),
1593
1599
  /**
1594
1600
  * Figma source data for which import was requested
1595
1601
  *
1596
1602
  * sourceId: source data
1597
1603
  */
1598
- importedSourceDataBySourceId: z72.record(ImportedFigmaSourceData)
1604
+ importedSourceDataBySourceId: z73.record(ImportedFigmaSourceData)
1599
1605
  });
1600
1606
  var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
1601
1607
  importMetadata: DataSourceFigmaImportMetadata
@@ -1607,65 +1613,65 @@ var FigmaImportContextWithDownloadScopes = FigmaImportBaseContext.extend({
1607
1613
  *
1608
1614
  * File id -> file download scope
1609
1615
  */
1610
- fileDownloadScopesByFileId: z72.record(FigmaFileDownloadScope),
1616
+ fileDownloadScopesByFileId: z73.record(FigmaFileDownloadScope),
1611
1617
  /**
1612
1618
  * Sources filtered down to the ones that have changed since last import and therefore need to be
1613
1619
  * imported again.
1614
1620
  *
1615
1621
  * Source id -> import metadata
1616
1622
  */
1617
- changedImportedSourceDataBySourceId: z72.record(ChangedImportedFigmaSourceData)
1623
+ changedImportedSourceDataBySourceId: z73.record(ChangedImportedFigmaSourceData)
1618
1624
  });
1619
- var ImageImportModelType = z73.enum(["Url", "FigmaRender"]);
1620
- var ImageImportModelBase = z73.object({
1625
+ var ImageImportModelType = z74.enum(["Url", "FigmaRender"]);
1626
+ var ImageImportModelBase = z74.object({
1621
1627
  scope: AssetScope
1622
1628
  });
1623
1629
  var UrlImageImportModel = ImageImportModelBase.extend({
1624
- type: z73.literal(ImageImportModelType.enum.Url),
1625
- url: z73.string(),
1626
- originKey: z73.string(),
1627
- extension: z73.enum(["png", "svg", "jpg"])
1630
+ type: z74.literal(ImageImportModelType.enum.Url),
1631
+ url: z74.string(),
1632
+ originKey: z74.string(),
1633
+ extension: z74.enum(["png", "svg", "jpg"])
1628
1634
  });
1629
- var FigmaRenderFormat = z73.enum(["Svg", "Png"]);
1635
+ var FigmaRenderFormat = z74.enum(["Svg", "Png"]);
1630
1636
  var FigmaRenderBase = ImageImportModelBase.extend({
1631
- type: z73.literal(ImageImportModelType.enum.FigmaRender),
1632
- fileId: z73.string(),
1633
- fileVersionId: z73.string().optional(),
1634
- nodeId: z73.string(),
1635
- originKey: z73.string()
1637
+ type: z74.literal(ImageImportModelType.enum.FigmaRender),
1638
+ fileId: z74.string(),
1639
+ fileVersionId: z74.string().optional(),
1640
+ nodeId: z74.string(),
1641
+ originKey: z74.string()
1636
1642
  });
1637
1643
  var FigmaPngRenderImportModel = FigmaRenderBase.extend({
1638
- format: z73.literal(FigmaRenderFormat.enum.Png),
1639
- scale: z73.number()
1644
+ format: z74.literal(FigmaRenderFormat.enum.Png),
1645
+ scale: z74.number()
1640
1646
  });
1641
1647
  var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
1642
- format: z73.literal(FigmaRenderFormat.enum.Svg)
1648
+ format: z74.literal(FigmaRenderFormat.enum.Svg)
1643
1649
  });
1644
- var FigmaRenderImportModel = z73.discriminatedUnion("format", [
1650
+ var FigmaRenderImportModel = z74.discriminatedUnion("format", [
1645
1651
  FigmaPngRenderImportModel,
1646
1652
  FigmaSvgRenderImportModel
1647
1653
  ]);
1648
- var ImageImportModel = z73.union([UrlImageImportModel, FigmaRenderImportModel]);
1649
- var ImportModelBase = z74.object({
1650
- id: z74.string(),
1654
+ var ImageImportModel = z74.union([UrlImageImportModel, FigmaRenderImportModel]);
1655
+ var ImportModelBase = z75.object({
1656
+ id: z75.string(),
1651
1657
  meta: ObjectMeta,
1652
1658
  origin: DesignElementOrigin,
1653
- brandPersistentId: z74.string(),
1654
- sortOrder: z74.number()
1659
+ brandPersistentId: z75.string(),
1660
+ sortOrder: z75.number()
1655
1661
  });
1656
1662
  var ImportModelInputBase = ImportModelBase.omit({
1657
1663
  brandPersistentId: true,
1658
1664
  origin: true,
1659
1665
  sortOrder: true
1660
1666
  }).extend({
1661
- originId: z74.string(),
1662
- originMetadata: z74.record(z74.any())
1667
+ originId: z75.string(),
1668
+ originMetadata: z75.record(z75.any())
1663
1669
  });
1664
- var ComponentImportModelPart = z75.object({
1670
+ var ComponentImportModelPart = z76.object({
1665
1671
  thumbnail: ImageImportModel
1666
1672
  });
1667
1673
  var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
1668
- isAsset: z75.boolean(),
1674
+ isAsset: z76.boolean(),
1669
1675
  svg: FigmaSvgRenderImportModel.optional(),
1670
1676
  origin: ComponentOrigin
1671
1677
  });
@@ -1677,44 +1683,44 @@ var AssetImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart
1677
1683
  originMetadata: ComponentOriginPart
1678
1684
  });
1679
1685
  var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
1680
- z76.object({
1681
- id: z76.string(),
1686
+ z77.object({
1687
+ id: z77.string(),
1682
1688
  meta: ObjectMeta
1683
1689
  })
1684
1690
  );
1685
1691
  var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
1686
- z76.object({
1692
+ z77.object({
1687
1693
  origin: ThemeOverrideOrigin
1688
1694
  })
1689
1695
  );
1690
1696
  var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
1691
- z76.object({
1692
- originId: z76.string(),
1697
+ z77.object({
1698
+ originId: z77.string(),
1693
1699
  originMetadata: ThemeOverrideOriginPart
1694
1700
  })
1695
1701
  );
1696
- var ThemeImportModel = z76.object({
1702
+ var ThemeImportModel = z77.object({
1697
1703
  meta: ObjectMeta,
1698
- brandPersistentId: z76.string(),
1704
+ brandPersistentId: z77.string(),
1699
1705
  originSource: ThemeOriginSource,
1700
- overrides: z76.array(ThemeOverrideImportModel),
1701
- sortOrder: z76.number()
1706
+ overrides: z77.array(ThemeOverrideImportModel),
1707
+ sortOrder: z77.number()
1702
1708
  });
1703
- var ThemeImportModelInput = z76.object({
1709
+ var ThemeImportModelInput = z77.object({
1704
1710
  meta: ObjectMeta,
1705
- originObjects: z76.array(ThemeOriginObject),
1706
- overrides: z76.array(ThemeOverrideImportModelInput)
1711
+ originObjects: z77.array(ThemeOriginObject),
1712
+ overrides: z77.array(ThemeOverrideImportModelInput)
1707
1713
  });
1708
- var ThemeUpdateImportModel = z76.object({
1709
- themePersistentId: z76.string(),
1710
- overrides: z76.array(ThemeOverrideImportModel)
1714
+ var ThemeUpdateImportModel = z77.object({
1715
+ themePersistentId: z77.string(),
1716
+ overrides: z77.array(ThemeOverrideImportModel)
1711
1717
  });
1712
- var ThemeUpdateImportModelInput = z76.object({
1713
- themePersistentId: z76.string(),
1714
- overrides: z76.array(ThemeOverrideImportModelInput)
1718
+ var ThemeUpdateImportModelInput = z77.object({
1719
+ themePersistentId: z77.string(),
1720
+ overrides: z77.array(ThemeOverrideImportModelInput)
1715
1721
  });
1716
- var DesignTokenImportModelPart = z77.object({
1717
- collection: z77.string().optional()
1722
+ var DesignTokenImportModelPart = z78.object({
1723
+ collection: z78.string().optional()
1718
1724
  });
1719
1725
  var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
1720
1726
  origin: DesignTokenOrigin
@@ -1728,10 +1734,10 @@ var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
1728
1734
  image: FigmaPngRenderImportModel
1729
1735
  });
1730
1736
  var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
1731
- children: z78.lazy(() => FigmaFileStructureNodeImportModel.array())
1737
+ children: z79.lazy(() => FigmaFileStructureNodeImportModel.array())
1732
1738
  });
1733
- var FigmaFileStructureImportModelPart = z78.object({
1734
- data: z78.object({
1739
+ var FigmaFileStructureImportModelPart = z79.object({
1740
+ data: z79.object({
1735
1741
  rootNode: FigmaFileStructureNodeImportModel,
1736
1742
  assetsInFile: FigmaFileStructureStatistics
1737
1743
  })
@@ -1742,31 +1748,31 @@ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImp
1742
1748
  var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
1743
1749
  FigmaFileStructureImportModelPart.shape
1744
1750
  ).extend({
1745
- fileVersionId: z78.string()
1751
+ fileVersionId: z79.string()
1746
1752
  });
1747
- var DataSourceImportModel = z79.object({
1748
- id: z79.string(),
1749
- fileName: z79.string().optional(),
1750
- thumbnailUrl: z79.string().optional()
1753
+ var DataSourceImportModel = z80.object({
1754
+ id: z80.string(),
1755
+ fileName: z80.string().optional(),
1756
+ thumbnailUrl: z80.string().optional()
1751
1757
  });
1752
- var ImportModelInputCollection = z80.object({
1758
+ var ImportModelInputCollection = z81.object({
1753
1759
  source: DataSourceImportModel,
1754
- tokens: z80.array(DesignTokenImportModelInput).default([]),
1755
- components: z80.array(ComponentImportModelInput).default([]),
1756
- assets: z80.array(AssetImportModelInput).default([]),
1757
- themeUpdates: z80.array(ThemeUpdateImportModelInput).default([]),
1758
- themes: z80.array(ThemeImportModelInput).default([]),
1760
+ tokens: z81.array(DesignTokenImportModelInput).default([]),
1761
+ components: z81.array(ComponentImportModelInput).default([]),
1762
+ assets: z81.array(AssetImportModelInput).default([]),
1763
+ themeUpdates: z81.array(ThemeUpdateImportModelInput).default([]),
1764
+ themes: z81.array(ThemeImportModelInput).default([]),
1759
1765
  figmaFileStructure: FigmaFileStructureImportModelInput.optional()
1760
1766
  });
1761
- var ImportModelCollection = z80.object({
1762
- sources: z80.array(DataSourceImportModel),
1763
- tokens: z80.array(DesignTokenImportModel).default([]),
1764
- components: z80.array(ComponentImportModel).default([]),
1765
- themeUpdates: z80.array(ThemeUpdateImportModel).default([]),
1766
- themes: z80.array(ThemeImportModel).default([]),
1767
- figmaFileStructures: z80.array(FigmaFileStructureImportModel)
1767
+ var ImportModelCollection = z81.object({
1768
+ sources: z81.array(DataSourceImportModel),
1769
+ tokens: z81.array(DesignTokenImportModel).default([]),
1770
+ components: z81.array(ComponentImportModel).default([]),
1771
+ themeUpdates: z81.array(ThemeUpdateImportModel).default([]),
1772
+ themes: z81.array(ThemeImportModel).default([]),
1773
+ figmaFileStructures: z81.array(FigmaFileStructureImportModel)
1768
1774
  });
1769
- var ImportWarningType = z81.enum([
1775
+ var ImportWarningType = z82.enum([
1770
1776
  "NoVersionFound",
1771
1777
  "UnsupportedFill",
1772
1778
  "UnsupportedStroke",
@@ -1780,25 +1786,25 @@ var ImportWarningType = z81.enum([
1780
1786
  "DuplicateImportedStyleId",
1781
1787
  "DuplicateImportedStylePath"
1782
1788
  ]);
1783
- var ImportWarning = z81.object({
1789
+ var ImportWarning = z82.object({
1784
1790
  warningType: ImportWarningType,
1785
- componentId: z81.string().optional(),
1786
- componentName: z81.string().optional(),
1787
- styleId: z81.string().optional(),
1788
- styleName: z81.string().optional(),
1789
- unsupportedStyleValueType: z81.string().optional()
1791
+ componentId: z82.string().optional(),
1792
+ componentName: z82.string().optional(),
1793
+ styleId: z82.string().optional(),
1794
+ styleName: z82.string().optional(),
1795
+ unsupportedStyleValueType: z82.string().optional()
1790
1796
  });
1791
- var FileStructureStats = z82.object({
1797
+ var FileStructureStats = z83.object({
1792
1798
  frames: zeroNumberByDefault2(),
1793
1799
  components: zeroNumberByDefault2(),
1794
1800
  componentSets: zeroNumberByDefault2()
1795
1801
  });
1796
1802
  var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
1797
1803
  // Backward compatibility
1798
- z82.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
1804
+ z83.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
1799
1805
  );
1800
- var SourceImportSummaryByTokenType = z82.record(SourceImportSummaryByTokenTypeKey, z82.number());
1801
- var SourceImportTokenSummary = z82.object({
1806
+ var SourceImportSummaryByTokenType = z83.record(SourceImportSummaryByTokenTypeKey, z83.number());
1807
+ var SourceImportTokenSummary = z83.object({
1802
1808
  tokensCreated: zeroNumberByDefault2(),
1803
1809
  tokensUpdated: zeroNumberByDefault2(),
1804
1810
  tokensDeleted: zeroNumberByDefault2(),
@@ -1806,7 +1812,7 @@ var SourceImportTokenSummary = z82.object({
1806
1812
  tokensUpdatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {}),
1807
1813
  tokensDeletedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {})
1808
1814
  });
1809
- var SourceImportComponentSummary = z82.object({
1815
+ var SourceImportComponentSummary = z83.object({
1810
1816
  componentsCreated: zeroNumberByDefault2(),
1811
1817
  componentsUpdated: zeroNumberByDefault2(),
1812
1818
  componentsDeleted: zeroNumberByDefault2(),
@@ -1814,54 +1820,54 @@ var SourceImportComponentSummary = z82.object({
1814
1820
  componentAssetsUpdated: zeroNumberByDefault2(),
1815
1821
  componentAssetsDeleted: zeroNumberByDefault2()
1816
1822
  });
1817
- var SourceImportFrameSummary = z82.object({
1823
+ var SourceImportFrameSummary = z83.object({
1818
1824
  assetsInFile: nullishToOptional(FileStructureStats.optional()),
1819
- invalidReferencesCount: nullishToOptional(z82.number().optional())
1820
- });
1821
- var SourceImportSummary = z82.object({
1822
- sourceId: nullishToOptional(z82.string()),
1823
- brandId: nullishToOptional(z82.string()),
1824
- versionId: nullishToOptional(z82.string()),
1825
- error: nullishToOptional(z82.any()),
1826
- isFailed: z82.boolean(),
1827
- warnings: z82.array(ImportWarning).nullish().transform((v) => v ?? []),
1825
+ invalidReferencesCount: nullishToOptional(z83.number().optional())
1826
+ });
1827
+ var SourceImportSummary = z83.object({
1828
+ sourceId: nullishToOptional(z83.string()),
1829
+ brandId: nullishToOptional(z83.string()),
1830
+ versionId: nullishToOptional(z83.string()),
1831
+ error: nullishToOptional(z83.any()),
1832
+ isFailed: z83.boolean(),
1833
+ warnings: z83.array(ImportWarning).nullish().transform((v) => v ?? []),
1828
1834
  ...SourceImportTokenSummary.shape,
1829
1835
  ...SourceImportComponentSummary.shape,
1830
1836
  ...FileStructureStats.shape
1831
1837
  });
1832
1838
  function zeroNumberByDefault2() {
1833
- return z82.number().nullish().transform((v) => v ?? 0);
1839
+ return z83.number().nullish().transform((v) => v ?? 0);
1834
1840
  }
1835
- var PageBlockDefinitionAppearance = z83.object({
1836
- isBordered: z83.boolean().optional(),
1837
- hasBackground: z83.boolean().optional(),
1838
- isEditorPresentationDifferent: z83.boolean().optional()
1839
- });
1840
- var PageBlockDefinitionLayoutType = z84.enum(["Column", "Row"]);
1841
- var PageBlockDefinitionLayoutGap = z84.enum(["Small", "Medium", "Large", "None"]);
1842
- var PageBlockDefinitionLayoutAlign = z84.enum(["Start", "Center", "End"]);
1843
- var PageBlockDefinitionLayoutResizing = z84.enum(["Fill", "Hug"]);
1844
- var PageBlockDefinitionLayoutBase = z84.object({
1841
+ var PageBlockDefinitionAppearance = z84.object({
1842
+ isBordered: z84.boolean().optional(),
1843
+ hasBackground: z84.boolean().optional(),
1844
+ isEditorPresentationDifferent: z84.boolean().optional()
1845
+ });
1846
+ var PageBlockDefinitionLayoutType = z85.enum(["Column", "Row"]);
1847
+ var PageBlockDefinitionLayoutGap = z85.enum(["Small", "Medium", "Large", "None"]);
1848
+ var PageBlockDefinitionLayoutAlign = z85.enum(["Start", "Center", "End"]);
1849
+ var PageBlockDefinitionLayoutResizing = z85.enum(["Fill", "Hug"]);
1850
+ var PageBlockDefinitionLayoutBase = z85.object({
1845
1851
  type: PageBlockDefinitionLayoutType,
1846
1852
  gap: PageBlockDefinitionLayoutGap.optional(),
1847
1853
  columnAlign: PageBlockDefinitionLayoutAlign.optional(),
1848
1854
  columnResizing: PageBlockDefinitionLayoutResizing.optional()
1849
1855
  });
1850
1856
  var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
1851
- children: z84.lazy(() => z84.array(PageBlockDefinitionLayout.or(z84.string())))
1852
- });
1853
- var PageBlockDefinitionVariant = z84.object({
1854
- id: z84.string(),
1855
- name: z84.string(),
1856
- image: z84.string().optional(),
1857
- description: z84.string().optional(),
1858
- documentationLink: z84.string().optional(),
1857
+ children: z85.lazy(() => z85.array(PageBlockDefinitionLayout.or(z85.string())))
1858
+ });
1859
+ var PageBlockDefinitionVariant = z85.object({
1860
+ id: z85.string(),
1861
+ name: z85.string(),
1862
+ image: z85.string().optional(),
1863
+ description: z85.string().optional(),
1864
+ documentationLink: z85.string().optional(),
1859
1865
  layout: PageBlockDefinitionLayout,
1860
- maxColumns: z84.number().optional(),
1861
- defaultColumns: z84.number().optional(),
1866
+ maxColumns: z85.number().optional(),
1867
+ defaultColumns: z85.number().optional(),
1862
1868
  appearance: PageBlockDefinitionAppearance.optional()
1863
1869
  });
1864
- var PageBlockDefinitionPropertyType = z85.enum([
1870
+ var PageBlockDefinitionPropertyType = z86.enum([
1865
1871
  "RichText",
1866
1872
  "MultiRichText",
1867
1873
  "Text",
@@ -1888,7 +1894,7 @@ var PageBlockDefinitionPropertyType = z85.enum([
1888
1894
  "Storybook",
1889
1895
  "Color"
1890
1896
  ]);
1891
- var PageBlockDefinitionRichTextPropertyStyle = z85.enum([
1897
+ var PageBlockDefinitionRichTextPropertyStyle = z86.enum([
1892
1898
  "Title1",
1893
1899
  "Title2",
1894
1900
  "Title3",
@@ -1898,8 +1904,8 @@ var PageBlockDefinitionRichTextPropertyStyle = z85.enum([
1898
1904
  "Callout",
1899
1905
  "Default"
1900
1906
  ]);
1901
- var PageBlockDefinitionMultiRichTextPropertyStyle = z85.enum(["OL", "UL", "Default"]);
1902
- var PageBlockDefinitionTextPropertyStyle = z85.enum([
1907
+ var PageBlockDefinitionMultiRichTextPropertyStyle = z86.enum(["OL", "UL", "Default"]);
1908
+ var PageBlockDefinitionTextPropertyStyle = z86.enum([
1903
1909
  "Title1",
1904
1910
  "Title2",
1905
1911
  "Title3",
@@ -1912,77 +1918,77 @@ var PageBlockDefinitionTextPropertyStyle = z85.enum([
1912
1918
  "SmallBold",
1913
1919
  "SmallSemibold"
1914
1920
  ]);
1915
- var PageBlockDefinitionTextPropertyColor = z85.enum(["Neutral", "NeutralFaded"]);
1916
- var PageBlockDefinitionBooleanPropertyStyle = z85.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
1917
- var PageBlockDefinitionSingleSelectPropertyStyle = z85.enum([
1921
+ var PageBlockDefinitionTextPropertyColor = z86.enum(["Neutral", "NeutralFaded"]);
1922
+ var PageBlockDefinitionBooleanPropertyStyle = z86.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
1923
+ var PageBlockDefinitionSingleSelectPropertyStyle = z86.enum([
1918
1924
  "SegmentedControl",
1919
1925
  "ToggleButton",
1920
1926
  "Select",
1921
1927
  "Checkbox"
1922
1928
  ]);
1923
- var PageBlockDefinitionMultiSelectPropertyStyle = z85.enum(["SegmentedControl", "Select", "Checkbox"]);
1924
- var PageBlockDefinitionImageAspectRatio = z85.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
1925
- var PageBlockDefinitionImageWidth = z85.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
1926
- var PageBlockDefinitionSelectChoice = z85.object({
1927
- value: z85.string(),
1928
- name: z85.string(),
1929
- icon: z85.string().optional()
1929
+ var PageBlockDefinitionMultiSelectPropertyStyle = z86.enum(["SegmentedControl", "Select", "Checkbox"]);
1930
+ var PageBlockDefinitionImageAspectRatio = z86.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
1931
+ var PageBlockDefinitionImageWidth = z86.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
1932
+ var PageBlockDefinitionSelectChoice = z86.object({
1933
+ value: z86.string(),
1934
+ name: z86.string(),
1935
+ icon: z86.string().optional()
1930
1936
  });
1931
- var PageBlockDefinitionUntypedPropertyOptions = z85.record(z85.any());
1932
- var PageBlockDefinitionRichTextOptions = z85.object({
1937
+ var PageBlockDefinitionUntypedPropertyOptions = z86.record(z86.any());
1938
+ var PageBlockDefinitionRichTextOptions = z86.object({
1933
1939
  richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
1934
1940
  });
1935
- var PageBlockDefinitionMutiRichTextOptions = z85.object({
1941
+ var PageBlockDefinitionMutiRichTextOptions = z86.object({
1936
1942
  multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
1937
1943
  });
1938
- var PageBlockDefinitionTextOptions = z85.object({
1939
- placeholder: z85.string().optional(),
1940
- defaultValue: z85.string().optional(),
1944
+ var PageBlockDefinitionTextOptions = z86.object({
1945
+ placeholder: z86.string().optional(),
1946
+ defaultValue: z86.string().optional(),
1941
1947
  textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
1942
1948
  color: PageBlockDefinitionTextPropertyColor.optional()
1943
1949
  });
1944
- var PageBlockDefinitionSelectOptions = z85.object({
1950
+ var PageBlockDefinitionSelectOptions = z86.object({
1945
1951
  singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
1946
- defaultChoice: z85.string(),
1947
- choices: z85.array(PageBlockDefinitionSelectChoice)
1952
+ defaultChoice: z86.string(),
1953
+ choices: z86.array(PageBlockDefinitionSelectChoice)
1948
1954
  });
1949
- var PageBlockDefinitionImageOptions = z85.object({
1955
+ var PageBlockDefinitionImageOptions = z86.object({
1950
1956
  width: PageBlockDefinitionImageWidth.optional(),
1951
1957
  aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
1952
- allowCaption: z85.boolean().optional(),
1953
- recommendation: z85.string().optional()
1958
+ allowCaption: z86.boolean().optional(),
1959
+ recommendation: z86.string().optional()
1954
1960
  });
1955
- var PageBlockDefinitionBooleanOptions = z85.object({
1956
- defaultvalue: z85.boolean().optional(),
1961
+ var PageBlockDefinitionBooleanOptions = z86.object({
1962
+ defaultvalue: z86.boolean().optional(),
1957
1963
  booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
1958
1964
  });
1959
- var PageBlockDefinitionNumberOptions = z85.object({
1960
- defaultValue: z85.number(),
1961
- min: z85.number().optional(),
1962
- max: z85.number().optional(),
1963
- step: z85.number().optional(),
1964
- placeholder: z85.string().optional()
1965
+ var PageBlockDefinitionNumberOptions = z86.object({
1966
+ defaultValue: z86.number(),
1967
+ min: z86.number().optional(),
1968
+ max: z86.number().optional(),
1969
+ step: z86.number().optional(),
1970
+ placeholder: z86.string().optional()
1965
1971
  });
1966
- var PageBlockDefinitionComponentOptions = z85.object({
1967
- renderLayoutAs: z85.enum(["List", "Table"]).optional(),
1968
- allowPropertySelection: z85.boolean().optional()
1972
+ var PageBlockDefinitionComponentOptions = z86.object({
1973
+ renderLayoutAs: z86.enum(["List", "Table"]).optional(),
1974
+ allowPropertySelection: z86.boolean().optional()
1969
1975
  });
1970
- var PageBlockDefinitionProperty = z85.object({
1971
- id: z85.string(),
1972
- name: z85.string(),
1976
+ var PageBlockDefinitionProperty = z86.object({
1977
+ id: z86.string(),
1978
+ name: z86.string(),
1973
1979
  type: PageBlockDefinitionPropertyType,
1974
- description: z85.string().optional(),
1980
+ description: z86.string().optional(),
1975
1981
  // TODO Docs
1976
1982
  options: PageBlockDefinitionUntypedPropertyOptions.optional(),
1977
- variantOptions: z85.record(PageBlockDefinitionUntypedPropertyOptions).optional()
1983
+ variantOptions: z86.record(PageBlockDefinitionUntypedPropertyOptions).optional()
1978
1984
  });
1979
- var PageBlockDefinitionItem = z85.object({
1980
- properties: z85.array(PageBlockDefinitionProperty),
1985
+ var PageBlockDefinitionItem = z86.object({
1986
+ properties: z86.array(PageBlockDefinitionProperty),
1981
1987
  appearance: PageBlockDefinitionAppearance.optional(),
1982
- variants: z85.array(PageBlockDefinitionVariant),
1983
- defaultVariantKey: z85.string()
1988
+ variants: z86.array(PageBlockDefinitionVariant),
1989
+ defaultVariantKey: z86.string()
1984
1990
  });
1985
- var PageBlockCategory = z86.enum([
1991
+ var PageBlockCategory = z87.enum([
1986
1992
  "Text",
1987
1993
  "Layout",
1988
1994
  "Media",
@@ -1996,55 +2002,41 @@ var PageBlockCategory = z86.enum([
1996
2002
  "Data",
1997
2003
  "Other"
1998
2004
  ]);
1999
- var PageBlockBehaviorDataType = z86.enum(["Item", "Token", "Asset", "Component", "FigmaNode"]);
2000
- var PageBlockBehaviorSelectionType = z86.enum(["Entity", "Group", "EntityAndGroup"]);
2001
- var PageBlockDefinitionBehavior = z86.object({
2005
+ var PageBlockBehaviorDataType = z87.enum(["Item", "Token", "Asset", "Component", "FigmaNode"]);
2006
+ var PageBlockBehaviorSelectionType = z87.enum(["Entity", "Group", "EntityAndGroup"]);
2007
+ var PageBlockDefinitionBehavior = z87.object({
2002
2008
  dataType: PageBlockBehaviorDataType,
2003
- items: z86.object({
2004
- numberOfItems: z86.number(),
2005
- allowLinks: z86.boolean()
2009
+ items: z87.object({
2010
+ numberOfItems: z87.number(),
2011
+ allowLinks: z87.boolean()
2006
2012
  }).optional(),
2007
- entities: z86.object({
2013
+ entities: z87.object({
2008
2014
  selectionType: PageBlockBehaviorSelectionType,
2009
- maxSelected: z86.number()
2015
+ maxSelected: z87.number()
2010
2016
  }).optional()
2011
2017
  });
2012
- var PageBlockDefinitionOnboarding = z86.object({
2013
- helpText: z86.string(),
2014
- documentationLink: z86.string().optional()
2018
+ var PageBlockDefinitionOnboarding = z87.object({
2019
+ helpText: z87.string(),
2020
+ documentationLink: z87.string().optional()
2015
2021
  });
2016
- var PageBlockDefinition = z86.object({
2017
- id: z86.string(),
2018
- name: z86.string(),
2019
- description: z86.string(),
2022
+ var PageBlockDefinition = z87.object({
2023
+ id: z87.string(),
2024
+ name: z87.string(),
2025
+ description: z87.string(),
2020
2026
  category: PageBlockCategory,
2021
2027
  icon: AssetValue.optional(),
2022
- documentationLink: z86.string().optional(),
2023
- searchKeywords: z86.array(z86.string()).optional(),
2028
+ documentationLink: z87.string().optional(),
2029
+ searchKeywords: z87.array(z87.string()).optional(),
2024
2030
  item: PageBlockDefinitionItem,
2025
2031
  behavior: PageBlockDefinitionBehavior,
2026
- editorOptions: z86.object({
2032
+ editorOptions: z87.object({
2027
2033
  onboarding: PageBlockDefinitionOnboarding.optional()
2028
2034
  }),
2029
2035
  appearance: PageBlockDefinitionAppearance.optional()
2030
2036
  });
2031
- var DocumentationPageGroup = z87.object({
2032
- type: z87.literal("ElementGroup"),
2033
- childType: z87.literal("DocumentationPage"),
2034
- id: z87.string(),
2035
- persistentId: z87.string(),
2036
- shortPersistentId: z87.string(),
2037
- designSystemVersionId: z87.string(),
2038
- parentPersistentId: z87.string().nullish(),
2039
- sortOrder: z87.number(),
2040
- title: z87.string(),
2041
- slug: z87.string(),
2042
- userSlug: z87.string().nullish(),
2043
- createdAt: z87.date(),
2044
- updatedAt: z87.date()
2045
- });
2046
- var DocumentationPage = z88.object({
2047
- type: z88.literal("DocumentationPage"),
2037
+ var DocumentationPageGroup = z88.object({
2038
+ type: z88.literal("ElementGroup"),
2039
+ childType: z88.literal("DocumentationPage"),
2048
2040
  id: z88.string(),
2049
2041
  persistentId: z88.string(),
2050
2042
  shortPersistentId: z88.string(),
@@ -2057,158 +2049,172 @@ var DocumentationPage = z88.object({
2057
2049
  createdAt: z88.date(),
2058
2050
  updatedAt: z88.date()
2059
2051
  });
2060
- var NpmRegistryAuthType = z89.enum(["Basic", "Bearer", "None", "Custom"]);
2052
+ var DocumentationPage = z89.object({
2053
+ type: z89.literal("DocumentationPage"),
2054
+ id: z89.string(),
2055
+ persistentId: z89.string(),
2056
+ shortPersistentId: z89.string(),
2057
+ designSystemVersionId: z89.string(),
2058
+ parentPersistentId: z89.string().nullish(),
2059
+ sortOrder: z89.number(),
2060
+ title: z89.string(),
2061
+ slug: z89.string(),
2062
+ userSlug: z89.string().nullish(),
2063
+ createdAt: z89.date(),
2064
+ updatedAt: z89.date()
2065
+ });
2066
+ var NpmRegistryAuthType = z90.enum(["Basic", "Bearer", "None", "Custom"]);
2061
2067
  var registryTypesWithoutAzure = ["NPMJS", "GitHub", "Artifactory", "Custom"];
2062
- var NpmRegistryType = z89.enum([...registryTypesWithoutAzure, "AzureDevOps"]);
2063
- var NpmRegistryTypeWithoutAzure = z89.enum(registryTypesWithoutAzure);
2064
- var NpmRegistryBasicAuthConfig = z89.object({
2068
+ var NpmRegistryType = z90.enum([...registryTypesWithoutAzure, "AzureDevOps"]);
2069
+ var NpmRegistryTypeWithoutAzure = z90.enum(registryTypesWithoutAzure);
2070
+ var NpmRegistryBasicAuthConfig = z90.object({
2065
2071
  registryType: NpmRegistryType,
2066
- authType: z89.literal(NpmRegistryAuthType.Enum.Basic),
2067
- username: z89.string(),
2068
- password: z89.string()
2072
+ authType: z90.literal(NpmRegistryAuthType.Enum.Basic),
2073
+ username: z90.string(),
2074
+ password: z90.string()
2069
2075
  });
2070
- var NpmRegistryBearerAuthConfig = z89.object({
2076
+ var NpmRegistryBearerAuthConfig = z90.object({
2071
2077
  registryType: NpmRegistryTypeWithoutAzure,
2072
- authType: z89.literal(NpmRegistryAuthType.Enum.Bearer),
2073
- accessToken: z89.string()
2078
+ authType: z90.literal(NpmRegistryAuthType.Enum.Bearer),
2079
+ accessToken: z90.string()
2074
2080
  });
2075
- var NpmRegistryNoAuthConfig = z89.object({
2081
+ var NpmRegistryNoAuthConfig = z90.object({
2076
2082
  registryType: NpmRegistryTypeWithoutAzure,
2077
- authType: z89.literal(NpmRegistryAuthType.Enum.None)
2083
+ authType: z90.literal(NpmRegistryAuthType.Enum.None)
2078
2084
  });
2079
- var NpmRegistrCustomAuthConfig = z89.object({
2085
+ var NpmRegistrCustomAuthConfig = z90.object({
2080
2086
  registryType: NpmRegistryTypeWithoutAzure,
2081
- authType: z89.literal(NpmRegistryAuthType.Enum.Custom),
2082
- authHeaderName: z89.string(),
2083
- authHeaderValue: z89.string()
2087
+ authType: z90.literal(NpmRegistryAuthType.Enum.Custom),
2088
+ authHeaderName: z90.string(),
2089
+ authHeaderValue: z90.string()
2084
2090
  });
2085
- var NpmRegistryAuthConfig = z89.discriminatedUnion("authType", [
2091
+ var NpmRegistryAuthConfig = z90.discriminatedUnion("authType", [
2086
2092
  NpmRegistryBasicAuthConfig,
2087
2093
  NpmRegistryBearerAuthConfig,
2088
2094
  NpmRegistryNoAuthConfig,
2089
2095
  NpmRegistrCustomAuthConfig
2090
2096
  ]);
2091
- var NpmRegistryConfigBase = z89.object({
2092
- enabledScopes: z89.array(z89.string()),
2093
- customRegistryUrl: z89.string().optional(),
2094
- bypassProxy: z89.boolean().default(false),
2095
- npmProxyRegistryConfigId: z89.string().optional(),
2096
- npmProxyVersion: z89.number().optional()
2097
+ var NpmRegistryConfigBase = z90.object({
2098
+ enabledScopes: z90.array(z90.string()),
2099
+ customRegistryUrl: z90.string().optional(),
2100
+ bypassProxy: z90.boolean().default(false),
2101
+ npmProxyRegistryConfigId: z90.string().optional(),
2102
+ npmProxyVersion: z90.number().optional()
2097
2103
  });
2098
2104
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
2099
- var SsoProvider = z90.object({
2100
- providerId: z90.string(),
2101
- defaultAutoInviteValue: z90.boolean(),
2102
- autoInviteDomains: z90.record(z90.string(), z90.boolean()),
2103
- skipDocsSupernovaLogin: z90.boolean(),
2104
- areInvitesDisabled: z90.boolean(),
2105
- isTestMode: z90.boolean(),
2106
- emailDomains: z90.array(z90.string()),
2107
- metadataXml: z90.string().nullish()
2108
- });
2109
- var WorkspaceRoleSchema = z91.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
2105
+ var SsoProvider = z91.object({
2106
+ providerId: z91.string(),
2107
+ defaultAutoInviteValue: z91.boolean(),
2108
+ autoInviteDomains: z91.record(z91.string(), z91.boolean()),
2109
+ skipDocsSupernovaLogin: z91.boolean(),
2110
+ areInvitesDisabled: z91.boolean(),
2111
+ isTestMode: z91.boolean(),
2112
+ emailDomains: z91.array(z91.string()),
2113
+ metadataXml: z91.string().nullish()
2114
+ });
2115
+ var WorkspaceRoleSchema = z92.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
2110
2116
  var WorkspaceRole = WorkspaceRoleSchema.enum;
2111
2117
  var MAX_MEMBERS_COUNT = 100;
2112
- var UserInvite = z92.object({
2113
- email: z92.string().email().trim().transform((value) => value.toLowerCase()),
2118
+ var UserInvite = z93.object({
2119
+ email: z93.string().email().trim().transform((value) => value.toLowerCase()),
2114
2120
  role: WorkspaceRoleSchema
2115
2121
  });
2116
- var UserInvites = z92.array(UserInvite).max(MAX_MEMBERS_COUNT);
2117
- var WorkspaceIpWhitelistEntry = z93.object({
2118
- isEnabled: z93.boolean(),
2119
- name: z93.string(),
2120
- range: z93.string()
2122
+ var UserInvites = z93.array(UserInvite).max(MAX_MEMBERS_COUNT);
2123
+ var WorkspaceIpWhitelistEntry = z94.object({
2124
+ isEnabled: z94.boolean(),
2125
+ name: z94.string(),
2126
+ range: z94.string()
2121
2127
  });
2122
- var WorkspaceIpSettings = z93.object({
2123
- isEnabledForCloud: z93.boolean(),
2124
- isEnabledForDocs: z93.boolean(),
2125
- entries: z93.array(WorkspaceIpWhitelistEntry)
2128
+ var WorkspaceIpSettings = z94.object({
2129
+ isEnabledForCloud: z94.boolean(),
2130
+ isEnabledForDocs: z94.boolean(),
2131
+ entries: z94.array(WorkspaceIpWhitelistEntry)
2126
2132
  }).nullish();
2127
- var WorkspaceProfile = z93.object({
2128
- name: z93.string(),
2129
- handle: z93.string(),
2130
- color: z93.string(),
2131
- avatar: z93.string().optional(),
2133
+ var WorkspaceProfile = z94.object({
2134
+ name: z94.string(),
2135
+ handle: z94.string(),
2136
+ color: z94.string(),
2137
+ avatar: z94.string().optional(),
2132
2138
  billingDetails: BillingDetails.optional()
2133
2139
  });
2134
- var Workspace = z93.object({
2135
- id: z93.string(),
2140
+ var Workspace = z94.object({
2141
+ id: z94.string(),
2136
2142
  profile: WorkspaceProfile,
2137
2143
  subscription: Subscription,
2138
2144
  ipWhitelist: WorkspaceIpSettings,
2139
2145
  sso: SsoProvider.nullish(),
2140
- npmRegistrySettings: z93.unknown().optional(),
2141
- designSystems: z93.array(DesignSystem).nullish()
2146
+ npmRegistrySettings: z94.unknown().optional(),
2147
+ designSystems: z94.array(DesignSystem).nullish()
2142
2148
  });
2143
- var WorkspaceWithDesignSystems = z93.object({
2149
+ var WorkspaceWithDesignSystems = z94.object({
2144
2150
  workspace: Workspace,
2145
- designSystems: z93.array(DesignSystem)
2151
+ designSystems: z94.array(DesignSystem)
2146
2152
  });
2147
- var WorkspaceContext = z94.object({
2148
- workspaceId: z94.string(),
2153
+ var WorkspaceContext = z95.object({
2154
+ workspaceId: z95.string(),
2149
2155
  product: ProductCodeSchema,
2150
2156
  ipWhitelist: WorkspaceIpSettings,
2151
- publicDesignSystem: z94.boolean().optional()
2157
+ publicDesignSystem: z95.boolean().optional()
2152
2158
  });
2153
2159
  var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
2154
2160
  var WORKSPACE_NAME_MIN_LENGTH = 2;
2155
2161
  var WORKSPACE_NAME_MAX_LENGTH = 64;
2156
2162
  var HANDLE_MIN_LENGTH = 2;
2157
2163
  var HANDLE_MAX_LENGTH = 64;
2158
- var CreateWorkspaceInput = z95.object({
2159
- name: z95.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2164
+ var CreateWorkspaceInput = z96.object({
2165
+ name: z96.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2160
2166
  product: ProductCodeSchema,
2161
- priceId: z95.string(),
2162
- billingEmail: z95.string().email().optional(),
2163
- handle: z95.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2167
+ priceId: z96.string(),
2168
+ billingEmail: z96.string().email().optional(),
2169
+ handle: z96.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2164
2170
  invites: UserInvites.optional(),
2165
- promoCode: z95.string().optional()
2166
- });
2167
- var WorkspaceInvitation = z96.object({
2168
- id: z96.string(),
2169
- email: z96.string().email(),
2170
- createdAt: z96.date(),
2171
- resentAt: z96.date().nullish(),
2172
- role: z96.nativeEnum(WorkspaceRole),
2173
- workspaceId: z96.string(),
2174
- invitedBy: z96.string()
2175
- });
2176
- var WorkspaceMembership = z97.object({
2171
+ promoCode: z96.string().optional()
2172
+ });
2173
+ var WorkspaceInvitation = z97.object({
2177
2174
  id: z97.string(),
2178
- userId: z97.string(),
2175
+ email: z97.string().email(),
2176
+ createdAt: z97.date(),
2177
+ resentAt: z97.date().nullish(),
2178
+ role: z97.nativeEnum(WorkspaceRole),
2179
2179
  workspaceId: z97.string(),
2180
- workspaceRole: z97.nativeEnum(WorkspaceRole)
2180
+ invitedBy: z97.string()
2181
2181
  });
2182
- var UpdateMembershipRolesInput = z97.object({
2183
- members: z97.array(
2184
- z97.object({
2185
- userId: z97.string(),
2186
- role: z97.nativeEnum(WorkspaceRole)
2182
+ var WorkspaceMembership = z98.object({
2183
+ id: z98.string(),
2184
+ userId: z98.string(),
2185
+ workspaceId: z98.string(),
2186
+ workspaceRole: z98.nativeEnum(WorkspaceRole)
2187
+ });
2188
+ var UpdateMembershipRolesInput = z98.object({
2189
+ members: z98.array(
2190
+ z98.object({
2191
+ userId: z98.string(),
2192
+ role: z98.nativeEnum(WorkspaceRole)
2187
2193
  })
2188
2194
  )
2189
2195
  });
2190
- var DesignSystemSwitcher = z98.object({
2191
- isEnabled: z98.boolean(),
2192
- designSystemIds: z98.array(z98.string())
2196
+ var DesignSystemSwitcher = z99.object({
2197
+ isEnabled: z99.boolean(),
2198
+ designSystemIds: z99.array(z99.string())
2193
2199
  });
2194
- var DesignSystem = z98.object({
2195
- id: z98.string(),
2196
- workspaceId: z98.string(),
2197
- name: z98.string(),
2198
- description: z98.string(),
2199
- docExporterId: nullishToOptional(z98.string()),
2200
- docSlug: z98.string(),
2201
- docUserSlug: nullishToOptional(z98.string()),
2202
- docSlugDeprecated: z98.string(),
2203
- isPublic: z98.boolean(),
2204
- isMultibrand: z98.boolean(),
2205
- docViewUrl: nullishToOptional(z98.string()),
2206
- basePrefixes: z98.array(z98.string()),
2200
+ var DesignSystem = z99.object({
2201
+ id: z99.string(),
2202
+ workspaceId: z99.string(),
2203
+ name: z99.string(),
2204
+ description: z99.string(),
2205
+ docExporterId: nullishToOptional(z99.string()),
2206
+ docSlug: z99.string(),
2207
+ docUserSlug: nullishToOptional(z99.string()),
2208
+ docSlugDeprecated: z99.string(),
2209
+ isPublic: z99.boolean(),
2210
+ isMultibrand: z99.boolean(),
2211
+ docViewUrl: nullishToOptional(z99.string()),
2212
+ basePrefixes: z99.array(z99.string()),
2207
2213
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
2208
- createdAt: z98.date(),
2209
- updatedAt: z98.date()
2214
+ createdAt: z99.date(),
2215
+ updatedAt: z99.date()
2210
2216
  });
2211
- var DesignSystemWithWorkspace = z98.object({
2217
+ var DesignSystemWithWorkspace = z99.object({
2212
2218
  designSystem: DesignSystem,
2213
2219
  workspace: Workspace
2214
2220
  });
@@ -2216,81 +2222,81 @@ var DS_NAME_MIN_LENGTH = 2;
2216
2222
  var DS_NAME_MAX_LENGTH = 64;
2217
2223
  var DS_DESC_MIN_LENGTH = 2;
2218
2224
  var DS_DESC_MAX_LENGTH = 64;
2219
- var DesignSystemCreateInputMetadata = z99.object({
2220
- name: z99.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2221
- description: z99.string().min(DS_DESC_MIN_LENGTH).max(DS_DESC_MAX_LENGTH).trim()
2225
+ var DesignSystemCreateInputMetadata = z100.object({
2226
+ name: z100.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2227
+ description: z100.string().min(DS_DESC_MIN_LENGTH).max(DS_DESC_MAX_LENGTH).trim()
2222
2228
  });
2223
- var DesignSystemCreateInput = z99.object({
2229
+ var DesignSystemCreateInput = z100.object({
2224
2230
  meta: DesignSystemCreateInputMetadata,
2225
- workspaceId: z99.string(),
2226
- isPublic: z99.boolean().optional(),
2227
- basePrefixes: z99.array(z99.string()).optional(),
2228
- docUserSlug: z99.string().nullish().optional(),
2229
- source: z99.array(z99.string()).optional()
2231
+ workspaceId: z100.string(),
2232
+ isPublic: z100.boolean().optional(),
2233
+ basePrefixes: z100.array(z100.string()).optional(),
2234
+ docUserSlug: z100.string().nullish().optional(),
2235
+ source: z100.array(z100.string()).optional()
2230
2236
  });
2231
2237
  var DS_NAME_MIN_LENGTH2 = 2;
2232
2238
  var DS_NAME_MAX_LENGTH2 = 64;
2233
2239
  var DS_DESC_MIN_LENGTH2 = 2;
2234
2240
  var DS_DESC_MAX_LENGTH2 = 64;
2235
- var DesignSystemUpdateInputMetadata = z100.object({
2236
- name: z100.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2237
- description: z100.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional()
2241
+ var DesignSystemUpdateInputMetadata = z101.object({
2242
+ name: z101.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2243
+ description: z101.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional()
2238
2244
  });
2239
- var DesignSystemUpdateInput = z100.object({
2245
+ var DesignSystemUpdateInput = z101.object({
2240
2246
  meta: DesignSystemUpdateInputMetadata.optional(),
2241
- workspaceId: z100.string().optional(),
2242
- isPublic: z100.boolean().optional(),
2243
- basePrefixes: z100.array(z100.string()).optional(),
2244
- docUserSlug: z100.string().nullish().optional(),
2245
- source: z100.array(z100.string()).optional(),
2246
- name: z100.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2247
- description: z100.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional(),
2248
- docExporterId: z100.string().optional()
2247
+ workspaceId: z101.string().optional(),
2248
+ isPublic: z101.boolean().optional(),
2249
+ basePrefixes: z101.array(z101.string()).optional(),
2250
+ docUserSlug: z101.string().nullish().optional(),
2251
+ source: z101.array(z101.string()).optional(),
2252
+ name: z101.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2253
+ description: z101.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional(),
2254
+ docExporterId: z101.string().optional()
2249
2255
  });
2250
2256
  var publishedDocEnvironments = ["Live", "Preview"];
2251
- var PublishedDocEnvironment = z101.enum(publishedDocEnvironments);
2252
- var PublishedDocsChecksums = z101.record(z101.string());
2253
- var PublishedDocRoutingVersion = z101.enum(["1", "2"]);
2254
- var PublishedDoc = z101.object({
2255
- id: z101.string(),
2256
- designSystemVersionId: z101.string(),
2257
- createdAt: z101.date(),
2258
- updatedAt: z101.date(),
2259
- lastPublishedAt: z101.date(),
2260
- isDefault: z101.boolean(),
2261
- isPublic: z101.boolean(),
2257
+ var PublishedDocEnvironment = z102.enum(publishedDocEnvironments);
2258
+ var PublishedDocsChecksums = z102.record(z102.string());
2259
+ var PublishedDocRoutingVersion = z102.enum(["1", "2"]);
2260
+ var PublishedDoc = z102.object({
2261
+ id: z102.string(),
2262
+ designSystemVersionId: z102.string(),
2263
+ createdAt: z102.date(),
2264
+ updatedAt: z102.date(),
2265
+ lastPublishedAt: z102.date(),
2266
+ isDefault: z102.boolean(),
2267
+ isPublic: z102.boolean(),
2262
2268
  environment: PublishedDocEnvironment,
2263
2269
  checksums: PublishedDocsChecksums,
2264
- storagePath: z101.string(),
2265
- wasMigrated: z101.boolean(),
2270
+ storagePath: z102.string(),
2271
+ wasMigrated: z102.boolean(),
2266
2272
  routingVersion: PublishedDocRoutingVersion,
2267
- usesLocalizations: z101.boolean(),
2268
- wasPublishedWithLocalizations: z101.boolean()
2269
- });
2270
- var ExporterJobDestination = z102.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
2271
- var ExporterJobStatus = z102.enum(["InProgress", "Success", "Failed", "Timeout"]);
2272
- var ExporterJobLogEntryType = z102.enum(["success", "info", "warning", "error", "user"]);
2273
- var ExporterJobLogEntry = z102.object({
2274
- id: z102.string().optional(),
2275
- time: z102.coerce.date(),
2273
+ usesLocalizations: z102.boolean(),
2274
+ wasPublishedWithLocalizations: z102.boolean()
2275
+ });
2276
+ var ExporterJobDestination = z103.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
2277
+ var ExporterJobStatus = z103.enum(["InProgress", "Success", "Failed", "Timeout"]);
2278
+ var ExporterJobLogEntryType = z103.enum(["success", "info", "warning", "error", "user"]);
2279
+ var ExporterJobLogEntry = z103.object({
2280
+ id: z103.string().optional(),
2281
+ time: z103.coerce.date(),
2276
2282
  type: ExporterJobLogEntryType,
2277
- message: z102.string()
2283
+ message: z103.string()
2278
2284
  });
2279
- var ExporterJobResultPullRequestDestination = z102.object({
2280
- pullRequestUrl: z102.string()
2285
+ var ExporterJobResultPullRequestDestination = z103.object({
2286
+ pullRequestUrl: z103.string()
2281
2287
  });
2282
- var ExporterJobResultS3Destination = z102.object({
2283
- bucket: z102.string(),
2284
- urlPrefix: z102.string().optional(),
2285
- path: z102.string(),
2286
- files: z102.array(z102.string())
2288
+ var ExporterJobResultS3Destination = z103.object({
2289
+ bucket: z103.string(),
2290
+ urlPrefix: z103.string().optional(),
2291
+ path: z103.string(),
2292
+ files: z103.array(z103.string())
2287
2293
  });
2288
- var ExporterJobResultDocsDestination = z102.object({
2289
- url: z102.string()
2294
+ var ExporterJobResultDocsDestination = z103.object({
2295
+ url: z103.string()
2290
2296
  });
2291
- var ExporterJobResult = z102.object({
2292
- error: z102.string().optional(),
2293
- logs: z102.array(ExporterJobLogEntry).optional(),
2297
+ var ExporterJobResult = z103.object({
2298
+ error: z103.string().optional(),
2299
+ logs: z103.array(ExporterJobLogEntry).optional(),
2294
2300
  s3: ExporterJobResultS3Destination.optional(),
2295
2301
  github: ExporterJobResultPullRequestDestination.optional(),
2296
2302
  azure: ExporterJobResultPullRequestDestination.optional(),
@@ -2298,68 +2304,68 @@ var ExporterJobResult = z102.object({
2298
2304
  bitbucket: ExporterJobResultPullRequestDestination.optional(),
2299
2305
  sndocs: ExporterJobResultDocsDestination.optional()
2300
2306
  });
2301
- var ExporterDestinationSnDocs = z102.object({
2307
+ var ExporterDestinationSnDocs = z103.object({
2302
2308
  environment: PublishedDocEnvironment
2303
2309
  });
2304
- var ExporterDestinationS3 = z102.object({});
2305
- var ExporterDestinationGithub = z102.object({
2306
- connectionId: z102.string(),
2307
- url: z102.string(),
2308
- branch: z102.string(),
2309
- relativePath: z102.string(),
2310
+ var ExporterDestinationS3 = z103.object({});
2311
+ var ExporterDestinationGithub = z103.object({
2312
+ connectionId: z103.string(),
2313
+ url: z103.string(),
2314
+ branch: z103.string(),
2315
+ relativePath: z103.string(),
2310
2316
  // +
2311
- userId: z102.coerce.string()
2312
- });
2313
- var ExporterDestinationAzure = z102.object({
2314
- connectionId: z102.string(),
2315
- organizationId: z102.string(),
2316
- projectId: z102.string(),
2317
- repositoryId: z102.string(),
2318
- branch: z102.string(),
2319
- relativePath: z102.string(),
2317
+ userId: z103.coerce.string()
2318
+ });
2319
+ var ExporterDestinationAzure = z103.object({
2320
+ connectionId: z103.string(),
2321
+ organizationId: z103.string(),
2322
+ projectId: z103.string(),
2323
+ repositoryId: z103.string(),
2324
+ branch: z103.string(),
2325
+ relativePath: z103.string(),
2320
2326
  // +
2321
- userId: z102.coerce.string(),
2322
- url: z102.string()
2323
- });
2324
- var ExporterDestinationGitlab = z102.object({
2325
- connectionId: z102.string(),
2326
- projectId: z102.string(),
2327
- branch: z102.string(),
2328
- relativePath: z102.string(),
2327
+ userId: z103.coerce.string(),
2328
+ url: z103.string()
2329
+ });
2330
+ var ExporterDestinationGitlab = z103.object({
2331
+ connectionId: z103.string(),
2332
+ projectId: z103.string(),
2333
+ branch: z103.string(),
2334
+ relativePath: z103.string(),
2329
2335
  // +
2330
- userId: z102.coerce.string(),
2331
- url: z102.string()
2336
+ userId: z103.coerce.string(),
2337
+ url: z103.string()
2332
2338
  });
2333
2339
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
2334
2340
  var BITBUCKET_MAX_LENGTH = 64;
2335
- var ExporterDestinationBitbucket = z102.object({
2336
- connectionId: z102.string(),
2337
- workspaceSlug: z102.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2338
- projectKey: z102.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2339
- repoSlug: z102.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2340
- branch: z102.string(),
2341
- relativePath: z102.string(),
2341
+ var ExporterDestinationBitbucket = z103.object({
2342
+ connectionId: z103.string(),
2343
+ workspaceSlug: z103.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2344
+ projectKey: z103.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2345
+ repoSlug: z103.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2346
+ branch: z103.string(),
2347
+ relativePath: z103.string(),
2342
2348
  // +
2343
- userId: z102.coerce.string(),
2344
- url: z102.string()
2345
- });
2346
- var ExporterJob = z102.object({
2347
- id: z102.coerce.string(),
2348
- createdAt: z102.coerce.date(),
2349
- finishedAt: z102.coerce.date().optional(),
2350
- designSystemId: z102.coerce.string(),
2351
- designSystemVersionId: z102.coerce.string(),
2352
- workspaceId: z102.coerce.string(),
2353
- scheduleId: z102.coerce.string().nullish(),
2354
- exporterId: z102.coerce.string(),
2355
- brandId: z102.coerce.string().optional(),
2356
- themeId: z102.coerce.string().optional(),
2357
- estimatedExecutionTime: z102.number().optional(),
2349
+ userId: z103.coerce.string(),
2350
+ url: z103.string()
2351
+ });
2352
+ var ExporterJob = z103.object({
2353
+ id: z103.coerce.string(),
2354
+ createdAt: z103.coerce.date(),
2355
+ finishedAt: z103.coerce.date().optional(),
2356
+ designSystemId: z103.coerce.string(),
2357
+ designSystemVersionId: z103.coerce.string(),
2358
+ workspaceId: z103.coerce.string(),
2359
+ scheduleId: z103.coerce.string().nullish(),
2360
+ exporterId: z103.coerce.string(),
2361
+ brandId: z103.coerce.string().optional(),
2362
+ themeId: z103.coerce.string().optional(),
2363
+ estimatedExecutionTime: z103.number().optional(),
2358
2364
  status: ExporterJobStatus,
2359
2365
  result: ExporterJobResult.optional(),
2360
- createdByUserId: z102.string().optional(),
2366
+ createdByUserId: z103.string().optional(),
2361
2367
  // CodegenDestinationsModel
2362
- webhookUrl: z102.string().optional(),
2368
+ webhookUrl: z103.string().optional(),
2363
2369
  destinationSnDocs: ExporterDestinationSnDocs.optional(),
2364
2370
  destinationS3: ExporterDestinationS3.optional(),
2365
2371
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -2378,14 +2384,14 @@ var ExporterJobFindByFilter = ExporterJob.pick({
2378
2384
  themeId: true,
2379
2385
  brandId: true
2380
2386
  }).extend({
2381
- destinations: z102.array(ExporterJobDestination),
2387
+ destinations: z103.array(ExporterJobDestination),
2382
2388
  docsEnvironment: PublishedDocEnvironment
2383
2389
  }).partial();
2384
- var ExporterWorkspaceMembershipRole = z103.enum(["Owner", "OwnerArchived", "User"]);
2385
- var ExporterWorkspaceMembership = z104.object({
2386
- id: z104.string(),
2387
- workspaceId: z104.string(),
2388
- exporterId: z104.string(),
2390
+ var ExporterWorkspaceMembershipRole = z104.enum(["Owner", "OwnerArchived", "User"]);
2391
+ var ExporterWorkspaceMembership = z105.object({
2392
+ id: z105.string(),
2393
+ workspaceId: z105.string(),
2394
+ exporterId: z105.string(),
2389
2395
  role: ExporterWorkspaceMembershipRole
2390
2396
  });
2391
2397
  var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
@@ -2395,8 +2401,8 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
2395
2401
  GitProviderNames2["Bitbucket"] = "bitbucket";
2396
2402
  return GitProviderNames2;
2397
2403
  })(GitProviderNames || {});
2398
- var GitProvider = z105.nativeEnum(GitProviderNames);
2399
- var PulsarPropertyType = z106.enum([
2404
+ var GitProvider = z106.nativeEnum(GitProviderNames);
2405
+ var PulsarPropertyType = z107.enum([
2400
2406
  "string",
2401
2407
  "number",
2402
2408
  "boolean",
@@ -2409,164 +2415,164 @@ var PulsarPropertyType = z106.enum([
2409
2415
  "tokenProperties",
2410
2416
  "tokenType"
2411
2417
  ]);
2412
- var PulsarBaseProperty = z106.object({
2413
- label: z106.string(),
2414
- key: z106.string(),
2415
- description: z106.string().nullish(),
2418
+ var PulsarBaseProperty = z107.object({
2419
+ label: z107.string(),
2420
+ key: z107.string(),
2421
+ description: z107.string().nullish(),
2416
2422
  type: PulsarPropertyType,
2417
- values: z106.array(z106.string()).nullish(),
2418
- default: z106.union([z106.string(), z106.boolean(), z106.number()]).nullish(),
2423
+ values: z107.array(z107.string()).nullish(),
2424
+ default: z107.union([z107.string(), z107.boolean(), z107.number()]).nullish(),
2419
2425
  // PulsarPropertyValueType //is optional?
2420
- inputType: z106.enum(["code", "plain"]).optional(),
2426
+ inputType: z107.enum(["code", "plain"]).optional(),
2421
2427
  //is optional?
2422
- isMultiline: z106.boolean().nullish()
2428
+ isMultiline: z107.boolean().nullish()
2423
2429
  });
2424
2430
  var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
2425
- category: z106.string()
2426
- });
2427
- var PulsarContributionVariant = z106.object({
2428
- key: z106.string(),
2429
- name: z106.string(),
2430
- isDefault: z106.boolean().nullish(),
2431
- description: z106.string().nullish(),
2432
- thumbnailURL: z106.string().nullish()
2433
- });
2434
- var PulsarCustomBlock = z106.object({
2435
- title: z106.string(),
2436
- key: z106.string(),
2437
- category: z106.string(),
2438
- description: nullishToOptional(z106.string()),
2439
- iconURL: z106.string(),
2440
- mode: z106.enum(["array", "block"]),
2441
- properties: z106.array(PulsarBaseProperty)
2442
- });
2443
- var ExporterType = z107.enum(["code", "documentation"]);
2444
- var ExporterSource = z107.enum(["git", "upload"]);
2445
- var ExporterTag = z107.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
2446
- var ExporterDetails = z107.object({
2447
- description: z107.string(),
2448
- version: z107.string(),
2449
- routingVersion: nullishToOptional(z107.string()),
2450
- author: nullishToOptional(z107.string()),
2451
- organization: nullishToOptional(z107.string()),
2452
- homepage: nullishToOptional(z107.string()),
2453
- readme: nullishToOptional(z107.string()),
2454
- tags: nullishToOptional(z107.array(ExporterTag)).default([]),
2455
- packageId: nullishToOptional(z107.string().max(255)),
2456
- iconURL: nullishToOptional(z107.string()),
2457
- configurationProperties: nullishToOptional(z107.array(PulsarContributionConfigurationProperty)).default([]),
2458
- customBlocks: nullishToOptional(z107.array(PulsarCustomBlock)).default([]),
2459
- blockVariants: nullishToOptional(z107.record(z107.string(), z107.array(PulsarContributionVariant))).default({}),
2460
- usesBrands: nullishToOptional(z107.boolean()).default(false),
2461
- usesThemes: nullishToOptional(z107.boolean()).default(false),
2431
+ category: z107.string()
2432
+ });
2433
+ var PulsarContributionVariant = z107.object({
2434
+ key: z107.string(),
2435
+ name: z107.string(),
2436
+ isDefault: z107.boolean().nullish(),
2437
+ description: z107.string().nullish(),
2438
+ thumbnailURL: z107.string().nullish()
2439
+ });
2440
+ var PulsarCustomBlock = z107.object({
2441
+ title: z107.string(),
2442
+ key: z107.string(),
2443
+ category: z107.string(),
2444
+ description: nullishToOptional(z107.string()),
2445
+ iconURL: z107.string(),
2446
+ mode: z107.enum(["array", "block"]),
2447
+ properties: z107.array(PulsarBaseProperty)
2448
+ });
2449
+ var ExporterType = z108.enum(["code", "documentation"]);
2450
+ var ExporterSource = z108.enum(["git", "upload"]);
2451
+ var ExporterTag = z108.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
2452
+ var ExporterDetails = z108.object({
2453
+ description: z108.string(),
2454
+ version: z108.string(),
2455
+ routingVersion: nullishToOptional(z108.string()),
2456
+ author: nullishToOptional(z108.string()),
2457
+ organization: nullishToOptional(z108.string()),
2458
+ homepage: nullishToOptional(z108.string()),
2459
+ readme: nullishToOptional(z108.string()),
2460
+ tags: nullishToOptional(z108.array(ExporterTag)).default([]),
2461
+ packageId: nullishToOptional(z108.string().max(255)),
2462
+ iconURL: nullishToOptional(z108.string()),
2463
+ configurationProperties: nullishToOptional(z108.array(PulsarContributionConfigurationProperty)).default([]),
2464
+ customBlocks: nullishToOptional(z108.array(PulsarCustomBlock)).default([]),
2465
+ blockVariants: nullishToOptional(z108.record(z108.string(), z108.array(PulsarContributionVariant))).default({}),
2466
+ usesBrands: nullishToOptional(z108.boolean()).default(false),
2467
+ usesThemes: nullishToOptional(z108.boolean()).default(false),
2462
2468
  source: ExporterSource,
2463
2469
  gitProvider: nullishToOptional(GitProvider),
2464
- gitUrl: nullishToOptional(z107.string()),
2465
- gitBranch: nullishToOptional(z107.string()),
2466
- gitDirectory: nullishToOptional(z107.string())
2470
+ gitUrl: nullishToOptional(z108.string()),
2471
+ gitBranch: nullishToOptional(z108.string()),
2472
+ gitDirectory: nullishToOptional(z108.string())
2467
2473
  });
2468
- var Exporter = z107.object({
2469
- id: z107.string(),
2470
- createdAt: z107.coerce.date(),
2471
- name: z107.string(),
2472
- isPrivate: z107.boolean(),
2474
+ var Exporter = z108.object({
2475
+ id: z108.string(),
2476
+ createdAt: z108.coerce.date(),
2477
+ name: z108.string(),
2478
+ isPrivate: z108.boolean(),
2473
2479
  details: ExporterDetails,
2474
2480
  exporterType: nullishToOptional(ExporterType).default("code"),
2475
- storagePath: nullishToOptional(z107.string()).default("")
2481
+ storagePath: nullishToOptional(z108.string()).default("")
2476
2482
  });
2477
- var CustomDomain = z108.object({
2478
- id: z108.string(),
2479
- designSystemId: z108.string(),
2480
- state: z108.string(),
2481
- supernovaDomain: z108.string(),
2482
- customerDomain: z108.string().nullish(),
2483
- error: z108.string().nullish(),
2484
- errorCode: z108.string().nullish()
2485
- });
2486
- var IntegrationAuthType = z109.union([z109.literal("OAuth2"), z109.literal("PAT")]);
2487
- var ExternalServiceType = z109.union([
2488
- z109.literal("figma"),
2489
- z109.literal("github"),
2490
- z109.literal("azure"),
2491
- z109.literal("gitlab"),
2492
- z109.literal("bitbucket")
2493
- ]);
2494
- var IntegrationUserInfo = z109.object({
2483
+ var CustomDomain = z109.object({
2495
2484
  id: z109.string(),
2496
- handle: z109.string().optional(),
2497
- avatarUrl: z109.string().optional(),
2498
- email: z109.string().optional(),
2485
+ designSystemId: z109.string(),
2486
+ state: z109.string(),
2487
+ supernovaDomain: z109.string(),
2488
+ customerDomain: z109.string().nullish(),
2489
+ error: z109.string().nullish(),
2490
+ errorCode: z109.string().nullish()
2491
+ });
2492
+ var IntegrationAuthType = z110.union([z110.literal("OAuth2"), z110.literal("PAT")]);
2493
+ var ExternalServiceType = z110.union([
2494
+ z110.literal("figma"),
2495
+ z110.literal("github"),
2496
+ z110.literal("azure"),
2497
+ z110.literal("gitlab"),
2498
+ z110.literal("bitbucket")
2499
+ ]);
2500
+ var IntegrationUserInfo = z110.object({
2501
+ id: z110.string(),
2502
+ handle: z110.string().optional(),
2503
+ avatarUrl: z110.string().optional(),
2504
+ email: z110.string().optional(),
2499
2505
  authType: IntegrationAuthType.optional(),
2500
- customUrl: z109.string().optional()
2506
+ customUrl: z110.string().optional()
2501
2507
  });
2502
- var UserLinkedIntegrations = z109.object({
2508
+ var UserLinkedIntegrations = z110.object({
2503
2509
  figma: IntegrationUserInfo.optional(),
2504
2510
  github: IntegrationUserInfo.array().optional(),
2505
2511
  azure: IntegrationUserInfo.array().optional(),
2506
2512
  gitlab: IntegrationUserInfo.array().optional(),
2507
2513
  bitbucket: IntegrationUserInfo.array().optional()
2508
2514
  });
2509
- var UserIdentity = z110.object({
2510
- id: z110.string(),
2511
- userId: z110.string()
2512
- });
2513
- var UserOnboardingDepartment = z111.enum(["Design", "Engineering", "Brand", "Other"]);
2514
- var UserOnboardingJobLevel = z111.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
2515
- var UserOnboarding = z111.object({
2516
- companyName: z111.string().optional(),
2517
- numberOfPeopleInOrg: z111.string().optional(),
2518
- numberOfPeopleInDesignTeam: z111.string().optional(),
2515
+ var UserIdentity = z111.object({
2516
+ id: z111.string(),
2517
+ userId: z111.string()
2518
+ });
2519
+ var UserOnboardingDepartment = z112.enum(["Design", "Engineering", "Brand", "Other"]);
2520
+ var UserOnboardingJobLevel = z112.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
2521
+ var UserOnboarding = z112.object({
2522
+ companyName: z112.string().optional(),
2523
+ numberOfPeopleInOrg: z112.string().optional(),
2524
+ numberOfPeopleInDesignTeam: z112.string().optional(),
2519
2525
  department: UserOnboardingDepartment.optional(),
2520
- jobTitle: z111.string().optional(),
2521
- phase: z111.string().optional(),
2526
+ jobTitle: z112.string().optional(),
2527
+ phase: z112.string().optional(),
2522
2528
  jobLevel: UserOnboardingJobLevel.optional()
2523
2529
  });
2524
- var UserProfile = z111.object({
2525
- name: z111.string(),
2526
- avatar: z111.string().optional(),
2527
- nickname: z111.string().optional(),
2530
+ var UserProfile = z112.object({
2531
+ name: z112.string(),
2532
+ avatar: z112.string().optional(),
2533
+ nickname: z112.string().optional(),
2528
2534
  onboarding: UserOnboarding.optional()
2529
2535
  });
2530
- var User = z112.object({
2531
- id: z112.string(),
2532
- email: z112.string(),
2533
- emailVerified: z112.boolean(),
2534
- createdAt: z112.date(),
2535
- trialExpiresAt: z112.date().optional(),
2536
+ var User = z113.object({
2537
+ id: z113.string(),
2538
+ email: z113.string(),
2539
+ emailVerified: z113.boolean(),
2540
+ createdAt: z113.date(),
2541
+ trialExpiresAt: z113.date().optional(),
2536
2542
  profile: UserProfile,
2537
2543
  linkedIntegrations: UserLinkedIntegrations.optional(),
2538
- loggedOutAt: z112.date().optional(),
2539
- isProtected: z112.boolean()
2544
+ loggedOutAt: z113.date().optional(),
2545
+ isProtected: z113.boolean()
2540
2546
  });
2541
- var NpmProxyToken = z113.object({
2542
- access: z113.string(),
2543
- expiresAt: z113.number()
2547
+ var NpmProxyToken = z114.object({
2548
+ access: z114.string(),
2549
+ expiresAt: z114.number()
2544
2550
  });
2545
- var SessionData = z113.object({
2546
- returnToUrl: z113.string().optional(),
2551
+ var SessionData = z114.object({
2552
+ returnToUrl: z114.string().optional(),
2547
2553
  npmProxyToken: NpmProxyToken.optional()
2548
2554
  });
2549
- var Session = z113.object({
2550
- id: z113.string(),
2551
- expiresAt: z113.date(),
2552
- userId: z113.string().nullable(),
2555
+ var Session = z114.object({
2556
+ id: z114.string(),
2557
+ expiresAt: z114.date(),
2558
+ userId: z114.string().nullable(),
2553
2559
  data: SessionData
2554
2560
  });
2555
- var AuthTokens = z113.object({
2556
- access: z113.string(),
2557
- refresh: z113.string()
2561
+ var AuthTokens = z114.object({
2562
+ access: z114.string(),
2563
+ refresh: z114.string()
2558
2564
  });
2559
- var UserSession = z113.object({
2565
+ var UserSession = z114.object({
2560
2566
  session: Session,
2561
2567
  user: User.nullable()
2562
2568
  });
2563
- var FlaggedFeature = z114.enum(["FigmaImporterV2"]);
2564
- var FeatureFlagMap = z114.record(FlaggedFeature, z114.boolean());
2565
- var FeatureFlag = z114.object({
2566
- id: z114.string(),
2569
+ var FlaggedFeature = z115.enum(["FigmaImporterV2"]);
2570
+ var FeatureFlagMap = z115.record(FlaggedFeature, z115.boolean());
2571
+ var FeatureFlag = z115.object({
2572
+ id: z115.string(),
2567
2573
  feature: FlaggedFeature,
2568
- createdAt: z114.date(),
2569
- enabled: z114.boolean()
2574
+ createdAt: z115.date(),
2575
+ enabled: z115.boolean()
2570
2576
  });
2571
2577
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
2572
2578
  OAuthProviderNames2["Figma"] = "figma";
@@ -2576,96 +2582,96 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
2576
2582
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
2577
2583
  return OAuthProviderNames2;
2578
2584
  })(OAuthProviderNames || {});
2579
- var OAuthProviderSchema = z115.nativeEnum(OAuthProviderNames);
2585
+ var OAuthProviderSchema = z116.nativeEnum(OAuthProviderNames);
2580
2586
  var OAuthProvider = OAuthProviderSchema.enum;
2581
- var ExternalOAuthRequest = z116.object({
2582
- id: z116.string(),
2583
- provider: OAuthProviderSchema,
2584
- userId: z116.string(),
2585
- state: z116.string(),
2586
- createdAt: z116.date()
2587
- });
2588
- var IntegrationTokenSchema = z117.object({
2587
+ var ExternalOAuthRequest = z117.object({
2589
2588
  id: z117.string(),
2590
2589
  provider: OAuthProviderSchema,
2591
- scope: z117.string(),
2592
2590
  userId: z117.string(),
2593
- accessToken: z117.string(),
2594
- refreshToken: z117.string(),
2595
- expiresAt: z117.date(),
2596
- externalUserId: z117.string().nullish()
2591
+ state: z117.string(),
2592
+ createdAt: z117.date()
2597
2593
  });
2598
- var DesignSystemVersionRoom = Entity.extend({
2599
- designSystemVersionId: z118.string(),
2600
- liveblocksId: z118.string()
2594
+ var IntegrationTokenSchema = z118.object({
2595
+ id: z118.string(),
2596
+ provider: OAuthProviderSchema,
2597
+ scope: z118.string(),
2598
+ userId: z118.string(),
2599
+ accessToken: z118.string(),
2600
+ refreshToken: z118.string(),
2601
+ expiresAt: z118.date(),
2602
+ externalUserId: z118.string().nullish()
2601
2603
  });
2602
- var DocumentationPageRoom = Entity.extend({
2604
+ var DesignSystemVersionRoom = Entity.extend({
2603
2605
  designSystemVersionId: z119.string(),
2604
- documentationPageId: z119.string(),
2605
2606
  liveblocksId: z119.string()
2606
2607
  });
2608
+ var DocumentationPageRoom = Entity.extend({
2609
+ designSystemVersionId: z120.string(),
2610
+ documentationPageId: z120.string(),
2611
+ liveblocksId: z120.string()
2612
+ });
2607
2613
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
2608
2614
  RoomTypeEnum2["DocumentationPage"] = "documentation-page";
2609
2615
  RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
2610
2616
  return RoomTypeEnum2;
2611
2617
  })(RoomTypeEnum || {});
2612
- var RoomTypeSchema = z120.nativeEnum(RoomTypeEnum);
2618
+ var RoomTypeSchema = z121.nativeEnum(RoomTypeEnum);
2613
2619
  var RoomType = RoomTypeSchema.enum;
2614
- var AnyRecord = z121.record(z121.any());
2620
+ var AnyRecord = z122.record(z122.any());
2615
2621
  var NpmPackageVersionDist = AnyRecord.and(
2616
- z121.object({
2617
- tarball: z121.string()
2622
+ z122.object({
2623
+ tarball: z122.string()
2618
2624
  })
2619
2625
  );
2620
2626
  var NpmPackageVersion = AnyRecord.and(
2621
- z121.object({
2627
+ z122.object({
2622
2628
  dist: NpmPackageVersionDist
2623
2629
  })
2624
2630
  );
2625
2631
  var NpmPackage = AnyRecord.and(
2626
- z121.object({
2627
- _id: z121.string(),
2628
- name: z121.string(),
2632
+ z122.object({
2633
+ _id: z122.string(),
2634
+ name: z122.string(),
2629
2635
  // e.g. "latest": "1.2.3"
2630
- "dist-tags": z121.record(z121.string(), z121.string()),
2636
+ "dist-tags": z122.record(z122.string(), z122.string()),
2631
2637
  // "1.2.3": {...}
2632
- versions: z121.record(NpmPackageVersion)
2638
+ versions: z122.record(NpmPackageVersion)
2633
2639
  })
2634
2640
  );
2635
- var NpmProxyTokenPayload = z122.object({
2636
- npmProxyRegistryConfigId: z122.string()
2637
- });
2638
- var PersonalAccessToken = z123.object({
2639
- id: z123.string(),
2640
- userId: z123.string(),
2641
- name: z123.string(),
2642
- token: z123.string(),
2643
- createdAt: z123.date(),
2644
- hidden: z123.boolean(),
2645
- workspaceId: z123.string().optional(),
2641
+ var NpmProxyTokenPayload = z123.object({
2642
+ npmProxyRegistryConfigId: z123.string()
2643
+ });
2644
+ var PersonalAccessToken = z124.object({
2645
+ id: z124.string(),
2646
+ userId: z124.string(),
2647
+ name: z124.string(),
2648
+ token: z124.string(),
2649
+ createdAt: z124.date(),
2650
+ hidden: z124.boolean(),
2651
+ workspaceId: z124.string().optional(),
2646
2652
  workspaceRole: WorkspaceRoleSchema.optional(),
2647
- expireAt: z123.date().optional(),
2648
- scope: z123.string().optional()
2653
+ expireAt: z124.date().optional(),
2654
+ scope: z124.string().optional()
2649
2655
  });
2650
- var ContentLoadInstruction = z124.object({
2651
- from: z124.string(),
2652
- to: z124.string(),
2653
- authorizationHeaderKvsId: z124.string().optional(),
2654
- timeout: z124.number().optional()
2656
+ var ContentLoadInstruction = z125.object({
2657
+ from: z125.string(),
2658
+ to: z125.string(),
2659
+ authorizationHeaderKvsId: z125.string().optional(),
2660
+ timeout: z125.number().optional()
2655
2661
  });
2656
- var ContentLoaderPayload = z124.object({
2657
- type: z124.literal("Single"),
2662
+ var ContentLoaderPayload = z125.object({
2663
+ type: z125.literal("Single"),
2658
2664
  instruction: ContentLoadInstruction
2659
2665
  }).or(
2660
- z124.object({
2661
- type: z124.literal("Multiple"),
2662
- loadingChunkSize: z124.number().optional(),
2663
- instructions: z124.array(ContentLoadInstruction)
2666
+ z125.object({
2667
+ type: z125.literal("Multiple"),
2668
+ loadingChunkSize: z125.number().optional(),
2669
+ instructions: z125.array(ContentLoadInstruction)
2664
2670
  })
2665
2671
  ).or(
2666
- z124.object({
2667
- type: z124.literal("S3"),
2668
- location: z124.string()
2672
+ z125.object({
2673
+ type: z125.literal("S3"),
2674
+ location: z125.string()
2669
2675
  })
2670
2676
  );
2671
2677
 
@@ -2678,22 +2684,22 @@ var DesignSystemDTO = DesignSystem.omit({
2678
2684
  });
2679
2685
 
2680
2686
  // src/api/dto/documentation-v1.ts
2681
- import { z as z125 } from "zod";
2687
+ import { z as z126 } from "zod";
2682
2688
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
2683
2689
  data: true,
2684
2690
  meta: true,
2685
2691
  parentPersistentId: true,
2686
2692
  sortOrder: true
2687
2693
  }).extend(DocumentationPageV1.shape.data.shape).extend({
2688
- title: z125.string(),
2689
- path: z125.string()
2694
+ title: z126.string(),
2695
+ path: z126.string()
2690
2696
  });
2691
2697
 
2692
2698
  // src/api/dto/documentation-v2.ts
2693
- import { z as z127 } from "zod";
2699
+ import { z as z128 } from "zod";
2694
2700
 
2695
2701
  // src/api/dto/documentation.ts
2696
- import { z as z126 } from "zod";
2702
+ import { z as z127 } from "zod";
2697
2703
  var DocumentationGroupStructureDTO = ElementGroup.omit({
2698
2704
  sortOrder: true,
2699
2705
  parentPersistentId: true,
@@ -2703,11 +2709,11 @@ var DocumentationGroupStructureDTO = ElementGroup.omit({
2703
2709
  data: true,
2704
2710
  shortPersistentId: true
2705
2711
  }).extend({
2706
- title: z126.string(),
2707
- isRoot: z126.boolean(),
2708
- childrenIds: z126.array(z126.string()),
2712
+ title: z127.string(),
2713
+ isRoot: z127.boolean(),
2714
+ childrenIds: z127.array(z127.string()),
2709
2715
  groupBehavior: DocumentationGroupBehavior,
2710
- shortPersistentId: z126.string()
2716
+ shortPersistentId: z127.string()
2711
2717
  });
2712
2718
  var DocumentationGroupDTO = DocumentationGroupStructureDTO.extend({
2713
2719
  configuration: DocumentationItemConfiguration
@@ -2720,67 +2726,73 @@ var DocumentationPageStructureV2DTO = DocumentationPageV2.omit({
2720
2726
  parentPersistentId: true,
2721
2727
  sortOrder: true
2722
2728
  }).extend({
2723
- title: z127.string(),
2724
- path: z127.string()
2729
+ title: z128.string(),
2730
+ path: z128.string()
2725
2731
  });
2726
2732
  var DocumentationPageV2DTO = DocumentationPageStructureV2DTO.extend(DocumentationPageV2.shape.data.shape);
2727
- var DocumentationHierarchyV2DTO = z127.object({
2728
- pages: z127.array(DocumentationPageStructureV2DTO),
2729
- groups: z127.array(DocumentationGroupStructureDTO)
2733
+ var DocumentationHierarchyV2DTO = z128.object({
2734
+ pages: z128.array(DocumentationPageStructureV2DTO),
2735
+ groups: z128.array(DocumentationGroupStructureDTO)
2730
2736
  });
2731
2737
 
2732
- // src/api/requests/post-bulk-doc-page-elements.ts
2733
- import { z as z128 } from "zod";
2734
- var CreateBulkElementsInput = z128.object({
2735
- parentPersistentId: z128.string().uuid(),
2736
- persistentId: z128.string().uuid(),
2737
- title: z128.string(),
2738
+ // src/api/requests/elements/elements-transaction-v2.ts
2739
+ import { z as z129 } from "zod";
2740
+ var DTOCreateDocumentationPageInput = z129.object({
2741
+ parentPersistentId: z129.string().uuid(),
2742
+ persistentId: z129.string().uuid(),
2743
+ title: z129.string(),
2738
2744
  configuration: DocumentationItemConfiguration.optional(),
2739
- afterPersistentId: z128.string().uuid().optional()
2745
+ afterPersistentId: z129.string().uuid().optional()
2740
2746
  });
2741
- var UpdateBulkElementsInput = z128.object({
2742
- id: z128.string(),
2743
- title: z128.string().optional(),
2747
+ var DTOUpdateDocumentationPageInput = z129.object({
2748
+ id: z129.string(),
2749
+ title: z129.string().optional(),
2744
2750
  configuration: DocumentationItemConfiguration.optional(),
2745
- parentPersistentId: z128.string().optional(),
2746
- afterPersistentId: z128.string().optional()
2747
- });
2748
- var DeleteBulkElementsInput = z128.array(z128.string());
2749
- var DuplicateBulkElementsInput = z128.object({
2750
- id: z128.string(),
2751
- persistentId: z128.string().uuid(),
2752
- parentPersistentId: z128.string().uuid(),
2753
- afterPersistentId: z128.string().uuid().optional()
2754
- });
2755
- var BulkEditDocPageElementsInput = z128.object({
2756
- documentationPages: z128.object({
2757
- create: z128.array(CreateBulkElementsInput).optional(),
2758
- update: z128.array(UpdateBulkElementsInput).optional(),
2759
- delete: DeleteBulkElementsInput.optional(),
2760
- duplicate: z128.array(DuplicateBulkElementsInput).optional()
2761
- })
2751
+ parentPersistentId: z129.string().optional(),
2752
+ afterPersistentId: z129.string().optional()
2753
+ });
2754
+ var DTODuplicateDocumentationPageInput = z129.object({
2755
+ id: z129.string(),
2756
+ persistentId: z129.string().uuid(),
2757
+ parentPersistentId: z129.string().uuid(),
2758
+ afterPersistentId: z129.string().uuid().optional()
2759
+ });
2760
+ var DTODocumentationTransactionInput = z129.object({
2761
+ create: z129.array(DTOCreateDocumentationPageInput).optional(),
2762
+ update: z129.array(DTOUpdateDocumentationPageInput).optional(),
2763
+ duplicate: z129.array(DTODuplicateDocumentationPageInput).optional(),
2764
+ delete: z129.array(z129.string()).optional()
2765
+ });
2766
+ var DTOElementsTransactionInput = z129.object({
2767
+ documentationPages: DTODocumentationTransactionInput
2762
2768
  });
2763
2769
 
2764
2770
  // src/api/requests/post-liveblocks-auth.ts
2765
- import { z as z129 } from "zod";
2766
- var PostLiveblocksAuth = z129.object({
2767
- room: z129.string()
2771
+ import { z as z130 } from "zod";
2772
+ var PostLiveblocksAuth = z130.object({
2773
+ room: z130.string()
2768
2774
  });
2769
2775
 
2770
2776
  // src/api/responses/get-block-definitions.ts
2771
- import { z as z130 } from "zod";
2772
- var GetBlockDefinitionsResponse = z130.object({
2773
- definitions: z130.array(PageBlockDefinition)
2777
+ import { z as z131 } from "zod";
2778
+ var GetBlockDefinitionsResponse = z131.object({
2779
+ definitions: z131.array(PageBlockDefinition)
2774
2780
  });
2775
2781
 
2776
2782
  // src/design-system-content/documentation-hierarchy.ts
2777
- function documentationHierarchyToYjs(documentationHierarchy, doc) {
2783
+ function documentationHierarchyToYjs(doc, documentationHierarchy, itemsToDelete) {
2778
2784
  doc.transact((trx) => {
2779
- const pagesMap = trx.doc.getMap("documentationPages");
2785
+ const pagesMap = getPagesYMap(trx.doc);
2786
+ itemsToDelete.pagePersistentIdsToDelete.forEach((persistentId) => {
2787
+ pagesMap.delete(persistentId);
2788
+ });
2780
2789
  documentationHierarchy.pages.forEach((page) => {
2781
2790
  pagesMap.set(page.persistentId, page);
2782
2791
  });
2783
- const groupsMap = trx.doc.getMap("documentationGroups");
2792
+ const groupsMap = getGroupsYMap(trx.doc);
2793
+ itemsToDelete.groupPersistentIdsToDelete.forEach((persistentId) => {
2794
+ groupsMap.delete(persistentId);
2795
+ });
2784
2796
  documentationHierarchy.groups.forEach((group) => {
2785
2797
  groupsMap.set(group.persistentId, group);
2786
2798
  });
@@ -2788,8 +2800,8 @@ function documentationHierarchyToYjs(documentationHierarchy, doc) {
2788
2800
  return doc;
2789
2801
  }
2790
2802
  function yjsToDocumentationHierarchy(doc) {
2791
- const pagesMap = doc.getMap("documentationPages");
2792
- const groupsMap = doc.getMap("documentationGroups");
2803
+ const pagesMap = getPagesYMap(doc);
2804
+ const groupsMap = getGroupsYMap(doc);
2793
2805
  const pages = [];
2794
2806
  pagesMap.forEach((page) => {
2795
2807
  pages.push(DocumentationPageStructureV2DTO.parse(page));
@@ -2803,9 +2815,15 @@ function yjsToDocumentationHierarchy(doc) {
2803
2815
  groups
2804
2816
  };
2805
2817
  }
2818
+ function getPagesYMap(doc) {
2819
+ return doc.getMap("documentationPages");
2820
+ }
2821
+ function getGroupsYMap(doc) {
2822
+ return doc.getMap("documentationGroups");
2823
+ }
2806
2824
 
2807
2825
  // src/design-system-content/item-configuration.ts
2808
- function itemConfigurationToYjs(item, yDoc) {
2826
+ function itemConfigurationToYjs(yDoc, item) {
2809
2827
  yDoc.transact((trx) => {
2810
2828
  const header = item.header;
2811
2829
  if (header) {
@@ -2848,16 +2866,16 @@ function yjsToItemConfiguration(yDoc) {
2848
2866
  }
2849
2867
 
2850
2868
  // src/docs-editor/model/block.ts
2851
- import { z as z131 } from "zod";
2852
- var PageBlockEditorModel = z131.object({
2853
- id: z131.string(),
2869
+ import { z as z132 } from "zod";
2870
+ var PageBlockEditorModel = z132.object({
2871
+ id: z132.string(),
2854
2872
  data: PageBlockDataV2
2855
2873
  });
2856
2874
 
2857
2875
  // src/docs-editor/model/page.ts
2858
- import { z as z132 } from "zod";
2859
- var DocumentationPageEditorModel = z132.object({
2860
- blocks: z132.array(PageBlockEditorModel)
2876
+ import { z as z133 } from "zod";
2877
+ var DocumentationPageEditorModel = z133.object({
2878
+ blocks: z133.array(PageBlockEditorModel)
2861
2879
  });
2862
2880
 
2863
2881
  // src/docs-editor/prosemirror/schema.ts
@@ -6490,7 +6508,7 @@ var blocks = [
6490
6508
 
6491
6509
  // src/docs-editor/prosemirror-to-blocks.ts
6492
6510
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
6493
- import { z as z133 } from "zod";
6511
+ import { z as z134 } from "zod";
6494
6512
  function yDocToPage(yDoc, definitions) {
6495
6513
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
6496
6514
  }
@@ -6502,7 +6520,7 @@ function prosemirrorDocToPage(prosemirrorDoc, definitions) {
6502
6520
  const definitionsById = mapByUnique(definitions, (d) => d.id);
6503
6521
  return {
6504
6522
  blocks: (prosemirrorDoc.content ?? []).map((prosemirrorNode) => {
6505
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z133.string());
6523
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z134.string());
6506
6524
  if (!definitionId) {
6507
6525
  console.warn(
6508
6526
  `definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`
@@ -6544,7 +6562,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
6544
6562
  if (!id)
6545
6563
  return null;
6546
6564
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
6547
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z133.string().optional()));
6565
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z134.string().optional()));
6548
6566
  return {
6549
6567
  // TODO Artem: indent
6550
6568
  id,
@@ -6644,8 +6662,8 @@ function parseRichTextAttribute(mark) {
6644
6662
  case "code":
6645
6663
  return { type: "Code" };
6646
6664
  case "link":
6647
- const itemId = getProsemirrorAttribute(mark, "itemId", z133.string().optional());
6648
- const href = getProsemirrorAttribute(mark, "href", z133.string().optional());
6665
+ const itemId = getProsemirrorAttribute(mark, "itemId", z134.string().optional());
6666
+ const href = getProsemirrorAttribute(mark, "href", z134.string().optional());
6649
6667
  return {
6650
6668
  type: "Link",
6651
6669
  openInNewWindow: mark.attrs?.target !== "_self",
@@ -6660,7 +6678,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
6660
6678
  if (!id)
6661
6679
  return null;
6662
6680
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
6663
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z133.boolean().optional()) !== false;
6681
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z134.boolean().optional()) !== false;
6664
6682
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
6665
6683
  if (!tableChild) {
6666
6684
  return emptyTable(id, variantId, 0);
@@ -6706,9 +6724,9 @@ function parseAsTableCell(prosemirrorNode) {
6706
6724
  const id = getProsemirrorBlockId(prosemirrorNode);
6707
6725
  if (!id)
6708
6726
  return null;
6709
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z133.string().optional());
6727
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z134.string().optional());
6710
6728
  let columnWidth;
6711
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z133.array(z133.number()).optional());
6729
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z134.array(z134.number()).optional());
6712
6730
  if (columnWidthArray) {
6713
6731
  columnWidth = columnWidthArray[0];
6714
6732
  }
@@ -6742,7 +6760,7 @@ function parseAsTableNode(prosemirrorNode) {
6742
6760
  value: parseRichText(prosemirrorNode.content ?? [])
6743
6761
  };
6744
6762
  case "image":
6745
- const url = getProsemirrorAttribute(prosemirrorNode, "src", z133.string().optional());
6763
+ const url = getProsemirrorAttribute(prosemirrorNode, "src", z134.string().optional());
6746
6764
  if (!url)
6747
6765
  return null;
6748
6766
  return {
@@ -6836,7 +6854,7 @@ function parseAsCustomBlock(prosemirrorNode, definition) {
6836
6854
  };
6837
6855
  }
6838
6856
  function parseBlockItems(prosemirrorNode, definition) {
6839
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z133.string());
6857
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z134.string());
6840
6858
  if (!itemsString)
6841
6859
  return null;
6842
6860
  const itemsJson = JSON.parse(itemsString);
@@ -6848,11 +6866,11 @@ function parseBlockItems(prosemirrorNode, definition) {
6848
6866
  }
6849
6867
  function parseAppearance(prosemirrorNode) {
6850
6868
  const appearance = {};
6851
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z133.number().optional());
6869
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z134.number().optional());
6852
6870
  if (columns) {
6853
6871
  appearance.numberOfColumns = columns;
6854
6872
  }
6855
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z133.string().optional());
6873
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z134.string().optional());
6856
6874
  if (backgroundColor) {
6857
6875
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
6858
6876
  if (parsedColor.success) {
@@ -6943,13 +6961,13 @@ function valueSchemaForPropertyType(type) {
6943
6961
  }
6944
6962
  }
6945
6963
  function getProsemirrorBlockId(prosemirrorNode) {
6946
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z133.string());
6964
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z134.string());
6947
6965
  if (!id)
6948
6966
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
6949
6967
  return id;
6950
6968
  }
6951
6969
  function getProsemirrorBlockVariantId(prosemirrorNode) {
6952
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z133.string()));
6970
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z134.string()));
6953
6971
  }
6954
6972
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
6955
6973
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -6974,9 +6992,11 @@ function mapByUnique(items, keyFn) {
6974
6992
  export {
6975
6993
  BlockDefinitionUtils,
6976
6994
  BlockParsingUtils,
6977
- BulkEditDocPageElementsInput,
6978
- CreateBulkElementsInput,
6979
- DeleteBulkElementsInput,
6995
+ DTOCreateDocumentationPageInput,
6996
+ DTODocumentationTransactionInput,
6997
+ DTODuplicateDocumentationPageInput,
6998
+ DTOElementsTransactionInput,
6999
+ DTOUpdateDocumentationPageInput,
6980
7000
  DesignSystemDTO,
6981
7001
  DocumentationGroupDTO,
6982
7002
  DocumentationGroupStructureDTO,
@@ -6985,11 +7005,9 @@ export {
6985
7005
  DocumentationPageStructureV2DTO,
6986
7006
  DocumentationPageV1DTO,
6987
7007
  DocumentationPageV2DTO,
6988
- DuplicateBulkElementsInput,
6989
7008
  GetBlockDefinitionsResponse,
6990
7009
  PageBlockEditorModel,
6991
7010
  PostLiveblocksAuth,
6992
- UpdateBulkElementsInput,
6993
7011
  blockDefinitionForBlock,
6994
7012
  blockToProsemirrorNode,
6995
7013
  documentationHierarchyToYjs,