type alias Permission

An action only some roles may take. A new one goes in this union and in ALL_PERMISSIONS, which is what grants it to admins.

Definition

"dump:moderate"
| "comment:moderate"
| "playlist:moderate"
| "chat:moderate"
| "chat:everyone"
| "user:manage"
| "category:manage"
| "federation:manage"

Usage

import { type Permission } from "shared/permissions.ts";