Add Event to api types

not related?  Does this compile?  you clearly use io later, and never added strconv usage