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