@google/genai 1.42.0 → 1.44.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.
@@ -638,7 +638,7 @@ var FunctionResponseScheduling;
638
638
  */
639
639
  FunctionResponseScheduling["INTERRUPT"] = "INTERRUPT";
640
640
  })(FunctionResponseScheduling || (FunctionResponseScheduling = {}));
641
- /** The type of the data. */
641
+ /** Data type of the schema field. */
642
642
  var Type;
643
643
  (function (Type) {
644
644
  /**
@@ -674,22 +674,38 @@ var Type;
674
674
  */
675
675
  Type["NULL"] = "NULL";
676
676
  })(Type || (Type = {}));
677
- /** The API spec that the external API implements. This enum is not supported in Gemini API. */
678
- var ApiSpec;
679
- (function (ApiSpec) {
677
+ /** Sites with confidence level chosen & above this value will be blocked from the search results. This enum is not supported in Gemini API. */
678
+ var PhishBlockThreshold;
679
+ (function (PhishBlockThreshold) {
680
680
  /**
681
- * Unspecified API spec. This value should not be used.
681
+ * Defaults to unspecified.
682
682
  */
683
- ApiSpec["API_SPEC_UNSPECIFIED"] = "API_SPEC_UNSPECIFIED";
683
+ PhishBlockThreshold["PHISH_BLOCK_THRESHOLD_UNSPECIFIED"] = "PHISH_BLOCK_THRESHOLD_UNSPECIFIED";
684
684
  /**
685
- * Simple search API spec.
685
+ * Blocks Low and above confidence URL that is risky.
686
686
  */
687
- ApiSpec["SIMPLE_SEARCH"] = "SIMPLE_SEARCH";
687
+ PhishBlockThreshold["BLOCK_LOW_AND_ABOVE"] = "BLOCK_LOW_AND_ABOVE";
688
688
  /**
689
- * Elastic search API spec.
689
+ * Blocks Medium and above confidence URL that is risky.
690
690
  */
691
- ApiSpec["ELASTIC_SEARCH"] = "ELASTIC_SEARCH";
692
- })(ApiSpec || (ApiSpec = {}));
691
+ PhishBlockThreshold["BLOCK_MEDIUM_AND_ABOVE"] = "BLOCK_MEDIUM_AND_ABOVE";
692
+ /**
693
+ * Blocks High and above confidence URL that is risky.
694
+ */
695
+ PhishBlockThreshold["BLOCK_HIGH_AND_ABOVE"] = "BLOCK_HIGH_AND_ABOVE";
696
+ /**
697
+ * Blocks Higher and above confidence URL that is risky.
698
+ */
699
+ PhishBlockThreshold["BLOCK_HIGHER_AND_ABOVE"] = "BLOCK_HIGHER_AND_ABOVE";
700
+ /**
701
+ * Blocks Very high and above confidence URL that is risky.
702
+ */
703
+ PhishBlockThreshold["BLOCK_VERY_HIGH_AND_ABOVE"] = "BLOCK_VERY_HIGH_AND_ABOVE";
704
+ /**
705
+ * Blocks Extremely high confidence URL that is risky.
706
+ */
707
+ PhishBlockThreshold["BLOCK_ONLY_EXTREMELY_HIGH"] = "BLOCK_ONLY_EXTREMELY_HIGH";
708
+ })(PhishBlockThreshold || (PhishBlockThreshold = {}));
693
709
  /** Type of auth scheme. This enum is not supported in Gemini API. */
694
710
  var AuthType;
695
711
  (function (AuthType) {
@@ -744,38 +760,22 @@ var HttpElementLocation;
744
760
  */
745
761
  HttpElementLocation["HTTP_IN_COOKIE"] = "HTTP_IN_COOKIE";
746
762
  })(HttpElementLocation || (HttpElementLocation = {}));
747
- /** Sites with confidence level chosen & above this value will be blocked from the search results. This enum is not supported in Gemini API. */
748
- var PhishBlockThreshold;
749
- (function (PhishBlockThreshold) {
750
- /**
751
- * Defaults to unspecified.
752
- */
753
- PhishBlockThreshold["PHISH_BLOCK_THRESHOLD_UNSPECIFIED"] = "PHISH_BLOCK_THRESHOLD_UNSPECIFIED";
754
- /**
755
- * Blocks Low and above confidence URL that is risky.
756
- */
757
- PhishBlockThreshold["BLOCK_LOW_AND_ABOVE"] = "BLOCK_LOW_AND_ABOVE";
758
- /**
759
- * Blocks Medium and above confidence URL that is risky.
760
- */
761
- PhishBlockThreshold["BLOCK_MEDIUM_AND_ABOVE"] = "BLOCK_MEDIUM_AND_ABOVE";
762
- /**
763
- * Blocks High and above confidence URL that is risky.
764
- */
765
- PhishBlockThreshold["BLOCK_HIGH_AND_ABOVE"] = "BLOCK_HIGH_AND_ABOVE";
763
+ /** The API spec that the external API implements. This enum is not supported in Gemini API. */
764
+ var ApiSpec;
765
+ (function (ApiSpec) {
766
766
  /**
767
- * Blocks Higher and above confidence URL that is risky.
767
+ * Unspecified API spec. This value should not be used.
768
768
  */
769
- PhishBlockThreshold["BLOCK_HIGHER_AND_ABOVE"] = "BLOCK_HIGHER_AND_ABOVE";
769
+ ApiSpec["API_SPEC_UNSPECIFIED"] = "API_SPEC_UNSPECIFIED";
770
770
  /**
771
- * Blocks Very high and above confidence URL that is risky.
771
+ * Simple search API spec.
772
772
  */
773
- PhishBlockThreshold["BLOCK_VERY_HIGH_AND_ABOVE"] = "BLOCK_VERY_HIGH_AND_ABOVE";
773
+ ApiSpec["SIMPLE_SEARCH"] = "SIMPLE_SEARCH";
774
774
  /**
775
- * Blocks Extremely high confidence URL that is risky.
775
+ * Elastic search API spec.
776
776
  */
777
- PhishBlockThreshold["BLOCK_ONLY_EXTREMELY_HIGH"] = "BLOCK_ONLY_EXTREMELY_HIGH";
778
- })(PhishBlockThreshold || (PhishBlockThreshold = {}));
777
+ ApiSpec["ELASTIC_SEARCH"] = "ELASTIC_SEARCH";
778
+ })(ApiSpec || (ApiSpec = {}));
779
779
  /** Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. This enum is not supported in Vertex AI. */
780
780
  var Behavior;
781
781
  (function (Behavior) {
@@ -852,27 +852,43 @@ var ThinkingLevel;
852
852
  */
853
853
  ThinkingLevel["MINIMAL"] = "MINIMAL";
854
854
  })(ThinkingLevel || (ThinkingLevel = {}));
855
- /** Harm category. */
855
+ /** Enum that controls the generation of people. */
856
+ var PersonGeneration;
857
+ (function (PersonGeneration) {
858
+ /**
859
+ * Block generation of images of people.
860
+ */
861
+ PersonGeneration["DONT_ALLOW"] = "DONT_ALLOW";
862
+ /**
863
+ * Generate images of adults, but not children.
864
+ */
865
+ PersonGeneration["ALLOW_ADULT"] = "ALLOW_ADULT";
866
+ /**
867
+ * Generate images that include adults and children.
868
+ */
869
+ PersonGeneration["ALLOW_ALL"] = "ALLOW_ALL";
870
+ })(PersonGeneration || (PersonGeneration = {}));
871
+ /** The harm category to be blocked. */
856
872
  var HarmCategory;
857
873
  (function (HarmCategory) {
858
874
  /**
859
- * The harm category is unspecified.
875
+ * Default value. This value is unused.
860
876
  */
861
877
  HarmCategory["HARM_CATEGORY_UNSPECIFIED"] = "HARM_CATEGORY_UNSPECIFIED";
862
878
  /**
863
- * The harm category is harassment.
879
+ * Abusive, threatening, or content intended to bully, torment, or ridicule.
864
880
  */
865
881
  HarmCategory["HARM_CATEGORY_HARASSMENT"] = "HARM_CATEGORY_HARASSMENT";
866
882
  /**
867
- * The harm category is hate speech.
883
+ * Content that promotes violence or incites hatred against individuals or groups based on certain attributes.
868
884
  */
869
885
  HarmCategory["HARM_CATEGORY_HATE_SPEECH"] = "HARM_CATEGORY_HATE_SPEECH";
870
886
  /**
871
- * The harm category is sexually explicit content.
887
+ * Content that contains sexually explicit material.
872
888
  */
873
889
  HarmCategory["HARM_CATEGORY_SEXUALLY_EXPLICIT"] = "HARM_CATEGORY_SEXUALLY_EXPLICIT";
874
890
  /**
875
- * The harm category is dangerous content.
891
+ * Content that promotes, facilitates, or enables dangerous activities.
876
892
  */
877
893
  HarmCategory["HARM_CATEGORY_DANGEROUS_CONTENT"] = "HARM_CATEGORY_DANGEROUS_CONTENT";
878
894
  /**
@@ -880,27 +896,27 @@ var HarmCategory;
880
896
  */
881
897
  HarmCategory["HARM_CATEGORY_CIVIC_INTEGRITY"] = "HARM_CATEGORY_CIVIC_INTEGRITY";
882
898
  /**
883
- * The harm category is image hate. This enum value is not supported in Gemini API.
899
+ * Images that contain hate speech. This enum value is not supported in Gemini API.
884
900
  */
885
901
  HarmCategory["HARM_CATEGORY_IMAGE_HATE"] = "HARM_CATEGORY_IMAGE_HATE";
886
902
  /**
887
- * The harm category is image dangerous content. This enum value is not supported in Gemini API.
903
+ * Images that contain dangerous content. This enum value is not supported in Gemini API.
888
904
  */
889
905
  HarmCategory["HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT"] = "HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT";
890
906
  /**
891
- * The harm category is image harassment. This enum value is not supported in Gemini API.
907
+ * Images that contain harassment. This enum value is not supported in Gemini API.
892
908
  */
893
909
  HarmCategory["HARM_CATEGORY_IMAGE_HARASSMENT"] = "HARM_CATEGORY_IMAGE_HARASSMENT";
894
910
  /**
895
- * The harm category is image sexually explicit content. This enum value is not supported in Gemini API.
911
+ * Images that contain sexually explicit content. This enum value is not supported in Gemini API.
896
912
  */
897
913
  HarmCategory["HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT"] = "HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT";
898
914
  /**
899
- * The harm category is for jailbreak prompts. This enum value is not supported in Gemini API.
915
+ * Prompts designed to bypass safety filters. This enum value is not supported in Gemini API.
900
916
  */
901
917
  HarmCategory["HARM_CATEGORY_JAILBREAK"] = "HARM_CATEGORY_JAILBREAK";
902
918
  })(HarmCategory || (HarmCategory = {}));
903
- /** Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score. This enum is not supported in Gemini API. */
919
+ /** The method for blocking content. If not specified, the default behavior is to use the probability score. This enum is not supported in Gemini API. */
904
920
  var HarmBlockMethod;
905
921
  (function (HarmBlockMethod) {
906
922
  /**
@@ -916,31 +932,31 @@ var HarmBlockMethod;
916
932
  */
917
933
  HarmBlockMethod["PROBABILITY"] = "PROBABILITY";
918
934
  })(HarmBlockMethod || (HarmBlockMethod = {}));
919
- /** The harm block threshold. */
935
+ /** The threshold for blocking content. If the harm probability exceeds this threshold, the content will be blocked. */
920
936
  var HarmBlockThreshold;
921
937
  (function (HarmBlockThreshold) {
922
938
  /**
923
- * Unspecified harm block threshold.
939
+ * The harm block threshold is unspecified.
924
940
  */
925
941
  HarmBlockThreshold["HARM_BLOCK_THRESHOLD_UNSPECIFIED"] = "HARM_BLOCK_THRESHOLD_UNSPECIFIED";
926
942
  /**
927
- * Block low threshold and above (i.e. block more).
943
+ * Block content with a low harm probability or higher.
928
944
  */
929
945
  HarmBlockThreshold["BLOCK_LOW_AND_ABOVE"] = "BLOCK_LOW_AND_ABOVE";
930
946
  /**
931
- * Block medium threshold and above.
947
+ * Block content with a medium harm probability or higher.
932
948
  */
933
949
  HarmBlockThreshold["BLOCK_MEDIUM_AND_ABOVE"] = "BLOCK_MEDIUM_AND_ABOVE";
934
950
  /**
935
- * Block only high threshold (i.e. block less).
951
+ * Block content with a high harm probability.
936
952
  */
937
953
  HarmBlockThreshold["BLOCK_ONLY_HIGH"] = "BLOCK_ONLY_HIGH";
938
954
  /**
939
- * Block none.
955
+ * Do not block any content, regardless of its harm probability.
940
956
  */
941
957
  HarmBlockThreshold["BLOCK_NONE"] = "BLOCK_NONE";
942
958
  /**
943
- * Turn off the safety filter.
959
+ * Turn off the safety filter entirely.
944
960
  */
945
961
  HarmBlockThreshold["OFF"] = "OFF";
946
962
  })(HarmBlockThreshold || (HarmBlockThreshold = {}));
@@ -1018,55 +1034,55 @@ var FinishReason;
1018
1034
  */
1019
1035
  FinishReason["IMAGE_OTHER"] = "IMAGE_OTHER";
1020
1036
  })(FinishReason || (FinishReason = {}));
1021
- /** Output only. Harm probability levels in the content. */
1037
+ /** Output only. The probability of harm for this category. */
1022
1038
  var HarmProbability;
1023
1039
  (function (HarmProbability) {
1024
1040
  /**
1025
- * Harm probability unspecified.
1041
+ * The harm probability is unspecified.
1026
1042
  */
1027
1043
  HarmProbability["HARM_PROBABILITY_UNSPECIFIED"] = "HARM_PROBABILITY_UNSPECIFIED";
1028
1044
  /**
1029
- * Negligible level of harm.
1045
+ * The harm probability is negligible.
1030
1046
  */
1031
1047
  HarmProbability["NEGLIGIBLE"] = "NEGLIGIBLE";
1032
1048
  /**
1033
- * Low level of harm.
1049
+ * The harm probability is low.
1034
1050
  */
1035
1051
  HarmProbability["LOW"] = "LOW";
1036
1052
  /**
1037
- * Medium level of harm.
1053
+ * The harm probability is medium.
1038
1054
  */
1039
1055
  HarmProbability["MEDIUM"] = "MEDIUM";
1040
1056
  /**
1041
- * High level of harm.
1057
+ * The harm probability is high.
1042
1058
  */
1043
1059
  HarmProbability["HIGH"] = "HIGH";
1044
1060
  })(HarmProbability || (HarmProbability = {}));
1045
- /** Output only. Harm severity levels in the content. This enum is not supported in Gemini API. */
1061
+ /** Output only. The severity of harm for this category. This enum is not supported in Gemini API. */
1046
1062
  var HarmSeverity;
1047
1063
  (function (HarmSeverity) {
1048
1064
  /**
1049
- * Harm severity unspecified.
1065
+ * The harm severity is unspecified.
1050
1066
  */
1051
1067
  HarmSeverity["HARM_SEVERITY_UNSPECIFIED"] = "HARM_SEVERITY_UNSPECIFIED";
1052
1068
  /**
1053
- * Negligible level of harm severity.
1069
+ * The harm severity is negligible.
1054
1070
  */
1055
1071
  HarmSeverity["HARM_SEVERITY_NEGLIGIBLE"] = "HARM_SEVERITY_NEGLIGIBLE";
1056
1072
  /**
1057
- * Low level of harm severity.
1073
+ * The harm severity is low.
1058
1074
  */
1059
1075
  HarmSeverity["HARM_SEVERITY_LOW"] = "HARM_SEVERITY_LOW";
1060
1076
  /**
1061
- * Medium level of harm severity.
1077
+ * The harm severity is medium.
1062
1078
  */
1063
1079
  HarmSeverity["HARM_SEVERITY_MEDIUM"] = "HARM_SEVERITY_MEDIUM";
1064
1080
  /**
1065
- * High level of harm severity.
1081
+ * The harm severity is high.
1066
1082
  */
1067
1083
  HarmSeverity["HARM_SEVERITY_HIGH"] = "HARM_SEVERITY_HIGH";
1068
1084
  })(HarmSeverity || (HarmSeverity = {}));
1069
- /** Status of the url retrieval. */
1085
+ /** The status of the URL retrieval. */
1070
1086
  var UrlRetrievalStatus;
1071
1087
  (function (UrlRetrievalStatus) {
1072
1088
  /**
@@ -1074,11 +1090,11 @@ var UrlRetrievalStatus;
1074
1090
  */
1075
1091
  UrlRetrievalStatus["URL_RETRIEVAL_STATUS_UNSPECIFIED"] = "URL_RETRIEVAL_STATUS_UNSPECIFIED";
1076
1092
  /**
1077
- * Url retrieval is successful.
1093
+ * The URL was retrieved successfully.
1078
1094
  */
1079
1095
  UrlRetrievalStatus["URL_RETRIEVAL_STATUS_SUCCESS"] = "URL_RETRIEVAL_STATUS_SUCCESS";
1080
1096
  /**
1081
- * Url retrieval is failed due to error.
1097
+ * The URL retrieval failed.
1082
1098
  */
1083
1099
  UrlRetrievalStatus["URL_RETRIEVAL_STATUS_ERROR"] = "URL_RETRIEVAL_STATUS_ERROR";
1084
1100
  /**
@@ -1137,6 +1153,14 @@ var TrafficType;
1137
1153
  * The request was processed using Pay-As-You-Go quota.
1138
1154
  */
1139
1155
  TrafficType["ON_DEMAND"] = "ON_DEMAND";
1156
+ /**
1157
+ * Type for Priority Pay-As-You-Go traffic.
1158
+ */
1159
+ TrafficType["ON_DEMAND_PRIORITY"] = "ON_DEMAND_PRIORITY";
1160
+ /**
1161
+ * Type for Flex traffic.
1162
+ */
1163
+ TrafficType["ON_DEMAND_FLEX"] = "ON_DEMAND_FLEX";
1140
1164
  /**
1141
1165
  * Type for Provisioned Throughput traffic.
1142
1166
  */
@@ -1282,6 +1306,102 @@ var JobState;
1282
1306
  */
1283
1307
  JobState["JOB_STATE_PARTIALLY_SUCCEEDED"] = "JOB_STATE_PARTIALLY_SUCCEEDED";
1284
1308
  })(JobState || (JobState = {}));
1309
+ /** Output only. The detail state of the tuning job (while the overall `JobState` is running). This enum is not supported in Gemini API. */
1310
+ var TuningJobState;
1311
+ (function (TuningJobState) {
1312
+ /**
1313
+ * Default tuning job state.
1314
+ */
1315
+ TuningJobState["TUNING_JOB_STATE_UNSPECIFIED"] = "TUNING_JOB_STATE_UNSPECIFIED";
1316
+ /**
1317
+ * Tuning job is waiting for job quota.
1318
+ */
1319
+ TuningJobState["TUNING_JOB_STATE_WAITING_FOR_QUOTA"] = "TUNING_JOB_STATE_WAITING_FOR_QUOTA";
1320
+ /**
1321
+ * Tuning job is validating the dataset.
1322
+ */
1323
+ TuningJobState["TUNING_JOB_STATE_PROCESSING_DATASET"] = "TUNING_JOB_STATE_PROCESSING_DATASET";
1324
+ /**
1325
+ * Tuning job is waiting for hardware capacity.
1326
+ */
1327
+ TuningJobState["TUNING_JOB_STATE_WAITING_FOR_CAPACITY"] = "TUNING_JOB_STATE_WAITING_FOR_CAPACITY";
1328
+ /**
1329
+ * Tuning job is running.
1330
+ */
1331
+ TuningJobState["TUNING_JOB_STATE_TUNING"] = "TUNING_JOB_STATE_TUNING";
1332
+ /**
1333
+ * Tuning job is doing some post processing steps.
1334
+ */
1335
+ TuningJobState["TUNING_JOB_STATE_POST_PROCESSING"] = "TUNING_JOB_STATE_POST_PROCESSING";
1336
+ })(TuningJobState || (TuningJobState = {}));
1337
+ /** Aggregation metric. This enum is not supported in Gemini API. */
1338
+ var AggregationMetric;
1339
+ (function (AggregationMetric) {
1340
+ /**
1341
+ * Unspecified aggregation metric.
1342
+ */
1343
+ AggregationMetric["AGGREGATION_METRIC_UNSPECIFIED"] = "AGGREGATION_METRIC_UNSPECIFIED";
1344
+ /**
1345
+ * Average aggregation metric. Not supported for Pairwise metric.
1346
+ */
1347
+ AggregationMetric["AVERAGE"] = "AVERAGE";
1348
+ /**
1349
+ * Mode aggregation metric.
1350
+ */
1351
+ AggregationMetric["MODE"] = "MODE";
1352
+ /**
1353
+ * Standard deviation aggregation metric. Not supported for pairwise metric.
1354
+ */
1355
+ AggregationMetric["STANDARD_DEVIATION"] = "STANDARD_DEVIATION";
1356
+ /**
1357
+ * Variance aggregation metric. Not supported for pairwise metric.
1358
+ */
1359
+ AggregationMetric["VARIANCE"] = "VARIANCE";
1360
+ /**
1361
+ * Minimum aggregation metric. Not supported for pairwise metric.
1362
+ */
1363
+ AggregationMetric["MINIMUM"] = "MINIMUM";
1364
+ /**
1365
+ * Maximum aggregation metric. Not supported for pairwise metric.
1366
+ */
1367
+ AggregationMetric["MAXIMUM"] = "MAXIMUM";
1368
+ /**
1369
+ * Median aggregation metric. Not supported for pairwise metric.
1370
+ */
1371
+ AggregationMetric["MEDIAN"] = "MEDIAN";
1372
+ /**
1373
+ * 90th percentile aggregation metric. Not supported for pairwise metric.
1374
+ */
1375
+ AggregationMetric["PERCENTILE_P90"] = "PERCENTILE_P90";
1376
+ /**
1377
+ * 95th percentile aggregation metric. Not supported for pairwise metric.
1378
+ */
1379
+ AggregationMetric["PERCENTILE_P95"] = "PERCENTILE_P95";
1380
+ /**
1381
+ * 99th percentile aggregation metric. Not supported for pairwise metric.
1382
+ */
1383
+ AggregationMetric["PERCENTILE_P99"] = "PERCENTILE_P99";
1384
+ })(AggregationMetric || (AggregationMetric = {}));
1385
+ /** Output only. Pairwise metric choice. This enum is not supported in Gemini API. */
1386
+ var PairwiseChoice;
1387
+ (function (PairwiseChoice) {
1388
+ /**
1389
+ * Unspecified prediction choice.
1390
+ */
1391
+ PairwiseChoice["PAIRWISE_CHOICE_UNSPECIFIED"] = "PAIRWISE_CHOICE_UNSPECIFIED";
1392
+ /**
1393
+ * Baseline prediction wins
1394
+ */
1395
+ PairwiseChoice["BASELINE"] = "BASELINE";
1396
+ /**
1397
+ * Candidate prediction wins
1398
+ */
1399
+ PairwiseChoice["CANDIDATE"] = "CANDIDATE";
1400
+ /**
1401
+ * Winner cannot be determined
1402
+ */
1403
+ PairwiseChoice["TIE"] = "TIE";
1404
+ })(PairwiseChoice || (PairwiseChoice = {}));
1285
1405
  /** The tuning task. Either I2V or T2V. This enum is not supported in Gemini API. */
1286
1406
  var TuningTask;
1287
1407
  (function (TuningTask) {
@@ -1358,6 +1478,22 @@ var Environment;
1358
1478
  */
1359
1479
  Environment["ENVIRONMENT_BROWSER"] = "ENVIRONMENT_BROWSER";
1360
1480
  })(Environment || (Environment = {}));
1481
+ /** Enum for controlling whether the model can generate images of prominent people (celebrities). */
1482
+ var ProminentPeople;
1483
+ (function (ProminentPeople) {
1484
+ /**
1485
+ * Unspecified value. The model will proceed with the default behavior, which is to allow generation of prominent people.
1486
+ */
1487
+ ProminentPeople["PROMINENT_PEOPLE_UNSPECIFIED"] = "PROMINENT_PEOPLE_UNSPECIFIED";
1488
+ /**
1489
+ * Allows the model to generate images of prominent people.
1490
+ */
1491
+ ProminentPeople["ALLOW_PROMINENT_PEOPLE"] = "ALLOW_PROMINENT_PEOPLE";
1492
+ /**
1493
+ * Prevents the model from generating images of prominent people.
1494
+ */
1495
+ ProminentPeople["BLOCK_PROMINENT_PEOPLE"] = "BLOCK_PROMINENT_PEOPLE";
1496
+ })(ProminentPeople || (ProminentPeople = {}));
1361
1497
  /** Enum representing the Vertex embedding API to use. */
1362
1498
  var EmbeddingApiType;
1363
1499
  (function (EmbeddingApiType) {
@@ -1378,22 +1514,6 @@ var SafetyFilterLevel;
1378
1514
  SafetyFilterLevel["BLOCK_ONLY_HIGH"] = "BLOCK_ONLY_HIGH";
1379
1515
  SafetyFilterLevel["BLOCK_NONE"] = "BLOCK_NONE";
1380
1516
  })(SafetyFilterLevel || (SafetyFilterLevel = {}));
1381
- /** Enum that controls the generation of people. */
1382
- var PersonGeneration;
1383
- (function (PersonGeneration) {
1384
- /**
1385
- * Block generation of images of people.
1386
- */
1387
- PersonGeneration["DONT_ALLOW"] = "DONT_ALLOW";
1388
- /**
1389
- * Generate images of adults, but not children.
1390
- */
1391
- PersonGeneration["ALLOW_ADULT"] = "ALLOW_ADULT";
1392
- /**
1393
- * Generate images that include adults and children.
1394
- */
1395
- PersonGeneration["ALLOW_ALL"] = "ALLOW_ALL";
1396
- })(PersonGeneration || (PersonGeneration = {}));
1397
1517
  /** Enum that specifies the language of the text in the prompt. */
1398
1518
  var ImagePromptLanguage;
1399
1519
  (function (ImagePromptLanguage) {
@@ -2292,6 +2412,9 @@ class GenerateVideosOperation {
2292
2412
  return operation;
2293
2413
  }
2294
2414
  }
2415
+ /** The results from an evaluation run performed by the EvaluationService. This data type is not supported in Gemini API. */
2416
+ class EvaluateDatasetResponse {
2417
+ }
2295
2418
  /** Response for the list tuning jobs method. */
2296
2419
  class ListTuningJobsResponse {
2297
2420
  }
@@ -3411,6 +3534,33 @@ function tIsVertexEmbedContentModel(model) {
3411
3534
  * Copyright 2025 Google LLC
3412
3535
  * SPDX-License-Identifier: Apache-2.0
3413
3536
  */
3537
+ function authConfigToMldev$4(fromObject) {
3538
+ const toObject = {};
3539
+ const fromApiKey = getValueByPath(fromObject, ['apiKey']);
3540
+ if (fromApiKey != null) {
3541
+ setValueByPath(toObject, ['apiKey'], fromApiKey);
3542
+ }
3543
+ if (getValueByPath(fromObject, ['apiKeyConfig']) !== undefined) {
3544
+ throw new Error('apiKeyConfig parameter is not supported in Gemini API.');
3545
+ }
3546
+ if (getValueByPath(fromObject, ['authType']) !== undefined) {
3547
+ throw new Error('authType parameter is not supported in Gemini API.');
3548
+ }
3549
+ if (getValueByPath(fromObject, ['googleServiceAccountConfig']) !==
3550
+ undefined) {
3551
+ throw new Error('googleServiceAccountConfig parameter is not supported in Gemini API.');
3552
+ }
3553
+ if (getValueByPath(fromObject, ['httpBasicAuthConfig']) !== undefined) {
3554
+ throw new Error('httpBasicAuthConfig parameter is not supported in Gemini API.');
3555
+ }
3556
+ if (getValueByPath(fromObject, ['oauthConfig']) !== undefined) {
3557
+ throw new Error('oauthConfig parameter is not supported in Gemini API.');
3558
+ }
3559
+ if (getValueByPath(fromObject, ['oidcConfig']) !== undefined) {
3560
+ throw new Error('oidcConfig parameter is not supported in Gemini API.');
3561
+ }
3562
+ return toObject;
3563
+ }
3414
3564
  function batchJobDestinationFromMldev(fromObject) {
3415
3565
  const toObject = {};
3416
3566
  const fromFileName = getValueByPath(fromObject, ['responsesFile']);
@@ -3716,16 +3866,16 @@ function candidateFromMldev$1(fromObject) {
3716
3866
  if (fromFinishReason != null) {
3717
3867
  setValueByPath(toObject, ['finishReason'], fromFinishReason);
3718
3868
  }
3719
- const fromAvgLogprobs = getValueByPath(fromObject, ['avgLogprobs']);
3720
- if (fromAvgLogprobs != null) {
3721
- setValueByPath(toObject, ['avgLogprobs'], fromAvgLogprobs);
3722
- }
3723
3869
  const fromGroundingMetadata = getValueByPath(fromObject, [
3724
3870
  'groundingMetadata',
3725
3871
  ]);
3726
3872
  if (fromGroundingMetadata != null) {
3727
3873
  setValueByPath(toObject, ['groundingMetadata'], fromGroundingMetadata);
3728
3874
  }
3875
+ const fromAvgLogprobs = getValueByPath(fromObject, ['avgLogprobs']);
3876
+ if (fromAvgLogprobs != null) {
3877
+ setValueByPath(toObject, ['avgLogprobs'], fromAvgLogprobs);
3878
+ }
3729
3879
  const fromIndex = getValueByPath(fromObject, ['index']);
3730
3880
  if (fromIndex != null) {
3731
3881
  setValueByPath(toObject, ['index'], fromIndex);
@@ -4260,8 +4410,9 @@ function getBatchJobParametersToVertex(apiClient, fromObject) {
4260
4410
  }
4261
4411
  function googleMapsToMldev$4(fromObject) {
4262
4412
  const toObject = {};
4263
- if (getValueByPath(fromObject, ['authConfig']) !== undefined) {
4264
- throw new Error('authConfig parameter is not supported in Gemini API.');
4413
+ const fromAuthConfig = getValueByPath(fromObject, ['authConfig']);
4414
+ if (fromAuthConfig != null) {
4415
+ setValueByPath(toObject, ['authConfig'], authConfigToMldev$4(fromAuthConfig));
4265
4416
  }
4266
4417
  const fromEnableWidget = getValueByPath(fromObject, ['enableWidget']);
4267
4418
  if (fromEnableWidget != null) {
@@ -4271,12 +4422,16 @@ function googleMapsToMldev$4(fromObject) {
4271
4422
  }
4272
4423
  function googleSearchToMldev$4(fromObject) {
4273
4424
  const toObject = {};
4274
- if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
4275
- throw new Error('excludeDomains parameter is not supported in Gemini API.');
4425
+ const fromSearchTypes = getValueByPath(fromObject, ['searchTypes']);
4426
+ if (fromSearchTypes != null) {
4427
+ setValueByPath(toObject, ['searchTypes'], fromSearchTypes);
4276
4428
  }
4277
4429
  if (getValueByPath(fromObject, ['blockingConfidence']) !== undefined) {
4278
4430
  throw new Error('blockingConfidence parameter is not supported in Gemini API.');
4279
4431
  }
4432
+ if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
4433
+ throw new Error('excludeDomains parameter is not supported in Gemini API.');
4434
+ }
4280
4435
  const fromTimeRangeFilter = getValueByPath(fromObject, [
4281
4436
  'timeRangeFilter',
4282
4437
  ]);
@@ -4298,6 +4453,9 @@ function imageConfigToMldev$1(fromObject) {
4298
4453
  if (getValueByPath(fromObject, ['personGeneration']) !== undefined) {
4299
4454
  throw new Error('personGeneration parameter is not supported in Gemini API.');
4300
4455
  }
4456
+ if (getValueByPath(fromObject, ['prominentPeople']) !== undefined) {
4457
+ throw new Error('prominentPeople parameter is not supported in Gemini API.');
4458
+ }
4301
4459
  if (getValueByPath(fromObject, ['outputMimeType']) !== undefined) {
4302
4460
  throw new Error('outputMimeType parameter is not supported in Gemini API.');
4303
4461
  }
@@ -4305,6 +4463,9 @@ function imageConfigToMldev$1(fromObject) {
4305
4463
  undefined) {
4306
4464
  throw new Error('outputCompressionQuality parameter is not supported in Gemini API.');
4307
4465
  }
4466
+ if (getValueByPath(fromObject, ['imageOutputOptions']) !== undefined) {
4467
+ throw new Error('imageOutputOptions parameter is not supported in Gemini API.');
4468
+ }
4308
4469
  return toObject;
4309
4470
  }
4310
4471
  function inlinedRequestToMldev(apiClient, fromObject) {
@@ -4554,6 +4715,14 @@ function toolToMldev$4(fromObject) {
4554
4715
  if (fromFileSearch != null) {
4555
4716
  setValueByPath(toObject, ['fileSearch'], fromFileSearch);
4556
4717
  }
4718
+ const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
4719
+ if (fromGoogleSearch != null) {
4720
+ setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$4(fromGoogleSearch));
4721
+ }
4722
+ const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
4723
+ if (fromGoogleMaps != null) {
4724
+ setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$4(fromGoogleMaps));
4725
+ }
4557
4726
  const fromCodeExecution = getValueByPath(fromObject, [
4558
4727
  'codeExecution',
4559
4728
  ]);
@@ -4575,24 +4744,29 @@ function toolToMldev$4(fromObject) {
4575
4744
  }
4576
4745
  setValueByPath(toObject, ['functionDeclarations'], transformedList);
4577
4746
  }
4578
- const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
4579
- if (fromGoogleMaps != null) {
4580
- setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$4(fromGoogleMaps));
4581
- }
4582
- const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
4583
- if (fromGoogleSearch != null) {
4584
- setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$4(fromGoogleSearch));
4585
- }
4586
4747
  const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
4587
4748
  'googleSearchRetrieval',
4588
4749
  ]);
4589
4750
  if (fromGoogleSearchRetrieval != null) {
4590
4751
  setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
4591
4752
  }
4753
+ if (getValueByPath(fromObject, ['parallelAiSearch']) !== undefined) {
4754
+ throw new Error('parallelAiSearch parameter is not supported in Gemini API.');
4755
+ }
4592
4756
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
4593
4757
  if (fromUrlContext != null) {
4594
4758
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
4595
4759
  }
4760
+ const fromMcpServers = getValueByPath(fromObject, ['mcpServers']);
4761
+ if (fromMcpServers != null) {
4762
+ let transformedList = fromMcpServers;
4763
+ if (Array.isArray(transformedList)) {
4764
+ transformedList = transformedList.map((item) => {
4765
+ return item;
4766
+ });
4767
+ }
4768
+ setValueByPath(toObject, ['mcpServers'], transformedList);
4769
+ }
4596
4770
  return toObject;
4597
4771
  }
4598
4772
 
@@ -5288,6 +5462,33 @@ class Batches extends BaseModule {
5288
5462
  * Copyright 2025 Google LLC
5289
5463
  * SPDX-License-Identifier: Apache-2.0
5290
5464
  */
5465
+ function authConfigToMldev$3(fromObject) {
5466
+ const toObject = {};
5467
+ const fromApiKey = getValueByPath(fromObject, ['apiKey']);
5468
+ if (fromApiKey != null) {
5469
+ setValueByPath(toObject, ['apiKey'], fromApiKey);
5470
+ }
5471
+ if (getValueByPath(fromObject, ['apiKeyConfig']) !== undefined) {
5472
+ throw new Error('apiKeyConfig parameter is not supported in Gemini API.');
5473
+ }
5474
+ if (getValueByPath(fromObject, ['authType']) !== undefined) {
5475
+ throw new Error('authType parameter is not supported in Gemini API.');
5476
+ }
5477
+ if (getValueByPath(fromObject, ['googleServiceAccountConfig']) !==
5478
+ undefined) {
5479
+ throw new Error('googleServiceAccountConfig parameter is not supported in Gemini API.');
5480
+ }
5481
+ if (getValueByPath(fromObject, ['httpBasicAuthConfig']) !== undefined) {
5482
+ throw new Error('httpBasicAuthConfig parameter is not supported in Gemini API.');
5483
+ }
5484
+ if (getValueByPath(fromObject, ['oauthConfig']) !== undefined) {
5485
+ throw new Error('oauthConfig parameter is not supported in Gemini API.');
5486
+ }
5487
+ if (getValueByPath(fromObject, ['oidcConfig']) !== undefined) {
5488
+ throw new Error('oidcConfig parameter is not supported in Gemini API.');
5489
+ }
5490
+ return toObject;
5491
+ }
5291
5492
  function blobToMldev$3(fromObject) {
5292
5493
  const toObject = {};
5293
5494
  const fromData = getValueByPath(fromObject, ['data']);
@@ -5588,8 +5789,9 @@ function getCachedContentParametersToVertex(apiClient, fromObject) {
5588
5789
  }
5589
5790
  function googleMapsToMldev$3(fromObject) {
5590
5791
  const toObject = {};
5591
- if (getValueByPath(fromObject, ['authConfig']) !== undefined) {
5592
- throw new Error('authConfig parameter is not supported in Gemini API.');
5792
+ const fromAuthConfig = getValueByPath(fromObject, ['authConfig']);
5793
+ if (fromAuthConfig != null) {
5794
+ setValueByPath(toObject, ['authConfig'], authConfigToMldev$3(fromAuthConfig));
5593
5795
  }
5594
5796
  const fromEnableWidget = getValueByPath(fromObject, ['enableWidget']);
5595
5797
  if (fromEnableWidget != null) {
@@ -5599,12 +5801,16 @@ function googleMapsToMldev$3(fromObject) {
5599
5801
  }
5600
5802
  function googleSearchToMldev$3(fromObject) {
5601
5803
  const toObject = {};
5602
- if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
5603
- throw new Error('excludeDomains parameter is not supported in Gemini API.');
5804
+ const fromSearchTypes = getValueByPath(fromObject, ['searchTypes']);
5805
+ if (fromSearchTypes != null) {
5806
+ setValueByPath(toObject, ['searchTypes'], fromSearchTypes);
5604
5807
  }
5605
5808
  if (getValueByPath(fromObject, ['blockingConfidence']) !== undefined) {
5606
5809
  throw new Error('blockingConfidence parameter is not supported in Gemini API.');
5607
5810
  }
5811
+ if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
5812
+ throw new Error('excludeDomains parameter is not supported in Gemini API.');
5813
+ }
5608
5814
  const fromTimeRangeFilter = getValueByPath(fromObject, [
5609
5815
  'timeRangeFilter',
5610
5816
  ]);
@@ -5798,6 +6004,14 @@ function toolToMldev$3(fromObject) {
5798
6004
  if (fromFileSearch != null) {
5799
6005
  setValueByPath(toObject, ['fileSearch'], fromFileSearch);
5800
6006
  }
6007
+ const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
6008
+ if (fromGoogleSearch != null) {
6009
+ setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$3(fromGoogleSearch));
6010
+ }
6011
+ const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
6012
+ if (fromGoogleMaps != null) {
6013
+ setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$3(fromGoogleMaps));
6014
+ }
5801
6015
  const fromCodeExecution = getValueByPath(fromObject, [
5802
6016
  'codeExecution',
5803
6017
  ]);
@@ -5819,24 +6033,29 @@ function toolToMldev$3(fromObject) {
5819
6033
  }
5820
6034
  setValueByPath(toObject, ['functionDeclarations'], transformedList);
5821
6035
  }
5822
- const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
5823
- if (fromGoogleMaps != null) {
5824
- setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$3(fromGoogleMaps));
5825
- }
5826
- const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
5827
- if (fromGoogleSearch != null) {
5828
- setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$3(fromGoogleSearch));
5829
- }
5830
6036
  const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
5831
6037
  'googleSearchRetrieval',
5832
6038
  ]);
5833
6039
  if (fromGoogleSearchRetrieval != null) {
5834
6040
  setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
5835
6041
  }
6042
+ if (getValueByPath(fromObject, ['parallelAiSearch']) !== undefined) {
6043
+ throw new Error('parallelAiSearch parameter is not supported in Gemini API.');
6044
+ }
5836
6045
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
5837
6046
  if (fromUrlContext != null) {
5838
6047
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
5839
6048
  }
6049
+ const fromMcpServers = getValueByPath(fromObject, ['mcpServers']);
6050
+ if (fromMcpServers != null) {
6051
+ let transformedList = fromMcpServers;
6052
+ if (Array.isArray(transformedList)) {
6053
+ transformedList = transformedList.map((item) => {
6054
+ return item;
6055
+ });
6056
+ }
6057
+ setValueByPath(toObject, ['mcpServers'], transformedList);
6058
+ }
5840
6059
  return toObject;
5841
6060
  }
5842
6061
  function toolToVertex$2(fromObject) {
@@ -5852,6 +6071,14 @@ function toolToVertex$2(fromObject) {
5852
6071
  if (getValueByPath(fromObject, ['fileSearch']) !== undefined) {
5853
6072
  throw new Error('fileSearch parameter is not supported in Vertex AI.');
5854
6073
  }
6074
+ const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
6075
+ if (fromGoogleSearch != null) {
6076
+ setValueByPath(toObject, ['googleSearch'], fromGoogleSearch);
6077
+ }
6078
+ const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
6079
+ if (fromGoogleMaps != null) {
6080
+ setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);
6081
+ }
5855
6082
  const fromCodeExecution = getValueByPath(fromObject, [
5856
6083
  'codeExecution',
5857
6084
  ]);
@@ -5876,24 +6103,25 @@ function toolToVertex$2(fromObject) {
5876
6103
  }
5877
6104
  setValueByPath(toObject, ['functionDeclarations'], transformedList);
5878
6105
  }
5879
- const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
5880
- if (fromGoogleMaps != null) {
5881
- setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);
5882
- }
5883
- const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
5884
- if (fromGoogleSearch != null) {
5885
- setValueByPath(toObject, ['googleSearch'], fromGoogleSearch);
5886
- }
5887
6106
  const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
5888
6107
  'googleSearchRetrieval',
5889
6108
  ]);
5890
6109
  if (fromGoogleSearchRetrieval != null) {
5891
6110
  setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
5892
6111
  }
6112
+ const fromParallelAiSearch = getValueByPath(fromObject, [
6113
+ 'parallelAiSearch',
6114
+ ]);
6115
+ if (fromParallelAiSearch != null) {
6116
+ setValueByPath(toObject, ['parallelAiSearch'], fromParallelAiSearch);
6117
+ }
5893
6118
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
5894
6119
  if (fromUrlContext != null) {
5895
6120
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
5896
6121
  }
6122
+ if (getValueByPath(fromObject, ['mcpServers']) !== undefined) {
6123
+ throw new Error('mcpServers parameter is not supported in Vertex AI.');
6124
+ }
5897
6125
  return toObject;
5898
6126
  }
5899
6127
  function updateCachedContentConfigToMldev(fromObject, parentObject) {
@@ -7181,6 +7409,33 @@ class Files extends BaseModule {
7181
7409
  * Copyright 2025 Google LLC
7182
7410
  * SPDX-License-Identifier: Apache-2.0
7183
7411
  */
7412
+ function authConfigToMldev$2(fromObject) {
7413
+ const toObject = {};
7414
+ const fromApiKey = getValueByPath(fromObject, ['apiKey']);
7415
+ if (fromApiKey != null) {
7416
+ setValueByPath(toObject, ['apiKey'], fromApiKey);
7417
+ }
7418
+ if (getValueByPath(fromObject, ['apiKeyConfig']) !== undefined) {
7419
+ throw new Error('apiKeyConfig parameter is not supported in Gemini API.');
7420
+ }
7421
+ if (getValueByPath(fromObject, ['authType']) !== undefined) {
7422
+ throw new Error('authType parameter is not supported in Gemini API.');
7423
+ }
7424
+ if (getValueByPath(fromObject, ['googleServiceAccountConfig']) !==
7425
+ undefined) {
7426
+ throw new Error('googleServiceAccountConfig parameter is not supported in Gemini API.');
7427
+ }
7428
+ if (getValueByPath(fromObject, ['httpBasicAuthConfig']) !== undefined) {
7429
+ throw new Error('httpBasicAuthConfig parameter is not supported in Gemini API.');
7430
+ }
7431
+ if (getValueByPath(fromObject, ['oauthConfig']) !== undefined) {
7432
+ throw new Error('oauthConfig parameter is not supported in Gemini API.');
7433
+ }
7434
+ if (getValueByPath(fromObject, ['oidcConfig']) !== undefined) {
7435
+ throw new Error('oidcConfig parameter is not supported in Gemini API.');
7436
+ }
7437
+ return toObject;
7438
+ }
7184
7439
  function blobToMldev$2(fromObject) {
7185
7440
  const toObject = {};
7186
7441
  const fromData = getValueByPath(fromObject, ['data']);
@@ -7416,8 +7671,9 @@ function generationConfigToVertex$1(fromObject) {
7416
7671
  }
7417
7672
  function googleMapsToMldev$2(fromObject) {
7418
7673
  const toObject = {};
7419
- if (getValueByPath(fromObject, ['authConfig']) !== undefined) {
7420
- throw new Error('authConfig parameter is not supported in Gemini API.');
7674
+ const fromAuthConfig = getValueByPath(fromObject, ['authConfig']);
7675
+ if (fromAuthConfig != null) {
7676
+ setValueByPath(toObject, ['authConfig'], authConfigToMldev$2(fromAuthConfig));
7421
7677
  }
7422
7678
  const fromEnableWidget = getValueByPath(fromObject, ['enableWidget']);
7423
7679
  if (fromEnableWidget != null) {
@@ -7427,12 +7683,16 @@ function googleMapsToMldev$2(fromObject) {
7427
7683
  }
7428
7684
  function googleSearchToMldev$2(fromObject) {
7429
7685
  const toObject = {};
7430
- if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
7431
- throw new Error('excludeDomains parameter is not supported in Gemini API.');
7686
+ const fromSearchTypes = getValueByPath(fromObject, ['searchTypes']);
7687
+ if (fromSearchTypes != null) {
7688
+ setValueByPath(toObject, ['searchTypes'], fromSearchTypes);
7432
7689
  }
7433
7690
  if (getValueByPath(fromObject, ['blockingConfidence']) !== undefined) {
7434
7691
  throw new Error('blockingConfidence parameter is not supported in Gemini API.');
7435
7692
  }
7693
+ if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
7694
+ throw new Error('excludeDomains parameter is not supported in Gemini API.');
7695
+ }
7436
7696
  const fromTimeRangeFilter = getValueByPath(fromObject, [
7437
7697
  'timeRangeFilter',
7438
7698
  ]);
@@ -7942,6 +8202,14 @@ function toolToMldev$2(fromObject) {
7942
8202
  if (fromFileSearch != null) {
7943
8203
  setValueByPath(toObject, ['fileSearch'], fromFileSearch);
7944
8204
  }
8205
+ const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
8206
+ if (fromGoogleSearch != null) {
8207
+ setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$2(fromGoogleSearch));
8208
+ }
8209
+ const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
8210
+ if (fromGoogleMaps != null) {
8211
+ setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$2(fromGoogleMaps));
8212
+ }
7945
8213
  const fromCodeExecution = getValueByPath(fromObject, [
7946
8214
  'codeExecution',
7947
8215
  ]);
@@ -7963,24 +8231,29 @@ function toolToMldev$2(fromObject) {
7963
8231
  }
7964
8232
  setValueByPath(toObject, ['functionDeclarations'], transformedList);
7965
8233
  }
7966
- const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
7967
- if (fromGoogleMaps != null) {
7968
- setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$2(fromGoogleMaps));
7969
- }
7970
- const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
7971
- if (fromGoogleSearch != null) {
7972
- setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$2(fromGoogleSearch));
7973
- }
7974
8234
  const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
7975
8235
  'googleSearchRetrieval',
7976
8236
  ]);
7977
8237
  if (fromGoogleSearchRetrieval != null) {
7978
8238
  setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
7979
8239
  }
8240
+ if (getValueByPath(fromObject, ['parallelAiSearch']) !== undefined) {
8241
+ throw new Error('parallelAiSearch parameter is not supported in Gemini API.');
8242
+ }
7980
8243
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
7981
8244
  if (fromUrlContext != null) {
7982
8245
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
7983
8246
  }
8247
+ const fromMcpServers = getValueByPath(fromObject, ['mcpServers']);
8248
+ if (fromMcpServers != null) {
8249
+ let transformedList = fromMcpServers;
8250
+ if (Array.isArray(transformedList)) {
8251
+ transformedList = transformedList.map((item) => {
8252
+ return item;
8253
+ });
8254
+ }
8255
+ setValueByPath(toObject, ['mcpServers'], transformedList);
8256
+ }
7984
8257
  return toObject;
7985
8258
  }
7986
8259
  function toolToVertex$1(fromObject) {
@@ -7996,6 +8269,14 @@ function toolToVertex$1(fromObject) {
7996
8269
  if (getValueByPath(fromObject, ['fileSearch']) !== undefined) {
7997
8270
  throw new Error('fileSearch parameter is not supported in Vertex AI.');
7998
8271
  }
8272
+ const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
8273
+ if (fromGoogleSearch != null) {
8274
+ setValueByPath(toObject, ['googleSearch'], fromGoogleSearch);
8275
+ }
8276
+ const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
8277
+ if (fromGoogleMaps != null) {
8278
+ setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);
8279
+ }
7999
8280
  const fromCodeExecution = getValueByPath(fromObject, [
8000
8281
  'codeExecution',
8001
8282
  ]);
@@ -8020,24 +8301,25 @@ function toolToVertex$1(fromObject) {
8020
8301
  }
8021
8302
  setValueByPath(toObject, ['functionDeclarations'], transformedList);
8022
8303
  }
8023
- const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
8024
- if (fromGoogleMaps != null) {
8025
- setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);
8026
- }
8027
- const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
8028
- if (fromGoogleSearch != null) {
8029
- setValueByPath(toObject, ['googleSearch'], fromGoogleSearch);
8030
- }
8031
8304
  const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
8032
8305
  'googleSearchRetrieval',
8033
8306
  ]);
8034
8307
  if (fromGoogleSearchRetrieval != null) {
8035
8308
  setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
8036
8309
  }
8310
+ const fromParallelAiSearch = getValueByPath(fromObject, [
8311
+ 'parallelAiSearch',
8312
+ ]);
8313
+ if (fromParallelAiSearch != null) {
8314
+ setValueByPath(toObject, ['parallelAiSearch'], fromParallelAiSearch);
8315
+ }
8037
8316
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
8038
8317
  if (fromUrlContext != null) {
8039
8318
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
8040
8319
  }
8320
+ if (getValueByPath(fromObject, ['mcpServers']) !== undefined) {
8321
+ throw new Error('mcpServers parameter is not supported in Vertex AI.');
8322
+ }
8041
8323
  return toObject;
8042
8324
  }
8043
8325
  function usageMetadataFromVertex(fromObject) {
@@ -8146,6 +8428,33 @@ function voiceActivityFromVertex(fromObject) {
8146
8428
  * Copyright 2025 Google LLC
8147
8429
  * SPDX-License-Identifier: Apache-2.0
8148
8430
  */
8431
+ function authConfigToMldev$1(fromObject, _rootObject) {
8432
+ const toObject = {};
8433
+ const fromApiKey = getValueByPath(fromObject, ['apiKey']);
8434
+ if (fromApiKey != null) {
8435
+ setValueByPath(toObject, ['apiKey'], fromApiKey);
8436
+ }
8437
+ if (getValueByPath(fromObject, ['apiKeyConfig']) !== undefined) {
8438
+ throw new Error('apiKeyConfig parameter is not supported in Gemini API.');
8439
+ }
8440
+ if (getValueByPath(fromObject, ['authType']) !== undefined) {
8441
+ throw new Error('authType parameter is not supported in Gemini API.');
8442
+ }
8443
+ if (getValueByPath(fromObject, ['googleServiceAccountConfig']) !==
8444
+ undefined) {
8445
+ throw new Error('googleServiceAccountConfig parameter is not supported in Gemini API.');
8446
+ }
8447
+ if (getValueByPath(fromObject, ['httpBasicAuthConfig']) !== undefined) {
8448
+ throw new Error('httpBasicAuthConfig parameter is not supported in Gemini API.');
8449
+ }
8450
+ if (getValueByPath(fromObject, ['oauthConfig']) !== undefined) {
8451
+ throw new Error('oauthConfig parameter is not supported in Gemini API.');
8452
+ }
8453
+ if (getValueByPath(fromObject, ['oidcConfig']) !== undefined) {
8454
+ throw new Error('oidcConfig parameter is not supported in Gemini API.');
8455
+ }
8456
+ return toObject;
8457
+ }
8149
8458
  function blobToMldev$1(fromObject, _rootObject) {
8150
8459
  const toObject = {};
8151
8460
  const fromData = getValueByPath(fromObject, ['data']);
@@ -8181,16 +8490,16 @@ function candidateFromMldev(fromObject, rootObject) {
8181
8490
  if (fromFinishReason != null) {
8182
8491
  setValueByPath(toObject, ['finishReason'], fromFinishReason);
8183
8492
  }
8184
- const fromAvgLogprobs = getValueByPath(fromObject, ['avgLogprobs']);
8185
- if (fromAvgLogprobs != null) {
8186
- setValueByPath(toObject, ['avgLogprobs'], fromAvgLogprobs);
8187
- }
8188
8493
  const fromGroundingMetadata = getValueByPath(fromObject, [
8189
8494
  'groundingMetadata',
8190
8495
  ]);
8191
8496
  if (fromGroundingMetadata != null) {
8192
8497
  setValueByPath(toObject, ['groundingMetadata'], fromGroundingMetadata);
8193
8498
  }
8499
+ const fromAvgLogprobs = getValueByPath(fromObject, ['avgLogprobs']);
8500
+ if (fromAvgLogprobs != null) {
8501
+ setValueByPath(toObject, ['avgLogprobs'], fromAvgLogprobs);
8502
+ }
8194
8503
  const fromIndex = getValueByPath(fromObject, ['index']);
8195
8504
  if (fromIndex != null) {
8196
8505
  setValueByPath(toObject, ['index'], fromIndex);
@@ -10294,10 +10603,11 @@ function getModelParametersToVertex(apiClient, fromObject, _rootObject) {
10294
10603
  }
10295
10604
  return toObject;
10296
10605
  }
10297
- function googleMapsToMldev$1(fromObject, _rootObject) {
10606
+ function googleMapsToMldev$1(fromObject, rootObject) {
10298
10607
  const toObject = {};
10299
- if (getValueByPath(fromObject, ['authConfig']) !== undefined) {
10300
- throw new Error('authConfig parameter is not supported in Gemini API.');
10608
+ const fromAuthConfig = getValueByPath(fromObject, ['authConfig']);
10609
+ if (fromAuthConfig != null) {
10610
+ setValueByPath(toObject, ['authConfig'], authConfigToMldev$1(fromAuthConfig));
10301
10611
  }
10302
10612
  const fromEnableWidget = getValueByPath(fromObject, ['enableWidget']);
10303
10613
  if (fromEnableWidget != null) {
@@ -10307,12 +10617,16 @@ function googleMapsToMldev$1(fromObject, _rootObject) {
10307
10617
  }
10308
10618
  function googleSearchToMldev$1(fromObject, _rootObject) {
10309
10619
  const toObject = {};
10310
- if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
10311
- throw new Error('excludeDomains parameter is not supported in Gemini API.');
10620
+ const fromSearchTypes = getValueByPath(fromObject, ['searchTypes']);
10621
+ if (fromSearchTypes != null) {
10622
+ setValueByPath(toObject, ['searchTypes'], fromSearchTypes);
10312
10623
  }
10313
10624
  if (getValueByPath(fromObject, ['blockingConfidence']) !== undefined) {
10314
10625
  throw new Error('blockingConfidence parameter is not supported in Gemini API.');
10315
10626
  }
10627
+ if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
10628
+ throw new Error('excludeDomains parameter is not supported in Gemini API.');
10629
+ }
10316
10630
  const fromTimeRangeFilter = getValueByPath(fromObject, [
10317
10631
  'timeRangeFilter',
10318
10632
  ]);
@@ -10334,6 +10648,9 @@ function imageConfigToMldev(fromObject, _rootObject) {
10334
10648
  if (getValueByPath(fromObject, ['personGeneration']) !== undefined) {
10335
10649
  throw new Error('personGeneration parameter is not supported in Gemini API.');
10336
10650
  }
10651
+ if (getValueByPath(fromObject, ['prominentPeople']) !== undefined) {
10652
+ throw new Error('prominentPeople parameter is not supported in Gemini API.');
10653
+ }
10337
10654
  if (getValueByPath(fromObject, ['outputMimeType']) !== undefined) {
10338
10655
  throw new Error('outputMimeType parameter is not supported in Gemini API.');
10339
10656
  }
@@ -10341,6 +10658,9 @@ function imageConfigToMldev(fromObject, _rootObject) {
10341
10658
  undefined) {
10342
10659
  throw new Error('outputCompressionQuality parameter is not supported in Gemini API.');
10343
10660
  }
10661
+ if (getValueByPath(fromObject, ['imageOutputOptions']) !== undefined) {
10662
+ throw new Error('imageOutputOptions parameter is not supported in Gemini API.');
10663
+ }
10344
10664
  return toObject;
10345
10665
  }
10346
10666
  function imageConfigToVertex(fromObject, _rootObject) {
@@ -10359,6 +10679,12 @@ function imageConfigToVertex(fromObject, _rootObject) {
10359
10679
  if (fromPersonGeneration != null) {
10360
10680
  setValueByPath(toObject, ['personGeneration'], fromPersonGeneration);
10361
10681
  }
10682
+ const fromProminentPeople = getValueByPath(fromObject, [
10683
+ 'prominentPeople',
10684
+ ]);
10685
+ if (fromProminentPeople != null) {
10686
+ setValueByPath(toObject, ['prominentPeople'], fromProminentPeople);
10687
+ }
10362
10688
  const fromOutputMimeType = getValueByPath(fromObject, [
10363
10689
  'outputMimeType',
10364
10690
  ]);
@@ -10371,6 +10697,12 @@ function imageConfigToVertex(fromObject, _rootObject) {
10371
10697
  if (fromOutputCompressionQuality != null) {
10372
10698
  setValueByPath(toObject, ['imageOutputOptions', 'compressionQuality'], fromOutputCompressionQuality);
10373
10699
  }
10700
+ const fromImageOutputOptions = getValueByPath(fromObject, [
10701
+ 'imageOutputOptions',
10702
+ ]);
10703
+ if (fromImageOutputOptions != null) {
10704
+ setValueByPath(toObject, ['imageOutputOptions'], fromImageOutputOptions);
10705
+ }
10374
10706
  return toObject;
10375
10707
  }
10376
10708
  function imageFromMldev(fromObject, _rootObject) {
@@ -11086,6 +11418,14 @@ function toolToMldev$1(fromObject, rootObject) {
11086
11418
  if (fromFileSearch != null) {
11087
11419
  setValueByPath(toObject, ['fileSearch'], fromFileSearch);
11088
11420
  }
11421
+ const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
11422
+ if (fromGoogleSearch != null) {
11423
+ setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$1(fromGoogleSearch));
11424
+ }
11425
+ const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
11426
+ if (fromGoogleMaps != null) {
11427
+ setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$1(fromGoogleMaps));
11428
+ }
11089
11429
  const fromCodeExecution = getValueByPath(fromObject, [
11090
11430
  'codeExecution',
11091
11431
  ]);
@@ -11107,24 +11447,29 @@ function toolToMldev$1(fromObject, rootObject) {
11107
11447
  }
11108
11448
  setValueByPath(toObject, ['functionDeclarations'], transformedList);
11109
11449
  }
11110
- const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
11111
- if (fromGoogleMaps != null) {
11112
- setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$1(fromGoogleMaps));
11113
- }
11114
- const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
11115
- if (fromGoogleSearch != null) {
11116
- setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$1(fromGoogleSearch));
11117
- }
11118
11450
  const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
11119
11451
  'googleSearchRetrieval',
11120
11452
  ]);
11121
11453
  if (fromGoogleSearchRetrieval != null) {
11122
11454
  setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
11123
11455
  }
11456
+ if (getValueByPath(fromObject, ['parallelAiSearch']) !== undefined) {
11457
+ throw new Error('parallelAiSearch parameter is not supported in Gemini API.');
11458
+ }
11124
11459
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
11125
11460
  if (fromUrlContext != null) {
11126
11461
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
11127
11462
  }
11463
+ const fromMcpServers = getValueByPath(fromObject, ['mcpServers']);
11464
+ if (fromMcpServers != null) {
11465
+ let transformedList = fromMcpServers;
11466
+ if (Array.isArray(transformedList)) {
11467
+ transformedList = transformedList.map((item) => {
11468
+ return item;
11469
+ });
11470
+ }
11471
+ setValueByPath(toObject, ['mcpServers'], transformedList);
11472
+ }
11128
11473
  return toObject;
11129
11474
  }
11130
11475
  function toolToVertex(fromObject, rootObject) {
@@ -11140,6 +11485,14 @@ function toolToVertex(fromObject, rootObject) {
11140
11485
  if (getValueByPath(fromObject, ['fileSearch']) !== undefined) {
11141
11486
  throw new Error('fileSearch parameter is not supported in Vertex AI.');
11142
11487
  }
11488
+ const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
11489
+ if (fromGoogleSearch != null) {
11490
+ setValueByPath(toObject, ['googleSearch'], fromGoogleSearch);
11491
+ }
11492
+ const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
11493
+ if (fromGoogleMaps != null) {
11494
+ setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);
11495
+ }
11143
11496
  const fromCodeExecution = getValueByPath(fromObject, [
11144
11497
  'codeExecution',
11145
11498
  ]);
@@ -11164,24 +11517,25 @@ function toolToVertex(fromObject, rootObject) {
11164
11517
  }
11165
11518
  setValueByPath(toObject, ['functionDeclarations'], transformedList);
11166
11519
  }
11167
- const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
11168
- if (fromGoogleMaps != null) {
11169
- setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);
11170
- }
11171
- const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
11172
- if (fromGoogleSearch != null) {
11173
- setValueByPath(toObject, ['googleSearch'], fromGoogleSearch);
11174
- }
11175
11520
  const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
11176
11521
  'googleSearchRetrieval',
11177
11522
  ]);
11178
11523
  if (fromGoogleSearchRetrieval != null) {
11179
11524
  setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
11180
11525
  }
11526
+ const fromParallelAiSearch = getValueByPath(fromObject, [
11527
+ 'parallelAiSearch',
11528
+ ]);
11529
+ if (fromParallelAiSearch != null) {
11530
+ setValueByPath(toObject, ['parallelAiSearch'], fromParallelAiSearch);
11531
+ }
11181
11532
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
11182
11533
  if (fromUrlContext != null) {
11183
11534
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
11184
11535
  }
11536
+ if (getValueByPath(fromObject, ['mcpServers']) !== undefined) {
11537
+ throw new Error('mcpServers parameter is not supported in Vertex AI.');
11538
+ }
11185
11539
  return toObject;
11186
11540
  }
11187
11541
  function tunedModelInfoFromMldev(fromObject, _rootObject) {
@@ -11738,7 +12092,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
11738
12092
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
11739
12093
  const USER_AGENT_HEADER = 'User-Agent';
11740
12094
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
11741
- const SDK_VERSION = '1.42.0'; // x-release-please-version
12095
+ const SDK_VERSION = '1.44.0'; // x-release-please-version
11742
12096
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
11743
12097
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
11744
12098
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
@@ -11757,6 +12111,9 @@ const DEFAULT_RETRY_HTTP_STATUS_CODES = [
11757
12111
  /**
11758
12112
  * The ApiClient class is used to send requests to the Gemini API or Vertex AI
11759
12113
  * endpoints.
12114
+ *
12115
+ * WARNING: This is an internal API and may change without notice. Direct usage
12116
+ * is not supported and may break your application.
11760
12117
  */
11761
12118
  class ApiClient {
11762
12119
  constructor(opts) {
@@ -11804,10 +12161,7 @@ class ApiClient {
11804
12161
  else {
11805
12162
  // Gemini API
11806
12163
  if (!this.clientOptions.apiKey) {
11807
- throw new ApiError({
11808
- message: 'API key must be set when using the Gemini API.',
11809
- status: 403,
11810
- });
12164
+ console.warn('API key should be set when using the Gemini API.');
11811
12165
  }
11812
12166
  initHttpOptions.apiVersion =
11813
12167
  (_c = this.clientOptions.apiVersion) !== null && _c !== void 0 ? _c : GOOGLE_AI_API_DEFAULT_VERSION;
@@ -15070,6 +15424,33 @@ class Operations extends BaseModule {
15070
15424
  * Copyright 2025 Google LLC
15071
15425
  * SPDX-License-Identifier: Apache-2.0
15072
15426
  */
15427
+ function authConfigToMldev(fromObject) {
15428
+ const toObject = {};
15429
+ const fromApiKey = getValueByPath(fromObject, ['apiKey']);
15430
+ if (fromApiKey != null) {
15431
+ setValueByPath(toObject, ['apiKey'], fromApiKey);
15432
+ }
15433
+ if (getValueByPath(fromObject, ['apiKeyConfig']) !== undefined) {
15434
+ throw new Error('apiKeyConfig parameter is not supported in Gemini API.');
15435
+ }
15436
+ if (getValueByPath(fromObject, ['authType']) !== undefined) {
15437
+ throw new Error('authType parameter is not supported in Gemini API.');
15438
+ }
15439
+ if (getValueByPath(fromObject, ['googleServiceAccountConfig']) !==
15440
+ undefined) {
15441
+ throw new Error('googleServiceAccountConfig parameter is not supported in Gemini API.');
15442
+ }
15443
+ if (getValueByPath(fromObject, ['httpBasicAuthConfig']) !== undefined) {
15444
+ throw new Error('httpBasicAuthConfig parameter is not supported in Gemini API.');
15445
+ }
15446
+ if (getValueByPath(fromObject, ['oauthConfig']) !== undefined) {
15447
+ throw new Error('oauthConfig parameter is not supported in Gemini API.');
15448
+ }
15449
+ if (getValueByPath(fromObject, ['oidcConfig']) !== undefined) {
15450
+ throw new Error('oidcConfig parameter is not supported in Gemini API.');
15451
+ }
15452
+ return toObject;
15453
+ }
15073
15454
  function blobToMldev(fromObject) {
15074
15455
  const toObject = {};
15075
15456
  const fromData = getValueByPath(fromObject, ['data']);
@@ -15180,8 +15561,9 @@ function functionCallToMldev(fromObject) {
15180
15561
  }
15181
15562
  function googleMapsToMldev(fromObject) {
15182
15563
  const toObject = {};
15183
- if (getValueByPath(fromObject, ['authConfig']) !== undefined) {
15184
- throw new Error('authConfig parameter is not supported in Gemini API.');
15564
+ const fromAuthConfig = getValueByPath(fromObject, ['authConfig']);
15565
+ if (fromAuthConfig != null) {
15566
+ setValueByPath(toObject, ['authConfig'], authConfigToMldev(fromAuthConfig));
15185
15567
  }
15186
15568
  const fromEnableWidget = getValueByPath(fromObject, ['enableWidget']);
15187
15569
  if (fromEnableWidget != null) {
@@ -15191,12 +15573,16 @@ function googleMapsToMldev(fromObject) {
15191
15573
  }
15192
15574
  function googleSearchToMldev(fromObject) {
15193
15575
  const toObject = {};
15194
- if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
15195
- throw new Error('excludeDomains parameter is not supported in Gemini API.');
15576
+ const fromSearchTypes = getValueByPath(fromObject, ['searchTypes']);
15577
+ if (fromSearchTypes != null) {
15578
+ setValueByPath(toObject, ['searchTypes'], fromSearchTypes);
15196
15579
  }
15197
15580
  if (getValueByPath(fromObject, ['blockingConfidence']) !== undefined) {
15198
15581
  throw new Error('blockingConfidence parameter is not supported in Gemini API.');
15199
15582
  }
15583
+ if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
15584
+ throw new Error('excludeDomains parameter is not supported in Gemini API.');
15585
+ }
15200
15586
  const fromTimeRangeFilter = getValueByPath(fromObject, [
15201
15587
  'timeRangeFilter',
15202
15588
  ]);
@@ -15414,6 +15800,14 @@ function toolToMldev(fromObject) {
15414
15800
  if (fromFileSearch != null) {
15415
15801
  setValueByPath(toObject, ['fileSearch'], fromFileSearch);
15416
15802
  }
15803
+ const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
15804
+ if (fromGoogleSearch != null) {
15805
+ setValueByPath(toObject, ['googleSearch'], googleSearchToMldev(fromGoogleSearch));
15806
+ }
15807
+ const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
15808
+ if (fromGoogleMaps != null) {
15809
+ setValueByPath(toObject, ['googleMaps'], googleMapsToMldev(fromGoogleMaps));
15810
+ }
15417
15811
  const fromCodeExecution = getValueByPath(fromObject, [
15418
15812
  'codeExecution',
15419
15813
  ]);
@@ -15435,24 +15829,29 @@ function toolToMldev(fromObject) {
15435
15829
  }
15436
15830
  setValueByPath(toObject, ['functionDeclarations'], transformedList);
15437
15831
  }
15438
- const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
15439
- if (fromGoogleMaps != null) {
15440
- setValueByPath(toObject, ['googleMaps'], googleMapsToMldev(fromGoogleMaps));
15441
- }
15442
- const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
15443
- if (fromGoogleSearch != null) {
15444
- setValueByPath(toObject, ['googleSearch'], googleSearchToMldev(fromGoogleSearch));
15445
- }
15446
15832
  const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
15447
15833
  'googleSearchRetrieval',
15448
15834
  ]);
15449
15835
  if (fromGoogleSearchRetrieval != null) {
15450
15836
  setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
15451
15837
  }
15838
+ if (getValueByPath(fromObject, ['parallelAiSearch']) !== undefined) {
15839
+ throw new Error('parallelAiSearch parameter is not supported in Gemini API.');
15840
+ }
15452
15841
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
15453
15842
  if (fromUrlContext != null) {
15454
15843
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
15455
15844
  }
15845
+ const fromMcpServers = getValueByPath(fromObject, ['mcpServers']);
15846
+ if (fromMcpServers != null) {
15847
+ let transformedList = fromMcpServers;
15848
+ if (Array.isArray(transformedList)) {
15849
+ transformedList = transformedList.map((item) => {
15850
+ return item;
15851
+ });
15852
+ }
15853
+ setValueByPath(toObject, ['mcpServers'], transformedList);
15854
+ }
15456
15855
  return toObject;
15457
15856
  }
15458
15857
 
@@ -16439,166 +16838,6 @@ const safeJSON = (text) => {
16439
16838
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
16440
16839
  const sleep$1 = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
16441
16840
 
16442
- /**
16443
- * @license
16444
- * Copyright 2025 Google LLC
16445
- * SPDX-License-Identifier: Apache-2.0
16446
- */
16447
- const VERSION = '0.0.1';
16448
-
16449
- /**
16450
- * @license
16451
- * Copyright 2025 Google LLC
16452
- * SPDX-License-Identifier: Apache-2.0
16453
- */
16454
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
16455
- /**
16456
- * Note this does not detect 'browser'; for that, use getBrowserInfo().
16457
- */
16458
- function getDetectedPlatform() {
16459
- if (typeof Deno !== 'undefined' && Deno.build != null) {
16460
- return 'deno';
16461
- }
16462
- if (typeof EdgeRuntime !== 'undefined') {
16463
- return 'edge';
16464
- }
16465
- if (Object.prototype.toString.call(typeof globalThis.process !== 'undefined' ? globalThis.process : 0) === '[object process]') {
16466
- return 'node';
16467
- }
16468
- return 'unknown';
16469
- }
16470
- const getPlatformProperties = () => {
16471
- var _a, _b, _c, _d, _e;
16472
- const detectedPlatform = getDetectedPlatform();
16473
- if (detectedPlatform === 'deno') {
16474
- return {
16475
- 'X-Stainless-Lang': 'js',
16476
- 'X-Stainless-Package-Version': VERSION,
16477
- 'X-Stainless-OS': normalizePlatform(Deno.build.os),
16478
- 'X-Stainless-Arch': normalizeArch(Deno.build.arch),
16479
- 'X-Stainless-Runtime': 'deno',
16480
- 'X-Stainless-Runtime-Version': typeof Deno.version === 'string' ? Deno.version : (_b = (_a = Deno.version) === null || _a === void 0 ? void 0 : _a.deno) !== null && _b !== void 0 ? _b : 'unknown',
16481
- };
16482
- }
16483
- if (typeof EdgeRuntime !== 'undefined') {
16484
- return {
16485
- 'X-Stainless-Lang': 'js',
16486
- 'X-Stainless-Package-Version': VERSION,
16487
- 'X-Stainless-OS': 'Unknown',
16488
- 'X-Stainless-Arch': `other:${EdgeRuntime}`,
16489
- 'X-Stainless-Runtime': 'edge',
16490
- 'X-Stainless-Runtime-Version': globalThis.process.version,
16491
- };
16492
- }
16493
- // Check if Node.js
16494
- if (detectedPlatform === 'node') {
16495
- return {
16496
- 'X-Stainless-Lang': 'js',
16497
- 'X-Stainless-Package-Version': VERSION,
16498
- 'X-Stainless-OS': normalizePlatform((_c = globalThis.process.platform) !== null && _c !== void 0 ? _c : 'unknown'),
16499
- 'X-Stainless-Arch': normalizeArch((_d = globalThis.process.arch) !== null && _d !== void 0 ? _d : 'unknown'),
16500
- 'X-Stainless-Runtime': 'node',
16501
- 'X-Stainless-Runtime-Version': (_e = globalThis.process.version) !== null && _e !== void 0 ? _e : 'unknown',
16502
- };
16503
- }
16504
- const browserInfo = getBrowserInfo();
16505
- if (browserInfo) {
16506
- return {
16507
- 'X-Stainless-Lang': 'js',
16508
- 'X-Stainless-Package-Version': VERSION,
16509
- 'X-Stainless-OS': 'Unknown',
16510
- 'X-Stainless-Arch': 'unknown',
16511
- 'X-Stainless-Runtime': `browser:${browserInfo.browser}`,
16512
- 'X-Stainless-Runtime-Version': browserInfo.version,
16513
- };
16514
- }
16515
- // TODO add support for Cloudflare workers, etc.
16516
- return {
16517
- 'X-Stainless-Lang': 'js',
16518
- 'X-Stainless-Package-Version': VERSION,
16519
- 'X-Stainless-OS': 'Unknown',
16520
- 'X-Stainless-Arch': 'unknown',
16521
- 'X-Stainless-Runtime': 'unknown',
16522
- 'X-Stainless-Runtime-Version': 'unknown',
16523
- };
16524
- };
16525
- // Note: modified from https://github.com/JS-DevTools/host-environment/blob/b1ab79ecde37db5d6e163c050e54fe7d287d7c92/src/isomorphic.browser.ts
16526
- function getBrowserInfo() {
16527
- if (typeof navigator === 'undefined' || !navigator) {
16528
- return null;
16529
- }
16530
- // NOTE: The order matters here!
16531
- const browserPatterns = [
16532
- { key: 'edge', pattern: /Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ },
16533
- { key: 'ie', pattern: /MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ },
16534
- { key: 'ie', pattern: /Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/ },
16535
- { key: 'chrome', pattern: /Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ },
16536
- { key: 'firefox', pattern: /Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ },
16537
- { key: 'safari', pattern: /(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/ },
16538
- ];
16539
- // Find the FIRST matching browser
16540
- for (const { key, pattern } of browserPatterns) {
16541
- const match = pattern.exec(navigator.userAgent);
16542
- if (match) {
16543
- const major = match[1] || 0;
16544
- const minor = match[2] || 0;
16545
- const patch = match[3] || 0;
16546
- return { browser: key, version: `${major}.${minor}.${patch}` };
16547
- }
16548
- }
16549
- return null;
16550
- }
16551
- const normalizeArch = (arch) => {
16552
- // Node docs:
16553
- // - https://nodejs.org/api/process.html#processarch
16554
- // Deno docs:
16555
- // - https://doc.deno.land/deno/stable/~/Deno.build
16556
- if (arch === 'x32')
16557
- return 'x32';
16558
- if (arch === 'x86_64' || arch === 'x64')
16559
- return 'x64';
16560
- if (arch === 'arm')
16561
- return 'arm';
16562
- if (arch === 'aarch64' || arch === 'arm64')
16563
- return 'arm64';
16564
- if (arch)
16565
- return `other:${arch}`;
16566
- return 'unknown';
16567
- };
16568
- const normalizePlatform = (platform) => {
16569
- // Node platforms:
16570
- // - https://nodejs.org/api/process.html#processplatform
16571
- // Deno platforms:
16572
- // - https://doc.deno.land/deno/stable/~/Deno.build
16573
- // - https://github.com/denoland/deno/issues/14799
16574
- platform = platform.toLowerCase();
16575
- // NOTE: this iOS check is untested and may not work
16576
- // Node does not work natively on IOS, there is a fork at
16577
- // https://github.com/nodejs-mobile/nodejs-mobile
16578
- // however it is unknown at the time of writing how to detect if it is running
16579
- if (platform.includes('ios'))
16580
- return 'iOS';
16581
- if (platform === 'android')
16582
- return 'Android';
16583
- if (platform === 'darwin')
16584
- return 'MacOS';
16585
- if (platform === 'win32')
16586
- return 'Windows';
16587
- if (platform === 'freebsd')
16588
- return 'FreeBSD';
16589
- if (platform === 'openbsd')
16590
- return 'OpenBSD';
16591
- if (platform === 'linux')
16592
- return 'Linux';
16593
- if (platform)
16594
- return `Other:${platform}`;
16595
- return 'Unknown';
16596
- };
16597
- let _platformHeaders;
16598
- const getPlatformHeaders = () => {
16599
- return (_platformHeaders !== null && _platformHeaders !== void 0 ? _platformHeaders : (_platformHeaders = getPlatformProperties()));
16600
- };
16601
-
16602
16841
  /**
16603
16842
  * @license
16604
16843
  * Copyright 2025 Google LLC
@@ -16704,6 +16943,13 @@ const FallbackEncoder = ({ headers, body }) => {
16704
16943
  };
16705
16944
  };
16706
16945
 
16946
+ /**
16947
+ * @license
16948
+ * Copyright 2025 Google LLC
16949
+ * SPDX-License-Identifier: Apache-2.0
16950
+ */
16951
+ const VERSION = '0.0.1';
16952
+
16707
16953
  /**
16708
16954
  * @license
16709
16955
  * Copyright 2025 Google LLC
@@ -16910,14 +17156,17 @@ const createPathTagFunction = (pathEncoder = encodeURIPath) => (function path(st
16910
17156
  return previousValue + currentValue + (index === params.length ? '' : encoded);
16911
17157
  }, '');
16912
17158
  const pathOnly = path.split(/[?#]/, 1)[0];
16913
- const invalidSegmentPattern = /(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi;
17159
+ const invalidSegmentPattern = /(^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi;
16914
17160
  let match;
16915
17161
  // Find all invalid segments
16916
17162
  while ((match = invalidSegmentPattern.exec(pathOnly)) !== null) {
17163
+ const hasLeadingSlash = match[0].startsWith('/');
17164
+ const offset = hasLeadingSlash ? 1 : 0;
17165
+ const cleanMatch = hasLeadingSlash ? match[0].slice(1) : match[0];
16917
17166
  invalidSegments.push({
16918
- start: match.index,
16919
- length: match[0].length,
16920
- error: `Value "${match[0]}" can\'t be safely passed as a path parameter`,
17167
+ start: match.index + offset,
17168
+ length: cleanMatch.length,
17169
+ error: `Value "${cleanMatch}" can\'t be safely passed as a path parameter`,
16921
17170
  });
16922
17171
  }
16923
17172
  invalidSegments.sort((a, b) => a.start - b.start);
@@ -17039,8 +17288,10 @@ class LineDecoder {
17039
17288
  constructor() {
17040
17289
  this.buffer = new Uint8Array();
17041
17290
  this.carriageReturnIndex = null;
17291
+ this.searchIndex = 0;
17042
17292
  }
17043
17293
  decode(chunk) {
17294
+ var _a;
17044
17295
  if (chunk == null) {
17045
17296
  return [];
17046
17297
  }
@@ -17050,7 +17301,7 @@ class LineDecoder {
17050
17301
  this.buffer = concatBytes([this.buffer, binaryChunk]);
17051
17302
  const lines = [];
17052
17303
  let patternIndex;
17053
- while ((patternIndex = findNewlineIndex(this.buffer, this.carriageReturnIndex)) != null) {
17304
+ while ((patternIndex = findNewlineIndex(this.buffer, (_a = this.carriageReturnIndex) !== null && _a !== void 0 ? _a : this.searchIndex)) != null) {
17054
17305
  if (patternIndex.carriage && this.carriageReturnIndex == null) {
17055
17306
  // skip until we either get a corresponding `\n`, a new `\r` or nothing
17056
17307
  this.carriageReturnIndex = patternIndex.index;
@@ -17062,6 +17313,7 @@ class LineDecoder {
17062
17313
  lines.push(decodeUTF8(this.buffer.subarray(0, this.carriageReturnIndex - 1)));
17063
17314
  this.buffer = this.buffer.subarray(this.carriageReturnIndex);
17064
17315
  this.carriageReturnIndex = null;
17316
+ this.searchIndex = 0;
17065
17317
  continue;
17066
17318
  }
17067
17319
  const endIndex = this.carriageReturnIndex !== null ? patternIndex.preceding - 1 : patternIndex.preceding;
@@ -17069,7 +17321,9 @@ class LineDecoder {
17069
17321
  lines.push(line);
17070
17322
  this.buffer = this.buffer.subarray(patternIndex.index);
17071
17323
  this.carriageReturnIndex = null;
17324
+ this.searchIndex = 0;
17072
17325
  }
17326
+ this.searchIndex = Math.max(0, this.buffer.length - 1);
17073
17327
  return lines;
17074
17328
  }
17075
17329
  flush() {
@@ -17094,41 +17348,23 @@ LineDecoder.NEWLINE_REGEXP = /\r\n|[\n\r]/g;
17094
17348
  function findNewlineIndex(buffer, startIndex) {
17095
17349
  const newline = 0x0a; // \n
17096
17350
  const carriage = 0x0d; // \r
17097
- for (let i = startIndex !== null && startIndex !== void 0 ? startIndex : 0; i < buffer.length; i++) {
17098
- if (buffer[i] === newline) {
17099
- return { preceding: i, index: i + 1, carriage: false };
17100
- }
17101
- if (buffer[i] === carriage) {
17102
- return { preceding: i, index: i + 1, carriage: true };
17103
- }
17351
+ const start = startIndex !== null && startIndex !== void 0 ? startIndex : 0;
17352
+ const nextNewline = buffer.indexOf(newline, start);
17353
+ const nextCarriage = buffer.indexOf(carriage, start);
17354
+ if (nextNewline === -1 && nextCarriage === -1) {
17355
+ return null;
17104
17356
  }
17105
- return null;
17106
- }
17107
- function findDoubleNewlineIndex(buffer) {
17108
- // This function searches the buffer for the end patterns (\r\r, \n\n, \r\n\r\n)
17109
- // and returns the index right after the first occurrence of any pattern,
17110
- // or -1 if none of the patterns are found.
17111
- const newline = 0x0a; // \n
17112
- const carriage = 0x0d; // \r
17113
- for (let i = 0; i < buffer.length - 1; i++) {
17114
- if (buffer[i] === newline && buffer[i + 1] === newline) {
17115
- // \n\n
17116
- return i + 2;
17117
- }
17118
- if (buffer[i] === carriage && buffer[i + 1] === carriage) {
17119
- // \r\r
17120
- return i + 2;
17121
- }
17122
- if (buffer[i] === carriage &&
17123
- buffer[i + 1] === newline &&
17124
- i + 3 < buffer.length &&
17125
- buffer[i + 2] === carriage &&
17126
- buffer[i + 3] === newline) {
17127
- // \r\n\r\n
17128
- return i + 4;
17129
- }
17357
+ let i;
17358
+ if (nextNewline !== -1 && nextCarriage !== -1) {
17359
+ i = Math.min(nextNewline, nextCarriage);
17130
17360
  }
17131
- return -1;
17361
+ else {
17362
+ i = nextNewline !== -1 ? nextNewline : nextCarriage;
17363
+ }
17364
+ if (buffer[i] === newline) {
17365
+ return { preceding: i, index: i + 1, carriage: false };
17366
+ }
17367
+ return { preceding: i, index: i + 1, carriage: true };
17132
17368
  }
17133
17369
 
17134
17370
  /**
@@ -17439,7 +17675,7 @@ function _iterSSEMessages(response, controller) {
17439
17675
  const lineDecoder = new LineDecoder();
17440
17676
  const iter = ReadableStreamToAsyncIterable(response.body);
17441
17677
  try {
17442
- for (var _d = true, _e = __asyncValues(iterSSEChunks(iter)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
17678
+ for (var _d = true, _e = __asyncValues(iterBinaryChunks(iter)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
17443
17679
  _c = _f.value;
17444
17680
  _d = false;
17445
17681
  const sseChunk = _c;
@@ -17465,13 +17701,12 @@ function _iterSSEMessages(response, controller) {
17465
17701
  });
17466
17702
  }
17467
17703
  /**
17468
- * Given an async iterable iterator, iterates over it and yields full
17469
- * SSE chunks, i.e. yields when a double new-line is encountered.
17704
+ * Given an async iterable iterator, normalizes each chunk to a
17705
+ * Uint8Array and yields it.
17470
17706
  */
17471
- function iterSSEChunks(iterator) {
17472
- return __asyncGenerator(this, arguments, function* iterSSEChunks_1() {
17707
+ function iterBinaryChunks(iterator) {
17708
+ return __asyncGenerator(this, arguments, function* iterBinaryChunks_1() {
17473
17709
  var _a, e_5, _b, _c;
17474
- let data = new Uint8Array();
17475
17710
  try {
17476
17711
  for (var _d = true, iterator_3 = __asyncValues(iterator), iterator_3_1; iterator_3_1 = yield __await(iterator_3.next()), _a = iterator_3_1.done, !_a; _d = true) {
17477
17712
  _c = iterator_3_1.value;
@@ -17483,15 +17718,7 @@ function iterSSEChunks(iterator) {
17483
17718
  const binaryChunk = chunk instanceof ArrayBuffer ? new Uint8Array(chunk)
17484
17719
  : typeof chunk === 'string' ? encodeUTF8(chunk)
17485
17720
  : chunk;
17486
- let newData = new Uint8Array(data.length + binaryChunk.length);
17487
- newData.set(data);
17488
- newData.set(binaryChunk, data.length);
17489
- data = newData;
17490
- let patternIndex;
17491
- while ((patternIndex = findDoubleNewlineIndex(data)) !== -1) {
17492
- yield yield __await(data.slice(0, patternIndex));
17493
- data = data.slice(patternIndex);
17494
- }
17721
+ yield yield __await(binaryChunk);
17495
17722
  }
17496
17723
  }
17497
17724
  catch (e_5_1) { e_5 = { error: e_5_1 }; }
@@ -17501,9 +17728,6 @@ function iterSSEChunks(iterator) {
17501
17728
  }
17502
17729
  finally { if (e_5) throw e_5.error; }
17503
17730
  }
17504
- if (data.length > 0) {
17505
- yield yield __await(data);
17506
- }
17507
17731
  });
17508
17732
  }
17509
17733
  class SSEDecoder {
@@ -18155,7 +18379,7 @@ class BaseGeminiNextGenAPIClient {
18155
18379
  const authHeaders = await this.authHeaders(options);
18156
18380
  let headers = buildHeaders([
18157
18381
  idempotencyHeaders,
18158
- Object.assign(Object.assign({ Accept: 'application/json', 'User-Agent': this.getUserAgent(), 'X-Stainless-Retry-Count': String(retryCount) }, (options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {})), getPlatformHeaders()),
18382
+ { Accept: 'application/json', 'User-Agent': this.getUserAgent() },
18159
18383
  this._options.defaultHeaders,
18160
18384
  bodyHeaders,
18161
18385
  options.headers,
@@ -18999,10 +19223,28 @@ function tuningJobFromVertex(fromObject, _rootObject) {
18999
19223
  if (fromCustomBaseModel != null) {
19000
19224
  setValueByPath(toObject, ['customBaseModel'], fromCustomBaseModel);
19001
19225
  }
19226
+ const fromEvaluateDatasetRuns = getValueByPath(fromObject, [
19227
+ 'evaluateDatasetRuns',
19228
+ ]);
19229
+ if (fromEvaluateDatasetRuns != null) {
19230
+ let transformedList = fromEvaluateDatasetRuns;
19231
+ if (Array.isArray(transformedList)) {
19232
+ transformedList = transformedList.map((item) => {
19233
+ return item;
19234
+ });
19235
+ }
19236
+ setValueByPath(toObject, ['evaluateDatasetRuns'], transformedList);
19237
+ }
19002
19238
  const fromExperiment = getValueByPath(fromObject, ['experiment']);
19003
19239
  if (fromExperiment != null) {
19004
19240
  setValueByPath(toObject, ['experiment'], fromExperiment);
19005
19241
  }
19242
+ const fromFullFineTuningSpec = getValueByPath(fromObject, [
19243
+ 'fullFineTuningSpec',
19244
+ ]);
19245
+ if (fromFullFineTuningSpec != null) {
19246
+ setValueByPath(toObject, ['fullFineTuningSpec'], fromFullFineTuningSpec);
19247
+ }
19006
19248
  const fromLabels = getValueByPath(fromObject, ['labels']);
19007
19249
  if (fromLabels != null) {
19008
19250
  setValueByPath(toObject, ['labels'], fromLabels);
@@ -19027,6 +19269,12 @@ function tuningJobFromVertex(fromObject, _rootObject) {
19027
19269
  if (fromTunedModelDisplayName != null) {
19028
19270
  setValueByPath(toObject, ['tunedModelDisplayName'], fromTunedModelDisplayName);
19029
19271
  }
19272
+ const fromTuningJobState = getValueByPath(fromObject, [
19273
+ 'tuningJobState',
19274
+ ]);
19275
+ if (fromTuningJobState != null) {
19276
+ setValueByPath(toObject, ['tuningJobState'], fromTuningJobState);
19277
+ }
19030
19278
  const fromVeoTuningSpec = getValueByPath(fromObject, [
19031
19279
  'veoTuningSpec',
19032
19280
  ]);
@@ -19748,5 +19996,5 @@ class GoogleGenAI {
19748
19996
  }
19749
19997
  }
19750
19998
 
19751
- export { ActivityHandling, AdapterSize, 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, 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, ImportFileOperation, ImportFileResponse, InlinedEmbedContentResponse, InlinedResponse, JobState, Language, ListBatchJobsResponse, ListCachedContentsResponse, ListDocumentsResponse, ListFileSearchStoresResponse, ListFilesResponse, ListModelsResponse, ListTuningJobsResponse, Live, LiveClientToolResponse, LiveMusicPlaybackControl, LiveMusicServerMessage, LiveSendToolResponseParameters, LiveServerMessage, MaskReferenceImage, MaskReferenceMode, MediaModality, MediaResolution, Modality, Models, MusicGenerationMode, Operations, Outcome, PagedItem, Pager, PartMediaResolutionLevel, PersonGeneration, PhishBlockThreshold, RawReferenceImage, RecontextImageResponse, RegisterFilesResponse, ReplayResponse, ResourceScope, SafetyFilterLevel, Scale, SegmentImageResponse, SegmentMode, Session, SingleEmbedContentResponse, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, ThinkingLevel, Tokens, TrafficType, TuningMethod, TuningMode, TuningTask, TurnCompleteReason, TurnCoverage, Type, UploadToFileSearchStoreOperation, UploadToFileSearchStoreResponse, UploadToFileSearchStoreResumableResponse, UpscaleImageResponse, UrlRetrievalStatus, VadSignalType, VideoCompressionQuality, VideoGenerationMaskMode, VideoGenerationReferenceType, VoiceActivityType, createFunctionResponsePartFromBase64, createFunctionResponsePartFromUri, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
19999
+ 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, ImportFileOperation, ImportFileResponse, InlinedEmbedContentResponse, InlinedResponse, JobState, Language, ListBatchJobsResponse, ListCachedContentsResponse, ListDocumentsResponse, ListFileSearchStoresResponse, ListFilesResponse, ListModelsResponse, ListTuningJobsResponse, Live, LiveClientToolResponse, LiveMusicPlaybackControl, LiveMusicServerMessage, LiveSendToolResponseParameters, LiveServerMessage, MaskReferenceImage, MaskReferenceMode, MediaModality, MediaResolution, Modality, Models, MusicGenerationMode, Operations, Outcome, PagedItem, Pager, PairwiseChoice, PartMediaResolutionLevel, PersonGeneration, PhishBlockThreshold, ProminentPeople, RawReferenceImage, RecontextImageResponse, RegisterFilesResponse, ReplayResponse, ResourceScope, SafetyFilterLevel, Scale, SegmentImageResponse, SegmentMode, Session, SingleEmbedContentResponse, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, ThinkingLevel, Tokens, TrafficType, TuningJobState, TuningMethod, TuningMode, TuningTask, TurnCompleteReason, TurnCoverage, Type, UploadToFileSearchStoreOperation, UploadToFileSearchStoreResponse, UploadToFileSearchStoreResumableResponse, UpscaleImageResponse, UrlRetrievalStatus, VadSignalType, VideoCompressionQuality, VideoGenerationMaskMode, VideoGenerationReferenceType, VoiceActivityType, createFunctionResponsePartFromBase64, createFunctionResponsePartFromUri, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
19752
20000
  //# sourceMappingURL=index.mjs.map