* migrate normalizeMessage to ts * fix: missing null validations and type aliases
Co-authored-by: Diego Mello <diegolmello@gmail.com>