@webex/plugin-meetings 3.11.0 → 3.12.0-metrics-init-fix-2.1

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 (293) hide show
  1. package/AGENTS.md +9 -0
  2. package/dist/aiEnableRequest/index.js +197 -0
  3. package/dist/aiEnableRequest/index.js.map +1 -0
  4. package/dist/aiEnableRequest/utils.js +36 -0
  5. package/dist/aiEnableRequest/utils.js.map +1 -0
  6. package/dist/annotation/index.js +14 -5
  7. package/dist/annotation/index.js.map +1 -1
  8. package/dist/breakouts/breakout.js +8 -3
  9. package/dist/breakouts/breakout.js.map +1 -1
  10. package/dist/breakouts/events.js +29 -14
  11. package/dist/breakouts/events.js.map +1 -1
  12. package/dist/breakouts/index.js +90 -3
  13. package/dist/breakouts/index.js.map +1 -1
  14. package/dist/common/errors/webex-errors.js +49 -5
  15. package/dist/common/errors/webex-errors.js.map +1 -1
  16. package/dist/config.js +8 -3
  17. package/dist/config.js.map +1 -1
  18. package/dist/constants.js +60 -11
  19. package/dist/constants.js.map +1 -1
  20. package/dist/controls-options-manager/constants.js +11 -1
  21. package/dist/controls-options-manager/constants.js.map +1 -1
  22. package/dist/controls-options-manager/index.js +67 -29
  23. package/dist/controls-options-manager/index.js.map +1 -1
  24. package/dist/controls-options-manager/util.js +91 -0
  25. package/dist/controls-options-manager/util.js.map +1 -1
  26. package/dist/hashTree/constants.js +16 -2
  27. package/dist/hashTree/constants.js.map +1 -1
  28. package/dist/hashTree/hashTree.js +18 -0
  29. package/dist/hashTree/hashTree.js.map +1 -1
  30. package/dist/hashTree/hashTreeParser.js +1655 -538
  31. package/dist/hashTree/hashTreeParser.js.map +1 -1
  32. package/dist/hashTree/types.js +4 -2
  33. package/dist/hashTree/types.js.map +1 -1
  34. package/dist/hashTree/utils.js +52 -0
  35. package/dist/hashTree/utils.js.map +1 -1
  36. package/dist/index.js +18 -2
  37. package/dist/index.js.map +1 -1
  38. package/dist/interceptors/constant.js +12 -0
  39. package/dist/interceptors/constant.js.map +1 -0
  40. package/dist/interceptors/dataChannelAuthToken.js +350 -0
  41. package/dist/interceptors/dataChannelAuthToken.js.map +1 -0
  42. package/dist/interceptors/index.js +7 -0
  43. package/dist/interceptors/index.js.map +1 -1
  44. package/dist/interceptors/locusRetry.js +23 -8
  45. package/dist/interceptors/locusRetry.js.map +1 -1
  46. package/dist/interceptors/utils.js +27 -0
  47. package/dist/interceptors/utils.js.map +1 -0
  48. package/dist/interpretation/index.js +11 -2
  49. package/dist/interpretation/index.js.map +1 -1
  50. package/dist/interpretation/interpretation.types.js +7 -0
  51. package/dist/interpretation/interpretation.types.js.map +1 -0
  52. package/dist/interpretation/siLanguage.js +1 -1
  53. package/dist/locus-info/controlsUtils.js +9 -4
  54. package/dist/locus-info/controlsUtils.js.map +1 -1
  55. package/dist/locus-info/index.js +911 -211
  56. package/dist/locus-info/index.js.map +1 -1
  57. package/dist/locus-info/infoUtils.js +36 -5
  58. package/dist/locus-info/infoUtils.js.map +1 -1
  59. package/dist/locus-info/selfUtils.js +1 -0
  60. package/dist/locus-info/selfUtils.js.map +1 -1
  61. package/dist/locus-info/types.js +19 -0
  62. package/dist/locus-info/types.js.map +1 -1
  63. package/dist/media/MediaConnectionAwaiter.js +72 -3
  64. package/dist/media/MediaConnectionAwaiter.js.map +1 -1
  65. package/dist/media/index.js +8 -2
  66. package/dist/media/index.js.map +1 -1
  67. package/dist/media/properties.js +8 -7
  68. package/dist/media/properties.js.map +1 -1
  69. package/dist/meeting/in-meeting-actions.js +11 -1
  70. package/dist/meeting/in-meeting-actions.js.map +1 -1
  71. package/dist/meeting/index.js +2276 -1067
  72. package/dist/meeting/index.js.map +1 -1
  73. package/dist/meeting/locusMediaRequest.js +229 -82
  74. package/dist/meeting/locusMediaRequest.js.map +1 -1
  75. package/dist/meeting/muteState.js +10 -1
  76. package/dist/meeting/muteState.js.map +1 -1
  77. package/dist/meeting/request.js +55 -2
  78. package/dist/meeting/request.js.map +1 -1
  79. package/dist/meeting/request.type.js.map +1 -1
  80. package/dist/meeting/util.js +168 -5
  81. package/dist/meeting/util.js.map +1 -1
  82. package/dist/meeting-info/meeting-info-v2.js +2 -2
  83. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  84. package/dist/meetings/index.js +369 -162
  85. package/dist/meetings/index.js.map +1 -1
  86. package/dist/meetings/meetings.types.js +6 -1
  87. package/dist/meetings/meetings.types.js.map +1 -1
  88. package/dist/meetings/request.js +39 -0
  89. package/dist/meetings/request.js.map +1 -1
  90. package/dist/meetings/util.js +116 -18
  91. package/dist/meetings/util.js.map +1 -1
  92. package/dist/member/index.js +20 -0
  93. package/dist/member/index.js.map +1 -1
  94. package/dist/member/types.js.map +1 -1
  95. package/dist/member/util.js +40 -0
  96. package/dist/member/util.js.map +1 -1
  97. package/dist/members/index.js +101 -43
  98. package/dist/members/index.js.map +1 -1
  99. package/dist/members/util.js +8 -1
  100. package/dist/members/util.js.map +1 -1
  101. package/dist/metrics/constants.js +12 -1
  102. package/dist/metrics/constants.js.map +1 -1
  103. package/dist/multistream/codec/constants.js +63 -0
  104. package/dist/multistream/codec/constants.js.map +1 -0
  105. package/dist/multistream/mediaRequestManager.js +64 -68
  106. package/dist/multistream/mediaRequestManager.js.map +1 -1
  107. package/dist/multistream/receiveSlot.js +9 -0
  108. package/dist/multistream/receiveSlot.js.map +1 -1
  109. package/dist/multistream/remoteMediaManager.js +11 -0
  110. package/dist/multistream/remoteMediaManager.js.map +1 -1
  111. package/dist/multistream/sendSlotManager.js +116 -2
  112. package/dist/multistream/sendSlotManager.js.map +1 -1
  113. package/dist/reachability/clusterReachability.js.map +1 -1
  114. package/dist/reachability/index.js +139 -93
  115. package/dist/reachability/index.js.map +1 -1
  116. package/dist/reachability/reachability.types.js +2 -0
  117. package/dist/reachability/reachability.types.js.map +1 -1
  118. package/dist/reachability/util.js +45 -0
  119. package/dist/reachability/util.js.map +1 -1
  120. package/dist/reactions/reactions.type.js.map +1 -1
  121. package/dist/reconnection-manager/index.js +0 -1
  122. package/dist/reconnection-manager/index.js.map +1 -1
  123. package/dist/recording-controller/index.js +1 -3
  124. package/dist/recording-controller/index.js.map +1 -1
  125. package/dist/roap/turnDiscovery.js +8 -1
  126. package/dist/roap/turnDiscovery.js.map +1 -1
  127. package/dist/types/aiEnableRequest/index.d.ts +5 -0
  128. package/dist/types/aiEnableRequest/utils.d.ts +2 -0
  129. package/dist/types/common/errors/webex-errors.d.ts +32 -2
  130. package/dist/types/config.d.ts +6 -2
  131. package/dist/types/constants.d.ts +35 -1
  132. package/dist/types/controls-options-manager/constants.d.ts +6 -1
  133. package/dist/types/controls-options-manager/index.d.ts +16 -0
  134. package/dist/types/hashTree/constants.d.ts +3 -0
  135. package/dist/types/hashTree/hashTree.d.ts +7 -0
  136. package/dist/types/hashTree/hashTreeParser.d.ts +315 -30
  137. package/dist/types/hashTree/types.d.ts +3 -0
  138. package/dist/types/hashTree/utils.d.ts +24 -0
  139. package/dist/types/index.d.ts +4 -0
  140. package/dist/types/interceptors/constant.d.ts +5 -0
  141. package/dist/types/interceptors/dataChannelAuthToken.d.ts +43 -0
  142. package/dist/types/interceptors/index.d.ts +2 -1
  143. package/dist/types/interceptors/locusRetry.d.ts +4 -4
  144. package/dist/types/interceptors/utils.d.ts +1 -0
  145. package/dist/types/interpretation/interpretation.types.d.ts +10 -0
  146. package/dist/types/locus-info/index.d.ts +126 -15
  147. package/dist/types/locus-info/infoUtils.d.ts +8 -0
  148. package/dist/types/locus-info/types.d.ts +28 -1
  149. package/dist/types/media/MediaConnectionAwaiter.d.ts +20 -2
  150. package/dist/types/media/properties.d.ts +8 -3
  151. package/dist/types/meeting/in-meeting-actions.d.ts +10 -0
  152. package/dist/types/meeting/index.d.ts +245 -16
  153. package/dist/types/meeting/locusMediaRequest.d.ts +12 -0
  154. package/dist/types/meeting/request.d.ts +17 -1
  155. package/dist/types/meeting/request.type.d.ts +5 -0
  156. package/dist/types/meeting/util.d.ts +40 -0
  157. package/dist/types/meetings/index.d.ts +42 -20
  158. package/dist/types/meetings/meetings.types.d.ts +15 -0
  159. package/dist/types/meetings/request.d.ts +14 -0
  160. package/dist/types/member/index.d.ts +2 -0
  161. package/dist/types/member/types.d.ts +1 -0
  162. package/dist/types/member/util.d.ts +14 -0
  163. package/dist/types/members/index.d.ts +15 -2
  164. package/dist/types/members/util.d.ts +1 -5
  165. package/dist/types/metrics/constants.d.ts +11 -0
  166. package/dist/types/multistream/codec/constants.d.ts +7 -0
  167. package/dist/types/multistream/mediaRequestManager.d.ts +20 -26
  168. package/dist/types/multistream/sendSlotManager.d.ts +23 -1
  169. package/dist/types/reachability/clusterReachability.d.ts +3 -3
  170. package/dist/types/reachability/index.d.ts +10 -3
  171. package/dist/types/reachability/reachability.types.d.ts +7 -0
  172. package/dist/types/reachability/util.d.ts +17 -0
  173. package/dist/types/reactions/reactions.type.d.ts +4 -0
  174. package/dist/types/webinar/utils.d.ts +6 -0
  175. package/dist/webinar/index.js +585 -164
  176. package/dist/webinar/index.js.map +1 -1
  177. package/dist/webinar/utils.js +25 -0
  178. package/dist/webinar/utils.js.map +1 -0
  179. package/package.json +24 -23
  180. package/src/aiEnableRequest/README.md +84 -0
  181. package/src/aiEnableRequest/index.ts +186 -0
  182. package/src/aiEnableRequest/utils.ts +25 -0
  183. package/src/annotation/index.ts +27 -7
  184. package/src/breakouts/breakout.ts +3 -1
  185. package/src/breakouts/events.ts +33 -11
  186. package/src/breakouts/index.ts +110 -1
  187. package/src/common/errors/webex-errors.ts +50 -3
  188. package/src/config.ts +6 -2
  189. package/src/constants.ts +49 -3
  190. package/src/controls-options-manager/constants.ts +14 -1
  191. package/src/controls-options-manager/index.ts +87 -28
  192. package/src/controls-options-manager/util.ts +81 -1
  193. package/src/hashTree/constants.ts +17 -0
  194. package/src/hashTree/hashTree.ts +17 -0
  195. package/src/hashTree/hashTreeParser.ts +1482 -361
  196. package/src/hashTree/types.ts +4 -0
  197. package/src/hashTree/utils.ts +45 -0
  198. package/src/index.ts +14 -1
  199. package/src/interceptors/constant.ts +6 -0
  200. package/src/interceptors/dataChannelAuthToken.ts +246 -0
  201. package/src/interceptors/index.ts +2 -1
  202. package/src/interceptors/locusRetry.ts +25 -4
  203. package/src/interceptors/utils.ts +16 -0
  204. package/src/interpretation/index.ts +29 -11
  205. package/src/interpretation/interpretation.types.ts +11 -0
  206. package/src/locus-info/controlsUtils.ts +14 -1
  207. package/src/locus-info/index.ts +975 -203
  208. package/src/locus-info/infoUtils.ts +41 -6
  209. package/src/locus-info/selfUtils.ts +1 -0
  210. package/src/locus-info/types.ts +33 -1
  211. package/src/media/MediaConnectionAwaiter.ts +62 -5
  212. package/src/media/index.ts +10 -1
  213. package/src/media/properties.ts +11 -4
  214. package/src/meeting/in-meeting-actions.ts +20 -0
  215. package/src/meeting/index.ts +1272 -164
  216. package/src/meeting/locusMediaRequest.ts +106 -6
  217. package/src/meeting/muteState.ts +10 -1
  218. package/src/meeting/request.ts +53 -0
  219. package/src/meeting/request.type.ts +6 -0
  220. package/src/meeting/util.ts +207 -7
  221. package/src/meeting-info/meeting-info-v2.ts +4 -2
  222. package/src/meetings/index.ts +319 -117
  223. package/src/meetings/meetings.types.ts +19 -0
  224. package/src/meetings/request.ts +43 -0
  225. package/src/meetings/util.ts +117 -4
  226. package/src/member/index.ts +20 -0
  227. package/src/member/types.ts +1 -0
  228. package/src/member/util.ts +41 -0
  229. package/src/members/index.ts +70 -7
  230. package/src/members/util.ts +12 -4
  231. package/src/metrics/constants.ts +12 -0
  232. package/src/multistream/codec/constants.ts +58 -0
  233. package/src/multistream/mediaRequestManager.ts +117 -76
  234. package/src/multistream/receiveSlot.ts +18 -0
  235. package/src/multistream/remoteMediaManager.ts +13 -0
  236. package/src/multistream/sendSlotManager.ts +97 -3
  237. package/src/reachability/clusterReachability.ts +3 -2
  238. package/src/reachability/index.ts +56 -16
  239. package/src/reachability/reachability.types.ts +11 -0
  240. package/src/reachability/util.ts +36 -0
  241. package/src/reactions/reactions.type.ts +4 -0
  242. package/src/reconnection-manager/index.ts +0 -1
  243. package/src/recording-controller/index.ts +1 -2
  244. package/src/roap/turnDiscovery.ts +9 -1
  245. package/src/webinar/index.ts +448 -11
  246. package/src/webinar/utils.ts +16 -0
  247. package/test/unit/spec/aiEnableRequest/index.ts +1067 -0
  248. package/test/unit/spec/aiEnableRequest/utils.ts +130 -0
  249. package/test/unit/spec/annotation/index.ts +69 -7
  250. package/test/unit/spec/breakouts/breakout.ts +9 -3
  251. package/test/unit/spec/breakouts/events.ts +120 -2
  252. package/test/unit/spec/breakouts/index.ts +191 -2
  253. package/test/unit/spec/common/errors/webex-errors.ts +78 -0
  254. package/test/unit/spec/controls-options-manager/index.js +244 -29
  255. package/test/unit/spec/controls-options-manager/util.js +165 -0
  256. package/test/unit/spec/hashTree/hashTree.ts +66 -0
  257. package/test/unit/spec/hashTree/hashTreeParser.ts +4528 -171
  258. package/test/unit/spec/hashTree/utils.ts +125 -1
  259. package/test/unit/spec/interceptors/dataChannelAuthToken.ts +406 -0
  260. package/test/unit/spec/interceptors/locusRetry.ts +205 -4
  261. package/test/unit/spec/interceptors/utils.ts +75 -0
  262. package/test/unit/spec/interpretation/index.ts +26 -4
  263. package/test/unit/spec/locus-info/controlsUtils.js +200 -56
  264. package/test/unit/spec/locus-info/index.js +1848 -164
  265. package/test/unit/spec/locus-info/infoUtils.js +184 -1
  266. package/test/unit/spec/media/MediaConnectionAwaiter.ts +96 -1
  267. package/test/unit/spec/media/index.ts +92 -0
  268. package/test/unit/spec/media/properties.ts +35 -26
  269. package/test/unit/spec/meeting/in-meeting-actions.ts +12 -2
  270. package/test/unit/spec/meeting/index.js +3706 -405
  271. package/test/unit/spec/meeting/locusMediaRequest.ts +406 -4
  272. package/test/unit/spec/meeting/muteState.js +81 -0
  273. package/test/unit/spec/meeting/request.js +82 -0
  274. package/test/unit/spec/meeting/utils.js +595 -27
  275. package/test/unit/spec/meeting-info/meetinginfov2.js +19 -10
  276. package/test/unit/spec/meetings/index.js +1138 -86
  277. package/test/unit/spec/meetings/request.js +141 -0
  278. package/test/unit/spec/meetings/utils.js +402 -51
  279. package/test/unit/spec/member/index.js +35 -4
  280. package/test/unit/spec/member/util.js +154 -27
  281. package/test/unit/spec/members/index.js +216 -0
  282. package/test/unit/spec/members/request.js +37 -1
  283. package/test/unit/spec/members/utils.js +63 -0
  284. package/test/unit/spec/multistream/mediaRequestManager.ts +503 -122
  285. package/test/unit/spec/multistream/remoteMediaManager.ts +30 -0
  286. package/test/unit/spec/multistream/sendSlotManager.ts +135 -36
  287. package/test/unit/spec/reachability/index.ts +151 -46
  288. package/test/unit/spec/reachability/util.ts +31 -0
  289. package/test/unit/spec/reconnection-manager/index.js +4 -8
  290. package/test/unit/spec/recording-controller/index.js +9 -8
  291. package/test/unit/spec/roap/turnDiscovery.ts +20 -0
  292. package/test/unit/spec/webinar/index.ts +837 -39
  293. package/test/unit/spec/webinar/utils.ts +39 -0
@@ -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;
@@ -95,6 +95,8 @@ export default class Meetings extends WebexPlugin {
95
95
  preferredWebexSite: any;
96
96
  reachability: Reachability;
97
97
  registered: any;
98
+ registrationPromise: Promise<void>;
99
+ unregistrationPromise: Promise<void>;
98
100
  request: any;
99
101
  geoHintInfo: any;
100
102
  meetingInfo: any;
@@ -102,6 +104,14 @@ export default class Meetings extends WebexPlugin {
102
104
  breakoutLocusForHandleLater: any;
103
105
  namespace: string;
104
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;
105
115
  /**
106
116
  * Initializes the Meetings Plugin
107
117
  * @constructor
@@ -150,7 +160,7 @@ export default class Meetings extends WebexPlugin {
150
160
  */
151
161
  private handleLocusEvent;
152
162
  /**
153
- * handles locus events through mercury that are not roap
163
+ * handles locus events through mercury that are not roap or approval request events
154
164
  * @param {Object} envelope
155
165
  * @param {Object} envelope.data
156
166
  * @param {String} envelope.data.eventType
@@ -209,22 +219,6 @@ export default class Meetings extends WebexPlugin {
209
219
  * @returns {undefined}
210
220
  */
211
221
  private _toggleAdhocMeetings;
212
- /**
213
- * API to toggle TCP reachability, needs to be called before webex.meetings.register()
214
- * @param {Boolean} newValue
215
- * @private
216
- * @memberof Meetings
217
- * @returns {undefined}
218
- */
219
- private _toggleTcpReachability;
220
- /**
221
- * API to toggle TLS reachability, needs to be called before webex.meetings.register()
222
- * @param {Boolean} newValue
223
- * @private
224
- * @memberof Meetings
225
- * @returns {undefined}
226
- */
227
- private _toggleTlsReachability;
228
222
  /**
229
223
  * API to toggle backend ipv6 native support config, needs to be called before webex.meetings.register()
230
224
  *
@@ -252,6 +246,16 @@ export default class Meetings extends WebexPlugin {
252
246
  * @returns {undefined}
253
247
  */
254
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;
255
259
  /**
256
260
  * API to toggle stopping ICE Candidates Gathering after first relay candidate,
257
261
  * needs to be called before webex.meetings.joinWithMedia()
@@ -287,7 +291,7 @@ export default class Meetings extends WebexPlugin {
287
291
  * @public
288
292
  * @memberof Meetings
289
293
  */
290
- unregister(): any;
294
+ unregister(): Promise<void>;
291
295
  /**
292
296
  * Creates a noise reduction effect
293
297
  *
@@ -366,6 +370,23 @@ export default class Meetings extends WebexPlugin {
366
370
  * @memberof Meetings
367
371
  */
368
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>;
369
390
  /**
370
391
  * Returns basic information about a meeting that exists or
371
392
  * used to exist in the MeetingCollection
@@ -475,8 +496,9 @@ export default class Meetings extends WebexPlugin {
475
496
  * @public
476
497
  * @memberof Meetings
477
498
  */
478
- syncMeetings({ keepOnlyLocusMeetings }?: {
499
+ syncMeetings({ keepOnlyLocusMeetings, skipHashTreeSync, }?: {
479
500
  keepOnlyLocusMeetings?: boolean;
501
+ skipHashTreeSync?: boolean;
480
502
  }): Promise<void>;
481
503
  /**
482
504
  * 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
@@ -6,6 +6,7 @@ export type MemberId = string;
6
6
  export default class Member {
7
7
  associatedUser: MemberId | null;
8
8
  associatedUsers: Set<MemberId>;
9
+ canApproveAIEnablement: boolean;
9
10
  canReclaimHost: boolean;
10
11
  id: MemberId;
11
12
  isAudioMuted: any;
@@ -19,6 +20,7 @@ export default class Member {
19
20
  isModerator: any;
20
21
  isModeratorAssignmentProhibited: any;
21
22
  isPresenterAssignmentProhibited: any;
23
+ isAttendeeAssignmentProhibited: any;
22
24
  isMutable: any;
23
25
  isNotAdmitted: any;
24
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;
@@ -5,6 +5,11 @@ declare const MemberUtil: {
5
5
  * @returns {Boolean}
6
6
  */
7
7
  canReclaimHost: (participant: any) => any;
8
+ /**
9
+ * @param {Object} participant - The locus participant object.
10
+ * @returns {Boolean}
11
+ */
12
+ canApproveAIEnablement: (participant: any) => boolean;
8
13
  /**
9
14
  * @param {Object} participant - The locus participant object.
10
15
  * @returns {[ServerRoleShape]}
@@ -61,6 +66,7 @@ declare const MemberUtil: {
61
66
  isDevice: (participant: Participant) => boolean;
62
67
  isModeratorAssignmentProhibited: (participant: Participant) => boolean;
63
68
  isPresenterAssignmentProhibited: (participant: Participant) => boolean;
69
+ isAttendeeAssignmentProhibited: (participant: Participant) => boolean;
64
70
  /**
65
71
  * checks to see if the participant id is the same as the passed id
66
72
  * there are multiple ids that can be used
@@ -158,5 +164,13 @@ declare const MemberUtil: {
158
164
  * @returns {String}
159
165
  */
160
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[];
161
175
  };
162
176
  export default MemberUtil;
@@ -23,6 +23,14 @@ export default class Members extends StatelessWebexPlugin {
23
23
  recordingId: any;
24
24
  selfId: any;
25
25
  type: any;
26
+ /**
27
+ * Map of CSI -> memberId that previously used the CSI in a Locus update.
28
+ * Keyed by CSI so findMemberByCsi can resolve it in O(1).
29
+ * Kept here (rather than on each Member) so it survives members being removed
30
+ * and re-added (e.g. when entering/leaving a breakout session).
31
+ * @private
32
+ */
33
+ private memberIdByHistoryCsi;
26
34
  namespace: string;
27
35
  /**
28
36
  *
@@ -313,11 +321,13 @@ export default class Members extends StatelessWebexPlugin {
313
321
  * Transfers the host to another member
314
322
  * @param {String} memberId
315
323
  * @param {boolean} [moderator] default true
324
+ * @param {String} [breakoutLocusUrl] when provided, the request is sent against this locus url
325
+ * (i.e. the breakout session's locus) instead of the main session's locus url
316
326
  * @returns {Promise}
317
327
  * @public
318
328
  * @memberof Members
319
329
  */
320
- transferHostToMember(memberId: string, moderator?: boolean): any;
330
+ transferHostToMember(memberId: string, moderator?: boolean, breakoutLocusUrl?: string): any;
321
331
  /**
322
332
  * Sends DTMF tones for the PSTN member of a meeting
323
333
  * @param {String} tones a string of one or more DTMF tones to send
@@ -327,7 +337,10 @@ export default class Members extends StatelessWebexPlugin {
327
337
  * @memberof Members
328
338
  */
329
339
  sendDialPadKey(tones?: string, memberId?: string): any;
330
- /** Finds a member that has any device with a csi matching provided value
340
+ /** Finds a member that has any device with a csi matching provided value.
341
+ * Falls back to the `memberIdByHistoryCsi` map so that a CSI a member used in
342
+ * a previous Locus update can still be resolved even if it is no longer
343
+ * present in `participant.devices[].csis`.
331
344
  *
332
345
  * @param {number} csi
333
346
  * @returns {Member}
@@ -188,11 +188,7 @@ declare const MembersUtil: {
188
188
  getTransferHostToMemberRequestParams: (options: any) => {
189
189
  method: string;
190
190
  uri: string;
191
- body: {
192
- role: {
193
- moderator: any;
194
- };
195
- };
191
+ body: Record<string, any>;
196
192
  };
197
193
  genderateSendDTMFOptions: (url: any, tones: any, memberId: any, locusUrl: any) => {
198
194
  url: any;
@@ -9,6 +9,7 @@ declare const BEHAVIORAL_METRICS: {
9
9
  ADD_MEDIA_SUCCESS: string;
10
10
  ADD_MEDIA_FAILURE: string;
11
11
  ADD_MEDIA_RETRY: string;
12
+ LOCUS_MEDIA_REQUEST_RETRY: string;
12
13
  ROAP_MERCURY_EVENT_RECEIVED: string;
13
14
  CONNECTION_SUCCESS: string;
14
15
  CONNECTION_FAILURE: string;
@@ -87,5 +88,15 @@ declare const BEHAVIORAL_METRICS: {
87
88
  MEDIA_ISSUE_DETECTED: string;
88
89
  LOCUS_CLASSIC_VS_HASH_TREE_MISMATCH: string;
89
90
  LOCUS_HASH_TREE_UNSUPPORTED_OPERATION: string;
91
+ MEDIA_STILL_NOT_CONNECTED: string;
92
+ DEPRECATED_SET_CODEC_PARAMETERS_USED: string;
93
+ DEPRECATED_DELETE_CODEC_PARAMETERS_USED: string;
94
+ SET_CUSTOM_CODEC_PARAMETERS_USED: string;
95
+ MARK_CUSTOM_CODEC_PARAMETERS_FOR_DELETION_USED: string;
96
+ HASH_TREE_SYNC_FAILURE: string;
97
+ HASH_TREE_HEARTBEAT_WATCHDOG_EXPIRED: string;
98
+ HASH_TREE_EMPTY_LOCUS_STATE_ELEMENTS: string;
99
+ DESTROY_MEETING_WHILE_SUSPENDED: string;
100
+ WASM_RUNTIME_PERFORMANCE: string;
90
101
  };
91
102
  export { BEHAVIORAL_METRICS as default };
@@ -0,0 +1,7 @@
1
+ import { AV1EncodingParams, SupportedResolution } from '@webex/internal-media-core';
2
+ export declare const AV1_CODEC_PARAMETERS: Record<SupportedResolution, AV1EncodingParams>;
3
+ export declare const H264_CODEC_PARAMETERS: {
4
+ maxFs: number;
5
+ maxFps: number;
6
+ maxMbps: number;
7
+ };
@@ -1,4 +1,4 @@
1
- import { StreamRequest, NamedMediaGroup } from '@webex/internal-media-core';
1
+ import { StreamRequest, NamedMediaGroup, MediaType, MediaCodecMimeType } from '@webex/internal-media-core';
2
2
  import { ReceiveSlot } from './receiveSlot';
3
3
  export interface ActiveSpeakerPolicyInfo {
4
4
  policy: 'active-speaker';
@@ -36,43 +36,35 @@ type DegradationPreferences = {
36
36
  maxMacroblocksLimit: number;
37
37
  };
38
38
  type SendMediaRequestsCallback = (streamRequests: StreamRequest[]) => void;
39
- type Kind = 'audio' | 'video';
40
- type Options = {
39
+ type GetIngressPayloadTypeCallback = (mediaType: MediaType, codecMimeType: MediaCodecMimeType) => number | undefined;
40
+ type AudioMediaRequestManagerOptions = {
41
41
  degradationPreferences: DegradationPreferences;
42
- kind: Kind;
42
+ kind: 'audio';
43
43
  trimRequestsToNumOfSources: boolean;
44
44
  };
45
+ type VideoMediaRequestManagerOptions = {
46
+ degradationPreferences: DegradationPreferences;
47
+ kind: 'video';
48
+ trimRequestsToNumOfSources: boolean;
49
+ enableAv1?: boolean;
50
+ };
51
+ type Options = AudioMediaRequestManagerOptions | VideoMediaRequestManagerOptions;
45
52
  export declare class MediaRequestManager {
46
53
  private sendMediaRequestsCallback;
54
+ private getIngressPayloadTypeCallback;
47
55
  private kind;
48
56
  private counter;
49
57
  private clientRequests;
50
58
  private degradationPreferences;
51
59
  private sourceUpdateListener;
52
60
  private debouncedSourceUpdateListener;
53
- private previousStreamRequests;
54
61
  private trimRequestsToNumOfSources;
62
+ private enableAv1;
55
63
  private numTotalSources;
56
64
  private numLiveSources;
57
- constructor(sendMediaRequestsCallback: SendMediaRequestsCallback, options: Options);
65
+ constructor(sendMediaRequestsCallback: SendMediaRequestsCallback, getIngressPayloadTypeCallback: GetIngressPayloadTypeCallback, options: Options);
58
66
  setDegradationPreferences(degradationPreferences: DegradationPreferences): void;
59
67
  private getDegradedClientRequests;
60
- /**
61
- * Returns true if two stream requests are the same, false otherwise.
62
- *
63
- * @param {StreamRequest} streamRequestA - Stream request A for comparison.
64
- * @param {StreamRequest} streamRequestB - Stream request B for comparison.
65
- * @returns {boolean} - Whether they are equal.
66
- */
67
- isEqual(streamRequestA: StreamRequest, streamRequestB: StreamRequest): boolean;
68
- /**
69
- * Compares new stream requests to previous ones and determines
70
- * if they are the same.
71
- *
72
- * @param {StreamRequest[]} newRequests - Array with new requests.
73
- * @returns {boolean} - True if they are equal, false otherwise.
74
- */
75
- private checkIsNewRequestsEqualToPrev;
76
68
  /**
77
69
  * Returns the maxPayloadBitsPerSecond per Stream
78
70
  *
@@ -95,11 +87,13 @@ export declare class MediaRequestManager {
95
87
  */
96
88
  private getH264MaxMbps;
97
89
  /**
98
- * Clears the previous stream requests.
99
- *
100
- * @returns {void}
90
+ * Returns the AV1 encoding parameters for a media request
91
+ * @param mediaRequest - The media request to get the AV1 encoding parameters for
92
+ * @returns {AV1EncodingParams} The AV1 encoding parameters
101
93
  */
102
- clearPreviousRequests(): void;
94
+ private getAv1EncodingParams;
95
+ private buildH264CodecInfo;
96
+ private buildAv1CodecInfo;
103
97
  /** Modifies the passed in clientRequests and makes sure that in total they don't ask
104
98
  * for more streams than there are available.
105
99
  *
@@ -1,4 +1,4 @@
1
- import { SendSlot, MediaType, LocalStream, MultistreamRoapMediaConnection, NamedMediaGroup, StreamState } from '@webex/internal-media-core';
1
+ import { SendSlot, MediaType, LocalStream, MultistreamRoapMediaConnection, NamedMediaGroup, StreamState, MediaCodecMimeType, CodecParameters } from '@webex/internal-media-core';
2
2
  /**
3
3
  * This class is used to manage the sendSlots for the given media types.
4
4
  */
@@ -69,6 +69,8 @@ export default class SendSlotManager {
69
69
  */
70
70
  setActive(mediaType: MediaType, active?: boolean): void;
71
71
  /**
72
+ * @deprecated Use {@link setCustomCodecParameters} instead, which requires specifying the codec MIME type.
73
+ *
72
74
  * This method is used to set the codec parameters for the sendSlot of the given mediaType
73
75
  * @param {MediaType} mediaType MediaType of the sendSlot for which the codec parameters needs to be set (AUDIO_MAIN/VIDEO_MAIN/AUDIO_SLIDES/VIDEO_SLIDES)
74
76
  * @param {Object} codecParameters
@@ -78,12 +80,32 @@ export default class SendSlotManager {
78
80
  [key: string]: string | undefined;
79
81
  }): Promise<void>;
80
82
  /**
83
+ * @deprecated Use {@link markCustomCodecParametersForDeletion} instead, which requires specifying the codec MIME type.
84
+ *
81
85
  * This method is used to delete the codec parameters for the sendSlot of the given mediaType
82
86
  * @param {MediaType} mediaType MediaType of the sendSlot for which the codec parameters needs to be deleted (AUDIO_MAIN/VIDEO_MAIN/AUDIO_SLIDES/VIDEO_SLIDES)
83
87
  * @param {Array<String>} parameters Array of keys of the codec parameters to be deleted
84
88
  * @returns {Promise<void>}
85
89
  */
86
90
  deleteCodecParameters(mediaType: MediaType, parameters: string[]): Promise<void>;
91
+ /**
92
+ * Sets custom codec parameters for the sendSlot of the given mediaType, scoped to a specific codec MIME type.
93
+ * Delegates to WCME's setCustomCodecParameters API.
94
+ * @param {MediaType} mediaType MediaType of the sendSlot
95
+ * @param {MediaCodecMimeType} codecMimeType The codec MIME type to apply parameters to (e.g. OPUS, H264, AV1)
96
+ * @param {CodecParameters} parameters Key-value pairs of codec parameters to set
97
+ * @returns {Promise<void>}
98
+ */
99
+ setCustomCodecParameters(mediaType: MediaType, codecMimeType: MediaCodecMimeType, parameters: CodecParameters): Promise<void>;
100
+ /**
101
+ * Marks custom codec parameters for deletion on the sendSlot of the given mediaType, scoped to a specific codec MIME type.
102
+ * Delegates to WCME's markCustomCodecParametersForDeletion API.
103
+ * @param {MediaType} mediaType MediaType of the sendSlot
104
+ * @param {MediaCodecMimeType} codecMimeType The codec MIME type whose parameters should be deleted (e.g. OPUS, H264, AV1)
105
+ * @param {string[]} parameters Array of parameter keys to delete
106
+ * @returns {Promise<void>}
107
+ */
108
+ markCustomCodecParametersForDeletion(mediaType: MediaType, codecMimeType: MediaCodecMimeType, parameters: string[]): Promise<void>;
87
109
  /**
88
110
  * This method is used to reset the SendSlotsManager by deleting all the sendSlots
89
111
  * @returns {undefined}
@@ -1,15 +1,15 @@
1
1
  import { ClusterNode } from './request';
2
2
  import EventsScope from '../common/events/events-scope';
3
3
  import { Enum } from '../constants';
4
- import { ClusterReachabilityResult, NatType } from './reachability.types';
4
+ import { ClusterReachabilityResult, NatType, Protocol } from './reachability.types';
5
5
  export type ResultEventData = {
6
- protocol: 'udp' | 'tcp' | 'xtls';
6
+ protocol: Protocol;
7
7
  result: 'reachable' | 'unreachable' | 'untested';
8
8
  latencyInMilliseconds: number;
9
9
  clientMediaIPs?: string[];
10
10
  };
11
11
  export type ClientMediaIpsUpdatedEventData = {
12
- protocol: 'udp' | 'tcp' | 'xtls';
12
+ protocol: Protocol;
13
13
  clientMediaIPs: string[];
14
14
  };
15
15
  export type NatTypeUpdatedEventData = {
@@ -4,7 +4,7 @@
4
4
  import { Defer } from '@webex/common';
5
5
  import { IP_VERSION } from '../constants';
6
6
  import ReachabilityRequest, { ClusterList } from './request';
7
- import { ClusterReachabilityResult, ClientMediaPreferences, ReachabilityMetrics, ReachabilityReportV0, ReachabilityReportV1, ReachabilityResults, ReachabilityResultsForBackend, GetClustersTrigger, NatType } from './reachability.types';
7
+ import { ClusterReachabilityResult, ClientMediaPreferences, ReachabilityMetrics, ReachabilityReportV0, ReachabilityReportV1, ReachabilityResults, ReachabilityResultsForBackend, GetClustersTrigger, NatType, Protocol } from './reachability.types';
8
8
  import { ClusterReachability } from './clusterReachability';
9
9
  import EventsScope from '../common/events/events-scope';
10
10
  /**
@@ -145,13 +145,20 @@ export default class Reachability extends EventsScope {
145
145
  * Returns true only if ALL protocols (UDP, TCP and TLS) have been tested and none
146
146
  * of the media clusters where reachable with any of the protocols. This is done
147
147
  * irrespective of the config, so for example:
148
- * if config.meetings.experimental.enableTlsReachability === false,
148
+ * if config.meetings.enableReachabilityChecks disables TLS,
149
149
  * it will return false, because TLS reachability won't be tested,
150
150
  * so we can't say for sure that media backend is unreachable over TLS.
151
151
  *
152
152
  * @returns {boolean}
153
153
  */
154
154
  isWebexMediaBackendUnreachable(): Promise<boolean>;
155
+ /**
156
+ * Checks if any cluster is reachable via the given protocol based on stored reachability results.
157
+ *
158
+ * @param {string} protocol - the protocol to check ('udp', 'tcp', or 'xtls')
159
+ * @returns {Promise<boolean>} true if at least one cluster has a 'reachable' result for the given protocol
160
+ */
161
+ isAnyClusterReachableViaProtocol(protocol: Protocol): Promise<boolean>;
155
162
  /**
156
163
  * Get list of all unreachable clusters
157
164
  * @returns {array} Unreachable clusters
@@ -209,7 +216,7 @@ export default class Reachability extends EventsScope {
209
216
  */
210
217
  protected getStatistics(results: Array<ClusterReachabilityResult & {
211
218
  isVideoMesh: boolean;
212
- }>, protocol: 'udp' | 'tcp' | 'xtls', isVideoMesh: boolean): {
219
+ }>, protocol: Protocol, isVideoMesh: boolean): {
213
220
  min: number;
214
221
  max: number;
215
222
  average: number;
@@ -1,5 +1,12 @@
1
1
  import { IP_VERSION, Enum } from '../constants';
2
2
  export type Protocol = 'udp' | 'tcp' | 'xtls';
3
+ export type ResolvedReachabilityProtocols = {
4
+ udp: boolean;
5
+ tcp: boolean;
6
+ tls: boolean;
7
+ };
8
+ export type ReachabilityProtocolConfig = Partial<Omit<ResolvedReachabilityProtocols, 'udp'>>;
9
+ export type EnableReachabilityChecksConfig = boolean | ReachabilityProtocolConfig;
3
10
  /**
4
11
  * Events emitted by ReachabilityPeerConnection
5
12
  */
@@ -1,3 +1,20 @@
1
+ import { EnableReachabilityChecksConfig, ResolvedReachabilityProtocols } from './reachability.types';
2
+ /**
3
+ * Resolves `enableReachabilityChecks` into explicit per-protocol flags.
4
+ * Defaults to all protocols enabled when not configured.
5
+ * UDP is always tested unless reachability is disabled entirely (`false`).
6
+ *
7
+ * @param {EnableReachabilityChecksConfig} enabled value of config.meetings.enableReachabilityChecks
8
+ * @returns {ResolvedReachabilityProtocols} resolved per-protocol flags
9
+ */
10
+ export declare function resolveReachabilityProtocols(enabled?: EnableReachabilityChecksConfig): ResolvedReachabilityProtocols;
11
+ /**
12
+ * Whether any reachability protocol is enabled.
13
+ *
14
+ * @param {EnableReachabilityChecksConfig} config value of config.meetings.enableReachabilityChecks
15
+ * @returns {boolean} true if any protocol is enabled
16
+ */
17
+ export declare function isReachabilityEnabled(config?: EnableReachabilityChecksConfig): boolean;
1
18
  /**
2
19
  * Converts a stun url to a turn url
3
20
  *
@@ -32,6 +32,7 @@ export declare enum SkinToneType {
32
32
  dark = "dark"
33
33
  }
34
34
  export type Sender = {
35
+ displayName: string;
35
36
  participantId: string;
36
37
  };
37
38
  export type ProcessedReaction = {
@@ -48,5 +49,8 @@ type RelayEventData = {
48
49
  };
49
50
  export type RelayEvent = {
50
51
  data: RelayEventData;
52
+ headers?: {
53
+ route?: string;
54
+ };
51
55
  };
52
56
  export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Remove null/undefined/empty string values from an object
3
+ * @param {object} params
4
+ * @returns {object}
5
+ */
6
+ export declare const sanitizeParams: (params: Record<string, any>) => Record<string, any>;