@supernova-studio/model 1.90.6 → 1.91.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -360,7 +360,7 @@ var CustomDomain = z17.object({
360
360
  });
361
361
 
362
362
  // src/data-dumps/code-integration-dump.ts
363
- import { z as z181 } from "zod";
363
+ import { z as z183 } from "zod";
364
364
 
365
365
  // src/export/exporter.ts
366
366
  import { z as z21 } from "zod";
@@ -535,10 +535,10 @@ var Exporter = z21.object({
535
535
  });
536
536
 
537
537
  // src/export/pipeline.ts
538
- import { z as z180 } from "zod";
538
+ import { z as z182 } from "zod";
539
539
 
540
540
  // src/export/export-destinations.ts
541
- import { z as z179 } from "zod";
541
+ import { z as z181 } from "zod";
542
542
 
543
543
  // src/dsm/assets/asset-dynamo-record.ts
544
544
  import { z as z22 } from "zod";
@@ -4602,7 +4602,7 @@ function pickLatestGroupSnapshots(snapshots) {
4602
4602
  return pickLatestSnapshots(snapshots, (s) => s.group.id);
4603
4603
  }
4604
4604
 
4605
- // src/dsm/figma-exporter/figma-exporter.ts
4605
+ // src/dsm/figma-exporter/figma-exporter-styles.ts
4606
4606
  import { z as z124 } from "zod";
4607
4607
  var FigmaExporterProcessedStylesSchema = z124.object({
4608
4608
  display: z124.union([
@@ -4714,7 +4714,6 @@ var FigmaExporterProcessedStylesSchema = z124.object({
4714
4714
  backgroundSize: z124.string().optional(),
4715
4715
  backgroundPosition: z124.string().optional(),
4716
4716
  backgroundRepeat: z124.string().optional(),
4717
- // Typed as string to support multiple background blend modes
4718
4717
  backgroundBlendMode: z124.string().optional(),
4719
4718
  backgroundClip: z124.union([z124.literal("border-box"), z124.literal("padding-box"), z124.literal("content-box"), z124.literal("text")]).optional(),
4720
4719
  backgroundOrigin: z124.union([z124.literal("border-box"), z124.literal("padding-box"), z124.literal("content-box")]).optional(),
@@ -4831,98 +4830,124 @@ var FigmaExporterProcessedStylesSchema = z124.object({
4831
4830
  ]).optional(),
4832
4831
  visibility: z124.union([z124.literal("visible"), z124.literal("hidden"), z124.literal("collapse")]).optional()
4833
4832
  });
4834
- var FigmaExporterDesignNodeTypeSchema = z124.union([
4835
- z124.literal("FRAME"),
4836
- z124.literal("TEXT"),
4837
- z124.literal("SVG"),
4838
- z124.literal("IMAGE"),
4839
- z124.literal("COMPONENT_INSTANCE"),
4840
- z124.literal("MASK_GROUP")
4833
+
4834
+ // src/dsm/figma-exporter/figma-exporter-text-content.ts
4835
+ import { z as z125 } from "zod";
4836
+ var textSpanSchema = z125.object({
4837
+ text: z125.string(),
4838
+ styles: FigmaExporterProcessedStylesSchema.partial()
4839
+ });
4840
+ var textParagraphBlockSchema = z125.object({
4841
+ type: z125.literal("paragraph"),
4842
+ spans: z125.array(textSpanSchema)
4843
+ });
4844
+ var textListItemSchema = z125.lazy(
4845
+ () => z125.object({
4846
+ spans: z125.array(textSpanSchema),
4847
+ children: z125.array(textBlockSchema)
4848
+ })
4849
+ );
4850
+ var textListBlockSchema = z125.object({
4851
+ type: z125.literal("list"),
4852
+ kind: z125.union([z125.literal("ordered"), z125.literal("unordered")]),
4853
+ items: z125.array(textListItemSchema)
4854
+ });
4855
+ var textBlockSchema = z125.lazy(
4856
+ () => z125.union([textParagraphBlockSchema, textListBlockSchema])
4857
+ );
4858
+
4859
+ // src/dsm/figma-exporter/figma-exporter.ts
4860
+ import { z as z126 } from "zod";
4861
+ var FigmaExporterDesignNodeTypeSchema = z126.union([
4862
+ z126.literal("FRAME"),
4863
+ z126.literal("TEXT"),
4864
+ z126.literal("SVG"),
4865
+ z126.literal("IMAGE"),
4866
+ z126.literal("COMPONENT_INSTANCE"),
4867
+ z126.literal("MASK_GROUP")
4841
4868
  ]);
4842
- var baseDesignNodeObjectSchema = z124.object({
4843
- id: z124.string(),
4844
- name: z124.string(),
4869
+ var baseDesignNodeObjectSchema = z126.object({
4870
+ id: z126.string(),
4871
+ name: z126.string(),
4845
4872
  type: FigmaExporterDesignNodeTypeSchema,
4846
- parentId: z124.string().nullable(),
4873
+ parentId: z126.string().nullable(),
4847
4874
  styles: FigmaExporterProcessedStylesSchema.partial()
4848
4875
  });
4849
4876
  var frameNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4850
- type: z124.literal("FRAME")
4877
+ type: z126.literal("FRAME")
4851
4878
  });
4852
4879
  var textNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4853
- type: z124.literal("TEXT"),
4854
- characters: z124.string(),
4855
- lineTypes: z124.array(z124.union([z124.literal("NONE"), z124.literal("ORDERED"), z124.literal("UNORDERED")])).optional(),
4856
- lineIndentations: z124.array(z124.number()).optional()
4880
+ type: z126.literal("TEXT"),
4881
+ content: z126.array(textBlockSchema)
4857
4882
  });
4858
4883
  var svgNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4859
- type: z124.literal("SVG"),
4860
- svgString: z124.string()
4884
+ type: z126.literal("SVG"),
4885
+ svgString: z126.string()
4861
4886
  });
4862
4887
  var imageNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4863
- type: z124.literal("IMAGE"),
4864
- src: z124.string()
4888
+ type: z126.literal("IMAGE"),
4889
+ src: z126.string()
4865
4890
  });
4866
4891
  var componentInstanceObjectSchema = baseDesignNodeObjectSchema.extend({
4867
- type: z124.literal("COMPONENT_INSTANCE"),
4868
- componentSetName: z124.string(),
4869
- componentSetDescription: z124.string(),
4870
- componentName: z124.string(),
4871
- componentDescription: z124.string(),
4872
- props: z124.record(z124.string(), z124.union([z124.string(), z124.boolean()]))
4873
- });
4874
- var svgMaskDefinitionSchema = z124.object({
4875
- type: z124.literal("SVG_MASK"),
4876
- svgString: z124.string(),
4877
- width: z124.number(),
4878
- height: z124.number()
4879
- });
4880
- var rectClipMaskDefinitionSchema = z124.object({
4881
- type: z124.literal("RECT_CLIP"),
4882
- width: z124.number(),
4883
- height: z124.number(),
4884
- borderRadius: z124.string().optional()
4885
- });
4886
- var ellipseClipMaskDefinitionSchema = z124.object({
4887
- type: z124.literal("ELLIPSE_CLIP"),
4888
- width: z124.number(),
4889
- height: z124.number()
4890
- });
4891
- var FigmaExporterMaskDefinitionSchema = z124.union([
4892
+ type: z126.literal("COMPONENT_INSTANCE"),
4893
+ componentSetName: z126.string(),
4894
+ componentSetDescription: z126.string(),
4895
+ componentName: z126.string(),
4896
+ componentDescription: z126.string(),
4897
+ props: z126.record(z126.string(), z126.union([z126.string(), z126.boolean()]))
4898
+ });
4899
+ var svgMaskDefinitionSchema = z126.object({
4900
+ type: z126.literal("SVG_MASK"),
4901
+ svgString: z126.string(),
4902
+ width: z126.number(),
4903
+ height: z126.number()
4904
+ });
4905
+ var rectClipMaskDefinitionSchema = z126.object({
4906
+ type: z126.literal("RECT_CLIP"),
4907
+ width: z126.number(),
4908
+ height: z126.number(),
4909
+ borderRadius: z126.string().optional()
4910
+ });
4911
+ var ellipseClipMaskDefinitionSchema = z126.object({
4912
+ type: z126.literal("ELLIPSE_CLIP"),
4913
+ width: z126.number(),
4914
+ height: z126.number()
4915
+ });
4916
+ var FigmaExporterMaskDefinitionSchema = z126.union([
4892
4917
  svgMaskDefinitionSchema,
4893
4918
  rectClipMaskDefinitionSchema,
4894
4919
  ellipseClipMaskDefinitionSchema
4895
4920
  ]);
4896
4921
  var maskGroupNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4897
- type: z124.literal("MASK_GROUP"),
4898
- maskType: z124.union([z124.literal("ALPHA"), z124.literal("VECTOR")]),
4899
- maskSourceId: z124.string(),
4900
- maskSourceName: z124.string(),
4922
+ type: z126.literal("MASK_GROUP"),
4923
+ maskType: z126.union([z126.literal("ALPHA"), z126.literal("VECTOR")]),
4924
+ maskSourceId: z126.string(),
4925
+ maskSourceName: z126.string(),
4901
4926
  maskDefinition: FigmaExporterMaskDefinitionSchema
4902
4927
  });
4903
- var frameNodeSchema = z124.lazy(
4928
+ var frameNodeSchema = z126.lazy(
4904
4929
  () => frameNodeObjectSchema.extend({
4905
4930
  children: FigmaExporterAnyDesignNodeSchema.array()
4906
4931
  })
4907
4932
  );
4908
4933
  var textNodeSchema = textNodeObjectSchema;
4909
- var svgNodeSchema = z124.lazy(
4934
+ var svgNodeSchema = z126.lazy(
4910
4935
  () => svgNodeObjectSchema.extend({
4911
4936
  children: FigmaExporterAnyDesignNodeSchema.array()
4912
4937
  })
4913
4938
  );
4914
4939
  var imageNodeSchema = imageNodeObjectSchema;
4915
- var componentInstanceNodeSchema = z124.lazy(
4940
+ var componentInstanceNodeSchema = z126.lazy(
4916
4941
  () => componentInstanceObjectSchema.extend({
4917
4942
  children: FigmaExporterAnyDesignNodeSchema.array()
4918
4943
  })
4919
4944
  );
4920
- var maskGroupNodeSchema = z124.lazy(
4945
+ var maskGroupNodeSchema = z126.lazy(
4921
4946
  () => maskGroupNodeObjectSchema.extend({
4922
4947
  children: FigmaExporterAnyDesignNodeSchema.array()
4923
4948
  })
4924
4949
  );
4925
- var FigmaExporterAnyDesignNodeSchema = z124.union([
4950
+ var FigmaExporterAnyDesignNodeSchema = z126.union([
4926
4951
  frameNodeSchema,
4927
4952
  textNodeSchema,
4928
4953
  svgNodeSchema,
@@ -4932,112 +4957,112 @@ var FigmaExporterAnyDesignNodeSchema = z124.union([
4932
4957
  ]);
4933
4958
 
4934
4959
  // src/dsm/figma-node-renderer/renderer-payload.ts
4935
- import { z as z125 } from "zod";
4936
- var FigmaNodeRendererPayload = z125.object({
4937
- designSystemId: z125.string(),
4938
- versionId: z125.string(),
4939
- figmaNodePersistentIds: z125.string().array()
4960
+ import { z as z127 } from "zod";
4961
+ var FigmaNodeRendererPayload = z127.object({
4962
+ designSystemId: z127.string(),
4963
+ versionId: z127.string(),
4964
+ figmaNodePersistentIds: z127.string().array()
4940
4965
  });
4941
4966
 
4942
4967
  // src/dsm/figma-node-structures/structure-data.ts
4943
- import { z as z126 } from "zod";
4944
- var FigmaNodeStructureDataV2 = z126.object({
4968
+ import { z as z128 } from "zod";
4969
+ var FigmaNodeStructureDataV2 = z128.object({
4945
4970
  rootNode: FigmaFileStructureNodeImportModel,
4946
- assetsInFile: z126.object({
4947
- components: z126.number(),
4948
- componentSets: z126.number(),
4949
- frames: z126.number()
4971
+ assetsInFile: z128.object({
4972
+ components: z128.number(),
4973
+ componentSets: z128.number(),
4974
+ frames: z128.number()
4950
4975
  })
4951
4976
  });
4952
4977
 
4953
4978
  // src/dsm/figma-node-structures/structure.ts
4954
- import { z as z127 } from "zod";
4955
- var FigmaNodeStructureStateV2 = z127.enum(["InProgress", "Success", "Failed"]);
4956
- var FigmaNodeStructureV2 = z127.object({
4957
- id: z127.string(),
4958
- designSystemId: z127.string(),
4959
- sourceId: z127.string(),
4960
- storagePath: z127.string().optional(),
4961
- createdAt: z127.coerce.date(),
4962
- updatedAt: z127.coerce.date(),
4979
+ import { z as z129 } from "zod";
4980
+ var FigmaNodeStructureStateV2 = z129.enum(["InProgress", "Success", "Failed"]);
4981
+ var FigmaNodeStructureV2 = z129.object({
4982
+ id: z129.string(),
4983
+ designSystemId: z129.string(),
4984
+ sourceId: z129.string(),
4985
+ storagePath: z129.string().optional(),
4986
+ createdAt: z129.coerce.date(),
4987
+ updatedAt: z129.coerce.date(),
4963
4988
  importState: FigmaNodeStructureStateV2,
4964
- error: z127.string().optional(),
4965
- chunkSize: z127.number().optional(),
4989
+ error: z129.string().optional(),
4990
+ chunkSize: z129.number().optional(),
4966
4991
  // TODO Artem: remove after migration
4967
- isFromLegacyStorage: z127.boolean()
4992
+ isFromLegacyStorage: z129.boolean()
4968
4993
  });
4969
4994
 
4970
4995
  // src/dsm/membership/design-system-membership.ts
4971
- import { z as z166 } from "zod";
4996
+ import { z as z168 } from "zod";
4972
4997
 
4973
4998
  // src/workspace/npm-registry-settings.ts
4974
- import { z as z128 } from "zod";
4975
- var NpmRegistryAuthType = z128.enum(["Basic", "Bearer", "None", "Custom"]);
4976
- var NpmRegistryType = z128.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4977
- var NpmRegistryBasicAuthConfig = z128.object({
4978
- authType: z128.literal(NpmRegistryAuthType.Enum.Basic),
4979
- username: z128.string(),
4980
- password: z128.string()
4981
- });
4982
- var NpmRegistryBearerAuthConfig = z128.object({
4983
- authType: z128.literal(NpmRegistryAuthType.Enum.Bearer),
4984
- accessToken: z128.string()
4985
- });
4986
- var NpmRegistryNoAuthConfig = z128.object({
4987
- authType: z128.literal(NpmRegistryAuthType.Enum.None)
4988
- });
4989
- var NpmRegistrCustomAuthConfig = z128.object({
4990
- authType: z128.literal(NpmRegistryAuthType.Enum.Custom),
4991
- authHeaderName: z128.string(),
4992
- authHeaderValue: z128.string()
4993
- });
4994
- var NpmRegistryAuthConfig = z128.discriminatedUnion("authType", [
4999
+ import { z as z130 } from "zod";
5000
+ var NpmRegistryAuthType = z130.enum(["Basic", "Bearer", "None", "Custom"]);
5001
+ var NpmRegistryType = z130.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
5002
+ var NpmRegistryBasicAuthConfig = z130.object({
5003
+ authType: z130.literal(NpmRegistryAuthType.Enum.Basic),
5004
+ username: z130.string(),
5005
+ password: z130.string()
5006
+ });
5007
+ var NpmRegistryBearerAuthConfig = z130.object({
5008
+ authType: z130.literal(NpmRegistryAuthType.Enum.Bearer),
5009
+ accessToken: z130.string()
5010
+ });
5011
+ var NpmRegistryNoAuthConfig = z130.object({
5012
+ authType: z130.literal(NpmRegistryAuthType.Enum.None)
5013
+ });
5014
+ var NpmRegistrCustomAuthConfig = z130.object({
5015
+ authType: z130.literal(NpmRegistryAuthType.Enum.Custom),
5016
+ authHeaderName: z130.string(),
5017
+ authHeaderValue: z130.string()
5018
+ });
5019
+ var NpmRegistryAuthConfig = z130.discriminatedUnion("authType", [
4995
5020
  NpmRegistryBasicAuthConfig,
4996
5021
  NpmRegistryBearerAuthConfig,
4997
5022
  NpmRegistryNoAuthConfig,
4998
5023
  NpmRegistrCustomAuthConfig
4999
5024
  ]);
5000
- var NpmRegistryConfigBase = z128.object({
5025
+ var NpmRegistryConfigBase = z130.object({
5001
5026
  registryType: NpmRegistryType,
5002
- enabledScopes: z128.array(z128.string()),
5003
- customRegistryUrl: z128.string().optional(),
5004
- bypassProxy: z128.boolean().default(false),
5005
- npmProxyRegistryConfigId: z128.string().optional(),
5006
- npmProxyVersion: z128.number().optional()
5027
+ enabledScopes: z130.array(z130.string()),
5028
+ customRegistryUrl: z130.string().optional(),
5029
+ bypassProxy: z130.boolean().default(false),
5030
+ npmProxyRegistryConfigId: z130.string().optional(),
5031
+ npmProxyVersion: z130.number().optional()
5007
5032
  });
5008
5033
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
5009
5034
 
5010
5035
  // src/workspace/sso-provider.ts
5011
- import { z as z129 } from "zod";
5012
- var SsoProvider = z129.object({
5013
- providerId: z129.string(),
5014
- defaultAutoInviteValue: z129.boolean(),
5015
- autoInviteDomains: z129.record(z129.string(), z129.boolean()),
5016
- skipDocsSupernovaLogin: z129.boolean(),
5017
- areInvitesDisabled: z129.boolean(),
5018
- isTestMode: z129.boolean(),
5019
- emailDomains: z129.array(z129.string()),
5020
- metadataXml: z129.string().nullish()
5036
+ import { z as z131 } from "zod";
5037
+ var SsoProvider = z131.object({
5038
+ providerId: z131.string(),
5039
+ defaultAutoInviteValue: z131.boolean(),
5040
+ autoInviteDomains: z131.record(z131.string(), z131.boolean()),
5041
+ skipDocsSupernovaLogin: z131.boolean(),
5042
+ areInvitesDisabled: z131.boolean(),
5043
+ isTestMode: z131.boolean(),
5044
+ emailDomains: z131.array(z131.string()),
5045
+ metadataXml: z131.string().nullish()
5021
5046
  });
5022
5047
 
5023
5048
  // src/workspace/untyped-data.ts
5024
- import { z as z130 } from "zod";
5025
- var WorkspaceUntypedData = z130.object({
5026
- id: z130.string(),
5027
- workspaceId: z130.string(),
5028
- value: z130.unknown(),
5029
- createdAt: z130.coerce.date(),
5030
- updatedAt: z130.coerce.date()
5049
+ import { z as z132 } from "zod";
5050
+ var WorkspaceUntypedData = z132.object({
5051
+ id: z132.string(),
5052
+ workspaceId: z132.string(),
5053
+ value: z132.unknown(),
5054
+ createdAt: z132.coerce.date(),
5055
+ updatedAt: z132.coerce.date()
5031
5056
  });
5032
5057
 
5033
5058
  // src/workspace/user-invite.ts
5034
- import { z as z132 } from "zod";
5059
+ import { z as z134 } from "zod";
5035
5060
 
5036
5061
  // src/workspace/workspace-role.ts
5037
- import { z as z131 } from "zod";
5038
- var WorkspaceRoleSchema = z131.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
5062
+ import { z as z133 } from "zod";
5063
+ var WorkspaceRoleSchema = z133.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
5039
5064
  var WorkspaceRole = WorkspaceRoleSchema.enum;
5040
- var WorkspaceSeatType = z131.enum(["Full", "Builder", "None"]);
5065
+ var WorkspaceSeatType = z133.enum(["Full", "Builder", "None"]);
5041
5066
  function deriveWorkspaceSeatTypeFromRole(role) {
5042
5067
  switch (role) {
5043
5068
  case "Owner":
@@ -5078,109 +5103,109 @@ function getAllowedRolesSetForSeatType(seatType) {
5078
5103
 
5079
5104
  // src/workspace/user-invite.ts
5080
5105
  var MAX_MEMBERS_COUNT = 100;
5081
- var UserInvite = z132.object({
5082
- email: z132.string().email().trim().transform((value) => value.toLowerCase()),
5106
+ var UserInvite = z134.object({
5107
+ email: z134.string().email().trim().transform((value) => value.toLowerCase()),
5083
5108
  role: WorkspaceRoleSchema
5084
5109
  });
5085
- var UserInvites = z132.array(UserInvite).max(MAX_MEMBERS_COUNT);
5110
+ var UserInvites = z134.array(UserInvite).max(MAX_MEMBERS_COUNT);
5086
5111
 
5087
5112
  // src/workspace/workspace-configuration.ts
5088
- import { z as z159 } from "zod";
5113
+ import { z as z161 } from "zod";
5089
5114
 
5090
5115
  // src/workspace/workspace.ts
5091
5116
  import IPCIDR from "ip-cidr";
5092
- import { z as z158 } from "zod";
5117
+ import { z as z160 } from "zod";
5093
5118
 
5094
5119
  // src/forge/agent.ts
5095
- import { z as z133 } from "zod";
5096
- var ForgeAvatarBuilder = z133.object({
5097
- headType: z133.string(),
5098
- hairType: z133.string(),
5099
- accessory1Type: z133.string(),
5100
- accessory2Type: z133.string()
5101
- });
5102
- var ForgeAgent = z133.object({
5103
- avatar: z133.union([z133.string(), ForgeAvatarBuilder]),
5104
- avatarUrl: z133.string().optional(),
5105
- behavior: z133.enum(["Coder", "Writer", "Designer"]),
5106
- id: z133.string(),
5107
- name: z133.string(),
5108
- personality: z133.enum(["Neutral", "Assertive", "Crazy"]),
5109
- projectId: z133.string()
5120
+ import { z as z135 } from "zod";
5121
+ var ForgeAvatarBuilder = z135.object({
5122
+ headType: z135.string(),
5123
+ hairType: z135.string(),
5124
+ accessory1Type: z135.string(),
5125
+ accessory2Type: z135.string()
5126
+ });
5127
+ var ForgeAgent = z135.object({
5128
+ avatar: z135.union([z135.string(), ForgeAvatarBuilder]),
5129
+ avatarUrl: z135.string().optional(),
5130
+ behavior: z135.enum(["Coder", "Writer", "Designer"]),
5131
+ id: z135.string(),
5132
+ name: z135.string(),
5133
+ personality: z135.enum(["Neutral", "Assertive", "Crazy"]),
5134
+ projectId: z135.string()
5110
5135
  });
5111
5136
 
5112
5137
  // src/forge/artifact.ts
5113
- import { z as z134 } from "zod";
5114
- var Artifact = z134.object({
5115
- id: z134.string(),
5116
- createdAt: z134.coerce.date(),
5117
- projectIterationId: z134.string()
5138
+ import { z as z136 } from "zod";
5139
+ var Artifact = z136.object({
5140
+ id: z136.string(),
5141
+ createdAt: z136.coerce.date(),
5142
+ projectIterationId: z136.string()
5118
5143
  });
5119
5144
  var ForgeFileArtifact = Artifact.extend({
5120
- type: z134.enum(["file/text", "file/pdf", "file/image"]),
5121
- fileName: z134.string(),
5122
- uploadedFileUrl: z134.string()
5145
+ type: z136.enum(["file/text", "file/pdf", "file/image"]),
5146
+ fileName: z136.string(),
5147
+ uploadedFileUrl: z136.string()
5123
5148
  });
5124
5149
  var ForgeFigmaArtifact = Artifact.extend({
5125
- type: z134.literal("figma/node"),
5126
- figmaFileUrl: z134.string(),
5127
- figmaNodeId: z134.string(),
5128
- figmaFileName: z134.string().optional(),
5129
- previewUrl: z134.string().optional()
5150
+ type: z136.literal("figma/node"),
5151
+ figmaFileUrl: z136.string(),
5152
+ figmaNodeId: z136.string(),
5153
+ figmaFileName: z136.string().optional(),
5154
+ previewUrl: z136.string().optional()
5130
5155
  });
5131
5156
  var ForgeSpecArtifact = Artifact.extend({
5132
- type: z134.literal("spec"),
5133
- fileName: z134.string(),
5134
- yjsDocId: z134.string(),
5135
- markdownText: z134.string()
5136
- });
5137
- var ForgeBuildArtifactFiles = z134.array(
5138
- z134.object({
5139
- path: z134.string(),
5140
- content: z134.string(),
5141
- isVisibleToUser: z134.boolean().optional()
5157
+ type: z136.literal("spec"),
5158
+ fileName: z136.string(),
5159
+ yjsDocId: z136.string(),
5160
+ markdownText: z136.string()
5161
+ });
5162
+ var ForgeBuildArtifactFiles = z136.array(
5163
+ z136.object({
5164
+ path: z136.string(),
5165
+ content: z136.string(),
5166
+ isVisibleToUser: z136.boolean().optional()
5142
5167
  })
5143
5168
  );
5144
- var ForgeBuildArtifactEnvironment = z134.object({
5145
- dependencies: z134.record(z134.string())
5169
+ var ForgeBuildArtifactEnvironment = z136.object({
5170
+ dependencies: z136.record(z136.string())
5146
5171
  });
5147
5172
  var ForgeBuildArtifact = Artifact.extend({
5148
- type: z134.literal("build"),
5149
- participantId: z134.string(),
5173
+ type: z136.literal("build"),
5174
+ participantId: z136.string(),
5150
5175
  files: ForgeBuildArtifactFiles,
5151
5176
  environment: ForgeBuildArtifactEnvironment
5152
5177
  });
5153
- var ForgeArtifact = z134.union([ForgeBuildArtifact, ForgeSpecArtifact, ForgeFigmaArtifact, ForgeFileArtifact]);
5178
+ var ForgeArtifact = z136.union([ForgeBuildArtifact, ForgeSpecArtifact, ForgeFigmaArtifact, ForgeFileArtifact]);
5154
5179
 
5155
5180
  // src/forge/id.ts
5156
- import { z as z135 } from "zod";
5157
- var Id = z135.string().uuid();
5181
+ import { z as z137 } from "zod";
5182
+ var Id = z137.string().uuid();
5158
5183
 
5159
5184
  // src/forge/iteration-message.ts
5160
- import { z as z145 } from "zod";
5185
+ import { z as z147 } from "zod";
5161
5186
 
5162
5187
  // src/forge/participant.ts
5163
- import { z as z144 } from "zod";
5188
+ import { z as z146 } from "zod";
5164
5189
 
5165
5190
  // src/users/linked-integrations.ts
5166
- import { z as z136 } from "zod";
5167
- var IntegrationAuthType = z136.union([z136.literal("OAuth2"), z136.literal("PAT")]);
5168
- var ExternalServiceType = z136.union([
5169
- z136.literal("figma"),
5170
- z136.literal("github"),
5171
- z136.literal("azure"),
5172
- z136.literal("gitlab"),
5173
- z136.literal("bitbucket")
5191
+ import { z as z138 } from "zod";
5192
+ var IntegrationAuthType = z138.union([z138.literal("OAuth2"), z138.literal("PAT")]);
5193
+ var ExternalServiceType = z138.union([
5194
+ z138.literal("figma"),
5195
+ z138.literal("github"),
5196
+ z138.literal("azure"),
5197
+ z138.literal("gitlab"),
5198
+ z138.literal("bitbucket")
5174
5199
  ]);
5175
- var IntegrationUserInfo = z136.object({
5176
- id: z136.string(),
5177
- handle: z136.string().optional(),
5178
- avatarUrl: z136.string().optional(),
5179
- email: z136.string().optional(),
5200
+ var IntegrationUserInfo = z138.object({
5201
+ id: z138.string(),
5202
+ handle: z138.string().optional(),
5203
+ avatarUrl: z138.string().optional(),
5204
+ email: z138.string().optional(),
5180
5205
  authType: IntegrationAuthType.optional(),
5181
- customUrl: z136.string().optional()
5206
+ customUrl: z138.string().optional()
5182
5207
  });
5183
- var UserLinkedIntegrations = z136.object({
5208
+ var UserLinkedIntegrations = z138.object({
5184
5209
  figma: IntegrationUserInfo.optional(),
5185
5210
  github: IntegrationUserInfo.array().optional(),
5186
5211
  azure: IntegrationUserInfo.array().optional(),
@@ -5189,49 +5214,49 @@ var UserLinkedIntegrations = z136.object({
5189
5214
  });
5190
5215
 
5191
5216
  // src/users/user-analytics-cleanup-schedule.ts
5192
- import { z as z137 } from "zod";
5193
- var UserAnalyticsCleanupSchedule = z137.object({
5194
- userId: z137.string(),
5195
- createdAt: z137.coerce.date(),
5196
- deleteAt: z137.coerce.date()
5217
+ import { z as z139 } from "zod";
5218
+ var UserAnalyticsCleanupSchedule = z139.object({
5219
+ userId: z139.string(),
5220
+ createdAt: z139.coerce.date(),
5221
+ deleteAt: z139.coerce.date()
5197
5222
  });
5198
5223
  var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
5199
5224
  createdAt: true
5200
5225
  });
5201
5226
 
5202
5227
  // src/users/user-identity.ts
5203
- import { z as z138 } from "zod";
5204
- var UserIdentity = z138.object({
5205
- id: z138.string(),
5206
- userId: z138.string()
5228
+ import { z as z140 } from "zod";
5229
+ var UserIdentity = z140.object({
5230
+ id: z140.string(),
5231
+ userId: z140.string()
5207
5232
  });
5208
5233
 
5209
5234
  // src/users/user-minified.ts
5210
- import { z as z139 } from "zod";
5211
- var UserMinified = z139.object({
5212
- id: z139.string(),
5213
- name: z139.string(),
5214
- email: z139.string(),
5215
- avatar: z139.string().optional()
5235
+ import { z as z141 } from "zod";
5236
+ var UserMinified = z141.object({
5237
+ id: z141.string(),
5238
+ name: z141.string(),
5239
+ email: z141.string(),
5240
+ avatar: z141.string().optional()
5216
5241
  });
5217
5242
 
5218
5243
  // src/users/user-notification-settings.ts
5219
- import { z as z140 } from "zod";
5220
- var LiveblocksNotificationSettings = z140.object({
5221
- sendCommentNotificationEmails: z140.boolean()
5244
+ import { z as z142 } from "zod";
5245
+ var LiveblocksNotificationSettings = z142.object({
5246
+ sendCommentNotificationEmails: z142.boolean()
5222
5247
  });
5223
- var NotificationType = z140.enum([
5248
+ var NotificationType = z142.enum([
5224
5249
  "DesignDocumentComment",
5225
5250
  "ChatMention",
5226
5251
  "ProjectDocumentComment",
5227
5252
  "ProjectInvitation"
5228
5253
  ]);
5229
- var NotificationChannel = z140.enum(["Email", "InApp"]);
5230
- var NotificationSettingOptions = z140.object({
5231
- enabled: z140.boolean(),
5232
- email: z140.boolean()
5254
+ var NotificationChannel = z142.enum(["Email", "InApp"]);
5255
+ var NotificationSettingOptions = z142.object({
5256
+ enabled: z142.boolean(),
5257
+ email: z142.boolean()
5233
5258
  });
5234
- var NotificationSettings = z140.object({
5259
+ var NotificationSettings = z142.object({
5235
5260
  [NotificationType.enum.ChatMention]: NotificationSettingOptions,
5236
5261
  [NotificationType.enum.ProjectDocumentComment]: NotificationSettingOptions,
5237
5262
  [NotificationType.enum.ProjectInvitation]: NotificationSettingOptions,
@@ -5240,7 +5265,7 @@ var NotificationSettings = z140.object({
5240
5265
  })
5241
5266
  });
5242
5267
  var UserNotificationSettings = NotificationSettings.merge(
5243
- z140.object({
5268
+ z142.object({
5244
5269
  /**
5245
5270
  * @deprecated Use granular notification settings instead.
5246
5271
  */
@@ -5258,9 +5283,9 @@ var defaultNotificationSettings = {
5258
5283
  };
5259
5284
 
5260
5285
  // src/users/user-profile.ts
5261
- import { z as z141 } from "zod";
5262
- var UserOnboardingDepartment = z141.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
5263
- var UserOnboardingJobLevel = z141.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
5286
+ import { z as z143 } from "zod";
5287
+ var UserOnboardingDepartment = z143.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
5288
+ var UserOnboardingJobLevel = z143.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
5264
5289
  var userThemePresets = [
5265
5290
  "Custom",
5266
5291
  "Default",
@@ -5273,16 +5298,16 @@ var userThemePresets = [
5273
5298
  "Sepia"
5274
5299
  ];
5275
5300
  var portalThemePresets = [...userThemePresets, "DefaultPortal"];
5276
- var PortalThemePreset = z141.enum(portalThemePresets);
5277
- var UserThemePreset = z141.enum(userThemePresets);
5278
- var BaseTheme = z141.object({
5279
- backgroundColor: z141.string().optional(),
5280
- accentColor: z141.string().optional(),
5281
- contrast: z141.number().min(16).max(100).optional(),
5282
- isSecondaryEnabled: z141.boolean().optional(),
5283
- secondaryBackgroundColor: z141.string().optional(),
5284
- secondaryContrast: z141.number().min(16).max(100).optional(),
5285
- isEditorWhite: z141.boolean().optional()
5301
+ var PortalThemePreset = z143.enum(portalThemePresets);
5302
+ var UserThemePreset = z143.enum(userThemePresets);
5303
+ var BaseTheme = z143.object({
5304
+ backgroundColor: z143.string().optional(),
5305
+ accentColor: z143.string().optional(),
5306
+ contrast: z143.number().min(16).max(100).optional(),
5307
+ isSecondaryEnabled: z143.boolean().optional(),
5308
+ secondaryBackgroundColor: z143.string().optional(),
5309
+ secondaryContrast: z143.number().min(16).max(100).optional(),
5310
+ isEditorWhite: z143.boolean().optional()
5286
5311
  });
5287
5312
  var UserTheme = BaseTheme.extend({
5288
5313
  preset: UserThemePreset.optional()
@@ -5290,117 +5315,117 @@ var UserTheme = BaseTheme.extend({
5290
5315
  var PortalTheme = BaseTheme.extend({
5291
5316
  preset: PortalThemePreset.optional()
5292
5317
  });
5293
- var UserOnboarding = z141.object({
5294
- companyName: z141.string().optional(),
5295
- numberOfPeopleInOrg: z141.string().optional(),
5296
- numberOfPeopleInDesignTeam: z141.string().optional(),
5318
+ var UserOnboarding = z143.object({
5319
+ companyName: z143.string().optional(),
5320
+ numberOfPeopleInOrg: z143.string().optional(),
5321
+ numberOfPeopleInDesignTeam: z143.string().optional(),
5297
5322
  department: UserOnboardingDepartment.optional(),
5298
- jobTitle: z141.string().optional(),
5299
- phase: z141.string().optional(),
5323
+ jobTitle: z143.string().optional(),
5324
+ phase: z143.string().optional(),
5300
5325
  jobLevel: UserOnboardingJobLevel.optional(),
5301
- designSystemName: z141.string().optional(),
5302
- defaultDestination: z141.string().optional(),
5303
- figmaUrl: z141.string().optional(),
5304
- isPageDraftOnboardingFinished: z141.boolean().optional(),
5305
- isApprovalsOnboardingFinished: z141.boolean().optional()
5306
- });
5307
- var UserProfile = z141.object({
5308
- name: z141.string(),
5309
- avatar: nullishToOptional(z141.string()),
5310
- nickname: nullishToOptional(z141.string()),
5326
+ designSystemName: z143.string().optional(),
5327
+ defaultDestination: z143.string().optional(),
5328
+ figmaUrl: z143.string().optional(),
5329
+ isPageDraftOnboardingFinished: z143.boolean().optional(),
5330
+ isApprovalsOnboardingFinished: z143.boolean().optional()
5331
+ });
5332
+ var UserProfile = z143.object({
5333
+ name: z143.string(),
5334
+ avatar: nullishToOptional(z143.string()),
5335
+ nickname: nullishToOptional(z143.string()),
5311
5336
  onboarding: nullishToOptional(UserOnboarding),
5312
5337
  theme: nullishToOptional(UserTheme),
5313
5338
  portalTheme: nullishToOptional(PortalTheme)
5314
5339
  });
5315
5340
 
5316
5341
  // src/users/user-test.ts
5317
- import { z as z142 } from "zod";
5318
- var UserTest = z142.object({
5319
- id: z142.string(),
5320
- email: z142.string()
5342
+ import { z as z144 } from "zod";
5343
+ var UserTest = z144.object({
5344
+ id: z144.string(),
5345
+ email: z144.string()
5321
5346
  });
5322
5347
 
5323
5348
  // src/users/user.ts
5324
- import { z as z143 } from "zod";
5325
- var UserSource = z143.enum(["SignUp", "Invite", "SSO", "Google"]);
5326
- var UserEmailSettings = z143.object({
5327
- marketingEmails: z143.boolean()
5328
- });
5329
- var User = z143.object({
5330
- id: z143.string(),
5331
- email: z143.string(),
5332
- createdAt: z143.coerce.date(),
5349
+ import { z as z145 } from "zod";
5350
+ var UserSource = z145.enum(["SignUp", "Invite", "SSO", "Google"]);
5351
+ var UserEmailSettings = z145.object({
5352
+ marketingEmails: z145.boolean()
5353
+ });
5354
+ var User = z145.object({
5355
+ id: z145.string(),
5356
+ email: z145.string(),
5357
+ createdAt: z145.coerce.date(),
5333
5358
  profile: UserProfile,
5334
- loggedOutAt: z143.coerce.date().optional(),
5335
- isProtected: z143.boolean(),
5359
+ loggedOutAt: z145.coerce.date().optional(),
5360
+ isProtected: z145.boolean(),
5336
5361
  source: UserSource.optional(),
5337
5362
  emailSettings: UserEmailSettings.optional()
5338
5363
  });
5339
5364
 
5340
5365
  // src/forge/participant.ts
5341
- var ForgeParticipant = z144.object({
5342
- id: z144.string(),
5343
- agentId: z144.string().optional(),
5366
+ var ForgeParticipant = z146.object({
5367
+ id: z146.string(),
5368
+ agentId: z146.string().optional(),
5344
5369
  agent: ForgeAgent.optional(),
5345
- projectIterationId: z144.string(),
5346
- role: z144.enum(["Editor", "Viewer"]),
5347
- type: z144.enum(["Agent", "User"]),
5348
- userId: z144.string().optional(),
5370
+ projectIterationId: z146.string(),
5371
+ role: z146.enum(["Editor", "Viewer"]),
5372
+ type: z146.enum(["Agent", "User"]),
5373
+ userId: z146.string().optional(),
5349
5374
  user: User.optional()
5350
5375
  });
5351
5376
 
5352
5377
  // src/forge/iteration-message.ts
5353
- var ForgeIterationMessageStep = z145.object({
5354
- name: z145.string(),
5355
- text: z145.string(),
5356
- status: z145.enum(["pending", "started", "completed", "error"])
5378
+ var ForgeIterationMessageStep = z147.object({
5379
+ name: z147.string(),
5380
+ text: z147.string(),
5381
+ status: z147.enum(["pending", "started", "completed", "error"])
5357
5382
  });
5358
- var ForgeIterationMessage = z145.object({
5359
- id: z145.string(),
5360
- createdAt: z145.coerce.date(),
5361
- participantId: z145.string(),
5383
+ var ForgeIterationMessage = z147.object({
5384
+ id: z147.string(),
5385
+ createdAt: z147.coerce.date(),
5386
+ participantId: z147.string(),
5362
5387
  participant: ForgeParticipant,
5363
- projectIterationId: z145.string(),
5364
- steps: z145.array(ForgeIterationMessageStep).optional(),
5365
- type: z145.enum(["Note", "Action", "Steps"]),
5366
- text: z145.string()
5388
+ projectIterationId: z147.string(),
5389
+ steps: z147.array(ForgeIterationMessageStep).optional(),
5390
+ type: z147.enum(["Note", "Action", "Steps"]),
5391
+ text: z147.string()
5367
5392
  });
5368
5393
 
5369
5394
  // src/forge/project-artifact-content.ts
5370
- import { z as z146 } from "zod";
5395
+ import { z as z148 } from "zod";
5371
5396
  var ForgeProjectArtifactContentData = DocumentationPageContentData;
5372
- var ForgeProjectArtifactContent = z146.object({
5373
- id: z146.string(),
5374
- artifactId: z146.string(),
5375
- projectId: z146.string(),
5376
- createdAt: z146.coerce.date(),
5377
- updatedAt: z146.coerce.date(),
5397
+ var ForgeProjectArtifactContent = z148.object({
5398
+ id: z148.string(),
5399
+ artifactId: z148.string(),
5400
+ projectId: z148.string(),
5401
+ createdAt: z148.coerce.date(),
5402
+ updatedAt: z148.coerce.date(),
5378
5403
  data: ForgeProjectArtifactContentData
5379
5404
  });
5380
5405
 
5381
5406
  // src/forge/project-artifact.ts
5382
- import { z as z149 } from "zod";
5407
+ import { z as z151 } from "zod";
5383
5408
 
5384
5409
  // src/files/files.ts
5385
- import z147 from "zod";
5386
- var FileFigmaRenderMode = z147.enum(["Image", "HTML", "JSON"]);
5387
- var FileSourceUpload = z147.object({
5388
- type: z147.literal("UserUpload"),
5389
- userId: z147.string()
5390
- });
5391
- var FileSourceFigma = z147.object({
5392
- type: z147.literal("Figma"),
5410
+ import z149 from "zod";
5411
+ var FileFigmaRenderMode = z149.enum(["Image", "HTML", "JSON"]);
5412
+ var FileSourceUpload = z149.object({
5413
+ type: z149.literal("UserUpload"),
5414
+ userId: z149.string()
5415
+ });
5416
+ var FileSourceFigma = z149.object({
5417
+ type: z149.literal("Figma"),
5393
5418
  renderMode: FileFigmaRenderMode
5394
5419
  });
5395
- var FileSource = z147.discriminatedUnion("type", [FileSourceUpload, FileSourceFigma]);
5396
- var File = z147.object({
5397
- id: z147.string(),
5398
- name: z147.string(),
5399
- deduplicationKey: z147.string(),
5400
- pendingUpload: z147.boolean().optional(),
5401
- storagePath: z147.string(),
5402
- url: z147.string(),
5403
- size: z147.number(),
5420
+ var FileSource = z149.discriminatedUnion("type", [FileSourceUpload, FileSourceFigma]);
5421
+ var File = z149.object({
5422
+ id: z149.string(),
5423
+ name: z149.string(),
5424
+ deduplicationKey: z149.string(),
5425
+ pendingUpload: z149.boolean().optional(),
5426
+ storagePath: z149.string(),
5427
+ url: z149.string(),
5428
+ size: z149.number(),
5404
5429
  /**
5405
5430
  * Object describing where did the file come from. Undefined source indicates a file produced by the
5406
5431
  * system (e.g. thumbnails, etc)
@@ -5416,160 +5441,160 @@ var FileReference = File.pick({
5416
5441
  });
5417
5442
 
5418
5443
  // src/forge/project-section.ts
5419
- import { z as z148 } from "zod";
5420
- var ForgeProjectSectionChildType = z148.enum(["Artifact", "Feature"]);
5421
- var SortOrder = z148.number().int();
5422
- var ForgeSection = z148.object({
5444
+ import { z as z150 } from "zod";
5445
+ var ForgeProjectSectionChildType = z150.enum(["Artifact", "Feature"]);
5446
+ var SortOrder = z150.number().int();
5447
+ var ForgeSection = z150.object({
5423
5448
  id: Id,
5424
- projectId: z148.string(),
5425
- name: z148.string(),
5449
+ projectId: z150.string(),
5450
+ name: z150.string(),
5426
5451
  sortOrder: SortOrder.default(0),
5427
- createdAt: z148.coerce.date(),
5428
- updatedAt: z148.coerce.date(),
5452
+ createdAt: z150.coerce.date(),
5453
+ updatedAt: z150.coerce.date(),
5429
5454
  childType: ForgeProjectSectionChildType
5430
5455
  });
5431
5456
 
5432
5457
  // src/forge/project-artifact.ts
5433
- var ForgeProjectArtifact = z149.object({
5458
+ var ForgeProjectArtifact = z151.object({
5434
5459
  id: Id,
5435
- projectId: z149.string(),
5436
- iterationId: z149.string().nullish(),
5437
- title: z149.string(),
5438
- previewUrl: z149.string().nullish(),
5460
+ projectId: z151.string(),
5461
+ iterationId: z151.string().nullish(),
5462
+ title: z151.string(),
5463
+ previewUrl: z151.string().nullish(),
5439
5464
  sortOrder: SortOrder.default(0),
5440
- createdAt: z149.coerce.date(),
5441
- updatedAt: z149.coerce.date(),
5442
- createdByUserId: z149.string(),
5465
+ createdAt: z151.coerce.date(),
5466
+ updatedAt: z151.coerce.date(),
5467
+ createdByUserId: z151.string(),
5443
5468
  sectionId: Id.optional(),
5444
- threadId: z149.string().optional(),
5469
+ threadId: z151.string().optional(),
5445
5470
  thumbnail: FileReference.optional(),
5446
5471
  // Default value here is important for backward compatibility for parsing artifacts
5447
5472
  // from project rooms!
5448
- isArchived: z149.boolean().default(false)
5473
+ isArchived: z151.boolean().default(false)
5449
5474
  });
5450
5475
 
5451
5476
  // src/forge/project-feature.ts
5452
- import { z as z150 } from "zod";
5453
- var ProjectFeatureStatus = z150.enum(["Draft", "ReadyForDevelopment"]);
5454
- var FeaturePublishedStateVisibility = z150.enum(["Public", "WorkspaceMembers"]);
5455
- var FeaturePublishedState = z150.object({
5456
- userId: z150.string().optional(),
5457
- lastPublishedAt: z150.coerce.date(),
5458
- iterationId: z150.string().nullable(),
5459
- hideSupernovaUI: z150.boolean(),
5477
+ import { z as z152 } from "zod";
5478
+ var ProjectFeatureStatus = z152.enum(["Draft", "ReadyForDevelopment"]);
5479
+ var FeaturePublishedStateVisibility = z152.enum(["Public", "WorkspaceMembers"]);
5480
+ var FeaturePublishedState = z152.object({
5481
+ userId: z152.string().optional(),
5482
+ lastPublishedAt: z152.coerce.date(),
5483
+ iterationId: z152.string().nullable(),
5484
+ hideSupernovaUI: z152.boolean(),
5460
5485
  visibility: FeaturePublishedStateVisibility.default("Public")
5461
5486
  });
5462
- var ProjectFeature = z150.object({
5463
- createdAt: z150.coerce.date(),
5464
- createdByUserId: z150.string(),
5465
- description: z150.string(),
5487
+ var ProjectFeature = z152.object({
5488
+ createdAt: z152.coerce.date(),
5489
+ createdByUserId: z152.string(),
5490
+ description: z152.string(),
5466
5491
  id: Id,
5467
- isArchived: z150.boolean(),
5468
- name: z150.string(),
5469
- projectId: z150.string(),
5492
+ isArchived: z152.boolean(),
5493
+ name: z152.string(),
5494
+ projectId: z152.string(),
5470
5495
  sectionId: Id.optional(),
5471
- e2bTemplateId: z150.string().nullish(),
5472
- e2bIterationId: z150.string().nullish(),
5496
+ e2bTemplateId: z152.string().nullish(),
5497
+ e2bIterationId: z152.string().nullish(),
5473
5498
  sortOrder: SortOrder.default(0),
5474
5499
  status: ProjectFeatureStatus.default("Draft"),
5475
- updatedAt: z150.coerce.date().optional(),
5476
- numberOfIterations: z150.number().min(0).default(0),
5477
- numberOfBookmarkedIterations: z150.number().min(0).default(0),
5478
- lastReplyTimestamp: z150.coerce.date().optional(),
5479
- threadId: z150.string().optional(),
5500
+ updatedAt: z152.coerce.date().optional(),
5501
+ numberOfIterations: z152.number().min(0).default(0),
5502
+ numberOfBookmarkedIterations: z152.number().min(0).default(0),
5503
+ lastReplyTimestamp: z152.coerce.date().optional(),
5504
+ threadId: z152.string().optional(),
5480
5505
  thumbnail: FileReference.optional(),
5481
5506
  publishedState: FeaturePublishedState.optional()
5482
5507
  });
5483
5508
 
5484
5509
  // src/forge/project-figma-node.ts
5485
- import { z as z151 } from "zod";
5486
- var ForgeProjectFigmaNode = z151.object({
5487
- id: z151.string().uuid(),
5488
- projectId: z151.string(),
5489
- sceneNodeId: z151.string(),
5510
+ import { z as z153 } from "zod";
5511
+ var ForgeProjectFigmaNode = z153.object({
5512
+ id: z153.string().uuid(),
5513
+ projectId: z153.string(),
5514
+ sceneNodeId: z153.string(),
5490
5515
  format: FigmaNodeRenderFormat,
5491
- scale: z151.number().optional(),
5516
+ scale: z153.number().optional(),
5492
5517
  renderState: FigmaNodeRenderState,
5493
5518
  renderedImage: FigmaNodeRenderedImage.optional(),
5494
5519
  renderError: FigmaNodeRenderError.optional()
5495
5520
  });
5496
- var ForgeProjectFigmaNodeRenderInput = z151.object({
5497
- url: z151.string(),
5521
+ var ForgeProjectFigmaNodeRenderInput = z153.object({
5522
+ url: z153.string(),
5498
5523
  format: FigmaNodeRenderFormat,
5499
- scale: z151.number()
5524
+ scale: z153.number()
5500
5525
  });
5501
5526
 
5502
5527
  // src/forge/project-file.ts
5503
- import { z as z152 } from "zod";
5504
- var ForgeProjectFile = z152.object({
5505
- id: z152.string(),
5528
+ import { z as z154 } from "zod";
5529
+ var ForgeProjectFile = z154.object({
5530
+ id: z154.string(),
5506
5531
  projectId: Id,
5507
- name: z152.string(),
5508
- filePath: z152.string(),
5509
- createdAt: z152.coerce.date().optional(),
5510
- pendingUpload: z152.boolean().optional(),
5511
- size: z152.number().int().positive().optional(),
5512
- checksum: z152.string()
5532
+ name: z154.string(),
5533
+ filePath: z154.string(),
5534
+ createdAt: z154.coerce.date().optional(),
5535
+ pendingUpload: z154.boolean().optional(),
5536
+ size: z154.number().int().positive().optional(),
5537
+ checksum: z154.string()
5513
5538
  });
5514
5539
 
5515
5540
  // src/forge/project-invitation.ts
5516
- import { z as z154 } from "zod";
5541
+ import { z as z156 } from "zod";
5517
5542
 
5518
5543
  // src/forge/project-membership.ts
5519
- import { z as z153 } from "zod";
5520
- var ForgeProjectRole = z153.enum(["Viewer", "Builder", "Admin"]);
5544
+ import { z as z155 } from "zod";
5545
+ var ForgeProjectRole = z155.enum(["Viewer", "Builder", "Admin"]);
5521
5546
  var ForgeDefaultProjectRole = ForgeProjectRole.exclude(["Admin"]);
5522
- var ForgeProjectMembership = z153.object({
5523
- userId: z153.string(),
5524
- forgeProjectId: z153.string(),
5525
- workspaceMembershipId: z153.string(),
5547
+ var ForgeProjectMembership = z155.object({
5548
+ userId: z155.string(),
5549
+ forgeProjectId: z155.string(),
5550
+ workspaceMembershipId: z155.string(),
5526
5551
  workspaceRole: WorkspaceRoleSchema,
5527
5552
  role: ForgeProjectRole
5528
5553
  });
5529
5554
 
5530
5555
  // src/forge/project-invitation.ts
5531
- var ForgeProjectInvitation = z154.object({
5532
- email: z154.string().email(),
5533
- forgeProjectId: z154.string(),
5534
- workspaceInvitationId: z154.string(),
5556
+ var ForgeProjectInvitation = z156.object({
5557
+ email: z156.string().email(),
5558
+ forgeProjectId: z156.string(),
5559
+ workspaceInvitationId: z156.string(),
5535
5560
  role: ForgeProjectRole,
5536
5561
  effectiveRole: ForgeProjectRole,
5537
- createdAt: z154.coerce.date(),
5538
- updatedAt: z154.coerce.date(),
5539
- createdById: z154.string()
5562
+ createdAt: z156.coerce.date(),
5563
+ updatedAt: z156.coerce.date(),
5564
+ createdById: z156.string()
5540
5565
  });
5541
5566
 
5542
5567
  // src/forge/project-iteration.ts
5543
- import { z as z155 } from "zod";
5544
- var ForgeProjectIterationMergeMeta = z155.object({ mergeByUserId: z155.string(), mergeAt: z155.date() });
5545
- var ForgeProjectIteration = z155.object({
5546
- branchId: z155.string().optional(),
5547
- buildArtifactId: z155.string(),
5548
- createdAt: z155.coerce.date(),
5549
- forgeProjectId: z155.string(),
5550
- id: z155.string(),
5551
- locked: z155.boolean(),
5552
- messages: z155.array(ForgeIterationMessage),
5553
- artifacts: z155.array(ForgeArtifact),
5554
- previousIterationId: z155.string().optional(),
5568
+ import { z as z157 } from "zod";
5569
+ var ForgeProjectIterationMergeMeta = z157.object({ mergeByUserId: z157.string(), mergeAt: z157.date() });
5570
+ var ForgeProjectIteration = z157.object({
5571
+ branchId: z157.string().optional(),
5572
+ buildArtifactId: z157.string(),
5573
+ createdAt: z157.coerce.date(),
5574
+ forgeProjectId: z157.string(),
5575
+ id: z157.string(),
5576
+ locked: z157.boolean(),
5577
+ messages: z157.array(ForgeIterationMessage),
5578
+ artifacts: z157.array(ForgeArtifact),
5579
+ previousIterationId: z157.string().optional(),
5555
5580
  mergeMeta: ForgeProjectIterationMergeMeta.optional()
5556
5581
  });
5557
5582
 
5558
5583
  // src/forge/project.ts
5559
- import { z as z156 } from "zod";
5560
- var ForgeProjectAccessMode = z156.enum(["InviteOnly", "Open", "Unlisted"]);
5584
+ import { z as z158 } from "zod";
5585
+ var ForgeProjectAccessMode = z158.enum(["InviteOnly", "Open", "Unlisted"]);
5561
5586
 
5562
5587
  // src/forge/relation.ts
5563
- import { z as z157 } from "zod";
5564
- var ForgeRelationType = z157.enum(["Feature", "Document"]);
5565
- var ForgeRelation = z157.object({
5566
- id: z157.string(),
5567
- projectId: z157.string(),
5568
- sourceItemId: z157.string().uuid(),
5588
+ import { z as z159 } from "zod";
5589
+ var ForgeRelationType = z159.enum(["Feature", "Document"]);
5590
+ var ForgeRelation = z159.object({
5591
+ id: z159.string(),
5592
+ projectId: z159.string(),
5593
+ sourceItemId: z159.string().uuid(),
5569
5594
  sourceItemType: ForgeRelationType,
5570
- targetItemId: z157.string().uuid(),
5595
+ targetItemId: z159.string().uuid(),
5571
5596
  targetItemType: ForgeRelationType,
5572
- createdAt: z157.string()
5597
+ createdAt: z159.string()
5573
5598
  });
5574
5599
 
5575
5600
  // src/workspace/workspace.ts
@@ -5578,121 +5603,121 @@ var isValidCIDR = (value) => {
5578
5603
  };
5579
5604
  var WorkspaceDefaultProjectAccessMode = ForgeProjectAccessMode;
5580
5605
  var WorkspaceDefaultProjectRole = ForgeDefaultProjectRole;
5581
- var WorkspaceIpWhitelistEntry = z158.object({
5582
- isEnabled: z158.boolean(),
5583
- name: z158.string(),
5584
- range: z158.string().refine(isValidCIDR, {
5606
+ var WorkspaceIpWhitelistEntry = z160.object({
5607
+ isEnabled: z160.boolean(),
5608
+ name: z160.string(),
5609
+ range: z160.string().refine(isValidCIDR, {
5585
5610
  message: "Invalid IP CIDR"
5586
5611
  })
5587
5612
  });
5588
- var WorkspaceIpSettings = z158.object({
5589
- isEnabledForCloud: z158.boolean(),
5590
- isEnabledForDocs: z158.boolean(),
5591
- entries: z158.array(WorkspaceIpWhitelistEntry)
5613
+ var WorkspaceIpSettings = z160.object({
5614
+ isEnabledForCloud: z160.boolean(),
5615
+ isEnabledForDocs: z160.boolean(),
5616
+ entries: z160.array(WorkspaceIpWhitelistEntry)
5592
5617
  });
5593
- var WorkspaceProfile = z158.object({
5594
- name: z158.string(),
5595
- handle: z158.string(),
5596
- color: z158.string(),
5597
- avatar: nullishToOptional(z158.string()),
5618
+ var WorkspaceProfile = z160.object({
5619
+ name: z160.string(),
5620
+ handle: z160.string(),
5621
+ color: z160.string(),
5622
+ avatar: nullishToOptional(z160.string()),
5598
5623
  billingDetails: nullishToOptional(BillingDetails)
5599
5624
  });
5600
5625
  var WorkspaceProfileUpdate = WorkspaceProfile.omit({
5601
5626
  avatar: true
5602
5627
  });
5603
- var Workspace = z158.object({
5604
- id: z158.string(),
5628
+ var Workspace = z160.object({
5629
+ id: z160.string(),
5605
5630
  profile: WorkspaceProfile,
5606
5631
  subscription: Subscription,
5607
5632
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
5608
5633
  sso: nullishToOptional(SsoProvider),
5609
5634
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig),
5610
- aiFeaturesEnabled: z158.boolean().default(false),
5611
- projectsEnabled: z158.boolean().default(false),
5635
+ aiFeaturesEnabled: z160.boolean().default(false),
5636
+ projectsEnabled: z160.boolean().default(false),
5612
5637
  defaultProjectAccessMode: WorkspaceDefaultProjectAccessMode,
5613
5638
  defaultProjectRole: WorkspaceDefaultProjectRole,
5614
- aiAskFeaturesEnabled: z158.boolean().default(false),
5615
- aiCustomInstruction: z158.string().optional(),
5616
- hasOpenMeterSubject: z158.boolean()
5639
+ aiAskFeaturesEnabled: z160.boolean().default(false),
5640
+ aiCustomInstruction: z160.string().optional(),
5641
+ hasOpenMeterSubject: z160.boolean()
5617
5642
  });
5618
- var WorkspaceWithDesignSystems = z158.object({
5643
+ var WorkspaceWithDesignSystems = z160.object({
5619
5644
  workspace: Workspace,
5620
- designSystems: z158.array(DesignSystem)
5645
+ designSystems: z160.array(DesignSystem)
5621
5646
  });
5622
5647
 
5623
5648
  // src/workspace/workspace-configuration.ts
5624
- var WorkspaceConfigurationUpdate = z159.object({
5625
- id: z159.string(),
5649
+ var WorkspaceConfigurationUpdate = z161.object({
5650
+ id: z161.string(),
5626
5651
  ipWhitelist: WorkspaceIpSettings.optional(),
5627
5652
  sso: SsoProvider.optional(),
5628
5653
  npmRegistrySettings: NpmRegistryConfig.optional(),
5629
5654
  profile: WorkspaceProfileUpdate.optional(),
5630
- aiFeaturesEnabled: z159.boolean().optional(),
5631
- projectsEnabled: z159.boolean().optional(),
5655
+ aiFeaturesEnabled: z161.boolean().optional(),
5656
+ projectsEnabled: z161.boolean().optional(),
5632
5657
  defaultProjectAccessMode: WorkspaceDefaultProjectAccessMode.optional(),
5633
5658
  defaultProjectRole: WorkspaceDefaultProjectRole.optional(),
5634
- aiAskFeaturesEnabled: z159.boolean().optional(),
5635
- aiCustomInstruction: z159.string().optional()
5659
+ aiAskFeaturesEnabled: z161.boolean().optional(),
5660
+ aiCustomInstruction: z161.string().optional()
5636
5661
  });
5637
5662
 
5638
5663
  // src/workspace/workspace-context.ts
5639
- import { z as z160 } from "zod";
5640
- var WorkspaceContext = z160.object({
5641
- workspaceId: z160.string(),
5664
+ import { z as z162 } from "zod";
5665
+ var WorkspaceContext = z162.object({
5666
+ workspaceId: z162.string(),
5642
5667
  product: ProductCodeSchema,
5643
- publicDesignSystem: z160.boolean().optional()
5668
+ publicDesignSystem: z162.boolean().optional()
5644
5669
  });
5645
5670
 
5646
5671
  // src/workspace/workspace-create.ts
5647
- import { z as z161 } from "zod";
5672
+ import { z as z163 } from "zod";
5648
5673
  var WORKSPACE_NAME_MIN_LENGTH = 2;
5649
5674
  var WORKSPACE_NAME_MAX_LENGTH = 64;
5650
5675
  var HANDLE_MIN_LENGTH = 2;
5651
5676
  var HANDLE_MAX_LENGTH = 64;
5652
- var CreateWorkspaceInput = z161.object({
5653
- name: z161.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
5654
- handle: z161.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
5677
+ var CreateWorkspaceInput = z163.object({
5678
+ name: z163.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
5679
+ handle: z163.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
5655
5680
  });
5656
5681
 
5657
5682
  // src/workspace/workspace-invitations.ts
5658
- import { z as z162 } from "zod";
5659
- var WorkspaceInvitation = z162.object({
5660
- id: z162.string(),
5661
- email: z162.string().email(),
5662
- createdAt: z162.coerce.date(),
5663
- resentAt: z162.coerce.date().nullish(),
5664
- role: z162.nativeEnum(WorkspaceRole),
5683
+ import { z as z164 } from "zod";
5684
+ var WorkspaceInvitation = z164.object({
5685
+ id: z164.string(),
5686
+ email: z164.string().email(),
5687
+ createdAt: z164.coerce.date(),
5688
+ resentAt: z164.coerce.date().nullish(),
5689
+ role: z164.nativeEnum(WorkspaceRole),
5665
5690
  seatType: WorkspaceSeatType,
5666
- workspaceId: z162.string(),
5667
- invitedBy: z162.string()
5691
+ workspaceId: z164.string(),
5692
+ invitedBy: z164.string()
5668
5693
  });
5669
5694
 
5670
5695
  // src/workspace/workspace-membership.ts
5671
- import { z as z163 } from "zod";
5672
- var WorkspaceMembership = z163.object({
5673
- id: z163.string(),
5674
- userId: z163.string(),
5675
- workspaceId: z163.string(),
5676
- workspaceRole: z163.nativeEnum(WorkspaceRole),
5696
+ import { z as z165 } from "zod";
5697
+ var WorkspaceMembership = z165.object({
5698
+ id: z165.string(),
5699
+ userId: z165.string(),
5700
+ workspaceId: z165.string(),
5701
+ workspaceRole: z165.nativeEnum(WorkspaceRole),
5677
5702
  seatType: WorkspaceSeatType,
5678
5703
  notificationSettings: UserNotificationSettings,
5679
- isPrimaryOwner: z163.boolean().nullish(),
5680
- isDeactivated: z163.boolean()
5681
- });
5682
- var UpdateMembershipRolesInput = z163.object({
5683
- members: z163.array(
5684
- z163.object({
5685
- userId: z163.string(),
5686
- role: z163.nativeEnum(WorkspaceRole),
5704
+ isPrimaryOwner: z165.boolean().nullish(),
5705
+ isDeactivated: z165.boolean()
5706
+ });
5707
+ var UpdateMembershipRolesInput = z165.object({
5708
+ members: z165.array(
5709
+ z165.object({
5710
+ userId: z165.string(),
5711
+ role: z165.nativeEnum(WorkspaceRole),
5687
5712
  seatType: WorkspaceSeatType.optional(),
5688
- isPrimaryOwner: z163.boolean().optional()
5713
+ isPrimaryOwner: z165.boolean().optional()
5689
5714
  })
5690
5715
  )
5691
5716
  });
5692
5717
 
5693
5718
  // src/dsm/membership/ds-role.ts
5694
- import { z as z164 } from "zod";
5695
- var DesignSystemRole = z164.enum([
5719
+ import { z as z166 } from "zod";
5720
+ var DesignSystemRole = z166.enum([
5696
5721
  WorkspaceRole.Admin,
5697
5722
  WorkspaceRole.Contributor,
5698
5723
  WorkspaceRole.Creator,
@@ -5716,47 +5741,47 @@ function workspaceRoleToDesignSystemRole(role) {
5716
5741
  }
5717
5742
 
5718
5743
  // src/dsm/membership/invitations.ts
5719
- import { z as z165 } from "zod";
5720
- var DesignSystemInvitation = z165.object({
5721
- id: z165.string(),
5722
- designSystemId: z165.string(),
5723
- workspaceInvitationId: z165.string(),
5744
+ import { z as z167 } from "zod";
5745
+ var DesignSystemInvitation = z167.object({
5746
+ id: z167.string(),
5747
+ designSystemId: z167.string(),
5748
+ workspaceInvitationId: z167.string(),
5724
5749
  designSystemRole: DesignSystemRole.optional(),
5725
5750
  workspaceRole: WorkspaceRoleSchema
5726
5751
  });
5727
5752
 
5728
5753
  // src/dsm/membership/design-system-membership.ts
5729
- var DesignSystemMembership = z166.object({
5730
- id: z166.string(),
5731
- userId: z166.string(),
5732
- designSystemId: z166.string(),
5754
+ var DesignSystemMembership = z168.object({
5755
+ id: z168.string(),
5756
+ userId: z168.string(),
5757
+ designSystemId: z168.string(),
5733
5758
  designSystemRole: DesignSystemRole.optional(),
5734
- workspaceMembershipId: z166.string(),
5759
+ workspaceMembershipId: z168.string(),
5735
5760
  workspaceRole: WorkspaceRoleSchema,
5736
- isDeactivated: z166.boolean()
5761
+ isDeactivated: z168.boolean()
5737
5762
  });
5738
- var DesignSystemMembers = z166.object({
5763
+ var DesignSystemMembers = z168.object({
5739
5764
  members: DesignSystemMembership.array(),
5740
5765
  invitations: DesignSystemInvitation.array()
5741
5766
  });
5742
- var DesignSystemPendingMemberInvitation = z166.object({
5743
- inviteId: z166.string(),
5767
+ var DesignSystemPendingMemberInvitation = z168.object({
5768
+ inviteId: z168.string(),
5744
5769
  /**
5745
5770
  * Role that the user will have in the design system, undefined
5746
5771
  * if it should be inherited from the workspace
5747
5772
  */
5748
5773
  designSystemRole: DesignSystemRole.optional()
5749
5774
  });
5750
- var DesignSystemUserInvitation = z166.object({
5751
- userId: z166.string(),
5775
+ var DesignSystemUserInvitation = z168.object({
5776
+ userId: z168.string(),
5752
5777
  /**
5753
5778
  * Role that the user will have in the design system, undefined
5754
5779
  * if it should be inherited from the workspace
5755
5780
  */
5756
5781
  designSystemRole: DesignSystemRole.optional()
5757
5782
  });
5758
- var DesignSystemInvite = z166.object({
5759
- email: z166.string(),
5783
+ var DesignSystemInvite = z168.object({
5784
+ email: z168.string(),
5760
5785
  workspaceRole: WorkspaceRoleSchema,
5761
5786
  /**
5762
5787
  * Role that the user will have in the design system, undefined
@@ -5764,330 +5789,330 @@ var DesignSystemInvite = z166.object({
5764
5789
  */
5765
5790
  designSystemRole: DesignSystemRole.optional()
5766
5791
  });
5767
- var DesignSystemMemberUpdate = z166.object({
5768
- userId: z166.string(),
5792
+ var DesignSystemMemberUpdate = z168.object({
5793
+ userId: z168.string(),
5769
5794
  designSystemRole: DesignSystemRole.nullable()
5770
5795
  });
5771
- var DesignSystemInviteUpdate = z166.object({
5796
+ var DesignSystemInviteUpdate = z168.object({
5772
5797
  /**
5773
5798
  * Workspace invitation id
5774
5799
  */
5775
- inviteId: z166.string(),
5800
+ inviteId: z168.string(),
5776
5801
  designSystemRole: DesignSystemRole.nullable()
5777
5802
  });
5778
- var DesignSystemMembershipUpdates = z166.object({
5803
+ var DesignSystemMembershipUpdates = z168.object({
5779
5804
  usersToInvite: DesignSystemUserInvitation.array().optional(),
5780
5805
  invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
5781
5806
  emailsToInvite: DesignSystemInvite.array().optional(),
5782
5807
  usersToUpdate: DesignSystemMemberUpdate.array().optional(),
5783
5808
  invitesToUpdate: DesignSystemInviteUpdate.array().optional(),
5784
- removeUserIds: z166.string().array().optional(),
5785
- deleteInvitationIds: z166.string().array().optional()
5809
+ removeUserIds: z168.string().array().optional(),
5810
+ deleteInvitationIds: z168.string().array().optional()
5786
5811
  });
5787
5812
 
5788
5813
  // src/dsm/pipelines/query.ts
5789
- import { z as z167 } from "zod";
5790
- var PipelineExporterQuery = z167.object({
5791
- exporterId: z167.string().optional()
5814
+ import { z as z169 } from "zod";
5815
+ var PipelineExporterQuery = z169.object({
5816
+ exporterId: z169.string().optional()
5792
5817
  });
5793
5818
 
5794
5819
  // src/dsm/views/column.ts
5795
- import { z as z168 } from "zod";
5796
- var ElementViewBaseColumnType = z168.enum(["Name", "Description", "Value", "UpdatedAt"]);
5797
- var ElementViewColumnType = z168.union([
5798
- z168.literal("BaseProperty"),
5799
- z168.literal("PropertyDefinition"),
5800
- z168.literal("Theme")
5820
+ import { z as z170 } from "zod";
5821
+ var ElementViewBaseColumnType = z170.enum(["Name", "Description", "Value", "UpdatedAt"]);
5822
+ var ElementViewColumnType = z170.union([
5823
+ z170.literal("BaseProperty"),
5824
+ z170.literal("PropertyDefinition"),
5825
+ z170.literal("Theme")
5801
5826
  ]);
5802
- var ElementViewColumnSharedAttributes = z168.object({
5803
- id: z168.string(),
5804
- persistentId: z168.string(),
5805
- elementDataViewId: z168.string(),
5806
- sortPosition: z168.number(),
5807
- width: z168.number()
5827
+ var ElementViewColumnSharedAttributes = z170.object({
5828
+ id: z170.string(),
5829
+ persistentId: z170.string(),
5830
+ elementDataViewId: z170.string(),
5831
+ sortPosition: z170.number(),
5832
+ width: z170.number()
5808
5833
  });
5809
5834
  var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
5810
- type: z168.literal("BaseProperty"),
5835
+ type: z170.literal("BaseProperty"),
5811
5836
  basePropertyType: ElementViewBaseColumnType
5812
5837
  });
5813
5838
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
5814
- type: z168.literal("PropertyDefinition"),
5815
- propertyDefinitionId: z168.string()
5839
+ type: z170.literal("PropertyDefinition"),
5840
+ propertyDefinitionId: z170.string()
5816
5841
  });
5817
5842
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
5818
- type: z168.literal("Theme"),
5819
- themeId: z168.string()
5843
+ type: z170.literal("Theme"),
5844
+ themeId: z170.string()
5820
5845
  });
5821
- var ElementViewColumn = z168.discriminatedUnion("type", [
5846
+ var ElementViewColumn = z170.discriminatedUnion("type", [
5822
5847
  ElementViewBasePropertyColumn,
5823
5848
  ElementViewPropertyDefinitionColumn,
5824
5849
  ElementViewThemeColumn
5825
5850
  ]);
5826
5851
 
5827
5852
  // src/dsm/views/view.ts
5828
- import { z as z169 } from "zod";
5829
- var ElementView = z169.object({
5830
- id: z169.string(),
5831
- persistentId: z169.string(),
5832
- designSystemVersionId: z169.string(),
5833
- name: z169.string(),
5834
- description: z169.string(),
5853
+ import { z as z171 } from "zod";
5854
+ var ElementView = z171.object({
5855
+ id: z171.string(),
5856
+ persistentId: z171.string(),
5857
+ designSystemVersionId: z171.string(),
5858
+ name: z171.string(),
5859
+ description: z171.string(),
5835
5860
  targetElementType: ElementPropertyTargetType,
5836
- isDefault: z169.boolean()
5861
+ isDefault: z171.boolean()
5837
5862
  });
5838
5863
 
5839
5864
  // src/dsm/brand.ts
5840
- import { z as z170 } from "zod";
5841
- var Brand = z170.object({
5842
- id: z170.string(),
5843
- designSystemVersionId: z170.string(),
5844
- persistentId: z170.string(),
5845
- name: z170.string(),
5846
- description: z170.string()
5865
+ import { z as z172 } from "zod";
5866
+ var Brand = z172.object({
5867
+ id: z172.string(),
5868
+ designSystemVersionId: z172.string(),
5869
+ persistentId: z172.string(),
5870
+ name: z172.string(),
5871
+ description: z172.string()
5847
5872
  });
5848
5873
 
5849
5874
  // src/dsm/design-system.ts
5850
- import { z as z171 } from "zod";
5851
- var DesignSystemAccessMode = z171.enum(["Open", "InviteOnly"]);
5852
- var DesignSystemSwitcher = z171.object({
5853
- isEnabled: z171.boolean(),
5854
- designSystemIds: z171.array(z171.string())
5875
+ import { z as z173 } from "zod";
5876
+ var DesignSystemAccessMode = z173.enum(["Open", "InviteOnly"]);
5877
+ var DesignSystemSwitcher = z173.object({
5878
+ isEnabled: z173.boolean(),
5879
+ designSystemIds: z173.array(z173.string())
5855
5880
  });
5856
- var DesignSystem = z171.object({
5857
- id: z171.string(),
5858
- workspaceId: z171.string(),
5859
- name: z171.string(),
5860
- description: z171.string(),
5861
- docExporterId: nullishToOptional(z171.string()),
5862
- docSlug: z171.string(),
5863
- docUserSlug: nullishToOptional(z171.string()),
5864
- docSlugDeprecated: z171.string(),
5865
- isMultibrand: z171.boolean(),
5866
- docViewUrl: nullishToOptional(z171.string()),
5867
- basePrefixes: z171.array(z171.string()),
5881
+ var DesignSystem = z173.object({
5882
+ id: z173.string(),
5883
+ workspaceId: z173.string(),
5884
+ name: z173.string(),
5885
+ description: z173.string(),
5886
+ docExporterId: nullishToOptional(z173.string()),
5887
+ docSlug: z173.string(),
5888
+ docUserSlug: nullishToOptional(z173.string()),
5889
+ docSlugDeprecated: z173.string(),
5890
+ isMultibrand: z173.boolean(),
5891
+ docViewUrl: nullishToOptional(z173.string()),
5892
+ basePrefixes: z173.array(z173.string()),
5868
5893
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
5869
- isApprovalFeatureEnabled: z171.boolean(),
5870
- approvalRequiredForPublishing: z171.boolean(),
5894
+ isApprovalFeatureEnabled: z173.boolean(),
5895
+ approvalRequiredForPublishing: z173.boolean(),
5871
5896
  accessMode: DesignSystemAccessMode,
5872
- membersGenerated: z171.boolean(),
5873
- sharedDraftId: z171.string().optional(),
5874
- createdAt: z171.coerce.date(),
5875
- updatedAt: z171.coerce.date()
5897
+ membersGenerated: z173.boolean(),
5898
+ sharedDraftId: z173.string().optional(),
5899
+ createdAt: z173.coerce.date(),
5900
+ updatedAt: z173.coerce.date()
5876
5901
  });
5877
5902
 
5878
5903
  // src/dsm/exporter-property-values-collection.ts
5879
- import { z as z172 } from "zod";
5880
- var ExporterPropertyImageValue = z172.object({
5904
+ import { z as z174 } from "zod";
5905
+ var ExporterPropertyImageValue = z174.object({
5881
5906
  asset: PageBlockAsset.optional(),
5882
- assetId: z172.string().optional(),
5883
- assetUrl: z172.string().optional()
5884
- });
5885
- var ExporterConfigurationPropertyValue = z172.object({
5886
- key: z172.string(),
5887
- value: z172.union([
5888
- z172.number(),
5889
- z172.string(),
5890
- z172.boolean(),
5907
+ assetId: z174.string().optional(),
5908
+ assetUrl: z174.string().optional()
5909
+ });
5910
+ var ExporterConfigurationPropertyValue = z174.object({
5911
+ key: z174.string(),
5912
+ value: z174.union([
5913
+ z174.number(),
5914
+ z174.string(),
5915
+ z174.boolean(),
5891
5916
  ExporterPropertyImageValue,
5892
5917
  ColorTokenData,
5893
5918
  TypographyTokenData
5894
5919
  ])
5895
5920
  });
5896
- var ExporterPropertyValuesCollection = z172.object({
5897
- id: z172.string(),
5898
- designSystemId: z172.string(),
5899
- exporterId: z172.string(),
5900
- values: z172.array(ExporterConfigurationPropertyValue)
5921
+ var ExporterPropertyValuesCollection = z174.object({
5922
+ id: z174.string(),
5923
+ designSystemId: z174.string(),
5924
+ exporterId: z174.string(),
5925
+ values: z174.array(ExporterConfigurationPropertyValue)
5901
5926
  });
5902
5927
 
5903
5928
  // src/dsm/published-doc-page-visits.ts
5904
- import { z as z173 } from "zod";
5905
- var PublishedDocPageVisitsEntry = z173.object({
5906
- id: z173.string(),
5907
- versionId: z173.string(),
5908
- pagePersistentId: z173.string(),
5909
- locale: z173.string().optional(),
5910
- timestamp: z173.coerce.date(),
5911
- visits: z173.number(),
5912
- userId: nullishToOptional(z173.string()),
5913
- anonymousId: nullishToOptional(z173.string())
5929
+ import { z as z175 } from "zod";
5930
+ var PublishedDocPageVisitsEntry = z175.object({
5931
+ id: z175.string(),
5932
+ versionId: z175.string(),
5933
+ pagePersistentId: z175.string(),
5934
+ locale: z175.string().optional(),
5935
+ timestamp: z175.coerce.date(),
5936
+ visits: z175.number(),
5937
+ userId: nullishToOptional(z175.string()),
5938
+ anonymousId: nullishToOptional(z175.string())
5914
5939
  });
5915
5940
 
5916
5941
  // src/dsm/published-doc-page.ts
5917
- import { z as z174 } from "zod";
5942
+ import { z as z176 } from "zod";
5918
5943
  var SHORT_PERSISTENT_ID_LENGTH = 8;
5919
5944
  function tryParseShortPersistentId(url = "/") {
5920
5945
  const lastUrlPart = url.split("/").pop() || "";
5921
5946
  const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
5922
5947
  return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
5923
5948
  }
5924
- var PublishedDocPage = z174.object({
5925
- id: z174.string(),
5926
- publishedDocId: z174.string(),
5927
- pageShortPersistentId: z174.string(),
5928
- pagePersistentId: z174.string().optional(),
5929
- pathV1: z174.string(),
5930
- pathV2: z174.string(),
5931
- storagePath: z174.string(),
5932
- locale: z174.string().optional(),
5933
- isPrivate: z174.boolean(),
5934
- isHidden: z174.boolean(),
5935
- createdAt: z174.coerce.date(),
5936
- updatedAt: z174.coerce.date()
5949
+ var PublishedDocPage = z176.object({
5950
+ id: z176.string(),
5951
+ publishedDocId: z176.string(),
5952
+ pageShortPersistentId: z176.string(),
5953
+ pagePersistentId: z176.string().optional(),
5954
+ pathV1: z176.string(),
5955
+ pathV2: z176.string(),
5956
+ storagePath: z176.string(),
5957
+ locale: z176.string().optional(),
5958
+ isPrivate: z176.boolean(),
5959
+ isHidden: z176.boolean(),
5960
+ createdAt: z176.coerce.date(),
5961
+ updatedAt: z176.coerce.date()
5937
5962
  });
5938
5963
 
5939
5964
  // src/dsm/published-doc.ts
5940
- import { z as z175 } from "zod";
5965
+ import { z as z177 } from "zod";
5941
5966
  var publishedDocEnvironments = ["Live", "Preview"];
5942
- var PublishedDocEnvironment = z175.enum(publishedDocEnvironments);
5943
- var PublishedDocsChecksums = z175.record(z175.string());
5944
- var PublishedDocRoutingVersion = z175.enum(["1", "2"]);
5945
- var PublishedDoc = z175.object({
5946
- id: z175.string(),
5947
- designSystemVersionId: z175.string(),
5948
- createdAt: z175.coerce.date(),
5949
- updatedAt: z175.coerce.date(),
5950
- lastPublishedAt: z175.coerce.date(),
5951
- isDefault: z175.boolean(),
5952
- isPublic: z175.boolean(),
5967
+ var PublishedDocEnvironment = z177.enum(publishedDocEnvironments);
5968
+ var PublishedDocsChecksums = z177.record(z177.string());
5969
+ var PublishedDocRoutingVersion = z177.enum(["1", "2"]);
5970
+ var PublishedDoc = z177.object({
5971
+ id: z177.string(),
5972
+ designSystemVersionId: z177.string(),
5973
+ createdAt: z177.coerce.date(),
5974
+ updatedAt: z177.coerce.date(),
5975
+ lastPublishedAt: z177.coerce.date(),
5976
+ isDefault: z177.boolean(),
5977
+ isPublic: z177.boolean(),
5953
5978
  environment: PublishedDocEnvironment,
5954
5979
  checksums: PublishedDocsChecksums,
5955
- storagePath: z175.string(),
5956
- wasMigrated: z175.boolean(),
5980
+ storagePath: z177.string(),
5981
+ wasMigrated: z177.boolean(),
5957
5982
  routingVersion: PublishedDocRoutingVersion,
5958
- usesLocalizations: z175.boolean(),
5959
- wasPublishedWithLocalizations: z175.boolean(),
5960
- tokenCount: z175.number(),
5961
- assetCount: z175.number()
5983
+ usesLocalizations: z177.boolean(),
5984
+ wasPublishedWithLocalizations: z177.boolean(),
5985
+ tokenCount: z177.number(),
5986
+ assetCount: z177.number()
5962
5987
  });
5963
5988
 
5964
5989
  // src/dsm/storybook-entry.ts
5965
- import { z as z176 } from "zod";
5966
- var StorybookEntryOrigin = z176.object({
5967
- id: z176.string(),
5968
- type: z176.enum(["story", "docs"]),
5969
- name: z176.string(),
5970
- title: z176.string(),
5990
+ import { z as z178 } from "zod";
5991
+ var StorybookEntryOrigin = z178.object({
5992
+ id: z178.string(),
5993
+ type: z178.enum(["story", "docs"]),
5994
+ name: z178.string(),
5995
+ title: z178.string(),
5971
5996
  // Same as 'kind' for v3
5972
- index: z176.number().optional()
5997
+ index: z178.number().optional()
5973
5998
  });
5974
- var StorybookEntry = z176.object({
5975
- id: z176.string(),
5976
- storyId: z176.string(),
5977
- designSystemId: z176.string(),
5978
- sourceId: z176.string(),
5979
- aliases: z176.array(z176.string()).optional(),
5980
- url: z176.string(),
5981
- isDeleted: z176.boolean().optional(),
5999
+ var StorybookEntry = z178.object({
6000
+ id: z178.string(),
6001
+ storyId: z178.string(),
6002
+ designSystemId: z178.string(),
6003
+ sourceId: z178.string(),
6004
+ aliases: z178.array(z178.string()).optional(),
6005
+ url: z178.string(),
6006
+ isDeleted: z178.boolean().optional(),
5982
6007
  origin: StorybookEntryOrigin,
5983
- createdAt: z176.coerce.date(),
5984
- updatedAt: z176.coerce.date()
6008
+ createdAt: z178.coerce.date(),
6009
+ updatedAt: z178.coerce.date()
5985
6010
  });
5986
6011
 
5987
6012
  // src/dsm/storybook-payload.ts
5988
- import { z as z177 } from "zod";
5989
- var StorybookPayload = z177.object({
5990
- id: z177.string(),
5991
- designSystemId: z177.string(),
5992
- sourceId: z177.string(),
5993
- payload: z177.any(),
5994
- createdAt: z177.coerce.date(),
5995
- updatedAt: z177.coerce.date()
6013
+ import { z as z179 } from "zod";
6014
+ var StorybookPayload = z179.object({
6015
+ id: z179.string(),
6016
+ designSystemId: z179.string(),
6017
+ sourceId: z179.string(),
6018
+ payload: z179.any(),
6019
+ createdAt: z179.coerce.date(),
6020
+ updatedAt: z179.coerce.date()
5996
6021
  });
5997
6022
 
5998
6023
  // src/dsm/version.ts
5999
- import { z as z178 } from "zod";
6000
- var DesignSystemVersion = z178.object({
6001
- id: z178.string(),
6002
- version: z178.string(),
6003
- createdAt: z178.coerce.date(),
6004
- designSystemId: z178.string(),
6005
- name: z178.string(),
6006
- comment: z178.string(),
6007
- isReadonly: z178.boolean(),
6008
- changeLog: z178.string(),
6009
- parentId: z178.string().optional(),
6010
- isDraftsFeatureAdopted: z178.boolean()
6011
- });
6012
- var VersionCreationJobStatus = z178.enum(["Success", "InProgress", "Error"]);
6013
- var VersionCreationJob = z178.object({
6014
- id: z178.string(),
6015
- version: z178.string(),
6016
- designSystemId: z178.string(),
6017
- designSystemVersionId: nullishToOptional(z178.string()),
6024
+ import { z as z180 } from "zod";
6025
+ var DesignSystemVersion = z180.object({
6026
+ id: z180.string(),
6027
+ version: z180.string(),
6028
+ createdAt: z180.coerce.date(),
6029
+ designSystemId: z180.string(),
6030
+ name: z180.string(),
6031
+ comment: z180.string(),
6032
+ isReadonly: z180.boolean(),
6033
+ changeLog: z180.string(),
6034
+ parentId: z180.string().optional(),
6035
+ isDraftsFeatureAdopted: z180.boolean()
6036
+ });
6037
+ var VersionCreationJobStatus = z180.enum(["Success", "InProgress", "Error"]);
6038
+ var VersionCreationJob = z180.object({
6039
+ id: z180.string(),
6040
+ version: z180.string(),
6041
+ designSystemId: z180.string(),
6042
+ designSystemVersionId: nullishToOptional(z180.string()),
6018
6043
  status: VersionCreationJobStatus,
6019
- errorMessage: nullishToOptional(z178.string())
6044
+ errorMessage: nullishToOptional(z180.string())
6020
6045
  });
6021
6046
 
6022
6047
  // src/export/export-destinations.ts
6023
6048
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
6024
6049
  var BITBUCKET_MAX_LENGTH = 64;
6025
- var ExportJobDocumentationChanges = z179.object({
6026
- pagePersistentIds: z179.string().array(),
6027
- groupPersistentIds: z179.string().array(),
6028
- selectivePublishing: z179.boolean().optional()
6050
+ var ExportJobDocumentationChanges = z181.object({
6051
+ pagePersistentIds: z181.string().array(),
6052
+ groupPersistentIds: z181.string().array(),
6053
+ selectivePublishing: z181.boolean().optional()
6029
6054
  });
6030
- var ExporterDestinationDocs = z179.object({
6055
+ var ExporterDestinationDocs = z181.object({
6031
6056
  environment: PublishedDocEnvironment,
6032
6057
  changes: nullishToOptional(ExportJobDocumentationChanges)
6033
6058
  });
6034
- var GitCommonDestinationOptions = z179.object({
6035
- branch: z179.string(),
6036
- relativePath: nullishToOptional(z179.string()),
6037
- purgeDirectory: nullishToOptional(z179.boolean()),
6038
- commitAuthorName: nullishToOptional(z179.string()),
6039
- commitAuthorEmail: nullishToOptional(z179.string()),
6040
- commitMessage: nullishToOptional(z179.string()),
6041
- pullRequestTitle: nullishToOptional(z179.string()),
6042
- pullRequestDescription: nullishToOptional(z179.string()),
6043
- checkoutNoTags: nullishToOptional(z179.boolean()),
6044
- checkoutNoBlobs: nullishToOptional(z179.boolean()),
6045
- checkoutSparse: nullishToOptional(z179.boolean())
6046
- });
6047
- var ExporterDestinationS3 = z179.object({});
6048
- var ExporterDestinationGithub = z179.object({
6049
- credentialId: z179.string().optional(),
6059
+ var GitCommonDestinationOptions = z181.object({
6060
+ branch: z181.string(),
6061
+ relativePath: nullishToOptional(z181.string()),
6062
+ purgeDirectory: nullishToOptional(z181.boolean()),
6063
+ commitAuthorName: nullishToOptional(z181.string()),
6064
+ commitAuthorEmail: nullishToOptional(z181.string()),
6065
+ commitMessage: nullishToOptional(z181.string()),
6066
+ pullRequestTitle: nullishToOptional(z181.string()),
6067
+ pullRequestDescription: nullishToOptional(z181.string()),
6068
+ checkoutNoTags: nullishToOptional(z181.boolean()),
6069
+ checkoutNoBlobs: nullishToOptional(z181.boolean()),
6070
+ checkoutSparse: nullishToOptional(z181.boolean())
6071
+ });
6072
+ var ExporterDestinationS3 = z181.object({});
6073
+ var ExporterDestinationGithub = z181.object({
6074
+ credentialId: z181.string().optional(),
6050
6075
  // Repository
6051
- url: z179.string(),
6076
+ url: z181.string(),
6052
6077
  // Legacy deprecated fields. Use `credentialId` instead
6053
- connectionId: nullishToOptional(z179.string()),
6054
- userId: nullishToOptional(z179.number())
6078
+ connectionId: nullishToOptional(z181.string()),
6079
+ userId: nullishToOptional(z181.number())
6055
6080
  }).extend(GitCommonDestinationOptions.shape);
6056
- var ExporterDestinationAzure = z179.object({
6057
- credentialId: z179.string().optional(),
6081
+ var ExporterDestinationAzure = z181.object({
6082
+ credentialId: z181.string().optional(),
6058
6083
  // Repository
6059
- organizationId: z179.string(),
6060
- projectId: z179.string(),
6061
- repositoryId: z179.string(),
6084
+ organizationId: z181.string(),
6085
+ projectId: z181.string(),
6086
+ repositoryId: z181.string(),
6062
6087
  // Maybe not needed
6063
- url: nullishToOptional(z179.string()),
6088
+ url: nullishToOptional(z181.string()),
6064
6089
  // Legacy deprecated fields. Use `credentialId` instead
6065
- connectionId: nullishToOptional(z179.string()),
6066
- userId: nullishToOptional(z179.number())
6090
+ connectionId: nullishToOptional(z181.string()),
6091
+ userId: nullishToOptional(z181.number())
6067
6092
  }).extend(GitCommonDestinationOptions.shape);
6068
- var ExporterDestinationGitlab = z179.object({
6069
- credentialId: z179.string().optional(),
6093
+ var ExporterDestinationGitlab = z181.object({
6094
+ credentialId: z181.string().optional(),
6070
6095
  // Repository
6071
- projectId: z179.string(),
6096
+ projectId: z181.string(),
6072
6097
  // Maybe not needed
6073
- url: nullishToOptional(z179.string()),
6098
+ url: nullishToOptional(z181.string()),
6074
6099
  // Legacy deprecated fields. Use `credentialId` instead
6075
- connectionId: nullishToOptional(z179.string()),
6076
- userId: nullishToOptional(z179.number())
6100
+ connectionId: nullishToOptional(z181.string()),
6101
+ userId: nullishToOptional(z181.number())
6077
6102
  }).extend(GitCommonDestinationOptions.shape);
6078
- var ExporterDestinationBitbucket = z179.object({
6079
- credentialId: z179.string().optional(),
6103
+ var ExporterDestinationBitbucket = z181.object({
6104
+ credentialId: z181.string().optional(),
6080
6105
  // Repository
6081
- workspaceSlug: z179.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
6082
- projectKey: z179.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
6083
- repoSlug: z179.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
6084
- url: nullishToOptional(z179.string()),
6106
+ workspaceSlug: z181.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
6107
+ projectKey: z181.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
6108
+ repoSlug: z181.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
6109
+ url: nullishToOptional(z181.string()),
6085
6110
  // Legacy deprecated fields. Use `credentialId` instead
6086
- connectionId: nullishToOptional(z179.string()),
6087
- userId: nullishToOptional(z179.number())
6111
+ connectionId: nullishToOptional(z181.string()),
6112
+ userId: nullishToOptional(z181.number())
6088
6113
  }).extend(GitCommonDestinationOptions.shape);
6089
- var ExportDestinationsMap = z179.object({
6090
- webhookUrl: z179.string().optional(),
6114
+ var ExportDestinationsMap = z181.object({
6115
+ webhookUrl: z181.string().optional(),
6091
6116
  destinationSnDocs: ExporterDestinationDocs.optional(),
6092
6117
  destinationS3: ExporterDestinationS3.optional(),
6093
6118
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -6095,8 +6120,8 @@ var ExportDestinationsMap = z179.object({
6095
6120
  destinationGitlab: ExporterDestinationGitlab.optional(),
6096
6121
  destinationBitbucket: ExporterDestinationBitbucket.optional()
6097
6122
  });
6098
- var ExportDestinationsMapUpdate = z179.object({
6099
- webhookUrl: z179.string().nullish(),
6123
+ var ExportDestinationsMapUpdate = z181.object({
6124
+ webhookUrl: z181.string().nullish(),
6100
6125
  destinationSnDocs: ExporterDestinationDocs.nullish(),
6101
6126
  destinationS3: ExporterDestinationS3.nullish(),
6102
6127
  destinationGithub: ExporterDestinationGithub.nullish(),
@@ -6106,164 +6131,164 @@ var ExportDestinationsMapUpdate = z179.object({
6106
6131
  });
6107
6132
 
6108
6133
  // src/export/pipeline.ts
6109
- var PipelineEventType = z180.enum([
6134
+ var PipelineEventType = z182.enum([
6110
6135
  "OnVersionReleased",
6111
6136
  "OnHeadChanged",
6112
6137
  "OnSourceUpdated",
6113
6138
  "OnDocumentationPublished",
6114
6139
  "None"
6115
6140
  ]);
6116
- var PipelineDestinationGitType = z180.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
6117
- var PipelineDestinationExtraType = z180.enum(["WebhookUrl", "S3", "Documentation"]);
6118
- var PipelineDestinationType = z180.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
6119
- var Pipeline = z180.object({
6120
- id: z180.string(),
6121
- name: z180.string(),
6141
+ var PipelineDestinationGitType = z182.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
6142
+ var PipelineDestinationExtraType = z182.enum(["WebhookUrl", "S3", "Documentation"]);
6143
+ var PipelineDestinationType = z182.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
6144
+ var Pipeline = z182.object({
6145
+ id: z182.string(),
6146
+ name: z182.string(),
6122
6147
  eventType: PipelineEventType,
6123
- isEnabled: z180.boolean(),
6124
- workspaceId: z180.string(),
6125
- designSystemId: z180.string(),
6126
- exporterId: z180.string(),
6127
- brandPersistentId: z180.string().optional(),
6128
- themePersistentId: z180.string().optional(),
6129
- themePersistentIds: z180.string().array().optional(),
6148
+ isEnabled: z182.boolean(),
6149
+ workspaceId: z182.string(),
6150
+ designSystemId: z182.string(),
6151
+ exporterId: z182.string(),
6152
+ brandPersistentId: z182.string().optional(),
6153
+ themePersistentId: z182.string().optional(),
6154
+ themePersistentIds: z182.string().array().optional(),
6130
6155
  exporterPropertyValues: ExporterPropertyValueMap.optional(),
6131
- isExporterDeprecated: z180.boolean(),
6156
+ isExporterDeprecated: z182.boolean(),
6132
6157
  // Destinations
6133
6158
  ...ExportDestinationsMap.shape
6134
6159
  });
6135
6160
 
6136
6161
  // src/data-dumps/code-integration-dump.ts
6137
- var ExportJobDump = z181.object({
6138
- id: z181.string(),
6139
- createdAt: z181.coerce.date(),
6140
- finishedAt: z181.coerce.date(),
6141
- exportArtefacts: z181.string()
6162
+ var ExportJobDump = z183.object({
6163
+ id: z183.string(),
6164
+ createdAt: z183.coerce.date(),
6165
+ finishedAt: z183.coerce.date(),
6166
+ exportArtefacts: z183.string()
6142
6167
  });
6143
- var CodeIntegrationDump = z181.object({
6168
+ var CodeIntegrationDump = z183.object({
6144
6169
  exporters: Exporter.array(),
6145
6170
  pipelines: Pipeline.array(),
6146
6171
  exportJobs: ExportJobDump.array()
6147
6172
  });
6148
6173
 
6149
6174
  // src/data-dumps/design-system-dump.ts
6150
- import { z as z191 } from "zod";
6175
+ import { z as z193 } from "zod";
6151
6176
 
6152
6177
  // src/data-dumps/design-system-version-dump.ts
6153
- import { z as z190 } from "zod";
6178
+ import { z as z192 } from "zod";
6154
6179
 
6155
6180
  // src/liveblocks/rooms/design-system-version-room.ts
6156
- import { z as z182 } from "zod";
6181
+ import { z as z184 } from "zod";
6157
6182
  var DesignSystemVersionRoom = Entity.extend({
6158
- designSystemVersionId: z182.string(),
6159
- liveblocksId: z182.string()
6160
- });
6161
- var DesignSystemVersionRoomInternalSettings = z182.object({
6162
- routingVersion: z182.string(),
6163
- isDraftFeatureAdopted: z182.boolean(),
6164
- isApprovalFeatureEnabled: z182.boolean(),
6165
- approvalRequiredForPublishing: z182.boolean()
6166
- });
6167
- var DesignSystemVersionRoomInitialState = z182.object({
6168
- pages: z182.array(DocumentationPageV2),
6169
- groups: z182.array(ElementGroup),
6170
- pageSnapshots: z182.array(DocumentationPageSnapshot),
6171
- groupSnapshots: z182.array(ElementGroupSnapshot),
6172
- pageApprovals: z182.array(DocumentationPageApproval),
6183
+ designSystemVersionId: z184.string(),
6184
+ liveblocksId: z184.string()
6185
+ });
6186
+ var DesignSystemVersionRoomInternalSettings = z184.object({
6187
+ routingVersion: z184.string(),
6188
+ isDraftFeatureAdopted: z184.boolean(),
6189
+ isApprovalFeatureEnabled: z184.boolean(),
6190
+ approvalRequiredForPublishing: z184.boolean()
6191
+ });
6192
+ var DesignSystemVersionRoomInitialState = z184.object({
6193
+ pages: z184.array(DocumentationPageV2),
6194
+ groups: z184.array(ElementGroup),
6195
+ pageSnapshots: z184.array(DocumentationPageSnapshot),
6196
+ groupSnapshots: z184.array(ElementGroupSnapshot),
6197
+ pageApprovals: z184.array(DocumentationPageApproval),
6173
6198
  internalSettings: DesignSystemVersionRoomInternalSettings,
6174
- pageHashes: z182.record(z182.string()).optional(),
6175
- storageVersion: z182.literal(1).or(z182.literal(2))
6176
- });
6177
- var DesignSystemVersionRoomUpdate = z182.object({
6178
- pages: z182.array(DocumentationPageV2),
6179
- groups: z182.array(ElementGroup),
6180
- pageIdsToDelete: z182.array(z182.string()),
6181
- groupIdsToDelete: z182.array(z182.string()),
6182
- pageSnapshots: z182.array(DocumentationPageSnapshot),
6183
- groupSnapshots: z182.array(ElementGroupSnapshot),
6184
- pageSnapshotIdsToDelete: z182.array(z182.string()),
6185
- groupSnapshotIdsToDelete: z182.array(z182.string()),
6186
- pageHashesToUpdate: z182.record(z182.string(), z182.string()),
6187
- pageApprovals: z182.array(DocumentationPageApproval),
6188
- pageApprovalIdsToDelete: z182.array(z182.string()),
6189
- executedTransactionIds: z182.array(z182.string())
6199
+ pageHashes: z184.record(z184.string()).optional(),
6200
+ storageVersion: z184.literal(1).or(z184.literal(2))
6201
+ });
6202
+ var DesignSystemVersionRoomUpdate = z184.object({
6203
+ pages: z184.array(DocumentationPageV2),
6204
+ groups: z184.array(ElementGroup),
6205
+ pageIdsToDelete: z184.array(z184.string()),
6206
+ groupIdsToDelete: z184.array(z184.string()),
6207
+ pageSnapshots: z184.array(DocumentationPageSnapshot),
6208
+ groupSnapshots: z184.array(ElementGroupSnapshot),
6209
+ pageSnapshotIdsToDelete: z184.array(z184.string()),
6210
+ groupSnapshotIdsToDelete: z184.array(z184.string()),
6211
+ pageHashesToUpdate: z184.record(z184.string(), z184.string()),
6212
+ pageApprovals: z184.array(DocumentationPageApproval),
6213
+ pageApprovalIdsToDelete: z184.array(z184.string()),
6214
+ executedTransactionIds: z184.array(z184.string())
6190
6215
  });
6191
6216
 
6192
6217
  // src/liveblocks/rooms/documentation-page-room.ts
6193
- import { z as z183 } from "zod";
6218
+ import { z as z185 } from "zod";
6194
6219
  var DocumentationPageRoom = Entity.extend({
6195
- designSystemVersionId: z183.string(),
6196
- documentationPageId: z183.string(),
6197
- liveblocksId: z183.string(),
6198
- isDirty: z183.boolean()
6220
+ designSystemVersionId: z185.string(),
6221
+ documentationPageId: z185.string(),
6222
+ liveblocksId: z185.string(),
6223
+ isDirty: z185.boolean()
6199
6224
  });
6200
- var DocumentationPageRoomState = z183.object({
6201
- pageItems: z183.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2))
6225
+ var DocumentationPageRoomState = z185.object({
6226
+ pageItems: z185.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2))
6202
6227
  });
6203
- var DocumentationPageRoomRoomUpdate = z183.object({
6228
+ var DocumentationPageRoomRoomUpdate = z185.object({
6204
6229
  page: DocumentationPageV2,
6205
6230
  pageParent: ElementGroup
6206
6231
  });
6207
6232
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
6208
- pageItems: z183.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
6209
- blockDefinitions: z183.array(PageBlockDefinition)
6233
+ pageItems: z185.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
6234
+ blockDefinitions: z185.array(PageBlockDefinition)
6210
6235
  });
6211
- var RestoredDocumentationPage = z183.object({
6236
+ var RestoredDocumentationPage = z185.object({
6212
6237
  page: DocumentationPageV2,
6213
6238
  pageParent: ElementGroup,
6214
6239
  pageContent: DocumentationPageContentData,
6215
- contentHash: z183.string()
6240
+ contentHash: z185.string()
6216
6241
  });
6217
- var RestoredDocumentationGroup = z183.object({
6242
+ var RestoredDocumentationGroup = z185.object({
6218
6243
  group: ElementGroup,
6219
6244
  parent: ElementGroup
6220
6245
  });
6221
6246
 
6222
6247
  // src/liveblocks/rooms/forge-feature-room.ts
6223
- import { z as z184 } from "zod";
6248
+ import { z as z186 } from "zod";
6224
6249
  var ForgeFeatureRoom = Entity.extend({
6225
- featureId: z184.string(),
6226
- projectId: z184.string(),
6227
- liveblocksId: z184.string()
6250
+ featureId: z186.string(),
6251
+ projectId: z186.string(),
6252
+ liveblocksId: z186.string()
6228
6253
  });
6229
6254
 
6230
6255
  // src/liveblocks/rooms/forge-project-artifact-room.ts
6231
- import { z as z185 } from "zod";
6256
+ import { z as z187 } from "zod";
6232
6257
  var ForgeProjectArtifactRoom = Entity.extend({
6233
- artifactId: z185.string(),
6234
- projectId: z185.string(),
6235
- liveblocksId: z185.string(),
6236
- isDirty: z185.boolean()
6258
+ artifactId: z187.string(),
6259
+ projectId: z187.string(),
6260
+ liveblocksId: z187.string(),
6261
+ isDirty: z187.boolean()
6237
6262
  });
6238
6263
 
6239
6264
  // src/liveblocks/rooms/forge-project-room.ts
6240
- import { z as z186 } from "zod";
6265
+ import { z as z188 } from "zod";
6241
6266
  var ForgeProjectRoom = Entity.extend({
6242
- projectId: z186.string(),
6243
- liveblocksId: z186.string()
6267
+ projectId: z188.string(),
6268
+ liveblocksId: z188.string()
6244
6269
  });
6245
- var ForgeProjectRoomInitialState = z186.object({
6246
- artifacts: z186.array(ForgeProjectArtifact),
6247
- features: z186.array(ProjectFeature),
6248
- artifactSections: z186.array(ForgeSection),
6249
- featureSections: z186.array(ForgeSection),
6250
- relations: z186.array(ForgeRelation)
6251
- });
6252
- var ForgeProjectRoomUpdate = z186.object({
6253
- artifacts: z186.array(ForgeProjectArtifact).optional(),
6254
- artifactIdsToDelete: z186.array(z186.string()).optional(),
6255
- features: z186.array(ProjectFeature).optional(),
6256
- featureIdsToDelete: z186.array(z186.string()).optional(),
6257
- artifactSections: z186.array(ForgeSection).optional(),
6258
- artifactSectionIdsToDelete: z186.array(z186.string()).optional(),
6259
- featureSections: z186.array(ForgeSection).optional(),
6260
- featureSectionIdsToDelete: z186.array(z186.string()).optional(),
6261
- relations: z186.array(ForgeRelation).optional(),
6262
- executedTransactionIds: z186.string().array().optional()
6270
+ var ForgeProjectRoomInitialState = z188.object({
6271
+ artifacts: z188.array(ForgeProjectArtifact),
6272
+ features: z188.array(ProjectFeature),
6273
+ artifactSections: z188.array(ForgeSection),
6274
+ featureSections: z188.array(ForgeSection),
6275
+ relations: z188.array(ForgeRelation)
6276
+ });
6277
+ var ForgeProjectRoomUpdate = z188.object({
6278
+ artifacts: z188.array(ForgeProjectArtifact).optional(),
6279
+ artifactIdsToDelete: z188.array(z188.string()).optional(),
6280
+ features: z188.array(ProjectFeature).optional(),
6281
+ featureIdsToDelete: z188.array(z188.string()).optional(),
6282
+ artifactSections: z188.array(ForgeSection).optional(),
6283
+ artifactSectionIdsToDelete: z188.array(z188.string()).optional(),
6284
+ featureSections: z188.array(ForgeSection).optional(),
6285
+ featureSectionIdsToDelete: z188.array(z188.string()).optional(),
6286
+ relations: z188.array(ForgeRelation).optional(),
6287
+ executedTransactionIds: z188.string().array().optional()
6263
6288
  });
6264
6289
 
6265
6290
  // src/liveblocks/rooms/room-type.ts
6266
- import { z as z187 } from "zod";
6291
+ import { z as z189 } from "zod";
6267
6292
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
6268
6293
  RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
6269
6294
  RoomTypeEnum2["DocumentationPage"] = "doc-page";
@@ -6274,36 +6299,36 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
6274
6299
  RoomTypeEnum2["ForgeProjectFeature"] = "forge-project-feature";
6275
6300
  return RoomTypeEnum2;
6276
6301
  })(RoomTypeEnum || {});
6277
- var RoomTypeSchema = z187.nativeEnum(RoomTypeEnum);
6302
+ var RoomTypeSchema = z189.nativeEnum(RoomTypeEnum);
6278
6303
  var RoomType = RoomTypeSchema.enum;
6279
6304
 
6280
6305
  // src/liveblocks/rooms/workspace-room.ts
6281
- import { z as z188 } from "zod";
6306
+ import { z as z190 } from "zod";
6282
6307
  var WorkspaceRoom = Entity.extend({
6283
- workspaceId: z188.string(),
6284
- liveblocksId: z188.string()
6308
+ workspaceId: z190.string(),
6309
+ liveblocksId: z190.string()
6285
6310
  });
6286
6311
 
6287
6312
  // src/data-dumps/published-docs-dump.ts
6288
- import { z as z189 } from "zod";
6289
- var PublishedDocsDump = z189.object({
6313
+ import { z as z191 } from "zod";
6314
+ var PublishedDocsDump = z191.object({
6290
6315
  documentation: PublishedDoc,
6291
6316
  pages: PublishedDocPage.array()
6292
6317
  });
6293
6318
 
6294
6319
  // src/data-dumps/design-system-version-dump.ts
6295
- var DocumentationThreadDump = z190.object({
6320
+ var DocumentationThreadDump = z192.object({
6296
6321
  thread: DocumentationCommentThread,
6297
6322
  comments: DocumentationComment.array()
6298
6323
  });
6299
- var DocumentationPageRoomDump = z190.object({
6324
+ var DocumentationPageRoomDump = z192.object({
6300
6325
  room: DocumentationPageRoom,
6301
6326
  threads: DocumentationThreadDump.array()
6302
6327
  });
6303
- var DesignSystemVersionMultiplayerDump = z190.object({
6328
+ var DesignSystemVersionMultiplayerDump = z192.object({
6304
6329
  documentationPages: DocumentationPageRoomDump.array()
6305
6330
  });
6306
- var DesignSystemVersionDump = z190.object({
6331
+ var DesignSystemVersionDump = z192.object({
6307
6332
  version: DesignSystemVersion,
6308
6333
  brands: Brand.array(),
6309
6334
  elements: DesignElement.array(),
@@ -6318,7 +6343,7 @@ var DesignSystemVersionDump = z190.object({
6318
6343
  });
6319
6344
 
6320
6345
  // src/data-dumps/design-system-dump.ts
6321
- var DesignSystemDump = z191.object({
6346
+ var DesignSystemDump = z193.object({
6322
6347
  designSystem: DesignSystem,
6323
6348
  dataSources: DataSource.array(),
6324
6349
  versions: DesignSystemVersionDump.array(),
@@ -6327,50 +6352,50 @@ var DesignSystemDump = z191.object({
6327
6352
  });
6328
6353
 
6329
6354
  // src/data-dumps/user-data-dump.ts
6330
- import { z as z194 } from "zod";
6355
+ import { z as z196 } from "zod";
6331
6356
 
6332
6357
  // src/data-dumps/workspace-dump.ts
6333
- import { z as z193 } from "zod";
6358
+ import { z as z195 } from "zod";
6334
6359
 
6335
6360
  // src/integrations/integration.ts
6336
- import { z as z192 } from "zod";
6337
- var IntegrationDesignSystem = z192.object({
6338
- designSystemId: z192.string(),
6339
- brandId: z192.string(),
6340
- title: z192.string().optional(),
6341
- userId: z192.string().optional(),
6342
- date: z192.coerce.date().optional()
6343
- });
6344
- var IntegrationCredentialsType = z192.enum(["OAuth2", "PAT"]);
6345
- var IntegrationCredentialsState = z192.enum(["Active", "Inactive"]);
6346
- var IntegrationCredentialsProfile = z192.object({
6347
- id: nullishToOptional(z192.string()),
6348
- email: nullishToOptional(z192.string()),
6349
- handle: nullishToOptional(z192.string()),
6350
- type: nullishToOptional(z192.string()),
6351
- avatarUrl: nullishToOptional(z192.string()),
6352
- organization: nullishToOptional(z192.string()),
6353
- collection: nullishToOptional(z192.string())
6354
- });
6355
- var IntegrationCredentials = z192.object({
6356
- id: z192.string(),
6361
+ import { z as z194 } from "zod";
6362
+ var IntegrationDesignSystem = z194.object({
6363
+ designSystemId: z194.string(),
6364
+ brandId: z194.string(),
6365
+ title: z194.string().optional(),
6366
+ userId: z194.string().optional(),
6367
+ date: z194.coerce.date().optional()
6368
+ });
6369
+ var IntegrationCredentialsType = z194.enum(["OAuth2", "PAT"]);
6370
+ var IntegrationCredentialsState = z194.enum(["Active", "Inactive"]);
6371
+ var IntegrationCredentialsProfile = z194.object({
6372
+ id: nullishToOptional(z194.string()),
6373
+ email: nullishToOptional(z194.string()),
6374
+ handle: nullishToOptional(z194.string()),
6375
+ type: nullishToOptional(z194.string()),
6376
+ avatarUrl: nullishToOptional(z194.string()),
6377
+ organization: nullishToOptional(z194.string()),
6378
+ collection: nullishToOptional(z194.string())
6379
+ });
6380
+ var IntegrationCredentials = z194.object({
6381
+ id: z194.string(),
6357
6382
  type: IntegrationCredentialsType,
6358
- integrationId: z192.string(),
6359
- accessToken: z192.string(),
6360
- userId: z192.string(),
6361
- createdAt: z192.coerce.date(),
6362
- refreshToken: z192.string().optional(),
6363
- tokenName: z192.string().optional(),
6364
- expiresAt: z192.coerce.date().optional(),
6365
- refreshedAt: z192.coerce.date().optional(),
6366
- username: z192.string().optional(),
6367
- appInstallationId: z192.string().optional(),
6383
+ integrationId: z194.string(),
6384
+ accessToken: z194.string(),
6385
+ userId: z194.string(),
6386
+ createdAt: z194.coerce.date(),
6387
+ refreshToken: z194.string().optional(),
6388
+ tokenName: z194.string().optional(),
6389
+ expiresAt: z194.coerce.date().optional(),
6390
+ refreshedAt: z194.coerce.date().optional(),
6391
+ username: z194.string().optional(),
6392
+ appInstallationId: z194.string().optional(),
6368
6393
  profile: IntegrationCredentialsProfile.optional(),
6369
- customUrl: z192.string().optional(),
6394
+ customUrl: z194.string().optional(),
6370
6395
  state: IntegrationCredentialsState,
6371
6396
  user: UserMinified.optional()
6372
6397
  });
6373
- var ExtendedIntegrationType = z192.enum([
6398
+ var ExtendedIntegrationType = z194.enum([
6374
6399
  "Figma",
6375
6400
  "Github",
6376
6401
  "Gitlab",
@@ -6381,26 +6406,26 @@ var ExtendedIntegrationType = z192.enum([
6381
6406
  ]);
6382
6407
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
6383
6408
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
6384
- var Integration = z192.object({
6385
- id: z192.string(),
6386
- workspaceId: z192.string(),
6409
+ var Integration = z194.object({
6410
+ id: z194.string(),
6411
+ workspaceId: z194.string(),
6387
6412
  type: IntegrationType,
6388
- createdAt: z192.coerce.date(),
6389
- integrationCredentials: z192.array(IntegrationCredentials).optional()
6390
- });
6391
- var IntegrationToken = z192.object({
6392
- access_token: z192.string(),
6393
- refresh_token: z192.string().optional(),
6394
- expires_in: z192.union([z192.number().optional(), z192.string().optional()]),
6395
- token_type: z192.string().optional(),
6396
- token_name: z192.string().optional(),
6397
- token_azure_organization_name: z192.string().optional(),
6413
+ createdAt: z194.coerce.date(),
6414
+ integrationCredentials: z194.array(IntegrationCredentials).optional()
6415
+ });
6416
+ var IntegrationToken = z194.object({
6417
+ access_token: z194.string(),
6418
+ refresh_token: z194.string().optional(),
6419
+ expires_in: z194.union([z194.number().optional(), z194.string().optional()]),
6420
+ token_type: z194.string().optional(),
6421
+ token_name: z194.string().optional(),
6422
+ token_azure_organization_name: z194.string().optional(),
6398
6423
  // Azure Cloud PAT only
6399
- token_azure_collection_name: z192.string().optional(),
6424
+ token_azure_collection_name: z194.string().optional(),
6400
6425
  // Azure Server PAT only
6401
- token_bitbucket_username: z192.string().optional(),
6426
+ token_bitbucket_username: z194.string().optional(),
6402
6427
  // Bitbucket only
6403
- custom_url: z192.string().optional().transform((value) => {
6428
+ custom_url: z194.string().optional().transform((value) => {
6404
6429
  if (!value?.trim()) return void 0;
6405
6430
  return formatCustomUrl(value);
6406
6431
  })
@@ -6437,7 +6462,7 @@ function formatCustomUrl(url) {
6437
6462
  }
6438
6463
 
6439
6464
  // src/data-dumps/workspace-dump.ts
6440
- var WorkspaceDump = z193.object({
6465
+ var WorkspaceDump = z195.object({
6441
6466
  workspace: Workspace,
6442
6467
  designSystems: DesignSystemDump.array(),
6443
6468
  codeIntegration: CodeIntegrationDump,
@@ -6445,150 +6470,150 @@ var WorkspaceDump = z193.object({
6445
6470
  });
6446
6471
 
6447
6472
  // src/data-dumps/user-data-dump.ts
6448
- var UserDump = z194.object({
6473
+ var UserDump = z196.object({
6449
6474
  user: User,
6450
6475
  workspaces: WorkspaceDump.array()
6451
6476
  });
6452
6477
 
6453
6478
  // src/docs-server/session.ts
6454
- import { z as z195 } from "zod";
6455
- var NpmProxyToken = z195.object({
6456
- access: z195.string(),
6457
- expiresAt: z195.number()
6479
+ import { z as z197 } from "zod";
6480
+ var NpmProxyToken = z197.object({
6481
+ access: z197.string(),
6482
+ expiresAt: z197.number()
6458
6483
  });
6459
- var SessionData = z195.object({
6460
- returnToUrl: z195.string().optional(),
6484
+ var SessionData = z197.object({
6485
+ returnToUrl: z197.string().optional(),
6461
6486
  npmProxyToken: NpmProxyToken.optional()
6462
6487
  });
6463
- var Session = z195.object({
6464
- id: z195.string(),
6465
- expiresAt: z195.coerce.date(),
6466
- userId: z195.string().nullable(),
6467
- anonymousId: z195.string().nullable(),
6488
+ var Session = z197.object({
6489
+ id: z197.string(),
6490
+ expiresAt: z197.coerce.date(),
6491
+ userId: z197.string().nullable(),
6492
+ anonymousId: z197.string().nullable(),
6468
6493
  data: SessionData
6469
6494
  });
6470
- var AuthTokens = z195.object({
6471
- access: z195.string(),
6472
- refresh: z195.string()
6495
+ var AuthTokens = z197.object({
6496
+ access: z197.string(),
6497
+ refresh: z197.string()
6473
6498
  });
6474
- var UserSession = z195.object({
6499
+ var UserSession = z197.object({
6475
6500
  session: Session,
6476
6501
  user: User.nullable()
6477
6502
  });
6478
6503
 
6479
6504
  // src/emails/design-system-invite.ts
6480
- import { z as z196 } from "zod";
6481
- var DesignSystemInviteEmailRecipient = z196.object({
6482
- email: z196.string(),
6505
+ import { z as z198 } from "zod";
6506
+ var DesignSystemInviteEmailRecipient = z198.object({
6507
+ email: z198.string(),
6483
6508
  role: WorkspaceRoleSchema
6484
6509
  });
6485
- var DesignSystemInviteEmailData = z196.object({
6510
+ var DesignSystemInviteEmailData = z198.object({
6486
6511
  workspace: Workspace,
6487
6512
  designSystem: DesignSystem,
6488
6513
  invitedBy: User,
6489
- documentationDomain: z196.string().optional()
6514
+ documentationDomain: z198.string().optional()
6490
6515
  });
6491
6516
 
6492
6517
  // src/emails/workspace-invite.ts
6493
- import { z as z197 } from "zod";
6494
- var WorkspaceInviteEmailRecipient = z197.object({
6495
- email: z197.string(),
6518
+ import { z as z199 } from "zod";
6519
+ var WorkspaceInviteEmailRecipient = z199.object({
6520
+ email: z199.string(),
6496
6521
  role: WorkspaceRoleSchema,
6497
6522
  seatType: WorkspaceSeatType
6498
6523
  });
6499
- var WorkspaceInviteEmailData = z197.object({
6524
+ var WorkspaceInviteEmailData = z199.object({
6500
6525
  workspace: Workspace,
6501
6526
  invitedBy: User,
6502
- documentationDomain: z197.string().optional()
6527
+ documentationDomain: z199.string().optional()
6503
6528
  });
6504
6529
 
6505
6530
  // src/events/base.ts
6506
- import { z as z201 } from "zod";
6531
+ import { z as z203 } from "zod";
6507
6532
 
6508
6533
  // src/events/data-source-imported.ts
6509
- import { z as z198 } from "zod";
6510
- var EventDataSourceImported = z198.object({
6511
- type: z198.literal("DataSourceImported"),
6512
- workspaceId: z198.string(),
6513
- designSystemId: z198.string()
6534
+ import { z as z200 } from "zod";
6535
+ var EventDataSourceImported = z200.object({
6536
+ type: z200.literal("DataSourceImported"),
6537
+ workspaceId: z200.string(),
6538
+ designSystemId: z200.string()
6514
6539
  });
6515
6540
 
6516
6541
  // src/events/version-released.ts
6517
- import { z as z199 } from "zod";
6518
- var EventVersionReleased = z199.object({
6519
- type: z199.literal("DesignSystemVersionReleased"),
6520
- workspaceId: z199.string(),
6521
- designSystemId: z199.string(),
6522
- versionId: z199.string()
6542
+ import { z as z201 } from "zod";
6543
+ var EventVersionReleased = z201.object({
6544
+ type: z201.literal("DesignSystemVersionReleased"),
6545
+ workspaceId: z201.string(),
6546
+ designSystemId: z201.string(),
6547
+ versionId: z201.string()
6523
6548
  });
6524
6549
 
6525
6550
  // src/events/documentation-published.ts
6526
- import { z as z200 } from "zod";
6527
- var EventDocumentationPublished = z200.object({
6528
- type: z200.literal("DocumentationPublished"),
6529
- workspaceId: z200.string(),
6530
- designSystemId: z200.string(),
6531
- versionId: z200.string()
6551
+ import { z as z202 } from "zod";
6552
+ var EventDocumentationPublished = z202.object({
6553
+ type: z202.literal("DocumentationPublished"),
6554
+ workspaceId: z202.string(),
6555
+ designSystemId: z202.string(),
6556
+ versionId: z202.string()
6532
6557
  });
6533
6558
 
6534
6559
  // src/events/base.ts
6535
- var Event = z201.discriminatedUnion("type", [
6560
+ var Event = z203.discriminatedUnion("type", [
6536
6561
  EventVersionReleased,
6537
6562
  EventDataSourceImported,
6538
6563
  EventDocumentationPublished
6539
6564
  ]);
6540
6565
 
6541
6566
  // src/export/export-runner/export-context.ts
6542
- import { z as z202 } from "zod";
6543
- var ExportJobDocumentationContext = z202.object({
6544
- isSingleVersionDocs: z202.boolean(),
6545
- versionSlug: z202.string(),
6567
+ import { z as z204 } from "zod";
6568
+ var ExportJobDocumentationContext = z204.object({
6569
+ isSingleVersionDocs: z204.boolean(),
6570
+ versionSlug: z204.string(),
6546
6571
  environment: PublishedDocEnvironment
6547
6572
  });
6548
- var ExportJobDebugContext = z202.object({
6549
- debugMode: z202.boolean().optional(),
6550
- concurrency: z202.number().optional(),
6551
- preloadData: z202.string().optional(),
6552
- concurrencyMode: z202.string().optional(),
6553
- cacheSdk: z202.string().optional(),
6554
- logSdkNetwork: z202.boolean().optional(),
6555
- profilerMode: z202.string().optional()
6556
- });
6557
- var ExportJobContext = z202.object({
6558
- apiUrl: z202.string(),
6559
- accessToken: z202.string(),
6560
- designSystemId: z202.string(),
6561
- designSystemName: z202.string(),
6562
- exporterId: z202.string(),
6563
- versionId: z202.string(),
6564
- brandId: z202.string().optional(),
6565
- themeId: z202.string().optional(),
6566
- themePersistentIds: z202.string().array().optional(),
6567
- previewMode: z202.boolean().optional(),
6568
- exporterName: z202.string(),
6573
+ var ExportJobDebugContext = z204.object({
6574
+ debugMode: z204.boolean().optional(),
6575
+ concurrency: z204.number().optional(),
6576
+ preloadData: z204.string().optional(),
6577
+ concurrencyMode: z204.string().optional(),
6578
+ cacheSdk: z204.string().optional(),
6579
+ logSdkNetwork: z204.boolean().optional(),
6580
+ profilerMode: z204.string().optional()
6581
+ });
6582
+ var ExportJobContext = z204.object({
6583
+ apiUrl: z204.string(),
6584
+ accessToken: z204.string(),
6585
+ designSystemId: z204.string(),
6586
+ designSystemName: z204.string(),
6587
+ exporterId: z204.string(),
6588
+ versionId: z204.string(),
6589
+ brandId: z204.string().optional(),
6590
+ themeId: z204.string().optional(),
6591
+ themePersistentIds: z204.string().array().optional(),
6592
+ previewMode: z204.boolean().optional(),
6593
+ exporterName: z204.string(),
6569
6594
  documentation: ExportJobDocumentationContext.optional(),
6570
6595
  debug: ExportJobDebugContext.optional()
6571
6596
  });
6572
- var ExportJobExporterConfiguration = z202.object({
6573
- exporterPackageUrl: z202.string(),
6597
+ var ExportJobExporterConfiguration = z204.object({
6598
+ exporterPackageUrl: z204.string(),
6574
6599
  exporterPropertyValues: ExporterConfigurationPropertyValue.array(),
6575
6600
  exporterPropertyValuesV2: ExporterPropertyValueMap.optional()
6576
6601
  });
6577
6602
 
6578
6603
  // src/export/export-runner/exporter-payload.ts
6579
- import { z as z203 } from "zod";
6580
- var ExporterFunctionPayload = z203.object({
6581
- exportJobId: z203.string(),
6582
- exportContextId: z203.string(),
6583
- designSystemId: z203.string(),
6584
- workspaceId: z203.string(),
6585
- exporterId: z203.string(),
6586
- runnerType: z203.enum(["High", "Low"])
6604
+ import { z as z205 } from "zod";
6605
+ var ExporterFunctionPayload = z205.object({
6606
+ exportJobId: z205.string(),
6607
+ exportContextId: z205.string(),
6608
+ designSystemId: z205.string(),
6609
+ workspaceId: z205.string(),
6610
+ exporterId: z205.string(),
6611
+ runnerType: z205.enum(["High", "Low"])
6587
6612
  });
6588
6613
 
6589
6614
  // src/export/export-jobs.ts
6590
- import { z as z204 } from "zod";
6591
- var ExportJobDestinationType = z204.enum([
6615
+ import { z as z206 } from "zod";
6616
+ var ExportJobDestinationType = z206.enum([
6592
6617
  "s3",
6593
6618
  "webhookUrl",
6594
6619
  "github",
@@ -6597,31 +6622,31 @@ var ExportJobDestinationType = z204.enum([
6597
6622
  "gitlab",
6598
6623
  "bitbucket"
6599
6624
  ]);
6600
- var ExportJobStatus = z204.enum(["InProgress", "Success", "Failed", "Timeout"]);
6601
- var ExportJobLogEntryType = z204.enum(["success", "info", "warning", "error", "user"]);
6602
- var ExportJobLogEntry = z204.object({
6603
- id: z204.string().optional(),
6604
- time: z204.coerce.date(),
6625
+ var ExportJobStatus = z206.enum(["InProgress", "Success", "Failed", "Timeout"]);
6626
+ var ExportJobLogEntryType = z206.enum(["success", "info", "warning", "error", "user"]);
6627
+ var ExportJobLogEntry = z206.object({
6628
+ id: z206.string().optional(),
6629
+ time: z206.coerce.date(),
6605
6630
  type: ExportJobLogEntryType,
6606
- message: z204.string()
6631
+ message: z206.string()
6607
6632
  });
6608
- var ExportJobPullRequestDestinationResult = z204.object({
6609
- pullRequestUrl: z204.string(),
6610
- sparseCheckoutUsed: nullishToOptional(z204.boolean())
6633
+ var ExportJobPullRequestDestinationResult = z206.object({
6634
+ pullRequestUrl: z206.string(),
6635
+ sparseCheckoutUsed: nullishToOptional(z206.boolean())
6611
6636
  });
6612
- var ExportJobS3DestinationResult = z204.object({
6613
- bucket: z204.string(),
6614
- urlPrefix: z204.string().optional(),
6615
- path: z204.string(),
6616
- files: z204.array(z204.string()),
6617
- url: nullishToOptional(z204.string()),
6618
- urls: nullishToOptional(z204.string().array())
6637
+ var ExportJobS3DestinationResult = z206.object({
6638
+ bucket: z206.string(),
6639
+ urlPrefix: z206.string().optional(),
6640
+ path: z206.string(),
6641
+ files: z206.array(z206.string()),
6642
+ url: nullishToOptional(z206.string()),
6643
+ urls: nullishToOptional(z206.string().array())
6619
6644
  });
6620
- var ExportJobDocsDestinationResult = z204.object({
6621
- url: z204.string()
6645
+ var ExportJobDocsDestinationResult = z206.object({
6646
+ url: z206.string()
6622
6647
  });
6623
- var ExportJobResult = z204.object({
6624
- error: z204.string().optional(),
6648
+ var ExportJobResult = z206.object({
6649
+ error: z206.string().optional(),
6625
6650
  s3: nullishToOptional(ExportJobS3DestinationResult),
6626
6651
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
6627
6652
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -6630,25 +6655,25 @@ var ExportJobResult = z204.object({
6630
6655
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
6631
6656
  logs: nullishToOptional(ExportJobLogEntry.array())
6632
6657
  });
6633
- var ExportJob = z204.object({
6634
- id: z204.string(),
6635
- createdAt: z204.coerce.date(),
6636
- finishedAt: z204.coerce.date().optional(),
6637
- designSystemId: z204.string(),
6638
- designSystemVersionId: z204.string(),
6639
- workspaceId: z204.string(),
6640
- scheduleId: z204.string().nullish(),
6641
- exporterId: z204.string(),
6642
- brandId: z204.string().optional(),
6643
- themeId: z204.string().optional(),
6644
- themePersistentIds: z204.string().array().optional(),
6645
- estimatedExecutionTime: z204.number().optional(),
6658
+ var ExportJob = z206.object({
6659
+ id: z206.string(),
6660
+ createdAt: z206.coerce.date(),
6661
+ finishedAt: z206.coerce.date().optional(),
6662
+ designSystemId: z206.string(),
6663
+ designSystemVersionId: z206.string(),
6664
+ workspaceId: z206.string(),
6665
+ scheduleId: z206.string().nullish(),
6666
+ exporterId: z206.string(),
6667
+ brandId: z206.string().optional(),
6668
+ themeId: z206.string().optional(),
6669
+ themePersistentIds: z206.string().array().optional(),
6670
+ estimatedExecutionTime: z206.number().optional(),
6646
6671
  status: ExportJobStatus,
6647
6672
  result: ExportJobResult.optional(),
6648
- createdByUserId: z204.string().optional(),
6673
+ createdByUserId: z206.string().optional(),
6649
6674
  exporterPropertyValues: ExporterPropertyValueMap.optional(),
6650
- previewMode: z204.boolean().optional(),
6651
- exportContextId: z204.string().optional().nullable(),
6675
+ previewMode: z206.boolean().optional(),
6676
+ exportContextId: z206.string().optional().nullable(),
6652
6677
  // Destinations
6653
6678
  ...ExportDestinationsMap.shape
6654
6679
  });
@@ -6662,37 +6687,37 @@ var ExportJobFindByFilter = ExportJob.pick({
6662
6687
  themeId: true,
6663
6688
  brandId: true
6664
6689
  }).extend({
6665
- destinations: z204.array(ExportJobDestinationType),
6690
+ destinations: z206.array(ExportJobDestinationType),
6666
6691
  docsEnvironment: PublishedDocEnvironment,
6667
- selectivePublishing: z204.boolean().optional()
6692
+ selectivePublishing: z206.boolean().optional()
6668
6693
  }).partial();
6669
6694
 
6670
6695
  // src/export/exporter-list-query.ts
6671
- import { z as z205 } from "zod";
6672
- var ExporterType2 = z205.enum(["documentation", "code"]);
6673
- var ListExporterQuery = z205.object({
6674
- limit: z205.number().optional(),
6675
- offset: z205.number().optional(),
6696
+ import { z as z207 } from "zod";
6697
+ var ExporterType2 = z207.enum(["documentation", "code"]);
6698
+ var ListExporterQuery = z207.object({
6699
+ limit: z207.number().optional(),
6700
+ offset: z207.number().optional(),
6676
6701
  type: ExporterType2.optional(),
6677
- search: z205.string().optional()
6702
+ search: z207.string().optional()
6678
6703
  });
6679
6704
 
6680
6705
  // src/export/exporter-workspace-membership-role.ts
6681
- import { z as z206 } from "zod";
6682
- var ExporterWorkspaceMembershipRole = z206.enum(["Owner", "OwnerArchived", "User"]);
6706
+ import { z as z208 } from "zod";
6707
+ var ExporterWorkspaceMembershipRole = z208.enum(["Owner", "OwnerArchived", "User"]);
6683
6708
 
6684
6709
  // src/export/exporter-workspace-membership.ts
6685
- import { z as z207 } from "zod";
6686
- var ExporterWorkspaceMembership = z207.object({
6687
- id: z207.string(),
6688
- workspaceId: z207.string(),
6689
- exporterId: z207.string(),
6710
+ import { z as z209 } from "zod";
6711
+ var ExporterWorkspaceMembership = z209.object({
6712
+ id: z209.string(),
6713
+ workspaceId: z209.string(),
6714
+ exporterId: z209.string(),
6690
6715
  role: ExporterWorkspaceMembershipRole
6691
6716
  });
6692
6717
 
6693
6718
  // src/feature-flags/feature-flags.ts
6694
- import { z as z208 } from "zod";
6695
- var FlaggedFeature = z208.enum([
6719
+ import { z as z210 } from "zod";
6720
+ var FlaggedFeature = z210.enum([
6696
6721
  "FigmaImporterV2",
6697
6722
  "DisableImporter",
6698
6723
  "VariablesOrder",
@@ -6727,22 +6752,22 @@ var FeatureFlagDefaults = {
6727
6752
  DocumentationIgnoreSnapshotsOnPublish: "route-bff+route-p3",
6728
6753
  DSVersionRoomYJSStorageVersion: 1
6729
6754
  };
6730
- var FeatureFlagMap = z208.record(FlaggedFeature, z208.boolean());
6731
- var FeatureFlag = z208.object({
6732
- id: z208.string(),
6755
+ var FeatureFlagMap = z210.record(FlaggedFeature, z210.boolean());
6756
+ var FeatureFlag = z210.object({
6757
+ id: z210.string(),
6733
6758
  feature: FlaggedFeature,
6734
- createdAt: z208.coerce.date(),
6735
- enabled: z208.boolean(),
6736
- designSystemId: z208.string().optional(),
6737
- workspaceId: z208.string().optional(),
6738
- data: z208.record(z208.any()).nullable().optional()
6759
+ createdAt: z210.coerce.date(),
6760
+ enabled: z210.boolean(),
6761
+ designSystemId: z210.string().optional(),
6762
+ workspaceId: z210.string().optional(),
6763
+ data: z210.record(z210.any()).nullable().optional()
6739
6764
  });
6740
6765
 
6741
6766
  // src/integrations/external-oauth-request.ts
6742
- import { z as z210 } from "zod";
6767
+ import { z as z212 } from "zod";
6743
6768
 
6744
6769
  // src/integrations/oauth-providers.ts
6745
- import { z as z209 } from "zod";
6770
+ import { z as z211 } from "zod";
6746
6771
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
6747
6772
  OAuthProviderNames2["Figma"] = "figma";
6748
6773
  OAuthProviderNames2["Azure"] = "azure";
@@ -6751,192 +6776,192 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
6751
6776
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
6752
6777
  return OAuthProviderNames2;
6753
6778
  })(OAuthProviderNames || {});
6754
- var OAuthProviderSchema = z209.nativeEnum(OAuthProviderNames);
6779
+ var OAuthProviderSchema = z211.nativeEnum(OAuthProviderNames);
6755
6780
  var OAuthProvider = OAuthProviderSchema.enum;
6756
6781
 
6757
6782
  // src/integrations/external-oauth-request.ts
6758
- var ExternalOAuthRequest = z210.object({
6759
- id: z210.string(),
6783
+ var ExternalOAuthRequest = z212.object({
6784
+ id: z212.string(),
6760
6785
  provider: OAuthProviderSchema,
6761
- userId: z210.string(),
6762
- state: z210.string(),
6763
- createdAt: z210.coerce.date()
6786
+ userId: z212.string(),
6787
+ state: z212.string(),
6788
+ createdAt: z212.coerce.date()
6764
6789
  });
6765
6790
 
6766
6791
  // src/integrations/git.ts
6767
- import { z as z211 } from "zod";
6768
- var GitObjectsQuery = z211.object({
6769
- organization: z211.string().optional(),
6792
+ import { z as z213 } from "zod";
6793
+ var GitObjectsQuery = z213.object({
6794
+ organization: z213.string().optional(),
6770
6795
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
6771
- project: z211.string().optional(),
6796
+ project: z213.string().optional(),
6772
6797
  // Only for Bitbucket and Azure
6773
- repository: z211.string().optional(),
6798
+ repository: z213.string().optional(),
6774
6799
  // For all providers. For Gitlab, it's called "project".
6775
- branch: z211.string().optional(),
6800
+ branch: z213.string().optional(),
6776
6801
  // For all providers.
6777
- user: z211.string().optional()
6802
+ user: z213.string().optional()
6778
6803
  // Gitlab user
6779
6804
  });
6780
- var GitOrganization = z211.object({
6781
- id: z211.string(),
6782
- name: z211.string(),
6783
- url: z211.string(),
6784
- slug: z211.string()
6785
- });
6786
- var GitProject = z211.object({
6787
- id: z211.string(),
6788
- name: z211.string(),
6789
- url: z211.string(),
6790
- slug: z211.string()
6791
- });
6792
- var GitRepository = z211.object({
6793
- id: z211.string(),
6794
- name: z211.string(),
6795
- url: z211.string(),
6796
- slug: z211.string(),
6805
+ var GitOrganization = z213.object({
6806
+ id: z213.string(),
6807
+ name: z213.string(),
6808
+ url: z213.string(),
6809
+ slug: z213.string()
6810
+ });
6811
+ var GitProject = z213.object({
6812
+ id: z213.string(),
6813
+ name: z213.string(),
6814
+ url: z213.string(),
6815
+ slug: z213.string()
6816
+ });
6817
+ var GitRepository = z213.object({
6818
+ id: z213.string(),
6819
+ name: z213.string(),
6820
+ url: z213.string(),
6821
+ slug: z213.string(),
6797
6822
  /**
6798
6823
  * Can be undefined when:
6799
6824
  * - there are no branches in the repository yet
6800
6825
  * - Git provider doesn't expose this information on a repository via their API
6801
6826
  */
6802
- defaultBranch: z211.string().optional()
6827
+ defaultBranch: z213.string().optional()
6803
6828
  });
6804
- var GitBranch = z211.object({
6805
- name: z211.string(),
6806
- lastCommitId: z211.string()
6829
+ var GitBranch = z213.object({
6830
+ name: z213.string(),
6831
+ lastCommitId: z213.string()
6807
6832
  });
6808
6833
 
6809
6834
  // src/integrations/oauth-token.ts
6810
- import { z as z212 } from "zod";
6811
- var IntegrationTokenSchemaOld = z212.object({
6812
- id: z212.string(),
6835
+ import { z as z214 } from "zod";
6836
+ var IntegrationTokenSchemaOld = z214.object({
6837
+ id: z214.string(),
6813
6838
  provider: OAuthProviderSchema,
6814
- scope: z212.string(),
6815
- userId: z212.string(),
6816
- accessToken: z212.string(),
6817
- refreshToken: z212.string(),
6818
- expiresAt: z212.coerce.date(),
6819
- externalUserId: z212.string().nullish()
6839
+ scope: z214.string(),
6840
+ userId: z214.string(),
6841
+ accessToken: z214.string(),
6842
+ refreshToken: z214.string(),
6843
+ expiresAt: z214.coerce.date(),
6844
+ externalUserId: z214.string().nullish()
6820
6845
  });
6821
6846
 
6822
6847
  // src/integrations/workspace-oauth-requests.ts
6823
- import { z as z213 } from "zod";
6824
- var WorkspaceOAuthRequestSchema = z213.object({
6825
- id: z213.string(),
6826
- workspaceId: z213.string(),
6848
+ import { z as z215 } from "zod";
6849
+ var WorkspaceOAuthRequestSchema = z215.object({
6850
+ id: z215.string(),
6851
+ workspaceId: z215.string(),
6827
6852
  provider: OAuthProviderSchema,
6828
- userId: z213.string(),
6829
- createdAt: z213.coerce.date()
6853
+ userId: z215.string(),
6854
+ createdAt: z215.coerce.date()
6830
6855
  });
6831
6856
 
6832
6857
  // src/npm/npm-package.ts
6833
- import { z as z214 } from "zod";
6834
- var AnyRecord = z214.record(z214.any());
6858
+ import { z as z216 } from "zod";
6859
+ var AnyRecord = z216.record(z216.any());
6835
6860
  var NpmPackageVersionDist = AnyRecord.and(
6836
- z214.object({
6837
- tarball: z214.string()
6861
+ z216.object({
6862
+ tarball: z216.string()
6838
6863
  })
6839
6864
  );
6840
6865
  var NpmPackageVersion = AnyRecord.and(
6841
- z214.object({
6866
+ z216.object({
6842
6867
  dist: NpmPackageVersionDist
6843
6868
  })
6844
6869
  );
6845
6870
  var NpmPackage = AnyRecord.and(
6846
- z214.object({
6847
- _id: z214.string(),
6848
- name: z214.string(),
6871
+ z216.object({
6872
+ _id: z216.string(),
6873
+ name: z216.string(),
6849
6874
  // e.g. "latest": "1.2.3"
6850
- "dist-tags": z214.record(z214.string(), z214.string()),
6875
+ "dist-tags": z216.record(z216.string(), z216.string()),
6851
6876
  // "1.2.3": {...}
6852
- versions: z214.record(NpmPackageVersion)
6877
+ versions: z216.record(NpmPackageVersion)
6853
6878
  })
6854
6879
  );
6855
6880
 
6856
6881
  // src/npm/npm-proxy-token-payload.ts
6857
- import { z as z215 } from "zod";
6858
- var NpmProxyTokenPayload = z215.object({
6859
- npmProxyRegistryConfigId: z215.string()
6882
+ import { z as z217 } from "zod";
6883
+ var NpmProxyTokenPayload = z217.object({
6884
+ npmProxyRegistryConfigId: z217.string()
6860
6885
  });
6861
6886
 
6862
6887
  // src/page-screenshot/page-screenshot.ts
6863
- import { z as z216 } from "zod";
6864
- var PageScreenshotInput = z216.object({
6865
- url: z216.string().url(),
6866
- elementSelector: z216.string(),
6867
- uploadUrl: z216.string().url(),
6868
- viewportSize: z216.object({
6869
- width: z216.number().positive(),
6870
- height: z216.number().positive()
6888
+ import { z as z218 } from "zod";
6889
+ var PageScreenshotInput = z218.object({
6890
+ url: z218.string().url(),
6891
+ elementSelector: z218.string(),
6892
+ uploadUrl: z218.string().url(),
6893
+ viewportSize: z218.object({
6894
+ width: z218.number().positive(),
6895
+ height: z218.number().positive()
6871
6896
  }).optional(),
6872
- imageSize: z216.object({
6873
- width: z216.number().positive(),
6874
- height: z216.number().positive()
6897
+ imageSize: z218.object({
6898
+ width: z218.number().positive(),
6899
+ height: z218.number().positive()
6875
6900
  }).optional(),
6876
- supernovaAuth: z216.object({
6877
- accessToken: z216.string()
6901
+ supernovaAuth: z218.object({
6902
+ accessToken: z218.string()
6878
6903
  }).optional(),
6879
- trace: z216.object({
6880
- sentryTrace: z216.string().optional(),
6881
- baggage: z216.string().optional()
6904
+ trace: z218.object({
6905
+ sentryTrace: z218.string().optional(),
6906
+ baggage: z218.string().optional()
6882
6907
  }).optional()
6883
6908
  });
6884
- var PageScreenshotOutput = z216.discriminatedUnion("success", [
6885
- z216.object({
6886
- success: z216.literal(true),
6887
- fileSize: z216.number()
6909
+ var PageScreenshotOutput = z218.discriminatedUnion("success", [
6910
+ z218.object({
6911
+ success: z218.literal(true),
6912
+ fileSize: z218.number()
6888
6913
  }),
6889
- z216.object({
6890
- success: z216.literal(false),
6891
- error: z216.string()
6914
+ z218.object({
6915
+ success: z218.literal(false),
6916
+ error: z218.string()
6892
6917
  })
6893
6918
  ]);
6894
6919
 
6895
6920
  // src/portal/portal-settings.ts
6896
- import { z as z217 } from "zod";
6921
+ import { z as z219 } from "zod";
6897
6922
  var PortalSettingsTheme = UserTheme;
6898
- var PortalSettingsSidebarLink = z217.object({
6899
- name: z217.string(),
6900
- url: z217.string(),
6901
- emoji: z217.string()
6902
- });
6903
- var PortalSettingsSidebarSection = z217.object({
6904
- sectionName: z217.string(),
6905
- links: z217.array(PortalSettingsSidebarLink)
6906
- });
6907
- var PortalSettingsSidebar = z217.array(PortalSettingsSidebarSection);
6908
- var PortalSettings = z217.object({
6909
- id: z217.string(),
6910
- workspaceId: z217.string(),
6911
- enabledDesignSystemIds: z217.array(z217.string()),
6912
- enabledBrandPersistentIds: z217.array(z217.string()),
6923
+ var PortalSettingsSidebarLink = z219.object({
6924
+ name: z219.string(),
6925
+ url: z219.string(),
6926
+ emoji: z219.string()
6927
+ });
6928
+ var PortalSettingsSidebarSection = z219.object({
6929
+ sectionName: z219.string(),
6930
+ links: z219.array(PortalSettingsSidebarLink)
6931
+ });
6932
+ var PortalSettingsSidebar = z219.array(PortalSettingsSidebarSection);
6933
+ var PortalSettings = z219.object({
6934
+ id: z219.string(),
6935
+ workspaceId: z219.string(),
6936
+ enabledDesignSystemIds: z219.array(z219.string()),
6937
+ enabledBrandPersistentIds: z219.array(z219.string()),
6913
6938
  theme: PortalSettingsTheme.nullish(),
6914
6939
  sidebar: PortalSettingsSidebar.nullish(),
6915
- createdAt: z217.coerce.date(),
6916
- updatedAt: z217.coerce.date()
6940
+ createdAt: z219.coerce.date(),
6941
+ updatedAt: z219.coerce.date()
6917
6942
  });
6918
6943
 
6919
6944
  // src/sentry/headers.ts
6920
- import z218 from "zod";
6921
- var SentryTraceHeaders = z218.object({
6922
- sentryTrace: z218.string(),
6923
- baggage: z218.string()
6945
+ import z220 from "zod";
6946
+ var SentryTraceHeaders = z220.object({
6947
+ sentryTrace: z220.string(),
6948
+ baggage: z220.string()
6924
6949
  });
6925
6950
 
6926
6951
  // src/tokens/personal-access-token.ts
6927
- import { z as z219 } from "zod";
6928
- var PersonalAccessToken = z219.object({
6929
- id: z219.string(),
6930
- userId: z219.string(),
6931
- workspaceId: z219.string().optional(),
6932
- designSystemId: z219.string().optional(),
6952
+ import { z as z221 } from "zod";
6953
+ var PersonalAccessToken = z221.object({
6954
+ id: z221.string(),
6955
+ userId: z221.string(),
6956
+ workspaceId: z221.string().optional(),
6957
+ designSystemId: z221.string().optional(),
6933
6958
  workspaceRole: WorkspaceRoleSchema.optional(),
6934
- name: z219.string(),
6935
- hidden: z219.boolean(),
6936
- token: z219.string(),
6937
- scope: z219.string().optional(),
6938
- createdAt: z219.coerce.date(),
6939
- expireAt: z219.coerce.date().optional()
6959
+ name: z221.string(),
6960
+ hidden: z221.boolean(),
6961
+ token: z221.string(),
6962
+ scope: z221.string().optional(),
6963
+ createdAt: z221.coerce.date(),
6964
+ expireAt: z221.coerce.date().optional()
6940
6965
  });
6941
6966
  export {
6942
6967
  Address,
@@ -7196,6 +7221,7 @@ export {
7196
7221
  FigmaComponentTextProperty,
7197
7222
  FigmaComponentVariantProperty,
7198
7223
  FigmaExporterAnyDesignNodeSchema,
7224
+ FigmaExporterProcessedStylesSchema,
7199
7225
  FigmaFile,
7200
7226
  FigmaFileAccessData,
7201
7227
  FigmaFileDownloadScope,
@@ -7742,6 +7768,11 @@ export {
7742
7768
  slugRegex,
7743
7769
  slugify,
7744
7770
  storybookValueFromOldValue,
7771
+ textBlockSchema,
7772
+ textListBlockSchema,
7773
+ textListItemSchema,
7774
+ textParagraphBlockSchema,
7775
+ textSpanSchema,
7745
7776
  tokenAliasOrValue,
7746
7777
  tokenElementTypes,
7747
7778
  traversePageBlockItemValuesV2,