@google/genai 2.10.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/genai.d.ts CHANGED
@@ -80,30 +80,30 @@ declare type Agent$ = Agent;
80
80
  * }
81
81
  */
82
82
  declare type Agent = {
83
- /**
84
- * The unique identifier for the agent.
85
- */
86
- id?: string | undefined;
87
83
  /**
88
84
  * The base agent to extend.
89
85
  */
90
86
  base_agent?: string | undefined;
91
87
  /**
92
- * System instruction for the agent.
88
+ * The environment configuration for the agent.
93
89
  */
94
- system_instruction?: string | undefined;
90
+ base_environment?: interactions.Environment | string | undefined;
95
91
  /**
96
92
  * Agent description for developers to quickly read and understand.
97
93
  */
98
94
  description?: string | undefined;
99
95
  /**
100
- * The tools available to the agent.
96
+ * The unique identifier for the agent.
101
97
  */
102
- tools?: Array<AgentTool> | undefined;
98
+ id?: string | undefined;
103
99
  /**
104
- * The environment configuration for the agent.
100
+ * System instruction for the agent.
105
101
  */
106
- base_environment?: interactions.Environment | string | undefined;
102
+ system_instruction?: string | undefined;
103
+ /**
104
+ * The tools available to the agent.
105
+ */
106
+ tools?: Array<AgentTool> | undefined;
107
107
  };
108
108
 
109
109
  declare type AgentCreateParams$ = CreateAgentParams;
@@ -160,7 +160,7 @@ declare type AgentTool$ = AgentTool;
160
160
  /**
161
161
  * A tool that the agent can use.
162
162
  */
163
- declare type AgentTool = interactions.CodeExecution | interactions.GoogleSearch | interactions.URLContext | interactions.MCPServer;
163
+ declare type AgentTool = interactions.CodeExecution | interactions.GoogleSearch | interactions.URLContext | interactions.MCPServer | interactions.FunctionT;
164
164
 
165
165
  /** Aggregation metric. This enum is not supported in Gemini API. */
166
166
  export declare enum AggregationMetric {
@@ -251,8 +251,6 @@ declare type AllowedTools = {
251
251
 
252
252
  declare type Allowlist$ = Allowlist;
253
253
 
254
- declare type Allowlist$2 = AllowlistEntry;
255
-
256
254
  /**
257
255
  * Outbound networking configuration for the sandbox. When specified, restricts which external domains the sandbox can reach. Omit entirely to allow all outbound traffic with no header injection.
258
256
  */
@@ -263,13 +261,6 @@ declare type Allowlist = {
263
261
  allowlist?: Array<AllowlistEntry> | undefined;
264
262
  };
265
263
 
266
- /**
267
- * @license
268
- * Copyright 2026 Google LLC
269
- * SPDX-License-Identifier: Apache-2.0
270
- *
271
- * g3-prettier-ignore-file
272
- */
273
264
  /**
274
265
  * A single domain allowlist rule with optional header injection.
275
266
  */
@@ -279,9 +270,11 @@ declare type AllowlistEntry = {
279
270
  */
280
271
  domain: string;
281
272
  /**
282
- * Headers to inject on all outbound requests matching this domain. Each entry is a flat {header_name: header_value} object. The egress proxy injects these automatically.
273
+ * Headers to inject on all outbound requests matching this domain. Accepts a single dict or a list of dicts. The egress proxy injects these automatically.
283
274
  */
284
- transform?: Array<{
275
+ transform?: {
276
+ [k: string]: string;
277
+ } | Array<{
285
278
  [k: string]: string;
286
279
  }> | undefined;
287
280
  };
@@ -293,6 +286,30 @@ declare type Annotation$ = Annotation;
293
286
  */
294
287
  declare type Annotation = URLCitation | FileCitation | PlaceCitation;
295
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
+
296
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. */
297
314
  export declare interface ApiAuth {
298
315
  /** The API secret. */
@@ -496,24 +513,9 @@ declare type Arguments$2 = GoogleMapsCallArguments;
496
513
 
497
514
  declare type Arguments$3 = GoogleSearchCallArguments;
498
515
 
499
- declare type Arguments$4 = Arguments;
516
+ declare type Arguments$4 = RetrievalCallArguments;
500
517
 
501
- /**
502
- * @license
503
- * Copyright 2026 Google LLC
504
- * SPDX-License-Identifier: Apache-2.0
505
- *
506
- * g3-prettier-ignore-file
507
- */
508
- /**
509
- * The arguments to pass to the URL context.
510
- */
511
- declare type Arguments = {
512
- /**
513
- * The URLs to fetch.
514
- */
515
- urls?: Array<string> | undefined;
516
- };
518
+ declare type Arguments$5 = URLContextCallArguments;
517
519
 
518
520
  declare type ArgumentsDelta$ = ArgumentsDelta;
519
521
 
@@ -525,10 +527,74 @@ declare type ArgumentsDelta$ = ArgumentsDelta;
525
527
  * g3-prettier-ignore-file
526
528
  */
527
529
  declare type ArgumentsDelta = {
528
- type: "arguments_delta";
529
530
  arguments?: string | undefined;
531
+ type: "arguments_delta";
530
532
  };
531
533
 
534
+ /** The aspect ratio for the image output. */
535
+ export declare enum AspectRatio {
536
+ /**
537
+ * Default value. This value is unused.
538
+ */
539
+ ASPECT_RATIO_UNSPECIFIED = "ASPECT_RATIO_UNSPECIFIED",
540
+ /**
541
+ * 1:1 aspect ratio.
542
+ */
543
+ ASPECT_RATIO_ONE_BY_ONE = "ASPECT_RATIO_ONE_BY_ONE",
544
+ /**
545
+ * 2:3 aspect ratio.
546
+ */
547
+ ASPECT_RATIO_TWO_BY_THREE = "ASPECT_RATIO_TWO_BY_THREE",
548
+ /**
549
+ * 3:2 aspect ratio.
550
+ */
551
+ ASPECT_RATIO_THREE_BY_TWO = "ASPECT_RATIO_THREE_BY_TWO",
552
+ /**
553
+ * 3:4 aspect ratio.
554
+ */
555
+ ASPECT_RATIO_THREE_BY_FOUR = "ASPECT_RATIO_THREE_BY_FOUR",
556
+ /**
557
+ * 4:3 aspect ratio.
558
+ */
559
+ ASPECT_RATIO_FOUR_BY_THREE = "ASPECT_RATIO_FOUR_BY_THREE",
560
+ /**
561
+ * 4:5 aspect ratio.
562
+ */
563
+ ASPECT_RATIO_FOUR_BY_FIVE = "ASPECT_RATIO_FOUR_BY_FIVE",
564
+ /**
565
+ * 5:4 aspect ratio.
566
+ */
567
+ ASPECT_RATIO_FIVE_BY_FOUR = "ASPECT_RATIO_FIVE_BY_FOUR",
568
+ /**
569
+ * 9:16 aspect ratio.
570
+ */
571
+ ASPECT_RATIO_NINE_BY_SIXTEEN = "ASPECT_RATIO_NINE_BY_SIXTEEN",
572
+ /**
573
+ * 16:9 aspect ratio.
574
+ */
575
+ ASPECT_RATIO_SIXTEEN_BY_NINE = "ASPECT_RATIO_SIXTEEN_BY_NINE",
576
+ /**
577
+ * 21:9 aspect ratio.
578
+ */
579
+ ASPECT_RATIO_TWENTY_ONE_BY_NINE = "ASPECT_RATIO_TWENTY_ONE_BY_NINE",
580
+ /**
581
+ * 1:8 aspect ratio.
582
+ */
583
+ ASPECT_RATIO_ONE_BY_EIGHT = "ASPECT_RATIO_ONE_BY_EIGHT",
584
+ /**
585
+ * 8:1 aspect ratio.
586
+ */
587
+ ASPECT_RATIO_EIGHT_BY_ONE = "ASPECT_RATIO_EIGHT_BY_ONE",
588
+ /**
589
+ * 1:4 aspect ratio.
590
+ */
591
+ ASPECT_RATIO_ONE_BY_FOUR = "ASPECT_RATIO_ONE_BY_FOUR",
592
+ /**
593
+ * 4:1 aspect ratio.
594
+ */
595
+ ASPECT_RATIO_FOUR_BY_ONE = "ASPECT_RATIO_FOUR_BY_ONE"
596
+ }
597
+
532
598
  declare type Audio$ = AudioDelta;
533
599
 
534
600
  /** Representation of an audio chunk. */
@@ -548,27 +614,27 @@ declare type AudioContent$ = AudioContent;
548
614
  * An audio content block.
549
615
  */
550
616
  declare type AudioContent = {
551
- type: "audio";
552
617
  /**
553
- * The audio content.
618
+ * The number of audio channels.
554
619
  */
555
- data?: string | undefined;
620
+ channels?: number | undefined;
556
621
  /**
557
- * The URI of the audio.
622
+ * The audio content.
558
623
  */
559
- uri?: string | undefined;
624
+ data?: string | undefined;
560
625
  /**
561
626
  * The mime type of the audio.
562
627
  */
563
628
  mime_type?: AudioContentMimeType | undefined;
564
- /**
565
- * The number of audio channels.
566
- */
567
- channels?: number | undefined;
568
629
  /**
569
630
  * The sample rate of the audio.
570
631
  */
571
632
  sample_rate?: number | undefined;
633
+ type: "audio";
634
+ /**
635
+ * The URI of the audio.
636
+ */
637
+ uri?: string | undefined;
572
638
  };
573
639
 
574
640
  /**
@@ -584,9 +650,11 @@ declare type AudioContent = {
584
650
  declare type AudioContentMimeType = "audio/wav" | "audio/mp3" | "audio/aiff" | "audio/aac" | "audio/ogg" | "audio/flac" | "audio/mpeg" | "audio/m4a" | "audio/l16" | "audio/opus" | "audio/alaw" | "audio/mulaw" | (string & {});
585
651
 
586
652
  declare type AudioDelta = {
587
- type: "audio";
653
+ /**
654
+ * The number of audio channels.
655
+ */
656
+ channels?: number | undefined;
588
657
  data?: string | undefined;
589
- uri?: string | undefined;
590
658
  mime_type?: AudioDeltaMimeType | undefined;
591
659
  /**
592
660
  * Deprecated. Use sample_rate instead. The value is ignored.
@@ -598,10 +666,8 @@ declare type AudioDelta = {
598
666
  * The sample rate of the audio.
599
667
  */
600
668
  sample_rate?: number | undefined;
601
- /**
602
- * The number of audio channels.
603
- */
604
- channels?: number | undefined;
669
+ type: "audio";
670
+ uri?: string | undefined;
605
671
  };
606
672
 
607
673
  /**
@@ -613,39 +679,46 @@ declare type AudioDelta = {
613
679
  */
614
680
  declare type AudioDeltaMimeType = "audio/wav" | "audio/mp3" | "audio/aiff" | "audio/aac" | "audio/ogg" | "audio/flac" | "audio/mpeg" | "audio/m4a" | "audio/l16" | "audio/opus" | "audio/alaw" | "audio/mulaw" | (string & {});
615
681
 
616
- declare type AudioResponseFormat$ = AudioResponseFormat;
682
+ declare type AudioResponseFormat$ = AudioResponseFormat_2;
683
+
684
+ /** Configuration for audio-specific output formatting. */
685
+ export declare class AudioResponseFormat {
686
+ /** Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus). */
687
+ bitRate?: number;
688
+ /** Optional. Delivery mode for the generated content. */
689
+ delivery?: Delivery;
690
+ /** Optional. The MIME type of the audio output. */
691
+ mimeType?: string;
692
+ /** Optional. Sample rate for the generated audio in Hertz. */
693
+ sampleRate?: number;
694
+ }
617
695
 
618
696
  /**
619
697
  * Configuration for audio output format.
620
698
  */
621
- declare type AudioResponseFormat = {
622
- type: "audio";
699
+ declare type AudioResponseFormat_2 = {
623
700
  /**
624
- * The MIME type of the audio output.
701
+ * Bit rate in bits per second (bps). Only applicable for compressed formats
702
+ *
703
+ * @remarks
704
+ * (MP3, Opus).
625
705
  */
626
- mime_type?: AudioResponseFormatMimeType | undefined;
706
+ bit_rate?: number | undefined;
627
707
  /**
628
708
  * The delivery mode for the audio output.
629
709
  */
630
710
  delivery?: AudioResponseFormatDelivery | undefined;
631
711
  /**
632
- * Sample rate in Hz.
712
+ * The MIME type of the audio output.
633
713
  */
634
- sample_rate?: number | undefined;
714
+ mime_type?: AudioResponseFormatMimeType | undefined;
635
715
  /**
636
- * Bit rate in bits per second (bps). Only applicable for compressed formats
637
- *
638
- * @remarks
639
- * (MP3, Opus).
716
+ * Sample rate in Hz.
640
717
  */
641
- bit_rate?: number | undefined;
718
+ sample_rate?: number | undefined;
719
+ type: "audio";
642
720
  };
643
721
 
644
- /**
645
- * The delivery mode for the audio output.
646
- */
647
- declare type AudioResponseFormatDelivery = "inline" | "uri" | (string & {});
648
-
649
722
  /**
650
723
  * @license
651
724
  * Copyright 2026 Google LLC
@@ -653,6 +726,11 @@ declare type AudioResponseFormatDelivery = "inline" | "uri" | (string & {});
653
726
  *
654
727
  * g3-prettier-ignore-file
655
728
  */
729
+ /**
730
+ * The delivery mode for the audio output.
731
+ */
732
+ declare type AudioResponseFormatDelivery = "inline" | "uri" | (string & {});
733
+
656
734
  /**
657
735
  * The MIME type of the audio output.
658
736
  */
@@ -1103,7 +1181,7 @@ export declare interface BatchJobSource {
1103
1181
 
1104
1182
  export declare type BatchJobSourceUnion = BatchJobSource | InlinedRequest[] | string;
1105
1183
 
1106
- /** Specifies the function Behavior. Currently only non-blocking functions are supported. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method. */
1184
+ /** Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method. */
1107
1185
  export declare enum Behavior {
1108
1186
  /**
1109
1187
  * This value is unspecified.
@@ -1618,18 +1696,17 @@ declare type CodeExecutionCallArguments$ = CodeExecutionCallArguments;
1618
1696
  * The arguments to pass to the code execution.
1619
1697
  */
1620
1698
  declare type CodeExecutionCallArguments = {
1621
- /**
1622
- * Programming language of the `code`.
1623
- */
1624
- language?: Language_2 | undefined;
1625
1699
  /**
1626
1700
  * The code to be executed.
1627
1701
  */
1628
1702
  code?: string | undefined;
1703
+ /**
1704
+ * Programming language of the `code`.
1705
+ */
1706
+ language?: Language_2 | undefined;
1629
1707
  };
1630
1708
 
1631
1709
  declare type CodeExecutionCallDelta = {
1632
- type: "code_execution_call";
1633
1710
  /**
1634
1711
  * The arguments to pass to the code execution.
1635
1712
  */
@@ -1638,6 +1715,7 @@ declare type CodeExecutionCallDelta = {
1638
1715
  * A signature hash for backend validation.
1639
1716
  */
1640
1717
  signature?: string | undefined;
1718
+ type: "code_execution_call";
1641
1719
  };
1642
1720
 
1643
1721
  declare type CodeExecutionCallStep$ = CodeExecutionCallStep;
@@ -1646,7 +1724,6 @@ declare type CodeExecutionCallStep$ = CodeExecutionCallStep;
1646
1724
  * Code execution call step.
1647
1725
  */
1648
1726
  declare type CodeExecutionCallStep = {
1649
- type: "code_execution_call";
1650
1727
  /**
1651
1728
  * The arguments to pass to the code execution.
1652
1729
  */
@@ -1659,6 +1736,7 @@ declare type CodeExecutionCallStep = {
1659
1736
  * A signature hash for backend validation.
1660
1737
  */
1661
1738
  signature?: string | undefined;
1739
+ type: "code_execution_call";
1662
1740
  };
1663
1741
 
1664
1742
  declare type CodeExecutionResult$ = CodeExecutionResultDelta;
@@ -1681,13 +1759,13 @@ export declare interface CodeExecutionResult {
1681
1759
  * g3-prettier-ignore-file
1682
1760
  */
1683
1761
  declare type CodeExecutionResultDelta = {
1684
- type: "code_execution_result";
1685
- result: string;
1686
1762
  is_error?: boolean | undefined;
1763
+ result: string;
1687
1764
  /**
1688
1765
  * A signature hash for backend validation.
1689
1766
  */
1690
1767
  signature?: string | undefined;
1768
+ type: "code_execution_result";
1691
1769
  };
1692
1770
 
1693
1771
  declare type CodeExecutionResultStep$ = CodeExecutionResultStep;
@@ -1703,23 +1781,64 @@ declare type CodeExecutionResultStep$ = CodeExecutionResultStep;
1703
1781
  * Code execution result step.
1704
1782
  */
1705
1783
  declare type CodeExecutionResultStep = {
1706
- type: "code_execution_result";
1707
1784
  /**
1708
- * Required. The output of the code execution.
1785
+ * Required. ID to match the ID from the function call block.
1709
1786
  */
1710
- result: string;
1787
+ call_id: string;
1711
1788
  /**
1712
1789
  * Whether the code execution resulted in an error.
1713
1790
  */
1714
1791
  is_error?: boolean | undefined;
1715
1792
  /**
1716
- * Required. ID to match the ID from the function call block.
1793
+ * Required. The output of the code execution.
1717
1794
  */
1718
- call_id: string;
1795
+ result: string;
1719
1796
  /**
1720
1797
  * A signature hash for backend validation.
1721
1798
  */
1722
1799
  signature?: string | undefined;
1800
+ type: "code_execution_result";
1801
+ };
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";
1723
1842
  };
1724
1843
 
1725
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. */
@@ -1736,13 +1855,15 @@ export declare interface CompletionStats {
1736
1855
 
1737
1856
  /** Composite reinforcement tuning reward config. */
1738
1857
  export declare interface CompositeReinforcementTuningRewardConfig {
1858
+ /** List of reward function configurations with weights. */
1739
1859
  weightedRewardConfigs?: CompositeReinforcementTuningRewardConfigWeightedRewardConfig[];
1740
1860
  }
1741
1861
 
1742
1862
  /** Composite reinforcement tuning reward config weighted reward config. */
1743
1863
  export declare interface CompositeReinforcementTuningRewardConfigWeightedRewardConfig {
1864
+ /** Single reward configuration. */
1744
1865
  rewardConfig?: SingleReinforcementTuningRewardConfig;
1745
- /** How much this single reward contributes to the total overall reward. */
1866
+ /** How much this single reward contributes to the total overall reward. Total reward is a linear combination of single rewards with their corresponding weights, i.e., ``` total_reward = ( weight_a * reward_a + weight_b * reward_b + ... ) / (weight_a + weight_b + ...) ``` */
1746
1867
  weight?: number;
1747
1868
  }
1748
1869
 
@@ -1764,15 +1885,10 @@ export declare interface ComputerUse {
1764
1885
  * A tool that can be used by the model to interact with the computer.
1765
1886
  */
1766
1887
  declare type ComputerUse_2 = {
1767
- type: "computer_use";
1768
- /**
1769
- * The environment being operated.
1770
- */
1771
- environment?: EnvironmentEnum | undefined;
1772
1888
  /**
1773
- * The list of predefined functions that are excluded from the model call.
1889
+ * Optional. Disabled safety policies for computer use.
1774
1890
  */
1775
- excluded_predefined_functions?: Array<string> | undefined;
1891
+ disabled_safety_policies?: Array<DisabledSafetyPolicy> | undefined;
1776
1892
  /**
1777
1893
  * Whether enable the prompt injection detection check on computer-use
1778
1894
  *
@@ -1781,9 +1897,14 @@ declare type ComputerUse_2 = {
1781
1897
  */
1782
1898
  enable_prompt_injection_detection?: boolean | undefined;
1783
1899
  /**
1784
- * Optional. Disabled safety policies for computer use.
1900
+ * The environment being operated.
1785
1901
  */
1786
- disabled_safety_policies?: Array<DisabledSafetyPolicy> | undefined;
1902
+ environment?: EnvironmentEnum | undefined;
1903
+ /**
1904
+ * The list of predefined functions that are excluded from the model call.
1905
+ */
1906
+ excluded_predefined_functions?: Array<string> | undefined;
1907
+ type: "computer_use";
1787
1908
  };
1788
1909
 
1789
1910
  /** Optional parameters for computing tokens. */
@@ -1861,6 +1982,9 @@ export declare interface ContentEmbeddingStatistics {
1861
1982
  /** Gemini Enterprise Agent Platform only. Number of tokens of the input text.
1862
1983
  */
1863
1984
  tokenCount?: number;
1985
+ /** Gemini Enterprise Agent Platform only. List of modalities and their token count for the input content.
1986
+ */
1987
+ tokensDetails?: ModalityTokenCount[];
1864
1988
  }
1865
1989
 
1866
1990
  export declare type ContentListUnion = Content | Content[] | PartUnion | PartUnion[];
@@ -2032,7 +2156,7 @@ declare type CreateAgentInteraction = {
2032
2156
  /**
2033
2157
  * Enforces that the generated response is a JSON object that complies with the JSON schema specified in this field.
2034
2158
  */
2035
- response_format?: Array<ResponseFormat> | ResponseFormat | undefined;
2159
+ response_format?: Array<ResponseFormat_2> | ResponseFormat_2 | undefined;
2036
2160
  /**
2037
2161
  * The environment configuration for the interaction. Can be an object specifying remote environment sources or a string referencing an existing environment ID.
2038
2162
  */
@@ -2040,7 +2164,17 @@ declare type CreateAgentInteraction = {
2040
2164
  /**
2041
2165
  * Configuration parameters for the agent interaction.
2042
2166
  */
2043
- agent_config?: DynamicAgentConfig | DeepResearchAgentConfig | undefined;
2167
+ agent_config?: DynamicAgentConfig | DeepResearchAgentConfig | CodeMenderAgentConfig | AntigravityAgentConfig | undefined;
2168
+ /**
2169
+ * Safety settings for the interaction.
2170
+ */
2171
+ safety_settings?: Array<SafetySetting_2> | undefined;
2172
+ /**
2173
+ * The labels with user-defined metadata for the request.
2174
+ */
2175
+ labels?: {
2176
+ [k: string]: string;
2177
+ } | undefined;
2044
2178
  /**
2045
2179
  * The input for the interaction.
2046
2180
  */
@@ -2050,7 +2184,7 @@ declare type CreateAgentInteraction = {
2050
2184
  /**
2051
2185
  * Configuration parameters for the agent interaction.
2052
2186
  */
2053
- declare type CreateAgentInteractionAgentConfig = DynamicAgentConfig | DeepResearchAgentConfig;
2187
+ declare type CreateAgentInteractionAgentConfig = DynamicAgentConfig | DeepResearchAgentConfig | CodeMenderAgentConfig | AntigravityAgentConfig;
2054
2188
 
2055
2189
  /**
2056
2190
  * The environment configuration for the interaction. Can be an object specifying remote environment sources or a string referencing an existing environment ID.
@@ -2074,7 +2208,7 @@ declare type CreateAgentInteractionParamsStreaming = CreateAgentInteractionParam
2074
2208
  /**
2075
2209
  * Enforces that the generated response is a JSON object that complies with the JSON schema specified in this field.
2076
2210
  */
2077
- declare type CreateAgentInteractionResponseFormat = Array<ResponseFormat> | ResponseFormat;
2211
+ declare type CreateAgentInteractionResponseFormat = Array<ResponseFormat_2> | ResponseFormat_2;
2078
2212
 
2079
2213
  declare type CreateAgentParams = Omit<CreateAgentRequest, "body"> & CreateAgentRequest["body"];
2080
2214
 
@@ -2418,7 +2552,7 @@ declare type CreateModelInteraction = {
2418
2552
  /**
2419
2553
  * Enforces that the generated response is a JSON object that complies with the JSON schema specified in this field.
2420
2554
  */
2421
- response_format?: Array<ResponseFormat> | ResponseFormat | undefined;
2555
+ response_format?: Array<ResponseFormat_2> | ResponseFormat_2 | undefined;
2422
2556
  /**
2423
2557
  * The environment configuration for the interaction. Can be an object specifying remote environment sources or a string referencing an existing environment ID.
2424
2558
  */
@@ -2428,15 +2562,15 @@ declare type CreateModelInteraction = {
2428
2562
  */
2429
2563
  generation_config?: GenerationConfig_2 | undefined;
2430
2564
  /**
2431
- * The name of the cached content used as context to serve the prediction.
2432
- *
2433
- * @remarks
2434
- * Note: only used in explicit caching, where users can have control over
2435
- * caching (e.g. what content to cache) and enjoy guaranteed cost savings.
2436
- * Format:
2437
- * `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
2565
+ * Safety settings for the interaction.
2566
+ */
2567
+ safety_settings?: Array<SafetySetting_2> | undefined;
2568
+ /**
2569
+ * The labels with user-defined metadata for the request.
2438
2570
  */
2439
- cached_content?: string | undefined;
2571
+ labels?: {
2572
+ [k: string]: string;
2573
+ } | undefined;
2440
2574
  /**
2441
2575
  * The input for the interaction.
2442
2576
  */
@@ -2465,7 +2599,7 @@ declare type CreateModelInteractionParamsStreaming = CreateModelInteractionParam
2465
2599
  /**
2466
2600
  * Enforces that the generated response is a JSON object that complies with the JSON schema specified in this field.
2467
2601
  */
2468
- declare type CreateModelInteractionResponseFormat = Array<ResponseFormat> | ResponseFormat;
2602
+ declare type CreateModelInteractionResponseFormat = Array<ResponseFormat_2> | ResponseFormat_2;
2469
2603
 
2470
2604
  /**
2471
2605
  * Creates a `Part` object from a `base64` encoded `string`.
@@ -2502,6 +2636,16 @@ export declare function createPartFromText(text: string): Part;
2502
2636
  */
2503
2637
  export declare function createPartFromUri(uri: string, mimeType: string, mediaResolution?: PartMediaResolutionLevel): Part;
2504
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
+
2505
2649
  /** Fine-tuning job creation request - optional fields. */
2506
2650
  export declare interface CreateTuningJobConfig {
2507
2651
  /** Used to override HTTP request options. */
@@ -2697,6 +2841,12 @@ export declare interface DatasetStats {
2697
2841
  userMessagePerExampleDistribution?: DatasetDistribution;
2698
2842
  /** Output only. Dataset distributions for the user output tokens. */
2699
2843
  userOutputTokenDistribution?: DatasetDistribution;
2844
+ /** Output only. Dataset distributions for the number of contents per example. */
2845
+ contentsPerExampleDistribution?: DatasetDistribution;
2846
+ /** Output only. Sample user dataset examples in the training dataset uri for Reinforcement Tuning. */
2847
+ reinforcementTuningUserDatasetExamples?: ReinforcementTuningUserDatasetExamples;
2848
+ /** Output only. Number of billable tokens in the tuning dataset. */
2849
+ totalBillableTokenCount?: string;
2700
2850
  }
2701
2851
 
2702
2852
  declare type DeepResearchAgentConfig$ = DeepResearchAgentConfig;
@@ -2705,12 +2855,6 @@ declare type DeepResearchAgentConfig$ = DeepResearchAgentConfig;
2705
2855
  * Configuration for the Deep Research agent.
2706
2856
  */
2707
2857
  declare type DeepResearchAgentConfig = {
2708
- type: "deep-research";
2709
- thinking_summaries?: ThinkingSummaries | undefined;
2710
- /**
2711
- * Whether to include visualizations in the response.
2712
- */
2713
- visualization?: Visualization | undefined;
2714
2858
  /**
2715
2859
  * Enables human-in-the-loop planning for the Deep Research agent. If set to
2716
2860
  *
@@ -2724,8 +2868,14 @@ declare type DeepResearchAgentConfig = {
2724
2868
  * Enables bigquery tool for the Deep Research agent.
2725
2869
  */
2726
2870
  enable_bigquery_tool?: boolean | undefined;
2727
- };
2728
-
2871
+ thinking_summaries?: ThinkingSummaries | undefined;
2872
+ type: "deep-research";
2873
+ /**
2874
+ * Whether to include visualizations in the response.
2875
+ */
2876
+ visualization?: Visualization | undefined;
2877
+ };
2878
+
2729
2879
  declare type DeleteAgentParams = Omit<DeleteAgentRequest, "id">;
2730
2880
 
2731
2881
  declare type DeleteAgentRequest = {
@@ -2915,6 +3065,19 @@ export declare interface DeleteResourceJob {
2915
3065
  error?: JobError;
2916
3066
  }
2917
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
+
2918
3081
  declare type DeleteWebhookParams = Omit<DeleteWebhookRequest, "id">;
2919
3082
 
2920
3083
  declare type DeleteWebhookRequest = {
@@ -2931,11 +3094,34 @@ declare type DeleteWebhookRequest = {
2931
3094
  id: string;
2932
3095
  };
2933
3096
 
3097
+ /** Delivery mode for the generated content. */
3098
+ export declare enum Delivery {
3099
+ /**
3100
+ * Default value. This value is unused.
3101
+ */
3102
+ DELIVERY_UNSPECIFIED = "DELIVERY_UNSPECIFIED",
3103
+ /**
3104
+ * Generated bytes are returned inline in the response.
3105
+ */
3106
+ INLINE = "INLINE",
3107
+ /**
3108
+ * Generated content is stored and a URI is returned.
3109
+ */
3110
+ URI = "URI"
3111
+ }
3112
+
2934
3113
  /**
2935
3114
  * Turns all network off.
2936
3115
  */
2937
3116
  declare type Disabled = "disabled";
2938
3117
 
3118
+ /**
3119
+ * @license
3120
+ * Copyright 2026 Google LLC
3121
+ * SPDX-License-Identifier: Apache-2.0
3122
+ *
3123
+ * g3-prettier-ignore-file
3124
+ */
2939
3125
  declare type DisabledSafetyPolicy = "financial_transactions" | "sensitive_data_modification" | "communication_tool" | "account_creation" | "data_modification" | "user_consent_management" | "legal_terms_and_agreements" | (string & {});
2940
3126
 
2941
3127
  /** Statistics for distillation prompt dataset. These statistics do not include the responses sampled from the teacher model. This data type is not supported in Gemini API. */
@@ -3037,19 +3223,19 @@ declare type DocumentContent$ = DocumentContent;
3037
3223
  * A document content block.
3038
3224
  */
3039
3225
  declare type DocumentContent = {
3040
- type: "document";
3041
3226
  /**
3042
3227
  * The document content.
3043
3228
  */
3044
3229
  data?: string | undefined;
3045
- /**
3046
- * The URI of the document.
3047
- */
3048
- uri?: string | undefined;
3049
3230
  /**
3050
3231
  * The mime type of the document.
3051
3232
  */
3052
3233
  mime_type?: DocumentContentMimeType | undefined;
3234
+ type: "document";
3235
+ /**
3236
+ * The URI of the document.
3237
+ */
3238
+ uri?: string | undefined;
3053
3239
  };
3054
3240
 
3055
3241
  /**
@@ -3065,10 +3251,10 @@ declare type DocumentContent = {
3065
3251
  declare type DocumentContentMimeType = "application/pdf" | "text/csv" | (string & {});
3066
3252
 
3067
3253
  declare type DocumentDelta = {
3068
- type: "document";
3069
3254
  data?: string | undefined;
3070
- uri?: string | undefined;
3071
3255
  mime_type?: DocumentDeltaMimeType | undefined;
3256
+ type: "document";
3257
+ uri?: string | undefined;
3072
3258
  };
3073
3259
 
3074
3260
  /**
@@ -3526,21 +3712,21 @@ export declare enum Environment {
3526
3712
  * Configuration for a custom environment.
3527
3713
  */
3528
3714
  declare type Environment_2 = {
3529
- type: "remote";
3530
- sources?: Array<Source> | undefined;
3715
+ /**
3716
+ * Optional. The environment ID for the interaction. If specified, the request will
3717
+ *
3718
+ * @remarks
3719
+ * update the existing environment instead of creating a new one.
3720
+ */
3721
+ environment_id?: string | undefined;
3531
3722
  /**
3532
3723
  * Network configuration for the environment.
3533
3724
  */
3534
3725
  network?: EnvironmentNetworkEgressAllowlist | NetworkEnum | undefined;
3726
+ sources?: Array<Source> | undefined;
3727
+ type: "remote";
3535
3728
  };
3536
3729
 
3537
- /**
3538
- * @license
3539
- * Copyright 2026 Google LLC
3540
- * SPDX-License-Identifier: Apache-2.0
3541
- *
3542
- * g3-prettier-ignore-file
3543
- */
3544
3730
  /**
3545
3731
  * The environment being operated.
3546
3732
  */
@@ -3558,7 +3744,6 @@ declare type Error$2 = Status;
3558
3744
  declare type ErrorEvent$ = ErrorEvent_2;
3559
3745
 
3560
3746
  declare type ErrorEvent_2 = {
3561
- event_type: "error";
3562
3747
  /**
3563
3748
  * Error message from an interaction.
3564
3749
  */
@@ -3570,6 +3755,7 @@ declare type ErrorEvent_2 = {
3570
3755
  * this event.
3571
3756
  */
3572
3757
  event_id?: string | undefined;
3758
+ event_type: "error";
3573
3759
  metadata?: StreamMetadata | undefined;
3574
3760
  };
3575
3761
 
@@ -3768,33 +3954,36 @@ declare type FileCitation$ = FileCitation;
3768
3954
  * A file citation annotation.
3769
3955
  */
3770
3956
  declare type FileCitation = {
3771
- type: "file_citation";
3957
+ /**
3958
+ * User provided metadata about the retrieved context.
3959
+ */
3960
+ custom_metadata?: {
3961
+ [k: string]: any;
3962
+ } | undefined;
3772
3963
  /**
3773
3964
  * The URI of the file.
3774
3965
  */
3775
3966
  document_uri?: string | undefined;
3776
3967
  /**
3777
- * The name of the file.
3968
+ * End of the attributed segment, exclusive.
3778
3969
  */
3779
- file_name?: string | undefined;
3970
+ end_index?: number | undefined;
3780
3971
  /**
3781
- * Source attributed for a portion of the text.
3972
+ * The name of the file.
3782
3973
  */
3783
- source?: string | undefined;
3974
+ file_name?: string | undefined;
3784
3975
  /**
3785
- * User provided metadata about the retrieved context.
3976
+ * Media ID in-case of image citations, if applicable.
3786
3977
  */
3787
- custom_metadata?: {
3788
- [k: string]: any;
3789
- } | undefined;
3978
+ media_id?: string | undefined;
3790
3979
  /**
3791
3980
  * Page number of the cited document, if applicable.
3792
3981
  */
3793
3982
  page_number?: number | undefined;
3794
3983
  /**
3795
- * Media ID in-case of image citations, if applicable.
3984
+ * Source attributed for a portion of the text.
3796
3985
  */
3797
- media_id?: string | undefined;
3986
+ source?: string | undefined;
3798
3987
  /**
3799
3988
  * Start of segment of the response that is attributed to this source.
3800
3989
  *
@@ -3803,10 +3992,28 @@ declare type FileCitation = {
3803
3992
  * Index indicates the start of the segment, measured in bytes.
3804
3993
  */
3805
3994
  start_index?: number | undefined;
3995
+ type: "file_citation";
3996
+ };
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 = {
3806
4009
  /**
3807
- * End of the attributed segment, exclusive.
4010
+ * The UTF-8 encoded text content of the file.
3808
4011
  */
3809
- end_index?: number | undefined;
4012
+ content?: string | undefined;
4013
+ /**
4014
+ * The relative path of the file from the project root.
4015
+ */
4016
+ path?: string | undefined;
3810
4017
  };
3811
4018
 
3812
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. */
@@ -3962,19 +4169,19 @@ export declare interface FileSearch {
3962
4169
  * A tool that can be used by the model to search files.
3963
4170
  */
3964
4171
  declare type FileSearch_2 = {
3965
- type: "file_search";
3966
4172
  /**
3967
4173
  * The file search store names to search.
3968
4174
  */
3969
4175
  file_search_store_names?: Array<string> | undefined;
3970
- /**
3971
- * The number of semantic retrieval chunks to retrieve.
3972
- */
3973
- top_k?: number | undefined;
3974
4176
  /**
3975
4177
  * Metadata filter to apply to the semantic retrieval documents and chunks.
3976
4178
  */
3977
4179
  metadata_filter?: string | undefined;
4180
+ /**
4181
+ * The number of semantic retrieval chunks to retrieve.
4182
+ */
4183
+ top_k?: number | undefined;
4184
+ type: "file_search";
3978
4185
  };
3979
4186
 
3980
4187
  declare type FileSearchCall$ = FileSearchCallDelta;
@@ -3987,11 +4194,11 @@ declare type FileSearchCall$ = FileSearchCallDelta;
3987
4194
  * g3-prettier-ignore-file
3988
4195
  */
3989
4196
  declare type FileSearchCallDelta = {
3990
- type: "file_search_call";
3991
4197
  /**
3992
4198
  * A signature hash for backend validation.
3993
4199
  */
3994
4200
  signature?: string | undefined;
4201
+ type: "file_search_call";
3995
4202
  };
3996
4203
 
3997
4204
  declare type FileSearchCallStep$ = FileSearchCallStep;
@@ -4007,7 +4214,6 @@ declare type FileSearchCallStep$ = FileSearchCallStep;
4007
4214
  * File Search call step.
4008
4215
  */
4009
4216
  declare type FileSearchCallStep = {
4010
- type: "file_search_call";
4011
4217
  /**
4012
4218
  * Required. A unique ID for this specific tool call.
4013
4219
  */
@@ -4016,6 +4222,7 @@ declare type FileSearchCallStep = {
4016
4222
  * A signature hash for backend validation.
4017
4223
  */
4018
4224
  signature?: string | undefined;
4225
+ type: "file_search_call";
4019
4226
  };
4020
4227
 
4021
4228
  declare type FileSearchResult$ = FileSearchResultDelta;
@@ -4033,12 +4240,12 @@ declare type FileSearchResult$ = FileSearchResultDelta;
4033
4240
  declare type FileSearchResult = {};
4034
4241
 
4035
4242
  declare type FileSearchResultDelta = {
4036
- type: "file_search_result";
4037
4243
  result: Array<FileSearchResult>;
4038
4244
  /**
4039
4245
  * A signature hash for backend validation.
4040
4246
  */
4041
4247
  signature?: string | undefined;
4248
+ type: "file_search_result";
4042
4249
  };
4043
4250
 
4044
4251
  declare type FileSearchResultStep$ = FileSearchResultStep;
@@ -4054,7 +4261,6 @@ declare type FileSearchResultStep$ = FileSearchResultStep;
4054
4261
  * File Search result step.
4055
4262
  */
4056
4263
  declare type FileSearchResultStep = {
4057
- type: "file_search_result";
4058
4264
  /**
4059
4265
  * Required. ID to match the ID from the function call block.
4060
4266
  */
@@ -4063,6 +4269,7 @@ declare type FileSearchResultStep = {
4063
4269
  * A signature hash for backend validation.
4064
4270
  */
4065
4271
  signature?: string | undefined;
4272
+ type: "file_search_result";
4066
4273
  };
4067
4274
 
4068
4275
  /** A collection of Documents. */
@@ -4239,6 +4446,10 @@ export declare interface FileStatus {
4239
4446
  * Config for filters.
4240
4447
  */
4241
4448
  declare type Filter = {
4449
+ /**
4450
+ * Optional. String for metadata filtering.
4451
+ */
4452
+ metadata_filter?: string | undefined;
4242
4453
  /**
4243
4454
  * Optional. Only returns contexts with vector distance smaller than the
4244
4455
  *
@@ -4253,10 +4464,40 @@ declare type Filter = {
4253
4464
  * threshold.
4254
4465
  */
4255
4466
  vector_similarity_threshold?: number | undefined;
4467
+ };
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 = {
4256
4478
  /**
4257
- * Optional. String for metadata filtering.
4479
+ * Additional context or custom instructions provided by the user to guide
4480
+ *
4481
+ * @remarks
4482
+ * the vulnerability analysis.
4258
4483
  */
4259
- metadata_filter?: string | undefined;
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;
4260
4501
  };
4261
4502
 
4262
4503
  /** Output only. The reason why the model stopped generating tokens.
@@ -4333,6 +4574,38 @@ export declare enum FinishReason {
4333
4574
  IMAGE_OTHER = "IMAGE_OTHER"
4334
4575
  }
4335
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
+
4336
4609
  /** Tuning Spec for Full Fine Tuning. This data type is not supported in Gemini API. */
4337
4610
  export declare interface FullFineTuningSpec {
4338
4611
  /** Optional. Hyperparameters for Full Fine Tuning. */
@@ -4406,11 +4679,6 @@ declare type FunctionCallStep$ = FunctionCallStep;
4406
4679
  * A function tool call step.
4407
4680
  */
4408
4681
  declare type FunctionCallStep = {
4409
- type: "function_call";
4410
- /**
4411
- * Required. The name of the tool to call.
4412
- */
4413
- name: string;
4414
4682
  /**
4415
4683
  * Required. The arguments to pass to the function.
4416
4684
  */
@@ -4421,6 +4689,11 @@ declare type FunctionCallStep = {
4421
4689
  * Required. A unique ID for this specific tool call.
4422
4690
  */
4423
4691
  id: string;
4692
+ /**
4693
+ * Required. The name of the tool to call.
4694
+ */
4695
+ name: string;
4696
+ type: "function_call";
4424
4697
  };
4425
4698
 
4426
4699
  /** Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client. */
@@ -4437,7 +4710,7 @@ export declare interface FunctionDeclaration {
4437
4710
  response?: Schema;
4438
4711
  /** Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`. */
4439
4712
  responseJsonSchema?: unknown;
4440
- /** Optional. Specifies the function Behavior. Currently only non-blocking functions are supported. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method. */
4713
+ /** Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method. */
4441
4714
  behavior?: Behavior;
4442
4715
  }
4443
4716
 
@@ -4509,14 +4782,14 @@ export declare enum FunctionResponseScheduling {
4509
4782
  declare type FunctionResult$ = FunctionResultDelta;
4510
4783
 
4511
4784
  declare type FunctionResultDelta = {
4512
- type: "function_result";
4513
- name?: string | undefined;
4514
- is_error?: boolean | undefined;
4515
4785
  /**
4516
4786
  * Required. ID to match the ID from the function call block.
4517
4787
  */
4518
4788
  call_id: string;
4789
+ is_error?: boolean | undefined;
4790
+ name?: string | undefined;
4519
4791
  result: FunctionResultDeltaResult | Array<FunctionResultSubcontent> | string;
4792
+ type: "function_result";
4520
4793
  };
4521
4794
 
4522
4795
  declare type FunctionResultDeltaResult = {};
@@ -4529,23 +4802,23 @@ declare type FunctionResultStep$ = FunctionResultStep;
4529
4802
  * Result of a function tool call.
4530
4803
  */
4531
4804
  declare type FunctionResultStep = {
4532
- type: "function_result";
4533
4805
  /**
4534
- * The name of the tool that was called.
4806
+ * Required. ID to match the ID from the function call block.
4535
4807
  */
4536
- name?: string | undefined;
4808
+ call_id: string;
4537
4809
  /**
4538
4810
  * Whether the tool call resulted in an error.
4539
4811
  */
4540
4812
  is_error?: boolean | undefined;
4541
4813
  /**
4542
- * Required. ID to match the ID from the function call block.
4814
+ * The name of the tool that was called.
4543
4815
  */
4544
- call_id: string;
4816
+ name?: string | undefined;
4545
4817
  /**
4546
4818
  * The result of the tool call.
4547
4819
  */
4548
4820
  result: FunctionResultStepResult | Array<FunctionResultSubcontent> | string;
4821
+ type: "function_result";
4549
4822
  };
4550
4823
 
4551
4824
  declare type FunctionResultStepResult = {};
@@ -4568,19 +4841,19 @@ declare type FunctionResultSubcontent = TextContent | ImageContent;
4568
4841
  * A tool that can be used by the model.
4569
4842
  */
4570
4843
  declare type FunctionT = {
4571
- type: "function";
4572
- /**
4573
- * The name of the function.
4574
- */
4575
- name?: string | undefined;
4576
4844
  /**
4577
4845
  * A description of the function.
4578
4846
  */
4579
4847
  description?: string | undefined;
4848
+ /**
4849
+ * The name of the function.
4850
+ */
4851
+ name?: string | undefined;
4580
4852
  /**
4581
4853
  * The JSON Schema for the function's parameters.
4582
4854
  */
4583
4855
  parameters?: any | undefined;
4856
+ type: "function";
4584
4857
  };
4585
4858
 
4586
4859
  /** The Google Cloud Storage location for the input content. This data type is not supported in Gemini API. */
@@ -4623,6 +4896,20 @@ declare class GeminiNextGenInteractions {
4623
4896
  private getClient;
4624
4897
  }
4625
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 | 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 | null | undefined, options?: GoogleGenAIRequestOptions): Promise<triggers.ListTriggerExecutionsResponse>;
4910
+ private getClient;
4911
+ }
4912
+
4626
4913
  declare class GeminiNextGenWebhooks {
4627
4914
  private readonly parentClient;
4628
4915
  private sdk;
@@ -5287,11 +5574,11 @@ export declare interface GenerationConfig {
5287
5574
  presencePenalty?: number;
5288
5575
  /** Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model's confidence in its own output and for debugging. */
5289
5576
  responseLogprobs?: boolean;
5290
- /** Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include 'text/plain' (default) and 'application/json'. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. */
5577
+ /** Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include 'text/plain' (default) and 'application/json'. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. Deprecated: Use `response_format` instead. */
5291
5578
  responseMimeType?: string;
5292
5579
  /** Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image. */
5293
5580
  responseModalities?: Modality[];
5294
- /** Optional. Lets you to specify a schema for the model's response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. */
5581
+ /** Optional. Lets you to specify a schema for the model's response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format` instead. */
5295
5582
  responseSchema?: Schema;
5296
5583
  /** Optional. Routing configuration. This field is not supported in Gemini API. */
5297
5584
  routingConfig?: GenerationConfigRoutingConfig;
@@ -5311,6 +5598,10 @@ export declare interface GenerationConfig {
5311
5598
  topP?: number;
5312
5599
  /** Optional. Enables enhanced civic answers. It may not be available for all models. This field is not supported in Vertex AI. */
5313
5600
  enableEnhancedCivicAnswers?: boolean;
5601
+ /** Optional. New response format field for the model to configure output formatting and delivery. */
5602
+ responseFormat?: ResponseFormat[];
5603
+ /** Optional. Config for translation. This field is not supported in Vertex AI. */
5604
+ translationConfig?: TranslationConfig;
5314
5605
  }
5315
5606
 
5316
5607
  /**
@@ -5318,61 +5609,45 @@ export declare interface GenerationConfig {
5318
5609
  */
5319
5610
  declare type GenerationConfig_2 = {
5320
5611
  /**
5321
- * Controls the randomness of the output.
5612
+ * The configuration for image interaction.
5613
+ *
5614
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
5322
5615
  */
5323
- temperature?: number | undefined;
5616
+ image_config?: ImageConfig_2 | undefined;
5324
5617
  /**
5325
- * The maximum cumulative probability of tokens to consider when sampling.
5618
+ * The maximum number of tokens to include in the response.
5326
5619
  */
5327
- top_p?: number | undefined;
5620
+ max_output_tokens?: number | undefined;
5328
5621
  /**
5329
5622
  * Seed used in decoding for reproducibility.
5330
5623
  */
5331
5624
  seed?: number | undefined;
5332
- /**
5333
- * A list of character sequences that will stop output interaction.
5334
- */
5335
- stop_sequences?: Array<string> | undefined;
5336
- thinking_level?: ThinkingLevel_2 | undefined;
5337
- thinking_summaries?: ThinkingSummaries | undefined;
5338
- /**
5339
- * The maximum number of tokens to include in the response.
5340
- */
5341
- max_output_tokens?: number | undefined;
5342
5625
  /**
5343
5626
  * Configuration for speech interaction.
5344
5627
  */
5345
5628
  speech_config?: Array<SpeechConfig_2> | undefined;
5346
5629
  /**
5347
- * The configuration for image interaction.
5348
- *
5349
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
5630
+ * A list of character sequences that will stop output interaction.
5350
5631
  */
5351
- image_config?: ImageConfig_2 | undefined;
5632
+ stop_sequences?: Array<string> | undefined;
5352
5633
  /**
5353
- * Configuration options for video generation.
5634
+ * Controls the randomness of the output.
5354
5635
  */
5355
- video_config?: VideoConfig | undefined;
5636
+ temperature?: number | undefined;
5637
+ thinking_level?: ThinkingLevel_2 | undefined;
5638
+ thinking_summaries?: ThinkingSummaries | undefined;
5356
5639
  /**
5357
- * Penalizes tokens that have already appeared in the generated
5358
- *
5359
- * @remarks
5360
- * text. A positive value encourages the model to generate more diverse and
5361
- * less repetitive text. Valid values can range from [-2.0, 2.0].
5640
+ * The tool choice configuration.
5362
5641
  */
5363
- presence_penalty?: number | undefined;
5642
+ tool_choice?: ToolChoiceType | ToolChoiceConfig | undefined;
5364
5643
  /**
5365
- * Penalizes tokens based on their frequency in the generated text.
5366
- *
5367
- * @remarks
5368
- * A positive value helps to reduce the repetition of words and phrases.
5369
- * Valid values can range from [-2.0, 2.0].
5644
+ * The maximum cumulative probability of tokens to consider when sampling.
5370
5645
  */
5371
- frequency_penalty?: number | undefined;
5646
+ top_p?: number | undefined;
5372
5647
  /**
5373
- * The tool choice configuration.
5648
+ * Configuration options for video generation.
5374
5649
  */
5375
- tool_choice?: ToolChoiceType | ToolChoiceConfig | undefined;
5650
+ video_config?: VideoConfig | undefined;
5376
5651
  };
5377
5652
 
5378
5653
  /** The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. This data type is not supported in Gemini API. */
@@ -5598,6 +5873,19 @@ export declare interface GetOperationParameters {
5598
5873
  config?: GetOperationConfig;
5599
5874
  }
5600
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
+
5601
5889
  /** Optional parameters for tunings.get method. */
5602
5890
  export declare interface GetTuningJobConfig {
5603
5891
  /** Used to override HTTP request options. */
@@ -5682,10 +5970,12 @@ export declare class GoogleGenAI {
5682
5970
  private _webhooks;
5683
5971
  private _agents;
5684
5972
  private _nextGenClient;
5973
+ private _triggers;
5685
5974
  private getNextGenClient;
5686
5975
  get interactions(): GeminiNextGenInteractions;
5687
5976
  get webhooks(): GeminiNextGenWebhooks;
5688
5977
  get agents(): GeminiNextGenAgents;
5978
+ get triggers(): GeminiNextGenTriggers;
5689
5979
  constructor(options: GoogleGenAIOptions);
5690
5980
  }
5691
5981
 
@@ -5780,6 +6070,7 @@ declare interface GoogleGenAIParentClient {
5780
6070
  getBaseUrl(): string;
5781
6071
  getApiVersion(): string;
5782
6072
  getDefaultHeaders?(): Record<string, string>;
6073
+ getHeaders?(): Record<string, string> | undefined;
5783
6074
  getAuthHeaders(url?: string): Headers | Promise<Headers>;
5784
6075
  }
5785
6076
 
@@ -5823,7 +6114,6 @@ export declare interface GoogleMaps {
5823
6114
  * A tool that can be used by the model to call Google Maps.
5824
6115
  */
5825
6116
  declare type GoogleMaps_2 = {
5826
- type: "google_maps";
5827
6117
  /**
5828
6118
  * Whether to return a widget context token in the tool call result of the
5829
6119
  *
@@ -5839,6 +6129,7 @@ declare type GoogleMaps_2 = {
5839
6129
  * The longitude of the user's location.
5840
6130
  */
5841
6131
  longitude?: number | undefined;
6132
+ type: "google_maps";
5842
6133
  };
5843
6134
 
5844
6135
  declare type GoogleMapsCall$ = GoogleMapsCallDelta;
@@ -5863,7 +6154,6 @@ declare type GoogleMapsCallArguments = {
5863
6154
  };
5864
6155
 
5865
6156
  declare type GoogleMapsCallDelta = {
5866
- type: "google_maps_call";
5867
6157
  /**
5868
6158
  * The arguments to pass to the Google Maps tool.
5869
6159
  */
@@ -5872,6 +6162,7 @@ declare type GoogleMapsCallDelta = {
5872
6162
  * A signature hash for backend validation.
5873
6163
  */
5874
6164
  signature?: string | undefined;
6165
+ type: "google_maps_call";
5875
6166
  };
5876
6167
 
5877
6168
  declare type GoogleMapsCallStep$ = GoogleMapsCallStep;
@@ -5880,7 +6171,6 @@ declare type GoogleMapsCallStep$ = GoogleMapsCallStep;
5880
6171
  * Google Maps call step.
5881
6172
  */
5882
6173
  declare type GoogleMapsCallStep = {
5883
- type: "google_maps_call";
5884
6174
  /**
5885
6175
  * The arguments to pass to the Google Maps tool.
5886
6176
  */
@@ -5893,6 +6183,7 @@ declare type GoogleMapsCallStep = {
5893
6183
  * A signature hash for backend validation.
5894
6184
  */
5895
6185
  signature?: string | undefined;
6186
+ type: "google_maps_call";
5896
6187
  };
5897
6188
 
5898
6189
  declare type GoogleMapsResult$ = GoogleMapsResult;
@@ -5908,7 +6199,6 @@ declare type GoogleMapsResult = {
5908
6199
  };
5909
6200
 
5910
6201
  declare type GoogleMapsResultDelta = {
5911
- type: "google_maps_result";
5912
6202
  /**
5913
6203
  * The results of the Google Maps.
5914
6204
  */
@@ -5917,13 +6207,14 @@ declare type GoogleMapsResultDelta = {
5917
6207
  * A signature hash for backend validation.
5918
6208
  */
5919
6209
  signature?: string | undefined;
6210
+ type: "google_maps_result";
5920
6211
  };
5921
6212
 
5922
6213
  declare type GoogleMapsResultPlaces = {
5923
- place_id?: string | undefined;
5924
6214
  name?: string | undefined;
5925
- url?: string | undefined;
6215
+ place_id?: string | undefined;
5926
6216
  review_snippets?: Array<ReviewSnippet> | undefined;
6217
+ url?: string | undefined;
5927
6218
  };
5928
6219
 
5929
6220
  declare type GoogleMapsResultStep$ = GoogleMapsResultStep;
@@ -5932,16 +6223,16 @@ declare type GoogleMapsResultStep$ = GoogleMapsResultStep;
5932
6223
  * Google Maps result step.
5933
6224
  */
5934
6225
  declare type GoogleMapsResultStep = {
5935
- type: "google_maps_result";
5936
- result: Array<GoogleMapsResult>;
5937
6226
  /**
5938
6227
  * Required. ID to match the ID from the function call block.
5939
6228
  */
5940
6229
  call_id: string;
6230
+ result: Array<GoogleMapsResult>;
5941
6231
  /**
5942
6232
  * A signature hash for backend validation.
5943
6233
  */
5944
6234
  signature?: string | undefined;
6235
+ type: "google_maps_result";
5945
6236
  };
5946
6237
 
5947
6238
  /** 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). This data type is not supported in Gemini API. */
@@ -5972,11 +6263,11 @@ export declare interface GoogleSearch {
5972
6263
  * A tool that can be used by the model to search Google.
5973
6264
  */
5974
6265
  declare type GoogleSearch_2 = {
5975
- type: "google_search";
5976
6266
  /**
5977
6267
  * The types of search grounding to enable.
5978
6268
  */
5979
6269
  search_types?: Array<GoogleSearchSearchType> | undefined;
6270
+ type: "google_search";
5980
6271
  };
5981
6272
 
5982
6273
  declare type GoogleSearchCall$ = GoogleSearchCallDelta;
@@ -6001,7 +6292,6 @@ declare type GoogleSearchCallArguments = {
6001
6292
  };
6002
6293
 
6003
6294
  declare type GoogleSearchCallDelta = {
6004
- type: "google_search_call";
6005
6295
  /**
6006
6296
  * The arguments to pass to Google Search.
6007
6297
  */
@@ -6010,6 +6300,7 @@ declare type GoogleSearchCallDelta = {
6010
6300
  * A signature hash for backend validation.
6011
6301
  */
6012
6302
  signature?: string | undefined;
6303
+ type: "google_search_call";
6013
6304
  };
6014
6305
 
6015
6306
  declare type GoogleSearchCallStep$ = GoogleSearchCallStep;
@@ -6018,23 +6309,23 @@ declare type GoogleSearchCallStep$ = GoogleSearchCallStep;
6018
6309
  * Google Search call step.
6019
6310
  */
6020
6311
  declare type GoogleSearchCallStep = {
6021
- type: "google_search_call";
6022
6312
  /**
6023
6313
  * The arguments to pass to Google Search.
6024
6314
  */
6025
6315
  arguments: GoogleSearchCallArguments;
6026
- /**
6027
- * The type of search grounding enabled.
6028
- */
6029
- search_type?: GoogleSearchCallStepSearchType | undefined;
6030
6316
  /**
6031
6317
  * Required. A unique ID for this specific tool call.
6032
6318
  */
6033
6319
  id: string;
6320
+ /**
6321
+ * The type of search grounding enabled.
6322
+ */
6323
+ search_type?: GoogleSearchCallStepSearchType | undefined;
6034
6324
  /**
6035
6325
  * A signature hash for backend validation.
6036
6326
  */
6037
6327
  signature?: string | undefined;
6328
+ type: "google_search_call";
6038
6329
  };
6039
6330
 
6040
6331
  /**
@@ -6064,13 +6355,13 @@ declare type GoogleSearchResult = {
6064
6355
  };
6065
6356
 
6066
6357
  declare type GoogleSearchResultDelta = {
6067
- type: "google_search_result";
6068
- result: Array<GoogleSearchResult>;
6069
6358
  is_error?: boolean | undefined;
6359
+ result: Array<GoogleSearchResult>;
6070
6360
  /**
6071
6361
  * A signature hash for backend validation.
6072
6362
  */
6073
6363
  signature?: string | undefined;
6364
+ type: "google_search_result";
6074
6365
  };
6075
6366
 
6076
6367
  declare type GoogleSearchResultStep$ = GoogleSearchResultStep;
@@ -6079,23 +6370,23 @@ declare type GoogleSearchResultStep$ = GoogleSearchResultStep;
6079
6370
  * Google Search result step.
6080
6371
  */
6081
6372
  declare type GoogleSearchResultStep = {
6082
- type: "google_search_result";
6083
6373
  /**
6084
- * Required. The results of the Google Search.
6374
+ * Required. ID to match the ID from the function call block.
6085
6375
  */
6086
- result: Array<GoogleSearchResult>;
6376
+ call_id: string;
6087
6377
  /**
6088
6378
  * Whether the Google Search resulted in an error.
6089
6379
  */
6090
6380
  is_error?: boolean | undefined;
6091
6381
  /**
6092
- * Required. ID to match the ID from the function call block.
6382
+ * Required. The results of the Google Search.
6093
6383
  */
6094
- call_id: string;
6384
+ result: Array<GoogleSearchResult>;
6095
6385
  /**
6096
6386
  * A signature hash for backend validation.
6097
6387
  */
6098
6388
  signature?: string | undefined;
6389
+ type: "google_search_result";
6099
6390
  };
6100
6391
 
6101
6392
  /** Tool to retrieve public web data for grounding, powered by Google. */
@@ -6298,7 +6589,7 @@ export declare interface GroundingMetadata {
6298
6589
  searchEntryPoint?: SearchEntryPoint;
6299
6590
  /** Web search queries for the following-up web search. */
6300
6591
  webSearchQueries?: string[];
6301
- /** Optional. Output only. A token that can be used to render a Google Maps widget with the contextual data. This field is populated only when the grounding source is Google Maps. */
6592
+ /** Optional. Output only. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps is being deprecated; this field is planned for removal and will no longer be populated once removed. A token that can be used to render a Google Maps widget with the contextual data. This field is populated only when the grounding source is Google Maps. */
6302
6593
  googleMapsWidgetContextToken?: string;
6303
6594
  /** Optional. The queries that were executed by the retrieval tools. This field is populated only when the grounding source is a retrieval tool, such as Vertex AI Search. This field is not supported in Gemini API. */
6304
6595
  retrievalQueries?: string[];
@@ -6338,14 +6629,14 @@ declare type GroundingToolCount$ = GroundingToolCount;
6338
6629
  * The number of grounding tool counts.
6339
6630
  */
6340
6631
  declare type GroundingToolCount = {
6341
- /**
6342
- * The grounding tool type associated with the count.
6343
- */
6344
- type?: GroundingToolCountType | undefined;
6345
6632
  /**
6346
6633
  * The number of grounding tool counts.
6347
6634
  */
6348
6635
  count?: number | undefined;
6636
+ /**
6637
+ * The grounding tool type associated with the count.
6638
+ */
6639
+ type?: GroundingToolCountType | undefined;
6349
6640
  };
6350
6641
 
6351
6642
  /**
@@ -6404,6 +6695,8 @@ export declare enum HarmBlockThreshold {
6404
6695
  OFF = "OFF"
6405
6696
  }
6406
6697
 
6698
+ declare type HarmCategory$ = HarmCategory_2;
6699
+
6407
6700
  /** The harm category to be blocked. */
6408
6701
  export declare enum HarmCategory {
6409
6702
  /**
@@ -6452,6 +6745,15 @@ export declare enum HarmCategory {
6452
6745
  HARM_CATEGORY_JAILBREAK = "HARM_CATEGORY_JAILBREAK"
6453
6746
  }
6454
6747
 
6748
+ /**
6749
+ * @license
6750
+ * Copyright 2026 Google LLC
6751
+ * SPDX-License-Identifier: Apache-2.0
6752
+ *
6753
+ * g3-prettier-ignore-file
6754
+ */
6755
+ declare type HarmCategory_2 = "hate_speech" | "dangerous_content" | "harassment" | "sexually_explicit" | "civic_integrity" | "image_hate" | "image_dangerous_content" | "image_harassment" | "image_sexually_explicit" | "jailbreak" | (string & {});
6756
+
6455
6757
  /** Output only. The probability of harm for this category. */
6456
6758
  export declare enum HarmProbability {
6457
6759
  /**
@@ -6500,6 +6802,16 @@ export declare enum HarmSeverity {
6500
6802
  HARM_SEVERITY_HIGH = "HARM_SEVERITY_HIGH"
6501
6803
  }
6502
6804
 
6805
+ /** Configuration for history exchange between client and server. */
6806
+ export declare interface HistoryConfig {
6807
+ /** If true, after sending `setup_complete`, the server will wait
6808
+ and at first process `client_content` messages until `turn_complete` is
6809
+ `true`. This initial history will not trigger a model call and
6810
+ may end with model content. After `turn_complete` is `true`, the client
6811
+ can start the realtime conversation via `realtime_input`. */
6812
+ initialHistoryInClientContent?: boolean;
6813
+ }
6814
+
6503
6815
  /** The location of the API key. This enum is not supported in Gemini API. */
6504
6816
  export declare enum HttpElementLocation {
6505
6817
  HTTP_IN_UNSPECIFIED = "HTTP_IN_UNSPECIFIED",
@@ -6711,20 +7023,20 @@ declare type ImageContent$ = ImageContent;
6711
7023
  * An image content block.
6712
7024
  */
6713
7025
  declare type ImageContent = {
6714
- type: "image";
6715
7026
  /**
6716
7027
  * The image content.
6717
7028
  */
6718
7029
  data?: string | undefined;
6719
- /**
6720
- * The URI of the image.
6721
- */
6722
- uri?: string | undefined;
6723
7030
  /**
6724
7031
  * The mime type of the image.
6725
7032
  */
6726
7033
  mime_type?: ImageContentMimeType | undefined;
6727
7034
  resolution?: MediaResolution_2 | undefined;
7035
+ type: "image";
7036
+ /**
7037
+ * The URI of the image.
7038
+ */
7039
+ uri?: string | undefined;
6728
7040
  };
6729
7041
 
6730
7042
  /**
@@ -6733,11 +7045,11 @@ declare type ImageContent = {
6733
7045
  declare type ImageContentMimeType = "image/png" | "image/jpeg" | "image/webp" | "image/heic" | "image/heif" | "image/gif" | "image/bmp" | "image/tiff" | (string & {});
6734
7046
 
6735
7047
  declare type ImageDelta = {
6736
- type: "image";
6737
7048
  data?: string | undefined;
6738
- uri?: string | undefined;
6739
7049
  mime_type?: ImageDeltaMimeType | undefined;
6740
7050
  resolution?: MediaResolution_2 | undefined;
7051
+ type: "image";
7052
+ uri?: string | undefined;
6741
7053
  };
6742
7054
 
6743
7055
  declare type ImageDeltaMimeType = "image/png" | "image/jpeg" | "image/webp" | "image/heic" | "image/heif" | "image/gif" | "image/bmp" | "image/tiff" | (string & {});
@@ -6792,31 +7104,50 @@ export declare enum ImageResizeMode {
6792
7104
  PAD = "PAD"
6793
7105
  }
6794
7106
 
6795
- declare type ImageResponseFormat$ = ImageResponseFormat;
7107
+ declare type ImageResponseFormat$ = ImageResponseFormat_2;
7108
+
7109
+ /** Configuration for image-specific output formatting. */
7110
+ export declare class ImageResponseFormat {
7111
+ /** Optional. The aspect ratio for the image output. */
7112
+ aspectRatio?: AspectRatio;
7113
+ /** Optional. Delivery mode for the generated content. */
7114
+ delivery?: Delivery;
7115
+ /** Optional. The size of the image output. */
7116
+ imageSize?: ImageSize;
7117
+ /** Optional. The MIME type of the image output. */
7118
+ mimeType?: string;
7119
+ }
6796
7120
 
6797
7121
  /**
6798
7122
  * Configuration for image output format.
6799
7123
  */
6800
- declare type ImageResponseFormat = {
6801
- type: "image";
7124
+ declare type ImageResponseFormat_2 = {
6802
7125
  /**
6803
- * The MIME type of the image output.
7126
+ * The aspect ratio for the image output.
6804
7127
  */
6805
- mime_type?: ImageResponseFormatMimeType | undefined;
7128
+ aspect_ratio?: ImageResponseFormatAspectRatio | undefined;
6806
7129
  /**
6807
7130
  * The delivery mode for the image output.
6808
7131
  */
6809
7132
  delivery?: ImageResponseFormatDelivery | undefined;
6810
- /**
6811
- * The aspect ratio for the image output.
6812
- */
6813
- aspect_ratio?: ImageResponseFormatAspectRatio | undefined;
6814
7133
  /**
6815
7134
  * The size of the image output.
6816
7135
  */
6817
7136
  image_size?: ImageResponseFormatImageSize | undefined;
7137
+ /**
7138
+ * The MIME type of the image output.
7139
+ */
7140
+ mime_type?: ImageResponseFormatMimeType | undefined;
7141
+ type: "image";
6818
7142
  };
6819
7143
 
7144
+ /**
7145
+ * @license
7146
+ * Copyright 2026 Google LLC
7147
+ * SPDX-License-Identifier: Apache-2.0
7148
+ *
7149
+ * g3-prettier-ignore-file
7150
+ */
6820
7151
  /**
6821
7152
  * The aspect ratio for the image output.
6822
7153
  */
@@ -6832,13 +7163,6 @@ declare type ImageResponseFormatDelivery = "inline" | "uri" | (string & {});
6832
7163
  */
6833
7164
  declare type ImageResponseFormatImageSize = "512" | "1K" | "2K" | "4K" | (string & {});
6834
7165
 
6835
- /**
6836
- * @license
6837
- * Copyright 2026 Google LLC
6838
- * SPDX-License-Identifier: Apache-2.0
6839
- *
6840
- * g3-prettier-ignore-file
6841
- */
6842
7166
  /**
6843
7167
  * The MIME type of the image output.
6844
7168
  */
@@ -6848,6 +7172,30 @@ declare type ImageResponseFormatMimeType = "image/jpeg";
6848
7172
  export declare interface ImageSearch {
6849
7173
  }
6850
7174
 
7175
+ /** The size of the image output. */
7176
+ export declare enum ImageSize {
7177
+ /**
7178
+ * Default value. This value is unused.
7179
+ */
7180
+ IMAGE_SIZE_UNSPECIFIED = "IMAGE_SIZE_UNSPECIFIED",
7181
+ /**
7182
+ * 512px image size.
7183
+ */
7184
+ IMAGE_SIZE_FIVE_TWELVE = "IMAGE_SIZE_FIVE_TWELVE",
7185
+ /**
7186
+ * 1K image size.
7187
+ */
7188
+ IMAGE_SIZE_ONE_K = "IMAGE_SIZE_ONE_K",
7189
+ /**
7190
+ * 2K image size.
7191
+ */
7192
+ IMAGE_SIZE_TWO_K = "IMAGE_SIZE_TWO_K",
7193
+ /**
7194
+ * 4K image size.
7195
+ */
7196
+ IMAGE_SIZE_FOUR_K = "IMAGE_SIZE_FOUR_K"
7197
+ }
7198
+
6851
7199
  /** Optional parameters for importing a file. */
6852
7200
  export declare interface ImportFileConfig {
6853
7201
  /** Used to override HTTP request options. */
@@ -7025,7 +7373,7 @@ declare type Interaction = {
7025
7373
  /**
7026
7374
  * Enforces that the generated response is a JSON object that complies with the JSON schema specified in this field.
7027
7375
  */
7028
- response_format?: Array<ResponseFormat> | ResponseFormat | undefined;
7376
+ response_format?: Array<ResponseFormat_2> | ResponseFormat_2 | undefined;
7029
7377
  /**
7030
7378
  * The environment configuration for the interaction. Can be an object specifying remote environment sources or a string referencing an existing environment ID.
7031
7379
  */
@@ -7035,19 +7383,19 @@ declare type Interaction = {
7035
7383
  */
7036
7384
  generation_config?: GenerationConfig_2 | undefined;
7037
7385
  /**
7038
- * The name of the cached content used as context to serve the prediction.
7039
- *
7040
- * @remarks
7041
- * Note: only used in explicit caching, where users can have control over
7042
- * caching (e.g. what content to cache) and enjoy guaranteed cost savings.
7043
- * Format:
7044
- * `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
7386
+ * Configuration parameters for the agent interaction.
7045
7387
  */
7046
- cached_content?: string | undefined;
7388
+ agent_config?: DynamicAgentConfig | DeepResearchAgentConfig | CodeMenderAgentConfig | AntigravityAgentConfig | undefined;
7047
7389
  /**
7048
- * Configuration parameters for the agent interaction.
7390
+ * Safety settings for the interaction.
7049
7391
  */
7050
- agent_config?: DynamicAgentConfig | DeepResearchAgentConfig | undefined;
7392
+ safety_settings?: Array<SafetySetting_2> | undefined;
7393
+ /**
7394
+ * The labels with user-defined metadata for the request.
7395
+ */
7396
+ labels?: {
7397
+ [k: string]: string;
7398
+ } | undefined;
7051
7399
  /**
7052
7400
  * The input for the interaction.
7053
7401
  */
@@ -7074,10 +7422,15 @@ declare type Interaction = {
7074
7422
  output_video?: VideoContent | undefined;
7075
7423
  };
7076
7424
 
7425
+ /**
7426
+ * Required. The interaction request template to be executed.
7427
+ */
7428
+ declare type Interaction_2 = interactions.CreateAgentInteraction | interactions.CreateModelInteraction;
7429
+
7077
7430
  /**
7078
7431
  * Configuration parameters for the agent interaction.
7079
7432
  */
7080
- declare type InteractionAgentConfig = DynamicAgentConfig | DeepResearchAgentConfig;
7433
+ declare type InteractionAgentConfig = DynamicAgentConfig | DeepResearchAgentConfig | CodeMenderAgentConfig | AntigravityAgentConfig;
7081
7434
 
7082
7435
  declare type InteractionCancelParams$ = CancelInteractionByIdParams;
7083
7436
 
@@ -7161,17 +7514,20 @@ declare type InteractionGetParamsStreaming = GetInteractionByIdParamsStreaming;
7161
7514
  /**
7162
7515
  * Enforces that the generated response is a JSON object that complies with the JSON schema specified in this field.
7163
7516
  */
7164
- declare type InteractionResponseFormat = Array<ResponseFormat> | ResponseFormat;
7517
+ declare type InteractionResponseFormat = Array<ResponseFormat_2> | ResponseFormat_2;
7165
7518
 
7166
7519
  export declare namespace Interactions {
7167
7520
  export type AllowedTools = AllowedTools$;
7168
7521
  export type Annotation = Annotation$;
7522
+ export type AntigravityAgentConfig = AntigravityAgentConfig$;
7169
7523
  export type AudioContent = AudioContent$;
7170
7524
  export type AudioResponseFormat = AudioResponseFormat$;
7171
7525
  export type CodeExecutionCallArguments = CodeExecutionCallArguments$;
7172
7526
  export interface CodeExecutionCallStep extends CodeExecutionCallStep$ {
7173
7527
  }
7174
7528
  export type CodeExecutionResultStep = CodeExecutionResultStep$;
7529
+ export interface CodeMenderAgentConfig extends CodeMenderAgentConfig$ {
7530
+ }
7175
7531
  export type Content = Content$;
7176
7532
  export type CreateAgentInteractionParamsNonStreaming = CreateAgentInteractionParamsNonStreaming$;
7177
7533
  export type CreateAgentInteractionParamsStreaming = CreateAgentInteractionParamsStreaming$;
@@ -7204,6 +7560,7 @@ export declare namespace Interactions {
7204
7560
  export type GoogleSearchResult = GoogleSearchResult$;
7205
7561
  export interface GoogleSearchResultStep extends GoogleSearchResultStep$ {
7206
7562
  }
7563
+ export type HarmCategory = HarmCategory$;
7207
7564
  export type ImageConfig = ImageConfig$;
7208
7565
  export type ImageContent = ImageContent$;
7209
7566
  export type ImageResponseFormat = ImageResponseFormat$;
@@ -7229,6 +7586,11 @@ export declare namespace Interactions {
7229
7586
  }
7230
7587
  export interface PlaceCitation extends PlaceCitation$ {
7231
7588
  }
7589
+ export type RetrievalCallArguments = RetrievalCallArguments$;
7590
+ export interface RetrievalCallDelta extends RetrievalCallDelta$ {
7591
+ }
7592
+ export type RetrievalResultDelta = RetrievalResultDelta$;
7593
+ export type SafetySetting = SafetySetting$;
7232
7594
  export type SpeechConfig = SpeechConfig$;
7233
7595
  export type Step = Step$;
7234
7596
  export interface StepDelta extends StepDelta$ {
@@ -7261,13 +7623,22 @@ export declare namespace Interactions {
7261
7623
  export namespace CodeExecutionCallStep {
7262
7624
  export type Arguments = Arguments$;
7263
7625
  }
7264
- export namespace Environment {
7265
- export interface Allowlist extends Allowlist$ {
7626
+ export namespace CodeMenderAgentConfig {
7627
+ export interface FindRequest extends FindRequest$ {
7266
7628
  }
7267
- export type Source = Source$;
7268
- export namespace Allowlist {
7269
- export type Allowlist = Allowlist$2;
7629
+ export interface FixRequest extends FixRequest$ {
7630
+ }
7631
+ export type SessionConfig = SessionConfig$;
7632
+ export namespace FindRequest {
7633
+ export type SourceFile = SourceFile$;
7270
7634
  }
7635
+ export namespace FixRequest {
7636
+ export type SourceFile = SourceFile$2;
7637
+ }
7638
+ }
7639
+ export namespace Environment {
7640
+ export type Allowlist = Allowlist$;
7641
+ export type Source = Source$;
7271
7642
  }
7272
7643
  export namespace ErrorEvent {
7273
7644
  export type Error = Error$;
@@ -7319,6 +7690,9 @@ export declare namespace Interactions {
7319
7690
  export namespace PlaceCitation {
7320
7691
  export type ReviewSnippet = ReviewSnippet$3;
7321
7692
  }
7693
+ export namespace RetrievalCallDelta {
7694
+ export type Arguments = Arguments$4;
7695
+ }
7322
7696
  export namespace StepDelta {
7323
7697
  export type ArgumentsDelta = ArgumentsDelta$;
7324
7698
  export type Audio = Audio$;
@@ -7365,7 +7739,7 @@ export declare namespace Interactions {
7365
7739
  }
7366
7740
  }
7367
7741
  export namespace URLContextCallStep {
7368
- export type Arguments = Arguments$4;
7742
+ export type Arguments = Arguments$5;
7369
7743
  }
7370
7744
  export namespace URLContextResultStep {
7371
7745
  export type Result = Result$3;
@@ -7383,16 +7757,18 @@ declare namespace interactions {
7383
7757
  export {
7384
7758
  AgentOption,
7385
7759
  AllowedTools,
7760
+ Transform,
7386
7761
  AllowlistEntry,
7387
7762
  Annotation,
7763
+ AntigravityAgentConfig,
7388
7764
  ArgumentsDelta,
7389
7765
  AudioContentMimeType,
7390
7766
  AudioContent,
7391
7767
  AudioDeltaMimeType,
7392
7768
  AudioDelta,
7393
- AudioResponseFormatMimeType,
7394
7769
  AudioResponseFormatDelivery,
7395
- AudioResponseFormat,
7770
+ AudioResponseFormatMimeType,
7771
+ AudioResponseFormat_2 as AudioResponseFormat,
7396
7772
  Language_2 as Language,
7397
7773
  CodeExecutionCallArguments,
7398
7774
  CodeExecutionCallDelta,
@@ -7400,8 +7776,9 @@ declare namespace interactions {
7400
7776
  CodeExecutionResultDelta,
7401
7777
  CodeExecutionResultStep,
7402
7778
  CodeExecution,
7403
- EnvironmentEnum,
7779
+ CodeMenderAgentConfig,
7404
7780
  DisabledSafetyPolicy,
7781
+ EnvironmentEnum,
7405
7782
  ComputerUse_2 as ComputerUse,
7406
7783
  Content_2 as Content,
7407
7784
  CreateAgentInteractionResponseFormat,
@@ -7429,6 +7806,7 @@ declare namespace interactions {
7429
7806
  ErrorT,
7430
7807
  ExaAISearchConfig,
7431
7808
  FileCitation,
7809
+ FileContent,
7432
7810
  FileSearchCallDelta,
7433
7811
  FileSearchCallStep,
7434
7812
  FileSearchResultDelta,
@@ -7436,6 +7814,9 @@ declare namespace interactions {
7436
7814
  FileSearchResult,
7437
7815
  FileSearch_2 as FileSearch,
7438
7816
  Filter,
7817
+ Mode,
7818
+ FindRequest,
7819
+ FixRequest,
7439
7820
  FunctionCallStep,
7440
7821
  FunctionResultDeltaResult,
7441
7822
  FunctionResultDeltaResultUnion,
@@ -7466,6 +7847,7 @@ declare namespace interactions {
7466
7847
  GoogleSearch_2 as GoogleSearch,
7467
7848
  GroundingToolCountType,
7468
7849
  GroundingToolCount,
7850
+ HarmCategory_2 as HarmCategory,
7469
7851
  HybridSearch,
7470
7852
  ImageConfigAspectRatio,
7471
7853
  ImageConfigImageSize,
@@ -7474,11 +7856,11 @@ declare namespace interactions {
7474
7856
  ImageContent,
7475
7857
  ImageDeltaMimeType,
7476
7858
  ImageDelta,
7477
- ImageResponseFormatMimeType,
7478
- ImageResponseFormatDelivery,
7479
7859
  ImageResponseFormatAspectRatio,
7860
+ ImageResponseFormatDelivery,
7480
7861
  ImageResponseFormatImageSize,
7481
- ImageResponseFormat,
7862
+ ImageResponseFormatMimeType,
7863
+ ImageResponseFormat_2 as ImageResponseFormat,
7482
7864
  InteractionCompletedEvent,
7483
7865
  InteractionCreatedEvent,
7484
7866
  InteractionSseEventInteractionStatus,
@@ -7512,12 +7894,20 @@ declare namespace interactions {
7512
7894
  RagRetrievalConfig_2 as RagRetrievalConfig,
7513
7895
  RagStoreConfig,
7514
7896
  Ranking,
7515
- ResponseFormat,
7897
+ ResponseFormat_2 as ResponseFormat,
7516
7898
  ResponseModality,
7517
- RetrievalType,
7899
+ RetrievalCallArguments,
7900
+ RetrievalCallDeltaRetrievalType,
7901
+ RetrievalCallDelta,
7902
+ RetrievalResultDelta,
7903
+ RetrievalRetrievalType,
7518
7904
  Retrieval_2 as Retrieval,
7519
7905
  ReviewSnippet,
7906
+ Method,
7907
+ Threshold,
7908
+ SafetySetting_2 as SafetySetting,
7520
7909
  ServiceTier_2 as ServiceTier,
7910
+ SessionConfig,
7521
7911
  SourceType,
7522
7912
  Source,
7523
7913
  SpeechConfig_2 as SpeechConfig,
@@ -7533,7 +7923,7 @@ declare namespace interactions {
7533
7923
  TextContent,
7534
7924
  TextDelta,
7535
7925
  TextResponseFormatMimeType,
7536
- TextResponseFormat,
7926
+ TextResponseFormat_2 as TextResponseFormat,
7537
7927
  ThinkingLevel_2 as ThinkingLevel,
7538
7928
  ThinkingSummaries,
7539
7929
  ThoughtSignatureDelta,
@@ -7548,7 +7938,6 @@ declare namespace interactions {
7548
7938
  URLCitation,
7549
7939
  URLContextCallArguments,
7550
7940
  URLContextCallDelta,
7551
- Arguments,
7552
7941
  URLContextCallStep,
7553
7942
  URLContextResultDelta,
7554
7943
  URLContextResultStep,
@@ -7564,9 +7953,9 @@ declare namespace interactions {
7564
7953
  VideoContent,
7565
7954
  VideoDeltaMimeType,
7566
7955
  VideoDelta,
7567
- VideoResponseFormatDelivery,
7568
7956
  VideoResponseFormatAspectRatio,
7569
- VideoResponseFormat,
7957
+ VideoResponseFormatDelivery,
7958
+ VideoResponseFormat_2 as VideoResponseFormat,
7570
7959
  WebhookConfig_2 as WebhookConfig
7571
7960
  }
7572
7961
  }
@@ -7644,9 +8033,6 @@ declare type InteractionStatus = "in_progress" | "requires_action" | "completed"
7644
8033
  declare type InteractionStatusUpdate$ = InteractionStatusUpdate;
7645
8034
 
7646
8035
  declare type InteractionStatusUpdate = {
7647
- event_type: "interaction.status_update";
7648
- interaction_id: string;
7649
- status: InteractionStatusUpdateStatus;
7650
8036
  /**
7651
8037
  * The event_id token to be used to resume the interaction stream, from
7652
8038
  *
@@ -7654,7 +8040,10 @@ declare type InteractionStatusUpdate = {
7654
8040
  * this event.
7655
8041
  */
7656
8042
  event_id?: string | undefined;
8043
+ event_type: "interaction.status_update";
8044
+ interaction_id: string;
7657
8045
  metadata?: StreamMetadata | undefined;
8046
+ status: InteractionStatusUpdateStatus;
7658
8047
  };
7659
8048
 
7660
8049
  declare type InteractionStatusUpdateStatus = "in_progress" | "requires_action" | "completed" | "failed" | "cancelled" | "incomplete" | "budget_exceeded" | (string & {});
@@ -7979,6 +8368,99 @@ export declare class ListModelsResponse {
7979
8368
  models?: Model[];
7980
8369
  }
7981
8370
 
8371
+ declare type ListTriggerExecutionsParams = {
8372
+ api_version?: string;
8373
+ pageSize?: number;
8374
+ pageToken?: string;
8375
+ };
8376
+
8377
+ declare type ListTriggerExecutionsParams_2 = Omit<ListTriggerExecutionsRequest, "trigger_id">;
8378
+
8379
+ declare type ListTriggerExecutionsRequest = {
8380
+ /**
8381
+ * Which version of the API to use.
8382
+ */
8383
+ api_version?: string | undefined;
8384
+ /**
8385
+ * Resource name of the trigger.
8386
+ */
8387
+ trigger_id: string;
8388
+ /**
8389
+ * Optional. The maximum number of executions to return per page.
8390
+ */
8391
+ page_size?: number | undefined;
8392
+ /**
8393
+ * Optional. A page token from a previous ListTriggerExecutions call.
8394
+ */
8395
+ page_token?: string | undefined;
8396
+ };
8397
+
8398
+ declare type ListTriggerExecutionsResponse$ = ListTriggerExecutionsResponse;
8399
+
8400
+ /**
8401
+ * Response message for TriggerService.ListTriggerExecutions.
8402
+ */
8403
+ declare type ListTriggerExecutionsResponse = {
8404
+ /**
8405
+ * A page token, received from a previous `ListTriggerExecutions` call.
8406
+ *
8407
+ * @remarks
8408
+ * Provide this to retrieve the subsequent page.
8409
+ */
8410
+ next_page_token?: string | undefined;
8411
+ /**
8412
+ * The list of trigger executions.
8413
+ */
8414
+ trigger_executions?: Array<TriggerExecution> | undefined;
8415
+ };
8416
+
8417
+ declare type ListTriggersParams = {
8418
+ api_version?: string;
8419
+ filter?: string;
8420
+ pageSize?: number;
8421
+ pageToken?: string;
8422
+ };
8423
+
8424
+ declare type ListTriggersParams_2 = ListTriggersRequest;
8425
+
8426
+ declare type ListTriggersRequest = {
8427
+ /**
8428
+ * Which version of the API to use.
8429
+ */
8430
+ api_version?: string | undefined;
8431
+ /**
8432
+ * Optional. Filter expression (e.g., by state).
8433
+ */
8434
+ filter?: string | undefined;
8435
+ /**
8436
+ * Optional. The maximum number of triggers to return per page.
8437
+ */
8438
+ page_size?: number | undefined;
8439
+ /**
8440
+ * Optional. A page token from a previous ListTriggers call.
8441
+ */
8442
+ page_token?: string | undefined;
8443
+ };
8444
+
8445
+ declare type ListTriggersResponse$ = ListTriggersResponse;
8446
+
8447
+ /**
8448
+ * Response message for TriggerService.ListTriggers.
8449
+ */
8450
+ declare type ListTriggersResponse = {
8451
+ /**
8452
+ * A page token, received from a previous `ListTriggers` call.
8453
+ *
8454
+ * @remarks
8455
+ * Provide this to retrieve the subsequent page.
8456
+ */
8457
+ next_page_token?: string | undefined;
8458
+ /**
8459
+ * The list of triggers.
8460
+ */
8461
+ triggers?: Array<Trigger> | undefined;
8462
+ };
8463
+
7982
8464
  /** Configuration for the list tuning jobs method. */
7983
8465
  export declare interface ListTuningJobsConfig {
7984
8466
  /** Used to override HTTP request options. */
@@ -8234,6 +8716,8 @@ export declare interface LiveClientSetup {
8234
8716
  response.
8235
8717
  */
8236
8718
  safetySettings?: SafetySetting[];
8719
+ /** Configures the exchange of history between the client and the server. */
8720
+ historyConfig?: HistoryConfig;
8237
8721
  }
8238
8722
 
8239
8723
  /** Client generated response to a `ToolCall` received from the server.
@@ -8803,6 +9287,11 @@ export declare interface LiveServerSessionResumptionUpdate {
8803
9287
  export declare interface LiveServerSetupComplete {
8804
9288
  /** The session id of the live session. */
8805
9289
  sessionId?: string;
9290
+ /** Signature of the verified consent audio. This is populated when the
9291
+ request has a ReplicatedVoiceConfig with consent_audio set, if the consent
9292
+ verification was successful. This may be used in a subsequent request
9293
+ instead of the consent_audio to verify the same consent. */
9294
+ voiceConsentSignature?: VoiceConsentSignature;
8806
9295
  }
8807
9296
 
8808
9297
  /** Request for the client to execute the `function_calls` and return the responses with the matching `id`s. */
@@ -8891,22 +9380,22 @@ export declare enum MaskReferenceMode {
8891
9380
  MASK_MODE_SEMANTIC = "MASK_MODE_SEMANTIC"
8892
9381
  }
8893
9382
 
8894
- /** Match operation to use for evaluation. */
9383
+ /** Match operation to use for evaluating rewards. This enum is not supported in Gemini API. */
8895
9384
  export declare enum MatchOperation {
8896
9385
  /**
8897
- * Default value. This value is unused.
9386
+ * Default value. A user error will be returned if not set.
8898
9387
  */
8899
9388
  MATCH_OPERATION_UNSPECIFIED = "MATCH_OPERATION_UNSPECIFIED",
8900
9389
  /**
8901
- * Equivalent to GoogleSQL `REGEX_CONTAINS(target, expression)`.
9390
+ * Equivalent to [GoogleSQL](https://cloud.google.com/bigquery/docs/reference/standard-sql/string_functions#regexp_contains) `REGEX_CONTAINS(target, expression)`.
8902
9391
  */
8903
9392
  REGEX_CONTAINS = "REGEX_CONTAINS",
8904
9393
  /**
8905
- * `expression` is a substring of target.
9394
+ * The match operation returns `true` if expression is a substring of the target.
8906
9395
  */
8907
9396
  PARTIAL_MATCH = "PARTIAL_MATCH",
8908
9397
  /**
8909
- * `expression` is an exact match of target.
9398
+ * The match operation returns `true` expression is an exact match of the target.
8910
9399
  */
8911
9400
  EXACT_MATCH = "EXACT_MATCH"
8912
9401
  }
@@ -8917,11 +9406,21 @@ declare type MCPServer$ = MCPServer;
8917
9406
  * A MCPServer is a server that can be called by the model to perform actions.
8918
9407
  */
8919
9408
  declare type MCPServer = {
8920
- type: "mcp_server";
9409
+ /**
9410
+ * The allowed tools.
9411
+ */
9412
+ allowed_tools?: Array<AllowedTools> | undefined;
9413
+ /**
9414
+ * Optional: Fields for authentication headers, timeouts, etc., if needed.
9415
+ */
9416
+ headers?: {
9417
+ [k: string]: string;
9418
+ } | undefined;
8921
9419
  /**
8922
9420
  * The name of the MCPServer.
8923
9421
  */
8924
9422
  name?: string | undefined;
9423
+ type: "mcp_server";
8925
9424
  /**
8926
9425
  * The full URL for the MCPServer endpoint.
8927
9426
  *
@@ -8929,16 +9428,6 @@ declare type MCPServer = {
8929
9428
  * Example: "https://api.example.com/mcp"
8930
9429
  */
8931
9430
  url?: string | undefined;
8932
- /**
8933
- * Optional: Fields for authentication headers, timeouts, etc., if needed.
8934
- */
8935
- headers?: {
8936
- [k: string]: string;
8937
- } | undefined;
8938
- /**
8939
- * The allowed tools.
8940
- */
8941
- allowed_tools?: Array<AllowedTools> | undefined;
8942
9431
  };
8943
9432
 
8944
9433
  /** A MCPServer is a server that can be called by the model to perform actions. It is a server that implements the MCP protocol. Next ID: 6. This data type is not supported in Vertex AI. */
@@ -8959,12 +9448,12 @@ declare type MCPServerToolCall$ = MCPServerToolCallDelta;
8959
9448
  * g3-prettier-ignore-file
8960
9449
  */
8961
9450
  declare type MCPServerToolCallDelta = {
8962
- type: "mcp_server_tool_call";
8963
- name: string;
8964
- server_name: string;
8965
9451
  arguments: {
8966
9452
  [k: string]: any;
8967
9453
  };
9454
+ name: string;
9455
+ server_name: string;
9456
+ type: "mcp_server_tool_call";
8968
9457
  };
8969
9458
 
8970
9459
  declare type MCPServerToolCallStep$ = MCPServerToolCallStep;
@@ -8980,15 +9469,6 @@ declare type MCPServerToolCallStep$ = MCPServerToolCallStep;
8980
9469
  * MCPServer tool call step.
8981
9470
  */
8982
9471
  declare type MCPServerToolCallStep = {
8983
- type: "mcp_server_tool_call";
8984
- /**
8985
- * Required. The name of the tool which was called.
8986
- */
8987
- name: string;
8988
- /**
8989
- * Required. The name of the used MCP server.
8990
- */
8991
- server_name: string;
8992
9472
  /**
8993
9473
  * Required. The JSON object of arguments for the function.
8994
9474
  */
@@ -8999,15 +9479,24 @@ declare type MCPServerToolCallStep = {
8999
9479
  * Required. A unique ID for this specific tool call.
9000
9480
  */
9001
9481
  id: string;
9482
+ /**
9483
+ * Required. The name of the tool which was called.
9484
+ */
9485
+ name: string;
9486
+ /**
9487
+ * Required. The name of the used MCP server.
9488
+ */
9489
+ server_name: string;
9490
+ type: "mcp_server_tool_call";
9002
9491
  };
9003
9492
 
9004
9493
  declare type MCPServerToolResult$ = MCPServerToolResultDelta;
9005
9494
 
9006
9495
  declare type MCPServerToolResultDelta = {
9007
- type: "mcp_server_tool_result";
9008
9496
  name?: string | undefined;
9009
- server_name?: string | undefined;
9010
9497
  result: MCPServerToolResultDeltaResult | Array<FunctionResultSubcontent> | string;
9498
+ server_name?: string | undefined;
9499
+ type: "mcp_server_tool_result";
9011
9500
  };
9012
9501
 
9013
9502
  declare type MCPServerToolResultDeltaResult = {};
@@ -9020,23 +9509,23 @@ declare type MCPServerToolResultStep$ = MCPServerToolResultStep;
9020
9509
  * MCPServer tool result step.
9021
9510
  */
9022
9511
  declare type MCPServerToolResultStep = {
9023
- type: "mcp_server_tool_result";
9024
- /**
9025
- * Name of the tool which is called for this specific tool call.
9026
- */
9027
- name?: string | undefined;
9028
- /**
9029
- * The name of the used MCP server.
9030
- */
9031
- server_name?: string | undefined;
9032
9512
  /**
9033
9513
  * Required. ID to match the ID from the function call block.
9034
9514
  */
9035
9515
  call_id: string;
9516
+ /**
9517
+ * Name of the tool which is called for this specific tool call.
9518
+ */
9519
+ name?: string | undefined;
9036
9520
  /**
9037
9521
  * The output from the MCP server call. Can be simple text or rich content.
9038
9522
  */
9039
9523
  result: MCPServerToolResultStepResult | string | Array<FunctionResultSubcontent>;
9524
+ /**
9525
+ * The name of the used MCP server.
9526
+ */
9527
+ server_name?: string | undefined;
9528
+ type: "mcp_server_tool_result";
9040
9529
  };
9041
9530
 
9042
9531
  declare type MCPServerToolResultStepResult = {};
@@ -9129,6 +9618,14 @@ declare type Metadata$6 = StreamMetadata;
9129
9618
 
9130
9619
  declare type Metadata$7 = StreamMetadata;
9131
9620
 
9621
+ /**
9622
+ * Optional. The method for blocking content. If not specified, the default
9623
+ *
9624
+ * @remarks
9625
+ * behavior is to use the probability score.
9626
+ */
9627
+ declare type Method = "severity" | "probability" | (string & {});
9628
+
9132
9629
  /** Server content modalities. */
9133
9630
  export declare enum Modality {
9134
9631
  /**
@@ -9172,6 +9669,11 @@ declare type ModalityTokens = {
9172
9669
  tokens?: number | undefined;
9173
9670
  };
9174
9671
 
9672
+ /**
9673
+ * The mode of the find session.
9674
+ */
9675
+ declare type Mode = "scan" | "verify" | (string & {});
9676
+
9175
9677
  declare type Model$ = Model_2;
9176
9678
 
9177
9679
  /** A trained machine learning model. */
@@ -9239,7 +9741,7 @@ export declare interface Model {
9239
9741
  /**
9240
9742
  * The model that will complete your prompt.\n\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details.
9241
9743
  */
9242
- 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 & {});
9744
+ 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 & {});
9243
9745
 
9244
9746
  /** 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. */
9245
9747
  export declare interface ModelArmorConfig {
@@ -9255,7 +9757,6 @@ declare type ModelOutputStep$ = ModelOutputStep;
9255
9757
  * Output generated by the model.
9256
9758
  */
9257
9759
  declare type ModelOutputStep = {
9258
- type: "model_output";
9259
9760
  content?: Array<Content_2> | undefined;
9260
9761
  /**
9261
9762
  * The `Status` type defines a logical error model that is suitable for
@@ -9269,6 +9770,7 @@ declare type ModelOutputStep = {
9269
9770
  * [API Design Guide](https://cloud.google.com/apis/design/errors).
9270
9771
  */
9271
9772
  error?: Status | undefined;
9773
+ type: "model_output";
9272
9774
  };
9273
9775
 
9274
9776
  export declare class Models extends BaseModule {
@@ -10177,19 +10679,18 @@ declare type PlaceCitation$ = PlaceCitation;
10177
10679
  * A place citation annotation.
10178
10680
  */
10179
10681
  declare type PlaceCitation = {
10180
- type: "place_citation";
10181
10682
  /**
10182
- * The ID of the place, in `places/{place_id}` format.
10683
+ * End of the attributed segment, exclusive.
10183
10684
  */
10184
- place_id?: string | undefined;
10685
+ end_index?: number | undefined;
10185
10686
  /**
10186
10687
  * Title of the place.
10187
10688
  */
10188
10689
  name?: string | undefined;
10189
10690
  /**
10190
- * URI reference of the place.
10691
+ * The ID of the place, in `places/{place_id}` format.
10191
10692
  */
10192
- url?: string | undefined;
10693
+ place_id?: string | undefined;
10193
10694
  /**
10194
10695
  * Snippets of reviews that are used to generate answers about the
10195
10696
  *
@@ -10205,10 +10706,11 @@ declare type PlaceCitation = {
10205
10706
  * Index indicates the start of the segment, measured in bytes.
10206
10707
  */
10207
10708
  start_index?: number | undefined;
10709
+ type: "place_citation";
10208
10710
  /**
10209
- * End of the attributed segment, exclusive.
10711
+ * URI reference of the place.
10210
10712
  */
10211
- end_index?: number | undefined;
10713
+ url?: string | undefined;
10212
10714
  };
10213
10715
 
10214
10716
  /** Spec for pointwise metric result. This data type is not supported in Gemini API. */
@@ -10376,21 +10878,21 @@ export declare interface RagRetrievalConfig {
10376
10878
  */
10377
10879
  declare type RagRetrievalConfig_2 = {
10378
10880
  /**
10379
- * Optional. The number of contexts to retrieve.
10881
+ * Config for filters.
10380
10882
  */
10381
- top_k?: number | undefined;
10883
+ filter?: Filter | undefined;
10382
10884
  /**
10383
10885
  * Config for Hybrid Search.
10384
10886
  */
10385
10887
  hybrid_search?: HybridSearch | undefined;
10386
- /**
10387
- * Config for filters.
10388
- */
10389
- filter?: Filter | undefined;
10390
10888
  /**
10391
10889
  * Config for Rank Service.
10392
10890
  */
10393
10891
  ranking?: Ranking | undefined;
10892
+ /**
10893
+ * Optional. The number of contexts to retrieve.
10894
+ */
10895
+ top_k?: number | undefined;
10394
10896
  };
10395
10897
 
10396
10898
  /** Config for filters. This data type is not supported in Gemini API. */
@@ -10437,6 +10939,10 @@ declare type RagStoreConfig = {
10437
10939
  * Optional. The representation of the rag source.
10438
10940
  */
10439
10941
  rag_resources?: Array<RagResource> | undefined;
10942
+ /**
10943
+ * Specifies the context retrieval config.
10944
+ */
10945
+ rag_retrieval_config?: RagRetrievalConfig_2 | undefined;
10440
10946
  /**
10441
10947
  * Optional. Number of top k results to return from the selected corpora.
10442
10948
  *
@@ -10449,10 +10955,6 @@ declare type RagStoreConfig = {
10449
10955
  * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
10450
10956
  */
10451
10957
  vector_distance_threshold?: number | undefined;
10452
- /**
10453
- * Specifies the context retrieval config.
10454
- */
10455
- rag_retrieval_config?: RagRetrievalConfig_2 | undefined;
10456
10958
  };
10457
10959
 
10458
10960
  /**
@@ -10466,11 +10968,11 @@ declare type RagStoreConfig = {
10466
10968
  * Config for Rank Service.
10467
10969
  */
10468
10970
  declare type Ranking = {
10469
- ranking_config: "rank_service";
10470
10971
  /**
10471
10972
  * Optional. The model name of the rank service.
10472
10973
  */
10473
10974
  model_name?: string | undefined;
10975
+ ranking_config: "rank_service";
10474
10976
  };
10475
10977
 
10476
10978
  /** Raw output. This data type is not supported in Gemini API. */
@@ -10634,39 +11136,39 @@ export declare class RegisterFilesResponse {
10634
11136
  export declare interface ReinforcementTuningAutoraterScorer {
10635
11137
  /** Autorater config for evaluation. */
10636
11138
  autoraterConfig?: AutoraterConfig;
10637
- /** Allows substituting `prompt`, `response`, `system_instruction` and `references.reference` (each wrapped in double curly braces) into the autorater prompt. */
11139
+ /** The prompt for an autorater to scorer the parsed sample response. This field supports the following placeholders that will be replaced before scoring: - {{prompt}} - {{response}} - {{system_instruction}} - {{references.key}} */
10638
11140
  autoraterPrompt?: string;
10639
- /** Parses autorater returned response. */
11141
+ /** Parses autorater returned response for scoring. For example, if the autorater response has reward stored in the `2.0` block, defining a parsing response config using regex `".*(.*?)"` will return a score `"2.0"`. */
10640
11142
  autoraterResponseParseConfig?: ReinforcementTuningParseResponseConfig;
10641
- /** Scores autorater responses by directly converting parsed autorater response to float reward. */
11143
+ /** Scores autorater responses by directly converting parsed autorater response to a float reward. Note: Reward is clipped to be within `[-1, 1]`, i.e., `reward = max(min(reward, 1.0), -1.0)`. */
10642
11144
  parsedResponseConversionScorer?: ReinforcementTuningAutoraterScorerParsedResponseConversionScorer;
10643
- /** Scores autorater responses by using exact string match reward scorer. */
11145
+ /** Scores autorater responses by using string match reward scorer. */
10644
11146
  exactMatchScorer?: ReinforcementTuningAutoraterScorerExactMatchScorer;
10645
11147
  }
10646
11148
 
10647
- /** Scores autorater responses by using exact string match reward scorer. */
11149
+ /** Scores autorater responses by using exact string match reward scorer. This data type is not supported in Gemini API. */
10648
11150
  export declare interface ReinforcementTuningAutoraterScorerExactMatchScorer {
10649
- /** Assigns this reward score if parsed response string equals the expression. */
11151
+ /** Assigns this reward score if the parsed response string equals the expression. */
10650
11152
  correctAnswerReward?: number;
10651
- /** Assigns this reward score if parsed reward value does not equal the expression. */
11153
+ /** Assigns this reward score if the parsed reward value does not equal the expression. */
10652
11154
  wrongAnswerReward?: number;
10653
- /** The string expression to match against. Supports substitution in the format of `references.reference` (wrapped in double curly braces) before matching. No regex support. */
11155
+ /** The string expression to match against for scoring. This field supports placeholders in the format of {{references.key}} that will be replaced before matching. Regex is not supported for this expression. For example, users can define an ExactMatchScorer as follows: { "correctAnswerReward": 1.0, "wrongAnswerReward": -1.0, "expression": "{{references.concise_answer}}" } When evaluating the reward for each parsed autorater response, if the prompt references in the training/validation dataset has the following fields: ``` { "example": ..., "references": { "concise_ansser": "Yes", "verbose_answer": "The answer is Yes" } } ``` The above ExactMatchScorer will be replaced as follows for scoring: ``` { "correctAnswerReward": 1.0, "wrongAnswerReward": -1.0, "expression": "Yes" } ``` If the *parsed* autorater response is equal to the string `"Yes"`, then the reward is `1.0`, otherwise the reward is `-1.0`. */
10654
11156
  expression?: string;
10655
11157
  }
10656
11158
 
10657
- /** Scores responses by directly converting parsed autorater response to float reward (reward is clipped to be within [-1, 1]). */
11159
+ /** Scores responses by directly converting the parsed autorater response to a float reward. Note: Reward is clipped to be within `[-1, 1]`, i.e., `reward = max(min(reward, 1.0), -1.0)`. This data type is not supported in Gemini API. */
10658
11160
  export declare class ReinforcementTuningAutoraterScorerParsedResponseConversionScorer {
10659
11161
  }
10660
11162
 
10661
- /** Scores parsed responses by calling a Cloud Run service. */
11163
+ /** ReinforcementTuningCloudRunRewardScorer allows users to implement a reward function through GCP Cloud Run. Comparing with ReinforcementTuningCodeExecutionRewardScorer that runs in a Sandbox and has no internet access, Cloud Run reward scorer is fully controlled by users. The Cloud Run service should implement the following HTTP API: HTTP method: `POST` HTTP request body: ``` { "example": ReinforcementTuningExample, "response": Content, "metadata": { "step": int "tuning_job_id": int64 } } ``` * `example` is a ReinforcementTuningExample in ProtoJSON format, (i.e., the format is the same as as one line in the training/validation dataset except that the keys must be in camel case). System instructions (i.e., `example.get("systemInstruction")`) and references (i.e., `example.get("references")`) are also included in the `example` provided that they are set in the training/validation dataset. * `response` is a Content in ProtoJSON format (i.e., keys must be in camel case), which is the same as the Online Prediction response for Gemini models. HTTP response body: { "reward": float, "user_requested_aux_info": str // Optional } where the field "user_requested_aux_info" is any (optional) string provided by users for assisting debugging. It's in snake case. This field is mostly useful when calling the GenAiTuningService.ValidateReinforcementTuningReward API, where the proto field (not Cloud Run HTTP response body) userRequestedAuxInfo will be populated if the Cloud Run reward function sets this field in the HTTP response. The following are examples for the HTTP request and response body. Example HTTP request body: ``` { "example": { "contents": [ { "role": "user", "parts": [ { "text": "What is the capital of France?" } ] } ], "references": { "answer": "Paris" } }, "response": { "parts": [ { "text": "London" } ] }, "metadata": { "step": 1, "tuning_job_id": 123456789 } } ``` Example HTTP response body: ``` { "reward": -1.0 } ``` Note: Reward output by Cloud Run reward function is clipped to be within `[-1, 1]`, i.e., `reward = max(min(reward, 1.0), -1.0)`. This data type is not supported in Gemini API. */
10662
11164
  export declare interface ReinforcementTuningCloudRunRewardScorer {
10663
- /** URI of the Cloud Run service that will be used to compute the reward. The Vertex AI Secure Fine Tuning Service Agent (`service-PROJECT_NUMBER@gcp-sa-vertex-tune.iam.gserviceaccount.com`, where `PROJECT_NUMBER` is the numeric project number) must be granted the permission (e.g. by granting `roles/run.invoker` in IAM) to invoke the Cloud Run service. */
11165
+ /** URI of the Cloud Run service that will be used to compute the reward. The [Vertex AI Secure Fine Tuning Service Agent](https://docs.cloud.google.com/iam/docs/service-agents#vertex-ai-secure-fine-tuning-service-agent) (`service-@gcp-sa-vertex-tune.iam.gserviceaccount.com`) must be granted the permission (e.g. by granting `roles/run.invoker` in IAM) to invoke the Cloud Run service. */
10664
11166
  cloudRunUri?: string;
10665
11167
  }
10666
11168
 
10667
- /** Scores parsed responses for code execution use cases. */
11169
+ /** ReinforcementTuningCodeExecutionRewardScorer allows users to implement a function to evaluate rewards for the sample response. The function signature is as follows: ``` def evaluate(example: dict[str, Any], response: dict[str, Any]) -> float: ... ``` `example` is a ReinforcementTuningExample in ProtoJSON format, (i.e., the format is the same as as one line in the training/validation dataset except that the keys must be in camel case). System instructions (i.e., `example.get("systemInstruction")`) and references (i.e., `example.get("references")`) are also included in the `example` provided that they are set in the training/validation dataset. `response` is a Content in ProtoJSON format (i.e., keys must be in camel case), which is the same as the Online Prediction response for Gemini models. Note: Reward output by the `evaluate` function is clipped to be within `[-1, 1]`, i.e., `reward = max(min(reward, 1.0), -1.0)`. This data type is not supported in Gemini API. */
10668
11170
  export declare interface ReinforcementTuningCodeExecutionRewardScorer {
10669
- /** Example python code snippet which assigns reward of 1 to answer matching user provided reference answer in per prompt references map. */
11171
+ /** The python code snippet as a string for evaluating rewards. The following is an example python code snippet that returns a reward `1.0` for a parsed response matching the user-provided reference answer in per prompt references map. ``` def evaluate(example, response) -> float: response_str = response.get("parts", [])0 references = example.get("references", {}) if response_str == references.get("concise_answer"): return 1.0 return -1.0 ``` Note: Reward output by the evaluate function is clipped to be within `[-1, 1]`, i.e., `reward = max(min(reward, 1.0), -1.0)`. */
10670
11172
  pythonCodeSnippet?: string;
10671
11173
  }
10672
11174
 
@@ -10676,37 +11178,39 @@ export declare interface ReinforcementTuningExample {
10676
11178
  contents?: Content[];
10677
11179
  /** References for the given prompt. The key is the name of the reference, and the value is the reference itself. */
10678
11180
  references?: Record<string, string>;
10679
- /** Corresponds to `system_instruction` in user-facing GenerateContentRequest. */
11181
+ /** Corresponds to system_instruction in user-facing GenerateContentRequest. */
10680
11182
  systemInstruction?: Content;
10681
11183
  }
10682
11184
 
10683
11185
  /** Hyperparameters for Reinforcement Tuning. */
10684
11186
  export declare interface ReinforcementTuningHyperParameters {
10685
- /** Number of training epochs for the tuning job. */
11187
+ /** Optional. Number of training epoches for the tuning job. */
10686
11188
  epochCount?: string;
10687
11189
  /** Learning rate multiplier for Reinforcement Learning. */
10688
11190
  learningRateMultiplier?: number;
10689
- /** Adapter size for Reinforcement Tuning. */
11191
+ /** Optional. Adapter size for Reinforcement Tuning. */
10690
11192
  adapterSize?: AdapterSize;
10691
- /** Number of different responses to generate per prompt during tuning. */
11193
+ /** Optional. Number of different responses to generate per prompt during tuning. */
10692
11194
  samplesPerPrompt?: number;
10693
- /** Batch size for the tuning job. How many prompts to process at a train step. If not set, the batch size will be determined automatically. */
11195
+ /** Optional. Batch size for the tuning job. How many prompts to process at a train step. If not set, the batch size will be determined automatically. */
10694
11196
  batchSize?: number;
10695
- /** How often (in steps) to evaluate the tuning job during training. If not set, evaluation will run per epoch. */
11197
+ /** Optional. How often at steps to evaluate the tuning job during training. If not set, evel will be run per epoch. `total_steps = epoch_count * samples_per_prompt / total_prompts_in_dataset` */
10696
11198
  evaluateInterval?: number;
10697
- /** How often (in steps) to save checkpoints during training. If not set, one checkpoint per epoch will be saved. */
11199
+ /** Optional. How often at steps to save checkpoints during training. If not set, one checkpoint per epoch will be set. ```total_steps = epoch_count * samples_per_prompt / total_prompts_in_dataset``` */
10698
11200
  checkpointInterval?: number;
10699
- /** The maximum number of tokens to generate per prompt. If not set, defaults to 32768. */
11201
+ /** Optional. The maximum number of tokens to generate per prompt. Default to 32768. */
10700
11202
  maxOutputTokens?: number;
10701
- /** Indicates the maximum thinking depth. Use with earlier models shall result in error. */
11203
+ /** Indicates the maximum thinking depth during tuning. Starting from Gemini 3.5 models, the old thinking_budget will no longer be supported and will result in a user error if set. Instead, users should use the thinking_level parameter to control the maximum thinking depth. */
10702
11204
  thinkingLevel?: ReinforcementTuningThinkingLevel;
11205
+ /** Optional. The thinking budget for the tuning job to optimize for (Gemini 2.5 only). * -1 means dynamic thinking * 0 means no thinking * > 0 means thinking budget in tokens If not set, default to -1 (dynamic thinking). */
11206
+ thinkingBudget?: number;
10703
11207
  }
10704
11208
 
10705
- /** Defines how to parse sample response for reinforcement tuning. */
11209
+ /** Defines how to parse sample response config for reinforcement tuning. The parsed response (i.e., substring) will be passed to the reward functions. For example, the input prompt might be: > "Perform step-by-step thoughts first to problem A, finally output answer in the <ans> </ans> block." The sample response from the model under tuning might look like: > "<ans>Yes</ans>" Here, users can define the following parse config: ``` { "parseType": "REGEX_EXTRACT", "regexExtractExpression": ".*(.*?)" } ``` The resulting parsed response would be `"Yes"` and will be passed to the reward functions for evaluating rewards. This data type is not supported in Gemini API. */
10706
11210
  export declare class ReinforcementTuningParseResponseConfig {
10707
- /** Defines how to parse sample response. */
11211
+ /** Defines the type for parsing sample response. */
10708
11212
  parseType?: ResponseParseType;
10709
- /** Defines the regex to extract the important part of sample response. This field is only used when `parse_type` is `REGEX_EXTRACT`. */
11213
+ /** Defines the regex for extracting the important part of sample response. This field is only used when parse_type is ResponseParseType.REGEX_EXTRACT. */
10710
11214
  regexExtractExpression?: string;
10711
11215
  }
10712
11216
 
@@ -10714,16 +11218,17 @@ export declare class ReinforcementTuningParseResponseConfig {
10714
11218
  export declare interface ReinforcementTuningRewardInfo {
10715
11219
  /** Output only. The calculated reward for the reward function. */
10716
11220
  reward?: number;
10717
- /** Output only. The user-requested auxiliary info for the reward function. */
11221
+ /** Output only. The user-requested auxiliary info for the reward function. This field is set only if the Cloud Run reward function configured by user returns a "user_requested_aux_info". Refer to ReinforcementTuningCloudRunRewardScorer for more details. */
10718
11222
  userRequestedAuxInfo?: string;
10719
11223
  }
10720
11224
 
10721
11225
  /** Reinforcement tuning spec for tuning. */
10722
11226
  export declare interface ReinforcementTuningSpec {
11227
+ /** Composite reward function configuration for reinforcement tuning. */
10723
11228
  compositeRewardConfig?: CompositeReinforcementTuningRewardConfig;
10724
- /** Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file. */
11229
+ /** Cloud Storage path to the file containing training dataset for tuning. The dataset must be formatted as a JSONL file. */
10725
11230
  trainingDatasetUri?: string;
10726
- /** Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file. If no validation dataset is provided, by default the API splits 25% of the training dataset or 50 examples, whichever is larger, as the validation dataset. */
11231
+ /** Cloud Storage path to the file containing validation dataset for tuning. The dataset must be formatted as a JSONL file. */
10727
11232
  validationDatasetUri?: string;
10728
11233
  /** Additional hyper-parameters to use during tuning. */
10729
11234
  hyperParameters?: ReinforcementTuningHyperParameters;
@@ -10731,11 +11236,11 @@ export declare interface ReinforcementTuningSpec {
10731
11236
  singleRewardConfig?: SingleReinforcementTuningRewardConfig;
10732
11237
  }
10733
11238
 
10734
- /** Scores parsed responses for string matching use cases. */
11239
+ /** ReinforcementTuningStringMatchRewardScorer is used to score parsed responses for string matching use cases. For example, for math problems, users can use string match scorer to check if the correct exact answer is generated. Note: Reward returned by the string match reward function is clipped to be within `[-1, 1]` if wrongAnswerReward or correctAnswerReward are beyond the range, i.e., `reward = max(min(reward, 1.0), -1.0)`. This data type is not supported in Gemini API. */
10735
11240
  export declare interface ReinforcementTuningStringMatchRewardScorer {
10736
- /** Wrong answer reward is returned if evaluator evaluates to `false`. All wrong answers get the same reward. */
11241
+ /** Wrong answer reward is returned if the parsed response is evaluated as `false`. All wrong answers get the same reward. */
10737
11242
  wrongAnswerReward?: number;
10738
- /** Correct answer reward is returned if evaluator evaluates to `true`. All correct answers get the same reward. */
11243
+ /** Correct answer rewawrd is returned if the parsed response is evaluated as `true`. All correct answers get the same reward. */
10739
11244
  correctAnswerReward?: number;
10740
11245
  /** Uses string match expression to evaluate parsed response. */
10741
11246
  stringMatchExpression?: ReinforcementTuningStringMatchRewardScorerStringMatchExpression;
@@ -10743,19 +11248,19 @@ export declare interface ReinforcementTuningStringMatchRewardScorer {
10743
11248
  jsonMatchExpression?: ReinforcementTuningStringMatchRewardScorerJsonMatchExpression;
10744
11249
  }
10745
11250
 
10746
- /** Converts parsed responses to JSON format, finds the first-level matching key, then performs StringMatchExpression on the value. */
11251
+ /** JsonMatchExpression supports converting the parsed responses to JSON format, finding the value in the JSON response that matches the key_name in the first level, and performing StringMatchExpression operation on the matched JSON value. This data type is not supported in Gemini API. */
10747
11252
  export declare interface ReinforcementTuningStringMatchRewardScorerJsonMatchExpression {
10748
- /** Json key name to find the value to match against. */
11253
+ /** The key name to find the value in the parsed response that's in JSON format. Only first-level key matching is supported. */
10749
11254
  keyName?: string;
10750
- /** String match expression to match against the value of json key. */
11255
+ /** String match expression to match against the extracted value from the JSON representation of the parsed response. */
10751
11256
  valueStringMatchExpression?: ReinforcementTuningStringMatchRewardScorerStringMatchExpression;
10752
11257
  }
10753
11258
 
10754
- /** Evaluates parsed response using match type against expression. */
11259
+ /** Evaluates parsed response using match type against the expression. Returns `true` if `MatchOperation(target, expression)` evaluates to `true`, and `false` otherwise. This data type is not supported in Gemini API. */
10755
11260
  export declare interface ReinforcementTuningStringMatchRewardScorerStringMatchExpression {
10756
- /** Match operation to use for evaluation. */
11261
+ /** Match operation to use for evaluating rewards. */
10757
11262
  matchOperation?: MatchOperation;
10758
- /** String or regular expression to match against. Customer can also provide a references map (key/value pairs) whose value will be substituted into the expression by referencing `references.key_name` (wrapped in double curly braces). */
11263
+ /** A string or a regular expression to match against for evaluating rewards. Users can also provide a references map of `{key: value}` whose `value` will be used to replace the placeholder {{references.key}} in the expression. For example, if the following `references` are defined in the training / validation dataset: ``` { "systemInstruction": ..., "contents": ..., "references": { "concise_answer": "Yes", "verbose_answer": "The answer is Yes" } } ``` and if users define the following StringMatchExpression: { "matchOperation": "REGEX_CONTAINS", "expression": ".*{{references.concise_answer}}.*" } On evaluating the reward for each sample response, this StringMatchExpression will be substituted as: ``` { "matchOperation": "REGEX_CONTAINS", "expression": ".*Yes.*" } ``` */
10759
11264
  expression?: string;
10760
11265
  }
10761
11266
 
@@ -10775,6 +11280,12 @@ export declare enum ReinforcementTuningThinkingLevel {
10775
11280
  HIGH = "HIGH"
10776
11281
  }
10777
11282
 
11283
+ /** Sample reinforcement tuning user data in the training dataset. The contents are truncated for better UI showing. This data type is not supported in Gemini API. */
11284
+ export declare interface ReinforcementTuningUserDatasetExamples {
11285
+ /** List of user datasset examples showing to user. */
11286
+ userDatasetExamples?: ReinforcementTuningExample[];
11287
+ }
11288
+
10778
11289
  /** Represents a recorded session. */
10779
11290
  export declare interface ReplayFile {
10780
11291
  replayId?: string;
@@ -10814,6 +11325,17 @@ export declare interface ReplicatedVoiceConfig {
10814
11325
 
10815
11326
  * @remarks Encoded as base64 string. */
10816
11327
  voiceSampleAudio?: string;
11328
+ /** Recorded consent verifying ownership of the voice. This
11329
+ represents 16-bit signed little-endian wav data, with a 24kHz sampling
11330
+ rate.
11331
+ * @remarks Encoded as base64 string. */
11332
+ consentAudio?: string;
11333
+ /** Signature of a previously verified consent audio. This should be
11334
+ populated with a signature generated by the server for a previous
11335
+ request containing the consent_audio field. When provided, the
11336
+ signature is verified instead of the consent_audio field to reduce
11337
+ latency. Requests will fail if the signature is invalid or expired. */
11338
+ voiceConsentSignature?: VoiceConsentSignature;
10817
11339
  }
10818
11340
 
10819
11341
  declare type RequestOptions = {
@@ -10870,7 +11392,19 @@ export declare enum ResourceScope {
10870
11392
  COLLECTION = "COLLECTION"
10871
11393
  }
10872
11394
 
10873
- declare type ResponseFormat = AudioResponseFormat | TextResponseFormat | ImageResponseFormat | VideoResponseFormat | {
11395
+ /** Configuration for the model to configure output formatting and delivery. This data type is not supported in Gemini API. */
11396
+ export declare class ResponseFormat {
11397
+ /** Audio output format. */
11398
+ audio?: AudioResponseFormat;
11399
+ /** Image output format. */
11400
+ image?: ImageResponseFormat;
11401
+ /** Text output format. */
11402
+ text?: TextResponseFormat;
11403
+ /** Video output format. */
11404
+ video?: VideoResponseFormat;
11405
+ }
11406
+
11407
+ declare type ResponseFormat_2 = AudioResponseFormat_2 | TextResponseFormat_2 | ImageResponseFormat_2 | VideoResponseFormat_2 | {
10874
11408
  [k: string]: any;
10875
11409
  };
10876
11410
 
@@ -10883,18 +11417,18 @@ declare type ResponseFormat = AudioResponseFormat | TextResponseFormat | ImageRe
10883
11417
  */
10884
11418
  declare type ResponseModality = "text" | "image" | "audio" | "video" | "document" | (string & {});
10885
11419
 
10886
- /** Defines how to parse sample response. */
11420
+ /** Defines the type for parsing sample response. This enum is not supported in Gemini API. */
10887
11421
  export declare enum ResponseParseType {
10888
11422
  /**
10889
- * Default value. This value is unused.
11423
+ * Default value. Fallback to IDENTITY
10890
11424
  */
10891
11425
  RESPONSE_PARSE_TYPE_UNSPECIFIED = "RESPONSE_PARSE_TYPE_UNSPECIFIED",
10892
11426
  /**
10893
- * Use the sample response as is.
11427
+ * Returns the sample response as is.
10894
11428
  */
10895
11429
  IDENTITY = "IDENTITY",
10896
11430
  /**
10897
- * Use regex to extract the important part of sample response.
11431
+ * Uses regex to extract the important part of sample response. Similar to [GoogleSQL](https://cloud.google.com/bigquery/docs/reference/standard-sql/string_functions#regexp_extract) `REGEX_EXTRACT(response, regex_extract_expression)`, but different in that if there are multiple matches, the last match will be returned.
10898
11432
  */
10899
11433
  REGEX_EXTRACT = "REGEX_EXTRACT"
10900
11434
  }
@@ -10923,29 +11457,77 @@ export declare interface Retrieval {
10923
11457
  * A tool that can be used by the model to retrieve files.
10924
11458
  */
10925
11459
  declare type Retrieval_2 = {
10926
- type: "retrieval";
11460
+ /**
11461
+ * Used to specify configuration for ExaAISearch.
11462
+ */
11463
+ exa_ai_search_config?: ExaAISearchConfig | undefined;
11464
+ /**
11465
+ * Used to specify configuration for ParallelAISearch.
11466
+ */
11467
+ parallel_ai_search_config?: ParallelAISearchConfig | undefined;
11468
+ /**
11469
+ * Use to specify configuration for RAG Store.
11470
+ */
11471
+ rag_store_config?: RagStoreConfig | undefined;
10927
11472
  /**
10928
11473
  * The types of file retrieval to enable.
10929
11474
  */
10930
- retrieval_types?: Array<RetrievalType> | undefined;
11475
+ retrieval_types?: Array<RetrievalRetrievalType> | undefined;
11476
+ type: "retrieval";
10931
11477
  /**
10932
11478
  * Used to specify configuration for VertexAISearch.
10933
11479
  */
10934
11480
  vertex_ai_search_config?: VertexAISearchConfig | undefined;
11481
+ };
11482
+
11483
+ declare type RetrievalCallArguments$ = RetrievalCallArguments;
11484
+
11485
+ /**
11486
+ * @license
11487
+ * Copyright 2026 Google LLC
11488
+ * SPDX-License-Identifier: Apache-2.0
11489
+ *
11490
+ * g3-prettier-ignore-file
11491
+ */
11492
+ /**
11493
+ * The arguments to pass to Retrieval tools.
11494
+ */
11495
+ declare type RetrievalCallArguments = {
10935
11496
  /**
10936
- * Used to specify configuration for ExaAISearch.
11497
+ * Queries for Retrieval information.
10937
11498
  */
10938
- exa_ai_search_config?: ExaAISearchConfig | undefined;
11499
+ queries?: Array<string> | undefined;
11500
+ };
11501
+
11502
+ declare type RetrievalCallDelta$ = RetrievalCallDelta;
11503
+
11504
+ /**
11505
+ * Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,
11506
+ *
11507
+ * @remarks
11508
+ * etc. RetrievalType decides which tool is used.
11509
+ */
11510
+ declare type RetrievalCallDelta = {
10939
11511
  /**
10940
- * Used to specify configuration for ParallelAISearch.
11512
+ * The arguments to pass to Retrieval tools.
10941
11513
  */
10942
- parallel_ai_search_config?: ParallelAISearchConfig | undefined;
11514
+ arguments: RetrievalCallArguments;
10943
11515
  /**
10944
- * Use to specify configuration for RAG Store.
11516
+ * The type of retrieval tools.
10945
11517
  */
10946
- rag_store_config?: RagStoreConfig | undefined;
11518
+ retrieval_type?: RetrievalCallDeltaRetrievalType | undefined;
11519
+ /**
11520
+ * A signature hash for backend validation.
11521
+ */
11522
+ signature?: string | undefined;
11523
+ type: "retrieval_call";
10947
11524
  };
10948
11525
 
11526
+ /**
11527
+ * The type of retrieval tools.
11528
+ */
11529
+ declare type RetrievalCallDeltaRetrievalType = "vertex_ai_search" | "rag_store" | "exa_ai_search" | "parallel_ai_search" | (string & {});
11530
+
10949
11531
  /** Retrieval config. */
10950
11532
  export declare interface RetrievalConfig {
10951
11533
  /** The location of the user. */
@@ -10965,7 +11547,35 @@ export declare interface RetrievalMetadata {
10965
11547
  googleSearchDynamicRetrievalScore?: number;
10966
11548
  }
10967
11549
 
10968
- declare type RetrievalType = "vertex_ai_search" | "rag_store" | "exa_ai_search" | "parallel_ai_search" | (string & {});
11550
+ declare type RetrievalResultDelta$ = RetrievalResultDelta;
11551
+
11552
+ /**
11553
+ * @license
11554
+ * Copyright 2026 Google LLC
11555
+ * SPDX-License-Identifier: Apache-2.0
11556
+ *
11557
+ * g3-prettier-ignore-file
11558
+ */
11559
+ /**
11560
+ * Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,
11561
+ *
11562
+ * @remarks
11563
+ * etc.
11564
+ * ToolResultDelta.type
11565
+ */
11566
+ declare type RetrievalResultDelta = {
11567
+ /**
11568
+ * Whether the retrieval resulted in an error.
11569
+ */
11570
+ is_error?: boolean | undefined;
11571
+ /**
11572
+ * A signature hash for backend validation.
11573
+ */
11574
+ signature?: string | undefined;
11575
+ type: "retrieval_result";
11576
+ };
11577
+
11578
+ declare type RetrievalRetrievalType = "vertex_ai_search" | "rag_store" | "exa_ai_search" | "parallel_ai_search" | (string & {});
10969
11579
 
10970
11580
  declare type RetryConfig = {
10971
11581
  strategy: "none";
@@ -11000,6 +11610,10 @@ declare type ReviewSnippet$3 = ReviewSnippet;
11000
11610
  * the features of a specific place in Google Maps.
11001
11611
  */
11002
11612
  declare type ReviewSnippet = {
11613
+ /**
11614
+ * The ID of the review snippet.
11615
+ */
11616
+ review_id?: string | undefined;
11003
11617
  /**
11004
11618
  * Title of the review.
11005
11619
  */
@@ -11008,10 +11622,6 @@ declare type ReviewSnippet = {
11008
11622
  * A link that corresponds to the user review on Google Maps.
11009
11623
  */
11010
11624
  url?: string | undefined;
11011
- /**
11012
- * The ID of the review snippet.
11013
- */
11014
- review_id?: string | undefined;
11015
11625
  };
11016
11626
 
11017
11627
  /**
@@ -11044,6 +11654,19 @@ export declare interface RougeMetricValue {
11044
11654
  score?: number;
11045
11655
  }
11046
11656
 
11657
+ declare type RunTriggerParams = Omit<RunTriggerRequest, "trigger_id">;
11658
+
11659
+ declare type RunTriggerRequest = {
11660
+ /**
11661
+ * Which version of the API to use.
11662
+ */
11663
+ api_version?: string | undefined;
11664
+ /**
11665
+ * Resource name of the trigger.
11666
+ */
11667
+ trigger_id: string;
11668
+ };
11669
+
11047
11670
  /** Safety attributes of a GeneratedImage or the user-provided prompt. */
11048
11671
  export declare interface SafetyAttributes {
11049
11672
  /** List of RAI categories. */
@@ -11116,6 +11739,8 @@ export declare interface SafetyRating {
11116
11739
  severityScore?: number;
11117
11740
  }
11118
11741
 
11742
+ declare type SafetySetting$ = SafetySetting_2;
11743
+
11119
11744
  /** A safety setting that affects the safety-blocking behavior. A SafetySetting consists of a harm category and a threshold for that category. */
11120
11745
  export declare interface SafetySetting {
11121
11746
  /** Required. The harm category to be blocked. */
@@ -11126,6 +11751,34 @@ export declare interface SafetySetting {
11126
11751
  threshold?: HarmBlockThreshold;
11127
11752
  }
11128
11753
 
11754
+ /**
11755
+ * A safety setting that affects the safety-blocking behavior.
11756
+ *
11757
+ * @remarks
11758
+ *
11759
+ * A SafetySetting consists of a
11760
+ * harm category and a
11761
+ * threshold for that
11762
+ * category.
11763
+ */
11764
+ declare type SafetySetting_2 = {
11765
+ /**
11766
+ * Optional. The method for blocking content. If not specified, the default
11767
+ *
11768
+ * @remarks
11769
+ * behavior is to use the probability score.
11770
+ */
11771
+ method?: Method | undefined;
11772
+ /**
11773
+ * Required. The threshold for blocking content. If the harm probability
11774
+ *
11775
+ * @remarks
11776
+ * exceeds this threshold, the content will be blocked.
11777
+ */
11778
+ threshold: Threshold;
11779
+ type: HarmCategory_2;
11780
+ };
11781
+
11129
11782
  /** Scale of the generated music. */
11130
11783
  export declare enum Scale {
11131
11784
  /**
@@ -11406,6 +12059,7 @@ declare type ServiceTier_2 = "flex" | "standard" | "priority" | (string & {});
11406
12059
  export declare class Session {
11407
12060
  readonly conn: WebSocket_2;
11408
12061
  private readonly apiClient;
12062
+ setupComplete?: types.LiveServerSetupComplete;
11409
12063
  constructor(conn: WebSocket_2, apiClient: ApiClient);
11410
12064
  private tLiveClientContent;
11411
12065
  private tLiveClienttToolResponse;
@@ -11523,6 +12177,28 @@ export declare class Session {
11523
12177
  close(): void;
11524
12178
  }
11525
12179
 
12180
+ declare type SessionConfig$ = SessionConfig;
12181
+
12182
+ /**
12183
+ * @license
12184
+ * Copyright 2026 Google LLC
12185
+ * SPDX-License-Identifier: Apache-2.0
12186
+ *
12187
+ * g3-prettier-ignore-file
12188
+ */
12189
+ /**
12190
+ * The configuration of CodeMender sessions.
12191
+ */
12192
+ declare type SessionConfig = {
12193
+ /**
12194
+ * The maximum number of interaction rounds the agent is allowed to perform
12195
+ *
12196
+ * @remarks
12197
+ * before reaching a timeout.
12198
+ */
12199
+ max_rounds?: number | undefined;
12200
+ };
12201
+
11526
12202
  /** Configuration of session resumption mechanism.
11527
12203
 
11528
12204
  Included in `LiveConnectConfig.session_resumption`. If included server
@@ -11571,14 +12247,14 @@ declare type SigningSecret$ = SigningSecret;
11571
12247
  * Represents a signing secret used to verify webhook payloads.
11572
12248
  */
11573
12249
  declare type SigningSecret = {
11574
- /**
11575
- * Output only. The truncated version of the signing secret.
11576
- */
11577
- truncated_secret?: string | undefined;
11578
12250
  /**
11579
12251
  * Output only. The expiration date of the signing secret.
11580
12252
  */
11581
12253
  expire_time?: string | undefined;
12254
+ /**
12255
+ * Output only. The truncated version of the signing secret.
12256
+ */
12257
+ truncated_secret?: string | undefined;
11582
12258
  };
11583
12259
 
11584
12260
  /** Config for `response` parameter. */
@@ -11595,15 +12271,15 @@ export declare class SingleEmbedContentResponse {
11595
12271
  export declare interface SingleReinforcementTuningRewardConfig {
11596
12272
  /** Scores parsed responses for autorater use cases by using a model to compute the reward. */
11597
12273
  autoraterScorer?: ReinforcementTuningAutoraterScorer;
11598
- /** A unique reward name used to identify each single reinforcement tuning reward. */
12274
+ /** A unique reward name for identifying each single reinforcement tuning reward. */
11599
12275
  rewardName?: string;
11600
- /** Defines how to parse sample response. */
12276
+ /** Defines how to parse sample response. For example, given a sample response for evaluating the reward, users might want to extract the text only between `` and `` in the sample response, and keeps only the last one in case there are multiple such tags. To achieve such a purpose, they can define a regex `".*(.*?)"` using the ReinforcementTuningParseResponseConfig.ResponseParseType.REGEX_EXTRACT parse type. */
11601
12277
  parseResponseConfig?: ReinforcementTuningParseResponseConfig;
11602
- /** Scores parsed responses for code execution use cases. */
12278
+ /** ReinforcementTuningCodeExecutionRewardScorer is used to score parsed responses for code execution use cases. */
11603
12279
  codeExecutionRewardScorer?: ReinforcementTuningCodeExecutionRewardScorer;
11604
- /** Scores parsed responses for simple string matching use cases against reference answer without writing python code. */
12280
+ /** ReinforcementTuningStringMatchRewardScorer is used to score parsed responses for simple string matching use cases against reference answers. */
11605
12281
  stringMatchRewardScorer?: ReinforcementTuningStringMatchRewardScorer;
11606
- /** Scores parsed responses by calling a Cloud Run service. */
12282
+ /** ReinforcementTuningCloudRunRewardScorer is used to score parsed responses by calling a Cloud Run service. */
11607
12283
  cloudRunRewardScorer?: ReinforcementTuningCloudRunRewardScorer;
11608
12284
  }
11609
12285
 
@@ -11624,7 +12300,14 @@ declare type Source$ = Source;
11624
12300
  * A source to be mounted into the environment.
11625
12301
  */
11626
12302
  declare type Source = {
11627
- type?: SourceType | undefined;
12303
+ /**
12304
+ * The inline content if `type` is `INLINE`.
12305
+ */
12306
+ content?: string | undefined;
12307
+ /**
12308
+ * Optional encoding for inline content (e.g. `base64`).
12309
+ */
12310
+ encoding?: string | undefined;
11628
12311
  /**
11629
12312
  * The source of the environment.
11630
12313
  *
@@ -11637,16 +12320,13 @@ declare type Source = {
11637
12320
  * Where the source should appear in the environment.
11638
12321
  */
11639
12322
  target?: string | undefined;
11640
- /**
11641
- * The inline content if `type` is `INLINE`.
11642
- */
11643
- content?: string | undefined;
11644
- /**
11645
- * Optional encoding for inline content (e.g. `base64`).
11646
- */
11647
- encoding?: string | undefined;
12323
+ type?: SourceType | undefined;
11648
12324
  };
11649
12325
 
12326
+ declare type SourceFile$ = FileContent;
12327
+
12328
+ declare type SourceFile$2 = FileContent;
12329
+
11650
12330
  /**
11651
12331
  * @license
11652
12332
  * Copyright 2026 Google LLC
@@ -11687,10 +12367,6 @@ export declare interface SpeechConfig {
11687
12367
  * The configuration for speech interaction.
11688
12368
  */
11689
12369
  declare type SpeechConfig_2 = {
11690
- /**
11691
- * The voice of the speaker.
11692
- */
11693
- voice?: string | undefined;
11694
12370
  /**
11695
12371
  * The language of the speech.
11696
12372
  */
@@ -11699,6 +12375,10 @@ declare type SpeechConfig_2 = {
11699
12375
  * The speaker's name, it should match the speaker name given in the prompt.
11700
12376
  */
11701
12377
  speaker?: string | undefined;
12378
+ /**
12379
+ * The voice of the speaker.
12380
+ */
12381
+ voice?: string | undefined;
11702
12382
  };
11703
12383
 
11704
12384
  export declare type SpeechConfigUnion = SpeechConfig | string;
@@ -11749,14 +12429,6 @@ declare type Status = {
11749
12429
  * The status code, which should be an enum value of google.rpc.Code.
11750
12430
  */
11751
12431
  code?: number | undefined;
11752
- /**
11753
- * A developer-facing error message, which should be in English. Any
11754
- *
11755
- * @remarks
11756
- * user-facing error message should be localized and sent in the
11757
- * google.rpc.Status.details field, or localized by the client.
11758
- */
11759
- message?: string | undefined;
11760
12432
  /**
11761
12433
  * A list of messages that carry the error details. There is a common set of
11762
12434
  *
@@ -11766,6 +12438,14 @@ declare type Status = {
11766
12438
  details?: Array<{
11767
12439
  [k: string]: any;
11768
12440
  }> | undefined;
12441
+ /**
12442
+ * A developer-facing error message, which should be in English. Any
12443
+ *
12444
+ * @remarks
12445
+ * user-facing error message should be localized and sent in the
12446
+ * google.rpc.Status.details field, or localized by the client.
12447
+ */
12448
+ message?: string | undefined;
11769
12449
  };
11770
12450
 
11771
12451
  declare type Step$ = Step;
@@ -11778,8 +12458,6 @@ declare type Step = UserInputStep | ModelOutputStep | ThoughtStep | FunctionCall
11778
12458
  declare type StepDelta$ = StepDelta;
11779
12459
 
11780
12460
  declare type StepDelta = {
11781
- event_type: "step.delta";
11782
- index: number;
11783
12461
  delta: StepDeltaData;
11784
12462
  /**
11785
12463
  * The event_id token to be used to resume the interaction stream, from
@@ -11788,13 +12466,15 @@ declare type StepDelta = {
11788
12466
  * this event.
11789
12467
  */
11790
12468
  event_id?: string | undefined;
12469
+ event_type: "step.delta";
12470
+ index: number;
11791
12471
  /**
11792
12472
  * Optional metadata accompanying ANY streamed event.
11793
12473
  */
11794
12474
  metadata?: StepDeltaMetadata | undefined;
11795
12475
  };
11796
12476
 
11797
- declare type StepDeltaData = TextDelta | ImageDelta | AudioDelta | DocumentDelta | VideoDelta | ThoughtSummaryDelta | ThoughtSignatureDelta | TextAnnotationDelta | ArgumentsDelta | CodeExecutionCallDelta | URLContextCallDelta | GoogleSearchCallDelta | MCPServerToolCallDelta | FileSearchCallDelta | GoogleMapsCallDelta | CodeExecutionResultDelta | URLContextResultDelta | GoogleSearchResultDelta | MCPServerToolResultDelta | FileSearchResultDelta | GoogleMapsResultDelta | FunctionResultDelta;
12477
+ declare type StepDeltaData = TextDelta | ImageDelta | AudioDelta | DocumentDelta | VideoDelta | ThoughtSummaryDelta | ThoughtSignatureDelta | TextAnnotationDelta | ArgumentsDelta | CodeExecutionCallDelta | URLContextCallDelta | GoogleSearchCallDelta | MCPServerToolCallDelta | FileSearchCallDelta | GoogleMapsCallDelta | RetrievalCallDelta | CodeExecutionResultDelta | URLContextResultDelta | GoogleSearchResultDelta | MCPServerToolResultDelta | FileSearchResultDelta | GoogleMapsResultDelta | RetrievalResultDelta | FunctionResultDelta;
11798
12478
 
11799
12479
  /**
11800
12480
  * Optional metadata accompanying ANY streamed event.
@@ -11809,12 +12489,6 @@ declare type StepDeltaMetadata = {
11809
12489
  declare type StepStart$ = StepStart;
11810
12490
 
11811
12491
  declare type StepStart = {
11812
- event_type: "step.start";
11813
- index: number;
11814
- /**
11815
- * A step in the interaction.
11816
- */
11817
- step: Step;
11818
12492
  /**
11819
12493
  * The event_id token to be used to resume the interaction stream, from
11820
12494
  *
@@ -11822,22 +12496,18 @@ declare type StepStart = {
11822
12496
  * this event.
11823
12497
  */
11824
12498
  event_id?: string | undefined;
12499
+ event_type: "step.start";
12500
+ index: number;
11825
12501
  metadata?: StreamMetadata | undefined;
12502
+ /**
12503
+ * A step in the interaction.
12504
+ */
12505
+ step: Step;
11826
12506
  };
11827
12507
 
11828
12508
  declare type StepStop$ = StepStop;
11829
12509
 
11830
12510
  declare type StepStop = {
11831
- event_type: "step.stop";
11832
- index: number;
11833
- /**
11834
- * Statistics on the interaction request's token usage.
11835
- */
11836
- usage?: Usage | undefined;
11837
- /**
11838
- * Statistics on the interaction request's token usage.
11839
- */
11840
- step_usage?: Usage | undefined;
11841
12511
  /**
11842
12512
  * The event_id token to be used to resume the interaction stream, from
11843
12513
  *
@@ -11845,7 +12515,17 @@ declare type StepStop = {
11845
12515
  * this event.
11846
12516
  */
11847
12517
  event_id?: string | undefined;
12518
+ event_type: "step.stop";
12519
+ index: number;
11848
12520
  metadata?: StreamMetadata | undefined;
12521
+ /**
12522
+ * Statistics on the interaction request's token usage.
12523
+ */
12524
+ step_usage?: Usage | undefined;
12525
+ /**
12526
+ * Statistics on the interaction request's token usage.
12527
+ */
12528
+ usage?: Usage | undefined;
11849
12529
  };
11850
12530
 
11851
12531
  export declare class Stream<T> extends ReadableStream<T> {
@@ -12097,11 +12777,11 @@ declare type Text$ = TextDelta;
12097
12777
  declare type TextAnnotationDelta$ = TextAnnotationDelta;
12098
12778
 
12099
12779
  declare type TextAnnotationDelta = {
12100
- type: "text_annotation_delta";
12101
12780
  /**
12102
12781
  * Citation information for model-generated content.
12103
12782
  */
12104
12783
  annotations?: Array<Annotation> | undefined;
12784
+ type: "text_annotation_delta";
12105
12785
  };
12106
12786
 
12107
12787
  declare type TextContent$ = TextContent;
@@ -12110,15 +12790,15 @@ declare type TextContent$ = TextContent;
12110
12790
  * A text content block.
12111
12791
  */
12112
12792
  declare type TextContent = {
12113
- type: "text";
12114
- /**
12115
- * Required. The text content.
12116
- */
12117
- text: string;
12118
12793
  /**
12119
12794
  * Citation information for model-generated content.
12120
12795
  */
12121
12796
  annotations?: Array<Annotation> | undefined;
12797
+ /**
12798
+ * Required. The text content.
12799
+ */
12800
+ text: string;
12801
+ type: "text";
12122
12802
  };
12123
12803
 
12124
12804
  /**
@@ -12129,17 +12809,24 @@ declare type TextContent = {
12129
12809
  * g3-prettier-ignore-file
12130
12810
  */
12131
12811
  declare type TextDelta = {
12132
- type: "text";
12133
12812
  text: string;
12813
+ type: "text";
12134
12814
  };
12135
12815
 
12136
- declare type TextResponseFormat$ = TextResponseFormat;
12816
+ declare type TextResponseFormat$ = TextResponseFormat_2;
12817
+
12818
+ /** Configuration for text-specific output formatting. */
12819
+ export declare class TextResponseFormat {
12820
+ /** Optional. The IANA standard MIME type of the response. */
12821
+ mimeType?: string;
12822
+ /** Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON. */
12823
+ schema?: unknown;
12824
+ }
12137
12825
 
12138
12826
  /**
12139
12827
  * Configuration for text output format.
12140
12828
  */
12141
- declare type TextResponseFormat = {
12142
- type: "text";
12829
+ declare type TextResponseFormat_2 = {
12143
12830
  /**
12144
12831
  * The MIME type of the text output.
12145
12832
  */
@@ -12153,6 +12840,7 @@ declare type TextResponseFormat = {
12153
12840
  schema?: {
12154
12841
  [k: string]: any;
12155
12842
  } | undefined;
12843
+ type: "text";
12156
12844
  };
12157
12845
 
12158
12846
  /**
@@ -12233,11 +12921,11 @@ declare type ThoughtSignature$ = ThoughtSignatureDelta;
12233
12921
  * g3-prettier-ignore-file
12234
12922
  */
12235
12923
  declare type ThoughtSignatureDelta = {
12236
- type: "thought_signature";
12237
12924
  /**
12238
12925
  * Signature to match the backend source to be part of the generation.
12239
12926
  */
12240
12927
  signature?: string | undefined;
12928
+ type: "thought_signature";
12241
12929
  };
12242
12930
 
12243
12931
  declare type ThoughtStep$ = ThoughtStep;
@@ -12246,7 +12934,6 @@ declare type ThoughtStep$ = ThoughtStep;
12246
12934
  * A thought step.
12247
12935
  */
12248
12936
  declare type ThoughtStep = {
12249
- type: "thought";
12250
12937
  /**
12251
12938
  * A signature hash for backend validation.
12252
12939
  */
@@ -12255,6 +12942,7 @@ declare type ThoughtStep = {
12255
12942
  * A summary of the thought.
12256
12943
  */
12257
12944
  summary?: Array<ThoughtSummaryContent> | undefined;
12945
+ type: "thought";
12258
12946
  };
12259
12947
 
12260
12948
  declare type ThoughtSummary$ = ThoughtSummaryDelta;
@@ -12262,13 +12950,21 @@ declare type ThoughtSummary$ = ThoughtSummaryDelta;
12262
12950
  declare type ThoughtSummaryContent = TextContent | ImageContent;
12263
12951
 
12264
12952
  declare type ThoughtSummaryDelta = {
12265
- type: "thought_summary";
12266
12953
  /**
12267
12954
  * The content of the response.
12268
12955
  */
12269
12956
  content?: Content_2 | undefined;
12957
+ type: "thought_summary";
12270
12958
  };
12271
12959
 
12960
+ /**
12961
+ * Required. The threshold for blocking content. If the harm probability
12962
+ *
12963
+ * @remarks
12964
+ * exceeds this threshold, the content will be blocked.
12965
+ */
12966
+ declare type Threshold = "block_low_and_above" | "block_medium_and_above" | "block_only_high" | "block_none" | "off" | (string & {});
12967
+
12272
12968
  export declare class Tokens extends BaseModule {
12273
12969
  private readonly apiClient;
12274
12970
  constructor(apiClient: ApiClient);
@@ -12398,6 +13094,8 @@ export declare interface Tool {
12398
13094
  urlContext?: UrlContext;
12399
13095
  /** Optional. MCP Servers to connect to. This field is not supported in Vertex AI. */
12400
13096
  mcpServers?: McpServer[];
13097
+ /** Optional. Uses Exa.ai to search for information to answer user queries. The search results will be grounded on Exa.ai and presented to the model for response generation. This field is not supported in Gemini API. */
13098
+ exaAiSearch?: ToolExaAiSearch;
12401
13099
  }
12402
13100
 
12403
13101
  /**
@@ -12462,6 +13160,14 @@ export declare interface ToolConfig {
12462
13160
  includeServerSideToolInvocations?: boolean;
12463
13161
  }
12464
13162
 
13163
+ /** ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. This data type is not supported in Gemini API. */
13164
+ export declare interface ToolExaAiSearch {
13165
+ /** Required. The API key for ExaAiSearch. */
13166
+ apiKey?: string;
13167
+ /** Optional. This field can be used to pass any parameter from the Exa.ai Search API. */
13168
+ customConfigs?: Record<string, unknown>;
13169
+ }
13170
+
12465
13171
  export declare type ToolListUnion = ToolUnion[];
12466
13172
 
12467
13173
  /** ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. This data type is not supported in Gemini API. */
@@ -12553,17 +13259,291 @@ export declare interface Transcription {
12553
13259
  languageCode?: string;
12554
13260
  }
12555
13261
 
13262
+ /**
13263
+ * @license
13264
+ * Copyright 2026 Google LLC
13265
+ * SPDX-License-Identifier: Apache-2.0
13266
+ *
13267
+ * g3-prettier-ignore-file
13268
+ */
13269
+ /**
13270
+ * Headers to inject on all outbound requests matching this domain. Accepts a single dict or a list of dicts. The egress proxy injects these automatically.
13271
+ */
13272
+ declare type Transform = {
13273
+ [k: string]: string;
13274
+ } | Array<{
13275
+ [k: string]: string;
13276
+ }>;
13277
+
12556
13278
  /** Config for stream translation. */
12557
13279
  export declare interface TranslationConfig {
12558
- /** If true, the model will generate audio when the target language is
12559
- spoken, essentially it will parrot the input. If false, we will not produce
12560
- audio for the target language. */
13280
+ /** Optional. If true, the model will generate audio when the target language is spoken, essentially it will parrot the input. If false, we will not produce audio for the target language. */
12561
13281
  echoTargetLanguage?: boolean;
12562
- /** The target language for translation. Supported values are BCP-47
12563
- language codes (e.g. "en", "es", "fr"). */
13282
+ /** Required. The target language for translation. Supported values are BCP-47 language codes (e.g. "en", "es", "fr"). */
12564
13283
  targetLanguageCode?: string;
12565
13284
  }
12566
13285
 
13286
+ declare type Trigger$ = Trigger;
13287
+
13288
+ /**
13289
+ * A trigger configuration that is scheduled to run an agent.
13290
+ */
13291
+ declare type Trigger = {
13292
+ /**
13293
+ * Output only. The number of consecutive failures that have occurred
13294
+ *
13295
+ * @remarks
13296
+ * since the last successful execution.
13297
+ */
13298
+ consecutive_failure_count?: number | undefined;
13299
+ /**
13300
+ * Output only. The time when the trigger was created.
13301
+ */
13302
+ create_time?: string | undefined;
13303
+ /**
13304
+ * Optional. The display name of the trigger.
13305
+ */
13306
+ display_name?: string | undefined;
13307
+ /**
13308
+ * Optional. The environment ID for the trigger execution.
13309
+ */
13310
+ environment_id?: string | undefined;
13311
+ /**
13312
+ * Optional. The execution timeout for the triggered interaction.
13313
+ */
13314
+ execution_timeout_seconds?: number | undefined;
13315
+ /**
13316
+ * Required. Output only. Identifier. The ID of the trigger.
13317
+ */
13318
+ id: string;
13319
+ /**
13320
+ * The Interaction resource.
13321
+ */
13322
+ interaction: interactions.Interaction;
13323
+ /**
13324
+ * Output only. The time when the trigger was last paused.
13325
+ */
13326
+ last_pause_time?: string | undefined;
13327
+ /**
13328
+ * Output only. The time when the trigger was last resumed.
13329
+ */
13330
+ last_resume_time?: string | undefined;
13331
+ /**
13332
+ * Output only. The time when the trigger was last run.
13333
+ */
13334
+ last_run_time?: string | undefined;
13335
+ /**
13336
+ * Optional. The maximum number of consecutive failures allowed before
13337
+ *
13338
+ * @remarks
13339
+ * the trigger is automatically paused (status becomes ERROR).
13340
+ */
13341
+ max_consecutive_failures?: number | undefined;
13342
+ /**
13343
+ * Output only. The time when the trigger is scheduled to run next.
13344
+ */
13345
+ next_run_time?: string | undefined;
13346
+ /**
13347
+ * Output only. The ID of the last interaction created by this trigger.
13348
+ */
13349
+ previous_interaction_id?: string | undefined;
13350
+ /**
13351
+ * Required. The cron schedule on which the trigger should run.
13352
+ *
13353
+ * @remarks
13354
+ * Standard cron format.
13355
+ */
13356
+ schedule: string;
13357
+ /**
13358
+ * Output only. The current status of the trigger.
13359
+ */
13360
+ status?: TriggerStatus | undefined;
13361
+ /**
13362
+ * Required. Time zone in which the schedule should be interpreted.
13363
+ */
13364
+ time_zone: string;
13365
+ /**
13366
+ * Output only. The time when the trigger was last updated.
13367
+ */
13368
+ update_time?: string | undefined;
13369
+ };
13370
+
13371
+ declare type TriggerCreateParams$ = TriggerCreateParams;
13372
+
13373
+ /**
13374
+ * Parameters for creating a trigger.
13375
+ */
13376
+ declare type TriggerCreateParams = {
13377
+ /**
13378
+ * Required. The cron schedule on which the trigger should run. Standard cron format.
13379
+ */
13380
+ schedule: string;
13381
+ /**
13382
+ * Required. Time zone in which the schedule should be interpreted.
13383
+ */
13384
+ time_zone: string;
13385
+ /**
13386
+ * Optional. The display name of the trigger.
13387
+ */
13388
+ display_name?: string | undefined;
13389
+ /**
13390
+ * Optional. The environment ID for the trigger execution.
13391
+ */
13392
+ environment_id?: string | undefined;
13393
+ /**
13394
+ * Optional. The maximum number of consecutive failures allowed before the trigger is automatically paused (status becomes ERROR).
13395
+ */
13396
+ max_consecutive_failures?: number | undefined;
13397
+ /**
13398
+ * Optional. The execution timeout for the triggered interaction.
13399
+ */
13400
+ execution_timeout_seconds?: number | undefined;
13401
+ /**
13402
+ * Required. The interaction request template to be executed.
13403
+ */
13404
+ interaction: interactions.CreateAgentInteraction | interactions.CreateModelInteraction;
13405
+ };
13406
+
13407
+ declare type TriggerDeleteParams$ = DeleteTriggerParams;
13408
+
13409
+ declare type TriggerDeleteResponse$ = Empty;
13410
+
13411
+ declare type TriggerExecution$ = TriggerExecution;
13412
+
13413
+ /**
13414
+ * An execution instance of a trigger.
13415
+ */
13416
+ declare type TriggerExecution = {
13417
+ /**
13418
+ * Output only. The time when the execution finished.
13419
+ */
13420
+ end_time?: string | undefined;
13421
+ /**
13422
+ * Output only. The environment ID used for the execution.
13423
+ */
13424
+ environment_id?: string | undefined;
13425
+ /**
13426
+ * Output only. The error message if the execution failed.
13427
+ */
13428
+ error?: string | undefined;
13429
+ /**
13430
+ * Required. Output only. Identifier. The ID of the trigger execution.
13431
+ */
13432
+ id: string;
13433
+ /**
13434
+ * Output only. The ID of the interaction created by this execution, if any.
13435
+ */
13436
+ interaction_id?: string | undefined;
13437
+ /**
13438
+ * Output only. The time when the execution was scheduled to run.
13439
+ */
13440
+ scheduled_time?: string | undefined;
13441
+ /**
13442
+ * Output only. The time when the execution started.
13443
+ */
13444
+ start_time?: string | undefined;
13445
+ /**
13446
+ * Output only. The status of the execution.
13447
+ */
13448
+ status?: TriggerExecutionStatus | undefined;
13449
+ /**
13450
+ * Required. Output only. Identifier. The ID of the trigger that created this execution.
13451
+ */
13452
+ trigger_id: string;
13453
+ };
13454
+
13455
+ /**
13456
+ * @license
13457
+ * Copyright 2026 Google LLC
13458
+ * SPDX-License-Identifier: Apache-2.0
13459
+ *
13460
+ * g3-prettier-ignore-file
13461
+ */
13462
+ /**
13463
+ * Output only. The status of the execution.
13464
+ */
13465
+ declare type TriggerExecutionStatus = "in_progress" | "completed" | "failed" | "skipped" | "timed_out" | (string & {});
13466
+
13467
+ declare type TriggerGetParams$ = GetTriggerParams;
13468
+
13469
+ declare type TriggerListExecutionsParams$ = ListTriggerExecutionsParams_2;
13470
+
13471
+ declare type TriggerListExecutionsResponse$ = ListTriggerExecutionsResponse;
13472
+
13473
+ declare type TriggerListParams$ = ListTriggersParams_2;
13474
+
13475
+ declare type TriggerListResponse$ = ListTriggersResponse;
13476
+
13477
+ declare type TriggerRunParams$ = RunTriggerParams;
13478
+
13479
+ export declare namespace Triggers {
13480
+ export type ListTriggerExecutionsResponse = ListTriggerExecutionsResponse$;
13481
+ export type ListTriggersResponse = ListTriggersResponse$;
13482
+ export type Trigger = Trigger$;
13483
+ export type TriggerCreateParams = TriggerCreateParams$;
13484
+ export type TriggerDeleteParams = TriggerDeleteParams$;
13485
+ export type TriggerDeleteResponse = TriggerDeleteResponse$;
13486
+ export type TriggerExecution = TriggerExecution$;
13487
+ export type TriggerGetParams = TriggerGetParams$;
13488
+ export type TriggerListExecutionsParams = TriggerListExecutionsParams$;
13489
+ export type TriggerListExecutionsResponse = TriggerListExecutionsResponse$;
13490
+ export type TriggerListParams = TriggerListParams$;
13491
+ export type TriggerListResponse = TriggerListResponse$;
13492
+ export type TriggerRunParams = TriggerRunParams$;
13493
+ export type TriggerUpdate = TriggerUpdate$;
13494
+ export type TriggerUpdateParams = TriggerUpdateParams$;
13495
+ }
13496
+
13497
+ declare namespace triggers {
13498
+ export {
13499
+ ListTriggerExecutionsResponse,
13500
+ ListTriggersResponse,
13501
+ Interaction_2 as Interaction,
13502
+ TriggerCreateParams,
13503
+ TriggerExecutionStatus,
13504
+ TriggerExecution,
13505
+ TriggerUpdateStatus,
13506
+ TriggerUpdate,
13507
+ TriggerStatus,
13508
+ Trigger
13509
+ }
13510
+ }
13511
+
13512
+ /**
13513
+ * Output only. The current status of the trigger.
13514
+ */
13515
+ declare type TriggerStatus = "active" | "paused" | "error" | (string & {});
13516
+
13517
+ declare type TriggerUpdate$ = TriggerUpdate;
13518
+
13519
+ /**
13520
+ * Represents the fields of a Trigger that can be updated.
13521
+ */
13522
+ declare type TriggerUpdate = {
13523
+ /**
13524
+ * Optional. The display name of the trigger.
13525
+ */
13526
+ display_name?: string | undefined;
13527
+ /**
13528
+ * Optional. The status of the trigger.
13529
+ */
13530
+ status?: TriggerUpdateStatus | undefined;
13531
+ };
13532
+
13533
+ declare type TriggerUpdateParams$ = UpdateTriggerParams;
13534
+
13535
+ /**
13536
+ * @license
13537
+ * Copyright 2026 Google LLC
13538
+ * SPDX-License-Identifier: Apache-2.0
13539
+ *
13540
+ * g3-prettier-ignore-file
13541
+ */
13542
+ /**
13543
+ * Optional. The status of the trigger.
13544
+ */
13545
+ declare type TriggerUpdateStatus = "active" | "paused" | "error";
13546
+
12567
13547
  /** TunedModel for the Tuned Model of a Tuning Job. */
12568
13548
  export declare interface TunedModel {
12569
13549
  /** Output only. The resource name of the TunedModel.
@@ -12628,6 +13608,8 @@ export declare interface TuningDataStats {
12628
13608
  preferenceOptimizationDataStats?: PreferenceOptimizationDataStats;
12629
13609
  /** The SFT Tuning data stats. */
12630
13610
  supervisedTuningDataStats?: SupervisedTuningDataStats;
13611
+ /** Output only. Statistics for reinforcement tuning. */
13612
+ reinforcementTuningDataStats?: DatasetStats;
12631
13613
  }
12632
13614
 
12633
13615
  /** A single example for tuning. This data type is not supported in Vertex AI. */
@@ -12670,6 +13652,7 @@ export declare interface TuningJob {
12670
13652
  preferenceOptimizationSpec?: PreferenceOptimizationSpec;
12671
13653
  /** Tuning Spec for Distillation. */
12672
13654
  distillationSpec?: DistillationSpec;
13655
+ /** Tuning Spec for Reinforcement Tuning. */
12673
13656
  reinforcementTuningSpec?: ReinforcementTuningSpec;
12674
13657
  /** Output only. The tuning data statistics associated with this TuningJob. */
12675
13658
  tuningDataStats?: TuningDataStats;
@@ -12896,6 +13879,7 @@ export declare interface TuningValidationDataset {
12896
13879
  * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
12897
13880
  */
12898
13881
  declare type Turn = {
13882
+ content?: Array<Content_2> | string | undefined;
12899
13883
  /**
12900
13884
  * The originator of this turn. Must be user for input or model for
12901
13885
  *
@@ -12903,7 +13887,6 @@ declare type Turn = {
12903
13887
  * model output.
12904
13888
  */
12905
13889
  role?: string | undefined;
12906
- content?: Array<Content_2> | string | undefined;
12907
13890
  };
12908
13891
 
12909
13892
  /** The reason why the turn is complete. */
@@ -13122,8 +14105,14 @@ declare namespace types {
13122
14105
  ModelStage,
13123
14106
  MediaResolution,
13124
14107
  Modality,
14108
+ Delivery,
14109
+ AspectRatio,
14110
+ ImageSize,
13125
14111
  TuningMode,
13126
14112
  AdapterSize,
14113
+ ResponseParseType,
14114
+ MatchOperation,
14115
+ ReinforcementTuningThinkingLevel,
13127
14116
  JobState,
13128
14117
  TuningJobState,
13129
14118
  AggregationMetric,
@@ -13149,9 +14138,6 @@ declare namespace types {
13149
14138
  VideoGenerationMaskMode,
13150
14139
  VideoCompressionQuality,
13151
14140
  ImageResizeMode,
13152
- ResponseParseType,
13153
- MatchOperation,
13154
- ReinforcementTuningThinkingLevel,
13155
14141
  TuningMethod,
13156
14142
  FileState,
13157
14143
  FileSource,
@@ -13224,7 +14210,9 @@ declare namespace types {
13224
14210
  UrlContext,
13225
14211
  StreamableHttpTransport,
13226
14212
  McpServer,
14213
+ ToolExaAiSearch,
13227
14214
  Tool,
14215
+ VoiceConsentSignature,
13228
14216
  ReplicatedVoiceConfig,
13229
14217
  PrebuiltVoiceConfig,
13230
14218
  VoiceConfig,
@@ -13329,6 +14317,12 @@ declare namespace types {
13329
14317
  DeleteModelConfig,
13330
14318
  DeleteModelParameters,
13331
14319
  DeleteModelResponse,
14320
+ AudioResponseFormat,
14321
+ ImageResponseFormat,
14322
+ TextResponseFormat,
14323
+ VideoResponseFormat,
14324
+ ResponseFormat,
14325
+ TranslationConfig,
13332
14326
  GenerationConfig,
13333
14327
  CountTokensConfig,
13334
14328
  CountTokensParameters,
@@ -13378,6 +14372,8 @@ declare namespace types {
13378
14372
  PreTunedModel,
13379
14373
  DatasetDistributionDistributionBucket,
13380
14374
  DatasetDistribution,
14375
+ ReinforcementTuningExample,
14376
+ ReinforcementTuningUserDatasetExamples,
13381
14377
  DatasetStats,
13382
14378
  DistillationDataStats,
13383
14379
  GeminiPreferenceExampleCompletion,
@@ -13423,7 +14419,6 @@ declare namespace types {
13423
14419
  CreateTuningJobConfig,
13424
14420
  CreateTuningJobParametersPrivate,
13425
14421
  TuningOperation,
13426
- ReinforcementTuningExample,
13427
14422
  ValidateRewardConfig,
13428
14423
  ValidateRewardParameters,
13429
14424
  ReinforcementTuningRewardInfo,
@@ -13558,6 +14553,7 @@ declare namespace types {
13558
14553
  LanguageHints,
13559
14554
  AudioTranscriptionConfig,
13560
14555
  ProactivityConfig,
14556
+ HistoryConfig,
13561
14557
  CustomizedAvatar,
13562
14558
  AvatarConfig,
13563
14559
  LiveClientSetup,
@@ -13567,7 +14563,6 @@ declare namespace types {
13567
14563
  LiveClientRealtimeInput,
13568
14564
  LiveClientToolResponse,
13569
14565
  LiveClientMessage,
13570
- TranslationConfig,
13571
14566
  LiveConnectConfig,
13572
14567
  LiveConnectParameters,
13573
14568
  CreateChatParameters,
@@ -13668,6 +14663,20 @@ export declare interface UpdateModelParameters {
13668
14663
  config?: UpdateModelConfig;
13669
14664
  }
13670
14665
 
14666
+ declare type UpdateTriggerParams = Omit<UpdateTriggerRequest, "id" | "body"> & UpdateTriggerRequest["body"];
14667
+
14668
+ declare type UpdateTriggerRequest = {
14669
+ /**
14670
+ * Which version of the API to use.
14671
+ */
14672
+ api_version?: string | undefined;
14673
+ /**
14674
+ * Resource name of the trigger.
14675
+ */
14676
+ id: string;
14677
+ body: triggers.TriggerUpdate;
14678
+ };
14679
+
13671
14680
  declare interface Uploader {
13672
14681
  /**
13673
14682
  * Uploads a file to the given upload url.
@@ -13879,15 +14888,10 @@ declare type URLCitation$ = URLCitation;
13879
14888
  * A URL citation annotation.
13880
14889
  */
13881
14890
  declare type URLCitation = {
13882
- type: "url_citation";
13883
14891
  /**
13884
- * The URL.
13885
- */
13886
- url?: string | undefined;
13887
- /**
13888
- * The title of the URL.
14892
+ * End of the attributed segment, exclusive.
13889
14893
  */
13890
- title?: string | undefined;
14894
+ end_index?: number | undefined;
13891
14895
  /**
13892
14896
  * Start of segment of the response that is attributed to this source.
13893
14897
  *
@@ -13897,9 +14901,14 @@ declare type URLCitation = {
13897
14901
  */
13898
14902
  start_index?: number | undefined;
13899
14903
  /**
13900
- * End of the attributed segment, exclusive.
14904
+ * The title of the URL.
13901
14905
  */
13902
- end_index?: number | undefined;
14906
+ title?: string | undefined;
14907
+ type: "url_citation";
14908
+ /**
14909
+ * The URL.
14910
+ */
14911
+ url?: string | undefined;
13903
14912
  };
13904
14913
 
13905
14914
  declare type URLContext$ = URLContext;
@@ -13944,7 +14953,6 @@ declare type URLContextCallArguments = {
13944
14953
  };
13945
14954
 
13946
14955
  declare type URLContextCallDelta = {
13947
- type: "url_context_call";
13948
14956
  /**
13949
14957
  * The arguments to pass to the URL context.
13950
14958
  */
@@ -13953,6 +14961,7 @@ declare type URLContextCallDelta = {
13953
14961
  * A signature hash for backend validation.
13954
14962
  */
13955
14963
  signature?: string | undefined;
14964
+ type: "url_context_call";
13956
14965
  };
13957
14966
 
13958
14967
  declare type URLContextCallStep$ = URLContextCallStep;
@@ -13961,7 +14970,10 @@ declare type URLContextCallStep$ = URLContextCallStep;
13961
14970
  * URL context call step.
13962
14971
  */
13963
14972
  declare type URLContextCallStep = {
13964
- type: "url_context_call";
14973
+ /**
14974
+ * The arguments to pass to the URL context.
14975
+ */
14976
+ arguments: URLContextCallArguments;
13965
14977
  /**
13966
14978
  * Required. A unique ID for this specific tool call.
13967
14979
  */
@@ -13970,10 +14982,7 @@ declare type URLContextCallStep = {
13970
14982
  * A signature hash for backend validation.
13971
14983
  */
13972
14984
  signature?: string | undefined;
13973
- /**
13974
- * The arguments to pass to the URL context.
13975
- */
13976
- arguments: Arguments;
14985
+ type: "url_context_call";
13977
14986
  };
13978
14987
 
13979
14988
  /** Metadata returned when the model uses the `url_context` tool to get information from a user-provided URL. */
@@ -13990,24 +14999,24 @@ declare type URLContextResult$2 = URLContextResultDelta;
13990
14999
  * The result of the URL context.
13991
15000
  */
13992
15001
  declare type URLContextResult = {
13993
- /**
13994
- * The URL that was fetched.
13995
- */
13996
- url?: string | undefined;
13997
15002
  /**
13998
15003
  * The status of the URL retrieval.
13999
15004
  */
14000
15005
  status?: URLContextResultStatus | undefined;
15006
+ /**
15007
+ * The URL that was fetched.
15008
+ */
15009
+ url?: string | undefined;
14001
15010
  };
14002
15011
 
14003
15012
  declare type URLContextResultDelta = {
14004
- type: "url_context_result";
14005
- result: Array<URLContextResult>;
14006
15013
  is_error?: boolean | undefined;
15014
+ result: Array<URLContextResult>;
14007
15015
  /**
14008
15016
  * A signature hash for backend validation.
14009
15017
  */
14010
15018
  signature?: string | undefined;
15019
+ type: "url_context_result";
14011
15020
  };
14012
15021
 
14013
15022
  /**
@@ -14028,23 +15037,23 @@ declare type URLContextResultStep$ = URLContextResultStep;
14028
15037
  * URL context result step.
14029
15038
  */
14030
15039
  declare type URLContextResultStep = {
14031
- type: "url_context_result";
14032
15040
  /**
14033
- * Required. The results of the URL context.
15041
+ * Required. ID to match the ID from the function call block.
14034
15042
  */
14035
- result: Array<URLContextResult>;
15043
+ call_id: string;
14036
15044
  /**
14037
15045
  * Whether the URL context resulted in an error.
14038
15046
  */
14039
15047
  is_error?: boolean | undefined;
14040
15048
  /**
14041
- * Required. ID to match the ID from the function call block.
15049
+ * Required. The results of the URL context.
14042
15050
  */
14043
- call_id: string;
15051
+ result: Array<URLContextResult>;
14044
15052
  /**
14045
15053
  * A signature hash for backend validation.
14046
15054
  */
14047
15055
  signature?: string | undefined;
15056
+ type: "url_context_result";
14048
15057
  };
14049
15058
 
14050
15059
  /** The metadata for a single URL retrieval. */
@@ -14086,37 +15095,37 @@ declare type Usage$ = Usage;
14086
15095
  */
14087
15096
  declare type Usage = {
14088
15097
  /**
14089
- * Number of tokens in the prompt (context).
15098
+ * A breakdown of cached token usage by modality.
14090
15099
  */
14091
- total_input_tokens?: number | undefined;
15100
+ cached_tokens_by_modality?: Array<ModalityTokens> | undefined;
14092
15101
  /**
14093
- * A breakdown of input token usage by modality.
15102
+ * Grounding tool count.
14094
15103
  */
14095
- input_tokens_by_modality?: Array<ModalityTokens> | undefined;
15104
+ grounding_tool_count?: Array<GroundingToolCount> | undefined;
14096
15105
  /**
14097
- * Number of tokens in the cached part of the prompt (the cached content).
15106
+ * A breakdown of input token usage by modality.
14098
15107
  */
14099
- total_cached_tokens?: number | undefined;
15108
+ input_tokens_by_modality?: Array<ModalityTokens> | undefined;
14100
15109
  /**
14101
- * A breakdown of cached token usage by modality.
15110
+ * A breakdown of output token usage by modality.
14102
15111
  */
14103
- cached_tokens_by_modality?: Array<ModalityTokens> | undefined;
15112
+ output_tokens_by_modality?: Array<ModalityTokens> | undefined;
14104
15113
  /**
14105
- * Total number of tokens across all the generated responses.
15114
+ * A breakdown of tool-use token usage by modality.
14106
15115
  */
14107
- total_output_tokens?: number | undefined;
15116
+ tool_use_tokens_by_modality?: Array<ModalityTokens> | undefined;
14108
15117
  /**
14109
- * A breakdown of output token usage by modality.
15118
+ * Number of tokens in the cached part of the prompt (the cached content).
14110
15119
  */
14111
- output_tokens_by_modality?: Array<ModalityTokens> | undefined;
15120
+ total_cached_tokens?: number | undefined;
14112
15121
  /**
14113
- * Number of tokens present in tool-use prompt(s).
15122
+ * Number of tokens in the prompt (context).
14114
15123
  */
14115
- total_tool_use_tokens?: number | undefined;
15124
+ total_input_tokens?: number | undefined;
14116
15125
  /**
14117
- * A breakdown of tool-use token usage by modality.
15126
+ * Total number of tokens across all the generated responses.
14118
15127
  */
14119
- tool_use_tokens_by_modality?: Array<ModalityTokens> | undefined;
15128
+ total_output_tokens?: number | undefined;
14120
15129
  /**
14121
15130
  * Number of tokens of thoughts for thinking models.
14122
15131
  */
@@ -14129,9 +15138,9 @@ declare type Usage = {
14129
15138
  */
14130
15139
  total_tokens?: number | undefined;
14131
15140
  /**
14132
- * Grounding tool count.
15141
+ * Number of tokens present in tool-use prompt(s).
14133
15142
  */
14134
- grounding_tool_count?: Array<GroundingToolCount> | undefined;
15143
+ total_tool_use_tokens?: number | undefined;
14135
15144
  };
14136
15145
 
14137
15146
  /** Usage metadata about response(s). */
@@ -14300,14 +15309,14 @@ declare type VertexAISearchConfig$ = VertexAISearchConfig;
14300
15309
  * Used to specify configuration for VertexAISearch.
14301
15310
  */
14302
15311
  declare type VertexAISearchConfig = {
14303
- /**
14304
- * Optional. Used to specify Vertex AI Search engine.
14305
- */
14306
- engine?: string | undefined;
14307
15312
  /**
14308
15313
  * Optional. Used to specify Vertex AI Search datastores.
14309
15314
  */
14310
15315
  datastores?: Array<string> | undefined;
15316
+ /**
15317
+ * Optional. Used to specify Vertex AI Search engine.
15318
+ */
15319
+ engine?: string | undefined;
14311
15320
  };
14312
15321
 
14313
15322
  /** Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec. This data type is not supported in Gemini API. */
@@ -14401,20 +15410,20 @@ declare type VideoContent$ = VideoContent;
14401
15410
  * A video content block.
14402
15411
  */
14403
15412
  declare type VideoContent = {
14404
- type: "video";
14405
15413
  /**
14406
15414
  * The video content.
14407
15415
  */
14408
15416
  data?: string | undefined;
14409
- /**
14410
- * The URI of the video.
14411
- */
14412
- uri?: string | undefined;
14413
15417
  /**
14414
15418
  * The mime type of the video.
14415
15419
  */
14416
15420
  mime_type?: VideoContentMimeType | undefined;
14417
15421
  resolution?: MediaResolution_2 | undefined;
15422
+ type: "video";
15423
+ /**
15424
+ * The URI of the video.
15425
+ */
15426
+ uri?: string | undefined;
14418
15427
  };
14419
15428
 
14420
15429
  /**
@@ -14423,11 +15432,11 @@ declare type VideoContent = {
14423
15432
  declare type VideoContentMimeType = "video/mp4" | "video/mpeg" | "video/mpg" | "video/mov" | "video/avi" | "video/x-flv" | "video/webm" | "video/wmv" | "video/3gpp" | (string & {});
14424
15433
 
14425
15434
  declare type VideoDelta = {
14426
- type: "video";
14427
15435
  data?: string | undefined;
14428
- uri?: string | undefined;
14429
15436
  mime_type?: VideoDeltaMimeType | undefined;
14430
15437
  resolution?: MediaResolution_2 | undefined;
15438
+ type: "video";
15439
+ uri?: string | undefined;
14431
15440
  };
14432
15441
 
14433
15442
  declare type VideoDeltaMimeType = "video/mp4" | "video/mpeg" | "video/mpg" | "video/mov" | "video/avi" | "video/x-flv" | "video/webm" | "video/wmv" | "video/3gpp" | (string & {});
@@ -14519,17 +15528,36 @@ export declare enum VideoOrientation {
14519
15528
  PORTRAIT = "PORTRAIT"
14520
15529
  }
14521
15530
 
14522
- declare type VideoResponseFormat$ = VideoResponseFormat;
15531
+ declare type VideoResponseFormat$ = VideoResponseFormat_2;
15532
+
15533
+ /** Configuration for video-specific output formatting. This data type is not supported in Gemini API. */
15534
+ export declare class VideoResponseFormat {
15535
+ /** The aspect ratio for the video output. */
15536
+ aspectRatio?: AspectRatio;
15537
+ /** Optional. Delivery mode for the generated content. */
15538
+ delivery?: Delivery;
15539
+ /** Optional. The duration for the video output. */
15540
+ duration?: string;
15541
+ /** Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI. */
15542
+ gcsUri?: string;
15543
+ }
14523
15544
 
14524
15545
  /**
14525
15546
  * Configuration for video output format.
14526
15547
  */
14527
- declare type VideoResponseFormat = {
14528
- type: "video";
15548
+ declare type VideoResponseFormat_2 = {
15549
+ /**
15550
+ * The aspect ratio for the video output.
15551
+ */
15552
+ aspect_ratio?: VideoResponseFormatAspectRatio | undefined;
14529
15553
  /**
14530
15554
  * The delivery mode for the video output.
14531
15555
  */
14532
15556
  delivery?: VideoResponseFormatDelivery | undefined;
15557
+ /**
15558
+ * The duration for the video output.
15559
+ */
15560
+ duration?: string | undefined;
14533
15561
  /**
14534
15562
  * The GCS URI to store the video output. Required for Vertex if delivery mode
14535
15563
  *
@@ -14537,21 +15565,9 @@ declare type VideoResponseFormat = {
14537
15565
  * is URI.
14538
15566
  */
14539
15567
  gcs_uri?: string | undefined;
14540
- /**
14541
- * The aspect ratio for the video output.
14542
- */
14543
- aspect_ratio?: VideoResponseFormatAspectRatio | undefined;
14544
- /**
14545
- * The duration for the video output.
14546
- */
14547
- duration?: string | undefined;
15568
+ type: "video";
14548
15569
  };
14549
15570
 
14550
- /**
14551
- * The aspect ratio for the video output.
14552
- */
14553
- declare type VideoResponseFormatAspectRatio = "16:9" | "9:16" | (string & {});
14554
-
14555
15571
  /**
14556
15572
  * @license
14557
15573
  * Copyright 2026 Google LLC
@@ -14559,6 +15575,11 @@ declare type VideoResponseFormatAspectRatio = "16:9" | "9:16" | (string & {});
14559
15575
  *
14560
15576
  * g3-prettier-ignore-file
14561
15577
  */
15578
+ /**
15579
+ * The aspect ratio for the video output.
15580
+ */
15581
+ declare type VideoResponseFormatAspectRatio = "16:9" | "9:16" | (string & {});
15582
+
14562
15583
  /**
14563
15584
  * The delivery mode for the video output.
14564
15585
  */
@@ -14608,20 +15629,43 @@ export declare interface VoiceConfig {
14608
15629
  prebuiltVoiceConfig?: PrebuiltVoiceConfig;
14609
15630
  }
14610
15631
 
15632
+ /** The signature of the voice consent check. */
15633
+ export declare interface VoiceConsentSignature {
15634
+ /** The signature string.
15635
+ */
15636
+ signature?: string;
15637
+ }
15638
+
14611
15639
  declare type Webhook$ = Webhook;
14612
15640
 
14613
15641
  /**
14614
15642
  * A Webhook resource.
14615
15643
  */
14616
15644
  declare type Webhook = {
15645
+ /**
15646
+ * Output only. The timestamp when the webhook was created.
15647
+ */
15648
+ create_time?: string | undefined;
15649
+ /**
15650
+ * Output only. The ID of the webhook.
15651
+ */
15652
+ id?: string | undefined;
14617
15653
  /**
14618
15654
  * Optional. The user-provided name of the webhook.
14619
15655
  */
14620
15656
  name?: string | undefined;
14621
15657
  /**
14622
- * Required. The URI to which webhook events will be sent.
15658
+ * Output only. The new signing secret for the webhook. Only populated on create.
14623
15659
  */
14624
- uri: string;
15660
+ new_signing_secret?: string | undefined;
15661
+ /**
15662
+ * Output only. The signing secrets associated with this webhook.
15663
+ */
15664
+ signing_secrets?: Array<SigningSecret> | undefined;
15665
+ /**
15666
+ * Output only. The state of the webhook.
15667
+ */
15668
+ state?: WebhookState | undefined;
14625
15669
  /**
14626
15670
  * Required. The events that the webhook is subscribed to.
14627
15671
  *
@@ -14636,30 +15680,14 @@ declare type Webhook = {
14636
15680
  * - video.generated
14637
15681
  */
14638
15682
  subscribed_events: Array<WebhookSubscribedEvent>;
14639
- /**
14640
- * Output only. The timestamp when the webhook was created.
14641
- */
14642
- create_time?: string | undefined;
14643
15683
  /**
14644
15684
  * Output only. The timestamp when the webhook was last updated.
14645
15685
  */
14646
15686
  update_time?: string | undefined;
14647
15687
  /**
14648
- * Output only. The signing secrets associated with this webhook.
14649
- */
14650
- signing_secrets?: Array<SigningSecret> | undefined;
14651
- /**
14652
- * Output only. The state of the webhook.
14653
- */
14654
- state?: WebhookState | undefined;
14655
- /**
14656
- * Output only. The new signing secret for the webhook. Only populated on create.
14657
- */
14658
- new_signing_secret?: string | undefined;
14659
- /**
14660
- * Output only. The ID of the webhook.
15688
+ * Required. The URI to which webhook events will be sent.
14661
15689
  */
14662
- id?: string | undefined;
15690
+ uri: string;
14663
15691
  };
14664
15692
 
14665
15693
  declare type WebhookConfig$ = WebhookConfig_2;
@@ -14725,10 +15753,6 @@ declare type WebhookInput = {
14725
15753
  * Optional. The user-provided name of the webhook.
14726
15754
  */
14727
15755
  name?: string | undefined;
14728
- /**
14729
- * Required. The URI to which webhook events will be sent.
14730
- */
14731
- uri: string;
14732
15756
  /**
14733
15757
  * Required. The events that the webhook is subscribed to.
14734
15758
  *
@@ -14743,6 +15767,10 @@ declare type WebhookInput = {
14743
15767
  * - video.generated
14744
15768
  */
14745
15769
  subscribed_events: Array<WebhookSubscribedEvent>;
15770
+ /**
15771
+ * Required. The URI to which webhook events will be sent.
15772
+ */
15773
+ uri: string;
14746
15774
  };
14747
15775
 
14748
15776
  declare type WebhookListParams$ = ListWebhooksParams;
@@ -14759,10 +15787,6 @@ declare type WebhookListResponse$ = WebhookListResponse;
14759
15787
  * Response message for WebhookService.ListWebhooks.
14760
15788
  */
14761
15789
  declare type WebhookListResponse = {
14762
- /**
14763
- * The webhooks.
14764
- */
14765
- webhooks?: Array<Webhook> | undefined;
14766
15790
  /**
14767
15791
  * A token, which can be sent as `page_token` to retrieve the next page.
14768
15792
  *
@@ -14770,6 +15794,10 @@ declare type WebhookListResponse = {
14770
15794
  * If this field is omitted, there are no subsequent pages.
14771
15795
  */
14772
15796
  next_page_token?: string | undefined;
15797
+ /**
15798
+ * The webhooks.
15799
+ */
15800
+ webhooks?: Array<Webhook> | undefined;
14773
15801
  };
14774
15802
 
14775
15803
  declare type WebhookPingParams$ = PingWebhookRequest;
@@ -14847,11 +15875,11 @@ declare namespace webhooks {
14847
15875
  WebhookListResponse,
14848
15876
  WebhookPingResponse,
14849
15877
  WebhookRotateSigningSecretResponse,
14850
- WebhookUpdateSubscribedEvent,
14851
15878
  WebhookUpdateState,
15879
+ WebhookUpdateSubscribedEvent,
14852
15880
  WebhookUpdate,
14853
- WebhookSubscribedEvent,
14854
15881
  WebhookState,
15882
+ WebhookSubscribedEvent,
14855
15883
  Webhook,
14856
15884
  WebhookInput
14857
15885
  }
@@ -14872,9 +15900,9 @@ declare type WebhookUpdate = {
14872
15900
  */
14873
15901
  name?: string | undefined;
14874
15902
  /**
14875
- * Optional. The URI to which webhook events will be sent.
15903
+ * Optional. The state of the webhook.
14876
15904
  */
14877
- uri?: string | undefined;
15905
+ state?: WebhookUpdateState | undefined;
14878
15906
  /**
14879
15907
  * Optional. The events that the webhook is subscribed to.
14880
15908
  *
@@ -14890,9 +15918,9 @@ declare type WebhookUpdate = {
14890
15918
  */
14891
15919
  subscribed_events?: Array<WebhookUpdateSubscribedEvent> | undefined;
14892
15920
  /**
14893
- * Optional. The state of the webhook.
15921
+ * Optional. The URI to which webhook events will be sent.
14894
15922
  */
14895
- state?: WebhookUpdateState | undefined;
15923
+ uri?: string | undefined;
14896
15924
  };
14897
15925
 
14898
15926
  declare type WebhookUpdateParams$ = WebhookUpdate;
@@ -14902,11 +15930,6 @@ declare type WebhookUpdateParams = {
14902
15930
  update_mask?: string;
14903
15931
  } & webhooks.WebhookUpdate;
14904
15932
 
14905
- /**
14906
- * Optional. The state of the webhook.
14907
- */
14908
- declare type WebhookUpdateState = "enabled" | "disabled" | "disabled_due_to_failed_deliveries";
14909
-
14910
15933
  /**
14911
15934
  * @license
14912
15935
  * Copyright 2026 Google LLC
@@ -14914,6 +15937,11 @@ declare type WebhookUpdateState = "enabled" | "disabled" | "disabled_due_to_fail
14914
15937
  *
14915
15938
  * g3-prettier-ignore-file
14916
15939
  */
15940
+ /**
15941
+ * Optional. The state of the webhook.
15942
+ */
15943
+ declare type WebhookUpdateState = "enabled" | "disabled" | "disabled_due_to_failed_deliveries";
15944
+
14917
15945
  declare type WebhookUpdateSubscribedEvent = "batch.succeeded" | "batch.expired" | "batch.failed" | "interaction.requires_action" | "interaction.completed" | "interaction.failed" | "video.generated" | (string & {});
14918
15946
 
14919
15947
  /** Standard web search for grounding and related configurations. Only text results are returned. */