From 81328860a1e48a9fc5e55eb9709a6743c1ea5920 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Tue, 18 Apr 2023 13:21:28 -0700 Subject: [PATCH] move error over to client --- client/client.go | 2 ++ client/history.go | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/client.go b/client/client.go index c02d171..6e10d8d 100644 --- a/client/client.go +++ b/client/client.go @@ -2,6 +2,8 @@ package client const apiEndpoint = "https://api.elevenlabs.io" +var ErrUnauthorized error + type Client struct { apiKey string } diff --git a/client/history.go b/client/history.go index 874d875..fdab811 100644 --- a/client/history.go +++ b/client/history.go @@ -11,8 +11,6 @@ import ( "github.com/taigrr/elevenlabs/client/types" ) -var ErrUnauthorized error - func (c Client) HistoryDelete(ctx context.Context, historyItemId string) (bool, error) { // create path and map variables url := fmt.Sprintf(apiEndpoint+"/v1/history/%s", historyItemId)