diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 82e223e..1a55fdb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,55 +3,55 @@ name: ci on: [push] jobs: - compile: - runs-on: ubuntu-latest - - steps: - - name: Checkout repo - uses: actions/checkout@v3 - - - name: Set up node - uses: actions/setup-node@v3 - - - name: Compile - run: yarn && yarn build - - test: - runs-on: ubuntu-latest - - steps: - - name: Checkout repo - uses: actions/checkout@v3 - - - name: Set up node - uses: actions/setup-node@v3 - - - name: Compile - run: yarn && yarn test - - publish: - needs: [compile, test] - if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') - runs-on: ubuntu-latest - steps: - - name: Checkout repo - uses: actions/checkout@v3 - - name: Set up node - uses: actions/setup-node@v3 - - name: Install dependencies - run: yarn install - - name: Build - run: yarn build - - - name: Publish to npm - run: | - npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} - if [[ ${GITHUB_REF} == *alpha* ]]; then - npm publish --access public --tag alpha - elif [[ ${GITHUB_REF} == *beta* ]]; then - npm publish --access public --tag beta - else - npm publish --access public - fi - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + compile: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Set up node + uses: actions/setup-node@v3 + + - name: Compile + run: yarn && yarn build + + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Set up node + uses: actions/setup-node@v3 + + - name: Compile + run: yarn && yarn test + + publish: + needs: [ compile, test ] + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v3 + - name: Set up node + uses: actions/setup-node@v3 + - name: Install dependencies + run: yarn install + - name: Build + run: yarn build + + - name: Publish to npm + run: | + npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} + if [[ ${GITHUB_REF} == *alpha* ]]; then + npm publish --access public --tag alpha + elif [[ ${GITHUB_REF} == *beta* ]]; then + npm publish --access public --tag beta + else + npm publish --access public + fi + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/package.json b/package.json index 603fafb..9b68cdb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cartesia/cartesia-js", - "version": "2.0.2", + "version": "2.0.3", "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 9284b8b..2970672 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.2", - "User-Agent": "@cartesia/cartesia-js/2.0.2", + "X-Fern-SDK-Version": "2.0.3", + "User-Agent": "@cartesia/cartesia-js/2.0.3", "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 8c0d5dc..ca15d4a 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.2", - "User-Agent": "@cartesia/cartesia-js/2.0.2", + "X-Fern-SDK-Version": "2.0.3", + "User-Agent": "@cartesia/cartesia-js/2.0.3", "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.2", - "User-Agent": "@cartesia/cartesia-js/2.0.2", + "X-Fern-SDK-Version": "2.0.3", + "User-Agent": "@cartesia/cartesia-js/2.0.3", "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 74a287f..20455dd 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.2", - "User-Agent": "@cartesia/cartesia-js/2.0.2", + "X-Fern-SDK-Version": "2.0.3", + "User-Agent": "@cartesia/cartesia-js/2.0.3", "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.2", - "User-Agent": "@cartesia/cartesia-js/2.0.2", + "X-Fern-SDK-Version": "2.0.3", + "User-Agent": "@cartesia/cartesia-js/2.0.3", "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 4ed4476..5b7ca37 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.2", - "User-Agent": "@cartesia/cartesia-js/2.0.2", + "X-Fern-SDK-Version": "2.0.3", + "User-Agent": "@cartesia/cartesia-js/2.0.3", "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.2", - "User-Agent": "@cartesia/cartesia-js/2.0.2", + "X-Fern-SDK-Version": "2.0.3", + "User-Agent": "@cartesia/cartesia-js/2.0.3", "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.2", - "User-Agent": "@cartesia/cartesia-js/2.0.2", + "X-Fern-SDK-Version": "2.0.3", + "User-Agent": "@cartesia/cartesia-js/2.0.3", "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.2", - "User-Agent": "@cartesia/cartesia-js/2.0.2", + "X-Fern-SDK-Version": "2.0.3", + "User-Agent": "@cartesia/cartesia-js/2.0.3", "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.2", - "User-Agent": "@cartesia/cartesia-js/2.0.2", + "X-Fern-SDK-Version": "2.0.3", + "User-Agent": "@cartesia/cartesia-js/2.0.3", "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.2", - "User-Agent": "@cartesia/cartesia-js/2.0.2", + "X-Fern-SDK-Version": "2.0.3", + "User-Agent": "@cartesia/cartesia-js/2.0.3", "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.2", - "User-Agent": "@cartesia/cartesia-js/2.0.2", + "X-Fern-SDK-Version": "2.0.3", + "User-Agent": "@cartesia/cartesia-js/2.0.3", "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.2", - "User-Agent": "@cartesia/cartesia-js/2.0.2", + "X-Fern-SDK-Version": "2.0.3", + "User-Agent": "@cartesia/cartesia-js/2.0.3", "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 d3a011c..f043fad 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "2.0.2"; +export const SDK_VERSION = "2.0.3";