@supernova-studio/model 1.90.6 → 1.90.7

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