@google/genai 1.0.1 → 1.2.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.
@@ -230,6 +230,42 @@ var Language;
230
230
  */
231
231
  Language["PYTHON"] = "PYTHON";
232
232
  })(Language || (Language = {}));
233
+ /** Optional. The type of the data. */
234
+ var Type;
235
+ (function (Type) {
236
+ /**
237
+ * Not specified, should not be used.
238
+ */
239
+ Type["TYPE_UNSPECIFIED"] = "TYPE_UNSPECIFIED";
240
+ /**
241
+ * OpenAPI string type
242
+ */
243
+ Type["STRING"] = "STRING";
244
+ /**
245
+ * OpenAPI number type
246
+ */
247
+ Type["NUMBER"] = "NUMBER";
248
+ /**
249
+ * OpenAPI integer type
250
+ */
251
+ Type["INTEGER"] = "INTEGER";
252
+ /**
253
+ * OpenAPI boolean type
254
+ */
255
+ Type["BOOLEAN"] = "BOOLEAN";
256
+ /**
257
+ * OpenAPI array type
258
+ */
259
+ Type["ARRAY"] = "ARRAY";
260
+ /**
261
+ * OpenAPI object type
262
+ */
263
+ Type["OBJECT"] = "OBJECT";
264
+ /**
265
+ * Null type
266
+ */
267
+ Type["NULL"] = "NULL";
268
+ })(Type || (Type = {}));
233
269
  /** Required. Harm category. */
234
270
  var HarmCategory;
235
271
  (function (HarmCategory) {
@@ -254,7 +290,7 @@ var HarmCategory;
254
290
  */
255
291
  HarmCategory["HARM_CATEGORY_SEXUALLY_EXPLICIT"] = "HARM_CATEGORY_SEXUALLY_EXPLICIT";
256
292
  /**
257
- * The harm category is civic integrity.
293
+ * Deprecated: Election filter is not longer supported. The harm category is civic integrity.
258
294
  */
259
295
  HarmCategory["HARM_CATEGORY_CIVIC_INTEGRITY"] = "HARM_CATEGORY_CIVIC_INTEGRITY";
260
296
  })(HarmCategory || (HarmCategory = {}));
@@ -302,38 +338,6 @@ var HarmBlockThreshold;
302
338
  */
303
339
  HarmBlockThreshold["OFF"] = "OFF";
304
340
  })(HarmBlockThreshold || (HarmBlockThreshold = {}));
305
- /** Optional. The type of the data. */
306
- var Type;
307
- (function (Type) {
308
- /**
309
- * Not specified, should not be used.
310
- */
311
- Type["TYPE_UNSPECIFIED"] = "TYPE_UNSPECIFIED";
312
- /**
313
- * OpenAPI string type
314
- */
315
- Type["STRING"] = "STRING";
316
- /**
317
- * OpenAPI number type
318
- */
319
- Type["NUMBER"] = "NUMBER";
320
- /**
321
- * OpenAPI integer type
322
- */
323
- Type["INTEGER"] = "INTEGER";
324
- /**
325
- * OpenAPI boolean type
326
- */
327
- Type["BOOLEAN"] = "BOOLEAN";
328
- /**
329
- * OpenAPI array type
330
- */
331
- Type["ARRAY"] = "ARRAY";
332
- /**
333
- * OpenAPI object type
334
- */
335
- Type["OBJECT"] = "OBJECT";
336
- })(Type || (Type = {}));
337
341
  /** The mode of the predictor to be used in dynamic retrieval. */
338
342
  var Mode;
339
343
  (function (Mode) {
@@ -534,7 +538,7 @@ var Modality;
534
538
  */
535
539
  Modality["IMAGE"] = "IMAGE";
536
540
  /**
537
- * Indicates the model should return images.
541
+ * Indicates the model should return audio.
538
542
  */
539
543
  Modality["AUDIO"] = "AUDIO";
540
544
  })(Modality || (Modality = {}));
@@ -958,24 +962,6 @@ var Scale;
958
962
  */
959
963
  Scale["B_MAJOR_A_FLAT_MINOR"] = "B_MAJOR_A_FLAT_MINOR";
960
964
  })(Scale || (Scale = {}));
961
- /** The mode of music generation. */
962
- var MusicGenerationMode;
963
- (function (MusicGenerationMode) {
964
- /**
965
- * This value is unused.
966
- */
967
- MusicGenerationMode["MUSIC_GENERATION_MODE_UNSPECIFIED"] = "MUSIC_GENERATION_MODE_UNSPECIFIED";
968
- /**
969
- * Steer text prompts to regions of latent space with higher quality
970
- music.
971
- */
972
- MusicGenerationMode["QUALITY"] = "QUALITY";
973
- /**
974
- * Steer text prompts to regions of latent space with a larger diversity
975
- of music.
976
- */
977
- MusicGenerationMode["DIVERSITY"] = "DIVERSITY";
978
- })(MusicGenerationMode || (MusicGenerationMode = {}));
979
965
  /** The playback control signal to apply to the music generation. */
980
966
  var LiveMusicPlaybackControl;
981
967
  (function (LiveMusicPlaybackControl) {
@@ -2473,6 +2459,21 @@ function blobToMldev$2(apiClient, fromObject) {
2473
2459
  }
2474
2460
  return toObject;
2475
2461
  }
2462
+ function fileDataToMldev$2(apiClient, fromObject) {
2463
+ const toObject = {};
2464
+ if (getValueByPath(fromObject, ['displayName']) !== undefined) {
2465
+ throw new Error('displayName parameter is not supported in Gemini API.');
2466
+ }
2467
+ const fromFileUri = getValueByPath(fromObject, ['fileUri']);
2468
+ if (fromFileUri != null) {
2469
+ setValueByPath(toObject, ['fileUri'], fromFileUri);
2470
+ }
2471
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
2472
+ if (fromMimeType != null) {
2473
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
2474
+ }
2475
+ return toObject;
2476
+ }
2476
2477
  function partToMldev$2(apiClient, fromObject) {
2477
2478
  const toObject = {};
2478
2479
  const fromVideoMetadata = getValueByPath(fromObject, [
@@ -2489,6 +2490,10 @@ function partToMldev$2(apiClient, fromObject) {
2489
2490
  if (fromInlineData != null) {
2490
2491
  setValueByPath(toObject, ['inlineData'], blobToMldev$2(apiClient, fromInlineData));
2491
2492
  }
2493
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
2494
+ if (fromFileData != null) {
2495
+ setValueByPath(toObject, ['fileData'], fileDataToMldev$2(apiClient, fromFileData));
2496
+ }
2492
2497
  const fromCodeExecutionResult = getValueByPath(fromObject, [
2493
2498
  'codeExecutionResult',
2494
2499
  ]);
@@ -2501,10 +2506,6 @@ function partToMldev$2(apiClient, fromObject) {
2501
2506
  if (fromExecutableCode != null) {
2502
2507
  setValueByPath(toObject, ['executableCode'], fromExecutableCode);
2503
2508
  }
2504
- const fromFileData = getValueByPath(fromObject, ['fileData']);
2505
- if (fromFileData != null) {
2506
- setValueByPath(toObject, ['fileData'], fromFileData);
2507
- }
2508
2509
  const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
2509
2510
  if (fromFunctionCall != null) {
2510
2511
  setValueByPath(toObject, ['functionCall'], fromFunctionCall);
@@ -2690,6 +2691,10 @@ function retrievalConfigToMldev$1(apiClient, fromObject) {
2690
2691
  if (fromLatLng != null) {
2691
2692
  setValueByPath(toObject, ['latLng'], latLngToMldev$1(apiClient, fromLatLng));
2692
2693
  }
2694
+ const fromLanguageCode = getValueByPath(fromObject, ['languageCode']);
2695
+ if (fromLanguageCode != null) {
2696
+ setValueByPath(toObject, ['languageCode'], fromLanguageCode);
2697
+ }
2693
2698
  return toObject;
2694
2699
  }
2695
2700
  function toolConfigToMldev$1(apiClient, fromObject) {
@@ -2869,6 +2874,22 @@ function blobToVertex$2(apiClient, fromObject) {
2869
2874
  }
2870
2875
  return toObject;
2871
2876
  }
2877
+ function fileDataToVertex$2(apiClient, fromObject) {
2878
+ const toObject = {};
2879
+ const fromDisplayName = getValueByPath(fromObject, ['displayName']);
2880
+ if (fromDisplayName != null) {
2881
+ setValueByPath(toObject, ['displayName'], fromDisplayName);
2882
+ }
2883
+ const fromFileUri = getValueByPath(fromObject, ['fileUri']);
2884
+ if (fromFileUri != null) {
2885
+ setValueByPath(toObject, ['fileUri'], fromFileUri);
2886
+ }
2887
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
2888
+ if (fromMimeType != null) {
2889
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
2890
+ }
2891
+ return toObject;
2892
+ }
2872
2893
  function partToVertex$2(apiClient, fromObject) {
2873
2894
  const toObject = {};
2874
2895
  const fromVideoMetadata = getValueByPath(fromObject, [
@@ -2885,6 +2906,10 @@ function partToVertex$2(apiClient, fromObject) {
2885
2906
  if (fromInlineData != null) {
2886
2907
  setValueByPath(toObject, ['inlineData'], blobToVertex$2(apiClient, fromInlineData));
2887
2908
  }
2909
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
2910
+ if (fromFileData != null) {
2911
+ setValueByPath(toObject, ['fileData'], fileDataToVertex$2(apiClient, fromFileData));
2912
+ }
2888
2913
  const fromCodeExecutionResult = getValueByPath(fromObject, [
2889
2914
  'codeExecutionResult',
2890
2915
  ]);
@@ -2897,10 +2922,6 @@ function partToVertex$2(apiClient, fromObject) {
2897
2922
  if (fromExecutableCode != null) {
2898
2923
  setValueByPath(toObject, ['executableCode'], fromExecutableCode);
2899
2924
  }
2900
- const fromFileData = getValueByPath(fromObject, ['fileData']);
2901
- if (fromFileData != null) {
2902
- setValueByPath(toObject, ['fileData'], fromFileData);
2903
- }
2904
2925
  const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
2905
2926
  if (fromFunctionCall != null) {
2906
2927
  setValueByPath(toObject, ['functionCall'], fromFunctionCall);
@@ -3137,6 +3158,10 @@ function retrievalConfigToVertex$1(apiClient, fromObject) {
3137
3158
  if (fromLatLng != null) {
3138
3159
  setValueByPath(toObject, ['latLng'], latLngToVertex$1(apiClient, fromLatLng));
3139
3160
  }
3161
+ const fromLanguageCode = getValueByPath(fromObject, ['languageCode']);
3162
+ if (fromLanguageCode != null) {
3163
+ setValueByPath(toObject, ['languageCode'], fromLanguageCode);
3164
+ }
3140
3165
  return toObject;
3141
3166
  }
3142
3167
  function toolConfigToVertex$1(apiClient, fromObject) {
@@ -5023,6 +5048,37 @@ function blobToVertex$1(apiClient, fromObject) {
5023
5048
  }
5024
5049
  return toObject;
5025
5050
  }
5051
+ function fileDataToMldev$1(apiClient, fromObject) {
5052
+ const toObject = {};
5053
+ if (getValueByPath(fromObject, ['displayName']) !== undefined) {
5054
+ throw new Error('displayName parameter is not supported in Gemini API.');
5055
+ }
5056
+ const fromFileUri = getValueByPath(fromObject, ['fileUri']);
5057
+ if (fromFileUri != null) {
5058
+ setValueByPath(toObject, ['fileUri'], fromFileUri);
5059
+ }
5060
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
5061
+ if (fromMimeType != null) {
5062
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
5063
+ }
5064
+ return toObject;
5065
+ }
5066
+ function fileDataToVertex$1(apiClient, fromObject) {
5067
+ const toObject = {};
5068
+ const fromDisplayName = getValueByPath(fromObject, ['displayName']);
5069
+ if (fromDisplayName != null) {
5070
+ setValueByPath(toObject, ['displayName'], fromDisplayName);
5071
+ }
5072
+ const fromFileUri = getValueByPath(fromObject, ['fileUri']);
5073
+ if (fromFileUri != null) {
5074
+ setValueByPath(toObject, ['fileUri'], fromFileUri);
5075
+ }
5076
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
5077
+ if (fromMimeType != null) {
5078
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
5079
+ }
5080
+ return toObject;
5081
+ }
5026
5082
  function partToMldev$1(apiClient, fromObject) {
5027
5083
  const toObject = {};
5028
5084
  const fromVideoMetadata = getValueByPath(fromObject, [
@@ -5039,6 +5095,10 @@ function partToMldev$1(apiClient, fromObject) {
5039
5095
  if (fromInlineData != null) {
5040
5096
  setValueByPath(toObject, ['inlineData'], blobToMldev$1(apiClient, fromInlineData));
5041
5097
  }
5098
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
5099
+ if (fromFileData != null) {
5100
+ setValueByPath(toObject, ['fileData'], fileDataToMldev$1(apiClient, fromFileData));
5101
+ }
5042
5102
  const fromCodeExecutionResult = getValueByPath(fromObject, [
5043
5103
  'codeExecutionResult',
5044
5104
  ]);
@@ -5051,10 +5111,6 @@ function partToMldev$1(apiClient, fromObject) {
5051
5111
  if (fromExecutableCode != null) {
5052
5112
  setValueByPath(toObject, ['executableCode'], fromExecutableCode);
5053
5113
  }
5054
- const fromFileData = getValueByPath(fromObject, ['fileData']);
5055
- if (fromFileData != null) {
5056
- setValueByPath(toObject, ['fileData'], fromFileData);
5057
- }
5058
5114
  const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
5059
5115
  if (fromFunctionCall != null) {
5060
5116
  setValueByPath(toObject, ['functionCall'], fromFunctionCall);
@@ -5087,6 +5143,10 @@ function partToVertex$1(apiClient, fromObject) {
5087
5143
  if (fromInlineData != null) {
5088
5144
  setValueByPath(toObject, ['inlineData'], blobToVertex$1(apiClient, fromInlineData));
5089
5145
  }
5146
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
5147
+ if (fromFileData != null) {
5148
+ setValueByPath(toObject, ['fileData'], fileDataToVertex$1(apiClient, fromFileData));
5149
+ }
5090
5150
  const fromCodeExecutionResult = getValueByPath(fromObject, [
5091
5151
  'codeExecutionResult',
5092
5152
  ]);
@@ -5099,10 +5159,6 @@ function partToVertex$1(apiClient, fromObject) {
5099
5159
  if (fromExecutableCode != null) {
5100
5160
  setValueByPath(toObject, ['executableCode'], fromExecutableCode);
5101
5161
  }
5102
- const fromFileData = getValueByPath(fromObject, ['fileData']);
5103
- if (fromFileData != null) {
5104
- setValueByPath(toObject, ['fileData'], fromFileData);
5105
- }
5106
5162
  const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
5107
5163
  if (fromFunctionCall != null) {
5108
5164
  setValueByPath(toObject, ['functionCall'], fromFunctionCall);
@@ -6040,12 +6096,6 @@ function liveMusicGenerationConfigToMldev(apiClient, fromObject) {
6040
6096
  if (fromOnlyBassAndDrums != null) {
6041
6097
  setValueByPath(toObject, ['onlyBassAndDrums'], fromOnlyBassAndDrums);
6042
6098
  }
6043
- const fromMusicGenerationMode = getValueByPath(fromObject, [
6044
- 'musicGenerationMode',
6045
- ]);
6046
- if (fromMusicGenerationMode != null) {
6047
- setValueByPath(toObject, ['musicGenerationMode'], fromMusicGenerationMode);
6048
- }
6049
6099
  return toObject;
6050
6100
  }
6051
6101
  function liveMusicSetConfigParametersToMldev(apiClient, fromObject) {
@@ -6176,6 +6226,34 @@ function blobFromVertex$1(apiClient, fromObject) {
6176
6226
  }
6177
6227
  return toObject;
6178
6228
  }
6229
+ function fileDataFromMldev$1(apiClient, fromObject) {
6230
+ const toObject = {};
6231
+ const fromFileUri = getValueByPath(fromObject, ['fileUri']);
6232
+ if (fromFileUri != null) {
6233
+ setValueByPath(toObject, ['fileUri'], fromFileUri);
6234
+ }
6235
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
6236
+ if (fromMimeType != null) {
6237
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
6238
+ }
6239
+ return toObject;
6240
+ }
6241
+ function fileDataFromVertex$1(apiClient, fromObject) {
6242
+ const toObject = {};
6243
+ const fromDisplayName = getValueByPath(fromObject, ['displayName']);
6244
+ if (fromDisplayName != null) {
6245
+ setValueByPath(toObject, ['displayName'], fromDisplayName);
6246
+ }
6247
+ const fromFileUri = getValueByPath(fromObject, ['fileUri']);
6248
+ if (fromFileUri != null) {
6249
+ setValueByPath(toObject, ['fileUri'], fromFileUri);
6250
+ }
6251
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
6252
+ if (fromMimeType != null) {
6253
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
6254
+ }
6255
+ return toObject;
6256
+ }
6179
6257
  function partFromMldev$1(apiClient, fromObject) {
6180
6258
  const toObject = {};
6181
6259
  const fromVideoMetadata = getValueByPath(fromObject, [
@@ -6192,6 +6270,10 @@ function partFromMldev$1(apiClient, fromObject) {
6192
6270
  if (fromInlineData != null) {
6193
6271
  setValueByPath(toObject, ['inlineData'], blobFromMldev$1(apiClient, fromInlineData));
6194
6272
  }
6273
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
6274
+ if (fromFileData != null) {
6275
+ setValueByPath(toObject, ['fileData'], fileDataFromMldev$1(apiClient, fromFileData));
6276
+ }
6195
6277
  const fromCodeExecutionResult = getValueByPath(fromObject, [
6196
6278
  'codeExecutionResult',
6197
6279
  ]);
@@ -6204,10 +6286,6 @@ function partFromMldev$1(apiClient, fromObject) {
6204
6286
  if (fromExecutableCode != null) {
6205
6287
  setValueByPath(toObject, ['executableCode'], fromExecutableCode);
6206
6288
  }
6207
- const fromFileData = getValueByPath(fromObject, ['fileData']);
6208
- if (fromFileData != null) {
6209
- setValueByPath(toObject, ['fileData'], fromFileData);
6210
- }
6211
6289
  const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
6212
6290
  if (fromFunctionCall != null) {
6213
6291
  setValueByPath(toObject, ['functionCall'], fromFunctionCall);
@@ -6240,6 +6318,10 @@ function partFromVertex$1(apiClient, fromObject) {
6240
6318
  if (fromInlineData != null) {
6241
6319
  setValueByPath(toObject, ['inlineData'], blobFromVertex$1(apiClient, fromInlineData));
6242
6320
  }
6321
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
6322
+ if (fromFileData != null) {
6323
+ setValueByPath(toObject, ['fileData'], fileDataFromVertex$1(apiClient, fromFileData));
6324
+ }
6243
6325
  const fromCodeExecutionResult = getValueByPath(fromObject, [
6244
6326
  'codeExecutionResult',
6245
6327
  ]);
@@ -6252,10 +6334,6 @@ function partFromVertex$1(apiClient, fromObject) {
6252
6334
  if (fromExecutableCode != null) {
6253
6335
  setValueByPath(toObject, ['executableCode'], fromExecutableCode);
6254
6336
  }
6255
- const fromFileData = getValueByPath(fromObject, ['fileData']);
6256
- if (fromFileData != null) {
6257
- setValueByPath(toObject, ['fileData'], fromFileData);
6258
- }
6259
6337
  const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
6260
6338
  if (fromFunctionCall != null) {
6261
6339
  setValueByPath(toObject, ['functionCall'], fromFunctionCall);
@@ -6942,12 +7020,6 @@ function liveMusicGenerationConfigFromMldev(apiClient, fromObject) {
6942
7020
  if (fromOnlyBassAndDrums != null) {
6943
7021
  setValueByPath(toObject, ['onlyBassAndDrums'], fromOnlyBassAndDrums);
6944
7022
  }
6945
- const fromMusicGenerationMode = getValueByPath(fromObject, [
6946
- 'musicGenerationMode',
6947
- ]);
6948
- if (fromMusicGenerationMode != null) {
6949
- setValueByPath(toObject, ['musicGenerationMode'], fromMusicGenerationMode);
6950
- }
6951
7023
  return toObject;
6952
7024
  }
6953
7025
  function liveMusicSourceMetadataFromMldev(apiClient, fromObject) {
@@ -7071,6 +7143,21 @@ function blobToMldev(apiClient, fromObject) {
7071
7143
  }
7072
7144
  return toObject;
7073
7145
  }
7146
+ function fileDataToMldev(apiClient, fromObject) {
7147
+ const toObject = {};
7148
+ if (getValueByPath(fromObject, ['displayName']) !== undefined) {
7149
+ throw new Error('displayName parameter is not supported in Gemini API.');
7150
+ }
7151
+ const fromFileUri = getValueByPath(fromObject, ['fileUri']);
7152
+ if (fromFileUri != null) {
7153
+ setValueByPath(toObject, ['fileUri'], fromFileUri);
7154
+ }
7155
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
7156
+ if (fromMimeType != null) {
7157
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
7158
+ }
7159
+ return toObject;
7160
+ }
7074
7161
  function partToMldev(apiClient, fromObject) {
7075
7162
  const toObject = {};
7076
7163
  const fromVideoMetadata = getValueByPath(fromObject, [
@@ -7087,6 +7174,10 @@ function partToMldev(apiClient, fromObject) {
7087
7174
  if (fromInlineData != null) {
7088
7175
  setValueByPath(toObject, ['inlineData'], blobToMldev(apiClient, fromInlineData));
7089
7176
  }
7177
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
7178
+ if (fromFileData != null) {
7179
+ setValueByPath(toObject, ['fileData'], fileDataToMldev(apiClient, fromFileData));
7180
+ }
7090
7181
  const fromCodeExecutionResult = getValueByPath(fromObject, [
7091
7182
  'codeExecutionResult',
7092
7183
  ]);
@@ -7099,10 +7190,6 @@ function partToMldev(apiClient, fromObject) {
7099
7190
  if (fromExecutableCode != null) {
7100
7191
  setValueByPath(toObject, ['executableCode'], fromExecutableCode);
7101
7192
  }
7102
- const fromFileData = getValueByPath(fromObject, ['fileData']);
7103
- if (fromFileData != null) {
7104
- setValueByPath(toObject, ['fileData'], fromFileData);
7105
- }
7106
7193
  const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
7107
7194
  if (fromFunctionCall != null) {
7108
7195
  setValueByPath(toObject, ['functionCall'], fromFunctionCall);
@@ -7137,6 +7224,104 @@ function contentToMldev(apiClient, fromObject) {
7137
7224
  }
7138
7225
  return toObject;
7139
7226
  }
7227
+ function schemaToMldev(apiClient, fromObject) {
7228
+ const toObject = {};
7229
+ const fromAnyOf = getValueByPath(fromObject, ['anyOf']);
7230
+ if (fromAnyOf != null) {
7231
+ setValueByPath(toObject, ['anyOf'], fromAnyOf);
7232
+ }
7233
+ const fromDefault = getValueByPath(fromObject, ['default']);
7234
+ if (fromDefault != null) {
7235
+ setValueByPath(toObject, ['default'], fromDefault);
7236
+ }
7237
+ const fromDescription = getValueByPath(fromObject, ['description']);
7238
+ if (fromDescription != null) {
7239
+ setValueByPath(toObject, ['description'], fromDescription);
7240
+ }
7241
+ const fromEnum = getValueByPath(fromObject, ['enum']);
7242
+ if (fromEnum != null) {
7243
+ setValueByPath(toObject, ['enum'], fromEnum);
7244
+ }
7245
+ const fromExample = getValueByPath(fromObject, ['example']);
7246
+ if (fromExample != null) {
7247
+ setValueByPath(toObject, ['example'], fromExample);
7248
+ }
7249
+ const fromFormat = getValueByPath(fromObject, ['format']);
7250
+ if (fromFormat != null) {
7251
+ setValueByPath(toObject, ['format'], fromFormat);
7252
+ }
7253
+ const fromItems = getValueByPath(fromObject, ['items']);
7254
+ if (fromItems != null) {
7255
+ setValueByPath(toObject, ['items'], fromItems);
7256
+ }
7257
+ const fromMaxItems = getValueByPath(fromObject, ['maxItems']);
7258
+ if (fromMaxItems != null) {
7259
+ setValueByPath(toObject, ['maxItems'], fromMaxItems);
7260
+ }
7261
+ const fromMaxLength = getValueByPath(fromObject, ['maxLength']);
7262
+ if (fromMaxLength != null) {
7263
+ setValueByPath(toObject, ['maxLength'], fromMaxLength);
7264
+ }
7265
+ const fromMaxProperties = getValueByPath(fromObject, [
7266
+ 'maxProperties',
7267
+ ]);
7268
+ if (fromMaxProperties != null) {
7269
+ setValueByPath(toObject, ['maxProperties'], fromMaxProperties);
7270
+ }
7271
+ const fromMaximum = getValueByPath(fromObject, ['maximum']);
7272
+ if (fromMaximum != null) {
7273
+ setValueByPath(toObject, ['maximum'], fromMaximum);
7274
+ }
7275
+ const fromMinItems = getValueByPath(fromObject, ['minItems']);
7276
+ if (fromMinItems != null) {
7277
+ setValueByPath(toObject, ['minItems'], fromMinItems);
7278
+ }
7279
+ const fromMinLength = getValueByPath(fromObject, ['minLength']);
7280
+ if (fromMinLength != null) {
7281
+ setValueByPath(toObject, ['minLength'], fromMinLength);
7282
+ }
7283
+ const fromMinProperties = getValueByPath(fromObject, [
7284
+ 'minProperties',
7285
+ ]);
7286
+ if (fromMinProperties != null) {
7287
+ setValueByPath(toObject, ['minProperties'], fromMinProperties);
7288
+ }
7289
+ const fromMinimum = getValueByPath(fromObject, ['minimum']);
7290
+ if (fromMinimum != null) {
7291
+ setValueByPath(toObject, ['minimum'], fromMinimum);
7292
+ }
7293
+ const fromNullable = getValueByPath(fromObject, ['nullable']);
7294
+ if (fromNullable != null) {
7295
+ setValueByPath(toObject, ['nullable'], fromNullable);
7296
+ }
7297
+ const fromPattern = getValueByPath(fromObject, ['pattern']);
7298
+ if (fromPattern != null) {
7299
+ setValueByPath(toObject, ['pattern'], fromPattern);
7300
+ }
7301
+ const fromProperties = getValueByPath(fromObject, ['properties']);
7302
+ if (fromProperties != null) {
7303
+ setValueByPath(toObject, ['properties'], fromProperties);
7304
+ }
7305
+ const fromPropertyOrdering = getValueByPath(fromObject, [
7306
+ 'propertyOrdering',
7307
+ ]);
7308
+ if (fromPropertyOrdering != null) {
7309
+ setValueByPath(toObject, ['propertyOrdering'], fromPropertyOrdering);
7310
+ }
7311
+ const fromRequired = getValueByPath(fromObject, ['required']);
7312
+ if (fromRequired != null) {
7313
+ setValueByPath(toObject, ['required'], fromRequired);
7314
+ }
7315
+ const fromTitle = getValueByPath(fromObject, ['title']);
7316
+ if (fromTitle != null) {
7317
+ setValueByPath(toObject, ['title'], fromTitle);
7318
+ }
7319
+ const fromType = getValueByPath(fromObject, ['type']);
7320
+ if (fromType != null) {
7321
+ setValueByPath(toObject, ['type'], fromType);
7322
+ }
7323
+ return toObject;
7324
+ }
7140
7325
  function safetySettingToMldev(apiClient, fromObject) {
7141
7326
  const toObject = {};
7142
7327
  if (getValueByPath(fromObject, ['method']) !== undefined) {
@@ -7303,6 +7488,10 @@ function retrievalConfigToMldev(apiClient, fromObject) {
7303
7488
  if (fromLatLng != null) {
7304
7489
  setValueByPath(toObject, ['latLng'], latLngToMldev(apiClient, fromLatLng));
7305
7490
  }
7491
+ const fromLanguageCode = getValueByPath(fromObject, ['languageCode']);
7492
+ if (fromLanguageCode != null) {
7493
+ setValueByPath(toObject, ['languageCode'], fromLanguageCode);
7494
+ }
7306
7495
  return toObject;
7307
7496
  }
7308
7497
  function toolConfigToMldev(apiClient, fromObject) {
@@ -7475,7 +7664,7 @@ function generateContentConfigToMldev(apiClient, fromObject, parentObject) {
7475
7664
  'responseSchema',
7476
7665
  ]);
7477
7666
  if (fromResponseSchema != null) {
7478
- setValueByPath(toObject, ['responseSchema'], tSchema(apiClient, fromResponseSchema));
7667
+ setValueByPath(toObject, ['responseSchema'], schemaToMldev(apiClient, tSchema(apiClient, fromResponseSchema)));
7479
7668
  }
7480
7669
  if (getValueByPath(fromObject, ['routingConfig']) !== undefined) {
7481
7670
  throw new Error('routingConfig parameter is not supported in Gemini API.');
@@ -7882,6 +8071,9 @@ function generateVideosConfigToMldev(apiClient, fromObject, parentObject) {
7882
8071
  if (getValueByPath(fromObject, ['enhancePrompt']) !== undefined) {
7883
8072
  throw new Error('enhancePrompt parameter is not supported in Gemini API.');
7884
8073
  }
8074
+ if (getValueByPath(fromObject, ['generateAudio']) !== undefined) {
8075
+ throw new Error('generateAudio parameter is not supported in Gemini API.');
8076
+ }
7885
8077
  return toObject;
7886
8078
  }
7887
8079
  function generateVideosParametersToMldev(apiClient, fromObject) {
@@ -7936,6 +8128,22 @@ function blobToVertex(apiClient, fromObject) {
7936
8128
  }
7937
8129
  return toObject;
7938
8130
  }
8131
+ function fileDataToVertex(apiClient, fromObject) {
8132
+ const toObject = {};
8133
+ const fromDisplayName = getValueByPath(fromObject, ['displayName']);
8134
+ if (fromDisplayName != null) {
8135
+ setValueByPath(toObject, ['displayName'], fromDisplayName);
8136
+ }
8137
+ const fromFileUri = getValueByPath(fromObject, ['fileUri']);
8138
+ if (fromFileUri != null) {
8139
+ setValueByPath(toObject, ['fileUri'], fromFileUri);
8140
+ }
8141
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
8142
+ if (fromMimeType != null) {
8143
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
8144
+ }
8145
+ return toObject;
8146
+ }
7939
8147
  function partToVertex(apiClient, fromObject) {
7940
8148
  const toObject = {};
7941
8149
  const fromVideoMetadata = getValueByPath(fromObject, [
@@ -7952,6 +8160,10 @@ function partToVertex(apiClient, fromObject) {
7952
8160
  if (fromInlineData != null) {
7953
8161
  setValueByPath(toObject, ['inlineData'], blobToVertex(apiClient, fromInlineData));
7954
8162
  }
8163
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
8164
+ if (fromFileData != null) {
8165
+ setValueByPath(toObject, ['fileData'], fileDataToVertex(apiClient, fromFileData));
8166
+ }
7955
8167
  const fromCodeExecutionResult = getValueByPath(fromObject, [
7956
8168
  'codeExecutionResult',
7957
8169
  ]);
@@ -7964,10 +8176,6 @@ function partToVertex(apiClient, fromObject) {
7964
8176
  if (fromExecutableCode != null) {
7965
8177
  setValueByPath(toObject, ['executableCode'], fromExecutableCode);
7966
8178
  }
7967
- const fromFileData = getValueByPath(fromObject, ['fileData']);
7968
- if (fromFileData != null) {
7969
- setValueByPath(toObject, ['fileData'], fromFileData);
7970
- }
7971
8179
  const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
7972
8180
  if (fromFunctionCall != null) {
7973
8181
  setValueByPath(toObject, ['functionCall'], fromFunctionCall);
@@ -8002,6 +8210,104 @@ function contentToVertex(apiClient, fromObject) {
8002
8210
  }
8003
8211
  return toObject;
8004
8212
  }
8213
+ function schemaToVertex(apiClient, fromObject) {
8214
+ const toObject = {};
8215
+ const fromAnyOf = getValueByPath(fromObject, ['anyOf']);
8216
+ if (fromAnyOf != null) {
8217
+ setValueByPath(toObject, ['anyOf'], fromAnyOf);
8218
+ }
8219
+ const fromDefault = getValueByPath(fromObject, ['default']);
8220
+ if (fromDefault != null) {
8221
+ setValueByPath(toObject, ['default'], fromDefault);
8222
+ }
8223
+ const fromDescription = getValueByPath(fromObject, ['description']);
8224
+ if (fromDescription != null) {
8225
+ setValueByPath(toObject, ['description'], fromDescription);
8226
+ }
8227
+ const fromEnum = getValueByPath(fromObject, ['enum']);
8228
+ if (fromEnum != null) {
8229
+ setValueByPath(toObject, ['enum'], fromEnum);
8230
+ }
8231
+ const fromExample = getValueByPath(fromObject, ['example']);
8232
+ if (fromExample != null) {
8233
+ setValueByPath(toObject, ['example'], fromExample);
8234
+ }
8235
+ const fromFormat = getValueByPath(fromObject, ['format']);
8236
+ if (fromFormat != null) {
8237
+ setValueByPath(toObject, ['format'], fromFormat);
8238
+ }
8239
+ const fromItems = getValueByPath(fromObject, ['items']);
8240
+ if (fromItems != null) {
8241
+ setValueByPath(toObject, ['items'], fromItems);
8242
+ }
8243
+ const fromMaxItems = getValueByPath(fromObject, ['maxItems']);
8244
+ if (fromMaxItems != null) {
8245
+ setValueByPath(toObject, ['maxItems'], fromMaxItems);
8246
+ }
8247
+ const fromMaxLength = getValueByPath(fromObject, ['maxLength']);
8248
+ if (fromMaxLength != null) {
8249
+ setValueByPath(toObject, ['maxLength'], fromMaxLength);
8250
+ }
8251
+ const fromMaxProperties = getValueByPath(fromObject, [
8252
+ 'maxProperties',
8253
+ ]);
8254
+ if (fromMaxProperties != null) {
8255
+ setValueByPath(toObject, ['maxProperties'], fromMaxProperties);
8256
+ }
8257
+ const fromMaximum = getValueByPath(fromObject, ['maximum']);
8258
+ if (fromMaximum != null) {
8259
+ setValueByPath(toObject, ['maximum'], fromMaximum);
8260
+ }
8261
+ const fromMinItems = getValueByPath(fromObject, ['minItems']);
8262
+ if (fromMinItems != null) {
8263
+ setValueByPath(toObject, ['minItems'], fromMinItems);
8264
+ }
8265
+ const fromMinLength = getValueByPath(fromObject, ['minLength']);
8266
+ if (fromMinLength != null) {
8267
+ setValueByPath(toObject, ['minLength'], fromMinLength);
8268
+ }
8269
+ const fromMinProperties = getValueByPath(fromObject, [
8270
+ 'minProperties',
8271
+ ]);
8272
+ if (fromMinProperties != null) {
8273
+ setValueByPath(toObject, ['minProperties'], fromMinProperties);
8274
+ }
8275
+ const fromMinimum = getValueByPath(fromObject, ['minimum']);
8276
+ if (fromMinimum != null) {
8277
+ setValueByPath(toObject, ['minimum'], fromMinimum);
8278
+ }
8279
+ const fromNullable = getValueByPath(fromObject, ['nullable']);
8280
+ if (fromNullable != null) {
8281
+ setValueByPath(toObject, ['nullable'], fromNullable);
8282
+ }
8283
+ const fromPattern = getValueByPath(fromObject, ['pattern']);
8284
+ if (fromPattern != null) {
8285
+ setValueByPath(toObject, ['pattern'], fromPattern);
8286
+ }
8287
+ const fromProperties = getValueByPath(fromObject, ['properties']);
8288
+ if (fromProperties != null) {
8289
+ setValueByPath(toObject, ['properties'], fromProperties);
8290
+ }
8291
+ const fromPropertyOrdering = getValueByPath(fromObject, [
8292
+ 'propertyOrdering',
8293
+ ]);
8294
+ if (fromPropertyOrdering != null) {
8295
+ setValueByPath(toObject, ['propertyOrdering'], fromPropertyOrdering);
8296
+ }
8297
+ const fromRequired = getValueByPath(fromObject, ['required']);
8298
+ if (fromRequired != null) {
8299
+ setValueByPath(toObject, ['required'], fromRequired);
8300
+ }
8301
+ const fromTitle = getValueByPath(fromObject, ['title']);
8302
+ if (fromTitle != null) {
8303
+ setValueByPath(toObject, ['title'], fromTitle);
8304
+ }
8305
+ const fromType = getValueByPath(fromObject, ['type']);
8306
+ if (fromType != null) {
8307
+ setValueByPath(toObject, ['type'], fromType);
8308
+ }
8309
+ return toObject;
8310
+ }
8005
8311
  function modelSelectionConfigToVertex(apiClient, fromObject) {
8006
8312
  const toObject = {};
8007
8313
  const fromFeatureSelectionPreference = getValueByPath(fromObject, [
@@ -8230,6 +8536,10 @@ function retrievalConfigToVertex(apiClient, fromObject) {
8230
8536
  if (fromLatLng != null) {
8231
8537
  setValueByPath(toObject, ['latLng'], latLngToVertex(apiClient, fromLatLng));
8232
8538
  }
8539
+ const fromLanguageCode = getValueByPath(fromObject, ['languageCode']);
8540
+ if (fromLanguageCode != null) {
8541
+ setValueByPath(toObject, ['languageCode'], fromLanguageCode);
8542
+ }
8233
8543
  return toObject;
8234
8544
  }
8235
8545
  function toolConfigToVertex(apiClient, fromObject) {
@@ -8371,7 +8681,7 @@ function generateContentConfigToVertex(apiClient, fromObject, parentObject) {
8371
8681
  'responseSchema',
8372
8682
  ]);
8373
8683
  if (fromResponseSchema != null) {
8374
- setValueByPath(toObject, ['responseSchema'], tSchema(apiClient, fromResponseSchema));
8684
+ setValueByPath(toObject, ['responseSchema'], schemaToVertex(apiClient, tSchema(apiClient, fromResponseSchema)));
8375
8685
  }
8376
8686
  const fromRoutingConfig = getValueByPath(fromObject, [
8377
8687
  'routingConfig',
@@ -9103,6 +9413,12 @@ function generateVideosConfigToVertex(apiClient, fromObject, parentObject) {
9103
9413
  if (parentObject !== undefined && fromEnhancePrompt != null) {
9104
9414
  setValueByPath(parentObject, ['parameters', 'enhancePrompt'], fromEnhancePrompt);
9105
9415
  }
9416
+ const fromGenerateAudio = getValueByPath(fromObject, [
9417
+ 'generateAudio',
9418
+ ]);
9419
+ if (parentObject !== undefined && fromGenerateAudio != null) {
9420
+ setValueByPath(parentObject, ['parameters', 'generateAudio'], fromGenerateAudio);
9421
+ }
9106
9422
  return toObject;
9107
9423
  }
9108
9424
  function generateVideosParametersToVertex(apiClient, fromObject) {
@@ -9153,6 +9469,18 @@ function blobFromMldev(apiClient, fromObject) {
9153
9469
  }
9154
9470
  return toObject;
9155
9471
  }
9472
+ function fileDataFromMldev(apiClient, fromObject) {
9473
+ const toObject = {};
9474
+ const fromFileUri = getValueByPath(fromObject, ['fileUri']);
9475
+ if (fromFileUri != null) {
9476
+ setValueByPath(toObject, ['fileUri'], fromFileUri);
9477
+ }
9478
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
9479
+ if (fromMimeType != null) {
9480
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
9481
+ }
9482
+ return toObject;
9483
+ }
9156
9484
  function partFromMldev(apiClient, fromObject) {
9157
9485
  const toObject = {};
9158
9486
  const fromVideoMetadata = getValueByPath(fromObject, [
@@ -9169,6 +9497,10 @@ function partFromMldev(apiClient, fromObject) {
9169
9497
  if (fromInlineData != null) {
9170
9498
  setValueByPath(toObject, ['inlineData'], blobFromMldev(apiClient, fromInlineData));
9171
9499
  }
9500
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
9501
+ if (fromFileData != null) {
9502
+ setValueByPath(toObject, ['fileData'], fileDataFromMldev(apiClient, fromFileData));
9503
+ }
9172
9504
  const fromCodeExecutionResult = getValueByPath(fromObject, [
9173
9505
  'codeExecutionResult',
9174
9506
  ]);
@@ -9181,10 +9513,6 @@ function partFromMldev(apiClient, fromObject) {
9181
9513
  if (fromExecutableCode != null) {
9182
9514
  setValueByPath(toObject, ['executableCode'], fromExecutableCode);
9183
9515
  }
9184
- const fromFileData = getValueByPath(fromObject, ['fileData']);
9185
- if (fromFileData != null) {
9186
- setValueByPath(toObject, ['fileData'], fromFileData);
9187
- }
9188
9516
  const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
9189
9517
  if (fromFunctionCall != null) {
9190
9518
  setValueByPath(toObject, ['functionCall'], fromFunctionCall);
@@ -9655,6 +9983,22 @@ function blobFromVertex(apiClient, fromObject) {
9655
9983
  }
9656
9984
  return toObject;
9657
9985
  }
9986
+ function fileDataFromVertex(apiClient, fromObject) {
9987
+ const toObject = {};
9988
+ const fromDisplayName = getValueByPath(fromObject, ['displayName']);
9989
+ if (fromDisplayName != null) {
9990
+ setValueByPath(toObject, ['displayName'], fromDisplayName);
9991
+ }
9992
+ const fromFileUri = getValueByPath(fromObject, ['fileUri']);
9993
+ if (fromFileUri != null) {
9994
+ setValueByPath(toObject, ['fileUri'], fromFileUri);
9995
+ }
9996
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
9997
+ if (fromMimeType != null) {
9998
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
9999
+ }
10000
+ return toObject;
10001
+ }
9658
10002
  function partFromVertex(apiClient, fromObject) {
9659
10003
  const toObject = {};
9660
10004
  const fromVideoMetadata = getValueByPath(fromObject, [
@@ -9671,6 +10015,10 @@ function partFromVertex(apiClient, fromObject) {
9671
10015
  if (fromInlineData != null) {
9672
10016
  setValueByPath(toObject, ['inlineData'], blobFromVertex(apiClient, fromInlineData));
9673
10017
  }
10018
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
10019
+ if (fromFileData != null) {
10020
+ setValueByPath(toObject, ['fileData'], fileDataFromVertex(apiClient, fromFileData));
10021
+ }
9674
10022
  const fromCodeExecutionResult = getValueByPath(fromObject, [
9675
10023
  'codeExecutionResult',
9676
10024
  ]);
@@ -9683,10 +10031,6 @@ function partFromVertex(apiClient, fromObject) {
9683
10031
  if (fromExecutableCode != null) {
9684
10032
  setValueByPath(toObject, ['executableCode'], fromExecutableCode);
9685
10033
  }
9686
- const fromFileData = getValueByPath(fromObject, ['fileData']);
9687
- if (fromFileData != null) {
9688
- setValueByPath(toObject, ['fileData'], fromFileData);
9689
- }
9690
10034
  const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
9691
10035
  if (fromFunctionCall != null) {
9692
10036
  setValueByPath(toObject, ['functionCall'], fromFunctionCall);
@@ -10217,7 +10561,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
10217
10561
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
10218
10562
  const USER_AGENT_HEADER = 'User-Agent';
10219
10563
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
10220
- const SDK_VERSION = '1.0.1'; // x-release-please-version
10564
+ const SDK_VERSION = '1.2.0'; // x-release-please-version
10221
10565
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
10222
10566
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
10223
10567
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
@@ -10753,9 +11097,6 @@ function hasMcpToolUsage(tools) {
10753
11097
  function setMcpUsageHeader(headers) {
10754
11098
  var _a;
10755
11099
  const existingHeader = (_a = headers[GOOGLE_API_CLIENT_HEADER]) !== null && _a !== void 0 ? _a : '';
10756
- if (existingHeader.includes(MCP_LABEL)) {
10757
- return;
10758
- }
10759
11100
  headers[GOOGLE_API_CLIENT_HEADER] = (existingHeader + ` ${MCP_LABEL}`).trimStart();
10760
11101
  }
10761
11102
  // Checks whether the list of tools contains any MCP clients. Will return true
@@ -13703,6 +14044,12 @@ function tuningJobFromMldev(apiClient, fromObject) {
13703
14044
  if (fromPipelineJob != null) {
13704
14045
  setValueByPath(toObject, ['pipelineJob'], fromPipelineJob);
13705
14046
  }
14047
+ const fromServiceAccount = getValueByPath(fromObject, [
14048
+ 'serviceAccount',
14049
+ ]);
14050
+ if (fromServiceAccount != null) {
14051
+ setValueByPath(toObject, ['serviceAccount'], fromServiceAccount);
14052
+ }
13706
14053
  const fromTunedModelDisplayName = getValueByPath(fromObject, [
13707
14054
  'tunedModelDisplayName',
13708
14055
  ]);
@@ -13877,6 +14224,12 @@ function tuningJobFromVertex(apiClient, fromObject) {
13877
14224
  if (fromPipelineJob != null) {
13878
14225
  setValueByPath(toObject, ['pipelineJob'], fromPipelineJob);
13879
14226
  }
14227
+ const fromServiceAccount = getValueByPath(fromObject, [
14228
+ 'serviceAccount',
14229
+ ]);
14230
+ if (fromServiceAccount != null) {
14231
+ setValueByPath(toObject, ['serviceAccount'], fromServiceAccount);
14232
+ }
13880
14233
  const fromTunedModelDisplayName = getValueByPath(fromObject, [
13881
14234
  'tunedModelDisplayName',
13882
14235
  ]);
@@ -14541,5 +14894,5 @@ function stringToBoolean(str) {
14541
14894
  return str.toLowerCase() === 'true';
14542
14895
  }
14543
14896
 
14544
- export { ActivityHandling, AdapterSize, AuthType, Behavior, BlockedReason, Caches, Chat, Chats, ComputeTokensResponse, ControlReferenceImage, ControlReferenceType, CountTokensResponse, CreateFileResponse, DeleteCachedContentResponse, DeleteFileResponse, DeleteModelResponse, DynamicRetrievalConfigMode, EditImageResponse, EditMode, EmbedContentResponse, EndSensitivity, FeatureSelectionPreference, FileSource, FileState, Files, FinishReason, FunctionCallingConfigMode, FunctionResponse, FunctionResponseScheduling, GenerateContentResponse, GenerateContentResponsePromptFeedback, GenerateContentResponseUsageMetadata, GenerateImagesResponse, GenerateVideosResponse, GoogleGenAI, HarmBlockMethod, HarmBlockThreshold, HarmCategory, HarmProbability, HarmSeverity, HttpResponse, ImagePromptLanguage, JobState, Language, ListCachedContentsResponse, ListFilesResponse, ListModelsResponse, ListTuningJobsResponse, Live, LiveClientToolResponse, LiveMusicPlaybackControl, LiveMusicServerMessage, LiveSendToolResponseParameters, LiveServerMessage, MaskReferenceImage, MaskReferenceMode, MediaModality, MediaResolution, Modality, Mode, Models, MusicGenerationMode, Operations, Outcome, PagedItem, Pager, PersonGeneration, RawReferenceImage, ReplayResponse, SafetyFilterLevel, Scale, Session, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, TrafficType, TurnCoverage, Type, UpscaleImageResponse, UrlRetrievalStatus, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
14897
+ export { ActivityHandling, AdapterSize, AuthType, Behavior, BlockedReason, Caches, Chat, Chats, ComputeTokensResponse, ControlReferenceImage, ControlReferenceType, CountTokensResponse, CreateFileResponse, DeleteCachedContentResponse, DeleteFileResponse, DeleteModelResponse, DynamicRetrievalConfigMode, EditImageResponse, EditMode, EmbedContentResponse, EndSensitivity, FeatureSelectionPreference, FileSource, FileState, Files, FinishReason, FunctionCallingConfigMode, FunctionResponse, FunctionResponseScheduling, GenerateContentResponse, GenerateContentResponsePromptFeedback, GenerateContentResponseUsageMetadata, GenerateImagesResponse, GenerateVideosResponse, GoogleGenAI, HarmBlockMethod, HarmBlockThreshold, HarmCategory, HarmProbability, HarmSeverity, HttpResponse, ImagePromptLanguage, JobState, Language, ListCachedContentsResponse, ListFilesResponse, ListModelsResponse, ListTuningJobsResponse, Live, LiveClientToolResponse, LiveMusicPlaybackControl, LiveMusicServerMessage, LiveSendToolResponseParameters, LiveServerMessage, MaskReferenceImage, MaskReferenceMode, MediaModality, MediaResolution, Modality, Mode, Models, Operations, Outcome, PagedItem, Pager, PersonGeneration, RawReferenceImage, ReplayResponse, SafetyFilterLevel, Scale, Session, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, TrafficType, TurnCoverage, Type, UpscaleImageResponse, UrlRetrievalStatus, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
14545
14898
  //# sourceMappingURL=index.mjs.map