diff --git a/reference.md b/reference.md
index 89d25d7..ea7c0ce 100644
--- a/reference.md
+++ b/reference.md
@@ -250,6 +250,517 @@ await client.calls.update("id");
+## Chats
+
+client.chats.list({ ...params }) -> Vapi.ChatPaginatedResponse
+
+-
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.chats.list();
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Vapi.ChatsListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Chats.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.chats.create({ ...params }) -> Vapi.ChatsCreateResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a new chat. Requires at least one of: assistantId/assistant, sessionId, or previousChatId. Note: sessionId and previousChatId are mutually exclusive.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.chats.create({
+ input: "input",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Vapi.CreateChatDto`
+
+
+
+
+
+-
+
+**requestOptions:** `Chats.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.chats.get(id) -> Vapi.Chat
+
+-
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.chats.get("id");
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**id:** `string`
+
+
+
+
+
+-
+
+**requestOptions:** `Chats.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.chats.delete(id) -> Vapi.Chat
+
+-
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.chats.delete("id");
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**id:** `string`
+
+
+
+
+
+-
+
+**requestOptions:** `Chats.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.chats.createResponse({ ...params }) -> Vapi.ChatsCreateResponseResponse
+
+-
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.chats.createResponse({
+ input: "input",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Vapi.OpenAiResponsesRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Chats.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Sessions
+
+client.sessions.list({ ...params }) -> Vapi.SessionPaginatedResponse
+
+-
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.sessions.list();
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Vapi.SessionsListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Sessions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.sessions.create({ ...params }) -> Vapi.Session
+
+-
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.sessions.create();
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Vapi.CreateSessionDto`
+
+
+
+
+
+-
+
+**requestOptions:** `Sessions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.sessions.get(id) -> Vapi.Session
+
+-
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.sessions.get("id");
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**id:** `string`
+
+
+
+
+
+-
+
+**requestOptions:** `Sessions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.sessions.delete(id) -> Vapi.Session
+
+-
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.sessions.delete("id");
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**id:** `string`
+
+
+
+
+
+-
+
+**requestOptions:** `Sessions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.sessions.update(id, { ...params }) -> Vapi.Session
+
+-
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.sessions.update("id");
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**id:** `string`
+
+
+
+
+
+-
+
+**request:** `Vapi.UpdateSessionDto`
+
+
+
+
+
+-
+
+**requestOptions:** `Sessions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
## Assistants
client.assistants.list({ ...params }) -> Vapi.Assistant[]
diff --git a/src/Client.ts b/src/Client.ts
index c5a7e2b..6317e68 100644
--- a/src/Client.ts
+++ b/src/Client.ts
@@ -5,6 +5,8 @@
import * as environments from "./environments";
import * as core from "./core";
import { Calls } from "./api/resources/calls/client/Client";
+import { Chats } from "./api/resources/chats/client/Client";
+import { Sessions } from "./api/resources/sessions/client/Client";
import { Assistants } from "./api/resources/assistants/client/Client";
import { PhoneNumbers } from "./api/resources/phoneNumbers/client/Client";
import { Tools } from "./api/resources/tools/client/Client";
@@ -41,6 +43,8 @@ export declare namespace VapiClient {
export class VapiClient {
protected _calls: Calls | undefined;
+ protected _chats: Chats | undefined;
+ protected _sessions: Sessions | undefined;
protected _assistants: Assistants | undefined;
protected _phoneNumbers: PhoneNumbers | undefined;
protected _tools: Tools | undefined;
@@ -60,6 +64,14 @@ export class VapiClient {
return (this._calls ??= new Calls(this._options));
}
+ public get chats(): Chats {
+ return (this._chats ??= new Chats(this._options));
+ }
+
+ public get sessions(): Sessions {
+ return (this._sessions ??= new Sessions(this._options));
+ }
+
public get assistants(): Assistants {
return (this._assistants ??= new Assistants(this._options));
}
diff --git a/src/api/resources/chats/client/Client.ts b/src/api/resources/chats/client/Client.ts
new file mode 100644
index 0000000..7bf9557
--- /dev/null
+++ b/src/api/resources/chats/client/Client.ts
@@ -0,0 +1,466 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as environments from "../../../../environments";
+import * as core from "../../../../core";
+import * as Vapi from "../../../index";
+import urlJoin from "url-join";
+import * as errors from "../../../../errors/index";
+
+export declare namespace Chats {
+ export interface Options {
+ environment?: core.Supplier;
+ /** Specify a custom URL to connect the client to. */
+ baseUrl?: core.Supplier;
+ token: core.Supplier;
+ fetcher?: core.FetchFunction;
+ }
+
+ export interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
+ timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
+ maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
+ /** Additional headers to include in the request. */
+ headers?: Record;
+ }
+}
+
+export class Chats {
+ constructor(protected readonly _options: Chats.Options) {}
+
+ /**
+ * @param {Vapi.ChatsListRequest} request
+ * @param {Chats.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await client.chats.list()
+ */
+ public list(
+ request: Vapi.ChatsListRequest = {},
+ requestOptions?: Chats.RequestOptions,
+ ): core.HttpResponsePromise {
+ return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
+ }
+
+ private async __list(
+ request: Vapi.ChatsListRequest = {},
+ requestOptions?: Chats.RequestOptions,
+ ): Promise> {
+ const {
+ assistantId,
+ workflowId,
+ sessionId,
+ page,
+ sortOrder,
+ limit,
+ createdAtGt,
+ createdAtLt,
+ createdAtGe,
+ createdAtLe,
+ updatedAtGt,
+ updatedAtLt,
+ updatedAtGe,
+ updatedAtLe,
+ } = request;
+ const _queryParams: Record = {};
+ if (assistantId !== undefined) {
+ _queryParams["assistantId"] = assistantId;
+ }
+
+ if (workflowId !== undefined) {
+ _queryParams["workflowId"] = workflowId;
+ }
+
+ if (sessionId !== undefined) {
+ _queryParams["sessionId"] = sessionId;
+ }
+
+ if (page !== undefined) {
+ _queryParams["page"] = page?.toString() ?? null;
+ }
+
+ if (sortOrder !== undefined) {
+ _queryParams["sortOrder"] = sortOrder;
+ }
+
+ if (limit !== undefined) {
+ _queryParams["limit"] = limit?.toString() ?? null;
+ }
+
+ if (createdAtGt !== undefined) {
+ _queryParams["createdAtGt"] = createdAtGt;
+ }
+
+ if (createdAtLt !== undefined) {
+ _queryParams["createdAtLt"] = createdAtLt;
+ }
+
+ if (createdAtGe !== undefined) {
+ _queryParams["createdAtGe"] = createdAtGe;
+ }
+
+ if (createdAtLe !== undefined) {
+ _queryParams["createdAtLe"] = createdAtLe;
+ }
+
+ if (updatedAtGt !== undefined) {
+ _queryParams["updatedAtGt"] = updatedAtGt;
+ }
+
+ if (updatedAtLt !== undefined) {
+ _queryParams["updatedAtLt"] = updatedAtLt;
+ }
+
+ if (updatedAtGe !== undefined) {
+ _queryParams["updatedAtGe"] = updatedAtGe;
+ }
+
+ if (updatedAtLe !== undefined) {
+ _queryParams["updatedAtLe"] = updatedAtLe;
+ }
+
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.baseUrl)) ??
+ (await core.Supplier.get(this._options.environment)) ??
+ environments.VapiEnvironment.Default,
+ "chat",
+ ),
+ method: "GET",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "@vapi-ai/server-sdk",
+ "X-Fern-SDK-Version": "0.9.1",
+ "User-Agent": "@vapi-ai/server-sdk/0.9.1",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ ...requestOptions?.headers,
+ },
+ contentType: "application/json",
+ queryParameters: _queryParams,
+ requestType: "json",
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
+ });
+ if (_response.ok) {
+ return { data: _response.body as Vapi.ChatPaginatedResponse, rawResponse: _response.rawResponse };
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ rawResponse: _response.rawResponse,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ rawResponse: _response.rawResponse,
+ });
+ case "timeout":
+ throw new errors.VapiTimeoutError("Timeout exceeded when calling GET /chat.");
+ case "unknown":
+ throw new errors.VapiError({
+ message: _response.error.errorMessage,
+ rawResponse: _response.rawResponse,
+ });
+ }
+ }
+
+ /**
+ * Creates a new chat. Requires at least one of: assistantId/assistant, sessionId, or previousChatId. Note: sessionId and previousChatId are mutually exclusive.
+ *
+ * @param {Vapi.CreateChatDto} request
+ * @param {Chats.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await client.chats.create({
+ * input: "input"
+ * })
+ */
+ public create(
+ request: Vapi.CreateChatDto,
+ requestOptions?: Chats.RequestOptions,
+ ): core.HttpResponsePromise {
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
+ }
+
+ private async __create(
+ request: Vapi.CreateChatDto,
+ requestOptions?: Chats.RequestOptions,
+ ): Promise> {
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.baseUrl)) ??
+ (await core.Supplier.get(this._options.environment)) ??
+ environments.VapiEnvironment.Default,
+ "chat",
+ ),
+ method: "POST",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "@vapi-ai/server-sdk",
+ "X-Fern-SDK-Version": "0.9.1",
+ "User-Agent": "@vapi-ai/server-sdk/0.9.1",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ ...requestOptions?.headers,
+ },
+ contentType: "application/json",
+ requestType: "json",
+ body: request,
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
+ });
+ if (_response.ok) {
+ return { data: _response.body as Vapi.ChatsCreateResponse, rawResponse: _response.rawResponse };
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ rawResponse: _response.rawResponse,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ rawResponse: _response.rawResponse,
+ });
+ case "timeout":
+ throw new errors.VapiTimeoutError("Timeout exceeded when calling POST /chat.");
+ case "unknown":
+ throw new errors.VapiError({
+ message: _response.error.errorMessage,
+ rawResponse: _response.rawResponse,
+ });
+ }
+ }
+
+ /**
+ * @param {string} id
+ * @param {Chats.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await client.chats.get("id")
+ */
+ public get(id: string, requestOptions?: Chats.RequestOptions): core.HttpResponsePromise {
+ return core.HttpResponsePromise.fromPromise(this.__get(id, requestOptions));
+ }
+
+ private async __get(id: string, requestOptions?: Chats.RequestOptions): Promise> {
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.baseUrl)) ??
+ (await core.Supplier.get(this._options.environment)) ??
+ environments.VapiEnvironment.Default,
+ `chat/${encodeURIComponent(id)}`,
+ ),
+ method: "GET",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "@vapi-ai/server-sdk",
+ "X-Fern-SDK-Version": "0.9.1",
+ "User-Agent": "@vapi-ai/server-sdk/0.9.1",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ ...requestOptions?.headers,
+ },
+ contentType: "application/json",
+ requestType: "json",
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
+ });
+ if (_response.ok) {
+ return { data: _response.body as Vapi.Chat, rawResponse: _response.rawResponse };
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ rawResponse: _response.rawResponse,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ rawResponse: _response.rawResponse,
+ });
+ case "timeout":
+ throw new errors.VapiTimeoutError("Timeout exceeded when calling GET /chat/{id}.");
+ case "unknown":
+ throw new errors.VapiError({
+ message: _response.error.errorMessage,
+ rawResponse: _response.rawResponse,
+ });
+ }
+ }
+
+ /**
+ * @param {string} id
+ * @param {Chats.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await client.chats.delete("id")
+ */
+ public delete(id: string, requestOptions?: Chats.RequestOptions): core.HttpResponsePromise {
+ return core.HttpResponsePromise.fromPromise(this.__delete(id, requestOptions));
+ }
+
+ private async __delete(
+ id: string,
+ requestOptions?: Chats.RequestOptions,
+ ): Promise> {
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.baseUrl)) ??
+ (await core.Supplier.get(this._options.environment)) ??
+ environments.VapiEnvironment.Default,
+ `chat/${encodeURIComponent(id)}`,
+ ),
+ method: "DELETE",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "@vapi-ai/server-sdk",
+ "X-Fern-SDK-Version": "0.9.1",
+ "User-Agent": "@vapi-ai/server-sdk/0.9.1",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ ...requestOptions?.headers,
+ },
+ contentType: "application/json",
+ requestType: "json",
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
+ });
+ if (_response.ok) {
+ return { data: _response.body as Vapi.Chat, rawResponse: _response.rawResponse };
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ rawResponse: _response.rawResponse,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ rawResponse: _response.rawResponse,
+ });
+ case "timeout":
+ throw new errors.VapiTimeoutError("Timeout exceeded when calling DELETE /chat/{id}.");
+ case "unknown":
+ throw new errors.VapiError({
+ message: _response.error.errorMessage,
+ rawResponse: _response.rawResponse,
+ });
+ }
+ }
+
+ /**
+ * @param {Vapi.OpenAiResponsesRequest} request
+ * @param {Chats.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await client.chats.createResponse({
+ * input: "input"
+ * })
+ */
+ public createResponse(
+ request: Vapi.OpenAiResponsesRequest,
+ requestOptions?: Chats.RequestOptions,
+ ): core.HttpResponsePromise {
+ return core.HttpResponsePromise.fromPromise(this.__createResponse(request, requestOptions));
+ }
+
+ private async __createResponse(
+ request: Vapi.OpenAiResponsesRequest,
+ requestOptions?: Chats.RequestOptions,
+ ): Promise> {
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.baseUrl)) ??
+ (await core.Supplier.get(this._options.environment)) ??
+ environments.VapiEnvironment.Default,
+ "chat/responses",
+ ),
+ method: "POST",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "@vapi-ai/server-sdk",
+ "X-Fern-SDK-Version": "0.9.1",
+ "User-Agent": "@vapi-ai/server-sdk/0.9.1",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ ...requestOptions?.headers,
+ },
+ contentType: "application/json",
+ requestType: "json",
+ body: request,
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
+ });
+ if (_response.ok) {
+ return { data: _response.body as Vapi.ChatsCreateResponseResponse, rawResponse: _response.rawResponse };
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ rawResponse: _response.rawResponse,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ rawResponse: _response.rawResponse,
+ });
+ case "timeout":
+ throw new errors.VapiTimeoutError("Timeout exceeded when calling POST /chat/responses.");
+ case "unknown":
+ throw new errors.VapiError({
+ message: _response.error.errorMessage,
+ rawResponse: _response.rawResponse,
+ });
+ }
+ }
+
+ protected async _getAuthorizationHeader(): Promise {
+ return `Bearer ${await core.Supplier.get(this._options.token)}`;
+ }
+}
diff --git a/src/api/resources/chats/client/index.ts b/src/api/resources/chats/client/index.ts
new file mode 100644
index 0000000..415726b
--- /dev/null
+++ b/src/api/resources/chats/client/index.ts
@@ -0,0 +1 @@
+export * from "./requests";
diff --git a/src/api/resources/chats/client/requests/ChatsListRequest.ts b/src/api/resources/chats/client/requests/ChatsListRequest.ts
new file mode 100644
index 0000000..b3f35b9
--- /dev/null
+++ b/src/api/resources/chats/client/requests/ChatsListRequest.ts
@@ -0,0 +1,68 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as Vapi from "../../../../index";
+
+/**
+ * @example
+ * {}
+ */
+export interface ChatsListRequest {
+ /**
+ * This is the unique identifier for the assistant that will be used for the chat.
+ */
+ assistantId?: string | null;
+ /**
+ * This is the unique identifier for the workflow that will be used for the chat.
+ */
+ workflowId?: string | null;
+ /**
+ * This is the unique identifier for the session that will be used for the chat.
+ */
+ sessionId?: string | null;
+ /**
+ * This is the page number to return. Defaults to 1.
+ */
+ page?: number | null;
+ /**
+ * This is the sort order for pagination. Defaults to 'DESC'.
+ */
+ sortOrder?: Vapi.ChatsListRequestSortOrder | null;
+ /**
+ * This is the maximum number of items to return. Defaults to 100.
+ */
+ limit?: number | null;
+ /**
+ * This will return items where the createdAt is greater than the specified value.
+ */
+ createdAtGt?: string | null;
+ /**
+ * This will return items where the createdAt is less than the specified value.
+ */
+ createdAtLt?: string | null;
+ /**
+ * This will return items where the createdAt is greater than or equal to the specified value.
+ */
+ createdAtGe?: string | null;
+ /**
+ * This will return items where the createdAt is less than or equal to the specified value.
+ */
+ createdAtLe?: string | null;
+ /**
+ * This will return items where the updatedAt is greater than the specified value.
+ */
+ updatedAtGt?: string | null;
+ /**
+ * This will return items where the updatedAt is less than the specified value.
+ */
+ updatedAtLt?: string | null;
+ /**
+ * This will return items where the updatedAt is greater than or equal to the specified value.
+ */
+ updatedAtGe?: string | null;
+ /**
+ * This will return items where the updatedAt is less than or equal to the specified value.
+ */
+ updatedAtLe?: string | null;
+}
diff --git a/src/api/types/CreateChatDto.ts b/src/api/resources/chats/client/requests/CreateChatDto.ts
similarity index 80%
rename from src/api/types/CreateChatDto.ts
rename to src/api/resources/chats/client/requests/CreateChatDto.ts
index 8d8c7b9..3938f5f 100644
--- a/src/api/types/CreateChatDto.ts
+++ b/src/api/resources/chats/client/requests/CreateChatDto.ts
@@ -2,8 +2,14 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Vapi from "../index";
+import * as Vapi from "../../../../index";
+/**
+ * @example
+ * {
+ * input: "input"
+ * }
+ */
export interface CreateChatDto {
/** This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. */
assistantId?: string;
@@ -16,7 +22,11 @@ export interface CreateChatDto {
* Mutually exclusive with previousChatId.
*/
sessionId?: string;
- /** Chat input as a string or an array of messages. When using message array, each message requires a role and content. */
+ /**
+ * This is the input text for the chat.
+ * Can be a string or an array of chat messages.
+ * This field is REQUIRED for chat creation.
+ */
input: Vapi.CreateChatDtoInput;
/**
* This is a flag that determines whether the response should be streamed.
diff --git a/src/api/types/OpenAiResponsesRequest.ts b/src/api/resources/chats/client/requests/OpenAiResponsesRequest.ts
similarity index 79%
rename from src/api/types/OpenAiResponsesRequest.ts
rename to src/api/resources/chats/client/requests/OpenAiResponsesRequest.ts
index 97f8b97..c9171f9 100644
--- a/src/api/types/OpenAiResponsesRequest.ts
+++ b/src/api/resources/chats/client/requests/OpenAiResponsesRequest.ts
@@ -2,8 +2,14 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Vapi from "../index";
+import * as Vapi from "../../../../index";
+/**
+ * @example
+ * {
+ * input: "input"
+ * }
+ */
export interface OpenAiResponsesRequest {
/** This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. */
assistantId?: string;
@@ -16,7 +22,11 @@ export interface OpenAiResponsesRequest {
* Mutually exclusive with previousChatId.
*/
sessionId?: string;
- /** Chat input as a string or an array of messages. When using message array, each message requires a role and content. */
+ /**
+ * This is the input text for the chat.
+ * Can be a string or an array of chat messages.
+ * This field is REQUIRED for chat creation.
+ */
input: Vapi.OpenAiResponsesRequestInput;
/** Whether to stream the response or not. */
stream?: boolean;
diff --git a/src/api/resources/chats/client/requests/index.ts b/src/api/resources/chats/client/requests/index.ts
new file mode 100644
index 0000000..2aad228
--- /dev/null
+++ b/src/api/resources/chats/client/requests/index.ts
@@ -0,0 +1,3 @@
+export { type ChatsListRequest } from "./ChatsListRequest";
+export { type CreateChatDto } from "./CreateChatDto";
+export { type OpenAiResponsesRequest } from "./OpenAiResponsesRequest";
diff --git a/src/api/resources/chats/index.ts b/src/api/resources/chats/index.ts
new file mode 100644
index 0000000..c9240f8
--- /dev/null
+++ b/src/api/resources/chats/index.ts
@@ -0,0 +1,2 @@
+export * from "./types";
+export * from "./client";
diff --git a/src/api/resources/chats/types/ChatsCreateResponse.ts b/src/api/resources/chats/types/ChatsCreateResponse.ts
new file mode 100644
index 0000000..78cfbf2
--- /dev/null
+++ b/src/api/resources/chats/types/ChatsCreateResponse.ts
@@ -0,0 +1,7 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as Vapi from "../../../index";
+
+export type ChatsCreateResponse = Vapi.Chat | Vapi.CreateChatStreamResponse;
diff --git a/src/api/resources/chats/types/ChatsCreateResponseResponse.ts b/src/api/resources/chats/types/ChatsCreateResponseResponse.ts
new file mode 100644
index 0000000..8140e7e
--- /dev/null
+++ b/src/api/resources/chats/types/ChatsCreateResponseResponse.ts
@@ -0,0 +1,12 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as Vapi from "../../../index";
+
+export type ChatsCreateResponseResponse =
+ | Vapi.ResponseObject
+ | Vapi.ResponseTextDeltaEvent
+ | Vapi.ResponseTextDoneEvent
+ | Vapi.ResponseCompletedEvent
+ | Vapi.ResponseErrorEvent;
diff --git a/src/api/resources/chats/types/ChatsListRequestSortOrder.ts b/src/api/resources/chats/types/ChatsListRequestSortOrder.ts
new file mode 100644
index 0000000..b3a6e99
--- /dev/null
+++ b/src/api/resources/chats/types/ChatsListRequestSortOrder.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+export type ChatsListRequestSortOrder = "ASC" | "DESC";
+export const ChatsListRequestSortOrder = {
+ Asc: "ASC",
+ Desc: "DESC",
+} as const;
diff --git a/src/api/resources/chats/types/CreateChatDtoInput.ts b/src/api/resources/chats/types/CreateChatDtoInput.ts
new file mode 100644
index 0000000..12f7a22
--- /dev/null
+++ b/src/api/resources/chats/types/CreateChatDtoInput.ts
@@ -0,0 +1,12 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as Vapi from "../../../index";
+
+/**
+ * This is the input text for the chat.
+ * Can be a string or an array of chat messages.
+ * This field is REQUIRED for chat creation.
+ */
+export type CreateChatDtoInput = string | Vapi.CreateChatDtoInputItem[];
diff --git a/src/api/types/CreateChatDtoInputItem.ts b/src/api/resources/chats/types/CreateChatDtoInputItem.ts
similarity index 85%
rename from src/api/types/CreateChatDtoInputItem.ts
rename to src/api/resources/chats/types/CreateChatDtoInputItem.ts
index ae152ef..f9c7080 100644
--- a/src/api/types/CreateChatDtoInputItem.ts
+++ b/src/api/resources/chats/types/CreateChatDtoInputItem.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Vapi from "../index";
+import * as Vapi from "../../../index";
export type CreateChatDtoInputItem =
| Vapi.SystemMessage
diff --git a/src/api/types/OpenAiResponsesRequestInput.ts b/src/api/resources/chats/types/OpenAiResponsesRequestInput.ts
similarity index 50%
rename from src/api/types/OpenAiResponsesRequestInput.ts
rename to src/api/resources/chats/types/OpenAiResponsesRequestInput.ts
index 14de784..1bd6dba 100644
--- a/src/api/types/OpenAiResponsesRequestInput.ts
+++ b/src/api/resources/chats/types/OpenAiResponsesRequestInput.ts
@@ -2,9 +2,11 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Vapi from "../index";
+import * as Vapi from "../../../index";
/**
- * Chat input as a string or an array of messages. When using message array, each message requires a role and content.
+ * This is the input text for the chat.
+ * Can be a string or an array of chat messages.
+ * This field is REQUIRED for chat creation.
*/
export type OpenAiResponsesRequestInput = string | Vapi.OpenAiResponsesRequestInputItem[];
diff --git a/src/api/types/OpenAiResponsesRequestInputItem.ts b/src/api/resources/chats/types/OpenAiResponsesRequestInputItem.ts
similarity index 86%
rename from src/api/types/OpenAiResponsesRequestInputItem.ts
rename to src/api/resources/chats/types/OpenAiResponsesRequestInputItem.ts
index f0f7a6a..ef12ab2 100644
--- a/src/api/types/OpenAiResponsesRequestInputItem.ts
+++ b/src/api/resources/chats/types/OpenAiResponsesRequestInputItem.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Vapi from "../index";
+import * as Vapi from "../../../index";
export type OpenAiResponsesRequestInputItem =
| Vapi.SystemMessage
diff --git a/src/api/resources/chats/types/index.ts b/src/api/resources/chats/types/index.ts
new file mode 100644
index 0000000..a170acb
--- /dev/null
+++ b/src/api/resources/chats/types/index.ts
@@ -0,0 +1,7 @@
+export * from "./ChatsListRequestSortOrder";
+export * from "./CreateChatDtoInputItem";
+export * from "./CreateChatDtoInput";
+export * from "./ChatsCreateResponse";
+export * from "./OpenAiResponsesRequestInputItem";
+export * from "./OpenAiResponsesRequestInput";
+export * from "./ChatsCreateResponseResponse";
diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts
index 5f154d1..3734cb9 100644
--- a/src/api/resources/index.ts
+++ b/src/api/resources/index.ts
@@ -1,5 +1,9 @@
export * as calls from "./calls";
export * from "./calls/types";
+export * as chats from "./chats";
+export * from "./chats/types";
+export * as sessions from "./sessions";
+export * from "./sessions/types";
export * as assistants from "./assistants";
export * from "./assistants/types";
export * as phoneNumbers from "./phoneNumbers";
@@ -22,6 +26,8 @@ export * as files from "./files";
export * as squads from "./squads";
export * as analytics from "./analytics";
export * from "./calls/client/requests";
+export * from "./chats/client/requests";
+export * from "./sessions/client/requests";
export * from "./assistants/client/requests";
export * from "./phoneNumbers/client/requests";
export * from "./tools/client/requests";
diff --git a/src/api/resources/sessions/client/Client.ts b/src/api/resources/sessions/client/Client.ts
new file mode 100644
index 0000000..430177d
--- /dev/null
+++ b/src/api/resources/sessions/client/Client.ts
@@ -0,0 +1,466 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as environments from "../../../../environments";
+import * as core from "../../../../core";
+import * as Vapi from "../../../index";
+import urlJoin from "url-join";
+import * as errors from "../../../../errors/index";
+
+export declare namespace Sessions {
+ export interface Options {
+ environment?: core.Supplier;
+ /** Specify a custom URL to connect the client to. */
+ baseUrl?: core.Supplier;
+ token: core.Supplier;
+ fetcher?: core.FetchFunction;
+ }
+
+ export interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
+ timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
+ maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
+ /** Additional headers to include in the request. */
+ headers?: Record;
+ }
+}
+
+export class Sessions {
+ constructor(protected readonly _options: Sessions.Options) {}
+
+ /**
+ * @param {Vapi.SessionsListRequest} request
+ * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await client.sessions.list()
+ */
+ public list(
+ request: Vapi.SessionsListRequest = {},
+ requestOptions?: Sessions.RequestOptions,
+ ): core.HttpResponsePromise {
+ return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
+ }
+
+ private async __list(
+ request: Vapi.SessionsListRequest = {},
+ requestOptions?: Sessions.RequestOptions,
+ ): Promise> {
+ const {
+ name,
+ assistantId,
+ workflowId,
+ page,
+ sortOrder,
+ limit,
+ createdAtGt,
+ createdAtLt,
+ createdAtGe,
+ createdAtLe,
+ updatedAtGt,
+ updatedAtLt,
+ updatedAtGe,
+ updatedAtLe,
+ } = request;
+ const _queryParams: Record = {};
+ if (name !== undefined) {
+ _queryParams["name"] = name;
+ }
+
+ if (assistantId !== undefined) {
+ _queryParams["assistantId"] = assistantId;
+ }
+
+ if (workflowId !== undefined) {
+ _queryParams["workflowId"] = workflowId;
+ }
+
+ if (page !== undefined) {
+ _queryParams["page"] = page?.toString() ?? null;
+ }
+
+ if (sortOrder !== undefined) {
+ _queryParams["sortOrder"] = sortOrder;
+ }
+
+ if (limit !== undefined) {
+ _queryParams["limit"] = limit?.toString() ?? null;
+ }
+
+ if (createdAtGt !== undefined) {
+ _queryParams["createdAtGt"] = createdAtGt;
+ }
+
+ if (createdAtLt !== undefined) {
+ _queryParams["createdAtLt"] = createdAtLt;
+ }
+
+ if (createdAtGe !== undefined) {
+ _queryParams["createdAtGe"] = createdAtGe;
+ }
+
+ if (createdAtLe !== undefined) {
+ _queryParams["createdAtLe"] = createdAtLe;
+ }
+
+ if (updatedAtGt !== undefined) {
+ _queryParams["updatedAtGt"] = updatedAtGt;
+ }
+
+ if (updatedAtLt !== undefined) {
+ _queryParams["updatedAtLt"] = updatedAtLt;
+ }
+
+ if (updatedAtGe !== undefined) {
+ _queryParams["updatedAtGe"] = updatedAtGe;
+ }
+
+ if (updatedAtLe !== undefined) {
+ _queryParams["updatedAtLe"] = updatedAtLe;
+ }
+
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.baseUrl)) ??
+ (await core.Supplier.get(this._options.environment)) ??
+ environments.VapiEnvironment.Default,
+ "session",
+ ),
+ method: "GET",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "@vapi-ai/server-sdk",
+ "X-Fern-SDK-Version": "0.9.1",
+ "User-Agent": "@vapi-ai/server-sdk/0.9.1",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ ...requestOptions?.headers,
+ },
+ contentType: "application/json",
+ queryParameters: _queryParams,
+ requestType: "json",
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
+ });
+ if (_response.ok) {
+ return { data: _response.body as Vapi.SessionPaginatedResponse, rawResponse: _response.rawResponse };
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ rawResponse: _response.rawResponse,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ rawResponse: _response.rawResponse,
+ });
+ case "timeout":
+ throw new errors.VapiTimeoutError("Timeout exceeded when calling GET /session.");
+ case "unknown":
+ throw new errors.VapiError({
+ message: _response.error.errorMessage,
+ rawResponse: _response.rawResponse,
+ });
+ }
+ }
+
+ /**
+ * @param {Vapi.CreateSessionDto} request
+ * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await client.sessions.create()
+ */
+ public create(
+ request: Vapi.CreateSessionDto = {},
+ requestOptions?: Sessions.RequestOptions,
+ ): core.HttpResponsePromise {
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
+ }
+
+ private async __create(
+ request: Vapi.CreateSessionDto = {},
+ requestOptions?: Sessions.RequestOptions,
+ ): Promise> {
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.baseUrl)) ??
+ (await core.Supplier.get(this._options.environment)) ??
+ environments.VapiEnvironment.Default,
+ "session",
+ ),
+ method: "POST",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "@vapi-ai/server-sdk",
+ "X-Fern-SDK-Version": "0.9.1",
+ "User-Agent": "@vapi-ai/server-sdk/0.9.1",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ ...requestOptions?.headers,
+ },
+ contentType: "application/json",
+ requestType: "json",
+ body: request,
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
+ });
+ if (_response.ok) {
+ return { data: _response.body as Vapi.Session, rawResponse: _response.rawResponse };
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ rawResponse: _response.rawResponse,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ rawResponse: _response.rawResponse,
+ });
+ case "timeout":
+ throw new errors.VapiTimeoutError("Timeout exceeded when calling POST /session.");
+ case "unknown":
+ throw new errors.VapiError({
+ message: _response.error.errorMessage,
+ rawResponse: _response.rawResponse,
+ });
+ }
+ }
+
+ /**
+ * @param {string} id
+ * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await client.sessions.get("id")
+ */
+ public get(id: string, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise {
+ return core.HttpResponsePromise.fromPromise(this.__get(id, requestOptions));
+ }
+
+ private async __get(
+ id: string,
+ requestOptions?: Sessions.RequestOptions,
+ ): Promise> {
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.baseUrl)) ??
+ (await core.Supplier.get(this._options.environment)) ??
+ environments.VapiEnvironment.Default,
+ `session/${encodeURIComponent(id)}`,
+ ),
+ method: "GET",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "@vapi-ai/server-sdk",
+ "X-Fern-SDK-Version": "0.9.1",
+ "User-Agent": "@vapi-ai/server-sdk/0.9.1",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ ...requestOptions?.headers,
+ },
+ contentType: "application/json",
+ requestType: "json",
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
+ });
+ if (_response.ok) {
+ return { data: _response.body as Vapi.Session, rawResponse: _response.rawResponse };
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ rawResponse: _response.rawResponse,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ rawResponse: _response.rawResponse,
+ });
+ case "timeout":
+ throw new errors.VapiTimeoutError("Timeout exceeded when calling GET /session/{id}.");
+ case "unknown":
+ throw new errors.VapiError({
+ message: _response.error.errorMessage,
+ rawResponse: _response.rawResponse,
+ });
+ }
+ }
+
+ /**
+ * @param {string} id
+ * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await client.sessions.delete("id")
+ */
+ public delete(id: string, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise {
+ return core.HttpResponsePromise.fromPromise(this.__delete(id, requestOptions));
+ }
+
+ private async __delete(
+ id: string,
+ requestOptions?: Sessions.RequestOptions,
+ ): Promise> {
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.baseUrl)) ??
+ (await core.Supplier.get(this._options.environment)) ??
+ environments.VapiEnvironment.Default,
+ `session/${encodeURIComponent(id)}`,
+ ),
+ method: "DELETE",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "@vapi-ai/server-sdk",
+ "X-Fern-SDK-Version": "0.9.1",
+ "User-Agent": "@vapi-ai/server-sdk/0.9.1",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ ...requestOptions?.headers,
+ },
+ contentType: "application/json",
+ requestType: "json",
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
+ });
+ if (_response.ok) {
+ return { data: _response.body as Vapi.Session, rawResponse: _response.rawResponse };
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ rawResponse: _response.rawResponse,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ rawResponse: _response.rawResponse,
+ });
+ case "timeout":
+ throw new errors.VapiTimeoutError("Timeout exceeded when calling DELETE /session/{id}.");
+ case "unknown":
+ throw new errors.VapiError({
+ message: _response.error.errorMessage,
+ rawResponse: _response.rawResponse,
+ });
+ }
+ }
+
+ /**
+ * @param {string} id
+ * @param {Vapi.UpdateSessionDto} request
+ * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await client.sessions.update("id")
+ */
+ public update(
+ id: string,
+ request: Vapi.UpdateSessionDto = {},
+ requestOptions?: Sessions.RequestOptions,
+ ): core.HttpResponsePromise {
+ return core.HttpResponsePromise.fromPromise(this.__update(id, request, requestOptions));
+ }
+
+ private async __update(
+ id: string,
+ request: Vapi.UpdateSessionDto = {},
+ requestOptions?: Sessions.RequestOptions,
+ ): Promise> {
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.baseUrl)) ??
+ (await core.Supplier.get(this._options.environment)) ??
+ environments.VapiEnvironment.Default,
+ `session/${encodeURIComponent(id)}`,
+ ),
+ method: "PATCH",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "@vapi-ai/server-sdk",
+ "X-Fern-SDK-Version": "0.9.1",
+ "User-Agent": "@vapi-ai/server-sdk/0.9.1",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ ...requestOptions?.headers,
+ },
+ contentType: "application/json",
+ requestType: "json",
+ body: request,
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
+ });
+ if (_response.ok) {
+ return { data: _response.body as Vapi.Session, rawResponse: _response.rawResponse };
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ rawResponse: _response.rawResponse,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.VapiError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ rawResponse: _response.rawResponse,
+ });
+ case "timeout":
+ throw new errors.VapiTimeoutError("Timeout exceeded when calling PATCH /session/{id}.");
+ case "unknown":
+ throw new errors.VapiError({
+ message: _response.error.errorMessage,
+ rawResponse: _response.rawResponse,
+ });
+ }
+ }
+
+ protected async _getAuthorizationHeader(): Promise {
+ return `Bearer ${await core.Supplier.get(this._options.token)}`;
+ }
+}
diff --git a/src/api/resources/sessions/client/index.ts b/src/api/resources/sessions/client/index.ts
new file mode 100644
index 0000000..415726b
--- /dev/null
+++ b/src/api/resources/sessions/client/index.ts
@@ -0,0 +1 @@
+export * from "./requests";
diff --git a/src/api/types/CreateSessionDto.ts b/src/api/resources/sessions/client/requests/CreateSessionDto.ts
similarity index 89%
rename from src/api/types/CreateSessionDto.ts
rename to src/api/resources/sessions/client/requests/CreateSessionDto.ts
index 95dc670..4bfd92c 100644
--- a/src/api/types/CreateSessionDto.ts
+++ b/src/api/resources/sessions/client/requests/CreateSessionDto.ts
@@ -2,8 +2,12 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Vapi from "../index";
+import * as Vapi from "../../../../index";
+/**
+ * @example
+ * {}
+ */
export interface CreateSessionDto {
/** This is a user-defined name for the session. Maximum length is 40 characters. */
name?: string;
@@ -16,7 +20,7 @@ export interface CreateSessionDto {
* If assistantId is provided, this will be ignored.
*/
assistant?: Vapi.CreateAssistantDto;
- /** Array of chat messages in the session */
+ /** This is an array of chat messages in the session. */
messages?: Vapi.CreateSessionDtoMessagesItem[];
/** This is the customer information associated with this session. */
customer?: Vapi.CreateCustomerDto;
diff --git a/src/api/resources/sessions/client/requests/SessionsListRequest.ts b/src/api/resources/sessions/client/requests/SessionsListRequest.ts
new file mode 100644
index 0000000..ad34bb5
--- /dev/null
+++ b/src/api/resources/sessions/client/requests/SessionsListRequest.ts
@@ -0,0 +1,68 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as Vapi from "../../../../index";
+
+/**
+ * @example
+ * {}
+ */
+export interface SessionsListRequest {
+ /**
+ * This is the name of the session to filter by.
+ */
+ name?: string | null;
+ /**
+ * This is the ID of the assistant to filter sessions by.
+ */
+ assistantId?: string | null;
+ /**
+ * This is the ID of the workflow to filter sessions by.
+ */
+ workflowId?: string | null;
+ /**
+ * This is the page number to return. Defaults to 1.
+ */
+ page?: number | null;
+ /**
+ * This is the sort order for pagination. Defaults to 'DESC'.
+ */
+ sortOrder?: Vapi.SessionsListRequestSortOrder | null;
+ /**
+ * This is the maximum number of items to return. Defaults to 100.
+ */
+ limit?: number | null;
+ /**
+ * This will return items where the createdAt is greater than the specified value.
+ */
+ createdAtGt?: string | null;
+ /**
+ * This will return items where the createdAt is less than the specified value.
+ */
+ createdAtLt?: string | null;
+ /**
+ * This will return items where the createdAt is greater than or equal to the specified value.
+ */
+ createdAtGe?: string | null;
+ /**
+ * This will return items where the createdAt is less than or equal to the specified value.
+ */
+ createdAtLe?: string | null;
+ /**
+ * This will return items where the updatedAt is greater than the specified value.
+ */
+ updatedAtGt?: string | null;
+ /**
+ * This will return items where the updatedAt is less than the specified value.
+ */
+ updatedAtLt?: string | null;
+ /**
+ * This will return items where the updatedAt is greater than or equal to the specified value.
+ */
+ updatedAtGe?: string | null;
+ /**
+ * This will return items where the updatedAt is less than or equal to the specified value.
+ */
+ updatedAtLe?: string | null;
+}
diff --git a/src/api/types/UpdateSessionDto.ts b/src/api/resources/sessions/client/requests/UpdateSessionDto.ts
similarity index 73%
rename from src/api/types/UpdateSessionDto.ts
rename to src/api/resources/sessions/client/requests/UpdateSessionDto.ts
index 5f680f6..b0aa6dd 100644
--- a/src/api/types/UpdateSessionDto.ts
+++ b/src/api/resources/sessions/client/requests/UpdateSessionDto.ts
@@ -2,13 +2,17 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Vapi from "../index";
+import * as Vapi from "../../../../index";
+/**
+ * @example
+ * {}
+ */
export interface UpdateSessionDto {
/** This is the new name for the session. Maximum length is 40 characters. */
name?: string;
/** This is the new status for the session. */
status?: Vapi.UpdateSessionDtoStatus;
- /** Array of updated chat messages */
+ /** This is the updated array of chat messages. */
messages?: Vapi.UpdateSessionDtoMessagesItem[];
}
diff --git a/src/api/resources/sessions/client/requests/index.ts b/src/api/resources/sessions/client/requests/index.ts
new file mode 100644
index 0000000..09e80bc
--- /dev/null
+++ b/src/api/resources/sessions/client/requests/index.ts
@@ -0,0 +1,3 @@
+export { type SessionsListRequest } from "./SessionsListRequest";
+export { type CreateSessionDto } from "./CreateSessionDto";
+export { type UpdateSessionDto } from "./UpdateSessionDto";
diff --git a/src/api/resources/sessions/index.ts b/src/api/resources/sessions/index.ts
new file mode 100644
index 0000000..c9240f8
--- /dev/null
+++ b/src/api/resources/sessions/index.ts
@@ -0,0 +1,2 @@
+export * from "./types";
+export * from "./client";
diff --git a/src/api/types/CreateSessionDtoMessagesItem.ts b/src/api/resources/sessions/types/CreateSessionDtoMessagesItem.ts
similarity index 86%
rename from src/api/types/CreateSessionDtoMessagesItem.ts
rename to src/api/resources/sessions/types/CreateSessionDtoMessagesItem.ts
index 5dcb79d..6f84582 100644
--- a/src/api/types/CreateSessionDtoMessagesItem.ts
+++ b/src/api/resources/sessions/types/CreateSessionDtoMessagesItem.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Vapi from "../index";
+import * as Vapi from "../../../index";
export type CreateSessionDtoMessagesItem =
| Vapi.SystemMessage
diff --git a/src/api/types/CreateSessionDtoStatus.ts b/src/api/resources/sessions/types/CreateSessionDtoStatus.ts
similarity index 100%
rename from src/api/types/CreateSessionDtoStatus.ts
rename to src/api/resources/sessions/types/CreateSessionDtoStatus.ts
diff --git a/src/api/resources/sessions/types/SessionsListRequestSortOrder.ts b/src/api/resources/sessions/types/SessionsListRequestSortOrder.ts
new file mode 100644
index 0000000..520d635
--- /dev/null
+++ b/src/api/resources/sessions/types/SessionsListRequestSortOrder.ts
@@ -0,0 +1,9 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+export type SessionsListRequestSortOrder = "ASC" | "DESC";
+export const SessionsListRequestSortOrder = {
+ Asc: "ASC",
+ Desc: "DESC",
+} as const;
diff --git a/src/api/types/UpdateSessionDtoMessagesItem.ts b/src/api/resources/sessions/types/UpdateSessionDtoMessagesItem.ts
similarity index 86%
rename from src/api/types/UpdateSessionDtoMessagesItem.ts
rename to src/api/resources/sessions/types/UpdateSessionDtoMessagesItem.ts
index 982cc23..2b7adb0 100644
--- a/src/api/types/UpdateSessionDtoMessagesItem.ts
+++ b/src/api/resources/sessions/types/UpdateSessionDtoMessagesItem.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Vapi from "../index";
+import * as Vapi from "../../../index";
export type UpdateSessionDtoMessagesItem =
| Vapi.SystemMessage
diff --git a/src/api/types/UpdateSessionDtoStatus.ts b/src/api/resources/sessions/types/UpdateSessionDtoStatus.ts
similarity index 100%
rename from src/api/types/UpdateSessionDtoStatus.ts
rename to src/api/resources/sessions/types/UpdateSessionDtoStatus.ts
diff --git a/src/api/resources/sessions/types/index.ts b/src/api/resources/sessions/types/index.ts
new file mode 100644
index 0000000..bf7fd7c
--- /dev/null
+++ b/src/api/resources/sessions/types/index.ts
@@ -0,0 +1,5 @@
+export * from "./SessionsListRequestSortOrder";
+export * from "./CreateSessionDtoStatus";
+export * from "./CreateSessionDtoMessagesItem";
+export * from "./UpdateSessionDtoStatus";
+export * from "./UpdateSessionDtoMessagesItem";
diff --git a/src/api/types/BashTool.ts b/src/api/types/BashTool.ts
index 6deea17..1a9c395 100644
--- a/src/api/types/BashTool.ts
+++ b/src/api/types/BashTool.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface BashTool {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/BashToolWithToolCall.ts b/src/api/types/BashToolWithToolCall.ts
index ce330cf..23a8a9c 100644
--- a/src/api/types/BashToolWithToolCall.ts
+++ b/src/api/types/BashToolWithToolCall.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface BashToolWithToolCall {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/Chat.ts b/src/api/types/Chat.ts
index a61900e..1e06a95 100644
--- a/src/api/types/Chat.ts
+++ b/src/api/types/Chat.ts
@@ -16,7 +16,10 @@ export interface Chat {
* Mutually exclusive with previousChatId.
*/
sessionId?: string;
- /** Chat input as a string or an array of messages. When using message array, each message requires a role and content. */
+ /**
+ * This is the input text for the chat.
+ * Can be a string or an array of chat messages.
+ */
input?: Vapi.ChatInput;
/**
* This is a flag that determines whether the response should be streamed.
@@ -33,9 +36,12 @@ export interface Chat {
id: string;
/** This is the unique identifier for the org that this chat belongs to. */
orgId: string;
- /** Array of messages used as context for the chat */
+ /**
+ * This is an array of messages used as context for the chat.
+ * Used to provide message history for multi-turn conversations.
+ */
messages?: Vapi.ChatMessagesItem[];
- /** Output messages generated by the system in response to the input */
+ /** This is the output messages generated by the system in response to the input. */
output?: Vapi.ChatOutputItem[];
/** This is the ISO 8601 date-time string of when the chat was created. */
createdAt: string;
diff --git a/src/api/types/ChatInput.ts b/src/api/types/ChatInput.ts
index a813a88..8bbe37e 100644
--- a/src/api/types/ChatInput.ts
+++ b/src/api/types/ChatInput.ts
@@ -5,6 +5,7 @@
import * as Vapi from "../index";
/**
- * Chat input as a string or an array of messages. When using message array, each message requires a role and content.
+ * This is the input text for the chat.
+ * Can be a string or an array of chat messages.
*/
export type ChatInput = string | Vapi.ChatInputItem[];
diff --git a/src/api/types/ComputerTool.ts b/src/api/types/ComputerTool.ts
index 12a3f64..ca8447e 100644
--- a/src/api/types/ComputerTool.ts
+++ b/src/api/types/ComputerTool.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface ComputerTool {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/ComputerToolWithToolCall.ts b/src/api/types/ComputerToolWithToolCall.ts
index f8d4506..57da138 100644
--- a/src/api/types/ComputerToolWithToolCall.ts
+++ b/src/api/types/ComputerToolWithToolCall.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface ComputerToolWithToolCall {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/CreateApiRequestToolDto.ts b/src/api/types/CreateApiRequestToolDto.ts
index 3b1688f..a15fe74 100644
--- a/src/api/types/CreateApiRequestToolDto.ts
+++ b/src/api/types/CreateApiRequestToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateApiRequestToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/CreateBashToolDto.ts b/src/api/types/CreateBashToolDto.ts
index e5e5a5a..cff80dd 100644
--- a/src/api/types/CreateBashToolDto.ts
+++ b/src/api/types/CreateBashToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateBashToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/CreateChatDtoInput.ts b/src/api/types/CreateChatDtoInput.ts
deleted file mode 100644
index 7c2b2cd..0000000
--- a/src/api/types/CreateChatDtoInput.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-
-import * as Vapi from "../index";
-
-/**
- * Chat input as a string or an array of messages. When using message array, each message requires a role and content.
- */
-export type CreateChatDtoInput = string | Vapi.CreateChatDtoInputItem[];
diff --git a/src/api/types/CreateComputerToolDto.ts b/src/api/types/CreateComputerToolDto.ts
index ca78345..dd8420b 100644
--- a/src/api/types/CreateComputerToolDto.ts
+++ b/src/api/types/CreateComputerToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateComputerToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/CreateDtmfToolDto.ts b/src/api/types/CreateDtmfToolDto.ts
index 85e565e..408025a 100644
--- a/src/api/types/CreateDtmfToolDto.ts
+++ b/src/api/types/CreateDtmfToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateDtmfToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/CreateEndCallToolDto.ts b/src/api/types/CreateEndCallToolDto.ts
index ace5bd0..9419b5a 100644
--- a/src/api/types/CreateEndCallToolDto.ts
+++ b/src/api/types/CreateEndCallToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateEndCallToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/CreateFunctionToolDto.ts b/src/api/types/CreateFunctionToolDto.ts
index db66bcd..c1d4d1d 100644
--- a/src/api/types/CreateFunctionToolDto.ts
+++ b/src/api/types/CreateFunctionToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateFunctionToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
@@ -22,6 +12,16 @@ export interface CreateFunctionToolDto {
*/
messages?: Vapi.CreateFunctionToolDtoMessagesItem[];
type: "function";
+ /**
+ * This determines if the tool is async.
+ *
+ * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
+ *
+ * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
+ *
+ * Defaults to synchronous (`false`).
+ */
+ async?: boolean;
/**
* This is the server where a `tool-calls` webhook will be sent.
*
diff --git a/src/api/types/CreateGhlToolDto.ts b/src/api/types/CreateGhlToolDto.ts
index 213e9c9..12cd082 100644
--- a/src/api/types/CreateGhlToolDto.ts
+++ b/src/api/types/CreateGhlToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateGhlToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/CreateGoHighLevelCalendarAvailabilityToolDto.ts b/src/api/types/CreateGoHighLevelCalendarAvailabilityToolDto.ts
index 13012c6..f4ddc3c 100644
--- a/src/api/types/CreateGoHighLevelCalendarAvailabilityToolDto.ts
+++ b/src/api/types/CreateGoHighLevelCalendarAvailabilityToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateGoHighLevelCalendarAvailabilityToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/CreateGoHighLevelCalendarEventCreateToolDto.ts b/src/api/types/CreateGoHighLevelCalendarEventCreateToolDto.ts
index 3de735b..1e64593 100644
--- a/src/api/types/CreateGoHighLevelCalendarEventCreateToolDto.ts
+++ b/src/api/types/CreateGoHighLevelCalendarEventCreateToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateGoHighLevelCalendarEventCreateToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/CreateGoHighLevelContactCreateToolDto.ts b/src/api/types/CreateGoHighLevelContactCreateToolDto.ts
index db43d2f..b02ff62 100644
--- a/src/api/types/CreateGoHighLevelContactCreateToolDto.ts
+++ b/src/api/types/CreateGoHighLevelContactCreateToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateGoHighLevelContactCreateToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/CreateGoHighLevelContactGetToolDto.ts b/src/api/types/CreateGoHighLevelContactGetToolDto.ts
index e337a9c..3541a1f 100644
--- a/src/api/types/CreateGoHighLevelContactGetToolDto.ts
+++ b/src/api/types/CreateGoHighLevelContactGetToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateGoHighLevelContactGetToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/CreateGoogleCalendarCheckAvailabilityToolDto.ts b/src/api/types/CreateGoogleCalendarCheckAvailabilityToolDto.ts
index 1b0d941..7d00fe2 100644
--- a/src/api/types/CreateGoogleCalendarCheckAvailabilityToolDto.ts
+++ b/src/api/types/CreateGoogleCalendarCheckAvailabilityToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateGoogleCalendarCheckAvailabilityToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/CreateGoogleCalendarCreateEventToolDto.ts b/src/api/types/CreateGoogleCalendarCreateEventToolDto.ts
index e929c6f..00deb7c 100644
--- a/src/api/types/CreateGoogleCalendarCreateEventToolDto.ts
+++ b/src/api/types/CreateGoogleCalendarCreateEventToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateGoogleCalendarCreateEventToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/CreateGoogleSheetsRowAppendToolDto.ts b/src/api/types/CreateGoogleSheetsRowAppendToolDto.ts
index d75ba54..bb09293 100644
--- a/src/api/types/CreateGoogleSheetsRowAppendToolDto.ts
+++ b/src/api/types/CreateGoogleSheetsRowAppendToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateGoogleSheetsRowAppendToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/CreateMakeToolDto.ts b/src/api/types/CreateMakeToolDto.ts
index 4878030..195093d 100644
--- a/src/api/types/CreateMakeToolDto.ts
+++ b/src/api/types/CreateMakeToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateMakeToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/CreateMcpToolDto.ts b/src/api/types/CreateMcpToolDto.ts
index 322792e..8ef82c2 100644
--- a/src/api/types/CreateMcpToolDto.ts
+++ b/src/api/types/CreateMcpToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateMcpToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/CreateOutputToolDto.ts b/src/api/types/CreateOutputToolDto.ts
index 76621b8..cd09a14 100644
--- a/src/api/types/CreateOutputToolDto.ts
+++ b/src/api/types/CreateOutputToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateOutputToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/CreateQueryToolDto.ts b/src/api/types/CreateQueryToolDto.ts
index b83b6ff..1c085ae 100644
--- a/src/api/types/CreateQueryToolDto.ts
+++ b/src/api/types/CreateQueryToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateQueryToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/CreateSlackSendMessageToolDto.ts b/src/api/types/CreateSlackSendMessageToolDto.ts
index 35fb984..2e9e729 100644
--- a/src/api/types/CreateSlackSendMessageToolDto.ts
+++ b/src/api/types/CreateSlackSendMessageToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateSlackSendMessageToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/CreateSmsToolDto.ts b/src/api/types/CreateSmsToolDto.ts
index 5dc1a48..60490f2 100644
--- a/src/api/types/CreateSmsToolDto.ts
+++ b/src/api/types/CreateSmsToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateSmsToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/CreateTextEditorToolDto.ts b/src/api/types/CreateTextEditorToolDto.ts
index e624821..5597506 100644
--- a/src/api/types/CreateTextEditorToolDto.ts
+++ b/src/api/types/CreateTextEditorToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateTextEditorToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/CreateTransferCallToolDto.ts b/src/api/types/CreateTransferCallToolDto.ts
index 307f50a..5648a6f 100644
--- a/src/api/types/CreateTransferCallToolDto.ts
+++ b/src/api/types/CreateTransferCallToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateTransferCallToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/CreateVoicemailToolDto.ts b/src/api/types/CreateVoicemailToolDto.ts
index 86886fe..e5160ba 100644
--- a/src/api/types/CreateVoicemailToolDto.ts
+++ b/src/api/types/CreateVoicemailToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface CreateVoicemailToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/DtmfTool.ts b/src/api/types/DtmfTool.ts
index 78d320c..5a38e15 100644
--- a/src/api/types/DtmfTool.ts
+++ b/src/api/types/DtmfTool.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface DtmfTool {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/EndCallTool.ts b/src/api/types/EndCallTool.ts
index e8f4098..234a0f0 100644
--- a/src/api/types/EndCallTool.ts
+++ b/src/api/types/EndCallTool.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface EndCallTool {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/FunctionCall.ts b/src/api/types/FunctionCall.ts
new file mode 100644
index 0000000..bc62cc4
--- /dev/null
+++ b/src/api/types/FunctionCall.ts
@@ -0,0 +1,10 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+export interface FunctionCall {
+ /** This is the arguments to call the function with */
+ arguments: string;
+ /** This is the name of the function to call */
+ name: string;
+}
diff --git a/src/api/types/FunctionCallAssistantHookAction.ts b/src/api/types/FunctionCallAssistantHookAction.ts
index 7141ebb..ee03a0d 100644
--- a/src/api/types/FunctionCallAssistantHookAction.ts
+++ b/src/api/types/FunctionCallAssistantHookAction.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface FunctionCallAssistantHookAction {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
@@ -23,6 +13,16 @@ export interface FunctionCallAssistantHookAction {
messages?: Vapi.FunctionCallAssistantHookActionMessagesItem[];
/** The type of tool. "function" for Function tool. */
type: "function";
+ /**
+ * This determines if the tool is async.
+ *
+ * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
+ *
+ * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
+ *
+ * Defaults to synchronous (`false`).
+ */
+ async?: boolean;
/**
* This is the server where a `tool-calls` webhook will be sent.
*
diff --git a/src/api/types/FunctionTool.ts b/src/api/types/FunctionTool.ts
index 0283873..86c25bd 100644
--- a/src/api/types/FunctionTool.ts
+++ b/src/api/types/FunctionTool.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface FunctionTool {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
@@ -22,6 +12,16 @@ export interface FunctionTool {
*/
messages?: Vapi.FunctionToolMessagesItem[];
type: "function";
+ /**
+ * This determines if the tool is async.
+ *
+ * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
+ *
+ * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
+ *
+ * Defaults to synchronous (`false`).
+ */
+ async?: boolean;
/**
* This is the server where a `tool-calls` webhook will be sent.
*
diff --git a/src/api/types/FunctionToolWithToolCall.ts b/src/api/types/FunctionToolWithToolCall.ts
index 891f225..bb102cb 100644
--- a/src/api/types/FunctionToolWithToolCall.ts
+++ b/src/api/types/FunctionToolWithToolCall.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface FunctionToolWithToolCall {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
@@ -23,6 +13,16 @@ export interface FunctionToolWithToolCall {
messages?: Vapi.FunctionToolWithToolCallMessagesItem[];
/** The type of tool. "function" for Function tool. */
type: "function";
+ /**
+ * This determines if the tool is async.
+ *
+ * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
+ *
+ * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
+ *
+ * Defaults to synchronous (`false`).
+ */
+ async?: boolean;
/**
* This is the server where a `tool-calls` webhook will be sent.
*
diff --git a/src/api/types/GetChatPaginatedDto.ts b/src/api/types/GetChatPaginatedDto.ts
new file mode 100644
index 0000000..610b8ef
--- /dev/null
+++ b/src/api/types/GetChatPaginatedDto.ts
@@ -0,0 +1,36 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as Vapi from "../index";
+
+export interface GetChatPaginatedDto {
+ /** This is the unique identifier for the assistant that will be used for the chat. */
+ assistantId?: string;
+ /** This is the unique identifier for the workflow that will be used for the chat. */
+ workflowId?: string;
+ /** This is the unique identifier for the session that will be used for the chat. */
+ sessionId?: string;
+ /** This is the page number to return. Defaults to 1. */
+ page?: number;
+ /** This is the sort order for pagination. Defaults to 'DESC'. */
+ sortOrder?: Vapi.GetChatPaginatedDtoSortOrder;
+ /** This is the maximum number of items to return. Defaults to 100. */
+ limit?: number;
+ /** This will return items where the createdAt is greater than the specified value. */
+ createdAtGt?: string;
+ /** This will return items where the createdAt is less than the specified value. */
+ createdAtLt?: string;
+ /** This will return items where the createdAt is greater than or equal to the specified value. */
+ createdAtGe?: string;
+ /** This will return items where the createdAt is less than or equal to the specified value. */
+ createdAtLe?: string;
+ /** This will return items where the updatedAt is greater than the specified value. */
+ updatedAtGt?: string;
+ /** This will return items where the updatedAt is less than the specified value. */
+ updatedAtLt?: string;
+ /** This will return items where the updatedAt is greater than or equal to the specified value. */
+ updatedAtGe?: string;
+ /** This will return items where the updatedAt is less than or equal to the specified value. */
+ updatedAtLe?: string;
+}
diff --git a/src/api/types/GetChatPaginatedDtoSortOrder.ts b/src/api/types/GetChatPaginatedDtoSortOrder.ts
new file mode 100644
index 0000000..25957bd
--- /dev/null
+++ b/src/api/types/GetChatPaginatedDtoSortOrder.ts
@@ -0,0 +1,12 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * This is the sort order for pagination. Defaults to 'DESC'.
+ */
+export type GetChatPaginatedDtoSortOrder = "ASC" | "DESC";
+export const GetChatPaginatedDtoSortOrder = {
+ Asc: "ASC",
+ Desc: "DESC",
+} as const;
diff --git a/src/api/types/GetSessionPaginatedDto.ts b/src/api/types/GetSessionPaginatedDto.ts
new file mode 100644
index 0000000..5e58952
--- /dev/null
+++ b/src/api/types/GetSessionPaginatedDto.ts
@@ -0,0 +1,36 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as Vapi from "../index";
+
+export interface GetSessionPaginatedDto {
+ /** This is the name of the session to filter by. */
+ name?: string;
+ /** This is the ID of the assistant to filter sessions by. */
+ assistantId?: string;
+ /** This is the ID of the workflow to filter sessions by. */
+ workflowId?: string;
+ /** This is the page number to return. Defaults to 1. */
+ page?: number;
+ /** This is the sort order for pagination. Defaults to 'DESC'. */
+ sortOrder?: Vapi.GetSessionPaginatedDtoSortOrder;
+ /** This is the maximum number of items to return. Defaults to 100. */
+ limit?: number;
+ /** This will return items where the createdAt is greater than the specified value. */
+ createdAtGt?: string;
+ /** This will return items where the createdAt is less than the specified value. */
+ createdAtLt?: string;
+ /** This will return items where the createdAt is greater than or equal to the specified value. */
+ createdAtGe?: string;
+ /** This will return items where the createdAt is less than or equal to the specified value. */
+ createdAtLe?: string;
+ /** This will return items where the updatedAt is greater than the specified value. */
+ updatedAtGt?: string;
+ /** This will return items where the updatedAt is less than the specified value. */
+ updatedAtLt?: string;
+ /** This will return items where the updatedAt is greater than or equal to the specified value. */
+ updatedAtGe?: string;
+ /** This will return items where the updatedAt is less than or equal to the specified value. */
+ updatedAtLe?: string;
+}
diff --git a/src/api/types/GetSessionPaginatedDtoSortOrder.ts b/src/api/types/GetSessionPaginatedDtoSortOrder.ts
new file mode 100644
index 0000000..b0b578a
--- /dev/null
+++ b/src/api/types/GetSessionPaginatedDtoSortOrder.ts
@@ -0,0 +1,12 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * This is the sort order for pagination. Defaults to 'DESC'.
+ */
+export type GetSessionPaginatedDtoSortOrder = "ASC" | "DESC";
+export const GetSessionPaginatedDtoSortOrder = {
+ Asc: "ASC",
+ Desc: "DESC",
+} as const;
diff --git a/src/api/types/GhlTool.ts b/src/api/types/GhlTool.ts
index f7b08c9..fcb66a0 100644
--- a/src/api/types/GhlTool.ts
+++ b/src/api/types/GhlTool.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface GhlTool {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/GhlToolWithToolCall.ts b/src/api/types/GhlToolWithToolCall.ts
index bc14275..0d41661 100644
--- a/src/api/types/GhlToolWithToolCall.ts
+++ b/src/api/types/GhlToolWithToolCall.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface GhlToolWithToolCall {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/GoHighLevelCalendarAvailabilityTool.ts b/src/api/types/GoHighLevelCalendarAvailabilityTool.ts
index 9e81e7c..03becca 100644
--- a/src/api/types/GoHighLevelCalendarAvailabilityTool.ts
+++ b/src/api/types/GoHighLevelCalendarAvailabilityTool.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface GoHighLevelCalendarAvailabilityTool {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/GoHighLevelCalendarAvailabilityToolWithToolCall.ts b/src/api/types/GoHighLevelCalendarAvailabilityToolWithToolCall.ts
index 5b87aa5..a8cfc4e 100644
--- a/src/api/types/GoHighLevelCalendarAvailabilityToolWithToolCall.ts
+++ b/src/api/types/GoHighLevelCalendarAvailabilityToolWithToolCall.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface GoHighLevelCalendarAvailabilityToolWithToolCall {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/GoHighLevelCalendarEventCreateTool.ts b/src/api/types/GoHighLevelCalendarEventCreateTool.ts
index f2c8b87..974fb2c 100644
--- a/src/api/types/GoHighLevelCalendarEventCreateTool.ts
+++ b/src/api/types/GoHighLevelCalendarEventCreateTool.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface GoHighLevelCalendarEventCreateTool {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/GoHighLevelCalendarEventCreateToolWithToolCall.ts b/src/api/types/GoHighLevelCalendarEventCreateToolWithToolCall.ts
index f805122..e03e92d 100644
--- a/src/api/types/GoHighLevelCalendarEventCreateToolWithToolCall.ts
+++ b/src/api/types/GoHighLevelCalendarEventCreateToolWithToolCall.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface GoHighLevelCalendarEventCreateToolWithToolCall {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/GoHighLevelContactCreateTool.ts b/src/api/types/GoHighLevelContactCreateTool.ts
index 2a29e08..c8a6ea3 100644
--- a/src/api/types/GoHighLevelContactCreateTool.ts
+++ b/src/api/types/GoHighLevelContactCreateTool.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface GoHighLevelContactCreateTool {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/GoHighLevelContactCreateToolWithToolCall.ts b/src/api/types/GoHighLevelContactCreateToolWithToolCall.ts
index 860a523..81b3f25 100644
--- a/src/api/types/GoHighLevelContactCreateToolWithToolCall.ts
+++ b/src/api/types/GoHighLevelContactCreateToolWithToolCall.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface GoHighLevelContactCreateToolWithToolCall {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/GoHighLevelContactGetTool.ts b/src/api/types/GoHighLevelContactGetTool.ts
index 68ffb84..1bce713 100644
--- a/src/api/types/GoHighLevelContactGetTool.ts
+++ b/src/api/types/GoHighLevelContactGetTool.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface GoHighLevelContactGetTool {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/GoHighLevelContactGetToolWithToolCall.ts b/src/api/types/GoHighLevelContactGetToolWithToolCall.ts
index 934b3ed..bac3410 100644
--- a/src/api/types/GoHighLevelContactGetToolWithToolCall.ts
+++ b/src/api/types/GoHighLevelContactGetToolWithToolCall.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface GoHighLevelContactGetToolWithToolCall {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/GoogleCalendarCheckAvailabilityTool.ts b/src/api/types/GoogleCalendarCheckAvailabilityTool.ts
index 6e53ca3..329becd 100644
--- a/src/api/types/GoogleCalendarCheckAvailabilityTool.ts
+++ b/src/api/types/GoogleCalendarCheckAvailabilityTool.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface GoogleCalendarCheckAvailabilityTool {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/GoogleCalendarCreateEventTool.ts b/src/api/types/GoogleCalendarCreateEventTool.ts
index d66997f..a73821f 100644
--- a/src/api/types/GoogleCalendarCreateEventTool.ts
+++ b/src/api/types/GoogleCalendarCreateEventTool.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface GoogleCalendarCreateEventTool {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/GoogleCalendarCreateEventToolWithToolCall.ts b/src/api/types/GoogleCalendarCreateEventToolWithToolCall.ts
index 62f3f82..a259641 100644
--- a/src/api/types/GoogleCalendarCreateEventToolWithToolCall.ts
+++ b/src/api/types/GoogleCalendarCreateEventToolWithToolCall.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface GoogleCalendarCreateEventToolWithToolCall {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/GoogleSheetsRowAppendTool.ts b/src/api/types/GoogleSheetsRowAppendTool.ts
index cda16b3..6bdec03 100644
--- a/src/api/types/GoogleSheetsRowAppendTool.ts
+++ b/src/api/types/GoogleSheetsRowAppendTool.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface GoogleSheetsRowAppendTool {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/GoogleSheetsRowAppendToolWithToolCall.ts b/src/api/types/GoogleSheetsRowAppendToolWithToolCall.ts
index 7718c7c..3cc502e 100644
--- a/src/api/types/GoogleSheetsRowAppendToolWithToolCall.ts
+++ b/src/api/types/GoogleSheetsRowAppendToolWithToolCall.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface GoogleSheetsRowAppendToolWithToolCall {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/MakeTool.ts b/src/api/types/MakeTool.ts
index c6afc24..85e3eae 100644
--- a/src/api/types/MakeTool.ts
+++ b/src/api/types/MakeTool.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface MakeTool {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/MakeToolWithToolCall.ts b/src/api/types/MakeToolWithToolCall.ts
index dd5f398..3e0b5b0 100644
--- a/src/api/types/MakeToolWithToolCall.ts
+++ b/src/api/types/MakeToolWithToolCall.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface MakeToolWithToolCall {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/McpTool.ts b/src/api/types/McpTool.ts
index 1cc8c0c..b946874 100644
--- a/src/api/types/McpTool.ts
+++ b/src/api/types/McpTool.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface McpTool {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/OpenAiModel.ts b/src/api/types/OpenAiModel.ts
index 6f1537b..c6a90e4 100644
--- a/src/api/types/OpenAiModel.ts
+++ b/src/api/types/OpenAiModel.ts
@@ -25,7 +25,14 @@ export interface OpenAiModel {
knowledgeBaseId?: string;
/** This is the provider that will be used for the model. */
provider: "openai";
- /** This is the OpenAI model that will be used. */
+ /**
+ * This is the OpenAI model that will be used.
+ *
+ * When using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense.
+ * This is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/.
+ *
+ * @default undefined
+ */
model: Vapi.OpenAiModelModel;
/** These are the fallback models that will be used if the primary model fails. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest fallbacks that make sense. */
fallbackModels?: Vapi.OpenAiModelFallbackModelsItem[];
diff --git a/src/api/types/OpenAiModelFallbackModelsItem.ts b/src/api/types/OpenAiModelFallbackModelsItem.ts
index 9361c20..cf234a5 100644
--- a/src/api/types/OpenAiModelFallbackModelsItem.ts
+++ b/src/api/types/OpenAiModelFallbackModelsItem.ts
@@ -3,6 +3,9 @@
*/
export type OpenAiModelFallbackModelsItem =
+ | "gpt-4.1-2025-04-14"
+ | "gpt-4.1-mini-2025-04-14"
+ | "gpt-4.1-nano-2025-04-14"
| "gpt-4.1"
| "gpt-4.1-mini"
| "gpt-4.1-nano"
@@ -35,8 +38,71 @@ export type OpenAiModelFallbackModelsItem =
| "gpt-3.5-turbo-0125"
| "gpt-3.5-turbo-1106"
| "gpt-3.5-turbo-16k"
- | "gpt-3.5-turbo-0613";
+ | "gpt-3.5-turbo-0613"
+ | "gpt-4.1-2025-04-14:westus"
+ | "gpt-4.1-2025-04-14:eastus2"
+ | "gpt-4.1-2025-04-14:eastus"
+ | "gpt-4.1-2025-04-14:westus3"
+ | "gpt-4.1-2025-04-14:northcentralus"
+ | "gpt-4.1-2025-04-14:southcentralus"
+ | "gpt-4.1-mini-2025-04-14:westus"
+ | "gpt-4.1-mini-2025-04-14:eastus2"
+ | "gpt-4.1-mini-2025-04-14:eastus"
+ | "gpt-4.1-mini-2025-04-14:westus3"
+ | "gpt-4.1-mini-2025-04-14:northcentralus"
+ | "gpt-4.1-mini-2025-04-14:southcentralus"
+ | "gpt-4.1-nano-2025-04-14:westus"
+ | "gpt-4.1-nano-2025-04-14:eastus2"
+ | "gpt-4.1-nano-2025-04-14:westus3"
+ | "gpt-4.1-nano-2025-04-14:northcentralus"
+ | "gpt-4.1-nano-2025-04-14:southcentralus"
+ | "gpt-4o-2024-11-20:swedencentral"
+ | "gpt-4o-2024-11-20:westus"
+ | "gpt-4o-2024-11-20:eastus2"
+ | "gpt-4o-2024-11-20:eastus"
+ | "gpt-4o-2024-11-20:westus3"
+ | "gpt-4o-2024-11-20:southcentralus"
+ | "gpt-4o-2024-08-06:westus"
+ | "gpt-4o-2024-08-06:westus3"
+ | "gpt-4o-2024-08-06:eastus"
+ | "gpt-4o-2024-08-06:eastus2"
+ | "gpt-4o-2024-08-06:northcentralus"
+ | "gpt-4o-2024-08-06:southcentralus"
+ | "gpt-4o-mini-2024-07-18:westus"
+ | "gpt-4o-mini-2024-07-18:westus3"
+ | "gpt-4o-mini-2024-07-18:eastus"
+ | "gpt-4o-mini-2024-07-18:eastus2"
+ | "gpt-4o-mini-2024-07-18:northcentralus"
+ | "gpt-4o-mini-2024-07-18:southcentralus"
+ | "gpt-4o-2024-05-13:eastus2"
+ | "gpt-4o-2024-05-13:eastus"
+ | "gpt-4o-2024-05-13:northcentralus"
+ | "gpt-4o-2024-05-13:southcentralus"
+ | "gpt-4o-2024-05-13:westus3"
+ | "gpt-4o-2024-05-13:westus"
+ | "gpt-4-turbo-2024-04-09:eastus2"
+ | "gpt-4-0125-preview:eastus"
+ | "gpt-4-0125-preview:northcentralus"
+ | "gpt-4-0125-preview:southcentralus"
+ | "gpt-4-1106-preview:australia"
+ | "gpt-4-1106-preview:canadaeast"
+ | "gpt-4-1106-preview:france"
+ | "gpt-4-1106-preview:india"
+ | "gpt-4-1106-preview:norway"
+ | "gpt-4-1106-preview:swedencentral"
+ | "gpt-4-1106-preview:uk"
+ | "gpt-4-1106-preview:westus"
+ | "gpt-4-1106-preview:westus3"
+ | "gpt-4-0613:canadaeast"
+ | "gpt-3.5-turbo-0125:canadaeast"
+ | "gpt-3.5-turbo-0125:northcentralus"
+ | "gpt-3.5-turbo-0125:southcentralus"
+ | "gpt-3.5-turbo-1106:canadaeast"
+ | "gpt-3.5-turbo-1106:westus";
export const OpenAiModelFallbackModelsItem = {
+ Gpt4120250414: "gpt-4.1-2025-04-14",
+ Gpt41Mini20250414: "gpt-4.1-mini-2025-04-14",
+ Gpt41Nano20250414: "gpt-4.1-nano-2025-04-14",
Gpt41: "gpt-4.1",
Gpt41Mini: "gpt-4.1-mini",
Gpt41Nano: "gpt-4.1-nano",
@@ -70,4 +136,64 @@ export const OpenAiModelFallbackModelsItem = {
Gpt35Turbo1106: "gpt-3.5-turbo-1106",
Gpt35Turbo16K: "gpt-3.5-turbo-16k",
Gpt35Turbo0613: "gpt-3.5-turbo-0613",
+ Gpt4120250414Westus: "gpt-4.1-2025-04-14:westus",
+ Gpt4120250414Eastus2: "gpt-4.1-2025-04-14:eastus2",
+ Gpt4120250414Eastus: "gpt-4.1-2025-04-14:eastus",
+ Gpt4120250414Westus3: "gpt-4.1-2025-04-14:westus3",
+ Gpt4120250414Northcentralus: "gpt-4.1-2025-04-14:northcentralus",
+ Gpt4120250414Southcentralus: "gpt-4.1-2025-04-14:southcentralus",
+ Gpt41Mini20250414Westus: "gpt-4.1-mini-2025-04-14:westus",
+ Gpt41Mini20250414Eastus2: "gpt-4.1-mini-2025-04-14:eastus2",
+ Gpt41Mini20250414Eastus: "gpt-4.1-mini-2025-04-14:eastus",
+ Gpt41Mini20250414Westus3: "gpt-4.1-mini-2025-04-14:westus3",
+ Gpt41Mini20250414Northcentralus: "gpt-4.1-mini-2025-04-14:northcentralus",
+ Gpt41Mini20250414Southcentralus: "gpt-4.1-mini-2025-04-14:southcentralus",
+ Gpt41Nano20250414Westus: "gpt-4.1-nano-2025-04-14:westus",
+ Gpt41Nano20250414Eastus2: "gpt-4.1-nano-2025-04-14:eastus2",
+ Gpt41Nano20250414Westus3: "gpt-4.1-nano-2025-04-14:westus3",
+ Gpt41Nano20250414Northcentralus: "gpt-4.1-nano-2025-04-14:northcentralus",
+ Gpt41Nano20250414Southcentralus: "gpt-4.1-nano-2025-04-14:southcentralus",
+ Gpt4O20241120Swedencentral: "gpt-4o-2024-11-20:swedencentral",
+ Gpt4O20241120Westus: "gpt-4o-2024-11-20:westus",
+ Gpt4O20241120Eastus2: "gpt-4o-2024-11-20:eastus2",
+ Gpt4O20241120Eastus: "gpt-4o-2024-11-20:eastus",
+ Gpt4O20241120Westus3: "gpt-4o-2024-11-20:westus3",
+ Gpt4O20241120Southcentralus: "gpt-4o-2024-11-20:southcentralus",
+ Gpt4O20240806Westus: "gpt-4o-2024-08-06:westus",
+ Gpt4O20240806Westus3: "gpt-4o-2024-08-06:westus3",
+ Gpt4O20240806Eastus: "gpt-4o-2024-08-06:eastus",
+ Gpt4O20240806Eastus2: "gpt-4o-2024-08-06:eastus2",
+ Gpt4O20240806Northcentralus: "gpt-4o-2024-08-06:northcentralus",
+ Gpt4O20240806Southcentralus: "gpt-4o-2024-08-06:southcentralus",
+ Gpt4OMini20240718Westus: "gpt-4o-mini-2024-07-18:westus",
+ Gpt4OMini20240718Westus3: "gpt-4o-mini-2024-07-18:westus3",
+ Gpt4OMini20240718Eastus: "gpt-4o-mini-2024-07-18:eastus",
+ Gpt4OMini20240718Eastus2: "gpt-4o-mini-2024-07-18:eastus2",
+ Gpt4OMini20240718Northcentralus: "gpt-4o-mini-2024-07-18:northcentralus",
+ Gpt4OMini20240718Southcentralus: "gpt-4o-mini-2024-07-18:southcentralus",
+ Gpt4O20240513Eastus2: "gpt-4o-2024-05-13:eastus2",
+ Gpt4O20240513Eastus: "gpt-4o-2024-05-13:eastus",
+ Gpt4O20240513Northcentralus: "gpt-4o-2024-05-13:northcentralus",
+ Gpt4O20240513Southcentralus: "gpt-4o-2024-05-13:southcentralus",
+ Gpt4O20240513Westus3: "gpt-4o-2024-05-13:westus3",
+ Gpt4O20240513Westus: "gpt-4o-2024-05-13:westus",
+ Gpt4Turbo20240409Eastus2: "gpt-4-turbo-2024-04-09:eastus2",
+ Gpt40125PreviewEastus: "gpt-4-0125-preview:eastus",
+ Gpt40125PreviewNorthcentralus: "gpt-4-0125-preview:northcentralus",
+ Gpt40125PreviewSouthcentralus: "gpt-4-0125-preview:southcentralus",
+ Gpt41106PreviewAustralia: "gpt-4-1106-preview:australia",
+ Gpt41106PreviewCanadaeast: "gpt-4-1106-preview:canadaeast",
+ Gpt41106PreviewFrance: "gpt-4-1106-preview:france",
+ Gpt41106PreviewIndia: "gpt-4-1106-preview:india",
+ Gpt41106PreviewNorway: "gpt-4-1106-preview:norway",
+ Gpt41106PreviewSwedencentral: "gpt-4-1106-preview:swedencentral",
+ Gpt41106PreviewUk: "gpt-4-1106-preview:uk",
+ Gpt41106PreviewWestus: "gpt-4-1106-preview:westus",
+ Gpt41106PreviewWestus3: "gpt-4-1106-preview:westus3",
+ Gpt40613Canadaeast: "gpt-4-0613:canadaeast",
+ Gpt35Turbo0125Canadaeast: "gpt-3.5-turbo-0125:canadaeast",
+ Gpt35Turbo0125Northcentralus: "gpt-3.5-turbo-0125:northcentralus",
+ Gpt35Turbo0125Southcentralus: "gpt-3.5-turbo-0125:southcentralus",
+ Gpt35Turbo1106Canadaeast: "gpt-3.5-turbo-1106:canadaeast",
+ Gpt35Turbo1106Westus: "gpt-3.5-turbo-1106:westus",
} as const;
diff --git a/src/api/types/OpenAiModelModel.ts b/src/api/types/OpenAiModelModel.ts
index 488e8d9..d56caec 100644
--- a/src/api/types/OpenAiModelModel.ts
+++ b/src/api/types/OpenAiModelModel.ts
@@ -4,8 +4,16 @@
/**
* This is the OpenAI model that will be used.
+ *
+ * When using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense.
+ * This is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/.
+ *
+ * @default undefined
*/
export type OpenAiModelModel =
+ | "gpt-4.1-2025-04-14"
+ | "gpt-4.1-mini-2025-04-14"
+ | "gpt-4.1-nano-2025-04-14"
| "gpt-4.1"
| "gpt-4.1-mini"
| "gpt-4.1-nano"
@@ -38,8 +46,71 @@ export type OpenAiModelModel =
| "gpt-3.5-turbo-0125"
| "gpt-3.5-turbo-1106"
| "gpt-3.5-turbo-16k"
- | "gpt-3.5-turbo-0613";
+ | "gpt-3.5-turbo-0613"
+ | "gpt-4.1-2025-04-14:westus"
+ | "gpt-4.1-2025-04-14:eastus2"
+ | "gpt-4.1-2025-04-14:eastus"
+ | "gpt-4.1-2025-04-14:westus3"
+ | "gpt-4.1-2025-04-14:northcentralus"
+ | "gpt-4.1-2025-04-14:southcentralus"
+ | "gpt-4.1-mini-2025-04-14:westus"
+ | "gpt-4.1-mini-2025-04-14:eastus2"
+ | "gpt-4.1-mini-2025-04-14:eastus"
+ | "gpt-4.1-mini-2025-04-14:westus3"
+ | "gpt-4.1-mini-2025-04-14:northcentralus"
+ | "gpt-4.1-mini-2025-04-14:southcentralus"
+ | "gpt-4.1-nano-2025-04-14:westus"
+ | "gpt-4.1-nano-2025-04-14:eastus2"
+ | "gpt-4.1-nano-2025-04-14:westus3"
+ | "gpt-4.1-nano-2025-04-14:northcentralus"
+ | "gpt-4.1-nano-2025-04-14:southcentralus"
+ | "gpt-4o-2024-11-20:swedencentral"
+ | "gpt-4o-2024-11-20:westus"
+ | "gpt-4o-2024-11-20:eastus2"
+ | "gpt-4o-2024-11-20:eastus"
+ | "gpt-4o-2024-11-20:westus3"
+ | "gpt-4o-2024-11-20:southcentralus"
+ | "gpt-4o-2024-08-06:westus"
+ | "gpt-4o-2024-08-06:westus3"
+ | "gpt-4o-2024-08-06:eastus"
+ | "gpt-4o-2024-08-06:eastus2"
+ | "gpt-4o-2024-08-06:northcentralus"
+ | "gpt-4o-2024-08-06:southcentralus"
+ | "gpt-4o-mini-2024-07-18:westus"
+ | "gpt-4o-mini-2024-07-18:westus3"
+ | "gpt-4o-mini-2024-07-18:eastus"
+ | "gpt-4o-mini-2024-07-18:eastus2"
+ | "gpt-4o-mini-2024-07-18:northcentralus"
+ | "gpt-4o-mini-2024-07-18:southcentralus"
+ | "gpt-4o-2024-05-13:eastus2"
+ | "gpt-4o-2024-05-13:eastus"
+ | "gpt-4o-2024-05-13:northcentralus"
+ | "gpt-4o-2024-05-13:southcentralus"
+ | "gpt-4o-2024-05-13:westus3"
+ | "gpt-4o-2024-05-13:westus"
+ | "gpt-4-turbo-2024-04-09:eastus2"
+ | "gpt-4-0125-preview:eastus"
+ | "gpt-4-0125-preview:northcentralus"
+ | "gpt-4-0125-preview:southcentralus"
+ | "gpt-4-1106-preview:australia"
+ | "gpt-4-1106-preview:canadaeast"
+ | "gpt-4-1106-preview:france"
+ | "gpt-4-1106-preview:india"
+ | "gpt-4-1106-preview:norway"
+ | "gpt-4-1106-preview:swedencentral"
+ | "gpt-4-1106-preview:uk"
+ | "gpt-4-1106-preview:westus"
+ | "gpt-4-1106-preview:westus3"
+ | "gpt-4-0613:canadaeast"
+ | "gpt-3.5-turbo-0125:canadaeast"
+ | "gpt-3.5-turbo-0125:northcentralus"
+ | "gpt-3.5-turbo-0125:southcentralus"
+ | "gpt-3.5-turbo-1106:canadaeast"
+ | "gpt-3.5-turbo-1106:westus";
export const OpenAiModelModel = {
+ Gpt4120250414: "gpt-4.1-2025-04-14",
+ Gpt41Mini20250414: "gpt-4.1-mini-2025-04-14",
+ Gpt41Nano20250414: "gpt-4.1-nano-2025-04-14",
Gpt41: "gpt-4.1",
Gpt41Mini: "gpt-4.1-mini",
Gpt41Nano: "gpt-4.1-nano",
@@ -73,4 +144,64 @@ export const OpenAiModelModel = {
Gpt35Turbo1106: "gpt-3.5-turbo-1106",
Gpt35Turbo16K: "gpt-3.5-turbo-16k",
Gpt35Turbo0613: "gpt-3.5-turbo-0613",
+ Gpt4120250414Westus: "gpt-4.1-2025-04-14:westus",
+ Gpt4120250414Eastus2: "gpt-4.1-2025-04-14:eastus2",
+ Gpt4120250414Eastus: "gpt-4.1-2025-04-14:eastus",
+ Gpt4120250414Westus3: "gpt-4.1-2025-04-14:westus3",
+ Gpt4120250414Northcentralus: "gpt-4.1-2025-04-14:northcentralus",
+ Gpt4120250414Southcentralus: "gpt-4.1-2025-04-14:southcentralus",
+ Gpt41Mini20250414Westus: "gpt-4.1-mini-2025-04-14:westus",
+ Gpt41Mini20250414Eastus2: "gpt-4.1-mini-2025-04-14:eastus2",
+ Gpt41Mini20250414Eastus: "gpt-4.1-mini-2025-04-14:eastus",
+ Gpt41Mini20250414Westus3: "gpt-4.1-mini-2025-04-14:westus3",
+ Gpt41Mini20250414Northcentralus: "gpt-4.1-mini-2025-04-14:northcentralus",
+ Gpt41Mini20250414Southcentralus: "gpt-4.1-mini-2025-04-14:southcentralus",
+ Gpt41Nano20250414Westus: "gpt-4.1-nano-2025-04-14:westus",
+ Gpt41Nano20250414Eastus2: "gpt-4.1-nano-2025-04-14:eastus2",
+ Gpt41Nano20250414Westus3: "gpt-4.1-nano-2025-04-14:westus3",
+ Gpt41Nano20250414Northcentralus: "gpt-4.1-nano-2025-04-14:northcentralus",
+ Gpt41Nano20250414Southcentralus: "gpt-4.1-nano-2025-04-14:southcentralus",
+ Gpt4O20241120Swedencentral: "gpt-4o-2024-11-20:swedencentral",
+ Gpt4O20241120Westus: "gpt-4o-2024-11-20:westus",
+ Gpt4O20241120Eastus2: "gpt-4o-2024-11-20:eastus2",
+ Gpt4O20241120Eastus: "gpt-4o-2024-11-20:eastus",
+ Gpt4O20241120Westus3: "gpt-4o-2024-11-20:westus3",
+ Gpt4O20241120Southcentralus: "gpt-4o-2024-11-20:southcentralus",
+ Gpt4O20240806Westus: "gpt-4o-2024-08-06:westus",
+ Gpt4O20240806Westus3: "gpt-4o-2024-08-06:westus3",
+ Gpt4O20240806Eastus: "gpt-4o-2024-08-06:eastus",
+ Gpt4O20240806Eastus2: "gpt-4o-2024-08-06:eastus2",
+ Gpt4O20240806Northcentralus: "gpt-4o-2024-08-06:northcentralus",
+ Gpt4O20240806Southcentralus: "gpt-4o-2024-08-06:southcentralus",
+ Gpt4OMini20240718Westus: "gpt-4o-mini-2024-07-18:westus",
+ Gpt4OMini20240718Westus3: "gpt-4o-mini-2024-07-18:westus3",
+ Gpt4OMini20240718Eastus: "gpt-4o-mini-2024-07-18:eastus",
+ Gpt4OMini20240718Eastus2: "gpt-4o-mini-2024-07-18:eastus2",
+ Gpt4OMini20240718Northcentralus: "gpt-4o-mini-2024-07-18:northcentralus",
+ Gpt4OMini20240718Southcentralus: "gpt-4o-mini-2024-07-18:southcentralus",
+ Gpt4O20240513Eastus2: "gpt-4o-2024-05-13:eastus2",
+ Gpt4O20240513Eastus: "gpt-4o-2024-05-13:eastus",
+ Gpt4O20240513Northcentralus: "gpt-4o-2024-05-13:northcentralus",
+ Gpt4O20240513Southcentralus: "gpt-4o-2024-05-13:southcentralus",
+ Gpt4O20240513Westus3: "gpt-4o-2024-05-13:westus3",
+ Gpt4O20240513Westus: "gpt-4o-2024-05-13:westus",
+ Gpt4Turbo20240409Eastus2: "gpt-4-turbo-2024-04-09:eastus2",
+ Gpt40125PreviewEastus: "gpt-4-0125-preview:eastus",
+ Gpt40125PreviewNorthcentralus: "gpt-4-0125-preview:northcentralus",
+ Gpt40125PreviewSouthcentralus: "gpt-4-0125-preview:southcentralus",
+ Gpt41106PreviewAustralia: "gpt-4-1106-preview:australia",
+ Gpt41106PreviewCanadaeast: "gpt-4-1106-preview:canadaeast",
+ Gpt41106PreviewFrance: "gpt-4-1106-preview:france",
+ Gpt41106PreviewIndia: "gpt-4-1106-preview:india",
+ Gpt41106PreviewNorway: "gpt-4-1106-preview:norway",
+ Gpt41106PreviewSwedencentral: "gpt-4-1106-preview:swedencentral",
+ Gpt41106PreviewUk: "gpt-4-1106-preview:uk",
+ Gpt41106PreviewWestus: "gpt-4-1106-preview:westus",
+ Gpt41106PreviewWestus3: "gpt-4-1106-preview:westus3",
+ Gpt40613Canadaeast: "gpt-4-0613:canadaeast",
+ Gpt35Turbo0125Canadaeast: "gpt-3.5-turbo-0125:canadaeast",
+ Gpt35Turbo0125Northcentralus: "gpt-3.5-turbo-0125:northcentralus",
+ Gpt35Turbo0125Southcentralus: "gpt-3.5-turbo-0125:southcentralus",
+ Gpt35Turbo1106Canadaeast: "gpt-3.5-turbo-1106:canadaeast",
+ Gpt35Turbo1106Westus: "gpt-3.5-turbo-1106:westus",
} as const;
diff --git a/src/api/types/OutputTool.ts b/src/api/types/OutputTool.ts
index 554d913..97be16b 100644
--- a/src/api/types/OutputTool.ts
+++ b/src/api/types/OutputTool.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface OutputTool {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/QueryTool.ts b/src/api/types/QueryTool.ts
index d5808f3..fa2262b 100644
--- a/src/api/types/QueryTool.ts
+++ b/src/api/types/QueryTool.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface QueryTool {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/ResponseCompletedEvent.ts b/src/api/types/ResponseCompletedEvent.ts
new file mode 100644
index 0000000..8007c6b
--- /dev/null
+++ b/src/api/types/ResponseCompletedEvent.ts
@@ -0,0 +1,12 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as Vapi from "../index";
+
+export interface ResponseCompletedEvent {
+ /** The completed response */
+ response: Vapi.ResponseObject;
+ /** Event type */
+ type: "response.completed";
+}
diff --git a/src/api/types/ResponseErrorEvent.ts b/src/api/types/ResponseErrorEvent.ts
new file mode 100644
index 0000000..4fc62db
--- /dev/null
+++ b/src/api/types/ResponseErrorEvent.ts
@@ -0,0 +1,16 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+export interface ResponseErrorEvent {
+ /** Event type */
+ type: "error";
+ /** Error code */
+ code: string;
+ /** Error message */
+ message: string;
+ /** Parameter that caused the error */
+ param?: string | null;
+ /** Sequence number of the event */
+ sequence_number: number;
+}
diff --git a/src/api/types/ResponseObject.ts b/src/api/types/ResponseObject.ts
new file mode 100644
index 0000000..92cf924
--- /dev/null
+++ b/src/api/types/ResponseObject.ts
@@ -0,0 +1,20 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as Vapi from "../index";
+
+export interface ResponseObject {
+ /** Unique identifier for this Response */
+ id: string;
+ /** The object type */
+ object: "response";
+ /** Unix timestamp (in seconds) of when this Response was created */
+ created_at: number;
+ /** Status of the response */
+ status: Vapi.ResponseObjectStatus;
+ /** Error message if the response failed */
+ error?: string | null;
+ /** Output messages from the model */
+ output: Vapi.ResponseOutputMessage[];
+}
diff --git a/src/api/types/ResponseObjectStatus.ts b/src/api/types/ResponseObjectStatus.ts
new file mode 100644
index 0000000..58e7fdb
--- /dev/null
+++ b/src/api/types/ResponseObjectStatus.ts
@@ -0,0 +1,14 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * Status of the response
+ */
+export type ResponseObjectStatus = "completed" | "failed" | "in_progress" | "incomplete";
+export const ResponseObjectStatus = {
+ Completed: "completed",
+ Failed: "failed",
+ InProgress: "in_progress",
+ Incomplete: "incomplete",
+} as const;
diff --git a/src/api/types/ResponseOutputMessage.ts b/src/api/types/ResponseOutputMessage.ts
new file mode 100644
index 0000000..129eed5
--- /dev/null
+++ b/src/api/types/ResponseOutputMessage.ts
@@ -0,0 +1,18 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as Vapi from "../index";
+
+export interface ResponseOutputMessage {
+ /** The unique ID of the output message */
+ id: string;
+ /** Content of the output message */
+ content: Vapi.ResponseOutputText[];
+ /** The role of the output message */
+ role: "assistant";
+ /** The status of the message */
+ status: Vapi.ResponseOutputMessageStatus;
+ /** The type of the output message */
+ type: "message";
+}
diff --git a/src/api/types/ResponseOutputMessageStatus.ts b/src/api/types/ResponseOutputMessageStatus.ts
new file mode 100644
index 0000000..ef8d62c
--- /dev/null
+++ b/src/api/types/ResponseOutputMessageStatus.ts
@@ -0,0 +1,13 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * The status of the message
+ */
+export type ResponseOutputMessageStatus = "in_progress" | "completed" | "incomplete";
+export const ResponseOutputMessageStatus = {
+ InProgress: "in_progress",
+ Completed: "completed",
+ Incomplete: "incomplete",
+} as const;
diff --git a/src/api/types/ResponseOutputText.ts b/src/api/types/ResponseOutputText.ts
new file mode 100644
index 0000000..004d697
--- /dev/null
+++ b/src/api/types/ResponseOutputText.ts
@@ -0,0 +1,12 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+export interface ResponseOutputText {
+ /** Annotations in the text output */
+ annotations: Record[];
+ /** The text output from the model */
+ text: string;
+ /** The type of the output text */
+ type: "output_text";
+}
diff --git a/src/api/types/ResponseTextDeltaEvent.ts b/src/api/types/ResponseTextDeltaEvent.ts
new file mode 100644
index 0000000..fc3912f
--- /dev/null
+++ b/src/api/types/ResponseTextDeltaEvent.ts
@@ -0,0 +1,16 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+export interface ResponseTextDeltaEvent {
+ /** Index of the content part */
+ content_index: number;
+ /** Text delta being added */
+ delta: string;
+ /** ID of the output item */
+ item_id: string;
+ /** Index of the output item */
+ output_index: number;
+ /** Event type */
+ type: "response.output_text.delta";
+}
diff --git a/src/api/types/ResponseTextDoneEvent.ts b/src/api/types/ResponseTextDoneEvent.ts
new file mode 100644
index 0000000..63fcc25
--- /dev/null
+++ b/src/api/types/ResponseTextDoneEvent.ts
@@ -0,0 +1,16 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+export interface ResponseTextDoneEvent {
+ /** Index of the content part */
+ content_index: number;
+ /** ID of the output item */
+ item_id: string;
+ /** Index of the output item */
+ output_index: number;
+ /** Complete text content */
+ text: string;
+ /** Event type */
+ type: "response.output_text.done";
+}
diff --git a/src/api/types/Session.ts b/src/api/types/Session.ts
index 455387b..a33dd81 100644
--- a/src/api/types/Session.ts
+++ b/src/api/types/Session.ts
@@ -24,7 +24,7 @@ export interface Session {
* If assistantId is provided, this will be ignored.
*/
assistant?: Vapi.CreateAssistantDto;
- /** Array of chat messages in the session */
+ /** This is an array of chat messages in the session. */
messages?: Vapi.SessionMessagesItem[];
/** This is the customer information associated with this session. */
customer?: Vapi.CreateCustomerDto;
diff --git a/src/api/types/SlackSendMessageTool.ts b/src/api/types/SlackSendMessageTool.ts
index 34fc041..420b2c1 100644
--- a/src/api/types/SlackSendMessageTool.ts
+++ b/src/api/types/SlackSendMessageTool.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface SlackSendMessageTool {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/SmsTool.ts b/src/api/types/SmsTool.ts
index 2eab901..a4b4a08 100644
--- a/src/api/types/SmsTool.ts
+++ b/src/api/types/SmsTool.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface SmsTool {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/TextEditorTool.ts b/src/api/types/TextEditorTool.ts
index c9290de..cbe5ac0 100644
--- a/src/api/types/TextEditorTool.ts
+++ b/src/api/types/TextEditorTool.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface TextEditorTool {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/TextEditorToolWithToolCall.ts b/src/api/types/TextEditorToolWithToolCall.ts
index a8a5c1a..2a8a702 100644
--- a/src/api/types/TextEditorToolWithToolCall.ts
+++ b/src/api/types/TextEditorToolWithToolCall.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface TextEditorToolWithToolCall {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/TransferCallTool.ts b/src/api/types/TransferCallTool.ts
index 602c655..4389461 100644
--- a/src/api/types/TransferCallTool.ts
+++ b/src/api/types/TransferCallTool.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface TransferCallTool {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/UpdateBashToolDto.ts b/src/api/types/UpdateBashToolDto.ts
index 3e8035a..bddb4f2 100644
--- a/src/api/types/UpdateBashToolDto.ts
+++ b/src/api/types/UpdateBashToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface UpdateBashToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/UpdateComputerToolDto.ts b/src/api/types/UpdateComputerToolDto.ts
index cee69c2..97698af 100644
--- a/src/api/types/UpdateComputerToolDto.ts
+++ b/src/api/types/UpdateComputerToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface UpdateComputerToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/UpdateDtmfToolDto.ts b/src/api/types/UpdateDtmfToolDto.ts
index bcf9afe..5fd5edb 100644
--- a/src/api/types/UpdateDtmfToolDto.ts
+++ b/src/api/types/UpdateDtmfToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface UpdateDtmfToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/UpdateEndCallToolDto.ts b/src/api/types/UpdateEndCallToolDto.ts
index b404132..8074d69 100644
--- a/src/api/types/UpdateEndCallToolDto.ts
+++ b/src/api/types/UpdateEndCallToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface UpdateEndCallToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/UpdateFunctionToolDto.ts b/src/api/types/UpdateFunctionToolDto.ts
index 60094c4..d3966f3 100644
--- a/src/api/types/UpdateFunctionToolDto.ts
+++ b/src/api/types/UpdateFunctionToolDto.ts
@@ -5,22 +5,22 @@
import * as Vapi from "../index";
export interface UpdateFunctionToolDto {
+ /**
+ * These are the messages that will be spoken to the user as the tool is running.
+ *
+ * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.
+ */
+ messages?: Vapi.UpdateFunctionToolDtoMessagesItem[];
/**
* This determines if the tool is async.
*
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
+ * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
*
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
+ * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
*
- * Defaults to synchronous (`false`).
+ * Defaults to synchronous (`false`).
*/
async?: boolean;
- /**
- * These are the messages that will be spoken to the user as the tool is running.
- *
- * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.
- */
- messages?: Vapi.UpdateFunctionToolDtoMessagesItem[];
/**
* This is the server where a `tool-calls` webhook will be sent.
*
diff --git a/src/api/types/UpdateGhlToolDto.ts b/src/api/types/UpdateGhlToolDto.ts
index 0947768..b62a03c 100644
--- a/src/api/types/UpdateGhlToolDto.ts
+++ b/src/api/types/UpdateGhlToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface UpdateGhlToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/UpdateGoHighLevelCalendarAvailabilityToolDto.ts b/src/api/types/UpdateGoHighLevelCalendarAvailabilityToolDto.ts
index 26b6a51..f6745ec 100644
--- a/src/api/types/UpdateGoHighLevelCalendarAvailabilityToolDto.ts
+++ b/src/api/types/UpdateGoHighLevelCalendarAvailabilityToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface UpdateGoHighLevelCalendarAvailabilityToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/UpdateGoHighLevelCalendarEventCreateToolDto.ts b/src/api/types/UpdateGoHighLevelCalendarEventCreateToolDto.ts
index 9e01b3f..f127a24 100644
--- a/src/api/types/UpdateGoHighLevelCalendarEventCreateToolDto.ts
+++ b/src/api/types/UpdateGoHighLevelCalendarEventCreateToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface UpdateGoHighLevelCalendarEventCreateToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/UpdateGoHighLevelContactCreateToolDto.ts b/src/api/types/UpdateGoHighLevelContactCreateToolDto.ts
index d620af1..d02010d 100644
--- a/src/api/types/UpdateGoHighLevelContactCreateToolDto.ts
+++ b/src/api/types/UpdateGoHighLevelContactCreateToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface UpdateGoHighLevelContactCreateToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/UpdateGoHighLevelContactGetToolDto.ts b/src/api/types/UpdateGoHighLevelContactGetToolDto.ts
index bd9cd8e..90dbf0e 100644
--- a/src/api/types/UpdateGoHighLevelContactGetToolDto.ts
+++ b/src/api/types/UpdateGoHighLevelContactGetToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface UpdateGoHighLevelContactGetToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/UpdateGoogleCalendarCheckAvailabilityToolDto.ts b/src/api/types/UpdateGoogleCalendarCheckAvailabilityToolDto.ts
index ea3d008..8c6e81d 100644
--- a/src/api/types/UpdateGoogleCalendarCheckAvailabilityToolDto.ts
+++ b/src/api/types/UpdateGoogleCalendarCheckAvailabilityToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface UpdateGoogleCalendarCheckAvailabilityToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/UpdateGoogleCalendarCreateEventToolDto.ts b/src/api/types/UpdateGoogleCalendarCreateEventToolDto.ts
index f3908aa..80ae495 100644
--- a/src/api/types/UpdateGoogleCalendarCreateEventToolDto.ts
+++ b/src/api/types/UpdateGoogleCalendarCreateEventToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface UpdateGoogleCalendarCreateEventToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/UpdateGoogleSheetsRowAppendToolDto.ts b/src/api/types/UpdateGoogleSheetsRowAppendToolDto.ts
index 8f57f60..216140f 100644
--- a/src/api/types/UpdateGoogleSheetsRowAppendToolDto.ts
+++ b/src/api/types/UpdateGoogleSheetsRowAppendToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface UpdateGoogleSheetsRowAppendToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/UpdateMakeToolDto.ts b/src/api/types/UpdateMakeToolDto.ts
index 6979c8e..5097861 100644
--- a/src/api/types/UpdateMakeToolDto.ts
+++ b/src/api/types/UpdateMakeToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface UpdateMakeToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/UpdateMcpToolDto.ts b/src/api/types/UpdateMcpToolDto.ts
index c9044d2..65555e1 100644
--- a/src/api/types/UpdateMcpToolDto.ts
+++ b/src/api/types/UpdateMcpToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface UpdateMcpToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/UpdateOutputToolDto.ts b/src/api/types/UpdateOutputToolDto.ts
index 7417bc1..24c4c52 100644
--- a/src/api/types/UpdateOutputToolDto.ts
+++ b/src/api/types/UpdateOutputToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface UpdateOutputToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/UpdateQueryToolDto.ts b/src/api/types/UpdateQueryToolDto.ts
index 38fe9e4..b32e53c 100644
--- a/src/api/types/UpdateQueryToolDto.ts
+++ b/src/api/types/UpdateQueryToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface UpdateQueryToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/UpdateSlackSendMessageToolDto.ts b/src/api/types/UpdateSlackSendMessageToolDto.ts
index 28b54e2..f6a7db7 100644
--- a/src/api/types/UpdateSlackSendMessageToolDto.ts
+++ b/src/api/types/UpdateSlackSendMessageToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface UpdateSlackSendMessageToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/UpdateSmsToolDto.ts b/src/api/types/UpdateSmsToolDto.ts
index ca7df6e..55725c1 100644
--- a/src/api/types/UpdateSmsToolDto.ts
+++ b/src/api/types/UpdateSmsToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface UpdateSmsToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/UpdateTextEditorToolDto.ts b/src/api/types/UpdateTextEditorToolDto.ts
index 5e78f51..2175efd 100644
--- a/src/api/types/UpdateTextEditorToolDto.ts
+++ b/src/api/types/UpdateTextEditorToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface UpdateTextEditorToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/UpdateTransferCallToolDto.ts b/src/api/types/UpdateTransferCallToolDto.ts
index 566d586..c4c83b1 100644
--- a/src/api/types/UpdateTransferCallToolDto.ts
+++ b/src/api/types/UpdateTransferCallToolDto.ts
@@ -5,16 +5,6 @@
import * as Vapi from "../index";
export interface UpdateTransferCallToolDto {
- /**
- * This determines if the tool is async.
- *
- * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.
- *
- * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.
- *
- * Defaults to synchronous (`false`).
- */
- async?: boolean;
/**
* These are the messages that will be spoken to the user as the tool is running.
*
diff --git a/src/api/types/VariableExtractionPlan.ts b/src/api/types/VariableExtractionPlan.ts
index 171459a..9e5c031 100644
--- a/src/api/types/VariableExtractionPlan.ts
+++ b/src/api/types/VariableExtractionPlan.ts
@@ -2,8 +2,4 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Vapi from "../index";
-
-export interface VariableExtractionPlan {
- output: Vapi.VariableExtractionSchema[];
-}
+export interface VariableExtractionPlan {}
diff --git a/src/api/types/VariableExtractionSchema.ts b/src/api/types/VariableExtractionSchema.ts
deleted file mode 100644
index 0a32fca..0000000
--- a/src/api/types/VariableExtractionSchema.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-
-import * as Vapi from "../index";
-
-export interface VariableExtractionSchema {
- /**
- * This is the type of output you'd like.
- *
- * `string`, `number`, `boolean` are primitive types.
- */
- type: Vapi.VariableExtractionSchemaType;
- /**
- * This is the title of the variable.
- *
- * It can only contain letters, numbers, and underscores.
- */
- title: string;
- /** This is the description to help the model understand what it needs to output. */
- description: string;
- /** This is the enum values to choose from. Only used if the type is `string`. */
- enum?: string[];
-}
diff --git a/src/api/types/VariableExtractionSchemaType.ts b/src/api/types/VariableExtractionSchemaType.ts
deleted file mode 100644
index 43755c6..0000000
--- a/src/api/types/VariableExtractionSchemaType.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-
-/**
- * This is the type of output you'd like.
- *
- * `string`, `number`, `boolean` are primitive types.
- */
-export type VariableExtractionSchemaType = "string" | "number" | "integer" | "boolean";
-export const VariableExtractionSchemaType = {
- String: "string",
- Number: "number",
- Integer: "integer",
- Boolean: "boolean",
-} as const;
diff --git a/src/api/types/WorkflowOpenAiModel.ts b/src/api/types/WorkflowOpenAiModel.ts
index 7fa6f79..fdd8686 100644
--- a/src/api/types/WorkflowOpenAiModel.ts
+++ b/src/api/types/WorkflowOpenAiModel.ts
@@ -7,7 +7,12 @@ import * as Vapi from "../index";
export interface WorkflowOpenAiModel {
/** This is the provider of the model (`openai`). */
provider: "openai";
- /** This is the specific OpenAI model that will be used. */
+ /**
+ * This is the OpenAI model that will be used.
+ *
+ * When using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense.
+ * This is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/.
+ */
model: Vapi.WorkflowOpenAiModelModel;
/** This is the temperature of the model. */
temperature?: number;
diff --git a/src/api/types/WorkflowOpenAiModelModel.ts b/src/api/types/WorkflowOpenAiModelModel.ts
index 11b2ee1..f19d191 100644
--- a/src/api/types/WorkflowOpenAiModelModel.ts
+++ b/src/api/types/WorkflowOpenAiModelModel.ts
@@ -3,9 +3,15 @@
*/
/**
- * This is the specific OpenAI model that will be used.
+ * This is the OpenAI model that will be used.
+ *
+ * When using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense.
+ * This is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/.
*/
export type WorkflowOpenAiModelModel =
+ | "gpt-4.1-2025-04-14"
+ | "gpt-4.1-mini-2025-04-14"
+ | "gpt-4.1-nano-2025-04-14"
| "gpt-4.1"
| "gpt-4.1-mini"
| "gpt-4.1-nano"
@@ -38,8 +44,71 @@ export type WorkflowOpenAiModelModel =
| "gpt-3.5-turbo-0125"
| "gpt-3.5-turbo-1106"
| "gpt-3.5-turbo-16k"
- | "gpt-3.5-turbo-0613";
+ | "gpt-3.5-turbo-0613"
+ | "gpt-4.1-2025-04-14:westus"
+ | "gpt-4.1-2025-04-14:eastus2"
+ | "gpt-4.1-2025-04-14:eastus"
+ | "gpt-4.1-2025-04-14:westus3"
+ | "gpt-4.1-2025-04-14:northcentralus"
+ | "gpt-4.1-2025-04-14:southcentralus"
+ | "gpt-4.1-mini-2025-04-14:westus"
+ | "gpt-4.1-mini-2025-04-14:eastus2"
+ | "gpt-4.1-mini-2025-04-14:eastus"
+ | "gpt-4.1-mini-2025-04-14:westus3"
+ | "gpt-4.1-mini-2025-04-14:northcentralus"
+ | "gpt-4.1-mini-2025-04-14:southcentralus"
+ | "gpt-4.1-nano-2025-04-14:westus"
+ | "gpt-4.1-nano-2025-04-14:eastus2"
+ | "gpt-4.1-nano-2025-04-14:westus3"
+ | "gpt-4.1-nano-2025-04-14:northcentralus"
+ | "gpt-4.1-nano-2025-04-14:southcentralus"
+ | "gpt-4o-2024-11-20:swedencentral"
+ | "gpt-4o-2024-11-20:westus"
+ | "gpt-4o-2024-11-20:eastus2"
+ | "gpt-4o-2024-11-20:eastus"
+ | "gpt-4o-2024-11-20:westus3"
+ | "gpt-4o-2024-11-20:southcentralus"
+ | "gpt-4o-2024-08-06:westus"
+ | "gpt-4o-2024-08-06:westus3"
+ | "gpt-4o-2024-08-06:eastus"
+ | "gpt-4o-2024-08-06:eastus2"
+ | "gpt-4o-2024-08-06:northcentralus"
+ | "gpt-4o-2024-08-06:southcentralus"
+ | "gpt-4o-mini-2024-07-18:westus"
+ | "gpt-4o-mini-2024-07-18:westus3"
+ | "gpt-4o-mini-2024-07-18:eastus"
+ | "gpt-4o-mini-2024-07-18:eastus2"
+ | "gpt-4o-mini-2024-07-18:northcentralus"
+ | "gpt-4o-mini-2024-07-18:southcentralus"
+ | "gpt-4o-2024-05-13:eastus2"
+ | "gpt-4o-2024-05-13:eastus"
+ | "gpt-4o-2024-05-13:northcentralus"
+ | "gpt-4o-2024-05-13:southcentralus"
+ | "gpt-4o-2024-05-13:westus3"
+ | "gpt-4o-2024-05-13:westus"
+ | "gpt-4-turbo-2024-04-09:eastus2"
+ | "gpt-4-0125-preview:eastus"
+ | "gpt-4-0125-preview:northcentralus"
+ | "gpt-4-0125-preview:southcentralus"
+ | "gpt-4-1106-preview:australia"
+ | "gpt-4-1106-preview:canadaeast"
+ | "gpt-4-1106-preview:france"
+ | "gpt-4-1106-preview:india"
+ | "gpt-4-1106-preview:norway"
+ | "gpt-4-1106-preview:swedencentral"
+ | "gpt-4-1106-preview:uk"
+ | "gpt-4-1106-preview:westus"
+ | "gpt-4-1106-preview:westus3"
+ | "gpt-4-0613:canadaeast"
+ | "gpt-3.5-turbo-0125:canadaeast"
+ | "gpt-3.5-turbo-0125:northcentralus"
+ | "gpt-3.5-turbo-0125:southcentralus"
+ | "gpt-3.5-turbo-1106:canadaeast"
+ | "gpt-3.5-turbo-1106:westus";
export const WorkflowOpenAiModelModel = {
+ Gpt4120250414: "gpt-4.1-2025-04-14",
+ Gpt41Mini20250414: "gpt-4.1-mini-2025-04-14",
+ Gpt41Nano20250414: "gpt-4.1-nano-2025-04-14",
Gpt41: "gpt-4.1",
Gpt41Mini: "gpt-4.1-mini",
Gpt41Nano: "gpt-4.1-nano",
@@ -73,4 +142,64 @@ export const WorkflowOpenAiModelModel = {
Gpt35Turbo1106: "gpt-3.5-turbo-1106",
Gpt35Turbo16K: "gpt-3.5-turbo-16k",
Gpt35Turbo0613: "gpt-3.5-turbo-0613",
+ Gpt4120250414Westus: "gpt-4.1-2025-04-14:westus",
+ Gpt4120250414Eastus2: "gpt-4.1-2025-04-14:eastus2",
+ Gpt4120250414Eastus: "gpt-4.1-2025-04-14:eastus",
+ Gpt4120250414Westus3: "gpt-4.1-2025-04-14:westus3",
+ Gpt4120250414Northcentralus: "gpt-4.1-2025-04-14:northcentralus",
+ Gpt4120250414Southcentralus: "gpt-4.1-2025-04-14:southcentralus",
+ Gpt41Mini20250414Westus: "gpt-4.1-mini-2025-04-14:westus",
+ Gpt41Mini20250414Eastus2: "gpt-4.1-mini-2025-04-14:eastus2",
+ Gpt41Mini20250414Eastus: "gpt-4.1-mini-2025-04-14:eastus",
+ Gpt41Mini20250414Westus3: "gpt-4.1-mini-2025-04-14:westus3",
+ Gpt41Mini20250414Northcentralus: "gpt-4.1-mini-2025-04-14:northcentralus",
+ Gpt41Mini20250414Southcentralus: "gpt-4.1-mini-2025-04-14:southcentralus",
+ Gpt41Nano20250414Westus: "gpt-4.1-nano-2025-04-14:westus",
+ Gpt41Nano20250414Eastus2: "gpt-4.1-nano-2025-04-14:eastus2",
+ Gpt41Nano20250414Westus3: "gpt-4.1-nano-2025-04-14:westus3",
+ Gpt41Nano20250414Northcentralus: "gpt-4.1-nano-2025-04-14:northcentralus",
+ Gpt41Nano20250414Southcentralus: "gpt-4.1-nano-2025-04-14:southcentralus",
+ Gpt4O20241120Swedencentral: "gpt-4o-2024-11-20:swedencentral",
+ Gpt4O20241120Westus: "gpt-4o-2024-11-20:westus",
+ Gpt4O20241120Eastus2: "gpt-4o-2024-11-20:eastus2",
+ Gpt4O20241120Eastus: "gpt-4o-2024-11-20:eastus",
+ Gpt4O20241120Westus3: "gpt-4o-2024-11-20:westus3",
+ Gpt4O20241120Southcentralus: "gpt-4o-2024-11-20:southcentralus",
+ Gpt4O20240806Westus: "gpt-4o-2024-08-06:westus",
+ Gpt4O20240806Westus3: "gpt-4o-2024-08-06:westus3",
+ Gpt4O20240806Eastus: "gpt-4o-2024-08-06:eastus",
+ Gpt4O20240806Eastus2: "gpt-4o-2024-08-06:eastus2",
+ Gpt4O20240806Northcentralus: "gpt-4o-2024-08-06:northcentralus",
+ Gpt4O20240806Southcentralus: "gpt-4o-2024-08-06:southcentralus",
+ Gpt4OMini20240718Westus: "gpt-4o-mini-2024-07-18:westus",
+ Gpt4OMini20240718Westus3: "gpt-4o-mini-2024-07-18:westus3",
+ Gpt4OMini20240718Eastus: "gpt-4o-mini-2024-07-18:eastus",
+ Gpt4OMini20240718Eastus2: "gpt-4o-mini-2024-07-18:eastus2",
+ Gpt4OMini20240718Northcentralus: "gpt-4o-mini-2024-07-18:northcentralus",
+ Gpt4OMini20240718Southcentralus: "gpt-4o-mini-2024-07-18:southcentralus",
+ Gpt4O20240513Eastus2: "gpt-4o-2024-05-13:eastus2",
+ Gpt4O20240513Eastus: "gpt-4o-2024-05-13:eastus",
+ Gpt4O20240513Northcentralus: "gpt-4o-2024-05-13:northcentralus",
+ Gpt4O20240513Southcentralus: "gpt-4o-2024-05-13:southcentralus",
+ Gpt4O20240513Westus3: "gpt-4o-2024-05-13:westus3",
+ Gpt4O20240513Westus: "gpt-4o-2024-05-13:westus",
+ Gpt4Turbo20240409Eastus2: "gpt-4-turbo-2024-04-09:eastus2",
+ Gpt40125PreviewEastus: "gpt-4-0125-preview:eastus",
+ Gpt40125PreviewNorthcentralus: "gpt-4-0125-preview:northcentralus",
+ Gpt40125PreviewSouthcentralus: "gpt-4-0125-preview:southcentralus",
+ Gpt41106PreviewAustralia: "gpt-4-1106-preview:australia",
+ Gpt41106PreviewCanadaeast: "gpt-4-1106-preview:canadaeast",
+ Gpt41106PreviewFrance: "gpt-4-1106-preview:france",
+ Gpt41106PreviewIndia: "gpt-4-1106-preview:india",
+ Gpt41106PreviewNorway: "gpt-4-1106-preview:norway",
+ Gpt41106PreviewSwedencentral: "gpt-4-1106-preview:swedencentral",
+ Gpt41106PreviewUk: "gpt-4-1106-preview:uk",
+ Gpt41106PreviewWestus: "gpt-4-1106-preview:westus",
+ Gpt41106PreviewWestus3: "gpt-4-1106-preview:westus3",
+ Gpt40613Canadaeast: "gpt-4-0613:canadaeast",
+ Gpt35Turbo0125Canadaeast: "gpt-3.5-turbo-0125:canadaeast",
+ Gpt35Turbo0125Northcentralus: "gpt-3.5-turbo-0125:northcentralus",
+ Gpt35Turbo0125Southcentralus: "gpt-3.5-turbo-0125:southcentralus",
+ Gpt35Turbo1106Canadaeast: "gpt-3.5-turbo-1106:canadaeast",
+ Gpt35Turbo1106Westus: "gpt-3.5-turbo-1106:westus",
} as const;
diff --git a/src/api/types/index.ts b/src/api/types/index.ts
index 8554642..616f7f8 100644
--- a/src/api/types/index.ts
+++ b/src/api/types/index.ts
@@ -170,8 +170,6 @@ export * from "./WorkflowOpenAiModel";
export * from "./WorkflowAnthropicModelModel";
export * from "./WorkflowAnthropicModel";
export * from "./GlobalNodePlan";
-export * from "./VariableExtractionSchemaType";
-export * from "./VariableExtractionSchema";
export * from "./VariableExtractionPlan";
export * from "./ConversationNodeModel";
export * from "./ConversationNodeTranscriber";
@@ -452,29 +450,31 @@ export * from "./ToolCallFunction";
export * from "./ToolCall";
export * from "./AssistantMessage";
export * from "./ToolMessage";
-export * from "./CreateChatStreamResponse";
+export * from "./FunctionCall";
export * from "./ChatInputItem";
export * from "./ChatInput";
export * from "./ChatMessagesItem";
export * from "./ChatOutputItem";
export * from "./Chat";
+export * from "./GetChatPaginatedDtoSortOrder";
+export * from "./GetChatPaginatedDto";
export * from "./ChatPaginatedResponse";
-export * from "./CreateChatDtoInputItem";
-export * from "./CreateChatDtoInput";
-export * from "./CreateChatDto";
-export * from "./OpenAiResponsesRequestInputItem";
-export * from "./OpenAiResponsesRequestInput";
-export * from "./OpenAiResponsesRequest";
-export * from "./CreateSessionDtoStatus";
-export * from "./CreateSessionDtoMessagesItem";
-export * from "./CreateSessionDto";
+export * from "./CreateChatStreamResponse";
+export * from "./ResponseOutputText";
+export * from "./ResponseOutputMessageStatus";
+export * from "./ResponseOutputMessage";
+export * from "./ResponseObjectStatus";
+export * from "./ResponseObject";
+export * from "./ResponseTextDeltaEvent";
+export * from "./ResponseTextDoneEvent";
+export * from "./ResponseCompletedEvent";
+export * from "./ResponseErrorEvent";
export * from "./SessionStatus";
export * from "./SessionMessagesItem";
export * from "./Session";
+export * from "./GetSessionPaginatedDtoSortOrder";
+export * from "./GetSessionPaginatedDto";
export * from "./SessionPaginatedResponse";
-export * from "./UpdateSessionDtoStatus";
-export * from "./UpdateSessionDtoMessagesItem";
-export * from "./UpdateSessionDto";
export * from "./AssistantTranscriber";
export * from "./AssistantModel";
export * from "./AssistantVoice";
diff --git a/yarn.lock b/yarn.lock
index e36a843..e2e7d67 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -656,16 +656,16 @@
form-data "^4.0.0"
"@types/node@*":
- version "22.15.23"
- resolved "https://registry.yarnpkg.com/@types/node/-/node-22.15.23.tgz#a0b7c03f951f1ffe381a6a345c68d80e48043dd0"
- integrity sha512-7Ec1zaFPF4RJ0eXu1YT/xgiebqwqoJz8rYPDi/O2BcZ++Wpt0Kq9cl0eg6NN6bYbPnR67ZLo7St5Q3UK0SnARw==
+ version "22.15.24"
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-22.15.24.tgz#3b31f1650571c0123388db29d95c12e6f6761744"
+ integrity sha512-w9CZGm9RDjzTh/D+hFwlBJ3ziUaVw7oufKA3vOFSOZlzmW9AkZnfjPb+DLnrV6qtgL/LNmP0/2zBNCFHL3F0ng==
dependencies:
undici-types "~6.21.0"
"@types/node@^18.19.70":
- version "18.19.104"
- resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.104.tgz#a515c0c6ea7672473873e73a4cad3d216a081735"
- integrity sha512-mqjoYx1RjmN61vjnHWfiWzAlwvBKutoUdm+kYLPnjI5DCh8ZqofUhaTbT3WLl7bt3itR8DuCf8ShnxI0JvIC3g==
+ version "18.19.105"
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.105.tgz#44bae77ea9832da4357e1d35df37cb86927e1405"
+ integrity sha512-a+DrwD2VyzqQR2W0EVF8EaCh6Em4ilQAYLEPZnMNkQHXR7ziWW7RUhZMWZAgRpkDDAdUIcJOXSPJT/zBEwz3sA==
dependencies:
undici-types "~5.26.4"
@@ -1047,12 +1047,12 @@ braces@^3.0.3:
fill-range "^7.1.1"
browserslist@^4.24.0:
- version "4.24.5"
- resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.5.tgz#aa0f5b8560fe81fde84c6dcb38f759bafba0e11b"
- integrity sha512-FDToo4Wo82hIdgc1CQ+NQD0hEhmpPjrZ3hiUgwgOG6IuTdlpr8jdjyG24P6cNP1yJpTLzS5OcGgSw0xmDU1/Tw==
+ version "4.25.0"
+ resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.25.0.tgz#986aa9c6d87916885da2b50d8eb577ac8d133b2c"
+ integrity sha512-PJ8gYKeS5e/whHBh8xrwYK+dAvEj7JXtz6uTucnMRB8OiGTsKccFekoRrjajPBHV8oOY+2tI4uxeceSimKwMFA==
dependencies:
- caniuse-lite "^1.0.30001716"
- electron-to-chromium "^1.5.149"
+ caniuse-lite "^1.0.30001718"
+ electron-to-chromium "^1.5.160"
node-releases "^2.0.19"
update-browserslist-db "^1.1.3"
@@ -1114,10 +1114,10 @@ camelcase@^6.2.0:
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a"
integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==
-caniuse-lite@^1.0.30001716:
- version "1.0.30001718"
- resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001718.tgz#dae13a9c80d517c30c6197515a96131c194d8f82"
- integrity sha512-AflseV1ahcSunK53NfEs9gFWgOEmzr0f+kaMFA4xiLZlr9Hzt7HxcSpIFcnNCUkz6R6dWKa54rUz3HUmI3nVcw==
+caniuse-lite@^1.0.30001718:
+ version "1.0.30001720"
+ resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001720.tgz#c138cb6026d362be9d8d7b0e4bcd0183a850edfd"
+ integrity sha512-Ec/2yV2nNPwb4DnTANEV99ZWwm3ZWfdlfkQbWSDDt+PsXEVYwlhPH8tdMaPunYTKKmz7AnHi2oNEi1GcmKCD8g==
chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0:
version "4.1.2"
@@ -1308,10 +1308,10 @@ ejs@^3.1.10:
dependencies:
jake "^10.8.5"
-electron-to-chromium@^1.5.149:
- version "1.5.159"
- resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.159.tgz#b909c4a5dbd00674f18419199f71c945a199effe"
- integrity sha512-CEvHptWAMV5p6GJ0Lq8aheyvVbfzVrv5mmidu1D3pidoVNkB3tTBsTMVtPJ+rzRK5oV229mCLz9Zj/hNvU8GBA==
+electron-to-chromium@^1.5.160:
+ version "1.5.161"
+ resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.161.tgz#650376bd3be7ff8e581031409fc2d4f150620b12"
+ integrity sha512-hwtetwfKNZo/UlwHIVBlKZVdy7o8bIZxxKs0Mv/ROPiQQQmDgdm5a+KvKtBsxM8ZjFzTaCeLoodZ8jiBE3o9rA==
emittery@^0.13.1:
version "0.13.1"