@supernova-studio/model 0.4.1 → 0.5.0

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