Validate a raw /api/data payload. Returns {ok: true, data} on success or {ok: false, message} with a condensed Zod error string on failure. Never throws. The dashboard's useDashboard hook surfaces the message in the UI.
/api/data
{ok: true, data}
{ok: false, message}
useDashboard
Validate a raw
/api/datapayload. Returns{ok: true, data}on success or{ok: false, message}with a condensed Zod error string on failure. Never throws. The dashboard'suseDashboardhook surfaces the message in the UI.