@builder.io/ai-utils 0.93.0 → 0.94.0
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/package.json +1 -1
- package/src/codegen.d.ts +6 -0
- package/src/projects.d.ts +4 -0
- package/src/projects.js +6 -0
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -4540,6 +4540,12 @@ export interface LaunchServerStatus {
|
|
|
4540
4540
|
fusionEnvironment: "cloud" | "cloud-v2" | "unknown";
|
|
4541
4541
|
containerState: "idle" | "busy";
|
|
4542
4542
|
containerStateTimestamp: number;
|
|
4543
|
+
/**
|
|
4544
|
+
* Shutdown has started draining. New prompts are refused from here on: they
|
|
4545
|
+
* would be queued behind a codegen server that is about to close, and lost
|
|
4546
|
+
* with it.
|
|
4547
|
+
*/
|
|
4548
|
+
draining?: boolean;
|
|
4543
4549
|
activeOperations: number;
|
|
4544
4550
|
diskUsage?: number;
|
|
4545
4551
|
memoryUsage?: number;
|
package/src/projects.d.ts
CHANGED
|
@@ -2300,6 +2300,8 @@ export declare const ProjectHostingSchema: z.ZodObject<{
|
|
|
2300
2300
|
"zero-credits": "zero-credits";
|
|
2301
2301
|
}>>;
|
|
2302
2302
|
domainIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2303
|
+
freeDeployCount: z.ZodOptional<z.ZodNumber>;
|
|
2304
|
+
freeDeployCap: z.ZodOptional<z.ZodNumber>;
|
|
2303
2305
|
aiPaymentMode: z.ZodOptional<z.ZodEnum<{
|
|
2304
2306
|
"builder-credits": "builder-credits";
|
|
2305
2307
|
byok: "byok";
|
|
@@ -3864,6 +3866,8 @@ export declare const ProjectTemplateSchema: z.ZodObject<{
|
|
|
3864
3866
|
"zero-credits": "zero-credits";
|
|
3865
3867
|
}>>;
|
|
3866
3868
|
domainIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3869
|
+
freeDeployCount: z.ZodOptional<z.ZodNumber>;
|
|
3870
|
+
freeDeployCap: z.ZodOptional<z.ZodNumber>;
|
|
3867
3871
|
aiPaymentMode: z.ZodOptional<z.ZodEnum<{
|
|
3868
3872
|
"builder-credits": "builder-credits";
|
|
3869
3873
|
byok: "byok";
|
package/src/projects.js
CHANGED
|
@@ -1062,6 +1062,12 @@ export const ProjectHostingSchema = z.object({
|
|
|
1062
1062
|
domainIds: z.array(z.string()).optional().meta({
|
|
1063
1063
|
description: "Doc keys (normalized domains) in `hosting-domains` attached to this project. The domain docs are the source of truth; this is only the back-pointer.",
|
|
1064
1064
|
}),
|
|
1065
|
+
freeDeployCount: z.number().optional().meta({
|
|
1066
|
+
description: "Deploys used this Builder cycle against the free-tier cap. Response-only; not persisted on this document.",
|
|
1067
|
+
}),
|
|
1068
|
+
freeDeployCap: z.number().optional().meta({
|
|
1069
|
+
description: "The free-tier deploy cap (5/mo) freeDeployCount is measured against. Response-only.",
|
|
1070
|
+
}),
|
|
1065
1071
|
/**
|
|
1066
1072
|
* Who pays for AI usage on the published site. Written only by
|
|
1067
1073
|
* `POST /projects/hosting/ai-usage`, which gates on `fusionHostingPublish`;
|