@supernova-studio/client 1.40.2 → 1.40.4
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 +53538 -568
- package/dist/index.d.ts +53538 -568
- package/dist/index.js +134 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +135 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7093,6 +7093,7 @@ var DTOBillingSupportedModels = z239.enum([
|
|
|
7093
7093
|
"GPT_5_NANO"
|
|
7094
7094
|
]);
|
|
7095
7095
|
var DTOBillingCheckoutMode = z239.enum(["SubscriptionChange", "CreditsTopUp"]);
|
|
7096
|
+
var DTOBillingSubscriptionInterval = z239.enum(["Monthly", "Yearly"]);
|
|
7096
7097
|
var DTOBillingCreditsSpendAction = z239.enum(["Ask", "Build", "DocumentUpdate"]);
|
|
7097
7098
|
var DTOBillingCreditsSpendInput = z239.object({
|
|
7098
7099
|
inputTokenCount: z239.number().int().nonnegative(),
|
|
@@ -7107,15 +7108,37 @@ var DTOBillingCreditsSpendResponse = z239.object({
|
|
|
7107
7108
|
var DTOBillingCreditsCheckIfCanSpendResponse = z239.object({
|
|
7108
7109
|
canSpendCredits: z239.boolean()
|
|
7109
7110
|
});
|
|
7110
|
-
var
|
|
7111
|
-
|
|
7112
|
-
|
|
7111
|
+
var DTOBillingCheckoutOldInput = z239.object(
|
|
7112
|
+
{
|
|
7113
|
+
mode: z239.literal(void 0),
|
|
7114
|
+
successUrl: z239.string().url(),
|
|
7115
|
+
cancelUrl: z239.string().url(),
|
|
7116
|
+
priceId: z239.string(),
|
|
7117
|
+
quantity: z239.number().int().min(1)
|
|
7118
|
+
},
|
|
7119
|
+
{ description: "It is deprecated, keep for backwards compatibility" }
|
|
7120
|
+
);
|
|
7121
|
+
var DTOBillingCheckoutSubscriptionChangeInput = z239.object({
|
|
7122
|
+
mode: z239.literal(DTOBillingCheckoutMode.enum.SubscriptionChange),
|
|
7113
7123
|
successUrl: z239.string().url(),
|
|
7114
7124
|
cancelUrl: z239.string().url(),
|
|
7115
|
-
|
|
7116
|
-
|
|
7117
|
-
|
|
7125
|
+
plan: z239.enum([ProductCode.pro, ProductCode.team, ProductCode.company]),
|
|
7126
|
+
interval: DTOBillingSubscriptionInterval,
|
|
7127
|
+
fullSeats: z239.number(),
|
|
7128
|
+
builderSeats: z239.number(),
|
|
7129
|
+
additionalCredits: z239.number()
|
|
7130
|
+
});
|
|
7131
|
+
var DTOBillingCheckoutCreditsTopUpInput = z239.object({
|
|
7132
|
+
mode: z239.literal(DTOBillingCheckoutMode.enum.CreditsTopUp),
|
|
7133
|
+
successUrl: z239.string().url(),
|
|
7134
|
+
cancelUrl: z239.string().url(),
|
|
7135
|
+
centAmount: z239.number().int().nonnegative().min(1e3)
|
|
7118
7136
|
});
|
|
7137
|
+
var DTOBillingCheckoutInput = z239.discriminatedUnion("mode", [
|
|
7138
|
+
DTOBillingCheckoutOldInput,
|
|
7139
|
+
DTOBillingCheckoutSubscriptionChangeInput,
|
|
7140
|
+
DTOBillingCheckoutCreditsTopUpInput
|
|
7141
|
+
]);
|
|
7119
7142
|
var DTOBillingCheckoutResponse = z239.object({
|
|
7120
7143
|
id: z239.string(),
|
|
7121
7144
|
url: z239.string().nullish()
|
|
@@ -9660,25 +9683,114 @@ var DTOForgeProjectArtifactRoomResponse = z319.object({
|
|
|
9660
9683
|
|
|
9661
9684
|
// src/api/dto/forge/project-context-v2.ts
|
|
9662
9685
|
import { z as z320 } from "zod";
|
|
9663
|
-
var
|
|
9686
|
+
var DTOForgeComponentSetTypeV2 = z320.enum(["Shadcn"]);
|
|
9664
9687
|
var DTOForgeComponentSet = z320.object({
|
|
9665
|
-
type:
|
|
9688
|
+
type: DTOForgeComponentSetTypeV2
|
|
9666
9689
|
});
|
|
9667
|
-
var
|
|
9690
|
+
var DTOForgeIconSetTypeV2 = z320.enum(["Phosphor", "Lucide", "Tabler"]);
|
|
9668
9691
|
var DTOForgeIconSet = z320.object({
|
|
9669
|
-
type:
|
|
9670
|
-
|
|
9692
|
+
type: DTOForgeIconSetTypeV2,
|
|
9693
|
+
variant: z320.string().optional()
|
|
9694
|
+
});
|
|
9695
|
+
var DTOForgeProjectTheme = z320.object({
|
|
9696
|
+
// Colors
|
|
9697
|
+
background: ColorTokenData,
|
|
9698
|
+
foreground: ColorTokenData,
|
|
9699
|
+
card: ColorTokenData,
|
|
9700
|
+
cardForeground: ColorTokenData,
|
|
9701
|
+
popover: ColorTokenData,
|
|
9702
|
+
popoverForeground: ColorTokenData,
|
|
9703
|
+
primary: ColorTokenData,
|
|
9704
|
+
primaryForeground: ColorTokenData,
|
|
9705
|
+
secondary: ColorTokenData,
|
|
9706
|
+
secondaryForeground: ColorTokenData,
|
|
9707
|
+
muted: ColorTokenData,
|
|
9708
|
+
mutedForeground: ColorTokenData,
|
|
9709
|
+
accent: ColorTokenData,
|
|
9710
|
+
accentForeground: ColorTokenData,
|
|
9711
|
+
destructive: ColorTokenData,
|
|
9712
|
+
border: ColorTokenData,
|
|
9713
|
+
input: ColorTokenData,
|
|
9714
|
+
ring: ColorTokenData,
|
|
9715
|
+
chart1: ColorTokenData,
|
|
9716
|
+
chart2: ColorTokenData,
|
|
9717
|
+
chart3: ColorTokenData,
|
|
9718
|
+
chart4: ColorTokenData,
|
|
9719
|
+
chart5: ColorTokenData,
|
|
9720
|
+
sidebar: ColorTokenData,
|
|
9721
|
+
sidebarForeground: ColorTokenData,
|
|
9722
|
+
sidebarPrimary: ColorTokenData,
|
|
9723
|
+
sidebarPrimaryForeground: ColorTokenData,
|
|
9724
|
+
sidebarAccent: ColorTokenData,
|
|
9725
|
+
sidebarAccentForeground: ColorTokenData,
|
|
9726
|
+
sidebarBorder: ColorTokenData,
|
|
9727
|
+
sidebarRing: ColorTokenData,
|
|
9728
|
+
// Font family
|
|
9729
|
+
fontFamily: FontFamilyTokenData,
|
|
9730
|
+
// Font sizes
|
|
9731
|
+
textXs: FontSizeTokenData,
|
|
9732
|
+
textSm: FontSizeTokenData,
|
|
9733
|
+
textBase: FontSizeTokenData,
|
|
9734
|
+
textLg: FontSizeTokenData,
|
|
9735
|
+
textXl: FontSizeTokenData,
|
|
9736
|
+
text2xl: FontSizeTokenData,
|
|
9737
|
+
text3xl: FontSizeTokenData,
|
|
9738
|
+
text4xl: FontSizeTokenData,
|
|
9739
|
+
text5xl: FontSizeTokenData,
|
|
9740
|
+
text6xl: FontSizeTokenData,
|
|
9741
|
+
text7xl: FontSizeTokenData,
|
|
9742
|
+
text8xl: FontSizeTokenData,
|
|
9743
|
+
text9xl: FontSizeTokenData,
|
|
9744
|
+
// Line heights
|
|
9745
|
+
textXsLineHeight: LineHeightTokenData,
|
|
9746
|
+
textSmLineHeight: LineHeightTokenData,
|
|
9747
|
+
textBaseLineHeight: LineHeightTokenData,
|
|
9748
|
+
textLgLineHeight: LineHeightTokenData,
|
|
9749
|
+
textXlLineHeight: LineHeightTokenData,
|
|
9750
|
+
text2xlLineHeight: LineHeightTokenData,
|
|
9751
|
+
text3xlLineHeight: LineHeightTokenData,
|
|
9752
|
+
text4xlLineHeight: LineHeightTokenData,
|
|
9753
|
+
text5xlLineHeight: LineHeightTokenData,
|
|
9754
|
+
text6xlLineHeight: LineHeightTokenData,
|
|
9755
|
+
text7xlLineHeight: LineHeightTokenData,
|
|
9756
|
+
text8xlLineHeight: LineHeightTokenData,
|
|
9757
|
+
text9xlLineHeight: LineHeightTokenData,
|
|
9758
|
+
// Font weights
|
|
9759
|
+
fontWeightThin: FontWeightTokenData,
|
|
9760
|
+
fontWeightExtralight: FontWeightTokenData,
|
|
9761
|
+
fontWeightLight: FontWeightTokenData,
|
|
9762
|
+
fontWeightNormal: FontWeightTokenData,
|
|
9763
|
+
fontWeightMedium: FontWeightTokenData,
|
|
9764
|
+
fontWeightSemibold: FontWeightTokenData,
|
|
9765
|
+
fontWeightBold: FontWeightTokenData,
|
|
9766
|
+
fontWeightExtrabold: FontWeightTokenData,
|
|
9767
|
+
fontWeightBlack: FontWeightTokenData,
|
|
9768
|
+
// Other dimensions
|
|
9769
|
+
radius: BorderRadiusTokenData,
|
|
9770
|
+
spacing: SpaceTokenData,
|
|
9771
|
+
// Shadows
|
|
9772
|
+
shadow2xs: ShadowTokenData,
|
|
9773
|
+
shadowXs: ShadowTokenData,
|
|
9774
|
+
shadowSm: ShadowTokenData,
|
|
9775
|
+
shadowMd: ShadowTokenData,
|
|
9776
|
+
shadowLg: ShadowTokenData,
|
|
9777
|
+
shadowXl: ShadowTokenData,
|
|
9778
|
+
shadow2xl: ShadowTokenData
|
|
9671
9779
|
});
|
|
9672
9780
|
var DTOForgeProjectContextV2 = z320.object({
|
|
9781
|
+
id: z320.string(),
|
|
9673
9782
|
name: z320.string(),
|
|
9674
|
-
|
|
9675
|
-
|
|
9783
|
+
workspaceId: z320.string(),
|
|
9784
|
+
designSystemId: z320.string().optional(),
|
|
9785
|
+
description: z320.string().optional(),
|
|
9786
|
+
productContext: z320.string().optional(),
|
|
9787
|
+
additionalContext: z320.string().optional(),
|
|
9676
9788
|
componentSet: DTOForgeComponentSet,
|
|
9677
9789
|
iconSet: DTOForgeIconSet,
|
|
9678
|
-
|
|
9790
|
+
theme: DTOForgeProjectTheme
|
|
9679
9791
|
});
|
|
9680
|
-
var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2;
|
|
9681
|
-
var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.partial();
|
|
9792
|
+
var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({ id: true });
|
|
9793
|
+
var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({ id: true }).partial();
|
|
9682
9794
|
var DTOForgeProjectContextResponseV2 = z320.object({ context: DTOForgeProjectContextV2 });
|
|
9683
9795
|
var DTOForgeProjectContextListQueryV2 = z320.object({ workspaceId: z320.string() });
|
|
9684
9796
|
var DTOForgeProjectContextListResponseV2 = z320.object({ contexts: z320.array(DTOForgeProjectContextV2) });
|
|
@@ -18585,13 +18697,17 @@ export {
|
|
|
18585
18697
|
DTOBffFigmaImportRequestBody,
|
|
18586
18698
|
DTOBffImportRequestBody,
|
|
18587
18699
|
DTOBffUploadImportRequestBody,
|
|
18700
|
+
DTOBillingCheckoutCreditsTopUpInput,
|
|
18588
18701
|
DTOBillingCheckoutInput,
|
|
18589
18702
|
DTOBillingCheckoutMode,
|
|
18703
|
+
DTOBillingCheckoutOldInput,
|
|
18590
18704
|
DTOBillingCheckoutResponse,
|
|
18705
|
+
DTOBillingCheckoutSubscriptionChangeInput,
|
|
18591
18706
|
DTOBillingCreditsCheckIfCanSpendResponse,
|
|
18592
18707
|
DTOBillingCreditsSpendAction,
|
|
18593
18708
|
DTOBillingCreditsSpendInput,
|
|
18594
18709
|
DTOBillingCreditsSpendResponse,
|
|
18710
|
+
DTOBillingSubscriptionInterval,
|
|
18595
18711
|
DTOBillingSupportedModels,
|
|
18596
18712
|
DTOBrand,
|
|
18597
18713
|
DTOBrandCreatePayload,
|
|
@@ -18935,13 +19051,13 @@ export {
|
|
|
18935
19051
|
DTOForgeChatThreadUpdateInput,
|
|
18936
19052
|
DTOForgeChatThreadUpdateResponse,
|
|
18937
19053
|
DTOForgeComponentSet,
|
|
18938
|
-
|
|
19054
|
+
DTOForgeComponentSetTypeV2,
|
|
18939
19055
|
DTOForgeFeatureRoom,
|
|
18940
19056
|
DTOForgeFeatureRoomResponse,
|
|
18941
19057
|
DTOForgeFigmaArtifact,
|
|
18942
19058
|
DTOForgeFileArtifact,
|
|
18943
19059
|
DTOForgeIconSet,
|
|
18944
|
-
|
|
19060
|
+
DTOForgeIconSetTypeV2,
|
|
18945
19061
|
DTOForgeIterationMessage,
|
|
18946
19062
|
DTOForgeIterationMessagesListResponse,
|
|
18947
19063
|
DTOForgeParticipant,
|
|
@@ -19025,6 +19141,7 @@ export {
|
|
|
19025
19141
|
DTOForgeProjectRemoveResponse,
|
|
19026
19142
|
DTOForgeProjectRoom,
|
|
19027
19143
|
DTOForgeProjectRoomResponse,
|
|
19144
|
+
DTOForgeProjectTheme,
|
|
19028
19145
|
DTOForgeProjectUpdate,
|
|
19029
19146
|
DTOForgeProjectUpdateResponse,
|
|
19030
19147
|
DTOForgeSection,
|