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