Skip to content

Commit ce0b348

Browse files
authored
Merge pull request #49 from VapiAI/fern-bot/2026-09-10_21-49-32_753
feat!: remove ToolPinnedConflictResponseDtoError and enum values from sort types
2 parents dfa08b8 + 08ad5fb commit ce0b348

201 files changed

Lines changed: 3971 additions & 678 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.fern/metadata.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"cliVersion": "5.119.2",
2+
"cliVersion": "5.149.0",
33
"generatorName": "fernapi/fern-typescript-sdk",
44
"generatorVersion": "3.63.0",
55
"generatorConfig": {
@@ -11,10 +11,10 @@
1111
"omitUndefined": true,
1212
"enableInlineTypes": false
1313
},
14-
"originGitCommit": "ca6a646c295c707d5b6dff2fceab26c86c9137d5",
14+
"originGitCommit": "d60758e7438e5ed4f06365c77535f6aedb9f0eb6",
1515
"originGitCommitIsDirty": true,
1616
"invokedBy": "ci",
1717
"requestedVersion": "AUTO",
1818
"ciProvider": "unknown",
19-
"sdkVersion": "2.0.1"
19+
"sdkVersion": "3.0.0"
2020
}

‎.fern/replay.lock‎

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎changelog.md‎

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,49 @@
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+
147
## [2.0.1] - 2026-08-26
248

349
## 2.0.0 - 2026-06-24
@@ -79,4 +125,3 @@
79125
* 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.
80126
* 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.
81127
* 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-

‎package.json‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vapi-ai/server-sdk",
3-
"version": "2.0.1",
3+
"version": "3.0.0",
44
"private": false,
55
"repository": {
66
"type": "git",
@@ -88,6 +88,17 @@
8888
},
8989
"default": "./dist/cjs/api/resources/sessions/exports.js"
9090
},
91+
"./trafficAllocations": {
92+
"import": {
93+
"types": "./dist/esm/api/resources/trafficAllocations/exports.d.mts",
94+
"default": "./dist/esm/api/resources/trafficAllocations/exports.mjs"
95+
},
96+
"require": {
97+
"types": "./dist/cjs/api/resources/trafficAllocations/exports.d.ts",
98+
"default": "./dist/cjs/api/resources/trafficAllocations/exports.js"
99+
},
100+
"default": "./dist/cjs/api/resources/trafficAllocations/exports.js"
101+
},
91102
"./phoneNumbers": {
92103
"import": {
93104
"types": "./dist/esm/api/resources/phoneNumbers/exports.d.mts",

‎pnpm-lock.yaml‎

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)