Skip to content

Commit 771862e

Browse files
fix(types): narrow HealthResponse to match api
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5b6c03c commit 771862e

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ export type {
4646
FormatResponseMap,
4747
FormatType,
4848
HealthResponse,
49-
HealthServices,
5049
HistoryEntry,
5150
HistoryFilter,
5251
HistoryPage,

src/types.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -411,15 +411,9 @@ export interface CreditsResponse {
411411
jobs: CreditsJobs;
412412
}
413413

414-
export interface HealthServices {
415-
redis: "ok" | "down";
416-
db: "ok" | "down";
417-
}
418-
419414
export interface HealthResponse {
420-
status: string;
415+
status: "ok" | "degraded";
421416
uptime: number;
422-
services?: HealthServices;
423417
}
424418

425419
export interface ApiResult<T> {

0 commit comments

Comments
 (0)