diff --git a/.fernignore b/.fernignore index 6efb410b..04ccd7d7 100644 --- a/.fernignore +++ b/.fernignore @@ -13,3 +13,4 @@ src/index.ts src/api/resources/conversationalAi/conversation tests/wire/conversationalAi/mcpServers/tools.test.ts +changelog.md diff --git a/changelog.md b/changelog.md new file mode 100644 index 00000000..4929159a --- /dev/null +++ b/changelog.md @@ -0,0 +1,4 @@ +## v2.31.1 - 2026-01-14 +* SDK regeneration +* Unable to analyze changes with AI, incrementing PATCH version. + diff --git a/package.json b/package.json index b4647fe3..bf76429f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elevenlabs/elevenlabs-js", - "version": "v2.31.0", + "version": "v2.31.1", "private": false, "repository": "github:elevenlabs/elevenlabs-js", "license": "MIT", diff --git a/src/BaseClient.ts b/src/BaseClient.ts index e98e1cca..ec4e1b2b 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.31.0", - "User-Agent": "@elevenlabs/elevenlabs-js/v2.31.0", + "X-Fern-SDK-Version": "v2.31.1", + "User-Agent": "@elevenlabs/elevenlabs-js/v2.31.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "xi-api-key": options?.apiKey, diff --git a/src/api/resources/voices/client/Client.ts b/src/api/resources/voices/client/Client.ts index 3f5812ec..5b0c0912 100644 --- a/src/api/resources/voices/client/Client.ts +++ b/src/api/resources/voices/client/Client.ts @@ -4,6 +4,7 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClie import { type NormalizedClientOptions, normalizeClientOptions } from "../../../../BaseClient"; import * as core from "../../../../core"; import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers"; +import { toJson } from "../../../../core/json"; import * as environments from "../../../../environments"; import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError"; import * as errors from "../../../../errors/index"; @@ -503,7 +504,15 @@ export class VoicesClient { } if (request.labels != null) { - _request.append("labels", request.labels); + _request.append( + "labels", + (() => { + const mapped = serializers.VoicesUpdateRequestLabels.jsonOrThrow(request.labels, { + unrecognizedObjectKeys: "strip", + }); + return typeof mapped === "string" ? mapped : toJson(mapped); + })(), + ); } const _maybeEncodedRequest = await _request.getRequest(); diff --git a/src/api/resources/voices/client/requests/BodyEditVoiceV1VoicesVoiceIdEditPost.ts b/src/api/resources/voices/client/requests/BodyEditVoiceV1VoicesVoiceIdEditPost.ts index bd06c5e1..d83172de 100644 --- a/src/api/resources/voices/client/requests/BodyEditVoiceV1VoicesVoiceIdEditPost.ts +++ b/src/api/resources/voices/client/requests/BodyEditVoiceV1VoicesVoiceIdEditPost.ts @@ -1,6 +1,7 @@ // This file was auto-generated by Fern from our API Definition. import type * as core from "../../../../../core"; +import type * as ElevenLabs from "../../../../index"; /** * @example @@ -17,6 +18,6 @@ export interface BodyEditVoiceV1VoicesVoiceIdEditPost { removeBackgroundNoise?: boolean; /** A description of the voice. */ description?: string; - /** Serialized labels dictionary for the voice. */ - labels?: string; + /** Labels for the voice. Keys can be language, accent, gender, or age. */ + labels?: ElevenLabs.VoicesUpdateRequestLabels; } diff --git a/src/api/resources/voices/resources/index.ts b/src/api/resources/voices/resources/index.ts index 5553af87..d755968e 100644 --- a/src/api/resources/voices/resources/index.ts +++ b/src/api/resources/voices/resources/index.ts @@ -1,5 +1,6 @@ export * as ivc from "./ivc"; export * from "./ivc/client/requests"; +export * from "./ivc/types"; export * as pvc from "./pvc"; export * from "./pvc/client/requests"; export * as samples from "./samples"; diff --git a/src/api/resources/voices/resources/ivc/client/Client.ts b/src/api/resources/voices/resources/ivc/client/Client.ts index 6bf2eab7..d89cffc3 100644 --- a/src/api/resources/voices/resources/ivc/client/Client.ts +++ b/src/api/resources/voices/resources/ivc/client/Client.ts @@ -4,6 +4,7 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../Ba import { type NormalizedClientOptions, normalizeClientOptions } from "../../../../../../BaseClient"; import * as core from "../../../../../../core"; import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers"; +import { toJson } from "../../../../../../core/json"; import * as environments from "../../../../../../environments"; import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError"; import * as errors from "../../../../../../errors/index"; @@ -64,7 +65,15 @@ export class IvcClient { } if (request.labels != null) { - _request.append("labels", request.labels); + _request.append( + "labels", + (() => { + const mapped = serializers.voices.IvcCreateRequestLabels.jsonOrThrow(request.labels, { + unrecognizedObjectKeys: "strip", + }); + return typeof mapped === "string" ? mapped : toJson(mapped); + })(), + ); } const _maybeEncodedRequest = await _request.getRequest(); diff --git a/src/api/resources/voices/resources/ivc/client/requests/BodyAddVoiceV1VoicesAddPost.ts b/src/api/resources/voices/resources/ivc/client/requests/BodyAddVoiceV1VoicesAddPost.ts index 9d312b2b..d1cd5f24 100644 --- a/src/api/resources/voices/resources/ivc/client/requests/BodyAddVoiceV1VoicesAddPost.ts +++ b/src/api/resources/voices/resources/ivc/client/requests/BodyAddVoiceV1VoicesAddPost.ts @@ -1,6 +1,7 @@ // This file was auto-generated by Fern from our API Definition. import type * as core from "../../../../../../../core"; +import type * as ElevenLabs from "../../../../../../index"; /** * @example @@ -18,6 +19,6 @@ export interface BodyAddVoiceV1VoicesAddPost { removeBackgroundNoise?: boolean; /** A description of the voice. */ description?: string; - /** Serialized labels dictionary for the voice. */ - labels?: string; + /** Labels for the voice. Keys can be language, accent, gender, or age. */ + labels?: ElevenLabs.voices.IvcCreateRequestLabels; } diff --git a/src/api/resources/voices/resources/ivc/index.ts b/src/api/resources/voices/resources/ivc/index.ts index 5ec76921..d2ec2302 100644 --- a/src/api/resources/voices/resources/ivc/index.ts +++ b/src/api/resources/voices/resources/ivc/index.ts @@ -1 +1,2 @@ export * from "./client"; +export * from "./types"; diff --git a/src/api/resources/voices/resources/ivc/types/IvcCreateRequestLabels.ts b/src/api/resources/voices/resources/ivc/types/IvcCreateRequestLabels.ts new file mode 100644 index 00000000..e7de6838 --- /dev/null +++ b/src/api/resources/voices/resources/ivc/types/IvcCreateRequestLabels.ts @@ -0,0 +1,6 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * Labels for the voice. Keys can be language, accent, gender, or age. + */ +export type IvcCreateRequestLabels = Record | string; diff --git a/src/api/resources/voices/resources/ivc/types/index.ts b/src/api/resources/voices/resources/ivc/types/index.ts new file mode 100644 index 00000000..7046a22a --- /dev/null +++ b/src/api/resources/voices/resources/ivc/types/index.ts @@ -0,0 +1 @@ +export * from "./IvcCreateRequestLabels"; diff --git a/src/api/resources/voices/resources/pvc/client/requests/BodyEditPvcVoiceV1VoicesPvcVoiceIdPost.ts b/src/api/resources/voices/resources/pvc/client/requests/BodyEditPvcVoiceV1VoicesPvcVoiceIdPost.ts index 696b5bab..b547521c 100644 --- a/src/api/resources/voices/resources/pvc/client/requests/BodyEditPvcVoiceV1VoicesPvcVoiceIdPost.ts +++ b/src/api/resources/voices/resources/pvc/client/requests/BodyEditPvcVoiceV1VoicesPvcVoiceIdPost.ts @@ -11,6 +11,6 @@ export interface BodyEditPvcVoiceV1VoicesPvcVoiceIdPost { language?: string; /** Description to use for the created voice. */ description?: string; - /** Serialized labels dictionary for the voice. */ + /** Labels for the voice. Keys can be language, accent, gender, or age. */ labels?: Record; } diff --git a/src/api/resources/voices/resources/pvc/client/requests/CreatePvcVoiceRequest.ts b/src/api/resources/voices/resources/pvc/client/requests/CreatePvcVoiceRequest.ts index cbca154c..1b8292c3 100644 --- a/src/api/resources/voices/resources/pvc/client/requests/CreatePvcVoiceRequest.ts +++ b/src/api/resources/voices/resources/pvc/client/requests/CreatePvcVoiceRequest.ts @@ -14,6 +14,6 @@ export interface CreatePvcVoiceRequest { language: string; /** Description to use for the created voice. */ description?: string; - /** Serialized labels dictionary for the voice. */ + /** Labels for the voice. Keys can be language, accent, gender, or age. */ labels?: Record; } diff --git a/src/api/resources/voices/types/VoicesUpdateRequestLabels.ts b/src/api/resources/voices/types/VoicesUpdateRequestLabels.ts new file mode 100644 index 00000000..fbaac177 --- /dev/null +++ b/src/api/resources/voices/types/VoicesUpdateRequestLabels.ts @@ -0,0 +1,6 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * Labels for the voice. Keys can be language, accent, gender, or age. + */ +export type VoicesUpdateRequestLabels = Record | string; diff --git a/src/api/resources/voices/types/index.ts b/src/api/resources/voices/types/index.ts index d268c810..fbf0a76c 100644 --- a/src/api/resources/voices/types/index.ts +++ b/src/api/resources/voices/types/index.ts @@ -1 +1,2 @@ export * from "./VoicesGetSharedRequestCategory"; +export * from "./VoicesUpdateRequestLabels"; diff --git a/src/api/types/DubbingMetadataResponse.ts b/src/api/types/DubbingMetadataResponse.ts index 0157bf3d..d00ce4c0 100644 --- a/src/api/types/DubbingMetadataResponse.ts +++ b/src/api/types/DubbingMetadataResponse.ts @@ -7,16 +7,18 @@ export interface DubbingMetadataResponse { dubbingId: string; /** The name of the dubbing project. */ name: string; - /** The status of the dubbing project. Either 'dubbed', 'dubbing', 'failed', or 'cloning'. */ + /** The state this dub is in. */ status: string; - /** The target languages of the dubbing project. */ + /** Once dubbing has completed, the ISO-639-1 code of the original media's source language. */ + sourceLanguage?: string; + /** The ISO-639-1 code of the languages this media has been dubbed into. */ targetLanguages: string[]; /** Whether this dubbing project is editable in Dubbing Studio. */ editable?: boolean; /** Timestamp this dub was created. */ createdAt: Date; - /** The media metadata of the dubbing project. */ + /** Metadata, such as the length in seconds and content type, of the dubbed content. */ mediaMetadata?: ElevenLabs.DubbingMediaMetadata; - /** Optional error message if the dubbing project failed. */ + /** Error message indicate, if this dub has failed, what happened. */ error?: string; } diff --git a/src/api/types/InvoiceResponse.ts b/src/api/types/InvoiceResponse.ts index 48a98999..23d5d238 100644 --- a/src/api/types/InvoiceResponse.ts +++ b/src/api/types/InvoiceResponse.ts @@ -17,6 +17,8 @@ export interface InvoiceResponse { discounts: ElevenLabs.DiscountResponseModel[]; /** The Unix timestamp of the next payment attempt. */ nextPaymentAttemptUnix: number; - /** The status of this invoice's payment intent. None when there is no payment intent. */ + /** Deprecated. Use [payment_intent_statusses] instead. The status of this invoice's first payment intent. None when there is no payment intent. */ paymentIntentStatus?: ElevenLabs.InvoiceResponseModelPaymentIntentStatus; + /** The statuses of this invoice's payment intents. Empty list when there are no payment intents. */ + paymentIntentStatusses: ElevenLabs.InvoiceResponseModelPaymentIntentStatussesItem[]; } diff --git a/src/api/types/InvoiceResponseModelPaymentIntentStatussesItem.ts b/src/api/types/InvoiceResponseModelPaymentIntentStatussesItem.ts new file mode 100644 index 00000000..496164f1 --- /dev/null +++ b/src/api/types/InvoiceResponseModelPaymentIntentStatussesItem.ts @@ -0,0 +1,13 @@ +// This file was auto-generated by Fern from our API Definition. + +export const InvoiceResponseModelPaymentIntentStatussesItem = { + Canceled: "canceled", + Processing: "processing", + RequiresAction: "requires_action", + RequiresCapture: "requires_capture", + RequiresConfirmation: "requires_confirmation", + RequiresPaymentMethod: "requires_payment_method", + Succeeded: "succeeded", +} as const; +export type InvoiceResponseModelPaymentIntentStatussesItem = + (typeof InvoiceResponseModelPaymentIntentStatussesItem)[keyof typeof InvoiceResponseModelPaymentIntentStatussesItem]; diff --git a/src/api/types/SpellingPatience.ts b/src/api/types/SpellingPatience.ts new file mode 100644 index 00000000..1d8bd1b1 --- /dev/null +++ b/src/api/types/SpellingPatience.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Controls if the agent should be more patient when user is spelling numbers and named entities. */ +export const SpellingPatience = { + Auto: "auto", + Off: "off", +} as const; +export type SpellingPatience = (typeof SpellingPatience)[keyof typeof SpellingPatience]; diff --git a/src/api/types/TurnConfig.ts b/src/api/types/TurnConfig.ts index 0af287fc..077228ee 100644 --- a/src/api/types/TurnConfig.ts +++ b/src/api/types/TurnConfig.ts @@ -13,4 +13,6 @@ export interface TurnConfig { softTimeoutConfig?: ElevenLabs.SoftTimeoutConfig; /** Controls how eager the agent is to respond. Low = less eager (waits longer), Standard = default eagerness, High = more eager (responds sooner) */ turnEagerness?: ElevenLabs.TurnEagerness; + /** Controls if the agent should be more patient when user is spelling numbers and named entities. Auto = model based, Off = never wait extra */ + spellingPatience?: ElevenLabs.SpellingPatience; } diff --git a/src/api/types/TurnConfigWorkflowOverride.ts b/src/api/types/TurnConfigWorkflowOverride.ts index d7caadb1..153e9814 100644 --- a/src/api/types/TurnConfigWorkflowOverride.ts +++ b/src/api/types/TurnConfigWorkflowOverride.ts @@ -13,4 +13,6 @@ export interface TurnConfigWorkflowOverride { softTimeoutConfig?: ElevenLabs.SoftTimeoutConfigWorkflowOverride; /** Controls how eager the agent is to respond. Low = less eager (waits longer), Standard = default eagerness, High = more eager (responds sooner) */ turnEagerness?: ElevenLabs.TurnEagerness; + /** Controls if the agent should be more patient when user is spelling numbers and named entities. Auto = model based, Off = never wait extra */ + spellingPatience?: ElevenLabs.SpellingPatience; } diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 1a1a9c89..90f20fa2 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -431,6 +431,7 @@ export * from "./InboundSipTrunkConfigRequestModel"; export * from "./IntegrationType"; export * from "./InvoiceResponse"; export * from "./InvoiceResponseModelPaymentIntentStatus"; +export * from "./InvoiceResponseModelPaymentIntentStatussesItem"; export * from "./KnowledgeBaseDependentType"; export * from "./KnowledgeBaseDocumentChunkResponseModel"; export * from "./KnowledgeBaseDocumentMetadataResponseModel"; @@ -676,6 +677,7 @@ export * from "./SpeechToTextChunkResponseModel"; export * from "./SpeechToTextWebhookResponseModel"; export * from "./SpeechToTextWordResponseModel"; export * from "./SpeechToTextWordResponseModelType"; +export * from "./SpellingPatience"; export * from "./SrtExportOptions"; export * from "./StartPvcVoiceTrainingResponseModel"; export * from "./StartSpeakerSeparationResponseModel"; diff --git a/src/serialization/resources/voices/resources/index.ts b/src/serialization/resources/voices/resources/index.ts index 2aa0b079..a8451a62 100644 --- a/src/serialization/resources/voices/resources/index.ts +++ b/src/serialization/resources/voices/resources/index.ts @@ -1,2 +1,4 @@ +export * as ivc from "./ivc"; +export * from "./ivc/types"; export * as pvc from "./pvc"; export * from "./pvc/client/requests"; diff --git a/src/serialization/resources/voices/resources/ivc/index.ts b/src/serialization/resources/voices/resources/ivc/index.ts new file mode 100644 index 00000000..eea524d6 --- /dev/null +++ b/src/serialization/resources/voices/resources/ivc/index.ts @@ -0,0 +1 @@ +export * from "./types"; diff --git a/src/serialization/resources/voices/resources/ivc/types/IvcCreateRequestLabels.ts b/src/serialization/resources/voices/resources/ivc/types/IvcCreateRequestLabels.ts new file mode 100644 index 00000000..1607ade1 --- /dev/null +++ b/src/serialization/resources/voices/resources/ivc/types/IvcCreateRequestLabels.ts @@ -0,0 +1,17 @@ +// 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 IvcCreateRequestLabels: core.serialization.Schema< + serializers.voices.IvcCreateRequestLabels.Raw, + ElevenLabs.voices.IvcCreateRequestLabels +> = core.serialization.undiscriminatedUnion([ + core.serialization.record(core.serialization.string(), core.serialization.string()), + core.serialization.string(), +]); + +export declare namespace IvcCreateRequestLabels { + export type Raw = Record | string; +} diff --git a/src/serialization/resources/voices/resources/ivc/types/index.ts b/src/serialization/resources/voices/resources/ivc/types/index.ts new file mode 100644 index 00000000..7046a22a --- /dev/null +++ b/src/serialization/resources/voices/resources/ivc/types/index.ts @@ -0,0 +1 @@ +export * from "./IvcCreateRequestLabels"; diff --git a/src/serialization/resources/voices/types/VoicesUpdateRequestLabels.ts b/src/serialization/resources/voices/types/VoicesUpdateRequestLabels.ts new file mode 100644 index 00000000..b0931359 --- /dev/null +++ b/src/serialization/resources/voices/types/VoicesUpdateRequestLabels.ts @@ -0,0 +1,17 @@ +// 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 VoicesUpdateRequestLabels: core.serialization.Schema< + serializers.VoicesUpdateRequestLabels.Raw, + ElevenLabs.VoicesUpdateRequestLabels +> = core.serialization.undiscriminatedUnion([ + core.serialization.record(core.serialization.string(), core.serialization.string()), + core.serialization.string(), +]); + +export declare namespace VoicesUpdateRequestLabels { + export type Raw = Record | string; +} diff --git a/src/serialization/resources/voices/types/index.ts b/src/serialization/resources/voices/types/index.ts index d268c810..fbf0a76c 100644 --- a/src/serialization/resources/voices/types/index.ts +++ b/src/serialization/resources/voices/types/index.ts @@ -1 +1,2 @@ export * from "./VoicesGetSharedRequestCategory"; +export * from "./VoicesUpdateRequestLabels"; diff --git a/src/serialization/types/DubbingMetadataResponse.ts b/src/serialization/types/DubbingMetadataResponse.ts index 2c0e8a9f..d23130bf 100644 --- a/src/serialization/types/DubbingMetadataResponse.ts +++ b/src/serialization/types/DubbingMetadataResponse.ts @@ -12,6 +12,7 @@ export const DubbingMetadataResponse: core.serialization.ObjectSchema< dubbingId: core.serialization.property("dubbing_id", core.serialization.string()), name: core.serialization.string(), status: core.serialization.string(), + sourceLanguage: core.serialization.property("source_language", core.serialization.string().optional()), targetLanguages: core.serialization.property( "target_languages", core.serialization.list(core.serialization.string()), @@ -27,6 +28,7 @@ export declare namespace DubbingMetadataResponse { dubbing_id: string; name: string; status: string; + source_language?: string | null; target_languages: string[]; editable?: boolean | null; created_at: string; diff --git a/src/serialization/types/InvoiceResponse.ts b/src/serialization/types/InvoiceResponse.ts index dfa23745..4a5b53ec 100644 --- a/src/serialization/types/InvoiceResponse.ts +++ b/src/serialization/types/InvoiceResponse.ts @@ -5,6 +5,7 @@ import * as core from "../../core"; import type * as serializers from "../index"; import { DiscountResponseModel } from "./DiscountResponseModel"; import { InvoiceResponseModelPaymentIntentStatus } from "./InvoiceResponseModelPaymentIntentStatus"; +import { InvoiceResponseModelPaymentIntentStatussesItem } from "./InvoiceResponseModelPaymentIntentStatussesItem"; export const InvoiceResponse: core.serialization.ObjectSchema< serializers.InvoiceResponse.Raw, @@ -21,6 +22,10 @@ export const InvoiceResponse: core.serialization.ObjectSchema< "payment_intent_status", InvoiceResponseModelPaymentIntentStatus.optional(), ), + paymentIntentStatusses: core.serialization.property( + "payment_intent_statusses", + core.serialization.list(InvoiceResponseModelPaymentIntentStatussesItem), + ), }); export declare namespace InvoiceResponse { @@ -33,5 +38,6 @@ export declare namespace InvoiceResponse { discounts: DiscountResponseModel.Raw[]; next_payment_attempt_unix: number; payment_intent_status?: InvoiceResponseModelPaymentIntentStatus.Raw | null; + payment_intent_statusses: InvoiceResponseModelPaymentIntentStatussesItem.Raw[]; } } diff --git a/src/serialization/types/InvoiceResponseModelPaymentIntentStatussesItem.ts b/src/serialization/types/InvoiceResponseModelPaymentIntentStatussesItem.ts new file mode 100644 index 00000000..a8c13cd1 --- /dev/null +++ b/src/serialization/types/InvoiceResponseModelPaymentIntentStatussesItem.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"; + +export const InvoiceResponseModelPaymentIntentStatussesItem: core.serialization.Schema< + serializers.InvoiceResponseModelPaymentIntentStatussesItem.Raw, + ElevenLabs.InvoiceResponseModelPaymentIntentStatussesItem +> = core.serialization.enum_([ + "canceled", + "processing", + "requires_action", + "requires_capture", + "requires_confirmation", + "requires_payment_method", + "succeeded", +]); + +export declare namespace InvoiceResponseModelPaymentIntentStatussesItem { + export type Raw = + | "canceled" + | "processing" + | "requires_action" + | "requires_capture" + | "requires_confirmation" + | "requires_payment_method" + | "succeeded"; +} diff --git a/src/serialization/types/SpellingPatience.ts b/src/serialization/types/SpellingPatience.ts new file mode 100644 index 00000000..437c1250 --- /dev/null +++ b/src/serialization/types/SpellingPatience.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 SpellingPatience: core.serialization.Schema< + serializers.SpellingPatience.Raw, + ElevenLabs.SpellingPatience +> = core.serialization.enum_(["auto", "off"]); + +export declare namespace SpellingPatience { + export type Raw = "auto" | "off"; +} diff --git a/src/serialization/types/TurnConfig.ts b/src/serialization/types/TurnConfig.ts index fb5e5f96..79c696f5 100644 --- a/src/serialization/types/TurnConfig.ts +++ b/src/serialization/types/TurnConfig.ts @@ -4,6 +4,7 @@ import type * as ElevenLabs from "../../api/index"; import * as core from "../../core"; import type * as serializers from "../index"; import { SoftTimeoutConfig } from "./SoftTimeoutConfig"; +import { SpellingPatience } from "./SpellingPatience"; import { TurnEagerness } from "./TurnEagerness"; export const TurnConfig: core.serialization.ObjectSchema = @@ -16,6 +17,7 @@ export const TurnConfig: core.serialization.ObjectSchema { silence_end_call_timeout: -1, soft_timeout_config: { timeout_seconds: -1, message: "Hhmmmm...yeah give me a second..." }, turn_eagerness: "normal", + spelling_patience: "auto", }, tts: { model_id: "eleven_turbo_v2", @@ -350,6 +351,7 @@ describe("AgentsClient", () => { use_llm_generated_message: false, }, turn_eagerness: "normal", + spelling_patience: "auto", }, tts: { model_id: "eleven_turbo_v2", @@ -435,6 +437,7 @@ describe("AgentsClient", () => { use_llm_generated_message: false, }, turn_eagerness: "normal", + spelling_patience: "auto", }, tts: { model_id: "eleven_turbo_v2", @@ -521,6 +524,7 @@ describe("AgentsClient", () => { use_llm_generated_message: false, }, turn_eagerness: "normal", + spelling_patience: "auto", }, tts: { model_id: "eleven_turbo_v2", @@ -659,6 +663,7 @@ describe("AgentsClient", () => { message: "Hhmmmm...yeah give me a second...", }, turnEagerness: "normal", + spellingPatience: "auto", }, tts: { modelId: "eleven_turbo_v2", @@ -1100,6 +1105,7 @@ describe("AgentsClient", () => { useLlmGeneratedMessage: false, }, turnEagerness: "normal", + spellingPatience: "auto", }, tts: { modelId: "eleven_turbo_v2", @@ -1207,6 +1213,7 @@ describe("AgentsClient", () => { useLlmGeneratedMessage: false, }, turnEagerness: "normal", + spellingPatience: "auto", }, tts: { modelId: "eleven_turbo_v2", @@ -1322,6 +1329,7 @@ describe("AgentsClient", () => { useLlmGeneratedMessage: false, }, turnEagerness: "normal", + spellingPatience: "auto", }, tts: { modelId: "eleven_turbo_v2", @@ -1520,6 +1528,7 @@ describe("AgentsClient", () => { silence_end_call_timeout: -1, soft_timeout_config: { timeout_seconds: -1, message: "Hhmmmm...yeah give me a second..." }, turn_eagerness: "normal", + spelling_patience: "auto", }, tts: { model_id: "eleven_turbo_v2", @@ -1824,6 +1833,7 @@ describe("AgentsClient", () => { use_llm_generated_message: false, }, turn_eagerness: "normal", + spelling_patience: "auto", }, tts: { model_id: "eleven_turbo_v2", @@ -1909,6 +1919,7 @@ describe("AgentsClient", () => { use_llm_generated_message: false, }, turn_eagerness: "normal", + spelling_patience: "auto", }, tts: { model_id: "eleven_turbo_v2", @@ -1995,6 +2006,7 @@ describe("AgentsClient", () => { use_llm_generated_message: false, }, turn_eagerness: "normal", + spelling_patience: "auto", }, tts: { model_id: "eleven_turbo_v2", @@ -2134,6 +2146,7 @@ describe("AgentsClient", () => { message: "Hhmmmm...yeah give me a second...", }, turnEagerness: "normal", + spellingPatience: "auto", }, tts: { modelId: "eleven_turbo_v2", @@ -2575,6 +2588,7 @@ describe("AgentsClient", () => { useLlmGeneratedMessage: false, }, turnEagerness: "normal", + spellingPatience: "auto", }, tts: { modelId: "eleven_turbo_v2", @@ -2682,6 +2696,7 @@ describe("AgentsClient", () => { useLlmGeneratedMessage: false, }, turnEagerness: "normal", + spellingPatience: "auto", }, tts: { modelId: "eleven_turbo_v2", @@ -2797,6 +2812,7 @@ describe("AgentsClient", () => { useLlmGeneratedMessage: false, }, turnEagerness: "normal", + spellingPatience: "auto", }, tts: { modelId: "eleven_turbo_v2", diff --git a/tests/wire/dubbing.test.ts b/tests/wire/dubbing.test.ts index a02b5dec..95d939d0 100644 --- a/tests/wire/dubbing.test.ts +++ b/tests/wire/dubbing.test.ts @@ -14,6 +14,7 @@ describe("DubbingClient", () => { dubbing_id: "21m00Tcm4TlvDq8ikWAM", name: "My Dubbing Project", status: "dubbed", + source_language: "en", target_languages: ["es", "fr", "de"], editable: true, created_at: "2025-07-15T14:49:41Z", @@ -40,6 +41,7 @@ describe("DubbingClient", () => { dubbingId: "21m00Tcm4TlvDq8ikWAM", name: "My Dubbing Project", status: "dubbed", + sourceLanguage: "en", targetLanguages: ["es", "fr", "de"], editable: true, createdAt: new Date("2025-07-15T14:49:41.000Z"), @@ -63,6 +65,7 @@ describe("DubbingClient", () => { dubbing_id: "21m00Tcm4TlvDq8ikWAM", name: "My Dubbing Project", status: "dubbed", + source_language: "en", target_languages: ["es", "fr", "de"], editable: true, created_at: "2025-07-15T14:49:41Z", @@ -82,6 +85,7 @@ describe("DubbingClient", () => { dubbingId: "21m00Tcm4TlvDq8ikWAM", name: "My Dubbing Project", status: "dubbed", + sourceLanguage: "en", targetLanguages: ["es", "fr", "de"], editable: true, createdAt: new Date("2025-07-15T14:49:41.000Z"), diff --git a/tests/wire/user/subscription.test.ts b/tests/wire/user/subscription.test.ts index a17ebf90..82319f8a 100644 --- a/tests/wire/user/subscription.test.ts +++ b/tests/wire/user/subscription.test.ts @@ -38,6 +38,7 @@ describe("SubscriptionClient", () => { discounts: [{ discount_percent_off: 20 }], next_payment_attempt_unix: 1738356858, payment_intent_status: "processing", + payment_intent_statusses: ["processing", "succeeded"], }, open_invoices: [ { @@ -49,6 +50,7 @@ describe("SubscriptionClient", () => { discounts: [{ discount_percent_off: 20 }], next_payment_attempt_unix: 1738356858, payment_intent_status: "processing", + payment_intent_statusses: ["processing", "succeeded"], }, ], has_open_invoices: true, @@ -102,6 +104,7 @@ describe("SubscriptionClient", () => { ], nextPaymentAttemptUnix: 1738356858, paymentIntentStatus: "processing", + paymentIntentStatusses: ["processing", "succeeded"], }, openInvoices: [ { @@ -117,6 +120,7 @@ describe("SubscriptionClient", () => { ], nextPaymentAttemptUnix: 1738356858, paymentIntentStatus: "processing", + paymentIntentStatusses: ["processing", "succeeded"], }, ], hasOpenInvoices: true,