stream-chat 8.32.0 → 8.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/types.ts CHANGED
@@ -3089,3 +3089,44 @@ export type PollVotesAPIResponse<StreamChatGenerics extends ExtendableGenerics =
3089
3089
  export type CastVoteAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
3090
3090
  vote: PollVote<StreamChatGenerics>;
3091
3091
  };
3092
+
3093
+ export type QueryMessageHistoryFilters = QueryFilters<
3094
+ {
3095
+ message_id?:
3096
+ | RequireOnlyOne<Pick<QueryFilter<MessageHistoryEntry['message_id']>, '$eq' | '$in'>>
3097
+ | PrimitiveFilter<MessageHistoryEntry['message_id']>;
3098
+ } & {
3099
+ user_id?:
3100
+ | RequireOnlyOne<Pick<QueryFilter<MessageHistoryEntry['message_updated_by_id']>, '$eq' | '$in'>>
3101
+ | PrimitiveFilter<MessageHistoryEntry['message_updated_by_id']>;
3102
+ } & {
3103
+ created_at?:
3104
+ | RequireOnlyOne<
3105
+ Pick<QueryFilter<MessageHistoryEntry['message_updated_at']>, '$eq' | '$gt' | '$lt' | '$gte' | '$lte'>
3106
+ >
3107
+ | PrimitiveFilter<MessageHistoryEntry['message_updated_at']>;
3108
+ }
3109
+ >;
3110
+
3111
+ export type QueryMessageHistorySort = QueryMessageHistorySortBase | Array<QueryMessageHistorySortBase>;
3112
+
3113
+ export type QueryMessageHistorySortBase = {
3114
+ created_at?: AscDesc;
3115
+ user_id?: AscDesc;
3116
+ };
3117
+
3118
+ export type QueryMessageHistoryOptions = Pager;
3119
+
3120
+ export type MessageHistoryEntry<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
3121
+ message_id: string;
3122
+ message_updated_at: string;
3123
+ attachments?: Attachment<StreamChatGenerics>[];
3124
+ message_updated_by_id?: string;
3125
+ text?: string;
3126
+ };
3127
+
3128
+ export type QueryMessageHistoryResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
3129
+ message_history: MessageHistoryEntry<StreamChatGenerics>[];
3130
+ next?: string;
3131
+ prev?: string;
3132
+ };