From 45e76633c3b0546693a58c036f6bbbd1ff3625d6 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 29 Nov 2024 03:20:24 +0000 Subject: [PATCH] SDK regeneration --- package.json | 9 ++++-- src/api/resources/apiStatus/client/Client.ts | 4 +-- src/api/resources/tts/client/Client.ts | 8 ++--- .../resources/voiceChanger/client/Client.ts | 8 ++--- src/api/resources/voices/client/Client.ts | 32 +++++++++---------- src/version.ts | 2 +- yarn.lock | 17 ++++++++++ 7 files changed, 50 insertions(+), 30 deletions(-) diff --git a/package.json b/package.json index bc59cd4..f5c13a7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cartesia/cartesia-js", - "version": "2.0.0-alpha0", + "version": "2.0.0-alpha", "private": false, "repository": "https://github.com/cartesia-ai/cartesia-js", "main": "./index.js", @@ -18,7 +18,9 @@ "node-fetch": "2.7.0", "qs": "6.11.2", "readable-stream": "^4.5.2", - "form-data-encoder": "^4.0.2" + "form-data-encoder": "^4.0.2", + "emittery": "^1.0.3", + "human-id": "^4.1.1" }, "devDependencies": { "@types/url-join": "4.0.1", @@ -34,7 +36,8 @@ "jest-environment-jsdom": "29.7.0", "@types/node": "17.0.33", "prettier": "2.7.1", - "typescript": "4.6.4" + "typescript": "4.6.4", + "@types/ws": "^8.5.13" }, "browser": { "fs": false, diff --git a/src/api/resources/apiStatus/client/Client.ts b/src/api/resources/apiStatus/client/Client.ts index 500d7c2..50e634d 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.0.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha0", + "X-Fern-SDK-Version": "2.0.0-alpha", + "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/tts/client/Client.ts b/src/api/resources/tts/client/Client.ts index 9d18cbf..c58eb12 100644 --- a/src/api/resources/tts/client/Client.ts +++ b/src/api/resources/tts/client/Client.ts @@ -45,8 +45,8 @@ export class Tts { "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.0.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha0", + "X-Fern-SDK-Version": "2.0.0-alpha", + "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -99,8 +99,8 @@ export class Tts { "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.0.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha0", + "X-Fern-SDK-Version": "2.0.0-alpha", + "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/voiceChanger/client/Client.ts b/src/api/resources/voiceChanger/client/Client.ts index 3cc8b32..b1a55b0 100644 --- a/src/api/resources/voiceChanger/client/Client.ts +++ b/src/api/resources/voiceChanger/client/Client.ts @@ -70,8 +70,8 @@ export class VoiceChanger { "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.0.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha0", + "X-Fern-SDK-Version": "2.0.0-alpha", + "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -140,8 +140,8 @@ export class VoiceChanger { "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.0.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha0", + "X-Fern-SDK-Version": "2.0.0-alpha", + "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha", "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 43e709b..56a6123 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.0.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha0", + "X-Fern-SDK-Version": "2.0.0-alpha", + "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha", "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.0.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha0", + "X-Fern-SDK-Version": "2.0.0-alpha", + "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha", "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.0.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha0", + "X-Fern-SDK-Version": "2.0.0-alpha", + "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha", "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.0.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha0", + "X-Fern-SDK-Version": "2.0.0-alpha", + "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha", "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.0.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha0", + "X-Fern-SDK-Version": "2.0.0-alpha", + "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha", "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.0.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha0", + "X-Fern-SDK-Version": "2.0.0-alpha", + "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha", "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.0.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha0", + "X-Fern-SDK-Version": "2.0.0-alpha", + "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha", "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.0.0-alpha0", - "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha0", + "X-Fern-SDK-Version": "2.0.0-alpha", + "User-Agent": "@cartesia/cartesia-js/2.0.0-alpha", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/version.ts b/src/version.ts index 0bf6d5b..f08f1ce 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "2.0.0-alpha0"; +export const SDK_VERSION = "2.0.0-alpha"; diff --git a/yarn.lock b/yarn.lock index e940807..32f6c20 100644 --- a/yarn.lock +++ b/yarn.lock @@ -702,6 +702,13 @@ resolved "https://registry.yarnpkg.com/@types/url-join/-/url-join-4.0.1.tgz#4989c97f969464647a8586c7252d97b449cdc045" integrity sha512-wDXw9LEEUHyV+7UWy7U315nrJGJ7p1BzaCxDpEoLr789Dk1WDVMMlf3iBfbG2F8NdWnYyFbtTxUn2ZNbm1Q4LQ== +"@types/ws@^8.5.13": + version "8.5.13" + resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.13.tgz#6414c280875e2691d0d1e080b05addbf5cb91e20" + integrity sha512-osM/gWBTPKgHV8XkTunnegTRIsvF6owmf5w+JtAfOw472dptdm0dlGv4xCt6GwQRcC2XVOvvRE/0bAoQcL2QkA== + dependencies: + "@types/node" "*" + "@types/yargs-parser@*": version "21.0.3" resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.3.tgz#815e30b786d2e8f0dcd85fd5bcf5e1a04d008f15" @@ -1296,6 +1303,11 @@ emittery@^0.13.1: resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.13.1.tgz#c04b8c3457490e0847ae51fced3af52d338e3dad" integrity sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ== +emittery@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/emittery/-/emittery-1.0.3.tgz#c9d2a9c689870f15251bb13b31c67715c26d69ac" + integrity sha512-tJdCJitoy2lrC2ldJcqN4vkqJ00lT+tOWNT1hBJjO/3FDMJa5TTIiYGCKGkn/WfCyOzUMObeohbVTj00fhiLiA== + emoji-regex@^8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" @@ -1647,6 +1659,11 @@ https-proxy-agent@^5.0.1: agent-base "6" debug "4" +human-id@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/human-id/-/human-id-4.1.1.tgz#2801fbd61b9a5c1c9170f332802db6408a39a4b0" + integrity sha512-3gKm/gCSUipeLsRYZbbdA1BD83lBoWUkZ7G9VFrhWPAU76KwYo5KR8V28bpoPm/ygy0x5/GCbpRQdY7VLYCoIg== + human-signals@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"