@google/genai 1.43.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/genai.d.ts +643 -221
- package/dist/index.cjs +482 -343
- package/dist/index.mjs +482 -344
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +483 -344
- package/dist/node/index.mjs +483 -345
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +643 -221
- package/dist/tokenizer/node.cjs +171 -67
- package/dist/tokenizer/node.d.ts +96 -83
- package/dist/tokenizer/node.mjs +171 -67
- package/dist/tokenizer/node.mjs.map +1 -1
- package/dist/web/index.mjs +482 -344
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +643 -221
- package/package.json +5 -1
package/dist/web/index.mjs
CHANGED
|
@@ -638,7 +638,7 @@ var FunctionResponseScheduling;
|
|
|
638
638
|
*/
|
|
639
639
|
FunctionResponseScheduling["INTERRUPT"] = "INTERRUPT";
|
|
640
640
|
})(FunctionResponseScheduling || (FunctionResponseScheduling = {}));
|
|
641
|
-
/**
|
|
641
|
+
/** Data type of the schema field. */
|
|
642
642
|
var Type;
|
|
643
643
|
(function (Type) {
|
|
644
644
|
/**
|
|
@@ -706,22 +706,6 @@ var PhishBlockThreshold;
|
|
|
706
706
|
*/
|
|
707
707
|
PhishBlockThreshold["BLOCK_ONLY_EXTREMELY_HIGH"] = "BLOCK_ONLY_EXTREMELY_HIGH";
|
|
708
708
|
})(PhishBlockThreshold || (PhishBlockThreshold = {}));
|
|
709
|
-
/** The API spec that the external API implements. This enum is not supported in Gemini API. */
|
|
710
|
-
var ApiSpec;
|
|
711
|
-
(function (ApiSpec) {
|
|
712
|
-
/**
|
|
713
|
-
* Unspecified API spec. This value should not be used.
|
|
714
|
-
*/
|
|
715
|
-
ApiSpec["API_SPEC_UNSPECIFIED"] = "API_SPEC_UNSPECIFIED";
|
|
716
|
-
/**
|
|
717
|
-
* Simple search API spec.
|
|
718
|
-
*/
|
|
719
|
-
ApiSpec["SIMPLE_SEARCH"] = "SIMPLE_SEARCH";
|
|
720
|
-
/**
|
|
721
|
-
* Elastic search API spec.
|
|
722
|
-
*/
|
|
723
|
-
ApiSpec["ELASTIC_SEARCH"] = "ELASTIC_SEARCH";
|
|
724
|
-
})(ApiSpec || (ApiSpec = {}));
|
|
725
709
|
/** Type of auth scheme. This enum is not supported in Gemini API. */
|
|
726
710
|
var AuthType;
|
|
727
711
|
(function (AuthType) {
|
|
@@ -776,6 +760,22 @@ var HttpElementLocation;
|
|
|
776
760
|
*/
|
|
777
761
|
HttpElementLocation["HTTP_IN_COOKIE"] = "HTTP_IN_COOKIE";
|
|
778
762
|
})(HttpElementLocation || (HttpElementLocation = {}));
|
|
763
|
+
/** The API spec that the external API implements. This enum is not supported in Gemini API. */
|
|
764
|
+
var ApiSpec;
|
|
765
|
+
(function (ApiSpec) {
|
|
766
|
+
/**
|
|
767
|
+
* Unspecified API spec. This value should not be used.
|
|
768
|
+
*/
|
|
769
|
+
ApiSpec["API_SPEC_UNSPECIFIED"] = "API_SPEC_UNSPECIFIED";
|
|
770
|
+
/**
|
|
771
|
+
* Simple search API spec.
|
|
772
|
+
*/
|
|
773
|
+
ApiSpec["SIMPLE_SEARCH"] = "SIMPLE_SEARCH";
|
|
774
|
+
/**
|
|
775
|
+
* Elastic search API spec.
|
|
776
|
+
*/
|
|
777
|
+
ApiSpec["ELASTIC_SEARCH"] = "ELASTIC_SEARCH";
|
|
778
|
+
})(ApiSpec || (ApiSpec = {}));
|
|
779
779
|
/** Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. This enum is not supported in Vertex AI. */
|
|
780
780
|
var Behavior;
|
|
781
781
|
(function (Behavior) {
|
|
@@ -852,27 +852,43 @@ var ThinkingLevel;
|
|
|
852
852
|
*/
|
|
853
853
|
ThinkingLevel["MINIMAL"] = "MINIMAL";
|
|
854
854
|
})(ThinkingLevel || (ThinkingLevel = {}));
|
|
855
|
-
/**
|
|
855
|
+
/** Enum that controls the generation of people. */
|
|
856
|
+
var PersonGeneration;
|
|
857
|
+
(function (PersonGeneration) {
|
|
858
|
+
/**
|
|
859
|
+
* Block generation of images of people.
|
|
860
|
+
*/
|
|
861
|
+
PersonGeneration["DONT_ALLOW"] = "DONT_ALLOW";
|
|
862
|
+
/**
|
|
863
|
+
* Generate images of adults, but not children.
|
|
864
|
+
*/
|
|
865
|
+
PersonGeneration["ALLOW_ADULT"] = "ALLOW_ADULT";
|
|
866
|
+
/**
|
|
867
|
+
* Generate images that include adults and children.
|
|
868
|
+
*/
|
|
869
|
+
PersonGeneration["ALLOW_ALL"] = "ALLOW_ALL";
|
|
870
|
+
})(PersonGeneration || (PersonGeneration = {}));
|
|
871
|
+
/** The harm category to be blocked. */
|
|
856
872
|
var HarmCategory;
|
|
857
873
|
(function (HarmCategory) {
|
|
858
874
|
/**
|
|
859
|
-
*
|
|
875
|
+
* Default value. This value is unused.
|
|
860
876
|
*/
|
|
861
877
|
HarmCategory["HARM_CATEGORY_UNSPECIFIED"] = "HARM_CATEGORY_UNSPECIFIED";
|
|
862
878
|
/**
|
|
863
|
-
*
|
|
879
|
+
* Abusive, threatening, or content intended to bully, torment, or ridicule.
|
|
864
880
|
*/
|
|
865
881
|
HarmCategory["HARM_CATEGORY_HARASSMENT"] = "HARM_CATEGORY_HARASSMENT";
|
|
866
882
|
/**
|
|
867
|
-
*
|
|
883
|
+
* Content that promotes violence or incites hatred against individuals or groups based on certain attributes.
|
|
868
884
|
*/
|
|
869
885
|
HarmCategory["HARM_CATEGORY_HATE_SPEECH"] = "HARM_CATEGORY_HATE_SPEECH";
|
|
870
886
|
/**
|
|
871
|
-
*
|
|
887
|
+
* Content that contains sexually explicit material.
|
|
872
888
|
*/
|
|
873
889
|
HarmCategory["HARM_CATEGORY_SEXUALLY_EXPLICIT"] = "HARM_CATEGORY_SEXUALLY_EXPLICIT";
|
|
874
890
|
/**
|
|
875
|
-
*
|
|
891
|
+
* Content that promotes, facilitates, or enables dangerous activities.
|
|
876
892
|
*/
|
|
877
893
|
HarmCategory["HARM_CATEGORY_DANGEROUS_CONTENT"] = "HARM_CATEGORY_DANGEROUS_CONTENT";
|
|
878
894
|
/**
|
|
@@ -880,27 +896,27 @@ var HarmCategory;
|
|
|
880
896
|
*/
|
|
881
897
|
HarmCategory["HARM_CATEGORY_CIVIC_INTEGRITY"] = "HARM_CATEGORY_CIVIC_INTEGRITY";
|
|
882
898
|
/**
|
|
883
|
-
*
|
|
899
|
+
* Images that contain hate speech. This enum value is not supported in Gemini API.
|
|
884
900
|
*/
|
|
885
901
|
HarmCategory["HARM_CATEGORY_IMAGE_HATE"] = "HARM_CATEGORY_IMAGE_HATE";
|
|
886
902
|
/**
|
|
887
|
-
*
|
|
903
|
+
* Images that contain dangerous content. This enum value is not supported in Gemini API.
|
|
888
904
|
*/
|
|
889
905
|
HarmCategory["HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT"] = "HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT";
|
|
890
906
|
/**
|
|
891
|
-
*
|
|
907
|
+
* Images that contain harassment. This enum value is not supported in Gemini API.
|
|
892
908
|
*/
|
|
893
909
|
HarmCategory["HARM_CATEGORY_IMAGE_HARASSMENT"] = "HARM_CATEGORY_IMAGE_HARASSMENT";
|
|
894
910
|
/**
|
|
895
|
-
*
|
|
911
|
+
* Images that contain sexually explicit content. This enum value is not supported in Gemini API.
|
|
896
912
|
*/
|
|
897
913
|
HarmCategory["HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT"] = "HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT";
|
|
898
914
|
/**
|
|
899
|
-
*
|
|
915
|
+
* Prompts designed to bypass safety filters. This enum value is not supported in Gemini API.
|
|
900
916
|
*/
|
|
901
917
|
HarmCategory["HARM_CATEGORY_JAILBREAK"] = "HARM_CATEGORY_JAILBREAK";
|
|
902
918
|
})(HarmCategory || (HarmCategory = {}));
|
|
903
|
-
/**
|
|
919
|
+
/** The method for blocking content. If not specified, the default behavior is to use the probability score. This enum is not supported in Gemini API. */
|
|
904
920
|
var HarmBlockMethod;
|
|
905
921
|
(function (HarmBlockMethod) {
|
|
906
922
|
/**
|
|
@@ -916,31 +932,31 @@ var HarmBlockMethod;
|
|
|
916
932
|
*/
|
|
917
933
|
HarmBlockMethod["PROBABILITY"] = "PROBABILITY";
|
|
918
934
|
})(HarmBlockMethod || (HarmBlockMethod = {}));
|
|
919
|
-
/** The harm
|
|
935
|
+
/** The threshold for blocking content. If the harm probability exceeds this threshold, the content will be blocked. */
|
|
920
936
|
var HarmBlockThreshold;
|
|
921
937
|
(function (HarmBlockThreshold) {
|
|
922
938
|
/**
|
|
923
|
-
*
|
|
939
|
+
* The harm block threshold is unspecified.
|
|
924
940
|
*/
|
|
925
941
|
HarmBlockThreshold["HARM_BLOCK_THRESHOLD_UNSPECIFIED"] = "HARM_BLOCK_THRESHOLD_UNSPECIFIED";
|
|
926
942
|
/**
|
|
927
|
-
* Block
|
|
943
|
+
* Block content with a low harm probability or higher.
|
|
928
944
|
*/
|
|
929
945
|
HarmBlockThreshold["BLOCK_LOW_AND_ABOVE"] = "BLOCK_LOW_AND_ABOVE";
|
|
930
946
|
/**
|
|
931
|
-
* Block medium
|
|
947
|
+
* Block content with a medium harm probability or higher.
|
|
932
948
|
*/
|
|
933
949
|
HarmBlockThreshold["BLOCK_MEDIUM_AND_ABOVE"] = "BLOCK_MEDIUM_AND_ABOVE";
|
|
934
950
|
/**
|
|
935
|
-
* Block
|
|
951
|
+
* Block content with a high harm probability.
|
|
936
952
|
*/
|
|
937
953
|
HarmBlockThreshold["BLOCK_ONLY_HIGH"] = "BLOCK_ONLY_HIGH";
|
|
938
954
|
/**
|
|
939
|
-
*
|
|
955
|
+
* Do not block any content, regardless of its harm probability.
|
|
940
956
|
*/
|
|
941
957
|
HarmBlockThreshold["BLOCK_NONE"] = "BLOCK_NONE";
|
|
942
958
|
/**
|
|
943
|
-
* Turn off the safety filter.
|
|
959
|
+
* Turn off the safety filter entirely.
|
|
944
960
|
*/
|
|
945
961
|
HarmBlockThreshold["OFF"] = "OFF";
|
|
946
962
|
})(HarmBlockThreshold || (HarmBlockThreshold = {}));
|
|
@@ -1018,55 +1034,55 @@ var FinishReason;
|
|
|
1018
1034
|
*/
|
|
1019
1035
|
FinishReason["IMAGE_OTHER"] = "IMAGE_OTHER";
|
|
1020
1036
|
})(FinishReason || (FinishReason = {}));
|
|
1021
|
-
/** Output only.
|
|
1037
|
+
/** Output only. The probability of harm for this category. */
|
|
1022
1038
|
var HarmProbability;
|
|
1023
1039
|
(function (HarmProbability) {
|
|
1024
1040
|
/**
|
|
1025
|
-
*
|
|
1041
|
+
* The harm probability is unspecified.
|
|
1026
1042
|
*/
|
|
1027
1043
|
HarmProbability["HARM_PROBABILITY_UNSPECIFIED"] = "HARM_PROBABILITY_UNSPECIFIED";
|
|
1028
1044
|
/**
|
|
1029
|
-
*
|
|
1045
|
+
* The harm probability is negligible.
|
|
1030
1046
|
*/
|
|
1031
1047
|
HarmProbability["NEGLIGIBLE"] = "NEGLIGIBLE";
|
|
1032
1048
|
/**
|
|
1033
|
-
*
|
|
1049
|
+
* The harm probability is low.
|
|
1034
1050
|
*/
|
|
1035
1051
|
HarmProbability["LOW"] = "LOW";
|
|
1036
1052
|
/**
|
|
1037
|
-
*
|
|
1053
|
+
* The harm probability is medium.
|
|
1038
1054
|
*/
|
|
1039
1055
|
HarmProbability["MEDIUM"] = "MEDIUM";
|
|
1040
1056
|
/**
|
|
1041
|
-
*
|
|
1057
|
+
* The harm probability is high.
|
|
1042
1058
|
*/
|
|
1043
1059
|
HarmProbability["HIGH"] = "HIGH";
|
|
1044
1060
|
})(HarmProbability || (HarmProbability = {}));
|
|
1045
|
-
/** Output only.
|
|
1061
|
+
/** Output only. The severity of harm for this category. This enum is not supported in Gemini API. */
|
|
1046
1062
|
var HarmSeverity;
|
|
1047
1063
|
(function (HarmSeverity) {
|
|
1048
1064
|
/**
|
|
1049
|
-
*
|
|
1065
|
+
* The harm severity is unspecified.
|
|
1050
1066
|
*/
|
|
1051
1067
|
HarmSeverity["HARM_SEVERITY_UNSPECIFIED"] = "HARM_SEVERITY_UNSPECIFIED";
|
|
1052
1068
|
/**
|
|
1053
|
-
*
|
|
1069
|
+
* The harm severity is negligible.
|
|
1054
1070
|
*/
|
|
1055
1071
|
HarmSeverity["HARM_SEVERITY_NEGLIGIBLE"] = "HARM_SEVERITY_NEGLIGIBLE";
|
|
1056
1072
|
/**
|
|
1057
|
-
*
|
|
1073
|
+
* The harm severity is low.
|
|
1058
1074
|
*/
|
|
1059
1075
|
HarmSeverity["HARM_SEVERITY_LOW"] = "HARM_SEVERITY_LOW";
|
|
1060
1076
|
/**
|
|
1061
|
-
*
|
|
1077
|
+
* The harm severity is medium.
|
|
1062
1078
|
*/
|
|
1063
1079
|
HarmSeverity["HARM_SEVERITY_MEDIUM"] = "HARM_SEVERITY_MEDIUM";
|
|
1064
1080
|
/**
|
|
1065
|
-
*
|
|
1081
|
+
* The harm severity is high.
|
|
1066
1082
|
*/
|
|
1067
1083
|
HarmSeverity["HARM_SEVERITY_HIGH"] = "HARM_SEVERITY_HIGH";
|
|
1068
1084
|
})(HarmSeverity || (HarmSeverity = {}));
|
|
1069
|
-
/**
|
|
1085
|
+
/** The status of the URL retrieval. */
|
|
1070
1086
|
var UrlRetrievalStatus;
|
|
1071
1087
|
(function (UrlRetrievalStatus) {
|
|
1072
1088
|
/**
|
|
@@ -1074,11 +1090,11 @@ var UrlRetrievalStatus;
|
|
|
1074
1090
|
*/
|
|
1075
1091
|
UrlRetrievalStatus["URL_RETRIEVAL_STATUS_UNSPECIFIED"] = "URL_RETRIEVAL_STATUS_UNSPECIFIED";
|
|
1076
1092
|
/**
|
|
1077
|
-
*
|
|
1093
|
+
* The URL was retrieved successfully.
|
|
1078
1094
|
*/
|
|
1079
1095
|
UrlRetrievalStatus["URL_RETRIEVAL_STATUS_SUCCESS"] = "URL_RETRIEVAL_STATUS_SUCCESS";
|
|
1080
1096
|
/**
|
|
1081
|
-
*
|
|
1097
|
+
* The URL retrieval failed.
|
|
1082
1098
|
*/
|
|
1083
1099
|
UrlRetrievalStatus["URL_RETRIEVAL_STATUS_ERROR"] = "URL_RETRIEVAL_STATUS_ERROR";
|
|
1084
1100
|
/**
|
|
@@ -1137,6 +1153,14 @@ var TrafficType;
|
|
|
1137
1153
|
* The request was processed using Pay-As-You-Go quota.
|
|
1138
1154
|
*/
|
|
1139
1155
|
TrafficType["ON_DEMAND"] = "ON_DEMAND";
|
|
1156
|
+
/**
|
|
1157
|
+
* Type for Priority Pay-As-You-Go traffic.
|
|
1158
|
+
*/
|
|
1159
|
+
TrafficType["ON_DEMAND_PRIORITY"] = "ON_DEMAND_PRIORITY";
|
|
1160
|
+
/**
|
|
1161
|
+
* Type for Flex traffic.
|
|
1162
|
+
*/
|
|
1163
|
+
TrafficType["ON_DEMAND_FLEX"] = "ON_DEMAND_FLEX";
|
|
1140
1164
|
/**
|
|
1141
1165
|
* Type for Provisioned Throughput traffic.
|
|
1142
1166
|
*/
|
|
@@ -1282,6 +1306,102 @@ var JobState;
|
|
|
1282
1306
|
*/
|
|
1283
1307
|
JobState["JOB_STATE_PARTIALLY_SUCCEEDED"] = "JOB_STATE_PARTIALLY_SUCCEEDED";
|
|
1284
1308
|
})(JobState || (JobState = {}));
|
|
1309
|
+
/** Output only. The detail state of the tuning job (while the overall `JobState` is running). This enum is not supported in Gemini API. */
|
|
1310
|
+
var TuningJobState;
|
|
1311
|
+
(function (TuningJobState) {
|
|
1312
|
+
/**
|
|
1313
|
+
* Default tuning job state.
|
|
1314
|
+
*/
|
|
1315
|
+
TuningJobState["TUNING_JOB_STATE_UNSPECIFIED"] = "TUNING_JOB_STATE_UNSPECIFIED";
|
|
1316
|
+
/**
|
|
1317
|
+
* Tuning job is waiting for job quota.
|
|
1318
|
+
*/
|
|
1319
|
+
TuningJobState["TUNING_JOB_STATE_WAITING_FOR_QUOTA"] = "TUNING_JOB_STATE_WAITING_FOR_QUOTA";
|
|
1320
|
+
/**
|
|
1321
|
+
* Tuning job is validating the dataset.
|
|
1322
|
+
*/
|
|
1323
|
+
TuningJobState["TUNING_JOB_STATE_PROCESSING_DATASET"] = "TUNING_JOB_STATE_PROCESSING_DATASET";
|
|
1324
|
+
/**
|
|
1325
|
+
* Tuning job is waiting for hardware capacity.
|
|
1326
|
+
*/
|
|
1327
|
+
TuningJobState["TUNING_JOB_STATE_WAITING_FOR_CAPACITY"] = "TUNING_JOB_STATE_WAITING_FOR_CAPACITY";
|
|
1328
|
+
/**
|
|
1329
|
+
* Tuning job is running.
|
|
1330
|
+
*/
|
|
1331
|
+
TuningJobState["TUNING_JOB_STATE_TUNING"] = "TUNING_JOB_STATE_TUNING";
|
|
1332
|
+
/**
|
|
1333
|
+
* Tuning job is doing some post processing steps.
|
|
1334
|
+
*/
|
|
1335
|
+
TuningJobState["TUNING_JOB_STATE_POST_PROCESSING"] = "TUNING_JOB_STATE_POST_PROCESSING";
|
|
1336
|
+
})(TuningJobState || (TuningJobState = {}));
|
|
1337
|
+
/** Aggregation metric. This enum is not supported in Gemini API. */
|
|
1338
|
+
var AggregationMetric;
|
|
1339
|
+
(function (AggregationMetric) {
|
|
1340
|
+
/**
|
|
1341
|
+
* Unspecified aggregation metric.
|
|
1342
|
+
*/
|
|
1343
|
+
AggregationMetric["AGGREGATION_METRIC_UNSPECIFIED"] = "AGGREGATION_METRIC_UNSPECIFIED";
|
|
1344
|
+
/**
|
|
1345
|
+
* Average aggregation metric. Not supported for Pairwise metric.
|
|
1346
|
+
*/
|
|
1347
|
+
AggregationMetric["AVERAGE"] = "AVERAGE";
|
|
1348
|
+
/**
|
|
1349
|
+
* Mode aggregation metric.
|
|
1350
|
+
*/
|
|
1351
|
+
AggregationMetric["MODE"] = "MODE";
|
|
1352
|
+
/**
|
|
1353
|
+
* Standard deviation aggregation metric. Not supported for pairwise metric.
|
|
1354
|
+
*/
|
|
1355
|
+
AggregationMetric["STANDARD_DEVIATION"] = "STANDARD_DEVIATION";
|
|
1356
|
+
/**
|
|
1357
|
+
* Variance aggregation metric. Not supported for pairwise metric.
|
|
1358
|
+
*/
|
|
1359
|
+
AggregationMetric["VARIANCE"] = "VARIANCE";
|
|
1360
|
+
/**
|
|
1361
|
+
* Minimum aggregation metric. Not supported for pairwise metric.
|
|
1362
|
+
*/
|
|
1363
|
+
AggregationMetric["MINIMUM"] = "MINIMUM";
|
|
1364
|
+
/**
|
|
1365
|
+
* Maximum aggregation metric. Not supported for pairwise metric.
|
|
1366
|
+
*/
|
|
1367
|
+
AggregationMetric["MAXIMUM"] = "MAXIMUM";
|
|
1368
|
+
/**
|
|
1369
|
+
* Median aggregation metric. Not supported for pairwise metric.
|
|
1370
|
+
*/
|
|
1371
|
+
AggregationMetric["MEDIAN"] = "MEDIAN";
|
|
1372
|
+
/**
|
|
1373
|
+
* 90th percentile aggregation metric. Not supported for pairwise metric.
|
|
1374
|
+
*/
|
|
1375
|
+
AggregationMetric["PERCENTILE_P90"] = "PERCENTILE_P90";
|
|
1376
|
+
/**
|
|
1377
|
+
* 95th percentile aggregation metric. Not supported for pairwise metric.
|
|
1378
|
+
*/
|
|
1379
|
+
AggregationMetric["PERCENTILE_P95"] = "PERCENTILE_P95";
|
|
1380
|
+
/**
|
|
1381
|
+
* 99th percentile aggregation metric. Not supported for pairwise metric.
|
|
1382
|
+
*/
|
|
1383
|
+
AggregationMetric["PERCENTILE_P99"] = "PERCENTILE_P99";
|
|
1384
|
+
})(AggregationMetric || (AggregationMetric = {}));
|
|
1385
|
+
/** Output only. Pairwise metric choice. This enum is not supported in Gemini API. */
|
|
1386
|
+
var PairwiseChoice;
|
|
1387
|
+
(function (PairwiseChoice) {
|
|
1388
|
+
/**
|
|
1389
|
+
* Unspecified prediction choice.
|
|
1390
|
+
*/
|
|
1391
|
+
PairwiseChoice["PAIRWISE_CHOICE_UNSPECIFIED"] = "PAIRWISE_CHOICE_UNSPECIFIED";
|
|
1392
|
+
/**
|
|
1393
|
+
* Baseline prediction wins
|
|
1394
|
+
*/
|
|
1395
|
+
PairwiseChoice["BASELINE"] = "BASELINE";
|
|
1396
|
+
/**
|
|
1397
|
+
* Candidate prediction wins
|
|
1398
|
+
*/
|
|
1399
|
+
PairwiseChoice["CANDIDATE"] = "CANDIDATE";
|
|
1400
|
+
/**
|
|
1401
|
+
* Winner cannot be determined
|
|
1402
|
+
*/
|
|
1403
|
+
PairwiseChoice["TIE"] = "TIE";
|
|
1404
|
+
})(PairwiseChoice || (PairwiseChoice = {}));
|
|
1285
1405
|
/** The tuning task. Either I2V or T2V. This enum is not supported in Gemini API. */
|
|
1286
1406
|
var TuningTask;
|
|
1287
1407
|
(function (TuningTask) {
|
|
@@ -1394,22 +1514,6 @@ var SafetyFilterLevel;
|
|
|
1394
1514
|
SafetyFilterLevel["BLOCK_ONLY_HIGH"] = "BLOCK_ONLY_HIGH";
|
|
1395
1515
|
SafetyFilterLevel["BLOCK_NONE"] = "BLOCK_NONE";
|
|
1396
1516
|
})(SafetyFilterLevel || (SafetyFilterLevel = {}));
|
|
1397
|
-
/** Enum that controls the generation of people. */
|
|
1398
|
-
var PersonGeneration;
|
|
1399
|
-
(function (PersonGeneration) {
|
|
1400
|
-
/**
|
|
1401
|
-
* Block generation of images of people.
|
|
1402
|
-
*/
|
|
1403
|
-
PersonGeneration["DONT_ALLOW"] = "DONT_ALLOW";
|
|
1404
|
-
/**
|
|
1405
|
-
* Generate images of adults, but not children.
|
|
1406
|
-
*/
|
|
1407
|
-
PersonGeneration["ALLOW_ADULT"] = "ALLOW_ADULT";
|
|
1408
|
-
/**
|
|
1409
|
-
* Generate images that include adults and children.
|
|
1410
|
-
*/
|
|
1411
|
-
PersonGeneration["ALLOW_ALL"] = "ALLOW_ALL";
|
|
1412
|
-
})(PersonGeneration || (PersonGeneration = {}));
|
|
1413
1517
|
/** Enum that specifies the language of the text in the prompt. */
|
|
1414
1518
|
var ImagePromptLanguage;
|
|
1415
1519
|
(function (ImagePromptLanguage) {
|
|
@@ -2308,6 +2412,9 @@ class GenerateVideosOperation {
|
|
|
2308
2412
|
return operation;
|
|
2309
2413
|
}
|
|
2310
2414
|
}
|
|
2415
|
+
/** The results from an evaluation run performed by the EvaluationService. This data type is not supported in Gemini API. */
|
|
2416
|
+
class EvaluateDatasetResponse {
|
|
2417
|
+
}
|
|
2311
2418
|
/** Response for the list tuning jobs method. */
|
|
2312
2419
|
class ListTuningJobsResponse {
|
|
2313
2420
|
}
|
|
@@ -3427,6 +3534,33 @@ function tIsVertexEmbedContentModel(model) {
|
|
|
3427
3534
|
* Copyright 2025 Google LLC
|
|
3428
3535
|
* SPDX-License-Identifier: Apache-2.0
|
|
3429
3536
|
*/
|
|
3537
|
+
function authConfigToMldev$4(fromObject) {
|
|
3538
|
+
const toObject = {};
|
|
3539
|
+
const fromApiKey = getValueByPath(fromObject, ['apiKey']);
|
|
3540
|
+
if (fromApiKey != null) {
|
|
3541
|
+
setValueByPath(toObject, ['apiKey'], fromApiKey);
|
|
3542
|
+
}
|
|
3543
|
+
if (getValueByPath(fromObject, ['apiKeyConfig']) !== undefined) {
|
|
3544
|
+
throw new Error('apiKeyConfig parameter is not supported in Gemini API.');
|
|
3545
|
+
}
|
|
3546
|
+
if (getValueByPath(fromObject, ['authType']) !== undefined) {
|
|
3547
|
+
throw new Error('authType parameter is not supported in Gemini API.');
|
|
3548
|
+
}
|
|
3549
|
+
if (getValueByPath(fromObject, ['googleServiceAccountConfig']) !==
|
|
3550
|
+
undefined) {
|
|
3551
|
+
throw new Error('googleServiceAccountConfig parameter is not supported in Gemini API.');
|
|
3552
|
+
}
|
|
3553
|
+
if (getValueByPath(fromObject, ['httpBasicAuthConfig']) !== undefined) {
|
|
3554
|
+
throw new Error('httpBasicAuthConfig parameter is not supported in Gemini API.');
|
|
3555
|
+
}
|
|
3556
|
+
if (getValueByPath(fromObject, ['oauthConfig']) !== undefined) {
|
|
3557
|
+
throw new Error('oauthConfig parameter is not supported in Gemini API.');
|
|
3558
|
+
}
|
|
3559
|
+
if (getValueByPath(fromObject, ['oidcConfig']) !== undefined) {
|
|
3560
|
+
throw new Error('oidcConfig parameter is not supported in Gemini API.');
|
|
3561
|
+
}
|
|
3562
|
+
return toObject;
|
|
3563
|
+
}
|
|
3430
3564
|
function batchJobDestinationFromMldev(fromObject) {
|
|
3431
3565
|
const toObject = {};
|
|
3432
3566
|
const fromFileName = getValueByPath(fromObject, ['responsesFile']);
|
|
@@ -4276,8 +4410,9 @@ function getBatchJobParametersToVertex(apiClient, fromObject) {
|
|
|
4276
4410
|
}
|
|
4277
4411
|
function googleMapsToMldev$4(fromObject) {
|
|
4278
4412
|
const toObject = {};
|
|
4279
|
-
|
|
4280
|
-
|
|
4413
|
+
const fromAuthConfig = getValueByPath(fromObject, ['authConfig']);
|
|
4414
|
+
if (fromAuthConfig != null) {
|
|
4415
|
+
setValueByPath(toObject, ['authConfig'], authConfigToMldev$4(fromAuthConfig));
|
|
4281
4416
|
}
|
|
4282
4417
|
const fromEnableWidget = getValueByPath(fromObject, ['enableWidget']);
|
|
4283
4418
|
if (fromEnableWidget != null) {
|
|
@@ -4291,12 +4426,12 @@ function googleSearchToMldev$4(fromObject) {
|
|
|
4291
4426
|
if (fromSearchTypes != null) {
|
|
4292
4427
|
setValueByPath(toObject, ['searchTypes'], fromSearchTypes);
|
|
4293
4428
|
}
|
|
4294
|
-
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
4295
|
-
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
4296
|
-
}
|
|
4297
4429
|
if (getValueByPath(fromObject, ['blockingConfidence']) !== undefined) {
|
|
4298
4430
|
throw new Error('blockingConfidence parameter is not supported in Gemini API.');
|
|
4299
4431
|
}
|
|
4432
|
+
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
4433
|
+
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
4434
|
+
}
|
|
4300
4435
|
const fromTimeRangeFilter = getValueByPath(fromObject, [
|
|
4301
4436
|
'timeRangeFilter',
|
|
4302
4437
|
]);
|
|
@@ -4328,6 +4463,9 @@ function imageConfigToMldev$1(fromObject) {
|
|
|
4328
4463
|
undefined) {
|
|
4329
4464
|
throw new Error('outputCompressionQuality parameter is not supported in Gemini API.');
|
|
4330
4465
|
}
|
|
4466
|
+
if (getValueByPath(fromObject, ['imageOutputOptions']) !== undefined) {
|
|
4467
|
+
throw new Error('imageOutputOptions parameter is not supported in Gemini API.');
|
|
4468
|
+
}
|
|
4331
4469
|
return toObject;
|
|
4332
4470
|
}
|
|
4333
4471
|
function inlinedRequestToMldev(apiClient, fromObject) {
|
|
@@ -4581,6 +4719,10 @@ function toolToMldev$4(fromObject) {
|
|
|
4581
4719
|
if (fromGoogleSearch != null) {
|
|
4582
4720
|
setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$4(fromGoogleSearch));
|
|
4583
4721
|
}
|
|
4722
|
+
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
4723
|
+
if (fromGoogleMaps != null) {
|
|
4724
|
+
setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$4(fromGoogleMaps));
|
|
4725
|
+
}
|
|
4584
4726
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
4585
4727
|
'codeExecution',
|
|
4586
4728
|
]);
|
|
@@ -4602,16 +4744,15 @@ function toolToMldev$4(fromObject) {
|
|
|
4602
4744
|
}
|
|
4603
4745
|
setValueByPath(toObject, ['functionDeclarations'], transformedList);
|
|
4604
4746
|
}
|
|
4605
|
-
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
4606
|
-
if (fromGoogleMaps != null) {
|
|
4607
|
-
setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$4(fromGoogleMaps));
|
|
4608
|
-
}
|
|
4609
4747
|
const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
|
|
4610
4748
|
'googleSearchRetrieval',
|
|
4611
4749
|
]);
|
|
4612
4750
|
if (fromGoogleSearchRetrieval != null) {
|
|
4613
4751
|
setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
|
|
4614
4752
|
}
|
|
4753
|
+
if (getValueByPath(fromObject, ['parallelAiSearch']) !== undefined) {
|
|
4754
|
+
throw new Error('parallelAiSearch parameter is not supported in Gemini API.');
|
|
4755
|
+
}
|
|
4615
4756
|
const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
|
|
4616
4757
|
if (fromUrlContext != null) {
|
|
4617
4758
|
setValueByPath(toObject, ['urlContext'], fromUrlContext);
|
|
@@ -5321,6 +5462,33 @@ class Batches extends BaseModule {
|
|
|
5321
5462
|
* Copyright 2025 Google LLC
|
|
5322
5463
|
* SPDX-License-Identifier: Apache-2.0
|
|
5323
5464
|
*/
|
|
5465
|
+
function authConfigToMldev$3(fromObject) {
|
|
5466
|
+
const toObject = {};
|
|
5467
|
+
const fromApiKey = getValueByPath(fromObject, ['apiKey']);
|
|
5468
|
+
if (fromApiKey != null) {
|
|
5469
|
+
setValueByPath(toObject, ['apiKey'], fromApiKey);
|
|
5470
|
+
}
|
|
5471
|
+
if (getValueByPath(fromObject, ['apiKeyConfig']) !== undefined) {
|
|
5472
|
+
throw new Error('apiKeyConfig parameter is not supported in Gemini API.');
|
|
5473
|
+
}
|
|
5474
|
+
if (getValueByPath(fromObject, ['authType']) !== undefined) {
|
|
5475
|
+
throw new Error('authType parameter is not supported in Gemini API.');
|
|
5476
|
+
}
|
|
5477
|
+
if (getValueByPath(fromObject, ['googleServiceAccountConfig']) !==
|
|
5478
|
+
undefined) {
|
|
5479
|
+
throw new Error('googleServiceAccountConfig parameter is not supported in Gemini API.');
|
|
5480
|
+
}
|
|
5481
|
+
if (getValueByPath(fromObject, ['httpBasicAuthConfig']) !== undefined) {
|
|
5482
|
+
throw new Error('httpBasicAuthConfig parameter is not supported in Gemini API.');
|
|
5483
|
+
}
|
|
5484
|
+
if (getValueByPath(fromObject, ['oauthConfig']) !== undefined) {
|
|
5485
|
+
throw new Error('oauthConfig parameter is not supported in Gemini API.');
|
|
5486
|
+
}
|
|
5487
|
+
if (getValueByPath(fromObject, ['oidcConfig']) !== undefined) {
|
|
5488
|
+
throw new Error('oidcConfig parameter is not supported in Gemini API.');
|
|
5489
|
+
}
|
|
5490
|
+
return toObject;
|
|
5491
|
+
}
|
|
5324
5492
|
function blobToMldev$3(fromObject) {
|
|
5325
5493
|
const toObject = {};
|
|
5326
5494
|
const fromData = getValueByPath(fromObject, ['data']);
|
|
@@ -5621,8 +5789,9 @@ function getCachedContentParametersToVertex(apiClient, fromObject) {
|
|
|
5621
5789
|
}
|
|
5622
5790
|
function googleMapsToMldev$3(fromObject) {
|
|
5623
5791
|
const toObject = {};
|
|
5624
|
-
|
|
5625
|
-
|
|
5792
|
+
const fromAuthConfig = getValueByPath(fromObject, ['authConfig']);
|
|
5793
|
+
if (fromAuthConfig != null) {
|
|
5794
|
+
setValueByPath(toObject, ['authConfig'], authConfigToMldev$3(fromAuthConfig));
|
|
5626
5795
|
}
|
|
5627
5796
|
const fromEnableWidget = getValueByPath(fromObject, ['enableWidget']);
|
|
5628
5797
|
if (fromEnableWidget != null) {
|
|
@@ -5636,12 +5805,12 @@ function googleSearchToMldev$3(fromObject) {
|
|
|
5636
5805
|
if (fromSearchTypes != null) {
|
|
5637
5806
|
setValueByPath(toObject, ['searchTypes'], fromSearchTypes);
|
|
5638
5807
|
}
|
|
5639
|
-
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
5640
|
-
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
5641
|
-
}
|
|
5642
5808
|
if (getValueByPath(fromObject, ['blockingConfidence']) !== undefined) {
|
|
5643
5809
|
throw new Error('blockingConfidence parameter is not supported in Gemini API.');
|
|
5644
5810
|
}
|
|
5811
|
+
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
5812
|
+
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
5813
|
+
}
|
|
5645
5814
|
const fromTimeRangeFilter = getValueByPath(fromObject, [
|
|
5646
5815
|
'timeRangeFilter',
|
|
5647
5816
|
]);
|
|
@@ -5839,6 +6008,10 @@ function toolToMldev$3(fromObject) {
|
|
|
5839
6008
|
if (fromGoogleSearch != null) {
|
|
5840
6009
|
setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$3(fromGoogleSearch));
|
|
5841
6010
|
}
|
|
6011
|
+
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
6012
|
+
if (fromGoogleMaps != null) {
|
|
6013
|
+
setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$3(fromGoogleMaps));
|
|
6014
|
+
}
|
|
5842
6015
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
5843
6016
|
'codeExecution',
|
|
5844
6017
|
]);
|
|
@@ -5860,16 +6033,15 @@ function toolToMldev$3(fromObject) {
|
|
|
5860
6033
|
}
|
|
5861
6034
|
setValueByPath(toObject, ['functionDeclarations'], transformedList);
|
|
5862
6035
|
}
|
|
5863
|
-
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
5864
|
-
if (fromGoogleMaps != null) {
|
|
5865
|
-
setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$3(fromGoogleMaps));
|
|
5866
|
-
}
|
|
5867
6036
|
const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
|
|
5868
6037
|
'googleSearchRetrieval',
|
|
5869
6038
|
]);
|
|
5870
6039
|
if (fromGoogleSearchRetrieval != null) {
|
|
5871
6040
|
setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
|
|
5872
6041
|
}
|
|
6042
|
+
if (getValueByPath(fromObject, ['parallelAiSearch']) !== undefined) {
|
|
6043
|
+
throw new Error('parallelAiSearch parameter is not supported in Gemini API.');
|
|
6044
|
+
}
|
|
5873
6045
|
const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
|
|
5874
6046
|
if (fromUrlContext != null) {
|
|
5875
6047
|
setValueByPath(toObject, ['urlContext'], fromUrlContext);
|
|
@@ -5903,6 +6075,10 @@ function toolToVertex$2(fromObject) {
|
|
|
5903
6075
|
if (fromGoogleSearch != null) {
|
|
5904
6076
|
setValueByPath(toObject, ['googleSearch'], fromGoogleSearch);
|
|
5905
6077
|
}
|
|
6078
|
+
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
6079
|
+
if (fromGoogleMaps != null) {
|
|
6080
|
+
setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);
|
|
6081
|
+
}
|
|
5906
6082
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
5907
6083
|
'codeExecution',
|
|
5908
6084
|
]);
|
|
@@ -5927,16 +6103,18 @@ function toolToVertex$2(fromObject) {
|
|
|
5927
6103
|
}
|
|
5928
6104
|
setValueByPath(toObject, ['functionDeclarations'], transformedList);
|
|
5929
6105
|
}
|
|
5930
|
-
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
5931
|
-
if (fromGoogleMaps != null) {
|
|
5932
|
-
setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);
|
|
5933
|
-
}
|
|
5934
6106
|
const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
|
|
5935
6107
|
'googleSearchRetrieval',
|
|
5936
6108
|
]);
|
|
5937
6109
|
if (fromGoogleSearchRetrieval != null) {
|
|
5938
6110
|
setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
|
|
5939
6111
|
}
|
|
6112
|
+
const fromParallelAiSearch = getValueByPath(fromObject, [
|
|
6113
|
+
'parallelAiSearch',
|
|
6114
|
+
]);
|
|
6115
|
+
if (fromParallelAiSearch != null) {
|
|
6116
|
+
setValueByPath(toObject, ['parallelAiSearch'], fromParallelAiSearch);
|
|
6117
|
+
}
|
|
5940
6118
|
const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
|
|
5941
6119
|
if (fromUrlContext != null) {
|
|
5942
6120
|
setValueByPath(toObject, ['urlContext'], fromUrlContext);
|
|
@@ -7231,6 +7409,33 @@ class Files extends BaseModule {
|
|
|
7231
7409
|
* Copyright 2025 Google LLC
|
|
7232
7410
|
* SPDX-License-Identifier: Apache-2.0
|
|
7233
7411
|
*/
|
|
7412
|
+
function authConfigToMldev$2(fromObject) {
|
|
7413
|
+
const toObject = {};
|
|
7414
|
+
const fromApiKey = getValueByPath(fromObject, ['apiKey']);
|
|
7415
|
+
if (fromApiKey != null) {
|
|
7416
|
+
setValueByPath(toObject, ['apiKey'], fromApiKey);
|
|
7417
|
+
}
|
|
7418
|
+
if (getValueByPath(fromObject, ['apiKeyConfig']) !== undefined) {
|
|
7419
|
+
throw new Error('apiKeyConfig parameter is not supported in Gemini API.');
|
|
7420
|
+
}
|
|
7421
|
+
if (getValueByPath(fromObject, ['authType']) !== undefined) {
|
|
7422
|
+
throw new Error('authType parameter is not supported in Gemini API.');
|
|
7423
|
+
}
|
|
7424
|
+
if (getValueByPath(fromObject, ['googleServiceAccountConfig']) !==
|
|
7425
|
+
undefined) {
|
|
7426
|
+
throw new Error('googleServiceAccountConfig parameter is not supported in Gemini API.');
|
|
7427
|
+
}
|
|
7428
|
+
if (getValueByPath(fromObject, ['httpBasicAuthConfig']) !== undefined) {
|
|
7429
|
+
throw new Error('httpBasicAuthConfig parameter is not supported in Gemini API.');
|
|
7430
|
+
}
|
|
7431
|
+
if (getValueByPath(fromObject, ['oauthConfig']) !== undefined) {
|
|
7432
|
+
throw new Error('oauthConfig parameter is not supported in Gemini API.');
|
|
7433
|
+
}
|
|
7434
|
+
if (getValueByPath(fromObject, ['oidcConfig']) !== undefined) {
|
|
7435
|
+
throw new Error('oidcConfig parameter is not supported in Gemini API.');
|
|
7436
|
+
}
|
|
7437
|
+
return toObject;
|
|
7438
|
+
}
|
|
7234
7439
|
function blobToMldev$2(fromObject) {
|
|
7235
7440
|
const toObject = {};
|
|
7236
7441
|
const fromData = getValueByPath(fromObject, ['data']);
|
|
@@ -7466,8 +7671,9 @@ function generationConfigToVertex$1(fromObject) {
|
|
|
7466
7671
|
}
|
|
7467
7672
|
function googleMapsToMldev$2(fromObject) {
|
|
7468
7673
|
const toObject = {};
|
|
7469
|
-
|
|
7470
|
-
|
|
7674
|
+
const fromAuthConfig = getValueByPath(fromObject, ['authConfig']);
|
|
7675
|
+
if (fromAuthConfig != null) {
|
|
7676
|
+
setValueByPath(toObject, ['authConfig'], authConfigToMldev$2(fromAuthConfig));
|
|
7471
7677
|
}
|
|
7472
7678
|
const fromEnableWidget = getValueByPath(fromObject, ['enableWidget']);
|
|
7473
7679
|
if (fromEnableWidget != null) {
|
|
@@ -7481,12 +7687,12 @@ function googleSearchToMldev$2(fromObject) {
|
|
|
7481
7687
|
if (fromSearchTypes != null) {
|
|
7482
7688
|
setValueByPath(toObject, ['searchTypes'], fromSearchTypes);
|
|
7483
7689
|
}
|
|
7484
|
-
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
7485
|
-
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
7486
|
-
}
|
|
7487
7690
|
if (getValueByPath(fromObject, ['blockingConfidence']) !== undefined) {
|
|
7488
7691
|
throw new Error('blockingConfidence parameter is not supported in Gemini API.');
|
|
7489
7692
|
}
|
|
7693
|
+
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
7694
|
+
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
7695
|
+
}
|
|
7490
7696
|
const fromTimeRangeFilter = getValueByPath(fromObject, [
|
|
7491
7697
|
'timeRangeFilter',
|
|
7492
7698
|
]);
|
|
@@ -8000,6 +8206,10 @@ function toolToMldev$2(fromObject) {
|
|
|
8000
8206
|
if (fromGoogleSearch != null) {
|
|
8001
8207
|
setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$2(fromGoogleSearch));
|
|
8002
8208
|
}
|
|
8209
|
+
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
8210
|
+
if (fromGoogleMaps != null) {
|
|
8211
|
+
setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$2(fromGoogleMaps));
|
|
8212
|
+
}
|
|
8003
8213
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
8004
8214
|
'codeExecution',
|
|
8005
8215
|
]);
|
|
@@ -8021,16 +8231,15 @@ function toolToMldev$2(fromObject) {
|
|
|
8021
8231
|
}
|
|
8022
8232
|
setValueByPath(toObject, ['functionDeclarations'], transformedList);
|
|
8023
8233
|
}
|
|
8024
|
-
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
8025
|
-
if (fromGoogleMaps != null) {
|
|
8026
|
-
setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$2(fromGoogleMaps));
|
|
8027
|
-
}
|
|
8028
8234
|
const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
|
|
8029
8235
|
'googleSearchRetrieval',
|
|
8030
8236
|
]);
|
|
8031
8237
|
if (fromGoogleSearchRetrieval != null) {
|
|
8032
8238
|
setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
|
|
8033
8239
|
}
|
|
8240
|
+
if (getValueByPath(fromObject, ['parallelAiSearch']) !== undefined) {
|
|
8241
|
+
throw new Error('parallelAiSearch parameter is not supported in Gemini API.');
|
|
8242
|
+
}
|
|
8034
8243
|
const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
|
|
8035
8244
|
if (fromUrlContext != null) {
|
|
8036
8245
|
setValueByPath(toObject, ['urlContext'], fromUrlContext);
|
|
@@ -8064,6 +8273,10 @@ function toolToVertex$1(fromObject) {
|
|
|
8064
8273
|
if (fromGoogleSearch != null) {
|
|
8065
8274
|
setValueByPath(toObject, ['googleSearch'], fromGoogleSearch);
|
|
8066
8275
|
}
|
|
8276
|
+
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
8277
|
+
if (fromGoogleMaps != null) {
|
|
8278
|
+
setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);
|
|
8279
|
+
}
|
|
8067
8280
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
8068
8281
|
'codeExecution',
|
|
8069
8282
|
]);
|
|
@@ -8088,16 +8301,18 @@ function toolToVertex$1(fromObject) {
|
|
|
8088
8301
|
}
|
|
8089
8302
|
setValueByPath(toObject, ['functionDeclarations'], transformedList);
|
|
8090
8303
|
}
|
|
8091
|
-
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
8092
|
-
if (fromGoogleMaps != null) {
|
|
8093
|
-
setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);
|
|
8094
|
-
}
|
|
8095
8304
|
const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
|
|
8096
8305
|
'googleSearchRetrieval',
|
|
8097
8306
|
]);
|
|
8098
8307
|
if (fromGoogleSearchRetrieval != null) {
|
|
8099
8308
|
setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
|
|
8100
8309
|
}
|
|
8310
|
+
const fromParallelAiSearch = getValueByPath(fromObject, [
|
|
8311
|
+
'parallelAiSearch',
|
|
8312
|
+
]);
|
|
8313
|
+
if (fromParallelAiSearch != null) {
|
|
8314
|
+
setValueByPath(toObject, ['parallelAiSearch'], fromParallelAiSearch);
|
|
8315
|
+
}
|
|
8101
8316
|
const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
|
|
8102
8317
|
if (fromUrlContext != null) {
|
|
8103
8318
|
setValueByPath(toObject, ['urlContext'], fromUrlContext);
|
|
@@ -8213,6 +8428,33 @@ function voiceActivityFromVertex(fromObject) {
|
|
|
8213
8428
|
* Copyright 2025 Google LLC
|
|
8214
8429
|
* SPDX-License-Identifier: Apache-2.0
|
|
8215
8430
|
*/
|
|
8431
|
+
function authConfigToMldev$1(fromObject, _rootObject) {
|
|
8432
|
+
const toObject = {};
|
|
8433
|
+
const fromApiKey = getValueByPath(fromObject, ['apiKey']);
|
|
8434
|
+
if (fromApiKey != null) {
|
|
8435
|
+
setValueByPath(toObject, ['apiKey'], fromApiKey);
|
|
8436
|
+
}
|
|
8437
|
+
if (getValueByPath(fromObject, ['apiKeyConfig']) !== undefined) {
|
|
8438
|
+
throw new Error('apiKeyConfig parameter is not supported in Gemini API.');
|
|
8439
|
+
}
|
|
8440
|
+
if (getValueByPath(fromObject, ['authType']) !== undefined) {
|
|
8441
|
+
throw new Error('authType parameter is not supported in Gemini API.');
|
|
8442
|
+
}
|
|
8443
|
+
if (getValueByPath(fromObject, ['googleServiceAccountConfig']) !==
|
|
8444
|
+
undefined) {
|
|
8445
|
+
throw new Error('googleServiceAccountConfig parameter is not supported in Gemini API.');
|
|
8446
|
+
}
|
|
8447
|
+
if (getValueByPath(fromObject, ['httpBasicAuthConfig']) !== undefined) {
|
|
8448
|
+
throw new Error('httpBasicAuthConfig parameter is not supported in Gemini API.');
|
|
8449
|
+
}
|
|
8450
|
+
if (getValueByPath(fromObject, ['oauthConfig']) !== undefined) {
|
|
8451
|
+
throw new Error('oauthConfig parameter is not supported in Gemini API.');
|
|
8452
|
+
}
|
|
8453
|
+
if (getValueByPath(fromObject, ['oidcConfig']) !== undefined) {
|
|
8454
|
+
throw new Error('oidcConfig parameter is not supported in Gemini API.');
|
|
8455
|
+
}
|
|
8456
|
+
return toObject;
|
|
8457
|
+
}
|
|
8216
8458
|
function blobToMldev$1(fromObject, _rootObject) {
|
|
8217
8459
|
const toObject = {};
|
|
8218
8460
|
const fromData = getValueByPath(fromObject, ['data']);
|
|
@@ -10361,10 +10603,11 @@ function getModelParametersToVertex(apiClient, fromObject, _rootObject) {
|
|
|
10361
10603
|
}
|
|
10362
10604
|
return toObject;
|
|
10363
10605
|
}
|
|
10364
|
-
function googleMapsToMldev$1(fromObject,
|
|
10606
|
+
function googleMapsToMldev$1(fromObject, rootObject) {
|
|
10365
10607
|
const toObject = {};
|
|
10366
|
-
|
|
10367
|
-
|
|
10608
|
+
const fromAuthConfig = getValueByPath(fromObject, ['authConfig']);
|
|
10609
|
+
if (fromAuthConfig != null) {
|
|
10610
|
+
setValueByPath(toObject, ['authConfig'], authConfigToMldev$1(fromAuthConfig));
|
|
10368
10611
|
}
|
|
10369
10612
|
const fromEnableWidget = getValueByPath(fromObject, ['enableWidget']);
|
|
10370
10613
|
if (fromEnableWidget != null) {
|
|
@@ -10378,12 +10621,12 @@ function googleSearchToMldev$1(fromObject, _rootObject) {
|
|
|
10378
10621
|
if (fromSearchTypes != null) {
|
|
10379
10622
|
setValueByPath(toObject, ['searchTypes'], fromSearchTypes);
|
|
10380
10623
|
}
|
|
10381
|
-
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
10382
|
-
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
10383
|
-
}
|
|
10384
10624
|
if (getValueByPath(fromObject, ['blockingConfidence']) !== undefined) {
|
|
10385
10625
|
throw new Error('blockingConfidence parameter is not supported in Gemini API.');
|
|
10386
10626
|
}
|
|
10627
|
+
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
10628
|
+
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
10629
|
+
}
|
|
10387
10630
|
const fromTimeRangeFilter = getValueByPath(fromObject, [
|
|
10388
10631
|
'timeRangeFilter',
|
|
10389
10632
|
]);
|
|
@@ -10415,6 +10658,9 @@ function imageConfigToMldev(fromObject, _rootObject) {
|
|
|
10415
10658
|
undefined) {
|
|
10416
10659
|
throw new Error('outputCompressionQuality parameter is not supported in Gemini API.');
|
|
10417
10660
|
}
|
|
10661
|
+
if (getValueByPath(fromObject, ['imageOutputOptions']) !== undefined) {
|
|
10662
|
+
throw new Error('imageOutputOptions parameter is not supported in Gemini API.');
|
|
10663
|
+
}
|
|
10418
10664
|
return toObject;
|
|
10419
10665
|
}
|
|
10420
10666
|
function imageConfigToVertex(fromObject, _rootObject) {
|
|
@@ -10451,6 +10697,12 @@ function imageConfigToVertex(fromObject, _rootObject) {
|
|
|
10451
10697
|
if (fromOutputCompressionQuality != null) {
|
|
10452
10698
|
setValueByPath(toObject, ['imageOutputOptions', 'compressionQuality'], fromOutputCompressionQuality);
|
|
10453
10699
|
}
|
|
10700
|
+
const fromImageOutputOptions = getValueByPath(fromObject, [
|
|
10701
|
+
'imageOutputOptions',
|
|
10702
|
+
]);
|
|
10703
|
+
if (fromImageOutputOptions != null) {
|
|
10704
|
+
setValueByPath(toObject, ['imageOutputOptions'], fromImageOutputOptions);
|
|
10705
|
+
}
|
|
10454
10706
|
return toObject;
|
|
10455
10707
|
}
|
|
10456
10708
|
function imageFromMldev(fromObject, _rootObject) {
|
|
@@ -11170,6 +11422,10 @@ function toolToMldev$1(fromObject, rootObject) {
|
|
|
11170
11422
|
if (fromGoogleSearch != null) {
|
|
11171
11423
|
setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$1(fromGoogleSearch));
|
|
11172
11424
|
}
|
|
11425
|
+
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
11426
|
+
if (fromGoogleMaps != null) {
|
|
11427
|
+
setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$1(fromGoogleMaps));
|
|
11428
|
+
}
|
|
11173
11429
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
11174
11430
|
'codeExecution',
|
|
11175
11431
|
]);
|
|
@@ -11191,16 +11447,15 @@ function toolToMldev$1(fromObject, rootObject) {
|
|
|
11191
11447
|
}
|
|
11192
11448
|
setValueByPath(toObject, ['functionDeclarations'], transformedList);
|
|
11193
11449
|
}
|
|
11194
|
-
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
11195
|
-
if (fromGoogleMaps != null) {
|
|
11196
|
-
setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$1(fromGoogleMaps));
|
|
11197
|
-
}
|
|
11198
11450
|
const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
|
|
11199
11451
|
'googleSearchRetrieval',
|
|
11200
11452
|
]);
|
|
11201
11453
|
if (fromGoogleSearchRetrieval != null) {
|
|
11202
11454
|
setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
|
|
11203
11455
|
}
|
|
11456
|
+
if (getValueByPath(fromObject, ['parallelAiSearch']) !== undefined) {
|
|
11457
|
+
throw new Error('parallelAiSearch parameter is not supported in Gemini API.');
|
|
11458
|
+
}
|
|
11204
11459
|
const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
|
|
11205
11460
|
if (fromUrlContext != null) {
|
|
11206
11461
|
setValueByPath(toObject, ['urlContext'], fromUrlContext);
|
|
@@ -11234,6 +11489,10 @@ function toolToVertex(fromObject, rootObject) {
|
|
|
11234
11489
|
if (fromGoogleSearch != null) {
|
|
11235
11490
|
setValueByPath(toObject, ['googleSearch'], fromGoogleSearch);
|
|
11236
11491
|
}
|
|
11492
|
+
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
11493
|
+
if (fromGoogleMaps != null) {
|
|
11494
|
+
setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);
|
|
11495
|
+
}
|
|
11237
11496
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
11238
11497
|
'codeExecution',
|
|
11239
11498
|
]);
|
|
@@ -11258,16 +11517,18 @@ function toolToVertex(fromObject, rootObject) {
|
|
|
11258
11517
|
}
|
|
11259
11518
|
setValueByPath(toObject, ['functionDeclarations'], transformedList);
|
|
11260
11519
|
}
|
|
11261
|
-
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
11262
|
-
if (fromGoogleMaps != null) {
|
|
11263
|
-
setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);
|
|
11264
|
-
}
|
|
11265
11520
|
const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
|
|
11266
11521
|
'googleSearchRetrieval',
|
|
11267
11522
|
]);
|
|
11268
11523
|
if (fromGoogleSearchRetrieval != null) {
|
|
11269
11524
|
setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
|
|
11270
11525
|
}
|
|
11526
|
+
const fromParallelAiSearch = getValueByPath(fromObject, [
|
|
11527
|
+
'parallelAiSearch',
|
|
11528
|
+
]);
|
|
11529
|
+
if (fromParallelAiSearch != null) {
|
|
11530
|
+
setValueByPath(toObject, ['parallelAiSearch'], fromParallelAiSearch);
|
|
11531
|
+
}
|
|
11271
11532
|
const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
|
|
11272
11533
|
if (fromUrlContext != null) {
|
|
11273
11534
|
setValueByPath(toObject, ['urlContext'], fromUrlContext);
|
|
@@ -11831,7 +12092,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
11831
12092
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
11832
12093
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
11833
12094
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
11834
|
-
const SDK_VERSION = '1.
|
|
12095
|
+
const SDK_VERSION = '1.44.0'; // x-release-please-version
|
|
11835
12096
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
11836
12097
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
11837
12098
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|
|
@@ -11850,6 +12111,9 @@ const DEFAULT_RETRY_HTTP_STATUS_CODES = [
|
|
|
11850
12111
|
/**
|
|
11851
12112
|
* The ApiClient class is used to send requests to the Gemini API or Vertex AI
|
|
11852
12113
|
* endpoints.
|
|
12114
|
+
*
|
|
12115
|
+
* WARNING: This is an internal API and may change without notice. Direct usage
|
|
12116
|
+
* is not supported and may break your application.
|
|
11853
12117
|
*/
|
|
11854
12118
|
class ApiClient {
|
|
11855
12119
|
constructor(opts) {
|
|
@@ -11897,10 +12161,7 @@ class ApiClient {
|
|
|
11897
12161
|
else {
|
|
11898
12162
|
// Gemini API
|
|
11899
12163
|
if (!this.clientOptions.apiKey) {
|
|
11900
|
-
|
|
11901
|
-
message: 'API key must be set when using the Gemini API.',
|
|
11902
|
-
status: 403,
|
|
11903
|
-
});
|
|
12164
|
+
console.warn('API key should be set when using the Gemini API.');
|
|
11904
12165
|
}
|
|
11905
12166
|
initHttpOptions.apiVersion =
|
|
11906
12167
|
(_c = this.clientOptions.apiVersion) !== null && _c !== void 0 ? _c : GOOGLE_AI_API_DEFAULT_VERSION;
|
|
@@ -15163,6 +15424,33 @@ class Operations extends BaseModule {
|
|
|
15163
15424
|
* Copyright 2025 Google LLC
|
|
15164
15425
|
* SPDX-License-Identifier: Apache-2.0
|
|
15165
15426
|
*/
|
|
15427
|
+
function authConfigToMldev(fromObject) {
|
|
15428
|
+
const toObject = {};
|
|
15429
|
+
const fromApiKey = getValueByPath(fromObject, ['apiKey']);
|
|
15430
|
+
if (fromApiKey != null) {
|
|
15431
|
+
setValueByPath(toObject, ['apiKey'], fromApiKey);
|
|
15432
|
+
}
|
|
15433
|
+
if (getValueByPath(fromObject, ['apiKeyConfig']) !== undefined) {
|
|
15434
|
+
throw new Error('apiKeyConfig parameter is not supported in Gemini API.');
|
|
15435
|
+
}
|
|
15436
|
+
if (getValueByPath(fromObject, ['authType']) !== undefined) {
|
|
15437
|
+
throw new Error('authType parameter is not supported in Gemini API.');
|
|
15438
|
+
}
|
|
15439
|
+
if (getValueByPath(fromObject, ['googleServiceAccountConfig']) !==
|
|
15440
|
+
undefined) {
|
|
15441
|
+
throw new Error('googleServiceAccountConfig parameter is not supported in Gemini API.');
|
|
15442
|
+
}
|
|
15443
|
+
if (getValueByPath(fromObject, ['httpBasicAuthConfig']) !== undefined) {
|
|
15444
|
+
throw new Error('httpBasicAuthConfig parameter is not supported in Gemini API.');
|
|
15445
|
+
}
|
|
15446
|
+
if (getValueByPath(fromObject, ['oauthConfig']) !== undefined) {
|
|
15447
|
+
throw new Error('oauthConfig parameter is not supported in Gemini API.');
|
|
15448
|
+
}
|
|
15449
|
+
if (getValueByPath(fromObject, ['oidcConfig']) !== undefined) {
|
|
15450
|
+
throw new Error('oidcConfig parameter is not supported in Gemini API.');
|
|
15451
|
+
}
|
|
15452
|
+
return toObject;
|
|
15453
|
+
}
|
|
15166
15454
|
function blobToMldev(fromObject) {
|
|
15167
15455
|
const toObject = {};
|
|
15168
15456
|
const fromData = getValueByPath(fromObject, ['data']);
|
|
@@ -15273,8 +15561,9 @@ function functionCallToMldev(fromObject) {
|
|
|
15273
15561
|
}
|
|
15274
15562
|
function googleMapsToMldev(fromObject) {
|
|
15275
15563
|
const toObject = {};
|
|
15276
|
-
|
|
15277
|
-
|
|
15564
|
+
const fromAuthConfig = getValueByPath(fromObject, ['authConfig']);
|
|
15565
|
+
if (fromAuthConfig != null) {
|
|
15566
|
+
setValueByPath(toObject, ['authConfig'], authConfigToMldev(fromAuthConfig));
|
|
15278
15567
|
}
|
|
15279
15568
|
const fromEnableWidget = getValueByPath(fromObject, ['enableWidget']);
|
|
15280
15569
|
if (fromEnableWidget != null) {
|
|
@@ -15288,12 +15577,12 @@ function googleSearchToMldev(fromObject) {
|
|
|
15288
15577
|
if (fromSearchTypes != null) {
|
|
15289
15578
|
setValueByPath(toObject, ['searchTypes'], fromSearchTypes);
|
|
15290
15579
|
}
|
|
15291
|
-
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
15292
|
-
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
15293
|
-
}
|
|
15294
15580
|
if (getValueByPath(fromObject, ['blockingConfidence']) !== undefined) {
|
|
15295
15581
|
throw new Error('blockingConfidence parameter is not supported in Gemini API.');
|
|
15296
15582
|
}
|
|
15583
|
+
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
15584
|
+
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
15585
|
+
}
|
|
15297
15586
|
const fromTimeRangeFilter = getValueByPath(fromObject, [
|
|
15298
15587
|
'timeRangeFilter',
|
|
15299
15588
|
]);
|
|
@@ -15515,6 +15804,10 @@ function toolToMldev(fromObject) {
|
|
|
15515
15804
|
if (fromGoogleSearch != null) {
|
|
15516
15805
|
setValueByPath(toObject, ['googleSearch'], googleSearchToMldev(fromGoogleSearch));
|
|
15517
15806
|
}
|
|
15807
|
+
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
15808
|
+
if (fromGoogleMaps != null) {
|
|
15809
|
+
setValueByPath(toObject, ['googleMaps'], googleMapsToMldev(fromGoogleMaps));
|
|
15810
|
+
}
|
|
15518
15811
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
15519
15812
|
'codeExecution',
|
|
15520
15813
|
]);
|
|
@@ -15536,16 +15829,15 @@ function toolToMldev(fromObject) {
|
|
|
15536
15829
|
}
|
|
15537
15830
|
setValueByPath(toObject, ['functionDeclarations'], transformedList);
|
|
15538
15831
|
}
|
|
15539
|
-
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
15540
|
-
if (fromGoogleMaps != null) {
|
|
15541
|
-
setValueByPath(toObject, ['googleMaps'], googleMapsToMldev(fromGoogleMaps));
|
|
15542
|
-
}
|
|
15543
15832
|
const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
|
|
15544
15833
|
'googleSearchRetrieval',
|
|
15545
15834
|
]);
|
|
15546
15835
|
if (fromGoogleSearchRetrieval != null) {
|
|
15547
15836
|
setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
|
|
15548
15837
|
}
|
|
15838
|
+
if (getValueByPath(fromObject, ['parallelAiSearch']) !== undefined) {
|
|
15839
|
+
throw new Error('parallelAiSearch parameter is not supported in Gemini API.');
|
|
15840
|
+
}
|
|
15549
15841
|
const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
|
|
15550
15842
|
if (fromUrlContext != null) {
|
|
15551
15843
|
setValueByPath(toObject, ['urlContext'], fromUrlContext);
|
|
@@ -16546,166 +16838,6 @@ const safeJSON = (text) => {
|
|
|
16546
16838
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
16547
16839
|
const sleep$1 = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
16548
16840
|
|
|
16549
|
-
/**
|
|
16550
|
-
* @license
|
|
16551
|
-
* Copyright 2025 Google LLC
|
|
16552
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
16553
|
-
*/
|
|
16554
|
-
const VERSION = '0.0.1';
|
|
16555
|
-
|
|
16556
|
-
/**
|
|
16557
|
-
* @license
|
|
16558
|
-
* Copyright 2025 Google LLC
|
|
16559
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
16560
|
-
*/
|
|
16561
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
16562
|
-
/**
|
|
16563
|
-
* Note this does not detect 'browser'; for that, use getBrowserInfo().
|
|
16564
|
-
*/
|
|
16565
|
-
function getDetectedPlatform() {
|
|
16566
|
-
if (typeof Deno !== 'undefined' && Deno.build != null) {
|
|
16567
|
-
return 'deno';
|
|
16568
|
-
}
|
|
16569
|
-
if (typeof EdgeRuntime !== 'undefined') {
|
|
16570
|
-
return 'edge';
|
|
16571
|
-
}
|
|
16572
|
-
if (Object.prototype.toString.call(typeof globalThis.process !== 'undefined' ? globalThis.process : 0) === '[object process]') {
|
|
16573
|
-
return 'node';
|
|
16574
|
-
}
|
|
16575
|
-
return 'unknown';
|
|
16576
|
-
}
|
|
16577
|
-
const getPlatformProperties = () => {
|
|
16578
|
-
var _a, _b, _c, _d, _e;
|
|
16579
|
-
const detectedPlatform = getDetectedPlatform();
|
|
16580
|
-
if (detectedPlatform === 'deno') {
|
|
16581
|
-
return {
|
|
16582
|
-
'X-Stainless-Lang': 'js',
|
|
16583
|
-
'X-Stainless-Package-Version': VERSION,
|
|
16584
|
-
'X-Stainless-OS': normalizePlatform(Deno.build.os),
|
|
16585
|
-
'X-Stainless-Arch': normalizeArch(Deno.build.arch),
|
|
16586
|
-
'X-Stainless-Runtime': 'deno',
|
|
16587
|
-
'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',
|
|
16588
|
-
};
|
|
16589
|
-
}
|
|
16590
|
-
if (typeof EdgeRuntime !== 'undefined') {
|
|
16591
|
-
return {
|
|
16592
|
-
'X-Stainless-Lang': 'js',
|
|
16593
|
-
'X-Stainless-Package-Version': VERSION,
|
|
16594
|
-
'X-Stainless-OS': 'Unknown',
|
|
16595
|
-
'X-Stainless-Arch': `other:${EdgeRuntime}`,
|
|
16596
|
-
'X-Stainless-Runtime': 'edge',
|
|
16597
|
-
'X-Stainless-Runtime-Version': globalThis.process.version,
|
|
16598
|
-
};
|
|
16599
|
-
}
|
|
16600
|
-
// Check if Node.js
|
|
16601
|
-
if (detectedPlatform === 'node') {
|
|
16602
|
-
return {
|
|
16603
|
-
'X-Stainless-Lang': 'js',
|
|
16604
|
-
'X-Stainless-Package-Version': VERSION,
|
|
16605
|
-
'X-Stainless-OS': normalizePlatform((_c = globalThis.process.platform) !== null && _c !== void 0 ? _c : 'unknown'),
|
|
16606
|
-
'X-Stainless-Arch': normalizeArch((_d = globalThis.process.arch) !== null && _d !== void 0 ? _d : 'unknown'),
|
|
16607
|
-
'X-Stainless-Runtime': 'node',
|
|
16608
|
-
'X-Stainless-Runtime-Version': (_e = globalThis.process.version) !== null && _e !== void 0 ? _e : 'unknown',
|
|
16609
|
-
};
|
|
16610
|
-
}
|
|
16611
|
-
const browserInfo = getBrowserInfo();
|
|
16612
|
-
if (browserInfo) {
|
|
16613
|
-
return {
|
|
16614
|
-
'X-Stainless-Lang': 'js',
|
|
16615
|
-
'X-Stainless-Package-Version': VERSION,
|
|
16616
|
-
'X-Stainless-OS': 'Unknown',
|
|
16617
|
-
'X-Stainless-Arch': 'unknown',
|
|
16618
|
-
'X-Stainless-Runtime': `browser:${browserInfo.browser}`,
|
|
16619
|
-
'X-Stainless-Runtime-Version': browserInfo.version,
|
|
16620
|
-
};
|
|
16621
|
-
}
|
|
16622
|
-
// TODO add support for Cloudflare workers, etc.
|
|
16623
|
-
return {
|
|
16624
|
-
'X-Stainless-Lang': 'js',
|
|
16625
|
-
'X-Stainless-Package-Version': VERSION,
|
|
16626
|
-
'X-Stainless-OS': 'Unknown',
|
|
16627
|
-
'X-Stainless-Arch': 'unknown',
|
|
16628
|
-
'X-Stainless-Runtime': 'unknown',
|
|
16629
|
-
'X-Stainless-Runtime-Version': 'unknown',
|
|
16630
|
-
};
|
|
16631
|
-
};
|
|
16632
|
-
// Note: modified from https://github.com/JS-DevTools/host-environment/blob/b1ab79ecde37db5d6e163c050e54fe7d287d7c92/src/isomorphic.browser.ts
|
|
16633
|
-
function getBrowserInfo() {
|
|
16634
|
-
if (typeof navigator === 'undefined' || !navigator) {
|
|
16635
|
-
return null;
|
|
16636
|
-
}
|
|
16637
|
-
// NOTE: The order matters here!
|
|
16638
|
-
const browserPatterns = [
|
|
16639
|
-
{ key: 'edge', pattern: /Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ },
|
|
16640
|
-
{ key: 'ie', pattern: /MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ },
|
|
16641
|
-
{ key: 'ie', pattern: /Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/ },
|
|
16642
|
-
{ key: 'chrome', pattern: /Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ },
|
|
16643
|
-
{ key: 'firefox', pattern: /Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ },
|
|
16644
|
-
{ key: 'safari', pattern: /(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/ },
|
|
16645
|
-
];
|
|
16646
|
-
// Find the FIRST matching browser
|
|
16647
|
-
for (const { key, pattern } of browserPatterns) {
|
|
16648
|
-
const match = pattern.exec(navigator.userAgent);
|
|
16649
|
-
if (match) {
|
|
16650
|
-
const major = match[1] || 0;
|
|
16651
|
-
const minor = match[2] || 0;
|
|
16652
|
-
const patch = match[3] || 0;
|
|
16653
|
-
return { browser: key, version: `${major}.${minor}.${patch}` };
|
|
16654
|
-
}
|
|
16655
|
-
}
|
|
16656
|
-
return null;
|
|
16657
|
-
}
|
|
16658
|
-
const normalizeArch = (arch) => {
|
|
16659
|
-
// Node docs:
|
|
16660
|
-
// - https://nodejs.org/api/process.html#processarch
|
|
16661
|
-
// Deno docs:
|
|
16662
|
-
// - https://doc.deno.land/deno/stable/~/Deno.build
|
|
16663
|
-
if (arch === 'x32')
|
|
16664
|
-
return 'x32';
|
|
16665
|
-
if (arch === 'x86_64' || arch === 'x64')
|
|
16666
|
-
return 'x64';
|
|
16667
|
-
if (arch === 'arm')
|
|
16668
|
-
return 'arm';
|
|
16669
|
-
if (arch === 'aarch64' || arch === 'arm64')
|
|
16670
|
-
return 'arm64';
|
|
16671
|
-
if (arch)
|
|
16672
|
-
return `other:${arch}`;
|
|
16673
|
-
return 'unknown';
|
|
16674
|
-
};
|
|
16675
|
-
const normalizePlatform = (platform) => {
|
|
16676
|
-
// Node platforms:
|
|
16677
|
-
// - https://nodejs.org/api/process.html#processplatform
|
|
16678
|
-
// Deno platforms:
|
|
16679
|
-
// - https://doc.deno.land/deno/stable/~/Deno.build
|
|
16680
|
-
// - https://github.com/denoland/deno/issues/14799
|
|
16681
|
-
platform = platform.toLowerCase();
|
|
16682
|
-
// NOTE: this iOS check is untested and may not work
|
|
16683
|
-
// Node does not work natively on IOS, there is a fork at
|
|
16684
|
-
// https://github.com/nodejs-mobile/nodejs-mobile
|
|
16685
|
-
// however it is unknown at the time of writing how to detect if it is running
|
|
16686
|
-
if (platform.includes('ios'))
|
|
16687
|
-
return 'iOS';
|
|
16688
|
-
if (platform === 'android')
|
|
16689
|
-
return 'Android';
|
|
16690
|
-
if (platform === 'darwin')
|
|
16691
|
-
return 'MacOS';
|
|
16692
|
-
if (platform === 'win32')
|
|
16693
|
-
return 'Windows';
|
|
16694
|
-
if (platform === 'freebsd')
|
|
16695
|
-
return 'FreeBSD';
|
|
16696
|
-
if (platform === 'openbsd')
|
|
16697
|
-
return 'OpenBSD';
|
|
16698
|
-
if (platform === 'linux')
|
|
16699
|
-
return 'Linux';
|
|
16700
|
-
if (platform)
|
|
16701
|
-
return `Other:${platform}`;
|
|
16702
|
-
return 'Unknown';
|
|
16703
|
-
};
|
|
16704
|
-
let _platformHeaders;
|
|
16705
|
-
const getPlatformHeaders = () => {
|
|
16706
|
-
return (_platformHeaders !== null && _platformHeaders !== void 0 ? _platformHeaders : (_platformHeaders = getPlatformProperties()));
|
|
16707
|
-
};
|
|
16708
|
-
|
|
16709
16841
|
/**
|
|
16710
16842
|
* @license
|
|
16711
16843
|
* Copyright 2025 Google LLC
|
|
@@ -16811,6 +16943,13 @@ const FallbackEncoder = ({ headers, body }) => {
|
|
|
16811
16943
|
};
|
|
16812
16944
|
};
|
|
16813
16945
|
|
|
16946
|
+
/**
|
|
16947
|
+
* @license
|
|
16948
|
+
* Copyright 2025 Google LLC
|
|
16949
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
16950
|
+
*/
|
|
16951
|
+
const VERSION = '0.0.1';
|
|
16952
|
+
|
|
16814
16953
|
/**
|
|
16815
16954
|
* @license
|
|
16816
16955
|
* Copyright 2025 Google LLC
|
|
@@ -17149,8 +17288,10 @@ class LineDecoder {
|
|
|
17149
17288
|
constructor() {
|
|
17150
17289
|
this.buffer = new Uint8Array();
|
|
17151
17290
|
this.carriageReturnIndex = null;
|
|
17291
|
+
this.searchIndex = 0;
|
|
17152
17292
|
}
|
|
17153
17293
|
decode(chunk) {
|
|
17294
|
+
var _a;
|
|
17154
17295
|
if (chunk == null) {
|
|
17155
17296
|
return [];
|
|
17156
17297
|
}
|
|
@@ -17160,7 +17301,7 @@ class LineDecoder {
|
|
|
17160
17301
|
this.buffer = concatBytes([this.buffer, binaryChunk]);
|
|
17161
17302
|
const lines = [];
|
|
17162
17303
|
let patternIndex;
|
|
17163
|
-
while ((patternIndex = findNewlineIndex(this.buffer, this.carriageReturnIndex)) != null) {
|
|
17304
|
+
while ((patternIndex = findNewlineIndex(this.buffer, (_a = this.carriageReturnIndex) !== null && _a !== void 0 ? _a : this.searchIndex)) != null) {
|
|
17164
17305
|
if (patternIndex.carriage && this.carriageReturnIndex == null) {
|
|
17165
17306
|
// skip until we either get a corresponding `\n`, a new `\r` or nothing
|
|
17166
17307
|
this.carriageReturnIndex = patternIndex.index;
|
|
@@ -17172,6 +17313,7 @@ class LineDecoder {
|
|
|
17172
17313
|
lines.push(decodeUTF8(this.buffer.subarray(0, this.carriageReturnIndex - 1)));
|
|
17173
17314
|
this.buffer = this.buffer.subarray(this.carriageReturnIndex);
|
|
17174
17315
|
this.carriageReturnIndex = null;
|
|
17316
|
+
this.searchIndex = 0;
|
|
17175
17317
|
continue;
|
|
17176
17318
|
}
|
|
17177
17319
|
const endIndex = this.carriageReturnIndex !== null ? patternIndex.preceding - 1 : patternIndex.preceding;
|
|
@@ -17179,7 +17321,9 @@ class LineDecoder {
|
|
|
17179
17321
|
lines.push(line);
|
|
17180
17322
|
this.buffer = this.buffer.subarray(patternIndex.index);
|
|
17181
17323
|
this.carriageReturnIndex = null;
|
|
17324
|
+
this.searchIndex = 0;
|
|
17182
17325
|
}
|
|
17326
|
+
this.searchIndex = Math.max(0, this.buffer.length - 1);
|
|
17183
17327
|
return lines;
|
|
17184
17328
|
}
|
|
17185
17329
|
flush() {
|
|
@@ -17204,41 +17348,23 @@ LineDecoder.NEWLINE_REGEXP = /\r\n|[\n\r]/g;
|
|
|
17204
17348
|
function findNewlineIndex(buffer, startIndex) {
|
|
17205
17349
|
const newline = 0x0a; // \n
|
|
17206
17350
|
const carriage = 0x0d; // \r
|
|
17207
|
-
|
|
17208
|
-
|
|
17209
|
-
|
|
17210
|
-
|
|
17211
|
-
|
|
17212
|
-
return { preceding: i, index: i + 1, carriage: true };
|
|
17213
|
-
}
|
|
17351
|
+
const start = startIndex !== null && startIndex !== void 0 ? startIndex : 0;
|
|
17352
|
+
const nextNewline = buffer.indexOf(newline, start);
|
|
17353
|
+
const nextCarriage = buffer.indexOf(carriage, start);
|
|
17354
|
+
if (nextNewline === -1 && nextCarriage === -1) {
|
|
17355
|
+
return null;
|
|
17214
17356
|
}
|
|
17215
|
-
|
|
17216
|
-
|
|
17217
|
-
|
|
17218
|
-
// This function searches the buffer for the end patterns (\r\r, \n\n, \r\n\r\n)
|
|
17219
|
-
// and returns the index right after the first occurrence of any pattern,
|
|
17220
|
-
// or -1 if none of the patterns are found.
|
|
17221
|
-
const newline = 0x0a; // \n
|
|
17222
|
-
const carriage = 0x0d; // \r
|
|
17223
|
-
for (let i = 0; i < buffer.length - 1; i++) {
|
|
17224
|
-
if (buffer[i] === newline && buffer[i + 1] === newline) {
|
|
17225
|
-
// \n\n
|
|
17226
|
-
return i + 2;
|
|
17227
|
-
}
|
|
17228
|
-
if (buffer[i] === carriage && buffer[i + 1] === carriage) {
|
|
17229
|
-
// \r\r
|
|
17230
|
-
return i + 2;
|
|
17231
|
-
}
|
|
17232
|
-
if (buffer[i] === carriage &&
|
|
17233
|
-
buffer[i + 1] === newline &&
|
|
17234
|
-
i + 3 < buffer.length &&
|
|
17235
|
-
buffer[i + 2] === carriage &&
|
|
17236
|
-
buffer[i + 3] === newline) {
|
|
17237
|
-
// \r\n\r\n
|
|
17238
|
-
return i + 4;
|
|
17239
|
-
}
|
|
17357
|
+
let i;
|
|
17358
|
+
if (nextNewline !== -1 && nextCarriage !== -1) {
|
|
17359
|
+
i = Math.min(nextNewline, nextCarriage);
|
|
17240
17360
|
}
|
|
17241
|
-
|
|
17361
|
+
else {
|
|
17362
|
+
i = nextNewline !== -1 ? nextNewline : nextCarriage;
|
|
17363
|
+
}
|
|
17364
|
+
if (buffer[i] === newline) {
|
|
17365
|
+
return { preceding: i, index: i + 1, carriage: false };
|
|
17366
|
+
}
|
|
17367
|
+
return { preceding: i, index: i + 1, carriage: true };
|
|
17242
17368
|
}
|
|
17243
17369
|
|
|
17244
17370
|
/**
|
|
@@ -17549,7 +17675,7 @@ function _iterSSEMessages(response, controller) {
|
|
|
17549
17675
|
const lineDecoder = new LineDecoder();
|
|
17550
17676
|
const iter = ReadableStreamToAsyncIterable(response.body);
|
|
17551
17677
|
try {
|
|
17552
|
-
for (var _d = true, _e = __asyncValues(
|
|
17678
|
+
for (var _d = true, _e = __asyncValues(iterBinaryChunks(iter)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
17553
17679
|
_c = _f.value;
|
|
17554
17680
|
_d = false;
|
|
17555
17681
|
const sseChunk = _c;
|
|
@@ -17575,13 +17701,12 @@ function _iterSSEMessages(response, controller) {
|
|
|
17575
17701
|
});
|
|
17576
17702
|
}
|
|
17577
17703
|
/**
|
|
17578
|
-
* Given an async iterable iterator,
|
|
17579
|
-
*
|
|
17704
|
+
* Given an async iterable iterator, normalizes each chunk to a
|
|
17705
|
+
* Uint8Array and yields it.
|
|
17580
17706
|
*/
|
|
17581
|
-
function
|
|
17582
|
-
return __asyncGenerator(this, arguments, function*
|
|
17707
|
+
function iterBinaryChunks(iterator) {
|
|
17708
|
+
return __asyncGenerator(this, arguments, function* iterBinaryChunks_1() {
|
|
17583
17709
|
var _a, e_5, _b, _c;
|
|
17584
|
-
let data = new Uint8Array();
|
|
17585
17710
|
try {
|
|
17586
17711
|
for (var _d = true, iterator_3 = __asyncValues(iterator), iterator_3_1; iterator_3_1 = yield __await(iterator_3.next()), _a = iterator_3_1.done, !_a; _d = true) {
|
|
17587
17712
|
_c = iterator_3_1.value;
|
|
@@ -17593,15 +17718,7 @@ function iterSSEChunks(iterator) {
|
|
|
17593
17718
|
const binaryChunk = chunk instanceof ArrayBuffer ? new Uint8Array(chunk)
|
|
17594
17719
|
: typeof chunk === 'string' ? encodeUTF8(chunk)
|
|
17595
17720
|
: chunk;
|
|
17596
|
-
|
|
17597
|
-
newData.set(data);
|
|
17598
|
-
newData.set(binaryChunk, data.length);
|
|
17599
|
-
data = newData;
|
|
17600
|
-
let patternIndex;
|
|
17601
|
-
while ((patternIndex = findDoubleNewlineIndex(data)) !== -1) {
|
|
17602
|
-
yield yield __await(data.slice(0, patternIndex));
|
|
17603
|
-
data = data.slice(patternIndex);
|
|
17604
|
-
}
|
|
17721
|
+
yield yield __await(binaryChunk);
|
|
17605
17722
|
}
|
|
17606
17723
|
}
|
|
17607
17724
|
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
@@ -17611,9 +17728,6 @@ function iterSSEChunks(iterator) {
|
|
|
17611
17728
|
}
|
|
17612
17729
|
finally { if (e_5) throw e_5.error; }
|
|
17613
17730
|
}
|
|
17614
|
-
if (data.length > 0) {
|
|
17615
|
-
yield yield __await(data);
|
|
17616
|
-
}
|
|
17617
17731
|
});
|
|
17618
17732
|
}
|
|
17619
17733
|
class SSEDecoder {
|
|
@@ -18265,7 +18379,7 @@ class BaseGeminiNextGenAPIClient {
|
|
|
18265
18379
|
const authHeaders = await this.authHeaders(options);
|
|
18266
18380
|
let headers = buildHeaders([
|
|
18267
18381
|
idempotencyHeaders,
|
|
18268
|
-
|
|
18382
|
+
{ Accept: 'application/json', 'User-Agent': this.getUserAgent() },
|
|
18269
18383
|
this._options.defaultHeaders,
|
|
18270
18384
|
bodyHeaders,
|
|
18271
18385
|
options.headers,
|
|
@@ -19109,10 +19223,28 @@ function tuningJobFromVertex(fromObject, _rootObject) {
|
|
|
19109
19223
|
if (fromCustomBaseModel != null) {
|
|
19110
19224
|
setValueByPath(toObject, ['customBaseModel'], fromCustomBaseModel);
|
|
19111
19225
|
}
|
|
19226
|
+
const fromEvaluateDatasetRuns = getValueByPath(fromObject, [
|
|
19227
|
+
'evaluateDatasetRuns',
|
|
19228
|
+
]);
|
|
19229
|
+
if (fromEvaluateDatasetRuns != null) {
|
|
19230
|
+
let transformedList = fromEvaluateDatasetRuns;
|
|
19231
|
+
if (Array.isArray(transformedList)) {
|
|
19232
|
+
transformedList = transformedList.map((item) => {
|
|
19233
|
+
return item;
|
|
19234
|
+
});
|
|
19235
|
+
}
|
|
19236
|
+
setValueByPath(toObject, ['evaluateDatasetRuns'], transformedList);
|
|
19237
|
+
}
|
|
19112
19238
|
const fromExperiment = getValueByPath(fromObject, ['experiment']);
|
|
19113
19239
|
if (fromExperiment != null) {
|
|
19114
19240
|
setValueByPath(toObject, ['experiment'], fromExperiment);
|
|
19115
19241
|
}
|
|
19242
|
+
const fromFullFineTuningSpec = getValueByPath(fromObject, [
|
|
19243
|
+
'fullFineTuningSpec',
|
|
19244
|
+
]);
|
|
19245
|
+
if (fromFullFineTuningSpec != null) {
|
|
19246
|
+
setValueByPath(toObject, ['fullFineTuningSpec'], fromFullFineTuningSpec);
|
|
19247
|
+
}
|
|
19116
19248
|
const fromLabels = getValueByPath(fromObject, ['labels']);
|
|
19117
19249
|
if (fromLabels != null) {
|
|
19118
19250
|
setValueByPath(toObject, ['labels'], fromLabels);
|
|
@@ -19137,6 +19269,12 @@ function tuningJobFromVertex(fromObject, _rootObject) {
|
|
|
19137
19269
|
if (fromTunedModelDisplayName != null) {
|
|
19138
19270
|
setValueByPath(toObject, ['tunedModelDisplayName'], fromTunedModelDisplayName);
|
|
19139
19271
|
}
|
|
19272
|
+
const fromTuningJobState = getValueByPath(fromObject, [
|
|
19273
|
+
'tuningJobState',
|
|
19274
|
+
]);
|
|
19275
|
+
if (fromTuningJobState != null) {
|
|
19276
|
+
setValueByPath(toObject, ['tuningJobState'], fromTuningJobState);
|
|
19277
|
+
}
|
|
19140
19278
|
const fromVeoTuningSpec = getValueByPath(fromObject, [
|
|
19141
19279
|
'veoTuningSpec',
|
|
19142
19280
|
]);
|
|
@@ -19858,5 +19996,5 @@ class GoogleGenAI {
|
|
|
19858
19996
|
}
|
|
19859
19997
|
}
|
|
19860
19998
|
|
|
19861
|
-
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, ProminentPeople, RawReferenceImage, RecontextImageResponse, RegisterFilesResponse, ReplayResponse, ResourceScope, SafetyFilterLevel, Scale, SegmentImageResponse, SegmentMode, Session, SingleEmbedContentResponse, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, ThinkingLevel, Tokens, TrafficType, TuningMethod, TuningMode, TuningTask, TurnCompleteReason, TurnCoverage, Type, UploadToFileSearchStoreOperation, UploadToFileSearchStoreResponse, UploadToFileSearchStoreResumableResponse, UpscaleImageResponse, UrlRetrievalStatus, VadSignalType, VideoCompressionQuality, VideoGenerationMaskMode, VideoGenerationReferenceType, VoiceActivityType, createFunctionResponsePartFromBase64, createFunctionResponsePartFromUri, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
|
|
19999
|
+
export { ActivityHandling, AdapterSize, AggregationMetric, ApiError, ApiSpec, AuthType, Batches, Behavior, BlockedReason, Caches, CancelTuningJobResponse, Chat, Chats, ComputeTokensResponse, ContentReferenceImage, ControlReferenceImage, ControlReferenceType, CountTokensResponse, CreateFileResponse, DeleteCachedContentResponse, DeleteFileResponse, DeleteModelResponse, DocumentState, DynamicRetrievalConfigMode, EditImageResponse, EditMode, EmbedContentResponse, EmbeddingApiType, EndSensitivity, Environment, EvaluateDatasetResponse, FeatureSelectionPreference, FileSource, FileState, Files, FinishReason, FunctionCallingConfigMode, FunctionResponse, FunctionResponseBlob, FunctionResponseFileData, FunctionResponsePart, FunctionResponseScheduling, GenerateContentResponse, GenerateContentResponsePromptFeedback, GenerateContentResponseUsageMetadata, GenerateImagesResponse, GenerateVideosOperation, GenerateVideosResponse, GoogleGenAI, HarmBlockMethod, HarmBlockThreshold, HarmCategory, HarmProbability, HarmSeverity, HttpElementLocation, HttpResponse, ImagePromptLanguage, ImportFileOperation, ImportFileResponse, InlinedEmbedContentResponse, InlinedResponse, JobState, Language, ListBatchJobsResponse, ListCachedContentsResponse, ListDocumentsResponse, ListFileSearchStoresResponse, ListFilesResponse, ListModelsResponse, ListTuningJobsResponse, Live, LiveClientToolResponse, LiveMusicPlaybackControl, LiveMusicServerMessage, LiveSendToolResponseParameters, LiveServerMessage, MaskReferenceImage, MaskReferenceMode, MediaModality, MediaResolution, Modality, Models, MusicGenerationMode, Operations, Outcome, PagedItem, Pager, PairwiseChoice, PartMediaResolutionLevel, PersonGeneration, PhishBlockThreshold, ProminentPeople, RawReferenceImage, RecontextImageResponse, RegisterFilesResponse, ReplayResponse, ResourceScope, SafetyFilterLevel, Scale, SegmentImageResponse, SegmentMode, Session, SingleEmbedContentResponse, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, ThinkingLevel, Tokens, TrafficType, TuningJobState, TuningMethod, TuningMode, TuningTask, TurnCompleteReason, TurnCoverage, Type, UploadToFileSearchStoreOperation, UploadToFileSearchStoreResponse, UploadToFileSearchStoreResumableResponse, UpscaleImageResponse, UrlRetrievalStatus, VadSignalType, VideoCompressionQuality, VideoGenerationMaskMode, VideoGenerationReferenceType, VoiceActivityType, createFunctionResponsePartFromBase64, createFunctionResponsePartFromUri, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
|
|
19862
20000
|
//# sourceMappingURL=index.mjs.map
|