@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.d.mts +20 -20
- package/dist/index.d.ts +20 -20
- package/dist/index.js +368 -360
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1395 -1387
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/yjs/docs-editor/prosemirror-to-blocks.ts +9 -3
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
|
|
34
|
-
import { z as
|
|
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
|
|
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
|
|
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
|
|
141
|
-
import { z as
|
|
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.
|
|
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
|
|
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 =
|
|
1768
|
+
var ImportWarning = z79.object({
|
|
1781
1769
|
warningType: ImportWarningType,
|
|
1782
|
-
componentId:
|
|
1783
|
-
componentName:
|
|
1784
|
-
styleId:
|
|
1785
|
-
styleName:
|
|
1786
|
-
unsupportedStyleValueType:
|
|
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
|
|
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
|
-
|
|
1783
|
+
z80.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
|
|
1999
1784
|
);
|
|
2000
|
-
var SourceImportSummaryByTokenType =
|
|
2001
|
-
var SourceImportTokenSummary =
|
|
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 =
|
|
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 =
|
|
1802
|
+
var SourceImportFrameSummary = z80.object({
|
|
2018
1803
|
assetsInFile: nullishToOptional(FileStructureStats.optional()),
|
|
2019
|
-
invalidReferencesCount: nullishToOptional(
|
|
2020
|
-
});
|
|
2021
|
-
var SourceImportSummary =
|
|
2022
|
-
sourceId: nullishToOptional(
|
|
2023
|
-
brandId: nullishToOptional(
|
|
2024
|
-
versionId: nullishToOptional(
|
|
2025
|
-
error: nullishToOptional(
|
|
2026
|
-
isFailed:
|
|
2027
|
-
warnings:
|
|
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
|
|
1818
|
+
return z80.number().nullish().transform((v) => v ?? 0);
|
|
2034
1819
|
}
|
|
2035
|
-
var DataSourceRemoteType =
|
|
2036
|
-
var DataSourceUploadRemoteSource =
|
|
2037
|
-
var DataSourceFigmaState =
|
|
2038
|
-
var DataSourceAutoImportMode =
|
|
2039
|
-
var DataSourceStats =
|
|
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 =
|
|
2046
|
-
lastUpdatedAt:
|
|
1830
|
+
var DataSourceFigmaFileData = z81.object({
|
|
1831
|
+
lastUpdatedAt: z81.coerce.date()
|
|
2047
1832
|
});
|
|
2048
|
-
var DataSourceFigmaFileVersionData =
|
|
2049
|
-
id:
|
|
2050
|
-
label:
|
|
2051
|
-
description:
|
|
2052
|
-
createdAt:
|
|
2053
|
-
});
|
|
2054
|
-
var DataSourceFigmaScope =
|
|
2055
|
-
assets:
|
|
2056
|
-
components:
|
|
2057
|
-
documentationFrames:
|
|
2058
|
-
tokens:
|
|
2059
|
-
themePersistentId:
|
|
2060
|
-
isUnpublishedContentFallbackEnabled:
|
|
2061
|
-
});
|
|
2062
|
-
var DataSourceFigmaImportMetadata =
|
|
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 =
|
|
2067
|
-
type:
|
|
2068
|
-
fileId:
|
|
2069
|
-
preferredCredentialId:
|
|
2070
|
-
ownerId:
|
|
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:
|
|
1857
|
+
ownerName: z81.string(),
|
|
2073
1858
|
// todo probably remove
|
|
2074
1859
|
scope: DataSourceFigmaScope,
|
|
2075
1860
|
state: DataSourceFigmaState,
|
|
2076
|
-
requiresSync:
|
|
1861
|
+
requiresSync: z81.boolean().optional().transform((v) => v ?? false),
|
|
2077
1862
|
lastImportMetadata: DataSourceFigmaImportMetadata.optional(),
|
|
2078
|
-
downloadChunkSize:
|
|
2079
|
-
figmaRenderChunkSize:
|
|
2080
|
-
maxFileDepth:
|
|
1863
|
+
downloadChunkSize: z81.number().optional(),
|
|
1864
|
+
figmaRenderChunkSize: z81.number().optional(),
|
|
1865
|
+
maxFileDepth: z81.number().optional()
|
|
2081
1866
|
});
|
|
2082
|
-
var DataSourceTokenStudioRemote =
|
|
2083
|
-
type:
|
|
1867
|
+
var DataSourceTokenStudioRemote = z81.object({
|
|
1868
|
+
type: z81.literal(DataSourceRemoteType.Enum.TokenStudio)
|
|
2084
1869
|
});
|
|
2085
|
-
var DataSourceUploadImportMetadata =
|
|
2086
|
-
var DataSourceUploadRemote =
|
|
2087
|
-
type:
|
|
2088
|
-
remoteId:
|
|
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 =
|
|
1877
|
+
var DataSourceRemote = z81.discriminatedUnion("type", [
|
|
2093
1878
|
DataSourceFigmaRemote,
|
|
2094
1879
|
DataSourceUploadRemote,
|
|
2095
1880
|
DataSourceTokenStudioRemote
|
|
2096
1881
|
]);
|
|
2097
|
-
var DataSource =
|
|
2098
|
-
id:
|
|
2099
|
-
name:
|
|
2100
|
-
thumbnailUrl:
|
|
2101
|
-
createdAt:
|
|
2102
|
-
lastImportedAt:
|
|
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:
|
|
2105
|
-
brandPersistentId:
|
|
1889
|
+
designSystemId: z81.string(),
|
|
1890
|
+
brandPersistentId: z81.string(),
|
|
2106
1891
|
autoImportMode: DataSourceAutoImportMode,
|
|
2107
1892
|
stats: DataSourceStats,
|
|
2108
1893
|
remote: DataSourceRemote,
|
|
2109
|
-
sortOrder:
|
|
1894
|
+
sortOrder: z81.number()
|
|
2110
1895
|
});
|
|
2111
|
-
var DataSourceVersion =
|
|
2112
|
-
id:
|
|
2113
|
-
createdAt:
|
|
2114
|
-
label:
|
|
2115
|
-
description:
|
|
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
|
|
1903
|
+
return z81.number().nullish().transform((v) => v ?? 0);
|
|
2119
1904
|
}
|
|
2120
|
-
var ImportJobState =
|
|
2121
|
-
var ImportJobOperation =
|
|
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:
|
|
2124
|
-
designSystemVersionId:
|
|
2125
|
-
sourceIds:
|
|
1908
|
+
designSystemId: z82.string(),
|
|
1909
|
+
designSystemVersionId: z82.string(),
|
|
1910
|
+
sourceIds: z82.array(z82.string()),
|
|
2126
1911
|
state: ImportJobState,
|
|
2127
|
-
createdByUserId:
|
|
2128
|
-
importContextId:
|
|
2129
|
-
error:
|
|
1912
|
+
createdByUserId: z82.string().optional(),
|
|
1913
|
+
importContextId: z82.string(),
|
|
1914
|
+
error: z82.string().optional(),
|
|
2130
1915
|
sourceType: DataSourceRemoteType,
|
|
2131
|
-
importContextCleanedUp:
|
|
2132
|
-
});
|
|
2133
|
-
var PageBlockDefinitionAppearance =
|
|
2134
|
-
isBordered:
|
|
2135
|
-
hasBackground:
|
|
2136
|
-
isEditorPresentationDifferent:
|
|
2137
|
-
showBlockHeaderInEditor:
|
|
2138
|
-
});
|
|
2139
|
-
var PageBlockDefinitionLayoutType =
|
|
2140
|
-
var PageBlockDefinitionLayoutGap =
|
|
2141
|
-
var PageBlockDefinitionLayoutAlign =
|
|
2142
|
-
var PageBlockDefinitionLayoutResizing =
|
|
2143
|
-
var PageBlockDefinitionLayoutBase =
|
|
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:
|
|
2151
|
-
});
|
|
2152
|
-
var PageBlockDefinitionVariant =
|
|
2153
|
-
id:
|
|
2154
|
-
name:
|
|
2155
|
-
image:
|
|
2156
|
-
description:
|
|
2157
|
-
documentationLink:
|
|
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:
|
|
2160
|
-
defaultColumns:
|
|
1944
|
+
maxColumns: z84.number().optional(),
|
|
1945
|
+
defaultColumns: z84.number().optional(),
|
|
2161
1946
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
2162
1947
|
});
|
|
2163
|
-
var PageBlockDefinitionPropertyType =
|
|
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 =
|
|
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 =
|
|
2202
|
-
var PageBlockDefinitionTextPropertyStyle =
|
|
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 =
|
|
2217
|
-
var PageBlockDefinitionBooleanPropertyStyle =
|
|
2218
|
-
var PageBlockDefinitionSingleSelectPropertyStyle =
|
|
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 =
|
|
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 =
|
|
2024
|
+
var IconSet = z85.enum([
|
|
2240
2025
|
"CheckCircle",
|
|
2241
2026
|
"CrossCircle",
|
|
2242
2027
|
"Alert"
|
|
2243
2028
|
]);
|
|
2244
|
-
var PageBlockDefinitionMultiSelectPropertyStyle =
|
|
2245
|
-
var PageBlockDefinitionImageAspectRatio =
|
|
2246
|
-
var PageBlockDefinitionImageWidth =
|
|
2247
|
-
var PageBlockDefinitionSelectChoice =
|
|
2248
|
-
value:
|
|
2249
|
-
name:
|
|
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:
|
|
2036
|
+
customIconUrl: z85.string().optional(),
|
|
2252
2037
|
color: PageBlockDefinitionSingleSelectPropertyColor.optional()
|
|
2253
2038
|
});
|
|
2254
|
-
var PageBlockDefinitionUntypedPropertyOptions =
|
|
2255
|
-
var PageBlockDefinitionRichTextOptions =
|
|
2039
|
+
var PageBlockDefinitionUntypedPropertyOptions = z85.record(z85.any());
|
|
2040
|
+
var PageBlockDefinitionRichTextOptions = z85.object({
|
|
2256
2041
|
richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
|
|
2257
2042
|
});
|
|
2258
|
-
var PageBlockDefinitionMutiRichTextOptions =
|
|
2043
|
+
var PageBlockDefinitionMutiRichTextOptions = z85.object({
|
|
2259
2044
|
multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
|
|
2260
2045
|
});
|
|
2261
|
-
var PageBlockDefinitionTextOptions =
|
|
2262
|
-
placeholder:
|
|
2263
|
-
defaultValue:
|
|
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:
|
|
2051
|
+
allowLineBreaks: z85.boolean().optional()
|
|
2267
2052
|
});
|
|
2268
|
-
var PageBlockDefinitionSelectOptions =
|
|
2053
|
+
var PageBlockDefinitionSelectOptions = z85.object({
|
|
2269
2054
|
singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
|
|
2270
|
-
defaultChoice:
|
|
2271
|
-
choices:
|
|
2055
|
+
defaultChoice: z85.string(),
|
|
2056
|
+
choices: z85.array(PageBlockDefinitionSelectChoice)
|
|
2272
2057
|
});
|
|
2273
|
-
var PageBlockDefinitionImageOptions =
|
|
2058
|
+
var PageBlockDefinitionImageOptions = z85.object({
|
|
2274
2059
|
width: PageBlockDefinitionImageWidth.optional(),
|
|
2275
2060
|
aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
|
|
2276
|
-
allowCaption:
|
|
2277
|
-
recommendation:
|
|
2061
|
+
allowCaption: z85.boolean().optional(),
|
|
2062
|
+
recommendation: z85.string().optional()
|
|
2278
2063
|
});
|
|
2279
|
-
var PageBlockDefinitionBooleanOptions =
|
|
2280
|
-
defaultvalue:
|
|
2064
|
+
var PageBlockDefinitionBooleanOptions = z85.object({
|
|
2065
|
+
defaultvalue: z85.boolean().optional(),
|
|
2281
2066
|
booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
|
|
2282
2067
|
});
|
|
2283
|
-
var PageBlockDefinitionNumberOptions =
|
|
2284
|
-
defaultValue:
|
|
2285
|
-
min:
|
|
2286
|
-
max:
|
|
2287
|
-
step:
|
|
2288
|
-
placeholder:
|
|
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 =
|
|
2291
|
-
renderLayoutAs:
|
|
2292
|
-
allowPropertySelection:
|
|
2075
|
+
var PageBlockDefinitionComponentOptions = z85.object({
|
|
2076
|
+
renderLayoutAs: z85.enum(["List", "Table"]).optional(),
|
|
2077
|
+
allowPropertySelection: z85.boolean().optional()
|
|
2293
2078
|
});
|
|
2294
|
-
var PageBlockDefinitionProperty =
|
|
2295
|
-
id:
|
|
2296
|
-
name:
|
|
2079
|
+
var PageBlockDefinitionProperty = z85.object({
|
|
2080
|
+
id: z85.string(),
|
|
2081
|
+
name: z85.string(),
|
|
2297
2082
|
type: PageBlockDefinitionPropertyType,
|
|
2298
|
-
description:
|
|
2083
|
+
description: z85.string().optional(),
|
|
2299
2084
|
options: PageBlockDefinitionUntypedPropertyOptions.optional(),
|
|
2300
|
-
variantOptions:
|
|
2085
|
+
variantOptions: z85.record(PageBlockDefinitionUntypedPropertyOptions).optional()
|
|
2301
2086
|
});
|
|
2302
|
-
var PageBlockDefinitionItem =
|
|
2303
|
-
properties:
|
|
2087
|
+
var PageBlockDefinitionItem = z85.object({
|
|
2088
|
+
properties: z85.array(PageBlockDefinitionProperty),
|
|
2304
2089
|
appearance: PageBlockDefinitionAppearance.optional(),
|
|
2305
|
-
variants:
|
|
2306
|
-
defaultVariantKey:
|
|
2090
|
+
variants: z85.array(PageBlockDefinitionVariant),
|
|
2091
|
+
defaultVariantKey: z85.string()
|
|
2307
2092
|
});
|
|
2308
|
-
var PageBlockCategory =
|
|
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 =
|
|
2323
|
-
var PageBlockBehaviorSelectionType =
|
|
2324
|
-
var PageBlockDefinitionBehavior =
|
|
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:
|
|
2327
|
-
numberOfItems:
|
|
2328
|
-
allowLinks:
|
|
2329
|
-
newItemLabel:
|
|
2111
|
+
items: z86.object({
|
|
2112
|
+
numberOfItems: z86.number(),
|
|
2113
|
+
allowLinks: z86.boolean(),
|
|
2114
|
+
newItemLabel: z86.string().optional()
|
|
2330
2115
|
}).optional(),
|
|
2331
|
-
entities:
|
|
2116
|
+
entities: z86.object({
|
|
2332
2117
|
selectionType: PageBlockBehaviorSelectionType,
|
|
2333
|
-
maxSelected:
|
|
2118
|
+
maxSelected: z86.number()
|
|
2334
2119
|
}).optional()
|
|
2335
2120
|
});
|
|
2336
|
-
var PageBlockDefinitionOnboarding =
|
|
2337
|
-
helpText:
|
|
2338
|
-
documentationLink:
|
|
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
|
|
2341
|
-
|
|
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
|
|
2356
|
-
|
|
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
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
});
|
|
2380
|
-
var
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
});
|
|
2389
|
-
var
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
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
|
|
2405
|
-
type: z102.literal("DocumentationPage"),
|
|
2417
|
+
var DataSourceImportModel = z102.object({
|
|
2406
2418
|
id: z102.string(),
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
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:
|
|
2876
|
-
});
|
|
2877
|
-
var
|
|
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
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
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 =
|
|
2991
|
-
from:
|
|
2992
|
-
to:
|
|
2993
|
-
authorizationHeaderKvsId:
|
|
2994
|
-
timeout:
|
|
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 =
|
|
2997
|
-
type:
|
|
3080
|
+
var ContentLoaderPayload = z136.object({
|
|
3081
|
+
type: z136.literal("Single"),
|
|
2998
3082
|
instruction: ContentLoadInstruction
|
|
2999
3083
|
}).or(
|
|
3000
|
-
|
|
3001
|
-
type:
|
|
3002
|
-
loadingChunkSize:
|
|
3003
|
-
instructions:
|
|
3084
|
+
z136.object({
|
|
3085
|
+
type: z136.literal("Multiple"),
|
|
3086
|
+
loadingChunkSize: z136.number().optional(),
|
|
3087
|
+
instructions: z136.array(ContentLoadInstruction)
|
|
3004
3088
|
})
|
|
3005
3089
|
).or(
|
|
3006
|
-
|
|
3007
|
-
type:
|
|
3008
|
-
location:
|
|
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 =
|
|
3637
|
-
designSystemId:
|
|
3638
|
-
brandId:
|
|
3639
|
-
title:
|
|
3640
|
-
userId:
|
|
3641
|
-
date:
|
|
3642
|
-
});
|
|
3643
|
-
var IntegrationCredentialsType =
|
|
3644
|
-
var IntegrationCredentialsState =
|
|
3645
|
-
var IntegrationCredentialsProfile =
|
|
3646
|
-
id: nullishToOptional(
|
|
3647
|
-
email: nullishToOptional(
|
|
3648
|
-
handle: nullishToOptional(
|
|
3649
|
-
type: nullishToOptional(
|
|
3650
|
-
avatarUrl: nullishToOptional(
|
|
3651
|
-
organization: nullishToOptional(
|
|
3652
|
-
collection: nullishToOptional(
|
|
3653
|
-
});
|
|
3654
|
-
var IntegrationCredentials =
|
|
3655
|
-
id:
|
|
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:
|
|
3658
|
-
accessToken:
|
|
3659
|
-
userId:
|
|
3660
|
-
createdAt:
|
|
3661
|
-
refreshToken:
|
|
3662
|
-
tokenName:
|
|
3663
|
-
expiresAt:
|
|
3664
|
-
refreshedAt:
|
|
3665
|
-
username:
|
|
3666
|
-
appInstallationId:
|
|
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:
|
|
3752
|
+
customUrl: z137.string().optional(),
|
|
3669
3753
|
state: IntegrationCredentialsState,
|
|
3670
3754
|
user: UserMinified.optional()
|
|
3671
3755
|
});
|
|
3672
|
-
var ExtendedIntegrationType =
|
|
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 =
|
|
3684
|
-
id:
|
|
3685
|
-
workspaceId:
|
|
3767
|
+
var Integration = z137.object({
|
|
3768
|
+
id: z137.string(),
|
|
3769
|
+
workspaceId: z137.string(),
|
|
3686
3770
|
type: IntegrationType,
|
|
3687
|
-
createdAt:
|
|
3688
|
-
integrationCredentials:
|
|
3689
|
-
});
|
|
3690
|
-
var IntegrationToken =
|
|
3691
|
-
access_token:
|
|
3692
|
-
refresh_token:
|
|
3693
|
-
expires_in:
|
|
3694
|
-
token_type:
|
|
3695
|
-
token_name:
|
|
3696
|
-
token_azure_organization_name:
|
|
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:
|
|
3782
|
+
token_azure_collection_name: z137.string().optional(),
|
|
3699
3783
|
// Azure Server PAT only
|
|
3700
|
-
token_bitbucket_username:
|
|
3784
|
+
token_bitbucket_username: z137.string().optional(),
|
|
3701
3785
|
// Bitbucket only
|
|
3702
|
-
custom_url:
|
|
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 =
|
|
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
|
|
3745
|
-
|
|
3746
|
-
|
|
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 =
|
|
3829
|
-
access:
|
|
3830
|
-
expiresAt:
|
|
3832
|
+
var NpmProxyToken = z140.object({
|
|
3833
|
+
access: z140.string(),
|
|
3834
|
+
expiresAt: z140.number()
|
|
3831
3835
|
});
|
|
3832
|
-
var SessionData =
|
|
3833
|
-
returnToUrl:
|
|
3836
|
+
var SessionData = z140.object({
|
|
3837
|
+
returnToUrl: z140.string().optional(),
|
|
3834
3838
|
npmProxyToken: NpmProxyToken.optional()
|
|
3835
3839
|
});
|
|
3836
|
-
var Session =
|
|
3837
|
-
id:
|
|
3838
|
-
expiresAt:
|
|
3839
|
-
userId:
|
|
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 =
|
|
3843
|
-
access:
|
|
3844
|
-
refresh:
|
|
3846
|
+
var AuthTokens = z140.object({
|
|
3847
|
+
access: z140.string(),
|
|
3848
|
+
refresh: z140.string()
|
|
3845
3849
|
});
|
|
3846
|
-
var UserSession =
|
|
3850
|
+
var UserSession = z140.object({
|
|
3847
3851
|
session: Session,
|
|
3848
3852
|
user: User.nullable()
|
|
3849
3853
|
});
|
|
3850
|
-
var ExportJobDocumentationContext =
|
|
3851
|
-
isSingleVersionDocs:
|
|
3852
|
-
versionSlug:
|
|
3854
|
+
var ExportJobDocumentationContext = z141.object({
|
|
3855
|
+
isSingleVersionDocs: z141.boolean(),
|
|
3856
|
+
versionSlug: z141.string(),
|
|
3853
3857
|
environment: PublishedDocEnvironment
|
|
3854
3858
|
});
|
|
3855
|
-
var ExportJobContext =
|
|
3856
|
-
apiUrl:
|
|
3857
|
-
accessToken:
|
|
3858
|
-
designSystemId:
|
|
3859
|
-
designSystemName:
|
|
3860
|
-
exporterId:
|
|
3861
|
-
versionId:
|
|
3862
|
-
brandId:
|
|
3863
|
-
themeId:
|
|
3864
|
-
exporterName:
|
|
3865
|
-
exporterPackageUrl:
|
|
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 =
|
|
3870
|
-
exportJobId:
|
|
3871
|
-
exportContextId:
|
|
3872
|
-
designSystemId:
|
|
3873
|
-
workspaceId:
|
|
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 =
|
|
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 =
|
|
3885
|
-
var ExportJobLogEntryType =
|
|
3886
|
-
var ExportJobLogEntry =
|
|
3887
|
-
id:
|
|
3888
|
-
time:
|
|
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:
|
|
3894
|
+
message: z143.string()
|
|
3891
3895
|
});
|
|
3892
|
-
var ExportJobPullRequestDestinationResult =
|
|
3893
|
-
pullRequestUrl:
|
|
3896
|
+
var ExportJobPullRequestDestinationResult = z143.object({
|
|
3897
|
+
pullRequestUrl: z143.string()
|
|
3894
3898
|
});
|
|
3895
|
-
var ExportJobS3DestinationResult =
|
|
3896
|
-
bucket:
|
|
3897
|
-
urlPrefix:
|
|
3898
|
-
path:
|
|
3899
|
-
files:
|
|
3900
|
-
url: nullishToOptional(
|
|
3901
|
-
urls: nullishToOptional(
|
|
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 =
|
|
3904
|
-
url:
|
|
3907
|
+
var ExportJobDocsDestinationResult = z143.object({
|
|
3908
|
+
url: z143.string()
|
|
3905
3909
|
});
|
|
3906
|
-
var ExportJobResult =
|
|
3907
|
-
error:
|
|
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 =
|
|
3917
|
-
id:
|
|
3918
|
-
createdAt:
|
|
3919
|
-
finishedAt:
|
|
3920
|
-
designSystemId:
|
|
3921
|
-
designSystemVersionId:
|
|
3922
|
-
workspaceId:
|
|
3923
|
-
scheduleId:
|
|
3924
|
-
exporterId:
|
|
3925
|
-
brandId:
|
|
3926
|
-
themeId:
|
|
3927
|
-
estimatedExecutionTime:
|
|
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:
|
|
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:
|
|
3948
|
+
destinations: z143.array(ExportJobDestinationType),
|
|
3945
3949
|
docsEnvironment: PublishedDocEnvironment
|
|
3946
3950
|
}).partial();
|
|
3947
|
-
var ExporterWorkspaceMembershipRole =
|
|
3948
|
-
var ExporterWorkspaceMembership =
|
|
3949
|
-
id:
|
|
3950
|
-
workspaceId:
|
|
3951
|
-
exporterId:
|
|
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 =
|
|
3955
|
-
var FeatureFlagMap =
|
|
3956
|
-
var FeatureFlag =
|
|
3957
|
-
id:
|
|
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:
|
|
3960
|
-
enabled:
|
|
3961
|
-
designSystemId:
|
|
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 =
|
|
3975
|
+
var OAuthProviderSchema = z147.nativeEnum(OAuthProviderNames);
|
|
3972
3976
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
3973
|
-
var ExternalOAuthRequest =
|
|
3974
|
-
id:
|
|
3977
|
+
var ExternalOAuthRequest = z148.object({
|
|
3978
|
+
id: z148.string(),
|
|
3975
3979
|
provider: OAuthProviderSchema,
|
|
3976
|
-
userId:
|
|
3977
|
-
state:
|
|
3978
|
-
createdAt:
|
|
3980
|
+
userId: z148.string(),
|
|
3981
|
+
state: z148.string(),
|
|
3982
|
+
createdAt: z148.coerce.date()
|
|
3979
3983
|
});
|
|
3980
|
-
var GitObjectsQuery =
|
|
3981
|
-
organization:
|
|
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:
|
|
3987
|
+
project: z149.string().optional(),
|
|
3984
3988
|
// Only for Bitbucket and Azure
|
|
3985
|
-
repository:
|
|
3989
|
+
repository: z149.string().optional(),
|
|
3986
3990
|
// For all providers. For Gitlab, it's called "project".
|
|
3987
|
-
branch:
|
|
3991
|
+
branch: z149.string().optional(),
|
|
3988
3992
|
// For all providers.
|
|
3989
|
-
user:
|
|
3993
|
+
user: z149.string().optional()
|
|
3990
3994
|
// Gitlab user
|
|
3991
3995
|
});
|
|
3992
|
-
var GitOrganization =
|
|
3993
|
-
id:
|
|
3994
|
-
name:
|
|
3995
|
-
url:
|
|
3996
|
-
slug:
|
|
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 =
|
|
3999
|
-
id:
|
|
4000
|
-
name:
|
|
4001
|
-
url:
|
|
4002
|
-
slug:
|
|
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 =
|
|
4005
|
-
id:
|
|
4006
|
-
name:
|
|
4007
|
-
url:
|
|
4008
|
-
slug:
|
|
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:
|
|
4018
|
+
defaultBranch: z149.string().optional()
|
|
4015
4019
|
});
|
|
4016
|
-
var GitBranch =
|
|
4017
|
-
name:
|
|
4018
|
-
lastCommitId:
|
|
4020
|
+
var GitBranch = z149.object({
|
|
4021
|
+
name: z149.string(),
|
|
4022
|
+
lastCommitId: z149.string()
|
|
4019
4023
|
});
|
|
4020
|
-
var IntegrationTokenSchemaOld =
|
|
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
|
-
|
|
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 =
|
|
4041
|
+
var AnyRecord = z152.record(z152.any());
|
|
4038
4042
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
4039
|
-
|
|
4040
|
-
tarball:
|
|
4043
|
+
z152.object({
|
|
4044
|
+
tarball: z152.string()
|
|
4041
4045
|
})
|
|
4042
4046
|
);
|
|
4043
4047
|
var NpmPackageVersion = AnyRecord.and(
|
|
4044
|
-
|
|
4048
|
+
z152.object({
|
|
4045
4049
|
dist: NpmPackageVersionDist
|
|
4046
4050
|
})
|
|
4047
4051
|
);
|
|
4048
4052
|
var NpmPackage = AnyRecord.and(
|
|
4049
|
-
|
|
4050
|
-
_id:
|
|
4051
|
-
name:
|
|
4053
|
+
z152.object({
|
|
4054
|
+
_id: z152.string(),
|
|
4055
|
+
name: z152.string(),
|
|
4052
4056
|
// e.g. "latest": "1.2.3"
|
|
4053
|
-
"dist-tags":
|
|
4057
|
+
"dist-tags": z152.record(z152.string(), z152.string()),
|
|
4054
4058
|
// "1.2.3": {...}
|
|
4055
|
-
versions:
|
|
4059
|
+
versions: z152.record(NpmPackageVersion)
|
|
4056
4060
|
})
|
|
4057
4061
|
);
|
|
4058
|
-
var NpmProxyTokenPayload =
|
|
4059
|
-
npmProxyRegistryConfigId:
|
|
4062
|
+
var NpmProxyTokenPayload = z153.object({
|
|
4063
|
+
npmProxyRegistryConfigId: z153.string()
|
|
4060
4064
|
});
|
|
4061
|
-
var WorkspaceRoleSchema =
|
|
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 =
|
|
4065
|
-
email:
|
|
4068
|
+
var UserInvite = z155.object({
|
|
4069
|
+
email: z155.string().email().trim().transform((value) => value.toLowerCase()),
|
|
4066
4070
|
role: WorkspaceRoleSchema
|
|
4067
4071
|
});
|
|
4068
|
-
var UserInvites =
|
|
4069
|
-
var WorkspaceConfigurationUpdate =
|
|
4070
|
-
id:
|
|
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 =
|
|
4077
|
-
workspaceId:
|
|
4080
|
+
var WorkspaceContext = z157.object({
|
|
4081
|
+
workspaceId: z157.string(),
|
|
4078
4082
|
product: ProductCodeSchema,
|
|
4079
4083
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4080
|
-
publicDesignSystem:
|
|
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 =
|
|
4087
|
-
name:
|
|
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:
|
|
4090
|
-
billingEmail:
|
|
4091
|
-
handle:
|
|
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:
|
|
4097
|
+
promoCode: z158.string().optional(),
|
|
4094
4098
|
status: InternalStatusSchema.optional(),
|
|
4095
4099
|
planInterval: BillingIntervalSchema.optional(),
|
|
4096
|
-
seats:
|
|
4097
|
-
seatLimit:
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
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 =
|
|
4120
|
-
members:
|
|
4121
|
-
|
|
4122
|
-
userId:
|
|
4123
|
-
role:
|
|
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 =
|
|
4128
|
-
id:
|
|
4129
|
-
userId:
|
|
4130
|
-
workspaceId:
|
|
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:
|
|
4133
|
-
hidden:
|
|
4134
|
-
token:
|
|
4135
|
-
scope:
|
|
4136
|
-
createdAt:
|
|
4137
|
-
expireAt:
|
|
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
|
|
4566
|
-
var DTOBrand =
|
|
4567
|
-
id:
|
|
4568
|
-
designSystemVersionId:
|
|
4569
|
-
persistentId:
|
|
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 =
|
|
4573
|
-
var DTOBrandCreateResponse =
|
|
4576
|
+
var DTOBrandGetResponse = z162.object({ brand: DTOBrand });
|
|
4577
|
+
var DTOBrandCreateResponse = z162.object({
|
|
4574
4578
|
brand: DTOBrand
|
|
4575
4579
|
});
|
|
4576
|
-
var DTOBrandsListResponse =
|
|
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
|
|
4580
|
-
var DTODataSourceFigmaFileVersion =
|
|
4581
|
-
id:
|
|
4582
|
-
created_at:
|
|
4583
|
-
label:
|
|
4584
|
-
description:
|
|
4585
|
-
});
|
|
4586
|
-
var DTODataSourceFigmaCloud =
|
|
4587
|
-
fileId:
|
|
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:
|
|
4594
|
+
fileThumbnailUrl: z163.string().optional(),
|
|
4591
4595
|
lastImportResult: SourceImportSummary.nullish(),
|
|
4592
|
-
lastImportedAt:
|
|
4596
|
+
lastImportedAt: z163.date().nullish(),
|
|
4593
4597
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
4594
|
-
lastUpdatesCheckedAt:
|
|
4595
|
-
ownerId:
|
|
4596
|
-
ownerUserName:
|
|
4597
|
-
preferredCredentialId:
|
|
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 =
|
|
4601
|
-
id:
|
|
4602
|
-
type:
|
|
4603
|
-
fileName:
|
|
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:
|
|
4606
|
-
themeId:
|
|
4609
|
+
brandId: z163.string(),
|
|
4610
|
+
themeId: z163.string().nullish(),
|
|
4607
4611
|
cloud: DTODataSourceFigmaCloud.nullish(),
|
|
4608
|
-
tokenStudio:
|
|
4609
|
-
upload:
|
|
4610
|
-
figmaVariablesPlugin:
|
|
4611
|
-
});
|
|
4612
|
-
var DTODataSourceTokenStudio =
|
|
4613
|
-
id:
|
|
4614
|
-
type:
|
|
4615
|
-
fileName:
|
|
4616
|
-
brandId:
|
|
4617
|
-
themeId:
|
|
4618
|
-
cloud:
|
|
4619
|
-
tokenStudio:
|
|
4620
|
-
settings:
|
|
4621
|
-
dryRun:
|
|
4622
|
-
verbose:
|
|
4623
|
-
preciseCopy:
|
|
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:
|
|
4626
|
-
lastImportedAt:
|
|
4627
|
-
lastImportedResults:
|
|
4628
|
-
|
|
4629
|
-
mapping:
|
|
4630
|
-
tokenSets:
|
|
4631
|
-
supernovaBrand:
|
|
4632
|
-
supernovaTheme:
|
|
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:
|
|
4635
|
-
tokensCreated:
|
|
4636
|
-
tokensDeleted:
|
|
4637
|
-
tokensUpdated:
|
|
4638
|
+
isFailed: z163.boolean(),
|
|
4639
|
+
tokensCreated: z163.number(),
|
|
4640
|
+
tokensDeleted: z163.number(),
|
|
4641
|
+
tokensUpdated: z163.number()
|
|
4638
4642
|
})
|
|
4639
4643
|
)
|
|
4640
4644
|
}),
|
|
4641
|
-
upload:
|
|
4642
|
-
figmaVariablesPlugin:
|
|
4643
|
-
});
|
|
4644
|
-
var DTODataSourceFigmaVariablesPlugin =
|
|
4645
|
-
id:
|
|
4646
|
-
type:
|
|
4647
|
-
fileName:
|
|
4648
|
-
brandId:
|
|
4649
|
-
themeId:
|
|
4650
|
-
cloud:
|
|
4651
|
-
tokenStudio:
|
|
4652
|
-
upload:
|
|
4653
|
-
remoteId:
|
|
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:
|
|
4659
|
+
lastImportedAt: z163.date().optional(),
|
|
4656
4660
|
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
4657
4661
|
}),
|
|
4658
|
-
figmaVariablesPlugin:
|
|
4659
|
-
fileId:
|
|
4660
|
-
lastImportedAt:
|
|
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 =
|
|
4668
|
+
var DTODataSource = z163.discriminatedUnion("type", [
|
|
4665
4669
|
DTODataSourceFigma,
|
|
4666
4670
|
DTODataSourceFigmaVariablesPlugin,
|
|
4667
4671
|
DTODataSourceTokenStudio
|
|
4668
4672
|
]);
|
|
4669
|
-
var DTODataSourcesListResponse =
|
|
4670
|
-
sources:
|
|
4673
|
+
var DTODataSourcesListResponse = z163.object({
|
|
4674
|
+
sources: z163.array(DTODataSource)
|
|
4671
4675
|
});
|
|
4672
|
-
var DTODataSourceCreationResponse =
|
|
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
|
|
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:
|
|
4688
|
+
docExporterId: z164.string()
|
|
4685
4689
|
});
|
|
4686
4690
|
|
|
4687
4691
|
// src/api/dto/design-systems/exporter-property.ts
|
|
4688
|
-
import { z as
|
|
4689
|
-
var DTOExporterProperty =
|
|
4690
|
-
var DTOExporterPropertyListResponse =
|
|
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
|
|
4697
|
+
import { z as z174 } from "zod";
|
|
4694
4698
|
|
|
4695
4699
|
// src/api/payloads/design-systems/brand.ts
|
|
4696
|
-
import { z as
|
|
4697
|
-
var DTOCreateBrandInput =
|
|
4698
|
-
persistentId:
|
|
4699
|
-
meta:
|
|
4700
|
-
name:
|
|
4701
|
-
description:
|
|
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
|
|
4707
|
-
var ObjectMeta2 =
|
|
4708
|
-
name:
|
|
4709
|
-
description:
|
|
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 =
|
|
4719
|
+
var DTOCreateVersionInput = z167.object({
|
|
4716
4720
|
meta: ObjectMeta2,
|
|
4717
|
-
version:
|
|
4721
|
+
version: z167.string().refine(validateDesignSystemVersion, {
|
|
4718
4722
|
message: "Invalid semantic versioning format"
|
|
4719
4723
|
}),
|
|
4720
|
-
changeLog:
|
|
4724
|
+
changeLog: z167.string().optional()
|
|
4721
4725
|
});
|
|
4722
|
-
var DTOUpdateVersionInput =
|
|
4726
|
+
var DTOUpdateVersionInput = z167.object({
|
|
4723
4727
|
meta: ObjectMeta2,
|
|
4724
|
-
version:
|
|
4728
|
+
version: z167.string(),
|
|
4725
4729
|
// required for PUT, but not editable
|
|
4726
|
-
changeLog:
|
|
4730
|
+
changeLog: z167.string()
|
|
4727
4731
|
});
|
|
4728
4732
|
|
|
4729
4733
|
// src/api/payloads/documentation/block-definitions.ts
|
|
4730
|
-
import { z as
|
|
4731
|
-
var DTOGetBlockDefinitionsOutput =
|
|
4732
|
-
definitions:
|
|
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
|
|
4737
|
-
var DTOPipelineCreateBody =
|
|
4738
|
-
name:
|
|
4739
|
-
exporterId:
|
|
4740
|
-
designSystemId:
|
|
4741
|
-
isEnabled:
|
|
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:
|
|
4744
|
-
themePersistentId:
|
|
4747
|
+
brandPersistentId: z169.string().optional(),
|
|
4748
|
+
themePersistentId: z169.string().optional(),
|
|
4745
4749
|
destination: PipelineDestinationType.optional(),
|
|
4746
4750
|
gitQuery: GitObjectsQuery,
|
|
4747
|
-
destinations:
|
|
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:
|
|
4758
|
+
webhookUrl: z169.string().nullish()
|
|
4755
4759
|
})
|
|
4756
4760
|
});
|
|
4757
4761
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
4758
|
-
id:
|
|
4762
|
+
id: z169.string()
|
|
4759
4763
|
});
|
|
4760
|
-
var DTOPipelineTriggerBody =
|
|
4761
|
-
designSystemVersionId:
|
|
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
|
|
4766
|
-
var DTOLiveblocksAuthRequest =
|
|
4767
|
-
room:
|
|
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
|
|
4772
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
4775
|
+
import { z as z171 } from "zod";
|
|
4776
|
+
var DTOUpdateUserNotificationSettingsPayload = z171.object({
|
|
4773
4777
|
notificationSettings: UserNotificationSettings
|
|
4774
4778
|
});
|
|
4775
|
-
var DTOUserNotificationSettingsResponse =
|
|
4776
|
-
userId:
|
|
4777
|
-
workspaceId:
|
|
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
|
|
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 =
|
|
4809
|
-
enabledScopes:
|
|
4810
|
-
customRegistryUrl:
|
|
4811
|
-
bypassProxy:
|
|
4812
|
-
npmProxyRegistryConfigId:
|
|
4813
|
-
npmProxyVersion:
|
|
4814
|
-
registryType:
|
|
4815
|
-
authType:
|
|
4816
|
-
authHeaderName:
|
|
4817
|
-
authHeaderValue:
|
|
4818
|
-
accessToken:
|
|
4819
|
-
username:
|
|
4820
|
-
password:
|
|
4821
|
-
});
|
|
4822
|
-
var WorkspaceConfigurationPayload =
|
|
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
|
|
4831
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
4834
|
+
import { z as z173 } from "zod";
|
|
4835
|
+
var DTOWorkspaceIntegrationOauthInput = z173.object({
|
|
4832
4836
|
type: IntegrationType
|
|
4833
4837
|
});
|
|
4834
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
4835
|
-
userId:
|
|
4838
|
+
var DTOWorkspaceIntegrationPATInput = z173.object({
|
|
4839
|
+
userId: z173.string(),
|
|
4836
4840
|
type: IntegrationType,
|
|
4837
4841
|
token: IntegrationToken
|
|
4838
4842
|
});
|
|
4839
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
4840
|
-
organization:
|
|
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:
|
|
4846
|
+
project: z173.string().optional(),
|
|
4843
4847
|
// Only for Bitbucket and Azure
|
|
4844
|
-
repository:
|
|
4848
|
+
repository: z173.string().optional(),
|
|
4845
4849
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
4846
|
-
branch:
|
|
4850
|
+
branch: z173.string().optional(),
|
|
4847
4851
|
// For all providers, useful for PR creations.
|
|
4848
|
-
user:
|
|
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 =
|
|
4854
|
-
id:
|
|
4855
|
-
createdAt:
|
|
4857
|
+
var DTODesignSystemVersion = z174.object({
|
|
4858
|
+
id: z174.string(),
|
|
4859
|
+
createdAt: z174.date(),
|
|
4856
4860
|
meta: ObjectMeta,
|
|
4857
|
-
version:
|
|
4858
|
-
isReadonly:
|
|
4859
|
-
changeLog:
|
|
4860
|
-
designSystemId:
|
|
4861
|
+
version: z174.string(),
|
|
4862
|
+
isReadonly: z174.boolean(),
|
|
4863
|
+
changeLog: z174.string(),
|
|
4864
|
+
designSystemId: z174.string()
|
|
4861
4865
|
});
|
|
4862
|
-
var DTODesignSystemVersionsListResponse =
|
|
4863
|
-
designSystemVersions:
|
|
4866
|
+
var DTODesignSystemVersionsListResponse = z174.object({
|
|
4867
|
+
designSystemVersions: z174.array(DTODesignSystemVersion)
|
|
4864
4868
|
});
|
|
4865
|
-
var DTODesignSystemVersionGetResponse =
|
|
4869
|
+
var DTODesignSystemVersionGetResponse = z174.object({
|
|
4866
4870
|
designSystemVersion: DTODesignSystemVersion
|
|
4867
4871
|
});
|
|
4868
|
-
var DTODesignSystemVersionCreationResponse =
|
|
4872
|
+
var DTODesignSystemVersionCreationResponse = z174.object({
|
|
4869
4873
|
meta: ObjectMeta,
|
|
4870
|
-
version:
|
|
4871
|
-
changeLog:
|
|
4872
|
-
isReadOnly:
|
|
4873
|
-
designSystemId:
|
|
4874
|
-
jobId:
|
|
4875
|
-
});
|
|
4876
|
-
var VersionSQSPayload =
|
|
4877
|
-
jobId:
|
|
4878
|
-
designSystemId:
|
|
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 =
|
|
4882
|
-
jobs:
|
|
4885
|
+
var DTODesignSystemVersionJobsResponse = z174.object({
|
|
4886
|
+
jobs: z174.array(VersionCreationJob)
|
|
4883
4887
|
});
|
|
4884
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
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
|
|
4890
|
-
var DTOElementViewColumnSharedAttributes =
|
|
4891
|
-
id:
|
|
4892
|
-
persistentId:
|
|
4893
|
-
width:
|
|
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:
|
|
4900
|
+
type: z175.literal("BaseProperty"),
|
|
4897
4901
|
basePropertyType: ElementViewBaseColumnType
|
|
4898
4902
|
});
|
|
4899
4903
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
4900
|
-
type:
|
|
4901
|
-
propertyDefinitionId:
|
|
4904
|
+
type: z175.literal("PropertyDefinition"),
|
|
4905
|
+
propertyDefinitionId: z175.string()
|
|
4902
4906
|
});
|
|
4903
4907
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
4904
|
-
type:
|
|
4905
|
-
themeId:
|
|
4908
|
+
type: z175.literal("Theme"),
|
|
4909
|
+
themeId: z175.string()
|
|
4906
4910
|
});
|
|
4907
|
-
var DTOElementViewColumn =
|
|
4911
|
+
var DTOElementViewColumn = z175.discriminatedUnion("type", [
|
|
4908
4912
|
DTOElementViewBasePropertyColumn,
|
|
4909
4913
|
DTOElementViewPropertyDefinitionColumn,
|
|
4910
4914
|
DTOElementViewThemeColumn
|
|
4911
4915
|
]);
|
|
4912
|
-
var DTOElementView =
|
|
4916
|
+
var DTOElementView = z175.object({
|
|
4913
4917
|
meta: ObjectMeta,
|
|
4914
|
-
persistentId:
|
|
4918
|
+
persistentId: z175.string(),
|
|
4915
4919
|
targetElementType: ElementPropertyTargetType,
|
|
4916
|
-
id:
|
|
4917
|
-
isDefault:
|
|
4918
|
-
columns:
|
|
4920
|
+
id: z175.string(),
|
|
4921
|
+
isDefault: z175.boolean(),
|
|
4922
|
+
columns: z175.array(DTOElementViewColumn)
|
|
4919
4923
|
});
|
|
4920
|
-
var DTOElementViewsListResponse =
|
|
4921
|
-
elementDataViews:
|
|
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
|
|
4929
|
+
import { z as z176 } from "zod";
|
|
4926
4930
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
4927
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
4928
|
-
anchors:
|
|
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
|
|
4933
|
-
var DTODocumentationLinkPreviewResponse =
|
|
4936
|
+
import { z as z177 } from "zod";
|
|
4937
|
+
var DTODocumentationLinkPreviewResponse = z177.object({
|
|
4934
4938
|
linkPreview: DocumentationLinkPreview
|
|
4935
4939
|
});
|
|
4936
|
-
var DTODocumentationLinkPreviewRequest =
|
|
4937
|
-
url:
|
|
4938
|
-
documentationItemPersistentId:
|
|
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
|
|
4946
|
+
import { z as z180 } from "zod";
|
|
4943
4947
|
|
|
4944
4948
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
4945
|
-
import { z as
|
|
4949
|
+
import { z as z179 } from "zod";
|
|
4946
4950
|
|
|
4947
4951
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
4948
|
-
import { z as
|
|
4952
|
+
import { z as z178 } from "zod";
|
|
4949
4953
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
4950
|
-
var DTODocumentationItemConfigurationV2 =
|
|
4951
|
-
showSidebar:
|
|
4952
|
-
isPrivate:
|
|
4953
|
-
isHidden:
|
|
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:
|
|
4968
|
-
isRoot:
|
|
4969
|
-
childrenIds:
|
|
4971
|
+
title: z179.string(),
|
|
4972
|
+
isRoot: z179.boolean(),
|
|
4973
|
+
childrenIds: z179.array(z179.string()),
|
|
4970
4974
|
groupBehavior: DocumentationGroupBehavior,
|
|
4971
|
-
shortPersistentId:
|
|
4975
|
+
shortPersistentId: z179.string(),
|
|
4972
4976
|
configuration: DTODocumentationItemConfigurationV2,
|
|
4973
|
-
type:
|
|
4977
|
+
type: z179.literal("Group")
|
|
4974
4978
|
});
|
|
4975
4979
|
var DTODocumentationGroupStructureV2 = DTODocumentationGroupV2;
|
|
4976
|
-
var DTOCreateDocumentationGroupInput =
|
|
4980
|
+
var DTOCreateDocumentationGroupInput = z179.object({
|
|
4977
4981
|
// Identifier
|
|
4978
|
-
persistentId:
|
|
4982
|
+
persistentId: z179.string().uuid(),
|
|
4979
4983
|
// Group properties
|
|
4980
|
-
title:
|
|
4984
|
+
title: z179.string(),
|
|
4981
4985
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
4982
4986
|
// Group placement properties
|
|
4983
|
-
afterPersistentId:
|
|
4984
|
-
parentPersistentId:
|
|
4987
|
+
afterPersistentId: z179.string().uuid().nullish(),
|
|
4988
|
+
parentPersistentId: z179.string().uuid()
|
|
4985
4989
|
});
|
|
4986
|
-
var DTOUpdateDocumentationGroupInput =
|
|
4990
|
+
var DTOUpdateDocumentationGroupInput = z179.object({
|
|
4987
4991
|
// Identifier of the group to update
|
|
4988
|
-
id:
|
|
4992
|
+
id: z179.string(),
|
|
4989
4993
|
// Group properties
|
|
4990
|
-
title:
|
|
4994
|
+
title: z179.string().optional(),
|
|
4991
4995
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
4992
4996
|
});
|
|
4993
|
-
var DTOMoveDocumentationGroupInput =
|
|
4997
|
+
var DTOMoveDocumentationGroupInput = z179.object({
|
|
4994
4998
|
// Identifier of the group to update
|
|
4995
|
-
id:
|
|
4999
|
+
id: z179.string(),
|
|
4996
5000
|
// Group placement properties
|
|
4997
|
-
parentPersistentId:
|
|
4998
|
-
afterPersistentId:
|
|
5001
|
+
parentPersistentId: z179.string().uuid(),
|
|
5002
|
+
afterPersistentId: z179.string().uuid().nullish()
|
|
4999
5003
|
});
|
|
5000
|
-
var DTODuplicateDocumentationGroupInput =
|
|
5004
|
+
var DTODuplicateDocumentationGroupInput = z179.object({
|
|
5001
5005
|
// Identifier of the group to duplicate from
|
|
5002
|
-
id:
|
|
5006
|
+
id: z179.string(),
|
|
5003
5007
|
// New group persistent id
|
|
5004
|
-
persistentId:
|
|
5008
|
+
persistentId: z179.string().uuid(),
|
|
5005
5009
|
// Group placement properties
|
|
5006
|
-
afterPersistentId:
|
|
5007
|
-
parentPersistentId:
|
|
5010
|
+
afterPersistentId: z179.string().uuid().nullish(),
|
|
5011
|
+
parentPersistentId: z179.string().uuid()
|
|
5008
5012
|
});
|
|
5009
|
-
var DTOCreateDocumentationTabInput =
|
|
5013
|
+
var DTOCreateDocumentationTabInput = z179.object({
|
|
5010
5014
|
// New group persistent id
|
|
5011
|
-
persistentId:
|
|
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:
|
|
5015
|
-
tabName:
|
|
5018
|
+
fromItemPersistentId: z179.string(),
|
|
5019
|
+
tabName: z179.string()
|
|
5016
5020
|
});
|
|
5017
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
5021
|
+
var DTODeleteDocumentationTabGroupInput = z179.object({
|
|
5018
5022
|
// Deleted group id
|
|
5019
|
-
id:
|
|
5023
|
+
id: z179.string()
|
|
5020
5024
|
});
|
|
5021
|
-
var DTODeleteDocumentationGroupInput =
|
|
5025
|
+
var DTODeleteDocumentationGroupInput = z179.object({
|
|
5022
5026
|
// Identifier
|
|
5023
|
-
id:
|
|
5027
|
+
id: z179.string(),
|
|
5024
5028
|
// Deletion options
|
|
5025
|
-
deleteSubtree:
|
|
5029
|
+
deleteSubtree: z179.boolean().default(false)
|
|
5026
5030
|
});
|
|
5027
5031
|
|
|
5028
5032
|
// src/api/dto/elements/documentation/group-action.ts
|
|
5029
|
-
var SuccessPayload =
|
|
5030
|
-
success:
|
|
5033
|
+
var SuccessPayload = z180.object({
|
|
5034
|
+
success: z180.literal(true)
|
|
5031
5035
|
});
|
|
5032
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
5033
|
-
type:
|
|
5036
|
+
var DTODocumentationGroupCreateActionOutputV2 = z180.object({
|
|
5037
|
+
type: z180.literal("DocumentationGroupCreate"),
|
|
5034
5038
|
output: SuccessPayload
|
|
5035
5039
|
});
|
|
5036
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
5037
|
-
type:
|
|
5040
|
+
var DTODocumentationTabCreateActionOutputV2 = z180.object({
|
|
5041
|
+
type: z180.literal("DocumentationTabCreate"),
|
|
5038
5042
|
output: SuccessPayload
|
|
5039
5043
|
});
|
|
5040
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
5041
|
-
type:
|
|
5044
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z180.object({
|
|
5045
|
+
type: z180.literal("DocumentationGroupUpdate"),
|
|
5042
5046
|
output: SuccessPayload
|
|
5043
5047
|
});
|
|
5044
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
5045
|
-
type:
|
|
5048
|
+
var DTODocumentationGroupMoveActionOutputV2 = z180.object({
|
|
5049
|
+
type: z180.literal("DocumentationGroupMove"),
|
|
5046
5050
|
output: SuccessPayload
|
|
5047
5051
|
});
|
|
5048
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
5049
|
-
type:
|
|
5052
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z180.object({
|
|
5053
|
+
type: z180.literal("DocumentationGroupDuplicate"),
|
|
5050
5054
|
output: SuccessPayload
|
|
5051
5055
|
});
|
|
5052
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
5053
|
-
type:
|
|
5056
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z180.object({
|
|
5057
|
+
type: z180.literal("DocumentationGroupDelete"),
|
|
5054
5058
|
output: SuccessPayload
|
|
5055
5059
|
});
|
|
5056
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
5057
|
-
type:
|
|
5060
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z180.object({
|
|
5061
|
+
type: z180.literal("DocumentationTabGroupDelete"),
|
|
5058
5062
|
output: SuccessPayload
|
|
5059
5063
|
});
|
|
5060
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
5061
|
-
type:
|
|
5064
|
+
var DTODocumentationGroupCreateActionInputV2 = z180.object({
|
|
5065
|
+
type: z180.literal("DocumentationGroupCreate"),
|
|
5062
5066
|
input: DTOCreateDocumentationGroupInput
|
|
5063
5067
|
});
|
|
5064
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
5065
|
-
type:
|
|
5068
|
+
var DTODocumentationTabCreateActionInputV2 = z180.object({
|
|
5069
|
+
type: z180.literal("DocumentationTabCreate"),
|
|
5066
5070
|
input: DTOCreateDocumentationTabInput
|
|
5067
5071
|
});
|
|
5068
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
5069
|
-
type:
|
|
5072
|
+
var DTODocumentationGroupUpdateActionInputV2 = z180.object({
|
|
5073
|
+
type: z180.literal("DocumentationGroupUpdate"),
|
|
5070
5074
|
input: DTOUpdateDocumentationGroupInput
|
|
5071
5075
|
});
|
|
5072
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
5073
|
-
type:
|
|
5076
|
+
var DTODocumentationGroupMoveActionInputV2 = z180.object({
|
|
5077
|
+
type: z180.literal("DocumentationGroupMove"),
|
|
5074
5078
|
input: DTOMoveDocumentationGroupInput
|
|
5075
5079
|
});
|
|
5076
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
5077
|
-
type:
|
|
5080
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z180.object({
|
|
5081
|
+
type: z180.literal("DocumentationGroupDuplicate"),
|
|
5078
5082
|
input: DTODuplicateDocumentationGroupInput
|
|
5079
5083
|
});
|
|
5080
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
5081
|
-
type:
|
|
5084
|
+
var DTODocumentationGroupDeleteActionInputV2 = z180.object({
|
|
5085
|
+
type: z180.literal("DocumentationGroupDelete"),
|
|
5082
5086
|
input: DTODeleteDocumentationGroupInput
|
|
5083
5087
|
});
|
|
5084
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
5085
|
-
type:
|
|
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
|
|
5094
|
+
import { z as z182 } from "zod";
|
|
5091
5095
|
|
|
5092
5096
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
5093
|
-
import { z as
|
|
5094
|
-
var DocumentationColorV1 =
|
|
5095
|
-
aliasTo:
|
|
5096
|
-
value:
|
|
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 =
|
|
5106
|
-
showSidebar:
|
|
5107
|
-
isPrivate:
|
|
5108
|
-
isHidden:
|
|
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:
|
|
5123
|
-
isRoot:
|
|
5124
|
-
childrenIds:
|
|
5126
|
+
title: z182.string(),
|
|
5127
|
+
isRoot: z182.boolean(),
|
|
5128
|
+
childrenIds: z182.array(z182.string()),
|
|
5125
5129
|
groupBehavior: DocumentationGroupBehavior,
|
|
5126
|
-
shortPersistentId:
|
|
5127
|
-
type:
|
|
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
|
|
5138
|
+
import { z as z184 } from "zod";
|
|
5135
5139
|
|
|
5136
5140
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5137
|
-
import { z as
|
|
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:
|
|
5145
|
-
path:
|
|
5146
|
-
type:
|
|
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 =
|
|
5151
|
-
pages:
|
|
5152
|
-
groups:
|
|
5154
|
+
var DTODocumentationHierarchyV2 = z183.object({
|
|
5155
|
+
pages: z183.array(DTODocumentationPageStructureV2),
|
|
5156
|
+
groups: z183.array(DTODocumentationGroupStructureV2)
|
|
5153
5157
|
});
|
|
5154
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
5158
|
+
var DTOCreateDocumentationPageInputV2 = z183.object({
|
|
5155
5159
|
// Identifier
|
|
5156
|
-
persistentId:
|
|
5160
|
+
persistentId: z183.string().uuid(),
|
|
5157
5161
|
// Page properties
|
|
5158
|
-
title:
|
|
5162
|
+
title: z183.string(),
|
|
5159
5163
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5160
5164
|
// Page placement properties
|
|
5161
|
-
parentPersistentId:
|
|
5162
|
-
afterPersistentId:
|
|
5165
|
+
parentPersistentId: z183.string().uuid(),
|
|
5166
|
+
afterPersistentId: z183.string().uuid().nullish()
|
|
5163
5167
|
});
|
|
5164
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
5168
|
+
var DTOUpdateDocumentationPageInputV2 = z183.object({
|
|
5165
5169
|
// Identifier of the group to update
|
|
5166
|
-
id:
|
|
5170
|
+
id: z183.string(),
|
|
5167
5171
|
// Page properties
|
|
5168
|
-
title:
|
|
5172
|
+
title: z183.string().optional(),
|
|
5169
5173
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5170
5174
|
});
|
|
5171
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
5175
|
+
var DTOMoveDocumentationPageInputV2 = z183.object({
|
|
5172
5176
|
// Identifier of the group to update
|
|
5173
|
-
id:
|
|
5177
|
+
id: z183.string(),
|
|
5174
5178
|
// Page placement properties
|
|
5175
|
-
parentPersistentId:
|
|
5176
|
-
afterPersistentId:
|
|
5179
|
+
parentPersistentId: z183.string().uuid(),
|
|
5180
|
+
afterPersistentId: z183.string().uuid().nullish()
|
|
5177
5181
|
});
|
|
5178
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
5182
|
+
var DTODuplicateDocumentationPageInputV2 = z183.object({
|
|
5179
5183
|
// Identifier of the page to duplicate from
|
|
5180
|
-
id:
|
|
5184
|
+
id: z183.string(),
|
|
5181
5185
|
// New page persistent id
|
|
5182
|
-
persistentId:
|
|
5186
|
+
persistentId: z183.string().uuid(),
|
|
5183
5187
|
// Page placement properties
|
|
5184
|
-
parentPersistentId:
|
|
5185
|
-
afterPersistentId:
|
|
5188
|
+
parentPersistentId: z183.string().uuid(),
|
|
5189
|
+
afterPersistentId: z183.string().uuid().nullish()
|
|
5186
5190
|
});
|
|
5187
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
5191
|
+
var DTODeleteDocumentationPageInputV2 = z183.object({
|
|
5188
5192
|
// Identifier
|
|
5189
|
-
id:
|
|
5193
|
+
id: z183.string()
|
|
5190
5194
|
});
|
|
5191
5195
|
|
|
5192
5196
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
5193
|
-
var SuccessPayload2 =
|
|
5194
|
-
success:
|
|
5197
|
+
var SuccessPayload2 = z184.object({
|
|
5198
|
+
success: z184.literal(true)
|
|
5195
5199
|
});
|
|
5196
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
5197
|
-
type:
|
|
5200
|
+
var DTODocumentationPageCreateActionOutputV2 = z184.object({
|
|
5201
|
+
type: z184.literal("DocumentationPageCreate"),
|
|
5198
5202
|
output: SuccessPayload2
|
|
5199
5203
|
});
|
|
5200
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
5201
|
-
type:
|
|
5204
|
+
var DTODocumentationPageUpdateActionOutputV2 = z184.object({
|
|
5205
|
+
type: z184.literal("DocumentationPageUpdate"),
|
|
5202
5206
|
output: SuccessPayload2
|
|
5203
5207
|
});
|
|
5204
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
5205
|
-
type:
|
|
5208
|
+
var DTODocumentationPageMoveActionOutputV2 = z184.object({
|
|
5209
|
+
type: z184.literal("DocumentationPageMove"),
|
|
5206
5210
|
output: SuccessPayload2
|
|
5207
5211
|
});
|
|
5208
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
5209
|
-
type:
|
|
5212
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z184.object({
|
|
5213
|
+
type: z184.literal("DocumentationPageDuplicate"),
|
|
5210
5214
|
output: SuccessPayload2
|
|
5211
5215
|
});
|
|
5212
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
5213
|
-
type:
|
|
5216
|
+
var DTODocumentationPageDeleteActionOutputV2 = z184.object({
|
|
5217
|
+
type: z184.literal("DocumentationPageDelete"),
|
|
5214
5218
|
output: SuccessPayload2
|
|
5215
5219
|
});
|
|
5216
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
5217
|
-
type:
|
|
5220
|
+
var DTODocumentationPageCreateActionInputV2 = z184.object({
|
|
5221
|
+
type: z184.literal("DocumentationPageCreate"),
|
|
5218
5222
|
input: DTOCreateDocumentationPageInputV2
|
|
5219
5223
|
});
|
|
5220
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
5221
|
-
type:
|
|
5224
|
+
var DTODocumentationPageUpdateActionInputV2 = z184.object({
|
|
5225
|
+
type: z184.literal("DocumentationPageUpdate"),
|
|
5222
5226
|
input: DTOUpdateDocumentationPageInputV2
|
|
5223
5227
|
});
|
|
5224
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
5225
|
-
type:
|
|
5228
|
+
var DTODocumentationPageMoveActionInputV2 = z184.object({
|
|
5229
|
+
type: z184.literal("DocumentationPageMove"),
|
|
5226
5230
|
input: DTOMoveDocumentationPageInputV2
|
|
5227
5231
|
});
|
|
5228
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
5229
|
-
type:
|
|
5232
|
+
var DTODocumentationPageDuplicateActionInputV2 = z184.object({
|
|
5233
|
+
type: z184.literal("DocumentationPageDuplicate"),
|
|
5230
5234
|
input: DTODuplicateDocumentationPageInputV2
|
|
5231
5235
|
});
|
|
5232
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
5233
|
-
type:
|
|
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
|
|
5242
|
+
import { z as z185 } from "zod";
|
|
5239
5243
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
5240
|
-
var DTODocumentationPageContentGetResponse =
|
|
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
|
|
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:
|
|
5254
|
-
title:
|
|
5255
|
-
path:
|
|
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
|
|
5260
|
-
var DTOFigmaNodeOrigin =
|
|
5261
|
-
sourceId:
|
|
5262
|
-
fileId:
|
|
5263
|
-
parentName:
|
|
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 =
|
|
5269
|
+
var DTOFigmaNodeData = z187.object({
|
|
5266
5270
|
// Id of the node in the Figma file
|
|
5267
|
-
figmaNodeId:
|
|
5271
|
+
figmaNodeId: z187.string(),
|
|
5268
5272
|
// Validity
|
|
5269
|
-
isValid:
|
|
5273
|
+
isValid: z187.boolean(),
|
|
5270
5274
|
// Asset data
|
|
5271
|
-
assetId:
|
|
5272
|
-
assetUrl:
|
|
5275
|
+
assetId: z187.string(),
|
|
5276
|
+
assetUrl: z187.string(),
|
|
5273
5277
|
// Asset metadata
|
|
5274
|
-
assetScale:
|
|
5275
|
-
assetWidth:
|
|
5276
|
-
assetHeight:
|
|
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 =
|
|
5289
|
+
var DTOFigmaNodeRenderInput = z187.object({
|
|
5286
5290
|
// Id of a design system's data source representing a linked Figma file
|
|
5287
|
-
sourceId:
|
|
5291
|
+
sourceId: z187.string(),
|
|
5288
5292
|
// Id of a node within the Figma file
|
|
5289
|
-
figmaFileNodeId:
|
|
5293
|
+
figmaFileNodeId: z187.string()
|
|
5290
5294
|
});
|
|
5291
5295
|
|
|
5292
5296
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
5293
|
-
import { z as
|
|
5294
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
5295
|
-
type:
|
|
5296
|
-
figmaNodes:
|
|
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 =
|
|
5299
|
-
type:
|
|
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
|
|
5308
|
+
import { z as z190 } from "zod";
|
|
5305
5309
|
|
|
5306
5310
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
5307
|
-
import { z as
|
|
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 =
|
|
5310
|
-
id:
|
|
5311
|
-
designSystemVersionId:
|
|
5313
|
+
var DTOElementPropertyDefinition = z189.object({
|
|
5314
|
+
id: z189.string(),
|
|
5315
|
+
designSystemVersionId: z189.string(),
|
|
5312
5316
|
meta: ObjectMeta,
|
|
5313
|
-
persistentId:
|
|
5317
|
+
persistentId: z189.string(),
|
|
5314
5318
|
type: ElementPropertyTypeSchema,
|
|
5315
5319
|
targetElementType: ElementPropertyTargetType,
|
|
5316
|
-
codeName:
|
|
5317
|
-
options:
|
|
5320
|
+
codeName: z189.string().regex(CODE_NAME_REGEX2),
|
|
5321
|
+
options: z189.array(ElementPropertyDefinitionOption).optional(),
|
|
5318
5322
|
linkElementType: ElementPropertyLinkType.optional()
|
|
5319
5323
|
});
|
|
5320
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
5321
|
-
definitions:
|
|
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 =
|
|
5328
|
-
id:
|
|
5329
|
-
name:
|
|
5330
|
-
description:
|
|
5331
|
-
codeName:
|
|
5332
|
-
options:
|
|
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 =
|
|
5335
|
-
id:
|
|
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 =
|
|
5340
|
-
success:
|
|
5343
|
+
var SuccessPayload3 = z190.object({
|
|
5344
|
+
success: z190.literal(true)
|
|
5341
5345
|
});
|
|
5342
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
5343
|
-
type:
|
|
5346
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z190.object({
|
|
5347
|
+
type: z190.literal("PropertyDefinitionCreate"),
|
|
5344
5348
|
definition: DTOElementPropertyDefinition
|
|
5345
5349
|
});
|
|
5346
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
5347
|
-
type:
|
|
5350
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z190.object({
|
|
5351
|
+
type: z190.literal("PropertyDefinitionUpdate"),
|
|
5348
5352
|
definition: DTOElementPropertyDefinition
|
|
5349
5353
|
});
|
|
5350
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
5351
|
-
type:
|
|
5354
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z190.object({
|
|
5355
|
+
type: z190.literal("PropertyDefinitionDelete"),
|
|
5352
5356
|
output: SuccessPayload3
|
|
5353
5357
|
});
|
|
5354
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
5355
|
-
type:
|
|
5358
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z190.object({
|
|
5359
|
+
type: z190.literal("PropertyDefinitionCreate"),
|
|
5356
5360
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
5357
5361
|
});
|
|
5358
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
5359
|
-
type:
|
|
5362
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z190.object({
|
|
5363
|
+
type: z190.literal("PropertyDefinitionUpdate"),
|
|
5360
5364
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
5361
5365
|
});
|
|
5362
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
5363
|
-
type:
|
|
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
|
|
5369
|
-
var DTOElementPropertyValue =
|
|
5370
|
-
id:
|
|
5371
|
-
designSystemVersionId:
|
|
5372
|
-
definitionId:
|
|
5373
|
-
targetElementId:
|
|
5374
|
-
value:
|
|
5375
|
-
valuePreview:
|
|
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 =
|
|
5378
|
-
values:
|
|
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
|
|
5383
|
-
var DTOElementActionOutput =
|
|
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 =
|
|
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
|
|
5430
|
-
var DTOElementsGetTypeFilter =
|
|
5431
|
-
var DTOElementsGetQuerySchema =
|
|
5432
|
-
types:
|
|
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 =
|
|
5435
|
-
figmaNodes:
|
|
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
|
|
5440
|
-
var DTOExporterType =
|
|
5441
|
-
var DTOExporterSource =
|
|
5442
|
-
var DTOExporterMembershipRole =
|
|
5443
|
-
var DTOExporter =
|
|
5444
|
-
id:
|
|
5445
|
-
name:
|
|
5446
|
-
isPrivate:
|
|
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:
|
|
5449
|
-
iconURL:
|
|
5452
|
+
isDefaultDocumentationExporter: z194.boolean(),
|
|
5453
|
+
iconURL: z194.string().optional(),
|
|
5450
5454
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
5451
5455
|
customBlocks: PulsarCustomBlock.array(),
|
|
5452
|
-
blockVariants:
|
|
5453
|
-
usesBrands:
|
|
5454
|
-
usesThemes:
|
|
5456
|
+
blockVariants: z194.record(z194.string(), PulsarContributionVariant.array()),
|
|
5457
|
+
usesBrands: z194.boolean(),
|
|
5458
|
+
usesThemes: z194.boolean(),
|
|
5455
5459
|
source: DTOExporterSource,
|
|
5456
|
-
gitUrl:
|
|
5457
|
-
gitBranch:
|
|
5458
|
-
gitDirectory:
|
|
5460
|
+
gitUrl: z194.string().optional(),
|
|
5461
|
+
gitBranch: z194.string().optional(),
|
|
5462
|
+
gitDirectory: z194.string().optional()
|
|
5459
5463
|
});
|
|
5460
|
-
var DTOExporterMembership =
|
|
5461
|
-
workspaceId:
|
|
5462
|
-
exporterId:
|
|
5464
|
+
var DTOExporterMembership = z194.object({
|
|
5465
|
+
workspaceId: z194.string(),
|
|
5466
|
+
exporterId: z194.string(),
|
|
5463
5467
|
role: DTOExporterMembershipRole
|
|
5464
5468
|
});
|
|
5465
|
-
var DTOExporterCreateOutput =
|
|
5469
|
+
var DTOExporterCreateOutput = z194.object({
|
|
5466
5470
|
exporter: DTOExporter,
|
|
5467
5471
|
membership: DTOExporterMembership
|
|
5468
5472
|
});
|
|
5469
|
-
var DTOExporterGitProviderEnum =
|
|
5470
|
-
var DTOExporterCreateInput =
|
|
5471
|
-
url:
|
|
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 =
|
|
5475
|
-
url:
|
|
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
|
|
5480
|
-
var DTOExportJobCreatedBy =
|
|
5481
|
-
userId:
|
|
5482
|
-
userName:
|
|
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 =
|
|
5485
|
-
id:
|
|
5488
|
+
var DTOExportJobDesignSystemPreview = z195.object({
|
|
5489
|
+
id: z195.string(),
|
|
5486
5490
|
meta: ObjectMeta
|
|
5487
5491
|
});
|
|
5488
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
5489
|
-
id:
|
|
5492
|
+
var DTOExportJobDesignSystemVersionPreview = z195.object({
|
|
5493
|
+
id: z195.string(),
|
|
5490
5494
|
meta: ObjectMeta,
|
|
5491
|
-
version:
|
|
5492
|
-
isReadonly:
|
|
5495
|
+
version: z195.string(),
|
|
5496
|
+
isReadonly: z195.boolean()
|
|
5493
5497
|
});
|
|
5494
|
-
var DTOExportJobDestinations =
|
|
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:
|
|
5505
|
+
webhookUrl: z195.string().optional()
|
|
5502
5506
|
});
|
|
5503
|
-
var DTOExportJob =
|
|
5504
|
-
id:
|
|
5505
|
-
createdAt:
|
|
5506
|
-
finishedAt:
|
|
5507
|
-
index:
|
|
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:
|
|
5513
|
+
estimatedExecutionTime: z195.number().optional(),
|
|
5510
5514
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
5511
5515
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
5512
5516
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
5513
5517
|
destinations: DTOExportJobDestinations,
|
|
5514
|
-
exporterId:
|
|
5515
|
-
scheduleId:
|
|
5518
|
+
exporterId: z195.string(),
|
|
5519
|
+
scheduleId: z195.string().optional(),
|
|
5516
5520
|
result: ExportJobResult.optional(),
|
|
5517
|
-
brandPersistentId:
|
|
5518
|
-
themePersistentId:
|
|
5521
|
+
brandPersistentId: z195.string().optional(),
|
|
5522
|
+
themePersistentId: z195.string().optional()
|
|
5519
5523
|
});
|
|
5520
|
-
var DTOExportJobResponse =
|
|
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
|
|
5526
|
-
var DTOPipeline =
|
|
5527
|
-
id:
|
|
5528
|
-
name:
|
|
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:
|
|
5531
|
-
workspaceId:
|
|
5532
|
-
designSystemId:
|
|
5533
|
-
exporterId:
|
|
5534
|
-
brandPersistentId:
|
|
5535
|
-
themePersistentId:
|
|
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
|
|
5542
|
-
var DTOLiveblocksAuthResponse =
|
|
5543
|
-
token:
|
|
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
|
|
5548
|
-
var DTOUserProfileUpdateResponse =
|
|
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
|
|
5554
|
-
var DTOGitOrganization =
|
|
5555
|
-
id:
|
|
5556
|
-
name:
|
|
5557
|
-
url:
|
|
5558
|
-
slug:
|
|
5559
|
-
});
|
|
5560
|
-
var DTOGitProject =
|
|
5561
|
-
id:
|
|
5562
|
-
name:
|
|
5563
|
-
url:
|
|
5564
|
-
slug:
|
|
5565
|
-
});
|
|
5566
|
-
var DTOGitRepository =
|
|
5567
|
-
id:
|
|
5568
|
-
name:
|
|
5569
|
-
url:
|
|
5570
|
-
slug:
|
|
5571
|
-
defaultBranch:
|
|
5572
|
-
});
|
|
5573
|
-
var DTOGitBranch =
|
|
5574
|
-
name:
|
|
5575
|
-
lastCommitId:
|
|
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
|
|
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 =
|
|
5585
|
-
id:
|
|
5586
|
-
workspaceId:
|
|
5588
|
+
var DTOIntegration = z200.object({
|
|
5589
|
+
id: z200.string(),
|
|
5590
|
+
workspaceId: z200.string(),
|
|
5587
5591
|
type: ExtendedIntegrationType,
|
|
5588
|
-
createdAt:
|
|
5589
|
-
integrationCredentials:
|
|
5590
|
-
integrationDesignSystems:
|
|
5592
|
+
createdAt: z200.coerce.date(),
|
|
5593
|
+
integrationCredentials: z200.array(DTOIntegrationCredentials).optional(),
|
|
5594
|
+
integrationDesignSystems: z200.array(IntegrationDesignSystem).optional()
|
|
5591
5595
|
});
|
|
5592
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5593
|
-
url:
|
|
5596
|
+
var DTOIntegrationOAuthGetResponse = z200.object({
|
|
5597
|
+
url: z200.string()
|
|
5594
5598
|
});
|
|
5595
|
-
var DTOIntegrationPostResponse =
|
|
5599
|
+
var DTOIntegrationPostResponse = z200.object({
|
|
5596
5600
|
integration: DTOIntegration
|
|
5597
5601
|
});
|
|
5598
|
-
var DTOIntegrationsGetListResponse =
|
|
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
|
|
5607
|
+
import { z as z203 } from "zod";
|
|
5604
5608
|
|
|
5605
5609
|
// src/api/dto/workspaces/workspace.ts
|
|
5606
|
-
import { z as
|
|
5610
|
+
import { z as z202 } from "zod";
|
|
5607
5611
|
|
|
5608
5612
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5609
|
-
import { z as
|
|
5613
|
+
import { z as z201 } from "zod";
|
|
5610
5614
|
var DTONpmRegistryConfigConstants = {
|
|
5611
5615
|
passwordPlaceholder: "redacted"
|
|
5612
5616
|
};
|
|
5613
|
-
var DTONpmRegistryConfig =
|
|
5617
|
+
var DTONpmRegistryConfig = z201.object({
|
|
5614
5618
|
// Registry basic configuration
|
|
5615
5619
|
registryType: NpmRegistryType,
|
|
5616
|
-
registryUrl:
|
|
5617
|
-
customRegistryUrl:
|
|
5620
|
+
registryUrl: z201.string(),
|
|
5621
|
+
customRegistryUrl: z201.string().optional(),
|
|
5618
5622
|
// URL of Supernova NPM packages proxy
|
|
5619
|
-
proxyUrl:
|
|
5623
|
+
proxyUrl: z201.string(),
|
|
5620
5624
|
// Auth configuration
|
|
5621
5625
|
authType: NpmRegistryAuthType,
|
|
5622
|
-
accessToken:
|
|
5623
|
-
username:
|
|
5624
|
-
password:
|
|
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:
|
|
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:
|
|
5633
|
+
bypassProxy: z201.boolean()
|
|
5630
5634
|
});
|
|
5631
5635
|
|
|
5632
5636
|
// src/api/dto/workspaces/workspace.ts
|
|
5633
|
-
var DTOWorkspace =
|
|
5634
|
-
id:
|
|
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 =
|
|
5642
|
-
var DTOUserWorkspaceMembership =
|
|
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 =
|
|
5653
|
-
membership:
|
|
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
|
|
5658
|
-
var DocumentationHierarchySettings =
|
|
5659
|
-
routingVersion:
|
|
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
|
|
5731
|
-
var DTODocumentationPageRoomHeaderData =
|
|
5732
|
-
title:
|
|
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 =
|
|
5736
|
-
title:
|
|
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:
|
|
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
|
|
5798
|
-
var DocumentationPageEditorModel =
|
|
5799
|
-
blocks:
|
|
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
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
9021
|
+
const href = getProsemirrorAttribute(mark, "href", z207.string().optional());
|
|
9018
9022
|
if (!href)
|
|
9019
9023
|
return null;
|
|
9020
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
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",
|
|
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",
|
|
9094
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z207.string().optional());
|
|
9091
9095
|
let columnWidth;
|
|
9092
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
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",
|
|
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
|
-
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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(
|
|
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]);
|