@supernova-studio/model 1.5.0 → 1.5.2
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 +739 -143
- package/dist/index.d.ts +739 -143
- package/dist/index.js +96 -66
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +764 -734
- 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 z158 } 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 z157 } from "zod";
|
|
469
466
|
|
|
470
467
|
// src/export/export-destinations.ts
|
|
471
|
-
import { z as
|
|
468
|
+
import { z as z156 } from "zod";
|
|
472
469
|
|
|
473
470
|
// src/dsm/assets/asset-dynamo-record.ts
|
|
474
471
|
import { z as z19 } from "zod";
|
|
@@ -851,10 +848,8 @@ var SupernovaException = class _SupernovaException extends Error {
|
|
|
851
848
|
|
|
852
849
|
// src/utils/common.ts
|
|
853
850
|
function forceUnwrapNullish(value) {
|
|
854
|
-
if (value === null)
|
|
855
|
-
|
|
856
|
-
if (value === void 0)
|
|
857
|
-
throw new Error("Illegal undefined");
|
|
851
|
+
if (value === null) throw new Error("Illegal null");
|
|
852
|
+
if (value === void 0) throw new Error("Illegal undefined");
|
|
858
853
|
return value;
|
|
859
854
|
}
|
|
860
855
|
function trimLeadingSlash(string) {
|
|
@@ -924,14 +919,10 @@ function uniqueBy(items, prop) {
|
|
|
924
919
|
return Array.from(mapByUnique(items, prop).values());
|
|
925
920
|
}
|
|
926
921
|
function areShallowObjectsEqual(lhs, rhs) {
|
|
927
|
-
if (lhs === void 0 !== (rhs === void 0))
|
|
928
|
-
|
|
929
|
-
if (lhs ===
|
|
930
|
-
|
|
931
|
-
if (lhs === null !== (rhs === null))
|
|
932
|
-
return false;
|
|
933
|
-
if (lhs === null || rhs === null)
|
|
934
|
-
return true;
|
|
922
|
+
if (lhs === void 0 !== (rhs === void 0)) return false;
|
|
923
|
+
if (lhs === void 0 || rhs === void 0) return true;
|
|
924
|
+
if (lhs === null !== (rhs === null)) return false;
|
|
925
|
+
if (lhs === null || rhs === null) return true;
|
|
935
926
|
for (const key in lhs) {
|
|
936
927
|
if (!(key in rhs) || lhs[key] !== rhs[key]) {
|
|
937
928
|
return false;
|
|
@@ -959,8 +950,7 @@ function chunkedArray(array, chunkSize) {
|
|
|
959
950
|
}
|
|
960
951
|
function recordToMap(record) {
|
|
961
952
|
const map = /* @__PURE__ */ new Map();
|
|
962
|
-
for (const [k, v] of Object.entries(record))
|
|
963
|
-
map.set(k, v);
|
|
953
|
+
for (const [k, v] of Object.entries(record)) map.set(k, v);
|
|
964
954
|
return map;
|
|
965
955
|
}
|
|
966
956
|
function applyShallowObjectUpdate(object, update) {
|
|
@@ -1021,8 +1011,7 @@ function getCodenameFromText(name) {
|
|
|
1021
1011
|
}
|
|
1022
1012
|
function toCamelCase(str) {
|
|
1023
1013
|
return str.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g, function(match, index) {
|
|
1024
|
-
if (+match === 0)
|
|
1025
|
-
return "";
|
|
1014
|
+
if (+match === 0) return "";
|
|
1026
1015
|
return index === 0 ? match.toLowerCase() : match.toUpperCase();
|
|
1027
1016
|
});
|
|
1028
1017
|
}
|
|
@@ -1778,10 +1767,8 @@ var Size = z41.object({
|
|
|
1778
1767
|
height: z41.number().nullish().transform((v) => v ?? nullSize.height)
|
|
1779
1768
|
});
|
|
1780
1769
|
var SizeOrUndefined = Size.optional().transform((v) => {
|
|
1781
|
-
if (!v)
|
|
1782
|
-
|
|
1783
|
-
if (isNullSize(v))
|
|
1784
|
-
return void 0;
|
|
1770
|
+
if (!v) return void 0;
|
|
1771
|
+
if (isNullSize(v)) return void 0;
|
|
1785
1772
|
return v;
|
|
1786
1773
|
});
|
|
1787
1774
|
|
|
@@ -1855,14 +1842,10 @@ var stringTokenTypes = /* @__PURE__ */ new Set([
|
|
|
1855
1842
|
]);
|
|
1856
1843
|
var fallbackNumberValue = 14;
|
|
1857
1844
|
function areTokenTypesCompatible(lhs, rhs, isNonCompatibleTypeChangesEnabled = false) {
|
|
1858
|
-
if (lhs === rhs)
|
|
1859
|
-
|
|
1860
|
-
if (
|
|
1861
|
-
|
|
1862
|
-
if (stringTokenTypes.has(lhs) && stringTokenTypes.has(rhs))
|
|
1863
|
-
return true;
|
|
1864
|
-
if (isNonCompatibleTypeChangesEnabled && stringTokenTypes.has(lhs) && numberTokenTypes.has(rhs))
|
|
1865
|
-
return true;
|
|
1845
|
+
if (lhs === rhs) return true;
|
|
1846
|
+
if (numberTokenTypes.has(lhs) && numberTokenTypes.has(rhs)) return true;
|
|
1847
|
+
if (stringTokenTypes.has(lhs) && stringTokenTypes.has(rhs)) return true;
|
|
1848
|
+
if (isNonCompatibleTypeChangesEnabled && stringTokenTypes.has(lhs) && numberTokenTypes.has(rhs)) return true;
|
|
1866
1849
|
return false;
|
|
1867
1850
|
}
|
|
1868
1851
|
function castStringToDimensionValue(lhs, rhs, value) {
|
|
@@ -2229,8 +2212,7 @@ function removeCommentSpans(text) {
|
|
|
2229
2212
|
return joinRepeatingSpans(updatedRichText);
|
|
2230
2213
|
}
|
|
2231
2214
|
function joinRepeatingSpans(text) {
|
|
2232
|
-
if (text.spans.length < 2)
|
|
2233
|
-
return text;
|
|
2215
|
+
if (text.spans.length < 2) return text;
|
|
2234
2216
|
text = sanitizeSpans(text);
|
|
2235
2217
|
const { spans, ...rest } = text;
|
|
2236
2218
|
let previousSpan = { ...spans[0] };
|
|
@@ -2250,13 +2232,11 @@ function joinRepeatingSpans(text) {
|
|
|
2250
2232
|
};
|
|
2251
2233
|
}
|
|
2252
2234
|
function areAttributesEqual(lhs, rhs) {
|
|
2253
|
-
if (lhs.length !== rhs.length)
|
|
2254
|
-
return false;
|
|
2235
|
+
if (lhs.length !== rhs.length) return false;
|
|
2255
2236
|
const lhsMap = mapByUnique(lhs, (i) => i.type);
|
|
2256
2237
|
for (const rhsAttribute of rhs) {
|
|
2257
2238
|
const lhsAttribute = lhsMap.get(rhsAttribute.type);
|
|
2258
|
-
if (!areShallowObjectsEqual(lhsAttribute, rhsAttribute))
|
|
2259
|
-
return false;
|
|
2239
|
+
if (!areShallowObjectsEqual(lhsAttribute, rhsAttribute)) return false;
|
|
2260
2240
|
}
|
|
2261
2241
|
return true;
|
|
2262
2242
|
}
|
|
@@ -2699,7 +2679,9 @@ var PageBlockItemStorybookValue = z47.object({
|
|
|
2699
2679
|
caption: z47.string().optional(),
|
|
2700
2680
|
height: z47.number().optional(),
|
|
2701
2681
|
embedUrl: z47.string().optional(),
|
|
2702
|
-
value: z47.string().optional()
|
|
2682
|
+
value: z47.string().optional(),
|
|
2683
|
+
storyId: z47.string().optional(),
|
|
2684
|
+
sourceId: z47.string().optional()
|
|
2703
2685
|
});
|
|
2704
2686
|
var PageBlockItemTextValue = z47.object({
|
|
2705
2687
|
value: z47.string()
|
|
@@ -3011,8 +2993,7 @@ function figmaFileStructureToMap(root) {
|
|
|
3011
2993
|
}
|
|
3012
2994
|
function recursiveFigmaFileStructureToMap(node, map) {
|
|
3013
2995
|
map.set(node.id, node);
|
|
3014
|
-
for (const child of node.children)
|
|
3015
|
-
recursiveFigmaFileStructureToMap(child, map);
|
|
2996
|
+
for (const child of node.children) recursiveFigmaFileStructureToMap(child, map);
|
|
3016
2997
|
}
|
|
3017
2998
|
|
|
3018
2999
|
// src/dsm/elements/data/figma-node-reference.ts
|
|
@@ -3551,8 +3532,7 @@ function mapPageBlockItemValuesV2(pageItems, definitionsMap, fn) {
|
|
|
3551
3532
|
traversePageBlockItemsV2(pageItems, (block, item) => {
|
|
3552
3533
|
Object.entries(item.props).forEach(([propKey, value]) => {
|
|
3553
3534
|
const property = definitionsMap.getDefinitionProperty(block.data.packageId, propKey);
|
|
3554
|
-
if (!property)
|
|
3555
|
-
return;
|
|
3535
|
+
if (!property) return;
|
|
3556
3536
|
item.props[propKey] = fn(block, item, property, value);
|
|
3557
3537
|
});
|
|
3558
3538
|
});
|
|
@@ -3561,8 +3541,7 @@ function traversePageBlockItemValuesV2(pageItems, definitionsMap, fn) {
|
|
|
3561
3541
|
traversePageBlockItemsV2(pageItems, (block, item) => {
|
|
3562
3542
|
Object.entries(item.props).forEach(([propKey, value]) => {
|
|
3563
3543
|
const property = definitionsMap.getDefinitionProperty(block.data.packageId, propKey);
|
|
3564
|
-
if (!property)
|
|
3565
|
-
return;
|
|
3544
|
+
if (!property) return;
|
|
3566
3545
|
fn(block, item, property, value);
|
|
3567
3546
|
});
|
|
3568
3547
|
});
|
|
@@ -3659,7 +3638,7 @@ function zeroNumberByDefault() {
|
|
|
3659
3638
|
}
|
|
3660
3639
|
|
|
3661
3640
|
// src/dsm/data-sources/data-source.ts
|
|
3662
|
-
var DataSourceRemoteType = z91.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
|
|
3641
|
+
var DataSourceRemoteType = z91.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin", "Storybook"]);
|
|
3663
3642
|
var DataSourceUploadRemoteSource = z91.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
|
|
3664
3643
|
var DataSourceFigmaState = z91.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
|
|
3665
3644
|
var DataSourceAutoImportMode = z91.enum(["Never", "Hourly"]);
|
|
@@ -3719,10 +3698,22 @@ var DataSourceUploadRemote = z91.object({
|
|
|
3719
3698
|
isTokenTypeSplitEnabled: z91.boolean(),
|
|
3720
3699
|
isCollectionsMigrationCompleted: z91.boolean()
|
|
3721
3700
|
});
|
|
3701
|
+
var DataSourceStorybookRemote = z91.object({
|
|
3702
|
+
type: z91.literal(DataSourceRemoteType.Enum.Storybook),
|
|
3703
|
+
indexUrl: z91.string(),
|
|
3704
|
+
userUrl: z91.string(),
|
|
3705
|
+
ownerId: z91.string().optional(),
|
|
3706
|
+
lastImportedAt: z91.coerce.date().optional(),
|
|
3707
|
+
lastImportedSuccessfully: z91.coerce.date().optional(),
|
|
3708
|
+
isFailed: z91.boolean(),
|
|
3709
|
+
storiesCount: z91.number(),
|
|
3710
|
+
docsCount: z91.number()
|
|
3711
|
+
});
|
|
3722
3712
|
var DataSourceRemote = z91.discriminatedUnion("type", [
|
|
3723
3713
|
DataSourceFigmaRemote,
|
|
3724
3714
|
DataSourceUploadRemote,
|
|
3725
|
-
DataSourceTokenStudioRemote
|
|
3715
|
+
DataSourceTokenStudioRemote,
|
|
3716
|
+
DataSourceStorybookRemote
|
|
3726
3717
|
]);
|
|
3727
3718
|
var DataSource = z91.object({
|
|
3728
3719
|
id: z91.string(),
|
|
@@ -3808,15 +3799,11 @@ var FigmaImportBaseContext = z94.object({
|
|
|
3808
3799
|
importWarnings: z94.record(ImportWarning.array()).default({})
|
|
3809
3800
|
});
|
|
3810
3801
|
var FeatureFlagsKeepAliases = z94.object({
|
|
3811
|
-
isTypographyPropsKeepAliasesEnabled: z94.boolean().default(false),
|
|
3812
|
-
isGradientPropsKeepAliasesEnabled: z94.boolean().default(false),
|
|
3813
|
-
isShadowPropsKeepAliasesEnabled: z94.boolean().default(false),
|
|
3814
3802
|
isNonCompatibleTypeChangesEnabled: z94.boolean().default(false),
|
|
3815
3803
|
isTypographyUseFontStyleEnabled: z94.boolean().default(false)
|
|
3816
3804
|
});
|
|
3817
3805
|
var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
|
|
3818
3806
|
sourcesWithMissingAccess: z94.array(z94.string()).default([]),
|
|
3819
|
-
shadowOpacityOptional: z94.boolean().default(false),
|
|
3820
3807
|
featureFlagsKeepAliases: FeatureFlagsKeepAliases.default({})
|
|
3821
3808
|
});
|
|
3822
3809
|
var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
|
|
@@ -3957,20 +3944,18 @@ var FigmaComponentImportModelPart = z99.object({
|
|
|
3957
3944
|
parentComponentId: z99.string().optional(),
|
|
3958
3945
|
componentPropertyDefinitions: FigmaComponentPropertyMap.optional(),
|
|
3959
3946
|
variantPropertyValues: z99.record(z99.string()).optional(),
|
|
3960
|
-
renderNodeId: z99.string()
|
|
3947
|
+
renderNodeId: z99.string(),
|
|
3948
|
+
svg: FigmaSvgRenderImportModel.optional()
|
|
3961
3949
|
});
|
|
3962
3950
|
var FigmaComponentImportModel = ImportModelBase.extend(FigmaComponentImportModelPart.shape).extend({
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
origin: FigmaComponentOrigin
|
|
3951
|
+
origin: FigmaComponentOrigin,
|
|
3952
|
+
isAsset: z99.boolean()
|
|
3966
3953
|
});
|
|
3967
3954
|
var FigmaComponentImportModelInput = ImportModelInputBase.extend(FigmaComponentImportModelPart.shape).extend({
|
|
3968
|
-
originMetadata: FigmaComponentOriginPart
|
|
3969
|
-
|
|
3970
|
-
var AssetImportModelInput = ImportModelInputBase.extend(FigmaComponentImportModelPart.shape).extend({
|
|
3971
|
-
svg: FigmaSvgRenderImportModel,
|
|
3972
|
-
originMetadata: FigmaComponentOriginPart
|
|
3955
|
+
originMetadata: FigmaComponentOriginPart,
|
|
3956
|
+
isAsset: z99.boolean().optional()
|
|
3973
3957
|
});
|
|
3958
|
+
var AssetImportModelInput = FigmaComponentImportModelInput;
|
|
3974
3959
|
|
|
3975
3960
|
// src/dsm/import/data-source.ts
|
|
3976
3961
|
import { z as z100 } from "zod";
|
|
@@ -4006,8 +3991,7 @@ function figmaFileStructureImportModelToMap(root) {
|
|
|
4006
3991
|
}
|
|
4007
3992
|
function recursiveFigmaFileStructureToMap2(node, map) {
|
|
4008
3993
|
map.set(node.id, node);
|
|
4009
|
-
for (const child of node.children)
|
|
4010
|
-
recursiveFigmaFileStructureToMap2(child, map);
|
|
3994
|
+
for (const child of node.children) recursiveFigmaFileStructureToMap2(child, map);
|
|
4011
3995
|
}
|
|
4012
3996
|
|
|
4013
3997
|
// src/dsm/import/theme.ts
|
|
@@ -4397,7 +4381,7 @@ var FigmaNodeStructureV2 = z122.object({
|
|
|
4397
4381
|
});
|
|
4398
4382
|
|
|
4399
4383
|
// src/dsm/membership/design-system-membership.ts
|
|
4400
|
-
import { z as
|
|
4384
|
+
import { z as z144 } from "zod";
|
|
4401
4385
|
|
|
4402
4386
|
// src/workspace/npm-registry-settings.ts
|
|
4403
4387
|
import { z as z123 } from "zod";
|
|
@@ -4449,69 +4433,79 @@ var SsoProvider = z124.object({
|
|
|
4449
4433
|
metadataXml: z124.string().nullish()
|
|
4450
4434
|
});
|
|
4451
4435
|
|
|
4436
|
+
// src/workspace/untyped-data.ts
|
|
4437
|
+
import { z as z125 } from "zod";
|
|
4438
|
+
var WorkspaceUntypedData = z125.object({
|
|
4439
|
+
id: z125.string(),
|
|
4440
|
+
workspaceId: z125.string(),
|
|
4441
|
+
value: z125.unknown(),
|
|
4442
|
+
createdAt: z125.coerce.date(),
|
|
4443
|
+
updatedAt: z125.coerce.date()
|
|
4444
|
+
});
|
|
4445
|
+
|
|
4452
4446
|
// src/workspace/user-invite.ts
|
|
4453
|
-
import { z as
|
|
4447
|
+
import { z as z127 } from "zod";
|
|
4454
4448
|
|
|
4455
4449
|
// src/workspace/workspace-role.ts
|
|
4456
|
-
import { z as
|
|
4457
|
-
var WorkspaceRoleSchema =
|
|
4450
|
+
import { z as z126 } from "zod";
|
|
4451
|
+
var WorkspaceRoleSchema = z126.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
|
|
4458
4452
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
4459
4453
|
|
|
4460
4454
|
// src/workspace/user-invite.ts
|
|
4461
4455
|
var MAX_MEMBERS_COUNT = 100;
|
|
4462
|
-
var UserInvite =
|
|
4463
|
-
email:
|
|
4456
|
+
var UserInvite = z127.object({
|
|
4457
|
+
email: z127.string().email().trim().transform((value) => value.toLowerCase()),
|
|
4464
4458
|
role: WorkspaceRoleSchema
|
|
4465
4459
|
});
|
|
4466
|
-
var UserInvites =
|
|
4460
|
+
var UserInvites = z127.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
4467
4461
|
|
|
4468
4462
|
// src/workspace/workspace-configuration.ts
|
|
4469
|
-
import { z as
|
|
4463
|
+
import { z as z129 } from "zod";
|
|
4470
4464
|
|
|
4471
4465
|
// src/workspace/workspace.ts
|
|
4472
4466
|
import IPCIDR from "ip-cidr";
|
|
4473
|
-
import { z as
|
|
4467
|
+
import { z as z128 } from "zod";
|
|
4474
4468
|
var isValidCIDR = (value) => {
|
|
4475
4469
|
return IPCIDR.isValidAddress(value);
|
|
4476
4470
|
};
|
|
4477
|
-
var WorkspaceIpWhitelistEntry =
|
|
4478
|
-
isEnabled:
|
|
4479
|
-
name:
|
|
4480
|
-
range:
|
|
4471
|
+
var WorkspaceIpWhitelistEntry = z128.object({
|
|
4472
|
+
isEnabled: z128.boolean(),
|
|
4473
|
+
name: z128.string(),
|
|
4474
|
+
range: z128.string().refine(isValidCIDR, {
|
|
4481
4475
|
message: "Invalid IP CIDR"
|
|
4482
4476
|
})
|
|
4483
4477
|
});
|
|
4484
|
-
var WorkspaceIpSettings =
|
|
4485
|
-
isEnabledForCloud:
|
|
4486
|
-
isEnabledForDocs:
|
|
4487
|
-
entries:
|
|
4478
|
+
var WorkspaceIpSettings = z128.object({
|
|
4479
|
+
isEnabledForCloud: z128.boolean(),
|
|
4480
|
+
isEnabledForDocs: z128.boolean(),
|
|
4481
|
+
entries: z128.array(WorkspaceIpWhitelistEntry)
|
|
4488
4482
|
});
|
|
4489
|
-
var WorkspaceProfile =
|
|
4490
|
-
name:
|
|
4491
|
-
handle:
|
|
4492
|
-
color:
|
|
4493
|
-
avatar: nullishToOptional(
|
|
4483
|
+
var WorkspaceProfile = z128.object({
|
|
4484
|
+
name: z128.string(),
|
|
4485
|
+
handle: z128.string(),
|
|
4486
|
+
color: z128.string(),
|
|
4487
|
+
avatar: nullishToOptional(z128.string()),
|
|
4494
4488
|
billingDetails: nullishToOptional(BillingDetails)
|
|
4495
4489
|
});
|
|
4496
4490
|
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
4497
4491
|
avatar: true
|
|
4498
4492
|
});
|
|
4499
|
-
var Workspace =
|
|
4500
|
-
id:
|
|
4493
|
+
var Workspace = z128.object({
|
|
4494
|
+
id: z128.string(),
|
|
4501
4495
|
profile: WorkspaceProfile,
|
|
4502
4496
|
subscription: Subscription,
|
|
4503
4497
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4504
4498
|
sso: nullishToOptional(SsoProvider),
|
|
4505
4499
|
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
4506
4500
|
});
|
|
4507
|
-
var WorkspaceWithDesignSystems =
|
|
4501
|
+
var WorkspaceWithDesignSystems = z128.object({
|
|
4508
4502
|
workspace: Workspace,
|
|
4509
|
-
designSystems:
|
|
4503
|
+
designSystems: z128.array(DesignSystem)
|
|
4510
4504
|
});
|
|
4511
4505
|
|
|
4512
4506
|
// src/workspace/workspace-configuration.ts
|
|
4513
|
-
var WorkspaceConfigurationUpdate =
|
|
4514
|
-
id:
|
|
4507
|
+
var WorkspaceConfigurationUpdate = z129.object({
|
|
4508
|
+
id: z129.string(),
|
|
4515
4509
|
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
4516
4510
|
sso: SsoProvider.optional(),
|
|
4517
4511
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
@@ -4519,59 +4513,59 @@ var WorkspaceConfigurationUpdate = z128.object({
|
|
|
4519
4513
|
});
|
|
4520
4514
|
|
|
4521
4515
|
// src/workspace/workspace-context.ts
|
|
4522
|
-
import { z as
|
|
4523
|
-
var WorkspaceContext =
|
|
4524
|
-
workspaceId:
|
|
4516
|
+
import { z as z130 } from "zod";
|
|
4517
|
+
var WorkspaceContext = z130.object({
|
|
4518
|
+
workspaceId: z130.string(),
|
|
4525
4519
|
product: ProductCodeSchema,
|
|
4526
4520
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4527
|
-
publicDesignSystem:
|
|
4521
|
+
publicDesignSystem: z130.boolean().optional()
|
|
4528
4522
|
});
|
|
4529
4523
|
|
|
4530
4524
|
// src/workspace/workspace-create.ts
|
|
4531
|
-
import { z as
|
|
4525
|
+
import { z as z131 } from "zod";
|
|
4532
4526
|
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
4533
4527
|
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
4534
4528
|
var HANDLE_MIN_LENGTH = 2;
|
|
4535
4529
|
var HANDLE_MAX_LENGTH = 64;
|
|
4536
|
-
var CreateWorkspaceInput =
|
|
4537
|
-
name:
|
|
4538
|
-
handle:
|
|
4530
|
+
var CreateWorkspaceInput = z131.object({
|
|
4531
|
+
name: z131.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
4532
|
+
handle: z131.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
|
|
4539
4533
|
});
|
|
4540
4534
|
|
|
4541
4535
|
// 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:
|
|
4536
|
+
import { z as z132 } from "zod";
|
|
4537
|
+
var WorkspaceInvitation = z132.object({
|
|
4538
|
+
id: z132.string(),
|
|
4539
|
+
email: z132.string().email(),
|
|
4540
|
+
createdAt: z132.coerce.date(),
|
|
4541
|
+
resentAt: z132.coerce.date().nullish(),
|
|
4542
|
+
role: z132.nativeEnum(WorkspaceRole),
|
|
4543
|
+
workspaceId: z132.string(),
|
|
4544
|
+
invitedBy: z132.string()
|
|
4551
4545
|
});
|
|
4552
4546
|
|
|
4553
4547
|
// src/workspace/workspace-membership.ts
|
|
4554
|
-
import { z as
|
|
4548
|
+
import { z as z141 } from "zod";
|
|
4555
4549
|
|
|
4556
4550
|
// src/users/linked-integrations.ts
|
|
4557
|
-
import { z as
|
|
4558
|
-
var IntegrationAuthType =
|
|
4559
|
-
var ExternalServiceType =
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4551
|
+
import { z as z133 } from "zod";
|
|
4552
|
+
var IntegrationAuthType = z133.union([z133.literal("OAuth2"), z133.literal("PAT")]);
|
|
4553
|
+
var ExternalServiceType = z133.union([
|
|
4554
|
+
z133.literal("figma"),
|
|
4555
|
+
z133.literal("github"),
|
|
4556
|
+
z133.literal("azure"),
|
|
4557
|
+
z133.literal("gitlab"),
|
|
4558
|
+
z133.literal("bitbucket")
|
|
4565
4559
|
]);
|
|
4566
|
-
var IntegrationUserInfo =
|
|
4567
|
-
id:
|
|
4568
|
-
handle:
|
|
4569
|
-
avatarUrl:
|
|
4570
|
-
email:
|
|
4560
|
+
var IntegrationUserInfo = z133.object({
|
|
4561
|
+
id: z133.string(),
|
|
4562
|
+
handle: z133.string().optional(),
|
|
4563
|
+
avatarUrl: z133.string().optional(),
|
|
4564
|
+
email: z133.string().optional(),
|
|
4571
4565
|
authType: IntegrationAuthType.optional(),
|
|
4572
|
-
customUrl:
|
|
4566
|
+
customUrl: z133.string().optional()
|
|
4573
4567
|
});
|
|
4574
|
-
var UserLinkedIntegrations =
|
|
4568
|
+
var UserLinkedIntegrations = z133.object({
|
|
4575
4569
|
figma: IntegrationUserInfo.optional(),
|
|
4576
4570
|
github: IntegrationUserInfo.array().optional(),
|
|
4577
4571
|
azure: IntegrationUserInfo.array().optional(),
|
|
@@ -4580,38 +4574,38 @@ var UserLinkedIntegrations = z132.object({
|
|
|
4580
4574
|
});
|
|
4581
4575
|
|
|
4582
4576
|
// src/users/user-analytics-cleanup-schedule.ts
|
|
4583
|
-
import { z as
|
|
4584
|
-
var UserAnalyticsCleanupSchedule =
|
|
4585
|
-
userId:
|
|
4586
|
-
createdAt:
|
|
4587
|
-
deleteAt:
|
|
4577
|
+
import { z as z134 } from "zod";
|
|
4578
|
+
var UserAnalyticsCleanupSchedule = z134.object({
|
|
4579
|
+
userId: z134.string(),
|
|
4580
|
+
createdAt: z134.coerce.date(),
|
|
4581
|
+
deleteAt: z134.coerce.date()
|
|
4588
4582
|
});
|
|
4589
4583
|
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
4590
4584
|
createdAt: true
|
|
4591
4585
|
});
|
|
4592
4586
|
|
|
4593
4587
|
// src/users/user-identity.ts
|
|
4594
|
-
import { z as
|
|
4595
|
-
var UserIdentity =
|
|
4596
|
-
id:
|
|
4597
|
-
userId:
|
|
4588
|
+
import { z as z135 } from "zod";
|
|
4589
|
+
var UserIdentity = z135.object({
|
|
4590
|
+
id: z135.string(),
|
|
4591
|
+
userId: z135.string()
|
|
4598
4592
|
});
|
|
4599
4593
|
|
|
4600
4594
|
// src/users/user-minified.ts
|
|
4601
|
-
import { z as
|
|
4602
|
-
var UserMinified =
|
|
4603
|
-
id:
|
|
4604
|
-
name:
|
|
4605
|
-
email:
|
|
4606
|
-
avatar:
|
|
4595
|
+
import { z as z136 } from "zod";
|
|
4596
|
+
var UserMinified = z136.object({
|
|
4597
|
+
id: z136.string(),
|
|
4598
|
+
name: z136.string(),
|
|
4599
|
+
email: z136.string(),
|
|
4600
|
+
avatar: z136.string().optional()
|
|
4607
4601
|
});
|
|
4608
4602
|
|
|
4609
4603
|
// src/users/user-notification-settings.ts
|
|
4610
|
-
import { z as
|
|
4611
|
-
var LiveblocksNotificationSettings =
|
|
4612
|
-
sendCommentNotificationEmails:
|
|
4604
|
+
import { z as z137 } from "zod";
|
|
4605
|
+
var LiveblocksNotificationSettings = z137.object({
|
|
4606
|
+
sendCommentNotificationEmails: z137.boolean()
|
|
4613
4607
|
});
|
|
4614
|
-
var UserNotificationSettings =
|
|
4608
|
+
var UserNotificationSettings = z137.object({
|
|
4615
4609
|
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
4616
4610
|
});
|
|
4617
4611
|
var defaultNotificationSettings = {
|
|
@@ -4621,11 +4615,11 @@ var defaultNotificationSettings = {
|
|
|
4621
4615
|
};
|
|
4622
4616
|
|
|
4623
4617
|
// src/users/user-profile.ts
|
|
4624
|
-
import { z as
|
|
4625
|
-
var UserOnboardingDepartment =
|
|
4626
|
-
var UserOnboardingJobLevel =
|
|
4627
|
-
var UserTheme =
|
|
4628
|
-
preset:
|
|
4618
|
+
import { z as z138 } from "zod";
|
|
4619
|
+
var UserOnboardingDepartment = z138.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
4620
|
+
var UserOnboardingJobLevel = z138.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
4621
|
+
var UserTheme = z138.object({
|
|
4622
|
+
preset: z138.enum([
|
|
4629
4623
|
"Custom",
|
|
4630
4624
|
"Default",
|
|
4631
4625
|
"HighContrast",
|
|
@@ -4636,32 +4630,32 @@ var UserTheme = z137.object({
|
|
|
4636
4630
|
"SystemPreference",
|
|
4637
4631
|
"Sepia"
|
|
4638
4632
|
]).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:
|
|
4633
|
+
backgroundColor: z138.string().optional(),
|
|
4634
|
+
accentColor: z138.string().optional(),
|
|
4635
|
+
contrast: z138.number().min(16).max(100).optional(),
|
|
4636
|
+
isSecondaryEnabled: z138.boolean().optional(),
|
|
4637
|
+
secondaryBackgroundColor: z138.string().optional(),
|
|
4638
|
+
secondaryContrast: z138.number().min(16).max(100).optional(),
|
|
4639
|
+
isEditorWhite: z138.boolean().optional()
|
|
4640
|
+
});
|
|
4641
|
+
var UserOnboarding = z138.object({
|
|
4642
|
+
companyName: z138.string().optional(),
|
|
4643
|
+
numberOfPeopleInOrg: z138.string().optional(),
|
|
4644
|
+
numberOfPeopleInDesignTeam: z138.string().optional(),
|
|
4651
4645
|
department: UserOnboardingDepartment.optional(),
|
|
4652
|
-
jobTitle:
|
|
4653
|
-
phase:
|
|
4646
|
+
jobTitle: z138.string().optional(),
|
|
4647
|
+
phase: z138.string().optional(),
|
|
4654
4648
|
jobLevel: UserOnboardingJobLevel.optional(),
|
|
4655
|
-
designSystemName:
|
|
4656
|
-
defaultDestination:
|
|
4657
|
-
figmaUrl:
|
|
4658
|
-
isPageDraftOnboardingFinished:
|
|
4659
|
-
isApprovalsOnboardingFinished:
|
|
4660
|
-
});
|
|
4661
|
-
var UserProfile =
|
|
4662
|
-
name:
|
|
4663
|
-
avatar:
|
|
4664
|
-
nickname:
|
|
4649
|
+
designSystemName: z138.string().optional(),
|
|
4650
|
+
defaultDestination: z138.string().optional(),
|
|
4651
|
+
figmaUrl: z138.string().optional(),
|
|
4652
|
+
isPageDraftOnboardingFinished: z138.boolean().optional(),
|
|
4653
|
+
isApprovalsOnboardingFinished: z138.boolean().optional()
|
|
4654
|
+
});
|
|
4655
|
+
var UserProfile = z138.object({
|
|
4656
|
+
name: z138.string(),
|
|
4657
|
+
avatar: z138.string().optional(),
|
|
4658
|
+
nickname: z138.string().optional(),
|
|
4665
4659
|
onboarding: UserOnboarding.optional(),
|
|
4666
4660
|
theme: UserTheme.optional()
|
|
4667
4661
|
});
|
|
@@ -4670,47 +4664,47 @@ var UserProfileUpdate = UserProfile.partial().omit({
|
|
|
4670
4664
|
});
|
|
4671
4665
|
|
|
4672
4666
|
// src/users/user-test.ts
|
|
4673
|
-
import { z as
|
|
4674
|
-
var UserTest =
|
|
4675
|
-
id:
|
|
4676
|
-
email:
|
|
4667
|
+
import { z as z139 } from "zod";
|
|
4668
|
+
var UserTest = z139.object({
|
|
4669
|
+
id: z139.string(),
|
|
4670
|
+
email: z139.string()
|
|
4677
4671
|
});
|
|
4678
4672
|
|
|
4679
4673
|
// src/users/user.ts
|
|
4680
|
-
import { z as
|
|
4681
|
-
var UserSource =
|
|
4682
|
-
var User =
|
|
4683
|
-
id:
|
|
4684
|
-
email:
|
|
4685
|
-
createdAt:
|
|
4674
|
+
import { z as z140 } from "zod";
|
|
4675
|
+
var UserSource = z140.enum(["SignUp", "Invite", "SSO"]);
|
|
4676
|
+
var User = z140.object({
|
|
4677
|
+
id: z140.string(),
|
|
4678
|
+
email: z140.string(),
|
|
4679
|
+
createdAt: z140.coerce.date(),
|
|
4686
4680
|
profile: UserProfile,
|
|
4687
|
-
loggedOutAt:
|
|
4688
|
-
isProtected:
|
|
4681
|
+
loggedOutAt: z140.coerce.date().optional(),
|
|
4682
|
+
isProtected: z140.boolean(),
|
|
4689
4683
|
source: UserSource.optional()
|
|
4690
4684
|
});
|
|
4691
4685
|
|
|
4692
4686
|
// src/workspace/workspace-membership.ts
|
|
4693
|
-
var WorkspaceMembership =
|
|
4694
|
-
id:
|
|
4695
|
-
userId:
|
|
4696
|
-
workspaceId:
|
|
4697
|
-
workspaceRole:
|
|
4687
|
+
var WorkspaceMembership = z141.object({
|
|
4688
|
+
id: z141.string(),
|
|
4689
|
+
userId: z141.string(),
|
|
4690
|
+
workspaceId: z141.string(),
|
|
4691
|
+
workspaceRole: z141.nativeEnum(WorkspaceRole),
|
|
4698
4692
|
notificationSettings: UserNotificationSettings,
|
|
4699
|
-
isPrimaryOwner:
|
|
4700
|
-
});
|
|
4701
|
-
var UpdateMembershipRolesInput =
|
|
4702
|
-
members:
|
|
4703
|
-
|
|
4704
|
-
userId:
|
|
4705
|
-
role:
|
|
4706
|
-
isPrimaryOwner:
|
|
4693
|
+
isPrimaryOwner: z141.boolean().nullish()
|
|
4694
|
+
});
|
|
4695
|
+
var UpdateMembershipRolesInput = z141.object({
|
|
4696
|
+
members: z141.array(
|
|
4697
|
+
z141.object({
|
|
4698
|
+
userId: z141.string(),
|
|
4699
|
+
role: z141.nativeEnum(WorkspaceRole),
|
|
4700
|
+
isPrimaryOwner: z141.boolean().optional()
|
|
4707
4701
|
})
|
|
4708
4702
|
)
|
|
4709
4703
|
});
|
|
4710
4704
|
|
|
4711
4705
|
// src/dsm/membership/ds-role.ts
|
|
4712
|
-
import { z as
|
|
4713
|
-
var DesignSystemRole =
|
|
4706
|
+
import { z as z142 } from "zod";
|
|
4707
|
+
var DesignSystemRole = z142.enum([
|
|
4714
4708
|
WorkspaceRole.Admin,
|
|
4715
4709
|
WorkspaceRole.Contributor,
|
|
4716
4710
|
WorkspaceRole.Creator,
|
|
@@ -4734,46 +4728,46 @@ function workspaceRoleToDesignSystemRole(role) {
|
|
|
4734
4728
|
}
|
|
4735
4729
|
|
|
4736
4730
|
// src/dsm/membership/invitations.ts
|
|
4737
|
-
import { z as
|
|
4738
|
-
var DesignSystemInvitation =
|
|
4739
|
-
id:
|
|
4740
|
-
designSystemId:
|
|
4741
|
-
workspaceInvitationId:
|
|
4731
|
+
import { z as z143 } from "zod";
|
|
4732
|
+
var DesignSystemInvitation = z143.object({
|
|
4733
|
+
id: z143.string(),
|
|
4734
|
+
designSystemId: z143.string(),
|
|
4735
|
+
workspaceInvitationId: z143.string(),
|
|
4742
4736
|
designSystemRole: DesignSystemRole.optional(),
|
|
4743
4737
|
workspaceRole: WorkspaceRoleSchema
|
|
4744
4738
|
});
|
|
4745
4739
|
|
|
4746
4740
|
// src/dsm/membership/design-system-membership.ts
|
|
4747
|
-
var DesignSystemMembership =
|
|
4748
|
-
id:
|
|
4749
|
-
userId:
|
|
4750
|
-
designSystemId:
|
|
4741
|
+
var DesignSystemMembership = z144.object({
|
|
4742
|
+
id: z144.string(),
|
|
4743
|
+
userId: z144.string(),
|
|
4744
|
+
designSystemId: z144.string(),
|
|
4751
4745
|
designSystemRole: DesignSystemRole.optional(),
|
|
4752
|
-
workspaceMembershipId:
|
|
4746
|
+
workspaceMembershipId: z144.string(),
|
|
4753
4747
|
workspaceRole: WorkspaceRoleSchema
|
|
4754
4748
|
});
|
|
4755
|
-
var DesignSystemMembers =
|
|
4749
|
+
var DesignSystemMembers = z144.object({
|
|
4756
4750
|
members: DesignSystemMembership.array(),
|
|
4757
4751
|
invitations: DesignSystemInvitation.array()
|
|
4758
4752
|
});
|
|
4759
|
-
var DesignSystemPendingMemberInvitation =
|
|
4760
|
-
inviteId:
|
|
4753
|
+
var DesignSystemPendingMemberInvitation = z144.object({
|
|
4754
|
+
inviteId: z144.string(),
|
|
4761
4755
|
/**
|
|
4762
4756
|
* Role that the user will have in the design system, undefined
|
|
4763
4757
|
* if it should be inherited from the workspace
|
|
4764
4758
|
*/
|
|
4765
4759
|
designSystemRole: DesignSystemRole.optional()
|
|
4766
4760
|
});
|
|
4767
|
-
var DesignSystemUserInvitation =
|
|
4768
|
-
userId:
|
|
4761
|
+
var DesignSystemUserInvitation = z144.object({
|
|
4762
|
+
userId: z144.string(),
|
|
4769
4763
|
/**
|
|
4770
4764
|
* Role that the user will have in the design system, undefined
|
|
4771
4765
|
* if it should be inherited from the workspace
|
|
4772
4766
|
*/
|
|
4773
4767
|
designSystemRole: DesignSystemRole.optional()
|
|
4774
4768
|
});
|
|
4775
|
-
var DesignSystemInvite =
|
|
4776
|
-
email:
|
|
4769
|
+
var DesignSystemInvite = z144.object({
|
|
4770
|
+
email: z144.string(),
|
|
4777
4771
|
workspaceRole: WorkspaceRoleSchema,
|
|
4778
4772
|
/**
|
|
4779
4773
|
* Role that the user will have in the design system, undefined
|
|
@@ -4781,285 +4775,318 @@ var DesignSystemInvite = z143.object({
|
|
|
4781
4775
|
*/
|
|
4782
4776
|
designSystemRole: DesignSystemRole.optional()
|
|
4783
4777
|
});
|
|
4784
|
-
var DesignSystemMemberUpdate =
|
|
4785
|
-
userId:
|
|
4778
|
+
var DesignSystemMemberUpdate = z144.object({
|
|
4779
|
+
userId: z144.string(),
|
|
4786
4780
|
designSystemRole: DesignSystemRole.nullable()
|
|
4787
4781
|
});
|
|
4788
|
-
var DesignSystemInviteUpdate =
|
|
4782
|
+
var DesignSystemInviteUpdate = z144.object({
|
|
4789
4783
|
/**
|
|
4790
4784
|
* Workspace invitation id
|
|
4791
4785
|
*/
|
|
4792
|
-
inviteId:
|
|
4786
|
+
inviteId: z144.string(),
|
|
4793
4787
|
designSystemRole: DesignSystemRole.nullable()
|
|
4794
4788
|
});
|
|
4795
|
-
var DesignSystemMembershipUpdates =
|
|
4789
|
+
var DesignSystemMembershipUpdates = z144.object({
|
|
4796
4790
|
usersToInvite: DesignSystemUserInvitation.array().optional(),
|
|
4797
4791
|
invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
|
|
4798
4792
|
emailsToInvite: DesignSystemInvite.array().optional(),
|
|
4799
4793
|
usersToUpdate: DesignSystemMemberUpdate.array().optional(),
|
|
4800
4794
|
invitesToUpdate: DesignSystemInviteUpdate.array().optional(),
|
|
4801
|
-
removeUserIds:
|
|
4802
|
-
deleteInvitationIds:
|
|
4795
|
+
removeUserIds: z144.string().array().optional(),
|
|
4796
|
+
deleteInvitationIds: z144.string().array().optional()
|
|
4803
4797
|
});
|
|
4804
4798
|
|
|
4805
4799
|
// src/dsm/views/column.ts
|
|
4806
|
-
import { z as
|
|
4807
|
-
var ElementViewBaseColumnType =
|
|
4808
|
-
var ElementViewColumnType =
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4800
|
+
import { z as z145 } from "zod";
|
|
4801
|
+
var ElementViewBaseColumnType = z145.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
4802
|
+
var ElementViewColumnType = z145.union([
|
|
4803
|
+
z145.literal("BaseProperty"),
|
|
4804
|
+
z145.literal("PropertyDefinition"),
|
|
4805
|
+
z145.literal("Theme")
|
|
4812
4806
|
]);
|
|
4813
|
-
var ElementViewColumnSharedAttributes =
|
|
4814
|
-
id:
|
|
4815
|
-
persistentId:
|
|
4816
|
-
elementDataViewId:
|
|
4817
|
-
sortPosition:
|
|
4818
|
-
width:
|
|
4807
|
+
var ElementViewColumnSharedAttributes = z145.object({
|
|
4808
|
+
id: z145.string(),
|
|
4809
|
+
persistentId: z145.string(),
|
|
4810
|
+
elementDataViewId: z145.string(),
|
|
4811
|
+
sortPosition: z145.number(),
|
|
4812
|
+
width: z145.number()
|
|
4819
4813
|
});
|
|
4820
4814
|
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
4821
|
-
type:
|
|
4815
|
+
type: z145.literal("BaseProperty"),
|
|
4822
4816
|
basePropertyType: ElementViewBaseColumnType
|
|
4823
4817
|
});
|
|
4824
4818
|
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
4825
|
-
type:
|
|
4826
|
-
propertyDefinitionId:
|
|
4819
|
+
type: z145.literal("PropertyDefinition"),
|
|
4820
|
+
propertyDefinitionId: z145.string()
|
|
4827
4821
|
});
|
|
4828
4822
|
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
4829
|
-
type:
|
|
4830
|
-
themeId:
|
|
4823
|
+
type: z145.literal("Theme"),
|
|
4824
|
+
themeId: z145.string()
|
|
4831
4825
|
});
|
|
4832
|
-
var ElementViewColumn =
|
|
4826
|
+
var ElementViewColumn = z145.discriminatedUnion("type", [
|
|
4833
4827
|
ElementViewBasePropertyColumn,
|
|
4834
4828
|
ElementViewPropertyDefinitionColumn,
|
|
4835
4829
|
ElementViewThemeColumn
|
|
4836
4830
|
]);
|
|
4837
4831
|
|
|
4838
4832
|
// src/dsm/views/view.ts
|
|
4839
|
-
import { z as z145 } from "zod";
|
|
4840
|
-
var ElementView = z145.object({
|
|
4841
|
-
id: z145.string(),
|
|
4842
|
-
persistentId: z145.string(),
|
|
4843
|
-
designSystemVersionId: z145.string(),
|
|
4844
|
-
name: z145.string(),
|
|
4845
|
-
description: z145.string(),
|
|
4846
|
-
targetElementType: ElementPropertyTargetType,
|
|
4847
|
-
isDefault: z145.boolean()
|
|
4848
|
-
});
|
|
4849
|
-
|
|
4850
|
-
// src/dsm/brand.ts
|
|
4851
4833
|
import { z as z146 } from "zod";
|
|
4852
|
-
var
|
|
4834
|
+
var ElementView = z146.object({
|
|
4853
4835
|
id: z146.string(),
|
|
4854
|
-
designSystemVersionId: z146.string(),
|
|
4855
4836
|
persistentId: z146.string(),
|
|
4837
|
+
designSystemVersionId: z146.string(),
|
|
4856
4838
|
name: z146.string(),
|
|
4857
|
-
description: z146.string()
|
|
4839
|
+
description: z146.string(),
|
|
4840
|
+
targetElementType: ElementPropertyTargetType,
|
|
4841
|
+
isDefault: z146.boolean()
|
|
4858
4842
|
});
|
|
4859
4843
|
|
|
4860
|
-
// src/dsm/
|
|
4844
|
+
// src/dsm/brand.ts
|
|
4861
4845
|
import { z as z147 } from "zod";
|
|
4862
|
-
var
|
|
4863
|
-
var DesignSystemSwitcher = z147.object({
|
|
4864
|
-
isEnabled: z147.boolean(),
|
|
4865
|
-
designSystemIds: z147.array(z147.string())
|
|
4866
|
-
});
|
|
4867
|
-
var DesignSystem = z147.object({
|
|
4846
|
+
var Brand = z147.object({
|
|
4868
4847
|
id: z147.string(),
|
|
4869
|
-
|
|
4848
|
+
designSystemVersionId: z147.string(),
|
|
4849
|
+
persistentId: z147.string(),
|
|
4870
4850
|
name: z147.string(),
|
|
4871
|
-
description: z147.string()
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4851
|
+
description: z147.string()
|
|
4852
|
+
});
|
|
4853
|
+
|
|
4854
|
+
// src/dsm/design-system.ts
|
|
4855
|
+
import { z as z148 } from "zod";
|
|
4856
|
+
var DesignSystemAccessMode = z148.enum(["Open", "InviteOnly"]);
|
|
4857
|
+
var DesignSystemSwitcher = z148.object({
|
|
4858
|
+
isEnabled: z148.boolean(),
|
|
4859
|
+
designSystemIds: z148.array(z148.string())
|
|
4860
|
+
});
|
|
4861
|
+
var DesignSystem = z148.object({
|
|
4862
|
+
id: z148.string(),
|
|
4863
|
+
workspaceId: z148.string(),
|
|
4864
|
+
name: z148.string(),
|
|
4865
|
+
description: z148.string(),
|
|
4866
|
+
docExporterId: nullishToOptional(z148.string()),
|
|
4867
|
+
docSlug: z148.string(),
|
|
4868
|
+
docUserSlug: nullishToOptional(z148.string()),
|
|
4869
|
+
docSlugDeprecated: z148.string(),
|
|
4870
|
+
isMultibrand: z148.boolean(),
|
|
4871
|
+
docViewUrl: nullishToOptional(z148.string()),
|
|
4872
|
+
basePrefixes: z148.array(z148.string()),
|
|
4879
4873
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
4880
|
-
isApprovalFeatureEnabled:
|
|
4881
|
-
approvalRequiredForPublishing:
|
|
4874
|
+
isApprovalFeatureEnabled: z148.boolean(),
|
|
4875
|
+
approvalRequiredForPublishing: z148.boolean(),
|
|
4882
4876
|
accessMode: DesignSystemAccessMode,
|
|
4883
|
-
membersGenerated:
|
|
4884
|
-
createdAt:
|
|
4885
|
-
updatedAt:
|
|
4877
|
+
membersGenerated: z148.boolean(),
|
|
4878
|
+
createdAt: z148.coerce.date(),
|
|
4879
|
+
updatedAt: z148.coerce.date()
|
|
4886
4880
|
});
|
|
4887
4881
|
|
|
4888
4882
|
// src/dsm/exporter-property-values-collection.ts
|
|
4889
|
-
import { z as
|
|
4890
|
-
var ExporterPropertyImageValue =
|
|
4883
|
+
import { z as z149 } from "zod";
|
|
4884
|
+
var ExporterPropertyImageValue = z149.object({
|
|
4891
4885
|
asset: PageBlockAsset.optional(),
|
|
4892
|
-
assetId:
|
|
4893
|
-
assetUrl:
|
|
4894
|
-
});
|
|
4895
|
-
var ExporterConfigurationPropertyValue =
|
|
4896
|
-
key:
|
|
4897
|
-
value:
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4886
|
+
assetId: z149.string().optional(),
|
|
4887
|
+
assetUrl: z149.string().optional()
|
|
4888
|
+
});
|
|
4889
|
+
var ExporterConfigurationPropertyValue = z149.object({
|
|
4890
|
+
key: z149.string(),
|
|
4891
|
+
value: z149.union([
|
|
4892
|
+
z149.number(),
|
|
4893
|
+
z149.string(),
|
|
4894
|
+
z149.boolean(),
|
|
4901
4895
|
ExporterPropertyImageValue,
|
|
4902
4896
|
ColorTokenData,
|
|
4903
4897
|
TypographyTokenData
|
|
4904
4898
|
])
|
|
4905
4899
|
});
|
|
4906
|
-
var ExporterPropertyValuesCollection =
|
|
4907
|
-
id:
|
|
4908
|
-
designSystemId:
|
|
4909
|
-
exporterId:
|
|
4910
|
-
values:
|
|
4900
|
+
var ExporterPropertyValuesCollection = z149.object({
|
|
4901
|
+
id: z149.string(),
|
|
4902
|
+
designSystemId: z149.string(),
|
|
4903
|
+
exporterId: z149.string(),
|
|
4904
|
+
values: z149.array(ExporterConfigurationPropertyValue)
|
|
4911
4905
|
});
|
|
4912
4906
|
|
|
4913
4907
|
// 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(
|
|
4908
|
+
import { z as z150 } from "zod";
|
|
4909
|
+
var PublishedDocPageVisitsEntry = z150.object({
|
|
4910
|
+
id: z150.string(),
|
|
4911
|
+
versionId: z150.string(),
|
|
4912
|
+
pagePersistentId: z150.string(),
|
|
4913
|
+
locale: z150.string().optional(),
|
|
4914
|
+
timestamp: z150.coerce.date(),
|
|
4915
|
+
visits: z150.number(),
|
|
4916
|
+
userId: nullishToOptional(z150.string()),
|
|
4917
|
+
anonymousId: nullishToOptional(z150.string())
|
|
4924
4918
|
});
|
|
4925
4919
|
|
|
4926
4920
|
// src/dsm/published-doc-page.ts
|
|
4927
|
-
import { z as
|
|
4921
|
+
import { z as z151 } from "zod";
|
|
4928
4922
|
var SHORT_PERSISTENT_ID_LENGTH = 8;
|
|
4929
4923
|
function tryParseShortPersistentId(url = "/") {
|
|
4930
4924
|
const lastUrlPart = url.split("/").pop() || "";
|
|
4931
4925
|
const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
|
|
4932
4926
|
return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
|
|
4933
4927
|
}
|
|
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:
|
|
4928
|
+
var PublishedDocPage = z151.object({
|
|
4929
|
+
id: z151.string(),
|
|
4930
|
+
publishedDocId: z151.string(),
|
|
4931
|
+
pageShortPersistentId: z151.string(),
|
|
4932
|
+
pagePersistentId: z151.string().optional(),
|
|
4933
|
+
pathV1: z151.string(),
|
|
4934
|
+
pathV2: z151.string(),
|
|
4935
|
+
storagePath: z151.string(),
|
|
4936
|
+
locale: z151.string().optional(),
|
|
4937
|
+
isPrivate: z151.boolean(),
|
|
4938
|
+
isHidden: z151.boolean(),
|
|
4939
|
+
createdAt: z151.coerce.date(),
|
|
4940
|
+
updatedAt: z151.coerce.date()
|
|
4947
4941
|
});
|
|
4948
4942
|
|
|
4949
4943
|
// src/dsm/published-doc.ts
|
|
4950
|
-
import { z as
|
|
4944
|
+
import { z as z152 } from "zod";
|
|
4951
4945
|
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:
|
|
4946
|
+
var PublishedDocEnvironment = z152.enum(publishedDocEnvironments);
|
|
4947
|
+
var PublishedDocsChecksums = z152.record(z152.string());
|
|
4948
|
+
var PublishedDocRoutingVersion = z152.enum(["1", "2"]);
|
|
4949
|
+
var PublishedDoc = z152.object({
|
|
4950
|
+
id: z152.string(),
|
|
4951
|
+
designSystemVersionId: z152.string(),
|
|
4952
|
+
createdAt: z152.coerce.date(),
|
|
4953
|
+
updatedAt: z152.coerce.date(),
|
|
4954
|
+
lastPublishedAt: z152.coerce.date(),
|
|
4955
|
+
isDefault: z152.boolean(),
|
|
4956
|
+
isPublic: z152.boolean(),
|
|
4963
4957
|
environment: PublishedDocEnvironment,
|
|
4964
4958
|
checksums: PublishedDocsChecksums,
|
|
4965
|
-
storagePath:
|
|
4966
|
-
wasMigrated:
|
|
4959
|
+
storagePath: z152.string(),
|
|
4960
|
+
wasMigrated: z152.boolean(),
|
|
4967
4961
|
routingVersion: PublishedDocRoutingVersion,
|
|
4968
|
-
usesLocalizations:
|
|
4969
|
-
wasPublishedWithLocalizations:
|
|
4970
|
-
tokenCount:
|
|
4971
|
-
assetCount:
|
|
4962
|
+
usesLocalizations: z152.boolean(),
|
|
4963
|
+
wasPublishedWithLocalizations: z152.boolean(),
|
|
4964
|
+
tokenCount: z152.number(),
|
|
4965
|
+
assetCount: z152.number()
|
|
4966
|
+
});
|
|
4967
|
+
|
|
4968
|
+
// src/dsm/storybook-entry.ts
|
|
4969
|
+
import { z as z153 } from "zod";
|
|
4970
|
+
var StorybookEntryOrigin = z153.object({
|
|
4971
|
+
id: z153.string(),
|
|
4972
|
+
type: z153.enum(["story", "docs"]),
|
|
4973
|
+
name: z153.string(),
|
|
4974
|
+
title: z153.string()
|
|
4975
|
+
// Same as 'kind' for v3
|
|
4976
|
+
});
|
|
4977
|
+
var StorybookEntry = z153.object({
|
|
4978
|
+
id: z153.string(),
|
|
4979
|
+
storyId: z153.string(),
|
|
4980
|
+
designSystemId: z153.string(),
|
|
4981
|
+
sourceId: z153.string(),
|
|
4982
|
+
aliases: z153.array(z153.string()).optional(),
|
|
4983
|
+
url: z153.string(),
|
|
4984
|
+
isDeleted: z153.boolean().optional(),
|
|
4985
|
+
origin: StorybookEntryOrigin,
|
|
4986
|
+
createdAt: z153.coerce.date(),
|
|
4987
|
+
updatedAt: z153.coerce.date()
|
|
4988
|
+
});
|
|
4989
|
+
|
|
4990
|
+
// src/dsm/storybook-payload.ts
|
|
4991
|
+
import { z as z154 } from "zod";
|
|
4992
|
+
var StorybookPayload = z154.object({
|
|
4993
|
+
id: z154.string(),
|
|
4994
|
+
designSystemId: z154.string(),
|
|
4995
|
+
sourceId: z154.string(),
|
|
4996
|
+
payload: z154.any(),
|
|
4997
|
+
createdAt: z154.coerce.date(),
|
|
4998
|
+
updatedAt: z154.coerce.date()
|
|
4972
4999
|
});
|
|
4973
5000
|
|
|
4974
5001
|
// 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(
|
|
5002
|
+
import { z as z155 } from "zod";
|
|
5003
|
+
var DesignSystemVersion = z155.object({
|
|
5004
|
+
id: z155.string(),
|
|
5005
|
+
version: z155.string(),
|
|
5006
|
+
createdAt: z155.coerce.date(),
|
|
5007
|
+
designSystemId: z155.string(),
|
|
5008
|
+
name: z155.string(),
|
|
5009
|
+
comment: z155.string(),
|
|
5010
|
+
isReadonly: z155.boolean(),
|
|
5011
|
+
changeLog: z155.string(),
|
|
5012
|
+
parentId: z155.string().optional(),
|
|
5013
|
+
isDraftsFeatureAdopted: z155.boolean()
|
|
5014
|
+
});
|
|
5015
|
+
var VersionCreationJobStatus = z155.enum(["Success", "InProgress", "Error"]);
|
|
5016
|
+
var VersionCreationJob = z155.object({
|
|
5017
|
+
id: z155.string(),
|
|
5018
|
+
version: z155.string(),
|
|
5019
|
+
designSystemId: z155.string(),
|
|
5020
|
+
designSystemVersionId: nullishToOptional(z155.string()),
|
|
4994
5021
|
status: VersionCreationJobStatus,
|
|
4995
|
-
errorMessage: nullishToOptional(
|
|
5022
|
+
errorMessage: nullishToOptional(z155.string())
|
|
4996
5023
|
});
|
|
4997
5024
|
|
|
4998
5025
|
// src/export/export-destinations.ts
|
|
4999
5026
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
5000
5027
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
5001
|
-
var ExportJobDocumentationChanges =
|
|
5002
|
-
pagePersistentIds:
|
|
5003
|
-
groupPersistentIds:
|
|
5028
|
+
var ExportJobDocumentationChanges = z156.object({
|
|
5029
|
+
pagePersistentIds: z156.string().array(),
|
|
5030
|
+
groupPersistentIds: z156.string().array()
|
|
5004
5031
|
});
|
|
5005
|
-
var ExporterDestinationDocs =
|
|
5032
|
+
var ExporterDestinationDocs = z156.object({
|
|
5006
5033
|
environment: PublishedDocEnvironment,
|
|
5007
5034
|
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
5008
5035
|
});
|
|
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:
|
|
5036
|
+
var GitCommonDestinationOptions = z156.object({
|
|
5037
|
+
branch: z156.string(),
|
|
5038
|
+
relativePath: nullishToOptional(z156.string()),
|
|
5039
|
+
purgeDirectory: nullishToOptional(z156.boolean()),
|
|
5040
|
+
commitAuthorName: nullishToOptional(z156.string()),
|
|
5041
|
+
commitAuthorEmail: nullishToOptional(z156.string()),
|
|
5042
|
+
commitMessage: nullishToOptional(z156.string()),
|
|
5043
|
+
pullRequestTitle: nullishToOptional(z156.string()),
|
|
5044
|
+
pullRequestDescription: nullishToOptional(z156.string())
|
|
5045
|
+
});
|
|
5046
|
+
var ExporterDestinationS3 = z156.object({});
|
|
5047
|
+
var ExporterDestinationGithub = z156.object({
|
|
5048
|
+
credentialId: z156.string().optional(),
|
|
5022
5049
|
// Repository
|
|
5023
|
-
url:
|
|
5050
|
+
url: z156.string(),
|
|
5024
5051
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
5025
|
-
connectionId: nullishToOptional(
|
|
5026
|
-
userId: nullishToOptional(
|
|
5052
|
+
connectionId: nullishToOptional(z156.string()),
|
|
5053
|
+
userId: nullishToOptional(z156.number())
|
|
5027
5054
|
}).extend(GitCommonDestinationOptions.shape);
|
|
5028
|
-
var ExporterDestinationAzure =
|
|
5029
|
-
credentialId:
|
|
5055
|
+
var ExporterDestinationAzure = z156.object({
|
|
5056
|
+
credentialId: z156.string().optional(),
|
|
5030
5057
|
// Repository
|
|
5031
|
-
organizationId:
|
|
5032
|
-
projectId:
|
|
5033
|
-
repositoryId:
|
|
5058
|
+
organizationId: z156.string(),
|
|
5059
|
+
projectId: z156.string(),
|
|
5060
|
+
repositoryId: z156.string(),
|
|
5034
5061
|
// Maybe not needed
|
|
5035
|
-
url: nullishToOptional(
|
|
5062
|
+
url: nullishToOptional(z156.string()),
|
|
5036
5063
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
5037
|
-
connectionId: nullishToOptional(
|
|
5038
|
-
userId: nullishToOptional(
|
|
5064
|
+
connectionId: nullishToOptional(z156.string()),
|
|
5065
|
+
userId: nullishToOptional(z156.number())
|
|
5039
5066
|
}).extend(GitCommonDestinationOptions.shape);
|
|
5040
|
-
var ExporterDestinationGitlab =
|
|
5041
|
-
credentialId:
|
|
5067
|
+
var ExporterDestinationGitlab = z156.object({
|
|
5068
|
+
credentialId: z156.string().optional(),
|
|
5042
5069
|
// Repository
|
|
5043
|
-
projectId:
|
|
5070
|
+
projectId: z156.string(),
|
|
5044
5071
|
// Maybe not needed
|
|
5045
|
-
url: nullishToOptional(
|
|
5072
|
+
url: nullishToOptional(z156.string()),
|
|
5046
5073
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
5047
|
-
connectionId: nullishToOptional(
|
|
5048
|
-
userId: nullishToOptional(
|
|
5074
|
+
connectionId: nullishToOptional(z156.string()),
|
|
5075
|
+
userId: nullishToOptional(z156.number())
|
|
5049
5076
|
}).extend(GitCommonDestinationOptions.shape);
|
|
5050
|
-
var ExporterDestinationBitbucket =
|
|
5051
|
-
credentialId:
|
|
5077
|
+
var ExporterDestinationBitbucket = z156.object({
|
|
5078
|
+
credentialId: z156.string().optional(),
|
|
5052
5079
|
// Repository
|
|
5053
|
-
workspaceSlug:
|
|
5054
|
-
projectKey:
|
|
5055
|
-
repoSlug:
|
|
5056
|
-
url: nullishToOptional(
|
|
5080
|
+
workspaceSlug: z156.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
5081
|
+
projectKey: z156.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
5082
|
+
repoSlug: z156.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
5083
|
+
url: nullishToOptional(z156.string()),
|
|
5057
5084
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
5058
|
-
connectionId: nullishToOptional(
|
|
5059
|
-
userId: nullishToOptional(
|
|
5085
|
+
connectionId: nullishToOptional(z156.string()),
|
|
5086
|
+
userId: nullishToOptional(z156.number())
|
|
5060
5087
|
}).extend(GitCommonDestinationOptions.shape);
|
|
5061
|
-
var ExportDestinationsMap =
|
|
5062
|
-
webhookUrl:
|
|
5088
|
+
var ExportDestinationsMap = z156.object({
|
|
5089
|
+
webhookUrl: z156.string().optional(),
|
|
5063
5090
|
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
5064
5091
|
destinationS3: ExporterDestinationS3.optional(),
|
|
5065
5092
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -5067,8 +5094,8 @@ var ExportDestinationsMap = z153.object({
|
|
|
5067
5094
|
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
5068
5095
|
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
5069
5096
|
});
|
|
5070
|
-
var ExportDestinationsMapUpdate =
|
|
5071
|
-
webhookUrl:
|
|
5097
|
+
var ExportDestinationsMapUpdate = z156.object({
|
|
5098
|
+
webhookUrl: z156.string().nullish(),
|
|
5072
5099
|
destinationSnDocs: ExporterDestinationDocs.nullish(),
|
|
5073
5100
|
destinationS3: ExporterDestinationS3.nullish(),
|
|
5074
5101
|
destinationGithub: ExporterDestinationGithub.nullish(),
|
|
@@ -5078,115 +5105,115 @@ var ExportDestinationsMapUpdate = z153.object({
|
|
|
5078
5105
|
});
|
|
5079
5106
|
|
|
5080
5107
|
// src/export/pipeline.ts
|
|
5081
|
-
var PipelineEventType =
|
|
5082
|
-
var PipelineDestinationGitType =
|
|
5083
|
-
var PipelineDestinationExtraType =
|
|
5084
|
-
var PipelineDestinationType =
|
|
5085
|
-
var Pipeline =
|
|
5086
|
-
id:
|
|
5087
|
-
name:
|
|
5108
|
+
var PipelineEventType = z157.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
5109
|
+
var PipelineDestinationGitType = z157.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
5110
|
+
var PipelineDestinationExtraType = z157.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
5111
|
+
var PipelineDestinationType = z157.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
5112
|
+
var Pipeline = z157.object({
|
|
5113
|
+
id: z157.string(),
|
|
5114
|
+
name: z157.string(),
|
|
5088
5115
|
eventType: PipelineEventType,
|
|
5089
|
-
isEnabled:
|
|
5090
|
-
workspaceId:
|
|
5091
|
-
designSystemId:
|
|
5092
|
-
exporterId:
|
|
5093
|
-
brandPersistentId:
|
|
5094
|
-
themePersistentId:
|
|
5095
|
-
themePersistentIds:
|
|
5116
|
+
isEnabled: z157.boolean(),
|
|
5117
|
+
workspaceId: z157.string(),
|
|
5118
|
+
designSystemId: z157.string(),
|
|
5119
|
+
exporterId: z157.string(),
|
|
5120
|
+
brandPersistentId: z157.string().optional(),
|
|
5121
|
+
themePersistentId: z157.string().optional(),
|
|
5122
|
+
themePersistentIds: z157.string().array().optional(),
|
|
5096
5123
|
exporterPropertyValues: ExporterPropertyValueMap.optional(),
|
|
5097
|
-
isExporterDeprecated:
|
|
5124
|
+
isExporterDeprecated: z157.boolean(),
|
|
5098
5125
|
// Destinations
|
|
5099
5126
|
...ExportDestinationsMap.shape
|
|
5100
5127
|
});
|
|
5101
5128
|
|
|
5102
5129
|
// src/data-dumps/code-integration-dump.ts
|
|
5103
|
-
var ExportJobDump =
|
|
5104
|
-
id:
|
|
5105
|
-
createdAt:
|
|
5106
|
-
finishedAt:
|
|
5107
|
-
exportArtefacts:
|
|
5130
|
+
var ExportJobDump = z158.object({
|
|
5131
|
+
id: z158.string(),
|
|
5132
|
+
createdAt: z158.coerce.date(),
|
|
5133
|
+
finishedAt: z158.coerce.date(),
|
|
5134
|
+
exportArtefacts: z158.string()
|
|
5108
5135
|
});
|
|
5109
|
-
var CodeIntegrationDump =
|
|
5136
|
+
var CodeIntegrationDump = z158.object({
|
|
5110
5137
|
exporters: Exporter.array(),
|
|
5111
5138
|
pipelines: Pipeline.array(),
|
|
5112
5139
|
exportJobs: ExportJobDump.array()
|
|
5113
5140
|
});
|
|
5114
5141
|
|
|
5115
5142
|
// src/data-dumps/design-system-dump.ts
|
|
5116
|
-
import { z as
|
|
5143
|
+
import { z as z165 } from "zod";
|
|
5117
5144
|
|
|
5118
5145
|
// src/data-dumps/design-system-version-dump.ts
|
|
5119
|
-
import { z as
|
|
5146
|
+
import { z as z164 } from "zod";
|
|
5120
5147
|
|
|
5121
5148
|
// src/liveblocks/rooms/design-system-version-room.ts
|
|
5122
|
-
import { z as
|
|
5149
|
+
import { z as z159 } from "zod";
|
|
5123
5150
|
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:
|
|
5151
|
+
designSystemVersionId: z159.string(),
|
|
5152
|
+
liveblocksId: z159.string()
|
|
5153
|
+
});
|
|
5154
|
+
var DesignSystemVersionRoomInternalSettings = z159.object({
|
|
5155
|
+
routingVersion: z159.string(),
|
|
5156
|
+
isDraftFeatureAdopted: z159.boolean(),
|
|
5157
|
+
isApprovalFeatureEnabled: z159.boolean(),
|
|
5158
|
+
approvalRequiredForPublishing: z159.boolean()
|
|
5159
|
+
});
|
|
5160
|
+
var DesignSystemVersionRoomInitialState = z159.object({
|
|
5161
|
+
pages: z159.array(DocumentationPageV2),
|
|
5162
|
+
groups: z159.array(ElementGroup),
|
|
5163
|
+
pageSnapshots: z159.array(DocumentationPageSnapshot),
|
|
5164
|
+
groupSnapshots: z159.array(ElementGroupSnapshot),
|
|
5165
|
+
pageApprovals: z159.array(DocumentationPageApproval),
|
|
5139
5166
|
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:
|
|
5167
|
+
pageHashes: z159.record(z159.string()).optional()
|
|
5168
|
+
});
|
|
5169
|
+
var DesignSystemVersionRoomUpdate = z159.object({
|
|
5170
|
+
pages: z159.array(DocumentationPageV2),
|
|
5171
|
+
groups: z159.array(ElementGroup),
|
|
5172
|
+
pageIdsToDelete: z159.array(z159.string()),
|
|
5173
|
+
groupIdsToDelete: z159.array(z159.string()),
|
|
5174
|
+
pageSnapshots: z159.array(DocumentationPageSnapshot),
|
|
5175
|
+
groupSnapshots: z159.array(ElementGroupSnapshot),
|
|
5176
|
+
pageSnapshotIdsToDelete: z159.array(z159.string()),
|
|
5177
|
+
groupSnapshotIdsToDelete: z159.array(z159.string()),
|
|
5178
|
+
pageHashesToUpdate: z159.record(z159.string(), z159.string()),
|
|
5179
|
+
pageApprovals: z159.array(DocumentationPageApproval),
|
|
5180
|
+
pageApprovalIdsToDelete: z159.array(z159.string()),
|
|
5181
|
+
executedTransactionIds: z159.array(z159.string())
|
|
5155
5182
|
});
|
|
5156
5183
|
|
|
5157
5184
|
// src/liveblocks/rooms/documentation-page-room.ts
|
|
5158
|
-
import { z as
|
|
5185
|
+
import { z as z160 } from "zod";
|
|
5159
5186
|
var DocumentationPageRoom = Entity.extend({
|
|
5160
|
-
designSystemVersionId:
|
|
5161
|
-
documentationPageId:
|
|
5162
|
-
liveblocksId:
|
|
5163
|
-
isDirty:
|
|
5187
|
+
designSystemVersionId: z160.string(),
|
|
5188
|
+
documentationPageId: z160.string(),
|
|
5189
|
+
liveblocksId: z160.string(),
|
|
5190
|
+
isDirty: z160.boolean()
|
|
5164
5191
|
});
|
|
5165
|
-
var DocumentationPageRoomState =
|
|
5166
|
-
pageItems:
|
|
5192
|
+
var DocumentationPageRoomState = z160.object({
|
|
5193
|
+
pageItems: z160.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
5167
5194
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
5168
5195
|
});
|
|
5169
|
-
var DocumentationPageRoomRoomUpdate =
|
|
5196
|
+
var DocumentationPageRoomRoomUpdate = z160.object({
|
|
5170
5197
|
page: DocumentationPageV2,
|
|
5171
5198
|
pageParent: ElementGroup
|
|
5172
5199
|
});
|
|
5173
5200
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
5174
|
-
pageItems:
|
|
5175
|
-
blockDefinitions:
|
|
5201
|
+
pageItems: z160.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
5202
|
+
blockDefinitions: z160.array(PageBlockDefinition)
|
|
5176
5203
|
});
|
|
5177
|
-
var RestoredDocumentationPage =
|
|
5204
|
+
var RestoredDocumentationPage = z160.object({
|
|
5178
5205
|
page: DocumentationPageV2,
|
|
5179
5206
|
pageParent: ElementGroup,
|
|
5180
5207
|
pageContent: DocumentationPageContentData,
|
|
5181
|
-
contentHash:
|
|
5208
|
+
contentHash: z160.string()
|
|
5182
5209
|
});
|
|
5183
|
-
var RestoredDocumentationGroup =
|
|
5210
|
+
var RestoredDocumentationGroup = z160.object({
|
|
5184
5211
|
group: ElementGroup,
|
|
5185
5212
|
parent: ElementGroup
|
|
5186
5213
|
});
|
|
5187
5214
|
|
|
5188
5215
|
// src/liveblocks/rooms/room-type.ts
|
|
5189
|
-
import { z as
|
|
5216
|
+
import { z as z161 } from "zod";
|
|
5190
5217
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
5191
5218
|
RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
|
|
5192
5219
|
RoomTypeEnum2["DocumentationPage"] = "doc-page";
|
|
@@ -5194,36 +5221,36 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
|
5194
5221
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
5195
5222
|
return RoomTypeEnum2;
|
|
5196
5223
|
})(RoomTypeEnum || {});
|
|
5197
|
-
var RoomTypeSchema =
|
|
5224
|
+
var RoomTypeSchema = z161.nativeEnum(RoomTypeEnum);
|
|
5198
5225
|
var RoomType = RoomTypeSchema.enum;
|
|
5199
5226
|
|
|
5200
5227
|
// src/liveblocks/rooms/workspace-room.ts
|
|
5201
|
-
import { z as
|
|
5228
|
+
import { z as z162 } from "zod";
|
|
5202
5229
|
var WorkspaceRoom = Entity.extend({
|
|
5203
|
-
workspaceId:
|
|
5204
|
-
liveblocksId:
|
|
5230
|
+
workspaceId: z162.string(),
|
|
5231
|
+
liveblocksId: z162.string()
|
|
5205
5232
|
});
|
|
5206
5233
|
|
|
5207
5234
|
// src/data-dumps/published-docs-dump.ts
|
|
5208
|
-
import { z as
|
|
5209
|
-
var PublishedDocsDump =
|
|
5235
|
+
import { z as z163 } from "zod";
|
|
5236
|
+
var PublishedDocsDump = z163.object({
|
|
5210
5237
|
documentation: PublishedDoc,
|
|
5211
5238
|
pages: PublishedDocPage.array()
|
|
5212
5239
|
});
|
|
5213
5240
|
|
|
5214
5241
|
// src/data-dumps/design-system-version-dump.ts
|
|
5215
|
-
var DocumentationThreadDump =
|
|
5242
|
+
var DocumentationThreadDump = z164.object({
|
|
5216
5243
|
thread: DocumentationCommentThread,
|
|
5217
5244
|
comments: DocumentationComment.array()
|
|
5218
5245
|
});
|
|
5219
|
-
var DocumentationPageRoomDump =
|
|
5246
|
+
var DocumentationPageRoomDump = z164.object({
|
|
5220
5247
|
room: DocumentationPageRoom,
|
|
5221
5248
|
threads: DocumentationThreadDump.array()
|
|
5222
5249
|
});
|
|
5223
|
-
var DesignSystemVersionMultiplayerDump =
|
|
5250
|
+
var DesignSystemVersionMultiplayerDump = z164.object({
|
|
5224
5251
|
documentationPages: DocumentationPageRoomDump.array()
|
|
5225
5252
|
});
|
|
5226
|
-
var DesignSystemVersionDump =
|
|
5253
|
+
var DesignSystemVersionDump = z164.object({
|
|
5227
5254
|
version: DesignSystemVersion,
|
|
5228
5255
|
brands: Brand.array(),
|
|
5229
5256
|
elements: DesignElement.array(),
|
|
@@ -5238,7 +5265,7 @@ var DesignSystemVersionDump = z161.object({
|
|
|
5238
5265
|
});
|
|
5239
5266
|
|
|
5240
5267
|
// src/data-dumps/design-system-dump.ts
|
|
5241
|
-
var DesignSystemDump =
|
|
5268
|
+
var DesignSystemDump = z165.object({
|
|
5242
5269
|
designSystem: DesignSystem,
|
|
5243
5270
|
dataSources: DataSource.array(),
|
|
5244
5271
|
versions: DesignSystemVersionDump.array(),
|
|
@@ -5247,50 +5274,50 @@ var DesignSystemDump = z162.object({
|
|
|
5247
5274
|
});
|
|
5248
5275
|
|
|
5249
5276
|
// src/data-dumps/user-data-dump.ts
|
|
5250
|
-
import { z as
|
|
5277
|
+
import { z as z168 } from "zod";
|
|
5251
5278
|
|
|
5252
5279
|
// src/data-dumps/workspace-dump.ts
|
|
5253
|
-
import { z as
|
|
5280
|
+
import { z as z167 } from "zod";
|
|
5254
5281
|
|
|
5255
5282
|
// 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:
|
|
5283
|
+
import { z as z166 } from "zod";
|
|
5284
|
+
var IntegrationDesignSystem = z166.object({
|
|
5285
|
+
designSystemId: z166.string(),
|
|
5286
|
+
brandId: z166.string(),
|
|
5287
|
+
title: z166.string().optional(),
|
|
5288
|
+
userId: z166.string().optional(),
|
|
5289
|
+
date: z166.coerce.date().optional()
|
|
5290
|
+
});
|
|
5291
|
+
var IntegrationCredentialsType = z166.enum(["OAuth2", "PAT"]);
|
|
5292
|
+
var IntegrationCredentialsState = z166.enum(["Active", "Inactive"]);
|
|
5293
|
+
var IntegrationCredentialsProfile = z166.object({
|
|
5294
|
+
id: nullishToOptional(z166.string()),
|
|
5295
|
+
email: nullishToOptional(z166.string()),
|
|
5296
|
+
handle: nullishToOptional(z166.string()),
|
|
5297
|
+
type: nullishToOptional(z166.string()),
|
|
5298
|
+
avatarUrl: nullishToOptional(z166.string()),
|
|
5299
|
+
organization: nullishToOptional(z166.string()),
|
|
5300
|
+
collection: nullishToOptional(z166.string())
|
|
5301
|
+
});
|
|
5302
|
+
var IntegrationCredentials = z166.object({
|
|
5303
|
+
id: z166.string(),
|
|
5277
5304
|
type: IntegrationCredentialsType,
|
|
5278
|
-
integrationId:
|
|
5279
|
-
accessToken:
|
|
5280
|
-
userId:
|
|
5281
|
-
createdAt:
|
|
5282
|
-
refreshToken:
|
|
5283
|
-
tokenName:
|
|
5284
|
-
expiresAt:
|
|
5285
|
-
refreshedAt:
|
|
5286
|
-
username:
|
|
5287
|
-
appInstallationId:
|
|
5305
|
+
integrationId: z166.string(),
|
|
5306
|
+
accessToken: z166.string(),
|
|
5307
|
+
userId: z166.string(),
|
|
5308
|
+
createdAt: z166.coerce.date(),
|
|
5309
|
+
refreshToken: z166.string().optional(),
|
|
5310
|
+
tokenName: z166.string().optional(),
|
|
5311
|
+
expiresAt: z166.coerce.date().optional(),
|
|
5312
|
+
refreshedAt: z166.coerce.date().optional(),
|
|
5313
|
+
username: z166.string().optional(),
|
|
5314
|
+
appInstallationId: z166.string().optional(),
|
|
5288
5315
|
profile: IntegrationCredentialsProfile.optional(),
|
|
5289
|
-
customUrl:
|
|
5316
|
+
customUrl: z166.string().optional(),
|
|
5290
5317
|
state: IntegrationCredentialsState,
|
|
5291
5318
|
user: UserMinified.optional()
|
|
5292
5319
|
});
|
|
5293
|
-
var ExtendedIntegrationType =
|
|
5320
|
+
var ExtendedIntegrationType = z166.enum([
|
|
5294
5321
|
"Figma",
|
|
5295
5322
|
"Github",
|
|
5296
5323
|
"Gitlab",
|
|
@@ -5301,28 +5328,27 @@ var ExtendedIntegrationType = z163.enum([
|
|
|
5301
5328
|
]);
|
|
5302
5329
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
5303
5330
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
5304
|
-
var Integration =
|
|
5305
|
-
id:
|
|
5306
|
-
workspaceId:
|
|
5331
|
+
var Integration = z166.object({
|
|
5332
|
+
id: z166.string(),
|
|
5333
|
+
workspaceId: z166.string(),
|
|
5307
5334
|
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:
|
|
5335
|
+
createdAt: z166.coerce.date(),
|
|
5336
|
+
integrationCredentials: z166.array(IntegrationCredentials).optional()
|
|
5337
|
+
});
|
|
5338
|
+
var IntegrationToken = z166.object({
|
|
5339
|
+
access_token: z166.string(),
|
|
5340
|
+
refresh_token: z166.string().optional(),
|
|
5341
|
+
expires_in: z166.union([z166.number().optional(), z166.string().optional()]),
|
|
5342
|
+
token_type: z166.string().optional(),
|
|
5343
|
+
token_name: z166.string().optional(),
|
|
5344
|
+
token_azure_organization_name: z166.string().optional(),
|
|
5318
5345
|
// Azure Cloud PAT only
|
|
5319
|
-
token_azure_collection_name:
|
|
5346
|
+
token_azure_collection_name: z166.string().optional(),
|
|
5320
5347
|
// Azure Server PAT only
|
|
5321
|
-
token_bitbucket_username:
|
|
5348
|
+
token_bitbucket_username: z166.string().optional(),
|
|
5322
5349
|
// Bitbucket only
|
|
5323
|
-
custom_url:
|
|
5324
|
-
if (!value?.trim())
|
|
5325
|
-
return void 0;
|
|
5350
|
+
custom_url: z166.string().optional().transform((value) => {
|
|
5351
|
+
if (!value?.trim()) return void 0;
|
|
5326
5352
|
return formatCustomUrl(value);
|
|
5327
5353
|
})
|
|
5328
5354
|
}).refine((data) => {
|
|
@@ -5358,7 +5384,7 @@ function formatCustomUrl(url) {
|
|
|
5358
5384
|
}
|
|
5359
5385
|
|
|
5360
5386
|
// src/data-dumps/workspace-dump.ts
|
|
5361
|
-
var WorkspaceDump =
|
|
5387
|
+
var WorkspaceDump = z167.object({
|
|
5362
5388
|
workspace: Workspace,
|
|
5363
5389
|
designSystems: DesignSystemDump.array(),
|
|
5364
5390
|
codeIntegration: CodeIntegrationDump,
|
|
@@ -5366,124 +5392,124 @@ var WorkspaceDump = z164.object({
|
|
|
5366
5392
|
});
|
|
5367
5393
|
|
|
5368
5394
|
// src/data-dumps/user-data-dump.ts
|
|
5369
|
-
var UserDump =
|
|
5395
|
+
var UserDump = z168.object({
|
|
5370
5396
|
user: User,
|
|
5371
5397
|
workspaces: WorkspaceDump.array()
|
|
5372
5398
|
});
|
|
5373
5399
|
|
|
5374
5400
|
// src/docs-server/session.ts
|
|
5375
|
-
import { z as
|
|
5376
|
-
var NpmProxyToken =
|
|
5377
|
-
access:
|
|
5378
|
-
expiresAt:
|
|
5401
|
+
import { z as z169 } from "zod";
|
|
5402
|
+
var NpmProxyToken = z169.object({
|
|
5403
|
+
access: z169.string(),
|
|
5404
|
+
expiresAt: z169.number()
|
|
5379
5405
|
});
|
|
5380
|
-
var SessionData =
|
|
5381
|
-
returnToUrl:
|
|
5406
|
+
var SessionData = z169.object({
|
|
5407
|
+
returnToUrl: z169.string().optional(),
|
|
5382
5408
|
npmProxyToken: NpmProxyToken.optional()
|
|
5383
5409
|
});
|
|
5384
|
-
var Session =
|
|
5385
|
-
id:
|
|
5386
|
-
expiresAt:
|
|
5387
|
-
userId:
|
|
5388
|
-
anonymousId:
|
|
5410
|
+
var Session = z169.object({
|
|
5411
|
+
id: z169.string(),
|
|
5412
|
+
expiresAt: z169.coerce.date(),
|
|
5413
|
+
userId: z169.string().nullable(),
|
|
5414
|
+
anonymousId: z169.string().nullable(),
|
|
5389
5415
|
data: SessionData
|
|
5390
5416
|
});
|
|
5391
|
-
var AuthTokens =
|
|
5392
|
-
access:
|
|
5393
|
-
refresh:
|
|
5417
|
+
var AuthTokens = z169.object({
|
|
5418
|
+
access: z169.string(),
|
|
5419
|
+
refresh: z169.string()
|
|
5394
5420
|
});
|
|
5395
|
-
var UserSession =
|
|
5421
|
+
var UserSession = z169.object({
|
|
5396
5422
|
session: Session,
|
|
5397
5423
|
user: User.nullable()
|
|
5398
5424
|
});
|
|
5399
5425
|
|
|
5400
5426
|
// src/emails/design-system-invite.ts
|
|
5401
|
-
import { z as
|
|
5402
|
-
var DesignSystemInviteEmailRecipient =
|
|
5403
|
-
email:
|
|
5427
|
+
import { z as z170 } from "zod";
|
|
5428
|
+
var DesignSystemInviteEmailRecipient = z170.object({
|
|
5429
|
+
email: z170.string(),
|
|
5404
5430
|
role: WorkspaceRoleSchema
|
|
5405
5431
|
});
|
|
5406
|
-
var DesignSystemInviteEmailData =
|
|
5432
|
+
var DesignSystemInviteEmailData = z170.object({
|
|
5407
5433
|
workspace: Workspace,
|
|
5408
5434
|
designSystem: DesignSystem,
|
|
5409
5435
|
invitedBy: User,
|
|
5410
|
-
documentationDomain:
|
|
5436
|
+
documentationDomain: z170.string().optional()
|
|
5411
5437
|
});
|
|
5412
5438
|
|
|
5413
5439
|
// src/emails/workspace-invite.ts
|
|
5414
|
-
import { z as
|
|
5415
|
-
var WorkspaceInviteEmailRecipient =
|
|
5416
|
-
email:
|
|
5440
|
+
import { z as z171 } from "zod";
|
|
5441
|
+
var WorkspaceInviteEmailRecipient = z171.object({
|
|
5442
|
+
email: z171.string(),
|
|
5417
5443
|
role: WorkspaceRoleSchema
|
|
5418
5444
|
});
|
|
5419
|
-
var WorkspaceInviteEmailData =
|
|
5445
|
+
var WorkspaceInviteEmailData = z171.object({
|
|
5420
5446
|
workspace: Workspace,
|
|
5421
5447
|
invitedBy: User,
|
|
5422
|
-
documentationDomain:
|
|
5448
|
+
documentationDomain: z171.string().optional()
|
|
5423
5449
|
});
|
|
5424
5450
|
|
|
5425
5451
|
// src/events/base.ts
|
|
5426
|
-
import { z as
|
|
5452
|
+
import { z as z174 } from "zod";
|
|
5427
5453
|
|
|
5428
5454
|
// src/events/data-source-imported.ts
|
|
5429
|
-
import { z as
|
|
5430
|
-
var EventDataSourceImported =
|
|
5431
|
-
type:
|
|
5432
|
-
workspaceId:
|
|
5433
|
-
designSystemId:
|
|
5455
|
+
import { z as z172 } from "zod";
|
|
5456
|
+
var EventDataSourceImported = z172.object({
|
|
5457
|
+
type: z172.literal("DataSourceImported"),
|
|
5458
|
+
workspaceId: z172.string(),
|
|
5459
|
+
designSystemId: z172.string()
|
|
5434
5460
|
});
|
|
5435
5461
|
|
|
5436
5462
|
// src/events/version-released.ts
|
|
5437
|
-
import { z as
|
|
5438
|
-
var EventVersionReleased =
|
|
5439
|
-
type:
|
|
5440
|
-
workspaceId:
|
|
5441
|
-
designSystemId:
|
|
5442
|
-
versionId:
|
|
5463
|
+
import { z as z173 } from "zod";
|
|
5464
|
+
var EventVersionReleased = z173.object({
|
|
5465
|
+
type: z173.literal("DesignSystemVersionReleased"),
|
|
5466
|
+
workspaceId: z173.string(),
|
|
5467
|
+
designSystemId: z173.string(),
|
|
5468
|
+
versionId: z173.string()
|
|
5443
5469
|
});
|
|
5444
5470
|
|
|
5445
5471
|
// src/events/base.ts
|
|
5446
|
-
var Event =
|
|
5472
|
+
var Event = z174.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
|
|
5447
5473
|
|
|
5448
5474
|
// src/export/export-runner/export-context.ts
|
|
5449
|
-
import { z as
|
|
5450
|
-
var ExportJobDocumentationContext =
|
|
5451
|
-
isSingleVersionDocs:
|
|
5452
|
-
versionSlug:
|
|
5475
|
+
import { z as z175 } from "zod";
|
|
5476
|
+
var ExportJobDocumentationContext = z175.object({
|
|
5477
|
+
isSingleVersionDocs: z175.boolean(),
|
|
5478
|
+
versionSlug: z175.string(),
|
|
5453
5479
|
environment: PublishedDocEnvironment
|
|
5454
5480
|
});
|
|
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:
|
|
5481
|
+
var ExportJobContext = z175.object({
|
|
5482
|
+
apiUrl: z175.string(),
|
|
5483
|
+
accessToken: z175.string(),
|
|
5484
|
+
designSystemId: z175.string(),
|
|
5485
|
+
designSystemName: z175.string(),
|
|
5486
|
+
exporterId: z175.string(),
|
|
5487
|
+
versionId: z175.string(),
|
|
5488
|
+
brandId: z175.string().optional(),
|
|
5489
|
+
themeId: z175.string().optional(),
|
|
5490
|
+
themePersistentIds: z175.string().array().optional(),
|
|
5491
|
+
previewMode: z175.boolean().optional(),
|
|
5492
|
+
exporterName: z175.string(),
|
|
5467
5493
|
documentation: ExportJobDocumentationContext.optional()
|
|
5468
5494
|
});
|
|
5469
|
-
var ExportJobExporterConfiguration =
|
|
5470
|
-
exporterPackageUrl:
|
|
5495
|
+
var ExportJobExporterConfiguration = z175.object({
|
|
5496
|
+
exporterPackageUrl: z175.string(),
|
|
5471
5497
|
exporterPropertyValues: ExporterConfigurationPropertyValue.array(),
|
|
5472
5498
|
exporterPropertyValuesV2: ExporterPropertyValueMap.optional()
|
|
5473
5499
|
});
|
|
5474
5500
|
|
|
5475
5501
|
// src/export/export-runner/exporter-payload.ts
|
|
5476
|
-
import { z as
|
|
5477
|
-
var ExporterFunctionPayload =
|
|
5478
|
-
exportJobId:
|
|
5479
|
-
exportContextId:
|
|
5480
|
-
designSystemId:
|
|
5481
|
-
workspaceId:
|
|
5502
|
+
import { z as z176 } from "zod";
|
|
5503
|
+
var ExporterFunctionPayload = z176.object({
|
|
5504
|
+
exportJobId: z176.string(),
|
|
5505
|
+
exportContextId: z176.string(),
|
|
5506
|
+
designSystemId: z176.string(),
|
|
5507
|
+
workspaceId: z176.string()
|
|
5482
5508
|
});
|
|
5483
5509
|
|
|
5484
5510
|
// src/export/export-jobs.ts
|
|
5485
|
-
import { z as
|
|
5486
|
-
var ExportJobDestinationType =
|
|
5511
|
+
import { z as z177 } from "zod";
|
|
5512
|
+
var ExportJobDestinationType = z177.enum([
|
|
5487
5513
|
"s3",
|
|
5488
5514
|
"webhookUrl",
|
|
5489
5515
|
"github",
|
|
@@ -5492,30 +5518,30 @@ var ExportJobDestinationType = z174.enum([
|
|
|
5492
5518
|
"gitlab",
|
|
5493
5519
|
"bitbucket"
|
|
5494
5520
|
]);
|
|
5495
|
-
var ExportJobStatus =
|
|
5496
|
-
var ExportJobLogEntryType =
|
|
5497
|
-
var ExportJobLogEntry =
|
|
5498
|
-
id:
|
|
5499
|
-
time:
|
|
5521
|
+
var ExportJobStatus = z177.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
5522
|
+
var ExportJobLogEntryType = z177.enum(["success", "info", "warning", "error", "user"]);
|
|
5523
|
+
var ExportJobLogEntry = z177.object({
|
|
5524
|
+
id: z177.string().optional(),
|
|
5525
|
+
time: z177.coerce.date(),
|
|
5500
5526
|
type: ExportJobLogEntryType,
|
|
5501
|
-
message:
|
|
5527
|
+
message: z177.string()
|
|
5502
5528
|
});
|
|
5503
|
-
var ExportJobPullRequestDestinationResult =
|
|
5504
|
-
pullRequestUrl:
|
|
5529
|
+
var ExportJobPullRequestDestinationResult = z177.object({
|
|
5530
|
+
pullRequestUrl: z177.string()
|
|
5505
5531
|
});
|
|
5506
|
-
var ExportJobS3DestinationResult =
|
|
5507
|
-
bucket:
|
|
5508
|
-
urlPrefix:
|
|
5509
|
-
path:
|
|
5510
|
-
files:
|
|
5511
|
-
url: nullishToOptional(
|
|
5512
|
-
urls: nullishToOptional(
|
|
5532
|
+
var ExportJobS3DestinationResult = z177.object({
|
|
5533
|
+
bucket: z177.string(),
|
|
5534
|
+
urlPrefix: z177.string().optional(),
|
|
5535
|
+
path: z177.string(),
|
|
5536
|
+
files: z177.array(z177.string()),
|
|
5537
|
+
url: nullishToOptional(z177.string()),
|
|
5538
|
+
urls: nullishToOptional(z177.string().array())
|
|
5513
5539
|
});
|
|
5514
|
-
var ExportJobDocsDestinationResult =
|
|
5515
|
-
url:
|
|
5540
|
+
var ExportJobDocsDestinationResult = z177.object({
|
|
5541
|
+
url: z177.string()
|
|
5516
5542
|
});
|
|
5517
|
-
var ExportJobResult =
|
|
5518
|
-
error:
|
|
5543
|
+
var ExportJobResult = z177.object({
|
|
5544
|
+
error: z177.string().optional(),
|
|
5519
5545
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
5520
5546
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
5521
5547
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -5524,24 +5550,24 @@ var ExportJobResult = z174.object({
|
|
|
5524
5550
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
5525
5551
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
5526
5552
|
});
|
|
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:
|
|
5553
|
+
var ExportJob = z177.object({
|
|
5554
|
+
id: z177.string(),
|
|
5555
|
+
createdAt: z177.coerce.date(),
|
|
5556
|
+
finishedAt: z177.coerce.date().optional(),
|
|
5557
|
+
designSystemId: z177.string(),
|
|
5558
|
+
designSystemVersionId: z177.string(),
|
|
5559
|
+
workspaceId: z177.string(),
|
|
5560
|
+
scheduleId: z177.string().nullish(),
|
|
5561
|
+
exporterId: z177.string(),
|
|
5562
|
+
brandId: z177.string().optional(),
|
|
5563
|
+
themeId: z177.string().optional(),
|
|
5564
|
+
themePersistentIds: z177.string().array().optional(),
|
|
5565
|
+
estimatedExecutionTime: z177.number().optional(),
|
|
5540
5566
|
status: ExportJobStatus,
|
|
5541
5567
|
result: ExportJobResult.optional(),
|
|
5542
|
-
createdByUserId:
|
|
5568
|
+
createdByUserId: z177.string().optional(),
|
|
5543
5569
|
exporterPropertyValues: ExporterPropertyValueMap.optional(),
|
|
5544
|
-
previewMode:
|
|
5570
|
+
previewMode: z177.boolean().optional(),
|
|
5545
5571
|
// Destinations
|
|
5546
5572
|
...ExportDestinationsMap.shape
|
|
5547
5573
|
});
|
|
@@ -5555,38 +5581,37 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
5555
5581
|
themeId: true,
|
|
5556
5582
|
brandId: true
|
|
5557
5583
|
}).extend({
|
|
5558
|
-
destinations:
|
|
5584
|
+
destinations: z177.array(ExportJobDestinationType),
|
|
5559
5585
|
docsEnvironment: PublishedDocEnvironment
|
|
5560
5586
|
}).partial();
|
|
5561
5587
|
|
|
5562
5588
|
// src/export/exporter-list-query.ts
|
|
5563
|
-
import { z as
|
|
5564
|
-
var ExporterType2 =
|
|
5565
|
-
var ListExporterQuery =
|
|
5566
|
-
limit:
|
|
5567
|
-
offset:
|
|
5589
|
+
import { z as z178 } from "zod";
|
|
5590
|
+
var ExporterType2 = z178.enum(["documentation", "code"]);
|
|
5591
|
+
var ListExporterQuery = z178.object({
|
|
5592
|
+
limit: z178.number().optional(),
|
|
5593
|
+
offset: z178.number().optional(),
|
|
5568
5594
|
type: ExporterType2.optional(),
|
|
5569
|
-
search:
|
|
5595
|
+
search: z178.string().optional()
|
|
5570
5596
|
});
|
|
5571
5597
|
|
|
5572
5598
|
// src/export/exporter-workspace-membership-role.ts
|
|
5573
|
-
import { z as
|
|
5574
|
-
var ExporterWorkspaceMembershipRole =
|
|
5599
|
+
import { z as z179 } from "zod";
|
|
5600
|
+
var ExporterWorkspaceMembershipRole = z179.enum(["Owner", "OwnerArchived", "User"]);
|
|
5575
5601
|
|
|
5576
5602
|
// src/export/exporter-workspace-membership.ts
|
|
5577
|
-
import { z as
|
|
5578
|
-
var ExporterWorkspaceMembership =
|
|
5579
|
-
id:
|
|
5580
|
-
workspaceId:
|
|
5581
|
-
exporterId:
|
|
5603
|
+
import { z as z180 } from "zod";
|
|
5604
|
+
var ExporterWorkspaceMembership = z180.object({
|
|
5605
|
+
id: z180.string(),
|
|
5606
|
+
workspaceId: z180.string(),
|
|
5607
|
+
exporterId: z180.string(),
|
|
5582
5608
|
role: ExporterWorkspaceMembershipRole
|
|
5583
5609
|
});
|
|
5584
5610
|
|
|
5585
5611
|
// src/feature-flags/feature-flags.ts
|
|
5586
|
-
import { z as
|
|
5587
|
-
var FlaggedFeature =
|
|
5612
|
+
import { z as z181 } from "zod";
|
|
5613
|
+
var FlaggedFeature = z181.enum([
|
|
5588
5614
|
"FigmaImporterV2",
|
|
5589
|
-
"ShadowOpacityOptional",
|
|
5590
5615
|
"DisableImporter",
|
|
5591
5616
|
"VariablesOrder",
|
|
5592
5617
|
"TypographyPropsKeepAliases",
|
|
@@ -5595,20 +5620,20 @@ var FlaggedFeature = z178.enum([
|
|
|
5595
5620
|
"NonCompatibleTypeChanges",
|
|
5596
5621
|
"TypographyUseFontStyle"
|
|
5597
5622
|
]);
|
|
5598
|
-
var FeatureFlagMap =
|
|
5599
|
-
var FeatureFlag =
|
|
5600
|
-
id:
|
|
5623
|
+
var FeatureFlagMap = z181.record(FlaggedFeature, z181.boolean());
|
|
5624
|
+
var FeatureFlag = z181.object({
|
|
5625
|
+
id: z181.string(),
|
|
5601
5626
|
feature: FlaggedFeature,
|
|
5602
|
-
createdAt:
|
|
5603
|
-
enabled:
|
|
5604
|
-
designSystemId:
|
|
5627
|
+
createdAt: z181.coerce.date(),
|
|
5628
|
+
enabled: z181.boolean(),
|
|
5629
|
+
designSystemId: z181.string().optional()
|
|
5605
5630
|
});
|
|
5606
5631
|
|
|
5607
5632
|
// src/integrations/external-oauth-request.ts
|
|
5608
|
-
import { z as
|
|
5633
|
+
import { z as z183 } from "zod";
|
|
5609
5634
|
|
|
5610
5635
|
// src/integrations/oauth-providers.ts
|
|
5611
|
-
import { z as
|
|
5636
|
+
import { z as z182 } from "zod";
|
|
5612
5637
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
5613
5638
|
OAuthProviderNames2["Figma"] = "figma";
|
|
5614
5639
|
OAuthProviderNames2["Azure"] = "azure";
|
|
@@ -5617,128 +5642,128 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
5617
5642
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
5618
5643
|
return OAuthProviderNames2;
|
|
5619
5644
|
})(OAuthProviderNames || {});
|
|
5620
|
-
var OAuthProviderSchema =
|
|
5645
|
+
var OAuthProviderSchema = z182.nativeEnum(OAuthProviderNames);
|
|
5621
5646
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
5622
5647
|
|
|
5623
5648
|
// src/integrations/external-oauth-request.ts
|
|
5624
|
-
var ExternalOAuthRequest =
|
|
5625
|
-
id:
|
|
5649
|
+
var ExternalOAuthRequest = z183.object({
|
|
5650
|
+
id: z183.string(),
|
|
5626
5651
|
provider: OAuthProviderSchema,
|
|
5627
|
-
userId:
|
|
5628
|
-
state:
|
|
5629
|
-
createdAt:
|
|
5652
|
+
userId: z183.string(),
|
|
5653
|
+
state: z183.string(),
|
|
5654
|
+
createdAt: z183.coerce.date()
|
|
5630
5655
|
});
|
|
5631
5656
|
|
|
5632
5657
|
// src/integrations/git.ts
|
|
5633
|
-
import { z as
|
|
5634
|
-
var GitObjectsQuery =
|
|
5635
|
-
organization:
|
|
5658
|
+
import { z as z184 } from "zod";
|
|
5659
|
+
var GitObjectsQuery = z184.object({
|
|
5660
|
+
organization: z184.string().optional(),
|
|
5636
5661
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
5637
|
-
project:
|
|
5662
|
+
project: z184.string().optional(),
|
|
5638
5663
|
// Only for Bitbucket and Azure
|
|
5639
|
-
repository:
|
|
5664
|
+
repository: z184.string().optional(),
|
|
5640
5665
|
// For all providers. For Gitlab, it's called "project".
|
|
5641
|
-
branch:
|
|
5666
|
+
branch: z184.string().optional(),
|
|
5642
5667
|
// For all providers.
|
|
5643
|
-
user:
|
|
5668
|
+
user: z184.string().optional()
|
|
5644
5669
|
// Gitlab user
|
|
5645
5670
|
});
|
|
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:
|
|
5671
|
+
var GitOrganization = z184.object({
|
|
5672
|
+
id: z184.string(),
|
|
5673
|
+
name: z184.string(),
|
|
5674
|
+
url: z184.string(),
|
|
5675
|
+
slug: z184.string()
|
|
5676
|
+
});
|
|
5677
|
+
var GitProject = z184.object({
|
|
5678
|
+
id: z184.string(),
|
|
5679
|
+
name: z184.string(),
|
|
5680
|
+
url: z184.string(),
|
|
5681
|
+
slug: z184.string()
|
|
5682
|
+
});
|
|
5683
|
+
var GitRepository = z184.object({
|
|
5684
|
+
id: z184.string(),
|
|
5685
|
+
name: z184.string(),
|
|
5686
|
+
url: z184.string(),
|
|
5687
|
+
slug: z184.string(),
|
|
5663
5688
|
/**
|
|
5664
5689
|
* Can be undefined when:
|
|
5665
5690
|
* - there are no branches in the repository yet
|
|
5666
5691
|
* - Git provider doesn't expose this information on a repository via their API
|
|
5667
5692
|
*/
|
|
5668
|
-
defaultBranch:
|
|
5693
|
+
defaultBranch: z184.string().optional()
|
|
5669
5694
|
});
|
|
5670
|
-
var GitBranch =
|
|
5671
|
-
name:
|
|
5672
|
-
lastCommitId:
|
|
5695
|
+
var GitBranch = z184.object({
|
|
5696
|
+
name: z184.string(),
|
|
5697
|
+
lastCommitId: z184.string()
|
|
5673
5698
|
});
|
|
5674
5699
|
|
|
5675
5700
|
// src/integrations/oauth-token.ts
|
|
5676
|
-
import { z as
|
|
5677
|
-
var IntegrationTokenSchemaOld =
|
|
5678
|
-
id:
|
|
5701
|
+
import { z as z185 } from "zod";
|
|
5702
|
+
var IntegrationTokenSchemaOld = z185.object({
|
|
5703
|
+
id: z185.string(),
|
|
5679
5704
|
provider: OAuthProviderSchema,
|
|
5680
|
-
scope:
|
|
5681
|
-
userId:
|
|
5682
|
-
accessToken:
|
|
5683
|
-
refreshToken:
|
|
5684
|
-
expiresAt:
|
|
5685
|
-
externalUserId:
|
|
5705
|
+
scope: z185.string(),
|
|
5706
|
+
userId: z185.string(),
|
|
5707
|
+
accessToken: z185.string(),
|
|
5708
|
+
refreshToken: z185.string(),
|
|
5709
|
+
expiresAt: z185.coerce.date(),
|
|
5710
|
+
externalUserId: z185.string().nullish()
|
|
5686
5711
|
});
|
|
5687
5712
|
|
|
5688
5713
|
// src/integrations/workspace-oauth-requests.ts
|
|
5689
|
-
import { z as
|
|
5690
|
-
var WorkspaceOAuthRequestSchema =
|
|
5691
|
-
id:
|
|
5692
|
-
workspaceId:
|
|
5714
|
+
import { z as z186 } from "zod";
|
|
5715
|
+
var WorkspaceOAuthRequestSchema = z186.object({
|
|
5716
|
+
id: z186.string(),
|
|
5717
|
+
workspaceId: z186.string(),
|
|
5693
5718
|
provider: OAuthProviderSchema,
|
|
5694
|
-
userId:
|
|
5695
|
-
createdAt:
|
|
5719
|
+
userId: z186.string(),
|
|
5720
|
+
createdAt: z186.coerce.date()
|
|
5696
5721
|
});
|
|
5697
5722
|
|
|
5698
5723
|
// src/npm/npm-package.ts
|
|
5699
|
-
import { z as
|
|
5700
|
-
var AnyRecord =
|
|
5724
|
+
import { z as z187 } from "zod";
|
|
5725
|
+
var AnyRecord = z187.record(z187.any());
|
|
5701
5726
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
5702
|
-
|
|
5703
|
-
tarball:
|
|
5727
|
+
z187.object({
|
|
5728
|
+
tarball: z187.string()
|
|
5704
5729
|
})
|
|
5705
5730
|
);
|
|
5706
5731
|
var NpmPackageVersion = AnyRecord.and(
|
|
5707
|
-
|
|
5732
|
+
z187.object({
|
|
5708
5733
|
dist: NpmPackageVersionDist
|
|
5709
5734
|
})
|
|
5710
5735
|
);
|
|
5711
5736
|
var NpmPackage = AnyRecord.and(
|
|
5712
|
-
|
|
5713
|
-
_id:
|
|
5714
|
-
name:
|
|
5737
|
+
z187.object({
|
|
5738
|
+
_id: z187.string(),
|
|
5739
|
+
name: z187.string(),
|
|
5715
5740
|
// e.g. "latest": "1.2.3"
|
|
5716
|
-
"dist-tags":
|
|
5741
|
+
"dist-tags": z187.record(z187.string(), z187.string()),
|
|
5717
5742
|
// "1.2.3": {...}
|
|
5718
|
-
versions:
|
|
5743
|
+
versions: z187.record(NpmPackageVersion)
|
|
5719
5744
|
})
|
|
5720
5745
|
);
|
|
5721
5746
|
|
|
5722
5747
|
// src/npm/npm-proxy-token-payload.ts
|
|
5723
|
-
import { z as
|
|
5724
|
-
var NpmProxyTokenPayload =
|
|
5725
|
-
npmProxyRegistryConfigId:
|
|
5748
|
+
import { z as z188 } from "zod";
|
|
5749
|
+
var NpmProxyTokenPayload = z188.object({
|
|
5750
|
+
npmProxyRegistryConfigId: z188.string()
|
|
5726
5751
|
});
|
|
5727
5752
|
|
|
5728
5753
|
// src/tokens/personal-access-token.ts
|
|
5729
|
-
import { z as
|
|
5730
|
-
var PersonalAccessToken =
|
|
5731
|
-
id:
|
|
5732
|
-
userId:
|
|
5733
|
-
workspaceId:
|
|
5734
|
-
designSystemId:
|
|
5754
|
+
import { z as z189 } from "zod";
|
|
5755
|
+
var PersonalAccessToken = z189.object({
|
|
5756
|
+
id: z189.string(),
|
|
5757
|
+
userId: z189.string(),
|
|
5758
|
+
workspaceId: z189.string().optional(),
|
|
5759
|
+
designSystemId: z189.string().optional(),
|
|
5735
5760
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
5736
|
-
name:
|
|
5737
|
-
hidden:
|
|
5738
|
-
token:
|
|
5739
|
-
scope:
|
|
5740
|
-
createdAt:
|
|
5741
|
-
expireAt:
|
|
5761
|
+
name: z189.string(),
|
|
5762
|
+
hidden: z189.boolean(),
|
|
5763
|
+
token: z189.string(),
|
|
5764
|
+
scope: z189.string().optional(),
|
|
5765
|
+
createdAt: z189.coerce.date(),
|
|
5766
|
+
expireAt: z189.coerce.date().optional()
|
|
5742
5767
|
});
|
|
5743
5768
|
export {
|
|
5744
5769
|
Address,
|
|
@@ -5808,6 +5833,7 @@ export {
|
|
|
5808
5833
|
DataSourceRemote,
|
|
5809
5834
|
DataSourceRemoteType,
|
|
5810
5835
|
DataSourceStats,
|
|
5836
|
+
DataSourceStorybookRemote,
|
|
5811
5837
|
DataSourceTokenStudioRemote,
|
|
5812
5838
|
DataSourceUploadImportMetadata,
|
|
5813
5839
|
DataSourceUploadRemote,
|
|
@@ -6320,6 +6346,9 @@ export {
|
|
|
6320
6346
|
SpaceUnit,
|
|
6321
6347
|
SpaceValue,
|
|
6322
6348
|
SsoProvider,
|
|
6349
|
+
StorybookEntry,
|
|
6350
|
+
StorybookEntryOrigin,
|
|
6351
|
+
StorybookPayload,
|
|
6323
6352
|
StringTokenData,
|
|
6324
6353
|
StringValue,
|
|
6325
6354
|
StripeSubscriptionStatus,
|
|
@@ -6393,6 +6422,7 @@ export {
|
|
|
6393
6422
|
WorkspaceRole,
|
|
6394
6423
|
WorkspaceRoleSchema,
|
|
6395
6424
|
WorkspaceRoom,
|
|
6425
|
+
WorkspaceUntypedData,
|
|
6396
6426
|
WorkspaceWithDesignSystems,
|
|
6397
6427
|
ZIndexTokenData,
|
|
6398
6428
|
ZIndexUnit,
|