@ai-sdk/google 3.0.0-beta.19 → 3.0.0-beta.20

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @ai-sdk/google
2
2
 
3
+ ## 3.0.0-beta.20
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [f0b2157]
8
+ - @ai-sdk/provider-utils@4.0.0-beta.15
9
+
3
10
  ## 3.0.0-beta.19
4
11
 
5
12
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __export = (target, all) => {
9
7
  for (var name in all)
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
17
15
  }
18
16
  return to;
19
17
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
19
 
30
20
  // src/index.ts
@@ -40,23 +30,23 @@ module.exports = __toCommonJS(src_exports);
40
30
  var import_provider_utils11 = require("@ai-sdk/provider-utils");
41
31
 
42
32
  // src/version.ts
43
- var VERSION = true ? "3.0.0-beta.19" : "0.0.0-test";
33
+ var VERSION = true ? "3.0.0-beta.20" : "0.0.0-test";
44
34
 
45
35
  // src/google-generative-ai-embedding-model.ts
46
36
  var import_provider = require("@ai-sdk/provider");
47
37
  var import_provider_utils3 = require("@ai-sdk/provider-utils");
48
- var z3 = __toESM(require("zod/v4"));
38
+ var import_v43 = require("zod/v4");
49
39
 
50
40
  // src/google-error.ts
51
41
  var import_provider_utils = require("@ai-sdk/provider-utils");
52
- var z = __toESM(require("zod/v4"));
42
+ var import_v4 = require("zod/v4");
53
43
  var googleErrorDataSchema = (0, import_provider_utils.lazySchema)(
54
44
  () => (0, import_provider_utils.zodSchema)(
55
- z.object({
56
- error: z.object({
57
- code: z.number().nullable(),
58
- message: z.string(),
59
- status: z.string()
45
+ import_v4.z.object({
46
+ error: import_v4.z.object({
47
+ code: import_v4.z.number().nullable(),
48
+ message: import_v4.z.string(),
49
+ status: import_v4.z.string()
60
50
  })
61
51
  })
62
52
  )
@@ -68,15 +58,15 @@ var googleFailedResponseHandler = (0, import_provider_utils.createJsonErrorRespo
68
58
 
69
59
  // src/google-generative-ai-embedding-options.ts
70
60
  var import_provider_utils2 = require("@ai-sdk/provider-utils");
71
- var z2 = __toESM(require("zod/v4"));
61
+ var import_v42 = require("zod/v4");
72
62
  var googleGenerativeAIEmbeddingProviderOptions = (0, import_provider_utils2.lazySchema)(
73
63
  () => (0, import_provider_utils2.zodSchema)(
74
- z2.object({
64
+ import_v42.z.object({
75
65
  /**
76
66
  * Optional. Optional reduced dimension for the output embedding.
77
67
  * If set, excessive values in the output embedding are truncated from the end.
78
68
  */
79
- outputDimensionality: z2.number().optional(),
69
+ outputDimensionality: import_v42.z.number().optional(),
80
70
  /**
81
71
  * Optional. Specifies the task type for generating embeddings.
82
72
  * Supported task types:
@@ -89,7 +79,7 @@ var googleGenerativeAIEmbeddingProviderOptions = (0, import_provider_utils2.lazy
89
79
  * - FACT_VERIFICATION: Optimized for verifying factual information.
90
80
  * - CODE_RETRIEVAL_QUERY: Optimized for retrieving code blocks based on natural language queries.
91
81
  */
92
- taskType: z2.enum([
82
+ taskType: import_v42.z.enum([
93
83
  "SEMANTIC_SIMILARITY",
94
84
  "CLASSIFICATION",
95
85
  "CLUSTERING",
@@ -198,22 +188,22 @@ var GoogleGenerativeAIEmbeddingModel = class {
198
188
  };
199
189
  var googleGenerativeAITextEmbeddingResponseSchema = (0, import_provider_utils3.lazySchema)(
200
190
  () => (0, import_provider_utils3.zodSchema)(
201
- z3.object({
202
- embeddings: z3.array(z3.object({ values: z3.array(z3.number()) }))
191
+ import_v43.z.object({
192
+ embeddings: import_v43.z.array(import_v43.z.object({ values: import_v43.z.array(import_v43.z.number()) }))
203
193
  })
204
194
  )
205
195
  );
206
196
  var googleGenerativeAISingleEmbeddingResponseSchema = (0, import_provider_utils3.lazySchema)(
207
197
  () => (0, import_provider_utils3.zodSchema)(
208
- z3.object({
209
- embedding: z3.object({ values: z3.array(z3.number()) })
198
+ import_v43.z.object({
199
+ embedding: import_v43.z.object({ values: import_v43.z.array(import_v43.z.number()) })
210
200
  })
211
201
  )
212
202
  );
213
203
 
214
204
  // src/google-generative-ai-language-model.ts
215
205
  var import_provider_utils6 = require("@ai-sdk/provider-utils");
216
- var z5 = __toESM(require("zod/v4"));
206
+ var import_v45 = require("zod/v4");
217
207
 
218
208
  // src/convert-json-schema-to-openapi-schema.ts
219
209
  function convertJSONSchemaToOpenAPISchema(jsonSchema) {
@@ -486,21 +476,21 @@ function getModelPath(modelId) {
486
476
 
487
477
  // src/google-generative-ai-options.ts
488
478
  var import_provider_utils5 = require("@ai-sdk/provider-utils");
489
- var z4 = __toESM(require("zod/v4"));
479
+ var import_v44 = require("zod/v4");
490
480
  var googleGenerativeAIProviderOptions = (0, import_provider_utils5.lazySchema)(
491
481
  () => (0, import_provider_utils5.zodSchema)(
492
- z4.object({
493
- responseModalities: z4.array(z4.enum(["TEXT", "IMAGE"])).optional(),
494
- thinkingConfig: z4.object({
495
- thinkingBudget: z4.number().optional(),
496
- includeThoughts: z4.boolean().optional()
482
+ import_v44.z.object({
483
+ responseModalities: import_v44.z.array(import_v44.z.enum(["TEXT", "IMAGE"])).optional(),
484
+ thinkingConfig: import_v44.z.object({
485
+ thinkingBudget: import_v44.z.number().optional(),
486
+ includeThoughts: import_v44.z.boolean().optional()
497
487
  }).optional(),
498
488
  /**
499
489
  * Optional.
500
490
  * The name of the cached content used as context to serve the prediction.
501
491
  * Format: cachedContents/{cachedContent}
502
492
  */
503
- cachedContent: z4.string().optional(),
493
+ cachedContent: import_v44.z.string().optional(),
504
494
  /**
505
495
  * Optional. Enable structured output. Default is true.
506
496
  *
@@ -509,13 +499,13 @@ var googleGenerativeAIProviderOptions = (0, import_provider_utils5.lazySchema)(
509
499
  * Google Generative AI uses. You can use this to disable
510
500
  * structured outputs if you need to.
511
501
  */
512
- structuredOutputs: z4.boolean().optional(),
502
+ structuredOutputs: import_v44.z.boolean().optional(),
513
503
  /**
514
504
  * Optional. A list of unique safety settings for blocking unsafe content.
515
505
  */
516
- safetySettings: z4.array(
517
- z4.object({
518
- category: z4.enum([
506
+ safetySettings: import_v44.z.array(
507
+ import_v44.z.object({
508
+ category: import_v44.z.enum([
519
509
  "HARM_CATEGORY_UNSPECIFIED",
520
510
  "HARM_CATEGORY_HATE_SPEECH",
521
511
  "HARM_CATEGORY_DANGEROUS_CONTENT",
@@ -523,7 +513,7 @@ var googleGenerativeAIProviderOptions = (0, import_provider_utils5.lazySchema)(
523
513
  "HARM_CATEGORY_SEXUALLY_EXPLICIT",
524
514
  "HARM_CATEGORY_CIVIC_INTEGRITY"
525
515
  ]),
526
- threshold: z4.enum([
516
+ threshold: import_v44.z.enum([
527
517
  "HARM_BLOCK_THRESHOLD_UNSPECIFIED",
528
518
  "BLOCK_LOW_AND_ABOVE",
529
519
  "BLOCK_MEDIUM_AND_ABOVE",
@@ -533,7 +523,7 @@ var googleGenerativeAIProviderOptions = (0, import_provider_utils5.lazySchema)(
533
523
  ])
534
524
  })
535
525
  ).optional(),
536
- threshold: z4.enum([
526
+ threshold: import_v44.z.enum([
537
527
  "HARM_BLOCK_THRESHOLD_UNSPECIFIED",
538
528
  "BLOCK_LOW_AND_ABOVE",
539
529
  "BLOCK_MEDIUM_AND_ABOVE",
@@ -546,19 +536,19 @@ var googleGenerativeAIProviderOptions = (0, import_provider_utils5.lazySchema)(
546
536
  *
547
537
  * https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/audio-understanding
548
538
  */
549
- audioTimestamp: z4.boolean().optional(),
539
+ audioTimestamp: import_v44.z.boolean().optional(),
550
540
  /**
551
541
  * Optional. Defines labels used in billing reports. Available on Vertex AI only.
552
542
  *
553
543
  * https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/add-labels-to-api-calls
554
544
  */
555
- labels: z4.record(z4.string(), z4.string()).optional(),
545
+ labels: import_v44.z.record(import_v44.z.string(), import_v44.z.string()).optional(),
556
546
  /**
557
547
  * Optional. If specified, the media resolution specified will be used.
558
548
  *
559
549
  * https://ai.google.dev/api/generate-content#MediaResolution
560
550
  */
561
- mediaResolution: z4.enum([
551
+ mediaResolution: import_v44.z.enum([
562
552
  "MEDIA_RESOLUTION_UNSPECIFIED",
563
553
  "MEDIA_RESOLUTION_LOW",
564
554
  "MEDIA_RESOLUTION_MEDIUM",
@@ -1237,129 +1227,129 @@ function extractSources({
1237
1227
  title: chunk.web.title
1238
1228
  }));
1239
1229
  }
1240
- var getGroundingMetadataSchema = () => z5.object({
1241
- webSearchQueries: z5.array(z5.string()).nullish(),
1242
- retrievalQueries: z5.array(z5.string()).nullish(),
1243
- searchEntryPoint: z5.object({ renderedContent: z5.string() }).nullish(),
1244
- groundingChunks: z5.array(
1245
- z5.object({
1246
- web: z5.object({ uri: z5.string(), title: z5.string() }).nullish(),
1247
- retrievedContext: z5.object({ uri: z5.string(), title: z5.string() }).nullish()
1230
+ var getGroundingMetadataSchema = () => import_v45.z.object({
1231
+ webSearchQueries: import_v45.z.array(import_v45.z.string()).nullish(),
1232
+ retrievalQueries: import_v45.z.array(import_v45.z.string()).nullish(),
1233
+ searchEntryPoint: import_v45.z.object({ renderedContent: import_v45.z.string() }).nullish(),
1234
+ groundingChunks: import_v45.z.array(
1235
+ import_v45.z.object({
1236
+ web: import_v45.z.object({ uri: import_v45.z.string(), title: import_v45.z.string() }).nullish(),
1237
+ retrievedContext: import_v45.z.object({ uri: import_v45.z.string(), title: import_v45.z.string() }).nullish()
1248
1238
  })
1249
1239
  ).nullish(),
1250
- groundingSupports: z5.array(
1251
- z5.object({
1252
- segment: z5.object({
1253
- startIndex: z5.number().nullish(),
1254
- endIndex: z5.number().nullish(),
1255
- text: z5.string().nullish()
1240
+ groundingSupports: import_v45.z.array(
1241
+ import_v45.z.object({
1242
+ segment: import_v45.z.object({
1243
+ startIndex: import_v45.z.number().nullish(),
1244
+ endIndex: import_v45.z.number().nullish(),
1245
+ text: import_v45.z.string().nullish()
1256
1246
  }),
1257
- segment_text: z5.string().nullish(),
1258
- groundingChunkIndices: z5.array(z5.number()).nullish(),
1259
- supportChunkIndices: z5.array(z5.number()).nullish(),
1260
- confidenceScores: z5.array(z5.number()).nullish(),
1261
- confidenceScore: z5.array(z5.number()).nullish()
1247
+ segment_text: import_v45.z.string().nullish(),
1248
+ groundingChunkIndices: import_v45.z.array(import_v45.z.number()).nullish(),
1249
+ supportChunkIndices: import_v45.z.array(import_v45.z.number()).nullish(),
1250
+ confidenceScores: import_v45.z.array(import_v45.z.number()).nullish(),
1251
+ confidenceScore: import_v45.z.array(import_v45.z.number()).nullish()
1262
1252
  })
1263
1253
  ).nullish(),
1264
- retrievalMetadata: z5.union([
1265
- z5.object({
1266
- webDynamicRetrievalScore: z5.number()
1254
+ retrievalMetadata: import_v45.z.union([
1255
+ import_v45.z.object({
1256
+ webDynamicRetrievalScore: import_v45.z.number()
1267
1257
  }),
1268
- z5.object({})
1258
+ import_v45.z.object({})
1269
1259
  ]).nullish()
1270
1260
  });
1271
- var getContentSchema = () => z5.object({
1272
- parts: z5.array(
1273
- z5.union([
1261
+ var getContentSchema = () => import_v45.z.object({
1262
+ parts: import_v45.z.array(
1263
+ import_v45.z.union([
1274
1264
  // note: order matters since text can be fully empty
1275
- z5.object({
1276
- functionCall: z5.object({
1277
- name: z5.string(),
1278
- args: z5.unknown()
1265
+ import_v45.z.object({
1266
+ functionCall: import_v45.z.object({
1267
+ name: import_v45.z.string(),
1268
+ args: import_v45.z.unknown()
1279
1269
  }),
1280
- thoughtSignature: z5.string().nullish()
1270
+ thoughtSignature: import_v45.z.string().nullish()
1281
1271
  }),
1282
- z5.object({
1283
- inlineData: z5.object({
1284
- mimeType: z5.string(),
1285
- data: z5.string()
1272
+ import_v45.z.object({
1273
+ inlineData: import_v45.z.object({
1274
+ mimeType: import_v45.z.string(),
1275
+ data: import_v45.z.string()
1286
1276
  })
1287
1277
  }),
1288
- z5.object({
1289
- executableCode: z5.object({
1290
- language: z5.string(),
1291
- code: z5.string()
1278
+ import_v45.z.object({
1279
+ executableCode: import_v45.z.object({
1280
+ language: import_v45.z.string(),
1281
+ code: import_v45.z.string()
1292
1282
  }).nullish(),
1293
- codeExecutionResult: z5.object({
1294
- outcome: z5.string(),
1295
- output: z5.string()
1283
+ codeExecutionResult: import_v45.z.object({
1284
+ outcome: import_v45.z.string(),
1285
+ output: import_v45.z.string()
1296
1286
  }).nullish(),
1297
- text: z5.string().nullish(),
1298
- thought: z5.boolean().nullish(),
1299
- thoughtSignature: z5.string().nullish()
1287
+ text: import_v45.z.string().nullish(),
1288
+ thought: import_v45.z.boolean().nullish(),
1289
+ thoughtSignature: import_v45.z.string().nullish()
1300
1290
  })
1301
1291
  ])
1302
1292
  ).nullish()
1303
1293
  });
1304
- var getSafetyRatingSchema = () => z5.object({
1305
- category: z5.string().nullish(),
1306
- probability: z5.string().nullish(),
1307
- probabilityScore: z5.number().nullish(),
1308
- severity: z5.string().nullish(),
1309
- severityScore: z5.number().nullish(),
1310
- blocked: z5.boolean().nullish()
1294
+ var getSafetyRatingSchema = () => import_v45.z.object({
1295
+ category: import_v45.z.string().nullish(),
1296
+ probability: import_v45.z.string().nullish(),
1297
+ probabilityScore: import_v45.z.number().nullish(),
1298
+ severity: import_v45.z.string().nullish(),
1299
+ severityScore: import_v45.z.number().nullish(),
1300
+ blocked: import_v45.z.boolean().nullish()
1311
1301
  });
1312
- var usageSchema = z5.object({
1313
- cachedContentTokenCount: z5.number().nullish(),
1314
- thoughtsTokenCount: z5.number().nullish(),
1315
- promptTokenCount: z5.number().nullish(),
1316
- candidatesTokenCount: z5.number().nullish(),
1317
- totalTokenCount: z5.number().nullish()
1302
+ var usageSchema = import_v45.z.object({
1303
+ cachedContentTokenCount: import_v45.z.number().nullish(),
1304
+ thoughtsTokenCount: import_v45.z.number().nullish(),
1305
+ promptTokenCount: import_v45.z.number().nullish(),
1306
+ candidatesTokenCount: import_v45.z.number().nullish(),
1307
+ totalTokenCount: import_v45.z.number().nullish()
1318
1308
  });
1319
- var getUrlContextMetadataSchema = () => z5.object({
1320
- urlMetadata: z5.array(
1321
- z5.object({
1322
- retrievedUrl: z5.string(),
1323
- urlRetrievalStatus: z5.string()
1309
+ var getUrlContextMetadataSchema = () => import_v45.z.object({
1310
+ urlMetadata: import_v45.z.array(
1311
+ import_v45.z.object({
1312
+ retrievedUrl: import_v45.z.string(),
1313
+ urlRetrievalStatus: import_v45.z.string()
1324
1314
  })
1325
1315
  )
1326
1316
  });
1327
1317
  var responseSchema = (0, import_provider_utils6.lazySchema)(
1328
1318
  () => (0, import_provider_utils6.zodSchema)(
1329
- z5.object({
1330
- candidates: z5.array(
1331
- z5.object({
1332
- content: getContentSchema().nullish().or(z5.object({}).strict()),
1333
- finishReason: z5.string().nullish(),
1334
- safetyRatings: z5.array(getSafetyRatingSchema()).nullish(),
1319
+ import_v45.z.object({
1320
+ candidates: import_v45.z.array(
1321
+ import_v45.z.object({
1322
+ content: getContentSchema().nullish().or(import_v45.z.object({}).strict()),
1323
+ finishReason: import_v45.z.string().nullish(),
1324
+ safetyRatings: import_v45.z.array(getSafetyRatingSchema()).nullish(),
1335
1325
  groundingMetadata: getGroundingMetadataSchema().nullish(),
1336
1326
  urlContextMetadata: getUrlContextMetadataSchema().nullish()
1337
1327
  })
1338
1328
  ),
1339
1329
  usageMetadata: usageSchema.nullish(),
1340
- promptFeedback: z5.object({
1341
- blockReason: z5.string().nullish(),
1342
- safetyRatings: z5.array(getSafetyRatingSchema()).nullish()
1330
+ promptFeedback: import_v45.z.object({
1331
+ blockReason: import_v45.z.string().nullish(),
1332
+ safetyRatings: import_v45.z.array(getSafetyRatingSchema()).nullish()
1343
1333
  }).nullish()
1344
1334
  })
1345
1335
  )
1346
1336
  );
1347
1337
  var chunkSchema = (0, import_provider_utils6.lazySchema)(
1348
1338
  () => (0, import_provider_utils6.zodSchema)(
1349
- z5.object({
1350
- candidates: z5.array(
1351
- z5.object({
1339
+ import_v45.z.object({
1340
+ candidates: import_v45.z.array(
1341
+ import_v45.z.object({
1352
1342
  content: getContentSchema().nullish(),
1353
- finishReason: z5.string().nullish(),
1354
- safetyRatings: z5.array(getSafetyRatingSchema()).nullish(),
1343
+ finishReason: import_v45.z.string().nullish(),
1344
+ safetyRatings: import_v45.z.array(getSafetyRatingSchema()).nullish(),
1355
1345
  groundingMetadata: getGroundingMetadataSchema().nullish(),
1356
1346
  urlContextMetadata: getUrlContextMetadataSchema().nullish()
1357
1347
  })
1358
1348
  ).nullish(),
1359
1349
  usageMetadata: usageSchema.nullish(),
1360
- promptFeedback: z5.object({
1361
- blockReason: z5.string().nullish(),
1362
- safetyRatings: z5.array(getSafetyRatingSchema()).nullish()
1350
+ promptFeedback: import_v45.z.object({
1351
+ blockReason: import_v45.z.string().nullish(),
1352
+ safetyRatings: import_v45.z.array(getSafetyRatingSchema()).nullish()
1363
1353
  }).nullish()
1364
1354
  })
1365
1355
  )
@@ -1367,31 +1357,31 @@ var chunkSchema = (0, import_provider_utils6.lazySchema)(
1367
1357
 
1368
1358
  // src/tool/code-execution.ts
1369
1359
  var import_provider_utils7 = require("@ai-sdk/provider-utils");
1370
- var z6 = __toESM(require("zod/v4"));
1360
+ var import_v46 = require("zod/v4");
1371
1361
  var codeExecution = (0, import_provider_utils7.createProviderDefinedToolFactoryWithOutputSchema)({
1372
1362
  id: "google.code_execution",
1373
1363
  name: "code_execution",
1374
- inputSchema: z6.object({
1375
- language: z6.string().describe("The programming language of the code."),
1376
- code: z6.string().describe("The code to be executed.")
1364
+ inputSchema: import_v46.z.object({
1365
+ language: import_v46.z.string().describe("The programming language of the code."),
1366
+ code: import_v46.z.string().describe("The code to be executed.")
1377
1367
  }),
1378
- outputSchema: z6.object({
1379
- outcome: z6.string().describe('The outcome of the execution (e.g., "OUTCOME_OK").'),
1380
- output: z6.string().describe("The output from the code execution.")
1368
+ outputSchema: import_v46.z.object({
1369
+ outcome: import_v46.z.string().describe('The outcome of the execution (e.g., "OUTCOME_OK").'),
1370
+ output: import_v46.z.string().describe("The output from the code execution.")
1381
1371
  })
1382
1372
  });
1383
1373
 
1384
1374
  // src/tool/google-search.ts
1385
1375
  var import_provider_utils8 = require("@ai-sdk/provider-utils");
1386
- var z7 = __toESM(require("zod/v4"));
1376
+ var import_v47 = require("zod/v4");
1387
1377
  var googleSearch = (0, import_provider_utils8.createProviderDefinedToolFactory)({
1388
1378
  id: "google.google_search",
1389
1379
  name: "google_search",
1390
1380
  inputSchema: (0, import_provider_utils8.lazySchema)(
1391
1381
  () => (0, import_provider_utils8.zodSchema)(
1392
- z7.object({
1393
- mode: z7.enum(["MODE_DYNAMIC", "MODE_UNSPECIFIED"]).default("MODE_UNSPECIFIED"),
1394
- dynamicThreshold: z7.number().default(1)
1382
+ import_v47.z.object({
1383
+ mode: import_v47.z.enum(["MODE_DYNAMIC", "MODE_UNSPECIFIED"]).default("MODE_UNSPECIFIED"),
1384
+ dynamicThreshold: import_v47.z.number().default(1)
1395
1385
  })
1396
1386
  )
1397
1387
  )
@@ -1399,11 +1389,11 @@ var googleSearch = (0, import_provider_utils8.createProviderDefinedToolFactory)(
1399
1389
 
1400
1390
  // src/tool/url-context.ts
1401
1391
  var import_provider_utils9 = require("@ai-sdk/provider-utils");
1402
- var z8 = __toESM(require("zod/v4"));
1392
+ var import_v48 = require("zod/v4");
1403
1393
  var urlContext = (0, import_provider_utils9.createProviderDefinedToolFactory)({
1404
1394
  id: "google.url_context",
1405
1395
  name: "url_context",
1406
- inputSchema: (0, import_provider_utils9.lazySchema)(() => (0, import_provider_utils9.zodSchema)(z8.object({})))
1396
+ inputSchema: (0, import_provider_utils9.lazySchema)(() => (0, import_provider_utils9.zodSchema)(import_v48.z.object({})))
1407
1397
  });
1408
1398
 
1409
1399
  // src/google-tools.ts
@@ -1433,7 +1423,7 @@ var googleTools = {
1433
1423
 
1434
1424
  // src/google-generative-ai-image-model.ts
1435
1425
  var import_provider_utils10 = require("@ai-sdk/provider-utils");
1436
- var z9 = __toESM(require("zod/v4"));
1426
+ var import_v49 = require("zod/v4");
1437
1427
  var GoogleGenerativeAIImageModel = class {
1438
1428
  constructor(modelId, settings, config) {
1439
1429
  this.modelId = modelId;
@@ -1527,16 +1517,16 @@ var GoogleGenerativeAIImageModel = class {
1527
1517
  };
1528
1518
  var googleImageResponseSchema = (0, import_provider_utils10.lazySchema)(
1529
1519
  () => (0, import_provider_utils10.zodSchema)(
1530
- z9.object({
1531
- predictions: z9.array(z9.object({ bytesBase64Encoded: z9.string() })).default([])
1520
+ import_v49.z.object({
1521
+ predictions: import_v49.z.array(import_v49.z.object({ bytesBase64Encoded: import_v49.z.string() })).default([])
1532
1522
  })
1533
1523
  )
1534
1524
  );
1535
1525
  var googleImageProviderOptionsSchema = (0, import_provider_utils10.lazySchema)(
1536
1526
  () => (0, import_provider_utils10.zodSchema)(
1537
- z9.object({
1538
- personGeneration: z9.enum(["dont_allow", "allow_adult", "allow_all"]).nullish(),
1539
- aspectRatio: z9.enum(["1:1", "3:4", "4:3", "9:16", "16:9"]).nullish()
1527
+ import_v49.z.object({
1528
+ personGeneration: import_v49.z.enum(["dont_allow", "allow_adult", "allow_all"]).nullish(),
1529
+ aspectRatio: import_v49.z.enum(["1:1", "3:4", "4:3", "9:16", "16:9"]).nullish()
1540
1530
  })
1541
1531
  )
1542
1532
  );