@google/genai 1.46.0 → 1.48.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.
@@ -97,38 +97,18 @@ var Type;
97
97
  */
98
98
  Type["NULL"] = "NULL";
99
99
  })(Type || (Type = {}));
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
- /**
104
- * Defaults to unspecified.
105
- */
106
- PhishBlockThreshold["PHISH_BLOCK_THRESHOLD_UNSPECIFIED"] = "PHISH_BLOCK_THRESHOLD_UNSPECIFIED";
107
- /**
108
- * Blocks Low and above confidence URL that is risky.
109
- */
110
- PhishBlockThreshold["BLOCK_LOW_AND_ABOVE"] = "BLOCK_LOW_AND_ABOVE";
111
- /**
112
- * Blocks Medium and above confidence URL that is risky.
113
- */
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";
100
+ /** The environment being operated. */
101
+ var Environment;
102
+ (function (Environment) {
123
103
  /**
124
- * Blocks Very high and above confidence URL that is risky.
104
+ * Defaults to browser.
125
105
  */
126
- PhishBlockThreshold["BLOCK_VERY_HIGH_AND_ABOVE"] = "BLOCK_VERY_HIGH_AND_ABOVE";
106
+ Environment["ENVIRONMENT_UNSPECIFIED"] = "ENVIRONMENT_UNSPECIFIED";
127
107
  /**
128
- * Blocks Extremely high confidence URL that is risky.
108
+ * Operates in a web browser.
129
109
  */
130
- PhishBlockThreshold["BLOCK_ONLY_EXTREMELY_HIGH"] = "BLOCK_ONLY_EXTREMELY_HIGH";
131
- })(PhishBlockThreshold || (PhishBlockThreshold = {}));
110
+ Environment["ENVIRONMENT_BROWSER"] = "ENVIRONMENT_BROWSER";
111
+ })(Environment || (Environment = {}));
132
112
  /** Type of auth scheme. This enum is not supported in Gemini API. */
133
113
  var AuthType;
134
114
  (function (AuthType) {
@@ -199,6 +179,38 @@ var ApiSpec;
199
179
  */
200
180
  ApiSpec["ELASTIC_SEARCH"] = "ELASTIC_SEARCH";
201
181
  })(ApiSpec || (ApiSpec = {}));
182
+ /** Sites with confidence level chosen & above this value will be blocked from the search results. This enum is not supported in Gemini API. */
183
+ var PhishBlockThreshold;
184
+ (function (PhishBlockThreshold) {
185
+ /**
186
+ * Defaults to unspecified.
187
+ */
188
+ PhishBlockThreshold["PHISH_BLOCK_THRESHOLD_UNSPECIFIED"] = "PHISH_BLOCK_THRESHOLD_UNSPECIFIED";
189
+ /**
190
+ * Blocks Low and above confidence URL that is risky.
191
+ */
192
+ PhishBlockThreshold["BLOCK_LOW_AND_ABOVE"] = "BLOCK_LOW_AND_ABOVE";
193
+ /**
194
+ * Blocks Medium and above confidence URL that is risky.
195
+ */
196
+ PhishBlockThreshold["BLOCK_MEDIUM_AND_ABOVE"] = "BLOCK_MEDIUM_AND_ABOVE";
197
+ /**
198
+ * Blocks High and above confidence URL that is risky.
199
+ */
200
+ PhishBlockThreshold["BLOCK_HIGH_AND_ABOVE"] = "BLOCK_HIGH_AND_ABOVE";
201
+ /**
202
+ * Blocks Higher and above confidence URL that is risky.
203
+ */
204
+ PhishBlockThreshold["BLOCK_HIGHER_AND_ABOVE"] = "BLOCK_HIGHER_AND_ABOVE";
205
+ /**
206
+ * Blocks Very high and above confidence URL that is risky.
207
+ */
208
+ PhishBlockThreshold["BLOCK_VERY_HIGH_AND_ABOVE"] = "BLOCK_VERY_HIGH_AND_ABOVE";
209
+ /**
210
+ * Blocks Extremely high confidence URL that is risky.
211
+ */
212
+ PhishBlockThreshold["BLOCK_ONLY_EXTREMELY_HIGH"] = "BLOCK_ONLY_EXTREMELY_HIGH";
213
+ })(PhishBlockThreshold || (PhishBlockThreshold = {}));
202
214
  /** Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. This enum is not supported in Vertex AI. */
203
215
  var Behavior;
204
216
  (function (Behavior) {
@@ -258,6 +270,10 @@ var ThinkingLevel;
258
270
  * Unspecified thinking level.
259
271
  */
260
272
  ThinkingLevel["THINKING_LEVEL_UNSPECIFIED"] = "THINKING_LEVEL_UNSPECIFIED";
273
+ /**
274
+ * MINIMAL thinking level.
275
+ */
276
+ ThinkingLevel["MINIMAL"] = "MINIMAL";
261
277
  /**
262
278
  * Low thinking level.
263
279
  */
@@ -270,10 +286,6 @@ var ThinkingLevel;
270
286
  * High thinking level.
271
287
  */
272
288
  ThinkingLevel["HIGH"] = "HIGH";
273
- /**
274
- * MINIMAL thinking level.
275
- */
276
- ThinkingLevel["MINIMAL"] = "MINIMAL";
277
289
  })(ThinkingLevel || (ThinkingLevel = {}));
278
290
  /** Enum that controls the generation of people. */
279
291
  var PersonGeneration;
@@ -291,6 +303,22 @@ var PersonGeneration;
291
303
  */
292
304
  PersonGeneration["ALLOW_ALL"] = "ALLOW_ALL";
293
305
  })(PersonGeneration || (PersonGeneration = {}));
306
+ /** Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people. This enum is not supported in Gemini API. */
307
+ var ProminentPeople;
308
+ (function (ProminentPeople) {
309
+ /**
310
+ * Unspecified value. The model will proceed with the default behavior, which is to allow generation of prominent people.
311
+ */
312
+ ProminentPeople["PROMINENT_PEOPLE_UNSPECIFIED"] = "PROMINENT_PEOPLE_UNSPECIFIED";
313
+ /**
314
+ * Allows the model to generate images of prominent people.
315
+ */
316
+ ProminentPeople["ALLOW_PROMINENT_PEOPLE"] = "ALLOW_PROMINENT_PEOPLE";
317
+ /**
318
+ * Prevents the model from generating images of prominent people.
319
+ */
320
+ ProminentPeople["BLOCK_PROMINENT_PEOPLE"] = "BLOCK_PROMINENT_PEOPLE";
321
+ })(ProminentPeople || (ProminentPeople = {}));
294
322
  /** The harm category to be blocked. */
295
323
  var HarmCategory;
296
324
  (function (HarmCategory) {
@@ -609,6 +637,42 @@ var Modality;
609
637
  */
610
638
  Modality["AUDIO"] = "AUDIO";
611
639
  })(Modality || (Modality = {}));
640
+ /** The stage of the underlying model. This enum is not supported in Vertex AI. */
641
+ var ModelStage;
642
+ (function (ModelStage) {
643
+ /**
644
+ * Unspecified model stage.
645
+ */
646
+ ModelStage["MODEL_STAGE_UNSPECIFIED"] = "MODEL_STAGE_UNSPECIFIED";
647
+ /**
648
+ * The underlying model is subject to lots of tunings.
649
+ */
650
+ ModelStage["UNSTABLE_EXPERIMENTAL"] = "UNSTABLE_EXPERIMENTAL";
651
+ /**
652
+ * Models in this stage are for experimental purposes only.
653
+ */
654
+ ModelStage["EXPERIMENTAL"] = "EXPERIMENTAL";
655
+ /**
656
+ * Models in this stage are more mature than experimental models.
657
+ */
658
+ ModelStage["PREVIEW"] = "PREVIEW";
659
+ /**
660
+ * Models in this stage are considered stable and ready for production use.
661
+ */
662
+ ModelStage["STABLE"] = "STABLE";
663
+ /**
664
+ * If the model is on this stage, it means that this model is on the path to deprecation in near future. Only existing customers can use this model.
665
+ */
666
+ ModelStage["LEGACY"] = "LEGACY";
667
+ /**
668
+ * Models in this stage are deprecated. These models cannot be used.
669
+ */
670
+ ModelStage["DEPRECATED"] = "DEPRECATED";
671
+ /**
672
+ * Models in this stage are retired. These models cannot be used.
673
+ */
674
+ ModelStage["RETIRED"] = "RETIRED";
675
+ })(ModelStage || (ModelStage = {}));
612
676
  /** The media resolution to use. */
613
677
  var MediaResolution;
614
678
  (function (MediaResolution) {
@@ -845,6 +909,26 @@ var TuningTask;
845
909
  */
846
910
  TuningTask["TUNING_TASK_R2V"] = "TUNING_TASK_R2V";
847
911
  })(TuningTask || (TuningTask = {}));
912
+ /** Output only. Current state of the `Document`. This enum is not supported in Vertex AI. */
913
+ var DocumentState;
914
+ (function (DocumentState) {
915
+ /**
916
+ * The default value. This value is used if the state is omitted.
917
+ */
918
+ DocumentState["STATE_UNSPECIFIED"] = "STATE_UNSPECIFIED";
919
+ /**
920
+ * Some `Chunks` of the `Document` are being processed (embedding and vector storage).
921
+ */
922
+ DocumentState["STATE_PENDING"] = "STATE_PENDING";
923
+ /**
924
+ * All `Chunks` of the `Document` is processed and available for querying.
925
+ */
926
+ DocumentState["STATE_ACTIVE"] = "STATE_ACTIVE";
927
+ /**
928
+ * Some `Chunks` of the `Document` failed processing.
929
+ */
930
+ DocumentState["STATE_FAILED"] = "STATE_FAILED";
931
+ })(DocumentState || (DocumentState = {}));
848
932
  /** The tokenization quality used for given media. */
849
933
  var PartMediaResolutionLevel;
850
934
  (function (PartMediaResolutionLevel) {
@@ -909,42 +993,34 @@ var ResourceScope;
909
993
  */
910
994
  ResourceScope["COLLECTION"] = "COLLECTION";
911
995
  })(ResourceScope || (ResourceScope = {}));
912
- /** Options for feature selection preference. */
913
- var FeatureSelectionPreference;
914
- (function (FeatureSelectionPreference) {
915
- FeatureSelectionPreference["FEATURE_SELECTION_PREFERENCE_UNSPECIFIED"] = "FEATURE_SELECTION_PREFERENCE_UNSPECIFIED";
916
- FeatureSelectionPreference["PRIORITIZE_QUALITY"] = "PRIORITIZE_QUALITY";
917
- FeatureSelectionPreference["BALANCED"] = "BALANCED";
918
- FeatureSelectionPreference["PRIORITIZE_COST"] = "PRIORITIZE_COST";
919
- })(FeatureSelectionPreference || (FeatureSelectionPreference = {}));
920
- /** The environment being operated. */
921
- var Environment;
922
- (function (Environment) {
996
+ /** Pricing and performance service tier. */
997
+ var ServiceTier;
998
+ (function (ServiceTier) {
923
999
  /**
924
- * Defaults to browser.
1000
+ * Default service tier, which is standard.
925
1001
  */
926
- Environment["ENVIRONMENT_UNSPECIFIED"] = "ENVIRONMENT_UNSPECIFIED";
1002
+ ServiceTier["UNSPECIFIED"] = "unspecified";
927
1003
  /**
928
- * Operates in a web browser.
1004
+ * Flex service tier.
929
1005
  */
930
- Environment["ENVIRONMENT_BROWSER"] = "ENVIRONMENT_BROWSER";
931
- })(Environment || (Environment = {}));
932
- /** Enum for controlling whether the model can generate images of prominent people (celebrities). */
933
- var ProminentPeople;
934
- (function (ProminentPeople) {
1006
+ ServiceTier["FLEX"] = "flex";
935
1007
  /**
936
- * Unspecified value. The model will proceed with the default behavior, which is to allow generation of prominent people.
1008
+ * Standard service tier.
937
1009
  */
938
- ProminentPeople["PROMINENT_PEOPLE_UNSPECIFIED"] = "PROMINENT_PEOPLE_UNSPECIFIED";
1010
+ ServiceTier["STANDARD"] = "standard";
939
1011
  /**
940
- * Allows the model to generate images of prominent people.
1012
+ * Priority service tier.
941
1013
  */
942
- ProminentPeople["ALLOW_PROMINENT_PEOPLE"] = "ALLOW_PROMINENT_PEOPLE";
943
- /**
944
- * Prevents the model from generating images of prominent people.
945
- */
946
- ProminentPeople["BLOCK_PROMINENT_PEOPLE"] = "BLOCK_PROMINENT_PEOPLE";
947
- })(ProminentPeople || (ProminentPeople = {}));
1014
+ ServiceTier["PRIORITY"] = "priority";
1015
+ })(ServiceTier || (ServiceTier = {}));
1016
+ /** Options for feature selection preference. */
1017
+ var FeatureSelectionPreference;
1018
+ (function (FeatureSelectionPreference) {
1019
+ FeatureSelectionPreference["FEATURE_SELECTION_PREFERENCE_UNSPECIFIED"] = "FEATURE_SELECTION_PREFERENCE_UNSPECIFIED";
1020
+ FeatureSelectionPreference["PRIORITIZE_QUALITY"] = "PRIORITIZE_QUALITY";
1021
+ FeatureSelectionPreference["BALANCED"] = "BALANCED";
1022
+ FeatureSelectionPreference["PRIORITIZE_COST"] = "PRIORITIZE_COST";
1023
+ })(FeatureSelectionPreference || (FeatureSelectionPreference = {}));
948
1024
  /** Enum representing the Vertex embedding API to use. */
949
1025
  var EmbeddingApiType;
950
1026
  (function (EmbeddingApiType) {
@@ -1119,14 +1195,6 @@ var TuningMethod;
1119
1195
  */
1120
1196
  TuningMethod["DISTILLATION"] = "DISTILLATION";
1121
1197
  })(TuningMethod || (TuningMethod = {}));
1122
- /** State for the lifecycle of a Document. */
1123
- var DocumentState;
1124
- (function (DocumentState) {
1125
- DocumentState["STATE_UNSPECIFIED"] = "STATE_UNSPECIFIED";
1126
- DocumentState["STATE_PENDING"] = "STATE_PENDING";
1127
- DocumentState["STATE_ACTIVE"] = "STATE_ACTIVE";
1128
- DocumentState["STATE_FAILED"] = "STATE_FAILED";
1129
- })(DocumentState || (DocumentState = {}));
1130
1198
  /** State for the lifecycle of a File. */
1131
1199
  var FileState;
1132
1200
  (function (FileState) {
@@ -1286,6 +1354,10 @@ var TurnCoverage;
1286
1354
  * The users turn includes all realtime input since the last turn, including inactivity (e.g. silence on the audio stream).
1287
1355
  */
1288
1356
  TurnCoverage["TURN_INCLUDES_ALL_INPUT"] = "TURN_INCLUDES_ALL_INPUT";
1357
+ /**
1358
+ * Includes audio activity and all video since the last turn. With automatic activity detection, audio activity means speech and excludes silence.
1359
+ */
1360
+ TurnCoverage["TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO"] = "TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO";
1289
1361
  })(TurnCoverage || (TurnCoverage = {}));
1290
1362
  /** Scale of the generated music. */
1291
1363
  var Scale;