@google/genai 2.10.0 → 2.11.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
@@ -802,7 +802,7 @@ var PhishBlockThreshold;
802
802
  */
803
803
  PhishBlockThreshold["BLOCK_ONLY_EXTREMELY_HIGH"] = "BLOCK_ONLY_EXTREMELY_HIGH";
804
804
  })(PhishBlockThreshold || (PhishBlockThreshold = {}));
805
- /** Specifies the function Behavior. Currently only non-blocking functions are supported. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method. */
805
+ /** Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method. */
806
806
  var Behavior;
807
807
  (function (Behavior) {
808
808
  /**
@@ -1316,6 +1316,110 @@ var Modality;
1316
1316
  */
1317
1317
  Modality["VIDEO"] = "VIDEO";
1318
1318
  })(Modality || (Modality = {}));
1319
+ /** Delivery mode for the generated content. */
1320
+ var Delivery;
1321
+ (function (Delivery) {
1322
+ /**
1323
+ * Default value. This value is unused.
1324
+ */
1325
+ Delivery["DELIVERY_UNSPECIFIED"] = "DELIVERY_UNSPECIFIED";
1326
+ /**
1327
+ * Generated bytes are returned inline in the response.
1328
+ */
1329
+ Delivery["INLINE"] = "INLINE";
1330
+ /**
1331
+ * Generated content is stored and a URI is returned.
1332
+ */
1333
+ Delivery["URI"] = "URI";
1334
+ })(Delivery || (Delivery = {}));
1335
+ /** The aspect ratio for the image output. */
1336
+ var AspectRatio;
1337
+ (function (AspectRatio) {
1338
+ /**
1339
+ * Default value. This value is unused.
1340
+ */
1341
+ AspectRatio["ASPECT_RATIO_UNSPECIFIED"] = "ASPECT_RATIO_UNSPECIFIED";
1342
+ /**
1343
+ * 1:1 aspect ratio.
1344
+ */
1345
+ AspectRatio["ASPECT_RATIO_ONE_BY_ONE"] = "ASPECT_RATIO_ONE_BY_ONE";
1346
+ /**
1347
+ * 2:3 aspect ratio.
1348
+ */
1349
+ AspectRatio["ASPECT_RATIO_TWO_BY_THREE"] = "ASPECT_RATIO_TWO_BY_THREE";
1350
+ /**
1351
+ * 3:2 aspect ratio.
1352
+ */
1353
+ AspectRatio["ASPECT_RATIO_THREE_BY_TWO"] = "ASPECT_RATIO_THREE_BY_TWO";
1354
+ /**
1355
+ * 3:4 aspect ratio.
1356
+ */
1357
+ AspectRatio["ASPECT_RATIO_THREE_BY_FOUR"] = "ASPECT_RATIO_THREE_BY_FOUR";
1358
+ /**
1359
+ * 4:3 aspect ratio.
1360
+ */
1361
+ AspectRatio["ASPECT_RATIO_FOUR_BY_THREE"] = "ASPECT_RATIO_FOUR_BY_THREE";
1362
+ /**
1363
+ * 4:5 aspect ratio.
1364
+ */
1365
+ AspectRatio["ASPECT_RATIO_FOUR_BY_FIVE"] = "ASPECT_RATIO_FOUR_BY_FIVE";
1366
+ /**
1367
+ * 5:4 aspect ratio.
1368
+ */
1369
+ AspectRatio["ASPECT_RATIO_FIVE_BY_FOUR"] = "ASPECT_RATIO_FIVE_BY_FOUR";
1370
+ /**
1371
+ * 9:16 aspect ratio.
1372
+ */
1373
+ AspectRatio["ASPECT_RATIO_NINE_BY_SIXTEEN"] = "ASPECT_RATIO_NINE_BY_SIXTEEN";
1374
+ /**
1375
+ * 16:9 aspect ratio.
1376
+ */
1377
+ AspectRatio["ASPECT_RATIO_SIXTEEN_BY_NINE"] = "ASPECT_RATIO_SIXTEEN_BY_NINE";
1378
+ /**
1379
+ * 21:9 aspect ratio.
1380
+ */
1381
+ AspectRatio["ASPECT_RATIO_TWENTY_ONE_BY_NINE"] = "ASPECT_RATIO_TWENTY_ONE_BY_NINE";
1382
+ /**
1383
+ * 1:8 aspect ratio.
1384
+ */
1385
+ AspectRatio["ASPECT_RATIO_ONE_BY_EIGHT"] = "ASPECT_RATIO_ONE_BY_EIGHT";
1386
+ /**
1387
+ * 8:1 aspect ratio.
1388
+ */
1389
+ AspectRatio["ASPECT_RATIO_EIGHT_BY_ONE"] = "ASPECT_RATIO_EIGHT_BY_ONE";
1390
+ /**
1391
+ * 1:4 aspect ratio.
1392
+ */
1393
+ AspectRatio["ASPECT_RATIO_ONE_BY_FOUR"] = "ASPECT_RATIO_ONE_BY_FOUR";
1394
+ /**
1395
+ * 4:1 aspect ratio.
1396
+ */
1397
+ AspectRatio["ASPECT_RATIO_FOUR_BY_ONE"] = "ASPECT_RATIO_FOUR_BY_ONE";
1398
+ })(AspectRatio || (AspectRatio = {}));
1399
+ /** The size of the image output. */
1400
+ var ImageSize;
1401
+ (function (ImageSize) {
1402
+ /**
1403
+ * Default value. This value is unused.
1404
+ */
1405
+ ImageSize["IMAGE_SIZE_UNSPECIFIED"] = "IMAGE_SIZE_UNSPECIFIED";
1406
+ /**
1407
+ * 512px image size.
1408
+ */
1409
+ ImageSize["IMAGE_SIZE_FIVE_TWELVE"] = "IMAGE_SIZE_FIVE_TWELVE";
1410
+ /**
1411
+ * 1K image size.
1412
+ */
1413
+ ImageSize["IMAGE_SIZE_ONE_K"] = "IMAGE_SIZE_ONE_K";
1414
+ /**
1415
+ * 2K image size.
1416
+ */
1417
+ ImageSize["IMAGE_SIZE_TWO_K"] = "IMAGE_SIZE_TWO_K";
1418
+ /**
1419
+ * 4K image size.
1420
+ */
1421
+ ImageSize["IMAGE_SIZE_FOUR_K"] = "IMAGE_SIZE_FOUR_K";
1422
+ })(ImageSize || (ImageSize = {}));
1319
1423
  /** Tuning mode. This enum is not supported in Gemini API. */
1320
1424
  var TuningMode;
1321
1425
  (function (TuningMode) {
@@ -1364,6 +1468,58 @@ var AdapterSize;
1364
1468
  */
1365
1469
  AdapterSize["ADAPTER_SIZE_THIRTY_TWO"] = "ADAPTER_SIZE_THIRTY_TWO";
1366
1470
  })(AdapterSize || (AdapterSize = {}));
1471
+ /** Defines the type for parsing sample response. This enum is not supported in Gemini API. */
1472
+ var ResponseParseType;
1473
+ (function (ResponseParseType) {
1474
+ /**
1475
+ * Default value. Fallback to IDENTITY
1476
+ */
1477
+ ResponseParseType["RESPONSE_PARSE_TYPE_UNSPECIFIED"] = "RESPONSE_PARSE_TYPE_UNSPECIFIED";
1478
+ /**
1479
+ * Returns the sample response as is.
1480
+ */
1481
+ ResponseParseType["IDENTITY"] = "IDENTITY";
1482
+ /**
1483
+ * Uses regex to extract the important part of sample response. Similar to [GoogleSQL](https://cloud.google.com/bigquery/docs/reference/standard-sql/string_functions#regexp_extract) `REGEX_EXTRACT(response, regex_extract_expression)`, but different in that if there are multiple matches, the last match will be returned.
1484
+ */
1485
+ ResponseParseType["REGEX_EXTRACT"] = "REGEX_EXTRACT";
1486
+ })(ResponseParseType || (ResponseParseType = {}));
1487
+ /** Match operation to use for evaluating rewards. This enum is not supported in Gemini API. */
1488
+ var MatchOperation;
1489
+ (function (MatchOperation) {
1490
+ /**
1491
+ * Default value. A user error will be returned if not set.
1492
+ */
1493
+ MatchOperation["MATCH_OPERATION_UNSPECIFIED"] = "MATCH_OPERATION_UNSPECIFIED";
1494
+ /**
1495
+ * Equivalent to [GoogleSQL](https://cloud.google.com/bigquery/docs/reference/standard-sql/string_functions#regexp_contains) `REGEX_CONTAINS(target, expression)`.
1496
+ */
1497
+ MatchOperation["REGEX_CONTAINS"] = "REGEX_CONTAINS";
1498
+ /**
1499
+ * The match operation returns `true` if expression is a substring of the target.
1500
+ */
1501
+ MatchOperation["PARTIAL_MATCH"] = "PARTIAL_MATCH";
1502
+ /**
1503
+ * The match operation returns `true` expression is an exact match of the target.
1504
+ */
1505
+ MatchOperation["EXACT_MATCH"] = "EXACT_MATCH";
1506
+ })(MatchOperation || (MatchOperation = {}));
1507
+ /** Represents how much to think for the tuning job. */
1508
+ var ReinforcementTuningThinkingLevel;
1509
+ (function (ReinforcementTuningThinkingLevel) {
1510
+ /**
1511
+ * Unspecified thinking level.
1512
+ */
1513
+ ReinforcementTuningThinkingLevel["REINFORCEMENT_TUNING_THINKING_LEVEL_UNSPECIFIED"] = "REINFORCEMENT_TUNING_THINKING_LEVEL_UNSPECIFIED";
1514
+ /**
1515
+ * Little to no thinking.
1516
+ */
1517
+ ReinforcementTuningThinkingLevel["MINIMAL"] = "MINIMAL";
1518
+ /**
1519
+ * High thinking level.
1520
+ */
1521
+ ReinforcementTuningThinkingLevel["HIGH"] = "HIGH";
1522
+ })(ReinforcementTuningThinkingLevel || (ReinforcementTuningThinkingLevel = {}));
1367
1523
  /** Job state. */
1368
1524
  var JobState;
1369
1525
  (function (JobState) {
@@ -1848,58 +2004,6 @@ var ImageResizeMode;
1848
2004
  */
1849
2005
  ImageResizeMode["PAD"] = "PAD";
1850
2006
  })(ImageResizeMode || (ImageResizeMode = {}));
1851
- /** Defines how to parse sample response. */
1852
- var ResponseParseType;
1853
- (function (ResponseParseType) {
1854
- /**
1855
- * Default value. This value is unused.
1856
- */
1857
- ResponseParseType["RESPONSE_PARSE_TYPE_UNSPECIFIED"] = "RESPONSE_PARSE_TYPE_UNSPECIFIED";
1858
- /**
1859
- * Use the sample response as is.
1860
- */
1861
- ResponseParseType["IDENTITY"] = "IDENTITY";
1862
- /**
1863
- * Use regex to extract the important part of sample response.
1864
- */
1865
- ResponseParseType["REGEX_EXTRACT"] = "REGEX_EXTRACT";
1866
- })(ResponseParseType || (ResponseParseType = {}));
1867
- /** Match operation to use for evaluation. */
1868
- var MatchOperation;
1869
- (function (MatchOperation) {
1870
- /**
1871
- * Default value. This value is unused.
1872
- */
1873
- MatchOperation["MATCH_OPERATION_UNSPECIFIED"] = "MATCH_OPERATION_UNSPECIFIED";
1874
- /**
1875
- * Equivalent to GoogleSQL `REGEX_CONTAINS(target, expression)`.
1876
- */
1877
- MatchOperation["REGEX_CONTAINS"] = "REGEX_CONTAINS";
1878
- /**
1879
- * `expression` is a substring of target.
1880
- */
1881
- MatchOperation["PARTIAL_MATCH"] = "PARTIAL_MATCH";
1882
- /**
1883
- * `expression` is an exact match of target.
1884
- */
1885
- MatchOperation["EXACT_MATCH"] = "EXACT_MATCH";
1886
- })(MatchOperation || (MatchOperation = {}));
1887
- /** Represents how much to think for the tuning job. */
1888
- var ReinforcementTuningThinkingLevel;
1889
- (function (ReinforcementTuningThinkingLevel) {
1890
- /**
1891
- * Unspecified thinking level.
1892
- */
1893
- ReinforcementTuningThinkingLevel["REINFORCEMENT_TUNING_THINKING_LEVEL_UNSPECIFIED"] = "REINFORCEMENT_TUNING_THINKING_LEVEL_UNSPECIFIED";
1894
- /**
1895
- * Little to no thinking.
1896
- */
1897
- ReinforcementTuningThinkingLevel["MINIMAL"] = "MINIMAL";
1898
- /**
1899
- * High thinking level.
1900
- */
1901
- ReinforcementTuningThinkingLevel["HIGH"] = "HIGH";
1902
- })(ReinforcementTuningThinkingLevel || (ReinforcementTuningThinkingLevel = {}));
1903
2007
  /** Enum representing the tuning method. */
1904
2008
  var TuningMethod;
1905
2009
  (function (TuningMethod) {
@@ -2696,6 +2800,21 @@ class ListModelsResponse {
2696
2800
  }
2697
2801
  class DeleteModelResponse {
2698
2802
  }
2803
+ /** Configuration for audio-specific output formatting. */
2804
+ class AudioResponseFormat {
2805
+ }
2806
+ /** Configuration for image-specific output formatting. */
2807
+ class ImageResponseFormat {
2808
+ }
2809
+ /** Configuration for text-specific output formatting. */
2810
+ class TextResponseFormat {
2811
+ }
2812
+ /** Configuration for video-specific output formatting. This data type is not supported in Gemini API. */
2813
+ class VideoResponseFormat {
2814
+ }
2815
+ /** Configuration for the model to configure output formatting and delivery. This data type is not supported in Gemini API. */
2816
+ class ResponseFormat {
2817
+ }
2699
2818
  /** Response for counting tokens. */
2700
2819
  class CountTokensResponse {
2701
2820
  }
@@ -2724,10 +2843,10 @@ class GenerateVideosOperation {
2724
2843
  return operation;
2725
2844
  }
2726
2845
  }
2727
- /** Defines how to parse sample response for reinforcement tuning. */
2846
+ /** Defines how to parse sample response config for reinforcement tuning. The parsed response (i.e., substring) will be passed to the reward functions. For example, the input prompt might be: > "Perform step-by-step thoughts first to problem A, finally output answer in the <ans> </ans> block." The sample response from the model under tuning might look like: > "<ans>Yes</ans>" Here, users can define the following parse config: ``` { "parseType": "REGEX_EXTRACT", "regexExtractExpression": ".*(.*?)" } ``` The resulting parsed response would be `"Yes"` and will be passed to the reward functions for evaluating rewards. This data type is not supported in Gemini API. */
2728
2847
  class ReinforcementTuningParseResponseConfig {
2729
2848
  }
2730
- /** Scores responses by directly converting parsed autorater response to float reward (reward is clipped to be within [-1, 1]). */
2849
+ /** Scores responses by directly converting the parsed autorater response to a float reward. Note: Reward is clipped to be within `[-1, 1]`, i.e., `reward = max(min(reward, 1.0), -1.0)`. This data type is not supported in Gemini API. */
2731
2850
  class ReinforcementTuningAutoraterScorerParsedResponseConversionScorer {
2732
2851
  }
2733
2852
  /** The results from an evaluation run performed by the EvaluationService. This data type is not supported in Gemini API. */
@@ -5167,6 +5286,9 @@ function toolToMldev$4(fromObject) {
5167
5286
  }
5168
5287
  setValueByPath(toObject, ['mcpServers'], transformedList);
5169
5288
  }
5289
+ if (getValueByPath(fromObject, ['exaAiSearch']) !== undefined) {
5290
+ throw new Error('exaAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');
5291
+ }
5170
5292
  return toObject;
5171
5293
  }
5172
5294
  function vertexMultimodalDatasetDestinationFromVertex(fromObject) {
@@ -6637,6 +6759,9 @@ function toolToMldev$3(fromObject) {
6637
6759
  }
6638
6760
  setValueByPath(toObject, ['mcpServers'], transformedList);
6639
6761
  }
6762
+ if (getValueByPath(fromObject, ['exaAiSearch']) !== undefined) {
6763
+ throw new Error('exaAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');
6764
+ }
6640
6765
  return toObject;
6641
6766
  }
6642
6767
  function toolToVertex$2(fromObject) {
@@ -6710,6 +6835,10 @@ function toolToVertex$2(fromObject) {
6710
6835
  }
6711
6836
  setValueByPath(toObject, ['mcpServers'], transformedList);
6712
6837
  }
6838
+ const fromExaAiSearch = getValueByPath(fromObject, ['exaAiSearch']);
6839
+ if (fromExaAiSearch != null) {
6840
+ setValueByPath(toObject, ['exaAiSearch'], fromExaAiSearch);
6841
+ }
6713
6842
  return toObject;
6714
6843
  }
6715
6844
  function updateCachedContentConfigToMldev(fromObject, parentObject) {
@@ -7798,7 +7927,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
7798
7927
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
7799
7928
  const USER_AGENT_HEADER = 'User-Agent';
7800
7929
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
7801
- const SDK_VERSION = '2.10.0'; // x-release-please-version
7930
+ const SDK_VERSION = '2.11.0'; // x-release-please-version
7802
7931
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
7803
7932
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
7804
7933
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
@@ -9663,17 +9792,14 @@ function env() {
9663
9792
  * Populates global parameters with environment variables.
9664
9793
  */
9665
9794
  function fillGlobals(options) {
9666
- var _a, _b, _c;
9795
+ var _a, _b;
9667
9796
  const clone = Object.assign({}, options);
9668
9797
  const envVars = env();
9669
9798
  if (typeof envVars.GOOGLE_GENAI_API_VERSION !== "undefined") {
9670
9799
  (_a = clone.api_version) !== null && _a !== void 0 ? _a : (clone.api_version = envVars.GOOGLE_GENAI_API_VERSION);
9671
9800
  }
9672
- if (typeof envVars.GOOGLE_GENAI_API_REVISION !== "undefined") {
9673
- (_b = clone.api_revision) !== null && _b !== void 0 ? _b : (clone.api_revision = envVars.GOOGLE_GENAI_API_REVISION);
9674
- }
9675
9801
  if (typeof envVars.GOOGLE_GENAI_USER_PROJECT !== "undefined") {
9676
- (_c = clone.user_project) !== null && _c !== void 0 ? _c : (clone.user_project = envVars.GOOGLE_GENAI_USER_PROJECT);
9802
+ (_b = clone.user_project) !== null && _b !== void 0 ? _b : (clone.user_project = envVars.GOOGLE_GENAI_USER_PROJECT);
9677
9803
  }
9678
9804
  return clone;
9679
9805
  }
@@ -9685,7 +9811,6 @@ function fillGlobals(options) {
9685
9811
  *
9686
9812
  * g3-prettier-ignore-file
9687
9813
  */
9688
- const GOOGLE_GENAI_API_REVISION = "2026-05-20";
9689
9814
  class GoogleGenAISecurityProvider {
9690
9815
  constructor(options) {
9691
9816
  this.options = options;
@@ -9703,7 +9828,6 @@ class GoogleGenAIAuthHook {
9703
9828
  }
9704
9829
  async beforeRequest(hookCtx, request) {
9705
9830
  applyDefaultHeaders(request.headers, getStaticDefaultHeaders(hookCtx.security_source));
9706
- applyApiRevision(hookCtx, request.headers);
9707
9831
  applyUserProject(hookCtx, request.headers);
9708
9832
  if (hasAuthHeaders(request.headers)) {
9709
9833
  return request;
@@ -9783,12 +9907,6 @@ function applyDefaultHeaders(target, source) {
9783
9907
  }
9784
9908
  }
9785
9909
  }
9786
- function applyApiRevision(hookCtx, headers) {
9787
- var _a;
9788
- if (headers.get("api-revision") === null) {
9789
- headers.set("Api-Revision", (_a = hookCtx.options.api_revision) !== null && _a !== void 0 ? _a : GOOGLE_GENAI_API_REVISION);
9790
- }
9791
- }
9792
9910
  function applyUserProject(hookCtx, headers) {
9793
9911
  if (hookCtx.options.user_project !== undefined &&
9794
9912
  headers.get("x-goog-user-project") === null) {
@@ -10320,7 +10438,7 @@ function serverURLFromOptions(options) {
10320
10438
  return new URL(u);
10321
10439
  }
10322
10440
  const SDK_METADATA = {
10323
- userAgent: "speakeasy-sdk/typescript 2.4.1-preview.4 2.911.0 v1beta @google/genai",
10441
+ userAgent: "speakeasy-sdk/typescript 2.4.1-preview.4 2.913.3 v1beta @google/genai",
10324
10442
  };
10325
10443
 
10326
10444
  /**
@@ -14261,7 +14379,7 @@ function generationConfigToVertex$1(fromObject) {
14261
14379
  }
14262
14380
  const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);
14263
14381
  if (fromSpeechConfig != null) {
14264
- setValueByPath(toObject, ['speechConfig'], fromSpeechConfig);
14382
+ setValueByPath(toObject, ['speechConfig'], speechConfigToVertex$1(fromSpeechConfig));
14265
14383
  }
14266
14384
  const fromStopSequences = getValueByPath(fromObject, [
14267
14385
  'stopSequences',
@@ -14291,6 +14409,21 @@ function generationConfigToVertex$1(fromObject) {
14291
14409
  undefined) {
14292
14410
  throw new Error('enableEnhancedCivicAnswers parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');
14293
14411
  }
14412
+ const fromResponseFormat = getValueByPath(fromObject, [
14413
+ 'responseFormat',
14414
+ ]);
14415
+ if (fromResponseFormat != null) {
14416
+ let transformedList = fromResponseFormat;
14417
+ if (Array.isArray(transformedList)) {
14418
+ transformedList = transformedList.map((item) => {
14419
+ return item;
14420
+ });
14421
+ }
14422
+ setValueByPath(toObject, ['responseFormat'], transformedList);
14423
+ }
14424
+ if (getValueByPath(fromObject, ['translationConfig']) !== undefined) {
14425
+ throw new Error('translationConfig parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');
14426
+ }
14294
14427
  return toObject;
14295
14428
  }
14296
14429
  function googleMapsToMldev$2(fromObject) {
@@ -14504,7 +14637,7 @@ function liveConnectConfigToVertex(fromObject, parentObject) {
14504
14637
  }
14505
14638
  const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);
14506
14639
  if (parentObject !== undefined && fromSpeechConfig != null) {
14507
- setValueByPath(parentObject, ['setup', 'generationConfig', 'speechConfig'], tLiveSpeechConfig(fromSpeechConfig));
14640
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'speechConfig'], speechConfigToVertex$1(tLiveSpeechConfig(fromSpeechConfig)));
14508
14641
  }
14509
14642
  const fromThinkingConfig = getValueByPath(fromObject, [
14510
14643
  'thinkingConfig',
@@ -14793,6 +14926,22 @@ function mcpServerToVertex$1(fromObject) {
14793
14926
  }
14794
14927
  return toObject;
14795
14928
  }
14929
+ function multiSpeakerVoiceConfigToVertex$1(fromObject) {
14930
+ const toObject = {};
14931
+ const fromSpeakerVoiceConfigs = getValueByPath(fromObject, [
14932
+ 'speakerVoiceConfigs',
14933
+ ]);
14934
+ if (fromSpeakerVoiceConfigs != null) {
14935
+ let transformedList = fromSpeakerVoiceConfigs;
14936
+ if (Array.isArray(transformedList)) {
14937
+ transformedList = transformedList.map((item) => {
14938
+ return speakerVoiceConfigToVertex$1(item);
14939
+ });
14940
+ }
14941
+ setValueByPath(toObject, ['speakerVoiceConfigs'], transformedList);
14942
+ }
14943
+ return toObject;
14944
+ }
14796
14945
  function partToMldev$2(fromObject) {
14797
14946
  const toObject = {};
14798
14947
  const fromMediaResolution = getValueByPath(fromObject, [
@@ -14934,6 +15083,26 @@ function partToVertex$2(fromObject) {
14934
15083
  }
14935
15084
  return toObject;
14936
15085
  }
15086
+ function replicatedVoiceConfigToVertex$1(fromObject) {
15087
+ const toObject = {};
15088
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
15089
+ if (fromMimeType != null) {
15090
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
15091
+ }
15092
+ const fromVoiceSampleAudio = getValueByPath(fromObject, [
15093
+ 'voiceSampleAudio',
15094
+ ]);
15095
+ if (fromVoiceSampleAudio != null) {
15096
+ setValueByPath(toObject, ['voiceSampleAudio'], fromVoiceSampleAudio);
15097
+ }
15098
+ if (getValueByPath(fromObject, ['consentAudio']) !== undefined) {
15099
+ throw new Error('consentAudio parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');
15100
+ }
15101
+ if (getValueByPath(fromObject, ['voiceConsentSignature']) !== undefined) {
15102
+ throw new Error('voiceConsentSignature parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');
15103
+ }
15104
+ return toObject;
15105
+ }
14937
15106
  function safetySettingToMldev$2(fromObject) {
14938
15107
  const toObject = {};
14939
15108
  const fromCategory = getValueByPath(fromObject, ['category']);
@@ -14960,6 +15129,36 @@ function sessionResumptionConfigToMldev$1(fromObject) {
14960
15129
  }
14961
15130
  return toObject;
14962
15131
  }
15132
+ function speakerVoiceConfigToVertex$1(fromObject) {
15133
+ const toObject = {};
15134
+ const fromSpeaker = getValueByPath(fromObject, ['speaker']);
15135
+ if (fromSpeaker != null) {
15136
+ setValueByPath(toObject, ['speaker'], fromSpeaker);
15137
+ }
15138
+ const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
15139
+ if (fromVoiceConfig != null) {
15140
+ setValueByPath(toObject, ['voiceConfig'], voiceConfigToVertex$1(fromVoiceConfig));
15141
+ }
15142
+ return toObject;
15143
+ }
15144
+ function speechConfigToVertex$1(fromObject) {
15145
+ const toObject = {};
15146
+ const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
15147
+ if (fromVoiceConfig != null) {
15148
+ setValueByPath(toObject, ['voiceConfig'], voiceConfigToVertex$1(fromVoiceConfig));
15149
+ }
15150
+ const fromLanguageCode = getValueByPath(fromObject, ['languageCode']);
15151
+ if (fromLanguageCode != null) {
15152
+ setValueByPath(toObject, ['languageCode'], fromLanguageCode);
15153
+ }
15154
+ const fromMultiSpeakerVoiceConfig = getValueByPath(fromObject, [
15155
+ 'multiSpeakerVoiceConfig',
15156
+ ]);
15157
+ if (fromMultiSpeakerVoiceConfig != null) {
15158
+ setValueByPath(toObject, ['multiSpeakerVoiceConfig'], multiSpeakerVoiceConfigToVertex$1(fromMultiSpeakerVoiceConfig));
15159
+ }
15160
+ return toObject;
15161
+ }
14963
15162
  function toolToMldev$2(fromObject) {
14964
15163
  const toObject = {};
14965
15164
  if (getValueByPath(fromObject, ['retrieval']) !== undefined) {
@@ -15025,6 +15224,9 @@ function toolToMldev$2(fromObject) {
15025
15224
  }
15026
15225
  setValueByPath(toObject, ['mcpServers'], transformedList);
15027
15226
  }
15227
+ if (getValueByPath(fromObject, ['exaAiSearch']) !== undefined) {
15228
+ throw new Error('exaAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');
15229
+ }
15028
15230
  return toObject;
15029
15231
  }
15030
15232
  function toolToVertex$1(fromObject) {
@@ -15098,6 +15300,10 @@ function toolToVertex$1(fromObject) {
15098
15300
  }
15099
15301
  setValueByPath(toObject, ['mcpServers'], transformedList);
15100
15302
  }
15303
+ const fromExaAiSearch = getValueByPath(fromObject, ['exaAiSearch']);
15304
+ if (fromExaAiSearch != null) {
15305
+ setValueByPath(toObject, ['exaAiSearch'], fromExaAiSearch);
15306
+ }
15101
15307
  return toObject;
15102
15308
  }
15103
15309
  function usageMetadataFromVertex(fromObject) {
@@ -15204,6 +15410,22 @@ function voiceActivityFromVertex(fromObject) {
15204
15410
  }
15205
15411
  return toObject;
15206
15412
  }
15413
+ function voiceConfigToVertex$1(fromObject) {
15414
+ const toObject = {};
15415
+ const fromReplicatedVoiceConfig = getValueByPath(fromObject, [
15416
+ 'replicatedVoiceConfig',
15417
+ ]);
15418
+ if (fromReplicatedVoiceConfig != null) {
15419
+ setValueByPath(toObject, ['replicatedVoiceConfig'], replicatedVoiceConfigToVertex$1(fromReplicatedVoiceConfig));
15420
+ }
15421
+ const fromPrebuiltVoiceConfig = getValueByPath(fromObject, [
15422
+ 'prebuiltVoiceConfig',
15423
+ ]);
15424
+ if (fromPrebuiltVoiceConfig != null) {
15425
+ setValueByPath(toObject, ['prebuiltVoiceConfig'], fromPrebuiltVoiceConfig);
15426
+ }
15427
+ return toObject;
15428
+ }
15207
15429
 
15208
15430
  /**
15209
15431
  * @license
@@ -16457,7 +16679,7 @@ function generateContentConfigToVertex(apiClient, fromObject, parentObject, root
16457
16679
  }
16458
16680
  const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);
16459
16681
  if (fromSpeechConfig != null) {
16460
- setValueByPath(toObject, ['speechConfig'], tSpeechConfig(fromSpeechConfig));
16682
+ setValueByPath(toObject, ['speechConfig'], speechConfigToVertex(tSpeechConfig(fromSpeechConfig)));
16461
16683
  }
16462
16684
  const fromAudioTimestamp = getValueByPath(fromObject, [
16463
16685
  'audioTimestamp',
@@ -17344,7 +17566,7 @@ function generatedVideoFromVertex(fromObject, rootObject) {
17344
17566
  }
17345
17567
  return toObject;
17346
17568
  }
17347
- function generationConfigToVertex(fromObject, _rootObject) {
17569
+ function generationConfigToVertex(fromObject, rootObject) {
17348
17570
  const toObject = {};
17349
17571
  const fromModelSelectionConfig = getValueByPath(fromObject, [
17350
17572
  'modelSelectionConfig',
@@ -17440,7 +17662,7 @@ function generationConfigToVertex(fromObject, _rootObject) {
17440
17662
  }
17441
17663
  const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);
17442
17664
  if (fromSpeechConfig != null) {
17443
- setValueByPath(toObject, ['speechConfig'], fromSpeechConfig);
17665
+ setValueByPath(toObject, ['speechConfig'], speechConfigToVertex(fromSpeechConfig));
17444
17666
  }
17445
17667
  const fromStopSequences = getValueByPath(fromObject, [
17446
17668
  'stopSequences',
@@ -17470,6 +17692,21 @@ function generationConfigToVertex(fromObject, _rootObject) {
17470
17692
  undefined) {
17471
17693
  throw new Error('enableEnhancedCivicAnswers parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');
17472
17694
  }
17695
+ const fromResponseFormat = getValueByPath(fromObject, [
17696
+ 'responseFormat',
17697
+ ]);
17698
+ if (fromResponseFormat != null) {
17699
+ let transformedList = fromResponseFormat;
17700
+ if (Array.isArray(transformedList)) {
17701
+ transformedList = transformedList.map((item) => {
17702
+ return item;
17703
+ });
17704
+ }
17705
+ setValueByPath(toObject, ['responseFormat'], transformedList);
17706
+ }
17707
+ if (getValueByPath(fromObject, ['translationConfig']) !== undefined) {
17708
+ throw new Error('translationConfig parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');
17709
+ }
17473
17710
  return toObject;
17474
17711
  }
17475
17712
  function getModelParametersToMldev(apiClient, fromObject, _rootObject) {
@@ -17907,6 +18144,22 @@ function modelFromVertex(fromObject, rootObject) {
17907
18144
  }
17908
18145
  return toObject;
17909
18146
  }
18147
+ function multiSpeakerVoiceConfigToVertex(fromObject, rootObject) {
18148
+ const toObject = {};
18149
+ const fromSpeakerVoiceConfigs = getValueByPath(fromObject, [
18150
+ 'speakerVoiceConfigs',
18151
+ ]);
18152
+ if (fromSpeakerVoiceConfigs != null) {
18153
+ let transformedList = fromSpeakerVoiceConfigs;
18154
+ if (Array.isArray(transformedList)) {
18155
+ transformedList = transformedList.map((item) => {
18156
+ return speakerVoiceConfigToVertex(item);
18157
+ });
18158
+ }
18159
+ setValueByPath(toObject, ['speakerVoiceConfigs'], transformedList);
18160
+ }
18161
+ return toObject;
18162
+ }
17910
18163
  function partToMldev$1(fromObject, rootObject) {
17911
18164
  const toObject = {};
17912
18165
  const fromMediaResolution = getValueByPath(fromObject, [
@@ -18216,6 +18469,26 @@ function referenceImageAPIInternalToVertex(fromObject, rootObject) {
18216
18469
  }
18217
18470
  return toObject;
18218
18471
  }
18472
+ function replicatedVoiceConfigToVertex(fromObject, _rootObject) {
18473
+ const toObject = {};
18474
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
18475
+ if (fromMimeType != null) {
18476
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
18477
+ }
18478
+ const fromVoiceSampleAudio = getValueByPath(fromObject, [
18479
+ 'voiceSampleAudio',
18480
+ ]);
18481
+ if (fromVoiceSampleAudio != null) {
18482
+ setValueByPath(toObject, ['voiceSampleAudio'], fromVoiceSampleAudio);
18483
+ }
18484
+ if (getValueByPath(fromObject, ['consentAudio']) !== undefined) {
18485
+ throw new Error('consentAudio parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');
18486
+ }
18487
+ if (getValueByPath(fromObject, ['voiceConsentSignature']) !== undefined) {
18488
+ throw new Error('voiceConsentSignature parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');
18489
+ }
18490
+ return toObject;
18491
+ }
18219
18492
  function safetyAttributesFromMldev(fromObject, _rootObject) {
18220
18493
  const toObject = {};
18221
18494
  const fromCategories = getValueByPath(fromObject, [
@@ -18365,6 +18638,36 @@ function segmentImageSourceToVertex(fromObject, parentObject, rootObject) {
18365
18638
  }
18366
18639
  return toObject;
18367
18640
  }
18641
+ function speakerVoiceConfigToVertex(fromObject, rootObject) {
18642
+ const toObject = {};
18643
+ const fromSpeaker = getValueByPath(fromObject, ['speaker']);
18644
+ if (fromSpeaker != null) {
18645
+ setValueByPath(toObject, ['speaker'], fromSpeaker);
18646
+ }
18647
+ const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
18648
+ if (fromVoiceConfig != null) {
18649
+ setValueByPath(toObject, ['voiceConfig'], voiceConfigToVertex(fromVoiceConfig));
18650
+ }
18651
+ return toObject;
18652
+ }
18653
+ function speechConfigToVertex(fromObject, rootObject) {
18654
+ const toObject = {};
18655
+ const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
18656
+ if (fromVoiceConfig != null) {
18657
+ setValueByPath(toObject, ['voiceConfig'], voiceConfigToVertex(fromVoiceConfig));
18658
+ }
18659
+ const fromLanguageCode = getValueByPath(fromObject, ['languageCode']);
18660
+ if (fromLanguageCode != null) {
18661
+ setValueByPath(toObject, ['languageCode'], fromLanguageCode);
18662
+ }
18663
+ const fromMultiSpeakerVoiceConfig = getValueByPath(fromObject, [
18664
+ 'multiSpeakerVoiceConfig',
18665
+ ]);
18666
+ if (fromMultiSpeakerVoiceConfig != null) {
18667
+ setValueByPath(toObject, ['multiSpeakerVoiceConfig'], multiSpeakerVoiceConfigToVertex(fromMultiSpeakerVoiceConfig));
18668
+ }
18669
+ return toObject;
18670
+ }
18368
18671
  function toolConfigToMldev(fromObject, rootObject) {
18369
18672
  const toObject = {};
18370
18673
  const fromRetrievalConfig = getValueByPath(fromObject, [
@@ -18470,6 +18773,9 @@ function toolToMldev$1(fromObject, rootObject) {
18470
18773
  }
18471
18774
  setValueByPath(toObject, ['mcpServers'], transformedList);
18472
18775
  }
18776
+ if (getValueByPath(fromObject, ['exaAiSearch']) !== undefined) {
18777
+ throw new Error('exaAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');
18778
+ }
18473
18779
  return toObject;
18474
18780
  }
18475
18781
  function toolToVertex(fromObject, rootObject) {
@@ -18543,6 +18849,10 @@ function toolToVertex(fromObject, rootObject) {
18543
18849
  }
18544
18850
  setValueByPath(toObject, ['mcpServers'], transformedList);
18545
18851
  }
18852
+ const fromExaAiSearch = getValueByPath(fromObject, ['exaAiSearch']);
18853
+ if (fromExaAiSearch != null) {
18854
+ setValueByPath(toObject, ['exaAiSearch'], fromExaAiSearch);
18855
+ }
18546
18856
  return toObject;
18547
18857
  }
18548
18858
  function tunedModelInfoFromMldev(fromObject, _rootObject) {
@@ -18854,6 +19164,22 @@ function videoToVertex(fromObject, _rootObject) {
18854
19164
  }
18855
19165
  return toObject;
18856
19166
  }
19167
+ function voiceConfigToVertex(fromObject, rootObject) {
19168
+ const toObject = {};
19169
+ const fromReplicatedVoiceConfig = getValueByPath(fromObject, [
19170
+ 'replicatedVoiceConfig',
19171
+ ]);
19172
+ if (fromReplicatedVoiceConfig != null) {
19173
+ setValueByPath(toObject, ['replicatedVoiceConfig'], replicatedVoiceConfigToVertex(fromReplicatedVoiceConfig));
19174
+ }
19175
+ const fromPrebuiltVoiceConfig = getValueByPath(fromObject, [
19176
+ 'prebuiltVoiceConfig',
19177
+ ]);
19178
+ if (fromPrebuiltVoiceConfig != null) {
19179
+ setValueByPath(toObject, ['prebuiltVoiceConfig'], fromPrebuiltVoiceConfig);
19180
+ }
19181
+ return toObject;
19182
+ }
18857
19183
 
18858
19184
  /**
18859
19185
  * @license
@@ -19416,10 +19742,27 @@ class Live {
19416
19742
  onopenResolve({});
19417
19743
  };
19418
19744
  const apiClient = this.apiClient;
19745
+ let sessionResolved = false;
19746
+ const messageQueue = [];
19747
+ let setupCompleteResolve = () => { };
19748
+ const setupCompletePromise = new Promise((resolve) => {
19749
+ setupCompleteResolve = resolve;
19750
+ });
19419
19751
  const websocketCallbacks = {
19420
19752
  onopen: onopenAwaitedCallback,
19421
19753
  onmessage: (event) => {
19422
- void handleWebSocketMessage(apiClient, callbacks.onmessage, event);
19754
+ void handleWebSocketMessage(apiClient, (msg) => {
19755
+ if (msg.setupComplete && !session.setupComplete) {
19756
+ session.setupComplete = msg.setupComplete;
19757
+ setupCompleteResolve({});
19758
+ }
19759
+ if (sessionResolved) {
19760
+ callbacks.onmessage(msg);
19761
+ }
19762
+ else {
19763
+ messageQueue.push(msg);
19764
+ }
19765
+ }, event);
19423
19766
  },
19424
19767
  onerror: (_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.onerror) !== null && _a !== void 0 ? _a : function (e) {
19425
19768
  },
@@ -19481,8 +19824,14 @@ class Live {
19481
19824
  clientMessage = liveConnectParametersToMldev(this.apiClient, liveConnectParameters);
19482
19825
  }
19483
19826
  delete clientMessage['config'];
19827
+ const session = new Session(conn, this.apiClient);
19484
19828
  conn.send(JSON.stringify(clientMessage));
19485
- return new Session(conn, this.apiClient);
19829
+ await setupCompletePromise;
19830
+ sessionResolved = true;
19831
+ for (const msg of messageQueue) {
19832
+ callbacks.onmessage(msg);
19833
+ }
19834
+ return session;
19486
19835
  }
19487
19836
  // TODO: b/416041229 - Abstract this method to a common place.
19488
19837
  isCallableTool(tool) {
@@ -22011,6 +22360,9 @@ function toolToMldev(fromObject) {
22011
22360
  }
22012
22361
  setValueByPath(toObject, ['mcpServers'], transformedList);
22013
22362
  }
22363
+ if (getValueByPath(fromObject, ['exaAiSearch']) !== undefined) {
22364
+ throw new Error('exaAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');
22365
+ }
22014
22366
  return toObject;
22015
22367
  }
22016
22368
 
@@ -23105,6 +23457,18 @@ function generationConfigFromVertex(fromObject, _rootObject) {
23105
23457
  if (fromTopP != null) {
23106
23458
  setValueByPath(toObject, ['topP'], fromTopP);
23107
23459
  }
23460
+ const fromResponseFormat = getValueByPath(fromObject, [
23461
+ 'responseFormat',
23462
+ ]);
23463
+ if (fromResponseFormat != null) {
23464
+ let transformedList = fromResponseFormat;
23465
+ if (Array.isArray(transformedList)) {
23466
+ transformedList = transformedList.map((item) => {
23467
+ return item;
23468
+ });
23469
+ }
23470
+ setValueByPath(toObject, ['responseFormat'], transformedList);
23471
+ }
23108
23472
  return toObject;
23109
23473
  }
23110
23474
  function getTuningJobParametersToMldev(fromObject, _rootObject) {
@@ -24228,5 +24592,5 @@ class GoogleGenAI {
24228
24592
  }
24229
24593
  }
24230
24594
 
24231
- export { ActivityHandling, AdapterSize, AggregationMetric, ApiError, ApiSpec, AuthType, Batches, Behavior, BlockedReason, Caches, CancelTuningJobResponse, Chat, Chats, ComputeTokensResponse, ContentReferenceImage, ControlReferenceImage, ControlReferenceType, CountTokensResponse, CreateFileResponse, DeleteCachedContentResponse, DeleteFileResponse, DeleteModelResponse, DocumentState, DynamicRetrievalConfigMode, EditImageResponse, EditMode, EmbedContentResponse, EmbeddingApiType, EndSensitivity, Environment, EvaluateDatasetResponse, FeatureSelectionPreference, FileSource, FileState, Files, FinishReason, FunctionCallingConfigMode, FunctionResponse, FunctionResponseBlob, FunctionResponseFileData, FunctionResponsePart, FunctionResponseScheduling, GenerateContentResponse, GenerateContentResponsePromptFeedback, GenerateContentResponseUsageMetadata, GenerateImagesResponse, GenerateVideosOperation, GenerateVideosResponse, GoogleGenAI, HarmBlockMethod, HarmBlockThreshold, HarmCategory, HarmProbability, HarmSeverity, HttpElementLocation, HttpResponse, ImagePromptLanguage, ImageResizeMode, ImportFileOperation, ImportFileResponse, InlinedEmbedContentResponse, InlinedResponse, JobState, Language, ListBatchJobsResponse, ListCachedContentsResponse, ListDocumentsResponse, ListFileSearchStoresResponse, ListFilesResponse, ListModelsResponse, ListTuningJobsResponse, Live, LiveClientToolResponse, LiveMusicPlaybackControl, LiveMusicServerMessage, LiveSendToolResponseParameters, LiveServerMessage, MaskReferenceImage, MaskReferenceMode, MatchOperation, MediaModality, MediaResolution, Modality, ModelStage, Models, MusicGenerationMode, Operations, Outcome, PagedItem, Pager, PairwiseChoice, PartMediaResolutionLevel, PersonGeneration, PhishBlockThreshold, ProminentPeople, RawReferenceImage, RecontextImageResponse, RegisterFilesResponse, ReinforcementTuningAutoraterScorerParsedResponseConversionScorer, ReinforcementTuningParseResponseConfig, ReinforcementTuningThinkingLevel, ReplayResponse, ResourceScope, ResponseParseType, SafetyFilterLevel, SafetyPolicy, Scale, SegmentImageResponse, SegmentMode, ServiceTier, Session, SingleEmbedContentResponse, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, ThinkingLevel, Tokens, ToolResponse, ToolType, TrafficType, TuningJobState, TuningMethod, TuningMode, TuningSpeed, TuningTask, TurnCompleteReason, TurnCoverage, Type, UploadToFileSearchStoreOperation, UploadToFileSearchStoreResponse, UploadToFileSearchStoreResumableResponse, UpscaleImageResponse, UrlRetrievalStatus, VadSignalType, ValidateRewardResponse, VideoCompressionQuality, VideoGenerationMaskMode, VideoGenerationReferenceType, VideoOrientation, VoiceActivityType, createFunctionResponsePartFromBase64, createFunctionResponsePartFromUri, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
24595
+ export { ActivityHandling, AdapterSize, AggregationMetric, ApiError, ApiSpec, AspectRatio, AudioResponseFormat, AuthType, Batches, Behavior, BlockedReason, Caches, CancelTuningJobResponse, Chat, Chats, ComputeTokensResponse, ContentReferenceImage, ControlReferenceImage, ControlReferenceType, CountTokensResponse, CreateFileResponse, DeleteCachedContentResponse, DeleteFileResponse, DeleteModelResponse, Delivery, DocumentState, DynamicRetrievalConfigMode, EditImageResponse, EditMode, EmbedContentResponse, EmbeddingApiType, EndSensitivity, Environment, EvaluateDatasetResponse, FeatureSelectionPreference, FileSource, FileState, Files, FinishReason, FunctionCallingConfigMode, FunctionResponse, FunctionResponseBlob, FunctionResponseFileData, FunctionResponsePart, FunctionResponseScheduling, GenerateContentResponse, GenerateContentResponsePromptFeedback, GenerateContentResponseUsageMetadata, GenerateImagesResponse, GenerateVideosOperation, GenerateVideosResponse, GoogleGenAI, HarmBlockMethod, HarmBlockThreshold, HarmCategory, HarmProbability, HarmSeverity, HttpElementLocation, HttpResponse, ImagePromptLanguage, ImageResizeMode, ImageResponseFormat, ImageSize, ImportFileOperation, ImportFileResponse, InlinedEmbedContentResponse, InlinedResponse, JobState, Language, ListBatchJobsResponse, ListCachedContentsResponse, ListDocumentsResponse, ListFileSearchStoresResponse, ListFilesResponse, ListModelsResponse, ListTuningJobsResponse, Live, LiveClientToolResponse, LiveMusicPlaybackControl, LiveMusicServerMessage, LiveSendToolResponseParameters, LiveServerMessage, MaskReferenceImage, MaskReferenceMode, MatchOperation, MediaModality, MediaResolution, Modality, ModelStage, Models, MusicGenerationMode, Operations, Outcome, PagedItem, Pager, PairwiseChoice, PartMediaResolutionLevel, PersonGeneration, PhishBlockThreshold, ProminentPeople, RawReferenceImage, RecontextImageResponse, RegisterFilesResponse, ReinforcementTuningAutoraterScorerParsedResponseConversionScorer, ReinforcementTuningParseResponseConfig, ReinforcementTuningThinkingLevel, ReplayResponse, ResourceScope, ResponseFormat, ResponseParseType, SafetyFilterLevel, SafetyPolicy, Scale, SegmentImageResponse, SegmentMode, ServiceTier, Session, SingleEmbedContentResponse, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, TextResponseFormat, ThinkingLevel, Tokens, ToolResponse, ToolType, TrafficType, TuningJobState, TuningMethod, TuningMode, TuningSpeed, TuningTask, TurnCompleteReason, TurnCoverage, Type, UploadToFileSearchStoreOperation, UploadToFileSearchStoreResponse, UploadToFileSearchStoreResumableResponse, UpscaleImageResponse, UrlRetrievalStatus, VadSignalType, ValidateRewardResponse, VideoCompressionQuality, VideoGenerationMaskMode, VideoGenerationReferenceType, VideoOrientation, VideoResponseFormat, VoiceActivityType, createFunctionResponsePartFromBase64, createFunctionResponsePartFromUri, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
24232
24596
  //# sourceMappingURL=index.mjs.map