(id: string)
| 93 | }, |
| 94 | |
| 95 | async markRead(id: string): Promise<{ ok: true; id: string; readAt: number }> { |
| 96 | return fetchJson(`/api/inbox/${encodeURIComponent(id)}/read`, { |
| 97 | method: 'PUT', |
| 98 | }) |
| 99 | }, |
| 100 | |
| 101 | async markUnread(id: string): Promise<{ ok: true; id: string }> { |
| 102 | return fetchJson(`/api/inbox/${encodeURIComponent(id)}/read`, { |
no test coverage detected