@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.
@@ -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.
@@ -5262,6 +5278,110 @@ export declare interface GoogleMaps {
5262
5278
  enableWidget?: boolean;
5263
5279
  }
5264
5280
 
5281
+ /**
5282
+ * The arguments to pass to the Google Maps tool.
5283
+ */
5284
+ declare interface GoogleMapsCallArguments {
5285
+ /**
5286
+ * The queries to be executed.
5287
+ */
5288
+ queries?: Array<string>;
5289
+ }
5290
+
5291
+ /**
5292
+ * Google Maps content.
5293
+ */
5294
+ declare interface GoogleMapsCallContent {
5295
+ /**
5296
+ * A unique ID for this specific tool call.
5297
+ */
5298
+ id: string;
5299
+ type: 'google_maps_call';
5300
+ /**
5301
+ * The arguments to pass to the Google Maps tool.
5302
+ */
5303
+ arguments?: GoogleMapsCallArguments;
5304
+ /**
5305
+ * A signature hash for backend validation.
5306
+ */
5307
+ signature?: string;
5308
+ }
5309
+
5310
+ /**
5311
+ * The result of the Google Maps.
5312
+ */
5313
+ declare interface GoogleMapsResult {
5314
+ /**
5315
+ * The places that were found.
5316
+ */
5317
+ places?: Array<GoogleMapsResult.Place>;
5318
+ /**
5319
+ * Resource name of the Google Maps widget context token.
5320
+ */
5321
+ widget_context_token?: string;
5322
+ }
5323
+
5324
+ declare namespace GoogleMapsResult {
5325
+ interface Place {
5326
+ /**
5327
+ * Title of the place.
5328
+ */
5329
+ name?: string;
5330
+ /**
5331
+ * The ID of the place, in `places/{place_id}` format.
5332
+ */
5333
+ place_id?: string;
5334
+ /**
5335
+ * Snippets of reviews that are used to generate answers about the
5336
+ * features of a given place in Google Maps.
5337
+ */
5338
+ review_snippets?: Array<Place.ReviewSnippet>;
5339
+ /**
5340
+ * URI reference of the place.
5341
+ */
5342
+ url?: string;
5343
+ }
5344
+ namespace Place {
5345
+ /**
5346
+ * Encapsulates a snippet of a user review that answers a question about
5347
+ * the features of a specific place in Google Maps.
5348
+ */
5349
+ interface ReviewSnippet {
5350
+ /**
5351
+ * The ID of the review snippet.
5352
+ */
5353
+ review_id?: string;
5354
+ /**
5355
+ * Title of the review.
5356
+ */
5357
+ title?: string;
5358
+ /**
5359
+ * A link that corresponds to the user review on Google Maps.
5360
+ */
5361
+ url?: string;
5362
+ }
5363
+ }
5364
+ }
5365
+
5366
+ /**
5367
+ * Google Maps result content.
5368
+ */
5369
+ declare interface GoogleMapsResultContent {
5370
+ /**
5371
+ * ID to match the ID from the google maps call block.
5372
+ */
5373
+ call_id: string;
5374
+ /**
5375
+ * The results of the Google Maps.
5376
+ */
5377
+ result: Array<GoogleMapsResult>;
5378
+ type: 'google_maps_result';
5379
+ /**
5380
+ * A signature hash for backend validation.
5381
+ */
5382
+ signature?: string;
5383
+ }
5384
+
5265
5385
  /** 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. */
5266
5386
  export declare interface GoogleRpcStatus {
5267
5387
  /** The status code, which should be an enum value of google.rpc.Code. */
@@ -5324,15 +5444,7 @@ declare interface GoogleSearchResult {
5324
5444
  /**
5325
5445
  * Web content snippet that can be embedded in a web page or an app webview.
5326
5446
  */
5327
- rendered_content?: string;
5328
- /**
5329
- * Title of the search result.
5330
- */
5331
- title?: string;
5332
- /**
5333
- * URI reference of the search result.
5334
- */
5335
- url?: string;
5447
+ search_suggestions?: string;
5336
5448
  }
5337
5449
 
5338
5450
  /**
@@ -6060,13 +6172,13 @@ declare interface Interaction {
6060
6172
  */
6061
6173
  agent?: (string & {}) | 'deep-research-pro-preview-12-2025';
6062
6174
  /**
6063
- * Configuration for the agent.
6175
+ * Configuration parameters for the agent interaction.
6064
6176
  */
6065
6177
  agent_config?: DynamicAgentConfig | DeepResearchAgentConfig;
6066
6178
  /**
6067
- * The inputs for the interaction.
6179
+ * The input for the interaction.
6068
6180
  */
6069
- 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;
6181
+ 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;
6070
6182
  /**
6071
6183
  * The name of the `Model` used for generating the interaction.
6072
6184
  */
@@ -6185,7 +6297,7 @@ export declare class Interactions extends BaseInteractions {
6185
6297
  }
6186
6298
 
6187
6299
  export declare namespace Interactions {
6188
- 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, };
6300
+ 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, };
6189
6301
  }
6190
6302
 
6191
6303
  declare namespace InteractionsAPI {
@@ -6206,12 +6318,17 @@ declare namespace InteractionsAPI {
6206
6318
  DocumentContent,
6207
6319
  DynamicAgentConfig,
6208
6320
  ErrorEvent_2 as ErrorEvent,
6321
+ FileCitation,
6209
6322
  FileSearchCallContent,
6210
6323
  FileSearchResultContent,
6211
6324
  Function_2 as Function,
6212
6325
  FunctionCallContent,
6213
6326
  FunctionResultContent,
6214
6327
  GenerationConfig_2 as GenerationConfig,
6328
+ GoogleMapsCallArguments,
6329
+ GoogleMapsCallContent,
6330
+ GoogleMapsResult,
6331
+ GoogleMapsResultContent,
6215
6332
  GoogleSearchCallArguments,
6216
6333
  GoogleSearchCallContent,
6217
6334
  GoogleSearchResult,
@@ -6226,6 +6343,7 @@ declare namespace InteractionsAPI {
6226
6343
  MCPServerToolCallContent,
6227
6344
  MCPServerToolResultContent,
6228
6345
  Model_2 as Model,
6346
+ PlaceCitation,
6229
6347
  SpeechConfig_2 as SpeechConfig,
6230
6348
  TextContent,
6231
6349
  ThinkingLevel_2 as ThinkingLevel,
@@ -6234,6 +6352,7 @@ declare namespace InteractionsAPI {
6234
6352
  ToolChoiceConfig,
6235
6353
  ToolChoiceType,
6236
6354
  Turn,
6355
+ URLCitation,
6237
6356
  URLContextCallArguments,
6238
6357
  URLContextCallContent,
6239
6358
  URLContextResult,
@@ -7494,9 +7613,9 @@ declare interface MCPServerToolResultContent {
7494
7613
  */
7495
7614
  call_id: string;
7496
7615
  /**
7497
- * The result of the tool call.
7616
+ * The output from the MCP server call. Can be simple text or rich content.
7498
7617
  */
7499
- result: MCPServerToolResultContent.Items | unknown | string;
7618
+ result: unknown | Array<TextContent | ImageContent> | string;
7500
7619
  type: 'mcp_server_tool_result';
7501
7620
  /**
7502
7621
  * Name of the tool which is called for this specific tool call.
@@ -7512,12 +7631,6 @@ declare interface MCPServerToolResultContent {
7512
7631
  signature?: string;
7513
7632
  }
7514
7633
 
7515
- declare namespace MCPServerToolResultContent {
7516
- interface Items {
7517
- items?: Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent>;
7518
- }
7519
- }
7520
-
7521
7634
  /**
7522
7635
  * Creates a McpCallableTool from MCP clients and an optional config.
7523
7636
  *
@@ -8438,6 +8551,10 @@ export declare interface Part {
8438
8551
  thoughtSignature?: string;
8439
8552
  /** Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data. */
8440
8553
  videoMetadata?: VideoMetadata;
8554
+ /** 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. */
8555
+ toolCall?: ToolCall;
8556
+ /** The output from a server-side ToolCall execution. This field is populated by the client with the results of executing the corresponding ToolCall. */
8557
+ toolResponse?: ToolResponse;
8441
8558
  }
8442
8559
 
8443
8560
  /** Partial argument value of the function call. This data type is not supported in Gemini API. */
@@ -8555,6 +8672,59 @@ export declare enum PhishBlockThreshold {
8555
8672
  BLOCK_ONLY_EXTREMELY_HIGH = "BLOCK_ONLY_EXTREMELY_HIGH"
8556
8673
  }
8557
8674
 
8675
+ /**
8676
+ * A place citation annotation.
8677
+ */
8678
+ declare interface PlaceCitation {
8679
+ type: 'place_citation';
8680
+ /**
8681
+ * End of the attributed segment, exclusive.
8682
+ */
8683
+ end_index?: number;
8684
+ /**
8685
+ * Title of the place.
8686
+ */
8687
+ name?: string;
8688
+ /**
8689
+ * The ID of the place, in `places/{place_id}` format.
8690
+ */
8691
+ place_id?: string;
8692
+ /**
8693
+ * Snippets of reviews that are used to generate answers about the
8694
+ * features of a given place in Google Maps.
8695
+ */
8696
+ review_snippets?: Array<PlaceCitation.ReviewSnippet>;
8697
+ /**
8698
+ * Start of segment of the response that is attributed to this source.
8699
+ */
8700
+ start_index?: number;
8701
+ /**
8702
+ * URI reference of the place.
8703
+ */
8704
+ url?: string;
8705
+ }
8706
+
8707
+ declare namespace PlaceCitation {
8708
+ /**
8709
+ * Encapsulates a snippet of a user review that answers a question about
8710
+ * the features of a specific place in Google Maps.
8711
+ */
8712
+ interface ReviewSnippet {
8713
+ /**
8714
+ * The ID of the review snippet.
8715
+ */
8716
+ review_id?: string;
8717
+ /**
8718
+ * Title of the review.
8719
+ */
8720
+ title?: string;
8721
+ /**
8722
+ * A link that corresponds to the user review on Google Maps.
8723
+ */
8724
+ url?: string;
8725
+ }
8726
+ }
8727
+
8558
8728
  /** Spec for pointwise metric result. This data type is not supported in Gemini API. */
8559
8729
  export declare interface PointwiseMetricResult {
8560
8730
  /** Output only. Spec for custom output. */
@@ -10003,7 +10173,7 @@ export declare interface Tool {
10003
10173
  /**
10004
10174
  * A tool that can be used by the model.
10005
10175
  */
10006
- declare type Tool_2 = Function_2 | Tool_2.GoogleSearch | Tool_2.CodeExecution | Tool_2.URLContext | Tool_2.ComputerUse | Tool_2.MCPServer | Tool_2.FileSearch;
10176
+ 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;
10007
10177
 
10008
10178
  declare namespace Tool_2 {
10009
10179
  /**
@@ -10085,6 +10255,40 @@ declare namespace Tool_2 {
10085
10255
  */
10086
10256
  top_k?: number;
10087
10257
  }
10258
+ /**
10259
+ * A tool that can be used by the model to call Google Maps.
10260
+ */
10261
+ interface GoogleMaps {
10262
+ /**
10263
+ * Whether to return a widget context token in the tool call result of the
10264
+ * response.
10265
+ */
10266
+ enable_widget?: boolean;
10267
+ /**
10268
+ * The latitude of the user's location.
10269
+ */
10270
+ latitude?: number;
10271
+ /**
10272
+ * The longitude of the user's location.
10273
+ */
10274
+ longitude?: number;
10275
+ type?: 'google_maps';
10276
+ }
10277
+ }
10278
+
10279
+ /** A predicted server-side `ToolCall` returned from the model.
10280
+
10281
+ This message contains information about a tool that the model wants to invoke.
10282
+ The client is NOT expected to execute this `ToolCall`. Instead, the
10283
+ client should pass this `ToolCall` back to the API in a subsequent turn
10284
+ within a `Content` message, along with the corresponding `ToolResponse`. */
10285
+ export declare interface ToolCall {
10286
+ /** Unique identifier of the tool call. The server returns the tool response with the matching `id`. */
10287
+ id?: string;
10288
+ /** The type of tool that was called. */
10289
+ toolType?: ToolType;
10290
+ /** The tool call arguments. Example: {"arg1": "value1", "arg2": "value2"}. */
10291
+ args?: Record<string, unknown>;
10088
10292
  }
10089
10293
 
10090
10294
  /**
@@ -10111,6 +10315,8 @@ export declare interface ToolConfig {
10111
10315
  retrievalConfig?: RetrievalConfig;
10112
10316
  /** Optional. Function calling config. */
10113
10317
  functionCallingConfig?: FunctionCallingConfig;
10318
+ /** 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. */
10319
+ includeServerSideToolInvocations?: boolean;
10114
10320
  }
10115
10321
 
10116
10322
  export declare type ToolListUnion = ToolUnion[];
@@ -10123,6 +10329,49 @@ export declare interface ToolParallelAiSearch {
10123
10329
  customConfigs?: Record<string, unknown>;
10124
10330
  }
10125
10331
 
10332
+ /** The output from a server-side `ToolCall` execution.
10333
+
10334
+ This message contains the results of a tool invocation that was initiated by a
10335
+ `ToolCall` from the model. The client should pass this `ToolResponse` back to
10336
+ the API in a subsequent turn within a `Content` message, along with the
10337
+ corresponding `ToolCall`. */
10338
+ export declare class ToolResponse {
10339
+ /** The identifier of the tool call this response is for. */
10340
+ id?: string;
10341
+ /** The type of tool that was called, matching the tool_type in the corresponding ToolCall. */
10342
+ toolType?: ToolType;
10343
+ /** The tool response. */
10344
+ response?: Record<string, unknown>;
10345
+ }
10346
+
10347
+ /** The type of tool in the function call. */
10348
+ export declare enum ToolType {
10349
+ /**
10350
+ * Unspecified tool type.
10351
+ */
10352
+ TOOL_TYPE_UNSPECIFIED = "TOOL_TYPE_UNSPECIFIED",
10353
+ /**
10354
+ * Google search tool, maps to Tool.google_search.search_types.web_search.
10355
+ */
10356
+ GOOGLE_SEARCH_WEB = "GOOGLE_SEARCH_WEB",
10357
+ /**
10358
+ * Image search tool, maps to Tool.google_search.search_types.image_search.
10359
+ */
10360
+ GOOGLE_SEARCH_IMAGE = "GOOGLE_SEARCH_IMAGE",
10361
+ /**
10362
+ * URL context tool, maps to Tool.url_context.
10363
+ */
10364
+ URL_CONTEXT = "URL_CONTEXT",
10365
+ /**
10366
+ * Google maps tool, maps to Tool.google_maps.
10367
+ */
10368
+ GOOGLE_MAPS = "GOOGLE_MAPS",
10369
+ /**
10370
+ * File search tool, maps to Tool.file_search.
10371
+ */
10372
+ FILE_SEARCH = "FILE_SEARCH"
10373
+ }
10374
+
10126
10375
  export declare type ToolUnion = Tool | CallableTool;
10127
10376
 
10128
10377
  /** Output only. The traffic type for this request. This enum is not supported in Gemini API. */
@@ -10549,8 +10798,8 @@ declare namespace types {
10549
10798
  createPartFromExecutableCode,
10550
10799
  createUserContent,
10551
10800
  createModelContent,
10552
- Outcome,
10553
10801
  Language,
10802
+ Outcome,
10554
10803
  FunctionResponseScheduling,
10555
10804
  Type,
10556
10805
  PhishBlockThreshold,
@@ -10581,6 +10830,7 @@ declare namespace types {
10581
10830
  PairwiseChoice,
10582
10831
  TuningTask,
10583
10832
  PartMediaResolutionLevel,
10833
+ ToolType,
10584
10834
  ResourceScope,
10585
10835
  FeatureSelectionPreference,
10586
10836
  Environment,
@@ -10611,9 +10861,11 @@ declare namespace types {
10611
10861
  Scale,
10612
10862
  MusicGenerationMode,
10613
10863
  LiveMusicPlaybackControl,
10614
- PartMediaResolution,
10615
- CodeExecutionResult,
10616
10864
  ExecutableCode,
10865
+ CodeExecutionResult,
10866
+ PartMediaResolution,
10867
+ ToolCall,
10868
+ ToolResponse,
10617
10869
  FileData,
10618
10870
  PartialArg,
10619
10871
  FunctionCall,
@@ -11118,7 +11370,7 @@ declare interface Uploader {
11118
11370
  * @param apiClient The ApiClient to use for uploading.
11119
11371
  * @return A Promise that resolves to types.File.
11120
11372
  */
11121
- upload(file: string | Blob, uploadUrl: string, apiClient: ApiClient): Promise<File_2>;
11373
+ upload(file: string | Blob, uploadUrl: string, apiClient: ApiClient, httpOptions?: HttpOptions): Promise<File_2>;
11122
11374
  /**
11123
11375
  * Uploads a file to file search store via the given upload url.
11124
11376
  *
@@ -11127,9 +11379,10 @@ declare interface Uploader {
11127
11379
  * uploaded to. The uploadUrl must be a url that was returned by the
11128
11380
  * https://generativelanguage.googleapis.com/upload/v1beta/{file_search_store_name}:uploadToFileSearchStore endpoint
11129
11381
  * @param apiClient The ApiClient to use for uploading.
11382
+ * @param httpOptions Optional HTTP options to merge.
11130
11383
  * @return A Promise that resolves to types.UploadToFileSearchStoreOperation.
11131
11384
  */
11132
- uploadToFileSearchStore(file: string | Blob, uploadUrl: string, apiClient: ApiClient): Promise<UploadToFileSearchStoreOperation>;
11385
+ uploadToFileSearchStore(file: string | Blob, uploadUrl: string, apiClient: ApiClient, httpOptions?: HttpOptions): Promise<UploadToFileSearchStoreOperation>;
11133
11386
  /**
11134
11387
  * Returns the file's mimeType and the size of a given file. If the file is a
11135
11388
  * string path, the file type is determined by the file extension. If the
@@ -11305,6 +11558,29 @@ export declare class UpscaleImageResponse {
11305
11558
  generatedImages?: GeneratedImage[];
11306
11559
  }
11307
11560
 
11561
+ /**
11562
+ * A URL citation annotation.
11563
+ */
11564
+ declare interface URLCitation {
11565
+ type: 'url_citation';
11566
+ /**
11567
+ * End of the attributed segment, exclusive.
11568
+ */
11569
+ end_index?: number;
11570
+ /**
11571
+ * Start of segment of the response that is attributed to this source.
11572
+ */
11573
+ start_index?: number;
11574
+ /**
11575
+ * The title of the URL.
11576
+ */
11577
+ title?: string;
11578
+ /**
11579
+ * The URL.
11580
+ */
11581
+ url?: string;
11582
+ }
11583
+
11308
11584
  /** Tool to support URL context. */
11309
11585
  export declare interface UrlContext {
11310
11586
  }