Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"cliVersion": "5.119.2",
"cliVersion": "5.130.0",
"generatorName": "fernapi/fern-typescript-sdk",
"generatorVersion": "3.63.0",
"generatorConfig": {
Expand All @@ -11,10 +11,10 @@
"omitUndefined": true,
"enableInlineTypes": false
},
"originGitCommit": "ca6a646c295c707d5b6dff2fceab26c86c9137d5",
"originGitCommit": "b12a629adc457f8fb95ba5a113102ea70b56df9e",
"originGitCommitIsDirty": true,
"invokedBy": "ci",
"requestedVersion": "AUTO",
"ciProvider": "unknown",
"sdkVersion": "2.0.1"
"sdkVersion": "3.0.0"
}
8 changes: 7 additions & 1 deletion .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## [3.0.0] - 2026-09-21
### Added
- **`OpenAiSpeaker`**, **`OpenAiReasoner`**, and **`OpenAiModelServiceTier`** — new types for GPT-Live configuration, exposed as optional fields on `OpenAiModel`.
- **`squadVersion`** — new optional field on `CreateCallDto`, `Call`, `CreateOutboundCallDto`, and `CreateWebCallDto` to pin a specific squad version for a call.
- **`SquadVersion`**, **`SquadVersionPaginatedResponse`**, and **`SquadVersionPaginatedMetadata`** — new types supporting squad version history with labels, config hashes, pagination metadata, and member snapshots.
- **`OrgLimitsResponseDto`**, **`OrgConcurrencyLimitsDto`**, and **`OrgApiLimitsDto`** — new types exposing org-level concurrency and API rate-limit information.
- **`modelDeprecations`** — new optional `ModelDeprecationNotice[]` field on `Assistant`, `AssistantDraft`, `AssistantVersion`, and `Squad` responses, surfacing deprecation and retirement info for models in use.
- **`ToolWriteConflictResponseDto`** and **`ForbiddenError`** — new error response types for tool write conflicts (HTTP 409) and forbidden access (HTTP 403).
- **New enum values** added across several types, including `CallStartSquadVersionErrorValidation` in ended-reason enums, `SquadVersion` in `VersionPinReferenceSourceType`, `HipaaSpecial` in `UpdateUserRoleDtoRoleZero`, new `RimeAiVoiceModel` values (`coda`, `mistv3`), and expanded `AssemblyAiTranscriberLanguageCodesItem` language codes.

## [2.0.1] - 2026-08-26

## 2.0.0 - 2026-06-24
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vapi-ai/server-sdk",
"version": "2.0.1",
"version": "3.0.0",
"private": false,
"repository": {
"type": "git",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/BaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export function normalizeClientOptions<T extends BaseClientOptions = BaseClientO
{
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
"X-Fern-SDK-Version": "2.0.1",
"User-Agent": "@vapi-ai/server-sdk/2.0.1",
"X-Fern-SDK-Version": "3.0.0",
"User-Agent": "@vapi-ai/server-sdk/3.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
21 changes: 21 additions & 0 deletions src/api/errors/ForbiddenError.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// This file was auto-generated by Fern from our API Definition.

import type * as core from "../../core/index.js";
import * as errors from "../../errors/index.js";

export class ForbiddenError extends errors.VapiError {
constructor(body?: unknown, rawResponse?: core.RawResponse) {
super({
message: "ForbiddenError",
statusCode: 403,
body: body,
rawResponse: rawResponse,
});
Object.setPrototypeOf(this, new.target.prototype);
if (Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor);
}

this.name = this.constructor.name;
}
}
1 change: 1 addition & 0 deletions src/api/errors/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export * from "./BadRequestError.js";
export * from "./ConflictError.js";
export * from "./ForbiddenError.js";
export * from "./InternalServerError.js";
export * from "./NotFoundError.js";
export * from "./PaymentRequiredError.js";
Expand Down
5 changes: 5 additions & 0 deletions src/api/resources/calls/client/requests/CreateCallDto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ export interface CreateCallDto {
* direct `assistantId`. Omit to follow the latest version.
*/
assistantVersion?: string | null;
/**
* This is the squad version to use for this call. Supported only with
* direct `squadId`. Omit to follow the latest version.
*/
squadVersion?: string | null;
/** This is the transport of the call. */
transport?: Vapi.CreateCallDtoTransport;
/**
Expand Down
Loading