feat(shared): WS event contract registry

TREK_WS_EVENTS: 65 trip-scoped + 29 user-scoped events with Zod
payload schemas transcribed from the emitting call sites; derived
name unions and payload types; plugin: namespace reserved as the
escape hatch. 8 payload-drift shapes modeled as unions and flagged.
This commit is contained in:
jubnl
2026-07-29 00:08:17 +02:00
parent a2861d40f3
commit c0baaeb898
3 changed files with 525 additions and 0 deletions
+3
View File
@@ -47,6 +47,9 @@ export * from './oidc/oidc.schema';
export * from './oauth/oauth.schema';
export * from './admin/admin.schema';
// Realtime WS event contract registry (event names + payload schemas)
export * from './realtime/events.schema';
// Sanitisation helpers — used by the client today, scoped here so the server
// has them ready if rich-text input ever ships.
export * from './sanitize/sanitize';