@supernova-studio/client 1.44.4 → 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.d.mts +292 -101
- package/dist/index.d.ts +292 -101
- package/dist/index.js +30 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -426,10 +426,11 @@ var Subscription = z12.object({
|
|
|
426
426
|
seatLimit: z12.number(),
|
|
427
427
|
monthlyCreditGrantAnchor: nullishToOptional(z12.string()),
|
|
428
428
|
monthlyCreditGrantAmount: nullishToOptional(z12.number()),
|
|
429
|
-
builderSeatLimit: z12.number()
|
|
430
|
-
fullSeatLimit: z12.number()
|
|
431
|
-
|
|
432
|
-
|
|
429
|
+
builderSeatLimit: nullishToOptional(z12.number()),
|
|
430
|
+
fullSeatLimit: nullishToOptional(z12.number()),
|
|
431
|
+
additionalCredits: nullishToOptional(z12.number()),
|
|
432
|
+
builderSeats: nullishToOptional(z12.number()),
|
|
433
|
+
fullSeats: nullishToOptional(z12.number()),
|
|
433
434
|
status: nullishToOptional(InternalStatusSchema),
|
|
434
435
|
subscriptionStatus: nullishToOptional(StripeSubscriptionStatusSchema),
|
|
435
436
|
internalStatus: nullishToOptional(InternalStatusSchema),
|
|
@@ -443,6 +444,7 @@ var Subscription = z12.object({
|
|
|
443
444
|
cancelAt: nullishToOptional(z12.string()),
|
|
444
445
|
fullSeatPriceId: nullishToOptional(z12.string()),
|
|
445
446
|
builderSeatPriceId: nullishToOptional(z12.string()),
|
|
447
|
+
additionalCreditsPriceId: nullishToOptional(z12.string()),
|
|
446
448
|
subscriptionStatusUpdatedAt: nullishToOptional(z12.string())
|
|
447
449
|
});
|
|
448
450
|
var ForgeChatMessageSenderType = z13.enum([
|
|
@@ -7465,6 +7467,7 @@ var DTOSubscription = z248.object({
|
|
|
7465
7467
|
fullSeatLimit: z248.number(),
|
|
7466
7468
|
builderSeats: z248.number(),
|
|
7467
7469
|
builderSeatLimit: z248.number(),
|
|
7470
|
+
additionalCredits: z248.number(),
|
|
7468
7471
|
currentPeriodStart: z248.string().optional(),
|
|
7469
7472
|
currentPeriodEnd: z248.string().optional(),
|
|
7470
7473
|
subscriptionStatusUpdatedAt: z248.string().optional(),
|
|
@@ -7476,7 +7479,8 @@ var DTOSubscription = z248.object({
|
|
|
7476
7479
|
billingType: BillingTypeSchema.optional(),
|
|
7477
7480
|
daysUntilDue: z248.number().optional(),
|
|
7478
7481
|
fullSeatPriceId: z248.string(),
|
|
7479
|
-
builderSeatPriceId: z248.string().optional()
|
|
7482
|
+
builderSeatPriceId: z248.string().optional(),
|
|
7483
|
+
additionalCreditsPriceId: z248.string().optional()
|
|
7480
7484
|
});
|
|
7481
7485
|
var DTOSubscriptionResponse = z248.object({
|
|
7482
7486
|
subscription: DTOSubscription,
|
|
@@ -9450,6 +9454,7 @@ var DTOFeatureIterationArtifactsDiff = z313.object({
|
|
|
9450
9454
|
updated: z313.array(DTOFeatureArtifact.shape.key).optional().default([]),
|
|
9451
9455
|
deleted: z313.array(DTOFeatureArtifact.shape.key).optional().default([])
|
|
9452
9456
|
});
|
|
9457
|
+
var DTOFeatureIterationState = z313.enum(["InProgress", "Success", "Error", "Timeout"]);
|
|
9453
9458
|
var DTOFeatureIteration = z313.object({
|
|
9454
9459
|
id: Id,
|
|
9455
9460
|
/**
|
|
@@ -9466,8 +9471,20 @@ var DTOFeatureIteration = z313.object({
|
|
|
9466
9471
|
startedFromMessageId: z313.string(),
|
|
9467
9472
|
/**
|
|
9468
9473
|
* Indicates whether the iteration is currently being generated by an agent
|
|
9474
|
+
* @deprecated use `state`
|
|
9469
9475
|
*/
|
|
9470
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(),
|
|
9471
9488
|
/**
|
|
9472
9489
|
* URL of a static preview of the feature
|
|
9473
9490
|
*/
|
|
@@ -9716,6 +9733,7 @@ import { z as z319 } from "zod";
|
|
|
9716
9733
|
import z317 from "zod";
|
|
9717
9734
|
var DTOThreadSubjectType = z317.enum(["ForgeDocument", "ForgeFeature"]);
|
|
9718
9735
|
var DTOThreadAgentType = z317.enum(["Ask", "Document", "Prototype", "ReleaseNotes"]);
|
|
9736
|
+
var DTOThreadPromptState = z317.enum(["Success", "Timeout", "Error"]);
|
|
9719
9737
|
var DTOThread = z317.object({
|
|
9720
9738
|
id: z317.string(),
|
|
9721
9739
|
liveblocksRoomId: z317.string(),
|
|
@@ -9809,7 +9827,8 @@ var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
|
|
|
9809
9827
|
});
|
|
9810
9828
|
var DTOThreadMessageFinalizeInput = z317.object({
|
|
9811
9829
|
messageId: Id,
|
|
9812
|
-
agentMessageBody: z317.string().optional()
|
|
9830
|
+
agentMessageBody: z317.string().optional(),
|
|
9831
|
+
promptState: DTOThreadPromptState.optional()
|
|
9813
9832
|
});
|
|
9814
9833
|
var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
|
|
9815
9834
|
id: true
|
|
@@ -12441,9 +12460,6 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
12441
12460
|
}
|
|
12442
12461
|
};
|
|
12443
12462
|
|
|
12444
|
-
// src/api/endpoints/workspaces/workspaces.ts
|
|
12445
|
-
import { z as z353 } from "zod";
|
|
12446
|
-
|
|
12447
12463
|
// src/api/endpoints/workspaces/subscription.ts
|
|
12448
12464
|
import { z as z352 } from "zod";
|
|
12449
12465
|
var WorkspaceSubscriptionEndpoint = class {
|
|
@@ -12474,6 +12490,7 @@ var WorkspaceSubscriptionEndpoint = class {
|
|
|
12474
12490
|
};
|
|
12475
12491
|
|
|
12476
12492
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
12493
|
+
import { z as z353 } from "zod";
|
|
12477
12494
|
var WorkspacesEndpoint = class {
|
|
12478
12495
|
constructor(requestExecutor) {
|
|
12479
12496
|
this.requestExecutor = requestExecutor;
|
|
@@ -19451,6 +19468,7 @@ export {
|
|
|
19451
19468
|
DTOFeatureIterationPromoteInput,
|
|
19452
19469
|
DTOFeatureIterationResponse,
|
|
19453
19470
|
DTOFeatureIterationSetLatestInput,
|
|
19471
|
+
DTOFeatureIterationState,
|
|
19454
19472
|
DTOFeatureIterationTag,
|
|
19455
19473
|
DTOFeatureIterationTagCreateInput,
|
|
19456
19474
|
DTOFeatureIterationTagListResponse,
|
|
@@ -19772,6 +19790,7 @@ export {
|
|
|
19772
19790
|
DTOThreadMessageSystemSender,
|
|
19773
19791
|
DTOThreadMessageUpdateInput,
|
|
19774
19792
|
DTOThreadMessageUserSender,
|
|
19793
|
+
DTOThreadPromptState,
|
|
19775
19794
|
DTOThreadReaction,
|
|
19776
19795
|
DTOThreadReactionCreateInput,
|
|
19777
19796
|
DTOThreadReactionDeleteInput,
|
|
@@ -19943,6 +19962,7 @@ export {
|
|
|
19943
19962
|
WorkspaceInvitationsEndpoint,
|
|
19944
19963
|
WorkspaceMembersEndpoint,
|
|
19945
19964
|
WorkspaceNpmRegistryEndpoint,
|
|
19965
|
+
WorkspaceSubscriptionEndpoint,
|
|
19946
19966
|
WorkspacesEndpoint,
|
|
19947
19967
|
applyActionsLocally,
|
|
19948
19968
|
applyPrivacyConfigurationToNestedItems,
|