1- /** 1.7.2 */
1+ /** 1.8.0 */
22// eslint-disable-next-line no-undef,max-classes-per-file
33export as namespace SendBirdCall ;
44
@@ -40,9 +40,9 @@ export function createRoom(params: RoomParams): Promise<Room>;
4040export function getCachedRoomById ( roomId : string ) : Room ;
4141export function fetchRoomById ( roomId : string ) : Promise < Room > ;
4242export function createRoomListQuery ( params : RoomListQueryParams ) : RoomListQuery ;
43- export function registerPushToken ( pushToken : string , tokenType : TokenType ) ;
44- export function unregisterPushToken ( pushToken : string , tokenType : TokenType ) ;
45- export function unregisterAllPushTokens ( tokenType : TokenType ) ;
43+ export function registerPushToken ( pushToken : string , tokenType : TokenType ) : Promise < void > ;
44+ export function unregisterPushToken ( pushToken : string , tokenType : TokenType ) : Promise < void > ;
45+ export function unregisterAllPushTokens ( tokenType : TokenType ) : Promise < void > ;
4646export const sdkVersion : string ;
4747export const appId : string ;
4848export const currentUser : User ;
@@ -53,10 +53,12 @@ export interface DialParams {
5353 callOption : DirectCallOption ;
5454 customItems ?: CustomItems ;
5555 sendBirdChatOptions ?: SendBirdChatOptions ;
56+ holdActiveCall ?: boolean ;
5657}
5758
5859export interface AcceptParams {
5960 callOption : DirectCallOption ;
61+ holdActiveCall ?: boolean ;
6062}
6163
6264export enum LoggerLevel {
@@ -248,6 +250,7 @@ export interface DirectCall {
248250 onCustomItemsUpdated : ( ( call : DirectCall , updatedKeys : string [ ] ) => void ) | null ;
249251 onCustomItemsDeleted : ( ( call : DirectCall , deletedKeys : string [ ] ) => void ) | null ;
250252 onRemoteRecordingStatusChanged : ( ( call : DirectCall ) => void ) | null ;
253+ onUserHoldStatusChanged : ( ( call : DirectCall , isLocalUser : boolean , isUserOnHold : boolean ) => void ) | null ;
251254 onEnded : ( ( call : DirectCall ) => void ) | null ;
252255
253256 onScreenShareStopped : ( ( ) => void ) | null ;
@@ -264,6 +267,7 @@ export interface DirectCall {
264267 readonly isRemoteVideoEnabled : boolean ;
265268 readonly myRole : DirectCallUserRole ;
266269 readonly isOngoing : boolean ;
270+ readonly isOnHold : boolean ;
267271 readonly endedBy : DirectCallUser ;
268272 readonly isEnded : boolean ;
269273 readonly endResult : DirectCallEndResult ;
@@ -288,6 +292,9 @@ export interface DirectCall {
288292 muteMicrophone ( ) : void ;
289293 unmuteMicrophone ( ) : void ;
290294
295+ hold ( ) : Promise < void > ;
296+ unhold ( force : boolean ) : Promise < void > ;
297+
291298 captureLocalVideoView ( callback ?: CaptureVideoViewHandler ) : Promise < CaptureVideoViewResult > ;
292299 captureRemoteVideoView ( callback ?: CaptureVideoViewHandler ) : Promise < CaptureVideoViewResult > ;
293300
@@ -568,6 +575,21 @@ export declare class Room extends EventTarget<RoomEventMap> {
568575 */
569576 setAudioForLargeRoom ( mediaView : HTMLAudioElement ) : Promise < void > ;
570577
578+ /**
579+ * Fetch custom items
580+ */
581+ fetchCustomItems ( ) : Promise < CustomItemsResult > ;
582+
583+ /**
584+ * Update custom items
585+ */
586+ updateCustomItems ( customItems : CustomItems ) : Promise < CustomItemsResult > ;
587+
588+ /**
589+ * Delete custom items
590+ */
591+ deleteCustomItems ( customItemKeys : string [ ] ) : Promise < CustomItemsResult > ;
592+
571593}
572594
573595export type RoomParams = {
0 commit comments