Skip to content

Commit

Permalink
Release v0.0.0-alpha5
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Oct 23, 2024
1 parent ad99199 commit dfbb866
Show file tree
Hide file tree
Showing 17 changed files with 1,011 additions and 3,436 deletions.
12 changes: 6 additions & 6 deletions analytics/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package analytics

import (
context "context"
vapigosdk "github.com/fern-demo/vapi-go-sdk"
core "github.com/fern-demo/vapi-go-sdk/core"
option "github.com/fern-demo/vapi-go-sdk/option"
serversdkgo "github.com/VapiAI/server-sdk-go"
core "github.com/VapiAI/server-sdk-go/core"
option "github.com/VapiAI/server-sdk-go/option"
http "net/http"
)

Expand All @@ -32,9 +32,9 @@ func NewClient(opts ...option.RequestOption) *Client {

func (c *Client) Get(
ctx context.Context,
request *vapigosdk.AnalyticsQueryDto,
request *serversdkgo.AnalyticsQueryDto,
opts ...option.RequestOption,
) ([]*vapigosdk.AnalyticsQueryResult, error) {
) ([]*serversdkgo.AnalyticsQueryResult, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.vapi.ai"
Expand All @@ -49,7 +49,7 @@ func (c *Client) Get(
headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())
headers.Set("Content-Type", "application/json")

var response []*vapigosdk.AnalyticsQueryResult
var response []*serversdkgo.AnalyticsQueryResult
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand Down
32 changes: 16 additions & 16 deletions assistants/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package assistants

import (
context "context"
vapigosdk "github.com/fern-demo/vapi-go-sdk"
core "github.com/fern-demo/vapi-go-sdk/core"
option "github.com/fern-demo/vapi-go-sdk/option"
serversdkgo "github.com/VapiAI/server-sdk-go"
core "github.com/VapiAI/server-sdk-go/core"
option "github.com/VapiAI/server-sdk-go/option"
http "net/http"
)

Expand All @@ -32,9 +32,9 @@ func NewClient(opts ...option.RequestOption) *Client {

func (c *Client) List(
ctx context.Context,
request *vapigosdk.AssistantsListRequest,
request *serversdkgo.AssistantsListRequest,
opts ...option.RequestOption,
) ([]*vapigosdk.Assistant, error) {
) ([]*serversdkgo.Assistant, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.vapi.ai"
Expand All @@ -56,7 +56,7 @@ func (c *Client) List(

headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())

var response []*vapigosdk.Assistant
var response []*serversdkgo.Assistant
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand All @@ -77,9 +77,9 @@ func (c *Client) List(

func (c *Client) Create(
ctx context.Context,
request *vapigosdk.CreateAssistantDto,
request *serversdkgo.CreateAssistantDto,
opts ...option.RequestOption,
) (*vapigosdk.Assistant, error) {
) (*serversdkgo.Assistant, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.vapi.ai"
Expand All @@ -94,7 +94,7 @@ func (c *Client) Create(
headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())
headers.Set("Content-Type", "application/json")

var response *vapigosdk.Assistant
var response *serversdkgo.Assistant
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand All @@ -118,7 +118,7 @@ func (c *Client) Get(
ctx context.Context,
id string,
opts ...option.RequestOption,
) (*vapigosdk.Assistant, error) {
) (*serversdkgo.Assistant, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.vapi.ai"
Expand All @@ -132,7 +132,7 @@ func (c *Client) Get(

headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())

var response *vapigosdk.Assistant
var response *serversdkgo.Assistant
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand All @@ -155,7 +155,7 @@ func (c *Client) Delete(
ctx context.Context,
id string,
opts ...option.RequestOption,
) (*vapigosdk.Assistant, error) {
) (*serversdkgo.Assistant, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.vapi.ai"
Expand All @@ -169,7 +169,7 @@ func (c *Client) Delete(

headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())

var response *vapigosdk.Assistant
var response *serversdkgo.Assistant
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand All @@ -191,9 +191,9 @@ func (c *Client) Delete(
func (c *Client) Update(
ctx context.Context,
id string,
request *vapigosdk.UpdateAssistantDto,
request *serversdkgo.UpdateAssistantDto,
opts ...option.RequestOption,
) (*vapigosdk.Assistant, error) {
) (*serversdkgo.Assistant, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.vapi.ai"
Expand All @@ -208,7 +208,7 @@ func (c *Client) Update(
headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())
headers.Set("Content-Type", "application/json")

var response *vapigosdk.Assistant
var response *serversdkgo.Assistant
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand Down
32 changes: 16 additions & 16 deletions blocks/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package blocks

import (
context "context"
vapigosdk "github.com/fern-demo/vapi-go-sdk"
core "github.com/fern-demo/vapi-go-sdk/core"
option "github.com/fern-demo/vapi-go-sdk/option"
serversdkgo "github.com/VapiAI/server-sdk-go"
core "github.com/VapiAI/server-sdk-go/core"
option "github.com/VapiAI/server-sdk-go/option"
http "net/http"
)

Expand All @@ -32,9 +32,9 @@ func NewClient(opts ...option.RequestOption) *Client {

func (c *Client) List(
ctx context.Context,
request *vapigosdk.BlocksListRequest,
request *serversdkgo.BlocksListRequest,
opts ...option.RequestOption,
) ([]*vapigosdk.BlocksListResponseItem, error) {
) ([]*serversdkgo.BlocksListResponseItem, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.vapi.ai"
Expand All @@ -56,7 +56,7 @@ func (c *Client) List(

headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())

var response []*vapigosdk.BlocksListResponseItem
var response []*serversdkgo.BlocksListResponseItem
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand All @@ -77,9 +77,9 @@ func (c *Client) List(

func (c *Client) Create(
ctx context.Context,
request *vapigosdk.BlocksCreateRequest,
request *serversdkgo.BlocksCreateRequest,
opts ...option.RequestOption,
) (*vapigosdk.BlocksCreateResponse, error) {
) (*serversdkgo.BlocksCreateResponse, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.vapi.ai"
Expand All @@ -94,7 +94,7 @@ func (c *Client) Create(
headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())
headers.Set("Content-Type", "application/json")

var response *vapigosdk.BlocksCreateResponse
var response *serversdkgo.BlocksCreateResponse
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand All @@ -118,7 +118,7 @@ func (c *Client) Get(
ctx context.Context,
id string,
opts ...option.RequestOption,
) (*vapigosdk.BlocksGetResponse, error) {
) (*serversdkgo.BlocksGetResponse, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.vapi.ai"
Expand All @@ -132,7 +132,7 @@ func (c *Client) Get(

headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())

var response *vapigosdk.BlocksGetResponse
var response *serversdkgo.BlocksGetResponse
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand All @@ -155,7 +155,7 @@ func (c *Client) Delete(
ctx context.Context,
id string,
opts ...option.RequestOption,
) (*vapigosdk.BlocksDeleteResponse, error) {
) (*serversdkgo.BlocksDeleteResponse, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.vapi.ai"
Expand All @@ -169,7 +169,7 @@ func (c *Client) Delete(

headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())

var response *vapigosdk.BlocksDeleteResponse
var response *serversdkgo.BlocksDeleteResponse
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand All @@ -191,9 +191,9 @@ func (c *Client) Delete(
func (c *Client) Update(
ctx context.Context,
id string,
request *vapigosdk.UpdateBlockDto,
request *serversdkgo.UpdateBlockDto,
opts ...option.RequestOption,
) (*vapigosdk.BlocksUpdateResponse, error) {
) (*serversdkgo.BlocksUpdateResponse, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.vapi.ai"
Expand All @@ -208,7 +208,7 @@ func (c *Client) Update(
headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())
headers.Set("Content-Type", "application/json")

var response *vapigosdk.BlocksUpdateResponse
var response *serversdkgo.BlocksUpdateResponse
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand Down
32 changes: 16 additions & 16 deletions calls/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package calls

import (
context "context"
vapigosdk "github.com/fern-demo/vapi-go-sdk"
core "github.com/fern-demo/vapi-go-sdk/core"
option "github.com/fern-demo/vapi-go-sdk/option"
serversdkgo "github.com/VapiAI/server-sdk-go"
core "github.com/VapiAI/server-sdk-go/core"
option "github.com/VapiAI/server-sdk-go/option"
http "net/http"
)

Expand All @@ -32,9 +32,9 @@ func NewClient(opts ...option.RequestOption) *Client {

func (c *Client) List(
ctx context.Context,
request *vapigosdk.CallsListRequest,
request *serversdkgo.CallsListRequest,
opts ...option.RequestOption,
) ([]*vapigosdk.Call, error) {
) ([]*serversdkgo.Call, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.vapi.ai"
Expand All @@ -56,7 +56,7 @@ func (c *Client) List(

headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())

var response []*vapigosdk.Call
var response []*serversdkgo.Call
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand All @@ -77,9 +77,9 @@ func (c *Client) List(

func (c *Client) Create(
ctx context.Context,
request *vapigosdk.CreateCallDto,
request *serversdkgo.CreateCallDto,
opts ...option.RequestOption,
) (*vapigosdk.Call, error) {
) (*serversdkgo.Call, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.vapi.ai"
Expand All @@ -94,7 +94,7 @@ func (c *Client) Create(
headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())
headers.Set("Content-Type", "application/json")

var response *vapigosdk.Call
var response *serversdkgo.Call
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand All @@ -118,7 +118,7 @@ func (c *Client) Get(
ctx context.Context,
id string,
opts ...option.RequestOption,
) (*vapigosdk.Call, error) {
) (*serversdkgo.Call, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.vapi.ai"
Expand All @@ -132,7 +132,7 @@ func (c *Client) Get(

headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())

var response *vapigosdk.Call
var response *serversdkgo.Call
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand All @@ -155,7 +155,7 @@ func (c *Client) Delete(
ctx context.Context,
id string,
opts ...option.RequestOption,
) (*vapigosdk.Call, error) {
) (*serversdkgo.Call, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.vapi.ai"
Expand All @@ -169,7 +169,7 @@ func (c *Client) Delete(

headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())

var response *vapigosdk.Call
var response *serversdkgo.Call
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand All @@ -191,9 +191,9 @@ func (c *Client) Delete(
func (c *Client) Update(
ctx context.Context,
id string,
request *vapigosdk.UpdateCallDto,
request *serversdkgo.UpdateCallDto,
opts ...option.RequestOption,
) (*vapigosdk.Call, error) {
) (*serversdkgo.Call, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.vapi.ai"
Expand All @@ -208,7 +208,7 @@ func (c *Client) Update(
headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())
headers.Set("Content-Type", "application/json")

var response *vapigosdk.Call
var response *serversdkgo.Call
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand Down
22 changes: 11 additions & 11 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
package client

import (
analytics "github.com/fern-demo/vapi-go-sdk/analytics"
assistants "github.com/fern-demo/vapi-go-sdk/assistants"
blocks "github.com/fern-demo/vapi-go-sdk/blocks"
calls "github.com/fern-demo/vapi-go-sdk/calls"
core "github.com/fern-demo/vapi-go-sdk/core"
files "github.com/fern-demo/vapi-go-sdk/files"
logs "github.com/fern-demo/vapi-go-sdk/logs"
option "github.com/fern-demo/vapi-go-sdk/option"
phonenumbers "github.com/fern-demo/vapi-go-sdk/phonenumbers"
squads "github.com/fern-demo/vapi-go-sdk/squads"
tools "github.com/fern-demo/vapi-go-sdk/tools"
analytics "github.com/VapiAI/server-sdk-go/analytics"
assistants "github.com/VapiAI/server-sdk-go/assistants"
blocks "github.com/VapiAI/server-sdk-go/blocks"
calls "github.com/VapiAI/server-sdk-go/calls"
core "github.com/VapiAI/server-sdk-go/core"
files "github.com/VapiAI/server-sdk-go/files"
logs "github.com/VapiAI/server-sdk-go/logs"
option "github.com/VapiAI/server-sdk-go/option"
phonenumbers "github.com/VapiAI/server-sdk-go/phonenumbers"
squads "github.com/VapiAI/server-sdk-go/squads"
tools "github.com/VapiAI/server-sdk-go/tools"
http "net/http"
)

Expand Down
Loading

0 comments on commit dfbb866

Please sign in to comment.