|
1 |
| -/** 1.9.3 */ |
| 1 | +/** 1.10.0 */ |
2 | 2 | // eslint-disable-next-line no-undef,max-classes-per-file
|
3 | 3 | export as namespace SendBirdCall;
|
4 | 4 |
|
@@ -175,6 +175,7 @@ export interface SendBirdCallListener {
|
175 | 175 | onAudioInputDeviceChanged?: ((currentAudioInputDevice: InputDeviceInfo, availableAudioInputDevices: InputDeviceInfo[]) => void) | null;
|
176 | 176 | onAudioOutputDeviceChanged?: ((currentAudioOutputDevice: MediaDeviceInfo, availableAudioOutputDevices: MediaDeviceInfo[]) => void) | null;
|
177 | 177 | onVideoInputDeviceChanged?: ((currentVideoInputDevice: InputDeviceInfo, availableVideoInputDevices: InputDeviceInfo[]) => void) | null;
|
| 178 | + onInvitationReceived?: ((invitation: RoomInvitation) => void) | null; |
178 | 179 | }
|
179 | 180 |
|
180 | 181 | export interface SendBirdCallRecordingListener {
|
@@ -467,14 +468,28 @@ export interface WebhookData {
|
467 | 468 | * Room
|
468 | 469 | */
|
469 | 470 |
|
| 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 | + |
470 | 481 | declare type RoomEventMap = {
|
471 | 482 | remoteParticipantEntered: { args: [RemoteParticipant]; };
|
| 483 | + remoteParticipantConnected: { args: [RemoteParticipant]; }; |
472 | 484 | remoteParticipantExited: { args: [RemoteParticipant]; };
|
473 | 485 | remoteParticipantStreamStarted: { args: [RemoteParticipant]; };
|
474 | 486 | remoteAudioSettingsChanged: { args: [RemoteParticipant]; };
|
475 | 487 | remoteVideoSettingsChanged: { args: [RemoteParticipant]; };
|
476 | 488 | customItemsUpdated: { args: [CustomItems, string[]] };
|
477 | 489 | customItemsDeleted: { args: [CustomItems, string[]] };
|
| 490 | + invitationDeclined: { args: [RoomInvitation] }; |
| 491 | + invitationAccepted: { args: [RoomInvitation] }; |
| 492 | + invitationCanceled: { args: [RoomInvitation]} |
478 | 493 | deleted: {};
|
479 | 494 | error: { args: [Error, Participant?] };
|
480 | 495 | };
|
@@ -599,6 +614,16 @@ export declare class Room extends EventTarget<RoomEventMap> {
|
599 | 614 | */
|
600 | 615 | deleteCustomItems(customItemKeys: string[]): Promise<CustomItemsResult>;
|
601 | 616 |
|
| 617 | + /** |
| 618 | + * Send invitation |
| 619 | + */ |
| 620 | + sendInvitation(invitee: string): Promise<RoomInvitation>; |
| 621 | + |
| 622 | + /** |
| 623 | + * delete a room |
| 624 | + */ |
| 625 | + delete(): Promise<void>; |
| 626 | + |
602 | 627 | }
|
603 | 628 |
|
604 | 629 | export type RoomParams = {
|
|
0 commit comments