@ai-sdk/google 4.0.0 → 4.0.2

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.
@@ -2747,7 +2747,7 @@ import {
2747
2747
  zodSchema as zodSchema7
2748
2748
  } from "@ai-sdk/provider-utils";
2749
2749
  import { z as z8 } from "zod/v4";
2750
- var fileSearchArgsBaseSchema = z8.object({
2750
+ var fileSearchArgsBaseSchema = z8.looseObject({
2751
2751
  /** The names of the file_search_stores to retrieve from.
2752
2752
  * Example: `fileSearchStores/my-file-search-store-123`
2753
2753
  */
@@ -2762,7 +2762,7 @@ var fileSearchArgsBaseSchema = z8.object({
2762
2762
  metadataFilter: z8.string().describe(
2763
2763
  "Metadata filter to apply to the file search retrieval documents. See https://google.aip.dev/160 for the syntax of the filter expression."
2764
2764
  ).optional()
2765
- }).passthrough();
2765
+ });
2766
2766
  var fileSearch = createProviderExecutedToolFactory3({
2767
2767
  id: "google.file_search",
2768
2768
  inputSchema: lazySchema7(() => zodSchema7(z8.object({}))),
@@ -2789,7 +2789,7 @@ import {
2789
2789
  zodSchema as zodSchema9
2790
2790
  } from "@ai-sdk/provider-utils";
2791
2791
  import { z as z10 } from "zod/v4";
2792
- var googleSearchToolArgsBaseSchema = z10.object({
2792
+ var googleSearchToolArgsBaseSchema = z10.looseObject({
2793
2793
  searchTypes: z10.object({
2794
2794
  webSearch: z10.object({}).optional(),
2795
2795
  imageSearch: z10.object({}).optional()
@@ -2798,7 +2798,7 @@ var googleSearchToolArgsBaseSchema = z10.object({
2798
2798
  startTime: z10.string(),
2799
2799
  endTime: z10.string()
2800
2800
  }).optional()
2801
- }).passthrough();
2801
+ });
2802
2802
  var googleSearch = createProviderExecutedToolFactory5({
2803
2803
  id: "google.google_search",
2804
2804
  inputSchema: lazySchema9(() => zodSchema9(z10.object({}))),