File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,7 @@ import type {
226226 UserOptions ,
227227 UserResponse ,
228228 UserSort ,
229+ UpdateUsersAPIResponse ,
229230 VoteSort ,
230231} from './types' ;
231232import { ErrorFromResponse } from './types' ;
@@ -2396,11 +2397,9 @@ export class StreamChat {
23962397 userMap [ userObject . id ] = userObject ;
23972398 }
23982399
2399- return await this . post <
2400- APIResponse & {
2401- users : { [ key : string ] : UserResponse } ;
2402- }
2403- > ( this . baseURL + '/users' , { users : userMap } ) ;
2400+ return await this . post < UpdateUsersAPIResponse > ( this . baseURL + '/users' , {
2401+ users : userMap ,
2402+ } ) ;
24042403 }
24052404
24062405 /**
@@ -2448,11 +2447,7 @@ export class StreamChat {
24482447 }
24492448 }
24502449
2451- return await this . patch <
2452- APIResponse & {
2453- users : { [ key : string ] : UserResponse } ;
2454- }
2455- > ( this . baseURL + '/users' , { users } ) ;
2450+ return await this . patch < UpdateUsersAPIResponse > ( this . baseURL + '/users' , { users } ) ;
24562451 }
24572452
24582453 async deleteUser (
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ export type TranslateResponse = {
8282export type AppSettingsAPIResponse = APIResponse & {
8383 app ?: {
8484 id ?: string | number ;
85+ allow_multi_user_devices ?: boolean ;
8586 // TODO
8687 // eslint-disable-next-line @typescript-eslint/no-explicit-any
8788 call_types : any ;
You can’t perform that action at this time.
0 commit comments