@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.js
CHANGED
|
@@ -137,7 +137,6 @@ var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr)
|
|
|
137
137
|
|
|
138
138
|
|
|
139
139
|
|
|
140
|
-
var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequireDefault(_slugify);
|
|
141
140
|
|
|
142
141
|
|
|
143
142
|
|
|
@@ -147,6 +146,8 @@ var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequire
|
|
|
147
146
|
|
|
148
147
|
|
|
149
148
|
|
|
149
|
+
var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequireDefault(_slugify);
|
|
150
|
+
|
|
150
151
|
|
|
151
152
|
|
|
152
153
|
|
|
@@ -530,9 +531,7 @@ var Asset = _zod.z.object({
|
|
|
530
531
|
origin: AssetOrigin.optional(),
|
|
531
532
|
originKey: _zod.z.string().optional()
|
|
532
533
|
});
|
|
533
|
-
var ResolvedAsset = Asset.
|
|
534
|
-
filePath: true
|
|
535
|
-
}).extend({
|
|
534
|
+
var ResolvedAsset = Asset.extend({
|
|
536
535
|
url: _zod.z.string()
|
|
537
536
|
});
|
|
538
537
|
var TokenDataAliasSchema = _zod.z.object({
|
|
@@ -1751,17 +1750,6 @@ var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
|
|
|
1751
1750
|
overrides: _zod.z.array(ThemeOverride),
|
|
1752
1751
|
codeName: _zod.z.string()
|
|
1753
1752
|
});
|
|
1754
|
-
var FigmaFileDownloadScope = _zod.z.object({
|
|
1755
|
-
styles: _zod.z.boolean(),
|
|
1756
|
-
components: _zod.z.boolean(),
|
|
1757
|
-
currentVersion: _zod.z.literal("__latest__").nullable(),
|
|
1758
|
-
publishedVersion: _zod.z.string().nullable(),
|
|
1759
|
-
downloadChunkSize: _zod.z.number().optional(),
|
|
1760
|
-
maxFileDepth: _zod.z.number().optional()
|
|
1761
|
-
});
|
|
1762
|
-
var FigmaFileAccessData = _zod.z.object({
|
|
1763
|
-
accessToken: _zod.z.string()
|
|
1764
|
-
});
|
|
1765
1753
|
var ImportWarningType = _zod.z.enum([
|
|
1766
1754
|
"NoVersionFound",
|
|
1767
1755
|
"UnsupportedFill",
|
|
@@ -1785,209 +1773,6 @@ var ImportWarning = _zod.z.object({
|
|
|
1785
1773
|
styleName: _zod.z.string().optional(),
|
|
1786
1774
|
unsupportedStyleValueType: _zod.z.string().optional()
|
|
1787
1775
|
});
|
|
1788
|
-
var ImportFunctionInput = _zod.z.object({
|
|
1789
|
-
importJobId: _zod.z.string(),
|
|
1790
|
-
importContextId: _zod.z.string(),
|
|
1791
|
-
designSystemId: _zod.z.string().optional()
|
|
1792
|
-
});
|
|
1793
|
-
var ImportedFigmaSourceData = _zod.z.object({
|
|
1794
|
-
sourceId: _zod.z.string(),
|
|
1795
|
-
figmaRemote: DataSourceFigmaRemote
|
|
1796
|
-
});
|
|
1797
|
-
var FigmaImportBaseContext = _zod.z.object({
|
|
1798
|
-
designSystemId: _zod.z.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: _zod.z.record(FigmaFileAccessData),
|
|
1806
|
-
/**
|
|
1807
|
-
* Figma source data for which import was requested
|
|
1808
|
-
*
|
|
1809
|
-
* sourceId: source data
|
|
1810
|
-
*/
|
|
1811
|
-
importedSourceDataBySourceId: _zod.z.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: _zod.z.record(ImportWarning.array()).default({})
|
|
1817
|
-
});
|
|
1818
|
-
var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
|
|
1819
|
-
sourcesWithMissingAccess: _zod.z.array(_zod.z.string()).default([]),
|
|
1820
|
-
shadowOpacityOptional: _zod.z.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: _zod.z.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: _zod.z.record(ChangedImportedFigmaSourceData)
|
|
1840
|
-
});
|
|
1841
|
-
var ImageImportModelType = _zod.z.enum(["Url", "FigmaRender"]);
|
|
1842
|
-
var ImageImportModelBase = _zod.z.object({
|
|
1843
|
-
scope: AssetScope
|
|
1844
|
-
});
|
|
1845
|
-
var UrlImageImportModel = ImageImportModelBase.extend({
|
|
1846
|
-
type: _zod.z.literal(ImageImportModelType.enum.Url),
|
|
1847
|
-
url: _zod.z.string(),
|
|
1848
|
-
originKey: _zod.z.string(),
|
|
1849
|
-
extension: _zod.z.string()
|
|
1850
|
-
});
|
|
1851
|
-
var FigmaRenderFormat = _zod.z.enum(["Svg", "Png"]);
|
|
1852
|
-
var FigmaRenderBase = ImageImportModelBase.extend({
|
|
1853
|
-
type: _zod.z.literal(ImageImportModelType.enum.FigmaRender),
|
|
1854
|
-
fileId: _zod.z.string(),
|
|
1855
|
-
fileVersionId: _zod.z.string().optional(),
|
|
1856
|
-
nodeId: _zod.z.string(),
|
|
1857
|
-
originKey: _zod.z.string()
|
|
1858
|
-
});
|
|
1859
|
-
var FigmaPngRenderImportModel = FigmaRenderBase.extend({
|
|
1860
|
-
format: _zod.z.literal(FigmaRenderFormat.enum.Png),
|
|
1861
|
-
scale: _zod.z.number()
|
|
1862
|
-
});
|
|
1863
|
-
var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
|
|
1864
|
-
format: _zod.z.literal(FigmaRenderFormat.enum.Svg)
|
|
1865
|
-
});
|
|
1866
|
-
var FigmaRenderImportModel = _zod.z.discriminatedUnion("format", [
|
|
1867
|
-
FigmaPngRenderImportModel,
|
|
1868
|
-
FigmaSvgRenderImportModel
|
|
1869
|
-
]);
|
|
1870
|
-
var ImageImportModel = _zod.z.union([UrlImageImportModel, FigmaRenderImportModel]);
|
|
1871
|
-
var ImportModelBase = _zod.z.object({
|
|
1872
|
-
id: _zod.z.string(),
|
|
1873
|
-
meta: ObjectMeta,
|
|
1874
|
-
origin: DesignElementOrigin,
|
|
1875
|
-
brandPersistentId: _zod.z.string(),
|
|
1876
|
-
sortOrder: _zod.z.number()
|
|
1877
|
-
});
|
|
1878
|
-
var ImportModelInputBase = ImportModelBase.omit({
|
|
1879
|
-
brandPersistentId: true,
|
|
1880
|
-
origin: true,
|
|
1881
|
-
sortOrder: true
|
|
1882
|
-
}).extend({
|
|
1883
|
-
originId: _zod.z.string(),
|
|
1884
|
-
originMetadata: _zod.z.record(_zod.z.any())
|
|
1885
|
-
});
|
|
1886
|
-
var ComponentImportModelPart = _zod.z.object({
|
|
1887
|
-
thumbnail: ImageImportModel
|
|
1888
|
-
});
|
|
1889
|
-
var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
|
|
1890
|
-
isAsset: _zod.z.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
|
-
_zod.z.object({
|
|
1903
|
-
id: _zod.z.string(),
|
|
1904
|
-
meta: ObjectMeta
|
|
1905
|
-
})
|
|
1906
|
-
);
|
|
1907
|
-
var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
|
|
1908
|
-
_zod.z.object({
|
|
1909
|
-
origin: ThemeOverrideOrigin
|
|
1910
|
-
})
|
|
1911
|
-
);
|
|
1912
|
-
var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
|
|
1913
|
-
_zod.z.object({
|
|
1914
|
-
originId: _zod.z.string(),
|
|
1915
|
-
originMetadata: ThemeOverrideOriginPart
|
|
1916
|
-
})
|
|
1917
|
-
);
|
|
1918
|
-
var ThemeImportModel = _zod.z.object({
|
|
1919
|
-
meta: ObjectMeta,
|
|
1920
|
-
brandPersistentId: _zod.z.string(),
|
|
1921
|
-
originSource: ThemeOriginSource,
|
|
1922
|
-
overrides: _zod.z.array(ThemeOverrideImportModel),
|
|
1923
|
-
sortOrder: _zod.z.number()
|
|
1924
|
-
});
|
|
1925
|
-
var ThemeImportModelInput = _zod.z.object({
|
|
1926
|
-
meta: ObjectMeta,
|
|
1927
|
-
originObjects: _zod.z.array(ThemeOriginObject),
|
|
1928
|
-
overrides: _zod.z.array(ThemeOverrideImportModelInput)
|
|
1929
|
-
});
|
|
1930
|
-
var ThemeUpdateImportModel = _zod.z.object({
|
|
1931
|
-
themePersistentId: _zod.z.string(),
|
|
1932
|
-
overrides: _zod.z.array(ThemeOverrideImportModel)
|
|
1933
|
-
});
|
|
1934
|
-
var ThemeUpdateImportModelInput = _zod.z.object({
|
|
1935
|
-
themePersistentId: _zod.z.string(),
|
|
1936
|
-
overrides: _zod.z.array(ThemeOverrideImportModelInput)
|
|
1937
|
-
});
|
|
1938
|
-
var DesignTokenImportModelPart = _zod.z.object({
|
|
1939
|
-
collection: _zod.z.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
|
|
1946
|
-
});
|
|
1947
|
-
var DesignTokenImportModel = DesignTokenTypedData.and(DesignTokenImportModelBase);
|
|
1948
|
-
var DesignTokenImportModelInput = DesignTokenTypedData.and(DesignTokenImportModelInputBase);
|
|
1949
|
-
var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
|
|
1950
|
-
image: FigmaPngRenderImportModel
|
|
1951
|
-
});
|
|
1952
|
-
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
|
|
1953
|
-
children: _zod.z.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
1954
|
-
});
|
|
1955
|
-
var FigmaFileStructureImportModelPart = _zod.z.object({
|
|
1956
|
-
data: _zod.z.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: _zod.z.string()
|
|
1968
|
-
});
|
|
1969
|
-
var DataSourceImportModel = _zod.z.object({
|
|
1970
|
-
id: _zod.z.string(),
|
|
1971
|
-
fileName: _zod.z.string().optional(),
|
|
1972
|
-
thumbnailUrl: _zod.z.string().optional()
|
|
1973
|
-
});
|
|
1974
|
-
var ImportModelInputCollection = _zod.z.object({
|
|
1975
|
-
source: DataSourceImportModel,
|
|
1976
|
-
tokens: _zod.z.array(DesignTokenImportModelInput).default([]),
|
|
1977
|
-
components: _zod.z.array(ComponentImportModelInput).default([]),
|
|
1978
|
-
assets: _zod.z.array(AssetImportModelInput).default([]),
|
|
1979
|
-
themeUpdates: _zod.z.array(ThemeUpdateImportModelInput).default([]),
|
|
1980
|
-
themes: _zod.z.array(ThemeImportModelInput).default([]),
|
|
1981
|
-
figmaFileStructure: FigmaFileStructureImportModelInput.optional()
|
|
1982
|
-
});
|
|
1983
|
-
var ImportModelCollection = _zod.z.object({
|
|
1984
|
-
sources: _zod.z.array(DataSourceImportModel),
|
|
1985
|
-
tokens: _zod.z.array(DesignTokenImportModel).default([]),
|
|
1986
|
-
components: _zod.z.array(ComponentImportModel).default([]),
|
|
1987
|
-
themeUpdates: _zod.z.array(ThemeUpdateImportModel).default([]),
|
|
1988
|
-
themes: _zod.z.array(ThemeImportModel).default([]),
|
|
1989
|
-
figmaFileStructures: _zod.z.array(FigmaFileStructureImportModel)
|
|
1990
|
-
});
|
|
1991
1776
|
var FileStructureStats = _zod.z.object({
|
|
1992
1777
|
frames: zeroNumberByDefault(),
|
|
1993
1778
|
components: zeroNumberByDefault(),
|
|
@@ -2377,65 +2162,279 @@ var DocumentationPageAnchor = _zod.z.object({
|
|
|
2377
2162
|
level: _zod.z.number(),
|
|
2378
2163
|
text: _zod.z.string()
|
|
2379
2164
|
});
|
|
2380
|
-
var DocumentationPageContentBackup = _zod.z.object({
|
|
2381
|
-
id: _zod.z.string(),
|
|
2382
|
-
designSystemVersionId: _zod.z.string(),
|
|
2383
|
-
createdAt: _zod.z.coerce.date(),
|
|
2384
|
-
updatedAt: _zod.z.coerce.date(),
|
|
2385
|
-
documentationPageId: _zod.z.string(),
|
|
2386
|
-
documentationPageName: _zod.z.string(),
|
|
2387
|
-
storagePath: _zod.z.string()
|
|
2165
|
+
var DocumentationPageContentBackup = _zod.z.object({
|
|
2166
|
+
id: _zod.z.string(),
|
|
2167
|
+
designSystemVersionId: _zod.z.string(),
|
|
2168
|
+
createdAt: _zod.z.coerce.date(),
|
|
2169
|
+
updatedAt: _zod.z.coerce.date(),
|
|
2170
|
+
documentationPageId: _zod.z.string(),
|
|
2171
|
+
documentationPageName: _zod.z.string(),
|
|
2172
|
+
storagePath: _zod.z.string()
|
|
2173
|
+
});
|
|
2174
|
+
var DocumentationPageContentItem = _zod.z.discriminatedUnion("type", [
|
|
2175
|
+
PageBlockEditorModelV2,
|
|
2176
|
+
PageSectionEditorModelV2
|
|
2177
|
+
]);
|
|
2178
|
+
var DocumentationPageContentData = _zod.z.object({
|
|
2179
|
+
items: _zod.z.array(DocumentationPageContentItem)
|
|
2180
|
+
});
|
|
2181
|
+
var DocumentationPageContent = _zod.z.object({
|
|
2182
|
+
id: _zod.z.string(),
|
|
2183
|
+
designSystemVersionId: _zod.z.string(),
|
|
2184
|
+
createdAt: _zod.z.coerce.date(),
|
|
2185
|
+
updatedAt: _zod.z.coerce.date(),
|
|
2186
|
+
documentationPageId: _zod.z.string(),
|
|
2187
|
+
data: DocumentationPageContentData
|
|
2188
|
+
});
|
|
2189
|
+
var DocumentationPage = _zod.z.object({
|
|
2190
|
+
type: _zod.z.literal("DocumentationPage"),
|
|
2191
|
+
id: _zod.z.string(),
|
|
2192
|
+
persistentId: _zod.z.string(),
|
|
2193
|
+
shortPersistentId: _zod.z.string(),
|
|
2194
|
+
designSystemVersionId: _zod.z.string(),
|
|
2195
|
+
parentPersistentId: _zod.z.string().nullish(),
|
|
2196
|
+
sortOrder: _zod.z.number(),
|
|
2197
|
+
title: _zod.z.string(),
|
|
2198
|
+
slug: _zod.z.string(),
|
|
2199
|
+
userSlug: _zod.z.string().nullish(),
|
|
2200
|
+
createdAt: _zod.z.coerce.date(),
|
|
2201
|
+
updatedAt: _zod.z.coerce.date()
|
|
2202
|
+
});
|
|
2203
|
+
var DocumentationComment = _zod.z.object({
|
|
2204
|
+
id: _zod.z.string(),
|
|
2205
|
+
authorId: _zod.z.string(),
|
|
2206
|
+
threadId: _zod.z.string(),
|
|
2207
|
+
roomId: _zod.z.string(),
|
|
2208
|
+
createdAt: _zod.z.coerce.date(),
|
|
2209
|
+
editedAt: _zod.z.coerce.date().optional(),
|
|
2210
|
+
deletedAt: _zod.z.coerce.date().optional(),
|
|
2211
|
+
body: _zod.z.string()
|
|
2212
|
+
});
|
|
2213
|
+
var DocumentationCommentThread = _zod.z.object({
|
|
2214
|
+
id: _zod.z.string(),
|
|
2215
|
+
roomId: _zod.z.string(),
|
|
2216
|
+
pagePersistentId: _zod.z.string(),
|
|
2217
|
+
brandId: _zod.z.string(),
|
|
2218
|
+
designSystemVersionId: _zod.z.string(),
|
|
2219
|
+
designSystemId: _zod.z.string(),
|
|
2220
|
+
blockId: _zod.z.string().optional(),
|
|
2221
|
+
resolved: _zod.z.boolean(),
|
|
2222
|
+
createdAt: _zod.z.coerce.date(),
|
|
2223
|
+
updatedAt: _zod.z.coerce.date()
|
|
2224
|
+
});
|
|
2225
|
+
var FigmaFileDownloadScope = _zod.z.object({
|
|
2226
|
+
styles: _zod.z.boolean(),
|
|
2227
|
+
components: _zod.z.boolean(),
|
|
2228
|
+
currentVersion: _zod.z.literal("__latest__").nullable(),
|
|
2229
|
+
publishedVersion: _zod.z.string().nullable(),
|
|
2230
|
+
downloadChunkSize: _zod.z.number().optional(),
|
|
2231
|
+
maxFileDepth: _zod.z.number().optional()
|
|
2232
|
+
});
|
|
2233
|
+
var FigmaFileAccessData = _zod.z.object({
|
|
2234
|
+
accessToken: _zod.z.string()
|
|
2235
|
+
});
|
|
2236
|
+
var ImportFunctionInput = _zod.z.object({
|
|
2237
|
+
importJobId: _zod.z.string(),
|
|
2238
|
+
importContextId: _zod.z.string(),
|
|
2239
|
+
designSystemId: _zod.z.string().optional()
|
|
2240
|
+
});
|
|
2241
|
+
var ImportedFigmaSourceData = _zod.z.object({
|
|
2242
|
+
sourceId: _zod.z.string(),
|
|
2243
|
+
figmaRemote: DataSourceFigmaRemote
|
|
2244
|
+
});
|
|
2245
|
+
var FigmaImportBaseContext = _zod.z.object({
|
|
2246
|
+
designSystemId: _zod.z.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: _zod.z.record(FigmaFileAccessData),
|
|
2254
|
+
/**
|
|
2255
|
+
* Figma source data for which import was requested
|
|
2256
|
+
*
|
|
2257
|
+
* sourceId: source data
|
|
2258
|
+
*/
|
|
2259
|
+
importedSourceDataBySourceId: _zod.z.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: _zod.z.record(ImportWarning.array()).default({})
|
|
2265
|
+
});
|
|
2266
|
+
var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
|
|
2267
|
+
sourcesWithMissingAccess: _zod.z.array(_zod.z.string()).default([]),
|
|
2268
|
+
shadowOpacityOptional: _zod.z.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: _zod.z.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: _zod.z.record(ChangedImportedFigmaSourceData)
|
|
2288
|
+
});
|
|
2289
|
+
var ImageImportModelType = _zod.z.enum(["Url", "FigmaRender"]);
|
|
2290
|
+
var ImageImportModelBase = _zod.z.object({
|
|
2291
|
+
scope: AssetScope
|
|
2292
|
+
});
|
|
2293
|
+
var UrlImageImportModel = ImageImportModelBase.extend({
|
|
2294
|
+
type: _zod.z.literal(ImageImportModelType.enum.Url),
|
|
2295
|
+
url: _zod.z.string(),
|
|
2296
|
+
originKey: _zod.z.string(),
|
|
2297
|
+
extension: _zod.z.string()
|
|
2298
|
+
});
|
|
2299
|
+
var FigmaRenderFormat = _zod.z.enum(["Svg", "Png"]);
|
|
2300
|
+
var FigmaRenderBase = ImageImportModelBase.extend({
|
|
2301
|
+
type: _zod.z.literal(ImageImportModelType.enum.FigmaRender),
|
|
2302
|
+
fileId: _zod.z.string(),
|
|
2303
|
+
fileVersionId: _zod.z.string().optional(),
|
|
2304
|
+
nodeId: _zod.z.string(),
|
|
2305
|
+
originKey: _zod.z.string()
|
|
2306
|
+
});
|
|
2307
|
+
var FigmaPngRenderImportModel = FigmaRenderBase.extend({
|
|
2308
|
+
format: _zod.z.literal(FigmaRenderFormat.enum.Png),
|
|
2309
|
+
scale: _zod.z.number()
|
|
2310
|
+
});
|
|
2311
|
+
var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
|
|
2312
|
+
format: _zod.z.literal(FigmaRenderFormat.enum.Svg)
|
|
2313
|
+
});
|
|
2314
|
+
var FigmaRenderImportModel = _zod.z.discriminatedUnion("format", [
|
|
2315
|
+
FigmaPngRenderImportModel,
|
|
2316
|
+
FigmaSvgRenderImportModel
|
|
2317
|
+
]);
|
|
2318
|
+
var ImageImportModel = _zod.z.union([UrlImageImportModel, FigmaRenderImportModel]);
|
|
2319
|
+
var ImportModelBase = _zod.z.object({
|
|
2320
|
+
id: _zod.z.string(),
|
|
2321
|
+
meta: ObjectMeta,
|
|
2322
|
+
origin: DesignElementOrigin,
|
|
2323
|
+
brandPersistentId: _zod.z.string(),
|
|
2324
|
+
sortOrder: _zod.z.number()
|
|
2325
|
+
});
|
|
2326
|
+
var ImportModelInputBase = ImportModelBase.omit({
|
|
2327
|
+
brandPersistentId: true,
|
|
2328
|
+
origin: true,
|
|
2329
|
+
sortOrder: true
|
|
2330
|
+
}).extend({
|
|
2331
|
+
originId: _zod.z.string(),
|
|
2332
|
+
originMetadata: _zod.z.record(_zod.z.any())
|
|
2333
|
+
});
|
|
2334
|
+
var ComponentImportModelPart = _zod.z.object({
|
|
2335
|
+
thumbnail: ImageImportModel
|
|
2336
|
+
});
|
|
2337
|
+
var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
|
|
2338
|
+
isAsset: _zod.z.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
|
+
_zod.z.object({
|
|
2351
|
+
id: _zod.z.string(),
|
|
2352
|
+
meta: ObjectMeta
|
|
2353
|
+
})
|
|
2354
|
+
);
|
|
2355
|
+
var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
|
|
2356
|
+
_zod.z.object({
|
|
2357
|
+
origin: ThemeOverrideOrigin
|
|
2358
|
+
})
|
|
2359
|
+
);
|
|
2360
|
+
var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
|
|
2361
|
+
_zod.z.object({
|
|
2362
|
+
originId: _zod.z.string(),
|
|
2363
|
+
originMetadata: ThemeOverrideOriginPart
|
|
2364
|
+
})
|
|
2365
|
+
);
|
|
2366
|
+
var ThemeImportModel = _zod.z.object({
|
|
2367
|
+
meta: ObjectMeta,
|
|
2368
|
+
brandPersistentId: _zod.z.string(),
|
|
2369
|
+
originSource: ThemeOriginSource,
|
|
2370
|
+
overrides: _zod.z.array(ThemeOverrideImportModel),
|
|
2371
|
+
sortOrder: _zod.z.number()
|
|
2372
|
+
});
|
|
2373
|
+
var ThemeImportModelInput = _zod.z.object({
|
|
2374
|
+
meta: ObjectMeta,
|
|
2375
|
+
originObjects: _zod.z.array(ThemeOriginObject),
|
|
2376
|
+
overrides: _zod.z.array(ThemeOverrideImportModelInput)
|
|
2377
|
+
});
|
|
2378
|
+
var ThemeUpdateImportModel = _zod.z.object({
|
|
2379
|
+
themePersistentId: _zod.z.string(),
|
|
2380
|
+
overrides: _zod.z.array(ThemeOverrideImportModel)
|
|
2381
|
+
});
|
|
2382
|
+
var ThemeUpdateImportModelInput = _zod.z.object({
|
|
2383
|
+
themePersistentId: _zod.z.string(),
|
|
2384
|
+
overrides: _zod.z.array(ThemeOverrideImportModelInput)
|
|
2385
|
+
});
|
|
2386
|
+
var DesignTokenImportModelPart = _zod.z.object({
|
|
2387
|
+
collection: _zod.z.string().optional()
|
|
2388
|
+
});
|
|
2389
|
+
var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
2390
|
+
origin: DesignTokenOrigin
|
|
2391
|
+
});
|
|
2392
|
+
var DesignTokenImportModelInputBase = ImportModelInputBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
2393
|
+
originMetadata: DesignTokenOriginPart
|
|
2394
|
+
});
|
|
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: _zod.z.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
2388
2402
|
});
|
|
2389
|
-
var
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
items: _zod.z.array(DocumentationPageContentItem)
|
|
2403
|
+
var FigmaFileStructureImportModelPart = _zod.z.object({
|
|
2404
|
+
data: _zod.z.object({
|
|
2405
|
+
rootNode: FigmaFileStructureNodeImportModel,
|
|
2406
|
+
assetsInFile: FigmaFileStructureStatistics
|
|
2407
|
+
})
|
|
2395
2408
|
});
|
|
2396
|
-
var
|
|
2397
|
-
|
|
2398
|
-
designSystemVersionId: _zod.z.string(),
|
|
2399
|
-
createdAt: _zod.z.coerce.date(),
|
|
2400
|
-
updatedAt: _zod.z.coerce.date(),
|
|
2401
|
-
documentationPageId: _zod.z.string(),
|
|
2402
|
-
data: DocumentationPageContentData
|
|
2409
|
+
var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImportModelPart.shape).extend({
|
|
2410
|
+
origin: FigmaFileStructureOrigin
|
|
2403
2411
|
});
|
|
2404
|
-
var
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
shortPersistentId: _zod.z.string(),
|
|
2409
|
-
designSystemVersionId: _zod.z.string(),
|
|
2410
|
-
parentPersistentId: _zod.z.string().nullish(),
|
|
2411
|
-
sortOrder: _zod.z.number(),
|
|
2412
|
-
title: _zod.z.string(),
|
|
2413
|
-
slug: _zod.z.string(),
|
|
2414
|
-
userSlug: _zod.z.string().nullish(),
|
|
2415
|
-
createdAt: _zod.z.coerce.date(),
|
|
2416
|
-
updatedAt: _zod.z.coerce.date()
|
|
2412
|
+
var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
|
|
2413
|
+
FigmaFileStructureImportModelPart.shape
|
|
2414
|
+
).extend({
|
|
2415
|
+
fileVersionId: _zod.z.string()
|
|
2417
2416
|
});
|
|
2418
|
-
var
|
|
2417
|
+
var DataSourceImportModel = _zod.z.object({
|
|
2419
2418
|
id: _zod.z.string(),
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
roomId: _zod.z.string(),
|
|
2423
|
-
createdAt: _zod.z.coerce.date(),
|
|
2424
|
-
editedAt: _zod.z.coerce.date().optional(),
|
|
2425
|
-
deletedAt: _zod.z.coerce.date().optional(),
|
|
2426
|
-
body: _zod.z.string()
|
|
2419
|
+
fileName: _zod.z.string().optional(),
|
|
2420
|
+
thumbnailUrl: _zod.z.string().optional()
|
|
2427
2421
|
});
|
|
2428
|
-
var
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2422
|
+
var ImportModelInputCollection = _zod.z.object({
|
|
2423
|
+
source: DataSourceImportModel,
|
|
2424
|
+
tokens: _zod.z.array(DesignTokenImportModelInput).default([]),
|
|
2425
|
+
components: _zod.z.array(ComponentImportModelInput).default([]),
|
|
2426
|
+
assets: _zod.z.array(AssetImportModelInput).default([]),
|
|
2427
|
+
themeUpdates: _zod.z.array(ThemeUpdateImportModelInput).default([]),
|
|
2428
|
+
themes: _zod.z.array(ThemeImportModelInput).default([]),
|
|
2429
|
+
figmaFileStructure: FigmaFileStructureImportModelInput.optional()
|
|
2430
|
+
});
|
|
2431
|
+
var ImportModelCollection = _zod.z.object({
|
|
2432
|
+
sources: _zod.z.array(DataSourceImportModel),
|
|
2433
|
+
tokens: _zod.z.array(DesignTokenImportModel).default([]),
|
|
2434
|
+
components: _zod.z.array(ComponentImportModel).default([]),
|
|
2435
|
+
themeUpdates: _zod.z.array(ThemeUpdateImportModel).default([]),
|
|
2436
|
+
themes: _zod.z.array(ThemeImportModel).default([]),
|
|
2437
|
+
figmaFileStructures: _zod.z.array(FigmaFileStructureImportModel)
|
|
2439
2438
|
});
|
|
2440
2439
|
var ElementViewBaseColumnType = _zod.z.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
2441
2440
|
var ElementViewColumnType = _zod.z.union([
|
|
@@ -2865,14 +2864,55 @@ var DesignSystemVersionDump = _zod.z.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 = _zod.z.object({
|
|
2871
2871
|
designSystem: DesignSystem,
|
|
2872
2872
|
dataSources: DataSource.array(),
|
|
2873
2873
|
versions: DesignSystemVersionDump.array(),
|
|
2874
2874
|
customDomain: CustomDomain.optional(),
|
|
2875
|
-
files:
|
|
2875
|
+
files: Asset.array()
|
|
2876
|
+
});
|
|
2877
|
+
var IntegrationAuthType = _zod.z.union([_zod.z.literal("OAuth2"), _zod.z.literal("PAT")]);
|
|
2878
|
+
var ExternalServiceType = _zod.z.union([
|
|
2879
|
+
_zod.z.literal("figma"),
|
|
2880
|
+
_zod.z.literal("github"),
|
|
2881
|
+
_zod.z.literal("azure"),
|
|
2882
|
+
_zod.z.literal("gitlab"),
|
|
2883
|
+
_zod.z.literal("bitbucket")
|
|
2884
|
+
]);
|
|
2885
|
+
var IntegrationUserInfo = _zod.z.object({
|
|
2886
|
+
id: _zod.z.string(),
|
|
2887
|
+
handle: _zod.z.string().optional(),
|
|
2888
|
+
avatarUrl: _zod.z.string().optional(),
|
|
2889
|
+
email: _zod.z.string().optional(),
|
|
2890
|
+
authType: IntegrationAuthType.optional(),
|
|
2891
|
+
customUrl: _zod.z.string().optional()
|
|
2892
|
+
});
|
|
2893
|
+
var UserLinkedIntegrations = _zod.z.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 = _zod.z.object({
|
|
2901
|
+
userId: _zod.z.string(),
|
|
2902
|
+
createdAt: _zod.z.coerce.date(),
|
|
2903
|
+
deleteAt: _zod.z.coerce.date()
|
|
2904
|
+
});
|
|
2905
|
+
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
2906
|
+
createdAt: true
|
|
2907
|
+
});
|
|
2908
|
+
var CreateUserInput = _zod.z.object({
|
|
2909
|
+
email: _zod.z.string(),
|
|
2910
|
+
name: _zod.z.string(),
|
|
2911
|
+
username: _zod.z.string()
|
|
2912
|
+
});
|
|
2913
|
+
var UserIdentity = _zod.z.object({
|
|
2914
|
+
id: _zod.z.string(),
|
|
2915
|
+
userId: _zod.z.string()
|
|
2876
2916
|
});
|
|
2877
2917
|
var UserMinified = _zod.z.object({
|
|
2878
2918
|
id: _zod.z.string(),
|
|
@@ -2880,6 +2920,50 @@ var UserMinified = _zod.z.object({
|
|
|
2880
2920
|
email: _zod.z.string(),
|
|
2881
2921
|
avatar: _zod.z.string().optional()
|
|
2882
2922
|
});
|
|
2923
|
+
var LiveblocksNotificationSettings = _zod.z.object({
|
|
2924
|
+
sendCommentNotificationEmails: _zod.z.boolean()
|
|
2925
|
+
});
|
|
2926
|
+
var UserNotificationSettings = _zod.z.object({
|
|
2927
|
+
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
2928
|
+
});
|
|
2929
|
+
var UserOnboardingDepartment = _zod.z.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
2930
|
+
var UserOnboardingJobLevel = _zod.z.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
2931
|
+
var UserOnboarding = _zod.z.object({
|
|
2932
|
+
companyName: _zod.z.string().optional(),
|
|
2933
|
+
numberOfPeopleInOrg: _zod.z.string().optional(),
|
|
2934
|
+
numberOfPeopleInDesignTeam: _zod.z.string().optional(),
|
|
2935
|
+
department: UserOnboardingDepartment.optional(),
|
|
2936
|
+
jobTitle: _zod.z.string().optional(),
|
|
2937
|
+
phase: _zod.z.string().optional(),
|
|
2938
|
+
jobLevel: UserOnboardingJobLevel.optional(),
|
|
2939
|
+
designSystemName: _zod.z.string().optional(),
|
|
2940
|
+
defaultDestination: _zod.z.string().optional(),
|
|
2941
|
+
figmaUrl: _zod.z.string().optional()
|
|
2942
|
+
});
|
|
2943
|
+
var UserProfile = _zod.z.object({
|
|
2944
|
+
name: _zod.z.string(),
|
|
2945
|
+
avatar: _zod.z.string().optional(),
|
|
2946
|
+
nickname: _zod.z.string().optional(),
|
|
2947
|
+
onboarding: UserOnboarding.optional()
|
|
2948
|
+
});
|
|
2949
|
+
var UserProfileUpdate = UserProfile.partial().omit({
|
|
2950
|
+
avatar: true
|
|
2951
|
+
});
|
|
2952
|
+
var UserTest = _zod.z.object({
|
|
2953
|
+
id: _zod.z.string(),
|
|
2954
|
+
email: _zod.z.string()
|
|
2955
|
+
});
|
|
2956
|
+
var User = _zod.z.object({
|
|
2957
|
+
id: _zod.z.string(),
|
|
2958
|
+
email: _zod.z.string(),
|
|
2959
|
+
emailVerified: _zod.z.boolean(),
|
|
2960
|
+
createdAt: _zod.z.coerce.date(),
|
|
2961
|
+
trialExpiresAt: _zod.z.coerce.date().optional(),
|
|
2962
|
+
profile: UserProfile,
|
|
2963
|
+
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
2964
|
+
loggedOutAt: _zod.z.coerce.date().optional(),
|
|
2965
|
+
isProtected: _zod.z.boolean()
|
|
2966
|
+
});
|
|
2883
2967
|
var SupernovaException = class _SupernovaException extends Error {
|
|
2884
2968
|
//
|
|
2885
2969
|
// Properties
|
|
@@ -3741,89 +3825,9 @@ var WorkspaceDump = _zod.z.object({
|
|
|
3741
3825
|
codeIntegration: CodeIntegrationDump,
|
|
3742
3826
|
integrations: Integration.array()
|
|
3743
3827
|
});
|
|
3744
|
-
var
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
_zod.z.literal("github"),
|
|
3748
|
-
_zod.z.literal("azure"),
|
|
3749
|
-
_zod.z.literal("gitlab"),
|
|
3750
|
-
_zod.z.literal("bitbucket")
|
|
3751
|
-
]);
|
|
3752
|
-
var IntegrationUserInfo = _zod.z.object({
|
|
3753
|
-
id: _zod.z.string(),
|
|
3754
|
-
handle: _zod.z.string().optional(),
|
|
3755
|
-
avatarUrl: _zod.z.string().optional(),
|
|
3756
|
-
email: _zod.z.string().optional(),
|
|
3757
|
-
authType: IntegrationAuthType.optional(),
|
|
3758
|
-
customUrl: _zod.z.string().optional()
|
|
3759
|
-
});
|
|
3760
|
-
var UserLinkedIntegrations = _zod.z.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 = _zod.z.object({
|
|
3768
|
-
userId: _zod.z.string(),
|
|
3769
|
-
createdAt: _zod.z.coerce.date(),
|
|
3770
|
-
deleteAt: _zod.z.coerce.date()
|
|
3771
|
-
});
|
|
3772
|
-
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
3773
|
-
createdAt: true
|
|
3774
|
-
});
|
|
3775
|
-
var CreateUserInput = _zod.z.object({
|
|
3776
|
-
email: _zod.z.string(),
|
|
3777
|
-
name: _zod.z.string(),
|
|
3778
|
-
username: _zod.z.string()
|
|
3779
|
-
});
|
|
3780
|
-
var UserIdentity = _zod.z.object({
|
|
3781
|
-
id: _zod.z.string(),
|
|
3782
|
-
userId: _zod.z.string()
|
|
3783
|
-
});
|
|
3784
|
-
var LiveblocksNotificationSettings = _zod.z.object({
|
|
3785
|
-
sendCommentNotificationEmails: _zod.z.boolean()
|
|
3786
|
-
});
|
|
3787
|
-
var UserNotificationSettings = _zod.z.object({
|
|
3788
|
-
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
3789
|
-
});
|
|
3790
|
-
var UserOnboardingDepartment = _zod.z.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
3791
|
-
var UserOnboardingJobLevel = _zod.z.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
3792
|
-
var UserOnboarding = _zod.z.object({
|
|
3793
|
-
companyName: _zod.z.string().optional(),
|
|
3794
|
-
numberOfPeopleInOrg: _zod.z.string().optional(),
|
|
3795
|
-
numberOfPeopleInDesignTeam: _zod.z.string().optional(),
|
|
3796
|
-
department: UserOnboardingDepartment.optional(),
|
|
3797
|
-
jobTitle: _zod.z.string().optional(),
|
|
3798
|
-
phase: _zod.z.string().optional(),
|
|
3799
|
-
jobLevel: UserOnboardingJobLevel.optional(),
|
|
3800
|
-
designSystemName: _zod.z.string().optional(),
|
|
3801
|
-
defaultDestination: _zod.z.string().optional(),
|
|
3802
|
-
figmaUrl: _zod.z.string().optional()
|
|
3803
|
-
});
|
|
3804
|
-
var UserProfile = _zod.z.object({
|
|
3805
|
-
name: _zod.z.string(),
|
|
3806
|
-
avatar: _zod.z.string().optional(),
|
|
3807
|
-
nickname: _zod.z.string().optional(),
|
|
3808
|
-
onboarding: UserOnboarding.optional()
|
|
3809
|
-
});
|
|
3810
|
-
var UserProfileUpdate = UserProfile.partial().omit({
|
|
3811
|
-
avatar: true
|
|
3812
|
-
});
|
|
3813
|
-
var UserTest = _zod.z.object({
|
|
3814
|
-
id: _zod.z.string(),
|
|
3815
|
-
email: _zod.z.string()
|
|
3816
|
-
});
|
|
3817
|
-
var User = _zod.z.object({
|
|
3818
|
-
id: _zod.z.string(),
|
|
3819
|
-
email: _zod.z.string(),
|
|
3820
|
-
emailVerified: _zod.z.boolean(),
|
|
3821
|
-
createdAt: _zod.z.coerce.date(),
|
|
3822
|
-
trialExpiresAt: _zod.z.coerce.date().optional(),
|
|
3823
|
-
profile: UserProfile,
|
|
3824
|
-
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
3825
|
-
loggedOutAt: _zod.z.coerce.date().optional(),
|
|
3826
|
-
isProtected: _zod.z.boolean()
|
|
3828
|
+
var UserDump = _zod.z.object({
|
|
3829
|
+
user: User,
|
|
3830
|
+
workspaces: WorkspaceDump.array()
|
|
3827
3831
|
});
|
|
3828
3832
|
var NpmProxyToken = _zod.z.object({
|
|
3829
3833
|
access: _zod.z.string(),
|
|
@@ -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 = _nullishCoalesce(parseBlockItems(prosemirrorNode, definition), () => ( []));
|
|
9224
|
+
if (!parsedItems.length && _optionalChain([definition, 'access', _76 => _76.behavior, 'access', _77 => _77.items, 'optionalAccess', _78 => _78.numberOfItems]) === 1) {
|
|
9225
|
+
parsedItems.push({
|
|
9226
|
+
id,
|
|
9227
|
+
props: {}
|
|
9228
|
+
});
|
|
9229
|
+
}
|
|
9222
9230
|
return {
|
|
9223
9231
|
id,
|
|
9224
9232
|
type: "Block",
|
|
@@ -9357,7 +9365,7 @@ function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
|
9357
9365
|
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(_zod.z.string()));
|
|
9358
9366
|
}
|
|
9359
9367
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
9360
|
-
const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access',
|
|
9368
|
+
const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access', _79 => _79.attrs, 'optionalAccess', _80 => _80[attributeName]]));
|
|
9361
9369
|
if (parsedAttr.success) {
|
|
9362
9370
|
return parsedAttr.data;
|
|
9363
9371
|
} else {
|