When it fires
After InviteMemberService creates the invite record and the invitation email has been sent. If the email cannot be sent, the invite is revoked again and no event is emitted.
Payload
ts
{
type: 'member.invited',
data: {
invite: {
id: string // invite id, as returned by GET /v1/invites
email: string
roleId: string
roleName: string
}
}
}Example
json
{
"type": "member.invited",
"data": {
"invite": {
"id": "0192a1b2-c3d4-7000-8000-000000000060",
"email": "alice@example.com",
"roleId": "0192a1b2-c3d4-7000-8000-000000000070",
"roleName": "Admin"
}
}
}