@webex/plugin-meetings 3.12.0-next.10 → 3.12.0-next.101

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 (230) 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/breakouts/breakout.js +8 -3
  5. package/dist/breakouts/breakout.js.map +1 -1
  6. package/dist/breakouts/index.js +26 -2
  7. package/dist/breakouts/index.js.map +1 -1
  8. package/dist/common/errors/webex-errors.js +49 -5
  9. package/dist/common/errors/webex-errors.js.map +1 -1
  10. package/dist/config.js +2 -2
  11. package/dist/config.js.map +1 -1
  12. package/dist/constants.js +35 -9
  13. package/dist/constants.js.map +1 -1
  14. package/dist/controls-options-manager/constants.js +11 -1
  15. package/dist/controls-options-manager/constants.js.map +1 -1
  16. package/dist/controls-options-manager/index.js +67 -29
  17. package/dist/controls-options-manager/index.js.map +1 -1
  18. package/dist/controls-options-manager/util.js +91 -0
  19. package/dist/controls-options-manager/util.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 +880 -382
  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 +401 -115
  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 +19 -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 +1 -0
  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 +1389 -821
  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 +35 -2
  62. package/dist/meeting/util.js.map +1 -1
  63. package/dist/meeting-info/meeting-info-v2.js +2 -2
  64. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  65. package/dist/meetings/index.js +231 -118
  66. package/dist/meetings/index.js.map +1 -1
  67. package/dist/meetings/meetings.types.js +6 -1
  68. package/dist/meetings/meetings.types.js.map +1 -1
  69. package/dist/meetings/request.js +39 -0
  70. package/dist/meetings/request.js.map +1 -1
  71. package/dist/meetings/util.js +116 -18
  72. package/dist/meetings/util.js.map +1 -1
  73. package/dist/member/index.js +10 -0
  74. package/dist/member/index.js.map +1 -1
  75. package/dist/member/types.js.map +1 -1
  76. package/dist/member/util.js +30 -0
  77. package/dist/member/util.js.map +1 -1
  78. package/dist/members/index.js +101 -43
  79. package/dist/members/index.js.map +1 -1
  80. package/dist/members/util.js +8 -1
  81. package/dist/members/util.js.map +1 -1
  82. package/dist/metrics/constants.js +6 -1
  83. package/dist/metrics/constants.js.map +1 -1
  84. package/dist/multistream/codec/constants.js +63 -0
  85. package/dist/multistream/codec/constants.js.map +1 -0
  86. package/dist/multistream/mediaRequestManager.js +62 -15
  87. package/dist/multistream/mediaRequestManager.js.map +1 -1
  88. package/dist/multistream/receiveSlot.js +9 -0
  89. package/dist/multistream/receiveSlot.js.map +1 -1
  90. package/dist/reachability/clusterReachability.js.map +1 -1
  91. package/dist/reachability/index.js +121 -83
  92. package/dist/reachability/index.js.map +1 -1
  93. package/dist/reachability/reachability.types.js +2 -0
  94. package/dist/reachability/reachability.types.js.map +1 -1
  95. package/dist/reachability/util.js +45 -0
  96. package/dist/reachability/util.js.map +1 -1
  97. package/dist/reactions/reactions.type.js.map +1 -1
  98. package/dist/recording-controller/index.js +1 -3
  99. package/dist/recording-controller/index.js.map +1 -1
  100. package/dist/roap/turnDiscovery.js +8 -1
  101. package/dist/roap/turnDiscovery.js.map +1 -1
  102. package/dist/types/common/errors/webex-errors.d.ts +32 -2
  103. package/dist/types/config.d.ts +2 -2
  104. package/dist/types/constants.d.ts +12 -1
  105. package/dist/types/controls-options-manager/constants.d.ts +6 -1
  106. package/dist/types/controls-options-manager/index.d.ts +16 -0
  107. package/dist/types/hashTree/constants.d.ts +1 -0
  108. package/dist/types/hashTree/hashTreeParser.d.ts +146 -17
  109. package/dist/types/hashTree/utils.d.ts +7 -0
  110. package/dist/types/index.d.ts +3 -0
  111. package/dist/types/interceptors/locusRetry.d.ts +4 -4
  112. package/dist/types/interpretation/interpretation.types.d.ts +10 -0
  113. package/dist/types/locus-info/index.d.ts +59 -6
  114. package/dist/types/locus-info/infoUtils.d.ts +8 -0
  115. package/dist/types/locus-info/types.d.ts +21 -1
  116. package/dist/types/media/MediaConnectionAwaiter.d.ts +10 -1
  117. package/dist/types/media/properties.d.ts +1 -0
  118. package/dist/types/meeting/in-meeting-actions.d.ts +4 -0
  119. package/dist/types/meeting/index.d.ts +121 -10
  120. package/dist/types/meeting/locusMediaRequest.d.ts +12 -0
  121. package/dist/types/meeting/request.d.ts +1 -0
  122. package/dist/types/meeting/util.d.ts +9 -0
  123. package/dist/types/meetings/index.d.ts +30 -18
  124. package/dist/types/meetings/meetings.types.d.ts +15 -0
  125. package/dist/types/meetings/request.d.ts +14 -0
  126. package/dist/types/member/index.d.ts +1 -0
  127. package/dist/types/member/types.d.ts +1 -0
  128. package/dist/types/member/util.d.ts +9 -0
  129. package/dist/types/members/index.d.ts +15 -2
  130. package/dist/types/members/util.d.ts +1 -5
  131. package/dist/types/metrics/constants.d.ts +5 -0
  132. package/dist/types/multistream/codec/constants.d.ts +7 -0
  133. package/dist/types/multistream/mediaRequestManager.d.ts +22 -5
  134. package/dist/types/reachability/clusterReachability.d.ts +3 -3
  135. package/dist/types/reachability/index.d.ts +10 -3
  136. package/dist/types/reachability/reachability.types.d.ts +7 -0
  137. package/dist/types/reachability/util.d.ts +17 -0
  138. package/dist/types/reactions/reactions.type.d.ts +3 -0
  139. package/dist/webinar/index.js +305 -159
  140. package/dist/webinar/index.js.map +1 -1
  141. package/package.json +22 -22
  142. package/src/aiEnableRequest/index.ts +16 -0
  143. package/src/breakouts/breakout.ts +3 -1
  144. package/src/breakouts/index.ts +31 -0
  145. package/src/common/errors/webex-errors.ts +50 -3
  146. package/src/config.ts +2 -2
  147. package/src/constants.ts +20 -3
  148. package/src/controls-options-manager/constants.ts +14 -1
  149. package/src/controls-options-manager/index.ts +87 -28
  150. package/src/controls-options-manager/util.ts +81 -1
  151. package/src/hashTree/constants.ts +7 -0
  152. package/src/hashTree/hashTreeParser.ts +578 -193
  153. package/src/hashTree/utils.ts +19 -0
  154. package/src/index.ts +6 -0
  155. package/src/interceptors/dataChannelAuthToken.ts +88 -12
  156. package/src/interceptors/locusRetry.ts +25 -4
  157. package/src/interpretation/index.ts +27 -9
  158. package/src/interpretation/interpretation.types.ts +11 -0
  159. package/src/locus-info/controlsUtils.ts +3 -1
  160. package/src/locus-info/index.ts +415 -136
  161. package/src/locus-info/infoUtils.ts +41 -6
  162. package/src/locus-info/types.ts +25 -1
  163. package/src/media/MediaConnectionAwaiter.ts +21 -4
  164. package/src/media/index.ts +10 -1
  165. package/src/media/properties.ts +1 -0
  166. package/src/meeting/in-meeting-actions.ts +8 -0
  167. package/src/meeting/index.ts +644 -98
  168. package/src/meeting/locusMediaRequest.ts +106 -6
  169. package/src/meeting/muteState.ts +10 -1
  170. package/src/meeting/request.ts +11 -0
  171. package/src/meeting/util.ts +47 -5
  172. package/src/meeting-info/meeting-info-v2.ts +4 -2
  173. package/src/meetings/index.ts +133 -78
  174. package/src/meetings/meetings.types.ts +19 -0
  175. package/src/meetings/request.ts +43 -0
  176. package/src/meetings/util.ts +117 -4
  177. package/src/member/index.ts +10 -0
  178. package/src/member/types.ts +1 -0
  179. package/src/member/util.ts +29 -0
  180. package/src/members/index.ts +70 -7
  181. package/src/members/util.ts +12 -4
  182. package/src/metrics/constants.ts +5 -0
  183. package/src/multistream/codec/constants.ts +58 -0
  184. package/src/multistream/mediaRequestManager.ts +119 -28
  185. package/src/multistream/receiveSlot.ts +18 -0
  186. package/src/reachability/clusterReachability.ts +3 -2
  187. package/src/reachability/index.ts +47 -16
  188. package/src/reachability/reachability.types.ts +11 -0
  189. package/src/reachability/util.ts +36 -0
  190. package/src/reactions/reactions.type.ts +3 -0
  191. package/src/recording-controller/index.ts +1 -2
  192. package/src/roap/turnDiscovery.ts +9 -1
  193. package/src/webinar/index.ts +214 -36
  194. package/test/unit/spec/aiEnableRequest/index.ts +86 -0
  195. package/test/unit/spec/breakouts/breakout.ts +9 -3
  196. package/test/unit/spec/breakouts/index.ts +49 -0
  197. package/test/unit/spec/common/errors/webex-errors.ts +78 -0
  198. package/test/unit/spec/controls-options-manager/index.js +244 -29
  199. package/test/unit/spec/controls-options-manager/util.js +165 -0
  200. package/test/unit/spec/hashTree/hashTreeParser.ts +1848 -318
  201. package/test/unit/spec/hashTree/utils.ts +37 -0
  202. package/test/unit/spec/interceptors/dataChannelAuthToken.ts +196 -0
  203. package/test/unit/spec/interceptors/locusRetry.ts +205 -4
  204. package/test/unit/spec/interpretation/index.ts +26 -4
  205. package/test/unit/spec/locus-info/controlsUtils.js +172 -57
  206. package/test/unit/spec/locus-info/index.js +645 -80
  207. package/test/unit/spec/locus-info/infoUtils.js +184 -1
  208. package/test/unit/spec/media/MediaConnectionAwaiter.ts +55 -0
  209. package/test/unit/spec/media/index.ts +92 -0
  210. package/test/unit/spec/meeting/in-meeting-actions.ts +4 -0
  211. package/test/unit/spec/meeting/index.js +2119 -98
  212. package/test/unit/spec/meeting/locusMediaRequest.ts +406 -4
  213. package/test/unit/spec/meeting/muteState.js +81 -0
  214. package/test/unit/spec/meeting/request.js +12 -0
  215. package/test/unit/spec/meeting/utils.js +157 -1
  216. package/test/unit/spec/meeting-info/meetinginfov2.js +19 -10
  217. package/test/unit/spec/meetings/index.js +363 -36
  218. package/test/unit/spec/meetings/request.js +141 -0
  219. package/test/unit/spec/meetings/utils.js +402 -51
  220. package/test/unit/spec/member/index.js +7 -0
  221. package/test/unit/spec/member/util.js +89 -0
  222. package/test/unit/spec/members/index.js +216 -0
  223. package/test/unit/spec/members/request.js +37 -1
  224. package/test/unit/spec/members/utils.js +63 -0
  225. package/test/unit/spec/multistream/mediaRequestManager.ts +501 -37
  226. package/test/unit/spec/reachability/index.ts +128 -46
  227. package/test/unit/spec/reachability/util.ts +31 -0
  228. package/test/unit/spec/recording-controller/index.js +9 -8
  229. package/test/unit/spec/roap/turnDiscovery.ts +20 -0
  230. package/test/unit/spec/webinar/index.ts +329 -28
@@ -16,6 +16,9 @@ export * as REACTIONS from './reactions/reactions';
16
16
  export * as sdkAnnotationTypes from './annotation/annotation.types';
17
17
  export * as MeetingInfoV2 from './meeting-info/meeting-info-v2';
18
18
  export { type Reaction } from './reactions/reactions.type';
19
+ export { SitePreferenceSelectOption } from './meetings/meetings.types';
20
+ export type { FetchSitePreferencesMeViaSiteOptions, SitePreferencesResponse, } from './meetings/meetings.types';
21
+ export type { Interpreter, InterpreterUsingResource } from './interpretation/interpretation.types';
19
22
  export { CaptchaError, IntentToJoinError, JoinMeetingError, PasswordError, PermissionError, ReclaimHostIsHostAlreadyError, ReclaimHostNotAllowedError, ReclaimHostNotSupportedError, ReclaimHostEmptyWrongKeyError, Meeting, MeetingInfoUtil, JoinWebinarError, SdpResponseTimeoutError, };
20
23
  export { RemoteMedia } from './multistream/remoteMedia';
21
24
  export { default as TriggerProxy } from './common/events/trigger-proxy';
@@ -11,11 +11,11 @@ export default class LocusRetryStatusInterceptor extends Interceptor {
11
11
  */
12
12
  static create(): LocusRetryStatusInterceptor;
13
13
  /**
14
- * Handle response errors
15
- * @param {Object} options
16
- * @param {WebexHttpError} reason
17
- * @returns {Promise<WebexHttpError>}
14
+ * Check whether a URI is a Locus /hashtree or /sync endpoint.
15
+ * @param {string} uri
16
+ * @returns {boolean}
18
17
  */
18
+ private static isLocusHashtreeOrSync;
19
19
  onResponseError(options: any, reason: any): Promise<unknown>;
20
20
  /**
21
21
  * Handle retries for locus service unavailable errors
@@ -0,0 +1,10 @@
1
+ export type InterpreterUsingResource = {
2
+ id: string;
3
+ email?: string;
4
+ };
5
+ export type Interpreter = {
6
+ order: number;
7
+ sourceLanguage: string;
8
+ targetLanguage: string;
9
+ usingResource: InterpreterUsingResource;
10
+ };
@@ -25,10 +25,9 @@ export type HashTreeParserEntry = {
25
25
  *
26
26
  * @param {HashTreeMessage} message - The hash tree message to find the meeting for
27
27
  * @param {MeetingCollection} meetingCollection - The collection of meetings to search
28
- * @param {string} deviceUrl - The URL of the user's device
29
28
  * @returns {any} The meeting if found, otherwise undefined
30
29
  */
31
- export declare function findMeetingForHashTreeMessage(message: HashTreeMessage, meetingCollection: MeetingCollection, deviceUrl: string): any;
30
+ export declare function findMeetingForHashTreeMessage(message: HashTreeMessage | undefined, meetingCollection: MeetingCollection): any;
32
31
  /**
33
32
  * Creates a locus object from the objects received in a hash tree message. It usually will be
34
33
  * incomplete, because hash tree messages only contain the parts of locus that have changed,
@@ -77,6 +76,7 @@ export default class LocusInfo extends EventsScope {
77
76
  hashTreeParsers: Map<string, HashTreeParserEntry>;
78
77
  hashTreeObjectId2ParticipantId: Map<number, string>;
79
78
  classicVsHashTreeMismatchMetricCounter: number;
79
+ private destroyMeetingSuspended;
80
80
  /**
81
81
  * Constructor
82
82
  * @param {function} updateMeeting callback to update the meeting object from an object
@@ -130,6 +130,7 @@ export default class LocusInfo extends EventsScope {
130
130
  private createHashTreeParser;
131
131
  /**
132
132
  * @param {Object} data - data to initialize locus info with. It may be from a join or GET /loci response or from a Mercury event that triggers a creation of meeting object
133
+ * @param {Function} [onLocusSynced] - optional callback that will be called at the end of initial setup, when locus info is fully synced. It will be called with the full locus snapshot as an argument (which may be null if we haven't received any full locus DTOs during the initial setup, for example in case we receive only hash tree messages without full locus DTOs)
133
134
  * @returns {undefined}
134
135
  * @memberof LocusInfo
135
136
  */
@@ -145,7 +146,13 @@ export default class LocusInfo extends EventsScope {
145
146
  } | {
146
147
  trigger: 'get-loci-response';
147
148
  locus?: LocusDTO;
148
- }): Promise<void>;
149
+ }, onLocusSynced?: (locus: LocusDTO) => void): Promise<void>;
150
+ /**
151
+ * Builds a full locus DTO snapshot from current internal locus state.
152
+ *
153
+ * @returns {LocusDTO}
154
+ */
155
+ private getCurrentLocusSnapshot;
149
156
  /**
150
157
  * Handles HTTP response from Locus API call.
151
158
  * @param {Meeting} meeting meeting object
@@ -167,6 +174,28 @@ export default class LocusInfo extends EventsScope {
167
174
  * @returns {void}
168
175
  */
169
176
  sendClassicVsHashTreeMismatchMetric(meeting: any, message: string): void;
177
+ /**
178
+ * Helper that handles the common logic for reactivating a stopped HashTreeParser when
179
+ * a newer "replaces" is detected. Used by both the message and API response parser switch methods.
180
+ *
181
+ * @param {string} callerName - name of the calling method, used in log messages
182
+ * @param {string} locusUrl - the locus URL of the stopped parser
183
+ * @param {HashTreeParserEntry} stoppedEntry - the stopped parser entry
184
+ * @param {ReplacesInfo} replaces - replacement info extracted from self
185
+ * @param {Function} resumeCallback - callback to invoke after reactivation to resume the parser
186
+ * @returns {void}
187
+ */
188
+ private resumeStoppedParser;
189
+ /**
190
+ * Handles an API response whose locusUrl doesn't match any active HashTreeParser
191
+ * (either no entry exists, or the existing entry is stopped).
192
+ * Creates a new parser or reactivates a stopped one using initializeFromGetLociResponse.
193
+ *
194
+ * @param {string} locusUrl - the locus URL from the API response
195
+ * @param {LocusDTO} locus - the locus DTO from the API response
196
+ * @returns {void}
197
+ */
198
+ private handleHashTreeParserSwitchForAPIResponse;
170
199
  /**
171
200
  * Checks if the hash tree message should trigger a switch to a different HashTreeParser
172
201
  *
@@ -183,13 +212,23 @@ export default class LocusInfo extends EventsScope {
183
212
  * @returns {void}
184
213
  */
185
214
  private handleHashTreeMessage;
215
+ /**
216
+ * Triggers a sync of all hash tree datasets for all hash tree parsers associated with this meeting.
217
+ * The syncs are executed sequentially within each parser.
218
+ *
219
+ * @param {Object} [options={}] - Options for syncing
220
+ * @param {boolean} [options.onlyLLM=false] - Whether to sync only LLM based data sets
221
+ * @returns {Promise<void>}
222
+ */
223
+ syncAllHashTreeDatasets(options?: {
224
+ onlyLLM?: boolean;
225
+ }): Promise<void>;
186
226
  /**
187
227
  * Callback registered with HashTreeParser to receive locus info updates.
188
228
  * Updates our locus info based on the data parsed by the hash tree parser.
189
229
  *
190
230
  * @param {string} locusUrl - the locus URL for which the update is received
191
- * @param {LocusInfoUpdateType} updateType - The type of update received.
192
- * @param {Object} [data] - Additional data for the update, if applicable.
231
+ * @param {LocusInfoUpdate} update - Details about the update.
193
232
  * @returns {void}
194
233
  */
195
234
  private updateFromHashTree;
@@ -214,8 +253,8 @@ export default class LocusInfo extends EventsScope {
214
253
  * @param {string} debugText string explaining the trigger for this call, added to logs for debugging purposes
215
254
  * @param {object} locus locus object
216
255
  * @param {object} metadata locus hash trees metadata
217
- * @param {string} eventType locus event
218
256
  * @param {DataSet[]} dataSets
257
+ * @param {string} eventType locus event
219
258
  * @returns {void}
220
259
  */
221
260
  private onFullLocusWithHashTrees;
@@ -283,6 +322,14 @@ export default class LocusInfo extends EventsScope {
283
322
  * @memberof LocusInfo
284
323
  */
285
324
  isMeetingActive(): void;
325
+ /**
326
+ * Suspends or resumes the emission of DESTROY_MEETING events in certain situations.
327
+ * Used by joinWithMedia to prevent meeting destruction during retry flows.
328
+ * @param {boolean} suspend - true to suppress, false to resume
329
+ * @returns {undefined}
330
+ * @memberof LocusInfo
331
+ */
332
+ suspendDestroyMeeting(suspend: boolean): void;
286
333
  /**
287
334
  * checks if the host permissions have changed while in the meeting
288
335
  * This would be the case if your role as host or moderator has been updated
@@ -444,4 +491,10 @@ export default class LocusInfo extends EventsScope {
444
491
  * @memberof LocusInfo
445
492
  */
446
493
  clearMainSessionLocusCache(): void;
494
+ /**
495
+ * Cleans up all hash tree parsers and clears internal maps.
496
+ * @returns {void}
497
+ * @memberof LocusInfo
498
+ */
499
+ cleanUp(): void;
447
500
  }
@@ -1,2 +1,10 @@
1
+ export declare enum DisplayHintSection {
2
+ JOINED = "joined",
3
+ MODERATOR = "moderator",
4
+ COHOST = "coHost",
5
+ PRESENTER = "presenter",
6
+ PANELIST = "panelist",
7
+ ATTENDEE = "attendee"
8
+ }
1
9
  declare const InfoUtils: any;
2
10
  export default InfoUtils;
@@ -1,14 +1,30 @@
1
+ import { Enum } from '../constants';
1
2
  import { HtMeta } from '../hashTree/types';
3
+ export declare const EndMeetingReason: {
4
+ readonly maxMeetingDuration: "MAX_MEETING_DURATION";
5
+ readonly allParticipantsLeft: "ALL_PARTICIPANTS_LEFT";
6
+ readonly sipHostLeft: "SIP_HOST_LEFT";
7
+ readonly noHost: "NO_HOST";
8
+ readonly waitingForMpsEndMeetingTimeout: "WAITING_FOR_MPS_END_MEETING_TIMEOUT";
9
+ readonly fraudDetection: "FRAUD_DETECTION";
10
+ readonly meetingEndedByHost: "MEETING_ENDED_BY_HOST";
11
+ readonly meetingUpdated: "MEETING_UPDATED";
12
+ readonly meetingCancelled: "MEETING_CANCELLED";
13
+ readonly autoEndWithSingleParticipant: "AUTO_END_WITH_SINGLE_PARTICIPANT";
14
+ readonly breakoutEnded: "BREAKOUT_ENDED";
15
+ };
16
+ export type EndMeetingReason = Enum<typeof EndMeetingReason>;
2
17
  export type LocusFullState = {
3
18
  active: boolean;
4
19
  count: number;
5
20
  lastActive: string;
6
21
  locked: boolean;
7
22
  sessionId: string;
8
- seessionIds: string[];
23
+ sessionIds: string[];
9
24
  startTime: number;
10
25
  state: string;
11
26
  type: string;
27
+ endMeetingReason?: EndMeetingReason;
12
28
  };
13
29
  export type Links = {
14
30
  services: Record<'breakout' | 'record', {
@@ -59,3 +75,7 @@ export type ReplacesInfo = {
59
75
  replacedAt: string;
60
76
  sessionId: string;
61
77
  };
78
+ export declare const LocusErrorCodes: {
79
+ readonly LOCUS_INACTIVE: 2403004;
80
+ };
81
+ export type LocusErrorCodes = Enum<typeof LocusErrorCodes>;
@@ -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;
@@ -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,14 @@ export default class Meeting extends StatelessWebexPlugin {
491
494
  isMoveToInProgress: boolean;
492
495
  registrationIdStatus: string;
493
496
  brbState: BrbState;
497
+ private promisesWaitingForPropUpdate;
494
498
  voiceaListenerCallbacks: object;
495
499
  private addMediaData;
496
500
  private sendSlotManager;
497
501
  private deferSDPAnswer?;
498
502
  private sdpResponseTimer?;
499
503
  private hasMediaConnectionConnectedAtLeastOnce;
500
- private joinWithMediaRetryInfo?;
504
+ private joinWithMediaRetryInfo;
501
505
  private connectionStateHandler?;
502
506
  private iceCandidateErrors;
503
507
  private iceCandidatesCount;
@@ -514,6 +518,15 @@ export default class Meeting extends StatelessWebexPlugin {
514
518
  * @memberof Meeting
515
519
  */
516
520
  constructor(attrs: any, options: object, callback: (meeting: Meeting) => void);
521
+ /**
522
+ * Get the ingress payload type for a given media type and codec mime type
523
+ * @param {MediaType} mediaType - The media type
524
+ * @param {MediaCodecMimeType} codecMimeType - The codec mime type
525
+ * @returns {number | undefined} - The ingress payload type
526
+ * @private
527
+ * @memberof Meeting
528
+ */
529
+ private getIngressPayloadTypeCallback;
517
530
  /**
518
531
  * returns meeting is joined
519
532
  * @private
@@ -970,7 +983,12 @@ export default class Meeting extends StatelessWebexPlugin {
970
983
  */
971
984
  mute(memberId: string, mute?: boolean): any;
972
985
  /**
973
- * Transfer the moderator role to another eligible member
986
+ * Transfer the moderator role to another eligible member.
987
+ *
988
+ * If the target member is currently joined in the current session, the request is
989
+ * sent against the current locus. Otherwise, we search the breakout sessions and,
990
+ * when the member is found in one, we send the request against that breakout
991
+ * session's locus url instead.
974
992
  * @param {String} memberId
975
993
  * @param {Boolean} moderator
976
994
  * @returns {Promise} see #members.transferHostToMember
@@ -1051,6 +1069,13 @@ export default class Meeting extends StatelessWebexPlugin {
1051
1069
  * @memberof Meeting
1052
1070
  */
1053
1071
  setSipUri(sipUri: string): void;
1072
+ /**
1073
+ * After initial locus setup, refreshes destination with synced locus data and optionally
1074
+ * performs deferred meeting info fetch when initial locus was incomplete.
1075
+ * @param {LocusDTO} locus
1076
+ * @returns {void}
1077
+ */
1078
+ finalizeMeetingAfterInitialLocusSetup(locus: LocusDTO): Promise<void>;
1054
1079
  /**
1055
1080
  * Set the locus info the class instance. Should be called with the parsed locus
1056
1081
  * we got in the join response.
@@ -1163,6 +1188,22 @@ export default class Meeting extends StatelessWebexPlugin {
1163
1188
  * @memberof Meeting
1164
1189
  */
1165
1190
  setMercuryListener(): void;
1191
+ /**
1192
+ * Removes this meeting's Mercury ONLINE/OFFLINE event listeners registered
1193
+ * by setMercuryListener(). Must be called before Locus /leave to avoid
1194
+ * unnecessary syncs/metrics triggered by events received while leaving
1195
+ * (per Locus team recommendation).
1196
+ *
1197
+ * Mercury is a process-wide singleton shared with other plugins, so we
1198
+ * pass the bound handler refs to .off() to avoid clearing every listener
1199
+ * for ONLINE/OFFLINE on the shared emitter.
1200
+ *
1201
+ * Idempotent: subsequent calls are no-ops because the handler refs are
1202
+ * cleared after detaching.
1203
+ * @private
1204
+ * @returns {void}
1205
+ */
1206
+ private stopListeningForMercuryEvents;
1166
1207
  /**
1167
1208
  * Close the peer connections and remove them from the class.
1168
1209
  * Cleanup any media connection related things.
@@ -1299,6 +1340,12 @@ export default class Meeting extends StatelessWebexPlugin {
1299
1340
  * @returns {void}
1300
1341
  */
1301
1342
  private processLocusLLMEvent;
1343
+ /**
1344
+ * Verifies the relay event was delivered for the active LLM session binding.
1345
+ * @param {RelayEvent} event Event object coming from LLM Connection
1346
+ * @returns {boolean}
1347
+ */
1348
+ private isRelayEventRouteValid;
1302
1349
  /**
1303
1350
  * Callback called when a relay event is received from meeting LLM Connection
1304
1351
  * @param {RelayEvent} e Event object coming from LLM Connection
@@ -1356,8 +1403,41 @@ export default class Meeting extends StatelessWebexPlugin {
1356
1403
  * @returns {void}
1357
1404
  */
1358
1405
  private clearLLMHealthCheckTimer;
1406
+ /**
1407
+ * Removes LLM event listeners and clears the health check timer.
1408
+ * Must be called before Locus /leave to avoid unnecessary syncs triggered
1409
+ * by events received while leaving (per Locus team recommendation).
1410
+ * Idempotent: safe to call multiple times; .off() is a no-op when no
1411
+ * matching listener is registered.
1412
+ * @private
1413
+ * @returns {void}
1414
+ */
1415
+ private stopListeningForLLMEvents;
1416
+ /**
1417
+ * Stops listening on every event bus (LLM, Mercury, voicea/transcription,
1418
+ * annotation) that could otherwise deliver events to this meeting while
1419
+ * Locus is processing /leave or /end. Per the Locus team recommendation,
1420
+ * this must run before the Locus request is dispatched to avoid
1421
+ * unnecessary syncs triggered by in-flight events.
1422
+ *
1423
+ * Voicea (transcription) subscribes to llm 'event:relay.event' internally,
1424
+ * and the annotation plugin subscribes to both mercury and llm, so both
1425
+ * must be torn down alongside the direct LLM/Mercury listeners.
1426
+ *
1427
+ * Idempotent: safe to call multiple times; .off() is a no-op when no
1428
+ * matching listener is registered, and stopTranscription is guarded.
1429
+ * @private
1430
+ * @returns {void}
1431
+ */
1432
+ private stopListeningForMeetingEvents;
1359
1433
  /**
1360
1434
  * Disconnects and cleans up the default LLM session listeners/timers.
1435
+ *
1436
+ * Ownership-aware: only calls `disconnectLLM` when this meeting is the
1437
+ * current owner of the default LLM session (or when no owner is recorded).
1438
+ * Event listeners belonging to this meeting instance are always detached
1439
+ * so they do not receive another meeting's relay events.
1440
+ *
1361
1441
  * @param {Object} options
1362
1442
  * @param {boolean} [options.removeOnlineListener=true] removes the one-time online listener
1363
1443
  * @param {boolean} [options.throwOnError=true] rethrows disconnect errors when true
@@ -1365,8 +1445,8 @@ export default class Meeting extends StatelessWebexPlugin {
1365
1445
  */
1366
1446
  private cleanupLLMConneciton;
1367
1447
  /**
1368
- * Clears all data channel tokens stored in LLM.
1369
- * Called during meeting cleanup to ensure stale tokens are not reused.
1448
+ * Clears data channel tokens associated with this meeting ownership.
1449
+ * Ownership checks are enforced in internal-plugin-llm.
1370
1450
  * @returns {void}
1371
1451
  */
1372
1452
  clearDataChannelToken(): void;
@@ -1466,12 +1546,35 @@ export default class Meeting extends StatelessWebexPlugin {
1466
1546
  */
1467
1547
  setupStatsAnalyzerEventHandlers: () => void;
1468
1548
  getMediaConnectionDebugId(): string;
1549
+ /**
1550
+ * Checks if the error indicates that Locus dropped us from the meeting,
1551
+ * either directly on the error or wrapped inside an AddMediaFailed cause.
1552
+ * This method is meant to be called only with errors thrown by Meeting.addMediaInternal()
1553
+ *
1554
+ * @param {Error} error
1555
+ * @returns {boolean}
1556
+ */
1557
+ private isErrorMeaningLocusDroppedUs;
1558
+ /**
1559
+ * Determines if the next media attempt should use only TURN-TLS (iceTransportPolicy='relay').
1560
+ * We do this in the hope that it will minimize the chance of Homer sending DTLS packets on a wrong
1561
+ * transport (as there will be only 1 transport) and dealing with firewalls that let STUN packets through, but block
1562
+ * other UDP traffic.
1563
+ *
1564
+ * For clients landing on video mesh nodes (VMN), reachability might still have successful TLS (to public nodes)
1565
+ * but TURN discovery will result in empty TURN urls array and iceTransportPolicy='relay' will still be overriden to undefined,
1566
+ * see the code in establishMediaConnection()
1567
+ *
1568
+ * @param {Error} prevError - The error from the previous addMedia attempt
1569
+ * @returns {Promise<boolean>}
1570
+ */
1571
+ private shouldRetryMediaWithOnlyTurnTLS;
1469
1572
  /**
1470
1573
  * Creates a webrtc media connection and publishes streams to it
1471
1574
  *
1472
1575
  * @param {Object} turnServerInfo TURN server information
1473
1576
  * @param {BundlePolicy} [bundlePolicy] Bundle policy settings
1474
- * @param {AddMediaOptions} [options] Options for enabling/disabling audio/video
1577
+ * @param {RTCIceTransportPolicy} [iceTransportPolicy] ICE transport policy override
1475
1578
  * @returns {RoapMediaConnection | MultistreamRoapMediaConnection}
1476
1579
  */
1477
1580
  private createMediaConnection;
@@ -1597,6 +1700,13 @@ export default class Meeting extends StatelessWebexPlugin {
1597
1700
  * @returns {void}
1598
1701
  */
1599
1702
  private setupLocusMediaRequest;
1703
+ /**
1704
+ * Waits for LocusInfo to update meeting.selfUrl, with a timeout fallback.
1705
+ * @returns {Promise<void>}
1706
+ * @private
1707
+ * @memberof Meeting
1708
+ */
1709
+ private waitForSelfUrlChange;
1600
1710
  /**
1601
1711
  * Creates a media connection to the server. Media connection is required for sending or receiving any audio/video.
1602
1712
  *
@@ -1610,14 +1720,15 @@ export default class Meeting extends StatelessWebexPlugin {
1610
1720
  * Internal version of addMedia() with some more arguments for finer control of its behavior
1611
1721
  *
1612
1722
  * @param {Function} icePhaseCallback - callback to determine the icePhase for CA "client.ice.end" failure events
1613
- * @param {TurnServerInfo} turnServerInfo - TURN server information
1614
1723
  * @param {boolean} forceTurnDiscovery - if true, TURN discovery will be done
1724
+ * @param {TurnServerInfo} turnServerInfo - TURN server information
1725
+ * @param {RTCIceTransportPolicy} [iceTransportPolicy] - ICE transport policy override
1615
1726
  * @param {AddMediaOptions} options - same as options of the public addMedia() method
1616
1727
  * @returns {Promise<void>}
1617
1728
  * @protected
1618
1729
  * @memberof Meeting
1619
1730
  */
1620
- protected addMediaInternal(icePhaseCallback: () => string, turnServerInfo: TurnServerInfo, forceTurnDiscovery: any, options?: AddMediaOptions): Promise<void>;
1731
+ protected addMediaInternal(icePhaseCallback: () => string, forceTurnDiscovery: boolean, turnServerInfo?: TurnServerInfo, iceTransportPolicy?: RTCIceTransportPolicy, options?: AddMediaOptions): Promise<void>;
1621
1732
  /**
1622
1733
  * Informs if the peer connection is in a state that can be updated with updateMedia (audio/video/share)
1623
1734
  * @returns {Boolean}
@@ -1980,7 +2091,7 @@ export default class Meeting extends StatelessWebexPlugin {
1980
2091
  * @public
1981
2092
  * @memberof Meeting
1982
2093
  */
1983
- sendReaction(reactionType: ReactionServerType, skinToneType?: SkinToneType): any;
2094
+ sendReaction(reactionType: string, skinToneType?: SkinToneType): any;
1984
2095
  /**
1985
2096
  * Extend the current meeting duration.
1986
2097
  *
@@ -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
  /**