|
| 1 | +## [3.0.0] - 2026-10-08 |
| 2 | +### Breaking Changes |
| 3 | +- **`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. |
| 4 | +- **`EvalControllerGetRunsPaginatedRequestSortBy`** and **`GetEvalRunPaginatedDtoSortBy`** no longer include `"duration"` or `"cost"` values; update any code passing those sort values to use `"createdAt"` instead. |
| 5 | +- **`UserMessage.metadata`** — now uses `UserMessageMetadata`, which declares `wordLevelConfidence`, `type`, and `source`. Replace arbitrary-key reads and object literals with the supported fields. |
| 6 | + |
| 7 | +### Added |
| 8 | +- **`OpenAiReasoner`**, **`OpenAiSpeaker`**, **`TrafficAllocation`** family, **`SquadVersion`** family, **`LatencyEvaluationResult`** / **`LatencyExpectation`** family, **`OrgLimitsResponseDto`**, **`FilePaginatedResponse`**, **`TranscriptWordConfidence`**, **`TransientTwilioPhoneNumber`**, and many more new exported types. |
| 9 | +- **`ForbiddenError` (403)** is now thrown as a typed `Vapi.ForbiddenError` by all `EvalClient` methods instead of a generic `VapiError`. |
| 10 | + |
| 11 | +### Changed |
| 12 | +- **`EvalControllerGetRunsPaginatedRequest`** gains a new optional `search` field for case-insensitive name filtering; field ordering has also been adjusted (no functional impact for named-property callers). |
| 13 | + |
| 14 | +### Breaking Changes |
| 15 | +- **`Call.phoneNumber`** — type changed from `ImportTwilioPhoneNumberDto` to `TransientTwilioPhoneNumber`; update any code that constructs or reads this field to use `TransientTwilioPhoneNumber`. |
| 16 | +- **`AudioFormat.format`** — type changed from `Record<string, unknown>` to `AudioFormatFormat`. Set it to `"pcm_s16le"` or `"mulaw"`, or use the corresponding `Vapi.AudioFormatFormat` constant. |
| 17 | +- **`ListFilesRequest.purpose`** — changed from a required `string` to an optional `ListFilesRequestPurpose`. Use `"assistant"`, `"composer-attachment"`, or `"knowledge-base-v2"`, or a corresponding `Vapi.ListFilesRequestPurpose` constant. Validate or narrow general string variables before passing them. Both the filter and the request object can be omitted. |
| 18 | + |
| 19 | +### Added |
| 20 | +- **`AssemblyAiTranscriberSpeechModel.Universal36Pro`** — new `universal-3-6-pro` speech model for AssemblyAI, now the most accurate voice-agent model; `agentContextAutoUpdateEnabled` field added to `AssemblyAiTranscriber` to auto-send assistant speech as context each turn. |
| 21 | +- **`DeepgramVoiceModel.Flux`** — new Flux model for Deepgram voices, with new `speed` and `expressivity` fields on `DeepgramVoice`. |
| 22 | +- **`AnthropicBedrockModel.fallbackModels`** — optional same-provider Bedrock fallback model list tried when the primary model fails. |
| 23 | +- **`Call.squadVersion`** and **`AssistantActivation.squadVersion`** — new optional fields for pinning or recording the squad version governing a call. |
| 24 | +- **`ToolsClient.update`** — now throws a typed `ConflictError` on HTTP 409 responses instead of a generic `VapiError`. |
| 25 | + |
| 26 | +### Added |
| 27 | +- **`client.trafficAllocations`** — new `TrafficAllocationsClient` (beta) for managing assistant traffic splits, with methods to list allocations paginated, create a new allocation, retrieve the latest allocation, and fetch a single allocation by id. |
| 28 | +- **`ForbiddenError`** — new error class thrown (HTTP 403) when a traffic allocation endpoint is called by an organization without beta access. |
| 29 | +- **`modelDeprecations`** — new optional read-only field on `Assistant`, `AssistantDraft`, and `AssistantVersion` surfaces model deprecation notices. Each notice includes `replacementStatus`; `replacementModel` is optional. Check that the status is `"available"` and a replacement model is present before using a recommendation. |
| 30 | +- **`CreateCallDto.squadVersion`** — new optional field for pinning a specific squad version when creating a call via a direct `squadId`. |
| 31 | +- **New enum types and values** — `ListFilesRequestPurpose`, `AnthropicBedrockModelFallbackModelsItem`, `AudioFormatFormat`, `CreateTrafficAllocationDtoAllocationIntent`, and additional language codes on `AssemblyAiTranscriberLanguageCodesItem`. |
| 32 | + |
| 33 | +### Added |
| 34 | +- **`LatencyExpectation`** and related types (`LatencyExpectationMetric`, `LatencyExpectationAggregation`) — define per-turn latency SLA ceilings for voice simulations; attach via the new `latencyExpectations` field on `CreateScenarioDto`. |
| 35 | +- **`ClientInboundMessageAppendContext`** and `AppendContext` variant on `ClientInboundMessageMessage` — inject commentary, thinking, or instructions into a live call in real time. |
| 36 | +- **Traffic allocation types** (`CreateTrafficAllocationTargetDto`, `GetTrafficAllocationLatestDto`, `GetTrafficAllocationPaginatedDto`) — support assistant-version A/B traffic splitting. |
| 37 | +- **`OpenAiReasoner`** and **`OpenAiModelServiceTier`** — configure GPT-Live delegated reasoning and fast/auto/default service tiers; new model values `gpt-6-luna` and `gpt-live-1` added to `OpenAiModelModel`. |
| 38 | +- **New voice and model enum values** across `DeepgramVoiceId`, `FallbackDeepgramVoiceId` (36 voices each), `FallbackOpenAiVoiceIdEnum` (17 voices), `ElevenLabsVoiceModel`/`FallbackElevenLabsVoiceModel` (`eleven_v4_turbo`), `RimeAiVoiceModel` (`coda`, `mistv3`), and `DeepSeekModelModel` (`deepseek-flash`, `deepseek-flash-thinking`). |
| 39 | +- See full changelog for all changes |
| 40 | + |
| 41 | +### Added |
| 42 | +- **`TranscriptWordConfidence`** — new interface exposing per-word timing, confidence score, punctuation, language, and speaker attribution from the transcriber. |
| 43 | +- **`UserMessageMetadata`** and **`UserMessageConfidenceSource`** — new types that attach word-level confidence metadata and confidence source (`"provider"` or `"derived"`) to user messages. |
| 44 | +- **`TransientTwilioPhoneNumber`** — new interface (plus `TransientTwilioPhoneNumberFallbackDestination` and `TransientTwilioPhoneNumberHooksItem`) for configuring a Twilio phone number transiently without persisting it in Vapi. |
| 45 | +- **New enum values** added: `HipaaSpecial` on `UpdateUserRoleDtoRoleZero`, `SquadVersion` on `VersionPinReferenceSourceType`, and `Gpt6Luna` on `WorkflowOpenAiModelModel`. |
| 46 | + |
1 | 47 | ## [2.0.1] - 2026-08-26 |
2 | 48 |
|
3 | 49 | ## 2.0.0 - 2026-06-24 |
|
79 | 125 | * Several Fallback voice and transcriber interfaces have had their required `provider` field removed (e.g. `FallbackGladiaTranscriber`, `FallbackOpenAiVoice`, `FallbackRimeAiVoice`, and others). Consumers constructing these objects directly must remove the `provider` property from their code. |
80 | 126 | * New optional fields have been added across multiple interfaces: `temperature` and `speakingRate` on `FallbackInworldVoice`, `language` on `FallbackRimeAiVoice`, `subtitleType` on `FallbackMinimaxVoice`, and `pronunciationDictionary` on `FallbackVapiVoice`. The Inworld voice ID set has been expanded with new English voices and support for Russian, Hindi, Hebrew, and Arabic languages. The RimeAI voice ID enum has been updated with a refreshed curated list. |
81 | 127 | * The `FunctionTool`, `FunctionToolWithToolCall`, and `FunctionCallHookAction` interfaces now support two new optional fields: `variableExtractionPlan` (for extracting variables from tool responses) and `parameters` (for static key-value pairs merged into the request body with Liquid template support). Additionally, the required `type` discriminant field has been removed from several `ProviderDetails` interfaces (`FunctionToolProviderDetails`, `GhlToolProviderDetails`, `GoHighLevelCalendarAvailabilityToolProviderDetails`, `GoHighLevelCalendarEventCreateToolProviderDetails`, `GoHighLevelContactCreateToolProviderDetails`), making those types more flexible. |
82 | | - |
|
0 commit comments