Add Event to api types

I'm fine with literal JS syntax, but let's say that.