| 12 | * (`application/events/publisher.py`). Mirrors the wire JSON 1:1. |
| 13 | */ |
| 14 | export interface SSEEvent<P = Record<string, unknown>> { |
| 15 | id?: string; |
| 16 | type: string; |
| 17 | ts?: string; |
| 18 | user_id?: string; |
| 19 | topic?: string; |
| 20 | scope?: { kind: string; id: string }; |
| 21 | payload?: P; |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * Connection-health state machine the rest of the app reads via |
nothing calls this directly
no outgoing calls
no test coverage detected