export namespace main { export class LogLine { ts: number; stream: string; line: string; level?: string; static createFrom(source: any = {}) { return new LogLine(source); } constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.ts = source["ts"]; this.stream = source["stream"]; this.line = source["line"]; this.level = source["level"]; } } export class Preferences { autoOpenBrowser: boolean; locale?: string; logRingSize?: number; static createFrom(source: any = {}) { return new Preferences(source); } constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.autoOpenBrowser = source["autoOpenBrowser"]; this.locale = source["locale"]; this.logRingSize = source["logRingSize"]; } } export class ServerStatus { running: boolean; port: number; url: string; pid: number; pythonBin: string; pythonMode: string; lastError?: string; static createFrom(source: any = {}) { return new ServerStatus(source); } constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.running = source["running"]; this.port = source["port"]; this.url = source["url"]; this.pid = source["pid"]; this.pythonBin = source["pythonBin"]; this.pythonMode = source["pythonMode"]; this.lastError = source["lastError"]; } } export class ServerStatusV2 { state: string; port?: number; url?: string; pid?: number; pythonBin?: string; pythonMode?: string; startedAt?: number; lastError?: string; static createFrom(source: any = {}) { return new ServerStatusV2(source); } constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.state = source["state"]; this.port = source["port"]; this.url = source["url"]; this.pid = source["pid"]; this.pythonBin = source["pythonBin"]; this.pythonMode = source["pythonMode"]; this.startedAt = source["startedAt"]; this.lastError = source["lastError"]; } } export class StartupStageSnapshot { stage: number; status: string; startedAt: number; static createFrom(source: any = {}) { return new StartupStageSnapshot(source); } constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.stage = source["stage"]; this.status = source["status"]; this.startedAt = source["startedAt"]; } } export class StartupSnapshot { current: number; totalStages: number; stages: StartupStageSnapshot[]; static createFrom(source: any = {}) { return new StartupSnapshot(source); } constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.current = source["current"]; this.totalStages = source["totalStages"]; this.stages = this.convertValues(source["stages"], StartupStageSnapshot); } convertValues(a: any, classs: any, asMap: boolean = false): any { if (!a) { return a; } if (a.slice && a.map) { return (a as any[]).map(elem => this.convertValues(elem, classs)); } else if ("object" === typeof a) { if (asMap) { for (const key of Object.keys(a)) { a[key] = new classs(a[key]); } return a; } return new classs(a); } return a; } } export class SystemInfo { appVersion: string; buildTime: string; dataDir: string; logsDir: string; platform: string; static createFrom(source: any = {}) { return new SystemInfo(source); } constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.appVersion = source["appVersion"]; this.buildTime = source["buildTime"]; this.dataDir = source["dataDir"]; this.logsDir = source["logsDir"]; this.platform = source["platform"]; } } }