// Copyright 2024, Command Line Inc. // SPDX-License-Identifier: Apache-2.0 // generated by cmd/generate/main-generate.go import { wshServerRpcHelper_call, wshServerRpcHelper_responsestream } from "./wshrpc"; // WshServerCommandToDeclMap class WshServerType { // command "announce" [call] AnnounceCommand(data: string, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("announce", data, opts); } // command "authenticate" [call] AuthenticateCommand(data: string, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("authenticate", data, opts); } // command "connconnect" [call] ConnConnectCommand(data: string, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("connconnect", data, opts); } // command "conndisconnect" [call] ConnDisconnectCommand(data: string, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("conndisconnect", data, opts); } // command "connensure" [call] ConnEnsureCommand(data: string, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("connensure", data, opts); } // command "connlist" [call] ConnListCommand(opts?: RpcOpts): Promise { return wshServerRpcHelper_call("connlist", null, opts); } // command "connreinstallwsh" [call] ConnReinstallWshCommand(data: string, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("connreinstallwsh", data, opts); } // command "connstatus" [call] ConnStatusCommand(opts?: RpcOpts): Promise { return wshServerRpcHelper_call("connstatus", null, opts); } // command "controllerinput" [call] ControllerInputCommand(data: CommandBlockInputData, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("controllerinput", data, opts); } // command "controllerresync" [call] ControllerResyncCommand(data: CommandControllerResyncData, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("controllerresync", data, opts); } // command "controllerstop" [call] ControllerStopCommand(data: string, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("controllerstop", data, opts); } // command "createblock" [call] CreateBlockCommand(data: CommandCreateBlockData, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("createblock", data, opts); } // command "deleteblock" [call] DeleteBlockCommand(data: CommandDeleteBlockData, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("deleteblock", data, opts); } // command "eventpublish" [call] EventPublishCommand(data: WaveEvent, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("eventpublish", data, opts); } // command "eventreadhistory" [call] EventReadHistoryCommand(data: CommandEventReadHistoryData, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("eventreadhistory", data, opts); } // command "eventrecv" [call] EventRecvCommand(data: WaveEvent, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("eventrecv", data, opts); } // command "eventsub" [call] EventSubCommand(data: SubscriptionRequest, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("eventsub", data, opts); } // command "eventunsub" [call] EventUnsubCommand(data: string, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("eventunsub", data, opts); } // command "eventunsuball" [call] EventUnsubAllCommand(opts?: RpcOpts): Promise { return wshServerRpcHelper_call("eventunsuball", null, opts); } // command "fileappend" [call] FileAppendCommand(data: CommandFileData, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("fileappend", data, opts); } // command "fileappendijson" [call] FileAppendIJsonCommand(data: CommandAppendIJsonData, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("fileappendijson", data, opts); } // command "fileread" [call] FileReadCommand(data: CommandFileData, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("fileread", data, opts); } // command "filewrite" [call] FileWriteCommand(data: CommandFileData, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("filewrite", data, opts); } // command "getmeta" [call] GetMetaCommand(data: CommandGetMetaData, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("getmeta", data, opts); } // command "message" [call] MessageCommand(data: CommandMessageData, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("message", data, opts); } // command "remotefiledelete" [call] RemoteFileDeleteCommand(data: string, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("remotefiledelete", data, opts); } // command "remotefileinfo" [call] RemoteFileInfoCommand(data: string, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("remotefileinfo", data, opts); } // command "remotefilejoin" [call] RemoteFileJoinCommand(data: string[], opts?: RpcOpts): Promise { return wshServerRpcHelper_call("remotefilejoin", data, opts); } // command "remotestreamcpudata" [responsestream] RemoteStreamCpuDataCommand(opts?: RpcOpts): AsyncGenerator { return wshServerRpcHelper_responsestream("remotestreamcpudata", null, opts); } // command "remotestreamfile" [responsestream] RemoteStreamFileCommand(data: CommandRemoteStreamFileData, opts?: RpcOpts): AsyncGenerator { return wshServerRpcHelper_responsestream("remotestreamfile", data, opts); } // command "remotewritefile" [call] RemoteWriteFileCommand(data: CommandRemoteWriteFileData, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("remotewritefile", data, opts); } // command "resolveids" [call] ResolveIdsCommand(data: CommandResolveIdsData, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("resolveids", data, opts); } // command "setconfig" [call] SetConfigCommand(data: SettingsType, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("setconfig", data, opts); } // command "setmeta" [call] SetMetaCommand(data: CommandSetMetaData, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("setmeta", data, opts); } // command "setview" [call] SetViewCommand(data: CommandBlockSetViewData, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("setview", data, opts); } // command "streamcpudata" [responsestream] StreamCpuDataCommand(data: CpuDataRequest, opts?: RpcOpts): AsyncGenerator { return wshServerRpcHelper_responsestream("streamcpudata", data, opts); } // command "streamtest" [responsestream] StreamTestCommand(opts?: RpcOpts): AsyncGenerator { return wshServerRpcHelper_responsestream("streamtest", null, opts); } // command "streamwaveai" [responsestream] StreamWaveAiCommand(data: OpenAiStreamRequest, opts?: RpcOpts): AsyncGenerator { return wshServerRpcHelper_responsestream("streamwaveai", data, opts); } // command "test" [call] TestCommand(data: string, opts?: RpcOpts): Promise { return wshServerRpcHelper_call("test", data, opts); } } export const WshServer = new WshServerType();