diff --git a/eshtek/server-schema.ts b/eshtek/server-schema.ts index 446b662..4bb5206 100644 --- a/eshtek/server-schema.ts +++ b/eshtek/server-schema.ts @@ -197,6 +197,13 @@ export const serverHealthSchema = z.object({ actions_available: z.array(serverActionsSchema), }); +export const serverVersionSchema = z.object({ + isVersionLatest: z.boolean(), + isVersionSupported: z.boolean(), + currentVersion: z.string(), + latestVersion: z.string(), +}); + export const serverUpgradeInfoSchema = z.object({ serverName: z.string(), hostId: z.string(), diff --git a/eshtek/server.ts b/eshtek/server.ts index 5856264..0a18b56 100644 --- a/eshtek/server.ts +++ b/eshtek/server.ts @@ -409,6 +409,13 @@ export interface ServerHealth { actions_available: ServerActions[]; } +export interface ServerVersion { + isVersionLatest: boolean; + isVersionSupported: boolean; + currentVersion: string; + latestVersion: string; +} + export interface ServerUpgradeInfo { serverName: string; hostId: string;