@supernova-studio/client 1.40.3 → 1.40.5
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 +294 -59
- package/dist/index.d.ts +294 -59
- package/dist/index.js +43 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +42 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -444,6 +444,8 @@ var Subscription = z13.object({
|
|
|
444
444
|
currentPeriodStart: nullishToOptional(z13.string()),
|
|
445
445
|
currentPeriodEnd: nullishToOptional(z13.string()),
|
|
446
446
|
cancelAt: nullishToOptional(z13.string()),
|
|
447
|
+
fullSeatPriceId: nullishToOptional(z13.string()),
|
|
448
|
+
builderSeatPriceId: nullishToOptional(z13.string()),
|
|
447
449
|
subscriptionStatusUpdatedAt: nullishToOptional(z13.string())
|
|
448
450
|
});
|
|
449
451
|
var ForgeChatMessageSenderType = z14.enum([
|
|
@@ -7093,6 +7095,7 @@ var DTOBillingSupportedModels = z239.enum([
|
|
|
7093
7095
|
"GPT_5_NANO"
|
|
7094
7096
|
]);
|
|
7095
7097
|
var DTOBillingCheckoutMode = z239.enum(["SubscriptionChange", "CreditsTopUp"]);
|
|
7098
|
+
var DTOBillingSubscriptionInterval = z239.enum(["Monthly", "Yearly"]);
|
|
7096
7099
|
var DTOBillingCreditsSpendAction = z239.enum(["Ask", "Build", "DocumentUpdate"]);
|
|
7097
7100
|
var DTOBillingCreditsSpendInput = z239.object({
|
|
7098
7101
|
inputTokenCount: z239.number().int().nonnegative(),
|
|
@@ -7107,15 +7110,37 @@ var DTOBillingCreditsSpendResponse = z239.object({
|
|
|
7107
7110
|
var DTOBillingCreditsCheckIfCanSpendResponse = z239.object({
|
|
7108
7111
|
canSpendCredits: z239.boolean()
|
|
7109
7112
|
});
|
|
7110
|
-
var
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
+
var DTOBillingCheckoutOldInput = z239.object(
|
|
7114
|
+
{
|
|
7115
|
+
mode: z239.literal(void 0),
|
|
7116
|
+
successUrl: z239.string().url(),
|
|
7117
|
+
cancelUrl: z239.string().url(),
|
|
7118
|
+
priceId: z239.string(),
|
|
7119
|
+
quantity: z239.number().int().min(1)
|
|
7120
|
+
},
|
|
7121
|
+
{ description: "It is deprecated, keep for backwards compatibility" }
|
|
7122
|
+
);
|
|
7123
|
+
var DTOBillingCheckoutSubscriptionChangeInput = z239.object({
|
|
7124
|
+
mode: z239.literal(DTOBillingCheckoutMode.enum.SubscriptionChange),
|
|
7125
|
+
successUrl: z239.string().url(),
|
|
7126
|
+
cancelUrl: z239.string().url(),
|
|
7127
|
+
plan: z239.enum([ProductCode.pro, ProductCode.team, ProductCode.company]),
|
|
7128
|
+
interval: DTOBillingSubscriptionInterval,
|
|
7129
|
+
fullSeats: z239.number(),
|
|
7130
|
+
builderSeats: z239.number(),
|
|
7131
|
+
additionalCredits: z239.number()
|
|
7132
|
+
});
|
|
7133
|
+
var DTOBillingCheckoutCreditsTopUpInput = z239.object({
|
|
7134
|
+
mode: z239.literal(DTOBillingCheckoutMode.enum.CreditsTopUp),
|
|
7113
7135
|
successUrl: z239.string().url(),
|
|
7114
7136
|
cancelUrl: z239.string().url(),
|
|
7115
|
-
|
|
7116
|
-
centAmount: z239.number().int().nonnegative().min(1e3).optional(),
|
|
7117
|
-
mode: DTOBillingCheckoutMode.optional().default(DTOBillingCheckoutMode.enum.SubscriptionChange)
|
|
7137
|
+
centAmount: z239.number().int().nonnegative().min(1e3)
|
|
7118
7138
|
});
|
|
7139
|
+
var DTOBillingCheckoutInput = z239.discriminatedUnion("mode", [
|
|
7140
|
+
DTOBillingCheckoutOldInput,
|
|
7141
|
+
DTOBillingCheckoutSubscriptionChangeInput,
|
|
7142
|
+
DTOBillingCheckoutCreditsTopUpInput
|
|
7143
|
+
]);
|
|
7119
7144
|
var DTOBillingCheckoutResponse = z239.object({
|
|
7120
7145
|
id: z239.string(),
|
|
7121
7146
|
url: z239.string().nullish()
|
|
@@ -7341,6 +7366,9 @@ var DTOSubscription = z247.object({
|
|
|
7341
7366
|
stripeProductFeatures: z247.array(z247.string()).optional(),
|
|
7342
7367
|
stripeProductAdditionalFeatures: z247.array(z247.string()).optional(),
|
|
7343
7368
|
stripeSubscriptionMainItemId: z247.string().optional(),
|
|
7369
|
+
/**
|
|
7370
|
+
* @deprecated use `fullSeatPriceId` or `builderSeatPriceId`
|
|
7371
|
+
*/
|
|
7344
7372
|
planPriceId: z247.string(),
|
|
7345
7373
|
planInterval: BillingIntervalSchema,
|
|
7346
7374
|
isPricePerCreator: z247.boolean().optional(),
|
|
@@ -7360,7 +7388,9 @@ var DTOSubscription = z247.object({
|
|
|
7360
7388
|
amount: z247.number(),
|
|
7361
7389
|
isTrial: z247.boolean(),
|
|
7362
7390
|
billingType: BillingTypeSchema.optional(),
|
|
7363
|
-
daysUntilDue: z247.number().optional()
|
|
7391
|
+
daysUntilDue: z247.number().optional(),
|
|
7392
|
+
fullSeatPriceId: z247.string(),
|
|
7393
|
+
builderSeatPriceId: z247.string().optional()
|
|
7364
7394
|
});
|
|
7365
7395
|
var DTOSubscriptionResponse = z247.object({
|
|
7366
7396
|
subscription: DTOSubscription,
|
|
@@ -9667,7 +9697,7 @@ var DTOForgeComponentSet = z320.object({
|
|
|
9667
9697
|
var DTOForgeIconSetTypeV2 = z320.enum(["Phosphor", "Lucide", "Tabler"]);
|
|
9668
9698
|
var DTOForgeIconSet = z320.object({
|
|
9669
9699
|
type: DTOForgeIconSetTypeV2,
|
|
9670
|
-
variant: z320.string().
|
|
9700
|
+
variant: z320.string().optional()
|
|
9671
9701
|
});
|
|
9672
9702
|
var DTOForgeProjectTheme = z320.object({
|
|
9673
9703
|
// Colors
|
|
@@ -18674,13 +18704,17 @@ export {
|
|
|
18674
18704
|
DTOBffFigmaImportRequestBody,
|
|
18675
18705
|
DTOBffImportRequestBody,
|
|
18676
18706
|
DTOBffUploadImportRequestBody,
|
|
18707
|
+
DTOBillingCheckoutCreditsTopUpInput,
|
|
18677
18708
|
DTOBillingCheckoutInput,
|
|
18678
18709
|
DTOBillingCheckoutMode,
|
|
18710
|
+
DTOBillingCheckoutOldInput,
|
|
18679
18711
|
DTOBillingCheckoutResponse,
|
|
18712
|
+
DTOBillingCheckoutSubscriptionChangeInput,
|
|
18680
18713
|
DTOBillingCreditsCheckIfCanSpendResponse,
|
|
18681
18714
|
DTOBillingCreditsSpendAction,
|
|
18682
18715
|
DTOBillingCreditsSpendInput,
|
|
18683
18716
|
DTOBillingCreditsSpendResponse,
|
|
18717
|
+
DTOBillingSubscriptionInterval,
|
|
18684
18718
|
DTOBillingSupportedModels,
|
|
18685
18719
|
DTOBrand,
|
|
18686
18720
|
DTOBrandCreatePayload,
|