@@ -179,8 +179,8 @@ import {
179
179
QuerySegmentTargetsFilter ,
180
180
SortParam ,
181
181
GetMessageOptions ,
182
- BlockUserResponse ,
183
- GetBlockedUsersResponse ,
182
+ BlockUserAPIResponse ,
183
+ GetBlockedUsersAPIResponse ,
184
184
QueryVotesFilters ,
185
185
VoteSort ,
186
186
CreatePollAPIResponse ,
@@ -2191,19 +2191,19 @@ export class StreamChat<StreamChatGenerics extends ExtendableGenerics = DefaultG
2191
2191
} ) ;
2192
2192
}
2193
2193
async blockUser ( blockedUserID : string , user_id ?: string ) {
2194
- return await this . post < BlockUserResponse > ( this . baseURL + '/users/block' , {
2194
+ return await this . post < BlockUserAPIResponse > ( this . baseURL + '/users/block' , {
2195
2195
blocked_user_id : blockedUserID ,
2196
2196
...( user_id ? { user_id } : { } ) ,
2197
2197
} ) ;
2198
2198
}
2199
2199
2200
2200
async getBlockedUsers ( user_id ?: string ) {
2201
- return await this . get < GetBlockedUsersResponse > ( this . baseURL + '/users/block' , {
2201
+ return await this . get < GetBlockedUsersAPIResponse > ( this . baseURL + '/users/block' , {
2202
2202
...( user_id ? { user_id } : { } ) ,
2203
2203
} ) ;
2204
2204
}
2205
2205
async unBlockUser ( blockedUserID : string , userID ?: string ) {
2206
- return await this . post < StreamChatGenerics > ( this . baseURL + '/users/unblock' , {
2206
+ return await this . post < APIResponse > ( this . baseURL + '/users/unblock' , {
2207
2207
blocked_user_id : blockedUserID ,
2208
2208
...( userID ? { user_id : userID } : { } ) ,
2209
2209
} ) ;
0 commit comments