diff --git a/.fern/metadata.json b/.fern/metadata.json index 2428298e1..791951afc 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -36,10 +36,10 @@ } } }, - "originGitCommit": "a9da16461f2ee5270f12dc14f50e1a3d59ae6de6", + "originGitCommit": "a182fd22d5bb73d798b9267a8a143349d67781bc", "originGitCommitIsDirty": false, "invokedBy": "ci", - "requestedVersion": "2.65.0", + "requestedVersion": "2.66.0", "ciProvider": "github", - "sdkVersion": "2.65.0" + "sdkVersion": "2.66.0" } diff --git a/.fern/replay.lock b/.fern/replay.lock index 2aa1d9d9e..f52731c6f 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -102,14 +102,20 @@ generations: cli_version: unknown generator_versions: fernapi/fern-typescript-sdk: 3.88.2 -current_generation: 14ba8d4baf59746611b8cfe5d01ce5279f0193be + - commit_sha: c744c348596fcadb616440b590702df352f7b9ec + tree_hash: 60520ece245f8ae0f8679a1dabec70b91f44e542 + timestamp: 2026-09-02T11:28:42.635Z + cli_version: unknown + generator_versions: + fernapi/fern-typescript-sdk: 3.88.2 +current_generation: c744c348596fcadb616440b590702df352f7b9ec patches: - id: patch-f50f1558 content_hash: sha256:5a09c3db02b795ab544221e13bf2681e7f9bb43c07e8cd96ac063a405dc3a2c6 original_commit: f50f1558f741e331dd3949ded57771c012ef27ab original_message: Add missing methods and test (#399) original_author: Paul Asjes - base_generation: 14ba8d4baf59746611b8cfe5d01ce5279f0193be + base_generation: c744c348596fcadb616440b590702df352f7b9ec files: - tests/unit/wrapper/music.test.ts patch_content: | diff --git a/package.json b/package.json index 207f93745..c9bfa15ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elevenlabs/elevenlabs-js", - "version": "2.65.0", + "version": "2.66.0", "private": false, "repository": { "type": "git", diff --git a/reference.md b/reference.md index 2974ceb9f..5faca5eb3 100644 --- a/reference.md +++ b/reference.md @@ -4289,7 +4289,7 @@ Transcribe an audio or video file. If webhook is set to true, the request will b await client.speechToText.convert({ token: "token", enableLogging: true, - modelId: "scribe_v2" + modelId: "model_id" }); ``` @@ -6768,6 +6768,7 @@ await client.conversationalAi.agents.list({ archived: true, showOnlyOwnedAgents: true, createdByUserId: "created_by_user_id", + tags: ["tags"], sortDirection: "asc", sortBy: "name", cursor: "cursor" @@ -7809,7 +7810,7 @@ await client.conversationalAi.triageTickets.createManual("agent_id", { -
client.conversationalAi.triageTickets.listAssignableUsers(agent_id) -> ElevenLabs.AssignableUserResponseModel[] +
client.conversationalAi.triageTickets.listForWorkspace({ ...params }) -> ElevenLabs.GetAgentConversationTicketsPageResponseModel
@@ -7821,7 +7822,7 @@ await client.conversationalAi.triageTickets.createManual("agent_id", {
-All non-service-account workspace members, each flagged with whether they currently have at least viewer access to the agent. Members without access are included (not filtered out) so the UI can offer them as an assignee and prompt to grant access first. +List conversation triage tickets across every agent in the workspace, ordered by most recently created first. Use this to build a workspace-wide view (for example, tickets assigned to the caller); for a single agent's tickets, use the per-agent endpoint instead. Tickets for agents the caller cannot access are omitted.
@@ -7836,7 +7837,12 @@ All non-service-account workspace members, each flagged with whether they curren
```typescript -await client.conversationalAi.triageTickets.listAssignableUsers("agent_id"); +await client.conversationalAi.triageTickets.listForWorkspace({ + pageSize: 1, + status: "open", + assigneeUserId: "assignee_user_id", + cursor: "cursor" +}); ```
@@ -7852,7 +7858,7 @@ await client.conversationalAi.triageTickets.listAssignableUsers("agent_id");
-**agent_id:** `string` +**request:** `ElevenLabs.conversationalAi.TriageTicketsListForWorkspaceRequest`
@@ -7872,7 +7878,7 @@ await client.conversationalAi.triageTickets.listAssignableUsers("agent_id");
-
client.conversationalAi.triageTickets.get(agentqa_ticket_id) -> ElevenLabs.AgentConversationTicketResponseModel +
client.conversationalAi.triageTickets.create({ ...params }) -> ElevenLabs.AgentConversationTicketResponseModel
@@ -7884,7 +7890,7 @@ await client.conversationalAi.triageTickets.listAssignableUsers("agent_id");
-Get an agent conversation ticket by ID. +Raise a ticket about an agent's performance on a conversation, for triage with Architect. Provide an overall comment and/or turn-level comments describing what went wrong.
@@ -7899,7 +7905,9 @@ Get an agent conversation ticket by ID.
```typescript -await client.conversationalAi.triageTickets.get("agentqa_ticket_id"); +await client.conversationalAi.triageTickets.create({ + conversationId: "conversation_id" +}); ```
@@ -7915,7 +7923,7 @@ await client.conversationalAi.triageTickets.get("agentqa_ticket_id");
-**agentqa_ticket_id:** `string` +**request:** `ElevenLabs.conversationalAi.CreateAgentConversationTicketRequestModel`
@@ -7935,7 +7943,7 @@ await client.conversationalAi.triageTickets.get("agentqa_ticket_id");
-
client.conversationalAi.triageTickets.delete(agentqa_ticket_id) -> void +
client.conversationalAi.triageTickets.listAssignableUsers(agent_id) -> ElevenLabs.AssignableUserResponseModel[]
@@ -7947,7 +7955,7 @@ await client.conversationalAi.triageTickets.get("agentqa_ticket_id");
-Delete an agent conversation ticket. Restricted to the ticket creator or a workspace admin. +All non-service-account workspace members, each flagged with whether they currently have at least viewer access to the agent. Members without access are included (not filtered out) so the UI can offer them as an assignee and prompt to grant access first.
@@ -7962,7 +7970,7 @@ Delete an agent conversation ticket. Restricted to the ticket creator or a works
```typescript -await client.conversationalAi.triageTickets.delete("agentqa_ticket_id"); +await client.conversationalAi.triageTickets.listAssignableUsers("agent_id"); ```
@@ -7978,7 +7986,7 @@ await client.conversationalAi.triageTickets.delete("agentqa_ticket_id");
-**agentqa_ticket_id:** `string` +**agent_id:** `string`
@@ -7998,7 +8006,7 @@ await client.conversationalAi.triageTickets.delete("agentqa_ticket_id");
-
client.conversationalAi.triageTickets.update(agentqa_ticket_id, { ...params }) -> ElevenLabs.AgentConversationTicketResponseModel +
client.conversationalAi.triageTickets.get(agentqa_ticket_id) -> ElevenLabs.AgentConversationTicketResponseModel
@@ -8010,7 +8018,7 @@ await client.conversationalAi.triageTickets.delete("agentqa_ticket_id");
-Update a ticket's comment, status, and/or assignee. Requires editor access to the ticket's agent. +Get an agent conversation ticket by ID.
@@ -8025,7 +8033,7 @@ Update a ticket's comment, status, and/or assignee. Requires editor access to th
```typescript -await client.conversationalAi.triageTickets.update("agentqa_ticket_id"); +await client.conversationalAi.triageTickets.get("agentqa_ticket_id"); ```
@@ -8049,7 +8057,62 @@ await client.conversationalAi.triageTickets.update("agentqa_ticket_id");
-**request:** `ElevenLabs.conversationalAi.PatchAgentConversationTicketRequestModel` +**requestOptions:** `TriageTicketsClient.RequestOptions` + +
+
+ +
+ + + + +
+ +
client.conversationalAi.triageTickets.delete(agentqa_ticket_id) -> void +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Delete an agent conversation ticket. Restricted to the ticket creator or a workspace admin. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.conversationalAi.triageTickets.delete("agentqa_ticket_id"); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**agentqa_ticket_id:** `string`
@@ -8069,7 +8132,7 @@ await client.conversationalAi.triageTickets.update("agentqa_ticket_id");
-
client.conversationalAi.triageTickets.create({ ...params }) -> ElevenLabs.AgentConversationTicketResponseModel +
client.conversationalAi.triageTickets.update(agentqa_ticket_id, { ...params }) -> ElevenLabs.AgentConversationTicketResponseModel
@@ -8081,7 +8144,7 @@ await client.conversationalAi.triageTickets.update("agentqa_ticket_id");
-Raise a ticket about an agent's performance on a conversation, for triage with Architect. Provide an overall comment and/or turn-level comments describing what went wrong. +Update a ticket's comment, status, and/or assignee. Requires editor access to the ticket's agent.
@@ -8096,9 +8159,7 @@ Raise a ticket about an agent's performance on a conversation, for triage with A
```typescript -await client.conversationalAi.triageTickets.create({ - conversationId: "conversation_id" -}); +await client.conversationalAi.triageTickets.update("agentqa_ticket_id"); ```
@@ -8114,7 +8175,15 @@ await client.conversationalAi.triageTickets.create({
-**request:** `ElevenLabs.conversationalAi.CreateAgentConversationTicketRequestModel` +**agentqa_ticket_id:** `string` + +
+
+ +
+
+ +**request:** `ElevenLabs.conversationalAi.PatchAgentConversationTicketRequestModel`
@@ -8758,7 +8827,7 @@ await client.conversationalAi.llmUsage.calculate({
## ConversationalAi Llm -
client.conversationalAi.llm.list() -> ElevenLabs.LlmListResponseModelInput +
client.conversationalAi.llm.list() -> ElevenLabs.LlmListResponseModel
@@ -17336,7 +17405,7 @@ await client.conversationalAi.tools.executions.get("tool_id", {
-List the workspace's dubbing projects (cursor-paginated). +List the dubbing projects in your workspace that you can access, newest first, cursor-paginated. Listed projects carry no `language_ids`; fetch a project, or list its language targets, to see them.
@@ -17401,7 +17470,11 @@ await client.dubbing.project.list({
-Create a dubbing project from an uploaded file or a source URL. +Create a dubbing project from an uploaded file (`file`) or a source URL (`source_url`). + +Returns as soon as the project record exists, before the source has been fetched: the project starts `queued` and reaches `ready` once its source has been transcribed. Creating a project does not dub anything — add a language target to it for each language you want, or pass `target_language` to queue the first one here. + +Preparation can take minutes on a long source, so we recommend passing `webhook_ids` to be notified when the project turns `ready` or `failed`, rather than polling for it.
@@ -17468,7 +17541,7 @@ await client.dubbing.project.create({
-Full project detail, including its language target ids. +Full project detail, including the IDs of every language target under it. To follow a project to `ready`, we recommend a `webhook_ids` subscription rather than polling this endpoint.
@@ -17531,7 +17604,7 @@ await client.dubbing.project.get("proj_1601kwkyxp0hfzvtmyxwqxx6mcy3");
-Delete a project and its language targets. +Delete a project, every language target under it, and their stored media and outputs. This cannot be undone, and a dub already running is still billed.
@@ -18267,7 +18340,7 @@ await client.dubbing.transcripts.get("dubbing_id", "source", "srt");
-List a project's language targets (cursor-paginated). +List a project's language targets, cursor-paginated, each with signed output URLs once it has produced an output.
@@ -18340,7 +18413,11 @@ await client.dubbing.project.language.list("proj_1601kwkyxp0hfzvtmyxwqxx6mcy3",
-Queue a language target for a project (starts once the project is ready). +Add a language to dub a project into, and queue the dub. + +This is the call that produces dubbed audio, and it is billed per generation. The target is created `queued` and starts as soon as the project is `ready`, so it can be added at any point after the project is created. It inherits the project's dubbing model and cannot pick another. + +A project created with `webhook_ids` sends a `dubbing_language_completed` event carrying the output download URLs, so we recommend subscribing rather than polling this target to completion.
@@ -18413,7 +18490,7 @@ await client.dubbing.project.language.create("proj_1601kwkyxp0hfzvtmyxwqxx6mcy3"
-Full language-target detail. +Full language-target detail. Once the target reports `completed`, `outputs` carries the signed download URLs. To learn when that happens, we recommend the project's `webhook_ids` subscription rather than polling this endpoint; fetch here when a delivered URL has expired, or to reconcile after an edit.
@@ -18484,7 +18561,7 @@ await client.dubbing.project.language.get("proj_1601kwkyxp0hfzvtmyxwqxx6mcy3", "
-Delete a language target. +Delete a language target and its outputs, leaving the project and its other languages intact. This cannot be undone, and a dub already running is still billed.
@@ -18556,7 +18633,7 @@ await client.dubbing.project.language.delete("proj_1601kwkyxp0hfzvtmyxwqxx6mcy3"
-The project's source transcript, as editable segments. +The project's source transcript, as editable segments. Available once the project is `ready`.
@@ -18619,7 +18696,7 @@ await client.dubbing.project.transcript.get("proj_1601kwkyxp0hfzvtmyxwqxx6mcy3")
-Enterprise only. Remove a source segment from the transcript. +Enterprise only. Remove a source segment from the transcript so it is no longer dubbed. Bumps the project's `revision`, discards the affected translations in every language target, and marks any target that had already completed `stale`. No audio changes until you regenerate a target.
@@ -18690,7 +18767,7 @@ await client.dubbing.project.transcript.deleteSegment("proj_1601kwkyxp0hfzvtmyxw
-Enterprise only. Edit a source segment's text, speaker, or timing. +Enterprise only. Edit a source segment's text, speaker, or timing. Omitted fields are left unchanged. Bumps the project's `revision`, discards the affected translations in every language target, and marks any target that had already completed `stale`. No audio changes until you regenerate a target.
@@ -18771,7 +18848,7 @@ await client.dubbing.project.transcript.updateSegment("proj_1601kwkyxp0hfzvtmyxw
-Enterprise only. Edit several source segments' text, speaker, or timing in one atomic request. +Enterprise only. Edit several source segments' text, speaker, or timing in one atomic request: every edit applies or none does. Bumps the project's `revision`, discards the affected translations in every language target, and marks any target that had already completed `stale`. No audio changes until you regenerate a target.
@@ -18851,7 +18928,7 @@ await client.dubbing.project.transcript.updateSegments("proj_1601kwkyxp0hfzvtmyx
-Enterprise only. Add a new source segment to the transcript. +Enterprise only. Add a new source segment to the transcript. Its span must lie within the source media, last between 0.1 and 25 seconds, and not overlap another segment by the same speaker. Bumps the project's `revision`, discards the affected translations in every language target, and marks any target that had already completed `stale`. No audio changes until you regenerate a target.
@@ -18928,7 +19005,7 @@ await client.dubbing.project.transcript.createSegment("proj_1601kwkyxp0hfzvtmyxw
-A language target's transcript: source segments with their translations. +A language target's transcript: source segments with their translations. Available once the target has produced an output. Returns a conflict while the target is still on its first dub, since it has no translations to return yet.
@@ -18999,7 +19076,7 @@ await client.dubbing.project.language.transcript.get("proj_1601kwkyxp0hfzvtmyxwq
-Enterprise only. Edit a segment's translation for a language target. +Enterprise only. Edit a segment's translation for a language target. Omitted fields are left unchanged; an explicit null clears the field. Bumps the target's `revision` and marks it `stale` if it had already completed. The source transcript and the project's other languages are untouched, and no audio changes until you regenerate the target.
@@ -19088,7 +19165,7 @@ await client.dubbing.project.language.transcript.updateSegment("proj_1601kwkyxp0
-Enterprise only. Edit several segments' translations for a language target in one atomic request. +Enterprise only. Edit several segments' translations for a language target in one atomic request: every edit applies or none does. Bumps the target's `revision` and marks it `stale` if it had already completed. The source transcript and the project's other languages are untouched, and no audio changes until you regenerate the target.
@@ -19176,7 +19253,7 @@ await client.dubbing.project.language.transcript.updateSegments("proj_1601kwkyxp
-Enterprise only. Re-dub a target from its edited transcript, re-synthesizing only the edited regions (charged like a generation). Conflicts when the target has no edits to apply -- nothing is dispatched and nothing is charged. +Enterprise only. Re-dub a target from its edited transcript, re-synthesizing only the edited regions (charged like a generation, less the free-regeneration allowance). Accepted asynchronously: the target returns to `processing` and sends a `dubbing_language_completed` event to the project's `webhook_ids` when the re-dub lands, carrying the new output URLs. Returns a conflict when the target has no edits to apply — nothing is dispatched and nothing is charged.
diff --git a/src/BaseClient.ts b/src/BaseClient.ts index 5d5e98230..e22bcaa97 100644 --- a/src/BaseClient.ts +++ b/src/BaseClient.ts @@ -55,8 +55,8 @@ export function normalizeClientOptions> { - const { pageSize, search, archived, showOnlyOwnedAgents, createdByUserId, sortDirection, sortBy, cursor } = - request; + const { + pageSize, + search, + archived, + showOnlyOwnedAgents, + createdByUserId, + tags, + sortDirection, + sortBy, + cursor, + } = request; const _queryParams: Record = { page_size: pageSize, search, archived, show_only_owned_agents: showOnlyOwnedAgents, created_by_user_id: createdByUserId, + tags, sort_direction: sortDirection != null ? serializers.SortDirection.jsonOrThrow(sortDirection, { unrecognizedObjectKeys: "strip" }) diff --git a/src/api/resources/conversationalAi/resources/agents/client/requests/AgentsListRequest.ts b/src/api/resources/conversationalAi/resources/agents/client/requests/AgentsListRequest.ts index 6dc279d90..9927cc424 100644 --- a/src/api/resources/conversationalAi/resources/agents/client/requests/AgentsListRequest.ts +++ b/src/api/resources/conversationalAi/resources/agents/client/requests/AgentsListRequest.ts @@ -10,6 +10,7 @@ import type * as ElevenLabs from "../../../../../../index"; * archived: true, * showOnlyOwnedAgents: true, * createdByUserId: "created_by_user_id", + * tags: ["tags"], * sortDirection: "asc", * sortBy: "name", * cursor: "cursor" @@ -26,6 +27,8 @@ export interface AgentsListRequest { showOnlyOwnedAgents?: boolean; /** Filter agents by creator user ID. When set, only agents created by this user are returned. Takes precedence over show_only_owned_agents. Use '@me' to refer to the authenticated user. */ createdByUserId?: string; + /** Filter agents by tag. Repeat the parameter to match any of several tags. */ + tags?: string | string[]; /** The direction to sort the results */ sortDirection?: ElevenLabs.SortDirection; /** The field to sort the results by */ diff --git a/src/api/resources/conversationalAi/resources/llm/client/Client.ts b/src/api/resources/conversationalAi/resources/llm/client/Client.ts index c300e02d6..78b261c50 100644 --- a/src/api/resources/conversationalAi/resources/llm/client/Client.ts +++ b/src/api/resources/conversationalAi/resources/llm/client/Client.ts @@ -35,15 +35,13 @@ export class LlmClient { * @example * await client.conversationalAi.llm.list() */ - public list( - requestOptions?: LlmClient.RequestOptions, - ): core.HttpResponsePromise { + public list(requestOptions?: LlmClient.RequestOptions): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise(this.__list(requestOptions)); } private async __list( requestOptions?: LlmClient.RequestOptions, - ): Promise> { + ): Promise> { const _headers: core.Fetcher.Args["headers"] = mergeHeaders( this._options?.headers, mergeOnlyDefinedHeaders({ @@ -69,7 +67,7 @@ export class LlmClient { }); if (_response.ok) { return { - data: serializers.LlmListResponseModelInput.parseOrThrow(_response.body, { + data: serializers.LlmListResponseModel.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, diff --git a/src/api/resources/conversationalAi/resources/triageTickets/client/Client.ts b/src/api/resources/conversationalAi/resources/triageTickets/client/Client.ts index b8ec4134d..e325d882a 100644 --- a/src/api/resources/conversationalAi/resources/triageTickets/client/Client.ts +++ b/src/api/resources/conversationalAi/resources/triageTickets/client/Client.ts @@ -241,6 +241,185 @@ export class TriageTicketsClient { ); } + /** + * List conversation triage tickets across every agent in the workspace, ordered by most recently created first. Use this to build a workspace-wide view (for example, tickets assigned to the caller); for a single agent's tickets, use the per-agent endpoint instead. Tickets for agents the caller cannot access are omitted. + * + * @param {ElevenLabs.conversationalAi.TriageTicketsListForWorkspaceRequest} request + * @param {TriageTicketsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link ElevenLabs.UnprocessableEntityError} + * @throws {@link errors.ElevenLabsError} + * @throws {@link errors.ElevenLabsTimeoutError} + * + * @example + * await client.conversationalAi.triageTickets.listForWorkspace({ + * pageSize: 1, + * status: "open", + * assigneeUserId: "assignee_user_id", + * cursor: "cursor" + * }) + */ + public listForWorkspace( + request: ElevenLabs.conversationalAi.TriageTicketsListForWorkspaceRequest = {}, + requestOptions?: TriageTicketsClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__listForWorkspace(request, requestOptions)); + } + + private async __listForWorkspace( + request: ElevenLabs.conversationalAi.TriageTicketsListForWorkspaceRequest = {}, + requestOptions?: TriageTicketsClient.RequestOptions, + ): Promise> { + const { pageSize, status, assigneeUserId, cursor } = request; + const _queryParams: Record = { + page_size: pageSize, + status: + status != null + ? serializers.AgentConversationTicketStatus.jsonOrThrow(status, { unrecognizedObjectKeys: "strip" }) + : undefined, + assignee_user_id: assigneeUserId, + cursor, + }; + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + this._options?.headers, + mergeOnlyDefinedHeaders({ + "xi-api-key": requestOptions?.apiKey ?? this._options?.apiKey ?? process.env?.ELEVENLABS_API_KEY, + }), + 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/triage-tickets", + ), + method: "GET", + headers: _headers, + queryString: core.url + .queryBuilder() + .addMany(_queryParams) + .mergeAdditional(requestOptions?.queryParams) + .build(), + 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.GetAgentConversationTicketsPageResponseModel.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(_response.error.body, _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/convai/triage-tickets"); + } + + /** + * Raise a ticket about an agent's performance on a conversation, for triage with Architect. Provide an overall comment and/or turn-level comments describing what went wrong. + * + * @param {ElevenLabs.conversationalAi.CreateAgentConversationTicketRequestModel} request + * @param {TriageTicketsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link ElevenLabs.UnprocessableEntityError} + * @throws {@link errors.ElevenLabsError} + * @throws {@link errors.ElevenLabsTimeoutError} + * + * @example + * await client.conversationalAi.triageTickets.create({ + * conversationId: "conversation_id" + * }) + */ + public create( + request: ElevenLabs.conversationalAi.CreateAgentConversationTicketRequestModel, + requestOptions?: TriageTicketsClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); + } + + private async __create( + request: ElevenLabs.conversationalAi.CreateAgentConversationTicketRequestModel, + requestOptions?: TriageTicketsClient.RequestOptions, + ): Promise> { + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + this._options?.headers, + mergeOnlyDefinedHeaders({ + "xi-api-key": requestOptions?.apiKey ?? this._options?.apiKey ?? process.env?.ELEVENLABS_API_KEY, + }), + 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/triage-tickets", + ), + method: "POST", + headers: _headers, + contentType: "application/json", + queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), + requestType: "json", + body: mergeAdditionalBodyParameters( + serializers.conversationalAi.CreateAgentConversationTicketRequestModel.jsonOrThrow(request, { + unrecognizedObjectKeys: "strip", + }), + requestOptions?.additionalBodyParameters, + ), + 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.AgentConversationTicketResponseModel.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(_response.error.body, _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/triage-tickets"); + } + /** * All non-service-account workspace members, each flagged with whether they currently have at least viewer access to the agent. Members without access are included (not filtered out) so the UI can offer them as an assignee and prompt to grant access first. * @@ -567,91 +746,6 @@ export class TriageTicketsClient { ); } - /** - * Raise a ticket about an agent's performance on a conversation, for triage with Architect. Provide an overall comment and/or turn-level comments describing what went wrong. - * - * @param {ElevenLabs.conversationalAi.CreateAgentConversationTicketRequestModel} request - * @param {TriageTicketsClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link ElevenLabs.UnprocessableEntityError} - * @throws {@link errors.ElevenLabsError} - * @throws {@link errors.ElevenLabsTimeoutError} - * - * @example - * await client.conversationalAi.triageTickets.create({ - * conversationId: "conversation_id" - * }) - */ - public create( - request: ElevenLabs.conversationalAi.CreateAgentConversationTicketRequestModel, - requestOptions?: TriageTicketsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); - } - - private async __create( - request: ElevenLabs.conversationalAi.CreateAgentConversationTicketRequestModel, - requestOptions?: TriageTicketsClient.RequestOptions, - ): Promise> { - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - this._options?.headers, - mergeOnlyDefinedHeaders({ - "xi-api-key": requestOptions?.apiKey ?? this._options?.apiKey ?? process.env?.ELEVENLABS_API_KEY, - }), - 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/triage-tickets", - ), - method: "POST", - headers: _headers, - contentType: "application/json", - queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(), - requestType: "json", - body: mergeAdditionalBodyParameters( - serializers.conversationalAi.CreateAgentConversationTicketRequestModel.jsonOrThrow(request, { - unrecognizedObjectKeys: "strip", - }), - requestOptions?.additionalBodyParameters, - ), - 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.AgentConversationTicketResponseModel.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(_response.error.body, _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/triage-tickets"); - } - /** * Append a comment discussing how to resolve the ticket. Requires viewer access to the ticket's agent. * diff --git a/src/api/resources/conversationalAi/resources/triageTickets/client/requests/TriageTicketsListForWorkspaceRequest.ts b/src/api/resources/conversationalAi/resources/triageTickets/client/requests/TriageTicketsListForWorkspaceRequest.ts new file mode 100644 index 000000000..aed9290d5 --- /dev/null +++ b/src/api/resources/conversationalAi/resources/triageTickets/client/requests/TriageTicketsListForWorkspaceRequest.ts @@ -0,0 +1,23 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as ElevenLabs from "../../../../../../index"; + +/** + * @example + * { + * pageSize: 1, + * status: "open", + * assigneeUserId: "assignee_user_id", + * cursor: "cursor" + * } + */ +export interface TriageTicketsListForWorkspaceRequest { + /** How many agent conversation tickets to return. Can not exceed 100. */ + pageSize?: number; + /** Filter tickets by status. */ + status?: ElevenLabs.AgentConversationTicketStatus; + /** Filter tickets by assignee. Use 'unassigned' for tickets with no assignee. */ + assigneeUserId?: string; + /** Used for fetching next page. Cursor is returned in the response. */ + cursor?: string; +} diff --git a/src/api/resources/conversationalAi/resources/triageTickets/client/requests/index.ts b/src/api/resources/conversationalAi/resources/triageTickets/client/requests/index.ts index 6d8a6d3a6..6923742e9 100644 --- a/src/api/resources/conversationalAi/resources/triageTickets/client/requests/index.ts +++ b/src/api/resources/conversationalAi/resources/triageTickets/client/requests/index.ts @@ -3,4 +3,5 @@ export type { AddTurnCommentRequestModel } from "./AddTurnCommentRequestModel"; export type { CreateAgentConversationTicketRequestModel } from "./CreateAgentConversationTicketRequestModel"; export type { CreateManualTicketRequestModel } from "./CreateManualTicketRequestModel"; export type { PatchAgentConversationTicketRequestModel } from "./PatchAgentConversationTicketRequestModel"; +export type { TriageTicketsListForWorkspaceRequest } from "./TriageTicketsListForWorkspaceRequest"; export type { TriageTicketsListRequest } from "./TriageTicketsListRequest"; diff --git a/src/api/resources/dubbing/resources/project/client/Client.ts b/src/api/resources/dubbing/resources/project/client/Client.ts index 7ac4297f3..1832d57bf 100644 --- a/src/api/resources/dubbing/resources/project/client/Client.ts +++ b/src/api/resources/dubbing/resources/project/client/Client.ts @@ -37,7 +37,7 @@ export class ProjectClient { } /** - * List the workspace's dubbing projects (cursor-paginated). + * List the dubbing projects in your workspace that you can access, newest first, cursor-paginated. Listed projects carry no `language_ids`; fetch a project, or list its language targets, to see them. * * @param {ElevenLabs.dubbing.ProjectListRequest} request * @param {ProjectClient.RequestOptions} requestOptions - Request-specific configuration. @@ -130,7 +130,11 @@ export class ProjectClient { } /** - * Create a dubbing project from an uploaded file or a source URL. + * Create a dubbing project from an uploaded file (`file`) or a source URL (`source_url`). + * + * Returns as soon as the project record exists, before the source has been fetched: the project starts `queued` and reaches `ready` once its source has been transcribed. Creating a project does not dub anything — add a language target to it for each language you want, or pass `target_language` to queue the first one here. + * + * Preparation can take minutes on a long source, so we recommend passing `webhook_ids` to be notified when the project turns `ready` or `failed`, rather than polling for it. * * @param {ElevenLabs.dubbing.BodyCreateDubbingProjectV1DubbingProjectPost} request * @param {ProjectClient.RequestOptions} requestOptions - Request-specific configuration. @@ -264,7 +268,7 @@ export class ProjectClient { } /** - * Full project detail, including its language target ids. + * Full project detail, including the IDs of every language target under it. To follow a project to `ready`, we recommend a `webhook_ids` subscription rather than polling this endpoint. * * @param {string} project_id - Identifier of the dubbing project to fetch. * @param {ProjectClient.RequestOptions} requestOptions - Request-specific configuration. @@ -344,7 +348,7 @@ export class ProjectClient { } /** - * Delete a project and its language targets. + * Delete a project, every language target under it, and their stored media and outputs. This cannot be undone, and a dub already running is still billed. * * @param {string} project_id - Identifier of the dubbing project to delete. * @param {ProjectClient.RequestOptions} requestOptions - Request-specific configuration. diff --git a/src/api/resources/dubbing/resources/project/client/requests/BodyCreateDubbingProjectV1DubbingProjectPost.ts b/src/api/resources/dubbing/resources/project/client/requests/BodyCreateDubbingProjectV1DubbingProjectPost.ts index a1946e652..a20d5fae3 100644 --- a/src/api/resources/dubbing/resources/project/client/requests/BodyCreateDubbingProjectV1DubbingProjectPost.ts +++ b/src/api/resources/dubbing/resources/project/client/requests/BodyCreateDubbingProjectV1DubbingProjectPost.ts @@ -12,22 +12,22 @@ import type * as ElevenLabs from "../../../../../../index"; * } */ export interface BodyCreateDubbingProjectV1DubbingProjectPost { - /** The source media file to dub. Provide this or source_url. */ + /** The source media file to dub: an audio or video file of at most 3 GiB. Provide this or `source_url`, not both. */ file?: core.file.Uploadable | undefined; - /** Public URL to fetch the source media from. Provide this or file. */ + /** Public HTTP(S) URL the source media is fetched from server-side, subject to the same size and format limits as an upload. Provide this or `file`, not both. */ sourceUrl?: string; - /** Optional free-form string (max 500 characters) to identify the project on your end. */ + /** Optional free-form string (at most 500 characters) to identify the project on your end. Stored and echoed back verbatim; it does not affect the dub. */ reference?: string; /** BCP-47 language tag of the source media; must be a language the transcription model supports. Any region or script subtag is ignored, since transcription is per-language. Omit to auto-detect. */ sourceLanguage?: string; - /** Default dubbing model id ('dubbing_v1' or 'dubbing_v2') for the project's language targets; a target may override it. Omit to use the system default. */ + /** Dubbing model (`dubbing_v1` or `dubbing_v2`) every language target of this project is dubbed with. Defaults to `dubbing_v2`. Fixed at create time — the source is prepared for this model, so neither the project nor an individual target can change it later. */ modelId?: ElevenLabs.dubbing.ProjectCreateRequestModelId; - /** Key terms to bias transcription/translation toward (e.g. product or brand names). At most 1000 terms; each term at most 50 characters and 5 words; the characters `<>{}[]\` are not allowed. */ + /** Key terms to bias transcription and translation toward (for example, product or brand names). At most 1,000 terms; each term at most 50 characters and 5 words; the characters `<>{}[]\` are not allowed. Terms are trimmed and deduplicated. */ keyterms?: string[]; - /** Ids of workspace webhooks to notify when this project becomes ready or fails, and when any of its languages completes or fails. At most 3; each must be a webhook configured in your workspace. */ + /** IDs of workspace webhooks to notify as this project progresses — the alternative to polling, and what we recommend. Each receives a `dubbing_project_ready` or `dubbing_project_failed` event for the project, and a `dubbing_language_completed` or `dubbing_language_failed` event for every language under it; `dubbing_language_completed` carries the output download URLs. At most 3 IDs, each already configured in your workspace — see [Webhooks](https://elevenlabs.io/docs/eleven-api/resources/webhooks) for how to create one and verify its signature. Delivery is best-effort and can repeat, so we recommend handling events idempotently. */ webhookIds?: string[]; - /** Optional shortcut: also create a language target in this BCP-47 language, queued to start once the project is ready. Must be a language the dubbing model supports, and a region-qualified tag must be one of the supported dialects. */ + /** Optional shortcut: also create a language target in this BCP-47 language, queued to start once the project is ready — equivalent to creating the project and then creating one language target. Must be one of the [languages the dubbing model supports](https://elevenlabs.io/docs/help-center/product/dubbing/which-languages-are-supported-in-dubbing), and a region-qualified tag must be one of the supported dialects. Its ID is returned in `language_ids`. */ targetLanguage?: string; - /** Enterprise only. Optional JSON transcript to use instead of automatic transcription. When provided, source_language is required. Segments may include an optional external_id and an optional translation; if any segment includes a translation, target_language is required and every segment must include one (used to seed the target created via target_language). */ + /** Enterprise only. Optional JSON transcript to use instead of transcribing the source: a `{"segments": [...]}` document, at most 20,000 segments and 4 MiB. See [Bring your own transcript](https://elevenlabs.io/docs/eleven-api/guides/how-to/dubbing/bring-your-own-transcript) for the segment fields and their constraints. `source_language` is required whenever a transcript is provided. If any segment carries a `translation`, `target_language` is required and every segment must carry one; those translations seed the target created via `target_language`, which then skips machine translation. */ transcript?: core.file.Uploadable | undefined; } diff --git a/src/api/resources/dubbing/resources/project/client/requests/ProjectListRequest.ts b/src/api/resources/dubbing/resources/project/client/requests/ProjectListRequest.ts index 441dda842..748403ba4 100644 --- a/src/api/resources/dubbing/resources/project/client/requests/ProjectListRequest.ts +++ b/src/api/resources/dubbing/resources/project/client/requests/ProjectListRequest.ts @@ -9,12 +9,12 @@ import type * as ElevenLabs from "../../../../../../index"; * } */ export interface ProjectListRequest { - /** Pagination cursor from a previous response's next_cursor. */ + /** Pass the `next_cursor` from a previous response to fetch the page after it. Omit for the first page. */ cursor?: string; - /** Number of projects per page (max 100). */ + /** Number of projects per page. Clamped to between 1 and 100 rather than rejected, so a larger value returns a full page. */ pageSize?: number; - /** Filter to projects in this status (preparing, ready, failed). */ + /** Filter to projects in this status: `queued`, `preparing`, `ready`, or `failed`. Omit to return every status. */ status?: string; - /** Sort by creation time (default 'DESCENDING'). */ + /** Sort by creation time; newest first by default. */ sortDirection?: ElevenLabs.dubbing.ProjectListRequestSortDirection; } diff --git a/src/api/resources/dubbing/resources/project/resources/language/client/Client.ts b/src/api/resources/dubbing/resources/project/resources/language/client/Client.ts index 31b040a24..53dfd1aee 100644 --- a/src/api/resources/dubbing/resources/project/resources/language/client/Client.ts +++ b/src/api/resources/dubbing/resources/project/resources/language/client/Client.ts @@ -31,7 +31,7 @@ export class LanguageClient { } /** - * List a project's language targets (cursor-paginated). + * List a project's language targets, cursor-paginated, each with signed output URLs once it has produced an output. * * @param {string} project_id - Identifier of the parent dubbing project. * @param {ElevenLabs.dubbing.project.LanguageListRequest} request @@ -126,7 +126,11 @@ export class LanguageClient { } /** - * Queue a language target for a project (starts once the project is ready). + * Add a language to dub a project into, and queue the dub. + * + * This is the call that produces dubbed audio, and it is billed per generation. The target is created `queued` and starts as soon as the project is `ready`, so it can be added at any point after the project is created. It inherits the project's dubbing model and cannot pick another. + * + * A project created with `webhook_ids` sends a `dubbing_language_completed` event carrying the output download URLs, so we recommend subscribing rather than polling this target to completion. * * @param {string} project_id - Identifier of the parent dubbing project. * @param {ElevenLabs.dubbing.project.BodyCreateDubbingLanguageTargetV1DubbingProjectProjectIdLanguagePost} request @@ -220,7 +224,7 @@ export class LanguageClient { } /** - * Full language-target detail. + * Full language-target detail. Once the target reports `completed`, `outputs` carries the signed download URLs. To learn when that happens, we recommend the project's `webhook_ids` subscription rather than polling this endpoint; fetch here when a delivered URL has expired, or to reconcile after an edit. * * @param {string} project_id - Identifier of the parent dubbing project. * @param {string} language_id - Identifier of the language target to fetch. @@ -303,7 +307,7 @@ export class LanguageClient { } /** - * Delete a language target. + * Delete a language target and its outputs, leaving the project and its other languages intact. This cannot be undone, and a dub already running is still billed. * * @param {string} project_id - Identifier of the parent dubbing project. * @param {string} language_id - Identifier of the language target to delete. diff --git a/src/api/resources/dubbing/resources/project/resources/language/client/requests/BodyCreateDubbingLanguageTargetV1DubbingProjectProjectIdLanguagePost.ts b/src/api/resources/dubbing/resources/project/resources/language/client/requests/BodyCreateDubbingLanguageTargetV1DubbingProjectProjectIdLanguagePost.ts index 58c430764..dbac5e528 100644 --- a/src/api/resources/dubbing/resources/project/resources/language/client/requests/BodyCreateDubbingLanguageTargetV1DubbingProjectProjectIdLanguagePost.ts +++ b/src/api/resources/dubbing/resources/project/resources/language/client/requests/BodyCreateDubbingLanguageTargetV1DubbingProjectProjectIdLanguagePost.ts @@ -9,10 +9,10 @@ import type * as ElevenLabs from "../../../../../../../../index"; * } */ export interface BodyCreateDubbingLanguageTargetV1DubbingProjectProjectIdLanguagePost { - /** BCP-47 language tag to dub the project into (e.g. 'fr', 'es-MX'); must be a language the dubbing model supports. A region-qualified tag must be one of the supported dialects. */ + /** BCP-47 language tag to dub the project into (for example, `fr` or `es-MX`). Must be one of the [languages the project's dubbing model supports](https://elevenlabs.io/docs/help-center/product/dubbing/which-languages-are-supported-in-dubbing), and a region-qualified tag must be one of the supported dialects. */ targetLanguage: string; - /** Voice settings applied to the whole language (e.g. cloning strength). */ + /** Voice settings applied to every speaker in this language. Omit to use the defaults. */ voiceSettings?: ElevenLabs.VoiceSettings; - /** Enterprise only. Optional translations to use instead of machine translation. A map from each source segment's external_id (or its id, if you supplied none) to the translated text; every source segment must be covered exactly once. At most 20000 entries, totalling at most 4 MiB of text. */ + /** Enterprise only. Optional translations to use instead of machine translation. A map from each source segment's `external_id` (or its `id`, if you supplied none) to the translated text; every source segment must be covered exactly once. At most 20,000 entries, totaling at most 4 MiB of text. See [Bring your own transcript](https://elevenlabs.io/docs/eleven-api/guides/how-to/dubbing/bring-your-own-transcript). */ translations?: Record; } diff --git a/src/api/resources/dubbing/resources/project/resources/language/client/requests/LanguageListRequest.ts b/src/api/resources/dubbing/resources/project/resources/language/client/requests/LanguageListRequest.ts index ee638b3f2..a39ca1408 100644 --- a/src/api/resources/dubbing/resources/project/resources/language/client/requests/LanguageListRequest.ts +++ b/src/api/resources/dubbing/resources/project/resources/language/client/requests/LanguageListRequest.ts @@ -7,10 +7,10 @@ * } */ export interface LanguageListRequest { - /** Pagination cursor from a previous response's next_cursor. */ + /** Pass the `next_cursor` from a previous response to fetch the page after it. Omit for the first page. */ cursor?: string; - /** Number of language targets per page (max 100). */ + /** Number of language targets per page. Clamped to between 1 and 100 rather than rejected, so a larger value returns a full page. */ pageSize?: number; - /** Filter to targets in this status (queued, processing, completed, stale, failed). */ + /** Filter to targets in this status: `queued`, `processing`, `completed`, `stale`, or `failed`. Omit to return every status. */ status?: string; } diff --git a/src/api/resources/dubbing/resources/project/resources/language/resources/transcript/client/Client.ts b/src/api/resources/dubbing/resources/project/resources/language/resources/transcript/client/Client.ts index 550b00776..6713d5e68 100644 --- a/src/api/resources/dubbing/resources/project/resources/language/resources/transcript/client/Client.ts +++ b/src/api/resources/dubbing/resources/project/resources/language/resources/transcript/client/Client.ts @@ -25,7 +25,7 @@ export class TranscriptClient { } /** - * A language target's transcript: source segments with their translations. + * A language target's transcript: source segments with their translations. Available once the target has produced an output. Returns a conflict while the target is still on its first dub, since it has no translations to return yet. * * @param {string} project_id - Identifier of the dubbing project. * @param {string} language_id - Identifier of the language target. @@ -108,7 +108,7 @@ export class TranscriptClient { } /** - * Enterprise only. Edit a segment's translation for a language target. + * Enterprise only. Edit a segment's translation for a language target. Omitted fields are left unchanged; an explicit null clears the field. Bumps the target's `revision` and marks it `stale` if it had already completed. The source transcript and the project's other languages are untouched, and no audio changes until you regenerate the target. * * @param {string} project_id - Identifier of the dubbing project. * @param {string} language_id - Identifier of the language target. @@ -207,7 +207,7 @@ export class TranscriptClient { } /** - * Enterprise only. Edit several segments' translations for a language target in one atomic request. + * Enterprise only. Edit several segments' translations for a language target in one atomic request: every edit applies or none does. Bumps the target's `revision` and marks it `stale` if it had already completed. The source transcript and the project's other languages are untouched, and no audio changes until you regenerate the target. * * @param {string} project_id - Identifier of the dubbing project. * @param {string} language_id - Identifier of the language target. @@ -312,7 +312,7 @@ export class TranscriptClient { } /** - * Enterprise only. Re-dub a target from its edited transcript, re-synthesizing only the edited regions (charged like a generation). Conflicts when the target has no edits to apply -- nothing is dispatched and nothing is charged. + * Enterprise only. Re-dub a target from its edited transcript, re-synthesizing only the edited regions (charged like a generation, less the free-regeneration allowance). Accepted asynchronously: the target returns to `processing` and sends a `dubbing_language_completed` event to the project's `webhook_ids` when the re-dub lands, carrying the new output URLs. Returns a conflict when the target has no edits to apply — nothing is dispatched and nothing is charged. * * @param {string} project_id - Identifier of the dubbing project. * @param {string} language_id - Identifier of the language target. diff --git a/src/api/resources/dubbing/resources/project/resources/language/resources/transcript/client/requests/DubbingBulkTargetSegmentUpdateRequest.ts b/src/api/resources/dubbing/resources/project/resources/language/resources/transcript/client/requests/DubbingBulkTargetSegmentUpdateRequest.ts index d400cc242..f26daa5f6 100644 --- a/src/api/resources/dubbing/resources/project/resources/language/resources/transcript/client/requests/DubbingBulkTargetSegmentUpdateRequest.ts +++ b/src/api/resources/dubbing/resources/project/resources/language/resources/transcript/client/requests/DubbingBulkTargetSegmentUpdateRequest.ts @@ -16,6 +16,6 @@ import type * as ElevenLabs from "../../../../../../../../../../index"; * } */ export interface DubbingBulkTargetSegmentUpdateRequest { - /** Map of segment id to the translation edit to apply to that segment. */ + /** Map of segment ID to the translation edit to apply to that segment. At least one entry and at most 500. */ segments: Record; } diff --git a/src/api/resources/dubbing/resources/project/resources/transcript/client/Client.ts b/src/api/resources/dubbing/resources/project/resources/transcript/client/Client.ts index 7582f8e9f..d27dea1b0 100644 --- a/src/api/resources/dubbing/resources/project/resources/transcript/client/Client.ts +++ b/src/api/resources/dubbing/resources/project/resources/transcript/client/Client.ts @@ -25,7 +25,7 @@ export class TranscriptClient { } /** - * The project's source transcript, as editable segments. + * The project's source transcript, as editable segments. Available once the project is `ready`. * * @param {string} project_id - Identifier of the dubbing project. * @param {TranscriptClient.RequestOptions} requestOptions - Request-specific configuration. @@ -105,7 +105,7 @@ export class TranscriptClient { } /** - * Enterprise only. Remove a source segment from the transcript. + * Enterprise only. Remove a source segment from the transcript so it is no longer dubbed. Bumps the project's `revision`, discards the affected translations in every language target, and marks any target that had already completed `stale`. No audio changes until you regenerate a target. * * @param {string} project_id - Identifier of the dubbing project. * @param {string} segment_id - Identifier of the segment to remove. @@ -188,7 +188,7 @@ export class TranscriptClient { } /** - * Enterprise only. Edit a source segment's text, speaker, or timing. + * Enterprise only. Edit a source segment's text, speaker, or timing. Omitted fields are left unchanged. Bumps the project's `revision`, discards the affected translations in every language target, and marks any target that had already completed `stale`. No audio changes until you regenerate a target. * * @param {string} project_id - Identifier of the dubbing project. * @param {string} segment_id - Identifier of the segment to edit. @@ -284,7 +284,7 @@ export class TranscriptClient { } /** - * Enterprise only. Edit several source segments' text, speaker, or timing in one atomic request. + * Enterprise only. Edit several source segments' text, speaker, or timing in one atomic request: every edit applies or none does. Bumps the project's `revision`, discards the affected translations in every language target, and marks any target that had already completed `stale`. No audio changes until you regenerate a target. * * @param {string} project_id - Identifier of the dubbing project. * @param {ElevenLabs.dubbing.project.DubbingBulkSegmentUpdateRequest} request @@ -384,7 +384,7 @@ export class TranscriptClient { } /** - * Enterprise only. Add a new source segment to the transcript. + * Enterprise only. Add a new source segment to the transcript. Its span must lie within the source media, last between 0.1 and 25 seconds, and not overlap another segment by the same speaker. Bumps the project's `revision`, discards the affected translations in every language target, and marks any target that had already completed `stale`. No audio changes until you regenerate a target. * * @param {string} project_id - Identifier of the dubbing project. * @param {ElevenLabs.dubbing.project.DubbingSegmentCreateRequest} request diff --git a/src/api/resources/dubbing/resources/project/resources/transcript/client/requests/DubbingBulkSegmentUpdateRequest.ts b/src/api/resources/dubbing/resources/project/resources/transcript/client/requests/DubbingBulkSegmentUpdateRequest.ts index fee6aadcf..726e41953 100644 --- a/src/api/resources/dubbing/resources/project/resources/transcript/client/requests/DubbingBulkSegmentUpdateRequest.ts +++ b/src/api/resources/dubbing/resources/project/resources/transcript/client/requests/DubbingBulkSegmentUpdateRequest.ts @@ -16,6 +16,6 @@ import type * as ElevenLabs from "../../../../../../../../index"; * } */ export interface DubbingBulkSegmentUpdateRequest { - /** Map of segment id to the partial update to apply to that segment. */ + /** Map of segment ID to the partial update to apply to that segment. At least one entry and at most 500. */ segments: Record; } diff --git a/src/api/resources/dubbing/resources/project/types/ProjectCreateRequestModelId.ts b/src/api/resources/dubbing/resources/project/types/ProjectCreateRequestModelId.ts index 63f1b8c1d..4eeaa08e8 100644 --- a/src/api/resources/dubbing/resources/project/types/ProjectCreateRequestModelId.ts +++ b/src/api/resources/dubbing/resources/project/types/ProjectCreateRequestModelId.ts @@ -1,6 +1,6 @@ // This file was auto-generated by Fern from our API Definition. /** - * Default dubbing model id ('dubbing_v1' or 'dubbing_v2') for the project's language targets; a target may override it. Omit to use the system default. + * Dubbing model (`dubbing_v1` or `dubbing_v2`) every language target of this project is dubbed with. Defaults to `dubbing_v2`. Fixed at create time — the source is prepared for this model, so neither the project nor an individual target can change it later. */ export type ProjectCreateRequestModelId = "dubbing_v1" | "dubbing_v2" | string; diff --git a/src/api/resources/dubbing/resources/project/types/ProjectListRequestSortDirection.ts b/src/api/resources/dubbing/resources/project/types/ProjectListRequestSortDirection.ts index 5a82bf8e4..09eb20497 100644 --- a/src/api/resources/dubbing/resources/project/types/ProjectListRequestSortDirection.ts +++ b/src/api/resources/dubbing/resources/project/types/ProjectListRequestSortDirection.ts @@ -1,6 +1,6 @@ // This file was auto-generated by Fern from our API Definition. -/** Sort by creation time (default 'DESCENDING'). */ +/** Sort by creation time; newest first by default. */ export const ProjectListRequestSortDirection = { Ascending: "ASCENDING", Descending: "DESCENDING", diff --git a/src/api/resources/music/client/Client.ts b/src/api/resources/music/client/Client.ts index 37305af0f..a6e6886b6 100644 --- a/src/api/resources/music/client/Client.ts +++ b/src/api/resources/music/client/Client.ts @@ -535,6 +535,10 @@ export class MusicClient { _body.append("with_timestamps", request.withTimestamps?.toString()); } + if (request.withWaveformVisual != null) { + _body.append("with_waveform_visual", request.withWaveformVisual?.toString()); + } + const _maybeEncodedRequest = await _body.getRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( this._options?.headers, diff --git a/src/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.ts b/src/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.ts index e599ae0be..32f64e09f 100644 --- a/src/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.ts +++ b/src/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.ts @@ -29,6 +29,8 @@ export interface BodyComposeMusicWithADetailedResponseV1MusicDetailedPost { storeForInpainting?: boolean; /** Whether to return the timestamps of the words in the generated song. */ withTimestamps?: boolean; + /** Whether to return the visual waveform of the generated song. */ + withWaveformVisual?: boolean; /** Whether to sign the generated song with C2PA. Applicable only for mp3 files. */ signWithC2Pa?: boolean; } diff --git a/src/api/resources/music/client/requests/BodyStreamComposedMusicWithADetailedResponseV1MusicDetailedStreamPost.ts b/src/api/resources/music/client/requests/BodyStreamComposedMusicWithADetailedResponseV1MusicDetailedStreamPost.ts index 29e48169b..44fda13d1 100644 --- a/src/api/resources/music/client/requests/BodyStreamComposedMusicWithADetailedResponseV1MusicDetailedStreamPost.ts +++ b/src/api/resources/music/client/requests/BodyStreamComposedMusicWithADetailedResponseV1MusicDetailedStreamPost.ts @@ -29,4 +29,6 @@ export interface BodyStreamComposedMusicWithADetailedResponseV1MusicDetailedStre storeForInpainting?: boolean; /** Whether to return the timestamps of the words in the generated song. */ withTimestamps?: boolean; + /** Whether to return the visual waveform of the generated song. */ + withWaveformVisual?: boolean; } diff --git a/src/api/resources/music/client/requests/BodyUploadMusicV1MusicUploadPost.ts b/src/api/resources/music/client/requests/BodyUploadMusicV1MusicUploadPost.ts index 34021b983..8e24d1a38 100644 --- a/src/api/resources/music/client/requests/BodyUploadMusicV1MusicUploadPost.ts +++ b/src/api/resources/music/client/requests/BodyUploadMusicV1MusicUploadPost.ts @@ -16,4 +16,6 @@ export interface BodyUploadMusicV1MusicUploadPost { extractCompositionPlan?: ElevenLabs.MusicUploadRequestExtractCompositionPlan; /** Whether to transcribe the uploaded song and return word-level timestamps. If True, the response will include words_timestamps but will increase the latency. */ withTimestamps?: boolean; + /** Whether to return the visual waveform of the uploaded song. */ + withWaveformVisual?: boolean; } diff --git a/src/api/resources/speechToText/client/Client.ts b/src/api/resources/speechToText/client/Client.ts index 7ff024a35..62bc3a887 100644 --- a/src/api/resources/speechToText/client/Client.ts +++ b/src/api/resources/speechToText/client/Client.ts @@ -45,7 +45,7 @@ export class SpeechToTextClient { * await client.speechToText.convert({ * token: "token", * enableLogging: true, - * modelId: "scribe_v2" + * modelId: "model_id" * }) */ public convert( @@ -64,12 +64,7 @@ export class SpeechToTextClient { enable_logging: request.enableLogging, }; const _body = await core.newFormData(); - _body.append( - "model_id", - serializers.SpeechToTextConvertRequestModelId.jsonOrThrow(request.modelId, { - unrecognizedObjectKeys: "strip", - }), - ); + _body.append("model_id", request.modelId); if (request.file != null) { await _body.appendFile("file", request.file); } diff --git a/src/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.ts b/src/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.ts index eb39dc00f..5d3e685f8 100644 --- a/src/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.ts +++ b/src/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.ts @@ -8,7 +8,7 @@ import type * as ElevenLabs from "../../../../index"; * { * token: "token", * enableLogging: true, - * modelId: "scribe_v2" + * modelId: "model_id" * } */ export interface BodySpeechToTextV1SpeechToTextPost { @@ -17,7 +17,7 @@ export interface BodySpeechToTextV1SpeechToTextPost { /** When enable_logging is set to false zero retention mode will be used for the request. This will mean log and transcript storage features are unavailable for this request. Zero retention mode may only be used by enterprise customers. */ enableLogging?: boolean; /** The ID of the model to use for transcription. */ - modelId: ElevenLabs.SpeechToTextConvertRequestModelId; + modelId: string; /** The file to transcribe (100ms minimum audio length). All major audio and video formats are supported. Exactly one of the file or cloud_storage_url parameters must be provided. The file size must be less than 5.0GB. */ file?: core.file.Uploadable | undefined; /** An ISO-639-1 or ISO-639-3 language_code corresponding to the language of the audio file. Can sometimes improve transcription performance if known beforehand. Defaults to null, in this case the language is predicted automatically. */ diff --git a/src/api/resources/speechToText/types/SpeechToTextConvertRequestModelId.ts b/src/api/resources/speechToText/types/SpeechToTextConvertRequestModelId.ts deleted file mode 100644 index a55c91f4b..000000000 --- a/src/api/resources/speechToText/types/SpeechToTextConvertRequestModelId.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** The ID of the model to use for transcription. */ -export const SpeechToTextConvertRequestModelId = { - ScribeV2: "scribe_v2", - ScribeV1: "scribe_v1", -} as const; -export type SpeechToTextConvertRequestModelId = - (typeof SpeechToTextConvertRequestModelId)[keyof typeof SpeechToTextConvertRequestModelId]; diff --git a/src/api/resources/speechToText/types/index.ts b/src/api/resources/speechToText/types/index.ts index 881fe764d..fb31a9da0 100644 --- a/src/api/resources/speechToText/types/index.ts +++ b/src/api/resources/speechToText/types/index.ts @@ -1,7 +1,6 @@ export * from "./SpeechToTextConvertRequestEntityDetection"; export * from "./SpeechToTextConvertRequestEntityRedaction"; export * from "./SpeechToTextConvertRequestFileFormat"; -export * from "./SpeechToTextConvertRequestModelId"; export * from "./SpeechToTextConvertRequestMultichannelOutputStyle"; export * from "./SpeechToTextConvertRequestTimestampsGranularity"; export * from "./SpeechToTextConvertRequestWebhookMetadata"; diff --git a/src/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.ts b/src/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.ts index 5b1502b8e..d402b719c 100644 --- a/src/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.ts +++ b/src/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.ts @@ -34,6 +34,7 @@ export interface BodyCreatePodcastV1StudioPodcastsPost { * 'high' - high quality output format, 192kbps with 44.1kHz sample rate and major improvements on our side. * 'ultra' - ultra quality output format, 192kbps with 44.1kHz sample rate and highest improvements on our side. * 'ultra_lossless' - ultra quality output format, 705.6kbps with 44.1kHz sample rate and highest improvements on our side in a fully lossless format. + * If not provided, defaults to the highest quality preset available on your subscription tier. */ qualityPreset?: ElevenLabs.QualityPresetType; /** diff --git a/src/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.ts b/src/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.ts index 8b1a4f86c..8bef1db0f 100644 --- a/src/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.ts +++ b/src/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.ts @@ -36,6 +36,7 @@ export interface BodyCreateStudioProjectV1StudioProjectsPost { * 'high' - high quality output format, 192kbps with 44.1kHz sample rate and major improvements on our side. * 'ultra' - ultra quality output format, 192kbps with 44.1kHz sample rate and highest improvements on our side. * 'ultra_lossless' - ultra quality output format, 705.6kbps with 44.1kHz sample rate and highest improvements on our side in a fully lossless format. + * If not provided, defaults to the highest quality preset available on your subscription tier. */ qualityPreset?: ElevenLabs.QualityPresetType; /** An optional name of the author of the Studio project, this will be added as metadata to the mp3 file on Studio project or chapter download. */ diff --git a/src/api/types/AgentConversationTicketIssueType.ts b/src/api/types/AgentConversationTicketIssueType.ts index 6b53e8277..14a7e1144 100644 --- a/src/api/types/AgentConversationTicketIssueType.ts +++ b/src/api/types/AgentConversationTicketIssueType.ts @@ -2,10 +2,14 @@ export const AgentConversationTicketIssueType = { KnowledgeGap: "knowledge_gap", + IncorrectInformation: "incorrect_information", + DocumentationGap: "documentation_gap", ProductFeedback: "product_feedback", + PlatformBug: "platform_bug", ToolIssue: "tool_issue", MissingTool: "missing_tool", UnnecessaryEscalation: "unnecessary_escalation", + WrongAction: "wrong_action", } as const; export type AgentConversationTicketIssueType = (typeof AgentConversationTicketIssueType)[keyof typeof AgentConversationTicketIssueType]; diff --git a/src/api/types/AgentSmbMetadata.ts b/src/api/types/AgentSmbMetadata.ts new file mode 100644 index 000000000..6f91eac46 --- /dev/null +++ b/src/api/types/AgentSmbMetadata.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as ElevenLabs from "../index"; + +/** + * Identifies an agent as part of the SMB product. + */ +export interface AgentSmbMetadata { + /** Distinguishes between the customer-facing voice agent and the internal assistant agent. */ + agentType: ElevenLabs.SmbAgentType; + /** True for pre-signup onboarding agents that have not yet been transferred to a user workspace. */ + isEphemeral?: boolean; + /** Hash of the SMB data+code inputs this agent was last regenerated against; the conversation-start drift gate. None (unstamped) regenerates once on the next conversation. */ + sourceFingerprint?: string; +} diff --git a/src/api/types/AlertingWebhookSecretHeaderValue.ts b/src/api/types/AlertingWebhookSecretHeaderValue.ts new file mode 100644 index 000000000..8bbca7bdf --- /dev/null +++ b/src/api/types/AlertingWebhookSecretHeaderValue.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * A custom webhook header value, encrypted at rest. + */ +export interface AlertingWebhookSecretHeaderValue { + encryptedValue: string; + nonce: string; +} diff --git a/src/api/types/AvatarContextResponseModel.ts b/src/api/types/AvatarContextResponseModel.ts new file mode 100644 index 000000000..9a3250231 --- /dev/null +++ b/src/api/types/AvatarContextResponseModel.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +export interface AvatarContextResponseModel { + /** The ID of the avatar. */ + avatarId?: string; + /** The ID of the avatar style. */ + avatarStyleId?: string; + /** The name of the avatar. */ + avatarName?: string; + /** The name of the avatar style. */ + avatarStyleName?: string; +} diff --git a/src/api/types/BanReasonType.ts b/src/api/types/BanReasonType.ts new file mode 100644 index 000000000..cca61d9c1 --- /dev/null +++ b/src/api/types/BanReasonType.ts @@ -0,0 +1,7 @@ +// 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/BatchCallingCampaignInformation.ts b/src/api/types/BatchCallingCampaignInformation.ts new file mode 100644 index 000000000..d77810069 --- /dev/null +++ b/src/api/types/BatchCallingCampaignInformation.ts @@ -0,0 +1,6 @@ +// This file was auto-generated by Fern from our API Definition. + +export interface BatchCallingCampaignInformation { + campaignId: string; + campaignLeadId: string; +} diff --git a/src/api/types/ChatSourceMedium.ts b/src/api/types/ChatSourceMedium.ts index 6489b3aef..2f9c86387 100644 --- a/src/api/types/ChatSourceMedium.ts +++ b/src/api/types/ChatSourceMedium.ts @@ -2,6 +2,7 @@ export const ChatSourceMedium = { Audio: "audio", + Dtmf: "dtmf", Text: "text", Image: "image", File: "file", diff --git a/src/api/types/CompactionSettingsWorkflowOverride.ts b/src/api/types/CompactionSettingsWorkflowOverride.ts new file mode 100644 index 000000000..6437b1931 --- /dev/null +++ b/src/api/types/CompactionSettingsWorkflowOverride.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +export interface CompactionSettingsWorkflowOverride { + /** Whether context compaction is enabled for this agent. */ + enabled?: boolean; + /** Context window fraction at which compaction is triggered. */ + softTriggerFraction?: number; + /** Number of recent messages kept verbatim after compaction. */ + tailSize?: number; + /** Minimum number of tokens that compaction must reclaim. */ + minReclaimableTokens?: number; +} diff --git a/src/api/types/ConversationConfigInput.ts b/src/api/types/ConversationConfigInput.ts index 489260e0b..cbff5da8e 100644 --- a/src/api/types/ConversationConfigInput.ts +++ b/src/api/types/ConversationConfigInput.ts @@ -15,6 +15,8 @@ export interface ConversationConfigInput { monitoringEnabled?: boolean; /** The events that will be sent to monitoring connections. */ monitoringEvents?: ElevenLabs.ClientEvent[]; + /** Configure DTMF (keypad) input collection during phone calls */ + dtmfInputSettings?: ElevenLabs.DtmfInputConfig; /** Configuration for background sound during conversations. */ backgroundSound?: ElevenLabs.BackgroundSoundConfig; /** When enabled and knowledge base content is present, the LLM is instructed to report which sources it used. */ diff --git a/src/api/types/ConversationConfigOutput.ts b/src/api/types/ConversationConfigOutput.ts index c5bcd50a2..fbc85dcd1 100644 --- a/src/api/types/ConversationConfigOutput.ts +++ b/src/api/types/ConversationConfigOutput.ts @@ -15,6 +15,8 @@ export interface ConversationConfigOutput { monitoringEnabled?: boolean; /** The events that will be sent to monitoring connections. */ monitoringEvents?: ElevenLabs.ClientEvent[]; + /** Configure DTMF (keypad) input collection during phone calls */ + dtmfInputSettings?: ElevenLabs.DtmfInputConfig; /** Configuration for background sound during conversations. */ backgroundSound?: ElevenLabs.BackgroundSoundConfig; /** When enabled and knowledge base content is present, the LLM is instructed to report which sources it used. */ diff --git a/src/api/types/ConversationConfigWorkflowOverrideInput.ts b/src/api/types/ConversationConfigWorkflowOverrideInput.ts index a4fd4b782..012e90496 100644 --- a/src/api/types/ConversationConfigWorkflowOverrideInput.ts +++ b/src/api/types/ConversationConfigWorkflowOverrideInput.ts @@ -15,6 +15,8 @@ export interface ConversationConfigWorkflowOverrideInput { monitoringEnabled?: boolean; /** The events that will be sent to monitoring connections. */ monitoringEvents?: ElevenLabs.ClientEvent[]; + /** Configure DTMF (keypad) input collection during phone calls */ + dtmfInputSettings?: ElevenLabs.DtmfInputConfig; /** Configuration for background sound during conversations. */ backgroundSound?: ElevenLabs.BackgroundSoundConfigWorkflowOverride; /** When enabled and knowledge base content is present, the LLM is instructed to report which sources it used. */ diff --git a/src/api/types/ConversationConfigWorkflowOverrideOutput.ts b/src/api/types/ConversationConfigWorkflowOverrideOutput.ts index 6c23b3dd1..bc67d5f6b 100644 --- a/src/api/types/ConversationConfigWorkflowOverrideOutput.ts +++ b/src/api/types/ConversationConfigWorkflowOverrideOutput.ts @@ -15,6 +15,8 @@ export interface ConversationConfigWorkflowOverrideOutput { monitoringEnabled?: boolean; /** The events that will be sent to monitoring connections. */ monitoringEvents?: ElevenLabs.ClientEvent[]; + /** Configure DTMF (keypad) input collection during phone calls */ + dtmfInputSettings?: ElevenLabs.DtmfInputConfig; /** Configuration for background sound during conversations. */ backgroundSound?: ElevenLabs.BackgroundSoundConfigWorkflowOverride; /** When enabled and knowledge base content is present, the LLM is instructed to report which sources it used. */ diff --git a/src/api/types/ConversationErrorType.ts b/src/api/types/ConversationErrorType.ts new file mode 100644 index 000000000..72019a66a --- /dev/null +++ b/src/api/types/ConversationErrorType.ts @@ -0,0 +1,27 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Stored in conversation history. Never exposed to customers directly. */ +export const ConversationErrorType = { + Unknown: "unknown", + CallInitializationError: "call_initialization_error", + LineBusy: "line_busy", + NoAnswer: "no_answer", + CallRejected: "call_rejected", + BlockedByUser: "blocked_by_user", + AgentConfigurationError: "agent_configuration_error", + InvalidClientRequest: "invalid_client_request", + PermissionError: "permission_error", + EntitlementExceeded: "entitlement_exceeded", + ClientDisconnected: "client_disconnected", + LlmError: "llm_error", + SpeechError: "speech_error", + ToolError: "tool_error", + IntegrationError: "integration_error", + DependencyError: "dependency_error", + GuardrailTriggered: "guardrail_triggered", + SafetyViolation: "safety_violation", + MaxDurationExceeded: "max_duration_exceeded", + InternalError: "internal_error", + PostProcessingError: "post_processing_error", +} as const; +export type ConversationErrorType = (typeof ConversationErrorType)[keyof typeof ConversationErrorType]; diff --git a/src/api/types/ConversationHistoryBatchCallModel.ts b/src/api/types/ConversationHistoryBatchCallModel.ts index e9147908c..c27cea299 100644 --- a/src/api/types/ConversationHistoryBatchCallModel.ts +++ b/src/api/types/ConversationHistoryBatchCallModel.ts @@ -1,6 +1,9 @@ // This file was auto-generated by Fern from our API Definition. +import type * as ElevenLabs from "../index"; + export interface ConversationHistoryBatchCallModel { batchCallId: string; batchCallRecipientId: string; + campaign?: ElevenLabs.BatchCallingCampaignInformation; } diff --git a/src/api/types/ConversationHistoryTranscriptResponseModel.ts b/src/api/types/ConversationHistoryTranscriptResponseModel.ts index 6c1aac732..bb9e7bb88 100644 --- a/src/api/types/ConversationHistoryTranscriptResponseModel.ts +++ b/src/api/types/ConversationHistoryTranscriptResponseModel.ts @@ -26,7 +26,10 @@ export interface ConversationHistoryTranscriptResponseModel { userIdentifier?: string; id?: string; triggeredGuardrails?: ElevenLabs.TriggeredGuardrailCommonModel[]; + /** Deprecated: the first attachment on this turn. Use `file_inputs` to see every attachment. */ fileInput?: ElevenLabs.ConversationHistoryTranscriptFileInputResponseModel; + /** All files attached to this turn, in the order the user attached them. */ + fileInputs?: ElevenLabs.ConversationHistoryTranscriptFileInputResponseModel[]; contextualUpdateInfo?: ElevenLabs.ContextualUpdateInfo; reasoned?: boolean; } diff --git a/src/api/types/DetailedMusicResponse.ts b/src/api/types/DetailedMusicResponse.ts index edf731aa5..cd813176c 100644 --- a/src/api/types/DetailedMusicResponse.ts +++ b/src/api/types/DetailedMusicResponse.ts @@ -12,4 +12,6 @@ export interface DetailedMusicResponse { songMetadata: ElevenLabs.SongMetadata; /** The timestamps of the words in the generated song */ wordsTimestamps?: ElevenLabs.WordTimestamp[]; + /** A low-resolution waveform of the generated song, for showing a preview of it. Holds 4 values per second of audio, from -1000 to 1000. Stereo is mixed down to a single channel. Only present if `with_waveform_visual` was True in the request body. */ + waveformVisual?: number[]; } diff --git a/src/api/types/DubbingLanguageListResponse.ts b/src/api/types/DubbingLanguageListResponse.ts index 50ac1be1f..9a8fbfe90 100644 --- a/src/api/types/DubbingLanguageListResponse.ts +++ b/src/api/types/DubbingLanguageListResponse.ts @@ -5,6 +5,6 @@ import type * as ElevenLabs from "../index"; export interface DubbingLanguageListResponse { /** The page of language targets for the project. */ languages: ElevenLabs.DubbingLanguageResponse[]; - /** Cursor for the next page, or null when there are no more results. */ + /** Opaque cursor to pass back as `cursor` for the next page, or null when there are no more results. */ nextCursor?: string; } diff --git a/src/api/types/DubbingLanguageOutputs.ts b/src/api/types/DubbingLanguageOutputs.ts index 5e6cc8ae4..83f57e5e1 100644 --- a/src/api/types/DubbingLanguageOutputs.ts +++ b/src/api/types/DubbingLanguageOutputs.ts @@ -4,6 +4,6 @@ * Signed, time-limited download URLs for a language target's outputs. */ export interface DubbingLanguageOutputs { - /** Signed URL of the dubbed lossless audio track. */ + /** Signed URL for the dubbed lossless audio track, in FLAC. The link expires one hour after it is issued; re-read the language target for a fresh one. */ losslessAudio?: string; } diff --git a/src/api/types/DubbingLanguageResponse.ts b/src/api/types/DubbingLanguageResponse.ts index bd44ddb50..8f493e6af 100644 --- a/src/api/types/DubbingLanguageResponse.ts +++ b/src/api/types/DubbingLanguageResponse.ts @@ -9,19 +9,19 @@ export interface DubbingLanguageResponse { projectId: string; /** BCP-47 language tag this target is dubbed into. */ targetLanguage: string; - /** Lifecycle status: 'queued' (waiting on the project), 'processing', 'completed', 'stale' (source/transcript changed), or 'failed'. */ + /** Lifecycle status: `queued` (waiting on the project to be ready, or on a worker), `processing` while it is being dubbed, `completed` once its output is available, `stale` when the transcript changed after the output was produced, or `failed`. */ status: ElevenLabs.DubbingLanguageResponseStatus; - /** Effective dubbing model id (target override or project default). */ + /** Dubbing model this target is dubbed with, inherited from the project and not selectable per language. */ modelId?: string; - /** Voice settings applied to the whole language, or null if unset. */ + /** Voice settings applied to every speaker in this language, or null if the defaults apply. */ voiceSettings?: ElevenLabs.VoiceSettings; - /** Signed output URLs; null until the target has produced an output (present once 'completed', and kept while 'stale' -- compare `output_revision` against `revision` to tell whether the output is up to date). */ + /** Signed output URLs; null until the target has produced an output (present once `completed`, and kept while `stale` — compare `output_revision` against `revision` to tell whether the output is up to date). */ outputs?: ElevenLabs.DubbingLanguageOutputs; /** Monotonic counter incremented whenever this target's transcript changes (a source edit affecting it, or an edit to its translation). */ revision: number; - /** The `revision` the current dubbed output was generated from; equal to `revision` when up to date, less than it when 'stale'. Null until a generation has completed. */ + /** The `revision` the current dubbed output was generated from; equal to `revision` when up to date, and lower when `stale`. This is null until a generation has completed. */ outputRevision?: number; - /** Why this language failed; null unless `status` is 'failed', and also null for the few languages that failed before failure reporting was introduced. A code of 'project_failed' means the parent project failed, so read the project for the underlying cause. */ + /** Why this language failed; null unless `status` is `failed`, and also null for the few languages that failed before failure reporting was introduced. A code of `project_failed` means the parent project failed, so read the project for the underlying cause. */ error?: ElevenLabs.DubbingError; /** Non-fatal conditions raised while dubbing this language, empty when there are none. Reflects the latest generation. Conditions raised while preparing the source are reported on the project instead. */ warnings?: ElevenLabs.VoicesNotPermittedWarning[]; diff --git a/src/api/types/DubbingLanguageResponseStatus.ts b/src/api/types/DubbingLanguageResponseStatus.ts index e7aec9904..faac03cd9 100644 --- a/src/api/types/DubbingLanguageResponseStatus.ts +++ b/src/api/types/DubbingLanguageResponseStatus.ts @@ -1,6 +1,6 @@ // This file was auto-generated by Fern from our API Definition. -/** Lifecycle status: 'queued' (waiting on the project), 'processing', 'completed', 'stale' (source/transcript changed), or 'failed'. */ +/** Lifecycle status: `queued` (waiting on the project to be ready, or on a worker), `processing` while it is being dubbed, `completed` once its output is available, `stale` when the transcript changed after the output was produced, or `failed`. */ export const DubbingLanguageResponseStatus = { Queued: "queued", Processing: "processing", diff --git a/src/api/types/DubbingProjectListResponse.ts b/src/api/types/DubbingProjectListResponse.ts index 759304066..0a390841d 100644 --- a/src/api/types/DubbingProjectListResponse.ts +++ b/src/api/types/DubbingProjectListResponse.ts @@ -5,6 +5,6 @@ import type * as ElevenLabs from "../index"; export interface DubbingProjectListResponse { /** The page of dubbing projects the caller can access. */ projects: ElevenLabs.DubbingProjectResponse[]; - /** Cursor for the next page, or null when there are no more results. */ + /** Opaque cursor to pass back as `cursor` for the next page, or null when there are no more results. */ nextCursor?: string; } diff --git a/src/api/types/DubbingProjectResponse.ts b/src/api/types/DubbingProjectResponse.ts index 9ae74c00f..e76be9e4b 100644 --- a/src/api/types/DubbingProjectResponse.ts +++ b/src/api/types/DubbingProjectResponse.ts @@ -5,23 +5,23 @@ import type * as ElevenLabs from "../index"; export interface DubbingProjectResponse { /** Unique identifier of the dubbing project. */ projectId: string; - /** Lifecycle status of the project: 'preparing'/'processing' while it transcribes, 'ready' once transcription is done, or 'failed'. */ + /** Lifecycle status of the project: `queued` before the source is picked up, `preparing` while it is transcribed, `ready` once transcription is done and language targets can start, or `failed`. A project is never reported as `processing` — that value belongs to language targets. */ status: ElevenLabs.DubbingProjectResponseStatus; - /** Optional free-form string the customer can provide to identify the project on their end. */ + /** The free-form string you supplied as `reference` when creating the project, or null if you supplied none. */ reference?: string; /** BCP-47 language tag of the source media (null if auto-detected). */ sourceLanguage?: string; - /** Default dubbing model id applied to this project's language targets. */ + /** Dubbing model every language target of this project is dubbed with. Fixed at create time and not selectable per language. */ modelId?: string; - /** Source media metadata; null until the project is ready. */ + /** Source media metadata, populated once the source has been fetched and decoded (shortly after create, before the project is `ready`); null until then. */ media?: ElevenLabs.DubbingSourceMediaInfo; - /** Identifiers of the language targets created under this project. */ + /** Identifiers of the language targets under this project. Populated when a single project is fetched, and on create when `target_language` creates one. Always empty in list responses — list the project's language targets instead. */ languageIds?: string[]; - /** Workspace webhooks notified when this project becomes ready or fails, and when any of its languages completes or fails. */ + /** IDs of the workspace webhooks notified as this project and its languages reach `ready`, `completed`, or `failed`. */ webhookIds?: string[]; /** Monotonic counter incremented whenever the source transcript is edited (segment add/edit/delete). */ revision: number; - /** Why the project failed; null unless `status` is 'failed'. Also null for the few projects that failed before failure reporting was introduced. */ + /** Why the project failed; null unless `status` is `failed`. Also null for the few projects that failed before failure reporting was introduced. */ error?: ElevenLabs.DubbingError; /** Non-fatal conditions raised while preparing the source, empty when there are none. Reflects the latest preparation. Conditions raised while dubbing a particular language are reported on that language instead. */ warnings?: ElevenLabs.VoicesNotPermittedWarning[]; diff --git a/src/api/types/DubbingProjectResponseStatus.ts b/src/api/types/DubbingProjectResponseStatus.ts index bc0405450..11f2d6286 100644 --- a/src/api/types/DubbingProjectResponseStatus.ts +++ b/src/api/types/DubbingProjectResponseStatus.ts @@ -1,6 +1,6 @@ // This file was auto-generated by Fern from our API Definition. -/** Lifecycle status of the project: 'preparing'/'processing' while it transcribes, 'ready' once transcription is done, or 'failed'. */ +/** Lifecycle status of the project: `queued` before the source is picked up, `preparing` while it is transcribed, `ready` once transcription is done and language targets can start, or `failed`. A project is never reported as `processing` — that value belongs to language targets. */ export const DubbingProjectResponseStatus = { Queued: "queued", Preparing: "preparing", diff --git a/src/api/types/DubbingRegenerateResponse.ts b/src/api/types/DubbingRegenerateResponse.ts index 8eda3ff5f..5b730c742 100644 --- a/src/api/types/DubbingRegenerateResponse.ts +++ b/src/api/types/DubbingRegenerateResponse.ts @@ -6,9 +6,9 @@ export interface DubbingRegenerateResponse { /** The segments this re-dub re-synthesizes: those with edits to apply. */ regeneratedSegmentIds: string[]; - /** Seconds of audio this re-dub covers -- the edited regions only, never the whole target. `charged_seconds` is the part of it that was billed. */ + /** Seconds of audio this re-dub covers — the edited regions only, never the whole target. `charged_seconds` is the part of it that was billed. */ regeneratedSeconds: number; - /** Seconds actually billed, after the free-regeneration allowance. Zero when the re-dub cost nothing -- the allowance covered all of it, or the project's included generation did. */ + /** Seconds actually billed, after the free-regeneration allowance. Zero when the re-dub cost nothing — either the allowance covered all of it, or the project's included generation did. */ chargedSeconds: number; /** Free-regeneration seconds left for this language target after this re-dub. The allowance is the source's own duration. */ freeRegenerationSecondsRemaining: number; diff --git a/src/api/types/DubbingReleaseChannel.ts b/src/api/types/DubbingReleaseChannel.ts new file mode 100644 index 000000000..8794563b6 --- /dev/null +++ b/src/api/types/DubbingReleaseChannel.ts @@ -0,0 +1,8 @@ +// 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/DubbingSegmentUpdateRequest.ts b/src/api/types/DubbingSegmentUpdateRequest.ts index d6cf1467c..d5ec12a06 100644 --- a/src/api/types/DubbingSegmentUpdateRequest.ts +++ b/src/api/types/DubbingSegmentUpdateRequest.ts @@ -6,7 +6,7 @@ export interface DubbingSegmentUpdateRequest { /** New text for the segment. */ text?: string; - /** New speaker id for the segment. */ + /** New speaker ID for the segment. */ speakerId?: string; /** New start time, in seconds. */ startS?: number; diff --git a/src/api/types/DubbingSourceMediaInfo.ts b/src/api/types/DubbingSourceMediaInfo.ts index 27aa84fd3..bc2b0b814 100644 --- a/src/api/types/DubbingSourceMediaInfo.ts +++ b/src/api/types/DubbingSourceMediaInfo.ts @@ -6,10 +6,10 @@ export interface DubbingSourceMediaInfo { /** Original filename of the uploaded source media (null for URL sources). */ filename?: string; - /** Duration of the source media in seconds. */ + /** Duration of the source media, in seconds. */ durationS?: number; /** Whether the source media contains a video stream. */ hasVideo?: boolean; - /** MIME type of the uploaded source media. */ + /** MIME type of the uploaded source media (null for URL sources). */ mimeType?: string; } diff --git a/src/api/types/DubbingTargetSegmentUpdateRequest.ts b/src/api/types/DubbingTargetSegmentUpdateRequest.ts index 4f5a56f01..287082fb7 100644 --- a/src/api/types/DubbingTargetSegmentUpdateRequest.ts +++ b/src/api/types/DubbingTargetSegmentUpdateRequest.ts @@ -1,7 +1,7 @@ // This file was auto-generated by Fern from our API Definition. /** - * A partial edit to a target segment. An omitted field is left unchanged; a provided ``null`` + * A partial edit to a target segment. An omitted field is left unchanged; a provided `null` * clears it (see each field for what clearing means). */ export interface DubbingTargetSegmentUpdateRequest { diff --git a/src/api/types/DubbingTranscriptRevisionResponse.ts b/src/api/types/DubbingTranscriptRevisionResponse.ts index 58cbe2a91..67b32b3bc 100644 --- a/src/api/types/DubbingTranscriptRevisionResponse.ts +++ b/src/api/types/DubbingTranscriptRevisionResponse.ts @@ -1,7 +1,7 @@ // This file was auto-generated by Fern from our API Definition. /** - * The new revision after a source edit that returns no segment (e.g. a delete). + * The new revision after a source edit that returns no segment, such as a delete. */ export interface DubbingTranscriptRevisionResponse { /** The project's source-transcript revision after this edit. */ diff --git a/src/api/types/DubbingTranscriptSegment.ts b/src/api/types/DubbingTranscriptSegment.ts index 474ebe841..30e8f9bac 100644 --- a/src/api/types/DubbingTranscriptSegment.ts +++ b/src/api/types/DubbingTranscriptSegment.ts @@ -4,7 +4,7 @@ * One segment of a source transcript. */ export interface DubbingTranscriptSegment { - /** Stable identifier of the segment. */ + /** Stable identifier of the segment, used to address it in edit requests. */ id: string; /** The transcribed text of the segment. */ text: string; @@ -14,6 +14,6 @@ export interface DubbingTranscriptSegment { startS: number; /** End time of the segment, in seconds. */ endS: number; - /** The caller-supplied external id for this segment, if one was provided. */ + /** The caller-supplied external ID for this segment, if one was provided. */ externalId?: string; } diff --git a/src/api/types/EffectsSpecInput.ts b/src/api/types/EffectsSpecInput.ts new file mode 100644 index 000000000..c10c08c52 --- /dev/null +++ b/src/api/types/EffectsSpecInput.ts @@ -0,0 +1,13 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * Filter preset, distance (proximity EQ), and environment (convolution reverb). + */ +export interface EffectsSpecInput { + filterPresetId?: string; + distance?: number; + environmentId?: string; + backgroundNoiseId?: string; + sendLevel?: number; + seed?: number; +} diff --git a/src/api/types/EffectsSpecOutput.ts b/src/api/types/EffectsSpecOutput.ts new file mode 100644 index 000000000..f85f8cbd7 --- /dev/null +++ b/src/api/types/EffectsSpecOutput.ts @@ -0,0 +1,13 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * Filter preset, distance (proximity EQ), and environment (convolution reverb). + */ +export interface EffectsSpecOutput { + filterPresetId?: string; + distance: number; + environmentId?: string; + backgroundNoiseId?: string; + sendLevel: number; + seed?: number; +} diff --git a/src/api/types/EndProcedureToolConfig.ts b/src/api/types/EndProcedureToolConfig.ts new file mode 100644 index 000000000..3183fbba5 --- /dev/null +++ b/src/api/types/EndProcedureToolConfig.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as ElevenLabs from "../index"; + +export interface EndProcedureToolConfig { + procedures?: Record; +} diff --git a/src/api/types/EndProcedureToolConfigInput.ts b/src/api/types/EndProcedureToolConfigInput.ts deleted file mode 100644 index 6f59f8022..000000000 --- a/src/api/types/EndProcedureToolConfigInput.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as ElevenLabs from "../index"; - -export interface EndProcedureToolConfigInput { - procedures?: Record; -} diff --git a/src/api/types/EndProcedureToolConfigOutput.ts b/src/api/types/EndProcedureToolConfigOutput.ts deleted file mode 100644 index b68e8c378..000000000 --- a/src/api/types/EndProcedureToolConfigOutput.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as ElevenLabs from "../index"; - -export interface EndProcedureToolConfigOutput { - procedures?: Record; -} diff --git a/src/api/types/EndProcedureToolConfigProceduresValue.ts b/src/api/types/EndProcedureToolConfigProceduresValue.ts new file mode 100644 index 000000000..02b8d3245 --- /dev/null +++ b/src/api/types/EndProcedureToolConfigProceduresValue.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as ElevenLabs from "../index"; + +export type EndProcedureToolConfigProceduresValue = ElevenLabs.ProcedureVersionRef | ElevenLabs.ProcedureDraftRef; diff --git a/src/api/types/ExperimentAssignment.ts b/src/api/types/ExperimentAssignment.ts new file mode 100644 index 000000000..3a4ca2999 --- /dev/null +++ b/src/api/types/ExperimentAssignment.ts @@ -0,0 +1,16 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as ElevenLabs from "../index"; + +/** + * Experiment membership recorded on a conversation. + */ +export interface ExperimentAssignment { + /** Experiment key. */ + key: string; + /** Variant identifier: the branch id for server_branch, or the client-supplied variant for client_declared. */ + variant: string; + source: ElevenLabs.ExperimentAssignmentSource; + /** The AgentExperiment id, when the assignment maps to a registered experiment. */ + experimentId?: string; +} diff --git a/src/api/types/ExperimentAssignmentSource.ts b/src/api/types/ExperimentAssignmentSource.ts new file mode 100644 index 000000000..406188a59 --- /dev/null +++ b/src/api/types/ExperimentAssignmentSource.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ExperimentAssignmentSource = { + ServerBranch: "server_branch", + ClientDeclared: "client_declared", +} as const; +export type ExperimentAssignmentSource = (typeof ExperimentAssignmentSource)[keyof typeof ExperimentAssignmentSource]; diff --git a/src/api/types/GuardrailsResult.ts b/src/api/types/GuardrailsResult.ts new file mode 100644 index 000000000..fad255feb --- /dev/null +++ b/src/api/types/GuardrailsResult.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +export interface GuardrailsResult { + triggered?: boolean; +} diff --git a/src/api/types/HidingReason.ts b/src/api/types/HidingReason.ts new file mode 100644 index 000000000..bc09e6a09 --- /dev/null +++ b/src/api/types/HidingReason.ts @@ -0,0 +1,3 @@ +// This file was auto-generated by Fern from our API Definition. + +export type HidingReason = "smb_assistant"; diff --git a/src/api/types/InternalSamplingConfigResponseModel.ts b/src/api/types/InternalSamplingConfigResponseModel.ts new file mode 100644 index 000000000..576305e3d --- /dev/null +++ b/src/api/types/InternalSamplingConfigResponseModel.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +export interface InternalSamplingConfigResponseModel { + focus?: number; + similarity?: number; + stability?: number; +} diff --git a/src/api/types/LlmInfoModelInput.ts b/src/api/types/LlmInfoModel.ts similarity index 97% rename from src/api/types/LlmInfoModelInput.ts rename to src/api/types/LlmInfoModel.ts index e96f509fe..f9b1fc3ad 100644 --- a/src/api/types/LlmInfoModelInput.ts +++ b/src/api/types/LlmInfoModel.ts @@ -2,7 +2,7 @@ import type * as ElevenLabs from "../index"; -export interface LlmInfoModelInput { +export interface LlmInfoModel { /** The model identifier. */ llm: ElevenLabs.Llm; /** Whether this is a pinned checkpoint version of a model rather than a top-level alias. */ diff --git a/src/api/types/LlmInfoModelOutput.ts b/src/api/types/LlmInfoModelOutput.ts deleted file mode 100644 index 7391c9bab..000000000 --- a/src/api/types/LlmInfoModelOutput.ts +++ /dev/null @@ -1,26 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as ElevenLabs from "../index"; - -export interface LlmInfoModelOutput { - /** The model identifier. */ - llm: ElevenLabs.Llm; - /** Whether this is a pinned checkpoint version of a model rather than a top-level alias. */ - isCheckpoint: boolean; - /** Maximum number of output tokens the model can generate. */ - maxTokensLimit: number; - /** Maximum number of input context tokens the model supports. */ - maxContextLimit: number; - /** Whether the model supports image file inputs during conversations. */ - supportsImageInput: boolean; - /** Whether the model supports document (PDF) file inputs during conversations. */ - supportsDocumentInput: boolean; - /** Whether the model supports calling multiple tools in parallel. */ - supportsParallelToolCalls: boolean; - /** Available reasoning effort levels for this model. Null if the model does not support configurable reasoning. */ - availableReasoningEfforts?: ElevenLabs.LlmReasoningEffort[]; - /** Deprecation information if this model is deprecated or scheduled for deprecation. Null if the model is not affected. */ - deprecationInfo?: ElevenLabs.LlmDeprecationInfoModel; - /** Regional processing surcharge details if this model has additional costs in the current deployment region. Null if no surcharge applies. */ - regionalProcessingSurcharge?: ElevenLabs.RegionalProcessingSurchargeInfo; -} diff --git a/src/api/types/LlmListResponseModelInput.ts b/src/api/types/LlmListResponseModel.ts similarity index 80% rename from src/api/types/LlmListResponseModelInput.ts rename to src/api/types/LlmListResponseModel.ts index f2ce676fc..6eecd5318 100644 --- a/src/api/types/LlmListResponseModelInput.ts +++ b/src/api/types/LlmListResponseModel.ts @@ -2,9 +2,9 @@ import type * as ElevenLabs from "../index"; -export interface LlmListResponseModelInput { +export interface LlmListResponseModel { /** List of all available LLM models that can be used with agents. */ - llms: ElevenLabs.LlmInfoModelInput[]; + llms: ElevenLabs.LlmInfoModel[]; /** The default deprecation timing configuration used for models without a custom override. */ defaultDeprecationConfig: ElevenLabs.LlmDeprecationConfigModel; } diff --git a/src/api/types/LlmListResponseModelOutput.ts b/src/api/types/LlmListResponseModelOutput.ts deleted file mode 100644 index bb4be9077..000000000 --- a/src/api/types/LlmListResponseModelOutput.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as ElevenLabs from "../index"; - -export interface LlmListResponseModelOutput { - /** List of all available LLM models that can be used with agents. */ - llms: ElevenLabs.LlmInfoModelOutput[]; - /** The default deprecation timing configuration used for models without a custom override. */ - defaultDeprecationConfig: ElevenLabs.LlmDeprecationConfigModel; -} diff --git a/src/api/types/ModerationStatusResponseModel.ts b/src/api/types/ModerationStatusResponseModel.ts new file mode 100644 index 000000000..1b199aee1 --- /dev/null +++ b/src/api/types/ModerationStatusResponseModel.ts @@ -0,0 +1,26 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as ElevenLabs from "../index"; + +export interface ModerationStatusResponseModel { + /** Whether the user is in probation. */ + isInProbation: boolean; + /** Whether the user's enterprise check nogo voice is enabled. */ + enterpriseCheckNogoVoice: boolean; + /** Whether the user's enterprise check block nogo voice is enabled. */ + enterpriseCheckBlockNogoVoice: boolean; + /** Whether the user's never live moderate is enabled. */ + neverLiveModerate: boolean; + /** The number of similar voice uploads that have been blocked. */ + nogoVoiceSimilarVoiceUploadCount: number; + /** Whether the user's enterprise background moderation is enabled. */ + enterpriseBackgroundModerationEnabled: boolean; + /** Whether captcha is required when creating IVCs. */ + isIvcCaptchaRequired: boolean; + /** The safety status of the user. */ + safetyStatus?: ElevenLabs.ModerationStatusResponseModelSafetyStatus; + /** The warning status of the user. */ + warningStatus?: ElevenLabs.ModerationStatusResponseModelWarningStatus; + /** Whether the user is on the watchlist. */ + onWatchlist: boolean; +} diff --git a/src/api/types/ModerationStatusResponseModelSafetyStatus.ts b/src/api/types/ModerationStatusResponseModelSafetyStatus.ts new file mode 100644 index 000000000..919f387d0 --- /dev/null +++ b/src/api/types/ModerationStatusResponseModelSafetyStatus.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ModerationStatusResponseModelSafetyStatus = { + AppealApproved: "appeal_approved", + AppealDenied: "appeal_denied", + FalsePositive: "false_positive", +} as const; +export type ModerationStatusResponseModelSafetyStatus = + (typeof ModerationStatusResponseModelSafetyStatus)[keyof typeof ModerationStatusResponseModelSafetyStatus]; diff --git a/src/api/types/ModerationStatusResponseModelWarningStatus.ts b/src/api/types/ModerationStatusResponseModelWarningStatus.ts new file mode 100644 index 000000000..c337c103a --- /dev/null +++ b/src/api/types/ModerationStatusResponseModelWarningStatus.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ModerationStatusResponseModelWarningStatus = { + Warning: "warning", + WarningCleared: "warning_cleared", +} as const; +export type ModerationStatusResponseModelWarningStatus = + (typeof ModerationStatusResponseModelWarningStatus)[keyof typeof ModerationStatusResponseModelWarningStatus]; diff --git a/src/api/types/MusicUploadResponse.ts b/src/api/types/MusicUploadResponse.ts index 33cdd6d8f..bf75f1627 100644 --- a/src/api/types/MusicUploadResponse.ts +++ b/src/api/types/MusicUploadResponse.ts @@ -12,4 +12,6 @@ export interface MusicUploadResponse { compositionPlan?: ElevenLabs.MusicUploadResponseCompositionPlan; /** Word-level timestamps transcribed from the uploaded song. Only present if `with_timestamps` was True in the request body */ wordsTimestamps?: ElevenLabs.WordTimestamp[]; + /** A low-resolution waveform of the uploaded song, for showing a preview of it. Holds 4 values per second of audio, from -1000 to 1000. Stereo is mixed down to a single channel. Only present if `with_waveform_visual` was True in the request body. */ + waveformVisual?: number[]; } diff --git a/src/api/types/OTelAttribute.ts b/src/api/types/OTelAttribute.ts new file mode 100644 index 000000000..8ca9d61e3 --- /dev/null +++ b/src/api/types/OTelAttribute.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as ElevenLabs from "../index"; + +export interface OTelAttribute { + key: string; + value: Record; +} diff --git a/src/api/types/OTelAttributeValueValue.ts b/src/api/types/OTelAttributeValueValue.ts new file mode 100644 index 000000000..9c94c2837 --- /dev/null +++ b/src/api/types/OTelAttributeValueValue.ts @@ -0,0 +1,3 @@ +// This file was auto-generated by Fern from our API Definition. + +export type OTelAttributeValueValue = string | boolean | number; diff --git a/src/api/types/OTelResource.ts b/src/api/types/OTelResource.ts new file mode 100644 index 000000000..d9f071fca --- /dev/null +++ b/src/api/types/OTelResource.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as ElevenLabs from "../index"; + +export interface OTelResource { + attributes: ElevenLabs.OTelAttribute[]; +} diff --git a/src/api/types/OTelResourceSpans.ts b/src/api/types/OTelResourceSpans.ts new file mode 100644 index 000000000..c132c1028 --- /dev/null +++ b/src/api/types/OTelResourceSpans.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as ElevenLabs from "../index"; + +export interface OTelResourceSpans { + resource: ElevenLabs.OTelResource; + scopeSpans: ElevenLabs.OTelScopeSpans[]; +} diff --git a/src/api/types/OTelScope.ts b/src/api/types/OTelScope.ts new file mode 100644 index 000000000..576ff6c32 --- /dev/null +++ b/src/api/types/OTelScope.ts @@ -0,0 +1,6 @@ +// This file was auto-generated by Fern from our API Definition. + +export interface OTelScope { + name: string; + version: string; +} diff --git a/src/api/types/OTelScopeSpans.ts b/src/api/types/OTelScopeSpans.ts new file mode 100644 index 000000000..5797473d7 --- /dev/null +++ b/src/api/types/OTelScopeSpans.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as ElevenLabs from "../index"; + +export interface OTelScopeSpans { + scope: ElevenLabs.OTelScope; + spans: ElevenLabs.OTelSpan[]; +} diff --git a/src/api/types/OTelSpan.ts b/src/api/types/OTelSpan.ts new file mode 100644 index 000000000..46e5e7847 --- /dev/null +++ b/src/api/types/OTelSpan.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as ElevenLabs from "../index"; + +export interface OTelSpan { + traceId: string; + spanId: string; + parentSpanId?: string; + name: string; + kind: number; + startTimeUnixNano: string; + endTimeUnixNano: string; + attributes: ElevenLabs.OTelAttribute[]; + status: ElevenLabs.OTelStatus; +} diff --git a/src/api/types/OTelStatus.ts b/src/api/types/OTelStatus.ts new file mode 100644 index 000000000..d17d041a1 --- /dev/null +++ b/src/api/types/OTelStatus.ts @@ -0,0 +1,6 @@ +// This file was auto-generated by Fern from our API Definition. + +export interface OTelStatus { + code: number; + message?: string; +} diff --git a/src/api/types/OTelTracePayload.ts b/src/api/types/OTelTracePayload.ts new file mode 100644 index 000000000..70cf6c792 --- /dev/null +++ b/src/api/types/OTelTracePayload.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as ElevenLabs from "../index"; + +export interface OTelTracePayload { + resourceSpans: ElevenLabs.OTelResourceSpans[]; +} diff --git a/src/api/types/OrderState.ts b/src/api/types/OrderState.ts index 649807708..0e31aeb10 100644 --- a/src/api/types/OrderState.ts +++ b/src/api/types/OrderState.ts @@ -10,5 +10,6 @@ export const OrderState = { Cancelling: "cancelling", Cancelled: "cancelled", Expired: "expired", + Merged: "merged", } as const; export type OrderState = (typeof OrderState)[keyof typeof OrderState]; diff --git a/src/api/types/PendingSubscriptionSwitchResponseModelNextTier.ts b/src/api/types/PendingSubscriptionSwitchResponseModelNextTier.ts index bdde9e79d..5cb2ad866 100644 --- a/src/api/types/PendingSubscriptionSwitchResponseModelNextTier.ts +++ b/src/api/types/PendingSubscriptionSwitchResponseModelNextTier.ts @@ -11,6 +11,7 @@ export const PendingSubscriptionSwitchResponseModelNextTier = { Scale20240810: "scale_2024_08_10", GrantTier120250723: "grant_tier_1_2025_07_23", GrantTier220250723: "grant_tier_2_2025_07_23", + Grant: "grant", Trial: "trial", Enterprise: "enterprise", } as const; diff --git a/src/api/types/PhoneNumberTransfer.ts b/src/api/types/PhoneNumberTransfer.ts index 3bbe20354..7a33bc54a 100644 --- a/src/api/types/PhoneNumberTransfer.ts +++ b/src/api/types/PhoneNumberTransfer.ts @@ -7,6 +7,8 @@ export interface PhoneNumberTransfer { customSipHeaders?: ElevenLabs.PhoneNumberTransferCustomSipHeadersItem[]; transferDestination: ElevenLabs.PhoneNumberTransferTransferDestination; transferType?: ElevenLabs.TransferTypeEnum; + /** When True, a ringing tone is played on the original call leg while a SIP REFER transfer completes. The tone is carried over RTP to the SIP peer executing the REFER, so disable this if the receiving system (e.g. an SBC or contact center) should not hear it. When disabled the caller hears silence until the transfer completes. SIP REFER transfers only. */ + sipReferPlayDialtone?: boolean; /** User-to-User Information (RFC 7433) to attach to SIP REFER transfers. Carries call context such as CRM identifiers or escalation reason across the transfer boundary. */ uui?: ElevenLabs.UuiTransferConfig; /** DTMF digits to send after call connects (e.g., 'ww1234' for extension). Can be either a static value or a dynamic variable reference. Use 'w' for 0.5s pause. Only supported for Twilio transfers. */ diff --git a/src/api/types/ProcedureAtVersionInput.ts b/src/api/types/ProcedureAtVersionInput.ts deleted file mode 100644 index 9b2502aea..000000000 --- a/src/api/types/ProcedureAtVersionInput.ts +++ /dev/null @@ -1,28 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as ElevenLabs from "../index"; - -export interface ProcedureAtVersionInput { - /** Procedure ID */ - procedureId: string; - /** Procedure name */ - name: string; - type?: ElevenLabs.ProcedureType; - /** When the agent should use this procedure. Empty string means this is a sub-procedure that should only start when another procedure references it. */ - trigger?: string; - /** Tool IDs referenced in the procedure content */ - referencedToolIds?: string[]; - /** Knowledge base IDs referenced in the procedure content */ - referencedKbIds?: string[]; - /** Procedure IDs referenced in the procedure content */ - referencedProcedureIds?: string[]; - /** Dynamic variable names used in the procedure content */ - referencedDynamicVariables?: string[]; - /** Procedure content */ - content: string; - guardrails?: ElevenLabs.CustomGuardrailConfig[]; - /** Agent ID of the procedure */ - agentId: string; - /** Version ID of a version of the procedure. None for a procedure never versioned. */ - versionId?: string; -} diff --git a/src/api/types/ProcedureAtVersionOutput.ts b/src/api/types/ProcedureAtVersionOutput.ts deleted file mode 100644 index 8308848ae..000000000 --- a/src/api/types/ProcedureAtVersionOutput.ts +++ /dev/null @@ -1,28 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as ElevenLabs from "../index"; - -export interface ProcedureAtVersionOutput { - /** Procedure ID */ - procedureId: string; - /** Procedure name */ - name: string; - type?: ElevenLabs.ProcedureType; - /** When the agent should use this procedure. Empty string means this is a sub-procedure that should only start when another procedure references it. */ - trigger?: string; - /** Tool IDs referenced in the procedure content */ - referencedToolIds?: string[]; - /** Knowledge base IDs referenced in the procedure content */ - referencedKbIds?: string[]; - /** Procedure IDs referenced in the procedure content */ - referencedProcedureIds?: string[]; - /** Dynamic variable names used in the procedure content */ - referencedDynamicVariables?: string[]; - /** Procedure content */ - content: string; - guardrails?: ElevenLabs.CustomGuardrailConfig[]; - /** Agent ID of the procedure */ - agentId: string; - /** Version ID of a version of the procedure. None for a procedure never versioned. */ - versionId?: string; -} diff --git a/src/api/types/ProcedureDraftRef.ts b/src/api/types/ProcedureDraftRef.ts new file mode 100644 index 000000000..eb5f22c53 --- /dev/null +++ b/src/api/types/ProcedureDraftRef.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +export interface ProcedureDraftRef { + /** Procedure ID */ + procedureId: string; + versionId?: unknown; +} diff --git a/src/api/types/RagConfigInput.ts b/src/api/types/RagConfigInput.ts index 9b3cd74c5..409567a8c 100644 --- a/src/api/types/RagConfigInput.ts +++ b/src/api/types/RagConfigInput.ts @@ -15,4 +15,6 @@ export interface RagConfigInput { numCandidates?: number; /** Custom prompt for rewriting user queries before RAG retrieval. The conversation history will be automatically appended at the end. If not set, the default prompt will be used. */ queryRewritePromptOverride?: string; + /** When set, the agent uses the knowledge_base tool instead of the legacy knowledge_base_rag tool. None means the agent is not opted in. */ + knowledgeBaseToolInfo?: ElevenLabs.KnowledgeBaseToolInfo; } diff --git a/src/api/types/RagConfigOutput.ts b/src/api/types/RagConfigOutput.ts index 6ea4e1ebb..4e45acc82 100644 --- a/src/api/types/RagConfigOutput.ts +++ b/src/api/types/RagConfigOutput.ts @@ -15,4 +15,6 @@ export interface RagConfigOutput { numCandidates?: number; /** Custom prompt for rewriting user queries before RAG retrieval. The conversation history will be automatically appended at the end. If not set, the default prompt will be used. */ queryRewritePromptOverride?: string; + /** When set, the agent uses the knowledge_base tool instead of the legacy knowledge_base_rag tool. None means the agent is not opted in. */ + knowledgeBaseToolInfo?: ElevenLabs.KnowledgeBaseToolInfo; } diff --git a/src/api/types/RagConfigWorkflowOverrideInput.ts b/src/api/types/RagConfigWorkflowOverrideInput.ts index c9462357d..7dfd96392 100644 --- a/src/api/types/RagConfigWorkflowOverrideInput.ts +++ b/src/api/types/RagConfigWorkflowOverrideInput.ts @@ -15,4 +15,6 @@ export interface RagConfigWorkflowOverrideInput { numCandidates?: number; /** Custom prompt for rewriting user queries before RAG retrieval. The conversation history will be automatically appended at the end. If not set, the default prompt will be used. */ queryRewritePromptOverride?: string; + /** When set, the agent uses the knowledge_base tool instead of the legacy knowledge_base_rag tool. None means the agent is not opted in. */ + knowledgeBaseToolInfo?: ElevenLabs.KnowledgeBaseToolInfo; } diff --git a/src/api/types/RagConfigWorkflowOverrideOutput.ts b/src/api/types/RagConfigWorkflowOverrideOutput.ts index f69e65bb0..c40b7264e 100644 --- a/src/api/types/RagConfigWorkflowOverrideOutput.ts +++ b/src/api/types/RagConfigWorkflowOverrideOutput.ts @@ -15,4 +15,6 @@ export interface RagConfigWorkflowOverrideOutput { numCandidates?: number; /** Custom prompt for rewriting user queries before RAG retrieval. The conversation history will be automatically appended at the end. If not set, the default prompt will be used. */ queryRewritePromptOverride?: string; + /** When set, the agent uses the knowledge_base tool instead of the legacy knowledge_base_rag tool. None means the agent is not opted in. */ + knowledgeBaseToolInfo?: ElevenLabs.KnowledgeBaseToolInfo; } diff --git a/src/api/types/SmbAgentType.ts b/src/api/types/SmbAgentType.ts new file mode 100644 index 000000000..2303e119e --- /dev/null +++ b/src/api/types/SmbAgentType.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +export const SmbAgentType = { + CustomerFacing: "customer_facing", + Assistant: "assistant", +} as const; +export type SmbAgentType = (typeof SmbAgentType)[keyof typeof SmbAgentType]; diff --git a/src/api/types/StartProcedureToolConfig.ts b/src/api/types/StartProcedureToolConfig.ts new file mode 100644 index 000000000..c1ec0100a --- /dev/null +++ b/src/api/types/StartProcedureToolConfig.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as ElevenLabs from "../index"; + +export interface StartProcedureToolConfig { + procedures?: Record; +} diff --git a/src/api/types/StartProcedureToolConfigInput.ts b/src/api/types/StartProcedureToolConfigInput.ts deleted file mode 100644 index 3d15e40da..000000000 --- a/src/api/types/StartProcedureToolConfigInput.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as ElevenLabs from "../index"; - -export interface StartProcedureToolConfigInput { - procedures?: Record; -} diff --git a/src/api/types/StartProcedureToolConfigOutput.ts b/src/api/types/StartProcedureToolConfigOutput.ts deleted file mode 100644 index b3d684810..000000000 --- a/src/api/types/StartProcedureToolConfigOutput.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as ElevenLabs from "../index"; - -export interface StartProcedureToolConfigOutput { - procedures?: Record; -} diff --git a/src/api/types/StartProcedureToolConfigProceduresValue.ts b/src/api/types/StartProcedureToolConfigProceduresValue.ts new file mode 100644 index 000000000..8106efad3 --- /dev/null +++ b/src/api/types/StartProcedureToolConfigProceduresValue.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as ElevenLabs from "../index"; + +export type StartProcedureToolConfigProceduresValue = ElevenLabs.ProcedureVersionRef | ElevenLabs.ProcedureDraftRef; diff --git a/src/api/types/SubscriptionExtrasResponseModel.ts b/src/api/types/SubscriptionExtrasResponseModel.ts new file mode 100644 index 000000000..2e9eaebc6 --- /dev/null +++ b/src/api/types/SubscriptionExtrasResponseModel.ts @@ -0,0 +1,36 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as ElevenLabs from "../index"; + +export interface SubscriptionExtrasResponseModel { + /** The concurrency of the user. */ + concurrency: number; + /** The Convai concurrency of the user. */ + convaiConcurrency: number; + /** The Music concurrency of the user on enterprise plan. */ + enterpriseMusicConcurrency?: number; + /** Custom total finetunes limit for the user. */ + musicFinetunesTotalLimit?: number; + /** Custom monthly finetunes limit for the user. */ + musicFinetunesMonthlyLimit?: number; + /** Custom finetunes concurrency limit for the user. */ + musicFinetunesConcurrencyLimit?: number; + /** The Convai characters per minute of the user. This field is deprecated and will always return None. */ + convaiCharsPerMinute?: number; + /** The Convai ASR characters per minute of the user. This field is deprecated and will always return None. */ + convaiAsrCharsPerMinute?: number; + /** Whether the user's logging is disabled. */ + forceLoggingDisabled: boolean; + /** Whether the user can request manual pro voice verification. */ + canRequestManualProVoiceVerification: boolean; + /** Whether the user can bypass the voice captcha. */ + canBypassVoiceCaptcha: boolean; + /** The moderation status of the user. */ + moderation: ElevenLabs.ModerationStatusResponseModel; + /** The unused characters rolled over from the previous period. */ + unusedCharactersRolledOverFromPreviousPeriod?: number; + /** The overused characters rolled over from the previous period. */ + overusedCharactersRolledOverFromPreviousPeriod?: number; + /** Data on how the subscription is being used. */ + usage?: ElevenLabs.SubscriptionUsageResponseModel; +} diff --git a/src/api/types/SubscriptionUsageResponseModel.ts b/src/api/types/SubscriptionUsageResponseModel.ts new file mode 100644 index 000000000..2e81b6825 --- /dev/null +++ b/src/api/types/SubscriptionUsageResponseModel.ts @@ -0,0 +1,24 @@ +// This file was auto-generated by Fern from our API Definition. + +export interface SubscriptionUsageResponseModel { + /** The rollover credits quota. */ + rolloverCreditsQuota: number; + /** The subscription cycle credits quota. */ + subscriptionCycleCreditsQuota: number; + /** The manually gifted credits quota. */ + manuallyGiftedCreditsQuota: number; + /** The payg credits quota. */ + paygCreditsQuota?: number; + /** The rollover credits used. */ + rolloverCreditsUsed: number; + /** The subscription cycle credits used. */ + subscriptionCycleCreditsUsed: number; + /** The manually gifted credits used. */ + manuallyGiftedCreditsUsed: number; + /** The payg credits used. */ + paygCreditsUsed?: number; + /** The paid usage based credits used. */ + paidUsageBasedCreditsUsed: number; + /** The actual reported credits. */ + actualReportedCredits: number; +} diff --git a/src/api/types/SystemToolConfigInputParams.ts b/src/api/types/SystemToolConfigInputParams.ts index 7a37b44b6..742482e43 100644 --- a/src/api/types/SystemToolConfigInputParams.ts +++ b/src/api/types/SystemToolConfigInputParams.ts @@ -21,7 +21,7 @@ export namespace SystemToolConfigInputParams { systemToolType: "end_call"; } - export interface EndProcedure extends ElevenLabs.EndProcedureToolConfigInput { + export interface EndProcedure extends ElevenLabs.EndProcedureToolConfig { systemToolType: "end_procedure"; } @@ -49,7 +49,7 @@ export namespace SystemToolConfigInputParams { systemToolType: "skip_turn"; } - export interface StartProcedure extends ElevenLabs.StartProcedureToolConfigInput { + export interface StartProcedure extends ElevenLabs.StartProcedureToolConfig { systemToolType: "start_procedure"; } diff --git a/src/api/types/SystemToolConfigOutputParams.ts b/src/api/types/SystemToolConfigOutputParams.ts index 551ac73b9..9925ece57 100644 --- a/src/api/types/SystemToolConfigOutputParams.ts +++ b/src/api/types/SystemToolConfigOutputParams.ts @@ -21,7 +21,7 @@ export namespace SystemToolConfigOutputParams { systemToolType: "end_call"; } - export interface EndProcedure extends ElevenLabs.EndProcedureToolConfigOutput { + export interface EndProcedure extends ElevenLabs.EndProcedureToolConfig { systemToolType: "end_procedure"; } @@ -49,7 +49,7 @@ export namespace SystemToolConfigOutputParams { systemToolType: "skip_turn"; } - export interface StartProcedure extends ElevenLabs.StartProcedureToolConfigOutput { + export interface StartProcedure extends ElevenLabs.StartProcedureToolConfig { systemToolType: "start_procedure"; } diff --git a/src/api/types/TtsConversationalConfigInput.ts b/src/api/types/TtsConversationalConfigInput.ts index 47284fef8..9271ec892 100644 --- a/src/api/types/TtsConversationalConfigInput.ts +++ b/src/api/types/TtsConversationalConfigInput.ts @@ -29,4 +29,6 @@ export interface TtsConversationalConfigInput { pronunciationDictionaryLocators?: ElevenLabs.PydanticPronunciationDictionaryVersionLocator[]; /** Opt-in to SSML phoneme tag handling for V3 models. When enabled, phoneme tags (inline and from pronunciation dictionaries) are parsed into inline IPA before being sent to the model. */ enablePhonemeTags?: boolean; + /** Optional TTS effects spec: filter preset, distance (proximity EQ), and environment (convolution reverb). */ + audioEffects?: ElevenLabs.EffectsSpecInput; } diff --git a/src/api/types/TtsConversationalConfigOutput.ts b/src/api/types/TtsConversationalConfigOutput.ts index 493194a4d..26497a291 100644 --- a/src/api/types/TtsConversationalConfigOutput.ts +++ b/src/api/types/TtsConversationalConfigOutput.ts @@ -29,4 +29,6 @@ export interface TtsConversationalConfigOutput { pronunciationDictionaryLocators?: ElevenLabs.PydanticPronunciationDictionaryVersionLocator[]; /** Opt-in to SSML phoneme tag handling for V3 models. When enabled, phoneme tags (inline and from pronunciation dictionaries) are parsed into inline IPA before being sent to the model. */ enablePhonemeTags?: boolean; + /** Optional TTS effects spec: filter preset, distance (proximity EQ), and environment (convolution reverb). */ + audioEffects?: ElevenLabs.EffectsSpecOutput; } diff --git a/src/api/types/TtsConversationalConfigWorkflowOverrideInput.ts b/src/api/types/TtsConversationalConfigWorkflowOverrideInput.ts index c6721c8da..82fe07e75 100644 --- a/src/api/types/TtsConversationalConfigWorkflowOverrideInput.ts +++ b/src/api/types/TtsConversationalConfigWorkflowOverrideInput.ts @@ -29,4 +29,6 @@ export interface TtsConversationalConfigWorkflowOverrideInput { pronunciationDictionaryLocators?: ElevenLabs.PydanticPronunciationDictionaryVersionLocator[]; /** Opt-in to SSML phoneme tag handling for V3 models. When enabled, phoneme tags (inline and from pronunciation dictionaries) are parsed into inline IPA before being sent to the model. */ enablePhonemeTags?: boolean; + /** Optional TTS effects spec: filter preset, distance (proximity EQ), and environment (convolution reverb). */ + audioEffects?: ElevenLabs.EffectsSpecInput; } diff --git a/src/api/types/TtsConversationalConfigWorkflowOverrideOutput.ts b/src/api/types/TtsConversationalConfigWorkflowOverrideOutput.ts index f1c7ed1b5..ab8ad5fd5 100644 --- a/src/api/types/TtsConversationalConfigWorkflowOverrideOutput.ts +++ b/src/api/types/TtsConversationalConfigWorkflowOverrideOutput.ts @@ -29,4 +29,6 @@ export interface TtsConversationalConfigWorkflowOverrideOutput { pronunciationDictionaryLocators?: ElevenLabs.PydanticPronunciationDictionaryVersionLocator[]; /** Opt-in to SSML phoneme tag handling for V3 models. When enabled, phoneme tags (inline and from pronunciation dictionaries) are parsed into inline IPA before being sent to the model. */ enablePhonemeTags?: boolean; + /** Optional TTS effects spec: filter preset, distance (proximity EQ), and environment (convolution reverb). */ + audioEffects?: ElevenLabs.EffectsSpecOutput; } diff --git a/src/api/types/VoicesNotPermittedWarning.ts b/src/api/types/VoicesNotPermittedWarning.ts index cdc283603..2109459af 100644 --- a/src/api/types/VoicesNotPermittedWarning.ts +++ b/src/api/types/VoicesNotPermittedWarning.ts @@ -1,10 +1,10 @@ // This file was auto-generated by Fern from our API Definition. export interface VoicesNotPermittedWarning { - /** Identifies this warning; branch on it to read the fields below. */ + /** Identifies this warning; branch on it to read the other fields. */ type: "voices_not_permitted"; - /** Speakers whose voices were not permitted for cloning. The dub used a replacement voice for each of them; the rest of the speakers are unaffected. */ + /** Speakers whose voices were not permitted for cloning. The dub used a replacement voice for each of them; all other speakers are unaffected. */ speakerIds: string[]; - /** Human-readable description of the warning, for display. The wording may change at any time; branch on `type` instead. */ + /** Human-readable description of the warning, for display. The wording may change at any time, so we recommend branching on `type` instead. */ message: string; } diff --git a/src/api/types/WebhookToolConfigInput.ts b/src/api/types/WebhookToolConfigInput.ts index d58bc0104..9074d61b2 100644 --- a/src/api/types/WebhookToolConfigInput.ts +++ b/src/api/types/WebhookToolConfigInput.ts @@ -33,4 +33,8 @@ export interface WebhookToolConfigInput { executionMode?: ElevenLabs.ToolExecutionMode; /** The schema for the outgoing webhoook, including parameters and URL specification */ apiSchema: ElevenLabs.WebhookToolApiSchemaConfigInput; + /** Whether to resolve a redirect from the endpoint and return the final response. One redirect is followed, as a GET without the request body; nothing configured on this tool (headers, authentication, client certificate) is sent to the redirect target. Both the endpoint and the redirect target must use HTTPS. Not supported for API integration tools. */ + followRedirects?: boolean; + /** Domains a redirect may point at, e.g. 'test.example.com'. Required when following redirects, and a target outside the list is refused. */ + followRedirectsAllowedDomains?: string[]; } diff --git a/src/api/types/WebhookToolConfigOutput.ts b/src/api/types/WebhookToolConfigOutput.ts index a518b6fa3..27a4c247c 100644 --- a/src/api/types/WebhookToolConfigOutput.ts +++ b/src/api/types/WebhookToolConfigOutput.ts @@ -33,4 +33,8 @@ export interface WebhookToolConfigOutput { executionMode?: ElevenLabs.ToolExecutionMode; /** The schema for the outgoing webhoook, including parameters and URL specification */ apiSchema: ElevenLabs.WebhookToolApiSchemaConfigOutput; + /** Whether to resolve a redirect from the endpoint and return the final response. One redirect is followed, as a GET without the request body; nothing configured on this tool (headers, authentication, client certificate) is sent to the redirect target. Both the endpoint and the redirect target must use HTTPS. Not supported for API integration tools. */ + followRedirects?: boolean; + /** Domains a redirect may point at, e.g. 'test.example.com'. Required when following redirects, and a target outside the list is refused. */ + followRedirectsAllowedDomains?: string[]; } diff --git a/src/api/types/WorkflowPhoneNumberNodeModelInput.ts b/src/api/types/WorkflowPhoneNumberNodeModelInput.ts index dde6e1278..e28a4a9ce 100644 --- a/src/api/types/WorkflowPhoneNumberNodeModelInput.ts +++ b/src/api/types/WorkflowPhoneNumberNodeModelInput.ts @@ -7,6 +7,8 @@ export interface WorkflowPhoneNumberNodeModelInput { customSipHeaders?: ElevenLabs.WorkflowPhoneNumberNodeModelInputCustomSipHeadersItem[]; transferDestination: ElevenLabs.WorkflowPhoneNumberNodeModelInputTransferDestination; transferType?: ElevenLabs.TransferTypeEnum; + /** When True, a ringing tone is played on the original call leg while a SIP REFER transfer completes. The tone is carried over RTP to the SIP peer executing the REFER, so disable this if the receiving system (e.g. an SBC or contact center) should not hear it. When disabled the caller hears silence until the transfer completes. SIP REFER transfers only. */ + sipReferPlayDialtone?: boolean; /** User-to-User Information (RFC 7433) to attach to SIP REFER transfers. Carries call context such as CRM identifiers or escalation reason across the transfer boundary. */ uui?: ElevenLabs.UuiTransferConfig; /** DTMF digits to send after call connects (e.g., 'ww1234' for extension). Can be either a static value or a dynamic variable reference. Use 'w' for 0.5s pause. Only supported for Twilio transfers. */ diff --git a/src/api/types/WorkflowPhoneNumberNodeModelOutput.ts b/src/api/types/WorkflowPhoneNumberNodeModelOutput.ts index 38c6561f1..32fe5f556 100644 --- a/src/api/types/WorkflowPhoneNumberNodeModelOutput.ts +++ b/src/api/types/WorkflowPhoneNumberNodeModelOutput.ts @@ -7,6 +7,8 @@ export interface WorkflowPhoneNumberNodeModelOutput { customSipHeaders: ElevenLabs.WorkflowPhoneNumberNodeModelOutputCustomSipHeadersItem[]; transferDestination: ElevenLabs.WorkflowPhoneNumberNodeModelOutputTransferDestination; transferType: ElevenLabs.TransferTypeEnum; + /** When True, a ringing tone is played on the original call leg while a SIP REFER transfer completes. The tone is carried over RTP to the SIP peer executing the REFER, so disable this if the receiving system (e.g. an SBC or contact center) should not hear it. When disabled the caller hears silence until the transfer completes. SIP REFER transfers only. */ + sipReferPlayDialtone: boolean; /** User-to-User Information (RFC 7433) to attach to SIP REFER transfers. Carries call context such as CRM identifiers or escalation reason across the transfer boundary. */ uui?: ElevenLabs.UuiTransferConfig; /** DTMF digits to send after call connects (e.g., 'ww1234' for extension). Can be either a static value or a dynamic variable reference. Use 'w' for 0.5s pause. Only supported for Twilio transfers. */ diff --git a/src/api/types/index.ts b/src/api/types/index.ts index e09045c8b..fa470b3d6 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -53,6 +53,7 @@ export * from "./AgentPlatformSettingsResponseModel"; export * from "./AgentQueueingConfig"; export * from "./AgentResponsePayload"; export * from "./AgentSimulatedChatTestResponseModel"; +export * from "./AgentSmbMetadata"; export * from "./AgentSortBy"; export * from "./AgentSuccessfulResponseExample"; export * from "./AgentSummaryBatchSuccessfulResponseModel"; @@ -87,6 +88,7 @@ export * from "./AlertingWebhookHeader"; export * from "./AlertingWebhookMethod"; export * from "./AlertingWebhookNotifier"; export * from "./AlertingWebhookNotifierResponse"; +export * from "./AlertingWebhookSecretHeaderValue"; export * from "./Alignment"; export * from "./AllowedOutputFormats"; export * from "./AllowlistItem"; @@ -205,6 +207,7 @@ export * from "./AuthorizationMethod"; export * from "./AuthSettings"; export * from "./AutoGenerationMetadata"; export * from "./AutoSyncInfo"; +export * from "./AvatarContextResponseModel"; export * from "./BackgroundSoundConfig"; export * from "./BackgroundSoundConfigWorkflowOverride"; export * from "./BackgroundSoundPresetId"; @@ -213,9 +216,11 @@ export * from "./BackupLlmDefault"; export * from "./BackupLlmDisabled"; export * from "./BackupLlmOverride"; export * from "./BadRequestErrorBody"; +export * from "./BanReasonType"; export * from "./BaseTurnConfig"; export * from "./BasicAuthResponse"; export * from "./BatchCallDetailedResponse"; +export * from "./BatchCallingCampaignInformation"; export * from "./BatchCallRecipientStatus"; export * from "./BatchCallResponse"; export * from "./BatchCallStatus"; @@ -319,6 +324,7 @@ export * from "./ColumnUnit"; export * from "./CommittedTranscriptEntitiesPayload"; export * from "./CommittedTranscriptPayload"; export * from "./CommittedTranscriptWithTimestampsPayload"; +export * from "./CompactionSettingsWorkflowOverride"; export * from "./CompileProceduresResponseModel"; export * from "./CompileProceduresValidationErrorResponseModel"; export * from "./CompositionPlan"; @@ -364,6 +370,7 @@ export * from "./ConversationConfigOverrideConfig"; export * from "./ConversationConfigWorkflowOverrideInput"; export * from "./ConversationConfigWorkflowOverrideOutput"; export * from "./ConversationDeletionSettings"; +export * from "./ConversationErrorType"; export * from "./ConversationFeedbackType"; export * from "./ConversationHistoryAnalysisCommonModel"; export * from "./ConversationHistoryBatchCallModel"; @@ -597,6 +604,7 @@ export * from "./DubbingProjectResponseStatus"; export * from "./DubbingQueueOverflowError"; export * from "./DubbingRateLimitedError"; export * from "./DubbingRegenerateResponse"; +export * from "./DubbingReleaseChannel"; export * from "./DubbingRenderResponseModel"; export * from "./DubbingResource"; export * from "./DubbingSegmentUpdateRequest"; @@ -636,6 +644,8 @@ export * from "./EditProjectResponseModel"; export * from "./EditVoiceResponseModel"; export * from "./EditVoiceSettingsRequest"; export * from "./EditVoiceSettingsResponseModel"; +export * from "./EffectsSpecInput"; +export * from "./EffectsSpecOutput"; export * from "./ElevenFlashV25Request"; export * from "./ElevenFlashV25RequestOutputFormat"; export * from "./ElevenFlashV25VoiceSettings"; @@ -649,8 +659,8 @@ export * from "./EmbedVariant"; export * from "./EndCallToolConfig"; export * from "./EndCallToolResultModel"; export * from "./EndCallTriggerAction"; -export * from "./EndProcedureToolConfigInput"; -export * from "./EndProcedureToolConfigOutput"; +export * from "./EndProcedureToolConfig"; +export * from "./EndProcedureToolConfigProceduresValue"; export * from "./EndProcedureToolErrorStatus"; export * from "./EntityManagementActivityId"; export * from "./EntryBehavior"; @@ -672,6 +682,8 @@ export * from "./EvaluationSuccessResult"; export * from "./ExactParameterEvaluationStrategy"; export * from "./ExotelApiSubdomain"; export * from "./ExotelOutboundCallResponse"; +export * from "./ExperimentAssignment"; +export * from "./ExperimentAssignmentSource"; export * from "./ExportOptions"; export * from "./ExternalFileSyncInfo"; export * from "./ExternalFolderSyncInfo"; @@ -827,9 +839,11 @@ export * from "./GptImage15RequestBackground"; export * from "./GptImage15RequestQuality"; export * from "./GroupManagementActivityId"; export * from "./GuardrailExecutionMode"; +export * from "./GuardrailsResult"; export * from "./GuardrailsV1Input"; export * from "./GuardrailsV1Output"; export * from "./GuardrailType"; +export * from "./HidingReason"; export * from "./HistoryAlignmentResponseModel"; export * from "./HistoryAlignmentsResponseModel"; export * from "./HistoryItemResponse"; @@ -859,6 +873,7 @@ export * from "./InputAudioChunkPayload"; export * from "./IntegrationType"; export * from "./InteractionBudget"; export * from "./InternalAlertingWebhookNotifier"; +export * from "./InternalSamplingConfigResponseModel"; export * from "./InvoiceResponse"; export * from "./InvoiceResponsePaymentIntentStatus"; export * from "./InvoiceResponsePaymentIntentStatussesItem"; @@ -936,11 +951,9 @@ export * from "./Llm"; export * from "./LlmCategoryUsage"; export * from "./LlmDeprecationConfigModel"; export * from "./LlmDeprecationInfoModel"; -export * from "./LlmInfoModelInput"; -export * from "./LlmInfoModelOutput"; +export * from "./LlmInfoModel"; export * from "./LlmInputOutputTokensUsage"; -export * from "./LlmListResponseModelInput"; -export * from "./LlmListResponseModelOutput"; +export * from "./LlmListResponseModel"; export * from "./LlmLiteralJsonSchemaProperty"; export * from "./LlmLiteralJsonSchemaPropertyType"; export * from "./LlmParameterEvaluationStrategy"; @@ -1010,6 +1023,9 @@ export * from "./ModelSettingsResponseModel"; export * from "./ModerationConfig"; export * from "./ModerationGuardrailInput"; export * from "./ModerationGuardrailOutput"; +export * from "./ModerationStatusResponseModel"; +export * from "./ModerationStatusResponseModelSafetyStatus"; +export * from "./ModerationStatusResponseModelWarningStatus"; export * from "./MtlsAuthResponse"; export * from "./MultichannelSpeechToTextResponseModel"; export * from "./MultipartMusicResponse"; @@ -1055,6 +1071,15 @@ export * from "./OrderMediaResponse"; export * from "./OrderResponse"; export * from "./OrderState"; export * from "./OrderSummary"; +export * from "./OTelAttribute"; +export * from "./OTelAttributeValueValue"; +export * from "./OTelResource"; +export * from "./OTelResourceSpans"; +export * from "./OTelScope"; +export * from "./OTelScopeSpans"; +export * from "./OTelSpan"; +export * from "./OTelStatus"; +export * from "./OTelTracePayload"; export * from "./OutboundCallRecipient"; export * from "./OutboundCallRecipientResponseModel"; export * from "./OutboundSipTrunkConfigRequestModel"; @@ -1106,9 +1131,8 @@ export * from "./PrivacyConfigInput"; export * from "./PrivacyConfigOutput"; export * from "./PrivateKeyJwtResponse"; export * from "./PrivateKeyJwtResponseAlgorithm"; -export * from "./ProcedureAtVersionInput"; -export * from "./ProcedureAtVersionOutput"; export * from "./ProcedureAtVersionResponseModel"; +export * from "./ProcedureDraftRef"; export * from "./ProcedureDraftResponseModel"; export * from "./ProcedureListItemResponseModel"; export * from "./ProcedureRefResponseModel"; @@ -1311,6 +1335,7 @@ export * from "./SipUriTransferDestination"; export * from "./SkipTurnToolConfig"; export * from "./SkipTurnToolResponseModel"; export * from "./SlackBotAuthResponse"; +export * from "./SmbAgentType"; export * from "./SmbClientAccessConfig"; export * from "./SmsConversationInfo"; export * from "./SmsConversationInfoDirection"; @@ -1345,8 +1370,8 @@ export * from "./SpeechToTextWordResponseModel"; export * from "./SpeechToTextWordResponseModelType"; export * from "./SpellingPatience"; export * from "./SrtExportOptions"; -export * from "./StartProcedureToolConfigInput"; -export * from "./StartProcedureToolConfigOutput"; +export * from "./StartProcedureToolConfig"; +export * from "./StartProcedureToolConfigProceduresValue"; export * from "./StartProcedureToolErrorStatus"; export * from "./StartPvcVoiceTrainingResponseModel"; export * from "./StartSpeakerSeparationResponseModel"; @@ -1366,11 +1391,13 @@ export * from "./SubagentRunResultDetails"; export * from "./SubmitBusinessInfoParams"; export * from "./SubmitOrderResponse"; export * from "./Subscription"; +export * from "./SubscriptionExtrasResponseModel"; export * from "./SubscriptionMaxCreditLimitExtension"; export * from "./SubscriptionPendingChange"; export * from "./SubscriptionResponse"; export * from "./SubscriptionResponseMaxCreditLimitExtension"; export * from "./SubscriptionStatusType"; +export * from "./SubscriptionUsageResponseModel"; export * from "./SubtitleOrderItemRequest"; export * from "./SuggestedAudioTag"; export * from "./SupportedVoice"; diff --git a/src/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.ts b/src/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.ts index a08e5e503..3fcef0195 100644 --- a/src/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.ts +++ b/src/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.ts @@ -26,6 +26,7 @@ export const BodyComposeMusicWithADetailedResponseV1MusicDetailedPost: core.seri ), storeForInpainting: core.serialization.property("store_for_inpainting", core.serialization.boolean().optional()), withTimestamps: core.serialization.property("with_timestamps", core.serialization.boolean().optional()), + withWaveformVisual: core.serialization.property("with_waveform_visual", core.serialization.boolean().optional()), signWithC2Pa: core.serialization.property("sign_with_c2pa", core.serialization.boolean().optional()), }); @@ -41,6 +42,7 @@ export declare namespace BodyComposeMusicWithADetailedResponseV1MusicDetailedPos respect_sections_durations?: boolean | null; store_for_inpainting?: boolean | null; with_timestamps?: boolean | null; + with_waveform_visual?: boolean | null; sign_with_c2pa?: boolean | null; } } diff --git a/src/serialization/resources/music/client/requests/BodyStreamComposedMusicWithADetailedResponseV1MusicDetailedStreamPost.ts b/src/serialization/resources/music/client/requests/BodyStreamComposedMusicWithADetailedResponseV1MusicDetailedStreamPost.ts index 3ef606800..fbca0030a 100644 --- a/src/serialization/resources/music/client/requests/BodyStreamComposedMusicWithADetailedResponseV1MusicDetailedStreamPost.ts +++ b/src/serialization/resources/music/client/requests/BodyStreamComposedMusicWithADetailedResponseV1MusicDetailedStreamPost.ts @@ -22,6 +22,7 @@ export const BodyStreamComposedMusicWithADetailedResponseV1MusicDetailedStreamPo finetuneId: core.serialization.property("finetune_id", core.serialization.string().optional()), storeForInpainting: core.serialization.property("store_for_inpainting", core.serialization.boolean().optional()), withTimestamps: core.serialization.property("with_timestamps", core.serialization.boolean().optional()), + withWaveformVisual: core.serialization.property("with_waveform_visual", core.serialization.boolean().optional()), }); export declare namespace BodyStreamComposedMusicWithADetailedResponseV1MusicDetailedStreamPost { @@ -35,5 +36,6 @@ export declare namespace BodyStreamComposedMusicWithADetailedResponseV1MusicDeta finetune_id?: string | null; store_for_inpainting?: boolean | null; with_timestamps?: boolean | null; + with_waveform_visual?: boolean | null; } } diff --git a/src/serialization/resources/speechToText/types/SpeechToTextConvertRequestModelId.ts b/src/serialization/resources/speechToText/types/SpeechToTextConvertRequestModelId.ts deleted file mode 100644 index 0e058b5ac..000000000 --- a/src/serialization/resources/speechToText/types/SpeechToTextConvertRequestModelId.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 SpeechToTextConvertRequestModelId: core.serialization.Schema< - serializers.SpeechToTextConvertRequestModelId.Raw, - ElevenLabs.SpeechToTextConvertRequestModelId -> = core.serialization.enum_(["scribe_v2", "scribe_v1"]); - -export declare namespace SpeechToTextConvertRequestModelId { - export type Raw = "scribe_v2" | "scribe_v1"; -} diff --git a/src/serialization/resources/speechToText/types/index.ts b/src/serialization/resources/speechToText/types/index.ts index 881fe764d..fb31a9da0 100644 --- a/src/serialization/resources/speechToText/types/index.ts +++ b/src/serialization/resources/speechToText/types/index.ts @@ -1,7 +1,6 @@ export * from "./SpeechToTextConvertRequestEntityDetection"; export * from "./SpeechToTextConvertRequestEntityRedaction"; export * from "./SpeechToTextConvertRequestFileFormat"; -export * from "./SpeechToTextConvertRequestModelId"; export * from "./SpeechToTextConvertRequestMultichannelOutputStyle"; export * from "./SpeechToTextConvertRequestTimestampsGranularity"; export * from "./SpeechToTextConvertRequestWebhookMetadata"; diff --git a/src/serialization/types/AgentConversationTicketIssueType.ts b/src/serialization/types/AgentConversationTicketIssueType.ts index c68b24504..b68b6858b 100644 --- a/src/serialization/types/AgentConversationTicketIssueType.ts +++ b/src/serialization/types/AgentConversationTicketIssueType.ts @@ -9,12 +9,25 @@ export const AgentConversationTicketIssueType: core.serialization.Schema< ElevenLabs.AgentConversationTicketIssueType > = core.serialization.enum_([ "knowledge_gap", + "incorrect_information", + "documentation_gap", "product_feedback", + "platform_bug", "tool_issue", "missing_tool", "unnecessary_escalation", + "wrong_action", ]); export declare namespace AgentConversationTicketIssueType { - export type Raw = "knowledge_gap" | "product_feedback" | "tool_issue" | "missing_tool" | "unnecessary_escalation"; + export type Raw = + | "knowledge_gap" + | "incorrect_information" + | "documentation_gap" + | "product_feedback" + | "platform_bug" + | "tool_issue" + | "missing_tool" + | "unnecessary_escalation" + | "wrong_action"; } diff --git a/src/serialization/types/AgentSmbMetadata.ts b/src/serialization/types/AgentSmbMetadata.ts new file mode 100644 index 000000000..43046f820 --- /dev/null +++ b/src/serialization/types/AgentSmbMetadata.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 { SmbAgentType } from "./SmbAgentType"; + +export const AgentSmbMetadata: core.serialization.ObjectSchema< + serializers.AgentSmbMetadata.Raw, + ElevenLabs.AgentSmbMetadata +> = core.serialization.object({ + agentType: core.serialization.property("agent_type", SmbAgentType), + isEphemeral: core.serialization.property("is_ephemeral", core.serialization.boolean().optional()), + sourceFingerprint: core.serialization.property("source_fingerprint", core.serialization.string().optional()), +}); + +export declare namespace AgentSmbMetadata { + export interface Raw { + agent_type: SmbAgentType.Raw; + is_ephemeral?: boolean | null; + source_fingerprint?: string | null; + } +} diff --git a/src/serialization/types/AlertingWebhookSecretHeaderValue.ts b/src/serialization/types/AlertingWebhookSecretHeaderValue.ts new file mode 100644 index 000000000..98e81e33f --- /dev/null +++ b/src/serialization/types/AlertingWebhookSecretHeaderValue.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 AlertingWebhookSecretHeaderValue: core.serialization.ObjectSchema< + serializers.AlertingWebhookSecretHeaderValue.Raw, + ElevenLabs.AlertingWebhookSecretHeaderValue +> = core.serialization.object({ + encryptedValue: core.serialization.property("encrypted_value", core.serialization.string()), + nonce: core.serialization.string(), +}); + +export declare namespace AlertingWebhookSecretHeaderValue { + export interface Raw { + encrypted_value: string; + nonce: string; + } +} diff --git a/src/serialization/types/AvatarContextResponseModel.ts b/src/serialization/types/AvatarContextResponseModel.ts new file mode 100644 index 000000000..3b9dc14ab --- /dev/null +++ b/src/serialization/types/AvatarContextResponseModel.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 AvatarContextResponseModel: core.serialization.ObjectSchema< + serializers.AvatarContextResponseModel.Raw, + ElevenLabs.AvatarContextResponseModel +> = core.serialization.object({ + avatarId: core.serialization.property("avatar_id", core.serialization.string().optional()), + avatarStyleId: core.serialization.property("avatar_style_id", core.serialization.string().optional()), + avatarName: core.serialization.property("avatar_name", core.serialization.string().optional()), + avatarStyleName: core.serialization.property("avatar_style_name", core.serialization.string().optional()), +}); + +export declare namespace AvatarContextResponseModel { + export interface Raw { + avatar_id?: string | null; + avatar_style_id?: string | null; + avatar_name?: string | null; + avatar_style_name?: string | null; + } +} diff --git a/src/serialization/types/BanReasonType.ts b/src/serialization/types/BanReasonType.ts new file mode 100644 index 000000000..7bb5f8302 --- /dev/null +++ b/src/serialization/types/BanReasonType.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 BanReasonType: core.serialization.Schema = + core.serialization.enum_(["safety", "manual"]); + +export declare namespace BanReasonType { + export type Raw = "safety" | "manual"; +} diff --git a/src/serialization/types/BatchCallingCampaignInformation.ts b/src/serialization/types/BatchCallingCampaignInformation.ts new file mode 100644 index 000000000..1cc2b45dc --- /dev/null +++ b/src/serialization/types/BatchCallingCampaignInformation.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 BatchCallingCampaignInformation: core.serialization.ObjectSchema< + serializers.BatchCallingCampaignInformation.Raw, + ElevenLabs.BatchCallingCampaignInformation +> = core.serialization.object({ + campaignId: core.serialization.property("campaign_id", core.serialization.string()), + campaignLeadId: core.serialization.property("campaign_lead_id", core.serialization.string()), +}); + +export declare namespace BatchCallingCampaignInformation { + export interface Raw { + campaign_id: string; + campaign_lead_id: string; + } +} diff --git a/src/serialization/types/ChatSourceMedium.ts b/src/serialization/types/ChatSourceMedium.ts index 3d806cdb4..e64743bb5 100644 --- a/src/serialization/types/ChatSourceMedium.ts +++ b/src/serialization/types/ChatSourceMedium.ts @@ -7,8 +7,8 @@ import type * as serializers from "../index"; export const ChatSourceMedium: core.serialization.Schema< serializers.ChatSourceMedium.Raw, ElevenLabs.ChatSourceMedium -> = core.serialization.enum_(["audio", "text", "image", "file"]); +> = core.serialization.enum_(["audio", "dtmf", "text", "image", "file"]); export declare namespace ChatSourceMedium { - export type Raw = "audio" | "text" | "image" | "file"; + export type Raw = "audio" | "dtmf" | "text" | "image" | "file"; } diff --git a/src/serialization/types/CompactionSettingsWorkflowOverride.ts b/src/serialization/types/CompactionSettingsWorkflowOverride.ts new file mode 100644 index 000000000..877ce4bd4 --- /dev/null +++ b/src/serialization/types/CompactionSettingsWorkflowOverride.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 CompactionSettingsWorkflowOverride: core.serialization.ObjectSchema< + serializers.CompactionSettingsWorkflowOverride.Raw, + ElevenLabs.CompactionSettingsWorkflowOverride +> = core.serialization.object({ + enabled: core.serialization.boolean().optional(), + softTriggerFraction: core.serialization.property("soft_trigger_fraction", core.serialization.number().optional()), + tailSize: core.serialization.property("tail_size", core.serialization.number().optional()), + minReclaimableTokens: core.serialization.property("min_reclaimable_tokens", core.serialization.number().optional()), +}); + +export declare namespace CompactionSettingsWorkflowOverride { + export interface Raw { + enabled?: boolean | null; + soft_trigger_fraction?: number | null; + tail_size?: number | null; + min_reclaimable_tokens?: number | null; + } +} diff --git a/src/serialization/types/ConversationConfigInput.ts b/src/serialization/types/ConversationConfigInput.ts index 7af241fa5..2fc76ea05 100644 --- a/src/serialization/types/ConversationConfigInput.ts +++ b/src/serialization/types/ConversationConfigInput.ts @@ -5,6 +5,7 @@ import * as core from "../../core"; import type * as serializers from "../index"; import { BackgroundSoundConfig } from "./BackgroundSoundConfig"; import { ClientEvent } from "./ClientEvent"; +import { DtmfInputConfig } from "./DtmfInputConfig"; import { FileInputConfig } from "./FileInputConfig"; export const ConversationConfigInput: core.serialization.ObjectSchema< @@ -17,6 +18,7 @@ export const ConversationConfigInput: core.serialization.ObjectSchema< fileInput: core.serialization.property("file_input", FileInputConfig.optional()), monitoringEnabled: core.serialization.property("monitoring_enabled", core.serialization.boolean().optional()), monitoringEvents: core.serialization.property("monitoring_events", core.serialization.list(ClientEvent).optional()), + dtmfInputSettings: core.serialization.property("dtmf_input_settings", DtmfInputConfig.optional()), backgroundSound: core.serialization.property("background_sound", BackgroundSoundConfig.optional()), sourceAttribution: core.serialization.property("source_attribution", core.serialization.boolean().optional()), }); @@ -29,6 +31,7 @@ export declare namespace ConversationConfigInput { file_input?: FileInputConfig.Raw | null; monitoring_enabled?: boolean | null; monitoring_events?: ClientEvent.Raw[] | null; + dtmf_input_settings?: DtmfInputConfig.Raw | null; background_sound?: BackgroundSoundConfig.Raw | null; source_attribution?: boolean | null; } diff --git a/src/serialization/types/ConversationConfigOutput.ts b/src/serialization/types/ConversationConfigOutput.ts index 927f2b135..8b908820b 100644 --- a/src/serialization/types/ConversationConfigOutput.ts +++ b/src/serialization/types/ConversationConfigOutput.ts @@ -5,6 +5,7 @@ import * as core from "../../core"; import type * as serializers from "../index"; import { BackgroundSoundConfig } from "./BackgroundSoundConfig"; import { ClientEvent } from "./ClientEvent"; +import { DtmfInputConfig } from "./DtmfInputConfig"; import { FileInputConfig } from "./FileInputConfig"; export const ConversationConfigOutput: core.serialization.ObjectSchema< @@ -17,6 +18,7 @@ export const ConversationConfigOutput: core.serialization.ObjectSchema< fileInput: core.serialization.property("file_input", FileInputConfig.optional()), monitoringEnabled: core.serialization.property("monitoring_enabled", core.serialization.boolean().optional()), monitoringEvents: core.serialization.property("monitoring_events", core.serialization.list(ClientEvent).optional()), + dtmfInputSettings: core.serialization.property("dtmf_input_settings", DtmfInputConfig.optional()), backgroundSound: core.serialization.property("background_sound", BackgroundSoundConfig.optional()), sourceAttribution: core.serialization.property("source_attribution", core.serialization.boolean().optional()), }); @@ -29,6 +31,7 @@ export declare namespace ConversationConfigOutput { file_input?: FileInputConfig.Raw | null; monitoring_enabled?: boolean | null; monitoring_events?: ClientEvent.Raw[] | null; + dtmf_input_settings?: DtmfInputConfig.Raw | null; background_sound?: BackgroundSoundConfig.Raw | null; source_attribution?: boolean | null; } diff --git a/src/serialization/types/ConversationConfigWorkflowOverrideInput.ts b/src/serialization/types/ConversationConfigWorkflowOverrideInput.ts index c93979a69..901d82161 100644 --- a/src/serialization/types/ConversationConfigWorkflowOverrideInput.ts +++ b/src/serialization/types/ConversationConfigWorkflowOverrideInput.ts @@ -5,6 +5,7 @@ import * as core from "../../core"; import type * as serializers from "../index"; import { BackgroundSoundConfigWorkflowOverride } from "./BackgroundSoundConfigWorkflowOverride"; import { ClientEvent } from "./ClientEvent"; +import { DtmfInputConfig } from "./DtmfInputConfig"; import { FileInputConfigWorkflowOverride } from "./FileInputConfigWorkflowOverride"; export const ConversationConfigWorkflowOverrideInput: core.serialization.ObjectSchema< @@ -17,6 +18,7 @@ export const ConversationConfigWorkflowOverrideInput: core.serialization.ObjectS fileInput: core.serialization.property("file_input", FileInputConfigWorkflowOverride.optional()), monitoringEnabled: core.serialization.property("monitoring_enabled", core.serialization.boolean().optional()), monitoringEvents: core.serialization.property("monitoring_events", core.serialization.list(ClientEvent).optional()), + dtmfInputSettings: core.serialization.property("dtmf_input_settings", DtmfInputConfig.optional()), backgroundSound: core.serialization.property("background_sound", BackgroundSoundConfigWorkflowOverride.optional()), sourceAttribution: core.serialization.property("source_attribution", core.serialization.boolean().optional()), }); @@ -29,6 +31,7 @@ export declare namespace ConversationConfigWorkflowOverrideInput { file_input?: FileInputConfigWorkflowOverride.Raw | null; monitoring_enabled?: boolean | null; monitoring_events?: ClientEvent.Raw[] | null; + dtmf_input_settings?: DtmfInputConfig.Raw | null; background_sound?: BackgroundSoundConfigWorkflowOverride.Raw | null; source_attribution?: boolean | null; } diff --git a/src/serialization/types/ConversationConfigWorkflowOverrideOutput.ts b/src/serialization/types/ConversationConfigWorkflowOverrideOutput.ts index 0d4e39467..1db5f7d4a 100644 --- a/src/serialization/types/ConversationConfigWorkflowOverrideOutput.ts +++ b/src/serialization/types/ConversationConfigWorkflowOverrideOutput.ts @@ -5,6 +5,7 @@ import * as core from "../../core"; import type * as serializers from "../index"; import { BackgroundSoundConfigWorkflowOverride } from "./BackgroundSoundConfigWorkflowOverride"; import { ClientEvent } from "./ClientEvent"; +import { DtmfInputConfig } from "./DtmfInputConfig"; import { FileInputConfigWorkflowOverride } from "./FileInputConfigWorkflowOverride"; export const ConversationConfigWorkflowOverrideOutput: core.serialization.ObjectSchema< @@ -17,6 +18,7 @@ export const ConversationConfigWorkflowOverrideOutput: core.serialization.Object fileInput: core.serialization.property("file_input", FileInputConfigWorkflowOverride.optional()), monitoringEnabled: core.serialization.property("monitoring_enabled", core.serialization.boolean().optional()), monitoringEvents: core.serialization.property("monitoring_events", core.serialization.list(ClientEvent).optional()), + dtmfInputSettings: core.serialization.property("dtmf_input_settings", DtmfInputConfig.optional()), backgroundSound: core.serialization.property("background_sound", BackgroundSoundConfigWorkflowOverride.optional()), sourceAttribution: core.serialization.property("source_attribution", core.serialization.boolean().optional()), }); @@ -29,6 +31,7 @@ export declare namespace ConversationConfigWorkflowOverrideOutput { file_input?: FileInputConfigWorkflowOverride.Raw | null; monitoring_enabled?: boolean | null; monitoring_events?: ClientEvent.Raw[] | null; + dtmf_input_settings?: DtmfInputConfig.Raw | null; background_sound?: BackgroundSoundConfigWorkflowOverride.Raw | null; source_attribution?: boolean | null; } diff --git a/src/serialization/types/ConversationErrorType.ts b/src/serialization/types/ConversationErrorType.ts new file mode 100644 index 000000000..fa7a3adf1 --- /dev/null +++ b/src/serialization/types/ConversationErrorType.ts @@ -0,0 +1,57 @@ +// 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 ConversationErrorType: core.serialization.Schema< + serializers.ConversationErrorType.Raw, + ElevenLabs.ConversationErrorType +> = core.serialization.enum_([ + "unknown", + "call_initialization_error", + "line_busy", + "no_answer", + "call_rejected", + "blocked_by_user", + "agent_configuration_error", + "invalid_client_request", + "permission_error", + "entitlement_exceeded", + "client_disconnected", + "llm_error", + "speech_error", + "tool_error", + "integration_error", + "dependency_error", + "guardrail_triggered", + "safety_violation", + "max_duration_exceeded", + "internal_error", + "post_processing_error", +]); + +export declare namespace ConversationErrorType { + export type Raw = + | "unknown" + | "call_initialization_error" + | "line_busy" + | "no_answer" + | "call_rejected" + | "blocked_by_user" + | "agent_configuration_error" + | "invalid_client_request" + | "permission_error" + | "entitlement_exceeded" + | "client_disconnected" + | "llm_error" + | "speech_error" + | "tool_error" + | "integration_error" + | "dependency_error" + | "guardrail_triggered" + | "safety_violation" + | "max_duration_exceeded" + | "internal_error" + | "post_processing_error"; +} diff --git a/src/serialization/types/ConversationHistoryBatchCallModel.ts b/src/serialization/types/ConversationHistoryBatchCallModel.ts index 02ed0b67c..5f715f2ee 100644 --- a/src/serialization/types/ConversationHistoryBatchCallModel.ts +++ b/src/serialization/types/ConversationHistoryBatchCallModel.ts @@ -3,6 +3,7 @@ import type * as ElevenLabs from "../../api/index"; import * as core from "../../core"; import type * as serializers from "../index"; +import { BatchCallingCampaignInformation } from "./BatchCallingCampaignInformation"; export const ConversationHistoryBatchCallModel: core.serialization.ObjectSchema< serializers.ConversationHistoryBatchCallModel.Raw, @@ -10,11 +11,13 @@ export const ConversationHistoryBatchCallModel: core.serialization.ObjectSchema< > = core.serialization.object({ batchCallId: core.serialization.property("batch_call_id", core.serialization.string()), batchCallRecipientId: core.serialization.property("batch_call_recipient_id", core.serialization.string()), + campaign: BatchCallingCampaignInformation.optional(), }); export declare namespace ConversationHistoryBatchCallModel { export interface Raw { batch_call_id: string; batch_call_recipient_id: string; + campaign?: BatchCallingCampaignInformation.Raw | null; } } diff --git a/src/serialization/types/ConversationHistoryTranscriptResponseModel.ts b/src/serialization/types/ConversationHistoryTranscriptResponseModel.ts index 4468eb007..1d5152c64 100644 --- a/src/serialization/types/ConversationHistoryTranscriptResponseModel.ts +++ b/src/serialization/types/ConversationHistoryTranscriptResponseModel.ts @@ -70,6 +70,10 @@ export const ConversationHistoryTranscriptResponseModel: core.serialization.Obje "file_input", ConversationHistoryTranscriptFileInputResponseModel.optional(), ), + fileInputs: core.serialization.property( + "file_inputs", + core.serialization.list(ConversationHistoryTranscriptFileInputResponseModel).optional(), + ), contextualUpdateInfo: core.serialization.property("contextual_update_info", ContextualUpdateInfo.optional()), reasoned: core.serialization.boolean().optional(), }); @@ -100,6 +104,7 @@ export declare namespace ConversationHistoryTranscriptResponseModel { id?: string | null; triggered_guardrails?: TriggeredGuardrailCommonModel.Raw[] | null; file_input?: ConversationHistoryTranscriptFileInputResponseModel.Raw | null; + file_inputs?: ConversationHistoryTranscriptFileInputResponseModel.Raw[] | null; contextual_update_info?: ContextualUpdateInfo.Raw | null; reasoned?: boolean | null; } diff --git a/src/serialization/types/DetailedMusicResponse.ts b/src/serialization/types/DetailedMusicResponse.ts index 4a4d9d7c4..fdb96a0e8 100644 --- a/src/serialization/types/DetailedMusicResponse.ts +++ b/src/serialization/types/DetailedMusicResponse.ts @@ -14,6 +14,10 @@ export const DetailedMusicResponse: core.serialization.ObjectSchema< compositionPlan: core.serialization.property("composition_plan", DetailedMusicResponseCompositionPlan), songMetadata: core.serialization.property("song_metadata", SongMetadata), wordsTimestamps: core.serialization.property("words_timestamps", core.serialization.list(WordTimestamp).optional()), + waveformVisual: core.serialization.property( + "waveform_visual", + core.serialization.list(core.serialization.number()).optional(), + ), }); export declare namespace DetailedMusicResponse { @@ -21,5 +25,6 @@ export declare namespace DetailedMusicResponse { composition_plan: DetailedMusicResponseCompositionPlan.Raw; song_metadata: SongMetadata.Raw; words_timestamps?: WordTimestamp.Raw[] | null; + waveform_visual?: number[] | null; } } diff --git a/src/serialization/types/DubbingReleaseChannel.ts b/src/serialization/types/DubbingReleaseChannel.ts new file mode 100644 index 000000000..714b13da2 --- /dev/null +++ b/src/serialization/types/DubbingReleaseChannel.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 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/EffectsSpecInput.ts b/src/serialization/types/EffectsSpecInput.ts new file mode 100644 index 000000000..63688219f --- /dev/null +++ b/src/serialization/types/EffectsSpecInput.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"; + +export const EffectsSpecInput: core.serialization.ObjectSchema< + serializers.EffectsSpecInput.Raw, + ElevenLabs.EffectsSpecInput +> = core.serialization.object({ + filterPresetId: core.serialization.property("filter_preset_id", core.serialization.string().optional()), + distance: core.serialization.number().optional(), + environmentId: core.serialization.property("environment_id", core.serialization.string().optional()), + backgroundNoiseId: core.serialization.property("background_noise_id", core.serialization.string().optional()), + sendLevel: core.serialization.property("send_level", core.serialization.number().optional()), + seed: core.serialization.number().optional(), +}); + +export declare namespace EffectsSpecInput { + export interface Raw { + filter_preset_id?: string | null; + distance?: number | null; + environment_id?: string | null; + background_noise_id?: string | null; + send_level?: number | null; + seed?: number | null; + } +} diff --git a/src/serialization/types/EffectsSpecOutput.ts b/src/serialization/types/EffectsSpecOutput.ts new file mode 100644 index 000000000..39e7f75f4 --- /dev/null +++ b/src/serialization/types/EffectsSpecOutput.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"; + +export const EffectsSpecOutput: core.serialization.ObjectSchema< + serializers.EffectsSpecOutput.Raw, + ElevenLabs.EffectsSpecOutput +> = core.serialization.object({ + filterPresetId: core.serialization.property("filter_preset_id", core.serialization.string().optional()), + distance: core.serialization.number(), + environmentId: core.serialization.property("environment_id", core.serialization.string().optional()), + backgroundNoiseId: core.serialization.property("background_noise_id", core.serialization.string().optional()), + sendLevel: core.serialization.property("send_level", core.serialization.number()), + seed: core.serialization.number().optional(), +}); + +export declare namespace EffectsSpecOutput { + export interface Raw { + filter_preset_id?: string | null; + distance: number; + environment_id?: string | null; + background_noise_id?: string | null; + send_level: number; + seed?: number | null; + } +} diff --git a/src/serialization/types/EndProcedureToolConfig.ts b/src/serialization/types/EndProcedureToolConfig.ts new file mode 100644 index 000000000..b7be2d628 --- /dev/null +++ b/src/serialization/types/EndProcedureToolConfig.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"; +import { EndProcedureToolConfigProceduresValue } from "./EndProcedureToolConfigProceduresValue"; + +export const EndProcedureToolConfig: core.serialization.ObjectSchema< + serializers.EndProcedureToolConfig.Raw, + ElevenLabs.EndProcedureToolConfig +> = core.serialization.object({ + procedures: core.serialization + .record(core.serialization.string(), EndProcedureToolConfigProceduresValue) + .optional(), +}); + +export declare namespace EndProcedureToolConfig { + export interface Raw { + procedures?: Record | null; + } +} diff --git a/src/serialization/types/EndProcedureToolConfigInput.ts b/src/serialization/types/EndProcedureToolConfigInput.ts deleted file mode 100644 index af795aab1..000000000 --- a/src/serialization/types/EndProcedureToolConfigInput.ts +++ /dev/null @@ -1,19 +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"; -import { ProcedureAtVersionInput } from "./ProcedureAtVersionInput"; - -export const EndProcedureToolConfigInput: core.serialization.ObjectSchema< - serializers.EndProcedureToolConfigInput.Raw, - ElevenLabs.EndProcedureToolConfigInput -> = core.serialization.object({ - procedures: core.serialization.record(core.serialization.string(), ProcedureAtVersionInput).optional(), -}); - -export declare namespace EndProcedureToolConfigInput { - export interface Raw { - procedures?: Record | null; - } -} diff --git a/src/serialization/types/EndProcedureToolConfigOutput.ts b/src/serialization/types/EndProcedureToolConfigOutput.ts deleted file mode 100644 index be98bb3cd..000000000 --- a/src/serialization/types/EndProcedureToolConfigOutput.ts +++ /dev/null @@ -1,19 +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"; -import { ProcedureAtVersionOutput } from "./ProcedureAtVersionOutput"; - -export const EndProcedureToolConfigOutput: core.serialization.ObjectSchema< - serializers.EndProcedureToolConfigOutput.Raw, - ElevenLabs.EndProcedureToolConfigOutput -> = core.serialization.object({ - procedures: core.serialization.record(core.serialization.string(), ProcedureAtVersionOutput).optional(), -}); - -export declare namespace EndProcedureToolConfigOutput { - export interface Raw { - procedures?: Record | null; - } -} diff --git a/src/serialization/types/EndProcedureToolConfigProceduresValue.ts b/src/serialization/types/EndProcedureToolConfigProceduresValue.ts new file mode 100644 index 000000000..f306e6935 --- /dev/null +++ b/src/serialization/types/EndProcedureToolConfigProceduresValue.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 { ProcedureDraftRef } from "./ProcedureDraftRef"; +import { ProcedureVersionRef } from "./ProcedureVersionRef"; + +export const EndProcedureToolConfigProceduresValue: core.serialization.Schema< + serializers.EndProcedureToolConfigProceduresValue.Raw, + ElevenLabs.EndProcedureToolConfigProceduresValue +> = core.serialization.undiscriminatedUnion([ProcedureVersionRef, ProcedureDraftRef]); + +export declare namespace EndProcedureToolConfigProceduresValue { + export type Raw = ProcedureVersionRef.Raw | ProcedureDraftRef.Raw; +} diff --git a/src/serialization/types/ExperimentAssignment.ts b/src/serialization/types/ExperimentAssignment.ts new file mode 100644 index 000000000..fe6d2d447 --- /dev/null +++ b/src/serialization/types/ExperimentAssignment.ts @@ -0,0 +1,25 @@ +// 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 { ExperimentAssignmentSource } from "./ExperimentAssignmentSource"; + +export const ExperimentAssignment: core.serialization.ObjectSchema< + serializers.ExperimentAssignment.Raw, + ElevenLabs.ExperimentAssignment +> = core.serialization.object({ + key: core.serialization.string(), + variant: core.serialization.string(), + source: ExperimentAssignmentSource, + experimentId: core.serialization.property("experiment_id", core.serialization.string().optional()), +}); + +export declare namespace ExperimentAssignment { + export interface Raw { + key: string; + variant: string; + source: ExperimentAssignmentSource.Raw; + experiment_id?: string | null; + } +} diff --git a/src/serialization/types/ExperimentAssignmentSource.ts b/src/serialization/types/ExperimentAssignmentSource.ts new file mode 100644 index 000000000..b4f7cb3e1 --- /dev/null +++ b/src/serialization/types/ExperimentAssignmentSource.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 ExperimentAssignmentSource: core.serialization.Schema< + serializers.ExperimentAssignmentSource.Raw, + ElevenLabs.ExperimentAssignmentSource +> = core.serialization.enum_(["server_branch", "client_declared"]); + +export declare namespace ExperimentAssignmentSource { + export type Raw = "server_branch" | "client_declared"; +} diff --git a/src/serialization/types/GuardrailsResult.ts b/src/serialization/types/GuardrailsResult.ts new file mode 100644 index 000000000..ffb016af6 --- /dev/null +++ b/src/serialization/types/GuardrailsResult.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 GuardrailsResult: core.serialization.ObjectSchema< + serializers.GuardrailsResult.Raw, + ElevenLabs.GuardrailsResult +> = core.serialization.object({ + triggered: core.serialization.boolean().optional(), +}); + +export declare namespace GuardrailsResult { + export interface Raw { + triggered?: boolean | null; + } +} diff --git a/src/serialization/types/HidingReason.ts b/src/serialization/types/HidingReason.ts new file mode 100644 index 000000000..ec9fd67f1 --- /dev/null +++ b/src/serialization/types/HidingReason.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 HidingReason: core.serialization.Schema = + core.serialization.stringLiteral("smb_assistant"); + +export declare namespace HidingReason { + export type Raw = "smb_assistant"; +} diff --git a/src/serialization/types/InternalSamplingConfigResponseModel.ts b/src/serialization/types/InternalSamplingConfigResponseModel.ts new file mode 100644 index 000000000..9569bbc9c --- /dev/null +++ b/src/serialization/types/InternalSamplingConfigResponseModel.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 InternalSamplingConfigResponseModel: core.serialization.ObjectSchema< + serializers.InternalSamplingConfigResponseModel.Raw, + ElevenLabs.InternalSamplingConfigResponseModel +> = core.serialization.object({ + focus: core.serialization.number().optional(), + similarity: core.serialization.number().optional(), + stability: core.serialization.number().optional(), +}); + +export declare namespace InternalSamplingConfigResponseModel { + export interface Raw { + focus?: number | null; + similarity?: number | null; + stability?: number | null; + } +} diff --git a/src/serialization/types/LlmInfoModel.ts b/src/serialization/types/LlmInfoModel.ts new file mode 100644 index 000000000..40ac8895f --- /dev/null +++ b/src/serialization/types/LlmInfoModel.ts @@ -0,0 +1,47 @@ +// 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 { Llm } from "./Llm"; +import { LlmDeprecationInfoModel } from "./LlmDeprecationInfoModel"; +import { LlmReasoningEffort } from "./LlmReasoningEffort"; +import { RegionalProcessingSurchargeInfo } from "./RegionalProcessingSurchargeInfo"; + +export const LlmInfoModel: core.serialization.ObjectSchema = + core.serialization.object({ + llm: Llm, + isCheckpoint: core.serialization.property("is_checkpoint", core.serialization.boolean()), + maxTokensLimit: core.serialization.property("max_tokens_limit", core.serialization.number()), + maxContextLimit: core.serialization.property("max_context_limit", core.serialization.number()), + supportsImageInput: core.serialization.property("supports_image_input", core.serialization.boolean()), + supportsDocumentInput: core.serialization.property("supports_document_input", core.serialization.boolean()), + supportsParallelToolCalls: core.serialization.property( + "supports_parallel_tool_calls", + core.serialization.boolean(), + ), + availableReasoningEfforts: core.serialization.property( + "available_reasoning_efforts", + core.serialization.list(LlmReasoningEffort).optional(), + ), + deprecationInfo: core.serialization.property("deprecation_info", LlmDeprecationInfoModel.optional()), + regionalProcessingSurcharge: core.serialization.property( + "regional_processing_surcharge", + RegionalProcessingSurchargeInfo.optional(), + ), + }); + +export declare namespace LlmInfoModel { + export interface Raw { + llm: Llm.Raw; + is_checkpoint: boolean; + max_tokens_limit: number; + max_context_limit: number; + supports_image_input: boolean; + supports_document_input: boolean; + supports_parallel_tool_calls: boolean; + available_reasoning_efforts?: LlmReasoningEffort.Raw[] | null; + deprecation_info?: LlmDeprecationInfoModel.Raw | null; + regional_processing_surcharge?: RegionalProcessingSurchargeInfo.Raw | null; + } +} diff --git a/src/serialization/types/LlmInfoModelInput.ts b/src/serialization/types/LlmInfoModelInput.ts deleted file mode 100644 index 3a4cfad9c..000000000 --- a/src/serialization/types/LlmInfoModelInput.ts +++ /dev/null @@ -1,49 +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"; -import { Llm } from "./Llm"; -import { LlmDeprecationInfoModel } from "./LlmDeprecationInfoModel"; -import { LlmReasoningEffort } from "./LlmReasoningEffort"; -import { RegionalProcessingSurchargeInfo } from "./RegionalProcessingSurchargeInfo"; - -export const LlmInfoModelInput: core.serialization.ObjectSchema< - serializers.LlmInfoModelInput.Raw, - ElevenLabs.LlmInfoModelInput -> = core.serialization.object({ - llm: Llm, - isCheckpoint: core.serialization.property("is_checkpoint", core.serialization.boolean()), - maxTokensLimit: core.serialization.property("max_tokens_limit", core.serialization.number()), - maxContextLimit: core.serialization.property("max_context_limit", core.serialization.number()), - supportsImageInput: core.serialization.property("supports_image_input", core.serialization.boolean()), - supportsDocumentInput: core.serialization.property("supports_document_input", core.serialization.boolean()), - supportsParallelToolCalls: core.serialization.property( - "supports_parallel_tool_calls", - core.serialization.boolean(), - ), - availableReasoningEfforts: core.serialization.property( - "available_reasoning_efforts", - core.serialization.list(LlmReasoningEffort).optional(), - ), - deprecationInfo: core.serialization.property("deprecation_info", LlmDeprecationInfoModel.optional()), - regionalProcessingSurcharge: core.serialization.property( - "regional_processing_surcharge", - RegionalProcessingSurchargeInfo.optional(), - ), -}); - -export declare namespace LlmInfoModelInput { - export interface Raw { - llm: Llm.Raw; - is_checkpoint: boolean; - max_tokens_limit: number; - max_context_limit: number; - supports_image_input: boolean; - supports_document_input: boolean; - supports_parallel_tool_calls: boolean; - available_reasoning_efforts?: LlmReasoningEffort.Raw[] | null; - deprecation_info?: LlmDeprecationInfoModel.Raw | null; - regional_processing_surcharge?: RegionalProcessingSurchargeInfo.Raw | null; - } -} diff --git a/src/serialization/types/LlmInfoModelOutput.ts b/src/serialization/types/LlmInfoModelOutput.ts deleted file mode 100644 index d9c474f66..000000000 --- a/src/serialization/types/LlmInfoModelOutput.ts +++ /dev/null @@ -1,49 +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"; -import { Llm } from "./Llm"; -import { LlmDeprecationInfoModel } from "./LlmDeprecationInfoModel"; -import { LlmReasoningEffort } from "./LlmReasoningEffort"; -import { RegionalProcessingSurchargeInfo } from "./RegionalProcessingSurchargeInfo"; - -export const LlmInfoModelOutput: core.serialization.ObjectSchema< - serializers.LlmInfoModelOutput.Raw, - ElevenLabs.LlmInfoModelOutput -> = core.serialization.object({ - llm: Llm, - isCheckpoint: core.serialization.property("is_checkpoint", core.serialization.boolean()), - maxTokensLimit: core.serialization.property("max_tokens_limit", core.serialization.number()), - maxContextLimit: core.serialization.property("max_context_limit", core.serialization.number()), - supportsImageInput: core.serialization.property("supports_image_input", core.serialization.boolean()), - supportsDocumentInput: core.serialization.property("supports_document_input", core.serialization.boolean()), - supportsParallelToolCalls: core.serialization.property( - "supports_parallel_tool_calls", - core.serialization.boolean(), - ), - availableReasoningEfforts: core.serialization.property( - "available_reasoning_efforts", - core.serialization.list(LlmReasoningEffort).optional(), - ), - deprecationInfo: core.serialization.property("deprecation_info", LlmDeprecationInfoModel.optional()), - regionalProcessingSurcharge: core.serialization.property( - "regional_processing_surcharge", - RegionalProcessingSurchargeInfo.optional(), - ), -}); - -export declare namespace LlmInfoModelOutput { - export interface Raw { - llm: Llm.Raw; - is_checkpoint: boolean; - max_tokens_limit: number; - max_context_limit: number; - supports_image_input: boolean; - supports_document_input: boolean; - supports_parallel_tool_calls: boolean; - available_reasoning_efforts?: LlmReasoningEffort.Raw[] | null; - deprecation_info?: LlmDeprecationInfoModel.Raw | null; - regional_processing_surcharge?: RegionalProcessingSurchargeInfo.Raw | null; - } -} diff --git a/src/serialization/types/LlmListResponseModelInput.ts b/src/serialization/types/LlmListResponseModel.ts similarity index 59% rename from src/serialization/types/LlmListResponseModelInput.ts rename to src/serialization/types/LlmListResponseModel.ts index fa7d66bd1..f51979ce1 100644 --- a/src/serialization/types/LlmListResponseModelInput.ts +++ b/src/serialization/types/LlmListResponseModel.ts @@ -4,19 +4,19 @@ import type * as ElevenLabs from "../../api/index"; import * as core from "../../core"; import type * as serializers from "../index"; import { LlmDeprecationConfigModel } from "./LlmDeprecationConfigModel"; -import { LlmInfoModelInput } from "./LlmInfoModelInput"; +import { LlmInfoModel } from "./LlmInfoModel"; -export const LlmListResponseModelInput: core.serialization.ObjectSchema< - serializers.LlmListResponseModelInput.Raw, - ElevenLabs.LlmListResponseModelInput +export const LlmListResponseModel: core.serialization.ObjectSchema< + serializers.LlmListResponseModel.Raw, + ElevenLabs.LlmListResponseModel > = core.serialization.object({ - llms: core.serialization.list(LlmInfoModelInput), + llms: core.serialization.list(LlmInfoModel), defaultDeprecationConfig: core.serialization.property("default_deprecation_config", LlmDeprecationConfigModel), }); -export declare namespace LlmListResponseModelInput { +export declare namespace LlmListResponseModel { export interface Raw { - llms: LlmInfoModelInput.Raw[]; + llms: LlmInfoModel.Raw[]; default_deprecation_config: LlmDeprecationConfigModel.Raw; } } diff --git a/src/serialization/types/LlmListResponseModelOutput.ts b/src/serialization/types/LlmListResponseModelOutput.ts deleted file mode 100644 index c2462868d..000000000 --- a/src/serialization/types/LlmListResponseModelOutput.ts +++ /dev/null @@ -1,22 +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"; -import { LlmDeprecationConfigModel } from "./LlmDeprecationConfigModel"; -import { LlmInfoModelOutput } from "./LlmInfoModelOutput"; - -export const LlmListResponseModelOutput: core.serialization.ObjectSchema< - serializers.LlmListResponseModelOutput.Raw, - ElevenLabs.LlmListResponseModelOutput -> = core.serialization.object({ - llms: core.serialization.list(LlmInfoModelOutput), - defaultDeprecationConfig: core.serialization.property("default_deprecation_config", LlmDeprecationConfigModel), -}); - -export declare namespace LlmListResponseModelOutput { - export interface Raw { - llms: LlmInfoModelOutput.Raw[]; - default_deprecation_config: LlmDeprecationConfigModel.Raw; - } -} diff --git a/src/serialization/types/ModerationStatusResponseModel.ts b/src/serialization/types/ModerationStatusResponseModel.ts new file mode 100644 index 000000000..fa17946d1 --- /dev/null +++ b/src/serialization/types/ModerationStatusResponseModel.ts @@ -0,0 +1,47 @@ +// 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 { ModerationStatusResponseModelSafetyStatus } from "./ModerationStatusResponseModelSafetyStatus"; +import { ModerationStatusResponseModelWarningStatus } from "./ModerationStatusResponseModelWarningStatus"; + +export const ModerationStatusResponseModel: core.serialization.ObjectSchema< + serializers.ModerationStatusResponseModel.Raw, + ElevenLabs.ModerationStatusResponseModel +> = core.serialization.object({ + isInProbation: core.serialization.property("is_in_probation", core.serialization.boolean()), + enterpriseCheckNogoVoice: core.serialization.property("enterprise_check_nogo_voice", core.serialization.boolean()), + enterpriseCheckBlockNogoVoice: core.serialization.property( + "enterprise_check_block_nogo_voice", + core.serialization.boolean(), + ), + neverLiveModerate: core.serialization.property("never_live_moderate", core.serialization.boolean()), + nogoVoiceSimilarVoiceUploadCount: core.serialization.property( + "nogo_voice_similar_voice_upload_count", + core.serialization.number(), + ), + enterpriseBackgroundModerationEnabled: core.serialization.property( + "enterprise_background_moderation_enabled", + core.serialization.boolean(), + ), + isIvcCaptchaRequired: core.serialization.property("is_ivc_captcha_required", core.serialization.boolean()), + safetyStatus: core.serialization.property("safety_status", ModerationStatusResponseModelSafetyStatus.optional()), + warningStatus: core.serialization.property("warning_status", ModerationStatusResponseModelWarningStatus.optional()), + onWatchlist: core.serialization.property("on_watchlist", core.serialization.boolean()), +}); + +export declare namespace ModerationStatusResponseModel { + export interface Raw { + is_in_probation: boolean; + enterprise_check_nogo_voice: boolean; + enterprise_check_block_nogo_voice: boolean; + never_live_moderate: boolean; + nogo_voice_similar_voice_upload_count: number; + enterprise_background_moderation_enabled: boolean; + is_ivc_captcha_required: boolean; + safety_status?: ModerationStatusResponseModelSafetyStatus.Raw | null; + warning_status?: ModerationStatusResponseModelWarningStatus.Raw | null; + on_watchlist: boolean; + } +} diff --git a/src/serialization/types/ModerationStatusResponseModelSafetyStatus.ts b/src/serialization/types/ModerationStatusResponseModelSafetyStatus.ts new file mode 100644 index 000000000..d2c8e294d --- /dev/null +++ b/src/serialization/types/ModerationStatusResponseModelSafetyStatus.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 ModerationStatusResponseModelSafetyStatus: core.serialization.Schema< + serializers.ModerationStatusResponseModelSafetyStatus.Raw, + ElevenLabs.ModerationStatusResponseModelSafetyStatus +> = core.serialization.enum_(["appeal_approved", "appeal_denied", "false_positive"]); + +export declare namespace ModerationStatusResponseModelSafetyStatus { + export type Raw = "appeal_approved" | "appeal_denied" | "false_positive"; +} diff --git a/src/serialization/types/ModerationStatusResponseModelWarningStatus.ts b/src/serialization/types/ModerationStatusResponseModelWarningStatus.ts new file mode 100644 index 000000000..8fa6706a6 --- /dev/null +++ b/src/serialization/types/ModerationStatusResponseModelWarningStatus.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 ModerationStatusResponseModelWarningStatus: core.serialization.Schema< + serializers.ModerationStatusResponseModelWarningStatus.Raw, + ElevenLabs.ModerationStatusResponseModelWarningStatus +> = core.serialization.enum_(["warning", "warning_cleared"]); + +export declare namespace ModerationStatusResponseModelWarningStatus { + export type Raw = "warning" | "warning_cleared"; +} diff --git a/src/serialization/types/MusicUploadResponse.ts b/src/serialization/types/MusicUploadResponse.ts index 4b8a23c2f..fd4ab2dec 100644 --- a/src/serialization/types/MusicUploadResponse.ts +++ b/src/serialization/types/MusicUploadResponse.ts @@ -13,6 +13,10 @@ export const MusicUploadResponse: core.serialization.ObjectSchema< songId: core.serialization.property("song_id", core.serialization.string()), compositionPlan: core.serialization.property("composition_plan", MusicUploadResponseCompositionPlan.optional()), wordsTimestamps: core.serialization.property("words_timestamps", core.serialization.list(WordTimestamp).optional()), + waveformVisual: core.serialization.property( + "waveform_visual", + core.serialization.list(core.serialization.number()).optional(), + ), }); export declare namespace MusicUploadResponse { @@ -20,5 +24,6 @@ export declare namespace MusicUploadResponse { song_id: string; composition_plan?: MusicUploadResponseCompositionPlan.Raw | null; words_timestamps?: WordTimestamp.Raw[] | null; + waveform_visual?: number[] | null; } } diff --git a/src/serialization/types/OTelAttribute.ts b/src/serialization/types/OTelAttribute.ts new file mode 100644 index 000000000..2d8ead862 --- /dev/null +++ b/src/serialization/types/OTelAttribute.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 { OTelAttributeValueValue } from "./OTelAttributeValueValue"; + +export const OTelAttribute: core.serialization.ObjectSchema = + core.serialization.object({ + key: core.serialization.string(), + value: core.serialization.record(core.serialization.string(), OTelAttributeValueValue), + }); + +export declare namespace OTelAttribute { + export interface Raw { + key: string; + value: Record; + } +} diff --git a/src/serialization/types/OTelAttributeValueValue.ts b/src/serialization/types/OTelAttributeValueValue.ts new file mode 100644 index 000000000..fb52e453e --- /dev/null +++ b/src/serialization/types/OTelAttributeValueValue.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 OTelAttributeValueValue: core.serialization.Schema< + serializers.OTelAttributeValueValue.Raw, + ElevenLabs.OTelAttributeValueValue +> = core.serialization.undiscriminatedUnion([ + core.serialization.string(), + core.serialization.boolean(), + core.serialization.number(), +]); + +export declare namespace OTelAttributeValueValue { + export type Raw = string | boolean | number; +} diff --git a/src/serialization/types/OTelResource.ts b/src/serialization/types/OTelResource.ts new file mode 100644 index 000000000..294df41e8 --- /dev/null +++ b/src/serialization/types/OTelResource.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"; +import { OTelAttribute } from "./OTelAttribute"; + +export const OTelResource: core.serialization.ObjectSchema = + core.serialization.object({ + attributes: core.serialization.list(OTelAttribute), + }); + +export declare namespace OTelResource { + export interface Raw { + attributes: OTelAttribute.Raw[]; + } +} diff --git a/src/serialization/types/OTelResourceSpans.ts b/src/serialization/types/OTelResourceSpans.ts new file mode 100644 index 000000000..d4c9157aa --- /dev/null +++ b/src/serialization/types/OTelResourceSpans.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 { OTelResource } from "./OTelResource"; +import { OTelScopeSpans } from "./OTelScopeSpans"; + +export const OTelResourceSpans: core.serialization.ObjectSchema< + serializers.OTelResourceSpans.Raw, + ElevenLabs.OTelResourceSpans +> = core.serialization.object({ + resource: OTelResource, + scopeSpans: core.serialization.list(OTelScopeSpans), +}); + +export declare namespace OTelResourceSpans { + export interface Raw { + resource: OTelResource.Raw; + scopeSpans: OTelScopeSpans.Raw[]; + } +} diff --git a/src/serialization/types/OTelScope.ts b/src/serialization/types/OTelScope.ts new file mode 100644 index 000000000..3ffd87f6b --- /dev/null +++ b/src/serialization/types/OTelScope.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 OTelScope: core.serialization.ObjectSchema = + core.serialization.object({ + name: core.serialization.string(), + version: core.serialization.string(), + }); + +export declare namespace OTelScope { + export interface Raw { + name: string; + version: string; + } +} diff --git a/src/serialization/types/OTelScopeSpans.ts b/src/serialization/types/OTelScopeSpans.ts new file mode 100644 index 000000000..11b623d04 --- /dev/null +++ b/src/serialization/types/OTelScopeSpans.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 { OTelScope } from "./OTelScope"; +import { OTelSpan } from "./OTelSpan"; + +export const OTelScopeSpans: core.serialization.ObjectSchema< + serializers.OTelScopeSpans.Raw, + ElevenLabs.OTelScopeSpans +> = core.serialization.object({ + scope: OTelScope, + spans: core.serialization.list(OTelSpan), +}); + +export declare namespace OTelScopeSpans { + export interface Raw { + scope: OTelScope.Raw; + spans: OTelSpan.Raw[]; + } +} diff --git a/src/serialization/types/OTelSpan.ts b/src/serialization/types/OTelSpan.ts new file mode 100644 index 000000000..132136d95 --- /dev/null +++ b/src/serialization/types/OTelSpan.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 { OTelAttribute } from "./OTelAttribute"; +import { OTelStatus } from "./OTelStatus"; + +export const OTelSpan: core.serialization.ObjectSchema = + core.serialization.object({ + traceId: core.serialization.string(), + spanId: core.serialization.string(), + parentSpanId: core.serialization.string().optional(), + name: core.serialization.string(), + kind: core.serialization.number(), + startTimeUnixNano: core.serialization.string(), + endTimeUnixNano: core.serialization.string(), + attributes: core.serialization.list(OTelAttribute), + status: OTelStatus, + }); + +export declare namespace OTelSpan { + export interface Raw { + traceId: string; + spanId: string; + parentSpanId?: string | null; + name: string; + kind: number; + startTimeUnixNano: string; + endTimeUnixNano: string; + attributes: OTelAttribute.Raw[]; + status: OTelStatus.Raw; + } +} diff --git a/src/serialization/types/OTelStatus.ts b/src/serialization/types/OTelStatus.ts new file mode 100644 index 000000000..7cc877f4e --- /dev/null +++ b/src/serialization/types/OTelStatus.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 OTelStatus: core.serialization.ObjectSchema = + core.serialization.object({ + code: core.serialization.number(), + message: core.serialization.string().optional(), + }); + +export declare namespace OTelStatus { + export interface Raw { + code: number; + message?: string | null; + } +} diff --git a/src/serialization/types/OTelTracePayload.ts b/src/serialization/types/OTelTracePayload.ts new file mode 100644 index 000000000..34f695262 --- /dev/null +++ b/src/serialization/types/OTelTracePayload.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 { OTelResourceSpans } from "./OTelResourceSpans"; + +export const OTelTracePayload: core.serialization.ObjectSchema< + serializers.OTelTracePayload.Raw, + ElevenLabs.OTelTracePayload +> = core.serialization.object({ + resourceSpans: core.serialization.list(OTelResourceSpans), +}); + +export declare namespace OTelTracePayload { + export interface Raw { + resourceSpans: OTelResourceSpans.Raw[]; + } +} diff --git a/src/serialization/types/OrderState.ts b/src/serialization/types/OrderState.ts index 0854ce327..9db0c7724 100644 --- a/src/serialization/types/OrderState.ts +++ b/src/serialization/types/OrderState.ts @@ -15,6 +15,7 @@ export const OrderState: core.serialization.Schema = core.serialization.object({ - procedureId: core.serialization.property("procedure_id", core.serialization.string()), - name: core.serialization.string(), - type: ProcedureType.optional(), - trigger: core.serialization.string().optional(), - referencedToolIds: core.serialization.property( - "referenced_tool_ids", - core.serialization.list(core.serialization.string()).optional(), - ), - referencedKbIds: core.serialization.property( - "referenced_kb_ids", - core.serialization.list(core.serialization.string()).optional(), - ), - referencedProcedureIds: core.serialization.property( - "referenced_procedure_ids", - core.serialization.list(core.serialization.string()).optional(), - ), - referencedDynamicVariables: core.serialization.property( - "referenced_dynamic_variables", - core.serialization.list(core.serialization.string()).optional(), - ), - content: core.serialization.string(), - guardrails: core.serialization.list(CustomGuardrailConfig).optional(), - agentId: core.serialization.property("agent_id", core.serialization.string()), - versionId: core.serialization.property("version_id", core.serialization.string().optional()), -}); - -export declare namespace ProcedureAtVersionInput { - export interface Raw { - procedure_id: string; - name: string; - type?: ProcedureType.Raw | null; - trigger?: string | null; - referenced_tool_ids?: string[] | null; - referenced_kb_ids?: string[] | null; - referenced_procedure_ids?: string[] | null; - referenced_dynamic_variables?: string[] | null; - content: string; - guardrails?: CustomGuardrailConfig.Raw[] | null; - agent_id: string; - version_id?: string | null; - } -} diff --git a/src/serialization/types/ProcedureAtVersionOutput.ts b/src/serialization/types/ProcedureAtVersionOutput.ts deleted file mode 100644 index 451cbd79c..000000000 --- a/src/serialization/types/ProcedureAtVersionOutput.ts +++ /dev/null @@ -1,54 +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"; -import { CustomGuardrailConfig } from "./CustomGuardrailConfig"; -import { ProcedureType } from "./ProcedureType"; - -export const ProcedureAtVersionOutput: core.serialization.ObjectSchema< - serializers.ProcedureAtVersionOutput.Raw, - ElevenLabs.ProcedureAtVersionOutput -> = core.serialization.object({ - procedureId: core.serialization.property("procedure_id", core.serialization.string()), - name: core.serialization.string(), - type: ProcedureType.optional(), - trigger: core.serialization.string().optional(), - referencedToolIds: core.serialization.property( - "referenced_tool_ids", - core.serialization.list(core.serialization.string()).optional(), - ), - referencedKbIds: core.serialization.property( - "referenced_kb_ids", - core.serialization.list(core.serialization.string()).optional(), - ), - referencedProcedureIds: core.serialization.property( - "referenced_procedure_ids", - core.serialization.list(core.serialization.string()).optional(), - ), - referencedDynamicVariables: core.serialization.property( - "referenced_dynamic_variables", - core.serialization.list(core.serialization.string()).optional(), - ), - content: core.serialization.string(), - guardrails: core.serialization.list(CustomGuardrailConfig).optional(), - agentId: core.serialization.property("agent_id", core.serialization.string()), - versionId: core.serialization.property("version_id", core.serialization.string().optional()), -}); - -export declare namespace ProcedureAtVersionOutput { - export interface Raw { - procedure_id: string; - name: string; - type?: ProcedureType.Raw | null; - trigger?: string | null; - referenced_tool_ids?: string[] | null; - referenced_kb_ids?: string[] | null; - referenced_procedure_ids?: string[] | null; - referenced_dynamic_variables?: string[] | null; - content: string; - guardrails?: CustomGuardrailConfig.Raw[] | null; - agent_id: string; - version_id?: string | null; - } -} diff --git a/src/serialization/types/ProcedureDraftRef.ts b/src/serialization/types/ProcedureDraftRef.ts new file mode 100644 index 000000000..6ddac2fe3 --- /dev/null +++ b/src/serialization/types/ProcedureDraftRef.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 ProcedureDraftRef: core.serialization.ObjectSchema< + serializers.ProcedureDraftRef.Raw, + ElevenLabs.ProcedureDraftRef +> = core.serialization.object({ + procedureId: core.serialization.property("procedure_id", core.serialization.string()), + versionId: core.serialization.property("version_id", core.serialization.unknown().optional()), +}); + +export declare namespace ProcedureDraftRef { + export interface Raw { + procedure_id: string; + version_id?: unknown | null; + } +} diff --git a/src/serialization/types/RagConfigInput.ts b/src/serialization/types/RagConfigInput.ts index 3d5982e24..ed0db6b2d 100644 --- a/src/serialization/types/RagConfigInput.ts +++ b/src/serialization/types/RagConfigInput.ts @@ -4,6 +4,7 @@ import type * as ElevenLabs from "../../api/index"; import * as core from "../../core"; import type * as serializers from "../index"; import { EmbeddingModelEnum } from "./EmbeddingModelEnum"; +import { KnowledgeBaseToolInfo } from "./KnowledgeBaseToolInfo"; export const RagConfigInput: core.serialization.ObjectSchema< serializers.RagConfigInput.Raw, @@ -22,6 +23,7 @@ export const RagConfigInput: core.serialization.ObjectSchema< "query_rewrite_prompt_override", core.serialization.string().optional(), ), + knowledgeBaseToolInfo: core.serialization.property("knowledge_base_tool_info", KnowledgeBaseToolInfo.optional()), }); export declare namespace RagConfigInput { @@ -33,5 +35,6 @@ export declare namespace RagConfigInput { max_retrieved_rag_chunks_count?: number | null; num_candidates?: number | null; query_rewrite_prompt_override?: string | null; + knowledge_base_tool_info?: KnowledgeBaseToolInfo.Raw | null; } } diff --git a/src/serialization/types/RagConfigOutput.ts b/src/serialization/types/RagConfigOutput.ts index e39ef0072..471b105c5 100644 --- a/src/serialization/types/RagConfigOutput.ts +++ b/src/serialization/types/RagConfigOutput.ts @@ -4,6 +4,7 @@ import type * as ElevenLabs from "../../api/index"; import * as core from "../../core"; import type * as serializers from "../index"; import { EmbeddingModelEnum } from "./EmbeddingModelEnum"; +import { KnowledgeBaseToolInfo } from "./KnowledgeBaseToolInfo"; export const RagConfigOutput: core.serialization.ObjectSchema< serializers.RagConfigOutput.Raw, @@ -22,6 +23,7 @@ export const RagConfigOutput: core.serialization.ObjectSchema< "query_rewrite_prompt_override", core.serialization.string().optional(), ), + knowledgeBaseToolInfo: core.serialization.property("knowledge_base_tool_info", KnowledgeBaseToolInfo.optional()), }); export declare namespace RagConfigOutput { @@ -33,5 +35,6 @@ export declare namespace RagConfigOutput { max_retrieved_rag_chunks_count?: number | null; num_candidates?: number | null; query_rewrite_prompt_override?: string | null; + knowledge_base_tool_info?: KnowledgeBaseToolInfo.Raw | null; } } diff --git a/src/serialization/types/RagConfigWorkflowOverrideInput.ts b/src/serialization/types/RagConfigWorkflowOverrideInput.ts index 05c755bb1..4a3e4b0a9 100644 --- a/src/serialization/types/RagConfigWorkflowOverrideInput.ts +++ b/src/serialization/types/RagConfigWorkflowOverrideInput.ts @@ -4,6 +4,7 @@ import type * as ElevenLabs from "../../api/index"; import * as core from "../../core"; import type * as serializers from "../index"; import { EmbeddingModelEnum } from "./EmbeddingModelEnum"; +import { KnowledgeBaseToolInfo } from "./KnowledgeBaseToolInfo"; export const RagConfigWorkflowOverrideInput: core.serialization.ObjectSchema< serializers.RagConfigWorkflowOverrideInput.Raw, @@ -22,6 +23,7 @@ export const RagConfigWorkflowOverrideInput: core.serialization.ObjectSchema< "query_rewrite_prompt_override", core.serialization.string().optional(), ), + knowledgeBaseToolInfo: core.serialization.property("knowledge_base_tool_info", KnowledgeBaseToolInfo.optional()), }); export declare namespace RagConfigWorkflowOverrideInput { @@ -33,5 +35,6 @@ export declare namespace RagConfigWorkflowOverrideInput { max_retrieved_rag_chunks_count?: number | null; num_candidates?: number | null; query_rewrite_prompt_override?: string | null; + knowledge_base_tool_info?: KnowledgeBaseToolInfo.Raw | null; } } diff --git a/src/serialization/types/RagConfigWorkflowOverrideOutput.ts b/src/serialization/types/RagConfigWorkflowOverrideOutput.ts index f172df7cf..9f99ee988 100644 --- a/src/serialization/types/RagConfigWorkflowOverrideOutput.ts +++ b/src/serialization/types/RagConfigWorkflowOverrideOutput.ts @@ -4,6 +4,7 @@ import type * as ElevenLabs from "../../api/index"; import * as core from "../../core"; import type * as serializers from "../index"; import { EmbeddingModelEnum } from "./EmbeddingModelEnum"; +import { KnowledgeBaseToolInfo } from "./KnowledgeBaseToolInfo"; export const RagConfigWorkflowOverrideOutput: core.serialization.ObjectSchema< serializers.RagConfigWorkflowOverrideOutput.Raw, @@ -22,6 +23,7 @@ export const RagConfigWorkflowOverrideOutput: core.serialization.ObjectSchema< "query_rewrite_prompt_override", core.serialization.string().optional(), ), + knowledgeBaseToolInfo: core.serialization.property("knowledge_base_tool_info", KnowledgeBaseToolInfo.optional()), }); export declare namespace RagConfigWorkflowOverrideOutput { @@ -33,5 +35,6 @@ export declare namespace RagConfigWorkflowOverrideOutput { max_retrieved_rag_chunks_count?: number | null; num_candidates?: number | null; query_rewrite_prompt_override?: string | null; + knowledge_base_tool_info?: KnowledgeBaseToolInfo.Raw | null; } } diff --git a/src/serialization/types/SmbAgentType.ts b/src/serialization/types/SmbAgentType.ts new file mode 100644 index 000000000..ee38bd76d --- /dev/null +++ b/src/serialization/types/SmbAgentType.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 SmbAgentType: core.serialization.Schema = + core.serialization.enum_(["customer_facing", "assistant"]); + +export declare namespace SmbAgentType { + export type Raw = "customer_facing" | "assistant"; +} diff --git a/src/serialization/types/StartProcedureToolConfig.ts b/src/serialization/types/StartProcedureToolConfig.ts new file mode 100644 index 000000000..f9030961c --- /dev/null +++ b/src/serialization/types/StartProcedureToolConfig.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"; +import { StartProcedureToolConfigProceduresValue } from "./StartProcedureToolConfigProceduresValue"; + +export const StartProcedureToolConfig: core.serialization.ObjectSchema< + serializers.StartProcedureToolConfig.Raw, + ElevenLabs.StartProcedureToolConfig +> = core.serialization.object({ + procedures: core.serialization + .record(core.serialization.string(), StartProcedureToolConfigProceduresValue) + .optional(), +}); + +export declare namespace StartProcedureToolConfig { + export interface Raw { + procedures?: Record | null; + } +} diff --git a/src/serialization/types/StartProcedureToolConfigInput.ts b/src/serialization/types/StartProcedureToolConfigInput.ts deleted file mode 100644 index 48c03749a..000000000 --- a/src/serialization/types/StartProcedureToolConfigInput.ts +++ /dev/null @@ -1,19 +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"; -import { ProcedureAtVersionInput } from "./ProcedureAtVersionInput"; - -export const StartProcedureToolConfigInput: core.serialization.ObjectSchema< - serializers.StartProcedureToolConfigInput.Raw, - ElevenLabs.StartProcedureToolConfigInput -> = core.serialization.object({ - procedures: core.serialization.record(core.serialization.string(), ProcedureAtVersionInput).optional(), -}); - -export declare namespace StartProcedureToolConfigInput { - export interface Raw { - procedures?: Record | null; - } -} diff --git a/src/serialization/types/StartProcedureToolConfigOutput.ts b/src/serialization/types/StartProcedureToolConfigOutput.ts deleted file mode 100644 index e29be1b4d..000000000 --- a/src/serialization/types/StartProcedureToolConfigOutput.ts +++ /dev/null @@ -1,19 +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"; -import { ProcedureAtVersionOutput } from "./ProcedureAtVersionOutput"; - -export const StartProcedureToolConfigOutput: core.serialization.ObjectSchema< - serializers.StartProcedureToolConfigOutput.Raw, - ElevenLabs.StartProcedureToolConfigOutput -> = core.serialization.object({ - procedures: core.serialization.record(core.serialization.string(), ProcedureAtVersionOutput).optional(), -}); - -export declare namespace StartProcedureToolConfigOutput { - export interface Raw { - procedures?: Record | null; - } -} diff --git a/src/serialization/types/StartProcedureToolConfigProceduresValue.ts b/src/serialization/types/StartProcedureToolConfigProceduresValue.ts new file mode 100644 index 000000000..b423847eb --- /dev/null +++ b/src/serialization/types/StartProcedureToolConfigProceduresValue.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 { ProcedureDraftRef } from "./ProcedureDraftRef"; +import { ProcedureVersionRef } from "./ProcedureVersionRef"; + +export const StartProcedureToolConfigProceduresValue: core.serialization.Schema< + serializers.StartProcedureToolConfigProceduresValue.Raw, + ElevenLabs.StartProcedureToolConfigProceduresValue +> = core.serialization.undiscriminatedUnion([ProcedureVersionRef, ProcedureDraftRef]); + +export declare namespace StartProcedureToolConfigProceduresValue { + export type Raw = ProcedureVersionRef.Raw | ProcedureDraftRef.Raw; +} diff --git a/src/serialization/types/SubscriptionExtrasResponseModel.ts b/src/serialization/types/SubscriptionExtrasResponseModel.ts new file mode 100644 index 000000000..63d5cbe9f --- /dev/null +++ b/src/serialization/types/SubscriptionExtrasResponseModel.ts @@ -0,0 +1,75 @@ +// 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 { ModerationStatusResponseModel } from "./ModerationStatusResponseModel"; +import { SubscriptionUsageResponseModel } from "./SubscriptionUsageResponseModel"; + +export const SubscriptionExtrasResponseModel: core.serialization.ObjectSchema< + serializers.SubscriptionExtrasResponseModel.Raw, + ElevenLabs.SubscriptionExtrasResponseModel +> = core.serialization.object({ + concurrency: core.serialization.number(), + convaiConcurrency: core.serialization.property("convai_concurrency", core.serialization.number()), + enterpriseMusicConcurrency: core.serialization.property( + "enterprise_music_concurrency", + core.serialization.number().optional(), + ), + musicFinetunesTotalLimit: core.serialization.property( + "music_finetunes_total_limit", + core.serialization.number().optional(), + ), + musicFinetunesMonthlyLimit: core.serialization.property( + "music_finetunes_monthly_limit", + core.serialization.number().optional(), + ), + musicFinetunesConcurrencyLimit: core.serialization.property( + "music_finetunes_concurrency_limit", + core.serialization.number().optional(), + ), + convaiCharsPerMinute: core.serialization.property( + "convai_chars_per_minute", + core.serialization.number().optional(), + ), + convaiAsrCharsPerMinute: core.serialization.property( + "convai_asr_chars_per_minute", + core.serialization.number().optional(), + ), + forceLoggingDisabled: core.serialization.property("force_logging_disabled", core.serialization.boolean()), + canRequestManualProVoiceVerification: core.serialization.property( + "can_request_manual_pro_voice_verification", + core.serialization.boolean(), + ), + canBypassVoiceCaptcha: core.serialization.property("can_bypass_voice_captcha", core.serialization.boolean()), + moderation: ModerationStatusResponseModel, + unusedCharactersRolledOverFromPreviousPeriod: core.serialization.property( + "unused_characters_rolled_over_from_previous_period", + core.serialization.number().optional(), + ), + overusedCharactersRolledOverFromPreviousPeriod: core.serialization.property( + "overused_characters_rolled_over_from_previous_period", + core.serialization.number().optional(), + ), + usage: SubscriptionUsageResponseModel.optional(), +}); + +export declare namespace SubscriptionExtrasResponseModel { + export interface Raw { + concurrency: number; + convai_concurrency: number; + enterprise_music_concurrency?: number | null; + music_finetunes_total_limit?: number | null; + music_finetunes_monthly_limit?: number | null; + music_finetunes_concurrency_limit?: number | null; + convai_chars_per_minute?: number | null; + convai_asr_chars_per_minute?: number | null; + force_logging_disabled: boolean; + can_request_manual_pro_voice_verification: boolean; + can_bypass_voice_captcha: boolean; + moderation: ModerationStatusResponseModel.Raw; + unused_characters_rolled_over_from_previous_period?: number | null; + overused_characters_rolled_over_from_previous_period?: number | null; + usage?: SubscriptionUsageResponseModel.Raw | null; + } +} diff --git a/src/serialization/types/SubscriptionUsageResponseModel.ts b/src/serialization/types/SubscriptionUsageResponseModel.ts new file mode 100644 index 000000000..7f7c19340 --- /dev/null +++ b/src/serialization/types/SubscriptionUsageResponseModel.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"; + +export const SubscriptionUsageResponseModel: core.serialization.ObjectSchema< + serializers.SubscriptionUsageResponseModel.Raw, + ElevenLabs.SubscriptionUsageResponseModel +> = core.serialization.object({ + rolloverCreditsQuota: core.serialization.property("rollover_credits_quota", core.serialization.number()), + subscriptionCycleCreditsQuota: core.serialization.property( + "subscription_cycle_credits_quota", + core.serialization.number(), + ), + manuallyGiftedCreditsQuota: core.serialization.property( + "manually_gifted_credits_quota", + core.serialization.number(), + ), + paygCreditsQuota: core.serialization.property("payg_credits_quota", core.serialization.number().optional()), + rolloverCreditsUsed: core.serialization.property("rollover_credits_used", core.serialization.number()), + subscriptionCycleCreditsUsed: core.serialization.property( + "subscription_cycle_credits_used", + core.serialization.number(), + ), + manuallyGiftedCreditsUsed: core.serialization.property("manually_gifted_credits_used", core.serialization.number()), + paygCreditsUsed: core.serialization.property("payg_credits_used", core.serialization.number().optional()), + paidUsageBasedCreditsUsed: core.serialization.property( + "paid_usage_based_credits_used", + core.serialization.number(), + ), + actualReportedCredits: core.serialization.property("actual_reported_credits", core.serialization.number()), +}); + +export declare namespace SubscriptionUsageResponseModel { + export interface Raw { + rollover_credits_quota: number; + subscription_cycle_credits_quota: number; + manually_gifted_credits_quota: number; + payg_credits_quota?: number | null; + rollover_credits_used: number; + subscription_cycle_credits_used: number; + manually_gifted_credits_used: number; + payg_credits_used?: number | null; + paid_usage_based_credits_used: number; + actual_reported_credits: number; + } +} diff --git a/src/serialization/types/SystemToolConfigInputParams.ts b/src/serialization/types/SystemToolConfigInputParams.ts index f58baac4d..ab02e7875 100644 --- a/src/serialization/types/SystemToolConfigInputParams.ts +++ b/src/serialization/types/SystemToolConfigInputParams.ts @@ -4,14 +4,14 @@ import type * as ElevenLabs from "../../api/index"; import * as core from "../../core"; import type * as serializers from "../index"; import { EndCallToolConfig } from "./EndCallToolConfig"; -import { EndProcedureToolConfigInput } from "./EndProcedureToolConfigInput"; +import { EndProcedureToolConfig } from "./EndProcedureToolConfig"; import { KnowledgeBaseRagToolConfig } from "./KnowledgeBaseRagToolConfig"; import { KnowledgeBaseToolConfig } from "./KnowledgeBaseToolConfig"; import { LanguageDetectionToolConfig } from "./LanguageDetectionToolConfig"; import { PlayDtmfToolConfig } from "./PlayDtmfToolConfig"; import { RunSubagentToolConfigInput } from "./RunSubagentToolConfigInput"; import { SkipTurnToolConfig } from "./SkipTurnToolConfig"; -import { StartProcedureToolConfigInput } from "./StartProcedureToolConfigInput"; +import { StartProcedureToolConfig } from "./StartProcedureToolConfig"; import { TransferToAgentToolConfigInput } from "./TransferToAgentToolConfigInput"; import { TransferToNumberToolConfigInput } from "./TransferToNumberToolConfigInput"; import { VoicemailDetectionToolConfig } from "./VoicemailDetectionToolConfig"; @@ -22,14 +22,14 @@ export const SystemToolConfigInputParams: core.serialization.Schema< > = core.serialization .union(core.serialization.discriminant("systemToolType", "system_tool_type"), { end_call: EndCallToolConfig, - end_procedure: EndProcedureToolConfigInput, + end_procedure: EndProcedureToolConfig, knowledge_base: KnowledgeBaseToolConfig, knowledge_base_rag: KnowledgeBaseRagToolConfig, language_detection: LanguageDetectionToolConfig, play_keypad_touch_tone: PlayDtmfToolConfig, run_subagent: RunSubagentToolConfigInput, skip_turn: SkipTurnToolConfig, - start_procedure: StartProcedureToolConfigInput, + start_procedure: StartProcedureToolConfig, transfer_to_agent: TransferToAgentToolConfigInput, transfer_to_number: TransferToNumberToolConfigInput, voicemail_detection: VoicemailDetectionToolConfig, @@ -58,7 +58,7 @@ export declare namespace SystemToolConfigInputParams { system_tool_type: "end_call"; } - export interface EndProcedure extends EndProcedureToolConfigInput.Raw { + export interface EndProcedure extends EndProcedureToolConfig.Raw { system_tool_type: "end_procedure"; } @@ -86,7 +86,7 @@ export declare namespace SystemToolConfigInputParams { system_tool_type: "skip_turn"; } - export interface StartProcedure extends StartProcedureToolConfigInput.Raw { + export interface StartProcedure extends StartProcedureToolConfig.Raw { system_tool_type: "start_procedure"; } diff --git a/src/serialization/types/SystemToolConfigOutputParams.ts b/src/serialization/types/SystemToolConfigOutputParams.ts index b7138c6ca..d23aea962 100644 --- a/src/serialization/types/SystemToolConfigOutputParams.ts +++ b/src/serialization/types/SystemToolConfigOutputParams.ts @@ -4,14 +4,14 @@ import type * as ElevenLabs from "../../api/index"; import * as core from "../../core"; import type * as serializers from "../index"; import { EndCallToolConfig } from "./EndCallToolConfig"; -import { EndProcedureToolConfigOutput } from "./EndProcedureToolConfigOutput"; +import { EndProcedureToolConfig } from "./EndProcedureToolConfig"; import { KnowledgeBaseRagToolConfig } from "./KnowledgeBaseRagToolConfig"; import { KnowledgeBaseToolConfig } from "./KnowledgeBaseToolConfig"; import { LanguageDetectionToolConfig } from "./LanguageDetectionToolConfig"; import { PlayDtmfToolConfig } from "./PlayDtmfToolConfig"; import { RunSubagentToolConfigOutput } from "./RunSubagentToolConfigOutput"; import { SkipTurnToolConfig } from "./SkipTurnToolConfig"; -import { StartProcedureToolConfigOutput } from "./StartProcedureToolConfigOutput"; +import { StartProcedureToolConfig } from "./StartProcedureToolConfig"; import { TransferToAgentToolConfigOutput } from "./TransferToAgentToolConfigOutput"; import { TransferToNumberToolConfigOutput } from "./TransferToNumberToolConfigOutput"; import { VoicemailDetectionToolConfig } from "./VoicemailDetectionToolConfig"; @@ -22,14 +22,14 @@ export const SystemToolConfigOutputParams: core.serialization.Schema< > = core.serialization .union(core.serialization.discriminant("systemToolType", "system_tool_type"), { end_call: EndCallToolConfig, - end_procedure: EndProcedureToolConfigOutput, + end_procedure: EndProcedureToolConfig, knowledge_base: KnowledgeBaseToolConfig, knowledge_base_rag: KnowledgeBaseRagToolConfig, language_detection: LanguageDetectionToolConfig, play_keypad_touch_tone: PlayDtmfToolConfig, run_subagent: RunSubagentToolConfigOutput, skip_turn: SkipTurnToolConfig, - start_procedure: StartProcedureToolConfigOutput, + start_procedure: StartProcedureToolConfig, transfer_to_agent: TransferToAgentToolConfigOutput, transfer_to_number: TransferToNumberToolConfigOutput, voicemail_detection: VoicemailDetectionToolConfig, @@ -58,7 +58,7 @@ export declare namespace SystemToolConfigOutputParams { system_tool_type: "end_call"; } - export interface EndProcedure extends EndProcedureToolConfigOutput.Raw { + export interface EndProcedure extends EndProcedureToolConfig.Raw { system_tool_type: "end_procedure"; } @@ -86,7 +86,7 @@ export declare namespace SystemToolConfigOutputParams { system_tool_type: "skip_turn"; } - export interface StartProcedure extends StartProcedureToolConfigOutput.Raw { + export interface StartProcedure extends StartProcedureToolConfig.Raw { system_tool_type: "start_procedure"; } diff --git a/src/serialization/types/TtsConversationalConfigInput.ts b/src/serialization/types/TtsConversationalConfigInput.ts index b5c1f8ea8..83e7ed21d 100644 --- a/src/serialization/types/TtsConversationalConfigInput.ts +++ b/src/serialization/types/TtsConversationalConfigInput.ts @@ -3,6 +3,7 @@ import type * as ElevenLabs from "../../api/index"; import * as core from "../../core"; import type * as serializers from "../index"; +import { EffectsSpecInput } from "./EffectsSpecInput"; import { PydanticPronunciationDictionaryVersionLocator } from "./PydanticPronunciationDictionaryVersionLocator"; import { SuggestedAudioTag } from "./SuggestedAudioTag"; import { SupportedVoice } from "./SupportedVoice"; @@ -40,6 +41,7 @@ export const TtsConversationalConfigInput: core.serialization.ObjectSchema< core.serialization.list(PydanticPronunciationDictionaryVersionLocator).optional(), ), enablePhonemeTags: core.serialization.property("enable_phoneme_tags", core.serialization.boolean().optional()), + audioEffects: core.serialization.property("audio_effects", EffectsSpecInput.optional()), }); export declare namespace TtsConversationalConfigInput { @@ -57,5 +59,6 @@ export declare namespace TtsConversationalConfigInput { text_normalisation_type?: TextNormalisationType.Raw | null; pronunciation_dictionary_locators?: PydanticPronunciationDictionaryVersionLocator.Raw[] | null; enable_phoneme_tags?: boolean | null; + audio_effects?: EffectsSpecInput.Raw | null; } } diff --git a/src/serialization/types/TtsConversationalConfigOutput.ts b/src/serialization/types/TtsConversationalConfigOutput.ts index 0eec342e7..872fab8e9 100644 --- a/src/serialization/types/TtsConversationalConfigOutput.ts +++ b/src/serialization/types/TtsConversationalConfigOutput.ts @@ -3,6 +3,7 @@ import type * as ElevenLabs from "../../api/index"; import * as core from "../../core"; import type * as serializers from "../index"; +import { EffectsSpecOutput } from "./EffectsSpecOutput"; import { PydanticPronunciationDictionaryVersionLocator } from "./PydanticPronunciationDictionaryVersionLocator"; import { SuggestedAudioTag } from "./SuggestedAudioTag"; import { SupportedVoice } from "./SupportedVoice"; @@ -40,6 +41,7 @@ export const TtsConversationalConfigOutput: core.serialization.ObjectSchema< core.serialization.list(PydanticPronunciationDictionaryVersionLocator).optional(), ), enablePhonemeTags: core.serialization.property("enable_phoneme_tags", core.serialization.boolean().optional()), + audioEffects: core.serialization.property("audio_effects", EffectsSpecOutput.optional()), }); export declare namespace TtsConversationalConfigOutput { @@ -57,5 +59,6 @@ export declare namespace TtsConversationalConfigOutput { text_normalisation_type?: TextNormalisationType.Raw | null; pronunciation_dictionary_locators?: PydanticPronunciationDictionaryVersionLocator.Raw[] | null; enable_phoneme_tags?: boolean | null; + audio_effects?: EffectsSpecOutput.Raw | null; } } diff --git a/src/serialization/types/TtsConversationalConfigWorkflowOverrideInput.ts b/src/serialization/types/TtsConversationalConfigWorkflowOverrideInput.ts index 6a968f27c..b18d8fd84 100644 --- a/src/serialization/types/TtsConversationalConfigWorkflowOverrideInput.ts +++ b/src/serialization/types/TtsConversationalConfigWorkflowOverrideInput.ts @@ -3,6 +3,7 @@ import type * as ElevenLabs from "../../api/index"; import * as core from "../../core"; import type * as serializers from "../index"; +import { EffectsSpecInput } from "./EffectsSpecInput"; import { PydanticPronunciationDictionaryVersionLocator } from "./PydanticPronunciationDictionaryVersionLocator"; import { SuggestedAudioTag } from "./SuggestedAudioTag"; import { SupportedVoice } from "./SupportedVoice"; @@ -40,6 +41,7 @@ export const TtsConversationalConfigWorkflowOverrideInput: core.serialization.Ob core.serialization.list(PydanticPronunciationDictionaryVersionLocator).optional(), ), enablePhonemeTags: core.serialization.property("enable_phoneme_tags", core.serialization.boolean().optional()), + audioEffects: core.serialization.property("audio_effects", EffectsSpecInput.optional()), }); export declare namespace TtsConversationalConfigWorkflowOverrideInput { @@ -57,5 +59,6 @@ export declare namespace TtsConversationalConfigWorkflowOverrideInput { text_normalisation_type?: TextNormalisationType.Raw | null; pronunciation_dictionary_locators?: PydanticPronunciationDictionaryVersionLocator.Raw[] | null; enable_phoneme_tags?: boolean | null; + audio_effects?: EffectsSpecInput.Raw | null; } } diff --git a/src/serialization/types/TtsConversationalConfigWorkflowOverrideOutput.ts b/src/serialization/types/TtsConversationalConfigWorkflowOverrideOutput.ts index 0958ec333..18e03617e 100644 --- a/src/serialization/types/TtsConversationalConfigWorkflowOverrideOutput.ts +++ b/src/serialization/types/TtsConversationalConfigWorkflowOverrideOutput.ts @@ -3,6 +3,7 @@ import type * as ElevenLabs from "../../api/index"; import * as core from "../../core"; import type * as serializers from "../index"; +import { EffectsSpecOutput } from "./EffectsSpecOutput"; import { PydanticPronunciationDictionaryVersionLocator } from "./PydanticPronunciationDictionaryVersionLocator"; import { SuggestedAudioTag } from "./SuggestedAudioTag"; import { SupportedVoice } from "./SupportedVoice"; @@ -40,6 +41,7 @@ export const TtsConversationalConfigWorkflowOverrideOutput: core.serialization.O core.serialization.list(PydanticPronunciationDictionaryVersionLocator).optional(), ), enablePhonemeTags: core.serialization.property("enable_phoneme_tags", core.serialization.boolean().optional()), + audioEffects: core.serialization.property("audio_effects", EffectsSpecOutput.optional()), }); export declare namespace TtsConversationalConfigWorkflowOverrideOutput { @@ -57,5 +59,6 @@ export declare namespace TtsConversationalConfigWorkflowOverrideOutput { text_normalisation_type?: TextNormalisationType.Raw | null; pronunciation_dictionary_locators?: PydanticPronunciationDictionaryVersionLocator.Raw[] | null; enable_phoneme_tags?: boolean | null; + audio_effects?: EffectsSpecOutput.Raw | null; } } diff --git a/src/serialization/types/WebhookToolConfigInput.ts b/src/serialization/types/WebhookToolConfigInput.ts index 7c215761f..a3136bbdc 100644 --- a/src/serialization/types/WebhookToolConfigInput.ts +++ b/src/serialization/types/WebhookToolConfigInput.ts @@ -31,6 +31,11 @@ export const WebhookToolConfigInput: core.serialization.ObjectSchema< dynamicVariables: core.serialization.property("dynamic_variables", DynamicVariablesConfig.optional()), executionMode: core.serialization.property("execution_mode", ToolExecutionMode.optional()), apiSchema: core.serialization.property("api_schema", WebhookToolApiSchemaConfigInput), + followRedirects: core.serialization.property("follow_redirects", core.serialization.boolean().optional()), + followRedirectsAllowedDomains: core.serialization.property( + "follow_redirects_allowed_domains", + core.serialization.list(core.serialization.string()).optional(), + ), }); export declare namespace WebhookToolConfigInput { @@ -49,5 +54,7 @@ export declare namespace WebhookToolConfigInput { dynamic_variables?: DynamicVariablesConfig.Raw | null; execution_mode?: ToolExecutionMode.Raw | null; api_schema: WebhookToolApiSchemaConfigInput.Raw; + follow_redirects?: boolean | null; + follow_redirects_allowed_domains?: string[] | null; } } diff --git a/src/serialization/types/WebhookToolConfigOutput.ts b/src/serialization/types/WebhookToolConfigOutput.ts index e09785975..faed490bb 100644 --- a/src/serialization/types/WebhookToolConfigOutput.ts +++ b/src/serialization/types/WebhookToolConfigOutput.ts @@ -31,6 +31,11 @@ export const WebhookToolConfigOutput: core.serialization.ObjectSchema< dynamicVariables: core.serialization.property("dynamic_variables", DynamicVariablesConfig.optional()), executionMode: core.serialization.property("execution_mode", ToolExecutionMode.optional()), apiSchema: core.serialization.property("api_schema", WebhookToolApiSchemaConfigOutput), + followRedirects: core.serialization.property("follow_redirects", core.serialization.boolean().optional()), + followRedirectsAllowedDomains: core.serialization.property( + "follow_redirects_allowed_domains", + core.serialization.list(core.serialization.string()).optional(), + ), }); export declare namespace WebhookToolConfigOutput { @@ -49,5 +54,7 @@ export declare namespace WebhookToolConfigOutput { dynamic_variables?: DynamicVariablesConfig.Raw | null; execution_mode?: ToolExecutionMode.Raw | null; api_schema: WebhookToolApiSchemaConfigOutput.Raw; + follow_redirects?: boolean | null; + follow_redirects_allowed_domains?: string[] | null; } } diff --git a/src/serialization/types/WorkflowPhoneNumberNodeModelInput.ts b/src/serialization/types/WorkflowPhoneNumberNodeModelInput.ts index 5ae5e1209..6ac631422 100644 --- a/src/serialization/types/WorkflowPhoneNumberNodeModelInput.ts +++ b/src/serialization/types/WorkflowPhoneNumberNodeModelInput.ts @@ -23,6 +23,10 @@ export const WorkflowPhoneNumberNodeModelInput: core.serialization.ObjectSchema< WorkflowPhoneNumberNodeModelInputTransferDestination, ), transferType: core.serialization.property("transfer_type", TransferTypeEnum.optional()), + sipReferPlayDialtone: core.serialization.property( + "sip_refer_play_dialtone", + core.serialization.boolean().optional(), + ), uui: UuiTransferConfig.optional(), postDialDigits: core.serialization.property( "post_dial_digits", @@ -40,6 +44,7 @@ export declare namespace WorkflowPhoneNumberNodeModelInput { custom_sip_headers?: WorkflowPhoneNumberNodeModelInputCustomSipHeadersItem.Raw[] | null; transfer_destination: WorkflowPhoneNumberNodeModelInputTransferDestination.Raw; transfer_type?: TransferTypeEnum.Raw | null; + sip_refer_play_dialtone?: boolean | null; uui?: UuiTransferConfig.Raw | null; post_dial_digits?: WorkflowPhoneNumberNodeModelInputPostDialDigits.Raw | null; position?: PositionInput.Raw | null; diff --git a/src/serialization/types/WorkflowPhoneNumberNodeModelOutput.ts b/src/serialization/types/WorkflowPhoneNumberNodeModelOutput.ts index 831518e10..9f113386e 100644 --- a/src/serialization/types/WorkflowPhoneNumberNodeModelOutput.ts +++ b/src/serialization/types/WorkflowPhoneNumberNodeModelOutput.ts @@ -23,6 +23,7 @@ export const WorkflowPhoneNumberNodeModelOutput: core.serialization.ObjectSchema WorkflowPhoneNumberNodeModelOutputTransferDestination, ), transferType: core.serialization.property("transfer_type", TransferTypeEnum), + sipReferPlayDialtone: core.serialization.property("sip_refer_play_dialtone", core.serialization.boolean()), uui: UuiTransferConfig.optional(), postDialDigits: core.serialization.property( "post_dial_digits", @@ -37,6 +38,7 @@ export declare namespace WorkflowPhoneNumberNodeModelOutput { custom_sip_headers: WorkflowPhoneNumberNodeModelOutputCustomSipHeadersItem.Raw[]; transfer_destination: WorkflowPhoneNumberNodeModelOutputTransferDestination.Raw; transfer_type: TransferTypeEnum.Raw; + sip_refer_play_dialtone: boolean; uui?: UuiTransferConfig.Raw | null; post_dial_digits?: WorkflowPhoneNumberNodeModelOutputPostDialDigits.Raw | null; position: PositionOutput.Raw; diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index e09045c8b..fa470b3d6 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -53,6 +53,7 @@ export * from "./AgentPlatformSettingsResponseModel"; export * from "./AgentQueueingConfig"; export * from "./AgentResponsePayload"; export * from "./AgentSimulatedChatTestResponseModel"; +export * from "./AgentSmbMetadata"; export * from "./AgentSortBy"; export * from "./AgentSuccessfulResponseExample"; export * from "./AgentSummaryBatchSuccessfulResponseModel"; @@ -87,6 +88,7 @@ export * from "./AlertingWebhookHeader"; export * from "./AlertingWebhookMethod"; export * from "./AlertingWebhookNotifier"; export * from "./AlertingWebhookNotifierResponse"; +export * from "./AlertingWebhookSecretHeaderValue"; export * from "./Alignment"; export * from "./AllowedOutputFormats"; export * from "./AllowlistItem"; @@ -205,6 +207,7 @@ export * from "./AuthorizationMethod"; export * from "./AuthSettings"; export * from "./AutoGenerationMetadata"; export * from "./AutoSyncInfo"; +export * from "./AvatarContextResponseModel"; export * from "./BackgroundSoundConfig"; export * from "./BackgroundSoundConfigWorkflowOverride"; export * from "./BackgroundSoundPresetId"; @@ -213,9 +216,11 @@ export * from "./BackupLlmDefault"; export * from "./BackupLlmDisabled"; export * from "./BackupLlmOverride"; export * from "./BadRequestErrorBody"; +export * from "./BanReasonType"; export * from "./BaseTurnConfig"; export * from "./BasicAuthResponse"; export * from "./BatchCallDetailedResponse"; +export * from "./BatchCallingCampaignInformation"; export * from "./BatchCallRecipientStatus"; export * from "./BatchCallResponse"; export * from "./BatchCallStatus"; @@ -319,6 +324,7 @@ export * from "./ColumnUnit"; export * from "./CommittedTranscriptEntitiesPayload"; export * from "./CommittedTranscriptPayload"; export * from "./CommittedTranscriptWithTimestampsPayload"; +export * from "./CompactionSettingsWorkflowOverride"; export * from "./CompileProceduresResponseModel"; export * from "./CompileProceduresValidationErrorResponseModel"; export * from "./CompositionPlan"; @@ -364,6 +370,7 @@ export * from "./ConversationConfigOverrideConfig"; export * from "./ConversationConfigWorkflowOverrideInput"; export * from "./ConversationConfigWorkflowOverrideOutput"; export * from "./ConversationDeletionSettings"; +export * from "./ConversationErrorType"; export * from "./ConversationFeedbackType"; export * from "./ConversationHistoryAnalysisCommonModel"; export * from "./ConversationHistoryBatchCallModel"; @@ -597,6 +604,7 @@ export * from "./DubbingProjectResponseStatus"; export * from "./DubbingQueueOverflowError"; export * from "./DubbingRateLimitedError"; export * from "./DubbingRegenerateResponse"; +export * from "./DubbingReleaseChannel"; export * from "./DubbingRenderResponseModel"; export * from "./DubbingResource"; export * from "./DubbingSegmentUpdateRequest"; @@ -636,6 +644,8 @@ export * from "./EditProjectResponseModel"; export * from "./EditVoiceResponseModel"; export * from "./EditVoiceSettingsRequest"; export * from "./EditVoiceSettingsResponseModel"; +export * from "./EffectsSpecInput"; +export * from "./EffectsSpecOutput"; export * from "./ElevenFlashV25Request"; export * from "./ElevenFlashV25RequestOutputFormat"; export * from "./ElevenFlashV25VoiceSettings"; @@ -649,8 +659,8 @@ export * from "./EmbedVariant"; export * from "./EndCallToolConfig"; export * from "./EndCallToolResultModel"; export * from "./EndCallTriggerAction"; -export * from "./EndProcedureToolConfigInput"; -export * from "./EndProcedureToolConfigOutput"; +export * from "./EndProcedureToolConfig"; +export * from "./EndProcedureToolConfigProceduresValue"; export * from "./EndProcedureToolErrorStatus"; export * from "./EntityManagementActivityId"; export * from "./EntryBehavior"; @@ -672,6 +682,8 @@ export * from "./EvaluationSuccessResult"; export * from "./ExactParameterEvaluationStrategy"; export * from "./ExotelApiSubdomain"; export * from "./ExotelOutboundCallResponse"; +export * from "./ExperimentAssignment"; +export * from "./ExperimentAssignmentSource"; export * from "./ExportOptions"; export * from "./ExternalFileSyncInfo"; export * from "./ExternalFolderSyncInfo"; @@ -827,9 +839,11 @@ export * from "./GptImage15RequestBackground"; export * from "./GptImage15RequestQuality"; export * from "./GroupManagementActivityId"; export * from "./GuardrailExecutionMode"; +export * from "./GuardrailsResult"; export * from "./GuardrailsV1Input"; export * from "./GuardrailsV1Output"; export * from "./GuardrailType"; +export * from "./HidingReason"; export * from "./HistoryAlignmentResponseModel"; export * from "./HistoryAlignmentsResponseModel"; export * from "./HistoryItemResponse"; @@ -859,6 +873,7 @@ export * from "./InputAudioChunkPayload"; export * from "./IntegrationType"; export * from "./InteractionBudget"; export * from "./InternalAlertingWebhookNotifier"; +export * from "./InternalSamplingConfigResponseModel"; export * from "./InvoiceResponse"; export * from "./InvoiceResponsePaymentIntentStatus"; export * from "./InvoiceResponsePaymentIntentStatussesItem"; @@ -936,11 +951,9 @@ export * from "./Llm"; export * from "./LlmCategoryUsage"; export * from "./LlmDeprecationConfigModel"; export * from "./LlmDeprecationInfoModel"; -export * from "./LlmInfoModelInput"; -export * from "./LlmInfoModelOutput"; +export * from "./LlmInfoModel"; export * from "./LlmInputOutputTokensUsage"; -export * from "./LlmListResponseModelInput"; -export * from "./LlmListResponseModelOutput"; +export * from "./LlmListResponseModel"; export * from "./LlmLiteralJsonSchemaProperty"; export * from "./LlmLiteralJsonSchemaPropertyType"; export * from "./LlmParameterEvaluationStrategy"; @@ -1010,6 +1023,9 @@ export * from "./ModelSettingsResponseModel"; export * from "./ModerationConfig"; export * from "./ModerationGuardrailInput"; export * from "./ModerationGuardrailOutput"; +export * from "./ModerationStatusResponseModel"; +export * from "./ModerationStatusResponseModelSafetyStatus"; +export * from "./ModerationStatusResponseModelWarningStatus"; export * from "./MtlsAuthResponse"; export * from "./MultichannelSpeechToTextResponseModel"; export * from "./MultipartMusicResponse"; @@ -1055,6 +1071,15 @@ export * from "./OrderMediaResponse"; export * from "./OrderResponse"; export * from "./OrderState"; export * from "./OrderSummary"; +export * from "./OTelAttribute"; +export * from "./OTelAttributeValueValue"; +export * from "./OTelResource"; +export * from "./OTelResourceSpans"; +export * from "./OTelScope"; +export * from "./OTelScopeSpans"; +export * from "./OTelSpan"; +export * from "./OTelStatus"; +export * from "./OTelTracePayload"; export * from "./OutboundCallRecipient"; export * from "./OutboundCallRecipientResponseModel"; export * from "./OutboundSipTrunkConfigRequestModel"; @@ -1106,9 +1131,8 @@ export * from "./PrivacyConfigInput"; export * from "./PrivacyConfigOutput"; export * from "./PrivateKeyJwtResponse"; export * from "./PrivateKeyJwtResponseAlgorithm"; -export * from "./ProcedureAtVersionInput"; -export * from "./ProcedureAtVersionOutput"; export * from "./ProcedureAtVersionResponseModel"; +export * from "./ProcedureDraftRef"; export * from "./ProcedureDraftResponseModel"; export * from "./ProcedureListItemResponseModel"; export * from "./ProcedureRefResponseModel"; @@ -1311,6 +1335,7 @@ export * from "./SipUriTransferDestination"; export * from "./SkipTurnToolConfig"; export * from "./SkipTurnToolResponseModel"; export * from "./SlackBotAuthResponse"; +export * from "./SmbAgentType"; export * from "./SmbClientAccessConfig"; export * from "./SmsConversationInfo"; export * from "./SmsConversationInfoDirection"; @@ -1345,8 +1370,8 @@ export * from "./SpeechToTextWordResponseModel"; export * from "./SpeechToTextWordResponseModelType"; export * from "./SpellingPatience"; export * from "./SrtExportOptions"; -export * from "./StartProcedureToolConfigInput"; -export * from "./StartProcedureToolConfigOutput"; +export * from "./StartProcedureToolConfig"; +export * from "./StartProcedureToolConfigProceduresValue"; export * from "./StartProcedureToolErrorStatus"; export * from "./StartPvcVoiceTrainingResponseModel"; export * from "./StartSpeakerSeparationResponseModel"; @@ -1366,11 +1391,13 @@ export * from "./SubagentRunResultDetails"; export * from "./SubmitBusinessInfoParams"; export * from "./SubmitOrderResponse"; export * from "./Subscription"; +export * from "./SubscriptionExtrasResponseModel"; export * from "./SubscriptionMaxCreditLimitExtension"; export * from "./SubscriptionPendingChange"; export * from "./SubscriptionResponse"; export * from "./SubscriptionResponseMaxCreditLimitExtension"; export * from "./SubscriptionStatusType"; +export * from "./SubscriptionUsageResponseModel"; export * from "./SubtitleOrderItemRequest"; export * from "./SuggestedAudioTag"; export * from "./SupportedVoice"; diff --git a/src/version.ts b/src/version.ts index d15ff9639..5d5940baa 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "2.65.0"; +export const SDK_VERSION = "2.66.0"; diff --git a/tests/wire/conversationalAi/agents.test.ts b/tests/wire/conversationalAi/agents.test.ts index 68a379517..24248a37a 100644 --- a/tests/wire/conversationalAi/agents.test.ts +++ b/tests/wire/conversationalAi/agents.test.ts @@ -71,6 +71,7 @@ describe("AgentsClient", () => { text_normalisation_type: "system_prompt", pronunciation_dictionary_locators: [{ pronunciation_dictionary_id: "pronunciation_dictionary_id" }], enable_phoneme_tags: true, + audio_effects: { distance: 1.1, send_level: 1.1 }, }, conversation: { text_only: true, @@ -1104,6 +1105,7 @@ describe("AgentsClient", () => { custom_sip_headers: [{ type: "dynamic", key: "key", value: "value" }], transfer_destination: { type: "phone", phone_number: "phone_number" }, transfer_type: "blind", + sip_refer_play_dialtone: true, position: { x: 1.1, y: 1.1 }, edge_order: ["edge_order"], uui: null, @@ -1216,6 +1218,10 @@ describe("AgentsClient", () => { }, ], enablePhonemeTags: true, + audioEffects: { + distance: 1.1, + sendLevel: 1.1, + }, }, conversation: { textOnly: true, @@ -2503,6 +2509,7 @@ describe("AgentsClient", () => { phoneNumber: "phone_number", }, transferType: "blind", + sipReferPlayDialtone: true, position: { x: 1.1, y: 1.1, @@ -2622,6 +2629,7 @@ describe("AgentsClient", () => { text_normalisation_type: "system_prompt", pronunciation_dictionary_locators: [{ pronunciation_dictionary_id: "pronunciation_dictionary_id" }], enable_phoneme_tags: true, + audio_effects: { distance: 1.1, send_level: 1.1 }, }, conversation: { text_only: true, @@ -3655,6 +3663,7 @@ describe("AgentsClient", () => { custom_sip_headers: [{ type: "dynamic", key: "key", value: "value" }], transfer_destination: { type: "phone", phone_number: "phone_number" }, transfer_type: "blind", + sip_refer_play_dialtone: true, position: { x: 1.1, y: 1.1 }, edge_order: ["edge_order"], uui: null, @@ -3768,6 +3777,10 @@ describe("AgentsClient", () => { }, ], enablePhonemeTags: true, + audioEffects: { + distance: 1.1, + sendLevel: 1.1, + }, }, conversation: { textOnly: true, @@ -5055,6 +5068,7 @@ describe("AgentsClient", () => { phoneNumber: "phone_number", }, transferType: "blind", + sipReferPlayDialtone: true, position: { x: 1.1, y: 1.1, @@ -5149,6 +5163,7 @@ describe("AgentsClient", () => { archived: true, showOnlyOwnedAgents: true, createdByUserId: "created_by_user_id", + tags: ["tags"], sortDirection: "asc", sortBy: "name", cursor: "cursor", @@ -5258,6 +5273,14 @@ describe("AgentsClient", () => { mime_type: "mime_type", file_url: "file_url", }, + file_inputs: [ + { + file_id: "file_id", + original_filename: "original_filename", + mime_type: "mime_type", + file_url: "file_url", + }, + ], contextual_update_info: { context_id: "context_id" }, reasoned: true, }, @@ -5383,6 +5406,14 @@ describe("AgentsClient", () => { mimeType: "mime_type", fileUrl: "file_url", }, + fileInputs: [ + { + fileId: "file_id", + originalFilename: "original_filename", + mimeType: "mime_type", + fileUrl: "file_url", + }, + ], contextualUpdateInfo: { contextId: "context_id", }, diff --git a/tests/wire/conversationalAi/agents/branches.test.ts b/tests/wire/conversationalAi/agents/branches.test.ts index c399c16f6..be99bfbb1 100644 --- a/tests/wire/conversationalAi/agents/branches.test.ts +++ b/tests/wire/conversationalAi/agents/branches.test.ts @@ -354,6 +354,7 @@ describe("BranchesClient", () => { text_normalisation_type: "system_prompt", pronunciation_dictionary_locators: [{ pronunciation_dictionary_id: "pronunciation_dictionary_id" }], enable_phoneme_tags: true, + audio_effects: { distance: 1.1, send_level: 1.1 }, }, conversation: { text_only: true, @@ -1387,6 +1388,7 @@ describe("BranchesClient", () => { custom_sip_headers: [{ type: "dynamic", key: "key", value: "value" }], transfer_destination: { type: "phone", phone_number: "phone_number" }, transfer_type: "blind", + sip_refer_play_dialtone: true, position: { x: 1.1, y: 1.1 }, edge_order: ["edge_order"], uui: null, @@ -1516,6 +1518,10 @@ describe("BranchesClient", () => { }, ], enablePhonemeTags: true, + audioEffects: { + distance: 1.1, + sendLevel: 1.1, + }, }, conversation: { textOnly: true, @@ -2803,6 +2809,7 @@ describe("BranchesClient", () => { phoneNumber: "phone_number", }, transferType: "blind", + sipReferPlayDialtone: true, position: { x: 1.1, y: 1.1, @@ -2953,6 +2960,7 @@ describe("BranchesClient", () => { text_normalisation_type: "system_prompt", pronunciation_dictionary_locators: [{ pronunciation_dictionary_id: "pronunciation_dictionary_id" }], enable_phoneme_tags: true, + audio_effects: { distance: 1.1, send_level: 1.1 }, }, conversation: { text_only: true, @@ -3986,6 +3994,7 @@ describe("BranchesClient", () => { custom_sip_headers: [{ type: "dynamic", key: "key", value: "value" }], transfer_destination: { type: "phone", phone_number: "phone_number" }, transfer_type: "blind", + sip_refer_play_dialtone: true, position: { x: 1.1, y: 1.1 }, edge_order: ["edge_order"], uui: null, @@ -4111,6 +4120,10 @@ describe("BranchesClient", () => { }, ], enablePhonemeTags: true, + audioEffects: { + distance: 1.1, + sendLevel: 1.1, + }, }, conversation: { textOnly: true, @@ -5398,6 +5411,7 @@ describe("BranchesClient", () => { phoneNumber: "phone_number", }, transferType: "blind", + sipReferPlayDialtone: true, position: { x: 1.1, y: 1.1, diff --git a/tests/wire/conversationalAi/conversations.test.ts b/tests/wire/conversationalAi/conversations.test.ts index f142d397c..2d9d7b44a 100644 --- a/tests/wire/conversationalAi/conversations.test.ts +++ b/tests/wire/conversationalAi/conversations.test.ts @@ -246,7 +246,11 @@ describe("ConversationsClient", () => { stream_sid: "stream_sid", call_sid: "call_sid", }, - batch_call: { batch_call_id: "batch_call_id", batch_call_recipient_id: "batch_call_recipient_id" }, + batch_call: { + batch_call_id: "batch_call_id", + batch_call_recipient_id: "batch_call_recipient_id", + campaign: { campaign_id: "campaign_id", campaign_lead_id: "campaign_lead_id" }, + }, termination_reason: "termination_reason", error: { code: 1, reason: "reason" }, warnings: ["warnings"], @@ -407,6 +411,14 @@ describe("ConversationsClient", () => { mime_type: "mime_type", file_url: "file_url", }, + file_inputs: [ + { + file_id: "file_id", + original_filename: "original_filename", + mime_type: "mime_type", + file_url: "file_url", + }, + ], contextual_update_info: { context_id: "context_id" }, reasoned: true, }, @@ -485,6 +497,10 @@ describe("ConversationsClient", () => { batchCall: { batchCallId: "batch_call_id", batchCallRecipientId: "batch_call_recipient_id", + campaign: { + campaignId: "campaign_id", + campaignLeadId: "campaign_lead_id", + }, }, terminationReason: "termination_reason", error: { @@ -731,6 +747,14 @@ describe("ConversationsClient", () => { mimeType: "mime_type", fileUrl: "file_url", }, + fileInputs: [ + { + fileId: "file_id", + originalFilename: "original_filename", + mimeType: "mime_type", + fileUrl: "file_url", + }, + ], contextualUpdateInfo: { contextId: "context_id", }, @@ -800,7 +824,11 @@ describe("ConversationsClient", () => { stream_sid: "stream_sid", call_sid: "call_sid", }, - batch_call: { batch_call_id: "batch_call_id", batch_call_recipient_id: "batch_call_recipient_id" }, + batch_call: { + batch_call_id: "batch_call_id", + batch_call_recipient_id: "batch_call_recipient_id", + campaign: { campaign_id: "campaign_id", campaign_lead_id: "campaign_lead_id" }, + }, termination_reason: "termination_reason", error: { code: 1, reason: "reason" }, warnings: ["warnings"], @@ -961,6 +989,14 @@ describe("ConversationsClient", () => { mime_type: "mime_type", file_url: "file_url", }, + file_inputs: [ + { + file_id: "file_id", + original_filename: "original_filename", + mime_type: "mime_type", + file_url: "file_url", + }, + ], contextual_update_info: { context_id: "context_id" }, reasoned: true, }, @@ -1038,6 +1074,10 @@ describe("ConversationsClient", () => { batchCall: { batchCallId: "batch_call_id", batchCallRecipientId: "batch_call_recipient_id", + campaign: { + campaignId: "campaign_id", + campaignLeadId: "campaign_lead_id", + }, }, terminationReason: "termination_reason", error: { @@ -1284,6 +1324,14 @@ describe("ConversationsClient", () => { mimeType: "mime_type", fileUrl: "file_url", }, + fileInputs: [ + { + fileId: "file_id", + originalFilename: "original_filename", + mimeType: "mime_type", + fileUrl: "file_url", + }, + ], contextualUpdateInfo: { contextId: "context_id", }, diff --git a/tests/wire/conversationalAi/conversations/analysis.test.ts b/tests/wire/conversationalAi/conversations/analysis.test.ts index fd01f0861..a4f40f9b2 100644 --- a/tests/wire/conversationalAi/conversations/analysis.test.ts +++ b/tests/wire/conversationalAi/conversations/analysis.test.ts @@ -60,7 +60,11 @@ describe("AnalysisClient", () => { stream_sid: "stream_sid", call_sid: "call_sid", }, - batch_call: { batch_call_id: "batch_call_id", batch_call_recipient_id: "batch_call_recipient_id" }, + batch_call: { + batch_call_id: "batch_call_id", + batch_call_recipient_id: "batch_call_recipient_id", + campaign: { campaign_id: "campaign_id", campaign_lead_id: "campaign_lead_id" }, + }, termination_reason: "termination_reason", error: { code: 1, reason: "reason" }, warnings: ["warnings"], @@ -221,6 +225,14 @@ describe("AnalysisClient", () => { mime_type: "mime_type", file_url: "file_url", }, + file_inputs: [ + { + file_id: "file_id", + original_filename: "original_filename", + mime_type: "mime_type", + file_url: "file_url", + }, + ], contextual_update_info: { context_id: "context_id" }, reasoned: true, }, @@ -296,6 +308,10 @@ describe("AnalysisClient", () => { batchCall: { batchCallId: "batch_call_id", batchCallRecipientId: "batch_call_recipient_id", + campaign: { + campaignId: "campaign_id", + campaignLeadId: "campaign_lead_id", + }, }, terminationReason: "termination_reason", error: { @@ -542,6 +558,14 @@ describe("AnalysisClient", () => { mimeType: "mime_type", fileUrl: "file_url", }, + fileInputs: [ + { + fileId: "file_id", + originalFilename: "original_filename", + mimeType: "mime_type", + fileUrl: "file_url", + }, + ], contextualUpdateInfo: { contextId: "context_id", }, @@ -611,7 +635,11 @@ describe("AnalysisClient", () => { stream_sid: "stream_sid", call_sid: "call_sid", }, - batch_call: { batch_call_id: "batch_call_id", batch_call_recipient_id: "batch_call_recipient_id" }, + batch_call: { + batch_call_id: "batch_call_id", + batch_call_recipient_id: "batch_call_recipient_id", + campaign: { campaign_id: "campaign_id", campaign_lead_id: "campaign_lead_id" }, + }, termination_reason: "termination_reason", error: { code: 1, reason: "reason" }, warnings: ["warnings"], @@ -772,6 +800,14 @@ describe("AnalysisClient", () => { mime_type: "mime_type", file_url: "file_url", }, + file_inputs: [ + { + file_id: "file_id", + original_filename: "original_filename", + mime_type: "mime_type", + file_url: "file_url", + }, + ], contextual_update_info: { context_id: "context_id" }, reasoned: true, }, @@ -850,6 +886,10 @@ describe("AnalysisClient", () => { batchCall: { batchCallId: "batch_call_id", batchCallRecipientId: "batch_call_recipient_id", + campaign: { + campaignId: "campaign_id", + campaignLeadId: "campaign_lead_id", + }, }, terminationReason: "termination_reason", error: { @@ -1096,6 +1136,14 @@ describe("AnalysisClient", () => { mimeType: "mime_type", fileUrl: "file_url", }, + fileInputs: [ + { + fileId: "file_id", + originalFilename: "original_filename", + mimeType: "mime_type", + fileUrl: "file_url", + }, + ], contextualUpdateInfo: { contextId: "context_id", }, diff --git a/tests/wire/conversationalAi/triageTickets.test.ts b/tests/wire/conversationalAi/triageTickets.test.ts index 85fdaa8eb..619f97cea 100644 --- a/tests/wire/conversationalAi/triageTickets.test.ts +++ b/tests/wire/conversationalAi/triageTickets.test.ts @@ -167,44 +167,94 @@ describe("TriageTicketsClient", () => { }); }); - test("list_assignable_users", async () => { + test("list_for_workspace", async () => { const server = mockServerPool.createServer(); const client = new ElevenLabsClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); - const rawResponseBody = [ - { - user_id: "user_id", - email: "email", - first_name: "first_name", - is_service_account: true, - has_access: true, - }, - ]; + const rawResponseBody = { + agent_conversation_tickets: [ + { + agentqa_ticket_id: "agentqa_ticket_id", + workspace_id: "workspace_id", + owner_user_id: "owner_user_id", + agent_id: "agent_id", + needs_clustering: true, + issue_type: "knowledge_gap", + labels: ["labels"], + conversation_ids: ["conversation_ids"], + first_seen_unix_secs: 1, + last_seen_unix_secs: 1, + qa_comment: "qa_comment", + ticket_comments: [{ comment: "comment", created_at_unix_secs: 1 }], + turn_comments: [{ turn_index: 1, comment: "comment", created_at_unix_secs: 1 }], + status: "open", + source: "qa", + assignee_user_id: "assignee_user_id", + created_at_unix_secs: 1, + updated_at_unix_secs: 1, + }, + ], + next_cursor: "next_cursor", + has_more: true, + }; server .mockEndpoint() - .get("/v1/convai/agents/agent_id/triage-tickets/assignable-users") + .get("/v1/convai/triage-tickets") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.conversationalAi.triageTickets.listAssignableUsers("agent_id"); - expect(response).toEqual([ - { - userId: "user_id", - email: "email", - firstName: "first_name", - isServiceAccount: true, - hasAccess: true, - }, - ]); + const response = await client.conversationalAi.triageTickets.listForWorkspace({ + pageSize: 1, + status: "open", + assigneeUserId: "assignee_user_id", + cursor: "cursor", + }); + expect(response).toEqual({ + agentConversationTickets: [ + { + agentqaTicketId: "agentqa_ticket_id", + workspaceId: "workspace_id", + ownerUserId: "owner_user_id", + agentId: "agent_id", + needsClustering: true, + issueType: "knowledge_gap", + labels: ["labels"], + conversationIds: ["conversation_ids"], + firstSeenUnixSecs: 1, + lastSeenUnixSecs: 1, + qaComment: "qa_comment", + ticketComments: [ + { + comment: "comment", + createdAtUnixSecs: 1, + }, + ], + turnComments: [ + { + turnIndex: 1, + comment: "comment", + createdAtUnixSecs: 1, + }, + ], + status: "open", + source: "qa", + assigneeUserId: "assignee_user_id", + createdAtUnixSecs: 1, + updatedAtUnixSecs: 1, + }, + ], + nextCursor: "next_cursor", + hasMore: true, + }); }); - test("get", async () => { + test("create", async () => { const server = mockServerPool.createServer(); const client = new ElevenLabsClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); - + const rawRequestBody = { conversation_id: "conversation_id" }; const rawResponseBody = { agentqa_ticket_id: "agentqa_ticket_id", workspace_id: "workspace_id", @@ -230,13 +280,16 @@ describe("TriageTicketsClient", () => { server .mockEndpoint() - .get("/v1/convai/triage-tickets/agentqa_ticket_id") + .post("/v1/convai/triage-tickets") + .jsonBody(rawRequestBody) .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.conversationalAi.triageTickets.get("agentqa_ticket_id"); + const response = await client.conversationalAi.triageTickets.create({ + conversationId: "conversation_id", + }); expect(response).toEqual({ agentqaTicketId: "agentqa_ticket_id", workspaceId: "workspace_id", @@ -272,25 +325,44 @@ describe("TriageTicketsClient", () => { }); }); - test("delete", async () => { + test("list_assignable_users", async () => { const server = mockServerPool.createServer(); const client = new ElevenLabsClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); + const rawResponseBody = [ + { + user_id: "user_id", + email: "email", + first_name: "first_name", + is_service_account: true, + has_access: true, + }, + ]; + server .mockEndpoint() - .delete("/v1/convai/triage-tickets/agentqa_ticket_id") + .get("/v1/convai/agents/agent_id/triage-tickets/assignable-users") .respondWith() .statusCode(200) + .jsonBody(rawResponseBody) .build(); - const response = await client.conversationalAi.triageTickets.delete("agentqa_ticket_id"); - expect(response).toEqual(undefined); + const response = await client.conversationalAi.triageTickets.listAssignableUsers("agent_id"); + expect(response).toEqual([ + { + userId: "user_id", + email: "email", + firstName: "first_name", + isServiceAccount: true, + hasAccess: true, + }, + ]); }); - test("update", async () => { + test("get", async () => { const server = mockServerPool.createServer(); const client = new ElevenLabsClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); - const rawRequestBody = {}; + const rawResponseBody = { agentqa_ticket_id: "agentqa_ticket_id", workspace_id: "workspace_id", @@ -316,14 +388,13 @@ describe("TriageTicketsClient", () => { server .mockEndpoint() - .patch("/v1/convai/triage-tickets/agentqa_ticket_id") - .jsonBody(rawRequestBody) + .get("/v1/convai/triage-tickets/agentqa_ticket_id") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.conversationalAi.triageTickets.update("agentqa_ticket_id"); + const response = await client.conversationalAi.triageTickets.get("agentqa_ticket_id"); expect(response).toEqual({ agentqaTicketId: "agentqa_ticket_id", workspaceId: "workspace_id", @@ -359,10 +430,25 @@ describe("TriageTicketsClient", () => { }); }); - test("create", async () => { + test("delete", async () => { const server = mockServerPool.createServer(); const client = new ElevenLabsClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); - const rawRequestBody = { conversation_id: "conversation_id" }; + + server + .mockEndpoint() + .delete("/v1/convai/triage-tickets/agentqa_ticket_id") + .respondWith() + .statusCode(200) + .build(); + + const response = await client.conversationalAi.triageTickets.delete("agentqa_ticket_id"); + expect(response).toEqual(undefined); + }); + + test("update", async () => { + const server = mockServerPool.createServer(); + const client = new ElevenLabsClient({ maxRetries: 0, apiKey: "test", environment: server.baseUrl }); + const rawRequestBody = {}; const rawResponseBody = { agentqa_ticket_id: "agentqa_ticket_id", workspace_id: "workspace_id", @@ -388,16 +474,14 @@ describe("TriageTicketsClient", () => { server .mockEndpoint() - .post("/v1/convai/triage-tickets") + .patch("/v1/convai/triage-tickets/agentqa_ticket_id") .jsonBody(rawRequestBody) .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.conversationalAi.triageTickets.create({ - conversationId: "conversation_id", - }); + const response = await client.conversationalAi.triageTickets.update("agentqa_ticket_id"); expect(response).toEqual({ agentqaTicketId: "agentqa_ticket_id", workspaceId: "workspace_id", diff --git a/tests/wire/speechEngine.test.ts b/tests/wire/speechEngine.test.ts index 8ac145760..b4ee96751 100644 --- a/tests/wire/speechEngine.test.ts +++ b/tests/wire/speechEngine.test.ts @@ -84,6 +84,14 @@ describe("SpeechEngineClient", () => { text_normalisation_type: "system_prompt", pronunciation_dictionary_locators: [{ pronunciation_dictionary_id: "pronunciation_dictionary_id" }], enable_phoneme_tags: true, + audio_effects: { + filter_preset_id: "filter_preset_id", + distance: 1.1, + environment_id: "environment_id", + background_noise_id: "background_noise_id", + send_level: 1.1, + seed: 1, + }, }, turn: { turn_timeout: 7, @@ -107,6 +115,7 @@ describe("SpeechEngineClient", () => { file_input: { enabled: true, max_files_in_memory: 1, max_files_per_conversation: 1 }, monitoring_enabled: true, monitoring_events: ["conversation_initiation_metadata"], + dtmf_input_settings: { dtmf_input_timeout: 1.1, hash_terminator: true, redact_input: true }, background_sound: { source_type: "preset", source_id: "office2", volume: 1.1, crossfade_loop: true }, source_attribution: true, }, @@ -195,6 +204,14 @@ describe("SpeechEngineClient", () => { }, ], enablePhonemeTags: true, + audioEffects: { + filterPresetId: "filter_preset_id", + distance: 1.1, + environmentId: "environment_id", + backgroundNoiseId: "background_noise_id", + sendLevel: 1.1, + seed: 1, + }, }, turn: { turnTimeout: 7, @@ -222,6 +239,11 @@ describe("SpeechEngineClient", () => { }, monitoringEnabled: true, monitoringEvents: ["conversation_initiation_metadata"], + dtmfInputSettings: { + dtmfInputTimeout: 1.1, + hashTerminator: true, + redactInput: true, + }, backgroundSound: { sourceType: "preset", sourceId: "office2", @@ -297,6 +319,14 @@ describe("SpeechEngineClient", () => { text_normalisation_type: "system_prompt", pronunciation_dictionary_locators: [{ pronunciation_dictionary_id: "pronunciation_dictionary_id" }], enable_phoneme_tags: true, + audio_effects: { + filter_preset_id: "filter_preset_id", + distance: 1.1, + environment_id: "environment_id", + background_noise_id: "background_noise_id", + send_level: 1.1, + seed: 1, + }, }, turn: { turn_timeout: 7, @@ -320,6 +350,7 @@ describe("SpeechEngineClient", () => { file_input: { enabled: true, max_files_in_memory: 1, max_files_per_conversation: 1 }, monitoring_enabled: true, monitoring_events: ["conversation_initiation_metadata"], + dtmf_input_settings: { dtmf_input_timeout: 1.1, hash_terminator: true, redact_input: true }, background_sound: { source_type: "preset", source_id: "office2", volume: 1.1, crossfade_loop: true }, source_attribution: true, }, @@ -403,6 +434,14 @@ describe("SpeechEngineClient", () => { }, ], enablePhonemeTags: true, + audioEffects: { + filterPresetId: "filter_preset_id", + distance: 1.1, + environmentId: "environment_id", + backgroundNoiseId: "background_noise_id", + sendLevel: 1.1, + seed: 1, + }, }, turn: { turnTimeout: 7, @@ -430,6 +469,11 @@ describe("SpeechEngineClient", () => { }, monitoringEnabled: true, monitoringEvents: ["conversation_initiation_metadata"], + dtmfInputSettings: { + dtmfInputTimeout: 1.1, + hashTerminator: true, + redactInput: true, + }, backgroundSound: { sourceType: "preset", sourceId: "office2", @@ -520,6 +564,14 @@ describe("SpeechEngineClient", () => { text_normalisation_type: "system_prompt", pronunciation_dictionary_locators: [{ pronunciation_dictionary_id: "pronunciation_dictionary_id" }], enable_phoneme_tags: true, + audio_effects: { + filter_preset_id: "filter_preset_id", + distance: 1.1, + environment_id: "environment_id", + background_noise_id: "background_noise_id", + send_level: 1.1, + seed: 1, + }, }, turn: { turn_timeout: 7, @@ -543,6 +595,7 @@ describe("SpeechEngineClient", () => { file_input: { enabled: true, max_files_in_memory: 1, max_files_per_conversation: 1 }, monitoring_enabled: true, monitoring_events: ["conversation_initiation_metadata"], + dtmf_input_settings: { dtmf_input_timeout: 1.1, hash_terminator: true, redact_input: true }, background_sound: { source_type: "preset", source_id: "office2", volume: 1.1, crossfade_loop: true }, source_attribution: true, }, @@ -627,6 +680,14 @@ describe("SpeechEngineClient", () => { }, ], enablePhonemeTags: true, + audioEffects: { + filterPresetId: "filter_preset_id", + distance: 1.1, + environmentId: "environment_id", + backgroundNoiseId: "background_noise_id", + sendLevel: 1.1, + seed: 1, + }, }, turn: { turnTimeout: 7, @@ -654,6 +715,11 @@ describe("SpeechEngineClient", () => { }, monitoringEnabled: true, monitoringEvents: ["conversation_initiation_metadata"], + dtmfInputSettings: { + dtmfInputTimeout: 1.1, + hashTerminator: true, + redactInput: true, + }, backgroundSound: { sourceType: "preset", sourceId: "office2", diff --git a/yarn.lock b/yarn.lock index d0979b8ae..a47b9480a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -613,11 +613,11 @@ "@jridgewell/trace-mapping" "^0.3.25" "@jridgewell/sourcemap-codec@^1.4.14", "@jridgewell/sourcemap-codec@^1.5.0": - version "1.5.5" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz#6912b00d2c631c0d15ce1a7ab57cd657f2a8f8ba" - integrity sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og== + version "1.6.0" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz#f4c663e862f06dc98ca4d453862c46902789a18d" + integrity sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw== -"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25", "@jridgewell/trace-mapping@^0.3.28": +"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25", "@jridgewell/trace-mapping@^0.3.28", "@jridgewell/trace-mapping@^0.3.31": version "0.3.31" resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz#db15d6781c931f3a251a3dac39501c98a6082fd0" integrity sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw== @@ -784,9 +784,9 @@ form-data "^4.0.4" "@types/node@*": - version "26.3.0" - resolved "https://registry.yarnpkg.com/@types/node/-/node-26.3.0.tgz#757c33b17fe06db5a356582e9658603a1bd80caf" - integrity sha512-L3fgrnchriRC2ExBflb8j4uZZURHZfQsmQeyVzhjcHW4kkwVyo8/0h1B2MVzMTrYUJYu6G7EWs14hW/L9putqw== + version "26.4.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-26.4.1.tgz#3d8dc80515894958448ee266cf5d6bc3e5205bd5" + integrity sha512-k97ENvZWtvA6yqz5/FS6a7duDgOPEeOQOc2iKS/nY6mX6qJUKtLnWzQS+Xj6tXweyj6ZcTAK2Qecetnvi9nCLA== dependencies: undici-types "~8.3.0" @@ -1131,9 +1131,9 @@ balanced-match@^1.0.0: integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== baseline-browser-mapping@^2.11.12: - version "2.11.19" - resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.11.19.tgz#4711abac48b88ccb56b5817e86f1b3a9a0764276" - integrity sha512-Grytf1xOxOEMTGRwx6rLGKkTabd4vMg3VrKdj/7joCmV0qgh4QwMMO6xh34YEXQqirAuUdgQGa5orJQQ+69RBw== + version "2.11.20" + resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.11.20.tgz#26078c7a4b08299656ea7ddceaebec955dc44303" + integrity sha512-H0ulySigv6icDJ1F7SjtdCD6PrhTpdYCmP0CactWy1+ekh0AFd0o1Wn5T8b+hnTmdBx19u9yhL6wvCylXMY7zw== brace-expansion@^1.1.7: version "1.1.18" @@ -1406,9 +1406,9 @@ dunder-proto@^1.0.1: gopd "^1.2.0" electron-to-chromium@^1.5.402: - version "1.5.414" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.414.tgz#4d38036562ddd192214aaade4124bdbbf2297291" - integrity sha512-aYlviXiaXBbzvKgyALpcMmqa3Np3sDr0XnZbEG62n2UpZFbEcjQ4EEMOLGzVPhwVnwTz0lvKY+GcARbunuHekw== + version "1.5.420" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.420.tgz#fc66d26a722d6f227e2092acdf38dd55b198cb44" + integrity sha512-2yD6XreGusOfNV+dUcvipJEXc3n/n7fgr7996aszTG+YY5E4mqM4tOq/3uhP129cazL9YHbVWSpc79ePotWtPA== emittery@^0.13.1: version "0.13.1" @@ -1493,31 +1493,11 @@ escodegen@^2.0.0: optionalDependencies: source-map "~0.6.1" -eslint-scope@5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" - integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== - dependencies: - esrecurse "^4.3.0" - estraverse "^4.1.1" - esprima@^4.0.0, esprima@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== -esrecurse@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" - integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== - dependencies: - estraverse "^5.2.0" - -estraverse@^4.1.1: - version "4.3.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" - integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== - estraverse@^5.2.0: version "5.3.0" resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" @@ -1575,9 +1555,9 @@ fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.1.0: integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== fast-uri@^3.0.1: - version "3.1.6" - resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.1.6.tgz#bfdd308ef763f835fed059f3c6c925f708e33e3a" - integrity sha512-7Ical1vFEMr0onbVzEDIreM22I4khW+fzyQPwvAFWBp1iwdshSZRsL4jjRvPG9JP1uiqMHRto+YU6R2/CzDz5Q== + version "3.1.7" + resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.1.7.tgz#743157d957f3cbb4c65310e033dc2ad4ad7dc60a" + integrity sha512-dOvZVzjdZdz7phd9v6jCbwxrBW3fK6n8Rc0CtdmM4bumzMnxywBYhuph6J819RRw/ku+rLbelwfMunktuzVVHg== fb-watchman@^2.0.0: version "2.0.2" @@ -2293,9 +2273,9 @@ js-tokens@^4.0.0: integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== js-yaml@^3.13.1: - version "3.15.1" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.15.1.tgz#24bc95028f361cdaaa84745b06a109c4486773c0" - integrity sha512-S99WuO3HlhO3XN41EtYUNl9zzXjoJx7QvmipxsJVxtCBT0YHEFy+iOJhjSvrmV12nYhWpZaM8lPHkJm0yUMbag== + version "3.15.2" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.15.2.tgz#3f83823ac6be17f570f23b2ecdef3777ff5ea364" + integrity sha512-6EuL879VkRA+1Cz578mKMiKvjPNEuk6+r1JaFzoSWejZmtf7xWbIyw1e3KkxlkzTIt9Taw6JBhEppG7utc1P+w== dependencies: argparse "^1.0.7" esprima "^4.0.0" @@ -2457,15 +2437,15 @@ minimist@^1.2.5: resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== -minimizer-webpack-plugin@^5.6.1: - version "5.6.1" - resolved "https://registry.yarnpkg.com/minimizer-webpack-plugin/-/minimizer-webpack-plugin-5.6.1.tgz#289922a4c96c4ed1ddb76b8a00bd8074e89a2f7f" - integrity sha512-DoeAZz8Q1C1znwsUzej1fdoi4jCf7/+Em27ouLqfK/+3m8G+D7yDhUwrc3CNhjSzGUN1kn7Iv4sWmjflQHenpw== +minimizer-webpack-plugin@^5.7.0: + version "5.8.0" + resolved "https://registry.yarnpkg.com/minimizer-webpack-plugin/-/minimizer-webpack-plugin-5.8.0.tgz#744f0e28da888aa1708e2be32b4ddcf2eeb09e58" + integrity sha512-2cT9+goJfBhtMz+gJqejSf09ClgmYhPhccRb/fb0ztVbixt0BkO8mRuI26FoPPuUNkRk6iEDryWAIouc5W8eJA== dependencies: - "@jridgewell/trace-mapping" "^0.3.25" + "@jridgewell/trace-mapping" "^0.3.31" jest-worker "^27.4.5" - schema-utils "^4.3.0" - terser "^5.31.1" + schema-utils "^4.3.3" + terser "^5.51.0" ms@^2.1.3: version "2.1.3" @@ -2525,9 +2505,9 @@ node-int64@^0.4.0: integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== node-releases@^2.0.53: - version "2.0.53" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.53.tgz#0fe5ad8a7935e075172f574e56f0c20f07fa41af" - integrity sha512-D9UOmYG3UH1V+ENW56t5QXBwJw1YEY18ruVeus89Rw+SyIgjPkCO84bRzO3uNIYosJbNwiabWVn48o3uJLjxFQ== + version "2.0.54" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.54.tgz#09af17d5647aa9f221ec5cf2becb95b68a981afe" + integrity sha512-YHs7BmmcsdAI5Ozuf8JZo6PT0mv2GIWC9vMfvUC3dp65M8hn7Ux8CPL+2oBI7juNuj9d0ndhTcznq2ODBps9cQ== normalize-path@^3.0.0: version "3.0.0" @@ -2542,9 +2522,9 @@ npm-run-path@^4.0.1: path-key "^3.0.0" nwsapi@^2.2.2: - version "2.2.24" - resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.24.tgz#f8927043d4c9b516abdebe804a32c8d1f9484d1f" - integrity sha512-7YRhZ3jS45LwmSCT4b2sVFHt/WuovaktDU07QrtOBY2PXskss5a9jfmR9jptyumwXST+rFjrmppMY1KT/yn35A== + version "2.2.27" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.27.tgz#a7c71fc7d401546ad94a026c30e868c078a70e87" + integrity sha512-gQPNF78qebCQ6tvVFBYrvJdBNOrYZm90ZlXgpIFm06p6qHDHq/XC4TnJftN6OMbxVE0UTBAoRgcsDeJBBooITw== once@^1.3.0: version "1.4.0" @@ -2763,7 +2743,7 @@ saxes@^6.0.0: dependencies: xmlchars "^2.2.0" -schema-utils@^4.3.0, schema-utils@^4.3.3: +schema-utils@^4.3.3: version "4.3.3" resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.3.3.tgz#5b1850912fa31df90716963d45d9121fdfc09f46" integrity sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA== @@ -2931,10 +2911,10 @@ tapable@^2.3.0, tapable@^2.3.3: resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.3.3.tgz#5da7c9992c46038221267985ab28421a8879f160" integrity sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A== -terser@^5.31.1: - version "5.50.0" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.50.0.tgz#4e560a46704f9172f96ba31c3bd6dc108ad2cead" - integrity sha512-CN9BVxWhgS/hRxtUMjtC2uRWSTcSfQFHMDWma6sKKfIivCD91sM+FOPfvwoaRMqCSrUpe1nv3jDamd9eEQ4y+w== +terser@^5.51.0: + version "5.51.2" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.51.2.tgz#555912425a7f2ff7737425c3718fa76c7069f6ef" + integrity sha512-bWnjSNscmuI+GJze6ZupnHP8G/cTcsJF+bXCeQknk2SHQsgbNJnLrqiH9jZ2W4STPVXH2mDKKRX3iwPhc9Cn/Q== dependencies: "@jridgewell/source-map" "^0.3.3" acorn "^8.15.0" @@ -3068,9 +3048,9 @@ universalify@^0.2.0: integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== update-browserslist-db@^1.3.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.3.1.tgz#a71c28dd22f505481dbc4689087b18d933e90afd" - integrity sha512-ZZ61DsRsOnakl74HAmp3oSN4aXUmEWXf+i/yv0h7tIBfICc3VdrFErQKUUKPgu3AMsTUMbcongALEN4l6GSUrQ== + version "1.3.2" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.3.2.tgz#9d99fbff56c50bb11ba5fd35cece5916da595836" + integrity sha512-UQ+MSxlhRm1bzjhU+DcuXfjFO1FzNtqhK5+9Yvlp90ItDLk5vT932A0rFu619nf7RVS+Y/VeaUW1jaRDqZ8VJw== dependencies: escalade "^3.2.0" picocolors "^1.1.1" @@ -3129,9 +3109,9 @@ webpack-sources@^3.5.1: integrity sha512-jyuiGJdtvY434z5bUZrjz67v76/ePNvFZTp9Mdz29IlH4+GPsgyGjiv0fKI+M7BdkU6ADjulUcKAd3tUK3WlEw== webpack@^5.105.4: - version "5.109.2" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.109.2.tgz#b58dc289561c3282db35c210a99379a836a4c28d" - integrity sha512-U9/cvLzxObKNEZ9+TtdqrHM5/9z3lgl2c+c4BzbqGxFQvQvBAq87yql5A8pQ+rrMbS496MZJeF5enVBndIy2hw== + version "5.110.3" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.110.3.tgz#e122b66f6226b7af8f209b6102cd13238c4813a8" + integrity sha512-GuizBzRvo9YPpyoNMf3ag7AzxbaW85qrRSqTha345KyJbAFPt3/cMzBM0h+RWg7SK/7DdzRLINP3LvQ0hvr4hg== dependencies: "@types/estree" "^1.0.8" "@types/json-schema" "^7.0.15" @@ -3143,11 +3123,10 @@ webpack@^5.105.4: chrome-trace-event "^1.0.2" enhanced-resolve "^5.24.4" es-module-lexer "^2.1.0" - eslint-scope "5.1.1" events "^3.2.0" graceful-fs "^4.2.11" mime-db "^1.54.0" - minimizer-webpack-plugin "^5.6.1" + minimizer-webpack-plugin "^5.7.0" neo-async "^2.6.2" schema-utils "^4.3.3" tapable "^2.3.0"