@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.
package/dist/index.mjs CHANGED
@@ -608,7 +608,7 @@ var FunctionResponseScheduling;
608
608
  */
609
609
  FunctionResponseScheduling["INTERRUPT"] = "INTERRUPT";
610
610
  })(FunctionResponseScheduling || (FunctionResponseScheduling = {}));
611
- /** The type of the data. */
611
+ /** Data type of the schema field. */
612
612
  var Type;
613
613
  (function (Type) {
614
614
  /**
@@ -644,22 +644,38 @@ var Type;
644
644
  */
645
645
  Type["NULL"] = "NULL";
646
646
  })(Type || (Type = {}));
647
- /** The API spec that the external API implements. This enum is not supported in Gemini API. */
648
- var ApiSpec;
649
- (function (ApiSpec) {
647
+ /** Sites with confidence level chosen & above this value will be blocked from the search results. This enum is not supported in Gemini API. */
648
+ var PhishBlockThreshold;
649
+ (function (PhishBlockThreshold) {
650
650
  /**
651
- * Unspecified API spec. This value should not be used.
651
+ * Defaults to unspecified.
652
652
  */
653
- ApiSpec["API_SPEC_UNSPECIFIED"] = "API_SPEC_UNSPECIFIED";
653
+ PhishBlockThreshold["PHISH_BLOCK_THRESHOLD_UNSPECIFIED"] = "PHISH_BLOCK_THRESHOLD_UNSPECIFIED";
654
654
  /**
655
- * Simple search API spec.
655
+ * Blocks Low and above confidence URL that is risky.
656
656
  */
657
- ApiSpec["SIMPLE_SEARCH"] = "SIMPLE_SEARCH";
657
+ PhishBlockThreshold["BLOCK_LOW_AND_ABOVE"] = "BLOCK_LOW_AND_ABOVE";
658
658
  /**
659
- * Elastic search API spec.
659
+ * Blocks Medium and above confidence URL that is risky.
660
660
  */
661
- ApiSpec["ELASTIC_SEARCH"] = "ELASTIC_SEARCH";
662
- })(ApiSpec || (ApiSpec = {}));
661
+ PhishBlockThreshold["BLOCK_MEDIUM_AND_ABOVE"] = "BLOCK_MEDIUM_AND_ABOVE";
662
+ /**
663
+ * Blocks High and above confidence URL that is risky.
664
+ */
665
+ PhishBlockThreshold["BLOCK_HIGH_AND_ABOVE"] = "BLOCK_HIGH_AND_ABOVE";
666
+ /**
667
+ * Blocks Higher and above confidence URL that is risky.
668
+ */
669
+ PhishBlockThreshold["BLOCK_HIGHER_AND_ABOVE"] = "BLOCK_HIGHER_AND_ABOVE";
670
+ /**
671
+ * Blocks Very high and above confidence URL that is risky.
672
+ */
673
+ PhishBlockThreshold["BLOCK_VERY_HIGH_AND_ABOVE"] = "BLOCK_VERY_HIGH_AND_ABOVE";
674
+ /**
675
+ * Blocks Extremely high confidence URL that is risky.
676
+ */
677
+ PhishBlockThreshold["BLOCK_ONLY_EXTREMELY_HIGH"] = "BLOCK_ONLY_EXTREMELY_HIGH";
678
+ })(PhishBlockThreshold || (PhishBlockThreshold = {}));
663
679
  /** Type of auth scheme. This enum is not supported in Gemini API. */
664
680
  var AuthType;
665
681
  (function (AuthType) {
@@ -714,38 +730,22 @@ var HttpElementLocation;
714
730
  */
715
731
  HttpElementLocation["HTTP_IN_COOKIE"] = "HTTP_IN_COOKIE";
716
732
  })(HttpElementLocation || (HttpElementLocation = {}));
717
- /** Sites with confidence level chosen & above this value will be blocked from the search results. This enum is not supported in Gemini API. */
718
- var PhishBlockThreshold;
719
- (function (PhishBlockThreshold) {
720
- /**
721
- * Defaults to unspecified.
722
- */
723
- PhishBlockThreshold["PHISH_BLOCK_THRESHOLD_UNSPECIFIED"] = "PHISH_BLOCK_THRESHOLD_UNSPECIFIED";
724
- /**
725
- * Blocks Low and above confidence URL that is risky.
726
- */
727
- PhishBlockThreshold["BLOCK_LOW_AND_ABOVE"] = "BLOCK_LOW_AND_ABOVE";
728
- /**
729
- * Blocks Medium and above confidence URL that is risky.
730
- */
731
- PhishBlockThreshold["BLOCK_MEDIUM_AND_ABOVE"] = "BLOCK_MEDIUM_AND_ABOVE";
732
- /**
733
- * Blocks High and above confidence URL that is risky.
734
- */
735
- PhishBlockThreshold["BLOCK_HIGH_AND_ABOVE"] = "BLOCK_HIGH_AND_ABOVE";
733
+ /** The API spec that the external API implements. This enum is not supported in Gemini API. */
734
+ var ApiSpec;
735
+ (function (ApiSpec) {
736
736
  /**
737
- * Blocks Higher and above confidence URL that is risky.
737
+ * Unspecified API spec. This value should not be used.
738
738
  */
739
- PhishBlockThreshold["BLOCK_HIGHER_AND_ABOVE"] = "BLOCK_HIGHER_AND_ABOVE";
739
+ ApiSpec["API_SPEC_UNSPECIFIED"] = "API_SPEC_UNSPECIFIED";
740
740
  /**
741
- * Blocks Very high and above confidence URL that is risky.
741
+ * Simple search API spec.
742
742
  */
743
- PhishBlockThreshold["BLOCK_VERY_HIGH_AND_ABOVE"] = "BLOCK_VERY_HIGH_AND_ABOVE";
743
+ ApiSpec["SIMPLE_SEARCH"] = "SIMPLE_SEARCH";
744
744
  /**
745
- * Blocks Extremely high confidence URL that is risky.
745
+ * Elastic search API spec.
746
746
  */
747
- PhishBlockThreshold["BLOCK_ONLY_EXTREMELY_HIGH"] = "BLOCK_ONLY_EXTREMELY_HIGH";
748
- })(PhishBlockThreshold || (PhishBlockThreshold = {}));
747
+ ApiSpec["ELASTIC_SEARCH"] = "ELASTIC_SEARCH";
748
+ })(ApiSpec || (ApiSpec = {}));
749
749
  /** Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. This enum is not supported in Vertex AI. */
750
750
  var Behavior;
751
751
  (function (Behavior) {
@@ -822,27 +822,43 @@ var ThinkingLevel;
822
822
  */
823
823
  ThinkingLevel["MINIMAL"] = "MINIMAL";
824
824
  })(ThinkingLevel || (ThinkingLevel = {}));
825
- /** Harm category. */
825
+ /** Enum that controls the generation of people. */
826
+ var PersonGeneration;
827
+ (function (PersonGeneration) {
828
+ /**
829
+ * Block generation of images of people.
830
+ */
831
+ PersonGeneration["DONT_ALLOW"] = "DONT_ALLOW";
832
+ /**
833
+ * Generate images of adults, but not children.
834
+ */
835
+ PersonGeneration["ALLOW_ADULT"] = "ALLOW_ADULT";
836
+ /**
837
+ * Generate images that include adults and children.
838
+ */
839
+ PersonGeneration["ALLOW_ALL"] = "ALLOW_ALL";
840
+ })(PersonGeneration || (PersonGeneration = {}));
841
+ /** The harm category to be blocked. */
826
842
  var HarmCategory;
827
843
  (function (HarmCategory) {
828
844
  /**
829
- * The harm category is unspecified.
845
+ * Default value. This value is unused.
830
846
  */
831
847
  HarmCategory["HARM_CATEGORY_UNSPECIFIED"] = "HARM_CATEGORY_UNSPECIFIED";
832
848
  /**
833
- * The harm category is harassment.
849
+ * Abusive, threatening, or content intended to bully, torment, or ridicule.
834
850
  */
835
851
  HarmCategory["HARM_CATEGORY_HARASSMENT"] = "HARM_CATEGORY_HARASSMENT";
836
852
  /**
837
- * The harm category is hate speech.
853
+ * Content that promotes violence or incites hatred against individuals or groups based on certain attributes.
838
854
  */
839
855
  HarmCategory["HARM_CATEGORY_HATE_SPEECH"] = "HARM_CATEGORY_HATE_SPEECH";
840
856
  /**
841
- * The harm category is sexually explicit content.
857
+ * Content that contains sexually explicit material.
842
858
  */
843
859
  HarmCategory["HARM_CATEGORY_SEXUALLY_EXPLICIT"] = "HARM_CATEGORY_SEXUALLY_EXPLICIT";
844
860
  /**
845
- * The harm category is dangerous content.
861
+ * Content that promotes, facilitates, or enables dangerous activities.
846
862
  */
847
863
  HarmCategory["HARM_CATEGORY_DANGEROUS_CONTENT"] = "HARM_CATEGORY_DANGEROUS_CONTENT";
848
864
  /**
@@ -850,27 +866,27 @@ var HarmCategory;
850
866
  */
851
867
  HarmCategory["HARM_CATEGORY_CIVIC_INTEGRITY"] = "HARM_CATEGORY_CIVIC_INTEGRITY";
852
868
  /**
853
- * The harm category is image hate. This enum value is not supported in Gemini API.
869
+ * Images that contain hate speech. This enum value is not supported in Gemini API.
854
870
  */
855
871
  HarmCategory["HARM_CATEGORY_IMAGE_HATE"] = "HARM_CATEGORY_IMAGE_HATE";
856
872
  /**
857
- * The harm category is image dangerous content. This enum value is not supported in Gemini API.
873
+ * Images that contain dangerous content. This enum value is not supported in Gemini API.
858
874
  */
859
875
  HarmCategory["HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT"] = "HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT";
860
876
  /**
861
- * The harm category is image harassment. This enum value is not supported in Gemini API.
877
+ * Images that contain harassment. This enum value is not supported in Gemini API.
862
878
  */
863
879
  HarmCategory["HARM_CATEGORY_IMAGE_HARASSMENT"] = "HARM_CATEGORY_IMAGE_HARASSMENT";
864
880
  /**
865
- * The harm category is image sexually explicit content. This enum value is not supported in Gemini API.
881
+ * Images that contain sexually explicit content. This enum value is not supported in Gemini API.
866
882
  */
867
883
  HarmCategory["HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT"] = "HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT";
868
884
  /**
869
- * The harm category is for jailbreak prompts. This enum value is not supported in Gemini API.
885
+ * Prompts designed to bypass safety filters. This enum value is not supported in Gemini API.
870
886
  */
871
887
  HarmCategory["HARM_CATEGORY_JAILBREAK"] = "HARM_CATEGORY_JAILBREAK";
872
888
  })(HarmCategory || (HarmCategory = {}));
873
- /** 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. */
889
+ /** 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. */
874
890
  var HarmBlockMethod;
875
891
  (function (HarmBlockMethod) {
876
892
  /**
@@ -886,31 +902,31 @@ var HarmBlockMethod;
886
902
  */
887
903
  HarmBlockMethod["PROBABILITY"] = "PROBABILITY";
888
904
  })(HarmBlockMethod || (HarmBlockMethod = {}));
889
- /** The harm block threshold. */
905
+ /** The threshold for blocking content. If the harm probability exceeds this threshold, the content will be blocked. */
890
906
  var HarmBlockThreshold;
891
907
  (function (HarmBlockThreshold) {
892
908
  /**
893
- * Unspecified harm block threshold.
909
+ * The harm block threshold is unspecified.
894
910
  */
895
911
  HarmBlockThreshold["HARM_BLOCK_THRESHOLD_UNSPECIFIED"] = "HARM_BLOCK_THRESHOLD_UNSPECIFIED";
896
912
  /**
897
- * Block low threshold and above (i.e. block more).
913
+ * Block content with a low harm probability or higher.
898
914
  */
899
915
  HarmBlockThreshold["BLOCK_LOW_AND_ABOVE"] = "BLOCK_LOW_AND_ABOVE";
900
916
  /**
901
- * Block medium threshold and above.
917
+ * Block content with a medium harm probability or higher.
902
918
  */
903
919
  HarmBlockThreshold["BLOCK_MEDIUM_AND_ABOVE"] = "BLOCK_MEDIUM_AND_ABOVE";
904
920
  /**
905
- * Block only high threshold (i.e. block less).
921
+ * Block content with a high harm probability.
906
922
  */
907
923
  HarmBlockThreshold["BLOCK_ONLY_HIGH"] = "BLOCK_ONLY_HIGH";
908
924
  /**
909
- * Block none.
925
+ * Do not block any content, regardless of its harm probability.
910
926
  */
911
927
  HarmBlockThreshold["BLOCK_NONE"] = "BLOCK_NONE";
912
928
  /**
913
- * Turn off the safety filter.
929
+ * Turn off the safety filter entirely.
914
930
  */
915
931
  HarmBlockThreshold["OFF"] = "OFF";
916
932
  })(HarmBlockThreshold || (HarmBlockThreshold = {}));
@@ -988,55 +1004,55 @@ var FinishReason;
988
1004
  */
989
1005
  FinishReason["IMAGE_OTHER"] = "IMAGE_OTHER";
990
1006
  })(FinishReason || (FinishReason = {}));
991
- /** Output only. Harm probability levels in the content. */
1007
+ /** Output only. The probability of harm for this category. */
992
1008
  var HarmProbability;
993
1009
  (function (HarmProbability) {
994
1010
  /**
995
- * Harm probability unspecified.
1011
+ * The harm probability is unspecified.
996
1012
  */
997
1013
  HarmProbability["HARM_PROBABILITY_UNSPECIFIED"] = "HARM_PROBABILITY_UNSPECIFIED";
998
1014
  /**
999
- * Negligible level of harm.
1015
+ * The harm probability is negligible.
1000
1016
  */
1001
1017
  HarmProbability["NEGLIGIBLE"] = "NEGLIGIBLE";
1002
1018
  /**
1003
- * Low level of harm.
1019
+ * The harm probability is low.
1004
1020
  */
1005
1021
  HarmProbability["LOW"] = "LOW";
1006
1022
  /**
1007
- * Medium level of harm.
1023
+ * The harm probability is medium.
1008
1024
  */
1009
1025
  HarmProbability["MEDIUM"] = "MEDIUM";
1010
1026
  /**
1011
- * High level of harm.
1027
+ * The harm probability is high.
1012
1028
  */
1013
1029
  HarmProbability["HIGH"] = "HIGH";
1014
1030
  })(HarmProbability || (HarmProbability = {}));
1015
- /** Output only. Harm severity levels in the content. This enum is not supported in Gemini API. */
1031
+ /** Output only. The severity of harm for this category. This enum is not supported in Gemini API. */
1016
1032
  var HarmSeverity;
1017
1033
  (function (HarmSeverity) {
1018
1034
  /**
1019
- * Harm severity unspecified.
1035
+ * The harm severity is unspecified.
1020
1036
  */
1021
1037
  HarmSeverity["HARM_SEVERITY_UNSPECIFIED"] = "HARM_SEVERITY_UNSPECIFIED";
1022
1038
  /**
1023
- * Negligible level of harm severity.
1039
+ * The harm severity is negligible.
1024
1040
  */
1025
1041
  HarmSeverity["HARM_SEVERITY_NEGLIGIBLE"] = "HARM_SEVERITY_NEGLIGIBLE";
1026
1042
  /**
1027
- * Low level of harm severity.
1043
+ * The harm severity is low.
1028
1044
  */
1029
1045
  HarmSeverity["HARM_SEVERITY_LOW"] = "HARM_SEVERITY_LOW";
1030
1046
  /**
1031
- * Medium level of harm severity.
1047
+ * The harm severity is medium.
1032
1048
  */
1033
1049
  HarmSeverity["HARM_SEVERITY_MEDIUM"] = "HARM_SEVERITY_MEDIUM";
1034
1050
  /**
1035
- * High level of harm severity.
1051
+ * The harm severity is high.
1036
1052
  */
1037
1053
  HarmSeverity["HARM_SEVERITY_HIGH"] = "HARM_SEVERITY_HIGH";
1038
1054
  })(HarmSeverity || (HarmSeverity = {}));
1039
- /** Status of the url retrieval. */
1055
+ /** The status of the URL retrieval. */
1040
1056
  var UrlRetrievalStatus;
1041
1057
  (function (UrlRetrievalStatus) {
1042
1058
  /**
@@ -1044,11 +1060,11 @@ var UrlRetrievalStatus;
1044
1060
  */
1045
1061
  UrlRetrievalStatus["URL_RETRIEVAL_STATUS_UNSPECIFIED"] = "URL_RETRIEVAL_STATUS_UNSPECIFIED";
1046
1062
  /**
1047
- * Url retrieval is successful.
1063
+ * The URL was retrieved successfully.
1048
1064
  */
1049
1065
  UrlRetrievalStatus["URL_RETRIEVAL_STATUS_SUCCESS"] = "URL_RETRIEVAL_STATUS_SUCCESS";
1050
1066
  /**
1051
- * Url retrieval is failed due to error.
1067
+ * The URL retrieval failed.
1052
1068
  */
1053
1069
  UrlRetrievalStatus["URL_RETRIEVAL_STATUS_ERROR"] = "URL_RETRIEVAL_STATUS_ERROR";
1054
1070
  /**
@@ -1107,6 +1123,14 @@ var TrafficType;
1107
1123
  * The request was processed using Pay-As-You-Go quota.
1108
1124
  */
1109
1125
  TrafficType["ON_DEMAND"] = "ON_DEMAND";
1126
+ /**
1127
+ * Type for Priority Pay-As-You-Go traffic.
1128
+ */
1129
+ TrafficType["ON_DEMAND_PRIORITY"] = "ON_DEMAND_PRIORITY";
1130
+ /**
1131
+ * Type for Flex traffic.
1132
+ */
1133
+ TrafficType["ON_DEMAND_FLEX"] = "ON_DEMAND_FLEX";
1110
1134
  /**
1111
1135
  * Type for Provisioned Throughput traffic.
1112
1136
  */
@@ -1252,6 +1276,102 @@ var JobState;
1252
1276
  */
1253
1277
  JobState["JOB_STATE_PARTIALLY_SUCCEEDED"] = "JOB_STATE_PARTIALLY_SUCCEEDED";
1254
1278
  })(JobState || (JobState = {}));
1279
+ /** Output only. The detail state of the tuning job (while the overall `JobState` is running). This enum is not supported in Gemini API. */
1280
+ var TuningJobState;
1281
+ (function (TuningJobState) {
1282
+ /**
1283
+ * Default tuning job state.
1284
+ */
1285
+ TuningJobState["TUNING_JOB_STATE_UNSPECIFIED"] = "TUNING_JOB_STATE_UNSPECIFIED";
1286
+ /**
1287
+ * Tuning job is waiting for job quota.
1288
+ */
1289
+ TuningJobState["TUNING_JOB_STATE_WAITING_FOR_QUOTA"] = "TUNING_JOB_STATE_WAITING_FOR_QUOTA";
1290
+ /**
1291
+ * Tuning job is validating the dataset.
1292
+ */
1293
+ TuningJobState["TUNING_JOB_STATE_PROCESSING_DATASET"] = "TUNING_JOB_STATE_PROCESSING_DATASET";
1294
+ /**
1295
+ * Tuning job is waiting for hardware capacity.
1296
+ */
1297
+ TuningJobState["TUNING_JOB_STATE_WAITING_FOR_CAPACITY"] = "TUNING_JOB_STATE_WAITING_FOR_CAPACITY";
1298
+ /**
1299
+ * Tuning job is running.
1300
+ */
1301
+ TuningJobState["TUNING_JOB_STATE_TUNING"] = "TUNING_JOB_STATE_TUNING";
1302
+ /**
1303
+ * Tuning job is doing some post processing steps.
1304
+ */
1305
+ TuningJobState["TUNING_JOB_STATE_POST_PROCESSING"] = "TUNING_JOB_STATE_POST_PROCESSING";
1306
+ })(TuningJobState || (TuningJobState = {}));
1307
+ /** Aggregation metric. This enum is not supported in Gemini API. */
1308
+ var AggregationMetric;
1309
+ (function (AggregationMetric) {
1310
+ /**
1311
+ * Unspecified aggregation metric.
1312
+ */
1313
+ AggregationMetric["AGGREGATION_METRIC_UNSPECIFIED"] = "AGGREGATION_METRIC_UNSPECIFIED";
1314
+ /**
1315
+ * Average aggregation metric. Not supported for Pairwise metric.
1316
+ */
1317
+ AggregationMetric["AVERAGE"] = "AVERAGE";
1318
+ /**
1319
+ * Mode aggregation metric.
1320
+ */
1321
+ AggregationMetric["MODE"] = "MODE";
1322
+ /**
1323
+ * Standard deviation aggregation metric. Not supported for pairwise metric.
1324
+ */
1325
+ AggregationMetric["STANDARD_DEVIATION"] = "STANDARD_DEVIATION";
1326
+ /**
1327
+ * Variance aggregation metric. Not supported for pairwise metric.
1328
+ */
1329
+ AggregationMetric["VARIANCE"] = "VARIANCE";
1330
+ /**
1331
+ * Minimum aggregation metric. Not supported for pairwise metric.
1332
+ */
1333
+ AggregationMetric["MINIMUM"] = "MINIMUM";
1334
+ /**
1335
+ * Maximum aggregation metric. Not supported for pairwise metric.
1336
+ */
1337
+ AggregationMetric["MAXIMUM"] = "MAXIMUM";
1338
+ /**
1339
+ * Median aggregation metric. Not supported for pairwise metric.
1340
+ */
1341
+ AggregationMetric["MEDIAN"] = "MEDIAN";
1342
+ /**
1343
+ * 90th percentile aggregation metric. Not supported for pairwise metric.
1344
+ */
1345
+ AggregationMetric["PERCENTILE_P90"] = "PERCENTILE_P90";
1346
+ /**
1347
+ * 95th percentile aggregation metric. Not supported for pairwise metric.
1348
+ */
1349
+ AggregationMetric["PERCENTILE_P95"] = "PERCENTILE_P95";
1350
+ /**
1351
+ * 99th percentile aggregation metric. Not supported for pairwise metric.
1352
+ */
1353
+ AggregationMetric["PERCENTILE_P99"] = "PERCENTILE_P99";
1354
+ })(AggregationMetric || (AggregationMetric = {}));
1355
+ /** Output only. Pairwise metric choice. This enum is not supported in Gemini API. */
1356
+ var PairwiseChoice;
1357
+ (function (PairwiseChoice) {
1358
+ /**
1359
+ * Unspecified prediction choice.
1360
+ */
1361
+ PairwiseChoice["PAIRWISE_CHOICE_UNSPECIFIED"] = "PAIRWISE_CHOICE_UNSPECIFIED";
1362
+ /**
1363
+ * Baseline prediction wins
1364
+ */
1365
+ PairwiseChoice["BASELINE"] = "BASELINE";
1366
+ /**
1367
+ * Candidate prediction wins
1368
+ */
1369
+ PairwiseChoice["CANDIDATE"] = "CANDIDATE";
1370
+ /**
1371
+ * Winner cannot be determined
1372
+ */
1373
+ PairwiseChoice["TIE"] = "TIE";
1374
+ })(PairwiseChoice || (PairwiseChoice = {}));
1255
1375
  /** The tuning task. Either I2V or T2V. This enum is not supported in Gemini API. */
1256
1376
  var TuningTask;
1257
1377
  (function (TuningTask) {
@@ -1328,6 +1448,22 @@ var Environment;
1328
1448
  */
1329
1449
  Environment["ENVIRONMENT_BROWSER"] = "ENVIRONMENT_BROWSER";
1330
1450
  })(Environment || (Environment = {}));
1451
+ /** Enum for controlling whether the model can generate images of prominent people (celebrities). */
1452
+ var ProminentPeople;
1453
+ (function (ProminentPeople) {
1454
+ /**
1455
+ * Unspecified value. The model will proceed with the default behavior, which is to allow generation of prominent people.
1456
+ */
1457
+ ProminentPeople["PROMINENT_PEOPLE_UNSPECIFIED"] = "PROMINENT_PEOPLE_UNSPECIFIED";
1458
+ /**
1459
+ * Allows the model to generate images of prominent people.
1460
+ */
1461
+ ProminentPeople["ALLOW_PROMINENT_PEOPLE"] = "ALLOW_PROMINENT_PEOPLE";
1462
+ /**
1463
+ * Prevents the model from generating images of prominent people.
1464
+ */
1465
+ ProminentPeople["BLOCK_PROMINENT_PEOPLE"] = "BLOCK_PROMINENT_PEOPLE";
1466
+ })(ProminentPeople || (ProminentPeople = {}));
1331
1467
  /** Enum representing the Vertex embedding API to use. */
1332
1468
  var EmbeddingApiType;
1333
1469
  (function (EmbeddingApiType) {
@@ -1348,22 +1484,6 @@ var SafetyFilterLevel;
1348
1484
  SafetyFilterLevel["BLOCK_ONLY_HIGH"] = "BLOCK_ONLY_HIGH";
1349
1485
  SafetyFilterLevel["BLOCK_NONE"] = "BLOCK_NONE";
1350
1486
  })(SafetyFilterLevel || (SafetyFilterLevel = {}));
1351
- /** Enum that controls the generation of people. */
1352
- var PersonGeneration;
1353
- (function (PersonGeneration) {
1354
- /**
1355
- * Block generation of images of people.
1356
- */
1357
- PersonGeneration["DONT_ALLOW"] = "DONT_ALLOW";
1358
- /**
1359
- * Generate images of adults, but not children.
1360
- */
1361
- PersonGeneration["ALLOW_ADULT"] = "ALLOW_ADULT";
1362
- /**
1363
- * Generate images that include adults and children.
1364
- */
1365
- PersonGeneration["ALLOW_ALL"] = "ALLOW_ALL";
1366
- })(PersonGeneration || (PersonGeneration = {}));
1367
1487
  /** Enum that specifies the language of the text in the prompt. */
1368
1488
  var ImagePromptLanguage;
1369
1489
  (function (ImagePromptLanguage) {
@@ -2262,6 +2382,9 @@ class GenerateVideosOperation {
2262
2382
  return operation;
2263
2383
  }
2264
2384
  }
2385
+ /** The results from an evaluation run performed by the EvaluationService. This data type is not supported in Gemini API. */
2386
+ class EvaluateDatasetResponse {
2387
+ }
2265
2388
  /** Response for the list tuning jobs method. */
2266
2389
  class ListTuningJobsResponse {
2267
2390
  }
@@ -3381,6 +3504,33 @@ function tIsVertexEmbedContentModel(model) {
3381
3504
  * Copyright 2025 Google LLC
3382
3505
  * SPDX-License-Identifier: Apache-2.0
3383
3506
  */
3507
+ function authConfigToMldev$4(fromObject) {
3508
+ const toObject = {};
3509
+ const fromApiKey = getValueByPath(fromObject, ['apiKey']);
3510
+ if (fromApiKey != null) {
3511
+ setValueByPath(toObject, ['apiKey'], fromApiKey);
3512
+ }
3513
+ if (getValueByPath(fromObject, ['apiKeyConfig']) !== undefined) {
3514
+ throw new Error('apiKeyConfig parameter is not supported in Gemini API.');
3515
+ }
3516
+ if (getValueByPath(fromObject, ['authType']) !== undefined) {
3517
+ throw new Error('authType parameter is not supported in Gemini API.');
3518
+ }
3519
+ if (getValueByPath(fromObject, ['googleServiceAccountConfig']) !==
3520
+ undefined) {
3521
+ throw new Error('googleServiceAccountConfig parameter is not supported in Gemini API.');
3522
+ }
3523
+ if (getValueByPath(fromObject, ['httpBasicAuthConfig']) !== undefined) {
3524
+ throw new Error('httpBasicAuthConfig parameter is not supported in Gemini API.');
3525
+ }
3526
+ if (getValueByPath(fromObject, ['oauthConfig']) !== undefined) {
3527
+ throw new Error('oauthConfig parameter is not supported in Gemini API.');
3528
+ }
3529
+ if (getValueByPath(fromObject, ['oidcConfig']) !== undefined) {
3530
+ throw new Error('oidcConfig parameter is not supported in Gemini API.');
3531
+ }
3532
+ return toObject;
3533
+ }
3384
3534
  function batchJobDestinationFromMldev(fromObject) {
3385
3535
  const toObject = {};
3386
3536
  const fromFileName = getValueByPath(fromObject, ['responsesFile']);
@@ -3686,16 +3836,16 @@ function candidateFromMldev$1(fromObject) {
3686
3836
  if (fromFinishReason != null) {
3687
3837
  setValueByPath(toObject, ['finishReason'], fromFinishReason);
3688
3838
  }
3689
- const fromAvgLogprobs = getValueByPath(fromObject, ['avgLogprobs']);
3690
- if (fromAvgLogprobs != null) {
3691
- setValueByPath(toObject, ['avgLogprobs'], fromAvgLogprobs);
3692
- }
3693
3839
  const fromGroundingMetadata = getValueByPath(fromObject, [
3694
3840
  'groundingMetadata',
3695
3841
  ]);
3696
3842
  if (fromGroundingMetadata != null) {
3697
3843
  setValueByPath(toObject, ['groundingMetadata'], fromGroundingMetadata);
3698
3844
  }
3845
+ const fromAvgLogprobs = getValueByPath(fromObject, ['avgLogprobs']);
3846
+ if (fromAvgLogprobs != null) {
3847
+ setValueByPath(toObject, ['avgLogprobs'], fromAvgLogprobs);
3848
+ }
3699
3849
  const fromIndex = getValueByPath(fromObject, ['index']);
3700
3850
  if (fromIndex != null) {
3701
3851
  setValueByPath(toObject, ['index'], fromIndex);
@@ -4230,8 +4380,9 @@ function getBatchJobParametersToVertex(apiClient, fromObject) {
4230
4380
  }
4231
4381
  function googleMapsToMldev$4(fromObject) {
4232
4382
  const toObject = {};
4233
- if (getValueByPath(fromObject, ['authConfig']) !== undefined) {
4234
- throw new Error('authConfig parameter is not supported in Gemini API.');
4383
+ const fromAuthConfig = getValueByPath(fromObject, ['authConfig']);
4384
+ if (fromAuthConfig != null) {
4385
+ setValueByPath(toObject, ['authConfig'], authConfigToMldev$4(fromAuthConfig));
4235
4386
  }
4236
4387
  const fromEnableWidget = getValueByPath(fromObject, ['enableWidget']);
4237
4388
  if (fromEnableWidget != null) {
@@ -4241,12 +4392,16 @@ function googleMapsToMldev$4(fromObject) {
4241
4392
  }
4242
4393
  function googleSearchToMldev$4(fromObject) {
4243
4394
  const toObject = {};
4244
- if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
4245
- throw new Error('excludeDomains parameter is not supported in Gemini API.');
4395
+ const fromSearchTypes = getValueByPath(fromObject, ['searchTypes']);
4396
+ if (fromSearchTypes != null) {
4397
+ setValueByPath(toObject, ['searchTypes'], fromSearchTypes);
4246
4398
  }
4247
4399
  if (getValueByPath(fromObject, ['blockingConfidence']) !== undefined) {
4248
4400
  throw new Error('blockingConfidence parameter is not supported in Gemini API.');
4249
4401
  }
4402
+ if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
4403
+ throw new Error('excludeDomains parameter is not supported in Gemini API.');
4404
+ }
4250
4405
  const fromTimeRangeFilter = getValueByPath(fromObject, [
4251
4406
  'timeRangeFilter',
4252
4407
  ]);
@@ -4268,6 +4423,9 @@ function imageConfigToMldev$1(fromObject) {
4268
4423
  if (getValueByPath(fromObject, ['personGeneration']) !== undefined) {
4269
4424
  throw new Error('personGeneration parameter is not supported in Gemini API.');
4270
4425
  }
4426
+ if (getValueByPath(fromObject, ['prominentPeople']) !== undefined) {
4427
+ throw new Error('prominentPeople parameter is not supported in Gemini API.');
4428
+ }
4271
4429
  if (getValueByPath(fromObject, ['outputMimeType']) !== undefined) {
4272
4430
  throw new Error('outputMimeType parameter is not supported in Gemini API.');
4273
4431
  }
@@ -4275,6 +4433,9 @@ function imageConfigToMldev$1(fromObject) {
4275
4433
  undefined) {
4276
4434
  throw new Error('outputCompressionQuality parameter is not supported in Gemini API.');
4277
4435
  }
4436
+ if (getValueByPath(fromObject, ['imageOutputOptions']) !== undefined) {
4437
+ throw new Error('imageOutputOptions parameter is not supported in Gemini API.');
4438
+ }
4278
4439
  return toObject;
4279
4440
  }
4280
4441
  function inlinedRequestToMldev(apiClient, fromObject) {
@@ -4524,6 +4685,14 @@ function toolToMldev$4(fromObject) {
4524
4685
  if (fromFileSearch != null) {
4525
4686
  setValueByPath(toObject, ['fileSearch'], fromFileSearch);
4526
4687
  }
4688
+ const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
4689
+ if (fromGoogleSearch != null) {
4690
+ setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$4(fromGoogleSearch));
4691
+ }
4692
+ const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
4693
+ if (fromGoogleMaps != null) {
4694
+ setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$4(fromGoogleMaps));
4695
+ }
4527
4696
  const fromCodeExecution = getValueByPath(fromObject, [
4528
4697
  'codeExecution',
4529
4698
  ]);
@@ -4545,24 +4714,29 @@ function toolToMldev$4(fromObject) {
4545
4714
  }
4546
4715
  setValueByPath(toObject, ['functionDeclarations'], transformedList);
4547
4716
  }
4548
- const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
4549
- if (fromGoogleMaps != null) {
4550
- setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$4(fromGoogleMaps));
4551
- }
4552
- const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
4553
- if (fromGoogleSearch != null) {
4554
- setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$4(fromGoogleSearch));
4555
- }
4556
4717
  const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
4557
4718
  'googleSearchRetrieval',
4558
4719
  ]);
4559
4720
  if (fromGoogleSearchRetrieval != null) {
4560
4721
  setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
4561
4722
  }
4723
+ if (getValueByPath(fromObject, ['parallelAiSearch']) !== undefined) {
4724
+ throw new Error('parallelAiSearch parameter is not supported in Gemini API.');
4725
+ }
4562
4726
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
4563
4727
  if (fromUrlContext != null) {
4564
4728
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
4565
4729
  }
4730
+ const fromMcpServers = getValueByPath(fromObject, ['mcpServers']);
4731
+ if (fromMcpServers != null) {
4732
+ let transformedList = fromMcpServers;
4733
+ if (Array.isArray(transformedList)) {
4734
+ transformedList = transformedList.map((item) => {
4735
+ return item;
4736
+ });
4737
+ }
4738
+ setValueByPath(toObject, ['mcpServers'], transformedList);
4739
+ }
4566
4740
  return toObject;
4567
4741
  }
4568
4742
 
@@ -5258,6 +5432,33 @@ class Batches extends BaseModule {
5258
5432
  * Copyright 2025 Google LLC
5259
5433
  * SPDX-License-Identifier: Apache-2.0
5260
5434
  */
5435
+ function authConfigToMldev$3(fromObject) {
5436
+ const toObject = {};
5437
+ const fromApiKey = getValueByPath(fromObject, ['apiKey']);
5438
+ if (fromApiKey != null) {
5439
+ setValueByPath(toObject, ['apiKey'], fromApiKey);
5440
+ }
5441
+ if (getValueByPath(fromObject, ['apiKeyConfig']) !== undefined) {
5442
+ throw new Error('apiKeyConfig parameter is not supported in Gemini API.');
5443
+ }
5444
+ if (getValueByPath(fromObject, ['authType']) !== undefined) {
5445
+ throw new Error('authType parameter is not supported in Gemini API.');
5446
+ }
5447
+ if (getValueByPath(fromObject, ['googleServiceAccountConfig']) !==
5448
+ undefined) {
5449
+ throw new Error('googleServiceAccountConfig parameter is not supported in Gemini API.');
5450
+ }
5451
+ if (getValueByPath(fromObject, ['httpBasicAuthConfig']) !== undefined) {
5452
+ throw new Error('httpBasicAuthConfig parameter is not supported in Gemini API.');
5453
+ }
5454
+ if (getValueByPath(fromObject, ['oauthConfig']) !== undefined) {
5455
+ throw new Error('oauthConfig parameter is not supported in Gemini API.');
5456
+ }
5457
+ if (getValueByPath(fromObject, ['oidcConfig']) !== undefined) {
5458
+ throw new Error('oidcConfig parameter is not supported in Gemini API.');
5459
+ }
5460
+ return toObject;
5461
+ }
5261
5462
  function blobToMldev$3(fromObject) {
5262
5463
  const toObject = {};
5263
5464
  const fromData = getValueByPath(fromObject, ['data']);
@@ -5558,8 +5759,9 @@ function getCachedContentParametersToVertex(apiClient, fromObject) {
5558
5759
  }
5559
5760
  function googleMapsToMldev$3(fromObject) {
5560
5761
  const toObject = {};
5561
- if (getValueByPath(fromObject, ['authConfig']) !== undefined) {
5562
- throw new Error('authConfig parameter is not supported in Gemini API.');
5762
+ const fromAuthConfig = getValueByPath(fromObject, ['authConfig']);
5763
+ if (fromAuthConfig != null) {
5764
+ setValueByPath(toObject, ['authConfig'], authConfigToMldev$3(fromAuthConfig));
5563
5765
  }
5564
5766
  const fromEnableWidget = getValueByPath(fromObject, ['enableWidget']);
5565
5767
  if (fromEnableWidget != null) {
@@ -5569,12 +5771,16 @@ function googleMapsToMldev$3(fromObject) {
5569
5771
  }
5570
5772
  function googleSearchToMldev$3(fromObject) {
5571
5773
  const toObject = {};
5572
- if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
5573
- throw new Error('excludeDomains parameter is not supported in Gemini API.');
5774
+ const fromSearchTypes = getValueByPath(fromObject, ['searchTypes']);
5775
+ if (fromSearchTypes != null) {
5776
+ setValueByPath(toObject, ['searchTypes'], fromSearchTypes);
5574
5777
  }
5575
5778
  if (getValueByPath(fromObject, ['blockingConfidence']) !== undefined) {
5576
5779
  throw new Error('blockingConfidence parameter is not supported in Gemini API.');
5577
5780
  }
5781
+ if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
5782
+ throw new Error('excludeDomains parameter is not supported in Gemini API.');
5783
+ }
5578
5784
  const fromTimeRangeFilter = getValueByPath(fromObject, [
5579
5785
  'timeRangeFilter',
5580
5786
  ]);
@@ -5768,6 +5974,14 @@ function toolToMldev$3(fromObject) {
5768
5974
  if (fromFileSearch != null) {
5769
5975
  setValueByPath(toObject, ['fileSearch'], fromFileSearch);
5770
5976
  }
5977
+ const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
5978
+ if (fromGoogleSearch != null) {
5979
+ setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$3(fromGoogleSearch));
5980
+ }
5981
+ const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
5982
+ if (fromGoogleMaps != null) {
5983
+ setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$3(fromGoogleMaps));
5984
+ }
5771
5985
  const fromCodeExecution = getValueByPath(fromObject, [
5772
5986
  'codeExecution',
5773
5987
  ]);
@@ -5789,24 +6003,29 @@ function toolToMldev$3(fromObject) {
5789
6003
  }
5790
6004
  setValueByPath(toObject, ['functionDeclarations'], transformedList);
5791
6005
  }
5792
- const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
5793
- if (fromGoogleMaps != null) {
5794
- setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$3(fromGoogleMaps));
5795
- }
5796
- const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
5797
- if (fromGoogleSearch != null) {
5798
- setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$3(fromGoogleSearch));
5799
- }
5800
6006
  const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
5801
6007
  'googleSearchRetrieval',
5802
6008
  ]);
5803
6009
  if (fromGoogleSearchRetrieval != null) {
5804
6010
  setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
5805
6011
  }
6012
+ if (getValueByPath(fromObject, ['parallelAiSearch']) !== undefined) {
6013
+ throw new Error('parallelAiSearch parameter is not supported in Gemini API.');
6014
+ }
5806
6015
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
5807
6016
  if (fromUrlContext != null) {
5808
6017
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
5809
6018
  }
6019
+ const fromMcpServers = getValueByPath(fromObject, ['mcpServers']);
6020
+ if (fromMcpServers != null) {
6021
+ let transformedList = fromMcpServers;
6022
+ if (Array.isArray(transformedList)) {
6023
+ transformedList = transformedList.map((item) => {
6024
+ return item;
6025
+ });
6026
+ }
6027
+ setValueByPath(toObject, ['mcpServers'], transformedList);
6028
+ }
5810
6029
  return toObject;
5811
6030
  }
5812
6031
  function toolToVertex$2(fromObject) {
@@ -5822,6 +6041,14 @@ function toolToVertex$2(fromObject) {
5822
6041
  if (getValueByPath(fromObject, ['fileSearch']) !== undefined) {
5823
6042
  throw new Error('fileSearch parameter is not supported in Vertex AI.');
5824
6043
  }
6044
+ const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
6045
+ if (fromGoogleSearch != null) {
6046
+ setValueByPath(toObject, ['googleSearch'], fromGoogleSearch);
6047
+ }
6048
+ const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
6049
+ if (fromGoogleMaps != null) {
6050
+ setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);
6051
+ }
5825
6052
  const fromCodeExecution = getValueByPath(fromObject, [
5826
6053
  'codeExecution',
5827
6054
  ]);
@@ -5846,24 +6073,25 @@ function toolToVertex$2(fromObject) {
5846
6073
  }
5847
6074
  setValueByPath(toObject, ['functionDeclarations'], transformedList);
5848
6075
  }
5849
- const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
5850
- if (fromGoogleMaps != null) {
5851
- setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);
5852
- }
5853
- const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
5854
- if (fromGoogleSearch != null) {
5855
- setValueByPath(toObject, ['googleSearch'], fromGoogleSearch);
5856
- }
5857
6076
  const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
5858
6077
  'googleSearchRetrieval',
5859
6078
  ]);
5860
6079
  if (fromGoogleSearchRetrieval != null) {
5861
6080
  setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
5862
6081
  }
6082
+ const fromParallelAiSearch = getValueByPath(fromObject, [
6083
+ 'parallelAiSearch',
6084
+ ]);
6085
+ if (fromParallelAiSearch != null) {
6086
+ setValueByPath(toObject, ['parallelAiSearch'], fromParallelAiSearch);
6087
+ }
5863
6088
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
5864
6089
  if (fromUrlContext != null) {
5865
6090
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
5866
6091
  }
6092
+ if (getValueByPath(fromObject, ['mcpServers']) !== undefined) {
6093
+ throw new Error('mcpServers parameter is not supported in Vertex AI.');
6094
+ }
5867
6095
  return toObject;
5868
6096
  }
5869
6097
  function updateCachedContentConfigToMldev(fromObject, parentObject) {
@@ -6947,7 +7175,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
6947
7175
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
6948
7176
  const USER_AGENT_HEADER = 'User-Agent';
6949
7177
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
6950
- const SDK_VERSION = '1.42.0'; // x-release-please-version
7178
+ const SDK_VERSION = '1.44.0'; // x-release-please-version
6951
7179
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
6952
7180
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
6953
7181
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
@@ -6966,6 +7194,9 @@ const DEFAULT_RETRY_HTTP_STATUS_CODES = [
6966
7194
  /**
6967
7195
  * The ApiClient class is used to send requests to the Gemini API or Vertex AI
6968
7196
  * endpoints.
7197
+ *
7198
+ * WARNING: This is an internal API and may change without notice. Direct usage
7199
+ * is not supported and may break your application.
6969
7200
  */
6970
7201
  class ApiClient {
6971
7202
  constructor(opts) {
@@ -7013,10 +7244,7 @@ class ApiClient {
7013
7244
  else {
7014
7245
  // Gemini API
7015
7246
  if (!this.clientOptions.apiKey) {
7016
- throw new ApiError({
7017
- message: 'API key must be set when using the Gemini API.',
7018
- status: 403,
7019
- });
7247
+ console.warn('API key should be set when using the Gemini API.');
7020
7248
  }
7021
7249
  initHttpOptions.apiVersion =
7022
7250
  (_c = this.clientOptions.apiVersion) !== null && _c !== void 0 ? _c : GOOGLE_AI_API_DEFAULT_VERSION;
@@ -8917,166 +9145,6 @@ const safeJSON = (text) => {
8917
9145
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
8918
9146
  const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
8919
9147
 
8920
- /**
8921
- * @license
8922
- * Copyright 2025 Google LLC
8923
- * SPDX-License-Identifier: Apache-2.0
8924
- */
8925
- const VERSION = '0.0.1';
8926
-
8927
- /**
8928
- * @license
8929
- * Copyright 2025 Google LLC
8930
- * SPDX-License-Identifier: Apache-2.0
8931
- */
8932
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
8933
- /**
8934
- * Note this does not detect 'browser'; for that, use getBrowserInfo().
8935
- */
8936
- function getDetectedPlatform() {
8937
- if (typeof Deno !== 'undefined' && Deno.build != null) {
8938
- return 'deno';
8939
- }
8940
- if (typeof EdgeRuntime !== 'undefined') {
8941
- return 'edge';
8942
- }
8943
- if (Object.prototype.toString.call(typeof globalThis.process !== 'undefined' ? globalThis.process : 0) === '[object process]') {
8944
- return 'node';
8945
- }
8946
- return 'unknown';
8947
- }
8948
- const getPlatformProperties = () => {
8949
- var _a, _b, _c, _d, _e;
8950
- const detectedPlatform = getDetectedPlatform();
8951
- if (detectedPlatform === 'deno') {
8952
- return {
8953
- 'X-Stainless-Lang': 'js',
8954
- 'X-Stainless-Package-Version': VERSION,
8955
- 'X-Stainless-OS': normalizePlatform(Deno.build.os),
8956
- 'X-Stainless-Arch': normalizeArch(Deno.build.arch),
8957
- 'X-Stainless-Runtime': 'deno',
8958
- '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',
8959
- };
8960
- }
8961
- if (typeof EdgeRuntime !== 'undefined') {
8962
- return {
8963
- 'X-Stainless-Lang': 'js',
8964
- 'X-Stainless-Package-Version': VERSION,
8965
- 'X-Stainless-OS': 'Unknown',
8966
- 'X-Stainless-Arch': `other:${EdgeRuntime}`,
8967
- 'X-Stainless-Runtime': 'edge',
8968
- 'X-Stainless-Runtime-Version': globalThis.process.version,
8969
- };
8970
- }
8971
- // Check if Node.js
8972
- if (detectedPlatform === 'node') {
8973
- return {
8974
- 'X-Stainless-Lang': 'js',
8975
- 'X-Stainless-Package-Version': VERSION,
8976
- 'X-Stainless-OS': normalizePlatform((_c = globalThis.process.platform) !== null && _c !== void 0 ? _c : 'unknown'),
8977
- 'X-Stainless-Arch': normalizeArch((_d = globalThis.process.arch) !== null && _d !== void 0 ? _d : 'unknown'),
8978
- 'X-Stainless-Runtime': 'node',
8979
- 'X-Stainless-Runtime-Version': (_e = globalThis.process.version) !== null && _e !== void 0 ? _e : 'unknown',
8980
- };
8981
- }
8982
- const browserInfo = getBrowserInfo();
8983
- if (browserInfo) {
8984
- return {
8985
- 'X-Stainless-Lang': 'js',
8986
- 'X-Stainless-Package-Version': VERSION,
8987
- 'X-Stainless-OS': 'Unknown',
8988
- 'X-Stainless-Arch': 'unknown',
8989
- 'X-Stainless-Runtime': `browser:${browserInfo.browser}`,
8990
- 'X-Stainless-Runtime-Version': browserInfo.version,
8991
- };
8992
- }
8993
- // TODO add support for Cloudflare workers, etc.
8994
- return {
8995
- 'X-Stainless-Lang': 'js',
8996
- 'X-Stainless-Package-Version': VERSION,
8997
- 'X-Stainless-OS': 'Unknown',
8998
- 'X-Stainless-Arch': 'unknown',
8999
- 'X-Stainless-Runtime': 'unknown',
9000
- 'X-Stainless-Runtime-Version': 'unknown',
9001
- };
9002
- };
9003
- // Note: modified from https://github.com/JS-DevTools/host-environment/blob/b1ab79ecde37db5d6e163c050e54fe7d287d7c92/src/isomorphic.browser.ts
9004
- function getBrowserInfo() {
9005
- if (typeof navigator === 'undefined' || !navigator) {
9006
- return null;
9007
- }
9008
- // NOTE: The order matters here!
9009
- const browserPatterns = [
9010
- { key: 'edge', pattern: /Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ },
9011
- { key: 'ie', pattern: /MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ },
9012
- { key: 'ie', pattern: /Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/ },
9013
- { key: 'chrome', pattern: /Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ },
9014
- { key: 'firefox', pattern: /Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ },
9015
- { key: 'safari', pattern: /(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/ },
9016
- ];
9017
- // Find the FIRST matching browser
9018
- for (const { key, pattern } of browserPatterns) {
9019
- const match = pattern.exec(navigator.userAgent);
9020
- if (match) {
9021
- const major = match[1] || 0;
9022
- const minor = match[2] || 0;
9023
- const patch = match[3] || 0;
9024
- return { browser: key, version: `${major}.${minor}.${patch}` };
9025
- }
9026
- }
9027
- return null;
9028
- }
9029
- const normalizeArch = (arch) => {
9030
- // Node docs:
9031
- // - https://nodejs.org/api/process.html#processarch
9032
- // Deno docs:
9033
- // - https://doc.deno.land/deno/stable/~/Deno.build
9034
- if (arch === 'x32')
9035
- return 'x32';
9036
- if (arch === 'x86_64' || arch === 'x64')
9037
- return 'x64';
9038
- if (arch === 'arm')
9039
- return 'arm';
9040
- if (arch === 'aarch64' || arch === 'arm64')
9041
- return 'arm64';
9042
- if (arch)
9043
- return `other:${arch}`;
9044
- return 'unknown';
9045
- };
9046
- const normalizePlatform = (platform) => {
9047
- // Node platforms:
9048
- // - https://nodejs.org/api/process.html#processplatform
9049
- // Deno platforms:
9050
- // - https://doc.deno.land/deno/stable/~/Deno.build
9051
- // - https://github.com/denoland/deno/issues/14799
9052
- platform = platform.toLowerCase();
9053
- // NOTE: this iOS check is untested and may not work
9054
- // Node does not work natively on IOS, there is a fork at
9055
- // https://github.com/nodejs-mobile/nodejs-mobile
9056
- // however it is unknown at the time of writing how to detect if it is running
9057
- if (platform.includes('ios'))
9058
- return 'iOS';
9059
- if (platform === 'android')
9060
- return 'Android';
9061
- if (platform === 'darwin')
9062
- return 'MacOS';
9063
- if (platform === 'win32')
9064
- return 'Windows';
9065
- if (platform === 'freebsd')
9066
- return 'FreeBSD';
9067
- if (platform === 'openbsd')
9068
- return 'OpenBSD';
9069
- if (platform === 'linux')
9070
- return 'Linux';
9071
- if (platform)
9072
- return `Other:${platform}`;
9073
- return 'Unknown';
9074
- };
9075
- let _platformHeaders;
9076
- const getPlatformHeaders = () => {
9077
- return (_platformHeaders !== null && _platformHeaders !== void 0 ? _platformHeaders : (_platformHeaders = getPlatformProperties()));
9078
- };
9079
-
9080
9148
  /**
9081
9149
  * @license
9082
9150
  * Copyright 2025 Google LLC
@@ -9182,6 +9250,13 @@ const FallbackEncoder = ({ headers, body }) => {
9182
9250
  };
9183
9251
  };
9184
9252
 
9253
+ /**
9254
+ * @license
9255
+ * Copyright 2025 Google LLC
9256
+ * SPDX-License-Identifier: Apache-2.0
9257
+ */
9258
+ const VERSION = '0.0.1';
9259
+
9185
9260
  /**
9186
9261
  * @license
9187
9262
  * Copyright 2025 Google LLC
@@ -9388,14 +9463,17 @@ const createPathTagFunction = (pathEncoder = encodeURIPath) => (function path(st
9388
9463
  return previousValue + currentValue + (index === params.length ? '' : encoded);
9389
9464
  }, '');
9390
9465
  const pathOnly = path.split(/[?#]/, 1)[0];
9391
- const invalidSegmentPattern = /(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi;
9466
+ const invalidSegmentPattern = /(^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi;
9392
9467
  let match;
9393
9468
  // Find all invalid segments
9394
9469
  while ((match = invalidSegmentPattern.exec(pathOnly)) !== null) {
9470
+ const hasLeadingSlash = match[0].startsWith('/');
9471
+ const offset = hasLeadingSlash ? 1 : 0;
9472
+ const cleanMatch = hasLeadingSlash ? match[0].slice(1) : match[0];
9395
9473
  invalidSegments.push({
9396
- start: match.index,
9397
- length: match[0].length,
9398
- error: `Value "${match[0]}" can\'t be safely passed as a path parameter`,
9474
+ start: match.index + offset,
9475
+ length: cleanMatch.length,
9476
+ error: `Value "${cleanMatch}" can\'t be safely passed as a path parameter`,
9399
9477
  });
9400
9478
  }
9401
9479
  invalidSegments.sort((a, b) => a.start - b.start);
@@ -9517,8 +9595,10 @@ class LineDecoder {
9517
9595
  constructor() {
9518
9596
  this.buffer = new Uint8Array();
9519
9597
  this.carriageReturnIndex = null;
9598
+ this.searchIndex = 0;
9520
9599
  }
9521
9600
  decode(chunk) {
9601
+ var _a;
9522
9602
  if (chunk == null) {
9523
9603
  return [];
9524
9604
  }
@@ -9528,7 +9608,7 @@ class LineDecoder {
9528
9608
  this.buffer = concatBytes([this.buffer, binaryChunk]);
9529
9609
  const lines = [];
9530
9610
  let patternIndex;
9531
- while ((patternIndex = findNewlineIndex(this.buffer, this.carriageReturnIndex)) != null) {
9611
+ while ((patternIndex = findNewlineIndex(this.buffer, (_a = this.carriageReturnIndex) !== null && _a !== void 0 ? _a : this.searchIndex)) != null) {
9532
9612
  if (patternIndex.carriage && this.carriageReturnIndex == null) {
9533
9613
  // skip until we either get a corresponding `\n`, a new `\r` or nothing
9534
9614
  this.carriageReturnIndex = patternIndex.index;
@@ -9540,6 +9620,7 @@ class LineDecoder {
9540
9620
  lines.push(decodeUTF8(this.buffer.subarray(0, this.carriageReturnIndex - 1)));
9541
9621
  this.buffer = this.buffer.subarray(this.carriageReturnIndex);
9542
9622
  this.carriageReturnIndex = null;
9623
+ this.searchIndex = 0;
9543
9624
  continue;
9544
9625
  }
9545
9626
  const endIndex = this.carriageReturnIndex !== null ? patternIndex.preceding - 1 : patternIndex.preceding;
@@ -9547,7 +9628,9 @@ class LineDecoder {
9547
9628
  lines.push(line);
9548
9629
  this.buffer = this.buffer.subarray(patternIndex.index);
9549
9630
  this.carriageReturnIndex = null;
9631
+ this.searchIndex = 0;
9550
9632
  }
9633
+ this.searchIndex = Math.max(0, this.buffer.length - 1);
9551
9634
  return lines;
9552
9635
  }
9553
9636
  flush() {
@@ -9572,41 +9655,23 @@ LineDecoder.NEWLINE_REGEXP = /\r\n|[\n\r]/g;
9572
9655
  function findNewlineIndex(buffer, startIndex) {
9573
9656
  const newline = 0x0a; // \n
9574
9657
  const carriage = 0x0d; // \r
9575
- for (let i = startIndex !== null && startIndex !== void 0 ? startIndex : 0; i < buffer.length; i++) {
9576
- if (buffer[i] === newline) {
9577
- return { preceding: i, index: i + 1, carriage: false };
9578
- }
9579
- if (buffer[i] === carriage) {
9580
- return { preceding: i, index: i + 1, carriage: true };
9581
- }
9658
+ const start = startIndex !== null && startIndex !== void 0 ? startIndex : 0;
9659
+ const nextNewline = buffer.indexOf(newline, start);
9660
+ const nextCarriage = buffer.indexOf(carriage, start);
9661
+ if (nextNewline === -1 && nextCarriage === -1) {
9662
+ return null;
9582
9663
  }
9583
- return null;
9584
- }
9585
- function findDoubleNewlineIndex(buffer) {
9586
- // This function searches the buffer for the end patterns (\r\r, \n\n, \r\n\r\n)
9587
- // and returns the index right after the first occurrence of any pattern,
9588
- // or -1 if none of the patterns are found.
9589
- const newline = 0x0a; // \n
9590
- const carriage = 0x0d; // \r
9591
- for (let i = 0; i < buffer.length - 1; i++) {
9592
- if (buffer[i] === newline && buffer[i + 1] === newline) {
9593
- // \n\n
9594
- return i + 2;
9595
- }
9596
- if (buffer[i] === carriage && buffer[i + 1] === carriage) {
9597
- // \r\r
9598
- return i + 2;
9599
- }
9600
- if (buffer[i] === carriage &&
9601
- buffer[i + 1] === newline &&
9602
- i + 3 < buffer.length &&
9603
- buffer[i + 2] === carriage &&
9604
- buffer[i + 3] === newline) {
9605
- // \r\n\r\n
9606
- return i + 4;
9607
- }
9664
+ let i;
9665
+ if (nextNewline !== -1 && nextCarriage !== -1) {
9666
+ i = Math.min(nextNewline, nextCarriage);
9667
+ }
9668
+ else {
9669
+ i = nextNewline !== -1 ? nextNewline : nextCarriage;
9670
+ }
9671
+ if (buffer[i] === newline) {
9672
+ return { preceding: i, index: i + 1, carriage: false };
9608
9673
  }
9609
- return -1;
9674
+ return { preceding: i, index: i + 1, carriage: true };
9610
9675
  }
9611
9676
 
9612
9677
  /**
@@ -9917,7 +9982,7 @@ function _iterSSEMessages(response, controller) {
9917
9982
  const lineDecoder = new LineDecoder();
9918
9983
  const iter = ReadableStreamToAsyncIterable(response.body);
9919
9984
  try {
9920
- for (var _d = true, _e = __asyncValues(iterSSEChunks(iter)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
9985
+ for (var _d = true, _e = __asyncValues(iterBinaryChunks(iter)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
9921
9986
  _c = _f.value;
9922
9987
  _d = false;
9923
9988
  const sseChunk = _c;
@@ -9943,13 +10008,12 @@ function _iterSSEMessages(response, controller) {
9943
10008
  });
9944
10009
  }
9945
10010
  /**
9946
- * Given an async iterable iterator, iterates over it and yields full
9947
- * SSE chunks, i.e. yields when a double new-line is encountered.
10011
+ * Given an async iterable iterator, normalizes each chunk to a
10012
+ * Uint8Array and yields it.
9948
10013
  */
9949
- function iterSSEChunks(iterator) {
9950
- return __asyncGenerator(this, arguments, function* iterSSEChunks_1() {
10014
+ function iterBinaryChunks(iterator) {
10015
+ return __asyncGenerator(this, arguments, function* iterBinaryChunks_1() {
9951
10016
  var _a, e_5, _b, _c;
9952
- let data = new Uint8Array();
9953
10017
  try {
9954
10018
  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) {
9955
10019
  _c = iterator_3_1.value;
@@ -9961,15 +10025,7 @@ function iterSSEChunks(iterator) {
9961
10025
  const binaryChunk = chunk instanceof ArrayBuffer ? new Uint8Array(chunk)
9962
10026
  : typeof chunk === 'string' ? encodeUTF8(chunk)
9963
10027
  : chunk;
9964
- let newData = new Uint8Array(data.length + binaryChunk.length);
9965
- newData.set(data);
9966
- newData.set(binaryChunk, data.length);
9967
- data = newData;
9968
- let patternIndex;
9969
- while ((patternIndex = findDoubleNewlineIndex(data)) !== -1) {
9970
- yield yield __await(data.slice(0, patternIndex));
9971
- data = data.slice(patternIndex);
9972
- }
10028
+ yield yield __await(binaryChunk);
9973
10029
  }
9974
10030
  }
9975
10031
  catch (e_5_1) { e_5 = { error: e_5_1 }; }
@@ -9979,9 +10035,6 @@ function iterSSEChunks(iterator) {
9979
10035
  }
9980
10036
  finally { if (e_5) throw e_5.error; }
9981
10037
  }
9982
- if (data.length > 0) {
9983
- yield yield __await(data);
9984
- }
9985
10038
  });
9986
10039
  }
9987
10040
  class SSEDecoder {
@@ -10633,7 +10686,7 @@ class BaseGeminiNextGenAPIClient {
10633
10686
  const authHeaders = await this.authHeaders(options);
10634
10687
  let headers = buildHeaders([
10635
10688
  idempotencyHeaders,
10636
- 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()),
10689
+ { Accept: 'application/json', 'User-Agent': this.getUserAgent() },
10637
10690
  this._options.defaultHeaders,
10638
10691
  bodyHeaders,
10639
10692
  options.headers,
@@ -10720,6 +10773,33 @@ GeminiNextGenAPIClient.Interactions = Interactions;
10720
10773
  * Copyright 2025 Google LLC
10721
10774
  * SPDX-License-Identifier: Apache-2.0
10722
10775
  */
10776
+ function authConfigToMldev$2(fromObject) {
10777
+ const toObject = {};
10778
+ const fromApiKey = getValueByPath(fromObject, ['apiKey']);
10779
+ if (fromApiKey != null) {
10780
+ setValueByPath(toObject, ['apiKey'], fromApiKey);
10781
+ }
10782
+ if (getValueByPath(fromObject, ['apiKeyConfig']) !== undefined) {
10783
+ throw new Error('apiKeyConfig parameter is not supported in Gemini API.');
10784
+ }
10785
+ if (getValueByPath(fromObject, ['authType']) !== undefined) {
10786
+ throw new Error('authType parameter is not supported in Gemini API.');
10787
+ }
10788
+ if (getValueByPath(fromObject, ['googleServiceAccountConfig']) !==
10789
+ undefined) {
10790
+ throw new Error('googleServiceAccountConfig parameter is not supported in Gemini API.');
10791
+ }
10792
+ if (getValueByPath(fromObject, ['httpBasicAuthConfig']) !== undefined) {
10793
+ throw new Error('httpBasicAuthConfig parameter is not supported in Gemini API.');
10794
+ }
10795
+ if (getValueByPath(fromObject, ['oauthConfig']) !== undefined) {
10796
+ throw new Error('oauthConfig parameter is not supported in Gemini API.');
10797
+ }
10798
+ if (getValueByPath(fromObject, ['oidcConfig']) !== undefined) {
10799
+ throw new Error('oidcConfig parameter is not supported in Gemini API.');
10800
+ }
10801
+ return toObject;
10802
+ }
10723
10803
  function blobToMldev$2(fromObject) {
10724
10804
  const toObject = {};
10725
10805
  const fromData = getValueByPath(fromObject, ['data']);
@@ -10955,8 +11035,9 @@ function generationConfigToVertex$1(fromObject) {
10955
11035
  }
10956
11036
  function googleMapsToMldev$2(fromObject) {
10957
11037
  const toObject = {};
10958
- if (getValueByPath(fromObject, ['authConfig']) !== undefined) {
10959
- throw new Error('authConfig parameter is not supported in Gemini API.');
11038
+ const fromAuthConfig = getValueByPath(fromObject, ['authConfig']);
11039
+ if (fromAuthConfig != null) {
11040
+ setValueByPath(toObject, ['authConfig'], authConfigToMldev$2(fromAuthConfig));
10960
11041
  }
10961
11042
  const fromEnableWidget = getValueByPath(fromObject, ['enableWidget']);
10962
11043
  if (fromEnableWidget != null) {
@@ -10966,12 +11047,16 @@ function googleMapsToMldev$2(fromObject) {
10966
11047
  }
10967
11048
  function googleSearchToMldev$2(fromObject) {
10968
11049
  const toObject = {};
10969
- if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
10970
- throw new Error('excludeDomains parameter is not supported in Gemini API.');
11050
+ const fromSearchTypes = getValueByPath(fromObject, ['searchTypes']);
11051
+ if (fromSearchTypes != null) {
11052
+ setValueByPath(toObject, ['searchTypes'], fromSearchTypes);
10971
11053
  }
10972
11054
  if (getValueByPath(fromObject, ['blockingConfidence']) !== undefined) {
10973
11055
  throw new Error('blockingConfidence parameter is not supported in Gemini API.');
10974
11056
  }
11057
+ if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
11058
+ throw new Error('excludeDomains parameter is not supported in Gemini API.');
11059
+ }
10975
11060
  const fromTimeRangeFilter = getValueByPath(fromObject, [
10976
11061
  'timeRangeFilter',
10977
11062
  ]);
@@ -11481,6 +11566,14 @@ function toolToMldev$2(fromObject) {
11481
11566
  if (fromFileSearch != null) {
11482
11567
  setValueByPath(toObject, ['fileSearch'], fromFileSearch);
11483
11568
  }
11569
+ const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
11570
+ if (fromGoogleSearch != null) {
11571
+ setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$2(fromGoogleSearch));
11572
+ }
11573
+ const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
11574
+ if (fromGoogleMaps != null) {
11575
+ setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$2(fromGoogleMaps));
11576
+ }
11484
11577
  const fromCodeExecution = getValueByPath(fromObject, [
11485
11578
  'codeExecution',
11486
11579
  ]);
@@ -11502,24 +11595,29 @@ function toolToMldev$2(fromObject) {
11502
11595
  }
11503
11596
  setValueByPath(toObject, ['functionDeclarations'], transformedList);
11504
11597
  }
11505
- const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
11506
- if (fromGoogleMaps != null) {
11507
- setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$2(fromGoogleMaps));
11508
- }
11509
- const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
11510
- if (fromGoogleSearch != null) {
11511
- setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$2(fromGoogleSearch));
11512
- }
11513
11598
  const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
11514
11599
  'googleSearchRetrieval',
11515
11600
  ]);
11516
11601
  if (fromGoogleSearchRetrieval != null) {
11517
11602
  setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
11518
11603
  }
11604
+ if (getValueByPath(fromObject, ['parallelAiSearch']) !== undefined) {
11605
+ throw new Error('parallelAiSearch parameter is not supported in Gemini API.');
11606
+ }
11519
11607
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
11520
11608
  if (fromUrlContext != null) {
11521
11609
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
11522
11610
  }
11611
+ const fromMcpServers = getValueByPath(fromObject, ['mcpServers']);
11612
+ if (fromMcpServers != null) {
11613
+ let transformedList = fromMcpServers;
11614
+ if (Array.isArray(transformedList)) {
11615
+ transformedList = transformedList.map((item) => {
11616
+ return item;
11617
+ });
11618
+ }
11619
+ setValueByPath(toObject, ['mcpServers'], transformedList);
11620
+ }
11523
11621
  return toObject;
11524
11622
  }
11525
11623
  function toolToVertex$1(fromObject) {
@@ -11535,6 +11633,14 @@ function toolToVertex$1(fromObject) {
11535
11633
  if (getValueByPath(fromObject, ['fileSearch']) !== undefined) {
11536
11634
  throw new Error('fileSearch parameter is not supported in Vertex AI.');
11537
11635
  }
11636
+ const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
11637
+ if (fromGoogleSearch != null) {
11638
+ setValueByPath(toObject, ['googleSearch'], fromGoogleSearch);
11639
+ }
11640
+ const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
11641
+ if (fromGoogleMaps != null) {
11642
+ setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);
11643
+ }
11538
11644
  const fromCodeExecution = getValueByPath(fromObject, [
11539
11645
  'codeExecution',
11540
11646
  ]);
@@ -11559,24 +11665,25 @@ function toolToVertex$1(fromObject) {
11559
11665
  }
11560
11666
  setValueByPath(toObject, ['functionDeclarations'], transformedList);
11561
11667
  }
11562
- const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
11563
- if (fromGoogleMaps != null) {
11564
- setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);
11565
- }
11566
- const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
11567
- if (fromGoogleSearch != null) {
11568
- setValueByPath(toObject, ['googleSearch'], fromGoogleSearch);
11569
- }
11570
11668
  const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
11571
11669
  'googleSearchRetrieval',
11572
11670
  ]);
11573
11671
  if (fromGoogleSearchRetrieval != null) {
11574
11672
  setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
11575
11673
  }
11674
+ const fromParallelAiSearch = getValueByPath(fromObject, [
11675
+ 'parallelAiSearch',
11676
+ ]);
11677
+ if (fromParallelAiSearch != null) {
11678
+ setValueByPath(toObject, ['parallelAiSearch'], fromParallelAiSearch);
11679
+ }
11576
11680
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
11577
11681
  if (fromUrlContext != null) {
11578
11682
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
11579
11683
  }
11684
+ if (getValueByPath(fromObject, ['mcpServers']) !== undefined) {
11685
+ throw new Error('mcpServers parameter is not supported in Vertex AI.');
11686
+ }
11580
11687
  return toObject;
11581
11688
  }
11582
11689
  function usageMetadataFromVertex(fromObject) {
@@ -11685,6 +11792,33 @@ function voiceActivityFromVertex(fromObject) {
11685
11792
  * Copyright 2025 Google LLC
11686
11793
  * SPDX-License-Identifier: Apache-2.0
11687
11794
  */
11795
+ function authConfigToMldev$1(fromObject, _rootObject) {
11796
+ const toObject = {};
11797
+ const fromApiKey = getValueByPath(fromObject, ['apiKey']);
11798
+ if (fromApiKey != null) {
11799
+ setValueByPath(toObject, ['apiKey'], fromApiKey);
11800
+ }
11801
+ if (getValueByPath(fromObject, ['apiKeyConfig']) !== undefined) {
11802
+ throw new Error('apiKeyConfig parameter is not supported in Gemini API.');
11803
+ }
11804
+ if (getValueByPath(fromObject, ['authType']) !== undefined) {
11805
+ throw new Error('authType parameter is not supported in Gemini API.');
11806
+ }
11807
+ if (getValueByPath(fromObject, ['googleServiceAccountConfig']) !==
11808
+ undefined) {
11809
+ throw new Error('googleServiceAccountConfig parameter is not supported in Gemini API.');
11810
+ }
11811
+ if (getValueByPath(fromObject, ['httpBasicAuthConfig']) !== undefined) {
11812
+ throw new Error('httpBasicAuthConfig parameter is not supported in Gemini API.');
11813
+ }
11814
+ if (getValueByPath(fromObject, ['oauthConfig']) !== undefined) {
11815
+ throw new Error('oauthConfig parameter is not supported in Gemini API.');
11816
+ }
11817
+ if (getValueByPath(fromObject, ['oidcConfig']) !== undefined) {
11818
+ throw new Error('oidcConfig parameter is not supported in Gemini API.');
11819
+ }
11820
+ return toObject;
11821
+ }
11688
11822
  function blobToMldev$1(fromObject, _rootObject) {
11689
11823
  const toObject = {};
11690
11824
  const fromData = getValueByPath(fromObject, ['data']);
@@ -11720,16 +11854,16 @@ function candidateFromMldev(fromObject, rootObject) {
11720
11854
  if (fromFinishReason != null) {
11721
11855
  setValueByPath(toObject, ['finishReason'], fromFinishReason);
11722
11856
  }
11723
- const fromAvgLogprobs = getValueByPath(fromObject, ['avgLogprobs']);
11724
- if (fromAvgLogprobs != null) {
11725
- setValueByPath(toObject, ['avgLogprobs'], fromAvgLogprobs);
11726
- }
11727
11857
  const fromGroundingMetadata = getValueByPath(fromObject, [
11728
11858
  'groundingMetadata',
11729
11859
  ]);
11730
11860
  if (fromGroundingMetadata != null) {
11731
11861
  setValueByPath(toObject, ['groundingMetadata'], fromGroundingMetadata);
11732
11862
  }
11863
+ const fromAvgLogprobs = getValueByPath(fromObject, ['avgLogprobs']);
11864
+ if (fromAvgLogprobs != null) {
11865
+ setValueByPath(toObject, ['avgLogprobs'], fromAvgLogprobs);
11866
+ }
11733
11867
  const fromIndex = getValueByPath(fromObject, ['index']);
11734
11868
  if (fromIndex != null) {
11735
11869
  setValueByPath(toObject, ['index'], fromIndex);
@@ -13833,10 +13967,11 @@ function getModelParametersToVertex(apiClient, fromObject, _rootObject) {
13833
13967
  }
13834
13968
  return toObject;
13835
13969
  }
13836
- function googleMapsToMldev$1(fromObject, _rootObject) {
13970
+ function googleMapsToMldev$1(fromObject, rootObject) {
13837
13971
  const toObject = {};
13838
- if (getValueByPath(fromObject, ['authConfig']) !== undefined) {
13839
- throw new Error('authConfig parameter is not supported in Gemini API.');
13972
+ const fromAuthConfig = getValueByPath(fromObject, ['authConfig']);
13973
+ if (fromAuthConfig != null) {
13974
+ setValueByPath(toObject, ['authConfig'], authConfigToMldev$1(fromAuthConfig));
13840
13975
  }
13841
13976
  const fromEnableWidget = getValueByPath(fromObject, ['enableWidget']);
13842
13977
  if (fromEnableWidget != null) {
@@ -13846,12 +13981,16 @@ function googleMapsToMldev$1(fromObject, _rootObject) {
13846
13981
  }
13847
13982
  function googleSearchToMldev$1(fromObject, _rootObject) {
13848
13983
  const toObject = {};
13849
- if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
13850
- throw new Error('excludeDomains parameter is not supported in Gemini API.');
13984
+ const fromSearchTypes = getValueByPath(fromObject, ['searchTypes']);
13985
+ if (fromSearchTypes != null) {
13986
+ setValueByPath(toObject, ['searchTypes'], fromSearchTypes);
13851
13987
  }
13852
13988
  if (getValueByPath(fromObject, ['blockingConfidence']) !== undefined) {
13853
13989
  throw new Error('blockingConfidence parameter is not supported in Gemini API.');
13854
13990
  }
13991
+ if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
13992
+ throw new Error('excludeDomains parameter is not supported in Gemini API.');
13993
+ }
13855
13994
  const fromTimeRangeFilter = getValueByPath(fromObject, [
13856
13995
  'timeRangeFilter',
13857
13996
  ]);
@@ -13873,6 +14012,9 @@ function imageConfigToMldev(fromObject, _rootObject) {
13873
14012
  if (getValueByPath(fromObject, ['personGeneration']) !== undefined) {
13874
14013
  throw new Error('personGeneration parameter is not supported in Gemini API.');
13875
14014
  }
14015
+ if (getValueByPath(fromObject, ['prominentPeople']) !== undefined) {
14016
+ throw new Error('prominentPeople parameter is not supported in Gemini API.');
14017
+ }
13876
14018
  if (getValueByPath(fromObject, ['outputMimeType']) !== undefined) {
13877
14019
  throw new Error('outputMimeType parameter is not supported in Gemini API.');
13878
14020
  }
@@ -13880,6 +14022,9 @@ function imageConfigToMldev(fromObject, _rootObject) {
13880
14022
  undefined) {
13881
14023
  throw new Error('outputCompressionQuality parameter is not supported in Gemini API.');
13882
14024
  }
14025
+ if (getValueByPath(fromObject, ['imageOutputOptions']) !== undefined) {
14026
+ throw new Error('imageOutputOptions parameter is not supported in Gemini API.');
14027
+ }
13883
14028
  return toObject;
13884
14029
  }
13885
14030
  function imageConfigToVertex(fromObject, _rootObject) {
@@ -13898,6 +14043,12 @@ function imageConfigToVertex(fromObject, _rootObject) {
13898
14043
  if (fromPersonGeneration != null) {
13899
14044
  setValueByPath(toObject, ['personGeneration'], fromPersonGeneration);
13900
14045
  }
14046
+ const fromProminentPeople = getValueByPath(fromObject, [
14047
+ 'prominentPeople',
14048
+ ]);
14049
+ if (fromProminentPeople != null) {
14050
+ setValueByPath(toObject, ['prominentPeople'], fromProminentPeople);
14051
+ }
13901
14052
  const fromOutputMimeType = getValueByPath(fromObject, [
13902
14053
  'outputMimeType',
13903
14054
  ]);
@@ -13910,6 +14061,12 @@ function imageConfigToVertex(fromObject, _rootObject) {
13910
14061
  if (fromOutputCompressionQuality != null) {
13911
14062
  setValueByPath(toObject, ['imageOutputOptions', 'compressionQuality'], fromOutputCompressionQuality);
13912
14063
  }
14064
+ const fromImageOutputOptions = getValueByPath(fromObject, [
14065
+ 'imageOutputOptions',
14066
+ ]);
14067
+ if (fromImageOutputOptions != null) {
14068
+ setValueByPath(toObject, ['imageOutputOptions'], fromImageOutputOptions);
14069
+ }
13913
14070
  return toObject;
13914
14071
  }
13915
14072
  function imageFromMldev(fromObject, _rootObject) {
@@ -14625,6 +14782,14 @@ function toolToMldev$1(fromObject, rootObject) {
14625
14782
  if (fromFileSearch != null) {
14626
14783
  setValueByPath(toObject, ['fileSearch'], fromFileSearch);
14627
14784
  }
14785
+ const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
14786
+ if (fromGoogleSearch != null) {
14787
+ setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$1(fromGoogleSearch));
14788
+ }
14789
+ const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
14790
+ if (fromGoogleMaps != null) {
14791
+ setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$1(fromGoogleMaps));
14792
+ }
14628
14793
  const fromCodeExecution = getValueByPath(fromObject, [
14629
14794
  'codeExecution',
14630
14795
  ]);
@@ -14646,24 +14811,29 @@ function toolToMldev$1(fromObject, rootObject) {
14646
14811
  }
14647
14812
  setValueByPath(toObject, ['functionDeclarations'], transformedList);
14648
14813
  }
14649
- const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
14650
- if (fromGoogleMaps != null) {
14651
- setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$1(fromGoogleMaps));
14652
- }
14653
- const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
14654
- if (fromGoogleSearch != null) {
14655
- setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$1(fromGoogleSearch));
14656
- }
14657
14814
  const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
14658
14815
  'googleSearchRetrieval',
14659
14816
  ]);
14660
14817
  if (fromGoogleSearchRetrieval != null) {
14661
14818
  setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
14662
14819
  }
14820
+ if (getValueByPath(fromObject, ['parallelAiSearch']) !== undefined) {
14821
+ throw new Error('parallelAiSearch parameter is not supported in Gemini API.');
14822
+ }
14663
14823
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
14664
14824
  if (fromUrlContext != null) {
14665
14825
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
14666
14826
  }
14827
+ const fromMcpServers = getValueByPath(fromObject, ['mcpServers']);
14828
+ if (fromMcpServers != null) {
14829
+ let transformedList = fromMcpServers;
14830
+ if (Array.isArray(transformedList)) {
14831
+ transformedList = transformedList.map((item) => {
14832
+ return item;
14833
+ });
14834
+ }
14835
+ setValueByPath(toObject, ['mcpServers'], transformedList);
14836
+ }
14667
14837
  return toObject;
14668
14838
  }
14669
14839
  function toolToVertex(fromObject, rootObject) {
@@ -14679,6 +14849,14 @@ function toolToVertex(fromObject, rootObject) {
14679
14849
  if (getValueByPath(fromObject, ['fileSearch']) !== undefined) {
14680
14850
  throw new Error('fileSearch parameter is not supported in Vertex AI.');
14681
14851
  }
14852
+ const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
14853
+ if (fromGoogleSearch != null) {
14854
+ setValueByPath(toObject, ['googleSearch'], fromGoogleSearch);
14855
+ }
14856
+ const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
14857
+ if (fromGoogleMaps != null) {
14858
+ setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);
14859
+ }
14682
14860
  const fromCodeExecution = getValueByPath(fromObject, [
14683
14861
  'codeExecution',
14684
14862
  ]);
@@ -14703,24 +14881,25 @@ function toolToVertex(fromObject, rootObject) {
14703
14881
  }
14704
14882
  setValueByPath(toObject, ['functionDeclarations'], transformedList);
14705
14883
  }
14706
- const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
14707
- if (fromGoogleMaps != null) {
14708
- setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);
14709
- }
14710
- const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
14711
- if (fromGoogleSearch != null) {
14712
- setValueByPath(toObject, ['googleSearch'], fromGoogleSearch);
14713
- }
14714
14884
  const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
14715
14885
  'googleSearchRetrieval',
14716
14886
  ]);
14717
14887
  if (fromGoogleSearchRetrieval != null) {
14718
14888
  setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
14719
14889
  }
14890
+ const fromParallelAiSearch = getValueByPath(fromObject, [
14891
+ 'parallelAiSearch',
14892
+ ]);
14893
+ if (fromParallelAiSearch != null) {
14894
+ setValueByPath(toObject, ['parallelAiSearch'], fromParallelAiSearch);
14895
+ }
14720
14896
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
14721
14897
  if (fromUrlContext != null) {
14722
14898
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
14723
14899
  }
14900
+ if (getValueByPath(fromObject, ['mcpServers']) !== undefined) {
14901
+ throw new Error('mcpServers parameter is not supported in Vertex AI.');
14902
+ }
14724
14903
  return toObject;
14725
14904
  }
14726
14905
  function tunedModelInfoFromMldev(fromObject, _rootObject) {
@@ -17699,6 +17878,33 @@ class Operations extends BaseModule {
17699
17878
  * Copyright 2025 Google LLC
17700
17879
  * SPDX-License-Identifier: Apache-2.0
17701
17880
  */
17881
+ function authConfigToMldev(fromObject) {
17882
+ const toObject = {};
17883
+ const fromApiKey = getValueByPath(fromObject, ['apiKey']);
17884
+ if (fromApiKey != null) {
17885
+ setValueByPath(toObject, ['apiKey'], fromApiKey);
17886
+ }
17887
+ if (getValueByPath(fromObject, ['apiKeyConfig']) !== undefined) {
17888
+ throw new Error('apiKeyConfig parameter is not supported in Gemini API.');
17889
+ }
17890
+ if (getValueByPath(fromObject, ['authType']) !== undefined) {
17891
+ throw new Error('authType parameter is not supported in Gemini API.');
17892
+ }
17893
+ if (getValueByPath(fromObject, ['googleServiceAccountConfig']) !==
17894
+ undefined) {
17895
+ throw new Error('googleServiceAccountConfig parameter is not supported in Gemini API.');
17896
+ }
17897
+ if (getValueByPath(fromObject, ['httpBasicAuthConfig']) !== undefined) {
17898
+ throw new Error('httpBasicAuthConfig parameter is not supported in Gemini API.');
17899
+ }
17900
+ if (getValueByPath(fromObject, ['oauthConfig']) !== undefined) {
17901
+ throw new Error('oauthConfig parameter is not supported in Gemini API.');
17902
+ }
17903
+ if (getValueByPath(fromObject, ['oidcConfig']) !== undefined) {
17904
+ throw new Error('oidcConfig parameter is not supported in Gemini API.');
17905
+ }
17906
+ return toObject;
17907
+ }
17702
17908
  function blobToMldev(fromObject) {
17703
17909
  const toObject = {};
17704
17910
  const fromData = getValueByPath(fromObject, ['data']);
@@ -17809,8 +18015,9 @@ function functionCallToMldev(fromObject) {
17809
18015
  }
17810
18016
  function googleMapsToMldev(fromObject) {
17811
18017
  const toObject = {};
17812
- if (getValueByPath(fromObject, ['authConfig']) !== undefined) {
17813
- throw new Error('authConfig parameter is not supported in Gemini API.');
18018
+ const fromAuthConfig = getValueByPath(fromObject, ['authConfig']);
18019
+ if (fromAuthConfig != null) {
18020
+ setValueByPath(toObject, ['authConfig'], authConfigToMldev(fromAuthConfig));
17814
18021
  }
17815
18022
  const fromEnableWidget = getValueByPath(fromObject, ['enableWidget']);
17816
18023
  if (fromEnableWidget != null) {
@@ -17820,12 +18027,16 @@ function googleMapsToMldev(fromObject) {
17820
18027
  }
17821
18028
  function googleSearchToMldev(fromObject) {
17822
18029
  const toObject = {};
17823
- if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
17824
- throw new Error('excludeDomains parameter is not supported in Gemini API.');
18030
+ const fromSearchTypes = getValueByPath(fromObject, ['searchTypes']);
18031
+ if (fromSearchTypes != null) {
18032
+ setValueByPath(toObject, ['searchTypes'], fromSearchTypes);
17825
18033
  }
17826
18034
  if (getValueByPath(fromObject, ['blockingConfidence']) !== undefined) {
17827
18035
  throw new Error('blockingConfidence parameter is not supported in Gemini API.');
17828
18036
  }
18037
+ if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
18038
+ throw new Error('excludeDomains parameter is not supported in Gemini API.');
18039
+ }
17829
18040
  const fromTimeRangeFilter = getValueByPath(fromObject, [
17830
18041
  'timeRangeFilter',
17831
18042
  ]);
@@ -18043,6 +18254,14 @@ function toolToMldev(fromObject) {
18043
18254
  if (fromFileSearch != null) {
18044
18255
  setValueByPath(toObject, ['fileSearch'], fromFileSearch);
18045
18256
  }
18257
+ const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
18258
+ if (fromGoogleSearch != null) {
18259
+ setValueByPath(toObject, ['googleSearch'], googleSearchToMldev(fromGoogleSearch));
18260
+ }
18261
+ const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
18262
+ if (fromGoogleMaps != null) {
18263
+ setValueByPath(toObject, ['googleMaps'], googleMapsToMldev(fromGoogleMaps));
18264
+ }
18046
18265
  const fromCodeExecution = getValueByPath(fromObject, [
18047
18266
  'codeExecution',
18048
18267
  ]);
@@ -18064,24 +18283,29 @@ function toolToMldev(fromObject) {
18064
18283
  }
18065
18284
  setValueByPath(toObject, ['functionDeclarations'], transformedList);
18066
18285
  }
18067
- const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
18068
- if (fromGoogleMaps != null) {
18069
- setValueByPath(toObject, ['googleMaps'], googleMapsToMldev(fromGoogleMaps));
18070
- }
18071
- const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
18072
- if (fromGoogleSearch != null) {
18073
- setValueByPath(toObject, ['googleSearch'], googleSearchToMldev(fromGoogleSearch));
18074
- }
18075
18286
  const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
18076
18287
  'googleSearchRetrieval',
18077
18288
  ]);
18078
18289
  if (fromGoogleSearchRetrieval != null) {
18079
18290
  setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
18080
18291
  }
18292
+ if (getValueByPath(fromObject, ['parallelAiSearch']) !== undefined) {
18293
+ throw new Error('parallelAiSearch parameter is not supported in Gemini API.');
18294
+ }
18081
18295
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
18082
18296
  if (fromUrlContext != null) {
18083
18297
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
18084
18298
  }
18299
+ const fromMcpServers = getValueByPath(fromObject, ['mcpServers']);
18300
+ if (fromMcpServers != null) {
18301
+ let transformedList = fromMcpServers;
18302
+ if (Array.isArray(transformedList)) {
18303
+ transformedList = transformedList.map((item) => {
18304
+ return item;
18305
+ });
18306
+ }
18307
+ setValueByPath(toObject, ['mcpServers'], transformedList);
18308
+ }
18085
18309
  return toObject;
18086
18310
  }
18087
18311
 
@@ -19117,10 +19341,28 @@ function tuningJobFromVertex(fromObject, _rootObject) {
19117
19341
  if (fromCustomBaseModel != null) {
19118
19342
  setValueByPath(toObject, ['customBaseModel'], fromCustomBaseModel);
19119
19343
  }
19344
+ const fromEvaluateDatasetRuns = getValueByPath(fromObject, [
19345
+ 'evaluateDatasetRuns',
19346
+ ]);
19347
+ if (fromEvaluateDatasetRuns != null) {
19348
+ let transformedList = fromEvaluateDatasetRuns;
19349
+ if (Array.isArray(transformedList)) {
19350
+ transformedList = transformedList.map((item) => {
19351
+ return item;
19352
+ });
19353
+ }
19354
+ setValueByPath(toObject, ['evaluateDatasetRuns'], transformedList);
19355
+ }
19120
19356
  const fromExperiment = getValueByPath(fromObject, ['experiment']);
19121
19357
  if (fromExperiment != null) {
19122
19358
  setValueByPath(toObject, ['experiment'], fromExperiment);
19123
19359
  }
19360
+ const fromFullFineTuningSpec = getValueByPath(fromObject, [
19361
+ 'fullFineTuningSpec',
19362
+ ]);
19363
+ if (fromFullFineTuningSpec != null) {
19364
+ setValueByPath(toObject, ['fullFineTuningSpec'], fromFullFineTuningSpec);
19365
+ }
19124
19366
  const fromLabels = getValueByPath(fromObject, ['labels']);
19125
19367
  if (fromLabels != null) {
19126
19368
  setValueByPath(toObject, ['labels'], fromLabels);
@@ -19145,6 +19387,12 @@ function tuningJobFromVertex(fromObject, _rootObject) {
19145
19387
  if (fromTunedModelDisplayName != null) {
19146
19388
  setValueByPath(toObject, ['tunedModelDisplayName'], fromTunedModelDisplayName);
19147
19389
  }
19390
+ const fromTuningJobState = getValueByPath(fromObject, [
19391
+ 'tuningJobState',
19392
+ ]);
19393
+ if (fromTuningJobState != null) {
19394
+ setValueByPath(toObject, ['tuningJobState'], fromTuningJobState);
19395
+ }
19148
19396
  const fromVeoTuningSpec = getValueByPath(fromObject, [
19149
19397
  'veoTuningSpec',
19150
19398
  ]);
@@ -19693,5 +19941,5 @@ class GoogleGenAI {
19693
19941
  }
19694
19942
  }
19695
19943
 
19696
- 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 };
19944
+ 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 };
19697
19945
  //# sourceMappingURL=index.mjs.map