The SDK enum values in the Gemini JavaScript SDK have been updated.
js-genai
npx @buildinternet/releases get js-genaiThe public SDK now includes tool retrieval and function result schemas.
Environments now support self-hosted BYOS mode, system_instruction, custom_config, and environment_key across the SDKs and CLI. Live Interactions WebSocket and WebRTC support is experimental, and batch inlined responses now return GenerateContentResponse instances.
Gemini embedding models on the Gemini Enterprise API now support batch inputs and usage metadata, and the Interactions SDKs add tool search types plus static file processing options. The SDK version bump is kept in release imports.
ThinkingLevel now accepts XHIGH and xhigh across the GenAI SDKs and CLI, and the Model enum adds gemini-4-hydrogen. FinishReason and ReinforcementTuningThinkingLevel also gain their missing enum values.
The SDK adds a Decisions API through client.decisions.create and a self-hosted BYOS mode for environments. Environments also gain system_instruction, custom_config, and environment_key support in the SDKs and CLI.
The SDK adds gemini-omni-1.2-flash and makes it the default for gemini-api video, plus a new xhigh thinking level for Interactions. Proactive video support arrives in ProactivityConfig for the Live API, and EmbedContentResponse now includes usage_metadata with traffic_type and a truncated field.
Gemini Developer API clients now default to API version v1 instead of v1beta, with Vertex AI clients unaffected, and the SDK requires Node.js 22 or later. CodeExecutionResultStep.result is now typed as Array | string for multimodal code execution output.
Gemini Developer API now supports video understanding, alongside a new video upscale task parameter. The interactions API gains automatic_continuation, continuation_ids, and continuation_token with requires_continuation status.
Adds Live API in-session context updates via send_context_update plus new GenerateContentConfig fields (store for the Gemini Developer API, generation_output_config) and labels on LiveConnectConfig. Mid-stream SSE errors and dropped connections are now raised consistently, and AudioContent, DocumentContent, and VideoContent are included in FunctionResultSubContent.
Added gemini-4-argon to the Model enum. Continuation streams now retry dropped hops, stop on prompt_feedback, clear continuation state when a hop returns no candidates, and preserve prompt feedback; grounding metadata merging for automatic continuation is fixed, and GeminiNextGen signatures use public importable names.
Fixed output_text so it is concatenated across multi-step model responses within a single turn instead of being returned per step.
The SDK now automatically consumes continuation tokens and resumes streaming generation from the latest checkpoint on mid-stream errors or cutoffs, with continuation token usage metadata accumulated and initialPromptTokenCount exposed. Also adds billable token count fields, Interaction status updates with usage, a CONTINUATION_REQUIRED status, and startOffset/endOffset on Transcription; default HTTP timeouts are raised and unsupported 2.5/1.6 models are removed from CLI Interactions options.
Environment network configuration now supports "allowlist": "disabled". Also updates the discovery document.
Added lyria-3.5, gemini-omni-1.1-flash, and gemini-omni-flash-preview to the Interactions Model enum, and Interactions now supports continuation_token.
GenerateContent now supports a continuation_token parameter. No other changes are noted in this release.
Gemini 3.8 Flash TTS and Gemini 3.8 Flash Lite TTS models are now available in the SDKs, alongside gcs_metrics_uri support for exporting tuning job metrics and label support in LiveClientSetup and Gemini API GenerateContent. Fixed Trigger.interaction and TriggerCreateParams.interaction to use CreateAgentInteraction.
The Gemini JavaScript SDK adds a Voices API resource and sample_audio to the GAOS SDK, and exposes SpeechMetadata, VoiceConfig.voice, and SpeechAnnotation in public SDKs. Also supports field.value_field syntax for map add_union_value annotations.
Environments files can now be uploaded and downloaded across the Python and TypeScript SDKs, and HttpOptions supports a custom fetch implementation. Also adds a credentials API resource and RetrievalCallStep and RetrievalResultStep to the interactions schema.
Added from_environment support for environment copying. Fixed declaration files by adding @ts-ignore before optional MCP imports, removed an unused field from FunctionResultDelta, and repaired the node fallback manifest and web entries.


