This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @see https://docs.sendgrid.com/for-developers/tracking-events/event | |
// There is a mistake in the offical doc. Category is array of strings. I took it from the real webhook call. | |
type BaseSendgridEvent = { | |
email: string; | |
timestamp: number; | |
'smtp-id': string; | |
category: string | string[]; | |
sg_event_id: string; | |
sg_message_id: string; |