@supernova-studio/client 1.44.5 → 1.44.6

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
@@ -9454,6 +9454,7 @@ var DTOFeatureIterationArtifactsDiff = z313.object({
9454
9454
  updated: z313.array(DTOFeatureArtifact.shape.key).optional().default([]),
9455
9455
  deleted: z313.array(DTOFeatureArtifact.shape.key).optional().default([])
9456
9456
  });
9457
+ var DTOFeatureIterationState = z313.enum(["InProgress", "Success", "Error", "Timeout"]);
9457
9458
  var DTOFeatureIteration = z313.object({
9458
9459
  id: Id,
9459
9460
  /**
@@ -9470,8 +9471,20 @@ var DTOFeatureIteration = z313.object({
9470
9471
  startedFromMessageId: z313.string(),
9471
9472
  /**
9472
9473
  * Indicates whether the iteration is currently being generated by an agent
9474
+ * @deprecated use `state`
9473
9475
  */
9474
9476
  isInProgress: z313.boolean().optional(),
9477
+ /**
9478
+ * Indicates current processing (creation) state of this iteration.
9479
+ * This property is optional only for backward compatibility with data stored in Liveblocks rooms.
9480
+ * It can be treated as non-optional (undefined doesn't have any meaning here).
9481
+ *
9482
+ * - InProgress: iteration is being created by an AI agent
9483
+ * - Success: iteration has been successfully finished and is ready to be consumed
9484
+ * - Error: an error has occured during iteration processing, the iteration cannot be consumed
9485
+ * - Timeout: the iteration hasn't been finished in a reasonable time, the iteration cannot be consumed
9486
+ */
9487
+ state: DTOFeatureIterationState.optional(),
9475
9488
  /**
9476
9489
  * URL of a static preview of the feature
9477
9490
  */
@@ -9720,6 +9733,7 @@ import { z as z319 } from "zod";
9720
9733
  import z317 from "zod";
9721
9734
  var DTOThreadSubjectType = z317.enum(["ForgeDocument", "ForgeFeature"]);
9722
9735
  var DTOThreadAgentType = z317.enum(["Ask", "Document", "Prototype", "ReleaseNotes"]);
9736
+ var DTOThreadPromptState = z317.enum(["Success", "Timeout", "Error"]);
9723
9737
  var DTOThread = z317.object({
9724
9738
  id: z317.string(),
9725
9739
  liveblocksRoomId: z317.string(),
@@ -9813,7 +9827,8 @@ var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
9813
9827
  });
9814
9828
  var DTOThreadMessageFinalizeInput = z317.object({
9815
9829
  messageId: Id,
9816
- agentMessageBody: z317.string().optional()
9830
+ agentMessageBody: z317.string().optional(),
9831
+ promptState: DTOThreadPromptState.optional()
9817
9832
  });
9818
9833
  var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
9819
9834
  id: true
@@ -19453,6 +19468,7 @@ export {
19453
19468
  DTOFeatureIterationPromoteInput,
19454
19469
  DTOFeatureIterationResponse,
19455
19470
  DTOFeatureIterationSetLatestInput,
19471
+ DTOFeatureIterationState,
19456
19472
  DTOFeatureIterationTag,
19457
19473
  DTOFeatureIterationTagCreateInput,
19458
19474
  DTOFeatureIterationTagListResponse,
@@ -19774,6 +19790,7 @@ export {
19774
19790
  DTOThreadMessageSystemSender,
19775
19791
  DTOThreadMessageUpdateInput,
19776
19792
  DTOThreadMessageUserSender,
19793
+ DTOThreadPromptState,
19777
19794
  DTOThreadReaction,
19778
19795
  DTOThreadReactionCreateInput,
19779
19796
  DTOThreadReactionDeleteInput,