Reference
?

EmailStats

Type
Counts, an accepted total, rates, and a timeseries, as returned by `email.stats`.

The rollup email.stats returns. accepted is the denominator for rates; under about fifty accepted, prefer counts over a percentage. series buckets the window for a chart.

EmailStats.ts
interface EmailStats {
  counts: Record<EmailMessageStatus, number>
  accepted: number
  rates: { bounceRate; complaintRate; deliveredRate }
  byKind: Record<'method' | 'auth', number>
  series: Array<{ t: string; counts: Record<string, number> }>
}
Fields
counts
Record<EmailMessageStatus, number>
Message count per status.
accepted
number
Messages the provider accepted; the denominator behind the rates.
rates
{ bounceRate, complaintRate, deliveredRate }
The three rates, over accepted.
byKind
Record<'method' | 'auth', number>
Split between app mail and sign-in codes.
series
Array<{ t, counts }>
Bucketed counts over the window, for charting.