@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
@@ -1,9 +1,11 @@
1
1
  import EventsScope from '../common/events/events-scope';
2
2
  import { LOCUSEVENT } from '../constants';
3
- import HashTreeParser, { DataSet, HashTreeMessage, Metadata } from '../hashTree/hashTreeParser';
3
+ import HashTreeParser, { DataSet, HashTreeMessage, Metadata, SyncLatencyTracker } from '../hashTree/hashTreeParser';
4
4
  import { HashTreeObject } from '../hashTree/types';
5
5
  import { Links, LocusDTO } from './types';
6
+ import MeetingCollection from '../meetings/collection';
6
7
  export type LocusLLMEvent = {
8
+ trackingId?: string;
7
9
  data: {
8
10
  eventType: typeof LOCUSEVENT.HASH_TREE_DATA_UPDATED;
9
11
  stateElementsMessage: HashTreeMessage;
@@ -13,7 +15,24 @@ export type LocusApiResponseBody = {
13
15
  dataSets?: DataSet[];
14
16
  locus: LocusDTO;
15
17
  metadata?: Metadata;
18
+ } | LocusDTO;
19
+ export type HashTreeParserEntry = {
20
+ parser: HashTreeParser;
21
+ replacedAt?: string;
22
+ initializedFromHashTree: boolean;
16
23
  };
24
+ export type LocusInfoCallbacks = {
25
+ updateMeeting: (object: any) => void;
26
+ syncLatencyTracker?: SyncLatencyTracker;
27
+ };
28
+ /**
29
+ * Finds a meeting for a given hash tree message.
30
+ *
31
+ * @param {HashTreeMessage} message - The hash tree message to find the meeting for
32
+ * @param {MeetingCollection} meetingCollection - The collection of meetings to search
33
+ * @returns {any} The meeting if found, otherwise undefined
34
+ */
35
+ export declare function findMeetingForHashTreeMessage(message: HashTreeMessage | undefined, meetingCollection: MeetingCollection): any;
17
36
  /**
18
37
  * Creates a locus object from the objects received in a hash tree message. It usually will be
19
38
  * incomplete, because hash tree messages only contain the parts of locus that have changed,
@@ -38,7 +57,6 @@ export default class LocusInfo extends EventsScope {
38
57
  locusParser: any;
39
58
  meetingId: any;
40
59
  parsedLocus: any;
41
- updateMeeting: any;
42
60
  webex: any;
43
61
  aclUrl: any;
44
62
  baseSequence: any;
@@ -59,17 +77,26 @@ export default class LocusInfo extends EventsScope {
59
77
  links?: Links;
60
78
  mainSessionLocusCache: any;
61
79
  self: any;
62
- hashTreeParser?: HashTreeParser;
80
+ hashTreeParsers: Map<string, HashTreeParserEntry>;
63
81
  hashTreeObjectId2ParticipantId: Map<number, string>;
64
82
  classicVsHashTreeMismatchMetricCounter: number;
83
+ private callbacks;
84
+ private destroyMeetingSuspended;
65
85
  /**
66
86
  * Constructor
67
- * @param {function} updateMeeting callback to update the meeting object from an object
87
+ * @param {Object} callbacks callbacks used by LocusInfo
88
+ * @param {function} callbacks.updateMeeting callback to update the meeting object from an object
68
89
  * @param {object} webex
69
90
  * @param {string} meetingId
70
91
  * @returns {undefined}
71
92
  */
72
- constructor(updateMeeting: any, webex: any, meetingId: any);
93
+ constructor(callbacks: LocusInfoCallbacks, webex: any, meetingId: any);
94
+ /**
95
+ * Whether this meeting uses hash tree based Locus (as opposed to a classic, delta based Locus).
96
+ *
97
+ * @returns {boolean}
98
+ */
99
+ isUsingHashTrees(): boolean;
73
100
  /**
74
101
  * Does a Locus sync. It tries to get the latest delta DTO or if it can't, it falls back to getting the full Locus DTO.
75
102
  * WARNING: This function must not be used for hash tree based Locus meetings.
@@ -77,9 +104,41 @@ export default class LocusInfo extends EventsScope {
77
104
  * @param {Meeting} meeting
78
105
  * @param {boolean} isLocusUrlChanged
79
106
  * @param {Locus} locus
80
- * @returns {undefined}
107
+ * @param {Object} [options]
108
+ * @param {boolean} [options.destroyOnTransientFailure=true] controls what happens on a *transient*
109
+ * sync failure (a terminal failure, e.g. a 403 meaning the meeting has ended, always destroys
110
+ * the meeting regardless of this flag). When true, a transient failure destroys the meeting and
111
+ * the returned promise still resolves. When false, the meeting is preserved and the returned
112
+ * promise rejects so the caller can retry.
113
+ * @returns {Promise} resolves once the fetched DTO has been applied; see destroyOnTransientFailure
114
+ * for the failure behavior
81
115
  */
82
116
  private doLocusSync;
117
+ /**
118
+ * Syncs this meeting's Locus state (e.g. after a network reconnection), routing to whichever
119
+ * mechanism the meeting uses (a meeting only ever uses one): hash tree datasets via
120
+ * syncAllHashTreeDatasets() or a standalone Locus DTO fetch for classic meetings.
121
+ * A transient failure preserves the meeting (so the caller can retry); only a terminal failure
122
+ * (e.g. a 403 meaning the meeting has ended) destroys it.
123
+ *
124
+ * The classic path is only needed when Meetings#syncMeetings() can't do its usual
125
+ * getActiveMeetings() fetch (e.g. unverified guests, for whom Locus rejects that call); signed-in
126
+ * users resync classic meetings via getActiveMeetings() and pass canSyncClassicLocus as false.
127
+ *
128
+ * @param {Meeting} meeting
129
+ * @param {Object} options
130
+ * @param {boolean} options.canSyncClassicLocus - whether this sync is allowed to fetch a
131
+ * standalone Locus DTO for classic meetings
132
+ * @param {boolean} options.canSyncHashTree - whether this sync is allowed to sync hash tree
133
+ * datasets for hash tree based meetings
134
+ * @returns {Promise<void>} resolves once the sync (hash tree or classic) completes; for the
135
+ * classic path it rejects only on a transient failure, so the caller can retry (a terminal
136
+ * failure destroys the meeting and resolves)
137
+ */
138
+ sync(meeting: any, { canSyncClassicLocus, canSyncHashTree }: {
139
+ canSyncClassicLocus: boolean;
140
+ canSyncHashTree: boolean;
141
+ }): Promise<void>;
83
142
  /**
84
143
  * Apply locus delta data to meeting
85
144
  * @param {string} action Locus delta action
@@ -104,13 +163,24 @@ export default class LocusInfo extends EventsScope {
104
163
  */
105
164
  init(locus?: any): void;
106
165
  /**
107
- * Creates the HashTreeParser instance.
108
- * @param {Object} initial locus data
109
- * @returns {void}
166
+ * Whether we expect to receive updates over the LLM connection. This is used by hash tree parsers
167
+ * to decide whether to arm heartbeat watchdog timers for LLM data sets.
168
+ * @returns {boolean}
169
+ */
170
+ private isLlmExpected;
171
+ /**
172
+ * Creates a HashTreeParser instance for a given locusUrl and stores it in the map.
173
+ * @param {Object} params
174
+ * @param {string} params.locusUrl - the locus URL used as the map key
175
+ * @param {Object} params.initialLocus - initial locus data
176
+ * @param {Object} params.metadata - hash tree metadata
177
+ * @param {string} params.replacedAt - timestamp from Locus indicating when the replacement happened
178
+ * @returns {HashTreeParser} the newly created parser
110
179
  */
111
180
  private createHashTreeParser;
112
181
  /**
113
182
  * @param {Object} data - data to initialize locus info with. It may be from a join or GET /loci response or from a Mercury event that triggers a creation of meeting object
183
+ * @param {Function} [onLocusSynced] - optional callback that will be called at the end of initial setup, when locus info is fully synced. It will be called with the full locus snapshot as an argument (which may be null if we haven't received any full locus DTOs during the initial setup, for example in case we receive only hash tree messages without full locus DTOs)
114
184
  * @returns {undefined}
115
185
  * @memberof LocusInfo
116
186
  */
@@ -126,7 +196,13 @@ export default class LocusInfo extends EventsScope {
126
196
  } | {
127
197
  trigger: 'get-loci-response';
128
198
  locus?: LocusDTO;
129
- }): Promise<void>;
199
+ }, onLocusSynced?: (locus: LocusDTO) => void): Promise<void>;
200
+ /**
201
+ * Builds a full locus DTO snapshot from current internal locus state.
202
+ *
203
+ * @returns {LocusDTO}
204
+ */
205
+ private getCurrentLocusSnapshot;
130
206
  /**
131
207
  * Handles HTTP response from Locus API call.
132
208
  * @param {Meeting} meeting meeting object
@@ -135,7 +211,6 @@ export default class LocusInfo extends EventsScope {
135
211
  */
136
212
  handleLocusAPIResponse(meeting: any, responseBody: LocusApiResponseBody): void;
137
213
  /**
138
- *
139
214
  * @param {HashTreeObject} object data set object
140
215
  * @param {any} locus
141
216
  * @returns {void}
@@ -149,6 +224,35 @@ export default class LocusInfo extends EventsScope {
149
224
  * @returns {void}
150
225
  */
151
226
  sendClassicVsHashTreeMismatchMetric(meeting: any, message: string): void;
227
+ /**
228
+ * Helper that handles the common logic for reactivating a stopped HashTreeParser when
229
+ * a newer "replaces" is detected. Used by both the message and API response parser switch methods.
230
+ *
231
+ * @param {string} callerName - name of the calling method, used in log messages
232
+ * @param {string} locusUrl - the locus URL of the stopped parser
233
+ * @param {HashTreeParserEntry} stoppedEntry - the stopped parser entry
234
+ * @param {ReplacesInfo} replaces - replacement info extracted from self
235
+ * @param {Function} resumeCallback - callback to invoke after reactivation to resume the parser
236
+ * @returns {void}
237
+ */
238
+ private resumeStoppedParser;
239
+ /**
240
+ * Handles an API response whose locusUrl doesn't match any active HashTreeParser
241
+ * (either no entry exists, or the existing entry is stopped).
242
+ * Creates a new parser or reactivates a stopped one using initializeFromGetLociResponse.
243
+ *
244
+ * @param {string} locusUrl - the locus URL from the API response
245
+ * @param {LocusDTO} locus - the locus DTO from the API response
246
+ * @returns {void}
247
+ */
248
+ private handleHashTreeParserSwitchForAPIResponse;
249
+ /**
250
+ * Checks if the hash tree message should trigger a switch to a different HashTreeParser
251
+ *
252
+ * @param {HashTreeMessage} message incoming hash tree message
253
+ * @returns {boolean} true if the message was handled as a parser switch, false otherwise
254
+ */
255
+ private handleHashTreeParserSwitch;
152
256
  /**
153
257
  * Handles a hash tree message received from Locus.
154
258
  *
@@ -158,12 +262,23 @@ export default class LocusInfo extends EventsScope {
158
262
  * @returns {void}
159
263
  */
160
264
  private handleHashTreeMessage;
265
+ /**
266
+ * Triggers a sync of all hash tree datasets for all hash tree parsers associated with this meeting.
267
+ * The syncs are executed sequentially within each parser.
268
+ *
269
+ * @param {Object} [options={}] - Options for syncing
270
+ * @param {boolean} [options.onlyLLM=false] - Whether to sync only LLM based data sets
271
+ * @returns {Promise<void>}
272
+ */
273
+ syncAllHashTreeDatasets(options?: {
274
+ onlyLLM?: boolean;
275
+ }): Promise<void>;
161
276
  /**
162
277
  * Callback registered with HashTreeParser to receive locus info updates.
163
278
  * Updates our locus info based on the data parsed by the hash tree parser.
164
279
  *
165
- * @param {LocusInfoUpdateType} updateType - The type of update received.
166
- * @param {Object} [data] - Additional data for the update, if applicable.
280
+ * @param {string} locusUrl - the locus URL for which the update is received
281
+ * @param {LocusInfoUpdate} update - Details about the update.
167
282
  * @returns {void}
168
283
  */
169
284
  private updateFromHashTree;
@@ -188,8 +303,8 @@ export default class LocusInfo extends EventsScope {
188
303
  * @param {string} debugText string explaining the trigger for this call, added to logs for debugging purposes
189
304
  * @param {object} locus locus object
190
305
  * @param {object} metadata locus hash trees metadata
191
- * @param {string} eventType locus event
192
306
  * @param {DataSet[]} dataSets
307
+ * @param {string} eventType locus event
193
308
  * @returns {void}
194
309
  */
195
310
  private onFullLocusWithHashTrees;
@@ -226,6 +341,13 @@ export default class LocusInfo extends EventsScope {
226
341
  * @memberof LocusInfo
227
342
  */
228
343
  handleOneOnOneEvent(eventType: string): void;
344
+ /**
345
+ * Makes sure that passed in locus object has a participant object for self.
346
+ *
347
+ * @param {LocusDTO} locus The locus object to check and modify if needed
348
+ * @returns {void}
349
+ */
350
+ ensureSelfParticipantExists(locus: any): void;
229
351
  /**
230
352
  * @param {Object} locus
231
353
  * @returns {undefined}
@@ -237,7 +359,7 @@ export default class LocusInfo extends EventsScope {
237
359
  * @returns {undefined}
238
360
  * @memberof LocusInfo
239
361
  */
240
- updateLocusInfo(locus: any): void;
362
+ updateLocusInfo(locus: any): boolean;
241
363
  /**
242
364
  * @param {Array} participants
243
365
  * @param {Object} self
@@ -250,6 +372,14 @@ export default class LocusInfo extends EventsScope {
250
372
  * @memberof LocusInfo
251
373
  */
252
374
  isMeetingActive(): void;
375
+ /**
376
+ * Suspends or resumes the emission of DESTROY_MEETING events in certain situations.
377
+ * Used by joinWithMedia to prevent meeting destruction during retry flows.
378
+ * @param {boolean} suspend - true to suppress, false to resume
379
+ * @returns {undefined}
380
+ * @memberof LocusInfo
381
+ */
382
+ suspendDestroyMeeting(suspend: boolean): void;
253
383
  /**
254
384
  * checks if the host permissions have changed while in the meeting
255
385
  * This would be the case if your role as host or moderator has been updated
@@ -411,4 +541,10 @@ export default class LocusInfo extends EventsScope {
411
541
  * @memberof LocusInfo
412
542
  */
413
543
  clearMainSessionLocusCache(): void;
544
+ /**
545
+ * Cleans up all hash tree parsers and clears internal maps.
546
+ * @returns {void}
547
+ * @memberof LocusInfo
548
+ */
549
+ cleanUp(): void;
414
550
  }
@@ -1,2 +1,10 @@
1
+ export declare enum DisplayHintSection {
2
+ JOINED = "joined",
3
+ MODERATOR = "moderator",
4
+ COHOST = "coHost",
5
+ PRESENTER = "presenter",
6
+ PANELIST = "panelist",
7
+ ATTENDEE = "attendee"
8
+ }
1
9
  declare const InfoUtils: any;
2
10
  export default InfoUtils;
@@ -1,14 +1,30 @@
1
+ import { Enum } from '../constants';
1
2
  import { HtMeta } from '../hashTree/types';
3
+ export declare const EndMeetingReason: {
4
+ readonly maxMeetingDuration: "MAX_MEETING_DURATION";
5
+ readonly allParticipantsLeft: "ALL_PARTICIPANTS_LEFT";
6
+ readonly sipHostLeft: "SIP_HOST_LEFT";
7
+ readonly noHost: "NO_HOST";
8
+ readonly waitingForMpsEndMeetingTimeout: "WAITING_FOR_MPS_END_MEETING_TIMEOUT";
9
+ readonly fraudDetection: "FRAUD_DETECTION";
10
+ readonly meetingEndedByHost: "MEETING_ENDED_BY_HOST";
11
+ readonly meetingUpdated: "MEETING_UPDATED";
12
+ readonly meetingCancelled: "MEETING_CANCELLED";
13
+ readonly autoEndWithSingleParticipant: "AUTO_END_WITH_SINGLE_PARTICIPANT";
14
+ readonly breakoutEnded: "BREAKOUT_ENDED";
15
+ };
16
+ export type EndMeetingReason = Enum<typeof EndMeetingReason>;
2
17
  export type LocusFullState = {
3
18
  active: boolean;
4
19
  count: number;
5
20
  lastActive: string;
6
21
  locked: boolean;
7
22
  sessionId: string;
8
- seessionIds: string[];
23
+ sessionIds: string[];
9
24
  startTime: number;
10
25
  state: string;
11
26
  type: string;
27
+ endMeetingReason?: EndMeetingReason;
12
28
  };
13
29
  export type Links = {
14
30
  services: Record<'breakout' | 'record', {
@@ -33,6 +49,7 @@ export type LocusDTO = {
33
49
  info?: any;
34
50
  jsSdkMeta?: {
35
51
  removedParticipantIds: string[];
52
+ forceReplaceMembers?: boolean;
36
53
  };
37
54
  links?: Links;
38
55
  mediaShares?: any[];
@@ -53,3 +70,13 @@ export type LocusDTO = {
53
70
  syncUrl?: string;
54
71
  url?: string;
55
72
  };
73
+ export type ReplacesInfo = {
74
+ locusUrl: string;
75
+ replacedAt: string;
76
+ sessionId: string;
77
+ };
78
+ export declare const LocusErrorCodes: {
79
+ readonly LOCUS_INACTIVE: 2403004;
80
+ readonly LOCUS_USER_FULL: 2423001;
81
+ };
82
+ export type LocusErrorCodes = Enum<typeof LocusErrorCodes>;
@@ -2,89 +2,106 @@ export interface MediaConnectionAwaiterProps {
2
2
  webrtcMediaConnection: any;
3
3
  correlationId: string;
4
4
  }
5
+ export interface FailureResult {
6
+ iceConnected: boolean;
7
+ iceConnectedAtLeastOnce: boolean;
8
+ }
5
9
  /**
6
- * @class MediaConnectionAwaiter
10
+ * Waits for ICE and DTLS connectivity using explicit lifecycle states.
7
11
  */
8
12
  export default class MediaConnectionAwaiter {
9
- private webrtcMediaConnection;
10
- private timer;
13
+ private props;
14
+ private state;
15
+ private timer?;
16
+ private iceConnectedAtLeastOnce;
11
17
  private defer;
12
- private retried;
13
- private iceConnected;
14
- private correlationId;
15
- private onTimeoutCallback;
16
- private peerConnectionStateCallback;
17
- private iceConnectionStateCallback;
18
- private iceGatheringStateCallback;
19
18
  /**
20
- * @param {MediaConnectionAwaiterProps} mediaConnectionAwaiterProps
19
+ * @param {MediaConnectionAwaiterProps} props
21
20
  */
22
- constructor({ webrtcMediaConnection, correlationId }: MediaConnectionAwaiterProps);
21
+ constructor(props: MediaConnectionAwaiterProps);
23
22
  /**
24
- * Returns true if the connection is connected, false otherwise.
25
- *
26
- * @returns {boolean}
23
+ * Registers listeners and starts the wait once, settling terminal connections immediately.
24
+ * @returns {Promise<void>} Rejects with FailureResult on failure
27
25
  */
28
- private isConnected;
26
+ waitForMediaConnectionConnected(): Promise<void>;
29
27
  /**
30
- * Returns true if the connection is in an unrecoverable "failed" state
31
- *
32
- * @returns {boolean}
28
+ * Applies a transition to a new state and owns its deadline or terminal settlement.
29
+ * @param {EnteredState} next - State to enter; an active wait cannot return to idle
30
+ * @param {string} reason - Trigger or reason for the transition
31
+ * @returns {void}
33
32
  */
34
- private isFailed;
33
+ private enter;
35
34
  /**
36
- * Returns true if the ICE Gathering is completed, false otherwise.
37
- *
35
+ * Returns whether the promise has settled.
38
36
  * @returns {boolean}
39
37
  */
40
- private isIceGatheringCompleted;
38
+ private isTerminal;
39
+ /**
40
+ * Returns the current state only if it owns a connection deadline.
41
+ * @returns {ActiveState | undefined}
42
+ */
43
+ private getActiveState;
44
+ /**
45
+ * Logs current browser state and transitions when connectivity or phase changes.
46
+ * @param {string} trigger - Callback or operation that triggered evaluation
47
+ * @returns {boolean} Whether a state transition occurred
48
+ */
49
+ private evaluate;
41
50
  /**
42
- * Clears the callbacks.
43
- *
51
+ * Listener for peer connection state changes.
44
52
  * @returns {void}
45
53
  */
46
- private clearCallbacks;
54
+ peerConnectionStateHandler: () => void;
47
55
  /**
48
- * On connection state change.
49
- *
56
+ * Listener for ICE connection state changes.
50
57
  * @returns {void}
51
58
  */
52
- connectionStateChange(): void;
59
+ iceConnectionStateHandler: () => void;
53
60
  /**
54
- * Listener for peer connection state change.
55
- *
61
+ * Restarts only an unchanged ICE phase when gathering completes.
56
62
  * @returns {void}
57
63
  */
58
- peerConnectionStateHandler(): void;
64
+ iceGatheringStateHandler: () => void;
59
65
  /**
60
- * Listener for ICE connection state change.
61
- *
66
+ * Rechecks connectivity before applying the deadline or the ICE gathering retry.
62
67
  * @returns {void}
63
68
  */
64
- iceConnectionStateHandler(): void;
69
+ onTimeout: () => void;
65
70
  /**
66
- * Listener for ICE gathering state change.
67
- *
71
+ * Arms an active phase's deadline and logs every start or restart.
72
+ * @param {ActiveState} state - Active state whose deadline is being started
73
+ * @param {string} reason - Why the deadline is being started or restarted
68
74
  * @returns {void}
69
75
  */
70
- iceGatheringStateHandler(): void;
76
+ private armTimer;
71
77
  /**
72
- * sends a metric with some additional info that might help debugging
73
- * issues where browser doesn't update the RTCPeerConnection's iceConnectionState or connectionState
74
- *
78
+ * Releases the deadline and registered listeners on either terminal transition.
75
79
  * @returns {void}
76
80
  */
77
- sendMetric(): Promise<void>;
81
+ private teardown;
78
82
  /**
79
- * Function called when the timeout is reached.
80
- *
83
+ * Registers each callback once with a stable function reference.
81
84
  * @returns {void}
82
85
  */
83
- onTimeout(): void;
86
+ private registerCallbacks;
84
87
  /**
85
- * Waits for the webrtc media connection to be connected.
86
- *
87
- * @returns {Promise}
88
+ * Removes callbacks when the wait reaches a terminal state.
89
+ * @returns {void}
88
90
  */
89
- waitForMediaConnectionConnected(): Promise<void>;
91
+ private unregisterCallbacks;
92
+ /**
93
+ * Returns whether ICE gathering has completed.
94
+ * @returns {boolean}
95
+ */
96
+ private isIceGatheringCompleted;
97
+ /**
98
+ * Captures current and historical ICE connectivity for failures and metrics.
99
+ * @returns {FailureResult}
100
+ */
101
+ private getConnectivity;
102
+ /**
103
+ * Sends connectivity diagnostics when a deadline expires.
104
+ * @returns {Promise<void>}
105
+ */
106
+ private sendMetric;
90
107
  }
@@ -26,6 +26,7 @@ export default class MediaProperties {
26
26
  shareAudioStream?: LocalSystemAudioStream;
27
27
  videoDeviceId: any;
28
28
  videoStream?: LocalCameraStream;
29
+ srtpCipher: string | undefined;
29
30
  namespace: string;
30
31
  mediaIssueCounters: {
31
32
  [key: string]: number;
@@ -147,8 +148,11 @@ export default class MediaProperties {
147
148
  *
148
149
  * @param {string} issueType
149
150
  * @param {string} issueSubType
150
- * @param {string} correlationId
151
+ * @param {Object} metadata
151
152
  * @returns {void}
152
153
  */
153
- sendMediaIssueMetric(issueType: string, issueSubType: string, correlationId: any): void;
154
+ sendMediaIssueMetric(issueType: string, issueSubType: string, metadata: {
155
+ correlationId: string;
156
+ isMultistream: boolean;
157
+ }): void;
154
158
  }
@@ -115,6 +115,8 @@ interface IInMeetingActions {
115
115
  canDisablePollingQA?: boolean;
116
116
  canAttendeeRequestAiAssistantEnabled?: boolean;
117
117
  isAttendeeRequestAiAssistantDeclinedAll?: boolean;
118
+ isAnonymizeDisplayNamesEnabled?: boolean;
119
+ canViewTheParticipantList?: boolean;
118
120
  }
119
121
  /**
120
122
  * @class InMeetingActions
@@ -230,6 +232,8 @@ export default class InMeetingActions implements IInMeetingActions {
230
232
  canDisablePollingQA: any;
231
233
  canAttendeeRequestAiAssistantEnabled: any;
232
234
  isAttendeeRequestAiAssistantDeclinedAll: any;
235
+ isAnonymizeDisplayNamesEnabled: any;
236
+ canViewTheParticipantList: any;
233
237
  /**
234
238
  * Returns all meeting action options
235
239
  * @returns {Object}