feat: add profile_update federation relay event type and payload interface
This commit is contained in:
@@ -805,8 +805,9 @@ export interface FederationRelayEvent {
|
|||||||
| 'friend_request_create' | 'friend_request_update' | 'friend_request_cancel'
|
| 'friend_request_create' | 'friend_request_update' | 'friend_request_cancel'
|
||||||
| 'friend_add' | 'friend_remove' | 'file_rejected'
|
| 'friend_add' | 'friend_remove' | 'file_rejected'
|
||||||
| 'dm_call_start' | 'dm_call_accept' | 'dm_call_reject' | 'dm_call_end'
|
| 'dm_call_start' | 'dm_call_accept' | 'dm_call_reject' | 'dm_call_end'
|
||||||
| 'dm_typing_start' | 'dm_typing_stop';
|
| 'dm_typing_start' | 'dm_typing_stop'
|
||||||
contextType?: 'dm' | 'friend';
|
| 'profile_update';
|
||||||
|
contextType?: 'dm' | 'friend' | 'profile';
|
||||||
dmChannelId?: string;
|
dmChannelId?: string;
|
||||||
messageId: string;
|
messageId: string;
|
||||||
federatedId?: string;
|
federatedId?: string;
|
||||||
@@ -841,6 +842,7 @@ export interface FederationRelayEvent {
|
|||||||
homeInstance: string;
|
homeInstance: string;
|
||||||
username: string;
|
username: string;
|
||||||
};
|
};
|
||||||
|
profileUpdate?: FederationProfileUpdatePayload;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FederationCallPayload {
|
export interface FederationCallPayload {
|
||||||
@@ -878,6 +880,18 @@ export interface FederationRelayProfileSnapshot {
|
|||||||
bio?: string | null;
|
bio?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface FederationProfileUpdatePayload {
|
||||||
|
homeUserId: string;
|
||||||
|
homeInstance: string;
|
||||||
|
profileUpdatedAt: number;
|
||||||
|
displayName: string | null;
|
||||||
|
avatar: string | null;
|
||||||
|
banner: string | null;
|
||||||
|
accentColor: string | null;
|
||||||
|
avatarColor: string | null;
|
||||||
|
bio: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface FederationFriendshipPayload {
|
export interface FederationFriendshipPayload {
|
||||||
from: FederationRelayParticipant;
|
from: FederationRelayParticipant;
|
||||||
to: FederationRelayParticipant;
|
to: FederationRelayParticipant;
|
||||||
|
|||||||
Reference in New Issue
Block a user