privacy/security: add PM privacy levels and improve session visibility
All checks were successful
CI / test (push) Successful in 24s

This commit is contained in:
2026-03-08 14:26:19 +03:00
parent 528778238b
commit 76cc5e0f12
17 changed files with 229 additions and 24 deletions

View File

@@ -83,6 +83,7 @@ export interface AuthUser {
email_verified: boolean;
twofa_enabled?: boolean;
allow_private_messages: boolean;
privacy_private_messages?: "everyone" | "contacts" | "nobody";
privacy_last_seen?: "everyone" | "contacts" | "nobody";
privacy_avatar?: "everyone" | "contacts" | "nobody";
privacy_group_invites?: "everyone" | "contacts";
@@ -101,6 +102,8 @@ export interface AuthSession {
created_at: string;
ip_address?: string | null;
user_agent?: string | null;
current?: boolean;
token_type?: "access" | "refresh";
}
export interface UserSearchItem {