@supernova-studio/model 1.5.0 → 1.5.2

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 z158 } 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 z157 } from "zod";
469
466
 
470
467
  // src/export/export-destinations.ts
471
- import { z as z153 } from "zod";
468
+ import { z as z156 } from "zod";
472
469
 
473
470
  // src/dsm/assets/asset-dynamo-record.ts
474
471
  import { z as z19 } from "zod";
@@ -851,10 +848,8 @@ var SupernovaException = class _SupernovaException extends Error {
851
848
 
852
849
  // src/utils/common.ts
853
850
  function forceUnwrapNullish(value) {
854
- if (value === null)
855
- throw new Error("Illegal null");
856
- if (value === void 0)
857
- throw new Error("Illegal undefined");
851
+ if (value === null) throw new Error("Illegal null");
852
+ if (value === void 0) throw new Error("Illegal undefined");
858
853
  return value;
859
854
  }
860
855
  function trimLeadingSlash(string) {
@@ -924,14 +919,10 @@ function uniqueBy(items, prop) {
924
919
  return Array.from(mapByUnique(items, prop).values());
925
920
  }
926
921
  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;
922
+ if (lhs === void 0 !== (rhs === void 0)) return false;
923
+ if (lhs === void 0 || rhs === void 0) return true;
924
+ if (lhs === null !== (rhs === null)) return false;
925
+ if (lhs === null || rhs === null) return true;
935
926
  for (const key in lhs) {
936
927
  if (!(key in rhs) || lhs[key] !== rhs[key]) {
937
928
  return false;
@@ -959,8 +950,7 @@ function chunkedArray(array, chunkSize) {
959
950
  }
960
951
  function recordToMap(record) {
961
952
  const map = /* @__PURE__ */ new Map();
962
- for (const [k, v] of Object.entries(record))
963
- map.set(k, v);
953
+ for (const [k, v] of Object.entries(record)) map.set(k, v);
964
954
  return map;
965
955
  }
966
956
  function applyShallowObjectUpdate(object, update) {
@@ -1021,8 +1011,7 @@ function getCodenameFromText(name) {
1021
1011
  }
1022
1012
  function toCamelCase(str) {
1023
1013
  return str.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g, function(match, index) {
1024
- if (+match === 0)
1025
- return "";
1014
+ if (+match === 0) return "";
1026
1015
  return index === 0 ? match.toLowerCase() : match.toUpperCase();
1027
1016
  });
1028
1017
  }
@@ -1778,10 +1767,8 @@ var Size = z41.object({
1778
1767
  height: z41.number().nullish().transform((v) => v ?? nullSize.height)
1779
1768
  });
1780
1769
  var SizeOrUndefined = Size.optional().transform((v) => {
1781
- if (!v)
1782
- return void 0;
1783
- if (isNullSize(v))
1784
- return void 0;
1770
+ if (!v) return void 0;
1771
+ if (isNullSize(v)) return void 0;
1785
1772
  return v;
1786
1773
  });
1787
1774
 
@@ -1855,14 +1842,10 @@ var stringTokenTypes = /* @__PURE__ */ new Set([
1855
1842
  ]);
1856
1843
  var fallbackNumberValue = 14;
1857
1844
  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;
1845
+ if (lhs === rhs) return true;
1846
+ if (numberTokenTypes.has(lhs) && numberTokenTypes.has(rhs)) return true;
1847
+ if (stringTokenTypes.has(lhs) && stringTokenTypes.has(rhs)) return true;
1848
+ if (isNonCompatibleTypeChangesEnabled && stringTokenTypes.has(lhs) && numberTokenTypes.has(rhs)) return true;
1866
1849
  return false;
1867
1850
  }
1868
1851
  function castStringToDimensionValue(lhs, rhs, value) {
@@ -2229,8 +2212,7 @@ function removeCommentSpans(text) {
2229
2212
  return joinRepeatingSpans(updatedRichText);
2230
2213
  }
2231
2214
  function joinRepeatingSpans(text) {
2232
- if (text.spans.length < 2)
2233
- return text;
2215
+ if (text.spans.length < 2) return text;
2234
2216
  text = sanitizeSpans(text);
2235
2217
  const { spans, ...rest } = text;
2236
2218
  let previousSpan = { ...spans[0] };
@@ -2250,13 +2232,11 @@ function joinRepeatingSpans(text) {
2250
2232
  };
2251
2233
  }
2252
2234
  function areAttributesEqual(lhs, rhs) {
2253
- if (lhs.length !== rhs.length)
2254
- return false;
2235
+ if (lhs.length !== rhs.length) return false;
2255
2236
  const lhsMap = mapByUnique(lhs, (i) => i.type);
2256
2237
  for (const rhsAttribute of rhs) {
2257
2238
  const lhsAttribute = lhsMap.get(rhsAttribute.type);
2258
- if (!areShallowObjectsEqual(lhsAttribute, rhsAttribute))
2259
- return false;
2239
+ if (!areShallowObjectsEqual(lhsAttribute, rhsAttribute)) return false;
2260
2240
  }
2261
2241
  return true;
2262
2242
  }
@@ -2699,7 +2679,9 @@ var PageBlockItemStorybookValue = z47.object({
2699
2679
  caption: z47.string().optional(),
2700
2680
  height: z47.number().optional(),
2701
2681
  embedUrl: z47.string().optional(),
2702
- value: z47.string().optional()
2682
+ value: z47.string().optional(),
2683
+ storyId: z47.string().optional(),
2684
+ sourceId: z47.string().optional()
2703
2685
  });
2704
2686
  var PageBlockItemTextValue = z47.object({
2705
2687
  value: z47.string()
@@ -3011,8 +2993,7 @@ function figmaFileStructureToMap(root) {
3011
2993
  }
3012
2994
  function recursiveFigmaFileStructureToMap(node, map) {
3013
2995
  map.set(node.id, node);
3014
- for (const child of node.children)
3015
- recursiveFigmaFileStructureToMap(child, map);
2996
+ for (const child of node.children) recursiveFigmaFileStructureToMap(child, map);
3016
2997
  }
3017
2998
 
3018
2999
  // src/dsm/elements/data/figma-node-reference.ts
@@ -3551,8 +3532,7 @@ function mapPageBlockItemValuesV2(pageItems, definitionsMap, fn) {
3551
3532
  traversePageBlockItemsV2(pageItems, (block, item) => {
3552
3533
  Object.entries(item.props).forEach(([propKey, value]) => {
3553
3534
  const property = definitionsMap.getDefinitionProperty(block.data.packageId, propKey);
3554
- if (!property)
3555
- return;
3535
+ if (!property) return;
3556
3536
  item.props[propKey] = fn(block, item, property, value);
3557
3537
  });
3558
3538
  });
@@ -3561,8 +3541,7 @@ function traversePageBlockItemValuesV2(pageItems, definitionsMap, fn) {
3561
3541
  traversePageBlockItemsV2(pageItems, (block, item) => {
3562
3542
  Object.entries(item.props).forEach(([propKey, value]) => {
3563
3543
  const property = definitionsMap.getDefinitionProperty(block.data.packageId, propKey);
3564
- if (!property)
3565
- return;
3544
+ if (!property) return;
3566
3545
  fn(block, item, property, value);
3567
3546
  });
3568
3547
  });
@@ -3659,7 +3638,7 @@ function zeroNumberByDefault() {
3659
3638
  }
3660
3639
 
3661
3640
  // src/dsm/data-sources/data-source.ts
3662
- var DataSourceRemoteType = z91.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
3641
+ var DataSourceRemoteType = z91.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin", "Storybook"]);
3663
3642
  var DataSourceUploadRemoteSource = z91.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
3664
3643
  var DataSourceFigmaState = z91.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
3665
3644
  var DataSourceAutoImportMode = z91.enum(["Never", "Hourly"]);
@@ -3719,10 +3698,22 @@ var DataSourceUploadRemote = z91.object({
3719
3698
  isTokenTypeSplitEnabled: z91.boolean(),
3720
3699
  isCollectionsMigrationCompleted: z91.boolean()
3721
3700
  });
3701
+ var DataSourceStorybookRemote = z91.object({
3702
+ type: z91.literal(DataSourceRemoteType.Enum.Storybook),
3703
+ indexUrl: z91.string(),
3704
+ userUrl: z91.string(),
3705
+ ownerId: z91.string().optional(),
3706
+ lastImportedAt: z91.coerce.date().optional(),
3707
+ lastImportedSuccessfully: z91.coerce.date().optional(),
3708
+ isFailed: z91.boolean(),
3709
+ storiesCount: z91.number(),
3710
+ docsCount: z91.number()
3711
+ });
3722
3712
  var DataSourceRemote = z91.discriminatedUnion("type", [
3723
3713
  DataSourceFigmaRemote,
3724
3714
  DataSourceUploadRemote,
3725
- DataSourceTokenStudioRemote
3715
+ DataSourceTokenStudioRemote,
3716
+ DataSourceStorybookRemote
3726
3717
  ]);
3727
3718
  var DataSource = z91.object({
3728
3719
  id: z91.string(),
@@ -3808,15 +3799,11 @@ var FigmaImportBaseContext = z94.object({
3808
3799
  importWarnings: z94.record(ImportWarning.array()).default({})
3809
3800
  });
3810
3801
  var FeatureFlagsKeepAliases = z94.object({
3811
- isTypographyPropsKeepAliasesEnabled: z94.boolean().default(false),
3812
- isGradientPropsKeepAliasesEnabled: z94.boolean().default(false),
3813
- isShadowPropsKeepAliasesEnabled: z94.boolean().default(false),
3814
3802
  isNonCompatibleTypeChangesEnabled: z94.boolean().default(false),
3815
3803
  isTypographyUseFontStyleEnabled: z94.boolean().default(false)
3816
3804
  });
3817
3805
  var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
3818
3806
  sourcesWithMissingAccess: z94.array(z94.string()).default([]),
3819
- shadowOpacityOptional: z94.boolean().default(false),
3820
3807
  featureFlagsKeepAliases: FeatureFlagsKeepAliases.default({})
3821
3808
  });
3822
3809
  var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
@@ -3957,20 +3944,18 @@ var FigmaComponentImportModelPart = z99.object({
3957
3944
  parentComponentId: z99.string().optional(),
3958
3945
  componentPropertyDefinitions: FigmaComponentPropertyMap.optional(),
3959
3946
  variantPropertyValues: z99.record(z99.string()).optional(),
3960
- renderNodeId: z99.string()
3947
+ renderNodeId: z99.string(),
3948
+ svg: FigmaSvgRenderImportModel.optional()
3961
3949
  });
3962
3950
  var FigmaComponentImportModel = ImportModelBase.extend(FigmaComponentImportModelPart.shape).extend({
3963
- isAsset: z99.boolean(),
3964
- svg: FigmaSvgRenderImportModel.optional(),
3965
- origin: FigmaComponentOrigin
3951
+ origin: FigmaComponentOrigin,
3952
+ isAsset: z99.boolean()
3966
3953
  });
3967
3954
  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
3955
+ originMetadata: FigmaComponentOriginPart,
3956
+ isAsset: z99.boolean().optional()
3973
3957
  });
3958
+ var AssetImportModelInput = FigmaComponentImportModelInput;
3974
3959
 
3975
3960
  // src/dsm/import/data-source.ts
3976
3961
  import { z as z100 } from "zod";
@@ -4006,8 +3991,7 @@ function figmaFileStructureImportModelToMap(root) {
4006
3991
  }
4007
3992
  function recursiveFigmaFileStructureToMap2(node, map) {
4008
3993
  map.set(node.id, node);
4009
- for (const child of node.children)
4010
- recursiveFigmaFileStructureToMap2(child, map);
3994
+ for (const child of node.children) recursiveFigmaFileStructureToMap2(child, map);
4011
3995
  }
4012
3996
 
4013
3997
  // src/dsm/import/theme.ts
@@ -4397,7 +4381,7 @@ var FigmaNodeStructureV2 = z122.object({
4397
4381
  });
4398
4382
 
4399
4383
  // src/dsm/membership/design-system-membership.ts
4400
- import { z as z143 } from "zod";
4384
+ import { z as z144 } from "zod";
4401
4385
 
4402
4386
  // src/workspace/npm-registry-settings.ts
4403
4387
  import { z as z123 } from "zod";
@@ -4449,69 +4433,79 @@ var SsoProvider = z124.object({
4449
4433
  metadataXml: z124.string().nullish()
4450
4434
  });
4451
4435
 
4436
+ // src/workspace/untyped-data.ts
4437
+ import { z as z125 } from "zod";
4438
+ var WorkspaceUntypedData = z125.object({
4439
+ id: z125.string(),
4440
+ workspaceId: z125.string(),
4441
+ value: z125.unknown(),
4442
+ createdAt: z125.coerce.date(),
4443
+ updatedAt: z125.coerce.date()
4444
+ });
4445
+
4452
4446
  // src/workspace/user-invite.ts
4453
- import { z as z126 } from "zod";
4447
+ import { z as z127 } from "zod";
4454
4448
 
4455
4449
  // src/workspace/workspace-role.ts
4456
- import { z as z125 } from "zod";
4457
- var WorkspaceRoleSchema = z125.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
4450
+ import { z as z126 } from "zod";
4451
+ var WorkspaceRoleSchema = z126.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
4458
4452
  var WorkspaceRole = WorkspaceRoleSchema.enum;
4459
4453
 
4460
4454
  // src/workspace/user-invite.ts
4461
4455
  var MAX_MEMBERS_COUNT = 100;
4462
- var UserInvite = z126.object({
4463
- email: z126.string().email().trim().transform((value) => value.toLowerCase()),
4456
+ var UserInvite = z127.object({
4457
+ email: z127.string().email().trim().transform((value) => value.toLowerCase()),
4464
4458
  role: WorkspaceRoleSchema
4465
4459
  });
4466
- var UserInvites = z126.array(UserInvite).max(MAX_MEMBERS_COUNT);
4460
+ var UserInvites = z127.array(UserInvite).max(MAX_MEMBERS_COUNT);
4467
4461
 
4468
4462
  // src/workspace/workspace-configuration.ts
4469
- import { z as z128 } from "zod";
4463
+ import { z as z129 } from "zod";
4470
4464
 
4471
4465
  // src/workspace/workspace.ts
4472
4466
  import IPCIDR from "ip-cidr";
4473
- import { z as z127 } from "zod";
4467
+ import { z as z128 } from "zod";
4474
4468
  var isValidCIDR = (value) => {
4475
4469
  return IPCIDR.isValidAddress(value);
4476
4470
  };
4477
- var WorkspaceIpWhitelistEntry = z127.object({
4478
- isEnabled: z127.boolean(),
4479
- name: z127.string(),
4480
- range: z127.string().refine(isValidCIDR, {
4471
+ var WorkspaceIpWhitelistEntry = z128.object({
4472
+ isEnabled: z128.boolean(),
4473
+ name: z128.string(),
4474
+ range: z128.string().refine(isValidCIDR, {
4481
4475
  message: "Invalid IP CIDR"
4482
4476
  })
4483
4477
  });
4484
- var WorkspaceIpSettings = z127.object({
4485
- isEnabledForCloud: z127.boolean(),
4486
- isEnabledForDocs: z127.boolean(),
4487
- entries: z127.array(WorkspaceIpWhitelistEntry)
4478
+ var WorkspaceIpSettings = z128.object({
4479
+ isEnabledForCloud: z128.boolean(),
4480
+ isEnabledForDocs: z128.boolean(),
4481
+ entries: z128.array(WorkspaceIpWhitelistEntry)
4488
4482
  });
4489
- var WorkspaceProfile = z127.object({
4490
- name: z127.string(),
4491
- handle: z127.string(),
4492
- color: z127.string(),
4493
- avatar: nullishToOptional(z127.string()),
4483
+ var WorkspaceProfile = z128.object({
4484
+ name: z128.string(),
4485
+ handle: z128.string(),
4486
+ color: z128.string(),
4487
+ avatar: nullishToOptional(z128.string()),
4494
4488
  billingDetails: nullishToOptional(BillingDetails)
4495
4489
  });
4496
4490
  var WorkspaceProfileUpdate = WorkspaceProfile.omit({
4497
4491
  avatar: true
4498
4492
  });
4499
- var Workspace = z127.object({
4500
- id: z127.string(),
4493
+ var Workspace = z128.object({
4494
+ id: z128.string(),
4501
4495
  profile: WorkspaceProfile,
4502
4496
  subscription: Subscription,
4503
4497
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4504
4498
  sso: nullishToOptional(SsoProvider),
4505
4499
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
4506
4500
  });
4507
- var WorkspaceWithDesignSystems = z127.object({
4501
+ var WorkspaceWithDesignSystems = z128.object({
4508
4502
  workspace: Workspace,
4509
- designSystems: z127.array(DesignSystem)
4503
+ designSystems: z128.array(DesignSystem)
4510
4504
  });
4511
4505
 
4512
4506
  // src/workspace/workspace-configuration.ts
4513
- var WorkspaceConfigurationUpdate = z128.object({
4514
- id: z128.string(),
4507
+ var WorkspaceConfigurationUpdate = z129.object({
4508
+ id: z129.string(),
4515
4509
  ipWhitelist: WorkspaceIpSettings.optional(),
4516
4510
  sso: SsoProvider.optional(),
4517
4511
  npmRegistrySettings: NpmRegistryConfig.optional(),
@@ -4519,59 +4513,59 @@ var WorkspaceConfigurationUpdate = z128.object({
4519
4513
  });
4520
4514
 
4521
4515
  // src/workspace/workspace-context.ts
4522
- import { z as z129 } from "zod";
4523
- var WorkspaceContext = z129.object({
4524
- workspaceId: z129.string(),
4516
+ import { z as z130 } from "zod";
4517
+ var WorkspaceContext = z130.object({
4518
+ workspaceId: z130.string(),
4525
4519
  product: ProductCodeSchema,
4526
4520
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4527
- publicDesignSystem: z129.boolean().optional()
4521
+ publicDesignSystem: z130.boolean().optional()
4528
4522
  });
4529
4523
 
4530
4524
  // src/workspace/workspace-create.ts
4531
- import { z as z130 } from "zod";
4525
+ import { z as z131 } from "zod";
4532
4526
  var WORKSPACE_NAME_MIN_LENGTH = 2;
4533
4527
  var WORKSPACE_NAME_MAX_LENGTH = 64;
4534
4528
  var HANDLE_MIN_LENGTH = 2;
4535
4529
  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()
4530
+ var CreateWorkspaceInput = z131.object({
4531
+ name: z131.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4532
+ handle: z131.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
4539
4533
  });
4540
4534
 
4541
4535
  // 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()
4536
+ import { z as z132 } from "zod";
4537
+ var WorkspaceInvitation = z132.object({
4538
+ id: z132.string(),
4539
+ email: z132.string().email(),
4540
+ createdAt: z132.coerce.date(),
4541
+ resentAt: z132.coerce.date().nullish(),
4542
+ role: z132.nativeEnum(WorkspaceRole),
4543
+ workspaceId: z132.string(),
4544
+ invitedBy: z132.string()
4551
4545
  });
4552
4546
 
4553
4547
  // src/workspace/workspace-membership.ts
4554
- import { z as z140 } from "zod";
4548
+ import { z as z141 } from "zod";
4555
4549
 
4556
4550
  // 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")
4551
+ import { z as z133 } from "zod";
4552
+ var IntegrationAuthType = z133.union([z133.literal("OAuth2"), z133.literal("PAT")]);
4553
+ var ExternalServiceType = z133.union([
4554
+ z133.literal("figma"),
4555
+ z133.literal("github"),
4556
+ z133.literal("azure"),
4557
+ z133.literal("gitlab"),
4558
+ z133.literal("bitbucket")
4565
4559
  ]);
4566
- var IntegrationUserInfo = z132.object({
4567
- id: z132.string(),
4568
- handle: z132.string().optional(),
4569
- avatarUrl: z132.string().optional(),
4570
- email: z132.string().optional(),
4560
+ var IntegrationUserInfo = z133.object({
4561
+ id: z133.string(),
4562
+ handle: z133.string().optional(),
4563
+ avatarUrl: z133.string().optional(),
4564
+ email: z133.string().optional(),
4571
4565
  authType: IntegrationAuthType.optional(),
4572
- customUrl: z132.string().optional()
4566
+ customUrl: z133.string().optional()
4573
4567
  });
4574
- var UserLinkedIntegrations = z132.object({
4568
+ var UserLinkedIntegrations = z133.object({
4575
4569
  figma: IntegrationUserInfo.optional(),
4576
4570
  github: IntegrationUserInfo.array().optional(),
4577
4571
  azure: IntegrationUserInfo.array().optional(),
@@ -4580,38 +4574,38 @@ var UserLinkedIntegrations = z132.object({
4580
4574
  });
4581
4575
 
4582
4576
  // 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()
4577
+ import { z as z134 } from "zod";
4578
+ var UserAnalyticsCleanupSchedule = z134.object({
4579
+ userId: z134.string(),
4580
+ createdAt: z134.coerce.date(),
4581
+ deleteAt: z134.coerce.date()
4588
4582
  });
4589
4583
  var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
4590
4584
  createdAt: true
4591
4585
  });
4592
4586
 
4593
4587
  // 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()
4588
+ import { z as z135 } from "zod";
4589
+ var UserIdentity = z135.object({
4590
+ id: z135.string(),
4591
+ userId: z135.string()
4598
4592
  });
4599
4593
 
4600
4594
  // 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()
4595
+ import { z as z136 } from "zod";
4596
+ var UserMinified = z136.object({
4597
+ id: z136.string(),
4598
+ name: z136.string(),
4599
+ email: z136.string(),
4600
+ avatar: z136.string().optional()
4607
4601
  });
4608
4602
 
4609
4603
  // src/users/user-notification-settings.ts
4610
- import { z as z136 } from "zod";
4611
- var LiveblocksNotificationSettings = z136.object({
4612
- sendCommentNotificationEmails: z136.boolean()
4604
+ import { z as z137 } from "zod";
4605
+ var LiveblocksNotificationSettings = z137.object({
4606
+ sendCommentNotificationEmails: z137.boolean()
4613
4607
  });
4614
- var UserNotificationSettings = z136.object({
4608
+ var UserNotificationSettings = z137.object({
4615
4609
  liveblocksNotificationSettings: LiveblocksNotificationSettings
4616
4610
  });
4617
4611
  var defaultNotificationSettings = {
@@ -4621,11 +4615,11 @@ var defaultNotificationSettings = {
4621
4615
  };
4622
4616
 
4623
4617
  // 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([
4618
+ import { z as z138 } from "zod";
4619
+ var UserOnboardingDepartment = z138.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4620
+ var UserOnboardingJobLevel = z138.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4621
+ var UserTheme = z138.object({
4622
+ preset: z138.enum([
4629
4623
  "Custom",
4630
4624
  "Default",
4631
4625
  "HighContrast",
@@ -4636,32 +4630,32 @@ var UserTheme = z137.object({
4636
4630
  "SystemPreference",
4637
4631
  "Sepia"
4638
4632
  ]).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(),
4633
+ backgroundColor: z138.string().optional(),
4634
+ accentColor: z138.string().optional(),
4635
+ contrast: z138.number().min(16).max(100).optional(),
4636
+ isSecondaryEnabled: z138.boolean().optional(),
4637
+ secondaryBackgroundColor: z138.string().optional(),
4638
+ secondaryContrast: z138.number().min(16).max(100).optional(),
4639
+ isEditorWhite: z138.boolean().optional()
4640
+ });
4641
+ var UserOnboarding = z138.object({
4642
+ companyName: z138.string().optional(),
4643
+ numberOfPeopleInOrg: z138.string().optional(),
4644
+ numberOfPeopleInDesignTeam: z138.string().optional(),
4651
4645
  department: UserOnboardingDepartment.optional(),
4652
- jobTitle: z137.string().optional(),
4653
- phase: z137.string().optional(),
4646
+ jobTitle: z138.string().optional(),
4647
+ phase: z138.string().optional(),
4654
4648
  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(),
4649
+ designSystemName: z138.string().optional(),
4650
+ defaultDestination: z138.string().optional(),
4651
+ figmaUrl: z138.string().optional(),
4652
+ isPageDraftOnboardingFinished: z138.boolean().optional(),
4653
+ isApprovalsOnboardingFinished: z138.boolean().optional()
4654
+ });
4655
+ var UserProfile = z138.object({
4656
+ name: z138.string(),
4657
+ avatar: z138.string().optional(),
4658
+ nickname: z138.string().optional(),
4665
4659
  onboarding: UserOnboarding.optional(),
4666
4660
  theme: UserTheme.optional()
4667
4661
  });
@@ -4670,47 +4664,47 @@ var UserProfileUpdate = UserProfile.partial().omit({
4670
4664
  });
4671
4665
 
4672
4666
  // 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()
4667
+ import { z as z139 } from "zod";
4668
+ var UserTest = z139.object({
4669
+ id: z139.string(),
4670
+ email: z139.string()
4677
4671
  });
4678
4672
 
4679
4673
  // 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(),
4674
+ import { z as z140 } from "zod";
4675
+ var UserSource = z140.enum(["SignUp", "Invite", "SSO"]);
4676
+ var User = z140.object({
4677
+ id: z140.string(),
4678
+ email: z140.string(),
4679
+ createdAt: z140.coerce.date(),
4686
4680
  profile: UserProfile,
4687
- loggedOutAt: z139.coerce.date().optional(),
4688
- isProtected: z139.boolean(),
4681
+ loggedOutAt: z140.coerce.date().optional(),
4682
+ isProtected: z140.boolean(),
4689
4683
  source: UserSource.optional()
4690
4684
  });
4691
4685
 
4692
4686
  // 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),
4687
+ var WorkspaceMembership = z141.object({
4688
+ id: z141.string(),
4689
+ userId: z141.string(),
4690
+ workspaceId: z141.string(),
4691
+ workspaceRole: z141.nativeEnum(WorkspaceRole),
4698
4692
  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()
4693
+ isPrimaryOwner: z141.boolean().nullish()
4694
+ });
4695
+ var UpdateMembershipRolesInput = z141.object({
4696
+ members: z141.array(
4697
+ z141.object({
4698
+ userId: z141.string(),
4699
+ role: z141.nativeEnum(WorkspaceRole),
4700
+ isPrimaryOwner: z141.boolean().optional()
4707
4701
  })
4708
4702
  )
4709
4703
  });
4710
4704
 
4711
4705
  // src/dsm/membership/ds-role.ts
4712
- import { z as z141 } from "zod";
4713
- var DesignSystemRole = z141.enum([
4706
+ import { z as z142 } from "zod";
4707
+ var DesignSystemRole = z142.enum([
4714
4708
  WorkspaceRole.Admin,
4715
4709
  WorkspaceRole.Contributor,
4716
4710
  WorkspaceRole.Creator,
@@ -4734,46 +4728,46 @@ function workspaceRoleToDesignSystemRole(role) {
4734
4728
  }
4735
4729
 
4736
4730
  // 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(),
4731
+ import { z as z143 } from "zod";
4732
+ var DesignSystemInvitation = z143.object({
4733
+ id: z143.string(),
4734
+ designSystemId: z143.string(),
4735
+ workspaceInvitationId: z143.string(),
4742
4736
  designSystemRole: DesignSystemRole.optional(),
4743
4737
  workspaceRole: WorkspaceRoleSchema
4744
4738
  });
4745
4739
 
4746
4740
  // src/dsm/membership/design-system-membership.ts
4747
- var DesignSystemMembership = z143.object({
4748
- id: z143.string(),
4749
- userId: z143.string(),
4750
- designSystemId: z143.string(),
4741
+ var DesignSystemMembership = z144.object({
4742
+ id: z144.string(),
4743
+ userId: z144.string(),
4744
+ designSystemId: z144.string(),
4751
4745
  designSystemRole: DesignSystemRole.optional(),
4752
- workspaceMembershipId: z143.string(),
4746
+ workspaceMembershipId: z144.string(),
4753
4747
  workspaceRole: WorkspaceRoleSchema
4754
4748
  });
4755
- var DesignSystemMembers = z143.object({
4749
+ var DesignSystemMembers = z144.object({
4756
4750
  members: DesignSystemMembership.array(),
4757
4751
  invitations: DesignSystemInvitation.array()
4758
4752
  });
4759
- var DesignSystemPendingMemberInvitation = z143.object({
4760
- inviteId: z143.string(),
4753
+ var DesignSystemPendingMemberInvitation = z144.object({
4754
+ inviteId: z144.string(),
4761
4755
  /**
4762
4756
  * Role that the user will have in the design system, undefined
4763
4757
  * if it should be inherited from the workspace
4764
4758
  */
4765
4759
  designSystemRole: DesignSystemRole.optional()
4766
4760
  });
4767
- var DesignSystemUserInvitation = z143.object({
4768
- userId: z143.string(),
4761
+ var DesignSystemUserInvitation = z144.object({
4762
+ userId: z144.string(),
4769
4763
  /**
4770
4764
  * Role that the user will have in the design system, undefined
4771
4765
  * if it should be inherited from the workspace
4772
4766
  */
4773
4767
  designSystemRole: DesignSystemRole.optional()
4774
4768
  });
4775
- var DesignSystemInvite = z143.object({
4776
- email: z143.string(),
4769
+ var DesignSystemInvite = z144.object({
4770
+ email: z144.string(),
4777
4771
  workspaceRole: WorkspaceRoleSchema,
4778
4772
  /**
4779
4773
  * Role that the user will have in the design system, undefined
@@ -4781,285 +4775,318 @@ var DesignSystemInvite = z143.object({
4781
4775
  */
4782
4776
  designSystemRole: DesignSystemRole.optional()
4783
4777
  });
4784
- var DesignSystemMemberUpdate = z143.object({
4785
- userId: z143.string(),
4778
+ var DesignSystemMemberUpdate = z144.object({
4779
+ userId: z144.string(),
4786
4780
  designSystemRole: DesignSystemRole.nullable()
4787
4781
  });
4788
- var DesignSystemInviteUpdate = z143.object({
4782
+ var DesignSystemInviteUpdate = z144.object({
4789
4783
  /**
4790
4784
  * Workspace invitation id
4791
4785
  */
4792
- inviteId: z143.string(),
4786
+ inviteId: z144.string(),
4793
4787
  designSystemRole: DesignSystemRole.nullable()
4794
4788
  });
4795
- var DesignSystemMembershipUpdates = z143.object({
4789
+ var DesignSystemMembershipUpdates = z144.object({
4796
4790
  usersToInvite: DesignSystemUserInvitation.array().optional(),
4797
4791
  invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
4798
4792
  emailsToInvite: DesignSystemInvite.array().optional(),
4799
4793
  usersToUpdate: DesignSystemMemberUpdate.array().optional(),
4800
4794
  invitesToUpdate: DesignSystemInviteUpdate.array().optional(),
4801
- removeUserIds: z143.string().array().optional(),
4802
- deleteInvitationIds: z143.string().array().optional()
4795
+ removeUserIds: z144.string().array().optional(),
4796
+ deleteInvitationIds: z144.string().array().optional()
4803
4797
  });
4804
4798
 
4805
4799
  // 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")
4800
+ import { z as z145 } from "zod";
4801
+ var ElementViewBaseColumnType = z145.enum(["Name", "Description", "Value", "UpdatedAt"]);
4802
+ var ElementViewColumnType = z145.union([
4803
+ z145.literal("BaseProperty"),
4804
+ z145.literal("PropertyDefinition"),
4805
+ z145.literal("Theme")
4812
4806
  ]);
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()
4807
+ var ElementViewColumnSharedAttributes = z145.object({
4808
+ id: z145.string(),
4809
+ persistentId: z145.string(),
4810
+ elementDataViewId: z145.string(),
4811
+ sortPosition: z145.number(),
4812
+ width: z145.number()
4819
4813
  });
4820
4814
  var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
4821
- type: z144.literal("BaseProperty"),
4815
+ type: z145.literal("BaseProperty"),
4822
4816
  basePropertyType: ElementViewBaseColumnType
4823
4817
  });
4824
4818
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
4825
- type: z144.literal("PropertyDefinition"),
4826
- propertyDefinitionId: z144.string()
4819
+ type: z145.literal("PropertyDefinition"),
4820
+ propertyDefinitionId: z145.string()
4827
4821
  });
4828
4822
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
4829
- type: z144.literal("Theme"),
4830
- themeId: z144.string()
4823
+ type: z145.literal("Theme"),
4824
+ themeId: z145.string()
4831
4825
  });
4832
- var ElementViewColumn = z144.discriminatedUnion("type", [
4826
+ var ElementViewColumn = z145.discriminatedUnion("type", [
4833
4827
  ElementViewBasePropertyColumn,
4834
4828
  ElementViewPropertyDefinitionColumn,
4835
4829
  ElementViewThemeColumn
4836
4830
  ]);
4837
4831
 
4838
4832
  // 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(),
4846
- targetElementType: ElementPropertyTargetType,
4847
- isDefault: z145.boolean()
4848
- });
4849
-
4850
- // src/dsm/brand.ts
4851
4833
  import { z as z146 } from "zod";
4852
- var Brand = z146.object({
4834
+ var ElementView = z146.object({
4853
4835
  id: z146.string(),
4854
- designSystemVersionId: z146.string(),
4855
4836
  persistentId: z146.string(),
4837
+ designSystemVersionId: z146.string(),
4856
4838
  name: z146.string(),
4857
- description: z146.string()
4839
+ description: z146.string(),
4840
+ targetElementType: ElementPropertyTargetType,
4841
+ isDefault: z146.boolean()
4858
4842
  });
4859
4843
 
4860
- // src/dsm/design-system.ts
4844
+ // src/dsm/brand.ts
4861
4845
  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())
4866
- });
4867
- var DesignSystem = z147.object({
4846
+ var Brand = z147.object({
4868
4847
  id: z147.string(),
4869
- workspaceId: z147.string(),
4848
+ designSystemVersionId: z147.string(),
4849
+ persistentId: z147.string(),
4870
4850
  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()),
4851
+ description: z147.string()
4852
+ });
4853
+
4854
+ // src/dsm/design-system.ts
4855
+ import { z as z148 } from "zod";
4856
+ var DesignSystemAccessMode = z148.enum(["Open", "InviteOnly"]);
4857
+ var DesignSystemSwitcher = z148.object({
4858
+ isEnabled: z148.boolean(),
4859
+ designSystemIds: z148.array(z148.string())
4860
+ });
4861
+ var DesignSystem = z148.object({
4862
+ id: z148.string(),
4863
+ workspaceId: z148.string(),
4864
+ name: z148.string(),
4865
+ description: z148.string(),
4866
+ docExporterId: nullishToOptional(z148.string()),
4867
+ docSlug: z148.string(),
4868
+ docUserSlug: nullishToOptional(z148.string()),
4869
+ docSlugDeprecated: z148.string(),
4870
+ isMultibrand: z148.boolean(),
4871
+ docViewUrl: nullishToOptional(z148.string()),
4872
+ basePrefixes: z148.array(z148.string()),
4879
4873
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
4880
- isApprovalFeatureEnabled: z147.boolean(),
4881
- approvalRequiredForPublishing: z147.boolean(),
4874
+ isApprovalFeatureEnabled: z148.boolean(),
4875
+ approvalRequiredForPublishing: z148.boolean(),
4882
4876
  accessMode: DesignSystemAccessMode,
4883
- membersGenerated: z147.boolean(),
4884
- createdAt: z147.coerce.date(),
4885
- updatedAt: z147.coerce.date()
4877
+ membersGenerated: z148.boolean(),
4878
+ createdAt: z148.coerce.date(),
4879
+ updatedAt: z148.coerce.date()
4886
4880
  });
4887
4881
 
4888
4882
  // src/dsm/exporter-property-values-collection.ts
4889
- import { z as z148 } from "zod";
4890
- var ExporterPropertyImageValue = z148.object({
4883
+ import { z as z149 } from "zod";
4884
+ var ExporterPropertyImageValue = z149.object({
4891
4885
  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(),
4886
+ assetId: z149.string().optional(),
4887
+ assetUrl: z149.string().optional()
4888
+ });
4889
+ var ExporterConfigurationPropertyValue = z149.object({
4890
+ key: z149.string(),
4891
+ value: z149.union([
4892
+ z149.number(),
4893
+ z149.string(),
4894
+ z149.boolean(),
4901
4895
  ExporterPropertyImageValue,
4902
4896
  ColorTokenData,
4903
4897
  TypographyTokenData
4904
4898
  ])
4905
4899
  });
4906
- var ExporterPropertyValuesCollection = z148.object({
4907
- id: z148.string(),
4908
- designSystemId: z148.string(),
4909
- exporterId: z148.string(),
4910
- values: z148.array(ExporterConfigurationPropertyValue)
4900
+ var ExporterPropertyValuesCollection = z149.object({
4901
+ id: z149.string(),
4902
+ designSystemId: z149.string(),
4903
+ exporterId: z149.string(),
4904
+ values: z149.array(ExporterConfigurationPropertyValue)
4911
4905
  });
4912
4906
 
4913
4907
  // 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())
4908
+ import { z as z150 } from "zod";
4909
+ var PublishedDocPageVisitsEntry = z150.object({
4910
+ id: z150.string(),
4911
+ versionId: z150.string(),
4912
+ pagePersistentId: z150.string(),
4913
+ locale: z150.string().optional(),
4914
+ timestamp: z150.coerce.date(),
4915
+ visits: z150.number(),
4916
+ userId: nullishToOptional(z150.string()),
4917
+ anonymousId: nullishToOptional(z150.string())
4924
4918
  });
4925
4919
 
4926
4920
  // src/dsm/published-doc-page.ts
4927
- import { z as z150 } from "zod";
4921
+ import { z as z151 } from "zod";
4928
4922
  var SHORT_PERSISTENT_ID_LENGTH = 8;
4929
4923
  function tryParseShortPersistentId(url = "/") {
4930
4924
  const lastUrlPart = url.split("/").pop() || "";
4931
4925
  const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
4932
4926
  return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
4933
4927
  }
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()
4928
+ var PublishedDocPage = z151.object({
4929
+ id: z151.string(),
4930
+ publishedDocId: z151.string(),
4931
+ pageShortPersistentId: z151.string(),
4932
+ pagePersistentId: z151.string().optional(),
4933
+ pathV1: z151.string(),
4934
+ pathV2: z151.string(),
4935
+ storagePath: z151.string(),
4936
+ locale: z151.string().optional(),
4937
+ isPrivate: z151.boolean(),
4938
+ isHidden: z151.boolean(),
4939
+ createdAt: z151.coerce.date(),
4940
+ updatedAt: z151.coerce.date()
4947
4941
  });
4948
4942
 
4949
4943
  // src/dsm/published-doc.ts
4950
- import { z as z151 } from "zod";
4944
+ import { z as z152 } from "zod";
4951
4945
  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(),
4946
+ var PublishedDocEnvironment = z152.enum(publishedDocEnvironments);
4947
+ var PublishedDocsChecksums = z152.record(z152.string());
4948
+ var PublishedDocRoutingVersion = z152.enum(["1", "2"]);
4949
+ var PublishedDoc = z152.object({
4950
+ id: z152.string(),
4951
+ designSystemVersionId: z152.string(),
4952
+ createdAt: z152.coerce.date(),
4953
+ updatedAt: z152.coerce.date(),
4954
+ lastPublishedAt: z152.coerce.date(),
4955
+ isDefault: z152.boolean(),
4956
+ isPublic: z152.boolean(),
4963
4957
  environment: PublishedDocEnvironment,
4964
4958
  checksums: PublishedDocsChecksums,
4965
- storagePath: z151.string(),
4966
- wasMigrated: z151.boolean(),
4959
+ storagePath: z152.string(),
4960
+ wasMigrated: z152.boolean(),
4967
4961
  routingVersion: PublishedDocRoutingVersion,
4968
- usesLocalizations: z151.boolean(),
4969
- wasPublishedWithLocalizations: z151.boolean(),
4970
- tokenCount: z151.number(),
4971
- assetCount: z151.number()
4962
+ usesLocalizations: z152.boolean(),
4963
+ wasPublishedWithLocalizations: z152.boolean(),
4964
+ tokenCount: z152.number(),
4965
+ assetCount: z152.number()
4966
+ });
4967
+
4968
+ // src/dsm/storybook-entry.ts
4969
+ import { z as z153 } from "zod";
4970
+ var StorybookEntryOrigin = z153.object({
4971
+ id: z153.string(),
4972
+ type: z153.enum(["story", "docs"]),
4973
+ name: z153.string(),
4974
+ title: z153.string()
4975
+ // Same as 'kind' for v3
4976
+ });
4977
+ var StorybookEntry = z153.object({
4978
+ id: z153.string(),
4979
+ storyId: z153.string(),
4980
+ designSystemId: z153.string(),
4981
+ sourceId: z153.string(),
4982
+ aliases: z153.array(z153.string()).optional(),
4983
+ url: z153.string(),
4984
+ isDeleted: z153.boolean().optional(),
4985
+ origin: StorybookEntryOrigin,
4986
+ createdAt: z153.coerce.date(),
4987
+ updatedAt: z153.coerce.date()
4988
+ });
4989
+
4990
+ // src/dsm/storybook-payload.ts
4991
+ import { z as z154 } from "zod";
4992
+ var StorybookPayload = z154.object({
4993
+ id: z154.string(),
4994
+ designSystemId: z154.string(),
4995
+ sourceId: z154.string(),
4996
+ payload: z154.any(),
4997
+ createdAt: z154.coerce.date(),
4998
+ updatedAt: z154.coerce.date()
4972
4999
  });
4973
5000
 
4974
5001
  // 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()),
5002
+ import { z as z155 } from "zod";
5003
+ var DesignSystemVersion = z155.object({
5004
+ id: z155.string(),
5005
+ version: z155.string(),
5006
+ createdAt: z155.coerce.date(),
5007
+ designSystemId: z155.string(),
5008
+ name: z155.string(),
5009
+ comment: z155.string(),
5010
+ isReadonly: z155.boolean(),
5011
+ changeLog: z155.string(),
5012
+ parentId: z155.string().optional(),
5013
+ isDraftsFeatureAdopted: z155.boolean()
5014
+ });
5015
+ var VersionCreationJobStatus = z155.enum(["Success", "InProgress", "Error"]);
5016
+ var VersionCreationJob = z155.object({
5017
+ id: z155.string(),
5018
+ version: z155.string(),
5019
+ designSystemId: z155.string(),
5020
+ designSystemVersionId: nullishToOptional(z155.string()),
4994
5021
  status: VersionCreationJobStatus,
4995
- errorMessage: nullishToOptional(z152.string())
5022
+ errorMessage: nullishToOptional(z155.string())
4996
5023
  });
4997
5024
 
4998
5025
  // src/export/export-destinations.ts
4999
5026
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
5000
5027
  var BITBUCKET_MAX_LENGTH = 64;
5001
- var ExportJobDocumentationChanges = z153.object({
5002
- pagePersistentIds: z153.string().array(),
5003
- groupPersistentIds: z153.string().array()
5028
+ var ExportJobDocumentationChanges = z156.object({
5029
+ pagePersistentIds: z156.string().array(),
5030
+ groupPersistentIds: z156.string().array()
5004
5031
  });
5005
- var ExporterDestinationDocs = z153.object({
5032
+ var ExporterDestinationDocs = z156.object({
5006
5033
  environment: PublishedDocEnvironment,
5007
5034
  changes: nullishToOptional(ExportJobDocumentationChanges)
5008
5035
  });
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(),
5036
+ var GitCommonDestinationOptions = z156.object({
5037
+ branch: z156.string(),
5038
+ relativePath: nullishToOptional(z156.string()),
5039
+ purgeDirectory: nullishToOptional(z156.boolean()),
5040
+ commitAuthorName: nullishToOptional(z156.string()),
5041
+ commitAuthorEmail: nullishToOptional(z156.string()),
5042
+ commitMessage: nullishToOptional(z156.string()),
5043
+ pullRequestTitle: nullishToOptional(z156.string()),
5044
+ pullRequestDescription: nullishToOptional(z156.string())
5045
+ });
5046
+ var ExporterDestinationS3 = z156.object({});
5047
+ var ExporterDestinationGithub = z156.object({
5048
+ credentialId: z156.string().optional(),
5022
5049
  // Repository
5023
- url: z153.string(),
5050
+ url: z156.string(),
5024
5051
  // Legacy deprecated fields. Use `credentialId` instead
5025
- connectionId: nullishToOptional(z153.string()),
5026
- userId: nullishToOptional(z153.number())
5052
+ connectionId: nullishToOptional(z156.string()),
5053
+ userId: nullishToOptional(z156.number())
5027
5054
  }).extend(GitCommonDestinationOptions.shape);
5028
- var ExporterDestinationAzure = z153.object({
5029
- credentialId: z153.string().optional(),
5055
+ var ExporterDestinationAzure = z156.object({
5056
+ credentialId: z156.string().optional(),
5030
5057
  // Repository
5031
- organizationId: z153.string(),
5032
- projectId: z153.string(),
5033
- repositoryId: z153.string(),
5058
+ organizationId: z156.string(),
5059
+ projectId: z156.string(),
5060
+ repositoryId: z156.string(),
5034
5061
  // Maybe not needed
5035
- url: nullishToOptional(z153.string()),
5062
+ url: nullishToOptional(z156.string()),
5036
5063
  // Legacy deprecated fields. Use `credentialId` instead
5037
- connectionId: nullishToOptional(z153.string()),
5038
- userId: nullishToOptional(z153.number())
5064
+ connectionId: nullishToOptional(z156.string()),
5065
+ userId: nullishToOptional(z156.number())
5039
5066
  }).extend(GitCommonDestinationOptions.shape);
5040
- var ExporterDestinationGitlab = z153.object({
5041
- credentialId: z153.string().optional(),
5067
+ var ExporterDestinationGitlab = z156.object({
5068
+ credentialId: z156.string().optional(),
5042
5069
  // Repository
5043
- projectId: z153.string(),
5070
+ projectId: z156.string(),
5044
5071
  // Maybe not needed
5045
- url: nullishToOptional(z153.string()),
5072
+ url: nullishToOptional(z156.string()),
5046
5073
  // Legacy deprecated fields. Use `credentialId` instead
5047
- connectionId: nullishToOptional(z153.string()),
5048
- userId: nullishToOptional(z153.number())
5074
+ connectionId: nullishToOptional(z156.string()),
5075
+ userId: nullishToOptional(z156.number())
5049
5076
  }).extend(GitCommonDestinationOptions.shape);
5050
- var ExporterDestinationBitbucket = z153.object({
5051
- credentialId: z153.string().optional(),
5077
+ var ExporterDestinationBitbucket = z156.object({
5078
+ credentialId: z156.string().optional(),
5052
5079
  // 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()),
5080
+ workspaceSlug: z156.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5081
+ projectKey: z156.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5082
+ repoSlug: z156.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5083
+ url: nullishToOptional(z156.string()),
5057
5084
  // Legacy deprecated fields. Use `credentialId` instead
5058
- connectionId: nullishToOptional(z153.string()),
5059
- userId: nullishToOptional(z153.number())
5085
+ connectionId: nullishToOptional(z156.string()),
5086
+ userId: nullishToOptional(z156.number())
5060
5087
  }).extend(GitCommonDestinationOptions.shape);
5061
- var ExportDestinationsMap = z153.object({
5062
- webhookUrl: z153.string().optional(),
5088
+ var ExportDestinationsMap = z156.object({
5089
+ webhookUrl: z156.string().optional(),
5063
5090
  destinationSnDocs: ExporterDestinationDocs.optional(),
5064
5091
  destinationS3: ExporterDestinationS3.optional(),
5065
5092
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -5067,8 +5094,8 @@ var ExportDestinationsMap = z153.object({
5067
5094
  destinationGitlab: ExporterDestinationGitlab.optional(),
5068
5095
  destinationBitbucket: ExporterDestinationBitbucket.optional()
5069
5096
  });
5070
- var ExportDestinationsMapUpdate = z153.object({
5071
- webhookUrl: z153.string().nullish(),
5097
+ var ExportDestinationsMapUpdate = z156.object({
5098
+ webhookUrl: z156.string().nullish(),
5072
5099
  destinationSnDocs: ExporterDestinationDocs.nullish(),
5073
5100
  destinationS3: ExporterDestinationS3.nullish(),
5074
5101
  destinationGithub: ExporterDestinationGithub.nullish(),
@@ -5078,115 +5105,115 @@ var ExportDestinationsMapUpdate = z153.object({
5078
5105
  });
5079
5106
 
5080
5107
  // 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(),
5108
+ var PipelineEventType = z157.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
5109
+ var PipelineDestinationGitType = z157.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
5110
+ var PipelineDestinationExtraType = z157.enum(["WebhookUrl", "S3", "Documentation"]);
5111
+ var PipelineDestinationType = z157.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
5112
+ var Pipeline = z157.object({
5113
+ id: z157.string(),
5114
+ name: z157.string(),
5088
5115
  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(),
5116
+ isEnabled: z157.boolean(),
5117
+ workspaceId: z157.string(),
5118
+ designSystemId: z157.string(),
5119
+ exporterId: z157.string(),
5120
+ brandPersistentId: z157.string().optional(),
5121
+ themePersistentId: z157.string().optional(),
5122
+ themePersistentIds: z157.string().array().optional(),
5096
5123
  exporterPropertyValues: ExporterPropertyValueMap.optional(),
5097
- isExporterDeprecated: z154.boolean(),
5124
+ isExporterDeprecated: z157.boolean(),
5098
5125
  // Destinations
5099
5126
  ...ExportDestinationsMap.shape
5100
5127
  });
5101
5128
 
5102
5129
  // 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()
5130
+ var ExportJobDump = z158.object({
5131
+ id: z158.string(),
5132
+ createdAt: z158.coerce.date(),
5133
+ finishedAt: z158.coerce.date(),
5134
+ exportArtefacts: z158.string()
5108
5135
  });
5109
- var CodeIntegrationDump = z155.object({
5136
+ var CodeIntegrationDump = z158.object({
5110
5137
  exporters: Exporter.array(),
5111
5138
  pipelines: Pipeline.array(),
5112
5139
  exportJobs: ExportJobDump.array()
5113
5140
  });
5114
5141
 
5115
5142
  // src/data-dumps/design-system-dump.ts
5116
- import { z as z162 } from "zod";
5143
+ import { z as z165 } from "zod";
5117
5144
 
5118
5145
  // src/data-dumps/design-system-version-dump.ts
5119
- import { z as z161 } from "zod";
5146
+ import { z as z164 } from "zod";
5120
5147
 
5121
5148
  // src/liveblocks/rooms/design-system-version-room.ts
5122
- import { z as z156 } from "zod";
5149
+ import { z as z159 } from "zod";
5123
5150
  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),
5151
+ designSystemVersionId: z159.string(),
5152
+ liveblocksId: z159.string()
5153
+ });
5154
+ var DesignSystemVersionRoomInternalSettings = z159.object({
5155
+ routingVersion: z159.string(),
5156
+ isDraftFeatureAdopted: z159.boolean(),
5157
+ isApprovalFeatureEnabled: z159.boolean(),
5158
+ approvalRequiredForPublishing: z159.boolean()
5159
+ });
5160
+ var DesignSystemVersionRoomInitialState = z159.object({
5161
+ pages: z159.array(DocumentationPageV2),
5162
+ groups: z159.array(ElementGroup),
5163
+ pageSnapshots: z159.array(DocumentationPageSnapshot),
5164
+ groupSnapshots: z159.array(ElementGroupSnapshot),
5165
+ pageApprovals: z159.array(DocumentationPageApproval),
5139
5166
  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())
5167
+ pageHashes: z159.record(z159.string()).optional()
5168
+ });
5169
+ var DesignSystemVersionRoomUpdate = z159.object({
5170
+ pages: z159.array(DocumentationPageV2),
5171
+ groups: z159.array(ElementGroup),
5172
+ pageIdsToDelete: z159.array(z159.string()),
5173
+ groupIdsToDelete: z159.array(z159.string()),
5174
+ pageSnapshots: z159.array(DocumentationPageSnapshot),
5175
+ groupSnapshots: z159.array(ElementGroupSnapshot),
5176
+ pageSnapshotIdsToDelete: z159.array(z159.string()),
5177
+ groupSnapshotIdsToDelete: z159.array(z159.string()),
5178
+ pageHashesToUpdate: z159.record(z159.string(), z159.string()),
5179
+ pageApprovals: z159.array(DocumentationPageApproval),
5180
+ pageApprovalIdsToDelete: z159.array(z159.string()),
5181
+ executedTransactionIds: z159.array(z159.string())
5155
5182
  });
5156
5183
 
5157
5184
  // src/liveblocks/rooms/documentation-page-room.ts
5158
- import { z as z157 } from "zod";
5185
+ import { z as z160 } from "zod";
5159
5186
  var DocumentationPageRoom = Entity.extend({
5160
- designSystemVersionId: z157.string(),
5161
- documentationPageId: z157.string(),
5162
- liveblocksId: z157.string(),
5163
- isDirty: z157.boolean()
5187
+ designSystemVersionId: z160.string(),
5188
+ documentationPageId: z160.string(),
5189
+ liveblocksId: z160.string(),
5190
+ isDirty: z160.boolean()
5164
5191
  });
5165
- var DocumentationPageRoomState = z157.object({
5166
- pageItems: z157.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
5192
+ var DocumentationPageRoomState = z160.object({
5193
+ pageItems: z160.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
5167
5194
  itemConfiguration: DocumentationItemConfigurationV2
5168
5195
  });
5169
- var DocumentationPageRoomRoomUpdate = z157.object({
5196
+ var DocumentationPageRoomRoomUpdate = z160.object({
5170
5197
  page: DocumentationPageV2,
5171
5198
  pageParent: ElementGroup
5172
5199
  });
5173
5200
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
5174
- pageItems: z157.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
5175
- blockDefinitions: z157.array(PageBlockDefinition)
5201
+ pageItems: z160.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
5202
+ blockDefinitions: z160.array(PageBlockDefinition)
5176
5203
  });
5177
- var RestoredDocumentationPage = z157.object({
5204
+ var RestoredDocumentationPage = z160.object({
5178
5205
  page: DocumentationPageV2,
5179
5206
  pageParent: ElementGroup,
5180
5207
  pageContent: DocumentationPageContentData,
5181
- contentHash: z157.string()
5208
+ contentHash: z160.string()
5182
5209
  });
5183
- var RestoredDocumentationGroup = z157.object({
5210
+ var RestoredDocumentationGroup = z160.object({
5184
5211
  group: ElementGroup,
5185
5212
  parent: ElementGroup
5186
5213
  });
5187
5214
 
5188
5215
  // src/liveblocks/rooms/room-type.ts
5189
- import { z as z158 } from "zod";
5216
+ import { z as z161 } from "zod";
5190
5217
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
5191
5218
  RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
5192
5219
  RoomTypeEnum2["DocumentationPage"] = "doc-page";
@@ -5194,36 +5221,36 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
5194
5221
  RoomTypeEnum2["Workspace"] = "workspace";
5195
5222
  return RoomTypeEnum2;
5196
5223
  })(RoomTypeEnum || {});
5197
- var RoomTypeSchema = z158.nativeEnum(RoomTypeEnum);
5224
+ var RoomTypeSchema = z161.nativeEnum(RoomTypeEnum);
5198
5225
  var RoomType = RoomTypeSchema.enum;
5199
5226
 
5200
5227
  // src/liveblocks/rooms/workspace-room.ts
5201
- import { z as z159 } from "zod";
5228
+ import { z as z162 } from "zod";
5202
5229
  var WorkspaceRoom = Entity.extend({
5203
- workspaceId: z159.string(),
5204
- liveblocksId: z159.string()
5230
+ workspaceId: z162.string(),
5231
+ liveblocksId: z162.string()
5205
5232
  });
5206
5233
 
5207
5234
  // src/data-dumps/published-docs-dump.ts
5208
- import { z as z160 } from "zod";
5209
- var PublishedDocsDump = z160.object({
5235
+ import { z as z163 } from "zod";
5236
+ var PublishedDocsDump = z163.object({
5210
5237
  documentation: PublishedDoc,
5211
5238
  pages: PublishedDocPage.array()
5212
5239
  });
5213
5240
 
5214
5241
  // src/data-dumps/design-system-version-dump.ts
5215
- var DocumentationThreadDump = z161.object({
5242
+ var DocumentationThreadDump = z164.object({
5216
5243
  thread: DocumentationCommentThread,
5217
5244
  comments: DocumentationComment.array()
5218
5245
  });
5219
- var DocumentationPageRoomDump = z161.object({
5246
+ var DocumentationPageRoomDump = z164.object({
5220
5247
  room: DocumentationPageRoom,
5221
5248
  threads: DocumentationThreadDump.array()
5222
5249
  });
5223
- var DesignSystemVersionMultiplayerDump = z161.object({
5250
+ var DesignSystemVersionMultiplayerDump = z164.object({
5224
5251
  documentationPages: DocumentationPageRoomDump.array()
5225
5252
  });
5226
- var DesignSystemVersionDump = z161.object({
5253
+ var DesignSystemVersionDump = z164.object({
5227
5254
  version: DesignSystemVersion,
5228
5255
  brands: Brand.array(),
5229
5256
  elements: DesignElement.array(),
@@ -5238,7 +5265,7 @@ var DesignSystemVersionDump = z161.object({
5238
5265
  });
5239
5266
 
5240
5267
  // src/data-dumps/design-system-dump.ts
5241
- var DesignSystemDump = z162.object({
5268
+ var DesignSystemDump = z165.object({
5242
5269
  designSystem: DesignSystem,
5243
5270
  dataSources: DataSource.array(),
5244
5271
  versions: DesignSystemVersionDump.array(),
@@ -5247,50 +5274,50 @@ var DesignSystemDump = z162.object({
5247
5274
  });
5248
5275
 
5249
5276
  // src/data-dumps/user-data-dump.ts
5250
- import { z as z165 } from "zod";
5277
+ import { z as z168 } from "zod";
5251
5278
 
5252
5279
  // src/data-dumps/workspace-dump.ts
5253
- import { z as z164 } from "zod";
5280
+ import { z as z167 } from "zod";
5254
5281
 
5255
5282
  // 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(),
5283
+ import { z as z166 } from "zod";
5284
+ var IntegrationDesignSystem = z166.object({
5285
+ designSystemId: z166.string(),
5286
+ brandId: z166.string(),
5287
+ title: z166.string().optional(),
5288
+ userId: z166.string().optional(),
5289
+ date: z166.coerce.date().optional()
5290
+ });
5291
+ var IntegrationCredentialsType = z166.enum(["OAuth2", "PAT"]);
5292
+ var IntegrationCredentialsState = z166.enum(["Active", "Inactive"]);
5293
+ var IntegrationCredentialsProfile = z166.object({
5294
+ id: nullishToOptional(z166.string()),
5295
+ email: nullishToOptional(z166.string()),
5296
+ handle: nullishToOptional(z166.string()),
5297
+ type: nullishToOptional(z166.string()),
5298
+ avatarUrl: nullishToOptional(z166.string()),
5299
+ organization: nullishToOptional(z166.string()),
5300
+ collection: nullishToOptional(z166.string())
5301
+ });
5302
+ var IntegrationCredentials = z166.object({
5303
+ id: z166.string(),
5277
5304
  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(),
5305
+ integrationId: z166.string(),
5306
+ accessToken: z166.string(),
5307
+ userId: z166.string(),
5308
+ createdAt: z166.coerce.date(),
5309
+ refreshToken: z166.string().optional(),
5310
+ tokenName: z166.string().optional(),
5311
+ expiresAt: z166.coerce.date().optional(),
5312
+ refreshedAt: z166.coerce.date().optional(),
5313
+ username: z166.string().optional(),
5314
+ appInstallationId: z166.string().optional(),
5288
5315
  profile: IntegrationCredentialsProfile.optional(),
5289
- customUrl: z163.string().optional(),
5316
+ customUrl: z166.string().optional(),
5290
5317
  state: IntegrationCredentialsState,
5291
5318
  user: UserMinified.optional()
5292
5319
  });
5293
- var ExtendedIntegrationType = z163.enum([
5320
+ var ExtendedIntegrationType = z166.enum([
5294
5321
  "Figma",
5295
5322
  "Github",
5296
5323
  "Gitlab",
@@ -5301,28 +5328,27 @@ var ExtendedIntegrationType = z163.enum([
5301
5328
  ]);
5302
5329
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
5303
5330
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
5304
- var Integration = z163.object({
5305
- id: z163.string(),
5306
- workspaceId: z163.string(),
5331
+ var Integration = z166.object({
5332
+ id: z166.string(),
5333
+ workspaceId: z166.string(),
5307
5334
  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(),
5335
+ createdAt: z166.coerce.date(),
5336
+ integrationCredentials: z166.array(IntegrationCredentials).optional()
5337
+ });
5338
+ var IntegrationToken = z166.object({
5339
+ access_token: z166.string(),
5340
+ refresh_token: z166.string().optional(),
5341
+ expires_in: z166.union([z166.number().optional(), z166.string().optional()]),
5342
+ token_type: z166.string().optional(),
5343
+ token_name: z166.string().optional(),
5344
+ token_azure_organization_name: z166.string().optional(),
5318
5345
  // Azure Cloud PAT only
5319
- token_azure_collection_name: z163.string().optional(),
5346
+ token_azure_collection_name: z166.string().optional(),
5320
5347
  // Azure Server PAT only
5321
- token_bitbucket_username: z163.string().optional(),
5348
+ token_bitbucket_username: z166.string().optional(),
5322
5349
  // Bitbucket only
5323
- custom_url: z163.string().optional().transform((value) => {
5324
- if (!value?.trim())
5325
- return void 0;
5350
+ custom_url: z166.string().optional().transform((value) => {
5351
+ if (!value?.trim()) return void 0;
5326
5352
  return formatCustomUrl(value);
5327
5353
  })
5328
5354
  }).refine((data) => {
@@ -5358,7 +5384,7 @@ function formatCustomUrl(url) {
5358
5384
  }
5359
5385
 
5360
5386
  // src/data-dumps/workspace-dump.ts
5361
- var WorkspaceDump = z164.object({
5387
+ var WorkspaceDump = z167.object({
5362
5388
  workspace: Workspace,
5363
5389
  designSystems: DesignSystemDump.array(),
5364
5390
  codeIntegration: CodeIntegrationDump,
@@ -5366,124 +5392,124 @@ var WorkspaceDump = z164.object({
5366
5392
  });
5367
5393
 
5368
5394
  // src/data-dumps/user-data-dump.ts
5369
- var UserDump = z165.object({
5395
+ var UserDump = z168.object({
5370
5396
  user: User,
5371
5397
  workspaces: WorkspaceDump.array()
5372
5398
  });
5373
5399
 
5374
5400
  // 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()
5401
+ import { z as z169 } from "zod";
5402
+ var NpmProxyToken = z169.object({
5403
+ access: z169.string(),
5404
+ expiresAt: z169.number()
5379
5405
  });
5380
- var SessionData = z166.object({
5381
- returnToUrl: z166.string().optional(),
5406
+ var SessionData = z169.object({
5407
+ returnToUrl: z169.string().optional(),
5382
5408
  npmProxyToken: NpmProxyToken.optional()
5383
5409
  });
5384
- var Session = z166.object({
5385
- id: z166.string(),
5386
- expiresAt: z166.coerce.date(),
5387
- userId: z166.string().nullable(),
5388
- anonymousId: z166.string().nullable(),
5410
+ var Session = z169.object({
5411
+ id: z169.string(),
5412
+ expiresAt: z169.coerce.date(),
5413
+ userId: z169.string().nullable(),
5414
+ anonymousId: z169.string().nullable(),
5389
5415
  data: SessionData
5390
5416
  });
5391
- var AuthTokens = z166.object({
5392
- access: z166.string(),
5393
- refresh: z166.string()
5417
+ var AuthTokens = z169.object({
5418
+ access: z169.string(),
5419
+ refresh: z169.string()
5394
5420
  });
5395
- var UserSession = z166.object({
5421
+ var UserSession = z169.object({
5396
5422
  session: Session,
5397
5423
  user: User.nullable()
5398
5424
  });
5399
5425
 
5400
5426
  // src/emails/design-system-invite.ts
5401
- import { z as z167 } from "zod";
5402
- var DesignSystemInviteEmailRecipient = z167.object({
5403
- email: z167.string(),
5427
+ import { z as z170 } from "zod";
5428
+ var DesignSystemInviteEmailRecipient = z170.object({
5429
+ email: z170.string(),
5404
5430
  role: WorkspaceRoleSchema
5405
5431
  });
5406
- var DesignSystemInviteEmailData = z167.object({
5432
+ var DesignSystemInviteEmailData = z170.object({
5407
5433
  workspace: Workspace,
5408
5434
  designSystem: DesignSystem,
5409
5435
  invitedBy: User,
5410
- documentationDomain: z167.string().optional()
5436
+ documentationDomain: z170.string().optional()
5411
5437
  });
5412
5438
 
5413
5439
  // src/emails/workspace-invite.ts
5414
- import { z as z168 } from "zod";
5415
- var WorkspaceInviteEmailRecipient = z168.object({
5416
- email: z168.string(),
5440
+ import { z as z171 } from "zod";
5441
+ var WorkspaceInviteEmailRecipient = z171.object({
5442
+ email: z171.string(),
5417
5443
  role: WorkspaceRoleSchema
5418
5444
  });
5419
- var WorkspaceInviteEmailData = z168.object({
5445
+ var WorkspaceInviteEmailData = z171.object({
5420
5446
  workspace: Workspace,
5421
5447
  invitedBy: User,
5422
- documentationDomain: z168.string().optional()
5448
+ documentationDomain: z171.string().optional()
5423
5449
  });
5424
5450
 
5425
5451
  // src/events/base.ts
5426
- import { z as z171 } from "zod";
5452
+ import { z as z174 } from "zod";
5427
5453
 
5428
5454
  // 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()
5455
+ import { z as z172 } from "zod";
5456
+ var EventDataSourceImported = z172.object({
5457
+ type: z172.literal("DataSourceImported"),
5458
+ workspaceId: z172.string(),
5459
+ designSystemId: z172.string()
5434
5460
  });
5435
5461
 
5436
5462
  // 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()
5463
+ import { z as z173 } from "zod";
5464
+ var EventVersionReleased = z173.object({
5465
+ type: z173.literal("DesignSystemVersionReleased"),
5466
+ workspaceId: z173.string(),
5467
+ designSystemId: z173.string(),
5468
+ versionId: z173.string()
5443
5469
  });
5444
5470
 
5445
5471
  // src/events/base.ts
5446
- var Event = z171.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
5472
+ var Event = z174.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
5447
5473
 
5448
5474
  // 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(),
5475
+ import { z as z175 } from "zod";
5476
+ var ExportJobDocumentationContext = z175.object({
5477
+ isSingleVersionDocs: z175.boolean(),
5478
+ versionSlug: z175.string(),
5453
5479
  environment: PublishedDocEnvironment
5454
5480
  });
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(),
5481
+ var ExportJobContext = z175.object({
5482
+ apiUrl: z175.string(),
5483
+ accessToken: z175.string(),
5484
+ designSystemId: z175.string(),
5485
+ designSystemName: z175.string(),
5486
+ exporterId: z175.string(),
5487
+ versionId: z175.string(),
5488
+ brandId: z175.string().optional(),
5489
+ themeId: z175.string().optional(),
5490
+ themePersistentIds: z175.string().array().optional(),
5491
+ previewMode: z175.boolean().optional(),
5492
+ exporterName: z175.string(),
5467
5493
  documentation: ExportJobDocumentationContext.optional()
5468
5494
  });
5469
- var ExportJobExporterConfiguration = z172.object({
5470
- exporterPackageUrl: z172.string(),
5495
+ var ExportJobExporterConfiguration = z175.object({
5496
+ exporterPackageUrl: z175.string(),
5471
5497
  exporterPropertyValues: ExporterConfigurationPropertyValue.array(),
5472
5498
  exporterPropertyValuesV2: ExporterPropertyValueMap.optional()
5473
5499
  });
5474
5500
 
5475
5501
  // 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()
5502
+ import { z as z176 } from "zod";
5503
+ var ExporterFunctionPayload = z176.object({
5504
+ exportJobId: z176.string(),
5505
+ exportContextId: z176.string(),
5506
+ designSystemId: z176.string(),
5507
+ workspaceId: z176.string()
5482
5508
  });
5483
5509
 
5484
5510
  // src/export/export-jobs.ts
5485
- import { z as z174 } from "zod";
5486
- var ExportJobDestinationType = z174.enum([
5511
+ import { z as z177 } from "zod";
5512
+ var ExportJobDestinationType = z177.enum([
5487
5513
  "s3",
5488
5514
  "webhookUrl",
5489
5515
  "github",
@@ -5492,30 +5518,30 @@ var ExportJobDestinationType = z174.enum([
5492
5518
  "gitlab",
5493
5519
  "bitbucket"
5494
5520
  ]);
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(),
5521
+ var ExportJobStatus = z177.enum(["InProgress", "Success", "Failed", "Timeout"]);
5522
+ var ExportJobLogEntryType = z177.enum(["success", "info", "warning", "error", "user"]);
5523
+ var ExportJobLogEntry = z177.object({
5524
+ id: z177.string().optional(),
5525
+ time: z177.coerce.date(),
5500
5526
  type: ExportJobLogEntryType,
5501
- message: z174.string()
5527
+ message: z177.string()
5502
5528
  });
5503
- var ExportJobPullRequestDestinationResult = z174.object({
5504
- pullRequestUrl: z174.string()
5529
+ var ExportJobPullRequestDestinationResult = z177.object({
5530
+ pullRequestUrl: z177.string()
5505
5531
  });
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())
5532
+ var ExportJobS3DestinationResult = z177.object({
5533
+ bucket: z177.string(),
5534
+ urlPrefix: z177.string().optional(),
5535
+ path: z177.string(),
5536
+ files: z177.array(z177.string()),
5537
+ url: nullishToOptional(z177.string()),
5538
+ urls: nullishToOptional(z177.string().array())
5513
5539
  });
5514
- var ExportJobDocsDestinationResult = z174.object({
5515
- url: z174.string()
5540
+ var ExportJobDocsDestinationResult = z177.object({
5541
+ url: z177.string()
5516
5542
  });
5517
- var ExportJobResult = z174.object({
5518
- error: z174.string().optional(),
5543
+ var ExportJobResult = z177.object({
5544
+ error: z177.string().optional(),
5519
5545
  s3: nullishToOptional(ExportJobS3DestinationResult),
5520
5546
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
5521
5547
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -5524,24 +5550,24 @@ var ExportJobResult = z174.object({
5524
5550
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
5525
5551
  logs: nullishToOptional(ExportJobLogEntry.array())
5526
5552
  });
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(),
5553
+ var ExportJob = z177.object({
5554
+ id: z177.string(),
5555
+ createdAt: z177.coerce.date(),
5556
+ finishedAt: z177.coerce.date().optional(),
5557
+ designSystemId: z177.string(),
5558
+ designSystemVersionId: z177.string(),
5559
+ workspaceId: z177.string(),
5560
+ scheduleId: z177.string().nullish(),
5561
+ exporterId: z177.string(),
5562
+ brandId: z177.string().optional(),
5563
+ themeId: z177.string().optional(),
5564
+ themePersistentIds: z177.string().array().optional(),
5565
+ estimatedExecutionTime: z177.number().optional(),
5540
5566
  status: ExportJobStatus,
5541
5567
  result: ExportJobResult.optional(),
5542
- createdByUserId: z174.string().optional(),
5568
+ createdByUserId: z177.string().optional(),
5543
5569
  exporterPropertyValues: ExporterPropertyValueMap.optional(),
5544
- previewMode: z174.boolean().optional(),
5570
+ previewMode: z177.boolean().optional(),
5545
5571
  // Destinations
5546
5572
  ...ExportDestinationsMap.shape
5547
5573
  });
@@ -5555,38 +5581,37 @@ var ExportJobFindByFilter = ExportJob.pick({
5555
5581
  themeId: true,
5556
5582
  brandId: true
5557
5583
  }).extend({
5558
- destinations: z174.array(ExportJobDestinationType),
5584
+ destinations: z177.array(ExportJobDestinationType),
5559
5585
  docsEnvironment: PublishedDocEnvironment
5560
5586
  }).partial();
5561
5587
 
5562
5588
  // 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(),
5589
+ import { z as z178 } from "zod";
5590
+ var ExporterType2 = z178.enum(["documentation", "code"]);
5591
+ var ListExporterQuery = z178.object({
5592
+ limit: z178.number().optional(),
5593
+ offset: z178.number().optional(),
5568
5594
  type: ExporterType2.optional(),
5569
- search: z175.string().optional()
5595
+ search: z178.string().optional()
5570
5596
  });
5571
5597
 
5572
5598
  // src/export/exporter-workspace-membership-role.ts
5573
- import { z as z176 } from "zod";
5574
- var ExporterWorkspaceMembershipRole = z176.enum(["Owner", "OwnerArchived", "User"]);
5599
+ import { z as z179 } from "zod";
5600
+ var ExporterWorkspaceMembershipRole = z179.enum(["Owner", "OwnerArchived", "User"]);
5575
5601
 
5576
5602
  // 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(),
5603
+ import { z as z180 } from "zod";
5604
+ var ExporterWorkspaceMembership = z180.object({
5605
+ id: z180.string(),
5606
+ workspaceId: z180.string(),
5607
+ exporterId: z180.string(),
5582
5608
  role: ExporterWorkspaceMembershipRole
5583
5609
  });
5584
5610
 
5585
5611
  // src/feature-flags/feature-flags.ts
5586
- import { z as z178 } from "zod";
5587
- var FlaggedFeature = z178.enum([
5612
+ import { z as z181 } from "zod";
5613
+ var FlaggedFeature = z181.enum([
5588
5614
  "FigmaImporterV2",
5589
- "ShadowOpacityOptional",
5590
5615
  "DisableImporter",
5591
5616
  "VariablesOrder",
5592
5617
  "TypographyPropsKeepAliases",
@@ -5595,20 +5620,20 @@ var FlaggedFeature = z178.enum([
5595
5620
  "NonCompatibleTypeChanges",
5596
5621
  "TypographyUseFontStyle"
5597
5622
  ]);
5598
- var FeatureFlagMap = z178.record(FlaggedFeature, z178.boolean());
5599
- var FeatureFlag = z178.object({
5600
- id: z178.string(),
5623
+ var FeatureFlagMap = z181.record(FlaggedFeature, z181.boolean());
5624
+ var FeatureFlag = z181.object({
5625
+ id: z181.string(),
5601
5626
  feature: FlaggedFeature,
5602
- createdAt: z178.coerce.date(),
5603
- enabled: z178.boolean(),
5604
- designSystemId: z178.string().optional()
5627
+ createdAt: z181.coerce.date(),
5628
+ enabled: z181.boolean(),
5629
+ designSystemId: z181.string().optional()
5605
5630
  });
5606
5631
 
5607
5632
  // src/integrations/external-oauth-request.ts
5608
- import { z as z180 } from "zod";
5633
+ import { z as z183 } from "zod";
5609
5634
 
5610
5635
  // src/integrations/oauth-providers.ts
5611
- import { z as z179 } from "zod";
5636
+ import { z as z182 } from "zod";
5612
5637
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
5613
5638
  OAuthProviderNames2["Figma"] = "figma";
5614
5639
  OAuthProviderNames2["Azure"] = "azure";
@@ -5617,128 +5642,128 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
5617
5642
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
5618
5643
  return OAuthProviderNames2;
5619
5644
  })(OAuthProviderNames || {});
5620
- var OAuthProviderSchema = z179.nativeEnum(OAuthProviderNames);
5645
+ var OAuthProviderSchema = z182.nativeEnum(OAuthProviderNames);
5621
5646
  var OAuthProvider = OAuthProviderSchema.enum;
5622
5647
 
5623
5648
  // src/integrations/external-oauth-request.ts
5624
- var ExternalOAuthRequest = z180.object({
5625
- id: z180.string(),
5649
+ var ExternalOAuthRequest = z183.object({
5650
+ id: z183.string(),
5626
5651
  provider: OAuthProviderSchema,
5627
- userId: z180.string(),
5628
- state: z180.string(),
5629
- createdAt: z180.coerce.date()
5652
+ userId: z183.string(),
5653
+ state: z183.string(),
5654
+ createdAt: z183.coerce.date()
5630
5655
  });
5631
5656
 
5632
5657
  // src/integrations/git.ts
5633
- import { z as z181 } from "zod";
5634
- var GitObjectsQuery = z181.object({
5635
- organization: z181.string().optional(),
5658
+ import { z as z184 } from "zod";
5659
+ var GitObjectsQuery = z184.object({
5660
+ organization: z184.string().optional(),
5636
5661
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
5637
- project: z181.string().optional(),
5662
+ project: z184.string().optional(),
5638
5663
  // Only for Bitbucket and Azure
5639
- repository: z181.string().optional(),
5664
+ repository: z184.string().optional(),
5640
5665
  // For all providers. For Gitlab, it's called "project".
5641
- branch: z181.string().optional(),
5666
+ branch: z184.string().optional(),
5642
5667
  // For all providers.
5643
- user: z181.string().optional()
5668
+ user: z184.string().optional()
5644
5669
  // Gitlab user
5645
5670
  });
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(),
5671
+ var GitOrganization = z184.object({
5672
+ id: z184.string(),
5673
+ name: z184.string(),
5674
+ url: z184.string(),
5675
+ slug: z184.string()
5676
+ });
5677
+ var GitProject = z184.object({
5678
+ id: z184.string(),
5679
+ name: z184.string(),
5680
+ url: z184.string(),
5681
+ slug: z184.string()
5682
+ });
5683
+ var GitRepository = z184.object({
5684
+ id: z184.string(),
5685
+ name: z184.string(),
5686
+ url: z184.string(),
5687
+ slug: z184.string(),
5663
5688
  /**
5664
5689
  * Can be undefined when:
5665
5690
  * - there are no branches in the repository yet
5666
5691
  * - Git provider doesn't expose this information on a repository via their API
5667
5692
  */
5668
- defaultBranch: z181.string().optional()
5693
+ defaultBranch: z184.string().optional()
5669
5694
  });
5670
- var GitBranch = z181.object({
5671
- name: z181.string(),
5672
- lastCommitId: z181.string()
5695
+ var GitBranch = z184.object({
5696
+ name: z184.string(),
5697
+ lastCommitId: z184.string()
5673
5698
  });
5674
5699
 
5675
5700
  // src/integrations/oauth-token.ts
5676
- import { z as z182 } from "zod";
5677
- var IntegrationTokenSchemaOld = z182.object({
5678
- id: z182.string(),
5701
+ import { z as z185 } from "zod";
5702
+ var IntegrationTokenSchemaOld = z185.object({
5703
+ id: z185.string(),
5679
5704
  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()
5705
+ scope: z185.string(),
5706
+ userId: z185.string(),
5707
+ accessToken: z185.string(),
5708
+ refreshToken: z185.string(),
5709
+ expiresAt: z185.coerce.date(),
5710
+ externalUserId: z185.string().nullish()
5686
5711
  });
5687
5712
 
5688
5713
  // 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(),
5714
+ import { z as z186 } from "zod";
5715
+ var WorkspaceOAuthRequestSchema = z186.object({
5716
+ id: z186.string(),
5717
+ workspaceId: z186.string(),
5693
5718
  provider: OAuthProviderSchema,
5694
- userId: z183.string(),
5695
- createdAt: z183.coerce.date()
5719
+ userId: z186.string(),
5720
+ createdAt: z186.coerce.date()
5696
5721
  });
5697
5722
 
5698
5723
  // src/npm/npm-package.ts
5699
- import { z as z184 } from "zod";
5700
- var AnyRecord = z184.record(z184.any());
5724
+ import { z as z187 } from "zod";
5725
+ var AnyRecord = z187.record(z187.any());
5701
5726
  var NpmPackageVersionDist = AnyRecord.and(
5702
- z184.object({
5703
- tarball: z184.string()
5727
+ z187.object({
5728
+ tarball: z187.string()
5704
5729
  })
5705
5730
  );
5706
5731
  var NpmPackageVersion = AnyRecord.and(
5707
- z184.object({
5732
+ z187.object({
5708
5733
  dist: NpmPackageVersionDist
5709
5734
  })
5710
5735
  );
5711
5736
  var NpmPackage = AnyRecord.and(
5712
- z184.object({
5713
- _id: z184.string(),
5714
- name: z184.string(),
5737
+ z187.object({
5738
+ _id: z187.string(),
5739
+ name: z187.string(),
5715
5740
  // e.g. "latest": "1.2.3"
5716
- "dist-tags": z184.record(z184.string(), z184.string()),
5741
+ "dist-tags": z187.record(z187.string(), z187.string()),
5717
5742
  // "1.2.3": {...}
5718
- versions: z184.record(NpmPackageVersion)
5743
+ versions: z187.record(NpmPackageVersion)
5719
5744
  })
5720
5745
  );
5721
5746
 
5722
5747
  // src/npm/npm-proxy-token-payload.ts
5723
- import { z as z185 } from "zod";
5724
- var NpmProxyTokenPayload = z185.object({
5725
- npmProxyRegistryConfigId: z185.string()
5748
+ import { z as z188 } from "zod";
5749
+ var NpmProxyTokenPayload = z188.object({
5750
+ npmProxyRegistryConfigId: z188.string()
5726
5751
  });
5727
5752
 
5728
5753
  // 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(),
5754
+ import { z as z189 } from "zod";
5755
+ var PersonalAccessToken = z189.object({
5756
+ id: z189.string(),
5757
+ userId: z189.string(),
5758
+ workspaceId: z189.string().optional(),
5759
+ designSystemId: z189.string().optional(),
5735
5760
  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()
5761
+ name: z189.string(),
5762
+ hidden: z189.boolean(),
5763
+ token: z189.string(),
5764
+ scope: z189.string().optional(),
5765
+ createdAt: z189.coerce.date(),
5766
+ expireAt: z189.coerce.date().optional()
5742
5767
  });
5743
5768
  export {
5744
5769
  Address,
@@ -5808,6 +5833,7 @@ export {
5808
5833
  DataSourceRemote,
5809
5834
  DataSourceRemoteType,
5810
5835
  DataSourceStats,
5836
+ DataSourceStorybookRemote,
5811
5837
  DataSourceTokenStudioRemote,
5812
5838
  DataSourceUploadImportMetadata,
5813
5839
  DataSourceUploadRemote,
@@ -6320,6 +6346,9 @@ export {
6320
6346
  SpaceUnit,
6321
6347
  SpaceValue,
6322
6348
  SsoProvider,
6349
+ StorybookEntry,
6350
+ StorybookEntryOrigin,
6351
+ StorybookPayload,
6323
6352
  StringTokenData,
6324
6353
  StringValue,
6325
6354
  StripeSubscriptionStatus,
@@ -6393,6 +6422,7 @@ export {
6393
6422
  WorkspaceRole,
6394
6423
  WorkspaceRoleSchema,
6395
6424
  WorkspaceRoom,
6425
+ WorkspaceUntypedData,
6396
6426
  WorkspaceWithDesignSystems,
6397
6427
  ZIndexTokenData,
6398
6428
  ZIndexUnit,