feat(api): Add Lysand roles to user accounts

This commit is contained in:
Jesse Wierzbinski 2024-06-11 14:29:59 -10:00
parent 4f2c98390c
commit efe202ea27
No known key found for this signature in database
6 changed files with 76 additions and 1 deletions

View file

@ -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
View 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;
};