diff --git a/.fern/metadata.json b/.fern/metadata.json index 7a55a5f..8f458f6 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,5 +1,5 @@ { - "cliVersion": "5.51.2", + "cliVersion": "5.63.0", "generatorName": "fernapi/fern-csharp-sdk", "generatorVersion": "2.58.0", "generatorConfig": { @@ -12,10 +12,10 @@ "simplify-object-dictionaries": true, "use-discriminated-unions": false }, - "originGitCommit": "5a015aa01196915bea6110904c69d5804f457ff5", + "originGitCommit": "2c66caa46a7889ac44f77d16914eb96a3641e6af", "originGitCommitIsDirty": true, "invokedBy": "ci", "requestedVersion": "AUTO", "ciProvider": "unknown", - "sdkVersion": "2.0.0" + "sdkVersion": "2.0.1" } \ No newline at end of file diff --git a/.fern/replay.lock b/.fern/replay.lock new file mode 100644 index 0000000..c673a73 --- /dev/null +++ b/.fern/replay.lock @@ -0,0 +1,10 @@ +# DO NOT EDIT MANUALLY - Managed by Fern Replay +version: "1.0" +generations: + - commit_sha: aa3a1901c245c365f40953a5dcc7e030578a31d4 + tree_hash: b16b1bf7bc7790147ea7b9152a7e75318347b377 + timestamp: 2026-07-01T18:16:43.390Z + cli_version: unknown + generator_versions: {} +current_generation: aa3a1901c245c365f40953a5dcc7e030578a31d4 +patches: [] diff --git a/.fernignore b/.fernignore index e1c8702..b28e662 100644 --- a/.fernignore +++ b/.fernignore @@ -2,3 +2,6 @@ .gitignore 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/src/Vapi.Net/Core/Public/Version.cs b/src/Vapi.Net/Core/Public/Version.cs index 641bf59..1685a0d 100644 --- a/src/Vapi.Net/Core/Public/Version.cs +++ b/src/Vapi.Net/Core/Public/Version.cs @@ -3,5 +3,5 @@ namespace Vapi.Net; [Serializable] internal class Version { - public const string Current = "2.0.0"; + public const string Current = "2.0.1"; } diff --git a/src/Vapi.Net/Vapi.Net.csproj b/src/Vapi.Net/Vapi.Net.csproj index 61b5c86..3d5ad0c 100644 --- a/src/Vapi.Net/Vapi.Net.csproj +++ b/src/Vapi.Net/Vapi.Net.csproj @@ -4,7 +4,7 @@ enable 12 enable - 2.0.0 + 2.0.1 $(Version) $(Version) README.md diff --git a/src/Vapi.Net/VapiClient.cs b/src/Vapi.Net/VapiClient.cs index 1161491..43d480e 100644 --- a/src/Vapi.Net/VapiClient.cs +++ b/src/Vapi.Net/VapiClient.cs @@ -15,7 +15,7 @@ public VapiClient(string? token = null, ClientOptions? clientOptions = null) { "X-Fern-Language", "C#" }, { "X-Fern-SDK-Name", "Vapi.Net" }, { "X-Fern-SDK-Version", Version.Current }, - { "User-Agent", "Vapi.Net/2.0.0" }, + { "User-Agent", "Vapi.Net/2.0.1" }, } ); foreach (var header in platformHeaders)