[api] decoule the event types from hermes type