@supernova-studio/model 0.4.1 → 0.5.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 +9857 -28161
- package/dist/index.d.ts +9857 -28161
- package/dist/index.js +93 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +894 -832
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
- package/src/dsm/elements/data/base.ts +3 -3
- package/src/dsm/elements/data/documentation-block-v2.ts +1 -0
- package/src/dsm/elements/data/documentation.ts +2 -1
- package/src/dsm/elements/data/index.ts +3 -0
- package/src/dsm/elements/data/item-header.ts +49 -0
- package/src/dsm/elements/data/page-asset.ts +27 -0
- package/src/dsm/elements/data/safe-id.ts +13 -0
- package/src/dsm/elements/documentation-page-v1.ts +0 -14
- package/src/dsm/elements/group.ts +1 -23
- package/src/dsm/elements/raw-element.ts +3 -3
- package/src/helpers/nullish-to-optional.ts +2 -2
- package/src/multiplayer/index.ts +1 -0
- package/src/multiplayer/room-type.ts +10 -0
- package/src/utils/index.ts +1 -0
package/dist/index.mjs
CHANGED
|
@@ -353,7 +353,7 @@ var ImportJob = Entity.extend({
|
|
|
353
353
|
});
|
|
354
354
|
|
|
355
355
|
// src/dsm/data-sources/import-summary.ts
|
|
356
|
-
import { z as
|
|
356
|
+
import { z as z82 } from "zod";
|
|
357
357
|
|
|
358
358
|
// src/dsm/elements/data/base.ts
|
|
359
359
|
import { z as z18 } from "zod";
|
|
@@ -537,10 +537,8 @@ var DesignElement = ShallowDesignElement.extend({
|
|
|
537
537
|
createdAt: z27.date(),
|
|
538
538
|
updatedAt: z27.date(),
|
|
539
539
|
exportProperties: DesignSystemElementExportProps.optional(),
|
|
540
|
-
data: z27.any(),
|
|
541
|
-
|
|
542
|
-
origin: z27.any().optional()
|
|
543
|
-
// TODO object, not any.
|
|
540
|
+
data: z27.record(z27.any()),
|
|
541
|
+
origin: z27.record(z27.any()).optional()
|
|
544
542
|
});
|
|
545
543
|
|
|
546
544
|
// src/dsm/properties/property-definition.ts
|
|
@@ -995,6 +993,7 @@ var PageBlockItemTextValue = z33.object({
|
|
|
995
993
|
var PageBlockItemTokenValue = z33.object({
|
|
996
994
|
selectedPropertyIds: z33.array(z33.string()).optional(),
|
|
997
995
|
selectedThemeIds: z33.array(z33.string()).optional(),
|
|
996
|
+
themeDisplayMode: z33.enum(["Split", "Override"]).optional(),
|
|
998
997
|
value: z33.array(
|
|
999
998
|
z33.object({
|
|
1000
999
|
entityId: z33.string(),
|
|
@@ -1047,62 +1046,125 @@ var PageBlockItemTableValue = z33.object({
|
|
|
1047
1046
|
});
|
|
1048
1047
|
|
|
1049
1048
|
// src/dsm/elements/data/documentation-page-v1.ts
|
|
1050
|
-
import { z as
|
|
1049
|
+
import { z as z38 } from "zod";
|
|
1051
1050
|
|
|
1052
1051
|
// src/dsm/elements/data/documentation.ts
|
|
1052
|
+
import { z as z37 } from "zod";
|
|
1053
|
+
|
|
1054
|
+
// src/dsm/elements/data/item-header.ts
|
|
1055
|
+
import { z as z36 } from "zod";
|
|
1056
|
+
|
|
1057
|
+
// src/dsm/elements/data/page-asset.ts
|
|
1058
|
+
import { z as z35 } from "zod";
|
|
1059
|
+
|
|
1060
|
+
// src/dsm/elements/data/safe-id.ts
|
|
1053
1061
|
import { z as z34 } from "zod";
|
|
1054
|
-
var
|
|
1055
|
-
|
|
1056
|
-
|
|
1062
|
+
var RESERVED_OBJECT_ID_PREFIX = "x-sn-reserved-";
|
|
1063
|
+
var SafeIdSchema = z34.string().refine(
|
|
1064
|
+
(value) => {
|
|
1065
|
+
return !value.startsWith(RESERVED_OBJECT_ID_PREFIX);
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
message: `ID value can't start with ${RESERVED_OBJECT_ID_PREFIX}`
|
|
1069
|
+
}
|
|
1070
|
+
);
|
|
1071
|
+
|
|
1072
|
+
// src/dsm/elements/data/page-asset.ts
|
|
1073
|
+
var DocumentationPageAssetType = z35.enum(["image", "figmaFrame"]);
|
|
1074
|
+
var DocumentationPageImageAsset = z35.object({
|
|
1075
|
+
type: z35.literal(DocumentationPageAssetType.Enum.image),
|
|
1076
|
+
url: z35.string().url().optional(),
|
|
1077
|
+
id: SafeIdSchema
|
|
1078
|
+
});
|
|
1079
|
+
var DocumentationPageFrameAsset = z35.object({
|
|
1080
|
+
type: z35.literal(DocumentationPageAssetType.Enum.figmaFrame),
|
|
1081
|
+
url: z35.string().url().optional(),
|
|
1082
|
+
figmaFrame: PageBlockFrame
|
|
1083
|
+
});
|
|
1084
|
+
var DocumentationPageAsset = z35.discriminatedUnion("type", [
|
|
1085
|
+
DocumentationPageImageAsset,
|
|
1086
|
+
DocumentationPageFrameAsset
|
|
1087
|
+
]);
|
|
1088
|
+
|
|
1089
|
+
// src/dsm/elements/data/item-header.ts
|
|
1090
|
+
var colorValueRegex = /^#[a-f0-9]{8}$/;
|
|
1091
|
+
var colorValueFormatDescription = "Must match /^#[a-f0-9]{8}$/";
|
|
1092
|
+
var DocumentationItemHeaderAlignmentSchema = z36.enum(["Left", "Center"]);
|
|
1093
|
+
var DocumentationItemHeaderImageScaleTypeSchema = z36.enum(["AspectFill", "AspectFit"]);
|
|
1094
|
+
var DocumentationItemHeaderAlignment = DocumentationItemHeaderAlignmentSchema.enum;
|
|
1095
|
+
var DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleTypeSchema.enum;
|
|
1096
|
+
var DocumentationItemHeader = z36.object({
|
|
1097
|
+
description: z36.string(),
|
|
1098
|
+
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
1099
|
+
foregroundColor: ColorTokenData.nullish(),
|
|
1100
|
+
backgroundColor: ColorTokenData.nullish(),
|
|
1101
|
+
backgroundImageAsset: DocumentationPageAsset.nullish(),
|
|
1102
|
+
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
1103
|
+
showBackgroundOverlay: z36.boolean(),
|
|
1104
|
+
showCoverText: z36.boolean(),
|
|
1105
|
+
minHeight: z36.number().nullish()
|
|
1106
|
+
});
|
|
1107
|
+
var defaultDocumentationItemHeader = {
|
|
1108
|
+
alignment: DocumentationItemHeaderAlignment.Left,
|
|
1109
|
+
backgroundImageScaleType: DocumentationItemHeaderImageScaleType.AspectFill,
|
|
1110
|
+
description: "",
|
|
1111
|
+
showBackgroundOverlay: false,
|
|
1112
|
+
showCoverText: true
|
|
1113
|
+
};
|
|
1114
|
+
|
|
1115
|
+
// src/dsm/elements/data/documentation.ts
|
|
1116
|
+
var DocumentationItemConfiguration = z37.object({
|
|
1117
|
+
showSidebar: z37.boolean(),
|
|
1118
|
+
header: DocumentationItemHeader
|
|
1057
1119
|
});
|
|
1058
1120
|
|
|
1059
1121
|
// src/dsm/elements/data/documentation-page-v1.ts
|
|
1060
|
-
var DocumentationPageDataV1 =
|
|
1061
|
-
blocks:
|
|
1122
|
+
var DocumentationPageDataV1 = z38.object({
|
|
1123
|
+
blocks: z38.array(PageBlockV1),
|
|
1062
1124
|
configuration: nullishToOptional(DocumentationItemConfiguration)
|
|
1063
1125
|
});
|
|
1064
|
-
var DocumentationPageElementDataV1 =
|
|
1126
|
+
var DocumentationPageElementDataV1 = z38.object({
|
|
1065
1127
|
value: DocumentationPageDataV1
|
|
1066
1128
|
});
|
|
1067
1129
|
|
|
1068
1130
|
// src/dsm/elements/data/documentation-page-v2.ts
|
|
1069
|
-
import { z as
|
|
1070
|
-
var DocumentationPageDataV2 =
|
|
1131
|
+
import { z as z39 } from "zod";
|
|
1132
|
+
var DocumentationPageDataV2 = z39.object({
|
|
1071
1133
|
configuration: nullishToOptional(DocumentationItemConfiguration)
|
|
1072
1134
|
});
|
|
1073
|
-
var DocumentationPageElementDataV2 =
|
|
1135
|
+
var DocumentationPageElementDataV2 = z39.object({
|
|
1074
1136
|
value: DocumentationPageDataV2
|
|
1075
1137
|
});
|
|
1076
1138
|
|
|
1077
1139
|
// src/dsm/elements/data/duration.ts
|
|
1078
|
-
import { z as
|
|
1079
|
-
var DurationUnit =
|
|
1080
|
-
var DurationValue =
|
|
1140
|
+
import { z as z40 } from "zod";
|
|
1141
|
+
var DurationUnit = z40.enum(["Ms"]);
|
|
1142
|
+
var DurationValue = z40.object({
|
|
1081
1143
|
unit: DurationUnit,
|
|
1082
|
-
measure:
|
|
1144
|
+
measure: z40.number()
|
|
1083
1145
|
});
|
|
1084
1146
|
var DurationTokenData = tokenAliasOrValue(DurationValue);
|
|
1085
1147
|
|
|
1086
1148
|
// src/dsm/elements/data/figma-file-structure.ts
|
|
1087
|
-
import { z as
|
|
1088
|
-
var FigmaFileStructureNodeType =
|
|
1089
|
-
var FigmaFileStructureNodeBase =
|
|
1090
|
-
id:
|
|
1091
|
-
name:
|
|
1149
|
+
import { z as z41 } from "zod";
|
|
1150
|
+
var FigmaFileStructureNodeType = z41.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
|
|
1151
|
+
var FigmaFileStructureNodeBase = z41.object({
|
|
1152
|
+
id: z41.string(),
|
|
1153
|
+
name: z41.string(),
|
|
1092
1154
|
type: FigmaFileStructureNodeType,
|
|
1093
1155
|
size: SizeOrUndefined,
|
|
1094
|
-
parentComponentSetId:
|
|
1156
|
+
parentComponentSetId: z41.string().optional()
|
|
1095
1157
|
});
|
|
1096
1158
|
var FigmaFileStructureNode = FigmaFileStructureNodeBase.extend({
|
|
1097
|
-
children:
|
|
1159
|
+
children: z41.lazy(() => FigmaFileStructureNode.array())
|
|
1098
1160
|
});
|
|
1099
|
-
var FigmaFileStructureStatistics =
|
|
1100
|
-
frames:
|
|
1101
|
-
components:
|
|
1102
|
-
componentSets:
|
|
1161
|
+
var FigmaFileStructureStatistics = z41.object({
|
|
1162
|
+
frames: z41.number().nullable().optional().transform((v) => v ?? 0),
|
|
1163
|
+
components: z41.number().nullable().optional().transform((v) => v ?? 0),
|
|
1164
|
+
componentSets: z41.number().nullable().optional().transform((v) => v ?? 0)
|
|
1103
1165
|
});
|
|
1104
|
-
var FigmaFileStructureElementData =
|
|
1105
|
-
value:
|
|
1166
|
+
var FigmaFileStructureElementData = z41.object({
|
|
1167
|
+
value: z41.object({
|
|
1106
1168
|
structure: FigmaFileStructureNode,
|
|
1107
1169
|
assetsInFile: FigmaFileStructureStatistics
|
|
1108
1170
|
})
|
|
@@ -1119,165 +1181,165 @@ function recursiveFigmaFileStructureToMap(node, map) {
|
|
|
1119
1181
|
}
|
|
1120
1182
|
|
|
1121
1183
|
// src/dsm/elements/data/figma-node-reference.ts
|
|
1122
|
-
import { z as
|
|
1123
|
-
var FigmaNodeReferenceData =
|
|
1124
|
-
structureElementId:
|
|
1125
|
-
nodeId:
|
|
1126
|
-
fileId:
|
|
1127
|
-
valid:
|
|
1128
|
-
assetId:
|
|
1129
|
-
assetScale:
|
|
1130
|
-
assetWidth:
|
|
1131
|
-
assetHeight:
|
|
1132
|
-
assetUrl:
|
|
1133
|
-
});
|
|
1134
|
-
var FigmaNodeReferenceElementData =
|
|
1184
|
+
import { z as z42 } from "zod";
|
|
1185
|
+
var FigmaNodeReferenceData = z42.object({
|
|
1186
|
+
structureElementId: z42.string(),
|
|
1187
|
+
nodeId: z42.string(),
|
|
1188
|
+
fileId: z42.string().optional(),
|
|
1189
|
+
valid: z42.boolean(),
|
|
1190
|
+
assetId: z42.string().optional(),
|
|
1191
|
+
assetScale: z42.number().optional(),
|
|
1192
|
+
assetWidth: z42.number().optional(),
|
|
1193
|
+
assetHeight: z42.number().optional(),
|
|
1194
|
+
assetUrl: z42.string().optional()
|
|
1195
|
+
});
|
|
1196
|
+
var FigmaNodeReferenceElementData = z42.object({
|
|
1135
1197
|
value: FigmaNodeReferenceData
|
|
1136
1198
|
});
|
|
1137
1199
|
|
|
1138
1200
|
// src/dsm/elements/data/font-family.ts
|
|
1139
|
-
import { z as
|
|
1140
|
-
var FontFamilyValue =
|
|
1201
|
+
import { z as z43 } from "zod";
|
|
1202
|
+
var FontFamilyValue = z43.string();
|
|
1141
1203
|
var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
|
|
1142
1204
|
|
|
1143
1205
|
// src/dsm/elements/data/font-size.ts
|
|
1144
|
-
import { z as
|
|
1145
|
-
var FontSizeUnit =
|
|
1146
|
-
var FontSizeValue =
|
|
1206
|
+
import { z as z44 } from "zod";
|
|
1207
|
+
var FontSizeUnit = z44.enum(["Pixels", "Rem", "Percent"]);
|
|
1208
|
+
var FontSizeValue = z44.object({
|
|
1147
1209
|
unit: FontSizeUnit,
|
|
1148
|
-
measure:
|
|
1210
|
+
measure: z44.number()
|
|
1149
1211
|
});
|
|
1150
1212
|
var FontSizeTokenData = tokenAliasOrValue(FontSizeValue);
|
|
1151
1213
|
|
|
1152
1214
|
// src/dsm/elements/data/font-weight.ts
|
|
1153
|
-
import { z as
|
|
1154
|
-
var FontWeightValue =
|
|
1215
|
+
import { z as z45 } from "zod";
|
|
1216
|
+
var FontWeightValue = z45.string();
|
|
1155
1217
|
var FontWeightTokenData = tokenAliasOrValue(FontWeightValue);
|
|
1156
1218
|
|
|
1157
1219
|
// src/dsm/elements/data/gradient.ts
|
|
1158
|
-
import { z as
|
|
1159
|
-
var GradientType =
|
|
1160
|
-
var GradientStop =
|
|
1161
|
-
position:
|
|
1220
|
+
import { z as z46 } from "zod";
|
|
1221
|
+
var GradientType = z46.enum(["Linear", "Radial", "Angular"]);
|
|
1222
|
+
var GradientStop = z46.object({
|
|
1223
|
+
position: z46.number(),
|
|
1162
1224
|
color: ColorTokenData
|
|
1163
1225
|
});
|
|
1164
|
-
var GradientLayerValue =
|
|
1226
|
+
var GradientLayerValue = z46.object({
|
|
1165
1227
|
from: Point2D,
|
|
1166
1228
|
to: Point2D,
|
|
1167
1229
|
type: GradientType,
|
|
1168
|
-
aspectRatio: nullishToOptional(
|
|
1230
|
+
aspectRatio: nullishToOptional(z46.number()),
|
|
1169
1231
|
// z.number(),
|
|
1170
|
-
stops:
|
|
1232
|
+
stops: z46.array(GradientStop).min(2)
|
|
1171
1233
|
});
|
|
1172
1234
|
var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
|
|
1173
|
-
var GradientTokenValue =
|
|
1235
|
+
var GradientTokenValue = z46.array(GradientLayerData);
|
|
1174
1236
|
var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
|
|
1175
1237
|
|
|
1176
1238
|
// src/dsm/elements/data/group.ts
|
|
1177
|
-
import { z as
|
|
1178
|
-
var DocumentationGroupBehavior =
|
|
1179
|
-
var ElementGroupData =
|
|
1239
|
+
import { z as z47 } from "zod";
|
|
1240
|
+
var DocumentationGroupBehavior = z47.enum(["Group", "Tabs"]);
|
|
1241
|
+
var ElementGroupData = z47.object({
|
|
1180
1242
|
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
1181
1243
|
configuration: nullishToOptional(DocumentationItemConfiguration)
|
|
1182
1244
|
});
|
|
1183
|
-
var ElementGroupElementData =
|
|
1245
|
+
var ElementGroupElementData = z47.object({
|
|
1184
1246
|
value: ElementGroupData.optional()
|
|
1185
1247
|
});
|
|
1186
1248
|
|
|
1187
1249
|
// src/dsm/elements/data/letter-spacing.ts
|
|
1188
|
-
import { z as
|
|
1189
|
-
var LetterSpacingUnit =
|
|
1190
|
-
var LetterSpacingValue =
|
|
1250
|
+
import { z as z48 } from "zod";
|
|
1251
|
+
var LetterSpacingUnit = z48.enum(["Pixels", "Rem", "Percent"]);
|
|
1252
|
+
var LetterSpacingValue = z48.object({
|
|
1191
1253
|
unit: LetterSpacingUnit,
|
|
1192
|
-
measure:
|
|
1254
|
+
measure: z48.number()
|
|
1193
1255
|
});
|
|
1194
1256
|
var LetterSpacingTokenData = tokenAliasOrValue(LetterSpacingValue);
|
|
1195
1257
|
|
|
1196
1258
|
// src/dsm/elements/data/line-height.ts
|
|
1197
|
-
import { z as
|
|
1198
|
-
var LineHeightUnit =
|
|
1199
|
-
var LineHeightValue =
|
|
1259
|
+
import { z as z49 } from "zod";
|
|
1260
|
+
var LineHeightUnit = z49.enum(["Pixels", "Rem", "Percent", "Raw"]);
|
|
1261
|
+
var LineHeightValue = z49.object({
|
|
1200
1262
|
unit: LineHeightUnit,
|
|
1201
|
-
measure:
|
|
1263
|
+
measure: z49.number()
|
|
1202
1264
|
});
|
|
1203
1265
|
var LineHeightTokenData = tokenAliasOrValue(LineHeightValue);
|
|
1204
1266
|
|
|
1205
1267
|
// src/dsm/elements/data/paragraph-indent.ts
|
|
1206
|
-
import { z as
|
|
1207
|
-
var ParagraphIndentUnit =
|
|
1208
|
-
var ParagraphIndentValue =
|
|
1268
|
+
import { z as z50 } from "zod";
|
|
1269
|
+
var ParagraphIndentUnit = z50.enum(["Pixels", "Rem", "Percent"]);
|
|
1270
|
+
var ParagraphIndentValue = z50.object({
|
|
1209
1271
|
unit: ParagraphIndentUnit,
|
|
1210
|
-
measure:
|
|
1272
|
+
measure: z50.number()
|
|
1211
1273
|
});
|
|
1212
1274
|
var ParagraphIndentTokenData = tokenAliasOrValue(ParagraphIndentValue);
|
|
1213
1275
|
|
|
1214
1276
|
// src/dsm/elements/data/paragraph-spacing.ts
|
|
1215
|
-
import { z as
|
|
1216
|
-
var ParagraphSpacingUnit =
|
|
1217
|
-
var ParagraphSpacingValue =
|
|
1277
|
+
import { z as z51 } from "zod";
|
|
1278
|
+
var ParagraphSpacingUnit = z51.enum(["Pixels", "Rem", "Percent"]);
|
|
1279
|
+
var ParagraphSpacingValue = z51.object({
|
|
1218
1280
|
unit: ParagraphSpacingUnit,
|
|
1219
|
-
measure:
|
|
1281
|
+
measure: z51.number()
|
|
1220
1282
|
});
|
|
1221
1283
|
var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
|
|
1222
1284
|
|
|
1223
1285
|
// src/dsm/elements/data/product-copy.ts
|
|
1224
|
-
import { z as
|
|
1225
|
-
var ProductCopyValue =
|
|
1286
|
+
import { z as z52 } from "zod";
|
|
1287
|
+
var ProductCopyValue = z52.string();
|
|
1226
1288
|
var ProductCopyTokenData = tokenAliasOrValue(ProductCopyValue);
|
|
1227
1289
|
|
|
1228
1290
|
// src/dsm/elements/data/shadow.ts
|
|
1229
|
-
import { z as
|
|
1230
|
-
var ShadowType =
|
|
1231
|
-
var ShadowLayerValue =
|
|
1291
|
+
import { z as z53 } from "zod";
|
|
1292
|
+
var ShadowType = z53.enum(["Drop", "Inner"]);
|
|
1293
|
+
var ShadowLayerValue = z53.object({
|
|
1232
1294
|
color: ColorTokenData,
|
|
1233
|
-
x:
|
|
1234
|
-
y:
|
|
1235
|
-
radius:
|
|
1236
|
-
spread:
|
|
1295
|
+
x: z53.number(),
|
|
1296
|
+
y: z53.number(),
|
|
1297
|
+
radius: z53.number(),
|
|
1298
|
+
spread: z53.number(),
|
|
1237
1299
|
opacity: OpacityTokenData,
|
|
1238
1300
|
type: ShadowType
|
|
1239
1301
|
});
|
|
1240
1302
|
var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
|
|
1241
|
-
var ShadowTokenData = tokenAliasOrValue(
|
|
1303
|
+
var ShadowTokenData = tokenAliasOrValue(z53.array(ShadowTokenDataBase));
|
|
1242
1304
|
|
|
1243
1305
|
// src/dsm/elements/data/size.ts
|
|
1244
|
-
import { z as
|
|
1245
|
-
var SizeUnit =
|
|
1246
|
-
var SizeValue =
|
|
1306
|
+
import { z as z54 } from "zod";
|
|
1307
|
+
var SizeUnit = z54.enum(["Pixels", "Rem", "Percent"]);
|
|
1308
|
+
var SizeValue = z54.object({
|
|
1247
1309
|
unit: SizeUnit,
|
|
1248
|
-
measure:
|
|
1310
|
+
measure: z54.number()
|
|
1249
1311
|
});
|
|
1250
1312
|
var SizeTokenData = tokenAliasOrValue(SizeValue);
|
|
1251
1313
|
|
|
1252
1314
|
// src/dsm/elements/data/space.ts
|
|
1253
|
-
import { z as
|
|
1254
|
-
var SpaceUnit =
|
|
1255
|
-
var SpaceValue =
|
|
1315
|
+
import { z as z55 } from "zod";
|
|
1316
|
+
var SpaceUnit = z55.enum(["Pixels", "Rem", "Percent"]);
|
|
1317
|
+
var SpaceValue = z55.object({
|
|
1256
1318
|
unit: SpaceUnit,
|
|
1257
|
-
measure:
|
|
1319
|
+
measure: z55.number()
|
|
1258
1320
|
});
|
|
1259
1321
|
var SpaceTokenData = tokenAliasOrValue(SpaceValue);
|
|
1260
1322
|
|
|
1261
1323
|
// src/dsm/elements/data/string.ts
|
|
1262
|
-
import { z as
|
|
1263
|
-
var StringValue =
|
|
1324
|
+
import { z as z56 } from "zod";
|
|
1325
|
+
var StringValue = z56.string();
|
|
1264
1326
|
var StringTokenData = tokenAliasOrValue(StringValue);
|
|
1265
1327
|
|
|
1266
1328
|
// src/dsm/elements/data/text-case.ts
|
|
1267
|
-
import { z as
|
|
1268
|
-
var TextCase =
|
|
1329
|
+
import { z as z57 } from "zod";
|
|
1330
|
+
var TextCase = z57.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
|
|
1269
1331
|
var TextCaseValue = TextCase;
|
|
1270
1332
|
var TextCaseTokenData = tokenAliasOrValue(TextCaseValue);
|
|
1271
1333
|
|
|
1272
1334
|
// src/dsm/elements/data/text-decoration.ts
|
|
1273
|
-
import { z as
|
|
1274
|
-
var TextDecoration =
|
|
1335
|
+
import { z as z58 } from "zod";
|
|
1336
|
+
var TextDecoration = z58.enum(["None", "Underline", "Strikethrough"]);
|
|
1275
1337
|
var TextDecorationValue = TextDecoration;
|
|
1276
1338
|
var TextDecorationTokenData = tokenAliasOrValue(TextDecorationValue);
|
|
1277
1339
|
|
|
1278
1340
|
// src/dsm/elements/data/typography.ts
|
|
1279
|
-
import { z as
|
|
1280
|
-
var TypographyValue =
|
|
1341
|
+
import { z as z59 } from "zod";
|
|
1342
|
+
var TypographyValue = z59.object({
|
|
1281
1343
|
fontSize: FontSizeTokenData,
|
|
1282
1344
|
fontFamily: FontFamilyTokenData,
|
|
1283
1345
|
fontWeight: FontWeightTokenData,
|
|
@@ -1291,106 +1353,97 @@ var TypographyValue = z56.object({
|
|
|
1291
1353
|
var TypographyTokenData = tokenAliasOrValue(TypographyValue);
|
|
1292
1354
|
|
|
1293
1355
|
// src/dsm/elements/data/visibility.ts
|
|
1294
|
-
import { z as
|
|
1295
|
-
var Visibility =
|
|
1356
|
+
import { z as z60 } from "zod";
|
|
1357
|
+
var Visibility = z60.enum(["Hidden", "Visible"]);
|
|
1296
1358
|
var VisibilityValue = Visibility;
|
|
1297
1359
|
var VisibilityTokenData = tokenAliasOrValue(VisibilityValue);
|
|
1298
1360
|
|
|
1299
1361
|
// src/dsm/elements/data/z-index.ts
|
|
1300
|
-
import { z as
|
|
1301
|
-
var ZIndexUnit =
|
|
1302
|
-
var ZIndexValue =
|
|
1362
|
+
import { z as z61 } from "zod";
|
|
1363
|
+
var ZIndexUnit = z61.enum(["Raw"]);
|
|
1364
|
+
var ZIndexValue = z61.object({
|
|
1303
1365
|
unit: ZIndexUnit,
|
|
1304
|
-
measure:
|
|
1366
|
+
measure: z61.number()
|
|
1305
1367
|
});
|
|
1306
1368
|
var ZIndexTokenData = tokenAliasOrValue(ZIndexValue);
|
|
1307
1369
|
|
|
1308
1370
|
// src/dsm/elements/base.ts
|
|
1309
|
-
import { z as
|
|
1310
|
-
var DesignElementOrigin =
|
|
1311
|
-
id:
|
|
1312
|
-
sourceId:
|
|
1313
|
-
name:
|
|
1314
|
-
});
|
|
1315
|
-
var DesignElementBase =
|
|
1316
|
-
id:
|
|
1317
|
-
persistentId:
|
|
1371
|
+
import { z as z62 } from "zod";
|
|
1372
|
+
var DesignElementOrigin = z62.object({
|
|
1373
|
+
id: z62.string(),
|
|
1374
|
+
sourceId: z62.string(),
|
|
1375
|
+
name: z62.string()
|
|
1376
|
+
});
|
|
1377
|
+
var DesignElementBase = z62.object({
|
|
1378
|
+
id: z62.string(),
|
|
1379
|
+
persistentId: z62.string(),
|
|
1318
1380
|
meta: ObjectMeta,
|
|
1319
|
-
designSystemVersionId:
|
|
1320
|
-
createdAt:
|
|
1321
|
-
updatedAt:
|
|
1381
|
+
designSystemVersionId: z62.string(),
|
|
1382
|
+
createdAt: z62.date(),
|
|
1383
|
+
updatedAt: z62.date()
|
|
1322
1384
|
});
|
|
1323
1385
|
var DesignElementImportedBase = DesignElementBase.extend({
|
|
1324
1386
|
origin: DesignElementOrigin
|
|
1325
1387
|
});
|
|
1326
|
-
var DesignElementGroupablePart =
|
|
1327
|
-
parentPersistentId:
|
|
1328
|
-
sortOrder:
|
|
1388
|
+
var DesignElementGroupablePart = z62.object({
|
|
1389
|
+
parentPersistentId: z62.string().optional(),
|
|
1390
|
+
sortOrder: z62.number()
|
|
1329
1391
|
});
|
|
1330
1392
|
var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
|
|
1331
1393
|
var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
|
|
1332
|
-
parentPersistentId:
|
|
1394
|
+
parentPersistentId: z62.string()
|
|
1333
1395
|
});
|
|
1334
|
-
var DesignElementBrandedPart =
|
|
1335
|
-
brandPersistentId:
|
|
1396
|
+
var DesignElementBrandedPart = z62.object({
|
|
1397
|
+
brandPersistentId: z62.string()
|
|
1336
1398
|
});
|
|
1337
|
-
var DesignElementSlugPart =
|
|
1338
|
-
slug:
|
|
1339
|
-
userSlug:
|
|
1399
|
+
var DesignElementSlugPart = z62.object({
|
|
1400
|
+
slug: z62.string().optional(),
|
|
1401
|
+
userSlug: z62.string().optional()
|
|
1340
1402
|
});
|
|
1341
1403
|
|
|
1342
1404
|
// src/dsm/elements/component.ts
|
|
1343
|
-
import { z as
|
|
1344
|
-
var ComponentOriginPart =
|
|
1345
|
-
nodeId:
|
|
1346
|
-
width:
|
|
1347
|
-
height:
|
|
1405
|
+
import { z as z63 } from "zod";
|
|
1406
|
+
var ComponentOriginPart = z63.object({
|
|
1407
|
+
nodeId: z63.string().optional(),
|
|
1408
|
+
width: z63.number().optional(),
|
|
1409
|
+
height: z63.number().optional()
|
|
1348
1410
|
});
|
|
1349
|
-
var ComponentAsset =
|
|
1350
|
-
assetId:
|
|
1351
|
-
assetPath:
|
|
1411
|
+
var ComponentAsset = z63.object({
|
|
1412
|
+
assetId: z63.string(),
|
|
1413
|
+
assetPath: z63.string()
|
|
1352
1414
|
});
|
|
1353
1415
|
var ComponentOrigin = DesignElementOrigin.extend(ComponentOriginPart.shape);
|
|
1354
1416
|
var Component = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
1355
1417
|
origin: ComponentOrigin.optional(),
|
|
1356
1418
|
thumbnail: ComponentAsset,
|
|
1357
1419
|
svg: ComponentAsset.optional(),
|
|
1358
|
-
isAsset:
|
|
1420
|
+
isAsset: z63.boolean()
|
|
1359
1421
|
});
|
|
1360
1422
|
function isImportedComponent(component) {
|
|
1361
1423
|
return !!component.origin;
|
|
1362
1424
|
}
|
|
1363
1425
|
|
|
1364
1426
|
// src/dsm/elements/documentation-page-v1.ts
|
|
1365
|
-
import { z as
|
|
1427
|
+
import { z as z64 } from "zod";
|
|
1366
1428
|
var DocumentationPageV1 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
1367
|
-
shortPersistentId:
|
|
1429
|
+
shortPersistentId: z64.string(),
|
|
1368
1430
|
data: DocumentationPageDataV1
|
|
1369
1431
|
});
|
|
1370
|
-
var DocumentationPageDTOV1 = DocumentationPageV1.omit({
|
|
1371
|
-
data: true,
|
|
1372
|
-
meta: true,
|
|
1373
|
-
parentPersistentId: true,
|
|
1374
|
-
sortOrder: true
|
|
1375
|
-
}).extend(DocumentationPageV1.shape.data.shape).extend({
|
|
1376
|
-
title: z61.string(),
|
|
1377
|
-
path: z61.string()
|
|
1378
|
-
});
|
|
1379
1432
|
|
|
1380
1433
|
// src/dsm/elements/documentation-page-v2.ts
|
|
1381
|
-
import { z as
|
|
1434
|
+
import { z as z65 } from "zod";
|
|
1382
1435
|
var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
1383
|
-
shortPersistentId:
|
|
1436
|
+
shortPersistentId: z65.string(),
|
|
1384
1437
|
data: DocumentationPageDataV2
|
|
1385
1438
|
});
|
|
1386
1439
|
|
|
1387
1440
|
// src/dsm/elements/figma-file-structures.ts
|
|
1388
|
-
import { z as
|
|
1389
|
-
var FigmaFileStructureOrigin =
|
|
1390
|
-
sourceId:
|
|
1391
|
-
fileId:
|
|
1441
|
+
import { z as z66 } from "zod";
|
|
1442
|
+
var FigmaFileStructureOrigin = z66.object({
|
|
1443
|
+
sourceId: z66.string(),
|
|
1444
|
+
fileId: z66.string().optional()
|
|
1392
1445
|
});
|
|
1393
|
-
var FigmaFileStructureData =
|
|
1446
|
+
var FigmaFileStructureData = z66.object({
|
|
1394
1447
|
rootNode: FigmaFileStructureNode,
|
|
1395
1448
|
assetsInFile: FigmaFileStructureStatistics
|
|
1396
1449
|
});
|
|
@@ -1411,48 +1464,32 @@ var FigmaNodeReference = DesignElementBase.extend({
|
|
|
1411
1464
|
});
|
|
1412
1465
|
|
|
1413
1466
|
// src/dsm/elements/group.ts
|
|
1414
|
-
import { z as
|
|
1467
|
+
import { z as z67 } from "zod";
|
|
1415
1468
|
var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
|
|
1416
|
-
shortPersistentId:
|
|
1469
|
+
shortPersistentId: z67.string().optional(),
|
|
1417
1470
|
childType: DesignElementType,
|
|
1418
1471
|
data: ElementGroupData.optional()
|
|
1419
1472
|
});
|
|
1420
1473
|
var BrandedElementGroup = ElementGroup.extend(DesignElementBrandedPart.shape);
|
|
1421
|
-
var DocumentationGroupDTO = ElementGroup.omit({
|
|
1422
|
-
sortOrder: true,
|
|
1423
|
-
parentPersistentId: true,
|
|
1424
|
-
brandPersistentId: true,
|
|
1425
|
-
meta: true,
|
|
1426
|
-
childType: true,
|
|
1427
|
-
data: true,
|
|
1428
|
-
shortPersistentId: true
|
|
1429
|
-
}).extend({
|
|
1430
|
-
title: z64.string(),
|
|
1431
|
-
isRoot: z64.boolean(),
|
|
1432
|
-
childrenIds: z64.array(z64.string()),
|
|
1433
|
-
groupBehavior: DocumentationGroupBehavior,
|
|
1434
|
-
configuration: DocumentationItemConfiguration,
|
|
1435
|
-
shortPersistentId: z64.string()
|
|
1436
|
-
});
|
|
1437
1474
|
|
|
1438
1475
|
// src/dsm/elements/page-block-v2.ts
|
|
1439
|
-
import { z as
|
|
1476
|
+
import { z as z68 } from "zod";
|
|
1440
1477
|
var PageBlockV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend({
|
|
1441
1478
|
data: PageBlockDataV2
|
|
1442
1479
|
});
|
|
1443
|
-
var PageBlockEditorModelV2 =
|
|
1444
|
-
id:
|
|
1480
|
+
var PageBlockEditorModelV2 = z68.object({
|
|
1481
|
+
id: z68.string(),
|
|
1445
1482
|
data: PageBlockDataV2
|
|
1446
1483
|
});
|
|
1447
1484
|
|
|
1448
1485
|
// src/dsm/elements/theme.ts
|
|
1449
|
-
import { z as
|
|
1486
|
+
import { z as z70 } from "zod";
|
|
1450
1487
|
|
|
1451
1488
|
// src/dsm/elements/tokens.ts
|
|
1452
|
-
import { z as
|
|
1453
|
-
var DesignTokenOriginPart =
|
|
1454
|
-
referenceOriginId:
|
|
1455
|
-
referencePersistentId:
|
|
1489
|
+
import { z as z69 } from "zod";
|
|
1490
|
+
var DesignTokenOriginPart = z69.object({
|
|
1491
|
+
referenceOriginId: z69.string().optional(),
|
|
1492
|
+
referencePersistentId: z69.string().optional()
|
|
1456
1493
|
});
|
|
1457
1494
|
var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
|
|
1458
1495
|
var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
@@ -1464,111 +1501,111 @@ var UpdateDesignTokenBase = DesignTokenBase.omit({
|
|
|
1464
1501
|
brandPersistentId: true,
|
|
1465
1502
|
designSystemVersionId: true
|
|
1466
1503
|
});
|
|
1467
|
-
var BlurTokenTypedData =
|
|
1468
|
-
type:
|
|
1504
|
+
var BlurTokenTypedData = z69.object({
|
|
1505
|
+
type: z69.literal("Blur"),
|
|
1469
1506
|
data: BlurTokenData
|
|
1470
1507
|
});
|
|
1471
|
-
var ColorTokenTypedData =
|
|
1472
|
-
type:
|
|
1508
|
+
var ColorTokenTypedData = z69.object({
|
|
1509
|
+
type: z69.literal("Color"),
|
|
1473
1510
|
data: ColorTokenData
|
|
1474
1511
|
});
|
|
1475
|
-
var GradientTokenTypedData =
|
|
1476
|
-
type:
|
|
1512
|
+
var GradientTokenTypedData = z69.object({
|
|
1513
|
+
type: z69.literal("Gradient"),
|
|
1477
1514
|
data: GradientTokenData
|
|
1478
1515
|
});
|
|
1479
|
-
var OpacityTokenTypedData =
|
|
1480
|
-
type:
|
|
1516
|
+
var OpacityTokenTypedData = z69.object({
|
|
1517
|
+
type: z69.literal("Opacity"),
|
|
1481
1518
|
data: OpacityTokenData
|
|
1482
1519
|
});
|
|
1483
|
-
var ShadowTokenTypedData =
|
|
1484
|
-
type:
|
|
1520
|
+
var ShadowTokenTypedData = z69.object({
|
|
1521
|
+
type: z69.literal("Shadow"),
|
|
1485
1522
|
data: ShadowTokenData
|
|
1486
1523
|
});
|
|
1487
|
-
var TypographyTokenTypedData =
|
|
1488
|
-
type:
|
|
1524
|
+
var TypographyTokenTypedData = z69.object({
|
|
1525
|
+
type: z69.literal("Typography"),
|
|
1489
1526
|
data: TypographyTokenData
|
|
1490
1527
|
});
|
|
1491
|
-
var StringTokenTypedData =
|
|
1492
|
-
type:
|
|
1528
|
+
var StringTokenTypedData = z69.object({
|
|
1529
|
+
type: z69.literal("String"),
|
|
1493
1530
|
data: StringTokenData
|
|
1494
1531
|
});
|
|
1495
|
-
var DimensionTokenTypedData =
|
|
1496
|
-
type:
|
|
1532
|
+
var DimensionTokenTypedData = z69.object({
|
|
1533
|
+
type: z69.literal("Dimension"),
|
|
1497
1534
|
data: DimensionTokenData
|
|
1498
1535
|
});
|
|
1499
|
-
var FontSizeTokenTypedData =
|
|
1500
|
-
type:
|
|
1536
|
+
var FontSizeTokenTypedData = z69.object({
|
|
1537
|
+
type: z69.literal("FontSize"),
|
|
1501
1538
|
data: FontSizeTokenData
|
|
1502
1539
|
});
|
|
1503
|
-
var FontFamilyTokenTypedData =
|
|
1504
|
-
type:
|
|
1540
|
+
var FontFamilyTokenTypedData = z69.object({
|
|
1541
|
+
type: z69.literal("FontFamily"),
|
|
1505
1542
|
data: FontFamilyTokenData
|
|
1506
1543
|
});
|
|
1507
|
-
var FontWeightTokenTypedData =
|
|
1508
|
-
type:
|
|
1544
|
+
var FontWeightTokenTypedData = z69.object({
|
|
1545
|
+
type: z69.literal("FontWeight"),
|
|
1509
1546
|
data: FontWeightTokenData
|
|
1510
1547
|
});
|
|
1511
|
-
var LetterSpacingTokenTypedData =
|
|
1512
|
-
type:
|
|
1548
|
+
var LetterSpacingTokenTypedData = z69.object({
|
|
1549
|
+
type: z69.literal("LetterSpacing"),
|
|
1513
1550
|
data: LetterSpacingTokenData
|
|
1514
1551
|
});
|
|
1515
|
-
var LineHeightTokenTypedData =
|
|
1516
|
-
type:
|
|
1552
|
+
var LineHeightTokenTypedData = z69.object({
|
|
1553
|
+
type: z69.literal("LineHeight"),
|
|
1517
1554
|
data: LineHeightTokenData
|
|
1518
1555
|
});
|
|
1519
|
-
var ParagraphSpacingTokenTypedData =
|
|
1520
|
-
type:
|
|
1556
|
+
var ParagraphSpacingTokenTypedData = z69.object({
|
|
1557
|
+
type: z69.literal("ParagraphSpacing"),
|
|
1521
1558
|
data: ParagraphSpacingTokenData
|
|
1522
1559
|
});
|
|
1523
|
-
var TextCaseTokenTypedData =
|
|
1524
|
-
type:
|
|
1560
|
+
var TextCaseTokenTypedData = z69.object({
|
|
1561
|
+
type: z69.literal("TextCase"),
|
|
1525
1562
|
data: TextCaseTokenData
|
|
1526
1563
|
});
|
|
1527
|
-
var TextDecorationTokenTypedData =
|
|
1528
|
-
type:
|
|
1564
|
+
var TextDecorationTokenTypedData = z69.object({
|
|
1565
|
+
type: z69.literal("TextDecoration"),
|
|
1529
1566
|
data: TextDecorationTokenData
|
|
1530
1567
|
});
|
|
1531
|
-
var BorderRadiusTokenTypedData =
|
|
1532
|
-
type:
|
|
1568
|
+
var BorderRadiusTokenTypedData = z69.object({
|
|
1569
|
+
type: z69.literal("BorderRadius"),
|
|
1533
1570
|
data: BorderRadiusTokenData
|
|
1534
1571
|
});
|
|
1535
|
-
var BorderWidthTokenTypedData =
|
|
1536
|
-
type:
|
|
1572
|
+
var BorderWidthTokenTypedData = z69.object({
|
|
1573
|
+
type: z69.literal("BorderWidth"),
|
|
1537
1574
|
data: BorderWidthTokenData
|
|
1538
1575
|
});
|
|
1539
|
-
var BorderTypedData =
|
|
1540
|
-
type:
|
|
1576
|
+
var BorderTypedData = z69.object({
|
|
1577
|
+
type: z69.literal("Border"),
|
|
1541
1578
|
data: BorderTokenData
|
|
1542
1579
|
});
|
|
1543
|
-
var ProductCopyTypedData =
|
|
1544
|
-
type:
|
|
1580
|
+
var ProductCopyTypedData = z69.object({
|
|
1581
|
+
type: z69.literal("ProductCopy"),
|
|
1545
1582
|
data: ProductCopyTokenData
|
|
1546
1583
|
});
|
|
1547
|
-
var SizeTypedData =
|
|
1548
|
-
type:
|
|
1584
|
+
var SizeTypedData = z69.object({
|
|
1585
|
+
type: z69.literal("Size"),
|
|
1549
1586
|
data: SizeTokenData
|
|
1550
1587
|
});
|
|
1551
|
-
var SpaceTypedData =
|
|
1552
|
-
type:
|
|
1588
|
+
var SpaceTypedData = z69.object({
|
|
1589
|
+
type: z69.literal("Space"),
|
|
1553
1590
|
data: SpaceTokenData
|
|
1554
1591
|
});
|
|
1555
|
-
var VisibilityTypedData =
|
|
1556
|
-
type:
|
|
1592
|
+
var VisibilityTypedData = z69.object({
|
|
1593
|
+
type: z69.literal("Visibility"),
|
|
1557
1594
|
data: VisibilityTokenData
|
|
1558
1595
|
});
|
|
1559
|
-
var ZIndexTypedData =
|
|
1560
|
-
type:
|
|
1596
|
+
var ZIndexTypedData = z69.object({
|
|
1597
|
+
type: z69.literal("ZIndex"),
|
|
1561
1598
|
data: ZIndexTokenData
|
|
1562
1599
|
});
|
|
1563
|
-
var DurationTypedData =
|
|
1564
|
-
type:
|
|
1600
|
+
var DurationTypedData = z69.object({
|
|
1601
|
+
type: z69.literal("Duration"),
|
|
1565
1602
|
data: DurationTokenData
|
|
1566
1603
|
});
|
|
1567
|
-
var FontTypedData =
|
|
1568
|
-
type:
|
|
1569
|
-
data:
|
|
1604
|
+
var FontTypedData = z69.object({
|
|
1605
|
+
type: z69.literal("Font"),
|
|
1606
|
+
data: z69.record(z69.any())
|
|
1570
1607
|
});
|
|
1571
|
-
var DesignTokenTypedData =
|
|
1608
|
+
var DesignTokenTypedData = z69.discriminatedUnion("type", [
|
|
1572
1609
|
BlurTokenTypedData,
|
|
1573
1610
|
BorderRadiusTokenTypedData,
|
|
1574
1611
|
BorderWidthTokenTypedData,
|
|
@@ -1618,72 +1655,72 @@ function designTokenTypeFilter(type) {
|
|
|
1618
1655
|
var ThemeOverrideOriginPart = DesignTokenOriginPart;
|
|
1619
1656
|
var ThemeOverrideOrigin = DesignTokenOrigin;
|
|
1620
1657
|
var ThemeOverride = DesignTokenTypedData.and(
|
|
1621
|
-
|
|
1622
|
-
tokenPersistentId:
|
|
1658
|
+
z70.object({
|
|
1659
|
+
tokenPersistentId: z70.string(),
|
|
1623
1660
|
origin: ThemeOverrideOrigin.optional().nullable().transform((v) => v ?? void 0)
|
|
1624
1661
|
})
|
|
1625
1662
|
);
|
|
1626
|
-
var ThemeElementData =
|
|
1627
|
-
value:
|
|
1628
|
-
overrides:
|
|
1663
|
+
var ThemeElementData = z70.object({
|
|
1664
|
+
value: z70.object({
|
|
1665
|
+
overrides: z70.array(ThemeOverride)
|
|
1629
1666
|
})
|
|
1630
1667
|
});
|
|
1631
|
-
var ThemeOriginPart =
|
|
1632
|
-
var ThemeOriginObject =
|
|
1633
|
-
id:
|
|
1634
|
-
name:
|
|
1668
|
+
var ThemeOriginPart = z70.object({});
|
|
1669
|
+
var ThemeOriginObject = z70.object({
|
|
1670
|
+
id: z70.string(),
|
|
1671
|
+
name: z70.string()
|
|
1635
1672
|
});
|
|
1636
|
-
var ThemeOriginSource =
|
|
1637
|
-
sourceId:
|
|
1638
|
-
sourceObjects:
|
|
1673
|
+
var ThemeOriginSource = z70.object({
|
|
1674
|
+
sourceId: z70.string(),
|
|
1675
|
+
sourceObjects: z70.array(ThemeOriginObject)
|
|
1639
1676
|
});
|
|
1640
|
-
var ThemeOrigin =
|
|
1641
|
-
sources:
|
|
1677
|
+
var ThemeOrigin = z70.object({
|
|
1678
|
+
sources: z70.array(ThemeOriginSource)
|
|
1642
1679
|
});
|
|
1643
1680
|
var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
|
|
1644
1681
|
origin: ThemeOrigin.optional(),
|
|
1645
|
-
overrides:
|
|
1682
|
+
overrides: z70.array(ThemeOverride)
|
|
1646
1683
|
});
|
|
1647
1684
|
|
|
1648
1685
|
// src/dsm/import/support/figma-files.ts
|
|
1649
|
-
import { z as
|
|
1650
|
-
var FigmaFileDownloadScope =
|
|
1651
|
-
styles:
|
|
1652
|
-
components:
|
|
1653
|
-
currentVersion:
|
|
1654
|
-
publishedVersion:
|
|
1655
|
-
downloadChunkSize:
|
|
1686
|
+
import { z as z71 } from "zod";
|
|
1687
|
+
var FigmaFileDownloadScope = z71.object({
|
|
1688
|
+
styles: z71.boolean(),
|
|
1689
|
+
components: z71.boolean(),
|
|
1690
|
+
currentVersion: z71.literal("__latest__").nullable(),
|
|
1691
|
+
publishedVersion: z71.string().nullable(),
|
|
1692
|
+
downloadChunkSize: z71.number().optional()
|
|
1656
1693
|
});
|
|
1657
|
-
var FigmaFileAccessData =
|
|
1658
|
-
accessToken:
|
|
1694
|
+
var FigmaFileAccessData = z71.object({
|
|
1695
|
+
accessToken: z71.string()
|
|
1659
1696
|
});
|
|
1660
1697
|
|
|
1661
1698
|
// src/dsm/import/support/import-context.ts
|
|
1662
|
-
import { z as
|
|
1663
|
-
var ImportFunctionInput =
|
|
1664
|
-
importJobId:
|
|
1665
|
-
importContextId:
|
|
1666
|
-
designSystemId:
|
|
1699
|
+
import { z as z72 } from "zod";
|
|
1700
|
+
var ImportFunctionInput = z72.object({
|
|
1701
|
+
importJobId: z72.string(),
|
|
1702
|
+
importContextId: z72.string(),
|
|
1703
|
+
designSystemId: z72.string().optional()
|
|
1667
1704
|
});
|
|
1668
|
-
var ImportedFigmaSourceData =
|
|
1669
|
-
sourceId:
|
|
1705
|
+
var ImportedFigmaSourceData = z72.object({
|
|
1706
|
+
sourceId: z72.string(),
|
|
1670
1707
|
figmaRemote: DataSourceFigmaRemote
|
|
1671
1708
|
});
|
|
1672
|
-
var FigmaImportBaseContext =
|
|
1673
|
-
designSystemId:
|
|
1709
|
+
var FigmaImportBaseContext = z72.object({
|
|
1710
|
+
designSystemId: z72.string(),
|
|
1674
1711
|
/**
|
|
1675
1712
|
* Data required for accessing Figma files. This should contain access data for all file ids
|
|
1676
1713
|
* mentioned in the `importedSourceDataBySourceId`
|
|
1677
1714
|
*
|
|
1678
1715
|
* fileId: file data
|
|
1679
1716
|
*/
|
|
1680
|
-
fileAccessByFileId:
|
|
1717
|
+
fileAccessByFileId: z72.record(FigmaFileAccessData),
|
|
1681
1718
|
/**
|
|
1682
1719
|
* Figma source data for which import was requested
|
|
1683
1720
|
*
|
|
1684
1721
|
* sourceId: source data
|
|
1685
1722
|
*/
|
|
1686
|
-
importedSourceDataBySourceId:
|
|
1723
|
+
importedSourceDataBySourceId: z72.record(ImportedFigmaSourceData)
|
|
1687
1724
|
});
|
|
1688
1725
|
var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
|
|
1689
1726
|
importMetadata: DataSourceFigmaImportMetadata
|
|
@@ -1695,79 +1732,79 @@ var FigmaImportContextWithDownloadScopes = FigmaImportBaseContext.extend({
|
|
|
1695
1732
|
*
|
|
1696
1733
|
* File id -> file download scope
|
|
1697
1734
|
*/
|
|
1698
|
-
fileDownloadScopesByFileId:
|
|
1735
|
+
fileDownloadScopesByFileId: z72.record(FigmaFileDownloadScope),
|
|
1699
1736
|
/**
|
|
1700
1737
|
* Sources filtered down to the ones that have changed since last import and therefore need to be
|
|
1701
1738
|
* imported again.
|
|
1702
1739
|
*
|
|
1703
1740
|
* Source id -> import metadata
|
|
1704
1741
|
*/
|
|
1705
|
-
changedImportedSourceDataBySourceId:
|
|
1742
|
+
changedImportedSourceDataBySourceId: z72.record(ChangedImportedFigmaSourceData)
|
|
1706
1743
|
});
|
|
1707
1744
|
|
|
1708
1745
|
// src/dsm/import/support/import-model-collections.ts
|
|
1709
|
-
import { z as
|
|
1746
|
+
import { z as z80 } from "zod";
|
|
1710
1747
|
|
|
1711
1748
|
// src/dsm/import/image.ts
|
|
1712
|
-
import { z as
|
|
1713
|
-
var ImageImportModelType =
|
|
1714
|
-
var ImageImportModelBase =
|
|
1749
|
+
import { z as z73 } from "zod";
|
|
1750
|
+
var ImageImportModelType = z73.enum(["Url", "FigmaRender"]);
|
|
1751
|
+
var ImageImportModelBase = z73.object({
|
|
1715
1752
|
scope: AssetScope
|
|
1716
1753
|
});
|
|
1717
1754
|
var UrlImageImportModel = ImageImportModelBase.extend({
|
|
1718
|
-
type:
|
|
1719
|
-
url:
|
|
1720
|
-
originKey:
|
|
1721
|
-
extension:
|
|
1755
|
+
type: z73.literal(ImageImportModelType.enum.Url),
|
|
1756
|
+
url: z73.string(),
|
|
1757
|
+
originKey: z73.string(),
|
|
1758
|
+
extension: z73.enum(["png", "svg", "jpg"])
|
|
1722
1759
|
});
|
|
1723
|
-
var FigmaRenderFormat =
|
|
1760
|
+
var FigmaRenderFormat = z73.enum(["Svg", "Png"]);
|
|
1724
1761
|
var FigmaRenderBase = ImageImportModelBase.extend({
|
|
1725
|
-
type:
|
|
1726
|
-
fileId:
|
|
1727
|
-
fileVersionId:
|
|
1728
|
-
nodeId:
|
|
1729
|
-
originKey:
|
|
1762
|
+
type: z73.literal(ImageImportModelType.enum.FigmaRender),
|
|
1763
|
+
fileId: z73.string(),
|
|
1764
|
+
fileVersionId: z73.string().optional(),
|
|
1765
|
+
nodeId: z73.string(),
|
|
1766
|
+
originKey: z73.string()
|
|
1730
1767
|
});
|
|
1731
1768
|
var FigmaPngRenderImportModel = FigmaRenderBase.extend({
|
|
1732
|
-
format:
|
|
1733
|
-
scale:
|
|
1769
|
+
format: z73.literal(FigmaRenderFormat.enum.Png),
|
|
1770
|
+
scale: z73.number()
|
|
1734
1771
|
});
|
|
1735
1772
|
var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
|
|
1736
|
-
format:
|
|
1773
|
+
format: z73.literal(FigmaRenderFormat.enum.Svg)
|
|
1737
1774
|
});
|
|
1738
|
-
var FigmaRenderImportModel =
|
|
1775
|
+
var FigmaRenderImportModel = z73.discriminatedUnion("format", [
|
|
1739
1776
|
FigmaPngRenderImportModel,
|
|
1740
1777
|
FigmaSvgRenderImportModel
|
|
1741
1778
|
]);
|
|
1742
|
-
var ImageImportModel =
|
|
1779
|
+
var ImageImportModel = z73.union([UrlImageImportModel, FigmaRenderImportModel]);
|
|
1743
1780
|
|
|
1744
1781
|
// src/dsm/import/component.ts
|
|
1745
|
-
import { z as
|
|
1782
|
+
import { z as z75 } from "zod";
|
|
1746
1783
|
|
|
1747
1784
|
// src/dsm/import/base.ts
|
|
1748
|
-
import { z as
|
|
1749
|
-
var ImportModelBase =
|
|
1750
|
-
id:
|
|
1785
|
+
import { z as z74 } from "zod";
|
|
1786
|
+
var ImportModelBase = z74.object({
|
|
1787
|
+
id: z74.string(),
|
|
1751
1788
|
meta: ObjectMeta,
|
|
1752
1789
|
origin: DesignElementOrigin,
|
|
1753
|
-
brandPersistentId:
|
|
1754
|
-
sortOrder:
|
|
1790
|
+
brandPersistentId: z74.string(),
|
|
1791
|
+
sortOrder: z74.number()
|
|
1755
1792
|
});
|
|
1756
1793
|
var ImportModelInputBase = ImportModelBase.omit({
|
|
1757
1794
|
brandPersistentId: true,
|
|
1758
1795
|
origin: true,
|
|
1759
1796
|
sortOrder: true
|
|
1760
1797
|
}).extend({
|
|
1761
|
-
originId:
|
|
1762
|
-
originMetadata:
|
|
1798
|
+
originId: z74.string(),
|
|
1799
|
+
originMetadata: z74.record(z74.any())
|
|
1763
1800
|
});
|
|
1764
1801
|
|
|
1765
1802
|
// src/dsm/import/component.ts
|
|
1766
|
-
var ComponentImportModelPart =
|
|
1803
|
+
var ComponentImportModelPart = z75.object({
|
|
1767
1804
|
thumbnail: ImageImportModel
|
|
1768
1805
|
});
|
|
1769
1806
|
var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
|
|
1770
|
-
isAsset:
|
|
1807
|
+
isAsset: z75.boolean(),
|
|
1771
1808
|
svg: FigmaSvgRenderImportModel.optional(),
|
|
1772
1809
|
origin: ComponentOrigin
|
|
1773
1810
|
});
|
|
@@ -1780,49 +1817,49 @@ var AssetImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart
|
|
|
1780
1817
|
});
|
|
1781
1818
|
|
|
1782
1819
|
// src/dsm/import/theme.ts
|
|
1783
|
-
import { z as
|
|
1820
|
+
import { z as z76 } from "zod";
|
|
1784
1821
|
var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
|
|
1785
|
-
|
|
1786
|
-
id:
|
|
1822
|
+
z76.object({
|
|
1823
|
+
id: z76.string(),
|
|
1787
1824
|
meta: ObjectMeta
|
|
1788
1825
|
})
|
|
1789
1826
|
);
|
|
1790
1827
|
var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
|
|
1791
|
-
|
|
1828
|
+
z76.object({
|
|
1792
1829
|
origin: ThemeOverrideOrigin
|
|
1793
1830
|
})
|
|
1794
1831
|
);
|
|
1795
1832
|
var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
|
|
1796
|
-
|
|
1797
|
-
originId:
|
|
1833
|
+
z76.object({
|
|
1834
|
+
originId: z76.string(),
|
|
1798
1835
|
originMetadata: ThemeOverrideOriginPart
|
|
1799
1836
|
})
|
|
1800
1837
|
);
|
|
1801
|
-
var ThemeImportModel =
|
|
1838
|
+
var ThemeImportModel = z76.object({
|
|
1802
1839
|
meta: ObjectMeta,
|
|
1803
|
-
brandPersistentId:
|
|
1840
|
+
brandPersistentId: z76.string(),
|
|
1804
1841
|
originSource: ThemeOriginSource,
|
|
1805
|
-
overrides:
|
|
1806
|
-
sortOrder:
|
|
1842
|
+
overrides: z76.array(ThemeOverrideImportModel),
|
|
1843
|
+
sortOrder: z76.number()
|
|
1807
1844
|
});
|
|
1808
|
-
var ThemeImportModelInput =
|
|
1845
|
+
var ThemeImportModelInput = z76.object({
|
|
1809
1846
|
meta: ObjectMeta,
|
|
1810
|
-
originObjects:
|
|
1811
|
-
overrides:
|
|
1847
|
+
originObjects: z76.array(ThemeOriginObject),
|
|
1848
|
+
overrides: z76.array(ThemeOverrideImportModelInput)
|
|
1812
1849
|
});
|
|
1813
|
-
var ThemeUpdateImportModel =
|
|
1814
|
-
themePersistentId:
|
|
1815
|
-
overrides:
|
|
1850
|
+
var ThemeUpdateImportModel = z76.object({
|
|
1851
|
+
themePersistentId: z76.string(),
|
|
1852
|
+
overrides: z76.array(ThemeOverrideImportModel)
|
|
1816
1853
|
});
|
|
1817
|
-
var ThemeUpdateImportModelInput =
|
|
1818
|
-
themePersistentId:
|
|
1819
|
-
overrides:
|
|
1854
|
+
var ThemeUpdateImportModelInput = z76.object({
|
|
1855
|
+
themePersistentId: z76.string(),
|
|
1856
|
+
overrides: z76.array(ThemeOverrideImportModelInput)
|
|
1820
1857
|
});
|
|
1821
1858
|
|
|
1822
1859
|
// src/dsm/import/tokens.ts
|
|
1823
|
-
import { z as
|
|
1824
|
-
var DesignTokenImportModelPart =
|
|
1825
|
-
collection:
|
|
1860
|
+
import { z as z77 } from "zod";
|
|
1861
|
+
var DesignTokenImportModelPart = z77.object({
|
|
1862
|
+
collection: z77.string().optional()
|
|
1826
1863
|
});
|
|
1827
1864
|
var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
1828
1865
|
origin: DesignTokenOrigin
|
|
@@ -1840,15 +1877,15 @@ function designTokenImportModelTypeFilter(type) {
|
|
|
1840
1877
|
}
|
|
1841
1878
|
|
|
1842
1879
|
// src/dsm/import/figma-frames.ts
|
|
1843
|
-
import { z as
|
|
1880
|
+
import { z as z78 } from "zod";
|
|
1844
1881
|
var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
|
|
1845
1882
|
image: FigmaPngRenderImportModel
|
|
1846
1883
|
});
|
|
1847
1884
|
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
|
|
1848
|
-
children:
|
|
1885
|
+
children: z78.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
1849
1886
|
});
|
|
1850
|
-
var FigmaFileStructureImportModelPart =
|
|
1851
|
-
data:
|
|
1887
|
+
var FigmaFileStructureImportModelPart = z78.object({
|
|
1888
|
+
data: z78.object({
|
|
1852
1889
|
rootNode: FigmaFileStructureNodeImportModel,
|
|
1853
1890
|
assetsInFile: FigmaFileStructureStatistics
|
|
1854
1891
|
})
|
|
@@ -1859,7 +1896,7 @@ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImp
|
|
|
1859
1896
|
var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
|
|
1860
1897
|
FigmaFileStructureImportModelPart.shape
|
|
1861
1898
|
).extend({
|
|
1862
|
-
fileVersionId:
|
|
1899
|
+
fileVersionId: z78.string()
|
|
1863
1900
|
});
|
|
1864
1901
|
function figmaFileStructureImportModelToMap(root) {
|
|
1865
1902
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -1873,30 +1910,30 @@ function recursiveFigmaFileStructureToMap2(node, map) {
|
|
|
1873
1910
|
}
|
|
1874
1911
|
|
|
1875
1912
|
// src/dsm/import/data-source.ts
|
|
1876
|
-
import { z as
|
|
1877
|
-
var DataSourceImportModel =
|
|
1878
|
-
id:
|
|
1879
|
-
fileName:
|
|
1880
|
-
thumbnailUrl:
|
|
1913
|
+
import { z as z79 } from "zod";
|
|
1914
|
+
var DataSourceImportModel = z79.object({
|
|
1915
|
+
id: z79.string(),
|
|
1916
|
+
fileName: z79.string().optional(),
|
|
1917
|
+
thumbnailUrl: z79.string().optional()
|
|
1881
1918
|
});
|
|
1882
1919
|
|
|
1883
1920
|
// src/dsm/import/support/import-model-collections.ts
|
|
1884
|
-
var ImportModelInputCollection =
|
|
1921
|
+
var ImportModelInputCollection = z80.object({
|
|
1885
1922
|
source: DataSourceImportModel,
|
|
1886
|
-
tokens:
|
|
1887
|
-
components:
|
|
1888
|
-
assets:
|
|
1889
|
-
themeUpdates:
|
|
1890
|
-
themes:
|
|
1923
|
+
tokens: z80.array(DesignTokenImportModelInput).default([]),
|
|
1924
|
+
components: z80.array(ComponentImportModelInput).default([]),
|
|
1925
|
+
assets: z80.array(AssetImportModelInput).default([]),
|
|
1926
|
+
themeUpdates: z80.array(ThemeUpdateImportModelInput).default([]),
|
|
1927
|
+
themes: z80.array(ThemeImportModelInput).default([]),
|
|
1891
1928
|
figmaFileStructure: FigmaFileStructureImportModelInput.optional()
|
|
1892
1929
|
});
|
|
1893
|
-
var ImportModelCollection =
|
|
1894
|
-
sources:
|
|
1895
|
-
tokens:
|
|
1896
|
-
components:
|
|
1897
|
-
themeUpdates:
|
|
1898
|
-
themes:
|
|
1899
|
-
figmaFileStructures:
|
|
1930
|
+
var ImportModelCollection = z80.object({
|
|
1931
|
+
sources: z80.array(DataSourceImportModel),
|
|
1932
|
+
tokens: z80.array(DesignTokenImportModel).default([]),
|
|
1933
|
+
components: z80.array(ComponentImportModel).default([]),
|
|
1934
|
+
themeUpdates: z80.array(ThemeUpdateImportModel).default([]),
|
|
1935
|
+
themes: z80.array(ThemeImportModel).default([]),
|
|
1936
|
+
figmaFileStructures: z80.array(FigmaFileStructureImportModel)
|
|
1900
1937
|
});
|
|
1901
1938
|
function addImportModelCollections(lhs, rhs) {
|
|
1902
1939
|
return {
|
|
@@ -1910,8 +1947,8 @@ function addImportModelCollections(lhs, rhs) {
|
|
|
1910
1947
|
}
|
|
1911
1948
|
|
|
1912
1949
|
// src/dsm/import/warning.ts
|
|
1913
|
-
import { z as
|
|
1914
|
-
var ImportWarningType =
|
|
1950
|
+
import { z as z81 } from "zod";
|
|
1951
|
+
var ImportWarningType = z81.enum([
|
|
1915
1952
|
"NoVersionFound",
|
|
1916
1953
|
"UnsupportedFill",
|
|
1917
1954
|
"UnsupportedStroke",
|
|
@@ -1925,27 +1962,27 @@ var ImportWarningType = z78.enum([
|
|
|
1925
1962
|
"DuplicateImportedStyleId",
|
|
1926
1963
|
"DuplicateImportedStylePath"
|
|
1927
1964
|
]);
|
|
1928
|
-
var ImportWarning =
|
|
1965
|
+
var ImportWarning = z81.object({
|
|
1929
1966
|
warningType: ImportWarningType,
|
|
1930
|
-
componentId:
|
|
1931
|
-
componentName:
|
|
1932
|
-
styleId:
|
|
1933
|
-
styleName:
|
|
1934
|
-
unsupportedStyleValueType:
|
|
1967
|
+
componentId: z81.string().optional(),
|
|
1968
|
+
componentName: z81.string().optional(),
|
|
1969
|
+
styleId: z81.string().optional(),
|
|
1970
|
+
styleName: z81.string().optional(),
|
|
1971
|
+
unsupportedStyleValueType: z81.string().optional()
|
|
1935
1972
|
});
|
|
1936
1973
|
|
|
1937
1974
|
// src/dsm/data-sources/import-summary.ts
|
|
1938
|
-
var FileStructureStats =
|
|
1975
|
+
var FileStructureStats = z82.object({
|
|
1939
1976
|
frames: zeroNumberByDefault2(),
|
|
1940
1977
|
components: zeroNumberByDefault2(),
|
|
1941
1978
|
componentSets: zeroNumberByDefault2()
|
|
1942
1979
|
});
|
|
1943
1980
|
var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
|
|
1944
1981
|
// Backward compatibility
|
|
1945
|
-
|
|
1982
|
+
z82.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
|
|
1946
1983
|
);
|
|
1947
|
-
var SourceImportSummaryByTokenType =
|
|
1948
|
-
var SourceImportTokenSummary =
|
|
1984
|
+
var SourceImportSummaryByTokenType = z82.record(SourceImportSummaryByTokenTypeKey, z82.number());
|
|
1985
|
+
var SourceImportTokenSummary = z82.object({
|
|
1949
1986
|
tokensCreated: zeroNumberByDefault2(),
|
|
1950
1987
|
tokensUpdated: zeroNumberByDefault2(),
|
|
1951
1988
|
tokensDeleted: zeroNumberByDefault2(),
|
|
@@ -1953,7 +1990,7 @@ var SourceImportTokenSummary = z79.object({
|
|
|
1953
1990
|
tokensUpdatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {}),
|
|
1954
1991
|
tokensDeletedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {})
|
|
1955
1992
|
});
|
|
1956
|
-
var SourceImportComponentSummary =
|
|
1993
|
+
var SourceImportComponentSummary = z82.object({
|
|
1957
1994
|
componentsCreated: zeroNumberByDefault2(),
|
|
1958
1995
|
componentsUpdated: zeroNumberByDefault2(),
|
|
1959
1996
|
componentsDeleted: zeroNumberByDefault2(),
|
|
@@ -1961,68 +1998,68 @@ var SourceImportComponentSummary = z79.object({
|
|
|
1961
1998
|
componentAssetsUpdated: zeroNumberByDefault2(),
|
|
1962
1999
|
componentAssetsDeleted: zeroNumberByDefault2()
|
|
1963
2000
|
});
|
|
1964
|
-
var SourceImportFrameSummary =
|
|
2001
|
+
var SourceImportFrameSummary = z82.object({
|
|
1965
2002
|
assetsInFile: nullishToOptional(FileStructureStats.optional()),
|
|
1966
|
-
invalidReferencesCount: nullishToOptional(
|
|
1967
|
-
});
|
|
1968
|
-
var SourceImportSummary =
|
|
1969
|
-
sourceId: nullishToOptional(
|
|
1970
|
-
brandId: nullishToOptional(
|
|
1971
|
-
versionId: nullishToOptional(
|
|
1972
|
-
error: nullishToOptional(
|
|
1973
|
-
isFailed:
|
|
1974
|
-
warnings:
|
|
2003
|
+
invalidReferencesCount: nullishToOptional(z82.number().optional())
|
|
2004
|
+
});
|
|
2005
|
+
var SourceImportSummary = z82.object({
|
|
2006
|
+
sourceId: nullishToOptional(z82.string()),
|
|
2007
|
+
brandId: nullishToOptional(z82.string()),
|
|
2008
|
+
versionId: nullishToOptional(z82.string()),
|
|
2009
|
+
error: nullishToOptional(z82.any()),
|
|
2010
|
+
isFailed: z82.boolean(),
|
|
2011
|
+
warnings: z82.array(ImportWarning).nullish().transform((v) => v ?? []),
|
|
1975
2012
|
...SourceImportTokenSummary.shape,
|
|
1976
2013
|
...SourceImportComponentSummary.shape,
|
|
1977
2014
|
...FileStructureStats.shape
|
|
1978
2015
|
});
|
|
1979
2016
|
function zeroNumberByDefault2() {
|
|
1980
|
-
return
|
|
2017
|
+
return z82.number().nullish().transform((v) => v ?? 0);
|
|
1981
2018
|
}
|
|
1982
2019
|
|
|
1983
2020
|
// src/dsm/documentation/block-definitions/aux.ts
|
|
1984
|
-
import { z as
|
|
1985
|
-
var PageBlockDefinitionAppearance =
|
|
1986
|
-
isBordered:
|
|
1987
|
-
hasBackground:
|
|
1988
|
-
isEditorPresentationDifferent:
|
|
2021
|
+
import { z as z83 } from "zod";
|
|
2022
|
+
var PageBlockDefinitionAppearance = z83.object({
|
|
2023
|
+
isBordered: z83.boolean().optional(),
|
|
2024
|
+
hasBackground: z83.boolean().optional(),
|
|
2025
|
+
isEditorPresentationDifferent: z83.boolean().optional()
|
|
1989
2026
|
});
|
|
1990
2027
|
|
|
1991
2028
|
// src/dsm/documentation/block-definitions/definition.ts
|
|
1992
|
-
import { z as
|
|
2029
|
+
import { z as z86 } from "zod";
|
|
1993
2030
|
|
|
1994
2031
|
// src/dsm/documentation/block-definitions/item.ts
|
|
1995
|
-
import { z as
|
|
2032
|
+
import { z as z85 } from "zod";
|
|
1996
2033
|
|
|
1997
2034
|
// src/dsm/documentation/block-definitions/variant.ts
|
|
1998
|
-
import { z as
|
|
1999
|
-
var PageBlockDefinitionLayoutType =
|
|
2000
|
-
var PageBlockDefinitionLayoutGap =
|
|
2001
|
-
var PageBlockDefinitionLayoutAlign =
|
|
2002
|
-
var PageBlockDefinitionLayoutResizing =
|
|
2003
|
-
var PageBlockDefinitionLayoutBase =
|
|
2035
|
+
import { z as z84 } from "zod";
|
|
2036
|
+
var PageBlockDefinitionLayoutType = z84.enum(["Column", "Row"]);
|
|
2037
|
+
var PageBlockDefinitionLayoutGap = z84.enum(["Small", "Medium", "Large", "None"]);
|
|
2038
|
+
var PageBlockDefinitionLayoutAlign = z84.enum(["Start", "Center", "End"]);
|
|
2039
|
+
var PageBlockDefinitionLayoutResizing = z84.enum(["Fill", "Hug"]);
|
|
2040
|
+
var PageBlockDefinitionLayoutBase = z84.object({
|
|
2004
2041
|
type: PageBlockDefinitionLayoutType,
|
|
2005
2042
|
gap: PageBlockDefinitionLayoutGap.optional(),
|
|
2006
2043
|
columnAlign: PageBlockDefinitionLayoutAlign.optional(),
|
|
2007
2044
|
columnResizing: PageBlockDefinitionLayoutResizing.optional()
|
|
2008
2045
|
});
|
|
2009
2046
|
var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
|
|
2010
|
-
children:
|
|
2011
|
-
});
|
|
2012
|
-
var PageBlockDefinitionVariant =
|
|
2013
|
-
id:
|
|
2014
|
-
name:
|
|
2015
|
-
image:
|
|
2016
|
-
description:
|
|
2017
|
-
documentationLink:
|
|
2047
|
+
children: z84.lazy(() => z84.array(PageBlockDefinitionLayout.or(z84.string())))
|
|
2048
|
+
});
|
|
2049
|
+
var PageBlockDefinitionVariant = z84.object({
|
|
2050
|
+
id: z84.string(),
|
|
2051
|
+
name: z84.string(),
|
|
2052
|
+
image: z84.string().optional(),
|
|
2053
|
+
description: z84.string().optional(),
|
|
2054
|
+
documentationLink: z84.string().optional(),
|
|
2018
2055
|
layout: PageBlockDefinitionLayout,
|
|
2019
|
-
maxColumns:
|
|
2020
|
-
defaultColumns:
|
|
2056
|
+
maxColumns: z84.number().optional(),
|
|
2057
|
+
defaultColumns: z84.number().optional(),
|
|
2021
2058
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
2022
2059
|
});
|
|
2023
2060
|
|
|
2024
2061
|
// src/dsm/documentation/block-definitions/item.ts
|
|
2025
|
-
var PageBlockDefinitionPropertyType =
|
|
2062
|
+
var PageBlockDefinitionPropertyType = z85.enum([
|
|
2026
2063
|
"RichText",
|
|
2027
2064
|
"MultiRichText",
|
|
2028
2065
|
"Text",
|
|
@@ -2048,7 +2085,7 @@ var PageBlockDefinitionPropertyType = z82.enum([
|
|
|
2048
2085
|
"Storybook",
|
|
2049
2086
|
"Color"
|
|
2050
2087
|
]);
|
|
2051
|
-
var PageBlockDefinitionRichTextPropertyStyle =
|
|
2088
|
+
var PageBlockDefinitionRichTextPropertyStyle = z85.enum([
|
|
2052
2089
|
"Title1",
|
|
2053
2090
|
"Title2",
|
|
2054
2091
|
"Title3",
|
|
@@ -2058,8 +2095,8 @@ var PageBlockDefinitionRichTextPropertyStyle = z82.enum([
|
|
|
2058
2095
|
"Callout",
|
|
2059
2096
|
"Default"
|
|
2060
2097
|
]);
|
|
2061
|
-
var PageBlockDefinitionMultiRichTextPropertyStyle =
|
|
2062
|
-
var PageBlockDefinitionTextPropertyStyle =
|
|
2098
|
+
var PageBlockDefinitionMultiRichTextPropertyStyle = z85.enum(["OL", "UL", "Default"]);
|
|
2099
|
+
var PageBlockDefinitionTextPropertyStyle = z85.enum([
|
|
2063
2100
|
"Title1",
|
|
2064
2101
|
"Title2",
|
|
2065
2102
|
"Title3",
|
|
@@ -2072,38 +2109,38 @@ var PageBlockDefinitionTextPropertyStyle = z82.enum([
|
|
|
2072
2109
|
"SmallBold",
|
|
2073
2110
|
"SmallSemibold"
|
|
2074
2111
|
]);
|
|
2075
|
-
var PageBlockDefinitionBooleanPropertyStyle =
|
|
2076
|
-
var PageBlockDefinitionSingleSelectPropertyStyle =
|
|
2112
|
+
var PageBlockDefinitionBooleanPropertyStyle = z85.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
|
|
2113
|
+
var PageBlockDefinitionSingleSelectPropertyStyle = z85.enum([
|
|
2077
2114
|
"SegmentedControl",
|
|
2078
2115
|
"ToggleButton",
|
|
2079
2116
|
"Select",
|
|
2080
2117
|
"Checkbox"
|
|
2081
2118
|
]);
|
|
2082
|
-
var PageBlockDefinitionMultiSelectPropertyStyle =
|
|
2083
|
-
var PageBlockDefinitionPropertyOptions =
|
|
2119
|
+
var PageBlockDefinitionMultiSelectPropertyStyle = z85.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
2120
|
+
var PageBlockDefinitionPropertyOptions = z85.object({
|
|
2084
2121
|
richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional(),
|
|
2085
2122
|
multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional(),
|
|
2086
2123
|
textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
|
|
2087
|
-
placeholder:
|
|
2088
|
-
}).and(
|
|
2089
|
-
var PageBlockDefinitionProperty =
|
|
2090
|
-
id:
|
|
2091
|
-
name:
|
|
2124
|
+
placeholder: z85.string().optional()
|
|
2125
|
+
}).and(z85.record(z85.any()));
|
|
2126
|
+
var PageBlockDefinitionProperty = z85.object({
|
|
2127
|
+
id: z85.string(),
|
|
2128
|
+
name: z85.string(),
|
|
2092
2129
|
type: PageBlockDefinitionPropertyType,
|
|
2093
|
-
description:
|
|
2130
|
+
description: z85.string().optional(),
|
|
2094
2131
|
// TODO Docs
|
|
2095
2132
|
options: PageBlockDefinitionPropertyOptions.optional(),
|
|
2096
|
-
variantOptions:
|
|
2133
|
+
variantOptions: z85.record(PageBlockDefinitionPropertyOptions).optional()
|
|
2097
2134
|
});
|
|
2098
|
-
var PageBlockDefinitionItem =
|
|
2099
|
-
properties:
|
|
2135
|
+
var PageBlockDefinitionItem = z85.object({
|
|
2136
|
+
properties: z85.array(PageBlockDefinitionProperty),
|
|
2100
2137
|
appearance: PageBlockDefinitionAppearance.optional(),
|
|
2101
|
-
variants:
|
|
2102
|
-
defaultVariantKey:
|
|
2138
|
+
variants: z85.array(PageBlockDefinitionVariant),
|
|
2139
|
+
defaultVariantKey: z85.string()
|
|
2103
2140
|
});
|
|
2104
2141
|
|
|
2105
2142
|
// src/dsm/documentation/block-definitions/definition.ts
|
|
2106
|
-
var PageBlockCategory =
|
|
2143
|
+
var PageBlockCategory = z86.enum([
|
|
2107
2144
|
"Text",
|
|
2108
2145
|
"Layout",
|
|
2109
2146
|
"Media",
|
|
@@ -2117,153 +2154,153 @@ var PageBlockCategory = z83.enum([
|
|
|
2117
2154
|
"Data",
|
|
2118
2155
|
"Other"
|
|
2119
2156
|
]);
|
|
2120
|
-
var PageBlockBehaviorDataType =
|
|
2121
|
-
var PageBlockBehaviorSelectionType =
|
|
2122
|
-
var PageBlockDefinitionBehavior =
|
|
2157
|
+
var PageBlockBehaviorDataType = z86.enum(["Item", "Token", "Asset", "Component", "FigmaFrame"]);
|
|
2158
|
+
var PageBlockBehaviorSelectionType = z86.enum(["Entity", "Group", "EntityAndGroup"]);
|
|
2159
|
+
var PageBlockDefinitionBehavior = z86.object({
|
|
2123
2160
|
dataType: PageBlockBehaviorDataType,
|
|
2124
|
-
items:
|
|
2125
|
-
numberOfItems:
|
|
2126
|
-
allowLinks:
|
|
2161
|
+
items: z86.object({
|
|
2162
|
+
numberOfItems: z86.number(),
|
|
2163
|
+
allowLinks: z86.boolean()
|
|
2127
2164
|
}).optional(),
|
|
2128
|
-
entities:
|
|
2165
|
+
entities: z86.object({
|
|
2129
2166
|
selectionType: PageBlockBehaviorSelectionType,
|
|
2130
|
-
maxSelected:
|
|
2167
|
+
maxSelected: z86.number()
|
|
2131
2168
|
}).optional()
|
|
2132
2169
|
});
|
|
2133
|
-
var PageBlockDefinitionOnboarding =
|
|
2134
|
-
helpText:
|
|
2135
|
-
documentationLink:
|
|
2170
|
+
var PageBlockDefinitionOnboarding = z86.object({
|
|
2171
|
+
helpText: z86.string(),
|
|
2172
|
+
documentationLink: z86.string().optional()
|
|
2136
2173
|
});
|
|
2137
|
-
var PageBlockDefinition =
|
|
2138
|
-
id:
|
|
2139
|
-
name:
|
|
2140
|
-
description:
|
|
2174
|
+
var PageBlockDefinition = z86.object({
|
|
2175
|
+
id: z86.string(),
|
|
2176
|
+
name: z86.string(),
|
|
2177
|
+
description: z86.string(),
|
|
2141
2178
|
category: PageBlockCategory,
|
|
2142
2179
|
icon: AssetValue.optional(),
|
|
2143
|
-
documentationLink:
|
|
2144
|
-
searchKeywords:
|
|
2180
|
+
documentationLink: z86.string().optional(),
|
|
2181
|
+
searchKeywords: z86.array(z86.string()).optional(),
|
|
2145
2182
|
item: PageBlockDefinitionItem,
|
|
2146
2183
|
behavior: PageBlockDefinitionBehavior,
|
|
2147
|
-
editorOptions:
|
|
2184
|
+
editorOptions: z86.object({
|
|
2148
2185
|
onboarding: PageBlockDefinitionOnboarding.optional()
|
|
2149
2186
|
}),
|
|
2150
2187
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
2151
2188
|
});
|
|
2152
2189
|
|
|
2153
2190
|
// src/dsm/documentation/group.ts
|
|
2154
|
-
import { z as
|
|
2155
|
-
var DocumentationPageGroup =
|
|
2156
|
-
type:
|
|
2157
|
-
childType:
|
|
2158
|
-
id:
|
|
2159
|
-
persistentId:
|
|
2160
|
-
shortPersistentId:
|
|
2161
|
-
designSystemVersionId:
|
|
2162
|
-
parentPersistentId:
|
|
2163
|
-
sortOrder:
|
|
2164
|
-
title:
|
|
2165
|
-
slug:
|
|
2166
|
-
userSlug:
|
|
2167
|
-
createdAt:
|
|
2168
|
-
updatedAt:
|
|
2191
|
+
import { z as z87 } from "zod";
|
|
2192
|
+
var DocumentationPageGroup = z87.object({
|
|
2193
|
+
type: z87.literal("ElementGroup"),
|
|
2194
|
+
childType: z87.literal("DocumentationPage"),
|
|
2195
|
+
id: z87.string(),
|
|
2196
|
+
persistentId: z87.string(),
|
|
2197
|
+
shortPersistentId: z87.string(),
|
|
2198
|
+
designSystemVersionId: z87.string(),
|
|
2199
|
+
parentPersistentId: z87.string().nullish(),
|
|
2200
|
+
sortOrder: z87.number(),
|
|
2201
|
+
title: z87.string(),
|
|
2202
|
+
slug: z87.string(),
|
|
2203
|
+
userSlug: z87.string().nullish(),
|
|
2204
|
+
createdAt: z87.date(),
|
|
2205
|
+
updatedAt: z87.date()
|
|
2169
2206
|
});
|
|
2170
2207
|
|
|
2171
2208
|
// src/dsm/documentation/page.ts
|
|
2172
|
-
import { z as
|
|
2173
|
-
var DocumentationPage =
|
|
2174
|
-
type:
|
|
2175
|
-
id:
|
|
2176
|
-
persistentId:
|
|
2177
|
-
shortPersistentId:
|
|
2178
|
-
designSystemVersionId:
|
|
2179
|
-
parentPersistentId:
|
|
2180
|
-
sortOrder:
|
|
2181
|
-
title:
|
|
2182
|
-
slug:
|
|
2183
|
-
userSlug:
|
|
2184
|
-
createdAt:
|
|
2185
|
-
updatedAt:
|
|
2209
|
+
import { z as z88 } from "zod";
|
|
2210
|
+
var DocumentationPage = z88.object({
|
|
2211
|
+
type: z88.literal("DocumentationPage"),
|
|
2212
|
+
id: z88.string(),
|
|
2213
|
+
persistentId: z88.string(),
|
|
2214
|
+
shortPersistentId: z88.string(),
|
|
2215
|
+
designSystemVersionId: z88.string(),
|
|
2216
|
+
parentPersistentId: z88.string().nullish(),
|
|
2217
|
+
sortOrder: z88.number(),
|
|
2218
|
+
title: z88.string(),
|
|
2219
|
+
slug: z88.string(),
|
|
2220
|
+
userSlug: z88.string().nullish(),
|
|
2221
|
+
createdAt: z88.date(),
|
|
2222
|
+
updatedAt: z88.date()
|
|
2186
2223
|
});
|
|
2187
2224
|
|
|
2188
2225
|
// src/dsm/design-system.ts
|
|
2189
|
-
import { z as
|
|
2226
|
+
import { z as z98 } from "zod";
|
|
2190
2227
|
|
|
2191
2228
|
// src/workspace/npm-registry-settings.ts
|
|
2192
|
-
import { z as
|
|
2193
|
-
var NpmRegistryAuthType =
|
|
2194
|
-
var NpmRegistryType =
|
|
2195
|
-
var NpmRegistryBasicAuthConfig =
|
|
2196
|
-
authType:
|
|
2197
|
-
username:
|
|
2198
|
-
password:
|
|
2199
|
-
});
|
|
2200
|
-
var NpmRegistryBearerAuthConfig =
|
|
2201
|
-
authType:
|
|
2202
|
-
accessToken:
|
|
2203
|
-
});
|
|
2204
|
-
var NpmRegistryNoAuthConfig =
|
|
2205
|
-
authType:
|
|
2206
|
-
});
|
|
2207
|
-
var NpmRegistrCustomAuthConfig =
|
|
2208
|
-
authType:
|
|
2209
|
-
authHeaderName:
|
|
2210
|
-
authHeaderValue:
|
|
2211
|
-
});
|
|
2212
|
-
var NpmRegistryAuthConfig =
|
|
2229
|
+
import { z as z89 } from "zod";
|
|
2230
|
+
var NpmRegistryAuthType = z89.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
2231
|
+
var NpmRegistryType = z89.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
2232
|
+
var NpmRegistryBasicAuthConfig = z89.object({
|
|
2233
|
+
authType: z89.literal(NpmRegistryAuthType.Enum.Basic),
|
|
2234
|
+
username: z89.string(),
|
|
2235
|
+
password: z89.string()
|
|
2236
|
+
});
|
|
2237
|
+
var NpmRegistryBearerAuthConfig = z89.object({
|
|
2238
|
+
authType: z89.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
2239
|
+
accessToken: z89.string()
|
|
2240
|
+
});
|
|
2241
|
+
var NpmRegistryNoAuthConfig = z89.object({
|
|
2242
|
+
authType: z89.literal(NpmRegistryAuthType.Enum.None)
|
|
2243
|
+
});
|
|
2244
|
+
var NpmRegistrCustomAuthConfig = z89.object({
|
|
2245
|
+
authType: z89.literal(NpmRegistryAuthType.Enum.Custom),
|
|
2246
|
+
authHeaderName: z89.string(),
|
|
2247
|
+
authHeaderValue: z89.string()
|
|
2248
|
+
});
|
|
2249
|
+
var NpmRegistryAuthConfig = z89.discriminatedUnion("authType", [
|
|
2213
2250
|
NpmRegistryBasicAuthConfig,
|
|
2214
2251
|
NpmRegistryBearerAuthConfig,
|
|
2215
2252
|
NpmRegistryNoAuthConfig,
|
|
2216
2253
|
NpmRegistrCustomAuthConfig
|
|
2217
2254
|
]);
|
|
2218
|
-
var NpmRegistryConfigBase =
|
|
2255
|
+
var NpmRegistryConfigBase = z89.object({
|
|
2219
2256
|
registryType: NpmRegistryType,
|
|
2220
|
-
enabledScopes:
|
|
2221
|
-
customRegistryUrl:
|
|
2222
|
-
bypassProxy:
|
|
2223
|
-
npmProxyRegistryConfigId:
|
|
2224
|
-
npmProxyVersion:
|
|
2257
|
+
enabledScopes: z89.array(z89.string()),
|
|
2258
|
+
customRegistryUrl: z89.string().optional(),
|
|
2259
|
+
bypassProxy: z89.boolean().default(false),
|
|
2260
|
+
npmProxyRegistryConfigId: z89.string().optional(),
|
|
2261
|
+
npmProxyVersion: z89.number().optional()
|
|
2225
2262
|
});
|
|
2226
2263
|
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
2227
2264
|
|
|
2228
2265
|
// src/workspace/sso-provider.ts
|
|
2229
|
-
import { z as
|
|
2230
|
-
var SsoProvider =
|
|
2231
|
-
providerId:
|
|
2232
|
-
defaultAutoInviteValue:
|
|
2233
|
-
autoInviteDomains:
|
|
2234
|
-
skipDocsSupernovaLogin:
|
|
2235
|
-
areInvitesDisabled:
|
|
2236
|
-
isTestMode:
|
|
2237
|
-
emailDomains:
|
|
2238
|
-
metadataXml:
|
|
2266
|
+
import { z as z90 } from "zod";
|
|
2267
|
+
var SsoProvider = z90.object({
|
|
2268
|
+
providerId: z90.string(),
|
|
2269
|
+
defaultAutoInviteValue: z90.boolean(),
|
|
2270
|
+
autoInviteDomains: z90.record(z90.string(), z90.boolean()),
|
|
2271
|
+
skipDocsSupernovaLogin: z90.boolean(),
|
|
2272
|
+
areInvitesDisabled: z90.boolean(),
|
|
2273
|
+
isTestMode: z90.boolean(),
|
|
2274
|
+
emailDomains: z90.array(z90.string()),
|
|
2275
|
+
metadataXml: z90.string().nullish()
|
|
2239
2276
|
});
|
|
2240
2277
|
|
|
2241
2278
|
// src/workspace/user-invite.ts
|
|
2242
|
-
import { z as
|
|
2279
|
+
import { z as z92 } from "zod";
|
|
2243
2280
|
|
|
2244
2281
|
// src/workspace/workspace-role.ts
|
|
2245
|
-
import { z as
|
|
2246
|
-
var WorkspaceRoleSchema =
|
|
2282
|
+
import { z as z91 } from "zod";
|
|
2283
|
+
var WorkspaceRoleSchema = z91.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
|
|
2247
2284
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
2248
2285
|
|
|
2249
2286
|
// src/workspace/user-invite.ts
|
|
2250
2287
|
var MAX_MEMBERS_COUNT = 100;
|
|
2251
|
-
var UserInvite =
|
|
2252
|
-
email:
|
|
2288
|
+
var UserInvite = z92.object({
|
|
2289
|
+
email: z92.string().email().trim().transform((value) => value.toLowerCase()),
|
|
2253
2290
|
role: WorkspaceRoleSchema
|
|
2254
2291
|
});
|
|
2255
|
-
var UserInvites =
|
|
2292
|
+
var UserInvites = z92.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
2256
2293
|
|
|
2257
2294
|
// src/workspace/workspace-context.ts
|
|
2258
|
-
import { z as
|
|
2259
|
-
var WorkspaceContext =
|
|
2260
|
-
workspaceId:
|
|
2295
|
+
import { z as z93 } from "zod";
|
|
2296
|
+
var WorkspaceContext = z93.object({
|
|
2297
|
+
workspaceId: z93.string(),
|
|
2261
2298
|
product: ProductCodeSchema,
|
|
2262
|
-
publicDesignSystem:
|
|
2299
|
+
publicDesignSystem: z93.boolean().optional()
|
|
2263
2300
|
});
|
|
2264
2301
|
|
|
2265
2302
|
// src/workspace/workspace-create.ts
|
|
2266
|
-
import { z as
|
|
2303
|
+
import { z as z94 } from "zod";
|
|
2267
2304
|
|
|
2268
2305
|
// src/utils/validation.ts
|
|
2269
2306
|
var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
@@ -2273,136 +2310,136 @@ var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
|
2273
2310
|
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
2274
2311
|
var HANDLE_MIN_LENGTH = 2;
|
|
2275
2312
|
var HANDLE_MAX_LENGTH = 64;
|
|
2276
|
-
var CreateWorkspaceInput =
|
|
2277
|
-
name:
|
|
2313
|
+
var CreateWorkspaceInput = z94.object({
|
|
2314
|
+
name: z94.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
2278
2315
|
product: ProductCodeSchema,
|
|
2279
|
-
priceId:
|
|
2280
|
-
billingEmail:
|
|
2281
|
-
handle:
|
|
2316
|
+
priceId: z94.string(),
|
|
2317
|
+
billingEmail: z94.string().email().optional(),
|
|
2318
|
+
handle: z94.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
|
|
2282
2319
|
invites: UserInvites.optional(),
|
|
2283
|
-
promoCode:
|
|
2320
|
+
promoCode: z94.string().optional()
|
|
2284
2321
|
});
|
|
2285
2322
|
|
|
2286
2323
|
// src/workspace/workspace-invitations.ts
|
|
2287
|
-
import { z as
|
|
2288
|
-
var WorkspaceInvitation =
|
|
2289
|
-
id:
|
|
2290
|
-
email:
|
|
2291
|
-
createdAt:
|
|
2292
|
-
resentAt:
|
|
2293
|
-
role:
|
|
2294
|
-
workspaceId:
|
|
2295
|
-
invitedBy:
|
|
2324
|
+
import { z as z95 } from "zod";
|
|
2325
|
+
var WorkspaceInvitation = z95.object({
|
|
2326
|
+
id: z95.string(),
|
|
2327
|
+
email: z95.string().email(),
|
|
2328
|
+
createdAt: z95.date(),
|
|
2329
|
+
resentAt: z95.date().nullish(),
|
|
2330
|
+
role: z95.nativeEnum(WorkspaceRole),
|
|
2331
|
+
workspaceId: z95.string(),
|
|
2332
|
+
invitedBy: z95.string()
|
|
2296
2333
|
});
|
|
2297
2334
|
|
|
2298
2335
|
// src/workspace/workspace-membership.ts
|
|
2299
|
-
import { z as
|
|
2300
|
-
var WorkspaceMembership =
|
|
2301
|
-
id:
|
|
2302
|
-
userId:
|
|
2303
|
-
workspaceId:
|
|
2304
|
-
workspaceRole:
|
|
2336
|
+
import { z as z96 } from "zod";
|
|
2337
|
+
var WorkspaceMembership = z96.object({
|
|
2338
|
+
id: z96.string(),
|
|
2339
|
+
userId: z96.string(),
|
|
2340
|
+
workspaceId: z96.string(),
|
|
2341
|
+
workspaceRole: z96.nativeEnum(WorkspaceRole)
|
|
2305
2342
|
});
|
|
2306
2343
|
|
|
2307
2344
|
// src/workspace/workspace.ts
|
|
2308
|
-
import { z as
|
|
2309
|
-
var WorkspaceIpWhitelistEntry =
|
|
2310
|
-
isEnabled:
|
|
2311
|
-
name:
|
|
2312
|
-
range:
|
|
2313
|
-
});
|
|
2314
|
-
var WorkspaceIpSettings =
|
|
2315
|
-
isEnabledForCloud:
|
|
2316
|
-
isEnabledForDocs:
|
|
2317
|
-
entries:
|
|
2345
|
+
import { z as z97 } from "zod";
|
|
2346
|
+
var WorkspaceIpWhitelistEntry = z97.object({
|
|
2347
|
+
isEnabled: z97.boolean(),
|
|
2348
|
+
name: z97.string(),
|
|
2349
|
+
range: z97.string()
|
|
2350
|
+
});
|
|
2351
|
+
var WorkspaceIpSettings = z97.object({
|
|
2352
|
+
isEnabledForCloud: z97.boolean(),
|
|
2353
|
+
isEnabledForDocs: z97.boolean(),
|
|
2354
|
+
entries: z97.array(WorkspaceIpWhitelistEntry)
|
|
2318
2355
|
}).nullish();
|
|
2319
|
-
var WorkspaceProfile =
|
|
2320
|
-
name:
|
|
2321
|
-
handle:
|
|
2322
|
-
color:
|
|
2323
|
-
avatar:
|
|
2356
|
+
var WorkspaceProfile = z97.object({
|
|
2357
|
+
name: z97.string(),
|
|
2358
|
+
handle: z97.string(),
|
|
2359
|
+
color: z97.string(),
|
|
2360
|
+
avatar: z97.string().optional(),
|
|
2324
2361
|
billingDetails: BillingDetails.optional()
|
|
2325
2362
|
});
|
|
2326
|
-
var Workspace =
|
|
2327
|
-
id:
|
|
2363
|
+
var Workspace = z97.object({
|
|
2364
|
+
id: z97.string(),
|
|
2328
2365
|
profile: WorkspaceProfile,
|
|
2329
2366
|
subscription: Subscription,
|
|
2330
2367
|
ipWhitelist: WorkspaceIpSettings,
|
|
2331
2368
|
sso: SsoProvider.nullish(),
|
|
2332
|
-
npmRegistrySettings:
|
|
2333
|
-
designSystems:
|
|
2369
|
+
npmRegistrySettings: z97.unknown().optional(),
|
|
2370
|
+
designSystems: z97.array(DesignSystem).nullish()
|
|
2334
2371
|
});
|
|
2335
|
-
var WorkspaceWithDesignSystems =
|
|
2372
|
+
var WorkspaceWithDesignSystems = z97.object({
|
|
2336
2373
|
workspace: Workspace,
|
|
2337
|
-
designSystems:
|
|
2374
|
+
designSystems: z97.array(DesignSystem)
|
|
2338
2375
|
});
|
|
2339
2376
|
|
|
2340
2377
|
// src/dsm/design-system.ts
|
|
2341
|
-
var DesignSystemSwitcher =
|
|
2342
|
-
isEnabled:
|
|
2343
|
-
designSystemIds:
|
|
2378
|
+
var DesignSystemSwitcher = z98.object({
|
|
2379
|
+
isEnabled: z98.boolean(),
|
|
2380
|
+
designSystemIds: z98.string()
|
|
2344
2381
|
});
|
|
2345
|
-
var DesignSystem =
|
|
2346
|
-
id:
|
|
2347
|
-
workspaceId:
|
|
2348
|
-
name:
|
|
2349
|
-
description:
|
|
2350
|
-
docExporterId:
|
|
2351
|
-
docSlug:
|
|
2352
|
-
docUserSlug:
|
|
2353
|
-
docSlugDeprecated:
|
|
2354
|
-
isPublic:
|
|
2355
|
-
isMultibrand:
|
|
2356
|
-
docViewUrl:
|
|
2357
|
-
basePrefixes:
|
|
2382
|
+
var DesignSystem = z98.object({
|
|
2383
|
+
id: z98.string(),
|
|
2384
|
+
workspaceId: z98.string(),
|
|
2385
|
+
name: z98.string(),
|
|
2386
|
+
description: z98.string(),
|
|
2387
|
+
docExporterId: z98.string().nullish(),
|
|
2388
|
+
docSlug: z98.string(),
|
|
2389
|
+
docUserSlug: z98.string().nullish(),
|
|
2390
|
+
docSlugDeprecated: z98.string(),
|
|
2391
|
+
isPublic: z98.boolean(),
|
|
2392
|
+
isMultibrand: z98.boolean(),
|
|
2393
|
+
docViewUrl: z98.string().nullish(),
|
|
2394
|
+
basePrefixes: z98.array(z98.string()),
|
|
2358
2395
|
designSystemSwitcher: DesignSystemSwitcher.nullish(),
|
|
2359
|
-
createdAt:
|
|
2360
|
-
updatedAt:
|
|
2396
|
+
createdAt: z98.date(),
|
|
2397
|
+
updatedAt: z98.date()
|
|
2361
2398
|
});
|
|
2362
|
-
var DesignSystemWithWorkspace =
|
|
2399
|
+
var DesignSystemWithWorkspace = z98.object({
|
|
2363
2400
|
designSystem: DesignSystem,
|
|
2364
2401
|
workspace: Workspace
|
|
2365
2402
|
});
|
|
2366
2403
|
|
|
2367
2404
|
// src/dsm/desing-system-create.ts
|
|
2368
|
-
import { z as
|
|
2405
|
+
import { z as z99 } from "zod";
|
|
2369
2406
|
var DS_NAME_MIN_LENGTH = 2;
|
|
2370
2407
|
var DS_NAME_MAX_LENGTH = 64;
|
|
2371
2408
|
var DS_DESC_MIN_LENGTH = 2;
|
|
2372
2409
|
var DS_DESC_MAX_LENGTH = 64;
|
|
2373
|
-
var DesignSystemCreateInputMetadata =
|
|
2374
|
-
name:
|
|
2375
|
-
description:
|
|
2410
|
+
var DesignSystemCreateInputMetadata = z99.object({
|
|
2411
|
+
name: z99.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
|
|
2412
|
+
description: z99.string().min(DS_DESC_MIN_LENGTH).max(DS_DESC_MAX_LENGTH).trim()
|
|
2376
2413
|
});
|
|
2377
|
-
var DesignSystemCreateInput =
|
|
2414
|
+
var DesignSystemCreateInput = z99.object({
|
|
2378
2415
|
meta: DesignSystemCreateInputMetadata,
|
|
2379
|
-
workspaceId:
|
|
2380
|
-
isPublic:
|
|
2381
|
-
basePrefixes:
|
|
2382
|
-
docUserSlug:
|
|
2383
|
-
source:
|
|
2416
|
+
workspaceId: z99.string(),
|
|
2417
|
+
isPublic: z99.boolean().optional(),
|
|
2418
|
+
basePrefixes: z99.array(z99.string()).optional(),
|
|
2419
|
+
docUserSlug: z99.string().nullish().optional(),
|
|
2420
|
+
source: z99.array(z99.string()).optional()
|
|
2384
2421
|
});
|
|
2385
2422
|
|
|
2386
2423
|
// src/dsm/desing-system-update.ts
|
|
2387
|
-
import { z as
|
|
2424
|
+
import { z as z100 } from "zod";
|
|
2388
2425
|
var DS_NAME_MIN_LENGTH2 = 2;
|
|
2389
2426
|
var DS_NAME_MAX_LENGTH2 = 64;
|
|
2390
2427
|
var DS_DESC_MIN_LENGTH2 = 2;
|
|
2391
2428
|
var DS_DESC_MAX_LENGTH2 = 64;
|
|
2392
|
-
var DesignSystemUpdateInputMetadata =
|
|
2393
|
-
name:
|
|
2394
|
-
description:
|
|
2429
|
+
var DesignSystemUpdateInputMetadata = z100.object({
|
|
2430
|
+
name: z100.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
|
|
2431
|
+
description: z100.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional()
|
|
2395
2432
|
});
|
|
2396
|
-
var DesignSystemUpdateInput =
|
|
2433
|
+
var DesignSystemUpdateInput = z100.object({
|
|
2397
2434
|
meta: DesignSystemUpdateInputMetadata.optional(),
|
|
2398
|
-
workspaceId:
|
|
2399
|
-
isPublic:
|
|
2400
|
-
basePrefixes:
|
|
2401
|
-
docUserSlug:
|
|
2402
|
-
source:
|
|
2403
|
-
name:
|
|
2404
|
-
description:
|
|
2405
|
-
docExporterId:
|
|
2435
|
+
workspaceId: z100.string().optional(),
|
|
2436
|
+
isPublic: z100.boolean().optional(),
|
|
2437
|
+
basePrefixes: z100.array(z100.string()).optional(),
|
|
2438
|
+
docUserSlug: z100.string().nullish().optional(),
|
|
2439
|
+
source: z100.array(z100.string()).optional(),
|
|
2440
|
+
name: z100.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
|
|
2441
|
+
description: z100.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional(),
|
|
2442
|
+
docExporterId: z100.string().optional()
|
|
2406
2443
|
});
|
|
2407
2444
|
|
|
2408
2445
|
// src/dsm/published-doc-page.ts
|
|
@@ -2414,68 +2451,68 @@ function tryParseShortPersistentId(url = "/") {
|
|
|
2414
2451
|
}
|
|
2415
2452
|
|
|
2416
2453
|
// src/dsm/published-doc.ts
|
|
2417
|
-
import { z as
|
|
2454
|
+
import { z as z101 } from "zod";
|
|
2418
2455
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
2419
|
-
var PublishedDocEnvironment =
|
|
2420
|
-
var PublishedDocsChecksums =
|
|
2421
|
-
var PublishedDocRoutingVersion =
|
|
2422
|
-
var PublishedDoc =
|
|
2423
|
-
id:
|
|
2424
|
-
designSystemVersionId:
|
|
2425
|
-
createdAt:
|
|
2426
|
-
updatedAt:
|
|
2427
|
-
lastPublishedAt:
|
|
2428
|
-
isDefault:
|
|
2429
|
-
isPublic:
|
|
2456
|
+
var PublishedDocEnvironment = z101.enum(publishedDocEnvironments);
|
|
2457
|
+
var PublishedDocsChecksums = z101.record(z101.string());
|
|
2458
|
+
var PublishedDocRoutingVersion = z101.enum(["1", "2"]);
|
|
2459
|
+
var PublishedDoc = z101.object({
|
|
2460
|
+
id: z101.string(),
|
|
2461
|
+
designSystemVersionId: z101.string(),
|
|
2462
|
+
createdAt: z101.date(),
|
|
2463
|
+
updatedAt: z101.date(),
|
|
2464
|
+
lastPublishedAt: z101.date(),
|
|
2465
|
+
isDefault: z101.boolean(),
|
|
2466
|
+
isPublic: z101.boolean(),
|
|
2430
2467
|
environment: PublishedDocEnvironment,
|
|
2431
2468
|
checksums: PublishedDocsChecksums,
|
|
2432
|
-
storagePath:
|
|
2433
|
-
wasMigrated:
|
|
2469
|
+
storagePath: z101.string(),
|
|
2470
|
+
wasMigrated: z101.boolean(),
|
|
2434
2471
|
routingVersion: PublishedDocRoutingVersion,
|
|
2435
|
-
usesLocalizations:
|
|
2436
|
-
wasPublishedWithLocalizations:
|
|
2472
|
+
usesLocalizations: z101.boolean(),
|
|
2473
|
+
wasPublishedWithLocalizations: z101.boolean()
|
|
2437
2474
|
});
|
|
2438
2475
|
|
|
2439
2476
|
// src/codegen/export-jobs.ts
|
|
2440
|
-
import { z as
|
|
2441
|
-
var ExportJobStatus =
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2477
|
+
import { z as z102 } from "zod";
|
|
2478
|
+
var ExportJobStatus = z102.union([
|
|
2479
|
+
z102.literal("Success"),
|
|
2480
|
+
z102.literal("InProgress"),
|
|
2481
|
+
z102.literal("Timeout"),
|
|
2482
|
+
z102.literal("Failed")
|
|
2446
2483
|
]);
|
|
2447
|
-
var ExportJob =
|
|
2448
|
-
id:
|
|
2449
|
-
workspaceId:
|
|
2450
|
-
designSystemId:
|
|
2451
|
-
designSystemVersionId:
|
|
2484
|
+
var ExportJob = z102.object({
|
|
2485
|
+
id: z102.string(),
|
|
2486
|
+
workspaceId: z102.string(),
|
|
2487
|
+
designSystemId: z102.string(),
|
|
2488
|
+
designSystemVersionId: z102.string(),
|
|
2452
2489
|
status: ExportJobStatus,
|
|
2453
|
-
docsUrl:
|
|
2454
|
-
scheduleId:
|
|
2455
|
-
exporterId:
|
|
2456
|
-
createdAt:
|
|
2490
|
+
docsUrl: z102.string().nullish(),
|
|
2491
|
+
scheduleId: z102.string().nullish(),
|
|
2492
|
+
exporterId: z102.string().nullish(),
|
|
2493
|
+
createdAt: z102.date(),
|
|
2457
2494
|
environment: PublishedDocEnvironment,
|
|
2458
|
-
finishedAt:
|
|
2495
|
+
finishedAt: z102.date().nullish()
|
|
2459
2496
|
});
|
|
2460
2497
|
|
|
2461
2498
|
// src/codegen/exporter-workspace-membership-role.ts
|
|
2462
|
-
import { z as
|
|
2463
|
-
var ExporterWorkspaceMembershipRole =
|
|
2499
|
+
import { z as z103 } from "zod";
|
|
2500
|
+
var ExporterWorkspaceMembershipRole = z103.enum(["Owner", "OwnerArchived", "User"]);
|
|
2464
2501
|
|
|
2465
2502
|
// src/codegen/exporter-workspace-membership.ts
|
|
2466
|
-
import { z as
|
|
2467
|
-
var ExporterWorkspaceMembership =
|
|
2468
|
-
id:
|
|
2469
|
-
workspaceId:
|
|
2470
|
-
exporterId:
|
|
2503
|
+
import { z as z104 } from "zod";
|
|
2504
|
+
var ExporterWorkspaceMembership = z104.object({
|
|
2505
|
+
id: z104.string(),
|
|
2506
|
+
workspaceId: z104.string(),
|
|
2507
|
+
exporterId: z104.string(),
|
|
2471
2508
|
role: ExporterWorkspaceMembershipRole
|
|
2472
2509
|
});
|
|
2473
2510
|
|
|
2474
2511
|
// src/codegen/exporter.ts
|
|
2475
|
-
import { z as
|
|
2512
|
+
import { z as z107 } from "zod";
|
|
2476
2513
|
|
|
2477
2514
|
// src/codegen/git-providers.ts
|
|
2478
|
-
import { z as
|
|
2515
|
+
import { z as z105 } from "zod";
|
|
2479
2516
|
var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
2480
2517
|
GitProviderNames2["Azure"] = "azure";
|
|
2481
2518
|
GitProviderNames2["Github"] = "github";
|
|
@@ -2483,18 +2520,18 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
|
2483
2520
|
GitProviderNames2["Bitbucket"] = "bitbucket";
|
|
2484
2521
|
return GitProviderNames2;
|
|
2485
2522
|
})(GitProviderNames || {});
|
|
2486
|
-
var GitProvider =
|
|
2523
|
+
var GitProvider = z105.nativeEnum(GitProviderNames);
|
|
2487
2524
|
|
|
2488
2525
|
// src/codegen/pulsar.ts
|
|
2489
|
-
import { z as
|
|
2490
|
-
var PulsarContributionVariant =
|
|
2491
|
-
key:
|
|
2492
|
-
name:
|
|
2493
|
-
isDefault:
|
|
2494
|
-
description:
|
|
2495
|
-
thumbnailURL:
|
|
2496
|
-
});
|
|
2497
|
-
var PulsarPropertyType =
|
|
2526
|
+
import { z as z106 } from "zod";
|
|
2527
|
+
var PulsarContributionVariant = z106.object({
|
|
2528
|
+
key: z106.string(),
|
|
2529
|
+
name: z106.string(),
|
|
2530
|
+
isDefault: z106.boolean().optional(),
|
|
2531
|
+
description: z106.string().optional(),
|
|
2532
|
+
thumbnailURL: z106.string().optional()
|
|
2533
|
+
});
|
|
2534
|
+
var PulsarPropertyType = z106.enum([
|
|
2498
2535
|
"string",
|
|
2499
2536
|
"number",
|
|
2500
2537
|
"boolean",
|
|
@@ -2507,99 +2544,99 @@ var PulsarPropertyType = z103.enum([
|
|
|
2507
2544
|
"tokenProperties",
|
|
2508
2545
|
"tokenType"
|
|
2509
2546
|
]);
|
|
2510
|
-
var BasePulsarProperty =
|
|
2511
|
-
label:
|
|
2512
|
-
key:
|
|
2513
|
-
description:
|
|
2547
|
+
var BasePulsarProperty = z106.object({
|
|
2548
|
+
label: z106.string(),
|
|
2549
|
+
key: z106.string(),
|
|
2550
|
+
description: z106.string().optional(),
|
|
2514
2551
|
type: PulsarPropertyType,
|
|
2515
|
-
values:
|
|
2516
|
-
default:
|
|
2552
|
+
values: z106.array(z106.string()).optional(),
|
|
2553
|
+
default: z106.union([z106.string(), z106.boolean(), z106.number()]).nullish(),
|
|
2517
2554
|
// PulsarPropertyValueType //is optional?
|
|
2518
|
-
inputType:
|
|
2555
|
+
inputType: z106.enum(["code", "plain"]).optional(),
|
|
2519
2556
|
//is optional?
|
|
2520
|
-
isMultiline:
|
|
2557
|
+
isMultiline: z106.boolean().optional()
|
|
2521
2558
|
});
|
|
2522
|
-
var PulsarContributionBlock =
|
|
2523
|
-
title:
|
|
2524
|
-
key:
|
|
2525
|
-
category:
|
|
2526
|
-
description:
|
|
2527
|
-
iconURL:
|
|
2528
|
-
mode:
|
|
2529
|
-
properties:
|
|
2559
|
+
var PulsarContributionBlock = z106.object({
|
|
2560
|
+
title: z106.string(),
|
|
2561
|
+
key: z106.string(),
|
|
2562
|
+
category: z106.string(),
|
|
2563
|
+
description: z106.string().optional(),
|
|
2564
|
+
iconURL: z106.string(),
|
|
2565
|
+
mode: z106.enum(["array", "block"]),
|
|
2566
|
+
properties: z106.array(BasePulsarProperty)
|
|
2530
2567
|
});
|
|
2531
|
-
var PulsarContributionConfigurationProperty = BasePulsarProperty.extend({ category:
|
|
2568
|
+
var PulsarContributionConfigurationProperty = BasePulsarProperty.extend({ category: z106.string() });
|
|
2532
2569
|
|
|
2533
2570
|
// src/codegen/exporter.ts
|
|
2534
|
-
var ExporterType =
|
|
2535
|
-
var ExporterSource =
|
|
2536
|
-
var ExporterTag =
|
|
2537
|
-
var ExporterDetails =
|
|
2538
|
-
packageId:
|
|
2539
|
-
version:
|
|
2540
|
-
description:
|
|
2541
|
-
author: nullishToOptional(
|
|
2542
|
-
organization: nullishToOptional(
|
|
2543
|
-
homepage: nullishToOptional(
|
|
2544
|
-
readme: nullishToOptional(
|
|
2545
|
-
tags:
|
|
2546
|
-
routingVersion: nullishToOptional(
|
|
2547
|
-
iconURL: nullishToOptional(
|
|
2548
|
-
configurationProperties:
|
|
2549
|
-
customBlocks:
|
|
2550
|
-
blockVariants:
|
|
2551
|
-
usesBrands:
|
|
2552
|
-
usesThemes:
|
|
2571
|
+
var ExporterType = z107.enum(["code", "documentation"]);
|
|
2572
|
+
var ExporterSource = z107.enum(["git", "upload"]);
|
|
2573
|
+
var ExporterTag = z107.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
|
|
2574
|
+
var ExporterDetails = z107.object({
|
|
2575
|
+
packageId: z107.string().max(255),
|
|
2576
|
+
version: z107.string(),
|
|
2577
|
+
description: z107.string(),
|
|
2578
|
+
author: nullishToOptional(z107.string()),
|
|
2579
|
+
organization: nullishToOptional(z107.string()),
|
|
2580
|
+
homepage: nullishToOptional(z107.string()),
|
|
2581
|
+
readme: nullishToOptional(z107.string()),
|
|
2582
|
+
tags: z107.array(ExporterTag).default([]),
|
|
2583
|
+
routingVersion: nullishToOptional(z107.string()),
|
|
2584
|
+
iconURL: nullishToOptional(z107.string()),
|
|
2585
|
+
configurationProperties: z107.array(PulsarContributionConfigurationProperty).default([]),
|
|
2586
|
+
customBlocks: z107.array(PulsarContributionBlock).default([]),
|
|
2587
|
+
blockVariants: z107.record(z107.string(), z107.array(PulsarContributionVariant)).default({}),
|
|
2588
|
+
usesBrands: z107.boolean().default(false),
|
|
2589
|
+
usesThemes: z107.boolean().default(false),
|
|
2553
2590
|
source: ExporterSource,
|
|
2554
2591
|
gitProvider: nullishToOptional(GitProvider),
|
|
2555
|
-
gitUrl: nullishToOptional(
|
|
2556
|
-
gitBranch: nullishToOptional(
|
|
2557
|
-
gitDirectory: nullishToOptional(
|
|
2592
|
+
gitUrl: nullishToOptional(z107.string()),
|
|
2593
|
+
gitBranch: nullishToOptional(z107.string()),
|
|
2594
|
+
gitDirectory: nullishToOptional(z107.string())
|
|
2558
2595
|
});
|
|
2559
|
-
var Exporter =
|
|
2560
|
-
id:
|
|
2561
|
-
createdAt:
|
|
2562
|
-
name:
|
|
2563
|
-
isPrivate:
|
|
2596
|
+
var Exporter = z107.object({
|
|
2597
|
+
id: z107.string(),
|
|
2598
|
+
createdAt: z107.coerce.date(),
|
|
2599
|
+
name: z107.string(),
|
|
2600
|
+
isPrivate: z107.boolean(),
|
|
2564
2601
|
details: ExporterDetails,
|
|
2565
2602
|
exporterType: ExporterType.default("code"),
|
|
2566
|
-
storagePath:
|
|
2603
|
+
storagePath: z107.string().default("")
|
|
2567
2604
|
});
|
|
2568
2605
|
|
|
2569
2606
|
// src/custom-domains/custom-domains.ts
|
|
2570
|
-
import { z as
|
|
2571
|
-
var CustomDomain =
|
|
2572
|
-
id:
|
|
2573
|
-
designSystemId:
|
|
2574
|
-
state:
|
|
2575
|
-
supernovaDomain:
|
|
2576
|
-
customerDomain:
|
|
2577
|
-
error:
|
|
2578
|
-
errorCode:
|
|
2607
|
+
import { z as z108 } from "zod";
|
|
2608
|
+
var CustomDomain = z108.object({
|
|
2609
|
+
id: z108.string(),
|
|
2610
|
+
designSystemId: z108.string(),
|
|
2611
|
+
state: z108.string(),
|
|
2612
|
+
supernovaDomain: z108.string(),
|
|
2613
|
+
customerDomain: z108.string().nullish(),
|
|
2614
|
+
error: z108.string().nullish(),
|
|
2615
|
+
errorCode: z108.string().nullish()
|
|
2579
2616
|
});
|
|
2580
2617
|
|
|
2581
2618
|
// src/docs-server/session.ts
|
|
2582
|
-
import { z as
|
|
2619
|
+
import { z as z113 } from "zod";
|
|
2583
2620
|
|
|
2584
2621
|
// src/users/linked-integrations.ts
|
|
2585
|
-
import { z as
|
|
2586
|
-
var IntegrationAuthType =
|
|
2587
|
-
var ExternalServiceType =
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2622
|
+
import { z as z109 } from "zod";
|
|
2623
|
+
var IntegrationAuthType = z109.union([z109.literal("OAuth2"), z109.literal("PAT")]);
|
|
2624
|
+
var ExternalServiceType = z109.union([
|
|
2625
|
+
z109.literal("figma"),
|
|
2626
|
+
z109.literal("github"),
|
|
2627
|
+
z109.literal("azure"),
|
|
2628
|
+
z109.literal("gitlab"),
|
|
2629
|
+
z109.literal("bitbucket")
|
|
2593
2630
|
]);
|
|
2594
|
-
var IntegrationUserInfo =
|
|
2595
|
-
id:
|
|
2596
|
-
handle:
|
|
2597
|
-
avatarUrl:
|
|
2598
|
-
email:
|
|
2631
|
+
var IntegrationUserInfo = z109.object({
|
|
2632
|
+
id: z109.string(),
|
|
2633
|
+
handle: z109.string().optional(),
|
|
2634
|
+
avatarUrl: z109.string().optional(),
|
|
2635
|
+
email: z109.string().optional(),
|
|
2599
2636
|
authType: IntegrationAuthType.optional(),
|
|
2600
|
-
customUrl:
|
|
2637
|
+
customUrl: z109.string().optional()
|
|
2601
2638
|
});
|
|
2602
|
-
var UserLinkedIntegrations =
|
|
2639
|
+
var UserLinkedIntegrations = z109.object({
|
|
2603
2640
|
figma: IntegrationUserInfo.optional(),
|
|
2604
2641
|
github: IntegrationUserInfo.array().optional(),
|
|
2605
2642
|
azure: IntegrationUserInfo.array().optional(),
|
|
@@ -2608,86 +2645,86 @@ var UserLinkedIntegrations = z106.object({
|
|
|
2608
2645
|
});
|
|
2609
2646
|
|
|
2610
2647
|
// src/users/user-identity.ts
|
|
2611
|
-
import { z as
|
|
2612
|
-
var UserIdentity =
|
|
2613
|
-
id:
|
|
2614
|
-
userId:
|
|
2648
|
+
import { z as z110 } from "zod";
|
|
2649
|
+
var UserIdentity = z110.object({
|
|
2650
|
+
id: z110.string(),
|
|
2651
|
+
userId: z110.string()
|
|
2615
2652
|
});
|
|
2616
2653
|
|
|
2617
2654
|
// src/users/user-profile.ts
|
|
2618
|
-
import { z as
|
|
2619
|
-
var UserOnboardingDepartment =
|
|
2620
|
-
var UserOnboardingJobLevel =
|
|
2621
|
-
var UserOnboarding =
|
|
2622
|
-
companyName:
|
|
2623
|
-
numberOfPeopleInOrg:
|
|
2624
|
-
numberOfPeopleInDesignTeam:
|
|
2655
|
+
import { z as z111 } from "zod";
|
|
2656
|
+
var UserOnboardingDepartment = z111.enum(["Design", "Engineering", "Brand", "Other"]);
|
|
2657
|
+
var UserOnboardingJobLevel = z111.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
2658
|
+
var UserOnboarding = z111.object({
|
|
2659
|
+
companyName: z111.string().optional(),
|
|
2660
|
+
numberOfPeopleInOrg: z111.string().optional(),
|
|
2661
|
+
numberOfPeopleInDesignTeam: z111.string().optional(),
|
|
2625
2662
|
department: UserOnboardingDepartment.optional(),
|
|
2626
|
-
jobTitle:
|
|
2627
|
-
phase:
|
|
2663
|
+
jobTitle: z111.string().optional(),
|
|
2664
|
+
phase: z111.string().optional(),
|
|
2628
2665
|
jobLevel: UserOnboardingJobLevel.optional()
|
|
2629
2666
|
});
|
|
2630
|
-
var UserProfile =
|
|
2631
|
-
name:
|
|
2632
|
-
avatar:
|
|
2633
|
-
nickname:
|
|
2667
|
+
var UserProfile = z111.object({
|
|
2668
|
+
name: z111.string(),
|
|
2669
|
+
avatar: z111.string().optional(),
|
|
2670
|
+
nickname: z111.string().optional(),
|
|
2634
2671
|
onboarding: UserOnboarding.optional()
|
|
2635
2672
|
});
|
|
2636
2673
|
|
|
2637
2674
|
// src/users/user.ts
|
|
2638
|
-
import { z as
|
|
2639
|
-
var User =
|
|
2640
|
-
id:
|
|
2641
|
-
email:
|
|
2642
|
-
emailVerified:
|
|
2643
|
-
createdAt:
|
|
2644
|
-
trialExpiresAt:
|
|
2675
|
+
import { z as z112 } from "zod";
|
|
2676
|
+
var User = z112.object({
|
|
2677
|
+
id: z112.string(),
|
|
2678
|
+
email: z112.string(),
|
|
2679
|
+
emailVerified: z112.boolean(),
|
|
2680
|
+
createdAt: z112.date(),
|
|
2681
|
+
trialExpiresAt: z112.date().optional(),
|
|
2645
2682
|
profile: UserProfile,
|
|
2646
2683
|
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
2647
|
-
loggedOutAt:
|
|
2648
|
-
isProtected:
|
|
2684
|
+
loggedOutAt: z112.date().optional(),
|
|
2685
|
+
isProtected: z112.boolean()
|
|
2649
2686
|
});
|
|
2650
2687
|
|
|
2651
2688
|
// src/docs-server/session.ts
|
|
2652
|
-
var NpmProxyToken =
|
|
2653
|
-
access:
|
|
2654
|
-
expiresAt:
|
|
2689
|
+
var NpmProxyToken = z113.object({
|
|
2690
|
+
access: z113.string(),
|
|
2691
|
+
expiresAt: z113.number()
|
|
2655
2692
|
});
|
|
2656
|
-
var SessionData =
|
|
2657
|
-
returnToUrl:
|
|
2693
|
+
var SessionData = z113.object({
|
|
2694
|
+
returnToUrl: z113.string().optional(),
|
|
2658
2695
|
npmProxyToken: NpmProxyToken.optional()
|
|
2659
2696
|
});
|
|
2660
|
-
var Session =
|
|
2661
|
-
id:
|
|
2662
|
-
expiresAt:
|
|
2663
|
-
userId:
|
|
2697
|
+
var Session = z113.object({
|
|
2698
|
+
id: z113.string(),
|
|
2699
|
+
expiresAt: z113.date(),
|
|
2700
|
+
userId: z113.string().nullable(),
|
|
2664
2701
|
data: SessionData
|
|
2665
2702
|
});
|
|
2666
|
-
var AuthTokens =
|
|
2667
|
-
access:
|
|
2668
|
-
refresh:
|
|
2703
|
+
var AuthTokens = z113.object({
|
|
2704
|
+
access: z113.string(),
|
|
2705
|
+
refresh: z113.string()
|
|
2669
2706
|
});
|
|
2670
|
-
var UserSession =
|
|
2707
|
+
var UserSession = z113.object({
|
|
2671
2708
|
session: Session,
|
|
2672
2709
|
user: User.nullable()
|
|
2673
2710
|
});
|
|
2674
2711
|
|
|
2675
2712
|
// src/feature-flags/feature-flags.ts
|
|
2676
|
-
import { z as
|
|
2677
|
-
var FlaggedFeature =
|
|
2678
|
-
var FeatureFlagMap =
|
|
2679
|
-
var FeatureFlag =
|
|
2680
|
-
id:
|
|
2713
|
+
import { z as z114 } from "zod";
|
|
2714
|
+
var FlaggedFeature = z114.enum(["FigmaImporterV2"]);
|
|
2715
|
+
var FeatureFlagMap = z114.record(FlaggedFeature, z114.boolean());
|
|
2716
|
+
var FeatureFlag = z114.object({
|
|
2717
|
+
id: z114.string(),
|
|
2681
2718
|
feature: FlaggedFeature,
|
|
2682
|
-
createdAt:
|
|
2683
|
-
enabled:
|
|
2719
|
+
createdAt: z114.date(),
|
|
2720
|
+
enabled: z114.boolean()
|
|
2684
2721
|
});
|
|
2685
2722
|
|
|
2686
2723
|
// src/integrations/external-oauth-request.ts
|
|
2687
|
-
import { z as
|
|
2724
|
+
import { z as z116 } from "zod";
|
|
2688
2725
|
|
|
2689
2726
|
// src/integrations/oauth-providers.ts
|
|
2690
|
-
import { z as
|
|
2727
|
+
import { z as z115 } from "zod";
|
|
2691
2728
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
2692
2729
|
OAuthProviderNames2["Figma"] = "figma";
|
|
2693
2730
|
OAuthProviderNames2["Azure"] = "azure";
|
|
@@ -2696,112 +2733,122 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
2696
2733
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
2697
2734
|
return OAuthProviderNames2;
|
|
2698
2735
|
})(OAuthProviderNames || {});
|
|
2699
|
-
var OAuthProviderSchema =
|
|
2736
|
+
var OAuthProviderSchema = z115.nativeEnum(OAuthProviderNames);
|
|
2700
2737
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
2701
2738
|
|
|
2702
2739
|
// src/integrations/external-oauth-request.ts
|
|
2703
|
-
var ExternalOAuthRequest =
|
|
2704
|
-
id:
|
|
2740
|
+
var ExternalOAuthRequest = z116.object({
|
|
2741
|
+
id: z116.string(),
|
|
2705
2742
|
provider: OAuthProviderSchema,
|
|
2706
|
-
userId:
|
|
2707
|
-
state:
|
|
2708
|
-
createdAt:
|
|
2743
|
+
userId: z116.string(),
|
|
2744
|
+
state: z116.string(),
|
|
2745
|
+
createdAt: z116.date()
|
|
2709
2746
|
});
|
|
2710
2747
|
|
|
2711
2748
|
// src/integrations/oauth-token.ts
|
|
2712
|
-
import { z as
|
|
2713
|
-
var IntegrationTokenSchema =
|
|
2714
|
-
id:
|
|
2749
|
+
import { z as z117 } from "zod";
|
|
2750
|
+
var IntegrationTokenSchema = z117.object({
|
|
2751
|
+
id: z117.string(),
|
|
2715
2752
|
provider: OAuthProviderSchema,
|
|
2716
|
-
scope:
|
|
2717
|
-
userId:
|
|
2718
|
-
accessToken:
|
|
2719
|
-
refreshToken:
|
|
2720
|
-
expiresAt:
|
|
2721
|
-
externalUserId:
|
|
2753
|
+
scope: z117.string(),
|
|
2754
|
+
userId: z117.string(),
|
|
2755
|
+
accessToken: z117.string(),
|
|
2756
|
+
refreshToken: z117.string(),
|
|
2757
|
+
expiresAt: z117.date(),
|
|
2758
|
+
externalUserId: z117.string().nullish()
|
|
2722
2759
|
});
|
|
2723
2760
|
|
|
2724
2761
|
// src/multiplayer/design-system-version-room.ts
|
|
2725
|
-
import { z as
|
|
2762
|
+
import { z as z118 } from "zod";
|
|
2726
2763
|
var DesignSystemVersionRoom = Entity.extend({
|
|
2727
|
-
designSystemVersionId:
|
|
2728
|
-
liveblocksId:
|
|
2764
|
+
designSystemVersionId: z118.string(),
|
|
2765
|
+
liveblocksId: z118.string()
|
|
2729
2766
|
});
|
|
2730
2767
|
|
|
2731
2768
|
// src/multiplayer/documentation-page-room.ts
|
|
2732
|
-
import { z as
|
|
2769
|
+
import { z as z119 } from "zod";
|
|
2733
2770
|
var DocumentationPageRoom = Entity.extend({
|
|
2734
|
-
designSystemVersionId:
|
|
2735
|
-
documentationPageId:
|
|
2736
|
-
liveblocksId:
|
|
2771
|
+
designSystemVersionId: z119.string(),
|
|
2772
|
+
documentationPageId: z119.string(),
|
|
2773
|
+
liveblocksId: z119.string()
|
|
2737
2774
|
});
|
|
2738
2775
|
|
|
2776
|
+
// src/multiplayer/room-type.ts
|
|
2777
|
+
import { z as z120 } from "zod";
|
|
2778
|
+
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
2779
|
+
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
2780
|
+
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
2781
|
+
return RoomTypeEnum2;
|
|
2782
|
+
})(RoomTypeEnum || {});
|
|
2783
|
+
var RoomTypeSchema = z120.nativeEnum(RoomTypeEnum);
|
|
2784
|
+
var RoomType = RoomTypeSchema.enum;
|
|
2785
|
+
|
|
2739
2786
|
// src/npm/npm-package.ts
|
|
2740
|
-
import { z as
|
|
2741
|
-
var AnyRecord =
|
|
2787
|
+
import { z as z121 } from "zod";
|
|
2788
|
+
var AnyRecord = z121.record(z121.any());
|
|
2742
2789
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
2743
|
-
|
|
2744
|
-
tarball:
|
|
2790
|
+
z121.object({
|
|
2791
|
+
tarball: z121.string()
|
|
2745
2792
|
})
|
|
2746
2793
|
);
|
|
2747
2794
|
var NpmPackageVersion = AnyRecord.and(
|
|
2748
|
-
|
|
2795
|
+
z121.object({
|
|
2749
2796
|
dist: NpmPackageVersionDist
|
|
2750
2797
|
})
|
|
2751
2798
|
);
|
|
2752
2799
|
var NpmPackage = AnyRecord.and(
|
|
2753
|
-
|
|
2754
|
-
_id:
|
|
2755
|
-
name:
|
|
2800
|
+
z121.object({
|
|
2801
|
+
_id: z121.string(),
|
|
2802
|
+
name: z121.string(),
|
|
2756
2803
|
// e.g. "latest": "1.2.3"
|
|
2757
|
-
"dist-tags":
|
|
2804
|
+
"dist-tags": z121.record(z121.string(), z121.string()),
|
|
2758
2805
|
// "1.2.3": {...}
|
|
2759
|
-
versions:
|
|
2806
|
+
versions: z121.record(NpmPackageVersion)
|
|
2760
2807
|
})
|
|
2761
2808
|
);
|
|
2762
2809
|
|
|
2763
2810
|
// src/npm/npm-proxy-token-payload.ts
|
|
2764
|
-
import { z as
|
|
2765
|
-
var NpmProxyTokenPayload =
|
|
2766
|
-
npmProxyRegistryConfigId:
|
|
2811
|
+
import { z as z122 } from "zod";
|
|
2812
|
+
var NpmProxyTokenPayload = z122.object({
|
|
2813
|
+
npmProxyRegistryConfigId: z122.string()
|
|
2767
2814
|
});
|
|
2768
2815
|
|
|
2769
2816
|
// src/tokens/personal-access-token.ts
|
|
2770
|
-
import { z as
|
|
2771
|
-
var PersonalAccessToken =
|
|
2772
|
-
id:
|
|
2773
|
-
userId:
|
|
2774
|
-
name:
|
|
2775
|
-
token:
|
|
2776
|
-
createdAt:
|
|
2777
|
-
hidden:
|
|
2778
|
-
workspaceId:
|
|
2817
|
+
import { z as z123 } from "zod";
|
|
2818
|
+
var PersonalAccessToken = z123.object({
|
|
2819
|
+
id: z123.string(),
|
|
2820
|
+
userId: z123.string(),
|
|
2821
|
+
name: z123.string(),
|
|
2822
|
+
token: z123.string(),
|
|
2823
|
+
createdAt: z123.date(),
|
|
2824
|
+
hidden: z123.boolean(),
|
|
2825
|
+
workspaceId: z123.string().optional(),
|
|
2779
2826
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
2780
|
-
expireAt:
|
|
2781
|
-
scope:
|
|
2827
|
+
expireAt: z123.date().optional(),
|
|
2828
|
+
scope: z123.string().optional()
|
|
2782
2829
|
});
|
|
2783
2830
|
|
|
2784
2831
|
// src/utils/content-loader-instruction.ts
|
|
2785
|
-
import { z as
|
|
2786
|
-
var ContentLoadInstruction =
|
|
2787
|
-
from:
|
|
2788
|
-
to:
|
|
2789
|
-
authorizationHeaderKvsId:
|
|
2790
|
-
timeout:
|
|
2791
|
-
});
|
|
2792
|
-
var ContentLoaderPayload =
|
|
2793
|
-
type:
|
|
2832
|
+
import { z as z124 } from "zod";
|
|
2833
|
+
var ContentLoadInstruction = z124.object({
|
|
2834
|
+
from: z124.string(),
|
|
2835
|
+
to: z124.string(),
|
|
2836
|
+
authorizationHeaderKvsId: z124.string().optional(),
|
|
2837
|
+
timeout: z124.number().optional()
|
|
2838
|
+
});
|
|
2839
|
+
var ContentLoaderPayload = z124.object({
|
|
2840
|
+
type: z124.literal("Single"),
|
|
2794
2841
|
instruction: ContentLoadInstruction
|
|
2795
2842
|
}).or(
|
|
2796
|
-
|
|
2797
|
-
type:
|
|
2798
|
-
loadingChunkSize:
|
|
2799
|
-
instructions:
|
|
2843
|
+
z124.object({
|
|
2844
|
+
type: z124.literal("Multiple"),
|
|
2845
|
+
loadingChunkSize: z124.number().optional(),
|
|
2846
|
+
instructions: z124.array(ContentLoadInstruction)
|
|
2800
2847
|
})
|
|
2801
2848
|
).or(
|
|
2802
|
-
|
|
2803
|
-
type:
|
|
2804
|
-
location:
|
|
2849
|
+
z124.object({
|
|
2850
|
+
type: z124.literal("S3"),
|
|
2851
|
+
location: z124.string()
|
|
2805
2852
|
})
|
|
2806
2853
|
);
|
|
2807
2854
|
export {
|
|
@@ -2899,15 +2946,22 @@ export {
|
|
|
2899
2946
|
DimensionUnit,
|
|
2900
2947
|
DimensionValue,
|
|
2901
2948
|
DocumentationGroupBehavior,
|
|
2902
|
-
DocumentationGroupDTO,
|
|
2903
2949
|
DocumentationItemConfiguration,
|
|
2950
|
+
DocumentationItemHeader,
|
|
2951
|
+
DocumentationItemHeaderAlignment,
|
|
2952
|
+
DocumentationItemHeaderAlignmentSchema,
|
|
2953
|
+
DocumentationItemHeaderImageScaleType,
|
|
2954
|
+
DocumentationItemHeaderImageScaleTypeSchema,
|
|
2904
2955
|
DocumentationPage,
|
|
2905
|
-
|
|
2956
|
+
DocumentationPageAsset,
|
|
2957
|
+
DocumentationPageAssetType,
|
|
2906
2958
|
DocumentationPageDataV1,
|
|
2907
2959
|
DocumentationPageDataV2,
|
|
2908
2960
|
DocumentationPageElementDataV1,
|
|
2909
2961
|
DocumentationPageElementDataV2,
|
|
2962
|
+
DocumentationPageFrameAsset,
|
|
2910
2963
|
DocumentationPageGroup,
|
|
2964
|
+
DocumentationPageImageAsset,
|
|
2911
2965
|
DocumentationPageRoom,
|
|
2912
2966
|
DocumentationPageV1,
|
|
2913
2967
|
DocumentationPageV2,
|
|
@@ -3145,7 +3199,11 @@ export {
|
|
|
3145
3199
|
PulsarContributionConfigurationProperty,
|
|
3146
3200
|
PulsarContributionVariant,
|
|
3147
3201
|
PulsarPropertyType,
|
|
3202
|
+
RoomType,
|
|
3203
|
+
RoomTypeEnum,
|
|
3204
|
+
RoomTypeSchema,
|
|
3148
3205
|
SHORT_PERSISTENT_ID_LENGTH,
|
|
3206
|
+
SafeIdSchema,
|
|
3149
3207
|
Session,
|
|
3150
3208
|
SessionData,
|
|
3151
3209
|
ShadowLayerValue,
|
|
@@ -3224,6 +3282,9 @@ export {
|
|
|
3224
3282
|
ZIndexUnit,
|
|
3225
3283
|
ZIndexValue,
|
|
3226
3284
|
addImportModelCollections,
|
|
3285
|
+
colorValueFormatDescription,
|
|
3286
|
+
colorValueRegex,
|
|
3287
|
+
defaultDocumentationItemHeader,
|
|
3227
3288
|
designTokenImportModelTypeFilter,
|
|
3228
3289
|
designTokenTypeFilter,
|
|
3229
3290
|
extractTokenTypedData,
|
|
@@ -3237,6 +3298,7 @@ export {
|
|
|
3237
3298
|
isTokenType,
|
|
3238
3299
|
nullishToOptional,
|
|
3239
3300
|
publishedDocEnvironments,
|
|
3301
|
+
slugRegex,
|
|
3240
3302
|
tokenAliasOrValue,
|
|
3241
3303
|
tokenElementTypes,
|
|
3242
3304
|
traversePageBlocksV1,
|