@google/genai 1.50.1 → 1.52.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.
@@ -1049,7 +1049,7 @@ var FeatureSelectionPreference;
1049
1049
  FeatureSelectionPreference["BALANCED"] = "BALANCED";
1050
1050
  FeatureSelectionPreference["PRIORITIZE_COST"] = "PRIORITIZE_COST";
1051
1051
  })(FeatureSelectionPreference || (FeatureSelectionPreference = {}));
1052
- /** Enum representing the Vertex embedding API to use. */
1052
+ /** Enum representing the Gemini Enterprise Agent Platform embedding API to use. */
1053
1053
  var EmbeddingApiType;
1054
1054
  (function (EmbeddingApiType) {
1055
1055
  /**
@@ -1207,6 +1207,20 @@ var VideoCompressionQuality;
1207
1207
  */
1208
1208
  VideoCompressionQuality["LOSSLESS"] = "LOSSLESS";
1209
1209
  })(VideoCompressionQuality || (VideoCompressionQuality = {}));
1210
+ /** Resize mode for the image input for video generation. */
1211
+ var ImageResizeMode;
1212
+ (function (ImageResizeMode) {
1213
+ /**
1214
+ * Crop the image to fit the correct aspect ratio (so we lose parts
1215
+ of the image in the process).
1216
+ */
1217
+ ImageResizeMode["CROP"] = "CROP";
1218
+ /**
1219
+ * Pad the image to fit the correct aspect ratio (so we don't lose
1220
+ any parts of the image in the process).
1221
+ */
1222
+ ImageResizeMode["PAD"] = "PAD";
1223
+ })(ImageResizeMode || (ImageResizeMode = {}));
1210
1224
  /** Enum representing the tuning method. */
1211
1225
  var TuningMethod;
1212
1226
  (function (TuningMethod) {
@@ -576,7 +576,7 @@ declare interface HttpOptions {
576
576
  timeout?: number;
577
577
  /** Extra parameters to add to the request body.
578
578
  The structure must match the backend API's request structure.
579
- - VertexAI backend API docs: https://cloud.google.com/vertex-ai/docs/reference/rest
579
+ - Gemini Enterprise Agent Platform backend API docs: https://cloud.google.com/vertex-ai/docs/reference/rest
580
580
  - GeminiAPI backend API docs: https://ai.google.dev/api/rest */
581
581
  extraBody?: Record<string, unknown>;
582
582
  /** HTTP retry options for the request. */
@@ -1025,7 +1025,7 @@ var FeatureSelectionPreference;
1025
1025
  FeatureSelectionPreference["BALANCED"] = "BALANCED";
1026
1026
  FeatureSelectionPreference["PRIORITIZE_COST"] = "PRIORITIZE_COST";
1027
1027
  })(FeatureSelectionPreference || (FeatureSelectionPreference = {}));
1028
- /** Enum representing the Vertex embedding API to use. */
1028
+ /** Enum representing the Gemini Enterprise Agent Platform embedding API to use. */
1029
1029
  var EmbeddingApiType;
1030
1030
  (function (EmbeddingApiType) {
1031
1031
  /**
@@ -1183,6 +1183,20 @@ var VideoCompressionQuality;
1183
1183
  */
1184
1184
  VideoCompressionQuality["LOSSLESS"] = "LOSSLESS";
1185
1185
  })(VideoCompressionQuality || (VideoCompressionQuality = {}));
1186
+ /** Resize mode for the image input for video generation. */
1187
+ var ImageResizeMode;
1188
+ (function (ImageResizeMode) {
1189
+ /**
1190
+ * Crop the image to fit the correct aspect ratio (so we lose parts
1191
+ of the image in the process).
1192
+ */
1193
+ ImageResizeMode["CROP"] = "CROP";
1194
+ /**
1195
+ * Pad the image to fit the correct aspect ratio (so we don't lose
1196
+ any parts of the image in the process).
1197
+ */
1198
+ ImageResizeMode["PAD"] = "PAD";
1199
+ })(ImageResizeMode || (ImageResizeMode = {}));
1186
1200
  /** Enum representing the tuning method. */
1187
1201
  var TuningMethod;
1188
1202
  (function (TuningMethod) {