@supernova-studio/model 1.44.8 → 1.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -5697,10 +5697,10 @@ var CodeIntegrationDump = z163.object({
5697
5697
  });
5698
5698
 
5699
5699
  // src/data-dumps/design-system-dump.ts
5700
- import { z as z188 } from "zod";
5700
+ import { z as z189 } from "zod";
5701
5701
 
5702
5702
  // src/data-dumps/design-system-version-dump.ts
5703
- import { z as z187 } from "zod";
5703
+ import { z as z188 } from "zod";
5704
5704
 
5705
5705
  // src/liveblocks/rooms/design-system-version-room.ts
5706
5706
  import { z as z164 } from "zod";
@@ -5786,7 +5786,7 @@ var ForgeProjectArtifactRoom = Entity.extend({
5786
5786
  });
5787
5787
 
5788
5788
  // src/liveblocks/rooms/forge-project-room.ts
5789
- import { z as z183 } from "zod";
5789
+ import { z as z184 } from "zod";
5790
5790
 
5791
5791
  // src/forge/agent.ts
5792
5792
  import { z as z168 } from "zod";
@@ -5899,7 +5899,7 @@ var ForgeProjectArtifactContent = z173.object({
5899
5899
  });
5900
5900
 
5901
5901
  // src/forge/project-artifact.ts
5902
- import { z as z175 } from "zod";
5902
+ import { z as z176 } from "zod";
5903
5903
 
5904
5904
  // src/forge/project-section.ts
5905
5905
  import { z as z174 } from "zod";
@@ -5915,156 +5915,192 @@ var ForgeSection = z174.object({
5915
5915
  childType: ForgeProjectSectionChildType
5916
5916
  });
5917
5917
 
5918
+ // src/files/files.ts
5919
+ import z175 from "zod";
5920
+ var FileFigmaRenderMode = z175.enum(["Image", "HTML", "JSON"]);
5921
+ var FileSourceUpload = z175.object({
5922
+ type: z175.literal("UserUpload"),
5923
+ userId: z175.string()
5924
+ });
5925
+ var FileSourceFigma = z175.object({
5926
+ type: z175.literal("Figma"),
5927
+ renderMode: FileFigmaRenderMode
5928
+ });
5929
+ var FileSource = z175.discriminatedUnion("type", [FileSourceUpload, FileSourceFigma]);
5930
+ var File = z175.object({
5931
+ id: z175.string(),
5932
+ name: z175.string(),
5933
+ deduplicationKey: z175.string(),
5934
+ pendingUpload: z175.boolean().optional(),
5935
+ storagePath: z175.string(),
5936
+ url: z175.string(),
5937
+ size: z175.number(),
5938
+ /**
5939
+ * Object describing where did the file come from. Undefined source indicates a file produced by the
5940
+ * system (e.g. thumbnails, etc)
5941
+ */
5942
+ source: FileSource.optional()
5943
+ });
5944
+ var FileReference = File.pick({
5945
+ id: true,
5946
+ url: true,
5947
+ source: true
5948
+ }).extend({
5949
+ name: File.shape.name.optional()
5950
+ });
5951
+
5918
5952
  // src/forge/project-artifact.ts
5919
- var ForgeProjectArtifact = z175.object({
5953
+ var ForgeProjectArtifact = z176.object({
5920
5954
  id: Id,
5921
- projectId: z175.string(),
5922
- iterationId: z175.string().nullish(),
5923
- title: z175.string(),
5924
- previewUrl: z175.string().nullish(),
5955
+ projectId: z176.string(),
5956
+ iterationId: z176.string().nullish(),
5957
+ title: z176.string(),
5958
+ previewUrl: z176.string().nullish(),
5925
5959
  sortOrder: SortOrder.default(0),
5926
- createdAt: z175.coerce.date(),
5927
- updatedAt: z175.coerce.date(),
5928
- createdByUserId: z175.string(),
5960
+ createdAt: z176.coerce.date(),
5961
+ updatedAt: z176.coerce.date(),
5962
+ createdByUserId: z176.string(),
5929
5963
  sectionId: Id.optional(),
5930
- threadId: z175.string().optional()
5964
+ threadId: z176.string().optional(),
5965
+ thumbnail: FileReference.optional()
5931
5966
  });
5932
5967
 
5933
5968
  // src/forge/project-feature.ts
5934
- import { z as z176 } from "zod";
5935
- var ProjectFeatureStatus = z176.enum(["Draft", "ReadyForDevelopment"]);
5936
- var ProjectFeature = z176.object({
5937
- createdAt: z176.coerce.date(),
5938
- createdByUserId: z176.string(),
5939
- description: z176.string(),
5969
+ import { z as z177 } from "zod";
5970
+ var ProjectFeatureStatus = z177.enum(["Draft", "ReadyForDevelopment"]);
5971
+ var ProjectFeature = z177.object({
5972
+ createdAt: z177.coerce.date(),
5973
+ createdByUserId: z177.string(),
5974
+ description: z177.string(),
5940
5975
  id: Id,
5941
- isArchived: z176.boolean().optional(),
5942
- name: z176.string(),
5943
- projectId: z176.string(),
5976
+ isArchived: z177.boolean().optional(),
5977
+ name: z177.string(),
5978
+ projectId: z177.string(),
5944
5979
  sectionId: Id.optional(),
5945
- e2bTemplateId: z176.string().nullish(),
5946
- e2bIterationId: z176.string().nullish(),
5980
+ e2bTemplateId: z177.string().nullish(),
5981
+ e2bIterationId: z177.string().nullish(),
5947
5982
  sortOrder: SortOrder.default(0),
5948
5983
  status: ProjectFeatureStatus.default("Draft"),
5949
- updatedAt: z176.coerce.date().optional(),
5950
- numberOfIterations: z176.number().min(0).default(0),
5951
- numberOfBookmarkedIterations: z176.number().min(0).default(0),
5952
- lastReplyTimestamp: z176.coerce.date().optional(),
5953
- threadId: z176.string().optional()
5984
+ updatedAt: z177.coerce.date().optional(),
5985
+ numberOfIterations: z177.number().min(0).default(0),
5986
+ numberOfBookmarkedIterations: z177.number().min(0).default(0),
5987
+ lastReplyTimestamp: z177.coerce.date().optional(),
5988
+ threadId: z177.string().optional(),
5989
+ thumbnail: FileReference.optional()
5954
5990
  });
5955
5991
 
5956
5992
  // src/forge/project-figma-node.ts
5957
- import { z as z177 } from "zod";
5958
- var ForgeProjectFigmaNode = z177.object({
5959
- id: z177.string().uuid(),
5960
- projectId: z177.string(),
5961
- sceneNodeId: z177.string(),
5993
+ import { z as z178 } from "zod";
5994
+ var ForgeProjectFigmaNode = z178.object({
5995
+ id: z178.string().uuid(),
5996
+ projectId: z178.string(),
5997
+ sceneNodeId: z178.string(),
5962
5998
  format: FigmaNodeRenderFormat,
5963
- scale: z177.number().optional(),
5999
+ scale: z178.number().optional(),
5964
6000
  renderState: FigmaNodeRenderState,
5965
6001
  renderedImage: FigmaNodeRenderedImage.optional(),
5966
6002
  renderError: FigmaNodeRenderError.optional()
5967
6003
  });
5968
- var ForgeProjectFigmaNodeRenderInput = z177.object({
5969
- url: z177.string(),
6004
+ var ForgeProjectFigmaNodeRenderInput = z178.object({
6005
+ url: z178.string(),
5970
6006
  format: FigmaNodeRenderFormat,
5971
- scale: z177.number()
6007
+ scale: z178.number()
5972
6008
  });
5973
6009
 
5974
6010
  // src/forge/project-file.ts
5975
- import { z as z178 } from "zod";
5976
- var ForgeProjectFile = z178.object({
5977
- id: z178.string(),
6011
+ import { z as z179 } from "zod";
6012
+ var ForgeProjectFile = z179.object({
6013
+ id: z179.string(),
5978
6014
  projectId: Id,
5979
- name: z178.string(),
5980
- filePath: z178.string(),
5981
- createdAt: z178.coerce.date().optional(),
5982
- pendingUpload: z178.boolean().optional(),
5983
- size: z178.number().int().positive().optional(),
5984
- checksum: z178.string()
6015
+ name: z179.string(),
6016
+ filePath: z179.string(),
6017
+ createdAt: z179.coerce.date().optional(),
6018
+ pendingUpload: z179.boolean().optional(),
6019
+ size: z179.number().int().positive().optional(),
6020
+ checksum: z179.string()
5985
6021
  });
5986
6022
 
5987
6023
  // src/forge/project-invitation.ts
5988
- import { z as z180 } from "zod";
6024
+ import { z as z181 } from "zod";
5989
6025
 
5990
6026
  // src/forge/project-membership.ts
5991
- import { z as z179 } from "zod";
5992
- var ForgeProjectRole = z179.enum(["Viewer", "Builder", "Admin"]);
5993
- var ForgeProjectMembership = z179.object({
5994
- userId: z179.string(),
5995
- forgeProjectId: z179.string(),
5996
- workspaceMembershipId: z179.string(),
6027
+ import { z as z180 } from "zod";
6028
+ var ForgeProjectRole = z180.enum(["Viewer", "Builder", "Admin"]);
6029
+ var ForgeProjectMembership = z180.object({
6030
+ userId: z180.string(),
6031
+ forgeProjectId: z180.string(),
6032
+ workspaceMembershipId: z180.string(),
5997
6033
  workspaceRole: WorkspaceRoleSchema,
5998
6034
  role: ForgeProjectRole
5999
6035
  });
6000
6036
 
6001
6037
  // src/forge/project-invitation.ts
6002
- var ForgeProjectInvitation = z180.object({
6003
- email: z180.string().email(),
6004
- forgeProjectId: z180.string(),
6005
- workspaceInvitationId: z180.string(),
6038
+ var ForgeProjectInvitation = z181.object({
6039
+ email: z181.string().email(),
6040
+ forgeProjectId: z181.string(),
6041
+ workspaceInvitationId: z181.string(),
6006
6042
  role: ForgeProjectRole,
6007
- createdAt: z180.coerce.date(),
6008
- updatedAt: z180.coerce.date(),
6009
- createdById: z180.string()
6043
+ createdAt: z181.coerce.date(),
6044
+ updatedAt: z181.coerce.date(),
6045
+ createdById: z181.string()
6010
6046
  });
6011
6047
 
6012
6048
  // src/forge/project-iteration.ts
6013
- import { z as z181 } from "zod";
6014
- var ForgeProjectIterationMergeMeta = z181.object({ mergeByUserId: z181.string(), mergeAt: z181.date() });
6015
- var ForgeProjectIteration = z181.object({
6016
- branchId: z181.string().optional(),
6017
- buildArtifactId: z181.string(),
6018
- createdAt: z181.coerce.date(),
6019
- forgeProjectId: z181.string(),
6020
- id: z181.string(),
6021
- locked: z181.boolean(),
6022
- messages: z181.array(ForgeIterationMessage),
6023
- artifacts: z181.array(ForgeArtifact),
6024
- previousIterationId: z181.string().optional(),
6049
+ import { z as z182 } from "zod";
6050
+ var ForgeProjectIterationMergeMeta = z182.object({ mergeByUserId: z182.string(), mergeAt: z182.date() });
6051
+ var ForgeProjectIteration = z182.object({
6052
+ branchId: z182.string().optional(),
6053
+ buildArtifactId: z182.string(),
6054
+ createdAt: z182.coerce.date(),
6055
+ forgeProjectId: z182.string(),
6056
+ id: z182.string(),
6057
+ locked: z182.boolean(),
6058
+ messages: z182.array(ForgeIterationMessage),
6059
+ artifacts: z182.array(ForgeArtifact),
6060
+ previousIterationId: z182.string().optional(),
6025
6061
  mergeMeta: ForgeProjectIterationMergeMeta.optional()
6026
6062
  });
6027
6063
 
6028
6064
  // src/forge/relation.ts
6029
- import { z as z182 } from "zod";
6030
- var ForgeRelationType = z182.enum(["Feature", "Document"]);
6031
- var ForgeRelation = z182.object({
6032
- id: z182.string(),
6033
- projectId: z182.string(),
6034
- sourceItemId: z182.string().uuid(),
6065
+ import { z as z183 } from "zod";
6066
+ var ForgeRelationType = z183.enum(["Feature", "Document"]);
6067
+ var ForgeRelation = z183.object({
6068
+ id: z183.string(),
6069
+ projectId: z183.string(),
6070
+ sourceItemId: z183.string().uuid(),
6035
6071
  sourceItemType: ForgeRelationType,
6036
- targetItemId: z182.string().uuid(),
6072
+ targetItemId: z183.string().uuid(),
6037
6073
  targetItemType: ForgeRelationType,
6038
- createdAt: z182.string()
6074
+ createdAt: z183.string()
6039
6075
  });
6040
6076
 
6041
6077
  // src/liveblocks/rooms/forge-project-room.ts
6042
6078
  var ForgeProjectRoom = Entity.extend({
6043
- projectId: z183.string(),
6044
- liveblocksId: z183.string()
6045
- });
6046
- var ForgeProjectRoomInitialState = z183.object({
6047
- artifacts: z183.array(ForgeProjectArtifact),
6048
- features: z183.array(ProjectFeature),
6049
- artifactSections: z183.array(ForgeSection),
6050
- featureSections: z183.array(ForgeSection),
6051
- relations: z183.array(ForgeRelation)
6052
- });
6053
- var ForgeProjectRoomUpdate = z183.object({
6054
- artifacts: z183.array(ForgeProjectArtifact).optional(),
6055
- artifactIdsToDelete: z183.array(z183.string()).optional(),
6056
- features: z183.array(ProjectFeature).optional(),
6057
- featureIdsToDelete: z183.array(z183.string()).optional(),
6058
- artifactSections: z183.array(ForgeSection).optional(),
6059
- artifactSectionIdsToDelete: z183.array(z183.string()).optional(),
6060
- featureSections: z183.array(ForgeSection).optional(),
6061
- featureSectionIdsToDelete: z183.array(z183.string()).optional(),
6062
- relations: z183.array(ForgeRelation).optional(),
6063
- executedTransactionIds: z183.string().array().optional()
6079
+ projectId: z184.string(),
6080
+ liveblocksId: z184.string()
6081
+ });
6082
+ var ForgeProjectRoomInitialState = z184.object({
6083
+ artifacts: z184.array(ForgeProjectArtifact),
6084
+ features: z184.array(ProjectFeature),
6085
+ artifactSections: z184.array(ForgeSection),
6086
+ featureSections: z184.array(ForgeSection),
6087
+ relations: z184.array(ForgeRelation)
6088
+ });
6089
+ var ForgeProjectRoomUpdate = z184.object({
6090
+ artifacts: z184.array(ForgeProjectArtifact).optional(),
6091
+ artifactIdsToDelete: z184.array(z184.string()).optional(),
6092
+ features: z184.array(ProjectFeature).optional(),
6093
+ featureIdsToDelete: z184.array(z184.string()).optional(),
6094
+ artifactSections: z184.array(ForgeSection).optional(),
6095
+ artifactSectionIdsToDelete: z184.array(z184.string()).optional(),
6096
+ featureSections: z184.array(ForgeSection).optional(),
6097
+ featureSectionIdsToDelete: z184.array(z184.string()).optional(),
6098
+ relations: z184.array(ForgeRelation).optional(),
6099
+ executedTransactionIds: z184.string().array().optional()
6064
6100
  });
6065
6101
 
6066
6102
  // src/liveblocks/rooms/room-type.ts
6067
- import { z as z184 } from "zod";
6103
+ import { z as z185 } from "zod";
6068
6104
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
6069
6105
  RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
6070
6106
  RoomTypeEnum2["DocumentationPage"] = "doc-page";
@@ -6075,36 +6111,36 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
6075
6111
  RoomTypeEnum2["ForgeProjectFeature"] = "forge-project-feature";
6076
6112
  return RoomTypeEnum2;
6077
6113
  })(RoomTypeEnum || {});
6078
- var RoomTypeSchema = z184.nativeEnum(RoomTypeEnum);
6114
+ var RoomTypeSchema = z185.nativeEnum(RoomTypeEnum);
6079
6115
  var RoomType = RoomTypeSchema.enum;
6080
6116
 
6081
6117
  // src/liveblocks/rooms/workspace-room.ts
6082
- import { z as z185 } from "zod";
6118
+ import { z as z186 } from "zod";
6083
6119
  var WorkspaceRoom = Entity.extend({
6084
- workspaceId: z185.string(),
6085
- liveblocksId: z185.string()
6120
+ workspaceId: z186.string(),
6121
+ liveblocksId: z186.string()
6086
6122
  });
6087
6123
 
6088
6124
  // src/data-dumps/published-docs-dump.ts
6089
- import { z as z186 } from "zod";
6090
- var PublishedDocsDump = z186.object({
6125
+ import { z as z187 } from "zod";
6126
+ var PublishedDocsDump = z187.object({
6091
6127
  documentation: PublishedDoc,
6092
6128
  pages: PublishedDocPage.array()
6093
6129
  });
6094
6130
 
6095
6131
  // src/data-dumps/design-system-version-dump.ts
6096
- var DocumentationThreadDump = z187.object({
6132
+ var DocumentationThreadDump = z188.object({
6097
6133
  thread: DocumentationCommentThread,
6098
6134
  comments: DocumentationComment.array()
6099
6135
  });
6100
- var DocumentationPageRoomDump = z187.object({
6136
+ var DocumentationPageRoomDump = z188.object({
6101
6137
  room: DocumentationPageRoom,
6102
6138
  threads: DocumentationThreadDump.array()
6103
6139
  });
6104
- var DesignSystemVersionMultiplayerDump = z187.object({
6140
+ var DesignSystemVersionMultiplayerDump = z188.object({
6105
6141
  documentationPages: DocumentationPageRoomDump.array()
6106
6142
  });
6107
- var DesignSystemVersionDump = z187.object({
6143
+ var DesignSystemVersionDump = z188.object({
6108
6144
  version: DesignSystemVersion,
6109
6145
  brands: Brand.array(),
6110
6146
  elements: DesignElement.array(),
@@ -6119,7 +6155,7 @@ var DesignSystemVersionDump = z187.object({
6119
6155
  });
6120
6156
 
6121
6157
  // src/data-dumps/design-system-dump.ts
6122
- var DesignSystemDump = z188.object({
6158
+ var DesignSystemDump = z189.object({
6123
6159
  designSystem: DesignSystem,
6124
6160
  dataSources: DataSource.array(),
6125
6161
  versions: DesignSystemVersionDump.array(),
@@ -6128,50 +6164,50 @@ var DesignSystemDump = z188.object({
6128
6164
  });
6129
6165
 
6130
6166
  // src/data-dumps/user-data-dump.ts
6131
- import { z as z191 } from "zod";
6167
+ import { z as z192 } from "zod";
6132
6168
 
6133
6169
  // src/data-dumps/workspace-dump.ts
6134
- import { z as z190 } from "zod";
6170
+ import { z as z191 } from "zod";
6135
6171
 
6136
6172
  // src/integrations/integration.ts
6137
- import { z as z189 } from "zod";
6138
- var IntegrationDesignSystem = z189.object({
6139
- designSystemId: z189.string(),
6140
- brandId: z189.string(),
6141
- title: z189.string().optional(),
6142
- userId: z189.string().optional(),
6143
- date: z189.coerce.date().optional()
6144
- });
6145
- var IntegrationCredentialsType = z189.enum(["OAuth2", "PAT"]);
6146
- var IntegrationCredentialsState = z189.enum(["Active", "Inactive"]);
6147
- var IntegrationCredentialsProfile = z189.object({
6148
- id: nullishToOptional(z189.string()),
6149
- email: nullishToOptional(z189.string()),
6150
- handle: nullishToOptional(z189.string()),
6151
- type: nullishToOptional(z189.string()),
6152
- avatarUrl: nullishToOptional(z189.string()),
6153
- organization: nullishToOptional(z189.string()),
6154
- collection: nullishToOptional(z189.string())
6155
- });
6156
- var IntegrationCredentials = z189.object({
6157
- id: z189.string(),
6173
+ import { z as z190 } from "zod";
6174
+ var IntegrationDesignSystem = z190.object({
6175
+ designSystemId: z190.string(),
6176
+ brandId: z190.string(),
6177
+ title: z190.string().optional(),
6178
+ userId: z190.string().optional(),
6179
+ date: z190.coerce.date().optional()
6180
+ });
6181
+ var IntegrationCredentialsType = z190.enum(["OAuth2", "PAT"]);
6182
+ var IntegrationCredentialsState = z190.enum(["Active", "Inactive"]);
6183
+ var IntegrationCredentialsProfile = z190.object({
6184
+ id: nullishToOptional(z190.string()),
6185
+ email: nullishToOptional(z190.string()),
6186
+ handle: nullishToOptional(z190.string()),
6187
+ type: nullishToOptional(z190.string()),
6188
+ avatarUrl: nullishToOptional(z190.string()),
6189
+ organization: nullishToOptional(z190.string()),
6190
+ collection: nullishToOptional(z190.string())
6191
+ });
6192
+ var IntegrationCredentials = z190.object({
6193
+ id: z190.string(),
6158
6194
  type: IntegrationCredentialsType,
6159
- integrationId: z189.string(),
6160
- accessToken: z189.string(),
6161
- userId: z189.string(),
6162
- createdAt: z189.coerce.date(),
6163
- refreshToken: z189.string().optional(),
6164
- tokenName: z189.string().optional(),
6165
- expiresAt: z189.coerce.date().optional(),
6166
- refreshedAt: z189.coerce.date().optional(),
6167
- username: z189.string().optional(),
6168
- appInstallationId: z189.string().optional(),
6195
+ integrationId: z190.string(),
6196
+ accessToken: z190.string(),
6197
+ userId: z190.string(),
6198
+ createdAt: z190.coerce.date(),
6199
+ refreshToken: z190.string().optional(),
6200
+ tokenName: z190.string().optional(),
6201
+ expiresAt: z190.coerce.date().optional(),
6202
+ refreshedAt: z190.coerce.date().optional(),
6203
+ username: z190.string().optional(),
6204
+ appInstallationId: z190.string().optional(),
6169
6205
  profile: IntegrationCredentialsProfile.optional(),
6170
- customUrl: z189.string().optional(),
6206
+ customUrl: z190.string().optional(),
6171
6207
  state: IntegrationCredentialsState,
6172
6208
  user: UserMinified.optional()
6173
6209
  });
6174
- var ExtendedIntegrationType = z189.enum([
6210
+ var ExtendedIntegrationType = z190.enum([
6175
6211
  "Figma",
6176
6212
  "Github",
6177
6213
  "Gitlab",
@@ -6182,26 +6218,26 @@ var ExtendedIntegrationType = z189.enum([
6182
6218
  ]);
6183
6219
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
6184
6220
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
6185
- var Integration = z189.object({
6186
- id: z189.string(),
6187
- workspaceId: z189.string(),
6221
+ var Integration = z190.object({
6222
+ id: z190.string(),
6223
+ workspaceId: z190.string(),
6188
6224
  type: IntegrationType,
6189
- createdAt: z189.coerce.date(),
6190
- integrationCredentials: z189.array(IntegrationCredentials).optional()
6191
- });
6192
- var IntegrationToken = z189.object({
6193
- access_token: z189.string(),
6194
- refresh_token: z189.string().optional(),
6195
- expires_in: z189.union([z189.number().optional(), z189.string().optional()]),
6196
- token_type: z189.string().optional(),
6197
- token_name: z189.string().optional(),
6198
- token_azure_organization_name: z189.string().optional(),
6225
+ createdAt: z190.coerce.date(),
6226
+ integrationCredentials: z190.array(IntegrationCredentials).optional()
6227
+ });
6228
+ var IntegrationToken = z190.object({
6229
+ access_token: z190.string(),
6230
+ refresh_token: z190.string().optional(),
6231
+ expires_in: z190.union([z190.number().optional(), z190.string().optional()]),
6232
+ token_type: z190.string().optional(),
6233
+ token_name: z190.string().optional(),
6234
+ token_azure_organization_name: z190.string().optional(),
6199
6235
  // Azure Cloud PAT only
6200
- token_azure_collection_name: z189.string().optional(),
6236
+ token_azure_collection_name: z190.string().optional(),
6201
6237
  // Azure Server PAT only
6202
- token_bitbucket_username: z189.string().optional(),
6238
+ token_bitbucket_username: z190.string().optional(),
6203
6239
  // Bitbucket only
6204
- custom_url: z189.string().optional().transform((value) => {
6240
+ custom_url: z190.string().optional().transform((value) => {
6205
6241
  if (!value?.trim()) return void 0;
6206
6242
  return formatCustomUrl(value);
6207
6243
  })
@@ -6238,7 +6274,7 @@ function formatCustomUrl(url) {
6238
6274
  }
6239
6275
 
6240
6276
  // src/data-dumps/workspace-dump.ts
6241
- var WorkspaceDump = z190.object({
6277
+ var WorkspaceDump = z191.object({
6242
6278
  workspace: Workspace,
6243
6279
  designSystems: DesignSystemDump.array(),
6244
6280
  codeIntegration: CodeIntegrationDump,
@@ -6246,148 +6282,148 @@ var WorkspaceDump = z190.object({
6246
6282
  });
6247
6283
 
6248
6284
  // src/data-dumps/user-data-dump.ts
6249
- var UserDump = z191.object({
6285
+ var UserDump = z192.object({
6250
6286
  user: User,
6251
6287
  workspaces: WorkspaceDump.array()
6252
6288
  });
6253
6289
 
6254
6290
  // src/docs-server/session.ts
6255
- import { z as z192 } from "zod";
6256
- var NpmProxyToken = z192.object({
6257
- access: z192.string(),
6258
- expiresAt: z192.number()
6291
+ import { z as z193 } from "zod";
6292
+ var NpmProxyToken = z193.object({
6293
+ access: z193.string(),
6294
+ expiresAt: z193.number()
6259
6295
  });
6260
- var SessionData = z192.object({
6261
- returnToUrl: z192.string().optional(),
6296
+ var SessionData = z193.object({
6297
+ returnToUrl: z193.string().optional(),
6262
6298
  npmProxyToken: NpmProxyToken.optional()
6263
6299
  });
6264
- var Session = z192.object({
6265
- id: z192.string(),
6266
- expiresAt: z192.coerce.date(),
6267
- userId: z192.string().nullable(),
6268
- anonymousId: z192.string().nullable(),
6300
+ var Session = z193.object({
6301
+ id: z193.string(),
6302
+ expiresAt: z193.coerce.date(),
6303
+ userId: z193.string().nullable(),
6304
+ anonymousId: z193.string().nullable(),
6269
6305
  data: SessionData
6270
6306
  });
6271
- var AuthTokens = z192.object({
6272
- access: z192.string(),
6273
- refresh: z192.string()
6307
+ var AuthTokens = z193.object({
6308
+ access: z193.string(),
6309
+ refresh: z193.string()
6274
6310
  });
6275
- var UserSession = z192.object({
6311
+ var UserSession = z193.object({
6276
6312
  session: Session,
6277
6313
  user: User.nullable()
6278
6314
  });
6279
6315
 
6280
6316
  // src/emails/design-system-invite.ts
6281
- import { z as z193 } from "zod";
6282
- var DesignSystemInviteEmailRecipient = z193.object({
6283
- email: z193.string(),
6317
+ import { z as z194 } from "zod";
6318
+ var DesignSystemInviteEmailRecipient = z194.object({
6319
+ email: z194.string(),
6284
6320
  role: WorkspaceRoleSchema
6285
6321
  });
6286
- var DesignSystemInviteEmailData = z193.object({
6322
+ var DesignSystemInviteEmailData = z194.object({
6287
6323
  workspace: Workspace,
6288
6324
  designSystem: DesignSystem,
6289
6325
  invitedBy: User,
6290
- documentationDomain: z193.string().optional()
6326
+ documentationDomain: z194.string().optional()
6291
6327
  });
6292
6328
 
6293
6329
  // src/emails/workspace-invite.ts
6294
- import { z as z194 } from "zod";
6295
- var WorkspaceInviteEmailRecipient = z194.object({
6296
- email: z194.string(),
6330
+ import { z as z195 } from "zod";
6331
+ var WorkspaceInviteEmailRecipient = z195.object({
6332
+ email: z195.string(),
6297
6333
  role: WorkspaceRoleSchema
6298
6334
  });
6299
- var WorkspaceInviteEmailData = z194.object({
6335
+ var WorkspaceInviteEmailData = z195.object({
6300
6336
  workspace: Workspace,
6301
6337
  invitedBy: User,
6302
- documentationDomain: z194.string().optional()
6338
+ documentationDomain: z195.string().optional()
6303
6339
  });
6304
6340
 
6305
6341
  // src/events/base.ts
6306
- import { z as z198 } from "zod";
6342
+ import { z as z199 } from "zod";
6307
6343
 
6308
6344
  // src/events/data-source-imported.ts
6309
- import { z as z195 } from "zod";
6310
- var EventDataSourceImported = z195.object({
6311
- type: z195.literal("DataSourceImported"),
6312
- workspaceId: z195.string(),
6313
- designSystemId: z195.string()
6314
- });
6315
-
6316
- // src/events/version-released.ts
6317
6345
  import { z as z196 } from "zod";
6318
- var EventVersionReleased = z196.object({
6319
- type: z196.literal("DesignSystemVersionReleased"),
6346
+ var EventDataSourceImported = z196.object({
6347
+ type: z196.literal("DataSourceImported"),
6320
6348
  workspaceId: z196.string(),
6321
- designSystemId: z196.string(),
6322
- versionId: z196.string()
6349
+ designSystemId: z196.string()
6323
6350
  });
6324
6351
 
6325
- // src/events/documentation-published.ts
6352
+ // src/events/version-released.ts
6326
6353
  import { z as z197 } from "zod";
6327
- var EventDocumentationPublished = z197.object({
6328
- type: z197.literal("DocumentationPublished"),
6354
+ var EventVersionReleased = z197.object({
6355
+ type: z197.literal("DesignSystemVersionReleased"),
6329
6356
  workspaceId: z197.string(),
6330
6357
  designSystemId: z197.string(),
6331
6358
  versionId: z197.string()
6332
6359
  });
6333
6360
 
6361
+ // src/events/documentation-published.ts
6362
+ import { z as z198 } from "zod";
6363
+ var EventDocumentationPublished = z198.object({
6364
+ type: z198.literal("DocumentationPublished"),
6365
+ workspaceId: z198.string(),
6366
+ designSystemId: z198.string(),
6367
+ versionId: z198.string()
6368
+ });
6369
+
6334
6370
  // src/events/base.ts
6335
- var Event = z198.discriminatedUnion("type", [
6371
+ var Event = z199.discriminatedUnion("type", [
6336
6372
  EventVersionReleased,
6337
6373
  EventDataSourceImported,
6338
6374
  EventDocumentationPublished
6339
6375
  ]);
6340
6376
 
6341
6377
  // src/export/export-runner/export-context.ts
6342
- import { z as z199 } from "zod";
6343
- var ExportJobDocumentationContext = z199.object({
6344
- isSingleVersionDocs: z199.boolean(),
6345
- versionSlug: z199.string(),
6378
+ import { z as z200 } from "zod";
6379
+ var ExportJobDocumentationContext = z200.object({
6380
+ isSingleVersionDocs: z200.boolean(),
6381
+ versionSlug: z200.string(),
6346
6382
  environment: PublishedDocEnvironment
6347
6383
  });
6348
- var ExportJobDebugContext = z199.object({
6349
- debugMode: z199.boolean().optional(),
6350
- concurrency: z199.number().optional(),
6351
- preloadData: z199.string().optional(),
6352
- concurrencyMode: z199.string().optional(),
6353
- cacheSdk: z199.string().optional(),
6354
- logSdkNetwork: z199.boolean().optional(),
6355
- profilerMode: z199.string().optional()
6356
- });
6357
- var ExportJobContext = z199.object({
6358
- apiUrl: z199.string(),
6359
- accessToken: z199.string(),
6360
- designSystemId: z199.string(),
6361
- designSystemName: z199.string(),
6362
- exporterId: z199.string(),
6363
- versionId: z199.string(),
6364
- brandId: z199.string().optional(),
6365
- themeId: z199.string().optional(),
6366
- themePersistentIds: z199.string().array().optional(),
6367
- previewMode: z199.boolean().optional(),
6368
- exporterName: z199.string(),
6384
+ var ExportJobDebugContext = z200.object({
6385
+ debugMode: z200.boolean().optional(),
6386
+ concurrency: z200.number().optional(),
6387
+ preloadData: z200.string().optional(),
6388
+ concurrencyMode: z200.string().optional(),
6389
+ cacheSdk: z200.string().optional(),
6390
+ logSdkNetwork: z200.boolean().optional(),
6391
+ profilerMode: z200.string().optional()
6392
+ });
6393
+ var ExportJobContext = z200.object({
6394
+ apiUrl: z200.string(),
6395
+ accessToken: z200.string(),
6396
+ designSystemId: z200.string(),
6397
+ designSystemName: z200.string(),
6398
+ exporterId: z200.string(),
6399
+ versionId: z200.string(),
6400
+ brandId: z200.string().optional(),
6401
+ themeId: z200.string().optional(),
6402
+ themePersistentIds: z200.string().array().optional(),
6403
+ previewMode: z200.boolean().optional(),
6404
+ exporterName: z200.string(),
6369
6405
  documentation: ExportJobDocumentationContext.optional(),
6370
6406
  debug: ExportJobDebugContext.optional()
6371
6407
  });
6372
- var ExportJobExporterConfiguration = z199.object({
6373
- exporterPackageUrl: z199.string(),
6408
+ var ExportJobExporterConfiguration = z200.object({
6409
+ exporterPackageUrl: z200.string(),
6374
6410
  exporterPropertyValues: ExporterConfigurationPropertyValue.array(),
6375
6411
  exporterPropertyValuesV2: ExporterPropertyValueMap.optional()
6376
6412
  });
6377
6413
 
6378
6414
  // src/export/export-runner/exporter-payload.ts
6379
- import { z as z200 } from "zod";
6380
- var ExporterFunctionPayload = z200.object({
6381
- exportJobId: z200.string(),
6382
- exportContextId: z200.string(),
6383
- designSystemId: z200.string(),
6384
- workspaceId: z200.string(),
6385
- exporterId: z200.string()
6415
+ import { z as z201 } from "zod";
6416
+ var ExporterFunctionPayload = z201.object({
6417
+ exportJobId: z201.string(),
6418
+ exportContextId: z201.string(),
6419
+ designSystemId: z201.string(),
6420
+ workspaceId: z201.string(),
6421
+ exporterId: z201.string()
6386
6422
  });
6387
6423
 
6388
6424
  // src/export/export-jobs.ts
6389
- import { z as z201 } from "zod";
6390
- var ExportJobDestinationType = z201.enum([
6425
+ import { z as z202 } from "zod";
6426
+ var ExportJobDestinationType = z202.enum([
6391
6427
  "s3",
6392
6428
  "webhookUrl",
6393
6429
  "github",
@@ -6396,31 +6432,31 @@ var ExportJobDestinationType = z201.enum([
6396
6432
  "gitlab",
6397
6433
  "bitbucket"
6398
6434
  ]);
6399
- var ExportJobStatus = z201.enum(["InProgress", "Success", "Failed", "Timeout"]);
6400
- var ExportJobLogEntryType = z201.enum(["success", "info", "warning", "error", "user"]);
6401
- var ExportJobLogEntry = z201.object({
6402
- id: z201.string().optional(),
6403
- time: z201.coerce.date(),
6435
+ var ExportJobStatus = z202.enum(["InProgress", "Success", "Failed", "Timeout"]);
6436
+ var ExportJobLogEntryType = z202.enum(["success", "info", "warning", "error", "user"]);
6437
+ var ExportJobLogEntry = z202.object({
6438
+ id: z202.string().optional(),
6439
+ time: z202.coerce.date(),
6404
6440
  type: ExportJobLogEntryType,
6405
- message: z201.string()
6441
+ message: z202.string()
6406
6442
  });
6407
- var ExportJobPullRequestDestinationResult = z201.object({
6408
- pullRequestUrl: z201.string(),
6409
- sparseCheckoutUsed: nullishToOptional(z201.boolean())
6443
+ var ExportJobPullRequestDestinationResult = z202.object({
6444
+ pullRequestUrl: z202.string(),
6445
+ sparseCheckoutUsed: nullishToOptional(z202.boolean())
6410
6446
  });
6411
- var ExportJobS3DestinationResult = z201.object({
6412
- bucket: z201.string(),
6413
- urlPrefix: z201.string().optional(),
6414
- path: z201.string(),
6415
- files: z201.array(z201.string()),
6416
- url: nullishToOptional(z201.string()),
6417
- urls: nullishToOptional(z201.string().array())
6447
+ var ExportJobS3DestinationResult = z202.object({
6448
+ bucket: z202.string(),
6449
+ urlPrefix: z202.string().optional(),
6450
+ path: z202.string(),
6451
+ files: z202.array(z202.string()),
6452
+ url: nullishToOptional(z202.string()),
6453
+ urls: nullishToOptional(z202.string().array())
6418
6454
  });
6419
- var ExportJobDocsDestinationResult = z201.object({
6420
- url: z201.string()
6455
+ var ExportJobDocsDestinationResult = z202.object({
6456
+ url: z202.string()
6421
6457
  });
6422
- var ExportJobResult = z201.object({
6423
- error: z201.string().optional(),
6458
+ var ExportJobResult = z202.object({
6459
+ error: z202.string().optional(),
6424
6460
  s3: nullishToOptional(ExportJobS3DestinationResult),
6425
6461
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
6426
6462
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -6429,25 +6465,25 @@ var ExportJobResult = z201.object({
6429
6465
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
6430
6466
  logs: nullishToOptional(ExportJobLogEntry.array())
6431
6467
  });
6432
- var ExportJob = z201.object({
6433
- id: z201.string(),
6434
- createdAt: z201.coerce.date(),
6435
- finishedAt: z201.coerce.date().optional(),
6436
- designSystemId: z201.string(),
6437
- designSystemVersionId: z201.string(),
6438
- workspaceId: z201.string(),
6439
- scheduleId: z201.string().nullish(),
6440
- exporterId: z201.string(),
6441
- brandId: z201.string().optional(),
6442
- themeId: z201.string().optional(),
6443
- themePersistentIds: z201.string().array().optional(),
6444
- estimatedExecutionTime: z201.number().optional(),
6468
+ var ExportJob = z202.object({
6469
+ id: z202.string(),
6470
+ createdAt: z202.coerce.date(),
6471
+ finishedAt: z202.coerce.date().optional(),
6472
+ designSystemId: z202.string(),
6473
+ designSystemVersionId: z202.string(),
6474
+ workspaceId: z202.string(),
6475
+ scheduleId: z202.string().nullish(),
6476
+ exporterId: z202.string(),
6477
+ brandId: z202.string().optional(),
6478
+ themeId: z202.string().optional(),
6479
+ themePersistentIds: z202.string().array().optional(),
6480
+ estimatedExecutionTime: z202.number().optional(),
6445
6481
  status: ExportJobStatus,
6446
6482
  result: ExportJobResult.optional(),
6447
- createdByUserId: z201.string().optional(),
6483
+ createdByUserId: z202.string().optional(),
6448
6484
  exporterPropertyValues: ExporterPropertyValueMap.optional(),
6449
- previewMode: z201.boolean().optional(),
6450
- exportContextId: z201.string().optional().nullable(),
6485
+ previewMode: z202.boolean().optional(),
6486
+ exportContextId: z202.string().optional().nullable(),
6451
6487
  // Destinations
6452
6488
  ...ExportDestinationsMap.shape
6453
6489
  });
@@ -6461,37 +6497,37 @@ var ExportJobFindByFilter = ExportJob.pick({
6461
6497
  themeId: true,
6462
6498
  brandId: true
6463
6499
  }).extend({
6464
- destinations: z201.array(ExportJobDestinationType),
6500
+ destinations: z202.array(ExportJobDestinationType),
6465
6501
  docsEnvironment: PublishedDocEnvironment,
6466
- selectivePublishing: z201.boolean().optional()
6502
+ selectivePublishing: z202.boolean().optional()
6467
6503
  }).partial();
6468
6504
 
6469
6505
  // src/export/exporter-list-query.ts
6470
- import { z as z202 } from "zod";
6471
- var ExporterType2 = z202.enum(["documentation", "code"]);
6472
- var ListExporterQuery = z202.object({
6473
- limit: z202.number().optional(),
6474
- offset: z202.number().optional(),
6506
+ import { z as z203 } from "zod";
6507
+ var ExporterType2 = z203.enum(["documentation", "code"]);
6508
+ var ListExporterQuery = z203.object({
6509
+ limit: z203.number().optional(),
6510
+ offset: z203.number().optional(),
6475
6511
  type: ExporterType2.optional(),
6476
- search: z202.string().optional()
6512
+ search: z203.string().optional()
6477
6513
  });
6478
6514
 
6479
6515
  // src/export/exporter-workspace-membership-role.ts
6480
- import { z as z203 } from "zod";
6481
- var ExporterWorkspaceMembershipRole = z203.enum(["Owner", "OwnerArchived", "User"]);
6516
+ import { z as z204 } from "zod";
6517
+ var ExporterWorkspaceMembershipRole = z204.enum(["Owner", "OwnerArchived", "User"]);
6482
6518
 
6483
6519
  // src/export/exporter-workspace-membership.ts
6484
- import { z as z204 } from "zod";
6485
- var ExporterWorkspaceMembership = z204.object({
6486
- id: z204.string(),
6487
- workspaceId: z204.string(),
6488
- exporterId: z204.string(),
6520
+ import { z as z205 } from "zod";
6521
+ var ExporterWorkspaceMembership = z205.object({
6522
+ id: z205.string(),
6523
+ workspaceId: z205.string(),
6524
+ exporterId: z205.string(),
6489
6525
  role: ExporterWorkspaceMembershipRole
6490
6526
  });
6491
6527
 
6492
6528
  // src/feature-flags/feature-flags.ts
6493
- import { z as z205 } from "zod";
6494
- var FlaggedFeature = z205.enum([
6529
+ import { z as z206 } from "zod";
6530
+ var FlaggedFeature = z206.enum([
6495
6531
  "FigmaImporterV2",
6496
6532
  "DisableImporter",
6497
6533
  "VariablesOrder",
@@ -6516,21 +6552,21 @@ var FlaggedFeature = z205.enum([
6516
6552
  var FeatureFlagDefaults = {
6517
6553
  DocumentationIgnoreSnapshotsOnPublish: "route-bff+route-p3"
6518
6554
  };
6519
- var FeatureFlagMap = z205.record(FlaggedFeature, z205.boolean());
6520
- var FeatureFlag = z205.object({
6521
- id: z205.string(),
6555
+ var FeatureFlagMap = z206.record(FlaggedFeature, z206.boolean());
6556
+ var FeatureFlag = z206.object({
6557
+ id: z206.string(),
6522
6558
  feature: FlaggedFeature,
6523
- createdAt: z205.coerce.date(),
6524
- enabled: z205.boolean(),
6525
- designSystemId: z205.string().optional(),
6526
- data: z205.record(z205.any()).nullable().optional()
6559
+ createdAt: z206.coerce.date(),
6560
+ enabled: z206.boolean(),
6561
+ designSystemId: z206.string().optional(),
6562
+ data: z206.record(z206.any()).nullable().optional()
6527
6563
  });
6528
6564
 
6529
6565
  // src/integrations/external-oauth-request.ts
6530
- import { z as z207 } from "zod";
6566
+ import { z as z208 } from "zod";
6531
6567
 
6532
6568
  // src/integrations/oauth-providers.ts
6533
- import { z as z206 } from "zod";
6569
+ import { z as z207 } from "zod";
6534
6570
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
6535
6571
  OAuthProviderNames2["Figma"] = "figma";
6536
6572
  OAuthProviderNames2["Azure"] = "azure";
@@ -6539,189 +6575,189 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
6539
6575
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
6540
6576
  return OAuthProviderNames2;
6541
6577
  })(OAuthProviderNames || {});
6542
- var OAuthProviderSchema = z206.nativeEnum(OAuthProviderNames);
6578
+ var OAuthProviderSchema = z207.nativeEnum(OAuthProviderNames);
6543
6579
  var OAuthProvider = OAuthProviderSchema.enum;
6544
6580
 
6545
6581
  // src/integrations/external-oauth-request.ts
6546
- var ExternalOAuthRequest = z207.object({
6547
- id: z207.string(),
6582
+ var ExternalOAuthRequest = z208.object({
6583
+ id: z208.string(),
6548
6584
  provider: OAuthProviderSchema,
6549
- userId: z207.string(),
6550
- state: z207.string(),
6551
- createdAt: z207.coerce.date()
6585
+ userId: z208.string(),
6586
+ state: z208.string(),
6587
+ createdAt: z208.coerce.date()
6552
6588
  });
6553
6589
 
6554
6590
  // src/integrations/git.ts
6555
- import { z as z208 } from "zod";
6556
- var GitObjectsQuery = z208.object({
6557
- organization: z208.string().optional(),
6591
+ import { z as z209 } from "zod";
6592
+ var GitObjectsQuery = z209.object({
6593
+ organization: z209.string().optional(),
6558
6594
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
6559
- project: z208.string().optional(),
6595
+ project: z209.string().optional(),
6560
6596
  // Only for Bitbucket and Azure
6561
- repository: z208.string().optional(),
6597
+ repository: z209.string().optional(),
6562
6598
  // For all providers. For Gitlab, it's called "project".
6563
- branch: z208.string().optional(),
6599
+ branch: z209.string().optional(),
6564
6600
  // For all providers.
6565
- user: z208.string().optional()
6601
+ user: z209.string().optional()
6566
6602
  // Gitlab user
6567
6603
  });
6568
- var GitOrganization = z208.object({
6569
- id: z208.string(),
6570
- name: z208.string(),
6571
- url: z208.string(),
6572
- slug: z208.string()
6604
+ var GitOrganization = z209.object({
6605
+ id: z209.string(),
6606
+ name: z209.string(),
6607
+ url: z209.string(),
6608
+ slug: z209.string()
6573
6609
  });
6574
- var GitProject = z208.object({
6575
- id: z208.string(),
6576
- name: z208.string(),
6577
- url: z208.string(),
6578
- slug: z208.string()
6610
+ var GitProject = z209.object({
6611
+ id: z209.string(),
6612
+ name: z209.string(),
6613
+ url: z209.string(),
6614
+ slug: z209.string()
6579
6615
  });
6580
- var GitRepository = z208.object({
6581
- id: z208.string(),
6582
- name: z208.string(),
6583
- url: z208.string(),
6584
- slug: z208.string(),
6616
+ var GitRepository = z209.object({
6617
+ id: z209.string(),
6618
+ name: z209.string(),
6619
+ url: z209.string(),
6620
+ slug: z209.string(),
6585
6621
  /**
6586
6622
  * Can be undefined when:
6587
6623
  * - there are no branches in the repository yet
6588
6624
  * - Git provider doesn't expose this information on a repository via their API
6589
6625
  */
6590
- defaultBranch: z208.string().optional()
6626
+ defaultBranch: z209.string().optional()
6591
6627
  });
6592
- var GitBranch = z208.object({
6593
- name: z208.string(),
6594
- lastCommitId: z208.string()
6628
+ var GitBranch = z209.object({
6629
+ name: z209.string(),
6630
+ lastCommitId: z209.string()
6595
6631
  });
6596
6632
 
6597
6633
  // src/integrations/oauth-token.ts
6598
- import { z as z209 } from "zod";
6599
- var IntegrationTokenSchemaOld = z209.object({
6600
- id: z209.string(),
6634
+ import { z as z210 } from "zod";
6635
+ var IntegrationTokenSchemaOld = z210.object({
6636
+ id: z210.string(),
6601
6637
  provider: OAuthProviderSchema,
6602
- scope: z209.string(),
6603
- userId: z209.string(),
6604
- accessToken: z209.string(),
6605
- refreshToken: z209.string(),
6606
- expiresAt: z209.coerce.date(),
6607
- externalUserId: z209.string().nullish()
6638
+ scope: z210.string(),
6639
+ userId: z210.string(),
6640
+ accessToken: z210.string(),
6641
+ refreshToken: z210.string(),
6642
+ expiresAt: z210.coerce.date(),
6643
+ externalUserId: z210.string().nullish()
6608
6644
  });
6609
6645
 
6610
6646
  // src/integrations/workspace-oauth-requests.ts
6611
- import { z as z210 } from "zod";
6612
- var WorkspaceOAuthRequestSchema = z210.object({
6613
- id: z210.string(),
6614
- workspaceId: z210.string(),
6647
+ import { z as z211 } from "zod";
6648
+ var WorkspaceOAuthRequestSchema = z211.object({
6649
+ id: z211.string(),
6650
+ workspaceId: z211.string(),
6615
6651
  provider: OAuthProviderSchema,
6616
- userId: z210.string(),
6617
- createdAt: z210.coerce.date()
6652
+ userId: z211.string(),
6653
+ createdAt: z211.coerce.date()
6618
6654
  });
6619
6655
 
6620
6656
  // src/npm/npm-package.ts
6621
- import { z as z211 } from "zod";
6622
- var AnyRecord = z211.record(z211.any());
6657
+ import { z as z212 } from "zod";
6658
+ var AnyRecord = z212.record(z212.any());
6623
6659
  var NpmPackageVersionDist = AnyRecord.and(
6624
- z211.object({
6625
- tarball: z211.string()
6660
+ z212.object({
6661
+ tarball: z212.string()
6626
6662
  })
6627
6663
  );
6628
6664
  var NpmPackageVersion = AnyRecord.and(
6629
- z211.object({
6665
+ z212.object({
6630
6666
  dist: NpmPackageVersionDist
6631
6667
  })
6632
6668
  );
6633
6669
  var NpmPackage = AnyRecord.and(
6634
- z211.object({
6635
- _id: z211.string(),
6636
- name: z211.string(),
6670
+ z212.object({
6671
+ _id: z212.string(),
6672
+ name: z212.string(),
6637
6673
  // e.g. "latest": "1.2.3"
6638
- "dist-tags": z211.record(z211.string(), z211.string()),
6674
+ "dist-tags": z212.record(z212.string(), z212.string()),
6639
6675
  // "1.2.3": {...}
6640
- versions: z211.record(NpmPackageVersion)
6676
+ versions: z212.record(NpmPackageVersion)
6641
6677
  })
6642
6678
  );
6643
6679
 
6644
6680
  // src/npm/npm-proxy-token-payload.ts
6645
- import { z as z212 } from "zod";
6646
- var NpmProxyTokenPayload = z212.object({
6647
- npmProxyRegistryConfigId: z212.string()
6681
+ import { z as z213 } from "zod";
6682
+ var NpmProxyTokenPayload = z213.object({
6683
+ npmProxyRegistryConfigId: z213.string()
6648
6684
  });
6649
6685
 
6650
6686
  // src/page-screenshot/page-screenshot.ts
6651
- import { z as z213 } from "zod";
6652
- var PageScreenshotInput = z213.object({
6653
- url: z213.string().url(),
6654
- elementSelector: z213.string(),
6655
- uploadUrl: z213.string().url(),
6656
- viewportSize: z213.object({
6657
- width: z213.number().positive(),
6658
- height: z213.number().positive()
6687
+ import { z as z214 } from "zod";
6688
+ var PageScreenshotInput = z214.object({
6689
+ url: z214.string().url(),
6690
+ elementSelector: z214.string(),
6691
+ uploadUrl: z214.string().url(),
6692
+ viewportSize: z214.object({
6693
+ width: z214.number().positive(),
6694
+ height: z214.number().positive()
6659
6695
  }).optional(),
6660
- imageSize: z213.object({
6661
- width: z213.number().positive(),
6662
- height: z213.number().positive()
6696
+ imageSize: z214.object({
6697
+ width: z214.number().positive(),
6698
+ height: z214.number().positive()
6663
6699
  }).optional(),
6664
- supernovaAuth: z213.object({
6665
- accessToken: z213.string(),
6666
- authPageUrl: z213.string()
6700
+ supernovaAuth: z214.object({
6701
+ accessToken: z214.string(),
6702
+ authPageUrl: z214.string()
6667
6703
  }).optional()
6668
6704
  });
6669
- var PageScreenshotOutput = z213.discriminatedUnion("success", [
6670
- z213.object({
6671
- success: z213.literal(true),
6672
- fileSize: z213.number()
6705
+ var PageScreenshotOutput = z214.discriminatedUnion("success", [
6706
+ z214.object({
6707
+ success: z214.literal(true),
6708
+ fileSize: z214.number()
6673
6709
  }),
6674
- z213.object({
6675
- success: z213.literal(false),
6676
- error: z213.string()
6710
+ z214.object({
6711
+ success: z214.literal(false),
6712
+ error: z214.string()
6677
6713
  })
6678
6714
  ]);
6679
6715
 
6680
6716
  // src/portal/portal-settings.ts
6681
- import { z as z214 } from "zod";
6717
+ import { z as z215 } from "zod";
6682
6718
  var PortalSettingsTheme = UserTheme;
6683
- var PortalSettingsSidebarLink = z214.object({
6684
- name: z214.string(),
6685
- url: z214.string(),
6686
- emoji: z214.string()
6687
- });
6688
- var PortalSettingsSidebarSection = z214.object({
6689
- sectionName: z214.string(),
6690
- links: z214.array(PortalSettingsSidebarLink)
6691
- });
6692
- var PortalSettingsSidebar = z214.array(PortalSettingsSidebarSection);
6693
- var PortalSettings = z214.object({
6694
- id: z214.string(),
6695
- workspaceId: z214.string(),
6696
- enabledDesignSystemIds: z214.array(z214.string()),
6697
- enabledBrandPersistentIds: z214.array(z214.string()),
6719
+ var PortalSettingsSidebarLink = z215.object({
6720
+ name: z215.string(),
6721
+ url: z215.string(),
6722
+ emoji: z215.string()
6723
+ });
6724
+ var PortalSettingsSidebarSection = z215.object({
6725
+ sectionName: z215.string(),
6726
+ links: z215.array(PortalSettingsSidebarLink)
6727
+ });
6728
+ var PortalSettingsSidebar = z215.array(PortalSettingsSidebarSection);
6729
+ var PortalSettings = z215.object({
6730
+ id: z215.string(),
6731
+ workspaceId: z215.string(),
6732
+ enabledDesignSystemIds: z215.array(z215.string()),
6733
+ enabledBrandPersistentIds: z215.array(z215.string()),
6698
6734
  theme: PortalSettingsTheme.nullish(),
6699
6735
  sidebar: PortalSettingsSidebar.nullish(),
6700
- createdAt: z214.coerce.date(),
6701
- updatedAt: z214.coerce.date()
6736
+ createdAt: z215.coerce.date(),
6737
+ updatedAt: z215.coerce.date()
6702
6738
  });
6703
6739
 
6704
6740
  // src/sentry/headers.ts
6705
- import z215 from "zod";
6706
- var SentryTraceHeaders = z215.object({
6707
- sentryTrace: z215.string(),
6708
- baggage: z215.string()
6741
+ import z216 from "zod";
6742
+ var SentryTraceHeaders = z216.object({
6743
+ sentryTrace: z216.string(),
6744
+ baggage: z216.string()
6709
6745
  });
6710
6746
 
6711
6747
  // src/tokens/personal-access-token.ts
6712
- import { z as z216 } from "zod";
6713
- var PersonalAccessToken = z216.object({
6714
- id: z216.string(),
6715
- userId: z216.string(),
6716
- workspaceId: z216.string().optional(),
6717
- designSystemId: z216.string().optional(),
6748
+ import { z as z217 } from "zod";
6749
+ var PersonalAccessToken = z217.object({
6750
+ id: z217.string(),
6751
+ userId: z217.string(),
6752
+ workspaceId: z217.string().optional(),
6753
+ designSystemId: z217.string().optional(),
6718
6754
  workspaceRole: WorkspaceRoleSchema.optional(),
6719
- name: z216.string(),
6720
- hidden: z216.boolean(),
6721
- token: z216.string(),
6722
- scope: z216.string().optional(),
6723
- createdAt: z216.coerce.date(),
6724
- expireAt: z216.coerce.date().optional()
6755
+ name: z217.string(),
6756
+ hidden: z217.boolean(),
6757
+ token: z217.string(),
6758
+ scope: z217.string().optional(),
6759
+ createdAt: z217.coerce.date(),
6760
+ expireAt: z217.coerce.date().optional()
6725
6761
  });
6726
6762
  export {
6727
6763
  Address,
@@ -7020,6 +7056,12 @@ export {
7020
7056
  FigmaRenderFormat,
7021
7057
  FigmaRenderImportModel,
7022
7058
  FigmaSvgRenderImportModel,
7059
+ File,
7060
+ FileFigmaRenderMode,
7061
+ FileReference,
7062
+ FileSource,
7063
+ FileSourceFigma,
7064
+ FileSourceUpload,
7023
7065
  FileStructureStats,
7024
7066
  FlaggedFeature,
7025
7067
  FontFamilyTokenData,