Files
kandev/apps/web/lib/api/domains/failed-inbox-api.ts
T
2026-09-15 23:14:56 +01:00

17 lines
558 B
TypeScript

import { fetchJson, type ApiRequestOptions } from "../client";
import type { FailedInboxPage } from "@/lib/types/failed-inbox";
const BASE = "/api/v1/failed-inbox";
// One canonical parameter set (design-01#Control-flow): every caller passes
// only workspaceId. No cursor -- this read serves exactly one bounded page.
export function listFailedInbox(
workspaceId: string,
options?: ApiRequestOptions,
): Promise<FailedInboxPage> {
return fetchJson<FailedInboxPage>(
`${BASE}?workspace_id=${encodeURIComponent(workspaceId)}`,
options,
);
}