@webex/plugin-meetings 3.12.0-next.14 → 3.12.0-next.141

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/AGENTS.md +9 -0
  2. package/dist/aiEnableRequest/index.js +15 -2
  3. package/dist/aiEnableRequest/index.js.map +1 -1
  4. package/dist/annotation/index.js +2 -2
  5. package/dist/annotation/index.js.map +1 -1
  6. package/dist/breakouts/breakout.js +8 -3
  7. package/dist/breakouts/breakout.js.map +1 -1
  8. package/dist/breakouts/events.js +29 -14
  9. package/dist/breakouts/events.js.map +1 -1
  10. package/dist/breakouts/index.js +99 -4
  11. package/dist/breakouts/index.js.map +1 -1
  12. package/dist/common/errors/webex-errors.js +49 -5
  13. package/dist/common/errors/webex-errors.js.map +1 -1
  14. package/dist/config.js +2 -2
  15. package/dist/config.js.map +1 -1
  16. package/dist/constants.js +37 -10
  17. package/dist/constants.js.map +1 -1
  18. package/dist/controls-options-manager/index.js +46 -10
  19. package/dist/controls-options-manager/index.js.map +1 -1
  20. package/dist/hashTree/constants.js +4 -1
  21. package/dist/hashTree/constants.js.map +1 -1
  22. package/dist/hashTree/hashTreeParser.js +1096 -391
  23. package/dist/hashTree/hashTreeParser.js.map +1 -1
  24. package/dist/hashTree/utils.js +20 -0
  25. package/dist/hashTree/utils.js.map +1 -1
  26. package/dist/index.js +7 -0
  27. package/dist/index.js.map +1 -1
  28. package/dist/interceptors/dataChannelAuthToken.js +75 -15
  29. package/dist/interceptors/dataChannelAuthToken.js.map +1 -1
  30. package/dist/interceptors/locusRetry.js +23 -8
  31. package/dist/interceptors/locusRetry.js.map +1 -1
  32. package/dist/interpretation/index.js +10 -1
  33. package/dist/interpretation/index.js.map +1 -1
  34. package/dist/interpretation/interpretation.types.js +7 -0
  35. package/dist/interpretation/interpretation.types.js.map +1 -0
  36. package/dist/interpretation/siLanguage.js +1 -1
  37. package/dist/locus-info/controlsUtils.js +4 -1
  38. package/dist/locus-info/controlsUtils.js.map +1 -1
  39. package/dist/locus-info/index.js +615 -176
  40. package/dist/locus-info/index.js.map +1 -1
  41. package/dist/locus-info/infoUtils.js +36 -5
  42. package/dist/locus-info/infoUtils.js.map +1 -1
  43. package/dist/locus-info/types.js +20 -0
  44. package/dist/locus-info/types.js.map +1 -1
  45. package/dist/media/MediaConnectionAwaiter.js +15 -2
  46. package/dist/media/MediaConnectionAwaiter.js.map +1 -1
  47. package/dist/media/index.js +8 -2
  48. package/dist/media/index.js.map +1 -1
  49. package/dist/media/properties.js +4 -5
  50. package/dist/media/properties.js.map +1 -1
  51. package/dist/meeting/in-meeting-actions.js +5 -1
  52. package/dist/meeting/in-meeting-actions.js.map +1 -1
  53. package/dist/meeting/index.js +1680 -835
  54. package/dist/meeting/index.js.map +1 -1
  55. package/dist/meeting/locusMediaRequest.js +229 -82
  56. package/dist/meeting/locusMediaRequest.js.map +1 -1
  57. package/dist/meeting/muteState.js +10 -1
  58. package/dist/meeting/muteState.js.map +1 -1
  59. package/dist/meeting/request.js +5 -2
  60. package/dist/meeting/request.js.map +1 -1
  61. package/dist/meeting/util.js +34 -2
  62. package/dist/meeting/util.js.map +1 -1
  63. package/dist/meeting/voicea-meeting.js +2 -1
  64. package/dist/meeting/voicea-meeting.js.map +1 -1
  65. package/dist/meeting-info/meeting-info-v2.js +9 -3
  66. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  67. package/dist/meetings/index.js +293 -124
  68. package/dist/meetings/index.js.map +1 -1
  69. package/dist/meetings/meetings.types.js +6 -1
  70. package/dist/meetings/meetings.types.js.map +1 -1
  71. package/dist/meetings/request.js +39 -0
  72. package/dist/meetings/request.js.map +1 -1
  73. package/dist/meetings/util.js +116 -18
  74. package/dist/meetings/util.js.map +1 -1
  75. package/dist/member/index.js +10 -0
  76. package/dist/member/index.js.map +1 -1
  77. package/dist/member/types.js.map +1 -1
  78. package/dist/member/util.js +30 -0
  79. package/dist/member/util.js.map +1 -1
  80. package/dist/members/index.js +101 -43
  81. package/dist/members/index.js.map +1 -1
  82. package/dist/members/util.js +8 -1
  83. package/dist/members/util.js.map +1 -1
  84. package/dist/metrics/constants.js +7 -1
  85. package/dist/metrics/constants.js.map +1 -1
  86. package/dist/multistream/codec/constants.js +63 -0
  87. package/dist/multistream/codec/constants.js.map +1 -0
  88. package/dist/multistream/mediaRequestManager.js +62 -15
  89. package/dist/multistream/mediaRequestManager.js.map +1 -1
  90. package/dist/multistream/receiveSlot.js +9 -0
  91. package/dist/multistream/receiveSlot.js.map +1 -1
  92. package/dist/reachability/clusterReachability.js.map +1 -1
  93. package/dist/reachability/index.js +121 -83
  94. package/dist/reachability/index.js.map +1 -1
  95. package/dist/reachability/reachability.types.js +2 -0
  96. package/dist/reachability/reachability.types.js.map +1 -1
  97. package/dist/reachability/util.js +45 -0
  98. package/dist/reachability/util.js.map +1 -1
  99. package/dist/reactions/reactions.type.js.map +1 -1
  100. package/dist/recording-controller/index.js +1 -3
  101. package/dist/recording-controller/index.js.map +1 -1
  102. package/dist/roap/turnDiscovery.js +8 -1
  103. package/dist/roap/turnDiscovery.js.map +1 -1
  104. package/dist/types/common/errors/webex-errors.d.ts +32 -2
  105. package/dist/types/config.d.ts +2 -2
  106. package/dist/types/constants.d.ts +13 -1
  107. package/dist/types/controls-options-manager/index.d.ts +16 -0
  108. package/dist/types/hashTree/constants.d.ts +1 -0
  109. package/dist/types/hashTree/hashTreeParser.d.ts +201 -22
  110. package/dist/types/hashTree/utils.d.ts +7 -0
  111. package/dist/types/index.d.ts +3 -0
  112. package/dist/types/interceptors/locusRetry.d.ts +4 -4
  113. package/dist/types/interpretation/interpretation.types.d.ts +10 -0
  114. package/dist/types/locus-info/index.d.ts +106 -8
  115. package/dist/types/locus-info/infoUtils.d.ts +8 -0
  116. package/dist/types/locus-info/types.d.ts +22 -1
  117. package/dist/types/media/MediaConnectionAwaiter.d.ts +10 -1
  118. package/dist/types/media/properties.d.ts +6 -2
  119. package/dist/types/meeting/in-meeting-actions.d.ts +4 -0
  120. package/dist/types/meeting/index.d.ts +176 -11
  121. package/dist/types/meeting/locusMediaRequest.d.ts +12 -0
  122. package/dist/types/meeting/request.d.ts +1 -0
  123. package/dist/types/meeting/util.d.ts +9 -0
  124. package/dist/types/meeting-info/meeting-info-v2.d.ts +1 -0
  125. package/dist/types/meetings/index.d.ts +40 -19
  126. package/dist/types/meetings/meetings.types.d.ts +15 -0
  127. package/dist/types/meetings/request.d.ts +14 -0
  128. package/dist/types/member/index.d.ts +1 -0
  129. package/dist/types/member/types.d.ts +1 -0
  130. package/dist/types/member/util.d.ts +9 -0
  131. package/dist/types/members/index.d.ts +15 -2
  132. package/dist/types/members/util.d.ts +1 -5
  133. package/dist/types/metrics/constants.d.ts +6 -0
  134. package/dist/types/multistream/codec/constants.d.ts +7 -0
  135. package/dist/types/multistream/mediaRequestManager.d.ts +22 -5
  136. package/dist/types/reachability/clusterReachability.d.ts +3 -3
  137. package/dist/types/reachability/index.d.ts +10 -3
  138. package/dist/types/reachability/reachability.types.d.ts +7 -0
  139. package/dist/types/reachability/util.d.ts +17 -0
  140. package/dist/types/reactions/reactions.type.d.ts +3 -0
  141. package/dist/webinar/index.js +307 -161
  142. package/dist/webinar/index.js.map +1 -1
  143. package/package.json +23 -23
  144. package/src/aiEnableRequest/index.ts +16 -0
  145. package/src/annotation/index.ts +6 -4
  146. package/src/breakouts/breakout.ts +3 -1
  147. package/src/breakouts/events.ts +33 -11
  148. package/src/breakouts/index.ts +122 -2
  149. package/src/common/errors/webex-errors.ts +50 -3
  150. package/src/config.ts +2 -2
  151. package/src/constants.ts +21 -3
  152. package/src/controls-options-manager/index.ts +62 -10
  153. package/src/hashTree/constants.ts +7 -0
  154. package/src/hashTree/hashTreeParser.ts +861 -193
  155. package/src/hashTree/utils.ts +19 -0
  156. package/src/index.ts +6 -0
  157. package/src/interceptors/dataChannelAuthToken.ts +88 -12
  158. package/src/interceptors/locusRetry.ts +25 -4
  159. package/src/interpretation/index.ts +27 -9
  160. package/src/interpretation/interpretation.types.ts +11 -0
  161. package/src/locus-info/controlsUtils.ts +3 -1
  162. package/src/locus-info/index.ts +566 -164
  163. package/src/locus-info/infoUtils.ts +41 -6
  164. package/src/locus-info/types.ts +26 -1
  165. package/src/media/MediaConnectionAwaiter.ts +21 -4
  166. package/src/media/index.ts +10 -1
  167. package/src/media/properties.ts +8 -3
  168. package/src/meeting/in-meeting-actions.ts +8 -0
  169. package/src/meeting/index.ts +933 -119
  170. package/src/meeting/locusMediaRequest.ts +106 -6
  171. package/src/meeting/muteState.ts +10 -1
  172. package/src/meeting/request.ts +11 -0
  173. package/src/meeting/util.ts +46 -5
  174. package/src/meeting/voicea-meeting.ts +1 -1
  175. package/src/meeting-info/meeting-info-v2.ts +10 -4
  176. package/src/meetings/index.ts +197 -80
  177. package/src/meetings/meetings.types.ts +19 -0
  178. package/src/meetings/request.ts +43 -0
  179. package/src/meetings/util.ts +117 -4
  180. package/src/member/index.ts +10 -0
  181. package/src/member/types.ts +1 -0
  182. package/src/member/util.ts +29 -0
  183. package/src/members/index.ts +70 -7
  184. package/src/members/util.ts +12 -4
  185. package/src/metrics/constants.ts +6 -0
  186. package/src/multistream/codec/constants.ts +58 -0
  187. package/src/multistream/mediaRequestManager.ts +119 -28
  188. package/src/multistream/receiveSlot.ts +18 -0
  189. package/src/reachability/clusterReachability.ts +3 -2
  190. package/src/reachability/index.ts +47 -16
  191. package/src/reachability/reachability.types.ts +11 -0
  192. package/src/reachability/util.ts +36 -0
  193. package/src/reactions/reactions.type.ts +3 -0
  194. package/src/recording-controller/index.ts +1 -2
  195. package/src/roap/turnDiscovery.ts +9 -1
  196. package/src/webinar/index.ts +216 -38
  197. package/test/unit/spec/aiEnableRequest/index.ts +86 -0
  198. package/test/unit/spec/annotation/index.ts +3 -3
  199. package/test/unit/spec/breakouts/breakout.ts +9 -3
  200. package/test/unit/spec/breakouts/events.ts +120 -2
  201. package/test/unit/spec/breakouts/index.ts +223 -3
  202. package/test/unit/spec/common/errors/webex-errors.ts +78 -0
  203. package/test/unit/spec/controls-options-manager/index.js +139 -32
  204. package/test/unit/spec/hashTree/hashTreeParser.ts +2451 -184
  205. package/test/unit/spec/hashTree/utils.ts +37 -0
  206. package/test/unit/spec/interceptors/dataChannelAuthToken.ts +196 -0
  207. package/test/unit/spec/interceptors/locusRetry.ts +205 -4
  208. package/test/unit/spec/interpretation/index.ts +26 -4
  209. package/test/unit/spec/locus-info/controlsUtils.js +172 -57
  210. package/test/unit/spec/locus-info/index.js +1014 -58
  211. package/test/unit/spec/locus-info/infoUtils.js +184 -1
  212. package/test/unit/spec/media/MediaConnectionAwaiter.ts +55 -0
  213. package/test/unit/spec/media/index.ts +92 -0
  214. package/test/unit/spec/media/properties.ts +23 -23
  215. package/test/unit/spec/meeting/in-meeting-actions.ts +4 -0
  216. package/test/unit/spec/meeting/index.js +2805 -116
  217. package/test/unit/spec/meeting/locusMediaRequest.ts +406 -4
  218. package/test/unit/spec/meeting/muteState.js +81 -0
  219. package/test/unit/spec/meeting/request.js +12 -0
  220. package/test/unit/spec/meeting/utils.js +153 -1
  221. package/test/unit/spec/meeting/voicea-meeting.ts +85 -1
  222. package/test/unit/spec/meeting-info/meetinginfov2.js +76 -10
  223. package/test/unit/spec/meetings/index.js +533 -49
  224. package/test/unit/spec/meetings/request.js +141 -0
  225. package/test/unit/spec/meetings/utils.js +402 -51
  226. package/test/unit/spec/member/index.js +7 -0
  227. package/test/unit/spec/member/util.js +89 -0
  228. package/test/unit/spec/members/index.js +216 -0
  229. package/test/unit/spec/members/request.js +37 -1
  230. package/test/unit/spec/members/utils.js +63 -0
  231. package/test/unit/spec/multistream/mediaRequestManager.ts +501 -37
  232. package/test/unit/spec/reachability/index.ts +128 -46
  233. package/test/unit/spec/reachability/util.ts +31 -0
  234. package/test/unit/spec/recording-controller/index.js +9 -8
  235. package/test/unit/spec/roap/turnDiscovery.ts +20 -0
  236. package/test/unit/spec/webinar/index.ts +332 -31
@@ -2,6 +2,9 @@ export interface MediaConnectionAwaiterProps {
2
2
  webrtcMediaConnection: any;
3
3
  correlationId: string;
4
4
  }
5
+ export interface FailureResult {
6
+ iceConnected: boolean;
7
+ }
5
8
  /**
6
9
  * @class MediaConnectionAwaiter
7
10
  */
@@ -32,6 +35,12 @@ export default class MediaConnectionAwaiter {
32
35
  * @returns {boolean}
33
36
  */
34
37
  private isFailed;
38
+ /**
39
+ * Returns true if ICE connection state indicates connectivity.
40
+ *
41
+ * @returns {boolean}
42
+ */
43
+ private isIceConnected;
35
44
  /**
36
45
  * Returns true if the ICE Gathering is completed, false otherwise.
37
46
  *
@@ -84,7 +93,7 @@ export default class MediaConnectionAwaiter {
84
93
  /**
85
94
  * Waits for the webrtc media connection to be connected.
86
95
  *
87
- * @returns {Promise}
96
+ * @returns {Promise<void>} In case of failure, the promise is rejected with FailureResult
88
97
  */
89
98
  waitForMediaConnectionConnected(): Promise<void>;
90
99
  }
@@ -26,6 +26,7 @@ export default class MediaProperties {
26
26
  shareAudioStream?: LocalSystemAudioStream;
27
27
  videoDeviceId: any;
28
28
  videoStream?: LocalCameraStream;
29
+ srtpCipher: string | undefined;
29
30
  namespace: string;
30
31
  mediaIssueCounters: {
31
32
  [key: string]: number;
@@ -147,8 +148,11 @@ export default class MediaProperties {
147
148
  *
148
149
  * @param {string} issueType
149
150
  * @param {string} issueSubType
150
- * @param {string} correlationId
151
+ * @param {Object} metadata
151
152
  * @returns {void}
152
153
  */
153
- sendMediaIssueMetric(issueType: string, issueSubType: string, correlationId: any): void;
154
+ sendMediaIssueMetric(issueType: string, issueSubType: string, metadata: {
155
+ correlationId: string;
156
+ isMultistream: boolean;
157
+ }): void;
154
158
  }
@@ -115,6 +115,8 @@ interface IInMeetingActions {
115
115
  canDisablePollingQA?: boolean;
116
116
  canAttendeeRequestAiAssistantEnabled?: boolean;
117
117
  isAttendeeRequestAiAssistantDeclinedAll?: boolean;
118
+ isAnonymizeDisplayNamesEnabled?: boolean;
119
+ canViewTheParticipantList?: boolean;
118
120
  }
119
121
  /**
120
122
  * @class InMeetingActions
@@ -230,6 +232,8 @@ export default class InMeetingActions implements IInMeetingActions {
230
232
  canDisablePollingQA: any;
231
233
  canAttendeeRequestAiAssistantEnabled: any;
232
234
  isAttendeeRequestAiAssistantDeclinedAll: any;
235
+ isAnonymizeDisplayNamesEnabled: any;
236
+ canViewTheParticipantList: any;
233
237
  /**
234
238
  * Returns all meeting action options
235
239
  * @returns {Object}
@@ -16,7 +16,7 @@ import { DESTINATION_TYPE, NETWORK_STATUS } from '../constants';
16
16
  import { ReceiveSlotManager } from '../multistream/receiveSlotManager';
17
17
  import { MediaRequestManager } from '../multistream/mediaRequestManager';
18
18
  import { Configuration as RemoteMediaManagerConfiguration, RemoteMediaManager } from '../multistream/remoteMediaManager';
19
- import { ReactionServerType, SkinToneType } from '../reactions/reactions.type';
19
+ import { SkinToneType } from '../reactions/reactions.type';
20
20
  import InMeetingActions from './in-meeting-actions';
21
21
  import RecordingController from '../recording-controller';
22
22
  import ControlsOptionsManager from '../controls-options-manager';
@@ -374,7 +374,7 @@ export default class Meeting extends StatelessWebexPlugin {
374
374
  webinar: any;
375
375
  conversationUrl: string;
376
376
  callStateForMetrics: CallStateForMetrics;
377
- destination: string;
377
+ destination: string | LocusDTO;
378
378
  destinationType: DESTINATION_TYPE;
379
379
  deviceUrl: string;
380
380
  hostId: string;
@@ -412,6 +412,8 @@ export default class Meeting extends StatelessWebexPlugin {
412
412
  floorGrantPending: boolean;
413
413
  hasJoinedOnce: boolean;
414
414
  hasWebsocketConnected: boolean;
415
+ private mercuryOnlineHandler?;
416
+ private mercuryOfflineHandler?;
415
417
  inMeetingActions: InMeetingActions;
416
418
  isLocalShareLive: boolean;
417
419
  isRoapInProgress: boolean;
@@ -422,6 +424,7 @@ export default class Meeting extends StatelessWebexPlugin {
422
424
  joinedWith?: any;
423
425
  selfId?: string;
424
426
  roles: any[];
427
+ canNotViewTheParticipantList?: boolean;
425
428
  locusMediaRequest?: LocusMediaRequest;
426
429
  mediaProperties: MediaProperties;
427
430
  mediaRequestManagers: {
@@ -491,13 +494,15 @@ export default class Meeting extends StatelessWebexPlugin {
491
494
  isMoveToInProgress: boolean;
492
495
  registrationIdStatus: string;
493
496
  brbState: BrbState;
497
+ private emittedBreakoutJoinResponseMoveIds;
498
+ private promisesWaitingForPropUpdate;
494
499
  voiceaListenerCallbacks: object;
495
500
  private addMediaData;
496
501
  private sendSlotManager;
497
502
  private deferSDPAnswer?;
498
503
  private sdpResponseTimer?;
499
504
  private hasMediaConnectionConnectedAtLeastOnce;
500
- private joinWithMediaRetryInfo?;
505
+ private joinWithMediaRetryInfo;
501
506
  private connectionStateHandler?;
502
507
  private iceCandidateErrors;
503
508
  private iceCandidatesCount;
@@ -514,6 +519,15 @@ export default class Meeting extends StatelessWebexPlugin {
514
519
  * @memberof Meeting
515
520
  */
516
521
  constructor(attrs: any, options: object, callback: (meeting: Meeting) => void);
522
+ /**
523
+ * Get the ingress payload type for a given media type and codec mime type
524
+ * @param {MediaType} mediaType - The media type
525
+ * @param {MediaCodecMimeType} codecMimeType - The codec mime type
526
+ * @returns {number | undefined} - The ingress payload type
527
+ * @private
528
+ * @memberof Meeting
529
+ */
530
+ private getIngressPayloadTypeCallback;
517
531
  /**
518
532
  * returns meeting is joined
519
533
  * @private
@@ -696,6 +710,40 @@ export default class Meeting extends StatelessWebexPlugin {
696
710
  * @returns {Promise}
697
711
  */
698
712
  postMetrics(eventName: ClientEvent['name']): void;
713
+ /**
714
+ * Handles the LLM state-update message that resulted from a Locus /sync. Records the LLM arrival
715
+ * time (the milestone that gates client.locus.sync.complete - the metric is emitted only for LLM
716
+ * flows) and then tries to complete the metric.
717
+ * @param {string} meetingId meeting id
718
+ * @param {string} trackingId sync tracking id echoed back on the LLM message
719
+ * @returns {void}
720
+ * @private
721
+ * @memberof Meeting
722
+ */
723
+ private onLocusSyncLlmMessage;
724
+ /**
725
+ * Attempts to complete the Locus sync latency metric and emit client.locus.sync.complete. The
726
+ * metric is emitted only once BOTH the /sync response and the resulting LLM message have arrived
727
+ * (in either order); until then the record is kept so the missing milestone can still land. Both
728
+ * trigger points (the LLM message handler and the /sync response timestamp) call this, so the
729
+ * metric fires as soon as the second milestone is in.
730
+ * @param {string} meetingId meeting id
731
+ * @param {string} trackingId sync tracking id used to match the pending record
732
+ * @returns {void}
733
+ * @private
734
+ * @memberof Meeting
735
+ */
736
+ private tryCompleteLocusSyncLatency;
737
+ /**
738
+ * Submits the client.locus.sync.complete Call Analyzer event for a completed Locus sync latency
739
+ * measurement.
740
+ * @param {string} meetingId meeting id
741
+ * @param {object} completed completed sync latency payload from the metrics plugin
742
+ * @returns {void}
743
+ * @private
744
+ * @memberof Meeting
745
+ */
746
+ private emitLocusSyncCompleteMetric;
699
747
  /**
700
748
  * Proxy function for all the listener set ups
701
749
  * @returns {undefined}
@@ -970,7 +1018,12 @@ export default class Meeting extends StatelessWebexPlugin {
970
1018
  */
971
1019
  mute(memberId: string, mute?: boolean): any;
972
1020
  /**
973
- * Transfer the moderator role to another eligible member
1021
+ * Transfer the moderator role to another eligible member.
1022
+ *
1023
+ * If the target member is currently joined in the current session, the request is
1024
+ * sent against the current locus. Otherwise, we search the breakout sessions and,
1025
+ * when the member is found in one, we send the request against that breakout
1026
+ * session's locus url instead.
974
1027
  * @param {String} memberId
975
1028
  * @param {Boolean} moderator
976
1029
  * @returns {Promise} see #members.transferHostToMember
@@ -1051,6 +1104,13 @@ export default class Meeting extends StatelessWebexPlugin {
1051
1104
  * @memberof Meeting
1052
1105
  */
1053
1106
  setSipUri(sipUri: string): void;
1107
+ /**
1108
+ * After initial locus setup, refreshes destination with synced locus data and optionally
1109
+ * performs deferred meeting info fetch when initial locus was incomplete.
1110
+ * @param {LocusDTO} locus
1111
+ * @returns {void}
1112
+ */
1113
+ finalizeMeetingAfterInitialLocusSetup(locus: LocusDTO): Promise<void>;
1054
1114
  /**
1055
1115
  * Set the locus info the class instance. Should be called with the parsed locus
1056
1116
  * we got in the join response.
@@ -1163,6 +1223,22 @@ export default class Meeting extends StatelessWebexPlugin {
1163
1223
  * @memberof Meeting
1164
1224
  */
1165
1225
  setMercuryListener(): void;
1226
+ /**
1227
+ * Removes this meeting's Mercury ONLINE/OFFLINE event listeners registered
1228
+ * by setMercuryListener(). Must be called before Locus /leave to avoid
1229
+ * unnecessary syncs/metrics triggered by events received while leaving
1230
+ * (per Locus team recommendation).
1231
+ *
1232
+ * Mercury is a process-wide singleton shared with other plugins, so we
1233
+ * pass the bound handler refs to .off() to avoid clearing every listener
1234
+ * for ONLINE/OFFLINE on the shared emitter.
1235
+ *
1236
+ * Idempotent: subsequent calls are no-ops because the handler refs are
1237
+ * cleared after detaching.
1238
+ * @private
1239
+ * @returns {void}
1240
+ */
1241
+ private stopListeningForMercuryEvents;
1166
1242
  /**
1167
1243
  * Close the peer connections and remove them from the class.
1168
1244
  * Cleanup any media connection related things.
@@ -1299,6 +1375,12 @@ export default class Meeting extends StatelessWebexPlugin {
1299
1375
  * @returns {void}
1300
1376
  */
1301
1377
  private processLocusLLMEvent;
1378
+ /**
1379
+ * Verifies the relay event was delivered for the active LLM session binding.
1380
+ * @param {RelayEvent} event Event object coming from LLM Connection
1381
+ * @returns {boolean}
1382
+ */
1383
+ private isRelayEventRouteValid;
1302
1384
  /**
1303
1385
  * Callback called when a relay event is received from meeting LLM Connection
1304
1386
  * @param {RelayEvent} e Event object coming from LLM Connection
@@ -1356,8 +1438,41 @@ export default class Meeting extends StatelessWebexPlugin {
1356
1438
  * @returns {void}
1357
1439
  */
1358
1440
  private clearLLMHealthCheckTimer;
1441
+ /**
1442
+ * Removes LLM event listeners and clears the health check timer.
1443
+ * Must be called before Locus /leave to avoid unnecessary syncs triggered
1444
+ * by events received while leaving (per Locus team recommendation).
1445
+ * Idempotent: safe to call multiple times; .off() is a no-op when no
1446
+ * matching listener is registered.
1447
+ * @private
1448
+ * @returns {void}
1449
+ */
1450
+ private stopListeningForLLMEvents;
1451
+ /**
1452
+ * Stops listening on every event bus (LLM, Mercury, voicea/transcription,
1453
+ * annotation) that could otherwise deliver events to this meeting while
1454
+ * Locus is processing /leave or /end. Per the Locus team recommendation,
1455
+ * this must run before the Locus request is dispatched to avoid
1456
+ * unnecessary syncs triggered by in-flight events.
1457
+ *
1458
+ * Voicea (transcription) subscribes to llm 'event:relay.event' internally,
1459
+ * and the annotation plugin subscribes to both mercury and llm, so both
1460
+ * must be torn down alongside the direct LLM/Mercury listeners.
1461
+ *
1462
+ * Idempotent: safe to call multiple times; .off() is a no-op when no
1463
+ * matching listener is registered, and stopTranscription is guarded.
1464
+ * @private
1465
+ * @returns {void}
1466
+ */
1467
+ private stopListeningForMeetingEvents;
1359
1468
  /**
1360
1469
  * Disconnects and cleans up the default LLM session listeners/timers.
1470
+ *
1471
+ * Ownership-aware: only calls `disconnectLLM` when this meeting is the
1472
+ * current owner of the default LLM session (or when no owner is recorded).
1473
+ * Event listeners belonging to this meeting instance are always detached
1474
+ * so they do not receive another meeting's relay events.
1475
+ *
1361
1476
  * @param {Object} options
1362
1477
  * @param {boolean} [options.removeOnlineListener=true] removes the one-time online listener
1363
1478
  * @param {boolean} [options.throwOnError=true] rethrows disconnect errors when true
@@ -1365,8 +1480,8 @@ export default class Meeting extends StatelessWebexPlugin {
1365
1480
  */
1366
1481
  private cleanupLLMConneciton;
1367
1482
  /**
1368
- * Clears all data channel tokens stored in LLM.
1369
- * Called during meeting cleanup to ensure stale tokens are not reused.
1483
+ * Clears data channel tokens associated with this meeting ownership.
1484
+ * Ownership checks are enforced in internal-plugin-llm.
1370
1485
  * @returns {void}
1371
1486
  */
1372
1487
  clearDataChannelToken(): void;
@@ -1386,9 +1501,27 @@ export default class Meeting extends StatelessWebexPlugin {
1386
1501
  /**
1387
1502
  * Connects to low latency mercury and reconnects if the address has changed
1388
1503
  * It will also disconnect if called when the meeting has ended
1504
+ * @param {Object} [options]
1505
+ * @param {boolean} [options.isInitialJoinPhase] true when called from initial join flow
1389
1506
  * @returns {Promise}
1390
1507
  */
1391
- updateLLMConnection(): Promise<any>;
1508
+ updateLLMConnection({ isInitialJoinPhase }?: {
1509
+ isInitialJoinPhase?: boolean;
1510
+ }): Promise<any>;
1511
+ /**
1512
+ * Ensures breakout join response metric with LLM latency is emitted only once per breakout move id.
1513
+ * @param {string | undefined} breakoutMoveId
1514
+ * @param {boolean} [hasLLMLatency=false]
1515
+ * @returns {boolean}
1516
+ */
1517
+ private shouldEmitBreakoutJoinResponseMetric;
1518
+ /**
1519
+ * Sends LLM connect latencies for initial join flow.
1520
+ * @param {RegisterAndConnectTiming} timings
1521
+ * @param {any} [error]
1522
+ * @returns {void}
1523
+ */
1524
+ private sendLLMConnectMetric;
1392
1525
  /**
1393
1526
  * Use phone for meeting audio
1394
1527
  * @param {String} phoneNumber If provided, it will dial-out using this number. If not provided, dial-in will be used
@@ -1466,12 +1599,36 @@ export default class Meeting extends StatelessWebexPlugin {
1466
1599
  */
1467
1600
  setupStatsAnalyzerEventHandlers: () => void;
1468
1601
  getMediaConnectionDebugId(): string;
1602
+ /**
1603
+ * Checks if the error indicates that Locus dropped us from the meeting,
1604
+ * either directly on the error or wrapped inside an AddMediaFailed cause.
1605
+ * This method is meant to be called only with errors thrown by Meeting.addMediaInternal()
1606
+ *
1607
+ * @param {Error} error
1608
+ * @returns {boolean}
1609
+ */
1610
+ private isErrorMeaningLocusDroppedUs;
1611
+ private isLocusUserFullError;
1612
+ /**
1613
+ * Determines if the next media attempt should use only TURN-TLS (iceTransportPolicy='relay').
1614
+ * We do this in the hope that it will minimize the chance of Homer sending DTLS packets on a wrong
1615
+ * transport (as there will be only 1 transport) and dealing with firewalls that let STUN packets through, but block
1616
+ * other UDP traffic.
1617
+ *
1618
+ * For clients landing on video mesh nodes (VMN), reachability might still have successful TLS (to public nodes)
1619
+ * but TURN discovery will result in empty TURN urls array and iceTransportPolicy='relay' will still be overriden to undefined,
1620
+ * see the code in establishMediaConnection()
1621
+ *
1622
+ * @param {Error} prevError - The error from the previous addMedia attempt
1623
+ * @returns {Promise<boolean>}
1624
+ */
1625
+ private shouldRetryMediaWithOnlyTurnTLS;
1469
1626
  /**
1470
1627
  * Creates a webrtc media connection and publishes streams to it
1471
1628
  *
1472
1629
  * @param {Object} turnServerInfo TURN server information
1473
1630
  * @param {BundlePolicy} [bundlePolicy] Bundle policy settings
1474
- * @param {AddMediaOptions} [options] Options for enabling/disabling audio/video
1631
+ * @param {RTCIceTransportPolicy} [iceTransportPolicy] ICE transport policy override
1475
1632
  * @returns {RoapMediaConnection | MultistreamRoapMediaConnection}
1476
1633
  */
1477
1634
  private createMediaConnection;
@@ -1597,6 +1754,13 @@ export default class Meeting extends StatelessWebexPlugin {
1597
1754
  * @returns {void}
1598
1755
  */
1599
1756
  private setupLocusMediaRequest;
1757
+ /**
1758
+ * Waits for LocusInfo to update meeting.selfUrl, with a timeout fallback.
1759
+ * @returns {Promise<void>}
1760
+ * @private
1761
+ * @memberof Meeting
1762
+ */
1763
+ private waitForSelfUrlChange;
1600
1764
  /**
1601
1765
  * Creates a media connection to the server. Media connection is required for sending or receiving any audio/video.
1602
1766
  *
@@ -1610,14 +1774,15 @@ export default class Meeting extends StatelessWebexPlugin {
1610
1774
  * Internal version of addMedia() with some more arguments for finer control of its behavior
1611
1775
  *
1612
1776
  * @param {Function} icePhaseCallback - callback to determine the icePhase for CA "client.ice.end" failure events
1613
- * @param {TurnServerInfo} turnServerInfo - TURN server information
1614
1777
  * @param {boolean} forceTurnDiscovery - if true, TURN discovery will be done
1778
+ * @param {TurnServerInfo} turnServerInfo - TURN server information
1779
+ * @param {RTCIceTransportPolicy} [iceTransportPolicy] - ICE transport policy override
1615
1780
  * @param {AddMediaOptions} options - same as options of the public addMedia() method
1616
1781
  * @returns {Promise<void>}
1617
1782
  * @protected
1618
1783
  * @memberof Meeting
1619
1784
  */
1620
- protected addMediaInternal(icePhaseCallback: () => string, turnServerInfo: TurnServerInfo, forceTurnDiscovery: any, options?: AddMediaOptions): Promise<void>;
1785
+ protected addMediaInternal(icePhaseCallback: () => string, forceTurnDiscovery: boolean, turnServerInfo?: TurnServerInfo, iceTransportPolicy?: RTCIceTransportPolicy, options?: AddMediaOptions): Promise<void>;
1621
1786
  /**
1622
1787
  * Informs if the peer connection is in a state that can be updated with updateMedia (audio/video/share)
1623
1788
  * @returns {Boolean}
@@ -1980,7 +2145,7 @@ export default class Meeting extends StatelessWebexPlugin {
1980
2145
  * @public
1981
2146
  * @memberof Meeting
1982
2147
  */
1983
- sendReaction(reactionType: ReactionServerType, skinToneType?: SkinToneType): any;
2148
+ sendReaction(reactionType: string, skinToneType?: SkinToneType): any;
1984
2149
  /**
1985
2150
  * Extend the current meeting duration.
1986
2151
  *
@@ -32,6 +32,8 @@ export type Config = {
32
32
  correlationId: string;
33
33
  meetingId: string;
34
34
  preferTranscoding: boolean;
35
+ getCurrentSelfUrl: () => string | undefined;
36
+ waitForSelfUrlChange: () => Promise<void>;
35
37
  };
36
38
  /**
37
39
  * This class manages all /media API requests to Locus. Every call to that
@@ -67,6 +69,16 @@ export declare class LocusMediaRequest extends WebexPlugin {
67
69
  * Prepares the uri and body for the media request to be sent to Locus
68
70
  */
69
71
  private sendHttpRequest;
72
+ /**
73
+ * Returns the latest selfUrl for this meeting, falling back to the value
74
+ * captured when the request was enqueued.
75
+ */
76
+ private getCurrentSelfUrl;
77
+ /**
78
+ * Decides whether a 409 warrants a retry against the meeting's latest
79
+ * selfUrl.
80
+ */
81
+ private shouldRetryOnSelfUrlChange;
70
82
  /**
71
83
  * Sends a media request to Locus
72
84
  */
@@ -63,6 +63,7 @@ export default class MeetingRequest extends StatelessWebexPlugin {
63
63
  locale?: string;
64
64
  deviceCapabilities?: Array<string>;
65
65
  liveAnnotationSupported: boolean;
66
+ enableSimultaneousInterpretation: boolean;
66
67
  alias?: string;
67
68
  clientMediaPreferences: ClientMediaPreferences;
68
69
  }): Promise<any>;
@@ -133,6 +133,13 @@ declare const MeetingUtil: {
133
133
  * @returns {void}
134
134
  */
135
135
  addSequence: (meeting: any, requestBody: any) => void;
136
+ /**
137
+ * Checks if Locus API response contains a Locus DTO
138
+ *
139
+ * @param {any} response http response from Locus API call
140
+ * @returns {boolean} true if response contains a Locus DTO
141
+ */
142
+ isLocusDtoInAPIResponse(response: any): any;
136
143
  /**
137
144
  * Updates the locus info for the meeting with the locus
138
145
  * information returned from API requests made to Locus
@@ -146,6 +153,8 @@ declare const MeetingUtil: {
146
153
  generateLocusDeltaRequest: (originalMeeting: any) => (originalOptions: any) => any;
147
154
  canAttendeeRequestAiAssistantEnabled: (displayHints?: any[], roles?: any[]) => boolean;
148
155
  attendeeRequestAiAssistantDeclinedAll: (displayHints?: any[]) => boolean;
156
+ isAnonymizeDisplayNamesEnabled: (displayHints: any) => any;
157
+ canViewTheParticipantList: (displayHints: any, canNotViewTheParticipantList: boolean) => any;
149
158
  selfSupportsFeature: (feature: SELF_POLICY, userPolicies: Record<SELF_POLICY, boolean>) => boolean;
150
159
  parseInterpretationInfo: (meeting: any, meetingInfo: any) => void;
151
160
  /**
@@ -252,5 +252,6 @@ export default class MeetingInfoV2 {
252
252
  }, installedOrgID?: any, locusId?: any, extraParams?: object, options?: {
253
253
  meetingId?: string;
254
254
  sendCAevents?: boolean;
255
+ correlationId?: string;
255
256
  }, registrationId?: string, fullSiteUrl?: string, classificationId?: string): Promise<any>;
256
257
  }
@@ -8,7 +8,7 @@ import 'webrtc-adapter';
8
8
  import { LOCUSEVENT, DESTINATION_TYPE } from '../constants';
9
9
  import { CallStateForMetrics } from '../meeting';
10
10
  import Reachability from '../reachability';
11
- import { INoiseReductionEffect, IVirtualBackgroundEffect, MeetingRegistrationStatus } from './meetings.types';
11
+ import { FetchSitePreferencesMeViaSiteOptions, INoiseReductionEffect, IVirtualBackgroundEffect, MeetingRegistrationStatus, SitePreferencesResponse } from './meetings.types';
12
12
  import { HashTreeMessage } from '../hashTree/hashTreeParser';
13
13
  export type LocusEvent = {
14
14
  eventType: LOCUSEVENT;
@@ -104,6 +104,14 @@ export default class Meetings extends WebexPlugin {
104
104
  breakoutLocusForHandleLater: any;
105
105
  namespace: string;
106
106
  registrationStatus: MeetingRegistrationStatus;
107
+ /**
108
+ * Emits a metric describing how well this browser runs WebAssembly, used to spot browsers
109
+ * where real-time WASM effects (e.g. background noise removal) run poorly.
110
+ *
111
+ * @param {string} correlationId - correlation id to report the result against
112
+ * @returns {void}
113
+ */
114
+ private emitWasmRuntimePerformance;
107
115
  /**
108
116
  * Initializes the Meetings Plugin
109
117
  * @constructor
@@ -211,22 +219,6 @@ export default class Meetings extends WebexPlugin {
211
219
  * @returns {undefined}
212
220
  */
213
221
  private _toggleAdhocMeetings;
214
- /**
215
- * API to toggle TCP reachability, needs to be called before webex.meetings.register()
216
- * @param {Boolean} newValue
217
- * @private
218
- * @memberof Meetings
219
- * @returns {undefined}
220
- */
221
- private _toggleTcpReachability;
222
- /**
223
- * API to toggle TLS reachability, needs to be called before webex.meetings.register()
224
- * @param {Boolean} newValue
225
- * @private
226
- * @memberof Meetings
227
- * @returns {undefined}
228
- */
229
- private _toggleTlsReachability;
230
222
  /**
231
223
  * API to toggle backend ipv6 native support config, needs to be called before webex.meetings.register()
232
224
  *
@@ -254,6 +246,16 @@ export default class Meetings extends WebexPlugin {
254
246
  * @returns {undefined}
255
247
  */
256
248
  private _toggleEnableAudioTwccForMultistream;
249
+ /**
250
+ * API to toggle AV1 codec support for video slides in multistream,
251
+ * needs to be called before webex.meetings.joinWithMedia()
252
+ *
253
+ * @param {Boolean} newValue
254
+ * @private
255
+ * @memberof Meetings
256
+ * @returns {undefined}
257
+ */
258
+ private _toggleEnableAv1SlidesSupport;
257
259
  /**
258
260
  * API to toggle stopping ICE Candidates Gathering after first relay candidate,
259
261
  * needs to be called before webex.meetings.joinWithMedia()
@@ -368,6 +370,23 @@ export default class Meetings extends WebexPlugin {
368
370
  * @memberof Meetings
369
371
  */
370
372
  getPersonalMeetingRoom(): any;
373
+ /**
374
+ * Fetches site preferences for the provided Webex site, or the preferred Webex site.
375
+ * This is used to determine capabilities of the site, such as whether scheduling a webinar is supported.
376
+ *
377
+ * @param {object} [options]
378
+ * @param {string} [options.siteUrl] - Webex site URL. Defaults to preferredWebexSite, for example "cisco.webex.com".
379
+ * @param {string} [options.siteName] - Site name query override. Defaults to the site name derived from siteUrl, for example "cisco" for "cisco.webex.com".
380
+ * @param {SitePreferenceSelectOption[]} [options.selectOptions] - Preference sections to fetch. Defaults to 'scheduling'.
381
+ * @returns {Promise<SitePreferencesResponse>} site preferences response body
382
+ * @throws {ParameterError}
383
+ * @public
384
+ * @memberof Meetings
385
+ * @example
386
+ * const preferences = await webex.meetings.fetchSitePreferencesMeViaSite();
387
+ * const supportScheduleWebinar = preferences?.scheduling?.supportScheduleWebinar;
388
+ */
389
+ fetchSitePreferencesMeViaSite(options?: FetchSitePreferencesMeViaSiteOptions): Promise<SitePreferencesResponse>;
371
390
  /**
372
391
  * Returns basic information about a meeting that exists or
373
392
  * used to exist in the MeetingCollection
@@ -471,14 +490,16 @@ export default class Meetings extends WebexPlugin {
471
490
  */
472
491
  getAllMeetings(): any;
473
492
  /**
474
- * Syncs all the meetings from server. Does nothing and returns immediately if unverified guest.
493
+ * Syncs all the meetings from server. For unverified guests it skips the getActiveMeetings() call
494
+ * (which Locus rejects for them) and instead resyncs each meeting individually via LocusInfo#sync.
475
495
  * @param {boolean} keepOnlyLocusMeetings - whether the sync should keep only locus meetings or any other meeting in meetingCollection
476
496
  * @returns {Promise<void>}
477
497
  * @public
478
498
  * @memberof Meetings
479
499
  */
480
- syncMeetings({ keepOnlyLocusMeetings }?: {
500
+ syncMeetings({ keepOnlyLocusMeetings, skipHashTreeSync, }?: {
481
501
  keepOnlyLocusMeetings?: boolean;
502
+ skipHashTreeSync?: boolean;
482
503
  }): Promise<void>;
483
504
  /**
484
505
  * sort out locus array for initial creating
@@ -19,3 +19,18 @@ export type MeetingRegistrationStatus = {
19
19
  mercuryConnect: boolean;
20
20
  checkH264Support: boolean;
21
21
  };
22
+ export declare enum SitePreferenceSelectOption {
23
+ SCHEDULING = "scheduling"
24
+ }
25
+ export type FetchSitePreferencesMeViaSiteOptions = {
26
+ siteUrl?: string;
27
+ siteName?: string;
28
+ selectOptions?: SitePreferenceSelectOption[];
29
+ };
30
+ export declare const DEFAULT_SITE_PREFERENCE_SELECT_OPTIONS: SitePreferenceSelectOption[];
31
+ export type SitePreferencesResponse = {
32
+ scheduling?: {
33
+ supportScheduleWebinar?: boolean;
34
+ webinarWebLink?: string;
35
+ };
36
+ };
@@ -1,4 +1,5 @@
1
1
  import { StatelessWebexPlugin } from '@webex/webex-core';
2
+ import { type FetchSitePreferencesMeViaSiteOptions, type SitePreferencesResponse } from './meetings.types';
2
3
  /**
3
4
  * @class MeetingRequest
4
5
  */
@@ -18,6 +19,19 @@ export default class MeetingRequest extends StatelessWebexPlugin {
18
19
  * @returns {Promise<object>} getMeetingPreferences
19
20
  */
20
21
  getMeetingPreferences(): any;
22
+ /**
23
+ * Fetches site preferences from a given site given a select option and a siteUrl with an optional siteName. If siteName is not provided, it will be derived from the siteUrl. If siteUrl is not provided, it will throw an error. If selectOptions is not provided, it will default to scheduling.
24
+ *
25
+ * @param {object} [options]
26
+ * @param {string} [options.siteUrl] - Webex site URL, for example "cisco.webex.com".
27
+ * @param {string} [options.siteName] - Site name query override. Defaults to the site name derived from options.siteUrl, e.g., "cisco".
28
+ * @param {SitePreferenceSelectOption[]} [options.selectOptions] - Preference sections to fetch. Defaults to 'scheduling'.
29
+ * @returns {Promise<SitePreferencesResponse>} site preferences response body
30
+ * @throws {ParameterError}
31
+ * @public
32
+ * @memberof MeetingRequest
33
+ */
34
+ fetchSitePreferencesMeViaSite(options?: FetchSitePreferencesMeViaSiteOptions): Promise<SitePreferencesResponse>;
21
35
  /**
22
36
  * Fetches indivdual locus rather then getting all at once
23
37
  * @param {object} responseBody determine the locus and fetch them if a remoteUrl is given
@@ -20,6 +20,7 @@ export default class Member {
20
20
  isModerator: any;
21
21
  isModeratorAssignmentProhibited: any;
22
22
  isPresenterAssignmentProhibited: any;
23
+ isAttendeeAssignmentProhibited: any;
23
24
  isMutable: any;
24
25
  isNotAdmitted: any;
25
26
  isRecording: any;
@@ -89,6 +89,7 @@ export interface Participant {
89
89
  moderator: boolean;
90
90
  moderatorAssignmentNotAllowed: boolean;
91
91
  presenterAssignmentNotAllowed: boolean;
92
+ attendeeAssignmentNotAllowed?: boolean;
92
93
  person: ParticipantPerson;
93
94
  resourceGuest: boolean;
94
95
  state: string;
@@ -66,6 +66,7 @@ declare const MemberUtil: {
66
66
  isDevice: (participant: Participant) => boolean;
67
67
  isModeratorAssignmentProhibited: (participant: Participant) => boolean;
68
68
  isPresenterAssignmentProhibited: (participant: Participant) => boolean;
69
+ isAttendeeAssignmentProhibited: (participant: Participant) => boolean;
69
70
  /**
70
71
  * checks to see if the participant id is the same as the passed id
71
72
  * there are multiple ids that can be used
@@ -163,5 +164,13 @@ declare const MemberUtil: {
163
164
  * @returns {String}
164
165
  */
165
166
  extractPairedWithParticipantUrl: (participant: Participant) => ParticipantUrl | undefined;
167
+ /**
168
+ * Collects all CSIs reported for a participant across all their devices,
169
+ * looking at both the top-level `csis` array and any `mediaSessions[].csi` values.
170
+ *
171
+ * @param {Object} participant - The locus participant object.
172
+ * @returns {Array<number>} unique CSIs for this participant
173
+ */
174
+ extractCsis: (participant: Participant) => number[];
166
175
  };
167
176
  export default MemberUtil;