More e2e tests

This commit is contained in:
Jack Kingsman
2026-02-24 22:33:28 -08:00
parent 27942975e2
commit 566181faed
4 changed files with 257 additions and 0 deletions
+16
View File
@@ -163,6 +163,22 @@ export function sendChannelMessage(
});
}
// --- Read state ---
export interface UnreadCounts {
counts: Record<string, number>;
mentions: Record<string, boolean>;
last_message_times: Record<string, number>;
}
export function getUnreads(): Promise<UnreadCounts> {
return fetchJson('/read-state/unreads');
}
export function markAllRead(): Promise<{ status: string; timestamp: number }> {
return fetchJson('/read-state/mark-all-read', { method: 'POST' });
}
// --- Settings ---
export interface BotConfig {