@supernova-studio/model 1.46.5 → 1.47.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
@@ -158,7 +158,8 @@ var FeaturesSummary = z7.object({
158
158
  forgeProjectFileSize: featureLimitedSchema,
159
159
  forgeActiveFeaturesPerProject: featureLimitedSchema,
160
160
  forgeActiveDocumentsPerProject: featureLimitedSchema,
161
- forgePrivateProjects: featureToggleSchema
161
+ forgePrivateProjects: featureToggleSchema,
162
+ forgeActiveProjectContexts: featureLimitedSchema
162
163
  });
163
164
 
164
165
  // src/billing/invoice.ts
@@ -5904,40 +5905,26 @@ var ForgeProjectArtifactContent = z173.object({
5904
5905
  // src/forge/project-artifact.ts
5905
5906
  import { z as z176 } from "zod";
5906
5907
 
5907
- // src/forge/project-section.ts
5908
- import { z as z174 } from "zod";
5909
- var ForgeProjectSectionChildType = z174.enum(["Artifact", "Feature"]);
5910
- var SortOrder = z174.number().int();
5911
- var ForgeSection = z174.object({
5912
- id: Id,
5913
- projectId: z174.string(),
5914
- name: z174.string(),
5915
- sortOrder: SortOrder.default(0),
5916
- createdAt: z174.coerce.date(),
5917
- updatedAt: z174.coerce.date(),
5918
- childType: ForgeProjectSectionChildType
5919
- });
5920
-
5921
5908
  // src/files/files.ts
5922
- import z175 from "zod";
5923
- var FileFigmaRenderMode = z175.enum(["Image", "HTML", "JSON"]);
5924
- var FileSourceUpload = z175.object({
5925
- type: z175.literal("UserUpload"),
5926
- userId: z175.string()
5927
- });
5928
- var FileSourceFigma = z175.object({
5929
- type: z175.literal("Figma"),
5909
+ import z174 from "zod";
5910
+ var FileFigmaRenderMode = z174.enum(["Image", "HTML", "JSON"]);
5911
+ var FileSourceUpload = z174.object({
5912
+ type: z174.literal("UserUpload"),
5913
+ userId: z174.string()
5914
+ });
5915
+ var FileSourceFigma = z174.object({
5916
+ type: z174.literal("Figma"),
5930
5917
  renderMode: FileFigmaRenderMode
5931
5918
  });
5932
- var FileSource = z175.discriminatedUnion("type", [FileSourceUpload, FileSourceFigma]);
5933
- var File = z175.object({
5934
- id: z175.string(),
5935
- name: z175.string(),
5936
- deduplicationKey: z175.string(),
5937
- pendingUpload: z175.boolean().optional(),
5938
- storagePath: z175.string(),
5939
- url: z175.string(),
5940
- size: z175.number(),
5919
+ var FileSource = z174.discriminatedUnion("type", [FileSourceUpload, FileSourceFigma]);
5920
+ var File = z174.object({
5921
+ id: z174.string(),
5922
+ name: z174.string(),
5923
+ deduplicationKey: z174.string(),
5924
+ pendingUpload: z174.boolean().optional(),
5925
+ storagePath: z174.string(),
5926
+ url: z174.string(),
5927
+ size: z174.number(),
5941
5928
  /**
5942
5929
  * Object describing where did the file come from. Undefined source indicates a file produced by the
5943
5930
  * system (e.g. thumbnails, etc)
@@ -5952,6 +5939,20 @@ var FileReference = File.pick({
5952
5939
  name: File.shape.name.optional()
5953
5940
  });
5954
5941
 
5942
+ // src/forge/project-section.ts
5943
+ import { z as z175 } from "zod";
5944
+ var ForgeProjectSectionChildType = z175.enum(["Artifact", "Feature"]);
5945
+ var SortOrder = z175.number().int();
5946
+ var ForgeSection = z175.object({
5947
+ id: Id,
5948
+ projectId: z175.string(),
5949
+ name: z175.string(),
5950
+ sortOrder: SortOrder.default(0),
5951
+ createdAt: z175.coerce.date(),
5952
+ updatedAt: z175.coerce.date(),
5953
+ childType: ForgeProjectSectionChildType
5954
+ });
5955
+
5955
5956
  // src/forge/project-artifact.ts
5956
5957
  var ForgeProjectArtifact = z176.object({
5957
5958
  id: Id,
@@ -5965,7 +5966,10 @@ var ForgeProjectArtifact = z176.object({
5965
5966
  createdByUserId: z176.string(),
5966
5967
  sectionId: Id.optional(),
5967
5968
  threadId: z176.string().optional(),
5968
- thumbnail: FileReference.optional()
5969
+ thumbnail: FileReference.optional(),
5970
+ // Default value here is important for backward compatibility for parsing artifacts
5971
+ // from project rooms!
5972
+ isArchived: z176.boolean().default(false)
5969
5973
  });
5970
5974
 
5971
5975
  // src/forge/project-feature.ts
@@ -5976,7 +5980,7 @@ var ProjectFeature = z177.object({
5976
5980
  createdByUserId: z177.string(),
5977
5981
  description: z177.string(),
5978
5982
  id: Id,
5979
- isArchived: z177.boolean().optional(),
5983
+ isArchived: z177.boolean(),
5980
5984
  name: z177.string(),
5981
5985
  projectId: z177.string(),
5982
5986
  sectionId: Id.optional(),