/** * The alert family's shortcut into executeWrite. * * Nearly every alert action is a POST to `/v1/alerts/{id}/{action}` returning an * async receipt, so this exists to keep that prefix and that mode in one place * as the family grows. The three field updates are PATCH against the same * shape, which is why the method is a parameter with the common case as its * default rather than a second helper. Tag and extra-property removal are DELETE * with a JSON request body, which is unusual but is what the API specifies. Everything load-bearing lives in * ../execute-write.ts — this is the alert-shaped call of it, not a second * executor. */ import type { JsmClient } from "../../services/client.js"; import type { ToolResult } from "../../services/format.js"; import type { RequestPlan } from "../define.js"; /** * The request an alert action issues, as data. * * Split out of `alertAction` so a tool states its action name and body exactly * once: the same value feeds the tool's `plan` for the code API and the handler * that executes it. Two statements of the same request is what the parity sweep * exists to catch, and not making them is cheaper than catching them. */ export declare function alertActionPlan(alertId: string, action: string, body?: Record, method?: "POST" | "PATCH" | "DELETE"): RequestPlan; export declare function alertAction(client: JsmClient, label: string, alertId: string, plan: RequestPlan): Promise; //# sourceMappingURL=alert-action.d.ts.map