@supernova-studio/model 1.42.4 → 1.42.6

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