Initial commit

This commit is contained in:
Jennie Robinson Faber 2025-11-11 19:12:21 +00:00
commit 92e96b9107
85 changed files with 24969 additions and 0 deletions

46
app/types/auth.ts Normal file
View file

@ -0,0 +1,46 @@
export interface User {
id: string;
username: string;
displayName: string;
email: string;
avatar?: string;
roles: string[];
permissions: {
canEdit: boolean;
canModerate: boolean;
canAdmin: boolean;
};
contributions: {
articles: number;
edits: number;
comments: number;
};
}
export interface AuthUser {
userId: string;
username: string;
roles: string[];
permissions: {
canEdit: boolean;
canModerate: boolean;
canAdmin: boolean;
};
}
export interface OAuthTokenResponse {
access_token: string;
token_type: string;
expires_in: number;
refresh_token?: string;
scope?: string;
}
export interface GhostGuildUserInfo {
id: string;
email: string;
username: string;
displayName?: string;
avatar?: string;
roles?: string[];
}