@google/genai 1.33.0 → 1.34.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.
@@ -119,7 +119,7 @@ export declare interface ApiAuthApiKeyConfig {
119
119
  * The ApiClient class is used to send requests to the Gemini API or Vertex AI
120
120
  * endpoints.
121
121
  */
122
- declare class ApiClient {
122
+ declare class ApiClient implements GeminiNextGenAPIClientAdapter {
123
123
  readonly clientOptions: ApiClientInitOptions;
124
124
  constructor(opts: ApiClientInitOptions);
125
125
  /**
@@ -140,6 +140,7 @@ declare class ApiClient {
140
140
  isVertexAI(): boolean;
141
141
  getProject(): string | undefined;
142
142
  getLocation(): string | undefined;
143
+ getAuthHeaders(): Promise<Headers>;
143
144
  getApiVersion(): string;
144
145
  getBaseUrl(): string;
145
146
  getRequestUrl(): string;
@@ -415,9 +416,6 @@ export declare interface AudioChunk {
415
416
  * An audio content block.
416
417
  */
417
418
  declare interface AudioContent {
418
- /**
419
- * Used as the OpenAPI type discriminator for the content oneof.
420
- */
421
419
  type: 'audio';
422
420
  data?: string;
423
421
  /**
@@ -703,6 +701,7 @@ declare class BaseGeminiNextGenAPIClient {
703
701
  private encoder;
704
702
  protected idempotencyHeader?: string;
705
703
  private _options;
704
+ private clientAdapter;
706
705
  /**
707
706
  * API Client for interfacing with the Gemini Next Gen API API.
708
707
  *
@@ -716,7 +715,7 @@ declare class BaseGeminiNextGenAPIClient {
716
715
  * @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
717
716
  * @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
718
717
  */
719
- constructor({ baseURL, apiKey, apiVersion, ...opts }?: ClientOptions);
718
+ constructor({ baseURL, apiKey, apiVersion, ...opts }: ClientOptions);
720
719
  /**
721
720
  * Create a new client instance re-using the same options given to the current client with optional overriding.
722
721
  */
@@ -738,6 +737,7 @@ declare class BaseGeminiNextGenAPIClient {
738
737
  buildURL(path: string, query: Record<string, unknown> | null | undefined, defaultBaseURL?: string | undefined): string;
739
738
  /**
740
739
  * Used as a callback for mutating the given `FinalRequestOptions` object.
740
+
741
741
  */
742
742
  protected prepareOptions(options: FinalRequestOptions): Promise<void>;
743
743
  /**
@@ -1578,6 +1578,10 @@ declare interface ClientOptions {
1578
1578
  * Defaults to globalThis.console.
1579
1579
  */
1580
1580
  logger?: Logger | undefined;
1581
+ /**
1582
+ * The adapter to the parent API client instance (for accessing auth, project, location)
1583
+ */
1584
+ clientAdapter: GeminiNextGenAPIClientAdapter;
1581
1585
  }
1582
1586
 
1583
1587
  /**
@@ -1598,9 +1602,6 @@ declare interface CodeExecutionCallArguments {
1598
1602
  * Code execution content.
1599
1603
  */
1600
1604
  declare interface CodeExecutionCallContent {
1601
- /**
1602
- * Used as the OpenAPI type discriminator for the content oneof.
1603
- */
1604
1605
  type: 'code_execution_call';
1605
1606
  /**
1606
1607
  * A unique ID for this specific tool call.
@@ -1624,9 +1625,6 @@ export declare interface CodeExecutionResult {
1624
1625
  * Code execution result content.
1625
1626
  */
1626
1627
  declare interface CodeExecutionResultContent {
1627
- /**
1628
- * Used as the OpenAPI type discriminator for the content oneof.
1629
- */
1630
1628
  type: 'code_execution_result';
1631
1629
  /**
1632
1630
  * ID to match the ID from the code execution call block.
@@ -1732,9 +1730,6 @@ declare interface ContentDelta {
1732
1730
 
1733
1731
  declare namespace ContentDelta {
1734
1732
  interface TextDelta {
1735
- /**
1736
- * Used as the OpenAPI type discriminator for the content oneof.
1737
- */
1738
1733
  type: 'text';
1739
1734
  /**
1740
1735
  * Citation information for model-generated content.
@@ -1743,9 +1738,6 @@ declare namespace ContentDelta {
1743
1738
  text?: string;
1744
1739
  }
1745
1740
  interface ImageDelta {
1746
- /**
1747
- * Used as the OpenAPI type discriminator for the content oneof.
1748
- */
1749
1741
  type: 'image';
1750
1742
  data?: string;
1751
1743
  /**
@@ -1755,13 +1747,10 @@ declare namespace ContentDelta {
1755
1747
  /**
1756
1748
  * The resolution of the media.
1757
1749
  */
1758
- resolution?: 'low' | 'medium' | 'high';
1750
+ resolution?: 'low' | 'medium' | 'high' | 'ultra_high';
1759
1751
  uri?: string;
1760
1752
  }
1761
1753
  interface AudioDelta {
1762
- /**
1763
- * Used as the OpenAPI type discriminator for the content oneof.
1764
- */
1765
1754
  type: 'audio';
1766
1755
  data?: string;
1767
1756
  /**
@@ -1771,18 +1760,15 @@ declare namespace ContentDelta {
1771
1760
  uri?: string;
1772
1761
  }
1773
1762
  interface DocumentDelta {
1774
- /**
1775
- * Used as the OpenAPI type discriminator for the content oneof.
1776
- */
1777
1763
  type: 'document';
1778
1764
  data?: string;
1779
- mime_type?: string;
1765
+ /**
1766
+ * The mime type of the document.
1767
+ */
1768
+ mime_type?: InteractionsAPI.DocumentMimeType;
1780
1769
  uri?: string;
1781
1770
  }
1782
1771
  interface VideoDelta {
1783
- /**
1784
- * Used as the OpenAPI type discriminator for the content oneof.
1785
- */
1786
1772
  type: 'video';
1787
1773
  data?: string;
1788
1774
  /**
@@ -1792,13 +1778,10 @@ declare namespace ContentDelta {
1792
1778
  /**
1793
1779
  * The resolution of the media.
1794
1780
  */
1795
- resolution?: 'low' | 'medium' | 'high';
1781
+ resolution?: 'low' | 'medium' | 'high' | 'ultra_high';
1796
1782
  uri?: string;
1797
1783
  }
1798
1784
  interface ThoughtSummaryDelta {
1799
- /**
1800
- * Used as the OpenAPI type discriminator for the content oneof.
1801
- */
1802
1785
  type: 'thought_summary';
1803
1786
  /**
1804
1787
  * A text content block.
@@ -1806,9 +1789,6 @@ declare namespace ContentDelta {
1806
1789
  content?: InteractionsAPI.TextContent | InteractionsAPI.ImageContent;
1807
1790
  }
1808
1791
  interface ThoughtSignatureDelta {
1809
- /**
1810
- * Used as the OpenAPI type discriminator for the content oneof.
1811
- */
1812
1792
  type: 'thought_signature';
1813
1793
  /**
1814
1794
  * Signature to match the backend source to be part of the generation.
@@ -1816,9 +1796,6 @@ declare namespace ContentDelta {
1816
1796
  signature?: string;
1817
1797
  }
1818
1798
  interface FunctionCallDelta {
1819
- /**
1820
- * Used as the OpenAPI type discriminator for the content oneof.
1821
- */
1822
1799
  type: 'function_call';
1823
1800
  /**
1824
1801
  * A unique ID for this specific tool call.
@@ -1830,9 +1807,6 @@ declare namespace ContentDelta {
1830
1807
  name?: string;
1831
1808
  }
1832
1809
  interface FunctionResultDelta {
1833
- /**
1834
- * Used as the OpenAPI type discriminator for the content oneof.
1835
- */
1836
1810
  type: 'function_result';
1837
1811
  /**
1838
1812
  * ID to match the ID from the function call block.
@@ -1847,13 +1821,10 @@ declare namespace ContentDelta {
1847
1821
  }
1848
1822
  namespace FunctionResultDelta {
1849
1823
  interface Items {
1850
- items?: Array<string | InteractionsAPI.ImageContent>;
1824
+ items?: Array<string | InteractionsAPI.ImageContent | unknown>;
1851
1825
  }
1852
1826
  }
1853
1827
  interface CodeExecutionCallDelta {
1854
- /**
1855
- * Used as the OpenAPI type discriminator for the content oneof.
1856
- */
1857
1828
  type: 'code_execution_call';
1858
1829
  /**
1859
1830
  * A unique ID for this specific tool call.
@@ -1865,9 +1836,6 @@ declare namespace ContentDelta {
1865
1836
  arguments?: InteractionsAPI.CodeExecutionCallArguments;
1866
1837
  }
1867
1838
  interface CodeExecutionResultDelta {
1868
- /**
1869
- * Used as the OpenAPI type discriminator for the content oneof.
1870
- */
1871
1839
  type: 'code_execution_result';
1872
1840
  /**
1873
1841
  * ID to match the ID from the function call block.
@@ -1878,9 +1846,6 @@ declare namespace ContentDelta {
1878
1846
  signature?: string;
1879
1847
  }
1880
1848
  interface URLContextCallDelta {
1881
- /**
1882
- * Used as the OpenAPI type discriminator for the content oneof.
1883
- */
1884
1849
  type: 'url_context_call';
1885
1850
  /**
1886
1851
  * A unique ID for this specific tool call.
@@ -1892,9 +1857,6 @@ declare namespace ContentDelta {
1892
1857
  arguments?: InteractionsAPI.URLContextCallArguments;
1893
1858
  }
1894
1859
  interface URLContextResultDelta {
1895
- /**
1896
- * Used as the OpenAPI type discriminator for the content oneof.
1897
- */
1898
1860
  type: 'url_context_result';
1899
1861
  /**
1900
1862
  * ID to match the ID from the function call block.
@@ -1905,9 +1867,6 @@ declare namespace ContentDelta {
1905
1867
  signature?: string;
1906
1868
  }
1907
1869
  interface GoogleSearchCallDelta {
1908
- /**
1909
- * Used as the OpenAPI type discriminator for the content oneof.
1910
- */
1911
1870
  type: 'google_search_call';
1912
1871
  /**
1913
1872
  * A unique ID for this specific tool call.
@@ -1919,9 +1878,6 @@ declare namespace ContentDelta {
1919
1878
  arguments?: InteractionsAPI.GoogleSearchCallArguments;
1920
1879
  }
1921
1880
  interface GoogleSearchResultDelta {
1922
- /**
1923
- * Used as the OpenAPI type discriminator for the content oneof.
1924
- */
1925
1881
  type: 'google_search_result';
1926
1882
  /**
1927
1883
  * ID to match the ID from the function call block.
@@ -1932,9 +1888,6 @@ declare namespace ContentDelta {
1932
1888
  signature?: string;
1933
1889
  }
1934
1890
  interface MCPServerToolCallDelta {
1935
- /**
1936
- * Used as the OpenAPI type discriminator for the content oneof.
1937
- */
1938
1891
  type: 'mcp_server_tool_call';
1939
1892
  /**
1940
1893
  * A unique ID for this specific tool call.
@@ -1947,9 +1900,6 @@ declare namespace ContentDelta {
1947
1900
  server_name?: string;
1948
1901
  }
1949
1902
  interface MCPServerToolResultDelta {
1950
- /**
1951
- * Used as the OpenAPI type discriminator for the content oneof.
1952
- */
1953
1903
  type: 'mcp_server_tool_result';
1954
1904
  /**
1955
1905
  * ID to match the ID from the function call block.
@@ -1964,13 +1914,10 @@ declare namespace ContentDelta {
1964
1914
  }
1965
1915
  namespace MCPServerToolResultDelta {
1966
1916
  interface Items {
1967
- items?: Array<string | InteractionsAPI.ImageContent>;
1917
+ items?: Array<string | InteractionsAPI.ImageContent | unknown>;
1968
1918
  }
1969
1919
  }
1970
1920
  interface FileSearchResultDelta {
1971
- /**
1972
- * Used as the OpenAPI type discriminator for the content oneof.
1973
- */
1974
1921
  type: 'file_search_result';
1975
1922
  result?: Array<FileSearchResultDelta.Result>;
1976
1923
  }
@@ -2603,9 +2550,6 @@ declare interface DeepResearchAgentConfig {
2603
2550
  * Whether to include thought summaries in the response.
2604
2551
  */
2605
2552
  thinking_summaries?: 'auto' | 'none';
2606
- /**
2607
- * Used as the OpenAPI type discriminator for the content oneof.
2608
- */
2609
2553
  type?: 'deep-research';
2610
2554
  }
2611
2555
 
@@ -2807,15 +2751,20 @@ export { Document_2 as Document }
2807
2751
  * A document content block.
2808
2752
  */
2809
2753
  declare interface DocumentContent {
2810
- /**
2811
- * Used as the OpenAPI type discriminator for the content oneof.
2812
- */
2813
2754
  type: 'document';
2814
2755
  data?: string;
2815
- mime_type?: string;
2756
+ /**
2757
+ * The mime type of the document.
2758
+ */
2759
+ mime_type?: DocumentMimeType;
2816
2760
  uri?: string;
2817
2761
  }
2818
2762
 
2763
+ /**
2764
+ * The mime type of the document.
2765
+ */
2766
+ declare type DocumentMimeType = (string & {}) | 'application/pdf';
2767
+
2819
2768
  declare class Documents extends BaseModule {
2820
2769
  private readonly apiClient;
2821
2770
  constructor(apiClient: ApiClient);
@@ -2901,9 +2850,6 @@ export declare interface DownloadFileParameters {
2901
2850
  * Configuration for dynamic agents.
2902
2851
  */
2903
2852
  declare interface DynamicAgentConfig {
2904
- /**
2905
- * Used as the OpenAPI type discriminator for the content oneof.
2906
- */
2907
2853
  type?: 'dynamic';
2908
2854
  [k: string]: unknown;
2909
2855
  }
@@ -3456,9 +3402,6 @@ export declare interface FileSearch {
3456
3402
  * File Search result content.
3457
3403
  */
3458
3404
  declare interface FileSearchResultContent {
3459
- /**
3460
- * Used as the OpenAPI type discriminator for the content oneof.
3461
- */
3462
3405
  type: 'file_search_result';
3463
3406
  /**
3464
3407
  * The results of the File Search.
@@ -3773,9 +3716,6 @@ declare interface FunctionCallContent {
3773
3716
  * The name of the tool to call.
3774
3717
  */
3775
3718
  name: string;
3776
- /**
3777
- * Used as the OpenAPI type discriminator for the content oneof.
3778
- */
3779
3719
  type: 'function_call';
3780
3720
  }
3781
3721
 
@@ -3925,9 +3865,6 @@ declare interface FunctionResultContent {
3925
3865
  * The result of the tool call.
3926
3866
  */
3927
3867
  result: FunctionResultContent.Items | unknown | string;
3928
- /**
3929
- * Used as the OpenAPI type discriminator for the content oneof.
3930
- */
3931
3868
  type: 'function_result';
3932
3869
  /**
3933
3870
  * Whether the tool call resulted in an error.
@@ -3941,10 +3878,22 @@ declare interface FunctionResultContent {
3941
3878
 
3942
3879
  declare namespace FunctionResultContent {
3943
3880
  interface Items {
3944
- items?: Array<string | InteractionsAPI.ImageContent>;
3881
+ items?: Array<string | InteractionsAPI.ImageContent | unknown>;
3945
3882
  }
3946
3883
  }
3947
3884
 
3885
+ /**
3886
+ * @license
3887
+ * Copyright 2025 Google LLC
3888
+ * SPDX-License-Identifier: Apache-2.0
3889
+ */
3890
+ declare interface GeminiNextGenAPIClientAdapter {
3891
+ isVertexAI: () => boolean;
3892
+ getProject: () => string | undefined;
3893
+ getLocation: () => string | undefined;
3894
+ getAuthHeaders: () => Headers | Promise<Headers>;
3895
+ }
3896
+
3948
3897
  /**
3949
3898
  * @license
3950
3899
  * Copyright 2025 Google LLC
@@ -5017,9 +4966,6 @@ declare interface GoogleSearchCallArguments {
5017
4966
  * Google Search content.
5018
4967
  */
5019
4968
  declare interface GoogleSearchCallContent {
5020
- /**
5021
- * Used as the OpenAPI type discriminator for the content oneof.
5022
- */
5023
4969
  type: 'google_search_call';
5024
4970
  /**
5025
4971
  * A unique ID for this specific tool call.
@@ -5053,9 +4999,6 @@ declare interface GoogleSearchResult {
5053
4999
  * Google Search result content.
5054
5000
  */
5055
5001
  declare interface GoogleSearchResultContent {
5056
- /**
5057
- * Used as the OpenAPI type discriminator for the content oneof.
5058
- */
5059
5002
  type: 'google_search_result';
5060
5003
  /**
5061
5004
  * ID to match the ID from the google search call block.
@@ -5502,9 +5445,6 @@ export declare interface ImageConfig {
5502
5445
  * An image content block.
5503
5446
  */
5504
5447
  declare interface ImageContent {
5505
- /**
5506
- * Used as the OpenAPI type discriminator for the content oneof.
5507
- */
5508
5448
  type: 'image';
5509
5449
  data?: string;
5510
5450
  /**
@@ -5514,7 +5454,7 @@ declare interface ImageContent {
5514
5454
  /**
5515
5455
  * The resolution of the media.
5516
5456
  */
5517
- resolution?: 'low' | 'medium' | 'high';
5457
+ resolution?: 'low' | 'medium' | 'high' | 'ultra_high';
5518
5458
  uri?: string;
5519
5459
  }
5520
5460
 
@@ -5775,7 +5715,7 @@ export declare class Interactions extends BaseInteractions {
5775
5715
  }
5776
5716
 
5777
5717
  export declare namespace Interactions {
5778
- export { type AllowedTools as AllowedTools, type Annotation as Annotation, type AudioContent as AudioContent, type AudioMimeType as AudioMimeType, type CodeExecutionCallArguments as CodeExecutionCallArguments, type CodeExecutionCallContent as CodeExecutionCallContent, type CodeExecutionResultContent as CodeExecutionResultContent, type ContentDelta as ContentDelta, type ContentStart as ContentStart, type ContentStop as ContentStop, type DeepResearchAgentConfig as DeepResearchAgentConfig, type DocumentContent as DocumentContent, type DynamicAgentConfig as DynamicAgentConfig, type ErrorEvent_2 as ErrorEvent, type FileSearchResultContent as FileSearchResultContent, type Function_2 as Function, type FunctionCallContent as FunctionCallContent, type FunctionResultContent as FunctionResultContent, type GenerationConfig_2 as GenerationConfig, type GoogleSearchCallArguments as GoogleSearchCallArguments, type GoogleSearchCallContent as GoogleSearchCallContent, type GoogleSearchResult as GoogleSearchResult, type GoogleSearchResultContent as GoogleSearchResultContent, type ImageContent as ImageContent, type ImageMimeType as ImageMimeType, type Interaction as Interaction, type InteractionEvent as InteractionEvent, type InteractionSSEEvent as InteractionSSEEvent, type InteractionStatusUpdate as InteractionStatusUpdate, type MCPServerToolCallContent as MCPServerToolCallContent, type MCPServerToolResultContent as MCPServerToolResultContent, type Model_2 as Model, type SpeechConfig_2 as SpeechConfig, type TextContent as TextContent, type ThinkingLevel_2 as ThinkingLevel, type ThoughtContent as ThoughtContent, type Tool_2 as Tool, type ToolChoice as ToolChoice, type ToolChoiceConfig as ToolChoiceConfig, type ToolChoiceType as ToolChoiceType, type Turn as Turn, type URLContextCallArguments as URLContextCallArguments, type URLContextCallContent as URLContextCallContent, type URLContextResult as URLContextResult, type URLContextResultContent as URLContextResultContent, type Usage as Usage, type VideoContent as VideoContent, type VideoMimeType as VideoMimeType, type InteractionDeleteResponse as InteractionDeleteResponse, type InteractionCreateParams as InteractionCreateParams, type CreateModelInteractionParamsNonStreaming as CreateModelInteractionParamsNonStreaming, type CreateModelInteractionParamsStreaming as CreateModelInteractionParamsStreaming, type CreateAgentInteractionParamsNonStreaming as CreateAgentInteractionParamsNonStreaming, type CreateAgentInteractionParamsStreaming as CreateAgentInteractionParamsStreaming, type InteractionDeleteParams as InteractionDeleteParams, type InteractionCancelParams as InteractionCancelParams, type InteractionGetParams as InteractionGetParams, type InteractionGetParamsNonStreaming as InteractionGetParamsNonStreaming, type InteractionGetParamsStreaming as InteractionGetParamsStreaming, };
5718
+ export { type AllowedTools as AllowedTools, type Annotation as Annotation, type AudioContent as AudioContent, type AudioMimeType as AudioMimeType, type CodeExecutionCallArguments as CodeExecutionCallArguments, type CodeExecutionCallContent as CodeExecutionCallContent, type CodeExecutionResultContent as CodeExecutionResultContent, type ContentDelta as ContentDelta, type ContentStart as ContentStart, type ContentStop as ContentStop, type DeepResearchAgentConfig as DeepResearchAgentConfig, type DocumentContent as DocumentContent, type DocumentMimeType as DocumentMimeType, type DynamicAgentConfig as DynamicAgentConfig, type ErrorEvent_2 as ErrorEvent, type FileSearchResultContent as FileSearchResultContent, type Function_2 as Function, type FunctionCallContent as FunctionCallContent, type FunctionResultContent as FunctionResultContent, type GenerationConfig_2 as GenerationConfig, type GoogleSearchCallArguments as GoogleSearchCallArguments, type GoogleSearchCallContent as GoogleSearchCallContent, type GoogleSearchResult as GoogleSearchResult, type GoogleSearchResultContent as GoogleSearchResultContent, type ImageContent as ImageContent, type ImageMimeType as ImageMimeType, type Interaction as Interaction, type InteractionEvent as InteractionEvent, type InteractionSSEEvent as InteractionSSEEvent, type InteractionStatusUpdate as InteractionStatusUpdate, type MCPServerToolCallContent as MCPServerToolCallContent, type MCPServerToolResultContent as MCPServerToolResultContent, type Model_2 as Model, type SpeechConfig_2 as SpeechConfig, type TextContent as TextContent, type ThinkingLevel_2 as ThinkingLevel, type ThoughtContent as ThoughtContent, type Tool_2 as Tool, type ToolChoice as ToolChoice, type ToolChoiceConfig as ToolChoiceConfig, type ToolChoiceType as ToolChoiceType, type Turn as Turn, type URLContextCallArguments as URLContextCallArguments, type URLContextCallContent as URLContextCallContent, type URLContextResult as URLContextResult, type URLContextResultContent as URLContextResultContent, type Usage as Usage, type VideoContent as VideoContent, type VideoMimeType as VideoMimeType, type InteractionDeleteResponse as InteractionDeleteResponse, type InteractionCreateParams as InteractionCreateParams, type CreateModelInteractionParamsNonStreaming as CreateModelInteractionParamsNonStreaming, type CreateModelInteractionParamsStreaming as CreateModelInteractionParamsStreaming, type CreateAgentInteractionParamsNonStreaming as CreateAgentInteractionParamsNonStreaming, type CreateAgentInteractionParamsStreaming as CreateAgentInteractionParamsStreaming, type InteractionDeleteParams as InteractionDeleteParams, type InteractionCancelParams as InteractionCancelParams, type InteractionGetParams as InteractionGetParams, type InteractionGetParamsNonStreaming as InteractionGetParamsNonStreaming, type InteractionGetParamsStreaming as InteractionGetParamsStreaming, };
5779
5719
  }
5780
5720
 
5781
5721
  declare namespace InteractionsAPI {
@@ -5794,6 +5734,7 @@ declare namespace InteractionsAPI {
5794
5734
  ContentStop,
5795
5735
  DeepResearchAgentConfig,
5796
5736
  DocumentContent,
5737
+ DocumentMimeType,
5797
5738
  DynamicAgentConfig,
5798
5739
  ErrorEvent_2 as ErrorEvent,
5799
5740
  FileSearchResultContent,
@@ -7039,9 +6980,6 @@ declare interface MCPServerToolCallContent {
7039
6980
  * The name of the used MCP server.
7040
6981
  */
7041
6982
  server_name: string;
7042
- /**
7043
- * Used as the OpenAPI type discriminator for the content oneof.
7044
- */
7045
6983
  type: 'mcp_server_tool_call';
7046
6984
  }
7047
6985
 
@@ -7057,9 +6995,6 @@ declare interface MCPServerToolResultContent {
7057
6995
  * The result of the tool call.
7058
6996
  */
7059
6997
  result: MCPServerToolResultContent.Items | unknown | string;
7060
- /**
7061
- * Used as the OpenAPI type discriminator for the content oneof.
7062
- */
7063
6998
  type: 'mcp_server_tool_result';
7064
6999
  /**
7065
7000
  * Name of the tool which is called for this specific tool call.
@@ -7073,7 +7008,7 @@ declare interface MCPServerToolResultContent {
7073
7008
 
7074
7009
  declare namespace MCPServerToolResultContent {
7075
7010
  interface Items {
7076
- items?: Array<string | InteractionsAPI.ImageContent>;
7011
+ items?: Array<string | InteractionsAPI.ImageContent | unknown>;
7077
7012
  }
7078
7013
  }
7079
7014
 
@@ -7619,9 +7554,9 @@ export declare interface ModelSelectionConfig {
7619
7554
  featureSelectionPreference?: FeatureSelectionPreference;
7620
7555
  }
7621
7556
 
7622
- /** The configuration for the multi-speaker setup. This data type is not supported in Vertex AI. */
7557
+ /** Configuration for a multi-speaker text-to-speech request. */
7623
7558
  export declare interface MultiSpeakerVoiceConfig {
7624
- /** Required. All the enabled speaker voices. */
7559
+ /** Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided. */
7625
7560
  speakerVoiceConfigs?: SpeakerVoiceConfig[];
7626
7561
  }
7627
7562
 
@@ -7990,7 +7925,11 @@ export declare enum PartMediaResolutionLevel {
7990
7925
  /**
7991
7926
  * Media resolution set to high.
7992
7927
  */
7993
- MEDIA_RESOLUTION_HIGH = "MEDIA_RESOLUTION_HIGH"
7928
+ MEDIA_RESOLUTION_HIGH = "MEDIA_RESOLUTION_HIGH",
7929
+ /**
7930
+ * Media resolution set to ultra high.
7931
+ */
7932
+ MEDIA_RESOLUTION_ULTRA_HIGH = "MEDIA_RESOLUTION_ULTRA_HIGH"
7994
7933
  }
7995
7934
 
7996
7935
  /** Tuning spec for Partner models. This data type is not supported in Gemini API. */
@@ -8932,7 +8871,7 @@ export declare interface SpeechConfig {
8932
8871
  voiceConfig?: VoiceConfig;
8933
8872
  /** Optional. Language code (ISO 639. e.g. en-US) for the speech synthesization. */
8934
8873
  languageCode?: string;
8935
- /** Optional. The configuration for the multi-speaker setup. It is mutually exclusive with the voice_config field. This field is not supported in Vertex AI. */
8874
+ /** The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`. */
8936
8875
  multiSpeakerVoiceConfig?: MultiSpeakerVoiceConfig;
8937
8876
  }
8938
8877
 
@@ -9182,9 +9121,6 @@ export declare interface TestTableItem {
9182
9121
  * A text content block.
9183
9122
  */
9184
9123
  declare interface TextContent {
9185
- /**
9186
- * Used as the OpenAPI type discriminator for the content oneof.
9187
- */
9188
9124
  type: 'text';
9189
9125
  /**
9190
9126
  * Citation information for model-generated content.
@@ -9204,35 +9140,40 @@ export declare interface ThinkingConfig {
9204
9140
  /** Indicates the thinking budget in tokens. 0 is DISABLED. -1 is AUTOMATIC. The default values and allowed ranges are model dependent.
9205
9141
  */
9206
9142
  thinkingBudget?: number;
9207
- /** Optional. The level of thoughts tokens that the model should generate. */
9143
+ /** Optional. The number of thoughts tokens that the model should generate. */
9208
9144
  thinkingLevel?: ThinkingLevel;
9209
9145
  }
9210
9146
 
9211
- /** The level of thoughts tokens that the model should generate. */
9147
+ /** The number of thoughts tokens that the model should generate. */
9212
9148
  export declare enum ThinkingLevel {
9213
9149
  /**
9214
- * Default value.
9150
+ * Unspecified thinking level.
9215
9151
  */
9216
9152
  THINKING_LEVEL_UNSPECIFIED = "THINKING_LEVEL_UNSPECIFIED",
9217
9153
  /**
9218
9154
  * Low thinking level.
9219
9155
  */
9220
9156
  LOW = "LOW",
9157
+ /**
9158
+ * Medium thinking level.
9159
+ */
9160
+ MEDIUM = "MEDIUM",
9221
9161
  /**
9222
9162
  * High thinking level.
9223
9163
  */
9224
- HIGH = "HIGH"
9164
+ HIGH = "HIGH",
9165
+ /**
9166
+ * MINIMAL thinking level.
9167
+ */
9168
+ MINIMAL = "MINIMAL"
9225
9169
  }
9226
9170
 
9227
- declare type ThinkingLevel_2 = 'low' | 'high';
9171
+ declare type ThinkingLevel_2 = 'minimal' | 'low' | 'medium' | 'high';
9228
9172
 
9229
9173
  /**
9230
9174
  * A thought content block.
9231
9175
  */
9232
9176
  declare interface ThoughtContent {
9233
- /**
9234
- * Used as the OpenAPI type discriminator for the content oneof.
9235
- */
9236
9177
  type: 'thought';
9237
9178
  /**
9238
9179
  * Signature to match the backend source to be part of the generation.
@@ -10592,9 +10533,6 @@ declare interface URLContextCallArguments {
10592
10533
  * URL context content.
10593
10534
  */
10594
10535
  declare interface URLContextCallContent {
10595
- /**
10596
- * Used as the OpenAPI type discriminator for the content oneof.
10597
- */
10598
10536
  type: 'url_context_call';
10599
10537
  /**
10600
10538
  * A unique ID for this specific tool call.
@@ -10630,9 +10568,6 @@ declare interface URLContextResult {
10630
10568
  * URL context result content.
10631
10569
  */
10632
10570
  declare interface URLContextResultContent {
10633
- /**
10634
- * Used as the OpenAPI type discriminator for the content oneof.
10635
- */
10636
10571
  type: 'url_context_result';
10637
10572
  /**
10638
10573
  * ID to match the ID from the url context call block.
@@ -10924,9 +10859,6 @@ export declare enum VideoCompressionQuality {
10924
10859
  * A video content block.
10925
10860
  */
10926
10861
  declare interface VideoContent {
10927
- /**
10928
- * Used as the OpenAPI type discriminator for the content oneof.
10929
- */
10930
10862
  type: 'video';
10931
10863
  data?: string;
10932
10864
  /**
@@ -10936,7 +10868,7 @@ declare interface VideoContent {
10936
10868
  /**
10937
10869
  * The resolution of the media.
10938
10870
  */
10939
- resolution?: 'low' | 'medium' | 'high';
10871
+ resolution?: 'low' | 'medium' | 'high' | 'ultra_high';
10940
10872
  uri?: string;
10941
10873
  }
10942
10874