@supernova-studio/model 0.4.1 → 0.6.0

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