Skip to content

Commit

Permalink
feat: add reactiongroups in MessageResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
guerinoni committed Apr 22, 2024
1 parent ef21c10 commit 2a82be3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,7 @@ export type MessageResponseBase<
StreamChatGenerics extends ExtendableGenerics = DefaultGenerics
> = MessageBase<StreamChatGenerics> & {
poll: PollResponse<StreamChatGenerics>;
reaction_groups: Record<string, ReactionGroupResponse>;
type: MessageLabel;
args?: string;
before_message_send_failed?: boolean;
Expand Down Expand Up @@ -658,6 +659,13 @@ export type MessageResponseBase<
updated_at?: string;
};

export type ReactionGroupResponse = {
count: number;
sum_scores: number;
first_reaction_at?: string;
last_reaction_at?: string;
};

export type ModerationDetailsResponse = {
action: 'MESSAGE_RESPONSE_ACTION_BOUNCE' | (string & {});
error_msg: string;
Expand Down

0 comments on commit 2a82be3

Please sign in to comment.