feat: add federation_peer_rejected/active WS types and autoAcceptPeering setting

This commit is contained in:
Jannis Braun
2026-04-09 13:38:41 +02:00
parent b5dffba7ef
commit abd12223b1
+3
View File
@@ -444,6 +444,8 @@ export type ServerEvent =
| { type: 'embeds_resolved'; messageId: string; channelId: string; embeds: Embed[] } | { type: 'embeds_resolved'; messageId: string; channelId: string; embeds: Embed[] }
| { type: 'dm_embeds_resolved'; messageId: string; dmChannelId: string; embeds: Embed[] } | { type: 'dm_embeds_resolved'; messageId: string; dmChannelId: string; embeds: Embed[] }
| { type: 'federation_file_rejected'; messageId: string; dmChannelId: string; attachmentId: string; affectedUsers: Array<{ userId: string; username: string; limit: number }> } | { type: 'federation_file_rejected'; messageId: string; dmChannelId: string; attachmentId: string; affectedUsers: Array<{ userId: string; username: string; limit: number }> }
| { type: 'federation_peer_rejected'; peerOrigin: string; peerLabel?: string; reason: string; affectedContexts: Array<{ contextType: 'dm' | 'friend'; contextId: string; contextLabel: string }> }
| { type: 'federation_peer_active'; peerOrigin: string }
| { type: 'dm_owner_updated'; dmChannelId: string; newOwnerId: string } | { type: 'dm_owner_updated'; dmChannelId: string; newOwnerId: string }
| { type: 'pong' } | { type: 'pong' }
| { type: 'error'; message: string }; | { type: 'error'; message: string };
@@ -663,6 +665,7 @@ export interface InstanceAdminSettings {
federationRelayEnabled: boolean; federationRelayEnabled: boolean;
federationRelayTtlDays: number; federationRelayTtlDays: number;
defaultAutoRotateIntervalDays: number; defaultAutoRotateIntervalDays: number;
autoAcceptPeering: boolean;
} }
export interface InstanceStreamingLimits { export interface InstanceStreamingLimits {