@supernova-studio/model 0.48.13 → 0.48.15
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.d.mts +172 -4
- package/dist/index.d.ts +172 -4
- package/dist/index.js +943 -880
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1560 -1497
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/element-snapshots/base.ts +18 -0
- package/src/dsm/element-snapshots/documentation-page-snapshot.ts +9 -1
- package/src/dsm/element-snapshots/group-snapshot.ts +9 -1
- package/src/dsm/elements/component-properties.ts +52 -0
- package/src/dsm/elements/component-set.ts +10 -0
- package/src/dsm/elements/component.ts +8 -2
- package/src/dsm/elements/index.ts +2 -0
package/dist/index.mjs
CHANGED
|
@@ -284,7 +284,7 @@ var CustomDomain = z14.object({
|
|
|
284
284
|
});
|
|
285
285
|
|
|
286
286
|
// src/data-dumps/code-integration-dump.ts
|
|
287
|
-
import { z as
|
|
287
|
+
import { z as z124 } from "zod";
|
|
288
288
|
|
|
289
289
|
// src/export/exporter.ts
|
|
290
290
|
import { z as z17 } from "zod";
|
|
@@ -386,10 +386,10 @@ var Exporter = z17.object({
|
|
|
386
386
|
});
|
|
387
387
|
|
|
388
388
|
// src/export/pipeline.ts
|
|
389
|
-
import { z as
|
|
389
|
+
import { z as z123 } from "zod";
|
|
390
390
|
|
|
391
391
|
// src/export/export-destinations.ts
|
|
392
|
-
import { z as
|
|
392
|
+
import { z as z122 } from "zod";
|
|
393
393
|
|
|
394
394
|
// src/dsm/assets/asset-dynamo-record.ts
|
|
395
395
|
import { z as z18 } from "zod";
|
|
@@ -454,7 +454,7 @@ function isImportedAsset(asset) {
|
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
// src/dsm/components/asset-rendering.ts
|
|
457
|
-
import { z as
|
|
457
|
+
import { z as z94 } from "zod";
|
|
458
458
|
|
|
459
459
|
// src/dsm/import/support/figma-files.ts
|
|
460
460
|
import { z as z22 } from "zod";
|
|
@@ -471,10 +471,10 @@ var FigmaFileAccessData = z22.object({
|
|
|
471
471
|
});
|
|
472
472
|
|
|
473
473
|
// src/dsm/import/support/import-context.ts
|
|
474
|
-
import { z as
|
|
474
|
+
import { z as z85 } from "zod";
|
|
475
475
|
|
|
476
476
|
// src/dsm/data-sources/data-source.ts
|
|
477
|
-
import { z as
|
|
477
|
+
import { z as z83 } from "zod";
|
|
478
478
|
|
|
479
479
|
// src/dsm/import/warning.ts
|
|
480
480
|
import { z as z23 } from "zod";
|
|
@@ -505,7 +505,7 @@ var ImportWarning = z23.object({
|
|
|
505
505
|
});
|
|
506
506
|
|
|
507
507
|
// src/dsm/data-sources/import-summary.ts
|
|
508
|
-
import { z as
|
|
508
|
+
import { z as z82 } from "zod";
|
|
509
509
|
|
|
510
510
|
// src/dsm/elements/data/base.ts
|
|
511
511
|
import { z as z24 } from "zod";
|
|
@@ -1696,34 +1696,80 @@ var ZIndexValue = z72.object({
|
|
|
1696
1696
|
var ZIndexTokenData = tokenAliasOrValue(ZIndexValue);
|
|
1697
1697
|
|
|
1698
1698
|
// src/dsm/elements/component.ts
|
|
1699
|
+
import { z as z74 } from "zod";
|
|
1700
|
+
|
|
1701
|
+
// src/dsm/elements/component-properties.ts
|
|
1699
1702
|
import { z as z73 } from "zod";
|
|
1700
|
-
var
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1703
|
+
var FigmaComponentPropertyType = z73.enum(["Boolean", "InstanceSwap", "Variant", "Text"]);
|
|
1704
|
+
var FigmaComponentBooleanProperty = z73.object({
|
|
1705
|
+
type: z73.literal(FigmaComponentPropertyType.enum.Boolean),
|
|
1706
|
+
value: z73.boolean(),
|
|
1707
|
+
defaultValue: z73.boolean()
|
|
1708
|
+
});
|
|
1709
|
+
var FigmaComponentInstanceSwapProperty = z73.object({
|
|
1710
|
+
type: z73.literal(FigmaComponentPropertyType.enum.InstanceSwap),
|
|
1711
|
+
value: z73.string()
|
|
1712
|
+
// Persistent ID of a Component to swap?
|
|
1713
|
+
});
|
|
1714
|
+
var FigmaComponentVariantProperty = z73.object({
|
|
1715
|
+
type: z73.literal(FigmaComponentPropertyType.enum.Variant),
|
|
1716
|
+
value: z73.string(),
|
|
1717
|
+
options: z73.array(z73.string())
|
|
1718
|
+
});
|
|
1719
|
+
var FigmaComponentTextProperty = z73.object({
|
|
1720
|
+
type: z73.literal(FigmaComponentPropertyType.enum.Text),
|
|
1721
|
+
value: z73.string()
|
|
1722
|
+
});
|
|
1723
|
+
var FigmaComponentProperties = z73.record(
|
|
1724
|
+
z73.string(),
|
|
1725
|
+
z73.discriminatedUnion("type", [
|
|
1726
|
+
FigmaComponentBooleanProperty,
|
|
1727
|
+
FigmaComponentInstanceSwapProperty,
|
|
1728
|
+
FigmaComponentTextProperty
|
|
1729
|
+
])
|
|
1730
|
+
);
|
|
1731
|
+
var FigmaComponentSetProperties = z73.record(
|
|
1732
|
+
z73.string(),
|
|
1733
|
+
z73.discriminatedUnion("type", [
|
|
1734
|
+
FigmaComponentBooleanProperty,
|
|
1735
|
+
FigmaComponentInstanceSwapProperty,
|
|
1736
|
+
FigmaComponentTextProperty,
|
|
1737
|
+
FigmaComponentVariantProperty
|
|
1738
|
+
])
|
|
1739
|
+
);
|
|
1740
|
+
|
|
1741
|
+
// src/dsm/elements/component.ts
|
|
1742
|
+
var ComponentOriginPart = z74.object({
|
|
1743
|
+
nodeId: z74.string().optional(),
|
|
1744
|
+
width: z74.number().optional(),
|
|
1745
|
+
height: z74.number().optional()
|
|
1704
1746
|
});
|
|
1705
|
-
var ComponentAsset =
|
|
1706
|
-
assetId:
|
|
1707
|
-
assetPath:
|
|
1747
|
+
var ComponentAsset = z74.object({
|
|
1748
|
+
assetId: z74.string(),
|
|
1749
|
+
assetPath: z74.string()
|
|
1708
1750
|
});
|
|
1709
1751
|
var ComponentOrigin = DesignElementOrigin.extend(ComponentOriginPart.shape);
|
|
1710
|
-
var
|
|
1752
|
+
var BaseComponent = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
1711
1753
|
origin: ComponentOrigin.optional(),
|
|
1712
|
-
thumbnail: ComponentAsset
|
|
1754
|
+
thumbnail: ComponentAsset
|
|
1755
|
+
});
|
|
1756
|
+
var Component = BaseComponent.extend({
|
|
1713
1757
|
svg: ComponentAsset.optional(),
|
|
1714
|
-
isAsset:
|
|
1758
|
+
isAsset: z74.boolean(),
|
|
1759
|
+
componentSetId: z74.string().optional(),
|
|
1760
|
+
properties: FigmaComponentProperties.optional()
|
|
1715
1761
|
});
|
|
1716
1762
|
function isImportedComponent(component) {
|
|
1717
1763
|
return !!component.origin;
|
|
1718
1764
|
}
|
|
1719
1765
|
|
|
1720
1766
|
// src/dsm/elements/documentation-page-v1.ts
|
|
1721
|
-
import { z as
|
|
1767
|
+
import { z as z76 } from "zod";
|
|
1722
1768
|
|
|
1723
1769
|
// src/dsm/elements/group.ts
|
|
1724
|
-
import { z as
|
|
1770
|
+
import { z as z75 } from "zod";
|
|
1725
1771
|
var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
|
|
1726
|
-
shortPersistentId:
|
|
1772
|
+
shortPersistentId: z75.string().optional(),
|
|
1727
1773
|
childType: DesignElementType,
|
|
1728
1774
|
data: ElementGroupDataV2.optional()
|
|
1729
1775
|
});
|
|
@@ -1731,7 +1777,7 @@ var BrandedElementGroup = ElementGroup.extend(DesignElementBrandedPart.shape);
|
|
|
1731
1777
|
|
|
1732
1778
|
// src/dsm/elements/documentation-page-v1.ts
|
|
1733
1779
|
var DocumentationPageV1 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
1734
|
-
shortPersistentId:
|
|
1780
|
+
shortPersistentId: z76.string(),
|
|
1735
1781
|
data: DocumentationPageDataV1
|
|
1736
1782
|
});
|
|
1737
1783
|
var DocumentationGroupV1 = ElementGroup.omit({
|
|
@@ -1741,21 +1787,21 @@ var DocumentationGroupV1 = ElementGroup.omit({
|
|
|
1741
1787
|
});
|
|
1742
1788
|
|
|
1743
1789
|
// src/dsm/elements/documentation-page-v2.ts
|
|
1744
|
-
import { z as
|
|
1790
|
+
import { z as z77 } from "zod";
|
|
1745
1791
|
var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
1746
|
-
shortPersistentId:
|
|
1792
|
+
shortPersistentId: z77.string(),
|
|
1747
1793
|
data: DocumentationPageDataV2.extend({
|
|
1748
|
-
oldBlocks:
|
|
1794
|
+
oldBlocks: z77.array(PageBlockV1).optional()
|
|
1749
1795
|
})
|
|
1750
1796
|
});
|
|
1751
1797
|
|
|
1752
1798
|
// src/dsm/elements/figma-file-structures.ts
|
|
1753
|
-
import { z as
|
|
1754
|
-
var FigmaFileStructureOrigin =
|
|
1755
|
-
sourceId:
|
|
1756
|
-
fileId:
|
|
1799
|
+
import { z as z78 } from "zod";
|
|
1800
|
+
var FigmaFileStructureOrigin = z78.object({
|
|
1801
|
+
sourceId: z78.string(),
|
|
1802
|
+
fileId: z78.string().optional()
|
|
1757
1803
|
});
|
|
1758
|
-
var FigmaFileStructureData =
|
|
1804
|
+
var FigmaFileStructureData = z78.object({
|
|
1759
1805
|
rootNode: FigmaFileStructureNode,
|
|
1760
1806
|
assetsInFile: FigmaFileStructureStatistics
|
|
1761
1807
|
});
|
|
@@ -1771,10 +1817,10 @@ function traverseStructure(node, action) {
|
|
|
1771
1817
|
}
|
|
1772
1818
|
|
|
1773
1819
|
// src/dsm/elements/figma-node-reference.ts
|
|
1774
|
-
import { z as
|
|
1775
|
-
var FigmaNodeReferenceOrigin =
|
|
1776
|
-
sourceId:
|
|
1777
|
-
parentName:
|
|
1820
|
+
import { z as z79 } from "zod";
|
|
1821
|
+
var FigmaNodeReferenceOrigin = z79.object({
|
|
1822
|
+
sourceId: z79.string(),
|
|
1823
|
+
parentName: z79.string().optional()
|
|
1778
1824
|
});
|
|
1779
1825
|
var FigmaNodeReference = DesignElementBase.extend({
|
|
1780
1826
|
data: FigmaNodeReferenceData,
|
|
@@ -1782,16 +1828,16 @@ var FigmaNodeReference = DesignElementBase.extend({
|
|
|
1782
1828
|
});
|
|
1783
1829
|
|
|
1784
1830
|
// src/dsm/elements/theme.ts
|
|
1785
|
-
import { z as
|
|
1831
|
+
import { z as z81 } from "zod";
|
|
1786
1832
|
|
|
1787
1833
|
// src/dsm/elements/tokens.ts
|
|
1788
|
-
import { z as
|
|
1789
|
-
var DesignTokenOriginPart =
|
|
1790
|
-
referenceOriginId:
|
|
1791
|
-
referenceOriginKey:
|
|
1792
|
-
referencePersistentId:
|
|
1793
|
-
referenceResolutionFailed:
|
|
1794
|
-
key:
|
|
1834
|
+
import { z as z80 } from "zod";
|
|
1835
|
+
var DesignTokenOriginPart = z80.object({
|
|
1836
|
+
referenceOriginId: z80.string().optional(),
|
|
1837
|
+
referenceOriginKey: z80.string().optional(),
|
|
1838
|
+
referencePersistentId: z80.string().optional(),
|
|
1839
|
+
referenceResolutionFailed: z80.boolean().optional(),
|
|
1840
|
+
key: z80.string().optional()
|
|
1795
1841
|
});
|
|
1796
1842
|
var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
|
|
1797
1843
|
var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
@@ -1803,111 +1849,111 @@ var UpdateDesignTokenBase = DesignTokenBase.omit({
|
|
|
1803
1849
|
brandPersistentId: true,
|
|
1804
1850
|
designSystemVersionId: true
|
|
1805
1851
|
});
|
|
1806
|
-
var BlurTokenTypedData =
|
|
1807
|
-
type:
|
|
1852
|
+
var BlurTokenTypedData = z80.object({
|
|
1853
|
+
type: z80.literal("Blur"),
|
|
1808
1854
|
data: BlurTokenData
|
|
1809
1855
|
});
|
|
1810
|
-
var ColorTokenTypedData =
|
|
1811
|
-
type:
|
|
1856
|
+
var ColorTokenTypedData = z80.object({
|
|
1857
|
+
type: z80.literal("Color"),
|
|
1812
1858
|
data: ColorTokenData
|
|
1813
1859
|
});
|
|
1814
|
-
var GradientTokenTypedData =
|
|
1815
|
-
type:
|
|
1860
|
+
var GradientTokenTypedData = z80.object({
|
|
1861
|
+
type: z80.literal("Gradient"),
|
|
1816
1862
|
data: GradientTokenData
|
|
1817
1863
|
});
|
|
1818
|
-
var OpacityTokenTypedData =
|
|
1819
|
-
type:
|
|
1864
|
+
var OpacityTokenTypedData = z80.object({
|
|
1865
|
+
type: z80.literal("Opacity"),
|
|
1820
1866
|
data: OpacityTokenData
|
|
1821
1867
|
});
|
|
1822
|
-
var ShadowTokenTypedData =
|
|
1823
|
-
type:
|
|
1868
|
+
var ShadowTokenTypedData = z80.object({
|
|
1869
|
+
type: z80.literal("Shadow"),
|
|
1824
1870
|
data: ShadowTokenData
|
|
1825
1871
|
});
|
|
1826
|
-
var TypographyTokenTypedData =
|
|
1827
|
-
type:
|
|
1872
|
+
var TypographyTokenTypedData = z80.object({
|
|
1873
|
+
type: z80.literal("Typography"),
|
|
1828
1874
|
data: TypographyTokenData
|
|
1829
1875
|
});
|
|
1830
|
-
var StringTokenTypedData =
|
|
1831
|
-
type:
|
|
1876
|
+
var StringTokenTypedData = z80.object({
|
|
1877
|
+
type: z80.literal("String"),
|
|
1832
1878
|
data: StringTokenData
|
|
1833
1879
|
});
|
|
1834
|
-
var DimensionTokenTypedData =
|
|
1835
|
-
type:
|
|
1880
|
+
var DimensionTokenTypedData = z80.object({
|
|
1881
|
+
type: z80.literal("Dimension"),
|
|
1836
1882
|
data: DimensionTokenData
|
|
1837
1883
|
});
|
|
1838
|
-
var FontSizeTokenTypedData =
|
|
1839
|
-
type:
|
|
1884
|
+
var FontSizeTokenTypedData = z80.object({
|
|
1885
|
+
type: z80.literal("FontSize"),
|
|
1840
1886
|
data: FontSizeTokenData
|
|
1841
1887
|
});
|
|
1842
|
-
var FontFamilyTokenTypedData =
|
|
1843
|
-
type:
|
|
1888
|
+
var FontFamilyTokenTypedData = z80.object({
|
|
1889
|
+
type: z80.literal("FontFamily"),
|
|
1844
1890
|
data: FontFamilyTokenData
|
|
1845
1891
|
});
|
|
1846
|
-
var FontWeightTokenTypedData =
|
|
1847
|
-
type:
|
|
1892
|
+
var FontWeightTokenTypedData = z80.object({
|
|
1893
|
+
type: z80.literal("FontWeight"),
|
|
1848
1894
|
data: FontWeightTokenData
|
|
1849
1895
|
});
|
|
1850
|
-
var LetterSpacingTokenTypedData =
|
|
1851
|
-
type:
|
|
1896
|
+
var LetterSpacingTokenTypedData = z80.object({
|
|
1897
|
+
type: z80.literal("LetterSpacing"),
|
|
1852
1898
|
data: LetterSpacingTokenData
|
|
1853
1899
|
});
|
|
1854
|
-
var LineHeightTokenTypedData =
|
|
1855
|
-
type:
|
|
1900
|
+
var LineHeightTokenTypedData = z80.object({
|
|
1901
|
+
type: z80.literal("LineHeight"),
|
|
1856
1902
|
data: LineHeightTokenData
|
|
1857
1903
|
});
|
|
1858
|
-
var ParagraphSpacingTokenTypedData =
|
|
1859
|
-
type:
|
|
1904
|
+
var ParagraphSpacingTokenTypedData = z80.object({
|
|
1905
|
+
type: z80.literal("ParagraphSpacing"),
|
|
1860
1906
|
data: ParagraphSpacingTokenData
|
|
1861
1907
|
});
|
|
1862
|
-
var TextCaseTokenTypedData =
|
|
1863
|
-
type:
|
|
1908
|
+
var TextCaseTokenTypedData = z80.object({
|
|
1909
|
+
type: z80.literal("TextCase"),
|
|
1864
1910
|
data: TextCaseTokenData
|
|
1865
1911
|
});
|
|
1866
|
-
var TextDecorationTokenTypedData =
|
|
1867
|
-
type:
|
|
1912
|
+
var TextDecorationTokenTypedData = z80.object({
|
|
1913
|
+
type: z80.literal("TextDecoration"),
|
|
1868
1914
|
data: TextDecorationTokenData
|
|
1869
1915
|
});
|
|
1870
|
-
var BorderRadiusTokenTypedData =
|
|
1871
|
-
type:
|
|
1916
|
+
var BorderRadiusTokenTypedData = z80.object({
|
|
1917
|
+
type: z80.literal("BorderRadius"),
|
|
1872
1918
|
data: BorderRadiusTokenData
|
|
1873
1919
|
});
|
|
1874
|
-
var BorderWidthTokenTypedData =
|
|
1875
|
-
type:
|
|
1920
|
+
var BorderWidthTokenTypedData = z80.object({
|
|
1921
|
+
type: z80.literal("BorderWidth"),
|
|
1876
1922
|
data: BorderWidthTokenData
|
|
1877
1923
|
});
|
|
1878
|
-
var BorderTypedData =
|
|
1879
|
-
type:
|
|
1924
|
+
var BorderTypedData = z80.object({
|
|
1925
|
+
type: z80.literal("Border"),
|
|
1880
1926
|
data: BorderTokenData
|
|
1881
1927
|
});
|
|
1882
|
-
var ProductCopyTypedData =
|
|
1883
|
-
type:
|
|
1928
|
+
var ProductCopyTypedData = z80.object({
|
|
1929
|
+
type: z80.literal("ProductCopy"),
|
|
1884
1930
|
data: ProductCopyTokenData
|
|
1885
1931
|
});
|
|
1886
|
-
var SizeTypedData =
|
|
1887
|
-
type:
|
|
1932
|
+
var SizeTypedData = z80.object({
|
|
1933
|
+
type: z80.literal("Size"),
|
|
1888
1934
|
data: SizeTokenData
|
|
1889
1935
|
});
|
|
1890
|
-
var SpaceTypedData =
|
|
1891
|
-
type:
|
|
1936
|
+
var SpaceTypedData = z80.object({
|
|
1937
|
+
type: z80.literal("Space"),
|
|
1892
1938
|
data: SpaceTokenData
|
|
1893
1939
|
});
|
|
1894
|
-
var VisibilityTypedData =
|
|
1895
|
-
type:
|
|
1940
|
+
var VisibilityTypedData = z80.object({
|
|
1941
|
+
type: z80.literal("Visibility"),
|
|
1896
1942
|
data: VisibilityTokenData
|
|
1897
1943
|
});
|
|
1898
|
-
var ZIndexTypedData =
|
|
1899
|
-
type:
|
|
1944
|
+
var ZIndexTypedData = z80.object({
|
|
1945
|
+
type: z80.literal("ZIndex"),
|
|
1900
1946
|
data: ZIndexTokenData
|
|
1901
1947
|
});
|
|
1902
|
-
var DurationTypedData =
|
|
1903
|
-
type:
|
|
1948
|
+
var DurationTypedData = z80.object({
|
|
1949
|
+
type: z80.literal("Duration"),
|
|
1904
1950
|
data: DurationTokenData
|
|
1905
1951
|
});
|
|
1906
|
-
var FontTypedData =
|
|
1907
|
-
type:
|
|
1908
|
-
data:
|
|
1952
|
+
var FontTypedData = z80.object({
|
|
1953
|
+
type: z80.literal("Font"),
|
|
1954
|
+
data: z80.record(z80.any())
|
|
1909
1955
|
});
|
|
1910
|
-
var DesignTokenTypedData =
|
|
1956
|
+
var DesignTokenTypedData = z80.discriminatedUnion("type", [
|
|
1911
1957
|
BlurTokenTypedData,
|
|
1912
1958
|
BorderRadiusTokenTypedData,
|
|
1913
1959
|
BorderWidthTokenTypedData,
|
|
@@ -1957,32 +2003,32 @@ function designTokenTypeFilter(type) {
|
|
|
1957
2003
|
var ThemeOverrideOriginPart = DesignTokenOriginPart;
|
|
1958
2004
|
var ThemeOverrideOrigin = DesignTokenOrigin;
|
|
1959
2005
|
var ThemeOverride = DesignTokenTypedData.and(
|
|
1960
|
-
|
|
1961
|
-
tokenPersistentId:
|
|
2006
|
+
z81.object({
|
|
2007
|
+
tokenPersistentId: z81.string(),
|
|
1962
2008
|
origin: ThemeOverrideOrigin.optional().nullable().transform((v) => v ?? void 0)
|
|
1963
2009
|
})
|
|
1964
2010
|
);
|
|
1965
|
-
var ThemeElementData =
|
|
1966
|
-
value:
|
|
1967
|
-
overrides:
|
|
2011
|
+
var ThemeElementData = z81.object({
|
|
2012
|
+
value: z81.object({
|
|
2013
|
+
overrides: z81.array(ThemeOverride)
|
|
1968
2014
|
})
|
|
1969
2015
|
});
|
|
1970
|
-
var ThemeOriginPart =
|
|
1971
|
-
var ThemeOriginObject =
|
|
1972
|
-
id:
|
|
1973
|
-
name:
|
|
2016
|
+
var ThemeOriginPart = z81.object({});
|
|
2017
|
+
var ThemeOriginObject = z81.object({
|
|
2018
|
+
id: z81.string(),
|
|
2019
|
+
name: z81.string()
|
|
1974
2020
|
});
|
|
1975
|
-
var ThemeOriginSource =
|
|
1976
|
-
sourceId:
|
|
1977
|
-
sourceObjects:
|
|
2021
|
+
var ThemeOriginSource = z81.object({
|
|
2022
|
+
sourceId: z81.string(),
|
|
2023
|
+
sourceObjects: z81.array(ThemeOriginObject)
|
|
1978
2024
|
});
|
|
1979
|
-
var ThemeOrigin =
|
|
1980
|
-
sources:
|
|
2025
|
+
var ThemeOrigin = z81.object({
|
|
2026
|
+
sources: z81.array(ThemeOriginSource)
|
|
1981
2027
|
});
|
|
1982
2028
|
var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
|
|
1983
2029
|
origin: ThemeOrigin.optional(),
|
|
1984
|
-
overrides:
|
|
1985
|
-
codeName:
|
|
2030
|
+
overrides: z81.array(ThemeOverride),
|
|
2031
|
+
codeName: z81.string()
|
|
1986
2032
|
});
|
|
1987
2033
|
|
|
1988
2034
|
// src/dsm/elements/utils.ts
|
|
@@ -2052,17 +2098,17 @@ var PageBlockDefinitionsMap = class {
|
|
|
2052
2098
|
};
|
|
2053
2099
|
|
|
2054
2100
|
// src/dsm/data-sources/import-summary.ts
|
|
2055
|
-
var FileStructureStats =
|
|
2101
|
+
var FileStructureStats = z82.object({
|
|
2056
2102
|
frames: zeroNumberByDefault(),
|
|
2057
2103
|
components: zeroNumberByDefault(),
|
|
2058
2104
|
componentSets: zeroNumberByDefault()
|
|
2059
2105
|
});
|
|
2060
2106
|
var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
|
|
2061
2107
|
// Backward compatibility
|
|
2062
|
-
|
|
2108
|
+
z82.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
|
|
2063
2109
|
);
|
|
2064
|
-
var SourceImportSummaryByTokenType =
|
|
2065
|
-
var SourceImportTokenSummary =
|
|
2110
|
+
var SourceImportSummaryByTokenType = z82.record(SourceImportSummaryByTokenTypeKey, z82.number());
|
|
2111
|
+
var SourceImportTokenSummary = z82.object({
|
|
2066
2112
|
tokensCreated: zeroNumberByDefault(),
|
|
2067
2113
|
tokensUpdated: zeroNumberByDefault(),
|
|
2068
2114
|
tokensDeleted: zeroNumberByDefault(),
|
|
@@ -2070,7 +2116,7 @@ var SourceImportTokenSummary = z81.object({
|
|
|
2070
2116
|
tokensUpdatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {}),
|
|
2071
2117
|
tokensDeletedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {})
|
|
2072
2118
|
});
|
|
2073
|
-
var SourceImportComponentSummary =
|
|
2119
|
+
var SourceImportComponentSummary = z82.object({
|
|
2074
2120
|
componentsCreated: zeroNumberByDefault(),
|
|
2075
2121
|
componentsUpdated: zeroNumberByDefault(),
|
|
2076
2122
|
componentsDeleted: zeroNumberByDefault(),
|
|
@@ -2078,163 +2124,163 @@ var SourceImportComponentSummary = z81.object({
|
|
|
2078
2124
|
componentAssetsUpdated: zeroNumberByDefault(),
|
|
2079
2125
|
componentAssetsDeleted: zeroNumberByDefault()
|
|
2080
2126
|
});
|
|
2081
|
-
var SourceImportFrameSummary =
|
|
2127
|
+
var SourceImportFrameSummary = z82.object({
|
|
2082
2128
|
assetsInFile: nullishToOptional(FileStructureStats.optional()),
|
|
2083
|
-
invalidReferencesCount: nullishToOptional(
|
|
2084
|
-
});
|
|
2085
|
-
var SourceImportSummary =
|
|
2086
|
-
sourceId: nullishToOptional(
|
|
2087
|
-
brandId: nullishToOptional(
|
|
2088
|
-
versionId: nullishToOptional(
|
|
2089
|
-
error: nullishToOptional(
|
|
2090
|
-
isFailed:
|
|
2091
|
-
warnings:
|
|
2129
|
+
invalidReferencesCount: nullishToOptional(z82.number().optional())
|
|
2130
|
+
});
|
|
2131
|
+
var SourceImportSummary = z82.object({
|
|
2132
|
+
sourceId: nullishToOptional(z82.string()),
|
|
2133
|
+
brandId: nullishToOptional(z82.string()),
|
|
2134
|
+
versionId: nullishToOptional(z82.string()),
|
|
2135
|
+
error: nullishToOptional(z82.any()),
|
|
2136
|
+
isFailed: z82.boolean(),
|
|
2137
|
+
warnings: z82.array(ImportWarning).nullish().transform((v) => v ?? []),
|
|
2092
2138
|
...SourceImportTokenSummary.shape,
|
|
2093
2139
|
...SourceImportComponentSummary.shape,
|
|
2094
2140
|
...FileStructureStats.shape
|
|
2095
2141
|
});
|
|
2096
2142
|
function zeroNumberByDefault() {
|
|
2097
|
-
return
|
|
2143
|
+
return z82.number().nullish().transform((v) => v ?? 0);
|
|
2098
2144
|
}
|
|
2099
2145
|
|
|
2100
2146
|
// src/dsm/data-sources/data-source.ts
|
|
2101
|
-
var DataSourceRemoteType =
|
|
2102
|
-
var DataSourceUploadRemoteSource =
|
|
2103
|
-
var DataSourceFigmaState =
|
|
2104
|
-
var DataSourceAutoImportMode =
|
|
2105
|
-
var DataSourceStats =
|
|
2147
|
+
var DataSourceRemoteType = z83.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
|
|
2148
|
+
var DataSourceUploadRemoteSource = z83.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
|
|
2149
|
+
var DataSourceFigmaState = z83.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
|
|
2150
|
+
var DataSourceAutoImportMode = z83.enum(["Never", "Hourly"]);
|
|
2151
|
+
var DataSourceStats = z83.object({
|
|
2106
2152
|
tokens: zeroNumberByDefault2(),
|
|
2107
2153
|
components: zeroNumberByDefault2(),
|
|
2108
2154
|
assets: zeroNumberByDefault2(),
|
|
2109
2155
|
frames: zeroNumberByDefault2()
|
|
2110
2156
|
});
|
|
2111
|
-
var DataSourceFigmaFileData =
|
|
2112
|
-
lastUpdatedAt:
|
|
2157
|
+
var DataSourceFigmaFileData = z83.object({
|
|
2158
|
+
lastUpdatedAt: z83.coerce.date()
|
|
2113
2159
|
});
|
|
2114
|
-
var DataSourceFigmaFileVersionData =
|
|
2115
|
-
id:
|
|
2116
|
-
label:
|
|
2117
|
-
description:
|
|
2118
|
-
createdAt:
|
|
2160
|
+
var DataSourceFigmaFileVersionData = z83.object({
|
|
2161
|
+
id: z83.string(),
|
|
2162
|
+
label: z83.string().optional(),
|
|
2163
|
+
description: z83.string().optional(),
|
|
2164
|
+
createdAt: z83.coerce.date()
|
|
2119
2165
|
});
|
|
2120
|
-
var DataSourceFigmaScope =
|
|
2121
|
-
assets:
|
|
2122
|
-
components:
|
|
2123
|
-
documentationFrames:
|
|
2124
|
-
tokens:
|
|
2125
|
-
themePersistentId:
|
|
2126
|
-
isUnpublishedContentFallbackEnabled:
|
|
2166
|
+
var DataSourceFigmaScope = z83.object({
|
|
2167
|
+
assets: z83.boolean(),
|
|
2168
|
+
components: z83.boolean(),
|
|
2169
|
+
documentationFrames: z83.boolean(),
|
|
2170
|
+
tokens: z83.boolean(),
|
|
2171
|
+
themePersistentId: z83.string().optional(),
|
|
2172
|
+
isUnpublishedContentFallbackEnabled: z83.boolean()
|
|
2127
2173
|
});
|
|
2128
|
-
var DataSourceFigmaImportMetadata =
|
|
2174
|
+
var DataSourceFigmaImportMetadata = z83.object({
|
|
2129
2175
|
fileData: DataSourceFigmaFileData.optional(),
|
|
2130
2176
|
importedPublishedVersion: DataSourceFigmaFileVersionData.optional()
|
|
2131
2177
|
});
|
|
2132
|
-
var DataSourceFigmaRemote =
|
|
2133
|
-
type:
|
|
2134
|
-
fileId:
|
|
2135
|
-
preferredCredentialId:
|
|
2136
|
-
ownerId:
|
|
2178
|
+
var DataSourceFigmaRemote = z83.object({
|
|
2179
|
+
type: z83.literal(DataSourceRemoteType.Enum.Figma),
|
|
2180
|
+
fileId: z83.string(),
|
|
2181
|
+
preferredCredentialId: z83.string().optional(),
|
|
2182
|
+
ownerId: z83.string(),
|
|
2137
2183
|
// todo remove or keep to reference who created data source
|
|
2138
|
-
ownerName:
|
|
2184
|
+
ownerName: z83.string(),
|
|
2139
2185
|
// todo probably remove
|
|
2140
2186
|
scope: DataSourceFigmaScope,
|
|
2141
2187
|
state: DataSourceFigmaState,
|
|
2142
|
-
requiresSync:
|
|
2188
|
+
requiresSync: z83.boolean().optional().transform((v) => v ?? false),
|
|
2143
2189
|
lastImportMetadata: DataSourceFigmaImportMetadata.optional(),
|
|
2144
|
-
downloadChunkSize:
|
|
2145
|
-
figmaRenderChunkSize:
|
|
2146
|
-
maxFileDepth:
|
|
2190
|
+
downloadChunkSize: z83.number().optional(),
|
|
2191
|
+
figmaRenderChunkSize: z83.number().optional(),
|
|
2192
|
+
maxFileDepth: z83.number().optional()
|
|
2147
2193
|
});
|
|
2148
|
-
var DataSourceTokenStudioRemote =
|
|
2149
|
-
type:
|
|
2194
|
+
var DataSourceTokenStudioRemote = z83.object({
|
|
2195
|
+
type: z83.literal(DataSourceRemoteType.Enum.TokenStudio)
|
|
2150
2196
|
});
|
|
2151
|
-
var DataSourceUploadImportMetadata =
|
|
2152
|
-
var DataSourceUploadRemote =
|
|
2153
|
-
type:
|
|
2154
|
-
remoteId:
|
|
2197
|
+
var DataSourceUploadImportMetadata = z83.record(z83.any());
|
|
2198
|
+
var DataSourceUploadRemote = z83.object({
|
|
2199
|
+
type: z83.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
2200
|
+
remoteId: z83.string(),
|
|
2155
2201
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
2156
2202
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
2157
2203
|
warnings: nullishToOptional(ImportWarning.array())
|
|
2158
2204
|
});
|
|
2159
|
-
var DataSourceRemote =
|
|
2205
|
+
var DataSourceRemote = z83.discriminatedUnion("type", [
|
|
2160
2206
|
DataSourceFigmaRemote,
|
|
2161
2207
|
DataSourceUploadRemote,
|
|
2162
2208
|
DataSourceTokenStudioRemote
|
|
2163
2209
|
]);
|
|
2164
|
-
var DataSource =
|
|
2165
|
-
id:
|
|
2166
|
-
name:
|
|
2167
|
-
thumbnailUrl:
|
|
2168
|
-
createdAt:
|
|
2169
|
-
lastImportedAt:
|
|
2210
|
+
var DataSource = z83.object({
|
|
2211
|
+
id: z83.string(),
|
|
2212
|
+
name: z83.string(),
|
|
2213
|
+
thumbnailUrl: z83.string().optional(),
|
|
2214
|
+
createdAt: z83.coerce.date().optional(),
|
|
2215
|
+
lastImportedAt: z83.coerce.date().optional(),
|
|
2170
2216
|
lastImportSummary: SourceImportSummary.optional(),
|
|
2171
|
-
designSystemId:
|
|
2172
|
-
brandPersistentId:
|
|
2217
|
+
designSystemId: z83.string(),
|
|
2218
|
+
brandPersistentId: z83.string(),
|
|
2173
2219
|
autoImportMode: DataSourceAutoImportMode,
|
|
2174
2220
|
stats: DataSourceStats,
|
|
2175
2221
|
remote: DataSourceRemote,
|
|
2176
|
-
sortOrder:
|
|
2222
|
+
sortOrder: z83.number()
|
|
2177
2223
|
});
|
|
2178
|
-
var DataSourceVersion =
|
|
2179
|
-
id:
|
|
2180
|
-
createdAt:
|
|
2181
|
-
label:
|
|
2182
|
-
description:
|
|
2224
|
+
var DataSourceVersion = z83.object({
|
|
2225
|
+
id: z83.string(),
|
|
2226
|
+
createdAt: z83.coerce.date(),
|
|
2227
|
+
label: z83.string().nullish(),
|
|
2228
|
+
description: z83.string().nullish()
|
|
2183
2229
|
});
|
|
2184
2230
|
function zeroNumberByDefault2() {
|
|
2185
|
-
return
|
|
2231
|
+
return z83.number().nullish().transform((v) => v ?? 0);
|
|
2186
2232
|
}
|
|
2187
2233
|
|
|
2188
2234
|
// src/dsm/data-sources/import-job.ts
|
|
2189
|
-
import { z as
|
|
2190
|
-
var ImportJobState =
|
|
2191
|
-
var ImportJobOperation =
|
|
2235
|
+
import { z as z84 } from "zod";
|
|
2236
|
+
var ImportJobState = z84.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
|
|
2237
|
+
var ImportJobOperation = z84.enum(["Check", "Import"]);
|
|
2192
2238
|
var ImportJob = Entity.extend({
|
|
2193
|
-
designSystemId:
|
|
2194
|
-
designSystemVersionId:
|
|
2195
|
-
sourceIds:
|
|
2239
|
+
designSystemId: z84.string(),
|
|
2240
|
+
designSystemVersionId: z84.string(),
|
|
2241
|
+
sourceIds: z84.array(z84.string()),
|
|
2196
2242
|
state: ImportJobState,
|
|
2197
|
-
createdByUserId:
|
|
2198
|
-
importContextId:
|
|
2199
|
-
error:
|
|
2243
|
+
createdByUserId: z84.string().optional(),
|
|
2244
|
+
importContextId: z84.string(),
|
|
2245
|
+
error: z84.string().optional(),
|
|
2200
2246
|
sourceType: DataSourceRemoteType,
|
|
2201
|
-
importContextCleanedUp:
|
|
2247
|
+
importContextCleanedUp: z84.boolean()
|
|
2202
2248
|
});
|
|
2203
2249
|
|
|
2204
2250
|
// src/dsm/import/support/import-context.ts
|
|
2205
|
-
var ImportFunctionInput =
|
|
2206
|
-
importJobId:
|
|
2207
|
-
importContextId:
|
|
2208
|
-
designSystemId:
|
|
2251
|
+
var ImportFunctionInput = z85.object({
|
|
2252
|
+
importJobId: z85.string(),
|
|
2253
|
+
importContextId: z85.string(),
|
|
2254
|
+
designSystemId: z85.string().optional()
|
|
2209
2255
|
});
|
|
2210
|
-
var ImportedFigmaSourceData =
|
|
2211
|
-
sourceId:
|
|
2256
|
+
var ImportedFigmaSourceData = z85.object({
|
|
2257
|
+
sourceId: z85.string(),
|
|
2212
2258
|
figmaRemote: DataSourceFigmaRemote
|
|
2213
2259
|
});
|
|
2214
|
-
var FigmaImportBaseContext =
|
|
2215
|
-
designSystemId:
|
|
2260
|
+
var FigmaImportBaseContext = z85.object({
|
|
2261
|
+
designSystemId: z85.string(),
|
|
2216
2262
|
/**
|
|
2217
2263
|
* Data required for accessing Figma files. This should contain access data for all file ids
|
|
2218
2264
|
* mentioned in the `importedSourceDataBySourceId`
|
|
2219
2265
|
*
|
|
2220
2266
|
* fileId: file data
|
|
2221
2267
|
*/
|
|
2222
|
-
fileAccessByFileId:
|
|
2268
|
+
fileAccessByFileId: z85.record(FigmaFileAccessData),
|
|
2223
2269
|
/**
|
|
2224
2270
|
* Figma source data for which import was requested
|
|
2225
2271
|
*
|
|
2226
2272
|
* sourceId: source data
|
|
2227
2273
|
*/
|
|
2228
|
-
importedSourceDataBySourceId:
|
|
2274
|
+
importedSourceDataBySourceId: z85.record(ImportedFigmaSourceData),
|
|
2229
2275
|
/**
|
|
2230
2276
|
* Array of warnings that will be written into the import result summary at the end
|
|
2231
2277
|
* of import job execution and displayed by the client.
|
|
2232
2278
|
*/
|
|
2233
|
-
importWarnings:
|
|
2279
|
+
importWarnings: z85.record(ImportWarning.array()).default({})
|
|
2234
2280
|
});
|
|
2235
2281
|
var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
|
|
2236
|
-
sourcesWithMissingAccess:
|
|
2237
|
-
shadowOpacityOptional:
|
|
2282
|
+
sourcesWithMissingAccess: z85.array(z85.string()).default([]),
|
|
2283
|
+
shadowOpacityOptional: z85.boolean().default(false)
|
|
2238
2284
|
});
|
|
2239
2285
|
var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
|
|
2240
2286
|
importMetadata: DataSourceFigmaImportMetadata
|
|
@@ -2246,51 +2292,51 @@ var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.ex
|
|
|
2246
2292
|
*
|
|
2247
2293
|
* File id -> file download scope
|
|
2248
2294
|
*/
|
|
2249
|
-
fileDownloadScopesByFileId:
|
|
2295
|
+
fileDownloadScopesByFileId: z85.record(FigmaFileDownloadScope),
|
|
2250
2296
|
/**
|
|
2251
2297
|
* Sources filtered down to the ones that have changed since last import and therefore need to be
|
|
2252
2298
|
* imported again.
|
|
2253
2299
|
*
|
|
2254
2300
|
* Source id -> import metadata
|
|
2255
2301
|
*/
|
|
2256
|
-
changedImportedSourceDataBySourceId:
|
|
2302
|
+
changedImportedSourceDataBySourceId: z85.record(ChangedImportedFigmaSourceData)
|
|
2257
2303
|
});
|
|
2258
2304
|
|
|
2259
2305
|
// src/dsm/import/support/import-model-collections.ts
|
|
2260
|
-
import { z as
|
|
2306
|
+
import { z as z93 } from "zod";
|
|
2261
2307
|
|
|
2262
2308
|
// src/dsm/import/image.ts
|
|
2263
|
-
import { z as
|
|
2264
|
-
var ImageImportModelType =
|
|
2265
|
-
var ImageImportModelBase =
|
|
2309
|
+
import { z as z86 } from "zod";
|
|
2310
|
+
var ImageImportModelType = z86.enum(["Url", "FigmaRender"]);
|
|
2311
|
+
var ImageImportModelBase = z86.object({
|
|
2266
2312
|
scope: AssetScope
|
|
2267
2313
|
});
|
|
2268
2314
|
var UrlImageImportModel = ImageImportModelBase.extend({
|
|
2269
|
-
type:
|
|
2270
|
-
url:
|
|
2271
|
-
originKey:
|
|
2272
|
-
extension:
|
|
2315
|
+
type: z86.literal(ImageImportModelType.enum.Url),
|
|
2316
|
+
url: z86.string(),
|
|
2317
|
+
originKey: z86.string(),
|
|
2318
|
+
extension: z86.string()
|
|
2273
2319
|
});
|
|
2274
|
-
var FigmaRenderFormat =
|
|
2320
|
+
var FigmaRenderFormat = z86.enum(["Svg", "Png", "Pdf"]);
|
|
2275
2321
|
var FigmaRenderBase = ImageImportModelBase.extend({
|
|
2276
|
-
type:
|
|
2277
|
-
fileId:
|
|
2278
|
-
fileVersionId:
|
|
2279
|
-
nodeId:
|
|
2280
|
-
originKey:
|
|
2322
|
+
type: z86.literal(ImageImportModelType.enum.FigmaRender),
|
|
2323
|
+
fileId: z86.string(),
|
|
2324
|
+
fileVersionId: z86.string().optional(),
|
|
2325
|
+
nodeId: z86.string(),
|
|
2326
|
+
originKey: z86.string()
|
|
2281
2327
|
});
|
|
2282
2328
|
var FigmaPngRenderImportModel = FigmaRenderBase.extend({
|
|
2283
|
-
format:
|
|
2284
|
-
scale:
|
|
2329
|
+
format: z86.literal(FigmaRenderFormat.enum.Png),
|
|
2330
|
+
scale: z86.number()
|
|
2285
2331
|
});
|
|
2286
2332
|
var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
|
|
2287
|
-
format:
|
|
2333
|
+
format: z86.literal(FigmaRenderFormat.enum.Svg)
|
|
2288
2334
|
});
|
|
2289
|
-
var FigmaRenderImportModel =
|
|
2335
|
+
var FigmaRenderImportModel = z86.discriminatedUnion("format", [
|
|
2290
2336
|
FigmaPngRenderImportModel,
|
|
2291
2337
|
FigmaSvgRenderImportModel
|
|
2292
2338
|
]);
|
|
2293
|
-
var ImageImportModel =
|
|
2339
|
+
var ImageImportModel = z86.union([UrlImageImportModel, FigmaRenderImportModel]);
|
|
2294
2340
|
function getFigmaRenderFormatFileExtension(format) {
|
|
2295
2341
|
switch (format) {
|
|
2296
2342
|
case "Pdf":
|
|
@@ -2303,32 +2349,32 @@ function getFigmaRenderFormatFileExtension(format) {
|
|
|
2303
2349
|
}
|
|
2304
2350
|
|
|
2305
2351
|
// src/dsm/import/component.ts
|
|
2306
|
-
import { z as
|
|
2352
|
+
import { z as z88 } from "zod";
|
|
2307
2353
|
|
|
2308
2354
|
// src/dsm/import/base.ts
|
|
2309
|
-
import { z as
|
|
2310
|
-
var ImportModelBase =
|
|
2311
|
-
id:
|
|
2355
|
+
import { z as z87 } from "zod";
|
|
2356
|
+
var ImportModelBase = z87.object({
|
|
2357
|
+
id: z87.string(),
|
|
2312
2358
|
meta: ObjectMeta,
|
|
2313
2359
|
origin: DesignElementOrigin,
|
|
2314
|
-
brandPersistentId:
|
|
2315
|
-
sortOrder:
|
|
2360
|
+
brandPersistentId: z87.string(),
|
|
2361
|
+
sortOrder: z87.number()
|
|
2316
2362
|
});
|
|
2317
2363
|
var ImportModelInputBase = ImportModelBase.omit({
|
|
2318
2364
|
brandPersistentId: true,
|
|
2319
2365
|
origin: true,
|
|
2320
2366
|
sortOrder: true
|
|
2321
2367
|
}).extend({
|
|
2322
|
-
originId:
|
|
2323
|
-
originMetadata:
|
|
2368
|
+
originId: z87.string(),
|
|
2369
|
+
originMetadata: z87.record(z87.any())
|
|
2324
2370
|
});
|
|
2325
2371
|
|
|
2326
2372
|
// src/dsm/import/component.ts
|
|
2327
|
-
var ComponentImportModelPart =
|
|
2373
|
+
var ComponentImportModelPart = z88.object({
|
|
2328
2374
|
thumbnail: ImageImportModel
|
|
2329
2375
|
});
|
|
2330
2376
|
var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
|
|
2331
|
-
isAsset:
|
|
2377
|
+
isAsset: z88.boolean(),
|
|
2332
2378
|
svg: FigmaSvgRenderImportModel.optional(),
|
|
2333
2379
|
origin: ComponentOrigin
|
|
2334
2380
|
});
|
|
@@ -2341,50 +2387,50 @@ var AssetImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart
|
|
|
2341
2387
|
});
|
|
2342
2388
|
|
|
2343
2389
|
// src/dsm/import/theme.ts
|
|
2344
|
-
import { z as
|
|
2390
|
+
import { z as z89 } from "zod";
|
|
2345
2391
|
var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
|
|
2346
|
-
|
|
2347
|
-
id:
|
|
2392
|
+
z89.object({
|
|
2393
|
+
id: z89.string(),
|
|
2348
2394
|
meta: ObjectMeta
|
|
2349
2395
|
})
|
|
2350
2396
|
);
|
|
2351
2397
|
var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
|
|
2352
|
-
|
|
2398
|
+
z89.object({
|
|
2353
2399
|
origin: ThemeOverrideOrigin
|
|
2354
2400
|
})
|
|
2355
2401
|
);
|
|
2356
2402
|
var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
|
|
2357
|
-
|
|
2358
|
-
originId:
|
|
2403
|
+
z89.object({
|
|
2404
|
+
originId: z89.string(),
|
|
2359
2405
|
originMetadata: ThemeOverrideOriginPart
|
|
2360
2406
|
})
|
|
2361
2407
|
);
|
|
2362
|
-
var ThemeImportModel =
|
|
2408
|
+
var ThemeImportModel = z89.object({
|
|
2363
2409
|
meta: ObjectMeta,
|
|
2364
|
-
brandPersistentId:
|
|
2410
|
+
brandPersistentId: z89.string(),
|
|
2365
2411
|
originSource: ThemeOriginSource,
|
|
2366
|
-
overrides:
|
|
2367
|
-
sortOrder:
|
|
2412
|
+
overrides: z89.array(ThemeOverrideImportModel),
|
|
2413
|
+
sortOrder: z89.number()
|
|
2368
2414
|
});
|
|
2369
|
-
var ThemeImportModelInput =
|
|
2415
|
+
var ThemeImportModelInput = z89.object({
|
|
2370
2416
|
meta: ObjectMeta,
|
|
2371
|
-
originObjects:
|
|
2372
|
-
overrides:
|
|
2417
|
+
originObjects: z89.array(ThemeOriginObject),
|
|
2418
|
+
overrides: z89.array(ThemeOverrideImportModelInput)
|
|
2373
2419
|
});
|
|
2374
|
-
var ThemeUpdateImportModel =
|
|
2375
|
-
themePersistentId:
|
|
2376
|
-
overrides:
|
|
2420
|
+
var ThemeUpdateImportModel = z89.object({
|
|
2421
|
+
themePersistentId: z89.string(),
|
|
2422
|
+
overrides: z89.array(ThemeOverrideImportModel)
|
|
2377
2423
|
});
|
|
2378
|
-
var ThemeUpdateImportModelInput =
|
|
2379
|
-
themePersistentId:
|
|
2380
|
-
overrides:
|
|
2424
|
+
var ThemeUpdateImportModelInput = z89.object({
|
|
2425
|
+
themePersistentId: z89.string(),
|
|
2426
|
+
overrides: z89.array(ThemeOverrideImportModelInput)
|
|
2381
2427
|
});
|
|
2382
2428
|
|
|
2383
2429
|
// src/dsm/import/tokens.ts
|
|
2384
|
-
import { z as
|
|
2385
|
-
var DesignTokenImportModelPart =
|
|
2386
|
-
collection:
|
|
2387
|
-
codeSyntax:
|
|
2430
|
+
import { z as z90 } from "zod";
|
|
2431
|
+
var DesignTokenImportModelPart = z90.object({
|
|
2432
|
+
collection: z90.string().optional(),
|
|
2433
|
+
codeSyntax: z90.record(z90.coerce.string()).optional()
|
|
2388
2434
|
});
|
|
2389
2435
|
var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
2390
2436
|
origin: DesignTokenOrigin
|
|
@@ -2402,15 +2448,15 @@ function designTokenImportModelTypeFilter(type) {
|
|
|
2402
2448
|
}
|
|
2403
2449
|
|
|
2404
2450
|
// src/dsm/import/figma-frames.ts
|
|
2405
|
-
import { z as
|
|
2451
|
+
import { z as z91 } from "zod";
|
|
2406
2452
|
var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
|
|
2407
2453
|
image: FigmaPngRenderImportModel
|
|
2408
2454
|
});
|
|
2409
2455
|
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
|
|
2410
|
-
children:
|
|
2456
|
+
children: z91.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
2411
2457
|
});
|
|
2412
|
-
var FigmaFileStructureImportModelPart =
|
|
2413
|
-
data:
|
|
2458
|
+
var FigmaFileStructureImportModelPart = z91.object({
|
|
2459
|
+
data: z91.object({
|
|
2414
2460
|
rootNode: FigmaFileStructureNodeImportModel,
|
|
2415
2461
|
assetsInFile: FigmaFileStructureStatistics
|
|
2416
2462
|
})
|
|
@@ -2421,7 +2467,7 @@ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImp
|
|
|
2421
2467
|
var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
|
|
2422
2468
|
FigmaFileStructureImportModelPart.shape
|
|
2423
2469
|
).extend({
|
|
2424
|
-
fileVersionId:
|
|
2470
|
+
fileVersionId: z91.string()
|
|
2425
2471
|
});
|
|
2426
2472
|
function figmaFileStructureImportModelToMap(root) {
|
|
2427
2473
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -2435,30 +2481,30 @@ function recursiveFigmaFileStructureToMap2(node, map) {
|
|
|
2435
2481
|
}
|
|
2436
2482
|
|
|
2437
2483
|
// src/dsm/import/data-source.ts
|
|
2438
|
-
import { z as
|
|
2439
|
-
var DataSourceImportModel =
|
|
2440
|
-
id:
|
|
2441
|
-
fileName:
|
|
2442
|
-
thumbnailUrl:
|
|
2484
|
+
import { z as z92 } from "zod";
|
|
2485
|
+
var DataSourceImportModel = z92.object({
|
|
2486
|
+
id: z92.string(),
|
|
2487
|
+
fileName: z92.string().optional(),
|
|
2488
|
+
thumbnailUrl: z92.string().optional()
|
|
2443
2489
|
});
|
|
2444
2490
|
|
|
2445
2491
|
// src/dsm/import/support/import-model-collections.ts
|
|
2446
|
-
var ImportModelInputCollection =
|
|
2492
|
+
var ImportModelInputCollection = z93.object({
|
|
2447
2493
|
source: DataSourceImportModel,
|
|
2448
|
-
tokens:
|
|
2449
|
-
components:
|
|
2450
|
-
assets:
|
|
2451
|
-
themeUpdates:
|
|
2452
|
-
themes:
|
|
2494
|
+
tokens: z93.array(DesignTokenImportModelInput).default([]),
|
|
2495
|
+
components: z93.array(ComponentImportModelInput).default([]),
|
|
2496
|
+
assets: z93.array(AssetImportModelInput).default([]),
|
|
2497
|
+
themeUpdates: z93.array(ThemeUpdateImportModelInput).default([]),
|
|
2498
|
+
themes: z93.array(ThemeImportModelInput).default([]),
|
|
2453
2499
|
figmaFileStructure: FigmaFileStructureImportModelInput.optional()
|
|
2454
2500
|
});
|
|
2455
|
-
var ImportModelCollection =
|
|
2456
|
-
sources:
|
|
2457
|
-
tokens:
|
|
2458
|
-
components:
|
|
2459
|
-
themeUpdates:
|
|
2460
|
-
themes:
|
|
2461
|
-
figmaFileStructures:
|
|
2501
|
+
var ImportModelCollection = z93.object({
|
|
2502
|
+
sources: z93.array(DataSourceImportModel),
|
|
2503
|
+
tokens: z93.array(DesignTokenImportModel).default([]),
|
|
2504
|
+
components: z93.array(ComponentImportModel).default([]),
|
|
2505
|
+
themeUpdates: z93.array(ThemeUpdateImportModel).default([]),
|
|
2506
|
+
themes: z93.array(ThemeImportModel).default([]),
|
|
2507
|
+
figmaFileStructures: z93.array(FigmaFileStructureImportModel)
|
|
2462
2508
|
});
|
|
2463
2509
|
function addImportModelCollections(lhs, rhs) {
|
|
2464
2510
|
return {
|
|
@@ -2472,64 +2518,64 @@ function addImportModelCollections(lhs, rhs) {
|
|
|
2472
2518
|
}
|
|
2473
2519
|
|
|
2474
2520
|
// src/dsm/components/asset-rendering.ts
|
|
2475
|
-
var AssetRenderConfiguration =
|
|
2476
|
-
prefix:
|
|
2477
|
-
suffix:
|
|
2478
|
-
scale:
|
|
2521
|
+
var AssetRenderConfiguration = z94.object({
|
|
2522
|
+
prefix: z94.string().optional(),
|
|
2523
|
+
suffix: z94.string().optional(),
|
|
2524
|
+
scale: z94.number(),
|
|
2479
2525
|
format: FigmaRenderFormat
|
|
2480
2526
|
});
|
|
2481
|
-
var RenderedAssetFile =
|
|
2482
|
-
assetPersistentId:
|
|
2483
|
-
assetName:
|
|
2484
|
-
renderedImageFileName:
|
|
2485
|
-
renderedImageUrl:
|
|
2527
|
+
var RenderedAssetFile = z94.object({
|
|
2528
|
+
assetPersistentId: z94.string(),
|
|
2529
|
+
assetName: z94.string(),
|
|
2530
|
+
renderedImageFileName: z94.string(),
|
|
2531
|
+
renderedImageUrl: z94.string(),
|
|
2486
2532
|
settings: AssetRenderConfiguration
|
|
2487
2533
|
});
|
|
2488
2534
|
|
|
2489
2535
|
// src/dsm/documentation/block-definitions/aux.ts
|
|
2490
|
-
import { z as
|
|
2491
|
-
var PageBlockDefinitionAppearance =
|
|
2492
|
-
isBordered:
|
|
2493
|
-
hasBackground:
|
|
2494
|
-
isEditorPresentationDifferent:
|
|
2495
|
-
showBlockHeaderInEditor:
|
|
2536
|
+
import { z as z95 } from "zod";
|
|
2537
|
+
var PageBlockDefinitionAppearance = z95.object({
|
|
2538
|
+
isBordered: z95.boolean().optional(),
|
|
2539
|
+
hasBackground: z95.boolean().optional(),
|
|
2540
|
+
isEditorPresentationDifferent: z95.boolean().optional(),
|
|
2541
|
+
showBlockHeaderInEditor: z95.boolean().optional()
|
|
2496
2542
|
});
|
|
2497
2543
|
|
|
2498
2544
|
// src/dsm/documentation/block-definitions/definition.ts
|
|
2499
|
-
import { z as
|
|
2545
|
+
import { z as z98 } from "zod";
|
|
2500
2546
|
|
|
2501
2547
|
// src/dsm/documentation/block-definitions/item.ts
|
|
2502
|
-
import { z as
|
|
2548
|
+
import { z as z97 } from "zod";
|
|
2503
2549
|
|
|
2504
2550
|
// src/dsm/documentation/block-definitions/variant.ts
|
|
2505
|
-
import { z as
|
|
2506
|
-
var PageBlockDefinitionLayoutType =
|
|
2507
|
-
var PageBlockDefinitionLayoutGap =
|
|
2508
|
-
var PageBlockDefinitionLayoutAlign =
|
|
2509
|
-
var PageBlockDefinitionLayoutResizing =
|
|
2510
|
-
var PageBlockDefinitionLayoutBase =
|
|
2551
|
+
import { z as z96 } from "zod";
|
|
2552
|
+
var PageBlockDefinitionLayoutType = z96.enum(["Column", "Row"]);
|
|
2553
|
+
var PageBlockDefinitionLayoutGap = z96.enum(["Small", "Medium", "Large", "None"]);
|
|
2554
|
+
var PageBlockDefinitionLayoutAlign = z96.enum(["Start", "Center", "End"]);
|
|
2555
|
+
var PageBlockDefinitionLayoutResizing = z96.enum(["Fill", "Hug"]);
|
|
2556
|
+
var PageBlockDefinitionLayoutBase = z96.object({
|
|
2511
2557
|
type: PageBlockDefinitionLayoutType,
|
|
2512
2558
|
gap: PageBlockDefinitionLayoutGap.optional(),
|
|
2513
2559
|
columnAlign: PageBlockDefinitionLayoutAlign.optional(),
|
|
2514
2560
|
columnResizing: PageBlockDefinitionLayoutResizing.optional()
|
|
2515
2561
|
});
|
|
2516
2562
|
var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
|
|
2517
|
-
children:
|
|
2518
|
-
});
|
|
2519
|
-
var PageBlockDefinitionVariant =
|
|
2520
|
-
id:
|
|
2521
|
-
name:
|
|
2522
|
-
image:
|
|
2523
|
-
description:
|
|
2524
|
-
documentationLink:
|
|
2563
|
+
children: z96.lazy(() => z96.array(PageBlockDefinitionLayout.or(z96.string())))
|
|
2564
|
+
});
|
|
2565
|
+
var PageBlockDefinitionVariant = z96.object({
|
|
2566
|
+
id: z96.string(),
|
|
2567
|
+
name: z96.string(),
|
|
2568
|
+
image: z96.string().optional(),
|
|
2569
|
+
description: z96.string().optional(),
|
|
2570
|
+
documentationLink: z96.string().optional(),
|
|
2525
2571
|
layout: PageBlockDefinitionLayout,
|
|
2526
|
-
maxColumns:
|
|
2527
|
-
defaultColumns:
|
|
2572
|
+
maxColumns: z96.number().optional(),
|
|
2573
|
+
defaultColumns: z96.number().optional(),
|
|
2528
2574
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
2529
2575
|
});
|
|
2530
2576
|
|
|
2531
2577
|
// src/dsm/documentation/block-definitions/item.ts
|
|
2532
|
-
var PageBlockDefinitionPropertyType =
|
|
2578
|
+
var PageBlockDefinitionPropertyType = z97.enum([
|
|
2533
2579
|
"RichText",
|
|
2534
2580
|
"MultiRichText",
|
|
2535
2581
|
"Text",
|
|
@@ -2557,7 +2603,7 @@ var PageBlockDefinitionPropertyType = z96.enum([
|
|
|
2557
2603
|
"Color",
|
|
2558
2604
|
"FigmaComponent"
|
|
2559
2605
|
]);
|
|
2560
|
-
var PageBlockDefinitionRichTextPropertyStyle =
|
|
2606
|
+
var PageBlockDefinitionRichTextPropertyStyle = z97.enum([
|
|
2561
2607
|
"Title1",
|
|
2562
2608
|
"Title2",
|
|
2563
2609
|
"Title3",
|
|
@@ -2567,8 +2613,8 @@ var PageBlockDefinitionRichTextPropertyStyle = z96.enum([
|
|
|
2567
2613
|
"Callout",
|
|
2568
2614
|
"Default"
|
|
2569
2615
|
]);
|
|
2570
|
-
var PageBlockDefinitionMultiRichTextPropertyStyle =
|
|
2571
|
-
var PageBlockDefinitionTextPropertyStyle =
|
|
2616
|
+
var PageBlockDefinitionMultiRichTextPropertyStyle = z97.enum(["OL", "UL", "Default"]);
|
|
2617
|
+
var PageBlockDefinitionTextPropertyStyle = z97.enum([
|
|
2572
2618
|
"Title1",
|
|
2573
2619
|
"Title2",
|
|
2574
2620
|
"Title3",
|
|
@@ -2582,15 +2628,15 @@ var PageBlockDefinitionTextPropertyStyle = z96.enum([
|
|
|
2582
2628
|
"SmallSemibold",
|
|
2583
2629
|
"Custom"
|
|
2584
2630
|
]);
|
|
2585
|
-
var PageBlockDefinitionTextPropertyColor =
|
|
2586
|
-
var PageBlockDefinitionBooleanPropertyStyle =
|
|
2587
|
-
var PageBlockDefinitionSingleSelectPropertyStyle =
|
|
2631
|
+
var PageBlockDefinitionTextPropertyColor = z97.enum(["Neutral", "NeutralFaded"]);
|
|
2632
|
+
var PageBlockDefinitionBooleanPropertyStyle = z97.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
|
|
2633
|
+
var PageBlockDefinitionSingleSelectPropertyStyle = z97.enum([
|
|
2588
2634
|
"SegmentedControl",
|
|
2589
2635
|
"ToggleButton",
|
|
2590
2636
|
"Select",
|
|
2591
2637
|
"Checkbox"
|
|
2592
2638
|
]);
|
|
2593
|
-
var PageBlockDefinitionSingleSelectPropertyColor =
|
|
2639
|
+
var PageBlockDefinitionSingleSelectPropertyColor = z97.enum([
|
|
2594
2640
|
"Green",
|
|
2595
2641
|
"Red",
|
|
2596
2642
|
"Yellow",
|
|
@@ -2605,78 +2651,78 @@ var PageBlockDefinitionSingleSelectPropertyColor = z96.enum([
|
|
|
2605
2651
|
"Cyan",
|
|
2606
2652
|
"Fuchsia"
|
|
2607
2653
|
]);
|
|
2608
|
-
var IconSet =
|
|
2654
|
+
var IconSet = z97.enum([
|
|
2609
2655
|
"CheckCircle",
|
|
2610
2656
|
"CrossCircle",
|
|
2611
2657
|
"Alert"
|
|
2612
2658
|
]);
|
|
2613
|
-
var PageBlockDefinitionMultiSelectPropertyStyle =
|
|
2614
|
-
var PageBlockDefinitionImageAspectRatio =
|
|
2615
|
-
var PageBlockDefinitionImageWidth =
|
|
2616
|
-
var PageBlockDefinitionSelectChoice =
|
|
2617
|
-
value:
|
|
2618
|
-
name:
|
|
2659
|
+
var PageBlockDefinitionMultiSelectPropertyStyle = z97.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
2660
|
+
var PageBlockDefinitionImageAspectRatio = z97.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
|
|
2661
|
+
var PageBlockDefinitionImageWidth = z97.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
|
|
2662
|
+
var PageBlockDefinitionSelectChoice = z97.object({
|
|
2663
|
+
value: z97.string(),
|
|
2664
|
+
name: z97.string(),
|
|
2619
2665
|
icon: IconSet.optional(),
|
|
2620
|
-
customIconUrl:
|
|
2666
|
+
customIconUrl: z97.string().optional(),
|
|
2621
2667
|
color: PageBlockDefinitionSingleSelectPropertyColor.optional()
|
|
2622
2668
|
});
|
|
2623
|
-
var PageBlockDefinitionUntypedPropertyOptions =
|
|
2624
|
-
var PageBlockDefinitionRichTextOptions =
|
|
2669
|
+
var PageBlockDefinitionUntypedPropertyOptions = z97.record(z97.any());
|
|
2670
|
+
var PageBlockDefinitionRichTextOptions = z97.object({
|
|
2625
2671
|
richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
|
|
2626
2672
|
});
|
|
2627
|
-
var PageBlockDefinitionMutiRichTextOptions =
|
|
2673
|
+
var PageBlockDefinitionMutiRichTextOptions = z97.object({
|
|
2628
2674
|
multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
|
|
2629
2675
|
});
|
|
2630
|
-
var PageBlockDefinitionTextOptions =
|
|
2631
|
-
placeholder:
|
|
2632
|
-
defaultValue:
|
|
2676
|
+
var PageBlockDefinitionTextOptions = z97.object({
|
|
2677
|
+
placeholder: z97.string().optional(),
|
|
2678
|
+
defaultValue: z97.string().optional(),
|
|
2633
2679
|
textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
|
|
2634
2680
|
color: PageBlockDefinitionTextPropertyColor.optional(),
|
|
2635
|
-
allowLineBreaks:
|
|
2681
|
+
allowLineBreaks: z97.boolean().optional()
|
|
2636
2682
|
});
|
|
2637
|
-
var PageBlockDefinitionSelectOptions =
|
|
2683
|
+
var PageBlockDefinitionSelectOptions = z97.object({
|
|
2638
2684
|
singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
|
|
2639
|
-
defaultChoice:
|
|
2640
|
-
choices:
|
|
2685
|
+
defaultChoice: z97.string(),
|
|
2686
|
+
choices: z97.array(PageBlockDefinitionSelectChoice)
|
|
2641
2687
|
});
|
|
2642
|
-
var PageBlockDefinitionImageOptions =
|
|
2688
|
+
var PageBlockDefinitionImageOptions = z97.object({
|
|
2643
2689
|
width: PageBlockDefinitionImageWidth.optional(),
|
|
2644
2690
|
aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
|
|
2645
|
-
allowCaption:
|
|
2646
|
-
recommendation:
|
|
2691
|
+
allowCaption: z97.boolean().optional(),
|
|
2692
|
+
recommendation: z97.string().optional()
|
|
2647
2693
|
});
|
|
2648
|
-
var PageBlockDefinitionBooleanOptions =
|
|
2649
|
-
defaultvalue:
|
|
2694
|
+
var PageBlockDefinitionBooleanOptions = z97.object({
|
|
2695
|
+
defaultvalue: z97.boolean().optional(),
|
|
2650
2696
|
booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
|
|
2651
2697
|
});
|
|
2652
|
-
var PageBlockDefinitionNumberOptions =
|
|
2653
|
-
defaultValue:
|
|
2654
|
-
min:
|
|
2655
|
-
max:
|
|
2656
|
-
step:
|
|
2657
|
-
placeholder:
|
|
2698
|
+
var PageBlockDefinitionNumberOptions = z97.object({
|
|
2699
|
+
defaultValue: z97.number(),
|
|
2700
|
+
min: z97.number().optional(),
|
|
2701
|
+
max: z97.number().optional(),
|
|
2702
|
+
step: z97.number().optional(),
|
|
2703
|
+
placeholder: z97.string().optional()
|
|
2658
2704
|
});
|
|
2659
|
-
var PageBlockDefinitionComponentOptions =
|
|
2660
|
-
renderLayoutAs:
|
|
2661
|
-
allowPropertySelection:
|
|
2705
|
+
var PageBlockDefinitionComponentOptions = z97.object({
|
|
2706
|
+
renderLayoutAs: z97.enum(["List", "Table"]).optional(),
|
|
2707
|
+
allowPropertySelection: z97.boolean().optional()
|
|
2662
2708
|
});
|
|
2663
|
-
var PageBlockDefinitionProperty =
|
|
2664
|
-
id:
|
|
2665
|
-
name:
|
|
2709
|
+
var PageBlockDefinitionProperty = z97.object({
|
|
2710
|
+
id: z97.string(),
|
|
2711
|
+
name: z97.string(),
|
|
2666
2712
|
type: PageBlockDefinitionPropertyType,
|
|
2667
|
-
description:
|
|
2713
|
+
description: z97.string().optional(),
|
|
2668
2714
|
options: PageBlockDefinitionUntypedPropertyOptions.optional(),
|
|
2669
|
-
variantOptions:
|
|
2715
|
+
variantOptions: z97.record(PageBlockDefinitionUntypedPropertyOptions).optional()
|
|
2670
2716
|
});
|
|
2671
|
-
var PageBlockDefinitionItem =
|
|
2672
|
-
properties:
|
|
2717
|
+
var PageBlockDefinitionItem = z97.object({
|
|
2718
|
+
properties: z97.array(PageBlockDefinitionProperty),
|
|
2673
2719
|
appearance: PageBlockDefinitionAppearance.optional(),
|
|
2674
|
-
variants:
|
|
2675
|
-
defaultVariantKey:
|
|
2720
|
+
variants: z97.array(PageBlockDefinitionVariant),
|
|
2721
|
+
defaultVariantKey: z97.string()
|
|
2676
2722
|
});
|
|
2677
2723
|
|
|
2678
2724
|
// src/dsm/documentation/block-definitions/definition.ts
|
|
2679
|
-
var PageBlockCategory =
|
|
2725
|
+
var PageBlockCategory = z98.enum([
|
|
2680
2726
|
"Text",
|
|
2681
2727
|
"Layout",
|
|
2682
2728
|
"Media",
|
|
@@ -2690,927 +2736,226 @@ var PageBlockCategory = z97.enum([
|
|
|
2690
2736
|
"Data",
|
|
2691
2737
|
"Other"
|
|
2692
2738
|
]);
|
|
2693
|
-
var PageBlockBehaviorDataType =
|
|
2694
|
-
var PageBlockBehaviorSelectionType =
|
|
2695
|
-
var PageBlockDefinitionBehavior =
|
|
2739
|
+
var PageBlockBehaviorDataType = z98.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
|
|
2740
|
+
var PageBlockBehaviorSelectionType = z98.enum(["Entity", "Group", "EntityAndGroup"]);
|
|
2741
|
+
var PageBlockDefinitionBehavior = z98.object({
|
|
2696
2742
|
dataType: PageBlockBehaviorDataType,
|
|
2697
|
-
items:
|
|
2698
|
-
numberOfItems:
|
|
2699
|
-
allowLinks:
|
|
2700
|
-
newItemLabel:
|
|
2743
|
+
items: z98.object({
|
|
2744
|
+
numberOfItems: z98.number(),
|
|
2745
|
+
allowLinks: z98.boolean(),
|
|
2746
|
+
newItemLabel: z98.string().optional()
|
|
2701
2747
|
}).optional(),
|
|
2702
|
-
entities:
|
|
2748
|
+
entities: z98.object({
|
|
2703
2749
|
selectionType: PageBlockBehaviorSelectionType,
|
|
2704
|
-
maxSelected:
|
|
2750
|
+
maxSelected: z98.number()
|
|
2705
2751
|
}).optional()
|
|
2706
2752
|
});
|
|
2707
|
-
var PageBlockDefinitionOnboarding =
|
|
2708
|
-
helpText:
|
|
2709
|
-
documentationLink:
|
|
2753
|
+
var PageBlockDefinitionOnboarding = z98.object({
|
|
2754
|
+
helpText: z98.string(),
|
|
2755
|
+
documentationLink: z98.string().optional()
|
|
2710
2756
|
});
|
|
2711
|
-
var PageBlockDefinition =
|
|
2712
|
-
id:
|
|
2713
|
-
name:
|
|
2714
|
-
description:
|
|
2757
|
+
var PageBlockDefinition = z98.object({
|
|
2758
|
+
id: z98.string(),
|
|
2759
|
+
name: z98.string(),
|
|
2760
|
+
description: z98.string(),
|
|
2715
2761
|
category: PageBlockCategory,
|
|
2716
|
-
icon:
|
|
2717
|
-
documentationLink:
|
|
2718
|
-
searchKeywords:
|
|
2762
|
+
icon: z98.string().optional(),
|
|
2763
|
+
documentationLink: z98.string().optional(),
|
|
2764
|
+
searchKeywords: z98.array(z98.string()).optional(),
|
|
2719
2765
|
item: PageBlockDefinitionItem,
|
|
2720
2766
|
behavior: PageBlockDefinitionBehavior,
|
|
2721
|
-
editorOptions:
|
|
2767
|
+
editorOptions: z98.object({
|
|
2722
2768
|
onboarding: PageBlockDefinitionOnboarding.optional(),
|
|
2723
|
-
newItemLabel:
|
|
2769
|
+
newItemLabel: z98.string().optional()
|
|
2724
2770
|
}),
|
|
2725
2771
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
2726
2772
|
});
|
|
2727
2773
|
|
|
2728
2774
|
// src/dsm/documentation/group.ts
|
|
2729
|
-
import { z as
|
|
2730
|
-
var DocumentationPageGroup =
|
|
2731
|
-
type:
|
|
2732
|
-
childType:
|
|
2733
|
-
id:
|
|
2734
|
-
persistentId:
|
|
2735
|
-
shortPersistentId:
|
|
2736
|
-
designSystemVersionId:
|
|
2737
|
-
parentPersistentId:
|
|
2738
|
-
sortOrder:
|
|
2739
|
-
title:
|
|
2740
|
-
slug:
|
|
2741
|
-
userSlug:
|
|
2742
|
-
createdAt:
|
|
2743
|
-
updatedAt:
|
|
2775
|
+
import { z as z99 } from "zod";
|
|
2776
|
+
var DocumentationPageGroup = z99.object({
|
|
2777
|
+
type: z99.literal("ElementGroup"),
|
|
2778
|
+
childType: z99.literal("DocumentationPage"),
|
|
2779
|
+
id: z99.string(),
|
|
2780
|
+
persistentId: z99.string(),
|
|
2781
|
+
shortPersistentId: z99.string(),
|
|
2782
|
+
designSystemVersionId: z99.string(),
|
|
2783
|
+
parentPersistentId: z99.string().nullish(),
|
|
2784
|
+
sortOrder: z99.number(),
|
|
2785
|
+
title: z99.string(),
|
|
2786
|
+
slug: z99.string(),
|
|
2787
|
+
userSlug: z99.string().nullish(),
|
|
2788
|
+
createdAt: z99.coerce.date(),
|
|
2789
|
+
updatedAt: z99.coerce.date()
|
|
2744
2790
|
});
|
|
2745
2791
|
|
|
2746
2792
|
// src/dsm/documentation/link-preview.ts
|
|
2747
|
-
import { z as
|
|
2748
|
-
var DocumentationLinkPreview =
|
|
2749
|
-
title:
|
|
2750
|
-
description:
|
|
2793
|
+
import { z as z100 } from "zod";
|
|
2794
|
+
var DocumentationLinkPreview = z100.object({
|
|
2795
|
+
title: z100.string().optional(),
|
|
2796
|
+
description: z100.string().optional(),
|
|
2751
2797
|
thumbnail: PageBlockImageReference.optional()
|
|
2752
2798
|
});
|
|
2753
2799
|
|
|
2754
2800
|
// src/dsm/documentation/page-anchor.ts
|
|
2755
|
-
import { z as z100 } from "zod";
|
|
2756
|
-
var DocumentationPageAnchor = z100.object({
|
|
2757
|
-
blockId: z100.string(),
|
|
2758
|
-
level: z100.number(),
|
|
2759
|
-
text: z100.string()
|
|
2760
|
-
});
|
|
2761
|
-
|
|
2762
|
-
// src/dsm/documentation/page-content-backup.ts
|
|
2763
2801
|
import { z as z101 } from "zod";
|
|
2764
|
-
var
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
updatedAt: z101.coerce.date(),
|
|
2769
|
-
documentationPageId: z101.string(),
|
|
2770
|
-
documentationPageName: z101.string(),
|
|
2771
|
-
storagePath: z101.string()
|
|
2802
|
+
var DocumentationPageAnchor = z101.object({
|
|
2803
|
+
blockId: z101.string(),
|
|
2804
|
+
level: z101.number(),
|
|
2805
|
+
text: z101.string()
|
|
2772
2806
|
});
|
|
2773
2807
|
|
|
2774
|
-
// src/dsm/documentation/page-content.ts
|
|
2808
|
+
// src/dsm/documentation/page-content-backup.ts
|
|
2775
2809
|
import { z as z102 } from "zod";
|
|
2776
|
-
var
|
|
2777
|
-
PageBlockEditorModelV2,
|
|
2778
|
-
PageSectionEditorModelV2
|
|
2779
|
-
]);
|
|
2780
|
-
var DocumentationPageContentData = z102.object({
|
|
2781
|
-
items: z102.array(DocumentationPageContentItem)
|
|
2782
|
-
});
|
|
2783
|
-
var DocumentationPageContent = z102.object({
|
|
2810
|
+
var DocumentationPageContentBackup = z102.object({
|
|
2784
2811
|
id: z102.string(),
|
|
2785
2812
|
designSystemVersionId: z102.string(),
|
|
2786
2813
|
createdAt: z102.coerce.date(),
|
|
2787
2814
|
updatedAt: z102.coerce.date(),
|
|
2788
2815
|
documentationPageId: z102.string(),
|
|
2789
|
-
|
|
2816
|
+
documentationPageName: z102.string(),
|
|
2817
|
+
storagePath: z102.string()
|
|
2790
2818
|
});
|
|
2791
2819
|
|
|
2792
|
-
// src/dsm/documentation/page.ts
|
|
2820
|
+
// src/dsm/documentation/page-content.ts
|
|
2793
2821
|
import { z as z103 } from "zod";
|
|
2794
|
-
var
|
|
2795
|
-
|
|
2822
|
+
var DocumentationPageContentItem = z103.discriminatedUnion("type", [
|
|
2823
|
+
PageBlockEditorModelV2,
|
|
2824
|
+
PageSectionEditorModelV2
|
|
2825
|
+
]);
|
|
2826
|
+
var DocumentationPageContentData = z103.object({
|
|
2827
|
+
items: z103.array(DocumentationPageContentItem)
|
|
2828
|
+
});
|
|
2829
|
+
var DocumentationPageContent = z103.object({
|
|
2796
2830
|
id: z103.string(),
|
|
2797
|
-
persistentId: z103.string(),
|
|
2798
|
-
shortPersistentId: z103.string(),
|
|
2799
2831
|
designSystemVersionId: z103.string(),
|
|
2800
|
-
parentPersistentId: z103.string().nullish(),
|
|
2801
|
-
sortOrder: z103.number(),
|
|
2802
|
-
title: z103.string(),
|
|
2803
|
-
slug: z103.string(),
|
|
2804
|
-
userSlug: z103.string().nullish(),
|
|
2805
2832
|
createdAt: z103.coerce.date(),
|
|
2806
|
-
updatedAt: z103.coerce.date()
|
|
2833
|
+
updatedAt: z103.coerce.date(),
|
|
2834
|
+
documentationPageId: z103.string(),
|
|
2835
|
+
data: DocumentationPageContentData
|
|
2807
2836
|
});
|
|
2808
2837
|
|
|
2809
|
-
// src/dsm/documentation/
|
|
2838
|
+
// src/dsm/documentation/page.ts
|
|
2810
2839
|
import { z as z104 } from "zod";
|
|
2811
|
-
var
|
|
2812
|
-
|
|
2813
|
-
authorId: z104.string(),
|
|
2814
|
-
threadId: z104.string(),
|
|
2815
|
-
roomId: z104.string(),
|
|
2816
|
-
createdAt: z104.coerce.date(),
|
|
2817
|
-
editedAt: z104.coerce.date().optional(),
|
|
2818
|
-
deletedAt: z104.coerce.date().optional(),
|
|
2819
|
-
body: z104.string()
|
|
2820
|
-
});
|
|
2821
|
-
var DocumentationCommentThread = z104.object({
|
|
2840
|
+
var DocumentationPage = z104.object({
|
|
2841
|
+
type: z104.literal("DocumentationPage"),
|
|
2822
2842
|
id: z104.string(),
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
brandId: z104.string(),
|
|
2843
|
+
persistentId: z104.string(),
|
|
2844
|
+
shortPersistentId: z104.string(),
|
|
2826
2845
|
designSystemVersionId: z104.string(),
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2846
|
+
parentPersistentId: z104.string().nullish(),
|
|
2847
|
+
sortOrder: z104.number(),
|
|
2848
|
+
title: z104.string(),
|
|
2849
|
+
slug: z104.string(),
|
|
2850
|
+
userSlug: z104.string().nullish(),
|
|
2830
2851
|
createdAt: z104.coerce.date(),
|
|
2831
2852
|
updatedAt: z104.coerce.date()
|
|
2832
2853
|
});
|
|
2833
2854
|
|
|
2834
|
-
// src/dsm/
|
|
2855
|
+
// src/dsm/documentation/thread.ts
|
|
2835
2856
|
import { z as z105 } from "zod";
|
|
2836
|
-
var
|
|
2837
|
-
var DesignElementSnapshotBase = z105.object({
|
|
2857
|
+
var DocumentationComment = z105.object({
|
|
2838
2858
|
id: z105.string(),
|
|
2839
|
-
|
|
2840
|
-
|
|
2859
|
+
authorId: z105.string(),
|
|
2860
|
+
threadId: z105.string(),
|
|
2861
|
+
roomId: z105.string(),
|
|
2841
2862
|
createdAt: z105.coerce.date(),
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
});
|
|
2846
|
-
|
|
2847
|
-
// src/dsm/element-snapshots/documentation-page-snapshot.ts
|
|
2848
|
-
import { z as z106 } from "zod";
|
|
2849
|
-
var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
|
|
2850
|
-
page: DocumentationPageV2,
|
|
2851
|
-
pageContentHash: z106.string(),
|
|
2852
|
-
pageContentStorageKey: z106.string()
|
|
2863
|
+
editedAt: z105.coerce.date().optional(),
|
|
2864
|
+
deletedAt: z105.coerce.date().optional(),
|
|
2865
|
+
body: z105.string()
|
|
2853
2866
|
});
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2867
|
+
var DocumentationCommentThread = z105.object({
|
|
2868
|
+
id: z105.string(),
|
|
2869
|
+
roomId: z105.string(),
|
|
2870
|
+
pagePersistentId: z105.string(),
|
|
2871
|
+
brandId: z105.string(),
|
|
2872
|
+
designSystemVersionId: z105.string(),
|
|
2873
|
+
designSystemId: z105.string(),
|
|
2874
|
+
blockId: z105.string().optional(),
|
|
2875
|
+
resolved: z105.boolean(),
|
|
2876
|
+
createdAt: z105.coerce.date(),
|
|
2877
|
+
updatedAt: z105.coerce.date()
|
|
2858
2878
|
});
|
|
2859
2879
|
|
|
2860
|
-
// src/dsm/
|
|
2880
|
+
// src/dsm/element-snapshots/base.ts
|
|
2861
2881
|
import { z as z107 } from "zod";
|
|
2862
|
-
var ElementViewBaseColumnType = z107.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
2863
|
-
var ElementViewColumnType = z107.union([
|
|
2864
|
-
z107.literal("BaseProperty"),
|
|
2865
|
-
z107.literal("PropertyDefinition"),
|
|
2866
|
-
z107.literal("Theme")
|
|
2867
|
-
]);
|
|
2868
|
-
var ElementViewColumnSharedAttributes = z107.object({
|
|
2869
|
-
id: z107.string(),
|
|
2870
|
-
persistentId: z107.string(),
|
|
2871
|
-
elementDataViewId: z107.string(),
|
|
2872
|
-
sortPosition: z107.number(),
|
|
2873
|
-
width: z107.number()
|
|
2874
|
-
});
|
|
2875
|
-
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
2876
|
-
type: z107.literal("BaseProperty"),
|
|
2877
|
-
basePropertyType: ElementViewBaseColumnType
|
|
2878
|
-
});
|
|
2879
|
-
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
2880
|
-
type: z107.literal("PropertyDefinition"),
|
|
2881
|
-
propertyDefinitionId: z107.string()
|
|
2882
|
-
});
|
|
2883
|
-
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
2884
|
-
type: z107.literal("Theme"),
|
|
2885
|
-
themeId: z107.string()
|
|
2886
|
-
});
|
|
2887
|
-
var ElementViewColumn = z107.discriminatedUnion("type", [
|
|
2888
|
-
ElementViewBasePropertyColumn,
|
|
2889
|
-
ElementViewPropertyDefinitionColumn,
|
|
2890
|
-
ElementViewThemeColumn
|
|
2891
|
-
]);
|
|
2892
|
-
|
|
2893
|
-
// src/dsm/views/view.ts
|
|
2894
|
-
import { z as z108 } from "zod";
|
|
2895
|
-
var ElementView = z108.object({
|
|
2896
|
-
id: z108.string(),
|
|
2897
|
-
persistentId: z108.string(),
|
|
2898
|
-
designSystemVersionId: z108.string(),
|
|
2899
|
-
name: z108.string(),
|
|
2900
|
-
description: z108.string(),
|
|
2901
|
-
targetElementType: ElementPropertyTargetType,
|
|
2902
|
-
isDefault: z108.boolean()
|
|
2903
|
-
});
|
|
2904
|
-
|
|
2905
|
-
// src/dsm/brand.ts
|
|
2906
|
-
import { z as z109 } from "zod";
|
|
2907
|
-
var Brand = z109.object({
|
|
2908
|
-
id: z109.string(),
|
|
2909
|
-
designSystemVersionId: z109.string(),
|
|
2910
|
-
persistentId: z109.string(),
|
|
2911
|
-
name: z109.string(),
|
|
2912
|
-
description: z109.string()
|
|
2913
|
-
});
|
|
2914
|
-
|
|
2915
|
-
// src/dsm/design-system-update.ts
|
|
2916
|
-
import { z as z114 } from "zod";
|
|
2917
|
-
|
|
2918
|
-
// src/dsm/design-system.ts
|
|
2919
|
-
import { z as z113 } from "zod";
|
|
2920
2882
|
|
|
2921
|
-
// src/
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
//
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
}
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
});
|
|
2998
|
-
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
2999
|
-
avatar: true
|
|
3000
|
-
});
|
|
3001
|
-
var Workspace = z112.object({
|
|
3002
|
-
id: z112.string(),
|
|
3003
|
-
profile: WorkspaceProfile,
|
|
3004
|
-
subscription: Subscription,
|
|
3005
|
-
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
3006
|
-
sso: nullishToOptional(SsoProvider),
|
|
3007
|
-
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
3008
|
-
});
|
|
3009
|
-
var WorkspaceWithDesignSystems = z112.object({
|
|
3010
|
-
workspace: Workspace,
|
|
3011
|
-
designSystems: z112.array(DesignSystem)
|
|
3012
|
-
});
|
|
3013
|
-
|
|
3014
|
-
// src/dsm/design-system.ts
|
|
3015
|
-
var DesignSystemSwitcher = z113.object({
|
|
3016
|
-
isEnabled: z113.boolean(),
|
|
3017
|
-
designSystemIds: z113.array(z113.string())
|
|
3018
|
-
});
|
|
3019
|
-
var DesignSystem = z113.object({
|
|
3020
|
-
id: z113.string(),
|
|
3021
|
-
workspaceId: z113.string(),
|
|
3022
|
-
name: z113.string(),
|
|
3023
|
-
description: z113.string(),
|
|
3024
|
-
docExporterId: nullishToOptional(z113.string()),
|
|
3025
|
-
docSlug: z113.string(),
|
|
3026
|
-
docUserSlug: nullishToOptional(z113.string()),
|
|
3027
|
-
docSlugDeprecated: z113.string(),
|
|
3028
|
-
isPublic: z113.boolean(),
|
|
3029
|
-
isMultibrand: z113.boolean(),
|
|
3030
|
-
docViewUrl: nullishToOptional(z113.string()),
|
|
3031
|
-
basePrefixes: z113.array(z113.string()),
|
|
3032
|
-
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
3033
|
-
createdAt: z113.coerce.date(),
|
|
3034
|
-
updatedAt: z113.coerce.date()
|
|
3035
|
-
});
|
|
3036
|
-
var DesignSystemWithWorkspace = z113.object({
|
|
3037
|
-
designSystem: DesignSystem,
|
|
3038
|
-
workspace: Workspace
|
|
3039
|
-
});
|
|
3040
|
-
|
|
3041
|
-
// src/dsm/design-system-update.ts
|
|
3042
|
-
var DS_NAME_MIN_LENGTH = 2;
|
|
3043
|
-
var DS_NAME_MAX_LENGTH = 64;
|
|
3044
|
-
var DS_DESC_MAX_LENGTH = 64;
|
|
3045
|
-
var DesignSystemUpdateInputMetadata = z114.object({
|
|
3046
|
-
name: z114.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
|
|
3047
|
-
description: z114.string().max(DS_DESC_MAX_LENGTH).trim().optional()
|
|
3048
|
-
});
|
|
3049
|
-
var DesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
3050
|
-
id: true,
|
|
3051
|
-
createdAt: true,
|
|
3052
|
-
updatedAt: true,
|
|
3053
|
-
docSlug: true,
|
|
3054
|
-
docViewUrl: true,
|
|
3055
|
-
designSystemSwitcher: true
|
|
3056
|
-
}).extend({
|
|
3057
|
-
meta: DesignSystemUpdateInputMetadata.optional()
|
|
3058
|
-
});
|
|
3059
|
-
|
|
3060
|
-
// src/dsm/desing-system-create.ts
|
|
3061
|
-
import { z as z115 } from "zod";
|
|
3062
|
-
var DS_NAME_MIN_LENGTH2 = 2;
|
|
3063
|
-
var DS_NAME_MAX_LENGTH2 = 64;
|
|
3064
|
-
var DS_DESC_MAX_LENGTH2 = 64;
|
|
3065
|
-
var DesignSystemCreateInputMetadata = z115.object({
|
|
3066
|
-
name: z115.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
|
|
3067
|
-
description: z115.string().max(DS_DESC_MAX_LENGTH2).trim()
|
|
3068
|
-
});
|
|
3069
|
-
var DesignSystemCreateInput = z115.object({
|
|
3070
|
-
meta: DesignSystemCreateInputMetadata,
|
|
3071
|
-
workspaceId: z115.string(),
|
|
3072
|
-
isPublic: z115.boolean().optional(),
|
|
3073
|
-
basePrefixes: z115.array(z115.string()).optional(),
|
|
3074
|
-
docUserSlug: z115.string().nullish().optional(),
|
|
3075
|
-
source: z115.array(z115.string()).optional()
|
|
3076
|
-
});
|
|
3077
|
-
|
|
3078
|
-
// src/dsm/exporter-property-values-collection.ts
|
|
3079
|
-
import { z as z116 } from "zod";
|
|
3080
|
-
var ExporterPropertyImageValue = z116.object({
|
|
3081
|
-
asset: PageBlockAsset.optional(),
|
|
3082
|
-
assetId: z116.string().optional(),
|
|
3083
|
-
assetUrl: z116.string().optional()
|
|
3084
|
-
});
|
|
3085
|
-
var ExporterPropertyValue = z116.object({
|
|
3086
|
-
key: z116.string(),
|
|
3087
|
-
value: z116.union([
|
|
3088
|
-
z116.number(),
|
|
3089
|
-
z116.string(),
|
|
3090
|
-
z116.boolean(),
|
|
3091
|
-
ExporterPropertyImageValue,
|
|
3092
|
-
ColorTokenData,
|
|
3093
|
-
TypographyTokenData
|
|
3094
|
-
])
|
|
3095
|
-
});
|
|
3096
|
-
var ExporterPropertyValuesCollection = z116.object({
|
|
3097
|
-
id: z116.string(),
|
|
3098
|
-
designSystemId: z116.string(),
|
|
3099
|
-
exporterId: z116.string(),
|
|
3100
|
-
values: z116.array(ExporterPropertyValue)
|
|
3101
|
-
});
|
|
3102
|
-
|
|
3103
|
-
// src/dsm/published-doc-page.ts
|
|
3104
|
-
import { z as z117 } from "zod";
|
|
3105
|
-
var SHORT_PERSISTENT_ID_LENGTH = 8;
|
|
3106
|
-
function tryParseShortPersistentId(url = "/") {
|
|
3107
|
-
const lastUrlPart = url.split("/").pop() || "";
|
|
3108
|
-
const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
|
|
3109
|
-
return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
|
|
3110
|
-
}
|
|
3111
|
-
var PublishedDocPage = z117.object({
|
|
3112
|
-
id: z117.string(),
|
|
3113
|
-
publishedDocId: z117.string(),
|
|
3114
|
-
pageShortPersistentId: z117.string(),
|
|
3115
|
-
pathV1: z117.string(),
|
|
3116
|
-
pathV2: z117.string(),
|
|
3117
|
-
storagePath: z117.string(),
|
|
3118
|
-
locale: z117.string().optional(),
|
|
3119
|
-
isPrivate: z117.boolean(),
|
|
3120
|
-
isHidden: z117.boolean(),
|
|
3121
|
-
createdAt: z117.coerce.date(),
|
|
3122
|
-
updatedAt: z117.coerce.date()
|
|
3123
|
-
});
|
|
3124
|
-
|
|
3125
|
-
// src/dsm/published-doc.ts
|
|
3126
|
-
import { z as z118 } from "zod";
|
|
3127
|
-
var publishedDocEnvironments = ["Live", "Preview"];
|
|
3128
|
-
var PublishedDocEnvironment = z118.enum(publishedDocEnvironments);
|
|
3129
|
-
var PublishedDocsChecksums = z118.record(z118.string());
|
|
3130
|
-
var PublishedDocRoutingVersion = z118.enum(["1", "2"]);
|
|
3131
|
-
var PublishedDoc = z118.object({
|
|
3132
|
-
id: z118.string(),
|
|
3133
|
-
designSystemVersionId: z118.string(),
|
|
3134
|
-
createdAt: z118.coerce.date(),
|
|
3135
|
-
updatedAt: z118.coerce.date(),
|
|
3136
|
-
lastPublishedAt: z118.coerce.date(),
|
|
3137
|
-
isDefault: z118.boolean(),
|
|
3138
|
-
isPublic: z118.boolean(),
|
|
3139
|
-
environment: PublishedDocEnvironment,
|
|
3140
|
-
checksums: PublishedDocsChecksums,
|
|
3141
|
-
storagePath: z118.string(),
|
|
3142
|
-
wasMigrated: z118.boolean(),
|
|
3143
|
-
routingVersion: PublishedDocRoutingVersion,
|
|
3144
|
-
usesLocalizations: z118.boolean(),
|
|
3145
|
-
wasPublishedWithLocalizations: z118.boolean(),
|
|
3146
|
-
tokenCount: z118.number(),
|
|
3147
|
-
assetCount: z118.number()
|
|
3148
|
-
});
|
|
3149
|
-
|
|
3150
|
-
// src/dsm/version.ts
|
|
3151
|
-
import { z as z119 } from "zod";
|
|
3152
|
-
var DesignSystemVersion = z119.object({
|
|
3153
|
-
id: z119.string(),
|
|
3154
|
-
version: z119.string(),
|
|
3155
|
-
createdAt: z119.date(),
|
|
3156
|
-
designSystemId: z119.string(),
|
|
3157
|
-
name: z119.string(),
|
|
3158
|
-
comment: z119.string(),
|
|
3159
|
-
isReadonly: z119.boolean(),
|
|
3160
|
-
changeLog: z119.string(),
|
|
3161
|
-
parentId: z119.string().optional(),
|
|
3162
|
-
isDraftsFeatureAdopted: z119.boolean()
|
|
3163
|
-
});
|
|
3164
|
-
var VersionCreationJobStatus = z119.enum(["Success", "InProgress", "Error"]);
|
|
3165
|
-
var VersionCreationJob = z119.object({
|
|
3166
|
-
id: z119.string(),
|
|
3167
|
-
version: z119.string(),
|
|
3168
|
-
designSystemId: z119.string(),
|
|
3169
|
-
designSystemVersionId: nullishToOptional(z119.string()),
|
|
3170
|
-
status: VersionCreationJobStatus,
|
|
3171
|
-
errorMessage: nullishToOptional(z119.string())
|
|
3172
|
-
});
|
|
3173
|
-
|
|
3174
|
-
// src/export/export-destinations.ts
|
|
3175
|
-
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
3176
|
-
var BITBUCKET_MAX_LENGTH = 64;
|
|
3177
|
-
var ExportJobDocumentationChanges = z120.object({
|
|
3178
|
-
pagePersistentIds: z120.string().array(),
|
|
3179
|
-
groupPersistentIds: z120.string().array()
|
|
3180
|
-
});
|
|
3181
|
-
var ExporterDestinationDocs = z120.object({
|
|
3182
|
-
environment: PublishedDocEnvironment,
|
|
3183
|
-
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
3184
|
-
});
|
|
3185
|
-
var ExporterDestinationS3 = z120.object({});
|
|
3186
|
-
var ExporterDestinationGithub = z120.object({
|
|
3187
|
-
credentialId: z120.string().optional(),
|
|
3188
|
-
// Repository
|
|
3189
|
-
url: z120.string(),
|
|
3190
|
-
// Location
|
|
3191
|
-
branch: z120.string(),
|
|
3192
|
-
relativePath: nullishToOptional(z120.string()),
|
|
3193
|
-
// Legacy deprecated fields. Use `credentialId` instead
|
|
3194
|
-
connectionId: nullishToOptional(z120.string()),
|
|
3195
|
-
userId: nullishToOptional(z120.number())
|
|
3196
|
-
});
|
|
3197
|
-
var ExporterDestinationAzure = z120.object({
|
|
3198
|
-
credentialId: z120.string().optional(),
|
|
3199
|
-
// Repository
|
|
3200
|
-
organizationId: z120.string(),
|
|
3201
|
-
projectId: z120.string(),
|
|
3202
|
-
repositoryId: z120.string(),
|
|
3203
|
-
// Location
|
|
3204
|
-
branch: z120.string(),
|
|
3205
|
-
relativePath: nullishToOptional(z120.string()),
|
|
3206
|
-
// Maybe not needed
|
|
3207
|
-
url: nullishToOptional(z120.string()),
|
|
3208
|
-
// Legacy deprecated fields. Use `credentialId` instead
|
|
3209
|
-
connectionId: nullishToOptional(z120.string()),
|
|
3210
|
-
userId: nullishToOptional(z120.number())
|
|
3211
|
-
});
|
|
3212
|
-
var ExporterDestinationGitlab = z120.object({
|
|
3213
|
-
credentialId: z120.string().optional(),
|
|
3214
|
-
// Repository
|
|
3215
|
-
projectId: z120.string(),
|
|
3216
|
-
// Location
|
|
3217
|
-
branch: z120.string(),
|
|
3218
|
-
relativePath: nullishToOptional(z120.string()),
|
|
3219
|
-
// Maybe not needed
|
|
3220
|
-
url: nullishToOptional(z120.string()),
|
|
3221
|
-
// Legacy deprecated fields. Use `credentialId` instead
|
|
3222
|
-
connectionId: nullishToOptional(z120.string()),
|
|
3223
|
-
userId: nullishToOptional(z120.number())
|
|
3224
|
-
});
|
|
3225
|
-
var ExporterDestinationBitbucket = z120.object({
|
|
3226
|
-
credentialId: z120.string().optional(),
|
|
3227
|
-
// Repository
|
|
3228
|
-
workspaceSlug: z120.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3229
|
-
projectKey: z120.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3230
|
-
repoSlug: z120.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3231
|
-
// Location
|
|
3232
|
-
branch: z120.string(),
|
|
3233
|
-
relativePath: nullishToOptional(z120.string()),
|
|
3234
|
-
// Legacy deprecated fields. Use `credentialId` instead
|
|
3235
|
-
connectionId: nullishToOptional(z120.string()),
|
|
3236
|
-
userId: nullishToOptional(z120.number())
|
|
3237
|
-
});
|
|
3238
|
-
var ExportDestinationsMap = z120.object({
|
|
3239
|
-
webhookUrl: z120.string().optional(),
|
|
3240
|
-
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
3241
|
-
destinationS3: ExporterDestinationS3.optional(),
|
|
3242
|
-
destinationGithub: ExporterDestinationGithub.optional(),
|
|
3243
|
-
destinationAzure: ExporterDestinationAzure.optional(),
|
|
3244
|
-
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
3245
|
-
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
3246
|
-
});
|
|
3247
|
-
|
|
3248
|
-
// src/export/pipeline.ts
|
|
3249
|
-
var PipelineEventType = z121.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
3250
|
-
var PipelineDestinationGitType = z121.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
3251
|
-
var PipelineDestinationExtraType = z121.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
3252
|
-
var PipelineDestinationType = z121.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
3253
|
-
var Pipeline = z121.object({
|
|
3254
|
-
id: z121.string(),
|
|
3255
|
-
name: z121.string(),
|
|
3256
|
-
eventType: PipelineEventType,
|
|
3257
|
-
isEnabled: z121.boolean(),
|
|
3258
|
-
workspaceId: z121.string(),
|
|
3259
|
-
designSystemId: z121.string(),
|
|
3260
|
-
exporterId: z121.string(),
|
|
3261
|
-
brandPersistentId: z121.string().optional(),
|
|
3262
|
-
themePersistentId: z121.string().optional(),
|
|
3263
|
-
// Destinations
|
|
3264
|
-
...ExportDestinationsMap.shape
|
|
3265
|
-
});
|
|
3266
|
-
|
|
3267
|
-
// src/data-dumps/code-integration-dump.ts
|
|
3268
|
-
var ExportJobDump = z122.object({
|
|
3269
|
-
id: z122.string(),
|
|
3270
|
-
createdAt: z122.coerce.date(),
|
|
3271
|
-
finishedAt: z122.coerce.date(),
|
|
3272
|
-
exportArtefacts: z122.string()
|
|
3273
|
-
});
|
|
3274
|
-
var CodeIntegrationDump = z122.object({
|
|
3275
|
-
exporters: Exporter.array(),
|
|
3276
|
-
pipelines: Pipeline.array(),
|
|
3277
|
-
exportJobs: ExportJobDump.array()
|
|
3278
|
-
});
|
|
3279
|
-
|
|
3280
|
-
// src/data-dumps/design-system-dump.ts
|
|
3281
|
-
import { z as z129 } from "zod";
|
|
3282
|
-
|
|
3283
|
-
// src/data-dumps/design-system-version-dump.ts
|
|
3284
|
-
import { z as z128 } from "zod";
|
|
3285
|
-
|
|
3286
|
-
// src/liveblocks/rooms/design-system-version-room.ts
|
|
3287
|
-
import { z as z123 } from "zod";
|
|
3288
|
-
var DesignSystemVersionRoom = Entity.extend({
|
|
3289
|
-
designSystemVersionId: z123.string(),
|
|
3290
|
-
liveblocksId: z123.string()
|
|
3291
|
-
});
|
|
3292
|
-
var DesignSystemVersionRoomInternalSettings = z123.object({
|
|
3293
|
-
routingVersion: z123.string(),
|
|
3294
|
-
isDraftFeatureAdopted: z123.boolean()
|
|
3295
|
-
});
|
|
3296
|
-
var DesignSystemVersionRoomInitialState = z123.object({
|
|
3297
|
-
pages: z123.array(DocumentationPageV2),
|
|
3298
|
-
groups: z123.array(ElementGroup),
|
|
3299
|
-
pageSnapshots: z123.array(DocumentationPageSnapshot),
|
|
3300
|
-
groupSnapshots: z123.array(ElementGroupSnapshot),
|
|
3301
|
-
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
3302
|
-
});
|
|
3303
|
-
var DesignSystemVersionRoomUpdate = z123.object({
|
|
3304
|
-
pages: z123.array(DocumentationPageV2),
|
|
3305
|
-
groups: z123.array(ElementGroup),
|
|
3306
|
-
pageIdsToDelete: z123.array(z123.string()),
|
|
3307
|
-
groupIdsToDelete: z123.array(z123.string()),
|
|
3308
|
-
pageSnapshots: z123.array(DocumentationPageSnapshot),
|
|
3309
|
-
groupSnapshots: z123.array(ElementGroupSnapshot),
|
|
3310
|
-
pageSnapshotIdsToDelete: z123.array(z123.string()),
|
|
3311
|
-
groupSnapshotIdsToDelete: z123.array(z123.string()),
|
|
3312
|
-
pageHashesToUpdate: z123.record(z123.string(), z123.string())
|
|
3313
|
-
});
|
|
3314
|
-
|
|
3315
|
-
// src/liveblocks/rooms/documentation-page-room.ts
|
|
3316
|
-
import { z as z124 } from "zod";
|
|
3317
|
-
var DocumentationPageRoom = Entity.extend({
|
|
3318
|
-
designSystemVersionId: z124.string(),
|
|
3319
|
-
documentationPageId: z124.string(),
|
|
3320
|
-
liveblocksId: z124.string(),
|
|
3321
|
-
isDirty: z124.boolean()
|
|
3322
|
-
});
|
|
3323
|
-
var DocumentationPageRoomState = z124.object({
|
|
3324
|
-
pageItems: z124.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
3325
|
-
itemConfiguration: DocumentationItemConfigurationV2
|
|
3326
|
-
});
|
|
3327
|
-
var DocumentationPageRoomRoomUpdate = z124.object({
|
|
3328
|
-
page: DocumentationPageV2,
|
|
3329
|
-
pageParent: ElementGroup
|
|
3330
|
-
});
|
|
3331
|
-
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
3332
|
-
pageItems: z124.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
3333
|
-
blockDefinitions: z124.array(PageBlockDefinition)
|
|
3334
|
-
});
|
|
3335
|
-
var RestoredDocumentationPage = z124.object({
|
|
3336
|
-
page: DocumentationPageV2,
|
|
3337
|
-
pageParent: ElementGroup,
|
|
3338
|
-
pageContent: DocumentationPageContentData,
|
|
3339
|
-
contentHash: z124.string(),
|
|
3340
|
-
roomId: z124.string().optional()
|
|
3341
|
-
});
|
|
3342
|
-
var RestoredDocumentationGroup = z124.object({
|
|
3343
|
-
group: ElementGroup,
|
|
3344
|
-
parent: ElementGroup
|
|
3345
|
-
});
|
|
3346
|
-
|
|
3347
|
-
// src/liveblocks/rooms/room-type.ts
|
|
3348
|
-
import { z as z125 } from "zod";
|
|
3349
|
-
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
3350
|
-
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
3351
|
-
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
3352
|
-
RoomTypeEnum2["Workspace"] = "workspace";
|
|
3353
|
-
return RoomTypeEnum2;
|
|
3354
|
-
})(RoomTypeEnum || {});
|
|
3355
|
-
var RoomTypeSchema = z125.nativeEnum(RoomTypeEnum);
|
|
3356
|
-
var RoomType = RoomTypeSchema.enum;
|
|
3357
|
-
|
|
3358
|
-
// src/liveblocks/rooms/workspace-room.ts
|
|
3359
|
-
import { z as z126 } from "zod";
|
|
3360
|
-
var WorkspaceRoom = Entity.extend({
|
|
3361
|
-
workspaceId: z126.string(),
|
|
3362
|
-
liveblocksId: z126.string()
|
|
3363
|
-
});
|
|
3364
|
-
|
|
3365
|
-
// src/data-dumps/published-docs-dump.ts
|
|
3366
|
-
import { z as z127 } from "zod";
|
|
3367
|
-
var PublishedDocsDump = z127.object({
|
|
3368
|
-
documentation: PublishedDoc,
|
|
3369
|
-
pages: PublishedDocPage.array()
|
|
3370
|
-
});
|
|
3371
|
-
|
|
3372
|
-
// src/data-dumps/design-system-version-dump.ts
|
|
3373
|
-
var DocumentationThreadDump = z128.object({
|
|
3374
|
-
thread: DocumentationCommentThread,
|
|
3375
|
-
comments: DocumentationComment.array()
|
|
3376
|
-
});
|
|
3377
|
-
var DocumentationPageRoomDump = z128.object({
|
|
3378
|
-
room: DocumentationPageRoom,
|
|
3379
|
-
threads: DocumentationThreadDump.array()
|
|
3380
|
-
});
|
|
3381
|
-
var DesignSystemVersionMultiplayerDump = z128.object({
|
|
3382
|
-
documentationPages: DocumentationPageRoomDump.array()
|
|
3383
|
-
});
|
|
3384
|
-
var DesignSystemVersionDump = z128.object({
|
|
3385
|
-
version: DesignSystemVersion,
|
|
3386
|
-
brands: Brand.array(),
|
|
3387
|
-
elements: DesignElement.array(),
|
|
3388
|
-
elementPropertyDefinitions: ElementPropertyDefinition.array(),
|
|
3389
|
-
elementPropertyValues: ElementPropertyValue.array(),
|
|
3390
|
-
elementViews: ElementView.array(),
|
|
3391
|
-
elementColumns: ElementViewColumn.array(),
|
|
3392
|
-
documentationPageContents: DocumentationPageContent.array(),
|
|
3393
|
-
documentationPageRooms: DocumentationPageRoomDump.array(),
|
|
3394
|
-
publishedDocumentations: PublishedDocsDump.array(),
|
|
3395
|
-
assetReferences: AssetReference.array()
|
|
3396
|
-
});
|
|
3397
|
-
|
|
3398
|
-
// src/data-dumps/design-system-dump.ts
|
|
3399
|
-
var DesignSystemDump = z129.object({
|
|
3400
|
-
designSystem: DesignSystem,
|
|
3401
|
-
dataSources: DataSource.array(),
|
|
3402
|
-
versions: DesignSystemVersionDump.array(),
|
|
3403
|
-
customDomain: CustomDomain.optional(),
|
|
3404
|
-
files: Asset.array()
|
|
3405
|
-
});
|
|
3406
|
-
|
|
3407
|
-
// src/data-dumps/user-data-dump.ts
|
|
3408
|
-
import { z as z142 } from "zod";
|
|
3409
|
-
|
|
3410
|
-
// src/users/linked-integrations.ts
|
|
3411
|
-
import { z as z130 } from "zod";
|
|
3412
|
-
var IntegrationAuthType = z130.union([z130.literal("OAuth2"), z130.literal("PAT")]);
|
|
3413
|
-
var ExternalServiceType = z130.union([
|
|
3414
|
-
z130.literal("figma"),
|
|
3415
|
-
z130.literal("github"),
|
|
3416
|
-
z130.literal("azure"),
|
|
3417
|
-
z130.literal("gitlab"),
|
|
3418
|
-
z130.literal("bitbucket")
|
|
3419
|
-
]);
|
|
3420
|
-
var IntegrationUserInfo = z130.object({
|
|
3421
|
-
id: z130.string(),
|
|
3422
|
-
handle: z130.string().optional(),
|
|
3423
|
-
avatarUrl: z130.string().optional(),
|
|
3424
|
-
email: z130.string().optional(),
|
|
3425
|
-
authType: IntegrationAuthType.optional(),
|
|
3426
|
-
customUrl: z130.string().optional()
|
|
3427
|
-
});
|
|
3428
|
-
var UserLinkedIntegrations = z130.object({
|
|
3429
|
-
figma: IntegrationUserInfo.optional(),
|
|
3430
|
-
github: IntegrationUserInfo.array().optional(),
|
|
3431
|
-
azure: IntegrationUserInfo.array().optional(),
|
|
3432
|
-
gitlab: IntegrationUserInfo.array().optional(),
|
|
3433
|
-
bitbucket: IntegrationUserInfo.array().optional()
|
|
3434
|
-
});
|
|
3435
|
-
|
|
3436
|
-
// src/users/user-analytics-cleanup-schedule.ts
|
|
3437
|
-
import { z as z131 } from "zod";
|
|
3438
|
-
var UserAnalyticsCleanupSchedule = z131.object({
|
|
3439
|
-
userId: z131.string(),
|
|
3440
|
-
createdAt: z131.coerce.date(),
|
|
3441
|
-
deleteAt: z131.coerce.date()
|
|
3442
|
-
});
|
|
3443
|
-
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
3444
|
-
createdAt: true
|
|
3445
|
-
});
|
|
3446
|
-
|
|
3447
|
-
// src/users/user-create.ts
|
|
3448
|
-
import { z as z132 } from "zod";
|
|
3449
|
-
var CreateUserInput = z132.object({
|
|
3450
|
-
email: z132.string(),
|
|
3451
|
-
name: z132.string(),
|
|
3452
|
-
username: z132.string()
|
|
3453
|
-
});
|
|
3454
|
-
|
|
3455
|
-
// src/users/user-identity.ts
|
|
3456
|
-
import { z as z133 } from "zod";
|
|
3457
|
-
var UserIdentity = z133.object({
|
|
3458
|
-
id: z133.string(),
|
|
3459
|
-
userId: z133.string()
|
|
3460
|
-
});
|
|
3461
|
-
|
|
3462
|
-
// src/users/user-minified.ts
|
|
3463
|
-
import { z as z134 } from "zod";
|
|
3464
|
-
var UserMinified = z134.object({
|
|
3465
|
-
id: z134.string(),
|
|
3466
|
-
name: z134.string(),
|
|
3467
|
-
email: z134.string(),
|
|
3468
|
-
avatar: z134.string().optional()
|
|
3469
|
-
});
|
|
3470
|
-
|
|
3471
|
-
// src/users/user-notification-settings.ts
|
|
3472
|
-
import { z as z135 } from "zod";
|
|
3473
|
-
var LiveblocksNotificationSettings = z135.object({
|
|
3474
|
-
sendCommentNotificationEmails: z135.boolean()
|
|
3475
|
-
});
|
|
3476
|
-
var UserNotificationSettings = z135.object({
|
|
3477
|
-
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
3478
|
-
});
|
|
3479
|
-
var defaultNotificationSettings = {
|
|
3480
|
-
liveblocksNotificationSettings: {
|
|
3481
|
-
sendCommentNotificationEmails: true
|
|
3482
|
-
}
|
|
3483
|
-
};
|
|
3484
|
-
|
|
3485
|
-
// src/users/user-profile.ts
|
|
3486
|
-
import { z as z136 } from "zod";
|
|
3487
|
-
var UserOnboardingDepartment = z136.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
3488
|
-
var UserOnboardingJobLevel = z136.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
3489
|
-
var UserOnboarding = z136.object({
|
|
3490
|
-
companyName: z136.string().optional(),
|
|
3491
|
-
numberOfPeopleInOrg: z136.string().optional(),
|
|
3492
|
-
numberOfPeopleInDesignTeam: z136.string().optional(),
|
|
3493
|
-
department: UserOnboardingDepartment.optional(),
|
|
3494
|
-
jobTitle: z136.string().optional(),
|
|
3495
|
-
phase: z136.string().optional(),
|
|
3496
|
-
jobLevel: UserOnboardingJobLevel.optional(),
|
|
3497
|
-
designSystemName: z136.string().optional(),
|
|
3498
|
-
defaultDestination: z136.string().optional(),
|
|
3499
|
-
figmaUrl: z136.string().optional()
|
|
3500
|
-
});
|
|
3501
|
-
var UserProfile = z136.object({
|
|
3502
|
-
name: z136.string(),
|
|
3503
|
-
avatar: z136.string().optional(),
|
|
3504
|
-
nickname: z136.string().optional(),
|
|
3505
|
-
onboarding: UserOnboarding.optional()
|
|
3506
|
-
});
|
|
3507
|
-
var UserProfileUpdate = UserProfile.partial().omit({
|
|
3508
|
-
avatar: true
|
|
3509
|
-
});
|
|
3510
|
-
|
|
3511
|
-
// src/users/user-test.ts
|
|
3512
|
-
import { z as z137 } from "zod";
|
|
3513
|
-
var UserTest = z137.object({
|
|
3514
|
-
id: z137.string(),
|
|
3515
|
-
email: z137.string()
|
|
3516
|
-
});
|
|
3517
|
-
|
|
3518
|
-
// src/users/user.ts
|
|
3519
|
-
import { z as z138 } from "zod";
|
|
3520
|
-
var User = z138.object({
|
|
3521
|
-
id: z138.string(),
|
|
3522
|
-
email: z138.string(),
|
|
3523
|
-
emailVerified: z138.boolean(),
|
|
3524
|
-
createdAt: z138.coerce.date(),
|
|
3525
|
-
trialExpiresAt: z138.coerce.date().optional(),
|
|
3526
|
-
profile: UserProfile,
|
|
3527
|
-
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
3528
|
-
loggedOutAt: z138.coerce.date().optional(),
|
|
3529
|
-
isProtected: z138.boolean()
|
|
3530
|
-
});
|
|
3531
|
-
|
|
3532
|
-
// src/data-dumps/workspace-dump.ts
|
|
3533
|
-
import { z as z141 } from "zod";
|
|
3534
|
-
|
|
3535
|
-
// src/integrations/integration.ts
|
|
3536
|
-
import { z as z140 } from "zod";
|
|
3537
|
-
|
|
3538
|
-
// src/utils/errors.ts
|
|
3539
|
-
var SupernovaException = class _SupernovaException extends Error {
|
|
3540
|
-
//
|
|
3541
|
-
// Properties
|
|
3542
|
-
//
|
|
3543
|
-
constructor(type, message) {
|
|
3544
|
-
super(`${type}: ${message}`);
|
|
3545
|
-
this.type = type;
|
|
3546
|
-
}
|
|
3547
|
-
static wrongFormat(message) {
|
|
3548
|
-
return new _SupernovaException("WrongFormat", message);
|
|
3549
|
-
}
|
|
3550
|
-
static validationError(message) {
|
|
3551
|
-
return new _SupernovaException("ValidationError", message);
|
|
3552
|
-
}
|
|
3553
|
-
static accessDenied(message) {
|
|
3554
|
-
return new _SupernovaException("AccessDenied", message);
|
|
3555
|
-
}
|
|
3556
|
-
static tooMuchWork(message) {
|
|
3557
|
-
return new _SupernovaException("TooMuchWork", message);
|
|
3558
|
-
}
|
|
3559
|
-
static notFound(message) {
|
|
3560
|
-
return new _SupernovaException("ResourceNotFound", message);
|
|
3561
|
-
}
|
|
3562
|
-
static timeout(message) {
|
|
3563
|
-
return new _SupernovaException("Timeout", message);
|
|
3564
|
-
}
|
|
3565
|
-
static conflict(message) {
|
|
3566
|
-
return new _SupernovaException("Conflict", message);
|
|
3567
|
-
}
|
|
3568
|
-
static notImplemented(message) {
|
|
3569
|
-
return new _SupernovaException("NotImplemented", message);
|
|
3570
|
-
}
|
|
3571
|
-
static wrongActionOrder(message) {
|
|
3572
|
-
return new _SupernovaException("WrongActionOrder", message);
|
|
3573
|
-
}
|
|
3574
|
-
static invalidOperation(message) {
|
|
3575
|
-
return new _SupernovaException("InvalidOperation", message);
|
|
3576
|
-
}
|
|
3577
|
-
static shouldNotHappen(message) {
|
|
3578
|
-
return new _SupernovaException("UnexpectedError", message);
|
|
3579
|
-
}
|
|
3580
|
-
static ipRestricted(message) {
|
|
3581
|
-
return new _SupernovaException("IPRestricted", message);
|
|
3582
|
-
}
|
|
3583
|
-
static planRestricted(message) {
|
|
3584
|
-
return new _SupernovaException("PlanRestricted", message);
|
|
3585
|
-
}
|
|
3586
|
-
static missingWorkspacePermission(message) {
|
|
3587
|
-
return new _SupernovaException("MissingWorkspacePermission", message);
|
|
3588
|
-
}
|
|
3589
|
-
static missingExporterPermission(message) {
|
|
3590
|
-
return new _SupernovaException("MissingExporterPermission", message);
|
|
3591
|
-
}
|
|
3592
|
-
static missingIntegration(message) {
|
|
3593
|
-
return new _SupernovaException("MissingIntegration", message);
|
|
3594
|
-
}
|
|
3595
|
-
static missingIntegrationAccess(message) {
|
|
3596
|
-
return new _SupernovaException("MissingIntegrationAccess", message);
|
|
3597
|
-
}
|
|
3598
|
-
static noAccess(message) {
|
|
3599
|
-
return new _SupernovaException("NoAccess", message);
|
|
3600
|
-
}
|
|
3601
|
-
static missingCredentials(message) {
|
|
3602
|
-
return new _SupernovaException("MissingCredentials", message);
|
|
3603
|
-
}
|
|
3604
|
-
static thirdPartyError(message) {
|
|
3605
|
-
return new _SupernovaException("ThirdPartyError", message);
|
|
3606
|
-
}
|
|
3607
|
-
//
|
|
3608
|
-
// To refactor
|
|
3609
|
-
//
|
|
3610
|
-
static badRequest(message) {
|
|
3611
|
-
return new _SupernovaException("BadRequest", message);
|
|
3612
|
-
}
|
|
3613
|
-
};
|
|
2883
|
+
// src/utils/errors.ts
|
|
2884
|
+
var SupernovaException = class _SupernovaException extends Error {
|
|
2885
|
+
//
|
|
2886
|
+
// Properties
|
|
2887
|
+
//
|
|
2888
|
+
constructor(type, message) {
|
|
2889
|
+
super(`${type}: ${message}`);
|
|
2890
|
+
this.type = type;
|
|
2891
|
+
}
|
|
2892
|
+
static wrongFormat(message) {
|
|
2893
|
+
return new _SupernovaException("WrongFormat", message);
|
|
2894
|
+
}
|
|
2895
|
+
static validationError(message) {
|
|
2896
|
+
return new _SupernovaException("ValidationError", message);
|
|
2897
|
+
}
|
|
2898
|
+
static accessDenied(message) {
|
|
2899
|
+
return new _SupernovaException("AccessDenied", message);
|
|
2900
|
+
}
|
|
2901
|
+
static tooMuchWork(message) {
|
|
2902
|
+
return new _SupernovaException("TooMuchWork", message);
|
|
2903
|
+
}
|
|
2904
|
+
static notFound(message) {
|
|
2905
|
+
return new _SupernovaException("ResourceNotFound", message);
|
|
2906
|
+
}
|
|
2907
|
+
static timeout(message) {
|
|
2908
|
+
return new _SupernovaException("Timeout", message);
|
|
2909
|
+
}
|
|
2910
|
+
static conflict(message) {
|
|
2911
|
+
return new _SupernovaException("Conflict", message);
|
|
2912
|
+
}
|
|
2913
|
+
static notImplemented(message) {
|
|
2914
|
+
return new _SupernovaException("NotImplemented", message);
|
|
2915
|
+
}
|
|
2916
|
+
static wrongActionOrder(message) {
|
|
2917
|
+
return new _SupernovaException("WrongActionOrder", message);
|
|
2918
|
+
}
|
|
2919
|
+
static invalidOperation(message) {
|
|
2920
|
+
return new _SupernovaException("InvalidOperation", message);
|
|
2921
|
+
}
|
|
2922
|
+
static shouldNotHappen(message) {
|
|
2923
|
+
return new _SupernovaException("UnexpectedError", message);
|
|
2924
|
+
}
|
|
2925
|
+
static ipRestricted(message) {
|
|
2926
|
+
return new _SupernovaException("IPRestricted", message);
|
|
2927
|
+
}
|
|
2928
|
+
static planRestricted(message) {
|
|
2929
|
+
return new _SupernovaException("PlanRestricted", message);
|
|
2930
|
+
}
|
|
2931
|
+
static missingWorkspacePermission(message) {
|
|
2932
|
+
return new _SupernovaException("MissingWorkspacePermission", message);
|
|
2933
|
+
}
|
|
2934
|
+
static missingExporterPermission(message) {
|
|
2935
|
+
return new _SupernovaException("MissingExporterPermission", message);
|
|
2936
|
+
}
|
|
2937
|
+
static missingIntegration(message) {
|
|
2938
|
+
return new _SupernovaException("MissingIntegration", message);
|
|
2939
|
+
}
|
|
2940
|
+
static missingIntegrationAccess(message) {
|
|
2941
|
+
return new _SupernovaException("MissingIntegrationAccess", message);
|
|
2942
|
+
}
|
|
2943
|
+
static noAccess(message) {
|
|
2944
|
+
return new _SupernovaException("NoAccess", message);
|
|
2945
|
+
}
|
|
2946
|
+
static missingCredentials(message) {
|
|
2947
|
+
return new _SupernovaException("MissingCredentials", message);
|
|
2948
|
+
}
|
|
2949
|
+
static thirdPartyError(message) {
|
|
2950
|
+
return new _SupernovaException("ThirdPartyError", message);
|
|
2951
|
+
}
|
|
2952
|
+
//
|
|
2953
|
+
// To refactor
|
|
2954
|
+
//
|
|
2955
|
+
static badRequest(message) {
|
|
2956
|
+
return new _SupernovaException("BadRequest", message);
|
|
2957
|
+
}
|
|
2958
|
+
};
|
|
3614
2959
|
|
|
3615
2960
|
// src/utils/common.ts
|
|
3616
2961
|
function forceUnwrapNullish(value) {
|
|
@@ -3688,26 +3033,26 @@ function uniqueBy(items, prop) {
|
|
|
3688
3033
|
}
|
|
3689
3034
|
|
|
3690
3035
|
// src/utils/content-loader-instruction.ts
|
|
3691
|
-
import { z as
|
|
3692
|
-
var ContentLoadInstruction =
|
|
3693
|
-
from:
|
|
3694
|
-
to:
|
|
3695
|
-
authorizationHeaderKvsId:
|
|
3696
|
-
timeout:
|
|
3697
|
-
});
|
|
3698
|
-
var ContentLoaderPayload =
|
|
3699
|
-
type:
|
|
3036
|
+
import { z as z106 } from "zod";
|
|
3037
|
+
var ContentLoadInstruction = z106.object({
|
|
3038
|
+
from: z106.string(),
|
|
3039
|
+
to: z106.string(),
|
|
3040
|
+
authorizationHeaderKvsId: z106.string().optional(),
|
|
3041
|
+
timeout: z106.number().optional()
|
|
3042
|
+
});
|
|
3043
|
+
var ContentLoaderPayload = z106.object({
|
|
3044
|
+
type: z106.literal("Single"),
|
|
3700
3045
|
instruction: ContentLoadInstruction
|
|
3701
3046
|
}).or(
|
|
3702
|
-
|
|
3703
|
-
type:
|
|
3704
|
-
loadingChunkSize:
|
|
3705
|
-
instructions:
|
|
3047
|
+
z106.object({
|
|
3048
|
+
type: z106.literal("Multiple"),
|
|
3049
|
+
loadingChunkSize: z106.number().optional(),
|
|
3050
|
+
instructions: z106.array(ContentLoadInstruction)
|
|
3706
3051
|
})
|
|
3707
3052
|
).or(
|
|
3708
|
-
|
|
3709
|
-
type:
|
|
3710
|
-
location:
|
|
3053
|
+
z106.object({
|
|
3054
|
+
type: z106.literal("S3"),
|
|
3055
|
+
location: z106.string()
|
|
3711
3056
|
})
|
|
3712
3057
|
);
|
|
3713
3058
|
|
|
@@ -4403,47 +3748,761 @@ function isSlugReserved(slug) {
|
|
|
4403
3748
|
return RESERVED_SLUGS_SET.has(slug) || isSlugReservedInternal(slug);
|
|
4404
3749
|
}
|
|
4405
3750
|
|
|
4406
|
-
// src/utils/validation.ts
|
|
4407
|
-
var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
3751
|
+
// src/utils/validation.ts
|
|
3752
|
+
var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
3753
|
+
|
|
3754
|
+
// src/dsm/element-snapshots/base.ts
|
|
3755
|
+
var DesignElementSnapshotReason = z107.enum(["Publish", "Deletion"]);
|
|
3756
|
+
var DesignElementSnapshotBase = z107.object({
|
|
3757
|
+
id: z107.string(),
|
|
3758
|
+
persistentId: z107.string(),
|
|
3759
|
+
designSystemVersionId: z107.string(),
|
|
3760
|
+
createdAt: z107.coerce.date(),
|
|
3761
|
+
updatedAt: z107.coerce.date(),
|
|
3762
|
+
reason: DesignElementSnapshotReason,
|
|
3763
|
+
createdByUserId: z107.string()
|
|
3764
|
+
});
|
|
3765
|
+
function pickLatestSnapshots(snapshots, getSnapshotElementId) {
|
|
3766
|
+
const groupedSnapshots = groupBy(snapshots, getSnapshotElementId);
|
|
3767
|
+
return Array.from(groupedSnapshots.entries()).map(([_, snapshots2]) => {
|
|
3768
|
+
const sorted = snapshots2.sort((lhs, rhs) => rhs.createdAt.getTime() - lhs.createdAt.getTime());
|
|
3769
|
+
return sorted[0];
|
|
3770
|
+
});
|
|
3771
|
+
}
|
|
3772
|
+
|
|
3773
|
+
// src/dsm/element-snapshots/documentation-page-snapshot.ts
|
|
3774
|
+
import { z as z108 } from "zod";
|
|
3775
|
+
var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
|
|
3776
|
+
page: DocumentationPageV2,
|
|
3777
|
+
pageContentHash: z108.string(),
|
|
3778
|
+
pageContentStorageKey: z108.string()
|
|
3779
|
+
});
|
|
3780
|
+
function pickLatestPageSnapshots(snapshots) {
|
|
3781
|
+
return pickLatestSnapshots(snapshots, (s) => s.page.id);
|
|
3782
|
+
}
|
|
3783
|
+
|
|
3784
|
+
// src/dsm/element-snapshots/group-snapshot.ts
|
|
3785
|
+
var ElementGroupSnapshot = DesignElementSnapshotBase.extend({
|
|
3786
|
+
group: ElementGroup
|
|
3787
|
+
});
|
|
3788
|
+
function pickLatestGroupSnapshots(snapshots) {
|
|
3789
|
+
return pickLatestSnapshots(snapshots, (s) => s.group.id);
|
|
3790
|
+
}
|
|
3791
|
+
|
|
3792
|
+
// src/dsm/views/column.ts
|
|
3793
|
+
import { z as z109 } from "zod";
|
|
3794
|
+
var ElementViewBaseColumnType = z109.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
3795
|
+
var ElementViewColumnType = z109.union([
|
|
3796
|
+
z109.literal("BaseProperty"),
|
|
3797
|
+
z109.literal("PropertyDefinition"),
|
|
3798
|
+
z109.literal("Theme")
|
|
3799
|
+
]);
|
|
3800
|
+
var ElementViewColumnSharedAttributes = z109.object({
|
|
3801
|
+
id: z109.string(),
|
|
3802
|
+
persistentId: z109.string(),
|
|
3803
|
+
elementDataViewId: z109.string(),
|
|
3804
|
+
sortPosition: z109.number(),
|
|
3805
|
+
width: z109.number()
|
|
3806
|
+
});
|
|
3807
|
+
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
3808
|
+
type: z109.literal("BaseProperty"),
|
|
3809
|
+
basePropertyType: ElementViewBaseColumnType
|
|
3810
|
+
});
|
|
3811
|
+
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
3812
|
+
type: z109.literal("PropertyDefinition"),
|
|
3813
|
+
propertyDefinitionId: z109.string()
|
|
3814
|
+
});
|
|
3815
|
+
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
3816
|
+
type: z109.literal("Theme"),
|
|
3817
|
+
themeId: z109.string()
|
|
3818
|
+
});
|
|
3819
|
+
var ElementViewColumn = z109.discriminatedUnion("type", [
|
|
3820
|
+
ElementViewBasePropertyColumn,
|
|
3821
|
+
ElementViewPropertyDefinitionColumn,
|
|
3822
|
+
ElementViewThemeColumn
|
|
3823
|
+
]);
|
|
3824
|
+
|
|
3825
|
+
// src/dsm/views/view.ts
|
|
3826
|
+
import { z as z110 } from "zod";
|
|
3827
|
+
var ElementView = z110.object({
|
|
3828
|
+
id: z110.string(),
|
|
3829
|
+
persistentId: z110.string(),
|
|
3830
|
+
designSystemVersionId: z110.string(),
|
|
3831
|
+
name: z110.string(),
|
|
3832
|
+
description: z110.string(),
|
|
3833
|
+
targetElementType: ElementPropertyTargetType,
|
|
3834
|
+
isDefault: z110.boolean()
|
|
3835
|
+
});
|
|
3836
|
+
|
|
3837
|
+
// src/dsm/brand.ts
|
|
3838
|
+
import { z as z111 } from "zod";
|
|
3839
|
+
var Brand = z111.object({
|
|
3840
|
+
id: z111.string(),
|
|
3841
|
+
designSystemVersionId: z111.string(),
|
|
3842
|
+
persistentId: z111.string(),
|
|
3843
|
+
name: z111.string(),
|
|
3844
|
+
description: z111.string()
|
|
3845
|
+
});
|
|
3846
|
+
|
|
3847
|
+
// src/dsm/design-system-update.ts
|
|
3848
|
+
import { z as z116 } from "zod";
|
|
3849
|
+
|
|
3850
|
+
// src/dsm/design-system.ts
|
|
3851
|
+
import { z as z115 } from "zod";
|
|
3852
|
+
|
|
3853
|
+
// src/workspace/workspace.ts
|
|
3854
|
+
import IPCIDR from "ip-cidr";
|
|
3855
|
+
import { z as z114 } from "zod";
|
|
3856
|
+
|
|
3857
|
+
// src/workspace/npm-registry-settings.ts
|
|
3858
|
+
import { z as z112 } from "zod";
|
|
3859
|
+
var NpmRegistryAuthType = z112.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
3860
|
+
var NpmRegistryType = z112.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
3861
|
+
var NpmRegistryBasicAuthConfig = z112.object({
|
|
3862
|
+
authType: z112.literal(NpmRegistryAuthType.Enum.Basic),
|
|
3863
|
+
username: z112.string(),
|
|
3864
|
+
password: z112.string()
|
|
3865
|
+
});
|
|
3866
|
+
var NpmRegistryBearerAuthConfig = z112.object({
|
|
3867
|
+
authType: z112.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
3868
|
+
accessToken: z112.string()
|
|
3869
|
+
});
|
|
3870
|
+
var NpmRegistryNoAuthConfig = z112.object({
|
|
3871
|
+
authType: z112.literal(NpmRegistryAuthType.Enum.None)
|
|
3872
|
+
});
|
|
3873
|
+
var NpmRegistrCustomAuthConfig = z112.object({
|
|
3874
|
+
authType: z112.literal(NpmRegistryAuthType.Enum.Custom),
|
|
3875
|
+
authHeaderName: z112.string(),
|
|
3876
|
+
authHeaderValue: z112.string()
|
|
3877
|
+
});
|
|
3878
|
+
var NpmRegistryAuthConfig = z112.discriminatedUnion("authType", [
|
|
3879
|
+
NpmRegistryBasicAuthConfig,
|
|
3880
|
+
NpmRegistryBearerAuthConfig,
|
|
3881
|
+
NpmRegistryNoAuthConfig,
|
|
3882
|
+
NpmRegistrCustomAuthConfig
|
|
3883
|
+
]);
|
|
3884
|
+
var NpmRegistryConfigBase = z112.object({
|
|
3885
|
+
registryType: NpmRegistryType,
|
|
3886
|
+
enabledScopes: z112.array(z112.string()),
|
|
3887
|
+
customRegistryUrl: z112.string().optional(),
|
|
3888
|
+
bypassProxy: z112.boolean().default(false),
|
|
3889
|
+
npmProxyRegistryConfigId: z112.string().optional(),
|
|
3890
|
+
npmProxyVersion: z112.number().optional()
|
|
3891
|
+
});
|
|
3892
|
+
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
3893
|
+
|
|
3894
|
+
// src/workspace/sso-provider.ts
|
|
3895
|
+
import { z as z113 } from "zod";
|
|
3896
|
+
var SsoProvider = z113.object({
|
|
3897
|
+
providerId: z113.string(),
|
|
3898
|
+
defaultAutoInviteValue: z113.boolean(),
|
|
3899
|
+
autoInviteDomains: z113.record(z113.string(), z113.boolean()),
|
|
3900
|
+
skipDocsSupernovaLogin: z113.boolean(),
|
|
3901
|
+
areInvitesDisabled: z113.boolean(),
|
|
3902
|
+
isTestMode: z113.boolean(),
|
|
3903
|
+
emailDomains: z113.array(z113.string()),
|
|
3904
|
+
metadataXml: z113.string().nullish()
|
|
3905
|
+
});
|
|
3906
|
+
|
|
3907
|
+
// src/workspace/workspace.ts
|
|
3908
|
+
var isValidCIDR = (value) => {
|
|
3909
|
+
return IPCIDR.isValidAddress(value);
|
|
3910
|
+
};
|
|
3911
|
+
var WorkspaceIpWhitelistEntry = z114.object({
|
|
3912
|
+
isEnabled: z114.boolean(),
|
|
3913
|
+
name: z114.string(),
|
|
3914
|
+
range: z114.string().refine(isValidCIDR, {
|
|
3915
|
+
message: "Invalid IP CIDR"
|
|
3916
|
+
})
|
|
3917
|
+
});
|
|
3918
|
+
var WorkspaceIpSettings = z114.object({
|
|
3919
|
+
isEnabledForCloud: z114.boolean(),
|
|
3920
|
+
isEnabledForDocs: z114.boolean(),
|
|
3921
|
+
entries: z114.array(WorkspaceIpWhitelistEntry)
|
|
3922
|
+
});
|
|
3923
|
+
var WorkspaceProfile = z114.object({
|
|
3924
|
+
name: z114.string(),
|
|
3925
|
+
handle: z114.string(),
|
|
3926
|
+
color: z114.string(),
|
|
3927
|
+
avatar: nullishToOptional(z114.string()),
|
|
3928
|
+
billingDetails: nullishToOptional(BillingDetails)
|
|
3929
|
+
});
|
|
3930
|
+
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
3931
|
+
avatar: true
|
|
3932
|
+
});
|
|
3933
|
+
var Workspace = z114.object({
|
|
3934
|
+
id: z114.string(),
|
|
3935
|
+
profile: WorkspaceProfile,
|
|
3936
|
+
subscription: Subscription,
|
|
3937
|
+
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
3938
|
+
sso: nullishToOptional(SsoProvider),
|
|
3939
|
+
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
3940
|
+
});
|
|
3941
|
+
var WorkspaceWithDesignSystems = z114.object({
|
|
3942
|
+
workspace: Workspace,
|
|
3943
|
+
designSystems: z114.array(DesignSystem)
|
|
3944
|
+
});
|
|
3945
|
+
|
|
3946
|
+
// src/dsm/design-system.ts
|
|
3947
|
+
var DesignSystemSwitcher = z115.object({
|
|
3948
|
+
isEnabled: z115.boolean(),
|
|
3949
|
+
designSystemIds: z115.array(z115.string())
|
|
3950
|
+
});
|
|
3951
|
+
var DesignSystem = z115.object({
|
|
3952
|
+
id: z115.string(),
|
|
3953
|
+
workspaceId: z115.string(),
|
|
3954
|
+
name: z115.string(),
|
|
3955
|
+
description: z115.string(),
|
|
3956
|
+
docExporterId: nullishToOptional(z115.string()),
|
|
3957
|
+
docSlug: z115.string(),
|
|
3958
|
+
docUserSlug: nullishToOptional(z115.string()),
|
|
3959
|
+
docSlugDeprecated: z115.string(),
|
|
3960
|
+
isPublic: z115.boolean(),
|
|
3961
|
+
isMultibrand: z115.boolean(),
|
|
3962
|
+
docViewUrl: nullishToOptional(z115.string()),
|
|
3963
|
+
basePrefixes: z115.array(z115.string()),
|
|
3964
|
+
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
3965
|
+
createdAt: z115.coerce.date(),
|
|
3966
|
+
updatedAt: z115.coerce.date()
|
|
3967
|
+
});
|
|
3968
|
+
var DesignSystemWithWorkspace = z115.object({
|
|
3969
|
+
designSystem: DesignSystem,
|
|
3970
|
+
workspace: Workspace
|
|
3971
|
+
});
|
|
3972
|
+
|
|
3973
|
+
// src/dsm/design-system-update.ts
|
|
3974
|
+
var DS_NAME_MIN_LENGTH = 2;
|
|
3975
|
+
var DS_NAME_MAX_LENGTH = 64;
|
|
3976
|
+
var DS_DESC_MAX_LENGTH = 64;
|
|
3977
|
+
var DesignSystemUpdateInputMetadata = z116.object({
|
|
3978
|
+
name: z116.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
|
|
3979
|
+
description: z116.string().max(DS_DESC_MAX_LENGTH).trim().optional()
|
|
3980
|
+
});
|
|
3981
|
+
var DesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
3982
|
+
id: true,
|
|
3983
|
+
createdAt: true,
|
|
3984
|
+
updatedAt: true,
|
|
3985
|
+
docSlug: true,
|
|
3986
|
+
docViewUrl: true,
|
|
3987
|
+
designSystemSwitcher: true
|
|
3988
|
+
}).extend({
|
|
3989
|
+
meta: DesignSystemUpdateInputMetadata.optional()
|
|
3990
|
+
});
|
|
3991
|
+
|
|
3992
|
+
// src/dsm/desing-system-create.ts
|
|
3993
|
+
import { z as z117 } from "zod";
|
|
3994
|
+
var DS_NAME_MIN_LENGTH2 = 2;
|
|
3995
|
+
var DS_NAME_MAX_LENGTH2 = 64;
|
|
3996
|
+
var DS_DESC_MAX_LENGTH2 = 64;
|
|
3997
|
+
var DesignSystemCreateInputMetadata = z117.object({
|
|
3998
|
+
name: z117.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
|
|
3999
|
+
description: z117.string().max(DS_DESC_MAX_LENGTH2).trim()
|
|
4000
|
+
});
|
|
4001
|
+
var DesignSystemCreateInput = z117.object({
|
|
4002
|
+
meta: DesignSystemCreateInputMetadata,
|
|
4003
|
+
workspaceId: z117.string(),
|
|
4004
|
+
isPublic: z117.boolean().optional(),
|
|
4005
|
+
basePrefixes: z117.array(z117.string()).optional(),
|
|
4006
|
+
docUserSlug: z117.string().nullish().optional(),
|
|
4007
|
+
source: z117.array(z117.string()).optional()
|
|
4008
|
+
});
|
|
4009
|
+
|
|
4010
|
+
// src/dsm/exporter-property-values-collection.ts
|
|
4011
|
+
import { z as z118 } from "zod";
|
|
4012
|
+
var ExporterPropertyImageValue = z118.object({
|
|
4013
|
+
asset: PageBlockAsset.optional(),
|
|
4014
|
+
assetId: z118.string().optional(),
|
|
4015
|
+
assetUrl: z118.string().optional()
|
|
4016
|
+
});
|
|
4017
|
+
var ExporterPropertyValue = z118.object({
|
|
4018
|
+
key: z118.string(),
|
|
4019
|
+
value: z118.union([
|
|
4020
|
+
z118.number(),
|
|
4021
|
+
z118.string(),
|
|
4022
|
+
z118.boolean(),
|
|
4023
|
+
ExporterPropertyImageValue,
|
|
4024
|
+
ColorTokenData,
|
|
4025
|
+
TypographyTokenData
|
|
4026
|
+
])
|
|
4027
|
+
});
|
|
4028
|
+
var ExporterPropertyValuesCollection = z118.object({
|
|
4029
|
+
id: z118.string(),
|
|
4030
|
+
designSystemId: z118.string(),
|
|
4031
|
+
exporterId: z118.string(),
|
|
4032
|
+
values: z118.array(ExporterPropertyValue)
|
|
4033
|
+
});
|
|
4034
|
+
|
|
4035
|
+
// src/dsm/published-doc-page.ts
|
|
4036
|
+
import { z as z119 } from "zod";
|
|
4037
|
+
var SHORT_PERSISTENT_ID_LENGTH = 8;
|
|
4038
|
+
function tryParseShortPersistentId(url = "/") {
|
|
4039
|
+
const lastUrlPart = url.split("/").pop() || "";
|
|
4040
|
+
const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
|
|
4041
|
+
return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
|
|
4042
|
+
}
|
|
4043
|
+
var PublishedDocPage = z119.object({
|
|
4044
|
+
id: z119.string(),
|
|
4045
|
+
publishedDocId: z119.string(),
|
|
4046
|
+
pageShortPersistentId: z119.string(),
|
|
4047
|
+
pathV1: z119.string(),
|
|
4048
|
+
pathV2: z119.string(),
|
|
4049
|
+
storagePath: z119.string(),
|
|
4050
|
+
locale: z119.string().optional(),
|
|
4051
|
+
isPrivate: z119.boolean(),
|
|
4052
|
+
isHidden: z119.boolean(),
|
|
4053
|
+
createdAt: z119.coerce.date(),
|
|
4054
|
+
updatedAt: z119.coerce.date()
|
|
4055
|
+
});
|
|
4056
|
+
|
|
4057
|
+
// src/dsm/published-doc.ts
|
|
4058
|
+
import { z as z120 } from "zod";
|
|
4059
|
+
var publishedDocEnvironments = ["Live", "Preview"];
|
|
4060
|
+
var PublishedDocEnvironment = z120.enum(publishedDocEnvironments);
|
|
4061
|
+
var PublishedDocsChecksums = z120.record(z120.string());
|
|
4062
|
+
var PublishedDocRoutingVersion = z120.enum(["1", "2"]);
|
|
4063
|
+
var PublishedDoc = z120.object({
|
|
4064
|
+
id: z120.string(),
|
|
4065
|
+
designSystemVersionId: z120.string(),
|
|
4066
|
+
createdAt: z120.coerce.date(),
|
|
4067
|
+
updatedAt: z120.coerce.date(),
|
|
4068
|
+
lastPublishedAt: z120.coerce.date(),
|
|
4069
|
+
isDefault: z120.boolean(),
|
|
4070
|
+
isPublic: z120.boolean(),
|
|
4071
|
+
environment: PublishedDocEnvironment,
|
|
4072
|
+
checksums: PublishedDocsChecksums,
|
|
4073
|
+
storagePath: z120.string(),
|
|
4074
|
+
wasMigrated: z120.boolean(),
|
|
4075
|
+
routingVersion: PublishedDocRoutingVersion,
|
|
4076
|
+
usesLocalizations: z120.boolean(),
|
|
4077
|
+
wasPublishedWithLocalizations: z120.boolean(),
|
|
4078
|
+
tokenCount: z120.number(),
|
|
4079
|
+
assetCount: z120.number()
|
|
4080
|
+
});
|
|
4081
|
+
|
|
4082
|
+
// src/dsm/version.ts
|
|
4083
|
+
import { z as z121 } from "zod";
|
|
4084
|
+
var DesignSystemVersion = z121.object({
|
|
4085
|
+
id: z121.string(),
|
|
4086
|
+
version: z121.string(),
|
|
4087
|
+
createdAt: z121.date(),
|
|
4088
|
+
designSystemId: z121.string(),
|
|
4089
|
+
name: z121.string(),
|
|
4090
|
+
comment: z121.string(),
|
|
4091
|
+
isReadonly: z121.boolean(),
|
|
4092
|
+
changeLog: z121.string(),
|
|
4093
|
+
parentId: z121.string().optional(),
|
|
4094
|
+
isDraftsFeatureAdopted: z121.boolean()
|
|
4095
|
+
});
|
|
4096
|
+
var VersionCreationJobStatus = z121.enum(["Success", "InProgress", "Error"]);
|
|
4097
|
+
var VersionCreationJob = z121.object({
|
|
4098
|
+
id: z121.string(),
|
|
4099
|
+
version: z121.string(),
|
|
4100
|
+
designSystemId: z121.string(),
|
|
4101
|
+
designSystemVersionId: nullishToOptional(z121.string()),
|
|
4102
|
+
status: VersionCreationJobStatus,
|
|
4103
|
+
errorMessage: nullishToOptional(z121.string())
|
|
4104
|
+
});
|
|
4105
|
+
|
|
4106
|
+
// src/export/export-destinations.ts
|
|
4107
|
+
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
4108
|
+
var BITBUCKET_MAX_LENGTH = 64;
|
|
4109
|
+
var ExportJobDocumentationChanges = z122.object({
|
|
4110
|
+
pagePersistentIds: z122.string().array(),
|
|
4111
|
+
groupPersistentIds: z122.string().array()
|
|
4112
|
+
});
|
|
4113
|
+
var ExporterDestinationDocs = z122.object({
|
|
4114
|
+
environment: PublishedDocEnvironment,
|
|
4115
|
+
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
4116
|
+
});
|
|
4117
|
+
var ExporterDestinationS3 = z122.object({});
|
|
4118
|
+
var ExporterDestinationGithub = z122.object({
|
|
4119
|
+
credentialId: z122.string().optional(),
|
|
4120
|
+
// Repository
|
|
4121
|
+
url: z122.string(),
|
|
4122
|
+
// Location
|
|
4123
|
+
branch: z122.string(),
|
|
4124
|
+
relativePath: nullishToOptional(z122.string()),
|
|
4125
|
+
// Legacy deprecated fields. Use `credentialId` instead
|
|
4126
|
+
connectionId: nullishToOptional(z122.string()),
|
|
4127
|
+
userId: nullishToOptional(z122.number())
|
|
4128
|
+
});
|
|
4129
|
+
var ExporterDestinationAzure = z122.object({
|
|
4130
|
+
credentialId: z122.string().optional(),
|
|
4131
|
+
// Repository
|
|
4132
|
+
organizationId: z122.string(),
|
|
4133
|
+
projectId: z122.string(),
|
|
4134
|
+
repositoryId: z122.string(),
|
|
4135
|
+
// Location
|
|
4136
|
+
branch: z122.string(),
|
|
4137
|
+
relativePath: nullishToOptional(z122.string()),
|
|
4138
|
+
// Maybe not needed
|
|
4139
|
+
url: nullishToOptional(z122.string()),
|
|
4140
|
+
// Legacy deprecated fields. Use `credentialId` instead
|
|
4141
|
+
connectionId: nullishToOptional(z122.string()),
|
|
4142
|
+
userId: nullishToOptional(z122.number())
|
|
4143
|
+
});
|
|
4144
|
+
var ExporterDestinationGitlab = z122.object({
|
|
4145
|
+
credentialId: z122.string().optional(),
|
|
4146
|
+
// Repository
|
|
4147
|
+
projectId: z122.string(),
|
|
4148
|
+
// Location
|
|
4149
|
+
branch: z122.string(),
|
|
4150
|
+
relativePath: nullishToOptional(z122.string()),
|
|
4151
|
+
// Maybe not needed
|
|
4152
|
+
url: nullishToOptional(z122.string()),
|
|
4153
|
+
// Legacy deprecated fields. Use `credentialId` instead
|
|
4154
|
+
connectionId: nullishToOptional(z122.string()),
|
|
4155
|
+
userId: nullishToOptional(z122.number())
|
|
4156
|
+
});
|
|
4157
|
+
var ExporterDestinationBitbucket = z122.object({
|
|
4158
|
+
credentialId: z122.string().optional(),
|
|
4159
|
+
// Repository
|
|
4160
|
+
workspaceSlug: z122.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4161
|
+
projectKey: z122.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4162
|
+
repoSlug: z122.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4163
|
+
// Location
|
|
4164
|
+
branch: z122.string(),
|
|
4165
|
+
relativePath: nullishToOptional(z122.string()),
|
|
4166
|
+
// Legacy deprecated fields. Use `credentialId` instead
|
|
4167
|
+
connectionId: nullishToOptional(z122.string()),
|
|
4168
|
+
userId: nullishToOptional(z122.number())
|
|
4169
|
+
});
|
|
4170
|
+
var ExportDestinationsMap = z122.object({
|
|
4171
|
+
webhookUrl: z122.string().optional(),
|
|
4172
|
+
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
4173
|
+
destinationS3: ExporterDestinationS3.optional(),
|
|
4174
|
+
destinationGithub: ExporterDestinationGithub.optional(),
|
|
4175
|
+
destinationAzure: ExporterDestinationAzure.optional(),
|
|
4176
|
+
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
4177
|
+
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
4178
|
+
});
|
|
4179
|
+
|
|
4180
|
+
// src/export/pipeline.ts
|
|
4181
|
+
var PipelineEventType = z123.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
4182
|
+
var PipelineDestinationGitType = z123.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
4183
|
+
var PipelineDestinationExtraType = z123.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
4184
|
+
var PipelineDestinationType = z123.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
4185
|
+
var Pipeline = z123.object({
|
|
4186
|
+
id: z123.string(),
|
|
4187
|
+
name: z123.string(),
|
|
4188
|
+
eventType: PipelineEventType,
|
|
4189
|
+
isEnabled: z123.boolean(),
|
|
4190
|
+
workspaceId: z123.string(),
|
|
4191
|
+
designSystemId: z123.string(),
|
|
4192
|
+
exporterId: z123.string(),
|
|
4193
|
+
brandPersistentId: z123.string().optional(),
|
|
4194
|
+
themePersistentId: z123.string().optional(),
|
|
4195
|
+
// Destinations
|
|
4196
|
+
...ExportDestinationsMap.shape
|
|
4197
|
+
});
|
|
4408
4198
|
|
|
4409
|
-
// src/
|
|
4410
|
-
var
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4199
|
+
// src/data-dumps/code-integration-dump.ts
|
|
4200
|
+
var ExportJobDump = z124.object({
|
|
4201
|
+
id: z124.string(),
|
|
4202
|
+
createdAt: z124.coerce.date(),
|
|
4203
|
+
finishedAt: z124.coerce.date(),
|
|
4204
|
+
exportArtefacts: z124.string()
|
|
4205
|
+
});
|
|
4206
|
+
var CodeIntegrationDump = z124.object({
|
|
4207
|
+
exporters: Exporter.array(),
|
|
4208
|
+
pipelines: Pipeline.array(),
|
|
4209
|
+
exportJobs: ExportJobDump.array()
|
|
4210
|
+
});
|
|
4211
|
+
|
|
4212
|
+
// src/data-dumps/design-system-dump.ts
|
|
4213
|
+
import { z as z131 } from "zod";
|
|
4214
|
+
|
|
4215
|
+
// src/data-dumps/design-system-version-dump.ts
|
|
4216
|
+
import { z as z130 } from "zod";
|
|
4217
|
+
|
|
4218
|
+
// src/liveblocks/rooms/design-system-version-room.ts
|
|
4219
|
+
import { z as z125 } from "zod";
|
|
4220
|
+
var DesignSystemVersionRoom = Entity.extend({
|
|
4221
|
+
designSystemVersionId: z125.string(),
|
|
4222
|
+
liveblocksId: z125.string()
|
|
4223
|
+
});
|
|
4224
|
+
var DesignSystemVersionRoomInternalSettings = z125.object({
|
|
4225
|
+
routingVersion: z125.string(),
|
|
4226
|
+
isDraftFeatureAdopted: z125.boolean()
|
|
4227
|
+
});
|
|
4228
|
+
var DesignSystemVersionRoomInitialState = z125.object({
|
|
4229
|
+
pages: z125.array(DocumentationPageV2),
|
|
4230
|
+
groups: z125.array(ElementGroup),
|
|
4231
|
+
pageSnapshots: z125.array(DocumentationPageSnapshot),
|
|
4232
|
+
groupSnapshots: z125.array(ElementGroupSnapshot),
|
|
4233
|
+
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
4234
|
+
});
|
|
4235
|
+
var DesignSystemVersionRoomUpdate = z125.object({
|
|
4236
|
+
pages: z125.array(DocumentationPageV2),
|
|
4237
|
+
groups: z125.array(ElementGroup),
|
|
4238
|
+
pageIdsToDelete: z125.array(z125.string()),
|
|
4239
|
+
groupIdsToDelete: z125.array(z125.string()),
|
|
4240
|
+
pageSnapshots: z125.array(DocumentationPageSnapshot),
|
|
4241
|
+
groupSnapshots: z125.array(ElementGroupSnapshot),
|
|
4242
|
+
pageSnapshotIdsToDelete: z125.array(z125.string()),
|
|
4243
|
+
groupSnapshotIdsToDelete: z125.array(z125.string()),
|
|
4244
|
+
pageHashesToUpdate: z125.record(z125.string(), z125.string())
|
|
4245
|
+
});
|
|
4246
|
+
|
|
4247
|
+
// src/liveblocks/rooms/documentation-page-room.ts
|
|
4248
|
+
import { z as z126 } from "zod";
|
|
4249
|
+
var DocumentationPageRoom = Entity.extend({
|
|
4250
|
+
designSystemVersionId: z126.string(),
|
|
4251
|
+
documentationPageId: z126.string(),
|
|
4252
|
+
liveblocksId: z126.string(),
|
|
4253
|
+
isDirty: z126.boolean()
|
|
4254
|
+
});
|
|
4255
|
+
var DocumentationPageRoomState = z126.object({
|
|
4256
|
+
pageItems: z126.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
4257
|
+
itemConfiguration: DocumentationItemConfigurationV2
|
|
4258
|
+
});
|
|
4259
|
+
var DocumentationPageRoomRoomUpdate = z126.object({
|
|
4260
|
+
page: DocumentationPageV2,
|
|
4261
|
+
pageParent: ElementGroup
|
|
4262
|
+
});
|
|
4263
|
+
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
4264
|
+
pageItems: z126.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
4265
|
+
blockDefinitions: z126.array(PageBlockDefinition)
|
|
4266
|
+
});
|
|
4267
|
+
var RestoredDocumentationPage = z126.object({
|
|
4268
|
+
page: DocumentationPageV2,
|
|
4269
|
+
pageParent: ElementGroup,
|
|
4270
|
+
pageContent: DocumentationPageContentData,
|
|
4271
|
+
contentHash: z126.string(),
|
|
4272
|
+
roomId: z126.string().optional()
|
|
4273
|
+
});
|
|
4274
|
+
var RestoredDocumentationGroup = z126.object({
|
|
4275
|
+
group: ElementGroup,
|
|
4276
|
+
parent: ElementGroup
|
|
4277
|
+
});
|
|
4278
|
+
|
|
4279
|
+
// src/liveblocks/rooms/room-type.ts
|
|
4280
|
+
import { z as z127 } from "zod";
|
|
4281
|
+
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
4282
|
+
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
4283
|
+
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
4284
|
+
RoomTypeEnum2["Workspace"] = "workspace";
|
|
4285
|
+
return RoomTypeEnum2;
|
|
4286
|
+
})(RoomTypeEnum || {});
|
|
4287
|
+
var RoomTypeSchema = z127.nativeEnum(RoomTypeEnum);
|
|
4288
|
+
var RoomType = RoomTypeSchema.enum;
|
|
4289
|
+
|
|
4290
|
+
// src/liveblocks/rooms/workspace-room.ts
|
|
4291
|
+
import { z as z128 } from "zod";
|
|
4292
|
+
var WorkspaceRoom = Entity.extend({
|
|
4293
|
+
workspaceId: z128.string(),
|
|
4294
|
+
liveblocksId: z128.string()
|
|
4295
|
+
});
|
|
4296
|
+
|
|
4297
|
+
// src/data-dumps/published-docs-dump.ts
|
|
4298
|
+
import { z as z129 } from "zod";
|
|
4299
|
+
var PublishedDocsDump = z129.object({
|
|
4300
|
+
documentation: PublishedDoc,
|
|
4301
|
+
pages: PublishedDocPage.array()
|
|
4302
|
+
});
|
|
4303
|
+
|
|
4304
|
+
// src/data-dumps/design-system-version-dump.ts
|
|
4305
|
+
var DocumentationThreadDump = z130.object({
|
|
4306
|
+
thread: DocumentationCommentThread,
|
|
4307
|
+
comments: DocumentationComment.array()
|
|
4308
|
+
});
|
|
4309
|
+
var DocumentationPageRoomDump = z130.object({
|
|
4310
|
+
room: DocumentationPageRoom,
|
|
4311
|
+
threads: DocumentationThreadDump.array()
|
|
4312
|
+
});
|
|
4313
|
+
var DesignSystemVersionMultiplayerDump = z130.object({
|
|
4314
|
+
documentationPages: DocumentationPageRoomDump.array()
|
|
4315
|
+
});
|
|
4316
|
+
var DesignSystemVersionDump = z130.object({
|
|
4317
|
+
version: DesignSystemVersion,
|
|
4318
|
+
brands: Brand.array(),
|
|
4319
|
+
elements: DesignElement.array(),
|
|
4320
|
+
elementPropertyDefinitions: ElementPropertyDefinition.array(),
|
|
4321
|
+
elementPropertyValues: ElementPropertyValue.array(),
|
|
4322
|
+
elementViews: ElementView.array(),
|
|
4323
|
+
elementColumns: ElementViewColumn.array(),
|
|
4324
|
+
documentationPageContents: DocumentationPageContent.array(),
|
|
4325
|
+
documentationPageRooms: DocumentationPageRoomDump.array(),
|
|
4326
|
+
publishedDocumentations: PublishedDocsDump.array(),
|
|
4327
|
+
assetReferences: AssetReference.array()
|
|
4328
|
+
});
|
|
4329
|
+
|
|
4330
|
+
// src/data-dumps/design-system-dump.ts
|
|
4331
|
+
var DesignSystemDump = z131.object({
|
|
4332
|
+
designSystem: DesignSystem,
|
|
4333
|
+
dataSources: DataSource.array(),
|
|
4334
|
+
versions: DesignSystemVersionDump.array(),
|
|
4335
|
+
customDomain: CustomDomain.optional(),
|
|
4336
|
+
files: Asset.array()
|
|
4337
|
+
});
|
|
4338
|
+
|
|
4339
|
+
// src/data-dumps/user-data-dump.ts
|
|
4340
|
+
import { z as z143 } from "zod";
|
|
4341
|
+
|
|
4342
|
+
// src/users/linked-integrations.ts
|
|
4343
|
+
import { z as z132 } from "zod";
|
|
4344
|
+
var IntegrationAuthType = z132.union([z132.literal("OAuth2"), z132.literal("PAT")]);
|
|
4345
|
+
var ExternalServiceType = z132.union([
|
|
4346
|
+
z132.literal("figma"),
|
|
4347
|
+
z132.literal("github"),
|
|
4348
|
+
z132.literal("azure"),
|
|
4349
|
+
z132.literal("gitlab"),
|
|
4350
|
+
z132.literal("bitbucket")
|
|
4351
|
+
]);
|
|
4352
|
+
var IntegrationUserInfo = z132.object({
|
|
4353
|
+
id: z132.string(),
|
|
4354
|
+
handle: z132.string().optional(),
|
|
4355
|
+
avatarUrl: z132.string().optional(),
|
|
4356
|
+
email: z132.string().optional(),
|
|
4357
|
+
authType: IntegrationAuthType.optional(),
|
|
4358
|
+
customUrl: z132.string().optional()
|
|
4359
|
+
});
|
|
4360
|
+
var UserLinkedIntegrations = z132.object({
|
|
4361
|
+
figma: IntegrationUserInfo.optional(),
|
|
4362
|
+
github: IntegrationUserInfo.array().optional(),
|
|
4363
|
+
azure: IntegrationUserInfo.array().optional(),
|
|
4364
|
+
gitlab: IntegrationUserInfo.array().optional(),
|
|
4365
|
+
bitbucket: IntegrationUserInfo.array().optional()
|
|
4366
|
+
});
|
|
4367
|
+
|
|
4368
|
+
// src/users/user-analytics-cleanup-schedule.ts
|
|
4369
|
+
import { z as z133 } from "zod";
|
|
4370
|
+
var UserAnalyticsCleanupSchedule = z133.object({
|
|
4371
|
+
userId: z133.string(),
|
|
4372
|
+
createdAt: z133.coerce.date(),
|
|
4373
|
+
deleteAt: z133.coerce.date()
|
|
4374
|
+
});
|
|
4375
|
+
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
4376
|
+
createdAt: true
|
|
4377
|
+
});
|
|
4378
|
+
|
|
4379
|
+
// src/users/user-create.ts
|
|
4380
|
+
import { z as z134 } from "zod";
|
|
4381
|
+
var CreateUserInput = z134.object({
|
|
4382
|
+
email: z134.string(),
|
|
4383
|
+
name: z134.string(),
|
|
4384
|
+
username: z134.string()
|
|
4385
|
+
});
|
|
4386
|
+
|
|
4387
|
+
// src/users/user-identity.ts
|
|
4388
|
+
import { z as z135 } from "zod";
|
|
4389
|
+
var UserIdentity = z135.object({
|
|
4390
|
+
id: z135.string(),
|
|
4391
|
+
userId: z135.string()
|
|
4392
|
+
});
|
|
4393
|
+
|
|
4394
|
+
// src/users/user-minified.ts
|
|
4395
|
+
import { z as z136 } from "zod";
|
|
4396
|
+
var UserMinified = z136.object({
|
|
4397
|
+
id: z136.string(),
|
|
4398
|
+
name: z136.string(),
|
|
4399
|
+
email: z136.string(),
|
|
4400
|
+
avatar: z136.string().optional()
|
|
4401
|
+
});
|
|
4402
|
+
|
|
4403
|
+
// src/users/user-notification-settings.ts
|
|
4404
|
+
import { z as z137 } from "zod";
|
|
4405
|
+
var LiveblocksNotificationSettings = z137.object({
|
|
4406
|
+
sendCommentNotificationEmails: z137.boolean()
|
|
4407
|
+
});
|
|
4408
|
+
var UserNotificationSettings = z137.object({
|
|
4409
|
+
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
4410
|
+
});
|
|
4411
|
+
var defaultNotificationSettings = {
|
|
4412
|
+
liveblocksNotificationSettings: {
|
|
4413
|
+
sendCommentNotificationEmails: true
|
|
4414
|
+
}
|
|
4415
|
+
};
|
|
4416
|
+
|
|
4417
|
+
// src/users/user-profile.ts
|
|
4418
|
+
import { z as z138 } from "zod";
|
|
4419
|
+
var UserOnboardingDepartment = z138.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
4420
|
+
var UserOnboardingJobLevel = z138.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
4421
|
+
var UserOnboarding = z138.object({
|
|
4422
|
+
companyName: z138.string().optional(),
|
|
4423
|
+
numberOfPeopleInOrg: z138.string().optional(),
|
|
4424
|
+
numberOfPeopleInDesignTeam: z138.string().optional(),
|
|
4425
|
+
department: UserOnboardingDepartment.optional(),
|
|
4426
|
+
jobTitle: z138.string().optional(),
|
|
4427
|
+
phase: z138.string().optional(),
|
|
4428
|
+
jobLevel: UserOnboardingJobLevel.optional(),
|
|
4429
|
+
designSystemName: z138.string().optional(),
|
|
4430
|
+
defaultDestination: z138.string().optional(),
|
|
4431
|
+
figmaUrl: z138.string().optional()
|
|
4432
|
+
});
|
|
4433
|
+
var UserProfile = z138.object({
|
|
4434
|
+
name: z138.string(),
|
|
4435
|
+
avatar: z138.string().optional(),
|
|
4436
|
+
nickname: z138.string().optional(),
|
|
4437
|
+
onboarding: UserOnboarding.optional()
|
|
4438
|
+
});
|
|
4439
|
+
var UserProfileUpdate = UserProfile.partial().omit({
|
|
4440
|
+
avatar: true
|
|
4441
|
+
});
|
|
4442
|
+
|
|
4443
|
+
// src/users/user-test.ts
|
|
4444
|
+
import { z as z139 } from "zod";
|
|
4445
|
+
var UserTest = z139.object({
|
|
4446
|
+
id: z139.string(),
|
|
4447
|
+
email: z139.string()
|
|
4448
|
+
});
|
|
4449
|
+
|
|
4450
|
+
// src/users/user.ts
|
|
4451
|
+
import { z as z140 } from "zod";
|
|
4452
|
+
var User = z140.object({
|
|
4429
4453
|
id: z140.string(),
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
accessToken: z140.string(),
|
|
4433
|
-
userId: z140.string(),
|
|
4454
|
+
email: z140.string(),
|
|
4455
|
+
emailVerified: z140.boolean(),
|
|
4434
4456
|
createdAt: z140.coerce.date(),
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4457
|
+
trialExpiresAt: z140.coerce.date().optional(),
|
|
4458
|
+
profile: UserProfile,
|
|
4459
|
+
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
4460
|
+
loggedOutAt: z140.coerce.date().optional(),
|
|
4461
|
+
isProtected: z140.boolean()
|
|
4462
|
+
});
|
|
4463
|
+
|
|
4464
|
+
// src/data-dumps/workspace-dump.ts
|
|
4465
|
+
import { z as z142 } from "zod";
|
|
4466
|
+
|
|
4467
|
+
// src/integrations/integration.ts
|
|
4468
|
+
import { z as z141 } from "zod";
|
|
4469
|
+
var IntegrationDesignSystem = z141.object({
|
|
4470
|
+
designSystemId: z141.string(),
|
|
4471
|
+
brandId: z141.string(),
|
|
4472
|
+
title: z141.string().optional(),
|
|
4473
|
+
userId: z141.string().optional(),
|
|
4474
|
+
date: z141.coerce.date().optional()
|
|
4475
|
+
});
|
|
4476
|
+
var IntegrationCredentialsType = z141.enum(["OAuth2", "PAT", "GithubApp"]);
|
|
4477
|
+
var IntegrationCredentialsState = z141.enum(["Active", "Inactive"]);
|
|
4478
|
+
var IntegrationCredentialsProfile = z141.object({
|
|
4479
|
+
id: nullishToOptional(z141.string()),
|
|
4480
|
+
email: nullishToOptional(z141.string()),
|
|
4481
|
+
handle: nullishToOptional(z141.string()),
|
|
4482
|
+
type: nullishToOptional(z141.string()),
|
|
4483
|
+
avatarUrl: nullishToOptional(z141.string()),
|
|
4484
|
+
organization: nullishToOptional(z141.string()),
|
|
4485
|
+
collection: nullishToOptional(z141.string())
|
|
4486
|
+
});
|
|
4487
|
+
var IntegrationCredentials = z141.object({
|
|
4488
|
+
id: z141.string(),
|
|
4489
|
+
type: IntegrationCredentialsType,
|
|
4490
|
+
integrationId: z141.string(),
|
|
4491
|
+
accessToken: z141.string(),
|
|
4492
|
+
userId: z141.string(),
|
|
4493
|
+
createdAt: z141.coerce.date(),
|
|
4494
|
+
refreshToken: z141.string().optional(),
|
|
4495
|
+
tokenName: z141.string().optional(),
|
|
4496
|
+
expiresAt: z141.coerce.date().optional(),
|
|
4497
|
+
refreshedAt: z141.coerce.date().optional(),
|
|
4498
|
+
username: z141.string().optional(),
|
|
4499
|
+
appInstallationId: z141.string().optional(),
|
|
4441
4500
|
profile: IntegrationCredentialsProfile.optional(),
|
|
4442
|
-
customUrl:
|
|
4501
|
+
customUrl: z141.string().optional(),
|
|
4443
4502
|
state: IntegrationCredentialsState,
|
|
4444
4503
|
user: UserMinified.optional()
|
|
4445
4504
|
});
|
|
4446
|
-
var ExtendedIntegrationType =
|
|
4505
|
+
var ExtendedIntegrationType = z141.enum([
|
|
4447
4506
|
"Figma",
|
|
4448
4507
|
"Github",
|
|
4449
4508
|
"Gitlab",
|
|
@@ -4454,26 +4513,26 @@ var ExtendedIntegrationType = z140.enum([
|
|
|
4454
4513
|
]);
|
|
4455
4514
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
4456
4515
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
4457
|
-
var Integration =
|
|
4458
|
-
id:
|
|
4459
|
-
workspaceId:
|
|
4516
|
+
var Integration = z141.object({
|
|
4517
|
+
id: z141.string(),
|
|
4518
|
+
workspaceId: z141.string(),
|
|
4460
4519
|
type: IntegrationType,
|
|
4461
|
-
createdAt:
|
|
4462
|
-
integrationCredentials:
|
|
4463
|
-
});
|
|
4464
|
-
var IntegrationToken =
|
|
4465
|
-
access_token:
|
|
4466
|
-
refresh_token:
|
|
4467
|
-
expires_in:
|
|
4468
|
-
token_type:
|
|
4469
|
-
token_name:
|
|
4470
|
-
token_azure_organization_name:
|
|
4520
|
+
createdAt: z141.coerce.date(),
|
|
4521
|
+
integrationCredentials: z141.array(IntegrationCredentials).optional()
|
|
4522
|
+
});
|
|
4523
|
+
var IntegrationToken = z141.object({
|
|
4524
|
+
access_token: z141.string(),
|
|
4525
|
+
refresh_token: z141.string().optional(),
|
|
4526
|
+
expires_in: z141.union([z141.number().optional(), z141.string().optional()]),
|
|
4527
|
+
token_type: z141.string().optional(),
|
|
4528
|
+
token_name: z141.string().optional(),
|
|
4529
|
+
token_azure_organization_name: z141.string().optional(),
|
|
4471
4530
|
// Azure Cloud PAT only
|
|
4472
|
-
token_azure_collection_name:
|
|
4531
|
+
token_azure_collection_name: z141.string().optional(),
|
|
4473
4532
|
// Azure Server PAT only
|
|
4474
|
-
token_bitbucket_username:
|
|
4533
|
+
token_bitbucket_username: z141.string().optional(),
|
|
4475
4534
|
// Bitbucket only
|
|
4476
|
-
custom_url:
|
|
4535
|
+
custom_url: z141.string().optional().transform((value) => {
|
|
4477
4536
|
if (!value?.trim())
|
|
4478
4537
|
return void 0;
|
|
4479
4538
|
return formatCustomUrl(value);
|
|
@@ -4511,7 +4570,7 @@ function formatCustomUrl(url) {
|
|
|
4511
4570
|
}
|
|
4512
4571
|
|
|
4513
4572
|
// src/data-dumps/workspace-dump.ts
|
|
4514
|
-
var WorkspaceDump =
|
|
4573
|
+
var WorkspaceDump = z142.object({
|
|
4515
4574
|
workspace: Workspace,
|
|
4516
4575
|
designSystems: DesignSystemDump.array(),
|
|
4517
4576
|
codeIntegration: CodeIntegrationDump,
|
|
@@ -4519,70 +4578,70 @@ var WorkspaceDump = z141.object({
|
|
|
4519
4578
|
});
|
|
4520
4579
|
|
|
4521
4580
|
// src/data-dumps/user-data-dump.ts
|
|
4522
|
-
var UserDump =
|
|
4581
|
+
var UserDump = z143.object({
|
|
4523
4582
|
user: User,
|
|
4524
4583
|
workspaces: WorkspaceDump.array()
|
|
4525
4584
|
});
|
|
4526
4585
|
|
|
4527
4586
|
// src/docs-server/session.ts
|
|
4528
|
-
import { z as
|
|
4529
|
-
var NpmProxyToken =
|
|
4530
|
-
access:
|
|
4531
|
-
expiresAt:
|
|
4587
|
+
import { z as z144 } from "zod";
|
|
4588
|
+
var NpmProxyToken = z144.object({
|
|
4589
|
+
access: z144.string(),
|
|
4590
|
+
expiresAt: z144.number()
|
|
4532
4591
|
});
|
|
4533
|
-
var SessionData =
|
|
4534
|
-
returnToUrl:
|
|
4592
|
+
var SessionData = z144.object({
|
|
4593
|
+
returnToUrl: z144.string().optional(),
|
|
4535
4594
|
npmProxyToken: NpmProxyToken.optional()
|
|
4536
4595
|
});
|
|
4537
|
-
var Session =
|
|
4538
|
-
id:
|
|
4539
|
-
expiresAt:
|
|
4540
|
-
userId:
|
|
4596
|
+
var Session = z144.object({
|
|
4597
|
+
id: z144.string(),
|
|
4598
|
+
expiresAt: z144.coerce.date(),
|
|
4599
|
+
userId: z144.string().nullable(),
|
|
4541
4600
|
data: SessionData
|
|
4542
4601
|
});
|
|
4543
|
-
var AuthTokens =
|
|
4544
|
-
access:
|
|
4545
|
-
refresh:
|
|
4602
|
+
var AuthTokens = z144.object({
|
|
4603
|
+
access: z144.string(),
|
|
4604
|
+
refresh: z144.string()
|
|
4546
4605
|
});
|
|
4547
|
-
var UserSession =
|
|
4606
|
+
var UserSession = z144.object({
|
|
4548
4607
|
session: Session,
|
|
4549
4608
|
user: User.nullable()
|
|
4550
4609
|
});
|
|
4551
4610
|
|
|
4552
4611
|
// src/export/export-runner/export-context.ts
|
|
4553
|
-
import { z as
|
|
4554
|
-
var ExportJobDocumentationContext =
|
|
4555
|
-
isSingleVersionDocs:
|
|
4556
|
-
versionSlug:
|
|
4612
|
+
import { z as z145 } from "zod";
|
|
4613
|
+
var ExportJobDocumentationContext = z145.object({
|
|
4614
|
+
isSingleVersionDocs: z145.boolean(),
|
|
4615
|
+
versionSlug: z145.string(),
|
|
4557
4616
|
environment: PublishedDocEnvironment
|
|
4558
4617
|
});
|
|
4559
|
-
var ExportJobContext =
|
|
4560
|
-
apiUrl:
|
|
4561
|
-
accessToken:
|
|
4562
|
-
designSystemId:
|
|
4563
|
-
designSystemName:
|
|
4564
|
-
exporterId:
|
|
4565
|
-
versionId:
|
|
4566
|
-
brandId:
|
|
4567
|
-
themeId:
|
|
4568
|
-
exporterName:
|
|
4569
|
-
exporterPackageUrl:
|
|
4618
|
+
var ExportJobContext = z145.object({
|
|
4619
|
+
apiUrl: z145.string(),
|
|
4620
|
+
accessToken: z145.string(),
|
|
4621
|
+
designSystemId: z145.string(),
|
|
4622
|
+
designSystemName: z145.string(),
|
|
4623
|
+
exporterId: z145.string(),
|
|
4624
|
+
versionId: z145.string(),
|
|
4625
|
+
brandId: z145.string().optional(),
|
|
4626
|
+
themeId: z145.string().optional(),
|
|
4627
|
+
exporterName: z145.string(),
|
|
4628
|
+
exporterPackageUrl: z145.string(),
|
|
4570
4629
|
exporterPropertyValues: ExporterPropertyValue.array(),
|
|
4571
4630
|
documentation: ExportJobDocumentationContext.optional()
|
|
4572
4631
|
});
|
|
4573
4632
|
|
|
4574
4633
|
// src/export/export-runner/exporter-payload.ts
|
|
4575
|
-
import { z as
|
|
4576
|
-
var ExporterFunctionPayload =
|
|
4577
|
-
exportJobId:
|
|
4578
|
-
exportContextId:
|
|
4579
|
-
designSystemId:
|
|
4580
|
-
workspaceId:
|
|
4634
|
+
import { z as z146 } from "zod";
|
|
4635
|
+
var ExporterFunctionPayload = z146.object({
|
|
4636
|
+
exportJobId: z146.string(),
|
|
4637
|
+
exportContextId: z146.string(),
|
|
4638
|
+
designSystemId: z146.string(),
|
|
4639
|
+
workspaceId: z146.string()
|
|
4581
4640
|
});
|
|
4582
4641
|
|
|
4583
4642
|
// src/export/export-jobs.ts
|
|
4584
|
-
import { z as
|
|
4585
|
-
var ExportJobDestinationType =
|
|
4643
|
+
import { z as z147 } from "zod";
|
|
4644
|
+
var ExportJobDestinationType = z147.enum([
|
|
4586
4645
|
"s3",
|
|
4587
4646
|
"webhookUrl",
|
|
4588
4647
|
"github",
|
|
@@ -4591,30 +4650,30 @@ var ExportJobDestinationType = z146.enum([
|
|
|
4591
4650
|
"gitlab",
|
|
4592
4651
|
"bitbucket"
|
|
4593
4652
|
]);
|
|
4594
|
-
var ExportJobStatus =
|
|
4595
|
-
var ExportJobLogEntryType =
|
|
4596
|
-
var ExportJobLogEntry =
|
|
4597
|
-
id:
|
|
4598
|
-
time:
|
|
4653
|
+
var ExportJobStatus = z147.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
4654
|
+
var ExportJobLogEntryType = z147.enum(["success", "info", "warning", "error", "user"]);
|
|
4655
|
+
var ExportJobLogEntry = z147.object({
|
|
4656
|
+
id: z147.string().optional(),
|
|
4657
|
+
time: z147.coerce.date(),
|
|
4599
4658
|
type: ExportJobLogEntryType,
|
|
4600
|
-
message:
|
|
4659
|
+
message: z147.string()
|
|
4601
4660
|
});
|
|
4602
|
-
var ExportJobPullRequestDestinationResult =
|
|
4603
|
-
pullRequestUrl:
|
|
4661
|
+
var ExportJobPullRequestDestinationResult = z147.object({
|
|
4662
|
+
pullRequestUrl: z147.string()
|
|
4604
4663
|
});
|
|
4605
|
-
var ExportJobS3DestinationResult =
|
|
4606
|
-
bucket:
|
|
4607
|
-
urlPrefix:
|
|
4608
|
-
path:
|
|
4609
|
-
files:
|
|
4610
|
-
url: nullishToOptional(
|
|
4611
|
-
urls: nullishToOptional(
|
|
4664
|
+
var ExportJobS3DestinationResult = z147.object({
|
|
4665
|
+
bucket: z147.string(),
|
|
4666
|
+
urlPrefix: z147.string().optional(),
|
|
4667
|
+
path: z147.string(),
|
|
4668
|
+
files: z147.array(z147.string()),
|
|
4669
|
+
url: nullishToOptional(z147.string()),
|
|
4670
|
+
urls: nullishToOptional(z147.string().array())
|
|
4612
4671
|
});
|
|
4613
|
-
var ExportJobDocsDestinationResult =
|
|
4614
|
-
url:
|
|
4672
|
+
var ExportJobDocsDestinationResult = z147.object({
|
|
4673
|
+
url: z147.string()
|
|
4615
4674
|
});
|
|
4616
|
-
var ExportJobResult =
|
|
4617
|
-
error:
|
|
4675
|
+
var ExportJobResult = z147.object({
|
|
4676
|
+
error: z147.string().optional(),
|
|
4618
4677
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
4619
4678
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
4620
4679
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -4623,21 +4682,21 @@ var ExportJobResult = z146.object({
|
|
|
4623
4682
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
4624
4683
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
4625
4684
|
});
|
|
4626
|
-
var ExportJob =
|
|
4627
|
-
id:
|
|
4628
|
-
createdAt:
|
|
4629
|
-
finishedAt:
|
|
4630
|
-
designSystemId:
|
|
4631
|
-
designSystemVersionId:
|
|
4632
|
-
workspaceId:
|
|
4633
|
-
scheduleId:
|
|
4634
|
-
exporterId:
|
|
4635
|
-
brandId:
|
|
4636
|
-
themeId:
|
|
4637
|
-
estimatedExecutionTime:
|
|
4685
|
+
var ExportJob = z147.object({
|
|
4686
|
+
id: z147.string(),
|
|
4687
|
+
createdAt: z147.coerce.date(),
|
|
4688
|
+
finishedAt: z147.coerce.date().optional(),
|
|
4689
|
+
designSystemId: z147.string(),
|
|
4690
|
+
designSystemVersionId: z147.string(),
|
|
4691
|
+
workspaceId: z147.string(),
|
|
4692
|
+
scheduleId: z147.string().nullish(),
|
|
4693
|
+
exporterId: z147.string(),
|
|
4694
|
+
brandId: z147.string().optional(),
|
|
4695
|
+
themeId: z147.string().optional(),
|
|
4696
|
+
estimatedExecutionTime: z147.number().optional(),
|
|
4638
4697
|
status: ExportJobStatus,
|
|
4639
4698
|
result: ExportJobResult.optional(),
|
|
4640
|
-
createdByUserId:
|
|
4699
|
+
createdByUserId: z147.string().optional(),
|
|
4641
4700
|
// Destinations
|
|
4642
4701
|
...ExportDestinationsMap.shape
|
|
4643
4702
|
});
|
|
@@ -4651,40 +4710,40 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
4651
4710
|
themeId: true,
|
|
4652
4711
|
brandId: true
|
|
4653
4712
|
}).extend({
|
|
4654
|
-
destinations:
|
|
4713
|
+
destinations: z147.array(ExportJobDestinationType),
|
|
4655
4714
|
docsEnvironment: PublishedDocEnvironment
|
|
4656
4715
|
}).partial();
|
|
4657
4716
|
|
|
4658
4717
|
// src/export/exporter-workspace-membership-role.ts
|
|
4659
|
-
import { z as
|
|
4660
|
-
var ExporterWorkspaceMembershipRole =
|
|
4718
|
+
import { z as z148 } from "zod";
|
|
4719
|
+
var ExporterWorkspaceMembershipRole = z148.enum(["Owner", "OwnerArchived", "User"]);
|
|
4661
4720
|
|
|
4662
4721
|
// src/export/exporter-workspace-membership.ts
|
|
4663
|
-
import { z as
|
|
4664
|
-
var ExporterWorkspaceMembership =
|
|
4665
|
-
id:
|
|
4666
|
-
workspaceId:
|
|
4667
|
-
exporterId:
|
|
4722
|
+
import { z as z149 } from "zod";
|
|
4723
|
+
var ExporterWorkspaceMembership = z149.object({
|
|
4724
|
+
id: z149.string(),
|
|
4725
|
+
workspaceId: z149.string(),
|
|
4726
|
+
exporterId: z149.string(),
|
|
4668
4727
|
role: ExporterWorkspaceMembershipRole
|
|
4669
4728
|
});
|
|
4670
4729
|
|
|
4671
4730
|
// src/feature-flags/feature-flags.ts
|
|
4672
|
-
import { z as
|
|
4673
|
-
var FlaggedFeature =
|
|
4674
|
-
var FeatureFlagMap =
|
|
4675
|
-
var FeatureFlag =
|
|
4676
|
-
id:
|
|
4731
|
+
import { z as z150 } from "zod";
|
|
4732
|
+
var FlaggedFeature = z150.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
|
|
4733
|
+
var FeatureFlagMap = z150.record(FlaggedFeature, z150.boolean());
|
|
4734
|
+
var FeatureFlag = z150.object({
|
|
4735
|
+
id: z150.string(),
|
|
4677
4736
|
feature: FlaggedFeature,
|
|
4678
|
-
createdAt:
|
|
4679
|
-
enabled:
|
|
4680
|
-
designSystemId:
|
|
4737
|
+
createdAt: z150.coerce.date(),
|
|
4738
|
+
enabled: z150.boolean(),
|
|
4739
|
+
designSystemId: z150.string().optional()
|
|
4681
4740
|
});
|
|
4682
4741
|
|
|
4683
4742
|
// src/integrations/external-oauth-request.ts
|
|
4684
|
-
import { z as
|
|
4743
|
+
import { z as z152 } from "zod";
|
|
4685
4744
|
|
|
4686
4745
|
// src/integrations/oauth-providers.ts
|
|
4687
|
-
import { z as
|
|
4746
|
+
import { z as z151 } from "zod";
|
|
4688
4747
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
4689
4748
|
OAuthProviderNames2["Figma"] = "figma";
|
|
4690
4749
|
OAuthProviderNames2["Azure"] = "azure";
|
|
@@ -4693,137 +4752,137 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
4693
4752
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
4694
4753
|
return OAuthProviderNames2;
|
|
4695
4754
|
})(OAuthProviderNames || {});
|
|
4696
|
-
var OAuthProviderSchema =
|
|
4755
|
+
var OAuthProviderSchema = z151.nativeEnum(OAuthProviderNames);
|
|
4697
4756
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
4698
4757
|
|
|
4699
4758
|
// src/integrations/external-oauth-request.ts
|
|
4700
|
-
var ExternalOAuthRequest =
|
|
4701
|
-
id:
|
|
4759
|
+
var ExternalOAuthRequest = z152.object({
|
|
4760
|
+
id: z152.string(),
|
|
4702
4761
|
provider: OAuthProviderSchema,
|
|
4703
|
-
userId:
|
|
4704
|
-
state:
|
|
4705
|
-
createdAt:
|
|
4762
|
+
userId: z152.string(),
|
|
4763
|
+
state: z152.string(),
|
|
4764
|
+
createdAt: z152.coerce.date()
|
|
4706
4765
|
});
|
|
4707
4766
|
|
|
4708
4767
|
// src/integrations/git.ts
|
|
4709
|
-
import { z as
|
|
4710
|
-
var GitObjectsQuery =
|
|
4711
|
-
organization:
|
|
4768
|
+
import { z as z153 } from "zod";
|
|
4769
|
+
var GitObjectsQuery = z153.object({
|
|
4770
|
+
organization: z153.string().optional(),
|
|
4712
4771
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
4713
|
-
project:
|
|
4772
|
+
project: z153.string().optional(),
|
|
4714
4773
|
// Only for Bitbucket and Azure
|
|
4715
|
-
repository:
|
|
4774
|
+
repository: z153.string().optional(),
|
|
4716
4775
|
// For all providers. For Gitlab, it's called "project".
|
|
4717
|
-
branch:
|
|
4776
|
+
branch: z153.string().optional(),
|
|
4718
4777
|
// For all providers.
|
|
4719
|
-
user:
|
|
4778
|
+
user: z153.string().optional()
|
|
4720
4779
|
// Gitlab user
|
|
4721
4780
|
});
|
|
4722
|
-
var GitOrganization =
|
|
4723
|
-
id:
|
|
4724
|
-
name:
|
|
4725
|
-
url:
|
|
4726
|
-
slug:
|
|
4781
|
+
var GitOrganization = z153.object({
|
|
4782
|
+
id: z153.string(),
|
|
4783
|
+
name: z153.string(),
|
|
4784
|
+
url: z153.string(),
|
|
4785
|
+
slug: z153.string()
|
|
4727
4786
|
});
|
|
4728
|
-
var GitProject =
|
|
4729
|
-
id:
|
|
4730
|
-
name:
|
|
4731
|
-
url:
|
|
4732
|
-
slug:
|
|
4787
|
+
var GitProject = z153.object({
|
|
4788
|
+
id: z153.string(),
|
|
4789
|
+
name: z153.string(),
|
|
4790
|
+
url: z153.string(),
|
|
4791
|
+
slug: z153.string()
|
|
4733
4792
|
});
|
|
4734
|
-
var GitRepository =
|
|
4735
|
-
id:
|
|
4736
|
-
name:
|
|
4737
|
-
url:
|
|
4738
|
-
slug:
|
|
4793
|
+
var GitRepository = z153.object({
|
|
4794
|
+
id: z153.string(),
|
|
4795
|
+
name: z153.string(),
|
|
4796
|
+
url: z153.string(),
|
|
4797
|
+
slug: z153.string(),
|
|
4739
4798
|
/**
|
|
4740
4799
|
* Can be undefined when:
|
|
4741
4800
|
* - there are no branches in the repository yet
|
|
4742
4801
|
* - Git provider doesn't expose this information on a repository via their API
|
|
4743
4802
|
*/
|
|
4744
|
-
defaultBranch:
|
|
4803
|
+
defaultBranch: z153.string().optional()
|
|
4745
4804
|
});
|
|
4746
|
-
var GitBranch =
|
|
4747
|
-
name:
|
|
4748
|
-
lastCommitId:
|
|
4805
|
+
var GitBranch = z153.object({
|
|
4806
|
+
name: z153.string(),
|
|
4807
|
+
lastCommitId: z153.string()
|
|
4749
4808
|
});
|
|
4750
4809
|
|
|
4751
4810
|
// src/integrations/oauth-token.ts
|
|
4752
|
-
import { z as
|
|
4753
|
-
var IntegrationTokenSchemaOld =
|
|
4754
|
-
id:
|
|
4811
|
+
import { z as z154 } from "zod";
|
|
4812
|
+
var IntegrationTokenSchemaOld = z154.object({
|
|
4813
|
+
id: z154.string(),
|
|
4755
4814
|
provider: OAuthProviderSchema,
|
|
4756
|
-
scope:
|
|
4757
|
-
userId:
|
|
4758
|
-
accessToken:
|
|
4759
|
-
refreshToken:
|
|
4760
|
-
expiresAt:
|
|
4761
|
-
externalUserId:
|
|
4815
|
+
scope: z154.string(),
|
|
4816
|
+
userId: z154.string(),
|
|
4817
|
+
accessToken: z154.string(),
|
|
4818
|
+
refreshToken: z154.string(),
|
|
4819
|
+
expiresAt: z154.coerce.date(),
|
|
4820
|
+
externalUserId: z154.string().nullish()
|
|
4762
4821
|
});
|
|
4763
4822
|
|
|
4764
4823
|
// src/integrations/workspace-oauth-requests.ts
|
|
4765
|
-
import { z as
|
|
4766
|
-
var WorkspaceOAuthRequestSchema =
|
|
4767
|
-
id:
|
|
4768
|
-
workspaceId:
|
|
4824
|
+
import { z as z155 } from "zod";
|
|
4825
|
+
var WorkspaceOAuthRequestSchema = z155.object({
|
|
4826
|
+
id: z155.string(),
|
|
4827
|
+
workspaceId: z155.string(),
|
|
4769
4828
|
provider: OAuthProviderSchema,
|
|
4770
|
-
userId:
|
|
4771
|
-
createdAt:
|
|
4829
|
+
userId: z155.string(),
|
|
4830
|
+
createdAt: z155.coerce.date()
|
|
4772
4831
|
});
|
|
4773
4832
|
|
|
4774
4833
|
// src/npm/npm-package.ts
|
|
4775
|
-
import { z as
|
|
4776
|
-
var AnyRecord =
|
|
4834
|
+
import { z as z156 } from "zod";
|
|
4835
|
+
var AnyRecord = z156.record(z156.any());
|
|
4777
4836
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
4778
|
-
|
|
4779
|
-
tarball:
|
|
4837
|
+
z156.object({
|
|
4838
|
+
tarball: z156.string()
|
|
4780
4839
|
})
|
|
4781
4840
|
);
|
|
4782
4841
|
var NpmPackageVersion = AnyRecord.and(
|
|
4783
|
-
|
|
4842
|
+
z156.object({
|
|
4784
4843
|
dist: NpmPackageVersionDist
|
|
4785
4844
|
})
|
|
4786
4845
|
);
|
|
4787
4846
|
var NpmPackage = AnyRecord.and(
|
|
4788
|
-
|
|
4789
|
-
_id:
|
|
4790
|
-
name:
|
|
4847
|
+
z156.object({
|
|
4848
|
+
_id: z156.string(),
|
|
4849
|
+
name: z156.string(),
|
|
4791
4850
|
// e.g. "latest": "1.2.3"
|
|
4792
|
-
"dist-tags":
|
|
4851
|
+
"dist-tags": z156.record(z156.string(), z156.string()),
|
|
4793
4852
|
// "1.2.3": {...}
|
|
4794
|
-
versions:
|
|
4853
|
+
versions: z156.record(NpmPackageVersion)
|
|
4795
4854
|
})
|
|
4796
4855
|
);
|
|
4797
4856
|
|
|
4798
4857
|
// src/npm/npm-proxy-token-payload.ts
|
|
4799
|
-
import { z as
|
|
4800
|
-
var NpmProxyTokenPayload =
|
|
4801
|
-
npmProxyRegistryConfigId:
|
|
4858
|
+
import { z as z157 } from "zod";
|
|
4859
|
+
var NpmProxyTokenPayload = z157.object({
|
|
4860
|
+
npmProxyRegistryConfigId: z157.string()
|
|
4802
4861
|
});
|
|
4803
4862
|
|
|
4804
4863
|
// src/tokens/personal-access-token.ts
|
|
4805
|
-
import { z as
|
|
4864
|
+
import { z as z165 } from "zod";
|
|
4806
4865
|
|
|
4807
4866
|
// src/workspace/user-invite.ts
|
|
4808
|
-
import { z as
|
|
4867
|
+
import { z as z159 } from "zod";
|
|
4809
4868
|
|
|
4810
4869
|
// src/workspace/workspace-role.ts
|
|
4811
|
-
import { z as
|
|
4812
|
-
var WorkspaceRoleSchema =
|
|
4870
|
+
import { z as z158 } from "zod";
|
|
4871
|
+
var WorkspaceRoleSchema = z158.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
|
|
4813
4872
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
4814
4873
|
|
|
4815
4874
|
// src/workspace/user-invite.ts
|
|
4816
4875
|
var MAX_MEMBERS_COUNT = 100;
|
|
4817
|
-
var UserInvite =
|
|
4818
|
-
email:
|
|
4876
|
+
var UserInvite = z159.object({
|
|
4877
|
+
email: z159.string().email().trim().transform((value) => value.toLowerCase()),
|
|
4819
4878
|
role: WorkspaceRoleSchema
|
|
4820
4879
|
});
|
|
4821
|
-
var UserInvites =
|
|
4880
|
+
var UserInvites = z159.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
4822
4881
|
|
|
4823
4882
|
// src/workspace/workspace-configuration.ts
|
|
4824
|
-
import { z as
|
|
4825
|
-
var WorkspaceConfigurationUpdate =
|
|
4826
|
-
id:
|
|
4883
|
+
import { z as z160 } from "zod";
|
|
4884
|
+
var WorkspaceConfigurationUpdate = z160.object({
|
|
4885
|
+
id: z160.string(),
|
|
4827
4886
|
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
4828
4887
|
sso: SsoProvider.optional(),
|
|
4829
4888
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
@@ -4831,32 +4890,32 @@ var WorkspaceConfigurationUpdate = z159.object({
|
|
|
4831
4890
|
});
|
|
4832
4891
|
|
|
4833
4892
|
// src/workspace/workspace-context.ts
|
|
4834
|
-
import { z as
|
|
4835
|
-
var WorkspaceContext =
|
|
4836
|
-
workspaceId:
|
|
4893
|
+
import { z as z161 } from "zod";
|
|
4894
|
+
var WorkspaceContext = z161.object({
|
|
4895
|
+
workspaceId: z161.string(),
|
|
4837
4896
|
product: ProductCodeSchema,
|
|
4838
4897
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4839
|
-
publicDesignSystem:
|
|
4898
|
+
publicDesignSystem: z161.boolean().optional()
|
|
4840
4899
|
});
|
|
4841
4900
|
|
|
4842
4901
|
// src/workspace/workspace-create.ts
|
|
4843
|
-
import { z as
|
|
4902
|
+
import { z as z162 } from "zod";
|
|
4844
4903
|
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
4845
4904
|
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
4846
4905
|
var HANDLE_MIN_LENGTH = 2;
|
|
4847
4906
|
var HANDLE_MAX_LENGTH = 64;
|
|
4848
|
-
var CreateWorkspaceInput =
|
|
4849
|
-
name:
|
|
4907
|
+
var CreateWorkspaceInput = z162.object({
|
|
4908
|
+
name: z162.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
4850
4909
|
product: ProductCodeSchema,
|
|
4851
|
-
priceId:
|
|
4852
|
-
billingEmail:
|
|
4853
|
-
handle:
|
|
4910
|
+
priceId: z162.string(),
|
|
4911
|
+
billingEmail: z162.string().email().optional(),
|
|
4912
|
+
handle: z162.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
|
|
4854
4913
|
invites: UserInvites.optional(),
|
|
4855
|
-
promoCode:
|
|
4914
|
+
promoCode: z162.string().optional(),
|
|
4856
4915
|
status: InternalStatusSchema.optional(),
|
|
4857
4916
|
planInterval: BillingIntervalSchema.optional(),
|
|
4858
|
-
seats:
|
|
4859
|
-
seatLimit:
|
|
4917
|
+
seats: z162.number().optional(),
|
|
4918
|
+
seatLimit: z162.number().optional(),
|
|
4860
4919
|
card: CardSchema.optional(),
|
|
4861
4920
|
sso: SsoProvider.optional(),
|
|
4862
4921
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
@@ -4864,47 +4923,47 @@ var CreateWorkspaceInput = z161.object({
|
|
|
4864
4923
|
});
|
|
4865
4924
|
|
|
4866
4925
|
// src/workspace/workspace-invitations.ts
|
|
4867
|
-
import { z as z162 } from "zod";
|
|
4868
|
-
var WorkspaceInvitation = z162.object({
|
|
4869
|
-
id: z162.string(),
|
|
4870
|
-
email: z162.string().email(),
|
|
4871
|
-
createdAt: z162.coerce.date(),
|
|
4872
|
-
resentAt: z162.coerce.date().nullish(),
|
|
4873
|
-
role: z162.nativeEnum(WorkspaceRole),
|
|
4874
|
-
workspaceId: z162.string(),
|
|
4875
|
-
invitedBy: z162.string()
|
|
4876
|
-
});
|
|
4877
|
-
|
|
4878
|
-
// src/workspace/workspace-membership.ts
|
|
4879
4926
|
import { z as z163 } from "zod";
|
|
4880
|
-
var
|
|
4927
|
+
var WorkspaceInvitation = z163.object({
|
|
4881
4928
|
id: z163.string(),
|
|
4882
|
-
|
|
4929
|
+
email: z163.string().email(),
|
|
4930
|
+
createdAt: z163.coerce.date(),
|
|
4931
|
+
resentAt: z163.coerce.date().nullish(),
|
|
4932
|
+
role: z163.nativeEnum(WorkspaceRole),
|
|
4883
4933
|
workspaceId: z163.string(),
|
|
4884
|
-
|
|
4934
|
+
invitedBy: z163.string()
|
|
4935
|
+
});
|
|
4936
|
+
|
|
4937
|
+
// src/workspace/workspace-membership.ts
|
|
4938
|
+
import { z as z164 } from "zod";
|
|
4939
|
+
var WorkspaceMembership = z164.object({
|
|
4940
|
+
id: z164.string(),
|
|
4941
|
+
userId: z164.string(),
|
|
4942
|
+
workspaceId: z164.string(),
|
|
4943
|
+
workspaceRole: z164.nativeEnum(WorkspaceRole),
|
|
4885
4944
|
notificationSettings: UserNotificationSettings
|
|
4886
4945
|
});
|
|
4887
|
-
var UpdateMembershipRolesInput =
|
|
4888
|
-
members:
|
|
4889
|
-
|
|
4890
|
-
userId:
|
|
4891
|
-
role:
|
|
4946
|
+
var UpdateMembershipRolesInput = z164.object({
|
|
4947
|
+
members: z164.array(
|
|
4948
|
+
z164.object({
|
|
4949
|
+
userId: z164.string(),
|
|
4950
|
+
role: z164.nativeEnum(WorkspaceRole)
|
|
4892
4951
|
})
|
|
4893
4952
|
)
|
|
4894
4953
|
});
|
|
4895
4954
|
|
|
4896
4955
|
// src/tokens/personal-access-token.ts
|
|
4897
|
-
var PersonalAccessToken =
|
|
4898
|
-
id:
|
|
4899
|
-
userId:
|
|
4900
|
-
workspaceId:
|
|
4956
|
+
var PersonalAccessToken = z165.object({
|
|
4957
|
+
id: z165.string(),
|
|
4958
|
+
userId: z165.string(),
|
|
4959
|
+
workspaceId: z165.string().optional(),
|
|
4901
4960
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
4902
|
-
name:
|
|
4903
|
-
hidden:
|
|
4904
|
-
token:
|
|
4905
|
-
scope:
|
|
4906
|
-
createdAt:
|
|
4907
|
-
expireAt:
|
|
4961
|
+
name: z165.string(),
|
|
4962
|
+
hidden: z165.boolean(),
|
|
4963
|
+
token: z165.string(),
|
|
4964
|
+
scope: z165.string().optional(),
|
|
4965
|
+
createdAt: z165.coerce.date(),
|
|
4966
|
+
expireAt: z165.coerce.date().optional()
|
|
4908
4967
|
});
|
|
4909
4968
|
export {
|
|
4910
4969
|
Address,
|
|
@@ -4922,6 +4981,7 @@ export {
|
|
|
4922
4981
|
AssetType,
|
|
4923
4982
|
AssetValue,
|
|
4924
4983
|
AuthTokens,
|
|
4984
|
+
BaseComponent,
|
|
4925
4985
|
BillingDetails,
|
|
4926
4986
|
BillingIntervalSchema,
|
|
4927
4987
|
BillingType,
|
|
@@ -5509,6 +5569,9 @@ export {
|
|
|
5509
5569
|
nonNullishFilter,
|
|
5510
5570
|
nullishToOptional,
|
|
5511
5571
|
parseUrl,
|
|
5572
|
+
pickLatestGroupSnapshots,
|
|
5573
|
+
pickLatestPageSnapshots,
|
|
5574
|
+
pickLatestSnapshots,
|
|
5512
5575
|
promiseWithTimeout,
|
|
5513
5576
|
publishedDocEnvironments,
|
|
5514
5577
|
sleep,
|