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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user