You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add messageStatusValidator for stricter message status validation #39
The messageValidator uses v.string() for the status field. Consider creating a messageStatusValidator union for stricter validation.
Context
Identified during PR #37 review (CodeRabbit comment #2652223400).
Current State
exportconstmessageValidator=v.object({// ...status: v.string(),// Currently permissive// ...});
Proposed Change
Create a union validator with all valid message statuses:
exportconstmessageStatusValidator=v.union(v.literal('sent'),v.literal('delivered'),v.literal('read'),v.literal('failed'),// ... other statuses);
Required Work
Audit all message status values used across the codebase
Identify all sources of message statuses (email providers, internal state, etc.)
Create comprehensive messageStatusValidator union
Update messageValidator to use the new validator
Additional Notes
Message statuses may come from different sources (email providers, internal state), so need to ensure all possible values are captured before implementing strict validation.
Activity
fix(platform): close round-5 review findings on voice-mode TTS (8/N)
fix(platform): close round-5 review findings on voice-mode TTS (8/N)