@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.
@@ -225,6 +225,42 @@ var Language;
225
225
  */
226
226
  Language["PYTHON"] = "PYTHON";
227
227
  })(Language || (Language = {}));
228
+ /** Optional. The type of the data. */
229
+ var Type;
230
+ (function (Type) {
231
+ /**
232
+ * Not specified, should not be used.
233
+ */
234
+ Type["TYPE_UNSPECIFIED"] = "TYPE_UNSPECIFIED";
235
+ /**
236
+ * OpenAPI string type
237
+ */
238
+ Type["STRING"] = "STRING";
239
+ /**
240
+ * OpenAPI number type
241
+ */
242
+ Type["NUMBER"] = "NUMBER";
243
+ /**
244
+ * OpenAPI integer type
245
+ */
246
+ Type["INTEGER"] = "INTEGER";
247
+ /**
248
+ * OpenAPI boolean type
249
+ */
250
+ Type["BOOLEAN"] = "BOOLEAN";
251
+ /**
252
+ * OpenAPI array type
253
+ */
254
+ Type["ARRAY"] = "ARRAY";
255
+ /**
256
+ * OpenAPI object type
257
+ */
258
+ Type["OBJECT"] = "OBJECT";
259
+ /**
260
+ * Null type
261
+ */
262
+ Type["NULL"] = "NULL";
263
+ })(Type || (Type = {}));
228
264
  /** Required. Harm category. */
229
265
  var HarmCategory;
230
266
  (function (HarmCategory) {
@@ -249,7 +285,7 @@ var HarmCategory;
249
285
  */
250
286
  HarmCategory["HARM_CATEGORY_SEXUALLY_EXPLICIT"] = "HARM_CATEGORY_SEXUALLY_EXPLICIT";
251
287
  /**
252
- * The harm category is civic integrity.
288
+ * Deprecated: Election filter is not longer supported. The harm category is civic integrity.
253
289
  */
254
290
  HarmCategory["HARM_CATEGORY_CIVIC_INTEGRITY"] = "HARM_CATEGORY_CIVIC_INTEGRITY";
255
291
  })(HarmCategory || (HarmCategory = {}));
@@ -297,38 +333,6 @@ var HarmBlockThreshold;
297
333
  */
298
334
  HarmBlockThreshold["OFF"] = "OFF";
299
335
  })(HarmBlockThreshold || (HarmBlockThreshold = {}));
300
- /** Optional. The type of the data. */
301
- var Type;
302
- (function (Type) {
303
- /**
304
- * Not specified, should not be used.
305
- */
306
- Type["TYPE_UNSPECIFIED"] = "TYPE_UNSPECIFIED";
307
- /**
308
- * OpenAPI string type
309
- */
310
- Type["STRING"] = "STRING";
311
- /**
312
- * OpenAPI number type
313
- */
314
- Type["NUMBER"] = "NUMBER";
315
- /**
316
- * OpenAPI integer type
317
- */
318
- Type["INTEGER"] = "INTEGER";
319
- /**
320
- * OpenAPI boolean type
321
- */
322
- Type["BOOLEAN"] = "BOOLEAN";
323
- /**
324
- * OpenAPI array type
325
- */
326
- Type["ARRAY"] = "ARRAY";
327
- /**
328
- * OpenAPI object type
329
- */
330
- Type["OBJECT"] = "OBJECT";
331
- })(Type || (Type = {}));
332
336
  /** The mode of the predictor to be used in dynamic retrieval. */
333
337
  var Mode;
334
338
  (function (Mode) {
@@ -529,7 +533,7 @@ var Modality;
529
533
  */
530
534
  Modality["IMAGE"] = "IMAGE";
531
535
  /**
532
- * Indicates the model should return images.
536
+ * Indicates the model should return audio.
533
537
  */
534
538
  Modality["AUDIO"] = "AUDIO";
535
539
  })(Modality || (Modality = {}));
@@ -953,24 +957,6 @@ var Scale;
953
957
  */
954
958
  Scale["B_MAJOR_A_FLAT_MINOR"] = "B_MAJOR_A_FLAT_MINOR";
955
959
  })(Scale || (Scale = {}));
956
- /** The mode of music generation. */
957
- var MusicGenerationMode;
958
- (function (MusicGenerationMode) {
959
- /**
960
- * This value is unused.
961
- */
962
- MusicGenerationMode["MUSIC_GENERATION_MODE_UNSPECIFIED"] = "MUSIC_GENERATION_MODE_UNSPECIFIED";
963
- /**
964
- * Steer text prompts to regions of latent space with higher quality
965
- music.
966
- */
967
- MusicGenerationMode["QUALITY"] = "QUALITY";
968
- /**
969
- * Steer text prompts to regions of latent space with a larger diversity
970
- of music.
971
- */
972
- MusicGenerationMode["DIVERSITY"] = "DIVERSITY";
973
- })(MusicGenerationMode || (MusicGenerationMode = {}));
974
960
  /** The playback control signal to apply to the music generation. */
975
961
  var LiveMusicPlaybackControl;
976
962
  (function (LiveMusicPlaybackControl) {
@@ -2468,6 +2454,21 @@ function blobToMldev$2(apiClient, fromObject) {
2468
2454
  }
2469
2455
  return toObject;
2470
2456
  }
2457
+ function fileDataToMldev$2(apiClient, fromObject) {
2458
+ const toObject = {};
2459
+ if (getValueByPath(fromObject, ['displayName']) !== undefined) {
2460
+ throw new Error('displayName parameter is not supported in Gemini API.');
2461
+ }
2462
+ const fromFileUri = getValueByPath(fromObject, ['fileUri']);
2463
+ if (fromFileUri != null) {
2464
+ setValueByPath(toObject, ['fileUri'], fromFileUri);
2465
+ }
2466
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
2467
+ if (fromMimeType != null) {
2468
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
2469
+ }
2470
+ return toObject;
2471
+ }
2471
2472
  function partToMldev$2(apiClient, fromObject) {
2472
2473
  const toObject = {};
2473
2474
  const fromVideoMetadata = getValueByPath(fromObject, [
@@ -2484,6 +2485,10 @@ function partToMldev$2(apiClient, fromObject) {
2484
2485
  if (fromInlineData != null) {
2485
2486
  setValueByPath(toObject, ['inlineData'], blobToMldev$2(apiClient, fromInlineData));
2486
2487
  }
2488
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
2489
+ if (fromFileData != null) {
2490
+ setValueByPath(toObject, ['fileData'], fileDataToMldev$2(apiClient, fromFileData));
2491
+ }
2487
2492
  const fromCodeExecutionResult = getValueByPath(fromObject, [
2488
2493
  'codeExecutionResult',
2489
2494
  ]);
@@ -2496,10 +2501,6 @@ function partToMldev$2(apiClient, fromObject) {
2496
2501
  if (fromExecutableCode != null) {
2497
2502
  setValueByPath(toObject, ['executableCode'], fromExecutableCode);
2498
2503
  }
2499
- const fromFileData = getValueByPath(fromObject, ['fileData']);
2500
- if (fromFileData != null) {
2501
- setValueByPath(toObject, ['fileData'], fromFileData);
2502
- }
2503
2504
  const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
2504
2505
  if (fromFunctionCall != null) {
2505
2506
  setValueByPath(toObject, ['functionCall'], fromFunctionCall);
@@ -2685,6 +2686,10 @@ function retrievalConfigToMldev$1(apiClient, fromObject) {
2685
2686
  if (fromLatLng != null) {
2686
2687
  setValueByPath(toObject, ['latLng'], latLngToMldev$1(apiClient, fromLatLng));
2687
2688
  }
2689
+ const fromLanguageCode = getValueByPath(fromObject, ['languageCode']);
2690
+ if (fromLanguageCode != null) {
2691
+ setValueByPath(toObject, ['languageCode'], fromLanguageCode);
2692
+ }
2688
2693
  return toObject;
2689
2694
  }
2690
2695
  function toolConfigToMldev$1(apiClient, fromObject) {
@@ -2864,6 +2869,22 @@ function blobToVertex$2(apiClient, fromObject) {
2864
2869
  }
2865
2870
  return toObject;
2866
2871
  }
2872
+ function fileDataToVertex$2(apiClient, fromObject) {
2873
+ const toObject = {};
2874
+ const fromDisplayName = getValueByPath(fromObject, ['displayName']);
2875
+ if (fromDisplayName != null) {
2876
+ setValueByPath(toObject, ['displayName'], fromDisplayName);
2877
+ }
2878
+ const fromFileUri = getValueByPath(fromObject, ['fileUri']);
2879
+ if (fromFileUri != null) {
2880
+ setValueByPath(toObject, ['fileUri'], fromFileUri);
2881
+ }
2882
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
2883
+ if (fromMimeType != null) {
2884
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
2885
+ }
2886
+ return toObject;
2887
+ }
2867
2888
  function partToVertex$2(apiClient, fromObject) {
2868
2889
  const toObject = {};
2869
2890
  const fromVideoMetadata = getValueByPath(fromObject, [
@@ -2880,6 +2901,10 @@ function partToVertex$2(apiClient, fromObject) {
2880
2901
  if (fromInlineData != null) {
2881
2902
  setValueByPath(toObject, ['inlineData'], blobToVertex$2(apiClient, fromInlineData));
2882
2903
  }
2904
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
2905
+ if (fromFileData != null) {
2906
+ setValueByPath(toObject, ['fileData'], fileDataToVertex$2(apiClient, fromFileData));
2907
+ }
2883
2908
  const fromCodeExecutionResult = getValueByPath(fromObject, [
2884
2909
  'codeExecutionResult',
2885
2910
  ]);
@@ -2892,10 +2917,6 @@ function partToVertex$2(apiClient, fromObject) {
2892
2917
  if (fromExecutableCode != null) {
2893
2918
  setValueByPath(toObject, ['executableCode'], fromExecutableCode);
2894
2919
  }
2895
- const fromFileData = getValueByPath(fromObject, ['fileData']);
2896
- if (fromFileData != null) {
2897
- setValueByPath(toObject, ['fileData'], fromFileData);
2898
- }
2899
2920
  const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
2900
2921
  if (fromFunctionCall != null) {
2901
2922
  setValueByPath(toObject, ['functionCall'], fromFunctionCall);
@@ -3132,6 +3153,10 @@ function retrievalConfigToVertex$1(apiClient, fromObject) {
3132
3153
  if (fromLatLng != null) {
3133
3154
  setValueByPath(toObject, ['latLng'], latLngToVertex$1(apiClient, fromLatLng));
3134
3155
  }
3156
+ const fromLanguageCode = getValueByPath(fromObject, ['languageCode']);
3157
+ if (fromLanguageCode != null) {
3158
+ setValueByPath(toObject, ['languageCode'], fromLanguageCode);
3159
+ }
3135
3160
  return toObject;
3136
3161
  }
3137
3162
  function toolConfigToVertex$1(apiClient, fromObject) {
@@ -5018,6 +5043,37 @@ function blobToVertex$1(apiClient, fromObject) {
5018
5043
  }
5019
5044
  return toObject;
5020
5045
  }
5046
+ function fileDataToMldev$1(apiClient, fromObject) {
5047
+ const toObject = {};
5048
+ if (getValueByPath(fromObject, ['displayName']) !== undefined) {
5049
+ throw new Error('displayName parameter is not supported in Gemini API.');
5050
+ }
5051
+ const fromFileUri = getValueByPath(fromObject, ['fileUri']);
5052
+ if (fromFileUri != null) {
5053
+ setValueByPath(toObject, ['fileUri'], fromFileUri);
5054
+ }
5055
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
5056
+ if (fromMimeType != null) {
5057
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
5058
+ }
5059
+ return toObject;
5060
+ }
5061
+ function fileDataToVertex$1(apiClient, fromObject) {
5062
+ const toObject = {};
5063
+ const fromDisplayName = getValueByPath(fromObject, ['displayName']);
5064
+ if (fromDisplayName != null) {
5065
+ setValueByPath(toObject, ['displayName'], fromDisplayName);
5066
+ }
5067
+ const fromFileUri = getValueByPath(fromObject, ['fileUri']);
5068
+ if (fromFileUri != null) {
5069
+ setValueByPath(toObject, ['fileUri'], fromFileUri);
5070
+ }
5071
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
5072
+ if (fromMimeType != null) {
5073
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
5074
+ }
5075
+ return toObject;
5076
+ }
5021
5077
  function partToMldev$1(apiClient, fromObject) {
5022
5078
  const toObject = {};
5023
5079
  const fromVideoMetadata = getValueByPath(fromObject, [
@@ -5034,6 +5090,10 @@ function partToMldev$1(apiClient, fromObject) {
5034
5090
  if (fromInlineData != null) {
5035
5091
  setValueByPath(toObject, ['inlineData'], blobToMldev$1(apiClient, fromInlineData));
5036
5092
  }
5093
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
5094
+ if (fromFileData != null) {
5095
+ setValueByPath(toObject, ['fileData'], fileDataToMldev$1(apiClient, fromFileData));
5096
+ }
5037
5097
  const fromCodeExecutionResult = getValueByPath(fromObject, [
5038
5098
  'codeExecutionResult',
5039
5099
  ]);
@@ -5046,10 +5106,6 @@ function partToMldev$1(apiClient, fromObject) {
5046
5106
  if (fromExecutableCode != null) {
5047
5107
  setValueByPath(toObject, ['executableCode'], fromExecutableCode);
5048
5108
  }
5049
- const fromFileData = getValueByPath(fromObject, ['fileData']);
5050
- if (fromFileData != null) {
5051
- setValueByPath(toObject, ['fileData'], fromFileData);
5052
- }
5053
5109
  const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
5054
5110
  if (fromFunctionCall != null) {
5055
5111
  setValueByPath(toObject, ['functionCall'], fromFunctionCall);
@@ -5082,6 +5138,10 @@ function partToVertex$1(apiClient, fromObject) {
5082
5138
  if (fromInlineData != null) {
5083
5139
  setValueByPath(toObject, ['inlineData'], blobToVertex$1(apiClient, fromInlineData));
5084
5140
  }
5141
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
5142
+ if (fromFileData != null) {
5143
+ setValueByPath(toObject, ['fileData'], fileDataToVertex$1(apiClient, fromFileData));
5144
+ }
5085
5145
  const fromCodeExecutionResult = getValueByPath(fromObject, [
5086
5146
  'codeExecutionResult',
5087
5147
  ]);
@@ -5094,10 +5154,6 @@ function partToVertex$1(apiClient, fromObject) {
5094
5154
  if (fromExecutableCode != null) {
5095
5155
  setValueByPath(toObject, ['executableCode'], fromExecutableCode);
5096
5156
  }
5097
- const fromFileData = getValueByPath(fromObject, ['fileData']);
5098
- if (fromFileData != null) {
5099
- setValueByPath(toObject, ['fileData'], fromFileData);
5100
- }
5101
5157
  const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
5102
5158
  if (fromFunctionCall != null) {
5103
5159
  setValueByPath(toObject, ['functionCall'], fromFunctionCall);
@@ -6035,12 +6091,6 @@ function liveMusicGenerationConfigToMldev(apiClient, fromObject) {
6035
6091
  if (fromOnlyBassAndDrums != null) {
6036
6092
  setValueByPath(toObject, ['onlyBassAndDrums'], fromOnlyBassAndDrums);
6037
6093
  }
6038
- const fromMusicGenerationMode = getValueByPath(fromObject, [
6039
- 'musicGenerationMode',
6040
- ]);
6041
- if (fromMusicGenerationMode != null) {
6042
- setValueByPath(toObject, ['musicGenerationMode'], fromMusicGenerationMode);
6043
- }
6044
6094
  return toObject;
6045
6095
  }
6046
6096
  function liveMusicSetConfigParametersToMldev(apiClient, fromObject) {
@@ -6171,6 +6221,34 @@ function blobFromVertex$1(apiClient, fromObject) {
6171
6221
  }
6172
6222
  return toObject;
6173
6223
  }
6224
+ function fileDataFromMldev$1(apiClient, fromObject) {
6225
+ const toObject = {};
6226
+ const fromFileUri = getValueByPath(fromObject, ['fileUri']);
6227
+ if (fromFileUri != null) {
6228
+ setValueByPath(toObject, ['fileUri'], fromFileUri);
6229
+ }
6230
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
6231
+ if (fromMimeType != null) {
6232
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
6233
+ }
6234
+ return toObject;
6235
+ }
6236
+ function fileDataFromVertex$1(apiClient, fromObject) {
6237
+ const toObject = {};
6238
+ const fromDisplayName = getValueByPath(fromObject, ['displayName']);
6239
+ if (fromDisplayName != null) {
6240
+ setValueByPath(toObject, ['displayName'], fromDisplayName);
6241
+ }
6242
+ const fromFileUri = getValueByPath(fromObject, ['fileUri']);
6243
+ if (fromFileUri != null) {
6244
+ setValueByPath(toObject, ['fileUri'], fromFileUri);
6245
+ }
6246
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
6247
+ if (fromMimeType != null) {
6248
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
6249
+ }
6250
+ return toObject;
6251
+ }
6174
6252
  function partFromMldev$1(apiClient, fromObject) {
6175
6253
  const toObject = {};
6176
6254
  const fromVideoMetadata = getValueByPath(fromObject, [
@@ -6187,6 +6265,10 @@ function partFromMldev$1(apiClient, fromObject) {
6187
6265
  if (fromInlineData != null) {
6188
6266
  setValueByPath(toObject, ['inlineData'], blobFromMldev$1(apiClient, fromInlineData));
6189
6267
  }
6268
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
6269
+ if (fromFileData != null) {
6270
+ setValueByPath(toObject, ['fileData'], fileDataFromMldev$1(apiClient, fromFileData));
6271
+ }
6190
6272
  const fromCodeExecutionResult = getValueByPath(fromObject, [
6191
6273
  'codeExecutionResult',
6192
6274
  ]);
@@ -6199,10 +6281,6 @@ function partFromMldev$1(apiClient, fromObject) {
6199
6281
  if (fromExecutableCode != null) {
6200
6282
  setValueByPath(toObject, ['executableCode'], fromExecutableCode);
6201
6283
  }
6202
- const fromFileData = getValueByPath(fromObject, ['fileData']);
6203
- if (fromFileData != null) {
6204
- setValueByPath(toObject, ['fileData'], fromFileData);
6205
- }
6206
6284
  const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
6207
6285
  if (fromFunctionCall != null) {
6208
6286
  setValueByPath(toObject, ['functionCall'], fromFunctionCall);
@@ -6235,6 +6313,10 @@ function partFromVertex$1(apiClient, fromObject) {
6235
6313
  if (fromInlineData != null) {
6236
6314
  setValueByPath(toObject, ['inlineData'], blobFromVertex$1(apiClient, fromInlineData));
6237
6315
  }
6316
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
6317
+ if (fromFileData != null) {
6318
+ setValueByPath(toObject, ['fileData'], fileDataFromVertex$1(apiClient, fromFileData));
6319
+ }
6238
6320
  const fromCodeExecutionResult = getValueByPath(fromObject, [
6239
6321
  'codeExecutionResult',
6240
6322
  ]);
@@ -6247,10 +6329,6 @@ function partFromVertex$1(apiClient, fromObject) {
6247
6329
  if (fromExecutableCode != null) {
6248
6330
  setValueByPath(toObject, ['executableCode'], fromExecutableCode);
6249
6331
  }
6250
- const fromFileData = getValueByPath(fromObject, ['fileData']);
6251
- if (fromFileData != null) {
6252
- setValueByPath(toObject, ['fileData'], fromFileData);
6253
- }
6254
6332
  const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
6255
6333
  if (fromFunctionCall != null) {
6256
6334
  setValueByPath(toObject, ['functionCall'], fromFunctionCall);
@@ -6937,12 +7015,6 @@ function liveMusicGenerationConfigFromMldev(apiClient, fromObject) {
6937
7015
  if (fromOnlyBassAndDrums != null) {
6938
7016
  setValueByPath(toObject, ['onlyBassAndDrums'], fromOnlyBassAndDrums);
6939
7017
  }
6940
- const fromMusicGenerationMode = getValueByPath(fromObject, [
6941
- 'musicGenerationMode',
6942
- ]);
6943
- if (fromMusicGenerationMode != null) {
6944
- setValueByPath(toObject, ['musicGenerationMode'], fromMusicGenerationMode);
6945
- }
6946
7018
  return toObject;
6947
7019
  }
6948
7020
  function liveMusicSourceMetadataFromMldev(apiClient, fromObject) {
@@ -7066,6 +7138,21 @@ function blobToMldev(apiClient, fromObject) {
7066
7138
  }
7067
7139
  return toObject;
7068
7140
  }
7141
+ function fileDataToMldev(apiClient, fromObject) {
7142
+ const toObject = {};
7143
+ if (getValueByPath(fromObject, ['displayName']) !== undefined) {
7144
+ throw new Error('displayName parameter is not supported in Gemini API.');
7145
+ }
7146
+ const fromFileUri = getValueByPath(fromObject, ['fileUri']);
7147
+ if (fromFileUri != null) {
7148
+ setValueByPath(toObject, ['fileUri'], fromFileUri);
7149
+ }
7150
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
7151
+ if (fromMimeType != null) {
7152
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
7153
+ }
7154
+ return toObject;
7155
+ }
7069
7156
  function partToMldev(apiClient, fromObject) {
7070
7157
  const toObject = {};
7071
7158
  const fromVideoMetadata = getValueByPath(fromObject, [
@@ -7082,6 +7169,10 @@ function partToMldev(apiClient, fromObject) {
7082
7169
  if (fromInlineData != null) {
7083
7170
  setValueByPath(toObject, ['inlineData'], blobToMldev(apiClient, fromInlineData));
7084
7171
  }
7172
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
7173
+ if (fromFileData != null) {
7174
+ setValueByPath(toObject, ['fileData'], fileDataToMldev(apiClient, fromFileData));
7175
+ }
7085
7176
  const fromCodeExecutionResult = getValueByPath(fromObject, [
7086
7177
  'codeExecutionResult',
7087
7178
  ]);
@@ -7094,10 +7185,6 @@ function partToMldev(apiClient, fromObject) {
7094
7185
  if (fromExecutableCode != null) {
7095
7186
  setValueByPath(toObject, ['executableCode'], fromExecutableCode);
7096
7187
  }
7097
- const fromFileData = getValueByPath(fromObject, ['fileData']);
7098
- if (fromFileData != null) {
7099
- setValueByPath(toObject, ['fileData'], fromFileData);
7100
- }
7101
7188
  const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
7102
7189
  if (fromFunctionCall != null) {
7103
7190
  setValueByPath(toObject, ['functionCall'], fromFunctionCall);
@@ -7132,6 +7219,104 @@ function contentToMldev(apiClient, fromObject) {
7132
7219
  }
7133
7220
  return toObject;
7134
7221
  }
7222
+ function schemaToMldev(apiClient, fromObject) {
7223
+ const toObject = {};
7224
+ const fromAnyOf = getValueByPath(fromObject, ['anyOf']);
7225
+ if (fromAnyOf != null) {
7226
+ setValueByPath(toObject, ['anyOf'], fromAnyOf);
7227
+ }
7228
+ const fromDefault = getValueByPath(fromObject, ['default']);
7229
+ if (fromDefault != null) {
7230
+ setValueByPath(toObject, ['default'], fromDefault);
7231
+ }
7232
+ const fromDescription = getValueByPath(fromObject, ['description']);
7233
+ if (fromDescription != null) {
7234
+ setValueByPath(toObject, ['description'], fromDescription);
7235
+ }
7236
+ const fromEnum = getValueByPath(fromObject, ['enum']);
7237
+ if (fromEnum != null) {
7238
+ setValueByPath(toObject, ['enum'], fromEnum);
7239
+ }
7240
+ const fromExample = getValueByPath(fromObject, ['example']);
7241
+ if (fromExample != null) {
7242
+ setValueByPath(toObject, ['example'], fromExample);
7243
+ }
7244
+ const fromFormat = getValueByPath(fromObject, ['format']);
7245
+ if (fromFormat != null) {
7246
+ setValueByPath(toObject, ['format'], fromFormat);
7247
+ }
7248
+ const fromItems = getValueByPath(fromObject, ['items']);
7249
+ if (fromItems != null) {
7250
+ setValueByPath(toObject, ['items'], fromItems);
7251
+ }
7252
+ const fromMaxItems = getValueByPath(fromObject, ['maxItems']);
7253
+ if (fromMaxItems != null) {
7254
+ setValueByPath(toObject, ['maxItems'], fromMaxItems);
7255
+ }
7256
+ const fromMaxLength = getValueByPath(fromObject, ['maxLength']);
7257
+ if (fromMaxLength != null) {
7258
+ setValueByPath(toObject, ['maxLength'], fromMaxLength);
7259
+ }
7260
+ const fromMaxProperties = getValueByPath(fromObject, [
7261
+ 'maxProperties',
7262
+ ]);
7263
+ if (fromMaxProperties != null) {
7264
+ setValueByPath(toObject, ['maxProperties'], fromMaxProperties);
7265
+ }
7266
+ const fromMaximum = getValueByPath(fromObject, ['maximum']);
7267
+ if (fromMaximum != null) {
7268
+ setValueByPath(toObject, ['maximum'], fromMaximum);
7269
+ }
7270
+ const fromMinItems = getValueByPath(fromObject, ['minItems']);
7271
+ if (fromMinItems != null) {
7272
+ setValueByPath(toObject, ['minItems'], fromMinItems);
7273
+ }
7274
+ const fromMinLength = getValueByPath(fromObject, ['minLength']);
7275
+ if (fromMinLength != null) {
7276
+ setValueByPath(toObject, ['minLength'], fromMinLength);
7277
+ }
7278
+ const fromMinProperties = getValueByPath(fromObject, [
7279
+ 'minProperties',
7280
+ ]);
7281
+ if (fromMinProperties != null) {
7282
+ setValueByPath(toObject, ['minProperties'], fromMinProperties);
7283
+ }
7284
+ const fromMinimum = getValueByPath(fromObject, ['minimum']);
7285
+ if (fromMinimum != null) {
7286
+ setValueByPath(toObject, ['minimum'], fromMinimum);
7287
+ }
7288
+ const fromNullable = getValueByPath(fromObject, ['nullable']);
7289
+ if (fromNullable != null) {
7290
+ setValueByPath(toObject, ['nullable'], fromNullable);
7291
+ }
7292
+ const fromPattern = getValueByPath(fromObject, ['pattern']);
7293
+ if (fromPattern != null) {
7294
+ setValueByPath(toObject, ['pattern'], fromPattern);
7295
+ }
7296
+ const fromProperties = getValueByPath(fromObject, ['properties']);
7297
+ if (fromProperties != null) {
7298
+ setValueByPath(toObject, ['properties'], fromProperties);
7299
+ }
7300
+ const fromPropertyOrdering = getValueByPath(fromObject, [
7301
+ 'propertyOrdering',
7302
+ ]);
7303
+ if (fromPropertyOrdering != null) {
7304
+ setValueByPath(toObject, ['propertyOrdering'], fromPropertyOrdering);
7305
+ }
7306
+ const fromRequired = getValueByPath(fromObject, ['required']);
7307
+ if (fromRequired != null) {
7308
+ setValueByPath(toObject, ['required'], fromRequired);
7309
+ }
7310
+ const fromTitle = getValueByPath(fromObject, ['title']);
7311
+ if (fromTitle != null) {
7312
+ setValueByPath(toObject, ['title'], fromTitle);
7313
+ }
7314
+ const fromType = getValueByPath(fromObject, ['type']);
7315
+ if (fromType != null) {
7316
+ setValueByPath(toObject, ['type'], fromType);
7317
+ }
7318
+ return toObject;
7319
+ }
7135
7320
  function safetySettingToMldev(apiClient, fromObject) {
7136
7321
  const toObject = {};
7137
7322
  if (getValueByPath(fromObject, ['method']) !== undefined) {
@@ -7298,6 +7483,10 @@ function retrievalConfigToMldev(apiClient, fromObject) {
7298
7483
  if (fromLatLng != null) {
7299
7484
  setValueByPath(toObject, ['latLng'], latLngToMldev(apiClient, fromLatLng));
7300
7485
  }
7486
+ const fromLanguageCode = getValueByPath(fromObject, ['languageCode']);
7487
+ if (fromLanguageCode != null) {
7488
+ setValueByPath(toObject, ['languageCode'], fromLanguageCode);
7489
+ }
7301
7490
  return toObject;
7302
7491
  }
7303
7492
  function toolConfigToMldev(apiClient, fromObject) {
@@ -7470,7 +7659,7 @@ function generateContentConfigToMldev(apiClient, fromObject, parentObject) {
7470
7659
  'responseSchema',
7471
7660
  ]);
7472
7661
  if (fromResponseSchema != null) {
7473
- setValueByPath(toObject, ['responseSchema'], tSchema(apiClient, fromResponseSchema));
7662
+ setValueByPath(toObject, ['responseSchema'], schemaToMldev(apiClient, tSchema(apiClient, fromResponseSchema)));
7474
7663
  }
7475
7664
  if (getValueByPath(fromObject, ['routingConfig']) !== undefined) {
7476
7665
  throw new Error('routingConfig parameter is not supported in Gemini API.');
@@ -7877,6 +8066,9 @@ function generateVideosConfigToMldev(apiClient, fromObject, parentObject) {
7877
8066
  if (getValueByPath(fromObject, ['enhancePrompt']) !== undefined) {
7878
8067
  throw new Error('enhancePrompt parameter is not supported in Gemini API.');
7879
8068
  }
8069
+ if (getValueByPath(fromObject, ['generateAudio']) !== undefined) {
8070
+ throw new Error('generateAudio parameter is not supported in Gemini API.');
8071
+ }
7880
8072
  return toObject;
7881
8073
  }
7882
8074
  function generateVideosParametersToMldev(apiClient, fromObject) {
@@ -7931,6 +8123,22 @@ function blobToVertex(apiClient, fromObject) {
7931
8123
  }
7932
8124
  return toObject;
7933
8125
  }
8126
+ function fileDataToVertex(apiClient, fromObject) {
8127
+ const toObject = {};
8128
+ const fromDisplayName = getValueByPath(fromObject, ['displayName']);
8129
+ if (fromDisplayName != null) {
8130
+ setValueByPath(toObject, ['displayName'], fromDisplayName);
8131
+ }
8132
+ const fromFileUri = getValueByPath(fromObject, ['fileUri']);
8133
+ if (fromFileUri != null) {
8134
+ setValueByPath(toObject, ['fileUri'], fromFileUri);
8135
+ }
8136
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
8137
+ if (fromMimeType != null) {
8138
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
8139
+ }
8140
+ return toObject;
8141
+ }
7934
8142
  function partToVertex(apiClient, fromObject) {
7935
8143
  const toObject = {};
7936
8144
  const fromVideoMetadata = getValueByPath(fromObject, [
@@ -7947,6 +8155,10 @@ function partToVertex(apiClient, fromObject) {
7947
8155
  if (fromInlineData != null) {
7948
8156
  setValueByPath(toObject, ['inlineData'], blobToVertex(apiClient, fromInlineData));
7949
8157
  }
8158
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
8159
+ if (fromFileData != null) {
8160
+ setValueByPath(toObject, ['fileData'], fileDataToVertex(apiClient, fromFileData));
8161
+ }
7950
8162
  const fromCodeExecutionResult = getValueByPath(fromObject, [
7951
8163
  'codeExecutionResult',
7952
8164
  ]);
@@ -7959,10 +8171,6 @@ function partToVertex(apiClient, fromObject) {
7959
8171
  if (fromExecutableCode != null) {
7960
8172
  setValueByPath(toObject, ['executableCode'], fromExecutableCode);
7961
8173
  }
7962
- const fromFileData = getValueByPath(fromObject, ['fileData']);
7963
- if (fromFileData != null) {
7964
- setValueByPath(toObject, ['fileData'], fromFileData);
7965
- }
7966
8174
  const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
7967
8175
  if (fromFunctionCall != null) {
7968
8176
  setValueByPath(toObject, ['functionCall'], fromFunctionCall);
@@ -7997,6 +8205,104 @@ function contentToVertex(apiClient, fromObject) {
7997
8205
  }
7998
8206
  return toObject;
7999
8207
  }
8208
+ function schemaToVertex(apiClient, fromObject) {
8209
+ const toObject = {};
8210
+ const fromAnyOf = getValueByPath(fromObject, ['anyOf']);
8211
+ if (fromAnyOf != null) {
8212
+ setValueByPath(toObject, ['anyOf'], fromAnyOf);
8213
+ }
8214
+ const fromDefault = getValueByPath(fromObject, ['default']);
8215
+ if (fromDefault != null) {
8216
+ setValueByPath(toObject, ['default'], fromDefault);
8217
+ }
8218
+ const fromDescription = getValueByPath(fromObject, ['description']);
8219
+ if (fromDescription != null) {
8220
+ setValueByPath(toObject, ['description'], fromDescription);
8221
+ }
8222
+ const fromEnum = getValueByPath(fromObject, ['enum']);
8223
+ if (fromEnum != null) {
8224
+ setValueByPath(toObject, ['enum'], fromEnum);
8225
+ }
8226
+ const fromExample = getValueByPath(fromObject, ['example']);
8227
+ if (fromExample != null) {
8228
+ setValueByPath(toObject, ['example'], fromExample);
8229
+ }
8230
+ const fromFormat = getValueByPath(fromObject, ['format']);
8231
+ if (fromFormat != null) {
8232
+ setValueByPath(toObject, ['format'], fromFormat);
8233
+ }
8234
+ const fromItems = getValueByPath(fromObject, ['items']);
8235
+ if (fromItems != null) {
8236
+ setValueByPath(toObject, ['items'], fromItems);
8237
+ }
8238
+ const fromMaxItems = getValueByPath(fromObject, ['maxItems']);
8239
+ if (fromMaxItems != null) {
8240
+ setValueByPath(toObject, ['maxItems'], fromMaxItems);
8241
+ }
8242
+ const fromMaxLength = getValueByPath(fromObject, ['maxLength']);
8243
+ if (fromMaxLength != null) {
8244
+ setValueByPath(toObject, ['maxLength'], fromMaxLength);
8245
+ }
8246
+ const fromMaxProperties = getValueByPath(fromObject, [
8247
+ 'maxProperties',
8248
+ ]);
8249
+ if (fromMaxProperties != null) {
8250
+ setValueByPath(toObject, ['maxProperties'], fromMaxProperties);
8251
+ }
8252
+ const fromMaximum = getValueByPath(fromObject, ['maximum']);
8253
+ if (fromMaximum != null) {
8254
+ setValueByPath(toObject, ['maximum'], fromMaximum);
8255
+ }
8256
+ const fromMinItems = getValueByPath(fromObject, ['minItems']);
8257
+ if (fromMinItems != null) {
8258
+ setValueByPath(toObject, ['minItems'], fromMinItems);
8259
+ }
8260
+ const fromMinLength = getValueByPath(fromObject, ['minLength']);
8261
+ if (fromMinLength != null) {
8262
+ setValueByPath(toObject, ['minLength'], fromMinLength);
8263
+ }
8264
+ const fromMinProperties = getValueByPath(fromObject, [
8265
+ 'minProperties',
8266
+ ]);
8267
+ if (fromMinProperties != null) {
8268
+ setValueByPath(toObject, ['minProperties'], fromMinProperties);
8269
+ }
8270
+ const fromMinimum = getValueByPath(fromObject, ['minimum']);
8271
+ if (fromMinimum != null) {
8272
+ setValueByPath(toObject, ['minimum'], fromMinimum);
8273
+ }
8274
+ const fromNullable = getValueByPath(fromObject, ['nullable']);
8275
+ if (fromNullable != null) {
8276
+ setValueByPath(toObject, ['nullable'], fromNullable);
8277
+ }
8278
+ const fromPattern = getValueByPath(fromObject, ['pattern']);
8279
+ if (fromPattern != null) {
8280
+ setValueByPath(toObject, ['pattern'], fromPattern);
8281
+ }
8282
+ const fromProperties = getValueByPath(fromObject, ['properties']);
8283
+ if (fromProperties != null) {
8284
+ setValueByPath(toObject, ['properties'], fromProperties);
8285
+ }
8286
+ const fromPropertyOrdering = getValueByPath(fromObject, [
8287
+ 'propertyOrdering',
8288
+ ]);
8289
+ if (fromPropertyOrdering != null) {
8290
+ setValueByPath(toObject, ['propertyOrdering'], fromPropertyOrdering);
8291
+ }
8292
+ const fromRequired = getValueByPath(fromObject, ['required']);
8293
+ if (fromRequired != null) {
8294
+ setValueByPath(toObject, ['required'], fromRequired);
8295
+ }
8296
+ const fromTitle = getValueByPath(fromObject, ['title']);
8297
+ if (fromTitle != null) {
8298
+ setValueByPath(toObject, ['title'], fromTitle);
8299
+ }
8300
+ const fromType = getValueByPath(fromObject, ['type']);
8301
+ if (fromType != null) {
8302
+ setValueByPath(toObject, ['type'], fromType);
8303
+ }
8304
+ return toObject;
8305
+ }
8000
8306
  function modelSelectionConfigToVertex(apiClient, fromObject) {
8001
8307
  const toObject = {};
8002
8308
  const fromFeatureSelectionPreference = getValueByPath(fromObject, [
@@ -8225,6 +8531,10 @@ function retrievalConfigToVertex(apiClient, fromObject) {
8225
8531
  if (fromLatLng != null) {
8226
8532
  setValueByPath(toObject, ['latLng'], latLngToVertex(apiClient, fromLatLng));
8227
8533
  }
8534
+ const fromLanguageCode = getValueByPath(fromObject, ['languageCode']);
8535
+ if (fromLanguageCode != null) {
8536
+ setValueByPath(toObject, ['languageCode'], fromLanguageCode);
8537
+ }
8228
8538
  return toObject;
8229
8539
  }
8230
8540
  function toolConfigToVertex(apiClient, fromObject) {
@@ -8366,7 +8676,7 @@ function generateContentConfigToVertex(apiClient, fromObject, parentObject) {
8366
8676
  'responseSchema',
8367
8677
  ]);
8368
8678
  if (fromResponseSchema != null) {
8369
- setValueByPath(toObject, ['responseSchema'], tSchema(apiClient, fromResponseSchema));
8679
+ setValueByPath(toObject, ['responseSchema'], schemaToVertex(apiClient, tSchema(apiClient, fromResponseSchema)));
8370
8680
  }
8371
8681
  const fromRoutingConfig = getValueByPath(fromObject, [
8372
8682
  'routingConfig',
@@ -9098,6 +9408,12 @@ function generateVideosConfigToVertex(apiClient, fromObject, parentObject) {
9098
9408
  if (parentObject !== undefined && fromEnhancePrompt != null) {
9099
9409
  setValueByPath(parentObject, ['parameters', 'enhancePrompt'], fromEnhancePrompt);
9100
9410
  }
9411
+ const fromGenerateAudio = getValueByPath(fromObject, [
9412
+ 'generateAudio',
9413
+ ]);
9414
+ if (parentObject !== undefined && fromGenerateAudio != null) {
9415
+ setValueByPath(parentObject, ['parameters', 'generateAudio'], fromGenerateAudio);
9416
+ }
9101
9417
  return toObject;
9102
9418
  }
9103
9419
  function generateVideosParametersToVertex(apiClient, fromObject) {
@@ -9148,6 +9464,18 @@ function blobFromMldev(apiClient, fromObject) {
9148
9464
  }
9149
9465
  return toObject;
9150
9466
  }
9467
+ function fileDataFromMldev(apiClient, fromObject) {
9468
+ const toObject = {};
9469
+ const fromFileUri = getValueByPath(fromObject, ['fileUri']);
9470
+ if (fromFileUri != null) {
9471
+ setValueByPath(toObject, ['fileUri'], fromFileUri);
9472
+ }
9473
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
9474
+ if (fromMimeType != null) {
9475
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
9476
+ }
9477
+ return toObject;
9478
+ }
9151
9479
  function partFromMldev(apiClient, fromObject) {
9152
9480
  const toObject = {};
9153
9481
  const fromVideoMetadata = getValueByPath(fromObject, [
@@ -9164,6 +9492,10 @@ function partFromMldev(apiClient, fromObject) {
9164
9492
  if (fromInlineData != null) {
9165
9493
  setValueByPath(toObject, ['inlineData'], blobFromMldev(apiClient, fromInlineData));
9166
9494
  }
9495
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
9496
+ if (fromFileData != null) {
9497
+ setValueByPath(toObject, ['fileData'], fileDataFromMldev(apiClient, fromFileData));
9498
+ }
9167
9499
  const fromCodeExecutionResult = getValueByPath(fromObject, [
9168
9500
  'codeExecutionResult',
9169
9501
  ]);
@@ -9176,10 +9508,6 @@ function partFromMldev(apiClient, fromObject) {
9176
9508
  if (fromExecutableCode != null) {
9177
9509
  setValueByPath(toObject, ['executableCode'], fromExecutableCode);
9178
9510
  }
9179
- const fromFileData = getValueByPath(fromObject, ['fileData']);
9180
- if (fromFileData != null) {
9181
- setValueByPath(toObject, ['fileData'], fromFileData);
9182
- }
9183
9511
  const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
9184
9512
  if (fromFunctionCall != null) {
9185
9513
  setValueByPath(toObject, ['functionCall'], fromFunctionCall);
@@ -9650,6 +9978,22 @@ function blobFromVertex(apiClient, fromObject) {
9650
9978
  }
9651
9979
  return toObject;
9652
9980
  }
9981
+ function fileDataFromVertex(apiClient, fromObject) {
9982
+ const toObject = {};
9983
+ const fromDisplayName = getValueByPath(fromObject, ['displayName']);
9984
+ if (fromDisplayName != null) {
9985
+ setValueByPath(toObject, ['displayName'], fromDisplayName);
9986
+ }
9987
+ const fromFileUri = getValueByPath(fromObject, ['fileUri']);
9988
+ if (fromFileUri != null) {
9989
+ setValueByPath(toObject, ['fileUri'], fromFileUri);
9990
+ }
9991
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
9992
+ if (fromMimeType != null) {
9993
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
9994
+ }
9995
+ return toObject;
9996
+ }
9653
9997
  function partFromVertex(apiClient, fromObject) {
9654
9998
  const toObject = {};
9655
9999
  const fromVideoMetadata = getValueByPath(fromObject, [
@@ -9666,6 +10010,10 @@ function partFromVertex(apiClient, fromObject) {
9666
10010
  if (fromInlineData != null) {
9667
10011
  setValueByPath(toObject, ['inlineData'], blobFromVertex(apiClient, fromInlineData));
9668
10012
  }
10013
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
10014
+ if (fromFileData != null) {
10015
+ setValueByPath(toObject, ['fileData'], fileDataFromVertex(apiClient, fromFileData));
10016
+ }
9669
10017
  const fromCodeExecutionResult = getValueByPath(fromObject, [
9670
10018
  'codeExecutionResult',
9671
10019
  ]);
@@ -9678,10 +10026,6 @@ function partFromVertex(apiClient, fromObject) {
9678
10026
  if (fromExecutableCode != null) {
9679
10027
  setValueByPath(toObject, ['executableCode'], fromExecutableCode);
9680
10028
  }
9681
- const fromFileData = getValueByPath(fromObject, ['fileData']);
9682
- if (fromFileData != null) {
9683
- setValueByPath(toObject, ['fileData'], fromFileData);
9684
- }
9685
10029
  const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
9686
10030
  if (fromFunctionCall != null) {
9687
10031
  setValueByPath(toObject, ['functionCall'], fromFunctionCall);
@@ -10212,7 +10556,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
10212
10556
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
10213
10557
  const USER_AGENT_HEADER = 'User-Agent';
10214
10558
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
10215
- const SDK_VERSION = '1.0.1'; // x-release-please-version
10559
+ const SDK_VERSION = '1.2.0'; // x-release-please-version
10216
10560
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
10217
10561
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
10218
10562
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
@@ -10748,9 +11092,6 @@ function hasMcpToolUsage(tools) {
10748
11092
  function setMcpUsageHeader(headers) {
10749
11093
  var _a;
10750
11094
  const existingHeader = (_a = headers[GOOGLE_API_CLIENT_HEADER]) !== null && _a !== void 0 ? _a : '';
10751
- if (existingHeader.includes(MCP_LABEL)) {
10752
- return;
10753
- }
10754
11095
  headers[GOOGLE_API_CLIENT_HEADER] = (existingHeader + ` ${MCP_LABEL}`).trimStart();
10755
11096
  }
10756
11097
  // Checks whether the list of tools contains any MCP clients. Will return true
@@ -13527,6 +13868,12 @@ function tuningJobFromMldev(apiClient, fromObject) {
13527
13868
  if (fromPipelineJob != null) {
13528
13869
  setValueByPath(toObject, ['pipelineJob'], fromPipelineJob);
13529
13870
  }
13871
+ const fromServiceAccount = getValueByPath(fromObject, [
13872
+ 'serviceAccount',
13873
+ ]);
13874
+ if (fromServiceAccount != null) {
13875
+ setValueByPath(toObject, ['serviceAccount'], fromServiceAccount);
13876
+ }
13530
13877
  const fromTunedModelDisplayName = getValueByPath(fromObject, [
13531
13878
  'tunedModelDisplayName',
13532
13879
  ]);
@@ -13701,6 +14048,12 @@ function tuningJobFromVertex(apiClient, fromObject) {
13701
14048
  if (fromPipelineJob != null) {
13702
14049
  setValueByPath(toObject, ['pipelineJob'], fromPipelineJob);
13703
14050
  }
14051
+ const fromServiceAccount = getValueByPath(fromObject, [
14052
+ 'serviceAccount',
14053
+ ]);
14054
+ if (fromServiceAccount != null) {
14055
+ setValueByPath(toObject, ['serviceAccount'], fromServiceAccount);
14056
+ }
13704
14057
  const fromTunedModelDisplayName = getValueByPath(fromObject, [
13705
14058
  'tunedModelDisplayName',
13706
14059
  ]);
@@ -14217,5 +14570,5 @@ class GoogleGenAI {
14217
14570
  }
14218
14571
  }
14219
14572
 
14220
- 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 };
14573
+ 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 };
14221
14574
  //# sourceMappingURL=index.mjs.map