@supernova-studio/client 1.47.0 → 1.47.2

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
@@ -4423,6 +4423,14 @@ var WorkspaceUntypedData = z130.object({
4423
4423
  var WorkspaceRoleSchema = z131.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
4424
4424
  var WorkspaceRole = WorkspaceRoleSchema.enum;
4425
4425
  var WorkspaceSeatType = z131.enum(["Full", "Builder", "None"]);
4426
+ var fullSeatTypeRoles = /* @__PURE__ */ new Set([
4427
+ WorkspaceRole.Owner,
4428
+ WorkspaceRole.Admin,
4429
+ WorkspaceRole.Creator,
4430
+ WorkspaceRole.Contributor
4431
+ ]);
4432
+ var builderSeatTypeRoles = /* @__PURE__ */ new Set([WorkspaceRole.Owner, WorkspaceRole.Admin, WorkspaceRole.Creator]);
4433
+ var noneSeatTypeRoles = /* @__PURE__ */ new Set([WorkspaceRole.Viewer, WorkspaceRole.Billing]);
4426
4434
  var MAX_MEMBERS_COUNT = 100;
4427
4435
  var UserInvite = z132.object({
4428
4436
  email: z132.string().email().trim().transform((value) => value.toLowerCase()),
@@ -5728,7 +5736,8 @@ var FlaggedFeature = z206.enum([
5728
5736
  "PulsarConcurrency",
5729
5737
  "PulsarProfilerMode",
5730
5738
  "ForgeE2BTemplate",
5731
- "ForgeOnDemandIterations"
5739
+ "ForgeOnDemandIterations",
5740
+ "ForgeAutoRetryOnErrors"
5732
5741
  ]);
5733
5742
  var FeatureFlagMap = z206.record(FlaggedFeature, z206.boolean());
5734
5743
  var FeatureFlag = z206.object({
@@ -7492,15 +7501,30 @@ var DTOSubscription = z249.object({
7492
7501
  internalStatus: InternalStatusSchema.optional(),
7493
7502
  product: ProductCodeSchema,
7494
7503
  featuresSummary: FeaturesSummary.optional(),
7504
+ /**
7505
+ * @deprecated get available-products for this information
7506
+ */
7495
7507
  stripeProductDescription: z249.string().optional(),
7508
+ /**
7509
+ * @deprecated get available-products for this information
7510
+ */
7496
7511
  stripeProductFeatures: z249.array(z249.string()).optional(),
7512
+ /**
7513
+ * @deprecated get available-products for this information
7514
+ */
7497
7515
  stripeProductAdditionalFeatures: z249.array(z249.string()).optional(),
7516
+ /**
7517
+ * @deprecated always undefined
7518
+ */
7498
7519
  stripeSubscriptionMainItemId: z249.string().optional(),
7499
7520
  /**
7500
7521
  * @deprecated use `fullSeatPriceId` or `builderSeatPriceId`
7501
7522
  */
7502
7523
  planPriceId: z249.string(),
7503
7524
  planInterval: DTOBillingInterval,
7525
+ /**
7526
+ * @deprecated All subscriptions were migrated to work as "price per creator"
7527
+ */
7504
7528
  isPricePerCreator: z249.boolean().optional(),
7505
7529
  legacyVersion: z249.string().optional(),
7506
7530
  seats: z249.number(),
@@ -9509,6 +9533,11 @@ var DTOFeatureIteration = z314.object({
9509
9533
  * - Timeout: the iteration hasn't been finished in a reasonable time, the iteration cannot be consumed
9510
9534
  */
9511
9535
  state: DTOFeatureIterationState.optional(),
9536
+ /**
9537
+ * Description of a sandbox error if there were any (such as during `npm i` or `npm run dev`).
9538
+ * To be used for "fix with AI"
9539
+ */
9540
+ errorDescription: z314.string().nullish(),
9512
9541
  /**
9513
9542
  * URL of a static preview of the feature
9514
9543
  */
@@ -9540,12 +9569,19 @@ var DTOFeatureIterationTag = z314.object({
9540
9569
  */
9541
9570
  iterationId: Id
9542
9571
  });
9572
+ var DTOSandboxError = z314.object({
9573
+ /** At what stage the error has occured */
9574
+ stage: z314.enum(["PackageInstall", "HealthCheck", "Build", "Unknown"]),
9575
+ /** We will use this in "fix with AI" */
9576
+ errorDescription: z314.string()
9577
+ });
9543
9578
  var DTOFeatureSandbox = z314.object({
9544
9579
  id: z314.string(),
9545
9580
  url: z314.string(),
9546
9581
  parentMessageId: Id.optional(),
9547
9582
  currentIterationId: Id,
9548
- expiresAt: z314.string().optional()
9583
+ expiresAt: z314.string().optional(),
9584
+ error: DTOSandboxError.optional()
9549
9585
  });
9550
9586
  var DTOFeatureMessageCreateInput = DTOFeatureMessage.pick({
9551
9587
  id: true,
@@ -9810,6 +9846,10 @@ var DTOThreadMessage = z318.object({
9810
9846
  * AI agent to generate a response and perform an action within the feature
9811
9847
  */
9812
9848
  isPrompt: z318.boolean().optional(),
9849
+ /**
9850
+ * Indicates if the message is an attempt to retry agent message. Only available for agent messages.
9851
+ */
9852
+ isRetry: z318.boolean().optional(),
9813
9853
  /**
9814
9854
  * Indicates if the sender requested agent to reply in a thread
9815
9855
  */
@@ -9854,6 +9894,9 @@ var DTOThreadMessageFinalizeInput = z318.object({
9854
9894
  agentMessageBody: z318.string().optional(),
9855
9895
  promptState: DTOThreadPromptState.optional()
9856
9896
  });
9897
+ var DTOThreadMessageRetryInput = z318.object({
9898
+ agentMessageId: Id
9899
+ });
9857
9900
  var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
9858
9901
  id: true
9859
9902
  }).merge(
@@ -19829,6 +19872,7 @@ export {
19829
19872
  DTORenderedAssetFile,
19830
19873
  DTORestoreDocumentationGroupInput,
19831
19874
  DTORestoreDocumentationPageInput,
19875
+ DTOSandboxError,
19832
19876
  DTOStorybookAccessTokenPayload,
19833
19877
  DTOStorybookAccessTokenResponse,
19834
19878
  DTOStorybookEntry,
@@ -19870,6 +19914,7 @@ export {
19870
19914
  DTOThreadMessageFinalizeInput,
19871
19915
  DTOThreadMessageListResponse,
19872
19916
  DTOThreadMessageResponse,
19917
+ DTOThreadMessageRetryInput,
19873
19918
  DTOThreadMessageSender,
19874
19919
  DTOThreadMessageSystemSender,
19875
19920
  DTOThreadMessageUpdateInput,