@google/genai 1.44.0 → 1.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/web/web.d.ts CHANGED
@@ -157,23 +157,7 @@ declare interface AllowedTools {
157
157
  /**
158
158
  * Citation information for model-generated content.
159
159
  */
160
- declare interface Annotation {
161
- /**
162
- * End of the attributed segment, exclusive.
163
- */
164
- end_index?: number;
165
- /**
166
- * Source attributed for a portion of the text. Could be a URL, title, or
167
- * other identifier.
168
- */
169
- source?: string;
170
- /**
171
- * Start of segment of the response that is attributed to this source.
172
- *
173
- * Index indicates the start of the segment, measured in bytes.
174
- */
175
- start_index?: number;
176
- }
160
+ declare type Annotation = URLCitation | FileCitation | PlaceCitation;
177
161
 
178
162
  /** 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. */
179
163
  export declare interface ApiAuth {
@@ -497,6 +481,9 @@ declare interface AudioContent {
497
481
 
498
482
  /** The audio transcription configuration in Setup. */
499
483
  export declare interface AudioTranscriptionConfig {
484
+ /** The language codes of the audio. BCP-47 language code. If not set, the transcription will be in the language detected by the model. If set, the server will use the language code specified in the model config as a hint for the language of the audio
485
+ */
486
+ languageCodes?: string[];
500
487
  }
501
488
 
502
489
  /**
@@ -650,11 +637,11 @@ declare interface BaseCreateAgentInteractionParams {
650
637
  */
651
638
  agent: (string & {}) | 'deep-research-pro-preview-12-2025';
652
639
  /**
653
- * Body param: The inputs for the interaction.
640
+ * Body param: The input for the interaction.
654
641
  */
655
- input: string | Array<Content_2> | Array<Turn> | TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent | FunctionResultContent | CodeExecutionCallContent | CodeExecutionResultContent | URLContextCallContent | URLContextResultContent | GoogleSearchCallContent | GoogleSearchResultContent | MCPServerToolCallContent | MCPServerToolResultContent | FileSearchCallContent | FileSearchResultContent;
642
+ input: Array<Content_2> | string | Array<Turn> | TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent | FunctionResultContent | CodeExecutionCallContent | CodeExecutionResultContent | URLContextCallContent | URLContextResultContent | GoogleSearchCallContent | GoogleSearchResultContent | MCPServerToolCallContent | MCPServerToolResultContent | FileSearchCallContent | FileSearchResultContent | GoogleMapsCallContent | GoogleMapsResultContent;
656
643
  /**
657
- * Body param: Configuration for the agent.
644
+ * Body param: Configuration parameters for the agent interaction.
658
645
  */
659
646
  agent_config?: DynamicAgentConfig | DeepResearchAgentConfig;
660
647
  /**
@@ -702,9 +689,9 @@ declare interface BaseCreateModelInteractionParams {
702
689
  */
703
690
  api_version?: string;
704
691
  /**
705
- * Body param: The inputs for the interaction.
692
+ * Body param: The input for the interaction.
706
693
  */
707
- input: string | Array<Content_2> | Array<Turn> | TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent | FunctionResultContent | CodeExecutionCallContent | CodeExecutionResultContent | URLContextCallContent | URLContextResultContent | GoogleSearchCallContent | GoogleSearchResultContent | MCPServerToolCallContent | MCPServerToolResultContent | FileSearchCallContent | FileSearchResultContent;
694
+ input: Array<Content_2> | string | Array<Turn> | TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent | FunctionResultContent | CodeExecutionCallContent | CodeExecutionResultContent | URLContextCallContent | URLContextResultContent | GoogleSearchCallContent | GoogleSearchResultContent | MCPServerToolCallContent | MCPServerToolResultContent | FileSearchCallContent | FileSearchResultContent | GoogleMapsCallContent | GoogleMapsResultContent;
708
695
  /**
709
696
  * Body param: The name of the `Model` used for generating the interaction.
710
697
  */
@@ -797,7 +784,7 @@ declare class BaseGeminiNextGenAPIClient {
797
784
  /**
798
785
  * Basic re-implementation of `qs.stringify` for primitive types.
799
786
  */
800
- protected stringifyQuery(query: Record<string, unknown>): string;
787
+ protected stringifyQuery(query: object | Record<string, unknown>): string;
801
788
  private getUserAgent;
802
789
  protected defaultIdempotencyKey(): string;
803
790
  protected makeStatusError(status: number, error: Object, message: string | undefined, headers: Headers): Errors.APIError;
@@ -851,7 +838,7 @@ declare class BaseInteractions extends APIResource {
851
838
  * ```ts
852
839
  * const interaction = await client.interactions.create({
853
840
  * api_version: 'api_version',
854
- * input: 'string',
841
+ * input: [{ text: 'text', type: 'text' }],
855
842
  * model: 'gemini-2.5-flash',
856
843
  * });
857
844
  * ```
@@ -1706,12 +1693,16 @@ declare interface CodeExecutionCallContent {
1706
1693
  signature?: string;
1707
1694
  }
1708
1695
 
1709
- /** Result of executing the [ExecutableCode]. Only generated when using the [CodeExecution] tool, and always follows a `part` containing the [ExecutableCode]. */
1696
+ /** Result of executing the `ExecutableCode`.
1697
+
1698
+ Generated only when the `CodeExecution` tool is used. */
1710
1699
  export declare interface CodeExecutionResult {
1711
1700
  /** Required. Outcome of the code execution. */
1712
1701
  outcome?: Outcome;
1713
1702
  /** Optional. Contains stdout when code execution is successful, stderr or other description otherwise. */
1714
1703
  output?: string;
1704
+ /** The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id. */
1705
+ id?: string;
1715
1706
  }
1716
1707
 
1717
1708
  /**
@@ -1819,10 +1810,10 @@ export declare interface Content {
1819
1810
  /**
1820
1811
  * The content of the response.
1821
1812
  */
1822
- declare type Content_2 = TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent | FunctionResultContent | CodeExecutionCallContent | CodeExecutionResultContent | URLContextCallContent | URLContextResultContent | GoogleSearchCallContent | GoogleSearchResultContent | MCPServerToolCallContent | MCPServerToolResultContent | FileSearchCallContent | FileSearchResultContent;
1813
+ declare type Content_2 = TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent | FunctionResultContent | CodeExecutionCallContent | CodeExecutionResultContent | URLContextCallContent | URLContextResultContent | GoogleSearchCallContent | GoogleSearchResultContent | MCPServerToolCallContent | MCPServerToolResultContent | FileSearchCallContent | FileSearchResultContent | GoogleMapsCallContent | GoogleMapsResultContent;
1823
1814
 
1824
1815
  declare interface ContentDelta {
1825
- delta: ContentDelta.TextDelta | ContentDelta.ImageDelta | ContentDelta.AudioDelta | ContentDelta.DocumentDelta | ContentDelta.VideoDelta | ContentDelta.ThoughtSummaryDelta | ContentDelta.ThoughtSignatureDelta | ContentDelta.FunctionCallDelta | ContentDelta.FunctionResultDelta | ContentDelta.CodeExecutionCallDelta | ContentDelta.CodeExecutionResultDelta | ContentDelta.URLContextCallDelta | ContentDelta.URLContextResultDelta | ContentDelta.GoogleSearchCallDelta | ContentDelta.GoogleSearchResultDelta | ContentDelta.MCPServerToolCallDelta | ContentDelta.MCPServerToolResultDelta | ContentDelta.FileSearchCallDelta | ContentDelta.FileSearchResultDelta;
1816
+ delta: ContentDelta.Text | ContentDelta.Image | ContentDelta.Audio | ContentDelta.Document | ContentDelta.Video | ContentDelta.ThoughtSummary | ContentDelta.ThoughtSignature | ContentDelta.FunctionCall | ContentDelta.FunctionResult | ContentDelta.CodeExecutionCall | ContentDelta.CodeExecutionResult | ContentDelta.URLContextCall | ContentDelta.URLContextResult | ContentDelta.GoogleSearchCall | ContentDelta.GoogleSearchResult | ContentDelta.MCPServerToolCall | ContentDelta.MCPServerToolResult | ContentDelta.FileSearchCall | ContentDelta.FileSearchResult | ContentDelta.GoogleMapsCall | ContentDelta.GoogleMapsResult;
1826
1817
  event_type: 'content.delta';
1827
1818
  index: number;
1828
1819
  /**
@@ -1832,7 +1823,7 @@ declare interface ContentDelta {
1832
1823
  }
1833
1824
 
1834
1825
  declare namespace ContentDelta {
1835
- interface TextDelta {
1826
+ interface Text {
1836
1827
  text: string;
1837
1828
  type: 'text';
1838
1829
  /**
@@ -1840,7 +1831,7 @@ declare namespace ContentDelta {
1840
1831
  */
1841
1832
  annotations?: Array<InteractionsAPI.Annotation>;
1842
1833
  }
1843
- interface ImageDelta {
1834
+ interface Image {
1844
1835
  type: 'image';
1845
1836
  data?: string;
1846
1837
  mime_type?: 'image/png' | 'image/jpeg' | 'image/webp' | 'image/heic' | 'image/heif';
@@ -1850,19 +1841,19 @@ declare namespace ContentDelta {
1850
1841
  resolution?: 'low' | 'medium' | 'high' | 'ultra_high';
1851
1842
  uri?: string;
1852
1843
  }
1853
- interface AudioDelta {
1844
+ interface Audio {
1854
1845
  type: 'audio';
1855
1846
  data?: string;
1856
1847
  mime_type?: 'audio/wav' | 'audio/mp3' | 'audio/aiff' | 'audio/aac' | 'audio/ogg' | 'audio/flac';
1857
1848
  uri?: string;
1858
1849
  }
1859
- interface DocumentDelta {
1850
+ interface Document {
1860
1851
  type: 'document';
1861
1852
  data?: string;
1862
1853
  mime_type?: 'application/pdf';
1863
1854
  uri?: string;
1864
1855
  }
1865
- interface VideoDelta {
1856
+ interface Video {
1866
1857
  type: 'video';
1867
1858
  data?: string;
1868
1859
  mime_type?: 'video/mp4' | 'video/mpeg' | 'video/mpg' | 'video/mov' | 'video/avi' | 'video/x-flv' | 'video/webm' | 'video/wmv' | 'video/3gpp';
@@ -1872,21 +1863,21 @@ declare namespace ContentDelta {
1872
1863
  resolution?: 'low' | 'medium' | 'high' | 'ultra_high';
1873
1864
  uri?: string;
1874
1865
  }
1875
- interface ThoughtSummaryDelta {
1866
+ interface ThoughtSummary {
1876
1867
  type: 'thought_summary';
1877
1868
  /**
1878
- * A text content block.
1869
+ * A new summary item to be added to the thought.
1879
1870
  */
1880
1871
  content?: InteractionsAPI.TextContent | InteractionsAPI.ImageContent;
1881
1872
  }
1882
- interface ThoughtSignatureDelta {
1873
+ interface ThoughtSignature {
1883
1874
  type: 'thought_signature';
1884
1875
  /**
1885
1876
  * Signature to match the backend source to be part of the generation.
1886
1877
  */
1887
1878
  signature?: string;
1888
1879
  }
1889
- interface FunctionCallDelta {
1880
+ interface FunctionCall {
1890
1881
  /**
1891
1882
  * A unique ID for this specific tool call.
1892
1883
  */
@@ -1901,7 +1892,7 @@ declare namespace ContentDelta {
1901
1892
  */
1902
1893
  signature?: string;
1903
1894
  }
1904
- interface FunctionResultDelta {
1895
+ interface FunctionResult {
1905
1896
  /**
1906
1897
  * ID to match the ID from the function call block.
1907
1898
  */
@@ -1909,7 +1900,7 @@ declare namespace ContentDelta {
1909
1900
  /**
1910
1901
  * Tool call result delta.
1911
1902
  */
1912
- result: FunctionResultDelta.Items | unknown | string;
1903
+ result: FunctionResult.Items | unknown | string;
1913
1904
  type: 'function_result';
1914
1905
  is_error?: boolean;
1915
1906
  name?: string;
@@ -1918,12 +1909,12 @@ declare namespace ContentDelta {
1918
1909
  */
1919
1910
  signature?: string;
1920
1911
  }
1921
- namespace FunctionResultDelta {
1912
+ namespace FunctionResult {
1922
1913
  interface Items {
1923
1914
  items?: Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent>;
1924
1915
  }
1925
1916
  }
1926
- interface CodeExecutionCallDelta {
1917
+ interface CodeExecutionCall {
1927
1918
  /**
1928
1919
  * A unique ID for this specific tool call.
1929
1920
  */
@@ -1938,7 +1929,7 @@ declare namespace ContentDelta {
1938
1929
  */
1939
1930
  signature?: string;
1940
1931
  }
1941
- interface CodeExecutionResultDelta {
1932
+ interface CodeExecutionResult {
1942
1933
  /**
1943
1934
  * ID to match the ID from the function call block.
1944
1935
  */
@@ -1951,7 +1942,7 @@ declare namespace ContentDelta {
1951
1942
  */
1952
1943
  signature?: string;
1953
1944
  }
1954
- interface URLContextCallDelta {
1945
+ interface URLContextCall {
1955
1946
  /**
1956
1947
  * A unique ID for this specific tool call.
1957
1948
  */
@@ -1966,7 +1957,7 @@ declare namespace ContentDelta {
1966
1957
  */
1967
1958
  signature?: string;
1968
1959
  }
1969
- interface URLContextResultDelta {
1960
+ interface URLContextResult {
1970
1961
  /**
1971
1962
  * ID to match the ID from the function call block.
1972
1963
  */
@@ -1979,7 +1970,7 @@ declare namespace ContentDelta {
1979
1970
  */
1980
1971
  signature?: string;
1981
1972
  }
1982
- interface GoogleSearchCallDelta {
1973
+ interface GoogleSearchCall {
1983
1974
  /**
1984
1975
  * A unique ID for this specific tool call.
1985
1976
  */
@@ -1994,7 +1985,7 @@ declare namespace ContentDelta {
1994
1985
  */
1995
1986
  signature?: string;
1996
1987
  }
1997
- interface GoogleSearchResultDelta {
1988
+ interface GoogleSearchResult {
1998
1989
  /**
1999
1990
  * ID to match the ID from the function call block.
2000
1991
  */
@@ -2007,7 +1998,7 @@ declare namespace ContentDelta {
2007
1998
  */
2008
1999
  signature?: string;
2009
2000
  }
2010
- interface MCPServerToolCallDelta {
2001
+ interface MCPServerToolCall {
2011
2002
  /**
2012
2003
  * A unique ID for this specific tool call.
2013
2004
  */
@@ -2023,7 +2014,7 @@ declare namespace ContentDelta {
2023
2014
  */
2024
2015
  signature?: string;
2025
2016
  }
2026
- interface MCPServerToolResultDelta {
2017
+ interface MCPServerToolResult {
2027
2018
  /**
2028
2019
  * ID to match the ID from the function call block.
2029
2020
  */
@@ -2031,7 +2022,7 @@ declare namespace ContentDelta {
2031
2022
  /**
2032
2023
  * Tool call result delta.
2033
2024
  */
2034
- result: MCPServerToolResultDelta.Items | unknown | string;
2025
+ result: MCPServerToolResult.Items | unknown | string;
2035
2026
  type: 'mcp_server_tool_result';
2036
2027
  name?: string;
2037
2028
  server_name?: string;
@@ -2040,12 +2031,12 @@ declare namespace ContentDelta {
2040
2031
  */
2041
2032
  signature?: string;
2042
2033
  }
2043
- namespace MCPServerToolResultDelta {
2034
+ namespace MCPServerToolResult {
2044
2035
  interface Items {
2045
2036
  items?: Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent>;
2046
2037
  }
2047
2038
  }
2048
- interface FileSearchCallDelta {
2039
+ interface FileSearchCall {
2049
2040
  /**
2050
2041
  * A unique ID for this specific tool call.
2051
2042
  */
@@ -2056,28 +2047,47 @@ declare namespace ContentDelta {
2056
2047
  */
2057
2048
  signature?: string;
2058
2049
  }
2059
- interface FileSearchResultDelta {
2050
+ interface FileSearchResult {
2051
+ /**
2052
+ * ID to match the ID from the function call block.
2053
+ */
2054
+ call_id: string;
2060
2055
  type: 'file_search_result';
2061
- result?: Array<FileSearchResultDelta.Result>;
2056
+ result?: Array<unknown>;
2057
+ /**
2058
+ * A signature hash for backend validation.
2059
+ */
2060
+ signature?: string;
2062
2061
  }
2063
- namespace FileSearchResultDelta {
2062
+ interface GoogleMapsCall {
2064
2063
  /**
2065
- * The result of the File Search.
2064
+ * A unique ID for this specific tool call.
2066
2065
  */
2067
- interface Result {
2068
- /**
2069
- * The name of the file search store.
2070
- */
2071
- file_search_store?: string;
2072
- /**
2073
- * The text of the search result.
2074
- */
2075
- text?: string;
2076
- /**
2077
- * The title of the search result.
2078
- */
2079
- title?: string;
2080
- }
2066
+ id: string;
2067
+ type: 'google_maps_call';
2068
+ /**
2069
+ * The arguments to pass to the Google Maps tool.
2070
+ */
2071
+ arguments?: InteractionsAPI.GoogleMapsCallArguments;
2072
+ /**
2073
+ * A signature hash for backend validation.
2074
+ */
2075
+ signature?: string;
2076
+ }
2077
+ interface GoogleMapsResult {
2078
+ /**
2079
+ * ID to match the ID from the function call block.
2080
+ */
2081
+ call_id: string;
2082
+ /**
2083
+ * The results of the Google Maps.
2084
+ */
2085
+ result: Array<InteractionsAPI.GoogleMapsResult>;
2086
+ type: 'google_maps_result';
2087
+ /**
2088
+ * A signature hash for backend validation.
2089
+ */
2090
+ signature?: string;
2081
2091
  }
2082
2092
  }
2083
2093
 
@@ -3424,12 +3434,18 @@ export declare interface ExactMatchMetricValue {
3424
3434
  score?: number;
3425
3435
  }
3426
3436
 
3427
- /** Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the [CodeExecution] tool, in which the code will be automatically executed, and a corresponding [CodeExecutionResult] will also be generated. */
3437
+ /** Model-generated code executed server-side, results returned to the model.
3438
+
3439
+ Only generated when using the `CodeExecution` tool, in which the code will
3440
+ be automatically executed, and a corresponding `CodeExecutionResult` will
3441
+ also be generated. */
3428
3442
  export declare interface ExecutableCode {
3429
3443
  /** Required. The code to be executed. */
3430
3444
  code?: string;
3431
3445
  /** Required. Programming language of the `code`. */
3432
3446
  language?: Language;
3447
+ /** Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`. */
3448
+ id?: string;
3433
3449
  }
3434
3450
 
3435
3451
  /** Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. This data type is not supported in Gemini API. */
@@ -3534,6 +3550,33 @@ declare interface File_2 {
3534
3550
  }
3535
3551
  export { File_2 as File }
3536
3552
 
3553
+ /**
3554
+ * A file citation annotation.
3555
+ */
3556
+ declare interface FileCitation {
3557
+ type: 'file_citation';
3558
+ /**
3559
+ * The URI of the file.
3560
+ */
3561
+ document_uri?: string;
3562
+ /**
3563
+ * End of the attributed segment, exclusive.
3564
+ */
3565
+ end_index?: number;
3566
+ /**
3567
+ * The name of the file.
3568
+ */
3569
+ file_name?: string;
3570
+ /**
3571
+ * Source attributed for a portion of the text.
3572
+ */
3573
+ source?: string;
3574
+ /**
3575
+ * Start of segment of the response that is attributed to this source.
3576
+ */
3577
+ start_index?: number;
3578
+ }
3579
+
3537
3580
  /** 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. */
3538
3581
  export declare interface FileData {
3539
3582
  /** Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled. This field is not supported in Gemini API. */
@@ -3702,33 +3745,13 @@ declare interface FileSearchResultContent {
3702
3745
  /**
3703
3746
  * The results of the File Search.
3704
3747
  */
3705
- result?: Array<FileSearchResultContent.Result>;
3748
+ result?: Array<unknown>;
3706
3749
  /**
3707
3750
  * A signature hash for backend validation.
3708
3751
  */
3709
3752
  signature?: string;
3710
3753
  }
3711
3754
 
3712
- declare namespace FileSearchResultContent {
3713
- /**
3714
- * The result of the File Search.
3715
- */
3716
- interface Result {
3717
- /**
3718
- * The name of the file search store.
3719
- */
3720
- file_search_store?: string;
3721
- /**
3722
- * The text of the search result.
3723
- */
3724
- text?: string;
3725
- /**
3726
- * The title of the search result.
3727
- */
3728
- title?: string;
3729
- }
3730
- }
3731
-
3732
3755
  /** A collection of Documents. */
3733
3756
  export declare interface FileSearchStore {
3734
3757
  /** The resource name of the FileSearchStore. Example: `fileSearchStores/my-file-search-store-123` */
@@ -4176,7 +4199,7 @@ declare interface FunctionResultContent {
4176
4199
  /**
4177
4200
  * The result of the tool call.
4178
4201
  */
4179
- result: FunctionResultContent.Items | unknown | string;
4202
+ result: unknown | Array<TextContent | ImageContent> | string;
4180
4203
  type: 'function_result';
4181
4204
  /**
4182
4205
  * Whether the tool call resulted in an error.
@@ -4192,12 +4215,6 @@ declare interface FunctionResultContent {
4192
4215
  signature?: string;
4193
4216
  }
4194
4217
 
4195
- declare namespace FunctionResultContent {
4196
- interface Items {
4197
- items?: Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent>;
4198
- }
4199
- }
4200
-
4201
4218
  /** The Google Cloud Storage location for the input content. This data type is not supported in Gemini API. */
4202
4219
  export declare interface GcsSource {
4203
4220
  /** Required. Google Cloud Storage URI(-s) to the input file(s). May contain wildcards. For more information on wildcards, see https://cloud.google.com/storage/docs/wildcards. */
@@ -4316,7 +4333,6 @@ export declare interface GenerateContentConfig {
4316
4333
  - `application/json`: JSON response in the candidates.
4317
4334
  The model needs to be prompted to output the appropriate response type,
4318
4335
  otherwise the behavior is undefined.
4319
- This is a preview feature.
4320
4336
  */
4321
4337
  responseMimeType?: string;
4322
4338
  /** The `Schema` object allows the definition of input and output data types.
@@ -5255,6 +5271,110 @@ export declare interface GoogleMaps {
5255
5271
  enableWidget?: boolean;
5256
5272
  }
5257
5273
 
5274
+ /**
5275
+ * The arguments to pass to the Google Maps tool.
5276
+ */
5277
+ declare interface GoogleMapsCallArguments {
5278
+ /**
5279
+ * The queries to be executed.
5280
+ */
5281
+ queries?: Array<string>;
5282
+ }
5283
+
5284
+ /**
5285
+ * Google Maps content.
5286
+ */
5287
+ declare interface GoogleMapsCallContent {
5288
+ /**
5289
+ * A unique ID for this specific tool call.
5290
+ */
5291
+ id: string;
5292
+ type: 'google_maps_call';
5293
+ /**
5294
+ * The arguments to pass to the Google Maps tool.
5295
+ */
5296
+ arguments?: GoogleMapsCallArguments;
5297
+ /**
5298
+ * A signature hash for backend validation.
5299
+ */
5300
+ signature?: string;
5301
+ }
5302
+
5303
+ /**
5304
+ * The result of the Google Maps.
5305
+ */
5306
+ declare interface GoogleMapsResult {
5307
+ /**
5308
+ * The places that were found.
5309
+ */
5310
+ places?: Array<GoogleMapsResult.Place>;
5311
+ /**
5312
+ * Resource name of the Google Maps widget context token.
5313
+ */
5314
+ widget_context_token?: string;
5315
+ }
5316
+
5317
+ declare namespace GoogleMapsResult {
5318
+ interface Place {
5319
+ /**
5320
+ * Title of the place.
5321
+ */
5322
+ name?: string;
5323
+ /**
5324
+ * The ID of the place, in `places/{place_id}` format.
5325
+ */
5326
+ place_id?: string;
5327
+ /**
5328
+ * Snippets of reviews that are used to generate answers about the
5329
+ * features of a given place in Google Maps.
5330
+ */
5331
+ review_snippets?: Array<Place.ReviewSnippet>;
5332
+ /**
5333
+ * URI reference of the place.
5334
+ */
5335
+ url?: string;
5336
+ }
5337
+ namespace Place {
5338
+ /**
5339
+ * Encapsulates a snippet of a user review that answers a question about
5340
+ * the features of a specific place in Google Maps.
5341
+ */
5342
+ interface ReviewSnippet {
5343
+ /**
5344
+ * The ID of the review snippet.
5345
+ */
5346
+ review_id?: string;
5347
+ /**
5348
+ * Title of the review.
5349
+ */
5350
+ title?: string;
5351
+ /**
5352
+ * A link that corresponds to the user review on Google Maps.
5353
+ */
5354
+ url?: string;
5355
+ }
5356
+ }
5357
+ }
5358
+
5359
+ /**
5360
+ * Google Maps result content.
5361
+ */
5362
+ declare interface GoogleMapsResultContent {
5363
+ /**
5364
+ * ID to match the ID from the google maps call block.
5365
+ */
5366
+ call_id: string;
5367
+ /**
5368
+ * The results of the Google Maps.
5369
+ */
5370
+ result: Array<GoogleMapsResult>;
5371
+ type: 'google_maps_result';
5372
+ /**
5373
+ * A signature hash for backend validation.
5374
+ */
5375
+ signature?: string;
5376
+ }
5377
+
5258
5378
  /** 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. */
5259
5379
  export declare interface GoogleRpcStatus {
5260
5380
  /** The status code, which should be an enum value of google.rpc.Code. */
@@ -5317,15 +5437,7 @@ declare interface GoogleSearchResult {
5317
5437
  /**
5318
5438
  * Web content snippet that can be embedded in a web page or an app webview.
5319
5439
  */
5320
- rendered_content?: string;
5321
- /**
5322
- * Title of the search result.
5323
- */
5324
- title?: string;
5325
- /**
5326
- * URI reference of the search result.
5327
- */
5328
- url?: string;
5440
+ search_suggestions?: string;
5329
5441
  }
5330
5442
 
5331
5443
  /**
@@ -6053,13 +6165,13 @@ declare interface Interaction {
6053
6165
  */
6054
6166
  agent?: (string & {}) | 'deep-research-pro-preview-12-2025';
6055
6167
  /**
6056
- * Configuration for the agent.
6168
+ * Configuration parameters for the agent interaction.
6057
6169
  */
6058
6170
  agent_config?: DynamicAgentConfig | DeepResearchAgentConfig;
6059
6171
  /**
6060
- * The inputs for the interaction.
6172
+ * The input for the interaction.
6061
6173
  */
6062
- input?: string | Array<Content_2> | Array<Turn> | TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent | FunctionResultContent | CodeExecutionCallContent | CodeExecutionResultContent | URLContextCallContent | URLContextResultContent | GoogleSearchCallContent | GoogleSearchResultContent | MCPServerToolCallContent | MCPServerToolResultContent | FileSearchCallContent | FileSearchResultContent;
6174
+ input?: Array<Content_2> | string | Array<Turn> | TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent | FunctionResultContent | CodeExecutionCallContent | CodeExecutionResultContent | URLContextCallContent | URLContextResultContent | GoogleSearchCallContent | GoogleSearchResultContent | MCPServerToolCallContent | MCPServerToolResultContent | FileSearchCallContent | FileSearchResultContent | GoogleMapsCallContent | GoogleMapsResultContent;
6063
6175
  /**
6064
6176
  * The name of the `Model` used for generating the interaction.
6065
6177
  */
@@ -6178,7 +6290,7 @@ export declare class Interactions extends BaseInteractions {
6178
6290
  }
6179
6291
 
6180
6292
  export declare namespace Interactions {
6181
- export { type AllowedTools as AllowedTools, type Annotation as Annotation, type AudioContent as AudioContent, type CodeExecutionCallArguments as CodeExecutionCallArguments, type CodeExecutionCallContent as CodeExecutionCallContent, type CodeExecutionResultContent as CodeExecutionResultContent, type Content_2 as Content, 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 FileSearchCallContent as FileSearchCallContent, 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 ImageConfig_2 as ImageConfig, type ImageContent as ImageContent, type Interaction as Interaction, type InteractionCompleteEvent as InteractionCompleteEvent, type InteractionSSEEvent as InteractionSSEEvent, type InteractionStartEvent as InteractionStartEvent, 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 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 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, };
6293
+ export { type AllowedTools as AllowedTools, type Annotation as Annotation, type AudioContent as AudioContent, type CodeExecutionCallArguments as CodeExecutionCallArguments, type CodeExecutionCallContent as CodeExecutionCallContent, type CodeExecutionResultContent as CodeExecutionResultContent, type Content_2 as Content, 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 FileCitation as FileCitation, type FileSearchCallContent as FileSearchCallContent, type FileSearchResultContent as FileSearchResultContent, type Function_2 as Function, type FunctionCallContent as FunctionCallContent, type FunctionResultContent as FunctionResultContent, type GenerationConfig_2 as GenerationConfig, type GoogleMapsCallArguments as GoogleMapsCallArguments, type GoogleMapsCallContent as GoogleMapsCallContent, type GoogleMapsResult as GoogleMapsResult, type GoogleMapsResultContent as GoogleMapsResultContent, type GoogleSearchCallArguments as GoogleSearchCallArguments, type GoogleSearchCallContent as GoogleSearchCallContent, type GoogleSearchResult as GoogleSearchResult, type GoogleSearchResultContent as GoogleSearchResultContent, type ImageConfig_2 as ImageConfig, type ImageContent as ImageContent, type Interaction as Interaction, type InteractionCompleteEvent as InteractionCompleteEvent, type InteractionSSEEvent as InteractionSSEEvent, type InteractionStartEvent as InteractionStartEvent, type InteractionStatusUpdate as InteractionStatusUpdate, type MCPServerToolCallContent as MCPServerToolCallContent, type MCPServerToolResultContent as MCPServerToolResultContent, type Model_2 as Model, type PlaceCitation as PlaceCitation, type SpeechConfig_2 as SpeechConfig, type TextContent as TextContent, type ThinkingLevel_2 as ThinkingLevel, type ThoughtContent as ThoughtContent, type Tool_2 as Tool, type ToolChoiceConfig as ToolChoiceConfig, type ToolChoiceType as ToolChoiceType, type Turn as Turn, type URLCitation as URLCitation, 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 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, };
6182
6294
  }
6183
6295
 
6184
6296
  declare namespace InteractionsAPI {
@@ -6199,12 +6311,17 @@ declare namespace InteractionsAPI {
6199
6311
  DocumentContent,
6200
6312
  DynamicAgentConfig,
6201
6313
  ErrorEvent_2 as ErrorEvent,
6314
+ FileCitation,
6202
6315
  FileSearchCallContent,
6203
6316
  FileSearchResultContent,
6204
6317
  Function_2 as Function,
6205
6318
  FunctionCallContent,
6206
6319
  FunctionResultContent,
6207
6320
  GenerationConfig_2 as GenerationConfig,
6321
+ GoogleMapsCallArguments,
6322
+ GoogleMapsCallContent,
6323
+ GoogleMapsResult,
6324
+ GoogleMapsResultContent,
6208
6325
  GoogleSearchCallArguments,
6209
6326
  GoogleSearchCallContent,
6210
6327
  GoogleSearchResult,
@@ -6219,6 +6336,7 @@ declare namespace InteractionsAPI {
6219
6336
  MCPServerToolCallContent,
6220
6337
  MCPServerToolResultContent,
6221
6338
  Model_2 as Model,
6339
+ PlaceCitation,
6222
6340
  SpeechConfig_2 as SpeechConfig,
6223
6341
  TextContent,
6224
6342
  ThinkingLevel_2 as ThinkingLevel,
@@ -6227,6 +6345,7 @@ declare namespace InteractionsAPI {
6227
6345
  ToolChoiceConfig,
6228
6346
  ToolChoiceType,
6229
6347
  Turn,
6348
+ URLCitation,
6230
6349
  URLContextCallArguments,
6231
6350
  URLContextCallContent,
6232
6351
  URLContextResult,
@@ -7487,9 +7606,9 @@ declare interface MCPServerToolResultContent {
7487
7606
  */
7488
7607
  call_id: string;
7489
7608
  /**
7490
- * The result of the tool call.
7609
+ * The output from the MCP server call. Can be simple text or rich content.
7491
7610
  */
7492
- result: MCPServerToolResultContent.Items | unknown | string;
7611
+ result: unknown | Array<TextContent | ImageContent> | string;
7493
7612
  type: 'mcp_server_tool_result';
7494
7613
  /**
7495
7614
  * Name of the tool which is called for this specific tool call.
@@ -7505,12 +7624,6 @@ declare interface MCPServerToolResultContent {
7505
7624
  signature?: string;
7506
7625
  }
7507
7626
 
7508
- declare namespace MCPServerToolResultContent {
7509
- interface Items {
7510
- items?: Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent>;
7511
- }
7512
- }
7513
-
7514
7627
  /**
7515
7628
  * Creates a McpCallableTool from MCP clients and an optional config.
7516
7629
  *
@@ -8431,6 +8544,10 @@ export declare interface Part {
8431
8544
  thoughtSignature?: string;
8432
8545
  /** Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data. */
8433
8546
  videoMetadata?: VideoMetadata;
8547
+ /** Server-side tool call. This field is populated when the model predicts a tool invocation that should be executed on the server. The client is expected to echo this message back to the API. */
8548
+ toolCall?: ToolCall;
8549
+ /** The output from a server-side ToolCall execution. This field is populated by the client with the results of executing the corresponding ToolCall. */
8550
+ toolResponse?: ToolResponse;
8434
8551
  }
8435
8552
 
8436
8553
  /** Partial argument value of the function call. This data type is not supported in Gemini API. */
@@ -8548,6 +8665,59 @@ export declare enum PhishBlockThreshold {
8548
8665
  BLOCK_ONLY_EXTREMELY_HIGH = "BLOCK_ONLY_EXTREMELY_HIGH"
8549
8666
  }
8550
8667
 
8668
+ /**
8669
+ * A place citation annotation.
8670
+ */
8671
+ declare interface PlaceCitation {
8672
+ type: 'place_citation';
8673
+ /**
8674
+ * End of the attributed segment, exclusive.
8675
+ */
8676
+ end_index?: number;
8677
+ /**
8678
+ * Title of the place.
8679
+ */
8680
+ name?: string;
8681
+ /**
8682
+ * The ID of the place, in `places/{place_id}` format.
8683
+ */
8684
+ place_id?: string;
8685
+ /**
8686
+ * Snippets of reviews that are used to generate answers about the
8687
+ * features of a given place in Google Maps.
8688
+ */
8689
+ review_snippets?: Array<PlaceCitation.ReviewSnippet>;
8690
+ /**
8691
+ * Start of segment of the response that is attributed to this source.
8692
+ */
8693
+ start_index?: number;
8694
+ /**
8695
+ * URI reference of the place.
8696
+ */
8697
+ url?: string;
8698
+ }
8699
+
8700
+ declare namespace PlaceCitation {
8701
+ /**
8702
+ * Encapsulates a snippet of a user review that answers a question about
8703
+ * the features of a specific place in Google Maps.
8704
+ */
8705
+ interface ReviewSnippet {
8706
+ /**
8707
+ * The ID of the review snippet.
8708
+ */
8709
+ review_id?: string;
8710
+ /**
8711
+ * Title of the review.
8712
+ */
8713
+ title?: string;
8714
+ /**
8715
+ * A link that corresponds to the user review on Google Maps.
8716
+ */
8717
+ url?: string;
8718
+ }
8719
+ }
8720
+
8551
8721
  /** Spec for pointwise metric result. This data type is not supported in Gemini API. */
8552
8722
  export declare interface PointwiseMetricResult {
8553
8723
  /** Output only. Spec for custom output. */
@@ -9996,7 +10166,7 @@ export declare interface Tool {
9996
10166
  /**
9997
10167
  * A tool that can be used by the model.
9998
10168
  */
9999
- declare type Tool_2 = Function_2 | Tool_2.GoogleSearch | Tool_2.CodeExecution | Tool_2.URLContext | Tool_2.ComputerUse | Tool_2.MCPServer | Tool_2.FileSearch;
10169
+ declare type Tool_2 = Function_2 | Tool_2.GoogleSearch | Tool_2.CodeExecution | Tool_2.URLContext | Tool_2.ComputerUse | Tool_2.MCPServer | Tool_2.FileSearch | Tool_2.GoogleMaps;
10000
10170
 
10001
10171
  declare namespace Tool_2 {
10002
10172
  /**
@@ -10078,6 +10248,40 @@ declare namespace Tool_2 {
10078
10248
  */
10079
10249
  top_k?: number;
10080
10250
  }
10251
+ /**
10252
+ * A tool that can be used by the model to call Google Maps.
10253
+ */
10254
+ interface GoogleMaps {
10255
+ /**
10256
+ * Whether to return a widget context token in the tool call result of the
10257
+ * response.
10258
+ */
10259
+ enable_widget?: boolean;
10260
+ /**
10261
+ * The latitude of the user's location.
10262
+ */
10263
+ latitude?: number;
10264
+ /**
10265
+ * The longitude of the user's location.
10266
+ */
10267
+ longitude?: number;
10268
+ type?: 'google_maps';
10269
+ }
10270
+ }
10271
+
10272
+ /** A predicted server-side `ToolCall` returned from the model.
10273
+
10274
+ This message contains information about a tool that the model wants to invoke.
10275
+ The client is NOT expected to execute this `ToolCall`. Instead, the
10276
+ client should pass this `ToolCall` back to the API in a subsequent turn
10277
+ within a `Content` message, along with the corresponding `ToolResponse`. */
10278
+ export declare interface ToolCall {
10279
+ /** Unique identifier of the tool call. The server returns the tool response with the matching `id`. */
10280
+ id?: string;
10281
+ /** The type of tool that was called. */
10282
+ toolType?: ToolType;
10283
+ /** The tool call arguments. Example: {"arg1": "value1", "arg2": "value2"}. */
10284
+ args?: Record<string, unknown>;
10081
10285
  }
10082
10286
 
10083
10287
  /**
@@ -10104,6 +10308,8 @@ export declare interface ToolConfig {
10104
10308
  retrievalConfig?: RetrievalConfig;
10105
10309
  /** Optional. Function calling config. */
10106
10310
  functionCallingConfig?: FunctionCallingConfig;
10311
+ /** If true, the API response will include the server-side tool calls and responses within the `Content` message. This allows clients to observe the server's tool invocations. */
10312
+ includeServerSideToolInvocations?: boolean;
10107
10313
  }
10108
10314
 
10109
10315
  export declare type ToolListUnion = ToolUnion[];
@@ -10116,6 +10322,49 @@ export declare interface ToolParallelAiSearch {
10116
10322
  customConfigs?: Record<string, unknown>;
10117
10323
  }
10118
10324
 
10325
+ /** The output from a server-side `ToolCall` execution.
10326
+
10327
+ This message contains the results of a tool invocation that was initiated by a
10328
+ `ToolCall` from the model. The client should pass this `ToolResponse` back to
10329
+ the API in a subsequent turn within a `Content` message, along with the
10330
+ corresponding `ToolCall`. */
10331
+ export declare class ToolResponse {
10332
+ /** The identifier of the tool call this response is for. */
10333
+ id?: string;
10334
+ /** The type of tool that was called, matching the tool_type in the corresponding ToolCall. */
10335
+ toolType?: ToolType;
10336
+ /** The tool response. */
10337
+ response?: Record<string, unknown>;
10338
+ }
10339
+
10340
+ /** The type of tool in the function call. */
10341
+ export declare enum ToolType {
10342
+ /**
10343
+ * Unspecified tool type.
10344
+ */
10345
+ TOOL_TYPE_UNSPECIFIED = "TOOL_TYPE_UNSPECIFIED",
10346
+ /**
10347
+ * Google search tool, maps to Tool.google_search.search_types.web_search.
10348
+ */
10349
+ GOOGLE_SEARCH_WEB = "GOOGLE_SEARCH_WEB",
10350
+ /**
10351
+ * Image search tool, maps to Tool.google_search.search_types.image_search.
10352
+ */
10353
+ GOOGLE_SEARCH_IMAGE = "GOOGLE_SEARCH_IMAGE",
10354
+ /**
10355
+ * URL context tool, maps to Tool.url_context.
10356
+ */
10357
+ URL_CONTEXT = "URL_CONTEXT",
10358
+ /**
10359
+ * Google maps tool, maps to Tool.google_maps.
10360
+ */
10361
+ GOOGLE_MAPS = "GOOGLE_MAPS",
10362
+ /**
10363
+ * File search tool, maps to Tool.file_search.
10364
+ */
10365
+ FILE_SEARCH = "FILE_SEARCH"
10366
+ }
10367
+
10119
10368
  export declare type ToolUnion = Tool | CallableTool;
10120
10369
 
10121
10370
  /** Output only. The traffic type for this request. This enum is not supported in Gemini API. */
@@ -10542,8 +10791,8 @@ declare namespace types {
10542
10791
  createPartFromExecutableCode,
10543
10792
  createUserContent,
10544
10793
  createModelContent,
10545
- Outcome,
10546
10794
  Language,
10795
+ Outcome,
10547
10796
  FunctionResponseScheduling,
10548
10797
  Type,
10549
10798
  PhishBlockThreshold,
@@ -10574,6 +10823,7 @@ declare namespace types {
10574
10823
  PairwiseChoice,
10575
10824
  TuningTask,
10576
10825
  PartMediaResolutionLevel,
10826
+ ToolType,
10577
10827
  ResourceScope,
10578
10828
  FeatureSelectionPreference,
10579
10829
  Environment,
@@ -10604,9 +10854,11 @@ declare namespace types {
10604
10854
  Scale,
10605
10855
  MusicGenerationMode,
10606
10856
  LiveMusicPlaybackControl,
10607
- PartMediaResolution,
10608
- CodeExecutionResult,
10609
10857
  ExecutableCode,
10858
+ CodeExecutionResult,
10859
+ PartMediaResolution,
10860
+ ToolCall,
10861
+ ToolResponse,
10610
10862
  FileData,
10611
10863
  PartialArg,
10612
10864
  FunctionCall,
@@ -11111,7 +11363,7 @@ declare interface Uploader {
11111
11363
  * @param apiClient The ApiClient to use for uploading.
11112
11364
  * @return A Promise that resolves to types.File.
11113
11365
  */
11114
- upload(file: string | Blob, uploadUrl: string, apiClient: ApiClient): Promise<File_2>;
11366
+ upload(file: string | Blob, uploadUrl: string, apiClient: ApiClient, httpOptions?: HttpOptions): Promise<File_2>;
11115
11367
  /**
11116
11368
  * Uploads a file to file search store via the given upload url.
11117
11369
  *
@@ -11120,9 +11372,10 @@ declare interface Uploader {
11120
11372
  * uploaded to. The uploadUrl must be a url that was returned by the
11121
11373
  * https://generativelanguage.googleapis.com/upload/v1beta/{file_search_store_name}:uploadToFileSearchStore endpoint
11122
11374
  * @param apiClient The ApiClient to use for uploading.
11375
+ * @param httpOptions Optional HTTP options to merge.
11123
11376
  * @return A Promise that resolves to types.UploadToFileSearchStoreOperation.
11124
11377
  */
11125
- uploadToFileSearchStore(file: string | Blob, uploadUrl: string, apiClient: ApiClient): Promise<UploadToFileSearchStoreOperation>;
11378
+ uploadToFileSearchStore(file: string | Blob, uploadUrl: string, apiClient: ApiClient, httpOptions?: HttpOptions): Promise<UploadToFileSearchStoreOperation>;
11126
11379
  /**
11127
11380
  * Returns the file's mimeType and the size of a given file. If the file is a
11128
11381
  * string path, the file type is determined by the file extension. If the
@@ -11298,6 +11551,29 @@ export declare class UpscaleImageResponse {
11298
11551
  generatedImages?: GeneratedImage[];
11299
11552
  }
11300
11553
 
11554
+ /**
11555
+ * A URL citation annotation.
11556
+ */
11557
+ declare interface URLCitation {
11558
+ type: 'url_citation';
11559
+ /**
11560
+ * End of the attributed segment, exclusive.
11561
+ */
11562
+ end_index?: number;
11563
+ /**
11564
+ * Start of segment of the response that is attributed to this source.
11565
+ */
11566
+ start_index?: number;
11567
+ /**
11568
+ * The title of the URL.
11569
+ */
11570
+ title?: string;
11571
+ /**
11572
+ * The URL.
11573
+ */
11574
+ url?: string;
11575
+ }
11576
+
11301
11577
  /** Tool to support URL context. */
11302
11578
  export declare interface UrlContext {
11303
11579
  }