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