diff --git a/.fern/metadata.json b/.fern/metadata.json
index a9cbfad4..f362a029 100644
--- a/.fern/metadata.json
+++ b/.fern/metadata.json
@@ -1,5 +1,5 @@
{
- "cliVersion": "3.47.5",
+ "cliVersion": "3.64.2",
"generatorName": "fernapi/fern-typescript-sdk",
"generatorVersion": "3.36.0",
"generatorConfig": {
diff --git a/package.json b/package.json
index 01f231f5..4e5fa759 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@elevenlabs/elevenlabs-js",
- "version": "v2.34.0",
+ "version": "v2.35.0",
"private": false,
"repository": "github:elevenlabs/elevenlabs-js",
"license": "MIT",
diff --git a/reference.md b/reference.md
index 2aab15f1..8fa7f9eb 100644
--- a/reference.md
+++ b/reference.md
@@ -4695,6 +4695,81 @@ await client.conversationalAi.whatsapp.outboundCall({
+
+
+
+
+client.conversationalAi.whatsapp.outboundMessage({ ...params }) -> ElevenLabs.WhatsAppOutboundMessageResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Send an outbound message via WhatsApp
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.conversationalAi.whatsapp.outboundMessage({
+ whatsappPhoneNumberId: "whatsapp_phone_number_id",
+ whatsappUserId: "whatsapp_user_id",
+ templateName: "template_name",
+ templateLanguageCode: "template_language_code",
+ templateParams: [{
+ type: "body",
+ parameters: [{
+ text: "text"
+ }]
+ }],
+ agentId: "agent_id"
+});
+
+```
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `ElevenLabs.conversationalAi.BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePost`
+
+
+
+
+
+-
+
+**requestOptions:** `WhatsappClient.RequestOptions`
+
+
+
+
+
+
+
@@ -13658,6 +13733,69 @@ await client.studio.projects.convert("21m00Tcm4TlvDq8ikWAM");
+
+
+
+
+client.studio.projects.getMutedTracks(project_id) -> ElevenLabs.ProjectMutedTracksResponseModel
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns a list of chapter IDs that have muted tracks in a project.
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.studio.projects.getMutedTracks("21m00Tcm4TlvDq8ikWAM");
+
+```
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**project_id:** `string` — The ID of the Studio project.
+
+
+
+
+
+-
+
+**requestOptions:** `ProjectsClient.RequestOptions`
+
+
+
+
+
+
+
diff --git a/src/BaseClient.ts b/src/BaseClient.ts
index c2107817..dca14ec3 100644
--- a/src/BaseClient.ts
+++ b/src/BaseClient.ts
@@ -47,8 +47,8 @@ export function normalizeClientOptions(options: T):
{
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
- "X-Fern-SDK-Version": "v2.34.0",
- "User-Agent": "@elevenlabs/elevenlabs-js/v2.34.0",
+ "X-Fern-SDK-Version": "v2.35.0",
+ "User-Agent": "@elevenlabs/elevenlabs-js/v2.35.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
"xi-api-key": options?.apiKey,
diff --git a/src/Client.ts b/src/Client.ts
index 2101e36f..5a264ea9 100644
--- a/src/Client.ts
+++ b/src/Client.ts
@@ -165,57 +165,6 @@ export class ElevenLabsClient {
return (this._workspace ??= new WorkspaceClient(this._options));
}
- /**
- * @param {ElevenLabsClient.RequestOptions} requestOptions - Request-specific configuration.
- *
- * @example
- * await client.postV1ConvaiWhatsappAccounts()
- */
- public postV1ConvaiWhatsappAccounts(
- requestOptions?: ElevenLabsClient.RequestOptions,
- ): core.HttpResponsePromise {
- return core.HttpResponsePromise.fromPromise(this.__postV1ConvaiWhatsappAccounts(requestOptions));
- }
-
- private async __postV1ConvaiWhatsappAccounts(
- requestOptions?: ElevenLabsClient.RequestOptions,
- ): Promise> {
- const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
- this._options?.headers,
- mergeOnlyDefinedHeaders({ "xi-api-key": requestOptions?.apiKey ?? this._options?.apiKey }),
- requestOptions?.headers,
- );
- const _response = await (this._options.fetcher ?? core.fetcher)({
- url: core.url.join(
- (await core.Supplier.get(this._options.baseUrl)) ??
- (await core.Supplier.get(this._options.environment)) ??
- environments.ElevenLabsEnvironment.Production,
- "v1/convai/whatsapp-accounts",
- ),
- method: "POST",
- headers: _headers,
- queryParameters: requestOptions?.queryParams,
- timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 240) * 1000,
- maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
- abortSignal: requestOptions?.abortSignal,
- fetchFn: this._options?.fetch,
- logging: this._options.logging,
- });
- if (_response.ok) {
- return { data: undefined, rawResponse: _response.rawResponse };
- }
-
- if (_response.error.reason === "status-code") {
- throw new errors.ElevenLabsError({
- statusCode: _response.error.statusCode,
- body: _response.error.body,
- rawResponse: _response.rawResponse,
- });
- }
-
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/convai/whatsapp-accounts");
- }
-
/**
* @param {string} agent_id
* @param {string} branch_id
diff --git a/src/api/resources/conversationalAi/resources/index.ts b/src/api/resources/conversationalAi/resources/index.ts
index d310da80..14a9016a 100644
--- a/src/api/resources/conversationalAi/resources/index.ts
+++ b/src/api/resources/conversationalAi/resources/index.ts
@@ -35,5 +35,6 @@ export * from "./twilio/client/requests";
export * from "./twilio/types";
export * as whatsapp from "./whatsapp";
export * from "./whatsapp/client/requests";
+export * from "./whatsapp/types";
export * as whatsappAccounts from "./whatsappAccounts";
export * from "./whatsappAccounts/client/requests";
diff --git a/src/api/resources/conversationalAi/resources/whatsapp/client/Client.ts b/src/api/resources/conversationalAi/resources/whatsapp/client/Client.ts
index f7a0c4a6..22f526a7 100644
--- a/src/api/resources/conversationalAi/resources/whatsapp/client/Client.ts
+++ b/src/api/resources/conversationalAi/resources/whatsapp/client/Client.ts
@@ -118,4 +118,106 @@ export class WhatsappClient {
"/v1/convai/whatsapp/outbound-call",
);
}
+
+ /**
+ * Send an outbound message via WhatsApp
+ *
+ * @param {ElevenLabs.conversationalAi.BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePost} request
+ * @param {WhatsappClient.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
+ *
+ * @example
+ * await client.conversationalAi.whatsapp.outboundMessage({
+ * whatsappPhoneNumberId: "whatsapp_phone_number_id",
+ * whatsappUserId: "whatsapp_user_id",
+ * templateName: "template_name",
+ * templateLanguageCode: "template_language_code",
+ * templateParams: [{
+ * type: "body",
+ * parameters: [{
+ * text: "text"
+ * }]
+ * }],
+ * agentId: "agent_id"
+ * })
+ */
+ public outboundMessage(
+ request: ElevenLabs.conversationalAi.BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePost,
+ requestOptions?: WhatsappClient.RequestOptions,
+ ): core.HttpResponsePromise {
+ return core.HttpResponsePromise.fromPromise(this.__outboundMessage(request, requestOptions));
+ }
+
+ private async __outboundMessage(
+ request: ElevenLabs.conversationalAi.BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePost,
+ requestOptions?: WhatsappClient.RequestOptions,
+ ): Promise> {
+ const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
+ this._options?.headers,
+ mergeOnlyDefinedHeaders({ "xi-api-key": requestOptions?.apiKey ?? this._options?.apiKey }),
+ requestOptions?.headers,
+ );
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: core.url.join(
+ (await core.Supplier.get(this._options.baseUrl)) ??
+ (await core.Supplier.get(this._options.environment)) ??
+ environments.ElevenLabsEnvironment.Production,
+ "v1/convai/whatsapp/outbound-message",
+ ),
+ method: "POST",
+ headers: _headers,
+ contentType: "application/json",
+ queryParameters: requestOptions?.queryParams,
+ requestType: "json",
+ body: serializers.conversationalAi.BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePost.jsonOrThrow(
+ request,
+ { unrecognizedObjectKeys: "strip" },
+ ),
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 240) * 1000,
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
+ fetchFn: this._options?.fetch,
+ logging: this._options.logging,
+ });
+ if (_response.ok) {
+ return {
+ data: serializers.WhatsAppOutboundMessageResponse.parseOrThrow(_response.body, {
+ unrecognizedObjectKeys: "passthrough",
+ allowUnrecognizedUnionMembers: true,
+ allowUnrecognizedEnumValues: true,
+ breadcrumbsPrefix: ["response"],
+ }),
+ rawResponse: _response.rawResponse,
+ };
+ }
+
+ if (_response.error.reason === "status-code") {
+ switch (_response.error.statusCode) {
+ case 422:
+ throw new ElevenLabs.UnprocessableEntityError(
+ serializers.HttpValidationError.parseOrThrow(_response.error.body, {
+ unrecognizedObjectKeys: "passthrough",
+ allowUnrecognizedUnionMembers: true,
+ allowUnrecognizedEnumValues: true,
+ breadcrumbsPrefix: ["response"],
+ }),
+ _response.rawResponse,
+ );
+ default:
+ throw new errors.ElevenLabsError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ rawResponse: _response.rawResponse,
+ });
+ }
+ }
+
+ return handleNonStatusCodeError(
+ _response.error,
+ _response.rawResponse,
+ "POST",
+ "/v1/convai/whatsapp/outbound-message",
+ );
+ }
}
diff --git a/src/api/resources/conversationalAi/resources/whatsapp/client/requests/BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePost.ts b/src/api/resources/conversationalAi/resources/whatsapp/client/requests/BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePost.ts
new file mode 100644
index 00000000..1868498d
--- /dev/null
+++ b/src/api/resources/conversationalAi/resources/whatsapp/client/requests/BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePost.ts
@@ -0,0 +1,29 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../../../../../index";
+
+/**
+ * @example
+ * {
+ * whatsappPhoneNumberId: "whatsapp_phone_number_id",
+ * whatsappUserId: "whatsapp_user_id",
+ * templateName: "template_name",
+ * templateLanguageCode: "template_language_code",
+ * templateParams: [{
+ * type: "body",
+ * parameters: [{
+ * text: "text"
+ * }]
+ * }],
+ * agentId: "agent_id"
+ * }
+ */
+export interface BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePost {
+ whatsappPhoneNumberId: string;
+ whatsappUserId: string;
+ templateName: string;
+ templateLanguageCode: string;
+ templateParams: ElevenLabs.conversationalAi.BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem[];
+ agentId: string;
+ conversationInitiationClientData?: ElevenLabs.ConversationInitiationClientDataRequestInput;
+}
diff --git a/src/api/resources/conversationalAi/resources/whatsapp/client/requests/index.ts b/src/api/resources/conversationalAi/resources/whatsapp/client/requests/index.ts
index fe7d5c15..17944759 100644
--- a/src/api/resources/conversationalAi/resources/whatsapp/client/requests/index.ts
+++ b/src/api/resources/conversationalAi/resources/whatsapp/client/requests/index.ts
@@ -1 +1,2 @@
export type { BodyMakeAnOutboundCallViaWhatsAppV1ConvaiWhatsappOutboundCallPost } from "./BodyMakeAnOutboundCallViaWhatsAppV1ConvaiWhatsappOutboundCallPost";
+export type { BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePost } from "./BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePost";
diff --git a/src/api/resources/conversationalAi/resources/whatsapp/index.ts b/src/api/resources/conversationalAi/resources/whatsapp/index.ts
index 5ec76921..d2ec2302 100644
--- a/src/api/resources/conversationalAi/resources/whatsapp/index.ts
+++ b/src/api/resources/conversationalAi/resources/whatsapp/index.ts
@@ -1 +1,2 @@
export * from "./client";
+export * from "./types";
diff --git a/src/api/resources/conversationalAi/resources/whatsapp/types/BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem.ts b/src/api/resources/conversationalAi/resources/whatsapp/types/BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem.ts
new file mode 100644
index 00000000..80561015
--- /dev/null
+++ b/src/api/resources/conversationalAi/resources/whatsapp/types/BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem.ts
@@ -0,0 +1,22 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../../../../index";
+
+export type BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem =
+ | ElevenLabs.conversationalAi.BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem.Body
+ | ElevenLabs.conversationalAi.BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem.Button
+ | ElevenLabs.conversationalAi.BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem.Header;
+
+export namespace BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem {
+ export interface Body extends ElevenLabs.WhatsAppTemplateBodyComponentParams {
+ type: "body";
+ }
+
+ export interface Button extends ElevenLabs.WhatsAppTemplateButtonComponentParams {
+ type: "button";
+ }
+
+ export interface Header extends ElevenLabs.WhatsAppTemplateHeaderComponentParams {
+ type: "header";
+ }
+}
diff --git a/src/api/resources/conversationalAi/resources/whatsapp/types/index.ts b/src/api/resources/conversationalAi/resources/whatsapp/types/index.ts
new file mode 100644
index 00000000..f130fa28
--- /dev/null
+++ b/src/api/resources/conversationalAi/resources/whatsapp/types/index.ts
@@ -0,0 +1 @@
+export * from "./BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem";
diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts
index 32dd2e83..b12ce4cd 100644
--- a/src/api/resources/index.ts
+++ b/src/api/resources/index.ts
@@ -47,6 +47,12 @@ export * as tokens from "./tokens";
export * as usage from "./usage";
export * from "./usage/client/requests";
export * as user from "./user";
+export * as v1SpeechToTextRealtime from "./v1SpeechToTextRealtime";
+export * from "./v1SpeechToTextRealtime/types";
+export * as v1TextToSpeechVoiceIdMultiStreamInput from "./v1TextToSpeechVoiceIdMultiStreamInput";
+export * from "./v1TextToSpeechVoiceIdMultiStreamInput/types";
+export * as v1TextToSpeechVoiceIdStreamInput from "./v1TextToSpeechVoiceIdStreamInput";
+export * from "./v1TextToSpeechVoiceIdStreamInput/types";
export * as voices from "./voices";
export * from "./voices/client/requests";
export * from "./voices/types";
diff --git a/src/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.ts b/src/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.ts
index ee9f9027..a70c1e4d 100644
--- a/src/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.ts
+++ b/src/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.ts
@@ -53,8 +53,8 @@ export interface BodySpeechToTextV1SpeechToTextPost {
useMultiChannel?: boolean;
/** Optional metadata to be included in the webhook response. This should be a JSON string representing an object with a maximum depth of 2 levels and maximum size of 16KB. Useful for tracking internal IDs, job references, or other contextual information. */
webhookMetadata?: ElevenLabs.SpeechToTextConvertRequestWebhookMetadata;
- /** Detect entities in the transcript. Can be 'all' to detect all entities, a single entity type or category string, or a list of entity types/categories. Categories include 'pii', 'phi', 'pci', 'other', 'offensive_language'. When enabled, detected entities will be returned in the 'entities' field with their text, type, and character positions. */
+ /** Detect entities in the transcript. Can be 'all' to detect all entities, a single entity type or category string, or a list of entity types/categories. Categories include 'pii', 'phi', 'pci', 'other', 'offensive_language'. When enabled, detected entities will be returned in the 'entities' field with their text, type, and character positions. Usage of this parameter will incur additional costs. */
entityDetection?: ElevenLabs.SpeechToTextConvertRequestEntityDetection;
- /** A list of keyterms to bias the transcription towards. The keyterms are words or phrases you want the model to recognise more accurately. The number of keyterms cannot exceed 100. The length of each keyterm must be less than 50 characters. Keyterms can contain at most 5 words (after normalisation). For example ["hello", "world", "technical term"] */
+ /** A list of keyterms to bias the transcription towards. The keyterms are words or phrases you want the model to recognise more accurately. The number of keyterms cannot exceed 100. The length of each keyterm must be less than 50 characters. Keyterms can contain at most 5 words (after normalisation). For example ["hello", "world", "technical term"]. Usage of this parameter will incur additional costs. */
keyterms?: string[];
}
diff --git a/src/api/resources/speechToText/types/SpeechToTextConvertRequestEntityDetection.ts b/src/api/resources/speechToText/types/SpeechToTextConvertRequestEntityDetection.ts
index 80327e1b..ac99c9fc 100644
--- a/src/api/resources/speechToText/types/SpeechToTextConvertRequestEntityDetection.ts
+++ b/src/api/resources/speechToText/types/SpeechToTextConvertRequestEntityDetection.ts
@@ -1,6 +1,6 @@
// This file was auto-generated by Fern from our API Definition.
/**
- * Detect entities in the transcript. Can be 'all' to detect all entities, a single entity type or category string, or a list of entity types/categories. Categories include 'pii', 'phi', 'pci', 'other', 'offensive_language'. When enabled, detected entities will be returned in the 'entities' field with their text, type, and character positions.
+ * Detect entities in the transcript. Can be 'all' to detect all entities, a single entity type or category string, or a list of entity types/categories. Categories include 'pii', 'phi', 'pci', 'other', 'offensive_language'. When enabled, detected entities will be returned in the 'entities' field with their text, type, and character positions. Usage of this parameter will incur additional costs.
*/
export type SpeechToTextConvertRequestEntityDetection = string | string[];
diff --git a/src/api/resources/studio/resources/projects/client/Client.ts b/src/api/resources/studio/resources/projects/client/Client.ts
index 1f0bdb35..ee29e635 100644
--- a/src/api/resources/studio/resources/projects/client/Client.ts
+++ b/src/api/resources/studio/resources/projects/client/Client.ts
@@ -716,4 +716,88 @@ export class ProjectsClient {
"/v1/studio/projects/{project_id}/convert",
);
}
+
+ /**
+ * Returns a list of chapter IDs that have muted tracks in a project.
+ *
+ * @param {string} project_id - The ID of the Studio project.
+ * @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
+ *
+ * @example
+ * await client.studio.projects.getMutedTracks("21m00Tcm4TlvDq8ikWAM")
+ */
+ public getMutedTracks(
+ project_id: string,
+ requestOptions?: ProjectsClient.RequestOptions,
+ ): core.HttpResponsePromise {
+ return core.HttpResponsePromise.fromPromise(this.__getMutedTracks(project_id, requestOptions));
+ }
+
+ private async __getMutedTracks(
+ project_id: string,
+ requestOptions?: ProjectsClient.RequestOptions,
+ ): Promise> {
+ const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
+ this._options?.headers,
+ mergeOnlyDefinedHeaders({ "xi-api-key": requestOptions?.apiKey ?? this._options?.apiKey }),
+ requestOptions?.headers,
+ );
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: core.url.join(
+ (await core.Supplier.get(this._options.baseUrl)) ??
+ (await core.Supplier.get(this._options.environment)) ??
+ environments.ElevenLabsEnvironment.Production,
+ `v1/studio/projects/${core.url.encodePathParam(project_id)}/muted-tracks`,
+ ),
+ method: "GET",
+ headers: _headers,
+ queryParameters: requestOptions?.queryParams,
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 240) * 1000,
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
+ fetchFn: this._options?.fetch,
+ logging: this._options.logging,
+ });
+ if (_response.ok) {
+ return {
+ data: serializers.ProjectMutedTracksResponseModel.parseOrThrow(_response.body, {
+ unrecognizedObjectKeys: "passthrough",
+ allowUnrecognizedUnionMembers: true,
+ allowUnrecognizedEnumValues: true,
+ breadcrumbsPrefix: ["response"],
+ }),
+ rawResponse: _response.rawResponse,
+ };
+ }
+
+ if (_response.error.reason === "status-code") {
+ switch (_response.error.statusCode) {
+ case 422:
+ throw new ElevenLabs.UnprocessableEntityError(
+ serializers.HttpValidationError.parseOrThrow(_response.error.body, {
+ unrecognizedObjectKeys: "passthrough",
+ allowUnrecognizedUnionMembers: true,
+ allowUnrecognizedEnumValues: true,
+ breadcrumbsPrefix: ["response"],
+ }),
+ _response.rawResponse,
+ );
+ default:
+ throw new errors.ElevenLabsError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ rawResponse: _response.rawResponse,
+ });
+ }
+ }
+
+ return handleNonStatusCodeError(
+ _response.error,
+ _response.rawResponse,
+ "GET",
+ "/v1/studio/projects/{project_id}/muted-tracks",
+ );
+ }
}
diff --git a/src/api/resources/v1SpeechToTextRealtime/index.ts b/src/api/resources/v1SpeechToTextRealtime/index.ts
new file mode 100644
index 00000000..eea524d6
--- /dev/null
+++ b/src/api/resources/v1SpeechToTextRealtime/index.ts
@@ -0,0 +1 @@
+export * from "./types";
diff --git a/src/api/resources/v1SpeechToTextRealtime/types/ReceiveTranscription.ts b/src/api/resources/v1SpeechToTextRealtime/types/ReceiveTranscription.ts
new file mode 100644
index 00000000..82717162
--- /dev/null
+++ b/src/api/resources/v1SpeechToTextRealtime/types/ReceiveTranscription.ts
@@ -0,0 +1,25 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../../index";
+
+/**
+ * Receive transcription results from the WebSocket
+ */
+export type ReceiveTranscription =
+ | ElevenLabs.SessionStartedPayload
+ | ElevenLabs.PartialTranscriptPayload
+ | ElevenLabs.CommittedTranscriptPayload
+ | ElevenLabs.CommittedTranscriptWithTimestampsPayload
+ | ElevenLabs.ScribeErrorPayload
+ | ElevenLabs.ScribeAuthErrorPayload
+ | ElevenLabs.ScribeQuotaExceededErrorPayload
+ | ElevenLabs.ScribeThrottledErrorPayload
+ | ElevenLabs.ScribeUnacceptedTermsErrorPayload
+ | ElevenLabs.ScribeRateLimitedErrorPayload
+ | ElevenLabs.ScribeQueueOverflowErrorPayload
+ | ElevenLabs.ScribeResourceExhaustedErrorPayload
+ | ElevenLabs.ScribeSessionTimeLimitExceededErrorPayload
+ | ElevenLabs.ScribeInputErrorPayload
+ | ElevenLabs.ScribeChunkSizeExceededErrorPayload
+ | ElevenLabs.ScribeInsufficientAudioActivityErrorPayload
+ | ElevenLabs.ScribeTranscriberErrorPayload;
diff --git a/src/api/resources/v1SpeechToTextRealtime/types/TextToSpeechCommitStrategy.ts b/src/api/resources/v1SpeechToTextRealtime/types/TextToSpeechCommitStrategy.ts
new file mode 100644
index 00000000..611d0e94
--- /dev/null
+++ b/src/api/resources/v1SpeechToTextRealtime/types/TextToSpeechCommitStrategy.ts
@@ -0,0 +1,8 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/** Strategy for committing transcriptions. */
+export const TextToSpeechCommitStrategy = {
+ Manual: "manual",
+ Vad: "vad",
+} as const;
+export type TextToSpeechCommitStrategy = (typeof TextToSpeechCommitStrategy)[keyof typeof TextToSpeechCommitStrategy];
diff --git a/src/api/resources/v1SpeechToTextRealtime/types/index.ts b/src/api/resources/v1SpeechToTextRealtime/types/index.ts
new file mode 100644
index 00000000..dbb96abd
--- /dev/null
+++ b/src/api/resources/v1SpeechToTextRealtime/types/index.ts
@@ -0,0 +1,2 @@
+export * from "./ReceiveTranscription";
+export * from "./TextToSpeechCommitStrategy";
diff --git a/src/api/resources/v1TextToSpeechVoiceIdMultiStreamInput/index.ts b/src/api/resources/v1TextToSpeechVoiceIdMultiStreamInput/index.ts
new file mode 100644
index 00000000..eea524d6
--- /dev/null
+++ b/src/api/resources/v1TextToSpeechVoiceIdMultiStreamInput/index.ts
@@ -0,0 +1 @@
+export * from "./types";
diff --git a/src/api/resources/v1TextToSpeechVoiceIdMultiStreamInput/types/ReceiveMessageMulti.ts b/src/api/resources/v1TextToSpeechVoiceIdMultiStreamInput/types/ReceiveMessageMulti.ts
new file mode 100644
index 00000000..394a3b33
--- /dev/null
+++ b/src/api/resources/v1TextToSpeechVoiceIdMultiStreamInput/types/ReceiveMessageMulti.ts
@@ -0,0 +1,8 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../../index";
+
+/**
+ * Receive messages from the multi-context WebSocket.
+ */
+export type ReceiveMessageMulti = ElevenLabs.AudioOutputMulti | ElevenLabs.FinalOutputMulti;
diff --git a/src/api/resources/v1TextToSpeechVoiceIdMultiStreamInput/types/SendMessageMulti.ts b/src/api/resources/v1TextToSpeechVoiceIdMultiStreamInput/types/SendMessageMulti.ts
new file mode 100644
index 00000000..f7ad6368
--- /dev/null
+++ b/src/api/resources/v1TextToSpeechVoiceIdMultiStreamInput/types/SendMessageMulti.ts
@@ -0,0 +1,15 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../../index";
+
+/**
+ * Send messages to the multi-context WebSocket.
+ */
+export type SendMessageMulti =
+ | ElevenLabs.InitializeConnectionMulti
+ | ElevenLabs.InitialiseContext
+ | ElevenLabs.SendTextMulti
+ | ElevenLabs.FlushContext
+ | ElevenLabs.CloseContext
+ | ElevenLabs.CloseSocket
+ | ElevenLabs.KeepContextAlive;
diff --git a/src/api/resources/v1TextToSpeechVoiceIdMultiStreamInput/types/index.ts b/src/api/resources/v1TextToSpeechVoiceIdMultiStreamInput/types/index.ts
new file mode 100644
index 00000000..432dd4b5
--- /dev/null
+++ b/src/api/resources/v1TextToSpeechVoiceIdMultiStreamInput/types/index.ts
@@ -0,0 +1,2 @@
+export * from "./ReceiveMessageMulti";
+export * from "./SendMessageMulti";
diff --git a/src/api/resources/v1TextToSpeechVoiceIdStreamInput/index.ts b/src/api/resources/v1TextToSpeechVoiceIdStreamInput/index.ts
new file mode 100644
index 00000000..eea524d6
--- /dev/null
+++ b/src/api/resources/v1TextToSpeechVoiceIdStreamInput/index.ts
@@ -0,0 +1 @@
+export * from "./types";
diff --git a/src/api/resources/v1TextToSpeechVoiceIdStreamInput/types/ReceiveMessage.ts b/src/api/resources/v1TextToSpeechVoiceIdStreamInput/types/ReceiveMessage.ts
new file mode 100644
index 00000000..b8d4d0d2
--- /dev/null
+++ b/src/api/resources/v1TextToSpeechVoiceIdStreamInput/types/ReceiveMessage.ts
@@ -0,0 +1,8 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../../index";
+
+/**
+ * Receive messages from the WebSocket
+ */
+export type ReceiveMessage = ElevenLabs.AudioOutput | ElevenLabs.FinalOutput;
diff --git a/src/api/resources/v1TextToSpeechVoiceIdStreamInput/types/SendMessage.ts b/src/api/resources/v1TextToSpeechVoiceIdStreamInput/types/SendMessage.ts
new file mode 100644
index 00000000..8b461738
--- /dev/null
+++ b/src/api/resources/v1TextToSpeechVoiceIdStreamInput/types/SendMessage.ts
@@ -0,0 +1,8 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../../index";
+
+/**
+ * Send messages to the WebSocket
+ */
+export type SendMessage = ElevenLabs.InitializeConnection | ElevenLabs.SendText | ElevenLabs.CloseConnection;
diff --git a/src/api/resources/v1TextToSpeechVoiceIdStreamInput/types/index.ts b/src/api/resources/v1TextToSpeechVoiceIdStreamInput/types/index.ts
new file mode 100644
index 00000000..3f51b639
--- /dev/null
+++ b/src/api/resources/v1TextToSpeechVoiceIdStreamInput/types/index.ts
@@ -0,0 +1,2 @@
+export * from "./ReceiveMessage";
+export * from "./SendMessage";
diff --git a/src/api/types/AgentTransfer.ts b/src/api/types/AgentTransfer.ts
index 004b6ecd..42718b8c 100644
--- a/src/api/types/AgentTransfer.ts
+++ b/src/api/types/AgentTransfer.ts
@@ -6,4 +6,5 @@ export interface AgentTransfer {
delayMs?: number;
transferMessage?: string;
enableTransferredAgentFirstMessage?: boolean;
+ isWorkflowNodeTransfer?: boolean;
}
diff --git a/src/api/types/Alignment.ts b/src/api/types/Alignment.ts
new file mode 100644
index 00000000..95be8b38
--- /dev/null
+++ b/src/api/types/Alignment.ts
@@ -0,0 +1,27 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Alignment information for the generated audio given the input text sequence.
+ */
+export interface Alignment {
+ /**
+ * A list of starting times (in milliseconds) for each character in the text as it
+ * corresponds to the audio. For instance, the character 'H' starts at time 0 ms in the audio.
+ * Note these times are relative to the returned chunk from the model, and not the
+ * full audio response.
+ */
+ charStartTimesMs?: number[];
+ /**
+ * A list of durations (in milliseconds) for each character in the text as it
+ * corresponds to the audio. For instance, the character 'H' lasts for 3 ms in the audio.
+ * Note these times are relative to the returned chunk from the model, and not the
+ * full audio response.
+ */
+ charDurationsMs?: number[];
+ /**
+ * A list of characters in the text sequence. For instance, the first character is 'H'.
+ * Note that this list may contain spaces, punctuation, and other special characters.
+ * The length of this list should be the same as the lengths of `charStartTimesMs` and `charDurationsMs`.
+ */
+ chars?: string[];
+}
diff --git a/src/api/types/ApiIntegrationWebhookToolConfigInput.ts b/src/api/types/ApiIntegrationWebhookToolConfigInput.ts
index 8118d60a..95a0839f 100644
--- a/src/api/types/ApiIntegrationWebhookToolConfigInput.ts
+++ b/src/api/types/ApiIntegrationWebhookToolConfigInput.ts
@@ -18,6 +18,8 @@ export interface ApiIntegrationWebhookToolConfigInput {
toolCallSound?: ElevenLabs.ToolCallSoundType;
/** Determines when the tool call sound should play. 'auto' only plays when there's pre-tool speech, 'always' plays for every tool call. */
toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior;
+ /** Controls how tool errors are processed before being shared with the agent. 'auto' determines handling based on tool type (summarized for native integrations, hide for others), 'summarized' sends an LLM-generated summary, 'passthrough' sends the raw error, 'hide' does not share the error with the agent. */
+ toolErrorHandlingMode?: ElevenLabs.ToolErrorHandlingMode;
/** Configuration for dynamic variables */
dynamicVariables?: ElevenLabs.DynamicVariablesConfig;
/** Determines when and how the tool executes: 'immediate' executes the tool right away when requested by the LLM, 'post_tool_speech' waits for the agent to finish speaking before executing, 'async' runs the tool in the background without blocking - best for long-running operations. */
diff --git a/src/api/types/ApiIntegrationWebhookToolConfigOutput.ts b/src/api/types/ApiIntegrationWebhookToolConfigOutput.ts
index 86e8fc85..5e99534d 100644
--- a/src/api/types/ApiIntegrationWebhookToolConfigOutput.ts
+++ b/src/api/types/ApiIntegrationWebhookToolConfigOutput.ts
@@ -18,6 +18,8 @@ export interface ApiIntegrationWebhookToolConfigOutput {
toolCallSound?: ElevenLabs.ToolCallSoundType;
/** Determines when the tool call sound should play. 'auto' only plays when there's pre-tool speech, 'always' plays for every tool call. */
toolCallSoundBehavior: ElevenLabs.ToolCallSoundBehavior;
+ /** Controls how tool errors are processed before being shared with the agent. 'auto' determines handling based on tool type (summarized for native integrations, hide for others), 'summarized' sends an LLM-generated summary, 'passthrough' sends the raw error, 'hide' does not share the error with the agent. */
+ toolErrorHandlingMode: ElevenLabs.ToolErrorHandlingMode;
/** Configuration for dynamic variables */
dynamicVariables: ElevenLabs.DynamicVariablesConfig;
/** Determines when and how the tool executes: 'immediate' executes the tool right away when requested by the LLM, 'post_tool_speech' waits for the agent to finish speaking before executing, 'async' runs the tool in the background without blocking - best for long-running operations. */
diff --git a/src/api/types/AudioFormatEnum.ts b/src/api/types/AudioFormatEnum.ts
new file mode 100644
index 00000000..72987d41
--- /dev/null
+++ b/src/api/types/AudioFormatEnum.ts
@@ -0,0 +1,13 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/** Audio encoding format for speech-to-text. */
+export const AudioFormatEnum = {
+ Pcm8000: "pcm_8000",
+ Pcm16000: "pcm_16000",
+ Pcm22050: "pcm_22050",
+ Pcm24000: "pcm_24000",
+ Pcm44100: "pcm_44100",
+ Pcm48000: "pcm_48000",
+ Ulaw8000: "ulaw_8000",
+} as const;
+export type AudioFormatEnum = (typeof AudioFormatEnum)[keyof typeof AudioFormatEnum];
diff --git a/src/api/types/AudioOutput.ts b/src/api/types/AudioOutput.ts
new file mode 100644
index 00000000..0f9dc177
--- /dev/null
+++ b/src/api/types/AudioOutput.ts
@@ -0,0 +1,13 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../index";
+
+export interface AudioOutput {
+ /**
+ * A generated partial audio chunk, encoded using the selected output_format, by default this
+ * is MP3 encoded as a base64 string.
+ */
+ audio: string;
+ normalizedAlignment?: ElevenLabs.NormalizedAlignment;
+ alignment?: ElevenLabs.Alignment;
+}
diff --git a/src/api/types/AudioOutputMulti.ts b/src/api/types/AudioOutputMulti.ts
new file mode 100644
index 00000000..8954465d
--- /dev/null
+++ b/src/api/types/AudioOutputMulti.ts
@@ -0,0 +1,15 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../index";
+
+/**
+ * Server payload containing an audio chunk for a specific context.
+ */
+export interface AudioOutputMulti {
+ /** Base64 encoded audio chunk. */
+ audio: string;
+ normalizedAlignment?: ElevenLabs.NormalizedAlignment;
+ alignment?: ElevenLabs.Alignment;
+ /** The contextId for which this audio is. */
+ contextId?: string;
+}
diff --git a/src/api/types/AuthSettings.ts b/src/api/types/AuthSettings.ts
index 61afeceb..0a06bc75 100644
--- a/src/api/types/AuthSettings.ts
+++ b/src/api/types/AuthSettings.ts
@@ -7,6 +7,8 @@ export interface AuthSettings {
enableAuth?: boolean;
/** A list of hosts that are allowed to start conversations with the agent */
allowlist?: ElevenLabs.AllowlistItem[];
+ /** When enabled, connections with no origin header will be rejected. If the allowlist is empty, this option has no effect. */
+ requireOriginHeader?: boolean;
/** A shareable token that can be used to start a conversation with the agent */
shareableToken?: string;
}
diff --git a/src/api/types/BanReasonType.ts b/src/api/types/BanReasonType.ts
deleted file mode 100644
index cca61d9c..00000000
--- a/src/api/types/BanReasonType.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-// This file was auto-generated by Fern from our API Definition.
-
-export const BanReasonType = {
- Safety: "safety",
- Manual: "manual",
-} as const;
-export type BanReasonType = (typeof BanReasonType)[keyof typeof BanReasonType];
diff --git a/src/api/types/CanvasPlacement.ts b/src/api/types/CanvasPlacement.ts
index 0e3f8176..37dd8520 100644
--- a/src/api/types/CanvasPlacement.ts
+++ b/src/api/types/CanvasPlacement.ts
@@ -4,8 +4,8 @@
* Defines asset positioning and transformation on canvas.
*/
export interface CanvasPlacement {
- x?: number;
- y?: number;
+ xRelative?: number;
+ yRelative?: number;
scaleX?: number;
scaleY?: number;
pivotX?: number;
diff --git a/src/api/types/ClientToolConfigInput.ts b/src/api/types/ClientToolConfigInput.ts
index 179dae60..9d81685b 100644
--- a/src/api/types/ClientToolConfigInput.ts
+++ b/src/api/types/ClientToolConfigInput.ts
@@ -21,6 +21,8 @@ export interface ClientToolConfigInput {
toolCallSound?: ElevenLabs.ToolCallSoundType;
/** Determines when the tool call sound should play. 'auto' only plays when there's pre-tool speech, 'always' plays for every tool call. */
toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior;
+ /** Controls how tool errors are processed before being shared with the agent. 'auto' determines handling based on tool type (summarized for native integrations, hide for others), 'summarized' sends an LLM-generated summary, 'passthrough' sends the raw error, 'hide' does not share the error with the agent. */
+ toolErrorHandlingMode?: ElevenLabs.ToolErrorHandlingMode;
/** Schema for any parameters to pass to the client */
parameters?: ElevenLabs.ObjectJsonSchemaPropertyInput;
/** If true, calling this tool should block the conversation until the client responds with some response which is passed to the llm. If false then we will continue the conversation without waiting for the client to respond, this is useful to show content to a user but not block the conversation */
diff --git a/src/api/types/ClientToolConfigOutput.ts b/src/api/types/ClientToolConfigOutput.ts
index 53d7aefc..f6c77d8b 100644
--- a/src/api/types/ClientToolConfigOutput.ts
+++ b/src/api/types/ClientToolConfigOutput.ts
@@ -21,6 +21,8 @@ export interface ClientToolConfigOutput {
toolCallSound?: ElevenLabs.ToolCallSoundType;
/** Determines when the tool call sound should play. 'auto' only plays when there's pre-tool speech, 'always' plays for every tool call. */
toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior;
+ /** Controls how tool errors are processed before being shared with the agent. 'auto' determines handling based on tool type (summarized for native integrations, hide for others), 'summarized' sends an LLM-generated summary, 'passthrough' sends the raw error, 'hide' does not share the error with the agent. */
+ toolErrorHandlingMode?: ElevenLabs.ToolErrorHandlingMode;
/** Schema for any parameters to pass to the client */
parameters?: ElevenLabs.ObjectJsonSchemaPropertyOutput;
/** If true, calling this tool should block the conversation until the client responds with some response which is passed to the llm. If false then we will continue the conversation without waiting for the client to respond, this is useful to show content to a user but not block the conversation */
diff --git a/src/api/types/CloseConnection.ts b/src/api/types/CloseConnection.ts
new file mode 100644
index 00000000..35e93816
--- /dev/null
+++ b/src/api/types/CloseConnection.ts
@@ -0,0 +1,6 @@
+// This file was auto-generated by Fern from our API Definition.
+
+export interface CloseConnection {
+ /** End the stream with an empty string */
+ text: "";
+}
diff --git a/src/api/types/CloseContext.ts b/src/api/types/CloseContext.ts
new file mode 100644
index 00000000..a55d7456
--- /dev/null
+++ b/src/api/types/CloseContext.ts
@@ -0,0 +1,11 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Payload to close a specific TTS context.
+ */
+export interface CloseContext {
+ /** The context_id to close. */
+ contextId: string;
+ /** Must set the close_context to true, to close the specified context. If false, the context will remain open and the text will be ignored. If set to true, the context will close. If it has already been set to flush it will continue flushing. The same context id can be used again but will not be linked to the previous context with the same name. */
+ closeContext: boolean;
+}
diff --git a/src/api/types/CloseSocket.ts b/src/api/types/CloseSocket.ts
new file mode 100644
index 00000000..12449bc5
--- /dev/null
+++ b/src/api/types/CloseSocket.ts
@@ -0,0 +1,9 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Payload to signal closing the entire WebSocket connection.
+ */
+export interface CloseSocket {
+ /** If true, closes all contexts and closes the entire WebSocket connection. Any context that was previously set to flush will wait to flush before closing. */
+ closeSocket?: boolean;
+}
diff --git a/src/api/types/CommittedTranscriptPayload.ts b/src/api/types/CommittedTranscriptPayload.ts
new file mode 100644
index 00000000..11fb5f9c
--- /dev/null
+++ b/src/api/types/CommittedTranscriptPayload.ts
@@ -0,0 +1,11 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Payload for committed transcription results.
+ */
+export interface CommittedTranscriptPayload {
+ /** The message type identifier. */
+ messageType: "committed_transcript";
+ /** Committed transcription text. */
+ text: string;
+}
diff --git a/src/api/types/CommittedTranscriptWithTimestampsPayload.ts b/src/api/types/CommittedTranscriptWithTimestampsPayload.ts
new file mode 100644
index 00000000..390aff46
--- /dev/null
+++ b/src/api/types/CommittedTranscriptWithTimestampsPayload.ts
@@ -0,0 +1,17 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../index";
+
+/**
+ * Payload for committed transcription results with word-level timestamps.
+ */
+export interface CommittedTranscriptWithTimestampsPayload {
+ /** The message type identifier. */
+ messageType: "committed_transcript_with_timestamps";
+ /** Committed transcription text. */
+ text: string;
+ /** Detected or specified language code. */
+ languageCode?: string;
+ /** Word-level information with timestamps. */
+ words?: ElevenLabs.TranscriptionWord[];
+}
diff --git a/src/api/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.ts b/src/api/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.ts
index fcd03148..f8367bf7 100644
--- a/src/api/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.ts
+++ b/src/api/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.ts
@@ -4,6 +4,6 @@ import type * as ElevenLabs from "../index";
export type ConversationHistoryTranscriptCommonModelInputToolResultsItem =
| ElevenLabs.ConversationHistoryTranscriptOtherToolsResultCommonModel
- | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModel
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelInput
| ElevenLabs.ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel
| ElevenLabs.ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput;
diff --git a/src/api/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.ts b/src/api/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.ts
index 0626684a..8a4b86cf 100644
--- a/src/api/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.ts
+++ b/src/api/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.ts
@@ -4,6 +4,6 @@ import type * as ElevenLabs from "../index";
export type ConversationHistoryTranscriptCommonModelOutputToolResultsItem =
| ElevenLabs.ConversationHistoryTranscriptOtherToolsResultCommonModel
- | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModel
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelOutput
| ElevenLabs.ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel
| ElevenLabs.ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput;
diff --git a/src/api/types/ConversationHistoryTranscriptSystemToolResultCommonModel.ts b/src/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelInput.ts
similarity index 92%
rename from src/api/types/ConversationHistoryTranscriptSystemToolResultCommonModel.ts
rename to src/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelInput.ts
index 995e6d1c..205d32b0 100644
--- a/src/api/types/ConversationHistoryTranscriptSystemToolResultCommonModel.ts
+++ b/src/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelInput.ts
@@ -2,7 +2,7 @@
import type * as ElevenLabs from "../index";
-export interface ConversationHistoryTranscriptSystemToolResultCommonModel {
+export interface ConversationHistoryTranscriptSystemToolResultCommonModelInput {
requestId: string;
toolName: string;
resultValue: string;
@@ -13,5 +13,5 @@ export interface ConversationHistoryTranscriptSystemToolResultCommonModel {
rawErrorMessage?: string;
dynamicVariableUpdates?: ElevenLabs.DynamicVariableUpdateCommonModel[];
type: "system";
- result?: ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult;
+ result?: ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelInputResult;
}
diff --git a/src/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.ts b/src/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.ts
similarity index 83%
rename from src/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.ts
rename to src/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.ts
index ac724bf5..80053e44 100644
--- a/src/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.ts
+++ b/src/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.ts
@@ -2,21 +2,21 @@
import type * as ElevenLabs from "../index";
-export type ConversationHistoryTranscriptSystemToolResultCommonModelResult =
- | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.EndCallSuccess
- | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.LanguageDetectionSuccess
- | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.PlayDtmfError
- | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.PlayDtmfSuccess
- | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.SkipTurnSuccess
- | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TestingToolResult
- | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToAgentError
- | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToAgentSuccess
- | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberError
- | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberSipSuccess
- | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberTwilioSuccess
- | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.VoicemailDetectionSuccess;
+export type ConversationHistoryTranscriptSystemToolResultCommonModelInputResult =
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.EndCallSuccess
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.LanguageDetectionSuccess
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.PlayDtmfError
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.PlayDtmfSuccess
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.SkipTurnSuccess
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.TestingToolResult
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.TransferToAgentError
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.TransferToAgentSuccess
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.TransferToNumberError
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.TransferToNumberSipSuccess
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.TransferToNumberTwilioSuccess
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.VoicemailDetectionSuccess;
-export namespace ConversationHistoryTranscriptSystemToolResultCommonModelResult {
+export namespace ConversationHistoryTranscriptSystemToolResultCommonModelInputResult {
export interface EndCallSuccess extends ElevenLabs.EndCallToolResultModel {
resultType: "end_call_success";
}
diff --git a/src/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutput.ts b/src/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutput.ts
new file mode 100644
index 00000000..03cb368b
--- /dev/null
+++ b/src/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutput.ts
@@ -0,0 +1,17 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../index";
+
+export interface ConversationHistoryTranscriptSystemToolResultCommonModelOutput {
+ requestId: string;
+ toolName: string;
+ resultValue: string;
+ isError: boolean;
+ toolHasBeenCalled: boolean;
+ toolLatencySecs?: number;
+ errorType?: string;
+ rawErrorMessage?: string;
+ dynamicVariableUpdates?: ElevenLabs.DynamicVariableUpdateCommonModel[];
+ type: "system";
+ result?: ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult;
+}
diff --git a/src/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.ts b/src/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.ts
new file mode 100644
index 00000000..d4769314
--- /dev/null
+++ b/src/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.ts
@@ -0,0 +1,67 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../index";
+
+export type ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult =
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.EndCallSuccess
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.LanguageDetectionSuccess
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.PlayDtmfError
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.PlayDtmfSuccess
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.SkipTurnSuccess
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.TestingToolResult
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.TransferToAgentError
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.TransferToAgentSuccess
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.TransferToNumberError
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.TransferToNumberSipSuccess
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.TransferToNumberTwilioSuccess
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.VoicemailDetectionSuccess;
+
+export namespace ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult {
+ export interface EndCallSuccess extends ElevenLabs.EndCallToolResultModel {
+ resultType: "end_call_success";
+ }
+
+ export interface LanguageDetectionSuccess extends ElevenLabs.LanguageDetectionToolResultModel {
+ resultType: "language_detection_success";
+ }
+
+ export interface PlayDtmfError extends ElevenLabs.PlayDtmfResultErrorModel {
+ resultType: "play_dtmf_error";
+ }
+
+ export interface PlayDtmfSuccess extends ElevenLabs.PlayDtmfResultSuccessModel {
+ resultType: "play_dtmf_success";
+ }
+
+ export interface SkipTurnSuccess extends ElevenLabs.SkipTurnToolResponseModel {
+ resultType: "skip_turn_success";
+ }
+
+ export interface TestingToolResult extends ElevenLabs.TestToolResultModel {
+ resultType: "testing_tool_result";
+ }
+
+ export interface TransferToAgentError extends ElevenLabs.TransferToAgentToolResultErrorModel {
+ resultType: "transfer_to_agent_error";
+ }
+
+ export interface TransferToAgentSuccess extends ElevenLabs.TransferToAgentToolResultSuccessModel {
+ resultType: "transfer_to_agent_success";
+ }
+
+ export interface TransferToNumberError extends ElevenLabs.TransferToNumberResultErrorModel {
+ resultType: "transfer_to_number_error";
+ }
+
+ export interface TransferToNumberSipSuccess extends ElevenLabs.TransferToNumberResultSipSuccessModel {
+ resultType: "transfer_to_number_sip_success";
+ }
+
+ export interface TransferToNumberTwilioSuccess extends ElevenLabs.TransferToNumberResultTwilioSuccessModel {
+ resultType: "transfer_to_number_twilio_success";
+ }
+
+ export interface VoicemailDetectionSuccess extends ElevenLabs.VoiceMailDetectionResultSuccessModel {
+ resultType: "voicemail_detection_success";
+ }
+}
diff --git a/src/api/types/ConversationInitiationSource.ts b/src/api/types/ConversationInitiationSource.ts
index e9fdf257..bee16de6 100644
--- a/src/api/types/ConversationInitiationSource.ts
+++ b/src/api/types/ConversationInitiationSource.ts
@@ -17,6 +17,7 @@ export const ConversationInitiationSource = {
Whatsapp: "whatsapp",
FlutterSdk: "flutter_sdk",
ZendeskIntegration: "zendesk_integration",
+ SlackIntegration: "slack_integration",
} as const;
export type ConversationInitiationSource =
(typeof ConversationInitiationSource)[keyof typeof ConversationInitiationSource];
diff --git a/src/api/types/ConversationTurnMetrics.ts b/src/api/types/ConversationTurnMetrics.ts
index 3d87791c..3c4d5465 100644
--- a/src/api/types/ConversationTurnMetrics.ts
+++ b/src/api/types/ConversationTurnMetrics.ts
@@ -5,4 +5,5 @@ import type * as ElevenLabs from "../index";
export interface ConversationTurnMetrics {
metrics?: Record;
convaiAsrProvider?: string;
+ convaiTtsModel?: string;
}
diff --git a/src/api/types/CreateSipTrunkPhoneNumberRequest.ts b/src/api/types/CreateSipTrunkPhoneNumberRequest.ts
index 4edeec7a..b0a3fbaa 100644
--- a/src/api/types/CreateSipTrunkPhoneNumberRequest.ts
+++ b/src/api/types/CreateSipTrunkPhoneNumberRequest.ts
@@ -7,9 +7,9 @@ export interface CreateSipTrunkPhoneNumberRequest {
phoneNumber: string;
/** Label for the phone number */
label: string;
- /** Whether this phone number supports inbound calls */
+ /** This field is deprecated and will be removed in the future. Whether this phone number supports inbound calls */
supportsInbound?: boolean;
- /** Whether this phone number supports outbound calls */
+ /** This field is deprecated and will be removed in the future. Whether this phone number supports outbound calls */
supportsOutbound?: boolean;
inboundTrunkConfig?: ElevenLabs.InboundSipTrunkConfigRequestModel;
outboundTrunkConfig?: ElevenLabs.OutboundSipTrunkConfigRequestModel;
diff --git a/src/api/types/CreateTwilioPhoneNumberRequest.ts b/src/api/types/CreateTwilioPhoneNumberRequest.ts
index 3ccc550a..558b64ad 100644
--- a/src/api/types/CreateTwilioPhoneNumberRequest.ts
+++ b/src/api/types/CreateTwilioPhoneNumberRequest.ts
@@ -7,9 +7,9 @@ export interface CreateTwilioPhoneNumberRequest {
phoneNumber: string;
/** Label for the phone number */
label: string;
- /** Whether this phone number supports inbound calls */
+ /** This field is deprecated and will be removed in the future. Whether this phone number supports inbound calls */
supportsInbound?: boolean;
- /** Whether this phone number supports outbound calls */
+ /** This field is deprecated and will be removed in the future. Whether this phone number supports outbound calls */
supportsOutbound?: boolean;
/** Twilio Account SID */
sid: string;
diff --git a/src/api/types/DubbingReleaseChannel.ts b/src/api/types/DubbingReleaseChannel.ts
deleted file mode 100644
index 8794563b..00000000
--- a/src/api/types/DubbingReleaseChannel.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-// This file was auto-generated by Fern from our API Definition.
-
-export const DubbingReleaseChannel = {
- Stable: "stable",
- Release: "release",
- Experimental: "experimental",
-} as const;
-export type DubbingReleaseChannel = (typeof DubbingReleaseChannel)[keyof typeof DubbingReleaseChannel];
diff --git a/src/api/types/DynamicVariableAssignment.ts b/src/api/types/DynamicVariableAssignment.ts
index 7a96f800..17339db5 100644
--- a/src/api/types/DynamicVariableAssignment.ts
+++ b/src/api/types/DynamicVariableAssignment.ts
@@ -10,4 +10,6 @@ export interface DynamicVariableAssignment {
dynamicVariable: string;
/** Dot notation path to extract the value from the source (e.g., 'user.name' or 'data.0.id') */
valuePath: string;
+ /** If true, this assignment's value will be removed from the tool response before sending to the LLM and transcript, but still processed for variable assignment. */
+ sanitize?: boolean;
}
diff --git a/src/api/types/FinalOutput.ts b/src/api/types/FinalOutput.ts
new file mode 100644
index 00000000..c8ab4c0f
--- /dev/null
+++ b/src/api/types/FinalOutput.ts
@@ -0,0 +1,6 @@
+// This file was auto-generated by Fern from our API Definition.
+
+export interface FinalOutput {
+ /** Indicates if the generation is complete. If set to `True`, `audio` will be null. */
+ isFinal?: true;
+}
diff --git a/src/api/types/FinalOutputMulti.ts b/src/api/types/FinalOutputMulti.ts
new file mode 100644
index 00000000..0fbbaa06
--- /dev/null
+++ b/src/api/types/FinalOutputMulti.ts
@@ -0,0 +1,11 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Server payload indicating the final output for a specific context.
+ */
+export interface FinalOutputMulti {
+ /** Indicates this is the final message for the context. */
+ isFinal: true;
+ /** The context_id for which this is the final message. */
+ contextId?: string;
+}
diff --git a/src/api/types/FlushContext.ts b/src/api/types/FlushContext.ts
new file mode 100644
index 00000000..e81ee1dc
--- /dev/null
+++ b/src/api/types/FlushContext.ts
@@ -0,0 +1,13 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Payload to flush the audio buffer for a specific context.
+ */
+export interface FlushContext {
+ /** The context_id to flush. */
+ contextId: string;
+ /** The text to append to the buffer to be flushed. */
+ text?: string;
+ /** If true, flushes the audio buffer for the specified context. If false, the context will remain open and the text will be appended to the buffer to be generated. */
+ flush: boolean;
+}
diff --git a/src/api/types/GenerationConfig.ts b/src/api/types/GenerationConfig.ts
new file mode 100644
index 00000000..faacaf36
--- /dev/null
+++ b/src/api/types/GenerationConfig.ts
@@ -0,0 +1,32 @@
+// This file was auto-generated by Fern from our API Definition.
+
+export interface GenerationConfig {
+ /**
+ * This is an advanced setting that most users shouldn't need to use. It relates to our
+ * generation schedule.
+ *
+ * Our WebSocket service incorporates a buffer system designed to optimize the Time To First Byte (TTFB) while maintaining high-quality streaming.
+ *
+ * All text sent to the WebSocket endpoint is added to this buffer and only when that buffer reaches a certain size is an audio generation attempted. This is because our model provides higher quality audio when the model has longer inputs, and can deduce more context about how the text should be delivered.
+ *
+ * The buffer ensures smooth audio data delivery and is automatically emptied with a final audio generation either when the stream is closed, or upon sending a `flush` command. We have advanced settings for changing the chunk schedule, which can improve latency at the cost of quality by generating audio more frequently with smaller text inputs.
+ *
+ * The `chunk_length_schedule` determines the minimum amount of text that needs to be sent and present in our
+ * buffer before audio starts being generated. This is to maximise the amount of context available to
+ * the model to improve audio quality, whilst balancing latency of the returned audio chunks.
+ *
+ * The default value for `chunk_length_schedule` is: [120, 160, 250, 290].
+ *
+ * This means that the first chunk of audio will not be generated until you send text that
+ * totals at least 120 characters long. The next chunk of audio will only be generated once a
+ * further 160 characters have been sent. The third audio chunk will be generated after the
+ * next 250 characters. Then the fourth, and beyond, will be generated in sets of at least 290 characters.
+ *
+ * Customize this array to suit your needs. If you want to generate audio more frequently
+ * to optimise latency, you can reduce the values in the array. Note that setting the values
+ * too low may result in lower quality audio. Please test and adjust as needed.
+ *
+ * Each item should be in the range 50-500.
+ */
+ chunkLengthSchedule?: number[];
+}
diff --git a/src/api/types/GetPhoneNumberSipTrunkResponseModel.ts b/src/api/types/GetPhoneNumberSipTrunkResponseModel.ts
index 8afc9ffe..c9513b77 100644
--- a/src/api/types/GetPhoneNumberSipTrunkResponseModel.ts
+++ b/src/api/types/GetPhoneNumberSipTrunkResponseModel.ts
@@ -7,9 +7,9 @@ export interface GetPhoneNumberSipTrunkResponseModel {
phoneNumber: string;
/** Label for the phone number */
label: string;
- /** Whether this phone number supports inbound calls */
+ /** This field is deprecated and will be removed in the future. Whether this phone number supports inbound calls */
supportsInbound?: boolean;
- /** Whether this phone number supports outbound calls */
+ /** This field is deprecated and will be removed in the future. Whether this phone number supports outbound calls */
supportsOutbound?: boolean;
/** The ID of the phone number */
phoneNumberId: string;
diff --git a/src/api/types/GetPhoneNumberTwilioResponseModel.ts b/src/api/types/GetPhoneNumberTwilioResponseModel.ts
index f7878f06..ce226d3d 100644
--- a/src/api/types/GetPhoneNumberTwilioResponseModel.ts
+++ b/src/api/types/GetPhoneNumberTwilioResponseModel.ts
@@ -7,9 +7,9 @@ export interface GetPhoneNumberTwilioResponseModel {
phoneNumber: string;
/** Label for the phone number */
label: string;
- /** Whether this phone number supports inbound calls */
+ /** This field is deprecated and will be removed in the future. Whether this phone number supports inbound calls */
supportsInbound?: boolean;
- /** Whether this phone number supports outbound calls */
+ /** This field is deprecated and will be removed in the future. Whether this phone number supports outbound calls */
supportsOutbound?: boolean;
/** The ID of the phone number */
phoneNumberId: string;
diff --git a/src/api/types/InitialiseContext.ts b/src/api/types/InitialiseContext.ts
new file mode 100644
index 00000000..03bbae7f
--- /dev/null
+++ b/src/api/types/InitialiseContext.ts
@@ -0,0 +1,21 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../index";
+
+/**
+ * Payload to initialize or re-initialize a TTS context with specific settings and initial text for multi-stream connections.
+ */
+export interface InitialiseContext {
+ /** The initial text to synthesize. Should end with a single space. */
+ text: string;
+ voiceSettings?: ElevenLabs.RealtimeVoiceSettings;
+ generationConfig?: ElevenLabs.GenerationConfig;
+ /** Optional list of pronunciation dictionary locators to be used for this context. */
+ pronunciationDictionaryLocators?: ElevenLabs.PronunciationDictionaryLocator[];
+ /** Your ElevenLabs API key. Required if not provided in the WebSocket connection's header or query parameters. This applies to the (re)initialization of this specific context. */
+ xiApiKey?: string;
+ /** Your authorization bearer token. Required if not provided in the WebSocket connection's header or query parameters. This applies to the (re)initialization of this specific context. */
+ authorization?: string;
+ /** An identifier for the text-to-speech context. If omitted, a default context ID may be assigned by the server. If provided, this message will create a new context with this ID or re-initialize an existing one with the new settings and text. */
+ contextId?: string;
+}
diff --git a/src/api/types/InitializeConnection.ts b/src/api/types/InitializeConnection.ts
new file mode 100644
index 00000000..c32c79ed
--- /dev/null
+++ b/src/api/types/InitializeConnection.ts
@@ -0,0 +1,21 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../index";
+
+export interface InitializeConnection {
+ /** The initial text that must be sent is a blank space. */
+ text: " ";
+ voiceSettings?: ElevenLabs.RealtimeVoiceSettings;
+ generationConfig?: ElevenLabs.GenerationConfig;
+ /**
+ * Optional list of pronunciation dictionary locators. If provided, these dictionaries will be used to
+ * modify pronunciation of matching text. Must only be provided in the first message.
+ *
+ * Note: Pronunciation dictionary matches will only be respected within a provided chunk.
+ */
+ pronunciationDictionaryLocators?: ElevenLabs.PronunciationDictionaryLocator[];
+ /** Your ElevenLabs API key. This can only be included in the first message and is not needed if present in the header. */
+ xiApiKey?: string;
+ /** Your authorization bearer token. This can only be included in the first message and is not needed if present in the header. */
+ authorization?: string;
+}
diff --git a/src/api/types/InitializeConnectionMulti.ts b/src/api/types/InitializeConnectionMulti.ts
new file mode 100644
index 00000000..e6131ec2
--- /dev/null
+++ b/src/api/types/InitializeConnectionMulti.ts
@@ -0,0 +1,21 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../index";
+
+/**
+ * Payload to initialize a new context in a multi-stream WebSocket connection.
+ */
+export interface InitializeConnectionMulti {
+ /** Must be a single space character to initiate the context. */
+ text: " ";
+ voiceSettings?: ElevenLabs.RealtimeVoiceSettings;
+ generationConfig?: ElevenLabs.GenerationConfig;
+ /** Optional pronunciation dictionaries for this context. */
+ pronunciationDictionaryLocators?: ElevenLabs.PronunciationDictionaryLocator[];
+ /** Your ElevenLabs API key (if not in header). For this context's first message only. */
+ xiApiKey?: string;
+ /** Your authorization bearer token (if not in header). For this context's first message only. */
+ authorization?: string;
+ /** A unique identifier for the first context created in the websocket. If not provided, a default context will be used. */
+ contextId?: string;
+}
diff --git a/src/api/types/InputAudioChunkPayload.ts b/src/api/types/InputAudioChunkPayload.ts
new file mode 100644
index 00000000..353086f2
--- /dev/null
+++ b/src/api/types/InputAudioChunkPayload.ts
@@ -0,0 +1,17 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Payload for sending audio chunks from client to server.
+ */
+export interface InputAudioChunkPayload {
+ /** The message type identifier. */
+ messageType: "input_audio_chunk";
+ /** Base64-encoded audio data. */
+ audioBase64: string;
+ /** Whether to commit the transcription after this chunk. */
+ commit: boolean;
+ /** Sample rate of the audio in Hz. */
+ sampleRate: number;
+ /** Send text context to the model. Can only be sent alongside the first audio chunk. If sent in a subsequent chunk, an error will be returned. */
+ previousText?: string;
+}
diff --git a/src/api/types/KeepContextAlive.ts b/src/api/types/KeepContextAlive.ts
new file mode 100644
index 00000000..7d043068
--- /dev/null
+++ b/src/api/types/KeepContextAlive.ts
@@ -0,0 +1,11 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Payload to keep a specific context alive by resetting its inactivity timeout. Empty text is ignored but resets the clock.
+ */
+export interface KeepContextAlive {
+ /** An empty string. This text is ignored by the server but its presence resets the inactivity timeout for the specified context. */
+ text: "";
+ /** The identifier of the context to keep alive. */
+ contextId: string;
+}
diff --git a/src/api/types/NormalizedAlignment.ts b/src/api/types/NormalizedAlignment.ts
new file mode 100644
index 00000000..b7545355
--- /dev/null
+++ b/src/api/types/NormalizedAlignment.ts
@@ -0,0 +1,27 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Alignment information for the generated audio given the input normalized text sequence.
+ */
+export interface NormalizedAlignment {
+ /**
+ * A list of starting times (in milliseconds) for each character in the normalized text as it
+ * corresponds to the audio. For instance, the character 'H' starts at time 0 ms in the audio.
+ * Note these times are relative to the returned chunk from the model, and not the
+ * full audio response.
+ */
+ charStartTimesMs?: number[];
+ /**
+ * A list of durations (in milliseconds) for each character in the normalized text as it
+ * corresponds to the audio. For instance, the character 'H' lasts for 3 ms in the audio.
+ * Note these times are relative to the returned chunk from the model, and not the
+ * full audio response.
+ */
+ charDurationsMs?: number[];
+ /**
+ * A list of characters in the normalized text sequence. For instance, the first character is 'H'.
+ * Note that this list may contain spaces, punctuation, and other special characters.
+ * The length of this list should be the same as the lengths of `charStartTimesMs` and `charDurationsMs`.
+ */
+ chars?: string[];
+}
diff --git a/src/api/types/PartialTranscriptPayload.ts b/src/api/types/PartialTranscriptPayload.ts
new file mode 100644
index 00000000..7c32ed91
--- /dev/null
+++ b/src/api/types/PartialTranscriptPayload.ts
@@ -0,0 +1,11 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Payload for partial transcription results that may change.
+ */
+export interface PartialTranscriptPayload {
+ /** The message type identifier. */
+ messageType: "partial_transcript";
+ /** Partial transcription text. */
+ text: string;
+}
diff --git a/src/api/types/ProjectExternalAudioResponseModel.ts b/src/api/types/ProjectExternalAudioResponseModel.ts
index 07598282..27b995ab 100644
--- a/src/api/types/ProjectExternalAudioResponseModel.ts
+++ b/src/api/types/ProjectExternalAudioResponseModel.ts
@@ -21,5 +21,6 @@ export interface ProjectExternalAudioResponseModel {
pendingBlockIds: string[];
importSpeechProgress?: number;
speechImported?: boolean;
+ dubAudioProgress?: number;
currentSnapshotId?: string;
}
diff --git a/src/api/types/ProjectMutedTracksResponseModel.ts b/src/api/types/ProjectMutedTracksResponseModel.ts
new file mode 100644
index 00000000..ffbf0327
--- /dev/null
+++ b/src/api/types/ProjectMutedTracksResponseModel.ts
@@ -0,0 +1,6 @@
+// This file was auto-generated by Fern from our API Definition.
+
+export interface ProjectMutedTracksResponseModel {
+ /** List of chapter IDs that have muted tracks. */
+ chapterIds: string[];
+}
diff --git a/src/api/types/ProjectVideoResponseModel.ts b/src/api/types/ProjectVideoResponseModel.ts
index 6020d5b9..26fe071a 100644
--- a/src/api/types/ProjectVideoResponseModel.ts
+++ b/src/api/types/ProjectVideoResponseModel.ts
@@ -30,6 +30,7 @@ export interface ProjectVideoResponseModel {
pendingBlockIds: string[];
importSpeechProgress?: number;
speechImported?: boolean;
+ dubAudioProgress?: number;
audioTrackReady?: boolean;
currentSnapshotId?: string;
canvasPlacement?: ElevenLabs.CanvasPlacement;
diff --git a/src/api/types/PronunciationDictionaryLocator.ts b/src/api/types/PronunciationDictionaryLocator.ts
new file mode 100644
index 00000000..725d969f
--- /dev/null
+++ b/src/api/types/PronunciationDictionaryLocator.ts
@@ -0,0 +1,11 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Identifies a specific pronunciation dictionary to use
+ */
+export interface PronunciationDictionaryLocator {
+ /** The unique identifier of the pronunciation dictionary */
+ pronunciationDictionaryId: string;
+ /** The version identifier of the pronunciation dictionary */
+ versionId: string;
+}
diff --git a/src/api/types/RealtimeVoiceSettings.ts b/src/api/types/RealtimeVoiceSettings.ts
new file mode 100644
index 00000000..611a1026
--- /dev/null
+++ b/src/api/types/RealtimeVoiceSettings.ts
@@ -0,0 +1,14 @@
+// This file was auto-generated by Fern from our API Definition.
+
+export interface RealtimeVoiceSettings {
+ /** Defines the stability for voice settings. */
+ stability?: number;
+ /** Defines the similarity boost for voice settings. */
+ similarityBoost?: number;
+ /** Defines the style for voice settings. This parameter is available on V2+ models. */
+ style?: number;
+ /** Defines the use speaker boost for voice settings. This parameter is available on V2+ models. */
+ useSpeakerBoost?: boolean;
+ /** Controls the speed of the generated speech. Values range from 0.7 to 1.2, with 1.0 being the default speed. */
+ speed?: number;
+}
diff --git a/src/api/types/ScribeAuthErrorPayload.ts b/src/api/types/ScribeAuthErrorPayload.ts
new file mode 100644
index 00000000..287060ef
--- /dev/null
+++ b/src/api/types/ScribeAuthErrorPayload.ts
@@ -0,0 +1,11 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Payload for authentication errors.
+ */
+export interface ScribeAuthErrorPayload {
+ /** The message type identifier. */
+ messageType: "auth_error";
+ /** Authentication error details. */
+ error: string;
+}
diff --git a/src/api/types/ScribeChunkSizeExceededErrorPayload.ts b/src/api/types/ScribeChunkSizeExceededErrorPayload.ts
new file mode 100644
index 00000000..9e7767fd
--- /dev/null
+++ b/src/api/types/ScribeChunkSizeExceededErrorPayload.ts
@@ -0,0 +1,11 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Payload for chunk size exceeded errors.
+ */
+export interface ScribeChunkSizeExceededErrorPayload {
+ /** The message type identifier. */
+ messageType: "chunk_size_exceeded";
+ /** Chunk size exceeded error details. */
+ error: string;
+}
diff --git a/src/api/types/ScribeErrorPayload.ts b/src/api/types/ScribeErrorPayload.ts
new file mode 100644
index 00000000..2a63b73c
--- /dev/null
+++ b/src/api/types/ScribeErrorPayload.ts
@@ -0,0 +1,11 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Payload for error events during transcription.
+ */
+export interface ScribeErrorPayload {
+ /** The message type identifier. */
+ messageType: "error";
+ /** Error message describing what went wrong. */
+ error: string;
+}
diff --git a/src/api/types/ScribeInputErrorPayload.ts b/src/api/types/ScribeInputErrorPayload.ts
new file mode 100644
index 00000000..a19b8fc7
--- /dev/null
+++ b/src/api/types/ScribeInputErrorPayload.ts
@@ -0,0 +1,11 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Payload for input errors.
+ */
+export interface ScribeInputErrorPayload {
+ /** The message type identifier. */
+ messageType: "input_error";
+ /** Input error details. */
+ error: string;
+}
diff --git a/src/api/types/ScribeInsufficientAudioActivityErrorPayload.ts b/src/api/types/ScribeInsufficientAudioActivityErrorPayload.ts
new file mode 100644
index 00000000..7d45266c
--- /dev/null
+++ b/src/api/types/ScribeInsufficientAudioActivityErrorPayload.ts
@@ -0,0 +1,11 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Payload for insufficient audio activity errors.
+ */
+export interface ScribeInsufficientAudioActivityErrorPayload {
+ /** The message type identifier. */
+ messageType: "insufficient_audio_activity";
+ /** Insufficient audio activity error details. */
+ error: string;
+}
diff --git a/src/api/types/ScribeQueueOverflowErrorPayload.ts b/src/api/types/ScribeQueueOverflowErrorPayload.ts
new file mode 100644
index 00000000..b2640cc2
--- /dev/null
+++ b/src/api/types/ScribeQueueOverflowErrorPayload.ts
@@ -0,0 +1,11 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Payload for queue overflow errors.
+ */
+export interface ScribeQueueOverflowErrorPayload {
+ /** The message type identifier. */
+ messageType: "queue_overflow";
+ /** Queue overflow error details. */
+ error: string;
+}
diff --git a/src/api/types/ScribeQuotaExceededErrorPayload.ts b/src/api/types/ScribeQuotaExceededErrorPayload.ts
new file mode 100644
index 00000000..5dcbac96
--- /dev/null
+++ b/src/api/types/ScribeQuotaExceededErrorPayload.ts
@@ -0,0 +1,11 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Payload for quota exceeded errors.
+ */
+export interface ScribeQuotaExceededErrorPayload {
+ /** The message type identifier. */
+ messageType: "quota_exceeded";
+ /** Quota exceeded error details. */
+ error: string;
+}
diff --git a/src/api/types/ScribeRateLimitedErrorPayload.ts b/src/api/types/ScribeRateLimitedErrorPayload.ts
new file mode 100644
index 00000000..01373357
--- /dev/null
+++ b/src/api/types/ScribeRateLimitedErrorPayload.ts
@@ -0,0 +1,11 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Payload for rate limited errors.
+ */
+export interface ScribeRateLimitedErrorPayload {
+ /** The message type identifier. */
+ messageType: "rate_limited";
+ /** Rate limited error details. */
+ error: string;
+}
diff --git a/src/api/types/ScribeResourceExhaustedErrorPayload.ts b/src/api/types/ScribeResourceExhaustedErrorPayload.ts
new file mode 100644
index 00000000..ac7953ac
--- /dev/null
+++ b/src/api/types/ScribeResourceExhaustedErrorPayload.ts
@@ -0,0 +1,11 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Payload for resource exhausted errors.
+ */
+export interface ScribeResourceExhaustedErrorPayload {
+ /** The message type identifier. */
+ messageType: "resource_exhausted";
+ /** Resource exhausted error details. */
+ error: string;
+}
diff --git a/src/api/types/ScribeSessionTimeLimitExceededErrorPayload.ts b/src/api/types/ScribeSessionTimeLimitExceededErrorPayload.ts
new file mode 100644
index 00000000..da8aae9c
--- /dev/null
+++ b/src/api/types/ScribeSessionTimeLimitExceededErrorPayload.ts
@@ -0,0 +1,11 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Payload for session time limit exceeded errors.
+ */
+export interface ScribeSessionTimeLimitExceededErrorPayload {
+ /** The message type identifier. */
+ messageType: "session_time_limit_exceeded";
+ /** Session time limit exceeded error details. */
+ error: string;
+}
diff --git a/src/api/types/ScribeThrottledErrorPayload.ts b/src/api/types/ScribeThrottledErrorPayload.ts
new file mode 100644
index 00000000..73a13fa6
--- /dev/null
+++ b/src/api/types/ScribeThrottledErrorPayload.ts
@@ -0,0 +1,11 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Payload for throttled errors.
+ */
+export interface ScribeThrottledErrorPayload {
+ /** The message type identifier. */
+ messageType: "commit_throttled";
+ /** Throttled error details. */
+ error: string;
+}
diff --git a/src/api/types/ScribeTranscriberErrorPayload.ts b/src/api/types/ScribeTranscriberErrorPayload.ts
new file mode 100644
index 00000000..75f6011f
--- /dev/null
+++ b/src/api/types/ScribeTranscriberErrorPayload.ts
@@ -0,0 +1,11 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Payload for transcriber errors.
+ */
+export interface ScribeTranscriberErrorPayload {
+ /** The message type identifier. */
+ messageType: "transcriber_error";
+ /** Transcriber error details. */
+ error: string;
+}
diff --git a/src/api/types/ScribeUnacceptedTermsErrorPayload.ts b/src/api/types/ScribeUnacceptedTermsErrorPayload.ts
new file mode 100644
index 00000000..cb04dc68
--- /dev/null
+++ b/src/api/types/ScribeUnacceptedTermsErrorPayload.ts
@@ -0,0 +1,11 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Payload for unaccepted terms errors.
+ */
+export interface ScribeUnacceptedTermsErrorPayload {
+ /** The message type identifier. */
+ messageType: "unaccepted_terms";
+ /** Unaccepted terms error details. */
+ error: string;
+}
diff --git a/src/api/types/SeatType.ts b/src/api/types/SeatType.ts
index 67010014..818fdc95 100644
--- a/src/api/types/SeatType.ts
+++ b/src/api/types/SeatType.ts
@@ -3,5 +3,6 @@
export const SeatType = {
WorkspaceAdmin: "workspace_admin",
WorkspaceMember: "workspace_member",
+ WorkspaceLiteMember: "workspace_lite_member",
} as const;
export type SeatType = (typeof SeatType)[keyof typeof SeatType];
diff --git a/src/api/types/SendText.ts b/src/api/types/SendText.ts
new file mode 100644
index 00000000..93a6ec5e
--- /dev/null
+++ b/src/api/types/SendText.ts
@@ -0,0 +1,32 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../index";
+
+export interface SendText {
+ /** The text to be sent to the API for audio generation. Should always end with a single space string. */
+ text: string;
+ /**
+ * This is an advanced setting that most users shouldn't need to use. It relates to our generation schedule.
+ *
+ * Use this to attempt to immediately trigger the generation of audio, overriding the `chunk_length_schedule`.
+ * Unlike flush, `try_trigger_generation` will only generate audio if our
+ * buffer contains more than a minimum
+ * threshold of characters, this is to ensure a higher quality response from our model.
+ *
+ * Note that overriding the chunk schedule to generate small amounts of
+ * text may result in lower quality audio, therefore, only use this parameter if you
+ * really need text to be processed immediately. We generally recommend keeping the default value of
+ * `false` and adjusting the `chunk_length_schedule` in the `generation_config` instead.
+ */
+ tryTriggerGeneration?: boolean;
+ /** The voice settings field can be provided in the first `InitializeConnection` message and then must either be not provided or not changed. */
+ voiceSettings?: ElevenLabs.RealtimeVoiceSettings;
+ /** The generator config field can be provided in the first `InitializeConnection` message and then must either be not provided or not changed. */
+ generatorConfig?: ElevenLabs.GenerationConfig;
+ /**
+ * Flush forces the generation of audio. Set this value to true when you have finished sending text, but want to keep the websocket connection open.
+ *
+ * This is useful when you want to ensure that the last chunk of audio is generated even when the length of text sent is smaller than the value set in chunk_length_schedule (e.g. 120 or 50).
+ */
+ flush?: boolean;
+}
diff --git a/src/api/types/SendTextMulti.ts b/src/api/types/SendTextMulti.ts
new file mode 100644
index 00000000..4d2b74d0
--- /dev/null
+++ b/src/api/types/SendTextMulti.ts
@@ -0,0 +1,13 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/**
+ * Payload to send text for synthesis to an existing context.
+ */
+export interface SendTextMulti {
+ /** Text to synthesize. Should end with a single space. */
+ text: string;
+ /** The target context_id for this text. */
+ contextId?: string;
+ /** If true, flushes the audio buffer for the specified context. If false, the text will be appended to the buffer to be generated. */
+ flush?: boolean;
+}
diff --git a/src/api/types/SessionStartedPayload.ts b/src/api/types/SessionStartedPayload.ts
new file mode 100644
index 00000000..fd77599a
--- /dev/null
+++ b/src/api/types/SessionStartedPayload.ts
@@ -0,0 +1,15 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../index";
+
+/**
+ * Payload sent when the transcription session is successfully started.
+ */
+export interface SessionStartedPayload {
+ /** The message type identifier. */
+ messageType: "session_started";
+ /** Unique identifier for the session. */
+ sessionId: string;
+ /** Configuration for the transcription session. */
+ config: ElevenLabs.SessionStartedPayloadConfig;
+}
diff --git a/src/api/types/SessionStartedPayloadConfig.ts b/src/api/types/SessionStartedPayloadConfig.ts
new file mode 100644
index 00000000..0dae3184
--- /dev/null
+++ b/src/api/types/SessionStartedPayloadConfig.ts
@@ -0,0 +1,32 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../index";
+
+/**
+ * Configuration for the transcription session.
+ */
+export interface SessionStartedPayloadConfig {
+ /** Sample rate of the audio in Hz. */
+ sampleRate?: number;
+ audioFormat?: ElevenLabs.AudioFormatEnum;
+ /** Language code in ISO 639-1 or ISO 639-3 format. */
+ languageCode?: string;
+ /** Strategy for committing transcriptions. */
+ commitStrategy?: ElevenLabs.SessionStartedPayloadConfigCommitStrategy;
+ /** Silence threshold in seconds. */
+ vadSilenceThresholdSecs?: number;
+ /** Threshold for voice activity detection. */
+ vadThreshold?: number;
+ /** Minimum speech duration in milliseconds. */
+ minSpeechDurationMs?: number;
+ /** Minimum silence duration in milliseconds. */
+ minSilenceDurationMs?: number;
+ /** ID of the model to use for transcription. */
+ modelId?: string;
+ /** When enable_logging is set to false zero retention mode will be used for the request. This will mean history features are unavailable for this request. Zero retention mode may only be used by enterprise customers. */
+ enableLogging?: boolean;
+ /** Whether the session will include word-level timestamps in the committed transcript. */
+ includeTimestamps?: boolean;
+ /** Whether the session will include language detection in the committed transcript. */
+ includeLanguageDetection?: boolean;
+}
diff --git a/src/api/types/SessionStartedPayloadConfigCommitStrategy.ts b/src/api/types/SessionStartedPayloadConfigCommitStrategy.ts
new file mode 100644
index 00000000..35ca88d5
--- /dev/null
+++ b/src/api/types/SessionStartedPayloadConfigCommitStrategy.ts
@@ -0,0 +1,9 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/** Strategy for committing transcriptions. */
+export const SessionStartedPayloadConfigCommitStrategy = {
+ Manual: "manual",
+ Vad: "vad",
+} as const;
+export type SessionStartedPayloadConfigCommitStrategy =
+ (typeof SessionStartedPayloadConfigCommitStrategy)[keyof typeof SessionStartedPayloadConfigCommitStrategy];
diff --git a/src/api/types/SystemToolConfigInput.ts b/src/api/types/SystemToolConfigInput.ts
index a6fcdbc2..6be0c1f6 100644
--- a/src/api/types/SystemToolConfigInput.ts
+++ b/src/api/types/SystemToolConfigInput.ts
@@ -23,5 +23,7 @@ export interface SystemToolConfigInput {
toolCallSound?: ElevenLabs.ToolCallSoundType;
/** Determines when the tool call sound should play. 'auto' only plays when there's pre-tool speech, 'always' plays for every tool call. */
toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior;
+ /** Controls how tool errors are processed before being shared with the agent. 'auto' determines handling based on tool type (summarized for native integrations, hide for others), 'summarized' sends an LLM-generated summary, 'passthrough' sends the raw error, 'hide' does not share the error with the agent. */
+ toolErrorHandlingMode?: ElevenLabs.ToolErrorHandlingMode;
params: ElevenLabs.SystemToolConfigInputParams;
}
diff --git a/src/api/types/SystemToolConfigOutput.ts b/src/api/types/SystemToolConfigOutput.ts
index 7fcdd743..c16c1320 100644
--- a/src/api/types/SystemToolConfigOutput.ts
+++ b/src/api/types/SystemToolConfigOutput.ts
@@ -23,5 +23,7 @@ export interface SystemToolConfigOutput {
toolCallSound?: ElevenLabs.ToolCallSoundType;
/** Determines when the tool call sound should play. 'auto' only plays when there's pre-tool speech, 'always' plays for every tool call. */
toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior;
+ /** Controls how tool errors are processed before being shared with the agent. 'auto' determines handling based on tool type (summarized for native integrations, hide for others), 'summarized' sends an LLM-generated summary, 'passthrough' sends the raw error, 'hide' does not share the error with the agent. */
+ toolErrorHandlingMode?: ElevenLabs.ToolErrorHandlingMode;
params: ElevenLabs.SystemToolConfigOutputParams;
}
diff --git a/src/api/types/TestFromConversationMetadataInput.ts b/src/api/types/TestFromConversationMetadataInput.ts
index 499e49dc..f9b42e73 100644
--- a/src/api/types/TestFromConversationMetadataInput.ts
+++ b/src/api/types/TestFromConversationMetadataInput.ts
@@ -5,6 +5,7 @@ import type * as ElevenLabs from "../index";
export interface TestFromConversationMetadataInput {
conversationId: string;
agentId: string;
+ branchId?: string;
workflowNodeId?: string;
originalAgentReply?: ElevenLabs.ConversationHistoryTranscriptCommonModelInput[];
}
diff --git a/src/api/types/TestFromConversationMetadataOutput.ts b/src/api/types/TestFromConversationMetadataOutput.ts
index bdf94be4..50d33420 100644
--- a/src/api/types/TestFromConversationMetadataOutput.ts
+++ b/src/api/types/TestFromConversationMetadataOutput.ts
@@ -5,6 +5,7 @@ import type * as ElevenLabs from "../index";
export interface TestFromConversationMetadataOutput {
conversationId: string;
agentId: string;
+ branchId?: string;
workflowNodeId?: string;
originalAgentReply?: ElevenLabs.ConversationHistoryTranscriptCommonModelOutput[];
}
diff --git a/src/api/types/TextToSpeechApplyTextNormalizationEnum.ts b/src/api/types/TextToSpeechApplyTextNormalizationEnum.ts
new file mode 100644
index 00000000..843b9839
--- /dev/null
+++ b/src/api/types/TextToSpeechApplyTextNormalizationEnum.ts
@@ -0,0 +1,10 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/** This parameter controls text normalization with three modes - 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans. Defaults to 'auto'. */
+export const TextToSpeechApplyTextNormalizationEnum = {
+ Auto: "auto",
+ On: "on",
+ Off: "off",
+} as const;
+export type TextToSpeechApplyTextNormalizationEnum =
+ (typeof TextToSpeechApplyTextNormalizationEnum)[keyof typeof TextToSpeechApplyTextNormalizationEnum];
diff --git a/src/api/types/TextToSpeechOutputFormatEnum.ts b/src/api/types/TextToSpeechOutputFormatEnum.ts
new file mode 100644
index 00000000..334c8e0d
--- /dev/null
+++ b/src/api/types/TextToSpeechOutputFormatEnum.ts
@@ -0,0 +1,25 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/** The output audio format */
+export const TextToSpeechOutputFormatEnum = {
+ Mp32205032: "mp3_22050_32",
+ Mp34410032: "mp3_44100_32",
+ Mp34410064: "mp3_44100_64",
+ Mp34410096: "mp3_44100_96",
+ Mp344100128: "mp3_44100_128",
+ Mp344100192: "mp3_44100_192",
+ Pcm8000: "pcm_8000",
+ Pcm16000: "pcm_16000",
+ Pcm22050: "pcm_22050",
+ Pcm24000: "pcm_24000",
+ Pcm44100: "pcm_44100",
+ Ulaw8000: "ulaw_8000",
+ Alaw8000: "alaw_8000",
+ Opus4800032: "opus_48000_32",
+ Opus4800064: "opus_48000_64",
+ Opus4800096: "opus_48000_96",
+ Opus48000128: "opus_48000_128",
+ Opus48000192: "opus_48000_192",
+} as const;
+export type TextToSpeechOutputFormatEnum =
+ (typeof TextToSpeechOutputFormatEnum)[keyof typeof TextToSpeechOutputFormatEnum];
diff --git a/src/api/types/ToolErrorHandlingMode.ts b/src/api/types/ToolErrorHandlingMode.ts
new file mode 100644
index 00000000..7dcada96
--- /dev/null
+++ b/src/api/types/ToolErrorHandlingMode.ts
@@ -0,0 +1,10 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/** Controls how tool errors are processed before being shared with the agent. */
+export const ToolErrorHandlingMode = {
+ Auto: "auto",
+ Summarized: "summarized",
+ Passthrough: "passthrough",
+ Hide: "hide",
+} as const;
+export type ToolErrorHandlingMode = (typeof ToolErrorHandlingMode)[keyof typeof ToolErrorHandlingMode];
diff --git a/src/api/types/TranscriptionWord.ts b/src/api/types/TranscriptionWord.ts
new file mode 100644
index 00000000..20683c68
--- /dev/null
+++ b/src/api/types/TranscriptionWord.ts
@@ -0,0 +1,23 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../index";
+
+/**
+ * Word-level transcription data with timing information.
+ */
+export interface TranscriptionWord {
+ /** The transcribed word. */
+ text?: string;
+ /** Start time in seconds. */
+ start?: number;
+ /** End time in seconds. */
+ end?: number;
+ /** The type of word. */
+ type?: ElevenLabs.TranscriptionWordType;
+ /** The ID of the speaker if available. */
+ speakerId?: string;
+ /** Confidence score for this word. */
+ logprob?: number;
+ /** The characters in the word. */
+ characters?: string[];
+}
diff --git a/src/api/types/TranscriptionWordType.ts b/src/api/types/TranscriptionWordType.ts
new file mode 100644
index 00000000..1e416771
--- /dev/null
+++ b/src/api/types/TranscriptionWordType.ts
@@ -0,0 +1,8 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/** The type of word. */
+export const TranscriptionWordType = {
+ Word: "word",
+ Spacing: "spacing",
+} as const;
+export type TranscriptionWordType = (typeof TranscriptionWordType)[keyof typeof TranscriptionWordType];
diff --git a/src/api/types/TransferBranchInfoDefaultingToMain.ts b/src/api/types/TransferBranchInfoDefaultingToMain.ts
new file mode 100644
index 00000000..21aa1ba3
--- /dev/null
+++ b/src/api/types/TransferBranchInfoDefaultingToMain.ts
@@ -0,0 +1,5 @@
+// This file was auto-generated by Fern from our API Definition.
+
+export interface TransferBranchInfoDefaultingToMain {
+ branchId: string;
+}
diff --git a/src/api/types/TransferBranchInfoTrafficSplit.ts b/src/api/types/TransferBranchInfoTrafficSplit.ts
new file mode 100644
index 00000000..20ef8a88
--- /dev/null
+++ b/src/api/types/TransferBranchInfoTrafficSplit.ts
@@ -0,0 +1,6 @@
+// This file was auto-generated by Fern from our API Definition.
+
+export interface TransferBranchInfoTrafficSplit {
+ branchId: string;
+ trafficPercentage: number;
+}
diff --git a/src/api/types/TransferToAgentToolResultSuccessModel.ts b/src/api/types/TransferToAgentToolResultSuccessModel.ts
index 246bdf76..e45fa41c 100644
--- a/src/api/types/TransferToAgentToolResultSuccessModel.ts
+++ b/src/api/types/TransferToAgentToolResultSuccessModel.ts
@@ -1,5 +1,7 @@
// This file was auto-generated by Fern from our API Definition.
+import type * as ElevenLabs from "../index";
+
export interface TransferToAgentToolResultSuccessModel {
status?: "success";
fromAgent: string;
@@ -8,4 +10,5 @@ export interface TransferToAgentToolResultSuccessModel {
delayMs?: number;
transferMessage?: string;
enableTransferredAgentFirstMessage?: boolean;
+ branchInfo?: ElevenLabs.TransferToAgentToolResultSuccessModelBranchInfo;
}
diff --git a/src/api/types/TransferToAgentToolResultSuccessModelBranchInfo.ts b/src/api/types/TransferToAgentToolResultSuccessModelBranchInfo.ts
new file mode 100644
index 00000000..ae0c2e90
--- /dev/null
+++ b/src/api/types/TransferToAgentToolResultSuccessModelBranchInfo.ts
@@ -0,0 +1,17 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../index";
+
+export type TransferToAgentToolResultSuccessModelBranchInfo =
+ | ElevenLabs.TransferToAgentToolResultSuccessModelBranchInfo.DefaultingToMain
+ | ElevenLabs.TransferToAgentToolResultSuccessModelBranchInfo.TrafficSplit;
+
+export namespace TransferToAgentToolResultSuccessModelBranchInfo {
+ export interface DefaultingToMain extends ElevenLabs.TransferBranchInfoDefaultingToMain {
+ branchReason: "defaulting_to_main";
+ }
+
+ export interface TrafficSplit extends ElevenLabs.TransferBranchInfoTrafficSplit {
+ branchReason: "traffic_split";
+ }
+}
diff --git a/src/api/types/TtsConversationalConfigInput.ts b/src/api/types/TtsConversationalConfigInput.ts
index 63e130a4..09e93274 100644
--- a/src/api/types/TtsConversationalConfigInput.ts
+++ b/src/api/types/TtsConversationalConfigInput.ts
@@ -9,6 +9,8 @@ export interface TtsConversationalConfigInput {
voiceId?: string;
/** Additional supported voices for the agent */
supportedVoices?: ElevenLabs.SupportedVoice[];
+ /** Suggested audio tags to boost expressive speech (for eleven_v3 and eleven_v3_conversational models). The agent can still use other tags not listed here. */
+ suggestedAudioTags?: ElevenLabs.SuggestedAudioTag[];
/** The audio format to use for TTS */
agentOutputAudioFormat?: ElevenLabs.TtsOutputFormat;
/** The optimization for streaming latency */
diff --git a/src/api/types/TtsConversationalConfigOutput.ts b/src/api/types/TtsConversationalConfigOutput.ts
index 7007cb46..c79fd89f 100644
--- a/src/api/types/TtsConversationalConfigOutput.ts
+++ b/src/api/types/TtsConversationalConfigOutput.ts
@@ -9,6 +9,8 @@ export interface TtsConversationalConfigOutput {
voiceId?: string;
/** Additional supported voices for the agent */
supportedVoices?: ElevenLabs.SupportedVoice[];
+ /** Suggested audio tags to boost expressive speech (for eleven_v3 and eleven_v3_conversational models). The agent can still use other tags not listed here. */
+ suggestedAudioTags?: ElevenLabs.SuggestedAudioTag[];
/** The audio format to use for TTS */
agentOutputAudioFormat?: ElevenLabs.TtsOutputFormat;
/** The optimization for streaming latency */
diff --git a/src/api/types/TtsConversationalConfigWorkflowOverrideInput.ts b/src/api/types/TtsConversationalConfigWorkflowOverrideInput.ts
index 3b199805..1e3307bb 100644
--- a/src/api/types/TtsConversationalConfigWorkflowOverrideInput.ts
+++ b/src/api/types/TtsConversationalConfigWorkflowOverrideInput.ts
@@ -9,6 +9,8 @@ export interface TtsConversationalConfigWorkflowOverrideInput {
voiceId?: string;
/** Additional supported voices for the agent */
supportedVoices?: ElevenLabs.SupportedVoice[];
+ /** Suggested audio tags to boost expressive speech (for eleven_v3 and eleven_v3_conversational models). The agent can still use other tags not listed here. */
+ suggestedAudioTags?: ElevenLabs.SuggestedAudioTag[];
/** The audio format to use for TTS */
agentOutputAudioFormat?: ElevenLabs.TtsOutputFormat;
/** The optimization for streaming latency */
diff --git a/src/api/types/TtsConversationalConfigWorkflowOverrideOutput.ts b/src/api/types/TtsConversationalConfigWorkflowOverrideOutput.ts
index 3cc34ca4..925241e1 100644
--- a/src/api/types/TtsConversationalConfigWorkflowOverrideOutput.ts
+++ b/src/api/types/TtsConversationalConfigWorkflowOverrideOutput.ts
@@ -9,6 +9,8 @@ export interface TtsConversationalConfigWorkflowOverrideOutput {
voiceId?: string;
/** Additional supported voices for the agent */
supportedVoices?: ElevenLabs.SupportedVoice[];
+ /** Suggested audio tags to boost expressive speech (for eleven_v3 and eleven_v3_conversational models). The agent can still use other tags not listed here. */
+ suggestedAudioTags?: ElevenLabs.SuggestedAudioTag[];
/** The audio format to use for TTS */
agentOutputAudioFormat?: ElevenLabs.TtsOutputFormat;
/** The optimization for streaming latency */
diff --git a/src/api/types/TtsConversationalModel.ts b/src/api/types/TtsConversationalModel.ts
index a201dfa3..05f5aeee 100644
--- a/src/api/types/TtsConversationalModel.ts
+++ b/src/api/types/TtsConversationalModel.ts
@@ -6,5 +6,6 @@ export const TtsConversationalModel = {
ElevenFlashV2: "eleven_flash_v2",
ElevenFlashV25: "eleven_flash_v2_5",
ElevenMultilingualV2: "eleven_multilingual_v2",
+ ElevenV3Conversational: "eleven_v3_conversational",
} as const;
export type TtsConversationalModel = (typeof TtsConversationalModel)[keyof typeof TtsConversationalModel];
diff --git a/src/api/types/TtsModelFamily.ts b/src/api/types/TtsModelFamily.ts
index 79632209..6186ea35 100644
--- a/src/api/types/TtsModelFamily.ts
+++ b/src/api/types/TtsModelFamily.ts
@@ -4,5 +4,6 @@ export const TtsModelFamily = {
Turbo: "turbo",
Flash: "flash",
Multilingual: "multilingual",
+ V3Conversational: "v3_conversational",
} as const;
export type TtsModelFamily = (typeof TtsModelFamily)[keyof typeof TtsModelFamily];
diff --git a/src/api/types/TurnModel.ts b/src/api/types/TurnModel.ts
new file mode 100644
index 00000000..249c6098
--- /dev/null
+++ b/src/api/types/TurnModel.ts
@@ -0,0 +1,8 @@
+// This file was auto-generated by Fern from our API Definition.
+
+/** Version of the turn detection model to use. */
+export const TurnModel = {
+ TurnV2: "turn_v2",
+ TurnV3: "turn_v3",
+} as const;
+export type TurnModel = (typeof TurnModel)[keyof typeof TurnModel];
diff --git a/src/api/types/UnitTestToolCallEvaluationModelInput.ts b/src/api/types/UnitTestToolCallEvaluationModelInput.ts
index bbe8e34c..36c365f2 100644
--- a/src/api/types/UnitTestToolCallEvaluationModelInput.ts
+++ b/src/api/types/UnitTestToolCallEvaluationModelInput.ts
@@ -9,4 +9,6 @@ export interface UnitTestToolCallEvaluationModelInput {
referencedTool?: ElevenLabs.ReferencedToolCommonModel;
/** Whether to verify that the tool was NOT called. */
verifyAbsence?: boolean;
+ /** Configuration for testing workflow node transitions. When set, the test will verify the agent transitions to the specified workflow node. */
+ workflowNodeTransition?: ElevenLabs.UnitTestWorkflowNodeTransitionEvaluationNodeId;
}
diff --git a/src/api/types/UnitTestToolCallEvaluationModelOutput.ts b/src/api/types/UnitTestToolCallEvaluationModelOutput.ts
index be6bcc45..e908adcf 100644
--- a/src/api/types/UnitTestToolCallEvaluationModelOutput.ts
+++ b/src/api/types/UnitTestToolCallEvaluationModelOutput.ts
@@ -9,4 +9,6 @@ export interface UnitTestToolCallEvaluationModelOutput {
referencedTool?: ElevenLabs.ReferencedToolCommonModel;
/** Whether to verify that the tool was NOT called. */
verifyAbsence?: boolean;
+ /** Configuration for testing workflow node transitions. When set, the test will verify the agent transitions to the specified workflow node. */
+ workflowNodeTransition?: ElevenLabs.UnitTestWorkflowNodeTransitionEvaluationNodeId;
}
diff --git a/src/api/types/UnitTestWorkflowNodeTransitionEvaluationNodeId.ts b/src/api/types/UnitTestWorkflowNodeTransitionEvaluationNodeId.ts
new file mode 100644
index 00000000..ae68e209
--- /dev/null
+++ b/src/api/types/UnitTestWorkflowNodeTransitionEvaluationNodeId.ts
@@ -0,0 +1,9 @@
+// This file was auto-generated by Fern from our API Definition.
+
+export interface UnitTestWorkflowNodeTransitionEvaluationNodeId {
+ type?: "node_id";
+ /** The ID of the agent whose workflow contains the target node. */
+ agentId: string;
+ /** The ID of the workflow node that the agent should transition to. */
+ targetNodeId: string;
+}
diff --git a/src/api/types/WebhookToolConfigInput.ts b/src/api/types/WebhookToolConfigInput.ts
index 533e531b..c5e5f994 100644
--- a/src/api/types/WebhookToolConfigInput.ts
+++ b/src/api/types/WebhookToolConfigInput.ts
@@ -21,6 +21,8 @@ export interface WebhookToolConfigInput {
toolCallSound?: ElevenLabs.ToolCallSoundType;
/** Determines when the tool call sound should play. 'auto' only plays when there's pre-tool speech, 'always' plays for every tool call. */
toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior;
+ /** Controls how tool errors are processed before being shared with the agent. 'auto' determines handling based on tool type (summarized for native integrations, hide for others), 'summarized' sends an LLM-generated summary, 'passthrough' sends the raw error, 'hide' does not share the error with the agent. */
+ toolErrorHandlingMode?: ElevenLabs.ToolErrorHandlingMode;
/** Configuration for dynamic variables */
dynamicVariables?: ElevenLabs.DynamicVariablesConfig;
/** Determines when and how the tool executes: 'immediate' executes the tool right away when requested by the LLM, 'post_tool_speech' waits for the agent to finish speaking before executing, 'async' runs the tool in the background without blocking - best for long-running operations. */
diff --git a/src/api/types/WebhookToolConfigOutput.ts b/src/api/types/WebhookToolConfigOutput.ts
index d79578e6..e501862d 100644
--- a/src/api/types/WebhookToolConfigOutput.ts
+++ b/src/api/types/WebhookToolConfigOutput.ts
@@ -21,6 +21,8 @@ export interface WebhookToolConfigOutput {
toolCallSound?: ElevenLabs.ToolCallSoundType;
/** Determines when the tool call sound should play. 'auto' only plays when there's pre-tool speech, 'always' plays for every tool call. */
toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior;
+ /** Controls how tool errors are processed before being shared with the agent. 'auto' determines handling based on tool type (summarized for native integrations, hide for others), 'summarized' sends an LLM-generated summary, 'passthrough' sends the raw error, 'hide' does not share the error with the agent. */
+ toolErrorHandlingMode?: ElevenLabs.ToolErrorHandlingMode;
/** Configuration for dynamic variables */
dynamicVariables?: ElevenLabs.DynamicVariablesConfig;
/** Determines when and how the tool executes: 'immediate' executes the tool right away when requested by the LLM, 'post_tool_speech' waits for the agent to finish speaking before executing, 'async' runs the tool in the background without blocking - best for long-running operations. */
diff --git a/src/api/types/WebsocketTtsClientMessageMulti.ts b/src/api/types/WebsocketTtsClientMessageMulti.ts
new file mode 100644
index 00000000..f74a4bdf
--- /dev/null
+++ b/src/api/types/WebsocketTtsClientMessageMulti.ts
@@ -0,0 +1,34 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../index";
+
+/**
+ * Message sent from the client to the multi-context TTS WebSocket.
+ */
+export interface WebsocketTtsClientMessageMulti {
+ /**
+ * Text to be synthesized.
+ * For the first message establishing a new context (identified by `context_id`, or a default context if `context_id` is absent), this should be a single space character (' ').
+ * For subsequent messages to an active context, this is the text to synthesize.
+ * This field can be null or an empty string if the message is primarily for control (e.g., using `flush`, `close_context`, or `close_socket`).
+ */
+ text?: string;
+ /** Voice settings. Can only be provided in the first message for a given context_id (or first message overall if context_id is not used/default). */
+ voiceSettings?: ElevenLabs.RealtimeVoiceSettings;
+ /** Generation config. Can only be provided in the first message for a given context_id (or first message overall if context_id is not used/default). */
+ generationConfig?: ElevenLabs.GenerationConfig;
+ /** Your ElevenLabs API key. Can only be provided in the first message for a given context_id if not present in the header. */
+ xiApiKey?: string;
+ /** Your authorization bearer token. Can only be provided in the first message for a given context_id if not present in the header. */
+ authorization?: string;
+ /** If true, flushes the audio buffer and returns the remaining audio for the specified `context_id`. */
+ flush?: boolean;
+ /** Optional list of pronunciation dictionary locators. Can only be provided in the first message for a given context_id. */
+ pronunciationDictionaryLocators?: ElevenLabs.PronunciationDictionaryLocator[];
+ /** An identifier for the text-to-speech context. Allows managing multiple independent audio generation streams over a single WebSocket connection. If omitted, a default context is used. */
+ contextId?: string;
+ /** If true, closes the specified `contextId`. No further audio will be generated for this context. The `text` field is ignored. */
+ closeContext?: boolean;
+ /** If true, flushes all contexts and closes the entire WebSocket connection. The `text` and `contextId` fields are ignored. */
+ closeSocket?: boolean;
+}
diff --git a/src/api/types/WebsocketTtsServerMessageMulti.ts b/src/api/types/WebsocketTtsServerMessageMulti.ts
new file mode 100644
index 00000000..df37ee24
--- /dev/null
+++ b/src/api/types/WebsocketTtsServerMessageMulti.ts
@@ -0,0 +1,17 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../index";
+
+/**
+ * Message sent from the server to the client for the multi-context TTS WebSocket.
+ */
+export interface WebsocketTtsServerMessageMulti {
+ /** A generated partial audio chunk, encoded using the selected output_format (e.g., MP3 as a base64 string). */
+ audio?: string;
+ /** If true, indicates that this is the final message for the specified contextId. This is sent when a context is closed. `audio` will be null or empty. */
+ isFinal?: boolean;
+ normalizedAlignment?: ElevenLabs.NormalizedAlignment;
+ alignment?: ElevenLabs.Alignment;
+ /** The context identifier to which this message pertains. */
+ contextId?: string;
+}
diff --git a/src/api/types/WhatsAppConversationInfo.ts b/src/api/types/WhatsAppConversationInfo.ts
index f7c968c4..0c75da2f 100644
--- a/src/api/types/WhatsAppConversationInfo.ts
+++ b/src/api/types/WhatsAppConversationInfo.ts
@@ -6,4 +6,5 @@ export interface WhatsAppConversationInfo {
direction?: ElevenLabs.WhatsAppConversationInfoDirection;
whatsappPhoneNumberId?: string;
whatsappUserId: string;
+ awaitingFirstUserMessage?: boolean;
}
diff --git a/src/api/types/WhatsAppOutboundMessageResponse.ts b/src/api/types/WhatsAppOutboundMessageResponse.ts
new file mode 100644
index 00000000..6245f16e
--- /dev/null
+++ b/src/api/types/WhatsAppOutboundMessageResponse.ts
@@ -0,0 +1,5 @@
+// This file was auto-generated by Fern from our API Definition.
+
+export interface WhatsAppOutboundMessageResponse {
+ conversationId: string;
+}
diff --git a/src/api/types/WhatsAppTemplateBodyComponentParams.ts b/src/api/types/WhatsAppTemplateBodyComponentParams.ts
new file mode 100644
index 00000000..641e9ae0
--- /dev/null
+++ b/src/api/types/WhatsAppTemplateBodyComponentParams.ts
@@ -0,0 +1,7 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../index";
+
+export interface WhatsAppTemplateBodyComponentParams {
+ parameters: ElevenLabs.WhatsAppTemplateTextParam[];
+}
diff --git a/src/api/types/WhatsAppTemplateButtonComponentParams.ts b/src/api/types/WhatsAppTemplateButtonComponentParams.ts
new file mode 100644
index 00000000..a8bb55df
--- /dev/null
+++ b/src/api/types/WhatsAppTemplateButtonComponentParams.ts
@@ -0,0 +1,9 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../index";
+
+export interface WhatsAppTemplateButtonComponentParams {
+ parameters: ElevenLabs.WhatsAppTemplateTextParam[];
+ index: number;
+ subType: string;
+}
diff --git a/src/api/types/WhatsAppTemplateDocumentParam.ts b/src/api/types/WhatsAppTemplateDocumentParam.ts
new file mode 100644
index 00000000..a1d1a8b0
--- /dev/null
+++ b/src/api/types/WhatsAppTemplateDocumentParam.ts
@@ -0,0 +1,7 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../index";
+
+export interface WhatsAppTemplateDocumentParam {
+ document: ElevenLabs.WhatsAppTemplateDocumentParamDetails;
+}
diff --git a/src/api/types/WhatsAppTemplateDocumentParamDetails.ts b/src/api/types/WhatsAppTemplateDocumentParamDetails.ts
new file mode 100644
index 00000000..b50cb9c8
--- /dev/null
+++ b/src/api/types/WhatsAppTemplateDocumentParamDetails.ts
@@ -0,0 +1,6 @@
+// This file was auto-generated by Fern from our API Definition.
+
+export interface WhatsAppTemplateDocumentParamDetails {
+ link: string;
+ filename?: string;
+}
diff --git a/src/api/types/WhatsAppTemplateHeaderComponentParams.ts b/src/api/types/WhatsAppTemplateHeaderComponentParams.ts
new file mode 100644
index 00000000..482d0e98
--- /dev/null
+++ b/src/api/types/WhatsAppTemplateHeaderComponentParams.ts
@@ -0,0 +1,7 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../index";
+
+export interface WhatsAppTemplateHeaderComponentParams {
+ parameters: ElevenLabs.WhatsAppTemplateHeaderComponentParamsParametersItem[];
+}
diff --git a/src/api/types/WhatsAppTemplateHeaderComponentParamsParametersItem.ts b/src/api/types/WhatsAppTemplateHeaderComponentParamsParametersItem.ts
new file mode 100644
index 00000000..9e47c973
--- /dev/null
+++ b/src/api/types/WhatsAppTemplateHeaderComponentParamsParametersItem.ts
@@ -0,0 +1,27 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../index";
+
+export type WhatsAppTemplateHeaderComponentParamsParametersItem =
+ | ElevenLabs.WhatsAppTemplateHeaderComponentParamsParametersItem.Document
+ | ElevenLabs.WhatsAppTemplateHeaderComponentParamsParametersItem.Image
+ | ElevenLabs.WhatsAppTemplateHeaderComponentParamsParametersItem.Location
+ | ElevenLabs.WhatsAppTemplateHeaderComponentParamsParametersItem.Text;
+
+export namespace WhatsAppTemplateHeaderComponentParamsParametersItem {
+ export interface Document extends ElevenLabs.WhatsAppTemplateDocumentParam {
+ type: "document";
+ }
+
+ export interface Image extends ElevenLabs.WhatsAppTemplateImageParam {
+ type: "image";
+ }
+
+ export interface Location extends ElevenLabs.WhatsAppTemplateLocationParam {
+ type: "location";
+ }
+
+ export interface Text extends ElevenLabs.WhatsAppTemplateTextParam {
+ type: "text";
+ }
+}
diff --git a/src/api/types/WhatsAppTemplateImageParam.ts b/src/api/types/WhatsAppTemplateImageParam.ts
new file mode 100644
index 00000000..20b17528
--- /dev/null
+++ b/src/api/types/WhatsAppTemplateImageParam.ts
@@ -0,0 +1,7 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../index";
+
+export interface WhatsAppTemplateImageParam {
+ image: ElevenLabs.WhatsAppTemplateImageParamDetails;
+}
diff --git a/src/api/types/WhatsAppTemplateImageParamDetails.ts b/src/api/types/WhatsAppTemplateImageParamDetails.ts
new file mode 100644
index 00000000..defb389a
--- /dev/null
+++ b/src/api/types/WhatsAppTemplateImageParamDetails.ts
@@ -0,0 +1,5 @@
+// This file was auto-generated by Fern from our API Definition.
+
+export interface WhatsAppTemplateImageParamDetails {
+ link: string;
+}
diff --git a/src/api/types/WhatsAppTemplateLocationParam.ts b/src/api/types/WhatsAppTemplateLocationParam.ts
new file mode 100644
index 00000000..9ead7786
--- /dev/null
+++ b/src/api/types/WhatsAppTemplateLocationParam.ts
@@ -0,0 +1,7 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../index";
+
+export interface WhatsAppTemplateLocationParam {
+ location: ElevenLabs.WhatsAppTemplateLocationParamDetails;
+}
diff --git a/src/api/types/WhatsAppTemplateLocationParamDetails.ts b/src/api/types/WhatsAppTemplateLocationParamDetails.ts
new file mode 100644
index 00000000..c3befebf
--- /dev/null
+++ b/src/api/types/WhatsAppTemplateLocationParamDetails.ts
@@ -0,0 +1,8 @@
+// This file was auto-generated by Fern from our API Definition.
+
+export interface WhatsAppTemplateLocationParamDetails {
+ latitude: string;
+ longitude: string;
+ name: string;
+ address: string;
+}
diff --git a/src/api/types/WhatsAppTemplateTextParam.ts b/src/api/types/WhatsAppTemplateTextParam.ts
new file mode 100644
index 00000000..8d445075
--- /dev/null
+++ b/src/api/types/WhatsAppTemplateTextParam.ts
@@ -0,0 +1,7 @@
+// This file was auto-generated by Fern from our API Definition.
+
+export interface WhatsAppTemplateTextParam {
+ parameterName?: string;
+ type?: "text";
+ text: string;
+}
diff --git a/src/api/types/WorkflowToolNestedToolsStepModelInputResultsItem.ts b/src/api/types/WorkflowToolNestedToolsStepModelInputResultsItem.ts
index 34d9d2c0..1deac79b 100644
--- a/src/api/types/WorkflowToolNestedToolsStepModelInputResultsItem.ts
+++ b/src/api/types/WorkflowToolNestedToolsStepModelInputResultsItem.ts
@@ -4,6 +4,6 @@ import type * as ElevenLabs from "../index";
export type WorkflowToolNestedToolsStepModelInputResultsItem =
| ElevenLabs.ConversationHistoryTranscriptOtherToolsResultCommonModel
- | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModel
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelInput
| ElevenLabs.ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel
| ElevenLabs.ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput;
diff --git a/src/api/types/WorkflowToolNestedToolsStepModelOutputResultsItem.ts b/src/api/types/WorkflowToolNestedToolsStepModelOutputResultsItem.ts
index c033dc7c..bd1afc6f 100644
--- a/src/api/types/WorkflowToolNestedToolsStepModelOutputResultsItem.ts
+++ b/src/api/types/WorkflowToolNestedToolsStepModelOutputResultsItem.ts
@@ -4,6 +4,6 @@ import type * as ElevenLabs from "../index";
export type WorkflowToolNestedToolsStepModelOutputResultsItem =
| ElevenLabs.ConversationHistoryTranscriptOtherToolsResultCommonModel
- | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModel
+ | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelOutput
| ElevenLabs.ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel
| ElevenLabs.ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput;
diff --git a/src/api/types/WorkspaceResourceType.ts b/src/api/types/WorkspaceResourceType.ts
index 0639e390..d1108962 100644
--- a/src/api/types/WorkspaceResourceType.ts
+++ b/src/api/types/WorkspaceResourceType.ts
@@ -32,5 +32,6 @@ export const WorkspaceResourceType = {
ResourceLocators: "resource_locators",
Assets: "assets",
ContentGenerations: "content_generations",
+ ContentTemplates: "content_templates",
} as const;
export type WorkspaceResourceType = (typeof WorkspaceResourceType)[keyof typeof WorkspaceResourceType];
diff --git a/src/api/types/index.ts b/src/api/types/index.ts
index adf20650..a5c008cf 100644
--- a/src/api/types/index.ts
+++ b/src/api/types/index.ts
@@ -48,6 +48,7 @@ export * from "./AgentWorkflowResponseModel";
export * from "./AgentWorkflowResponseModelNodesValue";
export * from "./AgentWorkspaceOverridesInput";
export * from "./AgentWorkspaceOverridesOutput";
+export * from "./Alignment";
export * from "./AlignmentGuardrail";
export * from "./AllowedOutputFormats";
export * from "./AllowlistItem";
@@ -123,10 +124,13 @@ export * from "./AstStringNodeOutput";
export * from "./AsyncConversationMetadata";
export * from "./AsyncConversationMetadataDeliveryStatus";
export * from "./AttachedTestModel";
+export * from "./AudioFormatEnum";
export * from "./AudioNativeCreateProjectResponseModel";
export * from "./AudioNativeEditContentResponseModel";
export * from "./AudioNativeProjectSettingsResponseModel";
export * from "./AudioNativeProjectSettingsResponseModelStatus";
+export * from "./AudioOutput";
+export * from "./AudioOutputMulti";
export * from "./AudioWithTimestampsAndVoiceSegmentsResponseModel";
export * from "./AudioWithTimestampsResponse";
export * from "./AuthConnectionLocator";
@@ -136,7 +140,6 @@ export * from "./BackupLlmDefault";
export * from "./BackupLlmDisabled";
export * from "./BackupLlmOverride";
export * from "./BadRequestErrorBody";
-export * from "./BanReasonType";
export * from "./BatchCallDetailedResponse";
export * from "./BatchCallRecipientStatus";
export * from "./BatchCallResponse";
@@ -195,6 +198,11 @@ export * from "./CharacterUsageResponse";
export * from "./ClientEvent";
export * from "./ClientToolConfigInput";
export * from "./ClientToolConfigOutput";
+export * from "./CloseConnection";
+export * from "./CloseContext";
+export * from "./CloseSocket";
+export * from "./CommittedTranscriptPayload";
+export * from "./CommittedTranscriptWithTimestampsPayload";
export * from "./Contributor";
export * from "./ConvAiDynamicVariable";
export * from "./ConvAiSecretLocator";
@@ -242,8 +250,10 @@ export * from "./ConversationHistoryTranscriptCommonModelOutputSourceMedium";
export * from "./ConversationHistoryTranscriptCommonModelOutputToolResultsItem";
export * from "./ConversationHistoryTranscriptOtherToolsResultCommonModel";
export * from "./ConversationHistoryTranscriptOtherToolsResultCommonModelType";
-export * from "./ConversationHistoryTranscriptSystemToolResultCommonModel";
-export * from "./ConversationHistoryTranscriptSystemToolResultCommonModelResult";
+export * from "./ConversationHistoryTranscriptSystemToolResultCommonModelInput";
+export * from "./ConversationHistoryTranscriptSystemToolResultCommonModelInputResult";
+export * from "./ConversationHistoryTranscriptSystemToolResultCommonModelOutput";
+export * from "./ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult";
export * from "./ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails";
export * from "./ConversationHistoryTranscriptToolCallClientDetails";
export * from "./ConversationHistoryTranscriptToolCallCommonModelInput";
@@ -336,7 +346,6 @@ export * from "./DubbingMediaReference";
export * from "./DubbingMetadataPageResponseModel";
export * from "./DubbingMetadataResponse";
export * from "./DubbingModel";
-export * from "./DubbingReleaseChannel";
export * from "./DubbingRenderResponseModel";
export * from "./DubbingResource";
export * from "./DubbingTranscript";
@@ -370,13 +379,17 @@ export * from "./ExtendedSubscriptionResponseModelPendingChange";
export * from "./FeatureStatusCommonModel";
export * from "./FeaturesUsageCommonModel";
export * from "./FeedbackItem";
+export * from "./FinalOutput";
+export * from "./FinalOutputMulti";
export * from "./FineTuningResponse";
export * from "./FineTuningResponseModelStateValue";
+export * from "./FlushContext";
export * from "./ForcedAlignmentCharacterResponseModel";
export * from "./ForcedAlignmentResponseModel";
export * from "./ForcedAlignmentWordResponseModel";
export * from "./Gender";
export * from "./GenerateVoiceRequest";
+export * from "./GenerationConfig";
export * from "./GetAgentEmbedResponseModel";
export * from "./GetAgentKnowledgebaseSizeResponseModel";
export * from "./GetAgentLinkResponseModel";
@@ -448,10 +461,15 @@ export * from "./HtmlExportOptions";
export * from "./HttpValidationError";
export * from "./ImageAvatar";
export * from "./InboundSipTrunkConfigRequestModel";
+export * from "./InitialiseContext";
+export * from "./InitializeConnection";
+export * from "./InitializeConnectionMulti";
+export * from "./InputAudioChunkPayload";
export * from "./IntegrationType";
export * from "./InvoiceResponse";
export * from "./InvoiceResponseModelPaymentIntentStatus";
export * from "./InvoiceResponseModelPaymentIntentStatussesItem";
+export * from "./KeepContextAlive";
export * from "./KnowledgeBaseDependentType";
export * from "./KnowledgeBaseDocumentChunkResponseModel";
export * from "./KnowledgeBaseDocumentMetadataResponseModel";
@@ -524,6 +542,7 @@ export * from "./MultichannelSpeechToTextResponseModel";
export * from "./MultipartMusicResponse";
export * from "./MusicPrompt";
export * from "./NonStreamingOutputFormats";
+export * from "./NormalizedAlignment";
export * from "./ObjectJsonSchemaPropertyInput";
export * from "./ObjectJsonSchemaPropertyInputPropertiesValue";
export * from "./ObjectJsonSchemaPropertyOutput";
@@ -537,6 +556,7 @@ export * from "./OutboundCallRecipient";
export * from "./OutboundCallRecipientResponseModel";
export * from "./OutboundSipTrunkConfigRequestModel";
export * from "./OutputFormat";
+export * from "./PartialTranscriptPayload";
export * from "./PatchWorkspaceWebhookResponseModel";
export * from "./PdfExportOptions";
export * from "./PendingCancellationResponseModel";
@@ -581,6 +601,7 @@ export * from "./ProjectExtendedResponseModelSourceType";
export * from "./ProjectExtendedResponseModelTargetAudience";
export * from "./ProjectExternalAudioResponseModel";
export * from "./ProjectImageResponseModel";
+export * from "./ProjectMutedTracksResponseModel";
export * from "./ProjectResponse";
export * from "./ProjectResponseModelAccessLevel";
export * from "./ProjectResponseModelAspectRatio";
@@ -612,6 +633,7 @@ export * from "./PromptAgentApiModelWorkflowOverrideOutputToolsItem";
export * from "./PromptAgentDbModel";
export * from "./PromptEvaluationCriteria";
export * from "./PronunciationDictionaryAliasRuleRequestModel";
+export * from "./PronunciationDictionaryLocator";
export * from "./PronunciationDictionaryLocatorResponseModel";
export * from "./PronunciationDictionaryPhonemeRuleRequestModel";
export * from "./PronunciationDictionaryRulesResponseModel";
@@ -636,6 +658,7 @@ export * from "./ReaderResourceResponseModel";
export * from "./ReaderResourceResponseModelResourceType";
export * from "./ReadLegalTerms";
export * from "./ReadMetadataChapterDbModel";
+export * from "./RealtimeVoiceSettings";
export * from "./RecordingResponse";
export * from "./ReferencedToolCommonModel";
export * from "./ReferencedToolCommonModelType";
@@ -662,6 +685,19 @@ export * from "./SafetyRule";
export * from "./SampleConfigDbModel";
export * from "./SampleConfigDbModelParentType";
export * from "./SaveVoicePreviewRequest";
+export * from "./ScribeAuthErrorPayload";
+export * from "./ScribeChunkSizeExceededErrorPayload";
+export * from "./ScribeErrorPayload";
+export * from "./ScribeInputErrorPayload";
+export * from "./ScribeInsufficientAudioActivityErrorPayload";
+export * from "./ScribeQueueOverflowErrorPayload";
+export * from "./ScribeQuotaExceededErrorPayload";
+export * from "./ScribeRateLimitedErrorPayload";
+export * from "./ScribeResourceExhaustedErrorPayload";
+export * from "./ScribeSessionTimeLimitExceededErrorPayload";
+export * from "./ScribeThrottledErrorPayload";
+export * from "./ScribeTranscriberErrorPayload";
+export * from "./ScribeUnacceptedTermsErrorPayload";
export * from "./SeatType";
export * from "./SecretDependencyType";
export * from "./SectionSource";
@@ -674,6 +710,11 @@ export * from "./SegmentSubtitleFrame";
export * from "./SegmentTranscriptionResponse";
export * from "./SegmentTranslationResponse";
export * from "./SegmentUpdateResponse";
+export * from "./SendText";
+export * from "./SendTextMulti";
+export * from "./SessionStartedPayload";
+export * from "./SessionStartedPayloadConfig";
+export * from "./SessionStartedPayloadConfigCommitStrategy";
export * from "./ShareOptionResponseModel";
export * from "./ShareOptionResponseModelType";
export * from "./SimilarVoice";
@@ -741,6 +782,8 @@ export * from "./TestRunStatus";
export * from "./TestsFeatureUsageCommonModel";
export * from "./TestToolResultModel";
export * from "./TextNormalisationType";
+export * from "./TextToSpeechApplyTextNormalizationEnum";
+export * from "./TextToSpeechOutputFormatEnum";
export * from "./TextToSpeechRequest";
export * from "./TextToSpeechStreamRequest";
export * from "./TextToSpeechStreamWithTimestampsRequest";
@@ -752,6 +795,7 @@ export * from "./Tool";
export * from "./ToolAnnotations";
export * from "./ToolCallSoundBehavior";
export * from "./ToolCallSoundType";
+export * from "./ToolErrorHandlingMode";
export * from "./ToolExecutionMode";
export * from "./ToolMockConfig";
export * from "./ToolRequestModel";
@@ -763,9 +807,14 @@ export * from "./ToolsResponseModel";
export * from "./ToolType";
export * from "./ToolTypeFilter";
export * from "./ToolUsageStatsResponseModel";
+export * from "./TranscriptionWord";
+export * from "./TranscriptionWordType";
+export * from "./TransferBranchInfoDefaultingToMain";
+export * from "./TransferBranchInfoTrafficSplit";
export * from "./TransferToAgentToolConfig";
export * from "./TransferToAgentToolResultErrorModel";
export * from "./TransferToAgentToolResultSuccessModel";
+export * from "./TransferToAgentToolResultSuccessModelBranchInfo";
export * from "./TransferToNumberResultErrorModel";
export * from "./TransferToNumberResultSipSuccessModel";
export * from "./TransferToNumberResultTwilioSuccessModel";
@@ -788,6 +837,7 @@ export * from "./TurnConfigOverrideConfig";
export * from "./TurnConfigWorkflowOverride";
export * from "./TurnEagerness";
export * from "./TurnMode";
+export * from "./TurnModel";
export * from "./TwilioEdgeLocation";
export * from "./TwilioOutboundCallResponse";
export * from "./TwilioRegionId";
@@ -801,6 +851,7 @@ export * from "./UnitTestToolCallEvaluationModelInput";
export * from "./UnitTestToolCallEvaluationModelOutput";
export * from "./UnitTestToolCallParameter";
export * from "./UnitTestToolCallParameterEval";
+export * from "./UnitTestWorkflowNodeTransitionEvaluationNodeId";
export * from "./UpdateAudioNativeProjectRequest";
export * from "./UpdateChapterRequest";
export * from "./UpdateProjectRequest";
@@ -853,9 +904,23 @@ export * from "./WebhookToolApiSchemaConfigOutputRequestHeadersValue";
export * from "./WebhookToolConfigInput";
export * from "./WebhookToolConfigOutput";
export * from "./WebhookUsageType";
+export * from "./WebsocketTtsClientMessageMulti";
+export * from "./WebsocketTtsServerMessageMulti";
export * from "./WhatsAppConversationInfo";
export * from "./WhatsAppConversationInfoDirection";
export * from "./WhatsAppOutboundCallResponse";
+export * from "./WhatsAppOutboundMessageResponse";
+export * from "./WhatsAppTemplateBodyComponentParams";
+export * from "./WhatsAppTemplateButtonComponentParams";
+export * from "./WhatsAppTemplateDocumentParam";
+export * from "./WhatsAppTemplateDocumentParamDetails";
+export * from "./WhatsAppTemplateHeaderComponentParams";
+export * from "./WhatsAppTemplateHeaderComponentParamsParametersItem";
+export * from "./WhatsAppTemplateImageParam";
+export * from "./WhatsAppTemplateImageParamDetails";
+export * from "./WhatsAppTemplateLocationParam";
+export * from "./WhatsAppTemplateLocationParamDetails";
+export * from "./WhatsAppTemplateTextParam";
export * from "./WidgetConfig";
export * from "./WidgetConfigInputAvatar";
export * from "./WidgetConfigOutputAvatar";
diff --git a/src/serialization/resources/conversationalAi/resources/index.ts b/src/serialization/resources/conversationalAi/resources/index.ts
index 50fee9cd..1e2c510b 100644
--- a/src/serialization/resources/conversationalAi/resources/index.ts
+++ b/src/serialization/resources/conversationalAi/resources/index.ts
@@ -31,5 +31,6 @@ export * from "./twilio/client/requests";
export * from "./twilio/types";
export * as whatsapp from "./whatsapp";
export * from "./whatsapp/client/requests";
+export * from "./whatsapp/types";
export * as whatsappAccounts from "./whatsappAccounts";
export * from "./whatsappAccounts/client/requests";
diff --git a/src/serialization/resources/conversationalAi/resources/whatsapp/client/requests/BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePost.ts b/src/serialization/resources/conversationalAi/resources/whatsapp/client/requests/BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePost.ts
new file mode 100644
index 00000000..3aa5291f
--- /dev/null
+++ b/src/serialization/resources/conversationalAi/resources/whatsapp/client/requests/BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePost.ts
@@ -0,0 +1,40 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../../../../../../api/index";
+import * as core from "../../../../../../../core";
+import type * as serializers from "../../../../../../index";
+import { ConversationInitiationClientDataRequestInput } from "../../../../../../types/ConversationInitiationClientDataRequestInput";
+import { BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem } from "../../types/BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem";
+
+export const BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePost: core.serialization.Schema<
+ serializers.conversationalAi.BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePost.Raw,
+ ElevenLabs.conversationalAi.BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePost
+> = core.serialization.object({
+ whatsappPhoneNumberId: core.serialization.property("whatsapp_phone_number_id", core.serialization.string()),
+ whatsappUserId: core.serialization.property("whatsapp_user_id", core.serialization.string()),
+ templateName: core.serialization.property("template_name", core.serialization.string()),
+ templateLanguageCode: core.serialization.property("template_language_code", core.serialization.string()),
+ templateParams: core.serialization.property(
+ "template_params",
+ core.serialization.list(
+ BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem,
+ ),
+ ),
+ agentId: core.serialization.property("agent_id", core.serialization.string()),
+ conversationInitiationClientData: core.serialization.property(
+ "conversation_initiation_client_data",
+ ConversationInitiationClientDataRequestInput.optional(),
+ ),
+});
+
+export declare namespace BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePost {
+ export interface Raw {
+ whatsapp_phone_number_id: string;
+ whatsapp_user_id: string;
+ template_name: string;
+ template_language_code: string;
+ template_params: BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem.Raw[];
+ agent_id: string;
+ conversation_initiation_client_data?: ConversationInitiationClientDataRequestInput.Raw | null;
+ }
+}
diff --git a/src/serialization/resources/conversationalAi/resources/whatsapp/client/requests/index.ts b/src/serialization/resources/conversationalAi/resources/whatsapp/client/requests/index.ts
index 4229fea6..d0eb159f 100644
--- a/src/serialization/resources/conversationalAi/resources/whatsapp/client/requests/index.ts
+++ b/src/serialization/resources/conversationalAi/resources/whatsapp/client/requests/index.ts
@@ -1 +1,2 @@
export { BodyMakeAnOutboundCallViaWhatsAppV1ConvaiWhatsappOutboundCallPost } from "./BodyMakeAnOutboundCallViaWhatsAppV1ConvaiWhatsappOutboundCallPost";
+export { BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePost } from "./BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePost";
diff --git a/src/serialization/resources/conversationalAi/resources/whatsapp/index.ts b/src/serialization/resources/conversationalAi/resources/whatsapp/index.ts
index 5ec76921..d2ec2302 100644
--- a/src/serialization/resources/conversationalAi/resources/whatsapp/index.ts
+++ b/src/serialization/resources/conversationalAi/resources/whatsapp/index.ts
@@ -1 +1,2 @@
export * from "./client";
+export * from "./types";
diff --git a/src/serialization/resources/conversationalAi/resources/whatsapp/types/BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem.ts b/src/serialization/resources/conversationalAi/resources/whatsapp/types/BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem.ts
new file mode 100644
index 00000000..e8ee4f66
--- /dev/null
+++ b/src/serialization/resources/conversationalAi/resources/whatsapp/types/BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem.ts
@@ -0,0 +1,43 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../../../../../api/index";
+import * as core from "../../../../../../core";
+import type * as serializers from "../../../../../index";
+import { WhatsAppTemplateBodyComponentParams } from "../../../../../types/WhatsAppTemplateBodyComponentParams";
+import { WhatsAppTemplateButtonComponentParams } from "../../../../../types/WhatsAppTemplateButtonComponentParams";
+import { WhatsAppTemplateHeaderComponentParams } from "../../../../../types/WhatsAppTemplateHeaderComponentParams";
+
+export const BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem: core.serialization.Schema<
+ serializers.conversationalAi.BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem.Raw,
+ ElevenLabs.conversationalAi.BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem
+> = core.serialization
+ .union("type", {
+ body: WhatsAppTemplateBodyComponentParams,
+ button: WhatsAppTemplateButtonComponentParams,
+ header: WhatsAppTemplateHeaderComponentParams,
+ })
+ .transform(
+ {
+ transform: (value) => value,
+ untransform: (value) => value,
+ },
+ );
+
+export declare namespace BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem {
+ export type Raw =
+ | BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem.Body
+ | BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem.Button
+ | BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem.Header;
+
+ export interface Body extends WhatsAppTemplateBodyComponentParams.Raw {
+ type: "body";
+ }
+
+ export interface Button extends WhatsAppTemplateButtonComponentParams.Raw {
+ type: "button";
+ }
+
+ export interface Header extends WhatsAppTemplateHeaderComponentParams.Raw {
+ type: "header";
+ }
+}
diff --git a/src/serialization/resources/conversationalAi/resources/whatsapp/types/index.ts b/src/serialization/resources/conversationalAi/resources/whatsapp/types/index.ts
new file mode 100644
index 00000000..f130fa28
--- /dev/null
+++ b/src/serialization/resources/conversationalAi/resources/whatsapp/types/index.ts
@@ -0,0 +1 @@
+export * from "./BodySendAnOutboundMessageViaWhatsAppV1ConvaiWhatsappOutboundMessagePostTemplateParamsItem";
diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts
index 418b208b..c54bd77b 100644
--- a/src/serialization/resources/index.ts
+++ b/src/serialization/resources/index.ts
@@ -34,6 +34,12 @@ export * from "./textToSpeech/types";
export * as textToVoice from "./textToVoice";
export * from "./textToVoice/client/requests";
export * from "./textToVoice/types";
+export * as v1SpeechToTextRealtime from "./v1SpeechToTextRealtime";
+export * from "./v1SpeechToTextRealtime/types";
+export * as v1TextToSpeechVoiceIdMultiStreamInput from "./v1TextToSpeechVoiceIdMultiStreamInput";
+export * from "./v1TextToSpeechVoiceIdMultiStreamInput/types";
+export * as v1TextToSpeechVoiceIdStreamInput from "./v1TextToSpeechVoiceIdStreamInput";
+export * from "./v1TextToSpeechVoiceIdStreamInput/types";
export * as voices from "./voices";
export * from "./voices/client/requests";
export * from "./voices/types";
diff --git a/src/serialization/resources/v1SpeechToTextRealtime/index.ts b/src/serialization/resources/v1SpeechToTextRealtime/index.ts
new file mode 100644
index 00000000..eea524d6
--- /dev/null
+++ b/src/serialization/resources/v1SpeechToTextRealtime/index.ts
@@ -0,0 +1 @@
+export * from "./types";
diff --git a/src/serialization/resources/v1SpeechToTextRealtime/types/ReceiveTranscription.ts b/src/serialization/resources/v1SpeechToTextRealtime/types/ReceiveTranscription.ts
new file mode 100644
index 00000000..4c2b031d
--- /dev/null
+++ b/src/serialization/resources/v1SpeechToTextRealtime/types/ReceiveTranscription.ts
@@ -0,0 +1,66 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../../../api/index";
+import * as core from "../../../../core";
+import type * as serializers from "../../../index";
+import { CommittedTranscriptPayload } from "../../../types/CommittedTranscriptPayload";
+import { CommittedTranscriptWithTimestampsPayload } from "../../../types/CommittedTranscriptWithTimestampsPayload";
+import { PartialTranscriptPayload } from "../../../types/PartialTranscriptPayload";
+import { ScribeAuthErrorPayload } from "../../../types/ScribeAuthErrorPayload";
+import { ScribeChunkSizeExceededErrorPayload } from "../../../types/ScribeChunkSizeExceededErrorPayload";
+import { ScribeErrorPayload } from "../../../types/ScribeErrorPayload";
+import { ScribeInputErrorPayload } from "../../../types/ScribeInputErrorPayload";
+import { ScribeInsufficientAudioActivityErrorPayload } from "../../../types/ScribeInsufficientAudioActivityErrorPayload";
+import { ScribeQueueOverflowErrorPayload } from "../../../types/ScribeQueueOverflowErrorPayload";
+import { ScribeQuotaExceededErrorPayload } from "../../../types/ScribeQuotaExceededErrorPayload";
+import { ScribeRateLimitedErrorPayload } from "../../../types/ScribeRateLimitedErrorPayload";
+import { ScribeResourceExhaustedErrorPayload } from "../../../types/ScribeResourceExhaustedErrorPayload";
+import { ScribeSessionTimeLimitExceededErrorPayload } from "../../../types/ScribeSessionTimeLimitExceededErrorPayload";
+import { ScribeThrottledErrorPayload } from "../../../types/ScribeThrottledErrorPayload";
+import { ScribeTranscriberErrorPayload } from "../../../types/ScribeTranscriberErrorPayload";
+import { ScribeUnacceptedTermsErrorPayload } from "../../../types/ScribeUnacceptedTermsErrorPayload";
+import { SessionStartedPayload } from "../../../types/SessionStartedPayload";
+
+export const ReceiveTranscription: core.serialization.Schema<
+ serializers.ReceiveTranscription.Raw,
+ ElevenLabs.ReceiveTranscription
+> = core.serialization.undiscriminatedUnion([
+ SessionStartedPayload,
+ PartialTranscriptPayload,
+ CommittedTranscriptPayload,
+ CommittedTranscriptWithTimestampsPayload,
+ ScribeErrorPayload,
+ ScribeAuthErrorPayload,
+ ScribeQuotaExceededErrorPayload,
+ ScribeThrottledErrorPayload,
+ ScribeUnacceptedTermsErrorPayload,
+ ScribeRateLimitedErrorPayload,
+ ScribeQueueOverflowErrorPayload,
+ ScribeResourceExhaustedErrorPayload,
+ ScribeSessionTimeLimitExceededErrorPayload,
+ ScribeInputErrorPayload,
+ ScribeChunkSizeExceededErrorPayload,
+ ScribeInsufficientAudioActivityErrorPayload,
+ ScribeTranscriberErrorPayload,
+]);
+
+export declare namespace ReceiveTranscription {
+ export type Raw =
+ | SessionStartedPayload.Raw
+ | PartialTranscriptPayload.Raw
+ | CommittedTranscriptPayload.Raw
+ | CommittedTranscriptWithTimestampsPayload.Raw
+ | ScribeErrorPayload.Raw
+ | ScribeAuthErrorPayload.Raw
+ | ScribeQuotaExceededErrorPayload.Raw
+ | ScribeThrottledErrorPayload.Raw
+ | ScribeUnacceptedTermsErrorPayload.Raw
+ | ScribeRateLimitedErrorPayload.Raw
+ | ScribeQueueOverflowErrorPayload.Raw
+ | ScribeResourceExhaustedErrorPayload.Raw
+ | ScribeSessionTimeLimitExceededErrorPayload.Raw
+ | ScribeInputErrorPayload.Raw
+ | ScribeChunkSizeExceededErrorPayload.Raw
+ | ScribeInsufficientAudioActivityErrorPayload.Raw
+ | ScribeTranscriberErrorPayload.Raw;
+}
diff --git a/src/serialization/resources/v1SpeechToTextRealtime/types/TextToSpeechCommitStrategy.ts b/src/serialization/resources/v1SpeechToTextRealtime/types/TextToSpeechCommitStrategy.ts
new file mode 100644
index 00000000..da5b6638
--- /dev/null
+++ b/src/serialization/resources/v1SpeechToTextRealtime/types/TextToSpeechCommitStrategy.ts
@@ -0,0 +1,14 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../../../api/index";
+import * as core from "../../../../core";
+import type * as serializers from "../../../index";
+
+export const TextToSpeechCommitStrategy: core.serialization.Schema<
+ serializers.TextToSpeechCommitStrategy.Raw,
+ ElevenLabs.TextToSpeechCommitStrategy
+> = core.serialization.enum_(["manual", "vad"]);
+
+export declare namespace TextToSpeechCommitStrategy {
+ export type Raw = "manual" | "vad";
+}
diff --git a/src/serialization/resources/v1SpeechToTextRealtime/types/index.ts b/src/serialization/resources/v1SpeechToTextRealtime/types/index.ts
new file mode 100644
index 00000000..dbb96abd
--- /dev/null
+++ b/src/serialization/resources/v1SpeechToTextRealtime/types/index.ts
@@ -0,0 +1,2 @@
+export * from "./ReceiveTranscription";
+export * from "./TextToSpeechCommitStrategy";
diff --git a/src/serialization/resources/v1TextToSpeechVoiceIdMultiStreamInput/index.ts b/src/serialization/resources/v1TextToSpeechVoiceIdMultiStreamInput/index.ts
new file mode 100644
index 00000000..eea524d6
--- /dev/null
+++ b/src/serialization/resources/v1TextToSpeechVoiceIdMultiStreamInput/index.ts
@@ -0,0 +1 @@
+export * from "./types";
diff --git a/src/serialization/resources/v1TextToSpeechVoiceIdMultiStreamInput/types/ReceiveMessageMulti.ts b/src/serialization/resources/v1TextToSpeechVoiceIdMultiStreamInput/types/ReceiveMessageMulti.ts
new file mode 100644
index 00000000..367cace0
--- /dev/null
+++ b/src/serialization/resources/v1TextToSpeechVoiceIdMultiStreamInput/types/ReceiveMessageMulti.ts
@@ -0,0 +1,16 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../../../api/index";
+import * as core from "../../../../core";
+import type * as serializers from "../../../index";
+import { AudioOutputMulti } from "../../../types/AudioOutputMulti";
+import { FinalOutputMulti } from "../../../types/FinalOutputMulti";
+
+export const ReceiveMessageMulti: core.serialization.Schema<
+ serializers.ReceiveMessageMulti.Raw,
+ ElevenLabs.ReceiveMessageMulti
+> = core.serialization.undiscriminatedUnion([AudioOutputMulti, FinalOutputMulti]);
+
+export declare namespace ReceiveMessageMulti {
+ export type Raw = AudioOutputMulti.Raw | FinalOutputMulti.Raw;
+}
diff --git a/src/serialization/resources/v1TextToSpeechVoiceIdMultiStreamInput/types/SendMessageMulti.ts b/src/serialization/resources/v1TextToSpeechVoiceIdMultiStreamInput/types/SendMessageMulti.ts
new file mode 100644
index 00000000..de067038
--- /dev/null
+++ b/src/serialization/resources/v1TextToSpeechVoiceIdMultiStreamInput/types/SendMessageMulti.ts
@@ -0,0 +1,36 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../../../api/index";
+import * as core from "../../../../core";
+import type * as serializers from "../../../index";
+import { CloseContext } from "../../../types/CloseContext";
+import { CloseSocket } from "../../../types/CloseSocket";
+import { FlushContext } from "../../../types/FlushContext";
+import { InitialiseContext } from "../../../types/InitialiseContext";
+import { InitializeConnectionMulti } from "../../../types/InitializeConnectionMulti";
+import { KeepContextAlive } from "../../../types/KeepContextAlive";
+import { SendTextMulti } from "../../../types/SendTextMulti";
+
+export const SendMessageMulti: core.serialization.Schema<
+ serializers.SendMessageMulti.Raw,
+ ElevenLabs.SendMessageMulti
+> = core.serialization.undiscriminatedUnion([
+ InitializeConnectionMulti,
+ InitialiseContext,
+ SendTextMulti,
+ FlushContext,
+ CloseContext,
+ CloseSocket,
+ KeepContextAlive,
+]);
+
+export declare namespace SendMessageMulti {
+ export type Raw =
+ | InitializeConnectionMulti.Raw
+ | InitialiseContext.Raw
+ | SendTextMulti.Raw
+ | FlushContext.Raw
+ | CloseContext.Raw
+ | CloseSocket.Raw
+ | KeepContextAlive.Raw;
+}
diff --git a/src/serialization/resources/v1TextToSpeechVoiceIdMultiStreamInput/types/index.ts b/src/serialization/resources/v1TextToSpeechVoiceIdMultiStreamInput/types/index.ts
new file mode 100644
index 00000000..432dd4b5
--- /dev/null
+++ b/src/serialization/resources/v1TextToSpeechVoiceIdMultiStreamInput/types/index.ts
@@ -0,0 +1,2 @@
+export * from "./ReceiveMessageMulti";
+export * from "./SendMessageMulti";
diff --git a/src/serialization/resources/v1TextToSpeechVoiceIdStreamInput/index.ts b/src/serialization/resources/v1TextToSpeechVoiceIdStreamInput/index.ts
new file mode 100644
index 00000000..eea524d6
--- /dev/null
+++ b/src/serialization/resources/v1TextToSpeechVoiceIdStreamInput/index.ts
@@ -0,0 +1 @@
+export * from "./types";
diff --git a/src/serialization/resources/v1TextToSpeechVoiceIdStreamInput/types/ReceiveMessage.ts b/src/serialization/resources/v1TextToSpeechVoiceIdStreamInput/types/ReceiveMessage.ts
new file mode 100644
index 00000000..1ee07030
--- /dev/null
+++ b/src/serialization/resources/v1TextToSpeechVoiceIdStreamInput/types/ReceiveMessage.ts
@@ -0,0 +1,14 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../../../api/index";
+import * as core from "../../../../core";
+import type * as serializers from "../../../index";
+import { AudioOutput } from "../../../types/AudioOutput";
+import { FinalOutput } from "../../../types/FinalOutput";
+
+export const ReceiveMessage: core.serialization.Schema =
+ core.serialization.undiscriminatedUnion([AudioOutput, FinalOutput]);
+
+export declare namespace ReceiveMessage {
+ export type Raw = AudioOutput.Raw | FinalOutput.Raw;
+}
diff --git a/src/serialization/resources/v1TextToSpeechVoiceIdStreamInput/types/SendMessage.ts b/src/serialization/resources/v1TextToSpeechVoiceIdStreamInput/types/SendMessage.ts
new file mode 100644
index 00000000..e60321e9
--- /dev/null
+++ b/src/serialization/resources/v1TextToSpeechVoiceIdStreamInput/types/SendMessage.ts
@@ -0,0 +1,15 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../../../api/index";
+import * as core from "../../../../core";
+import type * as serializers from "../../../index";
+import { CloseConnection } from "../../../types/CloseConnection";
+import { InitializeConnection } from "../../../types/InitializeConnection";
+import { SendText } from "../../../types/SendText";
+
+export const SendMessage: core.serialization.Schema =
+ core.serialization.undiscriminatedUnion([InitializeConnection, SendText, CloseConnection]);
+
+export declare namespace SendMessage {
+ export type Raw = InitializeConnection.Raw | SendText.Raw | CloseConnection.Raw;
+}
diff --git a/src/serialization/resources/v1TextToSpeechVoiceIdStreamInput/types/index.ts b/src/serialization/resources/v1TextToSpeechVoiceIdStreamInput/types/index.ts
new file mode 100644
index 00000000..3f51b639
--- /dev/null
+++ b/src/serialization/resources/v1TextToSpeechVoiceIdStreamInput/types/index.ts
@@ -0,0 +1,2 @@
+export * from "./ReceiveMessage";
+export * from "./SendMessage";
diff --git a/src/serialization/types/AgentTransfer.ts b/src/serialization/types/AgentTransfer.ts
index d055853e..43eae4d3 100644
--- a/src/serialization/types/AgentTransfer.ts
+++ b/src/serialization/types/AgentTransfer.ts
@@ -14,6 +14,10 @@ export const AgentTransfer: core.serialization.ObjectSchema =
+ core.serialization.object({
+ charStartTimesMs: core.serialization.list(core.serialization.number()).optional(),
+ charDurationsMs: core.serialization.list(core.serialization.number()).optional(),
+ chars: core.serialization.list(core.serialization.string()).optional(),
+ });
+
+export declare namespace Alignment {
+ export interface Raw {
+ charStartTimesMs?: number[] | null;
+ charDurationsMs?: number[] | null;
+ chars?: string[] | null;
+ }
+}
diff --git a/src/serialization/types/ApiIntegrationWebhookToolConfigInput.ts b/src/serialization/types/ApiIntegrationWebhookToolConfigInput.ts
index 0c4184ca..be212eec 100644
--- a/src/serialization/types/ApiIntegrationWebhookToolConfigInput.ts
+++ b/src/serialization/types/ApiIntegrationWebhookToolConfigInput.ts
@@ -8,6 +8,7 @@ import { DynamicVariableAssignment } from "./DynamicVariableAssignment";
import { DynamicVariablesConfig } from "./DynamicVariablesConfig";
import { ToolCallSoundBehavior } from "./ToolCallSoundBehavior";
import { ToolCallSoundType } from "./ToolCallSoundType";
+import { ToolErrorHandlingMode } from "./ToolErrorHandlingMode";
import { ToolExecutionMode } from "./ToolExecutionMode";
export const ApiIntegrationWebhookToolConfigInput: core.serialization.ObjectSchema<
@@ -22,6 +23,7 @@ export const ApiIntegrationWebhookToolConfigInput: core.serialization.ObjectSche
assignments: core.serialization.list(DynamicVariableAssignment).optional(),
toolCallSound: core.serialization.property("tool_call_sound", ToolCallSoundType.optional()),
toolCallSoundBehavior: core.serialization.property("tool_call_sound_behavior", ToolCallSoundBehavior.optional()),
+ toolErrorHandlingMode: core.serialization.property("tool_error_handling_mode", ToolErrorHandlingMode.optional()),
dynamicVariables: core.serialization.property("dynamic_variables", DynamicVariablesConfig.optional()),
executionMode: core.serialization.property("execution_mode", ToolExecutionMode.optional()),
toolVersion: core.serialization.property("tool_version", core.serialization.string().optional()),
@@ -46,6 +48,7 @@ export declare namespace ApiIntegrationWebhookToolConfigInput {
assignments?: DynamicVariableAssignment.Raw[] | null;
tool_call_sound?: ToolCallSoundType.Raw | null;
tool_call_sound_behavior?: ToolCallSoundBehavior.Raw | null;
+ tool_error_handling_mode?: ToolErrorHandlingMode.Raw | null;
dynamic_variables?: DynamicVariablesConfig.Raw | null;
execution_mode?: ToolExecutionMode.Raw | null;
tool_version?: string | null;
diff --git a/src/serialization/types/ApiIntegrationWebhookToolConfigOutput.ts b/src/serialization/types/ApiIntegrationWebhookToolConfigOutput.ts
index 1cd5468a..eecf81a5 100644
--- a/src/serialization/types/ApiIntegrationWebhookToolConfigOutput.ts
+++ b/src/serialization/types/ApiIntegrationWebhookToolConfigOutput.ts
@@ -8,6 +8,7 @@ import { DynamicVariableAssignment } from "./DynamicVariableAssignment";
import { DynamicVariablesConfig } from "./DynamicVariablesConfig";
import { ToolCallSoundBehavior } from "./ToolCallSoundBehavior";
import { ToolCallSoundType } from "./ToolCallSoundType";
+import { ToolErrorHandlingMode } from "./ToolErrorHandlingMode";
import { ToolExecutionMode } from "./ToolExecutionMode";
export const ApiIntegrationWebhookToolConfigOutput: core.serialization.ObjectSchema<
@@ -22,6 +23,7 @@ export const ApiIntegrationWebhookToolConfigOutput: core.serialization.ObjectSch
assignments: core.serialization.list(DynamicVariableAssignment),
toolCallSound: core.serialization.property("tool_call_sound", ToolCallSoundType.optional()),
toolCallSoundBehavior: core.serialization.property("tool_call_sound_behavior", ToolCallSoundBehavior),
+ toolErrorHandlingMode: core.serialization.property("tool_error_handling_mode", ToolErrorHandlingMode),
dynamicVariables: core.serialization.property("dynamic_variables", DynamicVariablesConfig),
executionMode: core.serialization.property("execution_mode", ToolExecutionMode),
toolVersion: core.serialization.property("tool_version", core.serialization.string()),
@@ -46,6 +48,7 @@ export declare namespace ApiIntegrationWebhookToolConfigOutput {
assignments: DynamicVariableAssignment.Raw[];
tool_call_sound?: ToolCallSoundType.Raw | null;
tool_call_sound_behavior: ToolCallSoundBehavior.Raw;
+ tool_error_handling_mode: ToolErrorHandlingMode.Raw;
dynamic_variables: DynamicVariablesConfig.Raw;
execution_mode: ToolExecutionMode.Raw;
tool_version: string;
diff --git a/src/serialization/types/AudioFormatEnum.ts b/src/serialization/types/AudioFormatEnum.ts
new file mode 100644
index 00000000..d8e5074e
--- /dev/null
+++ b/src/serialization/types/AudioFormatEnum.ts
@@ -0,0 +1,20 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const AudioFormatEnum: core.serialization.Schema =
+ core.serialization.enum_([
+ "pcm_8000",
+ "pcm_16000",
+ "pcm_22050",
+ "pcm_24000",
+ "pcm_44100",
+ "pcm_48000",
+ "ulaw_8000",
+ ]);
+
+export declare namespace AudioFormatEnum {
+ export type Raw = "pcm_8000" | "pcm_16000" | "pcm_22050" | "pcm_24000" | "pcm_44100" | "pcm_48000" | "ulaw_8000";
+}
diff --git a/src/serialization/types/AudioOutput.ts b/src/serialization/types/AudioOutput.ts
new file mode 100644
index 00000000..c43e6045
--- /dev/null
+++ b/src/serialization/types/AudioOutput.ts
@@ -0,0 +1,22 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+import { Alignment } from "./Alignment";
+import { NormalizedAlignment } from "./NormalizedAlignment";
+
+export const AudioOutput: core.serialization.ObjectSchema =
+ core.serialization.object({
+ audio: core.serialization.string(),
+ normalizedAlignment: NormalizedAlignment.optional(),
+ alignment: Alignment.optional(),
+ });
+
+export declare namespace AudioOutput {
+ export interface Raw {
+ audio: string;
+ normalizedAlignment?: NormalizedAlignment.Raw | null;
+ alignment?: Alignment.Raw | null;
+ }
+}
diff --git a/src/serialization/types/AudioOutputMulti.ts b/src/serialization/types/AudioOutputMulti.ts
new file mode 100644
index 00000000..129d3968
--- /dev/null
+++ b/src/serialization/types/AudioOutputMulti.ts
@@ -0,0 +1,26 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+import { Alignment } from "./Alignment";
+import { NormalizedAlignment } from "./NormalizedAlignment";
+
+export const AudioOutputMulti: core.serialization.ObjectSchema<
+ serializers.AudioOutputMulti.Raw,
+ ElevenLabs.AudioOutputMulti
+> = core.serialization.object({
+ audio: core.serialization.string(),
+ normalizedAlignment: NormalizedAlignment.optional(),
+ alignment: Alignment.optional(),
+ contextId: core.serialization.string().optional(),
+});
+
+export declare namespace AudioOutputMulti {
+ export interface Raw {
+ audio: string;
+ normalizedAlignment?: NormalizedAlignment.Raw | null;
+ alignment?: Alignment.Raw | null;
+ contextId?: string | null;
+ }
+}
diff --git a/src/serialization/types/AuthSettings.ts b/src/serialization/types/AuthSettings.ts
index 9765e20a..e774ccb7 100644
--- a/src/serialization/types/AuthSettings.ts
+++ b/src/serialization/types/AuthSettings.ts
@@ -9,6 +9,10 @@ export const AuthSettings: core.serialization.ObjectSchema =
- core.serialization.enum_(["safety", "manual"]);
-
-export declare namespace BanReasonType {
- export type Raw = "safety" | "manual";
-}
diff --git a/src/serialization/types/CanvasPlacement.ts b/src/serialization/types/CanvasPlacement.ts
index 03e94a82..99f446fa 100644
--- a/src/serialization/types/CanvasPlacement.ts
+++ b/src/serialization/types/CanvasPlacement.ts
@@ -8,8 +8,8 @@ export const CanvasPlacement: core.serialization.ObjectSchema<
serializers.CanvasPlacement.Raw,
ElevenLabs.CanvasPlacement
> = core.serialization.object({
- x: core.serialization.number().optional(),
- y: core.serialization.number().optional(),
+ xRelative: core.serialization.property("x_relative", core.serialization.number().optional()),
+ yRelative: core.serialization.property("y_relative", core.serialization.number().optional()),
scaleX: core.serialization.property("scale_x", core.serialization.number().optional()),
scaleY: core.serialization.property("scale_y", core.serialization.number().optional()),
pivotX: core.serialization.property("pivot_x", core.serialization.number().optional()),
@@ -20,8 +20,8 @@ export const CanvasPlacement: core.serialization.ObjectSchema<
export declare namespace CanvasPlacement {
export interface Raw {
- x?: number | null;
- y?: number | null;
+ x_relative?: number | null;
+ y_relative?: number | null;
scale_x?: number | null;
scale_y?: number | null;
pivot_x?: number | null;
diff --git a/src/serialization/types/ClientToolConfigInput.ts b/src/serialization/types/ClientToolConfigInput.ts
index 8bf7efcd..0c43e313 100644
--- a/src/serialization/types/ClientToolConfigInput.ts
+++ b/src/serialization/types/ClientToolConfigInput.ts
@@ -7,6 +7,7 @@ import { DynamicVariableAssignment } from "./DynamicVariableAssignment";
import { DynamicVariablesConfig } from "./DynamicVariablesConfig";
import { ToolCallSoundBehavior } from "./ToolCallSoundBehavior";
import { ToolCallSoundType } from "./ToolCallSoundType";
+import { ToolErrorHandlingMode } from "./ToolErrorHandlingMode";
import { ToolExecutionMode } from "./ToolExecutionMode";
export const ClientToolConfigInput: core.serialization.ObjectSchema<
@@ -21,6 +22,7 @@ export const ClientToolConfigInput: core.serialization.ObjectSchema<
assignments: core.serialization.list(DynamicVariableAssignment).optional(),
toolCallSound: core.serialization.property("tool_call_sound", ToolCallSoundType.optional()),
toolCallSoundBehavior: core.serialization.property("tool_call_sound_behavior", ToolCallSoundBehavior.optional()),
+ toolErrorHandlingMode: core.serialization.property("tool_error_handling_mode", ToolErrorHandlingMode.optional()),
parameters: core.serialization.lazyObject(() => serializers.ObjectJsonSchemaPropertyInput).optional(),
expectsResponse: core.serialization.property("expects_response", core.serialization.boolean().optional()),
dynamicVariables: core.serialization.property("dynamic_variables", DynamicVariablesConfig.optional()),
@@ -37,6 +39,7 @@ export declare namespace ClientToolConfigInput {
assignments?: DynamicVariableAssignment.Raw[] | null;
tool_call_sound?: ToolCallSoundType.Raw | null;
tool_call_sound_behavior?: ToolCallSoundBehavior.Raw | null;
+ tool_error_handling_mode?: ToolErrorHandlingMode.Raw | null;
parameters?: serializers.ObjectJsonSchemaPropertyInput.Raw | null;
expects_response?: boolean | null;
dynamic_variables?: DynamicVariablesConfig.Raw | null;
diff --git a/src/serialization/types/ClientToolConfigOutput.ts b/src/serialization/types/ClientToolConfigOutput.ts
index f514a279..c7a99b7e 100644
--- a/src/serialization/types/ClientToolConfigOutput.ts
+++ b/src/serialization/types/ClientToolConfigOutput.ts
@@ -7,6 +7,7 @@ import { DynamicVariableAssignment } from "./DynamicVariableAssignment";
import { DynamicVariablesConfig } from "./DynamicVariablesConfig";
import { ToolCallSoundBehavior } from "./ToolCallSoundBehavior";
import { ToolCallSoundType } from "./ToolCallSoundType";
+import { ToolErrorHandlingMode } from "./ToolErrorHandlingMode";
import { ToolExecutionMode } from "./ToolExecutionMode";
export const ClientToolConfigOutput: core.serialization.ObjectSchema<
@@ -21,6 +22,7 @@ export const ClientToolConfigOutput: core.serialization.ObjectSchema<
assignments: core.serialization.list(DynamicVariableAssignment).optional(),
toolCallSound: core.serialization.property("tool_call_sound", ToolCallSoundType.optional()),
toolCallSoundBehavior: core.serialization.property("tool_call_sound_behavior", ToolCallSoundBehavior.optional()),
+ toolErrorHandlingMode: core.serialization.property("tool_error_handling_mode", ToolErrorHandlingMode.optional()),
parameters: core.serialization.lazyObject(() => serializers.ObjectJsonSchemaPropertyOutput).optional(),
expectsResponse: core.serialization.property("expects_response", core.serialization.boolean().optional()),
dynamicVariables: core.serialization.property("dynamic_variables", DynamicVariablesConfig.optional()),
@@ -37,6 +39,7 @@ export declare namespace ClientToolConfigOutput {
assignments?: DynamicVariableAssignment.Raw[] | null;
tool_call_sound?: ToolCallSoundType.Raw | null;
tool_call_sound_behavior?: ToolCallSoundBehavior.Raw | null;
+ tool_error_handling_mode?: ToolErrorHandlingMode.Raw | null;
parameters?: serializers.ObjectJsonSchemaPropertyOutput.Raw | null;
expects_response?: boolean | null;
dynamic_variables?: DynamicVariablesConfig.Raw | null;
diff --git a/src/serialization/types/CloseConnection.ts b/src/serialization/types/CloseConnection.ts
new file mode 100644
index 00000000..a91efd88
--- /dev/null
+++ b/src/serialization/types/CloseConnection.ts
@@ -0,0 +1,18 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const CloseConnection: core.serialization.ObjectSchema<
+ serializers.CloseConnection.Raw,
+ ElevenLabs.CloseConnection
+> = core.serialization.object({
+ text: core.serialization.stringLiteral(""),
+});
+
+export declare namespace CloseConnection {
+ export interface Raw {
+ text: "";
+ }
+}
diff --git a/src/serialization/types/CloseContext.ts b/src/serialization/types/CloseContext.ts
new file mode 100644
index 00000000..bcb73e01
--- /dev/null
+++ b/src/serialization/types/CloseContext.ts
@@ -0,0 +1,18 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const CloseContext: core.serialization.ObjectSchema =
+ core.serialization.object({
+ contextId: core.serialization.property("context_id", core.serialization.string()),
+ closeContext: core.serialization.property("close_context", core.serialization.boolean()),
+ });
+
+export declare namespace CloseContext {
+ export interface Raw {
+ context_id: string;
+ close_context: boolean;
+ }
+}
diff --git a/src/serialization/types/CloseSocket.ts b/src/serialization/types/CloseSocket.ts
new file mode 100644
index 00000000..2f195b2d
--- /dev/null
+++ b/src/serialization/types/CloseSocket.ts
@@ -0,0 +1,16 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const CloseSocket: core.serialization.ObjectSchema =
+ core.serialization.object({
+ closeSocket: core.serialization.property("close_socket", core.serialization.boolean().optional()),
+ });
+
+export declare namespace CloseSocket {
+ export interface Raw {
+ close_socket?: boolean | null;
+ }
+}
diff --git a/src/serialization/types/CommittedTranscriptPayload.ts b/src/serialization/types/CommittedTranscriptPayload.ts
new file mode 100644
index 00000000..46c9ad15
--- /dev/null
+++ b/src/serialization/types/CommittedTranscriptPayload.ts
@@ -0,0 +1,20 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const CommittedTranscriptPayload: core.serialization.ObjectSchema<
+ serializers.CommittedTranscriptPayload.Raw,
+ ElevenLabs.CommittedTranscriptPayload
+> = core.serialization.object({
+ messageType: core.serialization.property("message_type", core.serialization.stringLiteral("committed_transcript")),
+ text: core.serialization.string(),
+});
+
+export declare namespace CommittedTranscriptPayload {
+ export interface Raw {
+ message_type: "committed_transcript";
+ text: string;
+ }
+}
diff --git a/src/serialization/types/CommittedTranscriptWithTimestampsPayload.ts b/src/serialization/types/CommittedTranscriptWithTimestampsPayload.ts
new file mode 100644
index 00000000..1c5c64b1
--- /dev/null
+++ b/src/serialization/types/CommittedTranscriptWithTimestampsPayload.ts
@@ -0,0 +1,28 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+import { TranscriptionWord } from "./TranscriptionWord";
+
+export const CommittedTranscriptWithTimestampsPayload: core.serialization.ObjectSchema<
+ serializers.CommittedTranscriptWithTimestampsPayload.Raw,
+ ElevenLabs.CommittedTranscriptWithTimestampsPayload
+> = core.serialization.object({
+ messageType: core.serialization.property(
+ "message_type",
+ core.serialization.stringLiteral("committed_transcript_with_timestamps"),
+ ),
+ text: core.serialization.string(),
+ languageCode: core.serialization.property("language_code", core.serialization.string().optional()),
+ words: core.serialization.list(TranscriptionWord).optional(),
+});
+
+export declare namespace CommittedTranscriptWithTimestampsPayload {
+ export interface Raw {
+ message_type: "committed_transcript_with_timestamps";
+ text: string;
+ language_code?: string | null;
+ words?: TranscriptionWord.Raw[] | null;
+ }
+}
diff --git a/src/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.ts b/src/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.ts
index 8af7a3bf..27cb1a72 100644
--- a/src/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.ts
+++ b/src/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.ts
@@ -5,14 +5,14 @@ import * as core from "../../core";
import * as serializers from "../index";
import { ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel } from "./ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel";
import { ConversationHistoryTranscriptOtherToolsResultCommonModel } from "./ConversationHistoryTranscriptOtherToolsResultCommonModel";
-import { ConversationHistoryTranscriptSystemToolResultCommonModel } from "./ConversationHistoryTranscriptSystemToolResultCommonModel";
+import { ConversationHistoryTranscriptSystemToolResultCommonModelInput } from "./ConversationHistoryTranscriptSystemToolResultCommonModelInput";
export const ConversationHistoryTranscriptCommonModelInputToolResultsItem: core.serialization.Schema<
serializers.ConversationHistoryTranscriptCommonModelInputToolResultsItem.Raw,
ElevenLabs.ConversationHistoryTranscriptCommonModelInputToolResultsItem
> = core.serialization.undiscriminatedUnion([
ConversationHistoryTranscriptOtherToolsResultCommonModel,
- ConversationHistoryTranscriptSystemToolResultCommonModel,
+ ConversationHistoryTranscriptSystemToolResultCommonModelInput,
ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel,
core.serialization.lazyObject(() => serializers.ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput),
]);
@@ -20,7 +20,7 @@ export const ConversationHistoryTranscriptCommonModelInputToolResultsItem: core.
export declare namespace ConversationHistoryTranscriptCommonModelInputToolResultsItem {
export type Raw =
| ConversationHistoryTranscriptOtherToolsResultCommonModel.Raw
- | ConversationHistoryTranscriptSystemToolResultCommonModel.Raw
+ | ConversationHistoryTranscriptSystemToolResultCommonModelInput.Raw
| ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.Raw
| serializers.ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.Raw;
}
diff --git a/src/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.ts b/src/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.ts
index 569ec36d..12ead3c3 100644
--- a/src/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.ts
+++ b/src/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.ts
@@ -5,14 +5,14 @@ import * as core from "../../core";
import * as serializers from "../index";
import { ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel } from "./ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel";
import { ConversationHistoryTranscriptOtherToolsResultCommonModel } from "./ConversationHistoryTranscriptOtherToolsResultCommonModel";
-import { ConversationHistoryTranscriptSystemToolResultCommonModel } from "./ConversationHistoryTranscriptSystemToolResultCommonModel";
+import { ConversationHistoryTranscriptSystemToolResultCommonModelOutput } from "./ConversationHistoryTranscriptSystemToolResultCommonModelOutput";
export const ConversationHistoryTranscriptCommonModelOutputToolResultsItem: core.serialization.Schema<
serializers.ConversationHistoryTranscriptCommonModelOutputToolResultsItem.Raw,
ElevenLabs.ConversationHistoryTranscriptCommonModelOutputToolResultsItem
> = core.serialization.undiscriminatedUnion([
ConversationHistoryTranscriptOtherToolsResultCommonModel,
- ConversationHistoryTranscriptSystemToolResultCommonModel,
+ ConversationHistoryTranscriptSystemToolResultCommonModelOutput,
ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel,
core.serialization.lazyObject(() => serializers.ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput),
]);
@@ -20,7 +20,7 @@ export const ConversationHistoryTranscriptCommonModelOutputToolResultsItem: core
export declare namespace ConversationHistoryTranscriptCommonModelOutputToolResultsItem {
export type Raw =
| ConversationHistoryTranscriptOtherToolsResultCommonModel.Raw
- | ConversationHistoryTranscriptSystemToolResultCommonModel.Raw
+ | ConversationHistoryTranscriptSystemToolResultCommonModelOutput.Raw
| ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.Raw
| serializers.ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.Raw;
}
diff --git a/src/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.ts b/src/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelInput.ts
similarity index 89%
rename from src/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.ts
rename to src/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelInput.ts
index 5731c7e2..3f974e3b 100644
--- a/src/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.ts
+++ b/src/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelInput.ts
@@ -3,12 +3,12 @@
import type * as ElevenLabs from "../../api/index";
import * as core from "../../core";
import type * as serializers from "../index";
-import { ConversationHistoryTranscriptSystemToolResultCommonModelResult } from "./ConversationHistoryTranscriptSystemToolResultCommonModelResult";
+import { ConversationHistoryTranscriptSystemToolResultCommonModelInputResult } from "./ConversationHistoryTranscriptSystemToolResultCommonModelInputResult";
import { DynamicVariableUpdateCommonModel } from "./DynamicVariableUpdateCommonModel";
-export const ConversationHistoryTranscriptSystemToolResultCommonModel: core.serialization.ObjectSchema<
- serializers.ConversationHistoryTranscriptSystemToolResultCommonModel.Raw,
- ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModel
+export const ConversationHistoryTranscriptSystemToolResultCommonModelInput: core.serialization.ObjectSchema<
+ serializers.ConversationHistoryTranscriptSystemToolResultCommonModelInput.Raw,
+ ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelInput
> = core.serialization.object({
requestId: core.serialization.property("request_id", core.serialization.string()),
toolName: core.serialization.property("tool_name", core.serialization.string()),
@@ -23,10 +23,10 @@ export const ConversationHistoryTranscriptSystemToolResultCommonModel: core.seri
core.serialization.list(DynamicVariableUpdateCommonModel).optional(),
),
type: core.serialization.stringLiteral("system"),
- result: ConversationHistoryTranscriptSystemToolResultCommonModelResult.optional(),
+ result: ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.optional(),
});
-export declare namespace ConversationHistoryTranscriptSystemToolResultCommonModel {
+export declare namespace ConversationHistoryTranscriptSystemToolResultCommonModelInput {
export interface Raw {
request_id: string;
tool_name: string;
@@ -38,6 +38,6 @@ export declare namespace ConversationHistoryTranscriptSystemToolResultCommonMode
raw_error_message?: string | null;
dynamic_variable_updates?: DynamicVariableUpdateCommonModel.Raw[] | null;
type: "system";
- result?: ConversationHistoryTranscriptSystemToolResultCommonModelResult.Raw | null;
+ result?: ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.Raw | null;
}
}
diff --git a/src/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.ts b/src/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.ts
similarity index 89%
rename from src/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.ts
rename to src/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.ts
index 5a90cf57..252c739c 100644
--- a/src/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.ts
+++ b/src/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.ts
@@ -16,9 +16,9 @@ import { TransferToNumberResultSipSuccessModel } from "./TransferToNumberResultS
import { TransferToNumberResultTwilioSuccessModel } from "./TransferToNumberResultTwilioSuccessModel";
import { VoiceMailDetectionResultSuccessModel } from "./VoiceMailDetectionResultSuccessModel";
-export const ConversationHistoryTranscriptSystemToolResultCommonModelResult: core.serialization.Schema<
- serializers.ConversationHistoryTranscriptSystemToolResultCommonModelResult.Raw,
- ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult
+export const ConversationHistoryTranscriptSystemToolResultCommonModelInputResult: core.serialization.Schema<
+ serializers.ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.Raw,
+ ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelInputResult
> = core.serialization
.union(core.serialization.discriminant("resultType", "result_type"), {
end_call_success: EndCallToolResultModel,
@@ -34,25 +34,25 @@ export const ConversationHistoryTranscriptSystemToolResultCommonModelResult: cor
transfer_to_number_twilio_success: TransferToNumberResultTwilioSuccessModel,
voicemail_detection_success: VoiceMailDetectionResultSuccessModel,
})
- .transform({
+ .transform({
transform: (value) => value,
untransform: (value) => value,
});
-export declare namespace ConversationHistoryTranscriptSystemToolResultCommonModelResult {
+export declare namespace ConversationHistoryTranscriptSystemToolResultCommonModelInputResult {
export type Raw =
- | ConversationHistoryTranscriptSystemToolResultCommonModelResult.EndCallSuccess
- | ConversationHistoryTranscriptSystemToolResultCommonModelResult.LanguageDetectionSuccess
- | ConversationHistoryTranscriptSystemToolResultCommonModelResult.PlayDtmfError
- | ConversationHistoryTranscriptSystemToolResultCommonModelResult.PlayDtmfSuccess
- | ConversationHistoryTranscriptSystemToolResultCommonModelResult.SkipTurnSuccess
- | ConversationHistoryTranscriptSystemToolResultCommonModelResult.TestingToolResult
- | ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToAgentError
- | ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToAgentSuccess
- | ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberError
- | ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberSipSuccess
- | ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberTwilioSuccess
- | ConversationHistoryTranscriptSystemToolResultCommonModelResult.VoicemailDetectionSuccess;
+ | ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.EndCallSuccess
+ | ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.LanguageDetectionSuccess
+ | ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.PlayDtmfError
+ | ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.PlayDtmfSuccess
+ | ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.SkipTurnSuccess
+ | ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.TestingToolResult
+ | ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.TransferToAgentError
+ | ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.TransferToAgentSuccess
+ | ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.TransferToNumberError
+ | ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.TransferToNumberSipSuccess
+ | ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.TransferToNumberTwilioSuccess
+ | ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.VoicemailDetectionSuccess;
export interface EndCallSuccess extends EndCallToolResultModel.Raw {
result_type: "end_call_success";
diff --git a/src/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutput.ts b/src/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutput.ts
new file mode 100644
index 00000000..4a92a857
--- /dev/null
+++ b/src/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutput.ts
@@ -0,0 +1,43 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+import { ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult } from "./ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult";
+import { DynamicVariableUpdateCommonModel } from "./DynamicVariableUpdateCommonModel";
+
+export const ConversationHistoryTranscriptSystemToolResultCommonModelOutput: core.serialization.ObjectSchema<
+ serializers.ConversationHistoryTranscriptSystemToolResultCommonModelOutput.Raw,
+ ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelOutput
+> = core.serialization.object({
+ requestId: core.serialization.property("request_id", core.serialization.string()),
+ toolName: core.serialization.property("tool_name", core.serialization.string()),
+ resultValue: core.serialization.property("result_value", core.serialization.string()),
+ isError: core.serialization.property("is_error", core.serialization.boolean()),
+ toolHasBeenCalled: core.serialization.property("tool_has_been_called", core.serialization.boolean()),
+ toolLatencySecs: core.serialization.property("tool_latency_secs", core.serialization.number().optional()),
+ errorType: core.serialization.property("error_type", core.serialization.string().optional()),
+ rawErrorMessage: core.serialization.property("raw_error_message", core.serialization.string().optional()),
+ dynamicVariableUpdates: core.serialization.property(
+ "dynamic_variable_updates",
+ core.serialization.list(DynamicVariableUpdateCommonModel).optional(),
+ ),
+ type: core.serialization.stringLiteral("system"),
+ result: ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.optional(),
+});
+
+export declare namespace ConversationHistoryTranscriptSystemToolResultCommonModelOutput {
+ export interface Raw {
+ request_id: string;
+ tool_name: string;
+ result_value: string;
+ is_error: boolean;
+ tool_has_been_called: boolean;
+ tool_latency_secs?: number | null;
+ error_type?: string | null;
+ raw_error_message?: string | null;
+ dynamic_variable_updates?: DynamicVariableUpdateCommonModel.Raw[] | null;
+ type: "system";
+ result?: ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.Raw | null;
+ }
+}
diff --git a/src/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.ts b/src/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.ts
new file mode 100644
index 00000000..d312e537
--- /dev/null
+++ b/src/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.ts
@@ -0,0 +1,104 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+import { EndCallToolResultModel } from "./EndCallToolResultModel";
+import { LanguageDetectionToolResultModel } from "./LanguageDetectionToolResultModel";
+import { PlayDtmfResultErrorModel } from "./PlayDtmfResultErrorModel";
+import { PlayDtmfResultSuccessModel } from "./PlayDtmfResultSuccessModel";
+import { SkipTurnToolResponseModel } from "./SkipTurnToolResponseModel";
+import { TestToolResultModel } from "./TestToolResultModel";
+import { TransferToAgentToolResultErrorModel } from "./TransferToAgentToolResultErrorModel";
+import { TransferToAgentToolResultSuccessModel } from "./TransferToAgentToolResultSuccessModel";
+import { TransferToNumberResultErrorModel } from "./TransferToNumberResultErrorModel";
+import { TransferToNumberResultSipSuccessModel } from "./TransferToNumberResultSipSuccessModel";
+import { TransferToNumberResultTwilioSuccessModel } from "./TransferToNumberResultTwilioSuccessModel";
+import { VoiceMailDetectionResultSuccessModel } from "./VoiceMailDetectionResultSuccessModel";
+
+export const ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult: core.serialization.Schema<
+ serializers.ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.Raw,
+ ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult
+> = core.serialization
+ .union(core.serialization.discriminant("resultType", "result_type"), {
+ end_call_success: EndCallToolResultModel,
+ language_detection_success: LanguageDetectionToolResultModel,
+ play_dtmf_error: PlayDtmfResultErrorModel,
+ play_dtmf_success: PlayDtmfResultSuccessModel,
+ skip_turn_success: SkipTurnToolResponseModel,
+ testing_tool_result: TestToolResultModel,
+ transfer_to_agent_error: TransferToAgentToolResultErrorModel,
+ transfer_to_agent_success: TransferToAgentToolResultSuccessModel,
+ transfer_to_number_error: TransferToNumberResultErrorModel,
+ transfer_to_number_sip_success: TransferToNumberResultSipSuccessModel,
+ transfer_to_number_twilio_success: TransferToNumberResultTwilioSuccessModel,
+ voicemail_detection_success: VoiceMailDetectionResultSuccessModel,
+ })
+ .transform({
+ transform: (value) => value,
+ untransform: (value) => value,
+ });
+
+export declare namespace ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult {
+ export type Raw =
+ | ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.EndCallSuccess
+ | ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.LanguageDetectionSuccess
+ | ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.PlayDtmfError
+ | ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.PlayDtmfSuccess
+ | ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.SkipTurnSuccess
+ | ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.TestingToolResult
+ | ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.TransferToAgentError
+ | ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.TransferToAgentSuccess
+ | ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.TransferToNumberError
+ | ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.TransferToNumberSipSuccess
+ | ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.TransferToNumberTwilioSuccess
+ | ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.VoicemailDetectionSuccess;
+
+ export interface EndCallSuccess extends EndCallToolResultModel.Raw {
+ result_type: "end_call_success";
+ }
+
+ export interface LanguageDetectionSuccess extends LanguageDetectionToolResultModel.Raw {
+ result_type: "language_detection_success";
+ }
+
+ export interface PlayDtmfError extends PlayDtmfResultErrorModel.Raw {
+ result_type: "play_dtmf_error";
+ }
+
+ export interface PlayDtmfSuccess extends PlayDtmfResultSuccessModel.Raw {
+ result_type: "play_dtmf_success";
+ }
+
+ export interface SkipTurnSuccess extends SkipTurnToolResponseModel.Raw {
+ result_type: "skip_turn_success";
+ }
+
+ export interface TestingToolResult extends TestToolResultModel.Raw {
+ result_type: "testing_tool_result";
+ }
+
+ export interface TransferToAgentError extends TransferToAgentToolResultErrorModel.Raw {
+ result_type: "transfer_to_agent_error";
+ }
+
+ export interface TransferToAgentSuccess extends TransferToAgentToolResultSuccessModel.Raw {
+ result_type: "transfer_to_agent_success";
+ }
+
+ export interface TransferToNumberError extends TransferToNumberResultErrorModel.Raw {
+ result_type: "transfer_to_number_error";
+ }
+
+ export interface TransferToNumberSipSuccess extends TransferToNumberResultSipSuccessModel.Raw {
+ result_type: "transfer_to_number_sip_success";
+ }
+
+ export interface TransferToNumberTwilioSuccess extends TransferToNumberResultTwilioSuccessModel.Raw {
+ result_type: "transfer_to_number_twilio_success";
+ }
+
+ export interface VoicemailDetectionSuccess extends VoiceMailDetectionResultSuccessModel.Raw {
+ result_type: "voicemail_detection_success";
+ }
+}
diff --git a/src/serialization/types/ConversationInitiationSource.ts b/src/serialization/types/ConversationInitiationSource.ts
index a9c98fe0..21218277 100644
--- a/src/serialization/types/ConversationInitiationSource.ts
+++ b/src/serialization/types/ConversationInitiationSource.ts
@@ -23,6 +23,7 @@ export const ConversationInitiationSource: core.serialization.Schema<
"whatsapp",
"flutter_sdk",
"zendesk_integration",
+ "slack_integration",
]);
export declare namespace ConversationInitiationSource {
@@ -41,5 +42,6 @@ export declare namespace ConversationInitiationSource {
| "swift_sdk"
| "whatsapp"
| "flutter_sdk"
- | "zendesk_integration";
+ | "zendesk_integration"
+ | "slack_integration";
}
diff --git a/src/serialization/types/ConversationTurnMetrics.ts b/src/serialization/types/ConversationTurnMetrics.ts
index a145e8da..b977913b 100644
--- a/src/serialization/types/ConversationTurnMetrics.ts
+++ b/src/serialization/types/ConversationTurnMetrics.ts
@@ -11,11 +11,13 @@ export const ConversationTurnMetrics: core.serialization.ObjectSchema<
> = core.serialization.object({
metrics: core.serialization.record(core.serialization.string(), MetricRecord).optional(),
convaiAsrProvider: core.serialization.property("convai_asr_provider", core.serialization.string().optional()),
+ convaiTtsModel: core.serialization.property("convai_tts_model", core.serialization.string().optional()),
});
export declare namespace ConversationTurnMetrics {
export interface Raw {
metrics?: Record | null;
convai_asr_provider?: string | null;
+ convai_tts_model?: string | null;
}
}
diff --git a/src/serialization/types/DubbingReleaseChannel.ts b/src/serialization/types/DubbingReleaseChannel.ts
deleted file mode 100644
index 714b13da..00000000
--- a/src/serialization/types/DubbingReleaseChannel.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-// This file was auto-generated by Fern from our API Definition.
-
-import type * as ElevenLabs from "../../api/index";
-import * as core from "../../core";
-import type * as serializers from "../index";
-
-export const DubbingReleaseChannel: core.serialization.Schema<
- serializers.DubbingReleaseChannel.Raw,
- ElevenLabs.DubbingReleaseChannel
-> = core.serialization.enum_(["stable", "release", "experimental"]);
-
-export declare namespace DubbingReleaseChannel {
- export type Raw = "stable" | "release" | "experimental";
-}
diff --git a/src/serialization/types/DynamicVariableAssignment.ts b/src/serialization/types/DynamicVariableAssignment.ts
index a8a817c9..856b6bfc 100644
--- a/src/serialization/types/DynamicVariableAssignment.ts
+++ b/src/serialization/types/DynamicVariableAssignment.ts
@@ -11,6 +11,7 @@ export const DynamicVariableAssignment: core.serialization.ObjectSchema<
source: core.serialization.stringLiteral("response").optional(),
dynamicVariable: core.serialization.property("dynamic_variable", core.serialization.string()),
valuePath: core.serialization.property("value_path", core.serialization.string()),
+ sanitize: core.serialization.boolean().optional(),
});
export declare namespace DynamicVariableAssignment {
@@ -18,5 +19,6 @@ export declare namespace DynamicVariableAssignment {
source?: "response" | null;
dynamic_variable: string;
value_path: string;
+ sanitize?: boolean | null;
}
}
diff --git a/src/serialization/types/FinalOutput.ts b/src/serialization/types/FinalOutput.ts
new file mode 100644
index 00000000..de3c6903
--- /dev/null
+++ b/src/serialization/types/FinalOutput.ts
@@ -0,0 +1,16 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const FinalOutput: core.serialization.ObjectSchema =
+ core.serialization.object({
+ isFinal: core.serialization.booleanLiteral(true).optional(),
+ });
+
+export declare namespace FinalOutput {
+ export interface Raw {
+ isFinal?: true | null;
+ }
+}
diff --git a/src/serialization/types/FinalOutputMulti.ts b/src/serialization/types/FinalOutputMulti.ts
new file mode 100644
index 00000000..85c8ddf9
--- /dev/null
+++ b/src/serialization/types/FinalOutputMulti.ts
@@ -0,0 +1,20 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const FinalOutputMulti: core.serialization.ObjectSchema<
+ serializers.FinalOutputMulti.Raw,
+ ElevenLabs.FinalOutputMulti
+> = core.serialization.object({
+ isFinal: core.serialization.booleanLiteral(true),
+ contextId: core.serialization.string().optional(),
+});
+
+export declare namespace FinalOutputMulti {
+ export interface Raw {
+ isFinal: true;
+ contextId?: string | null;
+ }
+}
diff --git a/src/serialization/types/FlushContext.ts b/src/serialization/types/FlushContext.ts
new file mode 100644
index 00000000..184ab735
--- /dev/null
+++ b/src/serialization/types/FlushContext.ts
@@ -0,0 +1,20 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const FlushContext: core.serialization.ObjectSchema =
+ core.serialization.object({
+ contextId: core.serialization.property("context_id", core.serialization.string()),
+ text: core.serialization.string().optional(),
+ flush: core.serialization.boolean(),
+ });
+
+export declare namespace FlushContext {
+ export interface Raw {
+ context_id: string;
+ text?: string | null;
+ flush: boolean;
+ }
+}
diff --git a/src/serialization/types/GenerationConfig.ts b/src/serialization/types/GenerationConfig.ts
new file mode 100644
index 00000000..6d188e27
--- /dev/null
+++ b/src/serialization/types/GenerationConfig.ts
@@ -0,0 +1,21 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const GenerationConfig: core.serialization.ObjectSchema<
+ serializers.GenerationConfig.Raw,
+ ElevenLabs.GenerationConfig
+> = core.serialization.object({
+ chunkLengthSchedule: core.serialization.property(
+ "chunk_length_schedule",
+ core.serialization.list(core.serialization.number()).optional(),
+ ),
+});
+
+export declare namespace GenerationConfig {
+ export interface Raw {
+ chunk_length_schedule?: number[] | null;
+ }
+}
diff --git a/src/serialization/types/InitialiseContext.ts b/src/serialization/types/InitialiseContext.ts
new file mode 100644
index 00000000..7a402bbb
--- /dev/null
+++ b/src/serialization/types/InitialiseContext.ts
@@ -0,0 +1,36 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+import { GenerationConfig } from "./GenerationConfig";
+import { PronunciationDictionaryLocator } from "./PronunciationDictionaryLocator";
+import { RealtimeVoiceSettings } from "./RealtimeVoiceSettings";
+
+export const InitialiseContext: core.serialization.ObjectSchema<
+ serializers.InitialiseContext.Raw,
+ ElevenLabs.InitialiseContext
+> = core.serialization.object({
+ text: core.serialization.string(),
+ voiceSettings: core.serialization.property("voice_settings", RealtimeVoiceSettings.optional()),
+ generationConfig: core.serialization.property("generation_config", GenerationConfig.optional()),
+ pronunciationDictionaryLocators: core.serialization.property(
+ "pronunciation_dictionary_locators",
+ core.serialization.list(PronunciationDictionaryLocator).optional(),
+ ),
+ xiApiKey: core.serialization.property("xi_api_key", core.serialization.string().optional()),
+ authorization: core.serialization.string().optional(),
+ contextId: core.serialization.property("context_id", core.serialization.string().optional()),
+});
+
+export declare namespace InitialiseContext {
+ export interface Raw {
+ text: string;
+ voice_settings?: RealtimeVoiceSettings.Raw | null;
+ generation_config?: GenerationConfig.Raw | null;
+ pronunciation_dictionary_locators?: PronunciationDictionaryLocator.Raw[] | null;
+ xi_api_key?: string | null;
+ authorization?: string | null;
+ context_id?: string | null;
+ }
+}
diff --git a/src/serialization/types/InitializeConnection.ts b/src/serialization/types/InitializeConnection.ts
new file mode 100644
index 00000000..0e9800f7
--- /dev/null
+++ b/src/serialization/types/InitializeConnection.ts
@@ -0,0 +1,34 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+import { GenerationConfig } from "./GenerationConfig";
+import { PronunciationDictionaryLocator } from "./PronunciationDictionaryLocator";
+import { RealtimeVoiceSettings } from "./RealtimeVoiceSettings";
+
+export const InitializeConnection: core.serialization.ObjectSchema<
+ serializers.InitializeConnection.Raw,
+ ElevenLabs.InitializeConnection
+> = core.serialization.object({
+ text: core.serialization.stringLiteral(" "),
+ voiceSettings: core.serialization.property("voice_settings", RealtimeVoiceSettings.optional()),
+ generationConfig: core.serialization.property("generation_config", GenerationConfig.optional()),
+ pronunciationDictionaryLocators: core.serialization.property(
+ "pronunciation_dictionary_locators",
+ core.serialization.list(PronunciationDictionaryLocator).optional(),
+ ),
+ xiApiKey: core.serialization.property("xi-api-key", core.serialization.string().optional()),
+ authorization: core.serialization.string().optional(),
+});
+
+export declare namespace InitializeConnection {
+ export interface Raw {
+ text: " ";
+ voice_settings?: RealtimeVoiceSettings.Raw | null;
+ generation_config?: GenerationConfig.Raw | null;
+ pronunciation_dictionary_locators?: PronunciationDictionaryLocator.Raw[] | null;
+ "xi-api-key"?: string | null;
+ authorization?: string | null;
+ }
+}
diff --git a/src/serialization/types/InitializeConnectionMulti.ts b/src/serialization/types/InitializeConnectionMulti.ts
new file mode 100644
index 00000000..60989154
--- /dev/null
+++ b/src/serialization/types/InitializeConnectionMulti.ts
@@ -0,0 +1,36 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+import { GenerationConfig } from "./GenerationConfig";
+import { PronunciationDictionaryLocator } from "./PronunciationDictionaryLocator";
+import { RealtimeVoiceSettings } from "./RealtimeVoiceSettings";
+
+export const InitializeConnectionMulti: core.serialization.ObjectSchema<
+ serializers.InitializeConnectionMulti.Raw,
+ ElevenLabs.InitializeConnectionMulti
+> = core.serialization.object({
+ text: core.serialization.stringLiteral(" "),
+ voiceSettings: core.serialization.property("voice_settings", RealtimeVoiceSettings.optional()),
+ generationConfig: core.serialization.property("generation_config", GenerationConfig.optional()),
+ pronunciationDictionaryLocators: core.serialization.property(
+ "pronunciation_dictionary_locators",
+ core.serialization.list(PronunciationDictionaryLocator).optional(),
+ ),
+ xiApiKey: core.serialization.property("xi_api_key", core.serialization.string().optional()),
+ authorization: core.serialization.string().optional(),
+ contextId: core.serialization.property("context_id", core.serialization.string().optional()),
+});
+
+export declare namespace InitializeConnectionMulti {
+ export interface Raw {
+ text: " ";
+ voice_settings?: RealtimeVoiceSettings.Raw | null;
+ generation_config?: GenerationConfig.Raw | null;
+ pronunciation_dictionary_locators?: PronunciationDictionaryLocator.Raw[] | null;
+ xi_api_key?: string | null;
+ authorization?: string | null;
+ context_id?: string | null;
+ }
+}
diff --git a/src/serialization/types/InputAudioChunkPayload.ts b/src/serialization/types/InputAudioChunkPayload.ts
new file mode 100644
index 00000000..7617ad7a
--- /dev/null
+++ b/src/serialization/types/InputAudioChunkPayload.ts
@@ -0,0 +1,26 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const InputAudioChunkPayload: core.serialization.ObjectSchema<
+ serializers.InputAudioChunkPayload.Raw,
+ ElevenLabs.InputAudioChunkPayload
+> = core.serialization.object({
+ messageType: core.serialization.property("message_type", core.serialization.stringLiteral("input_audio_chunk")),
+ audioBase64: core.serialization.property("audio_base_64", core.serialization.string()),
+ commit: core.serialization.boolean(),
+ sampleRate: core.serialization.property("sample_rate", core.serialization.number()),
+ previousText: core.serialization.property("previous_text", core.serialization.string().optional()),
+});
+
+export declare namespace InputAudioChunkPayload {
+ export interface Raw {
+ message_type: "input_audio_chunk";
+ audio_base_64: string;
+ commit: boolean;
+ sample_rate: number;
+ previous_text?: string | null;
+ }
+}
diff --git a/src/serialization/types/KeepContextAlive.ts b/src/serialization/types/KeepContextAlive.ts
new file mode 100644
index 00000000..f7832439
--- /dev/null
+++ b/src/serialization/types/KeepContextAlive.ts
@@ -0,0 +1,20 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const KeepContextAlive: core.serialization.ObjectSchema<
+ serializers.KeepContextAlive.Raw,
+ ElevenLabs.KeepContextAlive
+> = core.serialization.object({
+ text: core.serialization.stringLiteral(""),
+ contextId: core.serialization.property("context_id", core.serialization.string()),
+});
+
+export declare namespace KeepContextAlive {
+ export interface Raw {
+ text: "";
+ context_id: string;
+ }
+}
diff --git a/src/serialization/types/NormalizedAlignment.ts b/src/serialization/types/NormalizedAlignment.ts
new file mode 100644
index 00000000..8cd9fb64
--- /dev/null
+++ b/src/serialization/types/NormalizedAlignment.ts
@@ -0,0 +1,22 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const NormalizedAlignment: core.serialization.ObjectSchema<
+ serializers.NormalizedAlignment.Raw,
+ ElevenLabs.NormalizedAlignment
+> = core.serialization.object({
+ charStartTimesMs: core.serialization.list(core.serialization.number()).optional(),
+ charDurationsMs: core.serialization.list(core.serialization.number()).optional(),
+ chars: core.serialization.list(core.serialization.string()).optional(),
+});
+
+export declare namespace NormalizedAlignment {
+ export interface Raw {
+ charStartTimesMs?: number[] | null;
+ charDurationsMs?: number[] | null;
+ chars?: string[] | null;
+ }
+}
diff --git a/src/serialization/types/PartialTranscriptPayload.ts b/src/serialization/types/PartialTranscriptPayload.ts
new file mode 100644
index 00000000..2eac03f3
--- /dev/null
+++ b/src/serialization/types/PartialTranscriptPayload.ts
@@ -0,0 +1,20 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const PartialTranscriptPayload: core.serialization.ObjectSchema<
+ serializers.PartialTranscriptPayload.Raw,
+ ElevenLabs.PartialTranscriptPayload
+> = core.serialization.object({
+ messageType: core.serialization.property("message_type", core.serialization.stringLiteral("partial_transcript")),
+ text: core.serialization.string(),
+});
+
+export declare namespace PartialTranscriptPayload {
+ export interface Raw {
+ message_type: "partial_transcript";
+ text: string;
+ }
+}
diff --git a/src/serialization/types/ProjectExternalAudioResponseModel.ts b/src/serialization/types/ProjectExternalAudioResponseModel.ts
index 2bda5897..eb01c2ec 100644
--- a/src/serialization/types/ProjectExternalAudioResponseModel.ts
+++ b/src/serialization/types/ProjectExternalAudioResponseModel.ts
@@ -34,6 +34,7 @@ export const ProjectExternalAudioResponseModel: core.serialization.ObjectSchema<
),
importSpeechProgress: core.serialization.property("import_speech_progress", core.serialization.number().optional()),
speechImported: core.serialization.property("speech_imported", core.serialization.boolean().optional()),
+ dubAudioProgress: core.serialization.property("dub_audio_progress", core.serialization.number().optional()),
currentSnapshotId: core.serialization.property("current_snapshot_id", core.serialization.string().optional()),
});
@@ -59,6 +60,7 @@ export declare namespace ProjectExternalAudioResponseModel {
pending_block_ids: string[];
import_speech_progress?: number | null;
speech_imported?: boolean | null;
+ dub_audio_progress?: number | null;
current_snapshot_id?: string | null;
}
}
diff --git a/src/serialization/types/ProjectMutedTracksResponseModel.ts b/src/serialization/types/ProjectMutedTracksResponseModel.ts
new file mode 100644
index 00000000..ee2e8f35
--- /dev/null
+++ b/src/serialization/types/ProjectMutedTracksResponseModel.ts
@@ -0,0 +1,18 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const ProjectMutedTracksResponseModel: core.serialization.ObjectSchema<
+ serializers.ProjectMutedTracksResponseModel.Raw,
+ ElevenLabs.ProjectMutedTracksResponseModel
+> = core.serialization.object({
+ chapterIds: core.serialization.property("chapter_ids", core.serialization.list(core.serialization.string())),
+});
+
+export declare namespace ProjectMutedTracksResponseModel {
+ export interface Raw {
+ chapter_ids: string[];
+ }
+}
diff --git a/src/serialization/types/ProjectVideoResponseModel.ts b/src/serialization/types/ProjectVideoResponseModel.ts
index dc96abfb..c5c2696f 100644
--- a/src/serialization/types/ProjectVideoResponseModel.ts
+++ b/src/serialization/types/ProjectVideoResponseModel.ts
@@ -46,6 +46,7 @@ export const ProjectVideoResponseModel: core.serialization.ObjectSchema<
),
importSpeechProgress: core.serialization.property("import_speech_progress", core.serialization.number().optional()),
speechImported: core.serialization.property("speech_imported", core.serialization.boolean().optional()),
+ dubAudioProgress: core.serialization.property("dub_audio_progress", core.serialization.number().optional()),
audioTrackReady: core.serialization.property("audio_track_ready", core.serialization.boolean().optional()),
currentSnapshotId: core.serialization.property("current_snapshot_id", core.serialization.string().optional()),
canvasPlacement: core.serialization.property("canvas_placement", CanvasPlacement.optional()),
@@ -81,6 +82,7 @@ export declare namespace ProjectVideoResponseModel {
pending_block_ids: string[];
import_speech_progress?: number | null;
speech_imported?: boolean | null;
+ dub_audio_progress?: number | null;
audio_track_ready?: boolean | null;
current_snapshot_id?: string | null;
canvas_placement?: CanvasPlacement.Raw | null;
diff --git a/src/serialization/types/PronunciationDictionaryLocator.ts b/src/serialization/types/PronunciationDictionaryLocator.ts
new file mode 100644
index 00000000..dfb9dddd
--- /dev/null
+++ b/src/serialization/types/PronunciationDictionaryLocator.ts
@@ -0,0 +1,20 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const PronunciationDictionaryLocator: core.serialization.ObjectSchema<
+ serializers.PronunciationDictionaryLocator.Raw,
+ ElevenLabs.PronunciationDictionaryLocator
+> = core.serialization.object({
+ pronunciationDictionaryId: core.serialization.property("pronunciation_dictionary_id", core.serialization.string()),
+ versionId: core.serialization.property("version_id", core.serialization.string()),
+});
+
+export declare namespace PronunciationDictionaryLocator {
+ export interface Raw {
+ pronunciation_dictionary_id: string;
+ version_id: string;
+ }
+}
diff --git a/src/serialization/types/RealtimeVoiceSettings.ts b/src/serialization/types/RealtimeVoiceSettings.ts
new file mode 100644
index 00000000..39fcb8d5
--- /dev/null
+++ b/src/serialization/types/RealtimeVoiceSettings.ts
@@ -0,0 +1,26 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const RealtimeVoiceSettings: core.serialization.ObjectSchema<
+ serializers.RealtimeVoiceSettings.Raw,
+ ElevenLabs.RealtimeVoiceSettings
+> = core.serialization.object({
+ stability: core.serialization.number().optional(),
+ similarityBoost: core.serialization.property("similarity_boost", core.serialization.number().optional()),
+ style: core.serialization.number().optional(),
+ useSpeakerBoost: core.serialization.property("use_speaker_boost", core.serialization.boolean().optional()),
+ speed: core.serialization.number().optional(),
+});
+
+export declare namespace RealtimeVoiceSettings {
+ export interface Raw {
+ stability?: number | null;
+ similarity_boost?: number | null;
+ style?: number | null;
+ use_speaker_boost?: boolean | null;
+ speed?: number | null;
+ }
+}
diff --git a/src/serialization/types/ScribeAuthErrorPayload.ts b/src/serialization/types/ScribeAuthErrorPayload.ts
new file mode 100644
index 00000000..b5a4facc
--- /dev/null
+++ b/src/serialization/types/ScribeAuthErrorPayload.ts
@@ -0,0 +1,20 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const ScribeAuthErrorPayload: core.serialization.ObjectSchema<
+ serializers.ScribeAuthErrorPayload.Raw,
+ ElevenLabs.ScribeAuthErrorPayload
+> = core.serialization.object({
+ messageType: core.serialization.property("message_type", core.serialization.stringLiteral("auth_error")),
+ error: core.serialization.string(),
+});
+
+export declare namespace ScribeAuthErrorPayload {
+ export interface Raw {
+ message_type: "auth_error";
+ error: string;
+ }
+}
diff --git a/src/serialization/types/ScribeChunkSizeExceededErrorPayload.ts b/src/serialization/types/ScribeChunkSizeExceededErrorPayload.ts
new file mode 100644
index 00000000..8a2b19e1
--- /dev/null
+++ b/src/serialization/types/ScribeChunkSizeExceededErrorPayload.ts
@@ -0,0 +1,20 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const ScribeChunkSizeExceededErrorPayload: core.serialization.ObjectSchema<
+ serializers.ScribeChunkSizeExceededErrorPayload.Raw,
+ ElevenLabs.ScribeChunkSizeExceededErrorPayload
+> = core.serialization.object({
+ messageType: core.serialization.property("message_type", core.serialization.stringLiteral("chunk_size_exceeded")),
+ error: core.serialization.string(),
+});
+
+export declare namespace ScribeChunkSizeExceededErrorPayload {
+ export interface Raw {
+ message_type: "chunk_size_exceeded";
+ error: string;
+ }
+}
diff --git a/src/serialization/types/ScribeErrorPayload.ts b/src/serialization/types/ScribeErrorPayload.ts
new file mode 100644
index 00000000..1abc78ce
--- /dev/null
+++ b/src/serialization/types/ScribeErrorPayload.ts
@@ -0,0 +1,20 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const ScribeErrorPayload: core.serialization.ObjectSchema<
+ serializers.ScribeErrorPayload.Raw,
+ ElevenLabs.ScribeErrorPayload
+> = core.serialization.object({
+ messageType: core.serialization.property("message_type", core.serialization.stringLiteral("error")),
+ error: core.serialization.string(),
+});
+
+export declare namespace ScribeErrorPayload {
+ export interface Raw {
+ message_type: "error";
+ error: string;
+ }
+}
diff --git a/src/serialization/types/ScribeInputErrorPayload.ts b/src/serialization/types/ScribeInputErrorPayload.ts
new file mode 100644
index 00000000..1c7d45f8
--- /dev/null
+++ b/src/serialization/types/ScribeInputErrorPayload.ts
@@ -0,0 +1,20 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const ScribeInputErrorPayload: core.serialization.ObjectSchema<
+ serializers.ScribeInputErrorPayload.Raw,
+ ElevenLabs.ScribeInputErrorPayload
+> = core.serialization.object({
+ messageType: core.serialization.property("message_type", core.serialization.stringLiteral("input_error")),
+ error: core.serialization.string(),
+});
+
+export declare namespace ScribeInputErrorPayload {
+ export interface Raw {
+ message_type: "input_error";
+ error: string;
+ }
+}
diff --git a/src/serialization/types/ScribeInsufficientAudioActivityErrorPayload.ts b/src/serialization/types/ScribeInsufficientAudioActivityErrorPayload.ts
new file mode 100644
index 00000000..d949df61
--- /dev/null
+++ b/src/serialization/types/ScribeInsufficientAudioActivityErrorPayload.ts
@@ -0,0 +1,23 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const ScribeInsufficientAudioActivityErrorPayload: core.serialization.ObjectSchema<
+ serializers.ScribeInsufficientAudioActivityErrorPayload.Raw,
+ ElevenLabs.ScribeInsufficientAudioActivityErrorPayload
+> = core.serialization.object({
+ messageType: core.serialization.property(
+ "message_type",
+ core.serialization.stringLiteral("insufficient_audio_activity"),
+ ),
+ error: core.serialization.string(),
+});
+
+export declare namespace ScribeInsufficientAudioActivityErrorPayload {
+ export interface Raw {
+ message_type: "insufficient_audio_activity";
+ error: string;
+ }
+}
diff --git a/src/serialization/types/ScribeQueueOverflowErrorPayload.ts b/src/serialization/types/ScribeQueueOverflowErrorPayload.ts
new file mode 100644
index 00000000..dd182bb7
--- /dev/null
+++ b/src/serialization/types/ScribeQueueOverflowErrorPayload.ts
@@ -0,0 +1,20 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const ScribeQueueOverflowErrorPayload: core.serialization.ObjectSchema<
+ serializers.ScribeQueueOverflowErrorPayload.Raw,
+ ElevenLabs.ScribeQueueOverflowErrorPayload
+> = core.serialization.object({
+ messageType: core.serialization.property("message_type", core.serialization.stringLiteral("queue_overflow")),
+ error: core.serialization.string(),
+});
+
+export declare namespace ScribeQueueOverflowErrorPayload {
+ export interface Raw {
+ message_type: "queue_overflow";
+ error: string;
+ }
+}
diff --git a/src/serialization/types/ScribeQuotaExceededErrorPayload.ts b/src/serialization/types/ScribeQuotaExceededErrorPayload.ts
new file mode 100644
index 00000000..3f037100
--- /dev/null
+++ b/src/serialization/types/ScribeQuotaExceededErrorPayload.ts
@@ -0,0 +1,20 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const ScribeQuotaExceededErrorPayload: core.serialization.ObjectSchema<
+ serializers.ScribeQuotaExceededErrorPayload.Raw,
+ ElevenLabs.ScribeQuotaExceededErrorPayload
+> = core.serialization.object({
+ messageType: core.serialization.property("message_type", core.serialization.stringLiteral("quota_exceeded")),
+ error: core.serialization.string(),
+});
+
+export declare namespace ScribeQuotaExceededErrorPayload {
+ export interface Raw {
+ message_type: "quota_exceeded";
+ error: string;
+ }
+}
diff --git a/src/serialization/types/ScribeRateLimitedErrorPayload.ts b/src/serialization/types/ScribeRateLimitedErrorPayload.ts
new file mode 100644
index 00000000..07c7e644
--- /dev/null
+++ b/src/serialization/types/ScribeRateLimitedErrorPayload.ts
@@ -0,0 +1,20 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const ScribeRateLimitedErrorPayload: core.serialization.ObjectSchema<
+ serializers.ScribeRateLimitedErrorPayload.Raw,
+ ElevenLabs.ScribeRateLimitedErrorPayload
+> = core.serialization.object({
+ messageType: core.serialization.property("message_type", core.serialization.stringLiteral("rate_limited")),
+ error: core.serialization.string(),
+});
+
+export declare namespace ScribeRateLimitedErrorPayload {
+ export interface Raw {
+ message_type: "rate_limited";
+ error: string;
+ }
+}
diff --git a/src/serialization/types/ScribeResourceExhaustedErrorPayload.ts b/src/serialization/types/ScribeResourceExhaustedErrorPayload.ts
new file mode 100644
index 00000000..67dd66f8
--- /dev/null
+++ b/src/serialization/types/ScribeResourceExhaustedErrorPayload.ts
@@ -0,0 +1,20 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const ScribeResourceExhaustedErrorPayload: core.serialization.ObjectSchema<
+ serializers.ScribeResourceExhaustedErrorPayload.Raw,
+ ElevenLabs.ScribeResourceExhaustedErrorPayload
+> = core.serialization.object({
+ messageType: core.serialization.property("message_type", core.serialization.stringLiteral("resource_exhausted")),
+ error: core.serialization.string(),
+});
+
+export declare namespace ScribeResourceExhaustedErrorPayload {
+ export interface Raw {
+ message_type: "resource_exhausted";
+ error: string;
+ }
+}
diff --git a/src/serialization/types/ScribeSessionTimeLimitExceededErrorPayload.ts b/src/serialization/types/ScribeSessionTimeLimitExceededErrorPayload.ts
new file mode 100644
index 00000000..771a8aaf
--- /dev/null
+++ b/src/serialization/types/ScribeSessionTimeLimitExceededErrorPayload.ts
@@ -0,0 +1,23 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const ScribeSessionTimeLimitExceededErrorPayload: core.serialization.ObjectSchema<
+ serializers.ScribeSessionTimeLimitExceededErrorPayload.Raw,
+ ElevenLabs.ScribeSessionTimeLimitExceededErrorPayload
+> = core.serialization.object({
+ messageType: core.serialization.property(
+ "message_type",
+ core.serialization.stringLiteral("session_time_limit_exceeded"),
+ ),
+ error: core.serialization.string(),
+});
+
+export declare namespace ScribeSessionTimeLimitExceededErrorPayload {
+ export interface Raw {
+ message_type: "session_time_limit_exceeded";
+ error: string;
+ }
+}
diff --git a/src/serialization/types/ScribeThrottledErrorPayload.ts b/src/serialization/types/ScribeThrottledErrorPayload.ts
new file mode 100644
index 00000000..f3976935
--- /dev/null
+++ b/src/serialization/types/ScribeThrottledErrorPayload.ts
@@ -0,0 +1,20 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const ScribeThrottledErrorPayload: core.serialization.ObjectSchema<
+ serializers.ScribeThrottledErrorPayload.Raw,
+ ElevenLabs.ScribeThrottledErrorPayload
+> = core.serialization.object({
+ messageType: core.serialization.property("message_type", core.serialization.stringLiteral("commit_throttled")),
+ error: core.serialization.string(),
+});
+
+export declare namespace ScribeThrottledErrorPayload {
+ export interface Raw {
+ message_type: "commit_throttled";
+ error: string;
+ }
+}
diff --git a/src/serialization/types/ScribeTranscriberErrorPayload.ts b/src/serialization/types/ScribeTranscriberErrorPayload.ts
new file mode 100644
index 00000000..731158ac
--- /dev/null
+++ b/src/serialization/types/ScribeTranscriberErrorPayload.ts
@@ -0,0 +1,20 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const ScribeTranscriberErrorPayload: core.serialization.ObjectSchema<
+ serializers.ScribeTranscriberErrorPayload.Raw,
+ ElevenLabs.ScribeTranscriberErrorPayload
+> = core.serialization.object({
+ messageType: core.serialization.property("message_type", core.serialization.stringLiteral("transcriber_error")),
+ error: core.serialization.string(),
+});
+
+export declare namespace ScribeTranscriberErrorPayload {
+ export interface Raw {
+ message_type: "transcriber_error";
+ error: string;
+ }
+}
diff --git a/src/serialization/types/ScribeUnacceptedTermsErrorPayload.ts b/src/serialization/types/ScribeUnacceptedTermsErrorPayload.ts
new file mode 100644
index 00000000..29e76863
--- /dev/null
+++ b/src/serialization/types/ScribeUnacceptedTermsErrorPayload.ts
@@ -0,0 +1,20 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const ScribeUnacceptedTermsErrorPayload: core.serialization.ObjectSchema<
+ serializers.ScribeUnacceptedTermsErrorPayload.Raw,
+ ElevenLabs.ScribeUnacceptedTermsErrorPayload
+> = core.serialization.object({
+ messageType: core.serialization.property("message_type", core.serialization.stringLiteral("unaccepted_terms")),
+ error: core.serialization.string(),
+});
+
+export declare namespace ScribeUnacceptedTermsErrorPayload {
+ export interface Raw {
+ message_type: "unaccepted_terms";
+ error: string;
+ }
+}
diff --git a/src/serialization/types/SeatType.ts b/src/serialization/types/SeatType.ts
index 87275948..c061c9eb 100644
--- a/src/serialization/types/SeatType.ts
+++ b/src/serialization/types/SeatType.ts
@@ -5,8 +5,8 @@ import * as core from "../../core";
import type * as serializers from "../index";
export const SeatType: core.serialization.Schema =
- core.serialization.enum_(["workspace_admin", "workspace_member"]);
+ core.serialization.enum_(["workspace_admin", "workspace_member", "workspace_lite_member"]);
export declare namespace SeatType {
- export type Raw = "workspace_admin" | "workspace_member";
+ export type Raw = "workspace_admin" | "workspace_member" | "workspace_lite_member";
}
diff --git a/src/serialization/types/SendText.ts b/src/serialization/types/SendText.ts
new file mode 100644
index 00000000..fb9e8f09
--- /dev/null
+++ b/src/serialization/types/SendText.ts
@@ -0,0 +1,29 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+import { GenerationConfig } from "./GenerationConfig";
+import { RealtimeVoiceSettings } from "./RealtimeVoiceSettings";
+
+export const SendText: core.serialization.ObjectSchema =
+ core.serialization.object({
+ text: core.serialization.string(),
+ tryTriggerGeneration: core.serialization.property(
+ "try_trigger_generation",
+ core.serialization.boolean().optional(),
+ ),
+ voiceSettings: core.serialization.property("voice_settings", RealtimeVoiceSettings.optional()),
+ generatorConfig: core.serialization.property("generator_config", GenerationConfig.optional()),
+ flush: core.serialization.boolean().optional(),
+ });
+
+export declare namespace SendText {
+ export interface Raw {
+ text: string;
+ try_trigger_generation?: boolean | null;
+ voice_settings?: RealtimeVoiceSettings.Raw | null;
+ generator_config?: GenerationConfig.Raw | null;
+ flush?: boolean | null;
+ }
+}
diff --git a/src/serialization/types/SendTextMulti.ts b/src/serialization/types/SendTextMulti.ts
new file mode 100644
index 00000000..00354f70
--- /dev/null
+++ b/src/serialization/types/SendTextMulti.ts
@@ -0,0 +1,20 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const SendTextMulti: core.serialization.ObjectSchema =
+ core.serialization.object({
+ text: core.serialization.string(),
+ contextId: core.serialization.property("context_id", core.serialization.string().optional()),
+ flush: core.serialization.boolean().optional(),
+ });
+
+export declare namespace SendTextMulti {
+ export interface Raw {
+ text: string;
+ context_id?: string | null;
+ flush?: boolean | null;
+ }
+}
diff --git a/src/serialization/types/SessionStartedPayload.ts b/src/serialization/types/SessionStartedPayload.ts
new file mode 100644
index 00000000..7173e540
--- /dev/null
+++ b/src/serialization/types/SessionStartedPayload.ts
@@ -0,0 +1,23 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+import { SessionStartedPayloadConfig } from "./SessionStartedPayloadConfig";
+
+export const SessionStartedPayload: core.serialization.ObjectSchema<
+ serializers.SessionStartedPayload.Raw,
+ ElevenLabs.SessionStartedPayload
+> = core.serialization.object({
+ messageType: core.serialization.property("message_type", core.serialization.stringLiteral("session_started")),
+ sessionId: core.serialization.property("session_id", core.serialization.string()),
+ config: SessionStartedPayloadConfig,
+});
+
+export declare namespace SessionStartedPayload {
+ export interface Raw {
+ message_type: "session_started";
+ session_id: string;
+ config: SessionStartedPayloadConfig.Raw;
+ }
+}
diff --git a/src/serialization/types/SessionStartedPayloadConfig.ts b/src/serialization/types/SessionStartedPayloadConfig.ts
new file mode 100644
index 00000000..04997fde
--- /dev/null
+++ b/src/serialization/types/SessionStartedPayloadConfig.ts
@@ -0,0 +1,54 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+import { AudioFormatEnum } from "./AudioFormatEnum";
+import { SessionStartedPayloadConfigCommitStrategy } from "./SessionStartedPayloadConfigCommitStrategy";
+
+export const SessionStartedPayloadConfig: core.serialization.ObjectSchema<
+ serializers.SessionStartedPayloadConfig.Raw,
+ ElevenLabs.SessionStartedPayloadConfig
+> = core.serialization.object({
+ sampleRate: core.serialization.property("sample_rate", core.serialization.number().optional()),
+ audioFormat: core.serialization.property("audio_format", AudioFormatEnum.optional()),
+ languageCode: core.serialization.property("language_code", core.serialization.string().optional()),
+ commitStrategy: core.serialization.property(
+ "commit_strategy",
+ SessionStartedPayloadConfigCommitStrategy.optional(),
+ ),
+ vadSilenceThresholdSecs: core.serialization.property(
+ "vad_silence_threshold_secs",
+ core.serialization.number().optional(),
+ ),
+ vadThreshold: core.serialization.property("vad_threshold", core.serialization.number().optional()),
+ minSpeechDurationMs: core.serialization.property("min_speech_duration_ms", core.serialization.number().optional()),
+ minSilenceDurationMs: core.serialization.property(
+ "min_silence_duration_ms",
+ core.serialization.number().optional(),
+ ),
+ modelId: core.serialization.property("model_id", core.serialization.string().optional()),
+ enableLogging: core.serialization.property("enable_logging", core.serialization.boolean().optional()),
+ includeTimestamps: core.serialization.property("include_timestamps", core.serialization.boolean().optional()),
+ includeLanguageDetection: core.serialization.property(
+ "include_language_detection",
+ core.serialization.boolean().optional(),
+ ),
+});
+
+export declare namespace SessionStartedPayloadConfig {
+ export interface Raw {
+ sample_rate?: number | null;
+ audio_format?: AudioFormatEnum.Raw | null;
+ language_code?: string | null;
+ commit_strategy?: SessionStartedPayloadConfigCommitStrategy.Raw | null;
+ vad_silence_threshold_secs?: number | null;
+ vad_threshold?: number | null;
+ min_speech_duration_ms?: number | null;
+ min_silence_duration_ms?: number | null;
+ model_id?: string | null;
+ enable_logging?: boolean | null;
+ include_timestamps?: boolean | null;
+ include_language_detection?: boolean | null;
+ }
+}
diff --git a/src/serialization/types/SessionStartedPayloadConfigCommitStrategy.ts b/src/serialization/types/SessionStartedPayloadConfigCommitStrategy.ts
new file mode 100644
index 00000000..d79b07bd
--- /dev/null
+++ b/src/serialization/types/SessionStartedPayloadConfigCommitStrategy.ts
@@ -0,0 +1,14 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const SessionStartedPayloadConfigCommitStrategy: core.serialization.Schema<
+ serializers.SessionStartedPayloadConfigCommitStrategy.Raw,
+ ElevenLabs.SessionStartedPayloadConfigCommitStrategy
+> = core.serialization.enum_(["manual", "vad"]);
+
+export declare namespace SessionStartedPayloadConfigCommitStrategy {
+ export type Raw = "manual" | "vad";
+}
diff --git a/src/serialization/types/SystemToolConfigInput.ts b/src/serialization/types/SystemToolConfigInput.ts
index 3b97b664..0f4451a3 100644
--- a/src/serialization/types/SystemToolConfigInput.ts
+++ b/src/serialization/types/SystemToolConfigInput.ts
@@ -7,6 +7,7 @@ import { DynamicVariableAssignment } from "./DynamicVariableAssignment";
import { SystemToolConfigInputParams } from "./SystemToolConfigInputParams";
import { ToolCallSoundBehavior } from "./ToolCallSoundBehavior";
import { ToolCallSoundType } from "./ToolCallSoundType";
+import { ToolErrorHandlingMode } from "./ToolErrorHandlingMode";
export const SystemToolConfigInput: core.serialization.ObjectSchema<
serializers.SystemToolConfigInput.Raw,
@@ -21,6 +22,7 @@ export const SystemToolConfigInput: core.serialization.ObjectSchema<
assignments: core.serialization.list(DynamicVariableAssignment).optional(),
toolCallSound: core.serialization.property("tool_call_sound", ToolCallSoundType.optional()),
toolCallSoundBehavior: core.serialization.property("tool_call_sound_behavior", ToolCallSoundBehavior.optional()),
+ toolErrorHandlingMode: core.serialization.property("tool_error_handling_mode", ToolErrorHandlingMode.optional()),
params: SystemToolConfigInputParams,
});
@@ -35,6 +37,7 @@ export declare namespace SystemToolConfigInput {
assignments?: DynamicVariableAssignment.Raw[] | null;
tool_call_sound?: ToolCallSoundType.Raw | null;
tool_call_sound_behavior?: ToolCallSoundBehavior.Raw | null;
+ tool_error_handling_mode?: ToolErrorHandlingMode.Raw | null;
params: SystemToolConfigInputParams.Raw;
}
}
diff --git a/src/serialization/types/SystemToolConfigOutput.ts b/src/serialization/types/SystemToolConfigOutput.ts
index 177a246a..f2d1e844 100644
--- a/src/serialization/types/SystemToolConfigOutput.ts
+++ b/src/serialization/types/SystemToolConfigOutput.ts
@@ -7,6 +7,7 @@ import { DynamicVariableAssignment } from "./DynamicVariableAssignment";
import { SystemToolConfigOutputParams } from "./SystemToolConfigOutputParams";
import { ToolCallSoundBehavior } from "./ToolCallSoundBehavior";
import { ToolCallSoundType } from "./ToolCallSoundType";
+import { ToolErrorHandlingMode } from "./ToolErrorHandlingMode";
export const SystemToolConfigOutput: core.serialization.ObjectSchema<
serializers.SystemToolConfigOutput.Raw,
@@ -21,6 +22,7 @@ export const SystemToolConfigOutput: core.serialization.ObjectSchema<
assignments: core.serialization.list(DynamicVariableAssignment).optional(),
toolCallSound: core.serialization.property("tool_call_sound", ToolCallSoundType.optional()),
toolCallSoundBehavior: core.serialization.property("tool_call_sound_behavior", ToolCallSoundBehavior.optional()),
+ toolErrorHandlingMode: core.serialization.property("tool_error_handling_mode", ToolErrorHandlingMode.optional()),
params: SystemToolConfigOutputParams,
});
@@ -35,6 +37,7 @@ export declare namespace SystemToolConfigOutput {
assignments?: DynamicVariableAssignment.Raw[] | null;
tool_call_sound?: ToolCallSoundType.Raw | null;
tool_call_sound_behavior?: ToolCallSoundBehavior.Raw | null;
+ tool_error_handling_mode?: ToolErrorHandlingMode.Raw | null;
params: SystemToolConfigOutputParams.Raw;
}
}
diff --git a/src/serialization/types/TestFromConversationMetadataInput.ts b/src/serialization/types/TestFromConversationMetadataInput.ts
index 46bd20e4..3c2f4102 100644
--- a/src/serialization/types/TestFromConversationMetadataInput.ts
+++ b/src/serialization/types/TestFromConversationMetadataInput.ts
@@ -11,6 +11,7 @@ export const TestFromConversationMetadataInput: core.serialization.ObjectSchema<
> = core.serialization.object({
conversationId: core.serialization.property("conversation_id", core.serialization.string()),
agentId: core.serialization.property("agent_id", core.serialization.string()),
+ branchId: core.serialization.property("branch_id", core.serialization.string().optional()),
workflowNodeId: core.serialization.property("workflow_node_id", core.serialization.string().optional()),
originalAgentReply: core.serialization.property(
"original_agent_reply",
@@ -22,6 +23,7 @@ export declare namespace TestFromConversationMetadataInput {
export interface Raw {
conversation_id: string;
agent_id: string;
+ branch_id?: string | null;
workflow_node_id?: string | null;
original_agent_reply?: ConversationHistoryTranscriptCommonModelInput.Raw[] | null;
}
diff --git a/src/serialization/types/TestFromConversationMetadataOutput.ts b/src/serialization/types/TestFromConversationMetadataOutput.ts
index ef7484f0..50ffd8ec 100644
--- a/src/serialization/types/TestFromConversationMetadataOutput.ts
+++ b/src/serialization/types/TestFromConversationMetadataOutput.ts
@@ -11,6 +11,7 @@ export const TestFromConversationMetadataOutput: core.serialization.ObjectSchema
> = core.serialization.object({
conversationId: core.serialization.property("conversation_id", core.serialization.string()),
agentId: core.serialization.property("agent_id", core.serialization.string()),
+ branchId: core.serialization.property("branch_id", core.serialization.string().optional()),
workflowNodeId: core.serialization.property("workflow_node_id", core.serialization.string().optional()),
originalAgentReply: core.serialization.property(
"original_agent_reply",
@@ -22,6 +23,7 @@ export declare namespace TestFromConversationMetadataOutput {
export interface Raw {
conversation_id: string;
agent_id: string;
+ branch_id?: string | null;
workflow_node_id?: string | null;
original_agent_reply?: ConversationHistoryTranscriptCommonModelOutput.Raw[] | null;
}
diff --git a/src/serialization/types/TextToSpeechApplyTextNormalizationEnum.ts b/src/serialization/types/TextToSpeechApplyTextNormalizationEnum.ts
new file mode 100644
index 00000000..502f4ff0
--- /dev/null
+++ b/src/serialization/types/TextToSpeechApplyTextNormalizationEnum.ts
@@ -0,0 +1,14 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const TextToSpeechApplyTextNormalizationEnum: core.serialization.Schema<
+ serializers.TextToSpeechApplyTextNormalizationEnum.Raw,
+ ElevenLabs.TextToSpeechApplyTextNormalizationEnum
+> = core.serialization.enum_(["auto", "on", "off"]);
+
+export declare namespace TextToSpeechApplyTextNormalizationEnum {
+ export type Raw = "auto" | "on" | "off";
+}
diff --git a/src/serialization/types/TextToSpeechOutputFormatEnum.ts b/src/serialization/types/TextToSpeechOutputFormatEnum.ts
new file mode 100644
index 00000000..8d641201
--- /dev/null
+++ b/src/serialization/types/TextToSpeechOutputFormatEnum.ts
@@ -0,0 +1,51 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const TextToSpeechOutputFormatEnum: core.serialization.Schema<
+ serializers.TextToSpeechOutputFormatEnum.Raw,
+ ElevenLabs.TextToSpeechOutputFormatEnum
+> = core.serialization.enum_([
+ "mp3_22050_32",
+ "mp3_44100_32",
+ "mp3_44100_64",
+ "mp3_44100_96",
+ "mp3_44100_128",
+ "mp3_44100_192",
+ "pcm_8000",
+ "pcm_16000",
+ "pcm_22050",
+ "pcm_24000",
+ "pcm_44100",
+ "ulaw_8000",
+ "alaw_8000",
+ "opus_48000_32",
+ "opus_48000_64",
+ "opus_48000_96",
+ "opus_48000_128",
+ "opus_48000_192",
+]);
+
+export declare namespace TextToSpeechOutputFormatEnum {
+ export type Raw =
+ | "mp3_22050_32"
+ | "mp3_44100_32"
+ | "mp3_44100_64"
+ | "mp3_44100_96"
+ | "mp3_44100_128"
+ | "mp3_44100_192"
+ | "pcm_8000"
+ | "pcm_16000"
+ | "pcm_22050"
+ | "pcm_24000"
+ | "pcm_44100"
+ | "ulaw_8000"
+ | "alaw_8000"
+ | "opus_48000_32"
+ | "opus_48000_64"
+ | "opus_48000_96"
+ | "opus_48000_128"
+ | "opus_48000_192";
+}
diff --git a/src/serialization/types/ToolErrorHandlingMode.ts b/src/serialization/types/ToolErrorHandlingMode.ts
new file mode 100644
index 00000000..929e2b18
--- /dev/null
+++ b/src/serialization/types/ToolErrorHandlingMode.ts
@@ -0,0 +1,14 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const ToolErrorHandlingMode: core.serialization.Schema<
+ serializers.ToolErrorHandlingMode.Raw,
+ ElevenLabs.ToolErrorHandlingMode
+> = core.serialization.enum_(["auto", "summarized", "passthrough", "hide"]);
+
+export declare namespace ToolErrorHandlingMode {
+ export type Raw = "auto" | "summarized" | "passthrough" | "hide";
+}
diff --git a/src/serialization/types/TranscriptionWord.ts b/src/serialization/types/TranscriptionWord.ts
new file mode 100644
index 00000000..78766654
--- /dev/null
+++ b/src/serialization/types/TranscriptionWord.ts
@@ -0,0 +1,31 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+import { TranscriptionWordType } from "./TranscriptionWordType";
+
+export const TranscriptionWord: core.serialization.ObjectSchema<
+ serializers.TranscriptionWord.Raw,
+ ElevenLabs.TranscriptionWord
+> = core.serialization.object({
+ text: core.serialization.string().optional(),
+ start: core.serialization.number().optional(),
+ end: core.serialization.number().optional(),
+ type: TranscriptionWordType.optional(),
+ speakerId: core.serialization.property("speaker_id", core.serialization.string().optional()),
+ logprob: core.serialization.number().optional(),
+ characters: core.serialization.list(core.serialization.string()).optional(),
+});
+
+export declare namespace TranscriptionWord {
+ export interface Raw {
+ text?: string | null;
+ start?: number | null;
+ end?: number | null;
+ type?: TranscriptionWordType.Raw | null;
+ speaker_id?: string | null;
+ logprob?: number | null;
+ characters?: string[] | null;
+ }
+}
diff --git a/src/serialization/types/TranscriptionWordType.ts b/src/serialization/types/TranscriptionWordType.ts
new file mode 100644
index 00000000..a6727ce3
--- /dev/null
+++ b/src/serialization/types/TranscriptionWordType.ts
@@ -0,0 +1,14 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const TranscriptionWordType: core.serialization.Schema<
+ serializers.TranscriptionWordType.Raw,
+ ElevenLabs.TranscriptionWordType
+> = core.serialization.enum_(["word", "spacing"]);
+
+export declare namespace TranscriptionWordType {
+ export type Raw = "word" | "spacing";
+}
diff --git a/src/serialization/types/TransferBranchInfoDefaultingToMain.ts b/src/serialization/types/TransferBranchInfoDefaultingToMain.ts
new file mode 100644
index 00000000..3a28e43f
--- /dev/null
+++ b/src/serialization/types/TransferBranchInfoDefaultingToMain.ts
@@ -0,0 +1,18 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const TransferBranchInfoDefaultingToMain: core.serialization.ObjectSchema<
+ serializers.TransferBranchInfoDefaultingToMain.Raw,
+ ElevenLabs.TransferBranchInfoDefaultingToMain
+> = core.serialization.object({
+ branchId: core.serialization.property("branch_id", core.serialization.string()),
+});
+
+export declare namespace TransferBranchInfoDefaultingToMain {
+ export interface Raw {
+ branch_id: string;
+ }
+}
diff --git a/src/serialization/types/TransferBranchInfoTrafficSplit.ts b/src/serialization/types/TransferBranchInfoTrafficSplit.ts
new file mode 100644
index 00000000..c7e09d7e
--- /dev/null
+++ b/src/serialization/types/TransferBranchInfoTrafficSplit.ts
@@ -0,0 +1,20 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const TransferBranchInfoTrafficSplit: core.serialization.ObjectSchema<
+ serializers.TransferBranchInfoTrafficSplit.Raw,
+ ElevenLabs.TransferBranchInfoTrafficSplit
+> = core.serialization.object({
+ branchId: core.serialization.property("branch_id", core.serialization.string()),
+ trafficPercentage: core.serialization.property("traffic_percentage", core.serialization.number()),
+});
+
+export declare namespace TransferBranchInfoTrafficSplit {
+ export interface Raw {
+ branch_id: string;
+ traffic_percentage: number;
+ }
+}
diff --git a/src/serialization/types/TransferToAgentToolResultSuccessModel.ts b/src/serialization/types/TransferToAgentToolResultSuccessModel.ts
index 6c173aec..b90992a6 100644
--- a/src/serialization/types/TransferToAgentToolResultSuccessModel.ts
+++ b/src/serialization/types/TransferToAgentToolResultSuccessModel.ts
@@ -3,6 +3,7 @@
import type * as ElevenLabs from "../../api/index";
import * as core from "../../core";
import type * as serializers from "../index";
+import { TransferToAgentToolResultSuccessModelBranchInfo } from "./TransferToAgentToolResultSuccessModelBranchInfo";
export const TransferToAgentToolResultSuccessModel: core.serialization.ObjectSchema<
serializers.TransferToAgentToolResultSuccessModel.Raw,
@@ -18,6 +19,7 @@ export const TransferToAgentToolResultSuccessModel: core.serialization.ObjectSch
"enable_transferred_agent_first_message",
core.serialization.boolean().optional(),
),
+ branchInfo: core.serialization.property("branch_info", TransferToAgentToolResultSuccessModelBranchInfo.optional()),
});
export declare namespace TransferToAgentToolResultSuccessModel {
@@ -29,5 +31,6 @@ export declare namespace TransferToAgentToolResultSuccessModel {
delay_ms?: number | null;
transfer_message?: string | null;
enable_transferred_agent_first_message?: boolean | null;
+ branch_info?: TransferToAgentToolResultSuccessModelBranchInfo.Raw | null;
}
}
diff --git a/src/serialization/types/TransferToAgentToolResultSuccessModelBranchInfo.ts b/src/serialization/types/TransferToAgentToolResultSuccessModelBranchInfo.ts
new file mode 100644
index 00000000..592b5055
--- /dev/null
+++ b/src/serialization/types/TransferToAgentToolResultSuccessModelBranchInfo.ts
@@ -0,0 +1,34 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+import { TransferBranchInfoDefaultingToMain } from "./TransferBranchInfoDefaultingToMain";
+import { TransferBranchInfoTrafficSplit } from "./TransferBranchInfoTrafficSplit";
+
+export const TransferToAgentToolResultSuccessModelBranchInfo: core.serialization.Schema<
+ serializers.TransferToAgentToolResultSuccessModelBranchInfo.Raw,
+ ElevenLabs.TransferToAgentToolResultSuccessModelBranchInfo
+> = core.serialization
+ .union(core.serialization.discriminant("branchReason", "branch_reason"), {
+ defaulting_to_main: TransferBranchInfoDefaultingToMain,
+ traffic_split: TransferBranchInfoTrafficSplit,
+ })
+ .transform({
+ transform: (value) => value,
+ untransform: (value) => value,
+ });
+
+export declare namespace TransferToAgentToolResultSuccessModelBranchInfo {
+ export type Raw =
+ | TransferToAgentToolResultSuccessModelBranchInfo.DefaultingToMain
+ | TransferToAgentToolResultSuccessModelBranchInfo.TrafficSplit;
+
+ export interface DefaultingToMain extends TransferBranchInfoDefaultingToMain.Raw {
+ branch_reason: "defaulting_to_main";
+ }
+
+ export interface TrafficSplit extends TransferBranchInfoTrafficSplit.Raw {
+ branch_reason: "traffic_split";
+ }
+}
diff --git a/src/serialization/types/TtsConversationalConfigInput.ts b/src/serialization/types/TtsConversationalConfigInput.ts
index 11d5d161..0237de32 100644
--- a/src/serialization/types/TtsConversationalConfigInput.ts
+++ b/src/serialization/types/TtsConversationalConfigInput.ts
@@ -4,6 +4,7 @@ import type * as ElevenLabs from "../../api/index";
import * as core from "../../core";
import type * as serializers from "../index";
import { PydanticPronunciationDictionaryVersionLocator } from "./PydanticPronunciationDictionaryVersionLocator";
+import { SuggestedAudioTag } from "./SuggestedAudioTag";
import { SupportedVoice } from "./SupportedVoice";
import { TextNormalisationType } from "./TextNormalisationType";
import { TtsConversationalModel } from "./TtsConversationalModel";
@@ -20,6 +21,10 @@ export const TtsConversationalConfigInput: core.serialization.ObjectSchema<
"supported_voices",
core.serialization.list(SupportedVoice).optional(),
),
+ suggestedAudioTags: core.serialization.property(
+ "suggested_audio_tags",
+ core.serialization.list(SuggestedAudioTag).optional(),
+ ),
agentOutputAudioFormat: core.serialization.property("agent_output_audio_format", TtsOutputFormat.optional()),
optimizeStreamingLatency: core.serialization.property(
"optimize_streaming_latency",
@@ -40,6 +45,7 @@ export declare namespace TtsConversationalConfigInput {
model_id?: TtsConversationalModel.Raw | null;
voice_id?: string | null;
supported_voices?: SupportedVoice.Raw[] | null;
+ suggested_audio_tags?: SuggestedAudioTag.Raw[] | null;
agent_output_audio_format?: TtsOutputFormat.Raw | null;
optimize_streaming_latency?: TtsOptimizeStreamingLatency.Raw | null;
stability?: number | null;
diff --git a/src/serialization/types/TtsConversationalConfigOutput.ts b/src/serialization/types/TtsConversationalConfigOutput.ts
index fa6bc8df..9ebc4956 100644
--- a/src/serialization/types/TtsConversationalConfigOutput.ts
+++ b/src/serialization/types/TtsConversationalConfigOutput.ts
@@ -4,6 +4,7 @@ import type * as ElevenLabs from "../../api/index";
import * as core from "../../core";
import type * as serializers from "../index";
import { PydanticPronunciationDictionaryVersionLocator } from "./PydanticPronunciationDictionaryVersionLocator";
+import { SuggestedAudioTag } from "./SuggestedAudioTag";
import { SupportedVoice } from "./SupportedVoice";
import { TextNormalisationType } from "./TextNormalisationType";
import { TtsConversationalModel } from "./TtsConversationalModel";
@@ -20,6 +21,10 @@ export const TtsConversationalConfigOutput: core.serialization.ObjectSchema<
"supported_voices",
core.serialization.list(SupportedVoice).optional(),
),
+ suggestedAudioTags: core.serialization.property(
+ "suggested_audio_tags",
+ core.serialization.list(SuggestedAudioTag).optional(),
+ ),
agentOutputAudioFormat: core.serialization.property("agent_output_audio_format", TtsOutputFormat.optional()),
optimizeStreamingLatency: core.serialization.property(
"optimize_streaming_latency",
@@ -40,6 +45,7 @@ export declare namespace TtsConversationalConfigOutput {
model_id?: TtsConversationalModel.Raw | null;
voice_id?: string | null;
supported_voices?: SupportedVoice.Raw[] | null;
+ suggested_audio_tags?: SuggestedAudioTag.Raw[] | null;
agent_output_audio_format?: TtsOutputFormat.Raw | null;
optimize_streaming_latency?: TtsOptimizeStreamingLatency.Raw | null;
stability?: number | null;
diff --git a/src/serialization/types/TtsConversationalConfigWorkflowOverrideInput.ts b/src/serialization/types/TtsConversationalConfigWorkflowOverrideInput.ts
index 7269b3b5..0024d064 100644
--- a/src/serialization/types/TtsConversationalConfigWorkflowOverrideInput.ts
+++ b/src/serialization/types/TtsConversationalConfigWorkflowOverrideInput.ts
@@ -4,6 +4,7 @@ import type * as ElevenLabs from "../../api/index";
import * as core from "../../core";
import type * as serializers from "../index";
import { PydanticPronunciationDictionaryVersionLocator } from "./PydanticPronunciationDictionaryVersionLocator";
+import { SuggestedAudioTag } from "./SuggestedAudioTag";
import { SupportedVoice } from "./SupportedVoice";
import { TextNormalisationType } from "./TextNormalisationType";
import { TtsConversationalModel } from "./TtsConversationalModel";
@@ -20,6 +21,10 @@ export const TtsConversationalConfigWorkflowOverrideInput: core.serialization.Ob
"supported_voices",
core.serialization.list(SupportedVoice).optional(),
),
+ suggestedAudioTags: core.serialization.property(
+ "suggested_audio_tags",
+ core.serialization.list(SuggestedAudioTag).optional(),
+ ),
agentOutputAudioFormat: core.serialization.property("agent_output_audio_format", TtsOutputFormat.optional()),
optimizeStreamingLatency: core.serialization.property(
"optimize_streaming_latency",
@@ -40,6 +45,7 @@ export declare namespace TtsConversationalConfigWorkflowOverrideInput {
model_id?: TtsConversationalModel.Raw | null;
voice_id?: string | null;
supported_voices?: SupportedVoice.Raw[] | null;
+ suggested_audio_tags?: SuggestedAudioTag.Raw[] | null;
agent_output_audio_format?: TtsOutputFormat.Raw | null;
optimize_streaming_latency?: TtsOptimizeStreamingLatency.Raw | null;
stability?: number | null;
diff --git a/src/serialization/types/TtsConversationalConfigWorkflowOverrideOutput.ts b/src/serialization/types/TtsConversationalConfigWorkflowOverrideOutput.ts
index 3559f475..0e82b2dc 100644
--- a/src/serialization/types/TtsConversationalConfigWorkflowOverrideOutput.ts
+++ b/src/serialization/types/TtsConversationalConfigWorkflowOverrideOutput.ts
@@ -4,6 +4,7 @@ import type * as ElevenLabs from "../../api/index";
import * as core from "../../core";
import type * as serializers from "../index";
import { PydanticPronunciationDictionaryVersionLocator } from "./PydanticPronunciationDictionaryVersionLocator";
+import { SuggestedAudioTag } from "./SuggestedAudioTag";
import { SupportedVoice } from "./SupportedVoice";
import { TextNormalisationType } from "./TextNormalisationType";
import { TtsConversationalModel } from "./TtsConversationalModel";
@@ -20,6 +21,10 @@ export const TtsConversationalConfigWorkflowOverrideOutput: core.serialization.O
"supported_voices",
core.serialization.list(SupportedVoice).optional(),
),
+ suggestedAudioTags: core.serialization.property(
+ "suggested_audio_tags",
+ core.serialization.list(SuggestedAudioTag).optional(),
+ ),
agentOutputAudioFormat: core.serialization.property("agent_output_audio_format", TtsOutputFormat.optional()),
optimizeStreamingLatency: core.serialization.property(
"optimize_streaming_latency",
@@ -40,6 +45,7 @@ export declare namespace TtsConversationalConfigWorkflowOverrideOutput {
model_id?: TtsConversationalModel.Raw | null;
voice_id?: string | null;
supported_voices?: SupportedVoice.Raw[] | null;
+ suggested_audio_tags?: SuggestedAudioTag.Raw[] | null;
agent_output_audio_format?: TtsOutputFormat.Raw | null;
optimize_streaming_latency?: TtsOptimizeStreamingLatency.Raw | null;
stability?: number | null;
diff --git a/src/serialization/types/TtsConversationalModel.ts b/src/serialization/types/TtsConversationalModel.ts
index c9148809..2aeeee0b 100644
--- a/src/serialization/types/TtsConversationalModel.ts
+++ b/src/serialization/types/TtsConversationalModel.ts
@@ -13,6 +13,7 @@ export const TtsConversationalModel: core.serialization.Schema<
"eleven_flash_v2",
"eleven_flash_v2_5",
"eleven_multilingual_v2",
+ "eleven_v3_conversational",
]);
export declare namespace TtsConversationalModel {
@@ -21,5 +22,6 @@ export declare namespace TtsConversationalModel {
| "eleven_turbo_v2_5"
| "eleven_flash_v2"
| "eleven_flash_v2_5"
- | "eleven_multilingual_v2";
+ | "eleven_multilingual_v2"
+ | "eleven_v3_conversational";
}
diff --git a/src/serialization/types/TtsModelFamily.ts b/src/serialization/types/TtsModelFamily.ts
index 5c4e57bf..171ba51e 100644
--- a/src/serialization/types/TtsModelFamily.ts
+++ b/src/serialization/types/TtsModelFamily.ts
@@ -5,8 +5,8 @@ import * as core from "../../core";
import type * as serializers from "../index";
export const TtsModelFamily: core.serialization.Schema =
- core.serialization.enum_(["turbo", "flash", "multilingual"]);
+ core.serialization.enum_(["turbo", "flash", "multilingual", "v3_conversational"]);
export declare namespace TtsModelFamily {
- export type Raw = "turbo" | "flash" | "multilingual";
+ export type Raw = "turbo" | "flash" | "multilingual" | "v3_conversational";
}
diff --git a/src/serialization/types/TurnModel.ts b/src/serialization/types/TurnModel.ts
new file mode 100644
index 00000000..e7c1ffb0
--- /dev/null
+++ b/src/serialization/types/TurnModel.ts
@@ -0,0 +1,12 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const TurnModel: core.serialization.Schema =
+ core.serialization.enum_(["turn_v2", "turn_v3"]);
+
+export declare namespace TurnModel {
+ export type Raw = "turn_v2" | "turn_v3";
+}
diff --git a/src/serialization/types/UnitTestToolCallEvaluationModelInput.ts b/src/serialization/types/UnitTestToolCallEvaluationModelInput.ts
index 635ad20f..6feb6336 100644
--- a/src/serialization/types/UnitTestToolCallEvaluationModelInput.ts
+++ b/src/serialization/types/UnitTestToolCallEvaluationModelInput.ts
@@ -5,6 +5,7 @@ import * as core from "../../core";
import type * as serializers from "../index";
import { ReferencedToolCommonModel } from "./ReferencedToolCommonModel";
import { UnitTestToolCallParameter } from "./UnitTestToolCallParameter";
+import { UnitTestWorkflowNodeTransitionEvaluationNodeId } from "./UnitTestWorkflowNodeTransitionEvaluationNodeId";
export const UnitTestToolCallEvaluationModelInput: core.serialization.ObjectSchema<
serializers.UnitTestToolCallEvaluationModelInput.Raw,
@@ -13,6 +14,10 @@ export const UnitTestToolCallEvaluationModelInput: core.serialization.ObjectSche
parameters: core.serialization.list(UnitTestToolCallParameter).optional(),
referencedTool: core.serialization.property("referenced_tool", ReferencedToolCommonModel.optional()),
verifyAbsence: core.serialization.property("verify_absence", core.serialization.boolean().optional()),
+ workflowNodeTransition: core.serialization.property(
+ "workflow_node_transition",
+ UnitTestWorkflowNodeTransitionEvaluationNodeId.optional(),
+ ),
});
export declare namespace UnitTestToolCallEvaluationModelInput {
@@ -20,5 +25,6 @@ export declare namespace UnitTestToolCallEvaluationModelInput {
parameters?: UnitTestToolCallParameter.Raw[] | null;
referenced_tool?: ReferencedToolCommonModel.Raw | null;
verify_absence?: boolean | null;
+ workflow_node_transition?: UnitTestWorkflowNodeTransitionEvaluationNodeId.Raw | null;
}
}
diff --git a/src/serialization/types/UnitTestToolCallEvaluationModelOutput.ts b/src/serialization/types/UnitTestToolCallEvaluationModelOutput.ts
index de603aef..a9251292 100644
--- a/src/serialization/types/UnitTestToolCallEvaluationModelOutput.ts
+++ b/src/serialization/types/UnitTestToolCallEvaluationModelOutput.ts
@@ -5,6 +5,7 @@ import * as core from "../../core";
import type * as serializers from "../index";
import { ReferencedToolCommonModel } from "./ReferencedToolCommonModel";
import { UnitTestToolCallParameter } from "./UnitTestToolCallParameter";
+import { UnitTestWorkflowNodeTransitionEvaluationNodeId } from "./UnitTestWorkflowNodeTransitionEvaluationNodeId";
export const UnitTestToolCallEvaluationModelOutput: core.serialization.ObjectSchema<
serializers.UnitTestToolCallEvaluationModelOutput.Raw,
@@ -13,6 +14,10 @@ export const UnitTestToolCallEvaluationModelOutput: core.serialization.ObjectSch
parameters: core.serialization.list(UnitTestToolCallParameter).optional(),
referencedTool: core.serialization.property("referenced_tool", ReferencedToolCommonModel.optional()),
verifyAbsence: core.serialization.property("verify_absence", core.serialization.boolean().optional()),
+ workflowNodeTransition: core.serialization.property(
+ "workflow_node_transition",
+ UnitTestWorkflowNodeTransitionEvaluationNodeId.optional(),
+ ),
});
export declare namespace UnitTestToolCallEvaluationModelOutput {
@@ -20,5 +25,6 @@ export declare namespace UnitTestToolCallEvaluationModelOutput {
parameters?: UnitTestToolCallParameter.Raw[] | null;
referenced_tool?: ReferencedToolCommonModel.Raw | null;
verify_absence?: boolean | null;
+ workflow_node_transition?: UnitTestWorkflowNodeTransitionEvaluationNodeId.Raw | null;
}
}
diff --git a/src/serialization/types/UnitTestWorkflowNodeTransitionEvaluationNodeId.ts b/src/serialization/types/UnitTestWorkflowNodeTransitionEvaluationNodeId.ts
new file mode 100644
index 00000000..cbcce1e9
--- /dev/null
+++ b/src/serialization/types/UnitTestWorkflowNodeTransitionEvaluationNodeId.ts
@@ -0,0 +1,22 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const UnitTestWorkflowNodeTransitionEvaluationNodeId: core.serialization.ObjectSchema<
+ serializers.UnitTestWorkflowNodeTransitionEvaluationNodeId.Raw,
+ ElevenLabs.UnitTestWorkflowNodeTransitionEvaluationNodeId
+> = core.serialization.object({
+ type: core.serialization.stringLiteral("node_id").optional(),
+ agentId: core.serialization.property("agent_id", core.serialization.string()),
+ targetNodeId: core.serialization.property("target_node_id", core.serialization.string()),
+});
+
+export declare namespace UnitTestWorkflowNodeTransitionEvaluationNodeId {
+ export interface Raw {
+ type?: "node_id" | null;
+ agent_id: string;
+ target_node_id: string;
+ }
+}
diff --git a/src/serialization/types/WebhookToolConfigInput.ts b/src/serialization/types/WebhookToolConfigInput.ts
index 83ed70cd..a3efde82 100644
--- a/src/serialization/types/WebhookToolConfigInput.ts
+++ b/src/serialization/types/WebhookToolConfigInput.ts
@@ -7,6 +7,7 @@ import { DynamicVariableAssignment } from "./DynamicVariableAssignment";
import { DynamicVariablesConfig } from "./DynamicVariablesConfig";
import { ToolCallSoundBehavior } from "./ToolCallSoundBehavior";
import { ToolCallSoundType } from "./ToolCallSoundType";
+import { ToolErrorHandlingMode } from "./ToolErrorHandlingMode";
import { ToolExecutionMode } from "./ToolExecutionMode";
import { WebhookToolApiSchemaConfigInput } from "./WebhookToolApiSchemaConfigInput";
@@ -22,6 +23,7 @@ export const WebhookToolConfigInput: core.serialization.ObjectSchema<
assignments: core.serialization.list(DynamicVariableAssignment).optional(),
toolCallSound: core.serialization.property("tool_call_sound", ToolCallSoundType.optional()),
toolCallSoundBehavior: core.serialization.property("tool_call_sound_behavior", ToolCallSoundBehavior.optional()),
+ toolErrorHandlingMode: core.serialization.property("tool_error_handling_mode", ToolErrorHandlingMode.optional()),
dynamicVariables: core.serialization.property("dynamic_variables", DynamicVariablesConfig.optional()),
executionMode: core.serialization.property("execution_mode", ToolExecutionMode.optional()),
apiSchema: core.serialization.property("api_schema", WebhookToolApiSchemaConfigInput),
@@ -37,6 +39,7 @@ export declare namespace WebhookToolConfigInput {
assignments?: DynamicVariableAssignment.Raw[] | null;
tool_call_sound?: ToolCallSoundType.Raw | null;
tool_call_sound_behavior?: ToolCallSoundBehavior.Raw | null;
+ tool_error_handling_mode?: ToolErrorHandlingMode.Raw | null;
dynamic_variables?: DynamicVariablesConfig.Raw | null;
execution_mode?: ToolExecutionMode.Raw | null;
api_schema: WebhookToolApiSchemaConfigInput.Raw;
diff --git a/src/serialization/types/WebhookToolConfigOutput.ts b/src/serialization/types/WebhookToolConfigOutput.ts
index 7e2adb4f..2d631914 100644
--- a/src/serialization/types/WebhookToolConfigOutput.ts
+++ b/src/serialization/types/WebhookToolConfigOutput.ts
@@ -7,6 +7,7 @@ import { DynamicVariableAssignment } from "./DynamicVariableAssignment";
import { DynamicVariablesConfig } from "./DynamicVariablesConfig";
import { ToolCallSoundBehavior } from "./ToolCallSoundBehavior";
import { ToolCallSoundType } from "./ToolCallSoundType";
+import { ToolErrorHandlingMode } from "./ToolErrorHandlingMode";
import { ToolExecutionMode } from "./ToolExecutionMode";
import { WebhookToolApiSchemaConfigOutput } from "./WebhookToolApiSchemaConfigOutput";
@@ -22,6 +23,7 @@ export const WebhookToolConfigOutput: core.serialization.ObjectSchema<
assignments: core.serialization.list(DynamicVariableAssignment).optional(),
toolCallSound: core.serialization.property("tool_call_sound", ToolCallSoundType.optional()),
toolCallSoundBehavior: core.serialization.property("tool_call_sound_behavior", ToolCallSoundBehavior.optional()),
+ toolErrorHandlingMode: core.serialization.property("tool_error_handling_mode", ToolErrorHandlingMode.optional()),
dynamicVariables: core.serialization.property("dynamic_variables", DynamicVariablesConfig.optional()),
executionMode: core.serialization.property("execution_mode", ToolExecutionMode.optional()),
apiSchema: core.serialization.property("api_schema", WebhookToolApiSchemaConfigOutput),
@@ -37,6 +39,7 @@ export declare namespace WebhookToolConfigOutput {
assignments?: DynamicVariableAssignment.Raw[] | null;
tool_call_sound?: ToolCallSoundType.Raw | null;
tool_call_sound_behavior?: ToolCallSoundBehavior.Raw | null;
+ tool_error_handling_mode?: ToolErrorHandlingMode.Raw | null;
dynamic_variables?: DynamicVariablesConfig.Raw | null;
execution_mode?: ToolExecutionMode.Raw | null;
api_schema: WebhookToolApiSchemaConfigOutput.Raw;
diff --git a/src/serialization/types/WebsocketTtsClientMessageMulti.ts b/src/serialization/types/WebsocketTtsClientMessageMulti.ts
new file mode 100644
index 00000000..1bb2bf20
--- /dev/null
+++ b/src/serialization/types/WebsocketTtsClientMessageMulti.ts
@@ -0,0 +1,42 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+import { GenerationConfig } from "./GenerationConfig";
+import { PronunciationDictionaryLocator } from "./PronunciationDictionaryLocator";
+import { RealtimeVoiceSettings } from "./RealtimeVoiceSettings";
+
+export const WebsocketTtsClientMessageMulti: core.serialization.ObjectSchema<
+ serializers.WebsocketTtsClientMessageMulti.Raw,
+ ElevenLabs.WebsocketTtsClientMessageMulti
+> = core.serialization.object({
+ text: core.serialization.string().optional(),
+ voiceSettings: core.serialization.property("voice_settings", RealtimeVoiceSettings.optional()),
+ generationConfig: core.serialization.property("generation_config", GenerationConfig.optional()),
+ xiApiKey: core.serialization.property("xi-api-key", core.serialization.string().optional()),
+ authorization: core.serialization.string().optional(),
+ flush: core.serialization.boolean().optional(),
+ pronunciationDictionaryLocators: core.serialization.property(
+ "pronunciation_dictionary_locators",
+ core.serialization.list(PronunciationDictionaryLocator).optional(),
+ ),
+ contextId: core.serialization.string().optional(),
+ closeContext: core.serialization.property("close_context", core.serialization.boolean().optional()),
+ closeSocket: core.serialization.property("close_socket", core.serialization.boolean().optional()),
+});
+
+export declare namespace WebsocketTtsClientMessageMulti {
+ export interface Raw {
+ text?: string | null;
+ voice_settings?: RealtimeVoiceSettings.Raw | null;
+ generation_config?: GenerationConfig.Raw | null;
+ "xi-api-key"?: string | null;
+ authorization?: string | null;
+ flush?: boolean | null;
+ pronunciation_dictionary_locators?: PronunciationDictionaryLocator.Raw[] | null;
+ contextId?: string | null;
+ close_context?: boolean | null;
+ close_socket?: boolean | null;
+ }
+}
diff --git a/src/serialization/types/WebsocketTtsServerMessageMulti.ts b/src/serialization/types/WebsocketTtsServerMessageMulti.ts
new file mode 100644
index 00000000..ab47da3a
--- /dev/null
+++ b/src/serialization/types/WebsocketTtsServerMessageMulti.ts
@@ -0,0 +1,28 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+import { Alignment } from "./Alignment";
+import { NormalizedAlignment } from "./NormalizedAlignment";
+
+export const WebsocketTtsServerMessageMulti: core.serialization.ObjectSchema<
+ serializers.WebsocketTtsServerMessageMulti.Raw,
+ ElevenLabs.WebsocketTtsServerMessageMulti
+> = core.serialization.object({
+ audio: core.serialization.string().optional(),
+ isFinal: core.serialization.property("is_final", core.serialization.boolean().optional()),
+ normalizedAlignment: NormalizedAlignment.optional(),
+ alignment: Alignment.optional(),
+ contextId: core.serialization.string().optional(),
+});
+
+export declare namespace WebsocketTtsServerMessageMulti {
+ export interface Raw {
+ audio?: string | null;
+ is_final?: boolean | null;
+ normalizedAlignment?: NormalizedAlignment.Raw | null;
+ alignment?: Alignment.Raw | null;
+ contextId?: string | null;
+ }
+}
diff --git a/src/serialization/types/WhatsAppConversationInfo.ts b/src/serialization/types/WhatsAppConversationInfo.ts
index 21441aef..7c22d3b1 100644
--- a/src/serialization/types/WhatsAppConversationInfo.ts
+++ b/src/serialization/types/WhatsAppConversationInfo.ts
@@ -15,6 +15,10 @@ export const WhatsAppConversationInfo: core.serialization.ObjectSchema<
core.serialization.string().optional(),
),
whatsappUserId: core.serialization.property("whatsapp_user_id", core.serialization.string()),
+ awaitingFirstUserMessage: core.serialization.property(
+ "awaiting_first_user_message",
+ core.serialization.boolean().optional(),
+ ),
});
export declare namespace WhatsAppConversationInfo {
@@ -22,5 +26,6 @@ export declare namespace WhatsAppConversationInfo {
direction?: WhatsAppConversationInfoDirection.Raw | null;
whatsapp_phone_number_id?: string | null;
whatsapp_user_id: string;
+ awaiting_first_user_message?: boolean | null;
}
}
diff --git a/src/serialization/types/WhatsAppOutboundMessageResponse.ts b/src/serialization/types/WhatsAppOutboundMessageResponse.ts
new file mode 100644
index 00000000..163b8d4f
--- /dev/null
+++ b/src/serialization/types/WhatsAppOutboundMessageResponse.ts
@@ -0,0 +1,18 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const WhatsAppOutboundMessageResponse: core.serialization.ObjectSchema<
+ serializers.WhatsAppOutboundMessageResponse.Raw,
+ ElevenLabs.WhatsAppOutboundMessageResponse
+> = core.serialization.object({
+ conversationId: core.serialization.property("conversation_id", core.serialization.string()),
+});
+
+export declare namespace WhatsAppOutboundMessageResponse {
+ export interface Raw {
+ conversation_id: string;
+ }
+}
diff --git a/src/serialization/types/WhatsAppTemplateBodyComponentParams.ts b/src/serialization/types/WhatsAppTemplateBodyComponentParams.ts
new file mode 100644
index 00000000..5f4988b6
--- /dev/null
+++ b/src/serialization/types/WhatsAppTemplateBodyComponentParams.ts
@@ -0,0 +1,19 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+import { WhatsAppTemplateTextParam } from "./WhatsAppTemplateTextParam";
+
+export const WhatsAppTemplateBodyComponentParams: core.serialization.ObjectSchema<
+ serializers.WhatsAppTemplateBodyComponentParams.Raw,
+ ElevenLabs.WhatsAppTemplateBodyComponentParams
+> = core.serialization.object({
+ parameters: core.serialization.list(WhatsAppTemplateTextParam),
+});
+
+export declare namespace WhatsAppTemplateBodyComponentParams {
+ export interface Raw {
+ parameters: WhatsAppTemplateTextParam.Raw[];
+ }
+}
diff --git a/src/serialization/types/WhatsAppTemplateButtonComponentParams.ts b/src/serialization/types/WhatsAppTemplateButtonComponentParams.ts
new file mode 100644
index 00000000..e34b41f9
--- /dev/null
+++ b/src/serialization/types/WhatsAppTemplateButtonComponentParams.ts
@@ -0,0 +1,23 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+import { WhatsAppTemplateTextParam } from "./WhatsAppTemplateTextParam";
+
+export const WhatsAppTemplateButtonComponentParams: core.serialization.ObjectSchema<
+ serializers.WhatsAppTemplateButtonComponentParams.Raw,
+ ElevenLabs.WhatsAppTemplateButtonComponentParams
+> = core.serialization.object({
+ parameters: core.serialization.list(WhatsAppTemplateTextParam),
+ index: core.serialization.number(),
+ subType: core.serialization.property("sub_type", core.serialization.string()),
+});
+
+export declare namespace WhatsAppTemplateButtonComponentParams {
+ export interface Raw {
+ parameters: WhatsAppTemplateTextParam.Raw[];
+ index: number;
+ sub_type: string;
+ }
+}
diff --git a/src/serialization/types/WhatsAppTemplateDocumentParam.ts b/src/serialization/types/WhatsAppTemplateDocumentParam.ts
new file mode 100644
index 00000000..0579de4d
--- /dev/null
+++ b/src/serialization/types/WhatsAppTemplateDocumentParam.ts
@@ -0,0 +1,19 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+import { WhatsAppTemplateDocumentParamDetails } from "./WhatsAppTemplateDocumentParamDetails";
+
+export const WhatsAppTemplateDocumentParam: core.serialization.ObjectSchema<
+ serializers.WhatsAppTemplateDocumentParam.Raw,
+ ElevenLabs.WhatsAppTemplateDocumentParam
+> = core.serialization.object({
+ document: WhatsAppTemplateDocumentParamDetails,
+});
+
+export declare namespace WhatsAppTemplateDocumentParam {
+ export interface Raw {
+ document: WhatsAppTemplateDocumentParamDetails.Raw;
+ }
+}
diff --git a/src/serialization/types/WhatsAppTemplateDocumentParamDetails.ts b/src/serialization/types/WhatsAppTemplateDocumentParamDetails.ts
new file mode 100644
index 00000000..803961b2
--- /dev/null
+++ b/src/serialization/types/WhatsAppTemplateDocumentParamDetails.ts
@@ -0,0 +1,20 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const WhatsAppTemplateDocumentParamDetails: core.serialization.ObjectSchema<
+ serializers.WhatsAppTemplateDocumentParamDetails.Raw,
+ ElevenLabs.WhatsAppTemplateDocumentParamDetails
+> = core.serialization.object({
+ link: core.serialization.string(),
+ filename: core.serialization.string().optional(),
+});
+
+export declare namespace WhatsAppTemplateDocumentParamDetails {
+ export interface Raw {
+ link: string;
+ filename?: string | null;
+ }
+}
diff --git a/src/serialization/types/WhatsAppTemplateHeaderComponentParams.ts b/src/serialization/types/WhatsAppTemplateHeaderComponentParams.ts
new file mode 100644
index 00000000..d1d1a189
--- /dev/null
+++ b/src/serialization/types/WhatsAppTemplateHeaderComponentParams.ts
@@ -0,0 +1,19 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+import { WhatsAppTemplateHeaderComponentParamsParametersItem } from "./WhatsAppTemplateHeaderComponentParamsParametersItem";
+
+export const WhatsAppTemplateHeaderComponentParams: core.serialization.ObjectSchema<
+ serializers.WhatsAppTemplateHeaderComponentParams.Raw,
+ ElevenLabs.WhatsAppTemplateHeaderComponentParams
+> = core.serialization.object({
+ parameters: core.serialization.list(WhatsAppTemplateHeaderComponentParamsParametersItem),
+});
+
+export declare namespace WhatsAppTemplateHeaderComponentParams {
+ export interface Raw {
+ parameters: WhatsAppTemplateHeaderComponentParamsParametersItem.Raw[];
+ }
+}
diff --git a/src/serialization/types/WhatsAppTemplateHeaderComponentParamsParametersItem.ts b/src/serialization/types/WhatsAppTemplateHeaderComponentParamsParametersItem.ts
new file mode 100644
index 00000000..cb194973
--- /dev/null
+++ b/src/serialization/types/WhatsAppTemplateHeaderComponentParamsParametersItem.ts
@@ -0,0 +1,48 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+import { WhatsAppTemplateDocumentParam } from "./WhatsAppTemplateDocumentParam";
+import { WhatsAppTemplateImageParam } from "./WhatsAppTemplateImageParam";
+import { WhatsAppTemplateLocationParam } from "./WhatsAppTemplateLocationParam";
+import { WhatsAppTemplateTextParam } from "./WhatsAppTemplateTextParam";
+
+export const WhatsAppTemplateHeaderComponentParamsParametersItem: core.serialization.Schema<
+ serializers.WhatsAppTemplateHeaderComponentParamsParametersItem.Raw,
+ ElevenLabs.WhatsAppTemplateHeaderComponentParamsParametersItem
+> = core.serialization
+ .union("type", {
+ document: WhatsAppTemplateDocumentParam,
+ image: WhatsAppTemplateImageParam,
+ location: WhatsAppTemplateLocationParam,
+ text: WhatsAppTemplateTextParam,
+ })
+ .transform({
+ transform: (value) => value,
+ untransform: (value) => value,
+ });
+
+export declare namespace WhatsAppTemplateHeaderComponentParamsParametersItem {
+ export type Raw =
+ | WhatsAppTemplateHeaderComponentParamsParametersItem.Document
+ | WhatsAppTemplateHeaderComponentParamsParametersItem.Image
+ | WhatsAppTemplateHeaderComponentParamsParametersItem.Location
+ | WhatsAppTemplateHeaderComponentParamsParametersItem.Text;
+
+ export interface Document extends WhatsAppTemplateDocumentParam.Raw {
+ type: "document";
+ }
+
+ export interface Image extends WhatsAppTemplateImageParam.Raw {
+ type: "image";
+ }
+
+ export interface Location extends WhatsAppTemplateLocationParam.Raw {
+ type: "location";
+ }
+
+ export interface Text extends WhatsAppTemplateTextParam.Raw {
+ type: "text";
+ }
+}
diff --git a/src/serialization/types/WhatsAppTemplateImageParam.ts b/src/serialization/types/WhatsAppTemplateImageParam.ts
new file mode 100644
index 00000000..b21d9a87
--- /dev/null
+++ b/src/serialization/types/WhatsAppTemplateImageParam.ts
@@ -0,0 +1,19 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+import { WhatsAppTemplateImageParamDetails } from "./WhatsAppTemplateImageParamDetails";
+
+export const WhatsAppTemplateImageParam: core.serialization.ObjectSchema<
+ serializers.WhatsAppTemplateImageParam.Raw,
+ ElevenLabs.WhatsAppTemplateImageParam
+> = core.serialization.object({
+ image: WhatsAppTemplateImageParamDetails,
+});
+
+export declare namespace WhatsAppTemplateImageParam {
+ export interface Raw {
+ image: WhatsAppTemplateImageParamDetails.Raw;
+ }
+}
diff --git a/src/serialization/types/WhatsAppTemplateImageParamDetails.ts b/src/serialization/types/WhatsAppTemplateImageParamDetails.ts
new file mode 100644
index 00000000..0244dc3e
--- /dev/null
+++ b/src/serialization/types/WhatsAppTemplateImageParamDetails.ts
@@ -0,0 +1,18 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const WhatsAppTemplateImageParamDetails: core.serialization.ObjectSchema<
+ serializers.WhatsAppTemplateImageParamDetails.Raw,
+ ElevenLabs.WhatsAppTemplateImageParamDetails
+> = core.serialization.object({
+ link: core.serialization.string(),
+});
+
+export declare namespace WhatsAppTemplateImageParamDetails {
+ export interface Raw {
+ link: string;
+ }
+}
diff --git a/src/serialization/types/WhatsAppTemplateLocationParam.ts b/src/serialization/types/WhatsAppTemplateLocationParam.ts
new file mode 100644
index 00000000..774ad2c3
--- /dev/null
+++ b/src/serialization/types/WhatsAppTemplateLocationParam.ts
@@ -0,0 +1,19 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+import { WhatsAppTemplateLocationParamDetails } from "./WhatsAppTemplateLocationParamDetails";
+
+export const WhatsAppTemplateLocationParam: core.serialization.ObjectSchema<
+ serializers.WhatsAppTemplateLocationParam.Raw,
+ ElevenLabs.WhatsAppTemplateLocationParam
+> = core.serialization.object({
+ location: WhatsAppTemplateLocationParamDetails,
+});
+
+export declare namespace WhatsAppTemplateLocationParam {
+ export interface Raw {
+ location: WhatsAppTemplateLocationParamDetails.Raw;
+ }
+}
diff --git a/src/serialization/types/WhatsAppTemplateLocationParamDetails.ts b/src/serialization/types/WhatsAppTemplateLocationParamDetails.ts
new file mode 100644
index 00000000..52e30aa1
--- /dev/null
+++ b/src/serialization/types/WhatsAppTemplateLocationParamDetails.ts
@@ -0,0 +1,24 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const WhatsAppTemplateLocationParamDetails: core.serialization.ObjectSchema<
+ serializers.WhatsAppTemplateLocationParamDetails.Raw,
+ ElevenLabs.WhatsAppTemplateLocationParamDetails
+> = core.serialization.object({
+ latitude: core.serialization.string(),
+ longitude: core.serialization.string(),
+ name: core.serialization.string(),
+ address: core.serialization.string(),
+});
+
+export declare namespace WhatsAppTemplateLocationParamDetails {
+ export interface Raw {
+ latitude: string;
+ longitude: string;
+ name: string;
+ address: string;
+ }
+}
diff --git a/src/serialization/types/WhatsAppTemplateTextParam.ts b/src/serialization/types/WhatsAppTemplateTextParam.ts
new file mode 100644
index 00000000..2cce1891
--- /dev/null
+++ b/src/serialization/types/WhatsAppTemplateTextParam.ts
@@ -0,0 +1,22 @@
+// This file was auto-generated by Fern from our API Definition.
+
+import type * as ElevenLabs from "../../api/index";
+import * as core from "../../core";
+import type * as serializers from "../index";
+
+export const WhatsAppTemplateTextParam: core.serialization.ObjectSchema<
+ serializers.WhatsAppTemplateTextParam.Raw,
+ ElevenLabs.WhatsAppTemplateTextParam
+> = core.serialization.object({
+ parameterName: core.serialization.property("parameter_name", core.serialization.string().optional()),
+ type: core.serialization.stringLiteral("text").optional(),
+ text: core.serialization.string(),
+});
+
+export declare namespace WhatsAppTemplateTextParam {
+ export interface Raw {
+ parameter_name?: string | null;
+ type?: "text" | null;
+ text: string;
+ }
+}
diff --git a/src/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.ts b/src/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.ts
index 659b2454..e25c53a7 100644
--- a/src/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.ts
+++ b/src/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.ts
@@ -5,14 +5,14 @@ import * as core from "../../core";
import * as serializers from "../index";
import { ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel } from "./ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel";
import { ConversationHistoryTranscriptOtherToolsResultCommonModel } from "./ConversationHistoryTranscriptOtherToolsResultCommonModel";
-import { ConversationHistoryTranscriptSystemToolResultCommonModel } from "./ConversationHistoryTranscriptSystemToolResultCommonModel";
+import { ConversationHistoryTranscriptSystemToolResultCommonModelInput } from "./ConversationHistoryTranscriptSystemToolResultCommonModelInput";
export const WorkflowToolNestedToolsStepModelInputResultsItem: core.serialization.Schema<
serializers.WorkflowToolNestedToolsStepModelInputResultsItem.Raw,
ElevenLabs.WorkflowToolNestedToolsStepModelInputResultsItem
> = core.serialization.undiscriminatedUnion([
ConversationHistoryTranscriptOtherToolsResultCommonModel,
- ConversationHistoryTranscriptSystemToolResultCommonModel,
+ ConversationHistoryTranscriptSystemToolResultCommonModelInput,
ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel,
core.serialization.lazyObject(() => serializers.ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput),
]);
@@ -20,7 +20,7 @@ export const WorkflowToolNestedToolsStepModelInputResultsItem: core.serializatio
export declare namespace WorkflowToolNestedToolsStepModelInputResultsItem {
export type Raw =
| ConversationHistoryTranscriptOtherToolsResultCommonModel.Raw
- | ConversationHistoryTranscriptSystemToolResultCommonModel.Raw
+ | ConversationHistoryTranscriptSystemToolResultCommonModelInput.Raw
| ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.Raw
| serializers.ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.Raw;
}
diff --git a/src/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.ts b/src/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.ts
index 50ced198..3f640f9d 100644
--- a/src/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.ts
+++ b/src/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.ts
@@ -5,14 +5,14 @@ import * as core from "../../core";
import * as serializers from "../index";
import { ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel } from "./ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel";
import { ConversationHistoryTranscriptOtherToolsResultCommonModel } from "./ConversationHistoryTranscriptOtherToolsResultCommonModel";
-import { ConversationHistoryTranscriptSystemToolResultCommonModel } from "./ConversationHistoryTranscriptSystemToolResultCommonModel";
+import { ConversationHistoryTranscriptSystemToolResultCommonModelOutput } from "./ConversationHistoryTranscriptSystemToolResultCommonModelOutput";
export const WorkflowToolNestedToolsStepModelOutputResultsItem: core.serialization.Schema<
serializers.WorkflowToolNestedToolsStepModelOutputResultsItem.Raw,
ElevenLabs.WorkflowToolNestedToolsStepModelOutputResultsItem
> = core.serialization.undiscriminatedUnion([
ConversationHistoryTranscriptOtherToolsResultCommonModel,
- ConversationHistoryTranscriptSystemToolResultCommonModel,
+ ConversationHistoryTranscriptSystemToolResultCommonModelOutput,
ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel,
core.serialization.lazyObject(() => serializers.ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput),
]);
@@ -20,7 +20,7 @@ export const WorkflowToolNestedToolsStepModelOutputResultsItem: core.serializati
export declare namespace WorkflowToolNestedToolsStepModelOutputResultsItem {
export type Raw =
| ConversationHistoryTranscriptOtherToolsResultCommonModel.Raw
- | ConversationHistoryTranscriptSystemToolResultCommonModel.Raw
+ | ConversationHistoryTranscriptSystemToolResultCommonModelOutput.Raw
| ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.Raw
| serializers.ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.Raw;
}
diff --git a/src/serialization/types/WorkspaceResourceType.ts b/src/serialization/types/WorkspaceResourceType.ts
index 637ec7a2..f2a93741 100644
--- a/src/serialization/types/WorkspaceResourceType.ts
+++ b/src/serialization/types/WorkspaceResourceType.ts
@@ -38,6 +38,7 @@ export const WorkspaceResourceType: core.serialization.Schema<
"resource_locators",
"assets",
"content_generations",
+ "content_templates",
]);
export declare namespace WorkspaceResourceType {
@@ -71,5 +72,6 @@ export declare namespace WorkspaceResourceType {
| "convai_agent_drafts"
| "resource_locators"
| "assets"
- | "content_generations";
+ | "content_generations"
+ | "content_templates";
}
diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts
index adf20650..a5c008cf 100644
--- a/src/serialization/types/index.ts
+++ b/src/serialization/types/index.ts
@@ -48,6 +48,7 @@ export * from "./AgentWorkflowResponseModel";
export * from "./AgentWorkflowResponseModelNodesValue";
export * from "./AgentWorkspaceOverridesInput";
export * from "./AgentWorkspaceOverridesOutput";
+export * from "./Alignment";
export * from "./AlignmentGuardrail";
export * from "./AllowedOutputFormats";
export * from "./AllowlistItem";
@@ -123,10 +124,13 @@ export * from "./AstStringNodeOutput";
export * from "./AsyncConversationMetadata";
export * from "./AsyncConversationMetadataDeliveryStatus";
export * from "./AttachedTestModel";
+export * from "./AudioFormatEnum";
export * from "./AudioNativeCreateProjectResponseModel";
export * from "./AudioNativeEditContentResponseModel";
export * from "./AudioNativeProjectSettingsResponseModel";
export * from "./AudioNativeProjectSettingsResponseModelStatus";
+export * from "./AudioOutput";
+export * from "./AudioOutputMulti";
export * from "./AudioWithTimestampsAndVoiceSegmentsResponseModel";
export * from "./AudioWithTimestampsResponse";
export * from "./AuthConnectionLocator";
@@ -136,7 +140,6 @@ export * from "./BackupLlmDefault";
export * from "./BackupLlmDisabled";
export * from "./BackupLlmOverride";
export * from "./BadRequestErrorBody";
-export * from "./BanReasonType";
export * from "./BatchCallDetailedResponse";
export * from "./BatchCallRecipientStatus";
export * from "./BatchCallResponse";
@@ -195,6 +198,11 @@ export * from "./CharacterUsageResponse";
export * from "./ClientEvent";
export * from "./ClientToolConfigInput";
export * from "./ClientToolConfigOutput";
+export * from "./CloseConnection";
+export * from "./CloseContext";
+export * from "./CloseSocket";
+export * from "./CommittedTranscriptPayload";
+export * from "./CommittedTranscriptWithTimestampsPayload";
export * from "./Contributor";
export * from "./ConvAiDynamicVariable";
export * from "./ConvAiSecretLocator";
@@ -242,8 +250,10 @@ export * from "./ConversationHistoryTranscriptCommonModelOutputSourceMedium";
export * from "./ConversationHistoryTranscriptCommonModelOutputToolResultsItem";
export * from "./ConversationHistoryTranscriptOtherToolsResultCommonModel";
export * from "./ConversationHistoryTranscriptOtherToolsResultCommonModelType";
-export * from "./ConversationHistoryTranscriptSystemToolResultCommonModel";
-export * from "./ConversationHistoryTranscriptSystemToolResultCommonModelResult";
+export * from "./ConversationHistoryTranscriptSystemToolResultCommonModelInput";
+export * from "./ConversationHistoryTranscriptSystemToolResultCommonModelInputResult";
+export * from "./ConversationHistoryTranscriptSystemToolResultCommonModelOutput";
+export * from "./ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult";
export * from "./ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails";
export * from "./ConversationHistoryTranscriptToolCallClientDetails";
export * from "./ConversationHistoryTranscriptToolCallCommonModelInput";
@@ -336,7 +346,6 @@ export * from "./DubbingMediaReference";
export * from "./DubbingMetadataPageResponseModel";
export * from "./DubbingMetadataResponse";
export * from "./DubbingModel";
-export * from "./DubbingReleaseChannel";
export * from "./DubbingRenderResponseModel";
export * from "./DubbingResource";
export * from "./DubbingTranscript";
@@ -370,13 +379,17 @@ export * from "./ExtendedSubscriptionResponseModelPendingChange";
export * from "./FeatureStatusCommonModel";
export * from "./FeaturesUsageCommonModel";
export * from "./FeedbackItem";
+export * from "./FinalOutput";
+export * from "./FinalOutputMulti";
export * from "./FineTuningResponse";
export * from "./FineTuningResponseModelStateValue";
+export * from "./FlushContext";
export * from "./ForcedAlignmentCharacterResponseModel";
export * from "./ForcedAlignmentResponseModel";
export * from "./ForcedAlignmentWordResponseModel";
export * from "./Gender";
export * from "./GenerateVoiceRequest";
+export * from "./GenerationConfig";
export * from "./GetAgentEmbedResponseModel";
export * from "./GetAgentKnowledgebaseSizeResponseModel";
export * from "./GetAgentLinkResponseModel";
@@ -448,10 +461,15 @@ export * from "./HtmlExportOptions";
export * from "./HttpValidationError";
export * from "./ImageAvatar";
export * from "./InboundSipTrunkConfigRequestModel";
+export * from "./InitialiseContext";
+export * from "./InitializeConnection";
+export * from "./InitializeConnectionMulti";
+export * from "./InputAudioChunkPayload";
export * from "./IntegrationType";
export * from "./InvoiceResponse";
export * from "./InvoiceResponseModelPaymentIntentStatus";
export * from "./InvoiceResponseModelPaymentIntentStatussesItem";
+export * from "./KeepContextAlive";
export * from "./KnowledgeBaseDependentType";
export * from "./KnowledgeBaseDocumentChunkResponseModel";
export * from "./KnowledgeBaseDocumentMetadataResponseModel";
@@ -524,6 +542,7 @@ export * from "./MultichannelSpeechToTextResponseModel";
export * from "./MultipartMusicResponse";
export * from "./MusicPrompt";
export * from "./NonStreamingOutputFormats";
+export * from "./NormalizedAlignment";
export * from "./ObjectJsonSchemaPropertyInput";
export * from "./ObjectJsonSchemaPropertyInputPropertiesValue";
export * from "./ObjectJsonSchemaPropertyOutput";
@@ -537,6 +556,7 @@ export * from "./OutboundCallRecipient";
export * from "./OutboundCallRecipientResponseModel";
export * from "./OutboundSipTrunkConfigRequestModel";
export * from "./OutputFormat";
+export * from "./PartialTranscriptPayload";
export * from "./PatchWorkspaceWebhookResponseModel";
export * from "./PdfExportOptions";
export * from "./PendingCancellationResponseModel";
@@ -581,6 +601,7 @@ export * from "./ProjectExtendedResponseModelSourceType";
export * from "./ProjectExtendedResponseModelTargetAudience";
export * from "./ProjectExternalAudioResponseModel";
export * from "./ProjectImageResponseModel";
+export * from "./ProjectMutedTracksResponseModel";
export * from "./ProjectResponse";
export * from "./ProjectResponseModelAccessLevel";
export * from "./ProjectResponseModelAspectRatio";
@@ -612,6 +633,7 @@ export * from "./PromptAgentApiModelWorkflowOverrideOutputToolsItem";
export * from "./PromptAgentDbModel";
export * from "./PromptEvaluationCriteria";
export * from "./PronunciationDictionaryAliasRuleRequestModel";
+export * from "./PronunciationDictionaryLocator";
export * from "./PronunciationDictionaryLocatorResponseModel";
export * from "./PronunciationDictionaryPhonemeRuleRequestModel";
export * from "./PronunciationDictionaryRulesResponseModel";
@@ -636,6 +658,7 @@ export * from "./ReaderResourceResponseModel";
export * from "./ReaderResourceResponseModelResourceType";
export * from "./ReadLegalTerms";
export * from "./ReadMetadataChapterDbModel";
+export * from "./RealtimeVoiceSettings";
export * from "./RecordingResponse";
export * from "./ReferencedToolCommonModel";
export * from "./ReferencedToolCommonModelType";
@@ -662,6 +685,19 @@ export * from "./SafetyRule";
export * from "./SampleConfigDbModel";
export * from "./SampleConfigDbModelParentType";
export * from "./SaveVoicePreviewRequest";
+export * from "./ScribeAuthErrorPayload";
+export * from "./ScribeChunkSizeExceededErrorPayload";
+export * from "./ScribeErrorPayload";
+export * from "./ScribeInputErrorPayload";
+export * from "./ScribeInsufficientAudioActivityErrorPayload";
+export * from "./ScribeQueueOverflowErrorPayload";
+export * from "./ScribeQuotaExceededErrorPayload";
+export * from "./ScribeRateLimitedErrorPayload";
+export * from "./ScribeResourceExhaustedErrorPayload";
+export * from "./ScribeSessionTimeLimitExceededErrorPayload";
+export * from "./ScribeThrottledErrorPayload";
+export * from "./ScribeTranscriberErrorPayload";
+export * from "./ScribeUnacceptedTermsErrorPayload";
export * from "./SeatType";
export * from "./SecretDependencyType";
export * from "./SectionSource";
@@ -674,6 +710,11 @@ export * from "./SegmentSubtitleFrame";
export * from "./SegmentTranscriptionResponse";
export * from "./SegmentTranslationResponse";
export * from "./SegmentUpdateResponse";
+export * from "./SendText";
+export * from "./SendTextMulti";
+export * from "./SessionStartedPayload";
+export * from "./SessionStartedPayloadConfig";
+export * from "./SessionStartedPayloadConfigCommitStrategy";
export * from "./ShareOptionResponseModel";
export * from "./ShareOptionResponseModelType";
export * from "./SimilarVoice";
@@ -741,6 +782,8 @@ export * from "./TestRunStatus";
export * from "./TestsFeatureUsageCommonModel";
export * from "./TestToolResultModel";
export * from "./TextNormalisationType";
+export * from "./TextToSpeechApplyTextNormalizationEnum";
+export * from "./TextToSpeechOutputFormatEnum";
export * from "./TextToSpeechRequest";
export * from "./TextToSpeechStreamRequest";
export * from "./TextToSpeechStreamWithTimestampsRequest";
@@ -752,6 +795,7 @@ export * from "./Tool";
export * from "./ToolAnnotations";
export * from "./ToolCallSoundBehavior";
export * from "./ToolCallSoundType";
+export * from "./ToolErrorHandlingMode";
export * from "./ToolExecutionMode";
export * from "./ToolMockConfig";
export * from "./ToolRequestModel";
@@ -763,9 +807,14 @@ export * from "./ToolsResponseModel";
export * from "./ToolType";
export * from "./ToolTypeFilter";
export * from "./ToolUsageStatsResponseModel";
+export * from "./TranscriptionWord";
+export * from "./TranscriptionWordType";
+export * from "./TransferBranchInfoDefaultingToMain";
+export * from "./TransferBranchInfoTrafficSplit";
export * from "./TransferToAgentToolConfig";
export * from "./TransferToAgentToolResultErrorModel";
export * from "./TransferToAgentToolResultSuccessModel";
+export * from "./TransferToAgentToolResultSuccessModelBranchInfo";
export * from "./TransferToNumberResultErrorModel";
export * from "./TransferToNumberResultSipSuccessModel";
export * from "./TransferToNumberResultTwilioSuccessModel";
@@ -788,6 +837,7 @@ export * from "./TurnConfigOverrideConfig";
export * from "./TurnConfigWorkflowOverride";
export * from "./TurnEagerness";
export * from "./TurnMode";
+export * from "./TurnModel";
export * from "./TwilioEdgeLocation";
export * from "./TwilioOutboundCallResponse";
export * from "./TwilioRegionId";
@@ -801,6 +851,7 @@ export * from "./UnitTestToolCallEvaluationModelInput";
export * from "./UnitTestToolCallEvaluationModelOutput";
export * from "./UnitTestToolCallParameter";
export * from "./UnitTestToolCallParameterEval";
+export * from "./UnitTestWorkflowNodeTransitionEvaluationNodeId";
export * from "./UpdateAudioNativeProjectRequest";
export * from "./UpdateChapterRequest";
export * from "./UpdateProjectRequest";
@@ -853,9 +904,23 @@ export * from "./WebhookToolApiSchemaConfigOutputRequestHeadersValue";
export * from "./WebhookToolConfigInput";
export * from "./WebhookToolConfigOutput";
export * from "./WebhookUsageType";
+export * from "./WebsocketTtsClientMessageMulti";
+export * from "./WebsocketTtsServerMessageMulti";
export * from "./WhatsAppConversationInfo";
export * from "./WhatsAppConversationInfoDirection";
export * from "./WhatsAppOutboundCallResponse";
+export * from "./WhatsAppOutboundMessageResponse";
+export * from "./WhatsAppTemplateBodyComponentParams";
+export * from "./WhatsAppTemplateButtonComponentParams";
+export * from "./WhatsAppTemplateDocumentParam";
+export * from "./WhatsAppTemplateDocumentParamDetails";
+export * from "./WhatsAppTemplateHeaderComponentParams";
+export * from "./WhatsAppTemplateHeaderComponentParamsParametersItem";
+export * from "./WhatsAppTemplateImageParam";
+export * from "./WhatsAppTemplateImageParamDetails";
+export * from "./WhatsAppTemplateLocationParam";
+export * from "./WhatsAppTemplateLocationParamDetails";
+export * from "./WhatsAppTemplateTextParam";
export * from "./WidgetConfig";
export * from "./WidgetConfigInputAvatar";
export * from "./WidgetConfigOutputAvatar";
diff --git a/src/version.ts b/src/version.ts
index 902ffd26..3585a5fa 100644
--- a/src/version.ts
+++ b/src/version.ts
@@ -1 +1 @@
-export const SDK_VERSION = "v2.34.0";
+export const SDK_VERSION = "v2.35.0";
diff --git a/tests/wire/conversationalAi/agents.test.ts b/tests/wire/conversationalAi/agents.test.ts
index b805e7cf..3a2d8a5d 100644
--- a/tests/wire/conversationalAi/agents.test.ts
+++ b/tests/wire/conversationalAi/agents.test.ts
@@ -53,6 +53,7 @@ describe("AgentsClient", () => {
model_id: "eleven_turbo_v2",
voice_id: "cjVigY5qzO86Huf0OWal",
supported_voices: [{ label: "label", voice_id: "voice_id" }],
+ suggested_audio_tags: [{ tag: "tag" }],
agent_output_audio_format: "pcm_16000",
optimize_streaming_latency: 3,
stability: 0.5,
@@ -173,6 +174,7 @@ describe("AgentsClient", () => {
auth: {
enable_auth: true,
allowlist: [{ hostname: "https://example.com" }],
+ require_origin_header: true,
shareable_token: "1234567890",
},
call_limits: { agent_concurrency_limit: -1, daily_limit: 100000, bursting_enabled: true },
@@ -191,8 +193,6 @@ describe("AgentsClient", () => {
provider: "sip_trunk",
phone_number: "+1987654321",
label: "Sales Team",
- supports_inbound: true,
- supports_outbound: true,
phone_number_id: "phone_456",
assigned_agent: { agent_id: "F3Pbu5gP6NNKBscdCdwB", agent_name: "My Agent" },
provider_config: {
@@ -387,9 +387,11 @@ describe("AgentsClient", () => {
source: "response",
dynamic_variable: "user_name",
value_path: "user.name",
+ sanitize: false,
},
],
tool_call_sound_behavior: "auto",
+ tool_error_handling_mode: "auto",
dynamic_variables: {
dynamic_variable_placeholders: { user_name: "John Doe" },
},
@@ -474,9 +476,11 @@ describe("AgentsClient", () => {
source: "response",
dynamic_variable: "user_name",
value_path: "user.name",
+ sanitize: false,
},
],
tool_call_sound_behavior: "auto",
+ tool_error_handling_mode: "auto",
dynamic_variables: {
dynamic_variable_placeholders: { user_name: "John Doe" },
},
@@ -562,9 +566,11 @@ describe("AgentsClient", () => {
source: "response",
dynamic_variable: "user_name",
value_path: "user.name",
+ sanitize: false,
},
],
tool_call_sound_behavior: "auto",
+ tool_error_handling_mode: "auto",
dynamic_variables: {
dynamic_variable_placeholders: { user_name: "John Doe" },
},
@@ -672,6 +678,11 @@ describe("AgentsClient", () => {
voiceId: "voice_id",
},
],
+ suggestedAudioTags: [
+ {
+ tag: "tag",
+ },
+ ],
agentOutputAudioFormat: "pcm_16000",
optimizeStreamingLatency: 3,
stability: 0.5,
@@ -848,6 +859,7 @@ describe("AgentsClient", () => {
hostname: "https://example.com",
},
],
+ requireOriginHeader: true,
shareableToken: "1234567890",
},
callLimits: {
@@ -874,8 +886,6 @@ describe("AgentsClient", () => {
provider: "sip_trunk",
phoneNumber: "+1987654321",
label: "Sales Team",
- supportsInbound: true,
- supportsOutbound: true,
phoneNumberId: "phone_456",
assignedAgent: {
agentId: "F3Pbu5gP6NNKBscdCdwB",
@@ -1157,9 +1167,11 @@ describe("AgentsClient", () => {
source: "response",
dynamicVariable: "user_name",
valuePath: "user.name",
+ sanitize: false,
},
],
toolCallSoundBehavior: "auto",
+ toolErrorHandlingMode: "auto",
dynamicVariables: {
dynamicVariablePlaceholders: {
user_name: "John Doe",
@@ -1266,9 +1278,11 @@ describe("AgentsClient", () => {
source: "response",
dynamicVariable: "user_name",
valuePath: "user.name",
+ sanitize: false,
},
],
toolCallSoundBehavior: "auto",
+ toolErrorHandlingMode: "auto",
dynamicVariables: {
dynamicVariablePlaceholders: {
user_name: "John Doe",
@@ -1383,9 +1397,11 @@ describe("AgentsClient", () => {
source: "response",
dynamicVariable: "user_name",
valuePath: "user.name",
+ sanitize: false,
},
],
toolCallSoundBehavior: "auto",
+ toolErrorHandlingMode: "auto",
dynamicVariables: {
dynamicVariablePlaceholders: {
user_name: "John Doe",
@@ -1540,6 +1556,7 @@ describe("AgentsClient", () => {
model_id: "eleven_turbo_v2",
voice_id: "cjVigY5qzO86Huf0OWal",
supported_voices: [{ label: "label", voice_id: "voice_id" }],
+ suggested_audio_tags: [{ tag: "tag" }],
agent_output_audio_format: "pcm_16000",
optimize_streaming_latency: 3,
stability: 0.5,
@@ -1660,6 +1677,7 @@ describe("AgentsClient", () => {
auth: {
enable_auth: true,
allowlist: [{ hostname: "https://example.com" }],
+ require_origin_header: true,
shareable_token: "1234567890",
},
call_limits: { agent_concurrency_limit: -1, daily_limit: 100000, bursting_enabled: true },
@@ -1678,8 +1696,6 @@ describe("AgentsClient", () => {
provider: "sip_trunk",
phone_number: "+1987654321",
label: "Sales Team",
- supports_inbound: true,
- supports_outbound: true,
phone_number_id: "phone_456",
assigned_agent: { agent_id: "F3Pbu5gP6NNKBscdCdwB", agent_name: "My Agent" },
provider_config: {
@@ -1874,9 +1890,11 @@ describe("AgentsClient", () => {
source: "response",
dynamic_variable: "user_name",
value_path: "user.name",
+ sanitize: false,
},
],
tool_call_sound_behavior: "auto",
+ tool_error_handling_mode: "auto",
dynamic_variables: {
dynamic_variable_placeholders: { user_name: "John Doe" },
},
@@ -1961,9 +1979,11 @@ describe("AgentsClient", () => {
source: "response",
dynamic_variable: "user_name",
value_path: "user.name",
+ sanitize: false,
},
],
tool_call_sound_behavior: "auto",
+ tool_error_handling_mode: "auto",
dynamic_variables: {
dynamic_variable_placeholders: { user_name: "John Doe" },
},
@@ -2049,9 +2069,11 @@ describe("AgentsClient", () => {
source: "response",
dynamic_variable: "user_name",
value_path: "user.name",
+ sanitize: false,
},
],
tool_call_sound_behavior: "auto",
+ tool_error_handling_mode: "auto",
dynamic_variables: {
dynamic_variable_placeholders: { user_name: "John Doe" },
},
@@ -2160,6 +2182,11 @@ describe("AgentsClient", () => {
voiceId: "voice_id",
},
],
+ suggestedAudioTags: [
+ {
+ tag: "tag",
+ },
+ ],
agentOutputAudioFormat: "pcm_16000",
optimizeStreamingLatency: 3,
stability: 0.5,
@@ -2336,6 +2363,7 @@ describe("AgentsClient", () => {
hostname: "https://example.com",
},
],
+ requireOriginHeader: true,
shareableToken: "1234567890",
},
callLimits: {
@@ -2362,8 +2390,6 @@ describe("AgentsClient", () => {
provider: "sip_trunk",
phoneNumber: "+1987654321",
label: "Sales Team",
- supportsInbound: true,
- supportsOutbound: true,
phoneNumberId: "phone_456",
assignedAgent: {
agentId: "F3Pbu5gP6NNKBscdCdwB",
@@ -2645,9 +2671,11 @@ describe("AgentsClient", () => {
source: "response",
dynamicVariable: "user_name",
valuePath: "user.name",
+ sanitize: false,
},
],
toolCallSoundBehavior: "auto",
+ toolErrorHandlingMode: "auto",
dynamicVariables: {
dynamicVariablePlaceholders: {
user_name: "John Doe",
@@ -2754,9 +2782,11 @@ describe("AgentsClient", () => {
source: "response",
dynamicVariable: "user_name",
valuePath: "user.name",
+ sanitize: false,
},
],
toolCallSoundBehavior: "auto",
+ toolErrorHandlingMode: "auto",
dynamicVariables: {
dynamicVariablePlaceholders: {
user_name: "John Doe",
@@ -2871,9 +2901,11 @@ describe("AgentsClient", () => {
source: "response",
dynamicVariable: "user_name",
valuePath: "user.name",
+ sanitize: false,
},
],
toolCallSoundBehavior: "auto",
+ toolErrorHandlingMode: "auto",
dynamicVariables: {
dynamicVariablePlaceholders: {
user_name: "John Doe",
diff --git a/tests/wire/conversationalAi/mcpServers.test.ts b/tests/wire/conversationalAi/mcpServers.test.ts
index 2d1154a8..4754f1db 100644
--- a/tests/wire/conversationalAi/mcpServers.test.ts
+++ b/tests/wire/conversationalAi/mcpServers.test.ts
@@ -89,7 +89,14 @@ describe("McpServersClient", () => {
tool_config_overrides: [
{
tool_name: "tool_name",
- assignments: [{ source: "response", dynamic_variable: "user_name", value_path: "user.name" }],
+ assignments: [
+ {
+ source: "response",
+ dynamic_variable: "user_name",
+ value_path: "user.name",
+ sanitize: false,
+ },
+ ],
},
],
disable_compression: true,
@@ -160,6 +167,7 @@ describe("McpServersClient", () => {
source: "response",
dynamicVariable: "user_name",
valuePath: "user.name",
+ sanitize: false,
},
],
},
@@ -212,7 +220,14 @@ describe("McpServersClient", () => {
tool_config_overrides: [
{
tool_name: "tool_name",
- assignments: [{ source: "response", dynamic_variable: "user_name", value_path: "user.name" }],
+ assignments: [
+ {
+ source: "response",
+ dynamic_variable: "user_name",
+ value_path: "user.name",
+ sanitize: false,
+ },
+ ],
},
],
disable_compression: true,
@@ -277,6 +292,7 @@ describe("McpServersClient", () => {
source: "response",
dynamicVariable: "user_name",
valuePath: "user.name",
+ sanitize: false,
},
],
},
@@ -348,7 +364,14 @@ describe("McpServersClient", () => {
tool_config_overrides: [
{
tool_name: "tool_name",
- assignments: [{ source: "response", dynamic_variable: "user_name", value_path: "user.name" }],
+ assignments: [
+ {
+ source: "response",
+ dynamic_variable: "user_name",
+ value_path: "user.name",
+ sanitize: false,
+ },
+ ],
},
],
disable_compression: true,
@@ -414,6 +437,7 @@ describe("McpServersClient", () => {
source: "response",
dynamicVariable: "user_name",
valuePath: "user.name",
+ sanitize: false,
},
],
},
diff --git a/tests/wire/conversationalAi/mcpServers/approvalPolicy.test.ts b/tests/wire/conversationalAi/mcpServers/approvalPolicy.test.ts
index 423651f9..42ca216e 100644
--- a/tests/wire/conversationalAi/mcpServers/approvalPolicy.test.ts
+++ b/tests/wire/conversationalAi/mcpServers/approvalPolicy.test.ts
@@ -27,7 +27,14 @@ describe("ApprovalPolicyClient", () => {
tool_config_overrides: [
{
tool_name: "tool_name",
- assignments: [{ source: "response", dynamic_variable: "user_name", value_path: "user.name" }],
+ assignments: [
+ {
+ source: "response",
+ dynamic_variable: "user_name",
+ value_path: "user.name",
+ sanitize: false,
+ },
+ ],
},
],
disable_compression: true,
@@ -95,6 +102,7 @@ describe("ApprovalPolicyClient", () => {
source: "response",
dynamicVariable: "user_name",
valuePath: "user.name",
+ sanitize: false,
},
],
},
diff --git a/tests/wire/conversationalAi/mcpServers/toolApprovals.test.ts b/tests/wire/conversationalAi/mcpServers/toolApprovals.test.ts
index b23ae1e0..dd5345e5 100644
--- a/tests/wire/conversationalAi/mcpServers/toolApprovals.test.ts
+++ b/tests/wire/conversationalAi/mcpServers/toolApprovals.test.ts
@@ -27,7 +27,14 @@ describe("ToolApprovalsClient", () => {
tool_config_overrides: [
{
tool_name: "tool_name",
- assignments: [{ source: "response", dynamic_variable: "user_name", value_path: "user.name" }],
+ assignments: [
+ {
+ source: "response",
+ dynamic_variable: "user_name",
+ value_path: "user.name",
+ sanitize: false,
+ },
+ ],
},
],
disable_compression: true,
@@ -96,6 +103,7 @@ describe("ToolApprovalsClient", () => {
source: "response",
dynamicVariable: "user_name",
valuePath: "user.name",
+ sanitize: false,
},
],
},
@@ -148,7 +156,14 @@ describe("ToolApprovalsClient", () => {
tool_config_overrides: [
{
tool_name: "tool_name",
- assignments: [{ source: "response", dynamic_variable: "user_name", value_path: "user.name" }],
+ assignments: [
+ {
+ source: "response",
+ dynamic_variable: "user_name",
+ value_path: "user.name",
+ sanitize: false,
+ },
+ ],
},
],
disable_compression: true,
@@ -213,6 +228,7 @@ describe("ToolApprovalsClient", () => {
source: "response",
dynamicVariable: "user_name",
valuePath: "user.name",
+ sanitize: false,
},
],
},
diff --git a/tests/wire/conversationalAi/mcpServers/toolConfigs.test.ts b/tests/wire/conversationalAi/mcpServers/toolConfigs.test.ts
index b2003875..b25f8dc2 100644
--- a/tests/wire/conversationalAi/mcpServers/toolConfigs.test.ts
+++ b/tests/wire/conversationalAi/mcpServers/toolConfigs.test.ts
@@ -27,7 +27,14 @@ describe("ToolConfigsClient", () => {
tool_config_overrides: [
{
tool_name: "tool_name",
- assignments: [{ source: "response", dynamic_variable: "user_name", value_path: "user.name" }],
+ assignments: [
+ {
+ source: "response",
+ dynamic_variable: "user_name",
+ value_path: "user.name",
+ sanitize: false,
+ },
+ ],
},
],
disable_compression: true,
@@ -95,6 +102,7 @@ describe("ToolConfigsClient", () => {
source: "response",
dynamicVariable: "user_name",
valuePath: "user.name",
+ sanitize: false,
},
],
},
@@ -135,7 +143,9 @@ describe("ToolConfigsClient", () => {
tool_call_sound: "typing",
tool_call_sound_behavior: "auto",
execution_mode: "immediate",
- assignments: [{ source: "response", dynamic_variable: "user_name", value_path: "user.name" }],
+ assignments: [
+ { source: "response", dynamic_variable: "user_name", value_path: "user.name", sanitize: false },
+ ],
};
server
.mockEndpoint()
@@ -158,6 +168,7 @@ describe("ToolConfigsClient", () => {
source: "response",
dynamicVariable: "user_name",
valuePath: "user.name",
+ sanitize: false,
},
],
});
@@ -186,7 +197,14 @@ describe("ToolConfigsClient", () => {
tool_config_overrides: [
{
tool_name: "tool_name",
- assignments: [{ source: "response", dynamic_variable: "user_name", value_path: "user.name" }],
+ assignments: [
+ {
+ source: "response",
+ dynamic_variable: "user_name",
+ value_path: "user.name",
+ sanitize: false,
+ },
+ ],
},
],
disable_compression: true,
@@ -251,6 +269,7 @@ describe("ToolConfigsClient", () => {
source: "response",
dynamicVariable: "user_name",
valuePath: "user.name",
+ sanitize: false,
},
],
},
@@ -303,7 +322,14 @@ describe("ToolConfigsClient", () => {
tool_config_overrides: [
{
tool_name: "tool_name",
- assignments: [{ source: "response", dynamic_variable: "user_name", value_path: "user.name" }],
+ assignments: [
+ {
+ source: "response",
+ dynamic_variable: "user_name",
+ value_path: "user.name",
+ sanitize: false,
+ },
+ ],
},
],
disable_compression: true,
@@ -369,6 +395,7 @@ describe("ToolConfigsClient", () => {
source: "response",
dynamicVariable: "user_name",
valuePath: "user.name",
+ sanitize: false,
},
],
},
diff --git a/tests/wire/conversationalAi/phoneNumbers.test.ts b/tests/wire/conversationalAi/phoneNumbers.test.ts
index c4f35a8c..cbb763c4 100644
--- a/tests/wire/conversationalAi/phoneNumbers.test.ts
+++ b/tests/wire/conversationalAi/phoneNumbers.test.ts
@@ -13,8 +13,6 @@ describe("PhoneNumbersClient", () => {
provider: "twilio",
phone_number: "+1234567890",
label: "Customer Support",
- supports_inbound: true,
- supports_outbound: true,
phone_number_id: "phone_123",
assigned_agent: { agent_id: "F3Pbu5gP6NNKBscdCdwB", agent_name: "My Agent" },
},
@@ -33,8 +31,6 @@ describe("PhoneNumbersClient", () => {
provider: "twilio",
phoneNumber: "+1234567890",
label: "Customer Support",
- supportsInbound: true,
- supportsOutbound: true,
phoneNumberId: "phone_123",
assignedAgent: {
agentId: "F3Pbu5gP6NNKBscdCdwB",
@@ -84,8 +80,6 @@ describe("PhoneNumbersClient", () => {
provider: "twilio",
phone_number: "+1234567890",
label: "Customer Support",
- supports_inbound: true,
- supports_outbound: true,
phone_number_id: "phone_123",
assigned_agent: { agent_id: "F3Pbu5gP6NNKBscdCdwB", agent_name: "My Agent" },
};
@@ -102,8 +96,6 @@ describe("PhoneNumbersClient", () => {
provider: "twilio",
phoneNumber: "+1234567890",
label: "Customer Support",
- supportsInbound: true,
- supportsOutbound: true,
phoneNumberId: "phone_123",
assignedAgent: {
agentId: "F3Pbu5gP6NNKBscdCdwB",
@@ -139,8 +131,6 @@ describe("PhoneNumbersClient", () => {
provider: "twilio",
phone_number: "+1234567890",
label: "Customer Support",
- supports_inbound: true,
- supports_outbound: true,
phone_number_id: "phone_123",
assigned_agent: { agent_id: "F3Pbu5gP6NNKBscdCdwB", agent_name: "My Agent" },
};
@@ -158,8 +148,6 @@ describe("PhoneNumbersClient", () => {
provider: "twilio",
phoneNumber: "+1234567890",
label: "Customer Support",
- supportsInbound: true,
- supportsOutbound: true,
phoneNumberId: "phone_123",
assignedAgent: {
agentId: "F3Pbu5gP6NNKBscdCdwB",
diff --git a/tests/wire/conversationalAi/tests.test.ts b/tests/wire/conversationalAi/tests.test.ts
index 94d82648..d2e1aaab 100644
--- a/tests/wire/conversationalAi/tests.test.ts
+++ b/tests/wire/conversationalAi/tests.test.ts
@@ -100,6 +100,7 @@ describe("TestsClient", () => {
parameters: [{ eval: { type: "anything" }, path: "path" }],
referenced_tool: { id: "id", type: "system" },
verify_absence: true,
+ workflow_node_transition: { type: "node_id", agent_id: "agent_id", target_node_id: "target_node_id" },
},
check_any_tool_matches: true,
dynamic_variables: { key: "value" },
@@ -107,6 +108,7 @@ describe("TestsClient", () => {
from_conversation_metadata: {
conversation_id: "conversation_id",
agent_id: "agent_id",
+ branch_id: "branch_id",
workflow_node_id: "workflow_node_id",
original_agent_reply: [{ role: "user", time_in_call_secs: 1 }],
},
@@ -204,6 +206,11 @@ describe("TestsClient", () => {
type: "system",
},
verifyAbsence: true,
+ workflowNodeTransition: {
+ type: "node_id",
+ agentId: "agent_id",
+ targetNodeId: "target_node_id",
+ },
},
checkAnyToolMatches: true,
dynamicVariables: {
@@ -213,6 +220,7 @@ describe("TestsClient", () => {
fromConversationMetadata: {
conversationId: "conversation_id",
agentId: "agent_id",
+ branchId: "branch_id",
workflowNodeId: "workflow_node_id",
originalAgentReply: [
{
@@ -281,6 +289,7 @@ describe("TestsClient", () => {
parameters: [{ eval: { type: "anything" }, path: "path" }],
referenced_tool: { id: "id", type: "system" },
verify_absence: true,
+ workflow_node_transition: { type: "node_id", agent_id: "agent_id", target_node_id: "target_node_id" },
},
check_any_tool_matches: true,
dynamic_variables: { key: "value" },
@@ -288,6 +297,7 @@ describe("TestsClient", () => {
from_conversation_metadata: {
conversation_id: "conversation_id",
agent_id: "agent_id",
+ branch_id: "branch_id",
workflow_node_id: "workflow_node_id",
original_agent_reply: [{ role: "user", time_in_call_secs: 1 }],
},
@@ -407,6 +417,11 @@ describe("TestsClient", () => {
type: "system",
},
verifyAbsence: true,
+ workflowNodeTransition: {
+ type: "node_id",
+ agentId: "agent_id",
+ targetNodeId: "target_node_id",
+ },
},
checkAnyToolMatches: true,
dynamicVariables: {
@@ -416,6 +431,7 @@ describe("TestsClient", () => {
fromConversationMetadata: {
conversationId: "conversation_id",
agentId: "agent_id",
+ branchId: "branch_id",
workflowNodeId: "workflow_node_id",
originalAgentReply: [
{
diff --git a/tests/wire/conversationalAi/tools.test.ts b/tests/wire/conversationalAi/tools.test.ts
index fc72655e..8eb74fb4 100644
--- a/tests/wire/conversationalAi/tools.test.ts
+++ b/tests/wire/conversationalAi/tools.test.ts
@@ -16,7 +16,14 @@ describe("ToolsClient", () => {
type: "client",
name: "name",
description: "description",
- assignments: [{ source: "response", dynamic_variable: "user_name", value_path: "user.name" }],
+ assignments: [
+ {
+ source: "response",
+ dynamic_variable: "user_name",
+ value_path: "user.name",
+ sanitize: false,
+ },
+ ],
expects_response: false,
dynamic_variables: { dynamic_variable_placeholders: { user_name: "John Doe" } },
},
@@ -55,6 +62,7 @@ describe("ToolsClient", () => {
source: "response",
dynamicVariable: "user_name",
valuePath: "user.name",
+ sanitize: false,
},
],
expectsResponse: false,
@@ -95,9 +103,12 @@ describe("ToolsClient", () => {
response_timeout_secs: 1,
disable_interruptions: true,
force_pre_tool_speech: true,
- assignments: [{ source: "response", dynamic_variable: "user_name", value_path: "user.name" }],
+ assignments: [
+ { source: "response", dynamic_variable: "user_name", value_path: "user.name", sanitize: false },
+ ],
tool_call_sound: "typing",
tool_call_sound_behavior: "auto",
+ tool_error_handling_mode: "auto",
parameters: {
type: "object",
required: ["required"],
@@ -147,10 +158,12 @@ describe("ToolsClient", () => {
source: "response",
dynamicVariable: "user_name",
valuePath: "user.name",
+ sanitize: false,
},
],
toolCallSound: "typing",
toolCallSoundBehavior: "auto",
+ toolErrorHandlingMode: "auto",
parameters: {
type: "object",
required: ["required"],
@@ -196,9 +209,12 @@ describe("ToolsClient", () => {
response_timeout_secs: 1,
disable_interruptions: true,
force_pre_tool_speech: true,
- assignments: [{ source: "response", dynamic_variable: "user_name", value_path: "user.name" }],
+ assignments: [
+ { source: "response", dynamic_variable: "user_name", value_path: "user.name", sanitize: false },
+ ],
tool_call_sound: "typing",
tool_call_sound_behavior: "auto",
+ tool_error_handling_mode: "auto",
parameters: {
type: "object",
required: ["required"],
@@ -240,10 +256,12 @@ describe("ToolsClient", () => {
source: "response",
dynamicVariable: "user_name",
valuePath: "user.name",
+ sanitize: false,
},
],
toolCallSound: "typing",
toolCallSoundBehavior: "auto",
+ toolErrorHandlingMode: "auto",
parameters: {
type: "object",
required: ["required"],
@@ -310,9 +328,12 @@ describe("ToolsClient", () => {
response_timeout_secs: 1,
disable_interruptions: true,
force_pre_tool_speech: true,
- assignments: [{ source: "response", dynamic_variable: "user_name", value_path: "user.name" }],
+ assignments: [
+ { source: "response", dynamic_variable: "user_name", value_path: "user.name", sanitize: false },
+ ],
tool_call_sound: "typing",
tool_call_sound_behavior: "auto",
+ tool_error_handling_mode: "auto",
parameters: {
type: "object",
required: ["required"],
@@ -362,10 +383,12 @@ describe("ToolsClient", () => {
source: "response",
dynamicVariable: "user_name",
valuePath: "user.name",
+ sanitize: false,
},
],
toolCallSound: "typing",
toolCallSoundBehavior: "auto",
+ toolErrorHandlingMode: "auto",
parameters: {
type: "object",
required: ["required"],
diff --git a/tests/wire/conversationalAi/whatsapp.test.ts b/tests/wire/conversationalAi/whatsapp.test.ts
index 86e3b604..09338b58 100644
--- a/tests/wire/conversationalAi/whatsapp.test.ts
+++ b/tests/wire/conversationalAi/whatsapp.test.ts
@@ -39,4 +39,47 @@ describe("WhatsappClient", () => {
conversationId: "conversation_id",
});
});
+
+ test("outbound_message", async () => {
+ const server = mockServerPool.createServer();
+ const client = new ElevenLabsClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl });
+ const rawRequestBody = {
+ whatsapp_phone_number_id: "whatsapp_phone_number_id",
+ whatsapp_user_id: "whatsapp_user_id",
+ template_name: "template_name",
+ template_language_code: "template_language_code",
+ template_params: [{ type: "body", parameters: [{ text: "text" }] }],
+ agent_id: "agent_id",
+ };
+ const rawResponseBody = { conversation_id: "conversation_id" };
+ server
+ .mockEndpoint()
+ .post("/v1/convai/whatsapp/outbound-message")
+ .jsonBody(rawRequestBody)
+ .respondWith()
+ .statusCode(200)
+ .jsonBody(rawResponseBody)
+ .build();
+
+ const response = await client.conversationalAi.whatsapp.outboundMessage({
+ whatsappPhoneNumberId: "whatsapp_phone_number_id",
+ whatsappUserId: "whatsapp_user_id",
+ templateName: "template_name",
+ templateLanguageCode: "template_language_code",
+ templateParams: [
+ {
+ type: "body",
+ parameters: [
+ {
+ text: "text",
+ },
+ ],
+ },
+ ],
+ agentId: "agent_id",
+ });
+ expect(response).toEqual({
+ conversationId: "conversation_id",
+ });
+ });
});
diff --git a/tests/wire/main.test.ts b/tests/wire/main.test.ts
index 84a89475..cc5b4526 100644
--- a/tests/wire/main.test.ts
+++ b/tests/wire/main.test.ts
@@ -4,16 +4,6 @@ import { ElevenLabsClient } from "../../src/Client";
import { mockServerPool } from "../mock-server/MockServerPool";
describe("ElevenLabsClient", () => {
- test("postV1ConvaiWhatsappAccounts", async () => {
- const server = mockServerPool.createServer();
- const client = new ElevenLabsClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl });
-
- server.mockEndpoint().post("/v1/convai/whatsapp-accounts").respondWith().statusCode(200).build();
-
- const response = await client.postV1ConvaiWhatsappAccounts();
- expect(response).toEqual(undefined);
- });
-
test("deleteV1ConvaiAgentsAgentIdBranchesBranchId", async () => {
const server = mockServerPool.createServer();
const client = new ElevenLabsClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl });
diff --git a/tests/wire/studio/projects.test.ts b/tests/wire/studio/projects.test.ts
index 34e753ca..b1c094ca 100644
--- a/tests/wire/studio/projects.test.ts
+++ b/tests/wire/studio/projects.test.ts
@@ -258,6 +258,7 @@ describe("ProjectsClient", () => {
pending_block_ids: ["pending_block_ids"],
import_speech_progress: 1.1,
speech_imported: true,
+ dub_audio_progress: 1.1,
audio_track_ready: true,
current_snapshot_id: "current_snapshot_id",
track_id: "track_id",
@@ -701,6 +702,7 @@ describe("ProjectsClient", () => {
pendingBlockIds: ["pending_block_ids"],
importSpeechProgress: 1.1,
speechImported: true,
+ dubAudioProgress: 1.1,
audioTrackReady: true,
currentSnapshotId: "current_snapshot_id",
trackId: "track_id",
@@ -1175,4 +1177,23 @@ describe("ProjectsClient", () => {
status: "ok",
});
});
+
+ test("get_muted_tracks", async () => {
+ const server = mockServerPool.createServer();
+ const client = new ElevenLabsClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl });
+
+ const rawResponseBody = { chapter_ids: ["aw1NgEzBg83R7vgmiJt6"] };
+ server
+ .mockEndpoint()
+ .get("/v1/studio/projects/21m00Tcm4TlvDq8ikWAM/muted-tracks")
+ .respondWith()
+ .statusCode(200)
+ .jsonBody(rawResponseBody)
+ .build();
+
+ const response = await client.studio.projects.getMutedTracks("21m00Tcm4TlvDq8ikWAM");
+ expect(response).toEqual({
+ chapterIds: ["aw1NgEzBg83R7vgmiJt6"],
+ });
+ });
});