Builds an Envelope from a received envelope, taking the token out of it.
The envelope (d of a dispatch or an item of EventPage.events).
d
EventPage.events
The envelope.
TypeError when id or type is missing or malformed.
TypeError
id
type
Builds an Envelope from a received envelope, taking the token out of it.