@supernova-studio/client 1.48.1 → 1.48.3

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
@@ -9511,6 +9511,11 @@ var DTOFeatureIterationArtifactsDiff = z314.object({
9511
9511
  deleted: z314.array(DTOFeatureArtifact.shape.key).optional().default([])
9512
9512
  });
9513
9513
  var DTOFeatureIterationState = z314.enum(["InProgress", "Success", "Error", "Timeout"]);
9514
+ var DTOFeatureIterationErrorType = z314.enum(["PackageInstall", "Build", "Unknown"]);
9515
+ var DTOFeatureIterationError = z314.object({
9516
+ description: z314.string(),
9517
+ type: DTOFeatureIterationErrorType
9518
+ });
9514
9519
  var DTOFeatureIteration = z314.object({
9515
9520
  id: Id,
9516
9521
  /**
@@ -9544,8 +9549,15 @@ var DTOFeatureIteration = z314.object({
9544
9549
  /**
9545
9550
  * Description of a sandbox error if there were any (such as during `npm i` or `npm run dev`).
9546
9551
  * To be used for "fix with AI"
9552
+ *
9553
+ * @deprecated use `error.description` instead
9547
9554
  */
9548
9555
  errorDescription: z314.string().nullish(),
9556
+ /**
9557
+ * Description of a sandbox error if there were any (such as during `npm i` or `npm run build`).
9558
+ * To be used for "fix with AI"
9559
+ */
9560
+ error: DTOFeatureIterationError.optional(),
9549
9561
  /**
9550
9562
  * The cost in credits to generate this iteration
9551
9563
  */
@@ -9675,6 +9687,10 @@ var DTOFeatureIterationUpdateArtifactsInput = z314.object({
9675
9687
  name: z314.string().optional(),
9676
9688
  artifactDiff: DTOFeatureIterationArtifactDiff
9677
9689
  });
9690
+ var DTOFeatureIterationValidateInput = z314.object({
9691
+ id: Id,
9692
+ messageId: Id
9693
+ });
9678
9694
  var DTOFeatureIterationUpdateArtifactsByMessageInput = z314.object({
9679
9695
  messageId: Id,
9680
9696
  name: z314.string().optional(),
@@ -9710,6 +9726,10 @@ var DTOFeatureIterationResponse = z314.object({
9710
9726
  var DTOFeatureIterationListResponse = z314.object({
9711
9727
  iterations: DTOFeatureIteration.array()
9712
9728
  });
9729
+ var DTOFeatureIterationValidateResponse = z314.discriminatedUnion("success", [
9730
+ z314.object({ success: z314.literal(true) }),
9731
+ z314.object({ success: z314.literal(false), error: DTOFeatureIterationError })
9732
+ ]);
9713
9733
  var DTOFeatureIterationTagResponse = z314.object({
9714
9734
  tag: DTOFeatureIterationTag
9715
9735
  });
@@ -10527,7 +10547,8 @@ var DTOForgeProject = z331.object({
10527
10547
  /** @deprecated use documents.length */
10528
10548
  numberOfDocuments: z331.number().int().nonnegative().optional(),
10529
10549
  /** @deprecated prefer fetching from project contexts endpoint separately */
10530
- context: DTOForgeProjectContextV2.optional()
10550
+ context: DTOForgeProjectContextV2.optional(),
10551
+ liveblocksRoomId: z331.string().optional()
10531
10552
  });
10532
10553
  var DTOForgeProjectCreate = DTOForgeProject.pick({
10533
10554
  name: true,
@@ -19645,6 +19666,8 @@ export {
19645
19666
  DTOFeatureIterationArtifactDiff,
19646
19667
  DTOFeatureIterationArtifactsDiff,
19647
19668
  DTOFeatureIterationCreateInput,
19669
+ DTOFeatureIterationError,
19670
+ DTOFeatureIterationErrorType,
19648
19671
  DTOFeatureIterationListResponse,
19649
19672
  DTOFeatureIterationPromoteInput,
19650
19673
  DTOFeatureIterationResponse,
@@ -19657,6 +19680,8 @@ export {
19657
19680
  DTOFeatureIterationUpdateArtifactsByMessageInput,
19658
19681
  DTOFeatureIterationUpdateArtifactsInput,
19659
19682
  DTOFeatureIterationUpdateInput,
19683
+ DTOFeatureIterationValidateInput,
19684
+ DTOFeatureIterationValidateResponse,
19660
19685
  DTOFeatureMessage,
19661
19686
  DTOFeatureMessageAgentSender,
19662
19687
  DTOFeatureMessageAttachments,