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