From 3b3cb90110480c4d1adac0efaa8131b086179ff9 Mon Sep 17 00:00:00 2001 From: NarmadaRavali Date: Fri, 14 Jul 2023 17:43:35 -0700 Subject: [PATCH] 0.16.13 --- dist/sdk.d.ts | 544 ++++++++++++++++++++++++++++++++++----------- dist/sdk.es.js | 253 ++++++++++++++------- dist/sdk.module.js | 253 ++++++++++++++------- package.json | 2 +- 4 files changed, 756 insertions(+), 296 deletions(-) diff --git a/dist/sdk.d.ts b/dist/sdk.d.ts index a14d24e..ebad4ea 100644 --- a/dist/sdk.d.ts +++ b/dist/sdk.d.ts @@ -50,6 +50,7 @@ declare enum NativeEvents { ON_INCOMING_PARTICIPANT_AUDIO_CHANGE = "onIncomingParticipantAudioChange", ON_SHARE_SCREEN = "onShareScreen", ON_SHARE_COMPUTER_AUDIO = "onShareComputerAudio", + ON_GALLERY_ORDER = "onGalleryOrder", ON_EMOJI_REACTION = "onEmojiReaction", ON_MEETING_VIEW_CHANGE = "onMeetingViewChange" } @@ -941,7 +942,7 @@ declare type GetMeetingContextResponse = { * All the available JS APIs and events * @category Core * */ -declare type Apis = 'addBreakoutRoom' | 'allowParticipantToRecord' | 'assignParticipantsToBreakoutRoom' | 'assignParticipantToBreakoutRoom' | 'authorize' | 'changeBreakoutRoom' | 'clearImage' | 'clearParticipant' | 'clearWebView' | 'closeBreakoutRooms' | 'closeChannel' | 'closeLobby' | 'closeRenderingContext' | 'cloudRecording' | 'configureBreakoutRooms' | 'connect' | 'createBreakoutRooms' | 'deleteBreakoutRoom' | 'drawImage' | 'drawParticipant' | 'drawWebView' | 'endCollaborate' | 'endSyncData' | 'executeOnZoomAction' | 'expandApp' | 'getBreakoutRoomList' | 'getImmersiveViewContext' | 'getMeetingContext' | 'getMeetingJoinUrl' | 'getMeetingParticipants' | 'getMeetingUUID' | 'getOnZoomProperties' | 'getPairingStatus' | 'getRecordingContext' | 'getRunningContext' | 'getScreenshot' | 'getSupportedJsApis' | 'getUserContext' | 'getUserMediaAudio' | 'getUserMediaVideo' | 'joinCollaborate' | 'joinOnZoomEvent' | 'joinZoomRoom' | 'launchAppInMeeting' | 'leaveCollaborate' | 'listCameras' | 'onActiveSpeakerChange' | 'onAppPopout' | 'onAuthenticate' | 'onAuthorized' | 'onShareScreen' | 'onShareComputerAudio' | 'onBreakoutRoomChange' | 'onCloseAppForParticipants' | 'onCloudRecording' | 'onCollaborateChange' | 'onConnect' | 'onExpandApp' | 'onExtendedProcessing' | 'onFeedbackReaction' | 'onImmersiveViewChange' | 'onMeeting' | 'onMeetingConfigChanged' | 'onMessage' | 'onMyActiveSpeakerChange' | 'onMyMediaChange' | 'onMyReaction' | 'onMyUserContextChange' | 'onOnZoomJoinStatusChange' | 'onPairingStatusChange' | 'onParticipantChange' | 'onReaction' | 'onRemoveFeedbackReaction' | 'onRunningContextChange' | 'onSendAppInvitation' | 'onShareApp' | 'openBreakoutRooms' | 'openChannel' | 'openDM' | 'openUrl' | 'postMessage' | 'promptAuthorize' | 'pushState' | 'removeImmersiveView' | 'removeVirtualBackground' | 'removeVirtualForeground' | 'renameBreakoutRoom' | 'runRenderingContext' | 'sendAppInvitation' | 'sendAppInvitationToAllParticipants' | 'sendAppInvitationToMeetingOwner' | 'setCamera' | 'setImmersiveView' | 'setUserMediaAudio' | 'setUserMediaVideo' | 'setVideoMirrorEffect' | 'setVirtualBackground' | 'setVirtualForeground' | 'shareApp' | 'shareComputerAudio' | 'showAppInvitationDialog' | 'showNotification' | 'startCollaborate' | 'toggleParticipantMediaAudio' | 'onInviteCollaboration' | 'getAppContext' | 'getAudioState' | 'setAudioState' | 'getVideoState' | 'setVideoState' | 'addParticipantSpotlight' | 'removeParticipantSpotlights' | 'getParticipantSpotlights' | 'addParticipantPins' | 'removeParticipantPins' | 'setFeedbackReaction' | 'removeFeedbackReaction' | 'removeAllFeedbackReaction' | 'allowAttendeesToSpeak' | 'disallowAttendeesToSpeak' | 'removeWebinarAttendees' | 'setAudioSettings' | 'getAudioSettings' | 'getIncomingParticipantAudioState' | 'setIncomingParticipantAudioState' | 'onIncomingParticipantAudioChange' | 'setVideoSettings' | 'getVideoSettings' | 'promptShareScreen' | 'showMeetingInvitationDialog' | 'onGalleryPageChange' | 'setGalleryPage' | 'getGalleryPage' | 'getChatContext' | 'composeCard' | 'broadcastVoiceToBreakoutRooms' | 'stopShareScreen' | 'setScreenName' | 'setParticipantScreenName' | 'setEmojiReaction' | 'getEmojiConfiguration' | 'onEmojiReaction' | 'getMeetingView' | 'setMeetingView' | 'onMeetingViewChange' | 'setVideoFilter' | 'deleteVideoFilter'; +declare type Apis = 'addBreakoutRoom' | 'allowParticipantToRecord' | 'assignParticipantsToBreakoutRoom' | 'assignParticipantToBreakoutRoom' | 'authorize' | 'changeBreakoutRoom' | 'clearImage' | 'clearParticipant' | 'clearWebView' | 'closeBreakoutRooms' | 'closeChannel' | 'closeLobby' | 'closeRenderingContext' | 'cloudRecording' | 'configureBreakoutRooms' | 'connect' | 'createBreakoutRooms' | 'deleteBreakoutRoom' | 'drawImage' | 'drawParticipant' | 'drawWebView' | 'endCollaborate' | 'endSyncData' | 'executeOnZoomAction' | 'expandApp' | 'getBreakoutRoomList' | 'getImmersiveViewContext' | 'getMeetingContext' | 'getMeetingJoinUrl' | 'getMeetingParticipants' | 'getMeetingUUID' | 'getOnZoomProperties' | 'getPairingStatus' | 'getRecordingContext' | 'getRunningContext' | 'getScreenshot' | 'getSupportedJsApis' | 'getUserContext' | 'getUserMediaAudio' | 'getUserMediaVideo' | 'joinCollaborate' | 'joinOnZoomEvent' | 'joinZoomRoom' | 'launchAppInMeeting' | 'leaveCollaborate' | 'listCameras' | 'onActiveSpeakerChange' | 'onAppPopout' | 'onAuthenticate' | 'onAuthorized' | 'onShareScreen' | 'onShareComputerAudio' | 'onBreakoutRoomChange' | 'onCloseAppForParticipants' | 'onCloudRecording' | 'onCollaborateChange' | 'onConnect' | 'onExpandApp' | 'onExtendedProcessing' | 'onFeedbackReaction' | 'onImmersiveViewChange' | 'onMeeting' | 'onMeetingConfigChanged' | 'onMessage' | 'onMyActiveSpeakerChange' | 'onMyMediaChange' | 'onMyReaction' | 'onMyUserContextChange' | 'onOnZoomJoinStatusChange' | 'onPairingStatusChange' | 'onParticipantChange' | 'onReaction' | 'onRemoveFeedbackReaction' | 'onRunningContextChange' | 'onSendAppInvitation' | 'onShareApp' | 'openBreakoutRooms' | 'openChannel' | 'openDM' | 'openUrl' | 'postMessage' | 'promptAuthorize' | 'pushState' | 'removeImmersiveView' | 'removeVirtualBackground' | 'removeVirtualForeground' | 'renameBreakoutRoom' | 'runRenderingContext' | 'sendAppInvitation' | 'sendAppInvitationToAllParticipants' | 'sendAppInvitationToMeetingOwner' | 'setCamera' | 'setImmersiveView' | 'setUserMediaAudio' | 'setUserMediaVideo' | 'setVideoMirrorEffect' | 'setVirtualBackground' | 'setVirtualForeground' | 'shareApp' | 'shareComputerAudio' | 'showAppInvitationDialog' | 'showNotification' | 'startCollaborate' | 'toggleParticipantMediaAudio' | 'onInviteCollaboration' | 'getAppContext' | 'getAudioState' | 'setAudioState' | 'getVideoState' | 'setVideoState' | 'addParticipantSpotlight' | 'removeParticipantSpotlights' | 'getParticipantSpotlights' | 'addParticipantPins' | 'removeParticipantPins' | 'setFeedbackReaction' | 'removeFeedbackReaction' | 'removeAllFeedbackReaction' | 'allowAttendeesToSpeak' | 'disallowAttendeesToSpeak' | 'removeWebinarAttendees' | 'setAudioSettings' | 'getAudioSettings' | 'getIncomingParticipantAudioState' | 'setIncomingParticipantAudioState' | 'onIncomingParticipantAudioChange' | 'setVideoSettings' | 'getVideoSettings' | 'promptShareScreen' | 'showMeetingInvitationDialog' | 'onGalleryPageChange' | 'setGalleryPage' | 'getGalleryPage' | 'getChatContext' | 'composeCard' | 'broadcastVoiceToBreakoutRooms' | 'stopShareScreen' | 'getGalleryOrderList' | 'onGalleryOrder' | 'setScreenName' | 'setParticipantScreenName' | 'setEmojiReaction' | 'getEmojiConfiguration' | 'onEmojiReaction' | 'getMeetingView' | 'setMeetingView' | 'onMeetingViewChange' | 'setVideoFilter' | 'deleteVideoFilter' | 'leaveMeeting' | 'joinMeeting' | 'getZoomRoomContext' | 'getZoomRoomControllerCredentials' | 'toggleParticipantMediaVideo'; /** * Example: * ``` @@ -1981,6 +1982,19 @@ declare type PromptShareScreenOptions = { */ optimizeForVideoClip?: boolean; }; +/** + * @category Meeting Views + */ +declare type GetGalleryOrderListResponse = { + participantUUIDs: string[]; +}; +/** + * @category Meeting Views + */ +declare type OnGalleryOrderEvent = { + timestamp: number; + participantUUIDs: string[]; +}; /** * @category Chat */ @@ -2147,6 +2161,78 @@ declare type OnEmojiReactionEvent = { skinTone?: string; }; }; +/** + * @category Zoom Rooms + */ +declare type GetZoomRoomContextResponse = { + deviceId: string; + roomId: string; +}; +/** + * type `zrcUsernamePassword` response is returned if app is configured with username/password/URL credentials. + * type `zrcAuthToken` response is returned if app is configured with authToken/URL credentials. + * @category Zoom Rooms + */ +declare type GetZoomRoomControllerCredentialsResponse = { + type: 'zrcUsernamePassword'; + token: { + appConfigUserName: string; + appConfigPassword: string; + appConfigDeviceUrl: string; + }; +} | { + type: 'zrcAuthToken'; + token: { + appConfigAuthToken: string; + appConfigDeviceUrl: string; + }; +}; +/** + * @category Meeting Actions + */ +declare type LeaveMeetingOptions = { + /** + * newHost?: *participantUUID* + * + * Optional when user is host + * + * If unspecified, the host is prompted to pick a new host using the standard meeting prompt and then leave the meeting. If the host cancels, the host continues to stay in the meeting. + * + * Ignored if specified when user is not host. + */ + newHost?: string; +}; +/** + * @category Meeting Actions + */ +declare type JoinMeetingOptions = { + /** + * newHost?: *participantUUID* + * + * Optional when user is host. + * + * Ignored when user is in the out-of-meeting. + * + * If unspecified, the host is prompted to pick a new host using the standard meeting prompt and then leave the meeting. If the host cancels, the host continues to stay in the meeting. + * + * Ignored if specified when user is not host. + */ + newHost?: string; + /** + * URL of the meeting to join. + * + * When unspecified, a new meeting is created with the Invite Participants panel open by default upon join. + */ + joinURL?: string; +}; +/** + * @category Meeting Actions + */ +declare type ToggleParticipantMediaVideoOptions = { + video: boolean; + /** limit to 10 Ids. */ + participantUUIDs: string[]; +}; /** * # Zoom Apps SDK @@ -2311,7 +2397,9 @@ declare class ZoomSdk { */ callZoomApi(apiName: string, data?: NativeApiRequestData, timeout?: number): Promise; /** + * @zoomZRCVersion 5.14.0 * + * @zoomIOSClientVersion 5.10.6 * To initialize and start using the SDK, you must first call `zoomSdk.config` to verify your application with Zoom. Without completing this step, your application won’t be able to use any of the APIs or event listeners provided by the SDK. In the request body of this API call, specify the list of APIs and event listeners that you plan to use in your app as shown below. Ensure that the list of capabilities provided in this request corresponds to the list of APIs and events that you have added in your app build flow on Marketplace (Zoom App > Feature > Zoom App SDK). * * The Zoom Apps SDK relies on a token that is generated and used internally by the Zoom client to authorize API calls on behalf of the app. This token is bound to the openURL that you provide when you call `zoomSdk.config`. If your URL changes, your configuration will be invalidated, and you will need to call `zoomSdk.config` with the new URL again. @@ -2371,7 +2459,9 @@ declare class ZoomSdk { */ config({ capabilities, popoutSize, size, version, timeout, }: ConfigOptions): Promise; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomZRCVersion 5.14.0 + * @zoomIOSClientVersion 5.10.6 * Returns an array of APIs and events supported by the current running context. * * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee @@ -2386,7 +2476,8 @@ declare class ZoomSdk { */ getSupportedJsApis(): Promise; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomIOSClientVersion 5.10.6 * Opens a URL in the system browser of a user's device. * * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee @@ -2403,7 +2494,9 @@ declare class ZoomSdk { */ openUrl(options: OpenUrlOptions): Promise; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomZRCVersion 5.14.0 + * @zoomIOSClientVersion 5.10.6 * Returns the context in which the Zoom App is launched. This is useful for controlling your app's behavior based on the presence of a single user or multiple collaborative users. * * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee @@ -2417,7 +2510,9 @@ declare class ZoomSdk { */ getRunningContext(): Promise; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomZRCVersion 5.14.0 + * @zoomIOSClientVersion 5.10.6 * This API is only available in meetings. It returns an object containing basic information about the meeting. * * *Supported roles*: Host, Co-Host @@ -2433,7 +2528,9 @@ declare class ZoomSdk { */ getMeetingContext(): Promise; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomIOSClientVersion 5.10.6/5.14.0(mainClient) + * * This sets a virtual background or blur the user's native background. * * When setVirtualBackground is invoked in a context where the smart virtual background package is not yet installed, a dialog prompts the user to download the package. When the user clicks "Install" in the dialog box, the package is downloaded. The client will subsequently show the consent dialog for setting the background. @@ -2456,7 +2553,8 @@ declare class ZoomSdk { */ setVirtualBackground(options: VirtualBackgroundOptions): Promise; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomIOSClientVersion 5.10.6/5.14.0(mainClient) * Removes current virtual background and resets to use the camera. * * Note that when calling removeVirtualBackground, the client will pop up a confirmation dialog to let the user allow or disallow. If the user does not allow the action, the client will return an error code of 10017 to the app. @@ -2482,7 +2580,8 @@ declare class ZoomSdk { */ removeVirtualBackground(): Promise; /** - * @zoomClientVersion 5.9.0 + * @zoomDesktopClientVersion 5.9.0 + * @zoomIOSClientVersion 5.14.10 * Draws an image in the foreground of the user’s video. * * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee @@ -2509,7 +2608,8 @@ declare class ZoomSdk { */ setVirtualForeground(options: VirtualForegroundOptions): Promise; /** - * @zoomClientVersion 5.9.0 + * @zoomDesktopClientVersion 5.9.0 + * @zoomIOSClientVersion 5.14.10 * Removes the image which was set using setVirtualForeground from the foreground of the user’s video. * * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee @@ -2527,7 +2627,8 @@ declare class ZoomSdk { */ removeVirtualForeground(): Promise; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomIOSClientVersion 5.10.6 * Triggers a push notification. The embedded browser does not support the Web Notification API, so we have provided a similar API via the JS SDK. * * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee @@ -2546,7 +2647,8 @@ declare class ZoomSdk { */ showNotification(options: NotificationOptions): Promise; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomIOSClientVersion 5.10.6 * The cloud recording API allows you to control cloud recording actions during a meeting. * * *Supported roles*: Host, Co-Host @@ -2561,7 +2663,8 @@ declare class ZoomSdk { */ cloudRecording(options: CloudRecordingOptions): Promise; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomIOSClientVersion 5.10.6 * Screenshare current app. Optionally share sound as well. * * *Supported roles*: Host, Co-Host, Participant, Panelist @@ -2576,7 +2679,9 @@ declare class ZoomSdk { */ shareApp(options: ShareAppOptions): Promise; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomZRCVersion 5.14.0 + * @zoomIOSClientVersion 5.10.6 * Get all available cameras. * * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee @@ -2602,7 +2707,9 @@ declare class ZoomSdk { */ listCameras(): Promise; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomZRCVersion 5.14.0 + * @zoomIOSClientVersion 5.10.6 * Choose a camera input to use. * * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee @@ -2620,7 +2727,9 @@ declare class ZoomSdk { */ setCamera(options: SetCameraOptions): Promise; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomZRCVersion 5.14.0 + * @zoomIOSClientVersion 5.10.6 * Mirror my video/virtual background. * * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee @@ -2637,7 +2746,8 @@ declare class ZoomSdk { */ setVideoMirrorEffect(options: SetVideoMirrorEffectOptions): Promise; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomIOSClientVersion 5.10.6 * Get information of the participants in the current meeting. Note that for breakout rooms, the participants in the current room will be returned, not those of the parent meeting. * * *Supported roles*: Host, Co-Host @@ -2652,7 +2762,8 @@ declare class ZoomSdk { */ getMeetingParticipants(): Promise; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomIOSClientVersion 5.10.6 * Send app to list of participants in the meeting. * * *Supported roles*: Host, Co-Host @@ -2676,7 +2787,8 @@ declare class ZoomSdk { */ sendAppInvitation(options: SendAppInvitationOptions): Promise; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomIOSClientVersion 5.10.6 * It returns basic information about the meeting participant while in a meeting. * * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee @@ -2696,7 +2808,8 @@ declare class ZoomSdk { */ getUserContext(): Promise; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomIOSClientVersion 5.10.6 * This API endpoint is only available in meetings. It returns basic information about the meeting recording while in a meeting. * * *Supported roles*: Host, Co-Host @@ -2716,7 +2829,9 @@ declare class ZoomSdk { */ getRecordingContext(): Promise; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomZRCVersion 5.14.0 + * @zoomIOSClientVersion 5.10.6 * This API endpoint is only available in meetings. It allows the app to access the JoinUrl while in a meeting. * * *Supported roles*: Host, Co-Host @@ -2737,7 +2852,9 @@ declare class ZoomSdk { */ getMeetingJoinUrl(): Promise; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomZRCVersion 5.14.0 + * @zoomIOSClientVersion 5.10.6 * This API endpoint is only available in meetings. It allows the app to access the meetingUUID while in a meeting. * * In breakout rooms,meetingUUID identifies the specific breakout room, and parentUUID helps connect individual rooms to the main meeting. Note that the value of parentUUID must be used for REST API calls inside of breakout rooms, while meetingUUID is otherwise used. @@ -2760,7 +2877,7 @@ declare class ZoomSdk { */ getMeetingUUID(): Promise; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 * Tells the client to expand to the larger size or collapse it back to the default app UI size. * * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee @@ -2778,7 +2895,7 @@ declare class ZoomSdk { */ expandApp(options: ExpandAppOptions): Promise; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 * The API can only be called in meeting. Allows the App to communicate with the instance of the app running on the main client. * * *Supported roles*: Host, Co-Host, Participant, Panelist @@ -2792,7 +2909,7 @@ declare class ZoomSdk { */ connect(): Promise; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 * Send a message with the current state of the mirrored app. The structure of the payload depends on the needs of the app. * * *Supported roles*: Host, Co-Host, Participant, Panelist @@ -2806,7 +2923,7 @@ declare class ZoomSdk { */ postMessage(options: JSONObject): Promise; /** - * @zoomClientVersion 5.7.3 + * @zoomDesktopClientVersion 5.7.3 * Tells the client to end the data communication between connected apps. Note that the client will close the connection between the apps when endSyncData is called or 10 seconds after the onMeeting event with event.action == 'ended' is received, whichever comes first. * * *Supported roles*: Host, Co-Host, Participant, Panelist @@ -2820,7 +2937,8 @@ declare class ZoomSdk { */ endSyncData(): Promise; /** - * @zoomClientVersion 5.8.3 + * @zoomDesktopClientVersion 5.8.3 + * @zoomIOSClientVersion 5.10.6 * Allow a specific participant to start a local recording. This API will trigger a pop-up consent dialog in the client to let the host allow or not allow. * * *Supported roles*: Host, Co-Host @@ -2841,7 +2959,8 @@ declare class ZoomSdk { */ allowParticipantToRecord(options: AllowParticipantToRecordOptions): Promise; /** - * @zoomClientVersion 5.8.3 + * @zoomDesktopClientVersion 5.8.3 + * @zoomIOSClientVersion 5.10.6 * Starts a new meeting or joins an existing meeting and launches the app in the meeting. * * *Supported roles*: Host, Co-Host, Participant, Panelist @@ -2860,7 +2979,8 @@ declare class ZoomSdk { */ launchAppInMeeting(options?: LaunchAppInMeetingOptions): Promise; /** - * @zoomClientVersion 5.7.3 + * @zoomDesktopClientVersion 5.7.3 + * @zoomIOSClientVersion 5.10.6 * Shows client participant selection dialog window for sending an app invitation. * * Triggers client built in participant selection UI, so that apps running in non-owner context that do not have screen names can invite specific users. @@ -2877,7 +2997,8 @@ declare class ZoomSdk { */ showAppInvitationDialog(): Promise; /** - * @zoomClientVersion 5.7.3 + * @zoomDesktopClientVersion 5.7.3 + * @zoomIOSClientVersion 5.10.6 * Sends invitation of current app to the meeting owner (person who scheduled the meeting). * * Sends app invitations specifically to the meeting owner. Sent to both meeting & persistent chat when the meeting owner is in the meeting. Sent to persistent chat when the meeting owner is not in the meeting that might be ongoing. @@ -2894,7 +3015,8 @@ declare class ZoomSdk { */ sendAppInvitationToMeetingOwner(): Promise; /** - * @zoomClientVersion 5.7.6 + * @zoomDesktopClientVersion 5.7.6 + * @zoomIOSClientVersion 5.10.6 * Sends invitation for the current app to all participants currently in the meeting. * * In breakout rooms, this will only send invitations to participants within the current room. @@ -2919,7 +3041,7 @@ declare class ZoomSdk { */ sendAppInvitationToAllParticipants(): Promise; /** - * @zoomClientVersion 5.9.0 + * @zoomDesktopClientVersion 5.9.0 * Changes the app's rendering context from the meeting sidebar to the main meeting window, with behavior defined by the specified view option. * Only a meeting host may invoke an immersive `runRenderingContext`. To transition other meeting participants to an immersive view, the meeting host’s app must use the `sendAppInvitationToAllParticipants` API. * @@ -2939,7 +3061,7 @@ declare class ZoomSdk { */ runRenderingContext(options: RunRenderingContextOptions): Promise; /** - * @zoomClientVersion 5.9.0 + * @zoomDesktopClientVersion 5.9.0 * Returns the rendering context of the app to the sidebar. * * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee @@ -2960,7 +3082,7 @@ declare class ZoomSdk { */ closeRenderingContext(): Promise; /** - * @zoomClientVersion 5.9.0 + * @zoomDesktopClientVersion 5.9.0 * The `drawParticipant` method can be used to specify the position and size of a partipant on the screen when in `camera` or `immersive` rendering context. The `participantUUID` option can be filled with the value from `getMeetingParticipants` or `getUserContext`. * * When `cameraModeMirroring` option is set to true, the participant will be streamed as mirrored in both the `local` client `and` to `other` participants. This option is only available in `camer mode`. Furthermore, none of the layers except of the participant layer can be mirrored in camera mode. @@ -2995,7 +3117,7 @@ declare class ZoomSdk { */ drawParticipant(options: DrawParticipantOptions): Promise; /** - * @zoomClientVersion 5.9.0 + * @zoomDesktopClientVersion 5.9.0 * Clears the content set by drawParticipant. * * *Supported roles*: Host, Co-Host @@ -3015,7 +3137,7 @@ declare class ZoomSdk { */ clearParticipant(options: ClearParticipantOptions): Promise; /** - * @zoomClientVersion 5.9.0 + * @zoomDesktopClientVersion 5.9.0 * Draws an image in the rendering context's canvas. * * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee @@ -3045,7 +3167,7 @@ declare class ZoomSdk { */ drawImage(options: DrawImageOptions): Promise; /** - * @zoomClientVersion 5.9.0 + * @zoomDesktopClientVersion 5.9.0 * Clears the content set by drawImage. * * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee @@ -3065,7 +3187,7 @@ declare class ZoomSdk { */ clearImage(options: ClearImageOptions): Promise; /** - * @zoomClientVersion 5.10.6 + * @zoomDesktopClientVersion 5.10.6 * Draws the OSR webview with the specified size, location and zIndex [Layers Camera Mode]. * * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee @@ -3089,7 +3211,7 @@ declare class ZoomSdk { */ drawWebView(options: DrawWebViewOptions): Promise; /** - * @zoomClientVersion 5.10.6 + * @zoomDesktopClientVersion 5.10.6 * Clears the content set by drawWebView. [Layers Camera Mode]. * * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee @@ -3107,7 +3229,8 @@ declare class ZoomSdk { */ clearWebView(): Promise; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomIOSClientVersion 5.10.6 * This event occurs when the user clicks the share icon from the Zoom App sidebar during a meeting, and when the user stops the share. * * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee @@ -3118,7 +3241,8 @@ declare class ZoomSdk { */ onShareApp(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomIOSClientVersion 5.10.6 * This event occurs when the user clicks the invite icon from the Zoom App sidebar during a meeting. All attendees and participants receive an invitation. The sender receives an event. * * *Supported roles*: Host, Co-Host @@ -3129,7 +3253,8 @@ declare class ZoomSdk { */ onSendAppInvitation(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomIOSClientVersion 5.10.6 * The cloud recording events occur when a user starts, pauses, stops or resumes recording a Zoom meeting (where your app is being run) to the cloud using the Zoom UI or programmatically using the JS APIs. Additionally, the `"connecting"` event action will be trigered prior to the start of a cloud recording. * * *Supported roles*: Host, Co-Host @@ -3140,7 +3265,8 @@ declare class ZoomSdk { */ onCloudRecording(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomIOSClientVersion 5.10.6 * This event occurs when a meeting participant sends a reaction. * * *Supported roles*: Host, Co-Host @@ -3151,7 +3277,8 @@ declare class ZoomSdk { */ onReaction(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomIOSClientVersion 5.10.6 * This event is triggered when a user joins or leaves a meeting or when a participant's role changes for that meeting. * * **Note** The event triggers twice in some situations, such as when a participant leaves a meeting with one role and rejoins the meeting with a new role. The participantUUID of the user might change when the role changes. @@ -3164,7 +3291,8 @@ declare class ZoomSdk { */ onParticipantChange(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 + * @zoomIOSClientVersion 5.10.6 * This event occurs when the active speaker changes in a meeting. The response array contains all active speakers. * * *Supported roles*: Host, Co-Host @@ -3175,7 +3303,7 @@ declare class ZoomSdk { */ onActiveSpeakerChange(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 * This event occurs when the popout/pop-in button is clicked on the app window. * * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee @@ -3186,7 +3314,7 @@ declare class ZoomSdk { */ onAppPopout(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 * Notifies app when the client expands or collapses the app. * * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee @@ -3197,7 +3325,7 @@ declare class ZoomSdk { */ onExpandApp(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 * In order to maintain state after a meeting, the instance of the app that is running in the meeting must communicate with the instance of the app running in the main client. The following events facilitate that process. * * Notify the event listener when the API call `connect` has finished attempting to connect to the app instance running in the main client. This event can only be received in meeting. @@ -3210,7 +3338,7 @@ declare class ZoomSdk { */ onConnect(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 * In order to maintain state after a meeting, the instance of the app that is running in the meeting must communicate with the instance of the app running in the main client. The following events facilitate that process. * * Receive a sent message from the mirrored app. The structure of the payload depends on the needs of the app. @@ -3223,7 +3351,7 @@ declare class ZoomSdk { */ onMessage(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.6.7 + * @zoomDesktopClientVersion 5.6.7 * In order to maintain state after a meeting, the instance of the app that is running in the meeting must communicate with the instance of the app running in the main client. The following events facilitate that process. * * Meeting is closed, then notify the mirrored app and update state one more time. @@ -3236,7 +3364,8 @@ declare class ZoomSdk { */ onMeeting(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.8.6 + * @zoomDesktopClientVersion 5.8.6 + * @zoomIOSClientVersion 5.10.6 * The event is triggered when any change happens to breakout rooms configuration. This method informs the app when the host changes the configuration manually, or when another app changes the configuration. * * The event does not provide detailed information about the specific change, so the app needs to make an additional API request to retrieve the updated data. @@ -3249,7 +3378,8 @@ declare class ZoomSdk { */ onMeetingConfigChanged(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.8.3 + * @zoomDesktopClientVersion 5.8.3 + * @zoomIOSClientVersion 5.10.6 * Notifies Zoom App when a user leaves or joins a breakout room. * * *Supported roles*: Host, Co-Host, Participant @@ -3260,7 +3390,7 @@ declare class ZoomSdk { */ onBreakoutRoomChange(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.10.0 + * @zoomDesktopClientVersion 5.10.0 * The event is triggered when changes such as start, end, leave or join happen in Collaborate mode. This method informs the app when the host or co-hosts start or end a collaboration, and when meeting participants leave or join a collaboration. * * The event is applicable to users based on their role in the meeting. For participants, the join and leave actions will apply. For hosts and co hosts, the start and end actions will apply. The event does not provide detailed information about the specific change, so the app needs to make an additional API request to retrieve the updated data. @@ -3273,7 +3403,7 @@ declare class ZoomSdk { */ onCollaborateChange(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.10.0 + * @zoomDesktopClientVersion 5.10.0 * *Supported roles*: Host, Co-Host, Participant, Panelist * * *Supports Guest Mode*: No @@ -3282,7 +3412,8 @@ declare class ZoomSdk { */ onRunningContextChange(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.7.3 + * @zoomDesktopClientVersion 5.7.3 + * @zoomIOSClientVersion 5.10.6 * Notifies Zoom App when current user reacts with a reaction in a meeting. * * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee @@ -3293,7 +3424,8 @@ declare class ZoomSdk { */ onMyReaction(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.7.3 + * @zoomDesktopClientVersion 5.7.3 + * @zoomIOSClientVersion 5.10.6 * Notifies Zoom App when current user starts or stops speaking. * * *Supported roles*: Host, Co-Host, Participant, Panelist @@ -3304,7 +3436,8 @@ declare class ZoomSdk { */ onMyActiveSpeakerChange(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.7.3 + * @zoomDesktopClientVersion 5.7.3 + * @zoomIOSClientVersion 5.10.6 * This event is triggered when the current user’s role changes. * * `onMyUserContextChange` will be available to apps regardless of whether the app user is an owner, host or attendee in a meeting, but would only provide data for the user that’s running the app (and not the other participants in the meeting). @@ -3319,7 +3452,8 @@ declare class ZoomSdk { */ onMyUserContextChange(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.9.0 + * @zoomDesktopClientVersion 5.9.0 + * @zoomZRCVersion 5.14.0 * Notifies the app when the current user's video settings change, when it’s toggled on or off, and when the audio is muted or unmuted. * * For example, when the user chooses a different camera, mutes or unmutes their primary audio, or toggles: "Original ratio", "HD" in video settings, or primary camera on or off. @@ -3332,7 +3466,8 @@ declare class ZoomSdk { */ onMyMediaChange(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.9.0 + * @zoomDesktopClientVersion 5.9.0 + * @zoomIOSClientVersion 5.10.6 * Notifies the third-party app that the user has finished the in-client OAuth. * * *Supported roles*: Host, Co-Host, Participant, Panelist @@ -3343,7 +3478,9 @@ declare class ZoomSdk { */ onAuthorized(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.13.5 + * @zoomDesktopClientVersion 5.13.5 + * @zoomZRCVersion 5.14.0 + * @zoomIOSClientVersion 5.13.5 * This event triggers when a user in the meeting starts or stops sharing their screen. * * *Supported roles*: Host, Co-Host, Panelist, Participant, and Attendee @@ -3358,7 +3495,8 @@ declare class ZoomSdk { */ onShareScreen(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.13.5 + * @zoomDesktopClientVersion 5.13.5 + * @zoomZRCVersion 5.14.0 * This event triggers when a user in the meeting starts or stops sharing their computer audio or screen with audio. * * *Supported roles*: Host, Co-Host, Panelist, Participant, and Attendee @@ -3373,7 +3511,7 @@ declare class ZoomSdk { */ onShareComputerAudio(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.9.3 + * @zoomDesktopClientVersion 5.9.3 * The event triggers when the user closes the app for participants. It is only triggered for the user who performed the action. Example: The host uses an app to poll participants. When the host closes the app for participants, the app displays the results. * * *Supported roles*: Host, Co-Host, Panelist @@ -3395,7 +3533,7 @@ declare class ZoomSdk { */ onCloseAppForParticipants(handler: GenericEventHandler<'everyone' | 'attendees' | 'everyoneButMe'>): void; /** - * @zoomClientVersion 5.11.0 + * @zoomDesktopClientVersion 5.11.0 * @hidden * * Notifies the inMeeting instance of an app that a second instance of the app has been opened in the meeting for Layers API related rendering purposes. @@ -3408,7 +3546,8 @@ declare class ZoomSdk { */ onRenderedAppOpened(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.13.5 + * @zoomDesktopClientVersion 5.13.5 + * @zoomIOSClientVersion 5.13.5 * * Event triggered when a participant triggers a feedback. * @@ -3422,7 +3561,8 @@ declare class ZoomSdk { */ onFeedbackReaction(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.13.5 + * @zoomDesktopClientVersion 5.13.5 + * @zoomIOSClientVersion 5.13.5 * * Event triggered when subscribed participant removes a feedback. * @@ -3436,7 +3576,8 @@ declare class ZoomSdk { */ onRemoveFeedbackReaction(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.12.6 + * @zoomDesktopClientVersion 5.12.6 + * @zoomIOSClientVersion 5.12.6 * Notifies the app about the incoming audio status change for the participants. * * *Running context*: inMeeting @@ -3449,7 +3590,7 @@ declare class ZoomSdk { */ onIncomingParticipantAudioChange(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.13.10 + * @zoomDesktopClientVersion 5.13.10 * * Triggers when the user changes their gallery view page or `setGalleryPage` method is fired. * @@ -3464,6 +3605,22 @@ declare class ZoomSdk { * @category Meeting Views */ onGalleryPageChange(handler: GenericEventHandler): void; + /** + * @zoomDesktopClientVersion 5.14.5 + * + * Event triggers when participants order in the gallery is changed (could be triggered by new people joining the meeting, reactions, spotlighting, host changing order and pushing it to others) + * + * *Running context*: inMeeting, inImmersive, inWebinar, inCollaborate, inCamera + * + * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee + * + * *Supports Guest Mode*: Yes + * + * *Product*: desktop + * + * @category Meeting Views + */ + onGalleryOrder(handler: GenericEventHandler): void; /** * Low-level method used to register event handlers in the SDK. This is useful because it allows you to use new events in the client without needing to update the JS SDK. You can register multiple listeners per event. * @@ -3491,7 +3648,7 @@ declare class ZoomSdk { */ off(event: `${NativeEvents}`, handler: (data: any) => any): void; /** - * @zoomClientVersion 5.8.6 + * @zoomDesktopClientVersion 5.8.6 * Deletes all existing breakout rooms and creates new ones. Response is same as getBreakoutRoomList. * * *Supported roles*: Host, Co-Host @@ -3502,7 +3659,7 @@ declare class ZoomSdk { */ createBreakoutRooms(options: CreateBreakoutRoomsOptions): Promise; /** - * @zoomClientVersion 5.8.6 + * @zoomDesktopClientVersion 5.8.6 * Change breakout room settings. * * *Supported roles*: Host, Co-Host @@ -3528,7 +3685,7 @@ declare class ZoomSdk { */ configureBreakoutRooms(options: ConfigureBreakoutRoomsOptions): Promise; /** - * @zoomClientVersion 5.8.6 + * @zoomDesktopClientVersion 5.8.6 * Open breakout rooms. * * *Supported roles*: Host, Co-Host @@ -3539,7 +3696,8 @@ declare class ZoomSdk { */ openBreakoutRooms(): Promise; /** - * @zoomClientVersion 5.8.6 + * @zoomDesktopClientVersion 5.8.6 + * @zoomIOSClientVersion 5.10.6 * Close breakout rooms. * * *Supported roles*: Host, Co-Host @@ -3550,7 +3708,8 @@ declare class ZoomSdk { */ closeBreakoutRooms(): Promise; /** - * @zoomClientVersion 5.9.3 + * @zoomDesktopClientVersion 5.9.3 + * @zoomIOSClientVersion 5.10.6 * List all breakout rooms. Host and Co-Host get list of rooms and participants for each breakout room. Participants get only list of rooms. The method works for participants only when breakout rooms are open. * * *Supported roles*: Host, Co-Host, Participant @@ -3581,7 +3740,7 @@ declare class ZoomSdk { */ getBreakoutRoomList(): Promise; /** - * @zoomClientVersion 5.8.6 + * @zoomDesktopClientVersion 5.8.6 * Add one more breakout room. This method is allowed only when breakout rooms are closed. Returns UUID of newly created breakout room. * * *Supported roles*: Host, Co-Host @@ -3592,7 +3751,7 @@ declare class ZoomSdk { */ addBreakoutRoom(options: AddBreakoutRoomOptions): Promise; /** - * @zoomClientVersion 5.8.6 + * @zoomDesktopClientVersion 5.8.6 * Delete one breakout room. This method is allowed only when breakout rooms are closed. * * *Supported roles*: Host, Co-Host @@ -3603,7 +3762,7 @@ declare class ZoomSdk { */ deleteBreakoutRoom(options: Uuid): Promise; /** - * @zoomClientVersion 5.8.6 + * @zoomDesktopClientVersion 5.8.6 * Renames a breakout room. This method is allowed only when breakout rooms are closed. * * *Supported roles*: Host, Co-Host @@ -3614,7 +3773,7 @@ declare class ZoomSdk { */ renameBreakoutRoom(options: RenameBreakoutRoomOptions): Promise; /** - * @zoomClientVersion 5.9.0 + * @zoomDesktopClientVersion 5.9.0 * Assigns a participant to a breakout room (other than the host / co-host). Only one user assigned per call. For open breakout rooms, the method triggers a user flow to join the room. * * *Supported roles*: Host, Co-Host @@ -3630,7 +3789,7 @@ declare class ZoomSdk { */ assignParticipantToBreakoutRoom(options: AssignParticipantToBreakoutRoomOptions): Promise; /** - * @zoomClientVersion 5.8.6 + * @zoomDesktopClientVersion 5.8.6 * Called by a host / co-host / participant. Allows single participant user to join or leave a breakout room. * * *Supported roles*: Host, Co-Host, Participant @@ -3646,7 +3805,7 @@ declare class ZoomSdk { */ changeBreakoutRoom(options: ChangeBreakoutRoomOptions): Promise; /** - * @zoomClientVersion 5.10.0 + * @zoomDesktopClientVersion 5.10.0 * Starts Collaborate mode in a meeting. Can be initiated by Hosts or Co-Hosts. Use the optional shareScreen parameter to opt out of sharing the Host’s app screen with participants as a preview or when participants ignore the Collaborate invite. * * *Supported roles*: Host, Co-Host @@ -3666,7 +3825,7 @@ declare class ZoomSdk { */ startCollaborate(options: StartCollaborateOptions): Promise; /** - * @zoomClientVersion 5.10.0 + * @zoomDesktopClientVersion 5.10.0 * Ends Collaborate mode in a meeting. Can be initiated by hosts or co-hosts. * * *Supported roles*: Host, Co-Host @@ -3685,7 +3844,7 @@ declare class ZoomSdk { */ endCollaborate(): Promise; /** - * @zoomClientVersion 5.10.0 + * @zoomDesktopClientVersion 5.10.0 * Leave Collaborate mode. Can be initiated by participants in a meeting who are currently in Collaborate mode. * * *Supported roles*: Host, Co-Host, Participant, Panelist @@ -3704,7 +3863,7 @@ declare class ZoomSdk { */ leaveCollaborate(): Promise; /** - * @zoomClientVersion 5.10.0 + * @zoomDesktopClientVersion 5.10.0 * Join Collaborate mode. Can be initiated by participants in a meeting when they are invited to collaborate. * * *Supported roles*: Host, Co-Host, Participant, Panelist @@ -3723,7 +3882,8 @@ declare class ZoomSdk { */ joinCollaborate(): Promise; /** - * @zoomClientVersion 5.10.0 + * @zoomDesktopClientVersion 5.10.0 + * @zoomIOSClientVersion 5.10.6 * * This method is part of in-client OAuth feature. It initiates on OAuth authorization request from the Zoom Client - Zoom Apps tab - to the Zoom marketplace. * @@ -3754,7 +3914,8 @@ declare class ZoomSdk { */ authorize(options: AuthorizeOptions): Promise; /** - * @zoomClientVersion 5.10.6 + * @zoomDesktopClientVersion 5.10.6 + * @zoomIOSClientVersion 5.14.0 * Triggers a contextual prompt for the user to sign in with Zoom (if the user context status is not "authenticated"), or add the app (if the user context status is "authenticated"). The prompt is asynchronous and non-blocking, users can continue using the app while it is visible, or close the prompt. * * If user context is "unauthenticated", Zoom does not know the user, and only some Zoom APIs are allowed. Invoking `promptAuthorize` will ask the user to log in to Zoom, upon which user context status will update to "authenticated". @@ -3777,7 +3938,9 @@ declare class ZoomSdk { */ promptAuthorize(): Promise; /** - * @zoomClientVersion 5.11.6 + * @zoomDesktopClientVersion 5.11.6 + * @zoomZRCVersion 5.14.0 + * @zoomIOSClientVersion 5.11.6 * Turn on or off the primary video. * * *Supported roles*: Host, Co-Host, Participant, Panelist @@ -3788,7 +3951,9 @@ declare class ZoomSdk { */ setVideoState(options: SetVideoStateOptions): Promise; /** - * @zoomClientVersion 5.11.6 + * @zoomDesktopClientVersion 5.11.6 + * @zoomZRCVersion 5.14.0 + * @zoomIOSClientVersion 5.11.6 * Mute or unmute the primary audio. * * *Supported roles*: Host, Co-Host, Participant, Panelist @@ -3799,7 +3964,9 @@ declare class ZoomSdk { */ setAudioState(options: SetAudioStateOptions): Promise; /** - * @zoomClientVersion 5.11.6 + * @zoomDesktopClientVersion 5.11.6 + * @zoomZRCVersion 5.14.0 + * @zoomIOSClientVersion 5.11.6 * Gets the on or off status of the primary video. * * *Supported roles*: Host, Co-Host, Participant, Panelist @@ -3810,7 +3977,9 @@ declare class ZoomSdk { */ getVideoState(): Promise; /** - * @zoomClientVersion 5.11.6 + * @zoomDesktopClientVersion 5.11.6 + * @zoomZRCVersion 5.14.0 + * @zoomIOSClientVersion 5.11.6 * Gets the mute or unmute status of the primary audio. * * *Supported roles*: Host, Co-Host, Participant, Panelist @@ -3821,7 +3990,8 @@ declare class ZoomSdk { */ getAudioState(): Promise; /** - * @zoomClientVersion 5.10.3 + * @zoomDesktopClientVersion 5.10.3 + * @zoomIOSClientVersion 5.10.6 * Allows hosts and co-hosts to mute and unmute all, or specific, meeting participants. The action doesn't affect the person initiating the request. * * *Running context*: inMeeting, inWebinar @@ -3854,7 +4024,9 @@ declare class ZoomSdk { toggleParticipantMediaAudio(options: ToggleParticipantMediaAudioOptions): Promise; /** * **Beta** API may undergo some changes - * @zoomClientVersion 5.11.3 + * @zoomDesktopClientVersion 5.11.3 + * @zoomZRCVersion 5.14.0 + * @zoomIOSClientVersion 5.11.3 * * This API returns app context token that contains signed app context data for secure backend validation. * See https://developers.zoom.us/docs/zoom-apps/zoom-app-context/ for more details. @@ -3875,7 +4047,7 @@ declare class ZoomSdk { */ getAppContext(): Promise; /** - * @zoomClientVersion 5.12.6 + * @zoomDesktopClientVersion 5.12.6 * * Shares audio from my computer. Pass in an action to `start` or `stop` the share. Does not share the screen or app. `stereo` is default `mode` option, optionally pass parameter to change to `mono` * @@ -3897,7 +4069,7 @@ declare class ZoomSdk { */ shareComputerAudio(options: ShareComputerAudioOptions): Promise; /** - * @zoomClientVersion 5.12.6 + * @zoomDesktopClientVersion 5.12.6 * * Add one participant to the current spotlight, without overwriting the current set of participants in the spotlight. * @@ -3922,7 +4094,7 @@ declare class ZoomSdk { */ addParticipantSpotlight(options: AddParticipantSpotlightOptions): Promise; /** - * @zoomClientVersion 5.12.6 + * @zoomDesktopClientVersion 5.12.6 * * Removes one or more participants from the current spotlight. * @@ -3948,7 +4120,7 @@ declare class ZoomSdk { */ removeParticipantSpotlights(options: RemoveParticipantSpotlightsOptions): Promise; /** - * @zoomClientVersion 5.12.6 + * @zoomDesktopClientVersion 5.12.6 * * Returns an array of participants who are currently in the spotlight. * @@ -3971,7 +4143,7 @@ declare class ZoomSdk { */ getParticipantSpotlights(): Promise; /** - * @zoomClientVersion 5.12.6 + * @zoomDesktopClientVersion 5.12.6 * * The functionality of this API is to help add participants on a Zoom Meeting to pins. * @@ -3990,7 +4162,7 @@ declare class ZoomSdk { */ addParticipantPins(options: ParticipantPinOptions): Promise; /** - * @zoomClientVersion 5.12.6 + * @zoomDesktopClientVersion 5.12.6 * * The functionality of this API is to help remove participants on a Zoom Meeting from pins. * @@ -4009,7 +4181,8 @@ declare class ZoomSdk { */ removeParticipantPins(options: ParticipantPinOptions): Promise; /** - * @zoomClientVersion 5.12.6 + * @zoomDesktopClientVersion 5.12.6 + * @zoomIOSClientVersion 5.12.6 * * Enable participant to set their feedback reactions. * @@ -4029,7 +4202,8 @@ declare class ZoomSdk { */ setFeedbackReaction(options: FeedbackReactionOptions): Promise; /** - * @zoomClientVersion 5.12.6 + * @zoomDesktopClientVersion 5.12.6 + * @zoomIOSClientVersion 5.12.6 * * Removes own feedback that is currently set. * @@ -4049,7 +4223,8 @@ declare class ZoomSdk { */ removeFeedbackReaction(): Promise; /** - * @zoomClientVersion 5.12.6 + * @zoomDesktopClientVersion 5.12.6 + * @zoomIOSClientVersion 5.12.6 * * Removes feedback of all participants in the meeting. * @@ -4069,7 +4244,7 @@ declare class ZoomSdk { */ removeAllFeedbackReaction(): Promise; /** - * @zoomClientVersion 5.12.6 + * @zoomDesktopClientVersion 5.12.6 * * This API permits Hosts and Co-Hosts to allow Webinar Attendees to speak. * @@ -4088,7 +4263,7 @@ declare class ZoomSdk { */ allowAttendeesToSpeak(options: AttendeeSpeakingOptions): Promise; /** - * @zoomClientVersion 5.12.6 + * @zoomDesktopClientVersion 5.12.6 * * This API permits Hosts and Co-Hosts to disallow Webinar Attendees to speak. * @@ -4107,7 +4282,7 @@ declare class ZoomSdk { */ disallowAttendeesToSpeak(options: AttendeeSpeakingOptions): Promise; /** - * @zoomClientVersion 5.12.6 + * @zoomDesktopClientVersion 5.12.6 * * This API permits Hosts and Co-Hosts to eject Attendees from a Webinar. * @@ -4126,7 +4301,7 @@ declare class ZoomSdk { */ removeWebinarAttendees(options: RemoveWebinarAttendeeOptions): Promise; /** - * @zoomClientVersion 5.13.0 + * @zoomDesktopClientVersion 5.13.0 * * Get Contextual Chat Context. If App is launched from Message ellipsis, method should return the message from where it is launched. * @@ -4144,7 +4319,7 @@ declare class ZoomSdk { */ getChatContext(): Promise; /** - * @zoomClientVersion 5.13.0 + * @zoomDesktopClientVersion 5.13.0 * * Sends Interactive message and its preview to user’s compose box in chat context. When user posts the card, actual content of the message will be rendered as interactive message * @@ -4172,7 +4347,7 @@ declare class ZoomSdk { */ composeCard(options: ComposeCardOptions): Promise; /** - * @zoomClientVersion 5.12.6 + * @zoomDesktopClientVersion 5.12.6 * * The functionality of this API is to retrieve incoming speaker audio status for all or selected participants. * @@ -4197,7 +4372,7 @@ declare class ZoomSdk { */ getIncomingParticipantAudioState(options: GetIncomingParticipantAudioStateOptions): Promise; /** - * @zoomClientVersion 5.12.6 + * @zoomDesktopClientVersion 5.12.6 * * The functionality of this API is to toggle on/off incoming speaker audio for all or selected participants. * @@ -4216,7 +4391,8 @@ declare class ZoomSdk { */ setIncomingParticipantAudioState(options: SetIncomingParticipantAudioStateOptions): Promise; /** - * @zoomClientVersion 5.13.0 + * @zoomDesktopClientVersion 5.13.0 + * @zoomZRCVersion 5.15.0 * * Change user's video settings * @@ -4238,7 +4414,9 @@ declare class ZoomSdk { */ setVideoSettings(options: SetVideoSettingsOptions): Promise; /** - * @zoomClientVersion 5.13.0 + * @zoomDesktopClientVersion 5.13.0 + * @zoomZRCVersion 5.15.0 + * @zoomIOSClientVersion 5.13.0 * * Retrieves the user’s current video settings . The API retrieves only the video settings that can be changed by setVideoSettings * @@ -4257,7 +4435,8 @@ declare class ZoomSdk { */ getVideoSettings(): Promise; /** - * @zoomClientVersion 5.13.0 + * @zoomDesktopClientVersion 5.13.0 + * @zoomZRCVersion 5.15.0 * * Changing a user’s audio settings * @@ -4279,7 +4458,9 @@ declare class ZoomSdk { */ setAudioSettings(options: SetAudioSettingsOptions): Promise; /** - * @zoomClientVersion 5.13.0 + * @zoomDesktopClientVersion 5.13.0 + * @zoomZRCVersion 5.15.0 + * @zoomIOSClientVersion 5.13.0 * * Retrieves the current audio settings of the user. It retrieves only the audio settings that can be changed by setAudioSettings * @@ -4300,7 +4481,8 @@ declare class ZoomSdk { */ getAudioSettings(): Promise; /** - * @zoomClientVersion 5.13.5 + * @zoomDesktopClientVersion 5.13.5 + * @zoomIOSClientVersion 5.14.0 * * Called by any participant to open the share screen modal. * @@ -4319,7 +4501,7 @@ declare class ZoomSdk { */ promptShareScreen(options?: PromptShareScreenOptions): Promise; /** - * @zoomClientVersion 5.13.10 + * @zoomDesktopClientVersion 5.13.10 * * Called by any participant to open the invite-people modal. * @@ -4338,7 +4520,7 @@ declare class ZoomSdk { */ showMeetingInvitationDialog(): Promise; /** - * @zoomClientVersion 5.13.10 + * @zoomDesktopClientVersion 5.13.10 * * Changes the local meeting screen to a page number in the gallery view. * @@ -4352,7 +4534,7 @@ declare class ZoomSdk { */ setGalleryPage(options: SetGalleryPageOptions): Promise; /** - * @zoomClientVersion 5.13.10 + * @zoomDesktopClientVersion 5.13.10 * * Returns the current gallery page and the total number of gallery pages for the user. * @@ -4368,7 +4550,7 @@ declare class ZoomSdk { */ getGalleryPage(): Promise; /** - * @zoomClientVersion 5.14.0 + * @zoomDesktopClientVersion 5.14.0 * * Starts or stops broadcasting voice to breakout rooms. Voice will be broadcasted to all rooms until it is stopped. * @@ -4384,7 +4566,23 @@ declare class ZoomSdk { */ broadcastVoiceToBreakoutRooms(options: BroadcastVoiceToBreakoutRoomsOptions): Promise; /** - * @zoomClientVersion 5.14.0 + * @zoomDesktopClientVersion 5.14.5 + * + * Method returns participant uuids sorted by their order (linearized top left to bottom right) in gallery view. + * + * *Running context*: inMeeting, inImmersive, inWebinar, inCollaborate, inCamera + * + * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee + * + * *Supports Guest Mode*: Yes + * + * *Product*: desktop + * + * @category Meeting Views + */ + getGalleryOrderList(): Promise; + /** + * @zoomDesktopClientVersion 5.14.0 * * Stops an ongoing share screen. * @@ -4400,7 +4598,8 @@ declare class ZoomSdk { */ stopShareScreen(): Promise; /** - * @zoomClientVersion 5.14.5 + * @zoomDesktopClientVersion 5.14.5 + * @zoomZRCVersion 5.15.0 * * Called by any participant to get information on their meeting view. * @@ -4420,7 +4619,8 @@ declare class ZoomSdk { */ getMeetingView(): Promise; /** - * @zoomClientVersion 5.14.5 + * @zoomDesktopClientVersion 5.14.5 + * @zoomZRCVersion 5.15.0 * * Called by any participant to set information on their meeting view. * @@ -4440,7 +4640,8 @@ declare class ZoomSdk { */ setMeetingView(options: SetMeetingViewOptions): Promise; /** - * @zoomClientVersion 5.14.5 + * @zoomDesktopClientVersion 5.14.5 + * @zoomZRCVersion 5.15.0 * * Event fired for when the user’s meeting view is changed. * @@ -4459,7 +4660,7 @@ declare class ZoomSdk { */ onMeetingViewChange(handler: GenericEventHandler): void; /** - * @zoomClientVersion 5.14.5 + * @zoomDesktopClientVersion 5.14.5 * * Sets an image as the static foreground image of the user’s video. Supports image transparency. Any video filter set via this method will rewrite previous filters set using this method. * @@ -4475,7 +4676,7 @@ declare class ZoomSdk { */ setVideoFilter(options: SetVideoFilterOptions): Promise; /** - * @zoomClientVersion 5.14.5 + * @zoomDesktopClientVersion 5.14.5 * * Deletes the video filter that was set using the setVideoFilter method, including video filters set by other apps. This method removes the video filter from the user’s Video Filters list in Settings. If the video filter is currently applied, it sets the Video Filters Setting to “None”. * @@ -4491,7 +4692,7 @@ declare class ZoomSdk { */ deleteVideoFilter(): Promise; /** - * @zoomClientVersion 5.14.5 + * @zoomDesktopClientVersion 5.14.5 * * Change your screen name in meeting, persists only for that meeeting. Triggers `onMyUserContextChange` event. `getUserContext` will return the changed name. * @@ -4507,7 +4708,7 @@ declare class ZoomSdk { */ setScreenName(options: SetScreenNameOptions): Promise; /** - * @zoomClientVersion 5.14.5 + * @zoomDesktopClientVersion 5.14.5 * * Changes participant's screen name in meeting, persists only for that meeting. Triggers `onMyUserContextChange` event for the targeted participant's app. Also, triggers the `onParticipantChange` event for the host's app. * @@ -4523,7 +4724,7 @@ declare class ZoomSdk { */ setParticipantScreenName(options: setParticipantScreenNameOptions): Promise; /** - * @zoomClientVersion 5.14.5 + * @zoomDesktopClientVersion 5.14.5 * * Allows a user to react with an emoji. * @@ -4539,7 +4740,7 @@ declare class ZoomSdk { */ setEmojiReaction(options: SetEmojiReactionOptions): Promise; /** - * @zoomClientVersion 5.14.5 + * @zoomDesktopClientVersion 5.14.5 * * Returns a list of emojis available for developer to call setEmojiReaction with. * @@ -4555,7 +4756,7 @@ declare class ZoomSdk { */ getEmojiConfiguration(): Promise; /** - * @zoomClientVersion 5.14.5 + * @zoomDesktopClientVersion 5.14.5 * * Event fired when a participant reacts with an emoji. * @@ -4570,8 +4771,101 @@ declare class ZoomSdk { * @category Reactions */ onEmojiReaction(handler: GenericEventHandler): void; + /** + * @zoomRoomsClientVersion 5.14.5 + * @zoomZRCVersion 5.14.0 + * + * The API is available to apps running in Zoom Rooms. Returns information about the current room and device in which the app is running. + * + * *Running context*: inDigitalSignage, inMeeting, inMainClient, inWebinar + * + * *Supported roles*: Host, Co-Host, Participant, Panelist + * + * *Supports Guest Mode*: No + * + * *product*: digitalSignage, zoomRoomController + * + * ``` + * await zoomSdk.getZoomRoomContext() + * ``` + * + * @category Zoom Rooms + */ + getZoomRoomContext(): Promise; + /** + * @zoomZRCVersion 5.14.0 + * + * This API allows apps running on Zoom Room Controllers to request configuration credentials for in-room control processors. + * + * *Running context*: inMeeting, inMainClient, inWebinar + * + * *Supported roles*: Host, Co-Host, Participant, Panelist + * + * *Supports Guest Mode*: No + * + * *product*: zoomRoomController + * + * @category Zoom Rooms + */ + getZoomRoomControllerCredentials(): Promise; + /** + * @zoomDesktopClientVersion 5.14.10 + * + * For participants, leave the meeting while it continues for the other participants. + * + * For hosts only, assign another participant or co-host to be the new host and leave. + * + * *Running context*: inMeeting, inImmersive, inWebinar, inCollaborate, inCamera, inMainClient + * + * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee + * + * *Supports Guest Mode*: Yes (applicable to participants only) + * + * *Product*: Desktop + * + * @category Meeting Actions + */ + leaveMeeting(options?: LeaveMeetingOptions): Promise; + /** + * @zoomDesktopClientVersion 5.14.10 + * + * Join specified meeting, or a new meeting when unspecified. The app is open when the meeting starts. + * + * If a participant is in an ongoing meeting, leave the current meeting, then join specified meeting, or a new meeting when unspecified (logged in participants). + * + * For hosts in meetings, assign another participant or co-host to be the new host, leave the meeting, then join specified meeting, or a new meeting when unspecified (and user is logged in). + * + * If a participant joins a webinar where they are an attendee, the app will not open because Zoom Apps are not supported for attendees in webinars. + * + * *Running context*: inMeeting, inImmersive, inWebinar, inCollaborate, inCamera, inMainClient + * + * *Supported roles*: Host, Co-Host, Participant, Panelist, Attendee + * + * *Supports Guest Mode*: Yes (applicable to participants only) + * + * *Product*: Desktop + * + * @category Meeting Actions + */ + joinMeeting(options?: JoinMeetingOptions): Promise; + /** + * @zoomDesktopClientVersion 5.14.10 + * + * Allows hosts and co-hosts to ask specified meeting participants to turn on or off video. When enabling video, method will return success if the request to enable video was sent; participants still can decline the prompt. + * + * *Running context*: inMeeting, inWebinar + * + * *Supported roles*: Host, Co-Host + * + * *Supports Guest Mode*: yes + * + * *product*: desktop + * + * @category Meeting Actions + */ + toggleParticipantMediaVideo(options: ToggleParticipantMediaVideoOptions): Promise; } declare const _default: ZoomSdk; -export { AddBreakoutRoomOptions, AddParticipantSpotlightOptions, AllowParticipantToRecordOptions, Apis, AppInvitationResponse, AssignParticipantToBreakoutRoomOptions, AttendeeSpeakingOptions, AudioMedia, AuthObject, AuthorizeOptions, BreakOutRoomParticipant, BreakoutRoomAssignmentMethods, BreakoutRoomsCreated, BreakoutRoomsParticipantsAssigned, BreakoutRoomsParticipantsJoined, BreakoutRoomsParticipantsLeft, BreakoutRoomsResponse, BreakoutRoomsUpdated, BroadcastVoiceToBreakoutRoomsOptions, ChangeBreakoutRoomOptions, ClearImageOptions, ClearParticipantOptions, ClearWebViewOptions, CloudRecordingOptions, ComposeCardOptions, ConfigOptions, ConfigResponse, ConfigSize, ConfigureBreakoutRoomsOptions, ConfigureBreakoutRoomsResponse, CreateBreakoutRoomsOptions, DecryptedAppContextResponse, DrawImageOptions, DrawImageResponse, DrawParticipantOptions, DrawWebViewOptions, EmojiOptions, ExpandAppOptions, FeedbackReactionOptions, FeedbackReactions, GeneralMessage, GeneralMessageResponse, GenericEventHandler, GetAppContextResponse, GetAudioSettingsResponse, GetAudioStateResponse, GetChatContextResponse, GetEmojiConfigurationResponse, GetGalleryPageResponse, GetIncomingParticipantAudioStateOptions, GetIncomingParticipantAudioStateResponse, GetMeetingContextResponse, GetMeetingJoinUrlResponse, GetMeetingParticipantsResponse, GetMeetingUUIDResponse, GetMeetingViewResponse, GetParticipantSpotlightsResponse, GetRecordingContextResponse, GetSupportedJsApisResponse, GetUserContextResponse, GetVideoSettingsResponse, GetVideoStateResponse, JSONObject, JSONValue, LaunchAppInMeetingOptions, ListCamerasResponse, MeetingView, NativeApiRequest, NativeApiRequestData, NativeApiResponseData, NativeConfigOptions, NativeMessage, NativeMessageData, NotificationOptions$1 as NotificationOptions, OnActiveSpeakerChangeEvent, OnActiveSpeakerChangeUserType, OnAppPopoutEvent, OnAuthorizedEvent, OnBreakoutRoomChangeEvent, OnCloudRecordingEvent, OnCollaborateChangeEvent, OnConnectEvent, OnEmojiReactionEvent, OnExpandAppEvent, OnFeedbackReactionEvent, OnGalleryPageChangeEvent, OnIncomingParticipantAudioChangeEvent, OnMeetingEvent, OnMeetingViewChangeEvent, OnMessageEvent, OnMyActiveSpeakerChangeEvent, OnMyMediaChangeEvent, OnMyReactionEvent, OnMyUserContextChangeEvent, OnParticipantChangeEvent, OnParticipantChangeParticipantType, OnReactionEvent, OnRemoveFeedbackReactionEvent, OnRenderedAppOpenedEvent, OnRunningContextChangeEvent, OnSendAppInvitationEvent, OnShareAppEvent, OnShareComputerAudioEvent, OnShareScreenEvent, OpenUrlOptions, Participant, ParticipantCutoutShape, ParticipantPinOptions, PixelValue, PromptShareScreenOptions, RemoveParticipantSpotlightsOptions, RemoveWebinarAttendeeOptions, RenameBreakoutRoomOptions, RenderingContextView, RunRenderingContextOptions, RunningContext, RunningContextResponse, SdkOptions, SdkVersion, SendAppInvitationOptions, SetAudioSettingsOptions, SetAudioStateOptions, SetCameraOptions, SetEmojiReactionOptions, SetGalleryPageOptions, SetIncomingParticipantAudioStateOptions, SetMeetingViewOptions, SetScreenNameOptions, SetVideoFilterOptions, SetVideoMirrorEffectOptions, SetVideoSettingsOptions, SetVideoStateOptions, ShareAppOptions, ShareComputerAudioOptions, StartCollaborateOptions, ToggleParticipantMediaAudioOptions, Uuid, VideoMedia, VirtualBackgroundOptions, VirtualForegroundOptions, _default as default, onMeetingConfigChangedEvent, setParticipantScreenNameOptions }; +export { AddBreakoutRoomOptions, AddParticipantSpotlightOptions, AllowParticipantToRecordOptions, Apis, AppInvitationResponse, AssignParticipantToBreakoutRoomOptions, AttendeeSpeakingOptions, AudioMedia, AuthObject, AuthorizeOptions, BreakOutRoomParticipant, BreakoutRoomAssignmentMethods, BreakoutRoomsCreated, BreakoutRoomsParticipantsAssigned, BreakoutRoomsParticipantsJoined, BreakoutRoomsParticipantsLeft, BreakoutRoomsResponse, BreakoutRoomsUpdated, BroadcastVoiceToBreakoutRoomsOptions, ChangeBreakoutRoomOptions, ClearImageOptions, ClearParticipantOptions, ClearWebViewOptions, CloudRecordingOptions, ComposeCardOptions, ConfigOptions, ConfigResponse, ConfigSize, ConfigureBreakoutRoomsOptions, ConfigureBreakoutRoomsResponse, CreateBreakoutRoomsOptions, DecryptedAppContextResponse, DrawImageOptions, DrawImageResponse, DrawParticipantOptions, DrawWebViewOptions, EmojiOptions, ExpandAppOptions, FeedbackReactionOptions, FeedbackReactions, GeneralMessage, GeneralMessageResponse, GenericEventHandler, GetAppContextResponse, GetAudioSettingsResponse, GetAudioStateResponse, GetChatContextResponse, GetEmojiConfigurationResponse, GetGalleryOrderListResponse, GetGalleryPageResponse, GetIncomingParticipantAudioStateOptions, GetIncomingParticipantAudioStateResponse, GetMeetingContextResponse, GetMeetingJoinUrlResponse, GetMeetingParticipantsResponse, GetMeetingUUIDResponse, GetMeetingViewResponse, GetParticipantSpotlightsResponse, GetRecordingContextResponse, GetSupportedJsApisResponse, GetUserContextResponse, GetVideoSettingsResponse, GetVideoStateResponse, GetZoomRoomContextResponse, GetZoomRoomControllerCredentialsResponse, JSONObject, JSONValue, JoinMeetingOptions, LaunchAppInMeetingOptions, LeaveMeetingOptions, ListCamerasResponse, MeetingView, NativeApiRequest, NativeApiRequestData, NativeApiResponseData, NativeConfigOptions, NativeMessage, NativeMessageData, NotificationOptions$1 as NotificationOptions, OnActiveSpeakerChangeEvent, OnActiveSpeakerChangeUserType, OnAppPopoutEvent, OnAuthorizedEvent, OnBreakoutRoomChangeEvent, OnCloudRecordingEvent, OnCollaborateChangeEvent, OnConnectEvent, OnEmojiReactionEvent, OnExpandAppEvent, OnFeedbackReactionEvent, OnGalleryOrderEvent, OnGalleryPageChangeEvent, OnIncomingParticipantAudioChangeEvent, OnMeetingEvent, OnMeetingViewChangeEvent, OnMessageEvent, OnMyActiveSpeakerChangeEvent, OnMyMediaChangeEvent, OnMyReactionEvent, OnMyUserContextChangeEvent, OnParticipantChangeEvent, OnParticipantChangeParticipantType, OnReactionEvent, OnRemoveFeedbackReactionEvent, OnRenderedAppOpenedEvent, OnRunningContextChangeEvent, OnSendAppInvitationEvent, OnShareAppEvent, OnShareComputerAudioEvent, OnShareScreenEvent, OpenUrlOptions, Participant, ParticipantCutoutShape, ParticipantPinOptions, PixelValue, PromptShareScreenOptions, RemoveParticipantSpotlightsOptions, RemoveWebinarAttendeeOptions, RenameBreakoutRoomOptions, RenderingContextView, RunRenderingContextOptions, RunningContext, RunningContextResponse, SdkOptions, SdkVersion, SendAppInvitationOptions, SetAudioSettingsOptions, SetAudioStateOptions, SetCameraOptions, SetEmojiReactionOptions, SetGalleryPageOptions, SetIncomingParticipantAudioStateOptions, SetMeetingViewOptions, SetScreenNameOptions, SetVideoFilterOptions, SetVideoMirrorEffectOptions, SetVideoSettingsOptions, SetVideoStateOptions, ShareAppOptions, ShareComputerAudioOptions, StartCollaborateOptions, ToggleParticipantMediaAudioOptions, ToggleParticipantMediaVideoOptions, Uuid, VideoMedia, VirtualBackgroundOptions, VirtualForegroundOptions, _default as default, onMeetingConfigChangedEvent, setParticipantScreenNameOptions }; diff --git a/dist/sdk.es.js b/dist/sdk.es.js index 28ac155..81917cd 100644 --- a/dist/sdk.es.js +++ b/dist/sdk.es.js @@ -1,4 +1,4 @@ -/* Zoom Apps SDK v0.16.12 */ +/* Zoom Apps SDK v0.16.13 */ /** * Copyright (c) 2023 Zoom Video Communications, Inc. * @@ -21,7 +21,7 @@ * SOFTWARE. */ -var version = "0.16.12"; +var version = "0.16.13"; var extendStatics = function(d, b) { extendStatics = Object.setPrototypeOf || @@ -226,6 +226,7 @@ var NativeApis; NativeApis["COMPOSE_CARD"] = "composeCard"; NativeApis["BROADCAST_VOICE_TO_BREAKOUT_ROOMS"] = "broadcastVoiceToBreakoutRooms"; NativeApis["STOP_SHARE_SCREEN"] = "stopShareScreen"; + NativeApis["GET_GALLERY_ORDER_LIST"] = "getGalleryOrderList"; NativeApis["SET_SCREEN_NAME"] = "setScreenName"; NativeApis["SET_PARTICIPANT_SCREEN_NAME"] = "setParticipantScreenName"; NativeApis["SET_EMOJI_REACTION"] = "setEmojiReaction"; @@ -234,6 +235,11 @@ var NativeApis; NativeApis["SET_MEETING_VIEW"] = "setMeetingView"; NativeApis["SET_VIDEO_FILTER"] = "setVideoFilter"; NativeApis["DELETE_VIDEO_FILTER"] = "deleteVideoFilter"; + NativeApis["LEAVE_MEETING"] = "leaveMeeting"; + NativeApis["JOIN_MEETING"] = "joinMeeting"; + NativeApis["GET_ZOOM_ROOM_CONTEXT"] = "getZoomRoomContext"; + NativeApis["GET_ZOOM_ROOM_CONTROLLER_CREDENTIALS"] = "getZoomRoomControllerCredentials"; + NativeApis["TOGGLE_PARTICIPANT_MEDIA_VIDEO"] = "toggleParticipantMediaVideo"; })(NativeApis || (NativeApis = {})); var NativeEvents; (function (NativeEvents) { @@ -266,6 +272,7 @@ var NativeEvents; NativeEvents["ON_INCOMING_PARTICIPANT_AUDIO_CHANGE"] = "onIncomingParticipantAudioChange"; NativeEvents["ON_SHARE_SCREEN"] = "onShareScreen"; NativeEvents["ON_SHARE_COMPUTER_AUDIO"] = "onShareComputerAudio"; + NativeEvents["ON_GALLERY_ORDER"] = "onGalleryOrder"; NativeEvents["ON_EMOJI_REACTION"] = "onEmojiReaction"; NativeEvents["ON_MEETING_VIEW_CHANGE"] = "onMeetingViewChange"; })(NativeEvents || (NativeEvents = {})); @@ -446,6 +453,15 @@ function renameKeys(keyMap) { return data; }; } +function mapJoinMeetingInputs() { + return function (options) { + var _a, _b; + var updatedInputs = { joinURL: '', newHost: '' }; + updatedInputs.joinURL = (_a = options.joinURL) !== null && _a !== void 0 ? _a : ''; + updatedInputs.newHost = (_b = options.newHost) !== null && _b !== void 0 ? _b : ''; + return updatedInputs; + }; +} function wrapInObject(_a) { var _b; var key = _a.key, value = _a.value; @@ -457,7 +473,7 @@ function wrapInMessageObject(value) { return value; } -var _a$2, _b$1, _c$1, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91, _92, _93, _94, _95, _96, _97, _98, _99, _100, _101, _102, _103, _104, _105, _106, _107; +var _a$2, _b$1, _c$1, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91, _92, _93, _94, _95, _96, _97, _98, _99, _100, _101, _102, _103, _104, _105, _106, _107, _108, _109, _110, _111, _112, _113; var compatibilityFnsApis = (_a$2 = {}, _a$2[NativeApis.SEND_APP_INVITATION] = (_b$1 = {}, _b$1[ZERO_SIXTEEN] = (_c$1 = {}, @@ -480,376 +496,377 @@ var compatibilityFnsApis = (_a$2 = {}, }, _e), _d), - _a$2[NativeApis.GET_RUNNING_CONTEXT] = (_f = {}, + _a$2[NativeApis.JOIN_MEETING] = (_f = {}, _f[ZERO_SIXTEEN] = (_g = {}, _g[BASE_VERSION] = { + mapInput: mapJoinMeetingInputs(), mapOutput: function (value) { - return wrapInObject({ key: 'context', value: value }); + return wrapInObject({ key: 'message', value: value }); }, }, _g), _f), - _a$2[NativeApis.OPEN_URL] = (_h = {}, - _h[ZERO_FOURTEEN] = (_j = {}, + _a$2[NativeApis.GET_RUNNING_CONTEXT] = (_h = {}, + _h[ZERO_SIXTEEN] = (_j = {}, _j[BASE_VERSION] = { - validate: function (data) { - new URL(data.url); + mapOutput: function (value) { + return wrapInObject({ key: 'context', value: value }); }, }, _j), - _h[ZERO_SIXTEEN] = (_k = {}, - _k[BASE_VERSION] = { - mapOutput: function (value) { return wrapInMessageObject(value); }, + _h), + _a$2[NativeApis.OPEN_URL] = (_k = {}, + _k[ZERO_FOURTEEN] = (_l = {}, + _l[BASE_VERSION] = { validate: function (data) { new URL(data.url); }, }, - _k), - _h), - _a$2[NativeApis.SET_VIRTUAL_BACKGROUND] = (_l = {}, - _l[ZERO_SIXTEEN] = (_m = {}, + _l), + _k[ZERO_SIXTEEN] = (_m = {}, _m[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, + validate: function (data) { + new URL(data.url); + }, }, _m), - _l), - _a$2[NativeApis.REMOVE_VIRTUAL_BACKGROUND] = (_o = {}, + _k), + _a$2[NativeApis.SET_VIRTUAL_BACKGROUND] = (_o = {}, _o[ZERO_SIXTEEN] = (_p = {}, _p[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _p), _o), - _a$2[NativeApis.SET_VIRTUAL_FOREGROUND] = (_q = {}, + _a$2[NativeApis.REMOVE_VIRTUAL_BACKGROUND] = (_q = {}, _q[ZERO_SIXTEEN] = (_r = {}, _r[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _r), _q), - _a$2[NativeApis.REMOVE_VIRTUAL_FOREGROUND] = (_s = {}, + _a$2[NativeApis.SET_VIRTUAL_FOREGROUND] = (_s = {}, _s[ZERO_SIXTEEN] = (_t = {}, _t[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _t), _s), - _a$2[NativeApis.SHOW_NOTIFICATION] = (_u = {}, + _a$2[NativeApis.REMOVE_VIRTUAL_FOREGROUND] = (_u = {}, _u[ZERO_SIXTEEN] = (_v = {}, _v[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _v), _u), - _a$2[NativeApis.CLOUD_RECORDING] = (_w = {}, + _a$2[NativeApis.SHOW_NOTIFICATION] = (_w = {}, _w[ZERO_SIXTEEN] = (_x = {}, _x[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _x), _w), - _a$2[NativeApis.SHARE_APP] = (_y = {}, + _a$2[NativeApis.CLOUD_RECORDING] = (_y = {}, _y[ZERO_SIXTEEN] = (_z = {}, _z[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _z), _y), - _a$2[NativeApis.SET_CAMERA] = (_0 = {}, + _a$2[NativeApis.SHARE_APP] = (_0 = {}, _0[ZERO_SIXTEEN] = (_1 = {}, _1[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _1), _0), - _a$2[NativeApis.SET_VIDEO_MIRROR_EFFECT] = (_2 = {}, + _a$2[NativeApis.SET_CAMERA] = (_2 = {}, _2[ZERO_SIXTEEN] = (_3 = {}, _3[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _3), _2), - _a$2[NativeApis.EXPAND_APP] = (_4 = {}, + _a$2[NativeApis.SET_VIDEO_MIRROR_EFFECT] = (_4 = {}, _4[ZERO_SIXTEEN] = (_5 = {}, _5[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _5), _4), - _a$2[NativeApis.CONNECT] = (_6 = {}, + _a$2[NativeApis.EXPAND_APP] = (_6 = {}, _6[ZERO_SIXTEEN] = (_7 = {}, _7[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _7), _6), - _a$2[NativeApis.POST_MESSAGE] = (_8 = {}, + _a$2[NativeApis.CONNECT] = (_8 = {}, _8[ZERO_SIXTEEN] = (_9 = {}, _9[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _9), _8), - _a$2[NativeApis.ALLOW_PARTICIPANT_TO_RECORD] = (_10 = {}, + _a$2[NativeApis.POST_MESSAGE] = (_10 = {}, _10[ZERO_SIXTEEN] = (_11 = {}, _11[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _11), _10), - _a$2[NativeApis.LAUNCH_APP_IN_MEETING] = (_12 = {}, + _a$2[NativeApis.ALLOW_PARTICIPANT_TO_RECORD] = (_12 = {}, _12[ZERO_SIXTEEN] = (_13 = {}, _13[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _13), _12), - _a$2[NativeApis.SHOW_APP_INVITATION_DIALOG] = (_14 = {}, + _a$2[NativeApis.LAUNCH_APP_IN_MEETING] = (_14 = {}, _14[ZERO_SIXTEEN] = (_15 = {}, _15[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _15), _14), - _a$2[NativeApis.RUN_RENDERING_CONTEXT] = (_16 = {}, + _a$2[NativeApis.SHOW_APP_INVITATION_DIALOG] = (_16 = {}, _16[ZERO_SIXTEEN] = (_17 = {}, _17[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _17), _16), - _a$2[NativeApis.CLOSE_RENDERING_CONTEXT] = (_18 = {}, + _a$2[NativeApis.RUN_RENDERING_CONTEXT] = (_18 = {}, _18[ZERO_SIXTEEN] = (_19 = {}, _19[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _19), _18), - _a$2[NativeApis.DRAW_PARTICIPANT] = (_20 = {}, + _a$2[NativeApis.CLOSE_RENDERING_CONTEXT] = (_20 = {}, _20[ZERO_SIXTEEN] = (_21 = {}, _21[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _21), _20), - _a$2[NativeApis.CLEAR_PARTICIPANT] = (_22 = {}, + _a$2[NativeApis.DRAW_PARTICIPANT] = (_22 = {}, _22[ZERO_SIXTEEN] = (_23 = {}, _23[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _23), _22), - _a$2[NativeApis.CLEAR_IMAGE] = (_24 = {}, + _a$2[NativeApis.CLEAR_PARTICIPANT] = (_24 = {}, _24[ZERO_SIXTEEN] = (_25 = {}, _25[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _25), _24), - _a$2[NativeApis.DRAW_WEBVIEW] = (_26 = {}, + _a$2[NativeApis.CLEAR_IMAGE] = (_26 = {}, _26[ZERO_SIXTEEN] = (_27 = {}, _27[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _27), _26), - _a$2[NativeApis.CLEAR_WEBVIEW] = (_28 = {}, + _a$2[NativeApis.DRAW_WEBVIEW] = (_28 = {}, _28[ZERO_SIXTEEN] = (_29 = {}, _29[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _29), _28), - _a$2[NativeApis.BREAKOUT_ROOMS_OPEN] = (_30 = {}, + _a$2[NativeApis.CLEAR_WEBVIEW] = (_30 = {}, _30[ZERO_SIXTEEN] = (_31 = {}, _31[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _31), _30), - _a$2[NativeApis.BREAKOUT_ROOMS_CLOSE] = (_32 = {}, + _a$2[NativeApis.BREAKOUT_ROOMS_OPEN] = (_32 = {}, _32[ZERO_SIXTEEN] = (_33 = {}, _33[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _33), _32), - _a$2[NativeApis.BREAKOUT_ROOM_DELETE] = (_34 = {}, + _a$2[NativeApis.BREAKOUT_ROOMS_CLOSE] = (_34 = {}, _34[ZERO_SIXTEEN] = (_35 = {}, _35[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _35), _34), - _a$2[NativeApis.BREAKOUT_ROOM_RENAME] = (_36 = {}, + _a$2[NativeApis.BREAKOUT_ROOM_DELETE] = (_36 = {}, _36[ZERO_SIXTEEN] = (_37 = {}, _37[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _37), _36), - _a$2[NativeApis.BREAKOUT_ROOM_ASSIGN_PARTICIPANT] = (_38 = {}, + _a$2[NativeApis.BREAKOUT_ROOM_RENAME] = (_38 = {}, _38[ZERO_SIXTEEN] = (_39 = {}, _39[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _39), _38), - _a$2[NativeApis.BREAKOUT_ROOM_CHANGE] = (_40 = {}, + _a$2[NativeApis.BREAKOUT_ROOM_ASSIGN_PARTICIPANT] = (_40 = {}, _40[ZERO_SIXTEEN] = (_41 = {}, _41[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _41), _40), - _a$2[NativeApis.COLLABORATE_START] = (_42 = {}, + _a$2[NativeApis.BREAKOUT_ROOM_CHANGE] = (_42 = {}, _42[ZERO_SIXTEEN] = (_43 = {}, _43[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _43), _42), - _a$2[NativeApis.COLLABORATE_END] = (_44 = {}, + _a$2[NativeApis.COLLABORATE_START] = (_44 = {}, _44[ZERO_SIXTEEN] = (_45 = {}, _45[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _45), _44), - _a$2[NativeApis.COLLABORATE_LEAVE] = (_46 = {}, + _a$2[NativeApis.COLLABORATE_END] = (_46 = {}, _46[ZERO_SIXTEEN] = (_47 = {}, _47[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _47), _46), - _a$2[NativeApis.COLLABORATE_JOIN] = (_48 = {}, + _a$2[NativeApis.COLLABORATE_LEAVE] = (_48 = {}, _48[ZERO_SIXTEEN] = (_49 = {}, _49[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _49), _48), - _a$2[NativeApis.AUTHORIZE] = (_50 = {}, + _a$2[NativeApis.COLLABORATE_JOIN] = (_50 = {}, _50[ZERO_SIXTEEN] = (_51 = {}, _51[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, - validate: function (data) { - if (!data.codeChallenge || typeof data.codeChallenge !== 'string') { - throw new Error('codeChallenge is required for zoomSdk.authorize'); - } - }, }, _51), _50), - _a$2[NativeApis.PROMPT_AUTHORIZE] = (_52 = {}, + _a$2[NativeApis.AUTHORIZE] = (_52 = {}, _52[ZERO_SIXTEEN] = (_53 = {}, _53[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, + validate: function (data) { + if (!data.codeChallenge || typeof data.codeChallenge !== 'string') { + throw new Error('codeChallenge is required for zoomSdk.authorize'); + } + }, }, _53), _52), - _a$2[NativeApis.SET_VIDEO_STATE] = (_54 = {}, + _a$2[NativeApis.PROMPT_AUTHORIZE] = (_54 = {}, _54[ZERO_SIXTEEN] = (_55 = {}, _55[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _55), _54), - _a$2[NativeApis.SET_AUDIO_STATE] = (_56 = {}, + _a$2[NativeApis.SET_VIDEO_STATE] = (_56 = {}, _56[ZERO_SIXTEEN] = (_57 = {}, _57[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _57), _56), - _a$2[NativeApis.SHARE_COMPUTER_AUDIO] = (_58 = {}, + _a$2[NativeApis.SET_AUDIO_STATE] = (_58 = {}, _58[ZERO_SIXTEEN] = (_59 = {}, _59[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _59), _58), - _a$2[NativeApis.ADD_PARTICIPANT_SPOTLIGHT] = (_60 = {}, + _a$2[NativeApis.SHARE_COMPUTER_AUDIO] = (_60 = {}, _60[ZERO_SIXTEEN] = (_61 = {}, _61[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _61), _60), - _a$2[NativeApis.REMOVE_PARTICIPANT_SPOTLIGHTS] = (_62 = {}, + _a$2[NativeApis.ADD_PARTICIPANT_SPOTLIGHT] = (_62 = {}, _62[ZERO_SIXTEEN] = (_63 = {}, _63[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _63), _62), - _a$2[NativeApis.ADD_PARTICIPANT_PINS] = (_64 = {}, + _a$2[NativeApis.REMOVE_PARTICIPANT_SPOTLIGHTS] = (_64 = {}, _64[ZERO_SIXTEEN] = (_65 = {}, _65[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _65), _64), - _a$2[NativeApis.REMOVE_PARTICIPANT_PINS] = (_66 = {}, + _a$2[NativeApis.ADD_PARTICIPANT_PINS] = (_66 = {}, _66[ZERO_SIXTEEN] = (_67 = {}, _67[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _67), _66), - _a$2[NativeApis.ALLOW_ATTENDEES_TO_SPEAK] = (_68 = {}, + _a$2[NativeApis.REMOVE_PARTICIPANT_PINS] = (_68 = {}, _68[ZERO_SIXTEEN] = (_69 = {}, _69[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _69), _68), - _a$2[NativeApis.DISALLOW_ATTENDEES_TO_SPEAK] = (_70 = {}, + _a$2[NativeApis.ALLOW_ATTENDEES_TO_SPEAK] = (_70 = {}, _70[ZERO_SIXTEEN] = (_71 = {}, _71[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _71), _70), - _a$2[NativeApis.REMOVE_WEBINAR_ATTENDEES] = (_72 = {}, + _a$2[NativeApis.DISALLOW_ATTENDEES_TO_SPEAK] = (_72 = {}, _72[ZERO_SIXTEEN] = (_73 = {}, _73[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _73), _72), - _a$2[NativeApis.SET_FEEDBACK_REACTION] = (_74 = {}, + _a$2[NativeApis.REMOVE_WEBINAR_ATTENDEES] = (_74 = {}, _74[ZERO_SIXTEEN] = (_75 = {}, _75[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _75), _74), - _a$2[NativeApis.REMOVE_FEEDBACK_REACTION] = (_76 = {}, + _a$2[NativeApis.SET_FEEDBACK_REACTION] = (_76 = {}, _76[ZERO_SIXTEEN] = (_77 = {}, _77[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _77), _76), - _a$2[NativeApis.REMOVE_ALL_FEEDBACK_REACTION] = (_78 = {}, + _a$2[NativeApis.REMOVE_FEEDBACK_REACTION] = (_78 = {}, _78[ZERO_SIXTEEN] = (_79 = {}, _79[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _79), _78), - _a$2[NativeApis.SET_INCOMING_PARTICIPANT_AUDIO_STATE] = (_80 = {}, + _a$2[NativeApis.REMOVE_ALL_FEEDBACK_REACTION] = (_80 = {}, _80[ZERO_SIXTEEN] = (_81 = {}, _81[BASE_VERSION] = { - mapOutput: function (value) { - return wrapInObject({ key: 'message', value: value }); - }, + mapOutput: function (value) { return wrapInMessageObject(value); }, }, _81), _80), - _a$2[NativeApis.SET_VIDEO_SETTINGS] = (_82 = {}, + _a$2[NativeApis.SET_INCOMING_PARTICIPANT_AUDIO_STATE] = (_82 = {}, _82[ZERO_SIXTEEN] = (_83 = {}, _83[BASE_VERSION] = { mapOutput: function (value) { @@ -858,7 +875,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _83), _82), - _a$2[NativeApis.SET_AUDIO_SETTINGS] = (_84 = {}, + _a$2[NativeApis.SET_VIDEO_SETTINGS] = (_84 = {}, _84[ZERO_SIXTEEN] = (_85 = {}, _85[BASE_VERSION] = { mapOutput: function (value) { @@ -867,7 +884,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _85), _84), - _a$2[NativeApis.PROMPT_SHARE_SCREEN] = (_86 = {}, + _a$2[NativeApis.SET_AUDIO_SETTINGS] = (_86 = {}, _86[ZERO_SIXTEEN] = (_87 = {}, _87[BASE_VERSION] = { mapOutput: function (value) { @@ -876,7 +893,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _87), _86), - _a$2[NativeApis.GALLERY_PAGE_SET] = (_88 = {}, + _a$2[NativeApis.PROMPT_SHARE_SCREEN] = (_88 = {}, _88[ZERO_SIXTEEN] = (_89 = {}, _89[BASE_VERSION] = { mapOutput: function (value) { @@ -885,7 +902,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _89), _88), - _a$2[NativeApis.SHOW_MEETING_INVITATION_DIALOG] = (_90 = {}, + _a$2[NativeApis.GALLERY_PAGE_SET] = (_90 = {}, _90[ZERO_SIXTEEN] = (_91 = {}, _91[BASE_VERSION] = { mapOutput: function (value) { @@ -894,7 +911,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _91), _90), - _a$2[NativeApis.STOP_SHARE_SCREEN] = (_92 = {}, + _a$2[NativeApis.SHOW_MEETING_INVITATION_DIALOG] = (_92 = {}, _92[ZERO_SIXTEEN] = (_93 = {}, _93[BASE_VERSION] = { mapOutput: function (value) { @@ -903,7 +920,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _93), _92), - _a$2[NativeApis.BROADCAST_VOICE_TO_BREAKOUT_ROOMS] = (_94 = {}, + _a$2[NativeApis.STOP_SHARE_SCREEN] = (_94 = {}, _94[ZERO_SIXTEEN] = (_95 = {}, _95[BASE_VERSION] = { mapOutput: function (value) { @@ -912,7 +929,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _95), _94), - _a$2[NativeApis.SET_VIDEO_FILTER] = (_96 = {}, + _a$2[NativeApis.BROADCAST_VOICE_TO_BREAKOUT_ROOMS] = (_96 = {}, _96[ZERO_SIXTEEN] = (_97 = {}, _97[BASE_VERSION] = { mapOutput: function (value) { @@ -921,7 +938,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _97), _96), - _a$2[NativeApis.DELETE_VIDEO_FILTER] = (_98 = {}, + _a$2[NativeApis.SET_VIDEO_FILTER] = (_98 = {}, _98[ZERO_SIXTEEN] = (_99 = {}, _99[BASE_VERSION] = { mapOutput: function (value) { @@ -930,7 +947,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _99), _98), - _a$2[NativeApis.SET_MEETING_VIEW] = (_100 = {}, + _a$2[NativeApis.DELETE_VIDEO_FILTER] = (_100 = {}, _100[ZERO_SIXTEEN] = (_101 = {}, _101[BASE_VERSION] = { mapOutput: function (value) { @@ -939,7 +956,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _101), _100), - _a$2[NativeApis.SET_EMOJI_REACTION] = (_102 = {}, + _a$2[NativeApis.SET_MEETING_VIEW] = (_102 = {}, _102[ZERO_SIXTEEN] = (_103 = {}, _103[BASE_VERSION] = { mapOutput: function (value) { @@ -948,7 +965,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _103), _102), - _a$2[NativeApis.SET_SCREEN_NAME] = (_104 = {}, + _a$2[NativeApis.SET_EMOJI_REACTION] = (_104 = {}, _104[ZERO_SIXTEEN] = (_105 = {}, _105[BASE_VERSION] = { mapOutput: function (value) { @@ -957,7 +974,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _105), _104), - _a$2[NativeApis.SET_PARTICIPANT_SCREEN_NAME] = (_106 = {}, + _a$2[NativeApis.SET_SCREEN_NAME] = (_106 = {}, _106[ZERO_SIXTEEN] = (_107 = {}, _107[BASE_VERSION] = { mapOutput: function (value) { @@ -966,6 +983,33 @@ var compatibilityFnsApis = (_a$2 = {}, }, _107), _106), + _a$2[NativeApis.SET_PARTICIPANT_SCREEN_NAME] = (_108 = {}, + _108[ZERO_SIXTEEN] = (_109 = {}, + _109[BASE_VERSION] = { + mapOutput: function (value) { + return wrapInObject({ key: 'message', value: value }); + }, + }, + _109), + _108), + _a$2[NativeApis.LEAVE_MEETING] = (_110 = {}, + _110[ZERO_SIXTEEN] = (_111 = {}, + _111[BASE_VERSION] = { + mapOutput: function (value) { + return wrapInObject({ key: 'message', value: value }); + }, + }, + _111), + _110), + _a$2[NativeApis.TOGGLE_PARTICIPANT_MEDIA_VIDEO] = (_112 = {}, + _112[ZERO_SIXTEEN] = (_113 = {}, + _113[BASE_VERSION] = { + mapOutput: function (value) { + return wrapInObject({ key: 'message', value: value }); + }, + }, + _113), + _112), _a$2); var _a$1, _b, _c; @@ -1579,6 +1623,9 @@ var ZoomSdk = (function () { ZoomSdk.prototype.onGalleryPageChange = function (handler) { this.addEventListener(NativeEvents.ON_GALLERY_PAGE_CHANGE, handler); }; + ZoomSdk.prototype.onGalleryOrder = function (handler) { + this.addEventListener(NativeEvents.ON_GALLERY_ORDER, handler); + }; ZoomSdk.prototype.addEventListener = function (event, handler) { if (!this._clientVersion || !this._version) { console.warn('Must call zoomSdk.config before adding an event listener. This will become a thrown error in a future version of the sdk'); @@ -1930,6 +1977,13 @@ var ZoomSdk = (function () { }); }); }; + ZoomSdk.prototype.getGalleryOrderList = function () { + return __awaiter(this, void 0, void 0, function () { + return __generator(this, function (_a) { + return [2 , this.callZoomApi(NativeApis.GET_GALLERY_ORDER_LIST)]; + }); + }); + }; ZoomSdk.prototype.stopShareScreen = function () { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { @@ -1999,6 +2053,35 @@ var ZoomSdk = (function () { ZoomSdk.prototype.onEmojiReaction = function (handler) { this.addEventListener(NativeEvents.ON_EMOJI_REACTION, handler); }; + ZoomSdk.prototype.getZoomRoomContext = function () { + return __awaiter(this, void 0, void 0, function () { + return __generator(this, function (_a) { + return [2 , this.callZoomApi(NativeApis.GET_ZOOM_ROOM_CONTEXT)]; + }); + }); + }; + ZoomSdk.prototype.getZoomRoomControllerCredentials = function () { + return __awaiter(this, void 0, void 0, function () { + return __generator(this, function (_a) { + return [2 , this.callZoomApi(NativeApis.GET_ZOOM_ROOM_CONTROLLER_CREDENTIALS)]; + }); + }); + }; + ZoomSdk.prototype.leaveMeeting = function (options) { + var emptyInput = { newHost: '' }; + return this.callZoomApi(NativeApis.LEAVE_MEETING, options !== null && options !== void 0 ? options : emptyInput); + }; + ZoomSdk.prototype.joinMeeting = function (options) { + var emptyInput = { joinURL: '', newHost: '' }; + return this.callZoomApi(NativeApis.JOIN_MEETING, options !== null && options !== void 0 ? options : emptyInput); + }; + ZoomSdk.prototype.toggleParticipantMediaVideo = function (options) { + return __awaiter(this, void 0, void 0, function () { + return __generator(this, function (_a) { + return [2 , this.callZoomApi(NativeApis.TOGGLE_PARTICIPANT_MEDIA_VIDEO, options)]; + }); + }); + }; return ZoomSdk; }()); function getJsCallId() { diff --git a/dist/sdk.module.js b/dist/sdk.module.js index 0d7dc1a..e184d1e 100644 --- a/dist/sdk.module.js +++ b/dist/sdk.module.js @@ -1,4 +1,4 @@ -/* Zoom Apps SDK v0.16.12 */ +/* Zoom Apps SDK v0.16.13 */ /** * Copyright (c) 2023 Zoom Video Communications, Inc. * @@ -23,7 +23,7 @@ 'use strict'; -var version = "0.16.12"; +var version = "0.16.13"; var extendStatics = function(d, b) { extendStatics = Object.setPrototypeOf || @@ -228,6 +228,7 @@ var NativeApis; NativeApis["COMPOSE_CARD"] = "composeCard"; NativeApis["BROADCAST_VOICE_TO_BREAKOUT_ROOMS"] = "broadcastVoiceToBreakoutRooms"; NativeApis["STOP_SHARE_SCREEN"] = "stopShareScreen"; + NativeApis["GET_GALLERY_ORDER_LIST"] = "getGalleryOrderList"; NativeApis["SET_SCREEN_NAME"] = "setScreenName"; NativeApis["SET_PARTICIPANT_SCREEN_NAME"] = "setParticipantScreenName"; NativeApis["SET_EMOJI_REACTION"] = "setEmojiReaction"; @@ -236,6 +237,11 @@ var NativeApis; NativeApis["SET_MEETING_VIEW"] = "setMeetingView"; NativeApis["SET_VIDEO_FILTER"] = "setVideoFilter"; NativeApis["DELETE_VIDEO_FILTER"] = "deleteVideoFilter"; + NativeApis["LEAVE_MEETING"] = "leaveMeeting"; + NativeApis["JOIN_MEETING"] = "joinMeeting"; + NativeApis["GET_ZOOM_ROOM_CONTEXT"] = "getZoomRoomContext"; + NativeApis["GET_ZOOM_ROOM_CONTROLLER_CREDENTIALS"] = "getZoomRoomControllerCredentials"; + NativeApis["TOGGLE_PARTICIPANT_MEDIA_VIDEO"] = "toggleParticipantMediaVideo"; })(NativeApis || (NativeApis = {})); var NativeEvents; (function (NativeEvents) { @@ -268,6 +274,7 @@ var NativeEvents; NativeEvents["ON_INCOMING_PARTICIPANT_AUDIO_CHANGE"] = "onIncomingParticipantAudioChange"; NativeEvents["ON_SHARE_SCREEN"] = "onShareScreen"; NativeEvents["ON_SHARE_COMPUTER_AUDIO"] = "onShareComputerAudio"; + NativeEvents["ON_GALLERY_ORDER"] = "onGalleryOrder"; NativeEvents["ON_EMOJI_REACTION"] = "onEmojiReaction"; NativeEvents["ON_MEETING_VIEW_CHANGE"] = "onMeetingViewChange"; })(NativeEvents || (NativeEvents = {})); @@ -448,6 +455,15 @@ function renameKeys(keyMap) { return data; }; } +function mapJoinMeetingInputs() { + return function (options) { + var _a, _b; + var updatedInputs = { joinURL: '', newHost: '' }; + updatedInputs.joinURL = (_a = options.joinURL) !== null && _a !== void 0 ? _a : ''; + updatedInputs.newHost = (_b = options.newHost) !== null && _b !== void 0 ? _b : ''; + return updatedInputs; + }; +} function wrapInObject(_a) { var _b; var key = _a.key, value = _a.value; @@ -459,7 +475,7 @@ function wrapInMessageObject(value) { return value; } -var _a$2, _b$1, _c$1, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91, _92, _93, _94, _95, _96, _97, _98, _99, _100, _101, _102, _103, _104, _105, _106, _107; +var _a$2, _b$1, _c$1, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91, _92, _93, _94, _95, _96, _97, _98, _99, _100, _101, _102, _103, _104, _105, _106, _107, _108, _109, _110, _111, _112, _113; var compatibilityFnsApis = (_a$2 = {}, _a$2[NativeApis.SEND_APP_INVITATION] = (_b$1 = {}, _b$1[ZERO_SIXTEEN] = (_c$1 = {}, @@ -482,376 +498,377 @@ var compatibilityFnsApis = (_a$2 = {}, }, _e), _d), - _a$2[NativeApis.GET_RUNNING_CONTEXT] = (_f = {}, + _a$2[NativeApis.JOIN_MEETING] = (_f = {}, _f[ZERO_SIXTEEN] = (_g = {}, _g[BASE_VERSION] = { + mapInput: mapJoinMeetingInputs(), mapOutput: function (value) { - return wrapInObject({ key: 'context', value: value }); + return wrapInObject({ key: 'message', value: value }); }, }, _g), _f), - _a$2[NativeApis.OPEN_URL] = (_h = {}, - _h[ZERO_FOURTEEN] = (_j = {}, + _a$2[NativeApis.GET_RUNNING_CONTEXT] = (_h = {}, + _h[ZERO_SIXTEEN] = (_j = {}, _j[BASE_VERSION] = { - validate: function (data) { - new URL(data.url); + mapOutput: function (value) { + return wrapInObject({ key: 'context', value: value }); }, }, _j), - _h[ZERO_SIXTEEN] = (_k = {}, - _k[BASE_VERSION] = { - mapOutput: function (value) { return wrapInMessageObject(value); }, + _h), + _a$2[NativeApis.OPEN_URL] = (_k = {}, + _k[ZERO_FOURTEEN] = (_l = {}, + _l[BASE_VERSION] = { validate: function (data) { new URL(data.url); }, }, - _k), - _h), - _a$2[NativeApis.SET_VIRTUAL_BACKGROUND] = (_l = {}, - _l[ZERO_SIXTEEN] = (_m = {}, + _l), + _k[ZERO_SIXTEEN] = (_m = {}, _m[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, + validate: function (data) { + new URL(data.url); + }, }, _m), - _l), - _a$2[NativeApis.REMOVE_VIRTUAL_BACKGROUND] = (_o = {}, + _k), + _a$2[NativeApis.SET_VIRTUAL_BACKGROUND] = (_o = {}, _o[ZERO_SIXTEEN] = (_p = {}, _p[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _p), _o), - _a$2[NativeApis.SET_VIRTUAL_FOREGROUND] = (_q = {}, + _a$2[NativeApis.REMOVE_VIRTUAL_BACKGROUND] = (_q = {}, _q[ZERO_SIXTEEN] = (_r = {}, _r[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _r), _q), - _a$2[NativeApis.REMOVE_VIRTUAL_FOREGROUND] = (_s = {}, + _a$2[NativeApis.SET_VIRTUAL_FOREGROUND] = (_s = {}, _s[ZERO_SIXTEEN] = (_t = {}, _t[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _t), _s), - _a$2[NativeApis.SHOW_NOTIFICATION] = (_u = {}, + _a$2[NativeApis.REMOVE_VIRTUAL_FOREGROUND] = (_u = {}, _u[ZERO_SIXTEEN] = (_v = {}, _v[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _v), _u), - _a$2[NativeApis.CLOUD_RECORDING] = (_w = {}, + _a$2[NativeApis.SHOW_NOTIFICATION] = (_w = {}, _w[ZERO_SIXTEEN] = (_x = {}, _x[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _x), _w), - _a$2[NativeApis.SHARE_APP] = (_y = {}, + _a$2[NativeApis.CLOUD_RECORDING] = (_y = {}, _y[ZERO_SIXTEEN] = (_z = {}, _z[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _z), _y), - _a$2[NativeApis.SET_CAMERA] = (_0 = {}, + _a$2[NativeApis.SHARE_APP] = (_0 = {}, _0[ZERO_SIXTEEN] = (_1 = {}, _1[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _1), _0), - _a$2[NativeApis.SET_VIDEO_MIRROR_EFFECT] = (_2 = {}, + _a$2[NativeApis.SET_CAMERA] = (_2 = {}, _2[ZERO_SIXTEEN] = (_3 = {}, _3[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _3), _2), - _a$2[NativeApis.EXPAND_APP] = (_4 = {}, + _a$2[NativeApis.SET_VIDEO_MIRROR_EFFECT] = (_4 = {}, _4[ZERO_SIXTEEN] = (_5 = {}, _5[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _5), _4), - _a$2[NativeApis.CONNECT] = (_6 = {}, + _a$2[NativeApis.EXPAND_APP] = (_6 = {}, _6[ZERO_SIXTEEN] = (_7 = {}, _7[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _7), _6), - _a$2[NativeApis.POST_MESSAGE] = (_8 = {}, + _a$2[NativeApis.CONNECT] = (_8 = {}, _8[ZERO_SIXTEEN] = (_9 = {}, _9[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _9), _8), - _a$2[NativeApis.ALLOW_PARTICIPANT_TO_RECORD] = (_10 = {}, + _a$2[NativeApis.POST_MESSAGE] = (_10 = {}, _10[ZERO_SIXTEEN] = (_11 = {}, _11[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _11), _10), - _a$2[NativeApis.LAUNCH_APP_IN_MEETING] = (_12 = {}, + _a$2[NativeApis.ALLOW_PARTICIPANT_TO_RECORD] = (_12 = {}, _12[ZERO_SIXTEEN] = (_13 = {}, _13[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _13), _12), - _a$2[NativeApis.SHOW_APP_INVITATION_DIALOG] = (_14 = {}, + _a$2[NativeApis.LAUNCH_APP_IN_MEETING] = (_14 = {}, _14[ZERO_SIXTEEN] = (_15 = {}, _15[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _15), _14), - _a$2[NativeApis.RUN_RENDERING_CONTEXT] = (_16 = {}, + _a$2[NativeApis.SHOW_APP_INVITATION_DIALOG] = (_16 = {}, _16[ZERO_SIXTEEN] = (_17 = {}, _17[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _17), _16), - _a$2[NativeApis.CLOSE_RENDERING_CONTEXT] = (_18 = {}, + _a$2[NativeApis.RUN_RENDERING_CONTEXT] = (_18 = {}, _18[ZERO_SIXTEEN] = (_19 = {}, _19[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _19), _18), - _a$2[NativeApis.DRAW_PARTICIPANT] = (_20 = {}, + _a$2[NativeApis.CLOSE_RENDERING_CONTEXT] = (_20 = {}, _20[ZERO_SIXTEEN] = (_21 = {}, _21[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _21), _20), - _a$2[NativeApis.CLEAR_PARTICIPANT] = (_22 = {}, + _a$2[NativeApis.DRAW_PARTICIPANT] = (_22 = {}, _22[ZERO_SIXTEEN] = (_23 = {}, _23[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _23), _22), - _a$2[NativeApis.CLEAR_IMAGE] = (_24 = {}, + _a$2[NativeApis.CLEAR_PARTICIPANT] = (_24 = {}, _24[ZERO_SIXTEEN] = (_25 = {}, _25[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _25), _24), - _a$2[NativeApis.DRAW_WEBVIEW] = (_26 = {}, + _a$2[NativeApis.CLEAR_IMAGE] = (_26 = {}, _26[ZERO_SIXTEEN] = (_27 = {}, _27[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _27), _26), - _a$2[NativeApis.CLEAR_WEBVIEW] = (_28 = {}, + _a$2[NativeApis.DRAW_WEBVIEW] = (_28 = {}, _28[ZERO_SIXTEEN] = (_29 = {}, _29[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _29), _28), - _a$2[NativeApis.BREAKOUT_ROOMS_OPEN] = (_30 = {}, + _a$2[NativeApis.CLEAR_WEBVIEW] = (_30 = {}, _30[ZERO_SIXTEEN] = (_31 = {}, _31[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _31), _30), - _a$2[NativeApis.BREAKOUT_ROOMS_CLOSE] = (_32 = {}, + _a$2[NativeApis.BREAKOUT_ROOMS_OPEN] = (_32 = {}, _32[ZERO_SIXTEEN] = (_33 = {}, _33[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _33), _32), - _a$2[NativeApis.BREAKOUT_ROOM_DELETE] = (_34 = {}, + _a$2[NativeApis.BREAKOUT_ROOMS_CLOSE] = (_34 = {}, _34[ZERO_SIXTEEN] = (_35 = {}, _35[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _35), _34), - _a$2[NativeApis.BREAKOUT_ROOM_RENAME] = (_36 = {}, + _a$2[NativeApis.BREAKOUT_ROOM_DELETE] = (_36 = {}, _36[ZERO_SIXTEEN] = (_37 = {}, _37[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _37), _36), - _a$2[NativeApis.BREAKOUT_ROOM_ASSIGN_PARTICIPANT] = (_38 = {}, + _a$2[NativeApis.BREAKOUT_ROOM_RENAME] = (_38 = {}, _38[ZERO_SIXTEEN] = (_39 = {}, _39[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _39), _38), - _a$2[NativeApis.BREAKOUT_ROOM_CHANGE] = (_40 = {}, + _a$2[NativeApis.BREAKOUT_ROOM_ASSIGN_PARTICIPANT] = (_40 = {}, _40[ZERO_SIXTEEN] = (_41 = {}, _41[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _41), _40), - _a$2[NativeApis.COLLABORATE_START] = (_42 = {}, + _a$2[NativeApis.BREAKOUT_ROOM_CHANGE] = (_42 = {}, _42[ZERO_SIXTEEN] = (_43 = {}, _43[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _43), _42), - _a$2[NativeApis.COLLABORATE_END] = (_44 = {}, + _a$2[NativeApis.COLLABORATE_START] = (_44 = {}, _44[ZERO_SIXTEEN] = (_45 = {}, _45[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _45), _44), - _a$2[NativeApis.COLLABORATE_LEAVE] = (_46 = {}, + _a$2[NativeApis.COLLABORATE_END] = (_46 = {}, _46[ZERO_SIXTEEN] = (_47 = {}, _47[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _47), _46), - _a$2[NativeApis.COLLABORATE_JOIN] = (_48 = {}, + _a$2[NativeApis.COLLABORATE_LEAVE] = (_48 = {}, _48[ZERO_SIXTEEN] = (_49 = {}, _49[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _49), _48), - _a$2[NativeApis.AUTHORIZE] = (_50 = {}, + _a$2[NativeApis.COLLABORATE_JOIN] = (_50 = {}, _50[ZERO_SIXTEEN] = (_51 = {}, _51[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, - validate: function (data) { - if (!data.codeChallenge || typeof data.codeChallenge !== 'string') { - throw new Error('codeChallenge is required for zoomSdk.authorize'); - } - }, }, _51), _50), - _a$2[NativeApis.PROMPT_AUTHORIZE] = (_52 = {}, + _a$2[NativeApis.AUTHORIZE] = (_52 = {}, _52[ZERO_SIXTEEN] = (_53 = {}, _53[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, + validate: function (data) { + if (!data.codeChallenge || typeof data.codeChallenge !== 'string') { + throw new Error('codeChallenge is required for zoomSdk.authorize'); + } + }, }, _53), _52), - _a$2[NativeApis.SET_VIDEO_STATE] = (_54 = {}, + _a$2[NativeApis.PROMPT_AUTHORIZE] = (_54 = {}, _54[ZERO_SIXTEEN] = (_55 = {}, _55[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _55), _54), - _a$2[NativeApis.SET_AUDIO_STATE] = (_56 = {}, + _a$2[NativeApis.SET_VIDEO_STATE] = (_56 = {}, _56[ZERO_SIXTEEN] = (_57 = {}, _57[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _57), _56), - _a$2[NativeApis.SHARE_COMPUTER_AUDIO] = (_58 = {}, + _a$2[NativeApis.SET_AUDIO_STATE] = (_58 = {}, _58[ZERO_SIXTEEN] = (_59 = {}, _59[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _59), _58), - _a$2[NativeApis.ADD_PARTICIPANT_SPOTLIGHT] = (_60 = {}, + _a$2[NativeApis.SHARE_COMPUTER_AUDIO] = (_60 = {}, _60[ZERO_SIXTEEN] = (_61 = {}, _61[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _61), _60), - _a$2[NativeApis.REMOVE_PARTICIPANT_SPOTLIGHTS] = (_62 = {}, + _a$2[NativeApis.ADD_PARTICIPANT_SPOTLIGHT] = (_62 = {}, _62[ZERO_SIXTEEN] = (_63 = {}, _63[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _63), _62), - _a$2[NativeApis.ADD_PARTICIPANT_PINS] = (_64 = {}, + _a$2[NativeApis.REMOVE_PARTICIPANT_SPOTLIGHTS] = (_64 = {}, _64[ZERO_SIXTEEN] = (_65 = {}, _65[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _65), _64), - _a$2[NativeApis.REMOVE_PARTICIPANT_PINS] = (_66 = {}, + _a$2[NativeApis.ADD_PARTICIPANT_PINS] = (_66 = {}, _66[ZERO_SIXTEEN] = (_67 = {}, _67[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _67), _66), - _a$2[NativeApis.ALLOW_ATTENDEES_TO_SPEAK] = (_68 = {}, + _a$2[NativeApis.REMOVE_PARTICIPANT_PINS] = (_68 = {}, _68[ZERO_SIXTEEN] = (_69 = {}, _69[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _69), _68), - _a$2[NativeApis.DISALLOW_ATTENDEES_TO_SPEAK] = (_70 = {}, + _a$2[NativeApis.ALLOW_ATTENDEES_TO_SPEAK] = (_70 = {}, _70[ZERO_SIXTEEN] = (_71 = {}, _71[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _71), _70), - _a$2[NativeApis.REMOVE_WEBINAR_ATTENDEES] = (_72 = {}, + _a$2[NativeApis.DISALLOW_ATTENDEES_TO_SPEAK] = (_72 = {}, _72[ZERO_SIXTEEN] = (_73 = {}, _73[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _73), _72), - _a$2[NativeApis.SET_FEEDBACK_REACTION] = (_74 = {}, + _a$2[NativeApis.REMOVE_WEBINAR_ATTENDEES] = (_74 = {}, _74[ZERO_SIXTEEN] = (_75 = {}, _75[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _75), _74), - _a$2[NativeApis.REMOVE_FEEDBACK_REACTION] = (_76 = {}, + _a$2[NativeApis.SET_FEEDBACK_REACTION] = (_76 = {}, _76[ZERO_SIXTEEN] = (_77 = {}, _77[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _77), _76), - _a$2[NativeApis.REMOVE_ALL_FEEDBACK_REACTION] = (_78 = {}, + _a$2[NativeApis.REMOVE_FEEDBACK_REACTION] = (_78 = {}, _78[ZERO_SIXTEEN] = (_79 = {}, _79[BASE_VERSION] = { mapOutput: function (value) { return wrapInMessageObject(value); }, }, _79), _78), - _a$2[NativeApis.SET_INCOMING_PARTICIPANT_AUDIO_STATE] = (_80 = {}, + _a$2[NativeApis.REMOVE_ALL_FEEDBACK_REACTION] = (_80 = {}, _80[ZERO_SIXTEEN] = (_81 = {}, _81[BASE_VERSION] = { - mapOutput: function (value) { - return wrapInObject({ key: 'message', value: value }); - }, + mapOutput: function (value) { return wrapInMessageObject(value); }, }, _81), _80), - _a$2[NativeApis.SET_VIDEO_SETTINGS] = (_82 = {}, + _a$2[NativeApis.SET_INCOMING_PARTICIPANT_AUDIO_STATE] = (_82 = {}, _82[ZERO_SIXTEEN] = (_83 = {}, _83[BASE_VERSION] = { mapOutput: function (value) { @@ -860,7 +877,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _83), _82), - _a$2[NativeApis.SET_AUDIO_SETTINGS] = (_84 = {}, + _a$2[NativeApis.SET_VIDEO_SETTINGS] = (_84 = {}, _84[ZERO_SIXTEEN] = (_85 = {}, _85[BASE_VERSION] = { mapOutput: function (value) { @@ -869,7 +886,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _85), _84), - _a$2[NativeApis.PROMPT_SHARE_SCREEN] = (_86 = {}, + _a$2[NativeApis.SET_AUDIO_SETTINGS] = (_86 = {}, _86[ZERO_SIXTEEN] = (_87 = {}, _87[BASE_VERSION] = { mapOutput: function (value) { @@ -878,7 +895,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _87), _86), - _a$2[NativeApis.GALLERY_PAGE_SET] = (_88 = {}, + _a$2[NativeApis.PROMPT_SHARE_SCREEN] = (_88 = {}, _88[ZERO_SIXTEEN] = (_89 = {}, _89[BASE_VERSION] = { mapOutput: function (value) { @@ -887,7 +904,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _89), _88), - _a$2[NativeApis.SHOW_MEETING_INVITATION_DIALOG] = (_90 = {}, + _a$2[NativeApis.GALLERY_PAGE_SET] = (_90 = {}, _90[ZERO_SIXTEEN] = (_91 = {}, _91[BASE_VERSION] = { mapOutput: function (value) { @@ -896,7 +913,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _91), _90), - _a$2[NativeApis.STOP_SHARE_SCREEN] = (_92 = {}, + _a$2[NativeApis.SHOW_MEETING_INVITATION_DIALOG] = (_92 = {}, _92[ZERO_SIXTEEN] = (_93 = {}, _93[BASE_VERSION] = { mapOutput: function (value) { @@ -905,7 +922,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _93), _92), - _a$2[NativeApis.BROADCAST_VOICE_TO_BREAKOUT_ROOMS] = (_94 = {}, + _a$2[NativeApis.STOP_SHARE_SCREEN] = (_94 = {}, _94[ZERO_SIXTEEN] = (_95 = {}, _95[BASE_VERSION] = { mapOutput: function (value) { @@ -914,7 +931,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _95), _94), - _a$2[NativeApis.SET_VIDEO_FILTER] = (_96 = {}, + _a$2[NativeApis.BROADCAST_VOICE_TO_BREAKOUT_ROOMS] = (_96 = {}, _96[ZERO_SIXTEEN] = (_97 = {}, _97[BASE_VERSION] = { mapOutput: function (value) { @@ -923,7 +940,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _97), _96), - _a$2[NativeApis.DELETE_VIDEO_FILTER] = (_98 = {}, + _a$2[NativeApis.SET_VIDEO_FILTER] = (_98 = {}, _98[ZERO_SIXTEEN] = (_99 = {}, _99[BASE_VERSION] = { mapOutput: function (value) { @@ -932,7 +949,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _99), _98), - _a$2[NativeApis.SET_MEETING_VIEW] = (_100 = {}, + _a$2[NativeApis.DELETE_VIDEO_FILTER] = (_100 = {}, _100[ZERO_SIXTEEN] = (_101 = {}, _101[BASE_VERSION] = { mapOutput: function (value) { @@ -941,7 +958,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _101), _100), - _a$2[NativeApis.SET_EMOJI_REACTION] = (_102 = {}, + _a$2[NativeApis.SET_MEETING_VIEW] = (_102 = {}, _102[ZERO_SIXTEEN] = (_103 = {}, _103[BASE_VERSION] = { mapOutput: function (value) { @@ -950,7 +967,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _103), _102), - _a$2[NativeApis.SET_SCREEN_NAME] = (_104 = {}, + _a$2[NativeApis.SET_EMOJI_REACTION] = (_104 = {}, _104[ZERO_SIXTEEN] = (_105 = {}, _105[BASE_VERSION] = { mapOutput: function (value) { @@ -959,7 +976,7 @@ var compatibilityFnsApis = (_a$2 = {}, }, _105), _104), - _a$2[NativeApis.SET_PARTICIPANT_SCREEN_NAME] = (_106 = {}, + _a$2[NativeApis.SET_SCREEN_NAME] = (_106 = {}, _106[ZERO_SIXTEEN] = (_107 = {}, _107[BASE_VERSION] = { mapOutput: function (value) { @@ -968,6 +985,33 @@ var compatibilityFnsApis = (_a$2 = {}, }, _107), _106), + _a$2[NativeApis.SET_PARTICIPANT_SCREEN_NAME] = (_108 = {}, + _108[ZERO_SIXTEEN] = (_109 = {}, + _109[BASE_VERSION] = { + mapOutput: function (value) { + return wrapInObject({ key: 'message', value: value }); + }, + }, + _109), + _108), + _a$2[NativeApis.LEAVE_MEETING] = (_110 = {}, + _110[ZERO_SIXTEEN] = (_111 = {}, + _111[BASE_VERSION] = { + mapOutput: function (value) { + return wrapInObject({ key: 'message', value: value }); + }, + }, + _111), + _110), + _a$2[NativeApis.TOGGLE_PARTICIPANT_MEDIA_VIDEO] = (_112 = {}, + _112[ZERO_SIXTEEN] = (_113 = {}, + _113[BASE_VERSION] = { + mapOutput: function (value) { + return wrapInObject({ key: 'message', value: value }); + }, + }, + _113), + _112), _a$2); var _a$1, _b, _c; @@ -1581,6 +1625,9 @@ var ZoomSdk = (function () { ZoomSdk.prototype.onGalleryPageChange = function (handler) { this.addEventListener(NativeEvents.ON_GALLERY_PAGE_CHANGE, handler); }; + ZoomSdk.prototype.onGalleryOrder = function (handler) { + this.addEventListener(NativeEvents.ON_GALLERY_ORDER, handler); + }; ZoomSdk.prototype.addEventListener = function (event, handler) { if (!this._clientVersion || !this._version) { console.warn('Must call zoomSdk.config before adding an event listener. This will become a thrown error in a future version of the sdk'); @@ -1932,6 +1979,13 @@ var ZoomSdk = (function () { }); }); }; + ZoomSdk.prototype.getGalleryOrderList = function () { + return __awaiter(this, void 0, void 0, function () { + return __generator(this, function (_a) { + return [2 , this.callZoomApi(NativeApis.GET_GALLERY_ORDER_LIST)]; + }); + }); + }; ZoomSdk.prototype.stopShareScreen = function () { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { @@ -2001,6 +2055,35 @@ var ZoomSdk = (function () { ZoomSdk.prototype.onEmojiReaction = function (handler) { this.addEventListener(NativeEvents.ON_EMOJI_REACTION, handler); }; + ZoomSdk.prototype.getZoomRoomContext = function () { + return __awaiter(this, void 0, void 0, function () { + return __generator(this, function (_a) { + return [2 , this.callZoomApi(NativeApis.GET_ZOOM_ROOM_CONTEXT)]; + }); + }); + }; + ZoomSdk.prototype.getZoomRoomControllerCredentials = function () { + return __awaiter(this, void 0, void 0, function () { + return __generator(this, function (_a) { + return [2 , this.callZoomApi(NativeApis.GET_ZOOM_ROOM_CONTROLLER_CREDENTIALS)]; + }); + }); + }; + ZoomSdk.prototype.leaveMeeting = function (options) { + var emptyInput = { newHost: '' }; + return this.callZoomApi(NativeApis.LEAVE_MEETING, options !== null && options !== void 0 ? options : emptyInput); + }; + ZoomSdk.prototype.joinMeeting = function (options) { + var emptyInput = { joinURL: '', newHost: '' }; + return this.callZoomApi(NativeApis.JOIN_MEETING, options !== null && options !== void 0 ? options : emptyInput); + }; + ZoomSdk.prototype.toggleParticipantMediaVideo = function (options) { + return __awaiter(this, void 0, void 0, function () { + return __generator(this, function (_a) { + return [2 , this.callZoomApi(NativeApis.TOGGLE_PARTICIPANT_MEDIA_VIDEO, options)]; + }); + }); + }; return ZoomSdk; }()); function getJsCallId() { diff --git a/package.json b/package.json index 1aad87e..6bb4a88 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@zoom/appssdk", - "version": "0.16.12", + "version": "0.16.13", "description": "Zoom Apps SDK", "license": "MIT", "files": [