@google/genai 2.11.0 → 2.12.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
@@ -286,6 +286,30 @@ declare type Annotation$ = Annotation;
286
286
  */
287
287
  declare type Annotation = URLCitation | FileCitation | PlaceCitation;
288
288
 
289
+ declare type AntigravityAgentConfig$ = AntigravityAgentConfig;
290
+
291
+ /**
292
+ * @license
293
+ * Copyright 2026 Google LLC
294
+ * SPDX-License-Identifier: Apache-2.0
295
+ *
296
+ * g3-prettier-ignore-file
297
+ */
298
+ /**
299
+ * Configuration for the Antigravity agent runtime.
300
+ *
301
+ * @remarks
302
+ * Provides server-side control over the agent's execution environment
303
+ * and tool configuration.
304
+ */
305
+ declare type AntigravityAgentConfig = {
306
+ /**
307
+ * Max total tokens for the agent run.
308
+ */
309
+ max_total_tokens?: string | undefined;
310
+ type: "antigravity";
311
+ };
312
+
289
313
  /** The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. This data type is not supported in Gemini API. */
290
314
  export declare interface ApiAuth {
291
315
  /** The API secret. */
@@ -1776,6 +1800,47 @@ declare type CodeExecutionResultStep = {
1776
1800
  type: "code_execution_result";
1777
1801
  };
1778
1802
 
1803
+ declare type CodeMenderAgentConfig$ = CodeMenderAgentConfig;
1804
+
1805
+ /**
1806
+ * Configuration for the CodeMender agent.
1807
+ */
1808
+ declare type CodeMenderAgentConfig = {
1809
+ /**
1810
+ * Request parameters specific to FIND sessions, used for discovering
1811
+ *
1812
+ * @remarks
1813
+ * vulnerabilities in a codebase.
1814
+ */
1815
+ find_request?: FindRequest | undefined;
1816
+ /**
1817
+ * Request parameters specific to FIX sessions, used for generating and
1818
+ *
1819
+ * @remarks
1820
+ * validating security patches.
1821
+ */
1822
+ fix_request?: FixRequest | undefined;
1823
+ /**
1824
+ * The name of the model to use for the CodeMender agent. One
1825
+ *
1826
+ * @remarks
1827
+ * CodeMender session will only use one model.
1828
+ */
1829
+ model?: string | undefined;
1830
+ /**
1831
+ * The configuration of CodeMender sessions.
1832
+ */
1833
+ session_config?: SessionConfig | undefined;
1834
+ /**
1835
+ * Parameter for grouping multiple interactions that belong to
1836
+ *
1837
+ * @remarks
1838
+ * the same CodeMender session.
1839
+ */
1840
+ session_id?: string | undefined;
1841
+ type: "code-mender";
1842
+ };
1843
+
1779
1844
  /** Success and error statistics of processing multiple entities (for example, DataItems or structured data rows) in batch. This data type is not supported in Gemini API. */
1780
1845
  export declare interface CompletionStats {
1781
1846
  /** Output only. The number of entities for which any error was encountered. */
@@ -1917,6 +1982,9 @@ export declare interface ContentEmbeddingStatistics {
1917
1982
  /** Gemini Enterprise Agent Platform only. Number of tokens of the input text.
1918
1983
  */
1919
1984
  tokenCount?: number;
1985
+ /** Gemini Enterprise Agent Platform only. List of modalities and their token count for the input content.
1986
+ */
1987
+ tokensDetails?: ModalityTokenCount[];
1920
1988
  }
1921
1989
 
1922
1990
  export declare type ContentListUnion = Content | Content[] | PartUnion | PartUnion[];
@@ -2096,7 +2164,7 @@ declare type CreateAgentInteraction = {
2096
2164
  /**
2097
2165
  * Configuration parameters for the agent interaction.
2098
2166
  */
2099
- agent_config?: DynamicAgentConfig | DeepResearchAgentConfig | undefined;
2167
+ agent_config?: DynamicAgentConfig | DeepResearchAgentConfig | CodeMenderAgentConfig | AntigravityAgentConfig | undefined;
2100
2168
  /**
2101
2169
  * Safety settings for the interaction.
2102
2170
  */
@@ -2116,7 +2184,7 @@ declare type CreateAgentInteraction = {
2116
2184
  /**
2117
2185
  * Configuration parameters for the agent interaction.
2118
2186
  */
2119
- declare type CreateAgentInteractionAgentConfig = DynamicAgentConfig | DeepResearchAgentConfig;
2187
+ declare type CreateAgentInteractionAgentConfig = DynamicAgentConfig | DeepResearchAgentConfig | CodeMenderAgentConfig | AntigravityAgentConfig;
2120
2188
 
2121
2189
  /**
2122
2190
  * The environment configuration for the interaction. Can be an object specifying remote environment sources or a string referencing an existing environment ID.
@@ -2493,16 +2561,6 @@ declare type CreateModelInteraction = {
2493
2561
  * Configuration parameters for model interactions.
2494
2562
  */
2495
2563
  generation_config?: GenerationConfig_2 | undefined;
2496
- /**
2497
- * The name of the cached content used as context to serve the prediction.
2498
- *
2499
- * @remarks
2500
- * Note: only used in explicit caching, where users can have control over
2501
- * caching (e.g. what content to cache) and enjoy guaranteed cost savings.
2502
- * Format:
2503
- * `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
2504
- */
2505
- cached_content?: string | undefined;
2506
2564
  /**
2507
2565
  * Safety settings for the interaction.
2508
2566
  */
@@ -2578,6 +2636,16 @@ export declare function createPartFromText(text: string): Part;
2578
2636
  */
2579
2637
  export declare function createPartFromUri(uri: string, mimeType: string, mediaResolution?: PartMediaResolutionLevel): Part;
2580
2638
 
2639
+ declare type CreateTriggerParams = Omit<CreateTriggerRequest, "body"> & CreateTriggerRequest["body"];
2640
+
2641
+ declare type CreateTriggerRequest = {
2642
+ /**
2643
+ * Which version of the API to use.
2644
+ */
2645
+ api_version?: string | undefined;
2646
+ body: triggers.TriggerCreateParams;
2647
+ };
2648
+
2581
2649
  /** Fine-tuning job creation request - optional fields. */
2582
2650
  export declare interface CreateTuningJobConfig {
2583
2651
  /** Used to override HTTP request options. */
@@ -2997,6 +3065,19 @@ export declare interface DeleteResourceJob {
2997
3065
  error?: JobError;
2998
3066
  }
2999
3067
 
3068
+ declare type DeleteTriggerParams = Omit<DeleteTriggerRequest, "id">;
3069
+
3070
+ declare type DeleteTriggerRequest = {
3071
+ /**
3072
+ * Which version of the API to use.
3073
+ */
3074
+ api_version?: string | undefined;
3075
+ /**
3076
+ * Resource name of the trigger.
3077
+ */
3078
+ id: string;
3079
+ };
3080
+
3000
3081
  declare type DeleteWebhookParams = Omit<DeleteWebhookRequest, "id">;
3001
3082
 
3002
3083
  declare type DeleteWebhookRequest = {
@@ -3914,6 +3995,27 @@ declare type FileCitation = {
3914
3995
  type: "file_citation";
3915
3996
  };
3916
3997
 
3998
+ /**
3999
+ * @license
4000
+ * Copyright 2026 Google LLC
4001
+ * SPDX-License-Identifier: Apache-2.0
4002
+ *
4003
+ * g3-prettier-ignore-file
4004
+ */
4005
+ /**
4006
+ * Content of a single file in the codebase.
4007
+ */
4008
+ declare type FileContent = {
4009
+ /**
4010
+ * The UTF-8 encoded text content of the file.
4011
+ */
4012
+ content?: string | undefined;
4013
+ /**
4014
+ * The relative path of the file from the project root.
4015
+ */
4016
+ path?: string | undefined;
4017
+ };
4018
+
3917
4019
  /** URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. */
3918
4020
  export declare interface FileData {
3919
4021
  /** Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled. This field is not supported in Gemini API. */
@@ -4364,6 +4466,40 @@ declare type Filter = {
4364
4466
  vector_similarity_threshold?: number | undefined;
4365
4467
  };
4366
4468
 
4469
+ declare type FindRequest$ = FindRequest;
4470
+
4471
+ /**
4472
+ * Request parameters specific to FIND sessions, used for discovering
4473
+ *
4474
+ * @remarks
4475
+ * vulnerabilities in a codebase.
4476
+ */
4477
+ declare type FindRequest = {
4478
+ /**
4479
+ * Additional context or custom instructions provided by the user to guide
4480
+ *
4481
+ * @remarks
4482
+ * the vulnerability analysis.
4483
+ */
4484
+ description?: string | undefined;
4485
+ /**
4486
+ * The identifier of a specific finding to verify. This is primarily used in
4487
+ *
4488
+ * @remarks
4489
+ * VERIFY mode to focus the agent's execution-based validation on a single
4490
+ * vulnerability.
4491
+ */
4492
+ finding_id?: string | undefined;
4493
+ /**
4494
+ * The mode of the find session.
4495
+ */
4496
+ mode?: Mode | undefined;
4497
+ /**
4498
+ * A list of source files to provide as context for the scan.
4499
+ */
4500
+ source_files?: Array<FileContent> | undefined;
4501
+ };
4502
+
4367
4503
  /** Output only. The reason why the model stopped generating tokens.
4368
4504
 
4369
4505
  If empty, the model has not stopped generating the tokens. */
@@ -4438,6 +4574,38 @@ export declare enum FinishReason {
4438
4574
  IMAGE_OTHER = "IMAGE_OTHER"
4439
4575
  }
4440
4576
 
4577
+ declare type FixRequest$ = FixRequest;
4578
+
4579
+ /**
4580
+ * Request parameters specific to FIX sessions, used for generating and
4581
+ *
4582
+ * @remarks
4583
+ * validating security patches.
4584
+ */
4585
+ declare type FixRequest = {
4586
+ /**
4587
+ * Additional context or custom instructions provided by the user to guide
4588
+ *
4589
+ * @remarks
4590
+ * the patch generation process.
4591
+ */
4592
+ description?: string | undefined;
4593
+ /**
4594
+ * The identifier of the specific security finding to be remediated. This ID
4595
+ *
4596
+ * @remarks
4597
+ * maps to a previously discovered vulnerability.
4598
+ */
4599
+ finding_id?: string | undefined;
4600
+ /**
4601
+ * A list of source files providing context for the remediation. These files
4602
+ *
4603
+ * @remarks
4604
+ * are typically the ones containing the identified vulnerability.
4605
+ */
4606
+ source_files?: Array<FileContent> | undefined;
4607
+ };
4608
+
4441
4609
  /** Tuning Spec for Full Fine Tuning. This data type is not supported in Gemini API. */
4442
4610
  export declare interface FullFineTuningSpec {
4443
4611
  /** Optional. Hyperparameters for Full Fine Tuning. */
@@ -4728,6 +4896,20 @@ declare class GeminiNextGenInteractions {
4728
4896
  private getClient;
4729
4897
  }
4730
4898
 
4899
+ declare class GeminiNextGenTriggers {
4900
+ private readonly parentClient;
4901
+ private sdk;
4902
+ constructor(parentClient: GoogleGenAIParentClient);
4903
+ create(params: CreateTriggerParams, options?: GoogleGenAIRequestOptions): Promise<triggers.Trigger>;
4904
+ list(params?: ListTriggersParams_2 | null | undefined, options?: GoogleGenAIRequestOptions): Promise<triggers.ListTriggersResponse>;
4905
+ get(id: string, params?: GetTriggerParams | null | undefined, options?: GoogleGenAIRequestOptions): Promise<triggers.Trigger>;
4906
+ update(id: string, params: UpdateTriggerParams, options?: GoogleGenAIRequestOptions): Promise<triggers.Trigger>;
4907
+ delete(id: string, params?: DeleteTriggerParams | null | undefined, options?: GoogleGenAIRequestOptions): Promise<interactions.Empty>;
4908
+ run(trigger_id: string, params?: RunTriggerParams | null | undefined, options?: GoogleGenAIRequestOptions): Promise<triggers.TriggerExecution>;
4909
+ listExecutions(trigger_id: string, params?: ListTriggerExecutionsParams_2 | null | undefined, options?: GoogleGenAIRequestOptions): Promise<triggers.ListTriggerExecutionsResponse>;
4910
+ private getClient;
4911
+ }
4912
+
4731
4913
  declare class GeminiNextGenWebhooks {
4732
4914
  private readonly parentClient;
4733
4915
  private sdk;
@@ -5691,6 +5873,19 @@ export declare interface GetOperationParameters {
5691
5873
  config?: GetOperationConfig;
5692
5874
  }
5693
5875
 
5876
+ declare type GetTriggerParams = Omit<GetTriggerRequest, "id">;
5877
+
5878
+ declare type GetTriggerRequest = {
5879
+ /**
5880
+ * Which version of the API to use.
5881
+ */
5882
+ api_version?: string | undefined;
5883
+ /**
5884
+ * Resource name of the trigger.
5885
+ */
5886
+ id: string;
5887
+ };
5888
+
5694
5889
  /** Optional parameters for tunings.get method. */
5695
5890
  export declare interface GetTuningJobConfig {
5696
5891
  /** Used to override HTTP request options. */
@@ -5780,10 +5975,12 @@ export declare class GoogleGenAI {
5780
5975
  private _webhooks;
5781
5976
  private _agents;
5782
5977
  private _nextGenClient;
5978
+ private _triggers;
5783
5979
  private getNextGenClient;
5784
5980
  get interactions(): GeminiNextGenInteractions;
5785
5981
  get webhooks(): GeminiNextGenWebhooks;
5786
5982
  get agents(): GeminiNextGenAgents;
5983
+ get triggers(): GeminiNextGenTriggers;
5787
5984
  constructor(options: GoogleGenAIOptions);
5788
5985
  }
5789
5986
 
@@ -5878,6 +6075,7 @@ declare interface GoogleGenAIParentClient {
5878
6075
  getBaseUrl(): string;
5879
6076
  getApiVersion(): string;
5880
6077
  getDefaultHeaders?(): Record<string, string>;
6078
+ getHeaders?(): Record<string, string> | undefined;
5881
6079
  getAuthHeaders(url?: string): Headers | Promise<Headers>;
5882
6080
  }
5883
6081
 
@@ -6609,6 +6807,16 @@ export declare enum HarmSeverity {
6609
6807
  HARM_SEVERITY_HIGH = "HARM_SEVERITY_HIGH"
6610
6808
  }
6611
6809
 
6810
+ /** Configuration for history exchange between client and server. */
6811
+ export declare interface HistoryConfig {
6812
+ /** If true, after sending `setup_complete`, the server will wait
6813
+ and at first process `client_content` messages until `turn_complete` is
6814
+ `true`. This initial history will not trigger a model call and
6815
+ may end with model content. After `turn_complete` is `true`, the client
6816
+ can start the realtime conversation via `realtime_input`. */
6817
+ initialHistoryInClientContent?: boolean;
6818
+ }
6819
+
6612
6820
  /** The location of the API key. This enum is not supported in Gemini API. */
6613
6821
  export declare enum HttpElementLocation {
6614
6822
  HTTP_IN_UNSPECIFIED = "HTTP_IN_UNSPECIFIED",
@@ -7179,20 +7387,10 @@ declare type Interaction = {
7179
7387
  * Configuration parameters for model interactions.
7180
7388
  */
7181
7389
  generation_config?: GenerationConfig_2 | undefined;
7182
- /**
7183
- * The name of the cached content used as context to serve the prediction.
7184
- *
7185
- * @remarks
7186
- * Note: only used in explicit caching, where users can have control over
7187
- * caching (e.g. what content to cache) and enjoy guaranteed cost savings.
7188
- * Format:
7189
- * `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
7190
- */
7191
- cached_content?: string | undefined;
7192
7390
  /**
7193
7391
  * Configuration parameters for the agent interaction.
7194
7392
  */
7195
- agent_config?: DynamicAgentConfig | DeepResearchAgentConfig | undefined;
7393
+ agent_config?: DynamicAgentConfig | DeepResearchAgentConfig | CodeMenderAgentConfig | AntigravityAgentConfig | undefined;
7196
7394
  /**
7197
7395
  * Safety settings for the interaction.
7198
7396
  */
@@ -7229,10 +7427,15 @@ declare type Interaction = {
7229
7427
  output_video?: VideoContent | undefined;
7230
7428
  };
7231
7429
 
7430
+ /**
7431
+ * Required. The interaction request template to be executed.
7432
+ */
7433
+ declare type Interaction_2 = interactions.CreateAgentInteraction | interactions.CreateModelInteraction;
7434
+
7232
7435
  /**
7233
7436
  * Configuration parameters for the agent interaction.
7234
7437
  */
7235
- declare type InteractionAgentConfig = DynamicAgentConfig | DeepResearchAgentConfig;
7438
+ declare type InteractionAgentConfig = DynamicAgentConfig | DeepResearchAgentConfig | CodeMenderAgentConfig | AntigravityAgentConfig;
7236
7439
 
7237
7440
  declare type InteractionCancelParams$ = CancelInteractionByIdParams;
7238
7441
 
@@ -7321,12 +7524,15 @@ declare type InteractionResponseFormat = Array<ResponseFormat_2> | ResponseForma
7321
7524
  export declare namespace Interactions {
7322
7525
  export type AllowedTools = AllowedTools$;
7323
7526
  export type Annotation = Annotation$;
7527
+ export type AntigravityAgentConfig = AntigravityAgentConfig$;
7324
7528
  export type AudioContent = AudioContent$;
7325
7529
  export type AudioResponseFormat = AudioResponseFormat$;
7326
7530
  export type CodeExecutionCallArguments = CodeExecutionCallArguments$;
7327
7531
  export interface CodeExecutionCallStep extends CodeExecutionCallStep$ {
7328
7532
  }
7329
7533
  export type CodeExecutionResultStep = CodeExecutionResultStep$;
7534
+ export interface CodeMenderAgentConfig extends CodeMenderAgentConfig$ {
7535
+ }
7330
7536
  export type Content = Content$;
7331
7537
  export type CreateAgentInteractionParamsNonStreaming = CreateAgentInteractionParamsNonStreaming$;
7332
7538
  export type CreateAgentInteractionParamsStreaming = CreateAgentInteractionParamsStreaming$;
@@ -7422,6 +7628,19 @@ export declare namespace Interactions {
7422
7628
  export namespace CodeExecutionCallStep {
7423
7629
  export type Arguments = Arguments$;
7424
7630
  }
7631
+ export namespace CodeMenderAgentConfig {
7632
+ export interface FindRequest extends FindRequest$ {
7633
+ }
7634
+ export interface FixRequest extends FixRequest$ {
7635
+ }
7636
+ export type SessionConfig = SessionConfig$;
7637
+ export namespace FindRequest {
7638
+ export type SourceFile = SourceFile$;
7639
+ }
7640
+ export namespace FixRequest {
7641
+ export type SourceFile = SourceFile$2;
7642
+ }
7643
+ }
7425
7644
  export namespace Environment {
7426
7645
  export type Allowlist = Allowlist$;
7427
7646
  export type Source = Source$;
@@ -7546,6 +7765,7 @@ declare namespace interactions {
7546
7765
  Transform,
7547
7766
  AllowlistEntry,
7548
7767
  Annotation,
7768
+ AntigravityAgentConfig,
7549
7769
  ArgumentsDelta,
7550
7770
  AudioContentMimeType,
7551
7771
  AudioContent,
@@ -7561,6 +7781,7 @@ declare namespace interactions {
7561
7781
  CodeExecutionResultDelta,
7562
7782
  CodeExecutionResultStep,
7563
7783
  CodeExecution,
7784
+ CodeMenderAgentConfig,
7564
7785
  DisabledSafetyPolicy,
7565
7786
  EnvironmentEnum,
7566
7787
  ComputerUse_2 as ComputerUse,
@@ -7590,6 +7811,7 @@ declare namespace interactions {
7590
7811
  ErrorT,
7591
7812
  ExaAISearchConfig,
7592
7813
  FileCitation,
7814
+ FileContent,
7593
7815
  FileSearchCallDelta,
7594
7816
  FileSearchCallStep,
7595
7817
  FileSearchResultDelta,
@@ -7597,6 +7819,9 @@ declare namespace interactions {
7597
7819
  FileSearchResult,
7598
7820
  FileSearch_2 as FileSearch,
7599
7821
  Filter,
7822
+ Mode,
7823
+ FindRequest,
7824
+ FixRequest,
7600
7825
  FunctionCallStep,
7601
7826
  FunctionResultDeltaResult,
7602
7827
  FunctionResultDeltaResultUnion,
@@ -7687,6 +7912,7 @@ declare namespace interactions {
7687
7912
  Threshold,
7688
7913
  SafetySetting_2 as SafetySetting,
7689
7914
  ServiceTier_2 as ServiceTier,
7915
+ SessionConfig,
7690
7916
  SourceType,
7691
7917
  Source,
7692
7918
  SpeechConfig_2 as SpeechConfig,
@@ -8147,6 +8373,99 @@ export declare class ListModelsResponse {
8147
8373
  models?: Model[];
8148
8374
  }
8149
8375
 
8376
+ declare type ListTriggerExecutionsParams = Omit<ListTriggerExecutionsRequest, "trigger_id">;
8377
+
8378
+ declare type ListTriggerExecutionsParams_2 = {
8379
+ api_version?: string;
8380
+ pageSize?: number;
8381
+ pageToken?: string;
8382
+ };
8383
+
8384
+ declare type ListTriggerExecutionsRequest = {
8385
+ /**
8386
+ * Which version of the API to use.
8387
+ */
8388
+ api_version?: string | undefined;
8389
+ /**
8390
+ * Resource name of the trigger.
8391
+ */
8392
+ trigger_id: string;
8393
+ /**
8394
+ * Optional. The maximum number of executions to return per page.
8395
+ */
8396
+ page_size?: number | undefined;
8397
+ /**
8398
+ * Optional. A page token from a previous ListTriggerExecutions call.
8399
+ */
8400
+ page_token?: string | undefined;
8401
+ };
8402
+
8403
+ declare type ListTriggerExecutionsResponse$ = ListTriggerExecutionsResponse;
8404
+
8405
+ /**
8406
+ * Response message for TriggerService.ListTriggerExecutions.
8407
+ */
8408
+ declare type ListTriggerExecutionsResponse = {
8409
+ /**
8410
+ * A page token, received from a previous `ListTriggerExecutions` call.
8411
+ *
8412
+ * @remarks
8413
+ * Provide this to retrieve the subsequent page.
8414
+ */
8415
+ next_page_token?: string | undefined;
8416
+ /**
8417
+ * The list of trigger executions.
8418
+ */
8419
+ trigger_executions?: Array<TriggerExecution> | undefined;
8420
+ };
8421
+
8422
+ declare type ListTriggersParams = ListTriggersRequest;
8423
+
8424
+ declare type ListTriggersParams_2 = {
8425
+ api_version?: string;
8426
+ filter?: string;
8427
+ pageSize?: number;
8428
+ pageToken?: string;
8429
+ };
8430
+
8431
+ declare type ListTriggersRequest = {
8432
+ /**
8433
+ * Which version of the API to use.
8434
+ */
8435
+ api_version?: string | undefined;
8436
+ /**
8437
+ * Optional. Filter expression (e.g., by state).
8438
+ */
8439
+ filter?: string | undefined;
8440
+ /**
8441
+ * Optional. The maximum number of triggers to return per page.
8442
+ */
8443
+ page_size?: number | undefined;
8444
+ /**
8445
+ * Optional. A page token from a previous ListTriggers call.
8446
+ */
8447
+ page_token?: string | undefined;
8448
+ };
8449
+
8450
+ declare type ListTriggersResponse$ = ListTriggersResponse;
8451
+
8452
+ /**
8453
+ * Response message for TriggerService.ListTriggers.
8454
+ */
8455
+ declare type ListTriggersResponse = {
8456
+ /**
8457
+ * A page token, received from a previous `ListTriggers` call.
8458
+ *
8459
+ * @remarks
8460
+ * Provide this to retrieve the subsequent page.
8461
+ */
8462
+ next_page_token?: string | undefined;
8463
+ /**
8464
+ * The list of triggers.
8465
+ */
8466
+ triggers?: Array<Trigger> | undefined;
8467
+ };
8468
+
8150
8469
  /** Configuration for the list tuning jobs method. */
8151
8470
  export declare interface ListTuningJobsConfig {
8152
8471
  /** Used to override HTTP request options. */
@@ -8402,6 +8721,8 @@ export declare interface LiveClientSetup {
8402
8721
  response.
8403
8722
  */
8404
8723
  safetySettings?: SafetySetting[];
8724
+ /** Configures the exchange of history between the client and the server. */
8725
+ historyConfig?: HistoryConfig;
8405
8726
  }
8406
8727
 
8407
8728
  /** Client generated response to a `ToolCall` received from the server.
@@ -9353,6 +9674,11 @@ declare type ModalityTokens = {
9353
9674
  tokens?: number | undefined;
9354
9675
  };
9355
9676
 
9677
+ /**
9678
+ * The mode of the find session.
9679
+ */
9680
+ declare type Mode = "scan" | "verify" | (string & {});
9681
+
9356
9682
  declare type Model$ = Model_2;
9357
9683
 
9358
9684
  /** A trained machine learning model. */
@@ -9420,7 +9746,7 @@ export declare interface Model {
9420
9746
  /**
9421
9747
  * The model that will complete your prompt.\n\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details.
9422
9748
  */
9423
- declare type Model_2 = "gemini-2.5-computer-use-preview-10-2025" | "gemini-2.5-flash" | "gemini-2.5-flash-image" | "gemini-2.5-flash-lite" | "gemini-2.5-flash-lite-preview-09-2025" | "gemini-2.5-flash-native-audio-preview-12-2025" | "gemini-2.5-flash-preview-09-2025" | "gemini-2.5-flash-preview-tts" | "gemini-2.5-pro" | "gemini-2.5-pro-preview-tts" | "gemini-3-flash-preview" | "gemini-3-pro-image-preview" | "gemini-3-pro-preview" | "gemini-3.1-pro-preview" | "gemini-3.1-flash-image-preview" | "gemini-3.1-flash-lite" | "gemini-3.1-flash-lite-preview" | "gemini-3.1-flash-tts-preview" | "gemini-3.5-flash" | "lyria-3-clip-preview" | "lyria-3-pro-preview" | (string & {});
9749
+ declare type Model_2 = "gemini-2.5-flash" | "gemini-2.5-pro" | "gemma-4-26b-a4b-it" | "gemma-4-31b-it" | "gemini-flash-latest" | "gemini-flash-lite-latest" | "gemini-pro-latest" | "gemini-2.5-flash-lite" | "gemini-2.5-flash-image" | "gemini-3-flash-preview" | "gemini-3.1-pro-preview" | "gemini-3.1-pro-preview-customtools" | "gemini-3.1-flash-lite" | "gemini-3-pro-image" | "nano-banana-pro-preview" | "gemini-3.1-flash-image" | "gemini-3.5-flash" | "lyria-3-clip-preview" | "lyria-3-pro-preview" | "gemini-robotics-er-1.6-preview" | (string & {});
9424
9750
 
9425
9751
  /** Configuration for Model Armor. Model Armor is a Google Cloud service that provides safety and security filtering for prompts and responses. It helps protect your AI applications from risks such as harmful content, sensitive data leakage, and prompt injection attacks. This data type is not supported in Gemini API. */
9426
9752
  export declare interface ModelArmorConfig {
@@ -11333,6 +11659,19 @@ export declare interface RougeMetricValue {
11333
11659
  score?: number;
11334
11660
  }
11335
11661
 
11662
+ declare type RunTriggerParams = Omit<RunTriggerRequest, "trigger_id">;
11663
+
11664
+ declare type RunTriggerRequest = {
11665
+ /**
11666
+ * Which version of the API to use.
11667
+ */
11668
+ api_version?: string | undefined;
11669
+ /**
11670
+ * Resource name of the trigger.
11671
+ */
11672
+ trigger_id: string;
11673
+ };
11674
+
11336
11675
  /** Safety attributes of a GeneratedImage or the user-provided prompt. */
11337
11676
  export declare interface SafetyAttributes {
11338
11677
  /** List of RAI categories. */
@@ -11843,6 +12182,28 @@ export declare class Session {
11843
12182
  close(): void;
11844
12183
  }
11845
12184
 
12185
+ declare type SessionConfig$ = SessionConfig;
12186
+
12187
+ /**
12188
+ * @license
12189
+ * Copyright 2026 Google LLC
12190
+ * SPDX-License-Identifier: Apache-2.0
12191
+ *
12192
+ * g3-prettier-ignore-file
12193
+ */
12194
+ /**
12195
+ * The configuration of CodeMender sessions.
12196
+ */
12197
+ declare type SessionConfig = {
12198
+ /**
12199
+ * The maximum number of interaction rounds the agent is allowed to perform
12200
+ *
12201
+ * @remarks
12202
+ * before reaching a timeout.
12203
+ */
12204
+ max_rounds?: number | undefined;
12205
+ };
12206
+
11846
12207
  /** Configuration of session resumption mechanism.
11847
12208
 
11848
12209
  Included in `LiveConnectConfig.session_resumption`. If included server
@@ -11967,6 +12328,10 @@ declare type Source = {
11967
12328
  type?: SourceType | undefined;
11968
12329
  };
11969
12330
 
12331
+ declare type SourceFile$ = FileContent;
12332
+
12333
+ declare type SourceFile$2 = FileContent;
12334
+
11970
12335
  /**
11971
12336
  * @license
11972
12337
  * Copyright 2026 Google LLC
@@ -12923,6 +13288,267 @@ export declare interface TranslationConfig {
12923
13288
  targetLanguageCode?: string;
12924
13289
  }
12925
13290
 
13291
+ declare type Trigger$ = Trigger;
13292
+
13293
+ /**
13294
+ * A trigger configuration that is scheduled to run an agent.
13295
+ */
13296
+ declare type Trigger = {
13297
+ /**
13298
+ * Output only. The number of consecutive failures that have occurred
13299
+ *
13300
+ * @remarks
13301
+ * since the last successful execution.
13302
+ */
13303
+ consecutive_failure_count?: number | undefined;
13304
+ /**
13305
+ * Output only. The time when the trigger was created.
13306
+ */
13307
+ create_time?: string | undefined;
13308
+ /**
13309
+ * Optional. The display name of the trigger.
13310
+ */
13311
+ display_name?: string | undefined;
13312
+ /**
13313
+ * Optional. The environment ID for the trigger execution.
13314
+ */
13315
+ environment_id?: string | undefined;
13316
+ /**
13317
+ * Optional. The execution timeout for the triggered interaction.
13318
+ */
13319
+ execution_timeout_seconds?: number | undefined;
13320
+ /**
13321
+ * Required. Output only. Identifier. The ID of the trigger.
13322
+ */
13323
+ id: string;
13324
+ /**
13325
+ * The Interaction resource.
13326
+ */
13327
+ interaction: interactions.Interaction;
13328
+ /**
13329
+ * Output only. The time when the trigger was last paused.
13330
+ */
13331
+ last_pause_time?: string | undefined;
13332
+ /**
13333
+ * Output only. The time when the trigger was last resumed.
13334
+ */
13335
+ last_resume_time?: string | undefined;
13336
+ /**
13337
+ * Output only. The time when the trigger was last run.
13338
+ */
13339
+ last_run_time?: string | undefined;
13340
+ /**
13341
+ * Optional. The maximum number of consecutive failures allowed before
13342
+ *
13343
+ * @remarks
13344
+ * the trigger is automatically paused (status becomes ERROR).
13345
+ */
13346
+ max_consecutive_failures?: number | undefined;
13347
+ /**
13348
+ * Output only. The time when the trigger is scheduled to run next.
13349
+ */
13350
+ next_run_time?: string | undefined;
13351
+ /**
13352
+ * Output only. The ID of the last interaction created by this trigger.
13353
+ */
13354
+ previous_interaction_id?: string | undefined;
13355
+ /**
13356
+ * Required. The cron schedule on which the trigger should run.
13357
+ *
13358
+ * @remarks
13359
+ * Standard cron format.
13360
+ */
13361
+ schedule: string;
13362
+ /**
13363
+ * Output only. The current status of the trigger.
13364
+ */
13365
+ status?: TriggerStatus | undefined;
13366
+ /**
13367
+ * Required. Time zone in which the schedule should be interpreted.
13368
+ */
13369
+ time_zone: string;
13370
+ /**
13371
+ * Output only. The time when the trigger was last updated.
13372
+ */
13373
+ update_time?: string | undefined;
13374
+ };
13375
+
13376
+ declare type TriggerCreateParams$ = TriggerCreateParams;
13377
+
13378
+ /**
13379
+ * Parameters for creating a trigger.
13380
+ */
13381
+ declare type TriggerCreateParams = {
13382
+ /**
13383
+ * Required. The cron schedule on which the trigger should run. Standard cron format.
13384
+ */
13385
+ schedule: string;
13386
+ /**
13387
+ * Required. Time zone in which the schedule should be interpreted.
13388
+ */
13389
+ time_zone: string;
13390
+ /**
13391
+ * Optional. The display name of the trigger.
13392
+ */
13393
+ display_name?: string | undefined;
13394
+ /**
13395
+ * Optional. The environment ID for the trigger execution.
13396
+ */
13397
+ environment_id?: string | undefined;
13398
+ /**
13399
+ * Optional. The maximum number of consecutive failures allowed before the trigger is automatically paused (status becomes ERROR).
13400
+ */
13401
+ max_consecutive_failures?: number | undefined;
13402
+ /**
13403
+ * Optional. The execution timeout for the triggered interaction.
13404
+ */
13405
+ execution_timeout_seconds?: number | undefined;
13406
+ /**
13407
+ * Required. The interaction request template to be executed.
13408
+ */
13409
+ interaction: interactions.CreateAgentInteraction | interactions.CreateModelInteraction;
13410
+ };
13411
+
13412
+ declare type TriggerDeleteParams$ = DeleteTriggerParams;
13413
+
13414
+ declare type TriggerDeleteResponse$ = Empty;
13415
+
13416
+ declare type TriggerExecution$ = TriggerExecution;
13417
+
13418
+ /**
13419
+ * An execution instance of a trigger.
13420
+ */
13421
+ declare type TriggerExecution = {
13422
+ /**
13423
+ * Output only. The time when the execution finished.
13424
+ */
13425
+ end_time?: string | undefined;
13426
+ /**
13427
+ * Output only. The environment ID used for the execution.
13428
+ */
13429
+ environment_id?: string | undefined;
13430
+ /**
13431
+ * Output only. The error message if the execution failed.
13432
+ */
13433
+ error?: string | undefined;
13434
+ /**
13435
+ * Required. Output only. Identifier. The ID of the trigger execution.
13436
+ */
13437
+ id: string;
13438
+ /**
13439
+ * Output only. The ID of the interaction created by this execution, if any.
13440
+ */
13441
+ interaction_id?: string | undefined;
13442
+ /**
13443
+ * Output only. The time when the execution was scheduled to run.
13444
+ */
13445
+ scheduled_time?: string | undefined;
13446
+ /**
13447
+ * Output only. The time when the execution started.
13448
+ */
13449
+ start_time?: string | undefined;
13450
+ /**
13451
+ * Output only. The status of the execution.
13452
+ */
13453
+ status?: TriggerExecutionStatus | undefined;
13454
+ /**
13455
+ * Required. Output only. Identifier. The ID of the trigger that created this execution.
13456
+ */
13457
+ trigger_id: string;
13458
+ };
13459
+
13460
+ /**
13461
+ * @license
13462
+ * Copyright 2026 Google LLC
13463
+ * SPDX-License-Identifier: Apache-2.0
13464
+ *
13465
+ * g3-prettier-ignore-file
13466
+ */
13467
+ /**
13468
+ * Output only. The status of the execution.
13469
+ */
13470
+ declare type TriggerExecutionStatus = "in_progress" | "completed" | "failed" | "skipped" | "timed_out" | (string & {});
13471
+
13472
+ declare type TriggerGetParams$ = GetTriggerParams;
13473
+
13474
+ declare type TriggerListExecutionsParams$ = ListTriggerExecutionsParams;
13475
+
13476
+ declare type TriggerListExecutionsResponse$ = ListTriggerExecutionsResponse;
13477
+
13478
+ declare type TriggerListParams$ = ListTriggersParams;
13479
+
13480
+ declare type TriggerListResponse$ = ListTriggersResponse;
13481
+
13482
+ declare type TriggerRunParams$ = RunTriggerParams;
13483
+
13484
+ export declare namespace Triggers {
13485
+ export type ListTriggerExecutionsResponse = ListTriggerExecutionsResponse$;
13486
+ export type ListTriggersResponse = ListTriggersResponse$;
13487
+ export type Trigger = Trigger$;
13488
+ export type TriggerCreateParams = TriggerCreateParams$;
13489
+ export type TriggerDeleteParams = TriggerDeleteParams$;
13490
+ export type TriggerDeleteResponse = TriggerDeleteResponse$;
13491
+ export type TriggerExecution = TriggerExecution$;
13492
+ export type TriggerGetParams = TriggerGetParams$;
13493
+ export type TriggerListExecutionsParams = TriggerListExecutionsParams$;
13494
+ export type TriggerListExecutionsResponse = TriggerListExecutionsResponse$;
13495
+ export type TriggerListParams = TriggerListParams$;
13496
+ export type TriggerListResponse = TriggerListResponse$;
13497
+ export type TriggerRunParams = TriggerRunParams$;
13498
+ export type TriggerUpdate = TriggerUpdate$;
13499
+ export type TriggerUpdateParams = TriggerUpdateParams$;
13500
+ }
13501
+
13502
+ declare namespace triggers {
13503
+ export {
13504
+ ListTriggerExecutionsResponse,
13505
+ ListTriggersResponse,
13506
+ Interaction_2 as Interaction,
13507
+ TriggerCreateParams,
13508
+ TriggerExecutionStatus,
13509
+ TriggerExecution,
13510
+ TriggerUpdateStatus,
13511
+ TriggerUpdate,
13512
+ TriggerStatus,
13513
+ Trigger
13514
+ }
13515
+ }
13516
+
13517
+ /**
13518
+ * Output only. The current status of the trigger.
13519
+ */
13520
+ declare type TriggerStatus = "active" | "paused" | "error" | (string & {});
13521
+
13522
+ declare type TriggerUpdate$ = TriggerUpdate;
13523
+
13524
+ /**
13525
+ * Represents the fields of a Trigger that can be updated.
13526
+ */
13527
+ declare type TriggerUpdate = {
13528
+ /**
13529
+ * Optional. The display name of the trigger.
13530
+ */
13531
+ display_name?: string | undefined;
13532
+ /**
13533
+ * Optional. The status of the trigger.
13534
+ */
13535
+ status?: TriggerUpdateStatus | undefined;
13536
+ };
13537
+
13538
+ declare type TriggerUpdateParams$ = UpdateTriggerParams;
13539
+
13540
+ /**
13541
+ * @license
13542
+ * Copyright 2026 Google LLC
13543
+ * SPDX-License-Identifier: Apache-2.0
13544
+ *
13545
+ * g3-prettier-ignore-file
13546
+ */
13547
+ /**
13548
+ * Optional. The status of the trigger.
13549
+ */
13550
+ declare type TriggerUpdateStatus = "active" | "paused" | "error";
13551
+
12926
13552
  /** TunedModel for the Tuned Model of a Tuning Job. */
12927
13553
  export declare interface TunedModel {
12928
13554
  /** Output only. The resource name of the TunedModel.
@@ -13932,6 +14558,7 @@ declare namespace types {
13932
14558
  LanguageHints,
13933
14559
  AudioTranscriptionConfig,
13934
14560
  ProactivityConfig,
14561
+ HistoryConfig,
13935
14562
  CustomizedAvatar,
13936
14563
  AvatarConfig,
13937
14564
  LiveClientSetup,
@@ -14041,6 +14668,20 @@ export declare interface UpdateModelParameters {
14041
14668
  config?: UpdateModelConfig;
14042
14669
  }
14043
14670
 
14671
+ declare type UpdateTriggerParams = Omit<UpdateTriggerRequest, "id" | "body"> & UpdateTriggerRequest["body"];
14672
+
14673
+ declare type UpdateTriggerRequest = {
14674
+ /**
14675
+ * Which version of the API to use.
14676
+ */
14677
+ api_version?: string | undefined;
14678
+ /**
14679
+ * Resource name of the trigger.
14680
+ */
14681
+ id: string;
14682
+ body: triggers.TriggerUpdate;
14683
+ };
14684
+
14044
14685
  declare interface Uploader {
14045
14686
  /**
14046
14687
  * Uploads a file to the given upload url.