@supernova-studio/client 1.40.3 → 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.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 DTOBillingCheckoutInput = z239.object({
7111
- // @deprecated for backwards compatibility
7112
- priceId: z239.string().optional(),
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
- quantity: z239.number().int().min(1).optional(),
7116
- centAmount: z239.number().int().nonnegative().min(1e3).optional(),
7117
- mode: DTOBillingCheckoutMode.optional().default(DTOBillingCheckoutMode.enum.SubscriptionChange)
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()
@@ -9667,7 +9690,7 @@ var DTOForgeComponentSet = z320.object({
9667
9690
  var DTOForgeIconSetTypeV2 = z320.enum(["Phosphor", "Lucide", "Tabler"]);
9668
9691
  var DTOForgeIconSet = z320.object({
9669
9692
  type: DTOForgeIconSetTypeV2,
9670
- variant: z320.string().nullable()
9693
+ variant: z320.string().optional()
9671
9694
  });
9672
9695
  var DTOForgeProjectTheme = z320.object({
9673
9696
  // Colors
@@ -18674,13 +18697,17 @@ export {
18674
18697
  DTOBffFigmaImportRequestBody,
18675
18698
  DTOBffImportRequestBody,
18676
18699
  DTOBffUploadImportRequestBody,
18700
+ DTOBillingCheckoutCreditsTopUpInput,
18677
18701
  DTOBillingCheckoutInput,
18678
18702
  DTOBillingCheckoutMode,
18703
+ DTOBillingCheckoutOldInput,
18679
18704
  DTOBillingCheckoutResponse,
18705
+ DTOBillingCheckoutSubscriptionChangeInput,
18680
18706
  DTOBillingCreditsCheckIfCanSpendResponse,
18681
18707
  DTOBillingCreditsSpendAction,
18682
18708
  DTOBillingCreditsSpendInput,
18683
18709
  DTOBillingCreditsSpendResponse,
18710
+ DTOBillingSubscriptionInterval,
18684
18711
  DTOBillingSupportedModels,
18685
18712
  DTOBrand,
18686
18713
  DTOBrandCreatePayload,