declarative event and payload definitions