You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@google/genai

Package Overview
Dependencies
Maintainers
3
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google/genai - npm Package Compare versions

Comparing version
1.42.0
to
1.43.0
+48
-3
dist/tokenizer/node.d.ts

@@ -511,4 +511,6 @@ /** 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. */

/** GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */
/** Tool to support web search. */
declare interface GoogleSearch {
/** Different types of search that can be enabled on the GoogleSearch tool. */
searchTypes?: SearchTypes;
/** Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: ["amazon.com", "facebook.com"]. This field is not supported in Gemini API. */

@@ -581,2 +583,6 @@ excludeDomains?: string[];

/** Image search for grounding and related configurations. */
declare interface ImageSearch {
}
/** Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. */

@@ -644,2 +650,10 @@ declare interface Interval {

/** A MCPServer is a server that can be called by the model to perform actions. It is a server that implements the MCP protocol. Next ID: 5. This data type is not supported in Vertex AI. */
declare interface McpServer {
/** The name of the MCPServer. */
name?: string;
/** A transport that can stream HTTP requests and responses. */
streamableHttpTransport?: StreamableHttpTransport;
}
/** The media resolution to use. */

@@ -974,2 +988,11 @@ declare enum MediaResolution {

/** Tool to support computer use. */
declare interface SearchTypes {
/** Setting this field enables web search. Only text results are
returned. */
webSearch?: WebSearch;
/** Setting this field enables image search. Image bytes are returned. */
imageSearch?: ImageSearch;
}
/** Configuration for a single speaker in a multi speaker setup. */

@@ -992,2 +1015,16 @@ declare interface SpeakerVoiceConfig {

/** A transport that can stream HTTP requests and responses. Next ID: 6. This data type is not supported in Vertex AI. */
declare interface StreamableHttpTransport {
/** Optional: Fields for authentication headers, timeouts, etc., if needed. */
headers?: Record<string, string>;
/** Timeout for SSE read operations. */
sseReadTimeout?: string;
/** Whether to close the client session when the transport closes. */
terminateOnClose?: boolean;
/** HTTP timeout for regular operations. */
timeout?: string;
/** The full URL for the MCPServer endpoint. Example: "https://api.example.com/mcp". */
url?: string;
}
/** The thinking features configuration. */

@@ -1050,2 +1087,4 @@ declare interface ThinkingConfig {

fileSearch?: FileSearch;
/** Enables the model to execute Google Search as part of generation. */
googleSearch?: GoogleSearch;
/** Optional. CodeExecution tool type. Enables the model to execute code as part of generation. */

@@ -1059,4 +1098,2 @@ codeExecution?: ToolCodeExecution;

googleMaps?: GoogleMaps;
/** Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */
googleSearch?: GoogleSearch;
/** Optional. Specialized retrieval tool that is powered by Google Search. */

@@ -1066,2 +1103,4 @@ googleSearchRetrieval?: GoogleSearchRetrieval;

urlContext?: UrlContext;
/** Optional. MCP Servers to connect to. This field is not supported in Vertex AI. */
mcpServers?: McpServer[];
}

@@ -1176,2 +1215,8 @@

/** Standard web search for grounding and related configurations.
Only text results are returned. */
declare interface WebSearch {
}
export { }
+1
-1
{
"name": "@google/genai",
"version": "1.42.0",
"version": "1.43.0",
"description": "",

@@ -5,0 +5,0 @@ "type": "module",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display