diff --git a/package.json b/package.json index d8ef0b2..0b83610 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cartesia/cartesia-js", - "version": "2.1.0-alpha0", + "version": "2.1.0", "private": false, "repository": "https://github.com/cartesia-ai/cartesia-js", "main": "./index.js", diff --git a/src/api/resources/apiStatus/client/Client.ts b/src/api/resources/apiStatus/client/Client.ts index 50117de..27ce4b9 100644 --- a/src/api/resources/apiStatus/client/Client.ts +++ b/src/api/resources/apiStatus/client/Client.ts @@ -46,8 +46,8 @@ export class ApiStatus { "Cartesia-Version": requestOptions?.cartesiaVersion ?? this._options?.cartesiaVersion ?? "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", - "X-Fern-SDK-Version": "2.1.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.1.0-alpha0", + "X-Fern-SDK-Version": "2.1.0", + "User-Agent": "@cartesia/cartesia-js/2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/datasets/client/Client.ts b/src/api/resources/datasets/client/Client.ts index 74ec38b..c7647f2 100644 --- a/src/api/resources/datasets/client/Client.ts +++ b/src/api/resources/datasets/client/Client.ts @@ -52,8 +52,8 @@ export class Datasets { "Cartesia-Version": requestOptions?.cartesiaVersion ?? this._options?.cartesiaVersion ?? "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", - "X-Fern-SDK-Version": "2.1.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.1.0-alpha0", + "X-Fern-SDK-Version": "2.1.0", + "User-Agent": "@cartesia/cartesia-js/2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -119,8 +119,8 @@ export class Datasets { "Cartesia-Version": requestOptions?.cartesiaVersion ?? this._options?.cartesiaVersion ?? "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", - "X-Fern-SDK-Version": "2.1.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.1.0-alpha0", + "X-Fern-SDK-Version": "2.1.0", + "User-Agent": "@cartesia/cartesia-js/2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -185,8 +185,8 @@ export class Datasets { "Cartesia-Version": requestOptions?.cartesiaVersion ?? this._options?.cartesiaVersion ?? "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", - "X-Fern-SDK-Version": "2.1.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.1.0-alpha0", + "X-Fern-SDK-Version": "2.1.0", + "User-Agent": "@cartesia/cartesia-js/2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -258,8 +258,8 @@ export class Datasets { "Cartesia-Version": requestOptions?.cartesiaVersion ?? this._options?.cartesiaVersion ?? "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", - "X-Fern-SDK-Version": "2.1.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.1.0-alpha0", + "X-Fern-SDK-Version": "2.1.0", + "User-Agent": "@cartesia/cartesia-js/2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/voices/client/Client.ts b/src/api/resources/voices/client/Client.ts index 8fe48fb..c57b9fb 100644 --- a/src/api/resources/voices/client/Client.ts +++ b/src/api/resources/voices/client/Client.ts @@ -52,8 +52,8 @@ export class Voices { "Cartesia-Version": requestOptions?.cartesiaVersion ?? this._options?.cartesiaVersion ?? "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", - "X-Fern-SDK-Version": "2.1.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.1.0-alpha0", + "X-Fern-SDK-Version": "2.1.0", + "User-Agent": "@cartesia/cartesia-js/2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -123,8 +123,8 @@ export class Voices { "Cartesia-Version": requestOptions?.cartesiaVersion ?? this._options?.cartesiaVersion ?? "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", - "X-Fern-SDK-Version": "2.1.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.1.0-alpha0", + "X-Fern-SDK-Version": "2.1.0", + "User-Agent": "@cartesia/cartesia-js/2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -186,8 +186,8 @@ export class Voices { "Cartesia-Version": requestOptions?.cartesiaVersion ?? this._options?.cartesiaVersion ?? "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", - "X-Fern-SDK-Version": "2.1.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.1.0-alpha0", + "X-Fern-SDK-Version": "2.1.0", + "User-Agent": "@cartesia/cartesia-js/2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -250,8 +250,8 @@ export class Voices { "Cartesia-Version": requestOptions?.cartesiaVersion ?? this._options?.cartesiaVersion ?? "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", - "X-Fern-SDK-Version": "2.1.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.1.0-alpha0", + "X-Fern-SDK-Version": "2.1.0", + "User-Agent": "@cartesia/cartesia-js/2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -313,8 +313,8 @@ export class Voices { "Cartesia-Version": requestOptions?.cartesiaVersion ?? this._options?.cartesiaVersion ?? "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", - "X-Fern-SDK-Version": "2.1.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.1.0-alpha0", + "X-Fern-SDK-Version": "2.1.0", + "User-Agent": "@cartesia/cartesia-js/2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -383,8 +383,8 @@ export class Voices { "Cartesia-Version": requestOptions?.cartesiaVersion ?? this._options?.cartesiaVersion ?? "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", - "X-Fern-SDK-Version": "2.1.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.1.0-alpha0", + "X-Fern-SDK-Version": "2.1.0", + "User-Agent": "@cartesia/cartesia-js/2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -454,8 +454,8 @@ export class Voices { "Cartesia-Version": requestOptions?.cartesiaVersion ?? this._options?.cartesiaVersion ?? "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", - "X-Fern-SDK-Version": "2.1.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.1.0-alpha0", + "X-Fern-SDK-Version": "2.1.0", + "User-Agent": "@cartesia/cartesia-js/2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -559,8 +559,8 @@ export class Voices { "Cartesia-Version": requestOptions?.cartesiaVersion ?? this._options?.cartesiaVersion ?? "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", - "X-Fern-SDK-Version": "2.1.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.1.0-alpha0", + "X-Fern-SDK-Version": "2.1.0", + "User-Agent": "@cartesia/cartesia-js/2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/voices/types/LocalizeDialect.ts b/src/api/resources/voices/types/LocalizeDialect.ts index b00b076..6eb42f4 100644 --- a/src/api/resources/voices/types/LocalizeDialect.ts +++ b/src/api/resources/voices/types/LocalizeDialect.ts @@ -5,14 +5,10 @@ import * as Cartesia from "../../../index"; /** - * The dialect to localize to. + * The dialect to localize to. Only supported for English (`en`). */ export type LocalizeDialect = /** * Only available when language is set to English (`en`). * */ - | Cartesia.LocalizeEnglishDialect - /** - * The standard dialect for the language. - * */ - | "st"; + Cartesia.LocalizeEnglishDialect; diff --git a/src/serialization/resources/voices/types/LocalizeDialect.ts b/src/serialization/resources/voices/types/LocalizeDialect.ts index 12de87b..24b5388 100644 --- a/src/serialization/resources/voices/types/LocalizeDialect.ts +++ b/src/serialization/resources/voices/types/LocalizeDialect.ts @@ -8,8 +8,8 @@ import * as core from "../../../../core"; import { LocalizeEnglishDialect } from "./LocalizeEnglishDialect"; export const LocalizeDialect: core.serialization.Schema = - core.serialization.undiscriminatedUnion([LocalizeEnglishDialect, core.serialization.stringLiteral("st")]); + core.serialization.undiscriminatedUnion([LocalizeEnglishDialect]); export declare namespace LocalizeDialect { - type Raw = LocalizeEnglishDialect.Raw | "st"; + type Raw = LocalizeEnglishDialect.Raw; } diff --git a/src/version.ts b/src/version.ts index e48542a..58b4ee6 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "2.1.0-alpha0"; +export const SDK_VERSION = "2.1.0"; diff --git a/yarn.lock b/yarn.lock index 430c380..2ccb7d1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1117,9 +1117,9 @@ camelcase@^6.2.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001669: - version "1.0.30001687" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001687.tgz#d0ac634d043648498eedf7a3932836beba90ebae" - integrity sha512-0S/FDhf4ZiqrTUiQ39dKeUjYRjkv7lOZU1Dgif2rIqrTzX/1wV2hfKu9TOm1IHkdSijfLswxTFzl/cvir+SLSQ== + version "1.0.30001688" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001688.tgz#f9d3ede749f083ce0db4c13db9d828adaf2e8d0a" + integrity sha512-Nmqpru91cuABu/DTCXbM2NSRHzM2uVHfPnhJ/1zEAJx/ILBRVmz3pzH4N7DZqbdG0gWClsCC05Oj0mJ/1AWMbA== chalk@^4.0.0, chalk@^4.1.0: version "4.1.2"