Skip to content

Commit 7350d09

Browse files
[fern-autoversion] feat!: rename StructuredOutputControllerRunResponseZero and remove Trieve/GhlToolType exports
Several exported types have been renamed or removed, constituting breaking changes for existing consumers. The union type StructuredOutputControllerRunResponse now references StructuredOutputControllerRunResponseOne instead of the old StructuredOutputControllerRunResponseZero. Additionally, Trieve-related types (CreateTrieveCredentialDto, CreateTrieveKnowledgeBaseDto, TrieveKnowledgeBase, TrieveKnowledgeBaseImport, UpdateTrieveKnowledgeBaseDto), GhlToolType, UpdateCodeToolDtoType, and their associated fields have been removed from the public API surface. New tool union variants (Code for request/update, Ghl for response types) have been added to the tools discriminated unions. Key changes: - Renamed exported interface `StructuredOutputControllerRunResponseZero` → `StructuredOutputControllerRunResponseOne`; update all imports and type references - Removed exported types `GhlToolType`, `UpdateCodeToolDtoType`, `CreateTrieveCredentialDto`, `CreateTrieveKnowledgeBaseDto`, `TrieveKnowledgeBase`, `TrieveKnowledgeBaseImport`, and `UpdateTrieveKnowledgeBaseDto` - Removed `type` field from `GhlTool` and `UpdateCodeToolDto` interfaces (discriminant now lives on the wrapper union variant) - Added `Code` variant to `CreateToolsRequest` and `UpdateToolsRequestBody` unions, and `Ghl` variant to `CreateToolsResponse`, `DeleteToolsResponse`, `GetToolsResponse`, `ListToolsResponseItem`, and `UpdateToolsResponse` unions 🌿 Generated with Fern
1 parent b02b695 commit 7350d09

5 files changed

Lines changed: 16 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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## [4.0.0] - 2026-10-09
2+
### Breaking Changes
3+
- **`StructuredOutputControllerRunResponseZero`** has been renamed to **`StructuredOutputControllerRunResponseOne`**; update all imports and references to use the new name.
4+
- **`GhlToolType`** and **`UpdateCodeToolDtoType`** enums have been removed; the discriminant `type` field is now carried by the enclosing union variant (`Ghl` / `Code`) rather than on the base interface.
5+
- **`GhlTool.type`** and **`UpdateCodeToolDto.type`** fields have been removed from those interfaces; remove any code that reads or sets these fields directly.
6+
- **`CreateTrieveCredentialDto`**, **`CreateTrieveKnowledgeBaseDto`**, **`TrieveKnowledgeBase`**, **`TrieveKnowledgeBaseImport`**, and **`UpdateTrieveKnowledgeBaseDto`** have been removed from the SDK; remove any imports or usages of these types.
7+
8+
### Added
9+
- **`CreateToolsRequest.Code`** and **`UpdateToolsRequestBody.Code`** — new `"code"` discriminated union variants (backed by `CreateCodeToolDto` / `UpdateCodeToolDto`) for creating and updating code tools.
10+
- **`CreateToolsResponse.Ghl`**, **`DeleteToolsResponse.Ghl`**, **`GetToolsResponse.Ghl`**, **`ListToolsResponseItem.Ghl`**, and **`UpdateToolsResponse.Ghl`** — new `"ghl"` discriminated union variants (backed by `GhlTool`) in all tool response unions.
11+
112
## [3.0.0] - 2026-10-08
213
### Breaking Changes
314
- **`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)