2024-07-18 00:24:43 +02:00
|
|
|
// Copyright 2024, Command Line Inc.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
// generated by cmd/generate/main-generate.go
|
|
|
|
|
|
|
|
import * as WOS from "./wos";
|
|
|
|
|
|
|
|
// WshServerCommandToDeclMap
|
|
|
|
class WshServerType {
|
|
|
|
// command "controller:input" [call]
|
|
|
|
BlockInputCommand(data: CommandBlockInputData, opts?: WshRpcCommandOpts): Promise<void> {
|
2024-07-19 00:56:04 +02:00
|
|
|
return WOS.wshServerRpcHelper_call("controller:input", data, opts);
|
2024-07-18 00:24:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// command "controller:restart" [call]
|
|
|
|
BlockRestartCommand(data: CommandBlockRestartData, opts?: WshRpcCommandOpts): Promise<void> {
|
2024-07-19 00:56:04 +02:00
|
|
|
return WOS.wshServerRpcHelper_call("controller:restart", data, opts);
|
2024-07-18 00:24:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// command "createblock" [call]
|
|
|
|
CreateBlockCommand(data: CommandCreateBlockData, opts?: WshRpcCommandOpts): Promise<ORef> {
|
2024-07-19 00:56:04 +02:00
|
|
|
return WOS.wshServerRpcHelper_call("createblock", data, opts);
|
2024-07-18 00:24:43 +02:00
|
|
|
}
|
|
|
|
|
2024-07-19 03:13:59 +02:00
|
|
|
// command "deleteblock" [call]
|
|
|
|
DeleteBlockCommand(data: CommandDeleteBlockData, opts?: WshRpcCommandOpts): Promise<void> {
|
|
|
|
return WOS.wshServerRpcHelper_call("deleteblock", data, opts);
|
|
|
|
}
|
|
|
|
|
2024-07-18 00:24:43 +02:00
|
|
|
// command "file:append" [call]
|
|
|
|
AppendFileCommand(data: CommandAppendFileData, opts?: WshRpcCommandOpts): Promise<void> {
|
2024-07-19 00:56:04 +02:00
|
|
|
return WOS.wshServerRpcHelper_call("file:append", data, opts);
|
2024-07-18 00:24:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// command "file:appendijson" [call]
|
|
|
|
AppendIJsonCommand(data: CommandAppendIJsonData, opts?: WshRpcCommandOpts): Promise<void> {
|
2024-07-19 00:56:04 +02:00
|
|
|
return WOS.wshServerRpcHelper_call("file:appendijson", data, opts);
|
2024-07-18 00:24:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// command "getmeta" [call]
|
|
|
|
GetMetaCommand(data: CommandGetMetaData, opts?: WshRpcCommandOpts): Promise<MetaType> {
|
2024-07-19 00:56:04 +02:00
|
|
|
return WOS.wshServerRpcHelper_call("getmeta", data, opts);
|
2024-07-18 00:24:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// command "message" [call]
|
|
|
|
MessageCommand(data: CommandMessageData, opts?: WshRpcCommandOpts): Promise<void> {
|
2024-07-19 00:56:04 +02:00
|
|
|
return WOS.wshServerRpcHelper_call("message", data, opts);
|
2024-07-18 00:24:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// command "resolveids" [call]
|
|
|
|
ResolveIdsCommand(data: CommandResolveIdsData, opts?: WshRpcCommandOpts): Promise<CommandResolveIdsRtnData> {
|
2024-07-19 00:56:04 +02:00
|
|
|
return WOS.wshServerRpcHelper_call("resolveids", data, opts);
|
2024-07-18 00:24:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// command "setmeta" [call]
|
|
|
|
SetMetaCommand(data: CommandSetMetaData, opts?: WshRpcCommandOpts): Promise<void> {
|
2024-07-19 00:56:04 +02:00
|
|
|
return WOS.wshServerRpcHelper_call("setmeta", data, opts);
|
2024-07-18 00:24:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// command "setview" [call]
|
|
|
|
BlockSetViewCommand(data: CommandBlockSetViewData, opts?: WshRpcCommandOpts): Promise<void> {
|
2024-07-19 00:56:04 +02:00
|
|
|
return WOS.wshServerRpcHelper_call("setview", data, opts);
|
|
|
|
}
|
|
|
|
|
|
|
|
// command "streamtest" [responsestream]
|
|
|
|
RespStreamTest(opts?: WshRpcCommandOpts): AsyncGenerator<number, void, boolean> {
|
|
|
|
return WOS.wshServerRpcHelper_responsestream("streamtest", null, opts);
|
2024-07-18 00:24:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
export const WshServer = new WshServerType();
|