|
1 | 1 | ## [3.0.0] - 2026-10-08 |
2 | 2 | ### Breaking Changes |
3 | | -- **`ToolPinnedConflictResponseDtoError`** has been removed entirely; update any imports or references to this type. The `error` field has also been removed from **`ToolPinnedConflictResponseDto`** — callers reading `dto.error` must be updated to use `dto.message` instead. |
| 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 | 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. |
5 | 6 |
|
6 | 7 | ### Added |
7 | | -- **`simulationControllerGetConcurrency()`** on `SimulationsClient` — returns the organization's simulation concurrency limit, active simulation count, and remaining capacity as `SimulationConcurrencyResponse`. |
8 | 8 | - **`OpenAiReasoner`**, **`OpenAiSpeaker`**, **`TrafficAllocation`** family, **`SquadVersion`** family, **`LatencyEvaluationResult`** / **`LatencyExpectation`** family, **`OrgLimitsResponseDto`**, **`FilePaginatedResponse`**, **`TranscriptWordConfidence`**, **`TransientTwilioPhoneNumber`**, and many more new exported types. |
9 | 9 | - **`ForbiddenError` (403)** is now thrown as a typed `Vapi.ForbiddenError` by all `EvalClient` methods instead of a generic `VapiError`. |
10 | 10 |
|
|
13 | 13 |
|
14 | 14 | ### Breaking Changes |
15 | 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`; replace raw object literals with the new typed enum value. |
17 | | -- **`ListFilesRequest.purpose`** — changed from a required `string` to an optional `ListFilesRequestPurpose` enum; callers that passed a plain string must switch to the enum, and the parameter may now be omitted entirely. |
| 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 | 18 |
|
19 | 19 | ### Added |
20 | 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. |
|
26 | 26 | ### Added |
27 | 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 | 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 with replacement recommendations. |
| 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 | 30 | - **`CreateCallDto.squadVersion`** — new optional field for pinning a specific squad version when creating a call via a direct `squadId`. |
31 | 31 | - **New enum types and values** — `ListFilesRequestPurpose`, `AnthropicBedrockModelFallbackModelsItem`, `AudioFormatFormat`, `CreateTrafficAllocationDtoAllocationIntent`, and additional language codes on `AssemblyAiTranscriberLanguageCodesItem`. |
32 | 32 |
|
|
125 | 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. |
126 | 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. |
127 | 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. |
128 | | - |
0 commit comments