Package-level declarations

Types

Link copied to clipboard
@Serializable
data class Bounce(val message: String)

Represents a bounce notification from a Resend webhook event.

Link copied to clipboard
@Serializable
data class Click(val ipAddress: String, val link: String, val linkTags: String? = null, val timestamp: String, val userAgent: String)

Represents a link click event from a Resend webhook notification.

Link copied to clipboard
@Serializable
data class Data(val createdAt: String, val emailId: String, val from: String, val subject: String? = null, val to: List<String>? = null, val headers: List<Header>? = null, val bounce: Bounce? = null, val click: Click? = null)

Represents the data payload within a ResendWebhookMsg.

Link copied to clipboard
@Serializable
data class Header(val name: String, val value: String)

Represents a single email header as a name-value pair within a Resend webhook Data payload.

Link copied to clipboard
@Serializable
data class ResendWebhookMsg(val createdAt: String, val data: Data, val type: String)

Represents a webhook message received from the Resend email service.