@supernova-studio/client 1.44.5 → 1.44.7
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 +181 -1
- package/dist/index.d.ts +181 -1
- package/dist/index.js +29 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -436,6 +436,7 @@ var Subscription = z12.object({
|
|
|
436
436
|
internalStatus: nullishToOptional(InternalStatusSchema),
|
|
437
437
|
stripeSubscriptionId: nullishToOptional(z12.string()),
|
|
438
438
|
stripeCustomerId: nullishToOptional(z12.string()),
|
|
439
|
+
stripeScheduleId: nullishToOptional(z12.string()),
|
|
439
440
|
product: ProductCodeSchema,
|
|
440
441
|
planPriceId: z12.string(),
|
|
441
442
|
planInterval: BillingIntervalSchema,
|
|
@@ -7445,6 +7446,7 @@ var DTOCreditsPrices = z248.object({
|
|
|
7445
7446
|
var DTOSubscription = z248.object({
|
|
7446
7447
|
stripeSubscriptionId: z248.string().optional(),
|
|
7447
7448
|
stripeCustomerId: z248.string().optional(),
|
|
7449
|
+
stripeScheduleId: z248.string().optional(),
|
|
7448
7450
|
status: InternalStatusSchema.optional(),
|
|
7449
7451
|
subscriptionStatus: StripeSubscriptionStatusSchema.optional(),
|
|
7450
7452
|
internalStatus: InternalStatusSchema.optional(),
|
|
@@ -7482,8 +7484,15 @@ var DTOSubscription = z248.object({
|
|
|
7482
7484
|
builderSeatPriceId: z248.string().optional(),
|
|
7483
7485
|
additionalCreditsPriceId: z248.string().optional()
|
|
7484
7486
|
});
|
|
7487
|
+
var DTOSubscriptionUpcomingChange = z248.object({
|
|
7488
|
+
effectiveAt: z248.string(),
|
|
7489
|
+
fullSeatLimit: z248.number().optional(),
|
|
7490
|
+
builderSeatLimit: z248.number().optional(),
|
|
7491
|
+
additionalCredits: z248.number().optional()
|
|
7492
|
+
});
|
|
7485
7493
|
var DTOSubscriptionResponse = z248.object({
|
|
7486
7494
|
subscription: DTOSubscription,
|
|
7495
|
+
subscriptionUpcomingChange: DTOSubscriptionUpcomingChange.optional(),
|
|
7487
7496
|
creditBalance: DTOCreditBalance.optional(),
|
|
7488
7497
|
creditsPrices: DTOCreditsPrices
|
|
7489
7498
|
});
|
|
@@ -9454,6 +9463,7 @@ var DTOFeatureIterationArtifactsDiff = z313.object({
|
|
|
9454
9463
|
updated: z313.array(DTOFeatureArtifact.shape.key).optional().default([]),
|
|
9455
9464
|
deleted: z313.array(DTOFeatureArtifact.shape.key).optional().default([])
|
|
9456
9465
|
});
|
|
9466
|
+
var DTOFeatureIterationState = z313.enum(["InProgress", "Success", "Error", "Timeout"]);
|
|
9457
9467
|
var DTOFeatureIteration = z313.object({
|
|
9458
9468
|
id: Id,
|
|
9459
9469
|
/**
|
|
@@ -9470,8 +9480,20 @@ var DTOFeatureIteration = z313.object({
|
|
|
9470
9480
|
startedFromMessageId: z313.string(),
|
|
9471
9481
|
/**
|
|
9472
9482
|
* Indicates whether the iteration is currently being generated by an agent
|
|
9483
|
+
* @deprecated use `state`
|
|
9473
9484
|
*/
|
|
9474
9485
|
isInProgress: z313.boolean().optional(),
|
|
9486
|
+
/**
|
|
9487
|
+
* Indicates current processing (creation) state of this iteration.
|
|
9488
|
+
* This property is optional only for backward compatibility with data stored in Liveblocks rooms.
|
|
9489
|
+
* It can be treated as non-optional (undefined doesn't have any meaning here).
|
|
9490
|
+
*
|
|
9491
|
+
* - InProgress: iteration is being created by an AI agent
|
|
9492
|
+
* - Success: iteration has been successfully finished and is ready to be consumed
|
|
9493
|
+
* - Error: an error has occured during iteration processing, the iteration cannot be consumed
|
|
9494
|
+
* - Timeout: the iteration hasn't been finished in a reasonable time, the iteration cannot be consumed
|
|
9495
|
+
*/
|
|
9496
|
+
state: DTOFeatureIterationState.optional(),
|
|
9475
9497
|
/**
|
|
9476
9498
|
* URL of a static preview of the feature
|
|
9477
9499
|
*/
|
|
@@ -9720,6 +9742,7 @@ import { z as z319 } from "zod";
|
|
|
9720
9742
|
import z317 from "zod";
|
|
9721
9743
|
var DTOThreadSubjectType = z317.enum(["ForgeDocument", "ForgeFeature"]);
|
|
9722
9744
|
var DTOThreadAgentType = z317.enum(["Ask", "Document", "Prototype", "ReleaseNotes"]);
|
|
9745
|
+
var DTOThreadPromptState = z317.enum(["Success", "Timeout", "Error"]);
|
|
9723
9746
|
var DTOThread = z317.object({
|
|
9724
9747
|
id: z317.string(),
|
|
9725
9748
|
liveblocksRoomId: z317.string(),
|
|
@@ -9813,7 +9836,8 @@ var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
|
|
|
9813
9836
|
});
|
|
9814
9837
|
var DTOThreadMessageFinalizeInput = z317.object({
|
|
9815
9838
|
messageId: Id,
|
|
9816
|
-
agentMessageBody: z317.string().optional()
|
|
9839
|
+
agentMessageBody: z317.string().optional(),
|
|
9840
|
+
promptState: DTOThreadPromptState.optional()
|
|
9817
9841
|
});
|
|
9818
9842
|
var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
|
|
9819
9843
|
id: true
|
|
@@ -19453,6 +19477,7 @@ export {
|
|
|
19453
19477
|
DTOFeatureIterationPromoteInput,
|
|
19454
19478
|
DTOFeatureIterationResponse,
|
|
19455
19479
|
DTOFeatureIterationSetLatestInput,
|
|
19480
|
+
DTOFeatureIterationState,
|
|
19456
19481
|
DTOFeatureIterationTag,
|
|
19457
19482
|
DTOFeatureIterationTagCreateInput,
|
|
19458
19483
|
DTOFeatureIterationTagListResponse,
|
|
@@ -19745,6 +19770,7 @@ export {
|
|
|
19745
19770
|
DTOStorybookUploadUrlResponse,
|
|
19746
19771
|
DTOSubscription,
|
|
19747
19772
|
DTOSubscriptionResponse,
|
|
19773
|
+
DTOSubscriptionUpcomingChange,
|
|
19748
19774
|
DTOSubscriptionUpdateInput,
|
|
19749
19775
|
DTOSubscriptionUpdatePreview,
|
|
19750
19776
|
DTOSubscriptionUpdatePreviewResponse,
|
|
@@ -19774,6 +19800,7 @@ export {
|
|
|
19774
19800
|
DTOThreadMessageSystemSender,
|
|
19775
19801
|
DTOThreadMessageUpdateInput,
|
|
19776
19802
|
DTOThreadMessageUserSender,
|
|
19803
|
+
DTOThreadPromptState,
|
|
19777
19804
|
DTOThreadReaction,
|
|
19778
19805
|
DTOThreadReactionCreateInput,
|
|
19779
19806
|
DTOThreadReactionDeleteInput,
|