@supernova-studio/model 0.21.1 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -247,10 +247,11 @@ var Asset = z13.object({
247
247
  filePath: z13.string(),
248
248
  scope: AssetScope,
249
249
  properties: AssetProperties.nullish(),
250
- origin: AssetOrigin.nullish()
250
+ origin: AssetOrigin.optional(),
251
+ originKey: z13.string().optional()
251
252
  });
252
253
  function isImportedAsset(asset) {
253
- return !!asset.origin;
254
+ return !!asset.originKey;
254
255
  }
255
256
 
256
257
  // src/dsm/data-sources/data-source.ts
@@ -350,11 +351,12 @@ var ImportJob = Entity.extend({
350
351
  createdByUserId: z17.string().optional(),
351
352
  importContextId: z17.string(),
352
353
  error: z17.string().optional(),
353
- sourceType: DataSourceRemoteType
354
+ sourceType: DataSourceRemoteType,
355
+ importContextCleanedUp: z17.boolean()
354
356
  });
355
357
 
356
358
  // src/dsm/data-sources/import-summary.ts
357
- import { z as z86 } from "zod";
359
+ import { z as z87 } from "zod";
358
360
 
359
361
  // src/dsm/elements/data/base.ts
360
362
  import { z as z18 } from "zod";
@@ -529,7 +531,8 @@ var ShallowDesignElement = z27.object({
529
531
  parentPersistentId: z27.string().optional(),
530
532
  shortPersistentId: z27.string().optional(),
531
533
  childType: DesignElementType.optional(),
532
- sortOrder: z27.number()
534
+ sortOrder: z27.number(),
535
+ origin: z27.record(z27.any()).optional()
533
536
  });
534
537
  var DesignElement = ShallowDesignElement.extend({
535
538
  meta: ObjectMeta,
@@ -1279,11 +1282,13 @@ var FigmaNodeReferenceData = z46.object({
1279
1282
  nodeId: z46.string(),
1280
1283
  fileId: z46.string().optional(),
1281
1284
  valid: z46.boolean(),
1285
+ // Asset data
1282
1286
  assetId: z46.string().optional(),
1283
1287
  assetScale: z46.number().optional(),
1284
1288
  assetWidth: z46.number().optional(),
1285
1289
  assetHeight: z46.number().optional(),
1286
- assetUrl: z46.string().optional()
1290
+ assetUrl: z46.string().optional(),
1291
+ assetOriginKey: z46.string().optional()
1287
1292
  });
1288
1293
  var FigmaNodeReferenceElementData = z46.object({
1289
1294
  value: FigmaNodeReferenceData
@@ -1558,37 +1563,42 @@ function traverseStructure(node, action) {
1558
1563
  }
1559
1564
 
1560
1565
  // src/dsm/elements/figma-node-reference.ts
1566
+ import { z as z71 } from "zod";
1567
+ var FigmaNodeReferenceOrigin = z71.object({
1568
+ sourceId: z71.string()
1569
+ });
1561
1570
  var FigmaNodeReference = DesignElementBase.extend({
1562
- data: FigmaNodeReferenceData
1571
+ data: FigmaNodeReferenceData,
1572
+ origin: FigmaNodeReferenceOrigin
1563
1573
  });
1564
1574
 
1565
1575
  // src/dsm/elements/group.ts
1566
- import { z as z71 } from "zod";
1576
+ import { z as z72 } from "zod";
1567
1577
  var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
1568
- shortPersistentId: z71.string().optional(),
1578
+ shortPersistentId: z72.string().optional(),
1569
1579
  childType: DesignElementType,
1570
1580
  data: ElementGroupDataV2.optional()
1571
1581
  });
1572
1582
  var BrandedElementGroup = ElementGroup.extend(DesignElementBrandedPart.shape);
1573
1583
 
1574
1584
  // src/dsm/elements/page-block-v2.ts
1575
- import { z as z72 } from "zod";
1585
+ import { z as z73 } from "zod";
1576
1586
  var PageBlockV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend({
1577
1587
  data: PageBlockDataV2
1578
1588
  });
1579
- var PageBlockEditorModelV2 = z72.object({
1580
- id: z72.string(),
1589
+ var PageBlockEditorModelV2 = z73.object({
1590
+ id: z73.string(),
1581
1591
  data: PageBlockDataV2
1582
1592
  });
1583
1593
 
1584
1594
  // src/dsm/elements/theme.ts
1585
- import { z as z74 } from "zod";
1595
+ import { z as z75 } from "zod";
1586
1596
 
1587
1597
  // src/dsm/elements/tokens.ts
1588
- import { z as z73 } from "zod";
1589
- var DesignTokenOriginPart = z73.object({
1590
- referenceOriginId: z73.string().optional(),
1591
- referencePersistentId: z73.string().optional()
1598
+ import { z as z74 } from "zod";
1599
+ var DesignTokenOriginPart = z74.object({
1600
+ referenceOriginId: z74.string().optional(),
1601
+ referencePersistentId: z74.string().optional()
1592
1602
  });
1593
1603
  var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
1594
1604
  var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
@@ -1600,111 +1610,111 @@ var UpdateDesignTokenBase = DesignTokenBase.omit({
1600
1610
  brandPersistentId: true,
1601
1611
  designSystemVersionId: true
1602
1612
  });
1603
- var BlurTokenTypedData = z73.object({
1604
- type: z73.literal("Blur"),
1613
+ var BlurTokenTypedData = z74.object({
1614
+ type: z74.literal("Blur"),
1605
1615
  data: BlurTokenData
1606
1616
  });
1607
- var ColorTokenTypedData = z73.object({
1608
- type: z73.literal("Color"),
1617
+ var ColorTokenTypedData = z74.object({
1618
+ type: z74.literal("Color"),
1609
1619
  data: ColorTokenData
1610
1620
  });
1611
- var GradientTokenTypedData = z73.object({
1612
- type: z73.literal("Gradient"),
1621
+ var GradientTokenTypedData = z74.object({
1622
+ type: z74.literal("Gradient"),
1613
1623
  data: GradientTokenData
1614
1624
  });
1615
- var OpacityTokenTypedData = z73.object({
1616
- type: z73.literal("Opacity"),
1625
+ var OpacityTokenTypedData = z74.object({
1626
+ type: z74.literal("Opacity"),
1617
1627
  data: OpacityTokenData
1618
1628
  });
1619
- var ShadowTokenTypedData = z73.object({
1620
- type: z73.literal("Shadow"),
1629
+ var ShadowTokenTypedData = z74.object({
1630
+ type: z74.literal("Shadow"),
1621
1631
  data: ShadowTokenData
1622
1632
  });
1623
- var TypographyTokenTypedData = z73.object({
1624
- type: z73.literal("Typography"),
1633
+ var TypographyTokenTypedData = z74.object({
1634
+ type: z74.literal("Typography"),
1625
1635
  data: TypographyTokenData
1626
1636
  });
1627
- var StringTokenTypedData = z73.object({
1628
- type: z73.literal("String"),
1637
+ var StringTokenTypedData = z74.object({
1638
+ type: z74.literal("String"),
1629
1639
  data: StringTokenData
1630
1640
  });
1631
- var DimensionTokenTypedData = z73.object({
1632
- type: z73.literal("Dimension"),
1641
+ var DimensionTokenTypedData = z74.object({
1642
+ type: z74.literal("Dimension"),
1633
1643
  data: DimensionTokenData
1634
1644
  });
1635
- var FontSizeTokenTypedData = z73.object({
1636
- type: z73.literal("FontSize"),
1645
+ var FontSizeTokenTypedData = z74.object({
1646
+ type: z74.literal("FontSize"),
1637
1647
  data: FontSizeTokenData
1638
1648
  });
1639
- var FontFamilyTokenTypedData = z73.object({
1640
- type: z73.literal("FontFamily"),
1649
+ var FontFamilyTokenTypedData = z74.object({
1650
+ type: z74.literal("FontFamily"),
1641
1651
  data: FontFamilyTokenData
1642
1652
  });
1643
- var FontWeightTokenTypedData = z73.object({
1644
- type: z73.literal("FontWeight"),
1653
+ var FontWeightTokenTypedData = z74.object({
1654
+ type: z74.literal("FontWeight"),
1645
1655
  data: FontWeightTokenData
1646
1656
  });
1647
- var LetterSpacingTokenTypedData = z73.object({
1648
- type: z73.literal("LetterSpacing"),
1657
+ var LetterSpacingTokenTypedData = z74.object({
1658
+ type: z74.literal("LetterSpacing"),
1649
1659
  data: LetterSpacingTokenData
1650
1660
  });
1651
- var LineHeightTokenTypedData = z73.object({
1652
- type: z73.literal("LineHeight"),
1661
+ var LineHeightTokenTypedData = z74.object({
1662
+ type: z74.literal("LineHeight"),
1653
1663
  data: LineHeightTokenData
1654
1664
  });
1655
- var ParagraphSpacingTokenTypedData = z73.object({
1656
- type: z73.literal("ParagraphSpacing"),
1665
+ var ParagraphSpacingTokenTypedData = z74.object({
1666
+ type: z74.literal("ParagraphSpacing"),
1657
1667
  data: ParagraphSpacingTokenData
1658
1668
  });
1659
- var TextCaseTokenTypedData = z73.object({
1660
- type: z73.literal("TextCase"),
1669
+ var TextCaseTokenTypedData = z74.object({
1670
+ type: z74.literal("TextCase"),
1661
1671
  data: TextCaseTokenData
1662
1672
  });
1663
- var TextDecorationTokenTypedData = z73.object({
1664
- type: z73.literal("TextDecoration"),
1673
+ var TextDecorationTokenTypedData = z74.object({
1674
+ type: z74.literal("TextDecoration"),
1665
1675
  data: TextDecorationTokenData
1666
1676
  });
1667
- var BorderRadiusTokenTypedData = z73.object({
1668
- type: z73.literal("BorderRadius"),
1677
+ var BorderRadiusTokenTypedData = z74.object({
1678
+ type: z74.literal("BorderRadius"),
1669
1679
  data: BorderRadiusTokenData
1670
1680
  });
1671
- var BorderWidthTokenTypedData = z73.object({
1672
- type: z73.literal("BorderWidth"),
1681
+ var BorderWidthTokenTypedData = z74.object({
1682
+ type: z74.literal("BorderWidth"),
1673
1683
  data: BorderWidthTokenData
1674
1684
  });
1675
- var BorderTypedData = z73.object({
1676
- type: z73.literal("Border"),
1685
+ var BorderTypedData = z74.object({
1686
+ type: z74.literal("Border"),
1677
1687
  data: BorderTokenData
1678
1688
  });
1679
- var ProductCopyTypedData = z73.object({
1680
- type: z73.literal("ProductCopy"),
1689
+ var ProductCopyTypedData = z74.object({
1690
+ type: z74.literal("ProductCopy"),
1681
1691
  data: ProductCopyTokenData
1682
1692
  });
1683
- var SizeTypedData = z73.object({
1684
- type: z73.literal("Size"),
1693
+ var SizeTypedData = z74.object({
1694
+ type: z74.literal("Size"),
1685
1695
  data: SizeTokenData
1686
1696
  });
1687
- var SpaceTypedData = z73.object({
1688
- type: z73.literal("Space"),
1697
+ var SpaceTypedData = z74.object({
1698
+ type: z74.literal("Space"),
1689
1699
  data: SpaceTokenData
1690
1700
  });
1691
- var VisibilityTypedData = z73.object({
1692
- type: z73.literal("Visibility"),
1701
+ var VisibilityTypedData = z74.object({
1702
+ type: z74.literal("Visibility"),
1693
1703
  data: VisibilityTokenData
1694
1704
  });
1695
- var ZIndexTypedData = z73.object({
1696
- type: z73.literal("ZIndex"),
1705
+ var ZIndexTypedData = z74.object({
1706
+ type: z74.literal("ZIndex"),
1697
1707
  data: ZIndexTokenData
1698
1708
  });
1699
- var DurationTypedData = z73.object({
1700
- type: z73.literal("Duration"),
1709
+ var DurationTypedData = z74.object({
1710
+ type: z74.literal("Duration"),
1701
1711
  data: DurationTokenData
1702
1712
  });
1703
- var FontTypedData = z73.object({
1704
- type: z73.literal("Font"),
1705
- data: z73.record(z73.any())
1713
+ var FontTypedData = z74.object({
1714
+ type: z74.literal("Font"),
1715
+ data: z74.record(z74.any())
1706
1716
  });
1707
- var DesignTokenTypedData = z73.discriminatedUnion("type", [
1717
+ var DesignTokenTypedData = z74.discriminatedUnion("type", [
1708
1718
  BlurTokenTypedData,
1709
1719
  BorderRadiusTokenTypedData,
1710
1720
  BorderWidthTokenTypedData,
@@ -1754,72 +1764,72 @@ function designTokenTypeFilter(type) {
1754
1764
  var ThemeOverrideOriginPart = DesignTokenOriginPart;
1755
1765
  var ThemeOverrideOrigin = DesignTokenOrigin;
1756
1766
  var ThemeOverride = DesignTokenTypedData.and(
1757
- z74.object({
1758
- tokenPersistentId: z74.string(),
1767
+ z75.object({
1768
+ tokenPersistentId: z75.string(),
1759
1769
  origin: ThemeOverrideOrigin.optional().nullable().transform((v) => v ?? void 0)
1760
1770
  })
1761
1771
  );
1762
- var ThemeElementData = z74.object({
1763
- value: z74.object({
1764
- overrides: z74.array(ThemeOverride)
1772
+ var ThemeElementData = z75.object({
1773
+ value: z75.object({
1774
+ overrides: z75.array(ThemeOverride)
1765
1775
  })
1766
1776
  });
1767
- var ThemeOriginPart = z74.object({});
1768
- var ThemeOriginObject = z74.object({
1769
- id: z74.string(),
1770
- name: z74.string()
1777
+ var ThemeOriginPart = z75.object({});
1778
+ var ThemeOriginObject = z75.object({
1779
+ id: z75.string(),
1780
+ name: z75.string()
1771
1781
  });
1772
- var ThemeOriginSource = z74.object({
1773
- sourceId: z74.string(),
1774
- sourceObjects: z74.array(ThemeOriginObject)
1782
+ var ThemeOriginSource = z75.object({
1783
+ sourceId: z75.string(),
1784
+ sourceObjects: z75.array(ThemeOriginObject)
1775
1785
  });
1776
- var ThemeOrigin = z74.object({
1777
- sources: z74.array(ThemeOriginSource)
1786
+ var ThemeOrigin = z75.object({
1787
+ sources: z75.array(ThemeOriginSource)
1778
1788
  });
1779
1789
  var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
1780
1790
  origin: ThemeOrigin.optional(),
1781
- overrides: z74.array(ThemeOverride)
1791
+ overrides: z75.array(ThemeOverride)
1782
1792
  });
1783
1793
 
1784
1794
  // src/dsm/import/support/figma-files.ts
1785
- import { z as z75 } from "zod";
1786
- var FigmaFileDownloadScope = z75.object({
1787
- styles: z75.boolean(),
1788
- components: z75.boolean(),
1789
- currentVersion: z75.literal("__latest__").nullable(),
1790
- publishedVersion: z75.string().nullable(),
1791
- downloadChunkSize: z75.number().optional()
1795
+ import { z as z76 } from "zod";
1796
+ var FigmaFileDownloadScope = z76.object({
1797
+ styles: z76.boolean(),
1798
+ components: z76.boolean(),
1799
+ currentVersion: z76.literal("__latest__").nullable(),
1800
+ publishedVersion: z76.string().nullable(),
1801
+ downloadChunkSize: z76.number().optional()
1792
1802
  });
1793
- var FigmaFileAccessData = z75.object({
1794
- accessToken: z75.string()
1803
+ var FigmaFileAccessData = z76.object({
1804
+ accessToken: z76.string()
1795
1805
  });
1796
1806
 
1797
1807
  // src/dsm/import/support/import-context.ts
1798
- import { z as z76 } from "zod";
1799
- var ImportFunctionInput = z76.object({
1800
- importJobId: z76.string(),
1801
- importContextId: z76.string(),
1802
- designSystemId: z76.string().optional()
1808
+ import { z as z77 } from "zod";
1809
+ var ImportFunctionInput = z77.object({
1810
+ importJobId: z77.string(),
1811
+ importContextId: z77.string(),
1812
+ designSystemId: z77.string().optional()
1803
1813
  });
1804
- var ImportedFigmaSourceData = z76.object({
1805
- sourceId: z76.string(),
1814
+ var ImportedFigmaSourceData = z77.object({
1815
+ sourceId: z77.string(),
1806
1816
  figmaRemote: DataSourceFigmaRemote
1807
1817
  });
1808
- var FigmaImportBaseContext = z76.object({
1809
- designSystemId: z76.string(),
1818
+ var FigmaImportBaseContext = z77.object({
1819
+ designSystemId: z77.string(),
1810
1820
  /**
1811
1821
  * Data required for accessing Figma files. This should contain access data for all file ids
1812
1822
  * mentioned in the `importedSourceDataBySourceId`
1813
1823
  *
1814
1824
  * fileId: file data
1815
1825
  */
1816
- fileAccessByFileId: z76.record(FigmaFileAccessData),
1826
+ fileAccessByFileId: z77.record(FigmaFileAccessData),
1817
1827
  /**
1818
1828
  * Figma source data for which import was requested
1819
1829
  *
1820
1830
  * sourceId: source data
1821
1831
  */
1822
- importedSourceDataBySourceId: z76.record(ImportedFigmaSourceData)
1832
+ importedSourceDataBySourceId: z77.record(ImportedFigmaSourceData)
1823
1833
  });
1824
1834
  var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
1825
1835
  importMetadata: DataSourceFigmaImportMetadata
@@ -1831,79 +1841,79 @@ var FigmaImportContextWithDownloadScopes = FigmaImportBaseContext.extend({
1831
1841
  *
1832
1842
  * File id -> file download scope
1833
1843
  */
1834
- fileDownloadScopesByFileId: z76.record(FigmaFileDownloadScope),
1844
+ fileDownloadScopesByFileId: z77.record(FigmaFileDownloadScope),
1835
1845
  /**
1836
1846
  * Sources filtered down to the ones that have changed since last import and therefore need to be
1837
1847
  * imported again.
1838
1848
  *
1839
1849
  * Source id -> import metadata
1840
1850
  */
1841
- changedImportedSourceDataBySourceId: z76.record(ChangedImportedFigmaSourceData)
1851
+ changedImportedSourceDataBySourceId: z77.record(ChangedImportedFigmaSourceData)
1842
1852
  });
1843
1853
 
1844
1854
  // src/dsm/import/support/import-model-collections.ts
1845
- import { z as z84 } from "zod";
1855
+ import { z as z85 } from "zod";
1846
1856
 
1847
1857
  // src/dsm/import/image.ts
1848
- import { z as z77 } from "zod";
1849
- var ImageImportModelType = z77.enum(["Url", "FigmaRender"]);
1850
- var ImageImportModelBase = z77.object({
1858
+ import { z as z78 } from "zod";
1859
+ var ImageImportModelType = z78.enum(["Url", "FigmaRender"]);
1860
+ var ImageImportModelBase = z78.object({
1851
1861
  scope: AssetScope
1852
1862
  });
1853
1863
  var UrlImageImportModel = ImageImportModelBase.extend({
1854
- type: z77.literal(ImageImportModelType.enum.Url),
1855
- url: z77.string(),
1856
- originKey: z77.string(),
1857
- extension: z77.enum(["png", "svg", "jpg"])
1864
+ type: z78.literal(ImageImportModelType.enum.Url),
1865
+ url: z78.string(),
1866
+ originKey: z78.string(),
1867
+ extension: z78.string()
1858
1868
  });
1859
- var FigmaRenderFormat = z77.enum(["Svg", "Png"]);
1869
+ var FigmaRenderFormat = z78.enum(["Svg", "Png"]);
1860
1870
  var FigmaRenderBase = ImageImportModelBase.extend({
1861
- type: z77.literal(ImageImportModelType.enum.FigmaRender),
1862
- fileId: z77.string(),
1863
- fileVersionId: z77.string().optional(),
1864
- nodeId: z77.string(),
1865
- originKey: z77.string()
1871
+ type: z78.literal(ImageImportModelType.enum.FigmaRender),
1872
+ fileId: z78.string(),
1873
+ fileVersionId: z78.string().optional(),
1874
+ nodeId: z78.string(),
1875
+ originKey: z78.string()
1866
1876
  });
1867
1877
  var FigmaPngRenderImportModel = FigmaRenderBase.extend({
1868
- format: z77.literal(FigmaRenderFormat.enum.Png),
1869
- scale: z77.number()
1878
+ format: z78.literal(FigmaRenderFormat.enum.Png),
1879
+ scale: z78.number()
1870
1880
  });
1871
1881
  var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
1872
- format: z77.literal(FigmaRenderFormat.enum.Svg)
1882
+ format: z78.literal(FigmaRenderFormat.enum.Svg)
1873
1883
  });
1874
- var FigmaRenderImportModel = z77.discriminatedUnion("format", [
1884
+ var FigmaRenderImportModel = z78.discriminatedUnion("format", [
1875
1885
  FigmaPngRenderImportModel,
1876
1886
  FigmaSvgRenderImportModel
1877
1887
  ]);
1878
- var ImageImportModel = z77.union([UrlImageImportModel, FigmaRenderImportModel]);
1888
+ var ImageImportModel = z78.union([UrlImageImportModel, FigmaRenderImportModel]);
1879
1889
 
1880
1890
  // src/dsm/import/component.ts
1881
- import { z as z79 } from "zod";
1891
+ import { z as z80 } from "zod";
1882
1892
 
1883
1893
  // src/dsm/import/base.ts
1884
- import { z as z78 } from "zod";
1885
- var ImportModelBase = z78.object({
1886
- id: z78.string(),
1894
+ import { z as z79 } from "zod";
1895
+ var ImportModelBase = z79.object({
1896
+ id: z79.string(),
1887
1897
  meta: ObjectMeta,
1888
1898
  origin: DesignElementOrigin,
1889
- brandPersistentId: z78.string(),
1890
- sortOrder: z78.number()
1899
+ brandPersistentId: z79.string(),
1900
+ sortOrder: z79.number()
1891
1901
  });
1892
1902
  var ImportModelInputBase = ImportModelBase.omit({
1893
1903
  brandPersistentId: true,
1894
1904
  origin: true,
1895
1905
  sortOrder: true
1896
1906
  }).extend({
1897
- originId: z78.string(),
1898
- originMetadata: z78.record(z78.any())
1907
+ originId: z79.string(),
1908
+ originMetadata: z79.record(z79.any())
1899
1909
  });
1900
1910
 
1901
1911
  // src/dsm/import/component.ts
1902
- var ComponentImportModelPart = z79.object({
1912
+ var ComponentImportModelPart = z80.object({
1903
1913
  thumbnail: ImageImportModel
1904
1914
  });
1905
1915
  var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
1906
- isAsset: z79.boolean(),
1916
+ isAsset: z80.boolean(),
1907
1917
  svg: FigmaSvgRenderImportModel.optional(),
1908
1918
  origin: ComponentOrigin
1909
1919
  });
@@ -1916,49 +1926,49 @@ var AssetImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart
1916
1926
  });
1917
1927
 
1918
1928
  // src/dsm/import/theme.ts
1919
- import { z as z80 } from "zod";
1929
+ import { z as z81 } from "zod";
1920
1930
  var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
1921
- z80.object({
1922
- id: z80.string(),
1931
+ z81.object({
1932
+ id: z81.string(),
1923
1933
  meta: ObjectMeta
1924
1934
  })
1925
1935
  );
1926
1936
  var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
1927
- z80.object({
1937
+ z81.object({
1928
1938
  origin: ThemeOverrideOrigin
1929
1939
  })
1930
1940
  );
1931
1941
  var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
1932
- z80.object({
1933
- originId: z80.string(),
1942
+ z81.object({
1943
+ originId: z81.string(),
1934
1944
  originMetadata: ThemeOverrideOriginPart
1935
1945
  })
1936
1946
  );
1937
- var ThemeImportModel = z80.object({
1947
+ var ThemeImportModel = z81.object({
1938
1948
  meta: ObjectMeta,
1939
- brandPersistentId: z80.string(),
1949
+ brandPersistentId: z81.string(),
1940
1950
  originSource: ThemeOriginSource,
1941
- overrides: z80.array(ThemeOverrideImportModel),
1942
- sortOrder: z80.number()
1951
+ overrides: z81.array(ThemeOverrideImportModel),
1952
+ sortOrder: z81.number()
1943
1953
  });
1944
- var ThemeImportModelInput = z80.object({
1954
+ var ThemeImportModelInput = z81.object({
1945
1955
  meta: ObjectMeta,
1946
- originObjects: z80.array(ThemeOriginObject),
1947
- overrides: z80.array(ThemeOverrideImportModelInput)
1956
+ originObjects: z81.array(ThemeOriginObject),
1957
+ overrides: z81.array(ThemeOverrideImportModelInput)
1948
1958
  });
1949
- var ThemeUpdateImportModel = z80.object({
1950
- themePersistentId: z80.string(),
1951
- overrides: z80.array(ThemeOverrideImportModel)
1959
+ var ThemeUpdateImportModel = z81.object({
1960
+ themePersistentId: z81.string(),
1961
+ overrides: z81.array(ThemeOverrideImportModel)
1952
1962
  });
1953
- var ThemeUpdateImportModelInput = z80.object({
1954
- themePersistentId: z80.string(),
1955
- overrides: z80.array(ThemeOverrideImportModelInput)
1963
+ var ThemeUpdateImportModelInput = z81.object({
1964
+ themePersistentId: z81.string(),
1965
+ overrides: z81.array(ThemeOverrideImportModelInput)
1956
1966
  });
1957
1967
 
1958
1968
  // src/dsm/import/tokens.ts
1959
- import { z as z81 } from "zod";
1960
- var DesignTokenImportModelPart = z81.object({
1961
- collection: z81.string().optional()
1969
+ import { z as z82 } from "zod";
1970
+ var DesignTokenImportModelPart = z82.object({
1971
+ collection: z82.string().optional()
1962
1972
  });
1963
1973
  var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
1964
1974
  origin: DesignTokenOrigin
@@ -1976,15 +1986,15 @@ function designTokenImportModelTypeFilter(type) {
1976
1986
  }
1977
1987
 
1978
1988
  // src/dsm/import/figma-frames.ts
1979
- import { z as z82 } from "zod";
1989
+ import { z as z83 } from "zod";
1980
1990
  var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
1981
1991
  image: FigmaPngRenderImportModel
1982
1992
  });
1983
1993
  var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
1984
- children: z82.lazy(() => FigmaFileStructureNodeImportModel.array())
1994
+ children: z83.lazy(() => FigmaFileStructureNodeImportModel.array())
1985
1995
  });
1986
- var FigmaFileStructureImportModelPart = z82.object({
1987
- data: z82.object({
1996
+ var FigmaFileStructureImportModelPart = z83.object({
1997
+ data: z83.object({
1988
1998
  rootNode: FigmaFileStructureNodeImportModel,
1989
1999
  assetsInFile: FigmaFileStructureStatistics
1990
2000
  })
@@ -1995,7 +2005,7 @@ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImp
1995
2005
  var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
1996
2006
  FigmaFileStructureImportModelPart.shape
1997
2007
  ).extend({
1998
- fileVersionId: z82.string()
2008
+ fileVersionId: z83.string()
1999
2009
  });
2000
2010
  function figmaFileStructureImportModelToMap(root) {
2001
2011
  const map = /* @__PURE__ */ new Map();
@@ -2009,30 +2019,30 @@ function recursiveFigmaFileStructureToMap2(node, map) {
2009
2019
  }
2010
2020
 
2011
2021
  // src/dsm/import/data-source.ts
2012
- import { z as z83 } from "zod";
2013
- var DataSourceImportModel = z83.object({
2014
- id: z83.string(),
2015
- fileName: z83.string().optional(),
2016
- thumbnailUrl: z83.string().optional()
2022
+ import { z as z84 } from "zod";
2023
+ var DataSourceImportModel = z84.object({
2024
+ id: z84.string(),
2025
+ fileName: z84.string().optional(),
2026
+ thumbnailUrl: z84.string().optional()
2017
2027
  });
2018
2028
 
2019
2029
  // src/dsm/import/support/import-model-collections.ts
2020
- var ImportModelInputCollection = z84.object({
2030
+ var ImportModelInputCollection = z85.object({
2021
2031
  source: DataSourceImportModel,
2022
- tokens: z84.array(DesignTokenImportModelInput).default([]),
2023
- components: z84.array(ComponentImportModelInput).default([]),
2024
- assets: z84.array(AssetImportModelInput).default([]),
2025
- themeUpdates: z84.array(ThemeUpdateImportModelInput).default([]),
2026
- themes: z84.array(ThemeImportModelInput).default([]),
2032
+ tokens: z85.array(DesignTokenImportModelInput).default([]),
2033
+ components: z85.array(ComponentImportModelInput).default([]),
2034
+ assets: z85.array(AssetImportModelInput).default([]),
2035
+ themeUpdates: z85.array(ThemeUpdateImportModelInput).default([]),
2036
+ themes: z85.array(ThemeImportModelInput).default([]),
2027
2037
  figmaFileStructure: FigmaFileStructureImportModelInput.optional()
2028
2038
  });
2029
- var ImportModelCollection = z84.object({
2030
- sources: z84.array(DataSourceImportModel),
2031
- tokens: z84.array(DesignTokenImportModel).default([]),
2032
- components: z84.array(ComponentImportModel).default([]),
2033
- themeUpdates: z84.array(ThemeUpdateImportModel).default([]),
2034
- themes: z84.array(ThemeImportModel).default([]),
2035
- figmaFileStructures: z84.array(FigmaFileStructureImportModel)
2039
+ var ImportModelCollection = z85.object({
2040
+ sources: z85.array(DataSourceImportModel),
2041
+ tokens: z85.array(DesignTokenImportModel).default([]),
2042
+ components: z85.array(ComponentImportModel).default([]),
2043
+ themeUpdates: z85.array(ThemeUpdateImportModel).default([]),
2044
+ themes: z85.array(ThemeImportModel).default([]),
2045
+ figmaFileStructures: z85.array(FigmaFileStructureImportModel)
2036
2046
  });
2037
2047
  function addImportModelCollections(lhs, rhs) {
2038
2048
  return {
@@ -2046,8 +2056,8 @@ function addImportModelCollections(lhs, rhs) {
2046
2056
  }
2047
2057
 
2048
2058
  // src/dsm/import/warning.ts
2049
- import { z as z85 } from "zod";
2050
- var ImportWarningType = z85.enum([
2059
+ import { z as z86 } from "zod";
2060
+ var ImportWarningType = z86.enum([
2051
2061
  "NoVersionFound",
2052
2062
  "UnsupportedFill",
2053
2063
  "UnsupportedStroke",
@@ -2061,27 +2071,27 @@ var ImportWarningType = z85.enum([
2061
2071
  "DuplicateImportedStyleId",
2062
2072
  "DuplicateImportedStylePath"
2063
2073
  ]);
2064
- var ImportWarning = z85.object({
2074
+ var ImportWarning = z86.object({
2065
2075
  warningType: ImportWarningType,
2066
- componentId: z85.string().optional(),
2067
- componentName: z85.string().optional(),
2068
- styleId: z85.string().optional(),
2069
- styleName: z85.string().optional(),
2070
- unsupportedStyleValueType: z85.string().optional()
2076
+ componentId: z86.string().optional(),
2077
+ componentName: z86.string().optional(),
2078
+ styleId: z86.string().optional(),
2079
+ styleName: z86.string().optional(),
2080
+ unsupportedStyleValueType: z86.string().optional()
2071
2081
  });
2072
2082
 
2073
2083
  // src/dsm/data-sources/import-summary.ts
2074
- var FileStructureStats = z86.object({
2084
+ var FileStructureStats = z87.object({
2075
2085
  frames: zeroNumberByDefault2(),
2076
2086
  components: zeroNumberByDefault2(),
2077
2087
  componentSets: zeroNumberByDefault2()
2078
2088
  });
2079
2089
  var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
2080
2090
  // Backward compatibility
2081
- z86.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
2091
+ z87.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
2082
2092
  );
2083
- var SourceImportSummaryByTokenType = z86.record(SourceImportSummaryByTokenTypeKey, z86.number());
2084
- var SourceImportTokenSummary = z86.object({
2093
+ var SourceImportSummaryByTokenType = z87.record(SourceImportSummaryByTokenTypeKey, z87.number());
2094
+ var SourceImportTokenSummary = z87.object({
2085
2095
  tokensCreated: zeroNumberByDefault2(),
2086
2096
  tokensUpdated: zeroNumberByDefault2(),
2087
2097
  tokensDeleted: zeroNumberByDefault2(),
@@ -2089,7 +2099,7 @@ var SourceImportTokenSummary = z86.object({
2089
2099
  tokensUpdatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {}),
2090
2100
  tokensDeletedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {})
2091
2101
  });
2092
- var SourceImportComponentSummary = z86.object({
2102
+ var SourceImportComponentSummary = z87.object({
2093
2103
  componentsCreated: zeroNumberByDefault2(),
2094
2104
  componentsUpdated: zeroNumberByDefault2(),
2095
2105
  componentsDeleted: zeroNumberByDefault2(),
@@ -2097,68 +2107,68 @@ var SourceImportComponentSummary = z86.object({
2097
2107
  componentAssetsUpdated: zeroNumberByDefault2(),
2098
2108
  componentAssetsDeleted: zeroNumberByDefault2()
2099
2109
  });
2100
- var SourceImportFrameSummary = z86.object({
2110
+ var SourceImportFrameSummary = z87.object({
2101
2111
  assetsInFile: nullishToOptional(FileStructureStats.optional()),
2102
- invalidReferencesCount: nullishToOptional(z86.number().optional())
2103
- });
2104
- var SourceImportSummary = z86.object({
2105
- sourceId: nullishToOptional(z86.string()),
2106
- brandId: nullishToOptional(z86.string()),
2107
- versionId: nullishToOptional(z86.string()),
2108
- error: nullishToOptional(z86.any()),
2109
- isFailed: z86.boolean(),
2110
- warnings: z86.array(ImportWarning).nullish().transform((v) => v ?? []),
2112
+ invalidReferencesCount: nullishToOptional(z87.number().optional())
2113
+ });
2114
+ var SourceImportSummary = z87.object({
2115
+ sourceId: nullishToOptional(z87.string()),
2116
+ brandId: nullishToOptional(z87.string()),
2117
+ versionId: nullishToOptional(z87.string()),
2118
+ error: nullishToOptional(z87.any()),
2119
+ isFailed: z87.boolean(),
2120
+ warnings: z87.array(ImportWarning).nullish().transform((v) => v ?? []),
2111
2121
  ...SourceImportTokenSummary.shape,
2112
2122
  ...SourceImportComponentSummary.shape,
2113
2123
  ...FileStructureStats.shape
2114
2124
  });
2115
2125
  function zeroNumberByDefault2() {
2116
- return z86.number().nullish().transform((v) => v ?? 0);
2126
+ return z87.number().nullish().transform((v) => v ?? 0);
2117
2127
  }
2118
2128
 
2119
2129
  // src/dsm/documentation/block-definitions/aux.ts
2120
- import { z as z87 } from "zod";
2121
- var PageBlockDefinitionAppearance = z87.object({
2122
- isBordered: z87.boolean().optional(),
2123
- hasBackground: z87.boolean().optional(),
2124
- isEditorPresentationDifferent: z87.boolean().optional()
2130
+ import { z as z88 } from "zod";
2131
+ var PageBlockDefinitionAppearance = z88.object({
2132
+ isBordered: z88.boolean().optional(),
2133
+ hasBackground: z88.boolean().optional(),
2134
+ isEditorPresentationDifferent: z88.boolean().optional()
2125
2135
  });
2126
2136
 
2127
2137
  // src/dsm/documentation/block-definitions/definition.ts
2128
- import { z as z90 } from "zod";
2138
+ import { z as z91 } from "zod";
2129
2139
 
2130
2140
  // src/dsm/documentation/block-definitions/item.ts
2131
- import { z as z89 } from "zod";
2141
+ import { z as z90 } from "zod";
2132
2142
 
2133
2143
  // src/dsm/documentation/block-definitions/variant.ts
2134
- import { z as z88 } from "zod";
2135
- var PageBlockDefinitionLayoutType = z88.enum(["Column", "Row"]);
2136
- var PageBlockDefinitionLayoutGap = z88.enum(["Small", "Medium", "Large", "None"]);
2137
- var PageBlockDefinitionLayoutAlign = z88.enum(["Start", "Center", "End"]);
2138
- var PageBlockDefinitionLayoutResizing = z88.enum(["Fill", "Hug"]);
2139
- var PageBlockDefinitionLayoutBase = z88.object({
2144
+ import { z as z89 } from "zod";
2145
+ var PageBlockDefinitionLayoutType = z89.enum(["Column", "Row"]);
2146
+ var PageBlockDefinitionLayoutGap = z89.enum(["Small", "Medium", "Large", "None"]);
2147
+ var PageBlockDefinitionLayoutAlign = z89.enum(["Start", "Center", "End"]);
2148
+ var PageBlockDefinitionLayoutResizing = z89.enum(["Fill", "Hug"]);
2149
+ var PageBlockDefinitionLayoutBase = z89.object({
2140
2150
  type: PageBlockDefinitionLayoutType,
2141
2151
  gap: PageBlockDefinitionLayoutGap.optional(),
2142
2152
  columnAlign: PageBlockDefinitionLayoutAlign.optional(),
2143
2153
  columnResizing: PageBlockDefinitionLayoutResizing.optional()
2144
2154
  });
2145
2155
  var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
2146
- children: z88.lazy(() => z88.array(PageBlockDefinitionLayout.or(z88.string())))
2147
- });
2148
- var PageBlockDefinitionVariant = z88.object({
2149
- id: z88.string(),
2150
- name: z88.string(),
2151
- image: z88.string().optional(),
2152
- description: z88.string().optional(),
2153
- documentationLink: z88.string().optional(),
2156
+ children: z89.lazy(() => z89.array(PageBlockDefinitionLayout.or(z89.string())))
2157
+ });
2158
+ var PageBlockDefinitionVariant = z89.object({
2159
+ id: z89.string(),
2160
+ name: z89.string(),
2161
+ image: z89.string().optional(),
2162
+ description: z89.string().optional(),
2163
+ documentationLink: z89.string().optional(),
2154
2164
  layout: PageBlockDefinitionLayout,
2155
- maxColumns: z88.number().optional(),
2156
- defaultColumns: z88.number().optional(),
2165
+ maxColumns: z89.number().optional(),
2166
+ defaultColumns: z89.number().optional(),
2157
2167
  appearance: PageBlockDefinitionAppearance.optional()
2158
2168
  });
2159
2169
 
2160
2170
  // src/dsm/documentation/block-definitions/item.ts
2161
- var PageBlockDefinitionPropertyType = z89.enum([
2171
+ var PageBlockDefinitionPropertyType = z90.enum([
2162
2172
  "RichText",
2163
2173
  "MultiRichText",
2164
2174
  "Text",
@@ -2185,7 +2195,7 @@ var PageBlockDefinitionPropertyType = z89.enum([
2185
2195
  "Storybook",
2186
2196
  "Color"
2187
2197
  ]);
2188
- var PageBlockDefinitionRichTextPropertyStyle = z89.enum([
2198
+ var PageBlockDefinitionRichTextPropertyStyle = z90.enum([
2189
2199
  "Title1",
2190
2200
  "Title2",
2191
2201
  "Title3",
@@ -2195,8 +2205,8 @@ var PageBlockDefinitionRichTextPropertyStyle = z89.enum([
2195
2205
  "Callout",
2196
2206
  "Default"
2197
2207
  ]);
2198
- var PageBlockDefinitionMultiRichTextPropertyStyle = z89.enum(["OL", "UL", "Default"]);
2199
- var PageBlockDefinitionTextPropertyStyle = z89.enum([
2208
+ var PageBlockDefinitionMultiRichTextPropertyStyle = z90.enum(["OL", "UL", "Default"]);
2209
+ var PageBlockDefinitionTextPropertyStyle = z90.enum([
2200
2210
  "Title1",
2201
2211
  "Title2",
2202
2212
  "Title3",
@@ -2209,79 +2219,79 @@ var PageBlockDefinitionTextPropertyStyle = z89.enum([
2209
2219
  "SmallBold",
2210
2220
  "SmallSemibold"
2211
2221
  ]);
2212
- var PageBlockDefinitionTextPropertyColor = z89.enum(["Neutral", "NeutralFaded"]);
2213
- var PageBlockDefinitionBooleanPropertyStyle = z89.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
2214
- var PageBlockDefinitionSingleSelectPropertyStyle = z89.enum([
2222
+ var PageBlockDefinitionTextPropertyColor = z90.enum(["Neutral", "NeutralFaded"]);
2223
+ var PageBlockDefinitionBooleanPropertyStyle = z90.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
2224
+ var PageBlockDefinitionSingleSelectPropertyStyle = z90.enum([
2215
2225
  "SegmentedControl",
2216
2226
  "ToggleButton",
2217
2227
  "Select",
2218
2228
  "Checkbox"
2219
2229
  ]);
2220
- var PageBlockDefinitionMultiSelectPropertyStyle = z89.enum(["SegmentedControl", "Select", "Checkbox"]);
2221
- var PageBlockDefinitionImageAspectRatio = z89.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
2222
- var PageBlockDefinitionImageWidth = z89.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
2223
- var PageBlockDefinitionSelectChoice = z89.object({
2224
- value: z89.string(),
2225
- name: z89.string(),
2226
- icon: z89.string().optional()
2230
+ var PageBlockDefinitionMultiSelectPropertyStyle = z90.enum(["SegmentedControl", "Select", "Checkbox"]);
2231
+ var PageBlockDefinitionImageAspectRatio = z90.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
2232
+ var PageBlockDefinitionImageWidth = z90.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
2233
+ var PageBlockDefinitionSelectChoice = z90.object({
2234
+ value: z90.string(),
2235
+ name: z90.string(),
2236
+ icon: z90.string().optional()
2227
2237
  });
2228
- var PageBlockDefinitionUntypedPropertyOptions = z89.record(z89.any());
2229
- var PageBlockDefinitionRichTextOptions = z89.object({
2238
+ var PageBlockDefinitionUntypedPropertyOptions = z90.record(z90.any());
2239
+ var PageBlockDefinitionRichTextOptions = z90.object({
2230
2240
  richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
2231
2241
  });
2232
- var PageBlockDefinitionMutiRichTextOptions = z89.object({
2242
+ var PageBlockDefinitionMutiRichTextOptions = z90.object({
2233
2243
  multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
2234
2244
  });
2235
- var PageBlockDefinitionTextOptions = z89.object({
2236
- placeholder: z89.string().optional(),
2237
- defaultValue: z89.string().optional(),
2245
+ var PageBlockDefinitionTextOptions = z90.object({
2246
+ placeholder: z90.string().optional(),
2247
+ defaultValue: z90.string().optional(),
2238
2248
  textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
2239
2249
  color: PageBlockDefinitionTextPropertyColor.optional()
2240
2250
  });
2241
- var PageBlockDefinitionSelectOptions = z89.object({
2251
+ var PageBlockDefinitionSelectOptions = z90.object({
2242
2252
  singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
2243
- defaultChoice: z89.string(),
2244
- choices: z89.array(PageBlockDefinitionSelectChoice)
2253
+ defaultChoice: z90.string(),
2254
+ choices: z90.array(PageBlockDefinitionSelectChoice)
2245
2255
  });
2246
- var PageBlockDefinitionImageOptions = z89.object({
2256
+ var PageBlockDefinitionImageOptions = z90.object({
2247
2257
  width: PageBlockDefinitionImageWidth.optional(),
2248
2258
  aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
2249
- allowCaption: z89.boolean().optional(),
2250
- recommendation: z89.string().optional()
2259
+ allowCaption: z90.boolean().optional(),
2260
+ recommendation: z90.string().optional()
2251
2261
  });
2252
- var PageBlockDefinitionBooleanOptions = z89.object({
2253
- defaultvalue: z89.boolean().optional(),
2262
+ var PageBlockDefinitionBooleanOptions = z90.object({
2263
+ defaultvalue: z90.boolean().optional(),
2254
2264
  booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
2255
2265
  });
2256
- var PageBlockDefinitionNumberOptions = z89.object({
2257
- defaultValue: z89.number(),
2258
- min: z89.number().optional(),
2259
- max: z89.number().optional(),
2260
- step: z89.number().optional(),
2261
- placeholder: z89.string().optional()
2266
+ var PageBlockDefinitionNumberOptions = z90.object({
2267
+ defaultValue: z90.number(),
2268
+ min: z90.number().optional(),
2269
+ max: z90.number().optional(),
2270
+ step: z90.number().optional(),
2271
+ placeholder: z90.string().optional()
2262
2272
  });
2263
- var PageBlockDefinitionComponentOptions = z89.object({
2264
- renderLayoutAs: z89.enum(["List", "Table"]).optional(),
2265
- allowPropertySelection: z89.boolean().optional()
2273
+ var PageBlockDefinitionComponentOptions = z90.object({
2274
+ renderLayoutAs: z90.enum(["List", "Table"]).optional(),
2275
+ allowPropertySelection: z90.boolean().optional()
2266
2276
  });
2267
- var PageBlockDefinitionProperty = z89.object({
2268
- id: z89.string(),
2269
- name: z89.string(),
2277
+ var PageBlockDefinitionProperty = z90.object({
2278
+ id: z90.string(),
2279
+ name: z90.string(),
2270
2280
  type: PageBlockDefinitionPropertyType,
2271
- description: z89.string().optional(),
2281
+ description: z90.string().optional(),
2272
2282
  // TODO Docs
2273
2283
  options: PageBlockDefinitionUntypedPropertyOptions.optional(),
2274
- variantOptions: z89.record(PageBlockDefinitionUntypedPropertyOptions).optional()
2284
+ variantOptions: z90.record(PageBlockDefinitionUntypedPropertyOptions).optional()
2275
2285
  });
2276
- var PageBlockDefinitionItem = z89.object({
2277
- properties: z89.array(PageBlockDefinitionProperty),
2286
+ var PageBlockDefinitionItem = z90.object({
2287
+ properties: z90.array(PageBlockDefinitionProperty),
2278
2288
  appearance: PageBlockDefinitionAppearance.optional(),
2279
- variants: z89.array(PageBlockDefinitionVariant),
2280
- defaultVariantKey: z89.string()
2289
+ variants: z90.array(PageBlockDefinitionVariant),
2290
+ defaultVariantKey: z90.string()
2281
2291
  });
2282
2292
 
2283
2293
  // src/dsm/documentation/block-definitions/definition.ts
2284
- var PageBlockCategory = z90.enum([
2294
+ var PageBlockCategory = z91.enum([
2285
2295
  "Text",
2286
2296
  "Layout",
2287
2297
  "Media",
@@ -2295,61 +2305,44 @@ var PageBlockCategory = z90.enum([
2295
2305
  "Data",
2296
2306
  "Other"
2297
2307
  ]);
2298
- var PageBlockBehaviorDataType = z90.enum(["Item", "Token", "Asset", "Component", "FigmaNode"]);
2299
- var PageBlockBehaviorSelectionType = z90.enum(["Entity", "Group", "EntityAndGroup"]);
2300
- var PageBlockDefinitionBehavior = z90.object({
2308
+ var PageBlockBehaviorDataType = z91.enum(["Item", "Token", "Asset", "Component", "FigmaNode"]);
2309
+ var PageBlockBehaviorSelectionType = z91.enum(["Entity", "Group", "EntityAndGroup"]);
2310
+ var PageBlockDefinitionBehavior = z91.object({
2301
2311
  dataType: PageBlockBehaviorDataType,
2302
- items: z90.object({
2303
- numberOfItems: z90.number(),
2304
- allowLinks: z90.boolean()
2312
+ items: z91.object({
2313
+ numberOfItems: z91.number(),
2314
+ allowLinks: z91.boolean()
2305
2315
  }).optional(),
2306
- entities: z90.object({
2316
+ entities: z91.object({
2307
2317
  selectionType: PageBlockBehaviorSelectionType,
2308
- maxSelected: z90.number()
2318
+ maxSelected: z91.number()
2309
2319
  }).optional()
2310
2320
  });
2311
- var PageBlockDefinitionOnboarding = z90.object({
2312
- helpText: z90.string(),
2313
- documentationLink: z90.string().optional()
2321
+ var PageBlockDefinitionOnboarding = z91.object({
2322
+ helpText: z91.string(),
2323
+ documentationLink: z91.string().optional()
2314
2324
  });
2315
- var PageBlockDefinition = z90.object({
2316
- id: z90.string(),
2317
- name: z90.string(),
2318
- description: z90.string(),
2325
+ var PageBlockDefinition = z91.object({
2326
+ id: z91.string(),
2327
+ name: z91.string(),
2328
+ description: z91.string(),
2319
2329
  category: PageBlockCategory,
2320
2330
  icon: AssetValue.optional(),
2321
- documentationLink: z90.string().optional(),
2322
- searchKeywords: z90.array(z90.string()).optional(),
2331
+ documentationLink: z91.string().optional(),
2332
+ searchKeywords: z91.array(z91.string()).optional(),
2323
2333
  item: PageBlockDefinitionItem,
2324
2334
  behavior: PageBlockDefinitionBehavior,
2325
- editorOptions: z90.object({
2335
+ editorOptions: z91.object({
2326
2336
  onboarding: PageBlockDefinitionOnboarding.optional()
2327
2337
  }),
2328
2338
  appearance: PageBlockDefinitionAppearance.optional()
2329
2339
  });
2330
2340
 
2331
2341
  // src/dsm/documentation/group.ts
2332
- import { z as z91 } from "zod";
2333
- var DocumentationPageGroup = z91.object({
2334
- type: z91.literal("ElementGroup"),
2335
- childType: z91.literal("DocumentationPage"),
2336
- id: z91.string(),
2337
- persistentId: z91.string(),
2338
- shortPersistentId: z91.string(),
2339
- designSystemVersionId: z91.string(),
2340
- parentPersistentId: z91.string().nullish(),
2341
- sortOrder: z91.number(),
2342
- title: z91.string(),
2343
- slug: z91.string(),
2344
- userSlug: z91.string().nullish(),
2345
- createdAt: z91.coerce.date(),
2346
- updatedAt: z91.coerce.date()
2347
- });
2348
-
2349
- // src/dsm/documentation/page.ts
2350
2342
  import { z as z92 } from "zod";
2351
- var DocumentationPage = z92.object({
2352
- type: z92.literal("DocumentationPage"),
2343
+ var DocumentationPageGroup = z92.object({
2344
+ type: z92.literal("ElementGroup"),
2345
+ childType: z92.literal("DocumentationPage"),
2353
2346
  id: z92.string(),
2354
2347
  persistentId: z92.string(),
2355
2348
  shortPersistentId: z92.string(),
@@ -2363,126 +2356,143 @@ var DocumentationPage = z92.object({
2363
2356
  updatedAt: z92.coerce.date()
2364
2357
  });
2365
2358
 
2359
+ // src/dsm/documentation/page.ts
2360
+ import { z as z93 } from "zod";
2361
+ var DocumentationPage = z93.object({
2362
+ type: z93.literal("DocumentationPage"),
2363
+ id: z93.string(),
2364
+ persistentId: z93.string(),
2365
+ shortPersistentId: z93.string(),
2366
+ designSystemVersionId: z93.string(),
2367
+ parentPersistentId: z93.string().nullish(),
2368
+ sortOrder: z93.number(),
2369
+ title: z93.string(),
2370
+ slug: z93.string(),
2371
+ userSlug: z93.string().nullish(),
2372
+ createdAt: z93.coerce.date(),
2373
+ updatedAt: z93.coerce.date()
2374
+ });
2375
+
2366
2376
  // src/dsm/design-system.ts
2367
- import { z as z102 } from "zod";
2377
+ import { z as z103 } from "zod";
2368
2378
 
2369
2379
  // src/workspace/npm-registry-settings.ts
2370
- import { z as z93 } from "zod";
2371
- var NpmRegistryAuthType = z93.enum(["Basic", "Bearer", "None", "Custom"]);
2380
+ import { z as z94 } from "zod";
2381
+ var NpmRegistryAuthType = z94.enum(["Basic", "Bearer", "None", "Custom"]);
2372
2382
  var registryTypesWithoutAzure = ["NPMJS", "GitHub", "Artifactory", "Custom"];
2373
- var NpmRegistryType = z93.enum([...registryTypesWithoutAzure, "AzureDevOps"]);
2374
- var NpmRegistryTypeWithoutAzure = z93.enum(registryTypesWithoutAzure);
2375
- var NpmRegistryBasicAuthConfig = z93.object({
2383
+ var NpmRegistryType = z94.enum([...registryTypesWithoutAzure, "AzureDevOps"]);
2384
+ var NpmRegistryTypeWithoutAzure = z94.enum(registryTypesWithoutAzure);
2385
+ var NpmRegistryBasicAuthConfig = z94.object({
2376
2386
  registryType: NpmRegistryType,
2377
- authType: z93.literal(NpmRegistryAuthType.Enum.Basic),
2378
- username: z93.string(),
2379
- password: z93.string()
2387
+ authType: z94.literal(NpmRegistryAuthType.Enum.Basic),
2388
+ username: z94.string(),
2389
+ password: z94.string()
2380
2390
  });
2381
- var NpmRegistryBearerAuthConfig = z93.object({
2391
+ var NpmRegistryBearerAuthConfig = z94.object({
2382
2392
  registryType: NpmRegistryTypeWithoutAzure,
2383
- authType: z93.literal(NpmRegistryAuthType.Enum.Bearer),
2384
- accessToken: z93.string()
2393
+ authType: z94.literal(NpmRegistryAuthType.Enum.Bearer),
2394
+ accessToken: z94.string()
2385
2395
  });
2386
- var NpmRegistryNoAuthConfig = z93.object({
2396
+ var NpmRegistryNoAuthConfig = z94.object({
2387
2397
  registryType: NpmRegistryTypeWithoutAzure,
2388
- authType: z93.literal(NpmRegistryAuthType.Enum.None)
2398
+ authType: z94.literal(NpmRegistryAuthType.Enum.None)
2389
2399
  });
2390
- var NpmRegistrCustomAuthConfig = z93.object({
2400
+ var NpmRegistrCustomAuthConfig = z94.object({
2391
2401
  registryType: NpmRegistryTypeWithoutAzure,
2392
- authType: z93.literal(NpmRegistryAuthType.Enum.Custom),
2393
- authHeaderName: z93.string(),
2394
- authHeaderValue: z93.string()
2402
+ authType: z94.literal(NpmRegistryAuthType.Enum.Custom),
2403
+ authHeaderName: z94.string(),
2404
+ authHeaderValue: z94.string()
2395
2405
  });
2396
- var NpmRegistryAuthConfig = z93.discriminatedUnion("authType", [
2406
+ var NpmRegistryAuthConfig = z94.discriminatedUnion("authType", [
2397
2407
  NpmRegistryBasicAuthConfig,
2398
2408
  NpmRegistryBearerAuthConfig,
2399
2409
  NpmRegistryNoAuthConfig,
2400
2410
  NpmRegistrCustomAuthConfig
2401
2411
  ]);
2402
- var NpmRegistryConfigBase = z93.object({
2403
- enabledScopes: z93.array(z93.string()),
2404
- customRegistryUrl: z93.string().optional(),
2405
- bypassProxy: z93.boolean().default(false),
2406
- npmProxyRegistryConfigId: z93.string().optional(),
2407
- npmProxyVersion: z93.number().optional()
2412
+ var NpmRegistryConfigBase = z94.object({
2413
+ enabledScopes: z94.array(z94.string()),
2414
+ customRegistryUrl: z94.string().optional(),
2415
+ bypassProxy: z94.boolean().default(false),
2416
+ npmProxyRegistryConfigId: z94.string().optional(),
2417
+ npmProxyVersion: z94.number().optional()
2408
2418
  });
2409
2419
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
2410
2420
 
2411
2421
  // src/workspace/sso-provider.ts
2412
- import { z as z94 } from "zod";
2413
- var SsoProvider = z94.object({
2414
- providerId: z94.string(),
2415
- defaultAutoInviteValue: z94.boolean(),
2416
- autoInviteDomains: z94.record(z94.string(), z94.boolean()),
2417
- skipDocsSupernovaLogin: z94.boolean(),
2418
- areInvitesDisabled: z94.boolean(),
2419
- isTestMode: z94.boolean(),
2420
- emailDomains: z94.array(z94.string()),
2421
- metadataXml: z94.string().nullish()
2422
+ import { z as z95 } from "zod";
2423
+ var SsoProvider = z95.object({
2424
+ providerId: z95.string(),
2425
+ defaultAutoInviteValue: z95.boolean(),
2426
+ autoInviteDomains: z95.record(z95.string(), z95.boolean()),
2427
+ skipDocsSupernovaLogin: z95.boolean(),
2428
+ areInvitesDisabled: z95.boolean(),
2429
+ isTestMode: z95.boolean(),
2430
+ emailDomains: z95.array(z95.string()),
2431
+ metadataXml: z95.string().nullish()
2422
2432
  });
2423
2433
 
2424
2434
  // src/workspace/user-invite.ts
2425
- import { z as z96 } from "zod";
2435
+ import { z as z97 } from "zod";
2426
2436
 
2427
2437
  // src/workspace/workspace-role.ts
2428
- import { z as z95 } from "zod";
2429
- var WorkspaceRoleSchema = z95.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
2438
+ import { z as z96 } from "zod";
2439
+ var WorkspaceRoleSchema = z96.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
2430
2440
  var WorkspaceRole = WorkspaceRoleSchema.enum;
2431
2441
 
2432
2442
  // src/workspace/user-invite.ts
2433
2443
  var MAX_MEMBERS_COUNT = 100;
2434
- var UserInvite = z96.object({
2435
- email: z96.string().email().trim().transform((value) => value.toLowerCase()),
2444
+ var UserInvite = z97.object({
2445
+ email: z97.string().email().trim().transform((value) => value.toLowerCase()),
2436
2446
  role: WorkspaceRoleSchema
2437
2447
  });
2438
- var UserInvites = z96.array(UserInvite).max(MAX_MEMBERS_COUNT);
2448
+ var UserInvites = z97.array(UserInvite).max(MAX_MEMBERS_COUNT);
2439
2449
 
2440
2450
  // src/workspace/workspace-context.ts
2441
- import { z as z98 } from "zod";
2451
+ import { z as z99 } from "zod";
2442
2452
 
2443
2453
  // src/workspace/workspace.ts
2444
- import { z as z97 } from "zod";
2445
- var WorkspaceIpWhitelistEntry = z97.object({
2446
- isEnabled: z97.boolean(),
2447
- name: z97.string(),
2448
- range: z97.string()
2449
- });
2450
- var WorkspaceIpSettings = z97.object({
2451
- isEnabledForCloud: z97.boolean(),
2452
- isEnabledForDocs: z97.boolean(),
2453
- entries: z97.array(WorkspaceIpWhitelistEntry)
2454
+ import { z as z98 } from "zod";
2455
+ var WorkspaceIpWhitelistEntry = z98.object({
2456
+ isEnabled: z98.boolean(),
2457
+ name: z98.string(),
2458
+ range: z98.string()
2459
+ });
2460
+ var WorkspaceIpSettings = z98.object({
2461
+ isEnabledForCloud: z98.boolean(),
2462
+ isEnabledForDocs: z98.boolean(),
2463
+ entries: z98.array(WorkspaceIpWhitelistEntry)
2454
2464
  }).nullish();
2455
- var WorkspaceProfile = z97.object({
2456
- name: z97.string(),
2457
- handle: z97.string(),
2458
- color: z97.string(),
2459
- avatar: z97.string().optional(),
2465
+ var WorkspaceProfile = z98.object({
2466
+ name: z98.string(),
2467
+ handle: z98.string(),
2468
+ color: z98.string(),
2469
+ avatar: z98.string().optional(),
2460
2470
  billingDetails: BillingDetails.optional()
2461
2471
  });
2462
- var Workspace = z97.object({
2463
- id: z97.string(),
2472
+ var Workspace = z98.object({
2473
+ id: z98.string(),
2464
2474
  profile: WorkspaceProfile,
2465
2475
  subscription: Subscription,
2466
2476
  ipWhitelist: WorkspaceIpSettings,
2467
2477
  sso: SsoProvider.nullish(),
2468
- npmRegistrySettings: z97.unknown().optional(),
2469
- designSystems: z97.array(DesignSystem).nullish()
2478
+ npmRegistrySettings: z98.unknown().optional(),
2479
+ designSystems: z98.array(DesignSystem).nullish()
2470
2480
  });
2471
- var WorkspaceWithDesignSystems = z97.object({
2481
+ var WorkspaceWithDesignSystems = z98.object({
2472
2482
  workspace: Workspace,
2473
- designSystems: z97.array(DesignSystem)
2483
+ designSystems: z98.array(DesignSystem)
2474
2484
  });
2475
2485
 
2476
2486
  // src/workspace/workspace-context.ts
2477
- var WorkspaceContext = z98.object({
2478
- workspaceId: z98.string(),
2487
+ var WorkspaceContext = z99.object({
2488
+ workspaceId: z99.string(),
2479
2489
  product: ProductCodeSchema,
2480
2490
  ipWhitelist: WorkspaceIpSettings,
2481
- publicDesignSystem: z98.boolean().optional()
2491
+ publicDesignSystem: z99.boolean().optional()
2482
2492
  });
2483
2493
 
2484
2494
  // src/workspace/workspace-create.ts
2485
- import { z as z99 } from "zod";
2495
+ import { z as z100 } from "zod";
2486
2496
 
2487
2497
  // src/utils/validation.ts
2488
2498
  var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
@@ -2492,111 +2502,116 @@ var WORKSPACE_NAME_MIN_LENGTH = 2;
2492
2502
  var WORKSPACE_NAME_MAX_LENGTH = 64;
2493
2503
  var HANDLE_MIN_LENGTH = 2;
2494
2504
  var HANDLE_MAX_LENGTH = 64;
2495
- var CreateWorkspaceInput = z99.object({
2496
- name: z99.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2505
+ var CreateWorkspaceInput = z100.object({
2506
+ name: z100.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2497
2507
  product: ProductCodeSchema,
2498
- priceId: z99.string(),
2499
- billingEmail: z99.string().email().optional(),
2500
- handle: z99.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2508
+ priceId: z100.string(),
2509
+ billingEmail: z100.string().email().optional(),
2510
+ handle: z100.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2501
2511
  invites: UserInvites.optional(),
2502
- promoCode: z99.string().optional()
2512
+ promoCode: z100.string().optional(),
2513
+ status: InternalStatusSchema.optional(),
2514
+ planInterval: BillingIntervalSchema.optional(),
2515
+ seats: z100.number().optional(),
2516
+ seatLimit: z100.number().optional(),
2517
+ card: CardSchema.optional()
2503
2518
  });
2504
2519
 
2505
2520
  // src/workspace/workspace-invitations.ts
2506
- import { z as z100 } from "zod";
2507
- var WorkspaceInvitation = z100.object({
2508
- id: z100.string(),
2509
- email: z100.string().email(),
2510
- createdAt: z100.coerce.date(),
2511
- resentAt: z100.coerce.date().nullish(),
2512
- role: z100.nativeEnum(WorkspaceRole),
2513
- workspaceId: z100.string(),
2514
- invitedBy: z100.string()
2515
- });
2516
-
2517
- // src/workspace/workspace-membership.ts
2518
2521
  import { z as z101 } from "zod";
2519
- var WorkspaceMembership = z101.object({
2522
+ var WorkspaceInvitation = z101.object({
2520
2523
  id: z101.string(),
2521
- userId: z101.string(),
2524
+ email: z101.string().email(),
2525
+ createdAt: z101.coerce.date(),
2526
+ resentAt: z101.coerce.date().nullish(),
2527
+ role: z101.nativeEnum(WorkspaceRole),
2522
2528
  workspaceId: z101.string(),
2523
- workspaceRole: z101.nativeEnum(WorkspaceRole)
2529
+ invitedBy: z101.string()
2530
+ });
2531
+
2532
+ // src/workspace/workspace-membership.ts
2533
+ import { z as z102 } from "zod";
2534
+ var WorkspaceMembership = z102.object({
2535
+ id: z102.string(),
2536
+ userId: z102.string(),
2537
+ workspaceId: z102.string(),
2538
+ workspaceRole: z102.nativeEnum(WorkspaceRole)
2524
2539
  });
2525
- var UpdateMembershipRolesInput = z101.object({
2526
- members: z101.array(
2527
- z101.object({
2528
- userId: z101.string(),
2529
- role: z101.nativeEnum(WorkspaceRole)
2540
+ var UpdateMembershipRolesInput = z102.object({
2541
+ members: z102.array(
2542
+ z102.object({
2543
+ userId: z102.string(),
2544
+ role: z102.nativeEnum(WorkspaceRole)
2530
2545
  })
2531
2546
  )
2532
2547
  });
2533
2548
 
2534
2549
  // src/dsm/design-system.ts
2535
- var DesignSystemSwitcher = z102.object({
2536
- isEnabled: z102.boolean(),
2537
- designSystemIds: z102.array(z102.string())
2550
+ var DesignSystemSwitcher = z103.object({
2551
+ isEnabled: z103.boolean(),
2552
+ designSystemIds: z103.array(z103.string())
2538
2553
  });
2539
- var DesignSystem = z102.object({
2540
- id: z102.string(),
2541
- workspaceId: z102.string(),
2542
- name: z102.string(),
2543
- description: z102.string(),
2544
- docExporterId: nullishToOptional(z102.string()),
2545
- docSlug: z102.string(),
2546
- docUserSlug: nullishToOptional(z102.string()),
2547
- docSlugDeprecated: z102.string(),
2548
- isPublic: z102.boolean(),
2549
- isMultibrand: z102.boolean(),
2550
- docViewUrl: nullishToOptional(z102.string()),
2551
- basePrefixes: z102.array(z102.string()),
2554
+ var DesignSystem = z103.object({
2555
+ id: z103.string(),
2556
+ workspaceId: z103.string(),
2557
+ name: z103.string(),
2558
+ description: z103.string(),
2559
+ docExporterId: nullishToOptional(z103.string()),
2560
+ docSlug: z103.string(),
2561
+ docUserSlug: nullishToOptional(z103.string()),
2562
+ docSlugDeprecated: z103.string(),
2563
+ isPublic: z103.boolean(),
2564
+ isMultibrand: z103.boolean(),
2565
+ docViewUrl: nullishToOptional(z103.string()),
2566
+ basePrefixes: z103.array(z103.string()),
2552
2567
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
2553
- createdAt: z102.coerce.date(),
2554
- updatedAt: z102.coerce.date()
2568
+ createdAt: z103.coerce.date(),
2569
+ updatedAt: z103.coerce.date()
2555
2570
  });
2556
- var DesignSystemWithWorkspace = z102.object({
2571
+ var DesignSystemWithWorkspace = z103.object({
2557
2572
  designSystem: DesignSystem,
2558
2573
  workspace: Workspace
2559
2574
  });
2560
2575
 
2561
2576
  // src/dsm/desing-system-create.ts
2562
- import { z as z103 } from "zod";
2577
+ import { z as z104 } from "zod";
2563
2578
  var DS_NAME_MIN_LENGTH = 2;
2564
2579
  var DS_NAME_MAX_LENGTH = 64;
2565
2580
  var DS_DESC_MIN_LENGTH = 2;
2566
2581
  var DS_DESC_MAX_LENGTH = 64;
2567
- var DesignSystemCreateInputMetadata = z103.object({
2568
- name: z103.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2569
- description: z103.string().min(DS_DESC_MIN_LENGTH).max(DS_DESC_MAX_LENGTH).trim()
2582
+ var DesignSystemCreateInputMetadata = z104.object({
2583
+ name: z104.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2584
+ description: z104.string().min(DS_DESC_MIN_LENGTH).max(DS_DESC_MAX_LENGTH).trim()
2570
2585
  });
2571
- var DesignSystemCreateInput = z103.object({
2586
+ var DesignSystemCreateInput = z104.object({
2572
2587
  meta: DesignSystemCreateInputMetadata,
2573
- workspaceId: z103.string(),
2574
- isPublic: z103.boolean().optional(),
2575
- basePrefixes: z103.array(z103.string()).optional(),
2576
- docUserSlug: z103.string().nullish().optional(),
2577
- source: z103.array(z103.string()).optional()
2588
+ workspaceId: z104.string(),
2589
+ isPublic: z104.boolean().optional(),
2590
+ basePrefixes: z104.array(z104.string()).optional(),
2591
+ docUserSlug: z104.string().nullish().optional(),
2592
+ source: z104.array(z104.string()).optional()
2578
2593
  });
2579
2594
 
2580
2595
  // src/dsm/desing-system-update.ts
2581
- import { z as z104 } from "zod";
2596
+ import { z as z105 } from "zod";
2582
2597
  var DS_NAME_MIN_LENGTH2 = 2;
2583
2598
  var DS_NAME_MAX_LENGTH2 = 64;
2584
2599
  var DS_DESC_MIN_LENGTH2 = 2;
2585
2600
  var DS_DESC_MAX_LENGTH2 = 64;
2586
- var DesignSystemUpdateInputMetadata = z104.object({
2587
- name: z104.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2588
- description: z104.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional()
2601
+ var DesignSystemUpdateInputMetadata = z105.object({
2602
+ name: z105.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2603
+ description: z105.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional()
2589
2604
  });
2590
- var DesignSystemUpdateInput = z104.object({
2605
+ var DesignSystemUpdateInput = z105.object({
2591
2606
  meta: DesignSystemUpdateInputMetadata.optional(),
2592
- workspaceId: z104.string().optional(),
2593
- isPublic: z104.boolean().optional(),
2594
- basePrefixes: z104.array(z104.string()).optional(),
2595
- docUserSlug: z104.string().nullish().optional(),
2596
- source: z104.array(z104.string()).optional(),
2597
- name: z104.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2598
- description: z104.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional(),
2599
- docExporterId: z104.string().optional()
2607
+ workspaceId: z105.string().optional(),
2608
+ isPublic: z105.boolean().optional(),
2609
+ basePrefixes: z105.array(z105.string()).optional(),
2610
+ docUserSlug: z105.string().nullish().optional(),
2611
+ source: z105.array(z105.string()).optional(),
2612
+ name: z105.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2613
+ description: z105.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional(),
2614
+ docExporterId: z105.string().optional()
2600
2615
  });
2601
2616
 
2602
2617
  // src/dsm/published-doc-page.ts
@@ -2608,54 +2623,54 @@ function tryParseShortPersistentId(url = "/") {
2608
2623
  }
2609
2624
 
2610
2625
  // src/dsm/published-doc.ts
2611
- import { z as z105 } from "zod";
2626
+ import { z as z106 } from "zod";
2612
2627
  var publishedDocEnvironments = ["Live", "Preview"];
2613
- var PublishedDocEnvironment = z105.enum(publishedDocEnvironments);
2614
- var PublishedDocsChecksums = z105.record(z105.string());
2615
- var PublishedDocRoutingVersion = z105.enum(["1", "2"]);
2616
- var PublishedDoc = z105.object({
2617
- id: z105.string(),
2618
- designSystemVersionId: z105.string(),
2619
- createdAt: z105.coerce.date(),
2620
- updatedAt: z105.coerce.date(),
2621
- lastPublishedAt: z105.coerce.date(),
2622
- isDefault: z105.boolean(),
2623
- isPublic: z105.boolean(),
2628
+ var PublishedDocEnvironment = z106.enum(publishedDocEnvironments);
2629
+ var PublishedDocsChecksums = z106.record(z106.string());
2630
+ var PublishedDocRoutingVersion = z106.enum(["1", "2"]);
2631
+ var PublishedDoc = z106.object({
2632
+ id: z106.string(),
2633
+ designSystemVersionId: z106.string(),
2634
+ createdAt: z106.coerce.date(),
2635
+ updatedAt: z106.coerce.date(),
2636
+ lastPublishedAt: z106.coerce.date(),
2637
+ isDefault: z106.boolean(),
2638
+ isPublic: z106.boolean(),
2624
2639
  environment: PublishedDocEnvironment,
2625
2640
  checksums: PublishedDocsChecksums,
2626
- storagePath: z105.string(),
2627
- wasMigrated: z105.boolean(),
2641
+ storagePath: z106.string(),
2642
+ wasMigrated: z106.boolean(),
2628
2643
  routingVersion: PublishedDocRoutingVersion,
2629
- usesLocalizations: z105.boolean(),
2630
- wasPublishedWithLocalizations: z105.boolean()
2644
+ usesLocalizations: z106.boolean(),
2645
+ wasPublishedWithLocalizations: z106.boolean()
2631
2646
  });
2632
2647
 
2633
2648
  // src/codegen/export-jobs.ts
2634
- import { z as z106 } from "zod";
2635
- var ExporterJobDestination = z106.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
2636
- var ExporterJobStatus = z106.enum(["InProgress", "Success", "Failed", "Timeout"]);
2637
- var ExporterJobLogEntryType = z106.enum(["success", "info", "warning", "error", "user"]);
2638
- var ExporterJobLogEntry = z106.object({
2639
- id: z106.string().optional(),
2640
- time: z106.coerce.date(),
2649
+ import { z as z107 } from "zod";
2650
+ var ExporterJobDestination = z107.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
2651
+ var ExporterJobStatus = z107.enum(["InProgress", "Success", "Failed", "Timeout"]);
2652
+ var ExporterJobLogEntryType = z107.enum(["success", "info", "warning", "error", "user"]);
2653
+ var ExporterJobLogEntry = z107.object({
2654
+ id: z107.string().optional(),
2655
+ time: z107.coerce.date(),
2641
2656
  type: ExporterJobLogEntryType,
2642
- message: z106.string()
2657
+ message: z107.string()
2643
2658
  });
2644
- var ExporterJobResultPullRequestDestination = z106.object({
2645
- pullRequestUrl: z106.string()
2659
+ var ExporterJobResultPullRequestDestination = z107.object({
2660
+ pullRequestUrl: z107.string()
2646
2661
  });
2647
- var ExporterJobResultS3Destination = z106.object({
2648
- bucket: z106.string(),
2649
- urlPrefix: z106.string().optional(),
2650
- path: z106.string(),
2651
- files: z106.array(z106.string())
2662
+ var ExporterJobResultS3Destination = z107.object({
2663
+ bucket: z107.string(),
2664
+ urlPrefix: z107.string().optional(),
2665
+ path: z107.string(),
2666
+ files: z107.array(z107.string())
2652
2667
  });
2653
- var ExporterJobResultDocsDestination = z106.object({
2654
- url: z106.string()
2668
+ var ExporterJobResultDocsDestination = z107.object({
2669
+ url: z107.string()
2655
2670
  });
2656
- var ExporterJobResult = z106.object({
2657
- error: z106.string().optional(),
2658
- logs: z106.array(ExporterJobLogEntry).optional(),
2671
+ var ExporterJobResult = z107.object({
2672
+ error: z107.string().optional(),
2673
+ logs: z107.array(ExporterJobLogEntry).optional(),
2659
2674
  s3: ExporterJobResultS3Destination.optional(),
2660
2675
  github: ExporterJobResultPullRequestDestination.optional(),
2661
2676
  azure: ExporterJobResultPullRequestDestination.optional(),
@@ -2663,68 +2678,68 @@ var ExporterJobResult = z106.object({
2663
2678
  bitbucket: ExporterJobResultPullRequestDestination.optional(),
2664
2679
  sndocs: ExporterJobResultDocsDestination.optional()
2665
2680
  });
2666
- var ExporterDestinationSnDocs = z106.object({
2681
+ var ExporterDestinationSnDocs = z107.object({
2667
2682
  environment: PublishedDocEnvironment
2668
2683
  });
2669
- var ExporterDestinationS3 = z106.object({});
2670
- var ExporterDestinationGithub = z106.object({
2671
- connectionId: z106.string(),
2672
- url: z106.string(),
2673
- branch: z106.string(),
2674
- relativePath: z106.string(),
2684
+ var ExporterDestinationS3 = z107.object({});
2685
+ var ExporterDestinationGithub = z107.object({
2686
+ connectionId: z107.string(),
2687
+ url: z107.string(),
2688
+ branch: z107.string(),
2689
+ relativePath: z107.string(),
2675
2690
  // +
2676
- userId: z106.coerce.string()
2677
- });
2678
- var ExporterDestinationAzure = z106.object({
2679
- connectionId: z106.string(),
2680
- organizationId: z106.string(),
2681
- projectId: z106.string(),
2682
- repositoryId: z106.string(),
2683
- branch: z106.string(),
2684
- relativePath: z106.string(),
2691
+ userId: z107.coerce.string()
2692
+ });
2693
+ var ExporterDestinationAzure = z107.object({
2694
+ connectionId: z107.string(),
2695
+ organizationId: z107.string(),
2696
+ projectId: z107.string(),
2697
+ repositoryId: z107.string(),
2698
+ branch: z107.string(),
2699
+ relativePath: z107.string(),
2685
2700
  // +
2686
- userId: z106.coerce.string(),
2687
- url: z106.string()
2688
- });
2689
- var ExporterDestinationGitlab = z106.object({
2690
- connectionId: z106.string(),
2691
- projectId: z106.string(),
2692
- branch: z106.string(),
2693
- relativePath: z106.string(),
2701
+ userId: z107.coerce.string(),
2702
+ url: z107.string()
2703
+ });
2704
+ var ExporterDestinationGitlab = z107.object({
2705
+ connectionId: z107.string(),
2706
+ projectId: z107.string(),
2707
+ branch: z107.string(),
2708
+ relativePath: z107.string(),
2694
2709
  // +
2695
- userId: z106.coerce.string(),
2696
- url: z106.string()
2710
+ userId: z107.coerce.string(),
2711
+ url: z107.string()
2697
2712
  });
2698
2713
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
2699
2714
  var BITBUCKET_MAX_LENGTH = 64;
2700
- var ExporterDestinationBitbucket = z106.object({
2701
- connectionId: z106.string(),
2702
- workspaceSlug: z106.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2703
- projectKey: z106.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2704
- repoSlug: z106.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2705
- branch: z106.string(),
2706
- relativePath: z106.string(),
2715
+ var ExporterDestinationBitbucket = z107.object({
2716
+ connectionId: z107.string(),
2717
+ workspaceSlug: z107.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2718
+ projectKey: z107.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2719
+ repoSlug: z107.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2720
+ branch: z107.string(),
2721
+ relativePath: z107.string(),
2707
2722
  // +
2708
- userId: z106.coerce.string(),
2709
- url: z106.string()
2710
- });
2711
- var ExporterJob = z106.object({
2712
- id: z106.coerce.string(),
2713
- createdAt: z106.coerce.date(),
2714
- finishedAt: z106.coerce.date().optional(),
2715
- designSystemId: z106.coerce.string(),
2716
- designSystemVersionId: z106.coerce.string(),
2717
- workspaceId: z106.coerce.string(),
2718
- scheduleId: z106.coerce.string().nullish(),
2719
- exporterId: z106.coerce.string(),
2720
- brandId: z106.coerce.string().optional(),
2721
- themeId: z106.coerce.string().optional(),
2722
- estimatedExecutionTime: z106.number().optional(),
2723
+ userId: z107.coerce.string(),
2724
+ url: z107.string()
2725
+ });
2726
+ var ExporterJob = z107.object({
2727
+ id: z107.coerce.string(),
2728
+ createdAt: z107.coerce.date(),
2729
+ finishedAt: z107.coerce.date().optional(),
2730
+ designSystemId: z107.coerce.string(),
2731
+ designSystemVersionId: z107.coerce.string(),
2732
+ workspaceId: z107.coerce.string(),
2733
+ scheduleId: z107.coerce.string().nullish(),
2734
+ exporterId: z107.coerce.string(),
2735
+ brandId: z107.coerce.string().optional(),
2736
+ themeId: z107.coerce.string().optional(),
2737
+ estimatedExecutionTime: z107.number().optional(),
2723
2738
  status: ExporterJobStatus,
2724
2739
  result: ExporterJobResult.optional(),
2725
- createdByUserId: z106.string().optional(),
2740
+ createdByUserId: z107.string().optional(),
2726
2741
  // CodegenDestinationsModel
2727
- webhookUrl: z106.string().optional(),
2742
+ webhookUrl: z107.string().optional(),
2728
2743
  destinationSnDocs: ExporterDestinationSnDocs.optional(),
2729
2744
  destinationS3: ExporterDestinationS3.optional(),
2730
2745
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -2743,28 +2758,28 @@ var ExporterJobFindByFilter = ExporterJob.pick({
2743
2758
  themeId: true,
2744
2759
  brandId: true
2745
2760
  }).extend({
2746
- destinations: z106.array(ExporterJobDestination),
2761
+ destinations: z107.array(ExporterJobDestination),
2747
2762
  docsEnvironment: PublishedDocEnvironment
2748
2763
  }).partial();
2749
2764
 
2750
2765
  // src/codegen/exporter-workspace-membership-role.ts
2751
- import { z as z107 } from "zod";
2752
- var ExporterWorkspaceMembershipRole = z107.enum(["Owner", "OwnerArchived", "User"]);
2766
+ import { z as z108 } from "zod";
2767
+ var ExporterWorkspaceMembershipRole = z108.enum(["Owner", "OwnerArchived", "User"]);
2753
2768
 
2754
2769
  // src/codegen/exporter-workspace-membership.ts
2755
- import { z as z108 } from "zod";
2756
- var ExporterWorkspaceMembership = z108.object({
2757
- id: z108.string(),
2758
- workspaceId: z108.string(),
2759
- exporterId: z108.string(),
2770
+ import { z as z109 } from "zod";
2771
+ var ExporterWorkspaceMembership = z109.object({
2772
+ id: z109.string(),
2773
+ workspaceId: z109.string(),
2774
+ exporterId: z109.string(),
2760
2775
  role: ExporterWorkspaceMembershipRole
2761
2776
  });
2762
2777
 
2763
2778
  // src/codegen/exporter.ts
2764
- import { z as z111 } from "zod";
2779
+ import { z as z112 } from "zod";
2765
2780
 
2766
2781
  // src/codegen/git-providers.ts
2767
- import { z as z109 } from "zod";
2782
+ import { z as z110 } from "zod";
2768
2783
  var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
2769
2784
  GitProviderNames2["Azure"] = "azure";
2770
2785
  GitProviderNames2["Github"] = "github";
@@ -2772,11 +2787,11 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
2772
2787
  GitProviderNames2["Bitbucket"] = "bitbucket";
2773
2788
  return GitProviderNames2;
2774
2789
  })(GitProviderNames || {});
2775
- var GitProvider = z109.nativeEnum(GitProviderNames);
2790
+ var GitProvider = z110.nativeEnum(GitProviderNames);
2776
2791
 
2777
2792
  // src/codegen/pulsar.ts
2778
- import { z as z110 } from "zod";
2779
- var PulsarPropertyType = z110.enum([
2793
+ import { z as z111 } from "zod";
2794
+ var PulsarPropertyType = z111.enum([
2780
2795
  "string",
2781
2796
  "number",
2782
2797
  "boolean",
@@ -2789,108 +2804,108 @@ var PulsarPropertyType = z110.enum([
2789
2804
  "tokenProperties",
2790
2805
  "tokenType"
2791
2806
  ]);
2792
- var PulsarBaseProperty = z110.object({
2793
- label: z110.string(),
2794
- key: z110.string(),
2795
- description: z110.string().nullish(),
2807
+ var PulsarBaseProperty = z111.object({
2808
+ label: z111.string(),
2809
+ key: z111.string(),
2810
+ description: z111.string().nullish(),
2796
2811
  type: PulsarPropertyType,
2797
- values: z110.array(z110.string()).nullish(),
2798
- default: z110.union([z110.string(), z110.boolean(), z110.number()]).nullish(),
2812
+ values: z111.array(z111.string()).nullish(),
2813
+ default: z111.union([z111.string(), z111.boolean(), z111.number()]).nullish(),
2799
2814
  // PulsarPropertyValueType //is optional?
2800
- inputType: z110.enum(["code", "plain"]).optional(),
2815
+ inputType: z111.enum(["code", "plain"]).optional(),
2801
2816
  //is optional?
2802
- isMultiline: z110.boolean().nullish()
2817
+ isMultiline: z111.boolean().nullish()
2803
2818
  });
2804
2819
  var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
2805
- category: z110.string()
2820
+ category: z111.string()
2806
2821
  });
2807
- var PulsarContributionVariant = z110.object({
2808
- key: z110.string(),
2809
- name: z110.string(),
2810
- isDefault: z110.boolean().nullish(),
2811
- description: z110.string().nullish(),
2812
- thumbnailURL: z110.string().nullish()
2822
+ var PulsarContributionVariant = z111.object({
2823
+ key: z111.string(),
2824
+ name: z111.string(),
2825
+ isDefault: z111.boolean().nullish(),
2826
+ description: z111.string().nullish(),
2827
+ thumbnailURL: z111.string().nullish()
2813
2828
  });
2814
- var PulsarCustomBlock = z110.object({
2815
- title: z110.string(),
2816
- key: z110.string(),
2817
- category: z110.string(),
2818
- description: nullishToOptional(z110.string()),
2819
- iconURL: z110.string(),
2820
- mode: z110.enum(["array", "block"]),
2821
- properties: z110.array(PulsarBaseProperty)
2829
+ var PulsarCustomBlock = z111.object({
2830
+ title: z111.string(),
2831
+ key: z111.string(),
2832
+ category: z111.string(),
2833
+ description: nullishToOptional(z111.string()),
2834
+ iconURL: z111.string(),
2835
+ mode: z111.enum(["array", "block"]),
2836
+ properties: z111.array(PulsarBaseProperty)
2822
2837
  });
2823
2838
 
2824
2839
  // src/codegen/exporter.ts
2825
- var ExporterType = z111.enum(["code", "documentation"]);
2826
- var ExporterSource = z111.enum(["git", "upload"]);
2827
- var ExporterTag = z111.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
2828
- var ExporterDetails = z111.object({
2829
- description: z111.string(),
2830
- version: z111.string(),
2831
- routingVersion: nullishToOptional(z111.string()),
2832
- author: nullishToOptional(z111.string()),
2833
- organization: nullishToOptional(z111.string()),
2834
- homepage: nullishToOptional(z111.string()),
2835
- readme: nullishToOptional(z111.string()),
2836
- tags: nullishToOptional(z111.array(ExporterTag)).default([]),
2837
- packageId: nullishToOptional(z111.string().max(255)),
2838
- iconURL: nullishToOptional(z111.string()),
2839
- configurationProperties: nullishToOptional(z111.array(PulsarContributionConfigurationProperty)).default([]),
2840
- customBlocks: nullishToOptional(z111.array(PulsarCustomBlock)).default([]),
2841
- blockVariants: nullishToOptional(z111.record(z111.string(), z111.array(PulsarContributionVariant))).default({}),
2842
- usesBrands: nullishToOptional(z111.boolean()).default(false),
2843
- usesThemes: nullishToOptional(z111.boolean()).default(false),
2840
+ var ExporterType = z112.enum(["code", "documentation"]);
2841
+ var ExporterSource = z112.enum(["git", "upload"]);
2842
+ var ExporterTag = z112.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
2843
+ var ExporterDetails = z112.object({
2844
+ description: z112.string(),
2845
+ version: z112.string(),
2846
+ routingVersion: nullishToOptional(z112.string()),
2847
+ author: nullishToOptional(z112.string()),
2848
+ organization: nullishToOptional(z112.string()),
2849
+ homepage: nullishToOptional(z112.string()),
2850
+ readme: nullishToOptional(z112.string()),
2851
+ tags: nullishToOptional(z112.array(ExporterTag)).default([]),
2852
+ packageId: nullishToOptional(z112.string().max(255)),
2853
+ iconURL: nullishToOptional(z112.string()),
2854
+ configurationProperties: nullishToOptional(z112.array(PulsarContributionConfigurationProperty)).default([]),
2855
+ customBlocks: nullishToOptional(z112.array(PulsarCustomBlock)).default([]),
2856
+ blockVariants: nullishToOptional(z112.record(z112.string(), z112.array(PulsarContributionVariant))).default({}),
2857
+ usesBrands: nullishToOptional(z112.boolean()).default(false),
2858
+ usesThemes: nullishToOptional(z112.boolean()).default(false),
2844
2859
  source: ExporterSource,
2845
2860
  gitProvider: nullishToOptional(GitProvider),
2846
- gitUrl: nullishToOptional(z111.string()),
2847
- gitBranch: nullishToOptional(z111.string()),
2848
- gitDirectory: nullishToOptional(z111.string())
2861
+ gitUrl: nullishToOptional(z112.string()),
2862
+ gitBranch: nullishToOptional(z112.string()),
2863
+ gitDirectory: nullishToOptional(z112.string())
2849
2864
  });
2850
- var Exporter = z111.object({
2851
- id: z111.string(),
2852
- createdAt: z111.coerce.date(),
2853
- name: z111.string(),
2854
- isPrivate: z111.boolean(),
2865
+ var Exporter = z112.object({
2866
+ id: z112.string(),
2867
+ createdAt: z112.coerce.date(),
2868
+ name: z112.string(),
2869
+ isPrivate: z112.boolean(),
2855
2870
  details: ExporterDetails,
2856
2871
  exporterType: nullishToOptional(ExporterType).default("code"),
2857
- storagePath: nullishToOptional(z111.string()).default("")
2872
+ storagePath: nullishToOptional(z112.string()).default("")
2858
2873
  });
2859
2874
 
2860
2875
  // src/custom-domains/custom-domains.ts
2861
- import { z as z112 } from "zod";
2862
- var CustomDomain = z112.object({
2863
- id: z112.string(),
2864
- designSystemId: z112.string(),
2865
- state: z112.string(),
2866
- supernovaDomain: z112.string(),
2867
- customerDomain: z112.string().nullish(),
2868
- error: z112.string().nullish(),
2869
- errorCode: z112.string().nullish()
2876
+ import { z as z113 } from "zod";
2877
+ var CustomDomain = z113.object({
2878
+ id: z113.string(),
2879
+ designSystemId: z113.string(),
2880
+ state: z113.string(),
2881
+ supernovaDomain: z113.string(),
2882
+ customerDomain: z113.string().nullish(),
2883
+ error: z113.string().nullish(),
2884
+ errorCode: z113.string().nullish()
2870
2885
  });
2871
2886
 
2872
2887
  // src/docs-server/session.ts
2873
- import { z as z117 } from "zod";
2888
+ import { z as z118 } from "zod";
2874
2889
 
2875
2890
  // src/users/linked-integrations.ts
2876
- import { z as z113 } from "zod";
2877
- var IntegrationAuthType = z113.union([z113.literal("OAuth2"), z113.literal("PAT")]);
2878
- var ExternalServiceType = z113.union([
2879
- z113.literal("figma"),
2880
- z113.literal("github"),
2881
- z113.literal("azure"),
2882
- z113.literal("gitlab"),
2883
- z113.literal("bitbucket")
2891
+ import { z as z114 } from "zod";
2892
+ var IntegrationAuthType = z114.union([z114.literal("OAuth2"), z114.literal("PAT")]);
2893
+ var ExternalServiceType = z114.union([
2894
+ z114.literal("figma"),
2895
+ z114.literal("github"),
2896
+ z114.literal("azure"),
2897
+ z114.literal("gitlab"),
2898
+ z114.literal("bitbucket")
2884
2899
  ]);
2885
- var IntegrationUserInfo = z113.object({
2886
- id: z113.string(),
2887
- handle: z113.string().optional(),
2888
- avatarUrl: z113.string().optional(),
2889
- email: z113.string().optional(),
2900
+ var IntegrationUserInfo = z114.object({
2901
+ id: z114.string(),
2902
+ handle: z114.string().optional(),
2903
+ avatarUrl: z114.string().optional(),
2904
+ email: z114.string().optional(),
2890
2905
  authType: IntegrationAuthType.optional(),
2891
- customUrl: z113.string().optional()
2906
+ customUrl: z114.string().optional()
2892
2907
  });
2893
- var UserLinkedIntegrations = z113.object({
2908
+ var UserLinkedIntegrations = z114.object({
2894
2909
  figma: IntegrationUserInfo.optional(),
2895
2910
  github: IntegrationUserInfo.array().optional(),
2896
2911
  azure: IntegrationUserInfo.array().optional(),
@@ -2899,86 +2914,86 @@ var UserLinkedIntegrations = z113.object({
2899
2914
  });
2900
2915
 
2901
2916
  // src/users/user-identity.ts
2902
- import { z as z114 } from "zod";
2903
- var UserIdentity = z114.object({
2904
- id: z114.string(),
2905
- userId: z114.string()
2917
+ import { z as z115 } from "zod";
2918
+ var UserIdentity = z115.object({
2919
+ id: z115.string(),
2920
+ userId: z115.string()
2906
2921
  });
2907
2922
 
2908
2923
  // src/users/user-profile.ts
2909
- import { z as z115 } from "zod";
2910
- var UserOnboardingDepartment = z115.enum(["Design", "Engineering", "Brand", "Other"]);
2911
- var UserOnboardingJobLevel = z115.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
2912
- var UserOnboarding = z115.object({
2913
- companyName: z115.string().optional(),
2914
- numberOfPeopleInOrg: z115.string().optional(),
2915
- numberOfPeopleInDesignTeam: z115.string().optional(),
2924
+ import { z as z116 } from "zod";
2925
+ var UserOnboardingDepartment = z116.enum(["Design", "Engineering", "Brand", "Other"]);
2926
+ var UserOnboardingJobLevel = z116.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
2927
+ var UserOnboarding = z116.object({
2928
+ companyName: z116.string().optional(),
2929
+ numberOfPeopleInOrg: z116.string().optional(),
2930
+ numberOfPeopleInDesignTeam: z116.string().optional(),
2916
2931
  department: UserOnboardingDepartment.optional(),
2917
- jobTitle: z115.string().optional(),
2918
- phase: z115.string().optional(),
2932
+ jobTitle: z116.string().optional(),
2933
+ phase: z116.string().optional(),
2919
2934
  jobLevel: UserOnboardingJobLevel.optional()
2920
2935
  });
2921
- var UserProfile = z115.object({
2922
- name: z115.string(),
2923
- avatar: z115.string().optional(),
2924
- nickname: z115.string().optional(),
2936
+ var UserProfile = z116.object({
2937
+ name: z116.string(),
2938
+ avatar: z116.string().optional(),
2939
+ nickname: z116.string().optional(),
2925
2940
  onboarding: UserOnboarding.optional()
2926
2941
  });
2927
2942
 
2928
2943
  // src/users/user.ts
2929
- import { z as z116 } from "zod";
2930
- var User = z116.object({
2931
- id: z116.string(),
2932
- email: z116.string(),
2933
- emailVerified: z116.boolean(),
2934
- createdAt: z116.coerce.date(),
2935
- trialExpiresAt: z116.coerce.date().optional(),
2944
+ import { z as z117 } from "zod";
2945
+ var User = z117.object({
2946
+ id: z117.string(),
2947
+ email: z117.string(),
2948
+ emailVerified: z117.boolean(),
2949
+ createdAt: z117.coerce.date(),
2950
+ trialExpiresAt: z117.coerce.date().optional(),
2936
2951
  profile: UserProfile,
2937
2952
  linkedIntegrations: UserLinkedIntegrations.optional(),
2938
- loggedOutAt: z116.coerce.date().optional(),
2939
- isProtected: z116.boolean()
2953
+ loggedOutAt: z117.coerce.date().optional(),
2954
+ isProtected: z117.boolean()
2940
2955
  });
2941
2956
 
2942
2957
  // src/docs-server/session.ts
2943
- var NpmProxyToken = z117.object({
2944
- access: z117.string(),
2945
- expiresAt: z117.number()
2958
+ var NpmProxyToken = z118.object({
2959
+ access: z118.string(),
2960
+ expiresAt: z118.number()
2946
2961
  });
2947
- var SessionData = z117.object({
2948
- returnToUrl: z117.string().optional(),
2962
+ var SessionData = z118.object({
2963
+ returnToUrl: z118.string().optional(),
2949
2964
  npmProxyToken: NpmProxyToken.optional()
2950
2965
  });
2951
- var Session = z117.object({
2952
- id: z117.string(),
2953
- expiresAt: z117.coerce.date(),
2954
- userId: z117.string().nullable(),
2966
+ var Session = z118.object({
2967
+ id: z118.string(),
2968
+ expiresAt: z118.coerce.date(),
2969
+ userId: z118.string().nullable(),
2955
2970
  data: SessionData
2956
2971
  });
2957
- var AuthTokens = z117.object({
2958
- access: z117.string(),
2959
- refresh: z117.string()
2972
+ var AuthTokens = z118.object({
2973
+ access: z118.string(),
2974
+ refresh: z118.string()
2960
2975
  });
2961
- var UserSession = z117.object({
2976
+ var UserSession = z118.object({
2962
2977
  session: Session,
2963
2978
  user: User.nullable()
2964
2979
  });
2965
2980
 
2966
2981
  // src/feature-flags/feature-flags.ts
2967
- import { z as z118 } from "zod";
2968
- var FlaggedFeature = z118.enum(["FigmaImporterV2"]);
2969
- var FeatureFlagMap = z118.record(FlaggedFeature, z118.boolean());
2970
- var FeatureFlag = z118.object({
2971
- id: z118.string(),
2982
+ import { z as z119 } from "zod";
2983
+ var FlaggedFeature = z119.enum(["FigmaImporterV2"]);
2984
+ var FeatureFlagMap = z119.record(FlaggedFeature, z119.boolean());
2985
+ var FeatureFlag = z119.object({
2986
+ id: z119.string(),
2972
2987
  feature: FlaggedFeature,
2973
- createdAt: z118.coerce.date(),
2974
- enabled: z118.boolean()
2988
+ createdAt: z119.coerce.date(),
2989
+ enabled: z119.boolean()
2975
2990
  });
2976
2991
 
2977
2992
  // src/integrations/external-oauth-request.ts
2978
- import { z as z120 } from "zod";
2993
+ import { z as z121 } from "zod";
2979
2994
 
2980
2995
  // src/integrations/oauth-providers.ts
2981
- import { z as z119 } from "zod";
2996
+ import { z as z120 } from "zod";
2982
2997
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
2983
2998
  OAuthProviderNames2["Figma"] = "figma";
2984
2999
  OAuthProviderNames2["Azure"] = "azure";
@@ -2987,119 +3002,119 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
2987
3002
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
2988
3003
  return OAuthProviderNames2;
2989
3004
  })(OAuthProviderNames || {});
2990
- var OAuthProviderSchema = z119.nativeEnum(OAuthProviderNames);
3005
+ var OAuthProviderSchema = z120.nativeEnum(OAuthProviderNames);
2991
3006
  var OAuthProvider = OAuthProviderSchema.enum;
2992
3007
 
2993
3008
  // src/integrations/external-oauth-request.ts
2994
- var ExternalOAuthRequest = z120.object({
2995
- id: z120.string(),
3009
+ var ExternalOAuthRequest = z121.object({
3010
+ id: z121.string(),
2996
3011
  provider: OAuthProviderSchema,
2997
- userId: z120.string(),
2998
- state: z120.string(),
2999
- createdAt: z120.coerce.date()
3012
+ userId: z121.string(),
3013
+ state: z121.string(),
3014
+ createdAt: z121.coerce.date()
3000
3015
  });
3001
3016
 
3002
3017
  // src/integrations/oauth-token.ts
3003
- import { z as z121 } from "zod";
3004
- var IntegrationTokenSchema = z121.object({
3005
- id: z121.string(),
3018
+ import { z as z122 } from "zod";
3019
+ var IntegrationTokenSchema = z122.object({
3020
+ id: z122.string(),
3006
3021
  provider: OAuthProviderSchema,
3007
- scope: z121.string(),
3008
- userId: z121.string(),
3009
- accessToken: z121.string(),
3010
- refreshToken: z121.string(),
3011
- expiresAt: z121.coerce.date(),
3012
- externalUserId: z121.string().nullish()
3022
+ scope: z122.string(),
3023
+ userId: z122.string(),
3024
+ accessToken: z122.string(),
3025
+ refreshToken: z122.string(),
3026
+ expiresAt: z122.coerce.date(),
3027
+ externalUserId: z122.string().nullish()
3013
3028
  });
3014
3029
 
3015
3030
  // src/multiplayer/design-system-version-room.ts
3016
- import { z as z122 } from "zod";
3031
+ import { z as z123 } from "zod";
3017
3032
  var DesignSystemVersionRoom = Entity.extend({
3018
- designSystemVersionId: z122.string(),
3019
- liveblocksId: z122.string()
3033
+ designSystemVersionId: z123.string(),
3034
+ liveblocksId: z123.string()
3020
3035
  });
3021
- var DesignSystemVersionRoomInitialState = z122.object({
3022
- pages: z122.array(DocumentationPageV2),
3023
- groups: z122.array(ElementGroup)
3036
+ var DesignSystemVersionRoomInitialState = z123.object({
3037
+ pages: z123.array(DocumentationPageV2),
3038
+ groups: z123.array(ElementGroup)
3024
3039
  });
3025
3040
  var DesignSystemVersionRoomUpdate = DesignSystemVersionRoomInitialState.extend({
3026
- deletedPageIds: z122.array(z122.string()),
3027
- deletedGroupIds: z122.array(z122.string())
3041
+ deletedPageIds: z123.array(z123.string()),
3042
+ deletedGroupIds: z123.array(z123.string())
3028
3043
  });
3029
3044
 
3030
3045
  // src/multiplayer/documentation-page-room.ts
3031
- import { z as z123 } from "zod";
3046
+ import { z as z124 } from "zod";
3032
3047
  var DocumentationPageRoom = Entity.extend({
3033
- designSystemVersionId: z123.string(),
3034
- documentationPageId: z123.string(),
3035
- liveblocksId: z123.string()
3048
+ designSystemVersionId: z124.string(),
3049
+ documentationPageId: z124.string(),
3050
+ liveblocksId: z124.string()
3036
3051
  });
3037
- var PageBlockEditorModel = z123.object({
3038
- id: z123.string(),
3052
+ var PageBlockEditorModel = z124.object({
3053
+ id: z124.string(),
3039
3054
  data: PageBlockDataV2
3040
3055
  });
3041
- var DocumentationPageRoomRoomUpdate = z123.object({
3056
+ var DocumentationPageRoomRoomUpdate = z124.object({
3042
3057
  page: DocumentationPageV2,
3043
3058
  pageParent: ElementGroup
3044
3059
  });
3045
3060
  var DocumentationPageRoomInitialState = DocumentationPageRoomRoomUpdate.extend({
3046
- pageBlocks: z123.array(PageBlockEditorModel),
3047
- blockDefinitions: z123.array(PageBlockDefinition)
3061
+ pageBlocks: z124.array(PageBlockEditorModel),
3062
+ blockDefinitions: z124.array(PageBlockDefinition)
3048
3063
  });
3049
3064
 
3050
3065
  // src/multiplayer/room-type.ts
3051
- import { z as z124 } from "zod";
3066
+ import { z as z125 } from "zod";
3052
3067
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
3053
3068
  RoomTypeEnum2["DocumentationPage"] = "documentation-page";
3054
3069
  RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
3055
3070
  return RoomTypeEnum2;
3056
3071
  })(RoomTypeEnum || {});
3057
- var RoomTypeSchema = z124.nativeEnum(RoomTypeEnum);
3072
+ var RoomTypeSchema = z125.nativeEnum(RoomTypeEnum);
3058
3073
  var RoomType = RoomTypeSchema.enum;
3059
3074
 
3060
3075
  // src/npm/npm-package.ts
3061
- import { z as z125 } from "zod";
3062
- var AnyRecord = z125.record(z125.any());
3076
+ import { z as z126 } from "zod";
3077
+ var AnyRecord = z126.record(z126.any());
3063
3078
  var NpmPackageVersionDist = AnyRecord.and(
3064
- z125.object({
3065
- tarball: z125.string()
3079
+ z126.object({
3080
+ tarball: z126.string()
3066
3081
  })
3067
3082
  );
3068
3083
  var NpmPackageVersion = AnyRecord.and(
3069
- z125.object({
3084
+ z126.object({
3070
3085
  dist: NpmPackageVersionDist
3071
3086
  })
3072
3087
  );
3073
3088
  var NpmPackage = AnyRecord.and(
3074
- z125.object({
3075
- _id: z125.string(),
3076
- name: z125.string(),
3089
+ z126.object({
3090
+ _id: z126.string(),
3091
+ name: z126.string(),
3077
3092
  // e.g. "latest": "1.2.3"
3078
- "dist-tags": z125.record(z125.string(), z125.string()),
3093
+ "dist-tags": z126.record(z126.string(), z126.string()),
3079
3094
  // "1.2.3": {...}
3080
- versions: z125.record(NpmPackageVersion)
3095
+ versions: z126.record(NpmPackageVersion)
3081
3096
  })
3082
3097
  );
3083
3098
 
3084
3099
  // src/npm/npm-proxy-token-payload.ts
3085
- import { z as z126 } from "zod";
3086
- var NpmProxyTokenPayload = z126.object({
3087
- npmProxyRegistryConfigId: z126.string()
3100
+ import { z as z127 } from "zod";
3101
+ var NpmProxyTokenPayload = z127.object({
3102
+ npmProxyRegistryConfigId: z127.string()
3088
3103
  });
3089
3104
 
3090
3105
  // src/tokens/personal-access-token.ts
3091
- import { z as z127 } from "zod";
3092
- var PersonalAccessToken = z127.object({
3093
- id: z127.string(),
3094
- userId: z127.string(),
3095
- name: z127.string(),
3096
- token: z127.string(),
3097
- createdAt: z127.coerce.date(),
3098
- hidden: z127.boolean(),
3099
- workspaceId: z127.string().optional(),
3106
+ import { z as z128 } from "zod";
3107
+ var PersonalAccessToken = z128.object({
3108
+ id: z128.string(),
3109
+ userId: z128.string(),
3110
+ name: z128.string(),
3111
+ token: z128.string(),
3112
+ createdAt: z128.coerce.date(),
3113
+ hidden: z128.boolean(),
3114
+ workspaceId: z128.string().optional(),
3100
3115
  workspaceRole: WorkspaceRoleSchema.optional(),
3101
- expireAt: z127.coerce.date().optional(),
3102
- scope: z127.string().optional()
3116
+ expireAt: z128.coerce.date().optional(),
3117
+ scope: z128.string().optional()
3103
3118
  });
3104
3119
 
3105
3120
  // src/utils/errors.ts
@@ -3117,6 +3132,9 @@ var SupernovaException = class _SupernovaException extends Error {
3117
3132
  static accessDenied(message) {
3118
3133
  return new _SupernovaException("AccessDenied", message);
3119
3134
  }
3135
+ static tooMuchWork(message) {
3136
+ return new _SupernovaException("TooMuchWork", message);
3137
+ }
3120
3138
  static notFound(message) {
3121
3139
  return new _SupernovaException("ResourceNotFound", message);
3122
3140
  }
@@ -3228,26 +3246,26 @@ async function sleep(ms) {
3228
3246
  }
3229
3247
 
3230
3248
  // src/utils/content-loader-instruction.ts
3231
- import { z as z128 } from "zod";
3232
- var ContentLoadInstruction = z128.object({
3233
- from: z128.string(),
3234
- to: z128.string(),
3235
- authorizationHeaderKvsId: z128.string().optional(),
3236
- timeout: z128.number().optional()
3237
- });
3238
- var ContentLoaderPayload = z128.object({
3239
- type: z128.literal("Single"),
3249
+ import { z as z129 } from "zod";
3250
+ var ContentLoadInstruction = z129.object({
3251
+ from: z129.string(),
3252
+ to: z129.string(),
3253
+ authorizationHeaderKvsId: z129.string().optional(),
3254
+ timeout: z129.number().optional()
3255
+ });
3256
+ var ContentLoaderPayload = z129.object({
3257
+ type: z129.literal("Single"),
3240
3258
  instruction: ContentLoadInstruction
3241
3259
  }).or(
3242
- z128.object({
3243
- type: z128.literal("Multiple"),
3244
- loadingChunkSize: z128.number().optional(),
3245
- instructions: z128.array(ContentLoadInstruction)
3260
+ z129.object({
3261
+ type: z129.literal("Multiple"),
3262
+ loadingChunkSize: z129.number().optional(),
3263
+ instructions: z129.array(ContentLoadInstruction)
3246
3264
  })
3247
3265
  ).or(
3248
- z128.object({
3249
- type: z128.literal("S3"),
3250
- location: z128.string()
3266
+ z129.object({
3267
+ type: z129.literal("S3"),
3268
+ location: z129.string()
3251
3269
  })
3252
3270
  );
3253
3271
 
@@ -4061,6 +4079,7 @@ export {
4061
4079
  FigmaNodeReference,
4062
4080
  FigmaNodeReferenceData,
4063
4081
  FigmaNodeReferenceElementData,
4082
+ FigmaNodeReferenceOrigin,
4064
4083
  FigmaPngRenderImportModel,
4065
4084
  FigmaRenderFormat,
4066
4085
  FigmaRenderImportModel,