mirror of
https://github.com/taigrr/elevenlabs.git
synced 2026-04-02 03:08:57 -07:00
add new error type
This commit is contained in:
@@ -202,6 +202,17 @@ func (ve ValidationError) Error() string {
|
||||
return fmt.Sprintf("%s %s: ", ve.Type_, ve.Msg)
|
||||
}
|
||||
|
||||
type ParamError struct {
|
||||
Detail struct {
|
||||
Status string `json:"status"`
|
||||
Message string `json:"message"`
|
||||
} `json:"detail"`
|
||||
}
|
||||
|
||||
func (pe ParamError) Error() string {
|
||||
return fmt.Sprintf("%s %s: ", pe.Detail.Status, pe.Detail.Message)
|
||||
}
|
||||
|
||||
type VerificationAttemptResponseModel struct {
|
||||
Text string `json:"text"`
|
||||
DateUnix int32 `json:"date_unix"`
|
||||
|
||||
Reference in New Issue
Block a user