Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | /**
* The inbox — `GET /app/notifications` (svc-core
* `app/services/notifications.py`). A person's, across every workspace they
* belong to: each notification names its workspace, and its link opens there.
*/
/** A registered kind (svc-core `notifications.kind_keys`). */
export type NotificationKind =
| "budget_threshold"
| "budget_projected"
| "allowance_threshold"
| "statement_ready"
| "swarm_attention"
| "swarm_finished";
export interface AppNotification {
id: string;
kind: NotificationKind | string;
title: string;
body?: string | null;
/** A page written against `/user/…`, to open in `workspace_key`. */
link?: string | null;
workspace_key?: string | null;
workspace_name?: string | null;
data?: Record<string, unknown> | null;
created_at: string;
read_at?: string | null;
}
export interface Inbox {
/** Newest first. */
items: AppNotification[];
unread: number;
}
|