@webex/plugin-meetings 3.12.0 → 3.13.0-next.2

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 (320) hide show
  1. package/.sdd/manifest.json +1312 -0
  2. package/.sdd/templates/.source.json +30 -0
  3. package/.sdd/templates/component-repo/module-docs/module-spec-quality.md +111 -0
  4. package/.sdd/templates/component-repo/module-docs/module-spec.template.md +321 -0
  5. package/.sdd/templates/component-repo/reference-docs/adr/_adr-example.md +59 -0
  6. package/.sdd/templates/component-repo/reference-docs/patterns/_pattern-example.md +49 -0
  7. package/.sdd/templates/component-repo/reference-docs/rules/_rule-example.md +42 -0
  8. package/.sdd/templates/component-repo/standing-docs/AGENTS.template.md +120 -0
  9. package/.sdd/templates/component-repo/standing-docs/ARCHITECTURE.template.md +206 -0
  10. package/.sdd/templates/component-repo/standing-docs/CONTRACTS.template.md +90 -0
  11. package/.sdd/templates/component-repo/standing-docs/DATA_MODEL.template.md +68 -0
  12. package/.sdd/templates/component-repo/standing-docs/GETTING_STARTED.template.md +111 -0
  13. package/.sdd/templates/component-repo/standing-docs/GLOSSARY.template.md +57 -0
  14. package/.sdd/templates/component-repo/standing-docs/REVIEW_CHECKLIST.template.md +69 -0
  15. package/.sdd/templates/component-repo/standing-docs/RULES.template.md +96 -0
  16. package/.sdd/templates/component-repo/standing-docs/SECURITY.template.md +84 -0
  17. package/.sdd/templates/component-repo/standing-docs/SERVICE_STATE.template.md +82 -0
  18. package/.sdd/templates/component-repo/standing-docs/SPEC_INDEX.template.md +94 -0
  19. package/.sdd/templates/component-repo/standing-docs/TEST_INDEX.template.md +64 -0
  20. package/.sdd/templates/component-repo/template-map.json +112 -0
  21. package/AGENTS.md +135 -0
  22. package/ai-docs/ARCHITECTURE.md +208 -0
  23. package/ai-docs/CONTRACTS.md +267 -0
  24. package/ai-docs/DATA_MODEL.md +64 -0
  25. package/ai-docs/GETTING_STARTED.md +73 -0
  26. package/ai-docs/GLOSSARY.md +56 -0
  27. package/ai-docs/REVIEW_CHECKLIST.md +45 -0
  28. package/ai-docs/RULES.md +79 -0
  29. package/ai-docs/SECURITY.md +74 -0
  30. package/ai-docs/SERVICE_STATE.md +59 -0
  31. package/ai-docs/SPEC_INDEX.md +85 -0
  32. package/ai-docs/TEST_INDEX.md +45 -0
  33. package/ai-docs/adr/0001-migrate-existing-docs-into-sdd.md +61 -0
  34. package/ai-docs/patterns/defensive-error-propagation.md +55 -0
  35. package/ai-docs/patterns/event-scope-emission.md +46 -0
  36. package/ai-docs/patterns/source-to-test-path-mirroring.md +45 -0
  37. package/ai-docs/patterns/stateless-plugin-request-classes.md +53 -0
  38. package/ai-docs/patterns/typed-constants-and-enum-values.md +47 -0
  39. package/assets/README.md +28 -0
  40. package/assets/e2ee-0.0.1.js +2 -0
  41. package/assets/e2ee-0.0.1.wasm +0 -0
  42. package/dist/aiEnableRequest/index.js +15 -2
  43. package/dist/aiEnableRequest/index.js.map +1 -1
  44. package/dist/annotation/index.js +55 -19
  45. package/dist/annotation/index.js.map +1 -1
  46. package/dist/assets/e2ee-0.0.1.js +2 -0
  47. package/dist/assets/e2ee-0.0.1.wasm +0 -0
  48. package/dist/breakouts/breakout.js +8 -3
  49. package/dist/breakouts/breakout.js.map +1 -1
  50. package/dist/breakouts/events.js +29 -14
  51. package/dist/breakouts/events.js.map +1 -1
  52. package/dist/breakouts/index.js +128 -7
  53. package/dist/breakouts/index.js.map +1 -1
  54. package/dist/common/errors/webex-errors.js +54 -5
  55. package/dist/common/errors/webex-errors.js.map +1 -1
  56. package/dist/config.js +4 -2
  57. package/dist/config.js.map +1 -1
  58. package/dist/constants.js +39 -11
  59. package/dist/constants.js.map +1 -1
  60. package/dist/controls-options-manager/constants.js +11 -1
  61. package/dist/controls-options-manager/constants.js.map +1 -1
  62. package/dist/controls-options-manager/index.js +67 -29
  63. package/dist/controls-options-manager/index.js.map +1 -1
  64. package/dist/controls-options-manager/util.js +91 -0
  65. package/dist/controls-options-manager/util.js.map +1 -1
  66. package/dist/hashTree/constants.js +13 -1
  67. package/dist/hashTree/constants.js.map +1 -1
  68. package/dist/hashTree/hashTreeParser.js +1245 -404
  69. package/dist/hashTree/hashTreeParser.js.map +1 -1
  70. package/dist/hashTree/utils.js +42 -0
  71. package/dist/hashTree/utils.js.map +1 -1
  72. package/dist/index.js +8 -0
  73. package/dist/index.js.map +1 -1
  74. package/dist/interceptors/dataChannelAuthToken.js +58 -16
  75. package/dist/interceptors/dataChannelAuthToken.js.map +1 -1
  76. package/dist/interceptors/locusRetry.js +24 -9
  77. package/dist/interceptors/locusRetry.js.map +1 -1
  78. package/dist/interpretation/index.js +55 -12
  79. package/dist/interpretation/index.js.map +1 -1
  80. package/dist/interpretation/interpretation.types.js +7 -0
  81. package/dist/interpretation/interpretation.types.js.map +1 -0
  82. package/dist/interpretation/siLanguage.js +1 -1
  83. package/dist/locus-info/controlsUtils.js +4 -1
  84. package/dist/locus-info/controlsUtils.js.map +1 -1
  85. package/dist/locus-info/index.js +914 -196
  86. package/dist/locus-info/index.js.map +1 -1
  87. package/dist/locus-info/infoUtils.js +36 -5
  88. package/dist/locus-info/infoUtils.js.map +1 -1
  89. package/dist/locus-info/types.js +20 -0
  90. package/dist/locus-info/types.js.map +1 -1
  91. package/dist/media/MediaConnectionAwaiter.js +229 -166
  92. package/dist/media/MediaConnectionAwaiter.js.map +1 -1
  93. package/dist/media/index.js +8 -2
  94. package/dist/media/index.js.map +1 -1
  95. package/dist/media/properties.js +4 -5
  96. package/dist/media/properties.js.map +1 -1
  97. package/dist/meeting/in-meeting-actions.js +5 -1
  98. package/dist/meeting/in-meeting-actions.js.map +1 -1
  99. package/dist/meeting/index.js +1931 -887
  100. package/dist/meeting/index.js.map +1 -1
  101. package/dist/meeting/locusMediaRequest.js +229 -82
  102. package/dist/meeting/locusMediaRequest.js.map +1 -1
  103. package/dist/meeting/muteState.js +10 -1
  104. package/dist/meeting/muteState.js.map +1 -1
  105. package/dist/meeting/request.js +5 -2
  106. package/dist/meeting/request.js.map +1 -1
  107. package/dist/meeting/util.js +42 -3
  108. package/dist/meeting/util.js.map +1 -1
  109. package/dist/meeting/voicea-meeting.js +2 -1
  110. package/dist/meeting/voicea-meeting.js.map +1 -1
  111. package/dist/meeting-info/meeting-info-v2.js +12 -5
  112. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  113. package/dist/meetings/index.js +322 -129
  114. package/dist/meetings/index.js.map +1 -1
  115. package/dist/meetings/meetings.types.js +6 -1
  116. package/dist/meetings/meetings.types.js.map +1 -1
  117. package/dist/meetings/request.js +39 -0
  118. package/dist/meetings/request.js.map +1 -1
  119. package/dist/meetings/util.js +116 -18
  120. package/dist/meetings/util.js.map +1 -1
  121. package/dist/member/index.js +10 -0
  122. package/dist/member/index.js.map +1 -1
  123. package/dist/member/types.js.map +1 -1
  124. package/dist/member/util.js +30 -0
  125. package/dist/member/util.js.map +1 -1
  126. package/dist/members/index.js +101 -43
  127. package/dist/members/index.js.map +1 -1
  128. package/dist/members/util.js +8 -1
  129. package/dist/members/util.js.map +1 -1
  130. package/dist/metrics/constants.js +11 -1
  131. package/dist/metrics/constants.js.map +1 -1
  132. package/dist/multistream/codec/constants.js +63 -0
  133. package/dist/multistream/codec/constants.js.map +1 -0
  134. package/dist/multistream/mediaRequestManager.js +62 -15
  135. package/dist/multistream/mediaRequestManager.js.map +1 -1
  136. package/dist/multistream/receiveSlot.js +9 -0
  137. package/dist/multistream/receiveSlot.js.map +1 -1
  138. package/dist/multistream/remoteMediaManager.js +32 -4
  139. package/dist/multistream/remoteMediaManager.js.map +1 -1
  140. package/dist/multistream/sendSlotManager.js +127 -3
  141. package/dist/multistream/sendSlotManager.js.map +1 -1
  142. package/dist/reachability/clusterReachability.js.map +1 -1
  143. package/dist/reachability/index.js +121 -83
  144. package/dist/reachability/index.js.map +1 -1
  145. package/dist/reachability/reachability.types.js +2 -0
  146. package/dist/reachability/reachability.types.js.map +1 -1
  147. package/dist/reachability/util.js +45 -0
  148. package/dist/reachability/util.js.map +1 -1
  149. package/dist/reactions/reactions.type.js.map +1 -1
  150. package/dist/recording-controller/index.js +1 -3
  151. package/dist/recording-controller/index.js.map +1 -1
  152. package/dist/roap/turnDiscovery.js +8 -1
  153. package/dist/roap/turnDiscovery.js.map +1 -1
  154. package/dist/types/annotation/index.d.ts +19 -0
  155. package/dist/types/common/errors/webex-errors.d.ts +36 -2
  156. package/dist/types/config.d.ts +4 -2
  157. package/dist/types/constants.d.ts +15 -2
  158. package/dist/types/controls-options-manager/constants.d.ts +6 -1
  159. package/dist/types/controls-options-manager/index.d.ts +16 -0
  160. package/dist/types/hashTree/constants.d.ts +2 -0
  161. package/dist/types/hashTree/hashTreeParser.d.ts +230 -18
  162. package/dist/types/hashTree/utils.d.ts +18 -0
  163. package/dist/types/index.d.ts +4 -0
  164. package/dist/types/interceptors/locusRetry.d.ts +4 -4
  165. package/dist/types/interpretation/interpretation.types.d.ts +10 -0
  166. package/dist/types/locus-info/index.d.ts +151 -15
  167. package/dist/types/locus-info/infoUtils.d.ts +8 -0
  168. package/dist/types/locus-info/types.d.ts +28 -1
  169. package/dist/types/media/MediaConnectionAwaiter.d.ts +66 -49
  170. package/dist/types/media/properties.d.ts +6 -2
  171. package/dist/types/meeting/in-meeting-actions.d.ts +4 -0
  172. package/dist/types/meeting/index.d.ts +247 -13
  173. package/dist/types/meeting/locusMediaRequest.d.ts +12 -0
  174. package/dist/types/meeting/request.d.ts +1 -0
  175. package/dist/types/meeting/util.d.ts +12 -1
  176. package/dist/types/meeting-info/meeting-info-v2.d.ts +1 -0
  177. package/dist/types/meetings/index.d.ts +40 -19
  178. package/dist/types/meetings/meetings.types.d.ts +15 -0
  179. package/dist/types/meetings/request.d.ts +14 -0
  180. package/dist/types/member/index.d.ts +1 -0
  181. package/dist/types/member/types.d.ts +1 -0
  182. package/dist/types/member/util.d.ts +9 -0
  183. package/dist/types/members/index.d.ts +15 -2
  184. package/dist/types/members/util.d.ts +1 -5
  185. package/dist/types/metrics/constants.d.ts +10 -0
  186. package/dist/types/multistream/codec/constants.d.ts +7 -0
  187. package/dist/types/multistream/mediaRequestManager.d.ts +22 -5
  188. package/dist/types/multistream/remoteMediaManager.d.ts +18 -0
  189. package/dist/types/multistream/sendSlotManager.d.ts +28 -2
  190. package/dist/types/reachability/clusterReachability.d.ts +3 -3
  191. package/dist/types/reachability/index.d.ts +10 -3
  192. package/dist/types/reachability/reachability.types.d.ts +7 -0
  193. package/dist/types/reachability/util.d.ts +17 -0
  194. package/dist/types/reactions/reactions.type.d.ts +3 -0
  195. package/dist/webinar/index.js +539 -245
  196. package/dist/webinar/index.js.map +1 -1
  197. package/package.json +26 -24
  198. package/src/aiEnableRequest/ai-docs/ai-enable-request-spec.md +223 -0
  199. package/src/aiEnableRequest/index.ts +16 -0
  200. package/src/annotation/ai-docs/annotation-spec.md +236 -0
  201. package/src/annotation/index.ts +61 -29
  202. package/src/breakouts/ai-docs/breakouts-spec.md +324 -0
  203. package/src/breakouts/breakout.ts +3 -1
  204. package/src/breakouts/events.ts +33 -11
  205. package/src/breakouts/index.ts +145 -3
  206. package/src/common/errors/webex-errors.ts +56 -3
  207. package/src/config.ts +8 -3
  208. package/src/constants.ts +23 -4
  209. package/src/controls-options-manager/ai-docs/controls-options-manager-spec.md +243 -0
  210. package/src/controls-options-manager/constants.ts +14 -1
  211. package/src/controls-options-manager/index.ts +87 -28
  212. package/src/controls-options-manager/util.ts +81 -1
  213. package/src/hashTree/ai-docs/hash-tree-spec.md +267 -0
  214. package/src/hashTree/constants.ts +16 -0
  215. package/src/hashTree/hashTreeParser.ts +1021 -214
  216. package/src/hashTree/utils.ts +36 -0
  217. package/src/index.ts +7 -0
  218. package/src/interceptors/ai-docs/interceptors-spec.md +247 -0
  219. package/src/interceptors/dataChannelAuthToken.ts +59 -12
  220. package/src/interceptors/locusRetry.ts +26 -5
  221. package/src/interpretation/ai-docs/interpretation-spec.md +256 -0
  222. package/src/interpretation/index.ts +65 -10
  223. package/src/interpretation/interpretation.types.ts +11 -0
  224. package/src/locus-info/ai-docs/locus-info-spec.md +293 -0
  225. package/src/locus-info/controlsUtils.ts +3 -1
  226. package/src/locus-info/index.ts +907 -184
  227. package/src/locus-info/infoUtils.ts +41 -6
  228. package/src/locus-info/types.ts +33 -1
  229. package/src/media/MediaConnectionAwaiter.ts +229 -196
  230. package/src/media/ai-docs/media-spec.md +267 -0
  231. package/src/media/index.ts +10 -1
  232. package/src/media/properties.ts +8 -3
  233. package/src/meeting/ai-docs/meeting-spec.md +404 -0
  234. package/src/meeting/in-meeting-actions.ts +8 -0
  235. package/src/meeting/index.ts +1237 -254
  236. package/src/meeting/locusMediaRequest.ts +106 -6
  237. package/src/meeting/muteState.ts +10 -1
  238. package/src/meeting/request.ts +11 -0
  239. package/src/meeting/util.ts +53 -8
  240. package/src/meeting/voicea-meeting.ts +1 -1
  241. package/src/meeting-info/ai-docs/meeting-info-spec.md +261 -0
  242. package/src/meeting-info/meeting-info-v2.ts +11 -4
  243. package/src/meetings/ai-docs/meetings-spec.md +296 -0
  244. package/src/meetings/index.ts +224 -80
  245. package/src/meetings/meetings.types.ts +19 -0
  246. package/src/meetings/request.ts +43 -0
  247. package/src/meetings/util.ts +117 -4
  248. package/src/member/ai-docs/member-spec.md +196 -0
  249. package/src/member/index.ts +10 -0
  250. package/src/member/types.ts +1 -0
  251. package/src/member/util.ts +29 -0
  252. package/src/members/ai-docs/members-spec.md +256 -0
  253. package/src/members/index.ts +70 -7
  254. package/src/members/util.ts +12 -4
  255. package/src/metrics/ai-docs/metrics-spec.md +185 -0
  256. package/src/metrics/constants.ts +11 -0
  257. package/src/multistream/ai-docs/multistream-spec.md +295 -0
  258. package/src/multistream/codec/constants.ts +58 -0
  259. package/src/multistream/mediaRequestManager.ts +119 -28
  260. package/src/multistream/receiveSlot.ts +18 -0
  261. package/src/multistream/remoteMediaManager.ts +23 -1
  262. package/src/multistream/sendSlotManager.ts +112 -4
  263. package/src/personal-meeting-room/ai-docs/personal-meeting-room-spec.md +234 -0
  264. package/src/reachability/ai-docs/reachability-spec.md +261 -0
  265. package/src/reachability/clusterReachability.ts +3 -2
  266. package/src/reachability/index.ts +47 -16
  267. package/src/reachability/reachability.types.ts +11 -0
  268. package/src/reachability/util.ts +36 -0
  269. package/src/reactions/ai-docs/reactions-spec.md +198 -0
  270. package/src/reactions/reactions.type.ts +3 -0
  271. package/src/reconnection-manager/ai-docs/reconnection-manager-spec.md +272 -0
  272. package/src/recording-controller/ai-docs/recording-controller-spec.md +223 -0
  273. package/src/recording-controller/index.ts +1 -2
  274. package/src/roap/ai-docs/roap-spec.md +241 -0
  275. package/src/roap/turnDiscovery.ts +9 -1
  276. package/src/webinar/ai-docs/webinar-spec.md +243 -0
  277. package/src/webinar/index.ts +333 -73
  278. package/test/unit/spec/aiEnableRequest/index.ts +86 -0
  279. package/test/unit/spec/annotation/index.ts +214 -182
  280. package/test/unit/spec/breakouts/breakout.ts +9 -3
  281. package/test/unit/spec/breakouts/events.ts +120 -2
  282. package/test/unit/spec/breakouts/index.ts +336 -15
  283. package/test/unit/spec/common/errors/webex-errors.ts +78 -0
  284. package/test/unit/spec/controls-options-manager/index.js +244 -29
  285. package/test/unit/spec/controls-options-manager/util.js +165 -0
  286. package/test/unit/spec/hashTree/hashTreeParser.ts +3126 -238
  287. package/test/unit/spec/hashTree/utils.ts +125 -1
  288. package/test/unit/spec/interceptors/dataChannelAuthToken.ts +179 -1
  289. package/test/unit/spec/interceptors/locusRetry.ts +234 -5
  290. package/test/unit/spec/interpretation/index.ts +119 -4
  291. package/test/unit/spec/locus-info/controlsUtils.js +172 -57
  292. package/test/unit/spec/locus-info/index.js +1880 -136
  293. package/test/unit/spec/locus-info/infoUtils.js +184 -1
  294. package/test/unit/spec/media/MediaConnectionAwaiter.ts +479 -17
  295. package/test/unit/spec/media/index.ts +92 -0
  296. package/test/unit/spec/media/properties.ts +26 -26
  297. package/test/unit/spec/meeting/in-meeting-actions.ts +4 -0
  298. package/test/unit/spec/meeting/index.js +3697 -501
  299. package/test/unit/spec/meeting/locusMediaRequest.ts +406 -4
  300. package/test/unit/spec/meeting/muteState.js +81 -0
  301. package/test/unit/spec/meeting/request.js +12 -0
  302. package/test/unit/spec/meeting/utils.js +206 -16
  303. package/test/unit/spec/meeting/voicea-meeting.ts +85 -1
  304. package/test/unit/spec/meeting-info/meetinginfov2.js +88 -11
  305. package/test/unit/spec/meetings/index.js +586 -53
  306. package/test/unit/spec/meetings/request.js +141 -0
  307. package/test/unit/spec/meetings/utils.js +402 -51
  308. package/test/unit/spec/member/index.js +7 -0
  309. package/test/unit/spec/member/util.js +89 -0
  310. package/test/unit/spec/members/index.js +216 -0
  311. package/test/unit/spec/members/request.js +37 -1
  312. package/test/unit/spec/members/utils.js +63 -0
  313. package/test/unit/spec/multistream/mediaRequestManager.ts +501 -37
  314. package/test/unit/spec/multistream/remoteMediaManager.ts +46 -0
  315. package/test/unit/spec/multistream/sendSlotManager.ts +165 -38
  316. package/test/unit/spec/reachability/index.ts +128 -46
  317. package/test/unit/spec/reachability/util.ts +31 -0
  318. package/test/unit/spec/recording-controller/index.js +9 -8
  319. package/test/unit/spec/roap/turnDiscovery.ts +20 -0
  320. package/test/unit/spec/webinar/index.ts +982 -328
@@ -5,6 +5,8 @@ import type { ClientEvent as RawClientEvent } from '@webex/event-dictionary-ts';
5
5
  import { MediaType, StatsAnalyzer, NetworkQualityMonitor, StatsMonitor } from '@webex/internal-media-core';
6
6
  import { DataChannelTokenType } from '@webex/internal-plugin-llm';
7
7
  import { LocalStream, LocalCameraStream, LocalDisplayStream, LocalSystemAudioStream, LocalMicrophoneStream } from '@webex/media-helpers';
8
+ import { type VoiceaChannel } from '@webex/internal-plugin-voicea';
9
+ import type { MetricEventMeetingJoinPhase } from '@webex/internal-plugin-metrics/src/metrics.types';
8
10
  import Roap, { type TurnDiscoverySkipReason } from '../roap/index';
9
11
  import { type TurnServerInfo } from '../roap/types';
10
12
  import { type BundlePolicy } from '../media';
@@ -16,7 +18,7 @@ import { DESTINATION_TYPE, NETWORK_STATUS } from '../constants';
16
18
  import { ReceiveSlotManager } from '../multistream/receiveSlotManager';
17
19
  import { MediaRequestManager } from '../multistream/mediaRequestManager';
18
20
  import { Configuration as RemoteMediaManagerConfiguration, RemoteMediaManager } from '../multistream/remoteMediaManager';
19
- import { ReactionServerType, SkinToneType } from '../reactions/reactions.type';
21
+ import { SkinToneType } from '../reactions/reactions.type';
20
22
  import InMeetingActions from './in-meeting-actions';
21
23
  import RecordingController from '../recording-controller';
22
24
  import ControlsOptionsManager from '../controls-options-manager';
@@ -24,7 +26,7 @@ import { LocusMediaRequest } from './locusMediaRequest';
24
26
  import { BrbState } from './brbState';
25
27
  import { SetStageOptions } from './request.type';
26
28
  import { Invitee } from './type';
27
- import { DataSet, Metadata } from '../hashTree/hashTreeParser';
29
+ import { DataSet, HashTreeMessage, Metadata } from '../hashTree/hashTreeParser';
28
30
  import { LocusDTO } from '../locus-info/types';
29
31
  export type CaptionData = {
30
32
  id: string;
@@ -88,6 +90,7 @@ export type CallStateForMetrics = {
88
90
  userNameInput?: string;
89
91
  emailInput?: string;
90
92
  pstnCorrelationId?: string;
93
+ meetingJoinPhase?: MetricEventMeetingJoinPhase;
91
94
  };
92
95
  export declare const MEDIA_UPDATE_TYPE: {
93
96
  TRANSCODED_MEDIA_CONNECTION: string;
@@ -348,6 +351,16 @@ type FetchMeetingInfoParams = {
348
351
  * @property {number} networkQualityScore - {1|0} 1 indicates acceptable uplink 0 indicates unacceptable uplink based on threshold
349
352
  * @memberof Meeting
350
353
  */
354
+ /**
355
+ * Stores an event so all events can be later retrieved via a console command for debugging.
356
+ * @param {string} type
357
+ * @param {Object} data
358
+ * @returns {void}
359
+ */
360
+ export declare function storeEventForDebugging(type: string, data: {
361
+ eventType: any;
362
+ stateElementsMessage?: HashTreeMessage;
363
+ }): void;
351
364
  /**
352
365
  * @description Meeting is the crux of the plugin
353
366
  * @export
@@ -364,7 +377,7 @@ export default class Meeting extends StatelessWebexPlugin {
364
377
  webinar: any;
365
378
  conversationUrl: string;
366
379
  callStateForMetrics: CallStateForMetrics;
367
- destination: string;
380
+ destination: string | LocusDTO;
368
381
  destinationType: DESTINATION_TYPE;
369
382
  deviceUrl: string;
370
383
  hostId: string;
@@ -402,6 +415,8 @@ export default class Meeting extends StatelessWebexPlugin {
402
415
  floorGrantPending: boolean;
403
416
  hasJoinedOnce: boolean;
404
417
  hasWebsocketConnected: boolean;
418
+ private mercuryOnlineHandler?;
419
+ private mercuryOfflineHandler?;
405
420
  inMeetingActions: InMeetingActions;
406
421
  isLocalShareLive: boolean;
407
422
  isRoapInProgress: boolean;
@@ -412,6 +427,7 @@ export default class Meeting extends StatelessWebexPlugin {
412
427
  joinedWith?: any;
413
428
  selfId?: string;
414
429
  roles: any[];
430
+ canNotViewTheParticipantList?: boolean;
415
431
  locusMediaRequest?: LocusMediaRequest;
416
432
  mediaProperties: MediaProperties;
417
433
  mediaRequestManagers: {
@@ -478,16 +494,25 @@ export default class Meeting extends StatelessWebexPlugin {
478
494
  turnDiscoverySkippedReason: TurnDiscoverySkipReason;
479
495
  turnServerUsed: boolean;
480
496
  areVoiceaEventsSetup: boolean;
497
+ /**
498
+ * Returns the initial transcription object shape.
499
+ * Used by constructor and reset paths to ensure consistent initialization.
500
+ * @private
501
+ * @returns {Transcription}
502
+ */
503
+ private getInitialTranscription;
481
504
  isMoveToInProgress: boolean;
482
505
  registrationIdStatus: string;
483
506
  brbState: BrbState;
507
+ private emittedBreakoutJoinResponseMoveIds;
508
+ private promisesWaitingForPropUpdate;
484
509
  voiceaListenerCallbacks: object;
485
510
  private addMediaData;
486
511
  private sendSlotManager;
487
512
  private deferSDPAnswer?;
488
513
  private sdpResponseTimer?;
489
514
  private hasMediaConnectionConnectedAtLeastOnce;
490
- private joinWithMediaRetryInfo?;
515
+ private joinWithMediaRetryInfo;
491
516
  private connectionStateHandler?;
492
517
  private iceCandidateErrors;
493
518
  private iceCandidatesCount;
@@ -496,6 +521,19 @@ export default class Meeting extends StatelessWebexPlugin {
496
521
  private logUploadIntervalIndex;
497
522
  private mediaServerIp;
498
523
  private llmHealthCheckTimer?;
524
+ /**
525
+ * The LLM channel owned by this meeting for datachannel communication.
526
+ * Created in updateLLMConnection, cleaned up in cleanupLLMConneciton.
527
+ */
528
+ private llmChannel?;
529
+ /**
530
+ * The Voicea channel for transcription/captions, bound to this meeting's LLM channel.
531
+ */
532
+ voiceaChannel?: VoiceaChannel;
533
+ /**
534
+ * Pending datachannel token saved from join response, used when creating the LLM channel.
535
+ */
536
+ private _pendingDatachannelToken?;
499
537
  /**
500
538
  * @param {Object} attrs
501
539
  * @param {Object} options
@@ -504,6 +542,15 @@ export default class Meeting extends StatelessWebexPlugin {
504
542
  * @memberof Meeting
505
543
  */
506
544
  constructor(attrs: any, options: object, callback: (meeting: Meeting) => void);
545
+ /**
546
+ * Get the ingress payload type for a given media type and codec mime type
547
+ * @param {MediaType} mediaType - The media type
548
+ * @param {MediaCodecMimeType} codecMimeType - The codec mime type
549
+ * @returns {number | undefined} - The ingress payload type
550
+ * @private
551
+ * @memberof Meeting
552
+ */
553
+ private getIngressPayloadTypeCallback;
507
554
  /**
508
555
  * returns meeting is joined
509
556
  * @private
@@ -686,6 +733,40 @@ export default class Meeting extends StatelessWebexPlugin {
686
733
  * @returns {Promise}
687
734
  */
688
735
  postMetrics(eventName: ClientEvent['name']): void;
736
+ /**
737
+ * Handles the LLM state-update message that resulted from a Locus /sync. Records the LLM arrival
738
+ * time (the milestone that gates client.locus.sync.complete - the metric is emitted only for LLM
739
+ * flows) and then tries to complete the metric.
740
+ * @param {string} meetingId meeting id
741
+ * @param {string} trackingId sync tracking id echoed back on the LLM message
742
+ * @returns {void}
743
+ * @private
744
+ * @memberof Meeting
745
+ */
746
+ private onLocusSyncLlmMessage;
747
+ /**
748
+ * Attempts to complete the Locus sync latency metric and emit client.locus.sync.complete. The
749
+ * metric is emitted only once BOTH the /sync response and the resulting LLM message have arrived
750
+ * (in either order); until then the record is kept so the missing milestone can still land. Both
751
+ * trigger points (the LLM message handler and the /sync response timestamp) call this, so the
752
+ * metric fires as soon as the second milestone is in.
753
+ * @param {string} meetingId meeting id
754
+ * @param {string} trackingId sync tracking id used to match the pending record
755
+ * @returns {void}
756
+ * @private
757
+ * @memberof Meeting
758
+ */
759
+ private tryCompleteLocusSyncLatency;
760
+ /**
761
+ * Submits the client.locus.sync.complete Call Analyzer event for a completed Locus sync latency
762
+ * measurement.
763
+ * @param {string} meetingId meeting id
764
+ * @param {object} completed completed sync latency payload from the metrics plugin
765
+ * @returns {void}
766
+ * @private
767
+ * @memberof Meeting
768
+ */
769
+ private emitLocusSyncCompleteMetric;
689
770
  /**
690
771
  * Proxy function for all the listener set ups
691
772
  * @returns {undefined}
@@ -960,7 +1041,12 @@ export default class Meeting extends StatelessWebexPlugin {
960
1041
  */
961
1042
  mute(memberId: string, mute?: boolean): any;
962
1043
  /**
963
- * Transfer the moderator role to another eligible member
1044
+ * Transfer the moderator role to another eligible member.
1045
+ *
1046
+ * If the target member is currently joined in the current session, the request is
1047
+ * sent against the current locus. Otherwise, we search the breakout sessions and,
1048
+ * when the member is found in one, we send the request against that breakout
1049
+ * session's locus url instead.
964
1050
  * @param {String} memberId
965
1051
  * @param {Boolean} moderator
966
1052
  * @returns {Promise} see #members.transferHostToMember
@@ -1041,6 +1127,13 @@ export default class Meeting extends StatelessWebexPlugin {
1041
1127
  * @memberof Meeting
1042
1128
  */
1043
1129
  setSipUri(sipUri: string): void;
1130
+ /**
1131
+ * After initial locus setup, refreshes destination with synced locus data and optionally
1132
+ * performs deferred meeting info fetch when initial locus was incomplete.
1133
+ * @param {LocusDTO} locus
1134
+ * @returns {void}
1135
+ */
1136
+ finalizeMeetingAfterInitialLocusSetup(locus: LocusDTO): Promise<void>;
1044
1137
  /**
1045
1138
  * Set the locus info the class instance. Should be called with the parsed locus
1046
1139
  * we got in the join response.
@@ -1153,6 +1246,22 @@ export default class Meeting extends StatelessWebexPlugin {
1153
1246
  * @memberof Meeting
1154
1247
  */
1155
1248
  setMercuryListener(): void;
1249
+ /**
1250
+ * Removes this meeting's Mercury ONLINE/OFFLINE event listeners registered
1251
+ * by setMercuryListener(). Must be called before Locus /leave to avoid
1252
+ * unnecessary syncs/metrics triggered by events received while leaving
1253
+ * (per Locus team recommendation).
1254
+ *
1255
+ * Mercury is a process-wide singleton shared with other plugins, so we
1256
+ * pass the bound handler refs to .off() to avoid clearing every listener
1257
+ * for ONLINE/OFFLINE on the shared emitter.
1258
+ *
1259
+ * Idempotent: subsequent calls are no-ops because the handler refs are
1260
+ * cleared after detaching.
1261
+ * @private
1262
+ * @returns {void}
1263
+ */
1264
+ private stopListeningForMercuryEvents;
1156
1265
  /**
1157
1266
  * Close the peer connections and remove them from the class.
1158
1267
  * Cleanup any media connection related things.
@@ -1289,6 +1398,14 @@ export default class Meeting extends StatelessWebexPlugin {
1289
1398
  * @returns {void}
1290
1399
  */
1291
1400
  private processLocusLLMEvent;
1401
+ /**
1402
+ * Verifies the relay event was delivered for the active LLM session binding.
1403
+ * With the factory pattern, each meeting owns its channel, so we just verify
1404
+ * the route matches our channel's binding or the practice session binding.
1405
+ * @param {RelayEvent} event Event object coming from LLM Connection
1406
+ * @returns {boolean}
1407
+ */
1408
+ private isRelayEventRouteValid;
1292
1409
  /**
1293
1410
  * Callback called when a relay event is received from meeting LLM Connection
1294
1411
  * @param {RelayEvent} e Event object coming from LLM Connection
@@ -1308,6 +1425,11 @@ export default class Meeting extends StatelessWebexPlugin {
1308
1425
  * @returns{void}
1309
1426
  */
1310
1427
  private triggerStopReceivingTranscriptionEvent;
1428
+ /**
1429
+ * Restores LLM subchannel subscriptions after reconnect when captions are active.
1430
+ * @returns {void}
1431
+ */
1432
+ private restoreLLMSubscriptionsIfNeeded;
1311
1433
  /**
1312
1434
  * This is a callback for the LLM event that is triggered when it comes online
1313
1435
  * This method in turn will trigger an event to the developers that the LLM is connected
@@ -1342,20 +1464,86 @@ export default class Meeting extends StatelessWebexPlugin {
1342
1464
  */
1343
1465
  private clearLLMHealthCheckTimer;
1344
1466
  /**
1345
- * Disconnects and cleans up the default LLM session listeners/timers.
1467
+ * Removes LLM event listeners and clears the health check timer.
1468
+ * Must be called before Locus /leave to avoid unnecessary syncs triggered
1469
+ * by events received while leaving (per Locus team recommendation).
1470
+ * Idempotent: safe to call multiple times; .off() is a no-op when no
1471
+ * matching listener is registered.
1472
+ * @private
1473
+ * @returns {void}
1474
+ */
1475
+ private stopListeningForLLMEvents;
1476
+ /**
1477
+ * Stops listening on every event bus (LLM, Mercury, voicea/transcription,
1478
+ * annotation) that could otherwise deliver events to this meeting while
1479
+ * Locus is processing /leave or /end. Per the Locus team recommendation,
1480
+ * this must run before the Locus request is dispatched to avoid
1481
+ * unnecessary syncs triggered by in-flight events.
1482
+ *
1483
+ * Voicea (transcription) subscribes to llm 'event:relay.event' internally,
1484
+ * and the annotation plugin subscribes to both mercury and llm, so both
1485
+ * must be torn down alongside the direct LLM/Mercury listeners.
1486
+ *
1487
+ * Idempotent: safe to call multiple times; .off() is a no-op when no
1488
+ * matching listener is registered, and stopTranscription is guarded.
1489
+ * @private
1490
+ * @returns {void}
1491
+ */
1492
+ private stopListeningForMeetingEvents;
1493
+ /**
1494
+ * Disconnects and cleans up the LLM channel owned by this meeting.
1495
+ *
1346
1496
  * @param {Object} options
1347
- * @param {boolean} [options.removeOnlineListener=true] removes the one-time online listener
1348
1497
  * @param {boolean} [options.throwOnError=true] rethrows disconnect errors when true
1498
+ * @param {boolean} [options.preserveVoiceaChannel=false] when true, keeps voiceaChannel for switchLLMChannel() during reconnects
1349
1499
  * @returns {Promise<void>}
1350
1500
  */
1351
1501
  private cleanupLLMConneciton;
1502
+ /**
1503
+ * Sets the datachannel token on the meeting's LLM channel.
1504
+ * Used by the DataChannelAuthTokenInterceptor after refreshing tokens.
1505
+ * @param {string} token - The new datachannel token
1506
+ * @returns {void}
1507
+ */
1508
+ setLLMChannelDataToken(token: string): void;
1509
+ /**
1510
+ * Saves the data channel tokens from the join response.
1511
+ * Default session token is stored on this.llmChannel when available.
1512
+ * Practice session token is stored on the webinar's practice LLM channel.
1513
+ * @param {Object} join - The parsed join response (from MeetingUtil.parseLocusJoin)
1514
+ * @returns {void}
1515
+ */
1516
+ saveDataChannelToken(join: any): void;
1517
+ /**
1518
+ * Ensures default-session data channel token exists after lobby admission.
1519
+ * Some lobby users do not receive a token until they are admitted.
1520
+ * @returns {Promise<boolean>} true when a new token is fetched and cached
1521
+ */
1522
+ private ensureDefaultDatachannelTokenAfterAdmit;
1352
1523
  /**
1353
1524
  * Connects to low latency mercury and reconnects if the address has changed
1354
1525
  * It will also disconnect if called when the meeting has ended
1355
- * @param {String} datachannelUrl
1526
+ * @param {Object} [options]
1527
+ * @param {boolean} [options.isInitialJoinPhase] true when called from initial join flow
1356
1528
  * @returns {Promise}
1357
1529
  */
1358
- updateLLMConnection(): Promise<any>;
1530
+ updateLLMConnection({ isInitialJoinPhase }?: {
1531
+ isInitialJoinPhase?: boolean;
1532
+ }): Promise<any>;
1533
+ /**
1534
+ * Ensures breakout join response metric with LLM latency is emitted only once per breakout move id.
1535
+ * @param {string | undefined} breakoutMoveId
1536
+ * @param {boolean} [hasLLMLatency=false]
1537
+ * @returns {boolean}
1538
+ */
1539
+ private shouldEmitBreakoutJoinResponseMetric;
1540
+ /**
1541
+ * Sends LLM connect latencies for initial join flow.
1542
+ * @param {RegisterAndConnectTiming} timings
1543
+ * @param {any} [error]
1544
+ * @returns {void}
1545
+ */
1546
+ private sendLLMConnectMetric;
1359
1547
  /**
1360
1548
  * Use phone for meeting audio
1361
1549
  * @param {String} phoneNumber If provided, it will dial-out using this number. If not provided, dial-in will be used
@@ -1433,12 +1621,36 @@ export default class Meeting extends StatelessWebexPlugin {
1433
1621
  */
1434
1622
  setupStatsAnalyzerEventHandlers: () => void;
1435
1623
  getMediaConnectionDebugId(): string;
1624
+ /**
1625
+ * Checks if the error indicates that Locus dropped us from the meeting,
1626
+ * either directly on the error or wrapped inside an AddMediaFailed cause.
1627
+ * This method is meant to be called only with errors thrown by Meeting.addMediaInternal()
1628
+ *
1629
+ * @param {Error} error
1630
+ * @returns {boolean}
1631
+ */
1632
+ private isErrorMeaningLocusDroppedUs;
1633
+ private isLocusUserFullError;
1634
+ /**
1635
+ * Determines if the next media attempt should use only TURN-TLS (iceTransportPolicy='relay').
1636
+ * We do this in the hope that it will minimize the chance of Homer sending DTLS packets on a wrong
1637
+ * transport (as there will be only 1 transport) and dealing with firewalls that let STUN packets through, but block
1638
+ * other UDP traffic.
1639
+ *
1640
+ * For clients landing on video mesh nodes (VMN), reachability might still have successful TLS (to public nodes)
1641
+ * but TURN discovery will result in empty TURN urls array and iceTransportPolicy='relay' will still be overriden to undefined,
1642
+ * see the code in establishMediaConnection()
1643
+ *
1644
+ * @param {Error} prevError - The error from the previous addMedia attempt
1645
+ * @returns {Promise<boolean>}
1646
+ */
1647
+ private shouldRetryMediaWithOnlyTurnTLS;
1436
1648
  /**
1437
1649
  * Creates a webrtc media connection and publishes streams to it
1438
1650
  *
1439
1651
  * @param {Object} turnServerInfo TURN server information
1440
1652
  * @param {BundlePolicy} [bundlePolicy] Bundle policy settings
1441
- * @param {AddMediaOptions} [options] Options for enabling/disabling audio/video
1653
+ * @param {RTCIceTransportPolicy} [iceTransportPolicy] ICE transport policy override
1442
1654
  * @returns {RoapMediaConnection | MultistreamRoapMediaConnection}
1443
1655
  */
1444
1656
  private createMediaConnection;
@@ -1564,6 +1776,13 @@ export default class Meeting extends StatelessWebexPlugin {
1564
1776
  * @returns {void}
1565
1777
  */
1566
1778
  private setupLocusMediaRequest;
1779
+ /**
1780
+ * Waits for LocusInfo to update meeting.selfUrl, with a timeout fallback.
1781
+ * @returns {Promise<void>}
1782
+ * @private
1783
+ * @memberof Meeting
1784
+ */
1785
+ private waitForSelfUrlChange;
1567
1786
  /**
1568
1787
  * Creates a media connection to the server. Media connection is required for sending or receiving any audio/video.
1569
1788
  *
@@ -1577,14 +1796,15 @@ export default class Meeting extends StatelessWebexPlugin {
1577
1796
  * Internal version of addMedia() with some more arguments for finer control of its behavior
1578
1797
  *
1579
1798
  * @param {Function} icePhaseCallback - callback to determine the icePhase for CA "client.ice.end" failure events
1580
- * @param {TurnServerInfo} turnServerInfo - TURN server information
1581
1799
  * @param {boolean} forceTurnDiscovery - if true, TURN discovery will be done
1800
+ * @param {TurnServerInfo} turnServerInfo - TURN server information
1801
+ * @param {RTCIceTransportPolicy} [iceTransportPolicy] - ICE transport policy override
1582
1802
  * @param {AddMediaOptions} options - same as options of the public addMedia() method
1583
1803
  * @returns {Promise<void>}
1584
1804
  * @protected
1585
1805
  * @memberof Meeting
1586
1806
  */
1587
- protected addMediaInternal(icePhaseCallback: () => string, turnServerInfo: TurnServerInfo, forceTurnDiscovery: any, options?: AddMediaOptions): Promise<void>;
1807
+ protected addMediaInternal(icePhaseCallback: () => string, forceTurnDiscovery: boolean, turnServerInfo?: TurnServerInfo, iceTransportPolicy?: RTCIceTransportPolicy, options?: AddMediaOptions): Promise<void>;
1588
1808
  /**
1589
1809
  * Informs if the peer connection is in a state that can be updated with updateMedia (audio/video/share)
1590
1810
  * @returns {Boolean}
@@ -1947,7 +2167,7 @@ export default class Meeting extends StatelessWebexPlugin {
1947
2167
  * @public
1948
2168
  * @memberof Meeting
1949
2169
  */
1950
- sendReaction(reactionType: ReactionServerType, skinToneType?: SkinToneType): any;
2170
+ sendReaction(reactionType: string, skinToneType?: SkinToneType): any;
1951
2171
  /**
1952
2172
  * Extend the current meeting duration.
1953
2173
  *
@@ -2111,6 +2331,20 @@ export default class Meeting extends StatelessWebexPlugin {
2111
2331
  dataChannelTokenType: DataChannelTokenType;
2112
2332
  };
2113
2333
  }>;
2334
+ /**
2335
+ * Checks if the LLM channel is connected.
2336
+ * Handles practice session context automatically - returns practice session
2337
+ * LLM channel status when in practice session, main LLM channel status otherwise.
2338
+ * @returns {boolean} True if the appropriate LLM channel is connected
2339
+ */
2340
+ isLLMConnected(): boolean;
2341
+ /**
2342
+ * Gets the locus URL from the LLM channel.
2343
+ * Handles practice session context automatically - returns practice session
2344
+ * LLM channel's locus URL when in practice session, main LLM channel's locus URL otherwise.
2345
+ * @returns {string | undefined} The locus URL or undefined
2346
+ */
2347
+ getLLMLocusUrl(): string | undefined;
2114
2348
  /**
2115
2349
  * Determines the current data channel token type based on the meeting state.
2116
2350
  *
@@ -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>;
@@ -49,7 +49,9 @@ declare const MeetingUtil: {
49
49
  */
50
50
  getCaEventLabelsForIpVersion(webex: any): Array<string> | undefined;
51
51
  joinMeeting: (meeting: any, options: any) => Promise<any>;
52
- cleanUp: (meeting: any) => any;
52
+ cleanUp: (meeting: any, { preserveVoiceaChannel }?: {
53
+ preserveVoiceaChannel?: boolean;
54
+ }) => any;
53
55
  disconnectPhoneAudio: (meeting: any, phoneUrl: any) => any;
54
56
  /**
55
57
  * Returns options for leaving a meeting.
@@ -133,6 +135,13 @@ declare const MeetingUtil: {
133
135
  * @returns {void}
134
136
  */
135
137
  addSequence: (meeting: any, requestBody: any) => void;
138
+ /**
139
+ * Checks if Locus API response contains a Locus DTO
140
+ *
141
+ * @param {any} response http response from Locus API call
142
+ * @returns {boolean} true if response contains a Locus DTO
143
+ */
144
+ isLocusDtoInAPIResponse(response: any): any;
136
145
  /**
137
146
  * Updates the locus info for the meeting with the locus
138
147
  * information returned from API requests made to Locus
@@ -146,6 +155,8 @@ declare const MeetingUtil: {
146
155
  generateLocusDeltaRequest: (originalMeeting: any) => (originalOptions: any) => any;
147
156
  canAttendeeRequestAiAssistantEnabled: (displayHints?: any[], roles?: any[]) => boolean;
148
157
  attendeeRequestAiAssistantDeclinedAll: (displayHints?: any[]) => boolean;
158
+ isAnonymizeDisplayNamesEnabled: (displayHints: any) => any;
159
+ canViewTheParticipantList: (displayHints: any, canNotViewTheParticipantList: boolean) => any;
149
160
  selfSupportsFeature: (feature: SELF_POLICY, userPolicies: Record<SELF_POLICY, boolean>) => boolean;
150
161
  parseInterpretationInfo: (meeting: any, meetingInfo: any) => void;
151
162
  /**
@@ -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