1
0
silverbullet/server/rpc.ts
2023-08-26 08:31:51 +02:00

22 lines
326 B
TypeScript

export type ShellRequest = {
cmd: string;
args: string[];
};
export type ShellResponse = {
stdout: string;
stderr: string;
code: number;
};
export type SyscallRequest = {
ctx: string; // Plug name requesting
name: string;
args: any[];
};
export type SyscallResponse = {
result?: any;
error?: string;
};