@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.
package/dist/index.mjs CHANGED
@@ -1572,7 +1572,7 @@ var FeatureSelectionPreference;
1572
1572
  FeatureSelectionPreference["BALANCED"] = "BALANCED";
1573
1573
  FeatureSelectionPreference["PRIORITIZE_COST"] = "PRIORITIZE_COST";
1574
1574
  })(FeatureSelectionPreference || (FeatureSelectionPreference = {}));
1575
- /** Enum representing the Vertex embedding API to use. */
1575
+ /** Enum representing the Gemini Enterprise Agent Platform embedding API to use. */
1576
1576
  var EmbeddingApiType;
1577
1577
  (function (EmbeddingApiType) {
1578
1578
  /**
@@ -1730,6 +1730,20 @@ var VideoCompressionQuality;
1730
1730
  */
1731
1731
  VideoCompressionQuality["LOSSLESS"] = "LOSSLESS";
1732
1732
  })(VideoCompressionQuality || (VideoCompressionQuality = {}));
1733
+ /** Resize mode for the image input for video generation. */
1734
+ var ImageResizeMode;
1735
+ (function (ImageResizeMode) {
1736
+ /**
1737
+ * Crop the image to fit the correct aspect ratio (so we lose parts
1738
+ of the image in the process).
1739
+ */
1740
+ ImageResizeMode["CROP"] = "CROP";
1741
+ /**
1742
+ * Pad the image to fit the correct aspect ratio (so we don't lose
1743
+ any parts of the image in the process).
1744
+ */
1745
+ ImageResizeMode["PAD"] = "PAD";
1746
+ })(ImageResizeMode || (ImageResizeMode = {}));
1733
1747
  /** Enum representing the tuning method. */
1734
1748
  var TuningMethod;
1735
1749
  (function (TuningMethod) {
@@ -3539,6 +3553,9 @@ function tBatchJobSource(client, src) {
3539
3553
  else if (src.startsWith('bq://')) {
3540
3554
  sourceObj = { format: 'bigquery', bigqueryUri: src };
3541
3555
  }
3556
+ else if (/^projects\/[^/]+\/locations\/[^/]+\/datasets\/[^/]+$/.test(src)) {
3557
+ sourceObj = { format: 'vertex-dataset', vertexDatasetName: src };
3558
+ }
3542
3559
  else {
3543
3560
  throw new Error(`Unsupported string source for Vertex AI: ${src}`);
3544
3561
  }
@@ -3564,14 +3581,18 @@ function tBatchJobSource(client, src) {
3564
3581
  sourceObj = src;
3565
3582
  }
3566
3583
  // Validation logic
3567
- const vertexSourcesCount = [sourceObj.gcsUri, sourceObj.bigqueryUri].filter(Boolean).length;
3584
+ const vertexSourcesCount = [
3585
+ sourceObj.gcsUri,
3586
+ sourceObj.bigqueryUri,
3587
+ sourceObj.vertexDatasetName,
3588
+ ].filter(Boolean).length;
3568
3589
  const mldevSourcesCount = [
3569
3590
  sourceObj.inlinedRequests,
3570
3591
  sourceObj.fileName,
3571
3592
  ].filter(Boolean).length;
3572
3593
  if (client.isVertexAI()) {
3573
3594
  if (mldevSourcesCount > 0 || vertexSourcesCount !== 1) {
3574
- throw new Error('Exactly one of `gcsUri` or `bigqueryUri` must be set for Vertex AI.');
3595
+ throw new Error('Exactly one of `gcsUri`, `bigqueryUri`, or `vertexDatasetName` must be set for Vertex AI.');
3575
3596
  }
3576
3597
  }
3577
3598
  else {
@@ -3790,6 +3811,12 @@ function batchJobDestinationFromVertex(fromObject) {
3790
3811
  if (fromBigqueryUri != null) {
3791
3812
  setValueByPath(toObject, ['bigqueryUri'], fromBigqueryUri);
3792
3813
  }
3814
+ const fromVertexDataset = getValueByPath(fromObject, [
3815
+ 'vertexMultimodalDatasetDestination',
3816
+ ]);
3817
+ if (fromVertexDataset != null) {
3818
+ setValueByPath(toObject, ['vertexDataset'], vertexMultimodalDatasetDestinationFromVertex(fromVertexDataset));
3819
+ }
3793
3820
  return toObject;
3794
3821
  }
3795
3822
  function batchJobDestinationToVertex(fromObject) {
@@ -3807,14 +3834,20 @@ function batchJobDestinationToVertex(fromObject) {
3807
3834
  setValueByPath(toObject, ['bigqueryDestination', 'outputUri'], fromBigqueryUri);
3808
3835
  }
3809
3836
  if (getValueByPath(fromObject, ['fileName']) !== undefined) {
3810
- throw new Error('fileName parameter is not supported in Vertex AI.');
3837
+ throw new Error('fileName parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
3811
3838
  }
3812
3839
  if (getValueByPath(fromObject, ['inlinedResponses']) !== undefined) {
3813
- throw new Error('inlinedResponses parameter is not supported in Vertex AI.');
3840
+ throw new Error('inlinedResponses parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
3814
3841
  }
3815
3842
  if (getValueByPath(fromObject, ['inlinedEmbedContentResponses']) !==
3816
3843
  undefined) {
3817
- throw new Error('inlinedEmbedContentResponses parameter is not supported in Vertex AI.');
3844
+ throw new Error('inlinedEmbedContentResponses parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
3845
+ }
3846
+ const fromVertexDataset = getValueByPath(fromObject, [
3847
+ 'vertexDataset',
3848
+ ]);
3849
+ if (fromVertexDataset != null) {
3850
+ setValueByPath(toObject, ['vertexMultimodalDatasetDestination'], vertexMultimodalDatasetDestinationToVertex(fromVertexDataset));
3818
3851
  }
3819
3852
  return toObject;
3820
3853
  }
@@ -3918,6 +3951,10 @@ function batchJobFromVertex(fromObject) {
3918
3951
  if (fromCompletionStats != null) {
3919
3952
  setValueByPath(toObject, ['completionStats'], fromCompletionStats);
3920
3953
  }
3954
+ const fromOutputInfo = getValueByPath(fromObject, ['outputInfo']);
3955
+ if (fromOutputInfo != null) {
3956
+ setValueByPath(toObject, ['outputInfo'], fromOutputInfo);
3957
+ }
3921
3958
  return toObject;
3922
3959
  }
3923
3960
  function batchJobSourceFromVertex(fromObject) {
@@ -3937,6 +3974,13 @@ function batchJobSourceFromVertex(fromObject) {
3937
3974
  if (fromBigqueryUri != null) {
3938
3975
  setValueByPath(toObject, ['bigqueryUri'], fromBigqueryUri);
3939
3976
  }
3977
+ const fromVertexDatasetName = getValueByPath(fromObject, [
3978
+ 'vertexMultimodalDatasetSource',
3979
+ 'datasetName',
3980
+ ]);
3981
+ if (fromVertexDatasetName != null) {
3982
+ setValueByPath(toObject, ['vertexDatasetName'], fromVertexDatasetName);
3983
+ }
3940
3984
  return toObject;
3941
3985
  }
3942
3986
  function batchJobSourceToMldev(apiClient, fromObject) {
@@ -3966,6 +4010,9 @@ function batchJobSourceToMldev(apiClient, fromObject) {
3966
4010
  }
3967
4011
  setValueByPath(toObject, ['requests', 'requests'], transformedList);
3968
4012
  }
4013
+ if (getValueByPath(fromObject, ['vertexDatasetName']) !== undefined) {
4014
+ throw new Error('vertexDatasetName parameter is not supported in Gemini API.');
4015
+ }
3969
4016
  return toObject;
3970
4017
  }
3971
4018
  function batchJobSourceToVertex(fromObject) {
@@ -3983,10 +4030,16 @@ function batchJobSourceToVertex(fromObject) {
3983
4030
  setValueByPath(toObject, ['bigquerySource', 'inputUri'], fromBigqueryUri);
3984
4031
  }
3985
4032
  if (getValueByPath(fromObject, ['fileName']) !== undefined) {
3986
- throw new Error('fileName parameter is not supported in Vertex AI.');
4033
+ throw new Error('fileName parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
3987
4034
  }
3988
4035
  if (getValueByPath(fromObject, ['inlinedRequests']) !== undefined) {
3989
- throw new Error('inlinedRequests parameter is not supported in Vertex AI.');
4036
+ throw new Error('inlinedRequests parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
4037
+ }
4038
+ const fromVertexDatasetName = getValueByPath(fromObject, [
4039
+ 'vertexDatasetName',
4040
+ ]);
4041
+ if (fromVertexDatasetName != null) {
4042
+ setValueByPath(toObject, ['vertexMultimodalDatasetSource', 'datasetName'], fromVertexDatasetName);
3990
4043
  }
3991
4044
  return toObject;
3992
4045
  }
@@ -4141,7 +4194,7 @@ function createBatchJobConfigToVertex(fromObject, parentObject) {
4141
4194
  setValueByPath(parentObject, ['outputConfig'], batchJobDestinationToVertex(tBatchJobDestination(fromDest)));
4142
4195
  }
4143
4196
  if (getValueByPath(fromObject, ['webhookConfig']) !== undefined) {
4144
- throw new Error('webhookConfig parameter is not supported in Vertex AI.');
4197
+ throw new Error('webhookConfig parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
4145
4198
  }
4146
4199
  return toObject;
4147
4200
  }
@@ -4983,6 +5036,35 @@ function toolToMldev$4(fromObject) {
4983
5036
  }
4984
5037
  return toObject;
4985
5038
  }
5039
+ function vertexMultimodalDatasetDestinationFromVertex(fromObject) {
5040
+ const toObject = {};
5041
+ const fromBigqueryDestination = getValueByPath(fromObject, [
5042
+ 'bigqueryDestination',
5043
+ 'outputUri',
5044
+ ]);
5045
+ if (fromBigqueryDestination != null) {
5046
+ setValueByPath(toObject, ['bigqueryDestination'], fromBigqueryDestination);
5047
+ }
5048
+ const fromDisplayName = getValueByPath(fromObject, ['displayName']);
5049
+ if (fromDisplayName != null) {
5050
+ setValueByPath(toObject, ['displayName'], fromDisplayName);
5051
+ }
5052
+ return toObject;
5053
+ }
5054
+ function vertexMultimodalDatasetDestinationToVertex(fromObject) {
5055
+ const toObject = {};
5056
+ const fromBigqueryDestination = getValueByPath(fromObject, [
5057
+ 'bigqueryDestination',
5058
+ ]);
5059
+ if (fromBigqueryDestination != null) {
5060
+ setValueByPath(toObject, ['bigqueryDestination', 'outputUri'], fromBigqueryDestination);
5061
+ }
5062
+ const fromDisplayName = getValueByPath(fromObject, ['displayName']);
5063
+ if (fromDisplayName != null) {
5064
+ setValueByPath(toObject, ['displayName'], fromDisplayName);
5065
+ }
5066
+ return toObject;
5067
+ }
4986
5068
 
4987
5069
  /**
4988
5070
  * @license
@@ -5237,7 +5319,7 @@ class Batches extends BaseModule {
5237
5319
  this.createEmbeddings = async (params) => {
5238
5320
  console.warn('batches.createEmbeddings() is experimental and may change without notice.');
5239
5321
  if (this.apiClient.isVertexAI()) {
5240
- throw new Error('Vertex AI does not support batches.createEmbeddings.');
5322
+ throw new Error('Gemini Enterprise Agent Platform (previously known as Vertex AI) does not support batches.createEmbeddings.');
5241
5323
  }
5242
5324
  return this.createEmbeddingsInternal(params);
5243
5325
  };
@@ -5314,7 +5396,7 @@ class Batches extends BaseModule {
5314
5396
  newConfig.dest = `${bigqueryUri}_dest_${timestampStr}`;
5315
5397
  }
5316
5398
  else {
5317
- throw new Error('Unsupported source for Vertex AI: No GCS or BigQuery URI found.');
5399
+ throw new Error('Unsupported source for Gemini Enterprise Agent Platform (previously known as Vertex AI): No GCS or BigQuery URI found.');
5318
5400
  }
5319
5401
  }
5320
5402
  return newConfig;
@@ -5999,7 +6081,7 @@ function functionDeclarationToVertex$2(fromObject) {
5999
6081
  setValueByPath(toObject, ['responseJsonSchema'], fromResponseJsonSchema);
6000
6082
  }
6001
6083
  if (getValueByPath(fromObject, ['behavior']) !== undefined) {
6002
- throw new Error('behavior parameter is not supported in Vertex AI.');
6084
+ throw new Error('behavior parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
6003
6085
  }
6004
6086
  return toObject;
6005
6087
  }
@@ -6278,13 +6360,13 @@ function partToVertex$2(fromObject) {
6278
6360
  setValueByPath(toObject, ['videoMetadata'], fromVideoMetadata);
6279
6361
  }
6280
6362
  if (getValueByPath(fromObject, ['toolCall']) !== undefined) {
6281
- throw new Error('toolCall parameter is not supported in Vertex AI.');
6363
+ throw new Error('toolCall parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
6282
6364
  }
6283
6365
  if (getValueByPath(fromObject, ['toolResponse']) !== undefined) {
6284
- throw new Error('toolResponse parameter is not supported in Vertex AI.');
6366
+ throw new Error('toolResponse parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
6285
6367
  }
6286
6368
  if (getValueByPath(fromObject, ['partMetadata']) !== undefined) {
6287
- throw new Error('partMetadata parameter is not supported in Vertex AI.');
6369
+ throw new Error('partMetadata parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
6288
6370
  }
6289
6371
  return toObject;
6290
6372
  }
@@ -6324,7 +6406,7 @@ function toolConfigToVertex$1(fromObject) {
6324
6406
  }
6325
6407
  if (getValueByPath(fromObject, ['includeServerSideToolInvocations']) !==
6326
6408
  undefined) {
6327
- throw new Error('includeServerSideToolInvocations parameter is not supported in Vertex AI.');
6409
+ throw new Error('includeServerSideToolInvocations parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
6328
6410
  }
6329
6411
  return toObject;
6330
6412
  }
@@ -6406,7 +6488,7 @@ function toolToVertex$2(fromObject) {
6406
6488
  setValueByPath(toObject, ['computerUse'], fromComputerUse);
6407
6489
  }
6408
6490
  if (getValueByPath(fromObject, ['fileSearch']) !== undefined) {
6409
- throw new Error('fileSearch parameter is not supported in Vertex AI.');
6491
+ throw new Error('fileSearch parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
6410
6492
  }
6411
6493
  const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
6412
6494
  if (fromGoogleSearch != null) {
@@ -6457,7 +6539,7 @@ function toolToVertex$2(fromObject) {
6457
6539
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
6458
6540
  }
6459
6541
  if (getValueByPath(fromObject, ['mcpServers']) !== undefined) {
6460
- throw new Error('mcpServers parameter is not supported in Vertex AI.');
6542
+ throw new Error('mcpServers parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
6461
6543
  }
6462
6544
  return toObject;
6463
6545
  }
@@ -6543,7 +6625,7 @@ class Caches extends BaseModule {
6543
6625
  * @remarks
6544
6626
  * Context caching is only supported for specific models. See [Gemini
6545
6627
  * Developer API reference](https://ai.google.dev/gemini-api/docs/caching?lang=node/context-cac)
6546
- * and [Vertex AI reference](https://cloud.google.com/vertex-ai/generative-ai/docs/context-cache/context-cache-overview#supported_models)
6628
+ * and [Gemini Enterprise Agent Platform reference](https://cloud.google.com/vertex-ai/generative-ai/docs/context-cache/context-cache-overview#supported_models)
6547
6629
  * for more information.
6548
6630
  *
6549
6631
  * @param params - The parameters for the create request.
@@ -7542,7 +7624,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
7542
7624
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
7543
7625
  const USER_AGENT_HEADER = 'User-Agent';
7544
7626
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
7545
- const SDK_VERSION = '1.50.1'; // x-release-please-version
7627
+ const SDK_VERSION = '1.51.0'; // x-release-please-version
7546
7628
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
7547
7629
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
7548
7630
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
@@ -8519,7 +8601,7 @@ class Files extends BaseModule {
8519
8601
  }
8520
8602
  /**
8521
8603
  * Uploads a file asynchronously to the Gemini API.
8522
- * This method is not available in Vertex AI.
8604
+ * This method is not available in Gemini Enterprise Agent Platform (previously known as Vertex AI).
8523
8605
  * Supported upload sources:
8524
8606
  * - Node.js: File path (string) or Blob object.
8525
8607
  * - Browser: Blob object (e.g., File).
@@ -8545,7 +8627,7 @@ class Files extends BaseModule {
8545
8627
  * @see {@link types.UploadFileParameters#config} for the optional
8546
8628
  * config in the parameters.
8547
8629
  * @return A promise that resolves to a `types.File` object.
8548
- * @throws An error if called on a Vertex AI client.
8630
+ * @throws An error if called on a Gemini Enterprise Agent Platform (previously known as Vertex AI) client.
8549
8631
  * @throws An error if the `mimeType` is not provided and can not be inferred,
8550
8632
  * the `mimeType` can be provided in the `params.config` parameter.
8551
8633
  * @throws An error occurs if a suitable upload location cannot be established.
@@ -8562,7 +8644,7 @@ class Files extends BaseModule {
8562
8644
  */
8563
8645
  async upload(params) {
8564
8646
  if (this.apiClient.isVertexAI()) {
8565
- throw new Error('Vertex AI does not support uploading files. You can share files through a GCS bucket.');
8647
+ throw new Error('Gemini Enterprise Agent Platform (previously known as Vertex AI) does not support uploading files. You can share files through a GCS bucket.');
8566
8648
  }
8567
8649
  return this.apiClient
8568
8650
  .uploadFile(params.file, params.config)
@@ -9051,7 +9133,7 @@ class FileSearchStores extends BaseModule {
9051
9133
  }
9052
9134
  /**
9053
9135
  * Uploads a file asynchronously to a given File Search Store.
9054
- * This method is not available in Vertex AI.
9136
+ * This method is not available in Gemini Enterprise Agent Platform (previously known as Vertex AI).
9055
9137
  * Supported upload sources:
9056
9138
  * - Node.js: File path (string) or Blob object.
9057
9139
  * - Browser: Blob object (e.g., File).
@@ -9070,7 +9152,7 @@ class FileSearchStores extends BaseModule {
9070
9152
  * @see {@link types.UploadToFileSearchStoreParameters#config} for the optional
9071
9153
  * config in the parameters.
9072
9154
  * @return A promise that resolves to a long running operation.
9073
- * @throws An error if called on a Vertex AI client.
9155
+ * @throws An error if called on a Gemini Enterprise Agent Platform (previously known as Vertex AI) client.
9074
9156
  * @throws An error if the `mimeType` is not provided and can not be inferred,
9075
9157
  * the `mimeType` can be provided in the `params.config` parameter.
9076
9158
  * @throws An error occurs if a suitable upload location cannot be established.
@@ -9087,7 +9169,7 @@ class FileSearchStores extends BaseModule {
9087
9169
  */
9088
9170
  async uploadToFileSearchStore(params) {
9089
9171
  if (this.apiClient.isVertexAI()) {
9090
- throw new Error('Vertex AI does not support uploading files to a file search store.');
9172
+ throw new Error('Gemini Enterprise Agent Platform (previously known as Vertex AI) does not support uploading files to a file search store.');
9091
9173
  }
9092
9174
  return this.apiClient.uploadFileToFileSearchStore(params.fileSearchStoreName, params.file, params.config);
9093
9175
  }
@@ -9962,14 +10044,14 @@ class BaseWebhooks extends APIResource {
9962
10044
  * Creates a new Webhook.
9963
10045
  */
9964
10046
  create(params, options) {
9965
- const { api_version = this._client.apiVersion, webhook_id } = params, body = __rest(params, ["api_version", "webhook_id"]);
9966
- return this._client.post(path `/${api_version}/webhooks`, Object.assign({ query: { webhook_id }, body }, options));
10047
+ const { api_version = this._client.apiVersion } = params, body = __rest(params, ["api_version"]);
10048
+ return this._client.post(path `/${api_version}/webhooks`, Object.assign({ body }, options));
9967
10049
  }
9968
10050
  /**
9969
10051
  * Updates an existing Webhook.
9970
10052
  */
9971
- update(id, params, options) {
9972
- const { api_version = this._client.apiVersion, update_mask } = params, body = __rest(params, ["api_version", "update_mask"]);
10053
+ update(id, params = {}, options) {
10054
+ const _a = params !== null && params !== void 0 ? params : {}, { api_version = this._client.apiVersion, update_mask } = _a, body = __rest(_a, ["api_version", "update_mask"]);
9973
10055
  return this._client.patch(path `/${api_version}/webhooks/${id}`, Object.assign({ query: { update_mask }, body }, options));
9974
10056
  }
9975
10057
  /**
@@ -11379,7 +11461,7 @@ function functionDeclarationToVertex$1(fromObject) {
11379
11461
  setValueByPath(toObject, ['responseJsonSchema'], fromResponseJsonSchema);
11380
11462
  }
11381
11463
  if (getValueByPath(fromObject, ['behavior']) !== undefined) {
11382
- throw new Error('behavior parameter is not supported in Vertex AI.');
11464
+ throw new Error('behavior parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
11383
11465
  }
11384
11466
  return toObject;
11385
11467
  }
@@ -11507,7 +11589,7 @@ function generationConfigToVertex$1(fromObject) {
11507
11589
  }
11508
11590
  if (getValueByPath(fromObject, ['enableEnhancedCivicAnswers']) !==
11509
11591
  undefined) {
11510
- throw new Error('enableEnhancedCivicAnswers parameter is not supported in Vertex AI.');
11592
+ throw new Error('enableEnhancedCivicAnswers parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
11511
11593
  }
11512
11594
  return toObject;
11513
11595
  }
@@ -12123,13 +12205,13 @@ function partToVertex$1(fromObject) {
12123
12205
  setValueByPath(toObject, ['videoMetadata'], fromVideoMetadata);
12124
12206
  }
12125
12207
  if (getValueByPath(fromObject, ['toolCall']) !== undefined) {
12126
- throw new Error('toolCall parameter is not supported in Vertex AI.');
12208
+ throw new Error('toolCall parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
12127
12209
  }
12128
12210
  if (getValueByPath(fromObject, ['toolResponse']) !== undefined) {
12129
- throw new Error('toolResponse parameter is not supported in Vertex AI.');
12211
+ throw new Error('toolResponse parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
12130
12212
  }
12131
12213
  if (getValueByPath(fromObject, ['partMetadata']) !== undefined) {
12132
- throw new Error('partMetadata parameter is not supported in Vertex AI.');
12214
+ throw new Error('partMetadata parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
12133
12215
  }
12134
12216
  return toObject;
12135
12217
  }
@@ -12237,7 +12319,7 @@ function toolToVertex$1(fromObject) {
12237
12319
  setValueByPath(toObject, ['computerUse'], fromComputerUse);
12238
12320
  }
12239
12321
  if (getValueByPath(fromObject, ['fileSearch']) !== undefined) {
12240
- throw new Error('fileSearch parameter is not supported in Vertex AI.');
12322
+ throw new Error('fileSearch parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
12241
12323
  }
12242
12324
  const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
12243
12325
  if (fromGoogleSearch != null) {
@@ -12288,7 +12370,7 @@ function toolToVertex$1(fromObject) {
12288
12370
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
12289
12371
  }
12290
12372
  if (getValueByPath(fromObject, ['mcpServers']) !== undefined) {
12291
- throw new Error('mcpServers parameter is not supported in Vertex AI.');
12373
+ throw new Error('mcpServers parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
12292
12374
  }
12293
12375
  return toObject;
12294
12376
  }
@@ -13312,7 +13394,7 @@ function functionDeclarationToVertex(fromObject, _rootObject) {
13312
13394
  setValueByPath(toObject, ['responseJsonSchema'], fromResponseJsonSchema);
13313
13395
  }
13314
13396
  if (getValueByPath(fromObject, ['behavior']) !== undefined) {
13315
- throw new Error('behavior parameter is not supported in Vertex AI.');
13397
+ throw new Error('behavior parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
13316
13398
  }
13317
13399
  return toObject;
13318
13400
  }
@@ -13647,7 +13729,7 @@ function generateContentConfigToVertex(apiClient, fromObject, parentObject, root
13647
13729
  }
13648
13730
  if (getValueByPath(fromObject, ['enableEnhancedCivicAnswers']) !==
13649
13731
  undefined) {
13650
- throw new Error('enableEnhancedCivicAnswers parameter is not supported in Vertex AI.');
13732
+ throw new Error('enableEnhancedCivicAnswers parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
13651
13733
  }
13652
13734
  const fromModelArmorConfig = getValueByPath(fromObject, [
13653
13735
  'modelArmorConfig',
@@ -14141,6 +14223,9 @@ function generateVideosConfigToMldev(fromObject, parentObject, rootObject) {
14141
14223
  if (parentObject !== undefined && fromWebhookConfig != null) {
14142
14224
  setValueByPath(parentObject, ['webhookConfig'], fromWebhookConfig);
14143
14225
  }
14226
+ if (getValueByPath(fromObject, ['resizeMode']) !== undefined) {
14227
+ throw new Error('resizeMode parameter is not supported in Gemini API.');
14228
+ }
14144
14229
  return toObject;
14145
14230
  }
14146
14231
  function generateVideosConfigToVertex(fromObject, parentObject, rootObject) {
@@ -14236,7 +14321,11 @@ function generateVideosConfigToVertex(fromObject, parentObject, rootObject) {
14236
14321
  setValueByPath(parentObject, ['labels'], fromLabels);
14237
14322
  }
14238
14323
  if (getValueByPath(fromObject, ['webhookConfig']) !== undefined) {
14239
- throw new Error('webhookConfig parameter is not supported in Vertex AI.');
14324
+ throw new Error('webhookConfig parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
14325
+ }
14326
+ const fromResizeMode = getValueByPath(fromObject, ['resizeMode']);
14327
+ if (parentObject !== undefined && fromResizeMode != null) {
14328
+ setValueByPath(parentObject, ['parameters', 'resizeMode'], fromResizeMode);
14240
14329
  }
14241
14330
  return toObject;
14242
14331
  }
@@ -14631,7 +14720,7 @@ function generationConfigToVertex(fromObject, _rootObject) {
14631
14720
  }
14632
14721
  if (getValueByPath(fromObject, ['enableEnhancedCivicAnswers']) !==
14633
14722
  undefined) {
14634
- throw new Error('enableEnhancedCivicAnswers parameter is not supported in Vertex AI.');
14723
+ throw new Error('enableEnhancedCivicAnswers parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
14635
14724
  }
14636
14725
  return toObject;
14637
14726
  }
@@ -15191,13 +15280,13 @@ function partToVertex(fromObject, _rootObject) {
15191
15280
  setValueByPath(toObject, ['videoMetadata'], fromVideoMetadata);
15192
15281
  }
15193
15282
  if (getValueByPath(fromObject, ['toolCall']) !== undefined) {
15194
- throw new Error('toolCall parameter is not supported in Vertex AI.');
15283
+ throw new Error('toolCall parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
15195
15284
  }
15196
15285
  if (getValueByPath(fromObject, ['toolResponse']) !== undefined) {
15197
- throw new Error('toolResponse parameter is not supported in Vertex AI.');
15286
+ throw new Error('toolResponse parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
15198
15287
  }
15199
15288
  if (getValueByPath(fromObject, ['partMetadata']) !== undefined) {
15200
- throw new Error('partMetadata parameter is not supported in Vertex AI.');
15289
+ throw new Error('partMetadata parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
15201
15290
  }
15202
15291
  return toObject;
15203
15292
  }
@@ -15554,7 +15643,7 @@ function toolConfigToVertex(fromObject, _rootObject) {
15554
15643
  }
15555
15644
  if (getValueByPath(fromObject, ['includeServerSideToolInvocations']) !==
15556
15645
  undefined) {
15557
- throw new Error('includeServerSideToolInvocations parameter is not supported in Vertex AI.');
15646
+ throw new Error('includeServerSideToolInvocations parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
15558
15647
  }
15559
15648
  return toObject;
15560
15649
  }
@@ -15636,7 +15725,7 @@ function toolToVertex(fromObject, rootObject) {
15636
15725
  setValueByPath(toObject, ['computerUse'], fromComputerUse);
15637
15726
  }
15638
15727
  if (getValueByPath(fromObject, ['fileSearch']) !== undefined) {
15639
- throw new Error('fileSearch parameter is not supported in Vertex AI.');
15728
+ throw new Error('fileSearch parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
15640
15729
  }
15641
15730
  const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
15642
15731
  if (fromGoogleSearch != null) {
@@ -15687,7 +15776,7 @@ function toolToVertex(fromObject, rootObject) {
15687
15776
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
15688
15777
  }
15689
15778
  if (getValueByPath(fromObject, ['mcpServers']) !== undefined) {
15690
- throw new Error('mcpServers parameter is not supported in Vertex AI.');
15779
+ throw new Error('mcpServers parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
15691
15780
  }
15692
15781
  return toObject;
15693
15782
  }
@@ -16984,7 +17073,7 @@ class Models extends BaseModule {
16984
17073
  /**
16985
17074
  * Makes an API request to generate content with a given model.
16986
17075
  *
16987
- * For the `model` parameter, supported formats for Vertex AI API include:
17076
+ * For the `model` parameter, supported formats for Gemini Enterprise Agent Platform API include:
16988
17077
  * - The Gemini model ID, for example: 'gemini-2.0-flash'
16989
17078
  * - The full resource name starts with 'projects/', for example:
16990
17079
  * 'projects/my-project-id/locations/us-central1/publishers/google/models/gemini-2.0-flash'
@@ -17075,7 +17164,7 @@ class Models extends BaseModule {
17075
17164
  * Makes an API request to generate content with a given model and yields the
17076
17165
  * response in chunks.
17077
17166
  *
17078
- * For the `model` parameter, supported formats for Vertex AI API include:
17167
+ * For the `model` parameter, supported formats for Gemini Enterprise Agent Platform API include:
17079
17168
  * - The Gemini model ID, for example: 'gemini-2.0-flash'
17080
17169
  * - The full resource name starts with 'projects/', for example:
17081
17170
  * 'projects/my-project-id/locations/us-central1/publishers/google/models/gemini-2.0-flash'
@@ -17204,7 +17293,7 @@ class Models extends BaseModule {
17204
17293
  if (this.apiClient.isVertexAI()) {
17205
17294
  if (!actualParams.config.queryBase) {
17206
17295
  if ((_a = actualParams.config) === null || _a === void 0 ? void 0 : _a.filter) {
17207
- throw new Error('Filtering tuned models list for Vertex AI is not currently supported');
17296
+ throw new Error('Filtering tuned models list for Gemini Enterprise Agent Platform (previously known as Vertex AI) is not currently supported');
17208
17297
  }
17209
17298
  else {
17210
17299
  actualParams.config.filter = 'labels.tune-type:*';
@@ -17249,7 +17338,7 @@ class Models extends BaseModule {
17249
17338
  };
17250
17339
  /**
17251
17340
  * Upscales an image based on an image, upscale factor, and configuration.
17252
- * Only supported in Vertex AI currently.
17341
+ * Only supported in Gemini Enterprise Agent Platform currently.
17253
17342
  *
17254
17343
  * @param params - The parameters for upscaling an image.
17255
17344
  * @return The response from the API.
@@ -17850,7 +17939,7 @@ class Models extends BaseModule {
17850
17939
  });
17851
17940
  }
17852
17941
  else {
17853
- throw new Error('This method is only supported by the Vertex AI.');
17942
+ throw new Error('This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).');
17854
17943
  }
17855
17944
  }
17856
17945
  /**
@@ -17893,7 +17982,7 @@ class Models extends BaseModule {
17893
17982
  });
17894
17983
  }
17895
17984
  else {
17896
- throw new Error('This method is only supported by the Vertex AI.');
17985
+ throw new Error('This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).');
17897
17986
  }
17898
17987
  }
17899
17988
  /**
@@ -17951,7 +18040,7 @@ class Models extends BaseModule {
17951
18040
  });
17952
18041
  }
17953
18042
  else {
17954
- throw new Error('This method is only supported by the Vertex AI.');
18043
+ throw new Error('This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).');
17955
18044
  }
17956
18045
  }
17957
18046
  /**
@@ -18005,7 +18094,7 @@ class Models extends BaseModule {
18005
18094
  });
18006
18095
  }
18007
18096
  else {
18008
- throw new Error('This method is only supported by the Vertex AI.');
18097
+ throw new Error('This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).');
18009
18098
  }
18010
18099
  }
18011
18100
  /**
@@ -18423,7 +18512,7 @@ class Models extends BaseModule {
18423
18512
  });
18424
18513
  }
18425
18514
  else {
18426
- throw new Error('This method is only supported by the Vertex AI.');
18515
+ throw new Error('This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).');
18427
18516
  }
18428
18517
  }
18429
18518
  /**
@@ -18647,7 +18736,7 @@ class Operations extends BaseModule {
18647
18736
  return response;
18648
18737
  }
18649
18738
  else {
18650
- throw new Error('This method is only supported by the Vertex AI.');
18739
+ throw new Error('This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).');
18651
18740
  }
18652
18741
  }
18653
18742
  }
@@ -19847,22 +19936,6 @@ function getTuningJobParametersToVertex(fromObject, _rootObject) {
19847
19936
  }
19848
19937
  return toObject;
19849
19938
  }
19850
- function listTuningJobsConfigToMldev(fromObject, parentObject, _rootObject) {
19851
- const toObject = {};
19852
- const fromPageSize = getValueByPath(fromObject, ['pageSize']);
19853
- if (parentObject !== undefined && fromPageSize != null) {
19854
- setValueByPath(parentObject, ['_query', 'pageSize'], fromPageSize);
19855
- }
19856
- const fromPageToken = getValueByPath(fromObject, ['pageToken']);
19857
- if (parentObject !== undefined && fromPageToken != null) {
19858
- setValueByPath(parentObject, ['_query', 'pageToken'], fromPageToken);
19859
- }
19860
- const fromFilter = getValueByPath(fromObject, ['filter']);
19861
- if (parentObject !== undefined && fromFilter != null) {
19862
- setValueByPath(parentObject, ['_query', 'filter'], fromFilter);
19863
- }
19864
- return toObject;
19865
- }
19866
19939
  function listTuningJobsConfigToVertex(fromObject, parentObject, _rootObject) {
19867
19940
  const toObject = {};
19868
19941
  const fromPageSize = getValueByPath(fromObject, ['pageSize']);
@@ -19879,14 +19952,6 @@ function listTuningJobsConfigToVertex(fromObject, parentObject, _rootObject) {
19879
19952
  }
19880
19953
  return toObject;
19881
19954
  }
19882
- function listTuningJobsParametersToMldev(fromObject, rootObject) {
19883
- const toObject = {};
19884
- const fromConfig = getValueByPath(fromObject, ['config']);
19885
- if (fromConfig != null) {
19886
- listTuningJobsConfigToMldev(fromConfig, toObject);
19887
- }
19888
- return toObject;
19889
- }
19890
19955
  function listTuningJobsParametersToVertex(fromObject, rootObject) {
19891
19956
  const toObject = {};
19892
19957
  const fromConfig = getValueByPath(fromObject, ['config']);
@@ -19895,32 +19960,6 @@ function listTuningJobsParametersToVertex(fromObject, rootObject) {
19895
19960
  }
19896
19961
  return toObject;
19897
19962
  }
19898
- function listTuningJobsResponseFromMldev(fromObject, rootObject) {
19899
- const toObject = {};
19900
- const fromSdkHttpResponse = getValueByPath(fromObject, [
19901
- 'sdkHttpResponse',
19902
- ]);
19903
- if (fromSdkHttpResponse != null) {
19904
- setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
19905
- }
19906
- const fromNextPageToken = getValueByPath(fromObject, [
19907
- 'nextPageToken',
19908
- ]);
19909
- if (fromNextPageToken != null) {
19910
- setValueByPath(toObject, ['nextPageToken'], fromNextPageToken);
19911
- }
19912
- const fromTuningJobs = getValueByPath(fromObject, ['tunedModels']);
19913
- if (fromTuningJobs != null) {
19914
- let transformedList = fromTuningJobs;
19915
- if (Array.isArray(transformedList)) {
19916
- transformedList = transformedList.map((item) => {
19917
- return tuningJobFromMldev(item);
19918
- });
19919
- }
19920
- setValueByPath(toObject, ['tuningJobs'], transformedList);
19921
- }
19922
- return toObject;
19923
- }
19924
19963
  function listTuningJobsResponseFromVertex(fromObject, rootObject) {
19925
19964
  const toObject = {};
19926
19965
  const fromSdkHttpResponse = getValueByPath(fromObject, [
@@ -20038,7 +20077,7 @@ function tuningDatasetToVertex(fromObject, parentObject, rootObject) {
20038
20077
  }
20039
20078
  }
20040
20079
  if (getValueByPath(fromObject, ['examples']) !== undefined) {
20041
- throw new Error('examples parameter is not supported in Vertex AI.');
20080
+ throw new Error('examples parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).');
20042
20081
  }
20043
20082
  return toObject;
20044
20083
  }
@@ -20454,7 +20493,7 @@ class Tunings extends BaseModule {
20454
20493
  }
20455
20494
  }
20456
20495
  async listInternal(params) {
20457
- var _a, _b, _c, _d;
20496
+ var _a, _b;
20458
20497
  let response;
20459
20498
  let path = '';
20460
20499
  let queryParams = {};
@@ -20490,35 +20529,7 @@ class Tunings extends BaseModule {
20490
20529
  });
20491
20530
  }
20492
20531
  else {
20493
- const body = listTuningJobsParametersToMldev(params);
20494
- path = formatMap('tunedModels', body['_url']);
20495
- queryParams = body['_query'];
20496
- delete body['_url'];
20497
- delete body['_query'];
20498
- response = this.apiClient
20499
- .request({
20500
- path: path,
20501
- queryParams: queryParams,
20502
- body: JSON.stringify(body),
20503
- httpMethod: 'GET',
20504
- httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,
20505
- abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,
20506
- })
20507
- .then((httpResponse) => {
20508
- return httpResponse.json().then((jsonResponse) => {
20509
- const response = jsonResponse;
20510
- response.sdkHttpResponse = {
20511
- headers: httpResponse.headers,
20512
- };
20513
- return response;
20514
- });
20515
- });
20516
- return response.then((apiResponse) => {
20517
- const resp = listTuningJobsResponseFromMldev(apiResponse);
20518
- const typedResp = new ListTuningJobsResponse();
20519
- Object.assign(typedResp, resp);
20520
- return typedResp;
20521
- });
20532
+ throw new Error('This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).');
20522
20533
  }
20523
20534
  }
20524
20535
  /**
@@ -20635,7 +20646,7 @@ class Tunings extends BaseModule {
20635
20646
  });
20636
20647
  }
20637
20648
  else {
20638
- throw new Error('This method is only supported by the Vertex AI.');
20649
+ throw new Error('This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).');
20639
20650
  }
20640
20651
  }
20641
20652
  async tuneMldevInternal(params) {
@@ -20779,11 +20790,16 @@ class GoogleGenAI {
20779
20790
  return this._webhooks;
20780
20791
  }
20781
20792
  constructor(options) {
20782
- var _a;
20793
+ var _a, _b;
20783
20794
  if (options.apiKey == null) {
20784
20795
  throw new Error(`An API Key must be set when running in an unspecified environment.\n + ${crossError().message}`);
20785
20796
  }
20786
- this.vertexai = (_a = options.vertexai) !== null && _a !== void 0 ? _a : false;
20797
+ if (options.enterprise !== undefined &&
20798
+ options.vertexai !== undefined &&
20799
+ options.enterprise !== options.vertexai) {
20800
+ throw new Error('enterprise and vertexAI flags have conflicting values, please set enterprise value only.');
20801
+ }
20802
+ this.vertexai = (_b = (_a = options.enterprise) !== null && _a !== void 0 ? _a : options.vertexai) !== null && _b !== void 0 ? _b : false;
20787
20803
  this.apiKey = options.apiKey;
20788
20804
  this.apiVersion = options.apiVersion;
20789
20805
  this.httpOptions = options.httpOptions;
@@ -20811,5 +20827,5 @@ class GoogleGenAI {
20811
20827
  }
20812
20828
  }
20813
20829
 
20814
- export { ActivityHandling, AdapterSize, AggregationMetric, ApiError, ApiSpec, AuthType, Batches, Behavior, BlockedReason, Caches, CancelTuningJobResponse, Chat, Chats, ComputeTokensResponse, ContentReferenceImage, ControlReferenceImage, ControlReferenceType, CountTokensResponse, CreateFileResponse, DeleteCachedContentResponse, DeleteFileResponse, DeleteModelResponse, DocumentState, DynamicRetrievalConfigMode, EditImageResponse, EditMode, EmbedContentResponse, EmbeddingApiType, EndSensitivity, Environment, EvaluateDatasetResponse, FeatureSelectionPreference, FileSource, FileState, Files, FinishReason, FunctionCallingConfigMode, FunctionResponse, FunctionResponseBlob, FunctionResponseFileData, FunctionResponsePart, FunctionResponseScheduling, GenerateContentResponse, GenerateContentResponsePromptFeedback, GenerateContentResponseUsageMetadata, GenerateImagesResponse, GenerateVideosOperation, GenerateVideosResponse, GoogleGenAI, HarmBlockMethod, HarmBlockThreshold, HarmCategory, HarmProbability, HarmSeverity, HttpElementLocation, HttpResponse, ImagePromptLanguage, ImportFileOperation, ImportFileResponse, InlinedEmbedContentResponse, InlinedResponse, JobState, Language, ListBatchJobsResponse, ListCachedContentsResponse, ListDocumentsResponse, ListFileSearchStoresResponse, ListFilesResponse, ListModelsResponse, ListTuningJobsResponse, Live, LiveClientToolResponse, LiveMusicPlaybackControl, LiveMusicServerMessage, LiveSendToolResponseParameters, LiveServerMessage, MaskReferenceImage, MaskReferenceMode, MediaModality, MediaResolution, Modality, ModelStage, Models, MusicGenerationMode, Operations, Outcome, PagedItem, Pager, PairwiseChoice, PartMediaResolutionLevel, PersonGeneration, PhishBlockThreshold, ProminentPeople, RawReferenceImage, RecontextImageResponse, RegisterFilesResponse, ReplayResponse, ResourceScope, SafetyFilterLevel, Scale, SegmentImageResponse, SegmentMode, ServiceTier, Session, SingleEmbedContentResponse, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, ThinkingLevel, Tokens, ToolResponse, ToolType, TrafficType, TuningJobState, TuningMethod, TuningMode, TuningTask, TurnCompleteReason, TurnCoverage, Type, UploadToFileSearchStoreOperation, UploadToFileSearchStoreResponse, UploadToFileSearchStoreResumableResponse, UpscaleImageResponse, UrlRetrievalStatus, VadSignalType, VideoCompressionQuality, VideoGenerationMaskMode, VideoGenerationReferenceType, VoiceActivityType, createFunctionResponsePartFromBase64, createFunctionResponsePartFromUri, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
20830
+ export { ActivityHandling, AdapterSize, AggregationMetric, ApiError, ApiSpec, AuthType, Batches, Behavior, BlockedReason, Caches, CancelTuningJobResponse, Chat, Chats, ComputeTokensResponse, ContentReferenceImage, ControlReferenceImage, ControlReferenceType, CountTokensResponse, CreateFileResponse, DeleteCachedContentResponse, DeleteFileResponse, DeleteModelResponse, DocumentState, DynamicRetrievalConfigMode, EditImageResponse, EditMode, EmbedContentResponse, EmbeddingApiType, EndSensitivity, Environment, EvaluateDatasetResponse, FeatureSelectionPreference, FileSource, FileState, Files, FinishReason, FunctionCallingConfigMode, FunctionResponse, FunctionResponseBlob, FunctionResponseFileData, FunctionResponsePart, FunctionResponseScheduling, GenerateContentResponse, GenerateContentResponsePromptFeedback, GenerateContentResponseUsageMetadata, GenerateImagesResponse, GenerateVideosOperation, GenerateVideosResponse, GoogleGenAI, HarmBlockMethod, HarmBlockThreshold, HarmCategory, HarmProbability, HarmSeverity, HttpElementLocation, HttpResponse, ImagePromptLanguage, ImageResizeMode, ImportFileOperation, ImportFileResponse, InlinedEmbedContentResponse, InlinedResponse, JobState, Language, ListBatchJobsResponse, ListCachedContentsResponse, ListDocumentsResponse, ListFileSearchStoresResponse, ListFilesResponse, ListModelsResponse, ListTuningJobsResponse, Live, LiveClientToolResponse, LiveMusicPlaybackControl, LiveMusicServerMessage, LiveSendToolResponseParameters, LiveServerMessage, MaskReferenceImage, MaskReferenceMode, MediaModality, MediaResolution, Modality, ModelStage, Models, MusicGenerationMode, Operations, Outcome, PagedItem, Pager, PairwiseChoice, PartMediaResolutionLevel, PersonGeneration, PhishBlockThreshold, ProminentPeople, RawReferenceImage, RecontextImageResponse, RegisterFilesResponse, ReplayResponse, ResourceScope, SafetyFilterLevel, Scale, SegmentImageResponse, SegmentMode, ServiceTier, Session, SingleEmbedContentResponse, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, ThinkingLevel, Tokens, ToolResponse, ToolType, TrafficType, TuningJobState, TuningMethod, TuningMode, TuningTask, TurnCompleteReason, TurnCoverage, Type, UploadToFileSearchStoreOperation, UploadToFileSearchStoreResponse, UploadToFileSearchStoreResumableResponse, UpscaleImageResponse, UrlRetrievalStatus, VadSignalType, VideoCompressionQuality, VideoGenerationMaskMode, VideoGenerationReferenceType, VoiceActivityType, createFunctionResponsePartFromBase64, createFunctionResponsePartFromUri, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
20815
20831
  //# sourceMappingURL=index.mjs.map