Skip to content

Commit 8107f4b

Browse files
committed
1.10.0
1 parent eaf2237 commit 8107f4b

6 files changed

+40
-6
lines changed

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Change Log
22

3+
### 1.10.0 (Jan 31, 2023 UTC)
4+
* Added a feature to invite users to enter a room.
5+
* Added `Room.sendInvitation(invitee: string): Promise<RoomInvitation>`.
6+
* Added `RoomInvitation` class to manage invitation.
7+
* Added `RoomInvitation.accept(): Promise<void>`, `RoomInvitation.decline(): Promise<void>`, `RoomInvitation.cancel(): Promise<void>`.
8+
* Added `invitationAccepted`, `invitationDeclined`, `invitationCanceled` in `RoomEventMap`.
9+
* Added a new interface to delete a room.
10+
* Added `Room.delete()`.
11+
312
### 1.9.3 (April 11, 2022 UTC)
413
* Bug fix
514
* Fixed the unexpected error when joining the room that the user exited before.

SendBirdCall.min.d.ts

+26-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** 1.9.3 */
1+
/** 1.10.0 */
22
// eslint-disable-next-line no-undef,max-classes-per-file
33
export as namespace SendBirdCall;
44

@@ -175,6 +175,7 @@ export interface SendBirdCallListener {
175175
onAudioInputDeviceChanged?: ((currentAudioInputDevice: InputDeviceInfo, availableAudioInputDevices: InputDeviceInfo[]) => void) | null;
176176
onAudioOutputDeviceChanged?: ((currentAudioOutputDevice: MediaDeviceInfo, availableAudioOutputDevices: MediaDeviceInfo[]) => void) | null;
177177
onVideoInputDeviceChanged?: ((currentVideoInputDevice: InputDeviceInfo, availableVideoInputDevices: InputDeviceInfo[]) => void) | null;
178+
onInvitationReceived?: ((invitation: RoomInvitation) => void) | null;
178179
}
179180

180181
export interface SendBirdCallRecordingListener {
@@ -467,14 +468,28 @@ export interface WebhookData {
467468
* Room
468469
*/
469470

471+
export interface RoomInvitation {
472+
room: Room;
473+
inviter: User;
474+
invitee: User;
475+
476+
accept(): Promise<void>;
477+
decline(): Promise<void>;
478+
cancel(): Promise<void>;
479+
}
480+
470481
declare type RoomEventMap = {
471482
remoteParticipantEntered: { args: [RemoteParticipant]; };
483+
remoteParticipantConnected: { args: [RemoteParticipant]; };
472484
remoteParticipantExited: { args: [RemoteParticipant]; };
473485
remoteParticipantStreamStarted: { args: [RemoteParticipant]; };
474486
remoteAudioSettingsChanged: { args: [RemoteParticipant]; };
475487
remoteVideoSettingsChanged: { args: [RemoteParticipant]; };
476488
customItemsUpdated: { args: [CustomItems, string[]] };
477489
customItemsDeleted: { args: [CustomItems, string[]] };
490+
invitationDeclined: { args: [RoomInvitation] };
491+
invitationAccepted: { args: [RoomInvitation] };
492+
invitationCanceled: { args: [RoomInvitation]}
478493
deleted: {};
479494
error: { args: [Error, Participant?] };
480495
};
@@ -599,6 +614,16 @@ export declare class Room extends EventTarget<RoomEventMap> {
599614
*/
600615
deleteCustomItems(customItemKeys: string[]): Promise<CustomItemsResult>;
601616

617+
/**
618+
* Send invitation
619+
*/
620+
sendInvitation(invitee: string): Promise<RoomInvitation>;
621+
622+
/**
623+
* delete a room
624+
*/
625+
delete(): Promise<void>;
626+
602627
}
603628

604629
export type RoomParams = {

SendBirdCall.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird-calls",
3-
"version": "1.9.3",
3+
"version": "1.10.0",
44
"authors": [
55
"SendBird <support@sendbird.com>"
66
],

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird-calls",
3-
"version": "1.9.3",
3+
"version": "1.10.0",
44
"description": "SendBird Calls JavaScript SDK",
55
"main": "SendBirdCall.min.js",
66
"types": "SendBirdCall.min.d.ts",

0 commit comments

Comments
 (0)