@builder.io/ai-utils 0.81.0 → 0.81.1

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.81.0",
3
+ "version": "0.81.1",
4
4
  "description": "Builder.io AI utils",
5
5
  "files": [
6
6
  "src"
package/src/projects.d.ts CHANGED
@@ -1613,6 +1613,8 @@ export type DeployListItem = z.infer<typeof DeployListItemSchema>;
1613
1613
  export declare const DeployArtifactManifestSchema: z.ZodObject<{
1614
1614
  files: z.ZodRecord<z.ZodString, z.ZodString>;
1615
1615
  functions: z.ZodRecord<z.ZodString, z.ZodString>;
1616
+ functions_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1617
+ function_invocation_modes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1616
1618
  }, z.core.$strip>;
1617
1619
  export type DeployArtifactManifest = z.infer<typeof DeployArtifactManifestSchema>;
1618
1620
  /**
package/src/projects.js CHANGED
@@ -462,6 +462,20 @@ export const DeployArtifactManifestSchema = z.object({
462
462
  functions: z.record(z.string(), z.string()).meta({
463
463
  description: "serverless function name → sha256 hash",
464
464
  }),
465
+ // Netlify Functions v2 routing config: function name → config object.
466
+ // Kept as a loose record so ai-utils does not need to depend on the Netlify
467
+ // API package for the exact functionConfig schema.
468
+ functions_config: z
469
+ .record(z.string(), z.record(z.string(), z.unknown()))
470
+ .optional()
471
+ .meta({
472
+ description: "Netlify Functions v2 routing config per function name",
473
+ }),
474
+ // Lambda invocation mode per function: "stream" for v2 functions using
475
+ // awslambda.streamifyResponse bootstrap; absent/undefined means buffered.
476
+ function_invocation_modes: z.record(z.string(), z.string()).optional().meta({
477
+ description: 'Lambda invocation mode per function name (e.g. "stream" for v2 streaming functions)',
478
+ }),
465
479
  });
466
480
  /**
467
481
  * Per-deploy overrides passed from ai-services to the deploy pod's build-and-upload endpoint.