Skip to content

Commit 08ad5fb

Browse files
committed
docs: correct 3.0.0 SDK migration and release notes
1 parent c62dd1f commit 08ad5fb

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

‎changelog.md‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
## [3.0.0] - 2026-10-08
22
### 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.
44
- **`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.
56

67
### Added
7-
- **`simulationControllerGetConcurrency()`** on `SimulationsClient` — returns the organization's simulation concurrency limit, active simulation count, and remaining capacity as `SimulationConcurrencyResponse`.
88
- **`OpenAiReasoner`**, **`OpenAiSpeaker`**, **`TrafficAllocation`** family, **`SquadVersion`** family, **`LatencyEvaluationResult`** / **`LatencyExpectation`** family, **`OrgLimitsResponseDto`**, **`FilePaginatedResponse`**, **`TranscriptWordConfidence`**, **`TransientTwilioPhoneNumber`**, and many more new exported types.
99
- **`ForbiddenError` (403)** is now thrown as a typed `Vapi.ForbiddenError` by all `EvalClient` methods instead of a generic `VapiError`.
1010

@@ -13,8 +13,8 @@
1313

1414
### Breaking Changes
1515
- **`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.
1818

1919
### Added
2020
- **`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,7 +26,7 @@
2626
### Added
2727
- **`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.
2828
- **`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.
3030
- **`CreateCallDto.squadVersion`** — new optional field for pinning a specific squad version when creating a call via a direct `squadId`.
3131
- **New enum types and values** — `ListFilesRequestPurpose`, `AnthropicBedrockModelFallbackModelsItem`, `AudioFormatFormat`, `CreateTrafficAllocationDtoAllocationIntent`, and additional language codes on `AssemblyAiTranscriberLanguageCodesItem`.
3232

@@ -125,4 +125,3 @@
125125
* 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.
126126
* 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.
127127
* 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

Comments
 (0)