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

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

### FunnelBreakdownRow

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

One value of a dimension, with the people of each step counted under 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="value">
        
      </a>
      
       <code>
        value
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The value: a campaign, an answer's name, an invite's label, a referral code, a promotion's key; <code>
        direct
      </code>
      
       for none, <code>
        other
      </code>
      
       past the values kept apart.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/funnel-rules.ts" rel="nofollow">
        src/convex/funnel-rules.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="label">
        
      </a>
      
       <code>
        label?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      A referral code's owner, by name, while the account exists.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/funnel-rules.ts" rel="nofollow">
        src/convex/funnel-rules.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="counts">
        
      </a>
      
       <code>
        counts
      </code>
    </td>
    
    <td>
      <code>
        Record
      </code>
      
      <<a href="#personstep">
        <code>
          PersonStep
        </code>
      </a>
      
      , <code>
        number
      </code>
      
      >
    </td>
    
    <td>
      The people of each step counted under it.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/funnel-rules.ts" rel="nofollow">
        src/convex/funnel-rules.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### FunnelCohort

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

One sign-up week's cohort.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="week">
        
      </a>
      
       <code>
        week
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      The week's start (Monday, 00:00 UTC), epoch ms.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/funnel-rules.ts" rel="nofollow">
        src/convex/funnel-rules.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="size">
        
      </a>
      
       <code>
        size
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      The accounts that signed up in it.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/funnel-rules.ts" rel="nofollow">
        src/convex/funnel-rules.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="active">
        
      </a>
      
       <code>
        active
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      How many of them were active in each week from it on: the first is its own week.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/funnel-rules.ts" rel="nofollow">
        src/convex/funnel-rules.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### FunnelReport

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

The growth funnel over a run of weeks, as `getFunnel` answers it.

#### Extends

- `Record`<[`FunnelStep`](#funnelstep), `number`>

#### 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="waitlist">
        
      </a>
      
       <code>
        waitlist
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <code>
        Record.waitlist
      </code>
    </td>
    
    <td>
      
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="trial">
        
      </a>
      
       <code>
        trial
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <code>
        Record.trial
      </code>
    </td>
    
    <td>
      
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="paid">
        
      </a>
      
       <code>
        paid
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <code>
        Record.paid
      </code>
    </td>
    
    <td>
      
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="admitted">
        
      </a>
      
       <code>
        admitted
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <code>
        Record.admitted
      </code>
    </td>
    
    <td>
      
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="signup">
        
      </a>
      
       <code>
        signup
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <code>
        Record.signup
      </code>
    </td>
    
    <td>
      
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="activation">
        
      </a>
      
       <code>
        activation
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <code>
        Record.activation
      </code>
    </td>
    
    <td>
      
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="weeks">
        
      </a>
      
       <code>
        weeks
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      How many weeks it covers.
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/funnel-rules.ts" rel="nofollow">
        src/convex/funnel-rules.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="since">
        
      </a>
      
       <code>
        since
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      The first week's start, epoch ms.
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/funnel-rules.ts" rel="nofollow">
        src/convex/funnel-rules.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="until">
        
      </a>
      
       <code>
        until
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      The last week's start, epoch ms.
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/funnel-rules.ts" rel="nofollow">
        src/convex/funnel-rules.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="breakdowns">
        
      </a>
      
       <code>
        breakdowns
      </code>
    </td>
    
    <td>
      <code>
        Record
      </code>
      
      <<a href="#funneldimension">
        <code>
          FunnelDimension
        </code>
      </a>
      
      , <a href="#funnelbreakdownrow">
        <code>
          FunnelBreakdownRow
        </code>
      </a>
      
      <span>
        
      </span>
      
      >
    </td>
    
    <td>
      Each person step broken down by each dimension: the values with anyone in them.
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/funnel-rules.ts" rel="nofollow">
        src/convex/funnel-rules.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="cohorts">
        
      </a>
      
       <code>
        cohorts
      </code>
    </td>
    
    <td>
      <a href="#funnelcohort">
        <code>
          FunnelCohort
        </code>
      </a>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The sign-up weeks, oldest first, with their retention.
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/funnel-rules.ts" rel="nofollow">
        src/convex/funnel-rules.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="otheranswers">
        
      </a>
      
       <code>
        otherAnswers
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The latest "Other" answers' own words, newest first.
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/funnel-rules.ts" rel="nofollow">
        src/convex/funnel-rules.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AdminUser

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

One account, as the console lists it. Never a session 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">
        
      </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/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="email">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="name">
        
      </a>
      
       <code>
        name
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="image">
        
      </a>
      
       <code>
        image
      </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/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="role">
        
      </a>
      
       <code>
        role
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The app-wide role (several comma-separated); <code>
        'user'
      </code>
      
       when unset.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="administrator">
        
      </a>
      
       <code>
        administrator
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Whether it is an administrator (one of the admin roles, or named by id): such an account is never impersonated.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="banned">
        
      </a>
      
       <code>
        banned
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="banreason">
        
      </a>
      
       <code>
        banReason
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      Why it was banned, as the administrator wrote it; <code>
        null
      </code>
      
       when not banned or none was given.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="banexpires">
        
      </a>
      
       <code>
        banExpires
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      When the ban lifts by itself, epoch ms; <code>
        null
      </code>
      
       for a ban until lifted.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="emailverified">
        
      </a>
      
       <code>
        emailVerified
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="lastsigninmethod">
        
      </a>
      
       <code>
        lastSignInMethod
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      How the account last signed in (<code>
        passkey
      </code>
      
      , <code>
        email-otp
      </code>
      
      ), or <code>
        null
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="passkeyonly">
        
      </a>
      
       <code>
        passkeyOnly
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Whether the account signs in with passkeys only, refusing sign-in codes.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="createdat">
        
      </a>
      
       <code>
        createdAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When the account was created, epoch ms.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AdminUserPage

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

A page of accounts, newest first.

#### Properties

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

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

---

### AdminMembership

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

One workspace an account belongs to.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="workspaceid">
        
      </a>
      
       <code>
        workspaceId
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="name-1">
        
      </a>
      
       <code>
        name
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="slug">
        
      </a>
      
       <code>
        slug
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="role-1">
        
      </a>
      
       <code>
        role
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The account's role in the workspace.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="joinedat">
        
      </a>
      
       <code>
        joinedAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When it joined, epoch ms.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AdminSession

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

One device session of an account: its id and when it signs in until, 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/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="useragent">
        
      </a>
      
       <code>
        userAgent
      </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/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="createdat-1">
        
      </a>
      
       <code>
        createdAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When it signed in, epoch ms.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="updatedat">
        
      </a>
      
       <code>
        updatedAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When it was last extended, epoch ms.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="expiresat">
        
      </a>
      
       <code>
        expiresAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When it stops signing anyone in, epoch ms. Expired ones are listed until swept: compare with the clock.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="impersonated">
        
      </a>
      
       <code>
        impersonated
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      An administrator opened it by impersonating the account.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AdminUserDetail

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

An account in full, for the console's drawer.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="user">
        
      </a>
      
       <code>
        user
      </code>
    </td>
    
    <td>
      <a href="#adminuser">
        <code>
          AdminUser
        </code>
      </a>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="workspaces">
        
      </a>
      
       <code>
        workspaces
      </code>
    </td>
    
    <td>
      <a href="#adminmembership">
        <code>
          AdminMembership
        </code>
      </a>
      
      <span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="sessions">
        
      </a>
      
       <code>
        sessions
      </code>
    </td>
    
    <td>
      <a href="#adminsession">
        <code>
          AdminSession
        </code>
      </a>
      
      <span>
        
      </span>
    </td>
    
    <td>
      Latest expiry first.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="truncated">
        
      </a>
      
       <code>
        truncated
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Whether the account has more workspaces or sessions than the first 100 of each listed here.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="ticket">
        
      </a>
      
       <code>
        ticket
      </code>
    </td>
    
    <td>
      | { <code>
        kind
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        label?
      </code>
      
      : <code>
        string
      </code>
      
      ; } | <code>
        null
      </code>
    </td>
    
    <td>
      The ticket that admitted the account while the app was closed (<code>
        setupAccess
      </code>
      
      ): its kind (<code>
        invite-code
      </code>
      
      , <code>
        access-link
      </code>
      
      , <code>
        invitation
      </code>
      
      , …) and the cohort's label; <code>
        null
      </code>
      
       for an account that needed none.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AdminWorkspace

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

One workspace, as the console lists it.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="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/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="name-2">
        
      </a>
      
       <code>
        name
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="slug-1">
        
      </a>
      
       <code>
        slug
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="logo">
        
      </a>
      
       <code>
        logo
      </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/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="createdat-2">
        
      </a>
      
       <code>
        createdAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When it was created, epoch ms.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AdminWorkspacePage

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

A page of workspaces, newest first.

#### Properties

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

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

---

### AdminWorkspaceMember

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

One member of a workspace, as the console shows 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="userid">
        
      </a>
      
       <code>
        userId
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="name-3">
        
      </a>
      
       <code>
        name
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.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/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="role-2">
        
      </a>
      
       <code>
        role
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The member's role in the workspace.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="administrator-1">
        
      </a>
      
       <code>
        administrator
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      The member's account is an administrator's (one of the admin roles, or named by id): it cannot be impersonated.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="banned-1">
        
      </a>
      
       <code>
        banned
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="joinedat-1">
        
      </a>
      
       <code>
        joinedAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When they joined, epoch ms.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AdminInvitation

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

An invitation to a workspace that nobody answered yet.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="id-3">
        
      </a>
      
       <code>
        id
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="email-2">
        
      </a>
      
       <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="role-3">
        
      </a>
      
       <code>
        role
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="expiresat-1">
        
      </a>
      
       <code>
        expiresAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When it lapses, epoch ms.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AdminWorkspaceDetail

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

A workspace in full, read-only.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="workspace">
        
      </a>
      
       <code>
        workspace
      </code>
    </td>
    
    <td>
      <a href="#adminworkspace">
        <code>
          AdminWorkspace
        </code>
      </a>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="members">
        
      </a>
      
       <code>
        members
      </code>
    </td>
    
    <td>
      <a href="#adminworkspacemember">
        <code>
          AdminWorkspaceMember
        </code>
      </a>
      
      <span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="invitations">
        
      </a>
      
       <code>
        invitations
      </code>
    </td>
    
    <td>
      <a href="#admininvitation">
        <code>
          AdminInvitation
        </code>
      </a>
      
      <span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="truncated-1">
        
      </a>
      
       <code>
        truncated
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Whether the workspace has more members or invitations than the first 100 of each read here.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AdminApi

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

The public reads `backend/admin.ts` re-exports, behind `useAdmin` and the admin console.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="listusers">
        
      </a>
      
       <code>
        listUsers
      </code>
    </td>
    
    <td>
      <code>
        RegisteredQuery
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        search?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        paginationOpts
      </code>
      
      : { <code>
        id?
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        endCursor?
      </code>
      
      : <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      ; <code>
        maximumRowsRead?
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        maximumBytesRead?
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        numItems
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        cursor
      </code>
      
      : <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      ; }; }, <code>
        Promise
      </code>
      
      <<a href="#adminuserpage">
        <code>
          AdminUserPage
        </code>
      </a>
      
       | <code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      A page of accounts, newest first; <code>
        search
      </code>
      
       keeps those whose address contains it, in lower case. <code>
        null
      </code>
      
       for anyone who is not an administrator.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="getuser">
        
      </a>
      
       <code>
        getUser
      </code>
    </td>
    
    <td>
      <code>
        RegisteredQuery
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        userId
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <<a href="#adminuserdetail">
        <code>
          AdminUserDetail
        </code>
      </a>
      
       | <code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      One account with its workspaces and device sessions. <code>
        null
      </code>
      
       for anyone who is not an administrator, and for an account that does not exist.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="listworkspaces">
        
      </a>
      
       <code>
        listWorkspaces
      </code>
    </td>
    
    <td>
      <code>
        RegisteredQuery
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        search?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        paginationOpts
      </code>
      
      : { <code>
        id?
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        endCursor?
      </code>
      
      : <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      ; <code>
        maximumRowsRead?
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        maximumBytesRead?
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        numItems
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        cursor
      </code>
      
      : <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      ; }; }, <code>
        Promise
      </code>
      
      <<a href="#adminworkspacepage">
        <code>
          AdminWorkspacePage
        </code>
      </a>
      
       | <code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      A page of workspaces, newest first; <code>
        search
      </code>
      
       keeps those whose name contains it, as typed. <code>
        null
      </code>
      
       for anyone who is not an administrator.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="getworkspace">
        
      </a>
      
       <code>
        getWorkspace
      </code>
    </td>
    
    <td>
      <code>
        RegisteredQuery
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        workspaceId
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <<a href="#adminworkspacedetail">
        <code>
          AdminWorkspaceDetail
        </code>
      </a>
      
       | <code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      One workspace with its members and open invitations. <code>
        null
      </code>
      
       for anyone who is not an administrator, and for a workspace that does not exist.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="getfunnel">
        
      </a>
      
       <code>
        getFunnel
      </code>
    </td>
    
    <td>
      <code>
        RegisteredQuery
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        weeks
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        until?
      </code>
      
      : <code>
        number
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <<a href="#funnelreport">
        <code>
          FunnelReport
        </code>
      </a>
      
      >>
    </td>
    
    <td>
      The growth funnel over the last <code>
        weeks
      </code>
      
       (1 to 26) up to the week <code>
        until
      </code>
      
       falls in (default: the newest week anything was counted in): each step's people, each person step broken down by invite, campaign, referral, promotion and answer, and each sign-up week's cohort with the people of it active in each week after. Counted inside the deployment from the event path. Refused as <code>
        forbidden
      </code>
      
       (<code>
        admin_only
      </code>
      
      ) for anyone who is not an administrator, and (<code>
        impersonating
      </code>
      
      ) during a visit.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### Admin

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

The admin console's server half, from [setupAdmin](#setupadmin).

#### Extended by

- [`AdminWithReports`](#adminwithreports)

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="api">
        
      </a>
      
       <code>
        api
      </code>
    </td>
    
    <td>
      <a href="#adminapi">
        <code>
          AdminApi
        </code>
      </a>
    </td>
    
    <td>
      The public reads <code>
        backend/admin.ts
      </code>
      
       re-exports.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.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 the reads let in.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="adminuserids">
        
      </a>
      
       <code>
        adminUserIds
      </code>
    </td>
    
    <td>
      readonly <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The accounts the reads let in by id, whatever their role.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### SetupAdminOptions

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

#### Extended by

- [`SetupAdminReportsOptions`](#setupadminreportsoptions)

#### Type Parameters

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

<tbody>
  <tr>
    <td>
      <a id="type-parameter-dm">
        
      </a>
      
       <code>
        DM
      </code>
      
       <em>
        extends
      </em>
      
       <code>
        GenericDataModel
      </code>
    </td>
    
    <td>
      <code>
        GenericDataModel
      </code>
    </td>
  </tr>
</tbody>
</table>

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="adminroles-1">
        
      </a>
      
       <code>
        adminRoles?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The app-wide roles that read the console, read fresh on every call. Default <code>
        ['admin']
      </code>
      
      . Keep it equal to the admin plugin's <code>
        adminRoles
      </code>
      
       (<code>
        setupAuth({ admin })
      </code>
      
      ), which decides who may use its routes.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="adminuserids-1">
        
      </a>
      
       <code>
        adminUserIds?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The accounts that read the console by id, whatever their role. Keep it equal to the admin plugin's <code>
        adminUserIds
      </code>
      
      : the console then marks them as administrators, whom no one impersonates.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="reports">
        
      </a>
      
       <code>
        reports?
      </code>
    </td>
    
    <td>
      <a href="#reportsoptions">
        <code>
          ReportsOptions
        </code>
      </a>
      
      <<code>
        DM
      </code>
      
      >
    </td>
    
    <td>
      Content duties: how the Reports tab shows a reported thing and hides it. Turns on <code>
        reportContent
      </code>
      
      , the public notice form (the <code>
        report
      </code>
      
       page), statements of reasons with an appeal, and the Art. 18 flag. Needs <code>
        email
      </code>
      
      . Pass the app's <code>
        DataModel
      </code>
      
       (<code>
        setupAdmin<DataModel>
      </code>
      
      ) and <code>
        describe
      </code>
      
      , <code>
        hide
      </code>
      
       and <code>
        restore
      </code>
      
       read your tables typed.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.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, which the report emails go through: required with <code>
        reports
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="paths">
        
      </a>
      
       <code>
        paths?
      </code>
    </td>
    
    <td>
      <code>
        Partial
      </code>
      
      <<a href="https://nuxt-backend.dev/docs/reference/api/auth#backendpaths">
        <code>
          BackendPaths
        </code>
      </a>
      
      >
    </td>
    
    <td>
      The app's paths, from the <code>
        paths.generated.ts
      </code>
      
       the Nuxt module writes from nuxt.config: a statement of reasons links its appeal to <code>
        {SITE_URL}{paths.report}
      </code>
      
       (<code>
        pages.report
      </code>
      
      , <code>
        /report
      </code>
      
       by default).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### SetupAdminReportsOptions

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

[SetupAdminOptions](#setupadminoptions) with content duties on.

#### Extends

- [`SetupAdminOptions`](#setupadminoptions)<`DM`>

#### Type Parameters

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

<tbody>
  <tr>
    <td>
      <a id="type-parameter-dm-1">
        
      </a>
      
       <code>
        DM
      </code>
      
       <em>
        extends
      </em>
      
       <code>
        GenericDataModel
      </code>
    </td>
    
    <td>
      <code>
        GenericDataModel
      </code>
    </td>
  </tr>
</tbody>
</table>

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="adminroles-2">
        
      </a>
      
       <code>
        adminRoles?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The app-wide roles that read the console, read fresh on every call. Default <code>
        ['admin']
      </code>
      
      . Keep it equal to the admin plugin's <code>
        adminRoles
      </code>
      
       (<code>
        setupAuth({ admin })
      </code>
      
      ), which decides who may use its routes.
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="#setupadminoptions">
        <code>
          SetupAdminOptions
        </code>
      </a>
      
      .<a href="#adminroles-1">
        <code>
          adminRoles
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="adminuserids-2">
        
      </a>
      
       <code>
        adminUserIds?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The accounts that read the console by id, whatever their role. Keep it equal to the admin plugin's <code>
        adminUserIds
      </code>
      
      : the console then marks them as administrators, whom no one impersonates.
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="#setupadminoptions">
        <code>
          SetupAdminOptions
        </code>
      </a>
      
      .<a href="#adminuserids-1">
        <code>
          adminUserIds
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.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: a statement of reasons links its appeal to <code>
        {SITE_URL}{paths.report}
      </code>
      
       (<code>
        pages.report
      </code>
      
      , <code>
        /report
      </code>
      
       by default).
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="#setupadminoptions">
        <code>
          SetupAdminOptions
        </code>
      </a>
      
      .<a href="#paths">
        <code>
          paths
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="reports-1">
        
      </a>
      
       <code>
        reports
      </code>
    </td>
    
    <td>
      <a href="#reportsoptions">
        <code>
          ReportsOptions
        </code>
      </a>
      
      <<code>
        DM
      </code>
      
      >
    </td>
    
    <td>
      Content duties: how the Reports tab shows a reported thing and hides it. Turns on <code>
        reportContent
      </code>
      
      , the public notice form (the <code>
        report
      </code>
      
       page), statements of reasons with an appeal, and the Art. 18 flag. Needs <code>
        email
      </code>
      
      . Pass the app's <code>
        DataModel
      </code>
      
       (<code>
        setupAdmin<DataModel>
      </code>
      
      ) and <code>
        describe
      </code>
      
      , <code>
        hide
      </code>
      
       and <code>
        restore
      </code>
      
       read your tables typed.
    </td>
    
    <td>
      <a href="#setupadminoptions">
        <code>
          SetupAdminOptions
        </code>
      </a>
      
      .<a href="#reports">
        <code>
          reports
        </code>
      </a>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="email-4">
        
      </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, which the report emails go through: required with <code>
        reports
      </code>
      
      .
    </td>
    
    <td>
      <a href="#setupadminoptions">
        <code>
          SetupAdminOptions
        </code>
      </a>
      
      .<a href="#email-3">
        <code>
          email
        </code>
      </a>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AdminWithReports

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

The admin console with content duties on: its `api` holds the report functions too.

#### Extends

- [`Admin`](#admin)

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="adminroles-3">
        
      </a>
      
       <code>
        adminRoles
      </code>
    </td>
    
    <td>
      readonly <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The app-wide roles the reads let in.
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="#admin">
        <code>
          Admin
        </code>
      </a>
      
      .<a href="#adminroles">
        <code>
          adminRoles
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="adminuserids-3">
        
      </a>
      
       <code>
        adminUserIds
      </code>
    </td>
    
    <td>
      readonly <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The accounts the reads let in by id, whatever their role.
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="#admin">
        <code>
          Admin
        </code>
      </a>
      
      .<a href="#adminuserids">
        <code>
          adminUserIds
        </code>
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="api-1">
        
      </a>
      
       <code>
        api
      </code>
    </td>
    
    <td>
      <a href="#adminapi">
        <code>
          AdminApi
        </code>
      </a>
      
       & <a href="#reportsapi">
        <code>
          ReportsApi
        </code>
      </a>
    </td>
    
    <td>
      The public reads <code>
        backend/admin.ts
      </code>
      
       re-exports.
    </td>
    
    <td>
      <a href="#admin">
        <code>
          Admin
        </code>
      </a>
      
      .<a href="#api">
        <code>
          api
        </code>
      </a>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AdminComponents

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

The `backend` component as the console reads it: the auth adapter.

#### 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/admin.ts" rel="nofollow">
        src/convex/integrations/admin.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### DescribedSubject

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

What `reports.describe` says of a reported thing.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="title">
        
      </a>
      
       <code>
        title
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Its name in the Reports tab and in the author's emails.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="url">
        
      </a>
      
       <code>
        url?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Where it is shown in the app, for the tab's link.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="authorid">
        
      </a>
      
       <code>
        authorId?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Whose it is: the account that gets the statement of reasons when it is hidden.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="files">
        
      </a>
      
       <code>
        files?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The ids of the files it shows (<code>
        setupStorage
      </code>
      
       uploads). When it is hidden on an intimate-image removal request, every identical copy of them is removed too, and the same bytes are never kept again.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### ReportsOptions

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

`setupAdmin({ reports })`: how the Reports tab shows and acts on the app's content.

#### Type Parameters

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

<tbody>
  <tr>
    <td>
      <a id="type-parameter-dm-5">
        
      </a>
      
       <code>
        DM
      </code>
      
       <em>
        extends
      </em>
      
       <code>
        GenericDataModel
      </code>
    </td>
    
    <td>
      <code>
        GenericDataModel
      </code>
    </td>
  </tr>
</tbody>
</table>

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="describe">
        
      </a>
      
       <code>
        describe
      </code>
    </td>
    
    <td>
      (<code>
        ctx
      </code>
      
      , <code>
        subject
      </code>
      
      ) => | <a href="#describedsubject">
        <code>
          DescribedSubject
        </code>
      </a>
      
       | <code>
        Promise
      </code>
      
      <<a href="#describedsubject">
        <code>
          DescribedSubject
        </code>
      </a>
      
       | <code>
        null
      </code>
      
      > | <code>
        null
      </code>
    </td>
    
    <td>
      What a reported thing is, read in a query or a mutation: its title, where it is, whose it is and its files; <code>
        null
      </code>
      
       for one that is not there or may not be reported. The id comes from the person who reports, checked only as an id of <code>
        table
      </code>
      
      : answer <code>
        null
      </code>
      
       for a table you do not let people report.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="hide">
        
      </a>
      
       <code>
        hide
      </code>
    </td>
    
    <td>
      (<code>
        ctx
      </code>
      
      , <code>
        subject
      </code>
      
      ) => <code>
        unknown
      </code>
    </td>
    
    <td>
      Hide it from everyone, in the decision's mutation.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="restore">
        
      </a>
      
       <code>
        restore?
      </code>
    </td>
    
    <td>
      (<code>
        ctx
      </code>
      
      , <code>
        subject
      </code>
      
      ) => <code>
        unknown
      </code>
    </td>
    
    <td>
      Show it again, when an appeal reverses a decision that hid it and nothing reported or hid it again since. Without it, reversing records the outcome and tells the author, and showing the content again is yours.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="locate">
        
      </a>
      
       <code>
        locate?
      </code>
    </td>
    
    <td>
      (<code>
        ctx
      </code>
      
      , <code>
        url
      </code>
      
      ) => | <code>
        Promise
      </code>
      
      < | { <code>
        table
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
      ; } | <code>
        null
      </code>
      
      > | { <code>
        table
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
      ; } | <code>
        null
      </code>
    </td>
    
    <td>
      The thing a notice's link points at, for a notice sent without one (the form opened from your footer, a link pasted in): the Reports tab files it under that thing once <code>
        describe
      </code>
      
       knows it. <code>
        null
      </code>
      
       for a link that names none.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### ReportNotice

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

One notice as the Reports tab shows it: the notifier's details, never a one-click reporter's.

#### 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-4">
        
      </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/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="reason">
        
      </a>
      
       <code>
        reason
      </code>
    </td>
    
    <td>
      <a href="#reportreason">
        <code>
          ReportReason
        </code>
      </a>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="details">
        
      </a>
      
       <code>
        details
      </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/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="url-1">
        
      </a>
      
       <code>
        url
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="notifier">
        
      </a>
      
       <code>
        notifier
      </code>
    </td>
    
    <td>
      | { <code>
        name
      </code>
      
      : <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      ; <code>
        email
      </code>
      
      : <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      ; } | <code>
        null
      </code>
    </td>
    
    <td>
      Who sent it: a notice's name and address, for the outcome email.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="signature">
        
      </a>
      
       <code>
        signature
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      The typed name that signs an intimate-image removal request.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="crime">
        
      </a>
      
       <code>
        crime
      </code>
    </td>
    
    <td>
      | { <code>
        at
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        by
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        note?
      </code>
      
      : <code>
        string
      </code>
      
      ; } | <code>
        null
      </code>
    </td>
    
    <td>
      The Art. 18 flag, on a notice the app could not place.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="createdat-3">
        
      </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/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="deadline">
        
      </a>
      
       <code>
        deadline
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      When an intimate-image removal request the app could not place must be decided by (48 hours after it came), epoch ms; <code>
        null
      </code>
      
       for any other notice, and for one filed under its thing, which carries the deadline.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### ReportedSubject

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

One reported thing, as the Reports 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="subject">
        
      </a>
      
       <code>
        subject
      </code>
    </td>
    
    <td>
      { <code>
        table
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        subject.table
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        subject.id
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="described">
        
      </a>
      
       <code>
        described
      </code>
    </td>
    
    <td>
      <a href="#describedsubject">
        <code>
          DescribedSubject
        </code>
      </a>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      What <code>
        describe
      </code>
      
       says of it; <code>
        null
      </code>
      
       once it is gone.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="author">
        
      </a>
      
       <code>
        author
      </code>
    </td>
    
    <td>
      | { <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        email
      </code>
      
      : <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      ; } | <code>
        null
      </code>
    </td>
    
    <td>
      Its author, as <code>
        describe
      </code>
      
       names them, with their address for the Users tab's search; <code>
        null
      </code>
      
       without one.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="open">
        
      </a>
      
       <code>
        open
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      Open reports and notices.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="reasons">
        
      </a>
      
       <code>
        reasons
      </code>
    </td>
    
    <td>
      <code>
        Partial
      </code>
      
      <<code>
        Record
      </code>
      
      <<a href="#reportreason">
        <code>
          ReportReason
        </code>
      </a>
      
      , <code>
        number
      </code>
      
      >>
    </td>
    
    <td>
      How many give each reason.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="notices">
        
      </a>
      
       <code>
        notices
      </code>
    </td>
    
    <td>
      <a href="#reportnotice">
        <code>
          ReportNotice
        </code>
      </a>
      
      <span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="deadline-1">
        
      </a>
      
       <code>
        deadline
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      When an open intimate-image removal request must be decided by (48 hours after it came), epoch ms; <code>
        null
      </code>
      
       without one.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="crime-1">
        
      </a>
      
       <code>
        crime
      </code>
    </td>
    
    <td>
      | { <code>
        at
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        by
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        note?
      </code>
      
      : <code>
        string
      </code>
      
      ; } | <code>
        null
      </code>
    </td>
    
    <td>
      Flagged as a suspected crime that threatens life or safety (DSA Art. 18).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="updatedat-1">
        
      </a>
      
       <code>
        updatedAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### ReportAppeal

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

An open appeal, as the Reports tab lists it.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="id-5">
        
      </a>
      
       <code>
        id
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="text">
        
      </a>
      
       <code>
        text
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="createdat-4">
        
      </a>
      
       <code>
        createdAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="decision">
        
      </a>
      
       <code>
        decision
      </code>
    </td>
    
    <td>
      { <code>
        action
      </code>
      
      : <code>
        "hidden"
      </code>
      
       | <code>
        "dismissed"
      </code>
      
      ; <code>
        reason
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        at
      </code>
      
      : <code>
        number
      </code>
      
      ; }
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        decision.action
      </code>
    </td>
    
    <td>
      <code>
        "hidden"
      </code>
      
       | <code>
        "dismissed"
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        decision.reason
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        decision.at
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="subject-1">
        
      </a>
      
       <code>
        subject
      </code>
    </td>
    
    <td>
      | { <code>
        table
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
      ; } | <code>
        null
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="described-1">
        
      </a>
      
       <code>
        described
      </code>
    </td>
    
    <td>
      <a href="#describedsubject">
        <code>
          DescribedSubject
        </code>
      </a>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### ReportsConsole

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

Everything the Reports tab shows.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="subjects">
        
      </a>
      
       <code>
        subjects
      </code>
    </td>
    
    <td>
      <a href="#reportedsubject">
        <code>
          ReportedSubject
        </code>
      </a>
      
      <span>
        
      </span>
    </td>
    
    <td>
      Intimate-image removal requests first, by their deadline, then the most reported.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="notices-1">
        
      </a>
      
       <code>
        notices
      </code>
    </td>
    
    <td>
      <a href="#reportnotice">
        <code>
          ReportNotice
        </code>
      </a>
      
      <span>
        
      </span>
    </td>
    
    <td>
      Open notices the app could not place on a thing of its own: intimate-image removal requests first, by their deadline, then the newest.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="appeals">
        
      </a>
      
       <code>
        appeals
      </code>
    </td>
    
    <td>
      <a href="#reportappeal">
        <code>
          ReportAppeal
        </code>
      </a>
      
      <span>
        
      </span>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AppealView

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

A decision as its appeal page reads 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="title-1">
        
      </a>
      
       <code>
        title
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      What was decided on, as <code>
        describe
      </code>
      
       names it; <code>
        null
      </code>
      
       once it is gone.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="action">
        
      </a>
      
       <code>
        action
      </code>
    </td>
    
    <td>
      <code>
        "hidden"
      </code>
      
       | <code>
        "dismissed"
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="reason-1">
        
      </a>
      
       <code>
        reason
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="ground">
        
      </a>
      
       <code>
        ground
      </code>
    </td>
    
    <td>
      <code>
        "terms"
      </code>
      
       | <code>
        "illegal"
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="at">
        
      </a>
      
       <code>
        at
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When it was decided, epoch ms.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="until-1">
        
      </a>
      
       <code>
        until
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      Until when it may be appealed, epoch ms.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="appeal">
        
      </a>
      
       <code>
        appeal
      </code>
    </td>
    
    <td>
      | { <code>
        status
      </code>
      
      : <code>
        "open"
      </code>
      
       | <code>
        "upheld"
      </code>
      
       | <code>
        "reversed"
      </code>
      
      ; <code>
        createdAt
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        reason
      </code>
      
      : <code>
        string
      </code>
      
       | <code>
        null
      </code>
      
      ; } | <code>
        null
      </code>
    </td>
    
    <td>
      The appeal sent, with its outcome once decided; <code>
        null
      </code>
      
       before one.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### ReportsApi

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

The report functions `backend/admin.ts` re-exports beside the console's reads.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="reportcontent">
        
      </a>
      
       <code>
        reportContent
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        subject
      </code>
      
      : { <code>
        table
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
      ; }; <code>
        reason
      </code>
      
      : <a href="#reportreason">
        <code>
          ReportReason
        </code>
      </a>
      
      ; <code>
        details?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        website?
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <<code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      Report a thing, signed in: one open report per person and thing, at most 10 an hour (the <code>
        report
      </code>
      
       limit). A filled <code>
        website
      </code>
      
      , the honeypot, files nothing.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="sendnotice">
        
      </a>
      
       <code>
        sendNotice
      </code>
    </td>
    
    <td>
      <code>
        RegisteredAction
      </code>
      
      <<code>
        "public"
      </code>
      
      , <a href="#noticeinput">
        <code>
          NoticeInput
        </code>
      </a>
      
      , <code>
        Promise
      </code>
      
      <<code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      The public notice form's send, for anyone: the bot check, the <code>
        report
      </code>
      
       limit per address and <code>
        reportGlobal
      </code>
      
      , and a receipt by email.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="getappeal">
        
      </a>
      
       <code>
        getAppeal
      </code>
    </td>
    
    <td>
      <code>
        RegisteredQuery
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        token
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <<a href="#appealview">
        <code>
          AppealView
        </code>
      </a>
      
       | <code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      A decision by its appeal link's token; <code>
        null
      </code>
      
       for a token no decision has.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="appealdecision">
        
      </a>
      
       <code>
        appealDecision
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        token
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        text
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <<code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      Appeal a decision by its token: once, within six months.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="getreports">
        
      </a>
      
       <code>
        getReports
      </code>
    </td>
    
    <td>
      <code>
        RegisteredQuery
      </code>
      
      <<code>
        "public"
      </code>
      
      , <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <code>
        never
      </code>
      
      >, <code>
        Promise
      </code>
      
      <<a href="#reportsconsole">
        <code>
          ReportsConsole
        </code>
      </a>
      
       | <code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      The Reports 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/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="decidereport">
        
      </a>
      
       <code>
        decideReport
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        subject?
      </code>
      
      : { <code>
        table
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
      ; }; <code>
        notice?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        action
      </code>
      
      : <code>
        "hide"
      </code>
      
       | <code>
        "dismiss"
      </code>
      
      ; <code>
        reason
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        ground?
      </code>
      
      : <code>
        "terms"
      </code>
      
       | <code>
        "illegal"
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <<code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      Hide a thing or dismiss its reports, with the reason: 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/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="flagcrime">
        
      </a>
      
       <code>
        flagCrime
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        subject?
      </code>
      
      : { <code>
        table
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
      ; }; <code>
        notice?
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        note?
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <<code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      Flag a suspected crime that threatens life or safety (DSA Art. 18): 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/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="decideappeal">
        
      </a>
      
       <code>
        decideAppeal
      </code>
    </td>
    
    <td>
      <code>
        RegisteredMutation
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        appealId
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        outcome
      </code>
      
      : <code>
        "reverse"
      </code>
      
       | <code>
        "uphold"
      </code>
      
      ; <code>
        reason
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <<code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      Keep or reverse a decision an author appealed, with the reason: 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/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### WebhookDeliveryRow

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

A row of the delivery log, as served to feeds.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="service">
        
      </a>
      
       <code>
        service
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/webhook-guard.ts" rel="nofollow">
        src/convex/integrations/webhook-guard.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="deliveryid">
        
      </a>
      
       <code>
        deliveryId
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/webhook-guard.ts" rel="nofollow">
        src/convex/integrations/webhook-guard.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="type">
        
      </a>
      
       <code>
        type?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/webhook-guard.ts" rel="nofollow">
        src/convex/integrations/webhook-guard.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="outcome">
        
      </a>
      
       <code>
        outcome
      </code>
    </td>
    
    <td>
      <a href="#webhookoutcome">
        <code>
          WebhookOutcome
        </code>
      </a>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/webhook-guard.ts" rel="nofollow">
        src/convex/integrations/webhook-guard.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="note">
        
      </a>
      
       <code>
        note?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/webhook-guard.ts" rel="nofollow">
        src/convex/integrations/webhook-guard.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="receivedat">
        
      </a>
      
       <code>
        receivedAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/webhook-guard.ts" rel="nofollow">
        src/convex/integrations/webhook-guard.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="count">
        
      </a>
      
       <code>
        count?
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      Set on a tally of requests answered before their signature verified: how many it stands for (the latest one's id, type, note and time are the row's own). It counts afresh after a day without one.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/webhook-guard.ts" rel="nofollow">
        src/convex/integrations/webhook-guard.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="replayedat">
        
      </a>
      
       <code>
        replayedAt?
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      When an administrator last had the provider send it again (<code>
        replayWebhookDelivery
      </code>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/webhook-guard.ts" rel="nofollow">
        src/convex/integrations/webhook-guard.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### WebhookReplay

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

What a replay answered: the provider took it, and when the delivery was stamped.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="replayedat-1">
        
      </a>
      
       <code>
        replayedAt
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/webhooks.ts" rel="nofollow">
        src/convex/integrations/webhooks.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### WebhooksApi

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

The functions `backend/webhooks.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="getwebhookdeliveries">
        
      </a>
      
       <code>
        getWebhookDeliveries
      </code>
    </td>
    
    <td>
      <code>
        RegisteredQuery
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        limit?
      </code>
      
      : <code>
        number
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <<a href="#webhookdeliveryrow">
        <code>
          WebhookDeliveryRow
        </code>
      </a>
      
      <span>
        
      </span>
      
       | <code>
        null
      </code>
      
      >>
    </td>
    
    <td>
      The delivery log, newest first: every verified delivery of both providers with its outcome, and a row per kind of request refused before any signature verified (<code>
        count
      </code>
      
      ). <code>
        null
      </code>
      
       to anyone but an administrator now, signed out included. <code>
        limit
      </code>
      
       defaults to 50, at most 200.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/webhooks.ts" rel="nofollow">
        src/convex/integrations/webhooks.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="replaywebhookdelivery">
        
      </a>
      
       <code>
        replayWebhookDelivery
      </code>
    </td>
    
    <td>
      <code>
        RegisteredAction
      </code>
      
      <<code>
        "public"
      </code>
      
      , { <code>
        service
      </code>
      
      : <a href="#webhookservice">
        <code>
          WebhookService
        </code>
      </a>
      
      ; <code>
        deliveryId
      </code>
      
      : <code>
        string
      </code>
      
      ; }, <code>
        Promise
      </code>
      
      <<a href="#webhookreplay">
        <code>
          WebhookReplay
        </code>
      </a>
      
      >>
    </td>
    
    <td>
      Ask the delivery's provider to send it again: Polar redelivers the webhook event, Resend replays it. Only a delivery the log holds (verified) can be replayed. An administrator's write: refused as <code>
        unauthenticated
      </code>
      
      , <code>
        forbidden
      </code>
      
       (<code>
        impersonating
      </code>
      
      , <code>
        admin_only
      </code>
      
      ) or <code>
        reauthentication_required
      </code>
      
      ; <code>
        invalid_input
      </code>
      
       on <code>
        deliveryId
      </code>
      
       for one the log does not hold; <code>
        unavailable
      </code>
      
       when the provider is not set up or refuses.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/webhooks.ts" rel="nofollow">
        src/convex/integrations/webhooks.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### Webhooks

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

What `setupWebhooks` returns.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="api-2">
        
      </a>
      
       <code>
        api
      </code>
    </td>
    
    <td>
      <a href="#webhooksapi">
        <code>
          WebhooksApi
        </code>
      </a>
    </td>
    
    <td>
      The functions to re-export from <code>
        backend/webhooks.ts
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/webhooks.ts" rel="nofollow">
        src/convex/integrations/webhooks.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### SetupWebhooksOptions

Defined in: [src/convex/integrations/webhooks.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/webhooks.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="adminroles-4">
        
      </a>
      
       <code>
        adminRoles?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The app-wide roles that read the log and replay, read fresh on every call. Default <code>
        ['admin']
      </code>
      
      : keep it equal to the admin plugin's.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/webhooks.ts" rel="nofollow">
        src/convex/integrations/webhooks.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="adminuserids-4">
        
      </a>
      
       <code>
        adminUserIds?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The accounts that read the log and replay by id, whatever their role.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/webhooks.ts" rel="nofollow">
        src/convex/integrations/webhooks.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 instance, where a replay is recorded; else the component's own trail.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/webhooks.ts" rel="nofollow">
        src/convex/integrations/webhooks.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### WebhooksComponents

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

The `backend` component as the log reads it.

#### Properties

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

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

## Type Aliases

### FunnelStep

```ts
type FunnelStep = "waitlist" | "admitted" | "signup" | "activation" | "trial" | "paid";
```

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

One step of the funnel.

---

### PersonStep

```ts
type PersonStep = "signup" | "activation" | "trial" | "paid";
```

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

One step a person reaches, counted once per account from its sign-up on.

---

### FunnelDimension

```ts
type FunnelDimension = "invite" | "campaign" | "referral" | "promotion" | "answer";
```

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

One dimension a person step is broken down by: see `FUNNEL_DIMENSIONS`.

---

### ReportSubject

```ts
type ReportSubject<DM> = { [T in TableNamesInDataModel<DM>]: { table: T; id: GenericId<T> } }[TableNamesInDataModel<DM>];
```

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

A reported thing of the app's: the table it is in and its row id, an id of
that table. With the app's `DataModel` (`setupAdmin<DataModel>`), checking
`table` narrows `id` to that table's.

#### Type Parameters

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

<tbody>
  <tr>
    <td>
      <a id="type-parameter-dm-4">
        
      </a>
      
       <code>
        DM
      </code>
      
       <em>
        extends
      </em>
      
       <code>
        GenericDataModel
      </code>
    </td>
    
    <td>
      <code>
        GenericDataModel
      </code>
    </td>
  </tr>
</tbody>
</table>

---

### NoticeInput

```ts
type NoticeInput = {
  url: string;
  reason: ReportReason;
  details: string;
  name?: string;
  email?: string;
  goodFaith: boolean;
  signature?: string;
  subject?: {
     table: string;
     id: string;
  };
  locale?: string;
  human?: string | null;
  website?: string;
};
```

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

What a notice sends: the fields DSA Art. 16(2) and the TAKE IT DOWN Act ask for.

#### Properties

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

<tbody>
  <tr>
    <td>
      <a id="url-2">
        
      </a>
      
       <code>
        url
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The exact link to the content.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="reason-2">
        
      </a>
      
       <code>
        reason
      </code>
    </td>
    
    <td>
      <a href="#reportreason">
        <code>
          ReportReason
        </code>
      </a>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="details-1">
        
      </a>
      
       <code>
        details
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Why the content is illegal or breaks the terms.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="name-4">
        
      </a>
      
       <code>
        name?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The notifier's name; may be left out for child sexual abuse material.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="email-5">
        
      </a>
      
       <code>
        email?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The notifier's address, for the receipt and the outcome; may be left out for child sexual abuse material.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="goodfaith">
        
      </a>
      
       <code>
        goodFaith
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      The notifier's statement that the notice is accurate and made in good faith.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="signature-1">
        
      </a>
      
       <code>
        signature?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The typed full name that signs an intimate-image removal request.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="subject-2">
        
      </a>
      
       <code>
        subject?
      </code>
    </td>
    
    <td>
      { <code>
        table
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        id
      </code>
      
      : <code>
        string
      </code>
      
      ; }
    </td>
    
    <td>
      The thing it is about, when the form was opened from it (<code>
        ?table=&id=
      </code>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        subject.table
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        subject.id
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="locale">
        
      </a>
      
       <code>
        locale?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="human">
        
      </a>
      
       <code>
        human?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        null
      </code>
    </td>
    
    <td>
      The bot check's token (<code>
        useHumanCheck().token('report', email)
      </code>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="website">
        
      </a>
      
       <code>
        website?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The honeypot, a field people never see: filled, the notice is a bot's, and nothing is filed or sent.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/reports.ts" rel="nofollow">
        src/convex/integrations/reports.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### WebhookOutcome

```ts
type WebhookOutcome = 
  | "ok"
  | "invalid_signature"
  | "unknown_type"
  | "handler_error"
  | "duplicate"
  | "oversized"
  | "missing_secret";
```

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

How a webhook route answered a request, as its row of the delivery log
says: `ok` handled, `duplicate` a redelivery of one handled already,
`unknown_type` verified but of a type the route does not parse,
`handler_error` a handler threw (the provider retries), and
`invalid_signature`, `oversized` and `missing_secret` refused before
any signature verified.

---

### WebhookService

```ts
type WebhookService = "billing" | "email";
```

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

The routes behind the edge, each the service its deliveries are logged under.

---

### ReportReason

```ts
type ReportReason = 
  | "abuse"
  | "sexual"
  | "violence"
  | "spam"
  | "intimate"
  | "child_abuse"
  | "illegal"
  | "other";
```

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

Why someone reports content: the one-click reasons, and the notice form's legal ones.

## Variables

### IMPERSONATION_SESSION_SECONDS

```ts
const IMPERSONATION_SESSION_SECONDS: 1800 = 1800;
```

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

How long a session an administrator opens by impersonating an account
lasts, in seconds: thirty minutes, the longest the package allows. Better
Auth's admin plugin keeps one an hour by default; an app's own
`admin.impersonationSessionDuration` may only shorten it. When it ends,
the administrator signs in again as themselves.

## Functions

### setupAdmin()

The implementation of both.

#### Call Signature

```ts
function setupAdmin<DM>(components, options): AdminWithReports;
```

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

The admin console's reads: every account and every workspace, for an
administrator, read fresh from the auth tables. Each answers `null` to
anyone else: signed out, an account whose role (read fresh, never from
the token) is no administrator role, a banned or deleted one, a session
an administrator opened by impersonating someone.
The console's writes are the auth routes', held to the sensitive-action
table: banning, unbanning, setting a role and starting an impersonation
take a recent sign-in, and every one spends the per-caller `admin` limit.
Reads spend nothing: a query cannot write a bucket.

Workspaces are read-only here: an administrator acts inside one only by
impersonating a member, and an administrator's own account is never
impersonated.

##### Type Parameters

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

<tbody>
  <tr>
    <td>
      <a id="type-parameter-dm-2">
        
      </a>
      
       <code>
        DM
      </code>
      
       <em>
        extends
      </em>
      
       <code>
        GenericDataModel
      </code>
    </td>
    
    <td>
      <code>
        GenericDataModel
      </code>
    </td>
  </tr>
</tbody>
</table>

##### Parameters

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

<tbody>
  <tr>
    <td>
      <code>
        components
      </code>
    </td>
    
    <td>
      <a href="#admincomponents">
        <code>
          AdminComponents
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        options
      </code>
    </td>
    
    <td>
      <a href="#setupadminreportsoptions">
        <code>
          SetupAdminReportsOptions
        </code>
      </a>
      
      <<code>
        DM
      </code>
      
      >
    </td>
  </tr>
</tbody>
</table>

##### Returns

[`AdminWithReports`](#adminwithreports)

##### Examples

```ts [backend/admin.ts]
import { setupAdmin } from 'nuxt-backend/admin'
import { components } from './_generated/api'

const admin = setupAdmin(components)

// The reads behind useAdmin and the admin console (/admin).
export const { listUsers, getUser, listWorkspaces, getWorkspace } = admin.api
```

**With content duties: reports, the notice form and appeals**

```ts [backend/admin.ts]
import type { DataModel } from './_generated/dataModel'

// The DataModel types the reported row: `table` narrows `id` to its table's.
const admin = setupAdmin<DataModel>(components, {
  email,
  reports: {
    describe: async (ctx, { table, id }) => {
      if (table !== 'strips') return null
      const strip = await ctx.db.get('strips', id)
      return strip && { title: strip.idea, url: `/strips/${id}`, authorId: strip.authorId, files: strip.photoId ? [strip.photoId] : [] }
    },
    hide: async (ctx, { id }) => ctx.db.patch('strips', id, { hidden: true }),
  },
})
```

#### Call Signature

```ts
function setupAdmin<DM>(components, options?): Admin;
```

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

The admin console without content duties: the reads alone.

##### Type Parameters

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

<tbody>
  <tr>
    <td>
      <a id="type-parameter-dm-3">
        
      </a>
      
       <code>
        DM
      </code>
      
       <em>
        extends
      </em>
      
       <code>
        GenericDataModel
      </code>
    </td>
    
    <td>
      <code>
        GenericDataModel
      </code>
    </td>
  </tr>
</tbody>
</table>

##### Parameters

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

<tbody>
  <tr>
    <td>
      <code>
        components
      </code>
    </td>
    
    <td>
      <a href="#admincomponents">
        <code>
          AdminComponents
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        options?
      </code>
    </td>
    
    <td>
      <a href="#setupadminoptions">
        <code>
          SetupAdminOptions
        </code>
      </a>
      
      <<code>
        DM
      </code>
      
      >
    </td>
  </tr>
</tbody>
</table>

##### Returns

[`Admin`](#admin)

---

### setupWebhooks()

```ts
function setupWebhooks(components, options?): Webhooks;
```

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

The webhook delivery log and its replay, for administrators: the two
functions `backend/webhooks.ts` re-exports, behind the admin console's
Webhooks tab and DevTools' webhook feed.

#### Parameters

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

<tbody>
  <tr>
    <td>
      <code>
        components
      </code>
    </td>
    
    <td>
      <a href="#webhookscomponents">
        <code>
          WebhooksComponents
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        options?
      </code>
    </td>
    
    <td>
      <a href="#setupwebhooksoptions">
        <code>
          SetupWebhooksOptions
        </code>
      </a>
    </td>
  </tr>
</tbody>
</table>

#### Returns

[`Webhooks`](#webhooks)

#### Example

```ts [backend/webhooks.ts]
import { setupWebhooks } from 'nuxt-backend/admin'
import { components } from './_generated/api'

export const webhooks = setupWebhooks(components)

export const { getWebhookDeliveries, replayWebhookDelivery } = webhooks.api
```


## Sitemap

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