@builder.io/ai-utils 0.92.0 → 0.93.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.92.0",
3
+ "version": "0.93.0",
4
4
  "description": "Builder.io AI utils",
5
5
  "files": [
6
6
  "src"
package/src/projects.d.ts CHANGED
@@ -3450,8 +3450,8 @@ export declare const ProjectTemplateSchema: z.ZodObject<{
3450
3450
  updatedAt: z.ZodString;
3451
3451
  createdBy: z.ZodString;
3452
3452
  lastUpdateBy: z.ZodString;
3453
- sourceProjectId: z.ZodString;
3454
- sourceBranchName: z.ZodString;
3453
+ sourceProjectId: z.ZodOptional<z.ZodString>;
3454
+ sourceBranchName: z.ZodOptional<z.ZodString>;
3455
3455
  settings: z.ZodObject<{
3456
3456
  isNativeApp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3457
3457
  autoDetectDevServer: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
package/src/projects.js CHANGED
@@ -1861,8 +1861,10 @@ export const ProjectTemplateSchema = z.object({
1861
1861
  updatedAt: z.string(),
1862
1862
  createdBy: z.string(),
1863
1863
  lastUpdateBy: z.string(),
1864
- sourceProjectId: z.string(),
1865
- sourceBranchName: z.string(),
1864
+ // Only set when the template is seeded from an unconnected built-in
1865
+ // template's container backup; repo-connected sources clone from their repo.
1866
+ sourceProjectId: z.string().optional(),
1867
+ sourceBranchName: z.string().optional(),
1866
1868
  settings: ProjectSettingsSchema.partial(),
1867
1869
  hosting: ProjectHostingSchema.optional(),
1868
1870
  });