@google/genai 1.23.0 → 1.25.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/web/web.d.ts CHANGED
@@ -467,7 +467,6 @@ export declare class Batches extends BaseModule {
467
467
  */
468
468
  list: (params?: types.ListBatchJobsParameters) => Promise<Pager<types.BatchJob>>;
469
469
  private createInlinedGenerateContentRequest;
470
- private createInlinedEmbedContentRequest;
471
470
  private getGcsUri;
472
471
  private getBigqueryUri;
473
472
  private formatDestination;
@@ -3428,6 +3427,8 @@ export declare interface GoogleGenAIOptions {
3428
3427
  export declare interface GoogleMaps {
3429
3428
  /** Optional. Auth config for the Google Maps tool. */
3430
3429
  authConfig?: AuthConfig;
3430
+ /** Optional. If true, include the widget context token in the response. */
3431
+ enableWidget?: boolean;
3431
3432
  }
3432
3433
 
3433
3434
  /** The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). */
@@ -3521,6 +3522,10 @@ export declare interface GroundingChunkMapsPlaceAnswerSourcesReviewSnippet {
3521
3522
  relativePublishTimeDescription?: string;
3522
3523
  /** A reference representing this place review which may be used to look up this place review again. */
3523
3524
  review?: string;
3525
+ /** Id of the review referencing the place. */
3526
+ reviewId?: string;
3527
+ /** Title of the review. */
3528
+ title?: string;
3524
3529
  }
3525
3530
 
3526
3531
  /** Chunk from context retrieved by the retrieval tools. */
@@ -3561,10 +3566,20 @@ export declare interface GroundingMetadata {
3561
3566
  retrievalQueries?: string[];
3562
3567
  /** Optional. Google search entry for the following-up web searches. */
3563
3568
  searchEntryPoint?: SearchEntryPoint;
3569
+ /** Optional. Output only. List of source flagging uris. This is currently populated only for Google Maps grounding. */
3570
+ sourceFlaggingUris?: GroundingMetadataSourceFlaggingUri[];
3564
3571
  /** Optional. Web search queries for the following-up web search. */
3565
3572
  webSearchQueries?: string[];
3566
3573
  }
3567
3574
 
3575
+ /** Source content flagging uri for a place or review. This is currently populated only for Google Maps grounding. */
3576
+ export declare interface GroundingMetadataSourceFlaggingUri {
3577
+ /** A link where users can flag a problem with the source (place or review). */
3578
+ flagContentUri?: string;
3579
+ /** Id of the place or review. */
3580
+ sourceId?: string;
3581
+ }
3582
+
3568
3583
  /** Grounding support. */
3569
3584
  export declare interface GroundingSupport {
3570
3585
  /** Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. For Gemini 2.0 and before, this list must have the same size as the grounding_chunk_indices. For Gemini 2.5 and after, this list will be empty and should be ignored. */
@@ -3864,6 +3879,8 @@ export declare interface InlinedRequest {
3864
3879
  /** Content of the request.
3865
3880
  */
3866
3881
  contents?: ContentListUnion;
3882
+ /** The metadata to be associated with the request. */
3883
+ metadata?: Record<string, string>;
3867
3884
  /** Configuration that contains optional model parameters.
3868
3885
  */
3869
3886
  config?: GenerateContentConfig;
@@ -7334,6 +7351,7 @@ declare namespace types {
7334
7351
  GroundingSupport,
7335
7352
  RetrievalMetadata,
7336
7353
  SearchEntryPoint,
7354
+ GroundingMetadataSourceFlaggingUri,
7337
7355
  GroundingMetadata,
7338
7356
  LogprobsResultCandidate,
7339
7357
  LogprobsResultTopCandidates,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google/genai",
3
- "version": "1.23.0",
3
+ "version": "1.25.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/node/index.mjs",