@supernova-studio/model 1.5.0 → 1.5.1
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 +692 -119
- package/dist/index.d.ts +692 -119
- package/dist/index.js +85 -66
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +477 -458
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) =>
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7
4
|
|
|
8
5
|
// src/asset-delete-schedule/asset-delete-schedule.ts
|
|
9
6
|
import { z } from "zod";
|
|
@@ -290,7 +287,7 @@ var CustomDomain = z14.object({
|
|
|
290
287
|
});
|
|
291
288
|
|
|
292
289
|
// src/data-dumps/code-integration-dump.ts
|
|
293
|
-
import { z as
|
|
290
|
+
import { z as z157 } from "zod";
|
|
294
291
|
|
|
295
292
|
// src/export/exporter.ts
|
|
296
293
|
import { z as z18 } from "zod";
|
|
@@ -465,10 +462,10 @@ var Exporter = z18.object({
|
|
|
465
462
|
});
|
|
466
463
|
|
|
467
464
|
// src/export/pipeline.ts
|
|
468
|
-
import { z as
|
|
465
|
+
import { z as z156 } from "zod";
|
|
469
466
|
|
|
470
467
|
// src/export/export-destinations.ts
|
|
471
|
-
import { z as
|
|
468
|
+
import { z as z155 } from "zod";
|
|
472
469
|
|
|
473
470
|
// src/dsm/assets/asset-dynamo-record.ts
|
|
474
471
|
import { z as z19 } from "zod";
|
|
@@ -851,10 +848,8 @@ var SupernovaException = class _SupernovaException extends Error {
|
|
|
851
848
|
|
|
852
849
|
// src/utils/common.ts
|
|
853
850
|
function forceUnwrapNullish(value) {
|
|
854
|
-
if (value === null)
|
|
855
|
-
|
|
856
|
-
if (value === void 0)
|
|
857
|
-
throw new Error("Illegal undefined");
|
|
851
|
+
if (value === null) throw new Error("Illegal null");
|
|
852
|
+
if (value === void 0) throw new Error("Illegal undefined");
|
|
858
853
|
return value;
|
|
859
854
|
}
|
|
860
855
|
function trimLeadingSlash(string) {
|
|
@@ -924,14 +919,10 @@ function uniqueBy(items, prop) {
|
|
|
924
919
|
return Array.from(mapByUnique(items, prop).values());
|
|
925
920
|
}
|
|
926
921
|
function areShallowObjectsEqual(lhs, rhs) {
|
|
927
|
-
if (lhs === void 0 !== (rhs === void 0))
|
|
928
|
-
|
|
929
|
-
if (lhs ===
|
|
930
|
-
|
|
931
|
-
if (lhs === null !== (rhs === null))
|
|
932
|
-
return false;
|
|
933
|
-
if (lhs === null || rhs === null)
|
|
934
|
-
return true;
|
|
922
|
+
if (lhs === void 0 !== (rhs === void 0)) return false;
|
|
923
|
+
if (lhs === void 0 || rhs === void 0) return true;
|
|
924
|
+
if (lhs === null !== (rhs === null)) return false;
|
|
925
|
+
if (lhs === null || rhs === null) return true;
|
|
935
926
|
for (const key in lhs) {
|
|
936
927
|
if (!(key in rhs) || lhs[key] !== rhs[key]) {
|
|
937
928
|
return false;
|
|
@@ -959,8 +950,7 @@ function chunkedArray(array, chunkSize) {
|
|
|
959
950
|
}
|
|
960
951
|
function recordToMap(record) {
|
|
961
952
|
const map = /* @__PURE__ */ new Map();
|
|
962
|
-
for (const [k, v] of Object.entries(record))
|
|
963
|
-
map.set(k, v);
|
|
953
|
+
for (const [k, v] of Object.entries(record)) map.set(k, v);
|
|
964
954
|
return map;
|
|
965
955
|
}
|
|
966
956
|
function applyShallowObjectUpdate(object, update) {
|
|
@@ -1021,8 +1011,7 @@ function getCodenameFromText(name) {
|
|
|
1021
1011
|
}
|
|
1022
1012
|
function toCamelCase(str) {
|
|
1023
1013
|
return str.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g, function(match, index) {
|
|
1024
|
-
if (+match === 0)
|
|
1025
|
-
return "";
|
|
1014
|
+
if (+match === 0) return "";
|
|
1026
1015
|
return index === 0 ? match.toLowerCase() : match.toUpperCase();
|
|
1027
1016
|
});
|
|
1028
1017
|
}
|
|
@@ -1778,10 +1767,8 @@ var Size = z41.object({
|
|
|
1778
1767
|
height: z41.number().nullish().transform((v) => v ?? nullSize.height)
|
|
1779
1768
|
});
|
|
1780
1769
|
var SizeOrUndefined = Size.optional().transform((v) => {
|
|
1781
|
-
if (!v)
|
|
1782
|
-
|
|
1783
|
-
if (isNullSize(v))
|
|
1784
|
-
return void 0;
|
|
1770
|
+
if (!v) return void 0;
|
|
1771
|
+
if (isNullSize(v)) return void 0;
|
|
1785
1772
|
return v;
|
|
1786
1773
|
});
|
|
1787
1774
|
|
|
@@ -1855,14 +1842,10 @@ var stringTokenTypes = /* @__PURE__ */ new Set([
|
|
|
1855
1842
|
]);
|
|
1856
1843
|
var fallbackNumberValue = 14;
|
|
1857
1844
|
function areTokenTypesCompatible(lhs, rhs, isNonCompatibleTypeChangesEnabled = false) {
|
|
1858
|
-
if (lhs === rhs)
|
|
1859
|
-
|
|
1860
|
-
if (
|
|
1861
|
-
|
|
1862
|
-
if (stringTokenTypes.has(lhs) && stringTokenTypes.has(rhs))
|
|
1863
|
-
return true;
|
|
1864
|
-
if (isNonCompatibleTypeChangesEnabled && stringTokenTypes.has(lhs) && numberTokenTypes.has(rhs))
|
|
1865
|
-
return true;
|
|
1845
|
+
if (lhs === rhs) return true;
|
|
1846
|
+
if (numberTokenTypes.has(lhs) && numberTokenTypes.has(rhs)) return true;
|
|
1847
|
+
if (stringTokenTypes.has(lhs) && stringTokenTypes.has(rhs)) return true;
|
|
1848
|
+
if (isNonCompatibleTypeChangesEnabled && stringTokenTypes.has(lhs) && numberTokenTypes.has(rhs)) return true;
|
|
1866
1849
|
return false;
|
|
1867
1850
|
}
|
|
1868
1851
|
function castStringToDimensionValue(lhs, rhs, value) {
|
|
@@ -2229,8 +2212,7 @@ function removeCommentSpans(text) {
|
|
|
2229
2212
|
return joinRepeatingSpans(updatedRichText);
|
|
2230
2213
|
}
|
|
2231
2214
|
function joinRepeatingSpans(text) {
|
|
2232
|
-
if (text.spans.length < 2)
|
|
2233
|
-
return text;
|
|
2215
|
+
if (text.spans.length < 2) return text;
|
|
2234
2216
|
text = sanitizeSpans(text);
|
|
2235
2217
|
const { spans, ...rest } = text;
|
|
2236
2218
|
let previousSpan = { ...spans[0] };
|
|
@@ -2250,13 +2232,11 @@ function joinRepeatingSpans(text) {
|
|
|
2250
2232
|
};
|
|
2251
2233
|
}
|
|
2252
2234
|
function areAttributesEqual(lhs, rhs) {
|
|
2253
|
-
if (lhs.length !== rhs.length)
|
|
2254
|
-
return false;
|
|
2235
|
+
if (lhs.length !== rhs.length) return false;
|
|
2255
2236
|
const lhsMap = mapByUnique(lhs, (i) => i.type);
|
|
2256
2237
|
for (const rhsAttribute of rhs) {
|
|
2257
2238
|
const lhsAttribute = lhsMap.get(rhsAttribute.type);
|
|
2258
|
-
if (!areShallowObjectsEqual(lhsAttribute, rhsAttribute))
|
|
2259
|
-
return false;
|
|
2239
|
+
if (!areShallowObjectsEqual(lhsAttribute, rhsAttribute)) return false;
|
|
2260
2240
|
}
|
|
2261
2241
|
return true;
|
|
2262
2242
|
}
|
|
@@ -2699,7 +2679,9 @@ var PageBlockItemStorybookValue = z47.object({
|
|
|
2699
2679
|
caption: z47.string().optional(),
|
|
2700
2680
|
height: z47.number().optional(),
|
|
2701
2681
|
embedUrl: z47.string().optional(),
|
|
2702
|
-
value: z47.string().optional()
|
|
2682
|
+
value: z47.string().optional(),
|
|
2683
|
+
storyId: z47.string().optional(),
|
|
2684
|
+
sourceId: z47.string().optional()
|
|
2703
2685
|
});
|
|
2704
2686
|
var PageBlockItemTextValue = z47.object({
|
|
2705
2687
|
value: z47.string()
|
|
@@ -3011,8 +2993,7 @@ function figmaFileStructureToMap(root) {
|
|
|
3011
2993
|
}
|
|
3012
2994
|
function recursiveFigmaFileStructureToMap(node, map) {
|
|
3013
2995
|
map.set(node.id, node);
|
|
3014
|
-
for (const child of node.children)
|
|
3015
|
-
recursiveFigmaFileStructureToMap(child, map);
|
|
2996
|
+
for (const child of node.children) recursiveFigmaFileStructureToMap(child, map);
|
|
3016
2997
|
}
|
|
3017
2998
|
|
|
3018
2999
|
// src/dsm/elements/data/figma-node-reference.ts
|
|
@@ -3551,8 +3532,7 @@ function mapPageBlockItemValuesV2(pageItems, definitionsMap, fn) {
|
|
|
3551
3532
|
traversePageBlockItemsV2(pageItems, (block, item) => {
|
|
3552
3533
|
Object.entries(item.props).forEach(([propKey, value]) => {
|
|
3553
3534
|
const property = definitionsMap.getDefinitionProperty(block.data.packageId, propKey);
|
|
3554
|
-
if (!property)
|
|
3555
|
-
return;
|
|
3535
|
+
if (!property) return;
|
|
3556
3536
|
item.props[propKey] = fn(block, item, property, value);
|
|
3557
3537
|
});
|
|
3558
3538
|
});
|
|
@@ -3561,8 +3541,7 @@ function traversePageBlockItemValuesV2(pageItems, definitionsMap, fn) {
|
|
|
3561
3541
|
traversePageBlockItemsV2(pageItems, (block, item) => {
|
|
3562
3542
|
Object.entries(item.props).forEach(([propKey, value]) => {
|
|
3563
3543
|
const property = definitionsMap.getDefinitionProperty(block.data.packageId, propKey);
|
|
3564
|
-
if (!property)
|
|
3565
|
-
return;
|
|
3544
|
+
if (!property) return;
|
|
3566
3545
|
fn(block, item, property, value);
|
|
3567
3546
|
});
|
|
3568
3547
|
});
|
|
@@ -3659,7 +3638,7 @@ function zeroNumberByDefault() {
|
|
|
3659
3638
|
}
|
|
3660
3639
|
|
|
3661
3640
|
// src/dsm/data-sources/data-source.ts
|
|
3662
|
-
var DataSourceRemoteType = z91.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
|
|
3641
|
+
var DataSourceRemoteType = z91.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin", "Storybook"]);
|
|
3663
3642
|
var DataSourceUploadRemoteSource = z91.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
|
|
3664
3643
|
var DataSourceFigmaState = z91.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
|
|
3665
3644
|
var DataSourceAutoImportMode = z91.enum(["Never", "Hourly"]);
|
|
@@ -3719,10 +3698,22 @@ var DataSourceUploadRemote = z91.object({
|
|
|
3719
3698
|
isTokenTypeSplitEnabled: z91.boolean(),
|
|
3720
3699
|
isCollectionsMigrationCompleted: z91.boolean()
|
|
3721
3700
|
});
|
|
3701
|
+
var DataSourceStorybookRemote = z91.object({
|
|
3702
|
+
type: z91.literal(DataSourceRemoteType.Enum.Storybook),
|
|
3703
|
+
indexUrl: z91.string(),
|
|
3704
|
+
userUrl: z91.string(),
|
|
3705
|
+
ownerId: z91.string().optional(),
|
|
3706
|
+
lastImportedAt: z91.coerce.date().optional(),
|
|
3707
|
+
lastImportedSuccessfully: z91.coerce.date().optional(),
|
|
3708
|
+
isFailed: z91.boolean(),
|
|
3709
|
+
storiesCount: z91.number(),
|
|
3710
|
+
docsCount: z91.number()
|
|
3711
|
+
});
|
|
3722
3712
|
var DataSourceRemote = z91.discriminatedUnion("type", [
|
|
3723
3713
|
DataSourceFigmaRemote,
|
|
3724
3714
|
DataSourceUploadRemote,
|
|
3725
|
-
DataSourceTokenStudioRemote
|
|
3715
|
+
DataSourceTokenStudioRemote,
|
|
3716
|
+
DataSourceStorybookRemote
|
|
3726
3717
|
]);
|
|
3727
3718
|
var DataSource = z91.object({
|
|
3728
3719
|
id: z91.string(),
|
|
@@ -3808,15 +3799,11 @@ var FigmaImportBaseContext = z94.object({
|
|
|
3808
3799
|
importWarnings: z94.record(ImportWarning.array()).default({})
|
|
3809
3800
|
});
|
|
3810
3801
|
var FeatureFlagsKeepAliases = z94.object({
|
|
3811
|
-
isTypographyPropsKeepAliasesEnabled: z94.boolean().default(false),
|
|
3812
|
-
isGradientPropsKeepAliasesEnabled: z94.boolean().default(false),
|
|
3813
|
-
isShadowPropsKeepAliasesEnabled: z94.boolean().default(false),
|
|
3814
3802
|
isNonCompatibleTypeChangesEnabled: z94.boolean().default(false),
|
|
3815
3803
|
isTypographyUseFontStyleEnabled: z94.boolean().default(false)
|
|
3816
3804
|
});
|
|
3817
3805
|
var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
|
|
3818
3806
|
sourcesWithMissingAccess: z94.array(z94.string()).default([]),
|
|
3819
|
-
shadowOpacityOptional: z94.boolean().default(false),
|
|
3820
3807
|
featureFlagsKeepAliases: FeatureFlagsKeepAliases.default({})
|
|
3821
3808
|
});
|
|
3822
3809
|
var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
|
|
@@ -3957,20 +3944,18 @@ var FigmaComponentImportModelPart = z99.object({
|
|
|
3957
3944
|
parentComponentId: z99.string().optional(),
|
|
3958
3945
|
componentPropertyDefinitions: FigmaComponentPropertyMap.optional(),
|
|
3959
3946
|
variantPropertyValues: z99.record(z99.string()).optional(),
|
|
3960
|
-
renderNodeId: z99.string()
|
|
3947
|
+
renderNodeId: z99.string(),
|
|
3948
|
+
svg: FigmaSvgRenderImportModel.optional()
|
|
3961
3949
|
});
|
|
3962
3950
|
var FigmaComponentImportModel = ImportModelBase.extend(FigmaComponentImportModelPart.shape).extend({
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
origin: FigmaComponentOrigin
|
|
3951
|
+
origin: FigmaComponentOrigin,
|
|
3952
|
+
isAsset: z99.boolean()
|
|
3966
3953
|
});
|
|
3967
3954
|
var FigmaComponentImportModelInput = ImportModelInputBase.extend(FigmaComponentImportModelPart.shape).extend({
|
|
3968
|
-
originMetadata: FigmaComponentOriginPart
|
|
3969
|
-
|
|
3970
|
-
var AssetImportModelInput = ImportModelInputBase.extend(FigmaComponentImportModelPart.shape).extend({
|
|
3971
|
-
svg: FigmaSvgRenderImportModel,
|
|
3972
|
-
originMetadata: FigmaComponentOriginPart
|
|
3955
|
+
originMetadata: FigmaComponentOriginPart,
|
|
3956
|
+
isAsset: z99.boolean().optional()
|
|
3973
3957
|
});
|
|
3958
|
+
var AssetImportModelInput = FigmaComponentImportModelInput;
|
|
3974
3959
|
|
|
3975
3960
|
// src/dsm/import/data-source.ts
|
|
3976
3961
|
import { z as z100 } from "zod";
|
|
@@ -4006,8 +3991,7 @@ function figmaFileStructureImportModelToMap(root) {
|
|
|
4006
3991
|
}
|
|
4007
3992
|
function recursiveFigmaFileStructureToMap2(node, map) {
|
|
4008
3993
|
map.set(node.id, node);
|
|
4009
|
-
for (const child of node.children)
|
|
4010
|
-
recursiveFigmaFileStructureToMap2(child, map);
|
|
3994
|
+
for (const child of node.children) recursiveFigmaFileStructureToMap2(child, map);
|
|
4011
3995
|
}
|
|
4012
3996
|
|
|
4013
3997
|
// src/dsm/import/theme.ts
|
|
@@ -4971,95 +4955,128 @@ var PublishedDoc = z151.object({
|
|
|
4971
4955
|
assetCount: z151.number()
|
|
4972
4956
|
});
|
|
4973
4957
|
|
|
4974
|
-
// src/dsm/
|
|
4958
|
+
// src/dsm/storybook-entry.ts
|
|
4975
4959
|
import { z as z152 } from "zod";
|
|
4976
|
-
var
|
|
4960
|
+
var StorybookEntryOrigin = z152.object({
|
|
4977
4961
|
id: z152.string(),
|
|
4978
|
-
|
|
4979
|
-
createdAt: z152.coerce.date(),
|
|
4980
|
-
designSystemId: z152.string(),
|
|
4962
|
+
type: z152.enum(["story", "docs"]),
|
|
4981
4963
|
name: z152.string(),
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
isDraftsFeatureAdopted: z152.boolean()
|
|
4987
|
-
});
|
|
4988
|
-
var VersionCreationJobStatus = z152.enum(["Success", "InProgress", "Error"]);
|
|
4989
|
-
var VersionCreationJob = z152.object({
|
|
4964
|
+
title: z152.string()
|
|
4965
|
+
// Same as 'kind' for v3
|
|
4966
|
+
});
|
|
4967
|
+
var StorybookEntry = z152.object({
|
|
4990
4968
|
id: z152.string(),
|
|
4991
|
-
|
|
4969
|
+
storyId: z152.string(),
|
|
4992
4970
|
designSystemId: z152.string(),
|
|
4993
|
-
|
|
4971
|
+
sourceId: z152.string(),
|
|
4972
|
+
aliases: z152.array(z152.string()).optional(),
|
|
4973
|
+
url: z152.string(),
|
|
4974
|
+
isDeleted: z152.boolean().optional(),
|
|
4975
|
+
origin: StorybookEntryOrigin,
|
|
4976
|
+
createdAt: z152.coerce.date(),
|
|
4977
|
+
updatedAt: z152.coerce.date()
|
|
4978
|
+
});
|
|
4979
|
+
|
|
4980
|
+
// src/dsm/storybook-payload.ts
|
|
4981
|
+
import { z as z153 } from "zod";
|
|
4982
|
+
var StorybookPayload = z153.object({
|
|
4983
|
+
id: z153.string(),
|
|
4984
|
+
designSystemId: z153.string(),
|
|
4985
|
+
sourceId: z153.string(),
|
|
4986
|
+
payload: z153.any(),
|
|
4987
|
+
createdAt: z153.coerce.date(),
|
|
4988
|
+
updatedAt: z153.coerce.date()
|
|
4989
|
+
});
|
|
4990
|
+
|
|
4991
|
+
// src/dsm/version.ts
|
|
4992
|
+
import { z as z154 } from "zod";
|
|
4993
|
+
var DesignSystemVersion = z154.object({
|
|
4994
|
+
id: z154.string(),
|
|
4995
|
+
version: z154.string(),
|
|
4996
|
+
createdAt: z154.coerce.date(),
|
|
4997
|
+
designSystemId: z154.string(),
|
|
4998
|
+
name: z154.string(),
|
|
4999
|
+
comment: z154.string(),
|
|
5000
|
+
isReadonly: z154.boolean(),
|
|
5001
|
+
changeLog: z154.string(),
|
|
5002
|
+
parentId: z154.string().optional(),
|
|
5003
|
+
isDraftsFeatureAdopted: z154.boolean()
|
|
5004
|
+
});
|
|
5005
|
+
var VersionCreationJobStatus = z154.enum(["Success", "InProgress", "Error"]);
|
|
5006
|
+
var VersionCreationJob = z154.object({
|
|
5007
|
+
id: z154.string(),
|
|
5008
|
+
version: z154.string(),
|
|
5009
|
+
designSystemId: z154.string(),
|
|
5010
|
+
designSystemVersionId: nullishToOptional(z154.string()),
|
|
4994
5011
|
status: VersionCreationJobStatus,
|
|
4995
|
-
errorMessage: nullishToOptional(
|
|
5012
|
+
errorMessage: nullishToOptional(z154.string())
|
|
4996
5013
|
});
|
|
4997
5014
|
|
|
4998
5015
|
// src/export/export-destinations.ts
|
|
4999
5016
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
5000
5017
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
5001
|
-
var ExportJobDocumentationChanges =
|
|
5002
|
-
pagePersistentIds:
|
|
5003
|
-
groupPersistentIds:
|
|
5018
|
+
var ExportJobDocumentationChanges = z155.object({
|
|
5019
|
+
pagePersistentIds: z155.string().array(),
|
|
5020
|
+
groupPersistentIds: z155.string().array()
|
|
5004
5021
|
});
|
|
5005
|
-
var ExporterDestinationDocs =
|
|
5022
|
+
var ExporterDestinationDocs = z155.object({
|
|
5006
5023
|
environment: PublishedDocEnvironment,
|
|
5007
5024
|
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
5008
5025
|
});
|
|
5009
|
-
var GitCommonDestinationOptions =
|
|
5010
|
-
branch:
|
|
5011
|
-
relativePath: nullishToOptional(
|
|
5012
|
-
purgeDirectory: nullishToOptional(
|
|
5013
|
-
commitAuthorName: nullishToOptional(
|
|
5014
|
-
commitAuthorEmail: nullishToOptional(
|
|
5015
|
-
commitMessage: nullishToOptional(
|
|
5016
|
-
pullRequestTitle: nullishToOptional(
|
|
5017
|
-
pullRequestDescription: nullishToOptional(
|
|
5018
|
-
});
|
|
5019
|
-
var ExporterDestinationS3 =
|
|
5020
|
-
var ExporterDestinationGithub =
|
|
5021
|
-
credentialId:
|
|
5026
|
+
var GitCommonDestinationOptions = z155.object({
|
|
5027
|
+
branch: z155.string(),
|
|
5028
|
+
relativePath: nullishToOptional(z155.string()),
|
|
5029
|
+
purgeDirectory: nullishToOptional(z155.boolean()),
|
|
5030
|
+
commitAuthorName: nullishToOptional(z155.string()),
|
|
5031
|
+
commitAuthorEmail: nullishToOptional(z155.string()),
|
|
5032
|
+
commitMessage: nullishToOptional(z155.string()),
|
|
5033
|
+
pullRequestTitle: nullishToOptional(z155.string()),
|
|
5034
|
+
pullRequestDescription: nullishToOptional(z155.string())
|
|
5035
|
+
});
|
|
5036
|
+
var ExporterDestinationS3 = z155.object({});
|
|
5037
|
+
var ExporterDestinationGithub = z155.object({
|
|
5038
|
+
credentialId: z155.string().optional(),
|
|
5022
5039
|
// Repository
|
|
5023
|
-
url:
|
|
5040
|
+
url: z155.string(),
|
|
5024
5041
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
5025
|
-
connectionId: nullishToOptional(
|
|
5026
|
-
userId: nullishToOptional(
|
|
5042
|
+
connectionId: nullishToOptional(z155.string()),
|
|
5043
|
+
userId: nullishToOptional(z155.number())
|
|
5027
5044
|
}).extend(GitCommonDestinationOptions.shape);
|
|
5028
|
-
var ExporterDestinationAzure =
|
|
5029
|
-
credentialId:
|
|
5045
|
+
var ExporterDestinationAzure = z155.object({
|
|
5046
|
+
credentialId: z155.string().optional(),
|
|
5030
5047
|
// Repository
|
|
5031
|
-
organizationId:
|
|
5032
|
-
projectId:
|
|
5033
|
-
repositoryId:
|
|
5048
|
+
organizationId: z155.string(),
|
|
5049
|
+
projectId: z155.string(),
|
|
5050
|
+
repositoryId: z155.string(),
|
|
5034
5051
|
// Maybe not needed
|
|
5035
|
-
url: nullishToOptional(
|
|
5052
|
+
url: nullishToOptional(z155.string()),
|
|
5036
5053
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
5037
|
-
connectionId: nullishToOptional(
|
|
5038
|
-
userId: nullishToOptional(
|
|
5054
|
+
connectionId: nullishToOptional(z155.string()),
|
|
5055
|
+
userId: nullishToOptional(z155.number())
|
|
5039
5056
|
}).extend(GitCommonDestinationOptions.shape);
|
|
5040
|
-
var ExporterDestinationGitlab =
|
|
5041
|
-
credentialId:
|
|
5057
|
+
var ExporterDestinationGitlab = z155.object({
|
|
5058
|
+
credentialId: z155.string().optional(),
|
|
5042
5059
|
// Repository
|
|
5043
|
-
projectId:
|
|
5060
|
+
projectId: z155.string(),
|
|
5044
5061
|
// Maybe not needed
|
|
5045
|
-
url: nullishToOptional(
|
|
5062
|
+
url: nullishToOptional(z155.string()),
|
|
5046
5063
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
5047
|
-
connectionId: nullishToOptional(
|
|
5048
|
-
userId: nullishToOptional(
|
|
5064
|
+
connectionId: nullishToOptional(z155.string()),
|
|
5065
|
+
userId: nullishToOptional(z155.number())
|
|
5049
5066
|
}).extend(GitCommonDestinationOptions.shape);
|
|
5050
|
-
var ExporterDestinationBitbucket =
|
|
5051
|
-
credentialId:
|
|
5067
|
+
var ExporterDestinationBitbucket = z155.object({
|
|
5068
|
+
credentialId: z155.string().optional(),
|
|
5052
5069
|
// Repository
|
|
5053
|
-
workspaceSlug:
|
|
5054
|
-
projectKey:
|
|
5055
|
-
repoSlug:
|
|
5056
|
-
url: nullishToOptional(
|
|
5070
|
+
workspaceSlug: z155.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
5071
|
+
projectKey: z155.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
5072
|
+
repoSlug: z155.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
5073
|
+
url: nullishToOptional(z155.string()),
|
|
5057
5074
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
5058
|
-
connectionId: nullishToOptional(
|
|
5059
|
-
userId: nullishToOptional(
|
|
5075
|
+
connectionId: nullishToOptional(z155.string()),
|
|
5076
|
+
userId: nullishToOptional(z155.number())
|
|
5060
5077
|
}).extend(GitCommonDestinationOptions.shape);
|
|
5061
|
-
var ExportDestinationsMap =
|
|
5062
|
-
webhookUrl:
|
|
5078
|
+
var ExportDestinationsMap = z155.object({
|
|
5079
|
+
webhookUrl: z155.string().optional(),
|
|
5063
5080
|
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
5064
5081
|
destinationS3: ExporterDestinationS3.optional(),
|
|
5065
5082
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -5067,8 +5084,8 @@ var ExportDestinationsMap = z153.object({
|
|
|
5067
5084
|
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
5068
5085
|
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
5069
5086
|
});
|
|
5070
|
-
var ExportDestinationsMapUpdate =
|
|
5071
|
-
webhookUrl:
|
|
5087
|
+
var ExportDestinationsMapUpdate = z155.object({
|
|
5088
|
+
webhookUrl: z155.string().nullish(),
|
|
5072
5089
|
destinationSnDocs: ExporterDestinationDocs.nullish(),
|
|
5073
5090
|
destinationS3: ExporterDestinationS3.nullish(),
|
|
5074
5091
|
destinationGithub: ExporterDestinationGithub.nullish(),
|
|
@@ -5078,115 +5095,115 @@ var ExportDestinationsMapUpdate = z153.object({
|
|
|
5078
5095
|
});
|
|
5079
5096
|
|
|
5080
5097
|
// src/export/pipeline.ts
|
|
5081
|
-
var PipelineEventType =
|
|
5082
|
-
var PipelineDestinationGitType =
|
|
5083
|
-
var PipelineDestinationExtraType =
|
|
5084
|
-
var PipelineDestinationType =
|
|
5085
|
-
var Pipeline =
|
|
5086
|
-
id:
|
|
5087
|
-
name:
|
|
5098
|
+
var PipelineEventType = z156.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
5099
|
+
var PipelineDestinationGitType = z156.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
5100
|
+
var PipelineDestinationExtraType = z156.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
5101
|
+
var PipelineDestinationType = z156.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
5102
|
+
var Pipeline = z156.object({
|
|
5103
|
+
id: z156.string(),
|
|
5104
|
+
name: z156.string(),
|
|
5088
5105
|
eventType: PipelineEventType,
|
|
5089
|
-
isEnabled:
|
|
5090
|
-
workspaceId:
|
|
5091
|
-
designSystemId:
|
|
5092
|
-
exporterId:
|
|
5093
|
-
brandPersistentId:
|
|
5094
|
-
themePersistentId:
|
|
5095
|
-
themePersistentIds:
|
|
5106
|
+
isEnabled: z156.boolean(),
|
|
5107
|
+
workspaceId: z156.string(),
|
|
5108
|
+
designSystemId: z156.string(),
|
|
5109
|
+
exporterId: z156.string(),
|
|
5110
|
+
brandPersistentId: z156.string().optional(),
|
|
5111
|
+
themePersistentId: z156.string().optional(),
|
|
5112
|
+
themePersistentIds: z156.string().array().optional(),
|
|
5096
5113
|
exporterPropertyValues: ExporterPropertyValueMap.optional(),
|
|
5097
|
-
isExporterDeprecated:
|
|
5114
|
+
isExporterDeprecated: z156.boolean(),
|
|
5098
5115
|
// Destinations
|
|
5099
5116
|
...ExportDestinationsMap.shape
|
|
5100
5117
|
});
|
|
5101
5118
|
|
|
5102
5119
|
// src/data-dumps/code-integration-dump.ts
|
|
5103
|
-
var ExportJobDump =
|
|
5104
|
-
id:
|
|
5105
|
-
createdAt:
|
|
5106
|
-
finishedAt:
|
|
5107
|
-
exportArtefacts:
|
|
5120
|
+
var ExportJobDump = z157.object({
|
|
5121
|
+
id: z157.string(),
|
|
5122
|
+
createdAt: z157.coerce.date(),
|
|
5123
|
+
finishedAt: z157.coerce.date(),
|
|
5124
|
+
exportArtefacts: z157.string()
|
|
5108
5125
|
});
|
|
5109
|
-
var CodeIntegrationDump =
|
|
5126
|
+
var CodeIntegrationDump = z157.object({
|
|
5110
5127
|
exporters: Exporter.array(),
|
|
5111
5128
|
pipelines: Pipeline.array(),
|
|
5112
5129
|
exportJobs: ExportJobDump.array()
|
|
5113
5130
|
});
|
|
5114
5131
|
|
|
5115
5132
|
// src/data-dumps/design-system-dump.ts
|
|
5116
|
-
import { z as
|
|
5133
|
+
import { z as z164 } from "zod";
|
|
5117
5134
|
|
|
5118
5135
|
// src/data-dumps/design-system-version-dump.ts
|
|
5119
|
-
import { z as
|
|
5136
|
+
import { z as z163 } from "zod";
|
|
5120
5137
|
|
|
5121
5138
|
// src/liveblocks/rooms/design-system-version-room.ts
|
|
5122
|
-
import { z as
|
|
5139
|
+
import { z as z158 } from "zod";
|
|
5123
5140
|
var DesignSystemVersionRoom = Entity.extend({
|
|
5124
|
-
designSystemVersionId:
|
|
5125
|
-
liveblocksId:
|
|
5126
|
-
});
|
|
5127
|
-
var DesignSystemVersionRoomInternalSettings =
|
|
5128
|
-
routingVersion:
|
|
5129
|
-
isDraftFeatureAdopted:
|
|
5130
|
-
isApprovalFeatureEnabled:
|
|
5131
|
-
approvalRequiredForPublishing:
|
|
5132
|
-
});
|
|
5133
|
-
var DesignSystemVersionRoomInitialState =
|
|
5134
|
-
pages:
|
|
5135
|
-
groups:
|
|
5136
|
-
pageSnapshots:
|
|
5137
|
-
groupSnapshots:
|
|
5138
|
-
pageApprovals:
|
|
5141
|
+
designSystemVersionId: z158.string(),
|
|
5142
|
+
liveblocksId: z158.string()
|
|
5143
|
+
});
|
|
5144
|
+
var DesignSystemVersionRoomInternalSettings = z158.object({
|
|
5145
|
+
routingVersion: z158.string(),
|
|
5146
|
+
isDraftFeatureAdopted: z158.boolean(),
|
|
5147
|
+
isApprovalFeatureEnabled: z158.boolean(),
|
|
5148
|
+
approvalRequiredForPublishing: z158.boolean()
|
|
5149
|
+
});
|
|
5150
|
+
var DesignSystemVersionRoomInitialState = z158.object({
|
|
5151
|
+
pages: z158.array(DocumentationPageV2),
|
|
5152
|
+
groups: z158.array(ElementGroup),
|
|
5153
|
+
pageSnapshots: z158.array(DocumentationPageSnapshot),
|
|
5154
|
+
groupSnapshots: z158.array(ElementGroupSnapshot),
|
|
5155
|
+
pageApprovals: z158.array(DocumentationPageApproval),
|
|
5139
5156
|
internalSettings: DesignSystemVersionRoomInternalSettings,
|
|
5140
|
-
pageHashes:
|
|
5141
|
-
});
|
|
5142
|
-
var DesignSystemVersionRoomUpdate =
|
|
5143
|
-
pages:
|
|
5144
|
-
groups:
|
|
5145
|
-
pageIdsToDelete:
|
|
5146
|
-
groupIdsToDelete:
|
|
5147
|
-
pageSnapshots:
|
|
5148
|
-
groupSnapshots:
|
|
5149
|
-
pageSnapshotIdsToDelete:
|
|
5150
|
-
groupSnapshotIdsToDelete:
|
|
5151
|
-
pageHashesToUpdate:
|
|
5152
|
-
pageApprovals:
|
|
5153
|
-
pageApprovalIdsToDelete:
|
|
5154
|
-
executedTransactionIds:
|
|
5157
|
+
pageHashes: z158.record(z158.string()).optional()
|
|
5158
|
+
});
|
|
5159
|
+
var DesignSystemVersionRoomUpdate = z158.object({
|
|
5160
|
+
pages: z158.array(DocumentationPageV2),
|
|
5161
|
+
groups: z158.array(ElementGroup),
|
|
5162
|
+
pageIdsToDelete: z158.array(z158.string()),
|
|
5163
|
+
groupIdsToDelete: z158.array(z158.string()),
|
|
5164
|
+
pageSnapshots: z158.array(DocumentationPageSnapshot),
|
|
5165
|
+
groupSnapshots: z158.array(ElementGroupSnapshot),
|
|
5166
|
+
pageSnapshotIdsToDelete: z158.array(z158.string()),
|
|
5167
|
+
groupSnapshotIdsToDelete: z158.array(z158.string()),
|
|
5168
|
+
pageHashesToUpdate: z158.record(z158.string(), z158.string()),
|
|
5169
|
+
pageApprovals: z158.array(DocumentationPageApproval),
|
|
5170
|
+
pageApprovalIdsToDelete: z158.array(z158.string()),
|
|
5171
|
+
executedTransactionIds: z158.array(z158.string())
|
|
5155
5172
|
});
|
|
5156
5173
|
|
|
5157
5174
|
// src/liveblocks/rooms/documentation-page-room.ts
|
|
5158
|
-
import { z as
|
|
5175
|
+
import { z as z159 } from "zod";
|
|
5159
5176
|
var DocumentationPageRoom = Entity.extend({
|
|
5160
|
-
designSystemVersionId:
|
|
5161
|
-
documentationPageId:
|
|
5162
|
-
liveblocksId:
|
|
5163
|
-
isDirty:
|
|
5177
|
+
designSystemVersionId: z159.string(),
|
|
5178
|
+
documentationPageId: z159.string(),
|
|
5179
|
+
liveblocksId: z159.string(),
|
|
5180
|
+
isDirty: z159.boolean()
|
|
5164
5181
|
});
|
|
5165
|
-
var DocumentationPageRoomState =
|
|
5166
|
-
pageItems:
|
|
5182
|
+
var DocumentationPageRoomState = z159.object({
|
|
5183
|
+
pageItems: z159.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
5167
5184
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
5168
5185
|
});
|
|
5169
|
-
var DocumentationPageRoomRoomUpdate =
|
|
5186
|
+
var DocumentationPageRoomRoomUpdate = z159.object({
|
|
5170
5187
|
page: DocumentationPageV2,
|
|
5171
5188
|
pageParent: ElementGroup
|
|
5172
5189
|
});
|
|
5173
5190
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
5174
|
-
pageItems:
|
|
5175
|
-
blockDefinitions:
|
|
5191
|
+
pageItems: z159.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
5192
|
+
blockDefinitions: z159.array(PageBlockDefinition)
|
|
5176
5193
|
});
|
|
5177
|
-
var RestoredDocumentationPage =
|
|
5194
|
+
var RestoredDocumentationPage = z159.object({
|
|
5178
5195
|
page: DocumentationPageV2,
|
|
5179
5196
|
pageParent: ElementGroup,
|
|
5180
5197
|
pageContent: DocumentationPageContentData,
|
|
5181
|
-
contentHash:
|
|
5198
|
+
contentHash: z159.string()
|
|
5182
5199
|
});
|
|
5183
|
-
var RestoredDocumentationGroup =
|
|
5200
|
+
var RestoredDocumentationGroup = z159.object({
|
|
5184
5201
|
group: ElementGroup,
|
|
5185
5202
|
parent: ElementGroup
|
|
5186
5203
|
});
|
|
5187
5204
|
|
|
5188
5205
|
// src/liveblocks/rooms/room-type.ts
|
|
5189
|
-
import { z as
|
|
5206
|
+
import { z as z160 } from "zod";
|
|
5190
5207
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
5191
5208
|
RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
|
|
5192
5209
|
RoomTypeEnum2["DocumentationPage"] = "doc-page";
|
|
@@ -5194,36 +5211,36 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
|
5194
5211
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
5195
5212
|
return RoomTypeEnum2;
|
|
5196
5213
|
})(RoomTypeEnum || {});
|
|
5197
|
-
var RoomTypeSchema =
|
|
5214
|
+
var RoomTypeSchema = z160.nativeEnum(RoomTypeEnum);
|
|
5198
5215
|
var RoomType = RoomTypeSchema.enum;
|
|
5199
5216
|
|
|
5200
5217
|
// src/liveblocks/rooms/workspace-room.ts
|
|
5201
|
-
import { z as
|
|
5218
|
+
import { z as z161 } from "zod";
|
|
5202
5219
|
var WorkspaceRoom = Entity.extend({
|
|
5203
|
-
workspaceId:
|
|
5204
|
-
liveblocksId:
|
|
5220
|
+
workspaceId: z161.string(),
|
|
5221
|
+
liveblocksId: z161.string()
|
|
5205
5222
|
});
|
|
5206
5223
|
|
|
5207
5224
|
// src/data-dumps/published-docs-dump.ts
|
|
5208
|
-
import { z as
|
|
5209
|
-
var PublishedDocsDump =
|
|
5225
|
+
import { z as z162 } from "zod";
|
|
5226
|
+
var PublishedDocsDump = z162.object({
|
|
5210
5227
|
documentation: PublishedDoc,
|
|
5211
5228
|
pages: PublishedDocPage.array()
|
|
5212
5229
|
});
|
|
5213
5230
|
|
|
5214
5231
|
// src/data-dumps/design-system-version-dump.ts
|
|
5215
|
-
var DocumentationThreadDump =
|
|
5232
|
+
var DocumentationThreadDump = z163.object({
|
|
5216
5233
|
thread: DocumentationCommentThread,
|
|
5217
5234
|
comments: DocumentationComment.array()
|
|
5218
5235
|
});
|
|
5219
|
-
var DocumentationPageRoomDump =
|
|
5236
|
+
var DocumentationPageRoomDump = z163.object({
|
|
5220
5237
|
room: DocumentationPageRoom,
|
|
5221
5238
|
threads: DocumentationThreadDump.array()
|
|
5222
5239
|
});
|
|
5223
|
-
var DesignSystemVersionMultiplayerDump =
|
|
5240
|
+
var DesignSystemVersionMultiplayerDump = z163.object({
|
|
5224
5241
|
documentationPages: DocumentationPageRoomDump.array()
|
|
5225
5242
|
});
|
|
5226
|
-
var DesignSystemVersionDump =
|
|
5243
|
+
var DesignSystemVersionDump = z163.object({
|
|
5227
5244
|
version: DesignSystemVersion,
|
|
5228
5245
|
brands: Brand.array(),
|
|
5229
5246
|
elements: DesignElement.array(),
|
|
@@ -5238,7 +5255,7 @@ var DesignSystemVersionDump = z161.object({
|
|
|
5238
5255
|
});
|
|
5239
5256
|
|
|
5240
5257
|
// src/data-dumps/design-system-dump.ts
|
|
5241
|
-
var DesignSystemDump =
|
|
5258
|
+
var DesignSystemDump = z164.object({
|
|
5242
5259
|
designSystem: DesignSystem,
|
|
5243
5260
|
dataSources: DataSource.array(),
|
|
5244
5261
|
versions: DesignSystemVersionDump.array(),
|
|
@@ -5247,50 +5264,50 @@ var DesignSystemDump = z162.object({
|
|
|
5247
5264
|
});
|
|
5248
5265
|
|
|
5249
5266
|
// src/data-dumps/user-data-dump.ts
|
|
5250
|
-
import { z as
|
|
5267
|
+
import { z as z167 } from "zod";
|
|
5251
5268
|
|
|
5252
5269
|
// src/data-dumps/workspace-dump.ts
|
|
5253
|
-
import { z as
|
|
5270
|
+
import { z as z166 } from "zod";
|
|
5254
5271
|
|
|
5255
5272
|
// src/integrations/integration.ts
|
|
5256
|
-
import { z as
|
|
5257
|
-
var IntegrationDesignSystem =
|
|
5258
|
-
designSystemId:
|
|
5259
|
-
brandId:
|
|
5260
|
-
title:
|
|
5261
|
-
userId:
|
|
5262
|
-
date:
|
|
5263
|
-
});
|
|
5264
|
-
var IntegrationCredentialsType =
|
|
5265
|
-
var IntegrationCredentialsState =
|
|
5266
|
-
var IntegrationCredentialsProfile =
|
|
5267
|
-
id: nullishToOptional(
|
|
5268
|
-
email: nullishToOptional(
|
|
5269
|
-
handle: nullishToOptional(
|
|
5270
|
-
type: nullishToOptional(
|
|
5271
|
-
avatarUrl: nullishToOptional(
|
|
5272
|
-
organization: nullishToOptional(
|
|
5273
|
-
collection: nullishToOptional(
|
|
5274
|
-
});
|
|
5275
|
-
var IntegrationCredentials =
|
|
5276
|
-
id:
|
|
5273
|
+
import { z as z165 } from "zod";
|
|
5274
|
+
var IntegrationDesignSystem = z165.object({
|
|
5275
|
+
designSystemId: z165.string(),
|
|
5276
|
+
brandId: z165.string(),
|
|
5277
|
+
title: z165.string().optional(),
|
|
5278
|
+
userId: z165.string().optional(),
|
|
5279
|
+
date: z165.coerce.date().optional()
|
|
5280
|
+
});
|
|
5281
|
+
var IntegrationCredentialsType = z165.enum(["OAuth2", "PAT"]);
|
|
5282
|
+
var IntegrationCredentialsState = z165.enum(["Active", "Inactive"]);
|
|
5283
|
+
var IntegrationCredentialsProfile = z165.object({
|
|
5284
|
+
id: nullishToOptional(z165.string()),
|
|
5285
|
+
email: nullishToOptional(z165.string()),
|
|
5286
|
+
handle: nullishToOptional(z165.string()),
|
|
5287
|
+
type: nullishToOptional(z165.string()),
|
|
5288
|
+
avatarUrl: nullishToOptional(z165.string()),
|
|
5289
|
+
organization: nullishToOptional(z165.string()),
|
|
5290
|
+
collection: nullishToOptional(z165.string())
|
|
5291
|
+
});
|
|
5292
|
+
var IntegrationCredentials = z165.object({
|
|
5293
|
+
id: z165.string(),
|
|
5277
5294
|
type: IntegrationCredentialsType,
|
|
5278
|
-
integrationId:
|
|
5279
|
-
accessToken:
|
|
5280
|
-
userId:
|
|
5281
|
-
createdAt:
|
|
5282
|
-
refreshToken:
|
|
5283
|
-
tokenName:
|
|
5284
|
-
expiresAt:
|
|
5285
|
-
refreshedAt:
|
|
5286
|
-
username:
|
|
5287
|
-
appInstallationId:
|
|
5295
|
+
integrationId: z165.string(),
|
|
5296
|
+
accessToken: z165.string(),
|
|
5297
|
+
userId: z165.string(),
|
|
5298
|
+
createdAt: z165.coerce.date(),
|
|
5299
|
+
refreshToken: z165.string().optional(),
|
|
5300
|
+
tokenName: z165.string().optional(),
|
|
5301
|
+
expiresAt: z165.coerce.date().optional(),
|
|
5302
|
+
refreshedAt: z165.coerce.date().optional(),
|
|
5303
|
+
username: z165.string().optional(),
|
|
5304
|
+
appInstallationId: z165.string().optional(),
|
|
5288
5305
|
profile: IntegrationCredentialsProfile.optional(),
|
|
5289
|
-
customUrl:
|
|
5306
|
+
customUrl: z165.string().optional(),
|
|
5290
5307
|
state: IntegrationCredentialsState,
|
|
5291
5308
|
user: UserMinified.optional()
|
|
5292
5309
|
});
|
|
5293
|
-
var ExtendedIntegrationType =
|
|
5310
|
+
var ExtendedIntegrationType = z165.enum([
|
|
5294
5311
|
"Figma",
|
|
5295
5312
|
"Github",
|
|
5296
5313
|
"Gitlab",
|
|
@@ -5301,28 +5318,27 @@ var ExtendedIntegrationType = z163.enum([
|
|
|
5301
5318
|
]);
|
|
5302
5319
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
5303
5320
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
5304
|
-
var Integration =
|
|
5305
|
-
id:
|
|
5306
|
-
workspaceId:
|
|
5321
|
+
var Integration = z165.object({
|
|
5322
|
+
id: z165.string(),
|
|
5323
|
+
workspaceId: z165.string(),
|
|
5307
5324
|
type: IntegrationType,
|
|
5308
|
-
createdAt:
|
|
5309
|
-
integrationCredentials:
|
|
5310
|
-
});
|
|
5311
|
-
var IntegrationToken =
|
|
5312
|
-
access_token:
|
|
5313
|
-
refresh_token:
|
|
5314
|
-
expires_in:
|
|
5315
|
-
token_type:
|
|
5316
|
-
token_name:
|
|
5317
|
-
token_azure_organization_name:
|
|
5325
|
+
createdAt: z165.coerce.date(),
|
|
5326
|
+
integrationCredentials: z165.array(IntegrationCredentials).optional()
|
|
5327
|
+
});
|
|
5328
|
+
var IntegrationToken = z165.object({
|
|
5329
|
+
access_token: z165.string(),
|
|
5330
|
+
refresh_token: z165.string().optional(),
|
|
5331
|
+
expires_in: z165.union([z165.number().optional(), z165.string().optional()]),
|
|
5332
|
+
token_type: z165.string().optional(),
|
|
5333
|
+
token_name: z165.string().optional(),
|
|
5334
|
+
token_azure_organization_name: z165.string().optional(),
|
|
5318
5335
|
// Azure Cloud PAT only
|
|
5319
|
-
token_azure_collection_name:
|
|
5336
|
+
token_azure_collection_name: z165.string().optional(),
|
|
5320
5337
|
// Azure Server PAT only
|
|
5321
|
-
token_bitbucket_username:
|
|
5338
|
+
token_bitbucket_username: z165.string().optional(),
|
|
5322
5339
|
// Bitbucket only
|
|
5323
|
-
custom_url:
|
|
5324
|
-
if (!value?.trim())
|
|
5325
|
-
return void 0;
|
|
5340
|
+
custom_url: z165.string().optional().transform((value) => {
|
|
5341
|
+
if (!value?.trim()) return void 0;
|
|
5326
5342
|
return formatCustomUrl(value);
|
|
5327
5343
|
})
|
|
5328
5344
|
}).refine((data) => {
|
|
@@ -5358,7 +5374,7 @@ function formatCustomUrl(url) {
|
|
|
5358
5374
|
}
|
|
5359
5375
|
|
|
5360
5376
|
// src/data-dumps/workspace-dump.ts
|
|
5361
|
-
var WorkspaceDump =
|
|
5377
|
+
var WorkspaceDump = z166.object({
|
|
5362
5378
|
workspace: Workspace,
|
|
5363
5379
|
designSystems: DesignSystemDump.array(),
|
|
5364
5380
|
codeIntegration: CodeIntegrationDump,
|
|
@@ -5366,124 +5382,124 @@ var WorkspaceDump = z164.object({
|
|
|
5366
5382
|
});
|
|
5367
5383
|
|
|
5368
5384
|
// src/data-dumps/user-data-dump.ts
|
|
5369
|
-
var UserDump =
|
|
5385
|
+
var UserDump = z167.object({
|
|
5370
5386
|
user: User,
|
|
5371
5387
|
workspaces: WorkspaceDump.array()
|
|
5372
5388
|
});
|
|
5373
5389
|
|
|
5374
5390
|
// src/docs-server/session.ts
|
|
5375
|
-
import { z as
|
|
5376
|
-
var NpmProxyToken =
|
|
5377
|
-
access:
|
|
5378
|
-
expiresAt:
|
|
5391
|
+
import { z as z168 } from "zod";
|
|
5392
|
+
var NpmProxyToken = z168.object({
|
|
5393
|
+
access: z168.string(),
|
|
5394
|
+
expiresAt: z168.number()
|
|
5379
5395
|
});
|
|
5380
|
-
var SessionData =
|
|
5381
|
-
returnToUrl:
|
|
5396
|
+
var SessionData = z168.object({
|
|
5397
|
+
returnToUrl: z168.string().optional(),
|
|
5382
5398
|
npmProxyToken: NpmProxyToken.optional()
|
|
5383
5399
|
});
|
|
5384
|
-
var Session =
|
|
5385
|
-
id:
|
|
5386
|
-
expiresAt:
|
|
5387
|
-
userId:
|
|
5388
|
-
anonymousId:
|
|
5400
|
+
var Session = z168.object({
|
|
5401
|
+
id: z168.string(),
|
|
5402
|
+
expiresAt: z168.coerce.date(),
|
|
5403
|
+
userId: z168.string().nullable(),
|
|
5404
|
+
anonymousId: z168.string().nullable(),
|
|
5389
5405
|
data: SessionData
|
|
5390
5406
|
});
|
|
5391
|
-
var AuthTokens =
|
|
5392
|
-
access:
|
|
5393
|
-
refresh:
|
|
5407
|
+
var AuthTokens = z168.object({
|
|
5408
|
+
access: z168.string(),
|
|
5409
|
+
refresh: z168.string()
|
|
5394
5410
|
});
|
|
5395
|
-
var UserSession =
|
|
5411
|
+
var UserSession = z168.object({
|
|
5396
5412
|
session: Session,
|
|
5397
5413
|
user: User.nullable()
|
|
5398
5414
|
});
|
|
5399
5415
|
|
|
5400
5416
|
// src/emails/design-system-invite.ts
|
|
5401
|
-
import { z as
|
|
5402
|
-
var DesignSystemInviteEmailRecipient =
|
|
5403
|
-
email:
|
|
5417
|
+
import { z as z169 } from "zod";
|
|
5418
|
+
var DesignSystemInviteEmailRecipient = z169.object({
|
|
5419
|
+
email: z169.string(),
|
|
5404
5420
|
role: WorkspaceRoleSchema
|
|
5405
5421
|
});
|
|
5406
|
-
var DesignSystemInviteEmailData =
|
|
5422
|
+
var DesignSystemInviteEmailData = z169.object({
|
|
5407
5423
|
workspace: Workspace,
|
|
5408
5424
|
designSystem: DesignSystem,
|
|
5409
5425
|
invitedBy: User,
|
|
5410
|
-
documentationDomain:
|
|
5426
|
+
documentationDomain: z169.string().optional()
|
|
5411
5427
|
});
|
|
5412
5428
|
|
|
5413
5429
|
// src/emails/workspace-invite.ts
|
|
5414
|
-
import { z as
|
|
5415
|
-
var WorkspaceInviteEmailRecipient =
|
|
5416
|
-
email:
|
|
5430
|
+
import { z as z170 } from "zod";
|
|
5431
|
+
var WorkspaceInviteEmailRecipient = z170.object({
|
|
5432
|
+
email: z170.string(),
|
|
5417
5433
|
role: WorkspaceRoleSchema
|
|
5418
5434
|
});
|
|
5419
|
-
var WorkspaceInviteEmailData =
|
|
5435
|
+
var WorkspaceInviteEmailData = z170.object({
|
|
5420
5436
|
workspace: Workspace,
|
|
5421
5437
|
invitedBy: User,
|
|
5422
|
-
documentationDomain:
|
|
5438
|
+
documentationDomain: z170.string().optional()
|
|
5423
5439
|
});
|
|
5424
5440
|
|
|
5425
5441
|
// src/events/base.ts
|
|
5426
|
-
import { z as
|
|
5442
|
+
import { z as z173 } from "zod";
|
|
5427
5443
|
|
|
5428
5444
|
// src/events/data-source-imported.ts
|
|
5429
|
-
import { z as
|
|
5430
|
-
var EventDataSourceImported =
|
|
5431
|
-
type:
|
|
5432
|
-
workspaceId:
|
|
5433
|
-
designSystemId:
|
|
5445
|
+
import { z as z171 } from "zod";
|
|
5446
|
+
var EventDataSourceImported = z171.object({
|
|
5447
|
+
type: z171.literal("DataSourceImported"),
|
|
5448
|
+
workspaceId: z171.string(),
|
|
5449
|
+
designSystemId: z171.string()
|
|
5434
5450
|
});
|
|
5435
5451
|
|
|
5436
5452
|
// src/events/version-released.ts
|
|
5437
|
-
import { z as
|
|
5438
|
-
var EventVersionReleased =
|
|
5439
|
-
type:
|
|
5440
|
-
workspaceId:
|
|
5441
|
-
designSystemId:
|
|
5442
|
-
versionId:
|
|
5453
|
+
import { z as z172 } from "zod";
|
|
5454
|
+
var EventVersionReleased = z172.object({
|
|
5455
|
+
type: z172.literal("DesignSystemVersionReleased"),
|
|
5456
|
+
workspaceId: z172.string(),
|
|
5457
|
+
designSystemId: z172.string(),
|
|
5458
|
+
versionId: z172.string()
|
|
5443
5459
|
});
|
|
5444
5460
|
|
|
5445
5461
|
// src/events/base.ts
|
|
5446
|
-
var Event =
|
|
5462
|
+
var Event = z173.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
|
|
5447
5463
|
|
|
5448
5464
|
// src/export/export-runner/export-context.ts
|
|
5449
|
-
import { z as
|
|
5450
|
-
var ExportJobDocumentationContext =
|
|
5451
|
-
isSingleVersionDocs:
|
|
5452
|
-
versionSlug:
|
|
5465
|
+
import { z as z174 } from "zod";
|
|
5466
|
+
var ExportJobDocumentationContext = z174.object({
|
|
5467
|
+
isSingleVersionDocs: z174.boolean(),
|
|
5468
|
+
versionSlug: z174.string(),
|
|
5453
5469
|
environment: PublishedDocEnvironment
|
|
5454
5470
|
});
|
|
5455
|
-
var ExportJobContext =
|
|
5456
|
-
apiUrl:
|
|
5457
|
-
accessToken:
|
|
5458
|
-
designSystemId:
|
|
5459
|
-
designSystemName:
|
|
5460
|
-
exporterId:
|
|
5461
|
-
versionId:
|
|
5462
|
-
brandId:
|
|
5463
|
-
themeId:
|
|
5464
|
-
themePersistentIds:
|
|
5465
|
-
previewMode:
|
|
5466
|
-
exporterName:
|
|
5471
|
+
var ExportJobContext = z174.object({
|
|
5472
|
+
apiUrl: z174.string(),
|
|
5473
|
+
accessToken: z174.string(),
|
|
5474
|
+
designSystemId: z174.string(),
|
|
5475
|
+
designSystemName: z174.string(),
|
|
5476
|
+
exporterId: z174.string(),
|
|
5477
|
+
versionId: z174.string(),
|
|
5478
|
+
brandId: z174.string().optional(),
|
|
5479
|
+
themeId: z174.string().optional(),
|
|
5480
|
+
themePersistentIds: z174.string().array().optional(),
|
|
5481
|
+
previewMode: z174.boolean().optional(),
|
|
5482
|
+
exporterName: z174.string(),
|
|
5467
5483
|
documentation: ExportJobDocumentationContext.optional()
|
|
5468
5484
|
});
|
|
5469
|
-
var ExportJobExporterConfiguration =
|
|
5470
|
-
exporterPackageUrl:
|
|
5485
|
+
var ExportJobExporterConfiguration = z174.object({
|
|
5486
|
+
exporterPackageUrl: z174.string(),
|
|
5471
5487
|
exporterPropertyValues: ExporterConfigurationPropertyValue.array(),
|
|
5472
5488
|
exporterPropertyValuesV2: ExporterPropertyValueMap.optional()
|
|
5473
5489
|
});
|
|
5474
5490
|
|
|
5475
5491
|
// src/export/export-runner/exporter-payload.ts
|
|
5476
|
-
import { z as
|
|
5477
|
-
var ExporterFunctionPayload =
|
|
5478
|
-
exportJobId:
|
|
5479
|
-
exportContextId:
|
|
5480
|
-
designSystemId:
|
|
5481
|
-
workspaceId:
|
|
5492
|
+
import { z as z175 } from "zod";
|
|
5493
|
+
var ExporterFunctionPayload = z175.object({
|
|
5494
|
+
exportJobId: z175.string(),
|
|
5495
|
+
exportContextId: z175.string(),
|
|
5496
|
+
designSystemId: z175.string(),
|
|
5497
|
+
workspaceId: z175.string()
|
|
5482
5498
|
});
|
|
5483
5499
|
|
|
5484
5500
|
// src/export/export-jobs.ts
|
|
5485
|
-
import { z as
|
|
5486
|
-
var ExportJobDestinationType =
|
|
5501
|
+
import { z as z176 } from "zod";
|
|
5502
|
+
var ExportJobDestinationType = z176.enum([
|
|
5487
5503
|
"s3",
|
|
5488
5504
|
"webhookUrl",
|
|
5489
5505
|
"github",
|
|
@@ -5492,30 +5508,30 @@ var ExportJobDestinationType = z174.enum([
|
|
|
5492
5508
|
"gitlab",
|
|
5493
5509
|
"bitbucket"
|
|
5494
5510
|
]);
|
|
5495
|
-
var ExportJobStatus =
|
|
5496
|
-
var ExportJobLogEntryType =
|
|
5497
|
-
var ExportJobLogEntry =
|
|
5498
|
-
id:
|
|
5499
|
-
time:
|
|
5511
|
+
var ExportJobStatus = z176.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
5512
|
+
var ExportJobLogEntryType = z176.enum(["success", "info", "warning", "error", "user"]);
|
|
5513
|
+
var ExportJobLogEntry = z176.object({
|
|
5514
|
+
id: z176.string().optional(),
|
|
5515
|
+
time: z176.coerce.date(),
|
|
5500
5516
|
type: ExportJobLogEntryType,
|
|
5501
|
-
message:
|
|
5517
|
+
message: z176.string()
|
|
5502
5518
|
});
|
|
5503
|
-
var ExportJobPullRequestDestinationResult =
|
|
5504
|
-
pullRequestUrl:
|
|
5519
|
+
var ExportJobPullRequestDestinationResult = z176.object({
|
|
5520
|
+
pullRequestUrl: z176.string()
|
|
5505
5521
|
});
|
|
5506
|
-
var ExportJobS3DestinationResult =
|
|
5507
|
-
bucket:
|
|
5508
|
-
urlPrefix:
|
|
5509
|
-
path:
|
|
5510
|
-
files:
|
|
5511
|
-
url: nullishToOptional(
|
|
5512
|
-
urls: nullishToOptional(
|
|
5522
|
+
var ExportJobS3DestinationResult = z176.object({
|
|
5523
|
+
bucket: z176.string(),
|
|
5524
|
+
urlPrefix: z176.string().optional(),
|
|
5525
|
+
path: z176.string(),
|
|
5526
|
+
files: z176.array(z176.string()),
|
|
5527
|
+
url: nullishToOptional(z176.string()),
|
|
5528
|
+
urls: nullishToOptional(z176.string().array())
|
|
5513
5529
|
});
|
|
5514
|
-
var ExportJobDocsDestinationResult =
|
|
5515
|
-
url:
|
|
5530
|
+
var ExportJobDocsDestinationResult = z176.object({
|
|
5531
|
+
url: z176.string()
|
|
5516
5532
|
});
|
|
5517
|
-
var ExportJobResult =
|
|
5518
|
-
error:
|
|
5533
|
+
var ExportJobResult = z176.object({
|
|
5534
|
+
error: z176.string().optional(),
|
|
5519
5535
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
5520
5536
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
5521
5537
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -5524,24 +5540,24 @@ var ExportJobResult = z174.object({
|
|
|
5524
5540
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
5525
5541
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
5526
5542
|
});
|
|
5527
|
-
var ExportJob =
|
|
5528
|
-
id:
|
|
5529
|
-
createdAt:
|
|
5530
|
-
finishedAt:
|
|
5531
|
-
designSystemId:
|
|
5532
|
-
designSystemVersionId:
|
|
5533
|
-
workspaceId:
|
|
5534
|
-
scheduleId:
|
|
5535
|
-
exporterId:
|
|
5536
|
-
brandId:
|
|
5537
|
-
themeId:
|
|
5538
|
-
themePersistentIds:
|
|
5539
|
-
estimatedExecutionTime:
|
|
5543
|
+
var ExportJob = z176.object({
|
|
5544
|
+
id: z176.string(),
|
|
5545
|
+
createdAt: z176.coerce.date(),
|
|
5546
|
+
finishedAt: z176.coerce.date().optional(),
|
|
5547
|
+
designSystemId: z176.string(),
|
|
5548
|
+
designSystemVersionId: z176.string(),
|
|
5549
|
+
workspaceId: z176.string(),
|
|
5550
|
+
scheduleId: z176.string().nullish(),
|
|
5551
|
+
exporterId: z176.string(),
|
|
5552
|
+
brandId: z176.string().optional(),
|
|
5553
|
+
themeId: z176.string().optional(),
|
|
5554
|
+
themePersistentIds: z176.string().array().optional(),
|
|
5555
|
+
estimatedExecutionTime: z176.number().optional(),
|
|
5540
5556
|
status: ExportJobStatus,
|
|
5541
5557
|
result: ExportJobResult.optional(),
|
|
5542
|
-
createdByUserId:
|
|
5558
|
+
createdByUserId: z176.string().optional(),
|
|
5543
5559
|
exporterPropertyValues: ExporterPropertyValueMap.optional(),
|
|
5544
|
-
previewMode:
|
|
5560
|
+
previewMode: z176.boolean().optional(),
|
|
5545
5561
|
// Destinations
|
|
5546
5562
|
...ExportDestinationsMap.shape
|
|
5547
5563
|
});
|
|
@@ -5555,38 +5571,37 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
5555
5571
|
themeId: true,
|
|
5556
5572
|
brandId: true
|
|
5557
5573
|
}).extend({
|
|
5558
|
-
destinations:
|
|
5574
|
+
destinations: z176.array(ExportJobDestinationType),
|
|
5559
5575
|
docsEnvironment: PublishedDocEnvironment
|
|
5560
5576
|
}).partial();
|
|
5561
5577
|
|
|
5562
5578
|
// src/export/exporter-list-query.ts
|
|
5563
|
-
import { z as
|
|
5564
|
-
var ExporterType2 =
|
|
5565
|
-
var ListExporterQuery =
|
|
5566
|
-
limit:
|
|
5567
|
-
offset:
|
|
5579
|
+
import { z as z177 } from "zod";
|
|
5580
|
+
var ExporterType2 = z177.enum(["documentation", "code"]);
|
|
5581
|
+
var ListExporterQuery = z177.object({
|
|
5582
|
+
limit: z177.number().optional(),
|
|
5583
|
+
offset: z177.number().optional(),
|
|
5568
5584
|
type: ExporterType2.optional(),
|
|
5569
|
-
search:
|
|
5585
|
+
search: z177.string().optional()
|
|
5570
5586
|
});
|
|
5571
5587
|
|
|
5572
5588
|
// src/export/exporter-workspace-membership-role.ts
|
|
5573
|
-
import { z as
|
|
5574
|
-
var ExporterWorkspaceMembershipRole =
|
|
5589
|
+
import { z as z178 } from "zod";
|
|
5590
|
+
var ExporterWorkspaceMembershipRole = z178.enum(["Owner", "OwnerArchived", "User"]);
|
|
5575
5591
|
|
|
5576
5592
|
// src/export/exporter-workspace-membership.ts
|
|
5577
|
-
import { z as
|
|
5578
|
-
var ExporterWorkspaceMembership =
|
|
5579
|
-
id:
|
|
5580
|
-
workspaceId:
|
|
5581
|
-
exporterId:
|
|
5593
|
+
import { z as z179 } from "zod";
|
|
5594
|
+
var ExporterWorkspaceMembership = z179.object({
|
|
5595
|
+
id: z179.string(),
|
|
5596
|
+
workspaceId: z179.string(),
|
|
5597
|
+
exporterId: z179.string(),
|
|
5582
5598
|
role: ExporterWorkspaceMembershipRole
|
|
5583
5599
|
});
|
|
5584
5600
|
|
|
5585
5601
|
// src/feature-flags/feature-flags.ts
|
|
5586
|
-
import { z as
|
|
5587
|
-
var FlaggedFeature =
|
|
5602
|
+
import { z as z180 } from "zod";
|
|
5603
|
+
var FlaggedFeature = z180.enum([
|
|
5588
5604
|
"FigmaImporterV2",
|
|
5589
|
-
"ShadowOpacityOptional",
|
|
5590
5605
|
"DisableImporter",
|
|
5591
5606
|
"VariablesOrder",
|
|
5592
5607
|
"TypographyPropsKeepAliases",
|
|
@@ -5595,20 +5610,20 @@ var FlaggedFeature = z178.enum([
|
|
|
5595
5610
|
"NonCompatibleTypeChanges",
|
|
5596
5611
|
"TypographyUseFontStyle"
|
|
5597
5612
|
]);
|
|
5598
|
-
var FeatureFlagMap =
|
|
5599
|
-
var FeatureFlag =
|
|
5600
|
-
id:
|
|
5613
|
+
var FeatureFlagMap = z180.record(FlaggedFeature, z180.boolean());
|
|
5614
|
+
var FeatureFlag = z180.object({
|
|
5615
|
+
id: z180.string(),
|
|
5601
5616
|
feature: FlaggedFeature,
|
|
5602
|
-
createdAt:
|
|
5603
|
-
enabled:
|
|
5604
|
-
designSystemId:
|
|
5617
|
+
createdAt: z180.coerce.date(),
|
|
5618
|
+
enabled: z180.boolean(),
|
|
5619
|
+
designSystemId: z180.string().optional()
|
|
5605
5620
|
});
|
|
5606
5621
|
|
|
5607
5622
|
// src/integrations/external-oauth-request.ts
|
|
5608
|
-
import { z as
|
|
5623
|
+
import { z as z182 } from "zod";
|
|
5609
5624
|
|
|
5610
5625
|
// src/integrations/oauth-providers.ts
|
|
5611
|
-
import { z as
|
|
5626
|
+
import { z as z181 } from "zod";
|
|
5612
5627
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
5613
5628
|
OAuthProviderNames2["Figma"] = "figma";
|
|
5614
5629
|
OAuthProviderNames2["Azure"] = "azure";
|
|
@@ -5617,128 +5632,128 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
5617
5632
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
5618
5633
|
return OAuthProviderNames2;
|
|
5619
5634
|
})(OAuthProviderNames || {});
|
|
5620
|
-
var OAuthProviderSchema =
|
|
5635
|
+
var OAuthProviderSchema = z181.nativeEnum(OAuthProviderNames);
|
|
5621
5636
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
5622
5637
|
|
|
5623
5638
|
// src/integrations/external-oauth-request.ts
|
|
5624
|
-
var ExternalOAuthRequest =
|
|
5625
|
-
id:
|
|
5639
|
+
var ExternalOAuthRequest = z182.object({
|
|
5640
|
+
id: z182.string(),
|
|
5626
5641
|
provider: OAuthProviderSchema,
|
|
5627
|
-
userId:
|
|
5628
|
-
state:
|
|
5629
|
-
createdAt:
|
|
5642
|
+
userId: z182.string(),
|
|
5643
|
+
state: z182.string(),
|
|
5644
|
+
createdAt: z182.coerce.date()
|
|
5630
5645
|
});
|
|
5631
5646
|
|
|
5632
5647
|
// src/integrations/git.ts
|
|
5633
|
-
import { z as
|
|
5634
|
-
var GitObjectsQuery =
|
|
5635
|
-
organization:
|
|
5648
|
+
import { z as z183 } from "zod";
|
|
5649
|
+
var GitObjectsQuery = z183.object({
|
|
5650
|
+
organization: z183.string().optional(),
|
|
5636
5651
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
5637
|
-
project:
|
|
5652
|
+
project: z183.string().optional(),
|
|
5638
5653
|
// Only for Bitbucket and Azure
|
|
5639
|
-
repository:
|
|
5654
|
+
repository: z183.string().optional(),
|
|
5640
5655
|
// For all providers. For Gitlab, it's called "project".
|
|
5641
|
-
branch:
|
|
5656
|
+
branch: z183.string().optional(),
|
|
5642
5657
|
// For all providers.
|
|
5643
|
-
user:
|
|
5658
|
+
user: z183.string().optional()
|
|
5644
5659
|
// Gitlab user
|
|
5645
5660
|
});
|
|
5646
|
-
var GitOrganization =
|
|
5647
|
-
id:
|
|
5648
|
-
name:
|
|
5649
|
-
url:
|
|
5650
|
-
slug:
|
|
5651
|
-
});
|
|
5652
|
-
var GitProject =
|
|
5653
|
-
id:
|
|
5654
|
-
name:
|
|
5655
|
-
url:
|
|
5656
|
-
slug:
|
|
5657
|
-
});
|
|
5658
|
-
var GitRepository =
|
|
5659
|
-
id:
|
|
5660
|
-
name:
|
|
5661
|
-
url:
|
|
5662
|
-
slug:
|
|
5661
|
+
var GitOrganization = z183.object({
|
|
5662
|
+
id: z183.string(),
|
|
5663
|
+
name: z183.string(),
|
|
5664
|
+
url: z183.string(),
|
|
5665
|
+
slug: z183.string()
|
|
5666
|
+
});
|
|
5667
|
+
var GitProject = z183.object({
|
|
5668
|
+
id: z183.string(),
|
|
5669
|
+
name: z183.string(),
|
|
5670
|
+
url: z183.string(),
|
|
5671
|
+
slug: z183.string()
|
|
5672
|
+
});
|
|
5673
|
+
var GitRepository = z183.object({
|
|
5674
|
+
id: z183.string(),
|
|
5675
|
+
name: z183.string(),
|
|
5676
|
+
url: z183.string(),
|
|
5677
|
+
slug: z183.string(),
|
|
5663
5678
|
/**
|
|
5664
5679
|
* Can be undefined when:
|
|
5665
5680
|
* - there are no branches in the repository yet
|
|
5666
5681
|
* - Git provider doesn't expose this information on a repository via their API
|
|
5667
5682
|
*/
|
|
5668
|
-
defaultBranch:
|
|
5683
|
+
defaultBranch: z183.string().optional()
|
|
5669
5684
|
});
|
|
5670
|
-
var GitBranch =
|
|
5671
|
-
name:
|
|
5672
|
-
lastCommitId:
|
|
5685
|
+
var GitBranch = z183.object({
|
|
5686
|
+
name: z183.string(),
|
|
5687
|
+
lastCommitId: z183.string()
|
|
5673
5688
|
});
|
|
5674
5689
|
|
|
5675
5690
|
// src/integrations/oauth-token.ts
|
|
5676
|
-
import { z as
|
|
5677
|
-
var IntegrationTokenSchemaOld =
|
|
5678
|
-
id:
|
|
5691
|
+
import { z as z184 } from "zod";
|
|
5692
|
+
var IntegrationTokenSchemaOld = z184.object({
|
|
5693
|
+
id: z184.string(),
|
|
5679
5694
|
provider: OAuthProviderSchema,
|
|
5680
|
-
scope:
|
|
5681
|
-
userId:
|
|
5682
|
-
accessToken:
|
|
5683
|
-
refreshToken:
|
|
5684
|
-
expiresAt:
|
|
5685
|
-
externalUserId:
|
|
5695
|
+
scope: z184.string(),
|
|
5696
|
+
userId: z184.string(),
|
|
5697
|
+
accessToken: z184.string(),
|
|
5698
|
+
refreshToken: z184.string(),
|
|
5699
|
+
expiresAt: z184.coerce.date(),
|
|
5700
|
+
externalUserId: z184.string().nullish()
|
|
5686
5701
|
});
|
|
5687
5702
|
|
|
5688
5703
|
// src/integrations/workspace-oauth-requests.ts
|
|
5689
|
-
import { z as
|
|
5690
|
-
var WorkspaceOAuthRequestSchema =
|
|
5691
|
-
id:
|
|
5692
|
-
workspaceId:
|
|
5704
|
+
import { z as z185 } from "zod";
|
|
5705
|
+
var WorkspaceOAuthRequestSchema = z185.object({
|
|
5706
|
+
id: z185.string(),
|
|
5707
|
+
workspaceId: z185.string(),
|
|
5693
5708
|
provider: OAuthProviderSchema,
|
|
5694
|
-
userId:
|
|
5695
|
-
createdAt:
|
|
5709
|
+
userId: z185.string(),
|
|
5710
|
+
createdAt: z185.coerce.date()
|
|
5696
5711
|
});
|
|
5697
5712
|
|
|
5698
5713
|
// src/npm/npm-package.ts
|
|
5699
|
-
import { z as
|
|
5700
|
-
var AnyRecord =
|
|
5714
|
+
import { z as z186 } from "zod";
|
|
5715
|
+
var AnyRecord = z186.record(z186.any());
|
|
5701
5716
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
5702
|
-
|
|
5703
|
-
tarball:
|
|
5717
|
+
z186.object({
|
|
5718
|
+
tarball: z186.string()
|
|
5704
5719
|
})
|
|
5705
5720
|
);
|
|
5706
5721
|
var NpmPackageVersion = AnyRecord.and(
|
|
5707
|
-
|
|
5722
|
+
z186.object({
|
|
5708
5723
|
dist: NpmPackageVersionDist
|
|
5709
5724
|
})
|
|
5710
5725
|
);
|
|
5711
5726
|
var NpmPackage = AnyRecord.and(
|
|
5712
|
-
|
|
5713
|
-
_id:
|
|
5714
|
-
name:
|
|
5727
|
+
z186.object({
|
|
5728
|
+
_id: z186.string(),
|
|
5729
|
+
name: z186.string(),
|
|
5715
5730
|
// e.g. "latest": "1.2.3"
|
|
5716
|
-
"dist-tags":
|
|
5731
|
+
"dist-tags": z186.record(z186.string(), z186.string()),
|
|
5717
5732
|
// "1.2.3": {...}
|
|
5718
|
-
versions:
|
|
5733
|
+
versions: z186.record(NpmPackageVersion)
|
|
5719
5734
|
})
|
|
5720
5735
|
);
|
|
5721
5736
|
|
|
5722
5737
|
// src/npm/npm-proxy-token-payload.ts
|
|
5723
|
-
import { z as
|
|
5724
|
-
var NpmProxyTokenPayload =
|
|
5725
|
-
npmProxyRegistryConfigId:
|
|
5738
|
+
import { z as z187 } from "zod";
|
|
5739
|
+
var NpmProxyTokenPayload = z187.object({
|
|
5740
|
+
npmProxyRegistryConfigId: z187.string()
|
|
5726
5741
|
});
|
|
5727
5742
|
|
|
5728
5743
|
// src/tokens/personal-access-token.ts
|
|
5729
|
-
import { z as
|
|
5730
|
-
var PersonalAccessToken =
|
|
5731
|
-
id:
|
|
5732
|
-
userId:
|
|
5733
|
-
workspaceId:
|
|
5734
|
-
designSystemId:
|
|
5744
|
+
import { z as z188 } from "zod";
|
|
5745
|
+
var PersonalAccessToken = z188.object({
|
|
5746
|
+
id: z188.string(),
|
|
5747
|
+
userId: z188.string(),
|
|
5748
|
+
workspaceId: z188.string().optional(),
|
|
5749
|
+
designSystemId: z188.string().optional(),
|
|
5735
5750
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
5736
|
-
name:
|
|
5737
|
-
hidden:
|
|
5738
|
-
token:
|
|
5739
|
-
scope:
|
|
5740
|
-
createdAt:
|
|
5741
|
-
expireAt:
|
|
5751
|
+
name: z188.string(),
|
|
5752
|
+
hidden: z188.boolean(),
|
|
5753
|
+
token: z188.string(),
|
|
5754
|
+
scope: z188.string().optional(),
|
|
5755
|
+
createdAt: z188.coerce.date(),
|
|
5756
|
+
expireAt: z188.coerce.date().optional()
|
|
5742
5757
|
});
|
|
5743
5758
|
export {
|
|
5744
5759
|
Address,
|
|
@@ -5808,6 +5823,7 @@ export {
|
|
|
5808
5823
|
DataSourceRemote,
|
|
5809
5824
|
DataSourceRemoteType,
|
|
5810
5825
|
DataSourceStats,
|
|
5826
|
+
DataSourceStorybookRemote,
|
|
5811
5827
|
DataSourceTokenStudioRemote,
|
|
5812
5828
|
DataSourceUploadImportMetadata,
|
|
5813
5829
|
DataSourceUploadRemote,
|
|
@@ -6320,6 +6336,9 @@ export {
|
|
|
6320
6336
|
SpaceUnit,
|
|
6321
6337
|
SpaceValue,
|
|
6322
6338
|
SsoProvider,
|
|
6339
|
+
StorybookEntry,
|
|
6340
|
+
StorybookEntryOrigin,
|
|
6341
|
+
StorybookPayload,
|
|
6323
6342
|
StringTokenData,
|
|
6324
6343
|
StringValue,
|
|
6325
6344
|
StripeSubscriptionStatus,
|