From 802ea210c8ca7f24fe9ee191351c729f84ce7803 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 18 Jul 2026 00:21:10 +0000 Subject: [PATCH 1/4] [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 + 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 +- 62 files changed, 184 insertions(+), 170 deletions(-) create mode 100644 .fern/replay.lock create mode 100644 .gitattributes diff --git a/.fern/metadata.json b/.fern/metadata.json index fbc44f4..737ca47 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,10 +1,10 @@ { - "cliVersion": "5.51.2", + "cliVersion": "5.75.4", "generatorName": "fernapi/fern-go-sdk", "generatorVersion": "1.33.5", "generatorConfig": { "union": "v1" }, - "originGitCommit": "5a015aa01196915bea6110904c69d5804f457ff5", - "sdkVersion": "v2.0.0" + "originGitCommit": "1dd306af20e491b2a9891837f2930cb60fb96aa8", + "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..cc10f2d --- /dev/null +++ b/.fern/replay.lock @@ -0,0 +1,10 @@ +# DO NOT EDIT MANUALLY - Managed by Fern Replay +version: "1.0" +generations: + - commit_sha: 3a8bb9fe202a1df706aea7dec5b44c74b5194e7b + tree_hash: 464b5bee6bd2b54a3ecf7b60f761e05f10f9ce6d + timestamp: 2026-07-18T00:21:01.217Z + cli_version: unknown + generator_versions: {} +current_generation: 3a8bb9fe202a1df706aea7dec5b44c74b5194e7b +patches: [] diff --git a/.fernignore b/.fernignore index 82e7de0..fad339e 100644 --- a/.fernignore +++ b/.fernignore @@ -3,3 +3,6 @@ .github/workflows/sdk-release-pr-notification.yml 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/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..1797fa2 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/0.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 01dfa38a774a4ccf93c69091cd63307a82d8a293 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 18 Jul 2026 00:21:10 +0000 Subject: [PATCH 2/4] [fern-autoversion] chore: update User-Agent header placeholder value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace the hardcoded SDK version string in the User-Agent header with a Fern placeholder value. This is an internal build/generation artifact and does not affect any public API surface. Key changes: - Update `User-Agent` header value from `github.com/VapiAI/server-sdk-go/v2.0.0` to `github.com/VapiAI/server-sdk-go/0.0.0-fern-placeholder` - Add `.fern/replay.lock`, `.fern/replay.yml`, and `.gitattributes` to `.fernignore` 🌿 Generated with Fern --- .fern/metadata.json | 2 +- README.md | 8 +++---- 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 +- 60 files changed, 172 insertions(+), 172 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 737ca47..5256c3d 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -6,5 +6,5 @@ "union": "v1" }, "originGitCommit": "1dd306af20e491b2a9891837f2930cb60fb96aa8", - "sdkVersion": "v0.0.0-fern-placeholder" + "sdkVersion": "v2.0.1" } \ No newline at end of file diff --git a/README.md b/README.md index 7cb5ca7..26cf860 100644 --- a/README.md +++ b/README.md @@ -14,16 +14,16 @@ This module requires Go version >= 1.18. Run the following command to use the vapi Go library in your module: ```sh -go get github.com/VapiAI/server-sdk-go +go get github.com/VapiAI/server-sdk-go/v2 ``` ## Usage ```go import ( - "github.com/VapiAI/server-sdk-go" - vapiclient "github.com/VapiAI/server-sdk-go/client" - "github.com/VapiAI/server-sdk-go/option" + "github.com/VapiAI/server-sdk-go/v2" + vapiclient "github.com/VapiAI/server-sdk-go/v2/client" + "github.com/VapiAI/server-sdk-go/v2/option" ) client := vapiclient.NewClient( diff --git a/analytics.go b/analytics.go index 374c101..9d6bb4c 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/v2/internal" big "math/big" time "time" ) diff --git a/analytics/client.go b/analytics/client.go index 43fa39a..4fbc002 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/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" ) type Client struct { diff --git a/analytics/raw_client.go b/analytics/raw_client.go index 05fc8b7..263c403 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/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" ) type RawClient struct { diff --git a/assistants.go b/assistants.go index 1660ab2..0214ca4 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/v2/internal" big "math/big" time "time" ) diff --git a/assistants/client.go b/assistants/client.go index 6a69f5d..ac5a24a 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/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" ) type Client struct { diff --git a/assistants/raw_client.go b/assistants/raw_client.go index 1403c3c..5dc46fd 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/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" ) type RawClient struct { diff --git a/calls.go b/calls.go index 9660103..59bd57d 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/v2/internal" big "math/big" time "time" ) diff --git a/calls/client.go b/calls/client.go index 113e510..cae2a90 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/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" ) type Client struct { diff --git a/calls/raw_client.go b/calls/raw_client.go index 4875af1..2edefba 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/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" ) type RawClient struct { diff --git a/campaigns.go b/campaigns.go index eb38b42..08ca13a 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/v2/internal" big "math/big" time "time" ) diff --git a/campaigns/client.go b/campaigns/client.go index 6773d19..5b3f67b 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/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" ) type Client struct { diff --git a/campaigns/raw_client.go b/campaigns/raw_client.go index 50bfa8b..22d5188 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/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" ) type RawClient struct { diff --git a/chats.go b/chats.go index 91753b4..8e5b51f 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/v2/internal" big "math/big" time "time" ) diff --git a/chats/client.go b/chats/client.go index 74edbbd..6dea8bc 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/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" ) type Client struct { diff --git a/chats/raw_client.go b/chats/raw_client.go index 550e70b..a2549f0 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/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" ) type RawClient struct { diff --git a/client/client.go b/client/client.go index e5da962..bdacc5f 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/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" ) type Client struct { diff --git a/client/client_test.go b/client/client_test.go index c69ef87..304a15b 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/v2/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 1797fa2..0f31d82 100644 --- a/core/request_option.go +++ b/core/request_option.go @@ -56,8 +56,8 @@ func (r *RequestOptions) ToHeader() http.Header { 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("X-Fern-SDK-Name", "github.com/VapiAI/server-sdk-go/v2") + headers.Set("X-Fern-SDK-Version", "v2.0.1") headers.Set("User-Agent", "github.com/VapiAI/server-sdk-go/0.0.0-fern-placeholder") return headers } diff --git a/error_codes.go b/error_codes.go index 352888f..8143fc2 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/v2/core" + internal "github.com/VapiAI/server-sdk-go/v2/internal" ) var ErrorCodes internal.ErrorCodes = internal.ErrorCodes{ diff --git a/errors.go b/errors.go index 832540e..8b2e0b4 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/v2/core" ) // Invalid file diff --git a/eval.go b/eval.go index 0714ae4..ac15334 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/v2/internal" big "math/big" time "time" ) diff --git a/eval/client.go b/eval/client.go index bcc2a57..eda15e5 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/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" ) type Client struct { diff --git a/eval/raw_client.go b/eval/raw_client.go index aa572a0..92707e7 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/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" ) type RawClient struct { diff --git a/files.go b/files.go index 5723bb3..3cabff5 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/v2/internal" io "io" big "math/big" time "time" diff --git a/files/client.go b/files/client.go index 82c3a24..994e429 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/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" ) type Client struct { diff --git a/files/raw_client.go b/files/raw_client.go index 809c562..1ea7dee 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/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" ) type RawClient struct { diff --git a/go.mod b/go.mod index f2c598e..be1a6fe 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/v2 go 1.21 diff --git a/insight.go b/insight.go index bfa51a2..d09b048 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/v2/internal" big "math/big" time "time" ) diff --git a/insight/client.go b/insight/client.go index 22b4c39..47b63c8 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/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" ) type Client struct { diff --git a/insight/raw_client.go b/insight/raw_client.go index ca5215c..63ee049 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/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" ) type RawClient struct { diff --git a/internal/caller.go b/internal/caller.go index d553446..4d00866 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/v2/core" ) const ( diff --git a/internal/caller_test.go b/internal/caller_test.go index 4edb424..74508f8 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/v2/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..7183088 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/v2/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..94becff 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/v2/core" "github.com/stretchr/testify/assert" ) diff --git a/internal/retrier_test.go b/internal/retrier_test.go index e47f29c..4ee7288 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/v2/core" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/observability_scorecard.go b/observability_scorecard.go index 512e08e..ab4e6e4 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/v2/internal" big "math/big" time "time" ) diff --git a/observabilityscorecard/client.go b/observabilityscorecard/client.go index 99b148c..fad038b 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/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" ) type Client struct { diff --git a/observabilityscorecard/raw_client.go b/observabilityscorecard/raw_client.go index 169a7ac..76e9907 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/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" ) type RawClient struct { diff --git a/option/request_option.go b/option/request_option.go index f56c9b9..2e19775 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/v2/core" http "net/http" url "net/url" ) diff --git a/phone_numbers.go b/phone_numbers.go index d7732b4..23d92b7 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/v2/internal" big "math/big" time "time" ) diff --git a/phonenumbers/client.go b/phonenumbers/client.go index f2d07a1..29e9ea0 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/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" ) type Client struct { diff --git a/phonenumbers/raw_client.go b/phonenumbers/raw_client.go index bd9099a..dfdf68b 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/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" ) type RawClient struct { diff --git a/provider_resources.go b/provider_resources.go index 455e83b..e401c2b 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/v2/internal" big "math/big" time "time" ) diff --git a/providerresources/client.go b/providerresources/client.go index 8b86155..5d66c21 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/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" ) type Client struct { diff --git a/providerresources/raw_client.go b/providerresources/raw_client.go index 15421d6..3f23b45 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/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" ) type RawClient struct { diff --git a/sessions.go b/sessions.go index ca94985..c5fa948 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/v2/internal" big "math/big" time "time" ) diff --git a/sessions/client.go b/sessions/client.go index 482189e..760738d 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/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" ) type Client struct { diff --git a/sessions/raw_client.go b/sessions/raw_client.go index d6135d1..1156fba 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/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" ) type RawClient struct { diff --git a/squads.go b/squads.go index f22d94b..7a7c554 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/v2/internal" big "math/big" time "time" ) diff --git a/squads/client.go b/squads/client.go index c0fd9c2..47bd8d7 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/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" ) type Client struct { diff --git a/squads/raw_client.go b/squads/raw_client.go index 8ea8445..4600c76 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/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" ) type RawClient struct { diff --git a/structured_outputs.go b/structured_outputs.go index 8a1d484..342b4c7 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/v2/internal" big "math/big" time "time" ) diff --git a/structuredoutputs/client.go b/structuredoutputs/client.go index 7cbea71..b1f75d9 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/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" ) type Client struct { diff --git a/structuredoutputs/raw_client.go b/structuredoutputs/raw_client.go index 3112d46..5aa0532 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/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" ) type RawClient struct { diff --git a/tools.go b/tools.go index a79110b..b37b401 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/v2/internal" big "math/big" time "time" ) diff --git a/tools/client.go b/tools/client.go index 5dc8663..d802f0c 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/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" ) type Client struct { diff --git a/tools/raw_client.go b/tools/raw_client.go index 18071a9..dd6ae1c 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/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" ) type RawClient struct { diff --git a/types.go b/types.go index ee07d40..10c1e6f 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/v2/internal" big "math/big" time "time" ) From f71253b7725c06821cb7eaf6f8a8759ac7514d0a Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 18 Jul 2026 00:21:11 +0000 Subject: [PATCH 3/4] [fern-replay] advance lockfile --- .fern/replay.lock | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.fern/replay.lock b/.fern/replay.lock index cc10f2d..88b449d 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -6,5 +6,11 @@ generations: timestamp: 2026-07-18T00:21:01.217Z cli_version: unknown generator_versions: {} -current_generation: 3a8bb9fe202a1df706aea7dec5b44c74b5194e7b + - commit_sha: 970a23934e38351af79beeed52397e6a0d82ead3 + tree_hash: 78dc233efbdd42d1bd01f7dc8dd4bd07f4fcfcd1 + timestamp: 2026-07-18T00:21:01.655Z + cli_version: unknown + generator_versions: + fernapi/fern-go-sdk: 1.33.5 +current_generation: 970a23934e38351af79beeed52397e6a0d82ead3 patches: [] From 1c793faa627fdaf6ae3204ef0ac8ec9888f75971 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 18 Jul 2026 00:21:11 +0000 Subject: [PATCH 4/4] chore: update User-Agent header placeholder value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace the hardcoded SDK version string in the User-Agent header with a Fern placeholder value. This is an internal build/generation artifact and does not affect any public API surface. Key changes: - Update `User-Agent` header value from `github.com/VapiAI/server-sdk-go/v2.0.0` to `github.com/VapiAI/server-sdk-go/0.0.0-fern-placeholder` - Add `.fern/replay.lock`, `.fern/replay.yml`, and `.gitattributes` to `.fernignore` 🌿 Generated with Fern --- changelog.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/changelog.md b/changelog.md index 787acf0..505ffb2 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,5 @@ +## [v2.0.1] - 2026-07-18 + ## 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.