@supernova-studio/model 1.5.0 → 1.6.0
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 +4931 -2358
- package/dist/index.d.ts +4931 -2358
- package/dist/index.js +211 -96
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +988 -873
- 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 z159 } 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 z158 } from "zod";
|
|
469
466
|
|
|
470
467
|
// src/export/export-destinations.ts
|
|
471
|
-
import { z as
|
|
468
|
+
import { z as z157 } from "zod";
|
|
472
469
|
|
|
473
470
|
// src/dsm/assets/asset-dynamo-record.ts
|
|
474
471
|
import { z as z19 } from "zod";
|
|
@@ -512,7 +509,6 @@ var AssetProperties = z22.union([
|
|
|
512
509
|
var AssetOrigin = z22.object({
|
|
513
510
|
originKey: z22.string()
|
|
514
511
|
});
|
|
515
|
-
var AssetProcessStatus = z22.enum(["Pending", "Uploaded", "Processed"]);
|
|
516
512
|
var Asset = z22.object({
|
|
517
513
|
id: z22.string(),
|
|
518
514
|
designSystemId: z22.string().nullish(),
|
|
@@ -521,10 +517,8 @@ var Asset = z22.object({
|
|
|
521
517
|
filePath: z22.string(),
|
|
522
518
|
scope: AssetScope,
|
|
523
519
|
properties: AssetProperties.nullish(),
|
|
524
|
-
state: AssetProcessStatus.optional(),
|
|
525
|
-
origin: AssetOrigin.optional(),
|
|
526
520
|
originKey: z22.string().optional(),
|
|
527
|
-
|
|
521
|
+
createdAt: z22.coerce.date().optional()
|
|
528
522
|
});
|
|
529
523
|
var ResolvedAsset = Asset.extend({
|
|
530
524
|
url: z22.string()
|
|
@@ -851,10 +845,8 @@ var SupernovaException = class _SupernovaException extends Error {
|
|
|
851
845
|
|
|
852
846
|
// src/utils/common.ts
|
|
853
847
|
function forceUnwrapNullish(value) {
|
|
854
|
-
if (value === null)
|
|
855
|
-
|
|
856
|
-
if (value === void 0)
|
|
857
|
-
throw new Error("Illegal undefined");
|
|
848
|
+
if (value === null) throw new Error("Illegal null");
|
|
849
|
+
if (value === void 0) throw new Error("Illegal undefined");
|
|
858
850
|
return value;
|
|
859
851
|
}
|
|
860
852
|
function trimLeadingSlash(string) {
|
|
@@ -924,14 +916,10 @@ function uniqueBy(items, prop) {
|
|
|
924
916
|
return Array.from(mapByUnique(items, prop).values());
|
|
925
917
|
}
|
|
926
918
|
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;
|
|
919
|
+
if (lhs === void 0 !== (rhs === void 0)) return false;
|
|
920
|
+
if (lhs === void 0 || rhs === void 0) return true;
|
|
921
|
+
if (lhs === null !== (rhs === null)) return false;
|
|
922
|
+
if (lhs === null || rhs === null) return true;
|
|
935
923
|
for (const key in lhs) {
|
|
936
924
|
if (!(key in rhs) || lhs[key] !== rhs[key]) {
|
|
937
925
|
return false;
|
|
@@ -959,8 +947,7 @@ function chunkedArray(array, chunkSize) {
|
|
|
959
947
|
}
|
|
960
948
|
function recordToMap(record) {
|
|
961
949
|
const map = /* @__PURE__ */ new Map();
|
|
962
|
-
for (const [k, v] of Object.entries(record))
|
|
963
|
-
map.set(k, v);
|
|
950
|
+
for (const [k, v] of Object.entries(record)) map.set(k, v);
|
|
964
951
|
return map;
|
|
965
952
|
}
|
|
966
953
|
function applyShallowObjectUpdate(object, update) {
|
|
@@ -1021,8 +1008,7 @@ function getCodenameFromText(name) {
|
|
|
1021
1008
|
}
|
|
1022
1009
|
function toCamelCase(str) {
|
|
1023
1010
|
return str.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g, function(match, index) {
|
|
1024
|
-
if (+match === 0)
|
|
1025
|
-
return "";
|
|
1011
|
+
if (+match === 0) return "";
|
|
1026
1012
|
return index === 0 ? match.toLowerCase() : match.toUpperCase();
|
|
1027
1013
|
});
|
|
1028
1014
|
}
|
|
@@ -1778,10 +1764,8 @@ var Size = z41.object({
|
|
|
1778
1764
|
height: z41.number().nullish().transform((v) => v ?? nullSize.height)
|
|
1779
1765
|
});
|
|
1780
1766
|
var SizeOrUndefined = Size.optional().transform((v) => {
|
|
1781
|
-
if (!v)
|
|
1782
|
-
|
|
1783
|
-
if (isNullSize(v))
|
|
1784
|
-
return void 0;
|
|
1767
|
+
if (!v) return void 0;
|
|
1768
|
+
if (isNullSize(v)) return void 0;
|
|
1785
1769
|
return v;
|
|
1786
1770
|
});
|
|
1787
1771
|
|
|
@@ -1855,14 +1839,10 @@ var stringTokenTypes = /* @__PURE__ */ new Set([
|
|
|
1855
1839
|
]);
|
|
1856
1840
|
var fallbackNumberValue = 14;
|
|
1857
1841
|
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;
|
|
1842
|
+
if (lhs === rhs) return true;
|
|
1843
|
+
if (numberTokenTypes.has(lhs) && numberTokenTypes.has(rhs)) return true;
|
|
1844
|
+
if (stringTokenTypes.has(lhs) && stringTokenTypes.has(rhs)) return true;
|
|
1845
|
+
if (isNonCompatibleTypeChangesEnabled && stringTokenTypes.has(lhs) && numberTokenTypes.has(rhs)) return true;
|
|
1866
1846
|
return false;
|
|
1867
1847
|
}
|
|
1868
1848
|
function castStringToDimensionValue(lhs, rhs, value) {
|
|
@@ -2111,6 +2091,27 @@ var PageBlockSelectedFigmaComponent = z43.object({
|
|
|
2111
2091
|
selectedComponentProperties: z43.string().array(),
|
|
2112
2092
|
selectedComponentVariants: z43.record(z43.string().array()).optional()
|
|
2113
2093
|
});
|
|
2094
|
+
var PageBlockStorybookItem = z43.object({
|
|
2095
|
+
entityId: z43.string().optional(),
|
|
2096
|
+
embed: z43.object({
|
|
2097
|
+
inputUrl: z43.string(),
|
|
2098
|
+
embedUrl: z43.string()
|
|
2099
|
+
}).optional(),
|
|
2100
|
+
entityMeta: z43.object({
|
|
2101
|
+
caption: z43.string().optional(),
|
|
2102
|
+
height: z43.number().optional(),
|
|
2103
|
+
hiddenProps: z43.array(z43.string()).optional(),
|
|
2104
|
+
propValues: z43.record(z43.unknown()).optional()
|
|
2105
|
+
}).optional()
|
|
2106
|
+
});
|
|
2107
|
+
var PageBlockStorybookBlockConfig = z43.object({
|
|
2108
|
+
value: PageBlockStorybookItem.array(),
|
|
2109
|
+
showCode: z43.boolean().optional(),
|
|
2110
|
+
showFooter: z43.boolean().optional(),
|
|
2111
|
+
showProperties: z43.boolean().optional(),
|
|
2112
|
+
showDescription: z43.boolean().optional(),
|
|
2113
|
+
showDefaults: z43.boolean().optional()
|
|
2114
|
+
});
|
|
2114
2115
|
var PageBlockTextSpanAttributeType = z43.enum(["Bold", "Italic", "Link", "Strikethrough", "Code", "Comment"]);
|
|
2115
2116
|
var PageBlockTextSpanAttribute = z43.object({
|
|
2116
2117
|
type: PageBlockTextSpanAttributeType,
|
|
@@ -2201,7 +2202,9 @@ var PageBlockBaseV1 = z43.object({
|
|
|
2201
2202
|
selectedFigmaComponent: nullishToOptional(PageBlockSelectedFigmaComponent),
|
|
2202
2203
|
selectedFigmaComponents: nullishToOptional(PageBlockSelectedFigmaComponent.array()),
|
|
2203
2204
|
// Arbitrary
|
|
2204
|
-
userMetadata: nullishToOptional(z43.string())
|
|
2205
|
+
userMetadata: nullishToOptional(z43.string()),
|
|
2206
|
+
// Storybook
|
|
2207
|
+
storybookBlockConfig: nullishToOptional(PageBlockStorybookBlockConfig)
|
|
2205
2208
|
});
|
|
2206
2209
|
var PageBlockV1 = PageBlockBaseV1.extend({
|
|
2207
2210
|
children: z43.lazy(
|
|
@@ -2229,8 +2232,7 @@ function removeCommentSpans(text) {
|
|
|
2229
2232
|
return joinRepeatingSpans(updatedRichText);
|
|
2230
2233
|
}
|
|
2231
2234
|
function joinRepeatingSpans(text) {
|
|
2232
|
-
if (text.spans.length < 2)
|
|
2233
|
-
return text;
|
|
2235
|
+
if (text.spans.length < 2) return text;
|
|
2234
2236
|
text = sanitizeSpans(text);
|
|
2235
2237
|
const { spans, ...rest } = text;
|
|
2236
2238
|
let previousSpan = { ...spans[0] };
|
|
@@ -2250,13 +2252,11 @@ function joinRepeatingSpans(text) {
|
|
|
2250
2252
|
};
|
|
2251
2253
|
}
|
|
2252
2254
|
function areAttributesEqual(lhs, rhs) {
|
|
2253
|
-
if (lhs.length !== rhs.length)
|
|
2254
|
-
return false;
|
|
2255
|
+
if (lhs.length !== rhs.length) return false;
|
|
2255
2256
|
const lhsMap = mapByUnique(lhs, (i) => i.type);
|
|
2256
2257
|
for (const rhsAttribute of rhs) {
|
|
2257
2258
|
const lhsAttribute = lhsMap.get(rhsAttribute.type);
|
|
2258
|
-
if (!areShallowObjectsEqual(lhsAttribute, rhsAttribute))
|
|
2259
|
-
return false;
|
|
2259
|
+
if (!areShallowObjectsEqual(lhsAttribute, rhsAttribute)) return false;
|
|
2260
2260
|
}
|
|
2261
2261
|
return true;
|
|
2262
2262
|
}
|
|
@@ -2695,11 +2695,35 @@ var PageBlockItemRichTextValue = z47.object({
|
|
|
2695
2695
|
var PageBlockItemSingleSelectValue = z47.object({
|
|
2696
2696
|
value: z47.string()
|
|
2697
2697
|
});
|
|
2698
|
-
var
|
|
2698
|
+
var PageBlockItemStorybookValueOld = z47.object({
|
|
2699
|
+
value: z47.string().optional(),
|
|
2699
2700
|
caption: z47.string().optional(),
|
|
2700
2701
|
height: z47.number().optional(),
|
|
2701
2702
|
embedUrl: z47.string().optional(),
|
|
2702
|
-
|
|
2703
|
+
storyId: z47.string().optional(),
|
|
2704
|
+
sourceId: z47.string().optional()
|
|
2705
|
+
});
|
|
2706
|
+
var PageBlockItemStorybookValue = z47.object({
|
|
2707
|
+
value: z47.array(
|
|
2708
|
+
z47.object({
|
|
2709
|
+
entityId: z47.string().optional(),
|
|
2710
|
+
embed: z47.object({
|
|
2711
|
+
inputUrl: z47.string(),
|
|
2712
|
+
embedUrl: z47.string()
|
|
2713
|
+
}).optional(),
|
|
2714
|
+
entityMeta: z47.object({
|
|
2715
|
+
caption: z47.string().optional(),
|
|
2716
|
+
height: z47.number().optional(),
|
|
2717
|
+
hiddenProps: z47.array(z47.string()).optional(),
|
|
2718
|
+
propValues: z47.record(z47.unknown()).optional()
|
|
2719
|
+
}).optional()
|
|
2720
|
+
})
|
|
2721
|
+
).optional(),
|
|
2722
|
+
showCode: z47.boolean().optional(),
|
|
2723
|
+
showFooter: z47.boolean().optional(),
|
|
2724
|
+
showProperties: z47.boolean().optional(),
|
|
2725
|
+
showDescription: z47.boolean().optional(),
|
|
2726
|
+
showDefaults: z47.boolean().optional()
|
|
2703
2727
|
});
|
|
2704
2728
|
var PageBlockItemTextValue = z47.object({
|
|
2705
2729
|
value: z47.string()
|
|
@@ -2787,6 +2811,26 @@ var PageBlockItemTableValue = z47.object({
|
|
|
2787
2811
|
showBorder: z47.boolean().optional(),
|
|
2788
2812
|
value: z47.array(PageBlockItemTableRow).default([])
|
|
2789
2813
|
});
|
|
2814
|
+
function storybookValueFromOldValue(oldValue) {
|
|
2815
|
+
return {
|
|
2816
|
+
value: [
|
|
2817
|
+
{
|
|
2818
|
+
// URLs
|
|
2819
|
+
...oldValue.embedUrl && oldValue.value && {
|
|
2820
|
+
embed: {
|
|
2821
|
+
embedUrl: oldValue.embedUrl,
|
|
2822
|
+
inputUrl: oldValue.value
|
|
2823
|
+
}
|
|
2824
|
+
},
|
|
2825
|
+
// Meta
|
|
2826
|
+
entityMeta: {
|
|
2827
|
+
caption: oldValue.caption,
|
|
2828
|
+
height: oldValue.height
|
|
2829
|
+
}
|
|
2830
|
+
}
|
|
2831
|
+
]
|
|
2832
|
+
};
|
|
2833
|
+
}
|
|
2790
2834
|
|
|
2791
2835
|
// src/dsm/elements/data/documentation-page-v1.ts
|
|
2792
2836
|
import { z as z51 } from "zod";
|
|
@@ -3011,8 +3055,7 @@ function figmaFileStructureToMap(root) {
|
|
|
3011
3055
|
}
|
|
3012
3056
|
function recursiveFigmaFileStructureToMap(node, map) {
|
|
3013
3057
|
map.set(node.id, node);
|
|
3014
|
-
for (const child of node.children)
|
|
3015
|
-
recursiveFigmaFileStructureToMap(child, map);
|
|
3058
|
+
for (const child of node.children) recursiveFigmaFileStructureToMap(child, map);
|
|
3016
3059
|
}
|
|
3017
3060
|
|
|
3018
3061
|
// src/dsm/elements/data/figma-node-reference.ts
|
|
@@ -3551,8 +3594,7 @@ function mapPageBlockItemValuesV2(pageItems, definitionsMap, fn) {
|
|
|
3551
3594
|
traversePageBlockItemsV2(pageItems, (block, item) => {
|
|
3552
3595
|
Object.entries(item.props).forEach(([propKey, value]) => {
|
|
3553
3596
|
const property = definitionsMap.getDefinitionProperty(block.data.packageId, propKey);
|
|
3554
|
-
if (!property)
|
|
3555
|
-
return;
|
|
3597
|
+
if (!property) return;
|
|
3556
3598
|
item.props[propKey] = fn(block, item, property, value);
|
|
3557
3599
|
});
|
|
3558
3600
|
});
|
|
@@ -3561,8 +3603,7 @@ function traversePageBlockItemValuesV2(pageItems, definitionsMap, fn) {
|
|
|
3561
3603
|
traversePageBlockItemsV2(pageItems, (block, item) => {
|
|
3562
3604
|
Object.entries(item.props).forEach(([propKey, value]) => {
|
|
3563
3605
|
const property = definitionsMap.getDefinitionProperty(block.data.packageId, propKey);
|
|
3564
|
-
if (!property)
|
|
3565
|
-
return;
|
|
3606
|
+
if (!property) return;
|
|
3566
3607
|
fn(block, item, property, value);
|
|
3567
3608
|
});
|
|
3568
3609
|
});
|
|
@@ -3659,7 +3700,7 @@ function zeroNumberByDefault() {
|
|
|
3659
3700
|
}
|
|
3660
3701
|
|
|
3661
3702
|
// src/dsm/data-sources/data-source.ts
|
|
3662
|
-
var DataSourceRemoteType = z91.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
|
|
3703
|
+
var DataSourceRemoteType = z91.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin", "Storybook"]);
|
|
3663
3704
|
var DataSourceUploadRemoteSource = z91.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
|
|
3664
3705
|
var DataSourceFigmaState = z91.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
|
|
3665
3706
|
var DataSourceAutoImportMode = z91.enum(["Never", "Hourly"]);
|
|
@@ -3719,10 +3760,22 @@ var DataSourceUploadRemote = z91.object({
|
|
|
3719
3760
|
isTokenTypeSplitEnabled: z91.boolean(),
|
|
3720
3761
|
isCollectionsMigrationCompleted: z91.boolean()
|
|
3721
3762
|
});
|
|
3763
|
+
var DataSourceStorybookRemote = z91.object({
|
|
3764
|
+
type: z91.literal(DataSourceRemoteType.Enum.Storybook),
|
|
3765
|
+
indexUrl: z91.string(),
|
|
3766
|
+
userUrl: z91.string(),
|
|
3767
|
+
ownerId: z91.string().optional(),
|
|
3768
|
+
lastImportedAt: z91.coerce.date().optional(),
|
|
3769
|
+
lastImportedSuccessfully: z91.coerce.date().optional(),
|
|
3770
|
+
isFailed: z91.boolean(),
|
|
3771
|
+
storiesCount: z91.number(),
|
|
3772
|
+
docsCount: z91.number()
|
|
3773
|
+
});
|
|
3722
3774
|
var DataSourceRemote = z91.discriminatedUnion("type", [
|
|
3723
3775
|
DataSourceFigmaRemote,
|
|
3724
3776
|
DataSourceUploadRemote,
|
|
3725
|
-
DataSourceTokenStudioRemote
|
|
3777
|
+
DataSourceTokenStudioRemote,
|
|
3778
|
+
DataSourceStorybookRemote
|
|
3726
3779
|
]);
|
|
3727
3780
|
var DataSource = z91.object({
|
|
3728
3781
|
id: z91.string(),
|
|
@@ -3808,15 +3861,11 @@ var FigmaImportBaseContext = z94.object({
|
|
|
3808
3861
|
importWarnings: z94.record(ImportWarning.array()).default({})
|
|
3809
3862
|
});
|
|
3810
3863
|
var FeatureFlagsKeepAliases = z94.object({
|
|
3811
|
-
isTypographyPropsKeepAliasesEnabled: z94.boolean().default(false),
|
|
3812
|
-
isGradientPropsKeepAliasesEnabled: z94.boolean().default(false),
|
|
3813
|
-
isShadowPropsKeepAliasesEnabled: z94.boolean().default(false),
|
|
3814
3864
|
isNonCompatibleTypeChangesEnabled: z94.boolean().default(false),
|
|
3815
3865
|
isTypographyUseFontStyleEnabled: z94.boolean().default(false)
|
|
3816
3866
|
});
|
|
3817
3867
|
var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
|
|
3818
3868
|
sourcesWithMissingAccess: z94.array(z94.string()).default([]),
|
|
3819
|
-
shadowOpacityOptional: z94.boolean().default(false),
|
|
3820
3869
|
featureFlagsKeepAliases: FeatureFlagsKeepAliases.default({})
|
|
3821
3870
|
});
|
|
3822
3871
|
var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
|
|
@@ -3957,20 +4006,18 @@ var FigmaComponentImportModelPart = z99.object({
|
|
|
3957
4006
|
parentComponentId: z99.string().optional(),
|
|
3958
4007
|
componentPropertyDefinitions: FigmaComponentPropertyMap.optional(),
|
|
3959
4008
|
variantPropertyValues: z99.record(z99.string()).optional(),
|
|
3960
|
-
renderNodeId: z99.string()
|
|
4009
|
+
renderNodeId: z99.string(),
|
|
4010
|
+
svg: FigmaSvgRenderImportModel.optional()
|
|
3961
4011
|
});
|
|
3962
4012
|
var FigmaComponentImportModel = ImportModelBase.extend(FigmaComponentImportModelPart.shape).extend({
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
origin: FigmaComponentOrigin
|
|
4013
|
+
origin: FigmaComponentOrigin,
|
|
4014
|
+
isAsset: z99.boolean()
|
|
3966
4015
|
});
|
|
3967
4016
|
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
|
|
4017
|
+
originMetadata: FigmaComponentOriginPart,
|
|
4018
|
+
isAsset: z99.boolean().optional()
|
|
3973
4019
|
});
|
|
4020
|
+
var AssetImportModelInput = FigmaComponentImportModelInput;
|
|
3974
4021
|
|
|
3975
4022
|
// src/dsm/import/data-source.ts
|
|
3976
4023
|
import { z as z100 } from "zod";
|
|
@@ -4006,8 +4053,7 @@ function figmaFileStructureImportModelToMap(root) {
|
|
|
4006
4053
|
}
|
|
4007
4054
|
function recursiveFigmaFileStructureToMap2(node, map) {
|
|
4008
4055
|
map.set(node.id, node);
|
|
4009
|
-
for (const child of node.children)
|
|
4010
|
-
recursiveFigmaFileStructureToMap2(child, map);
|
|
4056
|
+
for (const child of node.children) recursiveFigmaFileStructureToMap2(child, map);
|
|
4011
4057
|
}
|
|
4012
4058
|
|
|
4013
4059
|
// src/dsm/import/theme.ts
|
|
@@ -4214,24 +4260,29 @@ var DocumentationLinkPreview = z110.object({
|
|
|
4214
4260
|
thumbnail: PageBlockImageReference.optional()
|
|
4215
4261
|
});
|
|
4216
4262
|
|
|
4217
|
-
// src/dsm/documentation/page
|
|
4263
|
+
// src/dsm/documentation/page.ts
|
|
4218
4264
|
import { z as z111 } from "zod";
|
|
4219
|
-
var
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4265
|
+
var DocumentationPage = z111.object({
|
|
4266
|
+
type: z111.literal("DocumentationPage"),
|
|
4267
|
+
id: z111.string(),
|
|
4268
|
+
persistentId: z111.string(),
|
|
4269
|
+
shortPersistentId: z111.string(),
|
|
4270
|
+
designSystemVersionId: z111.string(),
|
|
4271
|
+
parentPersistentId: z111.string().nullish(),
|
|
4272
|
+
sortOrder: z111.number(),
|
|
4273
|
+
title: z111.string(),
|
|
4274
|
+
slug: z111.string(),
|
|
4275
|
+
userSlug: z111.string().nullish(),
|
|
4276
|
+
createdAt: z111.coerce.date(),
|
|
4277
|
+
updatedAt: z111.coerce.date()
|
|
4223
4278
|
});
|
|
4224
4279
|
|
|
4225
|
-
// src/dsm/documentation/page-
|
|
4280
|
+
// src/dsm/documentation/page-anchor.ts
|
|
4226
4281
|
import { z as z112 } from "zod";
|
|
4227
|
-
var
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
updatedAt: z112.coerce.date(),
|
|
4232
|
-
documentationPageId: z112.string(),
|
|
4233
|
-
documentationPageName: z112.string(),
|
|
4234
|
-
storagePath: z112.string()
|
|
4282
|
+
var DocumentationPageAnchor = z112.object({
|
|
4283
|
+
blockId: z112.string(),
|
|
4284
|
+
level: z112.number(),
|
|
4285
|
+
text: z112.string()
|
|
4235
4286
|
});
|
|
4236
4287
|
|
|
4237
4288
|
// src/dsm/documentation/page-content.ts
|
|
@@ -4252,86 +4303,99 @@ var DocumentationPageContent = z113.object({
|
|
|
4252
4303
|
data: DocumentationPageContentData
|
|
4253
4304
|
});
|
|
4254
4305
|
|
|
4255
|
-
// src/dsm/documentation/page.ts
|
|
4306
|
+
// src/dsm/documentation/page-content-backup.ts
|
|
4256
4307
|
import { z as z114 } from "zod";
|
|
4257
|
-
var
|
|
4258
|
-
type: z114.literal("DocumentationPage"),
|
|
4308
|
+
var DocumentationPageContentBackup = z114.object({
|
|
4259
4309
|
id: z114.string(),
|
|
4260
|
-
persistentId: z114.string(),
|
|
4261
|
-
shortPersistentId: z114.string(),
|
|
4262
4310
|
designSystemVersionId: z114.string(),
|
|
4263
|
-
parentPersistentId: z114.string().nullish(),
|
|
4264
|
-
sortOrder: z114.number(),
|
|
4265
|
-
title: z114.string(),
|
|
4266
|
-
slug: z114.string(),
|
|
4267
|
-
userSlug: z114.string().nullish(),
|
|
4268
4311
|
createdAt: z114.coerce.date(),
|
|
4269
|
-
updatedAt: z114.coerce.date()
|
|
4312
|
+
updatedAt: z114.coerce.date(),
|
|
4313
|
+
documentationPageId: z114.string(),
|
|
4314
|
+
documentationPageName: z114.string(),
|
|
4315
|
+
storagePath: z114.string()
|
|
4270
4316
|
});
|
|
4271
4317
|
|
|
4272
|
-
// src/dsm/documentation/
|
|
4318
|
+
// src/dsm/documentation/page-dependencies.ts
|
|
4273
4319
|
import { z as z115 } from "zod";
|
|
4274
|
-
var
|
|
4320
|
+
var DocumentationPageDependencies = z115.object({
|
|
4275
4321
|
id: z115.string(),
|
|
4276
|
-
|
|
4277
|
-
path: z115.string(),
|
|
4322
|
+
designSystemVersionId: z115.string(),
|
|
4278
4323
|
createdAt: z115.coerce.date(),
|
|
4279
4324
|
updatedAt: z115.coerce.date(),
|
|
4280
|
-
|
|
4325
|
+
documentationPageId: z115.string(),
|
|
4326
|
+
tokenPersistentIds: z115.set(z115.string()),
|
|
4327
|
+
figmaComponentPersistentIds: z115.set(z115.string()),
|
|
4328
|
+
componentPersistentIds: z115.set(z115.string()),
|
|
4329
|
+
figmaNodePersistentIds: z115.set(z115.string()),
|
|
4330
|
+
groupPersistentIds: z115.set(z115.string()),
|
|
4331
|
+
propertyPersistentIds: z115.set(z115.string()),
|
|
4332
|
+
themePersistentIds: z115.set(z115.string()),
|
|
4333
|
+
documentationPagePersistentIds: z115.set(z115.string())
|
|
4281
4334
|
});
|
|
4282
4335
|
|
|
4283
|
-
// src/dsm/documentation/
|
|
4336
|
+
// src/dsm/documentation/redirects.ts
|
|
4284
4337
|
import { z as z116 } from "zod";
|
|
4285
|
-
var
|
|
4286
|
-
|
|
4287
|
-
|
|
4338
|
+
var PageRedirect = z116.object({
|
|
4339
|
+
id: z116.string(),
|
|
4340
|
+
pagePersistentId: z116.string(),
|
|
4341
|
+
path: z116.string(),
|
|
4288
4342
|
createdAt: z116.coerce.date(),
|
|
4289
4343
|
updatedAt: z116.coerce.date(),
|
|
4290
|
-
|
|
4291
|
-
isTabbedLayoutEnabled: z116.boolean(),
|
|
4292
|
-
storybookEmbedErrorMessage: z116.string().optional(),
|
|
4293
|
-
renderCodePackageJson: z116.string().optional(),
|
|
4294
|
-
selectedBrandPersistentId: z116.string().optional(),
|
|
4295
|
-
serveDefaultVersionOnly: z116.boolean(),
|
|
4296
|
-
isPublic: z116.boolean()
|
|
4344
|
+
designSystemId: z116.string()
|
|
4297
4345
|
});
|
|
4298
4346
|
|
|
4299
|
-
// src/dsm/documentation/
|
|
4347
|
+
// src/dsm/documentation/settings.ts
|
|
4300
4348
|
import { z as z117 } from "zod";
|
|
4301
|
-
var
|
|
4302
|
-
|
|
4303
|
-
authorId: z117.string(),
|
|
4304
|
-
threadId: z117.string(),
|
|
4305
|
-
roomId: z117.string(),
|
|
4306
|
-
createdAt: z117.coerce.date(),
|
|
4307
|
-
editedAt: z117.coerce.date().optional(),
|
|
4308
|
-
deletedAt: z117.coerce.date().optional(),
|
|
4309
|
-
body: z117.string()
|
|
4310
|
-
});
|
|
4311
|
-
var DocumentationCommentThread = z117.object({
|
|
4312
|
-
id: z117.string(),
|
|
4313
|
-
roomId: z117.string(),
|
|
4314
|
-
pagePersistentId: z117.string(),
|
|
4315
|
-
brandId: z117.string(),
|
|
4349
|
+
var DocumentationSettings = z117.object({
|
|
4350
|
+
// Basic
|
|
4316
4351
|
designSystemVersionId: z117.string(),
|
|
4317
|
-
designSystemId: z117.string(),
|
|
4318
|
-
blockId: z117.string().optional(),
|
|
4319
|
-
resolved: z117.boolean(),
|
|
4320
4352
|
createdAt: z117.coerce.date(),
|
|
4321
|
-
updatedAt: z117.coerce.date()
|
|
4353
|
+
updatedAt: z117.coerce.date(),
|
|
4354
|
+
// Configuration
|
|
4355
|
+
isTabbedLayoutEnabled: z117.boolean(),
|
|
4356
|
+
storybookEmbedErrorMessage: z117.string().optional(),
|
|
4357
|
+
renderCodePackageJson: z117.string().optional(),
|
|
4358
|
+
selectedBrandPersistentId: z117.string().optional(),
|
|
4359
|
+
serveDefaultVersionOnly: z117.boolean(),
|
|
4360
|
+
isPublic: z117.boolean()
|
|
4322
4361
|
});
|
|
4323
4362
|
|
|
4324
|
-
// src/dsm/
|
|
4363
|
+
// src/dsm/documentation/thread.ts
|
|
4325
4364
|
import { z as z118 } from "zod";
|
|
4326
|
-
var
|
|
4327
|
-
var DesignElementSnapshotBase = z118.object({
|
|
4365
|
+
var DocumentationComment = z118.object({
|
|
4328
4366
|
id: z118.string(),
|
|
4329
|
-
|
|
4367
|
+
authorId: z118.string(),
|
|
4368
|
+
threadId: z118.string(),
|
|
4369
|
+
roomId: z118.string(),
|
|
4370
|
+
createdAt: z118.coerce.date(),
|
|
4371
|
+
editedAt: z118.coerce.date().optional(),
|
|
4372
|
+
deletedAt: z118.coerce.date().optional(),
|
|
4373
|
+
body: z118.string()
|
|
4374
|
+
});
|
|
4375
|
+
var DocumentationCommentThread = z118.object({
|
|
4376
|
+
id: z118.string(),
|
|
4377
|
+
roomId: z118.string(),
|
|
4378
|
+
pagePersistentId: z118.string(),
|
|
4379
|
+
brandId: z118.string(),
|
|
4330
4380
|
designSystemVersionId: z118.string(),
|
|
4381
|
+
designSystemId: z118.string(),
|
|
4382
|
+
blockId: z118.string().optional(),
|
|
4383
|
+
resolved: z118.boolean(),
|
|
4331
4384
|
createdAt: z118.coerce.date(),
|
|
4332
|
-
updatedAt: z118.coerce.date()
|
|
4385
|
+
updatedAt: z118.coerce.date()
|
|
4386
|
+
});
|
|
4387
|
+
|
|
4388
|
+
// src/dsm/element-snapshots/base.ts
|
|
4389
|
+
import { z as z119 } from "zod";
|
|
4390
|
+
var DesignElementSnapshotReason = z119.enum(["Publish", "Deletion"]);
|
|
4391
|
+
var DesignElementSnapshotBase = z119.object({
|
|
4392
|
+
id: z119.string(),
|
|
4393
|
+
persistentId: z119.string(),
|
|
4394
|
+
designSystemVersionId: z119.string(),
|
|
4395
|
+
createdAt: z119.coerce.date(),
|
|
4396
|
+
updatedAt: z119.coerce.date(),
|
|
4333
4397
|
reason: DesignElementSnapshotReason,
|
|
4334
|
-
createdByUserId:
|
|
4398
|
+
createdByUserId: z119.string()
|
|
4335
4399
|
});
|
|
4336
4400
|
function pickLatestSnapshots(snapshots, getSnapshotElementId) {
|
|
4337
4401
|
const groupedSnapshots = groupBy(snapshots, getSnapshotElementId);
|
|
@@ -4342,11 +4406,11 @@ function pickLatestSnapshots(snapshots, getSnapshotElementId) {
|
|
|
4342
4406
|
}
|
|
4343
4407
|
|
|
4344
4408
|
// src/dsm/element-snapshots/documentation-page-snapshot.ts
|
|
4345
|
-
import { z as
|
|
4409
|
+
import { z as z120 } from "zod";
|
|
4346
4410
|
var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
|
|
4347
4411
|
page: DocumentationPageV2,
|
|
4348
|
-
pageContentHash:
|
|
4349
|
-
pageContentStorageKey:
|
|
4412
|
+
pageContentHash: z120.string(),
|
|
4413
|
+
pageContentStorageKey: z120.string()
|
|
4350
4414
|
});
|
|
4351
4415
|
function pickLatestPageSnapshots(snapshots) {
|
|
4352
4416
|
return pickLatestSnapshots(snapshots, (s) => s.page.id);
|
|
@@ -4361,157 +4425,167 @@ function pickLatestGroupSnapshots(snapshots) {
|
|
|
4361
4425
|
}
|
|
4362
4426
|
|
|
4363
4427
|
// src/dsm/figma-node-renderer/renderer-payload.ts
|
|
4364
|
-
import { z as
|
|
4365
|
-
var FigmaNodeRendererPayload =
|
|
4366
|
-
designSystemId:
|
|
4367
|
-
versionId:
|
|
4368
|
-
figmaNodePersistentIds:
|
|
4428
|
+
import { z as z121 } from "zod";
|
|
4429
|
+
var FigmaNodeRendererPayload = z121.object({
|
|
4430
|
+
designSystemId: z121.string(),
|
|
4431
|
+
versionId: z121.string(),
|
|
4432
|
+
figmaNodePersistentIds: z121.string().array()
|
|
4369
4433
|
});
|
|
4370
4434
|
|
|
4371
4435
|
// src/dsm/figma-node-structures/structure-data.ts
|
|
4372
|
-
import { z as
|
|
4373
|
-
var FigmaNodeStructureDataV2 =
|
|
4436
|
+
import { z as z122 } from "zod";
|
|
4437
|
+
var FigmaNodeStructureDataV2 = z122.object({
|
|
4374
4438
|
rootNode: FigmaFileStructureNodeImportModel,
|
|
4375
|
-
assetsInFile:
|
|
4376
|
-
components:
|
|
4377
|
-
componentSets:
|
|
4378
|
-
frames:
|
|
4439
|
+
assetsInFile: z122.object({
|
|
4440
|
+
components: z122.number(),
|
|
4441
|
+
componentSets: z122.number(),
|
|
4442
|
+
frames: z122.number()
|
|
4379
4443
|
})
|
|
4380
4444
|
});
|
|
4381
4445
|
|
|
4382
4446
|
// src/dsm/figma-node-structures/structure.ts
|
|
4383
|
-
import { z as
|
|
4384
|
-
var FigmaNodeStructureStateV2 =
|
|
4385
|
-
var FigmaNodeStructureV2 =
|
|
4386
|
-
id:
|
|
4387
|
-
designSystemId:
|
|
4388
|
-
sourceId:
|
|
4389
|
-
storagePath:
|
|
4390
|
-
createdAt:
|
|
4391
|
-
updatedAt:
|
|
4447
|
+
import { z as z123 } from "zod";
|
|
4448
|
+
var FigmaNodeStructureStateV2 = z123.enum(["InProgress", "Success", "Failed"]);
|
|
4449
|
+
var FigmaNodeStructureV2 = z123.object({
|
|
4450
|
+
id: z123.string(),
|
|
4451
|
+
designSystemId: z123.string(),
|
|
4452
|
+
sourceId: z123.string(),
|
|
4453
|
+
storagePath: z123.string().optional(),
|
|
4454
|
+
createdAt: z123.coerce.date(),
|
|
4455
|
+
updatedAt: z123.coerce.date(),
|
|
4392
4456
|
importState: FigmaNodeStructureStateV2,
|
|
4393
|
-
error:
|
|
4394
|
-
chunkSize:
|
|
4457
|
+
error: z123.string().optional(),
|
|
4458
|
+
chunkSize: z123.number().optional(),
|
|
4395
4459
|
// TODO Artem: remove after migration
|
|
4396
|
-
isFromLegacyStorage:
|
|
4460
|
+
isFromLegacyStorage: z123.boolean()
|
|
4397
4461
|
});
|
|
4398
4462
|
|
|
4399
4463
|
// src/dsm/membership/design-system-membership.ts
|
|
4400
|
-
import { z as
|
|
4464
|
+
import { z as z145 } from "zod";
|
|
4401
4465
|
|
|
4402
4466
|
// src/workspace/npm-registry-settings.ts
|
|
4403
|
-
import { z as
|
|
4404
|
-
var NpmRegistryAuthType =
|
|
4405
|
-
var NpmRegistryType =
|
|
4406
|
-
var NpmRegistryBasicAuthConfig =
|
|
4407
|
-
authType:
|
|
4408
|
-
username:
|
|
4409
|
-
password:
|
|
4410
|
-
});
|
|
4411
|
-
var NpmRegistryBearerAuthConfig =
|
|
4412
|
-
authType:
|
|
4413
|
-
accessToken:
|
|
4414
|
-
});
|
|
4415
|
-
var NpmRegistryNoAuthConfig =
|
|
4416
|
-
authType:
|
|
4417
|
-
});
|
|
4418
|
-
var NpmRegistrCustomAuthConfig =
|
|
4419
|
-
authType:
|
|
4420
|
-
authHeaderName:
|
|
4421
|
-
authHeaderValue:
|
|
4422
|
-
});
|
|
4423
|
-
var NpmRegistryAuthConfig =
|
|
4467
|
+
import { z as z124 } from "zod";
|
|
4468
|
+
var NpmRegistryAuthType = z124.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
4469
|
+
var NpmRegistryType = z124.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
4470
|
+
var NpmRegistryBasicAuthConfig = z124.object({
|
|
4471
|
+
authType: z124.literal(NpmRegistryAuthType.Enum.Basic),
|
|
4472
|
+
username: z124.string(),
|
|
4473
|
+
password: z124.string()
|
|
4474
|
+
});
|
|
4475
|
+
var NpmRegistryBearerAuthConfig = z124.object({
|
|
4476
|
+
authType: z124.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
4477
|
+
accessToken: z124.string()
|
|
4478
|
+
});
|
|
4479
|
+
var NpmRegistryNoAuthConfig = z124.object({
|
|
4480
|
+
authType: z124.literal(NpmRegistryAuthType.Enum.None)
|
|
4481
|
+
});
|
|
4482
|
+
var NpmRegistrCustomAuthConfig = z124.object({
|
|
4483
|
+
authType: z124.literal(NpmRegistryAuthType.Enum.Custom),
|
|
4484
|
+
authHeaderName: z124.string(),
|
|
4485
|
+
authHeaderValue: z124.string()
|
|
4486
|
+
});
|
|
4487
|
+
var NpmRegistryAuthConfig = z124.discriminatedUnion("authType", [
|
|
4424
4488
|
NpmRegistryBasicAuthConfig,
|
|
4425
4489
|
NpmRegistryBearerAuthConfig,
|
|
4426
4490
|
NpmRegistryNoAuthConfig,
|
|
4427
4491
|
NpmRegistrCustomAuthConfig
|
|
4428
4492
|
]);
|
|
4429
|
-
var NpmRegistryConfigBase =
|
|
4493
|
+
var NpmRegistryConfigBase = z124.object({
|
|
4430
4494
|
registryType: NpmRegistryType,
|
|
4431
|
-
enabledScopes:
|
|
4432
|
-
customRegistryUrl:
|
|
4433
|
-
bypassProxy:
|
|
4434
|
-
npmProxyRegistryConfigId:
|
|
4435
|
-
npmProxyVersion:
|
|
4495
|
+
enabledScopes: z124.array(z124.string()),
|
|
4496
|
+
customRegistryUrl: z124.string().optional(),
|
|
4497
|
+
bypassProxy: z124.boolean().default(false),
|
|
4498
|
+
npmProxyRegistryConfigId: z124.string().optional(),
|
|
4499
|
+
npmProxyVersion: z124.number().optional()
|
|
4436
4500
|
});
|
|
4437
4501
|
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
4438
4502
|
|
|
4439
4503
|
// src/workspace/sso-provider.ts
|
|
4440
|
-
import { z as
|
|
4441
|
-
var SsoProvider =
|
|
4442
|
-
providerId:
|
|
4443
|
-
defaultAutoInviteValue:
|
|
4444
|
-
autoInviteDomains:
|
|
4445
|
-
skipDocsSupernovaLogin:
|
|
4446
|
-
areInvitesDisabled:
|
|
4447
|
-
isTestMode:
|
|
4448
|
-
emailDomains:
|
|
4449
|
-
metadataXml:
|
|
4504
|
+
import { z as z125 } from "zod";
|
|
4505
|
+
var SsoProvider = z125.object({
|
|
4506
|
+
providerId: z125.string(),
|
|
4507
|
+
defaultAutoInviteValue: z125.boolean(),
|
|
4508
|
+
autoInviteDomains: z125.record(z125.string(), z125.boolean()),
|
|
4509
|
+
skipDocsSupernovaLogin: z125.boolean(),
|
|
4510
|
+
areInvitesDisabled: z125.boolean(),
|
|
4511
|
+
isTestMode: z125.boolean(),
|
|
4512
|
+
emailDomains: z125.array(z125.string()),
|
|
4513
|
+
metadataXml: z125.string().nullish()
|
|
4514
|
+
});
|
|
4515
|
+
|
|
4516
|
+
// src/workspace/untyped-data.ts
|
|
4517
|
+
import { z as z126 } from "zod";
|
|
4518
|
+
var WorkspaceUntypedData = z126.object({
|
|
4519
|
+
id: z126.string(),
|
|
4520
|
+
workspaceId: z126.string(),
|
|
4521
|
+
value: z126.unknown(),
|
|
4522
|
+
createdAt: z126.coerce.date(),
|
|
4523
|
+
updatedAt: z126.coerce.date()
|
|
4450
4524
|
});
|
|
4451
4525
|
|
|
4452
4526
|
// src/workspace/user-invite.ts
|
|
4453
|
-
import { z as
|
|
4527
|
+
import { z as z128 } from "zod";
|
|
4454
4528
|
|
|
4455
4529
|
// src/workspace/workspace-role.ts
|
|
4456
|
-
import { z as
|
|
4457
|
-
var WorkspaceRoleSchema =
|
|
4530
|
+
import { z as z127 } from "zod";
|
|
4531
|
+
var WorkspaceRoleSchema = z127.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
|
|
4458
4532
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
4459
4533
|
|
|
4460
4534
|
// src/workspace/user-invite.ts
|
|
4461
4535
|
var MAX_MEMBERS_COUNT = 100;
|
|
4462
|
-
var UserInvite =
|
|
4463
|
-
email:
|
|
4536
|
+
var UserInvite = z128.object({
|
|
4537
|
+
email: z128.string().email().trim().transform((value) => value.toLowerCase()),
|
|
4464
4538
|
role: WorkspaceRoleSchema
|
|
4465
4539
|
});
|
|
4466
|
-
var UserInvites =
|
|
4540
|
+
var UserInvites = z128.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
4467
4541
|
|
|
4468
4542
|
// src/workspace/workspace-configuration.ts
|
|
4469
|
-
import { z as
|
|
4543
|
+
import { z as z130 } from "zod";
|
|
4470
4544
|
|
|
4471
4545
|
// src/workspace/workspace.ts
|
|
4472
4546
|
import IPCIDR from "ip-cidr";
|
|
4473
|
-
import { z as
|
|
4547
|
+
import { z as z129 } from "zod";
|
|
4474
4548
|
var isValidCIDR = (value) => {
|
|
4475
4549
|
return IPCIDR.isValidAddress(value);
|
|
4476
4550
|
};
|
|
4477
|
-
var WorkspaceIpWhitelistEntry =
|
|
4478
|
-
isEnabled:
|
|
4479
|
-
name:
|
|
4480
|
-
range:
|
|
4551
|
+
var WorkspaceIpWhitelistEntry = z129.object({
|
|
4552
|
+
isEnabled: z129.boolean(),
|
|
4553
|
+
name: z129.string(),
|
|
4554
|
+
range: z129.string().refine(isValidCIDR, {
|
|
4481
4555
|
message: "Invalid IP CIDR"
|
|
4482
4556
|
})
|
|
4483
4557
|
});
|
|
4484
|
-
var WorkspaceIpSettings =
|
|
4485
|
-
isEnabledForCloud:
|
|
4486
|
-
isEnabledForDocs:
|
|
4487
|
-
entries:
|
|
4558
|
+
var WorkspaceIpSettings = z129.object({
|
|
4559
|
+
isEnabledForCloud: z129.boolean(),
|
|
4560
|
+
isEnabledForDocs: z129.boolean(),
|
|
4561
|
+
entries: z129.array(WorkspaceIpWhitelistEntry)
|
|
4488
4562
|
});
|
|
4489
|
-
var WorkspaceProfile =
|
|
4490
|
-
name:
|
|
4491
|
-
handle:
|
|
4492
|
-
color:
|
|
4493
|
-
avatar: nullishToOptional(
|
|
4563
|
+
var WorkspaceProfile = z129.object({
|
|
4564
|
+
name: z129.string(),
|
|
4565
|
+
handle: z129.string(),
|
|
4566
|
+
color: z129.string(),
|
|
4567
|
+
avatar: nullishToOptional(z129.string()),
|
|
4494
4568
|
billingDetails: nullishToOptional(BillingDetails)
|
|
4495
4569
|
});
|
|
4496
4570
|
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
4497
4571
|
avatar: true
|
|
4498
4572
|
});
|
|
4499
|
-
var Workspace =
|
|
4500
|
-
id:
|
|
4573
|
+
var Workspace = z129.object({
|
|
4574
|
+
id: z129.string(),
|
|
4501
4575
|
profile: WorkspaceProfile,
|
|
4502
4576
|
subscription: Subscription,
|
|
4503
4577
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4504
4578
|
sso: nullishToOptional(SsoProvider),
|
|
4505
4579
|
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
4506
4580
|
});
|
|
4507
|
-
var WorkspaceWithDesignSystems =
|
|
4581
|
+
var WorkspaceWithDesignSystems = z129.object({
|
|
4508
4582
|
workspace: Workspace,
|
|
4509
|
-
designSystems:
|
|
4583
|
+
designSystems: z129.array(DesignSystem)
|
|
4510
4584
|
});
|
|
4511
4585
|
|
|
4512
4586
|
// src/workspace/workspace-configuration.ts
|
|
4513
|
-
var WorkspaceConfigurationUpdate =
|
|
4514
|
-
id:
|
|
4587
|
+
var WorkspaceConfigurationUpdate = z130.object({
|
|
4588
|
+
id: z130.string(),
|
|
4515
4589
|
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
4516
4590
|
sso: SsoProvider.optional(),
|
|
4517
4591
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
@@ -4519,59 +4593,59 @@ var WorkspaceConfigurationUpdate = z128.object({
|
|
|
4519
4593
|
});
|
|
4520
4594
|
|
|
4521
4595
|
// src/workspace/workspace-context.ts
|
|
4522
|
-
import { z as
|
|
4523
|
-
var WorkspaceContext =
|
|
4524
|
-
workspaceId:
|
|
4596
|
+
import { z as z131 } from "zod";
|
|
4597
|
+
var WorkspaceContext = z131.object({
|
|
4598
|
+
workspaceId: z131.string(),
|
|
4525
4599
|
product: ProductCodeSchema,
|
|
4526
4600
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4527
|
-
publicDesignSystem:
|
|
4601
|
+
publicDesignSystem: z131.boolean().optional()
|
|
4528
4602
|
});
|
|
4529
4603
|
|
|
4530
4604
|
// src/workspace/workspace-create.ts
|
|
4531
|
-
import { z as
|
|
4605
|
+
import { z as z132 } from "zod";
|
|
4532
4606
|
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
4533
4607
|
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
4534
4608
|
var HANDLE_MIN_LENGTH = 2;
|
|
4535
4609
|
var HANDLE_MAX_LENGTH = 64;
|
|
4536
|
-
var CreateWorkspaceInput =
|
|
4537
|
-
name:
|
|
4538
|
-
handle:
|
|
4610
|
+
var CreateWorkspaceInput = z132.object({
|
|
4611
|
+
name: z132.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
4612
|
+
handle: z132.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
|
|
4539
4613
|
});
|
|
4540
4614
|
|
|
4541
4615
|
// src/workspace/workspace-invitations.ts
|
|
4542
|
-
import { z as
|
|
4543
|
-
var WorkspaceInvitation =
|
|
4544
|
-
id:
|
|
4545
|
-
email:
|
|
4546
|
-
createdAt:
|
|
4547
|
-
resentAt:
|
|
4548
|
-
role:
|
|
4549
|
-
workspaceId:
|
|
4550
|
-
invitedBy:
|
|
4616
|
+
import { z as z133 } from "zod";
|
|
4617
|
+
var WorkspaceInvitation = z133.object({
|
|
4618
|
+
id: z133.string(),
|
|
4619
|
+
email: z133.string().email(),
|
|
4620
|
+
createdAt: z133.coerce.date(),
|
|
4621
|
+
resentAt: z133.coerce.date().nullish(),
|
|
4622
|
+
role: z133.nativeEnum(WorkspaceRole),
|
|
4623
|
+
workspaceId: z133.string(),
|
|
4624
|
+
invitedBy: z133.string()
|
|
4551
4625
|
});
|
|
4552
4626
|
|
|
4553
4627
|
// src/workspace/workspace-membership.ts
|
|
4554
|
-
import { z as
|
|
4628
|
+
import { z as z142 } from "zod";
|
|
4555
4629
|
|
|
4556
4630
|
// src/users/linked-integrations.ts
|
|
4557
|
-
import { z as
|
|
4558
|
-
var IntegrationAuthType =
|
|
4559
|
-
var ExternalServiceType =
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4631
|
+
import { z as z134 } from "zod";
|
|
4632
|
+
var IntegrationAuthType = z134.union([z134.literal("OAuth2"), z134.literal("PAT")]);
|
|
4633
|
+
var ExternalServiceType = z134.union([
|
|
4634
|
+
z134.literal("figma"),
|
|
4635
|
+
z134.literal("github"),
|
|
4636
|
+
z134.literal("azure"),
|
|
4637
|
+
z134.literal("gitlab"),
|
|
4638
|
+
z134.literal("bitbucket")
|
|
4565
4639
|
]);
|
|
4566
|
-
var IntegrationUserInfo =
|
|
4567
|
-
id:
|
|
4568
|
-
handle:
|
|
4569
|
-
avatarUrl:
|
|
4570
|
-
email:
|
|
4640
|
+
var IntegrationUserInfo = z134.object({
|
|
4641
|
+
id: z134.string(),
|
|
4642
|
+
handle: z134.string().optional(),
|
|
4643
|
+
avatarUrl: z134.string().optional(),
|
|
4644
|
+
email: z134.string().optional(),
|
|
4571
4645
|
authType: IntegrationAuthType.optional(),
|
|
4572
|
-
customUrl:
|
|
4646
|
+
customUrl: z134.string().optional()
|
|
4573
4647
|
});
|
|
4574
|
-
var UserLinkedIntegrations =
|
|
4648
|
+
var UserLinkedIntegrations = z134.object({
|
|
4575
4649
|
figma: IntegrationUserInfo.optional(),
|
|
4576
4650
|
github: IntegrationUserInfo.array().optional(),
|
|
4577
4651
|
azure: IntegrationUserInfo.array().optional(),
|
|
@@ -4580,38 +4654,38 @@ var UserLinkedIntegrations = z132.object({
|
|
|
4580
4654
|
});
|
|
4581
4655
|
|
|
4582
4656
|
// src/users/user-analytics-cleanup-schedule.ts
|
|
4583
|
-
import { z as
|
|
4584
|
-
var UserAnalyticsCleanupSchedule =
|
|
4585
|
-
userId:
|
|
4586
|
-
createdAt:
|
|
4587
|
-
deleteAt:
|
|
4657
|
+
import { z as z135 } from "zod";
|
|
4658
|
+
var UserAnalyticsCleanupSchedule = z135.object({
|
|
4659
|
+
userId: z135.string(),
|
|
4660
|
+
createdAt: z135.coerce.date(),
|
|
4661
|
+
deleteAt: z135.coerce.date()
|
|
4588
4662
|
});
|
|
4589
4663
|
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
4590
4664
|
createdAt: true
|
|
4591
4665
|
});
|
|
4592
4666
|
|
|
4593
4667
|
// src/users/user-identity.ts
|
|
4594
|
-
import { z as
|
|
4595
|
-
var UserIdentity =
|
|
4596
|
-
id:
|
|
4597
|
-
userId:
|
|
4668
|
+
import { z as z136 } from "zod";
|
|
4669
|
+
var UserIdentity = z136.object({
|
|
4670
|
+
id: z136.string(),
|
|
4671
|
+
userId: z136.string()
|
|
4598
4672
|
});
|
|
4599
4673
|
|
|
4600
4674
|
// src/users/user-minified.ts
|
|
4601
|
-
import { z as
|
|
4602
|
-
var UserMinified =
|
|
4603
|
-
id:
|
|
4604
|
-
name:
|
|
4605
|
-
email:
|
|
4606
|
-
avatar:
|
|
4675
|
+
import { z as z137 } from "zod";
|
|
4676
|
+
var UserMinified = z137.object({
|
|
4677
|
+
id: z137.string(),
|
|
4678
|
+
name: z137.string(),
|
|
4679
|
+
email: z137.string(),
|
|
4680
|
+
avatar: z137.string().optional()
|
|
4607
4681
|
});
|
|
4608
4682
|
|
|
4609
4683
|
// src/users/user-notification-settings.ts
|
|
4610
|
-
import { z as
|
|
4611
|
-
var LiveblocksNotificationSettings =
|
|
4612
|
-
sendCommentNotificationEmails:
|
|
4684
|
+
import { z as z138 } from "zod";
|
|
4685
|
+
var LiveblocksNotificationSettings = z138.object({
|
|
4686
|
+
sendCommentNotificationEmails: z138.boolean()
|
|
4613
4687
|
});
|
|
4614
|
-
var UserNotificationSettings =
|
|
4688
|
+
var UserNotificationSettings = z138.object({
|
|
4615
4689
|
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
4616
4690
|
});
|
|
4617
4691
|
var defaultNotificationSettings = {
|
|
@@ -4621,11 +4695,11 @@ var defaultNotificationSettings = {
|
|
|
4621
4695
|
};
|
|
4622
4696
|
|
|
4623
4697
|
// src/users/user-profile.ts
|
|
4624
|
-
import { z as
|
|
4625
|
-
var UserOnboardingDepartment =
|
|
4626
|
-
var UserOnboardingJobLevel =
|
|
4627
|
-
var UserTheme =
|
|
4628
|
-
preset:
|
|
4698
|
+
import { z as z139 } from "zod";
|
|
4699
|
+
var UserOnboardingDepartment = z139.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
4700
|
+
var UserOnboardingJobLevel = z139.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
4701
|
+
var UserTheme = z139.object({
|
|
4702
|
+
preset: z139.enum([
|
|
4629
4703
|
"Custom",
|
|
4630
4704
|
"Default",
|
|
4631
4705
|
"HighContrast",
|
|
@@ -4636,32 +4710,32 @@ var UserTheme = z137.object({
|
|
|
4636
4710
|
"SystemPreference",
|
|
4637
4711
|
"Sepia"
|
|
4638
4712
|
]).optional(),
|
|
4639
|
-
backgroundColor:
|
|
4640
|
-
accentColor:
|
|
4641
|
-
contrast:
|
|
4642
|
-
isSecondaryEnabled:
|
|
4643
|
-
secondaryBackgroundColor:
|
|
4644
|
-
secondaryContrast:
|
|
4645
|
-
isEditorWhite:
|
|
4646
|
-
});
|
|
4647
|
-
var UserOnboarding =
|
|
4648
|
-
companyName:
|
|
4649
|
-
numberOfPeopleInOrg:
|
|
4650
|
-
numberOfPeopleInDesignTeam:
|
|
4713
|
+
backgroundColor: z139.string().optional(),
|
|
4714
|
+
accentColor: z139.string().optional(),
|
|
4715
|
+
contrast: z139.number().min(16).max(100).optional(),
|
|
4716
|
+
isSecondaryEnabled: z139.boolean().optional(),
|
|
4717
|
+
secondaryBackgroundColor: z139.string().optional(),
|
|
4718
|
+
secondaryContrast: z139.number().min(16).max(100).optional(),
|
|
4719
|
+
isEditorWhite: z139.boolean().optional()
|
|
4720
|
+
});
|
|
4721
|
+
var UserOnboarding = z139.object({
|
|
4722
|
+
companyName: z139.string().optional(),
|
|
4723
|
+
numberOfPeopleInOrg: z139.string().optional(),
|
|
4724
|
+
numberOfPeopleInDesignTeam: z139.string().optional(),
|
|
4651
4725
|
department: UserOnboardingDepartment.optional(),
|
|
4652
|
-
jobTitle:
|
|
4653
|
-
phase:
|
|
4726
|
+
jobTitle: z139.string().optional(),
|
|
4727
|
+
phase: z139.string().optional(),
|
|
4654
4728
|
jobLevel: UserOnboardingJobLevel.optional(),
|
|
4655
|
-
designSystemName:
|
|
4656
|
-
defaultDestination:
|
|
4657
|
-
figmaUrl:
|
|
4658
|
-
isPageDraftOnboardingFinished:
|
|
4659
|
-
isApprovalsOnboardingFinished:
|
|
4660
|
-
});
|
|
4661
|
-
var UserProfile =
|
|
4662
|
-
name:
|
|
4663
|
-
avatar:
|
|
4664
|
-
nickname:
|
|
4729
|
+
designSystemName: z139.string().optional(),
|
|
4730
|
+
defaultDestination: z139.string().optional(),
|
|
4731
|
+
figmaUrl: z139.string().optional(),
|
|
4732
|
+
isPageDraftOnboardingFinished: z139.boolean().optional(),
|
|
4733
|
+
isApprovalsOnboardingFinished: z139.boolean().optional()
|
|
4734
|
+
});
|
|
4735
|
+
var UserProfile = z139.object({
|
|
4736
|
+
name: z139.string(),
|
|
4737
|
+
avatar: z139.string().optional(),
|
|
4738
|
+
nickname: z139.string().optional(),
|
|
4665
4739
|
onboarding: UserOnboarding.optional(),
|
|
4666
4740
|
theme: UserTheme.optional()
|
|
4667
4741
|
});
|
|
@@ -4670,47 +4744,47 @@ var UserProfileUpdate = UserProfile.partial().omit({
|
|
|
4670
4744
|
});
|
|
4671
4745
|
|
|
4672
4746
|
// src/users/user-test.ts
|
|
4673
|
-
import { z as
|
|
4674
|
-
var UserTest =
|
|
4675
|
-
id:
|
|
4676
|
-
email:
|
|
4747
|
+
import { z as z140 } from "zod";
|
|
4748
|
+
var UserTest = z140.object({
|
|
4749
|
+
id: z140.string(),
|
|
4750
|
+
email: z140.string()
|
|
4677
4751
|
});
|
|
4678
4752
|
|
|
4679
4753
|
// src/users/user.ts
|
|
4680
|
-
import { z as
|
|
4681
|
-
var UserSource =
|
|
4682
|
-
var User =
|
|
4683
|
-
id:
|
|
4684
|
-
email:
|
|
4685
|
-
createdAt:
|
|
4754
|
+
import { z as z141 } from "zod";
|
|
4755
|
+
var UserSource = z141.enum(["SignUp", "Invite", "SSO"]);
|
|
4756
|
+
var User = z141.object({
|
|
4757
|
+
id: z141.string(),
|
|
4758
|
+
email: z141.string(),
|
|
4759
|
+
createdAt: z141.coerce.date(),
|
|
4686
4760
|
profile: UserProfile,
|
|
4687
|
-
loggedOutAt:
|
|
4688
|
-
isProtected:
|
|
4761
|
+
loggedOutAt: z141.coerce.date().optional(),
|
|
4762
|
+
isProtected: z141.boolean(),
|
|
4689
4763
|
source: UserSource.optional()
|
|
4690
4764
|
});
|
|
4691
4765
|
|
|
4692
4766
|
// src/workspace/workspace-membership.ts
|
|
4693
|
-
var WorkspaceMembership =
|
|
4694
|
-
id:
|
|
4695
|
-
userId:
|
|
4696
|
-
workspaceId:
|
|
4697
|
-
workspaceRole:
|
|
4767
|
+
var WorkspaceMembership = z142.object({
|
|
4768
|
+
id: z142.string(),
|
|
4769
|
+
userId: z142.string(),
|
|
4770
|
+
workspaceId: z142.string(),
|
|
4771
|
+
workspaceRole: z142.nativeEnum(WorkspaceRole),
|
|
4698
4772
|
notificationSettings: UserNotificationSettings,
|
|
4699
|
-
isPrimaryOwner:
|
|
4700
|
-
});
|
|
4701
|
-
var UpdateMembershipRolesInput =
|
|
4702
|
-
members:
|
|
4703
|
-
|
|
4704
|
-
userId:
|
|
4705
|
-
role:
|
|
4706
|
-
isPrimaryOwner:
|
|
4773
|
+
isPrimaryOwner: z142.boolean().nullish()
|
|
4774
|
+
});
|
|
4775
|
+
var UpdateMembershipRolesInput = z142.object({
|
|
4776
|
+
members: z142.array(
|
|
4777
|
+
z142.object({
|
|
4778
|
+
userId: z142.string(),
|
|
4779
|
+
role: z142.nativeEnum(WorkspaceRole),
|
|
4780
|
+
isPrimaryOwner: z142.boolean().optional()
|
|
4707
4781
|
})
|
|
4708
4782
|
)
|
|
4709
4783
|
});
|
|
4710
4784
|
|
|
4711
4785
|
// src/dsm/membership/ds-role.ts
|
|
4712
|
-
import { z as
|
|
4713
|
-
var DesignSystemRole =
|
|
4786
|
+
import { z as z143 } from "zod";
|
|
4787
|
+
var DesignSystemRole = z143.enum([
|
|
4714
4788
|
WorkspaceRole.Admin,
|
|
4715
4789
|
WorkspaceRole.Contributor,
|
|
4716
4790
|
WorkspaceRole.Creator,
|
|
@@ -4734,46 +4808,46 @@ function workspaceRoleToDesignSystemRole(role) {
|
|
|
4734
4808
|
}
|
|
4735
4809
|
|
|
4736
4810
|
// src/dsm/membership/invitations.ts
|
|
4737
|
-
import { z as
|
|
4738
|
-
var DesignSystemInvitation =
|
|
4739
|
-
id:
|
|
4740
|
-
designSystemId:
|
|
4741
|
-
workspaceInvitationId:
|
|
4811
|
+
import { z as z144 } from "zod";
|
|
4812
|
+
var DesignSystemInvitation = z144.object({
|
|
4813
|
+
id: z144.string(),
|
|
4814
|
+
designSystemId: z144.string(),
|
|
4815
|
+
workspaceInvitationId: z144.string(),
|
|
4742
4816
|
designSystemRole: DesignSystemRole.optional(),
|
|
4743
4817
|
workspaceRole: WorkspaceRoleSchema
|
|
4744
4818
|
});
|
|
4745
4819
|
|
|
4746
4820
|
// src/dsm/membership/design-system-membership.ts
|
|
4747
|
-
var DesignSystemMembership =
|
|
4748
|
-
id:
|
|
4749
|
-
userId:
|
|
4750
|
-
designSystemId:
|
|
4821
|
+
var DesignSystemMembership = z145.object({
|
|
4822
|
+
id: z145.string(),
|
|
4823
|
+
userId: z145.string(),
|
|
4824
|
+
designSystemId: z145.string(),
|
|
4751
4825
|
designSystemRole: DesignSystemRole.optional(),
|
|
4752
|
-
workspaceMembershipId:
|
|
4826
|
+
workspaceMembershipId: z145.string(),
|
|
4753
4827
|
workspaceRole: WorkspaceRoleSchema
|
|
4754
4828
|
});
|
|
4755
|
-
var DesignSystemMembers =
|
|
4829
|
+
var DesignSystemMembers = z145.object({
|
|
4756
4830
|
members: DesignSystemMembership.array(),
|
|
4757
4831
|
invitations: DesignSystemInvitation.array()
|
|
4758
4832
|
});
|
|
4759
|
-
var DesignSystemPendingMemberInvitation =
|
|
4760
|
-
inviteId:
|
|
4833
|
+
var DesignSystemPendingMemberInvitation = z145.object({
|
|
4834
|
+
inviteId: z145.string(),
|
|
4761
4835
|
/**
|
|
4762
4836
|
* Role that the user will have in the design system, undefined
|
|
4763
4837
|
* if it should be inherited from the workspace
|
|
4764
4838
|
*/
|
|
4765
4839
|
designSystemRole: DesignSystemRole.optional()
|
|
4766
4840
|
});
|
|
4767
|
-
var DesignSystemUserInvitation =
|
|
4768
|
-
userId:
|
|
4841
|
+
var DesignSystemUserInvitation = z145.object({
|
|
4842
|
+
userId: z145.string(),
|
|
4769
4843
|
/**
|
|
4770
4844
|
* Role that the user will have in the design system, undefined
|
|
4771
4845
|
* if it should be inherited from the workspace
|
|
4772
4846
|
*/
|
|
4773
4847
|
designSystemRole: DesignSystemRole.optional()
|
|
4774
4848
|
});
|
|
4775
|
-
var DesignSystemInvite =
|
|
4776
|
-
email:
|
|
4849
|
+
var DesignSystemInvite = z145.object({
|
|
4850
|
+
email: z145.string(),
|
|
4777
4851
|
workspaceRole: WorkspaceRoleSchema,
|
|
4778
4852
|
/**
|
|
4779
4853
|
* Role that the user will have in the design system, undefined
|
|
@@ -4781,285 +4855,318 @@ var DesignSystemInvite = z143.object({
|
|
|
4781
4855
|
*/
|
|
4782
4856
|
designSystemRole: DesignSystemRole.optional()
|
|
4783
4857
|
});
|
|
4784
|
-
var DesignSystemMemberUpdate =
|
|
4785
|
-
userId:
|
|
4858
|
+
var DesignSystemMemberUpdate = z145.object({
|
|
4859
|
+
userId: z145.string(),
|
|
4786
4860
|
designSystemRole: DesignSystemRole.nullable()
|
|
4787
4861
|
});
|
|
4788
|
-
var DesignSystemInviteUpdate =
|
|
4862
|
+
var DesignSystemInviteUpdate = z145.object({
|
|
4789
4863
|
/**
|
|
4790
4864
|
* Workspace invitation id
|
|
4791
4865
|
*/
|
|
4792
|
-
inviteId:
|
|
4866
|
+
inviteId: z145.string(),
|
|
4793
4867
|
designSystemRole: DesignSystemRole.nullable()
|
|
4794
4868
|
});
|
|
4795
|
-
var DesignSystemMembershipUpdates =
|
|
4869
|
+
var DesignSystemMembershipUpdates = z145.object({
|
|
4796
4870
|
usersToInvite: DesignSystemUserInvitation.array().optional(),
|
|
4797
4871
|
invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
|
|
4798
4872
|
emailsToInvite: DesignSystemInvite.array().optional(),
|
|
4799
4873
|
usersToUpdate: DesignSystemMemberUpdate.array().optional(),
|
|
4800
4874
|
invitesToUpdate: DesignSystemInviteUpdate.array().optional(),
|
|
4801
|
-
removeUserIds:
|
|
4802
|
-
deleteInvitationIds:
|
|
4875
|
+
removeUserIds: z145.string().array().optional(),
|
|
4876
|
+
deleteInvitationIds: z145.string().array().optional()
|
|
4803
4877
|
});
|
|
4804
4878
|
|
|
4805
4879
|
// src/dsm/views/column.ts
|
|
4806
|
-
import { z as
|
|
4807
|
-
var ElementViewBaseColumnType =
|
|
4808
|
-
var ElementViewColumnType =
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4880
|
+
import { z as z146 } from "zod";
|
|
4881
|
+
var ElementViewBaseColumnType = z146.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
4882
|
+
var ElementViewColumnType = z146.union([
|
|
4883
|
+
z146.literal("BaseProperty"),
|
|
4884
|
+
z146.literal("PropertyDefinition"),
|
|
4885
|
+
z146.literal("Theme")
|
|
4812
4886
|
]);
|
|
4813
|
-
var ElementViewColumnSharedAttributes =
|
|
4814
|
-
id:
|
|
4815
|
-
persistentId:
|
|
4816
|
-
elementDataViewId:
|
|
4817
|
-
sortPosition:
|
|
4818
|
-
width:
|
|
4887
|
+
var ElementViewColumnSharedAttributes = z146.object({
|
|
4888
|
+
id: z146.string(),
|
|
4889
|
+
persistentId: z146.string(),
|
|
4890
|
+
elementDataViewId: z146.string(),
|
|
4891
|
+
sortPosition: z146.number(),
|
|
4892
|
+
width: z146.number()
|
|
4819
4893
|
});
|
|
4820
4894
|
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
4821
|
-
type:
|
|
4895
|
+
type: z146.literal("BaseProperty"),
|
|
4822
4896
|
basePropertyType: ElementViewBaseColumnType
|
|
4823
4897
|
});
|
|
4824
4898
|
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
4825
|
-
type:
|
|
4826
|
-
propertyDefinitionId:
|
|
4899
|
+
type: z146.literal("PropertyDefinition"),
|
|
4900
|
+
propertyDefinitionId: z146.string()
|
|
4827
4901
|
});
|
|
4828
4902
|
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
4829
|
-
type:
|
|
4830
|
-
themeId:
|
|
4903
|
+
type: z146.literal("Theme"),
|
|
4904
|
+
themeId: z146.string()
|
|
4831
4905
|
});
|
|
4832
|
-
var ElementViewColumn =
|
|
4906
|
+
var ElementViewColumn = z146.discriminatedUnion("type", [
|
|
4833
4907
|
ElementViewBasePropertyColumn,
|
|
4834
4908
|
ElementViewPropertyDefinitionColumn,
|
|
4835
4909
|
ElementViewThemeColumn
|
|
4836
4910
|
]);
|
|
4837
4911
|
|
|
4838
4912
|
// src/dsm/views/view.ts
|
|
4839
|
-
import { z as
|
|
4840
|
-
var ElementView =
|
|
4841
|
-
id:
|
|
4842
|
-
persistentId:
|
|
4843
|
-
designSystemVersionId:
|
|
4844
|
-
name:
|
|
4845
|
-
description:
|
|
4913
|
+
import { z as z147 } from "zod";
|
|
4914
|
+
var ElementView = z147.object({
|
|
4915
|
+
id: z147.string(),
|
|
4916
|
+
persistentId: z147.string(),
|
|
4917
|
+
designSystemVersionId: z147.string(),
|
|
4918
|
+
name: z147.string(),
|
|
4919
|
+
description: z147.string(),
|
|
4846
4920
|
targetElementType: ElementPropertyTargetType,
|
|
4847
|
-
isDefault:
|
|
4921
|
+
isDefault: z147.boolean()
|
|
4848
4922
|
});
|
|
4849
4923
|
|
|
4850
4924
|
// src/dsm/brand.ts
|
|
4851
|
-
import { z as
|
|
4852
|
-
var Brand =
|
|
4853
|
-
id:
|
|
4854
|
-
designSystemVersionId:
|
|
4855
|
-
persistentId:
|
|
4856
|
-
name:
|
|
4857
|
-
description:
|
|
4925
|
+
import { z as z148 } from "zod";
|
|
4926
|
+
var Brand = z148.object({
|
|
4927
|
+
id: z148.string(),
|
|
4928
|
+
designSystemVersionId: z148.string(),
|
|
4929
|
+
persistentId: z148.string(),
|
|
4930
|
+
name: z148.string(),
|
|
4931
|
+
description: z148.string()
|
|
4858
4932
|
});
|
|
4859
4933
|
|
|
4860
4934
|
// src/dsm/design-system.ts
|
|
4861
|
-
import { z as
|
|
4862
|
-
var DesignSystemAccessMode =
|
|
4863
|
-
var DesignSystemSwitcher =
|
|
4864
|
-
isEnabled:
|
|
4865
|
-
designSystemIds:
|
|
4935
|
+
import { z as z149 } from "zod";
|
|
4936
|
+
var DesignSystemAccessMode = z149.enum(["Open", "InviteOnly"]);
|
|
4937
|
+
var DesignSystemSwitcher = z149.object({
|
|
4938
|
+
isEnabled: z149.boolean(),
|
|
4939
|
+
designSystemIds: z149.array(z149.string())
|
|
4866
4940
|
});
|
|
4867
|
-
var DesignSystem =
|
|
4868
|
-
id:
|
|
4869
|
-
workspaceId:
|
|
4870
|
-
name:
|
|
4871
|
-
description:
|
|
4872
|
-
docExporterId: nullishToOptional(
|
|
4873
|
-
docSlug:
|
|
4874
|
-
docUserSlug: nullishToOptional(
|
|
4875
|
-
docSlugDeprecated:
|
|
4876
|
-
isMultibrand:
|
|
4877
|
-
docViewUrl: nullishToOptional(
|
|
4878
|
-
basePrefixes:
|
|
4941
|
+
var DesignSystem = z149.object({
|
|
4942
|
+
id: z149.string(),
|
|
4943
|
+
workspaceId: z149.string(),
|
|
4944
|
+
name: z149.string(),
|
|
4945
|
+
description: z149.string(),
|
|
4946
|
+
docExporterId: nullishToOptional(z149.string()),
|
|
4947
|
+
docSlug: z149.string(),
|
|
4948
|
+
docUserSlug: nullishToOptional(z149.string()),
|
|
4949
|
+
docSlugDeprecated: z149.string(),
|
|
4950
|
+
isMultibrand: z149.boolean(),
|
|
4951
|
+
docViewUrl: nullishToOptional(z149.string()),
|
|
4952
|
+
basePrefixes: z149.array(z149.string()),
|
|
4879
4953
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
4880
|
-
isApprovalFeatureEnabled:
|
|
4881
|
-
approvalRequiredForPublishing:
|
|
4954
|
+
isApprovalFeatureEnabled: z149.boolean(),
|
|
4955
|
+
approvalRequiredForPublishing: z149.boolean(),
|
|
4882
4956
|
accessMode: DesignSystemAccessMode,
|
|
4883
|
-
membersGenerated:
|
|
4884
|
-
createdAt:
|
|
4885
|
-
updatedAt:
|
|
4957
|
+
membersGenerated: z149.boolean(),
|
|
4958
|
+
createdAt: z149.coerce.date(),
|
|
4959
|
+
updatedAt: z149.coerce.date()
|
|
4886
4960
|
});
|
|
4887
4961
|
|
|
4888
4962
|
// src/dsm/exporter-property-values-collection.ts
|
|
4889
|
-
import { z as
|
|
4890
|
-
var ExporterPropertyImageValue =
|
|
4963
|
+
import { z as z150 } from "zod";
|
|
4964
|
+
var ExporterPropertyImageValue = z150.object({
|
|
4891
4965
|
asset: PageBlockAsset.optional(),
|
|
4892
|
-
assetId:
|
|
4893
|
-
assetUrl:
|
|
4894
|
-
});
|
|
4895
|
-
var ExporterConfigurationPropertyValue =
|
|
4896
|
-
key:
|
|
4897
|
-
value:
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4966
|
+
assetId: z150.string().optional(),
|
|
4967
|
+
assetUrl: z150.string().optional()
|
|
4968
|
+
});
|
|
4969
|
+
var ExporterConfigurationPropertyValue = z150.object({
|
|
4970
|
+
key: z150.string(),
|
|
4971
|
+
value: z150.union([
|
|
4972
|
+
z150.number(),
|
|
4973
|
+
z150.string(),
|
|
4974
|
+
z150.boolean(),
|
|
4901
4975
|
ExporterPropertyImageValue,
|
|
4902
4976
|
ColorTokenData,
|
|
4903
4977
|
TypographyTokenData
|
|
4904
4978
|
])
|
|
4905
4979
|
});
|
|
4906
|
-
var ExporterPropertyValuesCollection =
|
|
4907
|
-
id:
|
|
4908
|
-
designSystemId:
|
|
4909
|
-
exporterId:
|
|
4910
|
-
values:
|
|
4980
|
+
var ExporterPropertyValuesCollection = z150.object({
|
|
4981
|
+
id: z150.string(),
|
|
4982
|
+
designSystemId: z150.string(),
|
|
4983
|
+
exporterId: z150.string(),
|
|
4984
|
+
values: z150.array(ExporterConfigurationPropertyValue)
|
|
4911
4985
|
});
|
|
4912
4986
|
|
|
4913
4987
|
// src/dsm/published-doc-page-visits.ts
|
|
4914
|
-
import { z as
|
|
4915
|
-
var PublishedDocPageVisitsEntry =
|
|
4916
|
-
id:
|
|
4917
|
-
versionId:
|
|
4918
|
-
pagePersistentId:
|
|
4919
|
-
locale:
|
|
4920
|
-
timestamp:
|
|
4921
|
-
visits:
|
|
4922
|
-
userId: nullishToOptional(
|
|
4923
|
-
anonymousId: nullishToOptional(
|
|
4988
|
+
import { z as z151 } from "zod";
|
|
4989
|
+
var PublishedDocPageVisitsEntry = z151.object({
|
|
4990
|
+
id: z151.string(),
|
|
4991
|
+
versionId: z151.string(),
|
|
4992
|
+
pagePersistentId: z151.string(),
|
|
4993
|
+
locale: z151.string().optional(),
|
|
4994
|
+
timestamp: z151.coerce.date(),
|
|
4995
|
+
visits: z151.number(),
|
|
4996
|
+
userId: nullishToOptional(z151.string()),
|
|
4997
|
+
anonymousId: nullishToOptional(z151.string())
|
|
4924
4998
|
});
|
|
4925
4999
|
|
|
4926
5000
|
// src/dsm/published-doc-page.ts
|
|
4927
|
-
import { z as
|
|
5001
|
+
import { z as z152 } from "zod";
|
|
4928
5002
|
var SHORT_PERSISTENT_ID_LENGTH = 8;
|
|
4929
5003
|
function tryParseShortPersistentId(url = "/") {
|
|
4930
5004
|
const lastUrlPart = url.split("/").pop() || "";
|
|
4931
5005
|
const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
|
|
4932
5006
|
return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
|
|
4933
5007
|
}
|
|
4934
|
-
var PublishedDocPage =
|
|
4935
|
-
id:
|
|
4936
|
-
publishedDocId:
|
|
4937
|
-
pageShortPersistentId:
|
|
4938
|
-
pagePersistentId:
|
|
4939
|
-
pathV1:
|
|
4940
|
-
pathV2:
|
|
4941
|
-
storagePath:
|
|
4942
|
-
locale:
|
|
4943
|
-
isPrivate:
|
|
4944
|
-
isHidden:
|
|
4945
|
-
createdAt:
|
|
4946
|
-
updatedAt:
|
|
5008
|
+
var PublishedDocPage = z152.object({
|
|
5009
|
+
id: z152.string(),
|
|
5010
|
+
publishedDocId: z152.string(),
|
|
5011
|
+
pageShortPersistentId: z152.string(),
|
|
5012
|
+
pagePersistentId: z152.string().optional(),
|
|
5013
|
+
pathV1: z152.string(),
|
|
5014
|
+
pathV2: z152.string(),
|
|
5015
|
+
storagePath: z152.string(),
|
|
5016
|
+
locale: z152.string().optional(),
|
|
5017
|
+
isPrivate: z152.boolean(),
|
|
5018
|
+
isHidden: z152.boolean(),
|
|
5019
|
+
createdAt: z152.coerce.date(),
|
|
5020
|
+
updatedAt: z152.coerce.date()
|
|
4947
5021
|
});
|
|
4948
5022
|
|
|
4949
5023
|
// src/dsm/published-doc.ts
|
|
4950
|
-
import { z as
|
|
5024
|
+
import { z as z153 } from "zod";
|
|
4951
5025
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
4952
|
-
var PublishedDocEnvironment =
|
|
4953
|
-
var PublishedDocsChecksums =
|
|
4954
|
-
var PublishedDocRoutingVersion =
|
|
4955
|
-
var PublishedDoc =
|
|
4956
|
-
id:
|
|
4957
|
-
designSystemVersionId:
|
|
4958
|
-
createdAt:
|
|
4959
|
-
updatedAt:
|
|
4960
|
-
lastPublishedAt:
|
|
4961
|
-
isDefault:
|
|
4962
|
-
isPublic:
|
|
5026
|
+
var PublishedDocEnvironment = z153.enum(publishedDocEnvironments);
|
|
5027
|
+
var PublishedDocsChecksums = z153.record(z153.string());
|
|
5028
|
+
var PublishedDocRoutingVersion = z153.enum(["1", "2"]);
|
|
5029
|
+
var PublishedDoc = z153.object({
|
|
5030
|
+
id: z153.string(),
|
|
5031
|
+
designSystemVersionId: z153.string(),
|
|
5032
|
+
createdAt: z153.coerce.date(),
|
|
5033
|
+
updatedAt: z153.coerce.date(),
|
|
5034
|
+
lastPublishedAt: z153.coerce.date(),
|
|
5035
|
+
isDefault: z153.boolean(),
|
|
5036
|
+
isPublic: z153.boolean(),
|
|
4963
5037
|
environment: PublishedDocEnvironment,
|
|
4964
5038
|
checksums: PublishedDocsChecksums,
|
|
4965
|
-
storagePath:
|
|
4966
|
-
wasMigrated:
|
|
5039
|
+
storagePath: z153.string(),
|
|
5040
|
+
wasMigrated: z153.boolean(),
|
|
4967
5041
|
routingVersion: PublishedDocRoutingVersion,
|
|
4968
|
-
usesLocalizations:
|
|
4969
|
-
wasPublishedWithLocalizations:
|
|
4970
|
-
tokenCount:
|
|
4971
|
-
assetCount:
|
|
5042
|
+
usesLocalizations: z153.boolean(),
|
|
5043
|
+
wasPublishedWithLocalizations: z153.boolean(),
|
|
5044
|
+
tokenCount: z153.number(),
|
|
5045
|
+
assetCount: z153.number()
|
|
5046
|
+
});
|
|
5047
|
+
|
|
5048
|
+
// src/dsm/storybook-entry.ts
|
|
5049
|
+
import { z as z154 } from "zod";
|
|
5050
|
+
var StorybookEntryOrigin = z154.object({
|
|
5051
|
+
id: z154.string(),
|
|
5052
|
+
type: z154.enum(["story", "docs"]),
|
|
5053
|
+
name: z154.string(),
|
|
5054
|
+
title: z154.string()
|
|
5055
|
+
// Same as 'kind' for v3
|
|
5056
|
+
});
|
|
5057
|
+
var StorybookEntry = z154.object({
|
|
5058
|
+
id: z154.string(),
|
|
5059
|
+
storyId: z154.string(),
|
|
5060
|
+
designSystemId: z154.string(),
|
|
5061
|
+
sourceId: z154.string(),
|
|
5062
|
+
aliases: z154.array(z154.string()).optional(),
|
|
5063
|
+
url: z154.string(),
|
|
5064
|
+
isDeleted: z154.boolean().optional(),
|
|
5065
|
+
origin: StorybookEntryOrigin,
|
|
5066
|
+
createdAt: z154.coerce.date(),
|
|
5067
|
+
updatedAt: z154.coerce.date()
|
|
5068
|
+
});
|
|
5069
|
+
|
|
5070
|
+
// src/dsm/storybook-payload.ts
|
|
5071
|
+
import { z as z155 } from "zod";
|
|
5072
|
+
var StorybookPayload = z155.object({
|
|
5073
|
+
id: z155.string(),
|
|
5074
|
+
designSystemId: z155.string(),
|
|
5075
|
+
sourceId: z155.string(),
|
|
5076
|
+
payload: z155.any(),
|
|
5077
|
+
createdAt: z155.coerce.date(),
|
|
5078
|
+
updatedAt: z155.coerce.date()
|
|
4972
5079
|
});
|
|
4973
5080
|
|
|
4974
5081
|
// src/dsm/version.ts
|
|
4975
|
-
import { z as
|
|
4976
|
-
var DesignSystemVersion =
|
|
4977
|
-
id:
|
|
4978
|
-
version:
|
|
4979
|
-
createdAt:
|
|
4980
|
-
designSystemId:
|
|
4981
|
-
name:
|
|
4982
|
-
comment:
|
|
4983
|
-
isReadonly:
|
|
4984
|
-
changeLog:
|
|
4985
|
-
parentId:
|
|
4986
|
-
isDraftsFeatureAdopted:
|
|
4987
|
-
});
|
|
4988
|
-
var VersionCreationJobStatus =
|
|
4989
|
-
var VersionCreationJob =
|
|
4990
|
-
id:
|
|
4991
|
-
version:
|
|
4992
|
-
designSystemId:
|
|
4993
|
-
designSystemVersionId: nullishToOptional(
|
|
5082
|
+
import { z as z156 } from "zod";
|
|
5083
|
+
var DesignSystemVersion = z156.object({
|
|
5084
|
+
id: z156.string(),
|
|
5085
|
+
version: z156.string(),
|
|
5086
|
+
createdAt: z156.coerce.date(),
|
|
5087
|
+
designSystemId: z156.string(),
|
|
5088
|
+
name: z156.string(),
|
|
5089
|
+
comment: z156.string(),
|
|
5090
|
+
isReadonly: z156.boolean(),
|
|
5091
|
+
changeLog: z156.string(),
|
|
5092
|
+
parentId: z156.string().optional(),
|
|
5093
|
+
isDraftsFeatureAdopted: z156.boolean()
|
|
5094
|
+
});
|
|
5095
|
+
var VersionCreationJobStatus = z156.enum(["Success", "InProgress", "Error"]);
|
|
5096
|
+
var VersionCreationJob = z156.object({
|
|
5097
|
+
id: z156.string(),
|
|
5098
|
+
version: z156.string(),
|
|
5099
|
+
designSystemId: z156.string(),
|
|
5100
|
+
designSystemVersionId: nullishToOptional(z156.string()),
|
|
4994
5101
|
status: VersionCreationJobStatus,
|
|
4995
|
-
errorMessage: nullishToOptional(
|
|
5102
|
+
errorMessage: nullishToOptional(z156.string())
|
|
4996
5103
|
});
|
|
4997
5104
|
|
|
4998
5105
|
// src/export/export-destinations.ts
|
|
4999
5106
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
5000
5107
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
5001
|
-
var ExportJobDocumentationChanges =
|
|
5002
|
-
pagePersistentIds:
|
|
5003
|
-
groupPersistentIds:
|
|
5108
|
+
var ExportJobDocumentationChanges = z157.object({
|
|
5109
|
+
pagePersistentIds: z157.string().array(),
|
|
5110
|
+
groupPersistentIds: z157.string().array()
|
|
5004
5111
|
});
|
|
5005
|
-
var ExporterDestinationDocs =
|
|
5112
|
+
var ExporterDestinationDocs = z157.object({
|
|
5006
5113
|
environment: PublishedDocEnvironment,
|
|
5007
5114
|
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
5008
5115
|
});
|
|
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:
|
|
5116
|
+
var GitCommonDestinationOptions = z157.object({
|
|
5117
|
+
branch: z157.string(),
|
|
5118
|
+
relativePath: nullishToOptional(z157.string()),
|
|
5119
|
+
purgeDirectory: nullishToOptional(z157.boolean()),
|
|
5120
|
+
commitAuthorName: nullishToOptional(z157.string()),
|
|
5121
|
+
commitAuthorEmail: nullishToOptional(z157.string()),
|
|
5122
|
+
commitMessage: nullishToOptional(z157.string()),
|
|
5123
|
+
pullRequestTitle: nullishToOptional(z157.string()),
|
|
5124
|
+
pullRequestDescription: nullishToOptional(z157.string())
|
|
5125
|
+
});
|
|
5126
|
+
var ExporterDestinationS3 = z157.object({});
|
|
5127
|
+
var ExporterDestinationGithub = z157.object({
|
|
5128
|
+
credentialId: z157.string().optional(),
|
|
5022
5129
|
// Repository
|
|
5023
|
-
url:
|
|
5130
|
+
url: z157.string(),
|
|
5024
5131
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
5025
|
-
connectionId: nullishToOptional(
|
|
5026
|
-
userId: nullishToOptional(
|
|
5132
|
+
connectionId: nullishToOptional(z157.string()),
|
|
5133
|
+
userId: nullishToOptional(z157.number())
|
|
5027
5134
|
}).extend(GitCommonDestinationOptions.shape);
|
|
5028
|
-
var ExporterDestinationAzure =
|
|
5029
|
-
credentialId:
|
|
5135
|
+
var ExporterDestinationAzure = z157.object({
|
|
5136
|
+
credentialId: z157.string().optional(),
|
|
5030
5137
|
// Repository
|
|
5031
|
-
organizationId:
|
|
5032
|
-
projectId:
|
|
5033
|
-
repositoryId:
|
|
5138
|
+
organizationId: z157.string(),
|
|
5139
|
+
projectId: z157.string(),
|
|
5140
|
+
repositoryId: z157.string(),
|
|
5034
5141
|
// Maybe not needed
|
|
5035
|
-
url: nullishToOptional(
|
|
5142
|
+
url: nullishToOptional(z157.string()),
|
|
5036
5143
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
5037
|
-
connectionId: nullishToOptional(
|
|
5038
|
-
userId: nullishToOptional(
|
|
5144
|
+
connectionId: nullishToOptional(z157.string()),
|
|
5145
|
+
userId: nullishToOptional(z157.number())
|
|
5039
5146
|
}).extend(GitCommonDestinationOptions.shape);
|
|
5040
|
-
var ExporterDestinationGitlab =
|
|
5041
|
-
credentialId:
|
|
5147
|
+
var ExporterDestinationGitlab = z157.object({
|
|
5148
|
+
credentialId: z157.string().optional(),
|
|
5042
5149
|
// Repository
|
|
5043
|
-
projectId:
|
|
5150
|
+
projectId: z157.string(),
|
|
5044
5151
|
// Maybe not needed
|
|
5045
|
-
url: nullishToOptional(
|
|
5152
|
+
url: nullishToOptional(z157.string()),
|
|
5046
5153
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
5047
|
-
connectionId: nullishToOptional(
|
|
5048
|
-
userId: nullishToOptional(
|
|
5154
|
+
connectionId: nullishToOptional(z157.string()),
|
|
5155
|
+
userId: nullishToOptional(z157.number())
|
|
5049
5156
|
}).extend(GitCommonDestinationOptions.shape);
|
|
5050
|
-
var ExporterDestinationBitbucket =
|
|
5051
|
-
credentialId:
|
|
5157
|
+
var ExporterDestinationBitbucket = z157.object({
|
|
5158
|
+
credentialId: z157.string().optional(),
|
|
5052
5159
|
// Repository
|
|
5053
|
-
workspaceSlug:
|
|
5054
|
-
projectKey:
|
|
5055
|
-
repoSlug:
|
|
5056
|
-
url: nullishToOptional(
|
|
5160
|
+
workspaceSlug: z157.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
5161
|
+
projectKey: z157.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
5162
|
+
repoSlug: z157.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
5163
|
+
url: nullishToOptional(z157.string()),
|
|
5057
5164
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
5058
|
-
connectionId: nullishToOptional(
|
|
5059
|
-
userId: nullishToOptional(
|
|
5165
|
+
connectionId: nullishToOptional(z157.string()),
|
|
5166
|
+
userId: nullishToOptional(z157.number())
|
|
5060
5167
|
}).extend(GitCommonDestinationOptions.shape);
|
|
5061
|
-
var ExportDestinationsMap =
|
|
5062
|
-
webhookUrl:
|
|
5168
|
+
var ExportDestinationsMap = z157.object({
|
|
5169
|
+
webhookUrl: z157.string().optional(),
|
|
5063
5170
|
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
5064
5171
|
destinationS3: ExporterDestinationS3.optional(),
|
|
5065
5172
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -5067,8 +5174,8 @@ var ExportDestinationsMap = z153.object({
|
|
|
5067
5174
|
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
5068
5175
|
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
5069
5176
|
});
|
|
5070
|
-
var ExportDestinationsMapUpdate =
|
|
5071
|
-
webhookUrl:
|
|
5177
|
+
var ExportDestinationsMapUpdate = z157.object({
|
|
5178
|
+
webhookUrl: z157.string().nullish(),
|
|
5072
5179
|
destinationSnDocs: ExporterDestinationDocs.nullish(),
|
|
5073
5180
|
destinationS3: ExporterDestinationS3.nullish(),
|
|
5074
5181
|
destinationGithub: ExporterDestinationGithub.nullish(),
|
|
@@ -5078,115 +5185,115 @@ var ExportDestinationsMapUpdate = z153.object({
|
|
|
5078
5185
|
});
|
|
5079
5186
|
|
|
5080
5187
|
// src/export/pipeline.ts
|
|
5081
|
-
var PipelineEventType =
|
|
5082
|
-
var PipelineDestinationGitType =
|
|
5083
|
-
var PipelineDestinationExtraType =
|
|
5084
|
-
var PipelineDestinationType =
|
|
5085
|
-
var Pipeline =
|
|
5086
|
-
id:
|
|
5087
|
-
name:
|
|
5188
|
+
var PipelineEventType = z158.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
5189
|
+
var PipelineDestinationGitType = z158.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
5190
|
+
var PipelineDestinationExtraType = z158.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
5191
|
+
var PipelineDestinationType = z158.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
5192
|
+
var Pipeline = z158.object({
|
|
5193
|
+
id: z158.string(),
|
|
5194
|
+
name: z158.string(),
|
|
5088
5195
|
eventType: PipelineEventType,
|
|
5089
|
-
isEnabled:
|
|
5090
|
-
workspaceId:
|
|
5091
|
-
designSystemId:
|
|
5092
|
-
exporterId:
|
|
5093
|
-
brandPersistentId:
|
|
5094
|
-
themePersistentId:
|
|
5095
|
-
themePersistentIds:
|
|
5196
|
+
isEnabled: z158.boolean(),
|
|
5197
|
+
workspaceId: z158.string(),
|
|
5198
|
+
designSystemId: z158.string(),
|
|
5199
|
+
exporterId: z158.string(),
|
|
5200
|
+
brandPersistentId: z158.string().optional(),
|
|
5201
|
+
themePersistentId: z158.string().optional(),
|
|
5202
|
+
themePersistentIds: z158.string().array().optional(),
|
|
5096
5203
|
exporterPropertyValues: ExporterPropertyValueMap.optional(),
|
|
5097
|
-
isExporterDeprecated:
|
|
5204
|
+
isExporterDeprecated: z158.boolean(),
|
|
5098
5205
|
// Destinations
|
|
5099
5206
|
...ExportDestinationsMap.shape
|
|
5100
5207
|
});
|
|
5101
5208
|
|
|
5102
5209
|
// src/data-dumps/code-integration-dump.ts
|
|
5103
|
-
var ExportJobDump =
|
|
5104
|
-
id:
|
|
5105
|
-
createdAt:
|
|
5106
|
-
finishedAt:
|
|
5107
|
-
exportArtefacts:
|
|
5210
|
+
var ExportJobDump = z159.object({
|
|
5211
|
+
id: z159.string(),
|
|
5212
|
+
createdAt: z159.coerce.date(),
|
|
5213
|
+
finishedAt: z159.coerce.date(),
|
|
5214
|
+
exportArtefacts: z159.string()
|
|
5108
5215
|
});
|
|
5109
|
-
var CodeIntegrationDump =
|
|
5216
|
+
var CodeIntegrationDump = z159.object({
|
|
5110
5217
|
exporters: Exporter.array(),
|
|
5111
5218
|
pipelines: Pipeline.array(),
|
|
5112
5219
|
exportJobs: ExportJobDump.array()
|
|
5113
5220
|
});
|
|
5114
5221
|
|
|
5115
5222
|
// src/data-dumps/design-system-dump.ts
|
|
5116
|
-
import { z as
|
|
5223
|
+
import { z as z166 } from "zod";
|
|
5117
5224
|
|
|
5118
5225
|
// src/data-dumps/design-system-version-dump.ts
|
|
5119
|
-
import { z as
|
|
5226
|
+
import { z as z165 } from "zod";
|
|
5120
5227
|
|
|
5121
5228
|
// src/liveblocks/rooms/design-system-version-room.ts
|
|
5122
|
-
import { z as
|
|
5229
|
+
import { z as z160 } from "zod";
|
|
5123
5230
|
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:
|
|
5231
|
+
designSystemVersionId: z160.string(),
|
|
5232
|
+
liveblocksId: z160.string()
|
|
5233
|
+
});
|
|
5234
|
+
var DesignSystemVersionRoomInternalSettings = z160.object({
|
|
5235
|
+
routingVersion: z160.string(),
|
|
5236
|
+
isDraftFeatureAdopted: z160.boolean(),
|
|
5237
|
+
isApprovalFeatureEnabled: z160.boolean(),
|
|
5238
|
+
approvalRequiredForPublishing: z160.boolean()
|
|
5239
|
+
});
|
|
5240
|
+
var DesignSystemVersionRoomInitialState = z160.object({
|
|
5241
|
+
pages: z160.array(DocumentationPageV2),
|
|
5242
|
+
groups: z160.array(ElementGroup),
|
|
5243
|
+
pageSnapshots: z160.array(DocumentationPageSnapshot),
|
|
5244
|
+
groupSnapshots: z160.array(ElementGroupSnapshot),
|
|
5245
|
+
pageApprovals: z160.array(DocumentationPageApproval),
|
|
5139
5246
|
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:
|
|
5247
|
+
pageHashes: z160.record(z160.string()).optional()
|
|
5248
|
+
});
|
|
5249
|
+
var DesignSystemVersionRoomUpdate = z160.object({
|
|
5250
|
+
pages: z160.array(DocumentationPageV2),
|
|
5251
|
+
groups: z160.array(ElementGroup),
|
|
5252
|
+
pageIdsToDelete: z160.array(z160.string()),
|
|
5253
|
+
groupIdsToDelete: z160.array(z160.string()),
|
|
5254
|
+
pageSnapshots: z160.array(DocumentationPageSnapshot),
|
|
5255
|
+
groupSnapshots: z160.array(ElementGroupSnapshot),
|
|
5256
|
+
pageSnapshotIdsToDelete: z160.array(z160.string()),
|
|
5257
|
+
groupSnapshotIdsToDelete: z160.array(z160.string()),
|
|
5258
|
+
pageHashesToUpdate: z160.record(z160.string(), z160.string()),
|
|
5259
|
+
pageApprovals: z160.array(DocumentationPageApproval),
|
|
5260
|
+
pageApprovalIdsToDelete: z160.array(z160.string()),
|
|
5261
|
+
executedTransactionIds: z160.array(z160.string())
|
|
5155
5262
|
});
|
|
5156
5263
|
|
|
5157
5264
|
// src/liveblocks/rooms/documentation-page-room.ts
|
|
5158
|
-
import { z as
|
|
5265
|
+
import { z as z161 } from "zod";
|
|
5159
5266
|
var DocumentationPageRoom = Entity.extend({
|
|
5160
|
-
designSystemVersionId:
|
|
5161
|
-
documentationPageId:
|
|
5162
|
-
liveblocksId:
|
|
5163
|
-
isDirty:
|
|
5267
|
+
designSystemVersionId: z161.string(),
|
|
5268
|
+
documentationPageId: z161.string(),
|
|
5269
|
+
liveblocksId: z161.string(),
|
|
5270
|
+
isDirty: z161.boolean()
|
|
5164
5271
|
});
|
|
5165
|
-
var DocumentationPageRoomState =
|
|
5166
|
-
pageItems:
|
|
5272
|
+
var DocumentationPageRoomState = z161.object({
|
|
5273
|
+
pageItems: z161.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
5167
5274
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
5168
5275
|
});
|
|
5169
|
-
var DocumentationPageRoomRoomUpdate =
|
|
5276
|
+
var DocumentationPageRoomRoomUpdate = z161.object({
|
|
5170
5277
|
page: DocumentationPageV2,
|
|
5171
5278
|
pageParent: ElementGroup
|
|
5172
5279
|
});
|
|
5173
5280
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
5174
|
-
pageItems:
|
|
5175
|
-
blockDefinitions:
|
|
5281
|
+
pageItems: z161.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
5282
|
+
blockDefinitions: z161.array(PageBlockDefinition)
|
|
5176
5283
|
});
|
|
5177
|
-
var RestoredDocumentationPage =
|
|
5284
|
+
var RestoredDocumentationPage = z161.object({
|
|
5178
5285
|
page: DocumentationPageV2,
|
|
5179
5286
|
pageParent: ElementGroup,
|
|
5180
5287
|
pageContent: DocumentationPageContentData,
|
|
5181
|
-
contentHash:
|
|
5288
|
+
contentHash: z161.string()
|
|
5182
5289
|
});
|
|
5183
|
-
var RestoredDocumentationGroup =
|
|
5290
|
+
var RestoredDocumentationGroup = z161.object({
|
|
5184
5291
|
group: ElementGroup,
|
|
5185
5292
|
parent: ElementGroup
|
|
5186
5293
|
});
|
|
5187
5294
|
|
|
5188
5295
|
// src/liveblocks/rooms/room-type.ts
|
|
5189
|
-
import { z as
|
|
5296
|
+
import { z as z162 } from "zod";
|
|
5190
5297
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
5191
5298
|
RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
|
|
5192
5299
|
RoomTypeEnum2["DocumentationPage"] = "doc-page";
|
|
@@ -5194,36 +5301,36 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
|
5194
5301
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
5195
5302
|
return RoomTypeEnum2;
|
|
5196
5303
|
})(RoomTypeEnum || {});
|
|
5197
|
-
var RoomTypeSchema =
|
|
5304
|
+
var RoomTypeSchema = z162.nativeEnum(RoomTypeEnum);
|
|
5198
5305
|
var RoomType = RoomTypeSchema.enum;
|
|
5199
5306
|
|
|
5200
5307
|
// src/liveblocks/rooms/workspace-room.ts
|
|
5201
|
-
import { z as
|
|
5308
|
+
import { z as z163 } from "zod";
|
|
5202
5309
|
var WorkspaceRoom = Entity.extend({
|
|
5203
|
-
workspaceId:
|
|
5204
|
-
liveblocksId:
|
|
5310
|
+
workspaceId: z163.string(),
|
|
5311
|
+
liveblocksId: z163.string()
|
|
5205
5312
|
});
|
|
5206
5313
|
|
|
5207
5314
|
// src/data-dumps/published-docs-dump.ts
|
|
5208
|
-
import { z as
|
|
5209
|
-
var PublishedDocsDump =
|
|
5315
|
+
import { z as z164 } from "zod";
|
|
5316
|
+
var PublishedDocsDump = z164.object({
|
|
5210
5317
|
documentation: PublishedDoc,
|
|
5211
5318
|
pages: PublishedDocPage.array()
|
|
5212
5319
|
});
|
|
5213
5320
|
|
|
5214
5321
|
// src/data-dumps/design-system-version-dump.ts
|
|
5215
|
-
var DocumentationThreadDump =
|
|
5322
|
+
var DocumentationThreadDump = z165.object({
|
|
5216
5323
|
thread: DocumentationCommentThread,
|
|
5217
5324
|
comments: DocumentationComment.array()
|
|
5218
5325
|
});
|
|
5219
|
-
var DocumentationPageRoomDump =
|
|
5326
|
+
var DocumentationPageRoomDump = z165.object({
|
|
5220
5327
|
room: DocumentationPageRoom,
|
|
5221
5328
|
threads: DocumentationThreadDump.array()
|
|
5222
5329
|
});
|
|
5223
|
-
var DesignSystemVersionMultiplayerDump =
|
|
5330
|
+
var DesignSystemVersionMultiplayerDump = z165.object({
|
|
5224
5331
|
documentationPages: DocumentationPageRoomDump.array()
|
|
5225
5332
|
});
|
|
5226
|
-
var DesignSystemVersionDump =
|
|
5333
|
+
var DesignSystemVersionDump = z165.object({
|
|
5227
5334
|
version: DesignSystemVersion,
|
|
5228
5335
|
brands: Brand.array(),
|
|
5229
5336
|
elements: DesignElement.array(),
|
|
@@ -5238,7 +5345,7 @@ var DesignSystemVersionDump = z161.object({
|
|
|
5238
5345
|
});
|
|
5239
5346
|
|
|
5240
5347
|
// src/data-dumps/design-system-dump.ts
|
|
5241
|
-
var DesignSystemDump =
|
|
5348
|
+
var DesignSystemDump = z166.object({
|
|
5242
5349
|
designSystem: DesignSystem,
|
|
5243
5350
|
dataSources: DataSource.array(),
|
|
5244
5351
|
versions: DesignSystemVersionDump.array(),
|
|
@@ -5247,50 +5354,50 @@ var DesignSystemDump = z162.object({
|
|
|
5247
5354
|
});
|
|
5248
5355
|
|
|
5249
5356
|
// src/data-dumps/user-data-dump.ts
|
|
5250
|
-
import { z as
|
|
5357
|
+
import { z as z169 } from "zod";
|
|
5251
5358
|
|
|
5252
5359
|
// src/data-dumps/workspace-dump.ts
|
|
5253
|
-
import { z as
|
|
5360
|
+
import { z as z168 } from "zod";
|
|
5254
5361
|
|
|
5255
5362
|
// 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:
|
|
5363
|
+
import { z as z167 } from "zod";
|
|
5364
|
+
var IntegrationDesignSystem = z167.object({
|
|
5365
|
+
designSystemId: z167.string(),
|
|
5366
|
+
brandId: z167.string(),
|
|
5367
|
+
title: z167.string().optional(),
|
|
5368
|
+
userId: z167.string().optional(),
|
|
5369
|
+
date: z167.coerce.date().optional()
|
|
5370
|
+
});
|
|
5371
|
+
var IntegrationCredentialsType = z167.enum(["OAuth2", "PAT"]);
|
|
5372
|
+
var IntegrationCredentialsState = z167.enum(["Active", "Inactive"]);
|
|
5373
|
+
var IntegrationCredentialsProfile = z167.object({
|
|
5374
|
+
id: nullishToOptional(z167.string()),
|
|
5375
|
+
email: nullishToOptional(z167.string()),
|
|
5376
|
+
handle: nullishToOptional(z167.string()),
|
|
5377
|
+
type: nullishToOptional(z167.string()),
|
|
5378
|
+
avatarUrl: nullishToOptional(z167.string()),
|
|
5379
|
+
organization: nullishToOptional(z167.string()),
|
|
5380
|
+
collection: nullishToOptional(z167.string())
|
|
5381
|
+
});
|
|
5382
|
+
var IntegrationCredentials = z167.object({
|
|
5383
|
+
id: z167.string(),
|
|
5277
5384
|
type: IntegrationCredentialsType,
|
|
5278
|
-
integrationId:
|
|
5279
|
-
accessToken:
|
|
5280
|
-
userId:
|
|
5281
|
-
createdAt:
|
|
5282
|
-
refreshToken:
|
|
5283
|
-
tokenName:
|
|
5284
|
-
expiresAt:
|
|
5285
|
-
refreshedAt:
|
|
5286
|
-
username:
|
|
5287
|
-
appInstallationId:
|
|
5385
|
+
integrationId: z167.string(),
|
|
5386
|
+
accessToken: z167.string(),
|
|
5387
|
+
userId: z167.string(),
|
|
5388
|
+
createdAt: z167.coerce.date(),
|
|
5389
|
+
refreshToken: z167.string().optional(),
|
|
5390
|
+
tokenName: z167.string().optional(),
|
|
5391
|
+
expiresAt: z167.coerce.date().optional(),
|
|
5392
|
+
refreshedAt: z167.coerce.date().optional(),
|
|
5393
|
+
username: z167.string().optional(),
|
|
5394
|
+
appInstallationId: z167.string().optional(),
|
|
5288
5395
|
profile: IntegrationCredentialsProfile.optional(),
|
|
5289
|
-
customUrl:
|
|
5396
|
+
customUrl: z167.string().optional(),
|
|
5290
5397
|
state: IntegrationCredentialsState,
|
|
5291
5398
|
user: UserMinified.optional()
|
|
5292
5399
|
});
|
|
5293
|
-
var ExtendedIntegrationType =
|
|
5400
|
+
var ExtendedIntegrationType = z167.enum([
|
|
5294
5401
|
"Figma",
|
|
5295
5402
|
"Github",
|
|
5296
5403
|
"Gitlab",
|
|
@@ -5301,28 +5408,27 @@ var ExtendedIntegrationType = z163.enum([
|
|
|
5301
5408
|
]);
|
|
5302
5409
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
5303
5410
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
5304
|
-
var Integration =
|
|
5305
|
-
id:
|
|
5306
|
-
workspaceId:
|
|
5411
|
+
var Integration = z167.object({
|
|
5412
|
+
id: z167.string(),
|
|
5413
|
+
workspaceId: z167.string(),
|
|
5307
5414
|
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:
|
|
5415
|
+
createdAt: z167.coerce.date(),
|
|
5416
|
+
integrationCredentials: z167.array(IntegrationCredentials).optional()
|
|
5417
|
+
});
|
|
5418
|
+
var IntegrationToken = z167.object({
|
|
5419
|
+
access_token: z167.string(),
|
|
5420
|
+
refresh_token: z167.string().optional(),
|
|
5421
|
+
expires_in: z167.union([z167.number().optional(), z167.string().optional()]),
|
|
5422
|
+
token_type: z167.string().optional(),
|
|
5423
|
+
token_name: z167.string().optional(),
|
|
5424
|
+
token_azure_organization_name: z167.string().optional(),
|
|
5318
5425
|
// Azure Cloud PAT only
|
|
5319
|
-
token_azure_collection_name:
|
|
5426
|
+
token_azure_collection_name: z167.string().optional(),
|
|
5320
5427
|
// Azure Server PAT only
|
|
5321
|
-
token_bitbucket_username:
|
|
5428
|
+
token_bitbucket_username: z167.string().optional(),
|
|
5322
5429
|
// Bitbucket only
|
|
5323
|
-
custom_url:
|
|
5324
|
-
if (!value?.trim())
|
|
5325
|
-
return void 0;
|
|
5430
|
+
custom_url: z167.string().optional().transform((value) => {
|
|
5431
|
+
if (!value?.trim()) return void 0;
|
|
5326
5432
|
return formatCustomUrl(value);
|
|
5327
5433
|
})
|
|
5328
5434
|
}).refine((data) => {
|
|
@@ -5358,7 +5464,7 @@ function formatCustomUrl(url) {
|
|
|
5358
5464
|
}
|
|
5359
5465
|
|
|
5360
5466
|
// src/data-dumps/workspace-dump.ts
|
|
5361
|
-
var WorkspaceDump =
|
|
5467
|
+
var WorkspaceDump = z168.object({
|
|
5362
5468
|
workspace: Workspace,
|
|
5363
5469
|
designSystems: DesignSystemDump.array(),
|
|
5364
5470
|
codeIntegration: CodeIntegrationDump,
|
|
@@ -5366,124 +5472,124 @@ var WorkspaceDump = z164.object({
|
|
|
5366
5472
|
});
|
|
5367
5473
|
|
|
5368
5474
|
// src/data-dumps/user-data-dump.ts
|
|
5369
|
-
var UserDump =
|
|
5475
|
+
var UserDump = z169.object({
|
|
5370
5476
|
user: User,
|
|
5371
5477
|
workspaces: WorkspaceDump.array()
|
|
5372
5478
|
});
|
|
5373
5479
|
|
|
5374
5480
|
// src/docs-server/session.ts
|
|
5375
|
-
import { z as
|
|
5376
|
-
var NpmProxyToken =
|
|
5377
|
-
access:
|
|
5378
|
-
expiresAt:
|
|
5481
|
+
import { z as z170 } from "zod";
|
|
5482
|
+
var NpmProxyToken = z170.object({
|
|
5483
|
+
access: z170.string(),
|
|
5484
|
+
expiresAt: z170.number()
|
|
5379
5485
|
});
|
|
5380
|
-
var SessionData =
|
|
5381
|
-
returnToUrl:
|
|
5486
|
+
var SessionData = z170.object({
|
|
5487
|
+
returnToUrl: z170.string().optional(),
|
|
5382
5488
|
npmProxyToken: NpmProxyToken.optional()
|
|
5383
5489
|
});
|
|
5384
|
-
var Session =
|
|
5385
|
-
id:
|
|
5386
|
-
expiresAt:
|
|
5387
|
-
userId:
|
|
5388
|
-
anonymousId:
|
|
5490
|
+
var Session = z170.object({
|
|
5491
|
+
id: z170.string(),
|
|
5492
|
+
expiresAt: z170.coerce.date(),
|
|
5493
|
+
userId: z170.string().nullable(),
|
|
5494
|
+
anonymousId: z170.string().nullable(),
|
|
5389
5495
|
data: SessionData
|
|
5390
5496
|
});
|
|
5391
|
-
var AuthTokens =
|
|
5392
|
-
access:
|
|
5393
|
-
refresh:
|
|
5497
|
+
var AuthTokens = z170.object({
|
|
5498
|
+
access: z170.string(),
|
|
5499
|
+
refresh: z170.string()
|
|
5394
5500
|
});
|
|
5395
|
-
var UserSession =
|
|
5501
|
+
var UserSession = z170.object({
|
|
5396
5502
|
session: Session,
|
|
5397
5503
|
user: User.nullable()
|
|
5398
5504
|
});
|
|
5399
5505
|
|
|
5400
5506
|
// src/emails/design-system-invite.ts
|
|
5401
|
-
import { z as
|
|
5402
|
-
var DesignSystemInviteEmailRecipient =
|
|
5403
|
-
email:
|
|
5507
|
+
import { z as z171 } from "zod";
|
|
5508
|
+
var DesignSystemInviteEmailRecipient = z171.object({
|
|
5509
|
+
email: z171.string(),
|
|
5404
5510
|
role: WorkspaceRoleSchema
|
|
5405
5511
|
});
|
|
5406
|
-
var DesignSystemInviteEmailData =
|
|
5512
|
+
var DesignSystemInviteEmailData = z171.object({
|
|
5407
5513
|
workspace: Workspace,
|
|
5408
5514
|
designSystem: DesignSystem,
|
|
5409
5515
|
invitedBy: User,
|
|
5410
|
-
documentationDomain:
|
|
5516
|
+
documentationDomain: z171.string().optional()
|
|
5411
5517
|
});
|
|
5412
5518
|
|
|
5413
5519
|
// src/emails/workspace-invite.ts
|
|
5414
|
-
import { z as
|
|
5415
|
-
var WorkspaceInviteEmailRecipient =
|
|
5416
|
-
email:
|
|
5520
|
+
import { z as z172 } from "zod";
|
|
5521
|
+
var WorkspaceInviteEmailRecipient = z172.object({
|
|
5522
|
+
email: z172.string(),
|
|
5417
5523
|
role: WorkspaceRoleSchema
|
|
5418
5524
|
});
|
|
5419
|
-
var WorkspaceInviteEmailData =
|
|
5525
|
+
var WorkspaceInviteEmailData = z172.object({
|
|
5420
5526
|
workspace: Workspace,
|
|
5421
5527
|
invitedBy: User,
|
|
5422
|
-
documentationDomain:
|
|
5528
|
+
documentationDomain: z172.string().optional()
|
|
5423
5529
|
});
|
|
5424
5530
|
|
|
5425
5531
|
// src/events/base.ts
|
|
5426
|
-
import { z as
|
|
5532
|
+
import { z as z175 } from "zod";
|
|
5427
5533
|
|
|
5428
5534
|
// src/events/data-source-imported.ts
|
|
5429
|
-
import { z as
|
|
5430
|
-
var EventDataSourceImported =
|
|
5431
|
-
type:
|
|
5432
|
-
workspaceId:
|
|
5433
|
-
designSystemId:
|
|
5535
|
+
import { z as z173 } from "zod";
|
|
5536
|
+
var EventDataSourceImported = z173.object({
|
|
5537
|
+
type: z173.literal("DataSourceImported"),
|
|
5538
|
+
workspaceId: z173.string(),
|
|
5539
|
+
designSystemId: z173.string()
|
|
5434
5540
|
});
|
|
5435
5541
|
|
|
5436
5542
|
// src/events/version-released.ts
|
|
5437
|
-
import { z as
|
|
5438
|
-
var EventVersionReleased =
|
|
5439
|
-
type:
|
|
5440
|
-
workspaceId:
|
|
5441
|
-
designSystemId:
|
|
5442
|
-
versionId:
|
|
5543
|
+
import { z as z174 } from "zod";
|
|
5544
|
+
var EventVersionReleased = z174.object({
|
|
5545
|
+
type: z174.literal("DesignSystemVersionReleased"),
|
|
5546
|
+
workspaceId: z174.string(),
|
|
5547
|
+
designSystemId: z174.string(),
|
|
5548
|
+
versionId: z174.string()
|
|
5443
5549
|
});
|
|
5444
5550
|
|
|
5445
5551
|
// src/events/base.ts
|
|
5446
|
-
var Event =
|
|
5552
|
+
var Event = z175.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
|
|
5447
5553
|
|
|
5448
5554
|
// src/export/export-runner/export-context.ts
|
|
5449
|
-
import { z as
|
|
5450
|
-
var ExportJobDocumentationContext =
|
|
5451
|
-
isSingleVersionDocs:
|
|
5452
|
-
versionSlug:
|
|
5555
|
+
import { z as z176 } from "zod";
|
|
5556
|
+
var ExportJobDocumentationContext = z176.object({
|
|
5557
|
+
isSingleVersionDocs: z176.boolean(),
|
|
5558
|
+
versionSlug: z176.string(),
|
|
5453
5559
|
environment: PublishedDocEnvironment
|
|
5454
5560
|
});
|
|
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:
|
|
5561
|
+
var ExportJobContext = z176.object({
|
|
5562
|
+
apiUrl: z176.string(),
|
|
5563
|
+
accessToken: z176.string(),
|
|
5564
|
+
designSystemId: z176.string(),
|
|
5565
|
+
designSystemName: z176.string(),
|
|
5566
|
+
exporterId: z176.string(),
|
|
5567
|
+
versionId: z176.string(),
|
|
5568
|
+
brandId: z176.string().optional(),
|
|
5569
|
+
themeId: z176.string().optional(),
|
|
5570
|
+
themePersistentIds: z176.string().array().optional(),
|
|
5571
|
+
previewMode: z176.boolean().optional(),
|
|
5572
|
+
exporterName: z176.string(),
|
|
5467
5573
|
documentation: ExportJobDocumentationContext.optional()
|
|
5468
5574
|
});
|
|
5469
|
-
var ExportJobExporterConfiguration =
|
|
5470
|
-
exporterPackageUrl:
|
|
5575
|
+
var ExportJobExporterConfiguration = z176.object({
|
|
5576
|
+
exporterPackageUrl: z176.string(),
|
|
5471
5577
|
exporterPropertyValues: ExporterConfigurationPropertyValue.array(),
|
|
5472
5578
|
exporterPropertyValuesV2: ExporterPropertyValueMap.optional()
|
|
5473
5579
|
});
|
|
5474
5580
|
|
|
5475
5581
|
// src/export/export-runner/exporter-payload.ts
|
|
5476
|
-
import { z as
|
|
5477
|
-
var ExporterFunctionPayload =
|
|
5478
|
-
exportJobId:
|
|
5479
|
-
exportContextId:
|
|
5480
|
-
designSystemId:
|
|
5481
|
-
workspaceId:
|
|
5582
|
+
import { z as z177 } from "zod";
|
|
5583
|
+
var ExporterFunctionPayload = z177.object({
|
|
5584
|
+
exportJobId: z177.string(),
|
|
5585
|
+
exportContextId: z177.string(),
|
|
5586
|
+
designSystemId: z177.string(),
|
|
5587
|
+
workspaceId: z177.string()
|
|
5482
5588
|
});
|
|
5483
5589
|
|
|
5484
5590
|
// src/export/export-jobs.ts
|
|
5485
|
-
import { z as
|
|
5486
|
-
var ExportJobDestinationType =
|
|
5591
|
+
import { z as z178 } from "zod";
|
|
5592
|
+
var ExportJobDestinationType = z178.enum([
|
|
5487
5593
|
"s3",
|
|
5488
5594
|
"webhookUrl",
|
|
5489
5595
|
"github",
|
|
@@ -5492,30 +5598,30 @@ var ExportJobDestinationType = z174.enum([
|
|
|
5492
5598
|
"gitlab",
|
|
5493
5599
|
"bitbucket"
|
|
5494
5600
|
]);
|
|
5495
|
-
var ExportJobStatus =
|
|
5496
|
-
var ExportJobLogEntryType =
|
|
5497
|
-
var ExportJobLogEntry =
|
|
5498
|
-
id:
|
|
5499
|
-
time:
|
|
5601
|
+
var ExportJobStatus = z178.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
5602
|
+
var ExportJobLogEntryType = z178.enum(["success", "info", "warning", "error", "user"]);
|
|
5603
|
+
var ExportJobLogEntry = z178.object({
|
|
5604
|
+
id: z178.string().optional(),
|
|
5605
|
+
time: z178.coerce.date(),
|
|
5500
5606
|
type: ExportJobLogEntryType,
|
|
5501
|
-
message:
|
|
5607
|
+
message: z178.string()
|
|
5502
5608
|
});
|
|
5503
|
-
var ExportJobPullRequestDestinationResult =
|
|
5504
|
-
pullRequestUrl:
|
|
5609
|
+
var ExportJobPullRequestDestinationResult = z178.object({
|
|
5610
|
+
pullRequestUrl: z178.string()
|
|
5505
5611
|
});
|
|
5506
|
-
var ExportJobS3DestinationResult =
|
|
5507
|
-
bucket:
|
|
5508
|
-
urlPrefix:
|
|
5509
|
-
path:
|
|
5510
|
-
files:
|
|
5511
|
-
url: nullishToOptional(
|
|
5512
|
-
urls: nullishToOptional(
|
|
5612
|
+
var ExportJobS3DestinationResult = z178.object({
|
|
5613
|
+
bucket: z178.string(),
|
|
5614
|
+
urlPrefix: z178.string().optional(),
|
|
5615
|
+
path: z178.string(),
|
|
5616
|
+
files: z178.array(z178.string()),
|
|
5617
|
+
url: nullishToOptional(z178.string()),
|
|
5618
|
+
urls: nullishToOptional(z178.string().array())
|
|
5513
5619
|
});
|
|
5514
|
-
var ExportJobDocsDestinationResult =
|
|
5515
|
-
url:
|
|
5620
|
+
var ExportJobDocsDestinationResult = z178.object({
|
|
5621
|
+
url: z178.string()
|
|
5516
5622
|
});
|
|
5517
|
-
var ExportJobResult =
|
|
5518
|
-
error:
|
|
5623
|
+
var ExportJobResult = z178.object({
|
|
5624
|
+
error: z178.string().optional(),
|
|
5519
5625
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
5520
5626
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
5521
5627
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -5524,24 +5630,24 @@ var ExportJobResult = z174.object({
|
|
|
5524
5630
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
5525
5631
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
5526
5632
|
});
|
|
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:
|
|
5633
|
+
var ExportJob = z178.object({
|
|
5634
|
+
id: z178.string(),
|
|
5635
|
+
createdAt: z178.coerce.date(),
|
|
5636
|
+
finishedAt: z178.coerce.date().optional(),
|
|
5637
|
+
designSystemId: z178.string(),
|
|
5638
|
+
designSystemVersionId: z178.string(),
|
|
5639
|
+
workspaceId: z178.string(),
|
|
5640
|
+
scheduleId: z178.string().nullish(),
|
|
5641
|
+
exporterId: z178.string(),
|
|
5642
|
+
brandId: z178.string().optional(),
|
|
5643
|
+
themeId: z178.string().optional(),
|
|
5644
|
+
themePersistentIds: z178.string().array().optional(),
|
|
5645
|
+
estimatedExecutionTime: z178.number().optional(),
|
|
5540
5646
|
status: ExportJobStatus,
|
|
5541
5647
|
result: ExportJobResult.optional(),
|
|
5542
|
-
createdByUserId:
|
|
5648
|
+
createdByUserId: z178.string().optional(),
|
|
5543
5649
|
exporterPropertyValues: ExporterPropertyValueMap.optional(),
|
|
5544
|
-
previewMode:
|
|
5650
|
+
previewMode: z178.boolean().optional(),
|
|
5545
5651
|
// Destinations
|
|
5546
5652
|
...ExportDestinationsMap.shape
|
|
5547
5653
|
});
|
|
@@ -5555,60 +5661,60 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
5555
5661
|
themeId: true,
|
|
5556
5662
|
brandId: true
|
|
5557
5663
|
}).extend({
|
|
5558
|
-
destinations:
|
|
5664
|
+
destinations: z178.array(ExportJobDestinationType),
|
|
5559
5665
|
docsEnvironment: PublishedDocEnvironment
|
|
5560
5666
|
}).partial();
|
|
5561
5667
|
|
|
5562
5668
|
// src/export/exporter-list-query.ts
|
|
5563
|
-
import { z as
|
|
5564
|
-
var ExporterType2 =
|
|
5565
|
-
var ListExporterQuery =
|
|
5566
|
-
limit:
|
|
5567
|
-
offset:
|
|
5669
|
+
import { z as z179 } from "zod";
|
|
5670
|
+
var ExporterType2 = z179.enum(["documentation", "code"]);
|
|
5671
|
+
var ListExporterQuery = z179.object({
|
|
5672
|
+
limit: z179.number().optional(),
|
|
5673
|
+
offset: z179.number().optional(),
|
|
5568
5674
|
type: ExporterType2.optional(),
|
|
5569
|
-
search:
|
|
5675
|
+
search: z179.string().optional()
|
|
5570
5676
|
});
|
|
5571
5677
|
|
|
5572
5678
|
// src/export/exporter-workspace-membership-role.ts
|
|
5573
|
-
import { z as
|
|
5574
|
-
var ExporterWorkspaceMembershipRole =
|
|
5679
|
+
import { z as z180 } from "zod";
|
|
5680
|
+
var ExporterWorkspaceMembershipRole = z180.enum(["Owner", "OwnerArchived", "User"]);
|
|
5575
5681
|
|
|
5576
5682
|
// src/export/exporter-workspace-membership.ts
|
|
5577
|
-
import { z as
|
|
5578
|
-
var ExporterWorkspaceMembership =
|
|
5579
|
-
id:
|
|
5580
|
-
workspaceId:
|
|
5581
|
-
exporterId:
|
|
5683
|
+
import { z as z181 } from "zod";
|
|
5684
|
+
var ExporterWorkspaceMembership = z181.object({
|
|
5685
|
+
id: z181.string(),
|
|
5686
|
+
workspaceId: z181.string(),
|
|
5687
|
+
exporterId: z181.string(),
|
|
5582
5688
|
role: ExporterWorkspaceMembershipRole
|
|
5583
5689
|
});
|
|
5584
5690
|
|
|
5585
5691
|
// src/feature-flags/feature-flags.ts
|
|
5586
|
-
import { z as
|
|
5587
|
-
var FlaggedFeature =
|
|
5692
|
+
import { z as z182 } from "zod";
|
|
5693
|
+
var FlaggedFeature = z182.enum([
|
|
5588
5694
|
"FigmaImporterV2",
|
|
5589
|
-
"ShadowOpacityOptional",
|
|
5590
5695
|
"DisableImporter",
|
|
5591
5696
|
"VariablesOrder",
|
|
5592
5697
|
"TypographyPropsKeepAliases",
|
|
5593
5698
|
"GradientPropsKeepAliases",
|
|
5594
5699
|
"ShadowPropsKeepAliases",
|
|
5595
5700
|
"NonCompatibleTypeChanges",
|
|
5596
|
-
"TypographyUseFontStyle"
|
|
5701
|
+
"TypographyUseFontStyle",
|
|
5702
|
+
"FigmaImporterV3"
|
|
5597
5703
|
]);
|
|
5598
|
-
var FeatureFlagMap =
|
|
5599
|
-
var FeatureFlag =
|
|
5600
|
-
id:
|
|
5704
|
+
var FeatureFlagMap = z182.record(FlaggedFeature, z182.boolean());
|
|
5705
|
+
var FeatureFlag = z182.object({
|
|
5706
|
+
id: z182.string(),
|
|
5601
5707
|
feature: FlaggedFeature,
|
|
5602
|
-
createdAt:
|
|
5603
|
-
enabled:
|
|
5604
|
-
designSystemId:
|
|
5708
|
+
createdAt: z182.coerce.date(),
|
|
5709
|
+
enabled: z182.boolean(),
|
|
5710
|
+
designSystemId: z182.string().optional()
|
|
5605
5711
|
});
|
|
5606
5712
|
|
|
5607
5713
|
// src/integrations/external-oauth-request.ts
|
|
5608
|
-
import { z as
|
|
5714
|
+
import { z as z184 } from "zod";
|
|
5609
5715
|
|
|
5610
5716
|
// src/integrations/oauth-providers.ts
|
|
5611
|
-
import { z as
|
|
5717
|
+
import { z as z183 } from "zod";
|
|
5612
5718
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
5613
5719
|
OAuthProviderNames2["Figma"] = "figma";
|
|
5614
5720
|
OAuthProviderNames2["Azure"] = "azure";
|
|
@@ -5617,128 +5723,128 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
5617
5723
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
5618
5724
|
return OAuthProviderNames2;
|
|
5619
5725
|
})(OAuthProviderNames || {});
|
|
5620
|
-
var OAuthProviderSchema =
|
|
5726
|
+
var OAuthProviderSchema = z183.nativeEnum(OAuthProviderNames);
|
|
5621
5727
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
5622
5728
|
|
|
5623
5729
|
// src/integrations/external-oauth-request.ts
|
|
5624
|
-
var ExternalOAuthRequest =
|
|
5625
|
-
id:
|
|
5730
|
+
var ExternalOAuthRequest = z184.object({
|
|
5731
|
+
id: z184.string(),
|
|
5626
5732
|
provider: OAuthProviderSchema,
|
|
5627
|
-
userId:
|
|
5628
|
-
state:
|
|
5629
|
-
createdAt:
|
|
5733
|
+
userId: z184.string(),
|
|
5734
|
+
state: z184.string(),
|
|
5735
|
+
createdAt: z184.coerce.date()
|
|
5630
5736
|
});
|
|
5631
5737
|
|
|
5632
5738
|
// src/integrations/git.ts
|
|
5633
|
-
import { z as
|
|
5634
|
-
var GitObjectsQuery =
|
|
5635
|
-
organization:
|
|
5739
|
+
import { z as z185 } from "zod";
|
|
5740
|
+
var GitObjectsQuery = z185.object({
|
|
5741
|
+
organization: z185.string().optional(),
|
|
5636
5742
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
5637
|
-
project:
|
|
5743
|
+
project: z185.string().optional(),
|
|
5638
5744
|
// Only for Bitbucket and Azure
|
|
5639
|
-
repository:
|
|
5745
|
+
repository: z185.string().optional(),
|
|
5640
5746
|
// For all providers. For Gitlab, it's called "project".
|
|
5641
|
-
branch:
|
|
5747
|
+
branch: z185.string().optional(),
|
|
5642
5748
|
// For all providers.
|
|
5643
|
-
user:
|
|
5749
|
+
user: z185.string().optional()
|
|
5644
5750
|
// Gitlab user
|
|
5645
5751
|
});
|
|
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:
|
|
5752
|
+
var GitOrganization = z185.object({
|
|
5753
|
+
id: z185.string(),
|
|
5754
|
+
name: z185.string(),
|
|
5755
|
+
url: z185.string(),
|
|
5756
|
+
slug: z185.string()
|
|
5757
|
+
});
|
|
5758
|
+
var GitProject = z185.object({
|
|
5759
|
+
id: z185.string(),
|
|
5760
|
+
name: z185.string(),
|
|
5761
|
+
url: z185.string(),
|
|
5762
|
+
slug: z185.string()
|
|
5763
|
+
});
|
|
5764
|
+
var GitRepository = z185.object({
|
|
5765
|
+
id: z185.string(),
|
|
5766
|
+
name: z185.string(),
|
|
5767
|
+
url: z185.string(),
|
|
5768
|
+
slug: z185.string(),
|
|
5663
5769
|
/**
|
|
5664
5770
|
* Can be undefined when:
|
|
5665
5771
|
* - there are no branches in the repository yet
|
|
5666
5772
|
* - Git provider doesn't expose this information on a repository via their API
|
|
5667
5773
|
*/
|
|
5668
|
-
defaultBranch:
|
|
5774
|
+
defaultBranch: z185.string().optional()
|
|
5669
5775
|
});
|
|
5670
|
-
var GitBranch =
|
|
5671
|
-
name:
|
|
5672
|
-
lastCommitId:
|
|
5776
|
+
var GitBranch = z185.object({
|
|
5777
|
+
name: z185.string(),
|
|
5778
|
+
lastCommitId: z185.string()
|
|
5673
5779
|
});
|
|
5674
5780
|
|
|
5675
5781
|
// src/integrations/oauth-token.ts
|
|
5676
|
-
import { z as
|
|
5677
|
-
var IntegrationTokenSchemaOld =
|
|
5678
|
-
id:
|
|
5782
|
+
import { z as z186 } from "zod";
|
|
5783
|
+
var IntegrationTokenSchemaOld = z186.object({
|
|
5784
|
+
id: z186.string(),
|
|
5679
5785
|
provider: OAuthProviderSchema,
|
|
5680
|
-
scope:
|
|
5681
|
-
userId:
|
|
5682
|
-
accessToken:
|
|
5683
|
-
refreshToken:
|
|
5684
|
-
expiresAt:
|
|
5685
|
-
externalUserId:
|
|
5786
|
+
scope: z186.string(),
|
|
5787
|
+
userId: z186.string(),
|
|
5788
|
+
accessToken: z186.string(),
|
|
5789
|
+
refreshToken: z186.string(),
|
|
5790
|
+
expiresAt: z186.coerce.date(),
|
|
5791
|
+
externalUserId: z186.string().nullish()
|
|
5686
5792
|
});
|
|
5687
5793
|
|
|
5688
5794
|
// src/integrations/workspace-oauth-requests.ts
|
|
5689
|
-
import { z as
|
|
5690
|
-
var WorkspaceOAuthRequestSchema =
|
|
5691
|
-
id:
|
|
5692
|
-
workspaceId:
|
|
5795
|
+
import { z as z187 } from "zod";
|
|
5796
|
+
var WorkspaceOAuthRequestSchema = z187.object({
|
|
5797
|
+
id: z187.string(),
|
|
5798
|
+
workspaceId: z187.string(),
|
|
5693
5799
|
provider: OAuthProviderSchema,
|
|
5694
|
-
userId:
|
|
5695
|
-
createdAt:
|
|
5800
|
+
userId: z187.string(),
|
|
5801
|
+
createdAt: z187.coerce.date()
|
|
5696
5802
|
});
|
|
5697
5803
|
|
|
5698
5804
|
// src/npm/npm-package.ts
|
|
5699
|
-
import { z as
|
|
5700
|
-
var AnyRecord =
|
|
5805
|
+
import { z as z188 } from "zod";
|
|
5806
|
+
var AnyRecord = z188.record(z188.any());
|
|
5701
5807
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
5702
|
-
|
|
5703
|
-
tarball:
|
|
5808
|
+
z188.object({
|
|
5809
|
+
tarball: z188.string()
|
|
5704
5810
|
})
|
|
5705
5811
|
);
|
|
5706
5812
|
var NpmPackageVersion = AnyRecord.and(
|
|
5707
|
-
|
|
5813
|
+
z188.object({
|
|
5708
5814
|
dist: NpmPackageVersionDist
|
|
5709
5815
|
})
|
|
5710
5816
|
);
|
|
5711
5817
|
var NpmPackage = AnyRecord.and(
|
|
5712
|
-
|
|
5713
|
-
_id:
|
|
5714
|
-
name:
|
|
5818
|
+
z188.object({
|
|
5819
|
+
_id: z188.string(),
|
|
5820
|
+
name: z188.string(),
|
|
5715
5821
|
// e.g. "latest": "1.2.3"
|
|
5716
|
-
"dist-tags":
|
|
5822
|
+
"dist-tags": z188.record(z188.string(), z188.string()),
|
|
5717
5823
|
// "1.2.3": {...}
|
|
5718
|
-
versions:
|
|
5824
|
+
versions: z188.record(NpmPackageVersion)
|
|
5719
5825
|
})
|
|
5720
5826
|
);
|
|
5721
5827
|
|
|
5722
5828
|
// src/npm/npm-proxy-token-payload.ts
|
|
5723
|
-
import { z as
|
|
5724
|
-
var NpmProxyTokenPayload =
|
|
5725
|
-
npmProxyRegistryConfigId:
|
|
5829
|
+
import { z as z189 } from "zod";
|
|
5830
|
+
var NpmProxyTokenPayload = z189.object({
|
|
5831
|
+
npmProxyRegistryConfigId: z189.string()
|
|
5726
5832
|
});
|
|
5727
5833
|
|
|
5728
5834
|
// src/tokens/personal-access-token.ts
|
|
5729
|
-
import { z as
|
|
5730
|
-
var PersonalAccessToken =
|
|
5731
|
-
id:
|
|
5732
|
-
userId:
|
|
5733
|
-
workspaceId:
|
|
5734
|
-
designSystemId:
|
|
5835
|
+
import { z as z190 } from "zod";
|
|
5836
|
+
var PersonalAccessToken = z190.object({
|
|
5837
|
+
id: z190.string(),
|
|
5838
|
+
userId: z190.string(),
|
|
5839
|
+
workspaceId: z190.string().optional(),
|
|
5840
|
+
designSystemId: z190.string().optional(),
|
|
5735
5841
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
5736
|
-
name:
|
|
5737
|
-
hidden:
|
|
5738
|
-
token:
|
|
5739
|
-
scope:
|
|
5740
|
-
createdAt:
|
|
5741
|
-
expireAt:
|
|
5842
|
+
name: z190.string(),
|
|
5843
|
+
hidden: z190.boolean(),
|
|
5844
|
+
token: z190.string(),
|
|
5845
|
+
scope: z190.string().optional(),
|
|
5846
|
+
createdAt: z190.coerce.date(),
|
|
5847
|
+
expireAt: z190.coerce.date().optional()
|
|
5742
5848
|
});
|
|
5743
5849
|
export {
|
|
5744
5850
|
Address,
|
|
@@ -5748,7 +5854,6 @@ export {
|
|
|
5748
5854
|
AssetFontProperties,
|
|
5749
5855
|
AssetImportModelInput,
|
|
5750
5856
|
AssetOrigin,
|
|
5751
|
-
AssetProcessStatus,
|
|
5752
5857
|
AssetProperties,
|
|
5753
5858
|
AssetReference,
|
|
5754
5859
|
AssetRenderConfiguration,
|
|
@@ -5808,6 +5913,7 @@ export {
|
|
|
5808
5913
|
DataSourceRemote,
|
|
5809
5914
|
DataSourceRemoteType,
|
|
5810
5915
|
DataSourceStats,
|
|
5916
|
+
DataSourceStorybookRemote,
|
|
5811
5917
|
DataSourceTokenStudioRemote,
|
|
5812
5918
|
DataSourceUploadImportMetadata,
|
|
5813
5919
|
DataSourceUploadRemote,
|
|
@@ -5885,6 +5991,7 @@ export {
|
|
|
5885
5991
|
DocumentationPageContentItem,
|
|
5886
5992
|
DocumentationPageDataV1,
|
|
5887
5993
|
DocumentationPageDataV2,
|
|
5994
|
+
DocumentationPageDependencies,
|
|
5888
5995
|
DocumentationPageGroup,
|
|
5889
5996
|
DocumentationPageRoom,
|
|
5890
5997
|
DocumentationPageRoomDump,
|
|
@@ -6202,6 +6309,7 @@ export {
|
|
|
6202
6309
|
PageBlockItemSandboxValue,
|
|
6203
6310
|
PageBlockItemSingleSelectValue,
|
|
6204
6311
|
PageBlockItemStorybookValue,
|
|
6312
|
+
PageBlockItemStorybookValueOld,
|
|
6205
6313
|
PageBlockItemSwatch,
|
|
6206
6314
|
PageBlockItemTableCell,
|
|
6207
6315
|
PageBlockItemTableImageNode,
|
|
@@ -6224,6 +6332,8 @@ export {
|
|
|
6224
6332
|
PageBlockResourceFrameNodeReference,
|
|
6225
6333
|
PageBlockSelectedFigmaComponent,
|
|
6226
6334
|
PageBlockShortcut,
|
|
6335
|
+
PageBlockStorybookBlockConfig,
|
|
6336
|
+
PageBlockStorybookItem,
|
|
6227
6337
|
PageBlockSwatch,
|
|
6228
6338
|
PageBlockTableCellAlignment,
|
|
6229
6339
|
PageBlockTableColumn,
|
|
@@ -6320,6 +6430,9 @@ export {
|
|
|
6320
6430
|
SpaceUnit,
|
|
6321
6431
|
SpaceValue,
|
|
6322
6432
|
SsoProvider,
|
|
6433
|
+
StorybookEntry,
|
|
6434
|
+
StorybookEntryOrigin,
|
|
6435
|
+
StorybookPayload,
|
|
6323
6436
|
StringTokenData,
|
|
6324
6437
|
StringValue,
|
|
6325
6438
|
StripeSubscriptionStatus,
|
|
@@ -6393,6 +6506,7 @@ export {
|
|
|
6393
6506
|
WorkspaceRole,
|
|
6394
6507
|
WorkspaceRoleSchema,
|
|
6395
6508
|
WorkspaceRoom,
|
|
6509
|
+
WorkspaceUntypedData,
|
|
6396
6510
|
WorkspaceWithDesignSystems,
|
|
6397
6511
|
ZIndexTokenData,
|
|
6398
6512
|
ZIndexUnit,
|
|
@@ -6448,6 +6562,7 @@ export {
|
|
|
6448
6562
|
sleep,
|
|
6449
6563
|
slugRegex,
|
|
6450
6564
|
slugify,
|
|
6565
|
+
storybookValueFromOldValue,
|
|
6451
6566
|
tokenAliasOrValue,
|
|
6452
6567
|
tokenElementTypes,
|
|
6453
6568
|
traversePageBlockItemValuesV2,
|