export type ActionResult = | { ok: true; intent: Intent; message: string; id?: string } | { ok: false; error: string };