Added send and publish validation on command and event types to prevent accidental publishing of commands and vice versa