@supernova-studio/model 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,9 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => {
4
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
- return value;
6
- };
3
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
7
4
 
8
5
  // src/asset-delete-schedule/asset-delete-schedule.ts
9
6
  import { z } from "zod";
@@ -290,7 +287,7 @@ var CustomDomain = z14.object({
290
287
  });
291
288
 
292
289
  // src/data-dumps/code-integration-dump.ts
293
- import { z as z155 } from "zod";
290
+ import { z as z159 } from "zod";
294
291
 
295
292
  // src/export/exporter.ts
296
293
  import { z as z18 } from "zod";
@@ -465,10 +462,10 @@ var Exporter = z18.object({
465
462
  });
466
463
 
467
464
  // src/export/pipeline.ts
468
- import { z as z154 } from "zod";
465
+ import { z as z158 } from "zod";
469
466
 
470
467
  // src/export/export-destinations.ts
471
- import { z as z153 } from "zod";
468
+ import { z as z157 } from "zod";
472
469
 
473
470
  // src/dsm/assets/asset-dynamo-record.ts
474
471
  import { z as z19 } from "zod";
@@ -512,7 +509,6 @@ var AssetProperties = z22.union([
512
509
  var AssetOrigin = z22.object({
513
510
  originKey: z22.string()
514
511
  });
515
- var AssetProcessStatus = z22.enum(["Pending", "Uploaded", "Processed"]);
516
512
  var Asset = z22.object({
517
513
  id: z22.string(),
518
514
  designSystemId: z22.string().nullish(),
@@ -521,10 +517,8 @@ var Asset = z22.object({
521
517
  filePath: z22.string(),
522
518
  scope: AssetScope,
523
519
  properties: AssetProperties.nullish(),
524
- state: AssetProcessStatus.optional(),
525
- origin: AssetOrigin.optional(),
526
520
  originKey: z22.string().optional(),
527
- createdByImportJobId: z22.string().optional()
521
+ createdAt: z22.coerce.date().optional()
528
522
  });
529
523
  var ResolvedAsset = Asset.extend({
530
524
  url: z22.string()
@@ -851,10 +845,8 @@ var SupernovaException = class _SupernovaException extends Error {
851
845
 
852
846
  // src/utils/common.ts
853
847
  function forceUnwrapNullish(value) {
854
- if (value === null)
855
- throw new Error("Illegal null");
856
- if (value === void 0)
857
- throw new Error("Illegal undefined");
848
+ if (value === null) throw new Error("Illegal null");
849
+ if (value === void 0) throw new Error("Illegal undefined");
858
850
  return value;
859
851
  }
860
852
  function trimLeadingSlash(string) {
@@ -924,14 +916,10 @@ function uniqueBy(items, prop) {
924
916
  return Array.from(mapByUnique(items, prop).values());
925
917
  }
926
918
  function areShallowObjectsEqual(lhs, rhs) {
927
- if (lhs === void 0 !== (rhs === void 0))
928
- return false;
929
- if (lhs === void 0 || rhs === void 0)
930
- return true;
931
- if (lhs === null !== (rhs === null))
932
- return false;
933
- if (lhs === null || rhs === null)
934
- return true;
919
+ if (lhs === void 0 !== (rhs === void 0)) return false;
920
+ if (lhs === void 0 || rhs === void 0) return true;
921
+ if (lhs === null !== (rhs === null)) return false;
922
+ if (lhs === null || rhs === null) return true;
935
923
  for (const key in lhs) {
936
924
  if (!(key in rhs) || lhs[key] !== rhs[key]) {
937
925
  return false;
@@ -959,8 +947,7 @@ function chunkedArray(array, chunkSize) {
959
947
  }
960
948
  function recordToMap(record) {
961
949
  const map = /* @__PURE__ */ new Map();
962
- for (const [k, v] of Object.entries(record))
963
- map.set(k, v);
950
+ for (const [k, v] of Object.entries(record)) map.set(k, v);
964
951
  return map;
965
952
  }
966
953
  function applyShallowObjectUpdate(object, update) {
@@ -1021,8 +1008,7 @@ function getCodenameFromText(name) {
1021
1008
  }
1022
1009
  function toCamelCase(str) {
1023
1010
  return str.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g, function(match, index) {
1024
- if (+match === 0)
1025
- return "";
1011
+ if (+match === 0) return "";
1026
1012
  return index === 0 ? match.toLowerCase() : match.toUpperCase();
1027
1013
  });
1028
1014
  }
@@ -1778,10 +1764,8 @@ var Size = z41.object({
1778
1764
  height: z41.number().nullish().transform((v) => v ?? nullSize.height)
1779
1765
  });
1780
1766
  var SizeOrUndefined = Size.optional().transform((v) => {
1781
- if (!v)
1782
- return void 0;
1783
- if (isNullSize(v))
1784
- return void 0;
1767
+ if (!v) return void 0;
1768
+ if (isNullSize(v)) return void 0;
1785
1769
  return v;
1786
1770
  });
1787
1771
 
@@ -1855,14 +1839,10 @@ var stringTokenTypes = /* @__PURE__ */ new Set([
1855
1839
  ]);
1856
1840
  var fallbackNumberValue = 14;
1857
1841
  function areTokenTypesCompatible(lhs, rhs, isNonCompatibleTypeChangesEnabled = false) {
1858
- if (lhs === rhs)
1859
- return true;
1860
- if (numberTokenTypes.has(lhs) && numberTokenTypes.has(rhs))
1861
- return true;
1862
- if (stringTokenTypes.has(lhs) && stringTokenTypes.has(rhs))
1863
- return true;
1864
- if (isNonCompatibleTypeChangesEnabled && stringTokenTypes.has(lhs) && numberTokenTypes.has(rhs))
1865
- return true;
1842
+ if (lhs === rhs) return true;
1843
+ if (numberTokenTypes.has(lhs) && numberTokenTypes.has(rhs)) return true;
1844
+ if (stringTokenTypes.has(lhs) && stringTokenTypes.has(rhs)) return true;
1845
+ if (isNonCompatibleTypeChangesEnabled && stringTokenTypes.has(lhs) && numberTokenTypes.has(rhs)) return true;
1866
1846
  return false;
1867
1847
  }
1868
1848
  function castStringToDimensionValue(lhs, rhs, value) {
@@ -2111,6 +2091,27 @@ var PageBlockSelectedFigmaComponent = z43.object({
2111
2091
  selectedComponentProperties: z43.string().array(),
2112
2092
  selectedComponentVariants: z43.record(z43.string().array()).optional()
2113
2093
  });
2094
+ var PageBlockStorybookItem = z43.object({
2095
+ entityId: z43.string().optional(),
2096
+ embed: z43.object({
2097
+ inputUrl: z43.string(),
2098
+ embedUrl: z43.string()
2099
+ }).optional(),
2100
+ entityMeta: z43.object({
2101
+ caption: z43.string().optional(),
2102
+ height: z43.number().optional(),
2103
+ hiddenProps: z43.array(z43.string()).optional(),
2104
+ propValues: z43.record(z43.unknown()).optional()
2105
+ }).optional()
2106
+ });
2107
+ var PageBlockStorybookBlockConfig = z43.object({
2108
+ value: PageBlockStorybookItem.array(),
2109
+ showCode: z43.boolean().optional(),
2110
+ showFooter: z43.boolean().optional(),
2111
+ showProperties: z43.boolean().optional(),
2112
+ showDescription: z43.boolean().optional(),
2113
+ showDefaults: z43.boolean().optional()
2114
+ });
2114
2115
  var PageBlockTextSpanAttributeType = z43.enum(["Bold", "Italic", "Link", "Strikethrough", "Code", "Comment"]);
2115
2116
  var PageBlockTextSpanAttribute = z43.object({
2116
2117
  type: PageBlockTextSpanAttributeType,
@@ -2201,7 +2202,9 @@ var PageBlockBaseV1 = z43.object({
2201
2202
  selectedFigmaComponent: nullishToOptional(PageBlockSelectedFigmaComponent),
2202
2203
  selectedFigmaComponents: nullishToOptional(PageBlockSelectedFigmaComponent.array()),
2203
2204
  // Arbitrary
2204
- userMetadata: nullishToOptional(z43.string())
2205
+ userMetadata: nullishToOptional(z43.string()),
2206
+ // Storybook
2207
+ storybookBlockConfig: nullishToOptional(PageBlockStorybookBlockConfig)
2205
2208
  });
2206
2209
  var PageBlockV1 = PageBlockBaseV1.extend({
2207
2210
  children: z43.lazy(
@@ -2229,8 +2232,7 @@ function removeCommentSpans(text) {
2229
2232
  return joinRepeatingSpans(updatedRichText);
2230
2233
  }
2231
2234
  function joinRepeatingSpans(text) {
2232
- if (text.spans.length < 2)
2233
- return text;
2235
+ if (text.spans.length < 2) return text;
2234
2236
  text = sanitizeSpans(text);
2235
2237
  const { spans, ...rest } = text;
2236
2238
  let previousSpan = { ...spans[0] };
@@ -2250,13 +2252,11 @@ function joinRepeatingSpans(text) {
2250
2252
  };
2251
2253
  }
2252
2254
  function areAttributesEqual(lhs, rhs) {
2253
- if (lhs.length !== rhs.length)
2254
- return false;
2255
+ if (lhs.length !== rhs.length) return false;
2255
2256
  const lhsMap = mapByUnique(lhs, (i) => i.type);
2256
2257
  for (const rhsAttribute of rhs) {
2257
2258
  const lhsAttribute = lhsMap.get(rhsAttribute.type);
2258
- if (!areShallowObjectsEqual(lhsAttribute, rhsAttribute))
2259
- return false;
2259
+ if (!areShallowObjectsEqual(lhsAttribute, rhsAttribute)) return false;
2260
2260
  }
2261
2261
  return true;
2262
2262
  }
@@ -2695,11 +2695,35 @@ var PageBlockItemRichTextValue = z47.object({
2695
2695
  var PageBlockItemSingleSelectValue = z47.object({
2696
2696
  value: z47.string()
2697
2697
  });
2698
- var PageBlockItemStorybookValue = z47.object({
2698
+ var PageBlockItemStorybookValueOld = z47.object({
2699
+ value: z47.string().optional(),
2699
2700
  caption: z47.string().optional(),
2700
2701
  height: z47.number().optional(),
2701
2702
  embedUrl: z47.string().optional(),
2702
- value: z47.string().optional()
2703
+ storyId: z47.string().optional(),
2704
+ sourceId: z47.string().optional()
2705
+ });
2706
+ var PageBlockItemStorybookValue = z47.object({
2707
+ value: z47.array(
2708
+ z47.object({
2709
+ entityId: z47.string().optional(),
2710
+ embed: z47.object({
2711
+ inputUrl: z47.string(),
2712
+ embedUrl: z47.string()
2713
+ }).optional(),
2714
+ entityMeta: z47.object({
2715
+ caption: z47.string().optional(),
2716
+ height: z47.number().optional(),
2717
+ hiddenProps: z47.array(z47.string()).optional(),
2718
+ propValues: z47.record(z47.unknown()).optional()
2719
+ }).optional()
2720
+ })
2721
+ ).optional(),
2722
+ showCode: z47.boolean().optional(),
2723
+ showFooter: z47.boolean().optional(),
2724
+ showProperties: z47.boolean().optional(),
2725
+ showDescription: z47.boolean().optional(),
2726
+ showDefaults: z47.boolean().optional()
2703
2727
  });
2704
2728
  var PageBlockItemTextValue = z47.object({
2705
2729
  value: z47.string()
@@ -2787,6 +2811,26 @@ var PageBlockItemTableValue = z47.object({
2787
2811
  showBorder: z47.boolean().optional(),
2788
2812
  value: z47.array(PageBlockItemTableRow).default([])
2789
2813
  });
2814
+ function storybookValueFromOldValue(oldValue) {
2815
+ return {
2816
+ value: [
2817
+ {
2818
+ // URLs
2819
+ ...oldValue.embedUrl && oldValue.value && {
2820
+ embed: {
2821
+ embedUrl: oldValue.embedUrl,
2822
+ inputUrl: oldValue.value
2823
+ }
2824
+ },
2825
+ // Meta
2826
+ entityMeta: {
2827
+ caption: oldValue.caption,
2828
+ height: oldValue.height
2829
+ }
2830
+ }
2831
+ ]
2832
+ };
2833
+ }
2790
2834
 
2791
2835
  // src/dsm/elements/data/documentation-page-v1.ts
2792
2836
  import { z as z51 } from "zod";
@@ -3011,8 +3055,7 @@ function figmaFileStructureToMap(root) {
3011
3055
  }
3012
3056
  function recursiveFigmaFileStructureToMap(node, map) {
3013
3057
  map.set(node.id, node);
3014
- for (const child of node.children)
3015
- recursiveFigmaFileStructureToMap(child, map);
3058
+ for (const child of node.children) recursiveFigmaFileStructureToMap(child, map);
3016
3059
  }
3017
3060
 
3018
3061
  // src/dsm/elements/data/figma-node-reference.ts
@@ -3551,8 +3594,7 @@ function mapPageBlockItemValuesV2(pageItems, definitionsMap, fn) {
3551
3594
  traversePageBlockItemsV2(pageItems, (block, item) => {
3552
3595
  Object.entries(item.props).forEach(([propKey, value]) => {
3553
3596
  const property = definitionsMap.getDefinitionProperty(block.data.packageId, propKey);
3554
- if (!property)
3555
- return;
3597
+ if (!property) return;
3556
3598
  item.props[propKey] = fn(block, item, property, value);
3557
3599
  });
3558
3600
  });
@@ -3561,8 +3603,7 @@ function traversePageBlockItemValuesV2(pageItems, definitionsMap, fn) {
3561
3603
  traversePageBlockItemsV2(pageItems, (block, item) => {
3562
3604
  Object.entries(item.props).forEach(([propKey, value]) => {
3563
3605
  const property = definitionsMap.getDefinitionProperty(block.data.packageId, propKey);
3564
- if (!property)
3565
- return;
3606
+ if (!property) return;
3566
3607
  fn(block, item, property, value);
3567
3608
  });
3568
3609
  });
@@ -3659,7 +3700,7 @@ function zeroNumberByDefault() {
3659
3700
  }
3660
3701
 
3661
3702
  // src/dsm/data-sources/data-source.ts
3662
- var DataSourceRemoteType = z91.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
3703
+ var DataSourceRemoteType = z91.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin", "Storybook"]);
3663
3704
  var DataSourceUploadRemoteSource = z91.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
3664
3705
  var DataSourceFigmaState = z91.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
3665
3706
  var DataSourceAutoImportMode = z91.enum(["Never", "Hourly"]);
@@ -3719,10 +3760,22 @@ var DataSourceUploadRemote = z91.object({
3719
3760
  isTokenTypeSplitEnabled: z91.boolean(),
3720
3761
  isCollectionsMigrationCompleted: z91.boolean()
3721
3762
  });
3763
+ var DataSourceStorybookRemote = z91.object({
3764
+ type: z91.literal(DataSourceRemoteType.Enum.Storybook),
3765
+ indexUrl: z91.string(),
3766
+ userUrl: z91.string(),
3767
+ ownerId: z91.string().optional(),
3768
+ lastImportedAt: z91.coerce.date().optional(),
3769
+ lastImportedSuccessfully: z91.coerce.date().optional(),
3770
+ isFailed: z91.boolean(),
3771
+ storiesCount: z91.number(),
3772
+ docsCount: z91.number()
3773
+ });
3722
3774
  var DataSourceRemote = z91.discriminatedUnion("type", [
3723
3775
  DataSourceFigmaRemote,
3724
3776
  DataSourceUploadRemote,
3725
- DataSourceTokenStudioRemote
3777
+ DataSourceTokenStudioRemote,
3778
+ DataSourceStorybookRemote
3726
3779
  ]);
3727
3780
  var DataSource = z91.object({
3728
3781
  id: z91.string(),
@@ -3808,15 +3861,11 @@ var FigmaImportBaseContext = z94.object({
3808
3861
  importWarnings: z94.record(ImportWarning.array()).default({})
3809
3862
  });
3810
3863
  var FeatureFlagsKeepAliases = z94.object({
3811
- isTypographyPropsKeepAliasesEnabled: z94.boolean().default(false),
3812
- isGradientPropsKeepAliasesEnabled: z94.boolean().default(false),
3813
- isShadowPropsKeepAliasesEnabled: z94.boolean().default(false),
3814
3864
  isNonCompatibleTypeChangesEnabled: z94.boolean().default(false),
3815
3865
  isTypographyUseFontStyleEnabled: z94.boolean().default(false)
3816
3866
  });
3817
3867
  var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
3818
3868
  sourcesWithMissingAccess: z94.array(z94.string()).default([]),
3819
- shadowOpacityOptional: z94.boolean().default(false),
3820
3869
  featureFlagsKeepAliases: FeatureFlagsKeepAliases.default({})
3821
3870
  });
3822
3871
  var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
@@ -3957,20 +4006,18 @@ var FigmaComponentImportModelPart = z99.object({
3957
4006
  parentComponentId: z99.string().optional(),
3958
4007
  componentPropertyDefinitions: FigmaComponentPropertyMap.optional(),
3959
4008
  variantPropertyValues: z99.record(z99.string()).optional(),
3960
- renderNodeId: z99.string()
4009
+ renderNodeId: z99.string(),
4010
+ svg: FigmaSvgRenderImportModel.optional()
3961
4011
  });
3962
4012
  var FigmaComponentImportModel = ImportModelBase.extend(FigmaComponentImportModelPart.shape).extend({
3963
- isAsset: z99.boolean(),
3964
- svg: FigmaSvgRenderImportModel.optional(),
3965
- origin: FigmaComponentOrigin
4013
+ origin: FigmaComponentOrigin,
4014
+ isAsset: z99.boolean()
3966
4015
  });
3967
4016
  var FigmaComponentImportModelInput = ImportModelInputBase.extend(FigmaComponentImportModelPart.shape).extend({
3968
- originMetadata: FigmaComponentOriginPart
3969
- });
3970
- var AssetImportModelInput = ImportModelInputBase.extend(FigmaComponentImportModelPart.shape).extend({
3971
- svg: FigmaSvgRenderImportModel,
3972
- originMetadata: FigmaComponentOriginPart
4017
+ originMetadata: FigmaComponentOriginPart,
4018
+ isAsset: z99.boolean().optional()
3973
4019
  });
4020
+ var AssetImportModelInput = FigmaComponentImportModelInput;
3974
4021
 
3975
4022
  // src/dsm/import/data-source.ts
3976
4023
  import { z as z100 } from "zod";
@@ -4006,8 +4053,7 @@ function figmaFileStructureImportModelToMap(root) {
4006
4053
  }
4007
4054
  function recursiveFigmaFileStructureToMap2(node, map) {
4008
4055
  map.set(node.id, node);
4009
- for (const child of node.children)
4010
- recursiveFigmaFileStructureToMap2(child, map);
4056
+ for (const child of node.children) recursiveFigmaFileStructureToMap2(child, map);
4011
4057
  }
4012
4058
 
4013
4059
  // src/dsm/import/theme.ts
@@ -4214,24 +4260,29 @@ var DocumentationLinkPreview = z110.object({
4214
4260
  thumbnail: PageBlockImageReference.optional()
4215
4261
  });
4216
4262
 
4217
- // src/dsm/documentation/page-anchor.ts
4263
+ // src/dsm/documentation/page.ts
4218
4264
  import { z as z111 } from "zod";
4219
- var DocumentationPageAnchor = z111.object({
4220
- blockId: z111.string(),
4221
- level: z111.number(),
4222
- text: z111.string()
4265
+ var DocumentationPage = z111.object({
4266
+ type: z111.literal("DocumentationPage"),
4267
+ id: z111.string(),
4268
+ persistentId: z111.string(),
4269
+ shortPersistentId: z111.string(),
4270
+ designSystemVersionId: z111.string(),
4271
+ parentPersistentId: z111.string().nullish(),
4272
+ sortOrder: z111.number(),
4273
+ title: z111.string(),
4274
+ slug: z111.string(),
4275
+ userSlug: z111.string().nullish(),
4276
+ createdAt: z111.coerce.date(),
4277
+ updatedAt: z111.coerce.date()
4223
4278
  });
4224
4279
 
4225
- // src/dsm/documentation/page-content-backup.ts
4280
+ // src/dsm/documentation/page-anchor.ts
4226
4281
  import { z as z112 } from "zod";
4227
- var DocumentationPageContentBackup = z112.object({
4228
- id: z112.string(),
4229
- designSystemVersionId: z112.string(),
4230
- createdAt: z112.coerce.date(),
4231
- updatedAt: z112.coerce.date(),
4232
- documentationPageId: z112.string(),
4233
- documentationPageName: z112.string(),
4234
- storagePath: z112.string()
4282
+ var DocumentationPageAnchor = z112.object({
4283
+ blockId: z112.string(),
4284
+ level: z112.number(),
4285
+ text: z112.string()
4235
4286
  });
4236
4287
 
4237
4288
  // src/dsm/documentation/page-content.ts
@@ -4252,86 +4303,99 @@ var DocumentationPageContent = z113.object({
4252
4303
  data: DocumentationPageContentData
4253
4304
  });
4254
4305
 
4255
- // src/dsm/documentation/page.ts
4306
+ // src/dsm/documentation/page-content-backup.ts
4256
4307
  import { z as z114 } from "zod";
4257
- var DocumentationPage = z114.object({
4258
- type: z114.literal("DocumentationPage"),
4308
+ var DocumentationPageContentBackup = z114.object({
4259
4309
  id: z114.string(),
4260
- persistentId: z114.string(),
4261
- shortPersistentId: z114.string(),
4262
4310
  designSystemVersionId: z114.string(),
4263
- parentPersistentId: z114.string().nullish(),
4264
- sortOrder: z114.number(),
4265
- title: z114.string(),
4266
- slug: z114.string(),
4267
- userSlug: z114.string().nullish(),
4268
4311
  createdAt: z114.coerce.date(),
4269
- updatedAt: z114.coerce.date()
4312
+ updatedAt: z114.coerce.date(),
4313
+ documentationPageId: z114.string(),
4314
+ documentationPageName: z114.string(),
4315
+ storagePath: z114.string()
4270
4316
  });
4271
4317
 
4272
- // src/dsm/documentation/redirects.ts
4318
+ // src/dsm/documentation/page-dependencies.ts
4273
4319
  import { z as z115 } from "zod";
4274
- var PageRedirect = z115.object({
4320
+ var DocumentationPageDependencies = z115.object({
4275
4321
  id: z115.string(),
4276
- pagePersistentId: z115.string(),
4277
- path: z115.string(),
4322
+ designSystemVersionId: z115.string(),
4278
4323
  createdAt: z115.coerce.date(),
4279
4324
  updatedAt: z115.coerce.date(),
4280
- designSystemId: z115.string()
4325
+ documentationPageId: z115.string(),
4326
+ tokenPersistentIds: z115.set(z115.string()),
4327
+ figmaComponentPersistentIds: z115.set(z115.string()),
4328
+ componentPersistentIds: z115.set(z115.string()),
4329
+ figmaNodePersistentIds: z115.set(z115.string()),
4330
+ groupPersistentIds: z115.set(z115.string()),
4331
+ propertyPersistentIds: z115.set(z115.string()),
4332
+ themePersistentIds: z115.set(z115.string()),
4333
+ documentationPagePersistentIds: z115.set(z115.string())
4281
4334
  });
4282
4335
 
4283
- // src/dsm/documentation/settings.ts
4336
+ // src/dsm/documentation/redirects.ts
4284
4337
  import { z as z116 } from "zod";
4285
- var DocumentationSettings = z116.object({
4286
- // Basic
4287
- designSystemVersionId: z116.string(),
4338
+ var PageRedirect = z116.object({
4339
+ id: z116.string(),
4340
+ pagePersistentId: z116.string(),
4341
+ path: z116.string(),
4288
4342
  createdAt: z116.coerce.date(),
4289
4343
  updatedAt: z116.coerce.date(),
4290
- // Configuration
4291
- isTabbedLayoutEnabled: z116.boolean(),
4292
- storybookEmbedErrorMessage: z116.string().optional(),
4293
- renderCodePackageJson: z116.string().optional(),
4294
- selectedBrandPersistentId: z116.string().optional(),
4295
- serveDefaultVersionOnly: z116.boolean(),
4296
- isPublic: z116.boolean()
4344
+ designSystemId: z116.string()
4297
4345
  });
4298
4346
 
4299
- // src/dsm/documentation/thread.ts
4347
+ // src/dsm/documentation/settings.ts
4300
4348
  import { z as z117 } from "zod";
4301
- var DocumentationComment = z117.object({
4302
- id: z117.string(),
4303
- authorId: z117.string(),
4304
- threadId: z117.string(),
4305
- roomId: z117.string(),
4306
- createdAt: z117.coerce.date(),
4307
- editedAt: z117.coerce.date().optional(),
4308
- deletedAt: z117.coerce.date().optional(),
4309
- body: z117.string()
4310
- });
4311
- var DocumentationCommentThread = z117.object({
4312
- id: z117.string(),
4313
- roomId: z117.string(),
4314
- pagePersistentId: z117.string(),
4315
- brandId: z117.string(),
4349
+ var DocumentationSettings = z117.object({
4350
+ // Basic
4316
4351
  designSystemVersionId: z117.string(),
4317
- designSystemId: z117.string(),
4318
- blockId: z117.string().optional(),
4319
- resolved: z117.boolean(),
4320
4352
  createdAt: z117.coerce.date(),
4321
- updatedAt: z117.coerce.date()
4353
+ updatedAt: z117.coerce.date(),
4354
+ // Configuration
4355
+ isTabbedLayoutEnabled: z117.boolean(),
4356
+ storybookEmbedErrorMessage: z117.string().optional(),
4357
+ renderCodePackageJson: z117.string().optional(),
4358
+ selectedBrandPersistentId: z117.string().optional(),
4359
+ serveDefaultVersionOnly: z117.boolean(),
4360
+ isPublic: z117.boolean()
4322
4361
  });
4323
4362
 
4324
- // src/dsm/element-snapshots/base.ts
4363
+ // src/dsm/documentation/thread.ts
4325
4364
  import { z as z118 } from "zod";
4326
- var DesignElementSnapshotReason = z118.enum(["Publish", "Deletion"]);
4327
- var DesignElementSnapshotBase = z118.object({
4365
+ var DocumentationComment = z118.object({
4328
4366
  id: z118.string(),
4329
- persistentId: z118.string(),
4367
+ authorId: z118.string(),
4368
+ threadId: z118.string(),
4369
+ roomId: z118.string(),
4370
+ createdAt: z118.coerce.date(),
4371
+ editedAt: z118.coerce.date().optional(),
4372
+ deletedAt: z118.coerce.date().optional(),
4373
+ body: z118.string()
4374
+ });
4375
+ var DocumentationCommentThread = z118.object({
4376
+ id: z118.string(),
4377
+ roomId: z118.string(),
4378
+ pagePersistentId: z118.string(),
4379
+ brandId: z118.string(),
4330
4380
  designSystemVersionId: z118.string(),
4381
+ designSystemId: z118.string(),
4382
+ blockId: z118.string().optional(),
4383
+ resolved: z118.boolean(),
4331
4384
  createdAt: z118.coerce.date(),
4332
- updatedAt: z118.coerce.date(),
4385
+ updatedAt: z118.coerce.date()
4386
+ });
4387
+
4388
+ // src/dsm/element-snapshots/base.ts
4389
+ import { z as z119 } from "zod";
4390
+ var DesignElementSnapshotReason = z119.enum(["Publish", "Deletion"]);
4391
+ var DesignElementSnapshotBase = z119.object({
4392
+ id: z119.string(),
4393
+ persistentId: z119.string(),
4394
+ designSystemVersionId: z119.string(),
4395
+ createdAt: z119.coerce.date(),
4396
+ updatedAt: z119.coerce.date(),
4333
4397
  reason: DesignElementSnapshotReason,
4334
- createdByUserId: z118.string()
4398
+ createdByUserId: z119.string()
4335
4399
  });
4336
4400
  function pickLatestSnapshots(snapshots, getSnapshotElementId) {
4337
4401
  const groupedSnapshots = groupBy(snapshots, getSnapshotElementId);
@@ -4342,11 +4406,11 @@ function pickLatestSnapshots(snapshots, getSnapshotElementId) {
4342
4406
  }
4343
4407
 
4344
4408
  // src/dsm/element-snapshots/documentation-page-snapshot.ts
4345
- import { z as z119 } from "zod";
4409
+ import { z as z120 } from "zod";
4346
4410
  var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
4347
4411
  page: DocumentationPageV2,
4348
- pageContentHash: z119.string(),
4349
- pageContentStorageKey: z119.string()
4412
+ pageContentHash: z120.string(),
4413
+ pageContentStorageKey: z120.string()
4350
4414
  });
4351
4415
  function pickLatestPageSnapshots(snapshots) {
4352
4416
  return pickLatestSnapshots(snapshots, (s) => s.page.id);
@@ -4361,157 +4425,167 @@ function pickLatestGroupSnapshots(snapshots) {
4361
4425
  }
4362
4426
 
4363
4427
  // src/dsm/figma-node-renderer/renderer-payload.ts
4364
- import { z as z120 } from "zod";
4365
- var FigmaNodeRendererPayload = z120.object({
4366
- designSystemId: z120.string(),
4367
- versionId: z120.string(),
4368
- figmaNodePersistentIds: z120.string().array()
4428
+ import { z as z121 } from "zod";
4429
+ var FigmaNodeRendererPayload = z121.object({
4430
+ designSystemId: z121.string(),
4431
+ versionId: z121.string(),
4432
+ figmaNodePersistentIds: z121.string().array()
4369
4433
  });
4370
4434
 
4371
4435
  // src/dsm/figma-node-structures/structure-data.ts
4372
- import { z as z121 } from "zod";
4373
- var FigmaNodeStructureDataV2 = z121.object({
4436
+ import { z as z122 } from "zod";
4437
+ var FigmaNodeStructureDataV2 = z122.object({
4374
4438
  rootNode: FigmaFileStructureNodeImportModel,
4375
- assetsInFile: z121.object({
4376
- components: z121.number(),
4377
- componentSets: z121.number(),
4378
- frames: z121.number()
4439
+ assetsInFile: z122.object({
4440
+ components: z122.number(),
4441
+ componentSets: z122.number(),
4442
+ frames: z122.number()
4379
4443
  })
4380
4444
  });
4381
4445
 
4382
4446
  // src/dsm/figma-node-structures/structure.ts
4383
- import { z as z122 } from "zod";
4384
- var FigmaNodeStructureStateV2 = z122.enum(["InProgress", "Success", "Failed"]);
4385
- var FigmaNodeStructureV2 = z122.object({
4386
- id: z122.string(),
4387
- designSystemId: z122.string(),
4388
- sourceId: z122.string(),
4389
- storagePath: z122.string().optional(),
4390
- createdAt: z122.coerce.date(),
4391
- updatedAt: z122.coerce.date(),
4447
+ import { z as z123 } from "zod";
4448
+ var FigmaNodeStructureStateV2 = z123.enum(["InProgress", "Success", "Failed"]);
4449
+ var FigmaNodeStructureV2 = z123.object({
4450
+ id: z123.string(),
4451
+ designSystemId: z123.string(),
4452
+ sourceId: z123.string(),
4453
+ storagePath: z123.string().optional(),
4454
+ createdAt: z123.coerce.date(),
4455
+ updatedAt: z123.coerce.date(),
4392
4456
  importState: FigmaNodeStructureStateV2,
4393
- error: z122.string().optional(),
4394
- chunkSize: z122.number().optional(),
4457
+ error: z123.string().optional(),
4458
+ chunkSize: z123.number().optional(),
4395
4459
  // TODO Artem: remove after migration
4396
- isFromLegacyStorage: z122.boolean()
4460
+ isFromLegacyStorage: z123.boolean()
4397
4461
  });
4398
4462
 
4399
4463
  // src/dsm/membership/design-system-membership.ts
4400
- import { z as z143 } from "zod";
4464
+ import { z as z145 } from "zod";
4401
4465
 
4402
4466
  // src/workspace/npm-registry-settings.ts
4403
- import { z as z123 } from "zod";
4404
- var NpmRegistryAuthType = z123.enum(["Basic", "Bearer", "None", "Custom"]);
4405
- var NpmRegistryType = z123.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4406
- var NpmRegistryBasicAuthConfig = z123.object({
4407
- authType: z123.literal(NpmRegistryAuthType.Enum.Basic),
4408
- username: z123.string(),
4409
- password: z123.string()
4410
- });
4411
- var NpmRegistryBearerAuthConfig = z123.object({
4412
- authType: z123.literal(NpmRegistryAuthType.Enum.Bearer),
4413
- accessToken: z123.string()
4414
- });
4415
- var NpmRegistryNoAuthConfig = z123.object({
4416
- authType: z123.literal(NpmRegistryAuthType.Enum.None)
4417
- });
4418
- var NpmRegistrCustomAuthConfig = z123.object({
4419
- authType: z123.literal(NpmRegistryAuthType.Enum.Custom),
4420
- authHeaderName: z123.string(),
4421
- authHeaderValue: z123.string()
4422
- });
4423
- var NpmRegistryAuthConfig = z123.discriminatedUnion("authType", [
4467
+ import { z as z124 } from "zod";
4468
+ var NpmRegistryAuthType = z124.enum(["Basic", "Bearer", "None", "Custom"]);
4469
+ var NpmRegistryType = z124.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4470
+ var NpmRegistryBasicAuthConfig = z124.object({
4471
+ authType: z124.literal(NpmRegistryAuthType.Enum.Basic),
4472
+ username: z124.string(),
4473
+ password: z124.string()
4474
+ });
4475
+ var NpmRegistryBearerAuthConfig = z124.object({
4476
+ authType: z124.literal(NpmRegistryAuthType.Enum.Bearer),
4477
+ accessToken: z124.string()
4478
+ });
4479
+ var NpmRegistryNoAuthConfig = z124.object({
4480
+ authType: z124.literal(NpmRegistryAuthType.Enum.None)
4481
+ });
4482
+ var NpmRegistrCustomAuthConfig = z124.object({
4483
+ authType: z124.literal(NpmRegistryAuthType.Enum.Custom),
4484
+ authHeaderName: z124.string(),
4485
+ authHeaderValue: z124.string()
4486
+ });
4487
+ var NpmRegistryAuthConfig = z124.discriminatedUnion("authType", [
4424
4488
  NpmRegistryBasicAuthConfig,
4425
4489
  NpmRegistryBearerAuthConfig,
4426
4490
  NpmRegistryNoAuthConfig,
4427
4491
  NpmRegistrCustomAuthConfig
4428
4492
  ]);
4429
- var NpmRegistryConfigBase = z123.object({
4493
+ var NpmRegistryConfigBase = z124.object({
4430
4494
  registryType: NpmRegistryType,
4431
- enabledScopes: z123.array(z123.string()),
4432
- customRegistryUrl: z123.string().optional(),
4433
- bypassProxy: z123.boolean().default(false),
4434
- npmProxyRegistryConfigId: z123.string().optional(),
4435
- npmProxyVersion: z123.number().optional()
4495
+ enabledScopes: z124.array(z124.string()),
4496
+ customRegistryUrl: z124.string().optional(),
4497
+ bypassProxy: z124.boolean().default(false),
4498
+ npmProxyRegistryConfigId: z124.string().optional(),
4499
+ npmProxyVersion: z124.number().optional()
4436
4500
  });
4437
4501
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
4438
4502
 
4439
4503
  // src/workspace/sso-provider.ts
4440
- import { z as z124 } from "zod";
4441
- var SsoProvider = z124.object({
4442
- providerId: z124.string(),
4443
- defaultAutoInviteValue: z124.boolean(),
4444
- autoInviteDomains: z124.record(z124.string(), z124.boolean()),
4445
- skipDocsSupernovaLogin: z124.boolean(),
4446
- areInvitesDisabled: z124.boolean(),
4447
- isTestMode: z124.boolean(),
4448
- emailDomains: z124.array(z124.string()),
4449
- metadataXml: z124.string().nullish()
4504
+ import { z as z125 } from "zod";
4505
+ var SsoProvider = z125.object({
4506
+ providerId: z125.string(),
4507
+ defaultAutoInviteValue: z125.boolean(),
4508
+ autoInviteDomains: z125.record(z125.string(), z125.boolean()),
4509
+ skipDocsSupernovaLogin: z125.boolean(),
4510
+ areInvitesDisabled: z125.boolean(),
4511
+ isTestMode: z125.boolean(),
4512
+ emailDomains: z125.array(z125.string()),
4513
+ metadataXml: z125.string().nullish()
4514
+ });
4515
+
4516
+ // src/workspace/untyped-data.ts
4517
+ import { z as z126 } from "zod";
4518
+ var WorkspaceUntypedData = z126.object({
4519
+ id: z126.string(),
4520
+ workspaceId: z126.string(),
4521
+ value: z126.unknown(),
4522
+ createdAt: z126.coerce.date(),
4523
+ updatedAt: z126.coerce.date()
4450
4524
  });
4451
4525
 
4452
4526
  // src/workspace/user-invite.ts
4453
- import { z as z126 } from "zod";
4527
+ import { z as z128 } from "zod";
4454
4528
 
4455
4529
  // src/workspace/workspace-role.ts
4456
- import { z as z125 } from "zod";
4457
- var WorkspaceRoleSchema = z125.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
4530
+ import { z as z127 } from "zod";
4531
+ var WorkspaceRoleSchema = z127.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
4458
4532
  var WorkspaceRole = WorkspaceRoleSchema.enum;
4459
4533
 
4460
4534
  // src/workspace/user-invite.ts
4461
4535
  var MAX_MEMBERS_COUNT = 100;
4462
- var UserInvite = z126.object({
4463
- email: z126.string().email().trim().transform((value) => value.toLowerCase()),
4536
+ var UserInvite = z128.object({
4537
+ email: z128.string().email().trim().transform((value) => value.toLowerCase()),
4464
4538
  role: WorkspaceRoleSchema
4465
4539
  });
4466
- var UserInvites = z126.array(UserInvite).max(MAX_MEMBERS_COUNT);
4540
+ var UserInvites = z128.array(UserInvite).max(MAX_MEMBERS_COUNT);
4467
4541
 
4468
4542
  // src/workspace/workspace-configuration.ts
4469
- import { z as z128 } from "zod";
4543
+ import { z as z130 } from "zod";
4470
4544
 
4471
4545
  // src/workspace/workspace.ts
4472
4546
  import IPCIDR from "ip-cidr";
4473
- import { z as z127 } from "zod";
4547
+ import { z as z129 } from "zod";
4474
4548
  var isValidCIDR = (value) => {
4475
4549
  return IPCIDR.isValidAddress(value);
4476
4550
  };
4477
- var WorkspaceIpWhitelistEntry = z127.object({
4478
- isEnabled: z127.boolean(),
4479
- name: z127.string(),
4480
- range: z127.string().refine(isValidCIDR, {
4551
+ var WorkspaceIpWhitelistEntry = z129.object({
4552
+ isEnabled: z129.boolean(),
4553
+ name: z129.string(),
4554
+ range: z129.string().refine(isValidCIDR, {
4481
4555
  message: "Invalid IP CIDR"
4482
4556
  })
4483
4557
  });
4484
- var WorkspaceIpSettings = z127.object({
4485
- isEnabledForCloud: z127.boolean(),
4486
- isEnabledForDocs: z127.boolean(),
4487
- entries: z127.array(WorkspaceIpWhitelistEntry)
4558
+ var WorkspaceIpSettings = z129.object({
4559
+ isEnabledForCloud: z129.boolean(),
4560
+ isEnabledForDocs: z129.boolean(),
4561
+ entries: z129.array(WorkspaceIpWhitelistEntry)
4488
4562
  });
4489
- var WorkspaceProfile = z127.object({
4490
- name: z127.string(),
4491
- handle: z127.string(),
4492
- color: z127.string(),
4493
- avatar: nullishToOptional(z127.string()),
4563
+ var WorkspaceProfile = z129.object({
4564
+ name: z129.string(),
4565
+ handle: z129.string(),
4566
+ color: z129.string(),
4567
+ avatar: nullishToOptional(z129.string()),
4494
4568
  billingDetails: nullishToOptional(BillingDetails)
4495
4569
  });
4496
4570
  var WorkspaceProfileUpdate = WorkspaceProfile.omit({
4497
4571
  avatar: true
4498
4572
  });
4499
- var Workspace = z127.object({
4500
- id: z127.string(),
4573
+ var Workspace = z129.object({
4574
+ id: z129.string(),
4501
4575
  profile: WorkspaceProfile,
4502
4576
  subscription: Subscription,
4503
4577
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4504
4578
  sso: nullishToOptional(SsoProvider),
4505
4579
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
4506
4580
  });
4507
- var WorkspaceWithDesignSystems = z127.object({
4581
+ var WorkspaceWithDesignSystems = z129.object({
4508
4582
  workspace: Workspace,
4509
- designSystems: z127.array(DesignSystem)
4583
+ designSystems: z129.array(DesignSystem)
4510
4584
  });
4511
4585
 
4512
4586
  // src/workspace/workspace-configuration.ts
4513
- var WorkspaceConfigurationUpdate = z128.object({
4514
- id: z128.string(),
4587
+ var WorkspaceConfigurationUpdate = z130.object({
4588
+ id: z130.string(),
4515
4589
  ipWhitelist: WorkspaceIpSettings.optional(),
4516
4590
  sso: SsoProvider.optional(),
4517
4591
  npmRegistrySettings: NpmRegistryConfig.optional(),
@@ -4519,59 +4593,59 @@ var WorkspaceConfigurationUpdate = z128.object({
4519
4593
  });
4520
4594
 
4521
4595
  // src/workspace/workspace-context.ts
4522
- import { z as z129 } from "zod";
4523
- var WorkspaceContext = z129.object({
4524
- workspaceId: z129.string(),
4596
+ import { z as z131 } from "zod";
4597
+ var WorkspaceContext = z131.object({
4598
+ workspaceId: z131.string(),
4525
4599
  product: ProductCodeSchema,
4526
4600
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4527
- publicDesignSystem: z129.boolean().optional()
4601
+ publicDesignSystem: z131.boolean().optional()
4528
4602
  });
4529
4603
 
4530
4604
  // src/workspace/workspace-create.ts
4531
- import { z as z130 } from "zod";
4605
+ import { z as z132 } from "zod";
4532
4606
  var WORKSPACE_NAME_MIN_LENGTH = 2;
4533
4607
  var WORKSPACE_NAME_MAX_LENGTH = 64;
4534
4608
  var HANDLE_MIN_LENGTH = 2;
4535
4609
  var HANDLE_MAX_LENGTH = 64;
4536
- var CreateWorkspaceInput = z130.object({
4537
- name: z130.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4538
- handle: z130.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
4610
+ var CreateWorkspaceInput = z132.object({
4611
+ name: z132.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4612
+ handle: z132.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
4539
4613
  });
4540
4614
 
4541
4615
  // src/workspace/workspace-invitations.ts
4542
- import { z as z131 } from "zod";
4543
- var WorkspaceInvitation = z131.object({
4544
- id: z131.string(),
4545
- email: z131.string().email(),
4546
- createdAt: z131.coerce.date(),
4547
- resentAt: z131.coerce.date().nullish(),
4548
- role: z131.nativeEnum(WorkspaceRole),
4549
- workspaceId: z131.string(),
4550
- invitedBy: z131.string()
4616
+ import { z as z133 } from "zod";
4617
+ var WorkspaceInvitation = z133.object({
4618
+ id: z133.string(),
4619
+ email: z133.string().email(),
4620
+ createdAt: z133.coerce.date(),
4621
+ resentAt: z133.coerce.date().nullish(),
4622
+ role: z133.nativeEnum(WorkspaceRole),
4623
+ workspaceId: z133.string(),
4624
+ invitedBy: z133.string()
4551
4625
  });
4552
4626
 
4553
4627
  // src/workspace/workspace-membership.ts
4554
- import { z as z140 } from "zod";
4628
+ import { z as z142 } from "zod";
4555
4629
 
4556
4630
  // src/users/linked-integrations.ts
4557
- import { z as z132 } from "zod";
4558
- var IntegrationAuthType = z132.union([z132.literal("OAuth2"), z132.literal("PAT")]);
4559
- var ExternalServiceType = z132.union([
4560
- z132.literal("figma"),
4561
- z132.literal("github"),
4562
- z132.literal("azure"),
4563
- z132.literal("gitlab"),
4564
- z132.literal("bitbucket")
4631
+ import { z as z134 } from "zod";
4632
+ var IntegrationAuthType = z134.union([z134.literal("OAuth2"), z134.literal("PAT")]);
4633
+ var ExternalServiceType = z134.union([
4634
+ z134.literal("figma"),
4635
+ z134.literal("github"),
4636
+ z134.literal("azure"),
4637
+ z134.literal("gitlab"),
4638
+ z134.literal("bitbucket")
4565
4639
  ]);
4566
- var IntegrationUserInfo = z132.object({
4567
- id: z132.string(),
4568
- handle: z132.string().optional(),
4569
- avatarUrl: z132.string().optional(),
4570
- email: z132.string().optional(),
4640
+ var IntegrationUserInfo = z134.object({
4641
+ id: z134.string(),
4642
+ handle: z134.string().optional(),
4643
+ avatarUrl: z134.string().optional(),
4644
+ email: z134.string().optional(),
4571
4645
  authType: IntegrationAuthType.optional(),
4572
- customUrl: z132.string().optional()
4646
+ customUrl: z134.string().optional()
4573
4647
  });
4574
- var UserLinkedIntegrations = z132.object({
4648
+ var UserLinkedIntegrations = z134.object({
4575
4649
  figma: IntegrationUserInfo.optional(),
4576
4650
  github: IntegrationUserInfo.array().optional(),
4577
4651
  azure: IntegrationUserInfo.array().optional(),
@@ -4580,38 +4654,38 @@ var UserLinkedIntegrations = z132.object({
4580
4654
  });
4581
4655
 
4582
4656
  // src/users/user-analytics-cleanup-schedule.ts
4583
- import { z as z133 } from "zod";
4584
- var UserAnalyticsCleanupSchedule = z133.object({
4585
- userId: z133.string(),
4586
- createdAt: z133.coerce.date(),
4587
- deleteAt: z133.coerce.date()
4657
+ import { z as z135 } from "zod";
4658
+ var UserAnalyticsCleanupSchedule = z135.object({
4659
+ userId: z135.string(),
4660
+ createdAt: z135.coerce.date(),
4661
+ deleteAt: z135.coerce.date()
4588
4662
  });
4589
4663
  var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
4590
4664
  createdAt: true
4591
4665
  });
4592
4666
 
4593
4667
  // src/users/user-identity.ts
4594
- import { z as z134 } from "zod";
4595
- var UserIdentity = z134.object({
4596
- id: z134.string(),
4597
- userId: z134.string()
4668
+ import { z as z136 } from "zod";
4669
+ var UserIdentity = z136.object({
4670
+ id: z136.string(),
4671
+ userId: z136.string()
4598
4672
  });
4599
4673
 
4600
4674
  // src/users/user-minified.ts
4601
- import { z as z135 } from "zod";
4602
- var UserMinified = z135.object({
4603
- id: z135.string(),
4604
- name: z135.string(),
4605
- email: z135.string(),
4606
- avatar: z135.string().optional()
4675
+ import { z as z137 } from "zod";
4676
+ var UserMinified = z137.object({
4677
+ id: z137.string(),
4678
+ name: z137.string(),
4679
+ email: z137.string(),
4680
+ avatar: z137.string().optional()
4607
4681
  });
4608
4682
 
4609
4683
  // src/users/user-notification-settings.ts
4610
- import { z as z136 } from "zod";
4611
- var LiveblocksNotificationSettings = z136.object({
4612
- sendCommentNotificationEmails: z136.boolean()
4684
+ import { z as z138 } from "zod";
4685
+ var LiveblocksNotificationSettings = z138.object({
4686
+ sendCommentNotificationEmails: z138.boolean()
4613
4687
  });
4614
- var UserNotificationSettings = z136.object({
4688
+ var UserNotificationSettings = z138.object({
4615
4689
  liveblocksNotificationSettings: LiveblocksNotificationSettings
4616
4690
  });
4617
4691
  var defaultNotificationSettings = {
@@ -4621,11 +4695,11 @@ var defaultNotificationSettings = {
4621
4695
  };
4622
4696
 
4623
4697
  // src/users/user-profile.ts
4624
- import { z as z137 } from "zod";
4625
- var UserOnboardingDepartment = z137.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4626
- var UserOnboardingJobLevel = z137.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4627
- var UserTheme = z137.object({
4628
- preset: z137.enum([
4698
+ import { z as z139 } from "zod";
4699
+ var UserOnboardingDepartment = z139.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4700
+ var UserOnboardingJobLevel = z139.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4701
+ var UserTheme = z139.object({
4702
+ preset: z139.enum([
4629
4703
  "Custom",
4630
4704
  "Default",
4631
4705
  "HighContrast",
@@ -4636,32 +4710,32 @@ var UserTheme = z137.object({
4636
4710
  "SystemPreference",
4637
4711
  "Sepia"
4638
4712
  ]).optional(),
4639
- backgroundColor: z137.string().optional(),
4640
- accentColor: z137.string().optional(),
4641
- contrast: z137.number().min(16).max(100).optional(),
4642
- isSecondaryEnabled: z137.boolean().optional(),
4643
- secondaryBackgroundColor: z137.string().optional(),
4644
- secondaryContrast: z137.number().min(16).max(100).optional(),
4645
- isEditorWhite: z137.boolean().optional()
4646
- });
4647
- var UserOnboarding = z137.object({
4648
- companyName: z137.string().optional(),
4649
- numberOfPeopleInOrg: z137.string().optional(),
4650
- numberOfPeopleInDesignTeam: z137.string().optional(),
4713
+ backgroundColor: z139.string().optional(),
4714
+ accentColor: z139.string().optional(),
4715
+ contrast: z139.number().min(16).max(100).optional(),
4716
+ isSecondaryEnabled: z139.boolean().optional(),
4717
+ secondaryBackgroundColor: z139.string().optional(),
4718
+ secondaryContrast: z139.number().min(16).max(100).optional(),
4719
+ isEditorWhite: z139.boolean().optional()
4720
+ });
4721
+ var UserOnboarding = z139.object({
4722
+ companyName: z139.string().optional(),
4723
+ numberOfPeopleInOrg: z139.string().optional(),
4724
+ numberOfPeopleInDesignTeam: z139.string().optional(),
4651
4725
  department: UserOnboardingDepartment.optional(),
4652
- jobTitle: z137.string().optional(),
4653
- phase: z137.string().optional(),
4726
+ jobTitle: z139.string().optional(),
4727
+ phase: z139.string().optional(),
4654
4728
  jobLevel: UserOnboardingJobLevel.optional(),
4655
- designSystemName: z137.string().optional(),
4656
- defaultDestination: z137.string().optional(),
4657
- figmaUrl: z137.string().optional(),
4658
- isPageDraftOnboardingFinished: z137.boolean().optional(),
4659
- isApprovalsOnboardingFinished: z137.boolean().optional()
4660
- });
4661
- var UserProfile = z137.object({
4662
- name: z137.string(),
4663
- avatar: z137.string().optional(),
4664
- nickname: z137.string().optional(),
4729
+ designSystemName: z139.string().optional(),
4730
+ defaultDestination: z139.string().optional(),
4731
+ figmaUrl: z139.string().optional(),
4732
+ isPageDraftOnboardingFinished: z139.boolean().optional(),
4733
+ isApprovalsOnboardingFinished: z139.boolean().optional()
4734
+ });
4735
+ var UserProfile = z139.object({
4736
+ name: z139.string(),
4737
+ avatar: z139.string().optional(),
4738
+ nickname: z139.string().optional(),
4665
4739
  onboarding: UserOnboarding.optional(),
4666
4740
  theme: UserTheme.optional()
4667
4741
  });
@@ -4670,47 +4744,47 @@ var UserProfileUpdate = UserProfile.partial().omit({
4670
4744
  });
4671
4745
 
4672
4746
  // src/users/user-test.ts
4673
- import { z as z138 } from "zod";
4674
- var UserTest = z138.object({
4675
- id: z138.string(),
4676
- email: z138.string()
4747
+ import { z as z140 } from "zod";
4748
+ var UserTest = z140.object({
4749
+ id: z140.string(),
4750
+ email: z140.string()
4677
4751
  });
4678
4752
 
4679
4753
  // src/users/user.ts
4680
- import { z as z139 } from "zod";
4681
- var UserSource = z139.enum(["SignUp", "Invite", "SSO"]);
4682
- var User = z139.object({
4683
- id: z139.string(),
4684
- email: z139.string(),
4685
- createdAt: z139.coerce.date(),
4754
+ import { z as z141 } from "zod";
4755
+ var UserSource = z141.enum(["SignUp", "Invite", "SSO"]);
4756
+ var User = z141.object({
4757
+ id: z141.string(),
4758
+ email: z141.string(),
4759
+ createdAt: z141.coerce.date(),
4686
4760
  profile: UserProfile,
4687
- loggedOutAt: z139.coerce.date().optional(),
4688
- isProtected: z139.boolean(),
4761
+ loggedOutAt: z141.coerce.date().optional(),
4762
+ isProtected: z141.boolean(),
4689
4763
  source: UserSource.optional()
4690
4764
  });
4691
4765
 
4692
4766
  // src/workspace/workspace-membership.ts
4693
- var WorkspaceMembership = z140.object({
4694
- id: z140.string(),
4695
- userId: z140.string(),
4696
- workspaceId: z140.string(),
4697
- workspaceRole: z140.nativeEnum(WorkspaceRole),
4767
+ var WorkspaceMembership = z142.object({
4768
+ id: z142.string(),
4769
+ userId: z142.string(),
4770
+ workspaceId: z142.string(),
4771
+ workspaceRole: z142.nativeEnum(WorkspaceRole),
4698
4772
  notificationSettings: UserNotificationSettings,
4699
- isPrimaryOwner: z140.boolean().nullish()
4700
- });
4701
- var UpdateMembershipRolesInput = z140.object({
4702
- members: z140.array(
4703
- z140.object({
4704
- userId: z140.string(),
4705
- role: z140.nativeEnum(WorkspaceRole),
4706
- isPrimaryOwner: z140.boolean().optional()
4773
+ isPrimaryOwner: z142.boolean().nullish()
4774
+ });
4775
+ var UpdateMembershipRolesInput = z142.object({
4776
+ members: z142.array(
4777
+ z142.object({
4778
+ userId: z142.string(),
4779
+ role: z142.nativeEnum(WorkspaceRole),
4780
+ isPrimaryOwner: z142.boolean().optional()
4707
4781
  })
4708
4782
  )
4709
4783
  });
4710
4784
 
4711
4785
  // src/dsm/membership/ds-role.ts
4712
- import { z as z141 } from "zod";
4713
- var DesignSystemRole = z141.enum([
4786
+ import { z as z143 } from "zod";
4787
+ var DesignSystemRole = z143.enum([
4714
4788
  WorkspaceRole.Admin,
4715
4789
  WorkspaceRole.Contributor,
4716
4790
  WorkspaceRole.Creator,
@@ -4734,46 +4808,46 @@ function workspaceRoleToDesignSystemRole(role) {
4734
4808
  }
4735
4809
 
4736
4810
  // src/dsm/membership/invitations.ts
4737
- import { z as z142 } from "zod";
4738
- var DesignSystemInvitation = z142.object({
4739
- id: z142.string(),
4740
- designSystemId: z142.string(),
4741
- workspaceInvitationId: z142.string(),
4811
+ import { z as z144 } from "zod";
4812
+ var DesignSystemInvitation = z144.object({
4813
+ id: z144.string(),
4814
+ designSystemId: z144.string(),
4815
+ workspaceInvitationId: z144.string(),
4742
4816
  designSystemRole: DesignSystemRole.optional(),
4743
4817
  workspaceRole: WorkspaceRoleSchema
4744
4818
  });
4745
4819
 
4746
4820
  // src/dsm/membership/design-system-membership.ts
4747
- var DesignSystemMembership = z143.object({
4748
- id: z143.string(),
4749
- userId: z143.string(),
4750
- designSystemId: z143.string(),
4821
+ var DesignSystemMembership = z145.object({
4822
+ id: z145.string(),
4823
+ userId: z145.string(),
4824
+ designSystemId: z145.string(),
4751
4825
  designSystemRole: DesignSystemRole.optional(),
4752
- workspaceMembershipId: z143.string(),
4826
+ workspaceMembershipId: z145.string(),
4753
4827
  workspaceRole: WorkspaceRoleSchema
4754
4828
  });
4755
- var DesignSystemMembers = z143.object({
4829
+ var DesignSystemMembers = z145.object({
4756
4830
  members: DesignSystemMembership.array(),
4757
4831
  invitations: DesignSystemInvitation.array()
4758
4832
  });
4759
- var DesignSystemPendingMemberInvitation = z143.object({
4760
- inviteId: z143.string(),
4833
+ var DesignSystemPendingMemberInvitation = z145.object({
4834
+ inviteId: z145.string(),
4761
4835
  /**
4762
4836
  * Role that the user will have in the design system, undefined
4763
4837
  * if it should be inherited from the workspace
4764
4838
  */
4765
4839
  designSystemRole: DesignSystemRole.optional()
4766
4840
  });
4767
- var DesignSystemUserInvitation = z143.object({
4768
- userId: z143.string(),
4841
+ var DesignSystemUserInvitation = z145.object({
4842
+ userId: z145.string(),
4769
4843
  /**
4770
4844
  * Role that the user will have in the design system, undefined
4771
4845
  * if it should be inherited from the workspace
4772
4846
  */
4773
4847
  designSystemRole: DesignSystemRole.optional()
4774
4848
  });
4775
- var DesignSystemInvite = z143.object({
4776
- email: z143.string(),
4849
+ var DesignSystemInvite = z145.object({
4850
+ email: z145.string(),
4777
4851
  workspaceRole: WorkspaceRoleSchema,
4778
4852
  /**
4779
4853
  * Role that the user will have in the design system, undefined
@@ -4781,285 +4855,318 @@ var DesignSystemInvite = z143.object({
4781
4855
  */
4782
4856
  designSystemRole: DesignSystemRole.optional()
4783
4857
  });
4784
- var DesignSystemMemberUpdate = z143.object({
4785
- userId: z143.string(),
4858
+ var DesignSystemMemberUpdate = z145.object({
4859
+ userId: z145.string(),
4786
4860
  designSystemRole: DesignSystemRole.nullable()
4787
4861
  });
4788
- var DesignSystemInviteUpdate = z143.object({
4862
+ var DesignSystemInviteUpdate = z145.object({
4789
4863
  /**
4790
4864
  * Workspace invitation id
4791
4865
  */
4792
- inviteId: z143.string(),
4866
+ inviteId: z145.string(),
4793
4867
  designSystemRole: DesignSystemRole.nullable()
4794
4868
  });
4795
- var DesignSystemMembershipUpdates = z143.object({
4869
+ var DesignSystemMembershipUpdates = z145.object({
4796
4870
  usersToInvite: DesignSystemUserInvitation.array().optional(),
4797
4871
  invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
4798
4872
  emailsToInvite: DesignSystemInvite.array().optional(),
4799
4873
  usersToUpdate: DesignSystemMemberUpdate.array().optional(),
4800
4874
  invitesToUpdate: DesignSystemInviteUpdate.array().optional(),
4801
- removeUserIds: z143.string().array().optional(),
4802
- deleteInvitationIds: z143.string().array().optional()
4875
+ removeUserIds: z145.string().array().optional(),
4876
+ deleteInvitationIds: z145.string().array().optional()
4803
4877
  });
4804
4878
 
4805
4879
  // src/dsm/views/column.ts
4806
- import { z as z144 } from "zod";
4807
- var ElementViewBaseColumnType = z144.enum(["Name", "Description", "Value", "UpdatedAt"]);
4808
- var ElementViewColumnType = z144.union([
4809
- z144.literal("BaseProperty"),
4810
- z144.literal("PropertyDefinition"),
4811
- z144.literal("Theme")
4880
+ import { z as z146 } from "zod";
4881
+ var ElementViewBaseColumnType = z146.enum(["Name", "Description", "Value", "UpdatedAt"]);
4882
+ var ElementViewColumnType = z146.union([
4883
+ z146.literal("BaseProperty"),
4884
+ z146.literal("PropertyDefinition"),
4885
+ z146.literal("Theme")
4812
4886
  ]);
4813
- var ElementViewColumnSharedAttributes = z144.object({
4814
- id: z144.string(),
4815
- persistentId: z144.string(),
4816
- elementDataViewId: z144.string(),
4817
- sortPosition: z144.number(),
4818
- width: z144.number()
4887
+ var ElementViewColumnSharedAttributes = z146.object({
4888
+ id: z146.string(),
4889
+ persistentId: z146.string(),
4890
+ elementDataViewId: z146.string(),
4891
+ sortPosition: z146.number(),
4892
+ width: z146.number()
4819
4893
  });
4820
4894
  var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
4821
- type: z144.literal("BaseProperty"),
4895
+ type: z146.literal("BaseProperty"),
4822
4896
  basePropertyType: ElementViewBaseColumnType
4823
4897
  });
4824
4898
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
4825
- type: z144.literal("PropertyDefinition"),
4826
- propertyDefinitionId: z144.string()
4899
+ type: z146.literal("PropertyDefinition"),
4900
+ propertyDefinitionId: z146.string()
4827
4901
  });
4828
4902
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
4829
- type: z144.literal("Theme"),
4830
- themeId: z144.string()
4903
+ type: z146.literal("Theme"),
4904
+ themeId: z146.string()
4831
4905
  });
4832
- var ElementViewColumn = z144.discriminatedUnion("type", [
4906
+ var ElementViewColumn = z146.discriminatedUnion("type", [
4833
4907
  ElementViewBasePropertyColumn,
4834
4908
  ElementViewPropertyDefinitionColumn,
4835
4909
  ElementViewThemeColumn
4836
4910
  ]);
4837
4911
 
4838
4912
  // src/dsm/views/view.ts
4839
- import { z as z145 } from "zod";
4840
- var ElementView = z145.object({
4841
- id: z145.string(),
4842
- persistentId: z145.string(),
4843
- designSystemVersionId: z145.string(),
4844
- name: z145.string(),
4845
- description: z145.string(),
4913
+ import { z as z147 } from "zod";
4914
+ var ElementView = z147.object({
4915
+ id: z147.string(),
4916
+ persistentId: z147.string(),
4917
+ designSystemVersionId: z147.string(),
4918
+ name: z147.string(),
4919
+ description: z147.string(),
4846
4920
  targetElementType: ElementPropertyTargetType,
4847
- isDefault: z145.boolean()
4921
+ isDefault: z147.boolean()
4848
4922
  });
4849
4923
 
4850
4924
  // src/dsm/brand.ts
4851
- import { z as z146 } from "zod";
4852
- var Brand = z146.object({
4853
- id: z146.string(),
4854
- designSystemVersionId: z146.string(),
4855
- persistentId: z146.string(),
4856
- name: z146.string(),
4857
- description: z146.string()
4925
+ import { z as z148 } from "zod";
4926
+ var Brand = z148.object({
4927
+ id: z148.string(),
4928
+ designSystemVersionId: z148.string(),
4929
+ persistentId: z148.string(),
4930
+ name: z148.string(),
4931
+ description: z148.string()
4858
4932
  });
4859
4933
 
4860
4934
  // src/dsm/design-system.ts
4861
- import { z as z147 } from "zod";
4862
- var DesignSystemAccessMode = z147.enum(["Open", "InviteOnly"]);
4863
- var DesignSystemSwitcher = z147.object({
4864
- isEnabled: z147.boolean(),
4865
- designSystemIds: z147.array(z147.string())
4935
+ import { z as z149 } from "zod";
4936
+ var DesignSystemAccessMode = z149.enum(["Open", "InviteOnly"]);
4937
+ var DesignSystemSwitcher = z149.object({
4938
+ isEnabled: z149.boolean(),
4939
+ designSystemIds: z149.array(z149.string())
4866
4940
  });
4867
- var DesignSystem = z147.object({
4868
- id: z147.string(),
4869
- workspaceId: z147.string(),
4870
- name: z147.string(),
4871
- description: z147.string(),
4872
- docExporterId: nullishToOptional(z147.string()),
4873
- docSlug: z147.string(),
4874
- docUserSlug: nullishToOptional(z147.string()),
4875
- docSlugDeprecated: z147.string(),
4876
- isMultibrand: z147.boolean(),
4877
- docViewUrl: nullishToOptional(z147.string()),
4878
- basePrefixes: z147.array(z147.string()),
4941
+ var DesignSystem = z149.object({
4942
+ id: z149.string(),
4943
+ workspaceId: z149.string(),
4944
+ name: z149.string(),
4945
+ description: z149.string(),
4946
+ docExporterId: nullishToOptional(z149.string()),
4947
+ docSlug: z149.string(),
4948
+ docUserSlug: nullishToOptional(z149.string()),
4949
+ docSlugDeprecated: z149.string(),
4950
+ isMultibrand: z149.boolean(),
4951
+ docViewUrl: nullishToOptional(z149.string()),
4952
+ basePrefixes: z149.array(z149.string()),
4879
4953
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
4880
- isApprovalFeatureEnabled: z147.boolean(),
4881
- approvalRequiredForPublishing: z147.boolean(),
4954
+ isApprovalFeatureEnabled: z149.boolean(),
4955
+ approvalRequiredForPublishing: z149.boolean(),
4882
4956
  accessMode: DesignSystemAccessMode,
4883
- membersGenerated: z147.boolean(),
4884
- createdAt: z147.coerce.date(),
4885
- updatedAt: z147.coerce.date()
4957
+ membersGenerated: z149.boolean(),
4958
+ createdAt: z149.coerce.date(),
4959
+ updatedAt: z149.coerce.date()
4886
4960
  });
4887
4961
 
4888
4962
  // src/dsm/exporter-property-values-collection.ts
4889
- import { z as z148 } from "zod";
4890
- var ExporterPropertyImageValue = z148.object({
4963
+ import { z as z150 } from "zod";
4964
+ var ExporterPropertyImageValue = z150.object({
4891
4965
  asset: PageBlockAsset.optional(),
4892
- assetId: z148.string().optional(),
4893
- assetUrl: z148.string().optional()
4894
- });
4895
- var ExporterConfigurationPropertyValue = z148.object({
4896
- key: z148.string(),
4897
- value: z148.union([
4898
- z148.number(),
4899
- z148.string(),
4900
- z148.boolean(),
4966
+ assetId: z150.string().optional(),
4967
+ assetUrl: z150.string().optional()
4968
+ });
4969
+ var ExporterConfigurationPropertyValue = z150.object({
4970
+ key: z150.string(),
4971
+ value: z150.union([
4972
+ z150.number(),
4973
+ z150.string(),
4974
+ z150.boolean(),
4901
4975
  ExporterPropertyImageValue,
4902
4976
  ColorTokenData,
4903
4977
  TypographyTokenData
4904
4978
  ])
4905
4979
  });
4906
- var ExporterPropertyValuesCollection = z148.object({
4907
- id: z148.string(),
4908
- designSystemId: z148.string(),
4909
- exporterId: z148.string(),
4910
- values: z148.array(ExporterConfigurationPropertyValue)
4980
+ var ExporterPropertyValuesCollection = z150.object({
4981
+ id: z150.string(),
4982
+ designSystemId: z150.string(),
4983
+ exporterId: z150.string(),
4984
+ values: z150.array(ExporterConfigurationPropertyValue)
4911
4985
  });
4912
4986
 
4913
4987
  // src/dsm/published-doc-page-visits.ts
4914
- import { z as z149 } from "zod";
4915
- var PublishedDocPageVisitsEntry = z149.object({
4916
- id: z149.string(),
4917
- versionId: z149.string(),
4918
- pagePersistentId: z149.string(),
4919
- locale: z149.string().optional(),
4920
- timestamp: z149.coerce.date(),
4921
- visits: z149.number(),
4922
- userId: nullishToOptional(z149.string()),
4923
- anonymousId: nullishToOptional(z149.string())
4988
+ import { z as z151 } from "zod";
4989
+ var PublishedDocPageVisitsEntry = z151.object({
4990
+ id: z151.string(),
4991
+ versionId: z151.string(),
4992
+ pagePersistentId: z151.string(),
4993
+ locale: z151.string().optional(),
4994
+ timestamp: z151.coerce.date(),
4995
+ visits: z151.number(),
4996
+ userId: nullishToOptional(z151.string()),
4997
+ anonymousId: nullishToOptional(z151.string())
4924
4998
  });
4925
4999
 
4926
5000
  // src/dsm/published-doc-page.ts
4927
- import { z as z150 } from "zod";
5001
+ import { z as z152 } from "zod";
4928
5002
  var SHORT_PERSISTENT_ID_LENGTH = 8;
4929
5003
  function tryParseShortPersistentId(url = "/") {
4930
5004
  const lastUrlPart = url.split("/").pop() || "";
4931
5005
  const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
4932
5006
  return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
4933
5007
  }
4934
- var PublishedDocPage = z150.object({
4935
- id: z150.string(),
4936
- publishedDocId: z150.string(),
4937
- pageShortPersistentId: z150.string(),
4938
- pagePersistentId: z150.string().optional(),
4939
- pathV1: z150.string(),
4940
- pathV2: z150.string(),
4941
- storagePath: z150.string(),
4942
- locale: z150.string().optional(),
4943
- isPrivate: z150.boolean(),
4944
- isHidden: z150.boolean(),
4945
- createdAt: z150.coerce.date(),
4946
- updatedAt: z150.coerce.date()
5008
+ var PublishedDocPage = z152.object({
5009
+ id: z152.string(),
5010
+ publishedDocId: z152.string(),
5011
+ pageShortPersistentId: z152.string(),
5012
+ pagePersistentId: z152.string().optional(),
5013
+ pathV1: z152.string(),
5014
+ pathV2: z152.string(),
5015
+ storagePath: z152.string(),
5016
+ locale: z152.string().optional(),
5017
+ isPrivate: z152.boolean(),
5018
+ isHidden: z152.boolean(),
5019
+ createdAt: z152.coerce.date(),
5020
+ updatedAt: z152.coerce.date()
4947
5021
  });
4948
5022
 
4949
5023
  // src/dsm/published-doc.ts
4950
- import { z as z151 } from "zod";
5024
+ import { z as z153 } from "zod";
4951
5025
  var publishedDocEnvironments = ["Live", "Preview"];
4952
- var PublishedDocEnvironment = z151.enum(publishedDocEnvironments);
4953
- var PublishedDocsChecksums = z151.record(z151.string());
4954
- var PublishedDocRoutingVersion = z151.enum(["1", "2"]);
4955
- var PublishedDoc = z151.object({
4956
- id: z151.string(),
4957
- designSystemVersionId: z151.string(),
4958
- createdAt: z151.coerce.date(),
4959
- updatedAt: z151.coerce.date(),
4960
- lastPublishedAt: z151.coerce.date(),
4961
- isDefault: z151.boolean(),
4962
- isPublic: z151.boolean(),
5026
+ var PublishedDocEnvironment = z153.enum(publishedDocEnvironments);
5027
+ var PublishedDocsChecksums = z153.record(z153.string());
5028
+ var PublishedDocRoutingVersion = z153.enum(["1", "2"]);
5029
+ var PublishedDoc = z153.object({
5030
+ id: z153.string(),
5031
+ designSystemVersionId: z153.string(),
5032
+ createdAt: z153.coerce.date(),
5033
+ updatedAt: z153.coerce.date(),
5034
+ lastPublishedAt: z153.coerce.date(),
5035
+ isDefault: z153.boolean(),
5036
+ isPublic: z153.boolean(),
4963
5037
  environment: PublishedDocEnvironment,
4964
5038
  checksums: PublishedDocsChecksums,
4965
- storagePath: z151.string(),
4966
- wasMigrated: z151.boolean(),
5039
+ storagePath: z153.string(),
5040
+ wasMigrated: z153.boolean(),
4967
5041
  routingVersion: PublishedDocRoutingVersion,
4968
- usesLocalizations: z151.boolean(),
4969
- wasPublishedWithLocalizations: z151.boolean(),
4970
- tokenCount: z151.number(),
4971
- assetCount: z151.number()
5042
+ usesLocalizations: z153.boolean(),
5043
+ wasPublishedWithLocalizations: z153.boolean(),
5044
+ tokenCount: z153.number(),
5045
+ assetCount: z153.number()
5046
+ });
5047
+
5048
+ // src/dsm/storybook-entry.ts
5049
+ import { z as z154 } from "zod";
5050
+ var StorybookEntryOrigin = z154.object({
5051
+ id: z154.string(),
5052
+ type: z154.enum(["story", "docs"]),
5053
+ name: z154.string(),
5054
+ title: z154.string()
5055
+ // Same as 'kind' for v3
5056
+ });
5057
+ var StorybookEntry = z154.object({
5058
+ id: z154.string(),
5059
+ storyId: z154.string(),
5060
+ designSystemId: z154.string(),
5061
+ sourceId: z154.string(),
5062
+ aliases: z154.array(z154.string()).optional(),
5063
+ url: z154.string(),
5064
+ isDeleted: z154.boolean().optional(),
5065
+ origin: StorybookEntryOrigin,
5066
+ createdAt: z154.coerce.date(),
5067
+ updatedAt: z154.coerce.date()
5068
+ });
5069
+
5070
+ // src/dsm/storybook-payload.ts
5071
+ import { z as z155 } from "zod";
5072
+ var StorybookPayload = z155.object({
5073
+ id: z155.string(),
5074
+ designSystemId: z155.string(),
5075
+ sourceId: z155.string(),
5076
+ payload: z155.any(),
5077
+ createdAt: z155.coerce.date(),
5078
+ updatedAt: z155.coerce.date()
4972
5079
  });
4973
5080
 
4974
5081
  // src/dsm/version.ts
4975
- import { z as z152 } from "zod";
4976
- var DesignSystemVersion = z152.object({
4977
- id: z152.string(),
4978
- version: z152.string(),
4979
- createdAt: z152.coerce.date(),
4980
- designSystemId: z152.string(),
4981
- name: z152.string(),
4982
- comment: z152.string(),
4983
- isReadonly: z152.boolean(),
4984
- changeLog: z152.string(),
4985
- parentId: z152.string().optional(),
4986
- isDraftsFeatureAdopted: z152.boolean()
4987
- });
4988
- var VersionCreationJobStatus = z152.enum(["Success", "InProgress", "Error"]);
4989
- var VersionCreationJob = z152.object({
4990
- id: z152.string(),
4991
- version: z152.string(),
4992
- designSystemId: z152.string(),
4993
- designSystemVersionId: nullishToOptional(z152.string()),
5082
+ import { z as z156 } from "zod";
5083
+ var DesignSystemVersion = z156.object({
5084
+ id: z156.string(),
5085
+ version: z156.string(),
5086
+ createdAt: z156.coerce.date(),
5087
+ designSystemId: z156.string(),
5088
+ name: z156.string(),
5089
+ comment: z156.string(),
5090
+ isReadonly: z156.boolean(),
5091
+ changeLog: z156.string(),
5092
+ parentId: z156.string().optional(),
5093
+ isDraftsFeatureAdopted: z156.boolean()
5094
+ });
5095
+ var VersionCreationJobStatus = z156.enum(["Success", "InProgress", "Error"]);
5096
+ var VersionCreationJob = z156.object({
5097
+ id: z156.string(),
5098
+ version: z156.string(),
5099
+ designSystemId: z156.string(),
5100
+ designSystemVersionId: nullishToOptional(z156.string()),
4994
5101
  status: VersionCreationJobStatus,
4995
- errorMessage: nullishToOptional(z152.string())
5102
+ errorMessage: nullishToOptional(z156.string())
4996
5103
  });
4997
5104
 
4998
5105
  // src/export/export-destinations.ts
4999
5106
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
5000
5107
  var BITBUCKET_MAX_LENGTH = 64;
5001
- var ExportJobDocumentationChanges = z153.object({
5002
- pagePersistentIds: z153.string().array(),
5003
- groupPersistentIds: z153.string().array()
5108
+ var ExportJobDocumentationChanges = z157.object({
5109
+ pagePersistentIds: z157.string().array(),
5110
+ groupPersistentIds: z157.string().array()
5004
5111
  });
5005
- var ExporterDestinationDocs = z153.object({
5112
+ var ExporterDestinationDocs = z157.object({
5006
5113
  environment: PublishedDocEnvironment,
5007
5114
  changes: nullishToOptional(ExportJobDocumentationChanges)
5008
5115
  });
5009
- var GitCommonDestinationOptions = z153.object({
5010
- branch: z153.string(),
5011
- relativePath: nullishToOptional(z153.string()),
5012
- purgeDirectory: nullishToOptional(z153.boolean()),
5013
- commitAuthorName: nullishToOptional(z153.string()),
5014
- commitAuthorEmail: nullishToOptional(z153.string()),
5015
- commitMessage: nullishToOptional(z153.string()),
5016
- pullRequestTitle: nullishToOptional(z153.string()),
5017
- pullRequestDescription: nullishToOptional(z153.string())
5018
- });
5019
- var ExporterDestinationS3 = z153.object({});
5020
- var ExporterDestinationGithub = z153.object({
5021
- credentialId: z153.string().optional(),
5116
+ var GitCommonDestinationOptions = z157.object({
5117
+ branch: z157.string(),
5118
+ relativePath: nullishToOptional(z157.string()),
5119
+ purgeDirectory: nullishToOptional(z157.boolean()),
5120
+ commitAuthorName: nullishToOptional(z157.string()),
5121
+ commitAuthorEmail: nullishToOptional(z157.string()),
5122
+ commitMessage: nullishToOptional(z157.string()),
5123
+ pullRequestTitle: nullishToOptional(z157.string()),
5124
+ pullRequestDescription: nullishToOptional(z157.string())
5125
+ });
5126
+ var ExporterDestinationS3 = z157.object({});
5127
+ var ExporterDestinationGithub = z157.object({
5128
+ credentialId: z157.string().optional(),
5022
5129
  // Repository
5023
- url: z153.string(),
5130
+ url: z157.string(),
5024
5131
  // Legacy deprecated fields. Use `credentialId` instead
5025
- connectionId: nullishToOptional(z153.string()),
5026
- userId: nullishToOptional(z153.number())
5132
+ connectionId: nullishToOptional(z157.string()),
5133
+ userId: nullishToOptional(z157.number())
5027
5134
  }).extend(GitCommonDestinationOptions.shape);
5028
- var ExporterDestinationAzure = z153.object({
5029
- credentialId: z153.string().optional(),
5135
+ var ExporterDestinationAzure = z157.object({
5136
+ credentialId: z157.string().optional(),
5030
5137
  // Repository
5031
- organizationId: z153.string(),
5032
- projectId: z153.string(),
5033
- repositoryId: z153.string(),
5138
+ organizationId: z157.string(),
5139
+ projectId: z157.string(),
5140
+ repositoryId: z157.string(),
5034
5141
  // Maybe not needed
5035
- url: nullishToOptional(z153.string()),
5142
+ url: nullishToOptional(z157.string()),
5036
5143
  // Legacy deprecated fields. Use `credentialId` instead
5037
- connectionId: nullishToOptional(z153.string()),
5038
- userId: nullishToOptional(z153.number())
5144
+ connectionId: nullishToOptional(z157.string()),
5145
+ userId: nullishToOptional(z157.number())
5039
5146
  }).extend(GitCommonDestinationOptions.shape);
5040
- var ExporterDestinationGitlab = z153.object({
5041
- credentialId: z153.string().optional(),
5147
+ var ExporterDestinationGitlab = z157.object({
5148
+ credentialId: z157.string().optional(),
5042
5149
  // Repository
5043
- projectId: z153.string(),
5150
+ projectId: z157.string(),
5044
5151
  // Maybe not needed
5045
- url: nullishToOptional(z153.string()),
5152
+ url: nullishToOptional(z157.string()),
5046
5153
  // Legacy deprecated fields. Use `credentialId` instead
5047
- connectionId: nullishToOptional(z153.string()),
5048
- userId: nullishToOptional(z153.number())
5154
+ connectionId: nullishToOptional(z157.string()),
5155
+ userId: nullishToOptional(z157.number())
5049
5156
  }).extend(GitCommonDestinationOptions.shape);
5050
- var ExporterDestinationBitbucket = z153.object({
5051
- credentialId: z153.string().optional(),
5157
+ var ExporterDestinationBitbucket = z157.object({
5158
+ credentialId: z157.string().optional(),
5052
5159
  // Repository
5053
- workspaceSlug: z153.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5054
- projectKey: z153.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5055
- repoSlug: z153.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5056
- url: nullishToOptional(z153.string()),
5160
+ workspaceSlug: z157.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5161
+ projectKey: z157.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5162
+ repoSlug: z157.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5163
+ url: nullishToOptional(z157.string()),
5057
5164
  // Legacy deprecated fields. Use `credentialId` instead
5058
- connectionId: nullishToOptional(z153.string()),
5059
- userId: nullishToOptional(z153.number())
5165
+ connectionId: nullishToOptional(z157.string()),
5166
+ userId: nullishToOptional(z157.number())
5060
5167
  }).extend(GitCommonDestinationOptions.shape);
5061
- var ExportDestinationsMap = z153.object({
5062
- webhookUrl: z153.string().optional(),
5168
+ var ExportDestinationsMap = z157.object({
5169
+ webhookUrl: z157.string().optional(),
5063
5170
  destinationSnDocs: ExporterDestinationDocs.optional(),
5064
5171
  destinationS3: ExporterDestinationS3.optional(),
5065
5172
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -5067,8 +5174,8 @@ var ExportDestinationsMap = z153.object({
5067
5174
  destinationGitlab: ExporterDestinationGitlab.optional(),
5068
5175
  destinationBitbucket: ExporterDestinationBitbucket.optional()
5069
5176
  });
5070
- var ExportDestinationsMapUpdate = z153.object({
5071
- webhookUrl: z153.string().nullish(),
5177
+ var ExportDestinationsMapUpdate = z157.object({
5178
+ webhookUrl: z157.string().nullish(),
5072
5179
  destinationSnDocs: ExporterDestinationDocs.nullish(),
5073
5180
  destinationS3: ExporterDestinationS3.nullish(),
5074
5181
  destinationGithub: ExporterDestinationGithub.nullish(),
@@ -5078,115 +5185,115 @@ var ExportDestinationsMapUpdate = z153.object({
5078
5185
  });
5079
5186
 
5080
5187
  // src/export/pipeline.ts
5081
- var PipelineEventType = z154.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
5082
- var PipelineDestinationGitType = z154.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
5083
- var PipelineDestinationExtraType = z154.enum(["WebhookUrl", "S3", "Documentation"]);
5084
- var PipelineDestinationType = z154.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
5085
- var Pipeline = z154.object({
5086
- id: z154.string(),
5087
- name: z154.string(),
5188
+ var PipelineEventType = z158.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
5189
+ var PipelineDestinationGitType = z158.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
5190
+ var PipelineDestinationExtraType = z158.enum(["WebhookUrl", "S3", "Documentation"]);
5191
+ var PipelineDestinationType = z158.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
5192
+ var Pipeline = z158.object({
5193
+ id: z158.string(),
5194
+ name: z158.string(),
5088
5195
  eventType: PipelineEventType,
5089
- isEnabled: z154.boolean(),
5090
- workspaceId: z154.string(),
5091
- designSystemId: z154.string(),
5092
- exporterId: z154.string(),
5093
- brandPersistentId: z154.string().optional(),
5094
- themePersistentId: z154.string().optional(),
5095
- themePersistentIds: z154.string().array().optional(),
5196
+ isEnabled: z158.boolean(),
5197
+ workspaceId: z158.string(),
5198
+ designSystemId: z158.string(),
5199
+ exporterId: z158.string(),
5200
+ brandPersistentId: z158.string().optional(),
5201
+ themePersistentId: z158.string().optional(),
5202
+ themePersistentIds: z158.string().array().optional(),
5096
5203
  exporterPropertyValues: ExporterPropertyValueMap.optional(),
5097
- isExporterDeprecated: z154.boolean(),
5204
+ isExporterDeprecated: z158.boolean(),
5098
5205
  // Destinations
5099
5206
  ...ExportDestinationsMap.shape
5100
5207
  });
5101
5208
 
5102
5209
  // src/data-dumps/code-integration-dump.ts
5103
- var ExportJobDump = z155.object({
5104
- id: z155.string(),
5105
- createdAt: z155.coerce.date(),
5106
- finishedAt: z155.coerce.date(),
5107
- exportArtefacts: z155.string()
5210
+ var ExportJobDump = z159.object({
5211
+ id: z159.string(),
5212
+ createdAt: z159.coerce.date(),
5213
+ finishedAt: z159.coerce.date(),
5214
+ exportArtefacts: z159.string()
5108
5215
  });
5109
- var CodeIntegrationDump = z155.object({
5216
+ var CodeIntegrationDump = z159.object({
5110
5217
  exporters: Exporter.array(),
5111
5218
  pipelines: Pipeline.array(),
5112
5219
  exportJobs: ExportJobDump.array()
5113
5220
  });
5114
5221
 
5115
5222
  // src/data-dumps/design-system-dump.ts
5116
- import { z as z162 } from "zod";
5223
+ import { z as z166 } from "zod";
5117
5224
 
5118
5225
  // src/data-dumps/design-system-version-dump.ts
5119
- import { z as z161 } from "zod";
5226
+ import { z as z165 } from "zod";
5120
5227
 
5121
5228
  // src/liveblocks/rooms/design-system-version-room.ts
5122
- import { z as z156 } from "zod";
5229
+ import { z as z160 } from "zod";
5123
5230
  var DesignSystemVersionRoom = Entity.extend({
5124
- designSystemVersionId: z156.string(),
5125
- liveblocksId: z156.string()
5126
- });
5127
- var DesignSystemVersionRoomInternalSettings = z156.object({
5128
- routingVersion: z156.string(),
5129
- isDraftFeatureAdopted: z156.boolean(),
5130
- isApprovalFeatureEnabled: z156.boolean(),
5131
- approvalRequiredForPublishing: z156.boolean()
5132
- });
5133
- var DesignSystemVersionRoomInitialState = z156.object({
5134
- pages: z156.array(DocumentationPageV2),
5135
- groups: z156.array(ElementGroup),
5136
- pageSnapshots: z156.array(DocumentationPageSnapshot),
5137
- groupSnapshots: z156.array(ElementGroupSnapshot),
5138
- pageApprovals: z156.array(DocumentationPageApproval),
5231
+ designSystemVersionId: z160.string(),
5232
+ liveblocksId: z160.string()
5233
+ });
5234
+ var DesignSystemVersionRoomInternalSettings = z160.object({
5235
+ routingVersion: z160.string(),
5236
+ isDraftFeatureAdopted: z160.boolean(),
5237
+ isApprovalFeatureEnabled: z160.boolean(),
5238
+ approvalRequiredForPublishing: z160.boolean()
5239
+ });
5240
+ var DesignSystemVersionRoomInitialState = z160.object({
5241
+ pages: z160.array(DocumentationPageV2),
5242
+ groups: z160.array(ElementGroup),
5243
+ pageSnapshots: z160.array(DocumentationPageSnapshot),
5244
+ groupSnapshots: z160.array(ElementGroupSnapshot),
5245
+ pageApprovals: z160.array(DocumentationPageApproval),
5139
5246
  internalSettings: DesignSystemVersionRoomInternalSettings,
5140
- pageHashes: z156.record(z156.string()).optional()
5141
- });
5142
- var DesignSystemVersionRoomUpdate = z156.object({
5143
- pages: z156.array(DocumentationPageV2),
5144
- groups: z156.array(ElementGroup),
5145
- pageIdsToDelete: z156.array(z156.string()),
5146
- groupIdsToDelete: z156.array(z156.string()),
5147
- pageSnapshots: z156.array(DocumentationPageSnapshot),
5148
- groupSnapshots: z156.array(ElementGroupSnapshot),
5149
- pageSnapshotIdsToDelete: z156.array(z156.string()),
5150
- groupSnapshotIdsToDelete: z156.array(z156.string()),
5151
- pageHashesToUpdate: z156.record(z156.string(), z156.string()),
5152
- pageApprovals: z156.array(DocumentationPageApproval),
5153
- pageApprovalIdsToDelete: z156.array(z156.string()),
5154
- executedTransactionIds: z156.array(z156.string())
5247
+ pageHashes: z160.record(z160.string()).optional()
5248
+ });
5249
+ var DesignSystemVersionRoomUpdate = z160.object({
5250
+ pages: z160.array(DocumentationPageV2),
5251
+ groups: z160.array(ElementGroup),
5252
+ pageIdsToDelete: z160.array(z160.string()),
5253
+ groupIdsToDelete: z160.array(z160.string()),
5254
+ pageSnapshots: z160.array(DocumentationPageSnapshot),
5255
+ groupSnapshots: z160.array(ElementGroupSnapshot),
5256
+ pageSnapshotIdsToDelete: z160.array(z160.string()),
5257
+ groupSnapshotIdsToDelete: z160.array(z160.string()),
5258
+ pageHashesToUpdate: z160.record(z160.string(), z160.string()),
5259
+ pageApprovals: z160.array(DocumentationPageApproval),
5260
+ pageApprovalIdsToDelete: z160.array(z160.string()),
5261
+ executedTransactionIds: z160.array(z160.string())
5155
5262
  });
5156
5263
 
5157
5264
  // src/liveblocks/rooms/documentation-page-room.ts
5158
- import { z as z157 } from "zod";
5265
+ import { z as z161 } from "zod";
5159
5266
  var DocumentationPageRoom = Entity.extend({
5160
- designSystemVersionId: z157.string(),
5161
- documentationPageId: z157.string(),
5162
- liveblocksId: z157.string(),
5163
- isDirty: z157.boolean()
5267
+ designSystemVersionId: z161.string(),
5268
+ documentationPageId: z161.string(),
5269
+ liveblocksId: z161.string(),
5270
+ isDirty: z161.boolean()
5164
5271
  });
5165
- var DocumentationPageRoomState = z157.object({
5166
- pageItems: z157.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
5272
+ var DocumentationPageRoomState = z161.object({
5273
+ pageItems: z161.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
5167
5274
  itemConfiguration: DocumentationItemConfigurationV2
5168
5275
  });
5169
- var DocumentationPageRoomRoomUpdate = z157.object({
5276
+ var DocumentationPageRoomRoomUpdate = z161.object({
5170
5277
  page: DocumentationPageV2,
5171
5278
  pageParent: ElementGroup
5172
5279
  });
5173
5280
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
5174
- pageItems: z157.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
5175
- blockDefinitions: z157.array(PageBlockDefinition)
5281
+ pageItems: z161.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
5282
+ blockDefinitions: z161.array(PageBlockDefinition)
5176
5283
  });
5177
- var RestoredDocumentationPage = z157.object({
5284
+ var RestoredDocumentationPage = z161.object({
5178
5285
  page: DocumentationPageV2,
5179
5286
  pageParent: ElementGroup,
5180
5287
  pageContent: DocumentationPageContentData,
5181
- contentHash: z157.string()
5288
+ contentHash: z161.string()
5182
5289
  });
5183
- var RestoredDocumentationGroup = z157.object({
5290
+ var RestoredDocumentationGroup = z161.object({
5184
5291
  group: ElementGroup,
5185
5292
  parent: ElementGroup
5186
5293
  });
5187
5294
 
5188
5295
  // src/liveblocks/rooms/room-type.ts
5189
- import { z as z158 } from "zod";
5296
+ import { z as z162 } from "zod";
5190
5297
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
5191
5298
  RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
5192
5299
  RoomTypeEnum2["DocumentationPage"] = "doc-page";
@@ -5194,36 +5301,36 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
5194
5301
  RoomTypeEnum2["Workspace"] = "workspace";
5195
5302
  return RoomTypeEnum2;
5196
5303
  })(RoomTypeEnum || {});
5197
- var RoomTypeSchema = z158.nativeEnum(RoomTypeEnum);
5304
+ var RoomTypeSchema = z162.nativeEnum(RoomTypeEnum);
5198
5305
  var RoomType = RoomTypeSchema.enum;
5199
5306
 
5200
5307
  // src/liveblocks/rooms/workspace-room.ts
5201
- import { z as z159 } from "zod";
5308
+ import { z as z163 } from "zod";
5202
5309
  var WorkspaceRoom = Entity.extend({
5203
- workspaceId: z159.string(),
5204
- liveblocksId: z159.string()
5310
+ workspaceId: z163.string(),
5311
+ liveblocksId: z163.string()
5205
5312
  });
5206
5313
 
5207
5314
  // src/data-dumps/published-docs-dump.ts
5208
- import { z as z160 } from "zod";
5209
- var PublishedDocsDump = z160.object({
5315
+ import { z as z164 } from "zod";
5316
+ var PublishedDocsDump = z164.object({
5210
5317
  documentation: PublishedDoc,
5211
5318
  pages: PublishedDocPage.array()
5212
5319
  });
5213
5320
 
5214
5321
  // src/data-dumps/design-system-version-dump.ts
5215
- var DocumentationThreadDump = z161.object({
5322
+ var DocumentationThreadDump = z165.object({
5216
5323
  thread: DocumentationCommentThread,
5217
5324
  comments: DocumentationComment.array()
5218
5325
  });
5219
- var DocumentationPageRoomDump = z161.object({
5326
+ var DocumentationPageRoomDump = z165.object({
5220
5327
  room: DocumentationPageRoom,
5221
5328
  threads: DocumentationThreadDump.array()
5222
5329
  });
5223
- var DesignSystemVersionMultiplayerDump = z161.object({
5330
+ var DesignSystemVersionMultiplayerDump = z165.object({
5224
5331
  documentationPages: DocumentationPageRoomDump.array()
5225
5332
  });
5226
- var DesignSystemVersionDump = z161.object({
5333
+ var DesignSystemVersionDump = z165.object({
5227
5334
  version: DesignSystemVersion,
5228
5335
  brands: Brand.array(),
5229
5336
  elements: DesignElement.array(),
@@ -5238,7 +5345,7 @@ var DesignSystemVersionDump = z161.object({
5238
5345
  });
5239
5346
 
5240
5347
  // src/data-dumps/design-system-dump.ts
5241
- var DesignSystemDump = z162.object({
5348
+ var DesignSystemDump = z166.object({
5242
5349
  designSystem: DesignSystem,
5243
5350
  dataSources: DataSource.array(),
5244
5351
  versions: DesignSystemVersionDump.array(),
@@ -5247,50 +5354,50 @@ var DesignSystemDump = z162.object({
5247
5354
  });
5248
5355
 
5249
5356
  // src/data-dumps/user-data-dump.ts
5250
- import { z as z165 } from "zod";
5357
+ import { z as z169 } from "zod";
5251
5358
 
5252
5359
  // src/data-dumps/workspace-dump.ts
5253
- import { z as z164 } from "zod";
5360
+ import { z as z168 } from "zod";
5254
5361
 
5255
5362
  // src/integrations/integration.ts
5256
- import { z as z163 } from "zod";
5257
- var IntegrationDesignSystem = z163.object({
5258
- designSystemId: z163.string(),
5259
- brandId: z163.string(),
5260
- title: z163.string().optional(),
5261
- userId: z163.string().optional(),
5262
- date: z163.coerce.date().optional()
5263
- });
5264
- var IntegrationCredentialsType = z163.enum(["OAuth2", "PAT"]);
5265
- var IntegrationCredentialsState = z163.enum(["Active", "Inactive"]);
5266
- var IntegrationCredentialsProfile = z163.object({
5267
- id: nullishToOptional(z163.string()),
5268
- email: nullishToOptional(z163.string()),
5269
- handle: nullishToOptional(z163.string()),
5270
- type: nullishToOptional(z163.string()),
5271
- avatarUrl: nullishToOptional(z163.string()),
5272
- organization: nullishToOptional(z163.string()),
5273
- collection: nullishToOptional(z163.string())
5274
- });
5275
- var IntegrationCredentials = z163.object({
5276
- id: z163.string(),
5363
+ import { z as z167 } from "zod";
5364
+ var IntegrationDesignSystem = z167.object({
5365
+ designSystemId: z167.string(),
5366
+ brandId: z167.string(),
5367
+ title: z167.string().optional(),
5368
+ userId: z167.string().optional(),
5369
+ date: z167.coerce.date().optional()
5370
+ });
5371
+ var IntegrationCredentialsType = z167.enum(["OAuth2", "PAT"]);
5372
+ var IntegrationCredentialsState = z167.enum(["Active", "Inactive"]);
5373
+ var IntegrationCredentialsProfile = z167.object({
5374
+ id: nullishToOptional(z167.string()),
5375
+ email: nullishToOptional(z167.string()),
5376
+ handle: nullishToOptional(z167.string()),
5377
+ type: nullishToOptional(z167.string()),
5378
+ avatarUrl: nullishToOptional(z167.string()),
5379
+ organization: nullishToOptional(z167.string()),
5380
+ collection: nullishToOptional(z167.string())
5381
+ });
5382
+ var IntegrationCredentials = z167.object({
5383
+ id: z167.string(),
5277
5384
  type: IntegrationCredentialsType,
5278
- integrationId: z163.string(),
5279
- accessToken: z163.string(),
5280
- userId: z163.string(),
5281
- createdAt: z163.coerce.date(),
5282
- refreshToken: z163.string().optional(),
5283
- tokenName: z163.string().optional(),
5284
- expiresAt: z163.coerce.date().optional(),
5285
- refreshedAt: z163.coerce.date().optional(),
5286
- username: z163.string().optional(),
5287
- appInstallationId: z163.string().optional(),
5385
+ integrationId: z167.string(),
5386
+ accessToken: z167.string(),
5387
+ userId: z167.string(),
5388
+ createdAt: z167.coerce.date(),
5389
+ refreshToken: z167.string().optional(),
5390
+ tokenName: z167.string().optional(),
5391
+ expiresAt: z167.coerce.date().optional(),
5392
+ refreshedAt: z167.coerce.date().optional(),
5393
+ username: z167.string().optional(),
5394
+ appInstallationId: z167.string().optional(),
5288
5395
  profile: IntegrationCredentialsProfile.optional(),
5289
- customUrl: z163.string().optional(),
5396
+ customUrl: z167.string().optional(),
5290
5397
  state: IntegrationCredentialsState,
5291
5398
  user: UserMinified.optional()
5292
5399
  });
5293
- var ExtendedIntegrationType = z163.enum([
5400
+ var ExtendedIntegrationType = z167.enum([
5294
5401
  "Figma",
5295
5402
  "Github",
5296
5403
  "Gitlab",
@@ -5301,28 +5408,27 @@ var ExtendedIntegrationType = z163.enum([
5301
5408
  ]);
5302
5409
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
5303
5410
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
5304
- var Integration = z163.object({
5305
- id: z163.string(),
5306
- workspaceId: z163.string(),
5411
+ var Integration = z167.object({
5412
+ id: z167.string(),
5413
+ workspaceId: z167.string(),
5307
5414
  type: IntegrationType,
5308
- createdAt: z163.coerce.date(),
5309
- integrationCredentials: z163.array(IntegrationCredentials).optional()
5310
- });
5311
- var IntegrationToken = z163.object({
5312
- access_token: z163.string(),
5313
- refresh_token: z163.string().optional(),
5314
- expires_in: z163.union([z163.number().optional(), z163.string().optional()]),
5315
- token_type: z163.string().optional(),
5316
- token_name: z163.string().optional(),
5317
- token_azure_organization_name: z163.string().optional(),
5415
+ createdAt: z167.coerce.date(),
5416
+ integrationCredentials: z167.array(IntegrationCredentials).optional()
5417
+ });
5418
+ var IntegrationToken = z167.object({
5419
+ access_token: z167.string(),
5420
+ refresh_token: z167.string().optional(),
5421
+ expires_in: z167.union([z167.number().optional(), z167.string().optional()]),
5422
+ token_type: z167.string().optional(),
5423
+ token_name: z167.string().optional(),
5424
+ token_azure_organization_name: z167.string().optional(),
5318
5425
  // Azure Cloud PAT only
5319
- token_azure_collection_name: z163.string().optional(),
5426
+ token_azure_collection_name: z167.string().optional(),
5320
5427
  // Azure Server PAT only
5321
- token_bitbucket_username: z163.string().optional(),
5428
+ token_bitbucket_username: z167.string().optional(),
5322
5429
  // Bitbucket only
5323
- custom_url: z163.string().optional().transform((value) => {
5324
- if (!value?.trim())
5325
- return void 0;
5430
+ custom_url: z167.string().optional().transform((value) => {
5431
+ if (!value?.trim()) return void 0;
5326
5432
  return formatCustomUrl(value);
5327
5433
  })
5328
5434
  }).refine((data) => {
@@ -5358,7 +5464,7 @@ function formatCustomUrl(url) {
5358
5464
  }
5359
5465
 
5360
5466
  // src/data-dumps/workspace-dump.ts
5361
- var WorkspaceDump = z164.object({
5467
+ var WorkspaceDump = z168.object({
5362
5468
  workspace: Workspace,
5363
5469
  designSystems: DesignSystemDump.array(),
5364
5470
  codeIntegration: CodeIntegrationDump,
@@ -5366,124 +5472,124 @@ var WorkspaceDump = z164.object({
5366
5472
  });
5367
5473
 
5368
5474
  // src/data-dumps/user-data-dump.ts
5369
- var UserDump = z165.object({
5475
+ var UserDump = z169.object({
5370
5476
  user: User,
5371
5477
  workspaces: WorkspaceDump.array()
5372
5478
  });
5373
5479
 
5374
5480
  // src/docs-server/session.ts
5375
- import { z as z166 } from "zod";
5376
- var NpmProxyToken = z166.object({
5377
- access: z166.string(),
5378
- expiresAt: z166.number()
5481
+ import { z as z170 } from "zod";
5482
+ var NpmProxyToken = z170.object({
5483
+ access: z170.string(),
5484
+ expiresAt: z170.number()
5379
5485
  });
5380
- var SessionData = z166.object({
5381
- returnToUrl: z166.string().optional(),
5486
+ var SessionData = z170.object({
5487
+ returnToUrl: z170.string().optional(),
5382
5488
  npmProxyToken: NpmProxyToken.optional()
5383
5489
  });
5384
- var Session = z166.object({
5385
- id: z166.string(),
5386
- expiresAt: z166.coerce.date(),
5387
- userId: z166.string().nullable(),
5388
- anonymousId: z166.string().nullable(),
5490
+ var Session = z170.object({
5491
+ id: z170.string(),
5492
+ expiresAt: z170.coerce.date(),
5493
+ userId: z170.string().nullable(),
5494
+ anonymousId: z170.string().nullable(),
5389
5495
  data: SessionData
5390
5496
  });
5391
- var AuthTokens = z166.object({
5392
- access: z166.string(),
5393
- refresh: z166.string()
5497
+ var AuthTokens = z170.object({
5498
+ access: z170.string(),
5499
+ refresh: z170.string()
5394
5500
  });
5395
- var UserSession = z166.object({
5501
+ var UserSession = z170.object({
5396
5502
  session: Session,
5397
5503
  user: User.nullable()
5398
5504
  });
5399
5505
 
5400
5506
  // src/emails/design-system-invite.ts
5401
- import { z as z167 } from "zod";
5402
- var DesignSystemInviteEmailRecipient = z167.object({
5403
- email: z167.string(),
5507
+ import { z as z171 } from "zod";
5508
+ var DesignSystemInviteEmailRecipient = z171.object({
5509
+ email: z171.string(),
5404
5510
  role: WorkspaceRoleSchema
5405
5511
  });
5406
- var DesignSystemInviteEmailData = z167.object({
5512
+ var DesignSystemInviteEmailData = z171.object({
5407
5513
  workspace: Workspace,
5408
5514
  designSystem: DesignSystem,
5409
5515
  invitedBy: User,
5410
- documentationDomain: z167.string().optional()
5516
+ documentationDomain: z171.string().optional()
5411
5517
  });
5412
5518
 
5413
5519
  // src/emails/workspace-invite.ts
5414
- import { z as z168 } from "zod";
5415
- var WorkspaceInviteEmailRecipient = z168.object({
5416
- email: z168.string(),
5520
+ import { z as z172 } from "zod";
5521
+ var WorkspaceInviteEmailRecipient = z172.object({
5522
+ email: z172.string(),
5417
5523
  role: WorkspaceRoleSchema
5418
5524
  });
5419
- var WorkspaceInviteEmailData = z168.object({
5525
+ var WorkspaceInviteEmailData = z172.object({
5420
5526
  workspace: Workspace,
5421
5527
  invitedBy: User,
5422
- documentationDomain: z168.string().optional()
5528
+ documentationDomain: z172.string().optional()
5423
5529
  });
5424
5530
 
5425
5531
  // src/events/base.ts
5426
- import { z as z171 } from "zod";
5532
+ import { z as z175 } from "zod";
5427
5533
 
5428
5534
  // src/events/data-source-imported.ts
5429
- import { z as z169 } from "zod";
5430
- var EventDataSourceImported = z169.object({
5431
- type: z169.literal("DataSourceImported"),
5432
- workspaceId: z169.string(),
5433
- designSystemId: z169.string()
5535
+ import { z as z173 } from "zod";
5536
+ var EventDataSourceImported = z173.object({
5537
+ type: z173.literal("DataSourceImported"),
5538
+ workspaceId: z173.string(),
5539
+ designSystemId: z173.string()
5434
5540
  });
5435
5541
 
5436
5542
  // src/events/version-released.ts
5437
- import { z as z170 } from "zod";
5438
- var EventVersionReleased = z170.object({
5439
- type: z170.literal("DesignSystemVersionReleased"),
5440
- workspaceId: z170.string(),
5441
- designSystemId: z170.string(),
5442
- versionId: z170.string()
5543
+ import { z as z174 } from "zod";
5544
+ var EventVersionReleased = z174.object({
5545
+ type: z174.literal("DesignSystemVersionReleased"),
5546
+ workspaceId: z174.string(),
5547
+ designSystemId: z174.string(),
5548
+ versionId: z174.string()
5443
5549
  });
5444
5550
 
5445
5551
  // src/events/base.ts
5446
- var Event = z171.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
5552
+ var Event = z175.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
5447
5553
 
5448
5554
  // src/export/export-runner/export-context.ts
5449
- import { z as z172 } from "zod";
5450
- var ExportJobDocumentationContext = z172.object({
5451
- isSingleVersionDocs: z172.boolean(),
5452
- versionSlug: z172.string(),
5555
+ import { z as z176 } from "zod";
5556
+ var ExportJobDocumentationContext = z176.object({
5557
+ isSingleVersionDocs: z176.boolean(),
5558
+ versionSlug: z176.string(),
5453
5559
  environment: PublishedDocEnvironment
5454
5560
  });
5455
- var ExportJobContext = z172.object({
5456
- apiUrl: z172.string(),
5457
- accessToken: z172.string(),
5458
- designSystemId: z172.string(),
5459
- designSystemName: z172.string(),
5460
- exporterId: z172.string(),
5461
- versionId: z172.string(),
5462
- brandId: z172.string().optional(),
5463
- themeId: z172.string().optional(),
5464
- themePersistentIds: z172.string().array().optional(),
5465
- previewMode: z172.boolean().optional(),
5466
- exporterName: z172.string(),
5561
+ var ExportJobContext = z176.object({
5562
+ apiUrl: z176.string(),
5563
+ accessToken: z176.string(),
5564
+ designSystemId: z176.string(),
5565
+ designSystemName: z176.string(),
5566
+ exporterId: z176.string(),
5567
+ versionId: z176.string(),
5568
+ brandId: z176.string().optional(),
5569
+ themeId: z176.string().optional(),
5570
+ themePersistentIds: z176.string().array().optional(),
5571
+ previewMode: z176.boolean().optional(),
5572
+ exporterName: z176.string(),
5467
5573
  documentation: ExportJobDocumentationContext.optional()
5468
5574
  });
5469
- var ExportJobExporterConfiguration = z172.object({
5470
- exporterPackageUrl: z172.string(),
5575
+ var ExportJobExporterConfiguration = z176.object({
5576
+ exporterPackageUrl: z176.string(),
5471
5577
  exporterPropertyValues: ExporterConfigurationPropertyValue.array(),
5472
5578
  exporterPropertyValuesV2: ExporterPropertyValueMap.optional()
5473
5579
  });
5474
5580
 
5475
5581
  // src/export/export-runner/exporter-payload.ts
5476
- import { z as z173 } from "zod";
5477
- var ExporterFunctionPayload = z173.object({
5478
- exportJobId: z173.string(),
5479
- exportContextId: z173.string(),
5480
- designSystemId: z173.string(),
5481
- workspaceId: z173.string()
5582
+ import { z as z177 } from "zod";
5583
+ var ExporterFunctionPayload = z177.object({
5584
+ exportJobId: z177.string(),
5585
+ exportContextId: z177.string(),
5586
+ designSystemId: z177.string(),
5587
+ workspaceId: z177.string()
5482
5588
  });
5483
5589
 
5484
5590
  // src/export/export-jobs.ts
5485
- import { z as z174 } from "zod";
5486
- var ExportJobDestinationType = z174.enum([
5591
+ import { z as z178 } from "zod";
5592
+ var ExportJobDestinationType = z178.enum([
5487
5593
  "s3",
5488
5594
  "webhookUrl",
5489
5595
  "github",
@@ -5492,30 +5598,30 @@ var ExportJobDestinationType = z174.enum([
5492
5598
  "gitlab",
5493
5599
  "bitbucket"
5494
5600
  ]);
5495
- var ExportJobStatus = z174.enum(["InProgress", "Success", "Failed", "Timeout"]);
5496
- var ExportJobLogEntryType = z174.enum(["success", "info", "warning", "error", "user"]);
5497
- var ExportJobLogEntry = z174.object({
5498
- id: z174.string().optional(),
5499
- time: z174.coerce.date(),
5601
+ var ExportJobStatus = z178.enum(["InProgress", "Success", "Failed", "Timeout"]);
5602
+ var ExportJobLogEntryType = z178.enum(["success", "info", "warning", "error", "user"]);
5603
+ var ExportJobLogEntry = z178.object({
5604
+ id: z178.string().optional(),
5605
+ time: z178.coerce.date(),
5500
5606
  type: ExportJobLogEntryType,
5501
- message: z174.string()
5607
+ message: z178.string()
5502
5608
  });
5503
- var ExportJobPullRequestDestinationResult = z174.object({
5504
- pullRequestUrl: z174.string()
5609
+ var ExportJobPullRequestDestinationResult = z178.object({
5610
+ pullRequestUrl: z178.string()
5505
5611
  });
5506
- var ExportJobS3DestinationResult = z174.object({
5507
- bucket: z174.string(),
5508
- urlPrefix: z174.string().optional(),
5509
- path: z174.string(),
5510
- files: z174.array(z174.string()),
5511
- url: nullishToOptional(z174.string()),
5512
- urls: nullishToOptional(z174.string().array())
5612
+ var ExportJobS3DestinationResult = z178.object({
5613
+ bucket: z178.string(),
5614
+ urlPrefix: z178.string().optional(),
5615
+ path: z178.string(),
5616
+ files: z178.array(z178.string()),
5617
+ url: nullishToOptional(z178.string()),
5618
+ urls: nullishToOptional(z178.string().array())
5513
5619
  });
5514
- var ExportJobDocsDestinationResult = z174.object({
5515
- url: z174.string()
5620
+ var ExportJobDocsDestinationResult = z178.object({
5621
+ url: z178.string()
5516
5622
  });
5517
- var ExportJobResult = z174.object({
5518
- error: z174.string().optional(),
5623
+ var ExportJobResult = z178.object({
5624
+ error: z178.string().optional(),
5519
5625
  s3: nullishToOptional(ExportJobS3DestinationResult),
5520
5626
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
5521
5627
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -5524,24 +5630,24 @@ var ExportJobResult = z174.object({
5524
5630
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
5525
5631
  logs: nullishToOptional(ExportJobLogEntry.array())
5526
5632
  });
5527
- var ExportJob = z174.object({
5528
- id: z174.string(),
5529
- createdAt: z174.coerce.date(),
5530
- finishedAt: z174.coerce.date().optional(),
5531
- designSystemId: z174.string(),
5532
- designSystemVersionId: z174.string(),
5533
- workspaceId: z174.string(),
5534
- scheduleId: z174.string().nullish(),
5535
- exporterId: z174.string(),
5536
- brandId: z174.string().optional(),
5537
- themeId: z174.string().optional(),
5538
- themePersistentIds: z174.string().array().optional(),
5539
- estimatedExecutionTime: z174.number().optional(),
5633
+ var ExportJob = z178.object({
5634
+ id: z178.string(),
5635
+ createdAt: z178.coerce.date(),
5636
+ finishedAt: z178.coerce.date().optional(),
5637
+ designSystemId: z178.string(),
5638
+ designSystemVersionId: z178.string(),
5639
+ workspaceId: z178.string(),
5640
+ scheduleId: z178.string().nullish(),
5641
+ exporterId: z178.string(),
5642
+ brandId: z178.string().optional(),
5643
+ themeId: z178.string().optional(),
5644
+ themePersistentIds: z178.string().array().optional(),
5645
+ estimatedExecutionTime: z178.number().optional(),
5540
5646
  status: ExportJobStatus,
5541
5647
  result: ExportJobResult.optional(),
5542
- createdByUserId: z174.string().optional(),
5648
+ createdByUserId: z178.string().optional(),
5543
5649
  exporterPropertyValues: ExporterPropertyValueMap.optional(),
5544
- previewMode: z174.boolean().optional(),
5650
+ previewMode: z178.boolean().optional(),
5545
5651
  // Destinations
5546
5652
  ...ExportDestinationsMap.shape
5547
5653
  });
@@ -5555,60 +5661,60 @@ var ExportJobFindByFilter = ExportJob.pick({
5555
5661
  themeId: true,
5556
5662
  brandId: true
5557
5663
  }).extend({
5558
- destinations: z174.array(ExportJobDestinationType),
5664
+ destinations: z178.array(ExportJobDestinationType),
5559
5665
  docsEnvironment: PublishedDocEnvironment
5560
5666
  }).partial();
5561
5667
 
5562
5668
  // src/export/exporter-list-query.ts
5563
- import { z as z175 } from "zod";
5564
- var ExporterType2 = z175.enum(["documentation", "code"]);
5565
- var ListExporterQuery = z175.object({
5566
- limit: z175.number().optional(),
5567
- offset: z175.number().optional(),
5669
+ import { z as z179 } from "zod";
5670
+ var ExporterType2 = z179.enum(["documentation", "code"]);
5671
+ var ListExporterQuery = z179.object({
5672
+ limit: z179.number().optional(),
5673
+ offset: z179.number().optional(),
5568
5674
  type: ExporterType2.optional(),
5569
- search: z175.string().optional()
5675
+ search: z179.string().optional()
5570
5676
  });
5571
5677
 
5572
5678
  // src/export/exporter-workspace-membership-role.ts
5573
- import { z as z176 } from "zod";
5574
- var ExporterWorkspaceMembershipRole = z176.enum(["Owner", "OwnerArchived", "User"]);
5679
+ import { z as z180 } from "zod";
5680
+ var ExporterWorkspaceMembershipRole = z180.enum(["Owner", "OwnerArchived", "User"]);
5575
5681
 
5576
5682
  // src/export/exporter-workspace-membership.ts
5577
- import { z as z177 } from "zod";
5578
- var ExporterWorkspaceMembership = z177.object({
5579
- id: z177.string(),
5580
- workspaceId: z177.string(),
5581
- exporterId: z177.string(),
5683
+ import { z as z181 } from "zod";
5684
+ var ExporterWorkspaceMembership = z181.object({
5685
+ id: z181.string(),
5686
+ workspaceId: z181.string(),
5687
+ exporterId: z181.string(),
5582
5688
  role: ExporterWorkspaceMembershipRole
5583
5689
  });
5584
5690
 
5585
5691
  // src/feature-flags/feature-flags.ts
5586
- import { z as z178 } from "zod";
5587
- var FlaggedFeature = z178.enum([
5692
+ import { z as z182 } from "zod";
5693
+ var FlaggedFeature = z182.enum([
5588
5694
  "FigmaImporterV2",
5589
- "ShadowOpacityOptional",
5590
5695
  "DisableImporter",
5591
5696
  "VariablesOrder",
5592
5697
  "TypographyPropsKeepAliases",
5593
5698
  "GradientPropsKeepAliases",
5594
5699
  "ShadowPropsKeepAliases",
5595
5700
  "NonCompatibleTypeChanges",
5596
- "TypographyUseFontStyle"
5701
+ "TypographyUseFontStyle",
5702
+ "FigmaImporterV3"
5597
5703
  ]);
5598
- var FeatureFlagMap = z178.record(FlaggedFeature, z178.boolean());
5599
- var FeatureFlag = z178.object({
5600
- id: z178.string(),
5704
+ var FeatureFlagMap = z182.record(FlaggedFeature, z182.boolean());
5705
+ var FeatureFlag = z182.object({
5706
+ id: z182.string(),
5601
5707
  feature: FlaggedFeature,
5602
- createdAt: z178.coerce.date(),
5603
- enabled: z178.boolean(),
5604
- designSystemId: z178.string().optional()
5708
+ createdAt: z182.coerce.date(),
5709
+ enabled: z182.boolean(),
5710
+ designSystemId: z182.string().optional()
5605
5711
  });
5606
5712
 
5607
5713
  // src/integrations/external-oauth-request.ts
5608
- import { z as z180 } from "zod";
5714
+ import { z as z184 } from "zod";
5609
5715
 
5610
5716
  // src/integrations/oauth-providers.ts
5611
- import { z as z179 } from "zod";
5717
+ import { z as z183 } from "zod";
5612
5718
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
5613
5719
  OAuthProviderNames2["Figma"] = "figma";
5614
5720
  OAuthProviderNames2["Azure"] = "azure";
@@ -5617,128 +5723,128 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
5617
5723
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
5618
5724
  return OAuthProviderNames2;
5619
5725
  })(OAuthProviderNames || {});
5620
- var OAuthProviderSchema = z179.nativeEnum(OAuthProviderNames);
5726
+ var OAuthProviderSchema = z183.nativeEnum(OAuthProviderNames);
5621
5727
  var OAuthProvider = OAuthProviderSchema.enum;
5622
5728
 
5623
5729
  // src/integrations/external-oauth-request.ts
5624
- var ExternalOAuthRequest = z180.object({
5625
- id: z180.string(),
5730
+ var ExternalOAuthRequest = z184.object({
5731
+ id: z184.string(),
5626
5732
  provider: OAuthProviderSchema,
5627
- userId: z180.string(),
5628
- state: z180.string(),
5629
- createdAt: z180.coerce.date()
5733
+ userId: z184.string(),
5734
+ state: z184.string(),
5735
+ createdAt: z184.coerce.date()
5630
5736
  });
5631
5737
 
5632
5738
  // src/integrations/git.ts
5633
- import { z as z181 } from "zod";
5634
- var GitObjectsQuery = z181.object({
5635
- organization: z181.string().optional(),
5739
+ import { z as z185 } from "zod";
5740
+ var GitObjectsQuery = z185.object({
5741
+ organization: z185.string().optional(),
5636
5742
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
5637
- project: z181.string().optional(),
5743
+ project: z185.string().optional(),
5638
5744
  // Only for Bitbucket and Azure
5639
- repository: z181.string().optional(),
5745
+ repository: z185.string().optional(),
5640
5746
  // For all providers. For Gitlab, it's called "project".
5641
- branch: z181.string().optional(),
5747
+ branch: z185.string().optional(),
5642
5748
  // For all providers.
5643
- user: z181.string().optional()
5749
+ user: z185.string().optional()
5644
5750
  // Gitlab user
5645
5751
  });
5646
- var GitOrganization = z181.object({
5647
- id: z181.string(),
5648
- name: z181.string(),
5649
- url: z181.string(),
5650
- slug: z181.string()
5651
- });
5652
- var GitProject = z181.object({
5653
- id: z181.string(),
5654
- name: z181.string(),
5655
- url: z181.string(),
5656
- slug: z181.string()
5657
- });
5658
- var GitRepository = z181.object({
5659
- id: z181.string(),
5660
- name: z181.string(),
5661
- url: z181.string(),
5662
- slug: z181.string(),
5752
+ var GitOrganization = z185.object({
5753
+ id: z185.string(),
5754
+ name: z185.string(),
5755
+ url: z185.string(),
5756
+ slug: z185.string()
5757
+ });
5758
+ var GitProject = z185.object({
5759
+ id: z185.string(),
5760
+ name: z185.string(),
5761
+ url: z185.string(),
5762
+ slug: z185.string()
5763
+ });
5764
+ var GitRepository = z185.object({
5765
+ id: z185.string(),
5766
+ name: z185.string(),
5767
+ url: z185.string(),
5768
+ slug: z185.string(),
5663
5769
  /**
5664
5770
  * Can be undefined when:
5665
5771
  * - there are no branches in the repository yet
5666
5772
  * - Git provider doesn't expose this information on a repository via their API
5667
5773
  */
5668
- defaultBranch: z181.string().optional()
5774
+ defaultBranch: z185.string().optional()
5669
5775
  });
5670
- var GitBranch = z181.object({
5671
- name: z181.string(),
5672
- lastCommitId: z181.string()
5776
+ var GitBranch = z185.object({
5777
+ name: z185.string(),
5778
+ lastCommitId: z185.string()
5673
5779
  });
5674
5780
 
5675
5781
  // src/integrations/oauth-token.ts
5676
- import { z as z182 } from "zod";
5677
- var IntegrationTokenSchemaOld = z182.object({
5678
- id: z182.string(),
5782
+ import { z as z186 } from "zod";
5783
+ var IntegrationTokenSchemaOld = z186.object({
5784
+ id: z186.string(),
5679
5785
  provider: OAuthProviderSchema,
5680
- scope: z182.string(),
5681
- userId: z182.string(),
5682
- accessToken: z182.string(),
5683
- refreshToken: z182.string(),
5684
- expiresAt: z182.coerce.date(),
5685
- externalUserId: z182.string().nullish()
5786
+ scope: z186.string(),
5787
+ userId: z186.string(),
5788
+ accessToken: z186.string(),
5789
+ refreshToken: z186.string(),
5790
+ expiresAt: z186.coerce.date(),
5791
+ externalUserId: z186.string().nullish()
5686
5792
  });
5687
5793
 
5688
5794
  // src/integrations/workspace-oauth-requests.ts
5689
- import { z as z183 } from "zod";
5690
- var WorkspaceOAuthRequestSchema = z183.object({
5691
- id: z183.string(),
5692
- workspaceId: z183.string(),
5795
+ import { z as z187 } from "zod";
5796
+ var WorkspaceOAuthRequestSchema = z187.object({
5797
+ id: z187.string(),
5798
+ workspaceId: z187.string(),
5693
5799
  provider: OAuthProviderSchema,
5694
- userId: z183.string(),
5695
- createdAt: z183.coerce.date()
5800
+ userId: z187.string(),
5801
+ createdAt: z187.coerce.date()
5696
5802
  });
5697
5803
 
5698
5804
  // src/npm/npm-package.ts
5699
- import { z as z184 } from "zod";
5700
- var AnyRecord = z184.record(z184.any());
5805
+ import { z as z188 } from "zod";
5806
+ var AnyRecord = z188.record(z188.any());
5701
5807
  var NpmPackageVersionDist = AnyRecord.and(
5702
- z184.object({
5703
- tarball: z184.string()
5808
+ z188.object({
5809
+ tarball: z188.string()
5704
5810
  })
5705
5811
  );
5706
5812
  var NpmPackageVersion = AnyRecord.and(
5707
- z184.object({
5813
+ z188.object({
5708
5814
  dist: NpmPackageVersionDist
5709
5815
  })
5710
5816
  );
5711
5817
  var NpmPackage = AnyRecord.and(
5712
- z184.object({
5713
- _id: z184.string(),
5714
- name: z184.string(),
5818
+ z188.object({
5819
+ _id: z188.string(),
5820
+ name: z188.string(),
5715
5821
  // e.g. "latest": "1.2.3"
5716
- "dist-tags": z184.record(z184.string(), z184.string()),
5822
+ "dist-tags": z188.record(z188.string(), z188.string()),
5717
5823
  // "1.2.3": {...}
5718
- versions: z184.record(NpmPackageVersion)
5824
+ versions: z188.record(NpmPackageVersion)
5719
5825
  })
5720
5826
  );
5721
5827
 
5722
5828
  // src/npm/npm-proxy-token-payload.ts
5723
- import { z as z185 } from "zod";
5724
- var NpmProxyTokenPayload = z185.object({
5725
- npmProxyRegistryConfigId: z185.string()
5829
+ import { z as z189 } from "zod";
5830
+ var NpmProxyTokenPayload = z189.object({
5831
+ npmProxyRegistryConfigId: z189.string()
5726
5832
  });
5727
5833
 
5728
5834
  // src/tokens/personal-access-token.ts
5729
- import { z as z186 } from "zod";
5730
- var PersonalAccessToken = z186.object({
5731
- id: z186.string(),
5732
- userId: z186.string(),
5733
- workspaceId: z186.string().optional(),
5734
- designSystemId: z186.string().optional(),
5835
+ import { z as z190 } from "zod";
5836
+ var PersonalAccessToken = z190.object({
5837
+ id: z190.string(),
5838
+ userId: z190.string(),
5839
+ workspaceId: z190.string().optional(),
5840
+ designSystemId: z190.string().optional(),
5735
5841
  workspaceRole: WorkspaceRoleSchema.optional(),
5736
- name: z186.string(),
5737
- hidden: z186.boolean(),
5738
- token: z186.string(),
5739
- scope: z186.string().optional(),
5740
- createdAt: z186.coerce.date(),
5741
- expireAt: z186.coerce.date().optional()
5842
+ name: z190.string(),
5843
+ hidden: z190.boolean(),
5844
+ token: z190.string(),
5845
+ scope: z190.string().optional(),
5846
+ createdAt: z190.coerce.date(),
5847
+ expireAt: z190.coerce.date().optional()
5742
5848
  });
5743
5849
  export {
5744
5850
  Address,
@@ -5748,7 +5854,6 @@ export {
5748
5854
  AssetFontProperties,
5749
5855
  AssetImportModelInput,
5750
5856
  AssetOrigin,
5751
- AssetProcessStatus,
5752
5857
  AssetProperties,
5753
5858
  AssetReference,
5754
5859
  AssetRenderConfiguration,
@@ -5808,6 +5913,7 @@ export {
5808
5913
  DataSourceRemote,
5809
5914
  DataSourceRemoteType,
5810
5915
  DataSourceStats,
5916
+ DataSourceStorybookRemote,
5811
5917
  DataSourceTokenStudioRemote,
5812
5918
  DataSourceUploadImportMetadata,
5813
5919
  DataSourceUploadRemote,
@@ -5885,6 +5991,7 @@ export {
5885
5991
  DocumentationPageContentItem,
5886
5992
  DocumentationPageDataV1,
5887
5993
  DocumentationPageDataV2,
5994
+ DocumentationPageDependencies,
5888
5995
  DocumentationPageGroup,
5889
5996
  DocumentationPageRoom,
5890
5997
  DocumentationPageRoomDump,
@@ -6202,6 +6309,7 @@ export {
6202
6309
  PageBlockItemSandboxValue,
6203
6310
  PageBlockItemSingleSelectValue,
6204
6311
  PageBlockItemStorybookValue,
6312
+ PageBlockItemStorybookValueOld,
6205
6313
  PageBlockItemSwatch,
6206
6314
  PageBlockItemTableCell,
6207
6315
  PageBlockItemTableImageNode,
@@ -6224,6 +6332,8 @@ export {
6224
6332
  PageBlockResourceFrameNodeReference,
6225
6333
  PageBlockSelectedFigmaComponent,
6226
6334
  PageBlockShortcut,
6335
+ PageBlockStorybookBlockConfig,
6336
+ PageBlockStorybookItem,
6227
6337
  PageBlockSwatch,
6228
6338
  PageBlockTableCellAlignment,
6229
6339
  PageBlockTableColumn,
@@ -6320,6 +6430,9 @@ export {
6320
6430
  SpaceUnit,
6321
6431
  SpaceValue,
6322
6432
  SsoProvider,
6433
+ StorybookEntry,
6434
+ StorybookEntryOrigin,
6435
+ StorybookPayload,
6323
6436
  StringTokenData,
6324
6437
  StringValue,
6325
6438
  StripeSubscriptionStatus,
@@ -6393,6 +6506,7 @@ export {
6393
6506
  WorkspaceRole,
6394
6507
  WorkspaceRoleSchema,
6395
6508
  WorkspaceRoom,
6509
+ WorkspaceUntypedData,
6396
6510
  WorkspaceWithDesignSystems,
6397
6511
  ZIndexTokenData,
6398
6512
  ZIndexUnit,
@@ -6448,6 +6562,7 @@ export {
6448
6562
  sleep,
6449
6563
  slugRegex,
6450
6564
  slugify,
6565
+ storybookValueFromOldValue,
6451
6566
  tokenAliasOrValue,
6452
6567
  tokenElementTypes,
6453
6568
  traversePageBlockItemValuesV2,