@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.
@@ -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. */
@@ -5787,10 +5982,12 @@ export declare class GoogleGenAI {
5787
5982
  private _webhooks;
5788
5983
  private _agents;
5789
5984
  private _nextGenClient;
5985
+ private _triggers;
5790
5986
  private getNextGenClient;
5791
5987
  get interactions(): GeminiNextGenInteractions;
5792
5988
  get webhooks(): GeminiNextGenWebhooks;
5793
5989
  get agents(): GeminiNextGenAgents;
5990
+ get triggers(): GeminiNextGenTriggers;
5794
5991
  constructor(options: GoogleGenAIOptions);
5795
5992
  }
5796
5993
 
@@ -5885,6 +6082,7 @@ declare interface GoogleGenAIParentClient {
5885
6082
  getBaseUrl(): string;
5886
6083
  getApiVersion(): string;
5887
6084
  getDefaultHeaders?(): Record<string, string>;
6085
+ getHeaders?(): Record<string, string> | undefined;
5888
6086
  getAuthHeaders(url?: string): Headers | Promise<Headers>;
5889
6087
  }
5890
6088
 
@@ -6616,6 +6814,16 @@ export declare enum HarmSeverity {
6616
6814
  HARM_SEVERITY_HIGH = "HARM_SEVERITY_HIGH"
6617
6815
  }
6618
6816
 
6817
+ /** Configuration for history exchange between client and server. */
6818
+ export declare interface HistoryConfig {
6819
+ /** If true, after sending `setup_complete`, the server will wait
6820
+ and at first process `client_content` messages until `turn_complete` is
6821
+ `true`. This initial history will not trigger a model call and
6822
+ may end with model content. After `turn_complete` is `true`, the client
6823
+ can start the realtime conversation via `realtime_input`. */
6824
+ initialHistoryInClientContent?: boolean;
6825
+ }
6826
+
6619
6827
  /** The location of the API key. This enum is not supported in Gemini API. */
6620
6828
  export declare enum HttpElementLocation {
6621
6829
  HTTP_IN_UNSPECIFIED = "HTTP_IN_UNSPECIFIED",
@@ -7186,20 +7394,10 @@ declare type Interaction = {
7186
7394
  * Configuration parameters for model interactions.
7187
7395
  */
7188
7396
  generation_config?: GenerationConfig_2 | undefined;
7189
- /**
7190
- * The name of the cached content used as context to serve the prediction.
7191
- *
7192
- * @remarks
7193
- * Note: only used in explicit caching, where users can have control over
7194
- * caching (e.g. what content to cache) and enjoy guaranteed cost savings.
7195
- * Format:
7196
- * `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
7197
- */
7198
- cached_content?: string | undefined;
7199
7397
  /**
7200
7398
  * Configuration parameters for the agent interaction.
7201
7399
  */
7202
- agent_config?: DynamicAgentConfig | DeepResearchAgentConfig | undefined;
7400
+ agent_config?: DynamicAgentConfig | DeepResearchAgentConfig | CodeMenderAgentConfig | AntigravityAgentConfig | undefined;
7203
7401
  /**
7204
7402
  * Safety settings for the interaction.
7205
7403
  */
@@ -7236,10 +7434,15 @@ declare type Interaction = {
7236
7434
  output_video?: VideoContent | undefined;
7237
7435
  };
7238
7436
 
7437
+ /**
7438
+ * Required. The interaction request template to be executed.
7439
+ */
7440
+ declare type Interaction_2 = interactions.CreateAgentInteraction | interactions.CreateModelInteraction;
7441
+
7239
7442
  /**
7240
7443
  * Configuration parameters for the agent interaction.
7241
7444
  */
7242
- declare type InteractionAgentConfig = DynamicAgentConfig | DeepResearchAgentConfig;
7445
+ declare type InteractionAgentConfig = DynamicAgentConfig | DeepResearchAgentConfig | CodeMenderAgentConfig | AntigravityAgentConfig;
7243
7446
 
7244
7447
  declare type InteractionCancelParams$ = CancelInteractionByIdParams;
7245
7448
 
@@ -7328,12 +7531,15 @@ declare type InteractionResponseFormat = Array<ResponseFormat_2> | ResponseForma
7328
7531
  export declare namespace Interactions {
7329
7532
  export type AllowedTools = AllowedTools$;
7330
7533
  export type Annotation = Annotation$;
7534
+ export type AntigravityAgentConfig = AntigravityAgentConfig$;
7331
7535
  export type AudioContent = AudioContent$;
7332
7536
  export type AudioResponseFormat = AudioResponseFormat$;
7333
7537
  export type CodeExecutionCallArguments = CodeExecutionCallArguments$;
7334
7538
  export interface CodeExecutionCallStep extends CodeExecutionCallStep$ {
7335
7539
  }
7336
7540
  export type CodeExecutionResultStep = CodeExecutionResultStep$;
7541
+ export interface CodeMenderAgentConfig extends CodeMenderAgentConfig$ {
7542
+ }
7337
7543
  export type Content = Content$;
7338
7544
  export type CreateAgentInteractionParamsNonStreaming = CreateAgentInteractionParamsNonStreaming$;
7339
7545
  export type CreateAgentInteractionParamsStreaming = CreateAgentInteractionParamsStreaming$;
@@ -7429,6 +7635,19 @@ export declare namespace Interactions {
7429
7635
  export namespace CodeExecutionCallStep {
7430
7636
  export type Arguments = Arguments$;
7431
7637
  }
7638
+ export namespace CodeMenderAgentConfig {
7639
+ export interface FindRequest extends FindRequest$ {
7640
+ }
7641
+ export interface FixRequest extends FixRequest$ {
7642
+ }
7643
+ export type SessionConfig = SessionConfig$;
7644
+ export namespace FindRequest {
7645
+ export type SourceFile = SourceFile$;
7646
+ }
7647
+ export namespace FixRequest {
7648
+ export type SourceFile = SourceFile$2;
7649
+ }
7650
+ }
7432
7651
  export namespace Environment {
7433
7652
  export type Allowlist = Allowlist$;
7434
7653
  export type Source = Source$;
@@ -7553,6 +7772,7 @@ declare namespace interactions {
7553
7772
  Transform,
7554
7773
  AllowlistEntry,
7555
7774
  Annotation,
7775
+ AntigravityAgentConfig,
7556
7776
  ArgumentsDelta,
7557
7777
  AudioContentMimeType,
7558
7778
  AudioContent,
@@ -7568,6 +7788,7 @@ declare namespace interactions {
7568
7788
  CodeExecutionResultDelta,
7569
7789
  CodeExecutionResultStep,
7570
7790
  CodeExecution,
7791
+ CodeMenderAgentConfig,
7571
7792
  DisabledSafetyPolicy,
7572
7793
  EnvironmentEnum,
7573
7794
  ComputerUse_2 as ComputerUse,
@@ -7597,6 +7818,7 @@ declare namespace interactions {
7597
7818
  ErrorT,
7598
7819
  ExaAISearchConfig,
7599
7820
  FileCitation,
7821
+ FileContent,
7600
7822
  FileSearchCallDelta,
7601
7823
  FileSearchCallStep,
7602
7824
  FileSearchResultDelta,
@@ -7604,6 +7826,9 @@ declare namespace interactions {
7604
7826
  FileSearchResult,
7605
7827
  FileSearch_2 as FileSearch,
7606
7828
  Filter,
7829
+ Mode,
7830
+ FindRequest,
7831
+ FixRequest,
7607
7832
  FunctionCallStep,
7608
7833
  FunctionResultDeltaResult,
7609
7834
  FunctionResultDeltaResultUnion,
@@ -7694,6 +7919,7 @@ declare namespace interactions {
7694
7919
  Threshold,
7695
7920
  SafetySetting_2 as SafetySetting,
7696
7921
  ServiceTier_2 as ServiceTier,
7922
+ SessionConfig,
7697
7923
  SourceType,
7698
7924
  Source,
7699
7925
  SpeechConfig_2 as SpeechConfig,
@@ -8154,6 +8380,99 @@ export declare class ListModelsResponse {
8154
8380
  models?: Model[];
8155
8381
  }
8156
8382
 
8383
+ declare type ListTriggerExecutionsParams = Omit<ListTriggerExecutionsRequest, "trigger_id">;
8384
+
8385
+ declare type ListTriggerExecutionsParams_2 = {
8386
+ api_version?: string;
8387
+ pageSize?: number;
8388
+ pageToken?: string;
8389
+ };
8390
+
8391
+ declare type ListTriggerExecutionsRequest = {
8392
+ /**
8393
+ * Which version of the API to use.
8394
+ */
8395
+ api_version?: string | undefined;
8396
+ /**
8397
+ * Resource name of the trigger.
8398
+ */
8399
+ trigger_id: string;
8400
+ /**
8401
+ * Optional. The maximum number of executions to return per page.
8402
+ */
8403
+ page_size?: number | undefined;
8404
+ /**
8405
+ * Optional. A page token from a previous ListTriggerExecutions call.
8406
+ */
8407
+ page_token?: string | undefined;
8408
+ };
8409
+
8410
+ declare type ListTriggerExecutionsResponse$ = ListTriggerExecutionsResponse;
8411
+
8412
+ /**
8413
+ * Response message for TriggerService.ListTriggerExecutions.
8414
+ */
8415
+ declare type ListTriggerExecutionsResponse = {
8416
+ /**
8417
+ * A page token, received from a previous `ListTriggerExecutions` call.
8418
+ *
8419
+ * @remarks
8420
+ * Provide this to retrieve the subsequent page.
8421
+ */
8422
+ next_page_token?: string | undefined;
8423
+ /**
8424
+ * The list of trigger executions.
8425
+ */
8426
+ trigger_executions?: Array<TriggerExecution> | undefined;
8427
+ };
8428
+
8429
+ declare type ListTriggersParams = ListTriggersRequest;
8430
+
8431
+ declare type ListTriggersParams_2 = {
8432
+ api_version?: string;
8433
+ filter?: string;
8434
+ pageSize?: number;
8435
+ pageToken?: string;
8436
+ };
8437
+
8438
+ declare type ListTriggersRequest = {
8439
+ /**
8440
+ * Which version of the API to use.
8441
+ */
8442
+ api_version?: string | undefined;
8443
+ /**
8444
+ * Optional. Filter expression (e.g., by state).
8445
+ */
8446
+ filter?: string | undefined;
8447
+ /**
8448
+ * Optional. The maximum number of triggers to return per page.
8449
+ */
8450
+ page_size?: number | undefined;
8451
+ /**
8452
+ * Optional. A page token from a previous ListTriggers call.
8453
+ */
8454
+ page_token?: string | undefined;
8455
+ };
8456
+
8457
+ declare type ListTriggersResponse$ = ListTriggersResponse;
8458
+
8459
+ /**
8460
+ * Response message for TriggerService.ListTriggers.
8461
+ */
8462
+ declare type ListTriggersResponse = {
8463
+ /**
8464
+ * A page token, received from a previous `ListTriggers` call.
8465
+ *
8466
+ * @remarks
8467
+ * Provide this to retrieve the subsequent page.
8468
+ */
8469
+ next_page_token?: string | undefined;
8470
+ /**
8471
+ * The list of triggers.
8472
+ */
8473
+ triggers?: Array<Trigger> | undefined;
8474
+ };
8475
+
8157
8476
  /** Configuration for the list tuning jobs method. */
8158
8477
  export declare interface ListTuningJobsConfig {
8159
8478
  /** Used to override HTTP request options. */
@@ -8409,6 +8728,8 @@ export declare interface LiveClientSetup {
8409
8728
  response.
8410
8729
  */
8411
8730
  safetySettings?: SafetySetting[];
8731
+ /** Configures the exchange of history between the client and the server. */
8732
+ historyConfig?: HistoryConfig;
8412
8733
  }
8413
8734
 
8414
8735
  /** Client generated response to a `ToolCall` received from the server.
@@ -9360,6 +9681,11 @@ declare type ModalityTokens = {
9360
9681
  tokens?: number | undefined;
9361
9682
  };
9362
9683
 
9684
+ /**
9685
+ * The mode of the find session.
9686
+ */
9687
+ declare type Mode = "scan" | "verify" | (string & {});
9688
+
9363
9689
  declare type Model$ = Model_2;
9364
9690
 
9365
9691
  /** A trained machine learning model. */
@@ -9427,7 +9753,7 @@ export declare interface Model {
9427
9753
  /**
9428
9754
  * The model that will complete your prompt.\n\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details.
9429
9755
  */
9430
- 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 & {});
9756
+ 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 & {});
9431
9757
 
9432
9758
  /** 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. */
9433
9759
  export declare interface ModelArmorConfig {
@@ -11340,6 +11666,19 @@ export declare interface RougeMetricValue {
11340
11666
  score?: number;
11341
11667
  }
11342
11668
 
11669
+ declare type RunTriggerParams = Omit<RunTriggerRequest, "trigger_id">;
11670
+
11671
+ declare type RunTriggerRequest = {
11672
+ /**
11673
+ * Which version of the API to use.
11674
+ */
11675
+ api_version?: string | undefined;
11676
+ /**
11677
+ * Resource name of the trigger.
11678
+ */
11679
+ trigger_id: string;
11680
+ };
11681
+
11343
11682
  /** Safety attributes of a GeneratedImage or the user-provided prompt. */
11344
11683
  export declare interface SafetyAttributes {
11345
11684
  /** List of RAI categories. */
@@ -11850,6 +12189,28 @@ export declare class Session {
11850
12189
  close(): void;
11851
12190
  }
11852
12191
 
12192
+ declare type SessionConfig$ = SessionConfig;
12193
+
12194
+ /**
12195
+ * @license
12196
+ * Copyright 2026 Google LLC
12197
+ * SPDX-License-Identifier: Apache-2.0
12198
+ *
12199
+ * g3-prettier-ignore-file
12200
+ */
12201
+ /**
12202
+ * The configuration of CodeMender sessions.
12203
+ */
12204
+ declare type SessionConfig = {
12205
+ /**
12206
+ * The maximum number of interaction rounds the agent is allowed to perform
12207
+ *
12208
+ * @remarks
12209
+ * before reaching a timeout.
12210
+ */
12211
+ max_rounds?: number | undefined;
12212
+ };
12213
+
11853
12214
  /** Configuration of session resumption mechanism.
11854
12215
 
11855
12216
  Included in `LiveConnectConfig.session_resumption`. If included server
@@ -11974,6 +12335,10 @@ declare type Source = {
11974
12335
  type?: SourceType | undefined;
11975
12336
  };
11976
12337
 
12338
+ declare type SourceFile$ = FileContent;
12339
+
12340
+ declare type SourceFile$2 = FileContent;
12341
+
11977
12342
  /**
11978
12343
  * @license
11979
12344
  * Copyright 2026 Google LLC
@@ -12930,6 +13295,267 @@ export declare interface TranslationConfig {
12930
13295
  targetLanguageCode?: string;
12931
13296
  }
12932
13297
 
13298
+ declare type Trigger$ = Trigger;
13299
+
13300
+ /**
13301
+ * A trigger configuration that is scheduled to run an agent.
13302
+ */
13303
+ declare type Trigger = {
13304
+ /**
13305
+ * Output only. The number of consecutive failures that have occurred
13306
+ *
13307
+ * @remarks
13308
+ * since the last successful execution.
13309
+ */
13310
+ consecutive_failure_count?: number | undefined;
13311
+ /**
13312
+ * Output only. The time when the trigger was created.
13313
+ */
13314
+ create_time?: string | undefined;
13315
+ /**
13316
+ * Optional. The display name of the trigger.
13317
+ */
13318
+ display_name?: string | undefined;
13319
+ /**
13320
+ * Optional. The environment ID for the trigger execution.
13321
+ */
13322
+ environment_id?: string | undefined;
13323
+ /**
13324
+ * Optional. The execution timeout for the triggered interaction.
13325
+ */
13326
+ execution_timeout_seconds?: number | undefined;
13327
+ /**
13328
+ * Required. Output only. Identifier. The ID of the trigger.
13329
+ */
13330
+ id: string;
13331
+ /**
13332
+ * The Interaction resource.
13333
+ */
13334
+ interaction: interactions.Interaction;
13335
+ /**
13336
+ * Output only. The time when the trigger was last paused.
13337
+ */
13338
+ last_pause_time?: string | undefined;
13339
+ /**
13340
+ * Output only. The time when the trigger was last resumed.
13341
+ */
13342
+ last_resume_time?: string | undefined;
13343
+ /**
13344
+ * Output only. The time when the trigger was last run.
13345
+ */
13346
+ last_run_time?: string | undefined;
13347
+ /**
13348
+ * Optional. The maximum number of consecutive failures allowed before
13349
+ *
13350
+ * @remarks
13351
+ * the trigger is automatically paused (status becomes ERROR).
13352
+ */
13353
+ max_consecutive_failures?: number | undefined;
13354
+ /**
13355
+ * Output only. The time when the trigger is scheduled to run next.
13356
+ */
13357
+ next_run_time?: string | undefined;
13358
+ /**
13359
+ * Output only. The ID of the last interaction created by this trigger.
13360
+ */
13361
+ previous_interaction_id?: string | undefined;
13362
+ /**
13363
+ * Required. The cron schedule on which the trigger should run.
13364
+ *
13365
+ * @remarks
13366
+ * Standard cron format.
13367
+ */
13368
+ schedule: string;
13369
+ /**
13370
+ * Output only. The current status of the trigger.
13371
+ */
13372
+ status?: TriggerStatus | undefined;
13373
+ /**
13374
+ * Required. Time zone in which the schedule should be interpreted.
13375
+ */
13376
+ time_zone: string;
13377
+ /**
13378
+ * Output only. The time when the trigger was last updated.
13379
+ */
13380
+ update_time?: string | undefined;
13381
+ };
13382
+
13383
+ declare type TriggerCreateParams$ = TriggerCreateParams;
13384
+
13385
+ /**
13386
+ * Parameters for creating a trigger.
13387
+ */
13388
+ declare type TriggerCreateParams = {
13389
+ /**
13390
+ * Required. The cron schedule on which the trigger should run. Standard cron format.
13391
+ */
13392
+ schedule: string;
13393
+ /**
13394
+ * Required. Time zone in which the schedule should be interpreted.
13395
+ */
13396
+ time_zone: string;
13397
+ /**
13398
+ * Optional. The display name of the trigger.
13399
+ */
13400
+ display_name?: string | undefined;
13401
+ /**
13402
+ * Optional. The environment ID for the trigger execution.
13403
+ */
13404
+ environment_id?: string | undefined;
13405
+ /**
13406
+ * Optional. The maximum number of consecutive failures allowed before the trigger is automatically paused (status becomes ERROR).
13407
+ */
13408
+ max_consecutive_failures?: number | undefined;
13409
+ /**
13410
+ * Optional. The execution timeout for the triggered interaction.
13411
+ */
13412
+ execution_timeout_seconds?: number | undefined;
13413
+ /**
13414
+ * Required. The interaction request template to be executed.
13415
+ */
13416
+ interaction: interactions.CreateAgentInteraction | interactions.CreateModelInteraction;
13417
+ };
13418
+
13419
+ declare type TriggerDeleteParams$ = DeleteTriggerParams;
13420
+
13421
+ declare type TriggerDeleteResponse$ = Empty;
13422
+
13423
+ declare type TriggerExecution$ = TriggerExecution;
13424
+
13425
+ /**
13426
+ * An execution instance of a trigger.
13427
+ */
13428
+ declare type TriggerExecution = {
13429
+ /**
13430
+ * Output only. The time when the execution finished.
13431
+ */
13432
+ end_time?: string | undefined;
13433
+ /**
13434
+ * Output only. The environment ID used for the execution.
13435
+ */
13436
+ environment_id?: string | undefined;
13437
+ /**
13438
+ * Output only. The error message if the execution failed.
13439
+ */
13440
+ error?: string | undefined;
13441
+ /**
13442
+ * Required. Output only. Identifier. The ID of the trigger execution.
13443
+ */
13444
+ id: string;
13445
+ /**
13446
+ * Output only. The ID of the interaction created by this execution, if any.
13447
+ */
13448
+ interaction_id?: string | undefined;
13449
+ /**
13450
+ * Output only. The time when the execution was scheduled to run.
13451
+ */
13452
+ scheduled_time?: string | undefined;
13453
+ /**
13454
+ * Output only. The time when the execution started.
13455
+ */
13456
+ start_time?: string | undefined;
13457
+ /**
13458
+ * Output only. The status of the execution.
13459
+ */
13460
+ status?: TriggerExecutionStatus | undefined;
13461
+ /**
13462
+ * Required. Output only. Identifier. The ID of the trigger that created this execution.
13463
+ */
13464
+ trigger_id: string;
13465
+ };
13466
+
13467
+ /**
13468
+ * @license
13469
+ * Copyright 2026 Google LLC
13470
+ * SPDX-License-Identifier: Apache-2.0
13471
+ *
13472
+ * g3-prettier-ignore-file
13473
+ */
13474
+ /**
13475
+ * Output only. The status of the execution.
13476
+ */
13477
+ declare type TriggerExecutionStatus = "in_progress" | "completed" | "failed" | "skipped" | "timed_out" | (string & {});
13478
+
13479
+ declare type TriggerGetParams$ = GetTriggerParams;
13480
+
13481
+ declare type TriggerListExecutionsParams$ = ListTriggerExecutionsParams;
13482
+
13483
+ declare type TriggerListExecutionsResponse$ = ListTriggerExecutionsResponse;
13484
+
13485
+ declare type TriggerListParams$ = ListTriggersParams;
13486
+
13487
+ declare type TriggerListResponse$ = ListTriggersResponse;
13488
+
13489
+ declare type TriggerRunParams$ = RunTriggerParams;
13490
+
13491
+ export declare namespace Triggers {
13492
+ export type ListTriggerExecutionsResponse = ListTriggerExecutionsResponse$;
13493
+ export type ListTriggersResponse = ListTriggersResponse$;
13494
+ export type Trigger = Trigger$;
13495
+ export type TriggerCreateParams = TriggerCreateParams$;
13496
+ export type TriggerDeleteParams = TriggerDeleteParams$;
13497
+ export type TriggerDeleteResponse = TriggerDeleteResponse$;
13498
+ export type TriggerExecution = TriggerExecution$;
13499
+ export type TriggerGetParams = TriggerGetParams$;
13500
+ export type TriggerListExecutionsParams = TriggerListExecutionsParams$;
13501
+ export type TriggerListExecutionsResponse = TriggerListExecutionsResponse$;
13502
+ export type TriggerListParams = TriggerListParams$;
13503
+ export type TriggerListResponse = TriggerListResponse$;
13504
+ export type TriggerRunParams = TriggerRunParams$;
13505
+ export type TriggerUpdate = TriggerUpdate$;
13506
+ export type TriggerUpdateParams = TriggerUpdateParams$;
13507
+ }
13508
+
13509
+ declare namespace triggers {
13510
+ export {
13511
+ ListTriggerExecutionsResponse,
13512
+ ListTriggersResponse,
13513
+ Interaction_2 as Interaction,
13514
+ TriggerCreateParams,
13515
+ TriggerExecutionStatus,
13516
+ TriggerExecution,
13517
+ TriggerUpdateStatus,
13518
+ TriggerUpdate,
13519
+ TriggerStatus,
13520
+ Trigger
13521
+ }
13522
+ }
13523
+
13524
+ /**
13525
+ * Output only. The current status of the trigger.
13526
+ */
13527
+ declare type TriggerStatus = "active" | "paused" | "error" | (string & {});
13528
+
13529
+ declare type TriggerUpdate$ = TriggerUpdate;
13530
+
13531
+ /**
13532
+ * Represents the fields of a Trigger that can be updated.
13533
+ */
13534
+ declare type TriggerUpdate = {
13535
+ /**
13536
+ * Optional. The display name of the trigger.
13537
+ */
13538
+ display_name?: string | undefined;
13539
+ /**
13540
+ * Optional. The status of the trigger.
13541
+ */
13542
+ status?: TriggerUpdateStatus | undefined;
13543
+ };
13544
+
13545
+ declare type TriggerUpdateParams$ = UpdateTriggerParams;
13546
+
13547
+ /**
13548
+ * @license
13549
+ * Copyright 2026 Google LLC
13550
+ * SPDX-License-Identifier: Apache-2.0
13551
+ *
13552
+ * g3-prettier-ignore-file
13553
+ */
13554
+ /**
13555
+ * Optional. The status of the trigger.
13556
+ */
13557
+ declare type TriggerUpdateStatus = "active" | "paused" | "error";
13558
+
12933
13559
  /** TunedModel for the Tuned Model of a Tuning Job. */
12934
13560
  export declare interface TunedModel {
12935
13561
  /** Output only. The resource name of the TunedModel.
@@ -13939,6 +14565,7 @@ declare namespace types {
13939
14565
  LanguageHints,
13940
14566
  AudioTranscriptionConfig,
13941
14567
  ProactivityConfig,
14568
+ HistoryConfig,
13942
14569
  CustomizedAvatar,
13943
14570
  AvatarConfig,
13944
14571
  LiveClientSetup,
@@ -14048,6 +14675,20 @@ export declare interface UpdateModelParameters {
14048
14675
  config?: UpdateModelConfig;
14049
14676
  }
14050
14677
 
14678
+ declare type UpdateTriggerParams = Omit<UpdateTriggerRequest, "id" | "body"> & UpdateTriggerRequest["body"];
14679
+
14680
+ declare type UpdateTriggerRequest = {
14681
+ /**
14682
+ * Which version of the API to use.
14683
+ */
14684
+ api_version?: string | undefined;
14685
+ /**
14686
+ * Resource name of the trigger.
14687
+ */
14688
+ id: string;
14689
+ body: triggers.TriggerUpdate;
14690
+ };
14691
+
14051
14692
  declare interface Uploader {
14052
14693
  /**
14053
14694
  * Uploads a file to the given upload url.