@supernova-studio/client 0.47.38 → 0.47.40

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
@@ -20,18 +20,18 @@ import { z as z11 } from "zod";
20
20
  import { z as z12 } from "zod";
21
21
  import { z as z13 } from "zod";
22
22
  import { z as z14 } from "zod";
23
- import { z as z119 } from "zod";
23
+ import { z as z120 } from "zod";
24
24
  import { z as z17 } from "zod";
25
25
  import { z as z15 } from "zod";
26
26
  import { z as z16 } from "zod";
27
+ import { z as z119 } from "zod";
27
28
  import { z as z118 } from "zod";
28
- import { z as z117 } from "zod";
29
29
  import { z as z18 } from "zod";
30
30
  import { z as z19 } from "zod";
31
31
  import { z as z20 } from "zod";
32
32
  import { z as z21 } from "zod";
33
+ import { z as z82 } from "zod";
33
34
  import { z as z81 } from "zod";
34
- import { z as z80 } from "zod";
35
35
  import { z as z22 } from "zod";
36
36
  import { z as z24 } from "zod";
37
37
  import { z as z23 } from "zod";
@@ -87,15 +87,15 @@ import { z as z72 } from "zod";
87
87
  import { z as z74 } from "zod";
88
88
  import { z as z75 } from "zod";
89
89
  import { z as z76 } from "zod";
90
- import { z as z78 } from "zod";
91
90
  import { z as z77 } from "zod";
92
91
  import { z as z79 } from "zod";
93
- import { z as z82 } from "zod";
92
+ import { z as z78 } from "zod";
93
+ import { z as z80 } from "zod";
94
94
  import { z as z83 } from "zod";
95
- import { z as z86 } from "zod";
96
- import { z as z85 } from "zod";
97
95
  import { z as z84 } from "zod";
98
96
  import { z as z87 } from "zod";
97
+ import { z as z86 } from "zod";
98
+ import { z as z85 } from "zod";
99
99
  import { z as z88 } from "zod";
100
100
  import { z as z89 } from "zod";
101
101
  import { z as z90 } from "zod";
@@ -104,37 +104,37 @@ import { z as z92 } from "zod";
104
104
  import { z as z93 } from "zod";
105
105
  import { z as z94 } from "zod";
106
106
  import { z as z95 } from "zod";
107
- import { z as z103 } from "zod";
108
107
  import { z as z96 } from "zod";
109
- import { z as z98 } from "zod";
108
+ import { z as z104 } from "zod";
110
109
  import { z as z97 } from "zod";
111
110
  import { z as z99 } from "zod";
111
+ import { z as z98 } from "zod";
112
112
  import { z as z100 } from "zod";
113
113
  import { z as z101 } from "zod";
114
114
  import { z as z102 } from "zod";
115
- import { z as z104 } from "zod";
115
+ import { z as z103 } from "zod";
116
116
  import { z as z105 } from "zod";
117
117
  import { z as z106 } from "zod";
118
- import { z as z110 } from "zod";
119
- import IPCIDR from "ip-cidr";
120
- import { z as z109 } from "zod";
121
118
  import { z as z107 } from "zod";
122
- import { z as z108 } from "zod";
123
119
  import { z as z111 } from "zod";
120
+ import IPCIDR from "ip-cidr";
121
+ import { z as z110 } from "zod";
122
+ import { z as z108 } from "zod";
123
+ import { z as z109 } from "zod";
124
124
  import { z as z112 } from "zod";
125
125
  import { z as z113 } from "zod";
126
126
  import { z as z114 } from "zod";
127
127
  import { z as z115 } from "zod";
128
128
  import { z as z116 } from "zod";
129
+ import { z as z117 } from "zod";
130
+ import { z as z127 } from "zod";
129
131
  import { z as z126 } from "zod";
130
- import { z as z125 } from "zod";
131
- import { z as z120 } from "zod";
132
132
  import { z as z121 } from "zod";
133
133
  import { z as z122 } from "zod";
134
134
  import { z as z123 } from "zod";
135
135
  import { z as z124 } from "zod";
136
- import { z as z139 } from "zod";
137
- import { z as z127 } from "zod";
136
+ import { z as z125 } from "zod";
137
+ import { z as z140 } from "zod";
138
138
  import { z as z128 } from "zod";
139
139
  import { z as z129 } from "zod";
140
140
  import { z as z130 } from "zod";
@@ -143,32 +143,33 @@ import { z as z132 } from "zod";
143
143
  import { z as z133 } from "zod";
144
144
  import { z as z134 } from "zod";
145
145
  import { z as z135 } from "zod";
146
+ import { z as z136 } from "zod";
147
+ import { z as z139 } from "zod";
146
148
  import { z as z138 } from "zod";
147
149
  import { z as z137 } from "zod";
148
- import { z as z136 } from "zod";
149
150
  import slugifyImplementation from "@sindresorhus/slugify";
150
- import { z as z140 } from "zod";
151
151
  import { z as z141 } from "zod";
152
152
  import { z as z142 } from "zod";
153
153
  import { z as z143 } from "zod";
154
154
  import { z as z144 } from "zod";
155
155
  import { z as z145 } from "zod";
156
156
  import { z as z146 } from "zod";
157
- import { z as z148 } from "zod";
158
157
  import { z as z147 } from "zod";
159
158
  import { z as z149 } from "zod";
159
+ import { z as z148 } from "zod";
160
160
  import { z as z150 } from "zod";
161
161
  import { z as z151 } from "zod";
162
162
  import { z as z152 } from "zod";
163
163
  import { z as z153 } from "zod";
164
- import { z as z161 } from "zod";
165
- import { z as z155 } from "zod";
166
164
  import { z as z154 } from "zod";
165
+ import { z as z162 } from "zod";
167
166
  import { z as z156 } from "zod";
167
+ import { z as z155 } from "zod";
168
168
  import { z as z157 } from "zod";
169
169
  import { z as z158 } from "zod";
170
170
  import { z as z159 } from "zod";
171
171
  import { z as z160 } from "zod";
172
+ import { z as z161 } from "zod";
172
173
  var AssetDeleteScheduleStatus = z.enum(["InProgress", "Pending"]);
173
174
  var AssetDeleteSchedule = z.object({
174
175
  id: z.string(),
@@ -1552,11 +1553,28 @@ var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequire
1552
1553
  oldBlocks: z74.array(PageBlockV1).optional()
1553
1554
  })
1554
1555
  });
1555
- var FigmaFileStructureOrigin = z75.object({
1556
- sourceId: z75.string(),
1557
- fileId: z75.string().optional()
1556
+ var DesignElementSnapshot = z75.object({
1557
+ id: z75.string(),
1558
+ // Scope
1559
+ designSystemVersionId: z75.string(),
1560
+ // Metadata about the element that needs to be indexed in the db
1561
+ elementId: z75.string(),
1562
+ elementType: DesignElementType,
1563
+ elementPersistentId: z75.string(),
1564
+ elementParentPersistentId: z75.string(),
1565
+ elementName: z75.string(),
1566
+ // Computed hash to compare to current state of the element
1567
+ hash: z75.string(),
1568
+ // Where is the element's full shapshot stored
1569
+ storageKey: z75.string(),
1570
+ // When the element was snapshotted
1571
+ createdAt: z75.coerce.date()
1572
+ });
1573
+ var FigmaFileStructureOrigin = z76.object({
1574
+ sourceId: z76.string(),
1575
+ fileId: z76.string().optional()
1558
1576
  });
1559
- var FigmaFileStructureData = z75.object({
1577
+ var FigmaFileStructureData = z76.object({
1560
1578
  rootNode: FigmaFileStructureNode,
1561
1579
  assetsInFile: FigmaFileStructureStatistics
1562
1580
  });
@@ -1564,17 +1582,17 @@ var FigmaFileStructure = DesignElementBase.extend({
1564
1582
  origin: FigmaFileStructureOrigin,
1565
1583
  data: FigmaFileStructureData
1566
1584
  });
1567
- var FigmaNodeReferenceOrigin = z76.object({
1568
- sourceId: z76.string(),
1569
- parentName: z76.string().optional()
1585
+ var FigmaNodeReferenceOrigin = z77.object({
1586
+ sourceId: z77.string(),
1587
+ parentName: z77.string().optional()
1570
1588
  });
1571
1589
  var FigmaNodeReference = DesignElementBase.extend({
1572
1590
  data: FigmaNodeReferenceData,
1573
1591
  origin: FigmaNodeReferenceOrigin
1574
1592
  });
1575
- var DesignTokenOriginPart = z77.object({
1576
- referenceOriginId: z77.string().optional(),
1577
- referencePersistentId: z77.string().optional()
1593
+ var DesignTokenOriginPart = z78.object({
1594
+ referenceOriginId: z78.string().optional(),
1595
+ referencePersistentId: z78.string().optional()
1578
1596
  });
1579
1597
  var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
1580
1598
  var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
@@ -1586,111 +1604,111 @@ var UpdateDesignTokenBase = DesignTokenBase.omit({
1586
1604
  brandPersistentId: true,
1587
1605
  designSystemVersionId: true
1588
1606
  });
1589
- var BlurTokenTypedData = z77.object({
1590
- type: z77.literal("Blur"),
1607
+ var BlurTokenTypedData = z78.object({
1608
+ type: z78.literal("Blur"),
1591
1609
  data: BlurTokenData
1592
1610
  });
1593
- var ColorTokenTypedData = z77.object({
1594
- type: z77.literal("Color"),
1611
+ var ColorTokenTypedData = z78.object({
1612
+ type: z78.literal("Color"),
1595
1613
  data: ColorTokenData
1596
1614
  });
1597
- var GradientTokenTypedData = z77.object({
1598
- type: z77.literal("Gradient"),
1615
+ var GradientTokenTypedData = z78.object({
1616
+ type: z78.literal("Gradient"),
1599
1617
  data: GradientTokenData
1600
1618
  });
1601
- var OpacityTokenTypedData = z77.object({
1602
- type: z77.literal("Opacity"),
1619
+ var OpacityTokenTypedData = z78.object({
1620
+ type: z78.literal("Opacity"),
1603
1621
  data: OpacityTokenData
1604
1622
  });
1605
- var ShadowTokenTypedData = z77.object({
1606
- type: z77.literal("Shadow"),
1623
+ var ShadowTokenTypedData = z78.object({
1624
+ type: z78.literal("Shadow"),
1607
1625
  data: ShadowTokenData
1608
1626
  });
1609
- var TypographyTokenTypedData = z77.object({
1610
- type: z77.literal("Typography"),
1627
+ var TypographyTokenTypedData = z78.object({
1628
+ type: z78.literal("Typography"),
1611
1629
  data: TypographyTokenData
1612
1630
  });
1613
- var StringTokenTypedData = z77.object({
1614
- type: z77.literal("String"),
1631
+ var StringTokenTypedData = z78.object({
1632
+ type: z78.literal("String"),
1615
1633
  data: StringTokenData
1616
1634
  });
1617
- var DimensionTokenTypedData = z77.object({
1618
- type: z77.literal("Dimension"),
1635
+ var DimensionTokenTypedData = z78.object({
1636
+ type: z78.literal("Dimension"),
1619
1637
  data: DimensionTokenData
1620
1638
  });
1621
- var FontSizeTokenTypedData = z77.object({
1622
- type: z77.literal("FontSize"),
1639
+ var FontSizeTokenTypedData = z78.object({
1640
+ type: z78.literal("FontSize"),
1623
1641
  data: FontSizeTokenData
1624
1642
  });
1625
- var FontFamilyTokenTypedData = z77.object({
1626
- type: z77.literal("FontFamily"),
1643
+ var FontFamilyTokenTypedData = z78.object({
1644
+ type: z78.literal("FontFamily"),
1627
1645
  data: FontFamilyTokenData
1628
1646
  });
1629
- var FontWeightTokenTypedData = z77.object({
1630
- type: z77.literal("FontWeight"),
1647
+ var FontWeightTokenTypedData = z78.object({
1648
+ type: z78.literal("FontWeight"),
1631
1649
  data: FontWeightTokenData
1632
1650
  });
1633
- var LetterSpacingTokenTypedData = z77.object({
1634
- type: z77.literal("LetterSpacing"),
1651
+ var LetterSpacingTokenTypedData = z78.object({
1652
+ type: z78.literal("LetterSpacing"),
1635
1653
  data: LetterSpacingTokenData
1636
1654
  });
1637
- var LineHeightTokenTypedData = z77.object({
1638
- type: z77.literal("LineHeight"),
1655
+ var LineHeightTokenTypedData = z78.object({
1656
+ type: z78.literal("LineHeight"),
1639
1657
  data: LineHeightTokenData
1640
1658
  });
1641
- var ParagraphSpacingTokenTypedData = z77.object({
1642
- type: z77.literal("ParagraphSpacing"),
1659
+ var ParagraphSpacingTokenTypedData = z78.object({
1660
+ type: z78.literal("ParagraphSpacing"),
1643
1661
  data: ParagraphSpacingTokenData
1644
1662
  });
1645
- var TextCaseTokenTypedData = z77.object({
1646
- type: z77.literal("TextCase"),
1663
+ var TextCaseTokenTypedData = z78.object({
1664
+ type: z78.literal("TextCase"),
1647
1665
  data: TextCaseTokenData
1648
1666
  });
1649
- var TextDecorationTokenTypedData = z77.object({
1650
- type: z77.literal("TextDecoration"),
1667
+ var TextDecorationTokenTypedData = z78.object({
1668
+ type: z78.literal("TextDecoration"),
1651
1669
  data: TextDecorationTokenData
1652
1670
  });
1653
- var BorderRadiusTokenTypedData = z77.object({
1654
- type: z77.literal("BorderRadius"),
1671
+ var BorderRadiusTokenTypedData = z78.object({
1672
+ type: z78.literal("BorderRadius"),
1655
1673
  data: BorderRadiusTokenData
1656
1674
  });
1657
- var BorderWidthTokenTypedData = z77.object({
1658
- type: z77.literal("BorderWidth"),
1675
+ var BorderWidthTokenTypedData = z78.object({
1676
+ type: z78.literal("BorderWidth"),
1659
1677
  data: BorderWidthTokenData
1660
1678
  });
1661
- var BorderTypedData = z77.object({
1662
- type: z77.literal("Border"),
1679
+ var BorderTypedData = z78.object({
1680
+ type: z78.literal("Border"),
1663
1681
  data: BorderTokenData
1664
1682
  });
1665
- var ProductCopyTypedData = z77.object({
1666
- type: z77.literal("ProductCopy"),
1683
+ var ProductCopyTypedData = z78.object({
1684
+ type: z78.literal("ProductCopy"),
1667
1685
  data: ProductCopyTokenData
1668
1686
  });
1669
- var SizeTypedData = z77.object({
1670
- type: z77.literal("Size"),
1687
+ var SizeTypedData = z78.object({
1688
+ type: z78.literal("Size"),
1671
1689
  data: SizeTokenData
1672
1690
  });
1673
- var SpaceTypedData = z77.object({
1674
- type: z77.literal("Space"),
1691
+ var SpaceTypedData = z78.object({
1692
+ type: z78.literal("Space"),
1675
1693
  data: SpaceTokenData
1676
1694
  });
1677
- var VisibilityTypedData = z77.object({
1678
- type: z77.literal("Visibility"),
1695
+ var VisibilityTypedData = z78.object({
1696
+ type: z78.literal("Visibility"),
1679
1697
  data: VisibilityTokenData
1680
1698
  });
1681
- var ZIndexTypedData = z77.object({
1682
- type: z77.literal("ZIndex"),
1699
+ var ZIndexTypedData = z78.object({
1700
+ type: z78.literal("ZIndex"),
1683
1701
  data: ZIndexTokenData
1684
1702
  });
1685
- var DurationTypedData = z77.object({
1686
- type: z77.literal("Duration"),
1703
+ var DurationTypedData = z78.object({
1704
+ type: z78.literal("Duration"),
1687
1705
  data: DurationTokenData
1688
1706
  });
1689
- var FontTypedData = z77.object({
1690
- type: z77.literal("Font"),
1691
- data: z77.record(z77.any())
1707
+ var FontTypedData = z78.object({
1708
+ type: z78.literal("Font"),
1709
+ data: z78.record(z78.any())
1692
1710
  });
1693
- var DesignTokenTypedData = z77.discriminatedUnion("type", [
1711
+ var DesignTokenTypedData = z78.discriminatedUnion("type", [
1694
1712
  BlurTokenTypedData,
1695
1713
  BorderRadiusTokenTypedData,
1696
1714
  BorderWidthTokenTypedData,
@@ -1723,34 +1741,34 @@ var CreateDesignToken = DesignTokenTypedData.and(CreateDesignTokenBase);
1723
1741
  var ThemeOverrideOriginPart = DesignTokenOriginPart;
1724
1742
  var ThemeOverrideOrigin = DesignTokenOrigin;
1725
1743
  var ThemeOverride = DesignTokenTypedData.and(
1726
- z78.object({
1727
- tokenPersistentId: z78.string(),
1744
+ z79.object({
1745
+ tokenPersistentId: z79.string(),
1728
1746
  origin: ThemeOverrideOrigin.optional().nullable().transform((v) => v ?? void 0)
1729
1747
  })
1730
1748
  );
1731
- var ThemeElementData = z78.object({
1732
- value: z78.object({
1733
- overrides: z78.array(ThemeOverride)
1749
+ var ThemeElementData = z79.object({
1750
+ value: z79.object({
1751
+ overrides: z79.array(ThemeOverride)
1734
1752
  })
1735
1753
  });
1736
- var ThemeOriginPart = z78.object({});
1737
- var ThemeOriginObject = z78.object({
1738
- id: z78.string(),
1739
- name: z78.string()
1754
+ var ThemeOriginPart = z79.object({});
1755
+ var ThemeOriginObject = z79.object({
1756
+ id: z79.string(),
1757
+ name: z79.string()
1740
1758
  });
1741
- var ThemeOriginSource = z78.object({
1742
- sourceId: z78.string(),
1743
- sourceObjects: z78.array(ThemeOriginObject)
1759
+ var ThemeOriginSource = z79.object({
1760
+ sourceId: z79.string(),
1761
+ sourceObjects: z79.array(ThemeOriginObject)
1744
1762
  });
1745
- var ThemeOrigin = z78.object({
1746
- sources: z78.array(ThemeOriginSource)
1763
+ var ThemeOrigin = z79.object({
1764
+ sources: z79.array(ThemeOriginSource)
1747
1765
  });
1748
1766
  var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
1749
1767
  origin: ThemeOrigin.optional(),
1750
- overrides: z78.array(ThemeOverride),
1751
- codeName: z78.string()
1768
+ overrides: z79.array(ThemeOverride),
1769
+ codeName: z79.string()
1752
1770
  });
1753
- var ImportWarningType = z79.enum([
1771
+ var ImportWarningType = z80.enum([
1754
1772
  "NoVersionFound",
1755
1773
  "UnsupportedFill",
1756
1774
  "UnsupportedStroke",
@@ -1765,25 +1783,25 @@ var ImportWarningType = z79.enum([
1765
1783
  "DuplicateImportedStylePath",
1766
1784
  "NoUnpublishedStyles"
1767
1785
  ]);
1768
- var ImportWarning = z79.object({
1786
+ var ImportWarning = z80.object({
1769
1787
  warningType: ImportWarningType,
1770
- componentId: z79.string().optional(),
1771
- componentName: z79.string().optional(),
1772
- styleId: z79.string().optional(),
1773
- styleName: z79.string().optional(),
1774
- unsupportedStyleValueType: z79.string().optional()
1788
+ componentId: z80.string().optional(),
1789
+ componentName: z80.string().optional(),
1790
+ styleId: z80.string().optional(),
1791
+ styleName: z80.string().optional(),
1792
+ unsupportedStyleValueType: z80.string().optional()
1775
1793
  });
1776
- var FileStructureStats = z80.object({
1794
+ var FileStructureStats = z81.object({
1777
1795
  frames: zeroNumberByDefault(),
1778
1796
  components: zeroNumberByDefault(),
1779
1797
  componentSets: zeroNumberByDefault()
1780
1798
  });
1781
1799
  var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
1782
1800
  // Backward compatibility
1783
- z80.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
1801
+ z81.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
1784
1802
  );
1785
- var SourceImportSummaryByTokenType = z80.record(SourceImportSummaryByTokenTypeKey, z80.number());
1786
- var SourceImportTokenSummary = z80.object({
1803
+ var SourceImportSummaryByTokenType = z81.record(SourceImportSummaryByTokenTypeKey, z81.number());
1804
+ var SourceImportTokenSummary = z81.object({
1787
1805
  tokensCreated: zeroNumberByDefault(),
1788
1806
  tokensUpdated: zeroNumberByDefault(),
1789
1807
  tokensDeleted: zeroNumberByDefault(),
@@ -1791,7 +1809,7 @@ var SourceImportTokenSummary = z80.object({
1791
1809
  tokensUpdatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {}),
1792
1810
  tokensDeletedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {})
1793
1811
  });
1794
- var SourceImportComponentSummary = z80.object({
1812
+ var SourceImportComponentSummary = z81.object({
1795
1813
  componentsCreated: zeroNumberByDefault(),
1796
1814
  componentsUpdated: zeroNumberByDefault(),
1797
1815
  componentsDeleted: zeroNumberByDefault(),
@@ -1799,153 +1817,153 @@ var SourceImportComponentSummary = z80.object({
1799
1817
  componentAssetsUpdated: zeroNumberByDefault(),
1800
1818
  componentAssetsDeleted: zeroNumberByDefault()
1801
1819
  });
1802
- var SourceImportFrameSummary = z80.object({
1820
+ var SourceImportFrameSummary = z81.object({
1803
1821
  assetsInFile: nullishToOptional(FileStructureStats.optional()),
1804
- invalidReferencesCount: nullishToOptional(z80.number().optional())
1805
- });
1806
- var SourceImportSummary = z80.object({
1807
- sourceId: nullishToOptional(z80.string()),
1808
- brandId: nullishToOptional(z80.string()),
1809
- versionId: nullishToOptional(z80.string()),
1810
- error: nullishToOptional(z80.any()),
1811
- isFailed: z80.boolean(),
1812
- warnings: z80.array(ImportWarning).nullish().transform((v) => v ?? []),
1822
+ invalidReferencesCount: nullishToOptional(z81.number().optional())
1823
+ });
1824
+ var SourceImportSummary = z81.object({
1825
+ sourceId: nullishToOptional(z81.string()),
1826
+ brandId: nullishToOptional(z81.string()),
1827
+ versionId: nullishToOptional(z81.string()),
1828
+ error: nullishToOptional(z81.any()),
1829
+ isFailed: z81.boolean(),
1830
+ warnings: z81.array(ImportWarning).nullish().transform((v) => v ?? []),
1813
1831
  ...SourceImportTokenSummary.shape,
1814
1832
  ...SourceImportComponentSummary.shape,
1815
1833
  ...FileStructureStats.shape
1816
1834
  });
1817
1835
  function zeroNumberByDefault() {
1818
- return z80.number().nullish().transform((v) => v ?? 0);
1836
+ return z81.number().nullish().transform((v) => v ?? 0);
1819
1837
  }
1820
- var DataSourceRemoteType = z81.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
1821
- var DataSourceUploadRemoteSource = z81.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
1822
- var DataSourceFigmaState = z81.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
1823
- var DataSourceAutoImportMode = z81.enum(["Never", "Hourly"]);
1824
- var DataSourceStats = z81.object({
1838
+ var DataSourceRemoteType = z82.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
1839
+ var DataSourceUploadRemoteSource = z82.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
1840
+ var DataSourceFigmaState = z82.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
1841
+ var DataSourceAutoImportMode = z82.enum(["Never", "Hourly"]);
1842
+ var DataSourceStats = z82.object({
1825
1843
  tokens: zeroNumberByDefault2(),
1826
1844
  components: zeroNumberByDefault2(),
1827
1845
  assets: zeroNumberByDefault2(),
1828
1846
  frames: zeroNumberByDefault2()
1829
1847
  });
1830
- var DataSourceFigmaFileData = z81.object({
1831
- lastUpdatedAt: z81.coerce.date()
1848
+ var DataSourceFigmaFileData = z82.object({
1849
+ lastUpdatedAt: z82.coerce.date()
1832
1850
  });
1833
- var DataSourceFigmaFileVersionData = z81.object({
1834
- id: z81.string(),
1835
- label: z81.string().optional(),
1836
- description: z81.string().optional(),
1837
- createdAt: z81.coerce.date()
1851
+ var DataSourceFigmaFileVersionData = z82.object({
1852
+ id: z82.string(),
1853
+ label: z82.string().optional(),
1854
+ description: z82.string().optional(),
1855
+ createdAt: z82.coerce.date()
1838
1856
  });
1839
- var DataSourceFigmaScope = z81.object({
1840
- assets: z81.boolean(),
1841
- components: z81.boolean(),
1842
- documentationFrames: z81.boolean(),
1843
- tokens: z81.boolean(),
1844
- themePersistentId: z81.string().optional(),
1845
- isUnpublishedContentFallbackEnabled: z81.boolean()
1857
+ var DataSourceFigmaScope = z82.object({
1858
+ assets: z82.boolean(),
1859
+ components: z82.boolean(),
1860
+ documentationFrames: z82.boolean(),
1861
+ tokens: z82.boolean(),
1862
+ themePersistentId: z82.string().optional(),
1863
+ isUnpublishedContentFallbackEnabled: z82.boolean()
1846
1864
  });
1847
- var DataSourceFigmaImportMetadata = z81.object({
1865
+ var DataSourceFigmaImportMetadata = z82.object({
1848
1866
  fileData: DataSourceFigmaFileData.optional(),
1849
1867
  importedPublishedVersion: DataSourceFigmaFileVersionData.optional()
1850
1868
  });
1851
- var DataSourceFigmaRemote = z81.object({
1852
- type: z81.literal(DataSourceRemoteType.Enum.Figma),
1853
- fileId: z81.string(),
1854
- preferredCredentialId: z81.string().optional(),
1855
- ownerId: z81.string(),
1869
+ var DataSourceFigmaRemote = z82.object({
1870
+ type: z82.literal(DataSourceRemoteType.Enum.Figma),
1871
+ fileId: z82.string(),
1872
+ preferredCredentialId: z82.string().optional(),
1873
+ ownerId: z82.string(),
1856
1874
  // todo remove or keep to reference who created data source
1857
- ownerName: z81.string(),
1875
+ ownerName: z82.string(),
1858
1876
  // todo probably remove
1859
1877
  scope: DataSourceFigmaScope,
1860
1878
  state: DataSourceFigmaState,
1861
- requiresSync: z81.boolean().optional().transform((v) => v ?? false),
1879
+ requiresSync: z82.boolean().optional().transform((v) => v ?? false),
1862
1880
  lastImportMetadata: DataSourceFigmaImportMetadata.optional(),
1863
- downloadChunkSize: z81.number().optional(),
1864
- figmaRenderChunkSize: z81.number().optional(),
1865
- maxFileDepth: z81.number().optional()
1881
+ downloadChunkSize: z82.number().optional(),
1882
+ figmaRenderChunkSize: z82.number().optional(),
1883
+ maxFileDepth: z82.number().optional()
1866
1884
  });
1867
- var DataSourceTokenStudioRemote = z81.object({
1868
- type: z81.literal(DataSourceRemoteType.Enum.TokenStudio)
1885
+ var DataSourceTokenStudioRemote = z82.object({
1886
+ type: z82.literal(DataSourceRemoteType.Enum.TokenStudio)
1869
1887
  });
1870
- var DataSourceUploadImportMetadata = z81.record(z81.any());
1871
- var DataSourceUploadRemote = z81.object({
1872
- type: z81.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
1873
- remoteId: z81.string(),
1888
+ var DataSourceUploadImportMetadata = z82.record(z82.any());
1889
+ var DataSourceUploadRemote = z82.object({
1890
+ type: z82.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
1891
+ remoteId: z82.string(),
1874
1892
  remoteSourceType: DataSourceUploadRemoteSource,
1875
1893
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
1876
1894
  });
1877
- var DataSourceRemote = z81.discriminatedUnion("type", [
1895
+ var DataSourceRemote = z82.discriminatedUnion("type", [
1878
1896
  DataSourceFigmaRemote,
1879
1897
  DataSourceUploadRemote,
1880
1898
  DataSourceTokenStudioRemote
1881
1899
  ]);
1882
- var DataSource = z81.object({
1883
- id: z81.string(),
1884
- name: z81.string(),
1885
- thumbnailUrl: z81.string().optional(),
1886
- createdAt: z81.coerce.date().optional(),
1887
- lastImportedAt: z81.coerce.date().optional(),
1900
+ var DataSource = z82.object({
1901
+ id: z82.string(),
1902
+ name: z82.string(),
1903
+ thumbnailUrl: z82.string().optional(),
1904
+ createdAt: z82.coerce.date().optional(),
1905
+ lastImportedAt: z82.coerce.date().optional(),
1888
1906
  lastImportSummary: SourceImportSummary.optional(),
1889
- designSystemId: z81.string(),
1890
- brandPersistentId: z81.string(),
1907
+ designSystemId: z82.string(),
1908
+ brandPersistentId: z82.string(),
1891
1909
  autoImportMode: DataSourceAutoImportMode,
1892
1910
  stats: DataSourceStats,
1893
1911
  remote: DataSourceRemote,
1894
- sortOrder: z81.number()
1912
+ sortOrder: z82.number()
1895
1913
  });
1896
- var DataSourceVersion = z81.object({
1897
- id: z81.string(),
1898
- createdAt: z81.coerce.date(),
1899
- label: z81.string().nullish(),
1900
- description: z81.string().nullish()
1914
+ var DataSourceVersion = z82.object({
1915
+ id: z82.string(),
1916
+ createdAt: z82.coerce.date(),
1917
+ label: z82.string().nullish(),
1918
+ description: z82.string().nullish()
1901
1919
  });
1902
1920
  function zeroNumberByDefault2() {
1903
- return z81.number().nullish().transform((v) => v ?? 0);
1921
+ return z82.number().nullish().transform((v) => v ?? 0);
1904
1922
  }
1905
- var ImportJobState = z82.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
1906
- var ImportJobOperation = z82.enum(["Check", "Import"]);
1923
+ var ImportJobState = z83.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
1924
+ var ImportJobOperation = z83.enum(["Check", "Import"]);
1907
1925
  var ImportJob = Entity.extend({
1908
- designSystemId: z82.string(),
1909
- designSystemVersionId: z82.string(),
1910
- sourceIds: z82.array(z82.string()),
1926
+ designSystemId: z83.string(),
1927
+ designSystemVersionId: z83.string(),
1928
+ sourceIds: z83.array(z83.string()),
1911
1929
  state: ImportJobState,
1912
- createdByUserId: z82.string().optional(),
1913
- importContextId: z82.string(),
1914
- error: z82.string().optional(),
1930
+ createdByUserId: z83.string().optional(),
1931
+ importContextId: z83.string(),
1932
+ error: z83.string().optional(),
1915
1933
  sourceType: DataSourceRemoteType,
1916
- importContextCleanedUp: z82.boolean()
1917
- });
1918
- var PageBlockDefinitionAppearance = z83.object({
1919
- isBordered: z83.boolean().optional(),
1920
- hasBackground: z83.boolean().optional(),
1921
- isEditorPresentationDifferent: z83.boolean().optional(),
1922
- showBlockHeaderInEditor: z83.boolean().optional()
1923
- });
1924
- var PageBlockDefinitionLayoutType = z84.enum(["Column", "Row"]);
1925
- var PageBlockDefinitionLayoutGap = z84.enum(["Small", "Medium", "Large", "None"]);
1926
- var PageBlockDefinitionLayoutAlign = z84.enum(["Start", "Center", "End"]);
1927
- var PageBlockDefinitionLayoutResizing = z84.enum(["Fill", "Hug"]);
1928
- var PageBlockDefinitionLayoutBase = z84.object({
1934
+ importContextCleanedUp: z83.boolean()
1935
+ });
1936
+ var PageBlockDefinitionAppearance = z84.object({
1937
+ isBordered: z84.boolean().optional(),
1938
+ hasBackground: z84.boolean().optional(),
1939
+ isEditorPresentationDifferent: z84.boolean().optional(),
1940
+ showBlockHeaderInEditor: z84.boolean().optional()
1941
+ });
1942
+ var PageBlockDefinitionLayoutType = z85.enum(["Column", "Row"]);
1943
+ var PageBlockDefinitionLayoutGap = z85.enum(["Small", "Medium", "Large", "None"]);
1944
+ var PageBlockDefinitionLayoutAlign = z85.enum(["Start", "Center", "End"]);
1945
+ var PageBlockDefinitionLayoutResizing = z85.enum(["Fill", "Hug"]);
1946
+ var PageBlockDefinitionLayoutBase = z85.object({
1929
1947
  type: PageBlockDefinitionLayoutType,
1930
1948
  gap: PageBlockDefinitionLayoutGap.optional(),
1931
1949
  columnAlign: PageBlockDefinitionLayoutAlign.optional(),
1932
1950
  columnResizing: PageBlockDefinitionLayoutResizing.optional()
1933
1951
  });
1934
1952
  var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
1935
- children: z84.lazy(() => z84.array(PageBlockDefinitionLayout.or(z84.string())))
1936
- });
1937
- var PageBlockDefinitionVariant = z84.object({
1938
- id: z84.string(),
1939
- name: z84.string(),
1940
- image: z84.string().optional(),
1941
- description: z84.string().optional(),
1942
- documentationLink: z84.string().optional(),
1953
+ children: z85.lazy(() => z85.array(PageBlockDefinitionLayout.or(z85.string())))
1954
+ });
1955
+ var PageBlockDefinitionVariant = z85.object({
1956
+ id: z85.string(),
1957
+ name: z85.string(),
1958
+ image: z85.string().optional(),
1959
+ description: z85.string().optional(),
1960
+ documentationLink: z85.string().optional(),
1943
1961
  layout: PageBlockDefinitionLayout,
1944
- maxColumns: z84.number().optional(),
1945
- defaultColumns: z84.number().optional(),
1962
+ maxColumns: z85.number().optional(),
1963
+ defaultColumns: z85.number().optional(),
1946
1964
  appearance: PageBlockDefinitionAppearance.optional()
1947
1965
  });
1948
- var PageBlockDefinitionPropertyType = z85.enum([
1966
+ var PageBlockDefinitionPropertyType = z86.enum([
1949
1967
  "RichText",
1950
1968
  "MultiRichText",
1951
1969
  "Text",
@@ -1973,7 +1991,7 @@ var PageBlockDefinitionPropertyType = z85.enum([
1973
1991
  "Color",
1974
1992
  "FigmaComponent"
1975
1993
  ]);
1976
- var PageBlockDefinitionRichTextPropertyStyle = z85.enum([
1994
+ var PageBlockDefinitionRichTextPropertyStyle = z86.enum([
1977
1995
  "Title1",
1978
1996
  "Title2",
1979
1997
  "Title3",
@@ -1983,8 +2001,8 @@ var PageBlockDefinitionRichTextPropertyStyle = z85.enum([
1983
2001
  "Callout",
1984
2002
  "Default"
1985
2003
  ]);
1986
- var PageBlockDefinitionMultiRichTextPropertyStyle = z85.enum(["OL", "UL", "Default"]);
1987
- var PageBlockDefinitionTextPropertyStyle = z85.enum([
2004
+ var PageBlockDefinitionMultiRichTextPropertyStyle = z86.enum(["OL", "UL", "Default"]);
2005
+ var PageBlockDefinitionTextPropertyStyle = z86.enum([
1988
2006
  "Title1",
1989
2007
  "Title2",
1990
2008
  "Title3",
@@ -1998,15 +2016,15 @@ var PageBlockDefinitionTextPropertyStyle = z85.enum([
1998
2016
  "SmallSemibold",
1999
2017
  "Custom"
2000
2018
  ]);
2001
- var PageBlockDefinitionTextPropertyColor = z85.enum(["Neutral", "NeutralFaded"]);
2002
- var PageBlockDefinitionBooleanPropertyStyle = z85.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
2003
- var PageBlockDefinitionSingleSelectPropertyStyle = z85.enum([
2019
+ var PageBlockDefinitionTextPropertyColor = z86.enum(["Neutral", "NeutralFaded"]);
2020
+ var PageBlockDefinitionBooleanPropertyStyle = z86.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
2021
+ var PageBlockDefinitionSingleSelectPropertyStyle = z86.enum([
2004
2022
  "SegmentedControl",
2005
2023
  "ToggleButton",
2006
2024
  "Select",
2007
2025
  "Checkbox"
2008
2026
  ]);
2009
- var PageBlockDefinitionSingleSelectPropertyColor = z85.enum([
2027
+ var PageBlockDefinitionSingleSelectPropertyColor = z86.enum([
2010
2028
  "Green",
2011
2029
  "Red",
2012
2030
  "Yellow",
@@ -2021,76 +2039,76 @@ var PageBlockDefinitionSingleSelectPropertyColor = z85.enum([
2021
2039
  "Cyan",
2022
2040
  "Fuchsia"
2023
2041
  ]);
2024
- var IconSet = z85.enum([
2042
+ var IconSet = z86.enum([
2025
2043
  "CheckCircle",
2026
2044
  "CrossCircle",
2027
2045
  "Alert"
2028
2046
  ]);
2029
- var PageBlockDefinitionMultiSelectPropertyStyle = z85.enum(["SegmentedControl", "Select", "Checkbox"]);
2030
- var PageBlockDefinitionImageAspectRatio = z85.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
2031
- var PageBlockDefinitionImageWidth = z85.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
2032
- var PageBlockDefinitionSelectChoice = z85.object({
2033
- value: z85.string(),
2034
- name: z85.string(),
2047
+ var PageBlockDefinitionMultiSelectPropertyStyle = z86.enum(["SegmentedControl", "Select", "Checkbox"]);
2048
+ var PageBlockDefinitionImageAspectRatio = z86.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
2049
+ var PageBlockDefinitionImageWidth = z86.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
2050
+ var PageBlockDefinitionSelectChoice = z86.object({
2051
+ value: z86.string(),
2052
+ name: z86.string(),
2035
2053
  icon: IconSet.optional(),
2036
- customIconUrl: z85.string().optional(),
2054
+ customIconUrl: z86.string().optional(),
2037
2055
  color: PageBlockDefinitionSingleSelectPropertyColor.optional()
2038
2056
  });
2039
- var PageBlockDefinitionUntypedPropertyOptions = z85.record(z85.any());
2040
- var PageBlockDefinitionRichTextOptions = z85.object({
2057
+ var PageBlockDefinitionUntypedPropertyOptions = z86.record(z86.any());
2058
+ var PageBlockDefinitionRichTextOptions = z86.object({
2041
2059
  richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
2042
2060
  });
2043
- var PageBlockDefinitionMutiRichTextOptions = z85.object({
2061
+ var PageBlockDefinitionMutiRichTextOptions = z86.object({
2044
2062
  multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
2045
2063
  });
2046
- var PageBlockDefinitionTextOptions = z85.object({
2047
- placeholder: z85.string().optional(),
2048
- defaultValue: z85.string().optional(),
2064
+ var PageBlockDefinitionTextOptions = z86.object({
2065
+ placeholder: z86.string().optional(),
2066
+ defaultValue: z86.string().optional(),
2049
2067
  textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
2050
2068
  color: PageBlockDefinitionTextPropertyColor.optional(),
2051
- allowLineBreaks: z85.boolean().optional()
2069
+ allowLineBreaks: z86.boolean().optional()
2052
2070
  });
2053
- var PageBlockDefinitionSelectOptions = z85.object({
2071
+ var PageBlockDefinitionSelectOptions = z86.object({
2054
2072
  singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
2055
- defaultChoice: z85.string(),
2056
- choices: z85.array(PageBlockDefinitionSelectChoice)
2073
+ defaultChoice: z86.string(),
2074
+ choices: z86.array(PageBlockDefinitionSelectChoice)
2057
2075
  });
2058
- var PageBlockDefinitionImageOptions = z85.object({
2076
+ var PageBlockDefinitionImageOptions = z86.object({
2059
2077
  width: PageBlockDefinitionImageWidth.optional(),
2060
2078
  aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
2061
- allowCaption: z85.boolean().optional(),
2062
- recommendation: z85.string().optional()
2079
+ allowCaption: z86.boolean().optional(),
2080
+ recommendation: z86.string().optional()
2063
2081
  });
2064
- var PageBlockDefinitionBooleanOptions = z85.object({
2065
- defaultvalue: z85.boolean().optional(),
2082
+ var PageBlockDefinitionBooleanOptions = z86.object({
2083
+ defaultvalue: z86.boolean().optional(),
2066
2084
  booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
2067
2085
  });
2068
- var PageBlockDefinitionNumberOptions = z85.object({
2069
- defaultValue: z85.number(),
2070
- min: z85.number().optional(),
2071
- max: z85.number().optional(),
2072
- step: z85.number().optional(),
2073
- placeholder: z85.string().optional()
2086
+ var PageBlockDefinitionNumberOptions = z86.object({
2087
+ defaultValue: z86.number(),
2088
+ min: z86.number().optional(),
2089
+ max: z86.number().optional(),
2090
+ step: z86.number().optional(),
2091
+ placeholder: z86.string().optional()
2074
2092
  });
2075
- var PageBlockDefinitionComponentOptions = z85.object({
2076
- renderLayoutAs: z85.enum(["List", "Table"]).optional(),
2077
- allowPropertySelection: z85.boolean().optional()
2093
+ var PageBlockDefinitionComponentOptions = z86.object({
2094
+ renderLayoutAs: z86.enum(["List", "Table"]).optional(),
2095
+ allowPropertySelection: z86.boolean().optional()
2078
2096
  });
2079
- var PageBlockDefinitionProperty = z85.object({
2080
- id: z85.string(),
2081
- name: z85.string(),
2097
+ var PageBlockDefinitionProperty = z86.object({
2098
+ id: z86.string(),
2099
+ name: z86.string(),
2082
2100
  type: PageBlockDefinitionPropertyType,
2083
- description: z85.string().optional(),
2101
+ description: z86.string().optional(),
2084
2102
  options: PageBlockDefinitionUntypedPropertyOptions.optional(),
2085
- variantOptions: z85.record(PageBlockDefinitionUntypedPropertyOptions).optional()
2103
+ variantOptions: z86.record(PageBlockDefinitionUntypedPropertyOptions).optional()
2086
2104
  });
2087
- var PageBlockDefinitionItem = z85.object({
2088
- properties: z85.array(PageBlockDefinitionProperty),
2105
+ var PageBlockDefinitionItem = z86.object({
2106
+ properties: z86.array(PageBlockDefinitionProperty),
2089
2107
  appearance: PageBlockDefinitionAppearance.optional(),
2090
- variants: z85.array(PageBlockDefinitionVariant),
2091
- defaultVariantKey: z85.string()
2108
+ variants: z86.array(PageBlockDefinitionVariant),
2109
+ defaultVariantKey: z86.string()
2092
2110
  });
2093
- var PageBlockCategory = z86.enum([
2111
+ var PageBlockCategory = z87.enum([
2094
2112
  "Text",
2095
2113
  "Layout",
2096
2114
  "Media",
@@ -2104,168 +2122,168 @@ var PageBlockCategory = z86.enum([
2104
2122
  "Data",
2105
2123
  "Other"
2106
2124
  ]);
2107
- var PageBlockBehaviorDataType = z86.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
2108
- var PageBlockBehaviorSelectionType = z86.enum(["Entity", "Group", "EntityAndGroup"]);
2109
- var PageBlockDefinitionBehavior = z86.object({
2125
+ var PageBlockBehaviorDataType = z87.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
2126
+ var PageBlockBehaviorSelectionType = z87.enum(["Entity", "Group", "EntityAndGroup"]);
2127
+ var PageBlockDefinitionBehavior = z87.object({
2110
2128
  dataType: PageBlockBehaviorDataType,
2111
- items: z86.object({
2112
- numberOfItems: z86.number(),
2113
- allowLinks: z86.boolean(),
2114
- newItemLabel: z86.string().optional()
2129
+ items: z87.object({
2130
+ numberOfItems: z87.number(),
2131
+ allowLinks: z87.boolean(),
2132
+ newItemLabel: z87.string().optional()
2115
2133
  }).optional(),
2116
- entities: z86.object({
2134
+ entities: z87.object({
2117
2135
  selectionType: PageBlockBehaviorSelectionType,
2118
- maxSelected: z86.number()
2136
+ maxSelected: z87.number()
2119
2137
  }).optional()
2120
2138
  });
2121
- var PageBlockDefinitionOnboarding = z86.object({
2122
- helpText: z86.string(),
2123
- documentationLink: z86.string().optional()
2139
+ var PageBlockDefinitionOnboarding = z87.object({
2140
+ helpText: z87.string(),
2141
+ documentationLink: z87.string().optional()
2124
2142
  });
2125
- var PageBlockDefinition = z86.object({
2126
- id: z86.string(),
2127
- name: z86.string(),
2128
- description: z86.string(),
2143
+ var PageBlockDefinition = z87.object({
2144
+ id: z87.string(),
2145
+ name: z87.string(),
2146
+ description: z87.string(),
2129
2147
  category: PageBlockCategory,
2130
- icon: z86.string().optional(),
2131
- documentationLink: z86.string().optional(),
2132
- searchKeywords: z86.array(z86.string()).optional(),
2148
+ icon: z87.string().optional(),
2149
+ documentationLink: z87.string().optional(),
2150
+ searchKeywords: z87.array(z87.string()).optional(),
2133
2151
  item: PageBlockDefinitionItem,
2134
2152
  behavior: PageBlockDefinitionBehavior,
2135
- editorOptions: z86.object({
2153
+ editorOptions: z87.object({
2136
2154
  onboarding: PageBlockDefinitionOnboarding.optional()
2137
2155
  }),
2138
2156
  appearance: PageBlockDefinitionAppearance.optional()
2139
2157
  });
2140
- var DocumentationPageGroup = z87.object({
2141
- type: z87.literal("ElementGroup"),
2142
- childType: z87.literal("DocumentationPage"),
2143
- id: z87.string(),
2144
- persistentId: z87.string(),
2145
- shortPersistentId: z87.string(),
2146
- designSystemVersionId: z87.string(),
2147
- parentPersistentId: z87.string().nullish(),
2148
- sortOrder: z87.number(),
2149
- title: z87.string(),
2150
- slug: z87.string(),
2151
- userSlug: z87.string().nullish(),
2152
- createdAt: z87.coerce.date(),
2153
- updatedAt: z87.coerce.date()
2154
- });
2155
- var DocumentationLinkPreview = z88.object({
2156
- title: z88.string().optional(),
2157
- description: z88.string().optional(),
2158
+ var DocumentationPageGroup = z88.object({
2159
+ type: z88.literal("ElementGroup"),
2160
+ childType: z88.literal("DocumentationPage"),
2161
+ id: z88.string(),
2162
+ persistentId: z88.string(),
2163
+ shortPersistentId: z88.string(),
2164
+ designSystemVersionId: z88.string(),
2165
+ parentPersistentId: z88.string().nullish(),
2166
+ sortOrder: z88.number(),
2167
+ title: z88.string(),
2168
+ slug: z88.string(),
2169
+ userSlug: z88.string().nullish(),
2170
+ createdAt: z88.coerce.date(),
2171
+ updatedAt: z88.coerce.date()
2172
+ });
2173
+ var DocumentationLinkPreview = z89.object({
2174
+ title: z89.string().optional(),
2175
+ description: z89.string().optional(),
2158
2176
  thumbnail: PageBlockImageReference.optional()
2159
2177
  });
2160
- var DocumentationPageAnchor = z89.object({
2161
- blockId: z89.string(),
2162
- level: z89.number(),
2163
- text: z89.string()
2164
- });
2165
- var DocumentationPageContentBackup = z90.object({
2166
- id: z90.string(),
2167
- designSystemVersionId: z90.string(),
2168
- createdAt: z90.coerce.date(),
2169
- updatedAt: z90.coerce.date(),
2170
- documentationPageId: z90.string(),
2171
- documentationPageName: z90.string(),
2172
- storagePath: z90.string()
2173
- });
2174
- var DocumentationPageContentItem = z91.discriminatedUnion("type", [
2175
- PageBlockEditorModelV2,
2176
- PageSectionEditorModelV2
2177
- ]);
2178
- var DocumentationPageContentData = z91.object({
2179
- items: z91.array(DocumentationPageContentItem)
2178
+ var DocumentationPageAnchor = z90.object({
2179
+ blockId: z90.string(),
2180
+ level: z90.number(),
2181
+ text: z90.string()
2180
2182
  });
2181
- var DocumentationPageContent = z91.object({
2183
+ var DocumentationPageContentBackup = z91.object({
2182
2184
  id: z91.string(),
2183
2185
  designSystemVersionId: z91.string(),
2184
2186
  createdAt: z91.coerce.date(),
2185
2187
  updatedAt: z91.coerce.date(),
2186
2188
  documentationPageId: z91.string(),
2187
- data: DocumentationPageContentData
2189
+ documentationPageName: z91.string(),
2190
+ storagePath: z91.string()
2188
2191
  });
2189
- var DocumentationPage = z92.object({
2190
- type: z92.literal("DocumentationPage"),
2192
+ var DocumentationPageContentItem = z92.discriminatedUnion("type", [
2193
+ PageBlockEditorModelV2,
2194
+ PageSectionEditorModelV2
2195
+ ]);
2196
+ var DocumentationPageContentData = z92.object({
2197
+ items: z92.array(DocumentationPageContentItem)
2198
+ });
2199
+ var DocumentationPageContent = z92.object({
2191
2200
  id: z92.string(),
2192
- persistentId: z92.string(),
2193
- shortPersistentId: z92.string(),
2194
2201
  designSystemVersionId: z92.string(),
2195
- parentPersistentId: z92.string().nullish(),
2196
- sortOrder: z92.number(),
2197
- title: z92.string(),
2198
- slug: z92.string(),
2199
- userSlug: z92.string().nullish(),
2200
2202
  createdAt: z92.coerce.date(),
2201
- updatedAt: z92.coerce.date()
2202
- });
2203
- var DocumentationComment = z93.object({
2204
- id: z93.string(),
2205
- authorId: z93.string(),
2206
- threadId: z93.string(),
2207
- roomId: z93.string(),
2208
- createdAt: z93.coerce.date(),
2209
- editedAt: z93.coerce.date().optional(),
2210
- deletedAt: z93.coerce.date().optional(),
2211
- body: z93.string()
2203
+ updatedAt: z92.coerce.date(),
2204
+ documentationPageId: z92.string(),
2205
+ data: DocumentationPageContentData
2212
2206
  });
2213
- var DocumentationCommentThread = z93.object({
2207
+ var DocumentationPage = z93.object({
2208
+ type: z93.literal("DocumentationPage"),
2214
2209
  id: z93.string(),
2215
- roomId: z93.string(),
2216
- pagePersistentId: z93.string(),
2217
- brandId: z93.string(),
2210
+ persistentId: z93.string(),
2211
+ shortPersistentId: z93.string(),
2218
2212
  designSystemVersionId: z93.string(),
2219
- designSystemId: z93.string(),
2220
- blockId: z93.string().optional(),
2221
- resolved: z93.boolean(),
2213
+ parentPersistentId: z93.string().nullish(),
2214
+ sortOrder: z93.number(),
2215
+ title: z93.string(),
2216
+ slug: z93.string(),
2217
+ userSlug: z93.string().nullish(),
2222
2218
  createdAt: z93.coerce.date(),
2223
2219
  updatedAt: z93.coerce.date()
2224
2220
  });
2225
- var FigmaFileDownloadScope = z94.object({
2226
- styles: z94.boolean(),
2227
- components: z94.boolean(),
2228
- currentVersion: z94.literal("__latest__").nullable(),
2229
- publishedVersion: z94.string().nullable(),
2230
- downloadChunkSize: z94.number().optional(),
2231
- maxFileDepth: z94.number().optional()
2232
- });
2233
- var FigmaFileAccessData = z94.object({
2234
- accessToken: z94.string()
2235
- });
2236
- var ImportFunctionInput = z95.object({
2237
- importJobId: z95.string(),
2238
- importContextId: z95.string(),
2239
- designSystemId: z95.string().optional()
2240
- });
2241
- var ImportedFigmaSourceData = z95.object({
2242
- sourceId: z95.string(),
2221
+ var DocumentationComment = z94.object({
2222
+ id: z94.string(),
2223
+ authorId: z94.string(),
2224
+ threadId: z94.string(),
2225
+ roomId: z94.string(),
2226
+ createdAt: z94.coerce.date(),
2227
+ editedAt: z94.coerce.date().optional(),
2228
+ deletedAt: z94.coerce.date().optional(),
2229
+ body: z94.string()
2230
+ });
2231
+ var DocumentationCommentThread = z94.object({
2232
+ id: z94.string(),
2233
+ roomId: z94.string(),
2234
+ pagePersistentId: z94.string(),
2235
+ brandId: z94.string(),
2236
+ designSystemVersionId: z94.string(),
2237
+ designSystemId: z94.string(),
2238
+ blockId: z94.string().optional(),
2239
+ resolved: z94.boolean(),
2240
+ createdAt: z94.coerce.date(),
2241
+ updatedAt: z94.coerce.date()
2242
+ });
2243
+ var FigmaFileDownloadScope = z95.object({
2244
+ styles: z95.boolean(),
2245
+ components: z95.boolean(),
2246
+ currentVersion: z95.literal("__latest__").nullable(),
2247
+ publishedVersion: z95.string().nullable(),
2248
+ downloadChunkSize: z95.number().optional(),
2249
+ maxFileDepth: z95.number().optional()
2250
+ });
2251
+ var FigmaFileAccessData = z95.object({
2252
+ accessToken: z95.string()
2253
+ });
2254
+ var ImportFunctionInput = z96.object({
2255
+ importJobId: z96.string(),
2256
+ importContextId: z96.string(),
2257
+ designSystemId: z96.string().optional()
2258
+ });
2259
+ var ImportedFigmaSourceData = z96.object({
2260
+ sourceId: z96.string(),
2243
2261
  figmaRemote: DataSourceFigmaRemote
2244
2262
  });
2245
- var FigmaImportBaseContext = z95.object({
2246
- designSystemId: z95.string(),
2263
+ var FigmaImportBaseContext = z96.object({
2264
+ designSystemId: z96.string(),
2247
2265
  /**
2248
2266
  * Data required for accessing Figma files. This should contain access data for all file ids
2249
2267
  * mentioned in the `importedSourceDataBySourceId`
2250
2268
  *
2251
2269
  * fileId: file data
2252
2270
  */
2253
- fileAccessByFileId: z95.record(FigmaFileAccessData),
2271
+ fileAccessByFileId: z96.record(FigmaFileAccessData),
2254
2272
  /**
2255
2273
  * Figma source data for which import was requested
2256
2274
  *
2257
2275
  * sourceId: source data
2258
2276
  */
2259
- importedSourceDataBySourceId: z95.record(ImportedFigmaSourceData),
2277
+ importedSourceDataBySourceId: z96.record(ImportedFigmaSourceData),
2260
2278
  /**
2261
2279
  * Array of warnings that will be written into the import result summary at the end
2262
2280
  * of import job execution and displayed by the client.
2263
2281
  */
2264
- importWarnings: z95.record(ImportWarning.array()).default({})
2282
+ importWarnings: z96.record(ImportWarning.array()).default({})
2265
2283
  });
2266
2284
  var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
2267
- sourcesWithMissingAccess: z95.array(z95.string()).default([]),
2268
- shadowOpacityOptional: z95.boolean().default(false)
2285
+ sourcesWithMissingAccess: z96.array(z96.string()).default([]),
2286
+ shadowOpacityOptional: z96.boolean().default(false)
2269
2287
  });
2270
2288
  var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
2271
2289
  importMetadata: DataSourceFigmaImportMetadata
@@ -2277,65 +2295,65 @@ var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.ex
2277
2295
  *
2278
2296
  * File id -> file download scope
2279
2297
  */
2280
- fileDownloadScopesByFileId: z95.record(FigmaFileDownloadScope),
2298
+ fileDownloadScopesByFileId: z96.record(FigmaFileDownloadScope),
2281
2299
  /**
2282
2300
  * Sources filtered down to the ones that have changed since last import and therefore need to be
2283
2301
  * imported again.
2284
2302
  *
2285
2303
  * Source id -> import metadata
2286
2304
  */
2287
- changedImportedSourceDataBySourceId: z95.record(ChangedImportedFigmaSourceData)
2305
+ changedImportedSourceDataBySourceId: z96.record(ChangedImportedFigmaSourceData)
2288
2306
  });
2289
- var ImageImportModelType = z96.enum(["Url", "FigmaRender"]);
2290
- var ImageImportModelBase = z96.object({
2307
+ var ImageImportModelType = z97.enum(["Url", "FigmaRender"]);
2308
+ var ImageImportModelBase = z97.object({
2291
2309
  scope: AssetScope
2292
2310
  });
2293
2311
  var UrlImageImportModel = ImageImportModelBase.extend({
2294
- type: z96.literal(ImageImportModelType.enum.Url),
2295
- url: z96.string(),
2296
- originKey: z96.string(),
2297
- extension: z96.string()
2312
+ type: z97.literal(ImageImportModelType.enum.Url),
2313
+ url: z97.string(),
2314
+ originKey: z97.string(),
2315
+ extension: z97.string()
2298
2316
  });
2299
- var FigmaRenderFormat = z96.enum(["Svg", "Png"]);
2317
+ var FigmaRenderFormat = z97.enum(["Svg", "Png"]);
2300
2318
  var FigmaRenderBase = ImageImportModelBase.extend({
2301
- type: z96.literal(ImageImportModelType.enum.FigmaRender),
2302
- fileId: z96.string(),
2303
- fileVersionId: z96.string().optional(),
2304
- nodeId: z96.string(),
2305
- originKey: z96.string()
2319
+ type: z97.literal(ImageImportModelType.enum.FigmaRender),
2320
+ fileId: z97.string(),
2321
+ fileVersionId: z97.string().optional(),
2322
+ nodeId: z97.string(),
2323
+ originKey: z97.string()
2306
2324
  });
2307
2325
  var FigmaPngRenderImportModel = FigmaRenderBase.extend({
2308
- format: z96.literal(FigmaRenderFormat.enum.Png),
2309
- scale: z96.number()
2326
+ format: z97.literal(FigmaRenderFormat.enum.Png),
2327
+ scale: z97.number()
2310
2328
  });
2311
2329
  var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
2312
- format: z96.literal(FigmaRenderFormat.enum.Svg)
2330
+ format: z97.literal(FigmaRenderFormat.enum.Svg)
2313
2331
  });
2314
- var FigmaRenderImportModel = z96.discriminatedUnion("format", [
2332
+ var FigmaRenderImportModel = z97.discriminatedUnion("format", [
2315
2333
  FigmaPngRenderImportModel,
2316
2334
  FigmaSvgRenderImportModel
2317
2335
  ]);
2318
- var ImageImportModel = z96.union([UrlImageImportModel, FigmaRenderImportModel]);
2319
- var ImportModelBase = z97.object({
2320
- id: z97.string(),
2336
+ var ImageImportModel = z97.union([UrlImageImportModel, FigmaRenderImportModel]);
2337
+ var ImportModelBase = z98.object({
2338
+ id: z98.string(),
2321
2339
  meta: ObjectMeta,
2322
2340
  origin: DesignElementOrigin,
2323
- brandPersistentId: z97.string(),
2324
- sortOrder: z97.number()
2341
+ brandPersistentId: z98.string(),
2342
+ sortOrder: z98.number()
2325
2343
  });
2326
2344
  var ImportModelInputBase = ImportModelBase.omit({
2327
2345
  brandPersistentId: true,
2328
2346
  origin: true,
2329
2347
  sortOrder: true
2330
2348
  }).extend({
2331
- originId: z97.string(),
2332
- originMetadata: z97.record(z97.any())
2349
+ originId: z98.string(),
2350
+ originMetadata: z98.record(z98.any())
2333
2351
  });
2334
- var ComponentImportModelPart = z98.object({
2352
+ var ComponentImportModelPart = z99.object({
2335
2353
  thumbnail: ImageImportModel
2336
2354
  });
2337
2355
  var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
2338
- isAsset: z98.boolean(),
2356
+ isAsset: z99.boolean(),
2339
2357
  svg: FigmaSvgRenderImportModel.optional(),
2340
2358
  origin: ComponentOrigin
2341
2359
  });
@@ -2347,44 +2365,44 @@ var AssetImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart
2347
2365
  originMetadata: ComponentOriginPart
2348
2366
  });
2349
2367
  var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
2350
- z99.object({
2351
- id: z99.string(),
2368
+ z100.object({
2369
+ id: z100.string(),
2352
2370
  meta: ObjectMeta
2353
2371
  })
2354
2372
  );
2355
2373
  var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
2356
- z99.object({
2374
+ z100.object({
2357
2375
  origin: ThemeOverrideOrigin
2358
2376
  })
2359
2377
  );
2360
2378
  var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
2361
- z99.object({
2362
- originId: z99.string(),
2379
+ z100.object({
2380
+ originId: z100.string(),
2363
2381
  originMetadata: ThemeOverrideOriginPart
2364
2382
  })
2365
2383
  );
2366
- var ThemeImportModel = z99.object({
2384
+ var ThemeImportModel = z100.object({
2367
2385
  meta: ObjectMeta,
2368
- brandPersistentId: z99.string(),
2386
+ brandPersistentId: z100.string(),
2369
2387
  originSource: ThemeOriginSource,
2370
- overrides: z99.array(ThemeOverrideImportModel),
2371
- sortOrder: z99.number()
2388
+ overrides: z100.array(ThemeOverrideImportModel),
2389
+ sortOrder: z100.number()
2372
2390
  });
2373
- var ThemeImportModelInput = z99.object({
2391
+ var ThemeImportModelInput = z100.object({
2374
2392
  meta: ObjectMeta,
2375
- originObjects: z99.array(ThemeOriginObject),
2376
- overrides: z99.array(ThemeOverrideImportModelInput)
2393
+ originObjects: z100.array(ThemeOriginObject),
2394
+ overrides: z100.array(ThemeOverrideImportModelInput)
2377
2395
  });
2378
- var ThemeUpdateImportModel = z99.object({
2379
- themePersistentId: z99.string(),
2380
- overrides: z99.array(ThemeOverrideImportModel)
2396
+ var ThemeUpdateImportModel = z100.object({
2397
+ themePersistentId: z100.string(),
2398
+ overrides: z100.array(ThemeOverrideImportModel)
2381
2399
  });
2382
- var ThemeUpdateImportModelInput = z99.object({
2383
- themePersistentId: z99.string(),
2384
- overrides: z99.array(ThemeOverrideImportModelInput)
2400
+ var ThemeUpdateImportModelInput = z100.object({
2401
+ themePersistentId: z100.string(),
2402
+ overrides: z100.array(ThemeOverrideImportModelInput)
2385
2403
  });
2386
- var DesignTokenImportModelPart = z100.object({
2387
- collection: z100.string().optional()
2404
+ var DesignTokenImportModelPart = z101.object({
2405
+ collection: z101.string().optional()
2388
2406
  });
2389
2407
  var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
2390
2408
  origin: DesignTokenOrigin
@@ -2398,10 +2416,10 @@ var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
2398
2416
  image: FigmaPngRenderImportModel
2399
2417
  });
2400
2418
  var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
2401
- children: z101.lazy(() => FigmaFileStructureNodeImportModel.array())
2419
+ children: z102.lazy(() => FigmaFileStructureNodeImportModel.array())
2402
2420
  });
2403
- var FigmaFileStructureImportModelPart = z101.object({
2404
- data: z101.object({
2421
+ var FigmaFileStructureImportModelPart = z102.object({
2422
+ data: z102.object({
2405
2423
  rootNode: FigmaFileStructureNodeImportModel,
2406
2424
  assetsInFile: FigmaFileStructureStatistics
2407
2425
  })
@@ -2412,350 +2430,350 @@ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImp
2412
2430
  var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
2413
2431
  FigmaFileStructureImportModelPart.shape
2414
2432
  ).extend({
2415
- fileVersionId: z101.string()
2433
+ fileVersionId: z102.string()
2416
2434
  });
2417
- var DataSourceImportModel = z102.object({
2418
- id: z102.string(),
2419
- fileName: z102.string().optional(),
2420
- thumbnailUrl: z102.string().optional()
2435
+ var DataSourceImportModel = z103.object({
2436
+ id: z103.string(),
2437
+ fileName: z103.string().optional(),
2438
+ thumbnailUrl: z103.string().optional()
2421
2439
  });
2422
- var ImportModelInputCollection = z103.object({
2440
+ var ImportModelInputCollection = z104.object({
2423
2441
  source: DataSourceImportModel,
2424
- tokens: z103.array(DesignTokenImportModelInput).default([]),
2425
- components: z103.array(ComponentImportModelInput).default([]),
2426
- assets: z103.array(AssetImportModelInput).default([]),
2427
- themeUpdates: z103.array(ThemeUpdateImportModelInput).default([]),
2428
- themes: z103.array(ThemeImportModelInput).default([]),
2442
+ tokens: z104.array(DesignTokenImportModelInput).default([]),
2443
+ components: z104.array(ComponentImportModelInput).default([]),
2444
+ assets: z104.array(AssetImportModelInput).default([]),
2445
+ themeUpdates: z104.array(ThemeUpdateImportModelInput).default([]),
2446
+ themes: z104.array(ThemeImportModelInput).default([]),
2429
2447
  figmaFileStructure: FigmaFileStructureImportModelInput.optional()
2430
2448
  });
2431
- var ImportModelCollection = z103.object({
2432
- sources: z103.array(DataSourceImportModel),
2433
- tokens: z103.array(DesignTokenImportModel).default([]),
2434
- components: z103.array(ComponentImportModel).default([]),
2435
- themeUpdates: z103.array(ThemeUpdateImportModel).default([]),
2436
- themes: z103.array(ThemeImportModel).default([]),
2437
- figmaFileStructures: z103.array(FigmaFileStructureImportModel)
2438
- });
2439
- var ElementViewBaseColumnType = z104.enum(["Name", "Description", "Value", "UpdatedAt"]);
2440
- var ElementViewColumnType = z104.union([
2441
- z104.literal("BaseProperty"),
2442
- z104.literal("PropertyDefinition"),
2443
- z104.literal("Theme")
2449
+ var ImportModelCollection = z104.object({
2450
+ sources: z104.array(DataSourceImportModel),
2451
+ tokens: z104.array(DesignTokenImportModel).default([]),
2452
+ components: z104.array(ComponentImportModel).default([]),
2453
+ themeUpdates: z104.array(ThemeUpdateImportModel).default([]),
2454
+ themes: z104.array(ThemeImportModel).default([]),
2455
+ figmaFileStructures: z104.array(FigmaFileStructureImportModel)
2456
+ });
2457
+ var ElementViewBaseColumnType = z105.enum(["Name", "Description", "Value", "UpdatedAt"]);
2458
+ var ElementViewColumnType = z105.union([
2459
+ z105.literal("BaseProperty"),
2460
+ z105.literal("PropertyDefinition"),
2461
+ z105.literal("Theme")
2444
2462
  ]);
2445
- var ElementViewColumnSharedAttributes = z104.object({
2446
- id: z104.string(),
2447
- persistentId: z104.string(),
2448
- elementDataViewId: z104.string(),
2449
- sortPosition: z104.number(),
2450
- width: z104.number()
2463
+ var ElementViewColumnSharedAttributes = z105.object({
2464
+ id: z105.string(),
2465
+ persistentId: z105.string(),
2466
+ elementDataViewId: z105.string(),
2467
+ sortPosition: z105.number(),
2468
+ width: z105.number()
2451
2469
  });
2452
2470
  var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
2453
- type: z104.literal("BaseProperty"),
2471
+ type: z105.literal("BaseProperty"),
2454
2472
  basePropertyType: ElementViewBaseColumnType
2455
2473
  });
2456
2474
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
2457
- type: z104.literal("PropertyDefinition"),
2458
- propertyDefinitionId: z104.string()
2475
+ type: z105.literal("PropertyDefinition"),
2476
+ propertyDefinitionId: z105.string()
2459
2477
  });
2460
2478
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
2461
- type: z104.literal("Theme"),
2462
- themeId: z104.string()
2479
+ type: z105.literal("Theme"),
2480
+ themeId: z105.string()
2463
2481
  });
2464
- var ElementViewColumn = z104.discriminatedUnion("type", [
2482
+ var ElementViewColumn = z105.discriminatedUnion("type", [
2465
2483
  ElementViewBasePropertyColumn,
2466
2484
  ElementViewPropertyDefinitionColumn,
2467
2485
  ElementViewThemeColumn
2468
2486
  ]);
2469
- var ElementView = z105.object({
2470
- id: z105.string(),
2471
- persistentId: z105.string(),
2472
- designSystemVersionId: z105.string(),
2473
- name: z105.string(),
2474
- description: z105.string(),
2475
- targetElementType: ElementPropertyTargetType,
2476
- isDefault: z105.boolean()
2477
- });
2478
- var Brand = z106.object({
2487
+ var ElementView = z106.object({
2479
2488
  id: z106.string(),
2480
- designSystemVersionId: z106.string(),
2481
2489
  persistentId: z106.string(),
2490
+ designSystemVersionId: z106.string(),
2482
2491
  name: z106.string(),
2483
- description: z106.string()
2484
- });
2485
- var NpmRegistryAuthType = z107.enum(["Basic", "Bearer", "None", "Custom"]);
2486
- var NpmRegistryType = z107.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
2487
- var NpmRegistryBasicAuthConfig = z107.object({
2488
- authType: z107.literal(NpmRegistryAuthType.Enum.Basic),
2489
- username: z107.string(),
2490
- password: z107.string()
2491
- });
2492
- var NpmRegistryBearerAuthConfig = z107.object({
2493
- authType: z107.literal(NpmRegistryAuthType.Enum.Bearer),
2494
- accessToken: z107.string()
2495
- });
2496
- var NpmRegistryNoAuthConfig = z107.object({
2497
- authType: z107.literal(NpmRegistryAuthType.Enum.None)
2498
- });
2499
- var NpmRegistrCustomAuthConfig = z107.object({
2500
- authType: z107.literal(NpmRegistryAuthType.Enum.Custom),
2501
- authHeaderName: z107.string(),
2502
- authHeaderValue: z107.string()
2503
- });
2504
- var NpmRegistryAuthConfig = z107.discriminatedUnion("authType", [
2492
+ description: z106.string(),
2493
+ targetElementType: ElementPropertyTargetType,
2494
+ isDefault: z106.boolean()
2495
+ });
2496
+ var Brand = z107.object({
2497
+ id: z107.string(),
2498
+ designSystemVersionId: z107.string(),
2499
+ persistentId: z107.string(),
2500
+ name: z107.string(),
2501
+ description: z107.string()
2502
+ });
2503
+ var NpmRegistryAuthType = z108.enum(["Basic", "Bearer", "None", "Custom"]);
2504
+ var NpmRegistryType = z108.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
2505
+ var NpmRegistryBasicAuthConfig = z108.object({
2506
+ authType: z108.literal(NpmRegistryAuthType.Enum.Basic),
2507
+ username: z108.string(),
2508
+ password: z108.string()
2509
+ });
2510
+ var NpmRegistryBearerAuthConfig = z108.object({
2511
+ authType: z108.literal(NpmRegistryAuthType.Enum.Bearer),
2512
+ accessToken: z108.string()
2513
+ });
2514
+ var NpmRegistryNoAuthConfig = z108.object({
2515
+ authType: z108.literal(NpmRegistryAuthType.Enum.None)
2516
+ });
2517
+ var NpmRegistrCustomAuthConfig = z108.object({
2518
+ authType: z108.literal(NpmRegistryAuthType.Enum.Custom),
2519
+ authHeaderName: z108.string(),
2520
+ authHeaderValue: z108.string()
2521
+ });
2522
+ var NpmRegistryAuthConfig = z108.discriminatedUnion("authType", [
2505
2523
  NpmRegistryBasicAuthConfig,
2506
2524
  NpmRegistryBearerAuthConfig,
2507
2525
  NpmRegistryNoAuthConfig,
2508
2526
  NpmRegistrCustomAuthConfig
2509
2527
  ]);
2510
- var NpmRegistryConfigBase = z107.object({
2528
+ var NpmRegistryConfigBase = z108.object({
2511
2529
  registryType: NpmRegistryType,
2512
- enabledScopes: z107.array(z107.string()),
2513
- customRegistryUrl: z107.string().optional(),
2514
- bypassProxy: z107.boolean().default(false),
2515
- npmProxyRegistryConfigId: z107.string().optional(),
2516
- npmProxyVersion: z107.number().optional()
2530
+ enabledScopes: z108.array(z108.string()),
2531
+ customRegistryUrl: z108.string().optional(),
2532
+ bypassProxy: z108.boolean().default(false),
2533
+ npmProxyRegistryConfigId: z108.string().optional(),
2534
+ npmProxyVersion: z108.number().optional()
2517
2535
  });
2518
2536
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
2519
- var SsoProvider = z108.object({
2520
- providerId: z108.string(),
2521
- defaultAutoInviteValue: z108.boolean(),
2522
- autoInviteDomains: z108.record(z108.string(), z108.boolean()),
2523
- skipDocsSupernovaLogin: z108.boolean(),
2524
- areInvitesDisabled: z108.boolean(),
2525
- isTestMode: z108.boolean(),
2526
- emailDomains: z108.array(z108.string()),
2527
- metadataXml: z108.string().nullish()
2537
+ var SsoProvider = z109.object({
2538
+ providerId: z109.string(),
2539
+ defaultAutoInviteValue: z109.boolean(),
2540
+ autoInviteDomains: z109.record(z109.string(), z109.boolean()),
2541
+ skipDocsSupernovaLogin: z109.boolean(),
2542
+ areInvitesDisabled: z109.boolean(),
2543
+ isTestMode: z109.boolean(),
2544
+ emailDomains: z109.array(z109.string()),
2545
+ metadataXml: z109.string().nullish()
2528
2546
  });
2529
2547
  var isValidCIDR = (value) => {
2530
2548
  return IPCIDR.isValidAddress(value);
2531
2549
  };
2532
- var WorkspaceIpWhitelistEntry = z109.object({
2533
- isEnabled: z109.boolean(),
2534
- name: z109.string(),
2535
- range: z109.string().refine(isValidCIDR, {
2550
+ var WorkspaceIpWhitelistEntry = z110.object({
2551
+ isEnabled: z110.boolean(),
2552
+ name: z110.string(),
2553
+ range: z110.string().refine(isValidCIDR, {
2536
2554
  message: "Invalid IP CIDR"
2537
2555
  })
2538
2556
  });
2539
- var WorkspaceIpSettings = z109.object({
2540
- isEnabledForCloud: z109.boolean(),
2541
- isEnabledForDocs: z109.boolean(),
2542
- entries: z109.array(WorkspaceIpWhitelistEntry)
2557
+ var WorkspaceIpSettings = z110.object({
2558
+ isEnabledForCloud: z110.boolean(),
2559
+ isEnabledForDocs: z110.boolean(),
2560
+ entries: z110.array(WorkspaceIpWhitelistEntry)
2543
2561
  });
2544
- var WorkspaceProfile = z109.object({
2545
- name: z109.string(),
2546
- handle: z109.string(),
2547
- color: z109.string(),
2548
- avatar: nullishToOptional(z109.string()),
2562
+ var WorkspaceProfile = z110.object({
2563
+ name: z110.string(),
2564
+ handle: z110.string(),
2565
+ color: z110.string(),
2566
+ avatar: nullishToOptional(z110.string()),
2549
2567
  billingDetails: nullishToOptional(BillingDetails)
2550
2568
  });
2551
2569
  var WorkspaceProfileUpdate = WorkspaceProfile.omit({
2552
2570
  avatar: true
2553
2571
  });
2554
- var Workspace = z109.object({
2555
- id: z109.string(),
2572
+ var Workspace = z110.object({
2573
+ id: z110.string(),
2556
2574
  profile: WorkspaceProfile,
2557
2575
  subscription: Subscription,
2558
2576
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
2559
2577
  sso: nullishToOptional(SsoProvider),
2560
2578
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
2561
2579
  });
2562
- var WorkspaceWithDesignSystems = z109.object({
2580
+ var WorkspaceWithDesignSystems = z110.object({
2563
2581
  workspace: Workspace,
2564
- designSystems: z109.array(DesignSystem)
2582
+ designSystems: z110.array(DesignSystem)
2565
2583
  });
2566
- var DesignSystemSwitcher = z110.object({
2567
- isEnabled: z110.boolean(),
2568
- designSystemIds: z110.array(z110.string())
2584
+ var DesignSystemSwitcher = z111.object({
2585
+ isEnabled: z111.boolean(),
2586
+ designSystemIds: z111.array(z111.string())
2569
2587
  });
2570
- var DesignSystem = z110.object({
2571
- id: z110.string(),
2572
- workspaceId: z110.string(),
2573
- name: z110.string(),
2574
- description: z110.string(),
2575
- docExporterId: nullishToOptional(z110.string()),
2576
- docSlug: z110.string(),
2577
- docUserSlug: nullishToOptional(z110.string()),
2578
- docSlugDeprecated: z110.string(),
2579
- isPublic: z110.boolean(),
2580
- isMultibrand: z110.boolean(),
2581
- docViewUrl: nullishToOptional(z110.string()),
2582
- basePrefixes: z110.array(z110.string()),
2588
+ var DesignSystem = z111.object({
2589
+ id: z111.string(),
2590
+ workspaceId: z111.string(),
2591
+ name: z111.string(),
2592
+ description: z111.string(),
2593
+ docExporterId: nullishToOptional(z111.string()),
2594
+ docSlug: z111.string(),
2595
+ docUserSlug: nullishToOptional(z111.string()),
2596
+ docSlugDeprecated: z111.string(),
2597
+ isPublic: z111.boolean(),
2598
+ isMultibrand: z111.boolean(),
2599
+ docViewUrl: nullishToOptional(z111.string()),
2600
+ basePrefixes: z111.array(z111.string()),
2583
2601
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
2584
- createdAt: z110.coerce.date(),
2585
- updatedAt: z110.coerce.date()
2602
+ createdAt: z111.coerce.date(),
2603
+ updatedAt: z111.coerce.date()
2586
2604
  });
2587
- var DesignSystemWithWorkspace = z110.object({
2605
+ var DesignSystemWithWorkspace = z111.object({
2588
2606
  designSystem: DesignSystem,
2589
2607
  workspace: Workspace
2590
2608
  });
2591
2609
  var DS_NAME_MIN_LENGTH = 2;
2592
2610
  var DS_NAME_MAX_LENGTH = 64;
2593
2611
  var DS_DESC_MAX_LENGTH = 64;
2594
- var DesignSystemCreateInputMetadata = z111.object({
2595
- name: z111.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2596
- description: z111.string().max(DS_DESC_MAX_LENGTH).trim()
2612
+ var DesignSystemCreateInputMetadata = z112.object({
2613
+ name: z112.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2614
+ description: z112.string().max(DS_DESC_MAX_LENGTH).trim()
2597
2615
  });
2598
- var DesignSystemCreateInput = z111.object({
2616
+ var DesignSystemCreateInput = z112.object({
2599
2617
  meta: DesignSystemCreateInputMetadata,
2600
- workspaceId: z111.string(),
2601
- isPublic: z111.boolean().optional(),
2602
- basePrefixes: z111.array(z111.string()).optional(),
2603
- docUserSlug: z111.string().nullish().optional(),
2604
- source: z111.array(z111.string()).optional()
2618
+ workspaceId: z112.string(),
2619
+ isPublic: z112.boolean().optional(),
2620
+ basePrefixes: z112.array(z112.string()).optional(),
2621
+ docUserSlug: z112.string().nullish().optional(),
2622
+ source: z112.array(z112.string()).optional()
2605
2623
  });
2606
2624
  var DS_NAME_MIN_LENGTH2 = 2;
2607
2625
  var DS_NAME_MAX_LENGTH2 = 64;
2608
2626
  var DS_DESC_MAX_LENGTH2 = 64;
2609
- var DesignSystemUpdateInputMetadata = z112.object({
2610
- name: z112.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2611
- description: z112.string().max(DS_DESC_MAX_LENGTH2).trim().optional()
2627
+ var DesignSystemUpdateInputMetadata = z113.object({
2628
+ name: z113.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2629
+ description: z113.string().max(DS_DESC_MAX_LENGTH2).trim().optional()
2612
2630
  });
2613
- var DesignSystemUpdateInput = z112.object({
2631
+ var DesignSystemUpdateInput = z113.object({
2614
2632
  meta: DesignSystemUpdateInputMetadata.optional(),
2615
- workspaceId: z112.string().optional(),
2616
- isPublic: z112.boolean().optional(),
2617
- basePrefixes: z112.array(z112.string()).optional(),
2618
- docUserSlug: z112.string().nullish().optional(),
2619
- source: z112.array(z112.string()).optional(),
2620
- name: z112.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2621
- description: z112.string().max(DS_DESC_MAX_LENGTH2).trim().optional(),
2622
- docExporterId: z112.string().optional()
2623
- });
2624
- var ExporterPropertyImageValue = z113.object({
2633
+ workspaceId: z113.string().optional(),
2634
+ isPublic: z113.boolean().optional(),
2635
+ basePrefixes: z113.array(z113.string()).optional(),
2636
+ docUserSlug: z113.string().nullish().optional(),
2637
+ source: z113.array(z113.string()).optional(),
2638
+ name: z113.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2639
+ description: z113.string().max(DS_DESC_MAX_LENGTH2).trim().optional(),
2640
+ docExporterId: z113.string().optional()
2641
+ });
2642
+ var ExporterPropertyImageValue = z114.object({
2625
2643
  asset: PageBlockAsset.optional(),
2626
- assetId: z113.string().optional(),
2627
- assetUrl: z113.string().optional()
2628
- });
2629
- var ExporterPropertyValue = z113.object({
2630
- key: z113.string(),
2631
- value: z113.union([
2632
- z113.number(),
2633
- z113.string(),
2634
- z113.boolean(),
2644
+ assetId: z114.string().optional(),
2645
+ assetUrl: z114.string().optional()
2646
+ });
2647
+ var ExporterPropertyValue = z114.object({
2648
+ key: z114.string(),
2649
+ value: z114.union([
2650
+ z114.number(),
2651
+ z114.string(),
2652
+ z114.boolean(),
2635
2653
  ExporterPropertyImageValue,
2636
2654
  ColorTokenData,
2637
2655
  TypographyTokenData
2638
2656
  ])
2639
2657
  });
2640
- var ExporterPropertyValuesCollection = z113.object({
2641
- id: z113.string(),
2642
- designSystemId: z113.string(),
2643
- exporterId: z113.string(),
2644
- values: z113.array(ExporterPropertyValue)
2645
- });
2646
- var PublishedDocPage = z114.object({
2658
+ var ExporterPropertyValuesCollection = z114.object({
2647
2659
  id: z114.string(),
2648
- publishedDocId: z114.string(),
2649
- pageShortPersistentId: z114.string(),
2650
- pathV1: z114.string(),
2651
- pathV2: z114.string(),
2652
- storagePath: z114.string(),
2653
- locale: z114.string().optional(),
2654
- isPrivate: z114.boolean(),
2655
- isHidden: z114.boolean(),
2656
- createdAt: z114.coerce.date(),
2657
- updatedAt: z114.coerce.date()
2660
+ designSystemId: z114.string(),
2661
+ exporterId: z114.string(),
2662
+ values: z114.array(ExporterPropertyValue)
2658
2663
  });
2659
- var publishedDocEnvironments = ["Live", "Preview"];
2660
- var PublishedDocEnvironment = z115.enum(publishedDocEnvironments);
2661
- var PublishedDocsChecksums = z115.record(z115.string());
2662
- var PublishedDocRoutingVersion = z115.enum(["1", "2"]);
2663
- var PublishedDoc = z115.object({
2664
+ var PublishedDocPage = z115.object({
2664
2665
  id: z115.string(),
2665
- designSystemVersionId: z115.string(),
2666
+ publishedDocId: z115.string(),
2667
+ pageShortPersistentId: z115.string(),
2668
+ pathV1: z115.string(),
2669
+ pathV2: z115.string(),
2670
+ storagePath: z115.string(),
2671
+ locale: z115.string().optional(),
2672
+ isPrivate: z115.boolean(),
2673
+ isHidden: z115.boolean(),
2666
2674
  createdAt: z115.coerce.date(),
2667
- updatedAt: z115.coerce.date(),
2668
- lastPublishedAt: z115.coerce.date(),
2669
- isDefault: z115.boolean(),
2670
- isPublic: z115.boolean(),
2675
+ updatedAt: z115.coerce.date()
2676
+ });
2677
+ var publishedDocEnvironments = ["Live", "Preview"];
2678
+ var PublishedDocEnvironment = z116.enum(publishedDocEnvironments);
2679
+ var PublishedDocsChecksums = z116.record(z116.string());
2680
+ var PublishedDocRoutingVersion = z116.enum(["1", "2"]);
2681
+ var PublishedDoc = z116.object({
2682
+ id: z116.string(),
2683
+ designSystemVersionId: z116.string(),
2684
+ createdAt: z116.coerce.date(),
2685
+ updatedAt: z116.coerce.date(),
2686
+ lastPublishedAt: z116.coerce.date(),
2687
+ isDefault: z116.boolean(),
2688
+ isPublic: z116.boolean(),
2671
2689
  environment: PublishedDocEnvironment,
2672
2690
  checksums: PublishedDocsChecksums,
2673
- storagePath: z115.string(),
2674
- wasMigrated: z115.boolean(),
2691
+ storagePath: z116.string(),
2692
+ wasMigrated: z116.boolean(),
2675
2693
  routingVersion: PublishedDocRoutingVersion,
2676
- usesLocalizations: z115.boolean(),
2677
- wasPublishedWithLocalizations: z115.boolean()
2678
- });
2679
- var DesignSystemVersion = z116.object({
2680
- id: z116.string(),
2681
- version: z116.string(),
2682
- createdAt: z116.date(),
2683
- designSystemId: z116.string(),
2684
- name: z116.string(),
2685
- comment: z116.string(),
2686
- isReadonly: z116.boolean(),
2687
- changeLog: z116.string(),
2688
- parentId: z116.string().optional()
2689
- });
2690
- var VersionCreationJobStatus = z116.enum(["Success", "InProgress", "Error"]);
2691
- var VersionCreationJob = z116.object({
2692
- id: z116.string(),
2693
- version: z116.string(),
2694
- designSystemId: z116.string(),
2695
- designSystemVersionId: nullishToOptional(z116.string()),
2694
+ usesLocalizations: z116.boolean(),
2695
+ wasPublishedWithLocalizations: z116.boolean()
2696
+ });
2697
+ var DesignSystemVersion = z117.object({
2698
+ id: z117.string(),
2699
+ version: z117.string(),
2700
+ createdAt: z117.date(),
2701
+ designSystemId: z117.string(),
2702
+ name: z117.string(),
2703
+ comment: z117.string(),
2704
+ isReadonly: z117.boolean(),
2705
+ changeLog: z117.string(),
2706
+ parentId: z117.string().optional()
2707
+ });
2708
+ var VersionCreationJobStatus = z117.enum(["Success", "InProgress", "Error"]);
2709
+ var VersionCreationJob = z117.object({
2710
+ id: z117.string(),
2711
+ version: z117.string(),
2712
+ designSystemId: z117.string(),
2713
+ designSystemVersionId: nullishToOptional(z117.string()),
2696
2714
  status: VersionCreationJobStatus,
2697
- errorMessage: nullishToOptional(z116.string())
2715
+ errorMessage: nullishToOptional(z117.string())
2698
2716
  });
2699
2717
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
2700
2718
  var BITBUCKET_MAX_LENGTH = 64;
2701
- var ExporterDestinationDocs = z117.object({
2719
+ var ExporterDestinationDocs = z118.object({
2702
2720
  environment: PublishedDocEnvironment
2703
2721
  });
2704
- var ExporterDestinationS3 = z117.object({});
2705
- var ExporterDestinationGithub = z117.object({
2706
- credentialId: z117.string().optional(),
2722
+ var ExporterDestinationS3 = z118.object({});
2723
+ var ExporterDestinationGithub = z118.object({
2724
+ credentialId: z118.string().optional(),
2707
2725
  // Repository
2708
- url: z117.string(),
2726
+ url: z118.string(),
2709
2727
  // Location
2710
- branch: z117.string(),
2711
- relativePath: nullishToOptional(z117.string()),
2728
+ branch: z118.string(),
2729
+ relativePath: nullishToOptional(z118.string()),
2712
2730
  // Legacy deprecated fields. Use `credentialId` instead
2713
- connectionId: nullishToOptional(z117.string()),
2714
- userId: nullishToOptional(z117.number())
2731
+ connectionId: nullishToOptional(z118.string()),
2732
+ userId: nullishToOptional(z118.number())
2715
2733
  });
2716
- var ExporterDestinationAzure = z117.object({
2717
- credentialId: z117.string().optional(),
2734
+ var ExporterDestinationAzure = z118.object({
2735
+ credentialId: z118.string().optional(),
2718
2736
  // Repository
2719
- organizationId: z117.string(),
2720
- projectId: z117.string(),
2721
- repositoryId: z117.string(),
2737
+ organizationId: z118.string(),
2738
+ projectId: z118.string(),
2739
+ repositoryId: z118.string(),
2722
2740
  // Location
2723
- branch: z117.string(),
2724
- relativePath: nullishToOptional(z117.string()),
2741
+ branch: z118.string(),
2742
+ relativePath: nullishToOptional(z118.string()),
2725
2743
  // Maybe not needed
2726
- url: nullishToOptional(z117.string()),
2744
+ url: nullishToOptional(z118.string()),
2727
2745
  // Legacy deprecated fields. Use `credentialId` instead
2728
- connectionId: nullishToOptional(z117.string()),
2729
- userId: nullishToOptional(z117.number())
2746
+ connectionId: nullishToOptional(z118.string()),
2747
+ userId: nullishToOptional(z118.number())
2730
2748
  });
2731
- var ExporterDestinationGitlab = z117.object({
2732
- credentialId: z117.string().optional(),
2749
+ var ExporterDestinationGitlab = z118.object({
2750
+ credentialId: z118.string().optional(),
2733
2751
  // Repository
2734
- projectId: z117.string(),
2752
+ projectId: z118.string(),
2735
2753
  // Location
2736
- branch: z117.string(),
2737
- relativePath: nullishToOptional(z117.string()),
2754
+ branch: z118.string(),
2755
+ relativePath: nullishToOptional(z118.string()),
2738
2756
  // Maybe not needed
2739
- url: nullishToOptional(z117.string()),
2757
+ url: nullishToOptional(z118.string()),
2740
2758
  // Legacy deprecated fields. Use `credentialId` instead
2741
- connectionId: nullishToOptional(z117.string()),
2742
- userId: nullishToOptional(z117.number())
2759
+ connectionId: nullishToOptional(z118.string()),
2760
+ userId: nullishToOptional(z118.number())
2743
2761
  });
2744
- var ExporterDestinationBitbucket = z117.object({
2745
- credentialId: z117.string().optional(),
2762
+ var ExporterDestinationBitbucket = z118.object({
2763
+ credentialId: z118.string().optional(),
2746
2764
  // Repository
2747
- workspaceSlug: z117.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2748
- projectKey: z117.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2749
- repoSlug: z117.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2765
+ workspaceSlug: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2766
+ projectKey: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2767
+ repoSlug: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2750
2768
  // Location
2751
- branch: z117.string(),
2752
- relativePath: nullishToOptional(z117.string()),
2769
+ branch: z118.string(),
2770
+ relativePath: nullishToOptional(z118.string()),
2753
2771
  // Legacy deprecated fields. Use `credentialId` instead
2754
- connectionId: nullishToOptional(z117.string()),
2755
- userId: nullishToOptional(z117.number())
2772
+ connectionId: nullishToOptional(z118.string()),
2773
+ userId: nullishToOptional(z118.number())
2756
2774
  });
2757
- var ExportDestinationsMap = z117.object({
2758
- webhookUrl: z117.string().optional(),
2775
+ var ExportDestinationsMap = z118.object({
2776
+ webhookUrl: z118.string().optional(),
2759
2777
  destinationSnDocs: ExporterDestinationDocs.optional(),
2760
2778
  destinationS3: ExporterDestinationS3.optional(),
2761
2779
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -2763,69 +2781,72 @@ var ExportDestinationsMap = z117.object({
2763
2781
  destinationGitlab: ExporterDestinationGitlab.optional(),
2764
2782
  destinationBitbucket: ExporterDestinationBitbucket.optional()
2765
2783
  });
2766
- var PipelineEventType = z118.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
2767
- var PipelineDestinationGitType = z118.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
2768
- var PipelineDestinationExtraType = z118.enum(["WebhookUrl", "S3", "Documentation"]);
2769
- var PipelineDestinationType = z118.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
2770
- var Pipeline = z118.object({
2771
- id: z118.string(),
2772
- name: z118.string(),
2784
+ var PipelineEventType = z119.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
2785
+ var PipelineDestinationGitType = z119.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
2786
+ var PipelineDestinationExtraType = z119.enum(["WebhookUrl", "S3", "Documentation"]);
2787
+ var PipelineDestinationType = z119.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
2788
+ var Pipeline = z119.object({
2789
+ id: z119.string(),
2790
+ name: z119.string(),
2773
2791
  eventType: PipelineEventType,
2774
- isEnabled: z118.boolean(),
2775
- workspaceId: z118.string(),
2776
- designSystemId: z118.string(),
2777
- exporterId: z118.string(),
2778
- brandPersistentId: z118.string().optional(),
2779
- themePersistentId: z118.string().optional(),
2792
+ isEnabled: z119.boolean(),
2793
+ workspaceId: z119.string(),
2794
+ designSystemId: z119.string(),
2795
+ exporterId: z119.string(),
2796
+ brandPersistentId: z119.string().optional(),
2797
+ themePersistentId: z119.string().optional(),
2780
2798
  // Destinations
2781
2799
  ...ExportDestinationsMap.shape
2782
2800
  });
2783
- var ExportJobDump = z119.object({
2784
- id: z119.string(),
2785
- createdAt: z119.coerce.date(),
2786
- finishedAt: z119.coerce.date(),
2787
- exportArtefacts: z119.string()
2801
+ var ExportJobDump = z120.object({
2802
+ id: z120.string(),
2803
+ createdAt: z120.coerce.date(),
2804
+ finishedAt: z120.coerce.date(),
2805
+ exportArtefacts: z120.string()
2788
2806
  });
2789
- var CodeIntegrationDump = z119.object({
2807
+ var CodeIntegrationDump = z120.object({
2790
2808
  exporters: Exporter.array(),
2791
2809
  pipelines: Pipeline.array(),
2792
2810
  exportJobs: ExportJobDump.array()
2793
2811
  });
2794
2812
  var DesignSystemVersionRoom = Entity.extend({
2795
- designSystemVersionId: z120.string(),
2796
- liveblocksId: z120.string()
2813
+ designSystemVersionId: z121.string(),
2814
+ liveblocksId: z121.string()
2797
2815
  });
2798
- var DesignSystemVersionRoomInternalSettings = z120.object({
2799
- routingVersion: z120.string()
2816
+ var DesignSystemVersionRoomInternalSettings = z121.object({
2817
+ routingVersion: z121.string(),
2818
+ isDraftFeatureAdopted: z121.boolean()
2800
2819
  });
2801
- var DesignSystemVersionRoomInitialState = z120.object({
2802
- pages: z120.array(DocumentationPageV2),
2803
- groups: z120.array(ElementGroup),
2820
+ var DesignSystemVersionRoomInitialState = z121.object({
2821
+ pages: z121.array(DocumentationPageV2),
2822
+ groups: z121.array(ElementGroup),
2823
+ documentationPublishedState: z121.array(DesignElementSnapshot),
2804
2824
  internalSettings: DesignSystemVersionRoomInternalSettings
2805
2825
  });
2806
- var DesignSystemVersionRoomUpdate = z120.object({
2807
- pages: z120.array(DocumentationPageV2),
2808
- groups: z120.array(ElementGroup),
2809
- deletedPageIds: z120.array(z120.string()),
2810
- deletedGroupIds: z120.array(z120.string())
2826
+ var DesignSystemVersionRoomUpdate = z121.object({
2827
+ pages: z121.array(DocumentationPageV2),
2828
+ groups: z121.array(ElementGroup),
2829
+ documentationPublishedState: z121.array(DesignElementSnapshot),
2830
+ deletedPageIds: z121.array(z121.string()),
2831
+ deletedGroupIds: z121.array(z121.string())
2811
2832
  });
2812
2833
  var DocumentationPageRoom = Entity.extend({
2813
- designSystemVersionId: z121.string(),
2814
- documentationPageId: z121.string(),
2815
- liveblocksId: z121.string(),
2816
- isDirty: z121.boolean()
2834
+ designSystemVersionId: z122.string(),
2835
+ documentationPageId: z122.string(),
2836
+ liveblocksId: z122.string(),
2837
+ isDirty: z122.boolean()
2817
2838
  });
2818
- var DocumentationPageRoomState = z121.object({
2819
- pageItems: z121.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
2839
+ var DocumentationPageRoomState = z122.object({
2840
+ pageItems: z122.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
2820
2841
  itemConfiguration: DocumentationItemConfigurationV2
2821
2842
  });
2822
- var DocumentationPageRoomRoomUpdate = z121.object({
2843
+ var DocumentationPageRoomRoomUpdate = z122.object({
2823
2844
  page: DocumentationPageV2,
2824
2845
  pageParent: ElementGroup
2825
2846
  });
2826
2847
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
2827
- pageItems: z121.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
2828
- blockDefinitions: z121.array(PageBlockDefinition)
2848
+ pageItems: z122.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
2849
+ blockDefinitions: z122.array(PageBlockDefinition)
2829
2850
  });
2830
2851
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
2831
2852
  RoomTypeEnum2["DocumentationPage"] = "documentation-page";
@@ -2833,28 +2854,28 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
2833
2854
  RoomTypeEnum2["Workspace"] = "workspace";
2834
2855
  return RoomTypeEnum2;
2835
2856
  })(RoomTypeEnum || {});
2836
- var RoomTypeSchema = z122.nativeEnum(RoomTypeEnum);
2857
+ var RoomTypeSchema = z123.nativeEnum(RoomTypeEnum);
2837
2858
  var RoomType = RoomTypeSchema.enum;
2838
2859
  var WorkspaceRoom = Entity.extend({
2839
- workspaceId: z123.string(),
2840
- liveblocksId: z123.string()
2860
+ workspaceId: z124.string(),
2861
+ liveblocksId: z124.string()
2841
2862
  });
2842
- var PublishedDocsDump = z124.object({
2863
+ var PublishedDocsDump = z125.object({
2843
2864
  documentation: PublishedDoc,
2844
2865
  pages: PublishedDocPage.array()
2845
2866
  });
2846
- var DocumentationThreadDump = z125.object({
2867
+ var DocumentationThreadDump = z126.object({
2847
2868
  thread: DocumentationCommentThread,
2848
2869
  comments: DocumentationComment.array()
2849
2870
  });
2850
- var DocumentationPageRoomDump = z125.object({
2871
+ var DocumentationPageRoomDump = z126.object({
2851
2872
  room: DocumentationPageRoom,
2852
2873
  threads: DocumentationThreadDump.array()
2853
2874
  });
2854
- var DesignSystemVersionMultiplayerDump = z125.object({
2875
+ var DesignSystemVersionMultiplayerDump = z126.object({
2855
2876
  documentationPages: DocumentationPageRoomDump.array()
2856
2877
  });
2857
- var DesignSystemVersionDump = z125.object({
2878
+ var DesignSystemVersionDump = z126.object({
2858
2879
  version: DesignSystemVersion,
2859
2880
  brands: Brand.array(),
2860
2881
  elements: DesignElement.array(),
@@ -2867,102 +2888,102 @@ var DesignSystemVersionDump = z125.object({
2867
2888
  publishedDocumentations: PublishedDocsDump.array(),
2868
2889
  assetReferences: AssetReference.array()
2869
2890
  });
2870
- var DesignSystemDump = z126.object({
2891
+ var DesignSystemDump = z127.object({
2871
2892
  designSystem: DesignSystem,
2872
2893
  dataSources: DataSource.array(),
2873
2894
  versions: DesignSystemVersionDump.array(),
2874
2895
  customDomain: CustomDomain.optional(),
2875
2896
  files: Asset.array()
2876
2897
  });
2877
- var IntegrationAuthType = z127.union([z127.literal("OAuth2"), z127.literal("PAT")]);
2878
- var ExternalServiceType = z127.union([
2879
- z127.literal("figma"),
2880
- z127.literal("github"),
2881
- z127.literal("azure"),
2882
- z127.literal("gitlab"),
2883
- z127.literal("bitbucket")
2898
+ var IntegrationAuthType = z128.union([z128.literal("OAuth2"), z128.literal("PAT")]);
2899
+ var ExternalServiceType = z128.union([
2900
+ z128.literal("figma"),
2901
+ z128.literal("github"),
2902
+ z128.literal("azure"),
2903
+ z128.literal("gitlab"),
2904
+ z128.literal("bitbucket")
2884
2905
  ]);
2885
- var IntegrationUserInfo = z127.object({
2886
- id: z127.string(),
2887
- handle: z127.string().optional(),
2888
- avatarUrl: z127.string().optional(),
2889
- email: z127.string().optional(),
2906
+ var IntegrationUserInfo = z128.object({
2907
+ id: z128.string(),
2908
+ handle: z128.string().optional(),
2909
+ avatarUrl: z128.string().optional(),
2910
+ email: z128.string().optional(),
2890
2911
  authType: IntegrationAuthType.optional(),
2891
- customUrl: z127.string().optional()
2912
+ customUrl: z128.string().optional()
2892
2913
  });
2893
- var UserLinkedIntegrations = z127.object({
2914
+ var UserLinkedIntegrations = z128.object({
2894
2915
  figma: IntegrationUserInfo.optional(),
2895
2916
  github: IntegrationUserInfo.array().optional(),
2896
2917
  azure: IntegrationUserInfo.array().optional(),
2897
2918
  gitlab: IntegrationUserInfo.array().optional(),
2898
2919
  bitbucket: IntegrationUserInfo.array().optional()
2899
2920
  });
2900
- var UserAnalyticsCleanupSchedule = z128.object({
2901
- userId: z128.string(),
2902
- createdAt: z128.coerce.date(),
2903
- deleteAt: z128.coerce.date()
2921
+ var UserAnalyticsCleanupSchedule = z129.object({
2922
+ userId: z129.string(),
2923
+ createdAt: z129.coerce.date(),
2924
+ deleteAt: z129.coerce.date()
2904
2925
  });
2905
2926
  var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
2906
2927
  createdAt: true
2907
2928
  });
2908
- var CreateUserInput = z129.object({
2909
- email: z129.string(),
2910
- name: z129.string(),
2911
- username: z129.string()
2929
+ var CreateUserInput = z130.object({
2930
+ email: z130.string(),
2931
+ name: z130.string(),
2932
+ username: z130.string()
2912
2933
  });
2913
- var UserIdentity = z130.object({
2914
- id: z130.string(),
2915
- userId: z130.string()
2916
- });
2917
- var UserMinified = z131.object({
2934
+ var UserIdentity = z131.object({
2918
2935
  id: z131.string(),
2919
- name: z131.string(),
2920
- email: z131.string(),
2921
- avatar: z131.string().optional()
2936
+ userId: z131.string()
2937
+ });
2938
+ var UserMinified = z132.object({
2939
+ id: z132.string(),
2940
+ name: z132.string(),
2941
+ email: z132.string(),
2942
+ avatar: z132.string().optional()
2922
2943
  });
2923
- var LiveblocksNotificationSettings = z132.object({
2924
- sendCommentNotificationEmails: z132.boolean()
2944
+ var LiveblocksNotificationSettings = z133.object({
2945
+ sendCommentNotificationEmails: z133.boolean()
2925
2946
  });
2926
- var UserNotificationSettings = z132.object({
2947
+ var UserNotificationSettings = z133.object({
2927
2948
  liveblocksNotificationSettings: LiveblocksNotificationSettings
2928
2949
  });
2929
- var UserOnboardingDepartment = z133.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
2930
- var UserOnboardingJobLevel = z133.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
2931
- var UserOnboarding = z133.object({
2932
- companyName: z133.string().optional(),
2933
- numberOfPeopleInOrg: z133.string().optional(),
2934
- numberOfPeopleInDesignTeam: z133.string().optional(),
2950
+ var UserOnboardingDepartment = z134.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
2951
+ var UserOnboardingJobLevel = z134.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
2952
+ var UserOnboarding = z134.object({
2953
+ companyName: z134.string().optional(),
2954
+ numberOfPeopleInOrg: z134.string().optional(),
2955
+ numberOfPeopleInDesignTeam: z134.string().optional(),
2935
2956
  department: UserOnboardingDepartment.optional(),
2936
- jobTitle: z133.string().optional(),
2937
- phase: z133.string().optional(),
2957
+ jobTitle: z134.string().optional(),
2958
+ phase: z134.string().optional(),
2938
2959
  jobLevel: UserOnboardingJobLevel.optional(),
2939
- designSystemName: z133.string().optional(),
2940
- defaultDestination: z133.string().optional(),
2941
- figmaUrl: z133.string().optional()
2942
- });
2943
- var UserProfile = z133.object({
2944
- name: z133.string(),
2945
- avatar: z133.string().optional(),
2946
- nickname: z133.string().optional(),
2960
+ designSystemName: z134.string().optional(),
2961
+ defaultDestination: z134.string().optional(),
2962
+ figmaUrl: z134.string().optional()
2963
+ });
2964
+ var UserProfile = z134.object({
2965
+ name: z134.string(),
2966
+ avatar: z134.string().optional(),
2967
+ nickname: z134.string().optional(),
2947
2968
  onboarding: UserOnboarding.optional()
2948
2969
  });
2949
2970
  var UserProfileUpdate = UserProfile.partial().omit({
2950
2971
  avatar: true
2951
2972
  });
2952
- var UserTest = z134.object({
2953
- id: z134.string(),
2954
- email: z134.string()
2955
- });
2956
- var User = z135.object({
2973
+ var UserTest = z135.object({
2957
2974
  id: z135.string(),
2958
- email: z135.string(),
2959
- emailVerified: z135.boolean(),
2960
- createdAt: z135.coerce.date(),
2961
- trialExpiresAt: z135.coerce.date().optional(),
2975
+ email: z135.string()
2976
+ });
2977
+ var User = z136.object({
2978
+ id: z136.string(),
2979
+ email: z136.string(),
2980
+ emailVerified: z136.boolean(),
2981
+ createdAt: z136.coerce.date(),
2982
+ trialExpiresAt: z136.coerce.date().optional(),
2962
2983
  profile: UserProfile,
2963
2984
  linkedIntegrations: UserLinkedIntegrations.optional(),
2964
- loggedOutAt: z135.coerce.date().optional(),
2965
- isProtected: z135.boolean()
2985
+ loggedOutAt: z136.coerce.date().optional(),
2986
+ isProtected: z136.boolean()
2966
2987
  });
2967
2988
  var SupernovaException = class _SupernovaException extends Error {
2968
2989
  //
@@ -3071,25 +3092,25 @@ function groupBy(items, keyFn) {
3071
3092
  }
3072
3093
  return result;
3073
3094
  }
3074
- var ContentLoadInstruction = z136.object({
3075
- from: z136.string(),
3076
- to: z136.string(),
3077
- authorizationHeaderKvsId: z136.string().optional(),
3078
- timeout: z136.number().optional()
3095
+ var ContentLoadInstruction = z137.object({
3096
+ from: z137.string(),
3097
+ to: z137.string(),
3098
+ authorizationHeaderKvsId: z137.string().optional(),
3099
+ timeout: z137.number().optional()
3079
3100
  });
3080
- var ContentLoaderPayload = z136.object({
3081
- type: z136.literal("Single"),
3101
+ var ContentLoaderPayload = z137.object({
3102
+ type: z137.literal("Single"),
3082
3103
  instruction: ContentLoadInstruction
3083
3104
  }).or(
3084
- z136.object({
3085
- type: z136.literal("Multiple"),
3086
- loadingChunkSize: z136.number().optional(),
3087
- instructions: z136.array(ContentLoadInstruction)
3105
+ z137.object({
3106
+ type: z137.literal("Multiple"),
3107
+ loadingChunkSize: z137.number().optional(),
3108
+ instructions: z137.array(ContentLoadInstruction)
3088
3109
  })
3089
3110
  ).or(
3090
- z136.object({
3091
- type: z136.literal("S3"),
3092
- location: z136.string()
3111
+ z137.object({
3112
+ type: z137.literal("S3"),
3113
+ location: z137.string()
3093
3114
  })
3094
3115
  );
3095
3116
  function slugify(str, options) {
@@ -3717,43 +3738,43 @@ var RESERVED_SLUGS = [
3717
3738
  ];
3718
3739
  var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
3719
3740
  var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
3720
- var IntegrationDesignSystem = z137.object({
3721
- designSystemId: z137.string(),
3722
- brandId: z137.string(),
3723
- title: z137.string().optional(),
3724
- userId: z137.string().optional(),
3725
- date: z137.coerce.date().optional()
3726
- });
3727
- var IntegrationCredentialsType = z137.enum(["OAuth2", "PAT", "GithubApp"]);
3728
- var IntegrationCredentialsState = z137.enum(["Active", "Inactive"]);
3729
- var IntegrationCredentialsProfile = z137.object({
3730
- id: nullishToOptional(z137.string()),
3731
- email: nullishToOptional(z137.string()),
3732
- handle: nullishToOptional(z137.string()),
3733
- type: nullishToOptional(z137.string()),
3734
- avatarUrl: nullishToOptional(z137.string()),
3735
- organization: nullishToOptional(z137.string()),
3736
- collection: nullishToOptional(z137.string())
3737
- });
3738
- var IntegrationCredentials = z137.object({
3739
- id: z137.string(),
3741
+ var IntegrationDesignSystem = z138.object({
3742
+ designSystemId: z138.string(),
3743
+ brandId: z138.string(),
3744
+ title: z138.string().optional(),
3745
+ userId: z138.string().optional(),
3746
+ date: z138.coerce.date().optional()
3747
+ });
3748
+ var IntegrationCredentialsType = z138.enum(["OAuth2", "PAT", "GithubApp"]);
3749
+ var IntegrationCredentialsState = z138.enum(["Active", "Inactive"]);
3750
+ var IntegrationCredentialsProfile = z138.object({
3751
+ id: nullishToOptional(z138.string()),
3752
+ email: nullishToOptional(z138.string()),
3753
+ handle: nullishToOptional(z138.string()),
3754
+ type: nullishToOptional(z138.string()),
3755
+ avatarUrl: nullishToOptional(z138.string()),
3756
+ organization: nullishToOptional(z138.string()),
3757
+ collection: nullishToOptional(z138.string())
3758
+ });
3759
+ var IntegrationCredentials = z138.object({
3760
+ id: z138.string(),
3740
3761
  type: IntegrationCredentialsType,
3741
- integrationId: z137.string(),
3742
- accessToken: z137.string(),
3743
- userId: z137.string(),
3744
- createdAt: z137.coerce.date(),
3745
- refreshToken: z137.string().optional(),
3746
- tokenName: z137.string().optional(),
3747
- expiresAt: z137.coerce.date().optional(),
3748
- refreshedAt: z137.coerce.date().optional(),
3749
- username: z137.string().optional(),
3750
- appInstallationId: z137.string().optional(),
3762
+ integrationId: z138.string(),
3763
+ accessToken: z138.string(),
3764
+ userId: z138.string(),
3765
+ createdAt: z138.coerce.date(),
3766
+ refreshToken: z138.string().optional(),
3767
+ tokenName: z138.string().optional(),
3768
+ expiresAt: z138.coerce.date().optional(),
3769
+ refreshedAt: z138.coerce.date().optional(),
3770
+ username: z138.string().optional(),
3771
+ appInstallationId: z138.string().optional(),
3751
3772
  profile: IntegrationCredentialsProfile.optional(),
3752
- customUrl: z137.string().optional(),
3773
+ customUrl: z138.string().optional(),
3753
3774
  state: IntegrationCredentialsState,
3754
3775
  user: UserMinified.optional()
3755
3776
  });
3756
- var ExtendedIntegrationType = z137.enum([
3777
+ var ExtendedIntegrationType = z138.enum([
3757
3778
  "Figma",
3758
3779
  "Github",
3759
3780
  "Gitlab",
@@ -3764,26 +3785,26 @@ var ExtendedIntegrationType = z137.enum([
3764
3785
  ]);
3765
3786
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
3766
3787
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
3767
- var Integration = z137.object({
3768
- id: z137.string(),
3769
- workspaceId: z137.string(),
3788
+ var Integration = z138.object({
3789
+ id: z138.string(),
3790
+ workspaceId: z138.string(),
3770
3791
  type: IntegrationType,
3771
- createdAt: z137.coerce.date(),
3772
- integrationCredentials: z137.array(IntegrationCredentials).optional()
3773
- });
3774
- var IntegrationToken = z137.object({
3775
- access_token: z137.string(),
3776
- refresh_token: z137.string().optional(),
3777
- expires_in: z137.union([z137.number().optional(), z137.string().optional()]),
3778
- token_type: z137.string().optional(),
3779
- token_name: z137.string().optional(),
3780
- token_azure_organization_name: z137.string().optional(),
3792
+ createdAt: z138.coerce.date(),
3793
+ integrationCredentials: z138.array(IntegrationCredentials).optional()
3794
+ });
3795
+ var IntegrationToken = z138.object({
3796
+ access_token: z138.string(),
3797
+ refresh_token: z138.string().optional(),
3798
+ expires_in: z138.union([z138.number().optional(), z138.string().optional()]),
3799
+ token_type: z138.string().optional(),
3800
+ token_name: z138.string().optional(),
3801
+ token_azure_organization_name: z138.string().optional(),
3781
3802
  // Azure Cloud PAT only
3782
- token_azure_collection_name: z137.string().optional(),
3803
+ token_azure_collection_name: z138.string().optional(),
3783
3804
  // Azure Server PAT only
3784
- token_bitbucket_username: z137.string().optional(),
3805
+ token_bitbucket_username: z138.string().optional(),
3785
3806
  // Bitbucket only
3786
- custom_url: z137.string().optional().transform((value) => {
3807
+ custom_url: z138.string().optional().transform((value) => {
3787
3808
  if (!value?.trim())
3788
3809
  return void 0;
3789
3810
  return formatCustomUrl(value);
@@ -3819,64 +3840,64 @@ function formatCustomUrl(url) {
3819
3840
  }
3820
3841
  return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
3821
3842
  }
3822
- var WorkspaceDump = z138.object({
3843
+ var WorkspaceDump = z139.object({
3823
3844
  workspace: Workspace,
3824
3845
  designSystems: DesignSystemDump.array(),
3825
3846
  codeIntegration: CodeIntegrationDump,
3826
3847
  integrations: Integration.array()
3827
3848
  });
3828
- var UserDump = z139.object({
3849
+ var UserDump = z140.object({
3829
3850
  user: User,
3830
3851
  workspaces: WorkspaceDump.array()
3831
3852
  });
3832
- var NpmProxyToken = z140.object({
3833
- access: z140.string(),
3834
- expiresAt: z140.number()
3853
+ var NpmProxyToken = z141.object({
3854
+ access: z141.string(),
3855
+ expiresAt: z141.number()
3835
3856
  });
3836
- var SessionData = z140.object({
3837
- returnToUrl: z140.string().optional(),
3857
+ var SessionData = z141.object({
3858
+ returnToUrl: z141.string().optional(),
3838
3859
  npmProxyToken: NpmProxyToken.optional()
3839
3860
  });
3840
- var Session = z140.object({
3841
- id: z140.string(),
3842
- expiresAt: z140.coerce.date(),
3843
- userId: z140.string().nullable(),
3861
+ var Session = z141.object({
3862
+ id: z141.string(),
3863
+ expiresAt: z141.coerce.date(),
3864
+ userId: z141.string().nullable(),
3844
3865
  data: SessionData
3845
3866
  });
3846
- var AuthTokens = z140.object({
3847
- access: z140.string(),
3848
- refresh: z140.string()
3867
+ var AuthTokens = z141.object({
3868
+ access: z141.string(),
3869
+ refresh: z141.string()
3849
3870
  });
3850
- var UserSession = z140.object({
3871
+ var UserSession = z141.object({
3851
3872
  session: Session,
3852
3873
  user: User.nullable()
3853
3874
  });
3854
- var ExportJobDocumentationContext = z141.object({
3855
- isSingleVersionDocs: z141.boolean(),
3856
- versionSlug: z141.string(),
3875
+ var ExportJobDocumentationContext = z142.object({
3876
+ isSingleVersionDocs: z142.boolean(),
3877
+ versionSlug: z142.string(),
3857
3878
  environment: PublishedDocEnvironment
3858
3879
  });
3859
- var ExportJobContext = z141.object({
3860
- apiUrl: z141.string(),
3861
- accessToken: z141.string(),
3862
- designSystemId: z141.string(),
3863
- designSystemName: z141.string(),
3864
- exporterId: z141.string(),
3865
- versionId: z141.string(),
3866
- brandId: z141.string().optional(),
3867
- themeId: z141.string().optional(),
3868
- exporterName: z141.string(),
3869
- exporterPackageUrl: z141.string(),
3880
+ var ExportJobContext = z142.object({
3881
+ apiUrl: z142.string(),
3882
+ accessToken: z142.string(),
3883
+ designSystemId: z142.string(),
3884
+ designSystemName: z142.string(),
3885
+ exporterId: z142.string(),
3886
+ versionId: z142.string(),
3887
+ brandId: z142.string().optional(),
3888
+ themeId: z142.string().optional(),
3889
+ exporterName: z142.string(),
3890
+ exporterPackageUrl: z142.string(),
3870
3891
  exporterPropertyValues: ExporterPropertyValue.array(),
3871
3892
  documentation: ExportJobDocumentationContext.optional()
3872
3893
  });
3873
- var ExporterFunctionPayload = z142.object({
3874
- exportJobId: z142.string(),
3875
- exportContextId: z142.string(),
3876
- designSystemId: z142.string(),
3877
- workspaceId: z142.string()
3894
+ var ExporterFunctionPayload = z143.object({
3895
+ exportJobId: z143.string(),
3896
+ exportContextId: z143.string(),
3897
+ designSystemId: z143.string(),
3898
+ workspaceId: z143.string()
3878
3899
  });
3879
- var ExportJobDestinationType = z143.enum([
3900
+ var ExportJobDestinationType = z144.enum([
3880
3901
  "s3",
3881
3902
  "webhookUrl",
3882
3903
  "github",
@@ -3885,30 +3906,30 @@ var ExportJobDestinationType = z143.enum([
3885
3906
  "gitlab",
3886
3907
  "bitbucket"
3887
3908
  ]);
3888
- var ExportJobStatus = z143.enum(["InProgress", "Success", "Failed", "Timeout"]);
3889
- var ExportJobLogEntryType = z143.enum(["success", "info", "warning", "error", "user"]);
3890
- var ExportJobLogEntry = z143.object({
3891
- id: z143.string().optional(),
3892
- time: z143.coerce.date(),
3909
+ var ExportJobStatus = z144.enum(["InProgress", "Success", "Failed", "Timeout"]);
3910
+ var ExportJobLogEntryType = z144.enum(["success", "info", "warning", "error", "user"]);
3911
+ var ExportJobLogEntry = z144.object({
3912
+ id: z144.string().optional(),
3913
+ time: z144.coerce.date(),
3893
3914
  type: ExportJobLogEntryType,
3894
- message: z143.string()
3915
+ message: z144.string()
3895
3916
  });
3896
- var ExportJobPullRequestDestinationResult = z143.object({
3897
- pullRequestUrl: z143.string()
3917
+ var ExportJobPullRequestDestinationResult = z144.object({
3918
+ pullRequestUrl: z144.string()
3898
3919
  });
3899
- var ExportJobS3DestinationResult = z143.object({
3900
- bucket: z143.string(),
3901
- urlPrefix: z143.string().optional(),
3902
- path: z143.string(),
3903
- files: z143.array(z143.string()),
3904
- url: nullishToOptional(z143.string()),
3905
- urls: nullishToOptional(z143.string().array())
3920
+ var ExportJobS3DestinationResult = z144.object({
3921
+ bucket: z144.string(),
3922
+ urlPrefix: z144.string().optional(),
3923
+ path: z144.string(),
3924
+ files: z144.array(z144.string()),
3925
+ url: nullishToOptional(z144.string()),
3926
+ urls: nullishToOptional(z144.string().array())
3906
3927
  });
3907
- var ExportJobDocsDestinationResult = z143.object({
3908
- url: z143.string()
3928
+ var ExportJobDocsDestinationResult = z144.object({
3929
+ url: z144.string()
3909
3930
  });
3910
- var ExportJobResult = z143.object({
3911
- error: z143.string().optional(),
3931
+ var ExportJobResult = z144.object({
3932
+ error: z144.string().optional(),
3912
3933
  s3: nullishToOptional(ExportJobS3DestinationResult),
3913
3934
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
3914
3935
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -3917,21 +3938,21 @@ var ExportJobResult = z143.object({
3917
3938
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
3918
3939
  logs: nullishToOptional(ExportJobLogEntry.array())
3919
3940
  });
3920
- var ExportJob = z143.object({
3921
- id: z143.string(),
3922
- createdAt: z143.coerce.date(),
3923
- finishedAt: z143.coerce.date().optional(),
3924
- designSystemId: z143.string(),
3925
- designSystemVersionId: z143.string(),
3926
- workspaceId: z143.string(),
3927
- scheduleId: z143.string().nullish(),
3928
- exporterId: z143.string(),
3929
- brandId: z143.string().optional(),
3930
- themeId: z143.string().optional(),
3931
- estimatedExecutionTime: z143.number().optional(),
3941
+ var ExportJob = z144.object({
3942
+ id: z144.string(),
3943
+ createdAt: z144.coerce.date(),
3944
+ finishedAt: z144.coerce.date().optional(),
3945
+ designSystemId: z144.string(),
3946
+ designSystemVersionId: z144.string(),
3947
+ workspaceId: z144.string(),
3948
+ scheduleId: z144.string().nullish(),
3949
+ exporterId: z144.string(),
3950
+ brandId: z144.string().optional(),
3951
+ themeId: z144.string().optional(),
3952
+ estimatedExecutionTime: z144.number().optional(),
3932
3953
  status: ExportJobStatus,
3933
3954
  result: ExportJobResult.optional(),
3934
- createdByUserId: z143.string().optional(),
3955
+ createdByUserId: z144.string().optional(),
3935
3956
  // Destinations
3936
3957
  ...ExportDestinationsMap.shape
3937
3958
  });
@@ -3945,24 +3966,24 @@ var ExportJobFindByFilter = ExportJob.pick({
3945
3966
  themeId: true,
3946
3967
  brandId: true
3947
3968
  }).extend({
3948
- destinations: z143.array(ExportJobDestinationType),
3969
+ destinations: z144.array(ExportJobDestinationType),
3949
3970
  docsEnvironment: PublishedDocEnvironment
3950
3971
  }).partial();
3951
- var ExporterWorkspaceMembershipRole = z144.enum(["Owner", "OwnerArchived", "User"]);
3952
- var ExporterWorkspaceMembership = z145.object({
3953
- id: z145.string(),
3954
- workspaceId: z145.string(),
3955
- exporterId: z145.string(),
3972
+ var ExporterWorkspaceMembershipRole = z145.enum(["Owner", "OwnerArchived", "User"]);
3973
+ var ExporterWorkspaceMembership = z146.object({
3974
+ id: z146.string(),
3975
+ workspaceId: z146.string(),
3976
+ exporterId: z146.string(),
3956
3977
  role: ExporterWorkspaceMembershipRole
3957
3978
  });
3958
- var FlaggedFeature = z146.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
3959
- var FeatureFlagMap = z146.record(FlaggedFeature, z146.boolean());
3960
- var FeatureFlag = z146.object({
3961
- id: z146.string(),
3979
+ var FlaggedFeature = z147.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
3980
+ var FeatureFlagMap = z147.record(FlaggedFeature, z147.boolean());
3981
+ var FeatureFlag = z147.object({
3982
+ id: z147.string(),
3962
3983
  feature: FlaggedFeature,
3963
- createdAt: z146.coerce.date(),
3964
- enabled: z146.boolean(),
3965
- designSystemId: z146.string().optional()
3984
+ createdAt: z147.coerce.date(),
3985
+ enabled: z147.boolean(),
3986
+ designSystemId: z147.string().optional()
3966
3987
  });
3967
3988
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
3968
3989
  OAuthProviderNames2["Figma"] = "figma";
@@ -3972,173 +3993,173 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
3972
3993
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
3973
3994
  return OAuthProviderNames2;
3974
3995
  })(OAuthProviderNames || {});
3975
- var OAuthProviderSchema = z147.nativeEnum(OAuthProviderNames);
3996
+ var OAuthProviderSchema = z148.nativeEnum(OAuthProviderNames);
3976
3997
  var OAuthProvider = OAuthProviderSchema.enum;
3977
- var ExternalOAuthRequest = z148.object({
3978
- id: z148.string(),
3998
+ var ExternalOAuthRequest = z149.object({
3999
+ id: z149.string(),
3979
4000
  provider: OAuthProviderSchema,
3980
- userId: z148.string(),
3981
- state: z148.string(),
3982
- createdAt: z148.coerce.date()
4001
+ userId: z149.string(),
4002
+ state: z149.string(),
4003
+ createdAt: z149.coerce.date()
3983
4004
  });
3984
- var GitObjectsQuery = z149.object({
3985
- organization: z149.string().optional(),
4005
+ var GitObjectsQuery = z150.object({
4006
+ organization: z150.string().optional(),
3986
4007
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
3987
- project: z149.string().optional(),
4008
+ project: z150.string().optional(),
3988
4009
  // Only for Bitbucket and Azure
3989
- repository: z149.string().optional(),
4010
+ repository: z150.string().optional(),
3990
4011
  // For all providers. For Gitlab, it's called "project".
3991
- branch: z149.string().optional(),
4012
+ branch: z150.string().optional(),
3992
4013
  // For all providers.
3993
- user: z149.string().optional()
4014
+ user: z150.string().optional()
3994
4015
  // Gitlab user
3995
4016
  });
3996
- var GitOrganization = z149.object({
3997
- id: z149.string(),
3998
- name: z149.string(),
3999
- url: z149.string(),
4000
- slug: z149.string()
4017
+ var GitOrganization = z150.object({
4018
+ id: z150.string(),
4019
+ name: z150.string(),
4020
+ url: z150.string(),
4021
+ slug: z150.string()
4001
4022
  });
4002
- var GitProject = z149.object({
4003
- id: z149.string(),
4004
- name: z149.string(),
4005
- url: z149.string(),
4006
- slug: z149.string()
4023
+ var GitProject = z150.object({
4024
+ id: z150.string(),
4025
+ name: z150.string(),
4026
+ url: z150.string(),
4027
+ slug: z150.string()
4007
4028
  });
4008
- var GitRepository = z149.object({
4009
- id: z149.string(),
4010
- name: z149.string(),
4011
- url: z149.string(),
4012
- slug: z149.string(),
4029
+ var GitRepository = z150.object({
4030
+ id: z150.string(),
4031
+ name: z150.string(),
4032
+ url: z150.string(),
4033
+ slug: z150.string(),
4013
4034
  /**
4014
4035
  * Can be undefined when:
4015
4036
  * - there are no branches in the repository yet
4016
4037
  * - Git provider doesn't expose this information on a repository via their API
4017
4038
  */
4018
- defaultBranch: z149.string().optional()
4039
+ defaultBranch: z150.string().optional()
4019
4040
  });
4020
- var GitBranch = z149.object({
4021
- name: z149.string(),
4022
- lastCommitId: z149.string()
4041
+ var GitBranch = z150.object({
4042
+ name: z150.string(),
4043
+ lastCommitId: z150.string()
4023
4044
  });
4024
- var IntegrationTokenSchemaOld = z150.object({
4025
- id: z150.string(),
4026
- provider: OAuthProviderSchema,
4027
- scope: z150.string(),
4028
- userId: z150.string(),
4029
- accessToken: z150.string(),
4030
- refreshToken: z150.string(),
4031
- expiresAt: z150.coerce.date(),
4032
- externalUserId: z150.string().nullish()
4033
- });
4034
- var WorkspaceOAuthRequestSchema = z151.object({
4045
+ var IntegrationTokenSchemaOld = z151.object({
4035
4046
  id: z151.string(),
4036
- workspaceId: z151.string(),
4037
4047
  provider: OAuthProviderSchema,
4048
+ scope: z151.string(),
4038
4049
  userId: z151.string(),
4039
- createdAt: z151.coerce.date()
4050
+ accessToken: z151.string(),
4051
+ refreshToken: z151.string(),
4052
+ expiresAt: z151.coerce.date(),
4053
+ externalUserId: z151.string().nullish()
4054
+ });
4055
+ var WorkspaceOAuthRequestSchema = z152.object({
4056
+ id: z152.string(),
4057
+ workspaceId: z152.string(),
4058
+ provider: OAuthProviderSchema,
4059
+ userId: z152.string(),
4060
+ createdAt: z152.coerce.date()
4040
4061
  });
4041
- var AnyRecord = z152.record(z152.any());
4062
+ var AnyRecord = z153.record(z153.any());
4042
4063
  var NpmPackageVersionDist = AnyRecord.and(
4043
- z152.object({
4044
- tarball: z152.string()
4064
+ z153.object({
4065
+ tarball: z153.string()
4045
4066
  })
4046
4067
  );
4047
4068
  var NpmPackageVersion = AnyRecord.and(
4048
- z152.object({
4069
+ z153.object({
4049
4070
  dist: NpmPackageVersionDist
4050
4071
  })
4051
4072
  );
4052
4073
  var NpmPackage = AnyRecord.and(
4053
- z152.object({
4054
- _id: z152.string(),
4055
- name: z152.string(),
4074
+ z153.object({
4075
+ _id: z153.string(),
4076
+ name: z153.string(),
4056
4077
  // e.g. "latest": "1.2.3"
4057
- "dist-tags": z152.record(z152.string(), z152.string()),
4078
+ "dist-tags": z153.record(z153.string(), z153.string()),
4058
4079
  // "1.2.3": {...}
4059
- versions: z152.record(NpmPackageVersion)
4080
+ versions: z153.record(NpmPackageVersion)
4060
4081
  })
4061
4082
  );
4062
- var NpmProxyTokenPayload = z153.object({
4063
- npmProxyRegistryConfigId: z153.string()
4083
+ var NpmProxyTokenPayload = z154.object({
4084
+ npmProxyRegistryConfigId: z154.string()
4064
4085
  });
4065
- var WorkspaceRoleSchema = z154.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
4086
+ var WorkspaceRoleSchema = z155.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
4066
4087
  var WorkspaceRole = WorkspaceRoleSchema.enum;
4067
4088
  var MAX_MEMBERS_COUNT = 100;
4068
- var UserInvite = z155.object({
4069
- email: z155.string().email().trim().transform((value) => value.toLowerCase()),
4089
+ var UserInvite = z156.object({
4090
+ email: z156.string().email().trim().transform((value) => value.toLowerCase()),
4070
4091
  role: WorkspaceRoleSchema
4071
4092
  });
4072
- var UserInvites = z155.array(UserInvite).max(MAX_MEMBERS_COUNT);
4073
- var WorkspaceConfigurationUpdate = z156.object({
4074
- id: z156.string(),
4093
+ var UserInvites = z156.array(UserInvite).max(MAX_MEMBERS_COUNT);
4094
+ var WorkspaceConfigurationUpdate = z157.object({
4095
+ id: z157.string(),
4075
4096
  ipWhitelist: WorkspaceIpSettings.optional(),
4076
4097
  sso: SsoProvider.optional(),
4077
4098
  npmRegistrySettings: NpmRegistryConfig.optional(),
4078
4099
  profile: WorkspaceProfileUpdate.optional()
4079
4100
  });
4080
- var WorkspaceContext = z157.object({
4081
- workspaceId: z157.string(),
4101
+ var WorkspaceContext = z158.object({
4102
+ workspaceId: z158.string(),
4082
4103
  product: ProductCodeSchema,
4083
4104
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4084
- publicDesignSystem: z157.boolean().optional()
4105
+ publicDesignSystem: z158.boolean().optional()
4085
4106
  });
4086
4107
  var WORKSPACE_NAME_MIN_LENGTH = 2;
4087
4108
  var WORKSPACE_NAME_MAX_LENGTH = 64;
4088
4109
  var HANDLE_MIN_LENGTH = 2;
4089
4110
  var HANDLE_MAX_LENGTH = 64;
4090
- var CreateWorkspaceInput = z158.object({
4091
- name: z158.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4111
+ var CreateWorkspaceInput = z159.object({
4112
+ name: z159.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4092
4113
  product: ProductCodeSchema,
4093
- priceId: z158.string(),
4094
- billingEmail: z158.string().email().optional(),
4095
- handle: z158.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
4114
+ priceId: z159.string(),
4115
+ billingEmail: z159.string().email().optional(),
4116
+ handle: z159.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
4096
4117
  invites: UserInvites.optional(),
4097
- promoCode: z158.string().optional(),
4118
+ promoCode: z159.string().optional(),
4098
4119
  status: InternalStatusSchema.optional(),
4099
4120
  planInterval: BillingIntervalSchema.optional(),
4100
- seats: z158.number().optional(),
4101
- seatLimit: z158.number().optional(),
4121
+ seats: z159.number().optional(),
4122
+ seatLimit: z159.number().optional(),
4102
4123
  card: CardSchema.optional(),
4103
4124
  sso: SsoProvider.optional(),
4104
4125
  npmRegistrySettings: NpmRegistryConfig.optional(),
4105
4126
  ipWhitelist: WorkspaceIpSettings.optional()
4106
4127
  });
4107
- var WorkspaceInvitation = z159.object({
4108
- id: z159.string(),
4109
- email: z159.string().email(),
4110
- createdAt: z159.coerce.date(),
4111
- resentAt: z159.coerce.date().nullish(),
4112
- role: z159.nativeEnum(WorkspaceRole),
4113
- workspaceId: z159.string(),
4114
- invitedBy: z159.string()
4115
- });
4116
- var WorkspaceMembership = z160.object({
4128
+ var WorkspaceInvitation = z160.object({
4117
4129
  id: z160.string(),
4118
- userId: z160.string(),
4130
+ email: z160.string().email(),
4131
+ createdAt: z160.coerce.date(),
4132
+ resentAt: z160.coerce.date().nullish(),
4133
+ role: z160.nativeEnum(WorkspaceRole),
4119
4134
  workspaceId: z160.string(),
4120
- workspaceRole: z160.nativeEnum(WorkspaceRole),
4135
+ invitedBy: z160.string()
4136
+ });
4137
+ var WorkspaceMembership = z161.object({
4138
+ id: z161.string(),
4139
+ userId: z161.string(),
4140
+ workspaceId: z161.string(),
4141
+ workspaceRole: z161.nativeEnum(WorkspaceRole),
4121
4142
  notificationSettings: UserNotificationSettings
4122
4143
  });
4123
- var UpdateMembershipRolesInput = z160.object({
4124
- members: z160.array(
4125
- z160.object({
4126
- userId: z160.string(),
4127
- role: z160.nativeEnum(WorkspaceRole)
4144
+ var UpdateMembershipRolesInput = z161.object({
4145
+ members: z161.array(
4146
+ z161.object({
4147
+ userId: z161.string(),
4148
+ role: z161.nativeEnum(WorkspaceRole)
4128
4149
  })
4129
4150
  )
4130
4151
  });
4131
- var PersonalAccessToken = z161.object({
4132
- id: z161.string(),
4133
- userId: z161.string(),
4134
- workspaceId: z161.string().optional(),
4152
+ var PersonalAccessToken = z162.object({
4153
+ id: z162.string(),
4154
+ userId: z162.string(),
4155
+ workspaceId: z162.string().optional(),
4135
4156
  workspaceRole: WorkspaceRoleSchema.optional(),
4136
- name: z161.string(),
4137
- hidden: z161.boolean(),
4138
- token: z161.string(),
4139
- scope: z161.string().optional(),
4140
- createdAt: z161.coerce.date(),
4141
- expireAt: z161.coerce.date().optional()
4157
+ name: z162.string(),
4158
+ hidden: z162.boolean(),
4159
+ token: z162.string(),
4160
+ scope: z162.string().optional(),
4161
+ createdAt: z162.coerce.date(),
4162
+ expireAt: z162.coerce.date().optional()
4142
4163
  });
4143
4164
 
4144
4165
  // src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts
@@ -4332,10 +4353,11 @@ function documentationPageToStructureDTOV2(page, pagePathMap) {
4332
4353
  }
4333
4354
 
4334
4355
  // src/api/conversion/documentation/documentation-elements-to-hierarchy-v2-dto.ts
4335
- function documentationElementsToHierarchyDto(docPages, docGroups, routingVersion) {
4356
+ function documentationElementsToHierarchyDto(docPages, docGroups, publishedPagesSnapshots, routingVersion) {
4336
4357
  return {
4337
4358
  pages: documentationPagesToStructureDTOV2(docPages, docGroups, routingVersion),
4338
- groups: elementGroupsToDocumentationGroupStructureDTOV2(docGroups, docPages)
4359
+ groups: elementGroupsToDocumentationGroupStructureDTOV2(docGroups, docPages),
4360
+ publishedPagesSnapshots
4339
4361
  };
4340
4362
  }
4341
4363
 
@@ -4566,219 +4588,219 @@ function integrationCredentialToDto(credential) {
4566
4588
  }
4567
4589
 
4568
4590
  // src/api/dto/design-systems/brand.ts
4569
- import { z as z162 } from "zod";
4570
- var DTOBrand = z162.object({
4571
- id: z162.string(),
4572
- designSystemVersionId: z162.string(),
4573
- persistentId: z162.string(),
4591
+ import { z as z163 } from "zod";
4592
+ var DTOBrand = z163.object({
4593
+ id: z163.string(),
4594
+ designSystemVersionId: z163.string(),
4595
+ persistentId: z163.string(),
4574
4596
  meta: ObjectMeta
4575
4597
  });
4576
- var DTOBrandGetResponse = z162.object({ brand: DTOBrand });
4577
- var DTOBrandCreateResponse = z162.object({
4598
+ var DTOBrandGetResponse = z163.object({ brand: DTOBrand });
4599
+ var DTOBrandCreateResponse = z163.object({
4578
4600
  brand: DTOBrand
4579
4601
  });
4580
- var DTOBrandsListResponse = z162.object({ brands: z162.array(DTOBrand) });
4602
+ var DTOBrandsListResponse = z163.object({ brands: z163.array(DTOBrand) });
4581
4603
 
4582
4604
  // src/api/dto/design-systems/data-source.ts
4583
- import { z as z163 } from "zod";
4584
- var DTODataSourceFigmaFileVersion = z163.object({
4585
- id: z163.string(),
4586
- created_at: z163.coerce.date(),
4587
- label: z163.string(),
4588
- description: z163.string()
4589
- });
4590
- var DTODataSourceFigmaCloud = z163.object({
4591
- fileId: z163.string(),
4605
+ import { z as z164 } from "zod";
4606
+ var DTODataSourceFigmaFileVersion = z164.object({
4607
+ id: z164.string(),
4608
+ created_at: z164.coerce.date(),
4609
+ label: z164.string(),
4610
+ description: z164.string()
4611
+ });
4612
+ var DTODataSourceFigmaCloud = z164.object({
4613
+ fileId: z164.string(),
4592
4614
  state: DataSourceFigmaState,
4593
4615
  autoImportMode: DataSourceAutoImportMode,
4594
- fileThumbnailUrl: z163.string().optional(),
4616
+ fileThumbnailUrl: z164.string().optional(),
4595
4617
  lastImportResult: SourceImportSummary.nullish(),
4596
- lastImportedAt: z163.date().nullish(),
4618
+ lastImportedAt: z164.date().nullish(),
4597
4619
  lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
4598
- lastUpdatesCheckedAt: z163.date().nullish(),
4599
- ownerId: z163.string(),
4600
- ownerUserName: z163.string().optional(),
4601
- preferredCredentialId: z163.string().optional(),
4620
+ lastUpdatesCheckedAt: z164.date().nullish(),
4621
+ ownerId: z164.string(),
4622
+ ownerUserName: z164.string().optional(),
4623
+ preferredCredentialId: z164.string().optional(),
4602
4624
  stats: DataSourceStats
4603
4625
  });
4604
- var DTODataSourceFigma = z163.object({
4605
- id: z163.string(),
4606
- type: z163.literal(DataSourceRemoteType.Enum.Figma),
4607
- fileName: z163.string(),
4626
+ var DTODataSourceFigma = z164.object({
4627
+ id: z164.string(),
4628
+ type: z164.literal(DataSourceRemoteType.Enum.Figma),
4629
+ fileName: z164.string(),
4608
4630
  scope: DataSourceFigmaScope,
4609
- brandId: z163.string(),
4610
- themeId: z163.string().nullish(),
4631
+ brandId: z164.string(),
4632
+ themeId: z164.string().nullish(),
4611
4633
  cloud: DTODataSourceFigmaCloud.nullish(),
4612
- tokenStudio: z163.literal(null),
4613
- upload: z163.literal(null),
4614
- figmaVariablesPlugin: z163.literal(null)
4615
- });
4616
- var DTODataSourceTokenStudio = z163.object({
4617
- id: z163.string(),
4618
- type: z163.literal(DataSourceRemoteType.Enum.TokenStudio),
4619
- fileName: z163.string(),
4620
- brandId: z163.string(),
4621
- themeId: z163.string().nullish(),
4622
- cloud: z163.literal(null),
4623
- tokenStudio: z163.object({
4624
- settings: z163.object({
4625
- dryRun: z163.boolean(),
4626
- verbose: z163.boolean(),
4627
- preciseCopy: z163.boolean()
4634
+ tokenStudio: z164.literal(null),
4635
+ upload: z164.literal(null),
4636
+ figmaVariablesPlugin: z164.literal(null)
4637
+ });
4638
+ var DTODataSourceTokenStudio = z164.object({
4639
+ id: z164.string(),
4640
+ type: z164.literal(DataSourceRemoteType.Enum.TokenStudio),
4641
+ fileName: z164.string(),
4642
+ brandId: z164.string(),
4643
+ themeId: z164.string().nullish(),
4644
+ cloud: z164.literal(null),
4645
+ tokenStudio: z164.object({
4646
+ settings: z164.object({
4647
+ dryRun: z164.boolean(),
4648
+ verbose: z164.boolean(),
4649
+ preciseCopy: z164.boolean()
4628
4650
  }),
4629
- connectionName: z163.string(),
4630
- lastImportedAt: z163.date(),
4631
- lastImportedResults: z163.array(
4632
- z163.object({
4633
- mapping: z163.object({
4634
- tokenSets: z163.array(z163.string()),
4635
- supernovaBrand: z163.string(),
4636
- supernovaTheme: z163.string().optional()
4651
+ connectionName: z164.string(),
4652
+ lastImportedAt: z164.date(),
4653
+ lastImportedResults: z164.array(
4654
+ z164.object({
4655
+ mapping: z164.object({
4656
+ tokenSets: z164.array(z164.string()),
4657
+ supernovaBrand: z164.string(),
4658
+ supernovaTheme: z164.string().optional()
4637
4659
  }),
4638
- isFailed: z163.boolean(),
4639
- tokensCreated: z163.number(),
4640
- tokensDeleted: z163.number(),
4641
- tokensUpdated: z163.number()
4660
+ isFailed: z164.boolean(),
4661
+ tokensCreated: z164.number(),
4662
+ tokensDeleted: z164.number(),
4663
+ tokensUpdated: z164.number()
4642
4664
  })
4643
4665
  )
4644
4666
  }),
4645
- upload: z163.literal(null),
4646
- figmaVariablesPlugin: z163.literal(null)
4647
- });
4648
- var DTODataSourceFigmaVariablesPlugin = z163.object({
4649
- id: z163.string(),
4650
- type: z163.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
4651
- fileName: z163.string(),
4652
- brandId: z163.string(),
4653
- themeId: z163.literal(null),
4654
- cloud: z163.literal(null),
4655
- tokenStudio: z163.literal(null),
4656
- upload: z163.object({
4657
- remoteId: z163.string(),
4667
+ upload: z164.literal(null),
4668
+ figmaVariablesPlugin: z164.literal(null)
4669
+ });
4670
+ var DTODataSourceFigmaVariablesPlugin = z164.object({
4671
+ id: z164.string(),
4672
+ type: z164.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
4673
+ fileName: z164.string(),
4674
+ brandId: z164.string(),
4675
+ themeId: z164.literal(null),
4676
+ cloud: z164.literal(null),
4677
+ tokenStudio: z164.literal(null),
4678
+ upload: z164.object({
4679
+ remoteId: z164.string(),
4658
4680
  remoteSourceType: DataSourceUploadRemoteSource,
4659
- lastImportedAt: z163.date().optional(),
4681
+ lastImportedAt: z164.date().optional(),
4660
4682
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
4661
4683
  }),
4662
- figmaVariablesPlugin: z163.object({
4663
- fileId: z163.string(),
4664
- lastImportedAt: z163.date().optional(),
4684
+ figmaVariablesPlugin: z164.object({
4685
+ fileId: z164.string(),
4686
+ lastImportedAt: z164.date().optional(),
4665
4687
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
4666
4688
  })
4667
4689
  });
4668
- var DTODataSource = z163.discriminatedUnion("type", [
4690
+ var DTODataSource = z164.discriminatedUnion("type", [
4669
4691
  DTODataSourceFigma,
4670
4692
  DTODataSourceFigmaVariablesPlugin,
4671
4693
  DTODataSourceTokenStudio
4672
4694
  ]);
4673
- var DTODataSourcesListResponse = z163.object({
4674
- sources: z163.array(DTODataSource)
4695
+ var DTODataSourcesListResponse = z164.object({
4696
+ sources: z164.array(DTODataSource)
4675
4697
  });
4676
- var DTODataSourceCreationResponse = z163.object({
4698
+ var DTODataSourceCreationResponse = z164.object({
4677
4699
  source: DTODataSource
4678
4700
  });
4679
4701
 
4680
4702
  // src/api/dto/design-systems/design-system.ts
4681
- import { z as z164 } from "zod";
4703
+ import { z as z165 } from "zod";
4682
4704
  var DTODesignSystem = DesignSystem.omit({
4683
4705
  name: true,
4684
4706
  description: true,
4685
4707
  docExporterId: true
4686
4708
  }).extend({
4687
4709
  meta: ObjectMeta,
4688
- docExporterId: z164.string()
4710
+ docExporterId: z165.string()
4689
4711
  });
4690
4712
 
4691
4713
  // src/api/dto/design-systems/exporter-property.ts
4692
- import { z as z165 } from "zod";
4693
- var DTOExporterProperty = z165.any({});
4694
- var DTOExporterPropertyListResponse = z165.object({ items: z165.array(DTOExporterProperty) });
4714
+ import { z as z166 } from "zod";
4715
+ var DTOExporterProperty = z166.any({});
4716
+ var DTOExporterPropertyListResponse = z166.object({ items: z166.array(DTOExporterProperty) });
4695
4717
 
4696
4718
  // src/api/dto/design-systems/version.ts
4697
- import { z as z174 } from "zod";
4719
+ import { z as z175 } from "zod";
4698
4720
 
4699
4721
  // src/api/payloads/design-systems/brand.ts
4700
- import { z as z166 } from "zod";
4701
- var DTOCreateBrandInput = z166.object({
4702
- persistentId: z166.string().uuid(),
4703
- meta: z166.object({
4704
- name: z166.string(),
4705
- description: z166.string()
4722
+ import { z as z167 } from "zod";
4723
+ var DTOCreateBrandInput = z167.object({
4724
+ persistentId: z167.string().uuid(),
4725
+ meta: z167.object({
4726
+ name: z167.string(),
4727
+ description: z167.string()
4706
4728
  })
4707
4729
  });
4708
4730
 
4709
4731
  // src/api/payloads/design-systems/version.ts
4710
- import { z as z167 } from "zod";
4711
- var ObjectMeta2 = z167.object({
4712
- name: z167.string().max(150).optional(),
4713
- description: z167.string().max(2e3).optional()
4732
+ import { z as z168 } from "zod";
4733
+ var ObjectMeta2 = z168.object({
4734
+ name: z168.string().max(150).optional(),
4735
+ description: z168.string().max(2e3).optional()
4714
4736
  });
4715
4737
  function validateDesignSystemVersion(version) {
4716
4738
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
4717
4739
  return urlCompliantRegex.test(version);
4718
4740
  }
4719
- var DTOCreateVersionInput = z167.object({
4741
+ var DTOCreateVersionInput = z168.object({
4720
4742
  meta: ObjectMeta2,
4721
- version: z167.string().refine(validateDesignSystemVersion, {
4743
+ version: z168.string().refine(validateDesignSystemVersion, {
4722
4744
  message: "Invalid semantic versioning format"
4723
4745
  }),
4724
- changeLog: z167.string().optional()
4746
+ changeLog: z168.string().optional()
4725
4747
  });
4726
- var DTOUpdateVersionInput = z167.object({
4748
+ var DTOUpdateVersionInput = z168.object({
4727
4749
  meta: ObjectMeta2,
4728
- version: z167.string(),
4750
+ version: z168.string(),
4729
4751
  // required for PUT, but not editable
4730
- changeLog: z167.string()
4752
+ changeLog: z168.string()
4731
4753
  });
4732
4754
 
4733
4755
  // src/api/payloads/documentation/block-definitions.ts
4734
- import { z as z168 } from "zod";
4735
- var DTOGetBlockDefinitionsOutput = z168.object({
4736
- definitions: z168.array(PageBlockDefinition)
4756
+ import { z as z169 } from "zod";
4757
+ var DTOGetBlockDefinitionsOutput = z169.object({
4758
+ definitions: z169.array(PageBlockDefinition)
4737
4759
  });
4738
4760
 
4739
4761
  // src/api/payloads/export/pipeline.ts
4740
- import { z as z169 } from "zod";
4741
- var DTOPipelineCreateBody = z169.object({
4742
- name: z169.string(),
4743
- exporterId: z169.string(),
4744
- designSystemId: z169.string(),
4745
- isEnabled: z169.boolean(),
4762
+ import { z as z170 } from "zod";
4763
+ var DTOPipelineCreateBody = z170.object({
4764
+ name: z170.string(),
4765
+ exporterId: z170.string(),
4766
+ designSystemId: z170.string(),
4767
+ isEnabled: z170.boolean(),
4746
4768
  eventType: PipelineEventType,
4747
- brandPersistentId: z169.string().optional(),
4748
- themePersistentId: z169.string().optional(),
4769
+ brandPersistentId: z170.string().optional(),
4770
+ themePersistentId: z170.string().optional(),
4749
4771
  destination: PipelineDestinationType.optional(),
4750
4772
  gitQuery: GitObjectsQuery,
4751
- destinations: z169.object({
4773
+ destinations: z170.object({
4752
4774
  s3: ExporterDestinationS3.nullish(),
4753
4775
  azure: ExporterDestinationAzure.nullish(),
4754
4776
  bitbucket: ExporterDestinationBitbucket.nullish(),
4755
4777
  github: ExporterDestinationGithub.nullish(),
4756
4778
  gitlab: ExporterDestinationGitlab.nullish(),
4757
4779
  documentation: ExporterDestinationDocs.nullish(),
4758
- webhookUrl: z169.string().nullish()
4780
+ webhookUrl: z170.string().nullish()
4759
4781
  })
4760
4782
  });
4761
4783
  var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
4762
- id: z169.string()
4784
+ id: z170.string()
4763
4785
  });
4764
- var DTOPipelineTriggerBody = z169.object({
4765
- designSystemVersionId: z169.string()
4786
+ var DTOPipelineTriggerBody = z170.object({
4787
+ designSystemVersionId: z170.string()
4766
4788
  });
4767
4789
 
4768
4790
  // src/api/payloads/liveblocks/auth.ts
4769
- import { z as z170 } from "zod";
4770
- var DTOLiveblocksAuthRequest = z170.object({
4771
- room: z170.string().optional()
4791
+ import { z as z171 } from "zod";
4792
+ var DTOLiveblocksAuthRequest = z171.object({
4793
+ room: z171.string().optional()
4772
4794
  });
4773
4795
 
4774
4796
  // src/api/payloads/users/notifications/notification-settings.ts
4775
- import { z as z171 } from "zod";
4776
- var DTOUpdateUserNotificationSettingsPayload = z171.object({
4797
+ import { z as z172 } from "zod";
4798
+ var DTOUpdateUserNotificationSettingsPayload = z172.object({
4777
4799
  notificationSettings: UserNotificationSettings
4778
4800
  });
4779
- var DTOUserNotificationSettingsResponse = z171.object({
4780
- userId: z171.string(),
4781
- workspaceId: z171.string(),
4801
+ var DTOUserNotificationSettingsResponse = z172.object({
4802
+ userId: z172.string(),
4803
+ workspaceId: z172.string(),
4782
4804
  notificationSettings: UserNotificationSettings
4783
4805
  });
4784
4806
 
@@ -4786,7 +4808,7 @@ var DTOUserNotificationSettingsResponse = z171.object({
4786
4808
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
4787
4809
 
4788
4810
  // src/api/payloads/workspaces/workspace-configuration.ts
4789
- import { z as z172 } from "zod";
4811
+ import { z as z173 } from "zod";
4790
4812
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
4791
4813
  function validateSsoPayload(ssoPayload) {
4792
4814
  const keys = [];
@@ -4809,21 +4831,21 @@ function validateSsoPayload(ssoPayload) {
4809
4831
  keys
4810
4832
  };
4811
4833
  }
4812
- var NpmRegistryInput = z172.object({
4813
- enabledScopes: z172.array(z172.string()),
4814
- customRegistryUrl: z172.string().optional(),
4815
- bypassProxy: z172.boolean().optional(),
4816
- npmProxyRegistryConfigId: z172.string().optional(),
4817
- npmProxyVersion: z172.number().optional(),
4818
- registryType: z172.string(),
4819
- authType: z172.string(),
4820
- authHeaderName: z172.string(),
4821
- authHeaderValue: z172.string(),
4822
- accessToken: z172.string(),
4823
- username: z172.string(),
4824
- password: z172.string()
4825
- });
4826
- var WorkspaceConfigurationPayload = z172.object({
4834
+ var NpmRegistryInput = z173.object({
4835
+ enabledScopes: z173.array(z173.string()),
4836
+ customRegistryUrl: z173.string().optional(),
4837
+ bypassProxy: z173.boolean().optional(),
4838
+ npmProxyRegistryConfigId: z173.string().optional(),
4839
+ npmProxyVersion: z173.number().optional(),
4840
+ registryType: z173.string(),
4841
+ authType: z173.string(),
4842
+ authHeaderName: z173.string(),
4843
+ authHeaderValue: z173.string(),
4844
+ accessToken: z173.string(),
4845
+ username: z173.string(),
4846
+ password: z173.string()
4847
+ });
4848
+ var WorkspaceConfigurationPayload = z173.object({
4827
4849
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
4828
4850
  sso: SsoProvider.partial().optional(),
4829
4851
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -4831,130 +4853,130 @@ var WorkspaceConfigurationPayload = z172.object({
4831
4853
  });
4832
4854
 
4833
4855
  // src/api/payloads/workspaces/workspace-integrations.ts
4834
- import { z as z173 } from "zod";
4835
- var DTOWorkspaceIntegrationOauthInput = z173.object({
4856
+ import { z as z174 } from "zod";
4857
+ var DTOWorkspaceIntegrationOauthInput = z174.object({
4836
4858
  type: IntegrationType
4837
4859
  });
4838
- var DTOWorkspaceIntegrationPATInput = z173.object({
4839
- userId: z173.string(),
4860
+ var DTOWorkspaceIntegrationPATInput = z174.object({
4861
+ userId: z174.string(),
4840
4862
  type: IntegrationType,
4841
4863
  token: IntegrationToken
4842
4864
  });
4843
- var DTOWorkspaceIntegrationGetGitObjectsInput = z173.object({
4844
- organization: z173.string().optional(),
4865
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z174.object({
4866
+ organization: z174.string().optional(),
4845
4867
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
4846
- project: z173.string().optional(),
4868
+ project: z174.string().optional(),
4847
4869
  // Only for Bitbucket and Azure
4848
- repository: z173.string().optional(),
4870
+ repository: z174.string().optional(),
4849
4871
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
4850
- branch: z173.string().optional(),
4872
+ branch: z174.string().optional(),
4851
4873
  // For all providers, useful for PR creations.
4852
- user: z173.string().optional()
4874
+ user: z174.string().optional()
4853
4875
  // Only for Gitlab User Repositories
4854
4876
  });
4855
4877
 
4856
4878
  // src/api/dto/design-systems/version.ts
4857
- var DTODesignSystemVersion = z174.object({
4858
- id: z174.string(),
4859
- createdAt: z174.date(),
4879
+ var DTODesignSystemVersion = z175.object({
4880
+ id: z175.string(),
4881
+ createdAt: z175.date(),
4860
4882
  meta: ObjectMeta,
4861
- version: z174.string(),
4862
- isReadonly: z174.boolean(),
4863
- changeLog: z174.string(),
4864
- designSystemId: z174.string()
4883
+ version: z175.string(),
4884
+ isReadonly: z175.boolean(),
4885
+ changeLog: z175.string(),
4886
+ designSystemId: z175.string()
4865
4887
  });
4866
- var DTODesignSystemVersionsListResponse = z174.object({
4867
- designSystemVersions: z174.array(DTODesignSystemVersion)
4888
+ var DTODesignSystemVersionsListResponse = z175.object({
4889
+ designSystemVersions: z175.array(DTODesignSystemVersion)
4868
4890
  });
4869
- var DTODesignSystemVersionGetResponse = z174.object({
4891
+ var DTODesignSystemVersionGetResponse = z175.object({
4870
4892
  designSystemVersion: DTODesignSystemVersion
4871
4893
  });
4872
- var DTODesignSystemVersionCreationResponse = z174.object({
4894
+ var DTODesignSystemVersionCreationResponse = z175.object({
4873
4895
  meta: ObjectMeta,
4874
- version: z174.string(),
4875
- changeLog: z174.string(),
4876
- isReadOnly: z174.boolean(),
4877
- designSystemId: z174.string(),
4878
- jobId: z174.string()
4879
- });
4880
- var VersionSQSPayload = z174.object({
4881
- jobId: z174.string(),
4882
- designSystemId: z174.string(),
4896
+ version: z175.string(),
4897
+ changeLog: z175.string(),
4898
+ isReadOnly: z175.boolean(),
4899
+ designSystemId: z175.string(),
4900
+ jobId: z175.string()
4901
+ });
4902
+ var VersionSQSPayload = z175.object({
4903
+ jobId: z175.string(),
4904
+ designSystemId: z175.string(),
4883
4905
  input: DTOCreateVersionInput
4884
4906
  });
4885
- var DTODesignSystemVersionJobsResponse = z174.object({
4886
- jobs: z174.array(VersionCreationJob)
4907
+ var DTODesignSystemVersionJobsResponse = z175.object({
4908
+ jobs: z175.array(VersionCreationJob)
4887
4909
  });
4888
- var DTODesignSystemVersionJobStatusResponse = z174.object({
4910
+ var DTODesignSystemVersionJobStatusResponse = z175.object({
4889
4911
  job: VersionCreationJob
4890
4912
  });
4891
4913
 
4892
4914
  // src/api/dto/design-systems/view.ts
4893
- import { z as z175 } from "zod";
4894
- var DTOElementViewColumnSharedAttributes = z175.object({
4895
- id: z175.string(),
4896
- persistentId: z175.string(),
4897
- width: z175.number()
4915
+ import { z as z176 } from "zod";
4916
+ var DTOElementViewColumnSharedAttributes = z176.object({
4917
+ id: z176.string(),
4918
+ persistentId: z176.string(),
4919
+ width: z176.number()
4898
4920
  });
4899
4921
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
4900
- type: z175.literal("BaseProperty"),
4922
+ type: z176.literal("BaseProperty"),
4901
4923
  basePropertyType: ElementViewBaseColumnType
4902
4924
  });
4903
4925
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
4904
- type: z175.literal("PropertyDefinition"),
4905
- propertyDefinitionId: z175.string()
4926
+ type: z176.literal("PropertyDefinition"),
4927
+ propertyDefinitionId: z176.string()
4906
4928
  });
4907
4929
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
4908
- type: z175.literal("Theme"),
4909
- themeId: z175.string()
4930
+ type: z176.literal("Theme"),
4931
+ themeId: z176.string()
4910
4932
  });
4911
- var DTOElementViewColumn = z175.discriminatedUnion("type", [
4933
+ var DTOElementViewColumn = z176.discriminatedUnion("type", [
4912
4934
  DTOElementViewBasePropertyColumn,
4913
4935
  DTOElementViewPropertyDefinitionColumn,
4914
4936
  DTOElementViewThemeColumn
4915
4937
  ]);
4916
- var DTOElementView = z175.object({
4938
+ var DTOElementView = z176.object({
4917
4939
  meta: ObjectMeta,
4918
- persistentId: z175.string(),
4940
+ persistentId: z176.string(),
4919
4941
  targetElementType: ElementPropertyTargetType,
4920
- id: z175.string(),
4921
- isDefault: z175.boolean(),
4922
- columns: z175.array(DTOElementViewColumn)
4942
+ id: z176.string(),
4943
+ isDefault: z176.boolean(),
4944
+ columns: z176.array(DTOElementViewColumn)
4923
4945
  });
4924
- var DTOElementViewsListResponse = z175.object({
4925
- elementDataViews: z175.array(DTOElementView)
4946
+ var DTOElementViewsListResponse = z176.object({
4947
+ elementDataViews: z176.array(DTOElementView)
4926
4948
  });
4927
4949
 
4928
4950
  // src/api/dto/documentation/anchor.ts
4929
- import { z as z176 } from "zod";
4951
+ import { z as z177 } from "zod";
4930
4952
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
4931
- var DTOGetDocumentationPageAnchorsResponse = z176.object({
4932
- anchors: z176.array(DTODocumentationPageAnchor)
4953
+ var DTOGetDocumentationPageAnchorsResponse = z177.object({
4954
+ anchors: z177.array(DTODocumentationPageAnchor)
4933
4955
  });
4934
4956
 
4935
4957
  // src/api/dto/documentation/link-preview.ts
4936
- import { z as z177 } from "zod";
4937
- var DTODocumentationLinkPreviewResponse = z177.object({
4958
+ import { z as z178 } from "zod";
4959
+ var DTODocumentationLinkPreviewResponse = z178.object({
4938
4960
  linkPreview: DocumentationLinkPreview
4939
4961
  });
4940
- var DTODocumentationLinkPreviewRequest = z177.object({
4941
- url: z177.string().optional(),
4942
- documentationItemPersistentId: z177.string().optional()
4962
+ var DTODocumentationLinkPreviewRequest = z178.object({
4963
+ url: z178.string().optional(),
4964
+ documentationItemPersistentId: z178.string().optional()
4943
4965
  });
4944
4966
 
4945
4967
  // src/api/dto/elements/documentation/group-action.ts
4946
- import { z as z180 } from "zod";
4968
+ import { z as z181 } from "zod";
4947
4969
 
4948
4970
  // src/api/dto/elements/documentation/group-v2.ts
4949
- import { z as z179 } from "zod";
4971
+ import { z as z180 } from "zod";
4950
4972
 
4951
4973
  // src/api/dto/elements/documentation/item-configuration-v2.ts
4952
- import { z as z178 } from "zod";
4974
+ import { z as z179 } from "zod";
4953
4975
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
4954
- var DTODocumentationItemConfigurationV2 = z178.object({
4955
- showSidebar: z178.boolean(),
4956
- isPrivate: z178.boolean(),
4957
- isHidden: z178.boolean(),
4976
+ var DTODocumentationItemConfigurationV2 = z179.object({
4977
+ showSidebar: z179.boolean(),
4978
+ isPrivate: z179.boolean(),
4979
+ isHidden: z179.boolean(),
4958
4980
  header: DTODocumentationItemHeaderV2
4959
4981
  });
4960
4982
 
@@ -4968,136 +4990,136 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
4968
4990
  data: true,
4969
4991
  shortPersistentId: true
4970
4992
  }).extend({
4971
- title: z179.string(),
4972
- isRoot: z179.boolean(),
4973
- childrenIds: z179.array(z179.string()),
4993
+ title: z180.string(),
4994
+ isRoot: z180.boolean(),
4995
+ childrenIds: z180.array(z180.string()),
4974
4996
  groupBehavior: DocumentationGroupBehavior,
4975
- shortPersistentId: z179.string(),
4997
+ shortPersistentId: z180.string(),
4976
4998
  configuration: DTODocumentationItemConfigurationV2,
4977
- type: z179.literal("Group")
4999
+ type: z180.literal("Group")
4978
5000
  });
4979
5001
  var DTODocumentationGroupStructureV2 = DTODocumentationGroupV2;
4980
- var DTOCreateDocumentationGroupInput = z179.object({
5002
+ var DTOCreateDocumentationGroupInput = z180.object({
4981
5003
  // Identifier
4982
- persistentId: z179.string().uuid(),
5004
+ persistentId: z180.string().uuid(),
4983
5005
  // Group properties
4984
- title: z179.string(),
5006
+ title: z180.string(),
4985
5007
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
4986
5008
  // Group placement properties
4987
- afterPersistentId: z179.string().uuid().nullish(),
4988
- parentPersistentId: z179.string().uuid()
5009
+ afterPersistentId: z180.string().uuid().nullish(),
5010
+ parentPersistentId: z180.string().uuid()
4989
5011
  });
4990
- var DTOUpdateDocumentationGroupInput = z179.object({
5012
+ var DTOUpdateDocumentationGroupInput = z180.object({
4991
5013
  // Identifier of the group to update
4992
- id: z179.string(),
5014
+ id: z180.string(),
4993
5015
  // Group properties
4994
- title: z179.string().optional(),
5016
+ title: z180.string().optional(),
4995
5017
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
4996
5018
  });
4997
- var DTOMoveDocumentationGroupInput = z179.object({
5019
+ var DTOMoveDocumentationGroupInput = z180.object({
4998
5020
  // Identifier of the group to update
4999
- id: z179.string(),
5021
+ id: z180.string(),
5000
5022
  // Group placement properties
5001
- parentPersistentId: z179.string().uuid(),
5002
- afterPersistentId: z179.string().uuid().nullish()
5023
+ parentPersistentId: z180.string().uuid(),
5024
+ afterPersistentId: z180.string().uuid().nullish()
5003
5025
  });
5004
- var DTODuplicateDocumentationGroupInput = z179.object({
5026
+ var DTODuplicateDocumentationGroupInput = z180.object({
5005
5027
  // Identifier of the group to duplicate from
5006
- id: z179.string(),
5028
+ id: z180.string(),
5007
5029
  // New group persistent id
5008
- persistentId: z179.string().uuid(),
5030
+ persistentId: z180.string().uuid(),
5009
5031
  // Group placement properties
5010
- afterPersistentId: z179.string().uuid().nullish(),
5011
- parentPersistentId: z179.string().uuid()
5032
+ afterPersistentId: z180.string().uuid().nullish(),
5033
+ parentPersistentId: z180.string().uuid()
5012
5034
  });
5013
- var DTOCreateDocumentationTabInput = z179.object({
5035
+ var DTOCreateDocumentationTabInput = z180.object({
5014
5036
  // New group persistent id
5015
- persistentId: z179.string().uuid(),
5037
+ persistentId: z180.string().uuid(),
5016
5038
  // If this is page, we will attempt to convert it to tab
5017
5039
  // If this is tab group, we will add a new tab to it
5018
- fromItemPersistentId: z179.string(),
5019
- tabName: z179.string()
5040
+ fromItemPersistentId: z180.string(),
5041
+ tabName: z180.string()
5020
5042
  });
5021
- var DTODeleteDocumentationTabGroupInput = z179.object({
5043
+ var DTODeleteDocumentationTabGroupInput = z180.object({
5022
5044
  // Deleted group id
5023
- id: z179.string()
5045
+ id: z180.string()
5024
5046
  });
5025
- var DTODeleteDocumentationGroupInput = z179.object({
5047
+ var DTODeleteDocumentationGroupInput = z180.object({
5026
5048
  // Identifier
5027
- id: z179.string(),
5049
+ id: z180.string(),
5028
5050
  // Deletion options
5029
- deleteSubtree: z179.boolean().default(false)
5051
+ deleteSubtree: z180.boolean().default(false)
5030
5052
  });
5031
5053
 
5032
5054
  // src/api/dto/elements/documentation/group-action.ts
5033
- var SuccessPayload = z180.object({
5034
- success: z180.literal(true)
5055
+ var SuccessPayload = z181.object({
5056
+ success: z181.literal(true)
5035
5057
  });
5036
- var DTODocumentationGroupCreateActionOutputV2 = z180.object({
5037
- type: z180.literal("DocumentationGroupCreate"),
5058
+ var DTODocumentationGroupCreateActionOutputV2 = z181.object({
5059
+ type: z181.literal("DocumentationGroupCreate"),
5038
5060
  output: SuccessPayload
5039
5061
  });
5040
- var DTODocumentationTabCreateActionOutputV2 = z180.object({
5041
- type: z180.literal("DocumentationTabCreate"),
5062
+ var DTODocumentationTabCreateActionOutputV2 = z181.object({
5063
+ type: z181.literal("DocumentationTabCreate"),
5042
5064
  output: SuccessPayload
5043
5065
  });
5044
- var DTODocumentationGroupUpdateActionOutputV2 = z180.object({
5045
- type: z180.literal("DocumentationGroupUpdate"),
5066
+ var DTODocumentationGroupUpdateActionOutputV2 = z181.object({
5067
+ type: z181.literal("DocumentationGroupUpdate"),
5046
5068
  output: SuccessPayload
5047
5069
  });
5048
- var DTODocumentationGroupMoveActionOutputV2 = z180.object({
5049
- type: z180.literal("DocumentationGroupMove"),
5070
+ var DTODocumentationGroupMoveActionOutputV2 = z181.object({
5071
+ type: z181.literal("DocumentationGroupMove"),
5050
5072
  output: SuccessPayload
5051
5073
  });
5052
- var DTODocumentationGroupDuplicateActionOutputV2 = z180.object({
5053
- type: z180.literal("DocumentationGroupDuplicate"),
5074
+ var DTODocumentationGroupDuplicateActionOutputV2 = z181.object({
5075
+ type: z181.literal("DocumentationGroupDuplicate"),
5054
5076
  output: SuccessPayload
5055
5077
  });
5056
- var DTODocumentationGroupDeleteActionOutputV2 = z180.object({
5057
- type: z180.literal("DocumentationGroupDelete"),
5078
+ var DTODocumentationGroupDeleteActionOutputV2 = z181.object({
5079
+ type: z181.literal("DocumentationGroupDelete"),
5058
5080
  output: SuccessPayload
5059
5081
  });
5060
- var DTODocumentationTabGroupDeleteActionOutputV2 = z180.object({
5061
- type: z180.literal("DocumentationTabGroupDelete"),
5082
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z181.object({
5083
+ type: z181.literal("DocumentationTabGroupDelete"),
5062
5084
  output: SuccessPayload
5063
5085
  });
5064
- var DTODocumentationGroupCreateActionInputV2 = z180.object({
5065
- type: z180.literal("DocumentationGroupCreate"),
5086
+ var DTODocumentationGroupCreateActionInputV2 = z181.object({
5087
+ type: z181.literal("DocumentationGroupCreate"),
5066
5088
  input: DTOCreateDocumentationGroupInput
5067
5089
  });
5068
- var DTODocumentationTabCreateActionInputV2 = z180.object({
5069
- type: z180.literal("DocumentationTabCreate"),
5090
+ var DTODocumentationTabCreateActionInputV2 = z181.object({
5091
+ type: z181.literal("DocumentationTabCreate"),
5070
5092
  input: DTOCreateDocumentationTabInput
5071
5093
  });
5072
- var DTODocumentationGroupUpdateActionInputV2 = z180.object({
5073
- type: z180.literal("DocumentationGroupUpdate"),
5094
+ var DTODocumentationGroupUpdateActionInputV2 = z181.object({
5095
+ type: z181.literal("DocumentationGroupUpdate"),
5074
5096
  input: DTOUpdateDocumentationGroupInput
5075
5097
  });
5076
- var DTODocumentationGroupMoveActionInputV2 = z180.object({
5077
- type: z180.literal("DocumentationGroupMove"),
5098
+ var DTODocumentationGroupMoveActionInputV2 = z181.object({
5099
+ type: z181.literal("DocumentationGroupMove"),
5078
5100
  input: DTOMoveDocumentationGroupInput
5079
5101
  });
5080
- var DTODocumentationGroupDuplicateActionInputV2 = z180.object({
5081
- type: z180.literal("DocumentationGroupDuplicate"),
5102
+ var DTODocumentationGroupDuplicateActionInputV2 = z181.object({
5103
+ type: z181.literal("DocumentationGroupDuplicate"),
5082
5104
  input: DTODuplicateDocumentationGroupInput
5083
5105
  });
5084
- var DTODocumentationGroupDeleteActionInputV2 = z180.object({
5085
- type: z180.literal("DocumentationGroupDelete"),
5106
+ var DTODocumentationGroupDeleteActionInputV2 = z181.object({
5107
+ type: z181.literal("DocumentationGroupDelete"),
5086
5108
  input: DTODeleteDocumentationGroupInput
5087
5109
  });
5088
- var DTODocumentationTabGroupDeleteActionInputV2 = z180.object({
5089
- type: z180.literal("DocumentationTabGroupDelete"),
5110
+ var DTODocumentationTabGroupDeleteActionInputV2 = z181.object({
5111
+ type: z181.literal("DocumentationTabGroupDelete"),
5090
5112
  input: DTODeleteDocumentationTabGroupInput
5091
5113
  });
5092
5114
 
5093
5115
  // src/api/dto/elements/documentation/group-v1.ts
5094
- import { z as z182 } from "zod";
5116
+ import { z as z183 } from "zod";
5095
5117
 
5096
5118
  // src/api/dto/elements/documentation/item-configuration-v1.ts
5097
- import { z as z181 } from "zod";
5098
- var DocumentationColorV1 = z181.object({
5099
- aliasTo: z181.string().optional(),
5100
- value: z181.string().optional()
5119
+ import { z as z182 } from "zod";
5120
+ var DocumentationColorV1 = z182.object({
5121
+ aliasTo: z182.string().optional(),
5122
+ value: z182.string().optional()
5101
5123
  });
5102
5124
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
5103
5125
  foregroundColor: true,
@@ -5106,10 +5128,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
5106
5128
  foregroundColor: DocumentationColorV1.optional(),
5107
5129
  backgroundColor: DocumentationColorV1.optional()
5108
5130
  });
5109
- var DTODocumentationItemConfigurationV1 = z181.object({
5110
- showSidebar: z181.boolean(),
5111
- isPrivate: z181.boolean(),
5112
- isHidden: z181.boolean(),
5131
+ var DTODocumentationItemConfigurationV1 = z182.object({
5132
+ showSidebar: z182.boolean(),
5133
+ isPrivate: z182.boolean(),
5134
+ isHidden: z182.boolean(),
5113
5135
  header: DTODocumentationItemHeaderV1
5114
5136
  });
5115
5137
 
@@ -5123,130 +5145,131 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
5123
5145
  data: true,
5124
5146
  shortPersistentId: true
5125
5147
  }).extend({
5126
- title: z182.string(),
5127
- isRoot: z182.boolean(),
5128
- childrenIds: z182.array(z182.string()),
5148
+ title: z183.string(),
5149
+ isRoot: z183.boolean(),
5150
+ childrenIds: z183.array(z183.string()),
5129
5151
  groupBehavior: DocumentationGroupBehavior,
5130
- shortPersistentId: z182.string(),
5131
- type: z182.literal("Group")
5152
+ shortPersistentId: z183.string(),
5153
+ type: z183.literal("Group")
5132
5154
  });
5133
5155
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
5134
5156
  configuration: DTODocumentationItemConfigurationV1
5135
5157
  });
5136
5158
 
5137
5159
  // src/api/dto/elements/documentation/page-actions-v2.ts
5138
- import { z as z184 } from "zod";
5160
+ import { z as z185 } from "zod";
5139
5161
 
5140
5162
  // src/api/dto/elements/documentation/page-v2.ts
5141
- import { z as z183 } from "zod";
5163
+ import { z as z184 } from "zod";
5142
5164
  var DTODocumentationPageV2 = DocumentationPageV2.omit({
5143
5165
  data: true,
5144
5166
  meta: true,
5145
5167
  parentPersistentId: true,
5146
5168
  sortOrder: true
5147
5169
  }).extend({
5148
- title: z183.string(),
5149
- path: z183.string(),
5150
- type: z183.literal("Page"),
5170
+ title: z184.string(),
5171
+ path: z184.string(),
5172
+ type: z184.literal("Page"),
5151
5173
  configuration: DTODocumentationItemConfigurationV2
5152
5174
  });
5153
5175
  var DTODocumentationPageStructureV2 = DTODocumentationPageV2;
5154
- var DTODocumentationHierarchyV2 = z183.object({
5155
- pages: z183.array(DTODocumentationPageStructureV2),
5156
- groups: z183.array(DTODocumentationGroupStructureV2)
5176
+ var DTODocumentationHierarchyV2 = z184.object({
5177
+ pages: z184.array(DTODocumentationPageStructureV2),
5178
+ groups: z184.array(DTODocumentationGroupStructureV2),
5179
+ publishedPagesSnapshots: DesignElementSnapshot.array()
5157
5180
  });
5158
- var DTOCreateDocumentationPageInputV2 = z183.object({
5181
+ var DTOCreateDocumentationPageInputV2 = z184.object({
5159
5182
  // Identifier
5160
- persistentId: z183.string().uuid(),
5183
+ persistentId: z184.string().uuid(),
5161
5184
  // Page properties
5162
- title: z183.string(),
5185
+ title: z184.string(),
5163
5186
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5164
5187
  // Page placement properties
5165
- parentPersistentId: z183.string().uuid(),
5166
- afterPersistentId: z183.string().uuid().nullish()
5188
+ parentPersistentId: z184.string().uuid(),
5189
+ afterPersistentId: z184.string().uuid().nullish()
5167
5190
  });
5168
- var DTOUpdateDocumentationPageInputV2 = z183.object({
5191
+ var DTOUpdateDocumentationPageInputV2 = z184.object({
5169
5192
  // Identifier of the group to update
5170
- id: z183.string(),
5193
+ id: z184.string(),
5171
5194
  // Page properties
5172
- title: z183.string().optional(),
5195
+ title: z184.string().optional(),
5173
5196
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5174
5197
  });
5175
- var DTOMoveDocumentationPageInputV2 = z183.object({
5198
+ var DTOMoveDocumentationPageInputV2 = z184.object({
5176
5199
  // Identifier of the group to update
5177
- id: z183.string(),
5200
+ id: z184.string(),
5178
5201
  // Page placement properties
5179
- parentPersistentId: z183.string().uuid(),
5180
- afterPersistentId: z183.string().uuid().nullish()
5202
+ parentPersistentId: z184.string().uuid(),
5203
+ afterPersistentId: z184.string().uuid().nullish()
5181
5204
  });
5182
- var DTODuplicateDocumentationPageInputV2 = z183.object({
5205
+ var DTODuplicateDocumentationPageInputV2 = z184.object({
5183
5206
  // Identifier of the page to duplicate from
5184
- id: z183.string(),
5207
+ id: z184.string(),
5185
5208
  // New page persistent id
5186
- persistentId: z183.string().uuid(),
5209
+ persistentId: z184.string().uuid(),
5187
5210
  // Page placement properties
5188
- parentPersistentId: z183.string().uuid(),
5189
- afterPersistentId: z183.string().uuid().nullish()
5211
+ parentPersistentId: z184.string().uuid(),
5212
+ afterPersistentId: z184.string().uuid().nullish()
5190
5213
  });
5191
- var DTODeleteDocumentationPageInputV2 = z183.object({
5214
+ var DTODeleteDocumentationPageInputV2 = z184.object({
5192
5215
  // Identifier
5193
- id: z183.string()
5216
+ id: z184.string()
5194
5217
  });
5195
5218
 
5196
5219
  // src/api/dto/elements/documentation/page-actions-v2.ts
5197
- var SuccessPayload2 = z184.object({
5198
- success: z184.literal(true)
5220
+ var SuccessPayload2 = z185.object({
5221
+ success: z185.literal(true)
5199
5222
  });
5200
- var DTODocumentationPageCreateActionOutputV2 = z184.object({
5201
- type: z184.literal("DocumentationPageCreate"),
5223
+ var DTODocumentationPageCreateActionOutputV2 = z185.object({
5224
+ type: z185.literal("DocumentationPageCreate"),
5202
5225
  output: SuccessPayload2
5203
5226
  });
5204
- var DTODocumentationPageUpdateActionOutputV2 = z184.object({
5205
- type: z184.literal("DocumentationPageUpdate"),
5227
+ var DTODocumentationPageUpdateActionOutputV2 = z185.object({
5228
+ type: z185.literal("DocumentationPageUpdate"),
5206
5229
  output: SuccessPayload2
5207
5230
  });
5208
- var DTODocumentationPageMoveActionOutputV2 = z184.object({
5209
- type: z184.literal("DocumentationPageMove"),
5231
+ var DTODocumentationPageMoveActionOutputV2 = z185.object({
5232
+ type: z185.literal("DocumentationPageMove"),
5210
5233
  output: SuccessPayload2
5211
5234
  });
5212
- var DTODocumentationPageDuplicateActionOutputV2 = z184.object({
5213
- type: z184.literal("DocumentationPageDuplicate"),
5235
+ var DTODocumentationPageDuplicateActionOutputV2 = z185.object({
5236
+ type: z185.literal("DocumentationPageDuplicate"),
5214
5237
  output: SuccessPayload2
5215
5238
  });
5216
- var DTODocumentationPageDeleteActionOutputV2 = z184.object({
5217
- type: z184.literal("DocumentationPageDelete"),
5239
+ var DTODocumentationPageDeleteActionOutputV2 = z185.object({
5240
+ type: z185.literal("DocumentationPageDelete"),
5218
5241
  output: SuccessPayload2
5219
5242
  });
5220
- var DTODocumentationPageCreateActionInputV2 = z184.object({
5221
- type: z184.literal("DocumentationPageCreate"),
5243
+ var DTODocumentationPageCreateActionInputV2 = z185.object({
5244
+ type: z185.literal("DocumentationPageCreate"),
5222
5245
  input: DTOCreateDocumentationPageInputV2
5223
5246
  });
5224
- var DTODocumentationPageUpdateActionInputV2 = z184.object({
5225
- type: z184.literal("DocumentationPageUpdate"),
5247
+ var DTODocumentationPageUpdateActionInputV2 = z185.object({
5248
+ type: z185.literal("DocumentationPageUpdate"),
5226
5249
  input: DTOUpdateDocumentationPageInputV2
5227
5250
  });
5228
- var DTODocumentationPageMoveActionInputV2 = z184.object({
5229
- type: z184.literal("DocumentationPageMove"),
5251
+ var DTODocumentationPageMoveActionInputV2 = z185.object({
5252
+ type: z185.literal("DocumentationPageMove"),
5230
5253
  input: DTOMoveDocumentationPageInputV2
5231
5254
  });
5232
- var DTODocumentationPageDuplicateActionInputV2 = z184.object({
5233
- type: z184.literal("DocumentationPageDuplicate"),
5255
+ var DTODocumentationPageDuplicateActionInputV2 = z185.object({
5256
+ type: z185.literal("DocumentationPageDuplicate"),
5234
5257
  input: DTODuplicateDocumentationPageInputV2
5235
5258
  });
5236
- var DTODocumentationPageDeleteActionInputV2 = z184.object({
5237
- type: z184.literal("DocumentationPageDelete"),
5259
+ var DTODocumentationPageDeleteActionInputV2 = z185.object({
5260
+ type: z185.literal("DocumentationPageDelete"),
5238
5261
  input: DTODeleteDocumentationPageInputV2
5239
5262
  });
5240
5263
 
5241
5264
  // src/api/dto/elements/documentation/page-content.ts
5242
- import { z as z185 } from "zod";
5265
+ import { z as z186 } from "zod";
5243
5266
  var DTODocumentationPageContent = DocumentationPageContent;
5244
- var DTODocumentationPageContentGetResponse = z185.object({
5267
+ var DTODocumentationPageContentGetResponse = z186.object({
5245
5268
  pageContent: DTODocumentationPageContent
5246
5269
  });
5247
5270
 
5248
5271
  // src/api/dto/elements/documentation/page-v1.ts
5249
- import { z as z186 } from "zod";
5272
+ import { z as z187 } from "zod";
5250
5273
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
5251
5274
  data: true,
5252
5275
  meta: true,
@@ -5254,30 +5277,30 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
5254
5277
  sortOrder: true
5255
5278
  }).extend({
5256
5279
  configuration: DTODocumentationItemConfigurationV1,
5257
- blocks: z186.array(PageBlockV1),
5258
- title: z186.string(),
5259
- path: z186.string()
5280
+ blocks: z187.array(PageBlockV1),
5281
+ title: z187.string(),
5282
+ path: z187.string()
5260
5283
  });
5261
5284
 
5262
5285
  // src/api/dto/elements/figma-nodes/figma-node.ts
5263
- import { z as z187 } from "zod";
5264
- var DTOFigmaNodeOrigin = z187.object({
5265
- sourceId: z187.string(),
5266
- fileId: z187.string().optional(),
5267
- parentName: z187.string().optional()
5286
+ import { z as z188 } from "zod";
5287
+ var DTOFigmaNodeOrigin = z188.object({
5288
+ sourceId: z188.string(),
5289
+ fileId: z188.string().optional(),
5290
+ parentName: z188.string().optional()
5268
5291
  });
5269
- var DTOFigmaNodeData = z187.object({
5292
+ var DTOFigmaNodeData = z188.object({
5270
5293
  // Id of the node in the Figma file
5271
- figmaNodeId: z187.string(),
5294
+ figmaNodeId: z188.string(),
5272
5295
  // Validity
5273
- isValid: z187.boolean(),
5296
+ isValid: z188.boolean(),
5274
5297
  // Asset data
5275
- assetId: z187.string(),
5276
- assetUrl: z187.string(),
5298
+ assetId: z188.string(),
5299
+ assetUrl: z188.string(),
5277
5300
  // Asset metadata
5278
- assetScale: z187.number(),
5279
- assetWidth: z187.number().optional(),
5280
- assetHeight: z187.number().optional()
5301
+ assetScale: z188.number(),
5302
+ assetWidth: z188.number().optional(),
5303
+ assetHeight: z188.number().optional()
5281
5304
  });
5282
5305
  var DTOFigmaNode = FigmaFileStructure.omit({
5283
5306
  data: true,
@@ -5286,105 +5309,105 @@ var DTOFigmaNode = FigmaFileStructure.omit({
5286
5309
  data: DTOFigmaNodeData,
5287
5310
  origin: DTOFigmaNodeOrigin
5288
5311
  });
5289
- var DTOFigmaNodeRenderInput = z187.object({
5312
+ var DTOFigmaNodeRenderInput = z188.object({
5290
5313
  // Id of a design system's data source representing a linked Figma file
5291
- sourceId: z187.string(),
5314
+ sourceId: z188.string(),
5292
5315
  // Id of a node within the Figma file
5293
- figmaFileNodeId: z187.string()
5316
+ figmaFileNodeId: z188.string()
5294
5317
  });
5295
5318
 
5296
5319
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
5297
- import { z as z188 } from "zod";
5298
- var DTOFigmaNodeRenderActionOutput = z188.object({
5299
- type: z188.literal("FigmaNodeRender"),
5300
- figmaNodes: z188.array(DTOFigmaNode)
5320
+ import { z as z189 } from "zod";
5321
+ var DTOFigmaNodeRenderActionOutput = z189.object({
5322
+ type: z189.literal("FigmaNodeRender"),
5323
+ figmaNodes: z189.array(DTOFigmaNode)
5301
5324
  });
5302
- var DTOFigmaNodeRenderActionInput = z188.object({
5303
- type: z188.literal("FigmaNodeRender"),
5325
+ var DTOFigmaNodeRenderActionInput = z189.object({
5326
+ type: z189.literal("FigmaNodeRender"),
5304
5327
  input: DTOFigmaNodeRenderInput.array()
5305
5328
  });
5306
5329
 
5307
5330
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
5308
- import { z as z190 } from "zod";
5331
+ import { z as z191 } from "zod";
5309
5332
 
5310
5333
  // src/api/dto/elements/properties/property-definitions.ts
5311
- import { z as z189 } from "zod";
5334
+ import { z as z190 } from "zod";
5312
5335
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
5313
- var DTOElementPropertyDefinition = z189.object({
5314
- id: z189.string(),
5315
- designSystemVersionId: z189.string(),
5336
+ var DTOElementPropertyDefinition = z190.object({
5337
+ id: z190.string(),
5338
+ designSystemVersionId: z190.string(),
5316
5339
  meta: ObjectMeta,
5317
- persistentId: z189.string(),
5340
+ persistentId: z190.string(),
5318
5341
  type: ElementPropertyTypeSchema,
5319
5342
  targetElementType: ElementPropertyTargetType,
5320
- codeName: z189.string().regex(CODE_NAME_REGEX2),
5321
- options: z189.array(ElementPropertyDefinitionOption).optional(),
5343
+ codeName: z190.string().regex(CODE_NAME_REGEX2),
5344
+ options: z190.array(ElementPropertyDefinitionOption).optional(),
5322
5345
  linkElementType: ElementPropertyLinkType.optional()
5323
5346
  });
5324
- var DTOElementPropertyDefinitionsGetResponse = z189.object({
5325
- definitions: z189.array(DTOElementPropertyDefinition)
5347
+ var DTOElementPropertyDefinitionsGetResponse = z190.object({
5348
+ definitions: z190.array(DTOElementPropertyDefinition)
5326
5349
  });
5327
5350
  var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
5328
5351
  id: true,
5329
5352
  designSystemVersionId: true
5330
5353
  });
5331
- var DTOUpdateElementPropertyDefinitionInputV2 = z189.object({
5332
- id: z189.string(),
5333
- name: z189.string().optional(),
5334
- description: z189.string().optional(),
5335
- codeName: z189.string().regex(CODE_NAME_REGEX2).optional(),
5336
- options: z189.array(ElementPropertyDefinitionOption).optional()
5354
+ var DTOUpdateElementPropertyDefinitionInputV2 = z190.object({
5355
+ id: z190.string(),
5356
+ name: z190.string().optional(),
5357
+ description: z190.string().optional(),
5358
+ codeName: z190.string().regex(CODE_NAME_REGEX2).optional(),
5359
+ options: z190.array(ElementPropertyDefinitionOption).optional()
5337
5360
  });
5338
- var DTODeleteElementPropertyDefinitionInputV2 = z189.object({
5339
- id: z189.string()
5361
+ var DTODeleteElementPropertyDefinitionInputV2 = z190.object({
5362
+ id: z190.string()
5340
5363
  });
5341
5364
 
5342
5365
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
5343
- var SuccessPayload3 = z190.object({
5344
- success: z190.literal(true)
5366
+ var SuccessPayload3 = z191.object({
5367
+ success: z191.literal(true)
5345
5368
  });
5346
- var DTOPropertyDefinitionCreateActionOutputV2 = z190.object({
5347
- type: z190.literal("PropertyDefinitionCreate"),
5369
+ var DTOPropertyDefinitionCreateActionOutputV2 = z191.object({
5370
+ type: z191.literal("PropertyDefinitionCreate"),
5348
5371
  definition: DTOElementPropertyDefinition
5349
5372
  });
5350
- var DTOPropertyDefinitionUpdateActionOutputV2 = z190.object({
5351
- type: z190.literal("PropertyDefinitionUpdate"),
5373
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z191.object({
5374
+ type: z191.literal("PropertyDefinitionUpdate"),
5352
5375
  definition: DTOElementPropertyDefinition
5353
5376
  });
5354
- var DTOPropertyDefinitionDeleteActionOutputV2 = z190.object({
5355
- type: z190.literal("PropertyDefinitionDelete"),
5377
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z191.object({
5378
+ type: z191.literal("PropertyDefinitionDelete"),
5356
5379
  output: SuccessPayload3
5357
5380
  });
5358
- var DTOPropertyDefinitionCreateActionInputV2 = z190.object({
5359
- type: z190.literal("PropertyDefinitionCreate"),
5381
+ var DTOPropertyDefinitionCreateActionInputV2 = z191.object({
5382
+ type: z191.literal("PropertyDefinitionCreate"),
5360
5383
  input: DTOCreateElementPropertyDefinitionInputV2
5361
5384
  });
5362
- var DTOPropertyDefinitionUpdateActionInputV2 = z190.object({
5363
- type: z190.literal("PropertyDefinitionUpdate"),
5385
+ var DTOPropertyDefinitionUpdateActionInputV2 = z191.object({
5386
+ type: z191.literal("PropertyDefinitionUpdate"),
5364
5387
  input: DTOUpdateElementPropertyDefinitionInputV2
5365
5388
  });
5366
- var DTOPropertyDefinitionDeleteActionInputV2 = z190.object({
5367
- type: z190.literal("PropertyDefinitionDelete"),
5389
+ var DTOPropertyDefinitionDeleteActionInputV2 = z191.object({
5390
+ type: z191.literal("PropertyDefinitionDelete"),
5368
5391
  input: DTODeleteElementPropertyDefinitionInputV2
5369
5392
  });
5370
5393
 
5371
5394
  // src/api/dto/elements/properties/property-values.ts
5372
- import { z as z191 } from "zod";
5373
- var DTOElementPropertyValue = z191.object({
5374
- id: z191.string(),
5375
- designSystemVersionId: z191.string(),
5376
- definitionId: z191.string(),
5377
- targetElementId: z191.string(),
5378
- value: z191.union([z191.string(), z191.number(), z191.boolean()]).optional(),
5379
- valuePreview: z191.string().optional()
5395
+ import { z as z192 } from "zod";
5396
+ var DTOElementPropertyValue = z192.object({
5397
+ id: z192.string(),
5398
+ designSystemVersionId: z192.string(),
5399
+ definitionId: z192.string(),
5400
+ targetElementId: z192.string(),
5401
+ value: z192.union([z192.string(), z192.number(), z192.boolean()]).optional(),
5402
+ valuePreview: z192.string().optional()
5380
5403
  });
5381
- var DTOElementPropertyValuesGetResponse = z191.object({
5382
- values: z191.array(DTOElementPropertyValue)
5404
+ var DTOElementPropertyValuesGetResponse = z192.object({
5405
+ values: z192.array(DTOElementPropertyValue)
5383
5406
  });
5384
5407
 
5385
5408
  // src/api/dto/elements/elements-action-v2.ts
5386
- import { z as z192 } from "zod";
5387
- var DTOElementActionOutput = z192.discriminatedUnion("type", [
5409
+ import { z as z193 } from "zod";
5410
+ var DTOElementActionOutput = z193.discriminatedUnion("type", [
5388
5411
  // Documentation pages
5389
5412
  DTODocumentationPageCreateActionOutputV2,
5390
5413
  DTODocumentationPageUpdateActionOutputV2,
@@ -5406,7 +5429,7 @@ var DTOElementActionOutput = z192.discriminatedUnion("type", [
5406
5429
  DTOPropertyDefinitionUpdateActionOutputV2,
5407
5430
  DTOPropertyDefinitionDeleteActionOutputV2
5408
5431
  ]);
5409
- var DTOElementActionInput = z192.discriminatedUnion("type", [
5432
+ var DTOElementActionInput = z193.discriminatedUnion("type", [
5410
5433
  // Documentation pages
5411
5434
  DTODocumentationPageCreateActionInputV2,
5412
5435
  DTODocumentationPageUpdateActionInputV2,
@@ -5430,220 +5453,220 @@ var DTOElementActionInput = z192.discriminatedUnion("type", [
5430
5453
  ]);
5431
5454
 
5432
5455
  // src/api/dto/elements/get-elements-v2.ts
5433
- import { z as z193 } from "zod";
5434
- var DTOElementsGetTypeFilter = z193.enum(["FigmaNode"]);
5435
- var DTOElementsGetQuerySchema = z193.object({
5436
- types: z193.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
5456
+ import { z as z194 } from "zod";
5457
+ var DTOElementsGetTypeFilter = z194.enum(["FigmaNode"]);
5458
+ var DTOElementsGetQuerySchema = z194.object({
5459
+ types: z194.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
5437
5460
  });
5438
- var DTOElementsGetOutput = z193.object({
5439
- figmaNodes: z193.array(DTOFigmaNode).optional()
5461
+ var DTOElementsGetOutput = z194.object({
5462
+ figmaNodes: z194.array(DTOFigmaNode).optional()
5440
5463
  });
5441
5464
 
5442
5465
  // src/api/dto/export/exporter.ts
5443
- import { z as z194 } from "zod";
5444
- var DTOExporterType = z194.enum(["documentation", "code"]);
5445
- var DTOExporterSource = z194.enum(["git", "upload"]);
5446
- var DTOExporterMembershipRole = z194.enum(["Owner", "OwnerArchived", "User"]);
5447
- var DTOExporter = z194.object({
5448
- id: z194.string(),
5449
- name: z194.string(),
5450
- isPrivate: z194.boolean(),
5466
+ import { z as z195 } from "zod";
5467
+ var DTOExporterType = z195.enum(["documentation", "code"]);
5468
+ var DTOExporterSource = z195.enum(["git", "upload"]);
5469
+ var DTOExporterMembershipRole = z195.enum(["Owner", "OwnerArchived", "User"]);
5470
+ var DTOExporter = z195.object({
5471
+ id: z195.string(),
5472
+ name: z195.string(),
5473
+ isPrivate: z195.boolean(),
5451
5474
  exporterType: DTOExporterType,
5452
- isDefaultDocumentationExporter: z194.boolean(),
5453
- iconURL: z194.string().optional(),
5475
+ isDefaultDocumentationExporter: z195.boolean(),
5476
+ iconURL: z195.string().optional(),
5454
5477
  configurationProperties: PulsarContributionConfigurationProperty.array(),
5455
5478
  customBlocks: PulsarCustomBlock.array(),
5456
- blockVariants: z194.record(z194.string(), PulsarContributionVariant.array()),
5457
- usesBrands: z194.boolean(),
5458
- usesThemes: z194.boolean(),
5479
+ blockVariants: z195.record(z195.string(), PulsarContributionVariant.array()),
5480
+ usesBrands: z195.boolean(),
5481
+ usesThemes: z195.boolean(),
5459
5482
  source: DTOExporterSource,
5460
- gitUrl: z194.string().optional(),
5461
- gitBranch: z194.string().optional(),
5462
- gitDirectory: z194.string().optional()
5483
+ gitUrl: z195.string().optional(),
5484
+ gitBranch: z195.string().optional(),
5485
+ gitDirectory: z195.string().optional()
5463
5486
  });
5464
- var DTOExporterMembership = z194.object({
5465
- workspaceId: z194.string(),
5466
- exporterId: z194.string(),
5487
+ var DTOExporterMembership = z195.object({
5488
+ workspaceId: z195.string(),
5489
+ exporterId: z195.string(),
5467
5490
  role: DTOExporterMembershipRole
5468
5491
  });
5469
- var DTOExporterCreateOutput = z194.object({
5492
+ var DTOExporterCreateOutput = z195.object({
5470
5493
  exporter: DTOExporter,
5471
5494
  membership: DTOExporterMembership
5472
5495
  });
5473
- var DTOExporterGitProviderEnum = z194.enum(["github", "gitlab", "bitbucket", "azure"]);
5474
- var DTOExporterCreateInput = z194.object({
5475
- url: z194.string(),
5496
+ var DTOExporterGitProviderEnum = z195.enum(["github", "gitlab", "bitbucket", "azure"]);
5497
+ var DTOExporterCreateInput = z195.object({
5498
+ url: z195.string(),
5476
5499
  provider: DTOExporterGitProviderEnum
5477
5500
  });
5478
- var DTOExporterUpdateInput = z194.object({
5479
- url: z194.string().optional()
5501
+ var DTOExporterUpdateInput = z195.object({
5502
+ url: z195.string().optional()
5480
5503
  });
5481
5504
 
5482
5505
  // src/api/dto/export/job.ts
5483
- import { z as z195 } from "zod";
5484
- var DTOExportJobCreatedBy = z195.object({
5485
- userId: z195.string(),
5486
- userName: z195.string()
5506
+ import { z as z196 } from "zod";
5507
+ var DTOExportJobCreatedBy = z196.object({
5508
+ userId: z196.string(),
5509
+ userName: z196.string()
5487
5510
  });
5488
- var DTOExportJobDesignSystemPreview = z195.object({
5489
- id: z195.string(),
5511
+ var DTOExportJobDesignSystemPreview = z196.object({
5512
+ id: z196.string(),
5490
5513
  meta: ObjectMeta
5491
5514
  });
5492
- var DTOExportJobDesignSystemVersionPreview = z195.object({
5493
- id: z195.string(),
5515
+ var DTOExportJobDesignSystemVersionPreview = z196.object({
5516
+ id: z196.string(),
5494
5517
  meta: ObjectMeta,
5495
- version: z195.string(),
5496
- isReadonly: z195.boolean()
5518
+ version: z196.string(),
5519
+ isReadonly: z196.boolean()
5497
5520
  });
5498
- var DTOExportJobDestinations = z195.object({
5521
+ var DTOExportJobDestinations = z196.object({
5499
5522
  s3: ExporterDestinationS3.optional(),
5500
5523
  azure: ExporterDestinationAzure.optional(),
5501
5524
  bitbucket: ExporterDestinationBitbucket.optional(),
5502
5525
  github: ExporterDestinationGithub.optional(),
5503
5526
  gitlab: ExporterDestinationGitlab.optional(),
5504
5527
  documentation: ExporterDestinationDocs.optional(),
5505
- webhookUrl: z195.string().optional()
5528
+ webhookUrl: z196.string().optional()
5506
5529
  });
5507
- var DTOExportJob = z195.object({
5508
- id: z195.string(),
5509
- createdAt: z195.coerce.date(),
5510
- finishedAt: z195.coerce.date().optional(),
5511
- index: z195.number().optional(),
5530
+ var DTOExportJob = z196.object({
5531
+ id: z196.string(),
5532
+ createdAt: z196.coerce.date(),
5533
+ finishedAt: z196.coerce.date().optional(),
5534
+ index: z196.number().optional(),
5512
5535
  status: ExportJobStatus,
5513
- estimatedExecutionTime: z195.number().optional(),
5536
+ estimatedExecutionTime: z196.number().optional(),
5514
5537
  createdBy: DTOExportJobCreatedBy.optional(),
5515
5538
  designSystem: DTOExportJobDesignSystemPreview,
5516
5539
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
5517
5540
  destinations: DTOExportJobDestinations,
5518
- exporterId: z195.string(),
5519
- scheduleId: z195.string().optional(),
5541
+ exporterId: z196.string(),
5542
+ scheduleId: z196.string().optional(),
5520
5543
  result: ExportJobResult.optional(),
5521
- brandPersistentId: z195.string().optional(),
5522
- themePersistentId: z195.string().optional()
5544
+ brandPersistentId: z196.string().optional(),
5545
+ themePersistentId: z196.string().optional()
5523
5546
  });
5524
- var DTOExportJobResponse = z195.object({
5547
+ var DTOExportJobResponse = z196.object({
5525
5548
  job: DTOExportJob
5526
5549
  });
5527
5550
 
5528
5551
  // src/api/dto/export/pipeline.ts
5529
- import { z as z196 } from "zod";
5530
- var DTOPipeline = z196.object({
5531
- id: z196.string(),
5532
- name: z196.string(),
5552
+ import { z as z197 } from "zod";
5553
+ var DTOPipeline = z197.object({
5554
+ id: z197.string(),
5555
+ name: z197.string(),
5533
5556
  eventType: PipelineEventType,
5534
- isEnabled: z196.boolean(),
5535
- workspaceId: z196.string(),
5536
- designSystemId: z196.string(),
5537
- exporterId: z196.string(),
5538
- brandPersistentId: z196.string().optional(),
5539
- themePersistentId: z196.string().optional(),
5557
+ isEnabled: z197.boolean(),
5558
+ workspaceId: z197.string(),
5559
+ designSystemId: z197.string(),
5560
+ exporterId: z197.string(),
5561
+ brandPersistentId: z197.string().optional(),
5562
+ themePersistentId: z197.string().optional(),
5540
5563
  ...ExportDestinationsMap.shape,
5541
5564
  latestJobs: DTOExportJob.array()
5542
5565
  });
5543
5566
 
5544
5567
  // src/api/dto/liveblocks/auth-response.ts
5545
- import { z as z197 } from "zod";
5546
- var DTOLiveblocksAuthResponse = z197.object({
5547
- token: z197.string()
5568
+ import { z as z198 } from "zod";
5569
+ var DTOLiveblocksAuthResponse = z198.object({
5570
+ token: z198.string()
5548
5571
  });
5549
5572
 
5550
5573
  // src/api/dto/users/profile/update.ts
5551
- import { z as z198 } from "zod";
5552
- var DTOUserProfileUpdateResponse = z198.object({
5574
+ import { z as z199 } from "zod";
5575
+ var DTOUserProfileUpdateResponse = z199.object({
5553
5576
  user: User
5554
5577
  });
5555
5578
 
5556
5579
  // src/api/dto/workspaces/git.ts
5557
- import { z as z199 } from "zod";
5558
- var DTOGitOrganization = z199.object({
5559
- id: z199.string(),
5560
- name: z199.string(),
5561
- url: z199.string(),
5562
- slug: z199.string()
5563
- });
5564
- var DTOGitProject = z199.object({
5565
- id: z199.string(),
5566
- name: z199.string(),
5567
- url: z199.string(),
5568
- slug: z199.string()
5569
- });
5570
- var DTOGitRepository = z199.object({
5571
- id: z199.string(),
5572
- name: z199.string(),
5573
- url: z199.string(),
5574
- slug: z199.string(),
5575
- defaultBranch: z199.string().optional()
5576
- });
5577
- var DTOGitBranch = z199.object({
5578
- name: z199.string(),
5579
- lastCommitId: z199.string()
5580
+ import { z as z200 } from "zod";
5581
+ var DTOGitOrganization = z200.object({
5582
+ id: z200.string(),
5583
+ name: z200.string(),
5584
+ url: z200.string(),
5585
+ slug: z200.string()
5586
+ });
5587
+ var DTOGitProject = z200.object({
5588
+ id: z200.string(),
5589
+ name: z200.string(),
5590
+ url: z200.string(),
5591
+ slug: z200.string()
5592
+ });
5593
+ var DTOGitRepository = z200.object({
5594
+ id: z200.string(),
5595
+ name: z200.string(),
5596
+ url: z200.string(),
5597
+ slug: z200.string(),
5598
+ defaultBranch: z200.string().optional()
5599
+ });
5600
+ var DTOGitBranch = z200.object({
5601
+ name: z200.string(),
5602
+ lastCommitId: z200.string()
5580
5603
  });
5581
5604
 
5582
5605
  // src/api/dto/workspaces/integrations.ts
5583
- import { z as z200 } from "zod";
5606
+ import { z as z201 } from "zod";
5584
5607
  var DTOIntegrationCredentials = IntegrationCredentials.omit({
5585
5608
  accessToken: true,
5586
5609
  refreshToken: true
5587
5610
  });
5588
- var DTOIntegration = z200.object({
5589
- id: z200.string(),
5590
- workspaceId: z200.string(),
5611
+ var DTOIntegration = z201.object({
5612
+ id: z201.string(),
5613
+ workspaceId: z201.string(),
5591
5614
  type: ExtendedIntegrationType,
5592
- createdAt: z200.coerce.date(),
5593
- integrationCredentials: z200.array(DTOIntegrationCredentials).optional(),
5594
- integrationDesignSystems: z200.array(IntegrationDesignSystem).optional()
5615
+ createdAt: z201.coerce.date(),
5616
+ integrationCredentials: z201.array(DTOIntegrationCredentials).optional(),
5617
+ integrationDesignSystems: z201.array(IntegrationDesignSystem).optional()
5595
5618
  });
5596
- var DTOIntegrationOAuthGetResponse = z200.object({
5597
- url: z200.string()
5619
+ var DTOIntegrationOAuthGetResponse = z201.object({
5620
+ url: z201.string()
5598
5621
  });
5599
- var DTOIntegrationPostResponse = z200.object({
5622
+ var DTOIntegrationPostResponse = z201.object({
5600
5623
  integration: DTOIntegration
5601
5624
  });
5602
- var DTOIntegrationsGetListResponse = z200.object({
5625
+ var DTOIntegrationsGetListResponse = z201.object({
5603
5626
  integrations: DTOIntegration.array()
5604
5627
  });
5605
5628
 
5606
5629
  // src/api/dto/workspaces/membership.ts
5607
- import { z as z203 } from "zod";
5630
+ import { z as z204 } from "zod";
5608
5631
 
5609
5632
  // src/api/dto/workspaces/workspace.ts
5610
- import { z as z202 } from "zod";
5633
+ import { z as z203 } from "zod";
5611
5634
 
5612
5635
  // src/api/dto/workspaces/npm-registry.ts
5613
- import { z as z201 } from "zod";
5636
+ import { z as z202 } from "zod";
5614
5637
  var DTONpmRegistryConfigConstants = {
5615
5638
  passwordPlaceholder: "redacted"
5616
5639
  };
5617
- var DTONpmRegistryConfig = z201.object({
5640
+ var DTONpmRegistryConfig = z202.object({
5618
5641
  // Registry basic configuration
5619
5642
  registryType: NpmRegistryType,
5620
- registryUrl: z201.string(),
5621
- customRegistryUrl: z201.string().optional(),
5643
+ registryUrl: z202.string(),
5644
+ customRegistryUrl: z202.string().optional(),
5622
5645
  // URL of Supernova NPM packages proxy
5623
- proxyUrl: z201.string(),
5646
+ proxyUrl: z202.string(),
5624
5647
  // Auth configuration
5625
5648
  authType: NpmRegistryAuthType,
5626
- accessToken: z201.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5627
- username: z201.string().optional(),
5628
- password: z201.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5649
+ accessToken: z202.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5650
+ username: z202.string().optional(),
5651
+ password: z202.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5629
5652
  // NPM package scopes for whih the proxy should be enabled
5630
- enabledScopes: z201.array(z201.string()),
5653
+ enabledScopes: z202.array(z202.string()),
5631
5654
  // True if client should bypass Supernova proxy and connect directly to the registry
5632
5655
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
5633
- bypassProxy: z201.boolean()
5656
+ bypassProxy: z202.boolean()
5634
5657
  });
5635
5658
 
5636
5659
  // src/api/dto/workspaces/workspace.ts
5637
- var DTOWorkspace = z202.object({
5638
- id: z202.string(),
5660
+ var DTOWorkspace = z203.object({
5661
+ id: z203.string(),
5639
5662
  profile: WorkspaceProfile,
5640
5663
  subscription: Subscription,
5641
5664
  npmRegistry: DTONpmRegistryConfig.optional()
5642
5665
  });
5643
5666
 
5644
5667
  // src/api/dto/workspaces/membership.ts
5645
- var DTOWorkspaceRole = z203.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
5646
- var DTOUserWorkspaceMembership = z203.object({
5668
+ var DTOWorkspaceRole = z204.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
5669
+ var DTOUserWorkspaceMembership = z204.object({
5647
5670
  // Workspace the user is a member of
5648
5671
  workspace: DTOWorkspace,
5649
5672
  // Assigned role the user has in the workspace
@@ -5653,14 +5676,49 @@ var DTOUserWorkspaceMembership = z203.object({
5653
5676
  // when a workspace's subscription is downgraded to free tier
5654
5677
  effectiveRole: DTOWorkspaceRole
5655
5678
  });
5656
- var DTOUserWorkspaceMembershipsResponse = z203.object({
5657
- membership: z203.array(DTOUserWorkspaceMembership)
5679
+ var DTOUserWorkspaceMembershipsResponse = z204.object({
5680
+ membership: z204.array(DTOUserWorkspaceMembership)
5658
5681
  });
5659
5682
 
5683
+ // src/utils/hash.ts
5684
+ import { createHash } from "crypto";
5685
+ function hash(s) {
5686
+ return createHash("sha256").update(s).digest("hex");
5687
+ }
5688
+ function prepareObject(obj) {
5689
+ if (obj === null || typeof obj !== "object") {
5690
+ return obj;
5691
+ }
5692
+ if (Array.isArray(obj)) {
5693
+ return obj.map(prepareObject);
5694
+ }
5695
+ const sortedObj = {};
5696
+ for (const key of Object.keys(obj).sort()) {
5697
+ if (obj[key] === null || obj[key] === void 0) {
5698
+ continue;
5699
+ }
5700
+ sortedObj[key] = prepareObject(obj[key]);
5701
+ }
5702
+ return sortedObj;
5703
+ }
5704
+ function generateHash(input) {
5705
+ if (typeof input === "object") {
5706
+ return hash(JSON.stringify(prepareObject(input)));
5707
+ } else {
5708
+ try {
5709
+ const obj = JSON.parse(input);
5710
+ return hash(JSON.stringify(prepareObject(obj)));
5711
+ } catch {
5712
+ return hash(input);
5713
+ }
5714
+ }
5715
+ }
5716
+
5660
5717
  // src/yjs/design-system-content/documentation-hierarchy.ts
5661
- import { z as z204 } from "zod";
5662
- var DocumentationHierarchySettings = z204.object({
5663
- routingVersion: z204.string()
5718
+ import { z as z205 } from "zod";
5719
+ var DocumentationHierarchySettings = z205.object({
5720
+ routingVersion: z205.string(),
5721
+ isDraftFeatureAdopted: z205.boolean()
5664
5722
  });
5665
5723
  function documentationHierarchyToYjs(doc, transaction) {
5666
5724
  doc.transact((trx) => {
@@ -5684,6 +5742,10 @@ function documentationHierarchyToYjs(doc, transaction) {
5684
5742
  transaction.groups.forEach((group) => {
5685
5743
  groupsMap.set(group.id, JSON.parse(JSON.stringify(group)));
5686
5744
  });
5745
+ const publishedSnapshotsMap = getPublishedSnapshotsYMap(trx.doc);
5746
+ transaction.publishedPageSnapshots.forEach((state) => {
5747
+ publishedSnapshotsMap.set(state.id, JSON.parse(JSON.stringify(state)));
5748
+ });
5687
5749
  if (transaction.internalSettings) {
5688
5750
  serializeDocumentationInternalSettings(trx.doc, transaction.internalSettings);
5689
5751
  }
@@ -5693,10 +5755,12 @@ function documentationHierarchyToYjs(doc, transaction) {
5693
5755
  function serializeDocumentationInternalSettings(doc, settings) {
5694
5756
  const map = getInternalSettingsYMap(doc);
5695
5757
  map.set("routingVersion", settings.routingVersion);
5758
+ settings.isDraftFeatureAdopted !== void 0 && map.set("isDraftFeatureAdapted", settings.isDraftFeatureAdopted);
5696
5759
  }
5697
5760
  function yjsToDocumentationHierarchy(doc) {
5698
5761
  const pagesMap = getPagesYMap(doc);
5699
5762
  const groupsMap = getGroupsYMap(doc);
5763
+ const publishedSnapshotsMap = getPublishedSnapshotsYMap(doc);
5700
5764
  const pages = [];
5701
5765
  pagesMap.forEach((page) => {
5702
5766
  pages.push(DocumentationPageV2.parse(page));
@@ -5705,18 +5769,31 @@ function yjsToDocumentationHierarchy(doc) {
5705
5769
  groupsMap.forEach((group) => {
5706
5770
  groups.push(ElementGroup.parse(group));
5707
5771
  });
5772
+ const publishedSnapshots = [];
5773
+ publishedSnapshotsMap.forEach((state) => {
5774
+ publishedSnapshots.push(DesignElementSnapshot.parse(state));
5775
+ });
5708
5776
  const internalSettings = parseDocumentationInternalSettings(doc);
5709
- const hierarchy = documentationElementsToHierarchyDto(pages, groups, internalSettings.routingVersion ?? "2");
5777
+ const hierarchy = documentationElementsToHierarchyDto(
5778
+ pages,
5779
+ groups,
5780
+ publishedSnapshots,
5781
+ internalSettings.routingVersion ?? "2"
5782
+ );
5710
5783
  return hierarchy;
5711
5784
  }
5712
5785
  function parseDocumentationInternalSettings(doc) {
5713
5786
  const map = getInternalSettingsYMap(doc);
5714
5787
  const rawSettings = {
5715
- routingVersion: map.get("routingVersion")
5788
+ routingVersion: map.get("routingVersion"),
5789
+ isDraftFeatureAdopted: map.get("isDraftFeatureAdapted") ?? false
5716
5790
  };
5717
5791
  const settingsParseResult = DocumentationHierarchySettings.safeParse(rawSettings);
5718
5792
  if (!settingsParseResult.success) {
5719
- return { routingVersion: "2" };
5793
+ return {
5794
+ routingVersion: "2",
5795
+ isDraftFeatureAdopted: false
5796
+ };
5720
5797
  }
5721
5798
  return settingsParseResult.data;
5722
5799
  }
@@ -5729,15 +5806,18 @@ function getGroupsYMap(doc) {
5729
5806
  function getInternalSettingsYMap(doc) {
5730
5807
  return doc.getMap("documentationInternalSettings");
5731
5808
  }
5809
+ function getPublishedSnapshotsYMap(doc) {
5810
+ return doc.getMap("documentationPagePublishedSnapshots");
5811
+ }
5732
5812
 
5733
5813
  // src/yjs/design-system-content/item-configuration.ts
5734
- import { z as z205 } from "zod";
5735
- var DTODocumentationPageRoomHeaderData = z205.object({
5736
- title: z205.string(),
5814
+ import { z as z206 } from "zod";
5815
+ var DTODocumentationPageRoomHeaderData = z206.object({
5816
+ title: z206.string(),
5737
5817
  configuration: DTODocumentationItemConfigurationV2
5738
5818
  });
5739
- var DTODocumentationPageRoomHeaderDataUpdate = z205.object({
5740
- title: z205.string().optional(),
5819
+ var DTODocumentationPageRoomHeaderDataUpdate = z206.object({
5820
+ title: z206.string().optional(),
5741
5821
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
5742
5822
  });
5743
5823
  function itemConfigurationToYjs(yDoc, item) {
@@ -5788,7 +5868,7 @@ function yjsToItemConfiguration(yDoc) {
5788
5868
  header: rawHeader
5789
5869
  };
5790
5870
  return {
5791
- title: z205.string().parse(title),
5871
+ title: z206.string().parse(title),
5792
5872
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
5793
5873
  };
5794
5874
  }
@@ -5798,9 +5878,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
5798
5878
  var PageSectionEditorModel = PageSectionEditorModelV2;
5799
5879
 
5800
5880
  // src/yjs/docs-editor/model/page.ts
5801
- import { z as z206 } from "zod";
5802
- var DocumentationPageEditorModel = z206.object({
5803
- blocks: z206.array(PageBlockEditorModel.or(PageSectionEditorModel))
5881
+ import { z as z207 } from "zod";
5882
+ var DocumentationPageEditorModel = z207.object({
5883
+ blocks: z207.array(PageBlockEditorModel.or(PageSectionEditorModel))
5804
5884
  });
5805
5885
 
5806
5886
  // src/yjs/docs-editor/prosemirror/schema.ts
@@ -8772,7 +8852,7 @@ var blocks = [
8772
8852
 
8773
8853
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
8774
8854
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
8775
- import { z as z207 } from "zod";
8855
+ import { z as z208 } from "zod";
8776
8856
  function yDocToPage(yDoc, definitions) {
8777
8857
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
8778
8858
  }
@@ -8815,7 +8895,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
8815
8895
  return null;
8816
8896
  return {
8817
8897
  id,
8818
- title: getProsemirrorAttribute(prosemirrorNode, "title", z207.string()) ?? "",
8898
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z208.string()) ?? "",
8819
8899
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
8820
8900
  };
8821
8901
  }
@@ -8850,7 +8930,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
8850
8930
  });
8851
8931
  }
8852
8932
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
8853
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z207.string());
8933
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z208.string());
8854
8934
  if (!definitionId) {
8855
8935
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
8856
8936
  return [];
@@ -8892,7 +8972,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
8892
8972
  if (!id)
8893
8973
  return null;
8894
8974
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
8895
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z207.string().optional()));
8975
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z208.string().optional()));
8896
8976
  return {
8897
8977
  id,
8898
8978
  type: "Block",
@@ -9018,10 +9098,10 @@ function parseRichTextAttribute(mark) {
9018
9098
  return null;
9019
9099
  }
9020
9100
  function parseProsemirrorLink(mark) {
9021
- const href = getProsemirrorAttribute(mark, "href", z207.string().optional());
9101
+ const href = getProsemirrorAttribute(mark, "href", z208.string().optional());
9022
9102
  if (!href)
9023
9103
  return null;
9024
- const target = getProsemirrorAttribute(mark, "target", z207.string().optional());
9104
+ const target = getProsemirrorAttribute(mark, "target", z208.string().optional());
9025
9105
  const openInNewTab = target === "_blank";
9026
9106
  if (href.startsWith("@")) {
9027
9107
  return {
@@ -9044,7 +9124,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
9044
9124
  if (!id)
9045
9125
  return null;
9046
9126
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
9047
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z207.boolean().optional()) !== false;
9127
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z208.boolean().optional()) !== false;
9048
9128
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
9049
9129
  if (!tableChild) {
9050
9130
  return emptyTable(id, variantId, 0);
@@ -9091,9 +9171,9 @@ function parseAsTableCell(prosemirrorNode) {
9091
9171
  const id = getProsemirrorBlockId(prosemirrorNode);
9092
9172
  if (!id)
9093
9173
  return null;
9094
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z207.string().optional());
9174
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z208.string().optional());
9095
9175
  let columnWidth;
9096
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z207.array(z207.number()).optional());
9176
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z208.array(z208.number()).optional());
9097
9177
  if (columnWidthArray) {
9098
9178
  columnWidth = columnWidthArray[0];
9099
9179
  }
@@ -9131,7 +9211,7 @@ function parseAsTableNode(prosemirrorNode) {
9131
9211
  value: parseRichText(prosemirrorNode.content ?? [])
9132
9212
  };
9133
9213
  case "image":
9134
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z207.string());
9214
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z208.string());
9135
9215
  if (!items)
9136
9216
  return null;
9137
9217
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -9247,7 +9327,7 @@ function definitionExpectsPlaceholderItem(definition) {
9247
9327
  );
9248
9328
  }
9249
9329
  function parseBlockItems(prosemirrorNode, definition) {
9250
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z207.string());
9330
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z208.string());
9251
9331
  if (!itemsString)
9252
9332
  return null;
9253
9333
  const itemsJson = JSON.parse(itemsString);
@@ -9259,18 +9339,18 @@ function parseBlockItems(prosemirrorNode, definition) {
9259
9339
  }
9260
9340
  function parseAppearance(prosemirrorNode) {
9261
9341
  let appearance = {};
9262
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z207.string().optional());
9342
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z208.string().optional());
9263
9343
  if (rawAppearanceString) {
9264
9344
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
9265
9345
  if (parsedAppearance.success) {
9266
9346
  appearance = parsedAppearance.data;
9267
9347
  }
9268
9348
  }
9269
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z207.number().optional());
9349
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z208.number().optional());
9270
9350
  if (columns) {
9271
9351
  appearance.numberOfColumns = columns;
9272
9352
  }
9273
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z207.string().optional());
9353
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z208.string().optional());
9274
9354
  if (backgroundColor) {
9275
9355
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
9276
9356
  if (parsedColor.success) {
@@ -9363,13 +9443,13 @@ function valueSchemaForPropertyType(type) {
9363
9443
  }
9364
9444
  }
9365
9445
  function getProsemirrorBlockId(prosemirrorNode) {
9366
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z207.string());
9446
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z208.string());
9367
9447
  if (!id)
9368
9448
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
9369
9449
  return id;
9370
9450
  }
9371
9451
  function getProsemirrorBlockVariantId(prosemirrorNode) {
9372
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z207.string()));
9452
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z208.string()));
9373
9453
  }
9374
9454
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
9375
9455
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -9575,6 +9655,7 @@ export {
9575
9655
  elementGroupsToDocumentationGroupFixedConfigurationDTOV2,
9576
9656
  elementGroupsToDocumentationGroupStructureDTOV1,
9577
9657
  elementGroupsToDocumentationGroupStructureDTOV2,
9658
+ generateHash,
9578
9659
  getDtoDefaultItemConfigurationV1,
9579
9660
  getDtoDefaultItemConfigurationV2,
9580
9661
  getMockPageBlockDefinitions,