Add Event to api types

Json serialization is wrong