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

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

### AccessCtx

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

A context the phase is read in: any query, mutation or action.

#### Extended by

- [`AccessWriteCtx`](#accesswritectx)

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="runquery">
        
      </a>
      
       <code>
        runQuery
      </code>
    </td>
    
    <td>
      <<code>
        Query
      </code>
      
      >(<code>
        query
      </code>
      
      , ...<code>
        args
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        FunctionReturnType
      </code>
      
      <<code>
        Query
      </code>
      
      >>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="auth">
        
      </a>
      
       <code>
        auth
      </code>
    </td>
    
    <td>
      <code>
        Auth
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AccessWriteCtx

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

A context that writes: a mutation or an action.

#### Extends

- [`AccessCtx`](#accessctx)

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="runquery-1">
        
      </a>
      
       <code>
        runQuery
      </code>
    </td>
    
    <td>
      <<code>
        Query
      </code>
      
      >(<code>
        query
      </code>
      
      , ...<code>
        args
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        FunctionReturnType
      </code>
      
      <<code>
        Query
      </code>
      
      >>
    </td>
    
    <td>
      <a href="#accessctx">
        <code>
          AccessCtx
        </code>
      </a>
      
      .<a href="#runquery">
        <code>
          runQuery
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="auth-1">
        
      </a>
      
       <code>
        auth
      </code>
    </td>
    
    <td>
      <code>
        Auth
      </code>
    </td>
    
    <td>
      <a href="#accessctx">
        <code>
          AccessCtx
        </code>
      </a>
      
      .<a href="#auth">
        <code>
          auth
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="runmutation">
        
      </a>
      
       <code>
        runMutation
      </code>
    </td>
    
    <td>
      <<code>
        Mutation
      </code>
      
      >(<code>
        mutation
      </code>
      
      , ...<code>
        args
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        FunctionReturnType
      </code>
      
      <<code>
        Mutation
      </code>
      
      >>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AccessPhaseState

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

The launch phase as `getAccessPhase` answers it.

#### Extended by

- [`AccessConsole`](#accessconsole)

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="phase">
        
      </a>
      
       <code>
        phase
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/use-access#accessphase">
        <code>
          AccessPhase
        </code>
      </a>
    </td>
    
    <td>
      The phase the app is in now.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="phases">
        
      </a>
      
       <code>
        phases
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/use-access#accessphase">
        <code>
          AccessPhase
        </code>
      </a>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The phases the app goes through, in order (<code>
        setupAccess
      </code>
      
      's <code>
        phases
      </code>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AccessInvite

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

One invite code or access link as the Access tab lists it: never the code itself.

#### 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/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="kind">
        
      </a>
      
       <code>
        kind
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/use-access#invitekind">
        <code>
          InviteKind
        </code>
      </a>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="label">
        
      </a>
      
       <code>
        label
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="maxuses">
        
      </a>
      
       <code>
        maxUses
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="uses">
        
      </a>
      
       <code>
        uses
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="status">
        
      </a>
      
       <code>
        status
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/use-access#invitestatus">
        <code>
          InviteStatus
        </code>
      </a>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="expiresat">
        
      </a>
      
       <code>
        expiresAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      When it stops admitting, epoch ms; <code>
        null
      </code>
      
       for a code with no expiry.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="createdat">
        
      </a>
      
       <code>
        createdAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AccessMemberTicket

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

One member's ticket as the Access tab lists it: never its token.

#### 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-1">
        
      </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/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="holder">
        
      </a>
      
       <code>
        holder
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The member's account id.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="email">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      The member's address; <code>
        null
      </code>
      
       once the account is gone.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="maxuses-1">
        
      </a>
      
       <code>
        maxUses
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="uses-1">
        
      </a>
      
       <code>
        uses
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="status-1">
        
      </a>
      
       <code>
        status
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/use-access#invitestatus">
        <code>
          InviteStatus
        </code>
      </a>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="expiresat-1">
        
      </a>
      
       <code>
        expiresAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When it stops admitting, epoch ms.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="createdat-1">
        
      </a>
      
       <code>
        createdAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AccessAdmission

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

One invitation by address as the Access tab 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="id-2">
        
      </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/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="email-1">
        
      </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/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="source">
        
      </a>
      
       <code>
        source
      </code>
    </td>
    
    <td>
      <code>
        "waitlist"
      </code>
      
       | <code>
        "invitation"
      </code>
    </td>
    
    <td>
      <code>
        invitation
      </code>
      
       for an administrator's, <code>
        waitlist
      </code>
      
       for an admitted waitlist entry.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="label-1">
        
      </a>
      
       <code>
        label
      </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/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="expiresat-2">
        
      </a>
      
       <code>
        expiresAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="usedat">
        
      </a>
      
       <code>
        usedAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      When the address signed up with it; <code>
        null
      </code>
      
       while it waits.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="createdat-2">
        
      </a>
      
       <code>
        createdAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AccessConsole

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

Everything the Access tab shows.

#### Extends

- [`AccessPhaseState`](#accessphasestate)

#### 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="phase-1">
        
      </a>
      
       <code>
        phase
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/use-access#accessphase">
        <code>
          AccessPhase
        </code>
      </a>
    </td>
    
    <td>
      The phase the app is in now.
    </td>
    
    <td>
      <a href="#accessphasestate">
        <code>
          AccessPhaseState
        </code>
      </a>
      
      .<a href="#phase">
        <code>
          phase
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="phases-1">
        
      </a>
      
       <code>
        phases
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/use-access#accessphase">
        <code>
          AccessPhase
        </code>
      </a>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The phases the app goes through, in order (<code>
        setupAccess
      </code>
      
      's <code>
        phases
      </code>
      
      ).
    </td>
    
    <td>
      <a href="#accessphasestate">
        <code>
          AccessPhaseState
        </code>
      </a>
      
      .<a href="#phases">
        <code>
          phases
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="invites">
        
      </a>
      
       <code>
        invites
      </code>
    </td>
    
    <td>
      <a href="#accessinvite">
        <code>
          AccessInvite
        </code>
      </a>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The newest codes and links, at most 200: the administrators' and server code's, never a member's ticket.
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="membertickets">
        
      </a>
      
       <code>
        memberTickets
      </code>
    </td>
    
    <td>
      <a href="#accessmemberticket">
        <code>
          AccessMemberTicket
        </code>
      </a>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The member tickets that end last, at most 200 (<code>
        access.memberTickets
      </code>
      
      ); none without the program.
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="admissions">
        
      </a>
      
       <code>
        admissions
      </code>
    </td>
    
    <td>
      <a href="#accessadmission">
        <code>
          AccessAdmission
        </code>
      </a>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The newest invitations by address, at most 200.
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AdmitResult

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

What an admission did with each address it was given.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="admitted">
        
      </a>
      
       <code>
        admitted
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The addresses that hold an invitation now.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="skipped">
        
      </a>
      
       <code>
        skipped
      </code>
    </td>
    
    <td>
      { <code>
        email
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        reason
      </code>
      
      : <code>
        "account"
      </code>
      
       | <code>
        "malformed"
      </code>
      
       | <code>
        "reserved"
      </code>
      
      ; }<span>
        
      </span>
    </td>
    
    <td>
      The addresses it skipped, and why: <code>
        malformed
      </code>
      
      , <code>
        reserved
      </code>
      
       (a documentation or test domain), <code>
        account
      </code>
      
       (an account exists).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AccessApi

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

The public functions `backend/access.ts` re-exports.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="getaccessphase">
        
      </a>
      
       <code>
        getAccessPhase
      </code>
    </td>
    
    <td>
      <code>
        RegisteredQuery
      </code>
      
      <<code>
        "public"
      </code>
      
      , <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        never
      </code>
      
      >, <code>
        Promise
      </code>
      
      <<a href="#accessphasestate">
        <code>
          AccessPhaseState
        </code>
      </a>
      
      >>
    </td>
    
    <td>
      The launch phase now, for <code>
        useAccessPhase
      </code>
      
      . Anyone may read it, signed in or not.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="checkinvite">
        
      </a>
      
       <code>
        checkInvite
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        code
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <{ <code>
        status
      </code>
      
      : <a href="https://nuxt-backend.dev/docs/reference/api/use-access#invitestatus">
        <code>
          InviteStatus
        </code>
      </a>
      
      ; }>>
    </td>
    
    <td>
      How an invite code or an access link's token checks now, for <code>
        useInvite
      </code>
      
      : <code>
        valid
      </code>
      
      , <code>
        expired
      </code>
      
      , <code>
        used-up
      </code>
      
      , <code>
        revoked
      </code>
      
       or <code>
        unknown
      </code>
      
      . Uses nothing up. Anyone may call it, rate-limited (<code>
        inviteCheck
      </code>
      
       per signed-in caller, <code>
        inviteCheckGlobal
      </code>
      
       across the deployment).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="getaccessconsole">
        
      </a>
      
       <code>
        getAccessConsole
      </code>
    </td>
    
    <td>
      <code>
        RegisteredQuery
      </code>
      
      <<code>
        "public"
      </code>
      
      , <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        never
      </code>
      
      >, <code>
        Promise
      </code>
      
      <<a href="#accessconsole">
        <code>
          AccessConsole
        </code>
      </a>
      
       | <code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      The Access tab: the phase, the codes and links, the member tickets, the invitations by address. <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/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="setaccessphase">
        
      </a>
      
       <code>
        setAccessPhase
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        phase
      </code>
      
      : <a href="https://nuxt-backend.dev/docs/reference/api/use-access#accessphase">
        <code>
          AccessPhase
        </code>
      </a>
      
      ; }, <code>
        Promise
      </code>
      
      <<code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      Move the app to a phase it lists. An administrator's, in person, with a recent sign-in; recorded as <code>
        access.phase_changed
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="createinvite">
        
      </a>
      
       <code>
        createInvite
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        kind
      </code>
      
      : <a href="https://nuxt-backend.dev/docs/reference/api/use-access#invitekind">
        <code>
          InviteKind
        </code>
      </a>
      
      ; <code>
        label
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        maxUses
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        expiresAt?
      </code>
      
      : <code>
        number
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <{ <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        code
      </code>
      
      : <code>
        string
      </code>
      
      ; }>>
    </td>
    
    <td>
      Make an invite code (<code>
        kind: 'code'
      </code>
      
      ) or an access link (<code>
        'link'
      </code>
      
      , which needs <code>
        expiresAt
      </code>
      
      ), answering it once: the database keeps only a hash. 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/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="revokeinvite">
        
      </a>
      
       <code>
        revokeInvite
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <<code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      Close a code, a link or a member's ticket at once, or delete an unused invitation by address; an id nothing has does nothing. 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/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="admitemails">
        
      </a>
      
       <code>
        admitEmails
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        emails
      </code>
      
      : <code>
        string
      </code>
      
      <span>
        
      </span>
      
      ; <code>
        label?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        email?
      </code>
      
      : <code>
        boolean
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <<a href="#admitresult">
        <code>
          AdmitResult
        </code>
      </a>
      
      >>
    </td>
    
    <td>
      Invite addresses (at most 500 at a time). No email unless <code>
        email
      </code>
      
       asks for one: then each person gets a plain "You're invited" email with a one-click unsubscribe, about a hundred an hour (<code>
        setupAccess({ email })
      </code>
      
       needed). 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/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="emailinvitations">
        
      </a>
      
       <code>
        emailInvitations
      </code>
    </td>
    
    <td>
      <code>
        RegisteredAction
      </code>
      
      <<code>
        "internal"
      </code>
      
      , { <code>
        ids
      </code>
      
      : <code>
        string
      </code>
      
      <span>
        
      </span>
      
      ; }, <code>
        Promise
      </code>
      
      <<code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      Internal: sends the invitation emails "Email them" asked for, by the invitations' ids; scheduled by <code>
        admitEmails
      </code>
      
       under this name.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### MemberTicketsOptions

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

Options for [Access.memberTickets](#membertickets-2).

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="uses-2">
        
      </a>
      
       <code>
        uses?
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      How many new addresses one member's ticket admits. Default <code>
        3
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="lifetime">
        
      </a>
      
       <code>
        lifetime?
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      How long a ticket works from when the member asks for it, in milliseconds. Default 60 days, at most a year.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="enabled">
        
      </a>
      
       <code>
        enabled?
      </code>
    </td>
    
    <td>
      (<code>
        ctx
      </code>
      
      ) => <code>
        boolean
      </code>
      
       | <code>
        Promise
      </code>
      
      <<code>
        boolean
      </code>
      
      >
    </td>
    
    <td>
      Whether the program runs now, for a switch of the app's own (a flag, say): <code>
        false
      </code>
      
       answers <code>
        off
      </code>
      
      , issues nothing, and the links already shared admit nobody (<code>
        revoked
      </code>
      
      ) until it is on again. Default: while the app is closed. <strong>
        Guarantee
      </strong>
      
       - Runs: in the query or mutation that reads or mints a member's ticket, and in each code check and sign-up that brings a code or link (nobody signed in), in its transaction - Delivery: once per read, per mint and per code checked; a live read runs it again whenever what it read changes - Order: a read or a mint asks it after the phase (a public app answers <code>
        open
      </code>
      
       without asking), before the member's ticket; a code check or a sign-up, before the code's row is read - When it throws: the read, the mint, the check or the sign-up fails with its error, and nothing is minted or taken - Idempotency: a read: it may run many times for one member or code, and writes nothing
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="chain">
        
      </a>
      
       <code>
        chain?
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Let an account a member ticket admitted hold one of its own (default <code>
        false
      </code>
      
      ). Without it, such an account reads <code>
        off
      </code>
      
      , and a ticket it held from before admits nobody: one member brings their friends, as a workspace invitation does, not a chain of strangers past the waitlist.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="referrals">
        
      </a>
      
       <code>
        referrals?
      </code>
    </td>
    
    <td>
      <code>
        Pick
      </code>
      
      <<a href="https://nuxt-backend.dev/docs/reference/api/billing#referrals-1">
        <code>
          Referrals
        </code>
      </a>
      
      , <code>
        "claimFor"
      </code>
      
      >
    </td>
    
    <td>
      The app's referral program (<code>
        setupReferrals
      </code>
      
      ), so each friend a member's ticket admits counts as the member's referral: it is claimed for the member as the friend's account is made, whichever page, browser or link the friend signed up from. The ticket decides, never the address: the link carries nothing for it. The claim's own checks hold (the first referral claimed wins, an address that is the member's is refused), and the member's reward waits for the friend's first paid order and the hold, as for any referral. A claim that cannot be made never fails the sign-up. Default: none, and a member's ticket claims nothing.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### MemberTicketsApi

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

The functions `backend/access.ts` re-exports for member tickets.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="getmemberticket">
        
      </a>
      
       <code>
        getMemberTicket
      </code>
    </td>
    
    <td>
      <code>
        RegisteredQuery
      </code>
      
      <<code>
        "public"
      </code>
      
      , <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        never
      </code>
      
      >, <code>
        Promise
      </code>
      
      <<a href="#memberticket">
        <code>
          MemberTicket
        </code>
      </a>
      
       | <code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      The signed-in member's ticket, for <code>
        useMemberTicket
      </code>
      
      : <code>
        null
      </code>
      
       for a visitor, a banned account, and an administrator acting as the member. Never mints one.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="issuememberticket">
        
      </a>
      
       <code>
        issueMemberTicket
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        never
      </code>
      
      >, <code>
        Promise
      </code>
      
      <<a href="#memberticket">
        <code>
          MemberTicket
        </code>
      </a>
      
      >>
    </td>
    
    <td>
      Mint the member's ticket, or answer the one they hold: the member's own, in person.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### MemberTickets

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

Member tickets, from [Access.memberTickets](#membertickets-2).

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="uses-3">
        
      </a>
      
       <code>
        uses
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      How many new addresses one ticket admits.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="lifetime-1">
        
      </a>
      
       <code>
        lifetime
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      How long a ticket works, in milliseconds.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="api">
        
      </a>
      
       <code>
        api
      </code>
    </td>
    
    <td>
      <a href="#memberticketsapi">
        <code>
          MemberTicketsApi
        </code>
      </a>
    </td>
    
    <td>
      The functions <code>
        backend/access.ts
      </code>
      
       re-exports.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### Access

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

The app's launch access, from [setupAccess](#setupaccess).

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="phases-2">
        
      </a>
      
       <code>
        phases
      </code>
    </td>
    
    <td>
      readonly <a href="https://nuxt-backend.dev/docs/reference/api/use-access#accessphase">
        <code>
          AccessPhase
        </code>
      </a>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The phases the app goes through, in order.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="phase-2">
        
      </a>
      
       <code>
        phase
      </code>
    </td>
    
    <td>
      (<code>
        ctx
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<a href="https://nuxt-backend.dev/docs/reference/api/use-access#accessphase">
        <code>
          AccessPhase
        </code>
      </a>
      
      >
    </td>
    
    <td>
      The phase the app is in now, read from the <code>
        backend
      </code>
      
       component.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="invites-1">
        
      </a>
      
       <code>
        invites
      </code>
    </td>
    
    <td>
      { <code>
        create
      </code>
      
      : (<code>
        ctx
      </code>
      
      , <code>
        input
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        string
      </code>
      
      >; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        invites.create
      </code>
    </td>
    
    <td>
      (<code>
        ctx
      </code>
      
      , <code>
        input
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        string
      </code>
      
      >
    </td>
    
    <td>
      Make an invite code from server code and answer it, once: the database keeps only a hash. <code>
        kind: 'link'
      </code>
      
       makes an access link's token instead, for <code>
        /invite#<token>
      </code>
      
      . Recorded as <code>
        access.invite_created
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="admit">
        
      </a>
      
       <code>
        admit
      </code>
    </td>
    
    <td>
      (<code>
        ctx
      </code>
      
      , <code>
        input
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<a href="#admitresult">
        <code>
          AdmitResult
        </code>
      </a>
      
      >
    </td>
    
    <td>
      Invite addresses from server code, with no email: each signs up while the app is closed, for 30 days. Existing accounts, malformed addresses and reserved domains are skipped. Recorded as <code>
        access.admitted
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="membertickets-2">
        
      </a>
      
       <code>
        memberTickets
      </code>
    </td>
    
    <td>
      (<code>
        options?
      </code>
      
      ) => <a href="#membertickets-1">
        <code>
          MemberTickets
        </code>
      </a>
    </td>
    
    <td>
      Member tickets: while the app is closed, every member can hold one access link that admits <code>
        uses
      </code>
      
       new addresses for <code>
        lifetime
      </code>
      
      , minted the first time they ask and read back after, to share with friends. A sign-up through one is the <code>
        member-ticket
      </code>
      
       ticket, labelled <code>
        member:<userId>
      </code>
      
      , and is checked against its member then: a banned member's link, or one while the program is off, admits nobody. Declare it once, in <code>
        backend/access.ts
      </code>
      
      , and re-export its <code>
        api
      </code>
      
       there for <code>
        useMemberTicket
      </code>
      
      . Recorded as <code>
        access.invite_created
      </code>
      
       (label <code>
        member
      </code>
      
      ) on each mint. With <code>
        referrals
      </code>
      
      , each friend a ticket admits is claimed as its member's referral when their account is made. <strong>
        Example
      </strong>
      
       <code>
        [backend/access.ts] export const memberTickets = access.memberTickets({ uses: 3, lifetime: 60 * DAY }) export const { getMemberTicket, issueMemberTicket } = memberTickets.api
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="api-1">
        
      </a>
      
       <code>
        api
      </code>
    </td>
    
    <td>
      <a href="#accessapi">
        <code>
          AccessApi
        </code>
      </a>
    </td>
    
    <td>
      The public functions <code>
        backend/access.ts
      </code>
      
       re-exports.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="gate">
        
      </a>
      
       <code>
        gate
      </code>
    </td>
    
    <td>
      <code>
        AccessGate
      </code>
    </td>
    
    <td>
      What <code>
        setupAuth({ access })
      </code>
      
       asks while a new address signs up.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### SetupAccessOptions

Defined in: [src/convex/integrations/launch.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.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="phases-3">
        
      </a>
      
       <code>
        phases?
      </code>
    </td>
    
    <td>
      readonly <a href="https://nuxt-backend.dev/docs/reference/api/use-access#accessphase">
        <code>
          AccessPhase
        </code>
      </a>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The phases the app goes through, in order: any of <code>
        early-access
      </code>
      
      , <code>
        invite-only
      </code>
      
       and <code>
        public
      </code>
      
      . A new deployment starts on the first. Default: all three.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="domains">
        
      </a>
      
       <code>
        domains?
      </code>
    </td>
    
    <td>
      readonly <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      Domains whose every address signs up in any phase (the part after <code>
        @
      </code>
      
      , matched exactly): your own team's.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="workspaceinvitations">
        
      </a>
      
       <code>
        workspaceInvitations?
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
      
       | <code>
        false
      </code>
    </td>
    
    <td>
      How many new addresses one account's workspace invitations admit while the app is closed. An account that a workspace invitation admitted admits nobody by its own, so one admitted account can't open the phase to a chain of others. <code>
        false
      </code>
      
      : a workspace invitation is no ticket. Default <code>
        10
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.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 audit trail: phase changes, codes, links, invitations and used tickets are recorded on it.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="ratelimiter">
        
      </a>
      
       <code>
        rateLimiter?
      </code>
    </td>
    
    <td>
      { <code>
        limit
      </code>
      
      : (<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>
      Your <code>
        setupRateLimiter
      </code>
      
       instance, for the invite check's limits (<code>
        inviteCheck
      </code>
      
      , <code>
        inviteCheckGlobal
      </code>
      
      ). 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/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        rateLimiter.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>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.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 Access tab, read fresh. Default <code>
        ['admin']
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.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 Access tab whatever their role, by id.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="email-2">
        
      </a>
      
       <code>
        email?
      </code>
    </td>
    
    <td>
      <a href="#accessemail">
        <code>
          AccessEmail
        </code>
      </a>
    </td>
    
    <td>
      The email instance (<code>
        setupEmail
      </code>
      
      ), for "Email them": the invitation is rendered in its layout, with the brand and a one-click unsubscribe, under the weekly cap and quiet hours. Without it, invitations by address send no email. Re-export <code>
        emailInvitations
      </code>
      
       with it.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.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 paths the Nuxt module writes to <code>
        paths.generated.ts
      </code>
      
      : an invitation email links to the sign-in page and the privacy policy there.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="waitlist">
        
      </a>
      
       <code>
        waitlist?
      </code>
    </td>
    
    <td>
      <a href="#waitlistoptions">
        <code>
          WaitlistOptions
        </code>
      </a>
    </td>
    
    <td>
      The rule the waitlist's line runs on, in early access. It lives here, not on <code>
        setupWaitlist
      </code>
      
      , because the sign-in page records entries through this access, in code that never loads <code>
        backend/waitlist.ts
      </code>
      
      . - <code>
        boost
      </code>
      
      : how sharing moves people. Each friend who joins through a person's link moves them <code>
        perFriend
      </code>
      
       up the line (ms, a day by default), for up to <code>
        cap
      </code>
      
       friends (10 by default, <code>
        null
      </code>
      
       for no limit); the friend starts <code>
        welcome
      </code>
      
       up (0 by default); <code>
        notify
      </code>
      
       emails the person when a friend joins, at most once a day. <code>
        false
      </code>
      
       turns sharing off. - <code>
        place
      </code>
      
      : <code>
        { rank: false }
      </code>
      
       keeps a person's position and the size of the list to the administrators: the status page, the sign-in page and the confirmation email show the day they joined, the credit their friends earned and the next wave instead. <strong>
        Example
      </strong>
      
       <code>
        import { DAY } from 'nuxt-backend/rate-limit' waitlist: { boost: { perFriend: 7 * DAY, cap: null, welcome: 7 * DAY, notify: true }, place: { rank: false } }
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AccessEmail

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

What "Email them" needs of `setupEmail`'s instance: the layout and words, and the sending rules.

#### Properties

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

<tbody>
  <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>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AccessComponents

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

The `backend` component (and the rate limiter) as access reads them.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="backend">
        
      </a>
      
       <code>
        backend
      </code>
    </td>
    
    <td>
      <code>
        unknown
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="ratelimiter-1">
        
      </a>
      
       <code>
        rateLimiter?
      </code>
    </td>
    
    <td>
      <code>
        unknown
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/launch.ts" rel="nofollow">
        src/convex/integrations/launch.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### WaitlistWaveStanding

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

Where a waiting person stands against the next wave an administrator planned: in it or not, never its size.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="opensat">
        
      </a>
      
       <code>
        opensAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      When the wave opens, epoch ms; <code>
        null
      </code>
      
       when no date is set.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="included">
        
      </a>
      
       <code>
        included
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Whether the person is in it now (a later friend of someone else may still move them out).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="friendsshort">
        
      </a>
      
       <code>
        friendsShort
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      How many more friends would put them in it: 0 when in it, <code>
        null
      </code>
      
       when sharing is off or the friend cap leaves no room for that many.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### WaitlistApi

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

The public functions `backend/waitlist.ts` re-exports.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="getwaitlistquestions">
        
      </a>
      
       <code>
        getWaitlistQuestions
      </code>
    </td>
    
    <td>
      <code>
        RegisteredQuery
      </code>
      
      <<code>
        "public"
      </code>
      
      , <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        never
      </code>
      
      >, <code>
        Promise
      </code>
      
      <<code>
        Readonly
      </code>
      
      <<code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , readonly <code>
        string
      </code>
      
      <span>
        
      </span>
      
      >>>>
    </td>
    
    <td>
      The questions the form asks beside the address, with their choices, for <code>
        useWaitlist
      </code>
      
       and <code>
        <WaitlistForm>
      </code>
      
      . Anyone may read them.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="joinwaitlist">
        
      </a>
      
       <code>
        joinWaitlist
      </code>
    </td>
    
    <td>
      <code>
        RegisteredAction
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        email
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        answers?
      </code>
      
      : <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        string
      </code>
      
      >; <code>
        launchNews?
      </code>
      
      : <code>
        boolean
      </code>
      
      ; <code>
        launchNewsText?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        source?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        ref?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        locale?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        human?
      </code>
      
      : <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <{ <code>
        join
      </code>
      
      : <code>
        string
      </code>
      
      ; }>>
    </td>
    
    <td>
      Begin a join: check the phase, the answers and the bot check, and keep the answers until the sign-in code proves the address. A public action (the bot check needs <code>
        fetch
      </code>
      
      ). The client then asks for the code, which spends <code>
        signUpOtpGlobal
      </code>
      
      . Refused as <code>
        invalid_input
      </code>
      
       on a question's field, <code>
        forbidden
      </code>
      
       (reason <code>
        bot_check
      </code>
      
      , or <code>
        waitlist_closed
      </code>
      
       outside early access) or <code>
        rate_limited
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="waitliststatus-1">
        
      </a>
      
       <code>
        waitlistStatus
      </code>
    </td>
    
    <td>
      <code>
        RegisteredQuery
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        token
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      < | <a href="https://nuxt-backend.dev/docs/reference/api/use-waitlist#waitliststatusview">
        <code>
          WaitlistStatusView
        </code>
      </a>
      
       | <code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      A person's standing, by the signed token of their status link; <code>
        null
      </code>
      
       for a token that was not signed here or an entry that is gone.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="leavewaitlist">
        
      </a>
      
       <code>
        leaveWaitlist
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        token
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <<code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      Leave the list by the signed token: the entry and the contact are removed.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="getwaitlistconsole">
        
      </a>
      
       <code>
        getWaitlistConsole
      </code>
    </td>
    
    <td>
      <code>
        RegisteredQuery
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        status?
      </code>
      
      : <a href="https://nuxt-backend.dev/docs/reference/api/use-waitlist#waitliststatus">
        <code>
          WaitlistStatus
        </code>
      </a>
      
      ; <code>
        domain?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        source?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        question?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        answer?
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      < | <a href="https://nuxt-backend.dev/docs/reference/api/use-waitlist#waitlistconsole">
        <code>
          WaitlistConsole
        </code>
      </a>
      
       | <code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      The Waitlist tab. <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/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="admitwaitlist">
        
      </a>
      
       <code>
        admitWaitlist
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        ids?
      </code>
      
      : <code>
        string
      </code>
      
      <span>
        
      </span>
      
      ; <code>
        next?
      </code>
      
      : <code>
        number
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <{ <code>
        admitted
      </code>
      
      : <code>
        number
      </code>
      
      ; }>>
    </td>
    
    <td>
      Admit entries by id, or the next <code>
        next
      </code>
      
       in line. An administrator's, in person, with a recent sign-in; each gets one "You're in" email.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="declinewaitlist">
        
      </a>
      
       <code>
        declineWaitlist
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        ids
      </code>
      
      : <code>
        string
      </code>
      
      <span>
        
      </span>
      
      ; <code>
        abuse?
      </code>
      
      : <code>
        boolean
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <{ <code>
        declined
      </code>
      
      : <code>
        number
      </code>
      
      ; }>>
    </td>
    
    <td>
      Decline entries, or remove them as abuse (which takes back what they gave the friends who shared with them). 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/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="notewaitlist">
        
      </a>
      
       <code>
        noteWaitlist
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        note
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <<code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      Keep a note on an entry. 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/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="getwaitlistcaps">
        
      </a>
      
       <code>
        getWaitlistCaps
      </code>
    </td>
    
    <td>
      <code>
        RegisteredAction
      </code>
      
      <<code>
        "public"
      </code>
      
      , <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        never
      </code>
      
      >, <code>
        Promise
      </code>
      
      < | <a href="https://nuxt-backend.dev/docs/reference/api/use-waitlist#waitlistcaps">
        <code>
          WaitlistCaps
        </code>
      </a>
      
       | <code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      The room a wave has. <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/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="planwaitlistwave">
        
      </a>
      
       <code>
        planWaitlistWave
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        size
      </code>
      
      : <code>
        number
      </code>
      
       | <code>
        null
      </code>
      
      ; <code>
        opensAt?
      </code>
      
      : <code>
        number
      </code>
      
       | <code>
        null
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <<code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      Plan the next wave: <code>
        size
      </code>
      
       people from the front of the line, opening at <code>
        opensAt
      </code>
      
       (epoch ms) if a date is set; <code>
        size: null
      </code>
      
       clears the plan. Each waiting person then reads whether they are in it, never its size. 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/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### Waitlist

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

The app's waitlist, from [setupWaitlist](#setupwaitlist).

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="questions">
        
      </a>
      
       <code>
        questions
      </code>
    </td>
    
    <td>
      <a href="#waitlistquestions-1">
        <code>
          WaitlistQuestions
        </code>
      </a>
    </td>
    
    <td>
      The questions asked beside the address.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="rule">
        
      </a>
      
       <code>
        rule
      </code>
    </td>
    
    <td>
      <a href="#waitlistrule-1">
        <code>
          WaitlistRule
        </code>
      </a>
    </td>
    
    <td>
      The rule the line runs on, from <code>
        setupAccess({ waitlist })
      </code>
      
      : how sharing moves people, and whether a person reads their rank.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="api-2">
        
      </a>
      
       <code>
        api
      </code>
    </td>
    
    <td>
      <a href="#waitlistapi">
        <code>
          WaitlistApi
        </code>
      </a>
    </td>
    
    <td>
      The public functions <code>
        backend/waitlist.ts
      </code>
      
       re-exports.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="launchaudience">
        
      </a>
      
       <code>
        launchAudience
      </code>
    </td>
    
    <td>
      (<code>
        ctx
      </code>
      
      ) => <code>
        Promise
      </code>
      
      < | { <code>
        segmentId
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        topicId
      </code>
      
      : <code>
        string
      </code>
      
      ; } | <code>
        null
      </code>
      
      >
    </td>
    
    <td>
      The people who asked for launch news, as the email provider holds them: the ids of the segment and the topic the mirror writes to, for a launch announcement. <code>
        null
      </code>
      
       before the first contact is written.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### SetupWaitlistOptions

Defined in: [src/convex/integrations/waitlist.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/waitlist.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="access-1">
        
      </a>
      
       <code>
        access
      </code>
    </td>
    
    <td>
      <a href="#access">
        <code>
          Access
        </code>
      </a>
    </td>
    
    <td>
      The <code>
        setupAccess
      </code>
      
       instance the waitlist is built on: its phases, its administrators and its tickets.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="email-3">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        Pick
      </code>
      
      <<a href="https://nuxt-backend.dev/docs/reference/api/email#email-25">
        <code>
          Email
        </code>
      </a>
      
      , <code>
        "sendTemplate"
      </code>
      
      >
    </td>
    
    <td>
      The app's <code>
        setupEmail
      </code>
      
       instance: the "You're in" email goes through it, so its overrides restyle it.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="questions-1">
        
      </a>
      
       <code>
        questions?
      </code>
    </td>
    
    <td>
      <code>
        Readonly
      </code>
      
      <<code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , readonly <code>
        string
      </code>
      
      <span>
        
      </span>
      
      >>
    </td>
    
    <td>
      Questions asked beside the address: each key holds the choices an answer must be one of (at most 5 questions of 20 choices).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="ratelimiter-2">
        
      </a>
      
       <code>
        rateLimiter?
      </code>
    </td>
    
    <td>
      { <code>
        limit
      </code>
      
      : (<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>
      Your <code>
        setupRateLimiter
      </code>
      
       instance, for the join's limits (<code>
        waitlistJoin
      </code>
      
      , <code>
        waitlistJoinGlobal
      </code>
      
      ). 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/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        rateLimiter.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>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="paths-1">
        
      </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: the "You're in" email links an admitted person to <code>
        {SITE_URL}{paths.login}
      </code>
      
       (<code>
        pages.login
      </code>
      
      , <code>
        /login
      </code>
      
       by default).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/waitlist.ts" rel="nofollow">
        src/convex/integrations/waitlist.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### WaitlistBoostRule

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

How the line rewards sharing, as the component applies it: how far each
friend moves the sharer up, how many friends count, and how far a friend
who came through a link starts up the line themselves. Durations in ms.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="perfriend">
        
      </a>
      
       <code>
        perFriend
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      How far each friend moves the sharer up the line.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/waitlist-rules.ts" rel="nofollow">
        src/convex/waitlist-rules.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="cap">
        
      </a>
      
       <code>
        cap
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      The most friends that count for one person; <code>
        null
      </code>
      
       for no limit, 0 when sharing is off.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/waitlist-rules.ts" rel="nofollow">
        src/convex/waitlist-rules.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="welcome">
        
      </a>
      
       <code>
        welcome
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      How far a friend who came through a link starts up the line.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/waitlist-rules.ts" rel="nofollow">
        src/convex/waitlist-rules.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### WaitlistRule

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

The waitlist's rule, checked, as the sign-in gate and `setupWaitlist`
read it: how sharing moves people, whether a person may read their place
and the size of the list, and whether a sharer hears of a friend.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="boost">
        
      </a>
      
       <code>
        boost
      </code>
    </td>
    
    <td>
      <a href="#waitlistboostrule">
        <code>
          WaitlistBoostRule
        </code>
      </a>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/waitlist-rules.ts" rel="nofollow">
        src/convex/waitlist-rules.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="rank">
        
      </a>
      
       <code>
        rank
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Whether a person reads their place and how many wait.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/waitlist-rules.ts" rel="nofollow">
        src/convex/waitlist-rules.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="notify">
        
      </a>
      
       <code>
        notify
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Whether a sharer is emailed when a friend joins with their link.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/waitlist-rules.ts" rel="nofollow">
        src/convex/waitlist-rules.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### WaitlistBoostOptions

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

How sharing moves people up the line, as `setupAccess({ waitlist: { boost } })` takes it. Durations in milliseconds.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="perfriend-1">
        
      </a>
      
       <code>
        perFriend?
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      How far each friend who joins through a person's link moves them up the line. Default a day; at most a year.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/waitlist-rules.ts" rel="nofollow">
        src/convex/waitlist-rules.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="cap-1">
        
      </a>
      
       <code>
        cap?
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      The most friends that count for one person. Default 10; <code>
        null
      </code>
      
       for no limit.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/waitlist-rules.ts" rel="nofollow">
        src/convex/waitlist-rules.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="welcome-1">
        
      </a>
      
       <code>
        welcome?
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      How far the friend starts up the line themselves, for coming through a link. Default 0.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/waitlist-rules.ts" rel="nofollow">
        src/convex/waitlist-rules.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="notify-1">
        
      </a>
      
       <code>
        notify?
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Email the person, at most once a day, when a friend joins with their link (<code>
        waitlistFriendJoined
      </code>
      
      ). Default false.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/waitlist-rules.ts" rel="nofollow">
        src/convex/waitlist-rules.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### WaitlistOptions

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

The waitlist's rule as `setupAccess({ waitlist })` takes 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="boost-1">
        
      </a>
      
       <code>
        boost?
      </code>
    </td>
    
    <td>
      <code>
        false
      </code>
      
       | <a href="#waitlistboostoptions">
        <code>
          WaitlistBoostOptions
        </code>
      </a>
    </td>
    
    <td>
      How sharing moves people; <code>
        false
      </code>
      
       turns it off. Default: a day a friend, up to ten, nothing for the friend.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/waitlist-rules.ts" rel="nofollow">
        src/convex/waitlist-rules.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="place">
        
      </a>
      
       <code>
        place?
      </code>
    </td>
    
    <td>
      { <code>
        rank?
      </code>
      
      : <code>
        boolean
      </code>
      
      ; }
    </td>
    
    <td>
      What a person reads of their standing; <code>
        { rank: false }
      </code>
      
       keeps their position and the list's size to the administrators.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/waitlist-rules.ts" rel="nofollow">
        src/convex/waitlist-rules.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        place.rank?
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/waitlist-rules.ts" rel="nofollow">
        src/convex/waitlist-rules.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

## Type Aliases

### AccessTicket

```ts
type AccessTicket = 
  | "invite-code"
  | "access-link"
  | "member-ticket"
  | "invitation"
  | "waitlist"
  | "workspace-invitation"
  | "gift"
  | "domain"
  | "administrator";
```

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

What admitted a new address while the app was closed, as the redemption
ledger, the activity trail and `canSignIn` name it:

- `invite-code` and `access-link`: an administrator's code or link.
- `member-ticket`: a member's ticket, an access link a member shares (`access.memberTickets`).
- `invitation`: an administrator invited the address (`access.admit`, the Access tab).
- `waitlist`: an administrator admitted the address's waitlist entry.
- `workspace-invitation`: a pending, unexpired invitation to a workspace.
- `gift`: a paid, unclaimed gift addressed to it.
- `domain`: its domain is one of `setupAccess`'s `domains`.
- `administrator`: an administrator created the account.

---

### MemberTicket

```ts
type MemberTicket = 
  | {
  state: "open";
}
  | {
  state: "off";
}
  | {
  state: "none";
  uses: number;
}
  | {
  state: "issued";
  token: string;
  uses: number;
  left: number;
  expiresAt: number;
};
```

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

A member's ticket as `getMemberTicket` answers it:

- `open`: the app is public, and nobody needs a ticket;
- `off`: the program is off now (`memberTickets({ enabled })` said so), or
for this member: one a member ticket admitted holds none, unless `chain`,
and an administrator revoked theirs (until it would have ended);
- `none`: the member holds no ticket that works, and may ask for one of
`uses` (after a retired `AUTH_SECRET`, the uses their ticket has left:
asking gives it a new link);
- `issued`: the member's access link token, for `/invite#<token>`, how many
new addresses it admits in all, how many it still admits, and when it
stops. Asking again answers the same ticket until it expires, used up or not.

---

### WaitlistQuestions

```ts
type WaitlistQuestions = Readonly<Record<string, readonly string[]>>;
```

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

The questions an app asks beside the address: each key holds the choices an answer must be one of.

## Variables

### ACCESS_PHASES

```ts
const ACCESS_PHASES: readonly ["early-access", "invite-only", "public"];
```

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

Every launch phase, in order: an app lists the ones it goes through.

## Functions

### setupAccess()

```ts
function setupAccess(components, options): Access;
```

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

Launch your app in phases: early access with a waitlist, then invite
only, then public. Existing accounts always sign in. While the app is
closed, a new address needs a ticket: an invite code or an access link,
an invitation by address, an admitted waitlist entry, a pending
workspace invitation, a paid gift addressed to it, or a domain of
`domains`. Pass the result to `setupAuth({ access })`: its sign-in
hooks ask the phase and take the ticket. An administrator changes the
phase and hands out tickets from the admin console's Access tab.

#### Parameters

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

<tbody>
  <tr>
    <td>
      <code>
        components
      </code>
    </td>
    
    <td>
      <a href="#accesscomponents">
        <code>
          AccessComponents
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        options
      </code>
    </td>
    
    <td>
      <a href="#setupaccessoptions">
        <code>
          SetupAccessOptions
        </code>
      </a>
    </td>
  </tr>
</tbody>
</table>

#### Returns

[`Access`](#access)

#### Example

```ts [backend/access.ts]
import { setupAccess } from 'nuxt-backend/access'
import { components } from './_generated/api'
import { audit } from './audit'

export const access = setupAccess(components, {
  phases: ['early-access', 'invite-only', 'public'],
  domains: ['panels.example'],
  audit,
})

export const { getAccessPhase, checkInvite, getAccessConsole, setAccessPhase, createInvite, revokeInvite, admitEmails } = access.api
```

---

### setupWaitlist()

```ts
function setupWaitlist(components, options): Waitlist;
```

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

Run a waitlist for early access: joins proven by the sign-in code (the
double opt-in), a place for everyone waiting, a boost for each friend who
joins through their link, waves an administrator admits from the console's
Waitlist tab, and a mirror of the people who asked for launch news to the
email provider. It is built on [Access](#access): an app whose phases
include `early-access` records an entry whenever a new address's code
checks, and an admitted entry is a ticket.

#### Parameters

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

<tbody>
  <tr>
    <td>
      <code>
        components
      </code>
    </td>
    
    <td>
      <a href="#accesscomponents">
        <code>
          AccessComponents
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        options
      </code>
    </td>
    
    <td>
      <a href="#setupwaitlistoptions">
        <code>
          SetupWaitlistOptions
        </code>
      </a>
    </td>
  </tr>
</tbody>
</table>

#### Returns

[`Waitlist`](#waitlist-1)

#### Example

```ts [backend/waitlist.ts]
import { setupWaitlist } from 'nuxt-backend/access'
import { components } from './_generated/api'
import { access } from './access'
import { email } from './email'
import { paths } from './paths.generated'

export const waitlist = setupWaitlist(components, {
  access,
  email,
  paths,
  questions: { role: ['Writer', 'Illustrator', 'Reader'] },
})

export const { getWaitlistQuestions, joinWaitlist, waitlistStatus, leaveWaitlist, getWaitlistConsole, admitWaitlist, declineWaitlist, noteWaitlist, getWaitlistCaps, planWaitlistWave } = waitlist.api
```

## References

### WaitlistCaps

Re-exports [WaitlistCaps](https://nuxt-backend.dev/docs/reference/api/use-waitlist#waitlistcaps)

---

### WaitlistConsole

Re-exports [WaitlistConsole](https://nuxt-backend.dev/docs/reference/api/use-waitlist#waitlistconsole)

---

### WaitlistEntryRow

Re-exports [WaitlistEntryRow](https://nuxt-backend.dev/docs/reference/api/use-waitlist#waitlistentryrow)

---

### WaitlistPlace

Re-exports [WaitlistPlace](https://nuxt-backend.dev/docs/reference/api/use-waitlist#waitlistplace)

---

### WaitlistStatusView

Re-exports [WaitlistStatusView](https://nuxt-backend.dev/docs/reference/api/use-waitlist#waitliststatusview)

---

### WaitlistStatus

Re-exports [WaitlistStatus](https://nuxt-backend.dev/docs/reference/api/use-waitlist#waitliststatus)

---

### AccessPhase

Re-exports [AccessPhase](https://nuxt-backend.dev/docs/reference/api/use-access#accessphase)

---

### InviteKind

Re-exports [InviteKind](https://nuxt-backend.dev/docs/reference/api/use-access#invitekind)

---

### InviteStatus

Re-exports [InviteStatus](https://nuxt-backend.dev/docs/reference/api/use-access#invitestatus)


## Sitemap

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