Skip to content

Commit 74f3a7c

Browse files
SDK regeneration
Unable to analyze changes with AI, incrementing PATCH version.
1 parent 93e0950 commit 74f3a7c

40 files changed

+211
-17
lines changed

.fernignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ src/index.ts
1313

1414
src/api/resources/conversationalAi/conversation
1515
tests/wire/conversationalAi/mcpServers/tools.test.ts
16+
changelog.md

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## v2.31.1 - 2026-01-14
2+
* SDK regeneration
3+
* Unable to analyze changes with AI, incrementing PATCH version.
4+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elevenlabs/elevenlabs-js",
3-
"version": "v2.31.0",
3+
"version": "v2.31.1",
44
"private": false,
55
"repository": "github:elevenlabs/elevenlabs-js",
66
"license": "MIT",

src/BaseClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export function normalizeClientOptions<T extends BaseClientOptions>(options: T):
4747
{
4848
"X-Fern-Language": "JavaScript",
4949
"X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
50-
"X-Fern-SDK-Version": "v2.31.0",
51-
"User-Agent": "@elevenlabs/elevenlabs-js/v2.31.0",
50+
"X-Fern-SDK-Version": "v2.31.1",
51+
"User-Agent": "@elevenlabs/elevenlabs-js/v2.31.1",
5252
"X-Fern-Runtime": core.RUNTIME.type,
5353
"X-Fern-Runtime-Version": core.RUNTIME.version,
5454
"xi-api-key": options?.apiKey,

src/api/resources/voices/client/Client.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClie
44
import { type NormalizedClientOptions, normalizeClientOptions } from "../../../../BaseClient";
55
import * as core from "../../../../core";
66
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers";
7+
import { toJson } from "../../../../core/json";
78
import * as environments from "../../../../environments";
89
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError";
910
import * as errors from "../../../../errors/index";
@@ -503,7 +504,15 @@ export class VoicesClient {
503504
}
504505

505506
if (request.labels != null) {
506-
_request.append("labels", request.labels);
507+
_request.append(
508+
"labels",
509+
(() => {
510+
const mapped = serializers.VoicesUpdateRequestLabels.jsonOrThrow(request.labels, {
511+
unrecognizedObjectKeys: "strip",
512+
});
513+
return typeof mapped === "string" ? mapped : toJson(mapped);
514+
})(),
515+
);
507516
}
508517

509518
const _maybeEncodedRequest = await _request.getRequest();

src/api/resources/voices/client/requests/BodyEditVoiceV1VoicesVoiceIdEditPost.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// This file was auto-generated by Fern from our API Definition.
22

33
import type * as core from "../../../../../core";
4+
import type * as ElevenLabs from "../../../../index";
45

56
/**
67
* @example
@@ -17,6 +18,6 @@ export interface BodyEditVoiceV1VoicesVoiceIdEditPost {
1718
removeBackgroundNoise?: boolean;
1819
/** A description of the voice. */
1920
description?: string;
20-
/** Serialized labels dictionary for the voice. */
21-
labels?: string;
21+
/** Labels for the voice. Keys can be language, accent, gender, or age. */
22+
labels?: ElevenLabs.VoicesUpdateRequestLabels;
2223
}

src/api/resources/voices/resources/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export * as ivc from "./ivc";
22
export * from "./ivc/client/requests";
3+
export * from "./ivc/types";
34
export * as pvc from "./pvc";
45
export * from "./pvc/client/requests";
56
export * as samples from "./samples";

src/api/resources/voices/resources/ivc/client/Client.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../Ba
44
import { type NormalizedClientOptions, normalizeClientOptions } from "../../../../../../BaseClient";
55
import * as core from "../../../../../../core";
66
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers";
7+
import { toJson } from "../../../../../../core/json";
78
import * as environments from "../../../../../../environments";
89
import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError";
910
import * as errors from "../../../../../../errors/index";
@@ -64,7 +65,15 @@ export class IvcClient {
6465
}
6566

6667
if (request.labels != null) {
67-
_request.append("labels", request.labels);
68+
_request.append(
69+
"labels",
70+
(() => {
71+
const mapped = serializers.voices.IvcCreateRequestLabels.jsonOrThrow(request.labels, {
72+
unrecognizedObjectKeys: "strip",
73+
});
74+
return typeof mapped === "string" ? mapped : toJson(mapped);
75+
})(),
76+
);
6877
}
6978

7079
const _maybeEncodedRequest = await _request.getRequest();

src/api/resources/voices/resources/ivc/client/requests/BodyAddVoiceV1VoicesAddPost.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// This file was auto-generated by Fern from our API Definition.
22

33
import type * as core from "../../../../../../../core";
4+
import type * as ElevenLabs from "../../../../../../index";
45

56
/**
67
* @example
@@ -18,6 +19,6 @@ export interface BodyAddVoiceV1VoicesAddPost {
1819
removeBackgroundNoise?: boolean;
1920
/** A description of the voice. */
2021
description?: string;
21-
/** Serialized labels dictionary for the voice. */
22-
labels?: string;
22+
/** Labels for the voice. Keys can be language, accent, gender, or age. */
23+
labels?: ElevenLabs.voices.IvcCreateRequestLabels;
2324
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export * from "./client";
2+
export * from "./types";

0 commit comments

Comments
 (0)