Skip to content

Commit 230b20b

Browse files
[fern-autoversion] feat!: remove Trieve types, GhlToolType, and rename StructuredOutputControllerRunResponseZero
Remove several exported types and a required field, which breaks existing callers. Simultaneously add new tool union variants and reasoning effort fields for Anthropic models. Key changes: - Remove exported types: `CreateTrieveCredentialDto`, `CreateTrieveKnowledgeBaseDto`, `TrieveKnowledgeBase`, `TrieveKnowledgeBaseImport`, `UpdateTrieveKnowledgeBaseDto`, `GhlToolType`, `UpdateCodeToolDtoType` - Remove required `type` field from `GhlTool` and optional `type` field from `UpdateCodeToolDto` - Rename `StructuredOutputControllerRunResponseZero` → `StructuredOutputControllerRunResponseOne` - Add `CreateToolsRequest.Code` and `UpdateToolsRequestBody.Code` union variants for code tools - Add `CreateToolsResponse.Ghl`, `DeleteToolsResponse.Ghl`, `GetToolsResponse.Ghl`, `ListToolsResponseItem.Ghl`, `UpdateToolsResponse.Ghl` union variants for GHL tools - Add optional `reasoningEffort` field to `AnthropicModel` and `AnthropicBedrockModel` for claude-haiku-5-5 adaptive thinking - Update `maxTokens` JSDoc across all model types to mention claude-haiku-5-5 uncapped behavior 🌿 Generated with Fern
1 parent 5a2c117 commit 230b20b

5 files changed

Lines changed: 17 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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## [4.0.0] - 2026-10-11
2+
### Breaking Changes
3+
- **`CreateTrieveCredentialDto`**, **`CreateTrieveKnowledgeBaseDto`**, **`TrieveKnowledgeBase`**, **`TrieveKnowledgeBaseImport`**, and **`UpdateTrieveKnowledgeBaseDto`** have been removed from the SDK; remove any imports or references to these types.
4+
- **`GhlToolType`** and **`UpdateCodeToolDtoType`** enums have been removed; the `type` discriminator fields they typed on `GhlTool` and `UpdateCodeToolDto` have also been removed — update any code that reads or sets these fields.
5+
- **`StructuredOutputControllerRunResponseZero`** has been renamed to **`StructuredOutputControllerRunResponseOne`**; update all imports and type references accordingly.
6+
7+
### Added
8+
- **`CreateToolsRequest.Code`** and **`UpdateToolsRequestBody.Code`** — new `"code"` discriminated union variants for creating and updating code tools.
9+
- **`CreateToolsResponse.Ghl`**, **`DeleteToolsResponse.Ghl`**, **`GetToolsResponse.Ghl`**, **`ListToolsResponseItem.Ghl`**, and **`UpdateToolsResponse.Ghl`** — new `"ghl"` discriminated union variants on all tool response types.
10+
- **`AnthropicModel.reasoningEffort`** and **`AnthropicBedrockModel.reasoningEffort`** — new optional field to configure adaptive thinking effort (`none`, `low` through `max`) for `claude-haiku-5-5`; unset defaults to `none`.
11+
- **`maxTokens` uncapped behavior** extended to `claude-haiku-5-5` across all model types — if unset, the model sends its full 128,000-token maximum.
12+
113
## [3.0.0] - 2026-10-08
214
### Breaking Changes
315
- **`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)