From 1a246baf7bc30a861253558188e4edeadd30b959 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 2 Jul 2026 18:47:43 +0000 Subject: [PATCH 1/2] [fern-generated] Update SDK Generated by Fern CLI Version: unknown Generators: - fernapi/fern-typescript-sdk: 3.63.0 --- .fern/metadata.json | 6 +- .fern/replay.lock | 10 ++ .fernignore | 3 + .gitattributes | 1 + .../workflows/sdk-release-pr-notification.yml | 146 ------------------ package.json | 2 +- src/BaseClient.ts | 4 +- src/version.ts | 2 +- 8 files changed, 21 insertions(+), 153 deletions(-) create mode 100644 .fern/replay.lock create mode 100644 .gitattributes delete mode 100644 .github/workflows/sdk-release-pr-notification.yml diff --git a/.fern/metadata.json b/.fern/metadata.json index fbb2dfd..0ab7e4c 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,5 +1,5 @@ { - "cliVersion": "5.51.2", + "cliVersion": "5.64.0", "generatorName": "fernapi/fern-typescript-sdk", "generatorVersion": "3.63.0", "generatorConfig": { @@ -11,10 +11,10 @@ "omitUndefined": true, "enableInlineTypes": false }, - "originGitCommit": "5a015aa01196915bea6110904c69d5804f457ff5", + "originGitCommit": "d43c62976eed622763119de871f9302955fd21a8", "originGitCommitIsDirty": true, "invokedBy": "ci", "requestedVersion": "AUTO", "ciProvider": "unknown", - "sdkVersion": "2.0.0" + "sdkVersion": "0.0.0-fern-placeholder" } diff --git a/.fern/replay.lock b/.fern/replay.lock new file mode 100644 index 0000000..ce17c2f --- /dev/null +++ b/.fern/replay.lock @@ -0,0 +1,10 @@ +# DO NOT EDIT MANUALLY - Managed by Fern Replay +version: "1.0" +generations: + - commit_sha: 7ec0a68fa513af0f3e11b55c66fb9f3ab6664317 + tree_hash: 7e90ce12e66caf2b3e1d82b554fab636f887aecb + timestamp: 2026-07-02T18:47:42.759Z + cli_version: unknown + generator_versions: {} +current_generation: 7ec0a68fa513af0f3e11b55c66fb9f3ab6664317 +patches: [] diff --git a/.fernignore b/.fernignore index 07281cd..6f97b23 100644 --- a/.fernignore +++ b/.fernignore @@ -2,3 +2,6 @@ README.md changelog.md +.fern/replay.lock +.fern/replay.yml +.gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..74928d6 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +.fern/replay.lock linguist-generated=true diff --git a/.github/workflows/sdk-release-pr-notification.yml b/.github/workflows/sdk-release-pr-notification.yml deleted file mode 100644 index 98adac5..0000000 --- a/.github/workflows/sdk-release-pr-notification.yml +++ /dev/null @@ -1,146 +0,0 @@ -name: SDK Release PR Notification - -on: - pull_request: - types: [opened, reopened, ready_for_review] - -permissions: - contents: read - pull-requests: read - -jobs: - notify: - name: Notify Slack - if: > - (github.event.action == 'ready_for_review' || github.event.pull_request.draft == false) && - ( - github.event.pull_request.user.login == 'fern-api[bot]' || - github.event.pull_request.user.login == 'fern-api' || - contains(github.event.pull_request.head.ref, 'fern') - ) - runs-on: ubuntu-latest - env: - SLACK_WEBHOOK_URL: ${{ secrets.PRODUCTION_RELEASE_OBSERVABILITY_SLACK_WEBHOOK }} - RUNBOOK_URL: https://github.com/VapiAI/docs/blob/main/.github/runbooks/sdk-release-approval.md - steps: - - name: Checkout PR - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha }} - - - name: Detect package metadata - id: package - shell: bash - run: | - set -euo pipefail - - repo="${GITHUB_REPOSITORY#*/}" - package="unknown" - registry="unknown" - - case "$repo" in - server-sdk-typescript) - package="@vapi-ai/server-sdk" - registry="npm" - ;; - server-sdk-python) - package="vapi_server_sdk" - registry="PyPI" - ;; - server-sdk-go) - package="github.com/VapiAI/server-sdk-go" - registry="Go modules" - ;; - server-sdk-ruby) - package="vapi_server_sdk" - registry="RubyGems" - ;; - server-sdk-csharp) - package="Vapi.Net" - registry="NuGet" - ;; - server-sdk-php) - package="vapi/vapi" - registry="Packagist" - ;; - server-sdk-swift) - package="Vapi" - registry="Swift Package Manager" - ;; - esac - - version="$(node <<'NODE' - const fs = require('fs'); - - const readJson = (path) => { - try { - return JSON.parse(fs.readFileSync(path, 'utf8')); - } catch { - return undefined; - } - }; - - const firstMatch = (path, regex) => { - if (!fs.existsSync(path)) return undefined; - return fs.readFileSync(path, 'utf8').match(regex)?.[1]; - }; - - const metadata = readJson('.fern/metadata.json'); - const packageJson = readJson('package.json'); - const composerJson = readJson('composer.json'); - - const version = - metadata?.sdkVersion || - packageJson?.version || - composerJson?.version || - firstMatch('pyproject.toml', /^version = "([^"]+)"/m) || - firstMatch('src/Vapi.Net/Vapi.Net.csproj', /([^<]+)<\/Version>/) || - firstMatch('lib/vapi/version.rb', /VERSION = "([^"]+)"/) || - 'unknown'; - - process.stdout.write(version); - NODE - )" - - { - echo "package=$package" - echo "registry=$registry" - echo "version=$version" - } >> "$GITHUB_OUTPUT" - - - name: Send Slack notification - shell: bash - env: - PR_NUMBER: ${{ github.event.pull_request.number }} - PR_TITLE: ${{ github.event.pull_request.title }} - PR_URL: ${{ github.event.pull_request.html_url }} - PR_AUTHOR: ${{ github.event.pull_request.user.login }} - PACKAGE_NAME: ${{ steps.package.outputs.package }} - PACKAGE_REGISTRY: ${{ steps.package.outputs.registry }} - PACKAGE_VERSION: ${{ steps.package.outputs.version }} - run: | - set -euo pipefail - - if [ -z "${SLACK_WEBHOOK_URL}" ]; then - echo "::warning::PRODUCTION_RELEASE_OBSERVABILITY_SLACK_WEBHOOK is not set; skipping Slack notification." - exit 0 - fi - - text="$(cat < - *Author:* \`${PR_AUTHOR}\` - *Package:* \`${PACKAGE_NAME}\` (${PACKAGE_REGISTRY}) - *Version:* \`${PACKAGE_VERSION}\` - *Next:* Review and merge the PR, then publish the release tag from the SDK repo. - *Runbook:* <${RUNBOOK_URL}|SDK release approval runbook> - EOF - )" - - payload="$(jq -n --arg text "$text" '{text: $text}')" - curl --fail --show-error --silent \ - --request POST \ - --header 'Content-Type: application/json' \ - --data "$payload" \ - "$SLACK_WEBHOOK_URL" diff --git a/package.json b/package.json index a80436c..3bb757e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vapi-ai/server-sdk", - "version": "2.0.0", + "version": "0.0.0-fern-placeholder", "private": false, "repository": { "type": "git", diff --git a/src/BaseClient.ts b/src/BaseClient.ts index 98a48b9..0cbc606 100644 --- a/src/BaseClient.ts +++ b/src/BaseClient.ts @@ -52,8 +52,8 @@ export function normalizeClientOptions Date: Thu, 2 Jul 2026 18:47:50 +0000 Subject: [PATCH 2/2] [fern-autoversion] chore: remove User-Agent header from default client options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the hardcoded `User-Agent` header from the default headers set in `normalizeClientOptions`. This is an internal SDK header cleanup with no impact on public API surface or consumer-facing behavior. Key changes: - Remove `"User-Agent": "@vapi-ai/server-sdk/2.0.0"` from default request headers in `BaseClient.ts` - Add `.fern/replay.lock`, `.fern/replay.yml`, and `.gitattributes` to `.fernignore` 🌿 Generated with Fern --- .fern/metadata.json | 2 +- package.json | 2 +- src/BaseClient.ts | 4 ++-- src/version.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 0ab7e4c..a3961e8 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -16,5 +16,5 @@ "invokedBy": "ci", "requestedVersion": "AUTO", "ciProvider": "unknown", - "sdkVersion": "0.0.0-fern-placeholder" + "sdkVersion": "2.0.1" } diff --git a/package.json b/package.json index 3bb757e..912595a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vapi-ai/server-sdk", - "version": "0.0.0-fern-placeholder", + "version": "2.0.1", "private": false, "repository": { "type": "git", diff --git a/src/BaseClient.ts b/src/BaseClient.ts index 0cbc606..57a9ccc 100644 --- a/src/BaseClient.ts +++ b/src/BaseClient.ts @@ -52,8 +52,8 @@ export function normalizeClientOptions