Skip to content

Commit ef7dfcc

Browse files
[fern-autoversion] feat!: remove error discriminator fields and deprecated type exports
Remove required `error` fields from conflict response DTOs, delete several exported types, and rename `StructuredOutputControllerRunResponseZero` to `StructuredOutputControllerRunResponseOne`. Also adds `Ghl` and `Code` variants to tool union types, typed `ConflictError` (409) handling to `AssistantsClient.update` and all `StructuredOutputsClient` mutating methods, and new `reasoningEffort` fields on Anthropic models. Key changes: - Remove `AssistantPinnedConflictResponseDto.error` and delete `AssistantPinnedConflictResponseDtoError` type - Remove `TrafficAllocationStaleConflictResponseDto.error` and delete `TrafficAllocationStaleConflictResponseDtoError` type - Delete exported types: `CreateTrieveCredentialDto`, `CreateTrieveKnowledgeBaseDto`, `TrieveKnowledgeBase`, `TrieveKnowledgeBaseImport`, `UpdateTrieveKnowledgeBaseDto`, `GhlToolType`, `UpdateCodeToolDtoType` - Rename `StructuredOutputControllerRunResponseZero` → `StructuredOutputControllerRunResponseOne` - Add `Ghl` variant to `CreateToolsResponse`, `DeleteToolsResponse`, `GetToolsResponse`, `ListToolsResponseItem`, `UpdateToolsResponse`; add `Code` variant to `CreateToolsRequest` and `UpdateToolsRequestBody` - Add typed `ConflictError` (409) throws to `AssistantsClient.update` and `StructuredOutputsClient` create/remove/update methods - Add optional `reasoningEffort` field to `AnthropicModel` and `AnthropicBedrockModel` 🌿 Generated with Fern
1 parent 41ac018 commit ef7dfcc

5 files changed

Lines changed: 13 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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## [4.0.0] - 2026-10-14
2+
### Added
3+
- **`AnthropicModelReasoningEffort`** — new enum (`none`, `low`, `medium`, `high`, `xhigh`, `max`) for controlling adaptive thinking on `claude-haiku-5-5`; `ClaudeHaiku55` added to all Anthropic model enums.
4+
- **`Gemini38Flash`** — new `gemini-3.8-flash` model value added to `GoogleModelModel`, `EvalGoogleModelModel`, `WorkflowGoogleModelModel`, `GoogleTranscriberModel`, `FallbackGoogleTranscriberModel`, and `KnowledgeBaseModel`.
5+
- **`Sonic36` and `Sonic3620260827`** — new Cartesia Sonic 3.6 model values added to `CartesiaVoiceModel` and `FallbackCartesiaVoiceModel`; `Or` (Odia) and `Ur` (Urdu) language codes added to `CartesiaVoiceLanguage` and `FallbackCartesiaVoiceLanguage`.
6+
- **`AssistantManagedConflictResponseDto`**, **`AssistantManagedConflictResponseDtoError`**, and **`AssistantManagedVapiAgentsDto`** — new types representing HTTP 409 conflict responses when a Vapi Agents-managed assistant rejects a write operation.
7+
- **`baselineVersion`** — new optional field on all tool interfaces (e.g. `FunctionTool`, `ApiRequestTool`, `McpTool`, etc.) exposing the display-only baseline label before a version is stored; `serverMessage.requestSucceeded`, `serverMessage.requestFailed`, and `pipeline.denoiserFailed` added to `JsonQueryOnEventsTableOn`.
8+
19
## [3.0.0] - 2026-10-08
210
### Breaking Changes
311
- **`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)