types: align FederationPeer union with actual server statuses

Adds 'rejected', 'awaiting_approval', and 'needs_attention' to the status
union, plus the consecutiveAuthFailures / autoRotateIntervalDays /
secretRotatedAt / rotationInProgress fields the UI already reads.
This commit is contained in:
Jannis Braun
2026-04-21 20:29:14 +02:00
parent 0d3343ab6d
commit 1df25737b6
+5 -1
View File
@@ -986,10 +986,14 @@ export interface FederationPeer {
id: string;
origin: string;
instanceName: string | null;
status: 'pending' | 'active' | 'unreachable' | 'revoked';
status: 'pending' | 'active' | 'unreachable' | 'revoked' | 'rejected' | 'awaiting_approval' | 'needs_attention';
lastSeenAt: number | null;
lastFailureAt: number | null;
consecutiveFailures: number;
consecutiveAuthFailures: number;
lastSyncedAt: number;
autoRotateIntervalDays: number;
secretRotatedAt: number | null;
rotationInProgress: boolean;
createdAt: number;
}