export type Side = "client" | "server";
export type InstanceIcon = string;
export interface InstanceInfo {
id: string;
name: string | null;
side: Side;
icon: InstanceIcon | null;
pinned: boolean;
}
export type InstanceMap = {
[id: string]: InstanceInfo;
};
export interface GroupInfo {
id: string;
contents: string[];
}
export interface RunningInstanceInfo {
info: InstanceInfo;
state: RunState;
}
export type RunState = "not_started" | "preparing" | "running";
export interface UpdateRunStateEvent {
instance: string;
state: RunState;
}
export interface AuthDisplayEvent {
url: string;
device_code: string;
}