Documentation
¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func GetRolesForApiSecret(operation string) []string
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type Agent
- func (s *Agent) Decode(d *jx.Decoder) error
- func (s *Agent) Encode(e *jx.Encoder)
- func (s *Agent) GetCreatedAt() OptDateTime
- func (s *Agent) GetID() string
- func (s *Agent) GetModelType() OptAgentModelType
- func (s *Agent) GetName() OptString
- func (s *Agent) GetPortraitURL() OptURI
- func (s *Agent) GetPrompt() OptString
- func (s *Agent) GetStatus() AgentStatus
- func (s *Agent) GetUpdatedAt() OptDateTime
- func (s *Agent) MarshalJSON() ([]byte, error)
- func (s *Agent) SetCreatedAt(val OptDateTime)
- func (s *Agent) SetID(val string)
- func (s *Agent) SetModelType(val OptAgentModelType)
- func (s *Agent) SetName(val OptString)
- func (s *Agent) SetPortraitURL(val OptURI)
- func (s *Agent) SetPrompt(val OptString)
- func (s *Agent) SetStatus(val AgentStatus)
- func (s *Agent) SetUpdatedAt(val OptDateTime)
- func (s *Agent) UnmarshalJSON(data []byte) error
- func (s *Agent) Validate() error
- type AgentList
- func (s *AgentList) Decode(d *jx.Decoder) error
- func (s *AgentList) Encode(e *jx.Encoder)
- func (s *AgentList) GetAgents() []Agent
- func (s *AgentList) GetLimit() OptInt
- func (s *AgentList) GetOffset() OptInt
- func (s *AgentList) GetTotal() OptInt
- func (s *AgentList) MarshalJSON() ([]byte, error)
- func (s *AgentList) SetAgents(val []Agent)
- func (s *AgentList) SetLimit(val OptInt)
- func (s *AgentList) SetOffset(val OptInt)
- func (s *AgentList) SetTotal(val OptInt)
- func (s *AgentList) UnmarshalJSON(data []byte) error
- func (s *AgentList) Validate() error
- type AgentModelType
- func (AgentModelType) AllValues() []AgentModelType
- func (s *AgentModelType) Decode(d *jx.Decoder) error
- func (s AgentModelType) Encode(e *jx.Encoder)
- func (s AgentModelType) MarshalJSON() ([]byte, error)
- func (s AgentModelType) MarshalText() ([]byte, error)
- func (s *AgentModelType) UnmarshalJSON(data []byte) error
- func (s *AgentModelType) UnmarshalText(data []byte) error
- func (s AgentModelType) Validate() error
- type AgentStatus
- func (AgentStatus) AllValues() []AgentStatus
- func (s *AgentStatus) Decode(d *jx.Decoder) error
- func (s AgentStatus) Encode(e *jx.Encoder)
- func (s AgentStatus) MarshalJSON() ([]byte, error)
- func (s AgentStatus) MarshalText() ([]byte, error)
- func (s *AgentStatus) UnmarshalJSON(data []byte) error
- func (s *AgentStatus) UnmarshalText(data []byte) error
- func (s AgentStatus) Validate() error
- type ApiSecret
- type Balance
- func (s *Balance) Decode(d *jx.Decoder) error
- func (s *Balance) Encode(e *jx.Encoder)
- func (s *Balance) GetCredits() OptFloat64
- func (s *Balance) GetMinutesEstimate() OptBalanceMinutesEstimate
- func (s *Balance) MarshalJSON() ([]byte, error)
- func (s *Balance) SetCredits(val OptFloat64)
- func (s *Balance) SetMinutesEstimate(val OptBalanceMinutesEstimate)
- func (s *Balance) UnmarshalJSON(data []byte) error
- func (s *Balance) Validate() error
- type BalanceMinutesEstimate
- func (s *BalanceMinutesEstimate) Decode(d *jx.Decoder) error
- func (s *BalanceMinutesEstimate) Encode(e *jx.Encoder)
- func (s *BalanceMinutesEstimate) GetEssence() OptFloat64
- func (s *BalanceMinutesEstimate) GetExpression() OptFloat64
- func (s *BalanceMinutesEstimate) MarshalJSON() ([]byte, error)
- func (s *BalanceMinutesEstimate) SetEssence(val OptFloat64)
- func (s *BalanceMinutesEstimate) SetExpression(val OptFloat64)
- func (s *BalanceMinutesEstimate) UnmarshalJSON(data []byte) error
- func (s *BalanceMinutesEstimate) Validate() error
- type Client
- func (c *Client) CreateAgent(ctx context.Context, request *CreateAgentRequest) (CreateAgentRes, error)
- func (c *Client) CreateEmbedToken(ctx context.Context, request *CreateEmbedTokenRequest) (CreateEmbedTokenRes, error)
- func (c *Client) CreateSession(ctx context.Context, request *CreateSessionRequest) (CreateSessionRes, error)
- func (c *Client) CreateVideo(ctx context.Context, request *CreateVideoRequest) (CreateVideoRes, error)
- func (c *Client) CreateWebhook(ctx context.Context, request *CreateWebhookRequest) (CreateWebhookRes, error)
- func (c *Client) DeleteAgent(ctx context.Context, params DeleteAgentParams) (DeleteAgentRes, error)
- func (c *Client) DeleteWebhook(ctx context.Context, params DeleteWebhookParams) (DeleteWebhookRes, error)
- func (c *Client) EndSession(ctx context.Context, params EndSessionParams) (EndSessionRes, error)
- func (c *Client) GetAgent(ctx context.Context, params GetAgentParams) (GetAgentRes, error)
- func (c *Client) GetBalance(ctx context.Context) (GetBalanceRes, error)
- func (c *Client) GetSession(ctx context.Context, params GetSessionParams) (GetSessionRes, error)
- func (c *Client) GetVideo(ctx context.Context, params GetVideoParams) (GetVideoRes, error)
- func (c *Client) ListAgents(ctx context.Context, params ListAgentsParams) (ListAgentsRes, error)
- func (c *Client) ListVoices(ctx context.Context) (ListVoicesRes, error)
- func (c *Client) ListWebhooks(ctx context.Context) (ListWebhooksRes, error)
- func (c *Client) Speak(ctx context.Context, request *SpeakRequest, params SpeakParams) (SpeakRes, error)
- func (c *Client) TextToSpeech(ctx context.Context, request *TTSRequest) (TextToSpeechRes, error)
- func (c *Client) UpdateAgent(ctx context.Context, request *UpdateAgentRequest, params UpdateAgentParams) (UpdateAgentRes, error)
- func (c *Client) UploadFile(ctx context.Context, request *UploadFileRequest) (UploadFileRes, error)
- func (c *Client) Validate(ctx context.Context) (ValidateRes, error)
- type ClientOption
- type CreateAgentBadRequest
- type CreateAgentRequest
- func (s *CreateAgentRequest) Decode(d *jx.Decoder) error
- func (s *CreateAgentRequest) Encode(e *jx.Encoder)
- func (s *CreateAgentRequest) GetModelType() OptCreateAgentRequestModelType
- func (s *CreateAgentRequest) GetName() OptString
- func (s *CreateAgentRequest) GetPortraitBase64() OptString
- func (s *CreateAgentRequest) GetPortraitURL() OptURI
- func (s *CreateAgentRequest) GetPrompt() OptString
- func (s *CreateAgentRequest) MarshalJSON() ([]byte, error)
- func (s *CreateAgentRequest) SetModelType(val OptCreateAgentRequestModelType)
- func (s *CreateAgentRequest) SetName(val OptString)
- func (s *CreateAgentRequest) SetPortraitBase64(val OptString)
- func (s *CreateAgentRequest) SetPortraitURL(val OptURI)
- func (s *CreateAgentRequest) SetPrompt(val OptString)
- func (s *CreateAgentRequest) UnmarshalJSON(data []byte) error
- func (s *CreateAgentRequest) Validate() error
- type CreateAgentRequestModelType
- func (CreateAgentRequestModelType) AllValues() []CreateAgentRequestModelType
- func (s *CreateAgentRequestModelType) Decode(d *jx.Decoder) error
- func (s CreateAgentRequestModelType) Encode(e *jx.Encoder)
- func (s CreateAgentRequestModelType) MarshalJSON() ([]byte, error)
- func (s CreateAgentRequestModelType) MarshalText() ([]byte, error)
- func (s *CreateAgentRequestModelType) UnmarshalJSON(data []byte) error
- func (s *CreateAgentRequestModelType) UnmarshalText(data []byte) error
- func (s CreateAgentRequestModelType) Validate() error
- type CreateAgentRes
- type CreateAgentUnauthorized
- type CreateEmbedTokenRequest
- func (s *CreateEmbedTokenRequest) Decode(d *jx.Decoder) error
- func (s *CreateEmbedTokenRequest) Encode(e *jx.Encoder)
- func (s *CreateEmbedTokenRequest) GetAgentID() string
- func (s *CreateEmbedTokenRequest) GetTTLSeconds() OptInt
- func (s *CreateEmbedTokenRequest) MarshalJSON() ([]byte, error)
- func (s *CreateEmbedTokenRequest) SetAgentID(val string)
- func (s *CreateEmbedTokenRequest) SetTTLSeconds(val OptInt)
- func (s *CreateEmbedTokenRequest) UnmarshalJSON(data []byte) error
- type CreateEmbedTokenRes
- type CreateSessionBadRequest
- type CreateSessionRequest
- func (s *CreateSessionRequest) Decode(d *jx.Decoder) error
- func (s *CreateSessionRequest) Encode(e *jx.Encoder)
- func (s *CreateSessionRequest) GetAgentID() string
- func (s *CreateSessionRequest) GetLivekitToken() OptString
- func (s *CreateSessionRequest) GetLivekitURL() OptString
- func (s *CreateSessionRequest) MarshalJSON() ([]byte, error)
- func (s *CreateSessionRequest) SetAgentID(val string)
- func (s *CreateSessionRequest) SetLivekitToken(val OptString)
- func (s *CreateSessionRequest) SetLivekitURL(val OptString)
- func (s *CreateSessionRequest) UnmarshalJSON(data []byte) error
- type CreateSessionRes
- type CreateSessionUnauthorized
- type CreateVideoBadRequest
- type CreateVideoRequest
- func (s *CreateVideoRequest) Decode(d *jx.Decoder) error
- func (s *CreateVideoRequest) Encode(e *jx.Encoder)
- func (s *CreateVideoRequest) GetAgentID() string
- func (s *CreateVideoRequest) GetAudioURL() OptURI
- func (s *CreateVideoRequest) GetText() OptString
- func (s *CreateVideoRequest) GetVoiceID() OptString
- func (s *CreateVideoRequest) MarshalJSON() ([]byte, error)
- func (s *CreateVideoRequest) SetAgentID(val string)
- func (s *CreateVideoRequest) SetAudioURL(val OptURI)
- func (s *CreateVideoRequest) SetText(val OptString)
- func (s *CreateVideoRequest) SetVoiceID(val OptString)
- func (s *CreateVideoRequest) UnmarshalJSON(data []byte) error
- type CreateVideoRes
- type CreateVideoUnauthorized
- type CreateWebhookBadRequest
- type CreateWebhookRequest
- func (s *CreateWebhookRequest) Decode(d *jx.Decoder) error
- func (s *CreateWebhookRequest) Encode(e *jx.Encoder)
- func (s *CreateWebhookRequest) GetEvents() []CreateWebhookRequestEventsItem
- func (s *CreateWebhookRequest) GetURL() url.URL
- func (s *CreateWebhookRequest) MarshalJSON() ([]byte, error)
- func (s *CreateWebhookRequest) SetEvents(val []CreateWebhookRequestEventsItem)
- func (s *CreateWebhookRequest) SetURL(val url.URL)
- func (s *CreateWebhookRequest) UnmarshalJSON(data []byte) error
- func (s *CreateWebhookRequest) Validate() error
- type CreateWebhookRequestEventsItem
- func (CreateWebhookRequestEventsItem) AllValues() []CreateWebhookRequestEventsItem
- func (s *CreateWebhookRequestEventsItem) Decode(d *jx.Decoder) error
- func (s CreateWebhookRequestEventsItem) Encode(e *jx.Encoder)
- func (s CreateWebhookRequestEventsItem) MarshalJSON() ([]byte, error)
- func (s CreateWebhookRequestEventsItem) MarshalText() ([]byte, error)
- func (s *CreateWebhookRequestEventsItem) UnmarshalJSON(data []byte) error
- func (s *CreateWebhookRequestEventsItem) UnmarshalText(data []byte) error
- func (s CreateWebhookRequestEventsItem) Validate() error
- type CreateWebhookRes
- type CreateWebhookUnauthorized
- type DeleteAgentNoContent
- type DeleteAgentNotFound
- type DeleteAgentParams
- type DeleteAgentRes
- type DeleteAgentUnauthorized
- type DeleteWebhookNoContent
- type DeleteWebhookNotFound
- type DeleteWebhookParams
- type DeleteWebhookRes
- type DeleteWebhookUnauthorized
- type EmbedToken
- func (s *EmbedToken) Decode(d *jx.Decoder) error
- func (s *EmbedToken) Encode(e *jx.Encoder)
- func (s *EmbedToken) GetExpiresAt() OptDateTime
- func (s *EmbedToken) GetToken() OptString
- func (s *EmbedToken) MarshalJSON() ([]byte, error)
- func (s *EmbedToken) SetExpiresAt(val OptDateTime)
- func (s *EmbedToken) SetToken(val OptString)
- func (s *EmbedToken) UnmarshalJSON(data []byte) error
- type EndSessionNoContent
- type EndSessionNotFound
- type EndSessionParams
- type EndSessionRes
- type EndSessionUnauthorized
- type Error
- func (s *Error) Decode(d *jx.Decoder) error
- func (s *Error) Encode(e *jx.Encoder)
- func (s *Error) GetError() string
- func (s *Error) GetMessage() string
- func (s *Error) MarshalJSON() ([]byte, error)
- func (s *Error) SetError(val string)
- func (s *Error) SetMessage(val string)
- func (s *Error) UnmarshalJSON(data []byte) error
- type ErrorHandler
- type File
- func (s *File) Decode(d *jx.Decoder) error
- func (s *File) Encode(e *jx.Encoder)
- func (s *File) GetContentType() OptString
- func (s *File) GetCreatedAt() OptDateTime
- func (s *File) GetID() OptString
- func (s *File) GetSizeBytes() OptInt
- func (s *File) GetURL() OptURI
- func (s *File) MarshalJSON() ([]byte, error)
- func (s *File) SetContentType(val OptString)
- func (s *File) SetCreatedAt(val OptDateTime)
- func (s *File) SetID(val OptString)
- func (s *File) SetSizeBytes(val OptInt)
- func (s *File) SetURL(val OptURI)
- func (s *File) UnmarshalJSON(data []byte) error
- type GetAgentNotFound
- type GetAgentParams
- type GetAgentRes
- type GetAgentUnauthorized
- type GetBalanceRes
- type GetSessionNotFound
- type GetSessionParams
- type GetSessionRes
- type GetSessionUnauthorized
- type GetVideoNotFound
- type GetVideoParams
- type GetVideoRes
- type GetVideoUnauthorized
- type Handler
- type Invoker
- type Labeler
- type ListAgentsParams
- type ListAgentsRes
- type ListVoicesRes
- type ListWebhooksRes
- type Middleware
- type OperationName
- type OptAgentModelType
- func (o *OptAgentModelType) Decode(d *jx.Decoder) error
- func (o OptAgentModelType) Encode(e *jx.Encoder)
- func (o OptAgentModelType) Get() (v AgentModelType, ok bool)
- func (o OptAgentModelType) IsSet() bool
- func (s OptAgentModelType) MarshalJSON() ([]byte, error)
- func (o OptAgentModelType) Or(d AgentModelType) AgentModelType
- func (o *OptAgentModelType) Reset()
- func (o *OptAgentModelType) SetTo(v AgentModelType)
- func (s *OptAgentModelType) UnmarshalJSON(data []byte) error
- type OptBalanceMinutesEstimate
- func (o *OptBalanceMinutesEstimate) Decode(d *jx.Decoder) error
- func (o OptBalanceMinutesEstimate) Encode(e *jx.Encoder)
- func (o OptBalanceMinutesEstimate) Get() (v BalanceMinutesEstimate, ok bool)
- func (o OptBalanceMinutesEstimate) IsSet() bool
- func (s OptBalanceMinutesEstimate) MarshalJSON() ([]byte, error)
- func (o OptBalanceMinutesEstimate) Or(d BalanceMinutesEstimate) BalanceMinutesEstimate
- func (o *OptBalanceMinutesEstimate) Reset()
- func (o *OptBalanceMinutesEstimate) SetTo(v BalanceMinutesEstimate)
- func (s *OptBalanceMinutesEstimate) UnmarshalJSON(data []byte) error
- type OptBool
- func (o *OptBool) Decode(d *jx.Decoder) error
- func (o OptBool) Encode(e *jx.Encoder)
- func (o OptBool) Get() (v bool, ok bool)
- func (o OptBool) IsSet() bool
- func (s OptBool) MarshalJSON() ([]byte, error)
- func (o OptBool) Or(d bool) bool
- func (o *OptBool) Reset()
- func (o *OptBool) SetTo(v bool)
- func (s *OptBool) UnmarshalJSON(data []byte) error
- type OptCreateAgentRequestModelType
- func (o *OptCreateAgentRequestModelType) Decode(d *jx.Decoder) error
- func (o OptCreateAgentRequestModelType) Encode(e *jx.Encoder)
- func (o OptCreateAgentRequestModelType) Get() (v CreateAgentRequestModelType, ok bool)
- func (o OptCreateAgentRequestModelType) IsSet() bool
- func (s OptCreateAgentRequestModelType) MarshalJSON() ([]byte, error)
- func (o OptCreateAgentRequestModelType) Or(d CreateAgentRequestModelType) CreateAgentRequestModelType
- func (o *OptCreateAgentRequestModelType) Reset()
- func (o *OptCreateAgentRequestModelType) SetTo(v CreateAgentRequestModelType)
- func (s *OptCreateAgentRequestModelType) UnmarshalJSON(data []byte) error
- type OptDateTime
- func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error
- func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))
- func (o OptDateTime) Get() (v time.Time, ok bool)
- func (o OptDateTime) IsSet() bool
- func (s OptDateTime) MarshalJSON() ([]byte, error)
- func (o OptDateTime) Or(d time.Time) time.Time
- func (o *OptDateTime) Reset()
- func (o *OptDateTime) SetTo(v time.Time)
- func (s *OptDateTime) UnmarshalJSON(data []byte) error
- type OptFloat64
- func (o *OptFloat64) Decode(d *jx.Decoder) error
- func (o OptFloat64) Encode(e *jx.Encoder)
- func (o OptFloat64) Get() (v float64, ok bool)
- func (o OptFloat64) IsSet() bool
- func (s OptFloat64) MarshalJSON() ([]byte, error)
- func (o OptFloat64) Or(d float64) float64
- func (o *OptFloat64) Reset()
- func (o *OptFloat64) SetTo(v float64)
- func (s *OptFloat64) UnmarshalJSON(data []byte) error
- type OptInt
- func (o *OptInt) Decode(d *jx.Decoder) error
- func (o OptInt) Encode(e *jx.Encoder)
- func (o OptInt) Get() (v int, ok bool)
- func (o OptInt) IsSet() bool
- func (s OptInt) MarshalJSON() ([]byte, error)
- func (o OptInt) Or(d int) int
- func (o *OptInt) Reset()
- func (o *OptInt) SetTo(v int)
- func (s *OptInt) UnmarshalJSON(data []byte) error
- type OptString
- func (o *OptString) Decode(d *jx.Decoder) error
- func (o OptString) Encode(e *jx.Encoder)
- func (o OptString) Get() (v string, ok bool)
- func (o OptString) IsSet() bool
- func (s OptString) MarshalJSON() ([]byte, error)
- func (o OptString) Or(d string) string
- func (o *OptString) Reset()
- func (o *OptString) SetTo(v string)
- func (s *OptString) UnmarshalJSON(data []byte) error
- type OptURI
- func (o *OptURI) Decode(d *jx.Decoder) error
- func (o OptURI) Encode(e *jx.Encoder)
- func (o OptURI) Get() (v url.URL, ok bool)
- func (o OptURI) IsSet() bool
- func (s OptURI) MarshalJSON() ([]byte, error)
- func (o OptURI) Or(d url.URL) url.URL
- func (o *OptURI) Reset()
- func (o *OptURI) SetTo(v url.URL)
- func (s *OptURI) UnmarshalJSON(data []byte) error
- type OptVoiceGender
- func (o *OptVoiceGender) Decode(d *jx.Decoder) error
- func (o OptVoiceGender) Encode(e *jx.Encoder)
- func (o OptVoiceGender) Get() (v VoiceGender, ok bool)
- func (o OptVoiceGender) IsSet() bool
- func (s OptVoiceGender) MarshalJSON() ([]byte, error)
- func (o OptVoiceGender) Or(d VoiceGender) VoiceGender
- func (o *OptVoiceGender) Reset()
- func (o *OptVoiceGender) SetTo(v VoiceGender)
- func (s *OptVoiceGender) UnmarshalJSON(data []byte) error
- type Option
- type Route
- type SecurityHandler
- type SecuritySource
- type Server
- type ServerOption
- func WithErrorHandler(h ErrorHandler) ServerOption
- func WithMaxMultipartMemory(max int64) ServerOption
- func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
- func WithMiddleware(m ...Middleware) ServerOption
- func WithNotFound(notFound http.HandlerFunc) ServerOption
- func WithPathPrefix(prefix string) ServerOption
- type Session
- func (s *Session) Decode(d *jx.Decoder) error
- func (s *Session) Encode(e *jx.Encoder)
- func (s *Session) GetAgentID() string
- func (s *Session) GetCreatedAt() OptDateTime
- func (s *Session) GetID() string
- func (s *Session) GetLivekitToken() OptString
- func (s *Session) GetLivekitURL() OptString
- func (s *Session) GetStatus() SessionStatus
- func (s *Session) MarshalJSON() ([]byte, error)
- func (s *Session) SetAgentID(val string)
- func (s *Session) SetCreatedAt(val OptDateTime)
- func (s *Session) SetID(val string)
- func (s *Session) SetLivekitToken(val OptString)
- func (s *Session) SetLivekitURL(val OptString)
- func (s *Session) SetStatus(val SessionStatus)
- func (s *Session) UnmarshalJSON(data []byte) error
- func (s *Session) Validate() error
- type SessionStatus
- func (SessionStatus) AllValues() []SessionStatus
- func (s *SessionStatus) Decode(d *jx.Decoder) error
- func (s SessionStatus) Encode(e *jx.Encoder)
- func (s SessionStatus) MarshalJSON() ([]byte, error)
- func (s SessionStatus) MarshalText() ([]byte, error)
- func (s *SessionStatus) UnmarshalJSON(data []byte) error
- func (s *SessionStatus) UnmarshalText(data []byte) error
- func (s SessionStatus) Validate() error
- type SpeakNotFound
- type SpeakParams
- type SpeakRequest
- func (s *SpeakRequest) Decode(d *jx.Decoder) error
- func (s *SpeakRequest) Encode(e *jx.Encoder)
- func (s *SpeakRequest) GetText() string
- func (s *SpeakRequest) GetVoiceID() OptString
- func (s *SpeakRequest) MarshalJSON() ([]byte, error)
- func (s *SpeakRequest) SetText(val string)
- func (s *SpeakRequest) SetVoiceID(val OptString)
- func (s *SpeakRequest) UnmarshalJSON(data []byte) error
- type SpeakRes
- type SpeakResponse
- func (s *SpeakResponse) Decode(d *jx.Decoder) error
- func (s *SpeakResponse) Encode(e *jx.Encoder)
- func (s *SpeakResponse) GetDurationMs() OptInt
- func (s *SpeakResponse) GetSuccess() OptBool
- func (s *SpeakResponse) MarshalJSON() ([]byte, error)
- func (s *SpeakResponse) SetDurationMs(val OptInt)
- func (s *SpeakResponse) SetSuccess(val OptBool)
- func (s *SpeakResponse) UnmarshalJSON(data []byte) error
- type SpeakUnauthorized
- type TTSRequest
- func (s *TTSRequest) Decode(d *jx.Decoder) error
- func (s *TTSRequest) Encode(e *jx.Encoder)
- func (s *TTSRequest) GetLanguage() OptString
- func (s *TTSRequest) GetText() string
- func (s *TTSRequest) GetVoiceID() OptString
- func (s *TTSRequest) MarshalJSON() ([]byte, error)
- func (s *TTSRequest) SetLanguage(val OptString)
- func (s *TTSRequest) SetText(val string)
- func (s *TTSRequest) SetVoiceID(val OptString)
- func (s *TTSRequest) UnmarshalJSON(data []byte) error
- type TextToSpeechBadRequest
- type TextToSpeechOK
- type TextToSpeechRes
- type TextToSpeechUnauthorized
- type UnimplementedHandler
- func (UnimplementedHandler) CreateAgent(ctx context.Context, req *CreateAgentRequest) (r CreateAgentRes, _ error)
- func (UnimplementedHandler) CreateEmbedToken(ctx context.Context, req *CreateEmbedTokenRequest) (r CreateEmbedTokenRes, _ error)
- func (UnimplementedHandler) CreateSession(ctx context.Context, req *CreateSessionRequest) (r CreateSessionRes, _ error)
- func (UnimplementedHandler) CreateVideo(ctx context.Context, req *CreateVideoRequest) (r CreateVideoRes, _ error)
- func (UnimplementedHandler) CreateWebhook(ctx context.Context, req *CreateWebhookRequest) (r CreateWebhookRes, _ error)
- func (UnimplementedHandler) DeleteAgent(ctx context.Context, params DeleteAgentParams) (r DeleteAgentRes, _ error)
- func (UnimplementedHandler) DeleteWebhook(ctx context.Context, params DeleteWebhookParams) (r DeleteWebhookRes, _ error)
- func (UnimplementedHandler) EndSession(ctx context.Context, params EndSessionParams) (r EndSessionRes, _ error)
- func (UnimplementedHandler) GetAgent(ctx context.Context, params GetAgentParams) (r GetAgentRes, _ error)
- func (UnimplementedHandler) GetBalance(ctx context.Context) (r GetBalanceRes, _ error)
- func (UnimplementedHandler) GetSession(ctx context.Context, params GetSessionParams) (r GetSessionRes, _ error)
- func (UnimplementedHandler) GetVideo(ctx context.Context, params GetVideoParams) (r GetVideoRes, _ error)
- func (UnimplementedHandler) ListAgents(ctx context.Context, params ListAgentsParams) (r ListAgentsRes, _ error)
- func (UnimplementedHandler) ListVoices(ctx context.Context) (r ListVoicesRes, _ error)
- func (UnimplementedHandler) ListWebhooks(ctx context.Context) (r ListWebhooksRes, _ error)
- func (UnimplementedHandler) Speak(ctx context.Context, req *SpeakRequest, params SpeakParams) (r SpeakRes, _ error)
- func (UnimplementedHandler) TextToSpeech(ctx context.Context, req *TTSRequest) (r TextToSpeechRes, _ error)
- func (UnimplementedHandler) UpdateAgent(ctx context.Context, req *UpdateAgentRequest, params UpdateAgentParams) (r UpdateAgentRes, _ error)
- func (UnimplementedHandler) UploadFile(ctx context.Context, req *UploadFileRequest) (r UploadFileRes, _ error)
- func (UnimplementedHandler) Validate(ctx context.Context) (r ValidateRes, _ error)
- type UpdateAgentNotFound
- type UpdateAgentParams
- type UpdateAgentRequest
- func (s *UpdateAgentRequest) Decode(d *jx.Decoder) error
- func (s *UpdateAgentRequest) Encode(e *jx.Encoder)
- func (s *UpdateAgentRequest) GetName() OptString
- func (s *UpdateAgentRequest) GetPrompt() OptString
- func (s *UpdateAgentRequest) MarshalJSON() ([]byte, error)
- func (s *UpdateAgentRequest) SetName(val OptString)
- func (s *UpdateAgentRequest) SetPrompt(val OptString)
- func (s *UpdateAgentRequest) UnmarshalJSON(data []byte) error
- type UpdateAgentRes
- type UpdateAgentUnauthorized
- type UploadFileBadRequest
- type UploadFileRequest
- func (s *UploadFileRequest) Decode(d *jx.Decoder) error
- func (s *UploadFileRequest) Encode(e *jx.Encoder)
- func (s *UploadFileRequest) GetBase64() OptString
- func (s *UploadFileRequest) GetContentType() OptString
- func (s *UploadFileRequest) GetFilename() OptString
- func (s *UploadFileRequest) GetURL() OptURI
- func (s *UploadFileRequest) MarshalJSON() ([]byte, error)
- func (s *UploadFileRequest) SetBase64(val OptString)
- func (s *UploadFileRequest) SetContentType(val OptString)
- func (s *UploadFileRequest) SetFilename(val OptString)
- func (s *UploadFileRequest) SetURL(val OptURI)
- func (s *UploadFileRequest) UnmarshalJSON(data []byte) error
- type UploadFileRes
- type UploadFileUnauthorized
- type ValidateRes
- type ValidateResponse
- func (s *ValidateResponse) Decode(d *jx.Decoder) error
- func (s *ValidateResponse) Encode(e *jx.Encoder)
- func (s *ValidateResponse) GetAccountID() OptString
- func (s *ValidateResponse) GetValid() OptBool
- func (s *ValidateResponse) MarshalJSON() ([]byte, error)
- func (s *ValidateResponse) SetAccountID(val OptString)
- func (s *ValidateResponse) SetValid(val OptBool)
- func (s *ValidateResponse) UnmarshalJSON(data []byte) error
- type VideoJob
- func (s *VideoJob) Decode(d *jx.Decoder) error
- func (s *VideoJob) Encode(e *jx.Encoder)
- func (s *VideoJob) GetAgentID() OptString
- func (s *VideoJob) GetCreatedAt() OptDateTime
- func (s *VideoJob) GetDurationSeconds() OptFloat64
- func (s *VideoJob) GetError() OptString
- func (s *VideoJob) GetID() string
- func (s *VideoJob) GetStatus() VideoJobStatus
- func (s *VideoJob) GetVideoURL() OptURI
- func (s *VideoJob) MarshalJSON() ([]byte, error)
- func (s *VideoJob) SetAgentID(val OptString)
- func (s *VideoJob) SetCreatedAt(val OptDateTime)
- func (s *VideoJob) SetDurationSeconds(val OptFloat64)
- func (s *VideoJob) SetError(val OptString)
- func (s *VideoJob) SetID(val string)
- func (s *VideoJob) SetStatus(val VideoJobStatus)
- func (s *VideoJob) SetVideoURL(val OptURI)
- func (s *VideoJob) UnmarshalJSON(data []byte) error
- func (s *VideoJob) Validate() error
- type VideoJobStatus
- func (VideoJobStatus) AllValues() []VideoJobStatus
- func (s *VideoJobStatus) Decode(d *jx.Decoder) error
- func (s VideoJobStatus) Encode(e *jx.Encoder)
- func (s VideoJobStatus) MarshalJSON() ([]byte, error)
- func (s VideoJobStatus) MarshalText() ([]byte, error)
- func (s *VideoJobStatus) UnmarshalJSON(data []byte) error
- func (s *VideoJobStatus) UnmarshalText(data []byte) error
- func (s VideoJobStatus) Validate() error
- type Voice
- func (s *Voice) Decode(d *jx.Decoder) error
- func (s *Voice) Encode(e *jx.Encoder)
- func (s *Voice) GetGender() OptVoiceGender
- func (s *Voice) GetID() OptString
- func (s *Voice) GetLanguage() OptString
- func (s *Voice) GetName() OptString
- func (s *Voice) GetPreviewURL() OptURI
- func (s *Voice) MarshalJSON() ([]byte, error)
- func (s *Voice) SetGender(val OptVoiceGender)
- func (s *Voice) SetID(val OptString)
- func (s *Voice) SetLanguage(val OptString)
- func (s *Voice) SetName(val OptString)
- func (s *Voice) SetPreviewURL(val OptURI)
- func (s *Voice) UnmarshalJSON(data []byte) error
- func (s *Voice) Validate() error
- type VoiceGender
- func (VoiceGender) AllValues() []VoiceGender
- func (s *VoiceGender) Decode(d *jx.Decoder) error
- func (s VoiceGender) Encode(e *jx.Encoder)
- func (s VoiceGender) MarshalJSON() ([]byte, error)
- func (s VoiceGender) MarshalText() ([]byte, error)
- func (s *VoiceGender) UnmarshalJSON(data []byte) error
- func (s *VoiceGender) UnmarshalText(data []byte) error
- func (s VoiceGender) Validate() error
- type VoiceList
- func (s *VoiceList) Decode(d *jx.Decoder) error
- func (s *VoiceList) Encode(e *jx.Encoder)
- func (s *VoiceList) GetVoices() []Voice
- func (s *VoiceList) MarshalJSON() ([]byte, error)
- func (s *VoiceList) SetVoices(val []Voice)
- func (s *VoiceList) UnmarshalJSON(data []byte) error
- func (s *VoiceList) Validate() error
- type Webhook
- func (s *Webhook) Decode(d *jx.Decoder) error
- func (s *Webhook) Encode(e *jx.Encoder)
- func (s *Webhook) GetCreatedAt() OptDateTime
- func (s *Webhook) GetEvents() []WebhookEventsItem
- func (s *Webhook) GetID() OptString
- func (s *Webhook) GetSecret() OptString
- func (s *Webhook) GetURL() OptURI
- func (s *Webhook) MarshalJSON() ([]byte, error)
- func (s *Webhook) SetCreatedAt(val OptDateTime)
- func (s *Webhook) SetEvents(val []WebhookEventsItem)
- func (s *Webhook) SetID(val OptString)
- func (s *Webhook) SetSecret(val OptString)
- func (s *Webhook) SetURL(val OptURI)
- func (s *Webhook) UnmarshalJSON(data []byte) error
- func (s *Webhook) Validate() error
- type WebhookEventsItem
- func (WebhookEventsItem) AllValues() []WebhookEventsItem
- func (s *WebhookEventsItem) Decode(d *jx.Decoder) error
- func (s WebhookEventsItem) Encode(e *jx.Encoder)
- func (s WebhookEventsItem) MarshalJSON() ([]byte, error)
- func (s WebhookEventsItem) MarshalText() ([]byte, error)
- func (s *WebhookEventsItem) UnmarshalJSON(data []byte) error
- func (s *WebhookEventsItem) UnmarshalText(data []byte) error
- func (s WebhookEventsItem) Validate() error
- type WebhookList
- func (s *WebhookList) Decode(d *jx.Decoder) error
- func (s *WebhookList) Encode(e *jx.Encoder)
- func (s *WebhookList) GetWebhooks() []Webhook
- func (s *WebhookList) MarshalJSON() ([]byte, error)
- func (s *WebhookList) SetWebhooks(val []Webhook)
- func (s *WebhookList) UnmarshalJSON(data []byte) error
- func (s *WebhookList) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRolesForApiSecret ¶
GetRolesForApiSecret returns the required roles for the given operation.
This is useful for authorization scenarios where you need to know which roles are required for an operation.
Example:
requiredRoles := GetRolesForApiSecret(AddPetOperation)
Returns nil if the operation has no role requirements or if the operation is unknown.
Types ¶
type Agent ¶
type Agent struct {
// Unique agent identifier.
ID string `json:"id"`
// Agent display name.
Name OptString `json:"name"`
// Agent generation status.
Status AgentStatus `json:"status"`
// Agent personality prompt.
Prompt OptString `json:"prompt"`
// Avatar model type.
ModelType OptAgentModelType `json:"model_type"`
// Agent portrait image URL.
PortraitURL OptURI `json:"portrait_url"`
CreatedAt OptDateTime `json:"created_at"`
UpdatedAt OptDateTime `json:"updated_at"`
}
Ref: #/components/schemas/Agent
func (*Agent) GetCreatedAt ¶
func (s *Agent) GetCreatedAt() OptDateTime
GetCreatedAt returns the value of CreatedAt.
func (*Agent) GetModelType ¶
func (s *Agent) GetModelType() OptAgentModelType
GetModelType returns the value of ModelType.
func (*Agent) GetPortraitURL ¶
GetPortraitURL returns the value of PortraitURL.
func (*Agent) GetStatus ¶
func (s *Agent) GetStatus() AgentStatus
GetStatus returns the value of Status.
func (*Agent) GetUpdatedAt ¶
func (s *Agent) GetUpdatedAt() OptDateTime
GetUpdatedAt returns the value of UpdatedAt.
func (*Agent) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Agent) SetCreatedAt ¶
func (s *Agent) SetCreatedAt(val OptDateTime)
SetCreatedAt sets the value of CreatedAt.
func (*Agent) SetModelType ¶
func (s *Agent) SetModelType(val OptAgentModelType)
SetModelType sets the value of ModelType.
func (*Agent) SetPortraitURL ¶
SetPortraitURL sets the value of PortraitURL.
func (*Agent) SetStatus ¶
func (s *Agent) SetStatus(val AgentStatus)
SetStatus sets the value of Status.
func (*Agent) SetUpdatedAt ¶
func (s *Agent) SetUpdatedAt(val OptDateTime)
SetUpdatedAt sets the value of UpdatedAt.
func (*Agent) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type AgentList ¶
type AgentList struct {
Agents []Agent `json:"agents"`
Total OptInt `json:"total"`
Limit OptInt `json:"limit"`
Offset OptInt `json:"offset"`
}
Ref: #/components/schemas/AgentList
func (*AgentList) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*AgentList) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type AgentModelType ¶
type AgentModelType string
Avatar model type.
const ( AgentModelTypeEssence AgentModelType = "essence" AgentModelTypeExpression AgentModelType = "expression" )
func (AgentModelType) AllValues ¶
func (AgentModelType) AllValues() []AgentModelType
AllValues returns all AgentModelType values.
func (*AgentModelType) Decode ¶
func (s *AgentModelType) Decode(d *jx.Decoder) error
Decode decodes AgentModelType from json.
func (AgentModelType) Encode ¶
func (s AgentModelType) Encode(e *jx.Encoder)
Encode encodes AgentModelType as json.
func (AgentModelType) MarshalJSON ¶
func (s AgentModelType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (AgentModelType) MarshalText ¶
func (s AgentModelType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*AgentModelType) UnmarshalJSON ¶
func (s *AgentModelType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AgentModelType) UnmarshalText ¶
func (s *AgentModelType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (AgentModelType) Validate ¶
func (s AgentModelType) Validate() error
type AgentStatus ¶
type AgentStatus string
Agent generation status.
const ( AgentStatusPending AgentStatus = "pending" AgentStatusProcessing AgentStatus = "processing" AgentStatusReady AgentStatus = "ready" AgentStatusFailed AgentStatus = "failed" )
func (AgentStatus) AllValues ¶
func (AgentStatus) AllValues() []AgentStatus
AllValues returns all AgentStatus values.
func (*AgentStatus) Decode ¶
func (s *AgentStatus) Decode(d *jx.Decoder) error
Decode decodes AgentStatus from json.
func (AgentStatus) Encode ¶
func (s AgentStatus) Encode(e *jx.Encoder)
Encode encodes AgentStatus as json.
func (AgentStatus) MarshalJSON ¶
func (s AgentStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (AgentStatus) MarshalText ¶
func (s AgentStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*AgentStatus) UnmarshalJSON ¶
func (s *AgentStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AgentStatus) UnmarshalText ¶
func (s *AgentStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (AgentStatus) Validate ¶
func (s AgentStatus) Validate() error
type ApiSecret ¶
type Balance ¶
type Balance struct {
// Available credits.
Credits OptFloat64 `json:"credits"`
// Estimated minutes by model type.
MinutesEstimate OptBalanceMinutesEstimate `json:"minutes_estimate"`
}
Ref: #/components/schemas/Balance
func (*Balance) GetCredits ¶
func (s *Balance) GetCredits() OptFloat64
GetCredits returns the value of Credits.
func (*Balance) GetMinutesEstimate ¶
func (s *Balance) GetMinutesEstimate() OptBalanceMinutesEstimate
GetMinutesEstimate returns the value of MinutesEstimate.
func (*Balance) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Balance) SetCredits ¶
func (s *Balance) SetCredits(val OptFloat64)
SetCredits sets the value of Credits.
func (*Balance) SetMinutesEstimate ¶
func (s *Balance) SetMinutesEstimate(val OptBalanceMinutesEstimate)
SetMinutesEstimate sets the value of MinutesEstimate.
func (*Balance) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type BalanceMinutesEstimate ¶
type BalanceMinutesEstimate struct {
Essence OptFloat64 `json:"essence"`
Expression OptFloat64 `json:"expression"`
}
Estimated minutes by model type.
func (*BalanceMinutesEstimate) Decode ¶
func (s *BalanceMinutesEstimate) Decode(d *jx.Decoder) error
Decode decodes BalanceMinutesEstimate from json.
func (*BalanceMinutesEstimate) Encode ¶
func (s *BalanceMinutesEstimate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*BalanceMinutesEstimate) GetEssence ¶
func (s *BalanceMinutesEstimate) GetEssence() OptFloat64
GetEssence returns the value of Essence.
func (*BalanceMinutesEstimate) GetExpression ¶
func (s *BalanceMinutesEstimate) GetExpression() OptFloat64
GetExpression returns the value of Expression.
func (*BalanceMinutesEstimate) MarshalJSON ¶
func (s *BalanceMinutesEstimate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*BalanceMinutesEstimate) SetEssence ¶
func (s *BalanceMinutesEstimate) SetEssence(val OptFloat64)
SetEssence sets the value of Essence.
func (*BalanceMinutesEstimate) SetExpression ¶
func (s *BalanceMinutesEstimate) SetExpression(val OptFloat64)
SetExpression sets the value of Expression.
func (*BalanceMinutesEstimate) UnmarshalJSON ¶
func (s *BalanceMinutesEstimate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*BalanceMinutesEstimate) Validate ¶
func (s *BalanceMinutesEstimate) Validate() error
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func NewClient ¶
func NewClient(serverURL string, sec SecuritySource, opts ...ClientOption) (*Client, error)
NewClient initializes new Client defined by OAS.
func (*Client) CreateAgent ¶
func (c *Client) CreateAgent(ctx context.Context, request *CreateAgentRequest) (CreateAgentRes, error)
CreateAgent invokes createAgent operation.
Generate a new avatar agent from a text prompt with optional image/audio. Returns immediately with agent ID; use GET /v1/agents/{id} to poll status.
POST /v1/agents
func (*Client) CreateEmbedToken ¶
func (c *Client) CreateEmbedToken(ctx context.Context, request *CreateEmbedTokenRequest) (CreateEmbedTokenRes, error)
CreateEmbedToken invokes createEmbedToken operation.
Mint a short-lived JWT for embedding avatar in websites.
POST /v1/embed/token
func (*Client) CreateSession ¶
func (c *Client) CreateSession(ctx context.Context, request *CreateSessionRequest) (CreateSessionRes, error)
CreateSession invokes createSession operation.
Create a new real-time conversation session with an agent. Returns connection details for WebRTC/LiveKit.
POST /v1/sessions
func (*Client) CreateVideo ¶
func (c *Client) CreateVideo(ctx context.Context, request *CreateVideoRequest) (CreateVideoRes, error)
CreateVideo invokes createVideo operation.
Generate an MP4 talking video from text or audio. This is an async operation; poll GET /v1/videos/{id} for status.
POST /v1/videos
func (*Client) CreateWebhook ¶
func (c *Client) CreateWebhook(ctx context.Context, request *CreateWebhookRequest) (CreateWebhookRes, error)
CreateWebhook invokes createWebhook operation.
Create webhook.
POST /v1/webhooks
func (*Client) DeleteAgent ¶
func (c *Client) DeleteAgent(ctx context.Context, params DeleteAgentParams) (DeleteAgentRes, error)
DeleteAgent invokes deleteAgent operation.
Delete agent.
DELETE /v1/agents/{agentId}
func (*Client) DeleteWebhook ¶
func (c *Client) DeleteWebhook(ctx context.Context, params DeleteWebhookParams) (DeleteWebhookRes, error)
DeleteWebhook invokes deleteWebhook operation.
Delete webhook.
DELETE /v1/webhooks/{webhookId}
func (*Client) EndSession ¶
func (c *Client) EndSession(ctx context.Context, params EndSessionParams) (EndSessionRes, error)
EndSession invokes endSession operation.
End a session.
DELETE /v1/sessions/{sessionId}
func (*Client) GetAgent ¶
func (c *Client) GetAgent(ctx context.Context, params GetAgentParams) (GetAgentRes, error)
GetAgent invokes getAgent operation.
Get agent details.
GET /v1/agents/{agentId}
func (*Client) GetBalance ¶
func (c *Client) GetBalance(ctx context.Context) (GetBalanceRes, error)
GetBalance invokes getBalance operation.
Get account balance.
GET /v1/billing/balance
func (*Client) GetSession ¶
func (c *Client) GetSession(ctx context.Context, params GetSessionParams) (GetSessionRes, error)
GetSession invokes getSession operation.
Get session details.
GET /v1/sessions/{sessionId}
func (*Client) GetVideo ¶
func (c *Client) GetVideo(ctx context.Context, params GetVideoParams) (GetVideoRes, error)
GetVideo invokes getVideo operation.
Get video job status.
GET /v1/videos/{videoId}
func (*Client) ListAgents ¶
func (c *Client) ListAgents(ctx context.Context, params ListAgentsParams) (ListAgentsRes, error)
ListAgents invokes listAgents operation.
List all agents.
GET /v1/agents
func (*Client) ListVoices ¶
func (c *Client) ListVoices(ctx context.Context) (ListVoicesRes, error)
ListVoices invokes listVoices operation.
List available voices.
GET /v1/voices
func (*Client) ListWebhooks ¶
func (c *Client) ListWebhooks(ctx context.Context) (ListWebhooksRes, error)
ListWebhooks invokes listWebhooks operation.
List webhooks.
GET /v1/webhooks
func (*Client) Speak ¶
func (c *Client) Speak(ctx context.Context, request *SpeakRequest, params SpeakParams) (SpeakRes, error)
Speak invokes speak operation.
Send text for the agent to speak with lip-sync.
POST /v1/agents/{agentId}/speak
func (*Client) TextToSpeech ¶
func (c *Client) TextToSpeech(ctx context.Context, request *TTSRequest) (TextToSpeechRes, error)
TextToSpeech invokes textToSpeech operation.
Convert text to audio using bitHuman TTS.
POST /v1/tts
func (*Client) UpdateAgent ¶
func (c *Client) UpdateAgent(ctx context.Context, request *UpdateAgentRequest, params UpdateAgentParams) (UpdateAgentRes, error)
UpdateAgent invokes updateAgent operation.
Update agent.
PATCH /v1/agents/{agentId}
func (*Client) UploadFile ¶
func (c *Client) UploadFile(ctx context.Context, request *UploadFileRequest) (UploadFileRes, error)
UploadFile invokes uploadFile operation.
Upload images, video, audio, or documents.
POST /v1/files
type ClientOption ¶
type ClientOption interface {
// contains filtered or unexported methods
}
ClientOption is client config option.
func WithClient ¶
func WithClient(client ht.Client) ClientOption
WithClient specifies http client to use.
type CreateAgentBadRequest ¶
type CreateAgentBadRequest Error
func (*CreateAgentBadRequest) Decode ¶
func (s *CreateAgentBadRequest) Decode(d *jx.Decoder) error
Decode decodes CreateAgentBadRequest from json.
func (*CreateAgentBadRequest) Encode ¶
func (s *CreateAgentBadRequest) Encode(e *jx.Encoder)
Encode encodes CreateAgentBadRequest as json.
func (*CreateAgentBadRequest) MarshalJSON ¶
func (s *CreateAgentBadRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateAgentBadRequest) UnmarshalJSON ¶
func (s *CreateAgentBadRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CreateAgentRequest ¶
type CreateAgentRequest struct {
// Agent display name.
Name OptString `json:"name"`
// Agent personality prompt.
Prompt OptString `json:"prompt"`
// Portrait image URL.
PortraitURL OptURI `json:"portrait_url"`
// Portrait image as base64.
PortraitBase64 OptString `json:"portrait_base64"`
// Avatar model type.
ModelType OptCreateAgentRequestModelType `json:"model_type"`
}
Ref: #/components/schemas/CreateAgentRequest
func (*CreateAgentRequest) Decode ¶
func (s *CreateAgentRequest) Decode(d *jx.Decoder) error
Decode decodes CreateAgentRequest from json.
func (*CreateAgentRequest) Encode ¶
func (s *CreateAgentRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CreateAgentRequest) GetModelType ¶
func (s *CreateAgentRequest) GetModelType() OptCreateAgentRequestModelType
GetModelType returns the value of ModelType.
func (*CreateAgentRequest) GetName ¶
func (s *CreateAgentRequest) GetName() OptString
GetName returns the value of Name.
func (*CreateAgentRequest) GetPortraitBase64 ¶
func (s *CreateAgentRequest) GetPortraitBase64() OptString
GetPortraitBase64 returns the value of PortraitBase64.
func (*CreateAgentRequest) GetPortraitURL ¶
func (s *CreateAgentRequest) GetPortraitURL() OptURI
GetPortraitURL returns the value of PortraitURL.
func (*CreateAgentRequest) GetPrompt ¶
func (s *CreateAgentRequest) GetPrompt() OptString
GetPrompt returns the value of Prompt.
func (*CreateAgentRequest) MarshalJSON ¶
func (s *CreateAgentRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateAgentRequest) SetModelType ¶
func (s *CreateAgentRequest) SetModelType(val OptCreateAgentRequestModelType)
SetModelType sets the value of ModelType.
func (*CreateAgentRequest) SetName ¶
func (s *CreateAgentRequest) SetName(val OptString)
SetName sets the value of Name.
func (*CreateAgentRequest) SetPortraitBase64 ¶
func (s *CreateAgentRequest) SetPortraitBase64(val OptString)
SetPortraitBase64 sets the value of PortraitBase64.
func (*CreateAgentRequest) SetPortraitURL ¶
func (s *CreateAgentRequest) SetPortraitURL(val OptURI)
SetPortraitURL sets the value of PortraitURL.
func (*CreateAgentRequest) SetPrompt ¶
func (s *CreateAgentRequest) SetPrompt(val OptString)
SetPrompt sets the value of Prompt.
func (*CreateAgentRequest) UnmarshalJSON ¶
func (s *CreateAgentRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CreateAgentRequest) Validate ¶
func (s *CreateAgentRequest) Validate() error
type CreateAgentRequestModelType ¶
type CreateAgentRequestModelType string
Avatar model type.
const ( CreateAgentRequestModelTypeEssence CreateAgentRequestModelType = "essence" CreateAgentRequestModelTypeExpression CreateAgentRequestModelType = "expression" )
func (CreateAgentRequestModelType) AllValues ¶
func (CreateAgentRequestModelType) AllValues() []CreateAgentRequestModelType
AllValues returns all CreateAgentRequestModelType values.
func (*CreateAgentRequestModelType) Decode ¶
func (s *CreateAgentRequestModelType) Decode(d *jx.Decoder) error
Decode decodes CreateAgentRequestModelType from json.
func (CreateAgentRequestModelType) Encode ¶
func (s CreateAgentRequestModelType) Encode(e *jx.Encoder)
Encode encodes CreateAgentRequestModelType as json.
func (CreateAgentRequestModelType) MarshalJSON ¶
func (s CreateAgentRequestModelType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (CreateAgentRequestModelType) MarshalText ¶
func (s CreateAgentRequestModelType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*CreateAgentRequestModelType) UnmarshalJSON ¶
func (s *CreateAgentRequestModelType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CreateAgentRequestModelType) UnmarshalText ¶
func (s *CreateAgentRequestModelType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (CreateAgentRequestModelType) Validate ¶
func (s CreateAgentRequestModelType) Validate() error
type CreateAgentRes ¶
type CreateAgentRes interface {
// contains filtered or unexported methods
}
type CreateAgentUnauthorized ¶
type CreateAgentUnauthorized Error
func (*CreateAgentUnauthorized) Decode ¶
func (s *CreateAgentUnauthorized) Decode(d *jx.Decoder) error
Decode decodes CreateAgentUnauthorized from json.
func (*CreateAgentUnauthorized) Encode ¶
func (s *CreateAgentUnauthorized) Encode(e *jx.Encoder)
Encode encodes CreateAgentUnauthorized as json.
func (*CreateAgentUnauthorized) MarshalJSON ¶
func (s *CreateAgentUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateAgentUnauthorized) UnmarshalJSON ¶
func (s *CreateAgentUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CreateEmbedTokenRequest ¶
type CreateEmbedTokenRequest struct {
AgentID string `json:"agent_id"`
// Token time-to-live.
TTLSeconds OptInt `json:"ttl_seconds"`
}
Ref: #/components/schemas/CreateEmbedTokenRequest
func (*CreateEmbedTokenRequest) Decode ¶
func (s *CreateEmbedTokenRequest) Decode(d *jx.Decoder) error
Decode decodes CreateEmbedTokenRequest from json.
func (*CreateEmbedTokenRequest) Encode ¶
func (s *CreateEmbedTokenRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CreateEmbedTokenRequest) GetAgentID ¶
func (s *CreateEmbedTokenRequest) GetAgentID() string
GetAgentID returns the value of AgentID.
func (*CreateEmbedTokenRequest) GetTTLSeconds ¶
func (s *CreateEmbedTokenRequest) GetTTLSeconds() OptInt
GetTTLSeconds returns the value of TTLSeconds.
func (*CreateEmbedTokenRequest) MarshalJSON ¶
func (s *CreateEmbedTokenRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateEmbedTokenRequest) SetAgentID ¶
func (s *CreateEmbedTokenRequest) SetAgentID(val string)
SetAgentID sets the value of AgentID.
func (*CreateEmbedTokenRequest) SetTTLSeconds ¶
func (s *CreateEmbedTokenRequest) SetTTLSeconds(val OptInt)
SetTTLSeconds sets the value of TTLSeconds.
func (*CreateEmbedTokenRequest) UnmarshalJSON ¶
func (s *CreateEmbedTokenRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CreateEmbedTokenRes ¶
type CreateEmbedTokenRes interface {
// contains filtered or unexported methods
}
type CreateSessionBadRequest ¶
type CreateSessionBadRequest Error
func (*CreateSessionBadRequest) Decode ¶
func (s *CreateSessionBadRequest) Decode(d *jx.Decoder) error
Decode decodes CreateSessionBadRequest from json.
func (*CreateSessionBadRequest) Encode ¶
func (s *CreateSessionBadRequest) Encode(e *jx.Encoder)
Encode encodes CreateSessionBadRequest as json.
func (*CreateSessionBadRequest) MarshalJSON ¶
func (s *CreateSessionBadRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateSessionBadRequest) UnmarshalJSON ¶
func (s *CreateSessionBadRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CreateSessionRequest ¶
type CreateSessionRequest struct {
// Agent to use for this session.
AgentID string `json:"agent_id"`
// Optional external LiveKit URL.
LivekitURL OptString `json:"livekit_url"`
// Optional external LiveKit token.
LivekitToken OptString `json:"livekit_token"`
}
Ref: #/components/schemas/CreateSessionRequest
func (*CreateSessionRequest) Decode ¶
func (s *CreateSessionRequest) Decode(d *jx.Decoder) error
Decode decodes CreateSessionRequest from json.
func (*CreateSessionRequest) Encode ¶
func (s *CreateSessionRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CreateSessionRequest) GetAgentID ¶
func (s *CreateSessionRequest) GetAgentID() string
GetAgentID returns the value of AgentID.
func (*CreateSessionRequest) GetLivekitToken ¶
func (s *CreateSessionRequest) GetLivekitToken() OptString
GetLivekitToken returns the value of LivekitToken.
func (*CreateSessionRequest) GetLivekitURL ¶
func (s *CreateSessionRequest) GetLivekitURL() OptString
GetLivekitURL returns the value of LivekitURL.
func (*CreateSessionRequest) MarshalJSON ¶
func (s *CreateSessionRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateSessionRequest) SetAgentID ¶
func (s *CreateSessionRequest) SetAgentID(val string)
SetAgentID sets the value of AgentID.
func (*CreateSessionRequest) SetLivekitToken ¶
func (s *CreateSessionRequest) SetLivekitToken(val OptString)
SetLivekitToken sets the value of LivekitToken.
func (*CreateSessionRequest) SetLivekitURL ¶
func (s *CreateSessionRequest) SetLivekitURL(val OptString)
SetLivekitURL sets the value of LivekitURL.
func (*CreateSessionRequest) UnmarshalJSON ¶
func (s *CreateSessionRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CreateSessionRes ¶
type CreateSessionRes interface {
// contains filtered or unexported methods
}
type CreateSessionUnauthorized ¶
type CreateSessionUnauthorized Error
func (*CreateSessionUnauthorized) Decode ¶
func (s *CreateSessionUnauthorized) Decode(d *jx.Decoder) error
Decode decodes CreateSessionUnauthorized from json.
func (*CreateSessionUnauthorized) Encode ¶
func (s *CreateSessionUnauthorized) Encode(e *jx.Encoder)
Encode encodes CreateSessionUnauthorized as json.
func (*CreateSessionUnauthorized) MarshalJSON ¶
func (s *CreateSessionUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateSessionUnauthorized) UnmarshalJSON ¶
func (s *CreateSessionUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CreateVideoBadRequest ¶
type CreateVideoBadRequest Error
func (*CreateVideoBadRequest) Decode ¶
func (s *CreateVideoBadRequest) Decode(d *jx.Decoder) error
Decode decodes CreateVideoBadRequest from json.
func (*CreateVideoBadRequest) Encode ¶
func (s *CreateVideoBadRequest) Encode(e *jx.Encoder)
Encode encodes CreateVideoBadRequest as json.
func (*CreateVideoBadRequest) MarshalJSON ¶
func (s *CreateVideoBadRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateVideoBadRequest) UnmarshalJSON ¶
func (s *CreateVideoBadRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CreateVideoRequest ¶
type CreateVideoRequest struct {
// Agent ID.
AgentID string `json:"agent_id"`
// Script text (mutually exclusive with audio_url).
Text OptString `json:"text"`
// Audio URL (mutually exclusive with text).
AudioURL OptURI `json:"audio_url"`
// Voice ID for TTS (when using text).
VoiceID OptString `json:"voice_id"`
}
Ref: #/components/schemas/CreateVideoRequest
func (*CreateVideoRequest) Decode ¶
func (s *CreateVideoRequest) Decode(d *jx.Decoder) error
Decode decodes CreateVideoRequest from json.
func (*CreateVideoRequest) Encode ¶
func (s *CreateVideoRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CreateVideoRequest) GetAgentID ¶
func (s *CreateVideoRequest) GetAgentID() string
GetAgentID returns the value of AgentID.
func (*CreateVideoRequest) GetAudioURL ¶
func (s *CreateVideoRequest) GetAudioURL() OptURI
GetAudioURL returns the value of AudioURL.
func (*CreateVideoRequest) GetText ¶
func (s *CreateVideoRequest) GetText() OptString
GetText returns the value of Text.
func (*CreateVideoRequest) GetVoiceID ¶
func (s *CreateVideoRequest) GetVoiceID() OptString
GetVoiceID returns the value of VoiceID.
func (*CreateVideoRequest) MarshalJSON ¶
func (s *CreateVideoRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateVideoRequest) SetAgentID ¶
func (s *CreateVideoRequest) SetAgentID(val string)
SetAgentID sets the value of AgentID.
func (*CreateVideoRequest) SetAudioURL ¶
func (s *CreateVideoRequest) SetAudioURL(val OptURI)
SetAudioURL sets the value of AudioURL.
func (*CreateVideoRequest) SetText ¶
func (s *CreateVideoRequest) SetText(val OptString)
SetText sets the value of Text.
func (*CreateVideoRequest) SetVoiceID ¶
func (s *CreateVideoRequest) SetVoiceID(val OptString)
SetVoiceID sets the value of VoiceID.
func (*CreateVideoRequest) UnmarshalJSON ¶
func (s *CreateVideoRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CreateVideoRes ¶
type CreateVideoRes interface {
// contains filtered or unexported methods
}
type CreateVideoUnauthorized ¶
type CreateVideoUnauthorized Error
func (*CreateVideoUnauthorized) Decode ¶
func (s *CreateVideoUnauthorized) Decode(d *jx.Decoder) error
Decode decodes CreateVideoUnauthorized from json.
func (*CreateVideoUnauthorized) Encode ¶
func (s *CreateVideoUnauthorized) Encode(e *jx.Encoder)
Encode encodes CreateVideoUnauthorized as json.
func (*CreateVideoUnauthorized) MarshalJSON ¶
func (s *CreateVideoUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateVideoUnauthorized) UnmarshalJSON ¶
func (s *CreateVideoUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CreateWebhookBadRequest ¶
type CreateWebhookBadRequest Error
func (*CreateWebhookBadRequest) Decode ¶
func (s *CreateWebhookBadRequest) Decode(d *jx.Decoder) error
Decode decodes CreateWebhookBadRequest from json.
func (*CreateWebhookBadRequest) Encode ¶
func (s *CreateWebhookBadRequest) Encode(e *jx.Encoder)
Encode encodes CreateWebhookBadRequest as json.
func (*CreateWebhookBadRequest) MarshalJSON ¶
func (s *CreateWebhookBadRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateWebhookBadRequest) UnmarshalJSON ¶
func (s *CreateWebhookBadRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CreateWebhookRequest ¶
type CreateWebhookRequest struct {
URL url.URL `json:"url"`
Events []CreateWebhookRequestEventsItem `json:"events"`
}
Ref: #/components/schemas/CreateWebhookRequest
func (*CreateWebhookRequest) Decode ¶
func (s *CreateWebhookRequest) Decode(d *jx.Decoder) error
Decode decodes CreateWebhookRequest from json.
func (*CreateWebhookRequest) Encode ¶
func (s *CreateWebhookRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CreateWebhookRequest) GetEvents ¶
func (s *CreateWebhookRequest) GetEvents() []CreateWebhookRequestEventsItem
GetEvents returns the value of Events.
func (*CreateWebhookRequest) GetURL ¶
func (s *CreateWebhookRequest) GetURL() url.URL
GetURL returns the value of URL.
func (*CreateWebhookRequest) MarshalJSON ¶
func (s *CreateWebhookRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateWebhookRequest) SetEvents ¶
func (s *CreateWebhookRequest) SetEvents(val []CreateWebhookRequestEventsItem)
SetEvents sets the value of Events.
func (*CreateWebhookRequest) SetURL ¶
func (s *CreateWebhookRequest) SetURL(val url.URL)
SetURL sets the value of URL.
func (*CreateWebhookRequest) UnmarshalJSON ¶
func (s *CreateWebhookRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CreateWebhookRequest) Validate ¶
func (s *CreateWebhookRequest) Validate() error
type CreateWebhookRequestEventsItem ¶
type CreateWebhookRequestEventsItem string
const ( CreateWebhookRequestEventsItemAgentReady CreateWebhookRequestEventsItem = "agent.ready" CreateWebhookRequestEventsItemAgentFailed CreateWebhookRequestEventsItem = "agent.failed" )
func (CreateWebhookRequestEventsItem) AllValues ¶
func (CreateWebhookRequestEventsItem) AllValues() []CreateWebhookRequestEventsItem
AllValues returns all CreateWebhookRequestEventsItem values.
func (*CreateWebhookRequestEventsItem) Decode ¶
func (s *CreateWebhookRequestEventsItem) Decode(d *jx.Decoder) error
Decode decodes CreateWebhookRequestEventsItem from json.
func (CreateWebhookRequestEventsItem) Encode ¶
func (s CreateWebhookRequestEventsItem) Encode(e *jx.Encoder)
Encode encodes CreateWebhookRequestEventsItem as json.
func (CreateWebhookRequestEventsItem) MarshalJSON ¶
func (s CreateWebhookRequestEventsItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (CreateWebhookRequestEventsItem) MarshalText ¶
func (s CreateWebhookRequestEventsItem) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*CreateWebhookRequestEventsItem) UnmarshalJSON ¶
func (s *CreateWebhookRequestEventsItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CreateWebhookRequestEventsItem) UnmarshalText ¶
func (s *CreateWebhookRequestEventsItem) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (CreateWebhookRequestEventsItem) Validate ¶
func (s CreateWebhookRequestEventsItem) Validate() error
type CreateWebhookRes ¶
type CreateWebhookRes interface {
// contains filtered or unexported methods
}
type CreateWebhookUnauthorized ¶
type CreateWebhookUnauthorized Error
func (*CreateWebhookUnauthorized) Decode ¶
func (s *CreateWebhookUnauthorized) Decode(d *jx.Decoder) error
Decode decodes CreateWebhookUnauthorized from json.
func (*CreateWebhookUnauthorized) Encode ¶
func (s *CreateWebhookUnauthorized) Encode(e *jx.Encoder)
Encode encodes CreateWebhookUnauthorized as json.
func (*CreateWebhookUnauthorized) MarshalJSON ¶
func (s *CreateWebhookUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateWebhookUnauthorized) UnmarshalJSON ¶
func (s *CreateWebhookUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type DeleteAgentNoContent ¶
type DeleteAgentNoContent struct{}
DeleteAgentNoContent is response for DeleteAgent operation.
type DeleteAgentNotFound ¶
type DeleteAgentNotFound Error
func (*DeleteAgentNotFound) Decode ¶
func (s *DeleteAgentNotFound) Decode(d *jx.Decoder) error
Decode decodes DeleteAgentNotFound from json.
func (*DeleteAgentNotFound) Encode ¶
func (s *DeleteAgentNotFound) Encode(e *jx.Encoder)
Encode encodes DeleteAgentNotFound as json.
func (*DeleteAgentNotFound) MarshalJSON ¶
func (s *DeleteAgentNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DeleteAgentNotFound) UnmarshalJSON ¶
func (s *DeleteAgentNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type DeleteAgentParams ¶
type DeleteAgentParams struct {
// Agent ID.
AgentId string
}
DeleteAgentParams is parameters of deleteAgent operation.
type DeleteAgentRes ¶
type DeleteAgentRes interface {
// contains filtered or unexported methods
}
type DeleteAgentUnauthorized ¶
type DeleteAgentUnauthorized Error
func (*DeleteAgentUnauthorized) Decode ¶
func (s *DeleteAgentUnauthorized) Decode(d *jx.Decoder) error
Decode decodes DeleteAgentUnauthorized from json.
func (*DeleteAgentUnauthorized) Encode ¶
func (s *DeleteAgentUnauthorized) Encode(e *jx.Encoder)
Encode encodes DeleteAgentUnauthorized as json.
func (*DeleteAgentUnauthorized) MarshalJSON ¶
func (s *DeleteAgentUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DeleteAgentUnauthorized) UnmarshalJSON ¶
func (s *DeleteAgentUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type DeleteWebhookNoContent ¶
type DeleteWebhookNoContent struct{}
DeleteWebhookNoContent is response for DeleteWebhook operation.
type DeleteWebhookNotFound ¶
type DeleteWebhookNotFound Error
func (*DeleteWebhookNotFound) Decode ¶
func (s *DeleteWebhookNotFound) Decode(d *jx.Decoder) error
Decode decodes DeleteWebhookNotFound from json.
func (*DeleteWebhookNotFound) Encode ¶
func (s *DeleteWebhookNotFound) Encode(e *jx.Encoder)
Encode encodes DeleteWebhookNotFound as json.
func (*DeleteWebhookNotFound) MarshalJSON ¶
func (s *DeleteWebhookNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DeleteWebhookNotFound) UnmarshalJSON ¶
func (s *DeleteWebhookNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type DeleteWebhookParams ¶
type DeleteWebhookParams struct {
// Webhook ID.
WebhookId string
}
DeleteWebhookParams is parameters of deleteWebhook operation.
type DeleteWebhookRes ¶
type DeleteWebhookRes interface {
// contains filtered or unexported methods
}
type DeleteWebhookUnauthorized ¶
type DeleteWebhookUnauthorized Error
func (*DeleteWebhookUnauthorized) Decode ¶
func (s *DeleteWebhookUnauthorized) Decode(d *jx.Decoder) error
Decode decodes DeleteWebhookUnauthorized from json.
func (*DeleteWebhookUnauthorized) Encode ¶
func (s *DeleteWebhookUnauthorized) Encode(e *jx.Encoder)
Encode encodes DeleteWebhookUnauthorized as json.
func (*DeleteWebhookUnauthorized) MarshalJSON ¶
func (s *DeleteWebhookUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DeleteWebhookUnauthorized) UnmarshalJSON ¶
func (s *DeleteWebhookUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type EmbedToken ¶
type EmbedToken struct {
Token OptString `json:"token"`
ExpiresAt OptDateTime `json:"expires_at"`
}
Ref: #/components/schemas/EmbedToken
func (*EmbedToken) Decode ¶
func (s *EmbedToken) Decode(d *jx.Decoder) error
Decode decodes EmbedToken from json.
func (*EmbedToken) Encode ¶
func (s *EmbedToken) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*EmbedToken) GetExpiresAt ¶
func (s *EmbedToken) GetExpiresAt() OptDateTime
GetExpiresAt returns the value of ExpiresAt.
func (*EmbedToken) GetToken ¶
func (s *EmbedToken) GetToken() OptString
GetToken returns the value of Token.
func (*EmbedToken) MarshalJSON ¶
func (s *EmbedToken) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EmbedToken) SetExpiresAt ¶
func (s *EmbedToken) SetExpiresAt(val OptDateTime)
SetExpiresAt sets the value of ExpiresAt.
func (*EmbedToken) SetToken ¶
func (s *EmbedToken) SetToken(val OptString)
SetToken sets the value of Token.
func (*EmbedToken) UnmarshalJSON ¶
func (s *EmbedToken) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type EndSessionNoContent ¶
type EndSessionNoContent struct{}
EndSessionNoContent is response for EndSession operation.
type EndSessionNotFound ¶
type EndSessionNotFound Error
func (*EndSessionNotFound) Decode ¶
func (s *EndSessionNotFound) Decode(d *jx.Decoder) error
Decode decodes EndSessionNotFound from json.
func (*EndSessionNotFound) Encode ¶
func (s *EndSessionNotFound) Encode(e *jx.Encoder)
Encode encodes EndSessionNotFound as json.
func (*EndSessionNotFound) MarshalJSON ¶
func (s *EndSessionNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EndSessionNotFound) UnmarshalJSON ¶
func (s *EndSessionNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type EndSessionParams ¶
type EndSessionParams struct {
// Session ID.
SessionId string
}
EndSessionParams is parameters of endSession operation.
type EndSessionRes ¶
type EndSessionRes interface {
// contains filtered or unexported methods
}
type EndSessionUnauthorized ¶
type EndSessionUnauthorized Error
func (*EndSessionUnauthorized) Decode ¶
func (s *EndSessionUnauthorized) Decode(d *jx.Decoder) error
Decode decodes EndSessionUnauthorized from json.
func (*EndSessionUnauthorized) Encode ¶
func (s *EndSessionUnauthorized) Encode(e *jx.Encoder)
Encode encodes EndSessionUnauthorized as json.
func (*EndSessionUnauthorized) MarshalJSON ¶
func (s *EndSessionUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EndSessionUnauthorized) UnmarshalJSON ¶
func (s *EndSessionUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Error ¶
type Error struct {
// Error code.
Error string `json:"error"`
// Human-readable error message.
Message string `json:"message"`
}
Ref: #/components/schemas/Error
func (*Error) GetMessage ¶
GetMessage returns the value of Message.
func (*Error) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Error) SetMessage ¶
SetMessage sets the value of Message.
func (*Error) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type File ¶
type File struct {
ID OptString `json:"id"`
URL OptURI `json:"url"`
ContentType OptString `json:"content_type"`
SizeBytes OptInt `json:"size_bytes"`
CreatedAt OptDateTime `json:"created_at"`
}
Ref: #/components/schemas/File
func (*File) GetContentType ¶
GetContentType returns the value of ContentType.
func (*File) GetCreatedAt ¶
func (s *File) GetCreatedAt() OptDateTime
GetCreatedAt returns the value of CreatedAt.
func (*File) GetSizeBytes ¶
GetSizeBytes returns the value of SizeBytes.
func (*File) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*File) SetContentType ¶
SetContentType sets the value of ContentType.
func (*File) SetCreatedAt ¶
func (s *File) SetCreatedAt(val OptDateTime)
SetCreatedAt sets the value of CreatedAt.
func (*File) SetSizeBytes ¶
SetSizeBytes sets the value of SizeBytes.
func (*File) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type GetAgentNotFound ¶
type GetAgentNotFound Error
func (*GetAgentNotFound) Decode ¶
func (s *GetAgentNotFound) Decode(d *jx.Decoder) error
Decode decodes GetAgentNotFound from json.
func (*GetAgentNotFound) Encode ¶
func (s *GetAgentNotFound) Encode(e *jx.Encoder)
Encode encodes GetAgentNotFound as json.
func (*GetAgentNotFound) MarshalJSON ¶
func (s *GetAgentNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetAgentNotFound) UnmarshalJSON ¶
func (s *GetAgentNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetAgentParams ¶
type GetAgentParams struct {
// Agent ID.
AgentId string
}
GetAgentParams is parameters of getAgent operation.
type GetAgentRes ¶
type GetAgentRes interface {
// contains filtered or unexported methods
}
type GetAgentUnauthorized ¶
type GetAgentUnauthorized Error
func (*GetAgentUnauthorized) Decode ¶
func (s *GetAgentUnauthorized) Decode(d *jx.Decoder) error
Decode decodes GetAgentUnauthorized from json.
func (*GetAgentUnauthorized) Encode ¶
func (s *GetAgentUnauthorized) Encode(e *jx.Encoder)
Encode encodes GetAgentUnauthorized as json.
func (*GetAgentUnauthorized) MarshalJSON ¶
func (s *GetAgentUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetAgentUnauthorized) UnmarshalJSON ¶
func (s *GetAgentUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetBalanceRes ¶
type GetBalanceRes interface {
// contains filtered or unexported methods
}
type GetSessionNotFound ¶
type GetSessionNotFound Error
func (*GetSessionNotFound) Decode ¶
func (s *GetSessionNotFound) Decode(d *jx.Decoder) error
Decode decodes GetSessionNotFound from json.
func (*GetSessionNotFound) Encode ¶
func (s *GetSessionNotFound) Encode(e *jx.Encoder)
Encode encodes GetSessionNotFound as json.
func (*GetSessionNotFound) MarshalJSON ¶
func (s *GetSessionNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetSessionNotFound) UnmarshalJSON ¶
func (s *GetSessionNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetSessionParams ¶
type GetSessionParams struct {
// Session ID.
SessionId string
}
GetSessionParams is parameters of getSession operation.
type GetSessionRes ¶
type GetSessionRes interface {
// contains filtered or unexported methods
}
type GetSessionUnauthorized ¶
type GetSessionUnauthorized Error
func (*GetSessionUnauthorized) Decode ¶
func (s *GetSessionUnauthorized) Decode(d *jx.Decoder) error
Decode decodes GetSessionUnauthorized from json.
func (*GetSessionUnauthorized) Encode ¶
func (s *GetSessionUnauthorized) Encode(e *jx.Encoder)
Encode encodes GetSessionUnauthorized as json.
func (*GetSessionUnauthorized) MarshalJSON ¶
func (s *GetSessionUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetSessionUnauthorized) UnmarshalJSON ¶
func (s *GetSessionUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetVideoNotFound ¶
type GetVideoNotFound Error
func (*GetVideoNotFound) Decode ¶
func (s *GetVideoNotFound) Decode(d *jx.Decoder) error
Decode decodes GetVideoNotFound from json.
func (*GetVideoNotFound) Encode ¶
func (s *GetVideoNotFound) Encode(e *jx.Encoder)
Encode encodes GetVideoNotFound as json.
func (*GetVideoNotFound) MarshalJSON ¶
func (s *GetVideoNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetVideoNotFound) UnmarshalJSON ¶
func (s *GetVideoNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetVideoParams ¶
type GetVideoParams struct {
// Video job ID.
VideoId string
}
GetVideoParams is parameters of getVideo operation.
type GetVideoRes ¶
type GetVideoRes interface {
// contains filtered or unexported methods
}
type GetVideoUnauthorized ¶
type GetVideoUnauthorized Error
func (*GetVideoUnauthorized) Decode ¶
func (s *GetVideoUnauthorized) Decode(d *jx.Decoder) error
Decode decodes GetVideoUnauthorized from json.
func (*GetVideoUnauthorized) Encode ¶
func (s *GetVideoUnauthorized) Encode(e *jx.Encoder)
Encode encodes GetVideoUnauthorized as json.
func (*GetVideoUnauthorized) MarshalJSON ¶
func (s *GetVideoUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetVideoUnauthorized) UnmarshalJSON ¶
func (s *GetVideoUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Handler ¶
type Handler interface {
// CreateAgent implements createAgent operation.
//
// Generate a new avatar agent from a text prompt with optional image/audio.
// Returns immediately with agent ID; use GET /v1/agents/{id} to poll status.
//
// POST /v1/agents
CreateAgent(ctx context.Context, req *CreateAgentRequest) (CreateAgentRes, error)
// CreateEmbedToken implements createEmbedToken operation.
//
// Mint a short-lived JWT for embedding avatar in websites.
//
// POST /v1/embed/token
CreateEmbedToken(ctx context.Context, req *CreateEmbedTokenRequest) (CreateEmbedTokenRes, error)
// CreateSession implements createSession operation.
//
// Create a new real-time conversation session with an agent.
// Returns connection details for WebRTC/LiveKit.
//
// POST /v1/sessions
CreateSession(ctx context.Context, req *CreateSessionRequest) (CreateSessionRes, error)
// CreateVideo implements createVideo operation.
//
// Generate an MP4 talking video from text or audio.
// This is an async operation; poll GET /v1/videos/{id} for status.
//
// POST /v1/videos
CreateVideo(ctx context.Context, req *CreateVideoRequest) (CreateVideoRes, error)
// CreateWebhook implements createWebhook operation.
//
// Create webhook.
//
// POST /v1/webhooks
CreateWebhook(ctx context.Context, req *CreateWebhookRequest) (CreateWebhookRes, error)
// DeleteAgent implements deleteAgent operation.
//
// Delete agent.
//
// DELETE /v1/agents/{agentId}
DeleteAgent(ctx context.Context, params DeleteAgentParams) (DeleteAgentRes, error)
// DeleteWebhook implements deleteWebhook operation.
//
// Delete webhook.
//
// DELETE /v1/webhooks/{webhookId}
DeleteWebhook(ctx context.Context, params DeleteWebhookParams) (DeleteWebhookRes, error)
// EndSession implements endSession operation.
//
// End a session.
//
// DELETE /v1/sessions/{sessionId}
EndSession(ctx context.Context, params EndSessionParams) (EndSessionRes, error)
// GetAgent implements getAgent operation.
//
// Get agent details.
//
// GET /v1/agents/{agentId}
GetAgent(ctx context.Context, params GetAgentParams) (GetAgentRes, error)
// GetBalance implements getBalance operation.
//
// Get account balance.
//
// GET /v1/billing/balance
GetBalance(ctx context.Context) (GetBalanceRes, error)
// GetSession implements getSession operation.
//
// Get session details.
//
// GET /v1/sessions/{sessionId}
GetSession(ctx context.Context, params GetSessionParams) (GetSessionRes, error)
// GetVideo implements getVideo operation.
//
// Get video job status.
//
// GET /v1/videos/{videoId}
GetVideo(ctx context.Context, params GetVideoParams) (GetVideoRes, error)
// ListAgents implements listAgents operation.
//
// List all agents.
//
// GET /v1/agents
ListAgents(ctx context.Context, params ListAgentsParams) (ListAgentsRes, error)
// ListVoices implements listVoices operation.
//
// List available voices.
//
// GET /v1/voices
ListVoices(ctx context.Context) (ListVoicesRes, error)
// ListWebhooks implements listWebhooks operation.
//
// List webhooks.
//
// GET /v1/webhooks
ListWebhooks(ctx context.Context) (ListWebhooksRes, error)
// Speak implements speak operation.
//
// Send text for the agent to speak with lip-sync.
//
// POST /v1/agents/{agentId}/speak
Speak(ctx context.Context, req *SpeakRequest, params SpeakParams) (SpeakRes, error)
// TextToSpeech implements textToSpeech operation.
//
// Convert text to audio using bitHuman TTS.
//
// POST /v1/tts
TextToSpeech(ctx context.Context, req *TTSRequest) (TextToSpeechRes, error)
// UpdateAgent implements updateAgent operation.
//
// Update agent.
//
// PATCH /v1/agents/{agentId}
UpdateAgent(ctx context.Context, req *UpdateAgentRequest, params UpdateAgentParams) (UpdateAgentRes, error)
// UploadFile implements uploadFile operation.
//
// Upload images, video, audio, or documents.
//
// POST /v1/files
UploadFile(ctx context.Context, req *UploadFileRequest) (UploadFileRes, error)
// Validate implements validate operation.
//
// Cheapest way to verify API key is valid.
//
// POST /v1/validate
Validate(ctx context.Context) (ValidateRes, error)
}
Handler handles operations described by OpenAPI v3 specification.
type Invoker ¶
type Invoker interface {
// CreateAgent invokes createAgent operation.
//
// Generate a new avatar agent from a text prompt with optional image/audio.
// Returns immediately with agent ID; use GET /v1/agents/{id} to poll status.
//
// POST /v1/agents
CreateAgent(ctx context.Context, request *CreateAgentRequest) (CreateAgentRes, error)
// CreateEmbedToken invokes createEmbedToken operation.
//
// Mint a short-lived JWT for embedding avatar in websites.
//
// POST /v1/embed/token
CreateEmbedToken(ctx context.Context, request *CreateEmbedTokenRequest) (CreateEmbedTokenRes, error)
// CreateSession invokes createSession operation.
//
// Create a new real-time conversation session with an agent.
// Returns connection details for WebRTC/LiveKit.
//
// POST /v1/sessions
CreateSession(ctx context.Context, request *CreateSessionRequest) (CreateSessionRes, error)
// CreateVideo invokes createVideo operation.
//
// Generate an MP4 talking video from text or audio.
// This is an async operation; poll GET /v1/videos/{id} for status.
//
// POST /v1/videos
CreateVideo(ctx context.Context, request *CreateVideoRequest) (CreateVideoRes, error)
// CreateWebhook invokes createWebhook operation.
//
// Create webhook.
//
// POST /v1/webhooks
CreateWebhook(ctx context.Context, request *CreateWebhookRequest) (CreateWebhookRes, error)
// DeleteAgent invokes deleteAgent operation.
//
// Delete agent.
//
// DELETE /v1/agents/{agentId}
DeleteAgent(ctx context.Context, params DeleteAgentParams) (DeleteAgentRes, error)
// DeleteWebhook invokes deleteWebhook operation.
//
// Delete webhook.
//
// DELETE /v1/webhooks/{webhookId}
DeleteWebhook(ctx context.Context, params DeleteWebhookParams) (DeleteWebhookRes, error)
// EndSession invokes endSession operation.
//
// End a session.
//
// DELETE /v1/sessions/{sessionId}
EndSession(ctx context.Context, params EndSessionParams) (EndSessionRes, error)
// GetAgent invokes getAgent operation.
//
// Get agent details.
//
// GET /v1/agents/{agentId}
GetAgent(ctx context.Context, params GetAgentParams) (GetAgentRes, error)
// GetBalance invokes getBalance operation.
//
// Get account balance.
//
// GET /v1/billing/balance
GetBalance(ctx context.Context) (GetBalanceRes, error)
// GetSession invokes getSession operation.
//
// Get session details.
//
// GET /v1/sessions/{sessionId}
GetSession(ctx context.Context, params GetSessionParams) (GetSessionRes, error)
// GetVideo invokes getVideo operation.
//
// Get video job status.
//
// GET /v1/videos/{videoId}
GetVideo(ctx context.Context, params GetVideoParams) (GetVideoRes, error)
// ListAgents invokes listAgents operation.
//
// List all agents.
//
// GET /v1/agents
ListAgents(ctx context.Context, params ListAgentsParams) (ListAgentsRes, error)
// ListVoices invokes listVoices operation.
//
// List available voices.
//
// GET /v1/voices
ListVoices(ctx context.Context) (ListVoicesRes, error)
// ListWebhooks invokes listWebhooks operation.
//
// List webhooks.
//
// GET /v1/webhooks
ListWebhooks(ctx context.Context) (ListWebhooksRes, error)
// Speak invokes speak operation.
//
// Send text for the agent to speak with lip-sync.
//
// POST /v1/agents/{agentId}/speak
Speak(ctx context.Context, request *SpeakRequest, params SpeakParams) (SpeakRes, error)
// TextToSpeech invokes textToSpeech operation.
//
// Convert text to audio using bitHuman TTS.
//
// POST /v1/tts
TextToSpeech(ctx context.Context, request *TTSRequest) (TextToSpeechRes, error)
// UpdateAgent invokes updateAgent operation.
//
// Update agent.
//
// PATCH /v1/agents/{agentId}
UpdateAgent(ctx context.Context, request *UpdateAgentRequest, params UpdateAgentParams) (UpdateAgentRes, error)
// UploadFile invokes uploadFile operation.
//
// Upload images, video, audio, or documents.
//
// POST /v1/files
UploadFile(ctx context.Context, request *UploadFileRequest) (UploadFileRes, error)
// Validate invokes validate operation.
//
// Cheapest way to verify API key is valid.
//
// POST /v1/validate
Validate(ctx context.Context) (ValidateRes, error)
}
Invoker invokes operations described by OpenAPI v3 specification.
type Labeler ¶
type Labeler struct {
// contains filtered or unexported fields
}
Labeler is used to allow adding custom attributes to the server request metrics.
func LabelerFromContext ¶
LabelerFromContext retrieves the Labeler from the provided context, if present.
If no Labeler was found in the provided context a new, empty Labeler is returned and the second return value is false. In this case it is safe to use the Labeler but any attributes added to it will not be used.
func (*Labeler) AttributeSet ¶
AttributeSet returns the attributes added to the Labeler as an attribute.Set.
type ListAgentsParams ¶
type ListAgentsParams struct {
// Maximum number of items to return.
Limit OptInt `json:",omitempty,omitzero"`
// Number of items to skip.
Offset OptInt `json:",omitempty,omitzero"`
}
ListAgentsParams is parameters of listAgents operation.
type ListAgentsRes ¶
type ListAgentsRes interface {
// contains filtered or unexported methods
}
type ListVoicesRes ¶
type ListVoicesRes interface {
// contains filtered or unexported methods
}
type ListWebhooksRes ¶
type ListWebhooksRes interface {
// contains filtered or unexported methods
}
type OperationName ¶
type OperationName = string
OperationName is the ogen operation name
const ( CreateAgentOperation OperationName = "CreateAgent" CreateEmbedTokenOperation OperationName = "CreateEmbedToken" CreateSessionOperation OperationName = "CreateSession" CreateVideoOperation OperationName = "CreateVideo" CreateWebhookOperation OperationName = "CreateWebhook" DeleteAgentOperation OperationName = "DeleteAgent" DeleteWebhookOperation OperationName = "DeleteWebhook" EndSessionOperation OperationName = "EndSession" GetAgentOperation OperationName = "GetAgent" GetBalanceOperation OperationName = "GetBalance" GetSessionOperation OperationName = "GetSession" GetVideoOperation OperationName = "GetVideo" ListAgentsOperation OperationName = "ListAgents" ListVoicesOperation OperationName = "ListVoices" ListWebhooksOperation OperationName = "ListWebhooks" SpeakOperation OperationName = "Speak" TextToSpeechOperation OperationName = "TextToSpeech" UpdateAgentOperation OperationName = "UpdateAgent" UploadFileOperation OperationName = "UploadFile" ValidateOperation OperationName = "Validate" )
type OptAgentModelType ¶
type OptAgentModelType struct {
Value AgentModelType
Set bool
}
OptAgentModelType is optional AgentModelType.
func NewOptAgentModelType ¶
func NewOptAgentModelType(v AgentModelType) OptAgentModelType
NewOptAgentModelType returns new OptAgentModelType with value set to v.
func (*OptAgentModelType) Decode ¶
func (o *OptAgentModelType) Decode(d *jx.Decoder) error
Decode decodes AgentModelType from json.
func (OptAgentModelType) Encode ¶
func (o OptAgentModelType) Encode(e *jx.Encoder)
Encode encodes AgentModelType as json.
func (OptAgentModelType) Get ¶
func (o OptAgentModelType) Get() (v AgentModelType, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptAgentModelType) IsSet ¶
func (o OptAgentModelType) IsSet() bool
IsSet returns true if OptAgentModelType was set.
func (OptAgentModelType) MarshalJSON ¶
func (s OptAgentModelType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptAgentModelType) Or ¶
func (o OptAgentModelType) Or(d AgentModelType) AgentModelType
Or returns value if set, or given parameter if does not.
func (*OptAgentModelType) SetTo ¶
func (o *OptAgentModelType) SetTo(v AgentModelType)
SetTo sets value to v.
func (*OptAgentModelType) UnmarshalJSON ¶
func (s *OptAgentModelType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptBalanceMinutesEstimate ¶
type OptBalanceMinutesEstimate struct {
Value BalanceMinutesEstimate
Set bool
}
OptBalanceMinutesEstimate is optional BalanceMinutesEstimate.
func NewOptBalanceMinutesEstimate ¶
func NewOptBalanceMinutesEstimate(v BalanceMinutesEstimate) OptBalanceMinutesEstimate
NewOptBalanceMinutesEstimate returns new OptBalanceMinutesEstimate with value set to v.
func (*OptBalanceMinutesEstimate) Decode ¶
func (o *OptBalanceMinutesEstimate) Decode(d *jx.Decoder) error
Decode decodes BalanceMinutesEstimate from json.
func (OptBalanceMinutesEstimate) Encode ¶
func (o OptBalanceMinutesEstimate) Encode(e *jx.Encoder)
Encode encodes BalanceMinutesEstimate as json.
func (OptBalanceMinutesEstimate) Get ¶
func (o OptBalanceMinutesEstimate) Get() (v BalanceMinutesEstimate, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptBalanceMinutesEstimate) IsSet ¶
func (o OptBalanceMinutesEstimate) IsSet() bool
IsSet returns true if OptBalanceMinutesEstimate was set.
func (OptBalanceMinutesEstimate) MarshalJSON ¶
func (s OptBalanceMinutesEstimate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptBalanceMinutesEstimate) Reset ¶
func (o *OptBalanceMinutesEstimate) Reset()
Reset unsets value.
func (*OptBalanceMinutesEstimate) SetTo ¶
func (o *OptBalanceMinutesEstimate) SetTo(v BalanceMinutesEstimate)
SetTo sets value to v.
func (*OptBalanceMinutesEstimate) UnmarshalJSON ¶
func (s *OptBalanceMinutesEstimate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptBool ¶
OptBool is optional bool.
func NewOptBool ¶
NewOptBool returns new OptBool with value set to v.
func (OptBool) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptBool) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptCreateAgentRequestModelType ¶
type OptCreateAgentRequestModelType struct {
Value CreateAgentRequestModelType
Set bool
}
OptCreateAgentRequestModelType is optional CreateAgentRequestModelType.
func NewOptCreateAgentRequestModelType ¶
func NewOptCreateAgentRequestModelType(v CreateAgentRequestModelType) OptCreateAgentRequestModelType
NewOptCreateAgentRequestModelType returns new OptCreateAgentRequestModelType with value set to v.
func (*OptCreateAgentRequestModelType) Decode ¶
func (o *OptCreateAgentRequestModelType) Decode(d *jx.Decoder) error
Decode decodes CreateAgentRequestModelType from json.
func (OptCreateAgentRequestModelType) Encode ¶
func (o OptCreateAgentRequestModelType) Encode(e *jx.Encoder)
Encode encodes CreateAgentRequestModelType as json.
func (OptCreateAgentRequestModelType) Get ¶
func (o OptCreateAgentRequestModelType) Get() (v CreateAgentRequestModelType, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptCreateAgentRequestModelType) IsSet ¶
func (o OptCreateAgentRequestModelType) IsSet() bool
IsSet returns true if OptCreateAgentRequestModelType was set.
func (OptCreateAgentRequestModelType) MarshalJSON ¶
func (s OptCreateAgentRequestModelType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptCreateAgentRequestModelType) Or ¶
func (o OptCreateAgentRequestModelType) Or(d CreateAgentRequestModelType) CreateAgentRequestModelType
Or returns value if set, or given parameter if does not.
func (*OptCreateAgentRequestModelType) Reset ¶
func (o *OptCreateAgentRequestModelType) Reset()
Reset unsets value.
func (*OptCreateAgentRequestModelType) SetTo ¶
func (o *OptCreateAgentRequestModelType) SetTo(v CreateAgentRequestModelType)
SetTo sets value to v.
func (*OptCreateAgentRequestModelType) UnmarshalJSON ¶
func (s *OptCreateAgentRequestModelType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptDateTime ¶
OptDateTime is optional time.Time.
func NewOptDateTime ¶
func NewOptDateTime(v time.Time) OptDateTime
NewOptDateTime returns new OptDateTime with value set to v.
func (OptDateTime) Get ¶
func (o OptDateTime) Get() (v time.Time, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptDateTime) IsSet ¶
func (o OptDateTime) IsSet() bool
IsSet returns true if OptDateTime was set.
func (OptDateTime) MarshalJSON ¶
func (s OptDateTime) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptDateTime) Or ¶
func (o OptDateTime) Or(d time.Time) time.Time
Or returns value if set, or given parameter if does not.
func (*OptDateTime) UnmarshalJSON ¶
func (s *OptDateTime) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptFloat64 ¶
OptFloat64 is optional float64.
func NewOptFloat64 ¶
func NewOptFloat64(v float64) OptFloat64
NewOptFloat64 returns new OptFloat64 with value set to v.
func (*OptFloat64) Decode ¶
func (o *OptFloat64) Decode(d *jx.Decoder) error
Decode decodes float64 from json.
func (OptFloat64) Encode ¶
func (o OptFloat64) Encode(e *jx.Encoder)
Encode encodes float64 as json.
func (OptFloat64) Get ¶
func (o OptFloat64) Get() (v float64, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFloat64) IsSet ¶
func (o OptFloat64) IsSet() bool
IsSet returns true if OptFloat64 was set.
func (OptFloat64) MarshalJSON ¶
func (s OptFloat64) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptFloat64) Or ¶
func (o OptFloat64) Or(d float64) float64
Or returns value if set, or given parameter if does not.
func (*OptFloat64) UnmarshalJSON ¶
func (s *OptFloat64) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInt ¶
OptInt is optional int.
func (OptInt) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
func (OptString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptString) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptURI ¶
OptURI is optional url.URL.
func (OptURI) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptURI) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptVoiceGender ¶
type OptVoiceGender struct {
Value VoiceGender
Set bool
}
OptVoiceGender is optional VoiceGender.
func NewOptVoiceGender ¶
func NewOptVoiceGender(v VoiceGender) OptVoiceGender
NewOptVoiceGender returns new OptVoiceGender with value set to v.
func (*OptVoiceGender) Decode ¶
func (o *OptVoiceGender) Decode(d *jx.Decoder) error
Decode decodes VoiceGender from json.
func (OptVoiceGender) Encode ¶
func (o OptVoiceGender) Encode(e *jx.Encoder)
Encode encodes VoiceGender as json.
func (OptVoiceGender) Get ¶
func (o OptVoiceGender) Get() (v VoiceGender, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptVoiceGender) IsSet ¶
func (o OptVoiceGender) IsSet() bool
IsSet returns true if OptVoiceGender was set.
func (OptVoiceGender) MarshalJSON ¶
func (s OptVoiceGender) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptVoiceGender) Or ¶
func (o OptVoiceGender) Or(d VoiceGender) VoiceGender
Or returns value if set, or given parameter if does not.
func (*OptVoiceGender) UnmarshalJSON ¶
func (s *OptVoiceGender) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Option ¶
type Option interface {
ServerOption
ClientOption
}
Option is config option.
func WithAttributes ¶
WithAttributes specifies default otel attributes.
func WithMeterProvider ¶
func WithMeterProvider(provider metric.MeterProvider) Option
WithMeterProvider specifies a meter provider to use for creating a meter.
If none is specified, the otel.GetMeterProvider() is used.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider specifies a tracer provider to use for creating a tracer.
If none is specified, the global provider is used.
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route is route object.
func (Route) OperationGroup ¶
OperationGroup returns the x-ogen-operation-group value.
func (Route) OperationID ¶
OperationID returns OpenAPI operationId.
type SecurityHandler ¶
type SecurityHandler interface {
// HandleApiSecret handles apiSecret security.
// API secret key from Developer → API Keys.
HandleApiSecret(ctx context.Context, operationName OperationName, t ApiSecret) (context.Context, error)
}
SecurityHandler is handler for security parameters.
type SecuritySource ¶
type SecuritySource interface {
// ApiSecret provides apiSecret security value.
// API secret key from Developer → API Keys.
ApiSecret(ctx context.Context, operationName OperationName) (ApiSecret, error)
}
SecuritySource is provider of security values (tokens, passwords, etc.).
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.
func NewServer ¶
func NewServer(h Handler, sec SecurityHandler, opts ...ServerOption) (*Server, error)
NewServer creates new Server.
type ServerOption ¶
type ServerOption interface {
// contains filtered or unexported methods
}
ServerOption is server config option.
func WithErrorHandler ¶
func WithErrorHandler(h ErrorHandler) ServerOption
WithErrorHandler specifies error handler to use.
func WithMaxMultipartMemory ¶
func WithMaxMultipartMemory(max int64) ServerOption
WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.
func WithMethodNotAllowed ¶
func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
WithMethodNotAllowed specifies Method Not Allowed handler to use.
func WithMiddleware ¶
func WithMiddleware(m ...Middleware) ServerOption
WithMiddleware specifies middlewares to use.
func WithNotFound ¶
func WithNotFound(notFound http.HandlerFunc) ServerOption
WithNotFound specifies Not Found handler to use.
func WithPathPrefix ¶
func WithPathPrefix(prefix string) ServerOption
WithPathPrefix specifies server path prefix.
type Session ¶
type Session struct {
// Session ID.
ID string `json:"id"`
// Agent ID.
AgentID string `json:"agent_id"`
Status SessionStatus `json:"status"`
// LiveKit WebSocket URL.
LivekitURL OptString `json:"livekit_url"`
// LiveKit JWT token.
LivekitToken OptString `json:"livekit_token"`
CreatedAt OptDateTime `json:"created_at"`
}
Ref: #/components/schemas/Session
func (*Session) GetAgentID ¶
GetAgentID returns the value of AgentID.
func (*Session) GetCreatedAt ¶
func (s *Session) GetCreatedAt() OptDateTime
GetCreatedAt returns the value of CreatedAt.
func (*Session) GetLivekitToken ¶
GetLivekitToken returns the value of LivekitToken.
func (*Session) GetLivekitURL ¶
GetLivekitURL returns the value of LivekitURL.
func (*Session) GetStatus ¶
func (s *Session) GetStatus() SessionStatus
GetStatus returns the value of Status.
func (*Session) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Session) SetAgentID ¶
SetAgentID sets the value of AgentID.
func (*Session) SetCreatedAt ¶
func (s *Session) SetCreatedAt(val OptDateTime)
SetCreatedAt sets the value of CreatedAt.
func (*Session) SetLivekitToken ¶
SetLivekitToken sets the value of LivekitToken.
func (*Session) SetLivekitURL ¶
SetLivekitURL sets the value of LivekitURL.
func (*Session) SetStatus ¶
func (s *Session) SetStatus(val SessionStatus)
SetStatus sets the value of Status.
func (*Session) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionStatus ¶
type SessionStatus string
const ( SessionStatusActive SessionStatus = "active" SessionStatusEnded SessionStatus = "ended" )
func (SessionStatus) AllValues ¶
func (SessionStatus) AllValues() []SessionStatus
AllValues returns all SessionStatus values.
func (*SessionStatus) Decode ¶
func (s *SessionStatus) Decode(d *jx.Decoder) error
Decode decodes SessionStatus from json.
func (SessionStatus) Encode ¶
func (s SessionStatus) Encode(e *jx.Encoder)
Encode encodes SessionStatus as json.
func (SessionStatus) MarshalJSON ¶
func (s SessionStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (SessionStatus) MarshalText ¶
func (s SessionStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*SessionStatus) UnmarshalJSON ¶
func (s *SessionStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SessionStatus) UnmarshalText ¶
func (s *SessionStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (SessionStatus) Validate ¶
func (s SessionStatus) Validate() error
type SpeakNotFound ¶
type SpeakNotFound Error
func (*SpeakNotFound) Decode ¶
func (s *SpeakNotFound) Decode(d *jx.Decoder) error
Decode decodes SpeakNotFound from json.
func (*SpeakNotFound) Encode ¶
func (s *SpeakNotFound) Encode(e *jx.Encoder)
Encode encodes SpeakNotFound as json.
func (*SpeakNotFound) MarshalJSON ¶
func (s *SpeakNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SpeakNotFound) UnmarshalJSON ¶
func (s *SpeakNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SpeakParams ¶
type SpeakParams struct {
// Agent ID.
AgentId string
}
SpeakParams is parameters of speak operation.
type SpeakRequest ¶
type SpeakRequest struct {
// Text for the agent to speak.
Text string `json:"text"`
// Voice to use (optional).
VoiceID OptString `json:"voice_id"`
}
Ref: #/components/schemas/SpeakRequest
func (*SpeakRequest) Decode ¶
func (s *SpeakRequest) Decode(d *jx.Decoder) error
Decode decodes SpeakRequest from json.
func (*SpeakRequest) Encode ¶
func (s *SpeakRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SpeakRequest) GetText ¶
func (s *SpeakRequest) GetText() string
GetText returns the value of Text.
func (*SpeakRequest) GetVoiceID ¶
func (s *SpeakRequest) GetVoiceID() OptString
GetVoiceID returns the value of VoiceID.
func (*SpeakRequest) MarshalJSON ¶
func (s *SpeakRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SpeakRequest) SetText ¶
func (s *SpeakRequest) SetText(val string)
SetText sets the value of Text.
func (*SpeakRequest) SetVoiceID ¶
func (s *SpeakRequest) SetVoiceID(val OptString)
SetVoiceID sets the value of VoiceID.
func (*SpeakRequest) UnmarshalJSON ¶
func (s *SpeakRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SpeakResponse ¶
type SpeakResponse struct {
Success OptBool `json:"success"`
// Estimated speech duration.
DurationMs OptInt `json:"duration_ms"`
}
Ref: #/components/schemas/SpeakResponse
func (*SpeakResponse) Decode ¶
func (s *SpeakResponse) Decode(d *jx.Decoder) error
Decode decodes SpeakResponse from json.
func (*SpeakResponse) Encode ¶
func (s *SpeakResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SpeakResponse) GetDurationMs ¶
func (s *SpeakResponse) GetDurationMs() OptInt
GetDurationMs returns the value of DurationMs.
func (*SpeakResponse) GetSuccess ¶
func (s *SpeakResponse) GetSuccess() OptBool
GetSuccess returns the value of Success.
func (*SpeakResponse) MarshalJSON ¶
func (s *SpeakResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SpeakResponse) SetDurationMs ¶
func (s *SpeakResponse) SetDurationMs(val OptInt)
SetDurationMs sets the value of DurationMs.
func (*SpeakResponse) SetSuccess ¶
func (s *SpeakResponse) SetSuccess(val OptBool)
SetSuccess sets the value of Success.
func (*SpeakResponse) UnmarshalJSON ¶
func (s *SpeakResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SpeakUnauthorized ¶
type SpeakUnauthorized Error
func (*SpeakUnauthorized) Decode ¶
func (s *SpeakUnauthorized) Decode(d *jx.Decoder) error
Decode decodes SpeakUnauthorized from json.
func (*SpeakUnauthorized) Encode ¶
func (s *SpeakUnauthorized) Encode(e *jx.Encoder)
Encode encodes SpeakUnauthorized as json.
func (*SpeakUnauthorized) MarshalJSON ¶
func (s *SpeakUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SpeakUnauthorized) UnmarshalJSON ¶
func (s *SpeakUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type TTSRequest ¶
type TTSRequest struct {
// Text to synthesize.
Text string `json:"text"`
// Voice ID (M1-M5, F1-F5).
VoiceID OptString `json:"voice_id"`
// Language code (e.g., en, es, fr).
Language OptString `json:"language"`
}
Ref: #/components/schemas/TTSRequest
func (*TTSRequest) Decode ¶
func (s *TTSRequest) Decode(d *jx.Decoder) error
Decode decodes TTSRequest from json.
func (*TTSRequest) Encode ¶
func (s *TTSRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*TTSRequest) GetLanguage ¶
func (s *TTSRequest) GetLanguage() OptString
GetLanguage returns the value of Language.
func (*TTSRequest) GetText ¶
func (s *TTSRequest) GetText() string
GetText returns the value of Text.
func (*TTSRequest) GetVoiceID ¶
func (s *TTSRequest) GetVoiceID() OptString
GetVoiceID returns the value of VoiceID.
func (*TTSRequest) MarshalJSON ¶
func (s *TTSRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*TTSRequest) SetLanguage ¶
func (s *TTSRequest) SetLanguage(val OptString)
SetLanguage sets the value of Language.
func (*TTSRequest) SetText ¶
func (s *TTSRequest) SetText(val string)
SetText sets the value of Text.
func (*TTSRequest) SetVoiceID ¶
func (s *TTSRequest) SetVoiceID(val OptString)
SetVoiceID sets the value of VoiceID.
func (*TTSRequest) UnmarshalJSON ¶
func (s *TTSRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type TextToSpeechBadRequest ¶
type TextToSpeechBadRequest Error
func (*TextToSpeechBadRequest) Decode ¶
func (s *TextToSpeechBadRequest) Decode(d *jx.Decoder) error
Decode decodes TextToSpeechBadRequest from json.
func (*TextToSpeechBadRequest) Encode ¶
func (s *TextToSpeechBadRequest) Encode(e *jx.Encoder)
Encode encodes TextToSpeechBadRequest as json.
func (*TextToSpeechBadRequest) MarshalJSON ¶
func (s *TextToSpeechBadRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*TextToSpeechBadRequest) UnmarshalJSON ¶
func (s *TextToSpeechBadRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type TextToSpeechOK ¶
type TextToSpeechRes ¶
type TextToSpeechRes interface {
// contains filtered or unexported methods
}
type TextToSpeechUnauthorized ¶
type TextToSpeechUnauthorized Error
func (*TextToSpeechUnauthorized) Decode ¶
func (s *TextToSpeechUnauthorized) Decode(d *jx.Decoder) error
Decode decodes TextToSpeechUnauthorized from json.
func (*TextToSpeechUnauthorized) Encode ¶
func (s *TextToSpeechUnauthorized) Encode(e *jx.Encoder)
Encode encodes TextToSpeechUnauthorized as json.
func (*TextToSpeechUnauthorized) MarshalJSON ¶
func (s *TextToSpeechUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*TextToSpeechUnauthorized) UnmarshalJSON ¶
func (s *TextToSpeechUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UnimplementedHandler ¶
type UnimplementedHandler struct{}
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
func (UnimplementedHandler) CreateAgent ¶
func (UnimplementedHandler) CreateAgent(ctx context.Context, req *CreateAgentRequest) (r CreateAgentRes, _ error)
CreateAgent implements createAgent operation.
Generate a new avatar agent from a text prompt with optional image/audio. Returns immediately with agent ID; use GET /v1/agents/{id} to poll status.
POST /v1/agents
func (UnimplementedHandler) CreateEmbedToken ¶
func (UnimplementedHandler) CreateEmbedToken(ctx context.Context, req *CreateEmbedTokenRequest) (r CreateEmbedTokenRes, _ error)
CreateEmbedToken implements createEmbedToken operation.
Mint a short-lived JWT for embedding avatar in websites.
POST /v1/embed/token
func (UnimplementedHandler) CreateSession ¶
func (UnimplementedHandler) CreateSession(ctx context.Context, req *CreateSessionRequest) (r CreateSessionRes, _ error)
CreateSession implements createSession operation.
Create a new real-time conversation session with an agent. Returns connection details for WebRTC/LiveKit.
POST /v1/sessions
func (UnimplementedHandler) CreateVideo ¶
func (UnimplementedHandler) CreateVideo(ctx context.Context, req *CreateVideoRequest) (r CreateVideoRes, _ error)
CreateVideo implements createVideo operation.
Generate an MP4 talking video from text or audio. This is an async operation; poll GET /v1/videos/{id} for status.
POST /v1/videos
func (UnimplementedHandler) CreateWebhook ¶
func (UnimplementedHandler) CreateWebhook(ctx context.Context, req *CreateWebhookRequest) (r CreateWebhookRes, _ error)
CreateWebhook implements createWebhook operation.
Create webhook.
POST /v1/webhooks
func (UnimplementedHandler) DeleteAgent ¶
func (UnimplementedHandler) DeleteAgent(ctx context.Context, params DeleteAgentParams) (r DeleteAgentRes, _ error)
DeleteAgent implements deleteAgent operation.
Delete agent.
DELETE /v1/agents/{agentId}
func (UnimplementedHandler) DeleteWebhook ¶
func (UnimplementedHandler) DeleteWebhook(ctx context.Context, params DeleteWebhookParams) (r DeleteWebhookRes, _ error)
DeleteWebhook implements deleteWebhook operation.
Delete webhook.
DELETE /v1/webhooks/{webhookId}
func (UnimplementedHandler) EndSession ¶
func (UnimplementedHandler) EndSession(ctx context.Context, params EndSessionParams) (r EndSessionRes, _ error)
EndSession implements endSession operation.
End a session.
DELETE /v1/sessions/{sessionId}
func (UnimplementedHandler) GetAgent ¶
func (UnimplementedHandler) GetAgent(ctx context.Context, params GetAgentParams) (r GetAgentRes, _ error)
GetAgent implements getAgent operation.
Get agent details.
GET /v1/agents/{agentId}
func (UnimplementedHandler) GetBalance ¶
func (UnimplementedHandler) GetBalance(ctx context.Context) (r GetBalanceRes, _ error)
GetBalance implements getBalance operation.
Get account balance.
GET /v1/billing/balance
func (UnimplementedHandler) GetSession ¶
func (UnimplementedHandler) GetSession(ctx context.Context, params GetSessionParams) (r GetSessionRes, _ error)
GetSession implements getSession operation.
Get session details.
GET /v1/sessions/{sessionId}
func (UnimplementedHandler) GetVideo ¶
func (UnimplementedHandler) GetVideo(ctx context.Context, params GetVideoParams) (r GetVideoRes, _ error)
GetVideo implements getVideo operation.
Get video job status.
GET /v1/videos/{videoId}
func (UnimplementedHandler) ListAgents ¶
func (UnimplementedHandler) ListAgents(ctx context.Context, params ListAgentsParams) (r ListAgentsRes, _ error)
ListAgents implements listAgents operation.
List all agents.
GET /v1/agents
func (UnimplementedHandler) ListVoices ¶
func (UnimplementedHandler) ListVoices(ctx context.Context) (r ListVoicesRes, _ error)
ListVoices implements listVoices operation.
List available voices.
GET /v1/voices
func (UnimplementedHandler) ListWebhooks ¶
func (UnimplementedHandler) ListWebhooks(ctx context.Context) (r ListWebhooksRes, _ error)
ListWebhooks implements listWebhooks operation.
List webhooks.
GET /v1/webhooks
func (UnimplementedHandler) Speak ¶
func (UnimplementedHandler) Speak(ctx context.Context, req *SpeakRequest, params SpeakParams) (r SpeakRes, _ error)
Speak implements speak operation.
Send text for the agent to speak with lip-sync.
POST /v1/agents/{agentId}/speak
func (UnimplementedHandler) TextToSpeech ¶
func (UnimplementedHandler) TextToSpeech(ctx context.Context, req *TTSRequest) (r TextToSpeechRes, _ error)
TextToSpeech implements textToSpeech operation.
Convert text to audio using bitHuman TTS.
POST /v1/tts
func (UnimplementedHandler) UpdateAgent ¶
func (UnimplementedHandler) UpdateAgent(ctx context.Context, req *UpdateAgentRequest, params UpdateAgentParams) (r UpdateAgentRes, _ error)
UpdateAgent implements updateAgent operation.
Update agent.
PATCH /v1/agents/{agentId}
func (UnimplementedHandler) UploadFile ¶
func (UnimplementedHandler) UploadFile(ctx context.Context, req *UploadFileRequest) (r UploadFileRes, _ error)
UploadFile implements uploadFile operation.
Upload images, video, audio, or documents.
POST /v1/files
func (UnimplementedHandler) Validate ¶
func (UnimplementedHandler) Validate(ctx context.Context) (r ValidateRes, _ error)
Validate implements validate operation.
Cheapest way to verify API key is valid.
POST /v1/validate
type UpdateAgentNotFound ¶
type UpdateAgentNotFound Error
func (*UpdateAgentNotFound) Decode ¶
func (s *UpdateAgentNotFound) Decode(d *jx.Decoder) error
Decode decodes UpdateAgentNotFound from json.
func (*UpdateAgentNotFound) Encode ¶
func (s *UpdateAgentNotFound) Encode(e *jx.Encoder)
Encode encodes UpdateAgentNotFound as json.
func (*UpdateAgentNotFound) MarshalJSON ¶
func (s *UpdateAgentNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UpdateAgentNotFound) UnmarshalJSON ¶
func (s *UpdateAgentNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UpdateAgentParams ¶
type UpdateAgentParams struct {
// Agent ID.
AgentId string
}
UpdateAgentParams is parameters of updateAgent operation.
type UpdateAgentRequest ¶
Ref: #/components/schemas/UpdateAgentRequest
func (*UpdateAgentRequest) Decode ¶
func (s *UpdateAgentRequest) Decode(d *jx.Decoder) error
Decode decodes UpdateAgentRequest from json.
func (*UpdateAgentRequest) Encode ¶
func (s *UpdateAgentRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UpdateAgentRequest) GetName ¶
func (s *UpdateAgentRequest) GetName() OptString
GetName returns the value of Name.
func (*UpdateAgentRequest) GetPrompt ¶
func (s *UpdateAgentRequest) GetPrompt() OptString
GetPrompt returns the value of Prompt.
func (*UpdateAgentRequest) MarshalJSON ¶
func (s *UpdateAgentRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UpdateAgentRequest) SetName ¶
func (s *UpdateAgentRequest) SetName(val OptString)
SetName sets the value of Name.
func (*UpdateAgentRequest) SetPrompt ¶
func (s *UpdateAgentRequest) SetPrompt(val OptString)
SetPrompt sets the value of Prompt.
func (*UpdateAgentRequest) UnmarshalJSON ¶
func (s *UpdateAgentRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UpdateAgentRes ¶
type UpdateAgentRes interface {
// contains filtered or unexported methods
}
type UpdateAgentUnauthorized ¶
type UpdateAgentUnauthorized Error
func (*UpdateAgentUnauthorized) Decode ¶
func (s *UpdateAgentUnauthorized) Decode(d *jx.Decoder) error
Decode decodes UpdateAgentUnauthorized from json.
func (*UpdateAgentUnauthorized) Encode ¶
func (s *UpdateAgentUnauthorized) Encode(e *jx.Encoder)
Encode encodes UpdateAgentUnauthorized as json.
func (*UpdateAgentUnauthorized) MarshalJSON ¶
func (s *UpdateAgentUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UpdateAgentUnauthorized) UnmarshalJSON ¶
func (s *UpdateAgentUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UploadFileBadRequest ¶
type UploadFileBadRequest Error
func (*UploadFileBadRequest) Decode ¶
func (s *UploadFileBadRequest) Decode(d *jx.Decoder) error
Decode decodes UploadFileBadRequest from json.
func (*UploadFileBadRequest) Encode ¶
func (s *UploadFileBadRequest) Encode(e *jx.Encoder)
Encode encodes UploadFileBadRequest as json.
func (*UploadFileBadRequest) MarshalJSON ¶
func (s *UploadFileBadRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UploadFileBadRequest) UnmarshalJSON ¶
func (s *UploadFileBadRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UploadFileRequest ¶
type UploadFileRequest struct {
// URL to download file from.
URL OptURI `json:"url"`
// File content as base64.
Base64 OptString `json:"base64"`
// Original filename.
Filename OptString `json:"filename"`
// MIME type.
ContentType OptString `json:"content_type"`
}
Ref: #/components/schemas/UploadFileRequest
func (*UploadFileRequest) Decode ¶
func (s *UploadFileRequest) Decode(d *jx.Decoder) error
Decode decodes UploadFileRequest from json.
func (*UploadFileRequest) Encode ¶
func (s *UploadFileRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UploadFileRequest) GetBase64 ¶
func (s *UploadFileRequest) GetBase64() OptString
GetBase64 returns the value of Base64.
func (*UploadFileRequest) GetContentType ¶
func (s *UploadFileRequest) GetContentType() OptString
GetContentType returns the value of ContentType.
func (*UploadFileRequest) GetFilename ¶
func (s *UploadFileRequest) GetFilename() OptString
GetFilename returns the value of Filename.
func (*UploadFileRequest) GetURL ¶
func (s *UploadFileRequest) GetURL() OptURI
GetURL returns the value of URL.
func (*UploadFileRequest) MarshalJSON ¶
func (s *UploadFileRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UploadFileRequest) SetBase64 ¶
func (s *UploadFileRequest) SetBase64(val OptString)
SetBase64 sets the value of Base64.
func (*UploadFileRequest) SetContentType ¶
func (s *UploadFileRequest) SetContentType(val OptString)
SetContentType sets the value of ContentType.
func (*UploadFileRequest) SetFilename ¶
func (s *UploadFileRequest) SetFilename(val OptString)
SetFilename sets the value of Filename.
func (*UploadFileRequest) SetURL ¶
func (s *UploadFileRequest) SetURL(val OptURI)
SetURL sets the value of URL.
func (*UploadFileRequest) UnmarshalJSON ¶
func (s *UploadFileRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UploadFileRes ¶
type UploadFileRes interface {
// contains filtered or unexported methods
}
type UploadFileUnauthorized ¶
type UploadFileUnauthorized Error
func (*UploadFileUnauthorized) Decode ¶
func (s *UploadFileUnauthorized) Decode(d *jx.Decoder) error
Decode decodes UploadFileUnauthorized from json.
func (*UploadFileUnauthorized) Encode ¶
func (s *UploadFileUnauthorized) Encode(e *jx.Encoder)
Encode encodes UploadFileUnauthorized as json.
func (*UploadFileUnauthorized) MarshalJSON ¶
func (s *UploadFileUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UploadFileUnauthorized) UnmarshalJSON ¶
func (s *UploadFileUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ValidateRes ¶
type ValidateRes interface {
// contains filtered or unexported methods
}
type ValidateResponse ¶
type ValidateResponse struct {
Valid OptBool `json:"valid"`
AccountID OptString `json:"account_id"`
}
Ref: #/components/schemas/ValidateResponse
func (*ValidateResponse) Decode ¶
func (s *ValidateResponse) Decode(d *jx.Decoder) error
Decode decodes ValidateResponse from json.
func (*ValidateResponse) Encode ¶
func (s *ValidateResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ValidateResponse) GetAccountID ¶
func (s *ValidateResponse) GetAccountID() OptString
GetAccountID returns the value of AccountID.
func (*ValidateResponse) GetValid ¶
func (s *ValidateResponse) GetValid() OptBool
GetValid returns the value of Valid.
func (*ValidateResponse) MarshalJSON ¶
func (s *ValidateResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ValidateResponse) SetAccountID ¶
func (s *ValidateResponse) SetAccountID(val OptString)
SetAccountID sets the value of AccountID.
func (*ValidateResponse) SetValid ¶
func (s *ValidateResponse) SetValid(val OptBool)
SetValid sets the value of Valid.
func (*ValidateResponse) UnmarshalJSON ¶
func (s *ValidateResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type VideoJob ¶
type VideoJob struct {
ID string `json:"id"`
AgentID OptString `json:"agent_id"`
Status VideoJobStatus `json:"status"`
// Download URL (when completed).
VideoURL OptURI `json:"video_url"`
DurationSeconds OptFloat64 `json:"duration_seconds"`
// Error message (when failed).
Error OptString `json:"error"`
CreatedAt OptDateTime `json:"created_at"`
}
Ref: #/components/schemas/VideoJob
func (*VideoJob) GetAgentID ¶
GetAgentID returns the value of AgentID.
func (*VideoJob) GetCreatedAt ¶
func (s *VideoJob) GetCreatedAt() OptDateTime
GetCreatedAt returns the value of CreatedAt.
func (*VideoJob) GetDurationSeconds ¶
func (s *VideoJob) GetDurationSeconds() OptFloat64
GetDurationSeconds returns the value of DurationSeconds.
func (*VideoJob) GetStatus ¶
func (s *VideoJob) GetStatus() VideoJobStatus
GetStatus returns the value of Status.
func (*VideoJob) GetVideoURL ¶
GetVideoURL returns the value of VideoURL.
func (*VideoJob) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*VideoJob) SetAgentID ¶
SetAgentID sets the value of AgentID.
func (*VideoJob) SetCreatedAt ¶
func (s *VideoJob) SetCreatedAt(val OptDateTime)
SetCreatedAt sets the value of CreatedAt.
func (*VideoJob) SetDurationSeconds ¶
func (s *VideoJob) SetDurationSeconds(val OptFloat64)
SetDurationSeconds sets the value of DurationSeconds.
func (*VideoJob) SetStatus ¶
func (s *VideoJob) SetStatus(val VideoJobStatus)
SetStatus sets the value of Status.
func (*VideoJob) SetVideoURL ¶
SetVideoURL sets the value of VideoURL.
func (*VideoJob) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type VideoJobStatus ¶
type VideoJobStatus string
const ( VideoJobStatusPending VideoJobStatus = "pending" VideoJobStatusProcessing VideoJobStatus = "processing" VideoJobStatusCompleted VideoJobStatus = "completed" VideoJobStatusFailed VideoJobStatus = "failed" )
func (VideoJobStatus) AllValues ¶
func (VideoJobStatus) AllValues() []VideoJobStatus
AllValues returns all VideoJobStatus values.
func (*VideoJobStatus) Decode ¶
func (s *VideoJobStatus) Decode(d *jx.Decoder) error
Decode decodes VideoJobStatus from json.
func (VideoJobStatus) Encode ¶
func (s VideoJobStatus) Encode(e *jx.Encoder)
Encode encodes VideoJobStatus as json.
func (VideoJobStatus) MarshalJSON ¶
func (s VideoJobStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (VideoJobStatus) MarshalText ¶
func (s VideoJobStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*VideoJobStatus) UnmarshalJSON ¶
func (s *VideoJobStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*VideoJobStatus) UnmarshalText ¶
func (s *VideoJobStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (VideoJobStatus) Validate ¶
func (s VideoJobStatus) Validate() error
type Voice ¶
type Voice struct {
ID OptString `json:"id"`
Name OptString `json:"name"`
Gender OptVoiceGender `json:"gender"`
Language OptString `json:"language"`
PreviewURL OptURI `json:"preview_url"`
}
Ref: #/components/schemas/Voice
func (*Voice) GetGender ¶
func (s *Voice) GetGender() OptVoiceGender
GetGender returns the value of Gender.
func (*Voice) GetLanguage ¶
GetLanguage returns the value of Language.
func (*Voice) GetPreviewURL ¶
GetPreviewURL returns the value of PreviewURL.
func (*Voice) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Voice) SetGender ¶
func (s *Voice) SetGender(val OptVoiceGender)
SetGender sets the value of Gender.
func (*Voice) SetLanguage ¶
SetLanguage sets the value of Language.
func (*Voice) SetPreviewURL ¶
SetPreviewURL sets the value of PreviewURL.
func (*Voice) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type VoiceGender ¶
type VoiceGender string
const ( VoiceGenderMale VoiceGender = "male" VoiceGenderFemale VoiceGender = "female" )
func (VoiceGender) AllValues ¶
func (VoiceGender) AllValues() []VoiceGender
AllValues returns all VoiceGender values.
func (*VoiceGender) Decode ¶
func (s *VoiceGender) Decode(d *jx.Decoder) error
Decode decodes VoiceGender from json.
func (VoiceGender) Encode ¶
func (s VoiceGender) Encode(e *jx.Encoder)
Encode encodes VoiceGender as json.
func (VoiceGender) MarshalJSON ¶
func (s VoiceGender) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (VoiceGender) MarshalText ¶
func (s VoiceGender) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*VoiceGender) UnmarshalJSON ¶
func (s *VoiceGender) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*VoiceGender) UnmarshalText ¶
func (s *VoiceGender) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (VoiceGender) Validate ¶
func (s VoiceGender) Validate() error
type VoiceList ¶
type VoiceList struct {
Voices []Voice `json:"voices"`
}
Ref: #/components/schemas/VoiceList
func (*VoiceList) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*VoiceList) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Webhook ¶
type Webhook struct {
ID OptString `json:"id"`
URL OptURI `json:"url"`
Events []WebhookEventsItem `json:"events"`
// Signing secret.
Secret OptString `json:"secret"`
CreatedAt OptDateTime `json:"created_at"`
}
Ref: #/components/schemas/Webhook
func (*Webhook) GetCreatedAt ¶
func (s *Webhook) GetCreatedAt() OptDateTime
GetCreatedAt returns the value of CreatedAt.
func (*Webhook) GetEvents ¶
func (s *Webhook) GetEvents() []WebhookEventsItem
GetEvents returns the value of Events.
func (*Webhook) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Webhook) SetCreatedAt ¶
func (s *Webhook) SetCreatedAt(val OptDateTime)
SetCreatedAt sets the value of CreatedAt.
func (*Webhook) SetEvents ¶
func (s *Webhook) SetEvents(val []WebhookEventsItem)
SetEvents sets the value of Events.
func (*Webhook) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type WebhookEventsItem ¶
type WebhookEventsItem string
const ( WebhookEventsItemAgentReady WebhookEventsItem = "agent.ready" WebhookEventsItemAgentFailed WebhookEventsItem = "agent.failed" )
func (WebhookEventsItem) AllValues ¶
func (WebhookEventsItem) AllValues() []WebhookEventsItem
AllValues returns all WebhookEventsItem values.
func (*WebhookEventsItem) Decode ¶
func (s *WebhookEventsItem) Decode(d *jx.Decoder) error
Decode decodes WebhookEventsItem from json.
func (WebhookEventsItem) Encode ¶
func (s WebhookEventsItem) Encode(e *jx.Encoder)
Encode encodes WebhookEventsItem as json.
func (WebhookEventsItem) MarshalJSON ¶
func (s WebhookEventsItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (WebhookEventsItem) MarshalText ¶
func (s WebhookEventsItem) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*WebhookEventsItem) UnmarshalJSON ¶
func (s *WebhookEventsItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*WebhookEventsItem) UnmarshalText ¶
func (s *WebhookEventsItem) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (WebhookEventsItem) Validate ¶
func (s WebhookEventsItem) Validate() error
type WebhookList ¶
type WebhookList struct {
Webhooks []Webhook `json:"webhooks"`
}
Ref: #/components/schemas/WebhookList
func (*WebhookList) Decode ¶
func (s *WebhookList) Decode(d *jx.Decoder) error
Decode decodes WebhookList from json.
func (*WebhookList) Encode ¶
func (s *WebhookList) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*WebhookList) GetWebhooks ¶
func (s *WebhookList) GetWebhooks() []Webhook
GetWebhooks returns the value of Webhooks.
func (*WebhookList) MarshalJSON ¶
func (s *WebhookList) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*WebhookList) SetWebhooks ¶
func (s *WebhookList) SetWebhooks(val []Webhook)
SetWebhooks sets the value of Webhooks.
func (*WebhookList) UnmarshalJSON ¶
func (s *WebhookList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*WebhookList) Validate ¶
func (s *WebhookList) Validate() error
Source Files
¶
- oas_cfg_gen.go
- oas_client_gen.go
- oas_defaults_gen.go
- oas_handlers_gen.go
- oas_interfaces_gen.go
- oas_json_gen.go
- oas_labeler_gen.go
- oas_middleware_gen.go
- oas_operations_gen.go
- oas_parameters_gen.go
- oas_request_decoders_gen.go
- oas_request_encoders_gen.go
- oas_response_decoders_gen.go
- oas_response_encoders_gen.go
- oas_router_gen.go
- oas_schemas_gen.go
- oas_security_gen.go
- oas_server_gen.go
- oas_unimplemented_gen.go
- oas_validators_gen.go