from https://quantforge.org/pinets/docs/alerts#alert-event-structure
{
type: 'alert' | 'alertcondition',
message: string, // The alert message
...
}
If pure Pine Script, message: string is strict, but if you directly use PineTS, supporting object in the message would be very powerful. I must repeatedly perform JSON serialization at both ends right now.