@supernova-studio/client 1.37.2 → 1.37.3
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 +17 -11
- package/dist/index.d.ts +17 -11
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7076,11 +7076,13 @@ var DTOBillingSupportedModels = z239.enum([
|
|
|
7076
7076
|
"GPT_5_NANO"
|
|
7077
7077
|
]);
|
|
7078
7078
|
var DTOBillingCheckoutMode = z239.enum(["SubscriptionChange", "CreditsTopUp"]);
|
|
7079
|
+
var DTOBillingCreditsSpendAction = z239.enum(["Ask", "Build", "DocumentUpdate"]);
|
|
7079
7080
|
var DTOBillingCreditsSpendInput = z239.object({
|
|
7080
7081
|
inputTokenCount: z239.number().int().nonnegative(),
|
|
7081
7082
|
outputTokenCount: z239.number().int().nonnegative(),
|
|
7082
7083
|
inputCachedTokenCount: z239.number().int().nonnegative().optional(),
|
|
7083
|
-
modelName: DTOBillingSupportedModels
|
|
7084
|
+
modelName: DTOBillingSupportedModels,
|
|
7085
|
+
action: DTOBillingCreditsSpendAction.optional().default(DTOBillingCreditsSpendAction.enum.Ask)
|
|
7084
7086
|
});
|
|
7085
7087
|
var DTOBillingCreditsSpendResponse = z239.object({
|
|
7086
7088
|
hasOverspend: z239.boolean()
|
|
@@ -7094,7 +7096,7 @@ var DTOBillingCheckoutInput = z239.object({
|
|
|
7094
7096
|
successUrl: z239.string().url(),
|
|
7095
7097
|
cancelUrl: z239.string().url(),
|
|
7096
7098
|
quantity: z239.number().int().min(1).optional(),
|
|
7097
|
-
centAmount: z239.number().int().nonnegative().min(
|
|
7099
|
+
centAmount: z239.number().int().nonnegative().min(1e3).optional(),
|
|
7098
7100
|
mode: DTOBillingCheckoutMode.optional().default(DTOBillingCheckoutMode.enum.SubscriptionChange)
|
|
7099
7101
|
});
|
|
7100
7102
|
var DTOBillingCheckoutResponse = z239.object({
|
|
@@ -18295,6 +18297,7 @@ export {
|
|
|
18295
18297
|
DTOBillingCheckoutMode,
|
|
18296
18298
|
DTOBillingCheckoutResponse,
|
|
18297
18299
|
DTOBillingCreditsCheckIfCanSpendResponse,
|
|
18300
|
+
DTOBillingCreditsSpendAction,
|
|
18298
18301
|
DTOBillingCreditsSpendInput,
|
|
18299
18302
|
DTOBillingCreditsSpendResponse,
|
|
18300
18303
|
DTOBillingSupportedModels,
|