@webex/plugin-meetings 3.12.0-task-refactor.1 → 3.12.0-webex-services-ready.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (302) hide show
  1. package/AGENTS.md +9 -0
  2. package/dist/aiEnableRequest/index.js +197 -0
  3. package/dist/aiEnableRequest/index.js.map +1 -0
  4. package/dist/aiEnableRequest/utils.js +36 -0
  5. package/dist/aiEnableRequest/utils.js.map +1 -0
  6. package/dist/annotation/index.js +14 -5
  7. package/dist/annotation/index.js.map +1 -1
  8. package/dist/breakouts/breakout.js +8 -3
  9. package/dist/breakouts/breakout.js.map +1 -1
  10. package/dist/breakouts/index.js +26 -2
  11. package/dist/breakouts/index.js.map +1 -1
  12. package/dist/common/errors/webex-errors.js +49 -5
  13. package/dist/common/errors/webex-errors.js.map +1 -1
  14. package/dist/config.js +9 -3
  15. package/dist/config.js.map +1 -1
  16. package/dist/constants.js +59 -10
  17. package/dist/constants.js.map +1 -1
  18. package/dist/controls-options-manager/constants.js +11 -1
  19. package/dist/controls-options-manager/constants.js.map +1 -1
  20. package/dist/controls-options-manager/index.js +67 -29
  21. package/dist/controls-options-manager/index.js.map +1 -1
  22. package/dist/controls-options-manager/util.js +91 -0
  23. package/dist/controls-options-manager/util.js.map +1 -1
  24. package/dist/hashTree/constants.js +34 -0
  25. package/dist/hashTree/constants.js.map +1 -0
  26. package/dist/hashTree/hashTree.js +533 -0
  27. package/dist/hashTree/hashTree.js.map +1 -0
  28. package/dist/hashTree/hashTreeParser.js +2068 -36
  29. package/dist/hashTree/hashTreeParser.js.map +1 -1
  30. package/dist/hashTree/types.js +13 -3
  31. package/dist/hashTree/types.js.map +1 -1
  32. package/dist/hashTree/utils.js +111 -0
  33. package/dist/hashTree/utils.js.map +1 -0
  34. package/dist/index.js +18 -2
  35. package/dist/index.js.map +1 -1
  36. package/dist/interceptors/constant.js +12 -0
  37. package/dist/interceptors/constant.js.map +1 -0
  38. package/dist/interceptors/dataChannelAuthToken.js +350 -0
  39. package/dist/interceptors/dataChannelAuthToken.js.map +1 -0
  40. package/dist/interceptors/index.js +7 -0
  41. package/dist/interceptors/index.js.map +1 -1
  42. package/dist/interceptors/locusRetry.js +23 -8
  43. package/dist/interceptors/locusRetry.js.map +1 -1
  44. package/dist/interceptors/locusRouteToken.js +27 -5
  45. package/dist/interceptors/locusRouteToken.js.map +1 -1
  46. package/dist/interceptors/utils.js +27 -0
  47. package/dist/interceptors/utils.js.map +1 -0
  48. package/dist/interpretation/index.js +11 -2
  49. package/dist/interpretation/index.js.map +1 -1
  50. package/dist/interpretation/interpretation.types.js +7 -0
  51. package/dist/interpretation/interpretation.types.js.map +1 -0
  52. package/dist/interpretation/siLanguage.js +1 -1
  53. package/dist/locus-info/controlsUtils.js +11 -4
  54. package/dist/locus-info/controlsUtils.js.map +1 -1
  55. package/dist/locus-info/index.js +896 -277
  56. package/dist/locus-info/index.js.map +1 -1
  57. package/dist/locus-info/infoUtils.js +36 -5
  58. package/dist/locus-info/infoUtils.js.map +1 -1
  59. package/dist/locus-info/selfUtils.js +1 -0
  60. package/dist/locus-info/selfUtils.js.map +1 -1
  61. package/dist/locus-info/types.js +19 -0
  62. package/dist/locus-info/types.js.map +1 -1
  63. package/dist/media/MediaConnectionAwaiter.js +72 -3
  64. package/dist/media/MediaConnectionAwaiter.js.map +1 -1
  65. package/dist/media/index.js +8 -2
  66. package/dist/media/index.js.map +1 -1
  67. package/dist/media/properties.js +5 -2
  68. package/dist/media/properties.js.map +1 -1
  69. package/dist/meeting/in-meeting-actions.js +11 -1
  70. package/dist/meeting/in-meeting-actions.js.map +1 -1
  71. package/dist/meeting/index.js +2075 -1096
  72. package/dist/meeting/index.js.map +1 -1
  73. package/dist/meeting/locusMediaRequest.js +229 -82
  74. package/dist/meeting/locusMediaRequest.js.map +1 -1
  75. package/dist/meeting/muteState.js +10 -1
  76. package/dist/meeting/muteState.js.map +1 -1
  77. package/dist/meeting/request.js +55 -2
  78. package/dist/meeting/request.js.map +1 -1
  79. package/dist/meeting/request.type.js.map +1 -1
  80. package/dist/meeting/util.js +168 -5
  81. package/dist/meeting/util.js.map +1 -1
  82. package/dist/meeting-info/meeting-info-v2.js +2 -2
  83. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  84. package/dist/meetings/index.js +369 -173
  85. package/dist/meetings/index.js.map +1 -1
  86. package/dist/meetings/meetings.types.js +6 -1
  87. package/dist/meetings/meetings.types.js.map +1 -1
  88. package/dist/meetings/request.js +39 -0
  89. package/dist/meetings/request.js.map +1 -1
  90. package/dist/meetings/util.js +127 -25
  91. package/dist/meetings/util.js.map +1 -1
  92. package/dist/member/index.js +20 -0
  93. package/dist/member/index.js.map +1 -1
  94. package/dist/member/types.js.map +1 -1
  95. package/dist/member/util.js +40 -0
  96. package/dist/member/util.js.map +1 -1
  97. package/dist/members/index.js +101 -43
  98. package/dist/members/index.js.map +1 -1
  99. package/dist/members/util.js +8 -1
  100. package/dist/members/util.js.map +1 -1
  101. package/dist/metrics/constants.js +11 -1
  102. package/dist/metrics/constants.js.map +1 -1
  103. package/dist/multistream/codec/constants.js +63 -0
  104. package/dist/multistream/codec/constants.js.map +1 -0
  105. package/dist/multistream/mediaRequestManager.js +64 -68
  106. package/dist/multistream/mediaRequestManager.js.map +1 -1
  107. package/dist/multistream/receiveSlot.js +9 -0
  108. package/dist/multistream/receiveSlot.js.map +1 -1
  109. package/dist/multistream/remoteMediaManager.js +11 -0
  110. package/dist/multistream/remoteMediaManager.js.map +1 -1
  111. package/dist/multistream/sendSlotManager.js +116 -2
  112. package/dist/multistream/sendSlotManager.js.map +1 -1
  113. package/dist/reachability/clusterReachability.js +171 -18
  114. package/dist/reachability/clusterReachability.js.map +1 -1
  115. package/dist/reachability/index.js +142 -94
  116. package/dist/reachability/index.js.map +1 -1
  117. package/dist/reachability/reachability.types.js +2 -0
  118. package/dist/reachability/reachability.types.js.map +1 -1
  119. package/dist/reachability/reachabilityPeerConnection.js +1 -1
  120. package/dist/reachability/reachabilityPeerConnection.js.map +1 -1
  121. package/dist/reachability/util.js +45 -0
  122. package/dist/reachability/util.js.map +1 -1
  123. package/dist/reactions/reactions.type.js.map +1 -1
  124. package/dist/reconnection-manager/index.js +0 -1
  125. package/dist/reconnection-manager/index.js.map +1 -1
  126. package/dist/recording-controller/index.js +1 -3
  127. package/dist/recording-controller/index.js.map +1 -1
  128. package/dist/types/aiEnableRequest/index.d.ts +5 -0
  129. package/dist/types/aiEnableRequest/utils.d.ts +2 -0
  130. package/dist/types/common/browser-detection.d.ts +1 -0
  131. package/dist/types/common/errors/webex-errors.d.ts +32 -2
  132. package/dist/types/common/events/events-scope.d.ts +1 -0
  133. package/dist/types/common/events/events.d.ts +1 -0
  134. package/dist/types/config.d.ts +7 -2
  135. package/dist/types/constants.d.ts +35 -1
  136. package/dist/types/controls-options-manager/constants.d.ts +6 -1
  137. package/dist/types/controls-options-manager/index.d.ts +16 -0
  138. package/dist/types/hashTree/constants.d.ts +11 -0
  139. package/dist/types/hashTree/hashTree.d.ts +136 -0
  140. package/dist/types/hashTree/hashTreeParser.d.ts +392 -14
  141. package/dist/types/hashTree/types.d.ts +20 -0
  142. package/dist/types/hashTree/utils.d.ts +40 -0
  143. package/dist/types/index.d.ts +4 -0
  144. package/dist/types/interceptors/constant.d.ts +5 -0
  145. package/dist/types/interceptors/dataChannelAuthToken.d.ts +43 -0
  146. package/dist/types/interceptors/index.d.ts +2 -1
  147. package/dist/types/interceptors/locusRetry.d.ts +4 -4
  148. package/dist/types/interceptors/locusRouteToken.d.ts +2 -0
  149. package/dist/types/interceptors/utils.d.ts +1 -0
  150. package/dist/types/interpretation/interpretation.types.d.ts +10 -0
  151. package/dist/types/locus-info/index.d.ts +116 -51
  152. package/dist/types/locus-info/infoUtils.d.ts +8 -0
  153. package/dist/types/locus-info/types.d.ts +48 -12
  154. package/dist/types/media/MediaConnectionAwaiter.d.ts +20 -2
  155. package/dist/types/media/properties.d.ts +3 -1
  156. package/dist/types/meeting/in-meeting-actions.d.ts +10 -0
  157. package/dist/types/meeting/index.d.ts +196 -15
  158. package/dist/types/meeting/locusMediaRequest.d.ts +12 -0
  159. package/dist/types/meeting/request.d.ts +17 -1
  160. package/dist/types/meeting/request.type.d.ts +5 -0
  161. package/dist/types/meeting/util.d.ts +40 -0
  162. package/dist/types/meeting-info/util.d.ts +1 -0
  163. package/dist/types/meeting-info/utilv2.d.ts +1 -0
  164. package/dist/types/meetings/index.d.ts +34 -20
  165. package/dist/types/meetings/meetings.types.d.ts +15 -0
  166. package/dist/types/meetings/request.d.ts +14 -0
  167. package/dist/types/member/index.d.ts +2 -0
  168. package/dist/types/member/types.d.ts +5 -4
  169. package/dist/types/member/util.d.ts +14 -0
  170. package/dist/types/members/index.d.ts +15 -2
  171. package/dist/types/members/util.d.ts +1 -5
  172. package/dist/types/metrics/constants.d.ts +10 -0
  173. package/dist/types/multistream/codec/constants.d.ts +7 -0
  174. package/dist/types/multistream/mediaRequestManager.d.ts +20 -26
  175. package/dist/types/multistream/sendSlotManager.d.ts +23 -1
  176. package/dist/types/reachability/clusterReachability.d.ts +33 -6
  177. package/dist/types/reachability/index.d.ts +10 -3
  178. package/dist/types/reachability/reachability.types.d.ts +7 -0
  179. package/dist/types/reachability/util.d.ts +17 -0
  180. package/dist/types/reactions/reactions.type.d.ts +4 -0
  181. package/dist/types/recording-controller/util.d.ts +5 -5
  182. package/dist/types/roap/index.d.ts +1 -1
  183. package/dist/types/webinar/utils.d.ts +6 -0
  184. package/dist/webinar/index.js +585 -164
  185. package/dist/webinar/index.js.map +1 -1
  186. package/dist/webinar/utils.js +25 -0
  187. package/dist/webinar/utils.js.map +1 -0
  188. package/package.json +26 -24
  189. package/src/aiEnableRequest/README.md +84 -0
  190. package/src/aiEnableRequest/index.ts +186 -0
  191. package/src/aiEnableRequest/utils.ts +25 -0
  192. package/src/annotation/index.ts +27 -7
  193. package/src/breakouts/breakout.ts +3 -1
  194. package/src/breakouts/index.ts +31 -0
  195. package/src/common/errors/webex-errors.ts +50 -3
  196. package/src/config.ts +7 -2
  197. package/src/constants.ts +49 -3
  198. package/src/controls-options-manager/constants.ts +14 -1
  199. package/src/controls-options-manager/index.ts +87 -28
  200. package/src/controls-options-manager/util.ts +81 -1
  201. package/src/hashTree/constants.ts +26 -0
  202. package/src/hashTree/hashTree.ts +480 -0
  203. package/src/hashTree/hashTreeParser.ts +1911 -29
  204. package/src/hashTree/types.ts +24 -1
  205. package/src/hashTree/utils.ts +98 -0
  206. package/src/index.ts +14 -1
  207. package/src/interceptors/constant.ts +6 -0
  208. package/src/interceptors/dataChannelAuthToken.ts +246 -0
  209. package/src/interceptors/index.ts +2 -1
  210. package/src/interceptors/locusRetry.ts +25 -4
  211. package/src/interceptors/locusRouteToken.ts +22 -5
  212. package/src/interceptors/utils.ts +16 -0
  213. package/src/interpretation/index.ts +29 -11
  214. package/src/interpretation/interpretation.types.ts +11 -0
  215. package/src/locus-info/controlsUtils.ts +20 -1
  216. package/src/locus-info/index.ts +958 -250
  217. package/src/locus-info/infoUtils.ts +41 -6
  218. package/src/locus-info/selfUtils.ts +1 -0
  219. package/src/locus-info/types.ts +51 -12
  220. package/src/media/MediaConnectionAwaiter.ts +62 -5
  221. package/src/media/index.ts +10 -1
  222. package/src/media/properties.ts +4 -1
  223. package/src/meeting/in-meeting-actions.ts +20 -0
  224. package/src/meeting/index.ts +1025 -146
  225. package/src/meeting/locusMediaRequest.ts +106 -6
  226. package/src/meeting/muteState.ts +10 -1
  227. package/src/meeting/request.ts +53 -0
  228. package/src/meeting/request.type.ts +6 -0
  229. package/src/meeting/util.ts +207 -7
  230. package/src/meeting-info/meeting-info-v2.ts +4 -2
  231. package/src/meetings/index.ts +307 -132
  232. package/src/meetings/meetings.types.ts +19 -0
  233. package/src/meetings/request.ts +43 -0
  234. package/src/meetings/util.ts +127 -13
  235. package/src/member/index.ts +20 -0
  236. package/src/member/types.ts +1 -0
  237. package/src/member/util.ts +41 -0
  238. package/src/members/index.ts +70 -7
  239. package/src/members/util.ts +12 -4
  240. package/src/metrics/constants.ts +11 -0
  241. package/src/multistream/codec/constants.ts +58 -0
  242. package/src/multistream/mediaRequestManager.ts +117 -76
  243. package/src/multistream/receiveSlot.ts +18 -0
  244. package/src/multistream/remoteMediaManager.ts +13 -0
  245. package/src/multistream/sendSlotManager.ts +97 -3
  246. package/src/reachability/clusterReachability.ts +156 -29
  247. package/src/reachability/index.ts +62 -17
  248. package/src/reachability/reachability.types.ts +11 -0
  249. package/src/reachability/reachabilityPeerConnection.ts +3 -1
  250. package/src/reachability/util.ts +36 -0
  251. package/src/reactions/reactions.type.ts +4 -0
  252. package/src/reconnection-manager/index.ts +0 -1
  253. package/src/recording-controller/index.ts +1 -2
  254. package/src/webinar/index.ts +448 -11
  255. package/src/webinar/utils.ts +16 -0
  256. package/test/unit/spec/aiEnableRequest/index.ts +1067 -0
  257. package/test/unit/spec/aiEnableRequest/utils.ts +130 -0
  258. package/test/unit/spec/annotation/index.ts +69 -7
  259. package/test/unit/spec/breakouts/breakout.ts +9 -3
  260. package/test/unit/spec/breakouts/index.ts +49 -0
  261. package/test/unit/spec/common/errors/webex-errors.ts +78 -0
  262. package/test/unit/spec/controls-options-manager/index.js +244 -29
  263. package/test/unit/spec/controls-options-manager/util.js +165 -0
  264. package/test/unit/spec/hashTree/hashTree.ts +721 -0
  265. package/test/unit/spec/hashTree/hashTreeParser.ts +5328 -0
  266. package/test/unit/spec/hashTree/utils.ts +264 -0
  267. package/test/unit/spec/interceptors/dataChannelAuthToken.ts +406 -0
  268. package/test/unit/spec/interceptors/locusRetry.ts +205 -4
  269. package/test/unit/spec/interceptors/locusRouteToken.ts +44 -0
  270. package/test/unit/spec/interceptors/utils.ts +75 -0
  271. package/test/unit/spec/interpretation/index.ts +26 -4
  272. package/test/unit/spec/locus-info/controlsUtils.js +222 -52
  273. package/test/unit/spec/locus-info/index.js +2000 -171
  274. package/test/unit/spec/locus-info/infoUtils.js +184 -1
  275. package/test/unit/spec/media/MediaConnectionAwaiter.ts +96 -1
  276. package/test/unit/spec/media/index.ts +92 -0
  277. package/test/unit/spec/media/properties.ts +12 -3
  278. package/test/unit/spec/meeting/in-meeting-actions.ts +12 -2
  279. package/test/unit/spec/meeting/index.js +2925 -209
  280. package/test/unit/spec/meeting/locusMediaRequest.ts +406 -4
  281. package/test/unit/spec/meeting/muteState.js +81 -0
  282. package/test/unit/spec/meeting/request.js +82 -0
  283. package/test/unit/spec/meeting/utils.js +595 -27
  284. package/test/unit/spec/meeting-info/meetinginfov2.js +19 -10
  285. package/test/unit/spec/meetings/index.js +1214 -75
  286. package/test/unit/spec/meetings/request.js +141 -0
  287. package/test/unit/spec/meetings/utils.js +453 -52
  288. package/test/unit/spec/member/index.js +35 -4
  289. package/test/unit/spec/member/util.js +154 -27
  290. package/test/unit/spec/members/index.js +216 -0
  291. package/test/unit/spec/members/request.js +37 -1
  292. package/test/unit/spec/members/utils.js +63 -0
  293. package/test/unit/spec/multistream/mediaRequestManager.ts +503 -122
  294. package/test/unit/spec/multistream/remoteMediaManager.ts +30 -0
  295. package/test/unit/spec/multistream/sendSlotManager.ts +135 -36
  296. package/test/unit/spec/reachability/clusterReachability.ts +125 -1
  297. package/test/unit/spec/reachability/index.ts +154 -49
  298. package/test/unit/spec/reachability/util.ts +31 -0
  299. package/test/unit/spec/reconnection-manager/index.js +4 -8
  300. package/test/unit/spec/recording-controller/index.js +9 -8
  301. package/test/unit/spec/webinar/index.ts +837 -39
  302. package/test/unit/spec/webinar/utils.ts +39 -0
@@ -1,10 +1,7 @@
1
1
  import {assert} from '@webex/test-helper-chai';
2
2
  import ControlsUtils from '@webex/plugin-meetings/src/locus-info/controlsUtils';
3
- import controlsUtils from "@webex/plugin-meetings/src/locus-info/controlsUtils";
4
- import {
5
- MEETING_STATE,
6
- BREAKOUTS,
7
- } from '../../../../src/constants';
3
+ import controlsUtils from '@webex/plugin-meetings/src/locus-info/controlsUtils';
4
+ import {MEETING_STATE, BREAKOUTS} from '../../../../src/constants';
8
5
 
9
6
  const defaultControls = {
10
7
  entryExitTone: {
@@ -82,17 +79,31 @@ describe('plugin-meetings', () => {
82
79
 
83
80
  const parsedControls = ControlsUtils.parse(newControls);
84
81
 
85
- assert.equal(parsedControls.reactions.showDisplayNameWithReactions, newControls.reactions.showDisplayNameWithReactions);
82
+ assert.equal(
83
+ parsedControls.reactions.showDisplayNameWithReactions,
84
+ newControls.reactions.showDisplayNameWithReactions
85
+ );
86
86
  });
87
87
 
88
88
  it('should parse the viewTheParticipantList control', () => {
89
- const newControls = {viewTheParticipantList: {enabled: true, panelistEnabled: true, attendeeCount: false}};
89
+ const newControls = {
90
+ viewTheParticipantList: {enabled: true, panelistEnabled: true, attendeeCount: false},
91
+ };
90
92
 
91
93
  const parsedControls = ControlsUtils.parse(newControls);
92
94
 
93
- assert.equal(parsedControls.viewTheParticipantList.enabled, newControls.viewTheParticipantList.enabled);
94
- assert.equal(parsedControls.viewTheParticipantList.panelistEnabled, newControls.viewTheParticipantList.panelistEnabled);
95
- assert.equal(parsedControls.viewTheParticipantList.attendeeCount, newControls.viewTheParticipantList.attendeeCount);
95
+ assert.equal(
96
+ parsedControls.viewTheParticipantList.enabled,
97
+ newControls.viewTheParticipantList.enabled
98
+ );
99
+ assert.equal(
100
+ parsedControls.viewTheParticipantList.panelistEnabled,
101
+ newControls.viewTheParticipantList.panelistEnabled
102
+ );
103
+ assert.equal(
104
+ parsedControls.viewTheParticipantList.attendeeCount,
105
+ newControls.viewTheParticipantList.attendeeCount
106
+ );
96
107
  });
97
108
 
98
109
  it('should parse the raiseHand control', () => {
@@ -125,7 +136,10 @@ describe('plugin-meetings', () => {
125
136
  const parsedControls = ControlsUtils.parse(newControls);
126
137
 
127
138
  assert.equal(parsedControls.meetingFull.meetingFull, newControls.meetingFull.meetingFull);
128
- assert.equal(parsedControls.meetingFull.meetingPanelistFull, newControls.meetingFull.meetingPanelistFull);
139
+ assert.equal(
140
+ parsedControls.meetingFull.meetingPanelistFull,
141
+ newControls.meetingFull.meetingPanelistFull
142
+ );
129
143
  });
130
144
 
131
145
  it('should parse the practiceSession control', () => {
@@ -137,13 +151,28 @@ describe('plugin-meetings', () => {
137
151
  });
138
152
 
139
153
  it('should parse the videoLayout control', () => {
140
- const newControls = {videoLayout: {overrideDefault: true, lockAttendeeViewOnStageOnly:false, stageParameters: {}}};
154
+ const newControls = {
155
+ videoLayout: {
156
+ overrideDefault: true,
157
+ lockAttendeeViewOnStageOnly: false,
158
+ stageParameters: {},
159
+ },
160
+ };
141
161
 
142
162
  const parsedControls = ControlsUtils.parse(newControls);
143
163
 
144
- assert.equal(parsedControls.videoLayout.overrideDefault, newControls.videoLayout.overrideDefault);
145
- assert.equal(parsedControls.videoLayout.lockAttendeeViewOnStageOnly, newControls.videoLayout.lockAttendeeViewOnStageOnly);
146
- assert.equal(parsedControls.videoLayout.stageParameters, newControls.videoLayout.stageParameters);
164
+ assert.equal(
165
+ parsedControls.videoLayout.overrideDefault,
166
+ newControls.videoLayout.overrideDefault
167
+ );
168
+ assert.equal(
169
+ parsedControls.videoLayout.lockAttendeeViewOnStageOnly,
170
+ newControls.videoLayout.lockAttendeeViewOnStageOnly
171
+ );
172
+ assert.equal(
173
+ parsedControls.videoLayout.stageParameters,
174
+ newControls.videoLayout.stageParameters
175
+ );
147
176
  });
148
177
 
149
178
  it('should parse the annotationControl control', () => {
@@ -164,7 +193,7 @@ describe('plugin-meetings', () => {
164
193
 
165
194
  assert.equal(parsedControls.rdcControl.enabled, newControls.rdcControl.enabled);
166
195
  });
167
-
196
+
168
197
  it('should parse the pollingQAControl control', () => {
169
198
  const newControls = {pollingQAControl: {enabled: true}};
170
199
 
@@ -173,6 +202,78 @@ describe('plugin-meetings', () => {
173
202
  assert.equal(parsedControls.pollingQAControl.enabled, newControls.pollingQAControl.enabled);
174
203
  });
175
204
 
205
+ it('should parse the hesiodLlmId in transcribe control', () => {
206
+ const newControls = {
207
+ transcribe: {
208
+ hesiodLlmId: 'llm-123',
209
+ transcribing: true,
210
+ caption: true,
211
+ spokenLanguage: 'en-US',
212
+ },
213
+ };
214
+
215
+ const parsedControls = ControlsUtils.parse(newControls);
216
+
217
+ assert.equal(parsedControls.transcribe.hesiodLlmId, newControls.transcribe.hesiodLlmId);
218
+ });
219
+
220
+ it('should parse modifiedByServiceAppName from record meta when present', () => {
221
+ const newControls = {
222
+ record: {
223
+ recording: true,
224
+ paused: false,
225
+ meta: {lastModified: '2026-01-01', modifiedByServiceAppName: 'My Bot'},
226
+ },
227
+ };
228
+
229
+ const parsedControls = ControlsUtils.parse(newControls);
230
+
231
+ assert.equal(parsedControls.record.modifiedByServiceAppName, 'My Bot');
232
+ });
233
+
234
+ it('should parse modifiedByServiceAppId from record meta when present', () => {
235
+ const newControls = {
236
+ record: {
237
+ recording: true,
238
+ paused: false,
239
+ meta: {lastModified: '2026-01-01', modifiedByServiceAppId: 'app-id-123'},
240
+ },
241
+ };
242
+
243
+ const parsedControls = ControlsUtils.parse(newControls);
244
+
245
+ assert.equal(parsedControls.record.modifiedByServiceAppId, 'app-id-123');
246
+ });
247
+
248
+ it('should return undefined for modifiedByServiceAppName and modifiedByServiceAppId when absent from record meta', () => {
249
+ const newControls = {
250
+ record: {recording: true, paused: false, meta: {lastModified: '2026-01-01'}},
251
+ };
252
+
253
+ const parsedControls = ControlsUtils.parse(newControls);
254
+
255
+ assert.isUndefined(parsedControls.record.modifiedByServiceAppName);
256
+ assert.isUndefined(parsedControls.record.modifiedByServiceAppId);
257
+ // existing fields still parsed correctly
258
+ assert.equal(parsedControls.record.recording, true);
259
+ assert.equal(parsedControls.record.paused, false);
260
+ assert.equal(parsedControls.record.lastModified, '2026-01-01');
261
+ });
262
+
263
+ it('should handle record with no meta without throwing', () => {
264
+ const newControls = {
265
+ record: {recording: true, paused: false},
266
+ };
267
+
268
+ const parsedControls = ControlsUtils.parse(newControls);
269
+
270
+ assert.equal(parsedControls.record.recording, true);
271
+ assert.equal(parsedControls.record.paused, false);
272
+ assert.isUndefined(parsedControls.record.lastModified);
273
+ assert.isUndefined(parsedControls.record.modifiedByServiceAppName);
274
+ assert.isUndefined(parsedControls.record.modifiedByServiceAppId);
275
+ });
276
+
176
277
  describe('videoEnabled', () => {
177
278
  it('returns expected', () => {
178
279
  const result = ControlsUtils.parse({video: {enabled: true}});
@@ -238,19 +339,29 @@ describe('plugin-meetings', () => {
238
339
  });
239
340
 
240
341
  it('returns hasViewTheParticipantListChanged = true when changed', () => {
241
- const oldControls = {viewTheParticipantList: {enabled: true, panelistEnabled: true, attendeeCount: false}};
342
+ const oldControls = {
343
+ viewTheParticipantList: {enabled: true, panelistEnabled: true, attendeeCount: false},
344
+ };
242
345
 
243
- let result = ControlsUtils.getControls(oldControls, {viewTheParticipantList: {enabled: false, panelistEnabled: true, attendeeCount: false}});
346
+ let result = ControlsUtils.getControls(oldControls, {
347
+ viewTheParticipantList: {enabled: false, panelistEnabled: true, attendeeCount: false},
348
+ });
244
349
 
245
350
  assert.equal(result.updates.hasViewTheParticipantListChanged, true);
246
351
 
247
- result = ControlsUtils.getControls(oldControls, {viewTheParticipantList: {enabled: true, panelistEnabled: false, attendeeCount: false}});
352
+ result = ControlsUtils.getControls(oldControls, {
353
+ viewTheParticipantList: {enabled: true, panelistEnabled: false, attendeeCount: false},
354
+ });
248
355
 
249
356
  assert.equal(result.updates.hasViewTheParticipantListChanged, true);
250
- result = ControlsUtils.getControls(oldControls, {viewTheParticipantList: {enabled: true, panelistEnabled: true, attendeeCount: true}});
357
+ result = ControlsUtils.getControls(oldControls, {
358
+ viewTheParticipantList: {enabled: true, panelistEnabled: true, attendeeCount: true},
359
+ });
251
360
 
252
361
  assert.equal(result.updates.hasViewTheParticipantListChanged, true);
253
- result = ControlsUtils.getControls(oldControls, {viewTheParticipantList: {enabled: true, panelistEnabled: true, attendeeCount: false}});
362
+ result = ControlsUtils.getControls(oldControls, {
363
+ viewTheParticipantList: {enabled: true, panelistEnabled: true, attendeeCount: false},
364
+ });
254
365
 
255
366
  assert.equal(result.updates.hasViewTheParticipantListChanged, false);
256
367
  });
@@ -286,7 +397,9 @@ describe('plugin-meetings', () => {
286
397
 
287
398
  assert.equal(result.updates.hasMeetingFullChanged, true);
288
399
 
289
- result = ControlsUtils.getControls(newControls, {meetingFull: {meetingFull: true, meetingPanelistFull: true}});
400
+ result = ControlsUtils.getControls(newControls, {
401
+ meetingFull: {meetingFull: true, meetingPanelistFull: true},
402
+ });
290
403
 
291
404
  assert.equal(result.updates.hasMeetingFullChanged, true);
292
405
  });
@@ -378,7 +491,10 @@ describe('plugin-meetings', () => {
378
491
  interpretation: 'interpretation',
379
492
  };
380
493
 
381
- const {updates} = ControlsUtils.getControls({interpretation: 'interpretation'}, newControls);
494
+ const {updates} = ControlsUtils.getControls(
495
+ {interpretation: 'interpretation'},
496
+ newControls
497
+ );
382
498
 
383
499
  assert.equal(updates.hasInterpretationChanged, false);
384
500
  });
@@ -388,7 +504,10 @@ describe('plugin-meetings', () => {
388
504
  manualCaptionControl: {enabled: false},
389
505
  };
390
506
 
391
- const {updates} = ControlsUtils.getControls({manualCaptionControl: {enabled: true}}, newControls);
507
+ const {updates} = ControlsUtils.getControls(
508
+ {manualCaptionControl: {enabled: true}},
509
+ newControls
510
+ );
392
511
 
393
512
  assert.equal(updates.hasManualCaptionChanged, true);
394
513
  });
@@ -398,7 +517,10 @@ describe('plugin-meetings', () => {
398
517
  manualCaptionControl: {enabled: true},
399
518
  };
400
519
 
401
- const {updates} = ControlsUtils.getControls({manualCaptionControl: {enabled: true}}, newControls);
520
+ const {updates} = ControlsUtils.getControls(
521
+ {manualCaptionControl: {enabled: true}},
522
+ newControls
523
+ );
402
524
 
403
525
  assert.equal(updates.hasManualCaptionChanged, false);
404
526
  });
@@ -428,8 +550,8 @@ describe('plugin-meetings', () => {
428
550
  });
429
551
 
430
552
  it('returns false when previous spoken language is undefined and current is a invalid value', () => {
431
- const previous = { transcribe: undefined };
432
- const current = { transcribe: { spokenLanguage: null } };
553
+ const previous = {transcribe: undefined};
554
+ const current = {transcribe: {spokenLanguage: null}};
433
555
 
434
556
  const {updates} = ControlsUtils.getControls(previous, current);
435
557
 
@@ -437,8 +559,8 @@ describe('plugin-meetings', () => {
437
559
  });
438
560
 
439
561
  it('detects spoken language change when previous is undefined and current is a valid value', () => {
440
- const previous = { transcribe: undefined };
441
- const current = { transcribe: { spokenLanguage: 'en-US' } };
562
+ const previous = {transcribe: undefined};
563
+ const current = {transcribe: {spokenLanguage: 'en-US'}};
442
564
 
443
565
  const {updates} = ControlsUtils.getControls(previous, current);
444
566
 
@@ -446,8 +568,8 @@ describe('plugin-meetings', () => {
446
568
  });
447
569
 
448
570
  it('returns false when spoken language changes to a same value', () => {
449
- const previous = { transcribe: {caption: true, spokenLanguage: 'en-US' } };
450
- const current = { transcribe: {caption: true, spokenLanguage: 'en-US' } };
571
+ const previous = {transcribe: {caption: true, spokenLanguage: 'en-US'}};
572
+ const current = {transcribe: {caption: true, spokenLanguage: 'en-US'}};
451
573
 
452
574
  const {updates} = ControlsUtils.getControls(previous, current);
453
575
 
@@ -455,14 +577,63 @@ describe('plugin-meetings', () => {
455
577
  });
456
578
 
457
579
  it('returns true when spoken language changes to a different value', () => {
458
- const previous = { transcribe: {caption: true, spokenLanguage: 'en-US' } };
459
- const current = { transcribe: {caption: true, spokenLanguage: 'fr-FR' } };
580
+ const previous = {transcribe: {caption: true, spokenLanguage: 'en-US'}};
581
+ const current = {transcribe: {caption: true, spokenLanguage: 'fr-FR'}};
460
582
 
461
583
  const {updates} = ControlsUtils.getControls(previous, current);
462
584
 
463
585
  assert.equal(updates.hasTranscribeSpokenLanguageChanged, true);
464
586
  });
465
587
 
588
+ it('returns false when previous hesiodLlmId is undefined and current is a invalid value', () => {
589
+ const previous = {transcribe: undefined};
590
+ const current = {transcribe: {hesiodLlmId: null}};
591
+
592
+ const {updates} = ControlsUtils.getControls(previous, current);
593
+
594
+ assert.equal(updates.hasHesiodLLMIdChanged, false);
595
+ });
596
+
597
+ it('detects hesiodLlmId change when previous is undefined and current is a valid value', () => {
598
+ const previous = {transcribe: undefined};
599
+ const current = {transcribe: {hesiodLlmId: '123a-456b'}};
600
+
601
+ const {updates} = ControlsUtils.getControls(previous, current);
602
+
603
+ assert.equal(updates.hasHesiodLLMIdChanged, true);
604
+ });
605
+
606
+ describe('hasAiSummaryNotificationChanged', () => {
607
+ it('returns false when aiSummaryNotification has not changed', () => {
608
+ const previous = {transcribe: {aiSummaryNotification: false}};
609
+ const current = {transcribe: {aiSummaryNotification: false}};
610
+ const {updates} = ControlsUtils.getControls(previous, current);
611
+ assert.equal(updates.hasAiSummaryNotificationChanged, false);
612
+ });
613
+
614
+ it('returns true when aiSummaryNotification changes from false to true', () => {
615
+ const previous = {transcribe: {aiSummaryNotification: false}};
616
+ const current = {transcribe: {aiSummaryNotification: true}};
617
+ const {updates} = ControlsUtils.getControls(previous, current);
618
+ assert.equal(updates.hasAiSummaryNotificationChanged, true);
619
+ });
620
+
621
+ it('returns true when aiSummaryNotification changes from undefined to true', () => {
622
+ const previous = {transcribe: undefined};
623
+ const current = {transcribe: {aiSummaryNotification: true}};
624
+ const {updates} = ControlsUtils.getControls(previous, current);
625
+ assert.equal(updates.hasAiSummaryNotificationChanged, true);
626
+ });
627
+
628
+ it('parses aiSummaryNotification into the transcribe block', () => {
629
+ const controls = {
630
+ transcribe: {transcribing: false, caption: false, aiSummaryNotification: true},
631
+ };
632
+ const parsed = ControlsUtils.parse(controls);
633
+ assert.equal(parsed.transcribe.aiSummaryNotification, true);
634
+ });
635
+ });
636
+
466
637
  describe('videoEnabled', () => {
467
638
  const testVideoEnabled = (oldControls, newControls, updatedProperty) => {
468
639
  const result = ControlsUtils.getControls(oldControls, newControls);
@@ -525,7 +696,8 @@ describe('plugin-meetings', () => {
525
696
  const oldLocus = {};
526
697
  const newLocus = {};
527
698
  assert.deepEqual(controlsUtils.getSessionSwitchStatus(oldLocus, newLocus), {
528
- isReturnToMain: false, isJoinToBreakout: false
699
+ isReturnToMain: false,
700
+ isJoinToBreakout: false,
529
701
  });
530
702
  });
531
703
 
@@ -533,7 +705,8 @@ describe('plugin-meetings', () => {
533
705
  const oldLocus = {controls: {breakout: {sessionType: 'BREAKOUT'}}};
534
706
  const newLocus = {controls: {breakout: {sessionType: 'MAIN'}}};
535
707
  assert.deepEqual(controlsUtils.getSessionSwitchStatus(oldLocus, newLocus), {
536
- isReturnToMain: true, isJoinToBreakout: false
708
+ isReturnToMain: true,
709
+ isJoinToBreakout: false,
537
710
  });
538
711
  });
539
712
 
@@ -541,55 +714,52 @@ describe('plugin-meetings', () => {
541
714
  const oldLocus = {controls: {breakout: {sessionType: 'MAIN'}}};
542
715
  const newLocus = {controls: {breakout: {sessionType: 'BREAKOUT'}}};
543
716
  assert.deepEqual(controlsUtils.getSessionSwitchStatus(oldLocus, newLocus), {
544
- isReturnToMain: false, isJoinToBreakout: true
717
+ isReturnToMain: false,
718
+ isJoinToBreakout: true,
545
719
  });
546
720
  });
547
721
 
548
722
  it('if needUseCache conditions are met, return isJoinToBreakout as true', () => {
549
723
  const oldLocus = {
550
- self: { isCreator: true },
551
- controls: { breakout: { sessionType: BREAKOUTS.SESSION_TYPES.MAIN} },
724
+ self: {isCreator: true},
725
+ controls: {breakout: {sessionType: BREAKOUTS.SESSION_TYPES.MAIN}},
552
726
  };
553
727
 
554
728
  const newLocus = {
555
- participants: [
556
- { isCreator: true, state: MEETING_STATE.STATES.JOINED },
557
- ],
729
+ participants: [{isCreator: true, state: MEETING_STATE.STATES.JOINED}],
558
730
  controls: {
559
731
  breakout: {
560
732
  sessionType: BREAKOUTS.SESSION_TYPES.MAIN,
561
- groups: [{ id: 'group1' }]
733
+ groups: [{id: 'group1'}],
562
734
  },
563
735
  },
564
736
  };
565
737
 
566
738
  assert.deepEqual(controlsUtils.getSessionSwitchStatus(oldLocus, newLocus), {
567
739
  isReturnToMain: true,
568
- isJoinToBreakout: false
740
+ isJoinToBreakout: false,
569
741
  });
570
742
  });
571
743
 
572
744
  it('if needUseCache conditions are not met, return newLocus and isReturnToMain as false', () => {
573
745
  const oldLocus = {
574
- self: { isCreator: false },
575
- controls: { breakout: { sessionType: BREAKOUTS.SESSION_TYPES.BREAKOUT} },
746
+ self: {isCreator: false},
747
+ controls: {breakout: {sessionType: BREAKOUTS.SESSION_TYPES.BREAKOUT}},
576
748
  };
577
749
 
578
750
  const newLocus = {
579
- participants: [
580
- { isCreator: true, state: MEETING_STATE.STATES.JOINED },
581
- ],
751
+ participants: [{isCreator: true, state: MEETING_STATE.STATES.JOINED}],
582
752
  controls: {
583
753
  breakout: {
584
754
  sessionType: BREAKOUTS.SESSION_TYPES.BREAKOUT,
585
- groups: []
755
+ groups: [],
586
756
  },
587
757
  },
588
758
  };
589
759
 
590
760
  assert.deepEqual(controlsUtils.getSessionSwitchStatus(oldLocus, newLocus), {
591
761
  isReturnToMain: false,
592
- isJoinToBreakout: false
762
+ isJoinToBreakout: false,
593
763
  });
594
764
  });
595
765
  });
@@ -597,7 +767,7 @@ describe('plugin-meetings', () => {
597
767
  describe('#isMainSessionDTO', () => {
598
768
  it('return false is sessionType is BREAKOUT', () => {
599
769
  const locus = {
600
- controls: {breakout: {sessionType: 'BREAKOUT'}}
770
+ controls: {breakout: {sessionType: 'BREAKOUT'}},
601
771
  };
602
772
 
603
773
  assert.equal(controlsUtils.isMainSessionDTO(locus), false);
@@ -605,7 +775,7 @@ describe('plugin-meetings', () => {
605
775
 
606
776
  it('return true is sessionType is not BREAKOUT', () => {
607
777
  const locus = {
608
- controls: {breakout: {sessionType: 'MAIN'}}
778
+ controls: {breakout: {sessionType: 'MAIN'}},
609
779
  };
610
780
 
611
781
  assert.equal(controlsUtils.isMainSessionDTO(locus), true);