mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-08 19:38:51 +01:00
dbacae8a99
A bunch of the Wave AI types still mentioned OpenAI. Now that most of them are being used for multiple AI backends, we need to update the names to be more generic.
448 lines
19 KiB
Go
448 lines
19 KiB
Go
// Copyright 2024, Command Line Inc.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// Generated Code. DO NOT EDIT.
|
|
|
|
package wshclient
|
|
|
|
import (
|
|
"github.com/wavetermdev/waveterm/pkg/wshutil"
|
|
"github.com/wavetermdev/waveterm/pkg/wshrpc"
|
|
"github.com/wavetermdev/waveterm/pkg/waveobj"
|
|
"github.com/wavetermdev/waveterm/pkg/wps"
|
|
"github.com/wavetermdev/waveterm/pkg/vdom"
|
|
)
|
|
|
|
// command "activity", wshserver.ActivityCommand
|
|
func ActivityCommand(w *wshutil.WshRpc, data wshrpc.ActivityUpdate, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "activity", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "aisendmessage", wshserver.AiSendMessageCommand
|
|
func AiSendMessageCommand(w *wshutil.WshRpc, data wshrpc.AiMessageData, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "aisendmessage", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "authenticate", wshserver.AuthenticateCommand
|
|
func AuthenticateCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) (wshrpc.CommandAuthenticateRtnData, error) {
|
|
resp, err := sendRpcRequestCallHelper[wshrpc.CommandAuthenticateRtnData](w, "authenticate", data, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "blockinfo", wshserver.BlockInfoCommand
|
|
func BlockInfoCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) (*wshrpc.BlockInfoData, error) {
|
|
resp, err := sendRpcRequestCallHelper[*wshrpc.BlockInfoData](w, "blockinfo", data, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "connconnect", wshserver.ConnConnectCommand
|
|
func ConnConnectCommand(w *wshutil.WshRpc, data wshrpc.ConnRequest, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "connconnect", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "conndisconnect", wshserver.ConnDisconnectCommand
|
|
func ConnDisconnectCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "conndisconnect", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "connensure", wshserver.ConnEnsureCommand
|
|
func ConnEnsureCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "connensure", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "connlist", wshserver.ConnListCommand
|
|
func ConnListCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) ([]string, error) {
|
|
resp, err := sendRpcRequestCallHelper[[]string](w, "connlist", nil, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "connreinstallwsh", wshserver.ConnReinstallWshCommand
|
|
func ConnReinstallWshCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "connreinstallwsh", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "connstatus", wshserver.ConnStatusCommand
|
|
func ConnStatusCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) ([]wshrpc.ConnStatus, error) {
|
|
resp, err := sendRpcRequestCallHelper[[]wshrpc.ConnStatus](w, "connstatus", nil, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "controllerinput", wshserver.ControllerInputCommand
|
|
func ControllerInputCommand(w *wshutil.WshRpc, data wshrpc.CommandBlockInputData, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "controllerinput", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "controllerresync", wshserver.ControllerResyncCommand
|
|
func ControllerResyncCommand(w *wshutil.WshRpc, data wshrpc.CommandControllerResyncData, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "controllerresync", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "controllerstop", wshserver.ControllerStopCommand
|
|
func ControllerStopCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "controllerstop", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "createblock", wshserver.CreateBlockCommand
|
|
func CreateBlockCommand(w *wshutil.WshRpc, data wshrpc.CommandCreateBlockData, opts *wshrpc.RpcOpts) (waveobj.ORef, error) {
|
|
resp, err := sendRpcRequestCallHelper[waveobj.ORef](w, "createblock", data, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "createsubblock", wshserver.CreateSubBlockCommand
|
|
func CreateSubBlockCommand(w *wshutil.WshRpc, data wshrpc.CommandCreateSubBlockData, opts *wshrpc.RpcOpts) (waveobj.ORef, error) {
|
|
resp, err := sendRpcRequestCallHelper[waveobj.ORef](w, "createsubblock", data, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "deleteblock", wshserver.DeleteBlockCommand
|
|
func DeleteBlockCommand(w *wshutil.WshRpc, data wshrpc.CommandDeleteBlockData, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "deleteblock", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "deletesubblock", wshserver.DeleteSubBlockCommand
|
|
func DeleteSubBlockCommand(w *wshutil.WshRpc, data wshrpc.CommandDeleteBlockData, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "deletesubblock", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "dismisswshfail", wshserver.DismissWshFailCommand
|
|
func DismissWshFailCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "dismisswshfail", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "dispose", wshserver.DisposeCommand
|
|
func DisposeCommand(w *wshutil.WshRpc, data wshrpc.CommandDisposeData, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "dispose", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "eventpublish", wshserver.EventPublishCommand
|
|
func EventPublishCommand(w *wshutil.WshRpc, data wps.WaveEvent, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "eventpublish", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "eventreadhistory", wshserver.EventReadHistoryCommand
|
|
func EventReadHistoryCommand(w *wshutil.WshRpc, data wshrpc.CommandEventReadHistoryData, opts *wshrpc.RpcOpts) ([]*wps.WaveEvent, error) {
|
|
resp, err := sendRpcRequestCallHelper[[]*wps.WaveEvent](w, "eventreadhistory", data, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "eventrecv", wshserver.EventRecvCommand
|
|
func EventRecvCommand(w *wshutil.WshRpc, data wps.WaveEvent, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "eventrecv", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "eventsub", wshserver.EventSubCommand
|
|
func EventSubCommand(w *wshutil.WshRpc, data wps.SubscriptionRequest, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "eventsub", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "eventunsub", wshserver.EventUnsubCommand
|
|
func EventUnsubCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "eventunsub", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "eventunsuball", wshserver.EventUnsubAllCommand
|
|
func EventUnsubAllCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "eventunsuball", nil, opts)
|
|
return err
|
|
}
|
|
|
|
// command "fileappend", wshserver.FileAppendCommand
|
|
func FileAppendCommand(w *wshutil.WshRpc, data wshrpc.CommandFileData, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "fileappend", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "fileappendijson", wshserver.FileAppendIJsonCommand
|
|
func FileAppendIJsonCommand(w *wshutil.WshRpc, data wshrpc.CommandAppendIJsonData, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "fileappendijson", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "filecreate", wshserver.FileCreateCommand
|
|
func FileCreateCommand(w *wshutil.WshRpc, data wshrpc.CommandFileCreateData, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "filecreate", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "filedelete", wshserver.FileDeleteCommand
|
|
func FileDeleteCommand(w *wshutil.WshRpc, data wshrpc.CommandFileData, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "filedelete", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "fileinfo", wshserver.FileInfoCommand
|
|
func FileInfoCommand(w *wshutil.WshRpc, data wshrpc.CommandFileData, opts *wshrpc.RpcOpts) (*wshrpc.WaveFileInfo, error) {
|
|
resp, err := sendRpcRequestCallHelper[*wshrpc.WaveFileInfo](w, "fileinfo", data, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "filelist", wshserver.FileListCommand
|
|
func FileListCommand(w *wshutil.WshRpc, data wshrpc.CommandFileListData, opts *wshrpc.RpcOpts) ([]*wshrpc.WaveFileInfo, error) {
|
|
resp, err := sendRpcRequestCallHelper[[]*wshrpc.WaveFileInfo](w, "filelist", data, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "fileread", wshserver.FileReadCommand
|
|
func FileReadCommand(w *wshutil.WshRpc, data wshrpc.CommandFileData, opts *wshrpc.RpcOpts) (string, error) {
|
|
resp, err := sendRpcRequestCallHelper[string](w, "fileread", data, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "filewrite", wshserver.FileWriteCommand
|
|
func FileWriteCommand(w *wshutil.WshRpc, data wshrpc.CommandFileData, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "filewrite", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "focuswindow", wshserver.FocusWindowCommand
|
|
func FocusWindowCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "focuswindow", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "getmeta", wshserver.GetMetaCommand
|
|
func GetMetaCommand(w *wshutil.WshRpc, data wshrpc.CommandGetMetaData, opts *wshrpc.RpcOpts) (waveobj.MetaMapType, error) {
|
|
resp, err := sendRpcRequestCallHelper[waveobj.MetaMapType](w, "getmeta", data, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "getupdatechannel", wshserver.GetUpdateChannelCommand
|
|
func GetUpdateChannelCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) (string, error) {
|
|
resp, err := sendRpcRequestCallHelper[string](w, "getupdatechannel", nil, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "getvar", wshserver.GetVarCommand
|
|
func GetVarCommand(w *wshutil.WshRpc, data wshrpc.CommandVarData, opts *wshrpc.RpcOpts) (*wshrpc.CommandVarResponseData, error) {
|
|
resp, err := sendRpcRequestCallHelper[*wshrpc.CommandVarResponseData](w, "getvar", data, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "message", wshserver.MessageCommand
|
|
func MessageCommand(w *wshutil.WshRpc, data wshrpc.CommandMessageData, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "message", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "notify", wshserver.NotifyCommand
|
|
func NotifyCommand(w *wshutil.WshRpc, data wshrpc.WaveNotificationOptions, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "notify", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "path", wshserver.PathCommand
|
|
func PathCommand(w *wshutil.WshRpc, data wshrpc.PathCommandData, opts *wshrpc.RpcOpts) (string, error) {
|
|
resp, err := sendRpcRequestCallHelper[string](w, "path", data, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "remotefiledelete", wshserver.RemoteFileDeleteCommand
|
|
func RemoteFileDeleteCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "remotefiledelete", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "remotefileinfo", wshserver.RemoteFileInfoCommand
|
|
func RemoteFileInfoCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) (*wshrpc.FileInfo, error) {
|
|
resp, err := sendRpcRequestCallHelper[*wshrpc.FileInfo](w, "remotefileinfo", data, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "remotefilejoin", wshserver.RemoteFileJoinCommand
|
|
func RemoteFileJoinCommand(w *wshutil.WshRpc, data []string, opts *wshrpc.RpcOpts) (*wshrpc.FileInfo, error) {
|
|
resp, err := sendRpcRequestCallHelper[*wshrpc.FileInfo](w, "remotefilejoin", data, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "remotefilerename", wshserver.RemoteFileRenameCommand
|
|
func RemoteFileRenameCommand(w *wshutil.WshRpc, data [2]string, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "remotefilerename", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "remotefiletouch", wshserver.RemoteFileTouchCommand
|
|
func RemoteFileTouchCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "remotefiletouch", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "remotemkdir", wshserver.RemoteMkdirCommand
|
|
func RemoteMkdirCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "remotemkdir", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "remotestreamcpudata", wshserver.RemoteStreamCpuDataCommand
|
|
func RemoteStreamCpuDataCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) chan wshrpc.RespOrErrorUnion[wshrpc.TimeSeriesData] {
|
|
return sendRpcRequestResponseStreamHelper[wshrpc.TimeSeriesData](w, "remotestreamcpudata", nil, opts)
|
|
}
|
|
|
|
// command "remotestreamfile", wshserver.RemoteStreamFileCommand
|
|
func RemoteStreamFileCommand(w *wshutil.WshRpc, data wshrpc.CommandRemoteStreamFileData, opts *wshrpc.RpcOpts) chan wshrpc.RespOrErrorUnion[wshrpc.CommandRemoteStreamFileRtnData] {
|
|
return sendRpcRequestResponseStreamHelper[wshrpc.CommandRemoteStreamFileRtnData](w, "remotestreamfile", data, opts)
|
|
}
|
|
|
|
// command "remotewritefile", wshserver.RemoteWriteFileCommand
|
|
func RemoteWriteFileCommand(w *wshutil.WshRpc, data wshrpc.CommandRemoteWriteFileData, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "remotewritefile", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "resolveids", wshserver.ResolveIdsCommand
|
|
func ResolveIdsCommand(w *wshutil.WshRpc, data wshrpc.CommandResolveIdsData, opts *wshrpc.RpcOpts) (wshrpc.CommandResolveIdsRtnData, error) {
|
|
resp, err := sendRpcRequestCallHelper[wshrpc.CommandResolveIdsRtnData](w, "resolveids", data, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "routeannounce", wshserver.RouteAnnounceCommand
|
|
func RouteAnnounceCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "routeannounce", nil, opts)
|
|
return err
|
|
}
|
|
|
|
// command "routeunannounce", wshserver.RouteUnannounceCommand
|
|
func RouteUnannounceCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "routeunannounce", nil, opts)
|
|
return err
|
|
}
|
|
|
|
// command "setconfig", wshserver.SetConfigCommand
|
|
func SetConfigCommand(w *wshutil.WshRpc, data wshrpc.MetaSettingsType, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "setconfig", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "setconnectionsconfig", wshserver.SetConnectionsConfigCommand
|
|
func SetConnectionsConfigCommand(w *wshutil.WshRpc, data wshrpc.ConnConfigRequest, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "setconnectionsconfig", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "setmeta", wshserver.SetMetaCommand
|
|
func SetMetaCommand(w *wshutil.WshRpc, data wshrpc.CommandSetMetaData, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "setmeta", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "setvar", wshserver.SetVarCommand
|
|
func SetVarCommand(w *wshutil.WshRpc, data wshrpc.CommandVarData, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "setvar", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "setview", wshserver.SetViewCommand
|
|
func SetViewCommand(w *wshutil.WshRpc, data wshrpc.CommandBlockSetViewData, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "setview", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "streamcpudata", wshserver.StreamCpuDataCommand
|
|
func StreamCpuDataCommand(w *wshutil.WshRpc, data wshrpc.CpuDataRequest, opts *wshrpc.RpcOpts) chan wshrpc.RespOrErrorUnion[wshrpc.TimeSeriesData] {
|
|
return sendRpcRequestResponseStreamHelper[wshrpc.TimeSeriesData](w, "streamcpudata", data, opts)
|
|
}
|
|
|
|
// command "streamtest", wshserver.StreamTestCommand
|
|
func StreamTestCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) chan wshrpc.RespOrErrorUnion[int] {
|
|
return sendRpcRequestResponseStreamHelper[int](w, "streamtest", nil, opts)
|
|
}
|
|
|
|
// command "streamwaveai", wshserver.StreamWaveAiCommand
|
|
func StreamWaveAiCommand(w *wshutil.WshRpc, data wshrpc.WaveAIStreamRequest, opts *wshrpc.RpcOpts) chan wshrpc.RespOrErrorUnion[wshrpc.WaveAIPacketType] {
|
|
return sendRpcRequestResponseStreamHelper[wshrpc.WaveAIPacketType](w, "streamwaveai", data, opts)
|
|
}
|
|
|
|
// command "test", wshserver.TestCommand
|
|
func TestCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "test", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "vdomasyncinitiation", wshserver.VDomAsyncInitiationCommand
|
|
func VDomAsyncInitiationCommand(w *wshutil.WshRpc, data vdom.VDomAsyncInitiationRequest, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "vdomasyncinitiation", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "vdomcreatecontext", wshserver.VDomCreateContextCommand
|
|
func VDomCreateContextCommand(w *wshutil.WshRpc, data vdom.VDomCreateContext, opts *wshrpc.RpcOpts) (*waveobj.ORef, error) {
|
|
resp, err := sendRpcRequestCallHelper[*waveobj.ORef](w, "vdomcreatecontext", data, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "vdomrender", wshserver.VDomRenderCommand
|
|
func VDomRenderCommand(w *wshutil.WshRpc, data vdom.VDomFrontendUpdate, opts *wshrpc.RpcOpts) chan wshrpc.RespOrErrorUnion[*vdom.VDomBackendUpdate] {
|
|
return sendRpcRequestResponseStreamHelper[*vdom.VDomBackendUpdate](w, "vdomrender", data, opts)
|
|
}
|
|
|
|
// command "vdomurlrequest", wshserver.VDomUrlRequestCommand
|
|
func VDomUrlRequestCommand(w *wshutil.WshRpc, data wshrpc.VDomUrlRequestData, opts *wshrpc.RpcOpts) chan wshrpc.RespOrErrorUnion[wshrpc.VDomUrlRequestResponse] {
|
|
return sendRpcRequestResponseStreamHelper[wshrpc.VDomUrlRequestResponse](w, "vdomurlrequest", data, opts)
|
|
}
|
|
|
|
// command "waitforroute", wshserver.WaitForRouteCommand
|
|
func WaitForRouteCommand(w *wshutil.WshRpc, data wshrpc.CommandWaitForRouteData, opts *wshrpc.RpcOpts) (bool, error) {
|
|
resp, err := sendRpcRequestCallHelper[bool](w, "waitforroute", data, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "waveinfo", wshserver.WaveInfoCommand
|
|
func WaveInfoCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) (*wshrpc.WaveInfoData, error) {
|
|
resp, err := sendRpcRequestCallHelper[*wshrpc.WaveInfoData](w, "waveinfo", nil, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "webselector", wshserver.WebSelectorCommand
|
|
func WebSelectorCommand(w *wshutil.WshRpc, data wshrpc.CommandWebSelectorData, opts *wshrpc.RpcOpts) ([]string, error) {
|
|
resp, err := sendRpcRequestCallHelper[[]string](w, "webselector", data, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "workspacelist", wshserver.WorkspaceListCommand
|
|
func WorkspaceListCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) ([]wshrpc.WorkspaceInfoData, error) {
|
|
resp, err := sendRpcRequestCallHelper[[]wshrpc.WorkspaceInfoData](w, "workspacelist", nil, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "wshactivity", wshserver.WshActivityCommand
|
|
func WshActivityCommand(w *wshutil.WshRpc, data map[string]int, opts *wshrpc.RpcOpts) error {
|
|
_, err := sendRpcRequestCallHelper[any](w, "wshactivity", data, opts)
|
|
return err
|
|
}
|
|
|
|
// command "wsldefaultdistro", wshserver.WslDefaultDistroCommand
|
|
func WslDefaultDistroCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) (string, error) {
|
|
resp, err := sendRpcRequestCallHelper[string](w, "wsldefaultdistro", nil, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "wsllist", wshserver.WslListCommand
|
|
func WslListCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) ([]string, error) {
|
|
resp, err := sendRpcRequestCallHelper[[]string](w, "wsllist", nil, opts)
|
|
return resp, err
|
|
}
|
|
|
|
// command "wslstatus", wshserver.WslStatusCommand
|
|
func WslStatusCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) ([]wshrpc.ConnStatus, error) {
|
|
resp, err := sendRpcRequestCallHelper[[]wshrpc.ConnStatus](w, "wslstatus", nil, opts)
|
|
return resp, err
|
|
}
|
|
|
|
|