@google/genai 1.51.0 → 1.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2595,6 +2595,10 @@ export declare interface CreateFileSearchStoreConfig {
2595
2595
  /** The human-readable display name for the file search store.
2596
2596
  */
2597
2597
  displayName?: string;
2598
+ /** The embedding model to use for the FileSearchStore.
2599
+ Format: `models/{model}`. If not specified, the default embedding model will be used.
2600
+ */
2601
+ embeddingModel?: string;
2598
2602
  }
2599
2603
 
2600
2604
  /** Config for file_search_stores.create parameters. */
@@ -3211,6 +3215,19 @@ export declare interface DownloadFileParameters {
3211
3215
  config?: DownloadFileConfig;
3212
3216
  }
3213
3217
 
3218
+ /** Used to override the default configuration. */
3219
+ export declare interface DownloadMediaConfig {
3220
+ /** Used to override HTTP request options. */
3221
+ httpOptions?: HttpOptions;
3222
+ /** Abort signal which can be used to cancel the request.
3223
+
3224
+ NOTE: AbortSignal is a client-only operation. Using it to cancel an
3225
+ operation will not cancel the request in the service. You will still
3226
+ be charged usage for any applicable operations.
3227
+ */
3228
+ abortSignal?: AbortSignal;
3229
+ }
3230
+
3214
3231
  /**
3215
3232
  * Configuration for dynamic agents.
3216
3233
  */
@@ -3945,6 +3962,8 @@ export declare interface FileSearchStore {
3945
3962
  /** The size of raw bytes ingested into the FileSearchStore. This is the
3946
3963
  total size of all the documents in the FileSearchStore. */
3947
3964
  sizeBytes?: string;
3965
+ /** The embedding model used by the FileSearchStore. */
3966
+ embeddingModel?: string;
3948
3967
  }
3949
3968
 
3950
3969
  declare class FileSearchStores extends BaseModule {
@@ -4003,6 +4022,15 @@ declare class FileSearchStores extends BaseModule {
4003
4022
  * ```
4004
4023
  */
4005
4024
  uploadToFileSearchStore(params: types.UploadToFileSearchStoreParameters): Promise<types.UploadToFileSearchStoreOperation>;
4025
+ /**
4026
+ * Downloads media using a Media ID or URI.
4027
+ * This method is only supported in the Gemini Developer client.
4028
+ *
4029
+ * @param uri - The URI or Media ID of the blob.
4030
+ * @param config - Optional configuration for the download.
4031
+ * @returns A promise that resolves to the blob data as a Uint8Array.
4032
+ */
4033
+ downloadMedia(uri: string, config?: types.DownloadMediaConfig): Promise<Uint8Array>;
4006
4034
  /**
4007
4035
  * Creates a File Search Store.
4008
4036
  *
@@ -5826,6 +5854,8 @@ export declare interface GroundingChunkRetrievedContext {
5826
5854
  fileSearchStore?: string;
5827
5855
  /** Optional. Page number of the retrieved context. This field is not supported in Vertex AI. */
5828
5856
  pageNumber?: number;
5857
+ /** Optional. Media ID. This field is not supported in Vertex AI. */
5858
+ mediaId?: string;
5829
5859
  }
5830
5860
 
5831
5861
  /** A list of string values. This data type is not supported in Vertex AI. */
@@ -11760,6 +11790,7 @@ declare namespace types {
11760
11790
  EmbedContentParameters,
11761
11791
  UploadToFileSearchStoreResponse,
11762
11792
  UploadToFileSearchStoreOperation,
11793
+ DownloadMediaConfig,
11763
11794
  BlobImageUnion,
11764
11795
  PartUnion,
11765
11796
  PartListUnion,