2024-06-12 02:42:10 +02:00
|
|
|
// Copyright 2024, Command Line Inc.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
// generated by cmd/generate/main-generate.go
|
|
|
|
|
|
|
|
declare global {
|
2024-06-18 07:38:48 +02:00
|
|
|
|
2024-06-12 02:42:10 +02:00
|
|
|
// wstore.Block
|
|
|
|
type Block = WaveObj & {
|
|
|
|
blockdef: BlockDef;
|
|
|
|
controller: string;
|
|
|
|
view: string;
|
|
|
|
runtimeopts?: RuntimeOpts;
|
2024-06-18 07:38:48 +02:00
|
|
|
stickers?: StickerType[];
|
2024-06-12 02:42:10 +02:00
|
|
|
meta: MetaType;
|
|
|
|
};
|
|
|
|
|
2024-06-14 08:54:04 +02:00
|
|
|
// wshutil.BlockAppendFileCommand
|
|
|
|
type BlockAppendFileCommand = {
|
|
|
|
command: "blockfile:append";
|
|
|
|
filename: string;
|
|
|
|
data: number[];
|
|
|
|
};
|
|
|
|
|
|
|
|
// wshutil.BlockAppendIJsonCommand
|
|
|
|
type BlockAppendIJsonCommand = {
|
|
|
|
command: "blockfile:appendijson";
|
|
|
|
filename: string;
|
|
|
|
data: MetaType;
|
|
|
|
};
|
|
|
|
|
2024-06-12 22:47:13 +02:00
|
|
|
type BlockCommand = {
|
|
|
|
command: string;
|
2024-06-21 19:23:04 +02:00
|
|
|
} & ( CreateBlockCommand | BlockInputCommand | BlockAppendFileCommand | ResolveIdsCommand | BlockMessageCommand | BlockAppendIJsonCommand | BlockSetViewCommand | BlockSetMetaCommand | BlockGetMetaCommand );
|
2024-06-12 22:47:13 +02:00
|
|
|
|
2024-06-12 02:42:10 +02:00
|
|
|
// wstore.BlockDef
|
|
|
|
type BlockDef = {
|
|
|
|
controller?: string;
|
|
|
|
view?: string;
|
2024-06-18 07:38:48 +02:00
|
|
|
files?: {[key: string]: FileDef};
|
2024-06-12 02:42:10 +02:00
|
|
|
meta?: MetaType;
|
|
|
|
};
|
|
|
|
|
2024-06-17 18:58:28 +02:00
|
|
|
// wshutil.BlockGetMetaCommand
|
|
|
|
type BlockGetMetaCommand = {
|
|
|
|
command: "getmeta";
|
2024-06-18 07:38:48 +02:00
|
|
|
oref: string;
|
2024-06-17 18:58:28 +02:00
|
|
|
};
|
|
|
|
|
2024-06-14 08:54:04 +02:00
|
|
|
// wshutil.BlockInputCommand
|
2024-06-12 22:47:13 +02:00
|
|
|
type BlockInputCommand = {
|
2024-06-21 19:23:04 +02:00
|
|
|
blockid: string;
|
2024-06-12 22:47:13 +02:00
|
|
|
command: "controller:input";
|
|
|
|
inputdata64?: string;
|
|
|
|
signame?: string;
|
|
|
|
termsize?: TermSize;
|
|
|
|
};
|
|
|
|
|
2024-06-18 07:38:48 +02:00
|
|
|
// webcmd.BlockInputWSCommand
|
|
|
|
type BlockInputWSCommand = {
|
|
|
|
wscommand: "blockinput";
|
|
|
|
blockid: string;
|
|
|
|
inputdata64: string;
|
|
|
|
};
|
|
|
|
|
2024-06-14 08:54:04 +02:00
|
|
|
// wshutil.BlockMessageCommand
|
|
|
|
type BlockMessageCommand = {
|
|
|
|
command: "message";
|
|
|
|
message: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
// wshutil.BlockSetMetaCommand
|
2024-06-12 22:47:13 +02:00
|
|
|
type BlockSetMetaCommand = {
|
|
|
|
command: "setmeta";
|
2024-06-18 07:38:48 +02:00
|
|
|
oref?: string;
|
2024-06-12 22:47:13 +02:00
|
|
|
meta: MetaType;
|
|
|
|
};
|
|
|
|
|
2024-06-14 08:54:04 +02:00
|
|
|
// wshutil.BlockSetViewCommand
|
2024-06-12 22:47:13 +02:00
|
|
|
type BlockSetViewCommand = {
|
|
|
|
command: "setview";
|
|
|
|
view: string;
|
|
|
|
};
|
|
|
|
|
2024-06-12 02:42:10 +02:00
|
|
|
// wstore.Client
|
|
|
|
type Client = WaveObj & {
|
|
|
|
mainwindowid: string;
|
2024-06-20 04:10:53 +02:00
|
|
|
windowids: string[];
|
2024-06-12 02:42:10 +02:00
|
|
|
meta: MetaType;
|
|
|
|
};
|
|
|
|
|
2024-06-20 22:03:50 +02:00
|
|
|
// wshutil.CreateBlockCommand
|
|
|
|
type CreateBlockCommand = {
|
|
|
|
command: "createblock";
|
2024-06-21 19:23:04 +02:00
|
|
|
tabid: string;
|
2024-06-20 22:03:50 +02:00
|
|
|
blockdef: BlockDef;
|
|
|
|
rtopts?: RuntimeOpts;
|
|
|
|
};
|
|
|
|
|
2024-06-12 02:42:10 +02:00
|
|
|
// 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;
|
|
|
|
};
|
|
|
|
|
2024-06-18 07:38:48 +02:00
|
|
|
// filestore.FileOptsType
|
|
|
|
type FileOptsType = {
|
|
|
|
maxsize?: number;
|
|
|
|
circular?: boolean;
|
|
|
|
ijson?: boolean;
|
|
|
|
ijsonbudget?: number;
|
|
|
|
};
|
|
|
|
|
2024-06-12 02:42:10 +02:00
|
|
|
// fileservice.FullFile
|
|
|
|
type FullFile = {
|
|
|
|
info: FileInfo;
|
|
|
|
data64: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
// wstore.LayoutNode
|
|
|
|
type LayoutNode = WaveObj & {
|
|
|
|
node?: any;
|
|
|
|
meta?: MetaType;
|
|
|
|
};
|
|
|
|
|
2024-06-18 07:38:48 +02:00
|
|
|
type MetaType = {[key: string]: any}
|
2024-06-12 02:42:10 +02:00
|
|
|
|
2024-06-12 22:47:13 +02:00
|
|
|
// tsgenmeta.MethodMeta
|
2024-06-12 02:42:10 +02:00
|
|
|
type MethodMeta = {
|
|
|
|
Desc: string;
|
|
|
|
ArgNames: string[];
|
|
|
|
ReturnDesc: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
// waveobj.ORef
|
|
|
|
type ORef = {
|
|
|
|
otype: string;
|
|
|
|
oid: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
// wstore.Point
|
|
|
|
type Point = {
|
|
|
|
x: number;
|
|
|
|
y: number;
|
|
|
|
};
|
|
|
|
|
2024-06-18 07:38:48 +02:00
|
|
|
// wshutil.ResolveIdsCommand
|
|
|
|
type ResolveIdsCommand = {
|
|
|
|
command: "resolveids";
|
|
|
|
ids: string[];
|
|
|
|
};
|
|
|
|
|
2024-06-12 02:42:10 +02:00
|
|
|
// wstore.RuntimeOpts
|
|
|
|
type RuntimeOpts = {
|
|
|
|
termsize?: TermSize;
|
|
|
|
winsize?: WinSize;
|
|
|
|
};
|
|
|
|
|
2024-06-12 23:18:03 +02:00
|
|
|
// webcmd.SetBlockTermSizeWSCommand
|
|
|
|
type SetBlockTermSizeWSCommand = {
|
|
|
|
wscommand: "setblocktermsize";
|
|
|
|
blockid: string;
|
|
|
|
termsize: TermSize;
|
|
|
|
};
|
|
|
|
|
2024-06-20 22:03:50 +02:00
|
|
|
// wconfig.SettingsConfigType
|
|
|
|
type SettingsConfigType = {
|
|
|
|
widgets: WidgetsConfigType[];
|
|
|
|
};
|
|
|
|
|
2024-06-18 07:38:48 +02:00
|
|
|
// wstore.StickerClickOptsType
|
|
|
|
type StickerClickOptsType = {
|
|
|
|
sendinput?: string;
|
|
|
|
createblock?: BlockDef;
|
|
|
|
};
|
|
|
|
|
|
|
|
// wstore.StickerDisplayOptsType
|
|
|
|
type StickerDisplayOptsType = {
|
|
|
|
icon: string;
|
|
|
|
imgsrc: string;
|
|
|
|
svgblob?: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
// wstore.StickerType
|
|
|
|
type StickerType = {
|
|
|
|
stickertype: string;
|
|
|
|
style: MetaType;
|
|
|
|
clickopts?: StickerClickOptsType;
|
|
|
|
display: StickerDisplayOptsType;
|
|
|
|
};
|
|
|
|
|
2024-06-12 02:42:10 +02:00
|
|
|
// 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;
|
|
|
|
};
|
|
|
|
|
2024-06-12 23:18:03 +02:00
|
|
|
type WSCommandType = {
|
|
|
|
wscommand: string;
|
2024-06-18 07:38:48 +02:00
|
|
|
} & ( SetBlockTermSizeWSCommand | BlockInputWSCommand );
|
2024-06-12 23:18:03 +02:00
|
|
|
|
2024-06-12 02:42:10 +02:00
|
|
|
// eventbus.WSEventType
|
|
|
|
type WSEventType = {
|
|
|
|
eventtype: string;
|
|
|
|
oref?: string;
|
|
|
|
data: any;
|
|
|
|
};
|
|
|
|
|
2024-06-14 08:54:04 +02:00
|
|
|
// eventbus.WSFileEventData
|
|
|
|
type WSFileEventData = {
|
|
|
|
zoneid: string;
|
|
|
|
filename: string;
|
|
|
|
fileop: string;
|
|
|
|
data64: string;
|
|
|
|
};
|
|
|
|
|
2024-06-20 22:03:50 +02:00
|
|
|
// wconfig.WatcherUpdate
|
|
|
|
type WatcherUpdate = {
|
|
|
|
file: string;
|
|
|
|
update: SettingsConfigType;
|
|
|
|
error: string;
|
|
|
|
};
|
|
|
|
|
2024-06-18 07:38:48 +02:00
|
|
|
// filestore.WaveFile
|
|
|
|
type WaveFile = {
|
|
|
|
zoneid: string;
|
|
|
|
name: string;
|
|
|
|
opts: FileOptsType;
|
|
|
|
createdts: number;
|
|
|
|
size: number;
|
|
|
|
modts: number;
|
|
|
|
meta: MetaType;
|
|
|
|
};
|
|
|
|
|
2024-06-12 02:42:10 +02:00
|
|
|
// waveobj.WaveObj
|
|
|
|
type WaveObj = {
|
|
|
|
otype: string;
|
|
|
|
oid: string;
|
|
|
|
version: number;
|
|
|
|
};
|
|
|
|
|
|
|
|
// wstore.WaveObjUpdate
|
|
|
|
type WaveObjUpdate = {
|
|
|
|
updatetype: string;
|
|
|
|
otype: string;
|
|
|
|
oid: string;
|
|
|
|
obj?: WaveObj;
|
|
|
|
};
|
|
|
|
|
2024-06-20 04:10:53 +02:00
|
|
|
// wstore.Window
|
|
|
|
type WaveWindow = WaveObj & {
|
|
|
|
workspaceid: string;
|
|
|
|
activetabid: string;
|
|
|
|
activeblockid?: string;
|
|
|
|
activeblockmap: {[key: string]: string};
|
|
|
|
pos: Point;
|
|
|
|
winsize: WinSize;
|
|
|
|
lastfocusts: number;
|
|
|
|
meta: MetaType;
|
|
|
|
};
|
|
|
|
|
2024-06-12 02:42:10 +02:00
|
|
|
// service.WebCallType
|
|
|
|
type WebCallType = {
|
|
|
|
service: string;
|
|
|
|
method: string;
|
|
|
|
uicontext?: UIContext;
|
|
|
|
args: any[];
|
|
|
|
};
|
|
|
|
|
|
|
|
// service.WebReturnType
|
|
|
|
type WebReturnType = {
|
|
|
|
success?: boolean;
|
|
|
|
error?: string;
|
|
|
|
data?: any;
|
|
|
|
updates?: WaveObjUpdate[];
|
|
|
|
};
|
|
|
|
|
2024-06-20 08:59:41 +02:00
|
|
|
// wconfig.WidgetsConfigType
|
|
|
|
type WidgetsConfigType = {
|
|
|
|
icon: string;
|
2024-06-20 22:03:50 +02:00
|
|
|
color?: string;
|
|
|
|
label?: string;
|
|
|
|
description?: string;
|
2024-06-20 08:59:41 +02:00
|
|
|
blockdef: BlockDef;
|
|
|
|
};
|
|
|
|
|
2024-06-12 02:42:10 +02:00
|
|
|
// wstore.WinSize
|
|
|
|
type WinSize = {
|
|
|
|
width: number;
|
|
|
|
height: number;
|
|
|
|
};
|
|
|
|
|
|
|
|
// wstore.Workspace
|
|
|
|
type Workspace = WaveObj & {
|
|
|
|
name: string;
|
|
|
|
tabids: string[];
|
|
|
|
meta: MetaType;
|
|
|
|
};
|
2024-06-18 07:38:48 +02:00
|
|
|
|
2024-06-12 02:42:10 +02:00
|
|
|
}
|
|
|
|
|
2024-06-21 19:23:04 +02:00
|
|
|
export {}
|