@google/genai 1.50.1 → 1.51.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.
@@ -1419,7 +1419,7 @@ var FeatureSelectionPreference;
1419
1419
  FeatureSelectionPreference["BALANCED"] = "BALANCED";
1420
1420
  FeatureSelectionPreference["PRIORITIZE_COST"] = "PRIORITIZE_COST";
1421
1421
  })(FeatureSelectionPreference || (FeatureSelectionPreference = {}));
1422
- /** Enum representing the Vertex embedding API to use. */
1422
+ /** Enum representing the Gemini Enterprise Agent Platform embedding API to use. */
1423
1423
  var EmbeddingApiType;
1424
1424
  (function (EmbeddingApiType) {
1425
1425
  /**
@@ -1577,6 +1577,20 @@ var VideoCompressionQuality;
1577
1577
  */
1578
1578
  VideoCompressionQuality["LOSSLESS"] = "LOSSLESS";
1579
1579
  })(VideoCompressionQuality || (VideoCompressionQuality = {}));
1580
+ /** Resize mode for the image input for video generation. */
1581
+ var ImageResizeMode;
1582
+ (function (ImageResizeMode) {
1583
+ /**
1584
+ * Crop the image to fit the correct aspect ratio (so we lose parts
1585
+ of the image in the process).
1586
+ */
1587
+ ImageResizeMode["CROP"] = "CROP";
1588
+ /**
1589
+ * Pad the image to fit the correct aspect ratio (so we don't lose
1590
+ any parts of the image in the process).
1591
+ */
1592
+ ImageResizeMode["PAD"] = "PAD";
1593
+ })(ImageResizeMode || (ImageResizeMode = {}));
1580
1594
  /** Enum representing the tuning method. */
1581
1595
  var TuningMethod;
1582
1596
  (function (TuningMethod) {
@@ -1997,7 +2011,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
1997
2011
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
1998
2012
  const USER_AGENT_HEADER = 'User-Agent';
1999
2013
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
2000
- const SDK_VERSION = '1.50.1'; // x-release-please-version
2014
+ const SDK_VERSION = '1.51.0'; // x-release-please-version
2001
2015
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
2002
2016
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
2003
2017
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';