@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/genai.d.ts +910 -378
- package/dist/index.cjs +651 -402
- package/dist/index.mjs +651 -403
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +652 -403
- package/dist/node/index.mjs +652 -404
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +910 -378
- package/dist/tokenizer/node.cjs +207 -87
- package/dist/tokenizer/node.d.ts +144 -86
- package/dist/tokenizer/node.mjs +207 -87
- package/dist/tokenizer/node.mjs.map +1 -1
- package/dist/web/index.mjs +651 -403
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +910 -378
- package/package.json +5 -1
package/dist/tokenizer/node.mjs
CHANGED
|
@@ -61,7 +61,7 @@ var FunctionResponseScheduling;
|
|
|
61
61
|
*/
|
|
62
62
|
FunctionResponseScheduling["INTERRUPT"] = "INTERRUPT";
|
|
63
63
|
})(FunctionResponseScheduling || (FunctionResponseScheduling = {}));
|
|
64
|
-
/**
|
|
64
|
+
/** Data type of the schema field. */
|
|
65
65
|
var Type;
|
|
66
66
|
(function (Type) {
|
|
67
67
|
/**
|
|
@@ -97,22 +97,38 @@ var Type;
|
|
|
97
97
|
*/
|
|
98
98
|
Type["NULL"] = "NULL";
|
|
99
99
|
})(Type || (Type = {}));
|
|
100
|
-
/**
|
|
101
|
-
var
|
|
102
|
-
(function (
|
|
100
|
+
/** Sites with confidence level chosen & above this value will be blocked from the search results. This enum is not supported in Gemini API. */
|
|
101
|
+
var PhishBlockThreshold;
|
|
102
|
+
(function (PhishBlockThreshold) {
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* Defaults to unspecified.
|
|
105
105
|
*/
|
|
106
|
-
|
|
106
|
+
PhishBlockThreshold["PHISH_BLOCK_THRESHOLD_UNSPECIFIED"] = "PHISH_BLOCK_THRESHOLD_UNSPECIFIED";
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* Blocks Low and above confidence URL that is risky.
|
|
109
109
|
*/
|
|
110
|
-
|
|
110
|
+
PhishBlockThreshold["BLOCK_LOW_AND_ABOVE"] = "BLOCK_LOW_AND_ABOVE";
|
|
111
111
|
/**
|
|
112
|
-
*
|
|
112
|
+
* Blocks Medium and above confidence URL that is risky.
|
|
113
113
|
*/
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
PhishBlockThreshold["BLOCK_MEDIUM_AND_ABOVE"] = "BLOCK_MEDIUM_AND_ABOVE";
|
|
115
|
+
/**
|
|
116
|
+
* Blocks High and above confidence URL that is risky.
|
|
117
|
+
*/
|
|
118
|
+
PhishBlockThreshold["BLOCK_HIGH_AND_ABOVE"] = "BLOCK_HIGH_AND_ABOVE";
|
|
119
|
+
/**
|
|
120
|
+
* Blocks Higher and above confidence URL that is risky.
|
|
121
|
+
*/
|
|
122
|
+
PhishBlockThreshold["BLOCK_HIGHER_AND_ABOVE"] = "BLOCK_HIGHER_AND_ABOVE";
|
|
123
|
+
/**
|
|
124
|
+
* Blocks Very high and above confidence URL that is risky.
|
|
125
|
+
*/
|
|
126
|
+
PhishBlockThreshold["BLOCK_VERY_HIGH_AND_ABOVE"] = "BLOCK_VERY_HIGH_AND_ABOVE";
|
|
127
|
+
/**
|
|
128
|
+
* Blocks Extremely high confidence URL that is risky.
|
|
129
|
+
*/
|
|
130
|
+
PhishBlockThreshold["BLOCK_ONLY_EXTREMELY_HIGH"] = "BLOCK_ONLY_EXTREMELY_HIGH";
|
|
131
|
+
})(PhishBlockThreshold || (PhishBlockThreshold = {}));
|
|
116
132
|
/** Type of auth scheme. This enum is not supported in Gemini API. */
|
|
117
133
|
var AuthType;
|
|
118
134
|
(function (AuthType) {
|
|
@@ -167,38 +183,22 @@ var HttpElementLocation;
|
|
|
167
183
|
*/
|
|
168
184
|
HttpElementLocation["HTTP_IN_COOKIE"] = "HTTP_IN_COOKIE";
|
|
169
185
|
})(HttpElementLocation || (HttpElementLocation = {}));
|
|
170
|
-
/**
|
|
171
|
-
var
|
|
172
|
-
(function (
|
|
173
|
-
/**
|
|
174
|
-
* Defaults to unspecified.
|
|
175
|
-
*/
|
|
176
|
-
PhishBlockThreshold["PHISH_BLOCK_THRESHOLD_UNSPECIFIED"] = "PHISH_BLOCK_THRESHOLD_UNSPECIFIED";
|
|
177
|
-
/**
|
|
178
|
-
* Blocks Low and above confidence URL that is risky.
|
|
179
|
-
*/
|
|
180
|
-
PhishBlockThreshold["BLOCK_LOW_AND_ABOVE"] = "BLOCK_LOW_AND_ABOVE";
|
|
181
|
-
/**
|
|
182
|
-
* Blocks Medium and above confidence URL that is risky.
|
|
183
|
-
*/
|
|
184
|
-
PhishBlockThreshold["BLOCK_MEDIUM_AND_ABOVE"] = "BLOCK_MEDIUM_AND_ABOVE";
|
|
185
|
-
/**
|
|
186
|
-
* Blocks High and above confidence URL that is risky.
|
|
187
|
-
*/
|
|
188
|
-
PhishBlockThreshold["BLOCK_HIGH_AND_ABOVE"] = "BLOCK_HIGH_AND_ABOVE";
|
|
186
|
+
/** The API spec that the external API implements. This enum is not supported in Gemini API. */
|
|
187
|
+
var ApiSpec;
|
|
188
|
+
(function (ApiSpec) {
|
|
189
189
|
/**
|
|
190
|
-
*
|
|
190
|
+
* Unspecified API spec. This value should not be used.
|
|
191
191
|
*/
|
|
192
|
-
|
|
192
|
+
ApiSpec["API_SPEC_UNSPECIFIED"] = "API_SPEC_UNSPECIFIED";
|
|
193
193
|
/**
|
|
194
|
-
*
|
|
194
|
+
* Simple search API spec.
|
|
195
195
|
*/
|
|
196
|
-
|
|
196
|
+
ApiSpec["SIMPLE_SEARCH"] = "SIMPLE_SEARCH";
|
|
197
197
|
/**
|
|
198
|
-
*
|
|
198
|
+
* Elastic search API spec.
|
|
199
199
|
*/
|
|
200
|
-
|
|
201
|
-
})(
|
|
200
|
+
ApiSpec["ELASTIC_SEARCH"] = "ELASTIC_SEARCH";
|
|
201
|
+
})(ApiSpec || (ApiSpec = {}));
|
|
202
202
|
/** Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. This enum is not supported in Vertex AI. */
|
|
203
203
|
var Behavior;
|
|
204
204
|
(function (Behavior) {
|
|
@@ -275,27 +275,43 @@ var ThinkingLevel;
|
|
|
275
275
|
*/
|
|
276
276
|
ThinkingLevel["MINIMAL"] = "MINIMAL";
|
|
277
277
|
})(ThinkingLevel || (ThinkingLevel = {}));
|
|
278
|
-
/**
|
|
278
|
+
/** Enum that controls the generation of people. */
|
|
279
|
+
var PersonGeneration;
|
|
280
|
+
(function (PersonGeneration) {
|
|
281
|
+
/**
|
|
282
|
+
* Block generation of images of people.
|
|
283
|
+
*/
|
|
284
|
+
PersonGeneration["DONT_ALLOW"] = "DONT_ALLOW";
|
|
285
|
+
/**
|
|
286
|
+
* Generate images of adults, but not children.
|
|
287
|
+
*/
|
|
288
|
+
PersonGeneration["ALLOW_ADULT"] = "ALLOW_ADULT";
|
|
289
|
+
/**
|
|
290
|
+
* Generate images that include adults and children.
|
|
291
|
+
*/
|
|
292
|
+
PersonGeneration["ALLOW_ALL"] = "ALLOW_ALL";
|
|
293
|
+
})(PersonGeneration || (PersonGeneration = {}));
|
|
294
|
+
/** The harm category to be blocked. */
|
|
279
295
|
var HarmCategory;
|
|
280
296
|
(function (HarmCategory) {
|
|
281
297
|
/**
|
|
282
|
-
*
|
|
298
|
+
* Default value. This value is unused.
|
|
283
299
|
*/
|
|
284
300
|
HarmCategory["HARM_CATEGORY_UNSPECIFIED"] = "HARM_CATEGORY_UNSPECIFIED";
|
|
285
301
|
/**
|
|
286
|
-
*
|
|
302
|
+
* Abusive, threatening, or content intended to bully, torment, or ridicule.
|
|
287
303
|
*/
|
|
288
304
|
HarmCategory["HARM_CATEGORY_HARASSMENT"] = "HARM_CATEGORY_HARASSMENT";
|
|
289
305
|
/**
|
|
290
|
-
*
|
|
306
|
+
* Content that promotes violence or incites hatred against individuals or groups based on certain attributes.
|
|
291
307
|
*/
|
|
292
308
|
HarmCategory["HARM_CATEGORY_HATE_SPEECH"] = "HARM_CATEGORY_HATE_SPEECH";
|
|
293
309
|
/**
|
|
294
|
-
*
|
|
310
|
+
* Content that contains sexually explicit material.
|
|
295
311
|
*/
|
|
296
312
|
HarmCategory["HARM_CATEGORY_SEXUALLY_EXPLICIT"] = "HARM_CATEGORY_SEXUALLY_EXPLICIT";
|
|
297
313
|
/**
|
|
298
|
-
*
|
|
314
|
+
* Content that promotes, facilitates, or enables dangerous activities.
|
|
299
315
|
*/
|
|
300
316
|
HarmCategory["HARM_CATEGORY_DANGEROUS_CONTENT"] = "HARM_CATEGORY_DANGEROUS_CONTENT";
|
|
301
317
|
/**
|
|
@@ -303,27 +319,27 @@ var HarmCategory;
|
|
|
303
319
|
*/
|
|
304
320
|
HarmCategory["HARM_CATEGORY_CIVIC_INTEGRITY"] = "HARM_CATEGORY_CIVIC_INTEGRITY";
|
|
305
321
|
/**
|
|
306
|
-
*
|
|
322
|
+
* Images that contain hate speech. This enum value is not supported in Gemini API.
|
|
307
323
|
*/
|
|
308
324
|
HarmCategory["HARM_CATEGORY_IMAGE_HATE"] = "HARM_CATEGORY_IMAGE_HATE";
|
|
309
325
|
/**
|
|
310
|
-
*
|
|
326
|
+
* Images that contain dangerous content. This enum value is not supported in Gemini API.
|
|
311
327
|
*/
|
|
312
328
|
HarmCategory["HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT"] = "HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT";
|
|
313
329
|
/**
|
|
314
|
-
*
|
|
330
|
+
* Images that contain harassment. This enum value is not supported in Gemini API.
|
|
315
331
|
*/
|
|
316
332
|
HarmCategory["HARM_CATEGORY_IMAGE_HARASSMENT"] = "HARM_CATEGORY_IMAGE_HARASSMENT";
|
|
317
333
|
/**
|
|
318
|
-
*
|
|
334
|
+
* Images that contain sexually explicit content. This enum value is not supported in Gemini API.
|
|
319
335
|
*/
|
|
320
336
|
HarmCategory["HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT"] = "HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT";
|
|
321
337
|
/**
|
|
322
|
-
*
|
|
338
|
+
* Prompts designed to bypass safety filters. This enum value is not supported in Gemini API.
|
|
323
339
|
*/
|
|
324
340
|
HarmCategory["HARM_CATEGORY_JAILBREAK"] = "HARM_CATEGORY_JAILBREAK";
|
|
325
341
|
})(HarmCategory || (HarmCategory = {}));
|
|
326
|
-
/**
|
|
342
|
+
/** 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. */
|
|
327
343
|
var HarmBlockMethod;
|
|
328
344
|
(function (HarmBlockMethod) {
|
|
329
345
|
/**
|
|
@@ -339,31 +355,31 @@ var HarmBlockMethod;
|
|
|
339
355
|
*/
|
|
340
356
|
HarmBlockMethod["PROBABILITY"] = "PROBABILITY";
|
|
341
357
|
})(HarmBlockMethod || (HarmBlockMethod = {}));
|
|
342
|
-
/** The harm
|
|
358
|
+
/** The threshold for blocking content. If the harm probability exceeds this threshold, the content will be blocked. */
|
|
343
359
|
var HarmBlockThreshold;
|
|
344
360
|
(function (HarmBlockThreshold) {
|
|
345
361
|
/**
|
|
346
|
-
*
|
|
362
|
+
* The harm block threshold is unspecified.
|
|
347
363
|
*/
|
|
348
364
|
HarmBlockThreshold["HARM_BLOCK_THRESHOLD_UNSPECIFIED"] = "HARM_BLOCK_THRESHOLD_UNSPECIFIED";
|
|
349
365
|
/**
|
|
350
|
-
* Block
|
|
366
|
+
* Block content with a low harm probability or higher.
|
|
351
367
|
*/
|
|
352
368
|
HarmBlockThreshold["BLOCK_LOW_AND_ABOVE"] = "BLOCK_LOW_AND_ABOVE";
|
|
353
369
|
/**
|
|
354
|
-
* Block medium
|
|
370
|
+
* Block content with a medium harm probability or higher.
|
|
355
371
|
*/
|
|
356
372
|
HarmBlockThreshold["BLOCK_MEDIUM_AND_ABOVE"] = "BLOCK_MEDIUM_AND_ABOVE";
|
|
357
373
|
/**
|
|
358
|
-
* Block
|
|
374
|
+
* Block content with a high harm probability.
|
|
359
375
|
*/
|
|
360
376
|
HarmBlockThreshold["BLOCK_ONLY_HIGH"] = "BLOCK_ONLY_HIGH";
|
|
361
377
|
/**
|
|
362
|
-
*
|
|
378
|
+
* Do not block any content, regardless of its harm probability.
|
|
363
379
|
*/
|
|
364
380
|
HarmBlockThreshold["BLOCK_NONE"] = "BLOCK_NONE";
|
|
365
381
|
/**
|
|
366
|
-
* Turn off the safety filter.
|
|
382
|
+
* Turn off the safety filter entirely.
|
|
367
383
|
*/
|
|
368
384
|
HarmBlockThreshold["OFF"] = "OFF";
|
|
369
385
|
})(HarmBlockThreshold || (HarmBlockThreshold = {}));
|
|
@@ -441,55 +457,55 @@ var FinishReason;
|
|
|
441
457
|
*/
|
|
442
458
|
FinishReason["IMAGE_OTHER"] = "IMAGE_OTHER";
|
|
443
459
|
})(FinishReason || (FinishReason = {}));
|
|
444
|
-
/** Output only.
|
|
460
|
+
/** Output only. The probability of harm for this category. */
|
|
445
461
|
var HarmProbability;
|
|
446
462
|
(function (HarmProbability) {
|
|
447
463
|
/**
|
|
448
|
-
*
|
|
464
|
+
* The harm probability is unspecified.
|
|
449
465
|
*/
|
|
450
466
|
HarmProbability["HARM_PROBABILITY_UNSPECIFIED"] = "HARM_PROBABILITY_UNSPECIFIED";
|
|
451
467
|
/**
|
|
452
|
-
*
|
|
468
|
+
* The harm probability is negligible.
|
|
453
469
|
*/
|
|
454
470
|
HarmProbability["NEGLIGIBLE"] = "NEGLIGIBLE";
|
|
455
471
|
/**
|
|
456
|
-
*
|
|
472
|
+
* The harm probability is low.
|
|
457
473
|
*/
|
|
458
474
|
HarmProbability["LOW"] = "LOW";
|
|
459
475
|
/**
|
|
460
|
-
*
|
|
476
|
+
* The harm probability is medium.
|
|
461
477
|
*/
|
|
462
478
|
HarmProbability["MEDIUM"] = "MEDIUM";
|
|
463
479
|
/**
|
|
464
|
-
*
|
|
480
|
+
* The harm probability is high.
|
|
465
481
|
*/
|
|
466
482
|
HarmProbability["HIGH"] = "HIGH";
|
|
467
483
|
})(HarmProbability || (HarmProbability = {}));
|
|
468
|
-
/** Output only.
|
|
484
|
+
/** Output only. The severity of harm for this category. This enum is not supported in Gemini API. */
|
|
469
485
|
var HarmSeverity;
|
|
470
486
|
(function (HarmSeverity) {
|
|
471
487
|
/**
|
|
472
|
-
*
|
|
488
|
+
* The harm severity is unspecified.
|
|
473
489
|
*/
|
|
474
490
|
HarmSeverity["HARM_SEVERITY_UNSPECIFIED"] = "HARM_SEVERITY_UNSPECIFIED";
|
|
475
491
|
/**
|
|
476
|
-
*
|
|
492
|
+
* The harm severity is negligible.
|
|
477
493
|
*/
|
|
478
494
|
HarmSeverity["HARM_SEVERITY_NEGLIGIBLE"] = "HARM_SEVERITY_NEGLIGIBLE";
|
|
479
495
|
/**
|
|
480
|
-
*
|
|
496
|
+
* The harm severity is low.
|
|
481
497
|
*/
|
|
482
498
|
HarmSeverity["HARM_SEVERITY_LOW"] = "HARM_SEVERITY_LOW";
|
|
483
499
|
/**
|
|
484
|
-
*
|
|
500
|
+
* The harm severity is medium.
|
|
485
501
|
*/
|
|
486
502
|
HarmSeverity["HARM_SEVERITY_MEDIUM"] = "HARM_SEVERITY_MEDIUM";
|
|
487
503
|
/**
|
|
488
|
-
*
|
|
504
|
+
* The harm severity is high.
|
|
489
505
|
*/
|
|
490
506
|
HarmSeverity["HARM_SEVERITY_HIGH"] = "HARM_SEVERITY_HIGH";
|
|
491
507
|
})(HarmSeverity || (HarmSeverity = {}));
|
|
492
|
-
/**
|
|
508
|
+
/** The status of the URL retrieval. */
|
|
493
509
|
var UrlRetrievalStatus;
|
|
494
510
|
(function (UrlRetrievalStatus) {
|
|
495
511
|
/**
|
|
@@ -497,11 +513,11 @@ var UrlRetrievalStatus;
|
|
|
497
513
|
*/
|
|
498
514
|
UrlRetrievalStatus["URL_RETRIEVAL_STATUS_UNSPECIFIED"] = "URL_RETRIEVAL_STATUS_UNSPECIFIED";
|
|
499
515
|
/**
|
|
500
|
-
*
|
|
516
|
+
* The URL was retrieved successfully.
|
|
501
517
|
*/
|
|
502
518
|
UrlRetrievalStatus["URL_RETRIEVAL_STATUS_SUCCESS"] = "URL_RETRIEVAL_STATUS_SUCCESS";
|
|
503
519
|
/**
|
|
504
|
-
*
|
|
520
|
+
* The URL retrieval failed.
|
|
505
521
|
*/
|
|
506
522
|
UrlRetrievalStatus["URL_RETRIEVAL_STATUS_ERROR"] = "URL_RETRIEVAL_STATUS_ERROR";
|
|
507
523
|
/**
|
|
@@ -560,6 +576,14 @@ var TrafficType;
|
|
|
560
576
|
* The request was processed using Pay-As-You-Go quota.
|
|
561
577
|
*/
|
|
562
578
|
TrafficType["ON_DEMAND"] = "ON_DEMAND";
|
|
579
|
+
/**
|
|
580
|
+
* Type for Priority Pay-As-You-Go traffic.
|
|
581
|
+
*/
|
|
582
|
+
TrafficType["ON_DEMAND_PRIORITY"] = "ON_DEMAND_PRIORITY";
|
|
583
|
+
/**
|
|
584
|
+
* Type for Flex traffic.
|
|
585
|
+
*/
|
|
586
|
+
TrafficType["ON_DEMAND_FLEX"] = "ON_DEMAND_FLEX";
|
|
563
587
|
/**
|
|
564
588
|
* Type for Provisioned Throughput traffic.
|
|
565
589
|
*/
|
|
@@ -705,6 +729,102 @@ var JobState;
|
|
|
705
729
|
*/
|
|
706
730
|
JobState["JOB_STATE_PARTIALLY_SUCCEEDED"] = "JOB_STATE_PARTIALLY_SUCCEEDED";
|
|
707
731
|
})(JobState || (JobState = {}));
|
|
732
|
+
/** Output only. The detail state of the tuning job (while the overall `JobState` is running). This enum is not supported in Gemini API. */
|
|
733
|
+
var TuningJobState;
|
|
734
|
+
(function (TuningJobState) {
|
|
735
|
+
/**
|
|
736
|
+
* Default tuning job state.
|
|
737
|
+
*/
|
|
738
|
+
TuningJobState["TUNING_JOB_STATE_UNSPECIFIED"] = "TUNING_JOB_STATE_UNSPECIFIED";
|
|
739
|
+
/**
|
|
740
|
+
* Tuning job is waiting for job quota.
|
|
741
|
+
*/
|
|
742
|
+
TuningJobState["TUNING_JOB_STATE_WAITING_FOR_QUOTA"] = "TUNING_JOB_STATE_WAITING_FOR_QUOTA";
|
|
743
|
+
/**
|
|
744
|
+
* Tuning job is validating the dataset.
|
|
745
|
+
*/
|
|
746
|
+
TuningJobState["TUNING_JOB_STATE_PROCESSING_DATASET"] = "TUNING_JOB_STATE_PROCESSING_DATASET";
|
|
747
|
+
/**
|
|
748
|
+
* Tuning job is waiting for hardware capacity.
|
|
749
|
+
*/
|
|
750
|
+
TuningJobState["TUNING_JOB_STATE_WAITING_FOR_CAPACITY"] = "TUNING_JOB_STATE_WAITING_FOR_CAPACITY";
|
|
751
|
+
/**
|
|
752
|
+
* Tuning job is running.
|
|
753
|
+
*/
|
|
754
|
+
TuningJobState["TUNING_JOB_STATE_TUNING"] = "TUNING_JOB_STATE_TUNING";
|
|
755
|
+
/**
|
|
756
|
+
* Tuning job is doing some post processing steps.
|
|
757
|
+
*/
|
|
758
|
+
TuningJobState["TUNING_JOB_STATE_POST_PROCESSING"] = "TUNING_JOB_STATE_POST_PROCESSING";
|
|
759
|
+
})(TuningJobState || (TuningJobState = {}));
|
|
760
|
+
/** Aggregation metric. This enum is not supported in Gemini API. */
|
|
761
|
+
var AggregationMetric;
|
|
762
|
+
(function (AggregationMetric) {
|
|
763
|
+
/**
|
|
764
|
+
* Unspecified aggregation metric.
|
|
765
|
+
*/
|
|
766
|
+
AggregationMetric["AGGREGATION_METRIC_UNSPECIFIED"] = "AGGREGATION_METRIC_UNSPECIFIED";
|
|
767
|
+
/**
|
|
768
|
+
* Average aggregation metric. Not supported for Pairwise metric.
|
|
769
|
+
*/
|
|
770
|
+
AggregationMetric["AVERAGE"] = "AVERAGE";
|
|
771
|
+
/**
|
|
772
|
+
* Mode aggregation metric.
|
|
773
|
+
*/
|
|
774
|
+
AggregationMetric["MODE"] = "MODE";
|
|
775
|
+
/**
|
|
776
|
+
* Standard deviation aggregation metric. Not supported for pairwise metric.
|
|
777
|
+
*/
|
|
778
|
+
AggregationMetric["STANDARD_DEVIATION"] = "STANDARD_DEVIATION";
|
|
779
|
+
/**
|
|
780
|
+
* Variance aggregation metric. Not supported for pairwise metric.
|
|
781
|
+
*/
|
|
782
|
+
AggregationMetric["VARIANCE"] = "VARIANCE";
|
|
783
|
+
/**
|
|
784
|
+
* Minimum aggregation metric. Not supported for pairwise metric.
|
|
785
|
+
*/
|
|
786
|
+
AggregationMetric["MINIMUM"] = "MINIMUM";
|
|
787
|
+
/**
|
|
788
|
+
* Maximum aggregation metric. Not supported for pairwise metric.
|
|
789
|
+
*/
|
|
790
|
+
AggregationMetric["MAXIMUM"] = "MAXIMUM";
|
|
791
|
+
/**
|
|
792
|
+
* Median aggregation metric. Not supported for pairwise metric.
|
|
793
|
+
*/
|
|
794
|
+
AggregationMetric["MEDIAN"] = "MEDIAN";
|
|
795
|
+
/**
|
|
796
|
+
* 90th percentile aggregation metric. Not supported for pairwise metric.
|
|
797
|
+
*/
|
|
798
|
+
AggregationMetric["PERCENTILE_P90"] = "PERCENTILE_P90";
|
|
799
|
+
/**
|
|
800
|
+
* 95th percentile aggregation metric. Not supported for pairwise metric.
|
|
801
|
+
*/
|
|
802
|
+
AggregationMetric["PERCENTILE_P95"] = "PERCENTILE_P95";
|
|
803
|
+
/**
|
|
804
|
+
* 99th percentile aggregation metric. Not supported for pairwise metric.
|
|
805
|
+
*/
|
|
806
|
+
AggregationMetric["PERCENTILE_P99"] = "PERCENTILE_P99";
|
|
807
|
+
})(AggregationMetric || (AggregationMetric = {}));
|
|
808
|
+
/** Output only. Pairwise metric choice. This enum is not supported in Gemini API. */
|
|
809
|
+
var PairwiseChoice;
|
|
810
|
+
(function (PairwiseChoice) {
|
|
811
|
+
/**
|
|
812
|
+
* Unspecified prediction choice.
|
|
813
|
+
*/
|
|
814
|
+
PairwiseChoice["PAIRWISE_CHOICE_UNSPECIFIED"] = "PAIRWISE_CHOICE_UNSPECIFIED";
|
|
815
|
+
/**
|
|
816
|
+
* Baseline prediction wins
|
|
817
|
+
*/
|
|
818
|
+
PairwiseChoice["BASELINE"] = "BASELINE";
|
|
819
|
+
/**
|
|
820
|
+
* Candidate prediction wins
|
|
821
|
+
*/
|
|
822
|
+
PairwiseChoice["CANDIDATE"] = "CANDIDATE";
|
|
823
|
+
/**
|
|
824
|
+
* Winner cannot be determined
|
|
825
|
+
*/
|
|
826
|
+
PairwiseChoice["TIE"] = "TIE";
|
|
827
|
+
})(PairwiseChoice || (PairwiseChoice = {}));
|
|
708
828
|
/** The tuning task. Either I2V or T2V. This enum is not supported in Gemini API. */
|
|
709
829
|
var TuningTask;
|
|
710
830
|
(function (TuningTask) {
|
|
@@ -781,6 +901,22 @@ var Environment;
|
|
|
781
901
|
*/
|
|
782
902
|
Environment["ENVIRONMENT_BROWSER"] = "ENVIRONMENT_BROWSER";
|
|
783
903
|
})(Environment || (Environment = {}));
|
|
904
|
+
/** Enum for controlling whether the model can generate images of prominent people (celebrities). */
|
|
905
|
+
var ProminentPeople;
|
|
906
|
+
(function (ProminentPeople) {
|
|
907
|
+
/**
|
|
908
|
+
* Unspecified value. The model will proceed with the default behavior, which is to allow generation of prominent people.
|
|
909
|
+
*/
|
|
910
|
+
ProminentPeople["PROMINENT_PEOPLE_UNSPECIFIED"] = "PROMINENT_PEOPLE_UNSPECIFIED";
|
|
911
|
+
/**
|
|
912
|
+
* Allows the model to generate images of prominent people.
|
|
913
|
+
*/
|
|
914
|
+
ProminentPeople["ALLOW_PROMINENT_PEOPLE"] = "ALLOW_PROMINENT_PEOPLE";
|
|
915
|
+
/**
|
|
916
|
+
* Prevents the model from generating images of prominent people.
|
|
917
|
+
*/
|
|
918
|
+
ProminentPeople["BLOCK_PROMINENT_PEOPLE"] = "BLOCK_PROMINENT_PEOPLE";
|
|
919
|
+
})(ProminentPeople || (ProminentPeople = {}));
|
|
784
920
|
/** Enum representing the Vertex embedding API to use. */
|
|
785
921
|
var EmbeddingApiType;
|
|
786
922
|
(function (EmbeddingApiType) {
|
|
@@ -801,22 +937,6 @@ var SafetyFilterLevel;
|
|
|
801
937
|
SafetyFilterLevel["BLOCK_ONLY_HIGH"] = "BLOCK_ONLY_HIGH";
|
|
802
938
|
SafetyFilterLevel["BLOCK_NONE"] = "BLOCK_NONE";
|
|
803
939
|
})(SafetyFilterLevel || (SafetyFilterLevel = {}));
|
|
804
|
-
/** Enum that controls the generation of people. */
|
|
805
|
-
var PersonGeneration;
|
|
806
|
-
(function (PersonGeneration) {
|
|
807
|
-
/**
|
|
808
|
-
* Block generation of images of people.
|
|
809
|
-
*/
|
|
810
|
-
PersonGeneration["DONT_ALLOW"] = "DONT_ALLOW";
|
|
811
|
-
/**
|
|
812
|
-
* Generate images of adults, but not children.
|
|
813
|
-
*/
|
|
814
|
-
PersonGeneration["ALLOW_ADULT"] = "ALLOW_ADULT";
|
|
815
|
-
/**
|
|
816
|
-
* Generate images that include adults and children.
|
|
817
|
-
*/
|
|
818
|
-
PersonGeneration["ALLOW_ALL"] = "ALLOW_ALL";
|
|
819
|
-
})(PersonGeneration || (PersonGeneration = {}));
|
|
820
940
|
/** Enum that specifies the language of the text in the prompt. */
|
|
821
941
|
var ImagePromptLanguage;
|
|
822
942
|
(function (ImagePromptLanguage) {
|