import type { OperationalTaskNotification } from "../api/operational-task-client"; const NOTIFICATION_SEVERITIES: Partial< Record > = { task_failed: "critical", run_delivery_degraded: "critical", action_pending: "warning", access_approval_pending: "warning", action_approval_pending: "warning", human_input_required: "warning", external_coordination_failed: "critical" }; export function getOperationalNotificationSeverity( kind: OperationalTaskNotification["kind"] ): "warning" | "critical" | null { return NOTIFICATION_SEVERITIES[kind] ?? null; }