update type definitions:
update type definitions:

* mark session on event context as optional
* add optional error property to event context
* change return type for get_error() to be an Error object

grs/rhea