Skip to content

Commit 0d5f87f

Browse files
authored
feat: add reactiongroups in MessageResponse (#1278)
Signed-off-by: Federico Guerinoni <guerinoni.federico@gmail.com>
1 parent 63facdd commit 0d5f87f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/types.ts

+8
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,7 @@ export type MessageResponse<
627627
export type MessageResponseBase<
628628
StreamChatGenerics extends ExtendableGenerics = DefaultGenerics
629629
> = MessageBase<StreamChatGenerics> & {
630+
reaction_groups: Record<string, ReactionGroupResponse>;
630631
type: MessageLabel;
631632
args?: string;
632633
before_message_send_failed?: boolean;
@@ -658,6 +659,13 @@ export type MessageResponseBase<
658659
updated_at?: string;
659660
};
660661

662+
export type ReactionGroupResponse = {
663+
count: number;
664+
sum_scores: number;
665+
first_reaction_at?: string;
666+
last_reaction_at?: string;
667+
};
668+
661669
export type ModerationDetailsResponse = {
662670
action: 'MESSAGE_RESPONSE_ACTION_BOUNCE' | (string & {});
663671
error_msg: string;

0 commit comments

Comments
 (0)