2024-06-12 02:42:10 +02:00
|
|
|
// Copyright 2024, Command Line Inc.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2024-09-16 20:59:39 +02:00
|
|
|
// generated by cmd/generate/main-generatets.go
|
2024-06-12 02:42:10 +02:00
|
|
|
|
|
|
|
import * as WOS from "./wos";
|
|
|
|
|
|
|
|
// blockservice.BlockService (block)
|
|
|
|
class BlockServiceType {
|
2024-06-24 23:34:31 +02:00
|
|
|
GetControllerStatus(arg2: string): Promise<BlockControllerRuntimeStatus> {
|
|
|
|
return WOS.callBackendService("block", "GetControllerStatus", Array.from(arguments))
|
|
|
|
}
|
2024-10-22 21:50:44 +02:00
|
|
|
|
|
|
|
// save the terminal state to a blockfile
|
|
|
|
SaveTerminalState(blockId: string, state: string, stateType: string, ptyOffset: number, termSize: TermSize): Promise<void> {
|
2024-06-18 07:38:48 +02:00
|
|
|
return WOS.callBackendService("block", "SaveTerminalState", Array.from(arguments))
|
|
|
|
}
|
2024-07-30 07:35:21 +02:00
|
|
|
SaveWaveAiData(arg2: string, arg3: OpenAIPromptMessageType[]): Promise<void> {
|
|
|
|
return WOS.callBackendService("block", "SaveWaveAiData", Array.from(arguments))
|
|
|
|
}
|
2024-06-12 02:42:10 +02:00
|
|
|
}
|
|
|
|
|
2024-07-18 00:24:43 +02:00
|
|
|
export const BlockService = new BlockServiceType();
|
2024-06-12 02:42:10 +02:00
|
|
|
|
|
|
|
// clientservice.ClientService (client)
|
|
|
|
class ClientServiceType {
|
2024-07-30 20:44:19 +02:00
|
|
|
// @returns object updates
|
|
|
|
AgreeTos(): Promise<void> {
|
|
|
|
return WOS.callBackendService("client", "AgreeTos", Array.from(arguments))
|
|
|
|
}
|
2024-06-20 04:10:53 +02:00
|
|
|
FocusWindow(arg2: string): Promise<void> {
|
|
|
|
return WOS.callBackendService("client", "FocusWindow", Array.from(arguments))
|
|
|
|
}
|
2024-08-24 03:12:40 +02:00
|
|
|
GetAllConnStatus(): Promise<ConnStatus[]> {
|
|
|
|
return WOS.callBackendService("client", "GetAllConnStatus", Array.from(arguments))
|
|
|
|
}
|
2024-06-12 02:42:10 +02:00
|
|
|
GetClientData(): Promise<Client> {
|
|
|
|
return WOS.callBackendService("client", "GetClientData", Array.from(arguments))
|
|
|
|
}
|
|
|
|
GetTab(arg1: string): Promise<Tab> {
|
|
|
|
return WOS.callBackendService("client", "GetTab", Array.from(arguments))
|
|
|
|
}
|
2024-06-20 04:10:53 +02:00
|
|
|
GetWindow(arg1: string): Promise<WaveWindow> {
|
2024-06-12 02:42:10 +02:00
|
|
|
return WOS.callBackendService("client", "GetWindow", Array.from(arguments))
|
|
|
|
}
|
|
|
|
GetWorkspace(arg1: string): Promise<Workspace> {
|
|
|
|
return WOS.callBackendService("client", "GetWorkspace", Array.from(arguments))
|
|
|
|
}
|
2024-06-20 04:10:53 +02:00
|
|
|
MakeWindow(): Promise<WaveWindow> {
|
|
|
|
return WOS.callBackendService("client", "MakeWindow", Array.from(arguments))
|
|
|
|
}
|
2024-09-23 22:33:39 +02:00
|
|
|
TelemetryUpdate(arg2: boolean): Promise<void> {
|
|
|
|
return WOS.callBackendService("client", "TelemetryUpdate", Array.from(arguments))
|
|
|
|
}
|
2024-06-12 02:42:10 +02:00
|
|
|
}
|
|
|
|
|
2024-07-18 00:24:43 +02:00
|
|
|
export const ClientService = new ClientServiceType();
|
2024-06-12 02:42:10 +02:00
|
|
|
|
|
|
|
// fileservice.FileService (file)
|
|
|
|
class FileServiceType {
|
2024-08-19 20:02:40 +02:00
|
|
|
// delete file
|
|
|
|
DeleteFile(connection: string, path: string): Promise<void> {
|
2024-06-25 22:53:55 +02:00
|
|
|
return WOS.callBackendService("file", "DeleteFile", Array.from(arguments))
|
|
|
|
}
|
2024-08-28 03:49:49 +02:00
|
|
|
GetFullConfig(): Promise<FullConfigType> {
|
|
|
|
return WOS.callBackendService("file", "GetFullConfig", Array.from(arguments))
|
2024-06-20 08:59:41 +02:00
|
|
|
}
|
2024-06-12 02:42:10 +02:00
|
|
|
GetWaveFile(arg1: string, arg2: string): Promise<any> {
|
|
|
|
return WOS.callBackendService("file", "GetWaveFile", Array.from(arguments))
|
|
|
|
}
|
2024-08-19 20:02:40 +02:00
|
|
|
|
|
|
|
// read file
|
|
|
|
ReadFile(connection: string, path: string): Promise<FullFile> {
|
2024-06-12 02:42:10 +02:00
|
|
|
return WOS.callBackendService("file", "ReadFile", Array.from(arguments))
|
|
|
|
}
|
2024-08-19 20:02:40 +02:00
|
|
|
|
|
|
|
// save file
|
|
|
|
SaveFile(connection: string, path: string, data64: string): Promise<void> {
|
2024-07-18 08:41:33 +02:00
|
|
|
return WOS.callBackendService("file", "SaveFile", Array.from(arguments))
|
|
|
|
}
|
2024-08-17 03:45:45 +02:00
|
|
|
|
|
|
|
// get file info
|
|
|
|
StatFile(connection: string, path: string): Promise<FileInfo> {
|
2024-06-12 02:42:10 +02:00
|
|
|
return WOS.callBackendService("file", "StatFile", Array.from(arguments))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-18 00:24:43 +02:00
|
|
|
export const FileService = new FileServiceType();
|
2024-06-12 02:42:10 +02:00
|
|
|
|
|
|
|
// objectservice.ObjectService (object)
|
|
|
|
class ObjectServiceType {
|
|
|
|
// @returns tabId (and object updates)
|
2024-10-17 23:34:02 +02:00
|
|
|
AddTabToWorkspace(windowId: string, tabName: string, activateTab: boolean): Promise<string> {
|
2024-06-12 02:42:10 +02:00
|
|
|
return WOS.callBackendService("object", "AddTabToWorkspace", Array.from(arguments))
|
|
|
|
}
|
|
|
|
|
|
|
|
// @returns blockId (and object updates)
|
|
|
|
CreateBlock(blockDef: BlockDef, rtOpts: RuntimeOpts): Promise<string> {
|
|
|
|
return WOS.callBackendService("object", "CreateBlock", Array.from(arguments))
|
|
|
|
}
|
|
|
|
|
|
|
|
// @returns object updates
|
|
|
|
DeleteBlock(blockId: string): Promise<void> {
|
|
|
|
return WOS.callBackendService("object", "DeleteBlock", Array.from(arguments))
|
|
|
|
}
|
|
|
|
|
|
|
|
// get wave object by oref
|
|
|
|
GetObject(oref: string): Promise<WaveObj> {
|
|
|
|
return WOS.callBackendService("object", "GetObject", Array.from(arguments))
|
|
|
|
}
|
|
|
|
|
|
|
|
// @returns objects
|
|
|
|
GetObjects(orefs: string[]): Promise<WaveObj[]> {
|
|
|
|
return WOS.callBackendService("object", "GetObjects", Array.from(arguments))
|
|
|
|
}
|
|
|
|
|
|
|
|
// @returns object updates
|
2024-10-17 23:34:02 +02:00
|
|
|
SetActiveTab(uiContext: string, tabId: string): Promise<void> {
|
2024-06-12 02:42:10 +02:00
|
|
|
return WOS.callBackendService("object", "SetActiveTab", Array.from(arguments))
|
|
|
|
}
|
|
|
|
|
|
|
|
// @returns object updates
|
|
|
|
UpdateObject(waveObj: WaveObj, returnUpdates: boolean): Promise<void> {
|
|
|
|
return WOS.callBackendService("object", "UpdateObject", Array.from(arguments))
|
|
|
|
}
|
|
|
|
|
|
|
|
// @returns object updates
|
|
|
|
UpdateObjectMeta(oref: string, meta: MetaType): Promise<void> {
|
|
|
|
return WOS.callBackendService("object", "UpdateObjectMeta", Array.from(arguments))
|
|
|
|
}
|
2024-06-18 06:50:33 +02:00
|
|
|
|
2024-06-21 19:23:04 +02:00
|
|
|
// @returns object updates
|
|
|
|
UpdateTabName(tabId: string, name: string): Promise<void> {
|
|
|
|
return WOS.callBackendService("object", "UpdateTabName", Array.from(arguments))
|
|
|
|
}
|
|
|
|
|
2024-06-18 06:50:33 +02:00
|
|
|
// @returns object updates
|
|
|
|
UpdateWorkspaceTabIds(workspaceId: string, tabIds: string[]): Promise<void> {
|
|
|
|
return WOS.callBackendService("object", "UpdateWorkspaceTabIds", Array.from(arguments))
|
|
|
|
}
|
2024-06-12 02:42:10 +02:00
|
|
|
}
|
|
|
|
|
2024-07-18 00:24:43 +02:00
|
|
|
export const ObjectService = new ObjectServiceType();
|
2024-06-12 02:42:10 +02:00
|
|
|
|
2024-07-19 00:21:33 +02:00
|
|
|
// userinputservice.UserInputService (userinput)
|
|
|
|
class UserInputServiceType {
|
|
|
|
SendUserInputResponse(arg1: UserInputResponse): Promise<void> {
|
|
|
|
return WOS.callBackendService("userinput", "SendUserInputResponse", Array.from(arguments))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export const UserInputService = new UserInputServiceType();
|
|
|
|
|
2024-06-17 18:58:28 +02:00
|
|
|
// windowservice.WindowService (window)
|
|
|
|
class WindowServiceType {
|
2024-06-20 04:10:53 +02:00
|
|
|
// @returns object updates
|
2024-10-17 23:34:02 +02:00
|
|
|
CloseTab(arg2: string, arg3: string, arg4: boolean): Promise<CloseTabRtnType> {
|
2024-06-20 04:10:53 +02:00
|
|
|
return WOS.callBackendService("window", "CloseTab", Array.from(arguments))
|
|
|
|
}
|
2024-10-17 23:34:02 +02:00
|
|
|
CloseWindow(arg2: string, arg3: boolean): Promise<void> {
|
2024-06-20 04:10:53 +02:00
|
|
|
return WOS.callBackendService("window", "CloseWindow", Array.from(arguments))
|
|
|
|
}
|
|
|
|
|
2024-06-25 23:56:37 +02:00
|
|
|
// move block to new window
|
|
|
|
// @returns object updates
|
|
|
|
MoveBlockToNewWindow(currentTabId: string, blockId: string): Promise<void> {
|
|
|
|
return WOS.callBackendService("window", "MoveBlockToNewWindow", Array.from(arguments))
|
|
|
|
}
|
|
|
|
|
2024-06-17 18:58:28 +02:00
|
|
|
// @returns object updates
|
|
|
|
SetWindowPosAndSize(arg2: string, arg3: Point, arg4: WinSize): Promise<void> {
|
|
|
|
return WOS.callBackendService("window", "SetWindowPosAndSize", Array.from(arguments))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-18 00:24:43 +02:00
|
|
|
export const WindowService = new WindowServiceType();
|
2024-06-17 18:58:28 +02:00
|
|
|
|