From abd12223b17b535413e20d41c393914021205b83 Mon Sep 17 00:00:00 2001 From: Jannis Braun <151788261+TheZwiss@users.noreply.github.com> Date: Thu, 9 Apr 2026 13:38:41 +0200 Subject: [PATCH] feat: add federation_peer_rejected/active WS types and autoAcceptPeering setting --- packages/shared/src/types.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/shared/src/types.ts b/packages/shared/src/types.ts index c847f639..8cb66112 100644 --- a/packages/shared/src/types.ts +++ b/packages/shared/src/types.ts @@ -444,6 +444,8 @@ export type ServerEvent = | { type: 'embeds_resolved'; messageId: string; channelId: 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_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: 'pong' } | { type: 'error'; message: string }; @@ -663,6 +665,7 @@ export interface InstanceAdminSettings { federationRelayEnabled: boolean; federationRelayTtlDays: number; defaultAutoRotateIntervalDays: number; + autoAcceptPeering: boolean; } export interface InstanceStreamingLimits {