@supernova-studio/model 1.46.6 → 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.d.mts +26 -13
- package/dist/index.d.ts +26 -13
- package/dist/index.js +19 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +36 -33
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5905,40 +5905,26 @@ var ForgeProjectArtifactContent = z173.object({
|
|
|
5905
5905
|
// src/forge/project-artifact.ts
|
|
5906
5906
|
import { z as z176 } from "zod";
|
|
5907
5907
|
|
|
5908
|
-
// src/forge/project-section.ts
|
|
5909
|
-
import { z as z174 } from "zod";
|
|
5910
|
-
var ForgeProjectSectionChildType = z174.enum(["Artifact", "Feature"]);
|
|
5911
|
-
var SortOrder = z174.number().int();
|
|
5912
|
-
var ForgeSection = z174.object({
|
|
5913
|
-
id: Id,
|
|
5914
|
-
projectId: z174.string(),
|
|
5915
|
-
name: z174.string(),
|
|
5916
|
-
sortOrder: SortOrder.default(0),
|
|
5917
|
-
createdAt: z174.coerce.date(),
|
|
5918
|
-
updatedAt: z174.coerce.date(),
|
|
5919
|
-
childType: ForgeProjectSectionChildType
|
|
5920
|
-
});
|
|
5921
|
-
|
|
5922
5908
|
// src/files/files.ts
|
|
5923
|
-
import
|
|
5924
|
-
var FileFigmaRenderMode =
|
|
5925
|
-
var FileSourceUpload =
|
|
5926
|
-
type:
|
|
5927
|
-
userId:
|
|
5928
|
-
});
|
|
5929
|
-
var FileSourceFigma =
|
|
5930
|
-
type:
|
|
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"),
|
|
5931
5917
|
renderMode: FileFigmaRenderMode
|
|
5932
5918
|
});
|
|
5933
|
-
var FileSource =
|
|
5934
|
-
var File =
|
|
5935
|
-
id:
|
|
5936
|
-
name:
|
|
5937
|
-
deduplicationKey:
|
|
5938
|
-
pendingUpload:
|
|
5939
|
-
storagePath:
|
|
5940
|
-
url:
|
|
5941
|
-
size:
|
|
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(),
|
|
5942
5928
|
/**
|
|
5943
5929
|
* Object describing where did the file come from. Undefined source indicates a file produced by the
|
|
5944
5930
|
* system (e.g. thumbnails, etc)
|
|
@@ -5953,6 +5939,20 @@ var FileReference = File.pick({
|
|
|
5953
5939
|
name: File.shape.name.optional()
|
|
5954
5940
|
});
|
|
5955
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
|
+
|
|
5956
5956
|
// src/forge/project-artifact.ts
|
|
5957
5957
|
var ForgeProjectArtifact = z176.object({
|
|
5958
5958
|
id: Id,
|
|
@@ -5966,7 +5966,10 @@ var ForgeProjectArtifact = z176.object({
|
|
|
5966
5966
|
createdByUserId: z176.string(),
|
|
5967
5967
|
sectionId: Id.optional(),
|
|
5968
5968
|
threadId: z176.string().optional(),
|
|
5969
|
-
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)
|
|
5970
5973
|
});
|
|
5971
5974
|
|
|
5972
5975
|
// src/forge/project-feature.ts
|
|
@@ -5977,7 +5980,7 @@ var ProjectFeature = z177.object({
|
|
|
5977
5980
|
createdByUserId: z177.string(),
|
|
5978
5981
|
description: z177.string(),
|
|
5979
5982
|
id: Id,
|
|
5980
|
-
isArchived: z177.boolean()
|
|
5983
|
+
isArchived: z177.boolean(),
|
|
5981
5984
|
name: z177.string(),
|
|
5982
5985
|
projectId: z177.string(),
|
|
5983
5986
|
sectionId: Id.optional(),
|