feat(update): add Onebox self-upgrade flow
This commit is contained in:
@@ -4,7 +4,30 @@
|
||||
|
||||
import type { TPlatformServiceType, TPlatformServiceStatus } from './platform.ts';
|
||||
|
||||
export interface IOneboxUpdateStatus {
|
||||
currentVersion: string;
|
||||
latestVersion: string | null;
|
||||
updateAvailable: boolean;
|
||||
checkedAt: number;
|
||||
releaseUrl: string;
|
||||
changelogUrl: string;
|
||||
error?: string;
|
||||
}
|
||||
|
||||
export interface IOneboxUpgradeStartResult {
|
||||
accepted: boolean;
|
||||
currentVersion: string;
|
||||
targetVersion: string;
|
||||
message: string;
|
||||
pid?: number;
|
||||
logPath?: string;
|
||||
}
|
||||
|
||||
export interface ISystemStatus {
|
||||
onebox: {
|
||||
version: string;
|
||||
update: IOneboxUpdateStatus;
|
||||
};
|
||||
docker: {
|
||||
running: boolean;
|
||||
version: unknown;
|
||||
|
||||
Reference in New Issue
Block a user