@supernova-studio/client 1.31.2 → 1.31.4
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 +675 -74
- package/dist/index.d.ts +675 -74
- package/dist/index.js +35 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +34 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5219,8 +5219,10 @@ var ProjectFeature = z179.object({
|
|
|
5219
5219
|
sectionId: Id.optional(),
|
|
5220
5220
|
sortOrder: SortOrder.default(0),
|
|
5221
5221
|
status: ProjectFeatureStatus.default("Draft"),
|
|
5222
|
-
|
|
5223
|
-
|
|
5222
|
+
updatedAt: z179.coerce.date().optional(),
|
|
5223
|
+
numberOfIterations: z179.number().min(0).default(0),
|
|
5224
|
+
numberOfBookmarkedIterations: z179.number().min(0).default(0),
|
|
5225
|
+
lastReplyTimestamp: z179.coerce.date().optional()
|
|
5224
5226
|
});
|
|
5225
5227
|
var ForgeProjectFigmaNode = z180.object({
|
|
5226
5228
|
id: z180.string().uuid(),
|
|
@@ -9136,8 +9138,12 @@ var DTOFeatureMessage = z312.object({
|
|
|
9136
9138
|
/**
|
|
9137
9139
|
* Link agent response object describing current state of
|
|
9138
9140
|
*/
|
|
9139
|
-
agentResponseTrackerId: Id.optional(),
|
|
9141
|
+
agentResponseTrackerId: Id.optional().nullable(),
|
|
9140
9142
|
attachments: DTOFeatureMessageAttachments.optional(),
|
|
9143
|
+
/**
|
|
9144
|
+
* If defined, this message is considered to be a reply to different message
|
|
9145
|
+
*/
|
|
9146
|
+
replyToMessageId: Id.optional(),
|
|
9141
9147
|
createdAt: z312.string(),
|
|
9142
9148
|
updatedAt: z312.string().optional()
|
|
9143
9149
|
});
|
|
@@ -9188,6 +9194,10 @@ var DTOFeatureIteration = z312.object({
|
|
|
9188
9194
|
* URL of a static preview of the feature
|
|
9189
9195
|
*/
|
|
9190
9196
|
staticPreviewUrl: z312.string().optional(),
|
|
9197
|
+
/**
|
|
9198
|
+
* Indicates whether the iteration is bookmarked by user
|
|
9199
|
+
*/
|
|
9200
|
+
isBookmarked: z312.boolean().optional(),
|
|
9191
9201
|
createdAt: z312.string(),
|
|
9192
9202
|
updatedAt: z312.string().optional()
|
|
9193
9203
|
});
|
|
@@ -9214,7 +9224,7 @@ var DTOFeatureMessageCreateInput = DTOFeatureMessage.pick({
|
|
|
9214
9224
|
agentResponseTrackerId: true,
|
|
9215
9225
|
createdAt: true
|
|
9216
9226
|
});
|
|
9217
|
-
var DTOFeatureMessageUpdateInput = DTOFeatureMessageCreateInput.
|
|
9227
|
+
var DTOFeatureMessageUpdateInput = DTOFeatureMessageCreateInput.omit({ id: true }).merge(DTOFeatureMessage.pick({ agentResponseTrackerId: true })).partial();
|
|
9218
9228
|
var DTOFeatureMessageReactionCreateInput = z312.object({
|
|
9219
9229
|
messageId: Id,
|
|
9220
9230
|
emoji: z312.string()
|
|
@@ -9239,6 +9249,10 @@ var DTOFeatureIterationCreateInput = DTOFeatureIteration.pick({
|
|
|
9239
9249
|
var DTOFeatureIterationPromoteInput = z312.object({
|
|
9240
9250
|
id: Id
|
|
9241
9251
|
});
|
|
9252
|
+
var DTOFeatureIterationUpdateInput = z312.object({
|
|
9253
|
+
id: Id,
|
|
9254
|
+
isBookmarked: z312.boolean().optional()
|
|
9255
|
+
});
|
|
9242
9256
|
var DTOFeatureIterationTagCreateInput = z312.object({
|
|
9243
9257
|
featureId: Id,
|
|
9244
9258
|
iterationId: Id,
|
|
@@ -9464,9 +9478,9 @@ var DTOForgeProjectFeatureCreateInput = z318.object({
|
|
|
9464
9478
|
id: Id,
|
|
9465
9479
|
name: z318.string(),
|
|
9466
9480
|
description: z318.string(),
|
|
9467
|
-
initialPrompt: z318.string(),
|
|
9468
9481
|
sectionId: Id.optional(),
|
|
9469
|
-
afterFeatureId: Id.nullable().optional()
|
|
9482
|
+
afterFeatureId: Id.nullable().optional(),
|
|
9483
|
+
initialMessage: DTOFeatureMessageCreateInput
|
|
9470
9484
|
});
|
|
9471
9485
|
var DTOForgeProjectFeatureUpdateInput = z318.object({
|
|
9472
9486
|
id: Id,
|
|
@@ -11499,6 +11513,16 @@ var ForgeProjectFeaturesEndpoint = class {
|
|
|
11499
11513
|
{}
|
|
11500
11514
|
);
|
|
11501
11515
|
}
|
|
11516
|
+
agentWorkFinalized(workspaceId, projectId, featureId, body) {
|
|
11517
|
+
return this.requestExecutor.json(
|
|
11518
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}/agent-work-finalize`,
|
|
11519
|
+
DTOFeatureIterationResponse,
|
|
11520
|
+
{
|
|
11521
|
+
method: "POST",
|
|
11522
|
+
body
|
|
11523
|
+
}
|
|
11524
|
+
);
|
|
11525
|
+
}
|
|
11502
11526
|
};
|
|
11503
11527
|
|
|
11504
11528
|
// src/api/endpoints/forge/project-files.ts
|
|
@@ -17956,7 +17980,9 @@ var LocalProjectActionExecutor = class {
|
|
|
17956
17980
|
updatedAt: /* @__PURE__ */ new Date(),
|
|
17957
17981
|
createdAt: /* @__PURE__ */ new Date(),
|
|
17958
17982
|
createdByUserId: this.userId,
|
|
17959
|
-
|
|
17983
|
+
lastReplyTimestamp: void 0,
|
|
17984
|
+
numberOfIterations: 0,
|
|
17985
|
+
numberOfBookmarkedIterations: 0
|
|
17960
17986
|
});
|
|
17961
17987
|
}
|
|
17962
17988
|
//
|
|
@@ -18498,6 +18524,7 @@ export {
|
|
|
18498
18524
|
DTOFeatureIterationTagListResponse,
|
|
18499
18525
|
DTOFeatureIterationTagResponse,
|
|
18500
18526
|
DTOFeatureIterationUpdateArtifactsInput,
|
|
18527
|
+
DTOFeatureIterationUpdateInput,
|
|
18501
18528
|
DTOFeatureMessage,
|
|
18502
18529
|
DTOFeatureMessageAgentSender,
|
|
18503
18530
|
DTOFeatureMessageAttachments,
|