@supernova-studio/client 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.d.mts +160 -36
- package/dist/index.d.ts +160 -36
- package/dist/index.js +24 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +41 -34
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -348,7 +348,8 @@ var FeaturesSummary = _zod.z.object({
|
|
|
348
348
|
forgeProjectFileSize: featureLimitedSchema,
|
|
349
349
|
forgeActiveFeaturesPerProject: featureLimitedSchema,
|
|
350
350
|
forgeActiveDocumentsPerProject: featureLimitedSchema,
|
|
351
|
-
forgePrivateProjects: featureToggleSchema
|
|
351
|
+
forgePrivateProjects: featureToggleSchema,
|
|
352
|
+
forgeActiveProjectContexts: featureLimitedSchema
|
|
352
353
|
});
|
|
353
354
|
var InvoiceSchema = _zod.z.object({
|
|
354
355
|
id: _zod.z.string(),
|
|
@@ -5180,17 +5181,6 @@ var ForgeProjectArtifactContent = _zod.z.object({
|
|
|
5180
5181
|
updatedAt: _zod.z.coerce.date(),
|
|
5181
5182
|
data: ForgeProjectArtifactContentData
|
|
5182
5183
|
});
|
|
5183
|
-
var ForgeProjectSectionChildType = _zod.z.enum(["Artifact", "Feature"]);
|
|
5184
|
-
var SortOrder = _zod.z.number().int();
|
|
5185
|
-
var ForgeSection = _zod.z.object({
|
|
5186
|
-
id: Id,
|
|
5187
|
-
projectId: _zod.z.string(),
|
|
5188
|
-
name: _zod.z.string(),
|
|
5189
|
-
sortOrder: SortOrder.default(0),
|
|
5190
|
-
createdAt: _zod.z.coerce.date(),
|
|
5191
|
-
updatedAt: _zod.z.coerce.date(),
|
|
5192
|
-
childType: ForgeProjectSectionChildType
|
|
5193
|
-
});
|
|
5194
5184
|
var FileFigmaRenderMode = _zod2.default.enum(["Image", "HTML", "JSON"]);
|
|
5195
5185
|
var FileSourceUpload = _zod2.default.object({
|
|
5196
5186
|
type: _zod2.default.literal("UserUpload"),
|
|
@@ -5222,6 +5212,17 @@ var FileReference = File.pick({
|
|
|
5222
5212
|
}).extend({
|
|
5223
5213
|
name: File.shape.name.optional()
|
|
5224
5214
|
});
|
|
5215
|
+
var ForgeProjectSectionChildType = _zod.z.enum(["Artifact", "Feature"]);
|
|
5216
|
+
var SortOrder = _zod.z.number().int();
|
|
5217
|
+
var ForgeSection = _zod.z.object({
|
|
5218
|
+
id: Id,
|
|
5219
|
+
projectId: _zod.z.string(),
|
|
5220
|
+
name: _zod.z.string(),
|
|
5221
|
+
sortOrder: SortOrder.default(0),
|
|
5222
|
+
createdAt: _zod.z.coerce.date(),
|
|
5223
|
+
updatedAt: _zod.z.coerce.date(),
|
|
5224
|
+
childType: ForgeProjectSectionChildType
|
|
5225
|
+
});
|
|
5225
5226
|
var ForgeProjectArtifact = _zod.z.object({
|
|
5226
5227
|
id: Id,
|
|
5227
5228
|
projectId: _zod.z.string(),
|
|
@@ -5234,7 +5235,10 @@ var ForgeProjectArtifact = _zod.z.object({
|
|
|
5234
5235
|
createdByUserId: _zod.z.string(),
|
|
5235
5236
|
sectionId: Id.optional(),
|
|
5236
5237
|
threadId: _zod.z.string().optional(),
|
|
5237
|
-
thumbnail: FileReference.optional()
|
|
5238
|
+
thumbnail: FileReference.optional(),
|
|
5239
|
+
// Default value here is important for backward compatibility for parsing artifacts
|
|
5240
|
+
// from project rooms!
|
|
5241
|
+
isArchived: _zod.z.boolean().default(false)
|
|
5238
5242
|
});
|
|
5239
5243
|
var ProjectFeatureStatus = _zod.z.enum(["Draft", "ReadyForDevelopment"]);
|
|
5240
5244
|
var ProjectFeature = _zod.z.object({
|
|
@@ -5242,7 +5246,7 @@ var ProjectFeature = _zod.z.object({
|
|
|
5242
5246
|
createdByUserId: _zod.z.string(),
|
|
5243
5247
|
description: _zod.z.string(),
|
|
5244
5248
|
id: Id,
|
|
5245
|
-
isArchived: _zod.z.boolean()
|
|
5249
|
+
isArchived: _zod.z.boolean(),
|
|
5246
5250
|
name: _zod.z.string(),
|
|
5247
5251
|
projectId: _zod.z.string(),
|
|
5248
5252
|
sectionId: Id.optional(),
|
|
@@ -9931,7 +9935,8 @@ var DTOForgeSectionItemMoveInput = _zod2.default.object({
|
|
|
9931
9935
|
var DTOForgeProjectArtifact = ForgeProjectArtifact;
|
|
9932
9936
|
var DTOForgeProjectArtifactUpdateInput = _zod.z.object({
|
|
9933
9937
|
id: _zod.z.string(),
|
|
9934
|
-
title: _zod.z.string().optional()
|
|
9938
|
+
title: _zod.z.string().optional(),
|
|
9939
|
+
isArchived: _zod.z.boolean().optional()
|
|
9935
9940
|
});
|
|
9936
9941
|
var DTOForgeProjectArtifactCreateInput = _zod.z.object({
|
|
9937
9942
|
id: _zod.z.string(),
|
|
@@ -10441,7 +10446,7 @@ var DTOForgeProject = _zod.z.object({
|
|
|
10441
10446
|
tags: _zod.z.array(_zod.z.string()).default([]),
|
|
10442
10447
|
accessMode: DTOForgeProjectAccessMode,
|
|
10443
10448
|
defaultRole: DTOForgeProjectDefaultRole.default("Viewer"),
|
|
10444
|
-
isArchived: _zod.z.boolean()
|
|
10449
|
+
isArchived: _zod.z.boolean(),
|
|
10445
10450
|
emoji: _zod.z.string().optional(),
|
|
10446
10451
|
createdAt: _zod.z.coerce.date(),
|
|
10447
10452
|
createdByUserId: _zod.z.string().optional(),
|
|
@@ -18928,7 +18933,8 @@ var LocalProjectActionExecutor = class {
|
|
|
18928
18933
|
title: input.title,
|
|
18929
18934
|
updatedAt: /* @__PURE__ */ new Date(),
|
|
18930
18935
|
createdAt: /* @__PURE__ */ new Date(),
|
|
18931
|
-
createdByUserId: this.userId
|
|
18936
|
+
createdByUserId: this.userId,
|
|
18937
|
+
isArchived: false
|
|
18932
18938
|
});
|
|
18933
18939
|
}
|
|
18934
18940
|
//
|
|
@@ -18944,6 +18950,7 @@ var LocalProjectActionExecutor = class {
|
|
|
18944
18950
|
const mergedArtifact = {
|
|
18945
18951
|
...existingArtifact,
|
|
18946
18952
|
title: _nullishCoalesce(input.title, () => ( existingArtifact.title)),
|
|
18953
|
+
isArchived: _nullishCoalesce(input.isArchived, () => ( existingArtifact.isArchived)),
|
|
18947
18954
|
updatedAt: /* @__PURE__ */ new Date()
|
|
18948
18955
|
};
|
|
18949
18956
|
this.artifacts.set(id, mergedArtifact);
|