feat(shared): add FederationRegistryEntry type for persistent federation registry

This commit is contained in:
Jannis Braun
2026-04-01 17:51:15 +02:00
parent 6de56edba0
commit a16da375a8
+14
View File
@@ -35,6 +35,20 @@ export interface ReplicatedInstance {
domain?: string; // Legacy field — kept for backward compat with existing data domain?: string; // Legacy field — kept for backward compat with existing data
} }
export type FederationRegistryStatus = 'connected' | 'disconnected' | 'unreachable' | 'auth_expired';
export interface FederationRegistryEntry {
origin: string;
label: string;
username: string;
remoteUserId: string;
status: FederationRegistryStatus;
addedAt: number;
lastConnectedAt: number | null;
disconnectedAt: number | null;
errorMessage: string | null;
}
export type UserStatus = 'online' | 'idle' | 'dnd' | 'offline'; export type UserStatus = 'online' | 'idle' | 'dnd' | 'offline';
export interface UserWithPassword extends User { export interface UserWithPassword extends User {