@supernova-studio/model 1.14.3 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -5649,10 +5649,10 @@ var CodeIntegrationDump = z164.object({
5649
5649
  });
5650
5650
 
5651
5651
  // src/data-dumps/design-system-dump.ts
5652
- import { z as z173 } from "zod";
5652
+ import { z as z188 } from "zod";
5653
5653
 
5654
5654
  // src/data-dumps/design-system-version-dump.ts
5655
- import { z as z172 } from "zod";
5655
+ import { z as z187 } from "zod";
5656
5656
 
5657
5657
  // src/liveblocks/rooms/design-system-version-room.ts
5658
5658
  import { z as z165 } from "zod";
@@ -5730,14 +5730,277 @@ var ForgeProjectArtifactRoom = Entity.extend({
5730
5730
  });
5731
5731
 
5732
5732
  // src/liveblocks/rooms/forge-project-room.ts
5733
+ import { z as z183 } from "zod";
5734
+
5735
+ // src/forge/agent.ts
5733
5736
  import { z as z168 } from "zod";
5737
+ var ForgeAvatarBuilder = z168.object({
5738
+ headType: z168.string(),
5739
+ hairType: z168.string(),
5740
+ accessory1Type: z168.string(),
5741
+ accessory2Type: z168.string()
5742
+ });
5743
+ var ForgeAgent = z168.object({
5744
+ avatar: z168.union([z168.string(), ForgeAvatarBuilder]),
5745
+ avatarUrl: z168.string().optional(),
5746
+ behavior: z168.enum(["Coder", "Writer", "Designer"]),
5747
+ id: z168.string(),
5748
+ name: z168.string(),
5749
+ personality: z168.enum(["Neutral", "Assertive", "Crazy"]),
5750
+ projectId: z168.string()
5751
+ });
5752
+
5753
+ // src/forge/artifact.ts
5754
+ import { z as z169 } from "zod";
5755
+ var Artifact = z169.object({
5756
+ id: z169.string(),
5757
+ createdAt: z169.coerce.date(),
5758
+ projectIterationId: z169.string()
5759
+ });
5760
+ var ForgeFileArtifact = Artifact.extend({
5761
+ type: z169.enum(["file/text", "file/pdf", "file/image"]),
5762
+ fileName: z169.string(),
5763
+ uploadedFileUrl: z169.string()
5764
+ });
5765
+ var ForgeFigmaArtifact = Artifact.extend({
5766
+ type: z169.literal("figma/node"),
5767
+ figmaFileUrl: z169.string(),
5768
+ figmaNodeId: z169.string(),
5769
+ figmaFileName: z169.string().optional(),
5770
+ previewUrl: z169.string().optional()
5771
+ });
5772
+ var ForgeSpecArtifact = Artifact.extend({
5773
+ type: z169.literal("spec"),
5774
+ fileName: z169.string(),
5775
+ yjsDocId: z169.string(),
5776
+ markdownText: z169.string()
5777
+ });
5778
+ var ForgeBuildArtifactFiles = z169.array(
5779
+ z169.object({
5780
+ path: z169.string(),
5781
+ content: z169.string(),
5782
+ isVisibleToUser: z169.boolean().optional()
5783
+ })
5784
+ );
5785
+ var ForgeBuildArtifactEnvironment = z169.object({
5786
+ dependencies: z169.record(z169.string())
5787
+ });
5788
+ var ForgeBuildArtifact = Artifact.extend({
5789
+ type: z169.literal("build"),
5790
+ participantId: z169.string(),
5791
+ files: ForgeBuildArtifactFiles,
5792
+ environment: ForgeBuildArtifactEnvironment
5793
+ });
5794
+ var ForgeArtifact = z169.union([ForgeBuildArtifact, ForgeSpecArtifact, ForgeFigmaArtifact, ForgeFileArtifact]);
5795
+
5796
+ // src/forge/id.ts
5797
+ import { z as z170 } from "zod";
5798
+ var Id = z170.string().uuid();
5799
+
5800
+ // src/forge/iteration-message.ts
5801
+ import { z as z172 } from "zod";
5802
+
5803
+ // src/forge/participant.ts
5804
+ import { z as z171 } from "zod";
5805
+ var ForgeParticipant = z171.object({
5806
+ id: z171.string(),
5807
+ agentId: z171.string().optional(),
5808
+ agent: ForgeAgent.optional(),
5809
+ projectIterationId: z171.string(),
5810
+ role: z171.enum(["Editor", "Viewer"]),
5811
+ type: z171.enum(["Agent", "User"]),
5812
+ userId: z171.string().optional(),
5813
+ user: User.optional()
5814
+ });
5815
+
5816
+ // src/forge/iteration-message.ts
5817
+ var ForgeIterationMessageStep = z172.object({
5818
+ name: z172.string(),
5819
+ text: z172.string(),
5820
+ status: z172.enum(["pending", "started", "completed", "error"])
5821
+ });
5822
+ var ForgeIterationMessage = z172.object({
5823
+ id: z172.string(),
5824
+ createdAt: z172.coerce.date(),
5825
+ participantId: z172.string(),
5826
+ participant: ForgeParticipant,
5827
+ projectIterationId: z172.string(),
5828
+ steps: z172.array(ForgeIterationMessageStep).optional(),
5829
+ type: z172.enum(["Note", "Action", "Steps"]),
5830
+ text: z172.string()
5831
+ });
5832
+
5833
+ // src/forge/meta.ts
5834
+ import { z as z173 } from "zod";
5835
+ var ForgeMeta = z173.object({
5836
+ name: z173.string(),
5837
+ description: z173.string().optional()
5838
+ });
5839
+
5840
+ // src/forge/project-artifact-content.ts
5841
+ import { z as z174 } from "zod";
5842
+ var ForgeProjectArtifactContentData = DocumentationPageContentData;
5843
+ var ForgeProjectArtifactContent = z174.object({
5844
+ id: z174.string(),
5845
+ artifactId: z174.string(),
5846
+ projectId: z174.string(),
5847
+ createdAt: z174.coerce.date(),
5848
+ updatedAt: z174.coerce.date(),
5849
+ data: ForgeProjectArtifactContentData
5850
+ });
5851
+
5852
+ // src/forge/project-artifact.ts
5853
+ import { z as z176 } from "zod";
5854
+
5855
+ // src/forge/project-section.ts
5856
+ import { z as z175 } from "zod";
5857
+ var ForgeProjectSectionChildType = z175.enum(["Artifact", "Feature"]);
5858
+ var SortOrder = z175.number().int().min(0);
5859
+ var ForgeSection = z175.object({
5860
+ id: Id,
5861
+ projectId: z175.string(),
5862
+ name: z175.string(),
5863
+ sortOrder: SortOrder.default(0),
5864
+ createdAt: z175.coerce.date(),
5865
+ updatedAt: z175.coerce.date(),
5866
+ childType: ForgeProjectSectionChildType
5867
+ });
5868
+
5869
+ // src/forge/project-artifact.ts
5870
+ var ForgeProjectArtifact = z176.object({
5871
+ id: Id,
5872
+ projectId: z176.string(),
5873
+ iterationId: z176.string().nullish(),
5874
+ title: z176.string(),
5875
+ previewUrl: z176.string().nullish(),
5876
+ sortOrder: SortOrder.default(0),
5877
+ createdAt: z176.coerce.date(),
5878
+ updatedAt: z176.coerce.date(),
5879
+ createdByUserId: z176.string(),
5880
+ sectionId: Id.optional()
5881
+ });
5882
+
5883
+ // src/forge/project-context.ts
5884
+ import { z as z177 } from "zod";
5885
+ var ForgeProjectContextDependency = z177.object({
5886
+ packageName: z177.string(),
5887
+ type: z177.literal("npm"),
5888
+ version: z177.string().default("latest")
5889
+ });
5890
+ var ForgeProjectContextTailwindConfig = z177.object({
5891
+ content: z177.string(),
5892
+ version: z177.string()
5893
+ });
5894
+ var ForgeProjectContext = z177.object({
5895
+ createdAt: z177.coerce.date(),
5896
+ definition: z177.string(),
5897
+ dependencies: z177.array(ForgeProjectContextDependency),
5898
+ designSystemId: z177.string(),
5899
+ id: z177.string(),
5900
+ meta: ForgeMeta,
5901
+ name: z177.string(),
5902
+ npmProxySettings: NpmRegistryConfig,
5903
+ platform: z177.enum(["React", "Vue", "Angular"]),
5904
+ styling: z177.enum(["CSS", "Tailwind"]),
5905
+ tailwindConfig: ForgeProjectContextTailwindConfig.optional(),
5906
+ updatedAt: z177.coerce.date(),
5907
+ workspaceId: z177.string()
5908
+ });
5909
+
5910
+ // src/forge/project-feature.ts
5911
+ import { z as z178 } from "zod";
5912
+ var ProjectFeature = z178.object({
5913
+ createdAt: z178.coerce.date(),
5914
+ createdByUserId: z178.string(),
5915
+ description: z178.string(),
5916
+ id: Id,
5917
+ isArchived: z178.boolean().optional(),
5918
+ name: z178.string(),
5919
+ projectId: z178.string(),
5920
+ sectionId: Id.optional(),
5921
+ sortOrder: SortOrder.default(0),
5922
+ updatedAt: z178.coerce.date().optional()
5923
+ });
5924
+
5925
+ // src/forge/project-invitation.ts
5926
+ import { z as z180 } from "zod";
5927
+
5928
+ // src/forge/project-membership.ts
5929
+ import { z as z179 } from "zod";
5930
+ var ForgeProjectRole = z179.enum(["Viewer", "Editor", "Admin"]);
5931
+ var ForgeProjectMembership = z179.object({
5932
+ userId: z179.string(),
5933
+ forgeProjectId: z179.string(),
5934
+ workspaceMembershipId: z179.string(),
5935
+ workspaceRole: WorkspaceRoleSchema,
5936
+ role: ForgeProjectRole
5937
+ });
5938
+
5939
+ // src/forge/project-invitation.ts
5940
+ var ForgeProjectInvitation = z180.object({
5941
+ email: z180.string().email(),
5942
+ forgeProjectId: z180.string(),
5943
+ workspaceInvitationId: z180.string(),
5944
+ role: ForgeProjectRole,
5945
+ createdAt: z180.coerce.date(),
5946
+ updatedAt: z180.coerce.date(),
5947
+ createdById: z180.string()
5948
+ });
5949
+
5950
+ // src/forge/project-iteration.ts
5951
+ import { z as z181 } from "zod";
5952
+ var ForgeProjectIterationMergeMeta = z181.object({ mergeByUserId: z181.string(), mergeAt: z181.date() });
5953
+ var ForgeProjectIteration = z181.object({
5954
+ branchId: z181.string().optional(),
5955
+ buildArtifactId: z181.string(),
5956
+ createdAt: z181.coerce.date(),
5957
+ forgeProjectId: z181.string(),
5958
+ id: z181.string(),
5959
+ locked: z181.boolean(),
5960
+ messages: z181.array(ForgeIterationMessage),
5961
+ artifacts: z181.array(ForgeArtifact),
5962
+ previousIterationId: z181.string().optional(),
5963
+ mergeMeta: ForgeProjectIterationMergeMeta.optional()
5964
+ });
5965
+
5966
+ // src/forge/project.ts
5967
+ import { z as z182 } from "zod";
5968
+ var ForgeProjectTag = z182.array(z182.string()).default([]);
5969
+ var ForgeProjectAccessMode = z182.enum(["InviteOnly", "Open"]);
5970
+ var ForgeProject = z182.object({
5971
+ createdAt: z182.coerce.date(),
5972
+ createdByUserId: z182.string().optional(),
5973
+ fpContextId: z182.string(),
5974
+ id: z182.string(),
5975
+ instruction: z182.string().nullable(),
5976
+ meta: ForgeMeta,
5977
+ name: z182.string(),
5978
+ tags: ForgeProjectTag,
5979
+ updatedAt: z182.coerce.date().optional(),
5980
+ workspaceId: z182.string(),
5981
+ accessMode: ForgeProjectAccessMode,
5982
+ isArchived: z182.boolean().optional(),
5983
+ emoji: z182.string().optional()
5984
+ });
5985
+
5986
+ // src/liveblocks/rooms/forge-project-room.ts
5734
5987
  var ForgeProjectRoom = Entity.extend({
5735
- projectId: z168.string(),
5736
- liveblocksId: z168.string()
5988
+ projectId: z183.string(),
5989
+ liveblocksId: z183.string()
5990
+ });
5991
+ var ForgeProjectRoomInitialState = z183.object({
5992
+ artifacts: z183.array(ForgeProjectArtifact),
5993
+ features: z183.array(ProjectFeature)
5994
+ });
5995
+ var ForgeProjectRoomUpdate = z183.object({
5996
+ artifacts: z183.array(ForgeProjectArtifact).optional(),
5997
+ artifactIdsToDelete: z183.array(z183.string()).optional(),
5998
+ features: z183.array(ProjectFeature).optional(),
5999
+ featureIdsToDelete: z183.array(z183.string()).optional()
5737
6000
  });
5738
6001
 
5739
6002
  // src/liveblocks/rooms/room-type.ts
5740
- import { z as z169 } from "zod";
6003
+ import { z as z184 } from "zod";
5741
6004
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
5742
6005
  RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
5743
6006
  RoomTypeEnum2["DocumentationPage"] = "doc-page";
@@ -5747,36 +6010,36 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
5747
6010
  RoomTypeEnum2["ForgeProjectArtifact"] = "forge-project-artifact";
5748
6011
  return RoomTypeEnum2;
5749
6012
  })(RoomTypeEnum || {});
5750
- var RoomTypeSchema = z169.nativeEnum(RoomTypeEnum);
6013
+ var RoomTypeSchema = z184.nativeEnum(RoomTypeEnum);
5751
6014
  var RoomType = RoomTypeSchema.enum;
5752
6015
 
5753
6016
  // src/liveblocks/rooms/workspace-room.ts
5754
- import { z as z170 } from "zod";
6017
+ import { z as z185 } from "zod";
5755
6018
  var WorkspaceRoom = Entity.extend({
5756
- workspaceId: z170.string(),
5757
- liveblocksId: z170.string()
6019
+ workspaceId: z185.string(),
6020
+ liveblocksId: z185.string()
5758
6021
  });
5759
6022
 
5760
6023
  // src/data-dumps/published-docs-dump.ts
5761
- import { z as z171 } from "zod";
5762
- var PublishedDocsDump = z171.object({
6024
+ import { z as z186 } from "zod";
6025
+ var PublishedDocsDump = z186.object({
5763
6026
  documentation: PublishedDoc,
5764
6027
  pages: PublishedDocPage.array()
5765
6028
  });
5766
6029
 
5767
6030
  // src/data-dumps/design-system-version-dump.ts
5768
- var DocumentationThreadDump = z172.object({
6031
+ var DocumentationThreadDump = z187.object({
5769
6032
  thread: DocumentationCommentThread,
5770
6033
  comments: DocumentationComment.array()
5771
6034
  });
5772
- var DocumentationPageRoomDump = z172.object({
6035
+ var DocumentationPageRoomDump = z187.object({
5773
6036
  room: DocumentationPageRoom,
5774
6037
  threads: DocumentationThreadDump.array()
5775
6038
  });
5776
- var DesignSystemVersionMultiplayerDump = z172.object({
6039
+ var DesignSystemVersionMultiplayerDump = z187.object({
5777
6040
  documentationPages: DocumentationPageRoomDump.array()
5778
6041
  });
5779
- var DesignSystemVersionDump = z172.object({
6042
+ var DesignSystemVersionDump = z187.object({
5780
6043
  version: DesignSystemVersion,
5781
6044
  brands: Brand.array(),
5782
6045
  elements: DesignElement.array(),
@@ -5791,7 +6054,7 @@ var DesignSystemVersionDump = z172.object({
5791
6054
  });
5792
6055
 
5793
6056
  // src/data-dumps/design-system-dump.ts
5794
- var DesignSystemDump = z173.object({
6057
+ var DesignSystemDump = z188.object({
5795
6058
  designSystem: DesignSystem,
5796
6059
  dataSources: DataSource.array(),
5797
6060
  versions: DesignSystemVersionDump.array(),
@@ -5800,50 +6063,50 @@ var DesignSystemDump = z173.object({
5800
6063
  });
5801
6064
 
5802
6065
  // src/data-dumps/user-data-dump.ts
5803
- import { z as z176 } from "zod";
6066
+ import { z as z191 } from "zod";
5804
6067
 
5805
6068
  // src/data-dumps/workspace-dump.ts
5806
- import { z as z175 } from "zod";
6069
+ import { z as z190 } from "zod";
5807
6070
 
5808
6071
  // src/integrations/integration.ts
5809
- import { z as z174 } from "zod";
5810
- var IntegrationDesignSystem = z174.object({
5811
- designSystemId: z174.string(),
5812
- brandId: z174.string(),
5813
- title: z174.string().optional(),
5814
- userId: z174.string().optional(),
5815
- date: z174.coerce.date().optional()
5816
- });
5817
- var IntegrationCredentialsType = z174.enum(["OAuth2", "PAT"]);
5818
- var IntegrationCredentialsState = z174.enum(["Active", "Inactive"]);
5819
- var IntegrationCredentialsProfile = z174.object({
5820
- id: nullishToOptional(z174.string()),
5821
- email: nullishToOptional(z174.string()),
5822
- handle: nullishToOptional(z174.string()),
5823
- type: nullishToOptional(z174.string()),
5824
- avatarUrl: nullishToOptional(z174.string()),
5825
- organization: nullishToOptional(z174.string()),
5826
- collection: nullishToOptional(z174.string())
5827
- });
5828
- var IntegrationCredentials = z174.object({
5829
- id: z174.string(),
6072
+ import { z as z189 } from "zod";
6073
+ var IntegrationDesignSystem = z189.object({
6074
+ designSystemId: z189.string(),
6075
+ brandId: z189.string(),
6076
+ title: z189.string().optional(),
6077
+ userId: z189.string().optional(),
6078
+ date: z189.coerce.date().optional()
6079
+ });
6080
+ var IntegrationCredentialsType = z189.enum(["OAuth2", "PAT"]);
6081
+ var IntegrationCredentialsState = z189.enum(["Active", "Inactive"]);
6082
+ var IntegrationCredentialsProfile = z189.object({
6083
+ id: nullishToOptional(z189.string()),
6084
+ email: nullishToOptional(z189.string()),
6085
+ handle: nullishToOptional(z189.string()),
6086
+ type: nullishToOptional(z189.string()),
6087
+ avatarUrl: nullishToOptional(z189.string()),
6088
+ organization: nullishToOptional(z189.string()),
6089
+ collection: nullishToOptional(z189.string())
6090
+ });
6091
+ var IntegrationCredentials = z189.object({
6092
+ id: z189.string(),
5830
6093
  type: IntegrationCredentialsType,
5831
- integrationId: z174.string(),
5832
- accessToken: z174.string(),
5833
- userId: z174.string(),
5834
- createdAt: z174.coerce.date(),
5835
- refreshToken: z174.string().optional(),
5836
- tokenName: z174.string().optional(),
5837
- expiresAt: z174.coerce.date().optional(),
5838
- refreshedAt: z174.coerce.date().optional(),
5839
- username: z174.string().optional(),
5840
- appInstallationId: z174.string().optional(),
6094
+ integrationId: z189.string(),
6095
+ accessToken: z189.string(),
6096
+ userId: z189.string(),
6097
+ createdAt: z189.coerce.date(),
6098
+ refreshToken: z189.string().optional(),
6099
+ tokenName: z189.string().optional(),
6100
+ expiresAt: z189.coerce.date().optional(),
6101
+ refreshedAt: z189.coerce.date().optional(),
6102
+ username: z189.string().optional(),
6103
+ appInstallationId: z189.string().optional(),
5841
6104
  profile: IntegrationCredentialsProfile.optional(),
5842
- customUrl: z174.string().optional(),
6105
+ customUrl: z189.string().optional(),
5843
6106
  state: IntegrationCredentialsState,
5844
6107
  user: UserMinified.optional()
5845
6108
  });
5846
- var ExtendedIntegrationType = z174.enum([
6109
+ var ExtendedIntegrationType = z189.enum([
5847
6110
  "Figma",
5848
6111
  "Github",
5849
6112
  "Gitlab",
@@ -5854,26 +6117,26 @@ var ExtendedIntegrationType = z174.enum([
5854
6117
  ]);
5855
6118
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
5856
6119
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
5857
- var Integration = z174.object({
5858
- id: z174.string(),
5859
- workspaceId: z174.string(),
6120
+ var Integration = z189.object({
6121
+ id: z189.string(),
6122
+ workspaceId: z189.string(),
5860
6123
  type: IntegrationType,
5861
- createdAt: z174.coerce.date(),
5862
- integrationCredentials: z174.array(IntegrationCredentials).optional()
5863
- });
5864
- var IntegrationToken = z174.object({
5865
- access_token: z174.string(),
5866
- refresh_token: z174.string().optional(),
5867
- expires_in: z174.union([z174.number().optional(), z174.string().optional()]),
5868
- token_type: z174.string().optional(),
5869
- token_name: z174.string().optional(),
5870
- token_azure_organization_name: z174.string().optional(),
6124
+ createdAt: z189.coerce.date(),
6125
+ integrationCredentials: z189.array(IntegrationCredentials).optional()
6126
+ });
6127
+ var IntegrationToken = z189.object({
6128
+ access_token: z189.string(),
6129
+ refresh_token: z189.string().optional(),
6130
+ expires_in: z189.union([z189.number().optional(), z189.string().optional()]),
6131
+ token_type: z189.string().optional(),
6132
+ token_name: z189.string().optional(),
6133
+ token_azure_organization_name: z189.string().optional(),
5871
6134
  // Azure Cloud PAT only
5872
- token_azure_collection_name: z174.string().optional(),
6135
+ token_azure_collection_name: z189.string().optional(),
5873
6136
  // Azure Server PAT only
5874
- token_bitbucket_username: z174.string().optional(),
6137
+ token_bitbucket_username: z189.string().optional(),
5875
6138
  // Bitbucket only
5876
- custom_url: z174.string().optional().transform((value) => {
6139
+ custom_url: z189.string().optional().transform((value) => {
5877
6140
  if (!value?.trim()) return void 0;
5878
6141
  return formatCustomUrl(value);
5879
6142
  })
@@ -5910,7 +6173,7 @@ function formatCustomUrl(url) {
5910
6173
  }
5911
6174
 
5912
6175
  // src/data-dumps/workspace-dump.ts
5913
- var WorkspaceDump = z175.object({
6176
+ var WorkspaceDump = z190.object({
5914
6177
  workspace: Workspace,
5915
6178
  designSystems: DesignSystemDump.array(),
5916
6179
  codeIntegration: CodeIntegrationDump,
@@ -5918,148 +6181,148 @@ var WorkspaceDump = z175.object({
5918
6181
  });
5919
6182
 
5920
6183
  // src/data-dumps/user-data-dump.ts
5921
- var UserDump = z176.object({
6184
+ var UserDump = z191.object({
5922
6185
  user: User,
5923
6186
  workspaces: WorkspaceDump.array()
5924
6187
  });
5925
6188
 
5926
6189
  // src/docs-server/session.ts
5927
- import { z as z177 } from "zod";
5928
- var NpmProxyToken = z177.object({
5929
- access: z177.string(),
5930
- expiresAt: z177.number()
6190
+ import { z as z192 } from "zod";
6191
+ var NpmProxyToken = z192.object({
6192
+ access: z192.string(),
6193
+ expiresAt: z192.number()
5931
6194
  });
5932
- var SessionData = z177.object({
5933
- returnToUrl: z177.string().optional(),
6195
+ var SessionData = z192.object({
6196
+ returnToUrl: z192.string().optional(),
5934
6197
  npmProxyToken: NpmProxyToken.optional()
5935
6198
  });
5936
- var Session = z177.object({
5937
- id: z177.string(),
5938
- expiresAt: z177.coerce.date(),
5939
- userId: z177.string().nullable(),
5940
- anonymousId: z177.string().nullable(),
6199
+ var Session = z192.object({
6200
+ id: z192.string(),
6201
+ expiresAt: z192.coerce.date(),
6202
+ userId: z192.string().nullable(),
6203
+ anonymousId: z192.string().nullable(),
5941
6204
  data: SessionData
5942
6205
  });
5943
- var AuthTokens = z177.object({
5944
- access: z177.string(),
5945
- refresh: z177.string()
6206
+ var AuthTokens = z192.object({
6207
+ access: z192.string(),
6208
+ refresh: z192.string()
5946
6209
  });
5947
- var UserSession = z177.object({
6210
+ var UserSession = z192.object({
5948
6211
  session: Session,
5949
6212
  user: User.nullable()
5950
6213
  });
5951
6214
 
5952
6215
  // src/emails/design-system-invite.ts
5953
- import { z as z178 } from "zod";
5954
- var DesignSystemInviteEmailRecipient = z178.object({
5955
- email: z178.string(),
6216
+ import { z as z193 } from "zod";
6217
+ var DesignSystemInviteEmailRecipient = z193.object({
6218
+ email: z193.string(),
5956
6219
  role: WorkspaceRoleSchema
5957
6220
  });
5958
- var DesignSystemInviteEmailData = z178.object({
6221
+ var DesignSystemInviteEmailData = z193.object({
5959
6222
  workspace: Workspace,
5960
6223
  designSystem: DesignSystem,
5961
6224
  invitedBy: User,
5962
- documentationDomain: z178.string().optional()
6225
+ documentationDomain: z193.string().optional()
5963
6226
  });
5964
6227
 
5965
6228
  // src/emails/workspace-invite.ts
5966
- import { z as z179 } from "zod";
5967
- var WorkspaceInviteEmailRecipient = z179.object({
5968
- email: z179.string(),
6229
+ import { z as z194 } from "zod";
6230
+ var WorkspaceInviteEmailRecipient = z194.object({
6231
+ email: z194.string(),
5969
6232
  role: WorkspaceRoleSchema
5970
6233
  });
5971
- var WorkspaceInviteEmailData = z179.object({
6234
+ var WorkspaceInviteEmailData = z194.object({
5972
6235
  workspace: Workspace,
5973
6236
  invitedBy: User,
5974
- documentationDomain: z179.string().optional()
6237
+ documentationDomain: z194.string().optional()
5975
6238
  });
5976
6239
 
5977
6240
  // src/events/base.ts
5978
- import { z as z183 } from "zod";
6241
+ import { z as z198 } from "zod";
5979
6242
 
5980
6243
  // src/events/data-source-imported.ts
5981
- import { z as z180 } from "zod";
5982
- var EventDataSourceImported = z180.object({
5983
- type: z180.literal("DataSourceImported"),
5984
- workspaceId: z180.string(),
5985
- designSystemId: z180.string()
6244
+ import { z as z195 } from "zod";
6245
+ var EventDataSourceImported = z195.object({
6246
+ type: z195.literal("DataSourceImported"),
6247
+ workspaceId: z195.string(),
6248
+ designSystemId: z195.string()
5986
6249
  });
5987
6250
 
5988
6251
  // src/events/version-released.ts
5989
- import { z as z181 } from "zod";
5990
- var EventVersionReleased = z181.object({
5991
- type: z181.literal("DesignSystemVersionReleased"),
5992
- workspaceId: z181.string(),
5993
- designSystemId: z181.string(),
5994
- versionId: z181.string()
6252
+ import { z as z196 } from "zod";
6253
+ var EventVersionReleased = z196.object({
6254
+ type: z196.literal("DesignSystemVersionReleased"),
6255
+ workspaceId: z196.string(),
6256
+ designSystemId: z196.string(),
6257
+ versionId: z196.string()
5995
6258
  });
5996
6259
 
5997
6260
  // src/events/documentation-published.ts
5998
- import { z as z182 } from "zod";
5999
- var EventDocumentationPublished = z182.object({
6000
- type: z182.literal("DocumentationPublished"),
6001
- workspaceId: z182.string(),
6002
- designSystemId: z182.string(),
6003
- versionId: z182.string()
6261
+ import { z as z197 } from "zod";
6262
+ var EventDocumentationPublished = z197.object({
6263
+ type: z197.literal("DocumentationPublished"),
6264
+ workspaceId: z197.string(),
6265
+ designSystemId: z197.string(),
6266
+ versionId: z197.string()
6004
6267
  });
6005
6268
 
6006
6269
  // src/events/base.ts
6007
- var Event = z183.discriminatedUnion("type", [
6270
+ var Event = z198.discriminatedUnion("type", [
6008
6271
  EventVersionReleased,
6009
6272
  EventDataSourceImported,
6010
6273
  EventDocumentationPublished
6011
6274
  ]);
6012
6275
 
6013
6276
  // src/export/export-runner/export-context.ts
6014
- import { z as z184 } from "zod";
6015
- var ExportJobDocumentationContext = z184.object({
6016
- isSingleVersionDocs: z184.boolean(),
6017
- versionSlug: z184.string(),
6277
+ import { z as z199 } from "zod";
6278
+ var ExportJobDocumentationContext = z199.object({
6279
+ isSingleVersionDocs: z199.boolean(),
6280
+ versionSlug: z199.string(),
6018
6281
  environment: PublishedDocEnvironment
6019
6282
  });
6020
- var ExportJobDebugContext = z184.object({
6021
- debugMode: z184.boolean().optional(),
6022
- concurrency: z184.number().optional(),
6023
- preloadData: z184.string().optional(),
6024
- concurrencyMode: z184.string().optional(),
6025
- cacheSdk: z184.string().optional(),
6026
- logSdkNetwork: z184.boolean().optional(),
6027
- profilerMode: z184.string().optional()
6028
- });
6029
- var ExportJobContext = z184.object({
6030
- apiUrl: z184.string(),
6031
- accessToken: z184.string(),
6032
- designSystemId: z184.string(),
6033
- designSystemName: z184.string(),
6034
- exporterId: z184.string(),
6035
- versionId: z184.string(),
6036
- brandId: z184.string().optional(),
6037
- themeId: z184.string().optional(),
6038
- themePersistentIds: z184.string().array().optional(),
6039
- previewMode: z184.boolean().optional(),
6040
- exporterName: z184.string(),
6283
+ var ExportJobDebugContext = z199.object({
6284
+ debugMode: z199.boolean().optional(),
6285
+ concurrency: z199.number().optional(),
6286
+ preloadData: z199.string().optional(),
6287
+ concurrencyMode: z199.string().optional(),
6288
+ cacheSdk: z199.string().optional(),
6289
+ logSdkNetwork: z199.boolean().optional(),
6290
+ profilerMode: z199.string().optional()
6291
+ });
6292
+ var ExportJobContext = z199.object({
6293
+ apiUrl: z199.string(),
6294
+ accessToken: z199.string(),
6295
+ designSystemId: z199.string(),
6296
+ designSystemName: z199.string(),
6297
+ exporterId: z199.string(),
6298
+ versionId: z199.string(),
6299
+ brandId: z199.string().optional(),
6300
+ themeId: z199.string().optional(),
6301
+ themePersistentIds: z199.string().array().optional(),
6302
+ previewMode: z199.boolean().optional(),
6303
+ exporterName: z199.string(),
6041
6304
  documentation: ExportJobDocumentationContext.optional(),
6042
6305
  debug: ExportJobDebugContext.optional()
6043
6306
  });
6044
- var ExportJobExporterConfiguration = z184.object({
6045
- exporterPackageUrl: z184.string(),
6307
+ var ExportJobExporterConfiguration = z199.object({
6308
+ exporterPackageUrl: z199.string(),
6046
6309
  exporterPropertyValues: ExporterConfigurationPropertyValue.array(),
6047
6310
  exporterPropertyValuesV2: ExporterPropertyValueMap.optional()
6048
6311
  });
6049
6312
 
6050
6313
  // src/export/export-runner/exporter-payload.ts
6051
- import { z as z185 } from "zod";
6052
- var ExporterFunctionPayload = z185.object({
6053
- exportJobId: z185.string(),
6054
- exportContextId: z185.string(),
6055
- designSystemId: z185.string(),
6056
- workspaceId: z185.string(),
6057
- exporterId: z185.string()
6314
+ import { z as z200 } from "zod";
6315
+ var ExporterFunctionPayload = z200.object({
6316
+ exportJobId: z200.string(),
6317
+ exportContextId: z200.string(),
6318
+ designSystemId: z200.string(),
6319
+ workspaceId: z200.string(),
6320
+ exporterId: z200.string()
6058
6321
  });
6059
6322
 
6060
6323
  // src/export/export-jobs.ts
6061
- import { z as z186 } from "zod";
6062
- var ExportJobDestinationType = z186.enum([
6324
+ import { z as z201 } from "zod";
6325
+ var ExportJobDestinationType = z201.enum([
6063
6326
  "s3",
6064
6327
  "webhookUrl",
6065
6328
  "github",
@@ -6068,31 +6331,31 @@ var ExportJobDestinationType = z186.enum([
6068
6331
  "gitlab",
6069
6332
  "bitbucket"
6070
6333
  ]);
6071
- var ExportJobStatus = z186.enum(["InProgress", "Success", "Failed", "Timeout"]);
6072
- var ExportJobLogEntryType = z186.enum(["success", "info", "warning", "error", "user"]);
6073
- var ExportJobLogEntry = z186.object({
6074
- id: z186.string().optional(),
6075
- time: z186.coerce.date(),
6334
+ var ExportJobStatus = z201.enum(["InProgress", "Success", "Failed", "Timeout"]);
6335
+ var ExportJobLogEntryType = z201.enum(["success", "info", "warning", "error", "user"]);
6336
+ var ExportJobLogEntry = z201.object({
6337
+ id: z201.string().optional(),
6338
+ time: z201.coerce.date(),
6076
6339
  type: ExportJobLogEntryType,
6077
- message: z186.string()
6340
+ message: z201.string()
6078
6341
  });
6079
- var ExportJobPullRequestDestinationResult = z186.object({
6080
- pullRequestUrl: z186.string(),
6081
- sparseCheckoutUsed: nullishToOptional(z186.boolean())
6342
+ var ExportJobPullRequestDestinationResult = z201.object({
6343
+ pullRequestUrl: z201.string(),
6344
+ sparseCheckoutUsed: nullishToOptional(z201.boolean())
6082
6345
  });
6083
- var ExportJobS3DestinationResult = z186.object({
6084
- bucket: z186.string(),
6085
- urlPrefix: z186.string().optional(),
6086
- path: z186.string(),
6087
- files: z186.array(z186.string()),
6088
- url: nullishToOptional(z186.string()),
6089
- urls: nullishToOptional(z186.string().array())
6346
+ var ExportJobS3DestinationResult = z201.object({
6347
+ bucket: z201.string(),
6348
+ urlPrefix: z201.string().optional(),
6349
+ path: z201.string(),
6350
+ files: z201.array(z201.string()),
6351
+ url: nullishToOptional(z201.string()),
6352
+ urls: nullishToOptional(z201.string().array())
6090
6353
  });
6091
- var ExportJobDocsDestinationResult = z186.object({
6092
- url: z186.string()
6354
+ var ExportJobDocsDestinationResult = z201.object({
6355
+ url: z201.string()
6093
6356
  });
6094
- var ExportJobResult = z186.object({
6095
- error: z186.string().optional(),
6357
+ var ExportJobResult = z201.object({
6358
+ error: z201.string().optional(),
6096
6359
  s3: nullishToOptional(ExportJobS3DestinationResult),
6097
6360
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
6098
6361
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -6101,25 +6364,25 @@ var ExportJobResult = z186.object({
6101
6364
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
6102
6365
  logs: nullishToOptional(ExportJobLogEntry.array())
6103
6366
  });
6104
- var ExportJob = z186.object({
6105
- id: z186.string(),
6106
- createdAt: z186.coerce.date(),
6107
- finishedAt: z186.coerce.date().optional(),
6108
- designSystemId: z186.string(),
6109
- designSystemVersionId: z186.string(),
6110
- workspaceId: z186.string(),
6111
- scheduleId: z186.string().nullish(),
6112
- exporterId: z186.string(),
6113
- brandId: z186.string().optional(),
6114
- themeId: z186.string().optional(),
6115
- themePersistentIds: z186.string().array().optional(),
6116
- estimatedExecutionTime: z186.number().optional(),
6367
+ var ExportJob = z201.object({
6368
+ id: z201.string(),
6369
+ createdAt: z201.coerce.date(),
6370
+ finishedAt: z201.coerce.date().optional(),
6371
+ designSystemId: z201.string(),
6372
+ designSystemVersionId: z201.string(),
6373
+ workspaceId: z201.string(),
6374
+ scheduleId: z201.string().nullish(),
6375
+ exporterId: z201.string(),
6376
+ brandId: z201.string().optional(),
6377
+ themeId: z201.string().optional(),
6378
+ themePersistentIds: z201.string().array().optional(),
6379
+ estimatedExecutionTime: z201.number().optional(),
6117
6380
  status: ExportJobStatus,
6118
6381
  result: ExportJobResult.optional(),
6119
- createdByUserId: z186.string().optional(),
6382
+ createdByUserId: z201.string().optional(),
6120
6383
  exporterPropertyValues: ExporterPropertyValueMap.optional(),
6121
- previewMode: z186.boolean().optional(),
6122
- exportContextId: z186.string().optional().nullable(),
6384
+ previewMode: z201.boolean().optional(),
6385
+ exportContextId: z201.string().optional().nullable(),
6123
6386
  // Destinations
6124
6387
  ...ExportDestinationsMap.shape
6125
6388
  });
@@ -6133,37 +6396,37 @@ var ExportJobFindByFilter = ExportJob.pick({
6133
6396
  themeId: true,
6134
6397
  brandId: true
6135
6398
  }).extend({
6136
- destinations: z186.array(ExportJobDestinationType),
6399
+ destinations: z201.array(ExportJobDestinationType),
6137
6400
  docsEnvironment: PublishedDocEnvironment,
6138
- selectivePublishing: z186.boolean().optional()
6401
+ selectivePublishing: z201.boolean().optional()
6139
6402
  }).partial();
6140
6403
 
6141
6404
  // src/export/exporter-list-query.ts
6142
- import { z as z187 } from "zod";
6143
- var ExporterType2 = z187.enum(["documentation", "code"]);
6144
- var ListExporterQuery = z187.object({
6145
- limit: z187.number().optional(),
6146
- offset: z187.number().optional(),
6405
+ import { z as z202 } from "zod";
6406
+ var ExporterType2 = z202.enum(["documentation", "code"]);
6407
+ var ListExporterQuery = z202.object({
6408
+ limit: z202.number().optional(),
6409
+ offset: z202.number().optional(),
6147
6410
  type: ExporterType2.optional(),
6148
- search: z187.string().optional()
6411
+ search: z202.string().optional()
6149
6412
  });
6150
6413
 
6151
6414
  // src/export/exporter-workspace-membership-role.ts
6152
- import { z as z188 } from "zod";
6153
- var ExporterWorkspaceMembershipRole = z188.enum(["Owner", "OwnerArchived", "User"]);
6415
+ import { z as z203 } from "zod";
6416
+ var ExporterWorkspaceMembershipRole = z203.enum(["Owner", "OwnerArchived", "User"]);
6154
6417
 
6155
6418
  // src/export/exporter-workspace-membership.ts
6156
- import { z as z189 } from "zod";
6157
- var ExporterWorkspaceMembership = z189.object({
6158
- id: z189.string(),
6159
- workspaceId: z189.string(),
6160
- exporterId: z189.string(),
6419
+ import { z as z204 } from "zod";
6420
+ var ExporterWorkspaceMembership = z204.object({
6421
+ id: z204.string(),
6422
+ workspaceId: z204.string(),
6423
+ exporterId: z204.string(),
6161
6424
  role: ExporterWorkspaceMembershipRole
6162
6425
  });
6163
6426
 
6164
6427
  // src/feature-flags/feature-flags.ts
6165
- import { z as z190 } from "zod";
6166
- var FlaggedFeature = z190.enum([
6428
+ import { z as z205 } from "zod";
6429
+ var FlaggedFeature = z205.enum([
6167
6430
  "FigmaImporterV2",
6168
6431
  "DisableImporter",
6169
6432
  "VariablesOrder",
@@ -6186,256 +6449,21 @@ var FlaggedFeature = z190.enum([
6186
6449
  var FeatureFlagDefaults = {
6187
6450
  DocumentationIgnoreSnapshotsOnPublish: "route-bff+route-p3"
6188
6451
  };
6189
- var FeatureFlagMap = z190.record(FlaggedFeature, z190.boolean());
6190
- var FeatureFlag = z190.object({
6191
- id: z190.string(),
6452
+ var FeatureFlagMap = z205.record(FlaggedFeature, z205.boolean());
6453
+ var FeatureFlag = z205.object({
6454
+ id: z205.string(),
6192
6455
  feature: FlaggedFeature,
6193
- createdAt: z190.coerce.date(),
6194
- enabled: z190.boolean(),
6195
- designSystemId: z190.string().optional(),
6196
- data: z190.record(z190.any()).nullable().optional()
6197
- });
6198
-
6199
- // src/forge/agent.ts
6200
- import { z as z191 } from "zod";
6201
- var ForgeAvatarBuilder = z191.object({
6202
- headType: z191.string(),
6203
- hairType: z191.string(),
6204
- accessory1Type: z191.string(),
6205
- accessory2Type: z191.string()
6206
- });
6207
- var ForgeAgent = z191.object({
6208
- avatar: z191.union([z191.string(), ForgeAvatarBuilder]),
6209
- avatarUrl: z191.string().optional(),
6210
- behavior: z191.enum(["Coder", "Writer", "Designer"]),
6211
- id: z191.string(),
6212
- name: z191.string(),
6213
- personality: z191.enum(["Neutral", "Assertive", "Crazy"]),
6214
- projectId: z191.string()
6215
- });
6216
-
6217
- // src/forge/artifact.ts
6218
- import { z as z192 } from "zod";
6219
- var Artifact = z192.object({
6220
- id: z192.string(),
6221
- createdAt: z192.coerce.date(),
6222
- projectIterationId: z192.string()
6223
- });
6224
- var ForgeFileArtifact = Artifact.extend({
6225
- type: z192.enum(["file/text", "file/pdf", "file/image"]),
6226
- fileName: z192.string(),
6227
- uploadedFileUrl: z192.string()
6228
- });
6229
- var ForgeFigmaArtifact = Artifact.extend({
6230
- type: z192.literal("figma/node"),
6231
- figmaFileUrl: z192.string(),
6232
- figmaNodeId: z192.string(),
6233
- figmaFileName: z192.string().optional(),
6234
- previewUrl: z192.string().optional()
6235
- });
6236
- var ForgeSpecArtifact = Artifact.extend({
6237
- type: z192.literal("spec"),
6238
- fileName: z192.string(),
6239
- yjsDocId: z192.string(),
6240
- markdownText: z192.string()
6241
- });
6242
- var ForgeBuildArtifactFiles = z192.array(
6243
- z192.object({
6244
- path: z192.string(),
6245
- content: z192.string(),
6246
- isVisibleToUser: z192.boolean().optional()
6247
- })
6248
- );
6249
- var ForgeBuildArtifactEnvironment = z192.object({
6250
- dependencies: z192.record(z192.string())
6251
- });
6252
- var ForgeBuildArtifact = Artifact.extend({
6253
- type: z192.literal("build"),
6254
- participantId: z192.string(),
6255
- files: ForgeBuildArtifactFiles,
6256
- environment: ForgeBuildArtifactEnvironment
6257
- });
6258
- var ForgeArtifact = z192.union([ForgeBuildArtifact, ForgeSpecArtifact, ForgeFigmaArtifact, ForgeFileArtifact]);
6259
-
6260
- // src/forge/id.ts
6261
- import { z as z193 } from "zod";
6262
- var Id = z193.string().uuid();
6263
-
6264
- // src/forge/iteration-message.ts
6265
- import { z as z195 } from "zod";
6266
-
6267
- // src/forge/participant.ts
6268
- import { z as z194 } from "zod";
6269
- var ForgeParticipant = z194.object({
6270
- id: z194.string(),
6271
- agentId: z194.string().optional(),
6272
- agent: ForgeAgent.optional(),
6273
- projectIterationId: z194.string(),
6274
- role: z194.enum(["Editor", "Viewer"]),
6275
- type: z194.enum(["Agent", "User"]),
6276
- userId: z194.string().optional(),
6277
- user: User.optional()
6278
- });
6279
-
6280
- // src/forge/iteration-message.ts
6281
- var ForgeIterationMessageStep = z195.object({
6282
- name: z195.string(),
6283
- text: z195.string(),
6284
- status: z195.enum(["pending", "started", "completed", "error"])
6285
- });
6286
- var ForgeIterationMessage = z195.object({
6287
- id: z195.string(),
6288
- createdAt: z195.coerce.date(),
6289
- participantId: z195.string(),
6290
- participant: ForgeParticipant,
6291
- projectIterationId: z195.string(),
6292
- steps: z195.array(ForgeIterationMessageStep).optional(),
6293
- type: z195.enum(["Note", "Action", "Steps"]),
6294
- text: z195.string()
6295
- });
6296
-
6297
- // src/forge/meta.ts
6298
- import { z as z196 } from "zod";
6299
- var ForgeMeta = z196.object({
6300
- name: z196.string(),
6301
- description: z196.string().optional()
6302
- });
6303
-
6304
- // src/forge/project-artifact-content.ts
6305
- import { z as z197 } from "zod";
6306
- var ForgeProjectArtifactContentData = DocumentationPageContentData;
6307
- var ForgeProjectArtifactContent = z197.object({
6308
- id: z197.string(),
6309
- artifactId: z197.string(),
6310
- projectId: z197.string(),
6311
- createdAt: z197.coerce.date(),
6312
- updatedAt: z197.coerce.date(),
6313
- data: ForgeProjectArtifactContentData
6314
- });
6315
-
6316
- // src/forge/project-artifact.ts
6317
- import { z as z198 } from "zod";
6318
- var ForgeProjectArtifact = z198.object({
6319
- id: z198.string(),
6320
- projectId: z198.string(),
6321
- iterationId: z198.string().nullish(),
6322
- title: z198.string(),
6323
- previewUrl: z198.string().nullish(),
6324
- path: z198.string(),
6325
- sortOrder: z198.number().default(0),
6326
- createdAt: z198.coerce.date(),
6327
- updatedAt: z198.coerce.date(),
6328
- createdByUserId: z198.string()
6329
- });
6330
-
6331
- // src/forge/project-context.ts
6332
- import { z as z199 } from "zod";
6333
- var ForgeProjectContextDependency = z199.object({
6334
- packageName: z199.string(),
6335
- type: z199.literal("npm"),
6336
- version: z199.string().default("latest")
6337
- });
6338
- var ForgeProjectContextTailwindConfig = z199.object({
6339
- content: z199.string(),
6340
- version: z199.string()
6341
- });
6342
- var ForgeProjectContext = z199.object({
6343
- createdAt: z199.coerce.date(),
6344
- definition: z199.string(),
6345
- dependencies: z199.array(ForgeProjectContextDependency),
6346
- designSystemId: z199.string(),
6347
- id: z199.string(),
6348
- meta: ForgeMeta,
6349
- name: z199.string(),
6350
- npmProxySettings: NpmRegistryConfig,
6351
- platform: z199.enum(["React", "Vue", "Angular"]),
6352
- styling: z199.enum(["CSS", "Tailwind"]),
6353
- tailwindConfig: ForgeProjectContextTailwindConfig.optional(),
6354
- updatedAt: z199.coerce.date(),
6355
- workspaceId: z199.string()
6356
- });
6357
-
6358
- // src/forge/project-feature.ts
6359
- import { z as z200 } from "zod";
6360
- var ProjectFeature = z200.object({
6361
- createdAt: z200.coerce.date(),
6362
- createdByUserId: z200.string(),
6363
- description: z200.string(),
6364
- id: z200.string().uuid(),
6365
- isArchived: z200.boolean().optional(),
6366
- name: Id,
6367
- projectId: z200.string(),
6368
- sectionId: Id.optional(),
6369
- sortOrder: z200.number().int().min(0),
6370
- updatedAt: z200.coerce.date().optional()
6371
- });
6372
-
6373
- // src/forge/project-invitation.ts
6374
- import { z as z202 } from "zod";
6375
-
6376
- // src/forge/project-membership.ts
6377
- import { z as z201 } from "zod";
6378
- var ForgeProjectRole = z201.enum(["Viewer", "Editor", "Admin"]);
6379
- var ForgeProjectMembership = z201.object({
6380
- userId: z201.string(),
6381
- forgeProjectId: z201.string(),
6382
- workspaceMembershipId: z201.string(),
6383
- workspaceRole: WorkspaceRoleSchema,
6384
- role: ForgeProjectRole
6385
- });
6386
-
6387
- // src/forge/project-invitation.ts
6388
- var ForgeProjectInvitation = z202.object({
6389
- email: z202.string().email(),
6390
- forgeProjectId: z202.string(),
6391
- workspaceInvitationId: z202.string(),
6392
- role: ForgeProjectRole,
6393
- createdAt: z202.coerce.date(),
6394
- updatedAt: z202.coerce.date(),
6395
- createdById: z202.string()
6396
- });
6397
-
6398
- // src/forge/project-iteration.ts
6399
- import { z as z203 } from "zod";
6400
- var ForgeProjectIterationMergeMeta = z203.object({ mergeByUserId: z203.string(), mergeAt: z203.date() });
6401
- var ForgeProjectIteration = z203.object({
6402
- branchId: z203.string().optional(),
6403
- buildArtifactId: z203.string(),
6404
- createdAt: z203.coerce.date(),
6405
- forgeProjectId: z203.string(),
6406
- id: z203.string(),
6407
- locked: z203.boolean(),
6408
- messages: z203.array(ForgeIterationMessage),
6409
- artifacts: z203.array(ForgeArtifact),
6410
- previousIterationId: z203.string().optional(),
6411
- mergeMeta: ForgeProjectIterationMergeMeta.optional()
6412
- });
6413
-
6414
- // src/forge/project.ts
6415
- import { z as z204 } from "zod";
6416
- var ForgeProjectTag = z204.array(z204.string()).default([]);
6417
- var ForgeProjectAccessMode = z204.enum(["InviteOnly", "Open"]);
6418
- var ForgeProject = z204.object({
6419
- createdAt: z204.coerce.date(),
6420
- createdByUserId: z204.string().optional(),
6421
- fpContextId: z204.string(),
6422
- id: z204.string(),
6423
- instruction: z204.string().nullable(),
6424
- meta: ForgeMeta,
6425
- name: z204.string(),
6426
- tags: ForgeProjectTag,
6427
- updatedAt: z204.coerce.date().optional(),
6428
- workspaceId: z204.string(),
6429
- accessMode: ForgeProjectAccessMode,
6430
- isArchived: z204.boolean().optional(),
6431
- emoji: z204.string().optional()
6456
+ createdAt: z205.coerce.date(),
6457
+ enabled: z205.boolean(),
6458
+ designSystemId: z205.string().optional(),
6459
+ data: z205.record(z205.any()).nullable().optional()
6432
6460
  });
6433
6461
 
6434
6462
  // src/integrations/external-oauth-request.ts
6435
- import { z as z206 } from "zod";
6463
+ import { z as z207 } from "zod";
6436
6464
 
6437
6465
  // src/integrations/oauth-providers.ts
6438
- import { z as z205 } from "zod";
6466
+ import { z as z206 } from "zod";
6439
6467
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
6440
6468
  OAuthProviderNames2["Figma"] = "figma";
6441
6469
  OAuthProviderNames2["Azure"] = "azure";
@@ -6444,152 +6472,152 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
6444
6472
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
6445
6473
  return OAuthProviderNames2;
6446
6474
  })(OAuthProviderNames || {});
6447
- var OAuthProviderSchema = z205.nativeEnum(OAuthProviderNames);
6475
+ var OAuthProviderSchema = z206.nativeEnum(OAuthProviderNames);
6448
6476
  var OAuthProvider = OAuthProviderSchema.enum;
6449
6477
 
6450
6478
  // src/integrations/external-oauth-request.ts
6451
- var ExternalOAuthRequest = z206.object({
6452
- id: z206.string(),
6479
+ var ExternalOAuthRequest = z207.object({
6480
+ id: z207.string(),
6453
6481
  provider: OAuthProviderSchema,
6454
- userId: z206.string(),
6455
- state: z206.string(),
6456
- createdAt: z206.coerce.date()
6482
+ userId: z207.string(),
6483
+ state: z207.string(),
6484
+ createdAt: z207.coerce.date()
6457
6485
  });
6458
6486
 
6459
6487
  // src/integrations/git.ts
6460
- import { z as z207 } from "zod";
6461
- var GitObjectsQuery = z207.object({
6462
- organization: z207.string().optional(),
6488
+ import { z as z208 } from "zod";
6489
+ var GitObjectsQuery = z208.object({
6490
+ organization: z208.string().optional(),
6463
6491
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
6464
- project: z207.string().optional(),
6492
+ project: z208.string().optional(),
6465
6493
  // Only for Bitbucket and Azure
6466
- repository: z207.string().optional(),
6494
+ repository: z208.string().optional(),
6467
6495
  // For all providers. For Gitlab, it's called "project".
6468
- branch: z207.string().optional(),
6496
+ branch: z208.string().optional(),
6469
6497
  // For all providers.
6470
- user: z207.string().optional()
6498
+ user: z208.string().optional()
6471
6499
  // Gitlab user
6472
6500
  });
6473
- var GitOrganization = z207.object({
6474
- id: z207.string(),
6475
- name: z207.string(),
6476
- url: z207.string(),
6477
- slug: z207.string()
6501
+ var GitOrganization = z208.object({
6502
+ id: z208.string(),
6503
+ name: z208.string(),
6504
+ url: z208.string(),
6505
+ slug: z208.string()
6478
6506
  });
6479
- var GitProject = z207.object({
6480
- id: z207.string(),
6481
- name: z207.string(),
6482
- url: z207.string(),
6483
- slug: z207.string()
6507
+ var GitProject = z208.object({
6508
+ id: z208.string(),
6509
+ name: z208.string(),
6510
+ url: z208.string(),
6511
+ slug: z208.string()
6484
6512
  });
6485
- var GitRepository = z207.object({
6486
- id: z207.string(),
6487
- name: z207.string(),
6488
- url: z207.string(),
6489
- slug: z207.string(),
6513
+ var GitRepository = z208.object({
6514
+ id: z208.string(),
6515
+ name: z208.string(),
6516
+ url: z208.string(),
6517
+ slug: z208.string(),
6490
6518
  /**
6491
6519
  * Can be undefined when:
6492
6520
  * - there are no branches in the repository yet
6493
6521
  * - Git provider doesn't expose this information on a repository via their API
6494
6522
  */
6495
- defaultBranch: z207.string().optional()
6523
+ defaultBranch: z208.string().optional()
6496
6524
  });
6497
- var GitBranch = z207.object({
6498
- name: z207.string(),
6499
- lastCommitId: z207.string()
6525
+ var GitBranch = z208.object({
6526
+ name: z208.string(),
6527
+ lastCommitId: z208.string()
6500
6528
  });
6501
6529
 
6502
6530
  // src/integrations/oauth-token.ts
6503
- import { z as z208 } from "zod";
6504
- var IntegrationTokenSchemaOld = z208.object({
6505
- id: z208.string(),
6531
+ import { z as z209 } from "zod";
6532
+ var IntegrationTokenSchemaOld = z209.object({
6533
+ id: z209.string(),
6506
6534
  provider: OAuthProviderSchema,
6507
- scope: z208.string(),
6508
- userId: z208.string(),
6509
- accessToken: z208.string(),
6510
- refreshToken: z208.string(),
6511
- expiresAt: z208.coerce.date(),
6512
- externalUserId: z208.string().nullish()
6535
+ scope: z209.string(),
6536
+ userId: z209.string(),
6537
+ accessToken: z209.string(),
6538
+ refreshToken: z209.string(),
6539
+ expiresAt: z209.coerce.date(),
6540
+ externalUserId: z209.string().nullish()
6513
6541
  });
6514
6542
 
6515
6543
  // src/integrations/workspace-oauth-requests.ts
6516
- import { z as z209 } from "zod";
6517
- var WorkspaceOAuthRequestSchema = z209.object({
6518
- id: z209.string(),
6519
- workspaceId: z209.string(),
6544
+ import { z as z210 } from "zod";
6545
+ var WorkspaceOAuthRequestSchema = z210.object({
6546
+ id: z210.string(),
6547
+ workspaceId: z210.string(),
6520
6548
  provider: OAuthProviderSchema,
6521
- userId: z209.string(),
6522
- createdAt: z209.coerce.date()
6549
+ userId: z210.string(),
6550
+ createdAt: z210.coerce.date()
6523
6551
  });
6524
6552
 
6525
6553
  // src/npm/npm-package.ts
6526
- import { z as z210 } from "zod";
6527
- var AnyRecord = z210.record(z210.any());
6554
+ import { z as z211 } from "zod";
6555
+ var AnyRecord = z211.record(z211.any());
6528
6556
  var NpmPackageVersionDist = AnyRecord.and(
6529
- z210.object({
6530
- tarball: z210.string()
6557
+ z211.object({
6558
+ tarball: z211.string()
6531
6559
  })
6532
6560
  );
6533
6561
  var NpmPackageVersion = AnyRecord.and(
6534
- z210.object({
6562
+ z211.object({
6535
6563
  dist: NpmPackageVersionDist
6536
6564
  })
6537
6565
  );
6538
6566
  var NpmPackage = AnyRecord.and(
6539
- z210.object({
6540
- _id: z210.string(),
6541
- name: z210.string(),
6567
+ z211.object({
6568
+ _id: z211.string(),
6569
+ name: z211.string(),
6542
6570
  // e.g. "latest": "1.2.3"
6543
- "dist-tags": z210.record(z210.string(), z210.string()),
6571
+ "dist-tags": z211.record(z211.string(), z211.string()),
6544
6572
  // "1.2.3": {...}
6545
- versions: z210.record(NpmPackageVersion)
6573
+ versions: z211.record(NpmPackageVersion)
6546
6574
  })
6547
6575
  );
6548
6576
 
6549
6577
  // src/npm/npm-proxy-token-payload.ts
6550
- import { z as z211 } from "zod";
6551
- var NpmProxyTokenPayload = z211.object({
6552
- npmProxyRegistryConfigId: z211.string()
6578
+ import { z as z212 } from "zod";
6579
+ var NpmProxyTokenPayload = z212.object({
6580
+ npmProxyRegistryConfigId: z212.string()
6553
6581
  });
6554
6582
 
6555
6583
  // src/portal/portal-settings.ts
6556
- import { z as z212 } from "zod";
6584
+ import { z as z213 } from "zod";
6557
6585
  var PortalSettingsTheme = UserTheme;
6558
- var PortalSettingsSidebarLink = z212.object({
6559
- name: z212.string(),
6560
- url: z212.string(),
6561
- emoji: z212.string()
6562
- });
6563
- var PortalSettingsSidebarSection = z212.object({
6564
- sectionName: z212.string(),
6565
- links: z212.array(PortalSettingsSidebarLink)
6566
- });
6567
- var PortalSettingsSidebar = z212.array(PortalSettingsSidebarSection);
6568
- var PortalSettings = z212.object({
6569
- id: z212.string(),
6570
- workspaceId: z212.string(),
6571
- enabledDesignSystemIds: z212.array(z212.string()),
6572
- enabledBrandPersistentIds: z212.array(z212.string()),
6586
+ var PortalSettingsSidebarLink = z213.object({
6587
+ name: z213.string(),
6588
+ url: z213.string(),
6589
+ emoji: z213.string()
6590
+ });
6591
+ var PortalSettingsSidebarSection = z213.object({
6592
+ sectionName: z213.string(),
6593
+ links: z213.array(PortalSettingsSidebarLink)
6594
+ });
6595
+ var PortalSettingsSidebar = z213.array(PortalSettingsSidebarSection);
6596
+ var PortalSettings = z213.object({
6597
+ id: z213.string(),
6598
+ workspaceId: z213.string(),
6599
+ enabledDesignSystemIds: z213.array(z213.string()),
6600
+ enabledBrandPersistentIds: z213.array(z213.string()),
6573
6601
  theme: PortalSettingsTheme.nullish(),
6574
6602
  sidebar: PortalSettingsSidebar.nullish(),
6575
- createdAt: z212.coerce.date(),
6576
- updatedAt: z212.coerce.date()
6603
+ createdAt: z213.coerce.date(),
6604
+ updatedAt: z213.coerce.date()
6577
6605
  });
6578
6606
 
6579
6607
  // src/tokens/personal-access-token.ts
6580
- import { z as z213 } from "zod";
6581
- var PersonalAccessToken = z213.object({
6582
- id: z213.string(),
6583
- userId: z213.string(),
6584
- workspaceId: z213.string().optional(),
6585
- designSystemId: z213.string().optional(),
6608
+ import { z as z214 } from "zod";
6609
+ var PersonalAccessToken = z214.object({
6610
+ id: z214.string(),
6611
+ userId: z214.string(),
6612
+ workspaceId: z214.string().optional(),
6613
+ designSystemId: z214.string().optional(),
6586
6614
  workspaceRole: WorkspaceRoleSchema.optional(),
6587
- name: z213.string(),
6588
- hidden: z213.boolean(),
6589
- token: z213.string(),
6590
- scope: z213.string().optional(),
6591
- createdAt: z213.coerce.date(),
6592
- expireAt: z213.coerce.date().optional()
6615
+ name: z214.string(),
6616
+ hidden: z214.boolean(),
6617
+ token: z214.string(),
6618
+ scope: z214.string().optional(),
6619
+ createdAt: z214.coerce.date(),
6620
+ expireAt: z214.coerce.date().optional()
6593
6621
  });
6594
6622
  export {
6595
6623
  Address,
@@ -6930,7 +6958,11 @@ export {
6930
6958
  ForgeProjectMembership,
6931
6959
  ForgeProjectRole,
6932
6960
  ForgeProjectRoom,
6961
+ ForgeProjectRoomInitialState,
6962
+ ForgeProjectRoomUpdate,
6963
+ ForgeProjectSectionChildType,
6933
6964
  ForgeProjectTag,
6965
+ ForgeSection,
6934
6966
  ForgeSpecArtifact,
6935
6967
  GitBranch,
6936
6968
  GitCommonDestinationOptions,
@@ -7223,6 +7255,7 @@ export {
7223
7255
  SizeTokenData,
7224
7256
  SizeUnit,
7225
7257
  SizeValue,
7258
+ SortOrder,
7226
7259
  SourceImportComponentSummary,
7227
7260
  SourceImportFrameSummary,
7228
7261
  SourceImportStorybookSummary,