@google/genai 1.1.0 → 1.3.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/dist/index.mjs CHANGED
@@ -162,7 +162,6 @@ function getValueByPath(data, keys) {
162
162
  * Copyright 2025 Google LLC
163
163
  * SPDX-License-Identifier: Apache-2.0
164
164
  */
165
- // Code generated by the Google Gen AI SDK generator DO NOT EDIT.
166
165
  /** Required. Outcome of the code execution. */
167
166
  var Outcome;
168
167
  (function (Outcome) {
@@ -398,6 +397,10 @@ var FinishReason;
398
397
  * Token generation stopped because generated images have safety violations.
399
398
  */
400
399
  FinishReason["IMAGE_SAFETY"] = "IMAGE_SAFETY";
400
+ /**
401
+ * The tool call generated by the model is invalid.
402
+ */
403
+ FinishReason["UNEXPECTED_TOOL_CALL"] = "UNEXPECTED_TOOL_CALL";
401
404
  })(FinishReason || (FinishReason = {}));
402
405
  /** Output only. Harm probability levels in the content. */
403
406
  var HarmProbability;
@@ -503,7 +506,7 @@ var Modality;
503
506
  */
504
507
  Modality["IMAGE"] = "IMAGE";
505
508
  /**
506
- * Indicates the model should return images.
509
+ * Indicates the model should return audio.
507
510
  */
508
511
  Modality["AUDIO"] = "AUDIO";
509
512
  })(Modality || (Modality = {}));
@@ -927,24 +930,6 @@ var Scale;
927
930
  */
928
931
  Scale["B_MAJOR_A_FLAT_MINOR"] = "B_MAJOR_A_FLAT_MINOR";
929
932
  })(Scale || (Scale = {}));
930
- /** The mode of music generation. */
931
- var MusicGenerationMode;
932
- (function (MusicGenerationMode) {
933
- /**
934
- * This value is unused.
935
- */
936
- MusicGenerationMode["MUSIC_GENERATION_MODE_UNSPECIFIED"] = "MUSIC_GENERATION_MODE_UNSPECIFIED";
937
- /**
938
- * Steer text prompts to regions of latent space with higher quality
939
- music.
940
- */
941
- MusicGenerationMode["QUALITY"] = "QUALITY";
942
- /**
943
- * Steer text prompts to regions of latent space with a larger diversity
944
- of music.
945
- */
946
- MusicGenerationMode["DIVERSITY"] = "DIVERSITY";
947
- })(MusicGenerationMode || (MusicGenerationMode = {}));
948
933
  /** The playback control signal to apply to the music generation. */
949
934
  var LiveMusicPlaybackControl;
950
935
  (function (LiveMusicPlaybackControl) {
@@ -1409,7 +1394,6 @@ class ReplayResponse {
1409
1394
  */
1410
1395
  class RawReferenceImage {
1411
1396
  /** Internal method to convert to ReferenceImageAPIInternal. */
1412
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1413
1397
  toReferenceImageAPI() {
1414
1398
  const referenceImageAPI = {
1415
1399
  referenceType: 'REFERENCE_TYPE_RAW',
@@ -1431,7 +1415,6 @@ class RawReferenceImage {
1431
1415
  */
1432
1416
  class MaskReferenceImage {
1433
1417
  /** Internal method to convert to ReferenceImageAPIInternal. */
1434
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1435
1418
  toReferenceImageAPI() {
1436
1419
  const referenceImageAPI = {
1437
1420
  referenceType: 'REFERENCE_TYPE_MASK',
@@ -1454,7 +1437,6 @@ class MaskReferenceImage {
1454
1437
  */
1455
1438
  class ControlReferenceImage {
1456
1439
  /** Internal method to convert to ReferenceImageAPIInternal. */
1457
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1458
1440
  toReferenceImageAPI() {
1459
1441
  const referenceImageAPI = {
1460
1442
  referenceType: 'REFERENCE_TYPE_CONTROL',
@@ -1475,7 +1457,6 @@ class ControlReferenceImage {
1475
1457
  */
1476
1458
  class StyleReferenceImage {
1477
1459
  /** Internal method to convert to ReferenceImageAPIInternal. */
1478
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1479
1460
  toReferenceImageAPI() {
1480
1461
  const referenceImageAPI = {
1481
1462
  referenceType: 'REFERENCE_TYPE_STYLE',
@@ -1496,7 +1477,6 @@ class StyleReferenceImage {
1496
1477
  */
1497
1478
  class SubjectReferenceImage {
1498
1479
  /* Internal method to convert to ReferenceImageAPIInternal. */
1499
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1500
1480
  toReferenceImageAPI() {
1501
1481
  const referenceImageAPI = {
1502
1482
  referenceType: 'REFERENCE_TYPE_SUBJECT',
@@ -2411,7 +2391,7 @@ function filterToJsonSchema(schema) {
2411
2391
  * Copyright 2025 Google LLC
2412
2392
  * SPDX-License-Identifier: Apache-2.0
2413
2393
  */
2414
- function videoMetadataToMldev$2(apiClient, fromObject) {
2394
+ function videoMetadataToMldev$3(apiClient, fromObject) {
2415
2395
  const toObject = {};
2416
2396
  const fromFps = getValueByPath(fromObject, ['fps']);
2417
2397
  if (fromFps != null) {
@@ -2427,7 +2407,7 @@ function videoMetadataToMldev$2(apiClient, fromObject) {
2427
2407
  }
2428
2408
  return toObject;
2429
2409
  }
2430
- function blobToMldev$2(apiClient, fromObject) {
2410
+ function blobToMldev$3(apiClient, fromObject) {
2431
2411
  const toObject = {};
2432
2412
  if (getValueByPath(fromObject, ['displayName']) !== undefined) {
2433
2413
  throw new Error('displayName parameter is not supported in Gemini API.');
@@ -2442,7 +2422,7 @@ function blobToMldev$2(apiClient, fromObject) {
2442
2422
  }
2443
2423
  return toObject;
2444
2424
  }
2445
- function fileDataToMldev$2(apiClient, fromObject) {
2425
+ function fileDataToMldev$3(apiClient, fromObject) {
2446
2426
  const toObject = {};
2447
2427
  if (getValueByPath(fromObject, ['displayName']) !== undefined) {
2448
2428
  throw new Error('displayName parameter is not supported in Gemini API.');
@@ -2457,13 +2437,13 @@ function fileDataToMldev$2(apiClient, fromObject) {
2457
2437
  }
2458
2438
  return toObject;
2459
2439
  }
2460
- function partToMldev$2(apiClient, fromObject) {
2440
+ function partToMldev$3(apiClient, fromObject) {
2461
2441
  const toObject = {};
2462
2442
  const fromVideoMetadata = getValueByPath(fromObject, [
2463
2443
  'videoMetadata',
2464
2444
  ]);
2465
2445
  if (fromVideoMetadata != null) {
2466
- setValueByPath(toObject, ['videoMetadata'], videoMetadataToMldev$2(apiClient, fromVideoMetadata));
2446
+ setValueByPath(toObject, ['videoMetadata'], videoMetadataToMldev$3(apiClient, fromVideoMetadata));
2467
2447
  }
2468
2448
  const fromThought = getValueByPath(fromObject, ['thought']);
2469
2449
  if (fromThought != null) {
@@ -2471,11 +2451,17 @@ function partToMldev$2(apiClient, fromObject) {
2471
2451
  }
2472
2452
  const fromInlineData = getValueByPath(fromObject, ['inlineData']);
2473
2453
  if (fromInlineData != null) {
2474
- setValueByPath(toObject, ['inlineData'], blobToMldev$2(apiClient, fromInlineData));
2454
+ setValueByPath(toObject, ['inlineData'], blobToMldev$3(apiClient, fromInlineData));
2475
2455
  }
2476
2456
  const fromFileData = getValueByPath(fromObject, ['fileData']);
2477
2457
  if (fromFileData != null) {
2478
- setValueByPath(toObject, ['fileData'], fileDataToMldev$2(apiClient, fromFileData));
2458
+ setValueByPath(toObject, ['fileData'], fileDataToMldev$3(apiClient, fromFileData));
2459
+ }
2460
+ const fromThoughtSignature = getValueByPath(fromObject, [
2461
+ 'thoughtSignature',
2462
+ ]);
2463
+ if (fromThoughtSignature != null) {
2464
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
2479
2465
  }
2480
2466
  const fromCodeExecutionResult = getValueByPath(fromObject, [
2481
2467
  'codeExecutionResult',
@@ -2505,14 +2491,14 @@ function partToMldev$2(apiClient, fromObject) {
2505
2491
  }
2506
2492
  return toObject;
2507
2493
  }
2508
- function contentToMldev$2(apiClient, fromObject) {
2494
+ function contentToMldev$3(apiClient, fromObject) {
2509
2495
  const toObject = {};
2510
2496
  const fromParts = getValueByPath(fromObject, ['parts']);
2511
2497
  if (fromParts != null) {
2512
2498
  let transformedList = fromParts;
2513
2499
  if (Array.isArray(transformedList)) {
2514
2500
  transformedList = transformedList.map((item) => {
2515
- return partToMldev$2(apiClient, item);
2501
+ return partToMldev$3(apiClient, item);
2516
2502
  });
2517
2503
  }
2518
2504
  setValueByPath(toObject, ['parts'], transformedList);
@@ -2523,7 +2509,7 @@ function contentToMldev$2(apiClient, fromObject) {
2523
2509
  }
2524
2510
  return toObject;
2525
2511
  }
2526
- function functionDeclarationToMldev$2(apiClient, fromObject) {
2512
+ function functionDeclarationToMldev$3(apiClient, fromObject) {
2527
2513
  const toObject = {};
2528
2514
  const fromBehavior = getValueByPath(fromObject, ['behavior']);
2529
2515
  if (fromBehavior != null) {
@@ -2547,7 +2533,7 @@ function functionDeclarationToMldev$2(apiClient, fromObject) {
2547
2533
  }
2548
2534
  return toObject;
2549
2535
  }
2550
- function intervalToMldev$2(apiClient, fromObject) {
2536
+ function intervalToMldev$3(apiClient, fromObject) {
2551
2537
  const toObject = {};
2552
2538
  const fromStartTime = getValueByPath(fromObject, ['startTime']);
2553
2539
  if (fromStartTime != null) {
@@ -2559,17 +2545,17 @@ function intervalToMldev$2(apiClient, fromObject) {
2559
2545
  }
2560
2546
  return toObject;
2561
2547
  }
2562
- function googleSearchToMldev$2(apiClient, fromObject) {
2548
+ function googleSearchToMldev$3(apiClient, fromObject) {
2563
2549
  const toObject = {};
2564
2550
  const fromTimeRangeFilter = getValueByPath(fromObject, [
2565
2551
  'timeRangeFilter',
2566
2552
  ]);
2567
2553
  if (fromTimeRangeFilter != null) {
2568
- setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev$2(apiClient, fromTimeRangeFilter));
2554
+ setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev$3(apiClient, fromTimeRangeFilter));
2569
2555
  }
2570
2556
  return toObject;
2571
2557
  }
2572
- function dynamicRetrievalConfigToMldev$2(apiClient, fromObject) {
2558
+ function dynamicRetrievalConfigToMldev$3(apiClient, fromObject) {
2573
2559
  const toObject = {};
2574
2560
  const fromMode = getValueByPath(fromObject, ['mode']);
2575
2561
  if (fromMode != null) {
@@ -2583,21 +2569,21 @@ function dynamicRetrievalConfigToMldev$2(apiClient, fromObject) {
2583
2569
  }
2584
2570
  return toObject;
2585
2571
  }
2586
- function googleSearchRetrievalToMldev$2(apiClient, fromObject) {
2572
+ function googleSearchRetrievalToMldev$3(apiClient, fromObject) {
2587
2573
  const toObject = {};
2588
2574
  const fromDynamicRetrievalConfig = getValueByPath(fromObject, [
2589
2575
  'dynamicRetrievalConfig',
2590
2576
  ]);
2591
2577
  if (fromDynamicRetrievalConfig != null) {
2592
- setValueByPath(toObject, ['dynamicRetrievalConfig'], dynamicRetrievalConfigToMldev$2(apiClient, fromDynamicRetrievalConfig));
2578
+ setValueByPath(toObject, ['dynamicRetrievalConfig'], dynamicRetrievalConfigToMldev$3(apiClient, fromDynamicRetrievalConfig));
2593
2579
  }
2594
2580
  return toObject;
2595
2581
  }
2596
- function urlContextToMldev$2() {
2582
+ function urlContextToMldev$3() {
2597
2583
  const toObject = {};
2598
2584
  return toObject;
2599
2585
  }
2600
- function toolToMldev$2(apiClient, fromObject) {
2586
+ function toolToMldev$3(apiClient, fromObject) {
2601
2587
  const toObject = {};
2602
2588
  const fromFunctionDeclarations = getValueByPath(fromObject, [
2603
2589
  'functionDeclarations',
@@ -2606,7 +2592,7 @@ function toolToMldev$2(apiClient, fromObject) {
2606
2592
  let transformedList = fromFunctionDeclarations;
2607
2593
  if (Array.isArray(transformedList)) {
2608
2594
  transformedList = transformedList.map((item) => {
2609
- return functionDeclarationToMldev$2(apiClient, item);
2595
+ return functionDeclarationToMldev$3(apiClient, item);
2610
2596
  });
2611
2597
  }
2612
2598
  setValueByPath(toObject, ['functionDeclarations'], transformedList);
@@ -2616,13 +2602,13 @@ function toolToMldev$2(apiClient, fromObject) {
2616
2602
  }
2617
2603
  const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
2618
2604
  if (fromGoogleSearch != null) {
2619
- setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$2(apiClient, fromGoogleSearch));
2605
+ setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$3(apiClient, fromGoogleSearch));
2620
2606
  }
2621
2607
  const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
2622
2608
  'googleSearchRetrieval',
2623
2609
  ]);
2624
2610
  if (fromGoogleSearchRetrieval != null) {
2625
- setValueByPath(toObject, ['googleSearchRetrieval'], googleSearchRetrievalToMldev$2(apiClient, fromGoogleSearchRetrieval));
2611
+ setValueByPath(toObject, ['googleSearchRetrieval'], googleSearchRetrievalToMldev$3(apiClient, fromGoogleSearchRetrieval));
2626
2612
  }
2627
2613
  if (getValueByPath(fromObject, ['enterpriseWebSearch']) !== undefined) {
2628
2614
  throw new Error('enterpriseWebSearch parameter is not supported in Gemini API.');
@@ -2632,7 +2618,7 @@ function toolToMldev$2(apiClient, fromObject) {
2632
2618
  }
2633
2619
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
2634
2620
  if (fromUrlContext != null) {
2635
- setValueByPath(toObject, ['urlContext'], urlContextToMldev$2());
2621
+ setValueByPath(toObject, ['urlContext'], urlContextToMldev$3());
2636
2622
  }
2637
2623
  const fromCodeExecution = getValueByPath(fromObject, [
2638
2624
  'codeExecution',
@@ -2715,7 +2701,7 @@ function createCachedContentConfigToMldev(apiClient, fromObject, parentObject) {
2715
2701
  let transformedList = tContents(apiClient, fromContents);
2716
2702
  if (Array.isArray(transformedList)) {
2717
2703
  transformedList = transformedList.map((item) => {
2718
- return contentToMldev$2(apiClient, item);
2704
+ return contentToMldev$3(apiClient, item);
2719
2705
  });
2720
2706
  }
2721
2707
  setValueByPath(parentObject, ['contents'], transformedList);
@@ -2724,14 +2710,14 @@ function createCachedContentConfigToMldev(apiClient, fromObject, parentObject) {
2724
2710
  'systemInstruction',
2725
2711
  ]);
2726
2712
  if (parentObject !== undefined && fromSystemInstruction != null) {
2727
- setValueByPath(parentObject, ['systemInstruction'], contentToMldev$2(apiClient, tContent(apiClient, fromSystemInstruction)));
2713
+ setValueByPath(parentObject, ['systemInstruction'], contentToMldev$3(apiClient, tContent(apiClient, fromSystemInstruction)));
2728
2714
  }
2729
2715
  const fromTools = getValueByPath(fromObject, ['tools']);
2730
2716
  if (parentObject !== undefined && fromTools != null) {
2731
2717
  let transformedList = fromTools;
2732
2718
  if (Array.isArray(transformedList)) {
2733
2719
  transformedList = transformedList.map((item) => {
2734
- return toolToMldev$2(apiClient, item);
2720
+ return toolToMldev$3(apiClient, item);
2735
2721
  });
2736
2722
  }
2737
2723
  setValueByPath(parentObject, ['tools'], transformedList);
@@ -2893,6 +2879,12 @@ function partToVertex$2(apiClient, fromObject) {
2893
2879
  if (fromFileData != null) {
2894
2880
  setValueByPath(toObject, ['fileData'], fileDataToVertex$2(apiClient, fromFileData));
2895
2881
  }
2882
+ const fromThoughtSignature = getValueByPath(fromObject, [
2883
+ 'thoughtSignature',
2884
+ ]);
2885
+ if (fromThoughtSignature != null) {
2886
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
2887
+ }
2896
2888
  const fromCodeExecutionResult = getValueByPath(fromObject, [
2897
2889
  'codeExecutionResult',
2898
2890
  ]);
@@ -4354,7 +4346,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
4354
4346
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
4355
4347
  const USER_AGENT_HEADER = 'User-Agent';
4356
4348
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
4357
- const SDK_VERSION = '1.1.0'; // x-release-please-version
4349
+ const SDK_VERSION = '1.3.0'; // x-release-please-version
4358
4350
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
4359
4351
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
4360
4352
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
@@ -5518,7 +5510,7 @@ class Files extends BaseModule {
5518
5510
  * Copyright 2025 Google LLC
5519
5511
  * SPDX-License-Identifier: Apache-2.0
5520
5512
  */
5521
- function prebuiltVoiceConfigToMldev$1(apiClient, fromObject) {
5513
+ function prebuiltVoiceConfigToMldev$2(apiClient, fromObject) {
5522
5514
  const toObject = {};
5523
5515
  const fromVoiceName = getValueByPath(fromObject, ['voiceName']);
5524
5516
  if (fromVoiceName != null) {
@@ -5534,13 +5526,13 @@ function prebuiltVoiceConfigToVertex$1(apiClient, fromObject) {
5534
5526
  }
5535
5527
  return toObject;
5536
5528
  }
5537
- function voiceConfigToMldev$1(apiClient, fromObject) {
5529
+ function voiceConfigToMldev$2(apiClient, fromObject) {
5538
5530
  const toObject = {};
5539
5531
  const fromPrebuiltVoiceConfig = getValueByPath(fromObject, [
5540
5532
  'prebuiltVoiceConfig',
5541
5533
  ]);
5542
5534
  if (fromPrebuiltVoiceConfig != null) {
5543
- setValueByPath(toObject, ['prebuiltVoiceConfig'], prebuiltVoiceConfigToMldev$1(apiClient, fromPrebuiltVoiceConfig));
5535
+ setValueByPath(toObject, ['prebuiltVoiceConfig'], prebuiltVoiceConfigToMldev$2(apiClient, fromPrebuiltVoiceConfig));
5544
5536
  }
5545
5537
  return toObject;
5546
5538
  }
@@ -5554,7 +5546,7 @@ function voiceConfigToVertex$1(apiClient, fromObject) {
5554
5546
  }
5555
5547
  return toObject;
5556
5548
  }
5557
- function speakerVoiceConfigToMldev$1(apiClient, fromObject) {
5549
+ function speakerVoiceConfigToMldev$2(apiClient, fromObject) {
5558
5550
  const toObject = {};
5559
5551
  const fromSpeaker = getValueByPath(fromObject, ['speaker']);
5560
5552
  if (fromSpeaker != null) {
@@ -5562,11 +5554,11 @@ function speakerVoiceConfigToMldev$1(apiClient, fromObject) {
5562
5554
  }
5563
5555
  const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
5564
5556
  if (fromVoiceConfig != null) {
5565
- setValueByPath(toObject, ['voiceConfig'], voiceConfigToMldev$1(apiClient, fromVoiceConfig));
5557
+ setValueByPath(toObject, ['voiceConfig'], voiceConfigToMldev$2(apiClient, fromVoiceConfig));
5566
5558
  }
5567
5559
  return toObject;
5568
5560
  }
5569
- function multiSpeakerVoiceConfigToMldev$1(apiClient, fromObject) {
5561
+ function multiSpeakerVoiceConfigToMldev$2(apiClient, fromObject) {
5570
5562
  const toObject = {};
5571
5563
  const fromSpeakerVoiceConfigs = getValueByPath(fromObject, [
5572
5564
  'speakerVoiceConfigs',
@@ -5575,24 +5567,24 @@ function multiSpeakerVoiceConfigToMldev$1(apiClient, fromObject) {
5575
5567
  let transformedList = fromSpeakerVoiceConfigs;
5576
5568
  if (Array.isArray(transformedList)) {
5577
5569
  transformedList = transformedList.map((item) => {
5578
- return speakerVoiceConfigToMldev$1(apiClient, item);
5570
+ return speakerVoiceConfigToMldev$2(apiClient, item);
5579
5571
  });
5580
5572
  }
5581
5573
  setValueByPath(toObject, ['speakerVoiceConfigs'], transformedList);
5582
5574
  }
5583
5575
  return toObject;
5584
5576
  }
5585
- function speechConfigToMldev$1(apiClient, fromObject) {
5577
+ function speechConfigToMldev$2(apiClient, fromObject) {
5586
5578
  const toObject = {};
5587
5579
  const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
5588
5580
  if (fromVoiceConfig != null) {
5589
- setValueByPath(toObject, ['voiceConfig'], voiceConfigToMldev$1(apiClient, fromVoiceConfig));
5581
+ setValueByPath(toObject, ['voiceConfig'], voiceConfigToMldev$2(apiClient, fromVoiceConfig));
5590
5582
  }
5591
5583
  const fromMultiSpeakerVoiceConfig = getValueByPath(fromObject, [
5592
5584
  'multiSpeakerVoiceConfig',
5593
5585
  ]);
5594
5586
  if (fromMultiSpeakerVoiceConfig != null) {
5595
- setValueByPath(toObject, ['multiSpeakerVoiceConfig'], multiSpeakerVoiceConfigToMldev$1(apiClient, fromMultiSpeakerVoiceConfig));
5587
+ setValueByPath(toObject, ['multiSpeakerVoiceConfig'], multiSpeakerVoiceConfigToMldev$2(apiClient, fromMultiSpeakerVoiceConfig));
5596
5588
  }
5597
5589
  const fromLanguageCode = getValueByPath(fromObject, ['languageCode']);
5598
5590
  if (fromLanguageCode != null) {
@@ -5615,7 +5607,7 @@ function speechConfigToVertex$1(apiClient, fromObject) {
5615
5607
  }
5616
5608
  return toObject;
5617
5609
  }
5618
- function videoMetadataToMldev$1(apiClient, fromObject) {
5610
+ function videoMetadataToMldev$2(apiClient, fromObject) {
5619
5611
  const toObject = {};
5620
5612
  const fromFps = getValueByPath(fromObject, ['fps']);
5621
5613
  if (fromFps != null) {
@@ -5647,7 +5639,7 @@ function videoMetadataToVertex$1(apiClient, fromObject) {
5647
5639
  }
5648
5640
  return toObject;
5649
5641
  }
5650
- function blobToMldev$1(apiClient, fromObject) {
5642
+ function blobToMldev$2(apiClient, fromObject) {
5651
5643
  const toObject = {};
5652
5644
  if (getValueByPath(fromObject, ['displayName']) !== undefined) {
5653
5645
  throw new Error('displayName parameter is not supported in Gemini API.');
@@ -5678,7 +5670,7 @@ function blobToVertex$1(apiClient, fromObject) {
5678
5670
  }
5679
5671
  return toObject;
5680
5672
  }
5681
- function fileDataToMldev$1(apiClient, fromObject) {
5673
+ function fileDataToMldev$2(apiClient, fromObject) {
5682
5674
  const toObject = {};
5683
5675
  if (getValueByPath(fromObject, ['displayName']) !== undefined) {
5684
5676
  throw new Error('displayName parameter is not supported in Gemini API.');
@@ -5709,13 +5701,13 @@ function fileDataToVertex$1(apiClient, fromObject) {
5709
5701
  }
5710
5702
  return toObject;
5711
5703
  }
5712
- function partToMldev$1(apiClient, fromObject) {
5704
+ function partToMldev$2(apiClient, fromObject) {
5713
5705
  const toObject = {};
5714
5706
  const fromVideoMetadata = getValueByPath(fromObject, [
5715
5707
  'videoMetadata',
5716
5708
  ]);
5717
5709
  if (fromVideoMetadata != null) {
5718
- setValueByPath(toObject, ['videoMetadata'], videoMetadataToMldev$1(apiClient, fromVideoMetadata));
5710
+ setValueByPath(toObject, ['videoMetadata'], videoMetadataToMldev$2(apiClient, fromVideoMetadata));
5719
5711
  }
5720
5712
  const fromThought = getValueByPath(fromObject, ['thought']);
5721
5713
  if (fromThought != null) {
@@ -5723,11 +5715,17 @@ function partToMldev$1(apiClient, fromObject) {
5723
5715
  }
5724
5716
  const fromInlineData = getValueByPath(fromObject, ['inlineData']);
5725
5717
  if (fromInlineData != null) {
5726
- setValueByPath(toObject, ['inlineData'], blobToMldev$1(apiClient, fromInlineData));
5718
+ setValueByPath(toObject, ['inlineData'], blobToMldev$2(apiClient, fromInlineData));
5727
5719
  }
5728
5720
  const fromFileData = getValueByPath(fromObject, ['fileData']);
5729
5721
  if (fromFileData != null) {
5730
- setValueByPath(toObject, ['fileData'], fileDataToMldev$1(apiClient, fromFileData));
5722
+ setValueByPath(toObject, ['fileData'], fileDataToMldev$2(apiClient, fromFileData));
5723
+ }
5724
+ const fromThoughtSignature = getValueByPath(fromObject, [
5725
+ 'thoughtSignature',
5726
+ ]);
5727
+ if (fromThoughtSignature != null) {
5728
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
5731
5729
  }
5732
5730
  const fromCodeExecutionResult = getValueByPath(fromObject, [
5733
5731
  'codeExecutionResult',
@@ -5777,6 +5775,12 @@ function partToVertex$1(apiClient, fromObject) {
5777
5775
  if (fromFileData != null) {
5778
5776
  setValueByPath(toObject, ['fileData'], fileDataToVertex$1(apiClient, fromFileData));
5779
5777
  }
5778
+ const fromThoughtSignature = getValueByPath(fromObject, [
5779
+ 'thoughtSignature',
5780
+ ]);
5781
+ if (fromThoughtSignature != null) {
5782
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
5783
+ }
5780
5784
  const fromCodeExecutionResult = getValueByPath(fromObject, [
5781
5785
  'codeExecutionResult',
5782
5786
  ]);
@@ -5805,14 +5809,14 @@ function partToVertex$1(apiClient, fromObject) {
5805
5809
  }
5806
5810
  return toObject;
5807
5811
  }
5808
- function contentToMldev$1(apiClient, fromObject) {
5812
+ function contentToMldev$2(apiClient, fromObject) {
5809
5813
  const toObject = {};
5810
5814
  const fromParts = getValueByPath(fromObject, ['parts']);
5811
5815
  if (fromParts != null) {
5812
5816
  let transformedList = fromParts;
5813
5817
  if (Array.isArray(transformedList)) {
5814
5818
  transformedList = transformedList.map((item) => {
5815
- return partToMldev$1(apiClient, item);
5819
+ return partToMldev$2(apiClient, item);
5816
5820
  });
5817
5821
  }
5818
5822
  setValueByPath(toObject, ['parts'], transformedList);
@@ -5841,7 +5845,7 @@ function contentToVertex$1(apiClient, fromObject) {
5841
5845
  }
5842
5846
  return toObject;
5843
5847
  }
5844
- function functionDeclarationToMldev$1(apiClient, fromObject) {
5848
+ function functionDeclarationToMldev$2(apiClient, fromObject) {
5845
5849
  const toObject = {};
5846
5850
  const fromBehavior = getValueByPath(fromObject, ['behavior']);
5847
5851
  if (fromBehavior != null) {
@@ -5888,7 +5892,7 @@ function functionDeclarationToVertex$1(apiClient, fromObject) {
5888
5892
  }
5889
5893
  return toObject;
5890
5894
  }
5891
- function intervalToMldev$1(apiClient, fromObject) {
5895
+ function intervalToMldev$2(apiClient, fromObject) {
5892
5896
  const toObject = {};
5893
5897
  const fromStartTime = getValueByPath(fromObject, ['startTime']);
5894
5898
  if (fromStartTime != null) {
@@ -5912,13 +5916,13 @@ function intervalToVertex$1(apiClient, fromObject) {
5912
5916
  }
5913
5917
  return toObject;
5914
5918
  }
5915
- function googleSearchToMldev$1(apiClient, fromObject) {
5919
+ function googleSearchToMldev$2(apiClient, fromObject) {
5916
5920
  const toObject = {};
5917
5921
  const fromTimeRangeFilter = getValueByPath(fromObject, [
5918
5922
  'timeRangeFilter',
5919
5923
  ]);
5920
5924
  if (fromTimeRangeFilter != null) {
5921
- setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev$1(apiClient, fromTimeRangeFilter));
5925
+ setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev$2(apiClient, fromTimeRangeFilter));
5922
5926
  }
5923
5927
  return toObject;
5924
5928
  }
@@ -5932,7 +5936,7 @@ function googleSearchToVertex$1(apiClient, fromObject) {
5932
5936
  }
5933
5937
  return toObject;
5934
5938
  }
5935
- function dynamicRetrievalConfigToMldev$1(apiClient, fromObject) {
5939
+ function dynamicRetrievalConfigToMldev$2(apiClient, fromObject) {
5936
5940
  const toObject = {};
5937
5941
  const fromMode = getValueByPath(fromObject, ['mode']);
5938
5942
  if (fromMode != null) {
@@ -5960,13 +5964,13 @@ function dynamicRetrievalConfigToVertex$1(apiClient, fromObject) {
5960
5964
  }
5961
5965
  return toObject;
5962
5966
  }
5963
- function googleSearchRetrievalToMldev$1(apiClient, fromObject) {
5967
+ function googleSearchRetrievalToMldev$2(apiClient, fromObject) {
5964
5968
  const toObject = {};
5965
5969
  const fromDynamicRetrievalConfig = getValueByPath(fromObject, [
5966
5970
  'dynamicRetrievalConfig',
5967
5971
  ]);
5968
5972
  if (fromDynamicRetrievalConfig != null) {
5969
- setValueByPath(toObject, ['dynamicRetrievalConfig'], dynamicRetrievalConfigToMldev$1(apiClient, fromDynamicRetrievalConfig));
5973
+ setValueByPath(toObject, ['dynamicRetrievalConfig'], dynamicRetrievalConfigToMldev$2(apiClient, fromDynamicRetrievalConfig));
5970
5974
  }
5971
5975
  return toObject;
5972
5976
  }
@@ -6032,11 +6036,11 @@ function googleMapsToVertex$1(apiClient, fromObject) {
6032
6036
  }
6033
6037
  return toObject;
6034
6038
  }
6035
- function urlContextToMldev$1() {
6039
+ function urlContextToMldev$2() {
6036
6040
  const toObject = {};
6037
6041
  return toObject;
6038
6042
  }
6039
- function toolToMldev$1(apiClient, fromObject) {
6043
+ function toolToMldev$2(apiClient, fromObject) {
6040
6044
  const toObject = {};
6041
6045
  const fromFunctionDeclarations = getValueByPath(fromObject, [
6042
6046
  'functionDeclarations',
@@ -6045,7 +6049,7 @@ function toolToMldev$1(apiClient, fromObject) {
6045
6049
  let transformedList = fromFunctionDeclarations;
6046
6050
  if (Array.isArray(transformedList)) {
6047
6051
  transformedList = transformedList.map((item) => {
6048
- return functionDeclarationToMldev$1(apiClient, item);
6052
+ return functionDeclarationToMldev$2(apiClient, item);
6049
6053
  });
6050
6054
  }
6051
6055
  setValueByPath(toObject, ['functionDeclarations'], transformedList);
@@ -6055,13 +6059,13 @@ function toolToMldev$1(apiClient, fromObject) {
6055
6059
  }
6056
6060
  const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
6057
6061
  if (fromGoogleSearch != null) {
6058
- setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$1(apiClient, fromGoogleSearch));
6062
+ setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$2(apiClient, fromGoogleSearch));
6059
6063
  }
6060
6064
  const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
6061
6065
  'googleSearchRetrieval',
6062
6066
  ]);
6063
6067
  if (fromGoogleSearchRetrieval != null) {
6064
- setValueByPath(toObject, ['googleSearchRetrieval'], googleSearchRetrievalToMldev$1(apiClient, fromGoogleSearchRetrieval));
6068
+ setValueByPath(toObject, ['googleSearchRetrieval'], googleSearchRetrievalToMldev$2(apiClient, fromGoogleSearchRetrieval));
6065
6069
  }
6066
6070
  if (getValueByPath(fromObject, ['enterpriseWebSearch']) !== undefined) {
6067
6071
  throw new Error('enterpriseWebSearch parameter is not supported in Gemini API.');
@@ -6071,7 +6075,7 @@ function toolToMldev$1(apiClient, fromObject) {
6071
6075
  }
6072
6076
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
6073
6077
  if (fromUrlContext != null) {
6074
- setValueByPath(toObject, ['urlContext'], urlContextToMldev$1());
6078
+ setValueByPath(toObject, ['urlContext'], urlContextToMldev$2());
6075
6079
  }
6076
6080
  const fromCodeExecution = getValueByPath(fromObject, [
6077
6081
  'codeExecution',
@@ -6130,7 +6134,7 @@ function toolToVertex$1(apiClient, fromObject) {
6130
6134
  }
6131
6135
  return toObject;
6132
6136
  }
6133
- function sessionResumptionConfigToMldev(apiClient, fromObject) {
6137
+ function sessionResumptionConfigToMldev$1(apiClient, fromObject) {
6134
6138
  const toObject = {};
6135
6139
  const fromHandle = getValueByPath(fromObject, ['handle']);
6136
6140
  if (fromHandle != null) {
@@ -6153,7 +6157,7 @@ function sessionResumptionConfigToVertex(apiClient, fromObject) {
6153
6157
  }
6154
6158
  return toObject;
6155
6159
  }
6156
- function audioTranscriptionConfigToMldev() {
6160
+ function audioTranscriptionConfigToMldev$1() {
6157
6161
  const toObject = {};
6158
6162
  return toObject;
6159
6163
  }
@@ -6161,7 +6165,7 @@ function audioTranscriptionConfigToVertex() {
6161
6165
  const toObject = {};
6162
6166
  return toObject;
6163
6167
  }
6164
- function automaticActivityDetectionToMldev(apiClient, fromObject) {
6168
+ function automaticActivityDetectionToMldev$1(apiClient, fromObject) {
6165
6169
  const toObject = {};
6166
6170
  const fromDisabled = getValueByPath(fromObject, ['disabled']);
6167
6171
  if (fromDisabled != null) {
@@ -6225,13 +6229,13 @@ function automaticActivityDetectionToVertex(apiClient, fromObject) {
6225
6229
  }
6226
6230
  return toObject;
6227
6231
  }
6228
- function realtimeInputConfigToMldev(apiClient, fromObject) {
6232
+ function realtimeInputConfigToMldev$1(apiClient, fromObject) {
6229
6233
  const toObject = {};
6230
6234
  const fromAutomaticActivityDetection = getValueByPath(fromObject, [
6231
6235
  'automaticActivityDetection',
6232
6236
  ]);
6233
6237
  if (fromAutomaticActivityDetection != null) {
6234
- setValueByPath(toObject, ['automaticActivityDetection'], automaticActivityDetectionToMldev(apiClient, fromAutomaticActivityDetection));
6238
+ setValueByPath(toObject, ['automaticActivityDetection'], automaticActivityDetectionToMldev$1(apiClient, fromAutomaticActivityDetection));
6235
6239
  }
6236
6240
  const fromActivityHandling = getValueByPath(fromObject, [
6237
6241
  'activityHandling',
@@ -6265,7 +6269,7 @@ function realtimeInputConfigToVertex(apiClient, fromObject) {
6265
6269
  }
6266
6270
  return toObject;
6267
6271
  }
6268
- function slidingWindowToMldev(apiClient, fromObject) {
6272
+ function slidingWindowToMldev$1(apiClient, fromObject) {
6269
6273
  const toObject = {};
6270
6274
  const fromTargetTokens = getValueByPath(fromObject, ['targetTokens']);
6271
6275
  if (fromTargetTokens != null) {
@@ -6281,7 +6285,7 @@ function slidingWindowToVertex(apiClient, fromObject) {
6281
6285
  }
6282
6286
  return toObject;
6283
6287
  }
6284
- function contextWindowCompressionConfigToMldev(apiClient, fromObject) {
6288
+ function contextWindowCompressionConfigToMldev$1(apiClient, fromObject) {
6285
6289
  const toObject = {};
6286
6290
  const fromTriggerTokens = getValueByPath(fromObject, [
6287
6291
  'triggerTokens',
@@ -6293,7 +6297,7 @@ function contextWindowCompressionConfigToMldev(apiClient, fromObject) {
6293
6297
  'slidingWindow',
6294
6298
  ]);
6295
6299
  if (fromSlidingWindow != null) {
6296
- setValueByPath(toObject, ['slidingWindow'], slidingWindowToMldev(apiClient, fromSlidingWindow));
6300
+ setValueByPath(toObject, ['slidingWindow'], slidingWindowToMldev$1(apiClient, fromSlidingWindow));
6297
6301
  }
6298
6302
  return toObject;
6299
6303
  }
@@ -6313,7 +6317,7 @@ function contextWindowCompressionConfigToVertex(apiClient, fromObject) {
6313
6317
  }
6314
6318
  return toObject;
6315
6319
  }
6316
- function proactivityConfigToMldev(apiClient, fromObject) {
6320
+ function proactivityConfigToMldev$1(apiClient, fromObject) {
6317
6321
  const toObject = {};
6318
6322
  const fromProactiveAudio = getValueByPath(fromObject, [
6319
6323
  'proactiveAudio',
@@ -6333,7 +6337,7 @@ function proactivityConfigToVertex(apiClient, fromObject) {
6333
6337
  }
6334
6338
  return toObject;
6335
6339
  }
6336
- function liveConnectConfigToMldev(apiClient, fromObject, parentObject) {
6340
+ function liveConnectConfigToMldev$1(apiClient, fromObject, parentObject) {
6337
6341
  const toObject = {};
6338
6342
  const fromGenerationConfig = getValueByPath(fromObject, [
6339
6343
  'generationConfig',
@@ -6377,7 +6381,7 @@ function liveConnectConfigToMldev(apiClient, fromObject, parentObject) {
6377
6381
  }
6378
6382
  const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);
6379
6383
  if (parentObject !== undefined && fromSpeechConfig != null) {
6380
- setValueByPath(parentObject, ['setup', 'generationConfig', 'speechConfig'], speechConfigToMldev$1(apiClient, tLiveSpeechConfig(apiClient, fromSpeechConfig)));
6384
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'speechConfig'], speechConfigToMldev$2(apiClient, tLiveSpeechConfig(apiClient, fromSpeechConfig)));
6381
6385
  }
6382
6386
  const fromEnableAffectiveDialog = getValueByPath(fromObject, [
6383
6387
  'enableAffectiveDialog',
@@ -6389,14 +6393,14 @@ function liveConnectConfigToMldev(apiClient, fromObject, parentObject) {
6389
6393
  'systemInstruction',
6390
6394
  ]);
6391
6395
  if (parentObject !== undefined && fromSystemInstruction != null) {
6392
- setValueByPath(parentObject, ['setup', 'systemInstruction'], contentToMldev$1(apiClient, tContent(apiClient, fromSystemInstruction)));
6396
+ setValueByPath(parentObject, ['setup', 'systemInstruction'], contentToMldev$2(apiClient, tContent(apiClient, fromSystemInstruction)));
6393
6397
  }
6394
6398
  const fromTools = getValueByPath(fromObject, ['tools']);
6395
6399
  if (parentObject !== undefined && fromTools != null) {
6396
6400
  let transformedList = tTools(apiClient, fromTools);
6397
6401
  if (Array.isArray(transformedList)) {
6398
6402
  transformedList = transformedList.map((item) => {
6399
- return toolToMldev$1(apiClient, tTool(apiClient, item));
6403
+ return toolToMldev$2(apiClient, tTool(apiClient, item));
6400
6404
  });
6401
6405
  }
6402
6406
  setValueByPath(parentObject, ['setup', 'tools'], transformedList);
@@ -6405,35 +6409,35 @@ function liveConnectConfigToMldev(apiClient, fromObject, parentObject) {
6405
6409
  'sessionResumption',
6406
6410
  ]);
6407
6411
  if (parentObject !== undefined && fromSessionResumption != null) {
6408
- setValueByPath(parentObject, ['setup', 'sessionResumption'], sessionResumptionConfigToMldev(apiClient, fromSessionResumption));
6412
+ setValueByPath(parentObject, ['setup', 'sessionResumption'], sessionResumptionConfigToMldev$1(apiClient, fromSessionResumption));
6409
6413
  }
6410
6414
  const fromInputAudioTranscription = getValueByPath(fromObject, [
6411
6415
  'inputAudioTranscription',
6412
6416
  ]);
6413
6417
  if (parentObject !== undefined && fromInputAudioTranscription != null) {
6414
- setValueByPath(parentObject, ['setup', 'inputAudioTranscription'], audioTranscriptionConfigToMldev());
6418
+ setValueByPath(parentObject, ['setup', 'inputAudioTranscription'], audioTranscriptionConfigToMldev$1());
6415
6419
  }
6416
6420
  const fromOutputAudioTranscription = getValueByPath(fromObject, [
6417
6421
  'outputAudioTranscription',
6418
6422
  ]);
6419
6423
  if (parentObject !== undefined && fromOutputAudioTranscription != null) {
6420
- setValueByPath(parentObject, ['setup', 'outputAudioTranscription'], audioTranscriptionConfigToMldev());
6424
+ setValueByPath(parentObject, ['setup', 'outputAudioTranscription'], audioTranscriptionConfigToMldev$1());
6421
6425
  }
6422
6426
  const fromRealtimeInputConfig = getValueByPath(fromObject, [
6423
6427
  'realtimeInputConfig',
6424
6428
  ]);
6425
6429
  if (parentObject !== undefined && fromRealtimeInputConfig != null) {
6426
- setValueByPath(parentObject, ['setup', 'realtimeInputConfig'], realtimeInputConfigToMldev(apiClient, fromRealtimeInputConfig));
6430
+ setValueByPath(parentObject, ['setup', 'realtimeInputConfig'], realtimeInputConfigToMldev$1(apiClient, fromRealtimeInputConfig));
6427
6431
  }
6428
6432
  const fromContextWindowCompression = getValueByPath(fromObject, [
6429
6433
  'contextWindowCompression',
6430
6434
  ]);
6431
6435
  if (parentObject !== undefined && fromContextWindowCompression != null) {
6432
- setValueByPath(parentObject, ['setup', 'contextWindowCompression'], contextWindowCompressionConfigToMldev(apiClient, fromContextWindowCompression));
6436
+ setValueByPath(parentObject, ['setup', 'contextWindowCompression'], contextWindowCompressionConfigToMldev$1(apiClient, fromContextWindowCompression));
6433
6437
  }
6434
6438
  const fromProactivity = getValueByPath(fromObject, ['proactivity']);
6435
6439
  if (parentObject !== undefined && fromProactivity != null) {
6436
- setValueByPath(parentObject, ['setup', 'proactivity'], proactivityConfigToMldev(apiClient, fromProactivity));
6440
+ setValueByPath(parentObject, ['setup', 'proactivity'], proactivityConfigToMldev$1(apiClient, fromProactivity));
6437
6441
  }
6438
6442
  return toObject;
6439
6443
  }
@@ -6549,7 +6553,7 @@ function liveConnectParametersToMldev(apiClient, fromObject) {
6549
6553
  }
6550
6554
  const fromConfig = getValueByPath(fromObject, ['config']);
6551
6555
  if (fromConfig != null) {
6552
- setValueByPath(toObject, ['config'], liveConnectConfigToMldev(apiClient, fromConfig, toObject));
6556
+ setValueByPath(toObject, ['config'], liveConnectConfigToMldev$1(apiClient, fromConfig, toObject));
6553
6557
  }
6554
6558
  return toObject;
6555
6559
  }
@@ -6726,12 +6730,6 @@ function liveMusicGenerationConfigToMldev(apiClient, fromObject) {
6726
6730
  if (fromOnlyBassAndDrums != null) {
6727
6731
  setValueByPath(toObject, ['onlyBassAndDrums'], fromOnlyBassAndDrums);
6728
6732
  }
6729
- const fromMusicGenerationMode = getValueByPath(fromObject, [
6730
- 'musicGenerationMode',
6731
- ]);
6732
- if (fromMusicGenerationMode != null) {
6733
- setValueByPath(toObject, ['musicGenerationMode'], fromMusicGenerationMode);
6734
- }
6735
6733
  return toObject;
6736
6734
  }
6737
6735
  function liveMusicSetConfigParametersToMldev(apiClient, fromObject) {
@@ -6910,6 +6908,12 @@ function partFromMldev$1(apiClient, fromObject) {
6910
6908
  if (fromFileData != null) {
6911
6909
  setValueByPath(toObject, ['fileData'], fileDataFromMldev$1(apiClient, fromFileData));
6912
6910
  }
6911
+ const fromThoughtSignature = getValueByPath(fromObject, [
6912
+ 'thoughtSignature',
6913
+ ]);
6914
+ if (fromThoughtSignature != null) {
6915
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
6916
+ }
6913
6917
  const fromCodeExecutionResult = getValueByPath(fromObject, [
6914
6918
  'codeExecutionResult',
6915
6919
  ]);
@@ -6958,6 +6962,12 @@ function partFromVertex$1(apiClient, fromObject) {
6958
6962
  if (fromFileData != null) {
6959
6963
  setValueByPath(toObject, ['fileData'], fileDataFromVertex$1(apiClient, fromFileData));
6960
6964
  }
6965
+ const fromThoughtSignature = getValueByPath(fromObject, [
6966
+ 'thoughtSignature',
6967
+ ]);
6968
+ if (fromThoughtSignature != null) {
6969
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
6970
+ }
6961
6971
  const fromCodeExecutionResult = getValueByPath(fromObject, [
6962
6972
  'codeExecutionResult',
6963
6973
  ]);
@@ -7656,12 +7666,6 @@ function liveMusicGenerationConfigFromMldev(apiClient, fromObject) {
7656
7666
  if (fromOnlyBassAndDrums != null) {
7657
7667
  setValueByPath(toObject, ['onlyBassAndDrums'], fromOnlyBassAndDrums);
7658
7668
  }
7659
- const fromMusicGenerationMode = getValueByPath(fromObject, [
7660
- 'musicGenerationMode',
7661
- ]);
7662
- if (fromMusicGenerationMode != null) {
7663
- setValueByPath(toObject, ['musicGenerationMode'], fromMusicGenerationMode);
7664
- }
7665
7669
  return toObject;
7666
7670
  }
7667
7671
  function liveMusicSourceMetadataFromMldev(apiClient, fromObject) {
@@ -7754,7 +7758,7 @@ function liveMusicServerMessageFromMldev(apiClient, fromObject) {
7754
7758
  * Copyright 2025 Google LLC
7755
7759
  * SPDX-License-Identifier: Apache-2.0
7756
7760
  */
7757
- function videoMetadataToMldev(apiClient, fromObject) {
7761
+ function videoMetadataToMldev$1(apiClient, fromObject) {
7758
7762
  const toObject = {};
7759
7763
  const fromFps = getValueByPath(fromObject, ['fps']);
7760
7764
  if (fromFps != null) {
@@ -7770,7 +7774,7 @@ function videoMetadataToMldev(apiClient, fromObject) {
7770
7774
  }
7771
7775
  return toObject;
7772
7776
  }
7773
- function blobToMldev(apiClient, fromObject) {
7777
+ function blobToMldev$1(apiClient, fromObject) {
7774
7778
  const toObject = {};
7775
7779
  if (getValueByPath(fromObject, ['displayName']) !== undefined) {
7776
7780
  throw new Error('displayName parameter is not supported in Gemini API.');
@@ -7785,7 +7789,7 @@ function blobToMldev(apiClient, fromObject) {
7785
7789
  }
7786
7790
  return toObject;
7787
7791
  }
7788
- function fileDataToMldev(apiClient, fromObject) {
7792
+ function fileDataToMldev$1(apiClient, fromObject) {
7789
7793
  const toObject = {};
7790
7794
  if (getValueByPath(fromObject, ['displayName']) !== undefined) {
7791
7795
  throw new Error('displayName parameter is not supported in Gemini API.');
@@ -7800,13 +7804,13 @@ function fileDataToMldev(apiClient, fromObject) {
7800
7804
  }
7801
7805
  return toObject;
7802
7806
  }
7803
- function partToMldev(apiClient, fromObject) {
7807
+ function partToMldev$1(apiClient, fromObject) {
7804
7808
  const toObject = {};
7805
7809
  const fromVideoMetadata = getValueByPath(fromObject, [
7806
7810
  'videoMetadata',
7807
7811
  ]);
7808
7812
  if (fromVideoMetadata != null) {
7809
- setValueByPath(toObject, ['videoMetadata'], videoMetadataToMldev(apiClient, fromVideoMetadata));
7813
+ setValueByPath(toObject, ['videoMetadata'], videoMetadataToMldev$1(apiClient, fromVideoMetadata));
7810
7814
  }
7811
7815
  const fromThought = getValueByPath(fromObject, ['thought']);
7812
7816
  if (fromThought != null) {
@@ -7814,11 +7818,17 @@ function partToMldev(apiClient, fromObject) {
7814
7818
  }
7815
7819
  const fromInlineData = getValueByPath(fromObject, ['inlineData']);
7816
7820
  if (fromInlineData != null) {
7817
- setValueByPath(toObject, ['inlineData'], blobToMldev(apiClient, fromInlineData));
7821
+ setValueByPath(toObject, ['inlineData'], blobToMldev$1(apiClient, fromInlineData));
7818
7822
  }
7819
7823
  const fromFileData = getValueByPath(fromObject, ['fileData']);
7820
7824
  if (fromFileData != null) {
7821
- setValueByPath(toObject, ['fileData'], fileDataToMldev(apiClient, fromFileData));
7825
+ setValueByPath(toObject, ['fileData'], fileDataToMldev$1(apiClient, fromFileData));
7826
+ }
7827
+ const fromThoughtSignature = getValueByPath(fromObject, [
7828
+ 'thoughtSignature',
7829
+ ]);
7830
+ if (fromThoughtSignature != null) {
7831
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
7822
7832
  }
7823
7833
  const fromCodeExecutionResult = getValueByPath(fromObject, [
7824
7834
  'codeExecutionResult',
@@ -7848,14 +7858,14 @@ function partToMldev(apiClient, fromObject) {
7848
7858
  }
7849
7859
  return toObject;
7850
7860
  }
7851
- function contentToMldev(apiClient, fromObject) {
7861
+ function contentToMldev$1(apiClient, fromObject) {
7852
7862
  const toObject = {};
7853
7863
  const fromParts = getValueByPath(fromObject, ['parts']);
7854
7864
  if (fromParts != null) {
7855
7865
  let transformedList = fromParts;
7856
7866
  if (Array.isArray(transformedList)) {
7857
7867
  transformedList = transformedList.map((item) => {
7858
- return partToMldev(apiClient, item);
7868
+ return partToMldev$1(apiClient, item);
7859
7869
  });
7860
7870
  }
7861
7871
  setValueByPath(toObject, ['parts'], transformedList);
@@ -7979,7 +7989,7 @@ function safetySettingToMldev(apiClient, fromObject) {
7979
7989
  }
7980
7990
  return toObject;
7981
7991
  }
7982
- function functionDeclarationToMldev(apiClient, fromObject) {
7992
+ function functionDeclarationToMldev$1(apiClient, fromObject) {
7983
7993
  const toObject = {};
7984
7994
  const fromBehavior = getValueByPath(fromObject, ['behavior']);
7985
7995
  if (fromBehavior != null) {
@@ -8003,7 +8013,7 @@ function functionDeclarationToMldev(apiClient, fromObject) {
8003
8013
  }
8004
8014
  return toObject;
8005
8015
  }
8006
- function intervalToMldev(apiClient, fromObject) {
8016
+ function intervalToMldev$1(apiClient, fromObject) {
8007
8017
  const toObject = {};
8008
8018
  const fromStartTime = getValueByPath(fromObject, ['startTime']);
8009
8019
  if (fromStartTime != null) {
@@ -8015,17 +8025,17 @@ function intervalToMldev(apiClient, fromObject) {
8015
8025
  }
8016
8026
  return toObject;
8017
8027
  }
8018
- function googleSearchToMldev(apiClient, fromObject) {
8028
+ function googleSearchToMldev$1(apiClient, fromObject) {
8019
8029
  const toObject = {};
8020
8030
  const fromTimeRangeFilter = getValueByPath(fromObject, [
8021
8031
  'timeRangeFilter',
8022
8032
  ]);
8023
8033
  if (fromTimeRangeFilter != null) {
8024
- setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev(apiClient, fromTimeRangeFilter));
8034
+ setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev$1(apiClient, fromTimeRangeFilter));
8025
8035
  }
8026
8036
  return toObject;
8027
8037
  }
8028
- function dynamicRetrievalConfigToMldev(apiClient, fromObject) {
8038
+ function dynamicRetrievalConfigToMldev$1(apiClient, fromObject) {
8029
8039
  const toObject = {};
8030
8040
  const fromMode = getValueByPath(fromObject, ['mode']);
8031
8041
  if (fromMode != null) {
@@ -8039,21 +8049,21 @@ function dynamicRetrievalConfigToMldev(apiClient, fromObject) {
8039
8049
  }
8040
8050
  return toObject;
8041
8051
  }
8042
- function googleSearchRetrievalToMldev(apiClient, fromObject) {
8052
+ function googleSearchRetrievalToMldev$1(apiClient, fromObject) {
8043
8053
  const toObject = {};
8044
8054
  const fromDynamicRetrievalConfig = getValueByPath(fromObject, [
8045
8055
  'dynamicRetrievalConfig',
8046
8056
  ]);
8047
8057
  if (fromDynamicRetrievalConfig != null) {
8048
- setValueByPath(toObject, ['dynamicRetrievalConfig'], dynamicRetrievalConfigToMldev(apiClient, fromDynamicRetrievalConfig));
8058
+ setValueByPath(toObject, ['dynamicRetrievalConfig'], dynamicRetrievalConfigToMldev$1(apiClient, fromDynamicRetrievalConfig));
8049
8059
  }
8050
8060
  return toObject;
8051
8061
  }
8052
- function urlContextToMldev() {
8062
+ function urlContextToMldev$1() {
8053
8063
  const toObject = {};
8054
8064
  return toObject;
8055
8065
  }
8056
- function toolToMldev(apiClient, fromObject) {
8066
+ function toolToMldev$1(apiClient, fromObject) {
8057
8067
  const toObject = {};
8058
8068
  const fromFunctionDeclarations = getValueByPath(fromObject, [
8059
8069
  'functionDeclarations',
@@ -8062,7 +8072,7 @@ function toolToMldev(apiClient, fromObject) {
8062
8072
  let transformedList = fromFunctionDeclarations;
8063
8073
  if (Array.isArray(transformedList)) {
8064
8074
  transformedList = transformedList.map((item) => {
8065
- return functionDeclarationToMldev(apiClient, item);
8075
+ return functionDeclarationToMldev$1(apiClient, item);
8066
8076
  });
8067
8077
  }
8068
8078
  setValueByPath(toObject, ['functionDeclarations'], transformedList);
@@ -8072,13 +8082,13 @@ function toolToMldev(apiClient, fromObject) {
8072
8082
  }
8073
8083
  const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
8074
8084
  if (fromGoogleSearch != null) {
8075
- setValueByPath(toObject, ['googleSearch'], googleSearchToMldev(apiClient, fromGoogleSearch));
8085
+ setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$1(apiClient, fromGoogleSearch));
8076
8086
  }
8077
8087
  const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
8078
8088
  'googleSearchRetrieval',
8079
8089
  ]);
8080
8090
  if (fromGoogleSearchRetrieval != null) {
8081
- setValueByPath(toObject, ['googleSearchRetrieval'], googleSearchRetrievalToMldev(apiClient, fromGoogleSearchRetrieval));
8091
+ setValueByPath(toObject, ['googleSearchRetrieval'], googleSearchRetrievalToMldev$1(apiClient, fromGoogleSearchRetrieval));
8082
8092
  }
8083
8093
  if (getValueByPath(fromObject, ['enterpriseWebSearch']) !== undefined) {
8084
8094
  throw new Error('enterpriseWebSearch parameter is not supported in Gemini API.');
@@ -8088,7 +8098,7 @@ function toolToMldev(apiClient, fromObject) {
8088
8098
  }
8089
8099
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
8090
8100
  if (fromUrlContext != null) {
8091
- setValueByPath(toObject, ['urlContext'], urlContextToMldev());
8101
+ setValueByPath(toObject, ['urlContext'], urlContextToMldev$1());
8092
8102
  }
8093
8103
  const fromCodeExecution = getValueByPath(fromObject, [
8094
8104
  'codeExecution',
@@ -8152,7 +8162,7 @@ function toolConfigToMldev(apiClient, fromObject) {
8152
8162
  }
8153
8163
  return toObject;
8154
8164
  }
8155
- function prebuiltVoiceConfigToMldev(apiClient, fromObject) {
8165
+ function prebuiltVoiceConfigToMldev$1(apiClient, fromObject) {
8156
8166
  const toObject = {};
8157
8167
  const fromVoiceName = getValueByPath(fromObject, ['voiceName']);
8158
8168
  if (fromVoiceName != null) {
@@ -8160,17 +8170,17 @@ function prebuiltVoiceConfigToMldev(apiClient, fromObject) {
8160
8170
  }
8161
8171
  return toObject;
8162
8172
  }
8163
- function voiceConfigToMldev(apiClient, fromObject) {
8173
+ function voiceConfigToMldev$1(apiClient, fromObject) {
8164
8174
  const toObject = {};
8165
8175
  const fromPrebuiltVoiceConfig = getValueByPath(fromObject, [
8166
8176
  'prebuiltVoiceConfig',
8167
8177
  ]);
8168
8178
  if (fromPrebuiltVoiceConfig != null) {
8169
- setValueByPath(toObject, ['prebuiltVoiceConfig'], prebuiltVoiceConfigToMldev(apiClient, fromPrebuiltVoiceConfig));
8179
+ setValueByPath(toObject, ['prebuiltVoiceConfig'], prebuiltVoiceConfigToMldev$1(apiClient, fromPrebuiltVoiceConfig));
8170
8180
  }
8171
8181
  return toObject;
8172
8182
  }
8173
- function speakerVoiceConfigToMldev(apiClient, fromObject) {
8183
+ function speakerVoiceConfigToMldev$1(apiClient, fromObject) {
8174
8184
  const toObject = {};
8175
8185
  const fromSpeaker = getValueByPath(fromObject, ['speaker']);
8176
8186
  if (fromSpeaker != null) {
@@ -8178,11 +8188,11 @@ function speakerVoiceConfigToMldev(apiClient, fromObject) {
8178
8188
  }
8179
8189
  const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
8180
8190
  if (fromVoiceConfig != null) {
8181
- setValueByPath(toObject, ['voiceConfig'], voiceConfigToMldev(apiClient, fromVoiceConfig));
8191
+ setValueByPath(toObject, ['voiceConfig'], voiceConfigToMldev$1(apiClient, fromVoiceConfig));
8182
8192
  }
8183
8193
  return toObject;
8184
8194
  }
8185
- function multiSpeakerVoiceConfigToMldev(apiClient, fromObject) {
8195
+ function multiSpeakerVoiceConfigToMldev$1(apiClient, fromObject) {
8186
8196
  const toObject = {};
8187
8197
  const fromSpeakerVoiceConfigs = getValueByPath(fromObject, [
8188
8198
  'speakerVoiceConfigs',
@@ -8191,24 +8201,24 @@ function multiSpeakerVoiceConfigToMldev(apiClient, fromObject) {
8191
8201
  let transformedList = fromSpeakerVoiceConfigs;
8192
8202
  if (Array.isArray(transformedList)) {
8193
8203
  transformedList = transformedList.map((item) => {
8194
- return speakerVoiceConfigToMldev(apiClient, item);
8204
+ return speakerVoiceConfigToMldev$1(apiClient, item);
8195
8205
  });
8196
8206
  }
8197
8207
  setValueByPath(toObject, ['speakerVoiceConfigs'], transformedList);
8198
8208
  }
8199
8209
  return toObject;
8200
8210
  }
8201
- function speechConfigToMldev(apiClient, fromObject) {
8211
+ function speechConfigToMldev$1(apiClient, fromObject) {
8202
8212
  const toObject = {};
8203
8213
  const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
8204
8214
  if (fromVoiceConfig != null) {
8205
- setValueByPath(toObject, ['voiceConfig'], voiceConfigToMldev(apiClient, fromVoiceConfig));
8215
+ setValueByPath(toObject, ['voiceConfig'], voiceConfigToMldev$1(apiClient, fromVoiceConfig));
8206
8216
  }
8207
8217
  const fromMultiSpeakerVoiceConfig = getValueByPath(fromObject, [
8208
8218
  'multiSpeakerVoiceConfig',
8209
8219
  ]);
8210
8220
  if (fromMultiSpeakerVoiceConfig != null) {
8211
- setValueByPath(toObject, ['multiSpeakerVoiceConfig'], multiSpeakerVoiceConfigToMldev(apiClient, fromMultiSpeakerVoiceConfig));
8221
+ setValueByPath(toObject, ['multiSpeakerVoiceConfig'], multiSpeakerVoiceConfigToMldev$1(apiClient, fromMultiSpeakerVoiceConfig));
8212
8222
  }
8213
8223
  const fromLanguageCode = getValueByPath(fromObject, ['languageCode']);
8214
8224
  if (fromLanguageCode != null) {
@@ -8238,7 +8248,7 @@ function generateContentConfigToMldev(apiClient, fromObject, parentObject) {
8238
8248
  'systemInstruction',
8239
8249
  ]);
8240
8250
  if (parentObject !== undefined && fromSystemInstruction != null) {
8241
- setValueByPath(parentObject, ['systemInstruction'], contentToMldev(apiClient, tContent(apiClient, fromSystemInstruction)));
8251
+ setValueByPath(parentObject, ['systemInstruction'], contentToMldev$1(apiClient, tContent(apiClient, fromSystemInstruction)));
8242
8252
  }
8243
8253
  const fromTemperature = getValueByPath(fromObject, ['temperature']);
8244
8254
  if (fromTemperature != null) {
@@ -8331,7 +8341,7 @@ function generateContentConfigToMldev(apiClient, fromObject, parentObject) {
8331
8341
  let transformedList = tTools(apiClient, fromTools);
8332
8342
  if (Array.isArray(transformedList)) {
8333
8343
  transformedList = transformedList.map((item) => {
8334
- return toolToMldev(apiClient, tTool(apiClient, item));
8344
+ return toolToMldev$1(apiClient, tTool(apiClient, item));
8335
8345
  });
8336
8346
  }
8337
8347
  setValueByPath(parentObject, ['tools'], transformedList);
@@ -8363,7 +8373,7 @@ function generateContentConfigToMldev(apiClient, fromObject, parentObject) {
8363
8373
  }
8364
8374
  const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);
8365
8375
  if (fromSpeechConfig != null) {
8366
- setValueByPath(toObject, ['speechConfig'], speechConfigToMldev(apiClient, tSpeechConfig(apiClient, fromSpeechConfig)));
8376
+ setValueByPath(toObject, ['speechConfig'], speechConfigToMldev$1(apiClient, tSpeechConfig(apiClient, fromSpeechConfig)));
8367
8377
  }
8368
8378
  if (getValueByPath(fromObject, ['audioTimestamp']) !== undefined) {
8369
8379
  throw new Error('audioTimestamp parameter is not supported in Gemini API.');
@@ -8387,7 +8397,7 @@ function generateContentParametersToMldev(apiClient, fromObject) {
8387
8397
  let transformedList = tContents(apiClient, fromContents);
8388
8398
  if (Array.isArray(transformedList)) {
8389
8399
  transformedList = transformedList.map((item) => {
8390
- return contentToMldev(apiClient, item);
8400
+ return contentToMldev$1(apiClient, item);
8391
8401
  });
8392
8402
  }
8393
8403
  setValueByPath(toObject, ['contents'], transformedList);
@@ -8639,7 +8649,7 @@ function countTokensParametersToMldev(apiClient, fromObject) {
8639
8649
  let transformedList = tContents(apiClient, fromContents);
8640
8650
  if (Array.isArray(transformedList)) {
8641
8651
  transformedList = transformedList.map((item) => {
8642
- return contentToMldev(apiClient, item);
8652
+ return contentToMldev$1(apiClient, item);
8643
8653
  });
8644
8654
  }
8645
8655
  setValueByPath(toObject, ['contents'], transformedList);
@@ -8713,6 +8723,9 @@ function generateVideosConfigToMldev(apiClient, fromObject, parentObject) {
8713
8723
  if (getValueByPath(fromObject, ['enhancePrompt']) !== undefined) {
8714
8724
  throw new Error('enhancePrompt parameter is not supported in Gemini API.');
8715
8725
  }
8726
+ if (getValueByPath(fromObject, ['generateAudio']) !== undefined) {
8727
+ throw new Error('generateAudio parameter is not supported in Gemini API.');
8728
+ }
8716
8729
  return toObject;
8717
8730
  }
8718
8731
  function generateVideosParametersToMldev(apiClient, fromObject) {
@@ -8803,6 +8816,12 @@ function partToVertex(apiClient, fromObject) {
8803
8816
  if (fromFileData != null) {
8804
8817
  setValueByPath(toObject, ['fileData'], fileDataToVertex(apiClient, fromFileData));
8805
8818
  }
8819
+ const fromThoughtSignature = getValueByPath(fromObject, [
8820
+ 'thoughtSignature',
8821
+ ]);
8822
+ if (fromThoughtSignature != null) {
8823
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
8824
+ }
8806
8825
  const fromCodeExecutionResult = getValueByPath(fromObject, [
8807
8826
  'codeExecutionResult',
8808
8827
  ]);
@@ -10052,6 +10071,12 @@ function generateVideosConfigToVertex(apiClient, fromObject, parentObject) {
10052
10071
  if (parentObject !== undefined && fromEnhancePrompt != null) {
10053
10072
  setValueByPath(parentObject, ['parameters', 'enhancePrompt'], fromEnhancePrompt);
10054
10073
  }
10074
+ const fromGenerateAudio = getValueByPath(fromObject, [
10075
+ 'generateAudio',
10076
+ ]);
10077
+ if (parentObject !== undefined && fromGenerateAudio != null) {
10078
+ setValueByPath(parentObject, ['parameters', 'generateAudio'], fromGenerateAudio);
10079
+ }
10055
10080
  return toObject;
10056
10081
  }
10057
10082
  function generateVideosParametersToVertex(apiClient, fromObject) {
@@ -10134,6 +10159,12 @@ function partFromMldev(apiClient, fromObject) {
10134
10159
  if (fromFileData != null) {
10135
10160
  setValueByPath(toObject, ['fileData'], fileDataFromMldev(apiClient, fromFileData));
10136
10161
  }
10162
+ const fromThoughtSignature = getValueByPath(fromObject, [
10163
+ 'thoughtSignature',
10164
+ ]);
10165
+ if (fromThoughtSignature != null) {
10166
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
10167
+ }
10137
10168
  const fromCodeExecutionResult = getValueByPath(fromObject, [
10138
10169
  'codeExecutionResult',
10139
10170
  ]);
@@ -10652,6 +10683,12 @@ function partFromVertex(apiClient, fromObject) {
10652
10683
  if (fromFileData != null) {
10653
10684
  setValueByPath(toObject, ['fileData'], fileDataFromVertex(apiClient, fromFileData));
10654
10685
  }
10686
+ const fromThoughtSignature = getValueByPath(fromObject, [
10687
+ 'thoughtSignature',
10688
+ ]);
10689
+ if (fromThoughtSignature != null) {
10690
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
10691
+ }
10655
10692
  const fromCodeExecutionResult = getValueByPath(fromObject, [
10656
10693
  'codeExecutionResult',
10657
10694
  ]);
@@ -11208,9 +11245,6 @@ function hasMcpToolUsage(tools) {
11208
11245
  function setMcpUsageHeader(headers) {
11209
11246
  var _a;
11210
11247
  const existingHeader = (_a = headers[GOOGLE_API_CLIENT_HEADER]) !== null && _a !== void 0 ? _a : '';
11211
- if (existingHeader.includes(MCP_LABEL)) {
11212
- return;
11213
- }
11214
11248
  headers[GOOGLE_API_CLIENT_HEADER] = (existingHeader + ` ${MCP_LABEL}`).trimStart();
11215
11249
  }
11216
11250
  // Checks whether the list of tools contains any MCP clients. Will return true
@@ -11227,11 +11261,9 @@ function hasNonMcpTools(params) {
11227
11261
  }
11228
11262
  // Returns true if the object is a MCP CallableTool, otherwise false.
11229
11263
  function isMcpCallableTool(object) {
11230
- // TODO: b/418266406 - Add a more robust check for the MCP CallableTool.
11231
11264
  return (object !== null &&
11232
11265
  typeof object === 'object' &&
11233
- 'tool' in object &&
11234
- 'callTool' in object);
11266
+ object instanceof McpCallableTool);
11235
11267
  }
11236
11268
  // List all tools from the MCP client.
11237
11269
  function listAllTools(mcpClient, maxTools = 100) {
@@ -11711,7 +11743,14 @@ class Live {
11711
11743
  }
11712
11744
  else {
11713
11745
  const apiKey = this.apiClient.getApiKey();
11714
- url = `${websocketBaseUrl}/ws/google.ai.generativelanguage.${apiVersion}.GenerativeService.BidiGenerateContent?key=${apiKey}`;
11746
+ let method = 'BidiGenerateContent';
11747
+ let keyName = 'key';
11748
+ if (apiKey === null || apiKey === void 0 ? void 0 : apiKey.startsWith('auth_tokens/')) {
11749
+ console.warn('Warning: Ephemeral token support is experimental and may change in future versions.');
11750
+ method = 'BidiGenerateContentConstrained';
11751
+ keyName = 'access_token';
11752
+ }
11753
+ url = `${websocketBaseUrl}/ws/google.ai.generativelanguage.${apiVersion}.GenerativeService.${method}?${keyName}=${apiKey}`;
11715
11754
  }
11716
11755
  let onopenResolve = () => { };
11717
11756
  const onopenPromise = new Promise((resolve) => {
@@ -11817,7 +11856,7 @@ class Session {
11817
11856
  contents = contents.map((item) => contentToVertex(apiClient, item));
11818
11857
  }
11819
11858
  else {
11820
- contents = contents.map((item) => contentToMldev(apiClient, item));
11859
+ contents = contents.map((item) => contentToMldev$1(apiClient, item));
11821
11860
  }
11822
11861
  }
11823
11862
  catch (_a) {
@@ -12115,7 +12154,6 @@ class Models extends BaseModule {
12115
12154
  if (!hasMcpClientTools(params) || shouldDisableAfc(params.config)) {
12116
12155
  return await this.generateContentInternal(transformedParams);
12117
12156
  }
12118
- // TODO: b/418266406 - Improve the check for CallableTools and Tools.
12119
12157
  if (hasNonMcpTools(params)) {
12120
12158
  throw new Error('Automatic function calling with CallableTools and Tools is not yet supported.');
12121
12159
  }
@@ -13670,43 +13708,878 @@ class Operations extends BaseModule {
13670
13708
  * Copyright 2025 Google LLC
13671
13709
  * SPDX-License-Identifier: Apache-2.0
13672
13710
  */
13673
- function getTuningJobParametersToMldev(apiClient, fromObject) {
13711
+ function prebuiltVoiceConfigToMldev(apiClient, fromObject) {
13674
13712
  const toObject = {};
13675
- const fromName = getValueByPath(fromObject, ['name']);
13676
- if (fromName != null) {
13677
- setValueByPath(toObject, ['_url', 'name'], fromName);
13678
- }
13679
- const fromConfig = getValueByPath(fromObject, ['config']);
13680
- if (fromConfig != null) {
13681
- setValueByPath(toObject, ['config'], fromConfig);
13713
+ const fromVoiceName = getValueByPath(fromObject, ['voiceName']);
13714
+ if (fromVoiceName != null) {
13715
+ setValueByPath(toObject, ['voiceName'], fromVoiceName);
13682
13716
  }
13683
13717
  return toObject;
13684
13718
  }
13685
- function listTuningJobsConfigToMldev(apiClient, fromObject, parentObject) {
13719
+ function voiceConfigToMldev(apiClient, fromObject) {
13686
13720
  const toObject = {};
13687
- const fromPageSize = getValueByPath(fromObject, ['pageSize']);
13688
- if (parentObject !== undefined && fromPageSize != null) {
13689
- setValueByPath(parentObject, ['_query', 'pageSize'], fromPageSize);
13721
+ const fromPrebuiltVoiceConfig = getValueByPath(fromObject, [
13722
+ 'prebuiltVoiceConfig',
13723
+ ]);
13724
+ if (fromPrebuiltVoiceConfig != null) {
13725
+ setValueByPath(toObject, ['prebuiltVoiceConfig'], prebuiltVoiceConfigToMldev(apiClient, fromPrebuiltVoiceConfig));
13690
13726
  }
13691
- const fromPageToken = getValueByPath(fromObject, ['pageToken']);
13692
- if (parentObject !== undefined && fromPageToken != null) {
13693
- setValueByPath(parentObject, ['_query', 'pageToken'], fromPageToken);
13727
+ return toObject;
13728
+ }
13729
+ function speakerVoiceConfigToMldev(apiClient, fromObject) {
13730
+ const toObject = {};
13731
+ const fromSpeaker = getValueByPath(fromObject, ['speaker']);
13732
+ if (fromSpeaker != null) {
13733
+ setValueByPath(toObject, ['speaker'], fromSpeaker);
13694
13734
  }
13695
- const fromFilter = getValueByPath(fromObject, ['filter']);
13696
- if (parentObject !== undefined && fromFilter != null) {
13697
- setValueByPath(parentObject, ['_query', 'filter'], fromFilter);
13735
+ const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
13736
+ if (fromVoiceConfig != null) {
13737
+ setValueByPath(toObject, ['voiceConfig'], voiceConfigToMldev(apiClient, fromVoiceConfig));
13698
13738
  }
13699
13739
  return toObject;
13700
13740
  }
13701
- function listTuningJobsParametersToMldev(apiClient, fromObject) {
13741
+ function multiSpeakerVoiceConfigToMldev(apiClient, fromObject) {
13702
13742
  const toObject = {};
13703
- const fromConfig = getValueByPath(fromObject, ['config']);
13704
- if (fromConfig != null) {
13705
- setValueByPath(toObject, ['config'], listTuningJobsConfigToMldev(apiClient, fromConfig, toObject));
13743
+ const fromSpeakerVoiceConfigs = getValueByPath(fromObject, [
13744
+ 'speakerVoiceConfigs',
13745
+ ]);
13746
+ if (fromSpeakerVoiceConfigs != null) {
13747
+ let transformedList = fromSpeakerVoiceConfigs;
13748
+ if (Array.isArray(transformedList)) {
13749
+ transformedList = transformedList.map((item) => {
13750
+ return speakerVoiceConfigToMldev(apiClient, item);
13751
+ });
13752
+ }
13753
+ setValueByPath(toObject, ['speakerVoiceConfigs'], transformedList);
13706
13754
  }
13707
13755
  return toObject;
13708
13756
  }
13709
- function tuningExampleToMldev(apiClient, fromObject) {
13757
+ function speechConfigToMldev(apiClient, fromObject) {
13758
+ const toObject = {};
13759
+ const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
13760
+ if (fromVoiceConfig != null) {
13761
+ setValueByPath(toObject, ['voiceConfig'], voiceConfigToMldev(apiClient, fromVoiceConfig));
13762
+ }
13763
+ const fromMultiSpeakerVoiceConfig = getValueByPath(fromObject, [
13764
+ 'multiSpeakerVoiceConfig',
13765
+ ]);
13766
+ if (fromMultiSpeakerVoiceConfig != null) {
13767
+ setValueByPath(toObject, ['multiSpeakerVoiceConfig'], multiSpeakerVoiceConfigToMldev(apiClient, fromMultiSpeakerVoiceConfig));
13768
+ }
13769
+ const fromLanguageCode = getValueByPath(fromObject, ['languageCode']);
13770
+ if (fromLanguageCode != null) {
13771
+ setValueByPath(toObject, ['languageCode'], fromLanguageCode);
13772
+ }
13773
+ return toObject;
13774
+ }
13775
+ function videoMetadataToMldev(apiClient, fromObject) {
13776
+ const toObject = {};
13777
+ const fromFps = getValueByPath(fromObject, ['fps']);
13778
+ if (fromFps != null) {
13779
+ setValueByPath(toObject, ['fps'], fromFps);
13780
+ }
13781
+ const fromEndOffset = getValueByPath(fromObject, ['endOffset']);
13782
+ if (fromEndOffset != null) {
13783
+ setValueByPath(toObject, ['endOffset'], fromEndOffset);
13784
+ }
13785
+ const fromStartOffset = getValueByPath(fromObject, ['startOffset']);
13786
+ if (fromStartOffset != null) {
13787
+ setValueByPath(toObject, ['startOffset'], fromStartOffset);
13788
+ }
13789
+ return toObject;
13790
+ }
13791
+ function blobToMldev(apiClient, fromObject) {
13792
+ const toObject = {};
13793
+ if (getValueByPath(fromObject, ['displayName']) !== undefined) {
13794
+ throw new Error('displayName parameter is not supported in Gemini API.');
13795
+ }
13796
+ const fromData = getValueByPath(fromObject, ['data']);
13797
+ if (fromData != null) {
13798
+ setValueByPath(toObject, ['data'], fromData);
13799
+ }
13800
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
13801
+ if (fromMimeType != null) {
13802
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
13803
+ }
13804
+ return toObject;
13805
+ }
13806
+ function fileDataToMldev(apiClient, fromObject) {
13807
+ const toObject = {};
13808
+ if (getValueByPath(fromObject, ['displayName']) !== undefined) {
13809
+ throw new Error('displayName parameter is not supported in Gemini API.');
13810
+ }
13811
+ const fromFileUri = getValueByPath(fromObject, ['fileUri']);
13812
+ if (fromFileUri != null) {
13813
+ setValueByPath(toObject, ['fileUri'], fromFileUri);
13814
+ }
13815
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
13816
+ if (fromMimeType != null) {
13817
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
13818
+ }
13819
+ return toObject;
13820
+ }
13821
+ function partToMldev(apiClient, fromObject) {
13822
+ const toObject = {};
13823
+ const fromVideoMetadata = getValueByPath(fromObject, [
13824
+ 'videoMetadata',
13825
+ ]);
13826
+ if (fromVideoMetadata != null) {
13827
+ setValueByPath(toObject, ['videoMetadata'], videoMetadataToMldev(apiClient, fromVideoMetadata));
13828
+ }
13829
+ const fromThought = getValueByPath(fromObject, ['thought']);
13830
+ if (fromThought != null) {
13831
+ setValueByPath(toObject, ['thought'], fromThought);
13832
+ }
13833
+ const fromInlineData = getValueByPath(fromObject, ['inlineData']);
13834
+ if (fromInlineData != null) {
13835
+ setValueByPath(toObject, ['inlineData'], blobToMldev(apiClient, fromInlineData));
13836
+ }
13837
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
13838
+ if (fromFileData != null) {
13839
+ setValueByPath(toObject, ['fileData'], fileDataToMldev(apiClient, fromFileData));
13840
+ }
13841
+ const fromThoughtSignature = getValueByPath(fromObject, [
13842
+ 'thoughtSignature',
13843
+ ]);
13844
+ if (fromThoughtSignature != null) {
13845
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
13846
+ }
13847
+ const fromCodeExecutionResult = getValueByPath(fromObject, [
13848
+ 'codeExecutionResult',
13849
+ ]);
13850
+ if (fromCodeExecutionResult != null) {
13851
+ setValueByPath(toObject, ['codeExecutionResult'], fromCodeExecutionResult);
13852
+ }
13853
+ const fromExecutableCode = getValueByPath(fromObject, [
13854
+ 'executableCode',
13855
+ ]);
13856
+ if (fromExecutableCode != null) {
13857
+ setValueByPath(toObject, ['executableCode'], fromExecutableCode);
13858
+ }
13859
+ const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
13860
+ if (fromFunctionCall != null) {
13861
+ setValueByPath(toObject, ['functionCall'], fromFunctionCall);
13862
+ }
13863
+ const fromFunctionResponse = getValueByPath(fromObject, [
13864
+ 'functionResponse',
13865
+ ]);
13866
+ if (fromFunctionResponse != null) {
13867
+ setValueByPath(toObject, ['functionResponse'], fromFunctionResponse);
13868
+ }
13869
+ const fromText = getValueByPath(fromObject, ['text']);
13870
+ if (fromText != null) {
13871
+ setValueByPath(toObject, ['text'], fromText);
13872
+ }
13873
+ return toObject;
13874
+ }
13875
+ function contentToMldev(apiClient, fromObject) {
13876
+ const toObject = {};
13877
+ const fromParts = getValueByPath(fromObject, ['parts']);
13878
+ if (fromParts != null) {
13879
+ let transformedList = fromParts;
13880
+ if (Array.isArray(transformedList)) {
13881
+ transformedList = transformedList.map((item) => {
13882
+ return partToMldev(apiClient, item);
13883
+ });
13884
+ }
13885
+ setValueByPath(toObject, ['parts'], transformedList);
13886
+ }
13887
+ const fromRole = getValueByPath(fromObject, ['role']);
13888
+ if (fromRole != null) {
13889
+ setValueByPath(toObject, ['role'], fromRole);
13890
+ }
13891
+ return toObject;
13892
+ }
13893
+ function functionDeclarationToMldev(apiClient, fromObject) {
13894
+ const toObject = {};
13895
+ const fromBehavior = getValueByPath(fromObject, ['behavior']);
13896
+ if (fromBehavior != null) {
13897
+ setValueByPath(toObject, ['behavior'], fromBehavior);
13898
+ }
13899
+ const fromDescription = getValueByPath(fromObject, ['description']);
13900
+ if (fromDescription != null) {
13901
+ setValueByPath(toObject, ['description'], fromDescription);
13902
+ }
13903
+ const fromName = getValueByPath(fromObject, ['name']);
13904
+ if (fromName != null) {
13905
+ setValueByPath(toObject, ['name'], fromName);
13906
+ }
13907
+ const fromParameters = getValueByPath(fromObject, ['parameters']);
13908
+ if (fromParameters != null) {
13909
+ setValueByPath(toObject, ['parameters'], fromParameters);
13910
+ }
13911
+ const fromResponse = getValueByPath(fromObject, ['response']);
13912
+ if (fromResponse != null) {
13913
+ setValueByPath(toObject, ['response'], fromResponse);
13914
+ }
13915
+ return toObject;
13916
+ }
13917
+ function intervalToMldev(apiClient, fromObject) {
13918
+ const toObject = {};
13919
+ const fromStartTime = getValueByPath(fromObject, ['startTime']);
13920
+ if (fromStartTime != null) {
13921
+ setValueByPath(toObject, ['startTime'], fromStartTime);
13922
+ }
13923
+ const fromEndTime = getValueByPath(fromObject, ['endTime']);
13924
+ if (fromEndTime != null) {
13925
+ setValueByPath(toObject, ['endTime'], fromEndTime);
13926
+ }
13927
+ return toObject;
13928
+ }
13929
+ function googleSearchToMldev(apiClient, fromObject) {
13930
+ const toObject = {};
13931
+ const fromTimeRangeFilter = getValueByPath(fromObject, [
13932
+ 'timeRangeFilter',
13933
+ ]);
13934
+ if (fromTimeRangeFilter != null) {
13935
+ setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev(apiClient, fromTimeRangeFilter));
13936
+ }
13937
+ return toObject;
13938
+ }
13939
+ function dynamicRetrievalConfigToMldev(apiClient, fromObject) {
13940
+ const toObject = {};
13941
+ const fromMode = getValueByPath(fromObject, ['mode']);
13942
+ if (fromMode != null) {
13943
+ setValueByPath(toObject, ['mode'], fromMode);
13944
+ }
13945
+ const fromDynamicThreshold = getValueByPath(fromObject, [
13946
+ 'dynamicThreshold',
13947
+ ]);
13948
+ if (fromDynamicThreshold != null) {
13949
+ setValueByPath(toObject, ['dynamicThreshold'], fromDynamicThreshold);
13950
+ }
13951
+ return toObject;
13952
+ }
13953
+ function googleSearchRetrievalToMldev(apiClient, fromObject) {
13954
+ const toObject = {};
13955
+ const fromDynamicRetrievalConfig = getValueByPath(fromObject, [
13956
+ 'dynamicRetrievalConfig',
13957
+ ]);
13958
+ if (fromDynamicRetrievalConfig != null) {
13959
+ setValueByPath(toObject, ['dynamicRetrievalConfig'], dynamicRetrievalConfigToMldev(apiClient, fromDynamicRetrievalConfig));
13960
+ }
13961
+ return toObject;
13962
+ }
13963
+ function urlContextToMldev() {
13964
+ const toObject = {};
13965
+ return toObject;
13966
+ }
13967
+ function toolToMldev(apiClient, fromObject) {
13968
+ const toObject = {};
13969
+ const fromFunctionDeclarations = getValueByPath(fromObject, [
13970
+ 'functionDeclarations',
13971
+ ]);
13972
+ if (fromFunctionDeclarations != null) {
13973
+ let transformedList = fromFunctionDeclarations;
13974
+ if (Array.isArray(transformedList)) {
13975
+ transformedList = transformedList.map((item) => {
13976
+ return functionDeclarationToMldev(apiClient, item);
13977
+ });
13978
+ }
13979
+ setValueByPath(toObject, ['functionDeclarations'], transformedList);
13980
+ }
13981
+ if (getValueByPath(fromObject, ['retrieval']) !== undefined) {
13982
+ throw new Error('retrieval parameter is not supported in Gemini API.');
13983
+ }
13984
+ const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
13985
+ if (fromGoogleSearch != null) {
13986
+ setValueByPath(toObject, ['googleSearch'], googleSearchToMldev(apiClient, fromGoogleSearch));
13987
+ }
13988
+ const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
13989
+ 'googleSearchRetrieval',
13990
+ ]);
13991
+ if (fromGoogleSearchRetrieval != null) {
13992
+ setValueByPath(toObject, ['googleSearchRetrieval'], googleSearchRetrievalToMldev(apiClient, fromGoogleSearchRetrieval));
13993
+ }
13994
+ if (getValueByPath(fromObject, ['enterpriseWebSearch']) !== undefined) {
13995
+ throw new Error('enterpriseWebSearch parameter is not supported in Gemini API.');
13996
+ }
13997
+ if (getValueByPath(fromObject, ['googleMaps']) !== undefined) {
13998
+ throw new Error('googleMaps parameter is not supported in Gemini API.');
13999
+ }
14000
+ const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
14001
+ if (fromUrlContext != null) {
14002
+ setValueByPath(toObject, ['urlContext'], urlContextToMldev());
14003
+ }
14004
+ const fromCodeExecution = getValueByPath(fromObject, [
14005
+ 'codeExecution',
14006
+ ]);
14007
+ if (fromCodeExecution != null) {
14008
+ setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
14009
+ }
14010
+ return toObject;
14011
+ }
14012
+ function sessionResumptionConfigToMldev(apiClient, fromObject) {
14013
+ const toObject = {};
14014
+ const fromHandle = getValueByPath(fromObject, ['handle']);
14015
+ if (fromHandle != null) {
14016
+ setValueByPath(toObject, ['handle'], fromHandle);
14017
+ }
14018
+ if (getValueByPath(fromObject, ['transparent']) !== undefined) {
14019
+ throw new Error('transparent parameter is not supported in Gemini API.');
14020
+ }
14021
+ return toObject;
14022
+ }
14023
+ function audioTranscriptionConfigToMldev() {
14024
+ const toObject = {};
14025
+ return toObject;
14026
+ }
14027
+ function automaticActivityDetectionToMldev(apiClient, fromObject) {
14028
+ const toObject = {};
14029
+ const fromDisabled = getValueByPath(fromObject, ['disabled']);
14030
+ if (fromDisabled != null) {
14031
+ setValueByPath(toObject, ['disabled'], fromDisabled);
14032
+ }
14033
+ const fromStartOfSpeechSensitivity = getValueByPath(fromObject, [
14034
+ 'startOfSpeechSensitivity',
14035
+ ]);
14036
+ if (fromStartOfSpeechSensitivity != null) {
14037
+ setValueByPath(toObject, ['startOfSpeechSensitivity'], fromStartOfSpeechSensitivity);
14038
+ }
14039
+ const fromEndOfSpeechSensitivity = getValueByPath(fromObject, [
14040
+ 'endOfSpeechSensitivity',
14041
+ ]);
14042
+ if (fromEndOfSpeechSensitivity != null) {
14043
+ setValueByPath(toObject, ['endOfSpeechSensitivity'], fromEndOfSpeechSensitivity);
14044
+ }
14045
+ const fromPrefixPaddingMs = getValueByPath(fromObject, [
14046
+ 'prefixPaddingMs',
14047
+ ]);
14048
+ if (fromPrefixPaddingMs != null) {
14049
+ setValueByPath(toObject, ['prefixPaddingMs'], fromPrefixPaddingMs);
14050
+ }
14051
+ const fromSilenceDurationMs = getValueByPath(fromObject, [
14052
+ 'silenceDurationMs',
14053
+ ]);
14054
+ if (fromSilenceDurationMs != null) {
14055
+ setValueByPath(toObject, ['silenceDurationMs'], fromSilenceDurationMs);
14056
+ }
14057
+ return toObject;
14058
+ }
14059
+ function realtimeInputConfigToMldev(apiClient, fromObject) {
14060
+ const toObject = {};
14061
+ const fromAutomaticActivityDetection = getValueByPath(fromObject, [
14062
+ 'automaticActivityDetection',
14063
+ ]);
14064
+ if (fromAutomaticActivityDetection != null) {
14065
+ setValueByPath(toObject, ['automaticActivityDetection'], automaticActivityDetectionToMldev(apiClient, fromAutomaticActivityDetection));
14066
+ }
14067
+ const fromActivityHandling = getValueByPath(fromObject, [
14068
+ 'activityHandling',
14069
+ ]);
14070
+ if (fromActivityHandling != null) {
14071
+ setValueByPath(toObject, ['activityHandling'], fromActivityHandling);
14072
+ }
14073
+ const fromTurnCoverage = getValueByPath(fromObject, ['turnCoverage']);
14074
+ if (fromTurnCoverage != null) {
14075
+ setValueByPath(toObject, ['turnCoverage'], fromTurnCoverage);
14076
+ }
14077
+ return toObject;
14078
+ }
14079
+ function slidingWindowToMldev(apiClient, fromObject) {
14080
+ const toObject = {};
14081
+ const fromTargetTokens = getValueByPath(fromObject, ['targetTokens']);
14082
+ if (fromTargetTokens != null) {
14083
+ setValueByPath(toObject, ['targetTokens'], fromTargetTokens);
14084
+ }
14085
+ return toObject;
14086
+ }
14087
+ function contextWindowCompressionConfigToMldev(apiClient, fromObject) {
14088
+ const toObject = {};
14089
+ const fromTriggerTokens = getValueByPath(fromObject, [
14090
+ 'triggerTokens',
14091
+ ]);
14092
+ if (fromTriggerTokens != null) {
14093
+ setValueByPath(toObject, ['triggerTokens'], fromTriggerTokens);
14094
+ }
14095
+ const fromSlidingWindow = getValueByPath(fromObject, [
14096
+ 'slidingWindow',
14097
+ ]);
14098
+ if (fromSlidingWindow != null) {
14099
+ setValueByPath(toObject, ['slidingWindow'], slidingWindowToMldev(apiClient, fromSlidingWindow));
14100
+ }
14101
+ return toObject;
14102
+ }
14103
+ function proactivityConfigToMldev(apiClient, fromObject) {
14104
+ const toObject = {};
14105
+ const fromProactiveAudio = getValueByPath(fromObject, [
14106
+ 'proactiveAudio',
14107
+ ]);
14108
+ if (fromProactiveAudio != null) {
14109
+ setValueByPath(toObject, ['proactiveAudio'], fromProactiveAudio);
14110
+ }
14111
+ return toObject;
14112
+ }
14113
+ function liveConnectConfigToMldev(apiClient, fromObject, parentObject) {
14114
+ const toObject = {};
14115
+ const fromGenerationConfig = getValueByPath(fromObject, [
14116
+ 'generationConfig',
14117
+ ]);
14118
+ if (parentObject !== undefined && fromGenerationConfig != null) {
14119
+ setValueByPath(parentObject, ['setup', 'generationConfig'], fromGenerationConfig);
14120
+ }
14121
+ const fromResponseModalities = getValueByPath(fromObject, [
14122
+ 'responseModalities',
14123
+ ]);
14124
+ if (parentObject !== undefined && fromResponseModalities != null) {
14125
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'responseModalities'], fromResponseModalities);
14126
+ }
14127
+ const fromTemperature = getValueByPath(fromObject, ['temperature']);
14128
+ if (parentObject !== undefined && fromTemperature != null) {
14129
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'temperature'], fromTemperature);
14130
+ }
14131
+ const fromTopP = getValueByPath(fromObject, ['topP']);
14132
+ if (parentObject !== undefined && fromTopP != null) {
14133
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'topP'], fromTopP);
14134
+ }
14135
+ const fromTopK = getValueByPath(fromObject, ['topK']);
14136
+ if (parentObject !== undefined && fromTopK != null) {
14137
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'topK'], fromTopK);
14138
+ }
14139
+ const fromMaxOutputTokens = getValueByPath(fromObject, [
14140
+ 'maxOutputTokens',
14141
+ ]);
14142
+ if (parentObject !== undefined && fromMaxOutputTokens != null) {
14143
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'maxOutputTokens'], fromMaxOutputTokens);
14144
+ }
14145
+ const fromMediaResolution = getValueByPath(fromObject, [
14146
+ 'mediaResolution',
14147
+ ]);
14148
+ if (parentObject !== undefined && fromMediaResolution != null) {
14149
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'mediaResolution'], fromMediaResolution);
14150
+ }
14151
+ const fromSeed = getValueByPath(fromObject, ['seed']);
14152
+ if (parentObject !== undefined && fromSeed != null) {
14153
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'seed'], fromSeed);
14154
+ }
14155
+ const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);
14156
+ if (parentObject !== undefined && fromSpeechConfig != null) {
14157
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'speechConfig'], speechConfigToMldev(apiClient, tLiveSpeechConfig(apiClient, fromSpeechConfig)));
14158
+ }
14159
+ const fromEnableAffectiveDialog = getValueByPath(fromObject, [
14160
+ 'enableAffectiveDialog',
14161
+ ]);
14162
+ if (parentObject !== undefined && fromEnableAffectiveDialog != null) {
14163
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'enableAffectiveDialog'], fromEnableAffectiveDialog);
14164
+ }
14165
+ const fromSystemInstruction = getValueByPath(fromObject, [
14166
+ 'systemInstruction',
14167
+ ]);
14168
+ if (parentObject !== undefined && fromSystemInstruction != null) {
14169
+ setValueByPath(parentObject, ['setup', 'systemInstruction'], contentToMldev(apiClient, tContent(apiClient, fromSystemInstruction)));
14170
+ }
14171
+ const fromTools = getValueByPath(fromObject, ['tools']);
14172
+ if (parentObject !== undefined && fromTools != null) {
14173
+ let transformedList = tTools(apiClient, fromTools);
14174
+ if (Array.isArray(transformedList)) {
14175
+ transformedList = transformedList.map((item) => {
14176
+ return toolToMldev(apiClient, tTool(apiClient, item));
14177
+ });
14178
+ }
14179
+ setValueByPath(parentObject, ['setup', 'tools'], transformedList);
14180
+ }
14181
+ const fromSessionResumption = getValueByPath(fromObject, [
14182
+ 'sessionResumption',
14183
+ ]);
14184
+ if (parentObject !== undefined && fromSessionResumption != null) {
14185
+ setValueByPath(parentObject, ['setup', 'sessionResumption'], sessionResumptionConfigToMldev(apiClient, fromSessionResumption));
14186
+ }
14187
+ const fromInputAudioTranscription = getValueByPath(fromObject, [
14188
+ 'inputAudioTranscription',
14189
+ ]);
14190
+ if (parentObject !== undefined && fromInputAudioTranscription != null) {
14191
+ setValueByPath(parentObject, ['setup', 'inputAudioTranscription'], audioTranscriptionConfigToMldev());
14192
+ }
14193
+ const fromOutputAudioTranscription = getValueByPath(fromObject, [
14194
+ 'outputAudioTranscription',
14195
+ ]);
14196
+ if (parentObject !== undefined && fromOutputAudioTranscription != null) {
14197
+ setValueByPath(parentObject, ['setup', 'outputAudioTranscription'], audioTranscriptionConfigToMldev());
14198
+ }
14199
+ const fromRealtimeInputConfig = getValueByPath(fromObject, [
14200
+ 'realtimeInputConfig',
14201
+ ]);
14202
+ if (parentObject !== undefined && fromRealtimeInputConfig != null) {
14203
+ setValueByPath(parentObject, ['setup', 'realtimeInputConfig'], realtimeInputConfigToMldev(apiClient, fromRealtimeInputConfig));
14204
+ }
14205
+ const fromContextWindowCompression = getValueByPath(fromObject, [
14206
+ 'contextWindowCompression',
14207
+ ]);
14208
+ if (parentObject !== undefined && fromContextWindowCompression != null) {
14209
+ setValueByPath(parentObject, ['setup', 'contextWindowCompression'], contextWindowCompressionConfigToMldev(apiClient, fromContextWindowCompression));
14210
+ }
14211
+ const fromProactivity = getValueByPath(fromObject, ['proactivity']);
14212
+ if (parentObject !== undefined && fromProactivity != null) {
14213
+ setValueByPath(parentObject, ['setup', 'proactivity'], proactivityConfigToMldev(apiClient, fromProactivity));
14214
+ }
14215
+ return toObject;
14216
+ }
14217
+ function liveConnectConstraintsToMldev(apiClient, fromObject) {
14218
+ const toObject = {};
14219
+ const fromModel = getValueByPath(fromObject, ['model']);
14220
+ if (fromModel != null) {
14221
+ setValueByPath(toObject, ['setup', 'model'], tModel(apiClient, fromModel));
14222
+ }
14223
+ const fromConfig = getValueByPath(fromObject, ['config']);
14224
+ if (fromConfig != null) {
14225
+ setValueByPath(toObject, ['config'], liveConnectConfigToMldev(apiClient, fromConfig, toObject));
14226
+ }
14227
+ return toObject;
14228
+ }
14229
+ function createAuthTokenConfigToMldev(apiClient, fromObject, parentObject) {
14230
+ const toObject = {};
14231
+ const fromExpireTime = getValueByPath(fromObject, ['expireTime']);
14232
+ if (parentObject !== undefined && fromExpireTime != null) {
14233
+ setValueByPath(parentObject, ['expireTime'], fromExpireTime);
14234
+ }
14235
+ const fromNewSessionExpireTime = getValueByPath(fromObject, [
14236
+ 'newSessionExpireTime',
14237
+ ]);
14238
+ if (parentObject !== undefined && fromNewSessionExpireTime != null) {
14239
+ setValueByPath(parentObject, ['newSessionExpireTime'], fromNewSessionExpireTime);
14240
+ }
14241
+ const fromUses = getValueByPath(fromObject, ['uses']);
14242
+ if (parentObject !== undefined && fromUses != null) {
14243
+ setValueByPath(parentObject, ['uses'], fromUses);
14244
+ }
14245
+ const fromLiveConnectConstraints = getValueByPath(fromObject, [
14246
+ 'liveConnectConstraints',
14247
+ ]);
14248
+ if (parentObject !== undefined && fromLiveConnectConstraints != null) {
14249
+ setValueByPath(parentObject, ['bidiGenerateContentSetup'], liveConnectConstraintsToMldev(apiClient, fromLiveConnectConstraints));
14250
+ }
14251
+ const fromLockAdditionalFields = getValueByPath(fromObject, [
14252
+ 'lockAdditionalFields',
14253
+ ]);
14254
+ if (parentObject !== undefined && fromLockAdditionalFields != null) {
14255
+ setValueByPath(parentObject, ['fieldMask'], fromLockAdditionalFields);
14256
+ }
14257
+ return toObject;
14258
+ }
14259
+ function createAuthTokenParametersToMldev(apiClient, fromObject) {
14260
+ const toObject = {};
14261
+ const fromConfig = getValueByPath(fromObject, ['config']);
14262
+ if (fromConfig != null) {
14263
+ setValueByPath(toObject, ['config'], createAuthTokenConfigToMldev(apiClient, fromConfig, toObject));
14264
+ }
14265
+ return toObject;
14266
+ }
14267
+ function authTokenFromMldev(apiClient, fromObject) {
14268
+ const toObject = {};
14269
+ const fromName = getValueByPath(fromObject, ['name']);
14270
+ if (fromName != null) {
14271
+ setValueByPath(toObject, ['name'], fromName);
14272
+ }
14273
+ return toObject;
14274
+ }
14275
+
14276
+ /**
14277
+ * @license
14278
+ * Copyright 2025 Google LLC
14279
+ * SPDX-License-Identifier: Apache-2.0
14280
+ */
14281
+ /**
14282
+ * Returns a comma-separated list of field masks from a given object.
14283
+ *
14284
+ * @param setup The object to extract field masks from.
14285
+ * @return A comma-separated list of field masks.
14286
+ */
14287
+ function getFieldMasks(setup) {
14288
+ const fields = [];
14289
+ for (const key in setup) {
14290
+ if (Object.prototype.hasOwnProperty.call(setup, key)) {
14291
+ const value = setup[key];
14292
+ // 2nd layer, recursively get field masks see TODO(b/418290100)
14293
+ if (typeof value === 'object' &&
14294
+ value != null &&
14295
+ Object.keys(value).length > 0) {
14296
+ const field = Object.keys(value).map((kk) => `${key}.${kk}`);
14297
+ fields.push(...field);
14298
+ }
14299
+ else {
14300
+ fields.push(key); // 1st layer
14301
+ }
14302
+ }
14303
+ }
14304
+ return fields.join(',');
14305
+ }
14306
+ /**
14307
+ * Converts bidiGenerateContentSetup.
14308
+ * @param requestDict - The request dictionary.
14309
+ * @param config - The configuration object.
14310
+ * @return - The modified request dictionary.
14311
+ */
14312
+ function convertBidiSetupToTokenSetup(requestDict, config) {
14313
+ // Convert bidiGenerateContentSetup from bidiGenerateContentSetup.setup.
14314
+ let setupForMaskGeneration = null;
14315
+ const bidiGenerateContentSetupValue = requestDict['bidiGenerateContentSetup'];
14316
+ if (typeof bidiGenerateContentSetupValue === 'object' &&
14317
+ bidiGenerateContentSetupValue !== null &&
14318
+ 'setup' in bidiGenerateContentSetupValue) {
14319
+ // Now we know bidiGenerateContentSetupValue is an object and has a 'setup'
14320
+ // property.
14321
+ const innerSetup = bidiGenerateContentSetupValue
14322
+ .setup;
14323
+ if (typeof innerSetup === 'object' && innerSetup !== null) {
14324
+ // Valid inner setup found.
14325
+ requestDict['bidiGenerateContentSetup'] = innerSetup;
14326
+ setupForMaskGeneration = innerSetup;
14327
+ }
14328
+ else {
14329
+ // `bidiGenerateContentSetupValue.setup` is not a valid object; treat as
14330
+ // if bidiGenerateContentSetup is invalid.
14331
+ delete requestDict['bidiGenerateContentSetup'];
14332
+ }
14333
+ }
14334
+ else if (bidiGenerateContentSetupValue !== undefined) {
14335
+ // `bidiGenerateContentSetup` exists but not in the expected
14336
+ // shape {setup: {...}}; treat as invalid.
14337
+ delete requestDict['bidiGenerateContentSetup'];
14338
+ }
14339
+ const preExistingFieldMask = requestDict['fieldMask'];
14340
+ // Handle mask generation setup.
14341
+ if (setupForMaskGeneration) {
14342
+ const generatedMaskFromBidi = getFieldMasks(setupForMaskGeneration);
14343
+ if (Array.isArray(config === null || config === void 0 ? void 0 : config.lockAdditionalFields) &&
14344
+ (config === null || config === void 0 ? void 0 : config.lockAdditionalFields.length) === 0) {
14345
+ // Case 1: lockAdditionalFields is an empty array. Lock only fields from
14346
+ // bidi setup.
14347
+ if (generatedMaskFromBidi) {
14348
+ // Only assign if mask is not empty
14349
+ requestDict['fieldMask'] = generatedMaskFromBidi;
14350
+ }
14351
+ else {
14352
+ delete requestDict['fieldMask']; // If mask is empty, effectively no
14353
+ // specific fields locked by bidi
14354
+ }
14355
+ }
14356
+ else if ((config === null || config === void 0 ? void 0 : config.lockAdditionalFields) &&
14357
+ config.lockAdditionalFields.length > 0 &&
14358
+ preExistingFieldMask !== null &&
14359
+ Array.isArray(preExistingFieldMask) &&
14360
+ preExistingFieldMask.length > 0) {
14361
+ // Case 2: Lock fields from bidi setup + additional fields
14362
+ // (preExistingFieldMask).
14363
+ const generationConfigFields = [
14364
+ 'temperature',
14365
+ 'topK',
14366
+ 'topP',
14367
+ 'maxOutputTokens',
14368
+ 'responseModalities',
14369
+ 'seed',
14370
+ 'speechConfig',
14371
+ ];
14372
+ let mappedFieldsFromPreExisting = [];
14373
+ if (preExistingFieldMask.length > 0) {
14374
+ mappedFieldsFromPreExisting = preExistingFieldMask.map((field) => {
14375
+ if (generationConfigFields.includes(field)) {
14376
+ return `generationConfig.${field}`;
14377
+ }
14378
+ return field; // Keep original field name if not in
14379
+ // generationConfigFields
14380
+ });
14381
+ }
14382
+ const finalMaskParts = [];
14383
+ if (generatedMaskFromBidi) {
14384
+ finalMaskParts.push(generatedMaskFromBidi);
14385
+ }
14386
+ if (mappedFieldsFromPreExisting.length > 0) {
14387
+ finalMaskParts.push(...mappedFieldsFromPreExisting);
14388
+ }
14389
+ if (finalMaskParts.length > 0) {
14390
+ requestDict['fieldMask'] = finalMaskParts.join(',');
14391
+ }
14392
+ else {
14393
+ // If no fields from bidi and no valid additional fields from
14394
+ // pre-existing mask.
14395
+ delete requestDict['fieldMask'];
14396
+ }
14397
+ }
14398
+ else {
14399
+ // Case 3: "Lock all fields" (meaning, don't send a field_mask, let server
14400
+ // defaults apply or all are mutable). This is hit if:
14401
+ // - `config.lockAdditionalFields` is undefined.
14402
+ // - `config.lockAdditionalFields` is non-empty, BUT
14403
+ // `preExistingFieldMask` is null, not a string, or an empty string.
14404
+ delete requestDict['fieldMask'];
14405
+ }
14406
+ }
14407
+ else {
14408
+ // No valid `bidiGenerateContentSetup` was found or extracted.
14409
+ // "Lock additional null fields if any".
14410
+ if (preExistingFieldMask !== null &&
14411
+ Array.isArray(preExistingFieldMask) &&
14412
+ preExistingFieldMask.length > 0) {
14413
+ // If there's a pre-existing field mask, it's a string, and it's not
14414
+ // empty, then we should lock all fields.
14415
+ requestDict['fieldMask'] = preExistingFieldMask.join(',');
14416
+ }
14417
+ else {
14418
+ delete requestDict['fieldMask'];
14419
+ }
14420
+ }
14421
+ return requestDict;
14422
+ }
14423
+ class Tokens extends BaseModule {
14424
+ constructor(apiClient) {
14425
+ super();
14426
+ this.apiClient = apiClient;
14427
+ }
14428
+ /**
14429
+ * Creates an ephemeral auth token resource.
14430
+ *
14431
+ * @experimental
14432
+ *
14433
+ * @remarks
14434
+ * Ephermeral auth tokens is only supported in the Gemini Developer API.
14435
+ * It can be used for the session connection to the Live constrained API.
14436
+ *
14437
+ * @param params - The parameters for the create request.
14438
+ * @return The created auth token.
14439
+ *
14440
+ * @example
14441
+ * ```ts
14442
+ * // Case 1: If LiveEphemeralParameters is unset, unlock LiveConnectConfig
14443
+ * // when using the token in Live API sessions. Each session connection can
14444
+ * // use a different configuration.
14445
+ * const config: CreateAuthTokenConfig = {
14446
+ * uses: 3,
14447
+ * expireTime: '2025-05-01T00:00:00Z',
14448
+ * }
14449
+ * const token = await ai.tokens.create(config);
14450
+ *
14451
+ * // Case 2: If LiveEphemeralParameters is set, lock all fields in
14452
+ * // LiveConnectConfig when using the token in Live API sessions. For
14453
+ * // example, changing `outputAudioTranscription` in the Live API
14454
+ * // connection will be ignored by the API.
14455
+ * const config: CreateAuthTokenConfig =
14456
+ * uses: 3,
14457
+ * expireTime: '2025-05-01T00:00:00Z',
14458
+ * LiveEphemeralParameters: {
14459
+ * model: 'gemini-2.0-flash-001',
14460
+ * config: {
14461
+ * 'responseModalities': ['AUDIO'],
14462
+ * 'systemInstruction': 'Always answer in English.',
14463
+ * }
14464
+ * }
14465
+ * }
14466
+ * const token = await ai.tokens.create(config);
14467
+ *
14468
+ * // Case 3: If LiveEphemeralParameters is set and lockAdditionalFields is
14469
+ * // set, lock LiveConnectConfig with set and additional fields (e.g.
14470
+ * // responseModalities, systemInstruction, temperature in this example) when
14471
+ * // using the token in Live API sessions.
14472
+ * const config: CreateAuthTokenConfig =
14473
+ * uses: 3,
14474
+ * expireTime: '2025-05-01T00:00:00Z',
14475
+ * LiveEphemeralParameters: {
14476
+ * model: 'gemini-2.0-flash-001',
14477
+ * config: {
14478
+ * 'responseModalities': ['AUDIO'],
14479
+ * 'systemInstruction': 'Always answer in English.',
14480
+ * }
14481
+ * },
14482
+ * lockAdditionalFields: ['temperature'],
14483
+ * }
14484
+ * const token = await ai.tokens.create(config);
14485
+ *
14486
+ * // Case 4: If LiveEphemeralParameters is set and lockAdditionalFields is
14487
+ * // empty array, lock LiveConnectConfig with set fields (e.g.
14488
+ * // responseModalities, systemInstruction in this example) when using the
14489
+ * // token in Live API sessions.
14490
+ * const config: CreateAuthTokenConfig =
14491
+ * uses: 3,
14492
+ * expireTime: '2025-05-01T00:00:00Z',
14493
+ * LiveEphemeralParameters: {
14494
+ * model: 'gemini-2.0-flash-001',
14495
+ * config: {
14496
+ * 'responseModalities': ['AUDIO'],
14497
+ * 'systemInstruction': 'Always answer in English.',
14498
+ * }
14499
+ * },
14500
+ * lockAdditionalFields: [],
14501
+ * }
14502
+ * const token = await ai.tokens.create(config);
14503
+ * ```
14504
+ */
14505
+ async create(params) {
14506
+ var _a, _b;
14507
+ let response;
14508
+ let path = '';
14509
+ let queryParams = {};
14510
+ if (this.apiClient.isVertexAI()) {
14511
+ throw new Error('The client.tokens.create method is only supported by the Gemini Developer API.');
14512
+ }
14513
+ else {
14514
+ const body = createAuthTokenParametersToMldev(this.apiClient, params);
14515
+ path = formatMap('auth_tokens', body['_url']);
14516
+ queryParams = body['_query'];
14517
+ delete body['config'];
14518
+ delete body['_url'];
14519
+ delete body['_query'];
14520
+ const transformedBody = convertBidiSetupToTokenSetup(body, params.config);
14521
+ response = this.apiClient
14522
+ .request({
14523
+ path: path,
14524
+ queryParams: queryParams,
14525
+ body: JSON.stringify(transformedBody),
14526
+ httpMethod: 'POST',
14527
+ httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,
14528
+ abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
14529
+ })
14530
+ .then((httpResponse) => {
14531
+ return httpResponse.json();
14532
+ });
14533
+ return response.then((apiResponse) => {
14534
+ const resp = authTokenFromMldev(this.apiClient, apiResponse);
14535
+ return resp;
14536
+ });
14537
+ }
14538
+ }
14539
+ }
14540
+
14541
+ /**
14542
+ * @license
14543
+ * Copyright 2025 Google LLC
14544
+ * SPDX-License-Identifier: Apache-2.0
14545
+ */
14546
+ function getTuningJobParametersToMldev(apiClient, fromObject) {
14547
+ const toObject = {};
14548
+ const fromName = getValueByPath(fromObject, ['name']);
14549
+ if (fromName != null) {
14550
+ setValueByPath(toObject, ['_url', 'name'], fromName);
14551
+ }
14552
+ const fromConfig = getValueByPath(fromObject, ['config']);
14553
+ if (fromConfig != null) {
14554
+ setValueByPath(toObject, ['config'], fromConfig);
14555
+ }
14556
+ return toObject;
14557
+ }
14558
+ function listTuningJobsConfigToMldev(apiClient, fromObject, parentObject) {
14559
+ const toObject = {};
14560
+ const fromPageSize = getValueByPath(fromObject, ['pageSize']);
14561
+ if (parentObject !== undefined && fromPageSize != null) {
14562
+ setValueByPath(parentObject, ['_query', 'pageSize'], fromPageSize);
14563
+ }
14564
+ const fromPageToken = getValueByPath(fromObject, ['pageToken']);
14565
+ if (parentObject !== undefined && fromPageToken != null) {
14566
+ setValueByPath(parentObject, ['_query', 'pageToken'], fromPageToken);
14567
+ }
14568
+ const fromFilter = getValueByPath(fromObject, ['filter']);
14569
+ if (parentObject !== undefined && fromFilter != null) {
14570
+ setValueByPath(parentObject, ['_query', 'filter'], fromFilter);
14571
+ }
14572
+ return toObject;
14573
+ }
14574
+ function listTuningJobsParametersToMldev(apiClient, fromObject) {
14575
+ const toObject = {};
14576
+ const fromConfig = getValueByPath(fromObject, ['config']);
14577
+ if (fromConfig != null) {
14578
+ setValueByPath(toObject, ['config'], listTuningJobsConfigToMldev(apiClient, fromConfig, toObject));
14579
+ }
14580
+ return toObject;
14581
+ }
14582
+ function tuningExampleToMldev(apiClient, fromObject) {
13710
14583
  const toObject = {};
13711
14584
  const fromTextInput = getValueByPath(fromObject, ['textInput']);
13712
14585
  if (fromTextInput != null) {
@@ -14462,6 +15335,13 @@ class WebAuth {
14462
15335
  if (headers.get(GOOGLE_API_KEY_HEADER) !== null) {
14463
15336
  return;
14464
15337
  }
15338
+ if (this.apiKey.startsWith('auth_tokens/')) {
15339
+ throw new Error('Ephemeral tokens are only supported by the live API.');
15340
+ }
15341
+ // Check if API key is empty or null
15342
+ if (!this.apiKey) {
15343
+ throw new Error('API key is missing. Please provide a valid API key.');
15344
+ }
14465
15345
  headers.append(GOOGLE_API_KEY_HEADER, this.apiKey);
14466
15346
  }
14467
15347
  }
@@ -14529,9 +15409,10 @@ class GoogleGenAI {
14529
15409
  this.caches = new Caches(this.apiClient);
14530
15410
  this.files = new Files(this.apiClient);
14531
15411
  this.operations = new Operations(this.apiClient);
15412
+ this.authTokens = new Tokens(this.apiClient);
14532
15413
  this.tunings = new Tunings(this.apiClient);
14533
15414
  }
14534
15415
  }
14535
15416
 
14536
- export { ActivityHandling, AdapterSize, AuthType, Behavior, BlockedReason, Caches, Chat, Chats, ComputeTokensResponse, ControlReferenceImage, ControlReferenceType, CountTokensResponse, CreateFileResponse, DeleteCachedContentResponse, DeleteFileResponse, DeleteModelResponse, DynamicRetrievalConfigMode, EditImageResponse, EditMode, EmbedContentResponse, EndSensitivity, FeatureSelectionPreference, FileSource, FileState, Files, FinishReason, FunctionCallingConfigMode, FunctionResponse, FunctionResponseScheduling, GenerateContentResponse, GenerateContentResponsePromptFeedback, GenerateContentResponseUsageMetadata, GenerateImagesResponse, GenerateVideosResponse, GoogleGenAI, HarmBlockMethod, HarmBlockThreshold, HarmCategory, HarmProbability, HarmSeverity, HttpResponse, ImagePromptLanguage, JobState, Language, ListCachedContentsResponse, ListFilesResponse, ListModelsResponse, ListTuningJobsResponse, Live, LiveClientToolResponse, LiveMusicPlaybackControl, LiveMusicServerMessage, LiveSendToolResponseParameters, LiveServerMessage, MaskReferenceImage, MaskReferenceMode, MediaModality, MediaResolution, Modality, Mode, Models, MusicGenerationMode, Operations, Outcome, PagedItem, Pager, PersonGeneration, RawReferenceImage, ReplayResponse, SafetyFilterLevel, Scale, Session, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, TrafficType, TurnCoverage, Type, UpscaleImageResponse, UrlRetrievalStatus, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
15417
+ export { ActivityHandling, AdapterSize, AuthType, Behavior, BlockedReason, Caches, Chat, Chats, ComputeTokensResponse, ControlReferenceImage, ControlReferenceType, CountTokensResponse, CreateFileResponse, DeleteCachedContentResponse, DeleteFileResponse, DeleteModelResponse, DynamicRetrievalConfigMode, EditImageResponse, EditMode, EmbedContentResponse, EndSensitivity, FeatureSelectionPreference, FileSource, FileState, Files, FinishReason, FunctionCallingConfigMode, FunctionResponse, FunctionResponseScheduling, GenerateContentResponse, GenerateContentResponsePromptFeedback, GenerateContentResponseUsageMetadata, GenerateImagesResponse, GenerateVideosResponse, GoogleGenAI, HarmBlockMethod, HarmBlockThreshold, HarmCategory, HarmProbability, HarmSeverity, HttpResponse, ImagePromptLanguage, JobState, Language, ListCachedContentsResponse, ListFilesResponse, ListModelsResponse, ListTuningJobsResponse, Live, LiveClientToolResponse, LiveMusicPlaybackControl, LiveMusicServerMessage, LiveSendToolResponseParameters, LiveServerMessage, MaskReferenceImage, MaskReferenceMode, MediaModality, MediaResolution, Modality, Mode, Models, Operations, Outcome, PagedItem, Pager, PersonGeneration, RawReferenceImage, ReplayResponse, SafetyFilterLevel, Scale, Session, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, Tokens, TrafficType, TurnCoverage, Type, UpscaleImageResponse, UrlRetrievalStatus, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
14537
15418
  //# sourceMappingURL=index.mjs.map