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