{"version":3,"file":"health.cjs","names":[],"sources":["../../../../src/rest/commands/server/health.ts"],"sourcesContent":["import type { RestCommand } from '../../types.js';\n\nexport type ServerHealthOutput = {\n\tstatus: 'ok' | 'warn' | 'error';\n\treleaseId?: string;\n\tserviceId?: string;\n\tchecks?: {\n\t\t[name: string]: Record<string, any>[];\n\t};\n};\n\n/**\n * Get the current health status of the server.\n * @returns The current health status of the server.\n */\nexport const serverHealth =\n\t<Schema>(): RestCommand<ServerHealthOutput, Schema> =>\n\t() => ({\n\t\tmethod: 'GET',\n\t\tpath: '/server/health',\n\t});\n"],"mappings":"AAeA,MAAa,WAEL,CACN,OAAQ,MACR,KAAM,iBACN"}