---
title: "nuxt-backend/email"
description: "Every export of nuxt-backend/email, with its signature and where it is defined."
canonical_url: "https://nuxt-backend.dev/docs/reference/api/email"
---
# nuxt-backend/email

Version: nuxt-backend 0.6.x · Tab: Reference · Kind: reference · Status: stable

Every page: [llms.txt](https://nuxt-backend.dev/llms.txt) · Skill for coding agents: [nuxt-backend](https://nuxt-backend.dev/.well-known/skills/nuxt-backend/SKILL.md)

Commands use npm; use your project's package manager.

## Interfaces

### EmailTopic

Defined in: [src/convex/email-preferences.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-preferences.ts)

One email topic: what people read on the unsubscribe page and their profile, and how they join it.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="name">
        
      </a>
      
       <code>
        name
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      What people read: at most 50 characters (the provider's limit).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-preferences.ts" rel="nofollow">
        src/convex/email-preferences.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="description">
        
      </a>
      
       <code>
        description
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      One line about what the topic sends and how often: at most 200 characters.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-preferences.ts" rel="nofollow">
        src/convex/email-preferences.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="subscribedbydefault">
        
      </a>
      
       <code>
        subscribedByDefault
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Whether people are in the topic until they leave. Keep it <code>
        false
      </code>
      
       for marketing, so people join on purpose. The provider cannot change a topic's default after it creates it.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-preferences.ts" rel="nofollow">
        src/convex/email-preferences.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="doubleoptin">
        
      </a>
      
       <code>
        doubleOptIn?
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Ask for a confirmation click before a person joins (a newsletter).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-preferences.ts" rel="nofollow">
        src/convex/email-preferences.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="softoptin">
        
      </a>
      
       <code>
        softOptIn?
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Add paying customers unless they object at checkout (the EU soft opt-in).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-preferences.ts" rel="nofollow">
        src/convex/email-preferences.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="from">
        
      </a>
      
       <code>
        from?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The sender of the topic's email; without it <code>
        EMAIL_MARKETING_FROM
      </code>
      
      , then <code>
        EMAIL_FROM
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-preferences.ts" rel="nofollow">
        src/convex/email-preferences.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailCaps

Defined in: [src/convex/email-preferences.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-preferences.ts)

The rules every non-transactional send follows: email under a topic,
lifecycle email, and the email and push channels of notifications.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="perweek">
        
      </a>
      
       <code>
        perWeek?
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      The most non-transactional emails one person gets in any 7 days, across every topic. No default: nothing is capped.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-preferences.ts" rel="nofollow">
        src/convex/email-preferences.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="quiethours">
        
      </a>
      
       <code>
        quietHours?
      </code>
    </td>
    
    <td>
      { <code>
        start
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        end
      </code>
      
      : <code>
        string
      </code>
      
      ; }
    </td>
    
    <td>
      A window in each person's own time zone; a send that would land inside it waits for its end. No default.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-preferences.ts" rel="nofollow">
        src/convex/email-preferences.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        quietHours.start
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-preferences.ts" rel="nofollow">
        src/convex/email-preferences.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        quietHours.end
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-preferences.ts" rel="nofollow">
        src/convex/email-preferences.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="sunsetafterdays">
        
      </a>
      
       <code>
        sunsetAfterDays?
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      No non-transactional mail after this many days without a click in your email or activity in your app. Default 180.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-preferences.ts" rel="nofollow">
        src/convex/email-preferences.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailMessage

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

A rendered email. `to` travels with the message because the template knows
the recipient: the invitation goes to the invitee, the gift to its
recipient.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="to">
        
      </a>
      
       <code>
        to
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="subject">
        
      </a>
      
       <code>
        subject
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="html">
        
      </a>
      
       <code>
        html?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="text">
        
      </a>
      
       <code>
        text?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="blocks">
        
      </a>
      
       <code>
        blocks?
      </code>
    </td>
    
    <td>
      <a href="#emailblock">
        <code>
          EmailBlock
        </code>
      </a>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The body as parts, in place of <code>
        html
      </code>
      
      : a template or <code>
        compose
      </code>
      
       returns them, and the layout renders them in the theme, escaped, with the text version written for you (unless <code>
        text
      </code>
      
       is given). A rendered message has <code>
        html
      </code>
      
       and <code>
        text
      </code>
      
      , and no blocks.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="preheader">
        
      </a>
      
       <code>
        preheader?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The hidden line a mailbox previews beside the subject. Without one, the first paragraph of <code>
        blocks
      </code>
      
      , else the heading; never a code, since a locked screen shows the preview.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailBrand

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

The app a message is sent for, as every packaged email's header and footer
show it.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="name-1">
        
      </a>
      
       <code>
        name
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The app's name: <code>
        setupEmail
      </code>
      
      's <code>
        brand.name
      </code>
      
      , else the display name of <code>
        EMAIL_FROM
      </code>
      
       (<code>
        Acme
      </code>
      
       in <code>
        Acme <hello@acme.com>
      </code>
      
      ), else the host of <code>
        SITE_URL
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="url">
        
      </a>
      
       <code>
        url
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <code>
        SITE_URL
      </code>
      
      : where the footer links to. Empty without one.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="logo">
        
      </a>
      
       <code>
        logo?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      An absolute URL of the logo the layout's header shows in place of the name: <code>
        setupEmail
      </code>
      
      's <code>
        brand.logo
      </code>
      
      , a path read against <code>
        SITE_URL
      </code>
      
      . Absent without one.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailRenderContext

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

What every template renders with, beside its own data.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="t">
        
      </a>
      
       <code>
        t
      </code>
    </td>
    
    <td>
      <a href="#translate">
        <code>
          Translate
        </code>
      </a>
    </td>
    
    <td>
      The words, in the recipient's language: a package label by its key (<code>
        t('email.welcome.subject')
      </code>
      
      , read from <code>
        backend.email.welcome.subject
      </code>
      
       in <code>
        setupEmail
      </code>
      
      's <code>
        messages
      </code>
      
      ), or a key of the app's own from the root of those messages (<code>
        t('digest.subject')
      </code>
      
      ). A key the language leaves out reads English.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="locale">
        
      </a>
      
       <code>
        locale
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The language the email is written in: the recipient's, matched against the locales <code>
        setupEmail
      </code>
      
       has messages for, else the default locale (<code>
        'en'
      </code>
      
       unless <code>
        defaultLocale
      </code>
      
       says otherwise).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="brand">
        
      </a>
      
       <code>
        brand
      </code>
    </td>
    
    <td>
      <a href="#emailbrand">
        <code>
          EmailBrand
        </code>
      </a>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="theme">
        
      </a>
      
       <code>
        theme
      </code>
    </td>
    
    <td>
      <a href="#resolvedemailtheme">
        <code>
          ResolvedEmailTheme
        </code>
      </a>
    </td>
    
    <td>
      The look the layout renders with: both color schemes and the fonts, the package's defaults under <code>
        setupEmail
      </code>
      
      's <code>
        theme
      </code>
      
      . For an email of your own built as <code>
        html
      </code>
      
      ; <code>
        blocks
      </code>
      
       use it for you.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="link">
        
      </a>
      
       <code>
        link
      </code>
    </td>
    
    <td>
      (<code>
        url
      </code>
      
      ) => <code>
        string
      </code>
    </td>
    
    <td>
      An app URL as a reader of <code>
        locale
      </code>
      
       opens it: under a prefixing <code>
        localePaths
      </code>
      
      , <code>
        https://acme.com/accept-invitation
      </code>
      
       becomes <code>
        https://acme.com/fr/accept-invitation
      </code>
      
      . Any other URL comes back as it was.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### RequestOrigin

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Where and when a request that caused an email was made: what a code email
names so a person can tell a request that is not theirs. Every part but
the time may be missing; none of it is the requester's own text.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="device">
        
      </a>
      
       <code>
        device?
      </code>
    </td>
    
    <td>
      { <code>
        browser?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        os?
      </code>
      
      : <code>
        string
      </code>
      
      ; }
    </td>
    
    <td>
      The browser and the system, <code>
        Chrome on macOS
      </code>
      
       style; absent when the user agent names neither.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        device.browser?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        device.os?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="place">
        
      </a>
      
       <code>
        place?
      </code>
    </td>
    
    <td>
      { <code>
        city?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        country?
      </code>
      
      : <code>
        string
      </code>
      
      ; }
    </td>
    
    <td>
      The city and the country (an ISO 3166 code), as the host's geolocation gives them; absent off such a host.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        place.city?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        place.country?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="at">
        
      </a>
      
       <code>
        at
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When, in epoch milliseconds.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="timezone">
        
      </a>
      
       <code>
        timeZone?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The requester's IANA time zone, when the host gives one: the email shows the time in it, else in UTC.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### OtpEmailData

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Data for the `otp` template.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="otp">
        
      </a>
      
       <code>
        otp
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="type">
        
      </a>
      
       <code>
        type
      </code>
    </td>
    
    <td>
      <a href="#otppurpose">
        <code>
          OtpPurpose
        </code>
      </a>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="reason">
        
      </a>
      
       <code>
        reason?
      </code>
    </td>
    
    <td>
      <code>
        "passkey-only"
      </code>
      
       | <code>
        "email-change"
      </code>
    </td>
    
    <td>
      Why the code was sent, where its type alone doesn't say: <code>
        'email-change'
      </code>
      
       for the <code>
        email-verification
      </code>
      
       code that confirms the current address at the start of an email change; <code>
        'passkey-only'
      </code>
      
       for a sign-in code asked for a passkey-only account, which sends no code (<code>
        otp
      </code>
      
       is empty) and says the account signs in with a passkey.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="requestedfrom">
        
      </a>
      
       <code>
        requestedFrom?
      </code>
    </td>
    
    <td>
      <a href="#requestorigin">
        <code>
          RequestOrigin
        </code>
      </a>
    </td>
    
    <td>
      Who asked for it: the device, an approximate place and the time (<a href="#requestorigin">
        RequestOrigin
      </a>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailChangedEmailData

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Data for the `emailChanged` template.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email-1">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The address the account had: the notice goes there.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="newemail">
        
      </a>
      
       <code>
        newEmail
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The address it has now, as the person typed it: escape it in HTML (<a href="#escapehtml">
        escapeHtml
      </a>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### PasskeyRecoveredEmailData

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Data for the `passkeyRecovered` template.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email-2">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="requestedfrom-1">
        
      </a>
      
       <code>
        requestedFrom?
      </code>
    </td>
    
    <td>
      <a href="#requestorigin">
        <code>
          RequestOrigin
        </code>
      </a>
    </td>
    
    <td>
      Where the recovery code was used (<a href="#requestorigin">
        RequestOrigin
      </a>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="url-1">
        
      </a>
      
       <code>
        url
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The app's security page, where the person signs every other device out.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### NewDeviceEmailData

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Data for the `newDevice` template.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email-3">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="requestedfrom-2">
        
      </a>
      
       <code>
        requestedFrom?
      </code>
    </td>
    
    <td>
      <a href="#requestorigin">
        <code>
          RequestOrigin
        </code>
      </a>
    </td>
    
    <td>
      The device that signed in, from where and when (<a href="#requestorigin">
        RequestOrigin
      </a>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="url-2">
        
      </a>
      
       <code>
        url
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The app's security page, where the person signs that device out.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### DeletionScheduledEmailData

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Data for the `deletionScheduled` template.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email-4">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The account's address: the notice goes there.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="deletesat">
        
      </a>
      
       <code>
        deletesAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When the account is deleted unless it is kept (epoch ms).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="keepurl">
        
      </a>
      
       <code>
        keepUrl
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The link that keeps the account, with its token. It opens a page of the app and needs no sign-in.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### DeletionCanceledEmailData

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Data for the `deletionCanceled` template.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email-5">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The account's address: the confirmation goes there.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### WelcomeEmailData

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Data for the `welcome` template.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email-6">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="name-2">
        
      </a>
      
       <code>
        name
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The name the person signed up with: their own text, so escape it in HTML (<a href="#escapehtml">
        escapeHtml
      </a>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### InviteEmailData

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Data for the `invite` template.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email-7">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="url-3">
        
      </a>
      
       <code>
        url
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="invitername">
        
      </a>
      
       <code>
        inviterName
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The inviter's own name: user text, so escape it in HTML (<a href="#escapehtml">
        escapeHtml
      </a>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="inviteremail">
        
      </a>
      
       <code>
        inviterEmail
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="workspacename">
        
      </a>
      
       <code>
        workspaceName
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The workspace's name, as a member typed it: escape it in HTML.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="role">
        
      </a>
      
       <code>
        role
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### GiftEmailData

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Data for the `gift` template. It names who sent what and links to the app,
nothing more: the purchaser's email and their message stay out of the
email, and the link carries no token — the recipient signs in to claim.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="recipientemail">
        
      </a>
      
       <code>
        recipientEmail
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="purchasername">
        
      </a>
      
       <code>
        purchaserName?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The sender's name: at most 40 characters with links and domains taken out, but still their own text, so escape it in HTML (<a href="#escapehtml">
        escapeHtml
      </a>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="item">
        
      </a>
      
       <code>
        item
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      What the gift is: the credit pack's product name, or the plan's name for a plan pass.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="months">
        
      </a>
      
       <code>
        months?
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      For a plan pass, how many months it lasts: the template then writes "3 months of Pro".
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="claimurl">
        
      </a>
      
       <code>
        claimUrl
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The app URL where the recipient signs in (or up) to receive the gift.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="reminder">
        
      </a>
      
       <code>
        reminder?
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      The one reminder sent a week after the gift: the template then says it is still waiting.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### GiftPassEndingEmailData

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Data for the `giftPassEnding` template. It tells a workspace's billing
managers that a plan someone gave it ends, and offers to keep it: an
ordinary checkout of the plan, at `keepUrl`.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email-8">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The billing manager written to.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="plan">
        
      </a>
      
       <code>
        plan
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The plan the pass holds: its name.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="workspace">
        
      </a>
      
       <code>
        workspace?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The workspace's name, as a member typed it: escape it in HTML.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="endsat">
        
      </a>
      
       <code>
        endsAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When the pass ends, epoch milliseconds.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="keepurl-1">
        
      </a>
      
       <code>
        keepUrl
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Where the plan is kept: the app's billing settings.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="trial">
        
      </a>
      
       <code>
        trial?
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      A reverse trial's pass, which nobody gave: the template says the trial ends.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### RenewalReminderEmailData

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Data for the `renewalReminder` template: the yearly reminder
of a renewing subscription's terms that California's automatic renewal
law asks for, sent where the billing provider's own reminder does not
reach (cycles under six months).

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email-9">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The billing manager written to.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="plan-1">
        
      </a>
      
       <code>
        plan
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The plan's name.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="amount">
        
      </a>
      
       <code>
        amount
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      What each renewal charges, in the currency's smallest unit.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="currency">
        
      </a>
      
       <code>
        currency
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Lower-case ISO 4217.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="interval">
        
      </a>
      
       <code>
        interval
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The renewal interval: <code>
        day
      </code>
      
      , <code>
        week
      </code>
      
       or <code>
        month
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="intervalcount">
        
      </a>
      
       <code>
        intervalCount
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      How many intervals one cycle is.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="renewsat">
        
      </a>
      
       <code>
        renewsAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When it next renews, epoch milliseconds.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="manageurl">
        
      </a>
      
       <code>
        manageUrl
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Where the plan is managed and cancelled: the app's billing settings.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### WithdrawalReceiptEmailData

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Data for the `withdrawalReceipt` template: the acknowledgement
on a durable medium that an EU withdrawal was received, with its date and
time (Consumer Rights Directive, Art. 11a).

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email-10">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The person who withdrew.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="plan-2">
        
      </a>
      
       <code>
        plan
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The plan withdrawn from: its name.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="withdrawnat">
        
      </a>
      
       <code>
        withdrawnAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When the withdrawal was received, epoch milliseconds.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### WaitlistConfirmationEmailData

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Data for the `waitlistConfirmation` template.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email-11">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="statusurl">
        
      </a>
      
       <code>
        statusUrl
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The person's status page, with its signed token in the fragment: it shows their place without a sign-in code.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="position">
        
      </a>
      
       <code>
        position?
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      Their place, 1-based, among the people waiting; absent when it is not known yet.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="total">
        
      </a>
      
       <code>
        total?
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      How many people are waiting.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### WaitlistFriendJoinedEmailData

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Data for the `waitlistFriendJoined` template.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email-12">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="statusurl-1">
        
      </a>
      
       <code>
        statusUrl
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The person's status page, with its signed token in the fragment.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="friends">
        
      </a>
      
       <code>
        friends
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      How many friends have joined with their link so far.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="days">
        
      </a>
      
       <code>
        days
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      How far up the line their friends moved them, in whole days.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### TopicConfirmationEmailData

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Data for the `topicConfirmation` template.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email-13">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="topic">
        
      </a>
      
       <code>
        topic
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The topic's name, as <code>
        setupEmail({ topics })
      </code>
      
       declares it.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="confirmurl">
        
      </a>
      
       <code>
        confirmUrl
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The confirmation link: it joins the topic, once, within 7 days.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### WaitlistAdmittedEmailData

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Data for the `waitlistAdmitted` template.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email-14">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="signinurl">
        
      </a>
      
       <code>
        signInUrl
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Where the person signs up, with the address they joined with.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### NoticeReceivedEmailData

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Data for the `noticeReceived` template.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email-15">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The notifier's address.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="url-4">
        
      </a>
      
       <code>
        url?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The link to the content, as the notifier gave it; absent for one outside the app, which the email never repeats.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="intimate">
        
      </a>
      
       <code>
        intimate?
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      A request to remove an intimate image shared without consent: decided within 48 hours.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### NoticeDecidedEmailData

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Data for the `noticeDecided` template.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email-16">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The notifier's address.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="url-5">
        
      </a>
      
       <code>
        url?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The link to the content: the notifier's, when it is into the app, else where <code>
        describe
      </code>
      
       says it is shown; absent without either.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="outcome">
        
      </a>
      
       <code>
        outcome
      </code>
    </td>
    
    <td>
      <code>
        "kept"
      </code>
      
       | <code>
        "removed"
      </code>
      
       | <code>
        "handled"
      </code>
    </td>
    
    <td>
      <code>
        removed
      </code>
      
       when the content was hidden, <code>
        kept
      </code>
      
       when the notice was dismissed, <code>
        handled
      </code>
      
       when an administrator marked a notice the app could not place handled: nothing of the app's was hidden for it.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="reason-1">
        
      </a>
      
       <code>
        reason
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Why, as the administrator wrote it.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### ContentRestrictedEmailData

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Data for the `contentRestricted` template: a statement of reasons.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email-17">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The author's address.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="title">
        
      </a>
      
       <code>
        title
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      What was hidden, as <code>
        reports.describe
      </code>
      
       names it.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="reason-2">
        
      </a>
      
       <code>
        reason
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The facts and the term or law the decision rests on, as the administrator wrote them.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="ground">
        
      </a>
      
       <code>
        ground
      </code>
    </td>
    
    <td>
      <code>
        "terms"
      </code>
      
       | <code>
        "illegal"
      </code>
    </td>
    
    <td>
      Whether the content was found illegal or against the app's terms.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="notice">
        
      </a>
      
       <code>
        notice
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Whether a notice through the public form led to the decision, rather than people's reports alone.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="appealurl">
        
      </a>
      
       <code>
        appealUrl
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Where the author appeals: the <code>
        report
      </code>
      
       page with the decision's token in the fragment.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="appealuntil">
        
      </a>
      
       <code>
        appealUntil
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      Until when the decision may be appealed, epoch ms.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AppealDecidedEmailData

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Data for the `appealDecided` template.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email-18">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The author's address.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="title-1">
        
      </a>
      
       <code>
        title
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      What the appeal was about, as <code>
        reports.describe
      </code>
      
       names it.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="outcome-1">
        
      </a>
      
       <code>
        outcome
      </code>
    </td>
    
    <td>
      <code>
        "upheld"
      </code>
      
       | <code>
        "reversed"
      </code>
    </td>
    
    <td>
      <code>
        upheld
      </code>
      
       when the decision stands, <code>
        reversed
      </code>
      
       when it was undone.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="reason-3">
        
      </a>
      
       <code>
        reason
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Why, as the administrator wrote it.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### NotificationEmailData

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Data for the `notification` template: one notification by email, worded
already. `type` says which kind it is, so one override can give each kind
its own email and leave the rest to the default.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email-19">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The person notified: the email goes to their account's address.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="type-1">
        
      </a>
      
       <code>
        type
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The kind: an event type of the package's catalog (<code>
        auth.passkey_added
      </code>
      
      ), or one of yours under <code>
        app.
      </code>
      
       (<code>
        app.strip_shared
      </code>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="words">
        
      </a>
      
       <code>
        words
      </code>
    </td>
    
    <td>
      { <code>
        title
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        body?
      </code>
      
      : <code>
        string
      </code>
      
      ; }
    </td>
    
    <td>
      The kind's words in the reader's language, as the inbox shows them: its <code>
        title
      </code>
      
      , and its <code>
        body
      </code>
      
       when it has one. The kind's own fields, the actor and the workspace are filled in.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        words.title
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        words.body?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="link-1">
        
      </a>
      
       <code>
        link
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Where the notification opens, an absolute URL of the app: your kind's <code>
        link
      </code>
      
      , or the ready-made page a package kind is about. The default puts it in the reader's language with <code>
        context.link
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="fields">
        
      </a>
      
       <code>
        fields
      </code>
    </td>
    
    <td>
      <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        string
      </code>
      
       | <code>
        number
      </code>
      
       | <code>
        boolean
      </code>
      
       | <code>
        string
      </code>
      
      <span>
        
      </span>
      
      >
    </td>
    
    <td>
      The kind's own fields, as the event recorded them (<code>
        { role }
      </code>
      
      , <code>
        { balance }
      </code>
      
      ): an email of your own can show what the words leave out. Values a person typed are their own text, so escape them in HTML (<a href="#escapehtml">
        escapeHtml
      </a>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailTemplates

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Every email the package sends, as a template. A template returns the
message or a promise of it, so an async renderer (`@vue-email/render`,
`@react-email/render`) works as is.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="otp-1">
        
      </a>
      
       <code>
        otp
      </code>
    </td>
    
    <td>
      (<code>
        data
      </code>
      
      , <code>
        context
      </code>
      
      ) => | <a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
       | <code>
        Promise
      </code>
      
      <<a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
      >
    </td>
    
    <td>
      A one-time code: for sign-in, for verifying an address (<code>
        email-verification
      </code>
      
      , which also confirms the current address at the start of an email change), and for the new address of an email change (<code>
        change-email
      </code>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="passkeyrecovered">
        
      </a>
      
       <code>
        passkeyRecovered
      </code>
    </td>
    
    <td>
      (<code>
        data
      </code>
      
      , <code>
        context
      </code>
      
      ) => | <a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
       | <code>
        Promise
      </code>
      
      <<a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
      >
    </td>
    
    <td>
      Tells a passkey-only account that its recovery code signed in, from where, and links to the security page, which signs every other device out.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="newdevice">
        
      </a>
      
       <code>
        newDevice
      </code>
    </td>
    
    <td>
      (<code>
        data
      </code>
      
      , <code>
        context
      </code>
      
      ) => | <a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
       | <code>
        Promise
      </code>
      
      <<a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
      >
    </td>
    
    <td>
      Tells the account that a device it had not used before signed in, from where and when, and links to the security page, where that device is signed out.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="emailchanged">
        
      </a>
      
       <code>
        emailChanged
      </code>
    </td>
    
    <td>
      (<code>
        data
      </code>
      
      , <code>
        context
      </code>
      
      ) => | <a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
       | <code>
        Promise
      </code>
      
      <<a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
      >
    </td>
    
    <td>
      Tells the old address that an email change went through.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="deletionscheduled">
        
      </a>
      
       <code>
        deletionScheduled
      </code>
    </td>
    
    <td>
      (<code>
        data
      </code>
      
      , <code>
        context
      </code>
      
      ) => | <a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
       | <code>
        Promise
      </code>
      
      <<a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
      >
    </td>
    
    <td>
      Tells the account that its deletion is scheduled, when it happens and the link that keeps it.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="deletioncanceled">
        
      </a>
      
       <code>
        deletionCanceled
      </code>
    </td>
    
    <td>
      (<code>
        data
      </code>
      
      , <code>
        context
      </code>
      
      ) => | <a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
       | <code>
        Promise
      </code>
      
      <<a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
      >
    </td>
    
    <td>
      Confirms that a scheduled deletion was cancelled.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="welcome">
        
      </a>
      
       <code>
        welcome
      </code>
    </td>
    
    <td>
      (<code>
        data
      </code>
      
      , <code>
        context
      </code>
      
      ) => | <a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
       | <code>
        Promise
      </code>
      
      <<a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
      >
    </td>
    
    <td>
      Sent once, right after an account is created.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="invite">
        
      </a>
      
       <code>
        invite
      </code>
    </td>
    
    <td>
      (<code>
        data
      </code>
      
      , <code>
        context
      </code>
      
      ) => | <a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
       | <code>
        Promise
      </code>
      
      <<a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
      >
    </td>
    
    <td>
      A workspace invitation with its accept link.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="gift">
        
      </a>
      
       <code>
        gift
      </code>
    </td>
    
    <td>
      (<code>
        data
      </code>
      
      , <code>
        context
      </code>
      
      ) => | <a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
       | <code>
        Promise
      </code>
      
      <<a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
      >
    </td>
    
    <td>
      Tells a gift's recipient it is paid and waiting for them.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="giftpassending">
        
      </a>
      
       <code>
        giftPassEnding
      </code>
    </td>
    
    <td>
      (<code>
        data
      </code>
      
      , <code>
        context
      </code>
      
      ) => | <a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
       | <code>
        Promise
      </code>
      
      <<a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
      >
    </td>
    
    <td>
      Tells a workspace's billing managers that a plan pass ends in a week, and offers to keep the plan.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="renewalreminder">
        
      </a>
      
       <code>
        renewalReminder
      </code>
    </td>
    
    <td>
      (<code>
        data
      </code>
      
      , <code>
        context
      </code>
      
      ) => | <a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
       | <code>
        Promise
      </code>
      
      <<a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
      >
    </td>
    
    <td>
      The yearly reminder of a renewing subscription's terms, where the billing provider sends none.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="withdrawalreceipt">
        
      </a>
      
       <code>
        withdrawalReceipt
      </code>
    </td>
    
    <td>
      (<code>
        data
      </code>
      
      , <code>
        context
      </code>
      
      ) => | <a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
       | <code>
        Promise
      </code>
      
      <<a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
      >
    </td>
    
    <td>
      The receipt of an EU withdrawal, with its date and time.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="waitlistconfirmation">
        
      </a>
      
       <code>
        waitlistConfirmation
      </code>
    </td>
    
    <td>
      (<code>
        data
      </code>
      
      , <code>
        context
      </code>
      
      ) => | <a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
       | <code>
        Promise
      </code>
      
      <<a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
      >
    </td>
    
    <td>
      Sent once to a person whose sign-in code checked while the app is in early access: their place, and the link that shows it again.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="waitlistfriendjoined">
        
      </a>
      
       <code>
        waitlistFriendJoined
      </code>
    </td>
    
    <td>
      (<code>
        data
      </code>
      
      , <code>
        context
      </code>
      
      ) => | <a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
       | <code>
        Promise
      </code>
      
      <<a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
      >
    </td>
    
    <td>
      Sent to a waiting person, at most once a day, when a friend joins with their link (<code>
        setupAccess({ waitlist: { boost: { notify: true } } })
      </code>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="waitlistadmitted">
        
      </a>
      
       <code>
        waitlistAdmitted
      </code>
    </td>
    
    <td>
      (<code>
        data
      </code>
      
      , <code>
        context
      </code>
      
      ) => | <a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
       | <code>
        Promise
      </code>
      
      <<a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
      >
    </td>
    
    <td>
      Sent once when an administrator admits a waitlist entry: a plain "You're in", with no token and no promotion.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="topicconfirmation">
        
      </a>
      
       <code>
        topicConfirmation
      </code>
    </td>
    
    <td>
      (<code>
        data
      </code>
      
      , <code>
        context
      </code>
      
      ) => | <a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
       | <code>
        Promise
      </code>
      
      <<a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
      >
    </td>
    
    <td>
      A double opt-in's confirmation: one button that joins the topic the person asked for.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="noticereceived">
        
      </a>
      
       <code>
        noticeReceived
      </code>
    </td>
    
    <td>
      (<code>
        data
      </code>
      
      , <code>
        context
      </code>
      
      ) => | <a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
       | <code>
        Promise
      </code>
      
      <<a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
      >
    </td>
    
    <td>
      Confirms to a notifier that their notice through the <code>
        report
      </code>
      
       page arrived (DSA Art. 16(4)).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="noticedecided">
        
      </a>
      
       <code>
        noticeDecided
      </code>
    </td>
    
    <td>
      (<code>
        data
      </code>
      
      , <code>
        context
      </code>
      
      ) => | <a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
       | <code>
        Promise
      </code>
      
      <<a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
      >
    </td>
    
    <td>
      Tells a notifier the decision on their notice and where they may take it (DSA Art. 16(5)).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="contentrestricted">
        
      </a>
      
       <code>
        contentRestricted
      </code>
    </td>
    
    <td>
      (<code>
        data
      </code>
      
      , <code>
        context
      </code>
      
      ) => | <a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
       | <code>
        Promise
      </code>
      
      <<a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
      >
    </td>
    
    <td>
      The statement of reasons to the person whose content was hidden, with the appeal link (DSA Art. 17).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="appealdecided">
        
      </a>
      
       <code>
        appealDecided
      </code>
    </td>
    
    <td>
      (<code>
        data
      </code>
      
      , <code>
        context
      </code>
      
      ) => | <a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
       | <code>
        Promise
      </code>
      
      <<a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
      >
    </td>
    
    <td>
      Tells the author the outcome of their appeal (DSA Art. 20).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="notification">
        
      </a>
      
       <code>
        notification
      </code>
    </td>
    
    <td>
      (<code>
        data
      </code>
      
      , <code>
        context
      </code>
      
      ) => | <a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
       | <code>
        Promise
      </code>
      
      <<a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
      >
    </td>
    
    <td>
      A notification by email, for every kind whose email channel the person keeps on: the kind's words, a button that opens it, and where to choose which notifications reach them by email. Switch on <code>
        data.type
      </code>
      
       to give a kind its own, and return <code>
        byDefault(data)
      </code>
      
       for the rest.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### TrustedHtml

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Markup [html](#html-1) inserts as it is: made by [trustedHtml](#trustedhtml-1).

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Modifier
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="trusted">
        
      </a>
      
       <code>
        [TRUSTED]
      </code>
    </td>
    
    <td>
      <code>
        readonly
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailPreview

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

**Experimental**

One packaged email, rendered with sample data: what a preview shows.

With the DevTools Email tab (STABILITY.md).

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="key">
        
      </a>
      
       <code>
        key
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <strong>
        <code>
          Experimental
        </code>
      </strong>
      
       Unique among the previews: the template's name, with its variant (<code>
        otp-sign-in
      </code>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="template">
        
      </a>
      
       <code>
        template
      </code>
    </td>
    
    <td>
      keyof <a href="#emailtemplates">
        <code>
          EmailTemplates
        </code>
      </a>
    </td>
    
    <td>
      <strong>
        <code>
          Experimental
        </code>
      </strong>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="variant">
        
      </a>
      
       <code>
        variant?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <strong>
        <code>
          Experimental
        </code>
      </strong>
      
       Which form of the template it is, where it has several: a code's purpose.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="note">
        
      </a>
      
       <code>
        note
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <strong>
        <code>
          Experimental
        </code>
      </strong>
      
       When the package sends it, in a sentence.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="locale-1">
        
      </a>
      
       <code>
        locale
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <strong>
        <code>
          Experimental
        </code>
      </strong>
      
       The language it is written in.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="to-1">
        
      </a>
      
       <code>
        to
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <strong>
        <code>
          Experimental
        </code>
      </strong>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="subject-1">
        
      </a>
      
       <code>
        subject
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <strong>
        <code>
          Experimental
        </code>
      </strong>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="html-4">
        
      </a>
      
       <code>
        html
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <strong>
        <code>
          Experimental
        </code>
      </strong>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="text-1">
        
      </a>
      
       <code>
        text
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <strong>
        <code>
          Experimental
        </code>
      </strong>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts" rel="nofollow">
        src/convex/email-templates.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailColors

Defined in: [src/convex/email-theme.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts)

The five colors of one color scheme of the layout. Each is a hex color: `#d500f9` or `#d0f`.

#### Extended by

- [`EmailScheme`](#emailscheme)

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="background">
        
      </a>
      
       <code>
        background
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The page behind the message.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts" rel="nofollow">
        src/convex/email-theme.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="card">
        
      </a>
      
       <code>
        card
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The card the message sits on.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts" rel="nofollow">
        src/convex/email-theme.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="text-2">
        
      </a>
      
       <code>
        text
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The message's text.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts" rel="nofollow">
        src/convex/email-theme.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="accent">
        
      </a>
      
       <code>
        accent
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The color of buttons and of the code block, and of the kicker's text.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts" rel="nofollow">
        src/convex/email-theme.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="accenttext">
        
      </a>
      
       <code>
        accentText
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The text on an <code>
        accent
      </code>
      
       background: a button's label, a code.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts" rel="nofollow">
        src/convex/email-theme.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailFonts

Defined in: [src/convex/email-theme.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts)

The font stacks of the layout: CSS `font-family` values.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="heading">
        
      </a>
      
       <code>
        heading
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The heading, the kicker, the code and the brand name in the header.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts" rel="nofollow">
        src/convex/email-theme.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="body">
        
      </a>
      
       <code>
        body
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Everything else.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts" rel="nofollow">
        src/convex/email-theme.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailTheme

Defined in: [src/convex/email-theme.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts)

The look of the emails the package sends and the ones you compose, as
`setupEmail`'s `theme` takes it. Every key is optional: what you leave out
keeps the package's default.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="colors">
        
      </a>
      
       <code>
        colors?
      </code>
    </td>
    
    <td>
      <code>
        Partial
      </code>
      
      <<a href="#emailcolors">
        <code>
          EmailColors
        </code>
      </a>
      
      >
    </td>
    
    <td>
      The light scheme, the default one.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts" rel="nofollow">
        src/convex/email-theme.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="dark">
        
      </a>
      
       <code>
        dark?
      </code>
    </td>
    
    <td>
      <code>
        Partial
      </code>
      
      <<a href="#emailcolors">
        <code>
          EmailColors
        </code>
      </a>
      
      >
    </td>
    
    <td>
      The dark scheme, for readers whose client honors <code>
        prefers-color-scheme
      </code>
      
      . What it leaves out is derived from <code>
        colors
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts" rel="nofollow">
        src/convex/email-theme.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="fonts">
        
      </a>
      
       <code>
        fonts?
      </code>
    </td>
    
    <td>
      <code>
        Partial
      </code>
      
      <<a href="#emailfonts">
        <code>
          EmailFonts
        </code>
      </a>
      
      >
    </td>
    
    <td>
      CSS font stacks; most mail clients load no web fonts, so end each with one every device has.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts" rel="nofollow">
        src/convex/email-theme.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailScheme

Defined in: [src/convex/email-theme.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts)

One color scheme as the layout renders it: the five colors, and two derived from them.

#### Extends

- [`EmailColors`](#emailcolors)

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Inherited from
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="background-1">
        
      </a>
      
       <code>
        background
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The page behind the message.
    </td>
    
    <td>
      <a href="#emailcolors">
        <code>
          EmailColors
        </code>
      </a>
      
      .<a href="#background">
        <code>
          background
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts" rel="nofollow">
        src/convex/email-theme.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="card-1">
        
      </a>
      
       <code>
        card
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The card the message sits on.
    </td>
    
    <td>
      <a href="#emailcolors">
        <code>
          EmailColors
        </code>
      </a>
      
      .<a href="#card">
        <code>
          card
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts" rel="nofollow">
        src/convex/email-theme.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="text-3">
        
      </a>
      
       <code>
        text
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The message's text.
    </td>
    
    <td>
      <a href="#emailcolors">
        <code>
          EmailColors
        </code>
      </a>
      
      .<a href="#text-2">
        <code>
          text
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts" rel="nofollow">
        src/convex/email-theme.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="accent-1">
        
      </a>
      
       <code>
        accent
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The color of buttons and of the code block, and of the kicker's text.
    </td>
    
    <td>
      <a href="#emailcolors">
        <code>
          EmailColors
        </code>
      </a>
      
      .<a href="#accent">
        <code>
          accent
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts" rel="nofollow">
        src/convex/email-theme.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="accenttext-1">
        
      </a>
      
       <code>
        accentText
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The text on an <code>
        accent
      </code>
      
       background: a button's label, a code.
    </td>
    
    <td>
      <a href="#emailcolors">
        <code>
          EmailColors
        </code>
      </a>
      
      .<a href="#accenttext">
        <code>
          accentText
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts" rel="nofollow">
        src/convex/email-theme.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="muted">
        
      </a>
      
       <code>
        muted
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Quiet text, such as small print and the footer: the text color toward the card's.
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts" rel="nofollow">
        src/convex/email-theme.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="rule">
        
      </a>
      
       <code>
        rule
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The card's border: the text color, mostly faded into the card's.
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts" rel="nofollow">
        src/convex/email-theme.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### ResolvedEmailTheme

Defined in: [src/convex/email-theme.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts)

The theme in effect: every color and font set. What `EmailRenderContext.theme` carries.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="colors-1">
        
      </a>
      
       <code>
        colors
      </code>
    </td>
    
    <td>
      <a href="#emailscheme">
        <code>
          EmailScheme
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts" rel="nofollow">
        src/convex/email-theme.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="dark-1">
        
      </a>
      
       <code>
        dark
      </code>
    </td>
    
    <td>
      <a href="#emailscheme">
        <code>
          EmailScheme
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts" rel="nofollow">
        src/convex/email-theme.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="fonts-1">
        
      </a>
      
       <code>
        fonts
      </code>
    </td>
    
    <td>
      <a href="#emailfonts">
        <code>
          EmailFonts
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-theme.ts" rel="nofollow">
        src/convex/email-theme.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### LiveAnnouncement

Defined in: [src/convex/integrations/announcements.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts)

One live announcement, as the notice shows it.

#### Extended by

- [`AnnouncementRow`](#announcementrow)

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="id">
        
      </a>
      
       <code>
        id
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="message">
        
      </a>
      
       <code>
        message
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The administrator's words.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="link-2">
        
      </a>
      
       <code>
        link?
      </code>
    </td>
    
    <td>
      { <code>
        url
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        label?
      </code>
      
      : <code>
        string
      </code>
      
      ; }
    </td>
    
    <td>
      Where it links: a path of the app or an <code>
        https:
      </code>
      
       URL, and its words (the <code>
        announcement.link
      </code>
      
       label without).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        link.url
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        link.label?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="expiresat">
        
      </a>
      
       <code>
        expiresAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When it goes away by itself, epoch ms.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="publishedat">
        
      </a>
      
       <code>
        publishedAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AnnouncementRow

Defined in: [src/convex/integrations/announcements.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts)

One announcement as the admin console lists it.

#### Extends

- [`LiveAnnouncement`](#liveannouncement)

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Inherited from
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="id-1">
        
      </a>
      
       <code>
        id
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="#liveannouncement">
        <code>
          LiveAnnouncement
        </code>
      </a>
      
      .<a href="#id">
        <code>
          id
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="message-1">
        
      </a>
      
       <code>
        message
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The administrator's words.
    </td>
    
    <td>
      <a href="#liveannouncement">
        <code>
          LiveAnnouncement
        </code>
      </a>
      
      .<a href="#message">
        <code>
          message
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="link-3">
        
      </a>
      
       <code>
        link?
      </code>
    </td>
    
    <td>
      { <code>
        url
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        label?
      </code>
      
      : <code>
        string
      </code>
      
      ; }
    </td>
    
    <td>
      Where it links: a path of the app or an <code>
        https:
      </code>
      
       URL, and its words (the <code>
        announcement.link
      </code>
      
       label without).
    </td>
    
    <td>
      <a href="#liveannouncement">
        <code>
          LiveAnnouncement
        </code>
      </a>
      
      .<a href="#link-2">
        <code>
          link
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        link.url
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        link.label?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="expiresat-1">
        
      </a>
      
       <code>
        expiresAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When it goes away by itself, epoch ms.
    </td>
    
    <td>
      <a href="#liveannouncement">
        <code>
          LiveAnnouncement
        </code>
      </a>
      
      .<a href="#expiresat">
        <code>
          expiresAt
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="publishedat-1">
        
      </a>
      
       <code>
        publishedAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="#liveannouncement">
        <code>
          LiveAnnouncement
        </code>
      </a>
      
      .<a href="#publishedat">
        <code>
          publishedAt
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="endedat">
        
      </a>
      
       <code>
        endedAt?
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When an administrator ended it early.
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="broadcast">
        
      </a>
      
       <code>
        broadcast?
      </code>
    </td>
    
    <td>
      { <code>
        audience
      </code>
      
      : <a href="#announcementaudience">
        <code>
          AnnouncementAudience
        </code>
      </a>
      
      ; <code>
        topic?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        subject
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        body
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        state
      </code>
      
      : <a href="#announcementbroadcaststate">
        <code>
          AnnouncementBroadcastState
        </code>
      </a>
      
      ; <code>
        sendAt?
      </code>
      
      : <code>
        number
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        broadcast.audience
      </code>
    </td>
    
    <td>
      <a href="#announcementaudience">
        <code>
          AnnouncementAudience
        </code>
      </a>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        broadcast.topic?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        broadcast.subject
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        broadcast.body
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        broadcast.state
      </code>
    </td>
    
    <td>
      <a href="#announcementbroadcaststate">
        <code>
          AnnouncementBroadcastState
        </code>
      </a>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        broadcast.sendAt?
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AnnouncementsConsole

Defined in: [src/convex/integrations/announcements.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts)

The Announcements tab's data.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="announcements">
        
      </a>
      
       <code>
        announcements
      </code>
    </td>
    
    <td>
      <a href="#announcementrow">
        <code>
          AnnouncementRow
        </code>
      </a>
      
      <span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="topics">
        
      </a>
      
       <code>
        topics
      </code>
    </td>
    
    <td>
      { <code>
        key
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        name
      </code>
      
      : <code>
        string
      </code>
      
      ; }<span>
        
      </span>
    </td>
    
    <td>
      The topics a broadcast to the accounts may go under.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="audiences">
        
      </a>
      
       <code>
        audiences
      </code>
    </td>
    
    <td>
      <code>
        Record
      </code>
      
      <<a href="#announcementaudience">
        <code>
          AnnouncementAudience
        </code>
      </a>
      
      , <code>
        boolean
      </code>
      
      >
    </td>
    
    <td>
      Whether each audience is ready at the provider: <code>
        email sync
      </code>
      
       made the accounts' segment, the waitlist's mirror its own.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="canbroadcast">
        
      </a>
      
       <code>
        canBroadcast
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Whether a broadcast may be sent from this deployment: only <code>
        production
      </code>
      
       sends one.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="postaladdress">
        
      </a>
      
       <code>
        postalAddress
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Whether the brand has the postal address every broadcast carries.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AnnouncementsApi

Defined in: [src/convex/integrations/announcements.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts)

The announcement functions `backend/email.ts` re-exports from `email.api`.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="getannouncements">
        
      </a>
      
       <code>
        getAnnouncements
      </code>
    </td>
    
    <td>
      <code>
        RegisteredQuery
      </code>
      
      <<code>
        "public"
      </code>
      
      , <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        never
      </code>
      
      >, <code>
        Promise
      </code>
      
      <<a href="#liveannouncement">
        <code>
          LiveAnnouncement
        </code>
      </a>
      
      <span>
        
      </span>
      
      >>
    </td>
    
    <td>
      The announcements the caller sees now, the newest first: <code>
        []
      </code>
      
       signed out.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="dismissannouncement">
        
      </a>
      
       <code>
        dismissAnnouncement
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <<code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      The caller dismisses an announcement: it stays dismissed for them.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="getannouncementsconsole">
        
      </a>
      
       <code>
        getAnnouncementsConsole
      </code>
    </td>
    
    <td>
      <code>
        RegisteredQuery
      </code>
      
      <<code>
        "public"
      </code>
      
      , <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        never
      </code>
      
      >, <code>
        Promise
      </code>
      
      <<a href="#announcementsconsole">
        <code>
          AnnouncementsConsole
        </code>
      </a>
      
       | <code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      The Announcements tab's data. <code>
        null
      </code>
      
       for anyone who is not an administrator now.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="publishannouncement">
        
      </a>
      
       <code>
        publishAnnouncement
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , <a href="#publishannouncementinput">
        <code>
          PublishAnnouncementInput
        </code>
      </a>
      
      , <code>
        Promise
      </code>
      
      <{ <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
      ; }>>
    </td>
    
    <td>
      Publish an announcement: its notice shows at once. An administrator's, in person, with a recent sign-in.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="endannouncement">
        
      </a>
      
       <code>
        endAnnouncement
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <{ <code>
        ended
      </code>
      
      : <code>
        boolean
      </code>
      
      ; }>>
    </td>
    
    <td>
      End an announcement's notice before it expires. An administrator's, in person, with a recent sign-in.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="previewannouncement">
        
      </a>
      
       <code>
        previewAnnouncement
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <{ <code>
        emailId
      </code>
      
      : <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      ; }>>
    </td>
    
    <td>
      Send yourself the broadcast as a transactional email, in test mode outside production. An administrator's, in person.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="sendannouncement">
        
      </a>
      
       <code>
        sendAnnouncement
      </code>
    </td>
    
    <td>
      <code>
        RegisteredAction
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        scheduledAt?
      </code>
      
      : <code>
        number
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <{ <code>
        sendAt
      </code>
      
      : <code>
        number
      </code>
      
       | <code>
        null
      </code>
      
      ; }>>
    </td>
    
    <td>
      Send an announcement's broadcast, now or at <code>
        scheduledAt
      </code>
      
      : created at the provider once and sent by its id, so a retry never sends it twice. Refused outside <code>
        production
      </code>
      
      . An administrator's, in person.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="cancelannouncement">
        
      </a>
      
       <code>
        cancelAnnouncement
      </code>
    </td>
    
    <td>
      <code>
        RegisteredAction
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <{ <code>
        cancelled
      </code>
      
      : <code>
        boolean
      </code>
      
      ; }>>
    </td>
    
    <td>
      Cancel a broadcast that has not gone out. An administrator's, in person.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### LifecycleFlowOptions

Defined in: [src/convex/integrations/email-lifecycle.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-lifecycle.ts)

One flow's options: the topic a lifecycle or marketing flow goes under, the app's event that starts it, the days of a win-back.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="topic-1">
        
      </a>
      
       <code>
        topic?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The topic (<code>
        setupEmail({ topics })
      </code>
      
      ) a lifecycle or marketing flow goes under: required for them.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-lifecycle.ts" rel="nofollow">
        src/convex/integrations/email-lifecycle.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="event">
        
      </a>
      
       <code>
        event?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The app's own event that starts it (<code>
        firstResult
      </code>
      
      , <code>
        reviewAsk
      </code>
      
      ), as <code>
        email.automations.track
      </code>
      
       sends it: <code>
        app.strip_ready
      </code>
      
      . <code>
        reviewAsk
      </code>
      
       starts on the account's activation without one.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-lifecycle.ts" rel="nofollow">
        src/convex/integrations/email-lifecycle.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="until">
        
      </a>
      
       <code>
        until?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      For <code>
        activationNudge
      </code>
      
      : the app's event that says the person created something, which stops the nudge. Default: <code>
        firstResult
      </code>
      
      's event.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-lifecycle.ts" rel="nofollow">
        src/convex/integrations/email-lifecycle.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="days-1">
        
      </a>
      
       <code>
        days?
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      For <code>
        winBack
      </code>
      
      : the days after the plan ended each email goes, 1 to 3 of them. Default <code>
        [7, 30]
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-lifecycle.ts" rel="nofollow">
        src/convex/integrations/email-lifecycle.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailAutomations

Defined in: [src/convex/integrations/email-lifecycle.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-lifecycle.ts)

Events the app sends the email provider's automations for one account's contact.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="track">
        
      </a>
      
       <code>
        track
      </code>
    </td>
    
    <td>
      (<code>
        ctx
      </code>
      
      , <code>
        input
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        void
      </code>
      
      >
    </td>
    
    <td>
      Send one event to the email provider for the account's contact (by <code>
        userId
      </code>
      
      , or an <code>
        email
      </code>
      
       with no account), with <code>
        data
      </code>
      
       for its automations' conditions and templates. The contact is made when there is none, in the app's segment; the provider gets the event by a job right after, so <code>
        track
      </code>
      
       returns at once. Nothing is forwarded on its own. Refused as <code>
        invalid_input
      </code>
      
       (<code>
        event
      </code>
      
      , reason <code>
        billing_event
      </code>
      
      ) for a billing event, which the billing provider's own emails cover, and (reason <code>
        reserved
      </code>
      
      ) for the package's <code>
        lifecycle.
      </code>
      
       and the provider's <code>
        resend:
      </code>
      
       names. An event a ready-made flow names (<code>
        firstResult
      </code>
      
      's) starts and stops that flow too.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-lifecycle.ts" rel="nofollow">
        src/convex/integrations/email-lifecycle.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailTopicPreference

Defined in: [src/convex/integrations/email-preferences.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-preferences.ts)

One topic as a person's preferences show it.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="key-1">
        
      </a>
      
       <code>
        key
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-preferences.ts" rel="nofollow">
        src/convex/integrations/email-preferences.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="name-3">
        
      </a>
      
       <code>
        name
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-preferences.ts" rel="nofollow">
        src/convex/integrations/email-preferences.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="description-1">
        
      </a>
      
       <code>
        description
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-preferences.ts" rel="nofollow">
        src/convex/integrations/email-preferences.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="subscribed">
        
      </a>
      
       <code>
        subscribed
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Whether the person gets the topic's email.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-preferences.ts" rel="nofollow">
        src/convex/integrations/email-preferences.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="pending">
        
      </a>
      
       <code>
        pending
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Asked to join, waiting for the confirmation click of a double opt-in.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-preferences.ts" rel="nofollow">
        src/convex/integrations/email-preferences.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailLinkView

Defined in: [src/convex/integrations/email-preferences.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-preferences.ts)

What an unsubscribe or confirmation link opens: the topic it names (`null` for every topic) and where it stands.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="kind">
        
      </a>
      
       <code>
        kind
      </code>
    </td>
    
    <td>
      <code>
        "confirm"
      </code>
      
       | <code>
        "unsubscribe"
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-preferences.ts" rel="nofollow">
        src/convex/integrations/email-preferences.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="topic-2">
        
      </a>
      
       <code>
        topic
      </code>
    </td>
    
    <td>
      | { <code>
        key
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        name
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        description
      </code>
      
      : <code>
        string
      </code>
      
      ; } | <code>
        null
      </code>
    </td>
    
    <td>
      The topic, or <code>
        null
      </code>
      
       for an unsubscribe link from every topic.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-preferences.ts" rel="nofollow">
        src/convex/integrations/email-preferences.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="subscribed-1">
        
      </a>
      
       <code>
        subscribed
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      For an unsubscribe link: whether the person still gets the topic's email (any topic, for every topic).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-preferences.ts" rel="nofollow">
        src/convex/integrations/email-preferences.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailPreferencesApi

Defined in: [src/convex/integrations/email-preferences.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-preferences.ts)

The preference center's public functions, which `backend/email.ts` re-exports from `email.api`.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="getemailpreferences">
        
      </a>
      
       <code>
        getEmailPreferences
      </code>
    </td>
    
    <td>
      <code>
        RegisteredQuery
      </code>
      
      <<code>
        "public"
      </code>
      
      , <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        never
      </code>
      
      >, <code>
        Promise
      </code>
      
      <<a href="#emailtopicpreference">
        <code>
          EmailTopicPreference
        </code>
      </a>
      
      <span>
        
      </span>
      
       | <code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      The caller's topics, with their words and the caller's choice. <code>
        null
      </code>
      
       signed out.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-preferences.ts" rel="nofollow">
        src/convex/integrations/email-preferences.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="setemailtopic">
        
      </a>
      
       <code>
        setEmailTopic
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        topic
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        subscribed
      </code>
      
      : <code>
        boolean
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <{ <code>
        state
      </code>
      
      : <a href="#topicstate">
        <code>
          TopicState
        </code>
      </a>
      
      ; }>>
    </td>
    
    <td>
      The caller joins or leaves one topic. Joining a topic with double opt-in sends its confirmation and answers <code>
        pending
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-preferences.ts" rel="nofollow">
        src/convex/integrations/email-preferences.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="unsubscribealltopics">
        
      </a>
      
       <code>
        unsubscribeAllTopics
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        never
      </code>
      
      >, <code>
        Promise
      </code>
      
      <<code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      The caller leaves every topic.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-preferences.ts" rel="nofollow">
        src/convex/integrations/email-preferences.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="getemaillink">
        
      </a>
      
       <code>
        getEmailLink
      </code>
    </td>
    
    <td>
      <code>
        RegisteredQuery
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        token?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        confirm?
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <<a href="#emaillinkview">
        <code>
          EmailLinkView
        </code>
      </a>
      
       | <code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      What an unsubscribe link (<code>
        token
      </code>
      
      ) or a confirmation link (<code>
        confirm
      </code>
      
      ) names; <code>
        null
      </code>
      
       for one that does not work. Anyone may read it: the token is the proof.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-preferences.ts" rel="nofollow">
        src/convex/integrations/email-preferences.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="unsubscribebylink">
        
      </a>
      
       <code>
        unsubscribeByLink
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        token
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        all?
      </code>
      
      : <code>
        boolean
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <<code>
        boolean
      </code>
      
      >>
    </td>
    
    <td>
      Leave the topic an unsubscribe link names, or every topic with <code>
        all
      </code>
      
      . Answers <code>
        true
      </code>
      
       whether or not the link named anyone, so it reveals nothing.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-preferences.ts" rel="nofollow">
        src/convex/integrations/email-preferences.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="confirmemailtopic">
        
      </a>
      
       <code>
        confirmEmailTopic
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        confirm
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <<code>
        "nothing"
      </code>
      
       | <code>
        "confirmed"
      </code>
      
      >>
    </td>
    
    <td>
      The confirmation click of a double opt-in: <code>
        confirmed
      </code>
      
      , or <code>
        nothing
      </code>
      
       for a link used, lapsed or unknown.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-preferences.ts" rel="nofollow">
        src/convex/integrations/email-preferences.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="recordtimezone">
        
      </a>
      
       <code>
        recordTimeZone
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        timeZone
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <<code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      The time zone of the caller's browser, which quiet hours read. The sign-in flow calls it.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-preferences.ts" rel="nofollow">
        src/convex/integrations/email-preferences.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### Suppression

Defined in: [src/convex/integrations/email-suppressions.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-suppressions.ts)

One suppressed address, as the admin console lists it.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email-20">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-suppressions.ts" rel="nofollow">
        src/convex/integrations/email-suppressions.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="origin">
        
      </a>
      
       <code>
        origin
      </code>
    </td>
    
    <td>
      <a href="#suppressionorigin">
        <code>
          SuppressionOrigin
        </code>
      </a>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-suppressions.ts" rel="nofollow">
        src/convex/integrations/email-suppressions.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="suppressedat">
        
      </a>
      
       <code>
        suppressedAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When the provider suppressed it, epoch ms.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-suppressions.ts" rel="nofollow">
        src/convex/integrations/email-suppressions.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### SuppressionsPage

Defined in: [src/convex/integrations/email-suppressions.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-suppressions.ts)

A page of suppressed addresses, newest first.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="page">
        
      </a>
      
       <code>
        page
      </code>
    </td>
    
    <td>
      <a href="#suppression">
        <code>
          Suppression
        </code>
      </a>
      
      <span>
        
      </span>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-suppressions.ts" rel="nofollow">
        src/convex/integrations/email-suppressions.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="isdone">
        
      </a>
      
       <code>
        isDone
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-suppressions.ts" rel="nofollow">
        src/convex/integrations/email-suppressions.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="continuecursor">
        
      </a>
      
       <code>
        continueCursor
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-suppressions.ts" rel="nofollow">
        src/convex/integrations/email-suppressions.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### SuppressionsApi

Defined in: [src/convex/integrations/email-suppressions.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-suppressions.ts)

The functions `setupEmail` adds to `email.api` for the Suppressions tab.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="getsuppressions">
        
      </a>
      
       <code>
        getSuppressions
      </code>
    </td>
    
    <td>
      <code>
        RegisteredQuery
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        paginationOpts
      </code>
      
      : { <code>
        id?
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        endCursor?
      </code>
      
      : <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      ; <code>
        maximumRowsRead?
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        maximumBytesRead?
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        numItems
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        cursor
      </code>
      
      : <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      ; }; }, <code>
        Promise
      </code>
      
      <<a href="#suppressionspage">
        <code>
          SuppressionsPage
        </code>
      </a>
      
       | <code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      The addresses the provider suppressed, newest first, a page at a time: a paginated query. <code>
        null
      </code>
      
       to anyone but an administrator in person.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-suppressions.ts" rel="nofollow">
        src/convex/integrations/email-suppressions.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="liftsuppression">
        
      </a>
      
       <code>
        liftSuppression
      </code>
    </td>
    
    <td>
      <code>
        RegisteredAction
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        email
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <{ <code>
        lifted
      </code>
      
      : <code>
        boolean
      </code>
      
      ; }>>
    </td>
    
    <td>
      Lift an address's suppression through the provider, so mail reaches it again: an administrator's write, behind a recent sign-in, recorded on the activity trail.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-suppressions.ts" rel="nofollow">
        src/convex/integrations/email-suppressions.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailContactProperty

Defined in: [src/convex/integrations/email-sync.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts)

One contact property the app keeps on each contact: a value lifecycle email and broadcasts can read.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="type-2">
        
      </a>
      
       <code>
        type
      </code>
    </td>
    
    <td>
      <code>
        "string"
      </code>
      
       | <code>
        "number"
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="fallback">
        
      </a>
      
       <code>
        fallback?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        number
      </code>
    </td>
    
    <td>
      What a contact without a value reads.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailSyncLogEntry

Defined in: [src/convex/integrations/email-sync.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts)

One step of the sync, as the CLI's log shows it.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="action">
        
      </a>
      
       <code>
        action
      </code>
    </td>
    
    <td>
      <a href="#emailsyncaction">
        <code>
          EmailSyncAction
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="kind-1">
        
      </a>
      
       <code>
        kind
      </code>
    </td>
    
    <td>
      <code>
        "topic"
      </code>
      
       | <code>
        "segment"
      </code>
      
       | <code>
        "property"
      </code>
      
       | <code>
        "template"
      </code>
      
       | <code>
        "automation"
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="key-2">
        
      </a>
      
       <code>
        key
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="id-2">
        
      </a>
      
       <code>
        id?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="note-1">
        
      </a>
      
       <code>
        note?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailSyncReport

Defined in: [src/convex/integrations/email-sync.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts)

What `email sync` found and did. `webhook.secret` is the new endpoint's signing secret, for the CLI to store; it is never printed.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="dryrun">
        
      </a>
      
       <code>
        dryRun
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="key-3">
        
      </a>
      
       <code>
        key
      </code>
    </td>
    
    <td>
      <code>
        "missing"
      </code>
      
       | <code>
        "full"
      </code>
      
       | <code>
        "restricted"
      </code>
    </td>
    
    <td>
      The key's reach: <code>
        full
      </code>
      
       manages topics and contacts, <code>
        restricted
      </code>
      
       only sends, <code>
        missing
      </code>
      
       is no key.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="log">
        
      </a>
      
       <code>
        log
      </code>
    </td>
    
    <td>
      <a href="#emailsynclogentry">
        <code>
          EmailSyncLogEntry
        </code>
      </a>
      
      <span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="ids">
        
      </a>
      
       <code>
        ids?
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "topic"
      </code>
      
       | <code>
        "segment"
      </code>
      
      ; <code>
        key
      </code>
      
      : <code>
        string
      </code>
      
      ; }<span>
        
      </span>
    </td>
    
    <td>
      The provider ids the sync stores on the deployment (on a dry run, would store) for the topics and the segment it found or made: one found by name, or a topic whose words changed since its id was stored. A dry run that finds everything at the provider may still have ids to store. Absent when the sync did not reach them (no full-access key, or a sync of the webhook alone), and from a backend older than it.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="webhook">
        
      </a>
      
       <code>
        webhook
      </code>
    </td>
    
    <td>
      { <code>
        url
      </code>
      
      : <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      ; <code>
        action
      </code>
      
      : | <code>
        "missing"
      </code>
      
       | <code>
        "created"
      </code>
      
       | <code>
        "skipped"
      </code>
      
       | <code>
        "updated"
      </code>
      
       | <code>
        "exists"
      </code>
      
       | <code>
        "would-create"
      </code>
      
       | <code>
        "would-update"
      </code>
      
      ; <code>
        missingEvents
      </code>
      
      : <code>
        string
      </code>
      
      <span>
        
      </span>
      
      ; <code>
        enabled?
      </code>
      
      : <code>
        boolean
      </code>
      
      ; <code>
        changed?
      </code>
      
      : <code>
        "enabled"
      </code>
      
       | <code>
        "would-enable"
      </code>
      
       | <code>
        "secret-rotated"
      </code>
      
       | <code>
        "would-rotate"
      </code>
      
      ; <code>
        secret?
      </code>
      
      : <code>
        string
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        webhook.url
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        webhook.action
      </code>
    </td>
    
    <td>
      | <code>
        "missing"
      </code>
      
       | <code>
        "created"
      </code>
      
       | <code>
        "skipped"
      </code>
      
       | <code>
        "updated"
      </code>
      
       | <code>
        "exists"
      </code>
      
       | <code>
        "would-create"
      </code>
      
       | <code>
        "would-update"
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        webhook.missingEvents
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        webhook.enabled?
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Whether the provider delivers to it: it turns off a webhook that keeps failing. Absent until the webhook is found.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        webhook.changed?
      </code>
    </td>
    
    <td>
      <code>
        "enabled"
      </code>
      
       | <code>
        "would-enable"
      </code>
      
       | <code>
        "secret-rotated"
      </code>
      
       | <code>
        "would-rotate"
      </code>
    </td>
    
    <td>
      What became of its delivery switch or its signing secret, when the sync was asked to change one.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        webhook.secret?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="senders">
        
      </a>
      
       <code>
        senders
      </code>
    </td>
    
    <td>
      { <code>
        variable
      </code>
      
      : <code>
        "EMAIL_FROM"
      </code>
      
       | <code>
        "EMAIL_MARKETING_FROM"
      </code>
      
      ; <code>
        domain
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        region
      </code>
      
      : <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      ; <code>
        dmarc
      </code>
      
      : <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      ; }<span>
        
      </span>
    </td>
    
    <td>
      Each sender's domain, its sending region and DMARC policy (<code>
        null
      </code>
      
      : none found).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="region">
        
      </a>
      
       <code>
        region
      </code>
    </td>
    
    <td>
      { <code>
        expected
      </code>
      
      : <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      ; <code>
        actual
      </code>
      
      : <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      ; }
    </td>
    
    <td>
      <code>
        EMAIL_REGION
      </code>
      
       against the transactional sender's domain.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        region.expected
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        region.actual
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="topics-1">
        
      </a>
      
       <code>
        topics
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      How many topics <code>
        setupEmail
      </code>
      
       declares, and whether the brand has a postal address.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="postaladdress-1">
        
      </a>
      
       <code>
        postalAddress
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="flows">
        
      </a>
      
       <code>
        flows
      </code>
    </td>
    
    <td>
      { <code>
        declared
      </code>
      
      : <code>
        string
      </code>
      
      <span>
        
      </span>
      
      ; <code>
        unsynced
      </code>
      
      : <code>
        string
      </code>
      
      <span>
        
      </span>
      
      ; <code>
        retired?
      </code>
      
      : <code>
        string
      </code>
      
      <span>
        
      </span>
      
      ; }
    </td>
    
    <td>
      The lifecycle flows <code>
        setupEmail
      </code>
      
       turns on, those the deployment does not run as the code declares them, and those it still runs that the code no longer declares (<code>
        retired
      </code>
      
      ): <code>
        email sync
      </code>
      
       has not run since they changed. <code>
        retired
      </code>
      
       is absent from a backend older than it.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        flows.declared
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        flows.unsynced
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        flows.retired?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts" rel="nofollow">
        src/convex/integrations/email-sync.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailComponents

Defined in: [src/convex/integrations/email.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts)

The component handle `setupEmail` reads from your generated `components`
object: the package's all-in-one `backend` component, whose email functions
the app reaches as `components.backend.email.*` (see
`src/convex/components/backend/email.ts`). Pass the whole `components`
object — the key is picked structurally.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="backend">
        
      </a>
      
       <code>
        backend
      </code>
    </td>
    
    <td>
      { <code>
        email
      </code>
      
      : { <code>
        send
      </code>
      
      : <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "mutation"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , <a href="#sendemailoptions">
        <code>
          SendEmailOptions
        </code>
      </a>
      
       & { <code>
        retention?
      </code>
      
      : <a href="#emailretention">
        <code>
          EmailRetention
        </code>
      </a>
      
      ; <code>
        expiresAt?
      </code>
      
      : <code>
        number
      </code>
      
      ; }, <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      >; <code>
        sendSecret
      </code>
      
      : <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "mutation"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , <a href="#sendemailoptions">
        <code>
          SendEmailOptions
        </code>
      </a>
      
       & { <code>
        retention?
      </code>
      
      : <a href="#emailretention">
        <code>
          EmailRetention
        </code>
      </a>
      
      ; <code>
        expiresAt?
      </code>
      
      : <code>
        number
      </code>
      
      ; }, <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      >; <code>
        status
      </code>
      
      : <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "query"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , { <code>
        emailId
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <a href="#emailstatus">
        <code>
          EmailStatus
        </code>
      </a>
      
       | <code>
        null
      </code>
      
      >; <code>
        get
      </code>
      
      : <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "query"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , { <code>
        emailId
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <a href="#emailrecord">
        <code>
          EmailRecord
        </code>
      </a>
      
       | <code>
        null
      </code>
      
      >; <code>
        cancel
      </code>
      
      : <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "mutation"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , { <code>
        emailId
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        null
      </code>
      
      >; <code>
        cleanup
      </code>
      
      : <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "mutation"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , { <code>
        olderThanMs?
      </code>
      
      : <code>
        number
      </code>
      
      ; }, <code>
        null
      </code>
      
      >; <code>
        cleanupAbandoned
      </code>
      
      : <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "mutation"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , { <code>
        olderThanMs?
      </code>
      
      : <code>
        number
      </code>
      
      ; }, <code>
        null
      </code>
      
      >; <code>
        handleWebhook
      </code>
      
      : <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "action"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , { <code>
        body
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        headers
      </code>
      
      : <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        string
      </code>
      
      >; }, { <code>
        status
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        body
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        type?
      </code>
      
      : <code>
        string
      </code>
      
      ; }>; <code>
        inbox
      </code>
      
      : <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "action"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , { <code>
        address
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <a href="#sandboxmessage">
        <code>
          SandboxMessage
        </code>
      </a>
      
      <span>
        
      </span>
      
      >; }; <code>
        webhooks
      </code>
      
      : <code>
        WebhookLogRefs
      </code>
      
      ; <code>
        preferences?
      </code>
      
      : <code>
        unknown
      </code>
      
      ; <code>
        announcements?
      </code>
      
      : <code>
        unknown
      </code>
      
      ; <code>
        suppressions?
      </code>
      
      : <code>
        unknown
      </code>
      
      ; <code>
        waitlist?
      </code>
      
      : <code>
        unknown
      </code>
      
      ; <code>
        lifecycle?
      </code>
      
      : <code>
        unknown
      </code>
      
      ; <code>
        inbound?
      </code>
      
      : <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        unknown
      </code>
      
      >; <code>
        adapter?
      </code>
      
      : { <code>
        findOne
      </code>
      
      : <code>
        unknown
      </code>
      
      ; }; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend.email
      </code>
    </td>
    
    <td>
      { <code>
        send
      </code>
      
      : <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "mutation"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , <a href="#sendemailoptions">
        <code>
          SendEmailOptions
        </code>
      </a>
      
       & { <code>
        retention?
      </code>
      
      : <a href="#emailretention">
        <code>
          EmailRetention
        </code>
      </a>
      
      ; <code>
        expiresAt?
      </code>
      
      : <code>
        number
      </code>
      
      ; }, <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      >; <code>
        sendSecret
      </code>
      
      : <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "mutation"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , <a href="#sendemailoptions">
        <code>
          SendEmailOptions
        </code>
      </a>
      
       & { <code>
        retention?
      </code>
      
      : <a href="#emailretention">
        <code>
          EmailRetention
        </code>
      </a>
      
      ; <code>
        expiresAt?
      </code>
      
      : <code>
        number
      </code>
      
      ; }, <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      >; <code>
        status
      </code>
      
      : <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "query"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , { <code>
        emailId
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <a href="#emailstatus">
        <code>
          EmailStatus
        </code>
      </a>
      
       | <code>
        null
      </code>
      
      >; <code>
        get
      </code>
      
      : <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "query"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , { <code>
        emailId
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <a href="#emailrecord">
        <code>
          EmailRecord
        </code>
      </a>
      
       | <code>
        null
      </code>
      
      >; <code>
        cancel
      </code>
      
      : <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "mutation"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , { <code>
        emailId
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        null
      </code>
      
      >; <code>
        cleanup
      </code>
      
      : <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "mutation"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , { <code>
        olderThanMs?
      </code>
      
      : <code>
        number
      </code>
      
      ; }, <code>
        null
      </code>
      
      >; <code>
        cleanupAbandoned
      </code>
      
      : <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "mutation"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , { <code>
        olderThanMs?
      </code>
      
      : <code>
        number
      </code>
      
      ; }, <code>
        null
      </code>
      
      >; <code>
        handleWebhook
      </code>
      
      : <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "action"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , { <code>
        body
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        headers
      </code>
      
      : <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        string
      </code>
      
      >; }, { <code>
        status
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        body
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        type?
      </code>
      
      : <code>
        string
      </code>
      
      ; }>; <code>
        inbox
      </code>
      
      : <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "action"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , { <code>
        address
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <a href="#sandboxmessage">
        <code>
          SandboxMessage
        </code>
      </a>
      
      <span>
        
      </span>
      
      >; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend.email.send
      </code>
    </td>
    
    <td>
      <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "mutation"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , <a href="#sendemailoptions">
        <code>
          SendEmailOptions
        </code>
      </a>
      
       & { <code>
        retention?
      </code>
      
      : <a href="#emailretention">
        <code>
          EmailRetention
        </code>
      </a>
      
      ; <code>
        expiresAt?
      </code>
      
      : <code>
        number
      </code>
      
      ; }, <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      >
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend.email.sendSecret
      </code>
    </td>
    
    <td>
      <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "mutation"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , <a href="#sendemailoptions">
        <code>
          SendEmailOptions
        </code>
      </a>
      
       & { <code>
        retention?
      </code>
      
      : <a href="#emailretention">
        <code>
          EmailRetention
        </code>
      </a>
      
      ; <code>
        expiresAt?
      </code>
      
      : <code>
        number
      </code>
      
      ; }, <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      >
    </td>
    
    <td>
      A send that leaves no record: the <code>
        otp
      </code>
      
       template's codes.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend.email.status
      </code>
    </td>
    
    <td>
      <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "query"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , { <code>
        emailId
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <a href="#emailstatus">
        <code>
          EmailStatus
        </code>
      </a>
      
       | <code>
        null
      </code>
      
      >
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend.email.get
      </code>
    </td>
    
    <td>
      <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "query"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , { <code>
        emailId
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <a href="#emailrecord">
        <code>
          EmailRecord
        </code>
      </a>
      
       | <code>
        null
      </code>
      
      >
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend.email.cancel
      </code>
    </td>
    
    <td>
      <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "mutation"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , { <code>
        emailId
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        null
      </code>
      
      >
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend.email.cleanup
      </code>
    </td>
    
    <td>
      <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "mutation"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , { <code>
        olderThanMs?
      </code>
      
      : <code>
        number
      </code>
      
      ; }, <code>
        null
      </code>
      
      >
    </td>
    
    <td>
      Pruning of the provider component's email records, which the component's maintenance also runs.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend.email.cleanupAbandoned
      </code>
    </td>
    
    <td>
      <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "mutation"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , { <code>
        olderThanMs?
      </code>
      
      : <code>
        number
      </code>
      
      ; }, <code>
        null
      </code>
      
      >
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend.email.handleWebhook
      </code>
    </td>
    
    <td>
      <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "action"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , { <code>
        body
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        headers
      </code>
      
      : <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        string
      </code>
      
      >; }, { <code>
        status
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        body
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        type?
      </code>
      
      : <code>
        string
      </code>
      
      ; }>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend.email.inbox
      </code>
    </td>
    
    <td>
      <a href="https://docs.convex.dev/api/modules/server#functionreference" rel="nofollow">
        <code>
          FunctionReference
        </code>
      </a>
      
      <<code>
        "action"
      </code>
      
      , <code>
        "internal"
      </code>
      
      , { <code>
        address
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <a href="#sandboxmessage">
        <code>
          SandboxMessage
        </code>
      </a>
      
      <span>
        
      </span>
      
      >
    </td>
    
    <td>
      The dev inbox: the mail a test address received, read from the provider's log of sent email (test mode only).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend.webhooks
      </code>
    </td>
    
    <td>
      <code>
        WebhookLogRefs
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend.preferences?
      </code>
    </td>
    
    <td>
      <code>
        unknown
      </code>
    </td>
    
    <td>
      Each person's topic choices and the sending rules' counts (<code>
        setupEmail({ topics, caps })
      </code>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend.announcements?
      </code>
    </td>
    
    <td>
      <code>
        unknown
      </code>
    </td>
    
    <td>
      The announcements the admin console publishes, and their broadcasts.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend.suppressions?
      </code>
    </td>
    
    <td>
      <code>
        unknown
      </code>
    </td>
    
    <td>
      The provider's suppression list, mirrored from its webhook events: what sign-in reads before it sends a code.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend.waitlist?
      </code>
    </td>
    
    <td>
      <code>
        unknown
      </code>
    </td>
    
    <td>
      The waitlist, whose launch-news contacts a launch announcement goes to.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend.lifecycle?
      </code>
    </td>
    
    <td>
      <code>
        unknown
      </code>
    </td>
    
    <td>
      Each person's runs of the lifecycle flows, and the events <code>
        email.automations.track
      </code>
      
       sends.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend.inbound?
      </code>
    </td>
    
    <td>
      <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        unknown
      </code>
      
      >
    </td>
    
    <td>
      The contact form and inbound mail, in a backend component that has them; <code>
        setupEmail({ inbound, contact })
      </code>
      
       needs it.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend.adapter?
      </code>
    </td>
    
    <td>
      { <code>
        findOne
      </code>
      
      : <code>
        unknown
      </code>
      
      ; }
    </td>
    
    <td>
      The auth tables' reader, where the recipient's language and the sender's are read (<code>
        user.locale
      </code>
      
      ). The generated <code>
        components
      </code>
      
       object has it; without it, every email is written in the default locale.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend.adapter.findOne
      </code>
    </td>
    
    <td>
      <code>
        unknown
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="ratelimiter">
        
      </a>
      
       <code>
        rateLimiter?
      </code>
    </td>
    
    <td>
      <code>
        unknown
      </code>
    </td>
    
    <td>
      The rate limiter component, when the app mounts one: the contact form and inbound mail spend its limits.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### SandboxMessage

Defined in: [src/convex/integrations/email.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts)

A message in the dev inbox: what test mode sent to one of the provider's
test addresses (`delivered+label@resend.dev`) within the last hour, read
back from the provider's log of sent email. Only the newest carries its
body. Part of the experimental dev inbox (`useSandboxInbox`, STABILITY.md).

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="from-1">
        
      </a>
      
       <code>
        from
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="subject-2">
        
      </a>
      
       <code>
        subject
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="text-4">
        
      </a>
      
       <code>
        text?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="html-5">
        
      </a>
      
       <code>
        html?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="receivedat">
        
      </a>
      
       <code>
        receivedAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When it was sent, as epoch ms.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailStatus

Defined in: [src/convex/integrations/email.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts)

A sent email's delivery state, as the component `status` query returns it.

#### Extended by

- [`EmailRecord`](#emailrecord)

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="status">
        
      </a>
      
       <code>
        status
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="errormessage">
        
      </a>
      
       <code>
        errorMessage
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="bounced">
        
      </a>
      
       <code>
        bounced
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="complained">
        
      </a>
      
       <code>
        complained
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="failed">
        
      </a>
      
       <code>
        failed
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="deliverydelayed">
        
      </a>
      
       <code>
        deliveryDelayed
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="opened">
        
      </a>
      
       <code>
        opened
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="clicked">
        
      </a>
      
       <code>
        clicked
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailRecord

Defined in: [src/convex/integrations/email.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts)

A sent email's record, as the component `get` query returns it.

#### Extends

- [`EmailStatus`](#emailstatus)

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Inherited from
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="status-1">
        
      </a>
      
       <code>
        status
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="#emailstatus">
        <code>
          EmailStatus
        </code>
      </a>
      
      .<a href="#status">
        <code>
          status
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="errormessage-1">
        
      </a>
      
       <code>
        errorMessage
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="#emailstatus">
        <code>
          EmailStatus
        </code>
      </a>
      
      .<a href="#errormessage">
        <code>
          errorMessage
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="bounced-1">
        
      </a>
      
       <code>
        bounced
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="#emailstatus">
        <code>
          EmailStatus
        </code>
      </a>
      
      .<a href="#bounced">
        <code>
          bounced
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="complained-1">
        
      </a>
      
       <code>
        complained
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="#emailstatus">
        <code>
          EmailStatus
        </code>
      </a>
      
      .<a href="#complained">
        <code>
          complained
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="failed-1">
        
      </a>
      
       <code>
        failed
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="#emailstatus">
        <code>
          EmailStatus
        </code>
      </a>
      
      .<a href="#failed">
        <code>
          failed
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="deliverydelayed-1">
        
      </a>
      
       <code>
        deliveryDelayed
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="#emailstatus">
        <code>
          EmailStatus
        </code>
      </a>
      
      .<a href="#deliverydelayed">
        <code>
          deliveryDelayed
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="opened-1">
        
      </a>
      
       <code>
        opened
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="#emailstatus">
        <code>
          EmailStatus
        </code>
      </a>
      
      .<a href="#opened">
        <code>
          opened
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="clicked-1">
        
      </a>
      
       <code>
        clicked
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="#emailstatus">
        <code>
          EmailStatus
        </code>
      </a>
      
      .<a href="#clicked">
        <code>
          clicked
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="from-2">
        
      </a>
      
       <code>
        from
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="to-2">
        
      </a>
      
       <code>
        to
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="cc">
        
      </a>
      
       <code>
        cc?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="bcc">
        
      </a>
      
       <code>
        bcc?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="subject-3">
        
      </a>
      
       <code>
        subject?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="replyto">
        
      </a>
      
       <code>
        replyTo
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="html-6">
        
      </a>
      
       <code>
        html?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="text-5">
        
      </a>
      
       <code>
        text?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="template-1">
        
      </a>
      
       <code>
        template?
      </code>
    </td>
    
    <td>
      { <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        variables?
      </code>
      
      : <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        string
      </code>
      
       | <code>
        number
      </code>
      
      >; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        template.id
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        template.variables?
      </code>
    </td>
    
    <td>
      <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        string
      </code>
      
       | <code>
        number
      </code>
      
      >
    </td>
    
    <td>
      -
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="headers">
        
      </a>
      
       <code>
        headers?
      </code>
    </td>
    
    <td>
      { <code>
        name
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        value
      </code>
      
      : <code>
        string
      </code>
      
      ; }<span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="createdat">
        
      </a>
      
       <code>
        createdAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When it was queued, as epoch ms.
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="finalizedat">
        
      </a>
      
       <code>
        finalizedAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When it reached a final state (delivered, bounced, failed, cancelled), as epoch ms — a far-future sentinel while it is still in flight.
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailEventData

Defined in: [src/convex/integrations/email.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts)

`email.*` payload data (documented fields + open for provider additions).

#### Indexable

```ts
[key: string]: unknown
```

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email_id">
        
      </a>
      
       <code>
        email_id?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="from-4">
        
      </a>
      
       <code>
        from?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="to-4">
        
      </a>
      
       <code>
        to?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="subject-5">
        
      </a>
      
       <code>
        subject?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="created_at">
        
      </a>
      
       <code>
        created_at?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="broadcast_id">
        
      </a>
      
       <code>
        broadcast_id?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="bounce">
        
      </a>
      
       <code>
        bounce?
      </code>
    </td>
    
    <td>
      { <code>
        type?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        subType?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        message?
      </code>
      
      : <code>
        string
      </code>
      
      ; }
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        bounce.type?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        bounce.subType?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        bounce.message?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### InboxEmailEventData

Defined in: [src/convex/integrations/email.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts)

`inbox.email.received` payload data: mail that reached an inbox at the
provider (the support address), with its thread. The body is fetched with
the provider's API.

#### Indexable

```ts
[key: string]: unknown
```

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="inbox_id">
        
      </a>
      
       <code>
        inbox_id?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="thread_id">
        
      </a>
      
       <code>
        thread_id?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="email_id-1">
        
      </a>
      
       <code>
        email_id?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="thread">
        
      </a>
      
       <code>
        thread?
      </code>
    </td>
    
    <td>
      { <code>
        id?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        subject?
      </code>
      
      : <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      ; <code>
        folder?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        read?
      </code>
      
      : <code>
        boolean
      </code>
      
      ; }
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        thread.id?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        thread.subject?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        thread.folder?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        thread.read?
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="email-21">
        
      </a>
      
       <code>
        email?
      </code>
    </td>
    
    <td>
      { <code>
        id?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        direction?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        from?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        to?
      </code>
      
      : <code>
        string
      </code>
      
      <span>
        
      </span>
      
      ; <code>
        subject?
      </code>
      
      : <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      ; <code>
        received_at?
      </code>
      
      : <code>
        string
      </code>
      
      ; }
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email.id?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email.direction?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email.from?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email.to?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email.subject?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email.received_at?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### ContactEventData

Defined in: [src/convex/integrations/email.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts)

`contact.*` payload data.

#### Indexable

```ts
[key: string]: unknown
```

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="id-3">
        
      </a>
      
       <code>
        id?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="segment_ids">
        
      </a>
      
       <code>
        segment_ids?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The segments the contact belongs to.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="audience_id">
        
      </a>
      
       <del>
        <code>
          audience_id?
        </code>
      </del>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <strong>
        Deprecated
      </strong>
      
       The provider still sends it; read <code>
        segment_ids
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="email-22">
        
      </a>
      
       <code>
        email?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="first_name">
        
      </a>
      
       <code>
        first_name?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="last_name">
        
      </a>
      
       <code>
        last_name?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="unsubscribed">
        
      </a>
      
       <code>
        unsubscribed?
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### ContactTopicsEventData

Defined in: [src/convex/integrations/email.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts)

`contact.topics.updated` payload data: the topics that changed, each with its new subscription.

#### Indexable

```ts
[key: string]: unknown
```

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="email-23">
        
      </a>
      
       <code>
        email?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="topics-2">
        
      </a>
      
       <code>
        topics?
      </code>
    </td>
    
    <td>
      { <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        subscription
      </code>
      
      : <code>
        "opt_in"
      </code>
      
       | <code>
        "opt_out"
      </code>
      
      ; }<span>
        
      </span>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### SuppressionEventData

Defined in: [src/convex/integrations/email.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts)

`suppression.*` payload data: an address the provider will not send to, and why (`bounce`, `complaint`, `manual`).

#### Indexable

```ts
[key: string]: unknown
```

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="id-4">
        
      </a>
      
       <code>
        id?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="email-24">
        
      </a>
      
       <code>
        email?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="origin-1">
        
      </a>
      
       <code>
        origin?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="source_id">
        
      </a>
      
       <code>
        source_id?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="created_at-1">
        
      </a>
      
       <code>
        created_at?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### TopicEventData

Defined in: [src/convex/integrations/email.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts)

`topic.*` payload data.

#### Indexable

```ts
[key: string]: unknown
```

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="id-5">
        
      </a>
      
       <code>
        id?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="name-4">
        
      </a>
      
       <code>
        name?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="description-2">
        
      </a>
      
       <code>
        description?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="default_subscription">
        
      </a>
      
       <code>
        default_subscription?
      </code>
    </td>
    
    <td>
      <code>
        "opt_in"
      </code>
      
       | <code>
        "opt_out"
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### DomainEventData

Defined in: [src/convex/integrations/email.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts)

`domain.*` payload data.

#### Indexable

```ts
[key: string]: unknown
```

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="id-6">
        
      </a>
      
       <code>
        id?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="name-5">
        
      </a>
      
       <code>
        name?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="status-2">
        
      </a>
      
       <code>
        status?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailWebhookEvent

Defined in: [src/convex/integrations/email.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts)

A verified provider webhook event, as delivered to the typed handlers.

#### Type Parameters

<table>
<thead>
  <tr>
    <th>
      Type Parameter
    </th>
    
    <th>
      Default type
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="type-parameter-t">
        
      </a>
      
       <code>
        T
      </code>
      
       <em>
        extends
      </em>
      
       <a href="#emailwebhookeventtype">
        <code>
          EmailWebhookEventType
        </code>
      </a>
    </td>
    
    <td>
      <a href="#emailwebhookeventtype">
        <code>
          EmailWebhookEventType
        </code>
      </a>
    </td>
  </tr>
</tbody>
</table>

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="type-3">
        
      </a>
      
       <code>
        type
      </code>
    </td>
    
    <td>
      <code>
        T
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="created_at-2">
        
      </a>
      
       <code>
        created_at?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="data">
        
      </a>
      
       <code>
        data
      </code>
    </td>
    
    <td>
      <code>
        EventDataFor
      </code>
      
      <<code>
        T
      </code>
      
      >
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailRetention

Defined in: [src/convex/integrations/email.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts)

How long the backend component keeps the email records, in milliseconds.
The component's maintenance prunes by it every hour; each send carries it,
so a change applies from the next email sent.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="finalizedms">
        
      </a>
      
       <code>
        finalizedMs?
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      After an email's final status (delivered, bounced, failed, cancelled). Default 7 days.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="abandonedms">
        
      </a>
      
       <code>
        abandonedMs?
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      After an email was created, when it never got a final status. Default 30 days.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### SetupEmailOptions

Defined in: [src/convex/integrations/email.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts)

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="retention">
        
      </a>
      
       <code>
        retention?
      </code>
    </td>
    
    <td>
      <a href="#emailretention">
        <code>
          EmailRetention
        </code>
      </a>
    </td>
    
    <td>
      How long the email records are kept, longer or shorter than the defaults (7 days after a final status, 30 days without one). Both are windows in milliseconds; the component's maintenance prunes by them. Secret emails (sign-in codes, account deletion) leave no record at all.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="templates">
        
      </a>
      
       <code>
        templates?
      </code>
    </td>
    
    <td>
      <a href="#emailtemplateoverrides">
        <code>
          EmailTemplateOverrides
        </code>
      </a>
    </td>
    
    <td>
      Restyle any email the package sends, by template name: <code>
        otp
      </code>
      
      , <code>
        emailChanged
      </code>
      
      , <code>
        deletionScheduled
      </code>
      
      , <code>
        deletionCanceled
      </code>
      
      , <code>
        welcome
      </code>
      
      , <code>
        invite
      </code>
      
      , <code>
        gift
      </code>
      
      , <code>
        notification
      </code>
      
       and the rest of <a href="#emailtemplates">
        EmailTemplates
      </a>
      
      . Each override gets the template's data and its render context, the default included: <code>
        invite: (data, { byDefault }) => ({ ...byDefault(data), subject: 'Join us' })
      </code>
      
      . The <code>
        notification
      </code>
      
       override is every notification's email: switch on <code>
        data.type
      </code>
      
       to give a kind its own, and return <code>
        byDefault(data)
      </code>
      
       for the rest.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="brand-1">
        
      </a>
      
       <code>
        brand?
      </code>
    </td>
    
    <td>
      { <code>
        name?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        logo?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        address?
      </code>
      
      : <code>
        string
      </code>
      
      ; }
    </td>
    
    <td>
      The app the emails are sent for, as the layout's header and footer show it. <code>
        name
      </code>
      
       defaults to the display name of <code>
        EMAIL_FROM
      </code>
      
       (<code>
        Acme
      </code>
      
       in <code>
        Acme <hello@acme.com>
      </code>
      
      ), then the host of <code>
        SITE_URL
      </code>
      
      . <code>
        logo
      </code>
      
       is the image the header shows in its place: an absolute URL, or a path on <code>
        SITE_URL
      </code>
      
       (<code>
        /logo.png
      </code>
      
      ). Keep both as <code>
        appConfig.backend.brand
      </code>
      
       has them: the backend cannot read app config.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        brand.name?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        brand.logo?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        brand.address?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="topics-3">
        
      </a>
      
       <code>
        topics?
      </code>
    </td>
    
    <td>
      <code>
        Readonly
      </code>
      
      <<code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <a href="#emailtopic">
        <code>
          EmailTopic
        </code>
      </a>
      
      >>
    </td>
    
    <td>
      The topics your app sends under, keyed by the name your code sends by: <code>
        send({ topic })
      </code>
      
       checks each person's choice, adds the one-click unsubscribe and the postal address, and sends from the marketing sender. <code>
        npx nuxt-backend email sync
      </code>
      
       creates them at the provider. <strong>
        Example
      </strong>
      
       <code>
        topics: { productNews: { name: 'Product news', description: 'New features, about once a month.', subscribedByDefault: false, doubleOptIn: true }, }
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="caps">
        
      </a>
      
       <code>
        caps?
      </code>
    </td>
    
    <td>
      <a href="#emailcaps">
        <code>
          EmailCaps
        </code>
      </a>
    </td>
    
    <td>
      The rules every send under a topic follows, with lifecycle email and the email and push channels of notifications: <code>
        perWeek
      </code>
      
       (no default), <code>
        quietHours
      </code>
      
       in each person's time zone (no default) and <code>
        sunsetAfterDays
      </code>
      
       (180).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="contactproperties">
        
      </a>
      
       <code>
        contactProperties?
      </code>
    </td>
    
    <td>
      <code>
        Readonly
      </code>
      
      <<code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        "string"
      </code>
      
       | <code>
        "number"
      </code>
      
       | <a href="#emailcontactproperty">
        <code>
          EmailContactProperty
        </code>
      </a>
      
      >>
    </td>
    
    <td>
      The values your app keeps on each contact at the provider, which lifecycle email and broadcasts read (<code>
        plan: { type: 'string', fallback: 'free' }
      </code>
      
      ). <code>
        npx nuxt-backend email sync
      </code>
      
       creates them.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="lifecycle">
        
      </a>
      
       <code>
        lifecycle?
      </code>
    </td>
    
    <td>
      <a href="#emaillifecycle">
        <code>
          EmailLifecycle
        </code>
      </a>
    </td>
    
    <td>
      The ready-made lifecycle flows to turn on, by name: <code>
        welcome
      </code>
      
      , <code>
        activationNudge
      </code>
      
      , <code>
        firstResult
      </code>
      
      , <code>
        creditsLow
      </code>
      
      , <code>
        trialEnding
      </code>
      
      , <code>
        checkoutAbandoned
      </code>
      
      , <code>
        winBack
      </code>
      
      , <code>
        stalled
      </code>
      
      , <code>
        annualSwitch
      </code>
      
      , <code>
        reviewAsk
      </code>
      
      . Each is a template and an automation at the email provider, which <code>
        npx nuxt-backend email sync
      </code>
      
       makes; the package starts and stops each person's run from its own events, and checks a lifecycle or marketing flow's email against the person's topic, the sunset rule, the weekly cap and the quiet hours when it is due. Lifecycle and marketing flows name the <code>
        topic
      </code>
      
       they go under. <strong>
        Example
      </strong>
      
       <code>
        lifecycle: { welcome: true, activationNudge: { topic: 'tips' }, firstResult: { event: 'app.strip_ready' }, winBack: { topic: 'offers', days: [7, 30] } }
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="theme-1">
        
      </a>
      
       <code>
        theme?
      </code>
    </td>
    
    <td>
      <a href="#emailtheme">
        <code>
          EmailTheme
        </code>
      </a>
    </td>
    
    <td>
      The look of every email's layout: <code>
        colors
      </code>
      
       for the light scheme (the page <code>
        background
      </code>
      
      , the message <code>
        card
      </code>
      
      , its <code>
        text
      </code>
      
      , the <code>
        accent
      </code>
      
       of buttons and the code block and the <code>
        accentText
      </code>
      
       on it), <code>
        dark
      </code>
      
       for readers in dark mode (derived from <code>
        colors
      </code>
      
       where left out), and <code>
        fonts
      </code>
      
       (<code>
        heading
      </code>
      
      , <code>
        body
      </code>
      
      ) as CSS font stacks. Every key is optional: what you leave out keeps the package's default. Colors are hex; setup refuses anything else. <strong>
        Example
      </strong>
      
       <code>
        theme: { colors: { background: '#fff7e6', accent: '#d500f9' }, fonts: { heading: "'Archivo Black', Arial, sans-serif" }, }
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="messages">
        
      </a>
      
       <code>
        messages?
      </code>
    </td>
    
    <td>
      <a href="#emailmessages">
        <code>
          EmailMessages
        </code>
      </a>
    </td>
    
    <td>
      The emails' words in other languages, keyed by locale: pass the app's i18n message files as they are (<code>
        messages: { de, fr }
      </code>
      
      ). The package's keys are read under <code>
        backend.email
      </code>
      
       (<code>
        backend.email.welcome.subject
      </code>
      
      ), an app's own (for its overrides and <code>
        compose
      </code>
      
      ) from the root. A key a language leaves out reads English. Each email is written in its recipient's language (<code>
        user.locale
      </code>
      
      ) when the app serves it (<code>
        locales
      </code>
      
      , else the languages here), else in <code>
        defaultLocale
      </code>
      
      . An app key a language leaves out reads <code>
        defaultLocale
      </code>
      
      's, then English.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="labels">
        
      </a>
      
       <code>
        labels?
      </code>
    </td>
    
    <td>
      <a href="#applabels">
        <code>
          AppLabels
        </code>
      </a>
    </td>
    
    <td>
      The labels app config sets (<code>
        appConfig.backend.labels
      </code>
      
      ): pass the <code>
        labels
      </code>
      
       of <code>
        labels.generated.ts
      </code>
      
      , which the module rewrites from app config, as the scaffold does. Every email, notification email and push reads them before <code>
        messages
      </code>
      
      , as the app's pages read them before its i18n messages, so copy written once in app config reaches both: the <code>
        email
      </code>
      
       group's words, a package notification kind's, and your own kinds' (<code>
        notifications.<kind>.title
      </code>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="locales">
        
      </a>
      
       <code>
        locales?
      </code>
    </td>
    
    <td>
      readonly <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The languages the app serves, as its <code>
        @nuxtjs/i18n
      </code>
      
       <code>
        locales
      </code>
      
       codes (<code>
        ['en', 'de', 'es']
      </code>
      
      ). An email is written, and its links prefixed, only in one of these or <code>
        defaultLocale
      </code>
      
      , so a link never carries a language the app's pages don't answer in. Default: the languages <code>
        messages
      </code>
      
       carries; with no <code>
        messages
      </code>
      
      , the package's own translations (ru, de, es, fr) and English, unless <code>
        localePaths
      </code>
      
       prefixes the links, which then stay in <code>
        defaultLocale
      </code>
      
      . Name them to use a translation of the package's that your <code>
        messages
      </code>
      
       don't carry.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="defaultlocale">
        
      </a>
      
       <code>
        defaultLocale?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The language for a recipient whose own has no messages, and for one whose language is unknown (an invitee without an account, whose inviter's is unknown too). Default <code>
        'en'
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="localepaths">
        
      </a>
      
       <code>
        localePaths?
      </code>
    </td>
    
    <td>
      <a href="#emaillocalepaths">
        <code>
          EmailLocalePaths
        </code>
      </a>
    </td>
    
    <td>
      Whether the links the emails carry to the app's pages (an invitation, a gift) carry the recipient's language in their path, as your <code>
        @nuxtjs/i18n
      </code>
      
       <code>
        strategy
      </code>
      
       does: <code>
        prefix_except_default
      </code>
      
       turns <code>
        /accept-invitation
      </code>
      
       into <code>
        /fr/accept-invitation
      </code>
      
       for a French reader. Default <code>
        no_prefix
      </code>
      
      : links stay as they are.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="events">
        
      </a>
      
       <code>
        events?
      </code>
    </td>
    
    <td>
      <a href="#emailwebhookeventhandlers">
        <code>
          EmailWebhookEventHandlers
        </code>
      </a>
    </td>
    
    <td>
      React to any verified provider event, keyed by its event name (<code>
        'email.bounced'
      </code>
      
      , <code>
        'contact.created'
      </code>
      
      , …). Handlers run <strong>
        after
      </strong>
      
       the component has verified the signature and updated delivery status — <code>
        useEmailStatus
      </code>
      
       already reflects the event. A handler throw answers 500, so the provider redelivers (deliveries are deduped once fully processed). <strong>
        Guarantee
      </strong>
      
       - Runs: in the webhook's HTTP action, after the email's delivery status is updated - Delivery: at least once: a delivery already processed answers 200 without running it again, but one that threw is redelivered - Order: as the provider delivers: no order across events - When it throws: logged as <code>
        handler_error
      </code>
      
      , answered 500, and the provider retries - Idempotency: key what it writes on the event's id
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="onunknownevent">
        
      </a>
      
       <code>
        onUnknownEvent?
      </code>
    </td>
    
    <td>
      (<code>
        ctx
      </code>
      
      , <code>
        event
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        void
      </code>
      
      >
    </td>
    
    <td>
      Called for a <strong>
        verified
      </strong>
      
       event whose type is outside the known catalog (a provider newer than this package). Acknowledged 202 when it returns; a throw answers 500, and the provider redelivers. <strong>
        Guarantee
      </strong>
      
       - Runs: in the webhook's HTTP action, for a verified event of a type this package does not know - Delivery: at least once: answered 202 when it returns, and redelivered when it throws - Order: as the provider delivers: no order across events - When it throws: logged as <code>
        handler_error
      </code>
      
      , answered 500, and the provider retries - Idempotency: key what it writes on the event's id
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="inbound">
        
      </a>
      
       <code>
        inbound?
      </code>
    </td>
    
    <td>
      <a href="#inboundoptions">
        <code>
          InboundOptions
        </code>
      </a>
    </td>
    
    <td>
      Mail sent to your app: the receiving domain, the support inbox and the hooks that handle replies and workspace mail. Unset, an <code>
        email.received
      </code>
      
       event goes to <code>
        events
      </code>
      
       alone.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="contact">
        
      </a>
      
       <code>
        contact?
      </code>
    </td>
    
    <td>
      <a href="#contactoptions">
        <code>
          ContactOptions
        </code>
      </a>
    </td>
    
    <td>
      The contact form (<code>
        <ContactForm>
      </code>
      
      , <code>
        submitContactMessage
      </code>
      
      ): where a message is copied when there is no support inbox.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="ratelimiter-1">
        
      </a>
      
       <code>
        rateLimiter?
      </code>
    </td>
    
    <td>
      <a href="#inboundratelimiter">
        <code>
          InboundRateLimiter
        </code>
      </a>
    </td>
    
    <td>
      Your <code>
        setupRateLimiter
      </code>
      
       instance, for the limits the contact form and inbound mail spend (<code>
        contact
      </code>
      
      , <code>
        contactGlobal
      </code>
      
      , <code>
        inboundMail
      </code>
      
      , <code>
        inboundMailGlobal
      </code>
      
      , and <code>
        admin
      </code>
      
       for a reply from the Inbox tab), so your overrides of them apply. Default: the rate limiter component mounted as <code>
        rateLimiter
      </code>
      
      , with the package's limits.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="audit">
        
      </a>
      
       <code>
        audit?
      </code>
    </td>
    
    <td>
      <code>
        Pick
      </code>
      
      <<a href="https://nuxt-backend.dev/docs/reference/api/audit#audit">
        <code>
          Audit
        </code>
      </a>
      
      , <code>
        "recordBackendEvent"
      </code>
      
      >
    </td>
    
    <td>
      The app's <code>
        setupAudit
      </code>
      
       instance (<code>
        backend/audit.ts
      </code>
      
      ): a bounce to an account's address is recorded through it (<code>
        email.bounced
      </code>
      
      ), so it reaches its <code>
        onEvent
      </code>
      
       too. Without it, on the component's own trail.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="adminroles">
        
      </a>
      
       <code>
        adminRoles?
      </code>
    </td>
    
    <td>
      readonly <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The app-wide roles that run the admin console's email tabs (Announcements, and the Inbox's reads and replies), read fresh. Default <code>
        ['admin']
      </code>
      
      : pass the same as <code>
        setupAdmin
      </code>
      
       and <code>
        setupAuth({ admin })
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="adminuserids">
        
      </a>
      
       <code>
        adminUserIds?
      </code>
    </td>
    
    <td>
      readonly <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      Accounts that run the email tabs whatever their role, by id: pass the same as <code>
        setupAdmin
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="paths">
        
      </a>
      
       <code>
        paths?
      </code>
    </td>
    
    <td>
      <code>
        Partial
      </code>
      
      <<a href="https://nuxt-backend.dev/docs/reference/api/auth#backendpaths">
        <code>
          BackendPaths
        </code>
      </a>
      
      >
    </td>
    
    <td>
      The app's paths, from the <code>
        paths.generated.ts
      </code>
      
       the Nuxt module writes from nuxt.config: an email's unsubscribe and confirmation links open <code>
        {SITE_URL}{paths.unsubscribe}
      </code>
      
       (<code>
        pages.unsubscribe
      </code>
      
      , <code>
        /unsubscribe
      </code>
      
       by default).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### Email

Defined in: [src/convex/integrations/email.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts)

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="api">
        
      </a>
      
       <code>
        api
      </code>
    </td>
    
    <td>
      { <code>
        getEmailStatus
      </code>
      
      : <code>
        RegisteredQuery
      </code>
      
      <<code>
        "public"
      </code>
      
      >; <code>
        getSandboxInbox
      </code>
      
      : <code>
        RegisteredAction
      </code>
      
      <<code>
        "public"
      </code>
      
      >; <code>
        previewEmails
      </code>
      
      : <code>
        RegisteredQuery
      </code>
      
      <<code>
        "internal"
      </code>
      
      >; <code>
        sendEmailPreview
      </code>
      
      : <code>
        RegisteredMutation
      </code>
      
      <<code>
        "internal"
      </code>
      
      >; <code>
        syncEmail
      </code>
      
      : <code>
        RegisteredAction
      </code>
      
      <<code>
        "internal"
      </code>
      
      >; <code>
        submitContactMessage
      </code>
      
      : <code>
        RegisteredAction
      </code>
      
      <<code>
        "public"
      </code>
      
      >; <code>
        getInboxConsole
      </code>
      
      : <code>
        RegisteredQuery
      </code>
      
      <<code>
        "public"
      </code>
      
      >; <code>
        replyToInbox
      </code>
      
      : <code>
        RegisteredAction
      </code>
      
      <<code>
        "public"
      </code>
      
      >; <code>
        syncInbound
      </code>
      
      : <code>
        RegisteredAction
      </code>
      
      <<code>
        "internal"
      </code>
      
      >; } & <a href="#emailpreferencesapi">
        <code>
          EmailPreferencesApi
        </code>
      </a>
      
       & <a href="#announcementsapi">
        <code>
          AnnouncementsApi
        </code>
      </a>
      
       & <a href="#suppressionsapi">
        <code>
          SuppressionsApi
        </code>
      </a>
    </td>
    
    <td>
      Ready-made, client-callable functions to re-export from your <code>
        backend/email.ts
      </code>
      
      : <code>
        getEmailStatus
      </code>
      
       (the reactive query behind <code>
        useEmailStatus
      </code>
      
      ) and <code>
        getSandboxInbox
      </code>
      
       (behind <code>
        useSandboxInbox
      </code>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="locales-1">
        
      </a>
      
       <code>
        locales
      </code>
    </td>
    
    <td>
      readonly <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The languages the emails are written in: the default locale first, then each one <code>
        messages
      </code>
      
       has, and English.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="brand-2">
        
      </a>
      
       <code>
        brand
      </code>
    </td>
    
    <td>
      () => <a href="#emailbrand">
        <code>
          EmailBrand
        </code>
      </a>
    </td>
    
    <td>
      The app the emails are sent for, as the deployment names it now: <code>
        brand.name
      </code>
      
      , else the display name of <code>
        EMAIL_FROM
      </code>
      
      , else the host of <code>
        SITE_URL
      </code>
      
      ; and the logo. <code>
        setupAuth
      </code>
      
       names the app after it where Better Auth shows a name (a passkey prompt).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="send">
        
      </a>
      
       <code>
        send
      </code>
    </td>
    
    <td>
      (<code>
        ctx
      </code>
      
      , <code>
        options
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      >
    </td>
    
    <td>
      Send an email (call from your own gated action or mutation). Without a <code>
        topic
      </code>
      
       it is transactional and always goes. With one, it goes only to a person in the topic, under the sending rules, from the marketing sender, with the one-click unsubscribe and the postal address; else it resolves <code>
        null
      </code>
      
       and logs why (<code>
        email.skipped_unsubscribed
      </code>
      
      , <code>
        email.skipped_capped
      </code>
      
      , <code>
        email.skipped_sunset
      </code>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="topics-4">
        
      </a>
      
       <code>
        topics
      </code>
    </td>
    
    <td>
      <a href="#emailtopics">
        <code>
          EmailTopics
        </code>
      </a>
    </td>
    
    <td>
      The topics <code>
        setupEmail
      </code>
      
       declares.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="automations">
        
      </a>
      
       <code>
        automations
      </code>
    </td>
    
    <td>
      <a href="#emailautomations">
        <code>
          EmailAutomations
        </code>
      </a>
    </td>
    
    <td>
      Events your code sends the email provider's automations: <code>
        track(ctx, { event, userId, data })
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="replyaddress">
        
      </a>
      
       <code>
        replyAddress
      </code>
    </td>
    
    <td>
      (<code>
        ctx
      </code>
      
      , <code>
        options
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        string
      </code>
      
      >
    </td>
    
    <td>
      An address on the receiving domain (<code>
        setupEmail({ inbound: { domain } })
      </code>
      
      ) that carries a person and a thread, for an email's <code>
        replyTo
      </code>
      
      . The same pair always gets the same address. A reply to it reaches <code>
        inbound.onReply
      </code>
      
      , once the sender passes DMARC and is that person's own address.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="render">
        
      </a>
      
       <code>
        render
      </code>
    </td>
    
    <td>
      <<code>
        Name
      </code>
      
      >(<code>
        name
      </code>
      
      , <code>
        data
      </code>
      
      , <code>
        options?
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<a href="#emailmessage">
        <code>
          EmailMessage
        </code>
      </a>
      
      >
    </td>
    
    <td>
      Render one of the package's emails, your override or the packaged default, without sending it: what a preview page or a test shows, in <code>
        locale
      </code>
      
       (the default locale without one). Resolves once an async override has rendered.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="previews">
        
      </a>
      
       <code>
        previews
      </code>
    </td>
    
    <td>
      (<code>
        options?
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<a href="#emailpreview">
        <code>
          EmailPreview
        </code>
      </a>
      
      <span>
        
      </span>
      
      >
    </td>
    
    <td>
      Every email the package sends, rendered with sample data in <code>
        locale
      </code>
      
      : one entry per template, and per purpose of the <code>
        otp
      </code>
      
       template, as the DevTools Email tab and the playground show them. Experimental, with the DevTools tab (STABILITY.md): the samples and what a preview carries may still change.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="compose">
        
      </a>
      
       <code>
        compose
      </code>
    </td>
    
    <td>
      <<code>
        Message
      </code>
      
      >(<code>
        build
      </code>
      
      , <code>
        options?
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        Message
      </code>
      
      >
    </td>
    
    <td>
      Build an email of your own in the layout the package's emails use: the brand's header, a card, the footer, light and dark, in the <code>
        theme
      </code>
      
      . <code>
        build
      </code>
      
       gets the render context of <code>
        locale
      </code>
      
       (its <code>
        t
      </code>
      
       reads <code>
        messages
      </code>
      
      ), and returns the message with its body as <code>
        blocks
      </code>
      
       (a kicker, a heading, paragraphs, a code, a button, a note: themed, escaped, with the text version written for you) or as an HTML fragment in <code>
        html
      </code>
      
       (build it with the <code>
        html
      </code>
      
       tag, which escapes what it interpolates; <code>
        text
      </code>
      
       then gets the footer's words). Send the result with <code>
        send
      </code>
      
      . A <code>
        build
      </code>
      
       that returns <code>
        null
      </code>
      
       (nothing to send) resolves with <code>
        null
      </code>
      
      . <strong>
        Example
      </strong>
      
       <code>
        const message = await email.compose(({ t, brand }) => ({ to: user.email, subject: t('digest.subject'), blocks: [ { heading: t('digest.subject') }, { paragraph: t('digest.intro', { name: user.name }) }, { button: { label: t('digest.open'), url:
      </code>
      
      ${brand.url}/digest<code>
        } }, ], }), { locale: user.locale }) await email.send(ctx, message)
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="sendtemplate">
        
      </a>
      
       <code>
        sendTemplate
      </code>
    </td>
    
    <td>
      <<code>
        Name
      </code>
      
      >(<code>
        ctx
      </code>
      
      , <code>
        name
      </code>
      
      , <code>
        data
      </code>
      
      , <code>
        options?
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      >
    </td>
    
    <td>
      Render one of the package's emails and send it, in its recipient's language: <code>
        locale
      </code>
      
       when given, else the language of the account the address belongs to (<code>
        user.locale
      </code>
      
      ), else <code>
        fallbackLocale
      </code>
      
      , else the language of the account <code>
        senderId
      </code>
      
       names (an inviter, a gift's purchaser), else the default locale. A secret email (<code>
        otp
      </code>
      
      ) leaves no record: it resolves with <code>
        null
      </code>
      
       and has no status, and its body is gone once the provider answers. An override that puts the code in the subject puts it where the provider's own logs keep it.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="status-3">
        
      </a>
      
       <code>
        status
      </code>
    </td>
    
    <td>
      (<code>
        ctx
      </code>
      
      , <code>
        emailId
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<a href="#emailstatus">
        <code>
          EmailStatus
        </code>
      </a>
      
       | <code>
        null
      </code>
      
      >
    </td>
    
    <td>
      Read an email's delivery status.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="cancel">
        
      </a>
      
       <code>
        cancel
      </code>
    </td>
    
    <td>
      (<code>
        ctx
      </code>
      
      , <code>
        emailId
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        void
      </code>
      
      >
    </td>
    
    <td>
      Cancel a not-yet-sent email.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="cleanup">
        
      </a>
      
       <code>
        cleanup
      </code>
    </td>
    
    <td>
      (<code>
        ctx
      </code>
      
      , <code>
        options?
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        void
      </code>
      
      >
    </td>
    
    <td>
      Prune finalized email records (delivered, bounced, cancelled, failed …) older than <code>
        olderThanMs
      </code>
      
       — default 7 days. Schedules the provider's batched cleanup and returns at once. The component's maintenance already runs it every hour with the default, so call it only to keep records for less time.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="cleanupabandoned">
        
      </a>
      
       <code>
        cleanupAbandoned
      </code>
    </td>
    
    <td>
      (<code>
        ctx
      </code>
      
      , <code>
        options?
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        void
      </code>
      
      >
    </td>
    
    <td>
      Prune abandoned email records — created more than <code>
        olderThanMs
      </code>
      
       ago (default 30 days) and never finalized, e.g. because a delivery webhook never arrived. Scheduled like <code>
        cleanup
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="webhookhandler">
        
      </a>
      
       <code>
        webhookHandler
      </code>
    </td>
    
    <td>
      (<code>
        ctx
      </code>
      
      , <code>
        request
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        Response
      </code>
      
      >
    </td>
    
    <td>
      Handle an email-provider event webhook from your app's <code>
        /email/events
      </code>
      
       HTTP route (inside an <code>
        httpAction
      </code>
      
      ); returns the Response to send back.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="segments">
        
      </a>
      
       <code>
        segments
      </code>
    </td>
    
    <td>
      { <code>
        create
      </code>
      
      : (<code>
        payload
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        unknown
      </code>
      
      >; <code>
        list
      </code>
      
      : () => <code>
        Promise
      </code>
      
      <<code>
        unknown
      </code>
      
      >; <code>
        remove
      </code>
      
      : (<code>
        id
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        unknown
      </code>
      
      >; <code>
        addContact
      </code>
      
      : (<code>
        payload
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        unknown
      </code>
      
      >; <code>
        removeContact
      </code>
      
      : (<code>
        payload
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        unknown
      </code>
      
      >; }
    </td>
    
    <td>
      Marketing segments — the groups a broadcast is sent to. A contact is one record however many segments it sits in: put it in one at creation (<code>
        contacts.add({ email, segments: [{ id }] })
      </code>
      
      ) or later with <code>
        addContact
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        segments.create
      </code>
    </td>
    
    <td>
      (<code>
        payload
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        unknown
      </code>
      
      >
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        segments.list
      </code>
    </td>
    
    <td>
      () => <code>
        Promise
      </code>
      
      <<code>
        unknown
      </code>
      
      >
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        segments.remove
      </code>
    </td>
    
    <td>
      (<code>
        id
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        unknown
      </code>
      
      >
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        segments.addContact
      </code>
    </td>
    
    <td>
      (<code>
        payload
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        unknown
      </code>
      
      >
    </td>
    
    <td>
      Put an existing contact (<code>
        contactId
      </code>
      
       or <code>
        email
      </code>
      
      ) in a segment.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        segments.removeContact
      </code>
    </td>
    
    <td>
      (<code>
        payload
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        unknown
      </code>
      
      >
    </td>
    
    <td>
      Take a contact out of a segment; the contact itself stays.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="contacts">
        
      </a>
      
       <code>
        contacts
      </code>
    </td>
    
    <td>
      { <code>
        add
      </code>
      
      : (<code>
        payload
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        unknown
      </code>
      
      >; <code>
        list
      </code>
      
      : (<code>
        payload
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        unknown
      </code>
      
      >; <code>
        update
      </code>
      
      : (<code>
        payload
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        unknown
      </code>
      
      >; <code>
        remove
      </code>
      
      : (<code>
        payload
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        unknown
      </code>
      
      >; }
    </td>
    
    <td>
      Marketing contacts: add (subscribe) / list / update / remove (unsubscribe).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        contacts.add
      </code>
    </td>
    
    <td>
      (<code>
        payload
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        unknown
      </code>
      
      >
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        contacts.list
      </code>
    </td>
    
    <td>
      (<code>
        payload
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        unknown
      </code>
      
      >
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        contacts.update
      </code>
    </td>
    
    <td>
      (<code>
        payload
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        unknown
      </code>
      
      >
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        contacts.remove
      </code>
    </td>
    
    <td>
      (<code>
        payload
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        unknown
      </code>
      
      >
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="broadcasts">
        
      </a>
      
       <code>
        broadcasts
      </code>
    </td>
    
    <td>
      { <code>
        create
      </code>
      
      : (<code>
        payload
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        unknown
      </code>
      
      >; <code>
        send
      </code>
      
      : (<code>
        id
      </code>
      
      , <code>
        payload?
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        unknown
      </code>
      
      >; }
    </td>
    
    <td>
      Marketing broadcasts: create / send (optionally scheduled). A broadcast with no <code>
        from
      </code>
      
       goes from <code>
        EMAIL_MARKETING_FROM
      </code>
      
      , else <code>
        EMAIL_FROM
      </code>
      
      , else the provider's onboarding sender: marketing mail keeps to the subdomain apart from the transactional one when the deployment names it.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        broadcasts.create
      </code>
    </td>
    
    <td>
      (<code>
        payload
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        unknown
      </code>
      
      >
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        broadcasts.send
      </code>
    </td>
    
    <td>
      (<code>
        id
      </code>
      
      , <code>
        payload?
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        unknown
      </code>
      
      >
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="forgetcontact">
        
      </a>
      
       <code>
        forgetContact
      </code>
    </td>
    
    <td>
      (<code>
        email
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        void
      </code>
      
      >
    </td>
    
    <td>
      The email part of an account's erasure, which <code>
        setupAccount
      </code>
      
       runs: the address's contact at the provider is removed, with the segments and topics it was in. Nothing to remove without <code>
        EMAIL_API_KEY
      </code>
      
      , and a contact already gone is fine, so it is safe to run again; any other refusal throws <code>
        unavailable
      </code>
      
       (reason <code>
        provider_refused
      </code>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### InboundMessage

Defined in: [src/convex/integrations/inbound.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts)

A message as the hooks receive it, once it is verified and stored.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="id-7">
        
      </a>
      
       <code>
        id
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The email provider's id for the received email: read an attachment's content with it.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="from-5">
        
      </a>
      
       <code>
        from
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The sender's address.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="name-6">
        
      </a>
      
       <code>
        name?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The sender's display name, when the mail gave one.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="to-5">
        
      </a>
      
       <code>
        to
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The address it came to.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="subject-6">
        
      </a>
      
       <code>
        subject
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="text-7">
        
      </a>
      
       <code>
        text
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="html-8">
        
      </a>
      
       <code>
        html
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="attachments">
        
      </a>
      
       <code>
        attachments
      </code>
    </td>
    
    <td>
      { <code>
        name
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        size
      </code>
      
      : <code>
        number
      </code>
      
       | <code>
        null
      </code>
      
      ; }<span>
        
      </span>
    </td>
    
    <td>
      Each attachment's name and size; its content is one more call to the provider.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="receivedat-1">
        
      </a>
      
       <code>
        receivedAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When the mail arrived, as epoch ms.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### InboundOptions

Defined in: [src/convex/integrations/inbound.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts)

What `setupEmail({ inbound })` takes.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="domain">
        
      </a>
      
       <code>
        domain?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The receiving domain: a subdomain whose MX records point at the email provider (<code>
        in.panels.app
      </code>
      
      ). Reply addresses and workspace addresses live on it. On a dev deployment, the <code>
        <id>.resend.app
      </code>
      
       address the provider gives every account.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="support">
        
      </a>
      
       <code>
        support?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The support address (<code>
        support@panels.app
      </code>
      
      ): an inbox at the email provider that stores and threads the conversation. The contact form posts its messages into it, and <code>
        npx nuxt-backend email sync
      </code>
      
       creates it.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="onreply">
        
      </a>
      
       <code>
        onReply?
      </code>
    </td>
    
    <td>
      (<code>
        ctx
      </code>
      
      , <code>
        event
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        void
      </code>
      
      >
    </td>
    
    <td>
      Called when a person replies by email to a reply address (<code>
        email.replyAddress
      </code>
      
      ), once the sender passed DMARC and is that person's own address. The reply is in <code>
        message
      </code>
      
      ; <code>
        thread
      </code>
      
       is what the address named. <strong>
        Guarantee
      </strong>
      
       - Runs: in the webhook's HTTP action, after the message is verified and stored - Delivery: at least once: a message already handled answers 200 without running it again, but one whose hook threw is redelivered - Order: as the provider delivers: no order across messages - When it throws: logged as <code>
        handler_error
      </code>
      
      , answered 500, and the provider delivers the message again; the stored copy is not duplicated - Idempotency: key what it writes on <code>
        message.id
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="onworkspacemail">
        
      </a>
      
       <code>
        onWorkspaceMail?
      </code>
    </td>
    
    <td>
      (<code>
        ctx
      </code>
      
      , <code>
        event
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        void
      </code>
      
      >
    </td>
    
    <td>
      Called when mail arrives at a workspace's own address on the receiving domain (its slug), once the sender passed the DMARC check. <strong>
        Guarantee
      </strong>
      
       - Runs: in the webhook's HTTP action, after the message is verified and stored - Delivery: at least once: a message already handled answers 200 without running it again, but one whose hook threw is redelivered - Order: as the provider delivers: no order across messages - When it throws: logged as <code>
        handler_error
      </code>
      
      , answered 500, and the provider delivers the message again; the stored copy is not duplicated - Idempotency: key what it writes on <code>
        message.id
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### ContactOptions

Defined in: [src/convex/integrations/inbound.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts)

What `setupEmail({ contact })` takes.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="to-6">
        
      </a>
      
       <code>
        to?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The team's mailbox: a contact message is copied there with the sender's address as its reply-to, when there is no support inbox. On a <code>
        development
      </code>
      
       deployment the copy goes to the provider's sandbox inbox (<code>
        delivered@resend.dev
      </code>
      
      ) instead, which the dev inbox reads. A test address here gets no copy on a sandbox or a preview that publishes its dev inbox, where anyone could read it: give it a real address.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### InboxRow

Defined in: [src/convex/integrations/inbound.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts)

One row of the Inbox tab.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="id-8">
        
      </a>
      
       <code>
        id
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="kind-2">
        
      </a>
      
       <code>
        kind
      </code>
    </td>
    
    <td>
      <code>
        "contact"
      </code>
      
       | <code>
        "workspace"
      </code>
      
       | <code>
        "support"
      </code>
      
       | <code>
        "reply"
      </code>
    </td>
    
    <td>
      <code>
        contact
      </code>
      
       (the form), <code>
        reply
      </code>
      
       (a reply address), <code>
        workspace
      </code>
      
       (a workspace's address) or <code>
        support
      </code>
      
       (the support inbox).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="at-1">
        
      </a>
      
       <code>
        at
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When it was sent or arrived, as epoch ms.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="from-6">
        
      </a>
      
       <code>
        from
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      The sender's address.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="name-7">
        
      </a>
      
       <code>
        name
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="account">
        
      </a>
      
       <code>
        account
      </code>
    </td>
    
    <td>
      | { <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        name
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        email
      </code>
      
      : <code>
        string
      </code>
      
      ; } | <code>
        null
      </code>
    </td>
    
    <td>
      The account that sent it, when it was one.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="subject-7">
        
      </a>
      
       <code>
        subject
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="text-8">
        
      </a>
      
       <code>
        text
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="attachments-1">
        
      </a>
      
       <code>
        attachments
      </code>
    </td>
    
    <td>
      { <code>
        name
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        size?
      </code>
      
      : <code>
        number
      </code>
      
      ; }<span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="delivery">
        
      </a>
      
       <code>
        delivery
      </code>
    </td>
    
    <td>
      <code>
        "kept"
      </code>
      
       | <code>
        "failed"
      </code>
      
       | <code>
        "support"
      </code>
      
       | <code>
        "copy"
      </code>
      
       | <code>
        "held"
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      A contact message: where its copy went (<code>
        support
      </code>
      
      , <code>
        copy
      </code>
      
      , <code>
        kept
      </code>
      
      , <code>
        held
      </code>
      
       or <code>
        failed
      </code>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="workspaceid">
        
      </a>
      
       <code>
        workspaceId
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="thread-1">
        
      </a>
      
       <code>
        thread
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="canreply">
        
      </a>
      
       <code>
        canReply
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Whether an administrator can answer it here: it sits in the support inbox.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="repliedat">
        
      </a>
      
       <code>
        repliedAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### InboxConsole

Defined in: [src/convex/integrations/inbound.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts)

Everything the Inbox tab shows.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="support-1">
        
      </a>
      
       <code>
        support
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      The support address; <code>
        null
      </code>
      
       without a support inbox.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="rows">
        
      </a>
      
       <code>
        rows
      </code>
    </td>
    
    <td>
      <a href="#inboxrow">
        <code>
          InboxRow
        </code>
      </a>
      
      <span>
        
      </span>
    </td>
    
    <td>
      Newest first, at most 100.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### InboundSyncReport

Defined in: [src/convex/integrations/inbound.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts)

What `syncInbound` reports to `nuxt-backend email sync`, and to `doctor --fix`, which plans it with a dry run (`{ dryRun: true }`).

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="support-2">
        
      </a>
      
       <code>
        support
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      The support address, or <code>
        null
      </code>
      
       when <code>
        setupEmail
      </code>
      
       names none.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="inbox">
        
      </a>
      
       <code>
        inbox
      </code>
    </td>
    
    <td>
      <code>
        "created"
      </code>
      
       | <code>
        "would-create"
      </code>
      
       | <code>
        "found"
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      The inbox: found, made now (<code>
        would-create
      </code>
      
       on a dry run), or <code>
        null
      </code>
      
       without a support address or a domain to make it on.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="domain-1">
        
      </a>
      
       <code>
        domain
      </code>
    </td>
    
    <td>
      | { <code>
        name
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        status
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        receiving
      </code>
      
      : <code>
        boolean
      </code>
      
      ; } | <code>
        null
      </code>
    </td>
    
    <td>
      The receiving domain's state at the provider, or <code>
        null
      </code>
      
       when the address names a domain the account does not hold.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="webhook-1">
        
      </a>
      
       <code>
        webhook
      </code>
    </td>
    
    <td>
      { <code>
        state
      </code>
      
      : <code>
        "missing"
      </code>
      
       | <code>
        "ok"
      </code>
      
       | <code>
        "updated"
      </code>
      
       | <code>
        "would-update"
      </code>
      
      ; <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      ; <code>
        added
      </code>
      
      : <code>
        string
      </code>
      
      <span>
        
      </span>
      
      ; }
    </td>
    
    <td>
      The webhook that carries the events: found, its events completed (<code>
        would-update
      </code>
      
       on a dry run, with the events it would add), or missing (it needs the route's URL and secret, which only you can set).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        webhook.state
      </code>
    </td>
    
    <td>
      <code>
        "missing"
      </code>
      
       | <code>
        "ok"
      </code>
      
       | <code>
        "updated"
      </code>
      
       | <code>
        "would-update"
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        webhook.id
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        webhook.added
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="todo">
        
      </a>
      
       <code>
        todo
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      What is left to do by hand, in words.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### InboundRateLimiter

Defined in: [src/convex/integrations/inbound.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts)

The rate limits the contact form, inbound mail and the Inbox tab's replies spend, as `setupEmail({ rateLimiter })` takes them.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="limit">
        
      </a>
      
       <code>
        limit
      </code>
    </td>
    
    <td>
      (<code>
        ctx
      </code>
      
      , <code>
        name
      </code>
      
      , <code>
        options?
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <{ <code>
        ok
      </code>
      
      : <code>
        boolean
      </code>
      
      ; <code>
        retryAfter?
      </code>
      
      : <code>
        number
      </code>
      
      ; }>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/inbound.ts" rel="nofollow">
        src/convex/integrations/inbound.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AppNotificationLabels

Defined in: [src/convex/labels.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/labels.ts)

The words of a notification kind of the app's own, under its type without `app.` (`strip_ready`).

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="title-2">
        
      </a>
      
       <code>
        title?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/labels.ts" rel="nofollow">
        src/convex/labels.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="body-1">
        
      </a>
      
       <code>
        body?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/labels.ts" rel="nofollow">
        src/convex/labels.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="titleyours">
        
      </a>
      
       <code>
        titleYours?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      For a notification about the reader's own account (<code>
        billTo: 'user'
      </code>
      
      ), read before <code>
        title
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/labels.ts" rel="nofollow">
        src/convex/labels.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="bodyyours">
        
      </a>
      
       <code>
        bodyYours?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      For a notification about the reader's own account, read before <code>
        body
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/labels.ts" rel="nofollow">
        src/convex/labels.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

## Type Aliases

### EmailBlock

```ts
type EmailBlock = 
  | {
  kicker: string;
}
  | {
  heading: string;
}
  | {
  paragraph: string;
}
  | {
  code: string;
}
  | {
  button: {
     label: string;
     url: string;
  };
}
  | {
  note: string;
};
```

Defined in: [src/convex/email-blocks.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-blocks.ts)

One part of an email's body. Every value is text: the layout escapes it,
so a title a user typed cannot put markup into the email.

- `{ kicker }`: a short label above the heading, in the accent color.
- `{ heading }`: the email's title.
- `{ paragraph }`: a paragraph of text; a line break in it stays one.
- `{ code }`: a one-time code on a plate of its own, in large, spaced type.
- `{ button: { label, url } }`: one call to action; the URL is `https:`, `http:` or `mailto:`.
- `{ note }`: quiet small print under the action; a line break in it stays one.

---

### EmailTopics

```ts
type EmailTopics = Readonly<Record<string, EmailTopic>>;
```

Defined in: [src/convex/email-preferences.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-preferences.ts)

The topics an app sends under, keyed by the name its code sends by.

---

### ClockTime

```ts
type ClockTime = `${number}:${number}`;
```

Defined in: [src/convex/email-preferences.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-preferences.ts)

A time of day, `HH:MM` on a 24-hour clock.

---

### TopicState

```ts
type TopicState = "subscribed" | "unsubscribed" | "pending";
```

Defined in: [src/convex/email-preferences.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-preferences.ts)

A person's choice about one topic. `pending`: asked to join, waiting for the confirmation click.

---

### TopicSource

```ts
type TopicSource = 
  | "profile"
  | "double-opt-in"
  | "soft-opt-in"
  | "unsubscribe-page"
  | "one-click"
  | "provider"
  | "erasure";
```

Defined in: [src/convex/email-preferences.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-preferences.ts)

How a choice was made, as the consent ledger records it:

- `profile`: on the profile, or with `useEmailPreferences`;
- `double-opt-in`: the confirmation click of a double opt-in;
- `soft-opt-in`: a paid checkout whose customer did not object;
- `unsubscribe-page`: the packaged unsubscribe page;
- `one-click`: a mail client's one-click unsubscribe (RFC 8058);
- `provider`: the provider's own hosted page or API, reported by webhook;
- `erasure`: an account erased.

---

### OtpPurpose

```ts
type OtpPurpose = "sign-in" | "email-verification" | "forget-password" | "change-email";
```

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Which code an OTP email carries; the subject follows it.

---

### EmailTemplateName

```ts
type EmailTemplateName = keyof EmailTemplates;
```

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

A template's name.

---

### EmailTemplateData

```ts
type EmailTemplateData<Name> = Parameters<EmailTemplates[Name]>[0];
```

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

The data a template renders from.

#### Type Parameters

<table>
<thead>
  <tr>
    <th>
      Type Parameter
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="type-parameter-name">
        
      </a>
      
       <code>
        Name
      </code>
      
       <em>
        extends
      </em>
      
       <a href="#emailtemplatename">
        <code>
          EmailTemplateName
        </code>
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailTemplateOverrides

```ts
type EmailTemplateOverrides = { [Name in EmailTemplateName]?: (data: EmailTemplateData<Name>, context: EmailRenderContext & { byDefault: (data: EmailTemplateData<Name>) => EmailMessage }) => EmailMessage | Promise<EmailMessage> };
```

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Overrides for any template in [EmailTemplates](#emailtemplates). Each gets the same
data and context as the default, and the default itself, already bound to
that context, so an override can keep the packaged body and change only
what it needs:
`invite: (data, { byDefault }) => ({ ...byDefault(data), subject: 'Join us' })`.
An override may be async; the packaged default never is.

---

### EmailMessages

```ts
type EmailMessages = Record<string, Record<string, unknown>>;
```

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

The words of the emails in other languages, by locale: each an app's own
i18n messages, as its JSON file holds them. The package's labels sit
under `backend` (`backend.email.welcome.subject`), an app's own keys at the
root. Key them by the locale codes the app's i18n uses (`de`, `pt-BR`).

---

### EmailLocalePaths

```ts
type EmailLocalePaths = "no_prefix" | "prefix_except_default" | "prefix" | "prefix_and_default";
```

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

How the app's pages answer in each language, as `@nuxtjs/i18n`'s
`strategy` names it: what [EmailRenderContext.link](#link) adds to an app
URL. `no_prefix` (the default) leaves every URL as it is;
`prefix_except_default` prefixes every locale but the default one;
`prefix` and `prefix_and_default` prefix them all.

---

### AnnouncementAudience

```ts
type AnnouncementAudience = "accounts" | "waitlist";
```

Defined in: [src/convex/integrations/announcements.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts)

The audience a broadcast goes to: the app's accounts under a topic, or the waitlist's launch-news contacts.

---

### AnnouncementBroadcastState

```ts
type AnnouncementBroadcastState = "draft" | "creating" | "created" | "sent" | "cancelled";
```

Defined in: [src/convex/integrations/announcements.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts)

Where an announcement's broadcast stands: a `draft` until it is sent; `sent` once the provider has it (`sendAt` is when it goes out); `cancelled`.

---

### PublishAnnouncementInput

```ts
type PublishAnnouncementInput = {
  message: string;
  link?: {
     url: string;
     label?: string;
  };
  expiresAt: number;
  broadcast?: {
     audience: AnnouncementAudience;
     topic?: string;
     subject: string;
     body: string;
  };
};
```

Defined in: [src/convex/integrations/announcements.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts)

What an announcement is published with.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="message-2">
        
      </a>
      
       <code>
        message
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="link-4">
        
      </a>
      
       <code>
        link?
      </code>
    </td>
    
    <td>
      { <code>
        url
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        label?
      </code>
      
      : <code>
        string
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        link.url
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        link.label?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="expiresat-2">
        
      </a>
      
       <code>
        expiresAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When the notice goes away, epoch ms: within 90 days.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="broadcast-1">
        
      </a>
      
       <code>
        broadcast?
      </code>
    </td>
    
    <td>
      { <code>
        audience
      </code>
      
      : <a href="#announcementaudience">
        <code>
          AnnouncementAudience
        </code>
      </a>
      
      ; <code>
        topic?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        subject
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        body
      </code>
      
      : <code>
        string
      </code>
      
      ; }
    </td>
    
    <td>
      An email to go with it, sent from the tab once it is published.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        broadcast.audience
      </code>
    </td>
    
    <td>
      <a href="#announcementaudience">
        <code>
          AnnouncementAudience
        </code>
      </a>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        broadcast.topic?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        broadcast.subject
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        broadcast.body
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/announcements.ts" rel="nofollow">
        src/convex/integrations/announcements.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailLifecycle

```ts
type EmailLifecycle = { readonly [F in LifecycleFlow]?: true | LifecycleFlowOptions };
```

Defined in: [src/convex/integrations/email-lifecycle.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-lifecycle.ts)

The ready-made flows an app turns on, by name: `true` for a flow that
needs nothing more, else its options. Lifecycle and marketing flows name
the topic they go under.

#### Example

```ts
lifecycle: {
  welcome: true,
  activationNudge: { topic: 'tips' },
  firstResult: { event: 'app.strip_ready' },
  winBack: { topic: 'offers', days: [7, 30] },
}
```

---

### EmailRunCtx

```ts
type EmailRunCtx = Pick<GenericActionCtx<GenericDataModel>, "runMutation"> & Partial<Pick<GenericActionCtx<GenericDataModel>, "runQuery">>;
```

Defined in: [src/convex/integrations/email-lifecycle.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-lifecycle.ts)

A mutation's or an action's ctx: what tracking an event needs.

---

### SuppressionOrigin

```ts
type SuppressionOrigin = "bounce" | "complaint" | "manual" | "dropped";
```

Defined in: [src/convex/integrations/email-suppressions.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-suppressions.ts)

Why the provider suppressed an address; `dropped` when only a dropped send told of it.

---

### EmailSyncAction

```ts
type EmailSyncAction = 
  | "created"
  | "updated"
  | "exists"
  | "would-create"
  | "would-update"
  | "drift";
```

Defined in: [src/convex/integrations/email-sync.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email-sync.ts)

What one object's sync did: `drift` is a difference the provider cannot take (a topic's default).

---

### SendEmailOptions

```ts
type SendEmailOptions = {
  to: string | string[];
  subject?: string;
  html?: string;
  text?: string;
  from?: string;
  cc?: string | string[];
  bcc?: string | string[];
  replyTo?: string[];
  headers?: {
     name: string;
     value: string;
  }[];
  template?: {
     id: string;
     variables?: Record<string, string | number>;
  };
  idempotencyKey?: string;
};
```

Defined in: [src/convex/integrations/email.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts)

Options for a transactional send (mirrors the component `send` mutation).

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="to-3">
        
      </a>
      
       <code>
        to
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="subject-4">
        
      </a>
      
       <code>
        subject?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="html-7">
        
      </a>
      
       <code>
        html?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="text-6">
        
      </a>
      
       <code>
        text?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="from-3">
        
      </a>
      
       <code>
        from?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="cc-1">
        
      </a>
      
       <code>
        cc?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="bcc-1">
        
      </a>
      
       <code>
        bcc?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="replyto-1">
        
      </a>
      
       <code>
        replyTo?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="headers-1">
        
      </a>
      
       <code>
        headers?
      </code>
    </td>
    
    <td>
      { <code>
        name
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        value
      </code>
      
      : <code>
        string
      </code>
      
      ; }<span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="template-2">
        
      </a>
      
       <code>
        template?
      </code>
    </td>
    
    <td>
      { <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        variables?
      </code>
      
      : <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        string
      </code>
      
       | <code>
        number
      </code>
      
      >; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        template.id
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        template.variables?
      </code>
    </td>
    
    <td>
      <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        string
      </code>
      
       | <code>
        number
      </code>
      
      >
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="idempotencykey">
        
      </a>
      
       <code>
        idempotencyKey?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Dedupes the send: a second send with the same key, while the first is still on record, returns the first one's id and delivers nothing.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts" rel="nofollow">
        src/convex/integrations/email.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### EmailWebhookEventType

```ts
type EmailWebhookEventType = typeof ALL_EMAIL_EVENTS[number];
```

Defined in: [src/convex/integrations/email.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts)

---

### EmailWebhookEventHandlers

```ts
type EmailWebhookEventHandlers = { [K in EmailWebhookEventType]?: (ctx: AnyActionCtx, event: EmailWebhookEvent<K>) => Promise<void> };
```

Defined in: [src/convex/integrations/email.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts)

Per-event email webhook handlers, keyed by the provider's event names —
the complete catalog, uniform with `setupBilling({ events })`.

---

### Translate

```ts
type Translate = (key, params?) => string;
```

Defined in: [src/convex/label-format.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/label-format.ts)

Resolve a label by its dotted key and fill it in.

#### Parameters

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        key
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        params?
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/use-labels#labelparams">
        <code>
          LabelParams
        </code>
      </a>
    </td>
  </tr>
</tbody>
</table>

#### Returns

`string`

---

### AppLabels

```ts
type AppLabels = LabelOverrides<Omit<BackendLabels, "notifications" | "errors" | "activation">> & {
  notifications?: LabelOverrides<BackendLabels["notifications"]> & {
   [kind: string]: 
     | string
     | AppNotificationLabels
     | {
   [kind: string]: AppNotificationLabels | undefined;
   }
     | undefined;
  };
  errors?: LabelOverrides<BackendLabels["errors"]> & {
   [reason: string]: string | undefined;
  };
  activation?: LabelOverrides<BackendLabels["activation"]> & {
   [task: string]: string | undefined;
  };
};
```

Defined in: [src/convex/labels.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/labels.ts)

The labels an app sets, as `appConfig.backend.labels` holds them: every
group and key of [BackendLabels](https://nuxt-backend.dev/docs/reference/api/use-labels#backendlabels), each optional, and the app's own
keys where a group reads them: a kind of its own in `notifications`
(`strip_ready: { title, body }`), a refusal's sentence `<code>_<reason>`
in `errors`, a checklist task's label in `activation`. The module carries
them to the backend as `labels.generated.ts`, which `setupEmail({ labels })`
reads, so the emails and notifications say what the pages say.

#### Type Declaration

<table>
<thead>
  <tr>
    <th>
      Name
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        notifications?
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/use-labels#labeloverrides">
        <code>
          LabelOverrides
        </code>
      </a>
      
      <<a href="https://nuxt-backend.dev/docs/reference/api/use-labels#backendlabels">
        <code>
          BackendLabels
        </code>
      </a>
      
      [<code>
        "notifications"
      </code>
      
      ]> & { [<code>
        kind
      </code>
      
      : <code>
        string
      </code>
      
      ]: | <code>
        string
      </code>
      
       | <a href="#appnotificationlabels">
        <code>
          AppNotificationLabels
        </code>
      </a>
      
       | { [<code>
        kind
      </code>
      
      : <code>
        string
      </code>
      
      ]: <a href="#appnotificationlabels">
        <code>
          AppNotificationLabels
        </code>
      </a>
      
       | <code>
        undefined
      </code>
      
      ; } | <code>
        undefined
      </code>
      
      ; }
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/labels.ts" rel="nofollow">
        src/convex/labels.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        errors?
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/use-labels#labeloverrides">
        <code>
          LabelOverrides
        </code>
      </a>
      
      <<a href="https://nuxt-backend.dev/docs/reference/api/use-labels#backendlabels">
        <code>
          BackendLabels
        </code>
      </a>
      
      [<code>
        "errors"
      </code>
      
      ]> & { [<code>
        reason
      </code>
      
      : <code>
        string
      </code>
      
      ]: <code>
        string
      </code>
      
       | <code>
        undefined
      </code>
      
      ; }
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/labels.ts" rel="nofollow">
        src/convex/labels.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        activation?
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/use-labels#labeloverrides">
        <code>
          LabelOverrides
        </code>
      </a>
      
      <<a href="https://nuxt-backend.dev/docs/reference/api/use-labels#backendlabels">
        <code>
          BackendLabels
        </code>
      </a>
      
      [<code>
        "activation"
      </code>
      
      ]> & { [<code>
        task
      </code>
      
      : <code>
        string
      </code>
      
      ]: <code>
        string
      </code>
      
       | <code>
        undefined
      </code>
      
      ; }
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/labels.ts" rel="nofollow">
        src/convex/labels.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### LifecycleKind

```ts
type LifecycleKind = "transactional" | "lifecycle" | "marketing";
```

Defined in: [src/convex/lifecycle-flows.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/lifecycle-flows.ts)

How a flow's email counts: transactional email is never capped; lifecycle and marketing email go under a topic and the sending rules.

---

### LifecycleFlow

```ts
type LifecycleFlow = 
  | "welcome"
  | "activationNudge"
  | "firstResult"
  | "creditsLow"
  | "trialEnding"
  | "checkoutAbandoned"
  | "winBack"
  | "stalled"
  | "annualSwitch"
  | "reviewAsk";
```

Defined in: [src/convex/lifecycle-flows.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/lifecycle-flows.ts)

One ready-made flow, by its key on `setupEmail({ lifecycle })`.

## Variables

### ALL_EMAIL_EVENTS

```ts
const ALL_EMAIL_EVENTS: readonly ["email.sent", "email.delivered", "email.delivery_delayed", "email.bounced", "email.complained", "email.opened", "email.clicked", "email.failed", "email.scheduled", "email.received", "inbox.email.received", "email.suppressed", "contact.created", "contact.updated", "contact.deleted", "contact.topics.updated", "domain.created", "domain.updated", "domain.deleted", "suppression.added", "suppression.removed", "topic.created", "topic.updated", "topic.deleted"];
```

Defined in: [src/convex/integrations/email.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts)

The provider's full webhook event catalog: every transactional delivery
state, plus the contact and domain events the marketing surface
(segments/contacts/broadcasts) generates. Broadcast sends surface as
`email.*` events carrying a `broadcast_id`.

## Functions

### linkBlocks()

```ts
function linkBlocks(
   url, 
   label, 
   __namedParameters
): EmailBlock[];
```

Defined in: [src/convex/email-helpers.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-helpers.ts)

The blocks of an email's one link: a button, then the link written out
for a mail app that shows no button (the `email.link.fallback` label). A
link that is not absolute, such as the bare path a deployment with no
`SITE_URL` builds, gets no button, only its text; an empty one gets
nothing.

#### Parameters

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        url
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        label
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        __namedParameters
      </code>
    </td>
    
    <td>
      <code>
        Pick
      </code>
      
      <<a href="#emailrendercontext">
        <code>
          EmailRenderContext
        </code>
      </a>
      
      , <code>
        "t"
      </code>
      
      >
    </td>
  </tr>
</tbody>
</table>

#### Returns

[`EmailBlock`](#emailblock)<span>



</span>



#### Example

```ts
blocks: [{ paragraph: intro }, ...linkBlocks(context.link(url), t('email.invite.action'), context)]
```

---

### describeOrigin()

```ts
function describeOrigin(origin, __namedParameters): string;
```

Defined in: [src/convex/email-helpers.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-helpers.ts)

Where a request came from, in the reader's language: `Requested from Chrome on macOS, near Lisbon, Portugal, at 27 Oct 2026, 14:02 WET.` Each
part the request did not give is left out; the time is always there, in
the requester's time zone when the host named one, else in UTC. The code
emails name it, so a person can tell a request that is not theirs.

#### Parameters

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        origin
      </code>
    </td>
    
    <td>
      <a href="#requestorigin">
        <code>
          RequestOrigin
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        __namedParameters
      </code>
    </td>
    
    <td>
      <code>
        Pick
      </code>
      
      <<a href="#emailrendercontext">
        <code>
          EmailRenderContext
        </code>
      </a>
      
      , <code>
        "t"
      </code>
      
       | <code>
        "locale"
      </code>
      
      >
    </td>
  </tr>
</tbody>
</table>

#### Returns

`string`

---

### plainName()

```ts
function plainName(name, max): string | undefined;
```

Defined in: [src/convex/email-helpers.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-helpers.ts)

A name someone typed as an email shows it: every link and bare domain
taken out, whitespace collapsed, at most `max` characters; `undefined`
when nothing is left. An email from the app's domain never carries a
link a person put in their name, a workspace's or a gift sender's.

#### Parameters

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        name
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        undefined
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        max
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
  </tr>
</tbody>
</table>

#### Returns

`string` | `undefined`

#### Example

```ts
const workspace = plainName(workspaceName, 60) // 'Security alert: verify at evil.com' → 'Security alert: verify at'
```

---

### escapeHtml()

```ts
function escapeHtml(value): string;
```

Defined in: [src/convex/email-html.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-html.ts)

Escape text for HTML: `&`, `<`, `>`, `"` and `'`. Every packaged template
runs each value through it; an override that writes its own HTML should do
the same with anything a user typed (a name, a workspace name, a gift
sender's name), or that user can put markup into an email your domain sends.
The `html` tag does it for every value it interpolates.

#### Parameters

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        value
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
  </tr>
</tbody>
</table>

#### Returns

`string`

#### Example

```ts
gift: (data, { byDefault }) => ({ ...byDefault(data), html: `<p>From ${escapeHtml(data.purchaserName ?? 'someone')}</p>` })
```

---

### forceColorScheme()

```ts
function forceColorScheme(html, scheme): string;
```

Defined in: [src/convex/email-scheme.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-scheme.ts)

**Experimental**

A rendered email as a reader in `scheme` sees it, whatever the previewing
page prefers: `dark` applies the layout's dark styles unconditionally,
`light` drops them. A message without the layout comes back unchanged.

It rewrites the layout's own media query, so it follows the
layout's markup, which may change in any release (STABILITY.md).

#### Parameters

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        html
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        scheme
      </code>
    </td>
    
    <td>
      <code>
        "light"
      </code>
      
       | <code>
        "dark"
      </code>
    </td>
  </tr>
</tbody>
</table>

#### Returns

`string`

---

### trustedHtml()

```ts
function trustedHtml(markup): TrustedHtml;
```

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

Mark markup as safe for [html](#html-1) to insert unescaped: a fragment you
built with `html` itself, or markup of your own that holds nothing a user
typed.

#### Parameters

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        markup
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
  </tr>
</tbody>
</table>

#### Returns

[`TrustedHtml`](#trustedhtml)

#### Example

```ts
const items = names.map(name => trustedHtml(html`<li>${name}</li>`))
html`<ul>${items}</ul>`
```

---

### html()

```ts
function html(strings, ...values): string;
```

Defined in: [src/convex/email-templates.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/email-templates.ts)

A tagged template for an email's HTML: every value it interpolates is
escaped ([escapeHtml](#escapehtml)), so a name or anything else a user typed
cannot put markup into an email your domain sends. An array is joined, and
`null`, `undefined` and `false` leave nothing; wrap markup that must go in
as it is with [trustedHtml](#trustedhtml-1).

#### Parameters

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        strings
      </code>
    </td>
    
    <td>
      <code>
        TemplateStringsArray
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      ...<code>
        values
      </code>
    </td>
    
    <td>
      <code>
        unknown
      </code>
      
      <span>
        
      </span>
    </td>
  </tr>
</tbody>
</table>

#### Returns

`string`

#### Example

```ts
import { html } from 'nuxt-backend/email'

html`<p>Welcome back, ${user.name}!</p>`  // <p>Welcome back, &lt;b&gt;Ada&lt;/b&gt;!</p> for the name <b>Ada</b>
```

---

### setupEmail()

```ts
function setupEmail(components, options?): Email;
```

Defined in: [src/convex/integrations/email.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/email.ts)

App-facing email helper over the `backend` component's email module: both
**transactional** email (send / status / cancel + webhook) and **marketing**
email (segments / contacts / broadcasts via the provider SDK). It also
holds the templates of every email the package sends: `setupAuth` and
`setupBilling` take this instance as their `email` option and send through
it, so an override here restyles all of them.

Both use the required `EMAIL_API_KEY` env var. While it's missing (e.g. a
mid-configuration preview), transactional `send` logs instead of delivering.

#### Parameters

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        components
      </code>
    </td>
    
    <td>
      <a href="#emailcomponents">
        <code>
          EmailComponents
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        options?
      </code>
    </td>
    
    <td>
      <a href="#setupemailoptions">
        <code>
          SetupEmailOptions
        </code>
      </a>
    </td>
  </tr>
</tbody>
</table>

#### Returns

[`Email`](#email-25)

#### Example

```ts
import { setupEmail } from 'nuxt-backend/email'
import { components } from './_generated/api'

export const email = setupEmail(components, {
  templates: { invite: (data, { byDefault }) => ({ ...byDefault(data), subject: 'Join the team' }) },
})
export const { getEmailStatus } = email.api
```

## References

### LabelParams

Re-exports [LabelParams](https://nuxt-backend.dev/docs/reference/api/use-labels#labelparams)


## Sitemap

See the full [sitemap](https://nuxt-backend.dev/sitemap.md) for all pages.
