feat: add federation_peer_rejected/active WS types and autoAcceptPeering setting
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user