@@ -1667,9 +1667,9 @@ export type UserFilters<StreamChatGenerics extends ExtendableGenerics = DefaultG
1667
1667
| PrimitiveFilter < UserResponse < StreamChatGenerics > [ 'name' ] > ;
1668
1668
notifications_muted ?:
1669
1669
| RequireOnlyOne < {
1670
- $eq ?: PrimitiveFilter < UserResponse < StreamChatGenerics > [ 'notifications_muted' ] > ;
1671
- } >
1672
- | boolean ;
1670
+ $eq ?: PrimitiveFilter < UserResponse < StreamChatGenerics > [ 'notifications_muted' ] > ;
1671
+ } >
1672
+ | boolean ;
1673
1673
teams ?:
1674
1674
| RequireOnlyOne < {
1675
1675
$contains ?: PrimitiveFilter < string > ;
@@ -3093,3 +3093,42 @@ export type PollVotesAPIResponse<StreamChatGenerics extends ExtendableGenerics =
3093
3093
export type CastVoteAPIResponse < StreamChatGenerics extends ExtendableGenerics = DefaultGenerics > = {
3094
3094
vote : PollVote < StreamChatGenerics > ;
3095
3095
} ;
3096
+
3097
+ export type QueryMessageHistoriesFilters = QueryFilters <
3098
+ {
3099
+ message_id ?:
3100
+ | RequireOnlyOne < Pick < QueryFilter < MessageHistory [ 'message_id' ] > , '$eq' | '$in' > >
3101
+ | PrimitiveFilter < MessageHistory [ 'message_id' ] > ;
3102
+ } & {
3103
+ user_id ?:
3104
+ | RequireOnlyOne < Pick < QueryFilter < MessageHistory [ 'user_id' ] > , '$eq' | '$in' > >
3105
+ | PrimitiveFilter < MessageHistory [ 'user_id' ] > ;
3106
+ } & {
3107
+ created_at ?:
3108
+ | RequireOnlyOne < Pick < QueryFilter < MessageHistory [ 'created_at' ] > , '$eq' | '$gt' | '$lt' | '$gte' | '$lte' > >
3109
+ | PrimitiveFilter < MessageHistory [ 'created_at' ] > ;
3110
+ }
3111
+ > ;
3112
+
3113
+ export type QueryMessageHistoriesSort = QueryMessageHistoriesSortBase | Array < QueryMessageHistoriesSortBase > ;
3114
+
3115
+ export type QueryMessageHistoriesSortBase = {
3116
+ created_at ?: AscDesc ;
3117
+ user_id ?: AscDesc ;
3118
+ } ;
3119
+
3120
+ export type QueryMessageHistoriesOptions = Pager ;
3121
+
3122
+ export type MessageHistory < StreamChatGenerics extends ExtendableGenerics = DefaultGenerics > = {
3123
+ created_at : string ;
3124
+ message_id : string ;
3125
+ attachments ?: Attachment < StreamChatGenerics > [ ] ;
3126
+ text ?: string ;
3127
+ user_id ?: string ;
3128
+ } ;
3129
+
3130
+ export type QueryMessageHistoriesResponse < StreamChatGenerics extends ExtendableGenerics = DefaultGenerics > = {
3131
+ message_histories : MessageHistory < StreamChatGenerics > [ ] ;
3132
+ next ?: string ;
3133
+ prev ?: string ;
3134
+ } ;
0 commit comments