@supernova-studio/client 0.46.11 → 0.46.13
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.js +34 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +118 -111
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/payloads/workspaces/workspace-integrations.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -95,16 +95,16 @@ import { z as z83 } from "zod";
|
|
|
95
95
|
import { z as z85 } from "zod";
|
|
96
96
|
import { z as z84 } from "zod";
|
|
97
97
|
import { z as z86 } from "zod";
|
|
98
|
-
import { z as z87 } from "zod";
|
|
99
|
-
import { z as z95 } from "zod";
|
|
100
98
|
import { z as z88 } from "zod";
|
|
101
|
-
import { z as
|
|
99
|
+
import { z as z87 } from "zod";
|
|
100
|
+
import { z as z96 } from "zod";
|
|
102
101
|
import { z as z89 } from "zod";
|
|
103
102
|
import { z as z91 } from "zod";
|
|
103
|
+
import { z as z90 } from "zod";
|
|
104
104
|
import { z as z92 } from "zod";
|
|
105
105
|
import { z as z93 } from "zod";
|
|
106
106
|
import { z as z94 } from "zod";
|
|
107
|
-
import { z as
|
|
107
|
+
import { z as z95 } from "zod";
|
|
108
108
|
import { z as z98 } from "zod";
|
|
109
109
|
import { z as z101 } from "zod";
|
|
110
110
|
import { z as z100 } from "zod";
|
|
@@ -541,7 +541,8 @@ var DataSourceFigmaScope = z27.object({
|
|
|
541
541
|
components: z27.boolean(),
|
|
542
542
|
documentationFrames: z27.boolean(),
|
|
543
543
|
tokens: z27.boolean(),
|
|
544
|
-
themePersistentId: z27.string().optional()
|
|
544
|
+
themePersistentId: z27.string().optional(),
|
|
545
|
+
isUnpublishedImportFallbackEnabled: z27.boolean()
|
|
545
546
|
});
|
|
546
547
|
var DataSourceFigmaImportMetadata = z27.object({
|
|
547
548
|
fileData: DataSourceFigmaFileData.optional(),
|
|
@@ -1803,34 +1804,62 @@ var FigmaFileDownloadScope = z86.object({
|
|
|
1803
1804
|
var FigmaFileAccessData = z86.object({
|
|
1804
1805
|
accessToken: z86.string()
|
|
1805
1806
|
});
|
|
1806
|
-
var
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1807
|
+
var ImportWarningType = z87.enum([
|
|
1808
|
+
"NoVersionFound",
|
|
1809
|
+
"UnsupportedFill",
|
|
1810
|
+
"UnsupportedStroke",
|
|
1811
|
+
"UnsupportedEffect",
|
|
1812
|
+
"NoPublishedElements",
|
|
1813
|
+
"NoPublishedStyles",
|
|
1814
|
+
"NoPublishedComponents",
|
|
1815
|
+
"NoPublishedAssets",
|
|
1816
|
+
"StyleNotApplied",
|
|
1817
|
+
"ComponentHasNoThumbnail",
|
|
1818
|
+
"DuplicateImportedStyleId",
|
|
1819
|
+
"DuplicateImportedStylePath",
|
|
1820
|
+
"NoUnpublishedStyles"
|
|
1821
|
+
]);
|
|
1822
|
+
var ImportWarning = z87.object({
|
|
1823
|
+
warningType: ImportWarningType,
|
|
1824
|
+
componentId: z87.string().optional(),
|
|
1825
|
+
componentName: z87.string().optional(),
|
|
1826
|
+
styleId: z87.string().optional(),
|
|
1827
|
+
styleName: z87.string().optional(),
|
|
1828
|
+
unsupportedStyleValueType: z87.string().optional()
|
|
1829
|
+
});
|
|
1830
|
+
var ImportFunctionInput = z88.object({
|
|
1831
|
+
importJobId: z88.string(),
|
|
1832
|
+
importContextId: z88.string(),
|
|
1833
|
+
designSystemId: z88.string().optional()
|
|
1834
|
+
});
|
|
1835
|
+
var ImportedFigmaSourceData = z88.object({
|
|
1836
|
+
sourceId: z88.string(),
|
|
1813
1837
|
figmaRemote: DataSourceFigmaRemote
|
|
1814
1838
|
});
|
|
1815
|
-
var FigmaImportBaseContext =
|
|
1816
|
-
designSystemId:
|
|
1839
|
+
var FigmaImportBaseContext = z88.object({
|
|
1840
|
+
designSystemId: z88.string(),
|
|
1817
1841
|
/**
|
|
1818
1842
|
* Data required for accessing Figma files. This should contain access data for all file ids
|
|
1819
1843
|
* mentioned in the `importedSourceDataBySourceId`
|
|
1820
1844
|
*
|
|
1821
1845
|
* fileId: file data
|
|
1822
1846
|
*/
|
|
1823
|
-
fileAccessByFileId:
|
|
1847
|
+
fileAccessByFileId: z88.record(FigmaFileAccessData),
|
|
1824
1848
|
/**
|
|
1825
1849
|
* Figma source data for which import was requested
|
|
1826
1850
|
*
|
|
1827
1851
|
* sourceId: source data
|
|
1828
1852
|
*/
|
|
1829
|
-
importedSourceDataBySourceId:
|
|
1853
|
+
importedSourceDataBySourceId: z88.record(ImportedFigmaSourceData),
|
|
1854
|
+
/**
|
|
1855
|
+
* Array of warnings that will be written into the import result summary at the end
|
|
1856
|
+
* of import job execution and displayed by the client.
|
|
1857
|
+
*/
|
|
1858
|
+
importWarnings: z88.record(ImportWarning.array()).default({})
|
|
1830
1859
|
});
|
|
1831
1860
|
var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
|
|
1832
|
-
sourcesWithMissingAccess:
|
|
1833
|
-
shadowOpacityOptional:
|
|
1861
|
+
sourcesWithMissingAccess: z88.array(z88.string()).default([]),
|
|
1862
|
+
shadowOpacityOptional: z88.boolean().default(false)
|
|
1834
1863
|
});
|
|
1835
1864
|
var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
|
|
1836
1865
|
importMetadata: DataSourceFigmaImportMetadata
|
|
@@ -1842,65 +1871,65 @@ var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.ex
|
|
|
1842
1871
|
*
|
|
1843
1872
|
* File id -> file download scope
|
|
1844
1873
|
*/
|
|
1845
|
-
fileDownloadScopesByFileId:
|
|
1874
|
+
fileDownloadScopesByFileId: z88.record(FigmaFileDownloadScope),
|
|
1846
1875
|
/**
|
|
1847
1876
|
* Sources filtered down to the ones that have changed since last import and therefore need to be
|
|
1848
1877
|
* imported again.
|
|
1849
1878
|
*
|
|
1850
1879
|
* Source id -> import metadata
|
|
1851
1880
|
*/
|
|
1852
|
-
changedImportedSourceDataBySourceId:
|
|
1881
|
+
changedImportedSourceDataBySourceId: z88.record(ChangedImportedFigmaSourceData)
|
|
1853
1882
|
});
|
|
1854
|
-
var ImageImportModelType =
|
|
1855
|
-
var ImageImportModelBase =
|
|
1883
|
+
var ImageImportModelType = z89.enum(["Url", "FigmaRender"]);
|
|
1884
|
+
var ImageImportModelBase = z89.object({
|
|
1856
1885
|
scope: AssetScope
|
|
1857
1886
|
});
|
|
1858
1887
|
var UrlImageImportModel = ImageImportModelBase.extend({
|
|
1859
|
-
type:
|
|
1860
|
-
url:
|
|
1861
|
-
originKey:
|
|
1862
|
-
extension:
|
|
1888
|
+
type: z89.literal(ImageImportModelType.enum.Url),
|
|
1889
|
+
url: z89.string(),
|
|
1890
|
+
originKey: z89.string(),
|
|
1891
|
+
extension: z89.string()
|
|
1863
1892
|
});
|
|
1864
|
-
var FigmaRenderFormat =
|
|
1893
|
+
var FigmaRenderFormat = z89.enum(["Svg", "Png"]);
|
|
1865
1894
|
var FigmaRenderBase = ImageImportModelBase.extend({
|
|
1866
|
-
type:
|
|
1867
|
-
fileId:
|
|
1868
|
-
fileVersionId:
|
|
1869
|
-
nodeId:
|
|
1870
|
-
originKey:
|
|
1895
|
+
type: z89.literal(ImageImportModelType.enum.FigmaRender),
|
|
1896
|
+
fileId: z89.string(),
|
|
1897
|
+
fileVersionId: z89.string().optional(),
|
|
1898
|
+
nodeId: z89.string(),
|
|
1899
|
+
originKey: z89.string()
|
|
1871
1900
|
});
|
|
1872
1901
|
var FigmaPngRenderImportModel = FigmaRenderBase.extend({
|
|
1873
|
-
format:
|
|
1874
|
-
scale:
|
|
1902
|
+
format: z89.literal(FigmaRenderFormat.enum.Png),
|
|
1903
|
+
scale: z89.number()
|
|
1875
1904
|
});
|
|
1876
1905
|
var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
|
|
1877
|
-
format:
|
|
1906
|
+
format: z89.literal(FigmaRenderFormat.enum.Svg)
|
|
1878
1907
|
});
|
|
1879
|
-
var FigmaRenderImportModel =
|
|
1908
|
+
var FigmaRenderImportModel = z89.discriminatedUnion("format", [
|
|
1880
1909
|
FigmaPngRenderImportModel,
|
|
1881
1910
|
FigmaSvgRenderImportModel
|
|
1882
1911
|
]);
|
|
1883
|
-
var ImageImportModel =
|
|
1884
|
-
var ImportModelBase =
|
|
1885
|
-
id:
|
|
1912
|
+
var ImageImportModel = z89.union([UrlImageImportModel, FigmaRenderImportModel]);
|
|
1913
|
+
var ImportModelBase = z90.object({
|
|
1914
|
+
id: z90.string(),
|
|
1886
1915
|
meta: ObjectMeta,
|
|
1887
1916
|
origin: DesignElementOrigin,
|
|
1888
|
-
brandPersistentId:
|
|
1889
|
-
sortOrder:
|
|
1917
|
+
brandPersistentId: z90.string(),
|
|
1918
|
+
sortOrder: z90.number()
|
|
1890
1919
|
});
|
|
1891
1920
|
var ImportModelInputBase = ImportModelBase.omit({
|
|
1892
1921
|
brandPersistentId: true,
|
|
1893
1922
|
origin: true,
|
|
1894
1923
|
sortOrder: true
|
|
1895
1924
|
}).extend({
|
|
1896
|
-
originId:
|
|
1897
|
-
originMetadata:
|
|
1925
|
+
originId: z90.string(),
|
|
1926
|
+
originMetadata: z90.record(z90.any())
|
|
1898
1927
|
});
|
|
1899
|
-
var ComponentImportModelPart =
|
|
1928
|
+
var ComponentImportModelPart = z91.object({
|
|
1900
1929
|
thumbnail: ImageImportModel
|
|
1901
1930
|
});
|
|
1902
1931
|
var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
|
|
1903
|
-
isAsset:
|
|
1932
|
+
isAsset: z91.boolean(),
|
|
1904
1933
|
svg: FigmaSvgRenderImportModel.optional(),
|
|
1905
1934
|
origin: ComponentOrigin
|
|
1906
1935
|
});
|
|
@@ -1912,44 +1941,44 @@ var AssetImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart
|
|
|
1912
1941
|
originMetadata: ComponentOriginPart
|
|
1913
1942
|
});
|
|
1914
1943
|
var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
|
|
1915
|
-
|
|
1916
|
-
id:
|
|
1944
|
+
z92.object({
|
|
1945
|
+
id: z92.string(),
|
|
1917
1946
|
meta: ObjectMeta
|
|
1918
1947
|
})
|
|
1919
1948
|
);
|
|
1920
1949
|
var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
|
|
1921
|
-
|
|
1950
|
+
z92.object({
|
|
1922
1951
|
origin: ThemeOverrideOrigin
|
|
1923
1952
|
})
|
|
1924
1953
|
);
|
|
1925
1954
|
var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
|
|
1926
|
-
|
|
1927
|
-
originId:
|
|
1955
|
+
z92.object({
|
|
1956
|
+
originId: z92.string(),
|
|
1928
1957
|
originMetadata: ThemeOverrideOriginPart
|
|
1929
1958
|
})
|
|
1930
1959
|
);
|
|
1931
|
-
var ThemeImportModel =
|
|
1960
|
+
var ThemeImportModel = z92.object({
|
|
1932
1961
|
meta: ObjectMeta,
|
|
1933
|
-
brandPersistentId:
|
|
1962
|
+
brandPersistentId: z92.string(),
|
|
1934
1963
|
originSource: ThemeOriginSource,
|
|
1935
|
-
overrides:
|
|
1936
|
-
sortOrder:
|
|
1964
|
+
overrides: z92.array(ThemeOverrideImportModel),
|
|
1965
|
+
sortOrder: z92.number()
|
|
1937
1966
|
});
|
|
1938
|
-
var ThemeImportModelInput =
|
|
1967
|
+
var ThemeImportModelInput = z92.object({
|
|
1939
1968
|
meta: ObjectMeta,
|
|
1940
|
-
originObjects:
|
|
1941
|
-
overrides:
|
|
1969
|
+
originObjects: z92.array(ThemeOriginObject),
|
|
1970
|
+
overrides: z92.array(ThemeOverrideImportModelInput)
|
|
1942
1971
|
});
|
|
1943
|
-
var ThemeUpdateImportModel =
|
|
1944
|
-
themePersistentId:
|
|
1945
|
-
overrides:
|
|
1972
|
+
var ThemeUpdateImportModel = z92.object({
|
|
1973
|
+
themePersistentId: z92.string(),
|
|
1974
|
+
overrides: z92.array(ThemeOverrideImportModel)
|
|
1946
1975
|
});
|
|
1947
|
-
var ThemeUpdateImportModelInput =
|
|
1948
|
-
themePersistentId:
|
|
1949
|
-
overrides:
|
|
1976
|
+
var ThemeUpdateImportModelInput = z92.object({
|
|
1977
|
+
themePersistentId: z92.string(),
|
|
1978
|
+
overrides: z92.array(ThemeOverrideImportModelInput)
|
|
1950
1979
|
});
|
|
1951
|
-
var DesignTokenImportModelPart =
|
|
1952
|
-
collection:
|
|
1980
|
+
var DesignTokenImportModelPart = z93.object({
|
|
1981
|
+
collection: z93.string().optional()
|
|
1953
1982
|
});
|
|
1954
1983
|
var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
1955
1984
|
origin: DesignTokenOrigin
|
|
@@ -1963,10 +1992,10 @@ var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
|
|
|
1963
1992
|
image: FigmaPngRenderImportModel
|
|
1964
1993
|
});
|
|
1965
1994
|
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
|
|
1966
|
-
children:
|
|
1995
|
+
children: z94.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
1967
1996
|
});
|
|
1968
|
-
var FigmaFileStructureImportModelPart =
|
|
1969
|
-
data:
|
|
1997
|
+
var FigmaFileStructureImportModelPart = z94.object({
|
|
1998
|
+
data: z94.object({
|
|
1970
1999
|
rootNode: FigmaFileStructureNodeImportModel,
|
|
1971
2000
|
assetsInFile: FigmaFileStructureStatistics
|
|
1972
2001
|
})
|
|
@@ -1977,51 +2006,29 @@ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImp
|
|
|
1977
2006
|
var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
|
|
1978
2007
|
FigmaFileStructureImportModelPart.shape
|
|
1979
2008
|
).extend({
|
|
1980
|
-
fileVersionId:
|
|
2009
|
+
fileVersionId: z94.string()
|
|
1981
2010
|
});
|
|
1982
|
-
var DataSourceImportModel =
|
|
1983
|
-
id:
|
|
1984
|
-
fileName:
|
|
1985
|
-
thumbnailUrl:
|
|
2011
|
+
var DataSourceImportModel = z95.object({
|
|
2012
|
+
id: z95.string(),
|
|
2013
|
+
fileName: z95.string().optional(),
|
|
2014
|
+
thumbnailUrl: z95.string().optional()
|
|
1986
2015
|
});
|
|
1987
|
-
var ImportModelInputCollection =
|
|
2016
|
+
var ImportModelInputCollection = z96.object({
|
|
1988
2017
|
source: DataSourceImportModel,
|
|
1989
|
-
tokens:
|
|
1990
|
-
components:
|
|
1991
|
-
assets:
|
|
1992
|
-
themeUpdates:
|
|
1993
|
-
themes:
|
|
2018
|
+
tokens: z96.array(DesignTokenImportModelInput).default([]),
|
|
2019
|
+
components: z96.array(ComponentImportModelInput).default([]),
|
|
2020
|
+
assets: z96.array(AssetImportModelInput).default([]),
|
|
2021
|
+
themeUpdates: z96.array(ThemeUpdateImportModelInput).default([]),
|
|
2022
|
+
themes: z96.array(ThemeImportModelInput).default([]),
|
|
1994
2023
|
figmaFileStructure: FigmaFileStructureImportModelInput.optional()
|
|
1995
2024
|
});
|
|
1996
|
-
var ImportModelCollection =
|
|
1997
|
-
sources:
|
|
1998
|
-
tokens:
|
|
1999
|
-
components:
|
|
2000
|
-
themeUpdates:
|
|
2001
|
-
themes:
|
|
2002
|
-
figmaFileStructures:
|
|
2003
|
-
});
|
|
2004
|
-
var ImportWarningType = z96.enum([
|
|
2005
|
-
"NoVersionFound",
|
|
2006
|
-
"UnsupportedFill",
|
|
2007
|
-
"UnsupportedStroke",
|
|
2008
|
-
"UnsupportedEffect",
|
|
2009
|
-
"NoPublishedElements",
|
|
2010
|
-
"NoPublishedStyles",
|
|
2011
|
-
"NoPublishedComponents",
|
|
2012
|
-
"NoPublishedAssets",
|
|
2013
|
-
"StyleNotApplied",
|
|
2014
|
-
"ComponentHasNoThumbnail",
|
|
2015
|
-
"DuplicateImportedStyleId",
|
|
2016
|
-
"DuplicateImportedStylePath"
|
|
2017
|
-
]);
|
|
2018
|
-
var ImportWarning = z96.object({
|
|
2019
|
-
warningType: ImportWarningType,
|
|
2020
|
-
componentId: z96.string().optional(),
|
|
2021
|
-
componentName: z96.string().optional(),
|
|
2022
|
-
styleId: z96.string().optional(),
|
|
2023
|
-
styleName: z96.string().optional(),
|
|
2024
|
-
unsupportedStyleValueType: z96.string().optional()
|
|
2025
|
+
var ImportModelCollection = z96.object({
|
|
2026
|
+
sources: z96.array(DataSourceImportModel),
|
|
2027
|
+
tokens: z96.array(DesignTokenImportModel).default([]),
|
|
2028
|
+
components: z96.array(ComponentImportModel).default([]),
|
|
2029
|
+
themeUpdates: z96.array(ThemeUpdateImportModel).default([]),
|
|
2030
|
+
themes: z96.array(ThemeImportModel).default([]),
|
|
2031
|
+
figmaFileStructures: z96.array(FigmaFileStructureImportModel)
|
|
2025
2032
|
});
|
|
2026
2033
|
var FileStructureStats = z97.object({
|
|
2027
2034
|
frames: zeroNumberByDefault2(),
|
|
@@ -2958,7 +2965,7 @@ var Integration = z140.object({
|
|
|
2958
2965
|
integrationCredentials: z140.array(IntegrationCredentials).optional()
|
|
2959
2966
|
});
|
|
2960
2967
|
var forbiddenCustomUrldomainList = ["github.com", "gitlab.com", "bitbucket.org", "figma.com", "dev.azure.com"];
|
|
2961
|
-
var
|
|
2968
|
+
var IntegrationToken = z140.object({
|
|
2962
2969
|
access_token: z140.string(),
|
|
2963
2970
|
refresh_token: z140.string().optional(),
|
|
2964
2971
|
expires_in: z140.union([z140.number().optional(), z140.string().optional()]),
|
|
@@ -2992,7 +2999,7 @@ var IntegrationTokenResponse = z140.object({
|
|
|
2992
2999
|
customUrl: data.custom_url
|
|
2993
3000
|
};
|
|
2994
3001
|
});
|
|
2995
|
-
var
|
|
3002
|
+
var IntegrationTokenSchemaOld = z141.object({
|
|
2996
3003
|
id: z141.string(),
|
|
2997
3004
|
provider: OAuthProviderSchema,
|
|
2998
3005
|
scope: z141.string(),
|
|
@@ -4308,7 +4315,7 @@ var DTOWorkspaceIntegrationOauthInput = z159.object({
|
|
|
4308
4315
|
var DTOWorkspaceIntegrationPATInput = z159.object({
|
|
4309
4316
|
userId: z159.string(),
|
|
4310
4317
|
type: IntegrationType,
|
|
4311
|
-
token:
|
|
4318
|
+
token: IntegrationToken
|
|
4312
4319
|
});
|
|
4313
4320
|
|
|
4314
4321
|
// src/api/dto/design-systems/version.ts
|