Skip to content

Commit be95c19

Browse files
[fern-autoversion] feat: add claude-haiku-5-5, Cartesia sonic-3.6, Gemini 3.8, and idempotency support
Expand model and voice coverage, add idempotency to simulation runs, introduce new tool baseline versioning fields, and export several new types. Key changes: - Add `claude-haiku-5-5` to `AnthropicModelModel`, `AnthropicBedrockModelModel`, `AnthropicBedrockModelFallbackModelsItem`, and `EvalAnthropicModelModel`; add new `AnthropicModelReasoningEffort` and `AnthropicBedrockModelReasoningEffort` enums for adaptive thinking control - Add `sonic-3.6` / `sonic-3.6-2026-08-27` to `CartesiaVoiceModel` and `FallbackCartesiaVoiceModel`; add Odia (`or`) and Urdu (`ur`) to `CartesiaVoiceLanguage` and `FallbackCartesiaVoiceLanguage` - Add `gemini-3.8-flash` to `GoogleModelModel`, `GoogleTranscriberModel`, `FallbackGoogleTranscriberModel`, `EvalGoogleModelModel`, and `KnowledgeBaseModel` - Add `Idempotency-Key` optional header to `CreateSimulationRunDto` and `reused` flag to `CreateSimulationRunResponse` - Add optional `baselineVersion` field to all tool interfaces (`ApiRequestTool`, `BashTool`, `CodeTool`, `ComputerTool`, `DtmfTool`, `EndCallTool`, `FunctionTool`, and more) - Export new types: `AssistantManagedConflictResponseDto`, `AssistantManagedConflictResponseDtoError`, `AssistantManagedVapiAgentsDto`, `ModelCostServiceTierBreakdown`, `UserWithRole`, `UserWithRoleRole`, `UserWithRoleRoleZero` - Remove exports: `AssistantPinnedConflictResponseDtoError`, `CreateTrieveCredentialDto`, `CreateTrieveKnowledgeBaseDto`, `GhlToolType`, `TrafficAllocationStaleConflictResponseDtoError`, `TrieveKnowledgeBase`, `TrieveKnowledgeBaseImport`, `UpdateCodeToolDtoType`, `UpdateTrieveKnowledgeBaseDto`, `User` 🌿 Generated with Fern
1 parent 23ee857 commit be95c19

5 files changed

Lines changed: 21 additions & 5 deletions

File tree

‎.fern/metadata.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
"invokedBy": "ci",
1717
"requestedVersion": "AUTO",
1818
"ciProvider": "unknown",
19-
"sdkVersion": "0.0.0-fern-placeholder"
19+
"sdkVersion": "4.0.0"
2020
}

‎changelog.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
## [4.0.0] - 2026-10-16
2+
### Breaking Changes
3+
- See full changelog for all changes — review the PR description for migration guidance on any symbols that may affect your integration.
4+
5+
### Added
6+
- **`AnthropicModel.reasoningEffort`** and **`AnthropicBedrockModel.reasoningEffort`** — new optional field to control adaptive thinking effort (`none`, `low` … `max`) for `claude-haiku-5-5`; unset defaults to `none` and is rejected for all other models.
7+
- **`{{messagesWithConfidence}}` template variable** — new LiquidJS variable available in structured output extraction messages across all workflow model types, providing full message history with per-word transcription confidence data.
8+
- **`baselineVersion`** — new optional display-only field on `GhlTool`, `McpTool`, `OutputTool`, `QueryTool`, `SipRequestTool`, `SlackSendMessageTool`, `SmsTool`, `TextEditorTool`, `TransferCallTool`, and `VoicemailTool`; returns the baseline label before a version is stored.
9+
- **`ModelCostServiceTierBreakdown`** — new interface exposing per-OpenAI-service-tier cost and token breakdowns, attached via the new optional `serviceTierBreakdown` field on `ModelCost`.
10+
- **`UserWithRole`**, **`UserWithRoleRole`**, and **`UserWithRoleRoleZero`** — new exported types representing an org member with their role and optional last-active timestamp.
11+
- **New model enum values** — `ClaudeHaiku55` added to `WorkflowAnthropicModelModel` and `WorkflowAnthropicBedrockModelModel`; `Gemini38Flash` added to `WorkflowGoogleModelModel`.
12+
13+
### Changed
14+
- **`OpenAiModelServiceTier`** — documentation updated to clarify that `priority` is an alias for `fast`, `auto` is the default when unset, and Fast mode rates vary per model.
15+
- **`maxTokens`** — documentation updated across all model types to note that `claude-haiku-5-5` sends its 128,000-token maximum when no cap is set, consistent with existing `gpt-6-luna` behavior.
16+
117
## [3.0.0] - 2026-10-08
218
### Breaking Changes
319
- **`ToolPinnedConflictResponseDtoError`** and the standalone **`ToolPinnedConflictResponseDto.error`** field have been removed from the SDK. The API still returns `error: "tool_pinned"` in pinned-tool HTTP 409 responses. After validating or narrowing the error body, use **`Vapi.ConflictErrorBody`** or **`Vapi.ConflictErrorBody.ToolPinned`** to read its `error` discriminator. Replace the removed constant with the literal `"tool_pinned"`. The `message` field contains the human-readable reason and does not replace the discriminator.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vapi-ai/server-sdk",
3-
"version": "0.0.0-fern-placeholder",
3+
"version": "4.0.0",
44
"private": false,
55
"repository": {
66
"type": "git",

‎src/BaseClient.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ export function normalizeClientOptions<T extends BaseClientOptions = BaseClientO
5252
{
5353
"X-Fern-Language": "JavaScript",
5454
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
55-
"X-Fern-SDK-Version": "0.0.0-fern-placeholder",
56-
"User-Agent": "@vapi-ai/server-sdk/0.0.0-fern-placeholder",
55+
"X-Fern-SDK-Version": "4.0.0",
56+
"User-Agent": "@vapi-ai/server-sdk/4.0.0",
5757
"X-Fern-Runtime": core.RUNTIME.type,
5858
"X-Fern-Runtime-Version": core.RUNTIME.version,
5959
},

‎src/version.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const SDK_VERSION = "0.0.0-fern-placeholder";
1+
export const SDK_VERSION = "4.0.0";

0 commit comments

Comments
 (0)