diff --git a/.fern/metadata.json b/.fern/metadata.json index fbc44f4..49d8787 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": "v3.0.0" } \ 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..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/v2/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 4fbc002..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/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/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 263c403..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/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/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 0214ca4..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/v2/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 ac5a24a..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/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/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 5dc46fd..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/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/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 59bd57d..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/v2/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 cae2a90..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/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/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 2edefba..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/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/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 08ca13a..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/v2/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 5b3f67b..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/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/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 22d5188..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/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/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 8e5b51f..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/v2/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 6dea8bc..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/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/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 a2549f0..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/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/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 bdacc5f..e753250 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/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 304a15b..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/v2/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 bc4d346..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", "v2.0.0") - headers.Set("User-Agent", "github.com/VapiAI/server-sdk-go/v2.0.0") + 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 8143fc2..4537da3 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/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 8b2e0b4..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/v2/core" + core "github.com/VapiAI/server-sdk-go/v3/core" ) // Invalid file diff --git a/eval.go b/eval.go index ac15334..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/v2/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 eda15e5..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/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/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 92707e7..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/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/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 3cabff5..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/v2/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 994e429..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/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/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 1ea7dee..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/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/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 be1a6fe..2ce4584 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/v3 go 1.21 diff --git a/insight.go b/insight.go index d09b048..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/v2/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 47b63c8..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/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/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 63ee049..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/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/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 4d00866..566b5fe 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/v3/core" ) const ( diff --git a/internal/caller_test.go b/internal/caller_test.go index 74508f8..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/v2/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 7183088..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/v2/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 94becff..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/v2/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 4ee7288..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/v2/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 ab4e6e4..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/v2/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 fad038b..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/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/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 76e9907..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/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/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 2e19775..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/v2/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 23d92b7..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/v2/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 29e9ea0..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/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/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 dfdf68b..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/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/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 e401c2b..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/v2/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 5d66c21..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/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/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 3f23b45..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/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/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 c5fa948..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/v2/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 760738d..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/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/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 1156fba..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/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/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 7a7c554..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/v2/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 47bd8d7..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/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/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 4600c76..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/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/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 342b4c7..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/v2/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 b1f75d9..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/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/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 5aa0532..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/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/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 b37b401..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/v2/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 d802f0c..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/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/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 dd6ae1c..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/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/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 10c1e6f..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/v2/internal" + internal "github.com/VapiAI/server-sdk-go/v3/internal" big "math/big" time "time" )