@supernova-studio/client 0.47.35 → 0.47.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -30,8 +30,8 @@ import { z as z18 } from "zod";
30
30
  import { z as z19 } from "zod";
31
31
  import { z as z20 } from "zod";
32
32
  import { z as z21 } from "zod";
33
- import { z as z91 } from "zod";
34
- import { z as z90 } from "zod";
33
+ import { z as z81 } from "zod";
34
+ import { z as z80 } from "zod";
35
35
  import { z as z22 } from "zod";
36
36
  import { z as z24 } from "zod";
37
37
  import { z as z23 } from "zod";
@@ -90,28 +90,28 @@ import { z as z76 } from "zod";
90
90
  import { z as z78 } from "zod";
91
91
  import { z as z77 } from "zod";
92
92
  import { z as z79 } from "zod";
93
- import { z as z81 } from "zod";
94
- import { z as z80 } from "zod";
95
- import { z as z89 } from "zod";
96
93
  import { z as z82 } from "zod";
97
- import { z as z84 } from "zod";
98
94
  import { z as z83 } from "zod";
99
- import { z as z85 } from "zod";
100
95
  import { z as z86 } from "zod";
96
+ import { z as z85 } from "zod";
97
+ import { z as z84 } from "zod";
101
98
  import { z as z87 } from "zod";
102
99
  import { z as z88 } from "zod";
100
+ import { z as z89 } from "zod";
101
+ import { z as z90 } from "zod";
102
+ import { z as z91 } from "zod";
103
103
  import { z as z92 } from "zod";
104
104
  import { z as z93 } from "zod";
105
- import { z as z96 } from "zod";
106
- import { z as z95 } from "zod";
107
105
  import { z as z94 } from "zod";
108
- import { z as z97 } from "zod";
106
+ import { z as z95 } from "zod";
107
+ import { z as z103 } from "zod";
108
+ import { z as z96 } from "zod";
109
109
  import { z as z98 } from "zod";
110
+ import { z as z97 } from "zod";
110
111
  import { z as z99 } from "zod";
111
112
  import { z as z100 } from "zod";
112
113
  import { z as z101 } from "zod";
113
114
  import { z as z102 } from "zod";
114
- import { z as z103 } from "zod";
115
115
  import { z as z104 } from "zod";
116
116
  import { z as z105 } from "zod";
117
117
  import { z as z106 } from "zod";
@@ -133,41 +133,42 @@ import { z as z121 } from "zod";
133
133
  import { z as z122 } from "zod";
134
134
  import { z as z123 } from "zod";
135
135
  import { z as z124 } from "zod";
136
- import { z as z130 } from "zod";
137
- import { z as z129 } from "zod";
136
+ import { z as z139 } from "zod";
138
137
  import { z as z127 } from "zod";
139
138
  import { z as z128 } from "zod";
140
- import slugifyImplementation from "@sindresorhus/slugify";
141
- import { z as z139 } from "zod";
139
+ import { z as z129 } from "zod";
140
+ import { z as z130 } from "zod";
142
141
  import { z as z131 } from "zod";
143
142
  import { z as z132 } from "zod";
144
143
  import { z as z133 } from "zod";
145
144
  import { z as z134 } from "zod";
146
145
  import { z as z135 } from "zod";
147
- import { z as z136 } from "zod";
148
- import { z as z137 } from "zod";
149
146
  import { z as z138 } from "zod";
147
+ import { z as z137 } from "zod";
148
+ import { z as z136 } from "zod";
149
+ import slugifyImplementation from "@sindresorhus/slugify";
150
150
  import { z as z140 } from "zod";
151
151
  import { z as z141 } from "zod";
152
152
  import { z as z142 } from "zod";
153
153
  import { z as z143 } from "zod";
154
154
  import { z as z144 } from "zod";
155
155
  import { z as z145 } from "zod";
156
- import { z as z147 } from "zod";
157
156
  import { z as z146 } from "zod";
158
157
  import { z as z148 } from "zod";
158
+ import { z as z147 } from "zod";
159
159
  import { z as z149 } from "zod";
160
160
  import { z as z150 } from "zod";
161
161
  import { z as z151 } from "zod";
162
162
  import { z as z152 } from "zod";
163
- import { z as z160 } from "zod";
164
- import { z as z154 } from "zod";
165
163
  import { z as z153 } from "zod";
164
+ import { z as z161 } from "zod";
166
165
  import { z as z155 } from "zod";
166
+ import { z as z154 } from "zod";
167
167
  import { z as z156 } from "zod";
168
168
  import { z as z157 } from "zod";
169
169
  import { z as z158 } from "zod";
170
170
  import { z as z159 } from "zod";
171
+ import { z as z160 } from "zod";
171
172
  var AssetDeleteScheduleStatus = z.enum(["InProgress", "Pending"]);
172
173
  var AssetDeleteSchedule = z.object({
173
174
  id: z.string(),
@@ -530,9 +531,7 @@ var Asset = z21.object({
530
531
  origin: AssetOrigin.optional(),
531
532
  originKey: z21.string().optional()
532
533
  });
533
- var ResolvedAsset = Asset.omit({
534
- filePath: true
535
- }).extend({
534
+ var ResolvedAsset = Asset.extend({
536
535
  url: z21.string()
537
536
  });
538
537
  var TokenDataAliasSchema = z22.object({
@@ -1751,18 +1750,7 @@ var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
1751
1750
  overrides: z78.array(ThemeOverride),
1752
1751
  codeName: z78.string()
1753
1752
  });
1754
- var FigmaFileDownloadScope = z79.object({
1755
- styles: z79.boolean(),
1756
- components: z79.boolean(),
1757
- currentVersion: z79.literal("__latest__").nullable(),
1758
- publishedVersion: z79.string().nullable(),
1759
- downloadChunkSize: z79.number().optional(),
1760
- maxFileDepth: z79.number().optional()
1761
- });
1762
- var FigmaFileAccessData = z79.object({
1763
- accessToken: z79.string()
1764
- });
1765
- var ImportWarningType = z80.enum([
1753
+ var ImportWarningType = z79.enum([
1766
1754
  "NoVersionFound",
1767
1755
  "UnsupportedFill",
1768
1756
  "UnsupportedStroke",
@@ -1777,228 +1765,25 @@ var ImportWarningType = z80.enum([
1777
1765
  "DuplicateImportedStylePath",
1778
1766
  "NoUnpublishedStyles"
1779
1767
  ]);
1780
- var ImportWarning = z80.object({
1768
+ var ImportWarning = z79.object({
1781
1769
  warningType: ImportWarningType,
1782
- componentId: z80.string().optional(),
1783
- componentName: z80.string().optional(),
1784
- styleId: z80.string().optional(),
1785
- styleName: z80.string().optional(),
1786
- unsupportedStyleValueType: z80.string().optional()
1787
- });
1788
- var ImportFunctionInput = z81.object({
1789
- importJobId: z81.string(),
1790
- importContextId: z81.string(),
1791
- designSystemId: z81.string().optional()
1792
- });
1793
- var ImportedFigmaSourceData = z81.object({
1794
- sourceId: z81.string(),
1795
- figmaRemote: DataSourceFigmaRemote
1796
- });
1797
- var FigmaImportBaseContext = z81.object({
1798
- designSystemId: z81.string(),
1799
- /**
1800
- * Data required for accessing Figma files. This should contain access data for all file ids
1801
- * mentioned in the `importedSourceDataBySourceId`
1802
- *
1803
- * fileId: file data
1804
- */
1805
- fileAccessByFileId: z81.record(FigmaFileAccessData),
1806
- /**
1807
- * Figma source data for which import was requested
1808
- *
1809
- * sourceId: source data
1810
- */
1811
- importedSourceDataBySourceId: z81.record(ImportedFigmaSourceData),
1812
- /**
1813
- * Array of warnings that will be written into the import result summary at the end
1814
- * of import job execution and displayed by the client.
1815
- */
1816
- importWarnings: z81.record(ImportWarning.array()).default({})
1817
- });
1818
- var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
1819
- sourcesWithMissingAccess: z81.array(z81.string()).default([]),
1820
- shadowOpacityOptional: z81.boolean().default(false)
1821
- });
1822
- var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
1823
- importMetadata: DataSourceFigmaImportMetadata
1824
- });
1825
- var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.extend({
1826
- /**
1827
- * Describes what to download from each file, this should contain all file id mentioned in
1828
- * importMetadataBySourceId.
1829
- *
1830
- * File id -> file download scope
1831
- */
1832
- fileDownloadScopesByFileId: z81.record(FigmaFileDownloadScope),
1833
- /**
1834
- * Sources filtered down to the ones that have changed since last import and therefore need to be
1835
- * imported again.
1836
- *
1837
- * Source id -> import metadata
1838
- */
1839
- changedImportedSourceDataBySourceId: z81.record(ChangedImportedFigmaSourceData)
1840
- });
1841
- var ImageImportModelType = z82.enum(["Url", "FigmaRender"]);
1842
- var ImageImportModelBase = z82.object({
1843
- scope: AssetScope
1844
- });
1845
- var UrlImageImportModel = ImageImportModelBase.extend({
1846
- type: z82.literal(ImageImportModelType.enum.Url),
1847
- url: z82.string(),
1848
- originKey: z82.string(),
1849
- extension: z82.string()
1850
- });
1851
- var FigmaRenderFormat = z82.enum(["Svg", "Png"]);
1852
- var FigmaRenderBase = ImageImportModelBase.extend({
1853
- type: z82.literal(ImageImportModelType.enum.FigmaRender),
1854
- fileId: z82.string(),
1855
- fileVersionId: z82.string().optional(),
1856
- nodeId: z82.string(),
1857
- originKey: z82.string()
1858
- });
1859
- var FigmaPngRenderImportModel = FigmaRenderBase.extend({
1860
- format: z82.literal(FigmaRenderFormat.enum.Png),
1861
- scale: z82.number()
1862
- });
1863
- var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
1864
- format: z82.literal(FigmaRenderFormat.enum.Svg)
1865
- });
1866
- var FigmaRenderImportModel = z82.discriminatedUnion("format", [
1867
- FigmaPngRenderImportModel,
1868
- FigmaSvgRenderImportModel
1869
- ]);
1870
- var ImageImportModel = z82.union([UrlImageImportModel, FigmaRenderImportModel]);
1871
- var ImportModelBase = z83.object({
1872
- id: z83.string(),
1873
- meta: ObjectMeta,
1874
- origin: DesignElementOrigin,
1875
- brandPersistentId: z83.string(),
1876
- sortOrder: z83.number()
1877
- });
1878
- var ImportModelInputBase = ImportModelBase.omit({
1879
- brandPersistentId: true,
1880
- origin: true,
1881
- sortOrder: true
1882
- }).extend({
1883
- originId: z83.string(),
1884
- originMetadata: z83.record(z83.any())
1885
- });
1886
- var ComponentImportModelPart = z84.object({
1887
- thumbnail: ImageImportModel
1888
- });
1889
- var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
1890
- isAsset: z84.boolean(),
1891
- svg: FigmaSvgRenderImportModel.optional(),
1892
- origin: ComponentOrigin
1893
- });
1894
- var ComponentImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart.shape).extend({
1895
- originMetadata: ComponentOriginPart
1896
- });
1897
- var AssetImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart.shape).extend({
1898
- svg: FigmaSvgRenderImportModel,
1899
- originMetadata: ComponentOriginPart
1900
- });
1901
- var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
1902
- z85.object({
1903
- id: z85.string(),
1904
- meta: ObjectMeta
1905
- })
1906
- );
1907
- var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
1908
- z85.object({
1909
- origin: ThemeOverrideOrigin
1910
- })
1911
- );
1912
- var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
1913
- z85.object({
1914
- originId: z85.string(),
1915
- originMetadata: ThemeOverrideOriginPart
1916
- })
1917
- );
1918
- var ThemeImportModel = z85.object({
1919
- meta: ObjectMeta,
1920
- brandPersistentId: z85.string(),
1921
- originSource: ThemeOriginSource,
1922
- overrides: z85.array(ThemeOverrideImportModel),
1923
- sortOrder: z85.number()
1924
- });
1925
- var ThemeImportModelInput = z85.object({
1926
- meta: ObjectMeta,
1927
- originObjects: z85.array(ThemeOriginObject),
1928
- overrides: z85.array(ThemeOverrideImportModelInput)
1929
- });
1930
- var ThemeUpdateImportModel = z85.object({
1931
- themePersistentId: z85.string(),
1932
- overrides: z85.array(ThemeOverrideImportModel)
1933
- });
1934
- var ThemeUpdateImportModelInput = z85.object({
1935
- themePersistentId: z85.string(),
1936
- overrides: z85.array(ThemeOverrideImportModelInput)
1937
- });
1938
- var DesignTokenImportModelPart = z86.object({
1939
- collection: z86.string().optional()
1940
- });
1941
- var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
1942
- origin: DesignTokenOrigin
1943
- });
1944
- var DesignTokenImportModelInputBase = ImportModelInputBase.extend(DesignTokenImportModelPart.shape).extend({
1945
- originMetadata: DesignTokenOriginPart
1770
+ componentId: z79.string().optional(),
1771
+ componentName: z79.string().optional(),
1772
+ styleId: z79.string().optional(),
1773
+ styleName: z79.string().optional(),
1774
+ unsupportedStyleValueType: z79.string().optional()
1946
1775
  });
1947
- var DesignTokenImportModel = DesignTokenTypedData.and(DesignTokenImportModelBase);
1948
- var DesignTokenImportModelInput = DesignTokenTypedData.and(DesignTokenImportModelInputBase);
1949
- var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
1950
- image: FigmaPngRenderImportModel
1951
- });
1952
- var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
1953
- children: z87.lazy(() => FigmaFileStructureNodeImportModel.array())
1954
- });
1955
- var FigmaFileStructureImportModelPart = z87.object({
1956
- data: z87.object({
1957
- rootNode: FigmaFileStructureNodeImportModel,
1958
- assetsInFile: FigmaFileStructureStatistics
1959
- })
1960
- });
1961
- var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImportModelPart.shape).extend({
1962
- origin: FigmaFileStructureOrigin
1963
- });
1964
- var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
1965
- FigmaFileStructureImportModelPart.shape
1966
- ).extend({
1967
- fileVersionId: z87.string()
1968
- });
1969
- var DataSourceImportModel = z88.object({
1970
- id: z88.string(),
1971
- fileName: z88.string().optional(),
1972
- thumbnailUrl: z88.string().optional()
1973
- });
1974
- var ImportModelInputCollection = z89.object({
1975
- source: DataSourceImportModel,
1976
- tokens: z89.array(DesignTokenImportModelInput).default([]),
1977
- components: z89.array(ComponentImportModelInput).default([]),
1978
- assets: z89.array(AssetImportModelInput).default([]),
1979
- themeUpdates: z89.array(ThemeUpdateImportModelInput).default([]),
1980
- themes: z89.array(ThemeImportModelInput).default([]),
1981
- figmaFileStructure: FigmaFileStructureImportModelInput.optional()
1982
- });
1983
- var ImportModelCollection = z89.object({
1984
- sources: z89.array(DataSourceImportModel),
1985
- tokens: z89.array(DesignTokenImportModel).default([]),
1986
- components: z89.array(ComponentImportModel).default([]),
1987
- themeUpdates: z89.array(ThemeUpdateImportModel).default([]),
1988
- themes: z89.array(ThemeImportModel).default([]),
1989
- figmaFileStructures: z89.array(FigmaFileStructureImportModel)
1990
- });
1991
- var FileStructureStats = z90.object({
1776
+ var FileStructureStats = z80.object({
1992
1777
  frames: zeroNumberByDefault(),
1993
1778
  components: zeroNumberByDefault(),
1994
1779
  componentSets: zeroNumberByDefault()
1995
1780
  });
1996
1781
  var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
1997
1782
  // Backward compatibility
1998
- z90.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
1783
+ z80.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
1999
1784
  );
2000
- var SourceImportSummaryByTokenType = z90.record(SourceImportSummaryByTokenTypeKey, z90.number());
2001
- var SourceImportTokenSummary = z90.object({
1785
+ var SourceImportSummaryByTokenType = z80.record(SourceImportSummaryByTokenTypeKey, z80.number());
1786
+ var SourceImportTokenSummary = z80.object({
2002
1787
  tokensCreated: zeroNumberByDefault(),
2003
1788
  tokensUpdated: zeroNumberByDefault(),
2004
1789
  tokensDeleted: zeroNumberByDefault(),
@@ -2006,7 +1791,7 @@ var SourceImportTokenSummary = z90.object({
2006
1791
  tokensUpdatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {}),
2007
1792
  tokensDeletedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {})
2008
1793
  });
2009
- var SourceImportComponentSummary = z90.object({
1794
+ var SourceImportComponentSummary = z80.object({
2010
1795
  componentsCreated: zeroNumberByDefault(),
2011
1796
  componentsUpdated: zeroNumberByDefault(),
2012
1797
  componentsDeleted: zeroNumberByDefault(),
@@ -2014,153 +1799,153 @@ var SourceImportComponentSummary = z90.object({
2014
1799
  componentAssetsUpdated: zeroNumberByDefault(),
2015
1800
  componentAssetsDeleted: zeroNumberByDefault()
2016
1801
  });
2017
- var SourceImportFrameSummary = z90.object({
1802
+ var SourceImportFrameSummary = z80.object({
2018
1803
  assetsInFile: nullishToOptional(FileStructureStats.optional()),
2019
- invalidReferencesCount: nullishToOptional(z90.number().optional())
2020
- });
2021
- var SourceImportSummary = z90.object({
2022
- sourceId: nullishToOptional(z90.string()),
2023
- brandId: nullishToOptional(z90.string()),
2024
- versionId: nullishToOptional(z90.string()),
2025
- error: nullishToOptional(z90.any()),
2026
- isFailed: z90.boolean(),
2027
- warnings: z90.array(ImportWarning).nullish().transform((v) => v ?? []),
1804
+ invalidReferencesCount: nullishToOptional(z80.number().optional())
1805
+ });
1806
+ var SourceImportSummary = z80.object({
1807
+ sourceId: nullishToOptional(z80.string()),
1808
+ brandId: nullishToOptional(z80.string()),
1809
+ versionId: nullishToOptional(z80.string()),
1810
+ error: nullishToOptional(z80.any()),
1811
+ isFailed: z80.boolean(),
1812
+ warnings: z80.array(ImportWarning).nullish().transform((v) => v ?? []),
2028
1813
  ...SourceImportTokenSummary.shape,
2029
1814
  ...SourceImportComponentSummary.shape,
2030
1815
  ...FileStructureStats.shape
2031
1816
  });
2032
1817
  function zeroNumberByDefault() {
2033
- return z90.number().nullish().transform((v) => v ?? 0);
1818
+ return z80.number().nullish().transform((v) => v ?? 0);
2034
1819
  }
2035
- var DataSourceRemoteType = z91.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
2036
- var DataSourceUploadRemoteSource = z91.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
2037
- var DataSourceFigmaState = z91.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
2038
- var DataSourceAutoImportMode = z91.enum(["Never", "Hourly"]);
2039
- var DataSourceStats = z91.object({
1820
+ var DataSourceRemoteType = z81.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
1821
+ var DataSourceUploadRemoteSource = z81.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
1822
+ var DataSourceFigmaState = z81.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
1823
+ var DataSourceAutoImportMode = z81.enum(["Never", "Hourly"]);
1824
+ var DataSourceStats = z81.object({
2040
1825
  tokens: zeroNumberByDefault2(),
2041
1826
  components: zeroNumberByDefault2(),
2042
1827
  assets: zeroNumberByDefault2(),
2043
1828
  frames: zeroNumberByDefault2()
2044
1829
  });
2045
- var DataSourceFigmaFileData = z91.object({
2046
- lastUpdatedAt: z91.coerce.date()
1830
+ var DataSourceFigmaFileData = z81.object({
1831
+ lastUpdatedAt: z81.coerce.date()
2047
1832
  });
2048
- var DataSourceFigmaFileVersionData = z91.object({
2049
- id: z91.string(),
2050
- label: z91.string().optional(),
2051
- description: z91.string().optional(),
2052
- createdAt: z91.coerce.date()
2053
- });
2054
- var DataSourceFigmaScope = z91.object({
2055
- assets: z91.boolean(),
2056
- components: z91.boolean(),
2057
- documentationFrames: z91.boolean(),
2058
- tokens: z91.boolean(),
2059
- themePersistentId: z91.string().optional(),
2060
- isUnpublishedContentFallbackEnabled: z91.boolean()
2061
- });
2062
- var DataSourceFigmaImportMetadata = z91.object({
1833
+ var DataSourceFigmaFileVersionData = z81.object({
1834
+ id: z81.string(),
1835
+ label: z81.string().optional(),
1836
+ description: z81.string().optional(),
1837
+ createdAt: z81.coerce.date()
1838
+ });
1839
+ var DataSourceFigmaScope = z81.object({
1840
+ assets: z81.boolean(),
1841
+ components: z81.boolean(),
1842
+ documentationFrames: z81.boolean(),
1843
+ tokens: z81.boolean(),
1844
+ themePersistentId: z81.string().optional(),
1845
+ isUnpublishedContentFallbackEnabled: z81.boolean()
1846
+ });
1847
+ var DataSourceFigmaImportMetadata = z81.object({
2063
1848
  fileData: DataSourceFigmaFileData.optional(),
2064
1849
  importedPublishedVersion: DataSourceFigmaFileVersionData.optional()
2065
1850
  });
2066
- var DataSourceFigmaRemote = z91.object({
2067
- type: z91.literal(DataSourceRemoteType.Enum.Figma),
2068
- fileId: z91.string(),
2069
- preferredCredentialId: z91.string().optional(),
2070
- ownerId: z91.string(),
1851
+ var DataSourceFigmaRemote = z81.object({
1852
+ type: z81.literal(DataSourceRemoteType.Enum.Figma),
1853
+ fileId: z81.string(),
1854
+ preferredCredentialId: z81.string().optional(),
1855
+ ownerId: z81.string(),
2071
1856
  // todo remove or keep to reference who created data source
2072
- ownerName: z91.string(),
1857
+ ownerName: z81.string(),
2073
1858
  // todo probably remove
2074
1859
  scope: DataSourceFigmaScope,
2075
1860
  state: DataSourceFigmaState,
2076
- requiresSync: z91.boolean().optional().transform((v) => v ?? false),
1861
+ requiresSync: z81.boolean().optional().transform((v) => v ?? false),
2077
1862
  lastImportMetadata: DataSourceFigmaImportMetadata.optional(),
2078
- downloadChunkSize: z91.number().optional(),
2079
- figmaRenderChunkSize: z91.number().optional(),
2080
- maxFileDepth: z91.number().optional()
1863
+ downloadChunkSize: z81.number().optional(),
1864
+ figmaRenderChunkSize: z81.number().optional(),
1865
+ maxFileDepth: z81.number().optional()
2081
1866
  });
2082
- var DataSourceTokenStudioRemote = z91.object({
2083
- type: z91.literal(DataSourceRemoteType.Enum.TokenStudio)
1867
+ var DataSourceTokenStudioRemote = z81.object({
1868
+ type: z81.literal(DataSourceRemoteType.Enum.TokenStudio)
2084
1869
  });
2085
- var DataSourceUploadImportMetadata = z91.record(z91.any());
2086
- var DataSourceUploadRemote = z91.object({
2087
- type: z91.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
2088
- remoteId: z91.string(),
1870
+ var DataSourceUploadImportMetadata = z81.record(z81.any());
1871
+ var DataSourceUploadRemote = z81.object({
1872
+ type: z81.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
1873
+ remoteId: z81.string(),
2089
1874
  remoteSourceType: DataSourceUploadRemoteSource,
2090
1875
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
2091
1876
  });
2092
- var DataSourceRemote = z91.discriminatedUnion("type", [
1877
+ var DataSourceRemote = z81.discriminatedUnion("type", [
2093
1878
  DataSourceFigmaRemote,
2094
1879
  DataSourceUploadRemote,
2095
1880
  DataSourceTokenStudioRemote
2096
1881
  ]);
2097
- var DataSource = z91.object({
2098
- id: z91.string(),
2099
- name: z91.string(),
2100
- thumbnailUrl: z91.string().optional(),
2101
- createdAt: z91.coerce.date().optional(),
2102
- lastImportedAt: z91.coerce.date().optional(),
1882
+ var DataSource = z81.object({
1883
+ id: z81.string(),
1884
+ name: z81.string(),
1885
+ thumbnailUrl: z81.string().optional(),
1886
+ createdAt: z81.coerce.date().optional(),
1887
+ lastImportedAt: z81.coerce.date().optional(),
2103
1888
  lastImportSummary: SourceImportSummary.optional(),
2104
- designSystemId: z91.string(),
2105
- brandPersistentId: z91.string(),
1889
+ designSystemId: z81.string(),
1890
+ brandPersistentId: z81.string(),
2106
1891
  autoImportMode: DataSourceAutoImportMode,
2107
1892
  stats: DataSourceStats,
2108
1893
  remote: DataSourceRemote,
2109
- sortOrder: z91.number()
1894
+ sortOrder: z81.number()
2110
1895
  });
2111
- var DataSourceVersion = z91.object({
2112
- id: z91.string(),
2113
- createdAt: z91.coerce.date(),
2114
- label: z91.string().nullish(),
2115
- description: z91.string().nullish()
1896
+ var DataSourceVersion = z81.object({
1897
+ id: z81.string(),
1898
+ createdAt: z81.coerce.date(),
1899
+ label: z81.string().nullish(),
1900
+ description: z81.string().nullish()
2116
1901
  });
2117
1902
  function zeroNumberByDefault2() {
2118
- return z91.number().nullish().transform((v) => v ?? 0);
1903
+ return z81.number().nullish().transform((v) => v ?? 0);
2119
1904
  }
2120
- var ImportJobState = z92.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
2121
- var ImportJobOperation = z92.enum(["Check", "Import"]);
1905
+ var ImportJobState = z82.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
1906
+ var ImportJobOperation = z82.enum(["Check", "Import"]);
2122
1907
  var ImportJob = Entity.extend({
2123
- designSystemId: z92.string(),
2124
- designSystemVersionId: z92.string(),
2125
- sourceIds: z92.array(z92.string()),
1908
+ designSystemId: z82.string(),
1909
+ designSystemVersionId: z82.string(),
1910
+ sourceIds: z82.array(z82.string()),
2126
1911
  state: ImportJobState,
2127
- createdByUserId: z92.string().optional(),
2128
- importContextId: z92.string(),
2129
- error: z92.string().optional(),
1912
+ createdByUserId: z82.string().optional(),
1913
+ importContextId: z82.string(),
1914
+ error: z82.string().optional(),
2130
1915
  sourceType: DataSourceRemoteType,
2131
- importContextCleanedUp: z92.boolean()
2132
- });
2133
- var PageBlockDefinitionAppearance = z93.object({
2134
- isBordered: z93.boolean().optional(),
2135
- hasBackground: z93.boolean().optional(),
2136
- isEditorPresentationDifferent: z93.boolean().optional(),
2137
- showBlockHeaderInEditor: z93.boolean().optional()
2138
- });
2139
- var PageBlockDefinitionLayoutType = z94.enum(["Column", "Row"]);
2140
- var PageBlockDefinitionLayoutGap = z94.enum(["Small", "Medium", "Large", "None"]);
2141
- var PageBlockDefinitionLayoutAlign = z94.enum(["Start", "Center", "End"]);
2142
- var PageBlockDefinitionLayoutResizing = z94.enum(["Fill", "Hug"]);
2143
- var PageBlockDefinitionLayoutBase = z94.object({
1916
+ importContextCleanedUp: z82.boolean()
1917
+ });
1918
+ var PageBlockDefinitionAppearance = z83.object({
1919
+ isBordered: z83.boolean().optional(),
1920
+ hasBackground: z83.boolean().optional(),
1921
+ isEditorPresentationDifferent: z83.boolean().optional(),
1922
+ showBlockHeaderInEditor: z83.boolean().optional()
1923
+ });
1924
+ var PageBlockDefinitionLayoutType = z84.enum(["Column", "Row"]);
1925
+ var PageBlockDefinitionLayoutGap = z84.enum(["Small", "Medium", "Large", "None"]);
1926
+ var PageBlockDefinitionLayoutAlign = z84.enum(["Start", "Center", "End"]);
1927
+ var PageBlockDefinitionLayoutResizing = z84.enum(["Fill", "Hug"]);
1928
+ var PageBlockDefinitionLayoutBase = z84.object({
2144
1929
  type: PageBlockDefinitionLayoutType,
2145
1930
  gap: PageBlockDefinitionLayoutGap.optional(),
2146
1931
  columnAlign: PageBlockDefinitionLayoutAlign.optional(),
2147
1932
  columnResizing: PageBlockDefinitionLayoutResizing.optional()
2148
1933
  });
2149
1934
  var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
2150
- children: z94.lazy(() => z94.array(PageBlockDefinitionLayout.or(z94.string())))
2151
- });
2152
- var PageBlockDefinitionVariant = z94.object({
2153
- id: z94.string(),
2154
- name: z94.string(),
2155
- image: z94.string().optional(),
2156
- description: z94.string().optional(),
2157
- documentationLink: z94.string().optional(),
1935
+ children: z84.lazy(() => z84.array(PageBlockDefinitionLayout.or(z84.string())))
1936
+ });
1937
+ var PageBlockDefinitionVariant = z84.object({
1938
+ id: z84.string(),
1939
+ name: z84.string(),
1940
+ image: z84.string().optional(),
1941
+ description: z84.string().optional(),
1942
+ documentationLink: z84.string().optional(),
2158
1943
  layout: PageBlockDefinitionLayout,
2159
- maxColumns: z94.number().optional(),
2160
- defaultColumns: z94.number().optional(),
1944
+ maxColumns: z84.number().optional(),
1945
+ defaultColumns: z84.number().optional(),
2161
1946
  appearance: PageBlockDefinitionAppearance.optional()
2162
1947
  });
2163
- var PageBlockDefinitionPropertyType = z95.enum([
1948
+ var PageBlockDefinitionPropertyType = z85.enum([
2164
1949
  "RichText",
2165
1950
  "MultiRichText",
2166
1951
  "Text",
@@ -2188,7 +1973,7 @@ var PageBlockDefinitionPropertyType = z95.enum([
2188
1973
  "Color",
2189
1974
  "FigmaComponent"
2190
1975
  ]);
2191
- var PageBlockDefinitionRichTextPropertyStyle = z95.enum([
1976
+ var PageBlockDefinitionRichTextPropertyStyle = z85.enum([
2192
1977
  "Title1",
2193
1978
  "Title2",
2194
1979
  "Title3",
@@ -2198,8 +1983,8 @@ var PageBlockDefinitionRichTextPropertyStyle = z95.enum([
2198
1983
  "Callout",
2199
1984
  "Default"
2200
1985
  ]);
2201
- var PageBlockDefinitionMultiRichTextPropertyStyle = z95.enum(["OL", "UL", "Default"]);
2202
- var PageBlockDefinitionTextPropertyStyle = z95.enum([
1986
+ var PageBlockDefinitionMultiRichTextPropertyStyle = z85.enum(["OL", "UL", "Default"]);
1987
+ var PageBlockDefinitionTextPropertyStyle = z85.enum([
2203
1988
  "Title1",
2204
1989
  "Title2",
2205
1990
  "Title3",
@@ -2213,15 +1998,15 @@ var PageBlockDefinitionTextPropertyStyle = z95.enum([
2213
1998
  "SmallSemibold",
2214
1999
  "Custom"
2215
2000
  ]);
2216
- var PageBlockDefinitionTextPropertyColor = z95.enum(["Neutral", "NeutralFaded"]);
2217
- var PageBlockDefinitionBooleanPropertyStyle = z95.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
2218
- var PageBlockDefinitionSingleSelectPropertyStyle = z95.enum([
2001
+ var PageBlockDefinitionTextPropertyColor = z85.enum(["Neutral", "NeutralFaded"]);
2002
+ var PageBlockDefinitionBooleanPropertyStyle = z85.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
2003
+ var PageBlockDefinitionSingleSelectPropertyStyle = z85.enum([
2219
2004
  "SegmentedControl",
2220
2005
  "ToggleButton",
2221
2006
  "Select",
2222
2007
  "Checkbox"
2223
2008
  ]);
2224
- var PageBlockDefinitionSingleSelectPropertyColor = z95.enum([
2009
+ var PageBlockDefinitionSingleSelectPropertyColor = z85.enum([
2225
2010
  "Green",
2226
2011
  "Red",
2227
2012
  "Yellow",
@@ -2236,76 +2021,76 @@ var PageBlockDefinitionSingleSelectPropertyColor = z95.enum([
2236
2021
  "Cyan",
2237
2022
  "Fuchsia"
2238
2023
  ]);
2239
- var IconSet = z95.enum([
2024
+ var IconSet = z85.enum([
2240
2025
  "CheckCircle",
2241
2026
  "CrossCircle",
2242
2027
  "Alert"
2243
2028
  ]);
2244
- var PageBlockDefinitionMultiSelectPropertyStyle = z95.enum(["SegmentedControl", "Select", "Checkbox"]);
2245
- var PageBlockDefinitionImageAspectRatio = z95.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
2246
- var PageBlockDefinitionImageWidth = z95.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
2247
- var PageBlockDefinitionSelectChoice = z95.object({
2248
- value: z95.string(),
2249
- name: z95.string(),
2029
+ var PageBlockDefinitionMultiSelectPropertyStyle = z85.enum(["SegmentedControl", "Select", "Checkbox"]);
2030
+ var PageBlockDefinitionImageAspectRatio = z85.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
2031
+ var PageBlockDefinitionImageWidth = z85.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
2032
+ var PageBlockDefinitionSelectChoice = z85.object({
2033
+ value: z85.string(),
2034
+ name: z85.string(),
2250
2035
  icon: IconSet.optional(),
2251
- customIconUrl: z95.string().optional(),
2036
+ customIconUrl: z85.string().optional(),
2252
2037
  color: PageBlockDefinitionSingleSelectPropertyColor.optional()
2253
2038
  });
2254
- var PageBlockDefinitionUntypedPropertyOptions = z95.record(z95.any());
2255
- var PageBlockDefinitionRichTextOptions = z95.object({
2039
+ var PageBlockDefinitionUntypedPropertyOptions = z85.record(z85.any());
2040
+ var PageBlockDefinitionRichTextOptions = z85.object({
2256
2041
  richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
2257
2042
  });
2258
- var PageBlockDefinitionMutiRichTextOptions = z95.object({
2043
+ var PageBlockDefinitionMutiRichTextOptions = z85.object({
2259
2044
  multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
2260
2045
  });
2261
- var PageBlockDefinitionTextOptions = z95.object({
2262
- placeholder: z95.string().optional(),
2263
- defaultValue: z95.string().optional(),
2046
+ var PageBlockDefinitionTextOptions = z85.object({
2047
+ placeholder: z85.string().optional(),
2048
+ defaultValue: z85.string().optional(),
2264
2049
  textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
2265
2050
  color: PageBlockDefinitionTextPropertyColor.optional(),
2266
- allowLineBreaks: z95.boolean().optional()
2051
+ allowLineBreaks: z85.boolean().optional()
2267
2052
  });
2268
- var PageBlockDefinitionSelectOptions = z95.object({
2053
+ var PageBlockDefinitionSelectOptions = z85.object({
2269
2054
  singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
2270
- defaultChoice: z95.string(),
2271
- choices: z95.array(PageBlockDefinitionSelectChoice)
2055
+ defaultChoice: z85.string(),
2056
+ choices: z85.array(PageBlockDefinitionSelectChoice)
2272
2057
  });
2273
- var PageBlockDefinitionImageOptions = z95.object({
2058
+ var PageBlockDefinitionImageOptions = z85.object({
2274
2059
  width: PageBlockDefinitionImageWidth.optional(),
2275
2060
  aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
2276
- allowCaption: z95.boolean().optional(),
2277
- recommendation: z95.string().optional()
2061
+ allowCaption: z85.boolean().optional(),
2062
+ recommendation: z85.string().optional()
2278
2063
  });
2279
- var PageBlockDefinitionBooleanOptions = z95.object({
2280
- defaultvalue: z95.boolean().optional(),
2064
+ var PageBlockDefinitionBooleanOptions = z85.object({
2065
+ defaultvalue: z85.boolean().optional(),
2281
2066
  booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
2282
2067
  });
2283
- var PageBlockDefinitionNumberOptions = z95.object({
2284
- defaultValue: z95.number(),
2285
- min: z95.number().optional(),
2286
- max: z95.number().optional(),
2287
- step: z95.number().optional(),
2288
- placeholder: z95.string().optional()
2068
+ var PageBlockDefinitionNumberOptions = z85.object({
2069
+ defaultValue: z85.number(),
2070
+ min: z85.number().optional(),
2071
+ max: z85.number().optional(),
2072
+ step: z85.number().optional(),
2073
+ placeholder: z85.string().optional()
2289
2074
  });
2290
- var PageBlockDefinitionComponentOptions = z95.object({
2291
- renderLayoutAs: z95.enum(["List", "Table"]).optional(),
2292
- allowPropertySelection: z95.boolean().optional()
2075
+ var PageBlockDefinitionComponentOptions = z85.object({
2076
+ renderLayoutAs: z85.enum(["List", "Table"]).optional(),
2077
+ allowPropertySelection: z85.boolean().optional()
2293
2078
  });
2294
- var PageBlockDefinitionProperty = z95.object({
2295
- id: z95.string(),
2296
- name: z95.string(),
2079
+ var PageBlockDefinitionProperty = z85.object({
2080
+ id: z85.string(),
2081
+ name: z85.string(),
2297
2082
  type: PageBlockDefinitionPropertyType,
2298
- description: z95.string().optional(),
2083
+ description: z85.string().optional(),
2299
2084
  options: PageBlockDefinitionUntypedPropertyOptions.optional(),
2300
- variantOptions: z95.record(PageBlockDefinitionUntypedPropertyOptions).optional()
2085
+ variantOptions: z85.record(PageBlockDefinitionUntypedPropertyOptions).optional()
2301
2086
  });
2302
- var PageBlockDefinitionItem = z95.object({
2303
- properties: z95.array(PageBlockDefinitionProperty),
2087
+ var PageBlockDefinitionItem = z85.object({
2088
+ properties: z85.array(PageBlockDefinitionProperty),
2304
2089
  appearance: PageBlockDefinitionAppearance.optional(),
2305
- variants: z95.array(PageBlockDefinitionVariant),
2306
- defaultVariantKey: z95.string()
2090
+ variants: z85.array(PageBlockDefinitionVariant),
2091
+ defaultVariantKey: z85.string()
2307
2092
  });
2308
- var PageBlockCategory = z96.enum([
2093
+ var PageBlockCategory = z86.enum([
2309
2094
  "Text",
2310
2095
  "Layout",
2311
2096
  "Media",
@@ -2319,123 +2104,337 @@ var PageBlockCategory = z96.enum([
2319
2104
  "Data",
2320
2105
  "Other"
2321
2106
  ]);
2322
- var PageBlockBehaviorDataType = z96.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
2323
- var PageBlockBehaviorSelectionType = z96.enum(["Entity", "Group", "EntityAndGroup"]);
2324
- var PageBlockDefinitionBehavior = z96.object({
2107
+ var PageBlockBehaviorDataType = z86.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
2108
+ var PageBlockBehaviorSelectionType = z86.enum(["Entity", "Group", "EntityAndGroup"]);
2109
+ var PageBlockDefinitionBehavior = z86.object({
2325
2110
  dataType: PageBlockBehaviorDataType,
2326
- items: z96.object({
2327
- numberOfItems: z96.number(),
2328
- allowLinks: z96.boolean(),
2329
- newItemLabel: z96.string().optional()
2111
+ items: z86.object({
2112
+ numberOfItems: z86.number(),
2113
+ allowLinks: z86.boolean(),
2114
+ newItemLabel: z86.string().optional()
2330
2115
  }).optional(),
2331
- entities: z96.object({
2116
+ entities: z86.object({
2332
2117
  selectionType: PageBlockBehaviorSelectionType,
2333
- maxSelected: z96.number()
2118
+ maxSelected: z86.number()
2334
2119
  }).optional()
2335
2120
  });
2336
- var PageBlockDefinitionOnboarding = z96.object({
2337
- helpText: z96.string(),
2338
- documentationLink: z96.string().optional()
2121
+ var PageBlockDefinitionOnboarding = z86.object({
2122
+ helpText: z86.string(),
2123
+ documentationLink: z86.string().optional()
2124
+ });
2125
+ var PageBlockDefinition = z86.object({
2126
+ id: z86.string(),
2127
+ name: z86.string(),
2128
+ description: z86.string(),
2129
+ category: PageBlockCategory,
2130
+ icon: z86.string().optional(),
2131
+ documentationLink: z86.string().optional(),
2132
+ searchKeywords: z86.array(z86.string()).optional(),
2133
+ item: PageBlockDefinitionItem,
2134
+ behavior: PageBlockDefinitionBehavior,
2135
+ editorOptions: z86.object({
2136
+ onboarding: PageBlockDefinitionOnboarding.optional()
2137
+ }),
2138
+ appearance: PageBlockDefinitionAppearance.optional()
2139
+ });
2140
+ var DocumentationPageGroup = z87.object({
2141
+ type: z87.literal("ElementGroup"),
2142
+ childType: z87.literal("DocumentationPage"),
2143
+ id: z87.string(),
2144
+ persistentId: z87.string(),
2145
+ shortPersistentId: z87.string(),
2146
+ designSystemVersionId: z87.string(),
2147
+ parentPersistentId: z87.string().nullish(),
2148
+ sortOrder: z87.number(),
2149
+ title: z87.string(),
2150
+ slug: z87.string(),
2151
+ userSlug: z87.string().nullish(),
2152
+ createdAt: z87.coerce.date(),
2153
+ updatedAt: z87.coerce.date()
2154
+ });
2155
+ var DocumentationLinkPreview = z88.object({
2156
+ title: z88.string().optional(),
2157
+ description: z88.string().optional(),
2158
+ thumbnail: PageBlockImageReference.optional()
2159
+ });
2160
+ var DocumentationPageAnchor = z89.object({
2161
+ blockId: z89.string(),
2162
+ level: z89.number(),
2163
+ text: z89.string()
2164
+ });
2165
+ var DocumentationPageContentBackup = z90.object({
2166
+ id: z90.string(),
2167
+ designSystemVersionId: z90.string(),
2168
+ createdAt: z90.coerce.date(),
2169
+ updatedAt: z90.coerce.date(),
2170
+ documentationPageId: z90.string(),
2171
+ documentationPageName: z90.string(),
2172
+ storagePath: z90.string()
2173
+ });
2174
+ var DocumentationPageContentItem = z91.discriminatedUnion("type", [
2175
+ PageBlockEditorModelV2,
2176
+ PageSectionEditorModelV2
2177
+ ]);
2178
+ var DocumentationPageContentData = z91.object({
2179
+ items: z91.array(DocumentationPageContentItem)
2180
+ });
2181
+ var DocumentationPageContent = z91.object({
2182
+ id: z91.string(),
2183
+ designSystemVersionId: z91.string(),
2184
+ createdAt: z91.coerce.date(),
2185
+ updatedAt: z91.coerce.date(),
2186
+ documentationPageId: z91.string(),
2187
+ data: DocumentationPageContentData
2188
+ });
2189
+ var DocumentationPage = z92.object({
2190
+ type: z92.literal("DocumentationPage"),
2191
+ id: z92.string(),
2192
+ persistentId: z92.string(),
2193
+ shortPersistentId: z92.string(),
2194
+ designSystemVersionId: z92.string(),
2195
+ parentPersistentId: z92.string().nullish(),
2196
+ sortOrder: z92.number(),
2197
+ title: z92.string(),
2198
+ slug: z92.string(),
2199
+ userSlug: z92.string().nullish(),
2200
+ createdAt: z92.coerce.date(),
2201
+ updatedAt: z92.coerce.date()
2202
+ });
2203
+ var DocumentationComment = z93.object({
2204
+ id: z93.string(),
2205
+ authorId: z93.string(),
2206
+ threadId: z93.string(),
2207
+ roomId: z93.string(),
2208
+ createdAt: z93.coerce.date(),
2209
+ editedAt: z93.coerce.date().optional(),
2210
+ deletedAt: z93.coerce.date().optional(),
2211
+ body: z93.string()
2212
+ });
2213
+ var DocumentationCommentThread = z93.object({
2214
+ id: z93.string(),
2215
+ roomId: z93.string(),
2216
+ pagePersistentId: z93.string(),
2217
+ brandId: z93.string(),
2218
+ designSystemVersionId: z93.string(),
2219
+ designSystemId: z93.string(),
2220
+ blockId: z93.string().optional(),
2221
+ resolved: z93.boolean(),
2222
+ createdAt: z93.coerce.date(),
2223
+ updatedAt: z93.coerce.date()
2224
+ });
2225
+ var FigmaFileDownloadScope = z94.object({
2226
+ styles: z94.boolean(),
2227
+ components: z94.boolean(),
2228
+ currentVersion: z94.literal("__latest__").nullable(),
2229
+ publishedVersion: z94.string().nullable(),
2230
+ downloadChunkSize: z94.number().optional(),
2231
+ maxFileDepth: z94.number().optional()
2232
+ });
2233
+ var FigmaFileAccessData = z94.object({
2234
+ accessToken: z94.string()
2235
+ });
2236
+ var ImportFunctionInput = z95.object({
2237
+ importJobId: z95.string(),
2238
+ importContextId: z95.string(),
2239
+ designSystemId: z95.string().optional()
2240
+ });
2241
+ var ImportedFigmaSourceData = z95.object({
2242
+ sourceId: z95.string(),
2243
+ figmaRemote: DataSourceFigmaRemote
2244
+ });
2245
+ var FigmaImportBaseContext = z95.object({
2246
+ designSystemId: z95.string(),
2247
+ /**
2248
+ * Data required for accessing Figma files. This should contain access data for all file ids
2249
+ * mentioned in the `importedSourceDataBySourceId`
2250
+ *
2251
+ * fileId: file data
2252
+ */
2253
+ fileAccessByFileId: z95.record(FigmaFileAccessData),
2254
+ /**
2255
+ * Figma source data for which import was requested
2256
+ *
2257
+ * sourceId: source data
2258
+ */
2259
+ importedSourceDataBySourceId: z95.record(ImportedFigmaSourceData),
2260
+ /**
2261
+ * Array of warnings that will be written into the import result summary at the end
2262
+ * of import job execution and displayed by the client.
2263
+ */
2264
+ importWarnings: z95.record(ImportWarning.array()).default({})
2265
+ });
2266
+ var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
2267
+ sourcesWithMissingAccess: z95.array(z95.string()).default([]),
2268
+ shadowOpacityOptional: z95.boolean().default(false)
2269
+ });
2270
+ var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
2271
+ importMetadata: DataSourceFigmaImportMetadata
2272
+ });
2273
+ var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.extend({
2274
+ /**
2275
+ * Describes what to download from each file, this should contain all file id mentioned in
2276
+ * importMetadataBySourceId.
2277
+ *
2278
+ * File id -> file download scope
2279
+ */
2280
+ fileDownloadScopesByFileId: z95.record(FigmaFileDownloadScope),
2281
+ /**
2282
+ * Sources filtered down to the ones that have changed since last import and therefore need to be
2283
+ * imported again.
2284
+ *
2285
+ * Source id -> import metadata
2286
+ */
2287
+ changedImportedSourceDataBySourceId: z95.record(ChangedImportedFigmaSourceData)
2288
+ });
2289
+ var ImageImportModelType = z96.enum(["Url", "FigmaRender"]);
2290
+ var ImageImportModelBase = z96.object({
2291
+ scope: AssetScope
2292
+ });
2293
+ var UrlImageImportModel = ImageImportModelBase.extend({
2294
+ type: z96.literal(ImageImportModelType.enum.Url),
2295
+ url: z96.string(),
2296
+ originKey: z96.string(),
2297
+ extension: z96.string()
2298
+ });
2299
+ var FigmaRenderFormat = z96.enum(["Svg", "Png"]);
2300
+ var FigmaRenderBase = ImageImportModelBase.extend({
2301
+ type: z96.literal(ImageImportModelType.enum.FigmaRender),
2302
+ fileId: z96.string(),
2303
+ fileVersionId: z96.string().optional(),
2304
+ nodeId: z96.string(),
2305
+ originKey: z96.string()
2306
+ });
2307
+ var FigmaPngRenderImportModel = FigmaRenderBase.extend({
2308
+ format: z96.literal(FigmaRenderFormat.enum.Png),
2309
+ scale: z96.number()
2310
+ });
2311
+ var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
2312
+ format: z96.literal(FigmaRenderFormat.enum.Svg)
2313
+ });
2314
+ var FigmaRenderImportModel = z96.discriminatedUnion("format", [
2315
+ FigmaPngRenderImportModel,
2316
+ FigmaSvgRenderImportModel
2317
+ ]);
2318
+ var ImageImportModel = z96.union([UrlImageImportModel, FigmaRenderImportModel]);
2319
+ var ImportModelBase = z97.object({
2320
+ id: z97.string(),
2321
+ meta: ObjectMeta,
2322
+ origin: DesignElementOrigin,
2323
+ brandPersistentId: z97.string(),
2324
+ sortOrder: z97.number()
2325
+ });
2326
+ var ImportModelInputBase = ImportModelBase.omit({
2327
+ brandPersistentId: true,
2328
+ origin: true,
2329
+ sortOrder: true
2330
+ }).extend({
2331
+ originId: z97.string(),
2332
+ originMetadata: z97.record(z97.any())
2333
+ });
2334
+ var ComponentImportModelPart = z98.object({
2335
+ thumbnail: ImageImportModel
2336
+ });
2337
+ var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
2338
+ isAsset: z98.boolean(),
2339
+ svg: FigmaSvgRenderImportModel.optional(),
2340
+ origin: ComponentOrigin
2341
+ });
2342
+ var ComponentImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart.shape).extend({
2343
+ originMetadata: ComponentOriginPart
2344
+ });
2345
+ var AssetImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart.shape).extend({
2346
+ svg: FigmaSvgRenderImportModel,
2347
+ originMetadata: ComponentOriginPart
2348
+ });
2349
+ var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
2350
+ z99.object({
2351
+ id: z99.string(),
2352
+ meta: ObjectMeta
2353
+ })
2354
+ );
2355
+ var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
2356
+ z99.object({
2357
+ origin: ThemeOverrideOrigin
2358
+ })
2359
+ );
2360
+ var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
2361
+ z99.object({
2362
+ originId: z99.string(),
2363
+ originMetadata: ThemeOverrideOriginPart
2364
+ })
2365
+ );
2366
+ var ThemeImportModel = z99.object({
2367
+ meta: ObjectMeta,
2368
+ brandPersistentId: z99.string(),
2369
+ originSource: ThemeOriginSource,
2370
+ overrides: z99.array(ThemeOverrideImportModel),
2371
+ sortOrder: z99.number()
2372
+ });
2373
+ var ThemeImportModelInput = z99.object({
2374
+ meta: ObjectMeta,
2375
+ originObjects: z99.array(ThemeOriginObject),
2376
+ overrides: z99.array(ThemeOverrideImportModelInput)
2377
+ });
2378
+ var ThemeUpdateImportModel = z99.object({
2379
+ themePersistentId: z99.string(),
2380
+ overrides: z99.array(ThemeOverrideImportModel)
2381
+ });
2382
+ var ThemeUpdateImportModelInput = z99.object({
2383
+ themePersistentId: z99.string(),
2384
+ overrides: z99.array(ThemeOverrideImportModelInput)
2385
+ });
2386
+ var DesignTokenImportModelPart = z100.object({
2387
+ collection: z100.string().optional()
2339
2388
  });
2340
- var PageBlockDefinition = z96.object({
2341
- id: z96.string(),
2342
- name: z96.string(),
2343
- description: z96.string(),
2344
- category: PageBlockCategory,
2345
- icon: z96.string().optional(),
2346
- documentationLink: z96.string().optional(),
2347
- searchKeywords: z96.array(z96.string()).optional(),
2348
- item: PageBlockDefinitionItem,
2349
- behavior: PageBlockDefinitionBehavior,
2350
- editorOptions: z96.object({
2351
- onboarding: PageBlockDefinitionOnboarding.optional()
2352
- }),
2353
- appearance: PageBlockDefinitionAppearance.optional()
2389
+ var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
2390
+ origin: DesignTokenOrigin
2354
2391
  });
2355
- var DocumentationPageGroup = z97.object({
2356
- type: z97.literal("ElementGroup"),
2357
- childType: z97.literal("DocumentationPage"),
2358
- id: z97.string(),
2359
- persistentId: z97.string(),
2360
- shortPersistentId: z97.string(),
2361
- designSystemVersionId: z97.string(),
2362
- parentPersistentId: z97.string().nullish(),
2363
- sortOrder: z97.number(),
2364
- title: z97.string(),
2365
- slug: z97.string(),
2366
- userSlug: z97.string().nullish(),
2367
- createdAt: z97.coerce.date(),
2368
- updatedAt: z97.coerce.date()
2369
- });
2370
- var DocumentationLinkPreview = z98.object({
2371
- title: z98.string().optional(),
2372
- description: z98.string().optional(),
2373
- thumbnail: PageBlockImageReference.optional()
2392
+ var DesignTokenImportModelInputBase = ImportModelInputBase.extend(DesignTokenImportModelPart.shape).extend({
2393
+ originMetadata: DesignTokenOriginPart
2374
2394
  });
2375
- var DocumentationPageAnchor = z99.object({
2376
- blockId: z99.string(),
2377
- level: z99.number(),
2378
- text: z99.string()
2379
- });
2380
- var DocumentationPageContentBackup = z100.object({
2381
- id: z100.string(),
2382
- designSystemVersionId: z100.string(),
2383
- createdAt: z100.coerce.date(),
2384
- updatedAt: z100.coerce.date(),
2385
- documentationPageId: z100.string(),
2386
- documentationPageName: z100.string(),
2387
- storagePath: z100.string()
2388
- });
2389
- var DocumentationPageContentItem = z101.discriminatedUnion("type", [
2390
- PageBlockEditorModelV2,
2391
- PageSectionEditorModelV2
2392
- ]);
2393
- var DocumentationPageContentData = z101.object({
2394
- items: z101.array(DocumentationPageContentItem)
2395
- });
2396
- var DocumentationPageContent = z101.object({
2397
- id: z101.string(),
2398
- designSystemVersionId: z101.string(),
2399
- createdAt: z101.coerce.date(),
2400
- updatedAt: z101.coerce.date(),
2401
- documentationPageId: z101.string(),
2402
- data: DocumentationPageContentData
2395
+ var DesignTokenImportModel = DesignTokenTypedData.and(DesignTokenImportModelBase);
2396
+ var DesignTokenImportModelInput = DesignTokenTypedData.and(DesignTokenImportModelInputBase);
2397
+ var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
2398
+ image: FigmaPngRenderImportModel
2399
+ });
2400
+ var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
2401
+ children: z101.lazy(() => FigmaFileStructureNodeImportModel.array())
2402
+ });
2403
+ var FigmaFileStructureImportModelPart = z101.object({
2404
+ data: z101.object({
2405
+ rootNode: FigmaFileStructureNodeImportModel,
2406
+ assetsInFile: FigmaFileStructureStatistics
2407
+ })
2408
+ });
2409
+ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImportModelPart.shape).extend({
2410
+ origin: FigmaFileStructureOrigin
2411
+ });
2412
+ var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
2413
+ FigmaFileStructureImportModelPart.shape
2414
+ ).extend({
2415
+ fileVersionId: z101.string()
2403
2416
  });
2404
- var DocumentationPage = z102.object({
2405
- type: z102.literal("DocumentationPage"),
2417
+ var DataSourceImportModel = z102.object({
2406
2418
  id: z102.string(),
2407
- persistentId: z102.string(),
2408
- shortPersistentId: z102.string(),
2409
- designSystemVersionId: z102.string(),
2410
- parentPersistentId: z102.string().nullish(),
2411
- sortOrder: z102.number(),
2412
- title: z102.string(),
2413
- slug: z102.string(),
2414
- userSlug: z102.string().nullish(),
2415
- createdAt: z102.coerce.date(),
2416
- updatedAt: z102.coerce.date()
2417
- });
2418
- var DocumentationComment = z103.object({
2419
- id: z103.string(),
2420
- authorId: z103.string(),
2421
- threadId: z103.string(),
2422
- roomId: z103.string(),
2423
- createdAt: z103.coerce.date(),
2424
- editedAt: z103.coerce.date().optional(),
2425
- deletedAt: z103.coerce.date().optional(),
2426
- body: z103.string()
2427
- });
2428
- var DocumentationCommentThread = z103.object({
2429
- id: z103.string(),
2430
- roomId: z103.string(),
2431
- pagePersistentId: z103.string(),
2432
- brandId: z103.string(),
2433
- designSystemVersionId: z103.string(),
2434
- designSystemId: z103.string(),
2435
- blockId: z103.string().optional(),
2436
- resolved: z103.boolean(),
2437
- createdAt: z103.coerce.date(),
2438
- updatedAt: z103.coerce.date()
2419
+ fileName: z102.string().optional(),
2420
+ thumbnailUrl: z102.string().optional()
2421
+ });
2422
+ var ImportModelInputCollection = z103.object({
2423
+ source: DataSourceImportModel,
2424
+ tokens: z103.array(DesignTokenImportModelInput).default([]),
2425
+ components: z103.array(ComponentImportModelInput).default([]),
2426
+ assets: z103.array(AssetImportModelInput).default([]),
2427
+ themeUpdates: z103.array(ThemeUpdateImportModelInput).default([]),
2428
+ themes: z103.array(ThemeImportModelInput).default([]),
2429
+ figmaFileStructure: FigmaFileStructureImportModelInput.optional()
2430
+ });
2431
+ var ImportModelCollection = z103.object({
2432
+ sources: z103.array(DataSourceImportModel),
2433
+ tokens: z103.array(DesignTokenImportModel).default([]),
2434
+ components: z103.array(ComponentImportModel).default([]),
2435
+ themeUpdates: z103.array(ThemeUpdateImportModel).default([]),
2436
+ themes: z103.array(ThemeImportModel).default([]),
2437
+ figmaFileStructures: z103.array(FigmaFileStructureImportModel)
2439
2438
  });
2440
2439
  var ElementViewBaseColumnType = z104.enum(["Name", "Description", "Value", "UpdatedAt"]);
2441
2440
  var ElementViewColumnType = z104.union([
@@ -2865,20 +2864,105 @@ var DesignSystemVersionDump = z125.object({
2865
2864
  elementColumns: ElementViewColumn.array(),
2866
2865
  documentationPageContents: DocumentationPageContent.array(),
2867
2866
  documentationPageRooms: DocumentationPageRoomDump.array(),
2868
- publishedDocumentations: PublishedDocsDump.array()
2867
+ publishedDocumentations: PublishedDocsDump.array(),
2868
+ assetReferences: AssetReference.array()
2869
2869
  });
2870
2870
  var DesignSystemDump = z126.object({
2871
2871
  designSystem: DesignSystem,
2872
2872
  dataSources: DataSource.array(),
2873
2873
  versions: DesignSystemVersionDump.array(),
2874
2874
  customDomain: CustomDomain.optional(),
2875
- files: ResolvedAsset.array()
2876
- });
2877
- var UserMinified = z127.object({
2875
+ files: Asset.array()
2876
+ });
2877
+ var IntegrationAuthType = z127.union([z127.literal("OAuth2"), z127.literal("PAT")]);
2878
+ var ExternalServiceType = z127.union([
2879
+ z127.literal("figma"),
2880
+ z127.literal("github"),
2881
+ z127.literal("azure"),
2882
+ z127.literal("gitlab"),
2883
+ z127.literal("bitbucket")
2884
+ ]);
2885
+ var IntegrationUserInfo = z127.object({
2878
2886
  id: z127.string(),
2879
- name: z127.string(),
2880
- email: z127.string(),
2881
- avatar: z127.string().optional()
2887
+ handle: z127.string().optional(),
2888
+ avatarUrl: z127.string().optional(),
2889
+ email: z127.string().optional(),
2890
+ authType: IntegrationAuthType.optional(),
2891
+ customUrl: z127.string().optional()
2892
+ });
2893
+ var UserLinkedIntegrations = z127.object({
2894
+ figma: IntegrationUserInfo.optional(),
2895
+ github: IntegrationUserInfo.array().optional(),
2896
+ azure: IntegrationUserInfo.array().optional(),
2897
+ gitlab: IntegrationUserInfo.array().optional(),
2898
+ bitbucket: IntegrationUserInfo.array().optional()
2899
+ });
2900
+ var UserAnalyticsCleanupSchedule = z128.object({
2901
+ userId: z128.string(),
2902
+ createdAt: z128.coerce.date(),
2903
+ deleteAt: z128.coerce.date()
2904
+ });
2905
+ var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
2906
+ createdAt: true
2907
+ });
2908
+ var CreateUserInput = z129.object({
2909
+ email: z129.string(),
2910
+ name: z129.string(),
2911
+ username: z129.string()
2912
+ });
2913
+ var UserIdentity = z130.object({
2914
+ id: z130.string(),
2915
+ userId: z130.string()
2916
+ });
2917
+ var UserMinified = z131.object({
2918
+ id: z131.string(),
2919
+ name: z131.string(),
2920
+ email: z131.string(),
2921
+ avatar: z131.string().optional()
2922
+ });
2923
+ var LiveblocksNotificationSettings = z132.object({
2924
+ sendCommentNotificationEmails: z132.boolean()
2925
+ });
2926
+ var UserNotificationSettings = z132.object({
2927
+ liveblocksNotificationSettings: LiveblocksNotificationSettings
2928
+ });
2929
+ var UserOnboardingDepartment = z133.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
2930
+ var UserOnboardingJobLevel = z133.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
2931
+ var UserOnboarding = z133.object({
2932
+ companyName: z133.string().optional(),
2933
+ numberOfPeopleInOrg: z133.string().optional(),
2934
+ numberOfPeopleInDesignTeam: z133.string().optional(),
2935
+ department: UserOnboardingDepartment.optional(),
2936
+ jobTitle: z133.string().optional(),
2937
+ phase: z133.string().optional(),
2938
+ jobLevel: UserOnboardingJobLevel.optional(),
2939
+ designSystemName: z133.string().optional(),
2940
+ defaultDestination: z133.string().optional(),
2941
+ figmaUrl: z133.string().optional()
2942
+ });
2943
+ var UserProfile = z133.object({
2944
+ name: z133.string(),
2945
+ avatar: z133.string().optional(),
2946
+ nickname: z133.string().optional(),
2947
+ onboarding: UserOnboarding.optional()
2948
+ });
2949
+ var UserProfileUpdate = UserProfile.partial().omit({
2950
+ avatar: true
2951
+ });
2952
+ var UserTest = z134.object({
2953
+ id: z134.string(),
2954
+ email: z134.string()
2955
+ });
2956
+ var User = z135.object({
2957
+ id: z135.string(),
2958
+ email: z135.string(),
2959
+ emailVerified: z135.boolean(),
2960
+ createdAt: z135.coerce.date(),
2961
+ trialExpiresAt: z135.coerce.date().optional(),
2962
+ profile: UserProfile,
2963
+ linkedIntegrations: UserLinkedIntegrations.optional(),
2964
+ loggedOutAt: z135.coerce.date().optional(),
2965
+ isProtected: z135.boolean()
2882
2966
  });
2883
2967
  var SupernovaException = class _SupernovaException extends Error {
2884
2968
  //
@@ -2987,25 +3071,25 @@ function groupBy(items, keyFn) {
2987
3071
  }
2988
3072
  return result;
2989
3073
  }
2990
- var ContentLoadInstruction = z128.object({
2991
- from: z128.string(),
2992
- to: z128.string(),
2993
- authorizationHeaderKvsId: z128.string().optional(),
2994
- timeout: z128.number().optional()
3074
+ var ContentLoadInstruction = z136.object({
3075
+ from: z136.string(),
3076
+ to: z136.string(),
3077
+ authorizationHeaderKvsId: z136.string().optional(),
3078
+ timeout: z136.number().optional()
2995
3079
  });
2996
- var ContentLoaderPayload = z128.object({
2997
- type: z128.literal("Single"),
3080
+ var ContentLoaderPayload = z136.object({
3081
+ type: z136.literal("Single"),
2998
3082
  instruction: ContentLoadInstruction
2999
3083
  }).or(
3000
- z128.object({
3001
- type: z128.literal("Multiple"),
3002
- loadingChunkSize: z128.number().optional(),
3003
- instructions: z128.array(ContentLoadInstruction)
3084
+ z136.object({
3085
+ type: z136.literal("Multiple"),
3086
+ loadingChunkSize: z136.number().optional(),
3087
+ instructions: z136.array(ContentLoadInstruction)
3004
3088
  })
3005
3089
  ).or(
3006
- z128.object({
3007
- type: z128.literal("S3"),
3008
- location: z128.string()
3090
+ z136.object({
3091
+ type: z136.literal("S3"),
3092
+ location: z136.string()
3009
3093
  })
3010
3094
  );
3011
3095
  function slugify(str, options) {
@@ -3633,43 +3717,43 @@ var RESERVED_SLUGS = [
3633
3717
  ];
3634
3718
  var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
3635
3719
  var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
3636
- var IntegrationDesignSystem = z129.object({
3637
- designSystemId: z129.string(),
3638
- brandId: z129.string(),
3639
- title: z129.string().optional(),
3640
- userId: z129.string().optional(),
3641
- date: z129.coerce.date().optional()
3642
- });
3643
- var IntegrationCredentialsType = z129.enum(["OAuth2", "PAT", "GithubApp"]);
3644
- var IntegrationCredentialsState = z129.enum(["Active", "Inactive"]);
3645
- var IntegrationCredentialsProfile = z129.object({
3646
- id: nullishToOptional(z129.string()),
3647
- email: nullishToOptional(z129.string()),
3648
- handle: nullishToOptional(z129.string()),
3649
- type: nullishToOptional(z129.string()),
3650
- avatarUrl: nullishToOptional(z129.string()),
3651
- organization: nullishToOptional(z129.string()),
3652
- collection: nullishToOptional(z129.string())
3653
- });
3654
- var IntegrationCredentials = z129.object({
3655
- id: z129.string(),
3720
+ var IntegrationDesignSystem = z137.object({
3721
+ designSystemId: z137.string(),
3722
+ brandId: z137.string(),
3723
+ title: z137.string().optional(),
3724
+ userId: z137.string().optional(),
3725
+ date: z137.coerce.date().optional()
3726
+ });
3727
+ var IntegrationCredentialsType = z137.enum(["OAuth2", "PAT", "GithubApp"]);
3728
+ var IntegrationCredentialsState = z137.enum(["Active", "Inactive"]);
3729
+ var IntegrationCredentialsProfile = z137.object({
3730
+ id: nullishToOptional(z137.string()),
3731
+ email: nullishToOptional(z137.string()),
3732
+ handle: nullishToOptional(z137.string()),
3733
+ type: nullishToOptional(z137.string()),
3734
+ avatarUrl: nullishToOptional(z137.string()),
3735
+ organization: nullishToOptional(z137.string()),
3736
+ collection: nullishToOptional(z137.string())
3737
+ });
3738
+ var IntegrationCredentials = z137.object({
3739
+ id: z137.string(),
3656
3740
  type: IntegrationCredentialsType,
3657
- integrationId: z129.string(),
3658
- accessToken: z129.string(),
3659
- userId: z129.string(),
3660
- createdAt: z129.coerce.date(),
3661
- refreshToken: z129.string().optional(),
3662
- tokenName: z129.string().optional(),
3663
- expiresAt: z129.coerce.date().optional(),
3664
- refreshedAt: z129.coerce.date().optional(),
3665
- username: z129.string().optional(),
3666
- appInstallationId: z129.string().optional(),
3741
+ integrationId: z137.string(),
3742
+ accessToken: z137.string(),
3743
+ userId: z137.string(),
3744
+ createdAt: z137.coerce.date(),
3745
+ refreshToken: z137.string().optional(),
3746
+ tokenName: z137.string().optional(),
3747
+ expiresAt: z137.coerce.date().optional(),
3748
+ refreshedAt: z137.coerce.date().optional(),
3749
+ username: z137.string().optional(),
3750
+ appInstallationId: z137.string().optional(),
3667
3751
  profile: IntegrationCredentialsProfile.optional(),
3668
- customUrl: z129.string().optional(),
3752
+ customUrl: z137.string().optional(),
3669
3753
  state: IntegrationCredentialsState,
3670
3754
  user: UserMinified.optional()
3671
3755
  });
3672
- var ExtendedIntegrationType = z129.enum([
3756
+ var ExtendedIntegrationType = z137.enum([
3673
3757
  "Figma",
3674
3758
  "Github",
3675
3759
  "Gitlab",
@@ -3680,26 +3764,26 @@ var ExtendedIntegrationType = z129.enum([
3680
3764
  ]);
3681
3765
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
3682
3766
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
3683
- var Integration = z129.object({
3684
- id: z129.string(),
3685
- workspaceId: z129.string(),
3767
+ var Integration = z137.object({
3768
+ id: z137.string(),
3769
+ workspaceId: z137.string(),
3686
3770
  type: IntegrationType,
3687
- createdAt: z129.coerce.date(),
3688
- integrationCredentials: z129.array(IntegrationCredentials).optional()
3689
- });
3690
- var IntegrationToken = z129.object({
3691
- access_token: z129.string(),
3692
- refresh_token: z129.string().optional(),
3693
- expires_in: z129.union([z129.number().optional(), z129.string().optional()]),
3694
- token_type: z129.string().optional(),
3695
- token_name: z129.string().optional(),
3696
- token_azure_organization_name: z129.string().optional(),
3771
+ createdAt: z137.coerce.date(),
3772
+ integrationCredentials: z137.array(IntegrationCredentials).optional()
3773
+ });
3774
+ var IntegrationToken = z137.object({
3775
+ access_token: z137.string(),
3776
+ refresh_token: z137.string().optional(),
3777
+ expires_in: z137.union([z137.number().optional(), z137.string().optional()]),
3778
+ token_type: z137.string().optional(),
3779
+ token_name: z137.string().optional(),
3780
+ token_azure_organization_name: z137.string().optional(),
3697
3781
  // Azure Cloud PAT only
3698
- token_azure_collection_name: z129.string().optional(),
3782
+ token_azure_collection_name: z137.string().optional(),
3699
3783
  // Azure Server PAT only
3700
- token_bitbucket_username: z129.string().optional(),
3784
+ token_bitbucket_username: z137.string().optional(),
3701
3785
  // Bitbucket only
3702
- custom_url: z129.string().optional().transform((value) => {
3786
+ custom_url: z137.string().optional().transform((value) => {
3703
3787
  if (!value?.trim())
3704
3788
  return void 0;
3705
3789
  return formatCustomUrl(value);
@@ -3735,144 +3819,64 @@ function formatCustomUrl(url) {
3735
3819
  }
3736
3820
  return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
3737
3821
  }
3738
- var WorkspaceDump = z130.object({
3822
+ var WorkspaceDump = z138.object({
3739
3823
  workspace: Workspace,
3740
3824
  designSystems: DesignSystemDump.array(),
3741
3825
  codeIntegration: CodeIntegrationDump,
3742
3826
  integrations: Integration.array()
3743
3827
  });
3744
- var IntegrationAuthType = z131.union([z131.literal("OAuth2"), z131.literal("PAT")]);
3745
- var ExternalServiceType = z131.union([
3746
- z131.literal("figma"),
3747
- z131.literal("github"),
3748
- z131.literal("azure"),
3749
- z131.literal("gitlab"),
3750
- z131.literal("bitbucket")
3751
- ]);
3752
- var IntegrationUserInfo = z131.object({
3753
- id: z131.string(),
3754
- handle: z131.string().optional(),
3755
- avatarUrl: z131.string().optional(),
3756
- email: z131.string().optional(),
3757
- authType: IntegrationAuthType.optional(),
3758
- customUrl: z131.string().optional()
3759
- });
3760
- var UserLinkedIntegrations = z131.object({
3761
- figma: IntegrationUserInfo.optional(),
3762
- github: IntegrationUserInfo.array().optional(),
3763
- azure: IntegrationUserInfo.array().optional(),
3764
- gitlab: IntegrationUserInfo.array().optional(),
3765
- bitbucket: IntegrationUserInfo.array().optional()
3766
- });
3767
- var UserAnalyticsCleanupSchedule = z132.object({
3768
- userId: z132.string(),
3769
- createdAt: z132.coerce.date(),
3770
- deleteAt: z132.coerce.date()
3771
- });
3772
- var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
3773
- createdAt: true
3774
- });
3775
- var CreateUserInput = z133.object({
3776
- email: z133.string(),
3777
- name: z133.string(),
3778
- username: z133.string()
3779
- });
3780
- var UserIdentity = z134.object({
3781
- id: z134.string(),
3782
- userId: z134.string()
3783
- });
3784
- var LiveblocksNotificationSettings = z135.object({
3785
- sendCommentNotificationEmails: z135.boolean()
3786
- });
3787
- var UserNotificationSettings = z135.object({
3788
- liveblocksNotificationSettings: LiveblocksNotificationSettings
3789
- });
3790
- var UserOnboardingDepartment = z136.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
3791
- var UserOnboardingJobLevel = z136.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
3792
- var UserOnboarding = z136.object({
3793
- companyName: z136.string().optional(),
3794
- numberOfPeopleInOrg: z136.string().optional(),
3795
- numberOfPeopleInDesignTeam: z136.string().optional(),
3796
- department: UserOnboardingDepartment.optional(),
3797
- jobTitle: z136.string().optional(),
3798
- phase: z136.string().optional(),
3799
- jobLevel: UserOnboardingJobLevel.optional(),
3800
- designSystemName: z136.string().optional(),
3801
- defaultDestination: z136.string().optional(),
3802
- figmaUrl: z136.string().optional()
3803
- });
3804
- var UserProfile = z136.object({
3805
- name: z136.string(),
3806
- avatar: z136.string().optional(),
3807
- nickname: z136.string().optional(),
3808
- onboarding: UserOnboarding.optional()
3809
- });
3810
- var UserProfileUpdate = UserProfile.partial().omit({
3811
- avatar: true
3812
- });
3813
- var UserTest = z137.object({
3814
- id: z137.string(),
3815
- email: z137.string()
3816
- });
3817
- var User = z138.object({
3818
- id: z138.string(),
3819
- email: z138.string(),
3820
- emailVerified: z138.boolean(),
3821
- createdAt: z138.coerce.date(),
3822
- trialExpiresAt: z138.coerce.date().optional(),
3823
- profile: UserProfile,
3824
- linkedIntegrations: UserLinkedIntegrations.optional(),
3825
- loggedOutAt: z138.coerce.date().optional(),
3826
- isProtected: z138.boolean()
3828
+ var UserDump = z139.object({
3829
+ user: User,
3830
+ workspaces: WorkspaceDump.array()
3827
3831
  });
3828
- var NpmProxyToken = z139.object({
3829
- access: z139.string(),
3830
- expiresAt: z139.number()
3832
+ var NpmProxyToken = z140.object({
3833
+ access: z140.string(),
3834
+ expiresAt: z140.number()
3831
3835
  });
3832
- var SessionData = z139.object({
3833
- returnToUrl: z139.string().optional(),
3836
+ var SessionData = z140.object({
3837
+ returnToUrl: z140.string().optional(),
3834
3838
  npmProxyToken: NpmProxyToken.optional()
3835
3839
  });
3836
- var Session = z139.object({
3837
- id: z139.string(),
3838
- expiresAt: z139.coerce.date(),
3839
- userId: z139.string().nullable(),
3840
+ var Session = z140.object({
3841
+ id: z140.string(),
3842
+ expiresAt: z140.coerce.date(),
3843
+ userId: z140.string().nullable(),
3840
3844
  data: SessionData
3841
3845
  });
3842
- var AuthTokens = z139.object({
3843
- access: z139.string(),
3844
- refresh: z139.string()
3846
+ var AuthTokens = z140.object({
3847
+ access: z140.string(),
3848
+ refresh: z140.string()
3845
3849
  });
3846
- var UserSession = z139.object({
3850
+ var UserSession = z140.object({
3847
3851
  session: Session,
3848
3852
  user: User.nullable()
3849
3853
  });
3850
- var ExportJobDocumentationContext = z140.object({
3851
- isSingleVersionDocs: z140.boolean(),
3852
- versionSlug: z140.string(),
3854
+ var ExportJobDocumentationContext = z141.object({
3855
+ isSingleVersionDocs: z141.boolean(),
3856
+ versionSlug: z141.string(),
3853
3857
  environment: PublishedDocEnvironment
3854
3858
  });
3855
- var ExportJobContext = z140.object({
3856
- apiUrl: z140.string(),
3857
- accessToken: z140.string(),
3858
- designSystemId: z140.string(),
3859
- designSystemName: z140.string(),
3860
- exporterId: z140.string(),
3861
- versionId: z140.string(),
3862
- brandId: z140.string().optional(),
3863
- themeId: z140.string().optional(),
3864
- exporterName: z140.string(),
3865
- exporterPackageUrl: z140.string(),
3859
+ var ExportJobContext = z141.object({
3860
+ apiUrl: z141.string(),
3861
+ accessToken: z141.string(),
3862
+ designSystemId: z141.string(),
3863
+ designSystemName: z141.string(),
3864
+ exporterId: z141.string(),
3865
+ versionId: z141.string(),
3866
+ brandId: z141.string().optional(),
3867
+ themeId: z141.string().optional(),
3868
+ exporterName: z141.string(),
3869
+ exporterPackageUrl: z141.string(),
3866
3870
  exporterPropertyValues: ExporterPropertyValue.array(),
3867
3871
  documentation: ExportJobDocumentationContext.optional()
3868
3872
  });
3869
- var ExporterFunctionPayload = z141.object({
3870
- exportJobId: z141.string(),
3871
- exportContextId: z141.string(),
3872
- designSystemId: z141.string(),
3873
- workspaceId: z141.string()
3873
+ var ExporterFunctionPayload = z142.object({
3874
+ exportJobId: z142.string(),
3875
+ exportContextId: z142.string(),
3876
+ designSystemId: z142.string(),
3877
+ workspaceId: z142.string()
3874
3878
  });
3875
- var ExportJobDestinationType = z142.enum([
3879
+ var ExportJobDestinationType = z143.enum([
3876
3880
  "s3",
3877
3881
  "webhookUrl",
3878
3882
  "github",
@@ -3881,30 +3885,30 @@ var ExportJobDestinationType = z142.enum([
3881
3885
  "gitlab",
3882
3886
  "bitbucket"
3883
3887
  ]);
3884
- var ExportJobStatus = z142.enum(["InProgress", "Success", "Failed", "Timeout"]);
3885
- var ExportJobLogEntryType = z142.enum(["success", "info", "warning", "error", "user"]);
3886
- var ExportJobLogEntry = z142.object({
3887
- id: z142.string().optional(),
3888
- time: z142.coerce.date(),
3888
+ var ExportJobStatus = z143.enum(["InProgress", "Success", "Failed", "Timeout"]);
3889
+ var ExportJobLogEntryType = z143.enum(["success", "info", "warning", "error", "user"]);
3890
+ var ExportJobLogEntry = z143.object({
3891
+ id: z143.string().optional(),
3892
+ time: z143.coerce.date(),
3889
3893
  type: ExportJobLogEntryType,
3890
- message: z142.string()
3894
+ message: z143.string()
3891
3895
  });
3892
- var ExportJobPullRequestDestinationResult = z142.object({
3893
- pullRequestUrl: z142.string()
3896
+ var ExportJobPullRequestDestinationResult = z143.object({
3897
+ pullRequestUrl: z143.string()
3894
3898
  });
3895
- var ExportJobS3DestinationResult = z142.object({
3896
- bucket: z142.string(),
3897
- urlPrefix: z142.string().optional(),
3898
- path: z142.string(),
3899
- files: z142.array(z142.string()),
3900
- url: nullishToOptional(z142.string()),
3901
- urls: nullishToOptional(z142.string().array())
3899
+ var ExportJobS3DestinationResult = z143.object({
3900
+ bucket: z143.string(),
3901
+ urlPrefix: z143.string().optional(),
3902
+ path: z143.string(),
3903
+ files: z143.array(z143.string()),
3904
+ url: nullishToOptional(z143.string()),
3905
+ urls: nullishToOptional(z143.string().array())
3902
3906
  });
3903
- var ExportJobDocsDestinationResult = z142.object({
3904
- url: z142.string()
3907
+ var ExportJobDocsDestinationResult = z143.object({
3908
+ url: z143.string()
3905
3909
  });
3906
- var ExportJobResult = z142.object({
3907
- error: z142.string().optional(),
3910
+ var ExportJobResult = z143.object({
3911
+ error: z143.string().optional(),
3908
3912
  s3: nullishToOptional(ExportJobS3DestinationResult),
3909
3913
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
3910
3914
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -3913,21 +3917,21 @@ var ExportJobResult = z142.object({
3913
3917
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
3914
3918
  logs: nullishToOptional(ExportJobLogEntry.array())
3915
3919
  });
3916
- var ExportJob = z142.object({
3917
- id: z142.string(),
3918
- createdAt: z142.coerce.date(),
3919
- finishedAt: z142.coerce.date().optional(),
3920
- designSystemId: z142.string(),
3921
- designSystemVersionId: z142.string(),
3922
- workspaceId: z142.string(),
3923
- scheduleId: z142.string().nullish(),
3924
- exporterId: z142.string(),
3925
- brandId: z142.string().optional(),
3926
- themeId: z142.string().optional(),
3927
- estimatedExecutionTime: z142.number().optional(),
3920
+ var ExportJob = z143.object({
3921
+ id: z143.string(),
3922
+ createdAt: z143.coerce.date(),
3923
+ finishedAt: z143.coerce.date().optional(),
3924
+ designSystemId: z143.string(),
3925
+ designSystemVersionId: z143.string(),
3926
+ workspaceId: z143.string(),
3927
+ scheduleId: z143.string().nullish(),
3928
+ exporterId: z143.string(),
3929
+ brandId: z143.string().optional(),
3930
+ themeId: z143.string().optional(),
3931
+ estimatedExecutionTime: z143.number().optional(),
3928
3932
  status: ExportJobStatus,
3929
3933
  result: ExportJobResult.optional(),
3930
- createdByUserId: z142.string().optional(),
3934
+ createdByUserId: z143.string().optional(),
3931
3935
  // Destinations
3932
3936
  ...ExportDestinationsMap.shape
3933
3937
  });
@@ -3941,24 +3945,24 @@ var ExportJobFindByFilter = ExportJob.pick({
3941
3945
  themeId: true,
3942
3946
  brandId: true
3943
3947
  }).extend({
3944
- destinations: z142.array(ExportJobDestinationType),
3948
+ destinations: z143.array(ExportJobDestinationType),
3945
3949
  docsEnvironment: PublishedDocEnvironment
3946
3950
  }).partial();
3947
- var ExporterWorkspaceMembershipRole = z143.enum(["Owner", "OwnerArchived", "User"]);
3948
- var ExporterWorkspaceMembership = z144.object({
3949
- id: z144.string(),
3950
- workspaceId: z144.string(),
3951
- exporterId: z144.string(),
3951
+ var ExporterWorkspaceMembershipRole = z144.enum(["Owner", "OwnerArchived", "User"]);
3952
+ var ExporterWorkspaceMembership = z145.object({
3953
+ id: z145.string(),
3954
+ workspaceId: z145.string(),
3955
+ exporterId: z145.string(),
3952
3956
  role: ExporterWorkspaceMembershipRole
3953
3957
  });
3954
- var FlaggedFeature = z145.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
3955
- var FeatureFlagMap = z145.record(FlaggedFeature, z145.boolean());
3956
- var FeatureFlag = z145.object({
3957
- id: z145.string(),
3958
+ var FlaggedFeature = z146.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
3959
+ var FeatureFlagMap = z146.record(FlaggedFeature, z146.boolean());
3960
+ var FeatureFlag = z146.object({
3961
+ id: z146.string(),
3958
3962
  feature: FlaggedFeature,
3959
- createdAt: z145.coerce.date(),
3960
- enabled: z145.boolean(),
3961
- designSystemId: z145.string().optional()
3963
+ createdAt: z146.coerce.date(),
3964
+ enabled: z146.boolean(),
3965
+ designSystemId: z146.string().optional()
3962
3966
  });
3963
3967
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
3964
3968
  OAuthProviderNames2["Figma"] = "figma";
@@ -3968,173 +3972,173 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
3968
3972
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
3969
3973
  return OAuthProviderNames2;
3970
3974
  })(OAuthProviderNames || {});
3971
- var OAuthProviderSchema = z146.nativeEnum(OAuthProviderNames);
3975
+ var OAuthProviderSchema = z147.nativeEnum(OAuthProviderNames);
3972
3976
  var OAuthProvider = OAuthProviderSchema.enum;
3973
- var ExternalOAuthRequest = z147.object({
3974
- id: z147.string(),
3977
+ var ExternalOAuthRequest = z148.object({
3978
+ id: z148.string(),
3975
3979
  provider: OAuthProviderSchema,
3976
- userId: z147.string(),
3977
- state: z147.string(),
3978
- createdAt: z147.coerce.date()
3980
+ userId: z148.string(),
3981
+ state: z148.string(),
3982
+ createdAt: z148.coerce.date()
3979
3983
  });
3980
- var GitObjectsQuery = z148.object({
3981
- organization: z148.string().optional(),
3984
+ var GitObjectsQuery = z149.object({
3985
+ organization: z149.string().optional(),
3982
3986
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
3983
- project: z148.string().optional(),
3987
+ project: z149.string().optional(),
3984
3988
  // Only for Bitbucket and Azure
3985
- repository: z148.string().optional(),
3989
+ repository: z149.string().optional(),
3986
3990
  // For all providers. For Gitlab, it's called "project".
3987
- branch: z148.string().optional(),
3991
+ branch: z149.string().optional(),
3988
3992
  // For all providers.
3989
- user: z148.string().optional()
3993
+ user: z149.string().optional()
3990
3994
  // Gitlab user
3991
3995
  });
3992
- var GitOrganization = z148.object({
3993
- id: z148.string(),
3994
- name: z148.string(),
3995
- url: z148.string(),
3996
- slug: z148.string()
3996
+ var GitOrganization = z149.object({
3997
+ id: z149.string(),
3998
+ name: z149.string(),
3999
+ url: z149.string(),
4000
+ slug: z149.string()
3997
4001
  });
3998
- var GitProject = z148.object({
3999
- id: z148.string(),
4000
- name: z148.string(),
4001
- url: z148.string(),
4002
- slug: z148.string()
4002
+ var GitProject = z149.object({
4003
+ id: z149.string(),
4004
+ name: z149.string(),
4005
+ url: z149.string(),
4006
+ slug: z149.string()
4003
4007
  });
4004
- var GitRepository = z148.object({
4005
- id: z148.string(),
4006
- name: z148.string(),
4007
- url: z148.string(),
4008
- slug: z148.string(),
4008
+ var GitRepository = z149.object({
4009
+ id: z149.string(),
4010
+ name: z149.string(),
4011
+ url: z149.string(),
4012
+ slug: z149.string(),
4009
4013
  /**
4010
4014
  * Can be undefined when:
4011
4015
  * - there are no branches in the repository yet
4012
4016
  * - Git provider doesn't expose this information on a repository via their API
4013
4017
  */
4014
- defaultBranch: z148.string().optional()
4018
+ defaultBranch: z149.string().optional()
4015
4019
  });
4016
- var GitBranch = z148.object({
4017
- name: z148.string(),
4018
- lastCommitId: z148.string()
4020
+ var GitBranch = z149.object({
4021
+ name: z149.string(),
4022
+ lastCommitId: z149.string()
4019
4023
  });
4020
- var IntegrationTokenSchemaOld = z149.object({
4021
- id: z149.string(),
4022
- provider: OAuthProviderSchema,
4023
- scope: z149.string(),
4024
- userId: z149.string(),
4025
- accessToken: z149.string(),
4026
- refreshToken: z149.string(),
4027
- expiresAt: z149.coerce.date(),
4028
- externalUserId: z149.string().nullish()
4029
- });
4030
- var WorkspaceOAuthRequestSchema = z150.object({
4024
+ var IntegrationTokenSchemaOld = z150.object({
4031
4025
  id: z150.string(),
4032
- workspaceId: z150.string(),
4033
4026
  provider: OAuthProviderSchema,
4027
+ scope: z150.string(),
4034
4028
  userId: z150.string(),
4035
- createdAt: z150.coerce.date()
4029
+ accessToken: z150.string(),
4030
+ refreshToken: z150.string(),
4031
+ expiresAt: z150.coerce.date(),
4032
+ externalUserId: z150.string().nullish()
4033
+ });
4034
+ var WorkspaceOAuthRequestSchema = z151.object({
4035
+ id: z151.string(),
4036
+ workspaceId: z151.string(),
4037
+ provider: OAuthProviderSchema,
4038
+ userId: z151.string(),
4039
+ createdAt: z151.coerce.date()
4036
4040
  });
4037
- var AnyRecord = z151.record(z151.any());
4041
+ var AnyRecord = z152.record(z152.any());
4038
4042
  var NpmPackageVersionDist = AnyRecord.and(
4039
- z151.object({
4040
- tarball: z151.string()
4043
+ z152.object({
4044
+ tarball: z152.string()
4041
4045
  })
4042
4046
  );
4043
4047
  var NpmPackageVersion = AnyRecord.and(
4044
- z151.object({
4048
+ z152.object({
4045
4049
  dist: NpmPackageVersionDist
4046
4050
  })
4047
4051
  );
4048
4052
  var NpmPackage = AnyRecord.and(
4049
- z151.object({
4050
- _id: z151.string(),
4051
- name: z151.string(),
4053
+ z152.object({
4054
+ _id: z152.string(),
4055
+ name: z152.string(),
4052
4056
  // e.g. "latest": "1.2.3"
4053
- "dist-tags": z151.record(z151.string(), z151.string()),
4057
+ "dist-tags": z152.record(z152.string(), z152.string()),
4054
4058
  // "1.2.3": {...}
4055
- versions: z151.record(NpmPackageVersion)
4059
+ versions: z152.record(NpmPackageVersion)
4056
4060
  })
4057
4061
  );
4058
- var NpmProxyTokenPayload = z152.object({
4059
- npmProxyRegistryConfigId: z152.string()
4062
+ var NpmProxyTokenPayload = z153.object({
4063
+ npmProxyRegistryConfigId: z153.string()
4060
4064
  });
4061
- var WorkspaceRoleSchema = z153.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
4065
+ var WorkspaceRoleSchema = z154.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
4062
4066
  var WorkspaceRole = WorkspaceRoleSchema.enum;
4063
4067
  var MAX_MEMBERS_COUNT = 100;
4064
- var UserInvite = z154.object({
4065
- email: z154.string().email().trim().transform((value) => value.toLowerCase()),
4068
+ var UserInvite = z155.object({
4069
+ email: z155.string().email().trim().transform((value) => value.toLowerCase()),
4066
4070
  role: WorkspaceRoleSchema
4067
4071
  });
4068
- var UserInvites = z154.array(UserInvite).max(MAX_MEMBERS_COUNT);
4069
- var WorkspaceConfigurationUpdate = z155.object({
4070
- id: z155.string(),
4072
+ var UserInvites = z155.array(UserInvite).max(MAX_MEMBERS_COUNT);
4073
+ var WorkspaceConfigurationUpdate = z156.object({
4074
+ id: z156.string(),
4071
4075
  ipWhitelist: WorkspaceIpSettings.optional(),
4072
4076
  sso: SsoProvider.optional(),
4073
4077
  npmRegistrySettings: NpmRegistryConfig.optional(),
4074
4078
  profile: WorkspaceProfileUpdate.optional()
4075
4079
  });
4076
- var WorkspaceContext = z156.object({
4077
- workspaceId: z156.string(),
4080
+ var WorkspaceContext = z157.object({
4081
+ workspaceId: z157.string(),
4078
4082
  product: ProductCodeSchema,
4079
4083
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4080
- publicDesignSystem: z156.boolean().optional()
4084
+ publicDesignSystem: z157.boolean().optional()
4081
4085
  });
4082
4086
  var WORKSPACE_NAME_MIN_LENGTH = 2;
4083
4087
  var WORKSPACE_NAME_MAX_LENGTH = 64;
4084
4088
  var HANDLE_MIN_LENGTH = 2;
4085
4089
  var HANDLE_MAX_LENGTH = 64;
4086
- var CreateWorkspaceInput = z157.object({
4087
- name: z157.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4090
+ var CreateWorkspaceInput = z158.object({
4091
+ name: z158.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4088
4092
  product: ProductCodeSchema,
4089
- priceId: z157.string(),
4090
- billingEmail: z157.string().email().optional(),
4091
- handle: z157.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
4093
+ priceId: z158.string(),
4094
+ billingEmail: z158.string().email().optional(),
4095
+ handle: z158.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
4092
4096
  invites: UserInvites.optional(),
4093
- promoCode: z157.string().optional(),
4097
+ promoCode: z158.string().optional(),
4094
4098
  status: InternalStatusSchema.optional(),
4095
4099
  planInterval: BillingIntervalSchema.optional(),
4096
- seats: z157.number().optional(),
4097
- seatLimit: z157.number().optional(),
4100
+ seats: z158.number().optional(),
4101
+ seatLimit: z158.number().optional(),
4098
4102
  card: CardSchema.optional(),
4099
4103
  sso: SsoProvider.optional(),
4100
4104
  npmRegistrySettings: NpmRegistryConfig.optional(),
4101
4105
  ipWhitelist: WorkspaceIpSettings.optional()
4102
4106
  });
4103
- var WorkspaceInvitation = z158.object({
4104
- id: z158.string(),
4105
- email: z158.string().email(),
4106
- createdAt: z158.coerce.date(),
4107
- resentAt: z158.coerce.date().nullish(),
4108
- role: z158.nativeEnum(WorkspaceRole),
4109
- workspaceId: z158.string(),
4110
- invitedBy: z158.string()
4111
- });
4112
- var WorkspaceMembership = z159.object({
4107
+ var WorkspaceInvitation = z159.object({
4113
4108
  id: z159.string(),
4114
- userId: z159.string(),
4109
+ email: z159.string().email(),
4110
+ createdAt: z159.coerce.date(),
4111
+ resentAt: z159.coerce.date().nullish(),
4112
+ role: z159.nativeEnum(WorkspaceRole),
4115
4113
  workspaceId: z159.string(),
4116
- workspaceRole: z159.nativeEnum(WorkspaceRole),
4114
+ invitedBy: z159.string()
4115
+ });
4116
+ var WorkspaceMembership = z160.object({
4117
+ id: z160.string(),
4118
+ userId: z160.string(),
4119
+ workspaceId: z160.string(),
4120
+ workspaceRole: z160.nativeEnum(WorkspaceRole),
4117
4121
  notificationSettings: UserNotificationSettings
4118
4122
  });
4119
- var UpdateMembershipRolesInput = z159.object({
4120
- members: z159.array(
4121
- z159.object({
4122
- userId: z159.string(),
4123
- role: z159.nativeEnum(WorkspaceRole)
4123
+ var UpdateMembershipRolesInput = z160.object({
4124
+ members: z160.array(
4125
+ z160.object({
4126
+ userId: z160.string(),
4127
+ role: z160.nativeEnum(WorkspaceRole)
4124
4128
  })
4125
4129
  )
4126
4130
  });
4127
- var PersonalAccessToken = z160.object({
4128
- id: z160.string(),
4129
- userId: z160.string(),
4130
- workspaceId: z160.string().optional(),
4131
+ var PersonalAccessToken = z161.object({
4132
+ id: z161.string(),
4133
+ userId: z161.string(),
4134
+ workspaceId: z161.string().optional(),
4131
4135
  workspaceRole: WorkspaceRoleSchema.optional(),
4132
- name: z160.string(),
4133
- hidden: z160.boolean(),
4134
- token: z160.string(),
4135
- scope: z160.string().optional(),
4136
- createdAt: z160.coerce.date(),
4137
- expireAt: z160.coerce.date().optional()
4136
+ name: z161.string(),
4137
+ hidden: z161.boolean(),
4138
+ token: z161.string(),
4139
+ scope: z161.string().optional(),
4140
+ createdAt: z161.coerce.date(),
4141
+ expireAt: z161.coerce.date().optional()
4138
4142
  });
4139
4143
 
4140
4144
  // src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts
@@ -4562,219 +4566,219 @@ function integrationCredentialToDto(credential) {
4562
4566
  }
4563
4567
 
4564
4568
  // src/api/dto/design-systems/brand.ts
4565
- import { z as z161 } from "zod";
4566
- var DTOBrand = z161.object({
4567
- id: z161.string(),
4568
- designSystemVersionId: z161.string(),
4569
- persistentId: z161.string(),
4569
+ import { z as z162 } from "zod";
4570
+ var DTOBrand = z162.object({
4571
+ id: z162.string(),
4572
+ designSystemVersionId: z162.string(),
4573
+ persistentId: z162.string(),
4570
4574
  meta: ObjectMeta
4571
4575
  });
4572
- var DTOBrandGetResponse = z161.object({ brand: DTOBrand });
4573
- var DTOBrandCreateResponse = z161.object({
4576
+ var DTOBrandGetResponse = z162.object({ brand: DTOBrand });
4577
+ var DTOBrandCreateResponse = z162.object({
4574
4578
  brand: DTOBrand
4575
4579
  });
4576
- var DTOBrandsListResponse = z161.object({ brands: z161.array(DTOBrand) });
4580
+ var DTOBrandsListResponse = z162.object({ brands: z162.array(DTOBrand) });
4577
4581
 
4578
4582
  // src/api/dto/design-systems/data-source.ts
4579
- import { z as z162 } from "zod";
4580
- var DTODataSourceFigmaFileVersion = z162.object({
4581
- id: z162.string(),
4582
- created_at: z162.coerce.date(),
4583
- label: z162.string(),
4584
- description: z162.string()
4585
- });
4586
- var DTODataSourceFigmaCloud = z162.object({
4587
- fileId: z162.string(),
4583
+ import { z as z163 } from "zod";
4584
+ var DTODataSourceFigmaFileVersion = z163.object({
4585
+ id: z163.string(),
4586
+ created_at: z163.coerce.date(),
4587
+ label: z163.string(),
4588
+ description: z163.string()
4589
+ });
4590
+ var DTODataSourceFigmaCloud = z163.object({
4591
+ fileId: z163.string(),
4588
4592
  state: DataSourceFigmaState,
4589
4593
  autoImportMode: DataSourceAutoImportMode,
4590
- fileThumbnailUrl: z162.string().optional(),
4594
+ fileThumbnailUrl: z163.string().optional(),
4591
4595
  lastImportResult: SourceImportSummary.nullish(),
4592
- lastImportedAt: z162.date().nullish(),
4596
+ lastImportedAt: z163.date().nullish(),
4593
4597
  lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
4594
- lastUpdatesCheckedAt: z162.date().nullish(),
4595
- ownerId: z162.string(),
4596
- ownerUserName: z162.string().optional(),
4597
- preferredCredentialId: z162.string().optional(),
4598
+ lastUpdatesCheckedAt: z163.date().nullish(),
4599
+ ownerId: z163.string(),
4600
+ ownerUserName: z163.string().optional(),
4601
+ preferredCredentialId: z163.string().optional(),
4598
4602
  stats: DataSourceStats
4599
4603
  });
4600
- var DTODataSourceFigma = z162.object({
4601
- id: z162.string(),
4602
- type: z162.literal(DataSourceRemoteType.Enum.Figma),
4603
- fileName: z162.string(),
4604
+ var DTODataSourceFigma = z163.object({
4605
+ id: z163.string(),
4606
+ type: z163.literal(DataSourceRemoteType.Enum.Figma),
4607
+ fileName: z163.string(),
4604
4608
  scope: DataSourceFigmaScope,
4605
- brandId: z162.string(),
4606
- themeId: z162.string().nullish(),
4609
+ brandId: z163.string(),
4610
+ themeId: z163.string().nullish(),
4607
4611
  cloud: DTODataSourceFigmaCloud.nullish(),
4608
- tokenStudio: z162.literal(null),
4609
- upload: z162.literal(null),
4610
- figmaVariablesPlugin: z162.literal(null)
4611
- });
4612
- var DTODataSourceTokenStudio = z162.object({
4613
- id: z162.string(),
4614
- type: z162.literal(DataSourceRemoteType.Enum.TokenStudio),
4615
- fileName: z162.string(),
4616
- brandId: z162.string(),
4617
- themeId: z162.string().nullish(),
4618
- cloud: z162.literal(null),
4619
- tokenStudio: z162.object({
4620
- settings: z162.object({
4621
- dryRun: z162.boolean(),
4622
- verbose: z162.boolean(),
4623
- preciseCopy: z162.boolean()
4612
+ tokenStudio: z163.literal(null),
4613
+ upload: z163.literal(null),
4614
+ figmaVariablesPlugin: z163.literal(null)
4615
+ });
4616
+ var DTODataSourceTokenStudio = z163.object({
4617
+ id: z163.string(),
4618
+ type: z163.literal(DataSourceRemoteType.Enum.TokenStudio),
4619
+ fileName: z163.string(),
4620
+ brandId: z163.string(),
4621
+ themeId: z163.string().nullish(),
4622
+ cloud: z163.literal(null),
4623
+ tokenStudio: z163.object({
4624
+ settings: z163.object({
4625
+ dryRun: z163.boolean(),
4626
+ verbose: z163.boolean(),
4627
+ preciseCopy: z163.boolean()
4624
4628
  }),
4625
- connectionName: z162.string(),
4626
- lastImportedAt: z162.date(),
4627
- lastImportedResults: z162.array(
4628
- z162.object({
4629
- mapping: z162.object({
4630
- tokenSets: z162.array(z162.string()),
4631
- supernovaBrand: z162.string(),
4632
- supernovaTheme: z162.string().optional()
4629
+ connectionName: z163.string(),
4630
+ lastImportedAt: z163.date(),
4631
+ lastImportedResults: z163.array(
4632
+ z163.object({
4633
+ mapping: z163.object({
4634
+ tokenSets: z163.array(z163.string()),
4635
+ supernovaBrand: z163.string(),
4636
+ supernovaTheme: z163.string().optional()
4633
4637
  }),
4634
- isFailed: z162.boolean(),
4635
- tokensCreated: z162.number(),
4636
- tokensDeleted: z162.number(),
4637
- tokensUpdated: z162.number()
4638
+ isFailed: z163.boolean(),
4639
+ tokensCreated: z163.number(),
4640
+ tokensDeleted: z163.number(),
4641
+ tokensUpdated: z163.number()
4638
4642
  })
4639
4643
  )
4640
4644
  }),
4641
- upload: z162.literal(null),
4642
- figmaVariablesPlugin: z162.literal(null)
4643
- });
4644
- var DTODataSourceFigmaVariablesPlugin = z162.object({
4645
- id: z162.string(),
4646
- type: z162.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
4647
- fileName: z162.string(),
4648
- brandId: z162.string(),
4649
- themeId: z162.literal(null),
4650
- cloud: z162.literal(null),
4651
- tokenStudio: z162.literal(null),
4652
- upload: z162.object({
4653
- remoteId: z162.string(),
4645
+ upload: z163.literal(null),
4646
+ figmaVariablesPlugin: z163.literal(null)
4647
+ });
4648
+ var DTODataSourceFigmaVariablesPlugin = z163.object({
4649
+ id: z163.string(),
4650
+ type: z163.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
4651
+ fileName: z163.string(),
4652
+ brandId: z163.string(),
4653
+ themeId: z163.literal(null),
4654
+ cloud: z163.literal(null),
4655
+ tokenStudio: z163.literal(null),
4656
+ upload: z163.object({
4657
+ remoteId: z163.string(),
4654
4658
  remoteSourceType: DataSourceUploadRemoteSource,
4655
- lastImportedAt: z162.date().optional(),
4659
+ lastImportedAt: z163.date().optional(),
4656
4660
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
4657
4661
  }),
4658
- figmaVariablesPlugin: z162.object({
4659
- fileId: z162.string(),
4660
- lastImportedAt: z162.date().optional(),
4662
+ figmaVariablesPlugin: z163.object({
4663
+ fileId: z163.string(),
4664
+ lastImportedAt: z163.date().optional(),
4661
4665
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
4662
4666
  })
4663
4667
  });
4664
- var DTODataSource = z162.discriminatedUnion("type", [
4668
+ var DTODataSource = z163.discriminatedUnion("type", [
4665
4669
  DTODataSourceFigma,
4666
4670
  DTODataSourceFigmaVariablesPlugin,
4667
4671
  DTODataSourceTokenStudio
4668
4672
  ]);
4669
- var DTODataSourcesListResponse = z162.object({
4670
- sources: z162.array(DTODataSource)
4673
+ var DTODataSourcesListResponse = z163.object({
4674
+ sources: z163.array(DTODataSource)
4671
4675
  });
4672
- var DTODataSourceCreationResponse = z162.object({
4676
+ var DTODataSourceCreationResponse = z163.object({
4673
4677
  source: DTODataSource
4674
4678
  });
4675
4679
 
4676
4680
  // src/api/dto/design-systems/design-system.ts
4677
- import { z as z163 } from "zod";
4681
+ import { z as z164 } from "zod";
4678
4682
  var DTODesignSystem = DesignSystem.omit({
4679
4683
  name: true,
4680
4684
  description: true,
4681
4685
  docExporterId: true
4682
4686
  }).extend({
4683
4687
  meta: ObjectMeta,
4684
- docExporterId: z163.string()
4688
+ docExporterId: z164.string()
4685
4689
  });
4686
4690
 
4687
4691
  // src/api/dto/design-systems/exporter-property.ts
4688
- import { z as z164 } from "zod";
4689
- var DTOExporterProperty = z164.any({});
4690
- var DTOExporterPropertyListResponse = z164.object({ items: z164.array(DTOExporterProperty) });
4692
+ import { z as z165 } from "zod";
4693
+ var DTOExporterProperty = z165.any({});
4694
+ var DTOExporterPropertyListResponse = z165.object({ items: z165.array(DTOExporterProperty) });
4691
4695
 
4692
4696
  // src/api/dto/design-systems/version.ts
4693
- import { z as z173 } from "zod";
4697
+ import { z as z174 } from "zod";
4694
4698
 
4695
4699
  // src/api/payloads/design-systems/brand.ts
4696
- import { z as z165 } from "zod";
4697
- var DTOCreateBrandInput = z165.object({
4698
- persistentId: z165.string().uuid(),
4699
- meta: z165.object({
4700
- name: z165.string(),
4701
- description: z165.string()
4700
+ import { z as z166 } from "zod";
4701
+ var DTOCreateBrandInput = z166.object({
4702
+ persistentId: z166.string().uuid(),
4703
+ meta: z166.object({
4704
+ name: z166.string(),
4705
+ description: z166.string()
4702
4706
  })
4703
4707
  });
4704
4708
 
4705
4709
  // src/api/payloads/design-systems/version.ts
4706
- import { z as z166 } from "zod";
4707
- var ObjectMeta2 = z166.object({
4708
- name: z166.string().max(150).optional(),
4709
- description: z166.string().max(2e3).optional()
4710
+ import { z as z167 } from "zod";
4711
+ var ObjectMeta2 = z167.object({
4712
+ name: z167.string().max(150).optional(),
4713
+ description: z167.string().max(2e3).optional()
4710
4714
  });
4711
4715
  function validateDesignSystemVersion(version) {
4712
4716
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
4713
4717
  return urlCompliantRegex.test(version);
4714
4718
  }
4715
- var DTOCreateVersionInput = z166.object({
4719
+ var DTOCreateVersionInput = z167.object({
4716
4720
  meta: ObjectMeta2,
4717
- version: z166.string().refine(validateDesignSystemVersion, {
4721
+ version: z167.string().refine(validateDesignSystemVersion, {
4718
4722
  message: "Invalid semantic versioning format"
4719
4723
  }),
4720
- changeLog: z166.string().optional()
4724
+ changeLog: z167.string().optional()
4721
4725
  });
4722
- var DTOUpdateVersionInput = z166.object({
4726
+ var DTOUpdateVersionInput = z167.object({
4723
4727
  meta: ObjectMeta2,
4724
- version: z166.string(),
4728
+ version: z167.string(),
4725
4729
  // required for PUT, but not editable
4726
- changeLog: z166.string()
4730
+ changeLog: z167.string()
4727
4731
  });
4728
4732
 
4729
4733
  // src/api/payloads/documentation/block-definitions.ts
4730
- import { z as z167 } from "zod";
4731
- var DTOGetBlockDefinitionsOutput = z167.object({
4732
- definitions: z167.array(PageBlockDefinition)
4734
+ import { z as z168 } from "zod";
4735
+ var DTOGetBlockDefinitionsOutput = z168.object({
4736
+ definitions: z168.array(PageBlockDefinition)
4733
4737
  });
4734
4738
 
4735
4739
  // src/api/payloads/export/pipeline.ts
4736
- import { z as z168 } from "zod";
4737
- var DTOPipelineCreateBody = z168.object({
4738
- name: z168.string(),
4739
- exporterId: z168.string(),
4740
- designSystemId: z168.string(),
4741
- isEnabled: z168.boolean(),
4740
+ import { z as z169 } from "zod";
4741
+ var DTOPipelineCreateBody = z169.object({
4742
+ name: z169.string(),
4743
+ exporterId: z169.string(),
4744
+ designSystemId: z169.string(),
4745
+ isEnabled: z169.boolean(),
4742
4746
  eventType: PipelineEventType,
4743
- brandPersistentId: z168.string().optional(),
4744
- themePersistentId: z168.string().optional(),
4747
+ brandPersistentId: z169.string().optional(),
4748
+ themePersistentId: z169.string().optional(),
4745
4749
  destination: PipelineDestinationType.optional(),
4746
4750
  gitQuery: GitObjectsQuery,
4747
- destinations: z168.object({
4751
+ destinations: z169.object({
4748
4752
  s3: ExporterDestinationS3.nullish(),
4749
4753
  azure: ExporterDestinationAzure.nullish(),
4750
4754
  bitbucket: ExporterDestinationBitbucket.nullish(),
4751
4755
  github: ExporterDestinationGithub.nullish(),
4752
4756
  gitlab: ExporterDestinationGitlab.nullish(),
4753
4757
  documentation: ExporterDestinationDocs.nullish(),
4754
- webhookUrl: z168.string().nullish()
4758
+ webhookUrl: z169.string().nullish()
4755
4759
  })
4756
4760
  });
4757
4761
  var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
4758
- id: z168.string()
4762
+ id: z169.string()
4759
4763
  });
4760
- var DTOPipelineTriggerBody = z168.object({
4761
- designSystemVersionId: z168.string()
4764
+ var DTOPipelineTriggerBody = z169.object({
4765
+ designSystemVersionId: z169.string()
4762
4766
  });
4763
4767
 
4764
4768
  // src/api/payloads/liveblocks/auth.ts
4765
- import { z as z169 } from "zod";
4766
- var DTOLiveblocksAuthRequest = z169.object({
4767
- room: z169.string().optional()
4769
+ import { z as z170 } from "zod";
4770
+ var DTOLiveblocksAuthRequest = z170.object({
4771
+ room: z170.string().optional()
4768
4772
  });
4769
4773
 
4770
4774
  // src/api/payloads/users/notifications/notification-settings.ts
4771
- import { z as z170 } from "zod";
4772
- var DTOUpdateUserNotificationSettingsPayload = z170.object({
4775
+ import { z as z171 } from "zod";
4776
+ var DTOUpdateUserNotificationSettingsPayload = z171.object({
4773
4777
  notificationSettings: UserNotificationSettings
4774
4778
  });
4775
- var DTOUserNotificationSettingsResponse = z170.object({
4776
- userId: z170.string(),
4777
- workspaceId: z170.string(),
4779
+ var DTOUserNotificationSettingsResponse = z171.object({
4780
+ userId: z171.string(),
4781
+ workspaceId: z171.string(),
4778
4782
  notificationSettings: UserNotificationSettings
4779
4783
  });
4780
4784
 
@@ -4782,7 +4786,7 @@ var DTOUserNotificationSettingsResponse = z170.object({
4782
4786
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
4783
4787
 
4784
4788
  // src/api/payloads/workspaces/workspace-configuration.ts
4785
- import { z as z171 } from "zod";
4789
+ import { z as z172 } from "zod";
4786
4790
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
4787
4791
  function validateSsoPayload(ssoPayload) {
4788
4792
  const keys = [];
@@ -4805,21 +4809,21 @@ function validateSsoPayload(ssoPayload) {
4805
4809
  keys
4806
4810
  };
4807
4811
  }
4808
- var NpmRegistryInput = z171.object({
4809
- enabledScopes: z171.array(z171.string()),
4810
- customRegistryUrl: z171.string().optional(),
4811
- bypassProxy: z171.boolean().optional(),
4812
- npmProxyRegistryConfigId: z171.string().optional(),
4813
- npmProxyVersion: z171.number().optional(),
4814
- registryType: z171.string(),
4815
- authType: z171.string(),
4816
- authHeaderName: z171.string(),
4817
- authHeaderValue: z171.string(),
4818
- accessToken: z171.string(),
4819
- username: z171.string(),
4820
- password: z171.string()
4821
- });
4822
- var WorkspaceConfigurationPayload = z171.object({
4812
+ var NpmRegistryInput = z172.object({
4813
+ enabledScopes: z172.array(z172.string()),
4814
+ customRegistryUrl: z172.string().optional(),
4815
+ bypassProxy: z172.boolean().optional(),
4816
+ npmProxyRegistryConfigId: z172.string().optional(),
4817
+ npmProxyVersion: z172.number().optional(),
4818
+ registryType: z172.string(),
4819
+ authType: z172.string(),
4820
+ authHeaderName: z172.string(),
4821
+ authHeaderValue: z172.string(),
4822
+ accessToken: z172.string(),
4823
+ username: z172.string(),
4824
+ password: z172.string()
4825
+ });
4826
+ var WorkspaceConfigurationPayload = z172.object({
4823
4827
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
4824
4828
  sso: SsoProvider.partial().optional(),
4825
4829
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -4827,130 +4831,130 @@ var WorkspaceConfigurationPayload = z171.object({
4827
4831
  });
4828
4832
 
4829
4833
  // src/api/payloads/workspaces/workspace-integrations.ts
4830
- import { z as z172 } from "zod";
4831
- var DTOWorkspaceIntegrationOauthInput = z172.object({
4834
+ import { z as z173 } from "zod";
4835
+ var DTOWorkspaceIntegrationOauthInput = z173.object({
4832
4836
  type: IntegrationType
4833
4837
  });
4834
- var DTOWorkspaceIntegrationPATInput = z172.object({
4835
- userId: z172.string(),
4838
+ var DTOWorkspaceIntegrationPATInput = z173.object({
4839
+ userId: z173.string(),
4836
4840
  type: IntegrationType,
4837
4841
  token: IntegrationToken
4838
4842
  });
4839
- var DTOWorkspaceIntegrationGetGitObjectsInput = z172.object({
4840
- organization: z172.string().optional(),
4843
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z173.object({
4844
+ organization: z173.string().optional(),
4841
4845
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
4842
- project: z172.string().optional(),
4846
+ project: z173.string().optional(),
4843
4847
  // Only for Bitbucket and Azure
4844
- repository: z172.string().optional(),
4848
+ repository: z173.string().optional(),
4845
4849
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
4846
- branch: z172.string().optional(),
4850
+ branch: z173.string().optional(),
4847
4851
  // For all providers, useful for PR creations.
4848
- user: z172.string().optional()
4852
+ user: z173.string().optional()
4849
4853
  // Only for Gitlab User Repositories
4850
4854
  });
4851
4855
 
4852
4856
  // src/api/dto/design-systems/version.ts
4853
- var DTODesignSystemVersion = z173.object({
4854
- id: z173.string(),
4855
- createdAt: z173.date(),
4857
+ var DTODesignSystemVersion = z174.object({
4858
+ id: z174.string(),
4859
+ createdAt: z174.date(),
4856
4860
  meta: ObjectMeta,
4857
- version: z173.string(),
4858
- isReadonly: z173.boolean(),
4859
- changeLog: z173.string(),
4860
- designSystemId: z173.string()
4861
+ version: z174.string(),
4862
+ isReadonly: z174.boolean(),
4863
+ changeLog: z174.string(),
4864
+ designSystemId: z174.string()
4861
4865
  });
4862
- var DTODesignSystemVersionsListResponse = z173.object({
4863
- designSystemVersions: z173.array(DTODesignSystemVersion)
4866
+ var DTODesignSystemVersionsListResponse = z174.object({
4867
+ designSystemVersions: z174.array(DTODesignSystemVersion)
4864
4868
  });
4865
- var DTODesignSystemVersionGetResponse = z173.object({
4869
+ var DTODesignSystemVersionGetResponse = z174.object({
4866
4870
  designSystemVersion: DTODesignSystemVersion
4867
4871
  });
4868
- var DTODesignSystemVersionCreationResponse = z173.object({
4872
+ var DTODesignSystemVersionCreationResponse = z174.object({
4869
4873
  meta: ObjectMeta,
4870
- version: z173.string(),
4871
- changeLog: z173.string(),
4872
- isReadOnly: z173.boolean(),
4873
- designSystemId: z173.string(),
4874
- jobId: z173.string()
4875
- });
4876
- var VersionSQSPayload = z173.object({
4877
- jobId: z173.string(),
4878
- designSystemId: z173.string(),
4874
+ version: z174.string(),
4875
+ changeLog: z174.string(),
4876
+ isReadOnly: z174.boolean(),
4877
+ designSystemId: z174.string(),
4878
+ jobId: z174.string()
4879
+ });
4880
+ var VersionSQSPayload = z174.object({
4881
+ jobId: z174.string(),
4882
+ designSystemId: z174.string(),
4879
4883
  input: DTOCreateVersionInput
4880
4884
  });
4881
- var DTODesignSystemVersionJobsResponse = z173.object({
4882
- jobs: z173.array(VersionCreationJob)
4885
+ var DTODesignSystemVersionJobsResponse = z174.object({
4886
+ jobs: z174.array(VersionCreationJob)
4883
4887
  });
4884
- var DTODesignSystemVersionJobStatusResponse = z173.object({
4888
+ var DTODesignSystemVersionJobStatusResponse = z174.object({
4885
4889
  job: VersionCreationJob
4886
4890
  });
4887
4891
 
4888
4892
  // src/api/dto/design-systems/view.ts
4889
- import { z as z174 } from "zod";
4890
- var DTOElementViewColumnSharedAttributes = z174.object({
4891
- id: z174.string(),
4892
- persistentId: z174.string(),
4893
- width: z174.number()
4893
+ import { z as z175 } from "zod";
4894
+ var DTOElementViewColumnSharedAttributes = z175.object({
4895
+ id: z175.string(),
4896
+ persistentId: z175.string(),
4897
+ width: z175.number()
4894
4898
  });
4895
4899
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
4896
- type: z174.literal("BaseProperty"),
4900
+ type: z175.literal("BaseProperty"),
4897
4901
  basePropertyType: ElementViewBaseColumnType
4898
4902
  });
4899
4903
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
4900
- type: z174.literal("PropertyDefinition"),
4901
- propertyDefinitionId: z174.string()
4904
+ type: z175.literal("PropertyDefinition"),
4905
+ propertyDefinitionId: z175.string()
4902
4906
  });
4903
4907
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
4904
- type: z174.literal("Theme"),
4905
- themeId: z174.string()
4908
+ type: z175.literal("Theme"),
4909
+ themeId: z175.string()
4906
4910
  });
4907
- var DTOElementViewColumn = z174.discriminatedUnion("type", [
4911
+ var DTOElementViewColumn = z175.discriminatedUnion("type", [
4908
4912
  DTOElementViewBasePropertyColumn,
4909
4913
  DTOElementViewPropertyDefinitionColumn,
4910
4914
  DTOElementViewThemeColumn
4911
4915
  ]);
4912
- var DTOElementView = z174.object({
4916
+ var DTOElementView = z175.object({
4913
4917
  meta: ObjectMeta,
4914
- persistentId: z174.string(),
4918
+ persistentId: z175.string(),
4915
4919
  targetElementType: ElementPropertyTargetType,
4916
- id: z174.string(),
4917
- isDefault: z174.boolean(),
4918
- columns: z174.array(DTOElementViewColumn)
4920
+ id: z175.string(),
4921
+ isDefault: z175.boolean(),
4922
+ columns: z175.array(DTOElementViewColumn)
4919
4923
  });
4920
- var DTOElementViewsListResponse = z174.object({
4921
- elementDataViews: z174.array(DTOElementView)
4924
+ var DTOElementViewsListResponse = z175.object({
4925
+ elementDataViews: z175.array(DTOElementView)
4922
4926
  });
4923
4927
 
4924
4928
  // src/api/dto/documentation/anchor.ts
4925
- import { z as z175 } from "zod";
4929
+ import { z as z176 } from "zod";
4926
4930
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
4927
- var DTOGetDocumentationPageAnchorsResponse = z175.object({
4928
- anchors: z175.array(DTODocumentationPageAnchor)
4931
+ var DTOGetDocumentationPageAnchorsResponse = z176.object({
4932
+ anchors: z176.array(DTODocumentationPageAnchor)
4929
4933
  });
4930
4934
 
4931
4935
  // src/api/dto/documentation/link-preview.ts
4932
- import { z as z176 } from "zod";
4933
- var DTODocumentationLinkPreviewResponse = z176.object({
4936
+ import { z as z177 } from "zod";
4937
+ var DTODocumentationLinkPreviewResponse = z177.object({
4934
4938
  linkPreview: DocumentationLinkPreview
4935
4939
  });
4936
- var DTODocumentationLinkPreviewRequest = z176.object({
4937
- url: z176.string().optional(),
4938
- documentationItemPersistentId: z176.string().optional()
4940
+ var DTODocumentationLinkPreviewRequest = z177.object({
4941
+ url: z177.string().optional(),
4942
+ documentationItemPersistentId: z177.string().optional()
4939
4943
  });
4940
4944
 
4941
4945
  // src/api/dto/elements/documentation/group-action.ts
4942
- import { z as z179 } from "zod";
4946
+ import { z as z180 } from "zod";
4943
4947
 
4944
4948
  // src/api/dto/elements/documentation/group-v2.ts
4945
- import { z as z178 } from "zod";
4949
+ import { z as z179 } from "zod";
4946
4950
 
4947
4951
  // src/api/dto/elements/documentation/item-configuration-v2.ts
4948
- import { z as z177 } from "zod";
4952
+ import { z as z178 } from "zod";
4949
4953
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
4950
- var DTODocumentationItemConfigurationV2 = z177.object({
4951
- showSidebar: z177.boolean(),
4952
- isPrivate: z177.boolean(),
4953
- isHidden: z177.boolean(),
4954
+ var DTODocumentationItemConfigurationV2 = z178.object({
4955
+ showSidebar: z178.boolean(),
4956
+ isPrivate: z178.boolean(),
4957
+ isHidden: z178.boolean(),
4954
4958
  header: DTODocumentationItemHeaderV2
4955
4959
  });
4956
4960
 
@@ -4964,136 +4968,136 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
4964
4968
  data: true,
4965
4969
  shortPersistentId: true
4966
4970
  }).extend({
4967
- title: z178.string(),
4968
- isRoot: z178.boolean(),
4969
- childrenIds: z178.array(z178.string()),
4971
+ title: z179.string(),
4972
+ isRoot: z179.boolean(),
4973
+ childrenIds: z179.array(z179.string()),
4970
4974
  groupBehavior: DocumentationGroupBehavior,
4971
- shortPersistentId: z178.string(),
4975
+ shortPersistentId: z179.string(),
4972
4976
  configuration: DTODocumentationItemConfigurationV2,
4973
- type: z178.literal("Group")
4977
+ type: z179.literal("Group")
4974
4978
  });
4975
4979
  var DTODocumentationGroupStructureV2 = DTODocumentationGroupV2;
4976
- var DTOCreateDocumentationGroupInput = z178.object({
4980
+ var DTOCreateDocumentationGroupInput = z179.object({
4977
4981
  // Identifier
4978
- persistentId: z178.string().uuid(),
4982
+ persistentId: z179.string().uuid(),
4979
4983
  // Group properties
4980
- title: z178.string(),
4984
+ title: z179.string(),
4981
4985
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
4982
4986
  // Group placement properties
4983
- afterPersistentId: z178.string().uuid().nullish(),
4984
- parentPersistentId: z178.string().uuid()
4987
+ afterPersistentId: z179.string().uuid().nullish(),
4988
+ parentPersistentId: z179.string().uuid()
4985
4989
  });
4986
- var DTOUpdateDocumentationGroupInput = z178.object({
4990
+ var DTOUpdateDocumentationGroupInput = z179.object({
4987
4991
  // Identifier of the group to update
4988
- id: z178.string(),
4992
+ id: z179.string(),
4989
4993
  // Group properties
4990
- title: z178.string().optional(),
4994
+ title: z179.string().optional(),
4991
4995
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
4992
4996
  });
4993
- var DTOMoveDocumentationGroupInput = z178.object({
4997
+ var DTOMoveDocumentationGroupInput = z179.object({
4994
4998
  // Identifier of the group to update
4995
- id: z178.string(),
4999
+ id: z179.string(),
4996
5000
  // Group placement properties
4997
- parentPersistentId: z178.string().uuid(),
4998
- afterPersistentId: z178.string().uuid().nullish()
5001
+ parentPersistentId: z179.string().uuid(),
5002
+ afterPersistentId: z179.string().uuid().nullish()
4999
5003
  });
5000
- var DTODuplicateDocumentationGroupInput = z178.object({
5004
+ var DTODuplicateDocumentationGroupInput = z179.object({
5001
5005
  // Identifier of the group to duplicate from
5002
- id: z178.string(),
5006
+ id: z179.string(),
5003
5007
  // New group persistent id
5004
- persistentId: z178.string().uuid(),
5008
+ persistentId: z179.string().uuid(),
5005
5009
  // Group placement properties
5006
- afterPersistentId: z178.string().uuid().nullish(),
5007
- parentPersistentId: z178.string().uuid()
5010
+ afterPersistentId: z179.string().uuid().nullish(),
5011
+ parentPersistentId: z179.string().uuid()
5008
5012
  });
5009
- var DTOCreateDocumentationTabInput = z178.object({
5013
+ var DTOCreateDocumentationTabInput = z179.object({
5010
5014
  // New group persistent id
5011
- persistentId: z178.string().uuid(),
5015
+ persistentId: z179.string().uuid(),
5012
5016
  // If this is page, we will attempt to convert it to tab
5013
5017
  // If this is tab group, we will add a new tab to it
5014
- fromItemPersistentId: z178.string(),
5015
- tabName: z178.string()
5018
+ fromItemPersistentId: z179.string(),
5019
+ tabName: z179.string()
5016
5020
  });
5017
- var DTODeleteDocumentationTabGroupInput = z178.object({
5021
+ var DTODeleteDocumentationTabGroupInput = z179.object({
5018
5022
  // Deleted group id
5019
- id: z178.string()
5023
+ id: z179.string()
5020
5024
  });
5021
- var DTODeleteDocumentationGroupInput = z178.object({
5025
+ var DTODeleteDocumentationGroupInput = z179.object({
5022
5026
  // Identifier
5023
- id: z178.string(),
5027
+ id: z179.string(),
5024
5028
  // Deletion options
5025
- deleteSubtree: z178.boolean().default(false)
5029
+ deleteSubtree: z179.boolean().default(false)
5026
5030
  });
5027
5031
 
5028
5032
  // src/api/dto/elements/documentation/group-action.ts
5029
- var SuccessPayload = z179.object({
5030
- success: z179.literal(true)
5033
+ var SuccessPayload = z180.object({
5034
+ success: z180.literal(true)
5031
5035
  });
5032
- var DTODocumentationGroupCreateActionOutputV2 = z179.object({
5033
- type: z179.literal("DocumentationGroupCreate"),
5036
+ var DTODocumentationGroupCreateActionOutputV2 = z180.object({
5037
+ type: z180.literal("DocumentationGroupCreate"),
5034
5038
  output: SuccessPayload
5035
5039
  });
5036
- var DTODocumentationTabCreateActionOutputV2 = z179.object({
5037
- type: z179.literal("DocumentationTabCreate"),
5040
+ var DTODocumentationTabCreateActionOutputV2 = z180.object({
5041
+ type: z180.literal("DocumentationTabCreate"),
5038
5042
  output: SuccessPayload
5039
5043
  });
5040
- var DTODocumentationGroupUpdateActionOutputV2 = z179.object({
5041
- type: z179.literal("DocumentationGroupUpdate"),
5044
+ var DTODocumentationGroupUpdateActionOutputV2 = z180.object({
5045
+ type: z180.literal("DocumentationGroupUpdate"),
5042
5046
  output: SuccessPayload
5043
5047
  });
5044
- var DTODocumentationGroupMoveActionOutputV2 = z179.object({
5045
- type: z179.literal("DocumentationGroupMove"),
5048
+ var DTODocumentationGroupMoveActionOutputV2 = z180.object({
5049
+ type: z180.literal("DocumentationGroupMove"),
5046
5050
  output: SuccessPayload
5047
5051
  });
5048
- var DTODocumentationGroupDuplicateActionOutputV2 = z179.object({
5049
- type: z179.literal("DocumentationGroupDuplicate"),
5052
+ var DTODocumentationGroupDuplicateActionOutputV2 = z180.object({
5053
+ type: z180.literal("DocumentationGroupDuplicate"),
5050
5054
  output: SuccessPayload
5051
5055
  });
5052
- var DTODocumentationGroupDeleteActionOutputV2 = z179.object({
5053
- type: z179.literal("DocumentationGroupDelete"),
5056
+ var DTODocumentationGroupDeleteActionOutputV2 = z180.object({
5057
+ type: z180.literal("DocumentationGroupDelete"),
5054
5058
  output: SuccessPayload
5055
5059
  });
5056
- var DTODocumentationTabGroupDeleteActionOutputV2 = z179.object({
5057
- type: z179.literal("DocumentationTabGroupDelete"),
5060
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z180.object({
5061
+ type: z180.literal("DocumentationTabGroupDelete"),
5058
5062
  output: SuccessPayload
5059
5063
  });
5060
- var DTODocumentationGroupCreateActionInputV2 = z179.object({
5061
- type: z179.literal("DocumentationGroupCreate"),
5064
+ var DTODocumentationGroupCreateActionInputV2 = z180.object({
5065
+ type: z180.literal("DocumentationGroupCreate"),
5062
5066
  input: DTOCreateDocumentationGroupInput
5063
5067
  });
5064
- var DTODocumentationTabCreateActionInputV2 = z179.object({
5065
- type: z179.literal("DocumentationTabCreate"),
5068
+ var DTODocumentationTabCreateActionInputV2 = z180.object({
5069
+ type: z180.literal("DocumentationTabCreate"),
5066
5070
  input: DTOCreateDocumentationTabInput
5067
5071
  });
5068
- var DTODocumentationGroupUpdateActionInputV2 = z179.object({
5069
- type: z179.literal("DocumentationGroupUpdate"),
5072
+ var DTODocumentationGroupUpdateActionInputV2 = z180.object({
5073
+ type: z180.literal("DocumentationGroupUpdate"),
5070
5074
  input: DTOUpdateDocumentationGroupInput
5071
5075
  });
5072
- var DTODocumentationGroupMoveActionInputV2 = z179.object({
5073
- type: z179.literal("DocumentationGroupMove"),
5076
+ var DTODocumentationGroupMoveActionInputV2 = z180.object({
5077
+ type: z180.literal("DocumentationGroupMove"),
5074
5078
  input: DTOMoveDocumentationGroupInput
5075
5079
  });
5076
- var DTODocumentationGroupDuplicateActionInputV2 = z179.object({
5077
- type: z179.literal("DocumentationGroupDuplicate"),
5080
+ var DTODocumentationGroupDuplicateActionInputV2 = z180.object({
5081
+ type: z180.literal("DocumentationGroupDuplicate"),
5078
5082
  input: DTODuplicateDocumentationGroupInput
5079
5083
  });
5080
- var DTODocumentationGroupDeleteActionInputV2 = z179.object({
5081
- type: z179.literal("DocumentationGroupDelete"),
5084
+ var DTODocumentationGroupDeleteActionInputV2 = z180.object({
5085
+ type: z180.literal("DocumentationGroupDelete"),
5082
5086
  input: DTODeleteDocumentationGroupInput
5083
5087
  });
5084
- var DTODocumentationTabGroupDeleteActionInputV2 = z179.object({
5085
- type: z179.literal("DocumentationTabGroupDelete"),
5088
+ var DTODocumentationTabGroupDeleteActionInputV2 = z180.object({
5089
+ type: z180.literal("DocumentationTabGroupDelete"),
5086
5090
  input: DTODeleteDocumentationTabGroupInput
5087
5091
  });
5088
5092
 
5089
5093
  // src/api/dto/elements/documentation/group-v1.ts
5090
- import { z as z181 } from "zod";
5094
+ import { z as z182 } from "zod";
5091
5095
 
5092
5096
  // src/api/dto/elements/documentation/item-configuration-v1.ts
5093
- import { z as z180 } from "zod";
5094
- var DocumentationColorV1 = z180.object({
5095
- aliasTo: z180.string().optional(),
5096
- value: z180.string().optional()
5097
+ import { z as z181 } from "zod";
5098
+ var DocumentationColorV1 = z181.object({
5099
+ aliasTo: z181.string().optional(),
5100
+ value: z181.string().optional()
5097
5101
  });
5098
5102
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
5099
5103
  foregroundColor: true,
@@ -5102,10 +5106,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
5102
5106
  foregroundColor: DocumentationColorV1.optional(),
5103
5107
  backgroundColor: DocumentationColorV1.optional()
5104
5108
  });
5105
- var DTODocumentationItemConfigurationV1 = z180.object({
5106
- showSidebar: z180.boolean(),
5107
- isPrivate: z180.boolean(),
5108
- isHidden: z180.boolean(),
5109
+ var DTODocumentationItemConfigurationV1 = z181.object({
5110
+ showSidebar: z181.boolean(),
5111
+ isPrivate: z181.boolean(),
5112
+ isHidden: z181.boolean(),
5109
5113
  header: DTODocumentationItemHeaderV1
5110
5114
  });
5111
5115
 
@@ -5119,130 +5123,130 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
5119
5123
  data: true,
5120
5124
  shortPersistentId: true
5121
5125
  }).extend({
5122
- title: z181.string(),
5123
- isRoot: z181.boolean(),
5124
- childrenIds: z181.array(z181.string()),
5126
+ title: z182.string(),
5127
+ isRoot: z182.boolean(),
5128
+ childrenIds: z182.array(z182.string()),
5125
5129
  groupBehavior: DocumentationGroupBehavior,
5126
- shortPersistentId: z181.string(),
5127
- type: z181.literal("Group")
5130
+ shortPersistentId: z182.string(),
5131
+ type: z182.literal("Group")
5128
5132
  });
5129
5133
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
5130
5134
  configuration: DTODocumentationItemConfigurationV1
5131
5135
  });
5132
5136
 
5133
5137
  // src/api/dto/elements/documentation/page-actions-v2.ts
5134
- import { z as z183 } from "zod";
5138
+ import { z as z184 } from "zod";
5135
5139
 
5136
5140
  // src/api/dto/elements/documentation/page-v2.ts
5137
- import { z as z182 } from "zod";
5141
+ import { z as z183 } from "zod";
5138
5142
  var DTODocumentationPageV2 = DocumentationPageV2.omit({
5139
5143
  data: true,
5140
5144
  meta: true,
5141
5145
  parentPersistentId: true,
5142
5146
  sortOrder: true
5143
5147
  }).extend({
5144
- title: z182.string(),
5145
- path: z182.string(),
5146
- type: z182.literal("Page"),
5148
+ title: z183.string(),
5149
+ path: z183.string(),
5150
+ type: z183.literal("Page"),
5147
5151
  configuration: DTODocumentationItemConfigurationV2
5148
5152
  });
5149
5153
  var DTODocumentationPageStructureV2 = DTODocumentationPageV2;
5150
- var DTODocumentationHierarchyV2 = z182.object({
5151
- pages: z182.array(DTODocumentationPageStructureV2),
5152
- groups: z182.array(DTODocumentationGroupStructureV2)
5154
+ var DTODocumentationHierarchyV2 = z183.object({
5155
+ pages: z183.array(DTODocumentationPageStructureV2),
5156
+ groups: z183.array(DTODocumentationGroupStructureV2)
5153
5157
  });
5154
- var DTOCreateDocumentationPageInputV2 = z182.object({
5158
+ var DTOCreateDocumentationPageInputV2 = z183.object({
5155
5159
  // Identifier
5156
- persistentId: z182.string().uuid(),
5160
+ persistentId: z183.string().uuid(),
5157
5161
  // Page properties
5158
- title: z182.string(),
5162
+ title: z183.string(),
5159
5163
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5160
5164
  // Page placement properties
5161
- parentPersistentId: z182.string().uuid(),
5162
- afterPersistentId: z182.string().uuid().nullish()
5165
+ parentPersistentId: z183.string().uuid(),
5166
+ afterPersistentId: z183.string().uuid().nullish()
5163
5167
  });
5164
- var DTOUpdateDocumentationPageInputV2 = z182.object({
5168
+ var DTOUpdateDocumentationPageInputV2 = z183.object({
5165
5169
  // Identifier of the group to update
5166
- id: z182.string(),
5170
+ id: z183.string(),
5167
5171
  // Page properties
5168
- title: z182.string().optional(),
5172
+ title: z183.string().optional(),
5169
5173
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5170
5174
  });
5171
- var DTOMoveDocumentationPageInputV2 = z182.object({
5175
+ var DTOMoveDocumentationPageInputV2 = z183.object({
5172
5176
  // Identifier of the group to update
5173
- id: z182.string(),
5177
+ id: z183.string(),
5174
5178
  // Page placement properties
5175
- parentPersistentId: z182.string().uuid(),
5176
- afterPersistentId: z182.string().uuid().nullish()
5179
+ parentPersistentId: z183.string().uuid(),
5180
+ afterPersistentId: z183.string().uuid().nullish()
5177
5181
  });
5178
- var DTODuplicateDocumentationPageInputV2 = z182.object({
5182
+ var DTODuplicateDocumentationPageInputV2 = z183.object({
5179
5183
  // Identifier of the page to duplicate from
5180
- id: z182.string(),
5184
+ id: z183.string(),
5181
5185
  // New page persistent id
5182
- persistentId: z182.string().uuid(),
5186
+ persistentId: z183.string().uuid(),
5183
5187
  // Page placement properties
5184
- parentPersistentId: z182.string().uuid(),
5185
- afterPersistentId: z182.string().uuid().nullish()
5188
+ parentPersistentId: z183.string().uuid(),
5189
+ afterPersistentId: z183.string().uuid().nullish()
5186
5190
  });
5187
- var DTODeleteDocumentationPageInputV2 = z182.object({
5191
+ var DTODeleteDocumentationPageInputV2 = z183.object({
5188
5192
  // Identifier
5189
- id: z182.string()
5193
+ id: z183.string()
5190
5194
  });
5191
5195
 
5192
5196
  // src/api/dto/elements/documentation/page-actions-v2.ts
5193
- var SuccessPayload2 = z183.object({
5194
- success: z183.literal(true)
5197
+ var SuccessPayload2 = z184.object({
5198
+ success: z184.literal(true)
5195
5199
  });
5196
- var DTODocumentationPageCreateActionOutputV2 = z183.object({
5197
- type: z183.literal("DocumentationPageCreate"),
5200
+ var DTODocumentationPageCreateActionOutputV2 = z184.object({
5201
+ type: z184.literal("DocumentationPageCreate"),
5198
5202
  output: SuccessPayload2
5199
5203
  });
5200
- var DTODocumentationPageUpdateActionOutputV2 = z183.object({
5201
- type: z183.literal("DocumentationPageUpdate"),
5204
+ var DTODocumentationPageUpdateActionOutputV2 = z184.object({
5205
+ type: z184.literal("DocumentationPageUpdate"),
5202
5206
  output: SuccessPayload2
5203
5207
  });
5204
- var DTODocumentationPageMoveActionOutputV2 = z183.object({
5205
- type: z183.literal("DocumentationPageMove"),
5208
+ var DTODocumentationPageMoveActionOutputV2 = z184.object({
5209
+ type: z184.literal("DocumentationPageMove"),
5206
5210
  output: SuccessPayload2
5207
5211
  });
5208
- var DTODocumentationPageDuplicateActionOutputV2 = z183.object({
5209
- type: z183.literal("DocumentationPageDuplicate"),
5212
+ var DTODocumentationPageDuplicateActionOutputV2 = z184.object({
5213
+ type: z184.literal("DocumentationPageDuplicate"),
5210
5214
  output: SuccessPayload2
5211
5215
  });
5212
- var DTODocumentationPageDeleteActionOutputV2 = z183.object({
5213
- type: z183.literal("DocumentationPageDelete"),
5216
+ var DTODocumentationPageDeleteActionOutputV2 = z184.object({
5217
+ type: z184.literal("DocumentationPageDelete"),
5214
5218
  output: SuccessPayload2
5215
5219
  });
5216
- var DTODocumentationPageCreateActionInputV2 = z183.object({
5217
- type: z183.literal("DocumentationPageCreate"),
5220
+ var DTODocumentationPageCreateActionInputV2 = z184.object({
5221
+ type: z184.literal("DocumentationPageCreate"),
5218
5222
  input: DTOCreateDocumentationPageInputV2
5219
5223
  });
5220
- var DTODocumentationPageUpdateActionInputV2 = z183.object({
5221
- type: z183.literal("DocumentationPageUpdate"),
5224
+ var DTODocumentationPageUpdateActionInputV2 = z184.object({
5225
+ type: z184.literal("DocumentationPageUpdate"),
5222
5226
  input: DTOUpdateDocumentationPageInputV2
5223
5227
  });
5224
- var DTODocumentationPageMoveActionInputV2 = z183.object({
5225
- type: z183.literal("DocumentationPageMove"),
5228
+ var DTODocumentationPageMoveActionInputV2 = z184.object({
5229
+ type: z184.literal("DocumentationPageMove"),
5226
5230
  input: DTOMoveDocumentationPageInputV2
5227
5231
  });
5228
- var DTODocumentationPageDuplicateActionInputV2 = z183.object({
5229
- type: z183.literal("DocumentationPageDuplicate"),
5232
+ var DTODocumentationPageDuplicateActionInputV2 = z184.object({
5233
+ type: z184.literal("DocumentationPageDuplicate"),
5230
5234
  input: DTODuplicateDocumentationPageInputV2
5231
5235
  });
5232
- var DTODocumentationPageDeleteActionInputV2 = z183.object({
5233
- type: z183.literal("DocumentationPageDelete"),
5236
+ var DTODocumentationPageDeleteActionInputV2 = z184.object({
5237
+ type: z184.literal("DocumentationPageDelete"),
5234
5238
  input: DTODeleteDocumentationPageInputV2
5235
5239
  });
5236
5240
 
5237
5241
  // src/api/dto/elements/documentation/page-content.ts
5238
- import { z as z184 } from "zod";
5242
+ import { z as z185 } from "zod";
5239
5243
  var DTODocumentationPageContent = DocumentationPageContent;
5240
- var DTODocumentationPageContentGetResponse = z184.object({
5244
+ var DTODocumentationPageContentGetResponse = z185.object({
5241
5245
  pageContent: DTODocumentationPageContent
5242
5246
  });
5243
5247
 
5244
5248
  // src/api/dto/elements/documentation/page-v1.ts
5245
- import { z as z185 } from "zod";
5249
+ import { z as z186 } from "zod";
5246
5250
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
5247
5251
  data: true,
5248
5252
  meta: true,
@@ -5250,30 +5254,30 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
5250
5254
  sortOrder: true
5251
5255
  }).extend({
5252
5256
  configuration: DTODocumentationItemConfigurationV1,
5253
- blocks: z185.array(PageBlockV1),
5254
- title: z185.string(),
5255
- path: z185.string()
5257
+ blocks: z186.array(PageBlockV1),
5258
+ title: z186.string(),
5259
+ path: z186.string()
5256
5260
  });
5257
5261
 
5258
5262
  // src/api/dto/elements/figma-nodes/figma-node.ts
5259
- import { z as z186 } from "zod";
5260
- var DTOFigmaNodeOrigin = z186.object({
5261
- sourceId: z186.string(),
5262
- fileId: z186.string().optional(),
5263
- parentName: z186.string().optional()
5263
+ import { z as z187 } from "zod";
5264
+ var DTOFigmaNodeOrigin = z187.object({
5265
+ sourceId: z187.string(),
5266
+ fileId: z187.string().optional(),
5267
+ parentName: z187.string().optional()
5264
5268
  });
5265
- var DTOFigmaNodeData = z186.object({
5269
+ var DTOFigmaNodeData = z187.object({
5266
5270
  // Id of the node in the Figma file
5267
- figmaNodeId: z186.string(),
5271
+ figmaNodeId: z187.string(),
5268
5272
  // Validity
5269
- isValid: z186.boolean(),
5273
+ isValid: z187.boolean(),
5270
5274
  // Asset data
5271
- assetId: z186.string(),
5272
- assetUrl: z186.string(),
5275
+ assetId: z187.string(),
5276
+ assetUrl: z187.string(),
5273
5277
  // Asset metadata
5274
- assetScale: z186.number(),
5275
- assetWidth: z186.number().optional(),
5276
- assetHeight: z186.number().optional()
5278
+ assetScale: z187.number(),
5279
+ assetWidth: z187.number().optional(),
5280
+ assetHeight: z187.number().optional()
5277
5281
  });
5278
5282
  var DTOFigmaNode = FigmaFileStructure.omit({
5279
5283
  data: true,
@@ -5282,105 +5286,105 @@ var DTOFigmaNode = FigmaFileStructure.omit({
5282
5286
  data: DTOFigmaNodeData,
5283
5287
  origin: DTOFigmaNodeOrigin
5284
5288
  });
5285
- var DTOFigmaNodeRenderInput = z186.object({
5289
+ var DTOFigmaNodeRenderInput = z187.object({
5286
5290
  // Id of a design system's data source representing a linked Figma file
5287
- sourceId: z186.string(),
5291
+ sourceId: z187.string(),
5288
5292
  // Id of a node within the Figma file
5289
- figmaFileNodeId: z186.string()
5293
+ figmaFileNodeId: z187.string()
5290
5294
  });
5291
5295
 
5292
5296
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
5293
- import { z as z187 } from "zod";
5294
- var DTOFigmaNodeRenderActionOutput = z187.object({
5295
- type: z187.literal("FigmaNodeRender"),
5296
- figmaNodes: z187.array(DTOFigmaNode)
5297
+ import { z as z188 } from "zod";
5298
+ var DTOFigmaNodeRenderActionOutput = z188.object({
5299
+ type: z188.literal("FigmaNodeRender"),
5300
+ figmaNodes: z188.array(DTOFigmaNode)
5297
5301
  });
5298
- var DTOFigmaNodeRenderActionInput = z187.object({
5299
- type: z187.literal("FigmaNodeRender"),
5302
+ var DTOFigmaNodeRenderActionInput = z188.object({
5303
+ type: z188.literal("FigmaNodeRender"),
5300
5304
  input: DTOFigmaNodeRenderInput.array()
5301
5305
  });
5302
5306
 
5303
5307
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
5304
- import { z as z189 } from "zod";
5308
+ import { z as z190 } from "zod";
5305
5309
 
5306
5310
  // src/api/dto/elements/properties/property-definitions.ts
5307
- import { z as z188 } from "zod";
5311
+ import { z as z189 } from "zod";
5308
5312
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
5309
- var DTOElementPropertyDefinition = z188.object({
5310
- id: z188.string(),
5311
- designSystemVersionId: z188.string(),
5313
+ var DTOElementPropertyDefinition = z189.object({
5314
+ id: z189.string(),
5315
+ designSystemVersionId: z189.string(),
5312
5316
  meta: ObjectMeta,
5313
- persistentId: z188.string(),
5317
+ persistentId: z189.string(),
5314
5318
  type: ElementPropertyTypeSchema,
5315
5319
  targetElementType: ElementPropertyTargetType,
5316
- codeName: z188.string().regex(CODE_NAME_REGEX2),
5317
- options: z188.array(ElementPropertyDefinitionOption).optional(),
5320
+ codeName: z189.string().regex(CODE_NAME_REGEX2),
5321
+ options: z189.array(ElementPropertyDefinitionOption).optional(),
5318
5322
  linkElementType: ElementPropertyLinkType.optional()
5319
5323
  });
5320
- var DTOElementPropertyDefinitionsGetResponse = z188.object({
5321
- definitions: z188.array(DTOElementPropertyDefinition)
5324
+ var DTOElementPropertyDefinitionsGetResponse = z189.object({
5325
+ definitions: z189.array(DTOElementPropertyDefinition)
5322
5326
  });
5323
5327
  var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
5324
5328
  id: true,
5325
5329
  designSystemVersionId: true
5326
5330
  });
5327
- var DTOUpdateElementPropertyDefinitionInputV2 = z188.object({
5328
- id: z188.string(),
5329
- name: z188.string().optional(),
5330
- description: z188.string().optional(),
5331
- codeName: z188.string().regex(CODE_NAME_REGEX2).optional(),
5332
- options: z188.array(ElementPropertyDefinitionOption).optional()
5331
+ var DTOUpdateElementPropertyDefinitionInputV2 = z189.object({
5332
+ id: z189.string(),
5333
+ name: z189.string().optional(),
5334
+ description: z189.string().optional(),
5335
+ codeName: z189.string().regex(CODE_NAME_REGEX2).optional(),
5336
+ options: z189.array(ElementPropertyDefinitionOption).optional()
5333
5337
  });
5334
- var DTODeleteElementPropertyDefinitionInputV2 = z188.object({
5335
- id: z188.string()
5338
+ var DTODeleteElementPropertyDefinitionInputV2 = z189.object({
5339
+ id: z189.string()
5336
5340
  });
5337
5341
 
5338
5342
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
5339
- var SuccessPayload3 = z189.object({
5340
- success: z189.literal(true)
5343
+ var SuccessPayload3 = z190.object({
5344
+ success: z190.literal(true)
5341
5345
  });
5342
- var DTOPropertyDefinitionCreateActionOutputV2 = z189.object({
5343
- type: z189.literal("PropertyDefinitionCreate"),
5346
+ var DTOPropertyDefinitionCreateActionOutputV2 = z190.object({
5347
+ type: z190.literal("PropertyDefinitionCreate"),
5344
5348
  definition: DTOElementPropertyDefinition
5345
5349
  });
5346
- var DTOPropertyDefinitionUpdateActionOutputV2 = z189.object({
5347
- type: z189.literal("PropertyDefinitionUpdate"),
5350
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z190.object({
5351
+ type: z190.literal("PropertyDefinitionUpdate"),
5348
5352
  definition: DTOElementPropertyDefinition
5349
5353
  });
5350
- var DTOPropertyDefinitionDeleteActionOutputV2 = z189.object({
5351
- type: z189.literal("PropertyDefinitionDelete"),
5354
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z190.object({
5355
+ type: z190.literal("PropertyDefinitionDelete"),
5352
5356
  output: SuccessPayload3
5353
5357
  });
5354
- var DTOPropertyDefinitionCreateActionInputV2 = z189.object({
5355
- type: z189.literal("PropertyDefinitionCreate"),
5358
+ var DTOPropertyDefinitionCreateActionInputV2 = z190.object({
5359
+ type: z190.literal("PropertyDefinitionCreate"),
5356
5360
  input: DTOCreateElementPropertyDefinitionInputV2
5357
5361
  });
5358
- var DTOPropertyDefinitionUpdateActionInputV2 = z189.object({
5359
- type: z189.literal("PropertyDefinitionUpdate"),
5362
+ var DTOPropertyDefinitionUpdateActionInputV2 = z190.object({
5363
+ type: z190.literal("PropertyDefinitionUpdate"),
5360
5364
  input: DTOUpdateElementPropertyDefinitionInputV2
5361
5365
  });
5362
- var DTOPropertyDefinitionDeleteActionInputV2 = z189.object({
5363
- type: z189.literal("PropertyDefinitionDelete"),
5366
+ var DTOPropertyDefinitionDeleteActionInputV2 = z190.object({
5367
+ type: z190.literal("PropertyDefinitionDelete"),
5364
5368
  input: DTODeleteElementPropertyDefinitionInputV2
5365
5369
  });
5366
5370
 
5367
5371
  // src/api/dto/elements/properties/property-values.ts
5368
- import { z as z190 } from "zod";
5369
- var DTOElementPropertyValue = z190.object({
5370
- id: z190.string(),
5371
- designSystemVersionId: z190.string(),
5372
- definitionId: z190.string(),
5373
- targetElementId: z190.string(),
5374
- value: z190.union([z190.string(), z190.number(), z190.boolean()]).optional(),
5375
- valuePreview: z190.string().optional()
5372
+ import { z as z191 } from "zod";
5373
+ var DTOElementPropertyValue = z191.object({
5374
+ id: z191.string(),
5375
+ designSystemVersionId: z191.string(),
5376
+ definitionId: z191.string(),
5377
+ targetElementId: z191.string(),
5378
+ value: z191.union([z191.string(), z191.number(), z191.boolean()]).optional(),
5379
+ valuePreview: z191.string().optional()
5376
5380
  });
5377
- var DTOElementPropertyValuesGetResponse = z190.object({
5378
- values: z190.array(DTOElementPropertyValue)
5381
+ var DTOElementPropertyValuesGetResponse = z191.object({
5382
+ values: z191.array(DTOElementPropertyValue)
5379
5383
  });
5380
5384
 
5381
5385
  // src/api/dto/elements/elements-action-v2.ts
5382
- import { z as z191 } from "zod";
5383
- var DTOElementActionOutput = z191.discriminatedUnion("type", [
5386
+ import { z as z192 } from "zod";
5387
+ var DTOElementActionOutput = z192.discriminatedUnion("type", [
5384
5388
  // Documentation pages
5385
5389
  DTODocumentationPageCreateActionOutputV2,
5386
5390
  DTODocumentationPageUpdateActionOutputV2,
@@ -5402,7 +5406,7 @@ var DTOElementActionOutput = z191.discriminatedUnion("type", [
5402
5406
  DTOPropertyDefinitionUpdateActionOutputV2,
5403
5407
  DTOPropertyDefinitionDeleteActionOutputV2
5404
5408
  ]);
5405
- var DTOElementActionInput = z191.discriminatedUnion("type", [
5409
+ var DTOElementActionInput = z192.discriminatedUnion("type", [
5406
5410
  // Documentation pages
5407
5411
  DTODocumentationPageCreateActionInputV2,
5408
5412
  DTODocumentationPageUpdateActionInputV2,
@@ -5426,220 +5430,220 @@ var DTOElementActionInput = z191.discriminatedUnion("type", [
5426
5430
  ]);
5427
5431
 
5428
5432
  // src/api/dto/elements/get-elements-v2.ts
5429
- import { z as z192 } from "zod";
5430
- var DTOElementsGetTypeFilter = z192.enum(["FigmaNode"]);
5431
- var DTOElementsGetQuerySchema = z192.object({
5432
- types: z192.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
5433
+ import { z as z193 } from "zod";
5434
+ var DTOElementsGetTypeFilter = z193.enum(["FigmaNode"]);
5435
+ var DTOElementsGetQuerySchema = z193.object({
5436
+ types: z193.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
5433
5437
  });
5434
- var DTOElementsGetOutput = z192.object({
5435
- figmaNodes: z192.array(DTOFigmaNode).optional()
5438
+ var DTOElementsGetOutput = z193.object({
5439
+ figmaNodes: z193.array(DTOFigmaNode).optional()
5436
5440
  });
5437
5441
 
5438
5442
  // src/api/dto/export/exporter.ts
5439
- import { z as z193 } from "zod";
5440
- var DTOExporterType = z193.enum(["documentation", "code"]);
5441
- var DTOExporterSource = z193.enum(["git", "upload"]);
5442
- var DTOExporterMembershipRole = z193.enum(["Owner", "OwnerArchived", "User"]);
5443
- var DTOExporter = z193.object({
5444
- id: z193.string(),
5445
- name: z193.string(),
5446
- isPrivate: z193.boolean(),
5443
+ import { z as z194 } from "zod";
5444
+ var DTOExporterType = z194.enum(["documentation", "code"]);
5445
+ var DTOExporterSource = z194.enum(["git", "upload"]);
5446
+ var DTOExporterMembershipRole = z194.enum(["Owner", "OwnerArchived", "User"]);
5447
+ var DTOExporter = z194.object({
5448
+ id: z194.string(),
5449
+ name: z194.string(),
5450
+ isPrivate: z194.boolean(),
5447
5451
  exporterType: DTOExporterType,
5448
- isDefaultDocumentationExporter: z193.boolean(),
5449
- iconURL: z193.string().optional(),
5452
+ isDefaultDocumentationExporter: z194.boolean(),
5453
+ iconURL: z194.string().optional(),
5450
5454
  configurationProperties: PulsarContributionConfigurationProperty.array(),
5451
5455
  customBlocks: PulsarCustomBlock.array(),
5452
- blockVariants: z193.record(z193.string(), PulsarContributionVariant.array()),
5453
- usesBrands: z193.boolean(),
5454
- usesThemes: z193.boolean(),
5456
+ blockVariants: z194.record(z194.string(), PulsarContributionVariant.array()),
5457
+ usesBrands: z194.boolean(),
5458
+ usesThemes: z194.boolean(),
5455
5459
  source: DTOExporterSource,
5456
- gitUrl: z193.string().optional(),
5457
- gitBranch: z193.string().optional(),
5458
- gitDirectory: z193.string().optional()
5460
+ gitUrl: z194.string().optional(),
5461
+ gitBranch: z194.string().optional(),
5462
+ gitDirectory: z194.string().optional()
5459
5463
  });
5460
- var DTOExporterMembership = z193.object({
5461
- workspaceId: z193.string(),
5462
- exporterId: z193.string(),
5464
+ var DTOExporterMembership = z194.object({
5465
+ workspaceId: z194.string(),
5466
+ exporterId: z194.string(),
5463
5467
  role: DTOExporterMembershipRole
5464
5468
  });
5465
- var DTOExporterCreateOutput = z193.object({
5469
+ var DTOExporterCreateOutput = z194.object({
5466
5470
  exporter: DTOExporter,
5467
5471
  membership: DTOExporterMembership
5468
5472
  });
5469
- var DTOExporterGitProviderEnum = z193.enum(["github", "gitlab", "bitbucket", "azure"]);
5470
- var DTOExporterCreateInput = z193.object({
5471
- url: z193.string(),
5473
+ var DTOExporterGitProviderEnum = z194.enum(["github", "gitlab", "bitbucket", "azure"]);
5474
+ var DTOExporterCreateInput = z194.object({
5475
+ url: z194.string(),
5472
5476
  provider: DTOExporterGitProviderEnum
5473
5477
  });
5474
- var DTOExporterUpdateInput = z193.object({
5475
- url: z193.string().optional()
5478
+ var DTOExporterUpdateInput = z194.object({
5479
+ url: z194.string().optional()
5476
5480
  });
5477
5481
 
5478
5482
  // src/api/dto/export/job.ts
5479
- import { z as z194 } from "zod";
5480
- var DTOExportJobCreatedBy = z194.object({
5481
- userId: z194.string(),
5482
- userName: z194.string()
5483
+ import { z as z195 } from "zod";
5484
+ var DTOExportJobCreatedBy = z195.object({
5485
+ userId: z195.string(),
5486
+ userName: z195.string()
5483
5487
  });
5484
- var DTOExportJobDesignSystemPreview = z194.object({
5485
- id: z194.string(),
5488
+ var DTOExportJobDesignSystemPreview = z195.object({
5489
+ id: z195.string(),
5486
5490
  meta: ObjectMeta
5487
5491
  });
5488
- var DTOExportJobDesignSystemVersionPreview = z194.object({
5489
- id: z194.string(),
5492
+ var DTOExportJobDesignSystemVersionPreview = z195.object({
5493
+ id: z195.string(),
5490
5494
  meta: ObjectMeta,
5491
- version: z194.string(),
5492
- isReadonly: z194.boolean()
5495
+ version: z195.string(),
5496
+ isReadonly: z195.boolean()
5493
5497
  });
5494
- var DTOExportJobDestinations = z194.object({
5498
+ var DTOExportJobDestinations = z195.object({
5495
5499
  s3: ExporterDestinationS3.optional(),
5496
5500
  azure: ExporterDestinationAzure.optional(),
5497
5501
  bitbucket: ExporterDestinationBitbucket.optional(),
5498
5502
  github: ExporterDestinationGithub.optional(),
5499
5503
  gitlab: ExporterDestinationGitlab.optional(),
5500
5504
  documentation: ExporterDestinationDocs.optional(),
5501
- webhookUrl: z194.string().optional()
5505
+ webhookUrl: z195.string().optional()
5502
5506
  });
5503
- var DTOExportJob = z194.object({
5504
- id: z194.string(),
5505
- createdAt: z194.coerce.date(),
5506
- finishedAt: z194.coerce.date().optional(),
5507
- index: z194.number().optional(),
5507
+ var DTOExportJob = z195.object({
5508
+ id: z195.string(),
5509
+ createdAt: z195.coerce.date(),
5510
+ finishedAt: z195.coerce.date().optional(),
5511
+ index: z195.number().optional(),
5508
5512
  status: ExportJobStatus,
5509
- estimatedExecutionTime: z194.number().optional(),
5513
+ estimatedExecutionTime: z195.number().optional(),
5510
5514
  createdBy: DTOExportJobCreatedBy.optional(),
5511
5515
  designSystem: DTOExportJobDesignSystemPreview,
5512
5516
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
5513
5517
  destinations: DTOExportJobDestinations,
5514
- exporterId: z194.string(),
5515
- scheduleId: z194.string().optional(),
5518
+ exporterId: z195.string(),
5519
+ scheduleId: z195.string().optional(),
5516
5520
  result: ExportJobResult.optional(),
5517
- brandPersistentId: z194.string().optional(),
5518
- themePersistentId: z194.string().optional()
5521
+ brandPersistentId: z195.string().optional(),
5522
+ themePersistentId: z195.string().optional()
5519
5523
  });
5520
- var DTOExportJobResponse = z194.object({
5524
+ var DTOExportJobResponse = z195.object({
5521
5525
  job: DTOExportJob
5522
5526
  });
5523
5527
 
5524
5528
  // src/api/dto/export/pipeline.ts
5525
- import { z as z195 } from "zod";
5526
- var DTOPipeline = z195.object({
5527
- id: z195.string(),
5528
- name: z195.string(),
5529
+ import { z as z196 } from "zod";
5530
+ var DTOPipeline = z196.object({
5531
+ id: z196.string(),
5532
+ name: z196.string(),
5529
5533
  eventType: PipelineEventType,
5530
- isEnabled: z195.boolean(),
5531
- workspaceId: z195.string(),
5532
- designSystemId: z195.string(),
5533
- exporterId: z195.string(),
5534
- brandPersistentId: z195.string().optional(),
5535
- themePersistentId: z195.string().optional(),
5534
+ isEnabled: z196.boolean(),
5535
+ workspaceId: z196.string(),
5536
+ designSystemId: z196.string(),
5537
+ exporterId: z196.string(),
5538
+ brandPersistentId: z196.string().optional(),
5539
+ themePersistentId: z196.string().optional(),
5536
5540
  ...ExportDestinationsMap.shape,
5537
5541
  latestJobs: DTOExportJob.array()
5538
5542
  });
5539
5543
 
5540
5544
  // src/api/dto/liveblocks/auth-response.ts
5541
- import { z as z196 } from "zod";
5542
- var DTOLiveblocksAuthResponse = z196.object({
5543
- token: z196.string()
5545
+ import { z as z197 } from "zod";
5546
+ var DTOLiveblocksAuthResponse = z197.object({
5547
+ token: z197.string()
5544
5548
  });
5545
5549
 
5546
5550
  // src/api/dto/users/profile/update.ts
5547
- import { z as z197 } from "zod";
5548
- var DTOUserProfileUpdateResponse = z197.object({
5551
+ import { z as z198 } from "zod";
5552
+ var DTOUserProfileUpdateResponse = z198.object({
5549
5553
  user: User
5550
5554
  });
5551
5555
 
5552
5556
  // src/api/dto/workspaces/git.ts
5553
- import { z as z198 } from "zod";
5554
- var DTOGitOrganization = z198.object({
5555
- id: z198.string(),
5556
- name: z198.string(),
5557
- url: z198.string(),
5558
- slug: z198.string()
5559
- });
5560
- var DTOGitProject = z198.object({
5561
- id: z198.string(),
5562
- name: z198.string(),
5563
- url: z198.string(),
5564
- slug: z198.string()
5565
- });
5566
- var DTOGitRepository = z198.object({
5567
- id: z198.string(),
5568
- name: z198.string(),
5569
- url: z198.string(),
5570
- slug: z198.string(),
5571
- defaultBranch: z198.string().optional()
5572
- });
5573
- var DTOGitBranch = z198.object({
5574
- name: z198.string(),
5575
- lastCommitId: z198.string()
5557
+ import { z as z199 } from "zod";
5558
+ var DTOGitOrganization = z199.object({
5559
+ id: z199.string(),
5560
+ name: z199.string(),
5561
+ url: z199.string(),
5562
+ slug: z199.string()
5563
+ });
5564
+ var DTOGitProject = z199.object({
5565
+ id: z199.string(),
5566
+ name: z199.string(),
5567
+ url: z199.string(),
5568
+ slug: z199.string()
5569
+ });
5570
+ var DTOGitRepository = z199.object({
5571
+ id: z199.string(),
5572
+ name: z199.string(),
5573
+ url: z199.string(),
5574
+ slug: z199.string(),
5575
+ defaultBranch: z199.string().optional()
5576
+ });
5577
+ var DTOGitBranch = z199.object({
5578
+ name: z199.string(),
5579
+ lastCommitId: z199.string()
5576
5580
  });
5577
5581
 
5578
5582
  // src/api/dto/workspaces/integrations.ts
5579
- import { z as z199 } from "zod";
5583
+ import { z as z200 } from "zod";
5580
5584
  var DTOIntegrationCredentials = IntegrationCredentials.omit({
5581
5585
  accessToken: true,
5582
5586
  refreshToken: true
5583
5587
  });
5584
- var DTOIntegration = z199.object({
5585
- id: z199.string(),
5586
- workspaceId: z199.string(),
5588
+ var DTOIntegration = z200.object({
5589
+ id: z200.string(),
5590
+ workspaceId: z200.string(),
5587
5591
  type: ExtendedIntegrationType,
5588
- createdAt: z199.coerce.date(),
5589
- integrationCredentials: z199.array(DTOIntegrationCredentials).optional(),
5590
- integrationDesignSystems: z199.array(IntegrationDesignSystem).optional()
5592
+ createdAt: z200.coerce.date(),
5593
+ integrationCredentials: z200.array(DTOIntegrationCredentials).optional(),
5594
+ integrationDesignSystems: z200.array(IntegrationDesignSystem).optional()
5591
5595
  });
5592
- var DTOIntegrationOAuthGetResponse = z199.object({
5593
- url: z199.string()
5596
+ var DTOIntegrationOAuthGetResponse = z200.object({
5597
+ url: z200.string()
5594
5598
  });
5595
- var DTOIntegrationPostResponse = z199.object({
5599
+ var DTOIntegrationPostResponse = z200.object({
5596
5600
  integration: DTOIntegration
5597
5601
  });
5598
- var DTOIntegrationsGetListResponse = z199.object({
5602
+ var DTOIntegrationsGetListResponse = z200.object({
5599
5603
  integrations: DTOIntegration.array()
5600
5604
  });
5601
5605
 
5602
5606
  // src/api/dto/workspaces/membership.ts
5603
- import { z as z202 } from "zod";
5607
+ import { z as z203 } from "zod";
5604
5608
 
5605
5609
  // src/api/dto/workspaces/workspace.ts
5606
- import { z as z201 } from "zod";
5610
+ import { z as z202 } from "zod";
5607
5611
 
5608
5612
  // src/api/dto/workspaces/npm-registry.ts
5609
- import { z as z200 } from "zod";
5613
+ import { z as z201 } from "zod";
5610
5614
  var DTONpmRegistryConfigConstants = {
5611
5615
  passwordPlaceholder: "redacted"
5612
5616
  };
5613
- var DTONpmRegistryConfig = z200.object({
5617
+ var DTONpmRegistryConfig = z201.object({
5614
5618
  // Registry basic configuration
5615
5619
  registryType: NpmRegistryType,
5616
- registryUrl: z200.string(),
5617
- customRegistryUrl: z200.string().optional(),
5620
+ registryUrl: z201.string(),
5621
+ customRegistryUrl: z201.string().optional(),
5618
5622
  // URL of Supernova NPM packages proxy
5619
- proxyUrl: z200.string(),
5623
+ proxyUrl: z201.string(),
5620
5624
  // Auth configuration
5621
5625
  authType: NpmRegistryAuthType,
5622
- accessToken: z200.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5623
- username: z200.string().optional(),
5624
- password: z200.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5626
+ accessToken: z201.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5627
+ username: z201.string().optional(),
5628
+ password: z201.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5625
5629
  // NPM package scopes for whih the proxy should be enabled
5626
- enabledScopes: z200.array(z200.string()),
5630
+ enabledScopes: z201.array(z201.string()),
5627
5631
  // True if client should bypass Supernova proxy and connect directly to the registry
5628
5632
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
5629
- bypassProxy: z200.boolean()
5633
+ bypassProxy: z201.boolean()
5630
5634
  });
5631
5635
 
5632
5636
  // src/api/dto/workspaces/workspace.ts
5633
- var DTOWorkspace = z201.object({
5634
- id: z201.string(),
5637
+ var DTOWorkspace = z202.object({
5638
+ id: z202.string(),
5635
5639
  profile: WorkspaceProfile,
5636
5640
  subscription: Subscription,
5637
5641
  npmRegistry: DTONpmRegistryConfig.optional()
5638
5642
  });
5639
5643
 
5640
5644
  // src/api/dto/workspaces/membership.ts
5641
- var DTOWorkspaceRole = z202.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
5642
- var DTOUserWorkspaceMembership = z202.object({
5645
+ var DTOWorkspaceRole = z203.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
5646
+ var DTOUserWorkspaceMembership = z203.object({
5643
5647
  // Workspace the user is a member of
5644
5648
  workspace: DTOWorkspace,
5645
5649
  // Assigned role the user has in the workspace
@@ -5649,14 +5653,14 @@ var DTOUserWorkspaceMembership = z202.object({
5649
5653
  // when a workspace's subscription is downgraded to free tier
5650
5654
  effectiveRole: DTOWorkspaceRole
5651
5655
  });
5652
- var DTOUserWorkspaceMembershipsResponse = z202.object({
5653
- membership: z202.array(DTOUserWorkspaceMembership)
5656
+ var DTOUserWorkspaceMembershipsResponse = z203.object({
5657
+ membership: z203.array(DTOUserWorkspaceMembership)
5654
5658
  });
5655
5659
 
5656
5660
  // src/yjs/design-system-content/documentation-hierarchy.ts
5657
- import { z as z203 } from "zod";
5658
- var DocumentationHierarchySettings = z203.object({
5659
- routingVersion: z203.string()
5661
+ import { z as z204 } from "zod";
5662
+ var DocumentationHierarchySettings = z204.object({
5663
+ routingVersion: z204.string()
5660
5664
  });
5661
5665
  function documentationHierarchyToYjs(doc, transaction) {
5662
5666
  doc.transact((trx) => {
@@ -5727,13 +5731,13 @@ function getInternalSettingsYMap(doc) {
5727
5731
  }
5728
5732
 
5729
5733
  // src/yjs/design-system-content/item-configuration.ts
5730
- import { z as z204 } from "zod";
5731
- var DTODocumentationPageRoomHeaderData = z204.object({
5732
- title: z204.string(),
5734
+ import { z as z205 } from "zod";
5735
+ var DTODocumentationPageRoomHeaderData = z205.object({
5736
+ title: z205.string(),
5733
5737
  configuration: DTODocumentationItemConfigurationV2
5734
5738
  });
5735
- var DTODocumentationPageRoomHeaderDataUpdate = z204.object({
5736
- title: z204.string().optional(),
5739
+ var DTODocumentationPageRoomHeaderDataUpdate = z205.object({
5740
+ title: z205.string().optional(),
5737
5741
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
5738
5742
  });
5739
5743
  function itemConfigurationToYjs(yDoc, item) {
@@ -5784,7 +5788,7 @@ function yjsToItemConfiguration(yDoc) {
5784
5788
  header: rawHeader
5785
5789
  };
5786
5790
  return {
5787
- title: z204.string().parse(title),
5791
+ title: z205.string().parse(title),
5788
5792
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
5789
5793
  };
5790
5794
  }
@@ -5794,9 +5798,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
5794
5798
  var PageSectionEditorModel = PageSectionEditorModelV2;
5795
5799
 
5796
5800
  // src/yjs/docs-editor/model/page.ts
5797
- import { z as z205 } from "zod";
5798
- var DocumentationPageEditorModel = z205.object({
5799
- blocks: z205.array(PageBlockEditorModel.or(PageSectionEditorModel))
5801
+ import { z as z206 } from "zod";
5802
+ var DocumentationPageEditorModel = z206.object({
5803
+ blocks: z206.array(PageBlockEditorModel.or(PageSectionEditorModel))
5800
5804
  });
5801
5805
 
5802
5806
  // src/yjs/docs-editor/prosemirror/schema.ts
@@ -8768,7 +8772,7 @@ var blocks = [
8768
8772
 
8769
8773
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
8770
8774
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
8771
- import { z as z206 } from "zod";
8775
+ import { z as z207 } from "zod";
8772
8776
  function yDocToPage(yDoc, definitions) {
8773
8777
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
8774
8778
  }
@@ -8811,7 +8815,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
8811
8815
  return null;
8812
8816
  return {
8813
8817
  id,
8814
- title: getProsemirrorAttribute(prosemirrorNode, "title", z206.string()) ?? "",
8818
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z207.string()) ?? "",
8815
8819
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
8816
8820
  };
8817
8821
  }
@@ -8846,7 +8850,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
8846
8850
  });
8847
8851
  }
8848
8852
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
8849
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z206.string());
8853
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z207.string());
8850
8854
  if (!definitionId) {
8851
8855
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
8852
8856
  return [];
@@ -8888,7 +8892,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
8888
8892
  if (!id)
8889
8893
  return null;
8890
8894
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
8891
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z206.string().optional()));
8895
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z207.string().optional()));
8892
8896
  return {
8893
8897
  id,
8894
8898
  type: "Block",
@@ -9014,10 +9018,10 @@ function parseRichTextAttribute(mark) {
9014
9018
  return null;
9015
9019
  }
9016
9020
  function parseProsemirrorLink(mark) {
9017
- const href = getProsemirrorAttribute(mark, "href", z206.string().optional());
9021
+ const href = getProsemirrorAttribute(mark, "href", z207.string().optional());
9018
9022
  if (!href)
9019
9023
  return null;
9020
- const target = getProsemirrorAttribute(mark, "target", z206.string().optional());
9024
+ const target = getProsemirrorAttribute(mark, "target", z207.string().optional());
9021
9025
  const openInNewTab = target === "_blank";
9022
9026
  if (href.startsWith("@")) {
9023
9027
  return {
@@ -9040,7 +9044,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
9040
9044
  if (!id)
9041
9045
  return null;
9042
9046
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
9043
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z206.boolean().optional()) !== false;
9047
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z207.boolean().optional()) !== false;
9044
9048
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
9045
9049
  if (!tableChild) {
9046
9050
  return emptyTable(id, variantId, 0);
@@ -9087,9 +9091,9 @@ function parseAsTableCell(prosemirrorNode) {
9087
9091
  const id = getProsemirrorBlockId(prosemirrorNode);
9088
9092
  if (!id)
9089
9093
  return null;
9090
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z206.string().optional());
9094
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z207.string().optional());
9091
9095
  let columnWidth;
9092
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z206.array(z206.number()).optional());
9096
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z207.array(z207.number()).optional());
9093
9097
  if (columnWidthArray) {
9094
9098
  columnWidth = columnWidthArray[0];
9095
9099
  }
@@ -9127,7 +9131,7 @@ function parseAsTableNode(prosemirrorNode) {
9127
9131
  value: parseRichText(prosemirrorNode.content ?? [])
9128
9132
  };
9129
9133
  case "image":
9130
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z206.string());
9134
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z207.string());
9131
9135
  if (!items)
9132
9136
  return null;
9133
9137
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -9216,9 +9220,13 @@ function parseAsCustomBlock(prosemirrorNode, definition) {
9216
9220
  return null;
9217
9221
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
9218
9222
  const appearance = parseAppearance(prosemirrorNode);
9219
- const parsedItems = parseBlockItems(prosemirrorNode, definition);
9220
- if (!parsedItems)
9221
- return null;
9223
+ const parsedItems = parseBlockItems(prosemirrorNode, definition) ?? [];
9224
+ if (!parsedItems.length && definition.behavior.items?.numberOfItems === 1) {
9225
+ parsedItems.push({
9226
+ id,
9227
+ props: {}
9228
+ });
9229
+ }
9222
9230
  return {
9223
9231
  id,
9224
9232
  type: "Block",
@@ -9232,7 +9240,7 @@ function parseAsCustomBlock(prosemirrorNode, definition) {
9232
9240
  };
9233
9241
  }
9234
9242
  function parseBlockItems(prosemirrorNode, definition) {
9235
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z206.string());
9243
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z207.string());
9236
9244
  if (!itemsString)
9237
9245
  return null;
9238
9246
  const itemsJson = JSON.parse(itemsString);
@@ -9244,18 +9252,18 @@ function parseBlockItems(prosemirrorNode, definition) {
9244
9252
  }
9245
9253
  function parseAppearance(prosemirrorNode) {
9246
9254
  let appearance = {};
9247
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z206.string().optional());
9255
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z207.string().optional());
9248
9256
  if (rawAppearanceString) {
9249
9257
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
9250
9258
  if (parsedAppearance.success) {
9251
9259
  appearance = parsedAppearance.data;
9252
9260
  }
9253
9261
  }
9254
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z206.number().optional());
9262
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z207.number().optional());
9255
9263
  if (columns) {
9256
9264
  appearance.numberOfColumns = columns;
9257
9265
  }
9258
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z206.string().optional());
9266
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z207.string().optional());
9259
9267
  if (backgroundColor) {
9260
9268
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
9261
9269
  if (parsedColor.success) {
@@ -9348,13 +9356,13 @@ function valueSchemaForPropertyType(type) {
9348
9356
  }
9349
9357
  }
9350
9358
  function getProsemirrorBlockId(prosemirrorNode) {
9351
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z206.string());
9359
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z207.string());
9352
9360
  if (!id)
9353
9361
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
9354
9362
  return id;
9355
9363
  }
9356
9364
  function getProsemirrorBlockVariantId(prosemirrorNode) {
9357
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z206.string()));
9365
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z207.string()));
9358
9366
  }
9359
9367
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
9360
9368
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);