@supernova-studio/client 0.19.2 → 0.20.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
@@ -16,7 +16,7 @@ import { z as z14 } from "zod";
16
16
  import { z as z17 } from "zod";
17
17
  import { z as z15 } from "zod";
18
18
  import { z as z16 } from "zod";
19
- import { z as z83 } from "zod";
19
+ import { z as z86 } from "zod";
20
20
  import { z as z18 } from "zod";
21
21
  import { z as z20 } from "zod";
22
22
  import { z as z19 } from "zod";
@@ -36,15 +36,15 @@ import {
36
36
  z as z32
37
37
  } from "zod";
38
38
  import { z as z34 } from "zod";
39
+ import { z as z40 } from "zod";
39
40
  import { z as z39 } from "zod";
40
41
  import { z as z38 } from "zod";
41
- import { z as z37 } from "zod";
42
42
  import { z as z36 } from "zod";
43
43
  import { z as z35 } from "zod";
44
- import { z as z40 } from "zod";
45
- import { z as z41 } from "zod";
46
- import { z as z42 } from "zod";
44
+ import { z as z37 } from "zod";
47
45
  import { z as z43 } from "zod";
46
+ import { z as z42 } from "zod";
47
+ import { z as z41 } from "zod";
48
48
  import { z as z44 } from "zod";
49
49
  import { z as z45 } from "zod";
50
50
  import { z as z46 } from "zod";
@@ -71,61 +71,64 @@ import { z as z66 } from "zod";
71
71
  import { z as z67 } from "zod";
72
72
  import { z as z68 } from "zod";
73
73
  import { z as z69 } from "zod";
74
- import { z as z71 } from "zod";
75
74
  import { z as z70 } from "zod";
75
+ import { z as z71 } from "zod";
76
76
  import { z as z72 } from "zod";
77
- import { z as z73 } from "zod";
78
- import { z as z81 } from "zod";
79
77
  import { z as z74 } from "zod";
80
- import { z as z76 } from "zod";
78
+ import { z as z73 } from "zod";
81
79
  import { z as z75 } from "zod";
80
+ import { z as z76 } from "zod";
81
+ import { z as z84 } from "zod";
82
82
  import { z as z77 } from "zod";
83
- import { z as z78 } from "zod";
84
83
  import { z as z79 } from "zod";
84
+ import { z as z78 } from "zod";
85
85
  import { z as z80 } from "zod";
86
+ import { z as z81 } from "zod";
86
87
  import { z as z82 } from "zod";
87
- import { z as z84 } from "zod";
88
- import { z as z87 } from "zod";
89
- import { z as z86 } from "zod";
88
+ import { z as z83 } from "zod";
90
89
  import { z as z85 } from "zod";
91
- import { z as z88 } from "zod";
92
- import { z as z89 } from "zod";
93
- import { z as z99 } from "zod";
90
+ import { z as z87 } from "zod";
94
91
  import { z as z90 } from "zod";
92
+ import { z as z89 } from "zod";
93
+ import { z as z88 } from "zod";
95
94
  import { z as z91 } from "zod";
96
- import { z as z93 } from "zod";
97
95
  import { z as z92 } from "zod";
98
- import { z as z95 } from "zod";
96
+ import { z as z102 } from "zod";
97
+ import { z as z93 } from "zod";
99
98
  import { z as z94 } from "zod";
100
99
  import { z as z96 } from "zod";
101
- import { z as z97 } from "zod";
100
+ import { z as z95 } from "zod";
102
101
  import { z as z98 } from "zod";
102
+ import { z as z97 } from "zod";
103
+ import { z as z99 } from "zod";
103
104
  import { z as z100 } from "zod";
104
105
  import { z as z101 } from "zod";
105
- import { z as z102 } from "zod";
106
106
  import { z as z103 } from "zod";
107
107
  import { z as z104 } from "zod";
108
108
  import { z as z105 } from "zod";
109
- import { z as z108 } from "zod";
110
109
  import { z as z106 } from "zod";
111
110
  import { z as z107 } from "zod";
111
+ import { z as z108 } from "zod";
112
+ import { z as z111 } from "zod";
112
113
  import { z as z109 } from "zod";
113
- import { z as z114 } from "zod";
114
114
  import { z as z110 } from "zod";
115
- import { z as z111 } from "zod";
116
115
  import { z as z112 } from "zod";
116
+ import { z as z117 } from "zod";
117
117
  import { z as z113 } from "zod";
118
+ import { z as z114 } from "zod";
118
119
  import { z as z115 } from "zod";
119
- import { z as z117 } from "zod";
120
120
  import { z as z116 } from "zod";
121
121
  import { z as z118 } from "zod";
122
- import { z as z119 } from "zod";
123
122
  import { z as z120 } from "zod";
123
+ import { z as z119 } from "zod";
124
124
  import { z as z121 } from "zod";
125
125
  import { z as z122 } from "zod";
126
126
  import { z as z123 } from "zod";
127
127
  import { z as z124 } from "zod";
128
128
  import { z as z125 } from "zod";
129
+ import { z as z126 } from "zod";
130
+ import { z as z127 } from "zod";
131
+ import { z as z128 } from "zod";
129
132
  import slugifyImplementation from "@sindresorhus/slugify";
130
133
  var PluginOAuthRequestSchema = z.object({
131
134
  id: z.string(),
@@ -886,6 +889,21 @@ var PageBlockImageAlignment = z34.enum(["Left", "Center", "Stretch"]);
886
889
  var PageBlockTableCellAlignment = z34.enum(["Left", "Center", "Right"]);
887
890
  var PageBlockPreviewContainerSize = z34.enum(["Centered", "NaturalHeight"]);
888
891
  var PageBlockThemeDisplayMode = z34.enum(["Split", "Override"]);
892
+ var PageBlockImageReference = z34.object({
893
+ type: PageBlockImageType,
894
+ url: z34.string(),
895
+ assetId: z34.string().optional(),
896
+ size: Size.optional(),
897
+ figmaFile: z34.object({
898
+ sourceId: z34.string(),
899
+ frameId: z34.string(),
900
+ frameReferenceId: z34.string(),
901
+ origin: z34.object({
902
+ title: z34.string().optional(),
903
+ sourceFileName: z34.string().optional()
904
+ })
905
+ }).optional()
906
+ });
889
907
  var PageBlockColorV2 = z34.object({
890
908
  value: z34.string(),
891
909
  referencedTokenId: z34.string().optional()
@@ -916,21 +934,6 @@ var PageBlockDataV2 = z34.object({
916
934
  appearance: PageBlockAppearanceV2.optional(),
917
935
  items: z34.array(PageBlockItemV2)
918
936
  });
919
- var PageBlockItemImageReference = z34.object({
920
- type: PageBlockImageType,
921
- url: z34.string(),
922
- assetId: z34.string().optional(),
923
- size: Size.optional(),
924
- figmaFile: z34.object({
925
- sourceId: z34.string(),
926
- frameId: z34.string(),
927
- frameReferenceId: z34.string(),
928
- origin: z34.object({
929
- title: z34.string().optional(),
930
- sourceFileName: z34.string().optional()
931
- })
932
- }).optional()
933
- });
934
937
  var PageBlockItemAssetValue = z34.object({
935
938
  selectedPropertyIds: z34.array(z34.string()).optional(),
936
939
  showSearch: z34.boolean().optional(),
@@ -1008,7 +1011,7 @@ var PageBlockItemImageValue = z34.object({
1008
1011
  alt: z34.string().optional(),
1009
1012
  caption: z34.string().optional(),
1010
1013
  alignment: PageBlockImageAlignment.optional(),
1011
- value: PageBlockItemImageReference.optional()
1014
+ value: PageBlockImageReference.optional()
1012
1015
  });
1013
1016
  var PageBlockItemMarkdownValue = z34.object({
1014
1017
  value: z34.string()
@@ -1124,176 +1127,205 @@ var DocumentationItemHeaderAlignmentSchema = z37.enum(["Left", "Center"]);
1124
1127
  var DocumentationItemHeaderImageScaleTypeSchema = z37.enum(["AspectFill", "AspectFit"]);
1125
1128
  var DocumentationItemHeaderAlignment = DocumentationItemHeaderAlignmentSchema.enum;
1126
1129
  var DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleTypeSchema.enum;
1127
- var DocumentationItemHeader = z37.object({
1128
- description: z37.string(),
1130
+ var DocumentationItemHeaderV1 = z38.object({
1131
+ description: z38.string(),
1129
1132
  alignment: DocumentationItemHeaderAlignmentSchema,
1130
1133
  foregroundColor: ColorTokenData.nullish(),
1131
1134
  backgroundColor: ColorTokenData.nullish(),
1132
1135
  backgroundImageAsset: DocumentationPageAsset.nullish(),
1133
1136
  backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
1134
- showBackgroundOverlay: z37.boolean(),
1135
- showCoverText: z37.boolean(),
1136
- minHeight: z37.number().nullish()
1137
+ showBackgroundOverlay: z38.boolean(),
1138
+ showCoverText: z38.boolean(),
1139
+ minHeight: z38.number().nullish()
1137
1140
  });
1138
- var defaultDocumentationItemHeader = {
1141
+ var defaultDocumentationItemHeaderV1 = {
1139
1142
  alignment: DocumentationItemHeaderAlignment.Left,
1140
1143
  backgroundImageScaleType: DocumentationItemHeaderImageScaleType.AspectFill,
1141
1144
  description: "",
1142
1145
  showBackgroundOverlay: false,
1143
1146
  showCoverText: true
1144
1147
  };
1145
- var DocumentationItemConfiguration = z38.object({
1146
- showSidebar: z38.boolean(),
1147
- header: DocumentationItemHeader
1148
+ var DocumentationItemConfigurationV1 = z39.object({
1149
+ showSidebar: z39.boolean(),
1150
+ header: DocumentationItemHeaderV1
1148
1151
  });
1149
- var DocumentationPageDataV1 = z39.object({
1150
- blocks: z39.array(PageBlockV1),
1151
- configuration: nullishToOptional(DocumentationItemConfiguration)
1152
+ var DocumentationPageDataV1 = z40.object({
1153
+ blocks: z40.array(PageBlockV1),
1154
+ configuration: nullishToOptional(DocumentationItemConfigurationV1)
1152
1155
  });
1153
- var DocumentationPageElementDataV1 = z39.object({
1156
+ var DocumentationPageElementDataV1 = z40.object({
1157
+ dataVersion: z40.literal(1).optional().default(1),
1154
1158
  value: DocumentationPageDataV1
1155
1159
  });
1156
- var DocumentationPageDataV2 = z40.object({
1157
- configuration: nullishToOptional(DocumentationItemConfiguration)
1160
+ var DocumentationItemHeaderV2 = z41.object({
1161
+ description: z41.string(),
1162
+ alignment: DocumentationItemHeaderAlignmentSchema,
1163
+ foregroundColor: PageBlockColorV2.nullish(),
1164
+ backgroundColor: PageBlockColorV2.nullish(),
1165
+ backgroundImageAsset: DocumentationPageAsset.nullish(),
1166
+ backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
1167
+ showBackgroundOverlay: z41.boolean(),
1168
+ showCoverText: z41.boolean(),
1169
+ minHeight: z41.number().nullish()
1170
+ });
1171
+ var defaultDocumentationItemHeaderV2 = {
1172
+ alignment: DocumentationItemHeaderAlignment.Left,
1173
+ backgroundImageScaleType: DocumentationItemHeaderImageScaleType.AspectFill,
1174
+ description: "",
1175
+ showBackgroundOverlay: false,
1176
+ showCoverText: true
1177
+ };
1178
+ var DocumentationItemConfigurationV2 = z42.object({
1179
+ showSidebar: z42.boolean(),
1180
+ header: DocumentationItemHeaderV2
1181
+ });
1182
+ var DocumentationPageDataV2 = z43.object({
1183
+ configuration: nullishToOptional(DocumentationItemConfigurationV2)
1158
1184
  });
1159
- var DocumentationPageElementDataV2 = z40.object({
1160
- value: DocumentationPageDataV2
1185
+ var DocumentationPageElementDataV2 = z43.object({
1186
+ value: DocumentationPageDataV1,
1187
+ valueV2: DocumentationPageDataV2.optional()
1161
1188
  });
1162
- var DurationUnit = z41.enum(["Ms"]);
1163
- var DurationValue = z41.object({
1189
+ var DurationUnit = z44.enum(["Ms"]);
1190
+ var DurationValue = z44.object({
1164
1191
  unit: DurationUnit,
1165
- measure: z41.number()
1192
+ measure: z44.number()
1166
1193
  });
1167
1194
  var DurationTokenData = tokenAliasOrValue(DurationValue);
1168
- var FigmaFileStructureNodeType = z42.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
1169
- var FigmaFileStructureNodeBase = z42.object({
1170
- id: z42.string(),
1171
- name: z42.string(),
1195
+ var FigmaFileStructureNodeType = z45.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
1196
+ var FigmaFileStructureNodeBase = z45.object({
1197
+ id: z45.string(),
1198
+ name: z45.string(),
1172
1199
  type: FigmaFileStructureNodeType,
1173
1200
  size: SizeOrUndefined,
1174
- parentComponentSetId: z42.string().optional()
1201
+ parentComponentSetId: z45.string().optional()
1175
1202
  });
1176
1203
  var FigmaFileStructureNode = FigmaFileStructureNodeBase.extend({
1177
- children: z42.lazy(() => FigmaFileStructureNode.array())
1204
+ children: z45.lazy(() => FigmaFileStructureNode.array())
1178
1205
  });
1179
- var FigmaFileStructureStatistics = z42.object({
1180
- frames: z42.number().nullable().optional().transform((v) => v ?? 0),
1181
- components: z42.number().nullable().optional().transform((v) => v ?? 0),
1182
- componentSets: z42.number().nullable().optional().transform((v) => v ?? 0)
1206
+ var FigmaFileStructureStatistics = z45.object({
1207
+ frames: z45.number().nullable().optional().transform((v) => v ?? 0),
1208
+ components: z45.number().nullable().optional().transform((v) => v ?? 0),
1209
+ componentSets: z45.number().nullable().optional().transform((v) => v ?? 0)
1183
1210
  });
1184
- var FigmaFileStructureElementData = z42.object({
1185
- value: z42.object({
1211
+ var FigmaFileStructureElementData = z45.object({
1212
+ value: z45.object({
1186
1213
  structure: FigmaFileStructureNode,
1187
1214
  assetsInFile: FigmaFileStructureStatistics
1188
1215
  })
1189
1216
  });
1190
- var FigmaNodeReferenceData = z43.object({
1191
- structureElementId: z43.string(),
1192
- nodeId: z43.string(),
1193
- fileId: z43.string().optional(),
1194
- valid: z43.boolean(),
1195
- assetId: z43.string().optional(),
1196
- assetScale: z43.number().optional(),
1197
- assetWidth: z43.number().optional(),
1198
- assetHeight: z43.number().optional(),
1199
- assetUrl: z43.string().optional()
1200
- });
1201
- var FigmaNodeReferenceElementData = z43.object({
1217
+ var FigmaNodeReferenceData = z46.object({
1218
+ structureElementId: z46.string(),
1219
+ nodeId: z46.string(),
1220
+ fileId: z46.string().optional(),
1221
+ valid: z46.boolean(),
1222
+ assetId: z46.string().optional(),
1223
+ assetScale: z46.number().optional(),
1224
+ assetWidth: z46.number().optional(),
1225
+ assetHeight: z46.number().optional(),
1226
+ assetUrl: z46.string().optional()
1227
+ });
1228
+ var FigmaNodeReferenceElementData = z46.object({
1202
1229
  value: FigmaNodeReferenceData
1203
1230
  });
1204
- var FontFamilyValue = z44.string();
1231
+ var FontFamilyValue = z47.string();
1205
1232
  var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
1206
- var FontSizeUnit = z45.enum(["Pixels", "Rem", "Percent"]);
1207
- var FontSizeValue = z45.object({
1233
+ var FontSizeUnit = z48.enum(["Pixels", "Rem", "Percent"]);
1234
+ var FontSizeValue = z48.object({
1208
1235
  unit: FontSizeUnit,
1209
- measure: z45.number()
1236
+ measure: z48.number()
1210
1237
  });
1211
1238
  var FontSizeTokenData = tokenAliasOrValue(FontSizeValue);
1212
- var FontWeightValue = z46.string();
1239
+ var FontWeightValue = z49.string();
1213
1240
  var FontWeightTokenData = tokenAliasOrValue(FontWeightValue);
1214
- var GradientType = z47.enum(["Linear", "Radial", "Angular"]);
1215
- var GradientStop = z47.object({
1216
- position: z47.number(),
1241
+ var GradientType = z50.enum(["Linear", "Radial", "Angular"]);
1242
+ var GradientStop = z50.object({
1243
+ position: z50.number(),
1217
1244
  color: ColorTokenData
1218
1245
  });
1219
- var GradientLayerValue = z47.object({
1246
+ var GradientLayerValue = z50.object({
1220
1247
  from: Point2D,
1221
1248
  to: Point2D,
1222
1249
  type: GradientType,
1223
- aspectRatio: nullishToOptional(z47.number()),
1250
+ aspectRatio: nullishToOptional(z50.number()),
1224
1251
  // z.number(),
1225
- stops: z47.array(GradientStop).min(2)
1252
+ stops: z50.array(GradientStop).min(2)
1226
1253
  });
1227
1254
  var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
1228
- var GradientTokenValue = z47.array(GradientLayerData);
1255
+ var GradientTokenValue = z50.array(GradientLayerData);
1229
1256
  var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
1230
- var DocumentationGroupBehavior = z48.enum(["Group", "Tabs"]);
1231
- var ElementGroupData = z48.object({
1257
+ var DocumentationGroupBehavior = z51.enum(["Group", "Tabs"]);
1258
+ var ElementGroupDataDeprecated = z51.object({
1232
1259
  behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
1233
- configuration: nullishToOptional(DocumentationItemConfiguration)
1260
+ configuration: nullishToOptional(DocumentationItemConfigurationV1)
1234
1261
  });
1235
- var ElementGroupElementData = z48.object({
1236
- value: ElementGroupData.optional()
1262
+ var ElementGroupDataV2 = z51.object({
1263
+ behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
1264
+ configuration: nullishToOptional(DocumentationItemConfigurationV2)
1237
1265
  });
1238
- var LetterSpacingUnit = z49.enum(["Pixels", "Rem", "Percent"]);
1239
- var LetterSpacingValue = z49.object({
1266
+ var ElementGroupElementData = z51.object({
1267
+ value: ElementGroupDataDeprecated.optional(),
1268
+ valueV2: ElementGroupDataV2.optional()
1269
+ });
1270
+ var LetterSpacingUnit = z52.enum(["Pixels", "Rem", "Percent"]);
1271
+ var LetterSpacingValue = z52.object({
1240
1272
  unit: LetterSpacingUnit,
1241
- measure: z49.number()
1273
+ measure: z52.number()
1242
1274
  });
1243
1275
  var LetterSpacingTokenData = tokenAliasOrValue(LetterSpacingValue);
1244
- var LineHeightUnit = z50.enum(["Pixels", "Rem", "Percent", "Raw"]);
1245
- var LineHeightValue = z50.object({
1276
+ var LineHeightUnit = z53.enum(["Pixels", "Rem", "Percent", "Raw"]);
1277
+ var LineHeightValue = z53.object({
1246
1278
  unit: LineHeightUnit,
1247
- measure: z50.number()
1279
+ measure: z53.number()
1248
1280
  });
1249
1281
  var LineHeightTokenData = tokenAliasOrValue(LineHeightValue);
1250
- var ParagraphIndentUnit = z51.enum(["Pixels", "Rem", "Percent"]);
1251
- var ParagraphIndentValue = z51.object({
1282
+ var ParagraphIndentUnit = z54.enum(["Pixels", "Rem", "Percent"]);
1283
+ var ParagraphIndentValue = z54.object({
1252
1284
  unit: ParagraphIndentUnit,
1253
- measure: z51.number()
1285
+ measure: z54.number()
1254
1286
  });
1255
1287
  var ParagraphIndentTokenData = tokenAliasOrValue(ParagraphIndentValue);
1256
- var ParagraphSpacingUnit = z52.enum(["Pixels", "Rem", "Percent"]);
1257
- var ParagraphSpacingValue = z52.object({
1288
+ var ParagraphSpacingUnit = z55.enum(["Pixels", "Rem", "Percent"]);
1289
+ var ParagraphSpacingValue = z55.object({
1258
1290
  unit: ParagraphSpacingUnit,
1259
- measure: z52.number()
1291
+ measure: z55.number()
1260
1292
  });
1261
1293
  var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
1262
- var ProductCopyValue = z53.string();
1294
+ var ProductCopyValue = z56.string();
1263
1295
  var ProductCopyTokenData = tokenAliasOrValue(ProductCopyValue);
1264
- var ShadowType = z54.enum(["Drop", "Inner"]);
1265
- var ShadowLayerValue = z54.object({
1296
+ var ShadowType = z57.enum(["Drop", "Inner"]);
1297
+ var ShadowLayerValue = z57.object({
1266
1298
  color: ColorTokenData,
1267
- x: z54.number(),
1268
- y: z54.number(),
1269
- radius: z54.number(),
1270
- spread: z54.number(),
1299
+ x: z57.number(),
1300
+ y: z57.number(),
1301
+ radius: z57.number(),
1302
+ spread: z57.number(),
1271
1303
  opacity: OpacityTokenData,
1272
1304
  type: ShadowType
1273
1305
  });
1274
1306
  var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
1275
- var ShadowTokenData = tokenAliasOrValue(z54.array(ShadowTokenDataBase));
1276
- var SizeUnit = z55.enum(["Pixels", "Rem", "Percent"]);
1277
- var SizeValue = z55.object({
1307
+ var ShadowTokenData = tokenAliasOrValue(z57.array(ShadowTokenDataBase));
1308
+ var SizeUnit = z58.enum(["Pixels", "Rem", "Percent"]);
1309
+ var SizeValue = z58.object({
1278
1310
  unit: SizeUnit,
1279
- measure: z55.number()
1311
+ measure: z58.number()
1280
1312
  });
1281
1313
  var SizeTokenData = tokenAliasOrValue(SizeValue);
1282
- var SpaceUnit = z56.enum(["Pixels", "Rem", "Percent"]);
1283
- var SpaceValue = z56.object({
1314
+ var SpaceUnit = z59.enum(["Pixels", "Rem", "Percent"]);
1315
+ var SpaceValue = z59.object({
1284
1316
  unit: SpaceUnit,
1285
- measure: z56.number()
1317
+ measure: z59.number()
1286
1318
  });
1287
1319
  var SpaceTokenData = tokenAliasOrValue(SpaceValue);
1288
- var StringValue = z57.string();
1320
+ var StringValue = z60.string();
1289
1321
  var StringTokenData = tokenAliasOrValue(StringValue);
1290
- var TextCase = z58.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
1322
+ var TextCase = z61.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
1291
1323
  var TextCaseValue = TextCase;
1292
1324
  var TextCaseTokenData = tokenAliasOrValue(TextCaseValue);
1293
- var TextDecoration = z59.enum(["None", "Underline", "Strikethrough"]);
1325
+ var TextDecoration = z62.enum(["None", "Underline", "Strikethrough"]);
1294
1326
  var TextDecorationValue = TextDecoration;
1295
1327
  var TextDecorationTokenData = tokenAliasOrValue(TextDecorationValue);
1296
- var TypographyValue = z60.object({
1328
+ var TypographyValue = z63.object({
1297
1329
  fontSize: FontSizeTokenData,
1298
1330
  fontFamily: FontFamilyTokenData,
1299
1331
  fontWeight: FontWeightTokenData,
@@ -1305,75 +1337,77 @@ var TypographyValue = z60.object({
1305
1337
  paragraphSpacing: ParagraphSpacingTokenData.optional()
1306
1338
  });
1307
1339
  var TypographyTokenData = tokenAliasOrValue(TypographyValue);
1308
- var Visibility = z61.enum(["Hidden", "Visible"]);
1340
+ var Visibility = z64.enum(["Hidden", "Visible"]);
1309
1341
  var VisibilityValue = Visibility;
1310
1342
  var VisibilityTokenData = tokenAliasOrValue(VisibilityValue);
1311
- var ZIndexUnit = z62.enum(["Raw"]);
1312
- var ZIndexValue = z62.object({
1343
+ var ZIndexUnit = z65.enum(["Raw"]);
1344
+ var ZIndexValue = z65.object({
1313
1345
  unit: ZIndexUnit,
1314
- measure: z62.number()
1346
+ measure: z65.number()
1315
1347
  });
1316
1348
  var ZIndexTokenData = tokenAliasOrValue(ZIndexValue);
1317
- var DesignElementOrigin = z63.object({
1318
- id: z63.string(),
1319
- sourceId: z63.string(),
1320
- name: z63.string()
1321
- });
1322
- var DesignElementBase = z63.object({
1323
- id: z63.string(),
1324
- persistentId: z63.string(),
1349
+ var DesignElementOrigin = z66.object({
1350
+ id: z66.string(),
1351
+ sourceId: z66.string(),
1352
+ name: z66.string()
1353
+ });
1354
+ var DesignElementBase = z66.object({
1355
+ id: z66.string(),
1356
+ persistentId: z66.string(),
1325
1357
  meta: ObjectMeta,
1326
- designSystemVersionId: z63.string(),
1327
- createdAt: z63.coerce.date(),
1328
- updatedAt: z63.coerce.date()
1358
+ designSystemVersionId: z66.string(),
1359
+ createdAt: z66.coerce.date(),
1360
+ updatedAt: z66.coerce.date()
1329
1361
  });
1330
1362
  var DesignElementImportedBase = DesignElementBase.extend({
1331
1363
  origin: DesignElementOrigin
1332
1364
  });
1333
- var DesignElementGroupablePart = z63.object({
1334
- parentPersistentId: z63.string().optional(),
1335
- sortOrder: z63.number()
1365
+ var DesignElementGroupablePart = z66.object({
1366
+ parentPersistentId: z66.string().optional(),
1367
+ sortOrder: z66.number()
1336
1368
  });
1337
1369
  var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
1338
1370
  var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
1339
- parentPersistentId: z63.string()
1371
+ parentPersistentId: z66.string()
1340
1372
  });
1341
- var DesignElementBrandedPart = z63.object({
1342
- brandPersistentId: z63.string()
1373
+ var DesignElementBrandedPart = z66.object({
1374
+ brandPersistentId: z66.string()
1343
1375
  });
1344
- var DesignElementSlugPart = z63.object({
1345
- slug: z63.string().optional(),
1346
- userSlug: z63.string().optional()
1376
+ var DesignElementSlugPart = z66.object({
1377
+ slug: z66.string().optional(),
1378
+ userSlug: z66.string().optional()
1347
1379
  });
1348
- var ComponentOriginPart = z64.object({
1349
- nodeId: z64.string().optional(),
1350
- width: z64.number().optional(),
1351
- height: z64.number().optional()
1380
+ var ComponentOriginPart = z67.object({
1381
+ nodeId: z67.string().optional(),
1382
+ width: z67.number().optional(),
1383
+ height: z67.number().optional()
1352
1384
  });
1353
- var ComponentAsset = z64.object({
1354
- assetId: z64.string(),
1355
- assetPath: z64.string()
1385
+ var ComponentAsset = z67.object({
1386
+ assetId: z67.string(),
1387
+ assetPath: z67.string()
1356
1388
  });
1357
1389
  var ComponentOrigin = DesignElementOrigin.extend(ComponentOriginPart.shape);
1358
1390
  var Component = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
1359
1391
  origin: ComponentOrigin.optional(),
1360
1392
  thumbnail: ComponentAsset,
1361
1393
  svg: ComponentAsset.optional(),
1362
- isAsset: z64.boolean()
1394
+ isAsset: z67.boolean()
1363
1395
  });
1364
1396
  var DocumentationPageV1 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
1365
- shortPersistentId: z65.string(),
1397
+ shortPersistentId: z68.string(),
1366
1398
  data: DocumentationPageDataV1
1367
1399
  });
1368
1400
  var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
1369
- shortPersistentId: z66.string(),
1370
- data: DocumentationPageDataV2
1401
+ shortPersistentId: z69.string(),
1402
+ data: DocumentationPageDataV2.extend({
1403
+ oldBlocks: z69.array(PageBlockV1).optional()
1404
+ })
1371
1405
  });
1372
- var FigmaFileStructureOrigin = z67.object({
1373
- sourceId: z67.string(),
1374
- fileId: z67.string().optional()
1406
+ var FigmaFileStructureOrigin = z70.object({
1407
+ sourceId: z70.string(),
1408
+ fileId: z70.string().optional()
1375
1409
  });
1376
- var FigmaFileStructureData = z67.object({
1410
+ var FigmaFileStructureData = z70.object({
1377
1411
  rootNode: FigmaFileStructureNode,
1378
1412
  assetsInFile: FigmaFileStructureStatistics
1379
1413
  });
@@ -1385,21 +1419,21 @@ var FigmaNodeReference = DesignElementBase.extend({
1385
1419
  data: FigmaNodeReferenceData
1386
1420
  });
1387
1421
  var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
1388
- shortPersistentId: z68.string().optional(),
1422
+ shortPersistentId: z71.string().optional(),
1389
1423
  childType: DesignElementType,
1390
- data: ElementGroupData.optional()
1424
+ data: ElementGroupDataV2.optional()
1391
1425
  });
1392
1426
  var BrandedElementGroup = ElementGroup.extend(DesignElementBrandedPart.shape);
1393
1427
  var PageBlockV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend({
1394
1428
  data: PageBlockDataV2
1395
1429
  });
1396
- var PageBlockEditorModelV2 = z69.object({
1397
- id: z69.string(),
1430
+ var PageBlockEditorModelV2 = z72.object({
1431
+ id: z72.string(),
1398
1432
  data: PageBlockDataV2
1399
1433
  });
1400
- var DesignTokenOriginPart = z70.object({
1401
- referenceOriginId: z70.string().optional(),
1402
- referencePersistentId: z70.string().optional()
1434
+ var DesignTokenOriginPart = z73.object({
1435
+ referenceOriginId: z73.string().optional(),
1436
+ referencePersistentId: z73.string().optional()
1403
1437
  });
1404
1438
  var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
1405
1439
  var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
@@ -1411,111 +1445,111 @@ var UpdateDesignTokenBase = DesignTokenBase.omit({
1411
1445
  brandPersistentId: true,
1412
1446
  designSystemVersionId: true
1413
1447
  });
1414
- var BlurTokenTypedData = z70.object({
1415
- type: z70.literal("Blur"),
1448
+ var BlurTokenTypedData = z73.object({
1449
+ type: z73.literal("Blur"),
1416
1450
  data: BlurTokenData
1417
1451
  });
1418
- var ColorTokenTypedData = z70.object({
1419
- type: z70.literal("Color"),
1452
+ var ColorTokenTypedData = z73.object({
1453
+ type: z73.literal("Color"),
1420
1454
  data: ColorTokenData
1421
1455
  });
1422
- var GradientTokenTypedData = z70.object({
1423
- type: z70.literal("Gradient"),
1456
+ var GradientTokenTypedData = z73.object({
1457
+ type: z73.literal("Gradient"),
1424
1458
  data: GradientTokenData
1425
1459
  });
1426
- var OpacityTokenTypedData = z70.object({
1427
- type: z70.literal("Opacity"),
1460
+ var OpacityTokenTypedData = z73.object({
1461
+ type: z73.literal("Opacity"),
1428
1462
  data: OpacityTokenData
1429
1463
  });
1430
- var ShadowTokenTypedData = z70.object({
1431
- type: z70.literal("Shadow"),
1464
+ var ShadowTokenTypedData = z73.object({
1465
+ type: z73.literal("Shadow"),
1432
1466
  data: ShadowTokenData
1433
1467
  });
1434
- var TypographyTokenTypedData = z70.object({
1435
- type: z70.literal("Typography"),
1468
+ var TypographyTokenTypedData = z73.object({
1469
+ type: z73.literal("Typography"),
1436
1470
  data: TypographyTokenData
1437
1471
  });
1438
- var StringTokenTypedData = z70.object({
1439
- type: z70.literal("String"),
1472
+ var StringTokenTypedData = z73.object({
1473
+ type: z73.literal("String"),
1440
1474
  data: StringTokenData
1441
1475
  });
1442
- var DimensionTokenTypedData = z70.object({
1443
- type: z70.literal("Dimension"),
1476
+ var DimensionTokenTypedData = z73.object({
1477
+ type: z73.literal("Dimension"),
1444
1478
  data: DimensionTokenData
1445
1479
  });
1446
- var FontSizeTokenTypedData = z70.object({
1447
- type: z70.literal("FontSize"),
1480
+ var FontSizeTokenTypedData = z73.object({
1481
+ type: z73.literal("FontSize"),
1448
1482
  data: FontSizeTokenData
1449
1483
  });
1450
- var FontFamilyTokenTypedData = z70.object({
1451
- type: z70.literal("FontFamily"),
1484
+ var FontFamilyTokenTypedData = z73.object({
1485
+ type: z73.literal("FontFamily"),
1452
1486
  data: FontFamilyTokenData
1453
1487
  });
1454
- var FontWeightTokenTypedData = z70.object({
1455
- type: z70.literal("FontWeight"),
1488
+ var FontWeightTokenTypedData = z73.object({
1489
+ type: z73.literal("FontWeight"),
1456
1490
  data: FontWeightTokenData
1457
1491
  });
1458
- var LetterSpacingTokenTypedData = z70.object({
1459
- type: z70.literal("LetterSpacing"),
1492
+ var LetterSpacingTokenTypedData = z73.object({
1493
+ type: z73.literal("LetterSpacing"),
1460
1494
  data: LetterSpacingTokenData
1461
1495
  });
1462
- var LineHeightTokenTypedData = z70.object({
1463
- type: z70.literal("LineHeight"),
1496
+ var LineHeightTokenTypedData = z73.object({
1497
+ type: z73.literal("LineHeight"),
1464
1498
  data: LineHeightTokenData
1465
1499
  });
1466
- var ParagraphSpacingTokenTypedData = z70.object({
1467
- type: z70.literal("ParagraphSpacing"),
1500
+ var ParagraphSpacingTokenTypedData = z73.object({
1501
+ type: z73.literal("ParagraphSpacing"),
1468
1502
  data: ParagraphSpacingTokenData
1469
1503
  });
1470
- var TextCaseTokenTypedData = z70.object({
1471
- type: z70.literal("TextCase"),
1504
+ var TextCaseTokenTypedData = z73.object({
1505
+ type: z73.literal("TextCase"),
1472
1506
  data: TextCaseTokenData
1473
1507
  });
1474
- var TextDecorationTokenTypedData = z70.object({
1475
- type: z70.literal("TextDecoration"),
1508
+ var TextDecorationTokenTypedData = z73.object({
1509
+ type: z73.literal("TextDecoration"),
1476
1510
  data: TextDecorationTokenData
1477
1511
  });
1478
- var BorderRadiusTokenTypedData = z70.object({
1479
- type: z70.literal("BorderRadius"),
1512
+ var BorderRadiusTokenTypedData = z73.object({
1513
+ type: z73.literal("BorderRadius"),
1480
1514
  data: BorderRadiusTokenData
1481
1515
  });
1482
- var BorderWidthTokenTypedData = z70.object({
1483
- type: z70.literal("BorderWidth"),
1516
+ var BorderWidthTokenTypedData = z73.object({
1517
+ type: z73.literal("BorderWidth"),
1484
1518
  data: BorderWidthTokenData
1485
1519
  });
1486
- var BorderTypedData = z70.object({
1487
- type: z70.literal("Border"),
1520
+ var BorderTypedData = z73.object({
1521
+ type: z73.literal("Border"),
1488
1522
  data: BorderTokenData
1489
1523
  });
1490
- var ProductCopyTypedData = z70.object({
1491
- type: z70.literal("ProductCopy"),
1524
+ var ProductCopyTypedData = z73.object({
1525
+ type: z73.literal("ProductCopy"),
1492
1526
  data: ProductCopyTokenData
1493
1527
  });
1494
- var SizeTypedData = z70.object({
1495
- type: z70.literal("Size"),
1528
+ var SizeTypedData = z73.object({
1529
+ type: z73.literal("Size"),
1496
1530
  data: SizeTokenData
1497
1531
  });
1498
- var SpaceTypedData = z70.object({
1499
- type: z70.literal("Space"),
1532
+ var SpaceTypedData = z73.object({
1533
+ type: z73.literal("Space"),
1500
1534
  data: SpaceTokenData
1501
1535
  });
1502
- var VisibilityTypedData = z70.object({
1503
- type: z70.literal("Visibility"),
1536
+ var VisibilityTypedData = z73.object({
1537
+ type: z73.literal("Visibility"),
1504
1538
  data: VisibilityTokenData
1505
1539
  });
1506
- var ZIndexTypedData = z70.object({
1507
- type: z70.literal("ZIndex"),
1540
+ var ZIndexTypedData = z73.object({
1541
+ type: z73.literal("ZIndex"),
1508
1542
  data: ZIndexTokenData
1509
1543
  });
1510
- var DurationTypedData = z70.object({
1511
- type: z70.literal("Duration"),
1544
+ var DurationTypedData = z73.object({
1545
+ type: z73.literal("Duration"),
1512
1546
  data: DurationTokenData
1513
1547
  });
1514
- var FontTypedData = z70.object({
1515
- type: z70.literal("Font"),
1516
- data: z70.record(z70.any())
1548
+ var FontTypedData = z73.object({
1549
+ type: z73.literal("Font"),
1550
+ data: z73.record(z73.any())
1517
1551
  });
1518
- var DesignTokenTypedData = z70.discriminatedUnion("type", [
1552
+ var DesignTokenTypedData = z73.discriminatedUnion("type", [
1519
1553
  BlurTokenTypedData,
1520
1554
  BorderRadiusTokenTypedData,
1521
1555
  BorderWidthTokenTypedData,
@@ -1548,66 +1582,66 @@ var CreateDesignToken = DesignTokenTypedData.and(CreateDesignTokenBase);
1548
1582
  var ThemeOverrideOriginPart = DesignTokenOriginPart;
1549
1583
  var ThemeOverrideOrigin = DesignTokenOrigin;
1550
1584
  var ThemeOverride = DesignTokenTypedData.and(
1551
- z71.object({
1552
- tokenPersistentId: z71.string(),
1585
+ z74.object({
1586
+ tokenPersistentId: z74.string(),
1553
1587
  origin: ThemeOverrideOrigin.optional().nullable().transform((v) => v ?? void 0)
1554
1588
  })
1555
1589
  );
1556
- var ThemeElementData = z71.object({
1557
- value: z71.object({
1558
- overrides: z71.array(ThemeOverride)
1590
+ var ThemeElementData = z74.object({
1591
+ value: z74.object({
1592
+ overrides: z74.array(ThemeOverride)
1559
1593
  })
1560
1594
  });
1561
- var ThemeOriginPart = z71.object({});
1562
- var ThemeOriginObject = z71.object({
1563
- id: z71.string(),
1564
- name: z71.string()
1595
+ var ThemeOriginPart = z74.object({});
1596
+ var ThemeOriginObject = z74.object({
1597
+ id: z74.string(),
1598
+ name: z74.string()
1565
1599
  });
1566
- var ThemeOriginSource = z71.object({
1567
- sourceId: z71.string(),
1568
- sourceObjects: z71.array(ThemeOriginObject)
1600
+ var ThemeOriginSource = z74.object({
1601
+ sourceId: z74.string(),
1602
+ sourceObjects: z74.array(ThemeOriginObject)
1569
1603
  });
1570
- var ThemeOrigin = z71.object({
1571
- sources: z71.array(ThemeOriginSource)
1604
+ var ThemeOrigin = z74.object({
1605
+ sources: z74.array(ThemeOriginSource)
1572
1606
  });
1573
1607
  var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
1574
1608
  origin: ThemeOrigin.optional(),
1575
- overrides: z71.array(ThemeOverride)
1609
+ overrides: z74.array(ThemeOverride)
1576
1610
  });
1577
- var FigmaFileDownloadScope = z72.object({
1578
- styles: z72.boolean(),
1579
- components: z72.boolean(),
1580
- currentVersion: z72.literal("__latest__").nullable(),
1581
- publishedVersion: z72.string().nullable(),
1582
- downloadChunkSize: z72.number().optional()
1611
+ var FigmaFileDownloadScope = z75.object({
1612
+ styles: z75.boolean(),
1613
+ components: z75.boolean(),
1614
+ currentVersion: z75.literal("__latest__").nullable(),
1615
+ publishedVersion: z75.string().nullable(),
1616
+ downloadChunkSize: z75.number().optional()
1583
1617
  });
1584
- var FigmaFileAccessData = z72.object({
1585
- accessToken: z72.string()
1618
+ var FigmaFileAccessData = z75.object({
1619
+ accessToken: z75.string()
1586
1620
  });
1587
- var ImportFunctionInput = z73.object({
1588
- importJobId: z73.string(),
1589
- importContextId: z73.string(),
1590
- designSystemId: z73.string().optional()
1621
+ var ImportFunctionInput = z76.object({
1622
+ importJobId: z76.string(),
1623
+ importContextId: z76.string(),
1624
+ designSystemId: z76.string().optional()
1591
1625
  });
1592
- var ImportedFigmaSourceData = z73.object({
1593
- sourceId: z73.string(),
1626
+ var ImportedFigmaSourceData = z76.object({
1627
+ sourceId: z76.string(),
1594
1628
  figmaRemote: DataSourceFigmaRemote
1595
1629
  });
1596
- var FigmaImportBaseContext = z73.object({
1597
- designSystemId: z73.string(),
1630
+ var FigmaImportBaseContext = z76.object({
1631
+ designSystemId: z76.string(),
1598
1632
  /**
1599
1633
  * Data required for accessing Figma files. This should contain access data for all file ids
1600
1634
  * mentioned in the `importedSourceDataBySourceId`
1601
1635
  *
1602
1636
  * fileId: file data
1603
1637
  */
1604
- fileAccessByFileId: z73.record(FigmaFileAccessData),
1638
+ fileAccessByFileId: z76.record(FigmaFileAccessData),
1605
1639
  /**
1606
1640
  * Figma source data for which import was requested
1607
1641
  *
1608
1642
  * sourceId: source data
1609
1643
  */
1610
- importedSourceDataBySourceId: z73.record(ImportedFigmaSourceData)
1644
+ importedSourceDataBySourceId: z76.record(ImportedFigmaSourceData)
1611
1645
  });
1612
1646
  var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
1613
1647
  importMetadata: DataSourceFigmaImportMetadata
@@ -1619,65 +1653,65 @@ var FigmaImportContextWithDownloadScopes = FigmaImportBaseContext.extend({
1619
1653
  *
1620
1654
  * File id -> file download scope
1621
1655
  */
1622
- fileDownloadScopesByFileId: z73.record(FigmaFileDownloadScope),
1656
+ fileDownloadScopesByFileId: z76.record(FigmaFileDownloadScope),
1623
1657
  /**
1624
1658
  * Sources filtered down to the ones that have changed since last import and therefore need to be
1625
1659
  * imported again.
1626
1660
  *
1627
1661
  * Source id -> import metadata
1628
1662
  */
1629
- changedImportedSourceDataBySourceId: z73.record(ChangedImportedFigmaSourceData)
1663
+ changedImportedSourceDataBySourceId: z76.record(ChangedImportedFigmaSourceData)
1630
1664
  });
1631
- var ImageImportModelType = z74.enum(["Url", "FigmaRender"]);
1632
- var ImageImportModelBase = z74.object({
1665
+ var ImageImportModelType = z77.enum(["Url", "FigmaRender"]);
1666
+ var ImageImportModelBase = z77.object({
1633
1667
  scope: AssetScope
1634
1668
  });
1635
1669
  var UrlImageImportModel = ImageImportModelBase.extend({
1636
- type: z74.literal(ImageImportModelType.enum.Url),
1637
- url: z74.string(),
1638
- originKey: z74.string(),
1639
- extension: z74.enum(["png", "svg", "jpg"])
1670
+ type: z77.literal(ImageImportModelType.enum.Url),
1671
+ url: z77.string(),
1672
+ originKey: z77.string(),
1673
+ extension: z77.enum(["png", "svg", "jpg"])
1640
1674
  });
1641
- var FigmaRenderFormat = z74.enum(["Svg", "Png"]);
1675
+ var FigmaRenderFormat = z77.enum(["Svg", "Png"]);
1642
1676
  var FigmaRenderBase = ImageImportModelBase.extend({
1643
- type: z74.literal(ImageImportModelType.enum.FigmaRender),
1644
- fileId: z74.string(),
1645
- fileVersionId: z74.string().optional(),
1646
- nodeId: z74.string(),
1647
- originKey: z74.string()
1677
+ type: z77.literal(ImageImportModelType.enum.FigmaRender),
1678
+ fileId: z77.string(),
1679
+ fileVersionId: z77.string().optional(),
1680
+ nodeId: z77.string(),
1681
+ originKey: z77.string()
1648
1682
  });
1649
1683
  var FigmaPngRenderImportModel = FigmaRenderBase.extend({
1650
- format: z74.literal(FigmaRenderFormat.enum.Png),
1651
- scale: z74.number()
1684
+ format: z77.literal(FigmaRenderFormat.enum.Png),
1685
+ scale: z77.number()
1652
1686
  });
1653
1687
  var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
1654
- format: z74.literal(FigmaRenderFormat.enum.Svg)
1688
+ format: z77.literal(FigmaRenderFormat.enum.Svg)
1655
1689
  });
1656
- var FigmaRenderImportModel = z74.discriminatedUnion("format", [
1690
+ var FigmaRenderImportModel = z77.discriminatedUnion("format", [
1657
1691
  FigmaPngRenderImportModel,
1658
1692
  FigmaSvgRenderImportModel
1659
1693
  ]);
1660
- var ImageImportModel = z74.union([UrlImageImportModel, FigmaRenderImportModel]);
1661
- var ImportModelBase = z75.object({
1662
- id: z75.string(),
1694
+ var ImageImportModel = z77.union([UrlImageImportModel, FigmaRenderImportModel]);
1695
+ var ImportModelBase = z78.object({
1696
+ id: z78.string(),
1663
1697
  meta: ObjectMeta,
1664
1698
  origin: DesignElementOrigin,
1665
- brandPersistentId: z75.string(),
1666
- sortOrder: z75.number()
1699
+ brandPersistentId: z78.string(),
1700
+ sortOrder: z78.number()
1667
1701
  });
1668
1702
  var ImportModelInputBase = ImportModelBase.omit({
1669
1703
  brandPersistentId: true,
1670
1704
  origin: true,
1671
1705
  sortOrder: true
1672
1706
  }).extend({
1673
- originId: z75.string(),
1674
- originMetadata: z75.record(z75.any())
1707
+ originId: z78.string(),
1708
+ originMetadata: z78.record(z78.any())
1675
1709
  });
1676
- var ComponentImportModelPart = z76.object({
1710
+ var ComponentImportModelPart = z79.object({
1677
1711
  thumbnail: ImageImportModel
1678
1712
  });
1679
1713
  var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
1680
- isAsset: z76.boolean(),
1714
+ isAsset: z79.boolean(),
1681
1715
  svg: FigmaSvgRenderImportModel.optional(),
1682
1716
  origin: ComponentOrigin
1683
1717
  });
@@ -1689,44 +1723,44 @@ var AssetImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart
1689
1723
  originMetadata: ComponentOriginPart
1690
1724
  });
1691
1725
  var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
1692
- z77.object({
1693
- id: z77.string(),
1726
+ z80.object({
1727
+ id: z80.string(),
1694
1728
  meta: ObjectMeta
1695
1729
  })
1696
1730
  );
1697
1731
  var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
1698
- z77.object({
1732
+ z80.object({
1699
1733
  origin: ThemeOverrideOrigin
1700
1734
  })
1701
1735
  );
1702
1736
  var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
1703
- z77.object({
1704
- originId: z77.string(),
1737
+ z80.object({
1738
+ originId: z80.string(),
1705
1739
  originMetadata: ThemeOverrideOriginPart
1706
1740
  })
1707
1741
  );
1708
- var ThemeImportModel = z77.object({
1742
+ var ThemeImportModel = z80.object({
1709
1743
  meta: ObjectMeta,
1710
- brandPersistentId: z77.string(),
1744
+ brandPersistentId: z80.string(),
1711
1745
  originSource: ThemeOriginSource,
1712
- overrides: z77.array(ThemeOverrideImportModel),
1713
- sortOrder: z77.number()
1746
+ overrides: z80.array(ThemeOverrideImportModel),
1747
+ sortOrder: z80.number()
1714
1748
  });
1715
- var ThemeImportModelInput = z77.object({
1749
+ var ThemeImportModelInput = z80.object({
1716
1750
  meta: ObjectMeta,
1717
- originObjects: z77.array(ThemeOriginObject),
1718
- overrides: z77.array(ThemeOverrideImportModelInput)
1751
+ originObjects: z80.array(ThemeOriginObject),
1752
+ overrides: z80.array(ThemeOverrideImportModelInput)
1719
1753
  });
1720
- var ThemeUpdateImportModel = z77.object({
1721
- themePersistentId: z77.string(),
1722
- overrides: z77.array(ThemeOverrideImportModel)
1754
+ var ThemeUpdateImportModel = z80.object({
1755
+ themePersistentId: z80.string(),
1756
+ overrides: z80.array(ThemeOverrideImportModel)
1723
1757
  });
1724
- var ThemeUpdateImportModelInput = z77.object({
1725
- themePersistentId: z77.string(),
1726
- overrides: z77.array(ThemeOverrideImportModelInput)
1758
+ var ThemeUpdateImportModelInput = z80.object({
1759
+ themePersistentId: z80.string(),
1760
+ overrides: z80.array(ThemeOverrideImportModelInput)
1727
1761
  });
1728
- var DesignTokenImportModelPart = z78.object({
1729
- collection: z78.string().optional()
1762
+ var DesignTokenImportModelPart = z81.object({
1763
+ collection: z81.string().optional()
1730
1764
  });
1731
1765
  var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
1732
1766
  origin: DesignTokenOrigin
@@ -1740,10 +1774,10 @@ var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
1740
1774
  image: FigmaPngRenderImportModel
1741
1775
  });
1742
1776
  var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
1743
- children: z79.lazy(() => FigmaFileStructureNodeImportModel.array())
1777
+ children: z82.lazy(() => FigmaFileStructureNodeImportModel.array())
1744
1778
  });
1745
- var FigmaFileStructureImportModelPart = z79.object({
1746
- data: z79.object({
1779
+ var FigmaFileStructureImportModelPart = z82.object({
1780
+ data: z82.object({
1747
1781
  rootNode: FigmaFileStructureNodeImportModel,
1748
1782
  assetsInFile: FigmaFileStructureStatistics
1749
1783
  })
@@ -1754,31 +1788,31 @@ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImp
1754
1788
  var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
1755
1789
  FigmaFileStructureImportModelPart.shape
1756
1790
  ).extend({
1757
- fileVersionId: z79.string()
1791
+ fileVersionId: z82.string()
1758
1792
  });
1759
- var DataSourceImportModel = z80.object({
1760
- id: z80.string(),
1761
- fileName: z80.string().optional(),
1762
- thumbnailUrl: z80.string().optional()
1793
+ var DataSourceImportModel = z83.object({
1794
+ id: z83.string(),
1795
+ fileName: z83.string().optional(),
1796
+ thumbnailUrl: z83.string().optional()
1763
1797
  });
1764
- var ImportModelInputCollection = z81.object({
1798
+ var ImportModelInputCollection = z84.object({
1765
1799
  source: DataSourceImportModel,
1766
- tokens: z81.array(DesignTokenImportModelInput).default([]),
1767
- components: z81.array(ComponentImportModelInput).default([]),
1768
- assets: z81.array(AssetImportModelInput).default([]),
1769
- themeUpdates: z81.array(ThemeUpdateImportModelInput).default([]),
1770
- themes: z81.array(ThemeImportModelInput).default([]),
1800
+ tokens: z84.array(DesignTokenImportModelInput).default([]),
1801
+ components: z84.array(ComponentImportModelInput).default([]),
1802
+ assets: z84.array(AssetImportModelInput).default([]),
1803
+ themeUpdates: z84.array(ThemeUpdateImportModelInput).default([]),
1804
+ themes: z84.array(ThemeImportModelInput).default([]),
1771
1805
  figmaFileStructure: FigmaFileStructureImportModelInput.optional()
1772
1806
  });
1773
- var ImportModelCollection = z81.object({
1774
- sources: z81.array(DataSourceImportModel),
1775
- tokens: z81.array(DesignTokenImportModel).default([]),
1776
- components: z81.array(ComponentImportModel).default([]),
1777
- themeUpdates: z81.array(ThemeUpdateImportModel).default([]),
1778
- themes: z81.array(ThemeImportModel).default([]),
1779
- figmaFileStructures: z81.array(FigmaFileStructureImportModel)
1807
+ var ImportModelCollection = z84.object({
1808
+ sources: z84.array(DataSourceImportModel),
1809
+ tokens: z84.array(DesignTokenImportModel).default([]),
1810
+ components: z84.array(ComponentImportModel).default([]),
1811
+ themeUpdates: z84.array(ThemeUpdateImportModel).default([]),
1812
+ themes: z84.array(ThemeImportModel).default([]),
1813
+ figmaFileStructures: z84.array(FigmaFileStructureImportModel)
1780
1814
  });
1781
- var ImportWarningType = z82.enum([
1815
+ var ImportWarningType = z85.enum([
1782
1816
  "NoVersionFound",
1783
1817
  "UnsupportedFill",
1784
1818
  "UnsupportedStroke",
@@ -1792,25 +1826,25 @@ var ImportWarningType = z82.enum([
1792
1826
  "DuplicateImportedStyleId",
1793
1827
  "DuplicateImportedStylePath"
1794
1828
  ]);
1795
- var ImportWarning = z82.object({
1829
+ var ImportWarning = z85.object({
1796
1830
  warningType: ImportWarningType,
1797
- componentId: z82.string().optional(),
1798
- componentName: z82.string().optional(),
1799
- styleId: z82.string().optional(),
1800
- styleName: z82.string().optional(),
1801
- unsupportedStyleValueType: z82.string().optional()
1831
+ componentId: z85.string().optional(),
1832
+ componentName: z85.string().optional(),
1833
+ styleId: z85.string().optional(),
1834
+ styleName: z85.string().optional(),
1835
+ unsupportedStyleValueType: z85.string().optional()
1802
1836
  });
1803
- var FileStructureStats = z83.object({
1837
+ var FileStructureStats = z86.object({
1804
1838
  frames: zeroNumberByDefault2(),
1805
1839
  components: zeroNumberByDefault2(),
1806
1840
  componentSets: zeroNumberByDefault2()
1807
1841
  });
1808
1842
  var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
1809
1843
  // Backward compatibility
1810
- z83.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
1844
+ z86.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
1811
1845
  );
1812
- var SourceImportSummaryByTokenType = z83.record(SourceImportSummaryByTokenTypeKey, z83.number());
1813
- var SourceImportTokenSummary = z83.object({
1846
+ var SourceImportSummaryByTokenType = z86.record(SourceImportSummaryByTokenTypeKey, z86.number());
1847
+ var SourceImportTokenSummary = z86.object({
1814
1848
  tokensCreated: zeroNumberByDefault2(),
1815
1849
  tokensUpdated: zeroNumberByDefault2(),
1816
1850
  tokensDeleted: zeroNumberByDefault2(),
@@ -1818,7 +1852,7 @@ var SourceImportTokenSummary = z83.object({
1818
1852
  tokensUpdatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {}),
1819
1853
  tokensDeletedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {})
1820
1854
  });
1821
- var SourceImportComponentSummary = z83.object({
1855
+ var SourceImportComponentSummary = z86.object({
1822
1856
  componentsCreated: zeroNumberByDefault2(),
1823
1857
  componentsUpdated: zeroNumberByDefault2(),
1824
1858
  componentsDeleted: zeroNumberByDefault2(),
@@ -1826,54 +1860,54 @@ var SourceImportComponentSummary = z83.object({
1826
1860
  componentAssetsUpdated: zeroNumberByDefault2(),
1827
1861
  componentAssetsDeleted: zeroNumberByDefault2()
1828
1862
  });
1829
- var SourceImportFrameSummary = z83.object({
1863
+ var SourceImportFrameSummary = z86.object({
1830
1864
  assetsInFile: nullishToOptional(FileStructureStats.optional()),
1831
- invalidReferencesCount: nullishToOptional(z83.number().optional())
1832
- });
1833
- var SourceImportSummary = z83.object({
1834
- sourceId: nullishToOptional(z83.string()),
1835
- brandId: nullishToOptional(z83.string()),
1836
- versionId: nullishToOptional(z83.string()),
1837
- error: nullishToOptional(z83.any()),
1838
- isFailed: z83.boolean(),
1839
- warnings: z83.array(ImportWarning).nullish().transform((v) => v ?? []),
1865
+ invalidReferencesCount: nullishToOptional(z86.number().optional())
1866
+ });
1867
+ var SourceImportSummary = z86.object({
1868
+ sourceId: nullishToOptional(z86.string()),
1869
+ brandId: nullishToOptional(z86.string()),
1870
+ versionId: nullishToOptional(z86.string()),
1871
+ error: nullishToOptional(z86.any()),
1872
+ isFailed: z86.boolean(),
1873
+ warnings: z86.array(ImportWarning).nullish().transform((v) => v ?? []),
1840
1874
  ...SourceImportTokenSummary.shape,
1841
1875
  ...SourceImportComponentSummary.shape,
1842
1876
  ...FileStructureStats.shape
1843
1877
  });
1844
1878
  function zeroNumberByDefault2() {
1845
- return z83.number().nullish().transform((v) => v ?? 0);
1879
+ return z86.number().nullish().transform((v) => v ?? 0);
1846
1880
  }
1847
- var PageBlockDefinitionAppearance = z84.object({
1848
- isBordered: z84.boolean().optional(),
1849
- hasBackground: z84.boolean().optional(),
1850
- isEditorPresentationDifferent: z84.boolean().optional()
1851
- });
1852
- var PageBlockDefinitionLayoutType = z85.enum(["Column", "Row"]);
1853
- var PageBlockDefinitionLayoutGap = z85.enum(["Small", "Medium", "Large", "None"]);
1854
- var PageBlockDefinitionLayoutAlign = z85.enum(["Start", "Center", "End"]);
1855
- var PageBlockDefinitionLayoutResizing = z85.enum(["Fill", "Hug"]);
1856
- var PageBlockDefinitionLayoutBase = z85.object({
1881
+ var PageBlockDefinitionAppearance = z87.object({
1882
+ isBordered: z87.boolean().optional(),
1883
+ hasBackground: z87.boolean().optional(),
1884
+ isEditorPresentationDifferent: z87.boolean().optional()
1885
+ });
1886
+ var PageBlockDefinitionLayoutType = z88.enum(["Column", "Row"]);
1887
+ var PageBlockDefinitionLayoutGap = z88.enum(["Small", "Medium", "Large", "None"]);
1888
+ var PageBlockDefinitionLayoutAlign = z88.enum(["Start", "Center", "End"]);
1889
+ var PageBlockDefinitionLayoutResizing = z88.enum(["Fill", "Hug"]);
1890
+ var PageBlockDefinitionLayoutBase = z88.object({
1857
1891
  type: PageBlockDefinitionLayoutType,
1858
1892
  gap: PageBlockDefinitionLayoutGap.optional(),
1859
1893
  columnAlign: PageBlockDefinitionLayoutAlign.optional(),
1860
1894
  columnResizing: PageBlockDefinitionLayoutResizing.optional()
1861
1895
  });
1862
1896
  var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
1863
- children: z85.lazy(() => z85.array(PageBlockDefinitionLayout.or(z85.string())))
1864
- });
1865
- var PageBlockDefinitionVariant = z85.object({
1866
- id: z85.string(),
1867
- name: z85.string(),
1868
- image: z85.string().optional(),
1869
- description: z85.string().optional(),
1870
- documentationLink: z85.string().optional(),
1897
+ children: z88.lazy(() => z88.array(PageBlockDefinitionLayout.or(z88.string())))
1898
+ });
1899
+ var PageBlockDefinitionVariant = z88.object({
1900
+ id: z88.string(),
1901
+ name: z88.string(),
1902
+ image: z88.string().optional(),
1903
+ description: z88.string().optional(),
1904
+ documentationLink: z88.string().optional(),
1871
1905
  layout: PageBlockDefinitionLayout,
1872
- maxColumns: z85.number().optional(),
1873
- defaultColumns: z85.number().optional(),
1906
+ maxColumns: z88.number().optional(),
1907
+ defaultColumns: z88.number().optional(),
1874
1908
  appearance: PageBlockDefinitionAppearance.optional()
1875
1909
  });
1876
- var PageBlockDefinitionPropertyType = z86.enum([
1910
+ var PageBlockDefinitionPropertyType = z89.enum([
1877
1911
  "RichText",
1878
1912
  "MultiRichText",
1879
1913
  "Text",
@@ -1900,7 +1934,7 @@ var PageBlockDefinitionPropertyType = z86.enum([
1900
1934
  "Storybook",
1901
1935
  "Color"
1902
1936
  ]);
1903
- var PageBlockDefinitionRichTextPropertyStyle = z86.enum([
1937
+ var PageBlockDefinitionRichTextPropertyStyle = z89.enum([
1904
1938
  "Title1",
1905
1939
  "Title2",
1906
1940
  "Title3",
@@ -1910,8 +1944,8 @@ var PageBlockDefinitionRichTextPropertyStyle = z86.enum([
1910
1944
  "Callout",
1911
1945
  "Default"
1912
1946
  ]);
1913
- var PageBlockDefinitionMultiRichTextPropertyStyle = z86.enum(["OL", "UL", "Default"]);
1914
- var PageBlockDefinitionTextPropertyStyle = z86.enum([
1947
+ var PageBlockDefinitionMultiRichTextPropertyStyle = z89.enum(["OL", "UL", "Default"]);
1948
+ var PageBlockDefinitionTextPropertyStyle = z89.enum([
1915
1949
  "Title1",
1916
1950
  "Title2",
1917
1951
  "Title3",
@@ -1924,77 +1958,77 @@ var PageBlockDefinitionTextPropertyStyle = z86.enum([
1924
1958
  "SmallBold",
1925
1959
  "SmallSemibold"
1926
1960
  ]);
1927
- var PageBlockDefinitionTextPropertyColor = z86.enum(["Neutral", "NeutralFaded"]);
1928
- var PageBlockDefinitionBooleanPropertyStyle = z86.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
1929
- var PageBlockDefinitionSingleSelectPropertyStyle = z86.enum([
1961
+ var PageBlockDefinitionTextPropertyColor = z89.enum(["Neutral", "NeutralFaded"]);
1962
+ var PageBlockDefinitionBooleanPropertyStyle = z89.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
1963
+ var PageBlockDefinitionSingleSelectPropertyStyle = z89.enum([
1930
1964
  "SegmentedControl",
1931
1965
  "ToggleButton",
1932
1966
  "Select",
1933
1967
  "Checkbox"
1934
1968
  ]);
1935
- var PageBlockDefinitionMultiSelectPropertyStyle = z86.enum(["SegmentedControl", "Select", "Checkbox"]);
1936
- var PageBlockDefinitionImageAspectRatio = z86.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
1937
- var PageBlockDefinitionImageWidth = z86.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
1938
- var PageBlockDefinitionSelectChoice = z86.object({
1939
- value: z86.string(),
1940
- name: z86.string(),
1941
- icon: z86.string().optional()
1942
- });
1943
- var PageBlockDefinitionUntypedPropertyOptions = z86.record(z86.any());
1944
- var PageBlockDefinitionRichTextOptions = z86.object({
1969
+ var PageBlockDefinitionMultiSelectPropertyStyle = z89.enum(["SegmentedControl", "Select", "Checkbox"]);
1970
+ var PageBlockDefinitionImageAspectRatio = z89.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
1971
+ var PageBlockDefinitionImageWidth = z89.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
1972
+ var PageBlockDefinitionSelectChoice = z89.object({
1973
+ value: z89.string(),
1974
+ name: z89.string(),
1975
+ icon: z89.string().optional()
1976
+ });
1977
+ var PageBlockDefinitionUntypedPropertyOptions = z89.record(z89.any());
1978
+ var PageBlockDefinitionRichTextOptions = z89.object({
1945
1979
  richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
1946
1980
  });
1947
- var PageBlockDefinitionMutiRichTextOptions = z86.object({
1981
+ var PageBlockDefinitionMutiRichTextOptions = z89.object({
1948
1982
  multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
1949
1983
  });
1950
- var PageBlockDefinitionTextOptions = z86.object({
1951
- placeholder: z86.string().optional(),
1952
- defaultValue: z86.string().optional(),
1984
+ var PageBlockDefinitionTextOptions = z89.object({
1985
+ placeholder: z89.string().optional(),
1986
+ defaultValue: z89.string().optional(),
1953
1987
  textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
1954
1988
  color: PageBlockDefinitionTextPropertyColor.optional()
1955
1989
  });
1956
- var PageBlockDefinitionSelectOptions = z86.object({
1990
+ var PageBlockDefinitionSelectOptions = z89.object({
1957
1991
  singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
1958
- defaultChoice: z86.string(),
1959
- choices: z86.array(PageBlockDefinitionSelectChoice)
1992
+ defaultChoice: z89.string(),
1993
+ choices: z89.array(PageBlockDefinitionSelectChoice)
1960
1994
  });
1961
- var PageBlockDefinitionImageOptions = z86.object({
1995
+ var PageBlockDefinitionImageOptions = z89.object({
1962
1996
  width: PageBlockDefinitionImageWidth.optional(),
1963
1997
  aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
1964
- allowCaption: z86.boolean().optional(),
1965
- recommendation: z86.string().optional()
1998
+ allowCaption: z89.boolean().optional(),
1999
+ recommendation: z89.string().optional()
1966
2000
  });
1967
- var PageBlockDefinitionBooleanOptions = z86.object({
1968
- defaultvalue: z86.boolean().optional(),
2001
+ var PageBlockDefinitionBooleanOptions = z89.object({
2002
+ defaultvalue: z89.boolean().optional(),
1969
2003
  booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
1970
2004
  });
1971
- var PageBlockDefinitionNumberOptions = z86.object({
1972
- defaultValue: z86.number(),
1973
- min: z86.number().optional(),
1974
- max: z86.number().optional(),
1975
- step: z86.number().optional(),
1976
- placeholder: z86.string().optional()
2005
+ var PageBlockDefinitionNumberOptions = z89.object({
2006
+ defaultValue: z89.number(),
2007
+ min: z89.number().optional(),
2008
+ max: z89.number().optional(),
2009
+ step: z89.number().optional(),
2010
+ placeholder: z89.string().optional()
1977
2011
  });
1978
- var PageBlockDefinitionComponentOptions = z86.object({
1979
- renderLayoutAs: z86.enum(["List", "Table"]).optional(),
1980
- allowPropertySelection: z86.boolean().optional()
2012
+ var PageBlockDefinitionComponentOptions = z89.object({
2013
+ renderLayoutAs: z89.enum(["List", "Table"]).optional(),
2014
+ allowPropertySelection: z89.boolean().optional()
1981
2015
  });
1982
- var PageBlockDefinitionProperty = z86.object({
1983
- id: z86.string(),
1984
- name: z86.string(),
2016
+ var PageBlockDefinitionProperty = z89.object({
2017
+ id: z89.string(),
2018
+ name: z89.string(),
1985
2019
  type: PageBlockDefinitionPropertyType,
1986
- description: z86.string().optional(),
2020
+ description: z89.string().optional(),
1987
2021
  // TODO Docs
1988
2022
  options: PageBlockDefinitionUntypedPropertyOptions.optional(),
1989
- variantOptions: z86.record(PageBlockDefinitionUntypedPropertyOptions).optional()
2023
+ variantOptions: z89.record(PageBlockDefinitionUntypedPropertyOptions).optional()
1990
2024
  });
1991
- var PageBlockDefinitionItem = z86.object({
1992
- properties: z86.array(PageBlockDefinitionProperty),
2025
+ var PageBlockDefinitionItem = z89.object({
2026
+ properties: z89.array(PageBlockDefinitionProperty),
1993
2027
  appearance: PageBlockDefinitionAppearance.optional(),
1994
- variants: z86.array(PageBlockDefinitionVariant),
1995
- defaultVariantKey: z86.string()
2028
+ variants: z89.array(PageBlockDefinitionVariant),
2029
+ defaultVariantKey: z89.string()
1996
2030
  });
1997
- var PageBlockCategory = z87.enum([
2031
+ var PageBlockCategory = z90.enum([
1998
2032
  "Text",
1999
2033
  "Layout",
2000
2034
  "Media",
@@ -2008,219 +2042,219 @@ var PageBlockCategory = z87.enum([
2008
2042
  "Data",
2009
2043
  "Other"
2010
2044
  ]);
2011
- var PageBlockBehaviorDataType = z87.enum(["Item", "Token", "Asset", "Component", "FigmaNode"]);
2012
- var PageBlockBehaviorSelectionType = z87.enum(["Entity", "Group", "EntityAndGroup"]);
2013
- var PageBlockDefinitionBehavior = z87.object({
2045
+ var PageBlockBehaviorDataType = z90.enum(["Item", "Token", "Asset", "Component", "FigmaNode"]);
2046
+ var PageBlockBehaviorSelectionType = z90.enum(["Entity", "Group", "EntityAndGroup"]);
2047
+ var PageBlockDefinitionBehavior = z90.object({
2014
2048
  dataType: PageBlockBehaviorDataType,
2015
- items: z87.object({
2016
- numberOfItems: z87.number(),
2017
- allowLinks: z87.boolean()
2049
+ items: z90.object({
2050
+ numberOfItems: z90.number(),
2051
+ allowLinks: z90.boolean()
2018
2052
  }).optional(),
2019
- entities: z87.object({
2053
+ entities: z90.object({
2020
2054
  selectionType: PageBlockBehaviorSelectionType,
2021
- maxSelected: z87.number()
2055
+ maxSelected: z90.number()
2022
2056
  }).optional()
2023
2057
  });
2024
- var PageBlockDefinitionOnboarding = z87.object({
2025
- helpText: z87.string(),
2026
- documentationLink: z87.string().optional()
2058
+ var PageBlockDefinitionOnboarding = z90.object({
2059
+ helpText: z90.string(),
2060
+ documentationLink: z90.string().optional()
2027
2061
  });
2028
- var PageBlockDefinition = z87.object({
2029
- id: z87.string(),
2030
- name: z87.string(),
2031
- description: z87.string(),
2062
+ var PageBlockDefinition = z90.object({
2063
+ id: z90.string(),
2064
+ name: z90.string(),
2065
+ description: z90.string(),
2032
2066
  category: PageBlockCategory,
2033
2067
  icon: AssetValue.optional(),
2034
- documentationLink: z87.string().optional(),
2035
- searchKeywords: z87.array(z87.string()).optional(),
2068
+ documentationLink: z90.string().optional(),
2069
+ searchKeywords: z90.array(z90.string()).optional(),
2036
2070
  item: PageBlockDefinitionItem,
2037
2071
  behavior: PageBlockDefinitionBehavior,
2038
- editorOptions: z87.object({
2072
+ editorOptions: z90.object({
2039
2073
  onboarding: PageBlockDefinitionOnboarding.optional()
2040
2074
  }),
2041
2075
  appearance: PageBlockDefinitionAppearance.optional()
2042
2076
  });
2043
- var DocumentationPageGroup = z88.object({
2044
- type: z88.literal("ElementGroup"),
2045
- childType: z88.literal("DocumentationPage"),
2046
- id: z88.string(),
2047
- persistentId: z88.string(),
2048
- shortPersistentId: z88.string(),
2049
- designSystemVersionId: z88.string(),
2050
- parentPersistentId: z88.string().nullish(),
2051
- sortOrder: z88.number(),
2052
- title: z88.string(),
2053
- slug: z88.string(),
2054
- userSlug: z88.string().nullish(),
2055
- createdAt: z88.coerce.date(),
2056
- updatedAt: z88.coerce.date()
2057
- });
2058
- var DocumentationPage = z89.object({
2059
- type: z89.literal("DocumentationPage"),
2060
- id: z89.string(),
2061
- persistentId: z89.string(),
2062
- shortPersistentId: z89.string(),
2063
- designSystemVersionId: z89.string(),
2064
- parentPersistentId: z89.string().nullish(),
2065
- sortOrder: z89.number(),
2066
- title: z89.string(),
2067
- slug: z89.string(),
2068
- userSlug: z89.string().nullish(),
2069
- createdAt: z89.coerce.date(),
2070
- updatedAt: z89.coerce.date()
2071
- });
2072
- var NpmRegistryAuthType = z90.enum(["Basic", "Bearer", "None", "Custom"]);
2077
+ var DocumentationPageGroup = z91.object({
2078
+ type: z91.literal("ElementGroup"),
2079
+ childType: z91.literal("DocumentationPage"),
2080
+ id: z91.string(),
2081
+ persistentId: z91.string(),
2082
+ shortPersistentId: z91.string(),
2083
+ designSystemVersionId: z91.string(),
2084
+ parentPersistentId: z91.string().nullish(),
2085
+ sortOrder: z91.number(),
2086
+ title: z91.string(),
2087
+ slug: z91.string(),
2088
+ userSlug: z91.string().nullish(),
2089
+ createdAt: z91.coerce.date(),
2090
+ updatedAt: z91.coerce.date()
2091
+ });
2092
+ var DocumentationPage = z92.object({
2093
+ type: z92.literal("DocumentationPage"),
2094
+ id: z92.string(),
2095
+ persistentId: z92.string(),
2096
+ shortPersistentId: z92.string(),
2097
+ designSystemVersionId: z92.string(),
2098
+ parentPersistentId: z92.string().nullish(),
2099
+ sortOrder: z92.number(),
2100
+ title: z92.string(),
2101
+ slug: z92.string(),
2102
+ userSlug: z92.string().nullish(),
2103
+ createdAt: z92.coerce.date(),
2104
+ updatedAt: z92.coerce.date()
2105
+ });
2106
+ var NpmRegistryAuthType = z93.enum(["Basic", "Bearer", "None", "Custom"]);
2073
2107
  var registryTypesWithoutAzure = ["NPMJS", "GitHub", "Artifactory", "Custom"];
2074
- var NpmRegistryType = z90.enum([...registryTypesWithoutAzure, "AzureDevOps"]);
2075
- var NpmRegistryTypeWithoutAzure = z90.enum(registryTypesWithoutAzure);
2076
- var NpmRegistryBasicAuthConfig = z90.object({
2108
+ var NpmRegistryType = z93.enum([...registryTypesWithoutAzure, "AzureDevOps"]);
2109
+ var NpmRegistryTypeWithoutAzure = z93.enum(registryTypesWithoutAzure);
2110
+ var NpmRegistryBasicAuthConfig = z93.object({
2077
2111
  registryType: NpmRegistryType,
2078
- authType: z90.literal(NpmRegistryAuthType.Enum.Basic),
2079
- username: z90.string(),
2080
- password: z90.string()
2112
+ authType: z93.literal(NpmRegistryAuthType.Enum.Basic),
2113
+ username: z93.string(),
2114
+ password: z93.string()
2081
2115
  });
2082
- var NpmRegistryBearerAuthConfig = z90.object({
2116
+ var NpmRegistryBearerAuthConfig = z93.object({
2083
2117
  registryType: NpmRegistryTypeWithoutAzure,
2084
- authType: z90.literal(NpmRegistryAuthType.Enum.Bearer),
2085
- accessToken: z90.string()
2118
+ authType: z93.literal(NpmRegistryAuthType.Enum.Bearer),
2119
+ accessToken: z93.string()
2086
2120
  });
2087
- var NpmRegistryNoAuthConfig = z90.object({
2121
+ var NpmRegistryNoAuthConfig = z93.object({
2088
2122
  registryType: NpmRegistryTypeWithoutAzure,
2089
- authType: z90.literal(NpmRegistryAuthType.Enum.None)
2123
+ authType: z93.literal(NpmRegistryAuthType.Enum.None)
2090
2124
  });
2091
- var NpmRegistrCustomAuthConfig = z90.object({
2125
+ var NpmRegistrCustomAuthConfig = z93.object({
2092
2126
  registryType: NpmRegistryTypeWithoutAzure,
2093
- authType: z90.literal(NpmRegistryAuthType.Enum.Custom),
2094
- authHeaderName: z90.string(),
2095
- authHeaderValue: z90.string()
2127
+ authType: z93.literal(NpmRegistryAuthType.Enum.Custom),
2128
+ authHeaderName: z93.string(),
2129
+ authHeaderValue: z93.string()
2096
2130
  });
2097
- var NpmRegistryAuthConfig = z90.discriminatedUnion("authType", [
2131
+ var NpmRegistryAuthConfig = z93.discriminatedUnion("authType", [
2098
2132
  NpmRegistryBasicAuthConfig,
2099
2133
  NpmRegistryBearerAuthConfig,
2100
2134
  NpmRegistryNoAuthConfig,
2101
2135
  NpmRegistrCustomAuthConfig
2102
2136
  ]);
2103
- var NpmRegistryConfigBase = z90.object({
2104
- enabledScopes: z90.array(z90.string()),
2105
- customRegistryUrl: z90.string().optional(),
2106
- bypassProxy: z90.boolean().default(false),
2107
- npmProxyRegistryConfigId: z90.string().optional(),
2108
- npmProxyVersion: z90.number().optional()
2137
+ var NpmRegistryConfigBase = z93.object({
2138
+ enabledScopes: z93.array(z93.string()),
2139
+ customRegistryUrl: z93.string().optional(),
2140
+ bypassProxy: z93.boolean().default(false),
2141
+ npmProxyRegistryConfigId: z93.string().optional(),
2142
+ npmProxyVersion: z93.number().optional()
2109
2143
  });
2110
2144
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
2111
- var SsoProvider = z91.object({
2112
- providerId: z91.string(),
2113
- defaultAutoInviteValue: z91.boolean(),
2114
- autoInviteDomains: z91.record(z91.string(), z91.boolean()),
2115
- skipDocsSupernovaLogin: z91.boolean(),
2116
- areInvitesDisabled: z91.boolean(),
2117
- isTestMode: z91.boolean(),
2118
- emailDomains: z91.array(z91.string()),
2119
- metadataXml: z91.string().nullish()
2120
- });
2121
- var WorkspaceRoleSchema = z92.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
2145
+ var SsoProvider = z94.object({
2146
+ providerId: z94.string(),
2147
+ defaultAutoInviteValue: z94.boolean(),
2148
+ autoInviteDomains: z94.record(z94.string(), z94.boolean()),
2149
+ skipDocsSupernovaLogin: z94.boolean(),
2150
+ areInvitesDisabled: z94.boolean(),
2151
+ isTestMode: z94.boolean(),
2152
+ emailDomains: z94.array(z94.string()),
2153
+ metadataXml: z94.string().nullish()
2154
+ });
2155
+ var WorkspaceRoleSchema = z95.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
2122
2156
  var WorkspaceRole = WorkspaceRoleSchema.enum;
2123
2157
  var MAX_MEMBERS_COUNT = 100;
2124
- var UserInvite = z93.object({
2125
- email: z93.string().email().trim().transform((value) => value.toLowerCase()),
2158
+ var UserInvite = z96.object({
2159
+ email: z96.string().email().trim().transform((value) => value.toLowerCase()),
2126
2160
  role: WorkspaceRoleSchema
2127
2161
  });
2128
- var UserInvites = z93.array(UserInvite).max(MAX_MEMBERS_COUNT);
2129
- var WorkspaceIpWhitelistEntry = z94.object({
2130
- isEnabled: z94.boolean(),
2131
- name: z94.string(),
2132
- range: z94.string()
2162
+ var UserInvites = z96.array(UserInvite).max(MAX_MEMBERS_COUNT);
2163
+ var WorkspaceIpWhitelistEntry = z97.object({
2164
+ isEnabled: z97.boolean(),
2165
+ name: z97.string(),
2166
+ range: z97.string()
2133
2167
  });
2134
- var WorkspaceIpSettings = z94.object({
2135
- isEnabledForCloud: z94.boolean(),
2136
- isEnabledForDocs: z94.boolean(),
2137
- entries: z94.array(WorkspaceIpWhitelistEntry)
2168
+ var WorkspaceIpSettings = z97.object({
2169
+ isEnabledForCloud: z97.boolean(),
2170
+ isEnabledForDocs: z97.boolean(),
2171
+ entries: z97.array(WorkspaceIpWhitelistEntry)
2138
2172
  }).nullish();
2139
- var WorkspaceProfile = z94.object({
2140
- name: z94.string(),
2141
- handle: z94.string(),
2142
- color: z94.string(),
2143
- avatar: z94.string().optional(),
2173
+ var WorkspaceProfile = z97.object({
2174
+ name: z97.string(),
2175
+ handle: z97.string(),
2176
+ color: z97.string(),
2177
+ avatar: z97.string().optional(),
2144
2178
  billingDetails: BillingDetails.optional()
2145
2179
  });
2146
- var Workspace = z94.object({
2147
- id: z94.string(),
2180
+ var Workspace = z97.object({
2181
+ id: z97.string(),
2148
2182
  profile: WorkspaceProfile,
2149
2183
  subscription: Subscription,
2150
2184
  ipWhitelist: WorkspaceIpSettings,
2151
2185
  sso: SsoProvider.nullish(),
2152
- npmRegistrySettings: z94.unknown().optional(),
2153
- designSystems: z94.array(DesignSystem).nullish()
2186
+ npmRegistrySettings: z97.unknown().optional(),
2187
+ designSystems: z97.array(DesignSystem).nullish()
2154
2188
  });
2155
- var WorkspaceWithDesignSystems = z94.object({
2189
+ var WorkspaceWithDesignSystems = z97.object({
2156
2190
  workspace: Workspace,
2157
- designSystems: z94.array(DesignSystem)
2191
+ designSystems: z97.array(DesignSystem)
2158
2192
  });
2159
- var WorkspaceContext = z95.object({
2160
- workspaceId: z95.string(),
2193
+ var WorkspaceContext = z98.object({
2194
+ workspaceId: z98.string(),
2161
2195
  product: ProductCodeSchema,
2162
2196
  ipWhitelist: WorkspaceIpSettings,
2163
- publicDesignSystem: z95.boolean().optional()
2197
+ publicDesignSystem: z98.boolean().optional()
2164
2198
  });
2165
2199
  var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
2166
2200
  var WORKSPACE_NAME_MIN_LENGTH = 2;
2167
2201
  var WORKSPACE_NAME_MAX_LENGTH = 64;
2168
2202
  var HANDLE_MIN_LENGTH = 2;
2169
2203
  var HANDLE_MAX_LENGTH = 64;
2170
- var CreateWorkspaceInput = z96.object({
2171
- name: z96.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2204
+ var CreateWorkspaceInput = z99.object({
2205
+ name: z99.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2172
2206
  product: ProductCodeSchema,
2173
- priceId: z96.string(),
2174
- billingEmail: z96.string().email().optional(),
2175
- handle: z96.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2207
+ priceId: z99.string(),
2208
+ billingEmail: z99.string().email().optional(),
2209
+ handle: z99.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2176
2210
  invites: UserInvites.optional(),
2177
- promoCode: z96.string().optional()
2178
- });
2179
- var WorkspaceInvitation = z97.object({
2180
- id: z97.string(),
2181
- email: z97.string().email(),
2182
- createdAt: z97.coerce.date(),
2183
- resentAt: z97.coerce.date().nullish(),
2184
- role: z97.nativeEnum(WorkspaceRole),
2185
- workspaceId: z97.string(),
2186
- invitedBy: z97.string()
2187
- });
2188
- var WorkspaceMembership = z98.object({
2189
- id: z98.string(),
2190
- userId: z98.string(),
2191
- workspaceId: z98.string(),
2192
- workspaceRole: z98.nativeEnum(WorkspaceRole)
2193
- });
2194
- var UpdateMembershipRolesInput = z98.object({
2195
- members: z98.array(
2196
- z98.object({
2197
- userId: z98.string(),
2198
- role: z98.nativeEnum(WorkspaceRole)
2211
+ promoCode: z99.string().optional()
2212
+ });
2213
+ var WorkspaceInvitation = z100.object({
2214
+ id: z100.string(),
2215
+ email: z100.string().email(),
2216
+ createdAt: z100.coerce.date(),
2217
+ resentAt: z100.coerce.date().nullish(),
2218
+ role: z100.nativeEnum(WorkspaceRole),
2219
+ workspaceId: z100.string(),
2220
+ invitedBy: z100.string()
2221
+ });
2222
+ var WorkspaceMembership = z101.object({
2223
+ id: z101.string(),
2224
+ userId: z101.string(),
2225
+ workspaceId: z101.string(),
2226
+ workspaceRole: z101.nativeEnum(WorkspaceRole)
2227
+ });
2228
+ var UpdateMembershipRolesInput = z101.object({
2229
+ members: z101.array(
2230
+ z101.object({
2231
+ userId: z101.string(),
2232
+ role: z101.nativeEnum(WorkspaceRole)
2199
2233
  })
2200
2234
  )
2201
2235
  });
2202
- var DesignSystemSwitcher = z99.object({
2203
- isEnabled: z99.boolean(),
2204
- designSystemIds: z99.array(z99.string())
2205
- });
2206
- var DesignSystem = z99.object({
2207
- id: z99.string(),
2208
- workspaceId: z99.string(),
2209
- name: z99.string(),
2210
- description: z99.string(),
2211
- docExporterId: nullishToOptional(z99.string()),
2212
- docSlug: z99.string(),
2213
- docUserSlug: nullishToOptional(z99.string()),
2214
- docSlugDeprecated: z99.string(),
2215
- isPublic: z99.boolean(),
2216
- isMultibrand: z99.boolean(),
2217
- docViewUrl: nullishToOptional(z99.string()),
2218
- basePrefixes: z99.array(z99.string()),
2236
+ var DesignSystemSwitcher = z102.object({
2237
+ isEnabled: z102.boolean(),
2238
+ designSystemIds: z102.array(z102.string())
2239
+ });
2240
+ var DesignSystem = z102.object({
2241
+ id: z102.string(),
2242
+ workspaceId: z102.string(),
2243
+ name: z102.string(),
2244
+ description: z102.string(),
2245
+ docExporterId: nullishToOptional(z102.string()),
2246
+ docSlug: z102.string(),
2247
+ docUserSlug: nullishToOptional(z102.string()),
2248
+ docSlugDeprecated: z102.string(),
2249
+ isPublic: z102.boolean(),
2250
+ isMultibrand: z102.boolean(),
2251
+ docViewUrl: nullishToOptional(z102.string()),
2252
+ basePrefixes: z102.array(z102.string()),
2219
2253
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
2220
- createdAt: z99.coerce.date(),
2221
- updatedAt: z99.coerce.date()
2254
+ createdAt: z102.coerce.date(),
2255
+ updatedAt: z102.coerce.date()
2222
2256
  });
2223
- var DesignSystemWithWorkspace = z99.object({
2257
+ var DesignSystemWithWorkspace = z102.object({
2224
2258
  designSystem: DesignSystem,
2225
2259
  workspace: Workspace
2226
2260
  });
@@ -2228,81 +2262,81 @@ var DS_NAME_MIN_LENGTH = 2;
2228
2262
  var DS_NAME_MAX_LENGTH = 64;
2229
2263
  var DS_DESC_MIN_LENGTH = 2;
2230
2264
  var DS_DESC_MAX_LENGTH = 64;
2231
- var DesignSystemCreateInputMetadata = z100.object({
2232
- name: z100.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2233
- description: z100.string().min(DS_DESC_MIN_LENGTH).max(DS_DESC_MAX_LENGTH).trim()
2265
+ var DesignSystemCreateInputMetadata = z103.object({
2266
+ name: z103.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2267
+ description: z103.string().min(DS_DESC_MIN_LENGTH).max(DS_DESC_MAX_LENGTH).trim()
2234
2268
  });
2235
- var DesignSystemCreateInput = z100.object({
2269
+ var DesignSystemCreateInput = z103.object({
2236
2270
  meta: DesignSystemCreateInputMetadata,
2237
- workspaceId: z100.string(),
2238
- isPublic: z100.boolean().optional(),
2239
- basePrefixes: z100.array(z100.string()).optional(),
2240
- docUserSlug: z100.string().nullish().optional(),
2241
- source: z100.array(z100.string()).optional()
2271
+ workspaceId: z103.string(),
2272
+ isPublic: z103.boolean().optional(),
2273
+ basePrefixes: z103.array(z103.string()).optional(),
2274
+ docUserSlug: z103.string().nullish().optional(),
2275
+ source: z103.array(z103.string()).optional()
2242
2276
  });
2243
2277
  var DS_NAME_MIN_LENGTH2 = 2;
2244
2278
  var DS_NAME_MAX_LENGTH2 = 64;
2245
2279
  var DS_DESC_MIN_LENGTH2 = 2;
2246
2280
  var DS_DESC_MAX_LENGTH2 = 64;
2247
- var DesignSystemUpdateInputMetadata = z101.object({
2248
- name: z101.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2249
- description: z101.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional()
2281
+ var DesignSystemUpdateInputMetadata = z104.object({
2282
+ name: z104.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2283
+ description: z104.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional()
2250
2284
  });
2251
- var DesignSystemUpdateInput = z101.object({
2285
+ var DesignSystemUpdateInput = z104.object({
2252
2286
  meta: DesignSystemUpdateInputMetadata.optional(),
2253
- workspaceId: z101.string().optional(),
2254
- isPublic: z101.boolean().optional(),
2255
- basePrefixes: z101.array(z101.string()).optional(),
2256
- docUserSlug: z101.string().nullish().optional(),
2257
- source: z101.array(z101.string()).optional(),
2258
- name: z101.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2259
- description: z101.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional(),
2260
- docExporterId: z101.string().optional()
2287
+ workspaceId: z104.string().optional(),
2288
+ isPublic: z104.boolean().optional(),
2289
+ basePrefixes: z104.array(z104.string()).optional(),
2290
+ docUserSlug: z104.string().nullish().optional(),
2291
+ source: z104.array(z104.string()).optional(),
2292
+ name: z104.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2293
+ description: z104.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional(),
2294
+ docExporterId: z104.string().optional()
2261
2295
  });
2262
2296
  var publishedDocEnvironments = ["Live", "Preview"];
2263
- var PublishedDocEnvironment = z102.enum(publishedDocEnvironments);
2264
- var PublishedDocsChecksums = z102.record(z102.string());
2265
- var PublishedDocRoutingVersion = z102.enum(["1", "2"]);
2266
- var PublishedDoc = z102.object({
2267
- id: z102.string(),
2268
- designSystemVersionId: z102.string(),
2269
- createdAt: z102.coerce.date(),
2270
- updatedAt: z102.coerce.date(),
2271
- lastPublishedAt: z102.coerce.date(),
2272
- isDefault: z102.boolean(),
2273
- isPublic: z102.boolean(),
2297
+ var PublishedDocEnvironment = z105.enum(publishedDocEnvironments);
2298
+ var PublishedDocsChecksums = z105.record(z105.string());
2299
+ var PublishedDocRoutingVersion = z105.enum(["1", "2"]);
2300
+ var PublishedDoc = z105.object({
2301
+ id: z105.string(),
2302
+ designSystemVersionId: z105.string(),
2303
+ createdAt: z105.coerce.date(),
2304
+ updatedAt: z105.coerce.date(),
2305
+ lastPublishedAt: z105.coerce.date(),
2306
+ isDefault: z105.boolean(),
2307
+ isPublic: z105.boolean(),
2274
2308
  environment: PublishedDocEnvironment,
2275
2309
  checksums: PublishedDocsChecksums,
2276
- storagePath: z102.string(),
2277
- wasMigrated: z102.boolean(),
2310
+ storagePath: z105.string(),
2311
+ wasMigrated: z105.boolean(),
2278
2312
  routingVersion: PublishedDocRoutingVersion,
2279
- usesLocalizations: z102.boolean(),
2280
- wasPublishedWithLocalizations: z102.boolean()
2281
- });
2282
- var ExporterJobDestination = z103.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
2283
- var ExporterJobStatus = z103.enum(["InProgress", "Success", "Failed", "Timeout"]);
2284
- var ExporterJobLogEntryType = z103.enum(["success", "info", "warning", "error", "user"]);
2285
- var ExporterJobLogEntry = z103.object({
2286
- id: z103.string().optional(),
2287
- time: z103.coerce.date(),
2313
+ usesLocalizations: z105.boolean(),
2314
+ wasPublishedWithLocalizations: z105.boolean()
2315
+ });
2316
+ var ExporterJobDestination = z106.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
2317
+ var ExporterJobStatus = z106.enum(["InProgress", "Success", "Failed", "Timeout"]);
2318
+ var ExporterJobLogEntryType = z106.enum(["success", "info", "warning", "error", "user"]);
2319
+ var ExporterJobLogEntry = z106.object({
2320
+ id: z106.string().optional(),
2321
+ time: z106.coerce.date(),
2288
2322
  type: ExporterJobLogEntryType,
2289
- message: z103.string()
2323
+ message: z106.string()
2290
2324
  });
2291
- var ExporterJobResultPullRequestDestination = z103.object({
2292
- pullRequestUrl: z103.string()
2325
+ var ExporterJobResultPullRequestDestination = z106.object({
2326
+ pullRequestUrl: z106.string()
2293
2327
  });
2294
- var ExporterJobResultS3Destination = z103.object({
2295
- bucket: z103.string(),
2296
- urlPrefix: z103.string().optional(),
2297
- path: z103.string(),
2298
- files: z103.array(z103.string())
2328
+ var ExporterJobResultS3Destination = z106.object({
2329
+ bucket: z106.string(),
2330
+ urlPrefix: z106.string().optional(),
2331
+ path: z106.string(),
2332
+ files: z106.array(z106.string())
2299
2333
  });
2300
- var ExporterJobResultDocsDestination = z103.object({
2301
- url: z103.string()
2334
+ var ExporterJobResultDocsDestination = z106.object({
2335
+ url: z106.string()
2302
2336
  });
2303
- var ExporterJobResult = z103.object({
2304
- error: z103.string().optional(),
2305
- logs: z103.array(ExporterJobLogEntry).optional(),
2337
+ var ExporterJobResult = z106.object({
2338
+ error: z106.string().optional(),
2339
+ logs: z106.array(ExporterJobLogEntry).optional(),
2306
2340
  s3: ExporterJobResultS3Destination.optional(),
2307
2341
  github: ExporterJobResultPullRequestDestination.optional(),
2308
2342
  azure: ExporterJobResultPullRequestDestination.optional(),
@@ -2310,68 +2344,68 @@ var ExporterJobResult = z103.object({
2310
2344
  bitbucket: ExporterJobResultPullRequestDestination.optional(),
2311
2345
  sndocs: ExporterJobResultDocsDestination.optional()
2312
2346
  });
2313
- var ExporterDestinationSnDocs = z103.object({
2347
+ var ExporterDestinationSnDocs = z106.object({
2314
2348
  environment: PublishedDocEnvironment
2315
2349
  });
2316
- var ExporterDestinationS3 = z103.object({});
2317
- var ExporterDestinationGithub = z103.object({
2318
- connectionId: z103.string(),
2319
- url: z103.string(),
2320
- branch: z103.string(),
2321
- relativePath: z103.string(),
2350
+ var ExporterDestinationS3 = z106.object({});
2351
+ var ExporterDestinationGithub = z106.object({
2352
+ connectionId: z106.string(),
2353
+ url: z106.string(),
2354
+ branch: z106.string(),
2355
+ relativePath: z106.string(),
2322
2356
  // +
2323
- userId: z103.coerce.string()
2324
- });
2325
- var ExporterDestinationAzure = z103.object({
2326
- connectionId: z103.string(),
2327
- organizationId: z103.string(),
2328
- projectId: z103.string(),
2329
- repositoryId: z103.string(),
2330
- branch: z103.string(),
2331
- relativePath: z103.string(),
2357
+ userId: z106.coerce.string()
2358
+ });
2359
+ var ExporterDestinationAzure = z106.object({
2360
+ connectionId: z106.string(),
2361
+ organizationId: z106.string(),
2362
+ projectId: z106.string(),
2363
+ repositoryId: z106.string(),
2364
+ branch: z106.string(),
2365
+ relativePath: z106.string(),
2332
2366
  // +
2333
- userId: z103.coerce.string(),
2334
- url: z103.string()
2335
- });
2336
- var ExporterDestinationGitlab = z103.object({
2337
- connectionId: z103.string(),
2338
- projectId: z103.string(),
2339
- branch: z103.string(),
2340
- relativePath: z103.string(),
2367
+ userId: z106.coerce.string(),
2368
+ url: z106.string()
2369
+ });
2370
+ var ExporterDestinationGitlab = z106.object({
2371
+ connectionId: z106.string(),
2372
+ projectId: z106.string(),
2373
+ branch: z106.string(),
2374
+ relativePath: z106.string(),
2341
2375
  // +
2342
- userId: z103.coerce.string(),
2343
- url: z103.string()
2376
+ userId: z106.coerce.string(),
2377
+ url: z106.string()
2344
2378
  });
2345
2379
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
2346
2380
  var BITBUCKET_MAX_LENGTH = 64;
2347
- var ExporterDestinationBitbucket = z103.object({
2348
- connectionId: z103.string(),
2349
- workspaceSlug: z103.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2350
- projectKey: z103.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2351
- repoSlug: z103.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2352
- branch: z103.string(),
2353
- relativePath: z103.string(),
2381
+ var ExporterDestinationBitbucket = z106.object({
2382
+ connectionId: z106.string(),
2383
+ workspaceSlug: z106.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2384
+ projectKey: z106.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2385
+ repoSlug: z106.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2386
+ branch: z106.string(),
2387
+ relativePath: z106.string(),
2354
2388
  // +
2355
- userId: z103.coerce.string(),
2356
- url: z103.string()
2357
- });
2358
- var ExporterJob = z103.object({
2359
- id: z103.coerce.string(),
2360
- createdAt: z103.coerce.date(),
2361
- finishedAt: z103.coerce.date().optional(),
2362
- designSystemId: z103.coerce.string(),
2363
- designSystemVersionId: z103.coerce.string(),
2364
- workspaceId: z103.coerce.string(),
2365
- scheduleId: z103.coerce.string().nullish(),
2366
- exporterId: z103.coerce.string(),
2367
- brandId: z103.coerce.string().optional(),
2368
- themeId: z103.coerce.string().optional(),
2369
- estimatedExecutionTime: z103.number().optional(),
2389
+ userId: z106.coerce.string(),
2390
+ url: z106.string()
2391
+ });
2392
+ var ExporterJob = z106.object({
2393
+ id: z106.coerce.string(),
2394
+ createdAt: z106.coerce.date(),
2395
+ finishedAt: z106.coerce.date().optional(),
2396
+ designSystemId: z106.coerce.string(),
2397
+ designSystemVersionId: z106.coerce.string(),
2398
+ workspaceId: z106.coerce.string(),
2399
+ scheduleId: z106.coerce.string().nullish(),
2400
+ exporterId: z106.coerce.string(),
2401
+ brandId: z106.coerce.string().optional(),
2402
+ themeId: z106.coerce.string().optional(),
2403
+ estimatedExecutionTime: z106.number().optional(),
2370
2404
  status: ExporterJobStatus,
2371
2405
  result: ExporterJobResult.optional(),
2372
- createdByUserId: z103.string().optional(),
2406
+ createdByUserId: z106.string().optional(),
2373
2407
  // CodegenDestinationsModel
2374
- webhookUrl: z103.string().optional(),
2408
+ webhookUrl: z106.string().optional(),
2375
2409
  destinationSnDocs: ExporterDestinationSnDocs.optional(),
2376
2410
  destinationS3: ExporterDestinationS3.optional(),
2377
2411
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -2390,14 +2424,14 @@ var ExporterJobFindByFilter = ExporterJob.pick({
2390
2424
  themeId: true,
2391
2425
  brandId: true
2392
2426
  }).extend({
2393
- destinations: z103.array(ExporterJobDestination),
2427
+ destinations: z106.array(ExporterJobDestination),
2394
2428
  docsEnvironment: PublishedDocEnvironment
2395
2429
  }).partial();
2396
- var ExporterWorkspaceMembershipRole = z104.enum(["Owner", "OwnerArchived", "User"]);
2397
- var ExporterWorkspaceMembership = z105.object({
2398
- id: z105.string(),
2399
- workspaceId: z105.string(),
2400
- exporterId: z105.string(),
2430
+ var ExporterWorkspaceMembershipRole = z107.enum(["Owner", "OwnerArchived", "User"]);
2431
+ var ExporterWorkspaceMembership = z108.object({
2432
+ id: z108.string(),
2433
+ workspaceId: z108.string(),
2434
+ exporterId: z108.string(),
2401
2435
  role: ExporterWorkspaceMembershipRole
2402
2436
  });
2403
2437
  var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
@@ -2407,8 +2441,8 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
2407
2441
  GitProviderNames2["Bitbucket"] = "bitbucket";
2408
2442
  return GitProviderNames2;
2409
2443
  })(GitProviderNames || {});
2410
- var GitProvider = z106.nativeEnum(GitProviderNames);
2411
- var PulsarPropertyType = z107.enum([
2444
+ var GitProvider = z109.nativeEnum(GitProviderNames);
2445
+ var PulsarPropertyType = z110.enum([
2412
2446
  "string",
2413
2447
  "number",
2414
2448
  "boolean",
@@ -2421,164 +2455,164 @@ var PulsarPropertyType = z107.enum([
2421
2455
  "tokenProperties",
2422
2456
  "tokenType"
2423
2457
  ]);
2424
- var PulsarBaseProperty = z107.object({
2425
- label: z107.string(),
2426
- key: z107.string(),
2427
- description: z107.string().nullish(),
2458
+ var PulsarBaseProperty = z110.object({
2459
+ label: z110.string(),
2460
+ key: z110.string(),
2461
+ description: z110.string().nullish(),
2428
2462
  type: PulsarPropertyType,
2429
- values: z107.array(z107.string()).nullish(),
2430
- default: z107.union([z107.string(), z107.boolean(), z107.number()]).nullish(),
2463
+ values: z110.array(z110.string()).nullish(),
2464
+ default: z110.union([z110.string(), z110.boolean(), z110.number()]).nullish(),
2431
2465
  // PulsarPropertyValueType //is optional?
2432
- inputType: z107.enum(["code", "plain"]).optional(),
2466
+ inputType: z110.enum(["code", "plain"]).optional(),
2433
2467
  //is optional?
2434
- isMultiline: z107.boolean().nullish()
2468
+ isMultiline: z110.boolean().nullish()
2435
2469
  });
2436
2470
  var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
2437
- category: z107.string()
2438
- });
2439
- var PulsarContributionVariant = z107.object({
2440
- key: z107.string(),
2441
- name: z107.string(),
2442
- isDefault: z107.boolean().nullish(),
2443
- description: z107.string().nullish(),
2444
- thumbnailURL: z107.string().nullish()
2445
- });
2446
- var PulsarCustomBlock = z107.object({
2447
- title: z107.string(),
2448
- key: z107.string(),
2449
- category: z107.string(),
2450
- description: nullishToOptional(z107.string()),
2451
- iconURL: z107.string(),
2452
- mode: z107.enum(["array", "block"]),
2453
- properties: z107.array(PulsarBaseProperty)
2454
- });
2455
- var ExporterType = z108.enum(["code", "documentation"]);
2456
- var ExporterSource = z108.enum(["git", "upload"]);
2457
- var ExporterTag = z108.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
2458
- var ExporterDetails = z108.object({
2459
- description: z108.string(),
2460
- version: z108.string(),
2461
- routingVersion: nullishToOptional(z108.string()),
2462
- author: nullishToOptional(z108.string()),
2463
- organization: nullishToOptional(z108.string()),
2464
- homepage: nullishToOptional(z108.string()),
2465
- readme: nullishToOptional(z108.string()),
2466
- tags: nullishToOptional(z108.array(ExporterTag)).default([]),
2467
- packageId: nullishToOptional(z108.string().max(255)),
2468
- iconURL: nullishToOptional(z108.string()),
2469
- configurationProperties: nullishToOptional(z108.array(PulsarContributionConfigurationProperty)).default([]),
2470
- customBlocks: nullishToOptional(z108.array(PulsarCustomBlock)).default([]),
2471
- blockVariants: nullishToOptional(z108.record(z108.string(), z108.array(PulsarContributionVariant))).default({}),
2472
- usesBrands: nullishToOptional(z108.boolean()).default(false),
2473
- usesThemes: nullishToOptional(z108.boolean()).default(false),
2471
+ category: z110.string()
2472
+ });
2473
+ var PulsarContributionVariant = z110.object({
2474
+ key: z110.string(),
2475
+ name: z110.string(),
2476
+ isDefault: z110.boolean().nullish(),
2477
+ description: z110.string().nullish(),
2478
+ thumbnailURL: z110.string().nullish()
2479
+ });
2480
+ var PulsarCustomBlock = z110.object({
2481
+ title: z110.string(),
2482
+ key: z110.string(),
2483
+ category: z110.string(),
2484
+ description: nullishToOptional(z110.string()),
2485
+ iconURL: z110.string(),
2486
+ mode: z110.enum(["array", "block"]),
2487
+ properties: z110.array(PulsarBaseProperty)
2488
+ });
2489
+ var ExporterType = z111.enum(["code", "documentation"]);
2490
+ var ExporterSource = z111.enum(["git", "upload"]);
2491
+ var ExporterTag = z111.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
2492
+ var ExporterDetails = z111.object({
2493
+ description: z111.string(),
2494
+ version: z111.string(),
2495
+ routingVersion: nullishToOptional(z111.string()),
2496
+ author: nullishToOptional(z111.string()),
2497
+ organization: nullishToOptional(z111.string()),
2498
+ homepage: nullishToOptional(z111.string()),
2499
+ readme: nullishToOptional(z111.string()),
2500
+ tags: nullishToOptional(z111.array(ExporterTag)).default([]),
2501
+ packageId: nullishToOptional(z111.string().max(255)),
2502
+ iconURL: nullishToOptional(z111.string()),
2503
+ configurationProperties: nullishToOptional(z111.array(PulsarContributionConfigurationProperty)).default([]),
2504
+ customBlocks: nullishToOptional(z111.array(PulsarCustomBlock)).default([]),
2505
+ blockVariants: nullishToOptional(z111.record(z111.string(), z111.array(PulsarContributionVariant))).default({}),
2506
+ usesBrands: nullishToOptional(z111.boolean()).default(false),
2507
+ usesThemes: nullishToOptional(z111.boolean()).default(false),
2474
2508
  source: ExporterSource,
2475
2509
  gitProvider: nullishToOptional(GitProvider),
2476
- gitUrl: nullishToOptional(z108.string()),
2477
- gitBranch: nullishToOptional(z108.string()),
2478
- gitDirectory: nullishToOptional(z108.string())
2510
+ gitUrl: nullishToOptional(z111.string()),
2511
+ gitBranch: nullishToOptional(z111.string()),
2512
+ gitDirectory: nullishToOptional(z111.string())
2479
2513
  });
2480
- var Exporter = z108.object({
2481
- id: z108.string(),
2482
- createdAt: z108.coerce.date(),
2483
- name: z108.string(),
2484
- isPrivate: z108.boolean(),
2514
+ var Exporter = z111.object({
2515
+ id: z111.string(),
2516
+ createdAt: z111.coerce.date(),
2517
+ name: z111.string(),
2518
+ isPrivate: z111.boolean(),
2485
2519
  details: ExporterDetails,
2486
2520
  exporterType: nullishToOptional(ExporterType).default("code"),
2487
- storagePath: nullishToOptional(z108.string()).default("")
2488
- });
2489
- var CustomDomain = z109.object({
2490
- id: z109.string(),
2491
- designSystemId: z109.string(),
2492
- state: z109.string(),
2493
- supernovaDomain: z109.string(),
2494
- customerDomain: z109.string().nullish(),
2495
- error: z109.string().nullish(),
2496
- errorCode: z109.string().nullish()
2497
- });
2498
- var IntegrationAuthType = z110.union([z110.literal("OAuth2"), z110.literal("PAT")]);
2499
- var ExternalServiceType = z110.union([
2500
- z110.literal("figma"),
2501
- z110.literal("github"),
2502
- z110.literal("azure"),
2503
- z110.literal("gitlab"),
2504
- z110.literal("bitbucket")
2521
+ storagePath: nullishToOptional(z111.string()).default("")
2522
+ });
2523
+ var CustomDomain = z112.object({
2524
+ id: z112.string(),
2525
+ designSystemId: z112.string(),
2526
+ state: z112.string(),
2527
+ supernovaDomain: z112.string(),
2528
+ customerDomain: z112.string().nullish(),
2529
+ error: z112.string().nullish(),
2530
+ errorCode: z112.string().nullish()
2531
+ });
2532
+ var IntegrationAuthType = z113.union([z113.literal("OAuth2"), z113.literal("PAT")]);
2533
+ var ExternalServiceType = z113.union([
2534
+ z113.literal("figma"),
2535
+ z113.literal("github"),
2536
+ z113.literal("azure"),
2537
+ z113.literal("gitlab"),
2538
+ z113.literal("bitbucket")
2505
2539
  ]);
2506
- var IntegrationUserInfo = z110.object({
2507
- id: z110.string(),
2508
- handle: z110.string().optional(),
2509
- avatarUrl: z110.string().optional(),
2510
- email: z110.string().optional(),
2540
+ var IntegrationUserInfo = z113.object({
2541
+ id: z113.string(),
2542
+ handle: z113.string().optional(),
2543
+ avatarUrl: z113.string().optional(),
2544
+ email: z113.string().optional(),
2511
2545
  authType: IntegrationAuthType.optional(),
2512
- customUrl: z110.string().optional()
2546
+ customUrl: z113.string().optional()
2513
2547
  });
2514
- var UserLinkedIntegrations = z110.object({
2548
+ var UserLinkedIntegrations = z113.object({
2515
2549
  figma: IntegrationUserInfo.optional(),
2516
2550
  github: IntegrationUserInfo.array().optional(),
2517
2551
  azure: IntegrationUserInfo.array().optional(),
2518
2552
  gitlab: IntegrationUserInfo.array().optional(),
2519
2553
  bitbucket: IntegrationUserInfo.array().optional()
2520
2554
  });
2521
- var UserIdentity = z111.object({
2522
- id: z111.string(),
2523
- userId: z111.string()
2524
- });
2525
- var UserOnboardingDepartment = z112.enum(["Design", "Engineering", "Brand", "Other"]);
2526
- var UserOnboardingJobLevel = z112.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
2527
- var UserOnboarding = z112.object({
2528
- companyName: z112.string().optional(),
2529
- numberOfPeopleInOrg: z112.string().optional(),
2530
- numberOfPeopleInDesignTeam: z112.string().optional(),
2555
+ var UserIdentity = z114.object({
2556
+ id: z114.string(),
2557
+ userId: z114.string()
2558
+ });
2559
+ var UserOnboardingDepartment = z115.enum(["Design", "Engineering", "Brand", "Other"]);
2560
+ var UserOnboardingJobLevel = z115.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
2561
+ var UserOnboarding = z115.object({
2562
+ companyName: z115.string().optional(),
2563
+ numberOfPeopleInOrg: z115.string().optional(),
2564
+ numberOfPeopleInDesignTeam: z115.string().optional(),
2531
2565
  department: UserOnboardingDepartment.optional(),
2532
- jobTitle: z112.string().optional(),
2533
- phase: z112.string().optional(),
2566
+ jobTitle: z115.string().optional(),
2567
+ phase: z115.string().optional(),
2534
2568
  jobLevel: UserOnboardingJobLevel.optional()
2535
2569
  });
2536
- var UserProfile = z112.object({
2537
- name: z112.string(),
2538
- avatar: z112.string().optional(),
2539
- nickname: z112.string().optional(),
2570
+ var UserProfile = z115.object({
2571
+ name: z115.string(),
2572
+ avatar: z115.string().optional(),
2573
+ nickname: z115.string().optional(),
2540
2574
  onboarding: UserOnboarding.optional()
2541
2575
  });
2542
- var User = z113.object({
2543
- id: z113.string(),
2544
- email: z113.string(),
2545
- emailVerified: z113.boolean(),
2546
- createdAt: z113.coerce.date(),
2547
- trialExpiresAt: z113.coerce.date().optional(),
2576
+ var User = z116.object({
2577
+ id: z116.string(),
2578
+ email: z116.string(),
2579
+ emailVerified: z116.boolean(),
2580
+ createdAt: z116.coerce.date(),
2581
+ trialExpiresAt: z116.coerce.date().optional(),
2548
2582
  profile: UserProfile,
2549
2583
  linkedIntegrations: UserLinkedIntegrations.optional(),
2550
- loggedOutAt: z113.coerce.date().optional(),
2551
- isProtected: z113.boolean()
2584
+ loggedOutAt: z116.coerce.date().optional(),
2585
+ isProtected: z116.boolean()
2552
2586
  });
2553
- var NpmProxyToken = z114.object({
2554
- access: z114.string(),
2555
- expiresAt: z114.number()
2587
+ var NpmProxyToken = z117.object({
2588
+ access: z117.string(),
2589
+ expiresAt: z117.number()
2556
2590
  });
2557
- var SessionData = z114.object({
2558
- returnToUrl: z114.string().optional(),
2591
+ var SessionData = z117.object({
2592
+ returnToUrl: z117.string().optional(),
2559
2593
  npmProxyToken: NpmProxyToken.optional()
2560
2594
  });
2561
- var Session = z114.object({
2562
- id: z114.string(),
2563
- expiresAt: z114.coerce.date(),
2564
- userId: z114.string().nullable(),
2595
+ var Session = z117.object({
2596
+ id: z117.string(),
2597
+ expiresAt: z117.coerce.date(),
2598
+ userId: z117.string().nullable(),
2565
2599
  data: SessionData
2566
2600
  });
2567
- var AuthTokens = z114.object({
2568
- access: z114.string(),
2569
- refresh: z114.string()
2601
+ var AuthTokens = z117.object({
2602
+ access: z117.string(),
2603
+ refresh: z117.string()
2570
2604
  });
2571
- var UserSession = z114.object({
2605
+ var UserSession = z117.object({
2572
2606
  session: Session,
2573
2607
  user: User.nullable()
2574
2608
  });
2575
- var FlaggedFeature = z115.enum(["FigmaImporterV2"]);
2576
- var FeatureFlagMap = z115.record(FlaggedFeature, z115.boolean());
2577
- var FeatureFlag = z115.object({
2578
- id: z115.string(),
2609
+ var FlaggedFeature = z118.enum(["FigmaImporterV2"]);
2610
+ var FeatureFlagMap = z118.record(FlaggedFeature, z118.boolean());
2611
+ var FeatureFlag = z118.object({
2612
+ id: z118.string(),
2579
2613
  feature: FlaggedFeature,
2580
- createdAt: z115.coerce.date(),
2581
- enabled: z115.boolean()
2614
+ createdAt: z118.coerce.date(),
2615
+ enabled: z118.boolean()
2582
2616
  });
2583
2617
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
2584
2618
  OAuthProviderNames2["Figma"] = "figma";
@@ -2588,96 +2622,96 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
2588
2622
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
2589
2623
  return OAuthProviderNames2;
2590
2624
  })(OAuthProviderNames || {});
2591
- var OAuthProviderSchema = z116.nativeEnum(OAuthProviderNames);
2625
+ var OAuthProviderSchema = z119.nativeEnum(OAuthProviderNames);
2592
2626
  var OAuthProvider = OAuthProviderSchema.enum;
2593
- var ExternalOAuthRequest = z117.object({
2594
- id: z117.string(),
2627
+ var ExternalOAuthRequest = z120.object({
2628
+ id: z120.string(),
2595
2629
  provider: OAuthProviderSchema,
2596
- userId: z117.string(),
2597
- state: z117.string(),
2598
- createdAt: z117.coerce.date()
2630
+ userId: z120.string(),
2631
+ state: z120.string(),
2632
+ createdAt: z120.coerce.date()
2599
2633
  });
2600
- var IntegrationTokenSchema = z118.object({
2601
- id: z118.string(),
2634
+ var IntegrationTokenSchema = z121.object({
2635
+ id: z121.string(),
2602
2636
  provider: OAuthProviderSchema,
2603
- scope: z118.string(),
2604
- userId: z118.string(),
2605
- accessToken: z118.string(),
2606
- refreshToken: z118.string(),
2607
- expiresAt: z118.coerce.date(),
2608
- externalUserId: z118.string().nullish()
2637
+ scope: z121.string(),
2638
+ userId: z121.string(),
2639
+ accessToken: z121.string(),
2640
+ refreshToken: z121.string(),
2641
+ expiresAt: z121.coerce.date(),
2642
+ externalUserId: z121.string().nullish()
2609
2643
  });
2610
2644
  var DesignSystemVersionRoom = Entity.extend({
2611
- designSystemVersionId: z119.string(),
2612
- liveblocksId: z119.string()
2645
+ designSystemVersionId: z122.string(),
2646
+ liveblocksId: z122.string()
2613
2647
  });
2614
- var DesignSystemVersionRoomInitialState = z119.object({
2615
- pages: z119.array(DocumentationPageV2),
2616
- groups: z119.array(ElementGroup)
2648
+ var DesignSystemVersionRoomInitialState = z122.object({
2649
+ pages: z122.array(DocumentationPageV2),
2650
+ groups: z122.array(ElementGroup)
2617
2651
  });
2618
2652
  var DesignSystemVersionRoomUpdate = DesignSystemVersionRoomInitialState.extend({
2619
- deletedPageIds: z119.array(z119.string()),
2620
- deletedGroupIds: z119.array(z119.string())
2653
+ deletedPageIds: z122.array(z122.string()),
2654
+ deletedGroupIds: z122.array(z122.string())
2621
2655
  });
2622
2656
  var DocumentationPageRoom = Entity.extend({
2623
- designSystemVersionId: z120.string(),
2624
- documentationPageId: z120.string(),
2625
- liveblocksId: z120.string()
2657
+ designSystemVersionId: z123.string(),
2658
+ documentationPageId: z123.string(),
2659
+ liveblocksId: z123.string()
2626
2660
  });
2627
- var PageBlockEditorModel = z120.object({
2628
- id: z120.string(),
2661
+ var PageBlockEditorModel = z123.object({
2662
+ id: z123.string(),
2629
2663
  data: PageBlockDataV2
2630
2664
  });
2631
- var DocumentationPageRoomRoomUpdate = z120.object({
2665
+ var DocumentationPageRoomRoomUpdate = z123.object({
2632
2666
  page: DocumentationPageV2,
2633
2667
  pageParent: ElementGroup
2634
2668
  });
2635
2669
  var DocumentationPageRoomInitialState = DocumentationPageRoomRoomUpdate.extend({
2636
- pageBlocks: z120.array(PageBlockEditorModel),
2637
- blockDefinitions: z120.array(PageBlockDefinition)
2670
+ pageBlocks: z123.array(PageBlockEditorModel),
2671
+ blockDefinitions: z123.array(PageBlockDefinition)
2638
2672
  });
2639
2673
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
2640
2674
  RoomTypeEnum2["DocumentationPage"] = "documentation-page";
2641
2675
  RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
2642
2676
  return RoomTypeEnum2;
2643
2677
  })(RoomTypeEnum || {});
2644
- var RoomTypeSchema = z121.nativeEnum(RoomTypeEnum);
2678
+ var RoomTypeSchema = z124.nativeEnum(RoomTypeEnum);
2645
2679
  var RoomType = RoomTypeSchema.enum;
2646
- var AnyRecord = z122.record(z122.any());
2680
+ var AnyRecord = z125.record(z125.any());
2647
2681
  var NpmPackageVersionDist = AnyRecord.and(
2648
- z122.object({
2649
- tarball: z122.string()
2682
+ z125.object({
2683
+ tarball: z125.string()
2650
2684
  })
2651
2685
  );
2652
2686
  var NpmPackageVersion = AnyRecord.and(
2653
- z122.object({
2687
+ z125.object({
2654
2688
  dist: NpmPackageVersionDist
2655
2689
  })
2656
2690
  );
2657
2691
  var NpmPackage = AnyRecord.and(
2658
- z122.object({
2659
- _id: z122.string(),
2660
- name: z122.string(),
2692
+ z125.object({
2693
+ _id: z125.string(),
2694
+ name: z125.string(),
2661
2695
  // e.g. "latest": "1.2.3"
2662
- "dist-tags": z122.record(z122.string(), z122.string()),
2696
+ "dist-tags": z125.record(z125.string(), z125.string()),
2663
2697
  // "1.2.3": {...}
2664
- versions: z122.record(NpmPackageVersion)
2698
+ versions: z125.record(NpmPackageVersion)
2665
2699
  })
2666
2700
  );
2667
- var NpmProxyTokenPayload = z123.object({
2668
- npmProxyRegistryConfigId: z123.string()
2669
- });
2670
- var PersonalAccessToken = z124.object({
2671
- id: z124.string(),
2672
- userId: z124.string(),
2673
- name: z124.string(),
2674
- token: z124.string(),
2675
- createdAt: z124.coerce.date(),
2676
- hidden: z124.boolean(),
2677
- workspaceId: z124.string().optional(),
2701
+ var NpmProxyTokenPayload = z126.object({
2702
+ npmProxyRegistryConfigId: z126.string()
2703
+ });
2704
+ var PersonalAccessToken = z127.object({
2705
+ id: z127.string(),
2706
+ userId: z127.string(),
2707
+ name: z127.string(),
2708
+ token: z127.string(),
2709
+ createdAt: z127.coerce.date(),
2710
+ hidden: z127.boolean(),
2711
+ workspaceId: z127.string().optional(),
2678
2712
  workspaceRole: WorkspaceRoleSchema.optional(),
2679
- expireAt: z124.coerce.date().optional(),
2680
- scope: z124.string().optional()
2713
+ expireAt: z127.coerce.date().optional(),
2714
+ scope: z127.string().optional()
2681
2715
  });
2682
2716
  var SupernovaException = class _SupernovaException extends Error {
2683
2717
  //
@@ -2759,25 +2793,25 @@ function groupBy(items, keyFn) {
2759
2793
  }
2760
2794
  return result;
2761
2795
  }
2762
- var ContentLoadInstruction = z125.object({
2763
- from: z125.string(),
2764
- to: z125.string(),
2765
- authorizationHeaderKvsId: z125.string().optional(),
2766
- timeout: z125.number().optional()
2767
- });
2768
- var ContentLoaderPayload = z125.object({
2769
- type: z125.literal("Single"),
2796
+ var ContentLoadInstruction = z128.object({
2797
+ from: z128.string(),
2798
+ to: z128.string(),
2799
+ authorizationHeaderKvsId: z128.string().optional(),
2800
+ timeout: z128.number().optional()
2801
+ });
2802
+ var ContentLoaderPayload = z128.object({
2803
+ type: z128.literal("Single"),
2770
2804
  instruction: ContentLoadInstruction
2771
2805
  }).or(
2772
- z125.object({
2773
- type: z125.literal("Multiple"),
2774
- loadingChunkSize: z125.number().optional(),
2775
- instructions: z125.array(ContentLoadInstruction)
2806
+ z128.object({
2807
+ type: z128.literal("Multiple"),
2808
+ loadingChunkSize: z128.number().optional(),
2809
+ instructions: z128.array(ContentLoadInstruction)
2776
2810
  })
2777
2811
  ).or(
2778
- z125.object({
2779
- type: z125.literal("S3"),
2780
- location: z125.string()
2812
+ z128.object({
2813
+ type: z128.literal("S3"),
2814
+ location: z128.string()
2781
2815
  })
2782
2816
  );
2783
2817
  function slugify(str, options) {
@@ -3449,7 +3483,7 @@ function documentationPagesToDTOV2(pages, groups) {
3449
3483
  ...documentationPageToStructureDTOV2(page, pathsMap),
3450
3484
  configuration: page.data.configuration ?? {
3451
3485
  showSidebar: true,
3452
- header: defaultDocumentationItemHeader
3486
+ header: defaultDocumentationItemHeaderV2
3453
3487
  }
3454
3488
  };
3455
3489
  });
@@ -3487,7 +3521,7 @@ function elementGroupsToDocumentationGroupDTO(groups, pages) {
3487
3521
  ...elementGroupToDocumentationGroupStructureDTO(group, childrenIdsMap),
3488
3522
  configuration: group.data?.configuration ?? {
3489
3523
  showSidebar: true,
3490
- header: defaultDocumentationItemHeader
3524
+ header: defaultDocumentationItemHeaderV2
3491
3525
  }
3492
3526
  };
3493
3527
  });
@@ -3556,7 +3590,7 @@ function documentationPagesToDTOV1(pages, groups) {
3556
3590
  userSlug: page.userSlug,
3557
3591
  configuration: page.data.configuration ?? {
3558
3592
  showSidebar: true,
3559
- header: defaultDocumentationItemHeader
3593
+ header: defaultDocumentationItemHeaderV1
3560
3594
  },
3561
3595
  createdAt: page.createdAt,
3562
3596
  updatedAt: page.updatedAt,
@@ -3574,11 +3608,11 @@ var DTODesignSystem = DesignSystem.omit({
3574
3608
  });
3575
3609
 
3576
3610
  // src/api/dto/elements/documentation/group-action.ts
3577
- import { z as z127 } from "zod";
3611
+ import { z as z130 } from "zod";
3578
3612
 
3579
3613
  // src/api/dto/elements/documentation/group.ts
3580
- import { z as z126 } from "zod";
3581
- var DTODocumentationGroupStructure = ElementGroup.omit({
3614
+ import { z as z129 } from "zod";
3615
+ var DTODocumentationGroupStructureV2 = ElementGroup.omit({
3582
3616
  sortOrder: true,
3583
3617
  parentPersistentId: true,
3584
3618
  brandPersistentId: true,
@@ -3587,233 +3621,233 @@ var DTODocumentationGroupStructure = ElementGroup.omit({
3587
3621
  data: true,
3588
3622
  shortPersistentId: true
3589
3623
  }).extend({
3590
- title: z126.string(),
3591
- isRoot: z126.boolean(),
3592
- childrenIds: z126.array(z126.string()),
3624
+ title: z129.string(),
3625
+ isRoot: z129.boolean(),
3626
+ childrenIds: z129.array(z129.string()),
3593
3627
  groupBehavior: DocumentationGroupBehavior,
3594
- shortPersistentId: z126.string(),
3595
- type: z126.literal("Group")
3628
+ shortPersistentId: z129.string(),
3629
+ type: z129.literal("Group")
3596
3630
  });
3597
- var DTODocumentationGroup = DTODocumentationGroupStructure.extend({
3598
- configuration: DocumentationItemConfiguration
3631
+ var DTODocumentationGroupV2 = DTODocumentationGroupStructureV2.extend({
3632
+ configuration: DocumentationItemConfigurationV2
3599
3633
  });
3600
- var DTOCreateDocumentationGroupInput = z126.object({
3634
+ var DTOCreateDocumentationGroupInput = z129.object({
3601
3635
  // Identifier
3602
- persistentId: z126.string().uuid(),
3636
+ persistentId: z129.string().uuid(),
3603
3637
  // Group properties
3604
- title: z126.string(),
3605
- configuration: DocumentationItemConfiguration.optional(),
3638
+ title: z129.string(),
3639
+ configuration: DocumentationItemConfigurationV2.optional(),
3606
3640
  groupBehavior: DocumentationGroupBehavior,
3607
3641
  // Group placement properties
3608
- afterPersistentId: z126.string().uuid().optional(),
3609
- parentPersistentId: z126.string().uuid()
3642
+ afterPersistentId: z129.string().uuid().optional(),
3643
+ parentPersistentId: z129.string().uuid()
3610
3644
  });
3611
- var DTOUpdateDocumentationGroupInput = z126.object({
3645
+ var DTOUpdateDocumentationGroupInput = z129.object({
3612
3646
  // Identifier of the group to update
3613
- id: z126.string().uuid(),
3647
+ id: z129.string().uuid(),
3614
3648
  // Group properties
3615
- title: z126.string().optional(),
3616
- configuration: DocumentationItemConfiguration.optional()
3649
+ title: z129.string().optional(),
3650
+ configuration: DocumentationItemConfigurationV2.optional()
3617
3651
  });
3618
- var DTOMoveDocumentationGroupInput = z126.object({
3652
+ var DTOMoveDocumentationGroupInput = z129.object({
3619
3653
  // Identifier of the group to update
3620
- id: z126.string().uuid(),
3654
+ id: z129.string().uuid(),
3621
3655
  // Group placement properties
3622
- afterPersistentId: z126.string().uuid(),
3623
- parentPersistentId: z126.string().uuid()
3656
+ afterPersistentId: z129.string().uuid(),
3657
+ parentPersistentId: z129.string().uuid()
3624
3658
  });
3625
- var DTODuplicateDocumentationGroupInput = z126.object({
3659
+ var DTODuplicateDocumentationGroupInput = z129.object({
3626
3660
  // Identifier of the group to duplicate from
3627
- id: z126.string(),
3661
+ id: z129.string(),
3628
3662
  // New group persistent id
3629
- persistentId: z126.string().uuid(),
3663
+ persistentId: z129.string().uuid(),
3630
3664
  // Group placement properties
3631
- afterPersistentId: z126.string().uuid().optional(),
3632
- parentPersistentId: z126.string().uuid()
3665
+ afterPersistentId: z129.string().uuid().optional(),
3666
+ parentPersistentId: z129.string().uuid()
3633
3667
  });
3634
- var DTOCreateDocumentationTabGroupInput = z126.object({
3668
+ var DTOCreateDocumentationTabGroupInput = z129.object({
3635
3669
  // New group persistent id
3636
- persistentId: z126.string().uuid(),
3670
+ persistentId: z129.string().uuid(),
3637
3671
  // Page that will become first tab of the tab group
3638
- fromPageId: z126.string(),
3639
- tabName: z126.string()
3672
+ fromPageId: z129.string(),
3673
+ tabName: z129.string()
3640
3674
  });
3641
- var DTODeleteDocumentationTabGroupInput = z126.object({
3675
+ var DTODeleteDocumentationTabGroupInput = z129.object({
3642
3676
  // Deleted group id
3643
- id: z126.string()
3677
+ id: z129.string()
3644
3678
  });
3645
- var DTODeleteDocumentationGroupInput = z126.object({
3679
+ var DTODeleteDocumentationGroupInput = z129.object({
3646
3680
  // Identifier
3647
- id: z126.string(),
3681
+ id: z129.string(),
3648
3682
  // Deletion options
3649
- deleteSubtree: z126.boolean().default(false)
3683
+ deleteSubtree: z129.boolean().default(false)
3650
3684
  });
3651
3685
 
3652
3686
  // src/api/dto/elements/documentation/group-action.ts
3653
- var SuccessPayload = z127.object({
3654
- success: z127.literal(true)
3687
+ var SuccessPayload = z130.object({
3688
+ success: z130.literal(true)
3655
3689
  });
3656
- var DTODocumentationGroupCreateActionOutputV2 = z127.object({
3657
- type: z127.literal("DocumentationGroupCreate"),
3690
+ var DTODocumentationGroupCreateActionOutputV2 = z130.object({
3691
+ type: z130.literal("DocumentationGroupCreate"),
3658
3692
  output: SuccessPayload
3659
3693
  });
3660
- var DTODocumentationGroupUpdateActionOutputV2 = z127.object({
3661
- type: z127.literal("DocumentationGroupUpdate"),
3694
+ var DTODocumentationGroupUpdateActionOutputV2 = z130.object({
3695
+ type: z130.literal("DocumentationGroupUpdate"),
3662
3696
  output: SuccessPayload
3663
3697
  });
3664
- var DTODocumentationGroupMoveActionOutputV2 = z127.object({
3665
- type: z127.literal("DocumentationGroupMove"),
3698
+ var DTODocumentationGroupMoveActionOutputV2 = z130.object({
3699
+ type: z130.literal("DocumentationGroupMove"),
3666
3700
  output: SuccessPayload
3667
3701
  });
3668
- var DTODocumentationGroupDuplicateActionOutputV2 = z127.object({
3669
- type: z127.literal("DocumentationGroupDuplicate"),
3702
+ var DTODocumentationGroupDuplicateActionOutputV2 = z130.object({
3703
+ type: z130.literal("DocumentationGroupDuplicate"),
3670
3704
  output: SuccessPayload
3671
3705
  });
3672
- var DTODocumentationGroupDeleteActionOutputV2 = z127.object({
3673
- type: z127.literal("DocumentationGroupDelete"),
3706
+ var DTODocumentationGroupDeleteActionOutputV2 = z130.object({
3707
+ type: z130.literal("DocumentationGroupDelete"),
3674
3708
  output: SuccessPayload
3675
3709
  });
3676
- var DTODocumentationGroupCreateActionInputV2 = z127.object({
3677
- type: z127.literal("DocumentationGroupCreate"),
3710
+ var DTODocumentationGroupCreateActionInputV2 = z130.object({
3711
+ type: z130.literal("DocumentationGroupCreate"),
3678
3712
  input: DTOCreateDocumentationGroupInput
3679
3713
  });
3680
- var DTODocumentationGroupUpdateActionInputV2 = z127.object({
3681
- type: z127.literal("DocumentationGroupUpdate"),
3714
+ var DTODocumentationGroupUpdateActionInputV2 = z130.object({
3715
+ type: z130.literal("DocumentationGroupUpdate"),
3682
3716
  input: DTOUpdateDocumentationGroupInput
3683
3717
  });
3684
- var DTODocumentationGroupMoveActionInputV2 = z127.object({
3685
- type: z127.literal("DocumentationGroupMove"),
3718
+ var DTODocumentationGroupMoveActionInputV2 = z130.object({
3719
+ type: z130.literal("DocumentationGroupMove"),
3686
3720
  input: DTOMoveDocumentationGroupInput
3687
3721
  });
3688
- var DTODocumentationGroupDuplicateActionInputV2 = z127.object({
3689
- type: z127.literal("DocumentationGroupDuplicate"),
3722
+ var DTODocumentationGroupDuplicateActionInputV2 = z130.object({
3723
+ type: z130.literal("DocumentationGroupDuplicate"),
3690
3724
  input: DTODuplicateDocumentationGroupInput
3691
3725
  });
3692
- var DTODocumentationGroupDeleteActionInputV2 = z127.object({
3693
- type: z127.literal("DocumentationGroupDelete"),
3726
+ var DTODocumentationGroupDeleteActionInputV2 = z130.object({
3727
+ type: z130.literal("DocumentationGroupDelete"),
3694
3728
  input: DTODeleteDocumentationGroupInput
3695
3729
  });
3696
3730
 
3697
3731
  // src/api/dto/elements/documentation/page-actions-v2.ts
3698
- import { z as z129 } from "zod";
3732
+ import { z as z132 } from "zod";
3699
3733
 
3700
3734
  // src/api/dto/elements/documentation/page-v2.ts
3701
- import { z as z128 } from "zod";
3735
+ import { z as z131 } from "zod";
3702
3736
  var DTODocumentationPageStructureV2 = DocumentationPageV2.omit({
3703
3737
  data: true,
3704
3738
  meta: true,
3705
3739
  parentPersistentId: true,
3706
3740
  sortOrder: true
3707
3741
  }).extend({
3708
- title: z128.string(),
3709
- path: z128.string(),
3710
- type: z128.literal("Page")
3742
+ title: z131.string(),
3743
+ path: z131.string(),
3744
+ type: z131.literal("Page")
3711
3745
  });
3712
3746
  var DTODocumentationPageV2 = DTODocumentationPageStructureV2.extend({
3713
- configuration: DocumentationItemConfiguration
3747
+ configuration: DocumentationItemConfigurationV2
3714
3748
  });
3715
- var DTODocumentationHierarchyV2 = z128.object({
3716
- pages: z128.array(DTODocumentationPageStructureV2),
3717
- groups: z128.array(DTODocumentationGroupStructure)
3749
+ var DTODocumentationHierarchyV2 = z131.object({
3750
+ pages: z131.array(DTODocumentationPageStructureV2),
3751
+ groups: z131.array(DTODocumentationGroupStructureV2)
3718
3752
  });
3719
- var DTOCreateDocumentationPageInputV2 = z128.object({
3753
+ var DTOCreateDocumentationPageInputV2 = z131.object({
3720
3754
  // Identifier
3721
- persistentId: z128.string().uuid(),
3755
+ persistentId: z131.string().uuid(),
3722
3756
  // Page properties
3723
- title: z128.string(),
3724
- configuration: DocumentationItemConfiguration.optional(),
3757
+ title: z131.string(),
3758
+ configuration: DocumentationItemConfigurationV2.optional(),
3725
3759
  // Page placement properties
3726
- parentPersistentId: z128.string().uuid(),
3727
- afterPersistentId: z128.string().uuid().optional()
3760
+ parentPersistentId: z131.string().uuid(),
3761
+ afterPersistentId: z131.string().uuid().optional()
3728
3762
  });
3729
- var DTOUpdateDocumentationPageInputV2 = z128.object({
3763
+ var DTOUpdateDocumentationPageInputV2 = z131.object({
3730
3764
  // Identifier of the group to update
3731
- id: z128.string(),
3765
+ id: z131.string(),
3732
3766
  // Page properties
3733
- title: z128.string().optional(),
3734
- configuration: DocumentationItemConfiguration.optional()
3767
+ title: z131.string().optional(),
3768
+ configuration: DocumentationItemConfigurationV2.optional()
3735
3769
  });
3736
- var DTOMoveDocumentationPageInputV2 = z128.object({
3770
+ var DTOMoveDocumentationPageInputV2 = z131.object({
3737
3771
  // Identifier of the group to update
3738
- id: z128.string(),
3772
+ id: z131.string(),
3739
3773
  // Page placement properties
3740
- parentPersistentId: z128.string().uuid(),
3741
- afterPersistentId: z128.string().uuid()
3774
+ parentPersistentId: z131.string().uuid(),
3775
+ afterPersistentId: z131.string().uuid()
3742
3776
  });
3743
- var DTODuplicateDocumentationPageInputV2 = z128.object({
3777
+ var DTODuplicateDocumentationPageInputV2 = z131.object({
3744
3778
  // Identifier of the page to duplicate from
3745
- id: z128.string(),
3779
+ id: z131.string(),
3746
3780
  // New page persistent id
3747
- persistentId: z128.string().uuid(),
3781
+ persistentId: z131.string().uuid(),
3748
3782
  // Page placement properties
3749
- parentPersistentId: z128.string().uuid(),
3750
- afterPersistentId: z128.string().uuid().optional()
3783
+ parentPersistentId: z131.string().uuid(),
3784
+ afterPersistentId: z131.string().uuid().optional()
3751
3785
  });
3752
- var DTODeleteDocumentationPageInputV2 = z128.object({
3786
+ var DTODeleteDocumentationPageInputV2 = z131.object({
3753
3787
  // Identifier
3754
- id: z128.string()
3788
+ id: z131.string()
3755
3789
  });
3756
3790
 
3757
3791
  // src/api/dto/elements/documentation/page-actions-v2.ts
3758
- var SuccessPayload2 = z129.object({
3759
- success: z129.literal(true)
3792
+ var SuccessPayload2 = z132.object({
3793
+ success: z132.literal(true)
3760
3794
  });
3761
- var DTODocumentationPageCreateActionOutputV2 = z129.object({
3762
- type: z129.literal("DocumentationPageCreate"),
3795
+ var DTODocumentationPageCreateActionOutputV2 = z132.object({
3796
+ type: z132.literal("DocumentationPageCreate"),
3763
3797
  output: SuccessPayload2
3764
3798
  });
3765
- var DTODocumentationPageUpdateActionOutputV2 = z129.object({
3766
- type: z129.literal("DocumentationPageUpdate"),
3799
+ var DTODocumentationPageUpdateActionOutputV2 = z132.object({
3800
+ type: z132.literal("DocumentationPageUpdate"),
3767
3801
  output: SuccessPayload2
3768
3802
  });
3769
- var DTODocumentationPageMoveActionOutputV2 = z129.object({
3770
- type: z129.literal("DocumentationPageMove"),
3803
+ var DTODocumentationPageMoveActionOutputV2 = z132.object({
3804
+ type: z132.literal("DocumentationPageMove"),
3771
3805
  output: SuccessPayload2
3772
3806
  });
3773
- var DTODocumentationPageDuplicateActionOutputV2 = z129.object({
3774
- type: z129.literal("DocumentationPageDuplicate"),
3807
+ var DTODocumentationPageDuplicateActionOutputV2 = z132.object({
3808
+ type: z132.literal("DocumentationPageDuplicate"),
3775
3809
  output: SuccessPayload2
3776
3810
  });
3777
- var DTODocumentationPageDeleteActionOutputV2 = z129.object({
3778
- type: z129.literal("DocumentationPageDelete"),
3811
+ var DTODocumentationPageDeleteActionOutputV2 = z132.object({
3812
+ type: z132.literal("DocumentationPageDelete"),
3779
3813
  output: SuccessPayload2
3780
3814
  });
3781
- var DTODocumentationPageCreateActionInputV2 = z129.object({
3782
- type: z129.literal("DocumentationPageCreate"),
3815
+ var DTODocumentationPageCreateActionInputV2 = z132.object({
3816
+ type: z132.literal("DocumentationPageCreate"),
3783
3817
  input: DTOCreateDocumentationPageInputV2
3784
3818
  });
3785
- var DTODocumentationPageUpdateActionInputV2 = z129.object({
3786
- type: z129.literal("DocumentationPageUpdate"),
3819
+ var DTODocumentationPageUpdateActionInputV2 = z132.object({
3820
+ type: z132.literal("DocumentationPageUpdate"),
3787
3821
  input: DTOUpdateDocumentationPageInputV2
3788
3822
  });
3789
- var DTODocumentationPageMoveActionInputV2 = z129.object({
3790
- type: z129.literal("DocumentationPageMove"),
3823
+ var DTODocumentationPageMoveActionInputV2 = z132.object({
3824
+ type: z132.literal("DocumentationPageMove"),
3791
3825
  input: DTOMoveDocumentationPageInputV2
3792
3826
  });
3793
- var DTODocumentationPageDuplicateActionInputV2 = z129.object({
3794
- type: z129.literal("DocumentationPageDuplicate"),
3827
+ var DTODocumentationPageDuplicateActionInputV2 = z132.object({
3828
+ type: z132.literal("DocumentationPageDuplicate"),
3795
3829
  input: DTODuplicateDocumentationPageInputV2
3796
3830
  });
3797
- var DTODocumentationPageDeleteActionInputV2 = z129.object({
3798
- type: z129.literal("DocumentationPageDelete"),
3831
+ var DTODocumentationPageDeleteActionInputV2 = z132.object({
3832
+ type: z132.literal("DocumentationPageDelete"),
3799
3833
  input: DTODeleteDocumentationPageInputV2
3800
3834
  });
3801
3835
 
3802
3836
  // src/api/dto/elements/documentation/page-v1.ts
3803
- import { z as z130 } from "zod";
3837
+ import { z as z133 } from "zod";
3804
3838
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
3805
3839
  data: true,
3806
3840
  meta: true,
3807
3841
  parentPersistentId: true,
3808
3842
  sortOrder: true
3809
3843
  }).extend(DocumentationPageV1.shape.data.shape).extend({
3810
- title: z130.string(),
3811
- path: z130.string()
3844
+ title: z133.string(),
3845
+ path: z133.string()
3812
3846
  });
3813
3847
 
3814
3848
  // src/api/dto/elements/elements-action-v2.ts
3815
- import { z as z131 } from "zod";
3816
- var DTOElementActionOutput = z131.discriminatedUnion("type", [
3849
+ import { z as z134 } from "zod";
3850
+ var DTOElementActionOutput = z134.discriminatedUnion("type", [
3817
3851
  // Documentation pages
3818
3852
  DTODocumentationPageCreateActionOutputV2,
3819
3853
  DTODocumentationPageUpdateActionOutputV2,
@@ -3827,7 +3861,7 @@ var DTOElementActionOutput = z131.discriminatedUnion("type", [
3827
3861
  DTODocumentationGroupDuplicateActionOutputV2,
3828
3862
  DTODocumentationGroupDeleteActionOutputV2
3829
3863
  ]);
3830
- var DTOElementActionInput = z131.discriminatedUnion("type", [
3864
+ var DTOElementActionInput = z134.discriminatedUnion("type", [
3831
3865
  // Documentation pages
3832
3866
  DTODocumentationPageCreateActionInputV2,
3833
3867
  DTODocumentationPageUpdateActionInputV2,
@@ -3843,15 +3877,15 @@ var DTOElementActionInput = z131.discriminatedUnion("type", [
3843
3877
  ]);
3844
3878
 
3845
3879
  // src/api/payloads/documentation/block-definitions.ts
3846
- import { z as z132 } from "zod";
3847
- var DTOGetBlockDefinitionsOutput = z132.object({
3848
- definitions: z132.array(PageBlockDefinition)
3880
+ import { z as z135 } from "zod";
3881
+ var DTOGetBlockDefinitionsOutput = z135.object({
3882
+ definitions: z135.array(PageBlockDefinition)
3849
3883
  });
3850
3884
 
3851
3885
  // src/api/payloads/liveblocks/auth.ts
3852
- import { z as z133 } from "zod";
3853
- var DTOLiveblocksAuthRequest = z133.object({
3854
- room: z133.string()
3886
+ import { z as z136 } from "zod";
3887
+ var DTOLiveblocksAuthRequest = z136.object({
3888
+ room: z136.string()
3855
3889
  });
3856
3890
 
3857
3891
  // src/yjs/design-system-content/documentation-hierarchy.ts
@@ -3904,14 +3938,14 @@ function getGroupsYMap(doc) {
3904
3938
  }
3905
3939
 
3906
3940
  // src/yjs/design-system-content/item-configuration.ts
3907
- import { z as z134 } from "zod";
3908
- var DTODocumentationPageRoomHeaderData = z134.object({
3909
- title: z134.string(),
3910
- configuration: DocumentationItemConfiguration
3941
+ import { z as z137 } from "zod";
3942
+ var DTODocumentationPageRoomHeaderData = z137.object({
3943
+ title: z137.string(),
3944
+ configuration: DocumentationItemConfigurationV2
3911
3945
  });
3912
- var DTODocumentationPageRoomHeaderDataUpdate = z134.object({
3913
- title: z134.string().optional(),
3914
- configuration: DocumentationItemConfiguration.omit({ header: true }).extend({ header: DocumentationItemHeader.partial() }).optional()
3946
+ var DTODocumentationPageRoomHeaderDataUpdate = z137.object({
3947
+ title: z137.string().optional(),
3948
+ configuration: DocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
3915
3949
  });
3916
3950
  function itemConfigurationToYjs(yDoc, item) {
3917
3951
  yDoc.transact((trx) => {
@@ -3959,8 +3993,8 @@ function yjsToItemConfiguration(yDoc) {
3959
3993
  header: rawHeader
3960
3994
  };
3961
3995
  return {
3962
- title: z134.string().parse(title),
3963
- configuration: DocumentationItemConfiguration.parse(rawConfig)
3996
+ title: z137.string().parse(title),
3997
+ configuration: DocumentationItemConfigurationV2.parse(rawConfig)
3964
3998
  };
3965
3999
  }
3966
4000
 
@@ -3968,9 +4002,9 @@ function yjsToItemConfiguration(yDoc) {
3968
4002
  var PageBlockEditorModel2 = PageBlockEditorModel;
3969
4003
 
3970
4004
  // src/yjs/docs-editor/model/page.ts
3971
- import { z as z135 } from "zod";
3972
- var DocumentationPageEditorModel = z135.object({
3973
- blocks: z135.array(PageBlockEditorModel2)
4005
+ import { z as z138 } from "zod";
4006
+ var DocumentationPageEditorModel = z138.object({
4007
+ blocks: z138.array(PageBlockEditorModel2)
3974
4008
  });
3975
4009
 
3976
4010
  // src/yjs/docs-editor/prosemirror/schema.ts
@@ -7603,7 +7637,7 @@ var blocks = [
7603
7637
 
7604
7638
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
7605
7639
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
7606
- import { z as z136 } from "zod";
7640
+ import { z as z139 } from "zod";
7607
7641
  function yDocToPage(yDoc, definitions) {
7608
7642
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
7609
7643
  }
@@ -7615,7 +7649,7 @@ function prosemirrorDocToPage(prosemirrorDoc, definitions) {
7615
7649
  const definitionsById = mapByUnique2(definitions, (d) => d.id);
7616
7650
  return {
7617
7651
  blocks: (prosemirrorDoc.content ?? []).map((prosemirrorNode) => {
7618
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z136.string());
7652
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z139.string());
7619
7653
  if (!definitionId) {
7620
7654
  console.warn(
7621
7655
  `definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`
@@ -7657,7 +7691,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
7657
7691
  if (!id)
7658
7692
  return null;
7659
7693
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
7660
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z136.string().optional()));
7694
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z139.string().optional()));
7661
7695
  return {
7662
7696
  // TODO Artem: indent
7663
7697
  id,
@@ -7757,8 +7791,8 @@ function parseRichTextAttribute(mark) {
7757
7791
  case "code":
7758
7792
  return { type: "Code" };
7759
7793
  case "link":
7760
- const itemId = getProsemirrorAttribute(mark, "itemId", z136.string().optional());
7761
- const href = getProsemirrorAttribute(mark, "href", z136.string().optional());
7794
+ const itemId = getProsemirrorAttribute(mark, "itemId", z139.string().optional());
7795
+ const href = getProsemirrorAttribute(mark, "href", z139.string().optional());
7762
7796
  return {
7763
7797
  type: "Link",
7764
7798
  openInNewWindow: mark.attrs?.target !== "_self",
@@ -7773,7 +7807,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
7773
7807
  if (!id)
7774
7808
  return null;
7775
7809
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
7776
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z136.boolean().optional()) !== false;
7810
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z139.boolean().optional()) !== false;
7777
7811
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
7778
7812
  if (!tableChild) {
7779
7813
  return emptyTable(id, variantId, 0);
@@ -7819,9 +7853,9 @@ function parseAsTableCell(prosemirrorNode) {
7819
7853
  const id = getProsemirrorBlockId(prosemirrorNode);
7820
7854
  if (!id)
7821
7855
  return null;
7822
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z136.string().optional());
7856
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z139.string().optional());
7823
7857
  let columnWidth;
7824
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z136.array(z136.number()).optional());
7858
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z139.array(z139.number()).optional());
7825
7859
  if (columnWidthArray) {
7826
7860
  columnWidth = columnWidthArray[0];
7827
7861
  }
@@ -7855,7 +7889,7 @@ function parseAsTableNode(prosemirrorNode) {
7855
7889
  value: parseRichText(prosemirrorNode.content ?? [])
7856
7890
  };
7857
7891
  case "image":
7858
- const url = getProsemirrorAttribute(prosemirrorNode, "src", z136.string().optional());
7892
+ const url = getProsemirrorAttribute(prosemirrorNode, "src", z139.string().optional());
7859
7893
  if (!url)
7860
7894
  return null;
7861
7895
  return {
@@ -7949,7 +7983,7 @@ function parseAsCustomBlock(prosemirrorNode, definition) {
7949
7983
  };
7950
7984
  }
7951
7985
  function parseBlockItems(prosemirrorNode, definition) {
7952
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z136.string());
7986
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z139.string());
7953
7987
  if (!itemsString)
7954
7988
  return null;
7955
7989
  const itemsJson = JSON.parse(itemsString);
@@ -7961,11 +7995,11 @@ function parseBlockItems(prosemirrorNode, definition) {
7961
7995
  }
7962
7996
  function parseAppearance(prosemirrorNode) {
7963
7997
  const appearance = {};
7964
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z136.number().optional());
7998
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z139.number().optional());
7965
7999
  if (columns) {
7966
8000
  appearance.numberOfColumns = columns;
7967
8001
  }
7968
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z136.string().optional());
8002
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z139.string().optional());
7969
8003
  if (backgroundColor) {
7970
8004
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
7971
8005
  if (parsedColor.success) {
@@ -8056,13 +8090,13 @@ function valueSchemaForPropertyType(type) {
8056
8090
  }
8057
8091
  }
8058
8092
  function getProsemirrorBlockId(prosemirrorNode) {
8059
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z136.string());
8093
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z139.string());
8060
8094
  if (!id)
8061
8095
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
8062
8096
  return id;
8063
8097
  }
8064
8098
  function getProsemirrorBlockVariantId(prosemirrorNode) {
8065
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z136.string()));
8099
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z139.string()));
8066
8100
  }
8067
8101
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
8068
8102
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -8094,7 +8128,6 @@ export {
8094
8128
  DTODeleteDocumentationPageInputV2,
8095
8129
  DTODeleteDocumentationTabGroupInput,
8096
8130
  DTODesignSystem,
8097
- DTODocumentationGroup,
8098
8131
  DTODocumentationGroupCreateActionInputV2,
8099
8132
  DTODocumentationGroupCreateActionOutputV2,
8100
8133
  DTODocumentationGroupDeleteActionInputV2,
@@ -8103,9 +8136,10 @@ export {
8103
8136
  DTODocumentationGroupDuplicateActionOutputV2,
8104
8137
  DTODocumentationGroupMoveActionInputV2,
8105
8138
  DTODocumentationGroupMoveActionOutputV2,
8106
- DTODocumentationGroupStructure,
8139
+ DTODocumentationGroupStructureV2,
8107
8140
  DTODocumentationGroupUpdateActionInputV2,
8108
8141
  DTODocumentationGroupUpdateActionOutputV2,
8142
+ DTODocumentationGroupV2,
8109
8143
  DTODocumentationHierarchyV2,
8110
8144
  DTODocumentationPageCreateActionInputV2,
8111
8145
  DTODocumentationPageCreateActionOutputV2,