feat(types): add GroupDmUserIdentity and update CreateGroupDmRequest
Replace flat userIds array with a structured users array of GroupDmUserIdentity objects, enabling the group DM endpoint to accept federated identity hints (homeUserId, homeInstance) alongside the local user ID.
This commit is contained in:
@@ -516,8 +516,14 @@ export interface AddDmMemberRequest {
|
|||||||
userId: string;
|
userId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface GroupDmUserIdentity {
|
||||||
|
id: string;
|
||||||
|
homeUserId?: string | null;
|
||||||
|
homeInstance?: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface CreateGroupDmRequest {
|
export interface CreateGroupDmRequest {
|
||||||
userIds: string[];
|
users: GroupDmUserIdentity[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CreateDmMessageRequest {
|
export interface CreateDmMessageRequest {
|
||||||
|
|||||||
Reference in New Issue
Block a user