// Copyright 2024, Command Line Inc. // SPDX-License-Identifier: Apache-2.0 // generated by cmd/generate/main-generatets.go import * as WOS from "./wos"; // blockservice.BlockService (block) class BlockServiceType { GetControllerStatus(arg2: string): Promise { return WOS.callBackendService("block", "GetControllerStatus", Array.from(arguments)) } // save the terminal state to a blockfile SaveTerminalState(blockId: string, state: string, stateType: string, ptyOffset: number, termSize: TermSize): Promise { return WOS.callBackendService("block", "SaveTerminalState", Array.from(arguments)) } SaveWaveAiData(arg2: string, arg3: OpenAIPromptMessageType[]): Promise { return WOS.callBackendService("block", "SaveWaveAiData", Array.from(arguments)) } } export const BlockService = new BlockServiceType(); // clientservice.ClientService (client) class ClientServiceType { // @returns object updates AgreeTos(): Promise { return WOS.callBackendService("client", "AgreeTos", Array.from(arguments)) } FocusWindow(arg2: string): Promise { return WOS.callBackendService("client", "FocusWindow", Array.from(arguments)) } GetAllConnStatus(): Promise { return WOS.callBackendService("client", "GetAllConnStatus", Array.from(arguments)) } GetClientData(): Promise { return WOS.callBackendService("client", "GetClientData", Array.from(arguments)) } GetTab(arg1: string): Promise { return WOS.callBackendService("client", "GetTab", Array.from(arguments)) } GetWindow(arg1: string): Promise { return WOS.callBackendService("client", "GetWindow", Array.from(arguments)) } GetWorkspace(arg1: string): Promise { return WOS.callBackendService("client", "GetWorkspace", Array.from(arguments)) } MakeWindow(): Promise { return WOS.callBackendService("client", "MakeWindow", Array.from(arguments)) } TelemetryUpdate(arg2: boolean): Promise { return WOS.callBackendService("client", "TelemetryUpdate", Array.from(arguments)) } } export const ClientService = new ClientServiceType(); // fileservice.FileService (file) class FileServiceType { // delete file DeleteFile(connection: string, path: string): Promise { return WOS.callBackendService("file", "DeleteFile", Array.from(arguments)) } GetFullConfig(): Promise { return WOS.callBackendService("file", "GetFullConfig", Array.from(arguments)) } GetWaveFile(arg1: string, arg2: string): Promise { return WOS.callBackendService("file", "GetWaveFile", Array.from(arguments)) } // read file ReadFile(connection: string, path: string): Promise { return WOS.callBackendService("file", "ReadFile", Array.from(arguments)) } // save file SaveFile(connection: string, path: string, data64: string): Promise { return WOS.callBackendService("file", "SaveFile", Array.from(arguments)) } // get file info StatFile(connection: string, path: string): Promise { return WOS.callBackendService("file", "StatFile", Array.from(arguments)) } } export const FileService = new FileServiceType(); // objectservice.ObjectService (object) class ObjectServiceType { // @returns tabId (and object updates) AddTabToWorkspace(windowId: string, tabName: string, activateTab: boolean): Promise { return WOS.callBackendService("object", "AddTabToWorkspace", Array.from(arguments)) } // @returns blockId (and object updates) CreateBlock(blockDef: BlockDef, rtOpts: RuntimeOpts): Promise { return WOS.callBackendService("object", "CreateBlock", Array.from(arguments)) } // @returns object updates DeleteBlock(blockId: string): Promise { return WOS.callBackendService("object", "DeleteBlock", Array.from(arguments)) } // get wave object by oref GetObject(oref: string): Promise { return WOS.callBackendService("object", "GetObject", Array.from(arguments)) } // @returns objects GetObjects(orefs: string[]): Promise { return WOS.callBackendService("object", "GetObjects", Array.from(arguments)) } // @returns object updates SetActiveTab(uiContext: string, tabId: string): Promise { return WOS.callBackendService("object", "SetActiveTab", Array.from(arguments)) } // @returns object updates UpdateObject(waveObj: WaveObj, returnUpdates: boolean): Promise { return WOS.callBackendService("object", "UpdateObject", Array.from(arguments)) } // @returns object updates UpdateObjectMeta(oref: string, meta: MetaType): Promise { return WOS.callBackendService("object", "UpdateObjectMeta", Array.from(arguments)) } // @returns object updates UpdateTabName(tabId: string, name: string): Promise { return WOS.callBackendService("object", "UpdateTabName", Array.from(arguments)) } // @returns object updates UpdateWorkspaceTabIds(workspaceId: string, tabIds: string[]): Promise { return WOS.callBackendService("object", "UpdateWorkspaceTabIds", Array.from(arguments)) } } export const ObjectService = new ObjectServiceType(); // userinputservice.UserInputService (userinput) class UserInputServiceType { SendUserInputResponse(arg1: UserInputResponse): Promise { return WOS.callBackendService("userinput", "SendUserInputResponse", Array.from(arguments)) } } export const UserInputService = new UserInputServiceType(); // windowservice.WindowService (window) class WindowServiceType { // @returns object updates CloseTab(arg2: string, arg3: string, arg4: boolean): Promise { return WOS.callBackendService("window", "CloseTab", Array.from(arguments)) } CloseWindow(arg2: string, arg3: boolean): Promise { return WOS.callBackendService("window", "CloseWindow", Array.from(arguments)) } // move block to new window // @returns object updates MoveBlockToNewWindow(currentTabId: string, blockId: string): Promise { return WOS.callBackendService("window", "MoveBlockToNewWindow", Array.from(arguments)) } // @returns object updates SetWindowPosAndSize(arg2: string, arg3: Point, arg4: WinSize): Promise { return WOS.callBackendService("window", "SetWindowPosAndSize", Array.from(arguments)) } } export const WindowService = new WindowServiceType();