mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
feat(api): ✨ Add Lysand roles to user accounts
This commit is contained in:
parent
4f2c98390c
commit
efe202ea27
6 changed files with 76 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import type { Emoji } from "./emoji";
|
||||
import type { Field } from "./field";
|
||||
import type { LysandRole } from "./lysand";
|
||||
import type { Role } from "./role";
|
||||
import type { Source } from "./source";
|
||||
|
||||
|
|
@ -30,5 +31,6 @@ export type Account = {
|
|||
bot: boolean | null;
|
||||
source?: Source;
|
||||
role?: Role;
|
||||
roles: LysandRole[];
|
||||
mute_expires_at?: string;
|
||||
};
|
||||
|
|
|
|||
11
types/mastodon/lysand.ts
Normal file
11
types/mastodon/lysand.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import type { RolePermissions } from "~/drizzle/schema";
|
||||
|
||||
export type LysandRole = {
|
||||
id: string;
|
||||
name: string;
|
||||
permissions: RolePermissions[];
|
||||
priority: number;
|
||||
description: string | null;
|
||||
visible: boolean;
|
||||
icon: string | null;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue