mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
210 lines
4.1 KiB
TypeScript
210 lines
4.1 KiB
TypeScript
// Copyright 2024, Command Line Inc.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// generated by cmd/generate/main-generate.go
|
|
|
|
declare global {
|
|
|
|
// wstore.Block
|
|
type Block = WaveObj & {
|
|
blockdef: BlockDef;
|
|
controller: string;
|
|
view: string;
|
|
runtimeopts?: RuntimeOpts;
|
|
meta: MetaType;
|
|
};
|
|
|
|
type BlockCommand = {
|
|
command: string;
|
|
} & ( BlockInputCommand | BlockSetViewCommand | BlockSetMetaCommand );
|
|
|
|
// wstore.BlockDef
|
|
type BlockDef = {
|
|
controller?: string;
|
|
view?: string;
|
|
files?: {[key: string]: FileDef};
|
|
meta?: MetaType;
|
|
};
|
|
|
|
// blockcontroller.BlockInputCommand
|
|
type BlockInputCommand = {
|
|
command: "controller:input";
|
|
inputdata64?: string;
|
|
signame?: string;
|
|
termsize?: TermSize;
|
|
};
|
|
|
|
// blockcontroller.BlockSetMetaCommand
|
|
type BlockSetMetaCommand = {
|
|
command: "setmeta";
|
|
meta: MetaType;
|
|
};
|
|
|
|
// blockcontroller.BlockSetViewCommand
|
|
type BlockSetViewCommand = {
|
|
command: "setview";
|
|
view: string;
|
|
};
|
|
|
|
// wstore.Client
|
|
type Client = WaveObj & {
|
|
mainwindowid: string;
|
|
meta: MetaType;
|
|
};
|
|
|
|
// wstore.FileDef
|
|
type FileDef = {
|
|
filetype?: string;
|
|
path?: string;
|
|
url?: string;
|
|
content?: string;
|
|
meta?: MetaType;
|
|
};
|
|
|
|
// fileservice.FileInfo
|
|
type FileInfo = {
|
|
path: string;
|
|
notfound?: boolean;
|
|
size: number;
|
|
mode: number;
|
|
modtime: number;
|
|
isdir?: boolean;
|
|
mimetype?: string;
|
|
};
|
|
|
|
// fileservice.FullFile
|
|
type FullFile = {
|
|
info: FileInfo;
|
|
data64: string;
|
|
};
|
|
|
|
// wstore.LayoutNode
|
|
type LayoutNode = WaveObj & {
|
|
node?: any;
|
|
meta?: MetaType;
|
|
};
|
|
|
|
type MetaType = {[key: string]: any}
|
|
|
|
// tsgenmeta.MethodMeta
|
|
type MethodMeta = {
|
|
Desc: string;
|
|
ArgNames: string[];
|
|
ReturnDesc: string;
|
|
};
|
|
|
|
// waveobj.ORef
|
|
type ORef = {
|
|
otype: string;
|
|
oid: string;
|
|
};
|
|
|
|
// wstore.Point
|
|
type Point = {
|
|
x: number;
|
|
y: number;
|
|
};
|
|
|
|
// wstore.RuntimeOpts
|
|
type RuntimeOpts = {
|
|
termsize?: TermSize;
|
|
winsize?: WinSize;
|
|
};
|
|
|
|
// webcmd.SetBlockTermSizeWSCommand
|
|
type SetBlockTermSizeWSCommand = {
|
|
wscommand: "setblocktermsize";
|
|
blockid: string;
|
|
termsize: TermSize;
|
|
};
|
|
|
|
// wstore.Tab
|
|
type Tab = WaveObj & {
|
|
name: string;
|
|
layoutNode: string;
|
|
blockids: string[];
|
|
meta: MetaType;
|
|
};
|
|
|
|
// shellexec.TermSize
|
|
type TermSize = {
|
|
rows: number;
|
|
cols: number;
|
|
};
|
|
|
|
// wstore.UIContext
|
|
type UIContext = {
|
|
windowid: string;
|
|
activetabid: string;
|
|
};
|
|
|
|
type WSCommandType = {
|
|
wscommand: string;
|
|
} & ( SetBlockTermSizeWSCommand );
|
|
|
|
// eventbus.WSEventType
|
|
type WSEventType = {
|
|
eventtype: string;
|
|
oref?: string;
|
|
data: any;
|
|
};
|
|
|
|
// waveobj.WaveObj
|
|
type WaveObj = {
|
|
otype: string;
|
|
oid: string;
|
|
version: number;
|
|
};
|
|
|
|
// wstore.WaveObjUpdate
|
|
type WaveObjUpdate = {
|
|
updatetype: string;
|
|
otype: string;
|
|
oid: string;
|
|
obj?: WaveObj;
|
|
};
|
|
|
|
// service.WebCallType
|
|
type WebCallType = {
|
|
service: string;
|
|
method: string;
|
|
uicontext?: UIContext;
|
|
args: any[];
|
|
};
|
|
|
|
// service.WebReturnType
|
|
type WebReturnType = {
|
|
success?: boolean;
|
|
error?: string;
|
|
data?: any;
|
|
updates?: WaveObjUpdate[];
|
|
};
|
|
|
|
// wstore.WinSize
|
|
type WinSize = {
|
|
width: number;
|
|
height: number;
|
|
};
|
|
|
|
// wstore.Window
|
|
type WaveWindow = WaveObj & {
|
|
workspaceid: string;
|
|
activetabid: string;
|
|
activeblockmap: {[key: string]: string};
|
|
pos: Point;
|
|
winsize: WinSize;
|
|
lastfocusts: number;
|
|
meta: MetaType;
|
|
};
|
|
|
|
// wstore.Workspace
|
|
type Workspace = WaveObj & {
|
|
name: string;
|
|
tabids: string[];
|
|
meta: MetaType;
|
|
};
|
|
|
|
}
|
|
|
|
export {}
|