From ee372816ae0f62dfcc52467b436aea9ee75056cb Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2026 18:15:59 +0000 Subject: [PATCH 1/2] [fern-generated] Update SDK Generated by Fern CLI Version: unknown Generators: - fernapi/fern-go-sdk: 1.33.5 --- .fern/metadata.json | 6 +- .fern/replay.lock | 10 ++ .fernignore | 3 + .gitattributes | 1 + .../workflows/sdk-release-pr-notification.yml | 146 ------------------ analytics.go | 2 +- analytics/client.go | 8 +- analytics/raw_client.go | 8 +- assistants.go | 2 +- assistants/client.go | 8 +- assistants/raw_client.go | 8 +- calls.go | 2 +- calls/client.go | 8 +- calls/raw_client.go | 8 +- campaigns.go | 2 +- campaigns/client.go | 8 +- campaigns/raw_client.go | 8 +- chats.go | 2 +- chats/client.go | 8 +- chats/raw_client.go | 8 +- client/client.go | 36 ++--- client/client_test.go | 2 +- core/request_option.go | 4 +- error_codes.go | 4 +- errors.go | 2 +- eval.go | 2 +- eval/client.go | 8 +- eval/raw_client.go | 8 +- files.go | 2 +- files/client.go | 8 +- files/raw_client.go | 8 +- go.mod | 2 +- insight.go | 2 +- insight/client.go | 8 +- insight/raw_client.go | 8 +- internal/caller.go | 2 +- internal/caller_test.go | 2 +- internal/error_decoder.go | 2 +- internal/error_decoder_test.go | 2 +- internal/retrier_test.go | 2 +- observability_scorecard.go | 2 +- observabilityscorecard/client.go | 8 +- observabilityscorecard/raw_client.go | 8 +- option/request_option.go | 2 +- phone_numbers.go | 2 +- phonenumbers/client.go | 8 +- phonenumbers/raw_client.go | 8 +- provider_resources.go | 2 +- providerresources/client.go | 8 +- providerresources/raw_client.go | 8 +- sessions.go | 2 +- sessions/client.go | 8 +- sessions/raw_client.go | 8 +- squads.go | 2 +- squads/client.go | 8 +- squads/raw_client.go | 8 +- structured_outputs.go | 2 +- structuredoutputs/client.go | 8 +- structuredoutputs/raw_client.go | 8 +- tools.go | 2 +- tools/client.go | 8 +- tools/raw_client.go | 8 +- types.go | 2 +- 63 files changed, 184 insertions(+), 316 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 fbc44f4..028b2f6 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,10 +1,10 @@ { - "cliVersion": "5.51.2", + "cliVersion": "5.63.0", "generatorName": "fernapi/fern-go-sdk", "generatorVersion": "1.33.5", "generatorConfig": { "union": "v1" }, - "originGitCommit": "5a015aa01196915bea6110904c69d5804f457ff5", - "sdkVersion": "v2.0.0" + "originGitCommit": "2c66caa46a7889ac44f77d16914eb96a3641e6af", + "sdkVersion": "v0.0.0-fern-placeholder" } \ No newline at end of file diff --git a/.fern/replay.lock b/.fern/replay.lock new file mode 100644 index 0000000..150250a --- /dev/null +++ b/.fern/replay.lock @@ -0,0 +1,10 @@ +# DO NOT EDIT MANUALLY - Managed by Fern Replay +version: "1.0" +generations: + - commit_sha: faacd7287e48b6ca6effbab09a8f996a9b9c87d8 + tree_hash: 654557623b0f3b4d17ebbbb6e837dd6fc3ff25a9 + timestamp: 2026-07-01T18:15:59.152Z + cli_version: unknown + generator_versions: {} +current_generation: faacd7287e48b6ca6effbab09a8f996a9b9c87d8 +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/analytics.go b/analytics.go index 9d6bb4c..374c101 100644 --- a/analytics.go +++ b/analytics.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/v2/internal" + internal "github.com/VapiAI/server-sdk-go/internal" big "math/big" time "time" ) diff --git a/analytics/client.go b/analytics/client.go index 4fbc002..43fa39a 100644 --- a/analytics/client.go +++ b/analytics/client.go @@ -5,10 +5,10 @@ package analytics import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type Client struct { diff --git a/analytics/raw_client.go b/analytics/raw_client.go index 263c403..05fc8b7 100644 --- a/analytics/raw_client.go +++ b/analytics/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type RawClient struct { diff --git a/assistants.go b/assistants.go index 0214ca4..1660ab2 100644 --- a/assistants.go +++ b/assistants.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/v2/internal" + internal "github.com/VapiAI/server-sdk-go/internal" big "math/big" time "time" ) diff --git a/assistants/client.go b/assistants/client.go index ac5a24a..6a69f5d 100644 --- a/assistants/client.go +++ b/assistants/client.go @@ -5,10 +5,10 @@ package assistants import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type Client struct { diff --git a/assistants/raw_client.go b/assistants/raw_client.go index 5dc46fd..1403c3c 100644 --- a/assistants/raw_client.go +++ b/assistants/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type RawClient struct { diff --git a/calls.go b/calls.go index 59bd57d..9660103 100644 --- a/calls.go +++ b/calls.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/v2/internal" + internal "github.com/VapiAI/server-sdk-go/internal" big "math/big" time "time" ) diff --git a/calls/client.go b/calls/client.go index cae2a90..113e510 100644 --- a/calls/client.go +++ b/calls/client.go @@ -5,10 +5,10 @@ package calls import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type Client struct { diff --git a/calls/raw_client.go b/calls/raw_client.go index 2edefba..4875af1 100644 --- a/calls/raw_client.go +++ b/calls/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type RawClient struct { diff --git a/campaigns.go b/campaigns.go index 08ca13a..eb38b42 100644 --- a/campaigns.go +++ b/campaigns.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/v2/internal" + internal "github.com/VapiAI/server-sdk-go/internal" big "math/big" time "time" ) diff --git a/campaigns/client.go b/campaigns/client.go index 5b3f67b..6773d19 100644 --- a/campaigns/client.go +++ b/campaigns/client.go @@ -5,10 +5,10 @@ package campaigns import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type Client struct { diff --git a/campaigns/raw_client.go b/campaigns/raw_client.go index 22d5188..50bfa8b 100644 --- a/campaigns/raw_client.go +++ b/campaigns/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type RawClient struct { diff --git a/chats.go b/chats.go index 8e5b51f..91753b4 100644 --- a/chats.go +++ b/chats.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/v2/internal" + internal "github.com/VapiAI/server-sdk-go/internal" big "math/big" time "time" ) diff --git a/chats/client.go b/chats/client.go index 6dea8bc..74edbbd 100644 --- a/chats/client.go +++ b/chats/client.go @@ -5,10 +5,10 @@ package chats import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type Client struct { diff --git a/chats/raw_client.go b/chats/raw_client.go index a2549f0..550e70b 100644 --- a/chats/raw_client.go +++ b/chats/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type RawClient struct { diff --git a/client/client.go b/client/client.go index bdacc5f..e5da962 100644 --- a/client/client.go +++ b/client/client.go @@ -3,24 +3,24 @@ package client import ( - analytics "github.com/VapiAI/server-sdk-go/v2/analytics" - assistants "github.com/VapiAI/server-sdk-go/v2/assistants" - calls "github.com/VapiAI/server-sdk-go/v2/calls" - campaigns "github.com/VapiAI/server-sdk-go/v2/campaigns" - chats "github.com/VapiAI/server-sdk-go/v2/chats" - core "github.com/VapiAI/server-sdk-go/v2/core" - eval "github.com/VapiAI/server-sdk-go/v2/eval" - files "github.com/VapiAI/server-sdk-go/v2/files" - insight "github.com/VapiAI/server-sdk-go/v2/insight" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - observabilityscorecard "github.com/VapiAI/server-sdk-go/v2/observabilityscorecard" - option "github.com/VapiAI/server-sdk-go/v2/option" - phonenumbers "github.com/VapiAI/server-sdk-go/v2/phonenumbers" - providerresources "github.com/VapiAI/server-sdk-go/v2/providerresources" - sessions "github.com/VapiAI/server-sdk-go/v2/sessions" - squads "github.com/VapiAI/server-sdk-go/v2/squads" - structuredoutputs "github.com/VapiAI/server-sdk-go/v2/structuredoutputs" - tools "github.com/VapiAI/server-sdk-go/v2/tools" + analytics "github.com/VapiAI/server-sdk-go/analytics" + assistants "github.com/VapiAI/server-sdk-go/assistants" + calls "github.com/VapiAI/server-sdk-go/calls" + campaigns "github.com/VapiAI/server-sdk-go/campaigns" + chats "github.com/VapiAI/server-sdk-go/chats" + core "github.com/VapiAI/server-sdk-go/core" + eval "github.com/VapiAI/server-sdk-go/eval" + files "github.com/VapiAI/server-sdk-go/files" + insight "github.com/VapiAI/server-sdk-go/insight" + internal "github.com/VapiAI/server-sdk-go/internal" + observabilityscorecard "github.com/VapiAI/server-sdk-go/observabilityscorecard" + option "github.com/VapiAI/server-sdk-go/option" + phonenumbers "github.com/VapiAI/server-sdk-go/phonenumbers" + providerresources "github.com/VapiAI/server-sdk-go/providerresources" + sessions "github.com/VapiAI/server-sdk-go/sessions" + squads "github.com/VapiAI/server-sdk-go/squads" + structuredoutputs "github.com/VapiAI/server-sdk-go/structuredoutputs" + tools "github.com/VapiAI/server-sdk-go/tools" ) type Client struct { diff --git a/client/client_test.go b/client/client_test.go index 304a15b..c69ef87 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -3,7 +3,7 @@ package client import ( - option "github.com/VapiAI/server-sdk-go/v2/option" + option "github.com/VapiAI/server-sdk-go/option" assert "github.com/stretchr/testify/assert" http "net/http" testing "testing" diff --git a/core/request_option.go b/core/request_option.go index bc4d346..04462f9 100644 --- a/core/request_option.go +++ b/core/request_option.go @@ -57,8 +57,8 @@ func (r *RequestOptions) cloneHeader() http.Header { headers := r.HTTPHeader.Clone() headers.Set("X-Fern-Language", "Go") headers.Set("X-Fern-SDK-Name", "github.com/VapiAI/server-sdk-go") - headers.Set("X-Fern-SDK-Version", "v2.0.0") - headers.Set("User-Agent", "github.com/VapiAI/server-sdk-go/v2.0.0") + headers.Set("X-Fern-SDK-Version", "v0.0.0-fern-placeholder") + headers.Set("User-Agent", "github.com/VapiAI/server-sdk-go/v0.0.0-fern-placeholder") return headers } diff --git a/error_codes.go b/error_codes.go index 8143fc2..352888f 100644 --- a/error_codes.go +++ b/error_codes.go @@ -3,8 +3,8 @@ package api import ( - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" ) var ErrorCodes internal.ErrorCodes = internal.ErrorCodes{ diff --git a/errors.go b/errors.go index 8b2e0b4..832540e 100644 --- a/errors.go +++ b/errors.go @@ -4,7 +4,7 @@ package api import ( json "encoding/json" - core "github.com/VapiAI/server-sdk-go/v2/core" + core "github.com/VapiAI/server-sdk-go/core" ) // Invalid file diff --git a/eval.go b/eval.go index ac15334..0714ae4 100644 --- a/eval.go +++ b/eval.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/v2/internal" + internal "github.com/VapiAI/server-sdk-go/internal" big "math/big" time "time" ) diff --git a/eval/client.go b/eval/client.go index eda15e5..bcc2a57 100644 --- a/eval/client.go +++ b/eval/client.go @@ -5,10 +5,10 @@ package eval import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type Client struct { diff --git a/eval/raw_client.go b/eval/raw_client.go index 92707e7..aa572a0 100644 --- a/eval/raw_client.go +++ b/eval/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type RawClient struct { diff --git a/files.go b/files.go index 3cabff5..5723bb3 100644 --- a/files.go +++ b/files.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/v2/internal" + internal "github.com/VapiAI/server-sdk-go/internal" io "io" big "math/big" time "time" diff --git a/files/client.go b/files/client.go index 994e429..82c3a24 100644 --- a/files/client.go +++ b/files/client.go @@ -5,10 +5,10 @@ package files import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type Client struct { diff --git a/files/raw_client.go b/files/raw_client.go index 1ea7dee..809c562 100644 --- a/files/raw_client.go +++ b/files/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type RawClient struct { diff --git a/go.mod b/go.mod index be1a6fe..f2c598e 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/VapiAI/server-sdk-go/v2 +module github.com/VapiAI/server-sdk-go go 1.21 diff --git a/insight.go b/insight.go index d09b048..bfa51a2 100644 --- a/insight.go +++ b/insight.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/v2/internal" + internal "github.com/VapiAI/server-sdk-go/internal" big "math/big" time "time" ) diff --git a/insight/client.go b/insight/client.go index 47b63c8..22b4c39 100644 --- a/insight/client.go +++ b/insight/client.go @@ -5,10 +5,10 @@ package insight import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type Client struct { diff --git a/insight/raw_client.go b/insight/raw_client.go index 63ee049..ca5215c 100644 --- a/insight/raw_client.go +++ b/insight/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type RawClient struct { diff --git a/internal/caller.go b/internal/caller.go index 4d00866..d553446 100644 --- a/internal/caller.go +++ b/internal/caller.go @@ -12,7 +12,7 @@ import ( "reflect" "strings" - "github.com/VapiAI/server-sdk-go/v2/core" + "github.com/VapiAI/server-sdk-go/core" ) const ( diff --git a/internal/caller_test.go b/internal/caller_test.go index 74508f8..4edb424 100644 --- a/internal/caller_test.go +++ b/internal/caller_test.go @@ -14,7 +14,7 @@ import ( "strings" "testing" - "github.com/VapiAI/server-sdk-go/v2/core" + "github.com/VapiAI/server-sdk-go/core" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/error_decoder.go b/internal/error_decoder.go index 7183088..06ca5b5 100644 --- a/internal/error_decoder.go +++ b/internal/error_decoder.go @@ -8,7 +8,7 @@ import ( "io" "net/http" - "github.com/VapiAI/server-sdk-go/v2/core" + "github.com/VapiAI/server-sdk-go/core" ) // ErrorCodes maps HTTP status codes to error constructors. diff --git a/internal/error_decoder_test.go b/internal/error_decoder_test.go index 94becff..4d2ef7d 100644 --- a/internal/error_decoder_test.go +++ b/internal/error_decoder_test.go @@ -6,7 +6,7 @@ import ( "net/http" "testing" - "github.com/VapiAI/server-sdk-go/v2/core" + "github.com/VapiAI/server-sdk-go/core" "github.com/stretchr/testify/assert" ) diff --git a/internal/retrier_test.go b/internal/retrier_test.go index 4ee7288..e47f29c 100644 --- a/internal/retrier_test.go +++ b/internal/retrier_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/VapiAI/server-sdk-go/v2/core" + "github.com/VapiAI/server-sdk-go/core" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/observability_scorecard.go b/observability_scorecard.go index ab4e6e4..512e08e 100644 --- a/observability_scorecard.go +++ b/observability_scorecard.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/v2/internal" + internal "github.com/VapiAI/server-sdk-go/internal" big "math/big" time "time" ) diff --git a/observabilityscorecard/client.go b/observabilityscorecard/client.go index fad038b..99b148c 100644 --- a/observabilityscorecard/client.go +++ b/observabilityscorecard/client.go @@ -5,10 +5,10 @@ package observabilityscorecard import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type Client struct { diff --git a/observabilityscorecard/raw_client.go b/observabilityscorecard/raw_client.go index 76e9907..169a7ac 100644 --- a/observabilityscorecard/raw_client.go +++ b/observabilityscorecard/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type RawClient struct { diff --git a/option/request_option.go b/option/request_option.go index 2e19775..f56c9b9 100644 --- a/option/request_option.go +++ b/option/request_option.go @@ -3,7 +3,7 @@ package option import ( - core "github.com/VapiAI/server-sdk-go/v2/core" + core "github.com/VapiAI/server-sdk-go/core" http "net/http" url "net/url" ) diff --git a/phone_numbers.go b/phone_numbers.go index 23d92b7..d7732b4 100644 --- a/phone_numbers.go +++ b/phone_numbers.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/v2/internal" + internal "github.com/VapiAI/server-sdk-go/internal" big "math/big" time "time" ) diff --git a/phonenumbers/client.go b/phonenumbers/client.go index 29e9ea0..f2d07a1 100644 --- a/phonenumbers/client.go +++ b/phonenumbers/client.go @@ -5,10 +5,10 @@ package phonenumbers import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type Client struct { diff --git a/phonenumbers/raw_client.go b/phonenumbers/raw_client.go index dfdf68b..bd9099a 100644 --- a/phonenumbers/raw_client.go +++ b/phonenumbers/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type RawClient struct { diff --git a/provider_resources.go b/provider_resources.go index e401c2b..455e83b 100644 --- a/provider_resources.go +++ b/provider_resources.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/v2/internal" + internal "github.com/VapiAI/server-sdk-go/internal" big "math/big" time "time" ) diff --git a/providerresources/client.go b/providerresources/client.go index 5d66c21..8b86155 100644 --- a/providerresources/client.go +++ b/providerresources/client.go @@ -5,10 +5,10 @@ package providerresources import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type Client struct { diff --git a/providerresources/raw_client.go b/providerresources/raw_client.go index 3f23b45..15421d6 100644 --- a/providerresources/raw_client.go +++ b/providerresources/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type RawClient struct { diff --git a/sessions.go b/sessions.go index c5fa948..ca94985 100644 --- a/sessions.go +++ b/sessions.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/v2/internal" + internal "github.com/VapiAI/server-sdk-go/internal" big "math/big" time "time" ) diff --git a/sessions/client.go b/sessions/client.go index 760738d..482189e 100644 --- a/sessions/client.go +++ b/sessions/client.go @@ -5,10 +5,10 @@ package sessions import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type Client struct { diff --git a/sessions/raw_client.go b/sessions/raw_client.go index 1156fba..d6135d1 100644 --- a/sessions/raw_client.go +++ b/sessions/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type RawClient struct { diff --git a/squads.go b/squads.go index 7a7c554..f22d94b 100644 --- a/squads.go +++ b/squads.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/v2/internal" + internal "github.com/VapiAI/server-sdk-go/internal" big "math/big" time "time" ) diff --git a/squads/client.go b/squads/client.go index 47bd8d7..c0fd9c2 100644 --- a/squads/client.go +++ b/squads/client.go @@ -5,10 +5,10 @@ package squads import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type Client struct { diff --git a/squads/raw_client.go b/squads/raw_client.go index 4600c76..8ea8445 100644 --- a/squads/raw_client.go +++ b/squads/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type RawClient struct { diff --git a/structured_outputs.go b/structured_outputs.go index 342b4c7..8a1d484 100644 --- a/structured_outputs.go +++ b/structured_outputs.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/v2/internal" + internal "github.com/VapiAI/server-sdk-go/internal" big "math/big" time "time" ) diff --git a/structuredoutputs/client.go b/structuredoutputs/client.go index b1f75d9..7cbea71 100644 --- a/structuredoutputs/client.go +++ b/structuredoutputs/client.go @@ -5,10 +5,10 @@ package structuredoutputs import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type Client struct { diff --git a/structuredoutputs/raw_client.go b/structuredoutputs/raw_client.go index 5aa0532..3112d46 100644 --- a/structuredoutputs/raw_client.go +++ b/structuredoutputs/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type RawClient struct { diff --git a/tools.go b/tools.go index b37b401..a79110b 100644 --- a/tools.go +++ b/tools.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/v2/internal" + internal "github.com/VapiAI/server-sdk-go/internal" big "math/big" time "time" ) diff --git a/tools/client.go b/tools/client.go index d802f0c..5dc8663 100644 --- a/tools/client.go +++ b/tools/client.go @@ -5,10 +5,10 @@ package tools import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type Client struct { diff --git a/tools/raw_client.go b/tools/raw_client.go index dd6ae1c..18071a9 100644 --- a/tools/raw_client.go +++ b/tools/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go/v2" - core "github.com/VapiAI/server-sdk-go/v2/core" - internal "github.com/VapiAI/server-sdk-go/v2/internal" - option "github.com/VapiAI/server-sdk-go/v2/option" + serversdkgo "github.com/VapiAI/server-sdk-go" + core "github.com/VapiAI/server-sdk-go/core" + internal "github.com/VapiAI/server-sdk-go/internal" + option "github.com/VapiAI/server-sdk-go/option" ) type RawClient struct { diff --git a/types.go b/types.go index 10c1e6f..ee07d40 100644 --- a/types.go +++ b/types.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/v2/internal" + internal "github.com/VapiAI/server-sdk-go/internal" big "math/big" time "time" ) From c3534c7843450497bdc562b54b76cced5a7ba5d4 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2026 18:16:14 +0000 Subject: [PATCH 2/2] [fern-autoversion] feat!: migrate module path from /v2 to unversioned root MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Go module path has been updated from `github.com/VapiAI/server-sdk-go/v2` to `github.com/VapiAI/server-sdk-go` across all packages. This is a breaking change for all existing consumers: every import path in user code must be updated to drop the `/v2` suffix. Additionally, the `User-Agent` header previously set to `github.com/VapiAI/server-sdk-go/v2.0.0` has been removed from `core/request_option.go`, and `.fernignore` has been updated to exclude replay and gitattributes files. Key changes: - All internal import paths changed from `github.com/VapiAI/server-sdk-go/v2/...` to `github.com/VapiAI/server-sdk-go/...` - `User-Agent` header removed from `RequestOptions.cloneHeader()` - `.fernignore` updated to exclude `.fern/replay.lock`, `.fern/replay.yml`, and `.gitattributes` 🌿 Generated with Fern --- .fern/metadata.json | 2 +- analytics.go | 2 +- analytics/client.go | 8 +++---- analytics/raw_client.go | 8 +++---- assistants.go | 2 +- assistants/client.go | 8 +++---- assistants/raw_client.go | 8 +++---- calls.go | 2 +- calls/client.go | 8 +++---- calls/raw_client.go | 8 +++---- campaigns.go | 2 +- campaigns/client.go | 8 +++---- campaigns/raw_client.go | 8 +++---- changelog.md | 5 ++++ chats.go | 2 +- chats/client.go | 8 +++---- chats/raw_client.go | 8 +++---- client/client.go | 36 ++++++++++++++-------------- client/client_test.go | 2 +- core/request_option.go | 4 ++-- error_codes.go | 4 ++-- errors.go | 2 +- eval.go | 2 +- eval/client.go | 8 +++---- eval/raw_client.go | 8 +++---- files.go | 2 +- files/client.go | 8 +++---- files/raw_client.go | 8 +++---- go.mod | 2 +- insight.go | 2 +- insight/client.go | 8 +++---- insight/raw_client.go | 8 +++---- internal/caller.go | 2 +- internal/caller_test.go | 2 +- internal/error_decoder.go | 2 +- internal/error_decoder_test.go | 2 +- internal/retrier_test.go | 2 +- observability_scorecard.go | 2 +- observabilityscorecard/client.go | 8 +++---- observabilityscorecard/raw_client.go | 8 +++---- option/request_option.go | 2 +- phone_numbers.go | 2 +- phonenumbers/client.go | 8 +++---- phonenumbers/raw_client.go | 8 +++---- provider_resources.go | 2 +- providerresources/client.go | 8 +++---- providerresources/raw_client.go | 8 +++---- sessions.go | 2 +- sessions/client.go | 8 +++---- sessions/raw_client.go | 8 +++---- squads.go | 2 +- squads/client.go | 8 +++---- squads/raw_client.go | 8 +++---- structured_outputs.go | 2 +- structuredoutputs/client.go | 8 +++---- structuredoutputs/raw_client.go | 8 +++---- tools.go | 2 +- tools/client.go | 8 +++---- tools/raw_client.go | 8 +++---- types.go | 2 +- 60 files changed, 173 insertions(+), 168 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 028b2f6..49d8787 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -6,5 +6,5 @@ "union": "v1" }, "originGitCommit": "2c66caa46a7889ac44f77d16914eb96a3641e6af", - "sdkVersion": "v0.0.0-fern-placeholder" + "sdkVersion": "v3.0.0" } \ No newline at end of file diff --git a/analytics.go b/analytics.go index 374c101..9376ad0 100644 --- a/analytics.go +++ b/analytics.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/internal" + internal "github.com/VapiAI/server-sdk-go/v3/internal" big "math/big" time "time" ) diff --git a/analytics/client.go b/analytics/client.go index 43fa39a..6b915be 100644 --- a/analytics/client.go +++ b/analytics/client.go @@ -5,10 +5,10 @@ package analytics import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type Client struct { diff --git a/analytics/raw_client.go b/analytics/raw_client.go index 05fc8b7..8ec27a6 100644 --- a/analytics/raw_client.go +++ b/analytics/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type RawClient struct { diff --git a/assistants.go b/assistants.go index 1660ab2..bf2209a 100644 --- a/assistants.go +++ b/assistants.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/internal" + internal "github.com/VapiAI/server-sdk-go/v3/internal" big "math/big" time "time" ) diff --git a/assistants/client.go b/assistants/client.go index 6a69f5d..fad621f 100644 --- a/assistants/client.go +++ b/assistants/client.go @@ -5,10 +5,10 @@ package assistants import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type Client struct { diff --git a/assistants/raw_client.go b/assistants/raw_client.go index 1403c3c..5b07966 100644 --- a/assistants/raw_client.go +++ b/assistants/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type RawClient struct { diff --git a/calls.go b/calls.go index 9660103..4f821a6 100644 --- a/calls.go +++ b/calls.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/internal" + internal "github.com/VapiAI/server-sdk-go/v3/internal" big "math/big" time "time" ) diff --git a/calls/client.go b/calls/client.go index 113e510..30b53dc 100644 --- a/calls/client.go +++ b/calls/client.go @@ -5,10 +5,10 @@ package calls import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type Client struct { diff --git a/calls/raw_client.go b/calls/raw_client.go index 4875af1..39b1577 100644 --- a/calls/raw_client.go +++ b/calls/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type RawClient struct { diff --git a/campaigns.go b/campaigns.go index eb38b42..8181150 100644 --- a/campaigns.go +++ b/campaigns.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/internal" + internal "github.com/VapiAI/server-sdk-go/v3/internal" big "math/big" time "time" ) diff --git a/campaigns/client.go b/campaigns/client.go index 6773d19..7eda2cc 100644 --- a/campaigns/client.go +++ b/campaigns/client.go @@ -5,10 +5,10 @@ package campaigns import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type Client struct { diff --git a/campaigns/raw_client.go b/campaigns/raw_client.go index 50bfa8b..731f290 100644 --- a/campaigns/raw_client.go +++ b/campaigns/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type RawClient struct { diff --git a/changelog.md b/changelog.md index 787acf0..0a11133 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,8 @@ +## [v3.0.0] - 2026-07-01 +### Breaking Changes +- **Module import path** — The Go module path has changed from `github.com/VapiAI/server-sdk-go/v2` to `github.com/VapiAI/server-sdk-go`. All import paths in your code must be updated to drop the `/v2` suffix (e.g. `github.com/VapiAI/server-sdk-go/v2/calls` → `github.com/VapiAI/server-sdk-go/calls`). +- **`User-Agent` header** — The `User-Agent` HTTP header is no longer set by the SDK's `RequestOptions`. If your server-side code relied on this header being present, you will need to set it manually via a custom request option. + ## v2.0.0 - 2026-06-24 ### Breaking Changes * **`CartesiaExperimentalControlsSpeedZero`** has been renamed to **`CartesiaSpeedControlZero`**. The struct field `CartesiaSpeedControl.CartesiaExperimentalControlsSpeedZero`, accessor `GetCartesiaExperimentalControlsSpeedZero()`, visitor interface method `VisitCartesiaExperimentalControlsSpeedZero()`, all speed constants (`CartesiaExperimentalControlsSpeedZero*`), and `NewCartesiaExperimentalControlsSpeedZeroFromString()` have all been renamed to their `CartesiaSpeedControlZero`-prefixed equivalents. Update all references to use the new names. diff --git a/chats.go b/chats.go index 91753b4..7295721 100644 --- a/chats.go +++ b/chats.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/internal" + internal "github.com/VapiAI/server-sdk-go/v3/internal" big "math/big" time "time" ) diff --git a/chats/client.go b/chats/client.go index 74edbbd..0e87009 100644 --- a/chats/client.go +++ b/chats/client.go @@ -5,10 +5,10 @@ package chats import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type Client struct { diff --git a/chats/raw_client.go b/chats/raw_client.go index 550e70b..f0a811b 100644 --- a/chats/raw_client.go +++ b/chats/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type RawClient struct { diff --git a/client/client.go b/client/client.go index e5da962..e753250 100644 --- a/client/client.go +++ b/client/client.go @@ -3,24 +3,24 @@ package client import ( - analytics "github.com/VapiAI/server-sdk-go/analytics" - assistants "github.com/VapiAI/server-sdk-go/assistants" - calls "github.com/VapiAI/server-sdk-go/calls" - campaigns "github.com/VapiAI/server-sdk-go/campaigns" - chats "github.com/VapiAI/server-sdk-go/chats" - core "github.com/VapiAI/server-sdk-go/core" - eval "github.com/VapiAI/server-sdk-go/eval" - files "github.com/VapiAI/server-sdk-go/files" - insight "github.com/VapiAI/server-sdk-go/insight" - internal "github.com/VapiAI/server-sdk-go/internal" - observabilityscorecard "github.com/VapiAI/server-sdk-go/observabilityscorecard" - option "github.com/VapiAI/server-sdk-go/option" - phonenumbers "github.com/VapiAI/server-sdk-go/phonenumbers" - providerresources "github.com/VapiAI/server-sdk-go/providerresources" - sessions "github.com/VapiAI/server-sdk-go/sessions" - squads "github.com/VapiAI/server-sdk-go/squads" - structuredoutputs "github.com/VapiAI/server-sdk-go/structuredoutputs" - tools "github.com/VapiAI/server-sdk-go/tools" + analytics "github.com/VapiAI/server-sdk-go/v3/analytics" + assistants "github.com/VapiAI/server-sdk-go/v3/assistants" + calls "github.com/VapiAI/server-sdk-go/v3/calls" + campaigns "github.com/VapiAI/server-sdk-go/v3/campaigns" + chats "github.com/VapiAI/server-sdk-go/v3/chats" + core "github.com/VapiAI/server-sdk-go/v3/core" + eval "github.com/VapiAI/server-sdk-go/v3/eval" + files "github.com/VapiAI/server-sdk-go/v3/files" + insight "github.com/VapiAI/server-sdk-go/v3/insight" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + observabilityscorecard "github.com/VapiAI/server-sdk-go/v3/observabilityscorecard" + option "github.com/VapiAI/server-sdk-go/v3/option" + phonenumbers "github.com/VapiAI/server-sdk-go/v3/phonenumbers" + providerresources "github.com/VapiAI/server-sdk-go/v3/providerresources" + sessions "github.com/VapiAI/server-sdk-go/v3/sessions" + squads "github.com/VapiAI/server-sdk-go/v3/squads" + structuredoutputs "github.com/VapiAI/server-sdk-go/v3/structuredoutputs" + tools "github.com/VapiAI/server-sdk-go/v3/tools" ) type Client struct { diff --git a/client/client_test.go b/client/client_test.go index c69ef87..558926a 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -3,7 +3,7 @@ package client import ( - option "github.com/VapiAI/server-sdk-go/option" + option "github.com/VapiAI/server-sdk-go/v3/option" assert "github.com/stretchr/testify/assert" http "net/http" testing "testing" diff --git a/core/request_option.go b/core/request_option.go index 04462f9..8b1c0cf 100644 --- a/core/request_option.go +++ b/core/request_option.go @@ -57,8 +57,8 @@ func (r *RequestOptions) cloneHeader() http.Header { headers := r.HTTPHeader.Clone() headers.Set("X-Fern-Language", "Go") headers.Set("X-Fern-SDK-Name", "github.com/VapiAI/server-sdk-go") - headers.Set("X-Fern-SDK-Version", "v0.0.0-fern-placeholder") - headers.Set("User-Agent", "github.com/VapiAI/server-sdk-go/v0.0.0-fern-placeholder") + headers.Set("X-Fern-SDK-Version", "v3.0.0") + headers.Set("User-Agent", "github.com/VapiAI/server-sdk-go/v3.0.0") return headers } diff --git a/error_codes.go b/error_codes.go index 352888f..4537da3 100644 --- a/error_codes.go +++ b/error_codes.go @@ -3,8 +3,8 @@ package api import ( - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" ) var ErrorCodes internal.ErrorCodes = internal.ErrorCodes{ diff --git a/errors.go b/errors.go index 832540e..a788969 100644 --- a/errors.go +++ b/errors.go @@ -4,7 +4,7 @@ package api import ( json "encoding/json" - core "github.com/VapiAI/server-sdk-go/core" + core "github.com/VapiAI/server-sdk-go/v3/core" ) // Invalid file diff --git a/eval.go b/eval.go index 0714ae4..241fc51 100644 --- a/eval.go +++ b/eval.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/internal" + internal "github.com/VapiAI/server-sdk-go/v3/internal" big "math/big" time "time" ) diff --git a/eval/client.go b/eval/client.go index bcc2a57..b884a02 100644 --- a/eval/client.go +++ b/eval/client.go @@ -5,10 +5,10 @@ package eval import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type Client struct { diff --git a/eval/raw_client.go b/eval/raw_client.go index aa572a0..c175a17 100644 --- a/eval/raw_client.go +++ b/eval/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type RawClient struct { diff --git a/files.go b/files.go index 5723bb3..89ab1d4 100644 --- a/files.go +++ b/files.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/internal" + internal "github.com/VapiAI/server-sdk-go/v3/internal" io "io" big "math/big" time "time" diff --git a/files/client.go b/files/client.go index 82c3a24..caa457e 100644 --- a/files/client.go +++ b/files/client.go @@ -5,10 +5,10 @@ package files import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type Client struct { diff --git a/files/raw_client.go b/files/raw_client.go index 809c562..341bf65 100644 --- a/files/raw_client.go +++ b/files/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type RawClient struct { diff --git a/go.mod b/go.mod index f2c598e..2ce4584 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/VapiAI/server-sdk-go +module github.com/VapiAI/server-sdk-go/v3 go 1.21 diff --git a/insight.go b/insight.go index bfa51a2..f7f431a 100644 --- a/insight.go +++ b/insight.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/internal" + internal "github.com/VapiAI/server-sdk-go/v3/internal" big "math/big" time "time" ) diff --git a/insight/client.go b/insight/client.go index 22b4c39..31ffff6 100644 --- a/insight/client.go +++ b/insight/client.go @@ -5,10 +5,10 @@ package insight import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type Client struct { diff --git a/insight/raw_client.go b/insight/raw_client.go index ca5215c..edd89f3 100644 --- a/insight/raw_client.go +++ b/insight/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type RawClient struct { diff --git a/internal/caller.go b/internal/caller.go index d553446..566b5fe 100644 --- a/internal/caller.go +++ b/internal/caller.go @@ -12,7 +12,7 @@ import ( "reflect" "strings" - "github.com/VapiAI/server-sdk-go/core" + "github.com/VapiAI/server-sdk-go/v3/core" ) const ( diff --git a/internal/caller_test.go b/internal/caller_test.go index 4edb424..5f86148 100644 --- a/internal/caller_test.go +++ b/internal/caller_test.go @@ -14,7 +14,7 @@ import ( "strings" "testing" - "github.com/VapiAI/server-sdk-go/core" + "github.com/VapiAI/server-sdk-go/v3/core" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/error_decoder.go b/internal/error_decoder.go index 06ca5b5..1291404 100644 --- a/internal/error_decoder.go +++ b/internal/error_decoder.go @@ -8,7 +8,7 @@ import ( "io" "net/http" - "github.com/VapiAI/server-sdk-go/core" + "github.com/VapiAI/server-sdk-go/v3/core" ) // ErrorCodes maps HTTP status codes to error constructors. diff --git a/internal/error_decoder_test.go b/internal/error_decoder_test.go index 4d2ef7d..469d6ea 100644 --- a/internal/error_decoder_test.go +++ b/internal/error_decoder_test.go @@ -6,7 +6,7 @@ import ( "net/http" "testing" - "github.com/VapiAI/server-sdk-go/core" + "github.com/VapiAI/server-sdk-go/v3/core" "github.com/stretchr/testify/assert" ) diff --git a/internal/retrier_test.go b/internal/retrier_test.go index e47f29c..9354a6d 100644 --- a/internal/retrier_test.go +++ b/internal/retrier_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/VapiAI/server-sdk-go/core" + "github.com/VapiAI/server-sdk-go/v3/core" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/observability_scorecard.go b/observability_scorecard.go index 512e08e..674969e 100644 --- a/observability_scorecard.go +++ b/observability_scorecard.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/internal" + internal "github.com/VapiAI/server-sdk-go/v3/internal" big "math/big" time "time" ) diff --git a/observabilityscorecard/client.go b/observabilityscorecard/client.go index 99b148c..25efbb7 100644 --- a/observabilityscorecard/client.go +++ b/observabilityscorecard/client.go @@ -5,10 +5,10 @@ package observabilityscorecard import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type Client struct { diff --git a/observabilityscorecard/raw_client.go b/observabilityscorecard/raw_client.go index 169a7ac..c6b9b1a 100644 --- a/observabilityscorecard/raw_client.go +++ b/observabilityscorecard/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type RawClient struct { diff --git a/option/request_option.go b/option/request_option.go index f56c9b9..cf9f8f2 100644 --- a/option/request_option.go +++ b/option/request_option.go @@ -3,7 +3,7 @@ package option import ( - core "github.com/VapiAI/server-sdk-go/core" + core "github.com/VapiAI/server-sdk-go/v3/core" http "net/http" url "net/url" ) diff --git a/phone_numbers.go b/phone_numbers.go index d7732b4..18ea2b9 100644 --- a/phone_numbers.go +++ b/phone_numbers.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/internal" + internal "github.com/VapiAI/server-sdk-go/v3/internal" big "math/big" time "time" ) diff --git a/phonenumbers/client.go b/phonenumbers/client.go index f2d07a1..8f1e404 100644 --- a/phonenumbers/client.go +++ b/phonenumbers/client.go @@ -5,10 +5,10 @@ package phonenumbers import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type Client struct { diff --git a/phonenumbers/raw_client.go b/phonenumbers/raw_client.go index bd9099a..918758f 100644 --- a/phonenumbers/raw_client.go +++ b/phonenumbers/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type RawClient struct { diff --git a/provider_resources.go b/provider_resources.go index 455e83b..f4835cf 100644 --- a/provider_resources.go +++ b/provider_resources.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/internal" + internal "github.com/VapiAI/server-sdk-go/v3/internal" big "math/big" time "time" ) diff --git a/providerresources/client.go b/providerresources/client.go index 8b86155..db06bc0 100644 --- a/providerresources/client.go +++ b/providerresources/client.go @@ -5,10 +5,10 @@ package providerresources import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type Client struct { diff --git a/providerresources/raw_client.go b/providerresources/raw_client.go index 15421d6..d812d17 100644 --- a/providerresources/raw_client.go +++ b/providerresources/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type RawClient struct { diff --git a/sessions.go b/sessions.go index ca94985..c5febd1 100644 --- a/sessions.go +++ b/sessions.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/internal" + internal "github.com/VapiAI/server-sdk-go/v3/internal" big "math/big" time "time" ) diff --git a/sessions/client.go b/sessions/client.go index 482189e..2b2d440 100644 --- a/sessions/client.go +++ b/sessions/client.go @@ -5,10 +5,10 @@ package sessions import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type Client struct { diff --git a/sessions/raw_client.go b/sessions/raw_client.go index d6135d1..60db906 100644 --- a/sessions/raw_client.go +++ b/sessions/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type RawClient struct { diff --git a/squads.go b/squads.go index f22d94b..b1a0cb4 100644 --- a/squads.go +++ b/squads.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/internal" + internal "github.com/VapiAI/server-sdk-go/v3/internal" big "math/big" time "time" ) diff --git a/squads/client.go b/squads/client.go index c0fd9c2..96a9a66 100644 --- a/squads/client.go +++ b/squads/client.go @@ -5,10 +5,10 @@ package squads import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type Client struct { diff --git a/squads/raw_client.go b/squads/raw_client.go index 8ea8445..255f50c 100644 --- a/squads/raw_client.go +++ b/squads/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type RawClient struct { diff --git a/structured_outputs.go b/structured_outputs.go index 8a1d484..c34dc98 100644 --- a/structured_outputs.go +++ b/structured_outputs.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/internal" + internal "github.com/VapiAI/server-sdk-go/v3/internal" big "math/big" time "time" ) diff --git a/structuredoutputs/client.go b/structuredoutputs/client.go index 7cbea71..05a3cc2 100644 --- a/structuredoutputs/client.go +++ b/structuredoutputs/client.go @@ -5,10 +5,10 @@ package structuredoutputs import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type Client struct { diff --git a/structuredoutputs/raw_client.go b/structuredoutputs/raw_client.go index 3112d46..f51cd05 100644 --- a/structuredoutputs/raw_client.go +++ b/structuredoutputs/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type RawClient struct { diff --git a/tools.go b/tools.go index a79110b..20fa716 100644 --- a/tools.go +++ b/tools.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/internal" + internal "github.com/VapiAI/server-sdk-go/v3/internal" big "math/big" time "time" ) diff --git a/tools/client.go b/tools/client.go index 5dc8663..7f31aa5 100644 --- a/tools/client.go +++ b/tools/client.go @@ -5,10 +5,10 @@ package tools import ( context "context" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type Client struct { diff --git a/tools/raw_client.go b/tools/raw_client.go index 18071a9..c7f67d3 100644 --- a/tools/raw_client.go +++ b/tools/raw_client.go @@ -6,10 +6,10 @@ import ( context "context" http "net/http" - serversdkgo "github.com/VapiAI/server-sdk-go" - core "github.com/VapiAI/server-sdk-go/core" - internal "github.com/VapiAI/server-sdk-go/internal" - option "github.com/VapiAI/server-sdk-go/option" + serversdkgo "github.com/VapiAI/server-sdk-go/v3" + core "github.com/VapiAI/server-sdk-go/v3/core" + internal "github.com/VapiAI/server-sdk-go/v3/internal" + option "github.com/VapiAI/server-sdk-go/v3/option" ) type RawClient struct { diff --git a/types.go b/types.go index ee07d40..5fbcc0c 100644 --- a/types.go +++ b/types.go @@ -5,7 +5,7 @@ package api import ( json "encoding/json" fmt "fmt" - internal "github.com/VapiAI/server-sdk-go/internal" + internal "github.com/VapiAI/server-sdk-go/v3/internal" big "math/big" time "time" )