@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.
@@ -85,7 +85,7 @@ var FunctionResponseScheduling;
85
85
  */
86
86
  FunctionResponseScheduling["INTERRUPT"] = "INTERRUPT";
87
87
  })(FunctionResponseScheduling || (FunctionResponseScheduling = {}));
88
- /** The type of the data. */
88
+ /** Data type of the schema field. */
89
89
  var Type;
90
90
  (function (Type) {
91
91
  /**
@@ -121,22 +121,38 @@ var Type;
121
121
  */
122
122
  Type["NULL"] = "NULL";
123
123
  })(Type || (Type = {}));
124
- /** The API spec that the external API implements. This enum is not supported in Gemini API. */
125
- var ApiSpec;
126
- (function (ApiSpec) {
124
+ /** Sites with confidence level chosen & above this value will be blocked from the search results. This enum is not supported in Gemini API. */
125
+ var PhishBlockThreshold;
126
+ (function (PhishBlockThreshold) {
127
127
  /**
128
- * Unspecified API spec. This value should not be used.
128
+ * Defaults to unspecified.
129
129
  */
130
- ApiSpec["API_SPEC_UNSPECIFIED"] = "API_SPEC_UNSPECIFIED";
130
+ PhishBlockThreshold["PHISH_BLOCK_THRESHOLD_UNSPECIFIED"] = "PHISH_BLOCK_THRESHOLD_UNSPECIFIED";
131
131
  /**
132
- * Simple search API spec.
132
+ * Blocks Low and above confidence URL that is risky.
133
133
  */
134
- ApiSpec["SIMPLE_SEARCH"] = "SIMPLE_SEARCH";
134
+ PhishBlockThreshold["BLOCK_LOW_AND_ABOVE"] = "BLOCK_LOW_AND_ABOVE";
135
135
  /**
136
- * Elastic search API spec.
136
+ * Blocks Medium and above confidence URL that is risky.
137
137
  */
138
- ApiSpec["ELASTIC_SEARCH"] = "ELASTIC_SEARCH";
139
- })(ApiSpec || (ApiSpec = {}));
138
+ PhishBlockThreshold["BLOCK_MEDIUM_AND_ABOVE"] = "BLOCK_MEDIUM_AND_ABOVE";
139
+ /**
140
+ * Blocks High and above confidence URL that is risky.
141
+ */
142
+ PhishBlockThreshold["BLOCK_HIGH_AND_ABOVE"] = "BLOCK_HIGH_AND_ABOVE";
143
+ /**
144
+ * Blocks Higher and above confidence URL that is risky.
145
+ */
146
+ PhishBlockThreshold["BLOCK_HIGHER_AND_ABOVE"] = "BLOCK_HIGHER_AND_ABOVE";
147
+ /**
148
+ * Blocks Very high and above confidence URL that is risky.
149
+ */
150
+ PhishBlockThreshold["BLOCK_VERY_HIGH_AND_ABOVE"] = "BLOCK_VERY_HIGH_AND_ABOVE";
151
+ /**
152
+ * Blocks Extremely high confidence URL that is risky.
153
+ */
154
+ PhishBlockThreshold["BLOCK_ONLY_EXTREMELY_HIGH"] = "BLOCK_ONLY_EXTREMELY_HIGH";
155
+ })(PhishBlockThreshold || (PhishBlockThreshold = {}));
140
156
  /** Type of auth scheme. This enum is not supported in Gemini API. */
141
157
  var AuthType;
142
158
  (function (AuthType) {
@@ -191,38 +207,22 @@ var HttpElementLocation;
191
207
  */
192
208
  HttpElementLocation["HTTP_IN_COOKIE"] = "HTTP_IN_COOKIE";
193
209
  })(HttpElementLocation || (HttpElementLocation = {}));
194
- /** Sites with confidence level chosen & above this value will be blocked from the search results. This enum is not supported in Gemini API. */
195
- var PhishBlockThreshold;
196
- (function (PhishBlockThreshold) {
197
- /**
198
- * Defaults to unspecified.
199
- */
200
- PhishBlockThreshold["PHISH_BLOCK_THRESHOLD_UNSPECIFIED"] = "PHISH_BLOCK_THRESHOLD_UNSPECIFIED";
201
- /**
202
- * Blocks Low and above confidence URL that is risky.
203
- */
204
- PhishBlockThreshold["BLOCK_LOW_AND_ABOVE"] = "BLOCK_LOW_AND_ABOVE";
205
- /**
206
- * Blocks Medium and above confidence URL that is risky.
207
- */
208
- PhishBlockThreshold["BLOCK_MEDIUM_AND_ABOVE"] = "BLOCK_MEDIUM_AND_ABOVE";
209
- /**
210
- * Blocks High and above confidence URL that is risky.
211
- */
212
- PhishBlockThreshold["BLOCK_HIGH_AND_ABOVE"] = "BLOCK_HIGH_AND_ABOVE";
210
+ /** The API spec that the external API implements. This enum is not supported in Gemini API. */
211
+ var ApiSpec;
212
+ (function (ApiSpec) {
213
213
  /**
214
- * Blocks Higher and above confidence URL that is risky.
214
+ * Unspecified API spec. This value should not be used.
215
215
  */
216
- PhishBlockThreshold["BLOCK_HIGHER_AND_ABOVE"] = "BLOCK_HIGHER_AND_ABOVE";
216
+ ApiSpec["API_SPEC_UNSPECIFIED"] = "API_SPEC_UNSPECIFIED";
217
217
  /**
218
- * Blocks Very high and above confidence URL that is risky.
218
+ * Simple search API spec.
219
219
  */
220
- PhishBlockThreshold["BLOCK_VERY_HIGH_AND_ABOVE"] = "BLOCK_VERY_HIGH_AND_ABOVE";
220
+ ApiSpec["SIMPLE_SEARCH"] = "SIMPLE_SEARCH";
221
221
  /**
222
- * Blocks Extremely high confidence URL that is risky.
222
+ * Elastic search API spec.
223
223
  */
224
- PhishBlockThreshold["BLOCK_ONLY_EXTREMELY_HIGH"] = "BLOCK_ONLY_EXTREMELY_HIGH";
225
- })(PhishBlockThreshold || (PhishBlockThreshold = {}));
224
+ ApiSpec["ELASTIC_SEARCH"] = "ELASTIC_SEARCH";
225
+ })(ApiSpec || (ApiSpec = {}));
226
226
  /** Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. This enum is not supported in Vertex AI. */
227
227
  var Behavior;
228
228
  (function (Behavior) {
@@ -299,27 +299,43 @@ var ThinkingLevel;
299
299
  */
300
300
  ThinkingLevel["MINIMAL"] = "MINIMAL";
301
301
  })(ThinkingLevel || (ThinkingLevel = {}));
302
- /** Harm category. */
302
+ /** Enum that controls the generation of people. */
303
+ var PersonGeneration;
304
+ (function (PersonGeneration) {
305
+ /**
306
+ * Block generation of images of people.
307
+ */
308
+ PersonGeneration["DONT_ALLOW"] = "DONT_ALLOW";
309
+ /**
310
+ * Generate images of adults, but not children.
311
+ */
312
+ PersonGeneration["ALLOW_ADULT"] = "ALLOW_ADULT";
313
+ /**
314
+ * Generate images that include adults and children.
315
+ */
316
+ PersonGeneration["ALLOW_ALL"] = "ALLOW_ALL";
317
+ })(PersonGeneration || (PersonGeneration = {}));
318
+ /** The harm category to be blocked. */
303
319
  var HarmCategory;
304
320
  (function (HarmCategory) {
305
321
  /**
306
- * The harm category is unspecified.
322
+ * Default value. This value is unused.
307
323
  */
308
324
  HarmCategory["HARM_CATEGORY_UNSPECIFIED"] = "HARM_CATEGORY_UNSPECIFIED";
309
325
  /**
310
- * The harm category is harassment.
326
+ * Abusive, threatening, or content intended to bully, torment, or ridicule.
311
327
  */
312
328
  HarmCategory["HARM_CATEGORY_HARASSMENT"] = "HARM_CATEGORY_HARASSMENT";
313
329
  /**
314
- * The harm category is hate speech.
330
+ * Content that promotes violence or incites hatred against individuals or groups based on certain attributes.
315
331
  */
316
332
  HarmCategory["HARM_CATEGORY_HATE_SPEECH"] = "HARM_CATEGORY_HATE_SPEECH";
317
333
  /**
318
- * The harm category is sexually explicit content.
334
+ * Content that contains sexually explicit material.
319
335
  */
320
336
  HarmCategory["HARM_CATEGORY_SEXUALLY_EXPLICIT"] = "HARM_CATEGORY_SEXUALLY_EXPLICIT";
321
337
  /**
322
- * The harm category is dangerous content.
338
+ * Content that promotes, facilitates, or enables dangerous activities.
323
339
  */
324
340
  HarmCategory["HARM_CATEGORY_DANGEROUS_CONTENT"] = "HARM_CATEGORY_DANGEROUS_CONTENT";
325
341
  /**
@@ -327,27 +343,27 @@ var HarmCategory;
327
343
  */
328
344
  HarmCategory["HARM_CATEGORY_CIVIC_INTEGRITY"] = "HARM_CATEGORY_CIVIC_INTEGRITY";
329
345
  /**
330
- * The harm category is image hate. This enum value is not supported in Gemini API.
346
+ * Images that contain hate speech. This enum value is not supported in Gemini API.
331
347
  */
332
348
  HarmCategory["HARM_CATEGORY_IMAGE_HATE"] = "HARM_CATEGORY_IMAGE_HATE";
333
349
  /**
334
- * The harm category is image dangerous content. This enum value is not supported in Gemini API.
350
+ * Images that contain dangerous content. This enum value is not supported in Gemini API.
335
351
  */
336
352
  HarmCategory["HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT"] = "HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT";
337
353
  /**
338
- * The harm category is image harassment. This enum value is not supported in Gemini API.
354
+ * Images that contain harassment. This enum value is not supported in Gemini API.
339
355
  */
340
356
  HarmCategory["HARM_CATEGORY_IMAGE_HARASSMENT"] = "HARM_CATEGORY_IMAGE_HARASSMENT";
341
357
  /**
342
- * The harm category is image sexually explicit content. This enum value is not supported in Gemini API.
358
+ * Images that contain sexually explicit content. This enum value is not supported in Gemini API.
343
359
  */
344
360
  HarmCategory["HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT"] = "HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT";
345
361
  /**
346
- * The harm category is for jailbreak prompts. This enum value is not supported in Gemini API.
362
+ * Prompts designed to bypass safety filters. This enum value is not supported in Gemini API.
347
363
  */
348
364
  HarmCategory["HARM_CATEGORY_JAILBREAK"] = "HARM_CATEGORY_JAILBREAK";
349
365
  })(HarmCategory || (HarmCategory = {}));
350
- /** Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score. This enum is not supported in Gemini API. */
366
+ /** 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. */
351
367
  var HarmBlockMethod;
352
368
  (function (HarmBlockMethod) {
353
369
  /**
@@ -363,31 +379,31 @@ var HarmBlockMethod;
363
379
  */
364
380
  HarmBlockMethod["PROBABILITY"] = "PROBABILITY";
365
381
  })(HarmBlockMethod || (HarmBlockMethod = {}));
366
- /** The harm block threshold. */
382
+ /** The threshold for blocking content. If the harm probability exceeds this threshold, the content will be blocked. */
367
383
  var HarmBlockThreshold;
368
384
  (function (HarmBlockThreshold) {
369
385
  /**
370
- * Unspecified harm block threshold.
386
+ * The harm block threshold is unspecified.
371
387
  */
372
388
  HarmBlockThreshold["HARM_BLOCK_THRESHOLD_UNSPECIFIED"] = "HARM_BLOCK_THRESHOLD_UNSPECIFIED";
373
389
  /**
374
- * Block low threshold and above (i.e. block more).
390
+ * Block content with a low harm probability or higher.
375
391
  */
376
392
  HarmBlockThreshold["BLOCK_LOW_AND_ABOVE"] = "BLOCK_LOW_AND_ABOVE";
377
393
  /**
378
- * Block medium threshold and above.
394
+ * Block content with a medium harm probability or higher.
379
395
  */
380
396
  HarmBlockThreshold["BLOCK_MEDIUM_AND_ABOVE"] = "BLOCK_MEDIUM_AND_ABOVE";
381
397
  /**
382
- * Block only high threshold (i.e. block less).
398
+ * Block content with a high harm probability.
383
399
  */
384
400
  HarmBlockThreshold["BLOCK_ONLY_HIGH"] = "BLOCK_ONLY_HIGH";
385
401
  /**
386
- * Block none.
402
+ * Do not block any content, regardless of its harm probability.
387
403
  */
388
404
  HarmBlockThreshold["BLOCK_NONE"] = "BLOCK_NONE";
389
405
  /**
390
- * Turn off the safety filter.
406
+ * Turn off the safety filter entirely.
391
407
  */
392
408
  HarmBlockThreshold["OFF"] = "OFF";
393
409
  })(HarmBlockThreshold || (HarmBlockThreshold = {}));
@@ -465,55 +481,55 @@ var FinishReason;
465
481
  */
466
482
  FinishReason["IMAGE_OTHER"] = "IMAGE_OTHER";
467
483
  })(FinishReason || (FinishReason = {}));
468
- /** Output only. Harm probability levels in the content. */
484
+ /** Output only. The probability of harm for this category. */
469
485
  var HarmProbability;
470
486
  (function (HarmProbability) {
471
487
  /**
472
- * Harm probability unspecified.
488
+ * The harm probability is unspecified.
473
489
  */
474
490
  HarmProbability["HARM_PROBABILITY_UNSPECIFIED"] = "HARM_PROBABILITY_UNSPECIFIED";
475
491
  /**
476
- * Negligible level of harm.
492
+ * The harm probability is negligible.
477
493
  */
478
494
  HarmProbability["NEGLIGIBLE"] = "NEGLIGIBLE";
479
495
  /**
480
- * Low level of harm.
496
+ * The harm probability is low.
481
497
  */
482
498
  HarmProbability["LOW"] = "LOW";
483
499
  /**
484
- * Medium level of harm.
500
+ * The harm probability is medium.
485
501
  */
486
502
  HarmProbability["MEDIUM"] = "MEDIUM";
487
503
  /**
488
- * High level of harm.
504
+ * The harm probability is high.
489
505
  */
490
506
  HarmProbability["HIGH"] = "HIGH";
491
507
  })(HarmProbability || (HarmProbability = {}));
492
- /** Output only. Harm severity levels in the content. This enum is not supported in Gemini API. */
508
+ /** Output only. The severity of harm for this category. This enum is not supported in Gemini API. */
493
509
  var HarmSeverity;
494
510
  (function (HarmSeverity) {
495
511
  /**
496
- * Harm severity unspecified.
512
+ * The harm severity is unspecified.
497
513
  */
498
514
  HarmSeverity["HARM_SEVERITY_UNSPECIFIED"] = "HARM_SEVERITY_UNSPECIFIED";
499
515
  /**
500
- * Negligible level of harm severity.
516
+ * The harm severity is negligible.
501
517
  */
502
518
  HarmSeverity["HARM_SEVERITY_NEGLIGIBLE"] = "HARM_SEVERITY_NEGLIGIBLE";
503
519
  /**
504
- * Low level of harm severity.
520
+ * The harm severity is low.
505
521
  */
506
522
  HarmSeverity["HARM_SEVERITY_LOW"] = "HARM_SEVERITY_LOW";
507
523
  /**
508
- * Medium level of harm severity.
524
+ * The harm severity is medium.
509
525
  */
510
526
  HarmSeverity["HARM_SEVERITY_MEDIUM"] = "HARM_SEVERITY_MEDIUM";
511
527
  /**
512
- * High level of harm severity.
528
+ * The harm severity is high.
513
529
  */
514
530
  HarmSeverity["HARM_SEVERITY_HIGH"] = "HARM_SEVERITY_HIGH";
515
531
  })(HarmSeverity || (HarmSeverity = {}));
516
- /** Status of the url retrieval. */
532
+ /** The status of the URL retrieval. */
517
533
  var UrlRetrievalStatus;
518
534
  (function (UrlRetrievalStatus) {
519
535
  /**
@@ -521,11 +537,11 @@ var UrlRetrievalStatus;
521
537
  */
522
538
  UrlRetrievalStatus["URL_RETRIEVAL_STATUS_UNSPECIFIED"] = "URL_RETRIEVAL_STATUS_UNSPECIFIED";
523
539
  /**
524
- * Url retrieval is successful.
540
+ * The URL was retrieved successfully.
525
541
  */
526
542
  UrlRetrievalStatus["URL_RETRIEVAL_STATUS_SUCCESS"] = "URL_RETRIEVAL_STATUS_SUCCESS";
527
543
  /**
528
- * Url retrieval is failed due to error.
544
+ * The URL retrieval failed.
529
545
  */
530
546
  UrlRetrievalStatus["URL_RETRIEVAL_STATUS_ERROR"] = "URL_RETRIEVAL_STATUS_ERROR";
531
547
  /**
@@ -584,6 +600,14 @@ var TrafficType;
584
600
  * The request was processed using Pay-As-You-Go quota.
585
601
  */
586
602
  TrafficType["ON_DEMAND"] = "ON_DEMAND";
603
+ /**
604
+ * Type for Priority Pay-As-You-Go traffic.
605
+ */
606
+ TrafficType["ON_DEMAND_PRIORITY"] = "ON_DEMAND_PRIORITY";
607
+ /**
608
+ * Type for Flex traffic.
609
+ */
610
+ TrafficType["ON_DEMAND_FLEX"] = "ON_DEMAND_FLEX";
587
611
  /**
588
612
  * Type for Provisioned Throughput traffic.
589
613
  */
@@ -729,6 +753,102 @@ var JobState;
729
753
  */
730
754
  JobState["JOB_STATE_PARTIALLY_SUCCEEDED"] = "JOB_STATE_PARTIALLY_SUCCEEDED";
731
755
  })(JobState || (JobState = {}));
756
+ /** Output only. The detail state of the tuning job (while the overall `JobState` is running). This enum is not supported in Gemini API. */
757
+ var TuningJobState;
758
+ (function (TuningJobState) {
759
+ /**
760
+ * Default tuning job state.
761
+ */
762
+ TuningJobState["TUNING_JOB_STATE_UNSPECIFIED"] = "TUNING_JOB_STATE_UNSPECIFIED";
763
+ /**
764
+ * Tuning job is waiting for job quota.
765
+ */
766
+ TuningJobState["TUNING_JOB_STATE_WAITING_FOR_QUOTA"] = "TUNING_JOB_STATE_WAITING_FOR_QUOTA";
767
+ /**
768
+ * Tuning job is validating the dataset.
769
+ */
770
+ TuningJobState["TUNING_JOB_STATE_PROCESSING_DATASET"] = "TUNING_JOB_STATE_PROCESSING_DATASET";
771
+ /**
772
+ * Tuning job is waiting for hardware capacity.
773
+ */
774
+ TuningJobState["TUNING_JOB_STATE_WAITING_FOR_CAPACITY"] = "TUNING_JOB_STATE_WAITING_FOR_CAPACITY";
775
+ /**
776
+ * Tuning job is running.
777
+ */
778
+ TuningJobState["TUNING_JOB_STATE_TUNING"] = "TUNING_JOB_STATE_TUNING";
779
+ /**
780
+ * Tuning job is doing some post processing steps.
781
+ */
782
+ TuningJobState["TUNING_JOB_STATE_POST_PROCESSING"] = "TUNING_JOB_STATE_POST_PROCESSING";
783
+ })(TuningJobState || (TuningJobState = {}));
784
+ /** Aggregation metric. This enum is not supported in Gemini API. */
785
+ var AggregationMetric;
786
+ (function (AggregationMetric) {
787
+ /**
788
+ * Unspecified aggregation metric.
789
+ */
790
+ AggregationMetric["AGGREGATION_METRIC_UNSPECIFIED"] = "AGGREGATION_METRIC_UNSPECIFIED";
791
+ /**
792
+ * Average aggregation metric. Not supported for Pairwise metric.
793
+ */
794
+ AggregationMetric["AVERAGE"] = "AVERAGE";
795
+ /**
796
+ * Mode aggregation metric.
797
+ */
798
+ AggregationMetric["MODE"] = "MODE";
799
+ /**
800
+ * Standard deviation aggregation metric. Not supported for pairwise metric.
801
+ */
802
+ AggregationMetric["STANDARD_DEVIATION"] = "STANDARD_DEVIATION";
803
+ /**
804
+ * Variance aggregation metric. Not supported for pairwise metric.
805
+ */
806
+ AggregationMetric["VARIANCE"] = "VARIANCE";
807
+ /**
808
+ * Minimum aggregation metric. Not supported for pairwise metric.
809
+ */
810
+ AggregationMetric["MINIMUM"] = "MINIMUM";
811
+ /**
812
+ * Maximum aggregation metric. Not supported for pairwise metric.
813
+ */
814
+ AggregationMetric["MAXIMUM"] = "MAXIMUM";
815
+ /**
816
+ * Median aggregation metric. Not supported for pairwise metric.
817
+ */
818
+ AggregationMetric["MEDIAN"] = "MEDIAN";
819
+ /**
820
+ * 90th percentile aggregation metric. Not supported for pairwise metric.
821
+ */
822
+ AggregationMetric["PERCENTILE_P90"] = "PERCENTILE_P90";
823
+ /**
824
+ * 95th percentile aggregation metric. Not supported for pairwise metric.
825
+ */
826
+ AggregationMetric["PERCENTILE_P95"] = "PERCENTILE_P95";
827
+ /**
828
+ * 99th percentile aggregation metric. Not supported for pairwise metric.
829
+ */
830
+ AggregationMetric["PERCENTILE_P99"] = "PERCENTILE_P99";
831
+ })(AggregationMetric || (AggregationMetric = {}));
832
+ /** Output only. Pairwise metric choice. This enum is not supported in Gemini API. */
833
+ var PairwiseChoice;
834
+ (function (PairwiseChoice) {
835
+ /**
836
+ * Unspecified prediction choice.
837
+ */
838
+ PairwiseChoice["PAIRWISE_CHOICE_UNSPECIFIED"] = "PAIRWISE_CHOICE_UNSPECIFIED";
839
+ /**
840
+ * Baseline prediction wins
841
+ */
842
+ PairwiseChoice["BASELINE"] = "BASELINE";
843
+ /**
844
+ * Candidate prediction wins
845
+ */
846
+ PairwiseChoice["CANDIDATE"] = "CANDIDATE";
847
+ /**
848
+ * Winner cannot be determined
849
+ */
850
+ PairwiseChoice["TIE"] = "TIE";
851
+ })(PairwiseChoice || (PairwiseChoice = {}));
732
852
  /** The tuning task. Either I2V or T2V. This enum is not supported in Gemini API. */
733
853
  var TuningTask;
734
854
  (function (TuningTask) {
@@ -805,6 +925,22 @@ var Environment;
805
925
  */
806
926
  Environment["ENVIRONMENT_BROWSER"] = "ENVIRONMENT_BROWSER";
807
927
  })(Environment || (Environment = {}));
928
+ /** Enum for controlling whether the model can generate images of prominent people (celebrities). */
929
+ var ProminentPeople;
930
+ (function (ProminentPeople) {
931
+ /**
932
+ * Unspecified value. The model will proceed with the default behavior, which is to allow generation of prominent people.
933
+ */
934
+ ProminentPeople["PROMINENT_PEOPLE_UNSPECIFIED"] = "PROMINENT_PEOPLE_UNSPECIFIED";
935
+ /**
936
+ * Allows the model to generate images of prominent people.
937
+ */
938
+ ProminentPeople["ALLOW_PROMINENT_PEOPLE"] = "ALLOW_PROMINENT_PEOPLE";
939
+ /**
940
+ * Prevents the model from generating images of prominent people.
941
+ */
942
+ ProminentPeople["BLOCK_PROMINENT_PEOPLE"] = "BLOCK_PROMINENT_PEOPLE";
943
+ })(ProminentPeople || (ProminentPeople = {}));
808
944
  /** Enum representing the Vertex embedding API to use. */
809
945
  var EmbeddingApiType;
810
946
  (function (EmbeddingApiType) {
@@ -825,22 +961,6 @@ var SafetyFilterLevel;
825
961
  SafetyFilterLevel["BLOCK_ONLY_HIGH"] = "BLOCK_ONLY_HIGH";
826
962
  SafetyFilterLevel["BLOCK_NONE"] = "BLOCK_NONE";
827
963
  })(SafetyFilterLevel || (SafetyFilterLevel = {}));
828
- /** Enum that controls the generation of people. */
829
- var PersonGeneration;
830
- (function (PersonGeneration) {
831
- /**
832
- * Block generation of images of people.
833
- */
834
- PersonGeneration["DONT_ALLOW"] = "DONT_ALLOW";
835
- /**
836
- * Generate images of adults, but not children.
837
- */
838
- PersonGeneration["ALLOW_ADULT"] = "ALLOW_ADULT";
839
- /**
840
- * Generate images that include adults and children.
841
- */
842
- PersonGeneration["ALLOW_ALL"] = "ALLOW_ALL";
843
- })(PersonGeneration || (PersonGeneration = {}));
844
964
  /** Enum that specifies the language of the text in the prompt. */
845
965
  var ImagePromptLanguage;
846
966
  (function (ImagePromptLanguage) {