@webex/plugin-meetings 3.12.0-next.15 → 3.12.0-next.151

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 (296) 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 +207 -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/dist/aiEnableRequest/index.js +15 -2
  40. package/dist/aiEnableRequest/index.js.map +1 -1
  41. package/dist/annotation/index.js +2 -2
  42. package/dist/annotation/index.js.map +1 -1
  43. package/dist/breakouts/breakout.js +8 -3
  44. package/dist/breakouts/breakout.js.map +1 -1
  45. package/dist/breakouts/events.js +29 -14
  46. package/dist/breakouts/events.js.map +1 -1
  47. package/dist/breakouts/index.js +99 -4
  48. package/dist/breakouts/index.js.map +1 -1
  49. package/dist/common/errors/webex-errors.js +49 -5
  50. package/dist/common/errors/webex-errors.js.map +1 -1
  51. package/dist/config.js +2 -2
  52. package/dist/config.js.map +1 -1
  53. package/dist/constants.js +37 -10
  54. package/dist/constants.js.map +1 -1
  55. package/dist/controls-options-manager/index.js +46 -10
  56. package/dist/controls-options-manager/index.js.map +1 -1
  57. package/dist/hashTree/constants.js +4 -1
  58. package/dist/hashTree/constants.js.map +1 -1
  59. package/dist/hashTree/hashTreeParser.js +1096 -391
  60. package/dist/hashTree/hashTreeParser.js.map +1 -1
  61. package/dist/hashTree/utils.js +20 -0
  62. package/dist/hashTree/utils.js.map +1 -1
  63. package/dist/index.js +7 -0
  64. package/dist/index.js.map +1 -1
  65. package/dist/interceptors/dataChannelAuthToken.js +75 -15
  66. package/dist/interceptors/dataChannelAuthToken.js.map +1 -1
  67. package/dist/interceptors/locusRetry.js +23 -8
  68. package/dist/interceptors/locusRetry.js.map +1 -1
  69. package/dist/interpretation/index.js +55 -12
  70. package/dist/interpretation/index.js.map +1 -1
  71. package/dist/interpretation/interpretation.types.js +7 -0
  72. package/dist/interpretation/interpretation.types.js.map +1 -0
  73. package/dist/interpretation/siLanguage.js +1 -1
  74. package/dist/locus-info/controlsUtils.js +4 -1
  75. package/dist/locus-info/controlsUtils.js.map +1 -1
  76. package/dist/locus-info/index.js +615 -176
  77. package/dist/locus-info/index.js.map +1 -1
  78. package/dist/locus-info/infoUtils.js +36 -5
  79. package/dist/locus-info/infoUtils.js.map +1 -1
  80. package/dist/locus-info/types.js +20 -0
  81. package/dist/locus-info/types.js.map +1 -1
  82. package/dist/media/MediaConnectionAwaiter.js +15 -2
  83. package/dist/media/MediaConnectionAwaiter.js.map +1 -1
  84. package/dist/media/index.js +8 -2
  85. package/dist/media/index.js.map +1 -1
  86. package/dist/media/properties.js +4 -5
  87. package/dist/media/properties.js.map +1 -1
  88. package/dist/meeting/in-meeting-actions.js +7 -1
  89. package/dist/meeting/in-meeting-actions.js.map +1 -1
  90. package/dist/meeting/index.js +1684 -835
  91. package/dist/meeting/index.js.map +1 -1
  92. package/dist/meeting/locusMediaRequest.js +229 -82
  93. package/dist/meeting/locusMediaRequest.js.map +1 -1
  94. package/dist/meeting/muteState.js +10 -1
  95. package/dist/meeting/muteState.js.map +1 -1
  96. package/dist/meeting/request.js +5 -2
  97. package/dist/meeting/request.js.map +1 -1
  98. package/dist/meeting/util.js +37 -3
  99. package/dist/meeting/util.js.map +1 -1
  100. package/dist/meeting/voicea-meeting.js +2 -1
  101. package/dist/meeting/voicea-meeting.js.map +1 -1
  102. package/dist/meeting-info/meeting-info-v2.js +9 -3
  103. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  104. package/dist/meetings/index.js +300 -128
  105. package/dist/meetings/index.js.map +1 -1
  106. package/dist/meetings/meetings.types.js +6 -1
  107. package/dist/meetings/meetings.types.js.map +1 -1
  108. package/dist/meetings/request.js +39 -0
  109. package/dist/meetings/request.js.map +1 -1
  110. package/dist/meetings/util.js +116 -18
  111. package/dist/meetings/util.js.map +1 -1
  112. package/dist/member/index.js +10 -0
  113. package/dist/member/index.js.map +1 -1
  114. package/dist/member/types.js.map +1 -1
  115. package/dist/member/util.js +30 -0
  116. package/dist/member/util.js.map +1 -1
  117. package/dist/members/index.js +101 -43
  118. package/dist/members/index.js.map +1 -1
  119. package/dist/members/util.js +8 -1
  120. package/dist/members/util.js.map +1 -1
  121. package/dist/metrics/constants.js +7 -1
  122. package/dist/metrics/constants.js.map +1 -1
  123. package/dist/multistream/codec/constants.js +63 -0
  124. package/dist/multistream/codec/constants.js.map +1 -0
  125. package/dist/multistream/mediaRequestManager.js +62 -15
  126. package/dist/multistream/mediaRequestManager.js.map +1 -1
  127. package/dist/multistream/receiveSlot.js +9 -0
  128. package/dist/multistream/receiveSlot.js.map +1 -1
  129. package/dist/reachability/clusterReachability.js.map +1 -1
  130. package/dist/reachability/index.js +121 -83
  131. package/dist/reachability/index.js.map +1 -1
  132. package/dist/reachability/reachability.types.js +2 -0
  133. package/dist/reachability/reachability.types.js.map +1 -1
  134. package/dist/reachability/util.js +45 -0
  135. package/dist/reachability/util.js.map +1 -1
  136. package/dist/reactions/reactions.type.js.map +1 -1
  137. package/dist/recording-controller/index.js +1 -3
  138. package/dist/recording-controller/index.js.map +1 -1
  139. package/dist/roap/turnDiscovery.js +8 -1
  140. package/dist/roap/turnDiscovery.js.map +1 -1
  141. package/dist/types/common/errors/webex-errors.d.ts +32 -2
  142. package/dist/types/config.d.ts +2 -2
  143. package/dist/types/constants.d.ts +13 -1
  144. package/dist/types/controls-options-manager/index.d.ts +16 -0
  145. package/dist/types/hashTree/constants.d.ts +1 -0
  146. package/dist/types/hashTree/hashTreeParser.d.ts +201 -22
  147. package/dist/types/hashTree/utils.d.ts +7 -0
  148. package/dist/types/index.d.ts +3 -0
  149. package/dist/types/interceptors/locusRetry.d.ts +4 -4
  150. package/dist/types/interpretation/interpretation.types.d.ts +10 -0
  151. package/dist/types/locus-info/index.d.ts +106 -8
  152. package/dist/types/locus-info/infoUtils.d.ts +8 -0
  153. package/dist/types/locus-info/types.d.ts +22 -1
  154. package/dist/types/media/MediaConnectionAwaiter.d.ts +10 -1
  155. package/dist/types/media/properties.d.ts +6 -2
  156. package/dist/types/meeting/in-meeting-actions.d.ts +6 -0
  157. package/dist/types/meeting/index.d.ts +176 -11
  158. package/dist/types/meeting/locusMediaRequest.d.ts +12 -0
  159. package/dist/types/meeting/request.d.ts +1 -0
  160. package/dist/types/meeting/util.d.ts +9 -0
  161. package/dist/types/meeting-info/meeting-info-v2.d.ts +1 -0
  162. package/dist/types/meetings/index.d.ts +40 -19
  163. package/dist/types/meetings/meetings.types.d.ts +15 -0
  164. package/dist/types/meetings/request.d.ts +14 -0
  165. package/dist/types/member/index.d.ts +1 -0
  166. package/dist/types/member/types.d.ts +1 -0
  167. package/dist/types/member/util.d.ts +9 -0
  168. package/dist/types/members/index.d.ts +15 -2
  169. package/dist/types/members/util.d.ts +1 -5
  170. package/dist/types/metrics/constants.d.ts +6 -0
  171. package/dist/types/multistream/codec/constants.d.ts +7 -0
  172. package/dist/types/multistream/mediaRequestManager.d.ts +22 -5
  173. package/dist/types/reachability/clusterReachability.d.ts +3 -3
  174. package/dist/types/reachability/index.d.ts +10 -3
  175. package/dist/types/reachability/reachability.types.d.ts +7 -0
  176. package/dist/types/reachability/util.d.ts +17 -0
  177. package/dist/types/reactions/reactions.type.d.ts +3 -0
  178. package/dist/webinar/index.js +307 -161
  179. package/dist/webinar/index.js.map +1 -1
  180. package/package.json +23 -23
  181. package/src/aiEnableRequest/ai-docs/ai-enable-request-spec.md +223 -0
  182. package/src/aiEnableRequest/index.ts +16 -0
  183. package/src/annotation/ai-docs/annotation-spec.md +236 -0
  184. package/src/annotation/index.ts +6 -4
  185. package/src/breakouts/ai-docs/breakouts-spec.md +324 -0
  186. package/src/breakouts/breakout.ts +3 -1
  187. package/src/breakouts/events.ts +33 -11
  188. package/src/breakouts/index.ts +122 -2
  189. package/src/common/errors/webex-errors.ts +50 -3
  190. package/src/config.ts +2 -2
  191. package/src/constants.ts +21 -3
  192. package/src/controls-options-manager/ai-docs/controls-options-manager-spec.md +243 -0
  193. package/src/controls-options-manager/index.ts +62 -10
  194. package/src/hashTree/ai-docs/hash-tree-spec.md +267 -0
  195. package/src/hashTree/constants.ts +7 -0
  196. package/src/hashTree/hashTreeParser.ts +861 -193
  197. package/src/hashTree/utils.ts +19 -0
  198. package/src/index.ts +6 -0
  199. package/src/interceptors/ai-docs/interceptors-spec.md +247 -0
  200. package/src/interceptors/dataChannelAuthToken.ts +88 -12
  201. package/src/interceptors/locusRetry.ts +25 -4
  202. package/src/interpretation/ai-docs/interpretation-spec.md +256 -0
  203. package/src/interpretation/index.ts +65 -10
  204. package/src/interpretation/interpretation.types.ts +11 -0
  205. package/src/locus-info/ai-docs/locus-info-spec.md +293 -0
  206. package/src/locus-info/controlsUtils.ts +3 -1
  207. package/src/locus-info/index.ts +566 -164
  208. package/src/locus-info/infoUtils.ts +41 -6
  209. package/src/locus-info/types.ts +26 -1
  210. package/src/media/MediaConnectionAwaiter.ts +21 -4
  211. package/src/media/ai-docs/media-spec.md +267 -0
  212. package/src/media/index.ts +10 -1
  213. package/src/media/properties.ts +8 -3
  214. package/src/meeting/ai-docs/meeting-spec.md +401 -0
  215. package/src/meeting/in-meeting-actions.ts +12 -0
  216. package/src/meeting/index.ts +937 -119
  217. package/src/meeting/locusMediaRequest.ts +106 -6
  218. package/src/meeting/muteState.ts +10 -1
  219. package/src/meeting/request.ts +11 -0
  220. package/src/meeting/util.ts +51 -7
  221. package/src/meeting/voicea-meeting.ts +1 -1
  222. package/src/meeting-info/ai-docs/meeting-info-spec.md +261 -0
  223. package/src/meeting-info/meeting-info-v2.ts +10 -4
  224. package/src/meetings/ai-docs/meetings-spec.md +296 -0
  225. package/src/meetings/index.ts +200 -80
  226. package/src/meetings/meetings.types.ts +19 -0
  227. package/src/meetings/request.ts +43 -0
  228. package/src/meetings/util.ts +117 -4
  229. package/src/member/ai-docs/member-spec.md +196 -0
  230. package/src/member/index.ts +10 -0
  231. package/src/member/types.ts +1 -0
  232. package/src/member/util.ts +29 -0
  233. package/src/members/ai-docs/members-spec.md +256 -0
  234. package/src/members/index.ts +70 -7
  235. package/src/members/util.ts +12 -4
  236. package/src/metrics/ai-docs/metrics-spec.md +185 -0
  237. package/src/metrics/constants.ts +6 -0
  238. package/src/multistream/ai-docs/multistream-spec.md +292 -0
  239. package/src/multistream/codec/constants.ts +58 -0
  240. package/src/multistream/mediaRequestManager.ts +119 -28
  241. package/src/multistream/receiveSlot.ts +18 -0
  242. package/src/personal-meeting-room/ai-docs/personal-meeting-room-spec.md +234 -0
  243. package/src/reachability/ai-docs/reachability-spec.md +261 -0
  244. package/src/reachability/clusterReachability.ts +3 -2
  245. package/src/reachability/index.ts +47 -16
  246. package/src/reachability/reachability.types.ts +11 -0
  247. package/src/reachability/util.ts +36 -0
  248. package/src/reactions/ai-docs/reactions-spec.md +198 -0
  249. package/src/reactions/reactions.type.ts +3 -0
  250. package/src/reconnection-manager/ai-docs/reconnection-manager-spec.md +272 -0
  251. package/src/recording-controller/ai-docs/recording-controller-spec.md +223 -0
  252. package/src/recording-controller/index.ts +1 -2
  253. package/src/roap/ai-docs/roap-spec.md +241 -0
  254. package/src/roap/turnDiscovery.ts +9 -1
  255. package/src/webinar/ai-docs/webinar-spec.md +243 -0
  256. package/src/webinar/index.ts +216 -38
  257. package/test/unit/spec/aiEnableRequest/index.ts +86 -0
  258. package/test/unit/spec/annotation/index.ts +3 -3
  259. package/test/unit/spec/breakouts/breakout.ts +9 -3
  260. package/test/unit/spec/breakouts/events.ts +120 -2
  261. package/test/unit/spec/breakouts/index.ts +223 -3
  262. package/test/unit/spec/common/errors/webex-errors.ts +78 -0
  263. package/test/unit/spec/controls-options-manager/index.js +139 -32
  264. package/test/unit/spec/hashTree/hashTreeParser.ts +2451 -184
  265. package/test/unit/spec/hashTree/utils.ts +37 -0
  266. package/test/unit/spec/interceptors/dataChannelAuthToken.ts +196 -0
  267. package/test/unit/spec/interceptors/locusRetry.ts +205 -4
  268. package/test/unit/spec/interpretation/index.ts +119 -4
  269. package/test/unit/spec/locus-info/controlsUtils.js +172 -57
  270. package/test/unit/spec/locus-info/index.js +1014 -58
  271. package/test/unit/spec/locus-info/infoUtils.js +184 -1
  272. package/test/unit/spec/media/MediaConnectionAwaiter.ts +55 -0
  273. package/test/unit/spec/media/index.ts +92 -0
  274. package/test/unit/spec/media/properties.ts +23 -23
  275. package/test/unit/spec/meeting/in-meeting-actions.ts +6 -0
  276. package/test/unit/spec/meeting/index.js +2811 -117
  277. package/test/unit/spec/meeting/locusMediaRequest.ts +406 -4
  278. package/test/unit/spec/meeting/muteState.js +81 -0
  279. package/test/unit/spec/meeting/request.js +12 -0
  280. package/test/unit/spec/meeting/utils.js +179 -16
  281. package/test/unit/spec/meeting/voicea-meeting.ts +85 -1
  282. package/test/unit/spec/meeting-info/meetinginfov2.js +76 -10
  283. package/test/unit/spec/meetings/index.js +544 -49
  284. package/test/unit/spec/meetings/request.js +141 -0
  285. package/test/unit/spec/meetings/utils.js +402 -51
  286. package/test/unit/spec/member/index.js +7 -0
  287. package/test/unit/spec/member/util.js +89 -0
  288. package/test/unit/spec/members/index.js +216 -0
  289. package/test/unit/spec/members/request.js +37 -1
  290. package/test/unit/spec/members/utils.js +63 -0
  291. package/test/unit/spec/multistream/mediaRequestManager.ts +501 -37
  292. package/test/unit/spec/reachability/index.ts +128 -46
  293. package/test/unit/spec/reachability/util.ts +31 -0
  294. package/test/unit/spec/recording-controller/index.js +9 -8
  295. package/test/unit/spec/roap/turnDiscovery.ts +20 -0
  296. package/test/unit/spec/webinar/index.ts +332 -31
@@ -1,7 +1,13 @@
1
+ import type { LocusSyncLatencyEventName } from '@webex/internal-plugin-metrics';
1
2
  import HashTree from './hashTree';
2
3
  import { Enum } from '../constants';
3
4
  import { HtMeta, HashTreeObject } from './types';
4
5
  import { LocusDTO } from '../locus-info/types';
6
+ export declare enum SyncAllBackoffType {
7
+ NONE = "none",
8
+ ONLY_LLM = "onlyLLM",
9
+ ALL = "all"
10
+ }
5
11
  export interface DataSet {
6
12
  url: string;
7
13
  root: string;
@@ -13,9 +19,11 @@ export interface DataSet {
13
19
  maxMs: number;
14
20
  exponent: number;
15
21
  };
22
+ heartbeatIntervalMs?: number;
16
23
  }
17
24
  export interface RootHashMessage {
18
25
  dataSets: Array<DataSet>;
26
+ heartbeatIntervalMs?: number;
19
27
  }
20
28
  export interface HashTreeMessage {
21
29
  dataSets: Array<DataSet>;
@@ -38,26 +46,63 @@ interface InternalDataSet extends DataSet {
38
46
  hashTree?: HashTree;
39
47
  timer?: ReturnType<typeof setTimeout>;
40
48
  heartbeatWatchdogTimer?: ReturnType<typeof setTimeout>;
49
+ syncAbortController?: AbortController;
41
50
  }
42
51
  type WebexRequestMethod = (options: Record<string, any>) => Promise<any>;
52
+ type GenerateTrackingId = () => string | undefined;
43
53
  export declare const LocusInfoUpdateType: {
44
54
  readonly OBJECTS_UPDATED: "OBJECTS_UPDATED";
45
55
  readonly MEETING_ENDED: "MEETING_ENDED";
56
+ readonly LOCUS_NOT_FOUND: "LOCUS_NOT_FOUND";
46
57
  };
47
58
  export type LocusInfoUpdateType = Enum<typeof LocusInfoUpdateType>;
59
+ interface LocusUpdatePayloads {
60
+ [LocusInfoUpdateType.OBJECTS_UPDATED]: {
61
+ updatedObjects: HashTreeObject[];
62
+ };
63
+ [LocusInfoUpdateType.MEETING_ENDED]: unknown;
64
+ [LocusInfoUpdateType.LOCUS_NOT_FOUND]: unknown;
65
+ }
48
66
  export type LocusInfoUpdate = {
49
- updateType: typeof LocusInfoUpdateType.OBJECTS_UPDATED;
50
- updatedObjects: HashTreeObject[];
51
- } | {
52
- updateType: typeof LocusInfoUpdateType.MEETING_ENDED;
53
- };
67
+ [K in keyof LocusUpdatePayloads]: {
68
+ updateType: K;
69
+ } & LocusUpdatePayloads[K];
70
+ }[keyof LocusUpdatePayloads];
54
71
  export type LocusInfoUpdateCallback = (update: LocusInfoUpdate) => void;
72
+ export type SyncLatencyTracker = {
73
+ saveLatency: (key: 'internal.client.locus.sync.random.backoff', value: number, options: {
74
+ meetingId: string;
75
+ dataSetName: string;
76
+ }) => void;
77
+ saveTimestamp: (options: {
78
+ key: LocusSyncLatencyEventName;
79
+ options: {
80
+ meetingId: string;
81
+ dataSetName: string;
82
+ trackingId?: string;
83
+ };
84
+ }) => void;
85
+ clearLocusSyncLatency: (dataSetName: string, meetingId: string, trackingId?: string) => void;
86
+ };
87
+ export type HashTreeParserCallbacks = {
88
+ locusInfoUpdateCallback: LocusInfoUpdateCallback;
89
+ syncLatencyTracker?: SyncLatencyTracker;
90
+ generateTrackingId?: GenerateTrackingId;
91
+ isLlmExpected: () => boolean;
92
+ };
55
93
  /**
56
94
  * This error is thrown if we receive information that the meeting has ended while we're processing some hash messages.
57
95
  * It's handled internally by HashTreeParser and results in MEETING_ENDED being sent up.
58
96
  */
59
97
  export declare class MeetingEndedError extends Error {
60
98
  }
99
+ /**
100
+ * This error is thrown when a 404 is received from Locus hash tree endpoints, indicating that the locus URL
101
+ * is no longer valid (e.g. participant moved to a breakout room, or meeting ended).
102
+ * It's handled internally by HashTreeParser and results in LOCUS_NOT_FOUND being sent up.
103
+ */
104
+ export declare class LocusNotFoundError extends Error {
105
+ }
61
106
  /**
62
107
  * Parses hash tree eventing locus data
63
108
  */
@@ -65,12 +110,19 @@ declare class HashTreeParser {
65
110
  dataSets: Record<string, InternalDataSet>;
66
111
  visibleDataSetsUrl: string;
67
112
  webexRequest: WebexRequestMethod;
68
- locusInfoUpdateCallback: LocusInfoUpdateCallback;
113
+ private callbacks;
114
+ private syncLatencyMeetingId;
69
115
  visibleDataSets: VisibleDataSetInfo[];
70
116
  debugId: string;
71
- heartbeatIntervalMs?: number;
72
117
  private excludedDataSets;
73
118
  state: 'active' | 'stopped';
119
+ private syncQueue;
120
+ private isSyncInProgress;
121
+ private syncAllBackoffType;
122
+ private dataSetsSyncedDuringBackoff;
123
+ private syncQueueProcessingPromise;
124
+ private topLevelHeartbeatIntervalMs?;
125
+ private pendingLlmWatchdogDataSetNames;
74
126
  /**
75
127
  * Constructor for HashTreeParser
76
128
  * @param {Object} options
@@ -83,9 +135,10 @@ declare class HashTreeParser {
83
135
  };
84
136
  metadata: Metadata | null;
85
137
  webexRequest: WebexRequestMethod;
86
- locusInfoUpdateCallback: LocusInfoUpdateCallback;
138
+ callbacks: HashTreeParserCallbacks;
87
139
  debugId: string;
88
140
  excludedDataSets?: string[];
141
+ syncLatencyMeetingId: string;
89
142
  });
90
143
  /**
91
144
  * Sets the visible data sets list for the HashTreeParser. This method should be called only at the start, to initialize
@@ -124,14 +177,6 @@ declare class HashTreeParser {
124
177
  * @returns {Promise}
125
178
  */
126
179
  private initializeNewVisibleDataSet;
127
- /**
128
- * Sends a special sync request to Locus with all leaves empty - this is a way to get all the data for a given dataset.
129
- *
130
- * @param {string} datasetName - name of the dataset for which to send the request
131
- * @param {string} debugText - text to include in logs
132
- * @returns {Promise}
133
- */
134
- private sendInitializationSyncRequestToLocus;
135
180
  /**
136
181
  * Queries Locus for all up-to-date information about all visible data sets
137
182
  *
@@ -197,6 +242,13 @@ declare class HashTreeParser {
197
242
  * @returns {void}
198
243
  */
199
244
  private handleRootHashHeartBeatMessage;
245
+ /**
246
+ * Handles known errors that can happen during syncs
247
+ *
248
+ * @param {any} error - The error to handle
249
+ * @returns {boolean} true if the error was recognized and handled, false otherwise
250
+ */
251
+ private handleSyncErrors;
200
252
  /**
201
253
  * Asynchronously initializes new visible data sets
202
254
  *
@@ -232,6 +284,14 @@ declare class HashTreeParser {
232
284
  * @returns {void}
233
285
  */
234
286
  private updateDataSetInfo;
287
+ /**
288
+ * Updates the leaf count for a data set, resizing its hash tree accordingly.
289
+ *
290
+ * @param {InternalDataSet} dataSet - The data set to update
291
+ * @param {number} newLeafCount - The new leaf count
292
+ * @returns {void}
293
+ */
294
+ private updateDataSetLeafCount;
235
295
  /**
236
296
  * Checks for changes in the visible data sets based on the updated objects.
237
297
  * @param {HashTreeObject[]} updatedObjects - The list of updated hash tree objects.
@@ -284,6 +344,15 @@ declare class HashTreeParser {
284
344
  * @returns {void}
285
345
  */
286
346
  handleMessage(message: HashTreeMessage, debugText?: string): void;
347
+ /**
348
+ * Checks if Locus sync latency metrics should be collected for a dataset.
349
+ *
350
+ * @param {string} dataSetName dataset name
351
+ * @param {boolean} [isInitialization=false] whether this is an initialization sync
352
+ * @returns {boolean}
353
+ */
354
+ private shouldCollectSyncMetrics;
355
+ private saveSyncBackoffLatency;
287
356
  /**
288
357
  * Calls the updateInfo callback if there are any updates to report
289
358
  *
@@ -298,15 +367,103 @@ declare class HashTreeParser {
298
367
  * @returns {number} - A weighted backoff time based on the provided configuration, using algorithm supplied by Locus team
299
368
  */
300
369
  private getWeightedBackoffTime;
370
+ /**
371
+ * Returns a copy of a hash tree message restricted to a single dataset, keeping only the
372
+ * requested dataset and the elements belonging to it. Used to strip out datasets that Locus
373
+ * may include in a sync response but that we didn't request (e.g. "unjoined" sharing elements
374
+ * with "main"), which would otherwise be applied once per dataset.
375
+ *
376
+ * @param {HashTreeMessage} message the sync response message
377
+ * @param {string} dataSetName the dataset that was requested
378
+ * @returns {HashTreeMessage} a new message containing only the requested dataset
379
+ */
380
+ private filterMessageToDataSet;
301
381
  /**
302
382
  * Performs a sync for the given data set.
303
383
  *
304
384
  * @param {InternalDataSet} dataSet - The data set to sync
305
- * @param {string} rootHash - Our current root hash for this data set
306
385
  * @param {string} reason - The reason for the sync (used for logging)
386
+ * @param {boolean} [isInitialization] - Whether this is an initialization sync (sends empty leaves data instead of comparing hashes)
307
387
  * @returns {Promise<void>}
308
388
  */
309
389
  private performSync;
390
+ /**
391
+ * Cancels any pending or in-flight syncs for the specified data sets.
392
+ * This removes matching entries from the sync queue and aborts any in-flight sync HTTP requests.
393
+ *
394
+ * @param {string[]} dataSetNames - The names of the data sets to cancel syncs for
395
+ * @returns {void}
396
+ */
397
+ private cancelPendingSyncsForDataSets;
398
+ /**
399
+ * If a syncAllDatasets backoff sleep is in progress, marks the given data sets to be skipped
400
+ * after the sleep completes.
401
+ *
402
+ * @param {string[]} dataSetNames - The names of the data sets to mark
403
+ * @returns {void}
404
+ */
405
+ private markDataSetsForSyncAllBackoffSkip;
406
+ /**
407
+ * Aborts any in-flight sync HTTP requests for the specified data sets.
408
+ *
409
+ * @param {string[]} dataSetNames - The names of the data sets whose syncs should be aborted
410
+ * @returns {void}
411
+ */
412
+ private abortInFlightSyncs;
413
+ /**
414
+ * Enqueues a sync for the given data set. If the data set is already in the queue, the request is ignored.
415
+ * This ensures that all syncs are executed sequentially and no more than 1 sync runs at a time.
416
+ *
417
+ * @param {string} dataSetName - The name of the data set to sync
418
+ * @param {string} reason - The reason for the sync (used for logging)
419
+ * @param {boolean} [isInitialization=false] - Whether this is an initialization sync (uses empty leaves data instead of hash comparison)
420
+ * @returns {void}
421
+ */
422
+ private enqueueSyncForDataset;
423
+ /**
424
+ * Processes the sync queue sequentially. Only one instance of this method runs at a time.
425
+ *
426
+ * @returns {Promise<void>}
427
+ */
428
+ private processSyncQueue;
429
+ /**
430
+ * sets the backoff type for syncAllDatasets calls, which determines the scope of datasets that will be synced after the backoff delay.
431
+ *
432
+ * @param {boolean} onlyLLM - Whether the backoff is for a syncAllDatasets call that is syncing only LLM datasets
433
+ * @returns {void}
434
+ */
435
+ private setSyncAllBackoffType;
436
+ /**
437
+ * Checks if a syncAll backoff is already in progress. If so, upgrades the scope from
438
+ * onlyLLM to all datasets when the new call has a broader scope.
439
+ *
440
+ * @param {boolean} onlyLLM - Whether the current call is for LLM datasets only
441
+ * @returns {boolean} true if a backoff is already pending (caller should return early)
442
+ */
443
+ private tryUpgradePendingBackoff;
444
+ /**
445
+ * Syncs all data sets that have hash trees, one by one in sequence, using the priority order
446
+ * provided by sortByInitPriority().
447
+ *
448
+ * If a call is already waiting in the backoff delay phase, a new call with a broader scope
449
+ * (onlyLLM=false) will upgrade the pending scope, and the dataset list will be computed after
450
+ * the backoff using the upgraded scope. After the backoff, the sync queue handles deduplication
451
+ * so no guard is needed.
452
+ *
453
+ * @param {Object} [options={}] - Options for syncing
454
+ * @param {boolean} [options.onlyLLM=false] - Whether to sync only LLM based data sets
455
+ * @returns {Promise<void>}
456
+ */
457
+ syncAllDatasets(options?: {
458
+ onlyLLM?: boolean;
459
+ }): Promise<void>;
460
+ /**
461
+ * Returns the list of data sets that have hash trees, sorted by the priority order provided by sortByInitPriority().
462
+ *
463
+ * @param {boolean} onlyLLM - Whether to include only LLM based data sets
464
+ * @returns {Array<{name: string, backoff: {maxMs: number, exponent: number}}>} The sorted list of data sets with their backoff configurations
465
+ */
466
+ private getSortedDataSetsWithHashTrees;
310
467
  /**
311
468
  * Runs the sync algorithm for the given data set.
312
469
  *
@@ -324,6 +481,16 @@ declare class HashTreeParser {
324
481
  * @returns {void}
325
482
  */
326
483
  private resetHeartbeatWatchdogs;
484
+ /**
485
+ * Re-evaluates heartbeat watchdog timers for LLM data sets. While LLM is not expected,
486
+ * resetHeartbeatWatchdogs skips setting watchdog timers for LLM data sets and records them in
487
+ * pendingLlmWatchdogDataSetNames. This must be called when LLM transitions to expected (e.g. self
488
+ * reports JOINED) to arm the watchdogs for those pending data sets (avoids a timing issue where
489
+ * the "main"/"atd-active"/"atd-unmuted" data set arrives before the self update). The pending set
490
+ * is consumed and cleared here.
491
+ * @returns {void}
492
+ */
493
+ reevaluateLlmWatchdogs(): void;
327
494
  /**
328
495
  * Stops all timers for the data sets to prevent any further sync attempts.
329
496
  * @returns {void}
@@ -343,25 +510,37 @@ declare class HashTreeParser {
343
510
  */
344
511
  cleanUp(): void;
345
512
  /**
346
- * Resumes the HashTreeParser that was previously stopped.
513
+ * Resumes the HashTreeParser that was previously stopped, using a hash tree message.
347
514
  * @param {HashTreeMessage} message - The message to resume with, it must contain metadata with visible data sets info
348
515
  * @returns {void}
349
516
  */
350
- resume(message: HashTreeMessage): void;
517
+ resumeFromMessage(message: HashTreeMessage): void;
518
+ /**
519
+ * Resumes the HashTreeParser that was previously stopped, using a Locus API response.
520
+ * Unlike resumeFromMessage(), this does not require metadata/dataSets in the input,
521
+ * as it fetches all necessary information from Locus via initializeFromGetLociResponse.
522
+ * @param {LocusDTO} locus - locus object from an API response
523
+ * @returns {Promise}
524
+ */
525
+ resumeFromApiResponse(locus: LocusDTO): Promise<void>;
351
526
  private checkForSentinelHttpResponse;
352
527
  /**
353
528
  * Gets the current hashes from the locus for a specific data set.
354
529
  * @param {string} dataSetName
355
530
  * @param {string} currentRootHash
356
- * @returns {string[]}
531
+ * @param {Object} [trackingIds] tracking ids for the /hashtree request
532
+ * @param {string} [trackingIds.requestTrackingId] tracking id forced onto the /hashtree HTTP request header (kept distinct from the /sync request's tracking id)
533
+ * @param {string} [trackingIds.metricTrackingId] tracking id (the /sync request's) under which the hashtree latency milestones are recorded, so they belong to the same sync latency record
534
+ * @returns {Object|null} An object containing the hashes and leaf count, or null if the hashes match and no sync is needed
357
535
  */
358
536
  private getHashesFromLocus;
359
537
  /**
360
538
  * Sends a sync request to Locus for the specified data set.
361
539
  *
362
540
  * @param {InternalDataSet} dataSet The data set to sync.
363
- * @param {Record<number, LeafDataItem[]>} mismatchedLeavesData The mismatched leaves data to include in the sync request.
364
- * @returns {Promise<HashTreeMessage|null>}
541
+ * @param {Object} options Either `{ isInitialization: true }` for init syncs (uses leafCount=1 with empty leaf data) or `{ mismatchedLeavesData }` for normal syncs.
542
+ * @param {string} [trackingId] tracking id
543
+ * @returns {Promise<HashTreeMessage | null>}
365
544
  */
366
545
  private sendSyncRequestToLocus;
367
546
  }
@@ -31,3 +31,10 @@ export declare const deleteNestedObjectsWithHtMeta: (currentLocusPart: any, pare
31
31
  export declare function sortByInitPriority<T extends {
32
32
  name: string;
33
33
  }>(items: T[], priority: string[]): T[];
34
+ /**
35
+ * Sleeps for the specified amount of milliseconds
36
+ *
37
+ * @param {number} ms amount of milliseconds to sleep
38
+ * @returns {Promise<void>} A promise that resolves after the specified delay
39
+ */
40
+ export declare function sleep(ms: number): Promise<void>;
@@ -16,6 +16,9 @@ export * as REACTIONS from './reactions/reactions';
16
16
  export * as sdkAnnotationTypes from './annotation/annotation.types';
17
17
  export * as MeetingInfoV2 from './meeting-info/meeting-info-v2';
18
18
  export { type Reaction } from './reactions/reactions.type';
19
+ export { SitePreferenceSelectOption } from './meetings/meetings.types';
20
+ export type { FetchSitePreferencesMeViaSiteOptions, SitePreferencesResponse, } from './meetings/meetings.types';
21
+ export type { Interpreter, InterpreterUsingResource } from './interpretation/interpretation.types';
19
22
  export { CaptchaError, IntentToJoinError, JoinMeetingError, PasswordError, PermissionError, ReclaimHostIsHostAlreadyError, ReclaimHostNotAllowedError, ReclaimHostNotSupportedError, ReclaimHostEmptyWrongKeyError, Meeting, MeetingInfoUtil, JoinWebinarError, SdpResponseTimeoutError, };
20
23
  export { RemoteMedia } from './multistream/remoteMedia';
21
24
  export { default as TriggerProxy } from './common/events/trigger-proxy';
@@ -11,11 +11,11 @@ export default class LocusRetryStatusInterceptor extends Interceptor {
11
11
  */
12
12
  static create(): LocusRetryStatusInterceptor;
13
13
  /**
14
- * Handle response errors
15
- * @param {Object} options
16
- * @param {WebexHttpError} reason
17
- * @returns {Promise<WebexHttpError>}
14
+ * Check whether a URI is a Locus /hashtree or /sync endpoint.
15
+ * @param {string} uri
16
+ * @returns {boolean}
18
17
  */
18
+ private static isLocusHashtreeOrSync;
19
19
  onResponseError(options: any, reason: any): Promise<unknown>;
20
20
  /**
21
21
  * Handle retries for locus service unavailable errors
@@ -0,0 +1,10 @@
1
+ export type InterpreterUsingResource = {
2
+ id: string;
3
+ email?: string;
4
+ };
5
+ export type Interpreter = {
6
+ order: number;
7
+ sourceLanguage: string;
8
+ targetLanguage: string;
9
+ usingResource: InterpreterUsingResource;
10
+ };
@@ -1,10 +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
6
  import MeetingCollection from '../meetings/collection';
7
7
  export type LocusLLMEvent = {
8
+ trackingId?: string;
8
9
  data: {
9
10
  eventType: typeof LOCUSEVENT.HASH_TREE_DATA_UPDATED;
10
11
  stateElementsMessage: HashTreeMessage;
@@ -20,15 +21,18 @@ export type HashTreeParserEntry = {
20
21
  replacedAt?: string;
21
22
  initializedFromHashTree: boolean;
22
23
  };
24
+ export type LocusInfoCallbacks = {
25
+ updateMeeting: (object: any) => void;
26
+ syncLatencyTracker?: SyncLatencyTracker;
27
+ };
23
28
  /**
24
29
  * Finds a meeting for a given hash tree message.
25
30
  *
26
31
  * @param {HashTreeMessage} message - The hash tree message to find the meeting for
27
32
  * @param {MeetingCollection} meetingCollection - The collection of meetings to search
28
- * @param {string} deviceUrl - The URL of the user's device
29
33
  * @returns {any} The meeting if found, otherwise undefined
30
34
  */
31
- export declare function findMeetingForHashTreeMessage(message: HashTreeMessage, meetingCollection: MeetingCollection, deviceUrl: string): any;
35
+ export declare function findMeetingForHashTreeMessage(message: HashTreeMessage | undefined, meetingCollection: MeetingCollection): any;
32
36
  /**
33
37
  * Creates a locus object from the objects received in a hash tree message. It usually will be
34
38
  * incomplete, because hash tree messages only contain the parts of locus that have changed,
@@ -53,7 +57,6 @@ export default class LocusInfo extends EventsScope {
53
57
  locusParser: any;
54
58
  meetingId: any;
55
59
  parsedLocus: any;
56
- updateMeeting: any;
57
60
  webex: any;
58
61
  aclUrl: any;
59
62
  baseSequence: any;
@@ -77,14 +80,23 @@ export default class LocusInfo extends EventsScope {
77
80
  hashTreeParsers: Map<string, HashTreeParserEntry>;
78
81
  hashTreeObjectId2ParticipantId: Map<number, string>;
79
82
  classicVsHashTreeMismatchMetricCounter: number;
83
+ private callbacks;
84
+ private destroyMeetingSuspended;
80
85
  /**
81
86
  * Constructor
82
- * @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
83
89
  * @param {object} webex
84
90
  * @param {string} meetingId
85
91
  * @returns {undefined}
86
92
  */
87
- 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;
88
100
  /**
89
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.
90
102
  * WARNING: This function must not be used for hash tree based Locus meetings.
@@ -92,9 +104,41 @@ export default class LocusInfo extends EventsScope {
92
104
  * @param {Meeting} meeting
93
105
  * @param {boolean} isLocusUrlChanged
94
106
  * @param {Locus} locus
95
- * @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
96
115
  */
97
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>;
98
142
  /**
99
143
  * Apply locus delta data to meeting
100
144
  * @param {string} action Locus delta action
@@ -118,6 +162,12 @@ export default class LocusInfo extends EventsScope {
118
162
  * @memberof LocusInfo
119
163
  */
120
164
  init(locus?: any): void;
165
+ /**
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;
121
171
  /**
122
172
  * Creates a HashTreeParser instance for a given locusUrl and stores it in the map.
123
173
  * @param {Object} params
@@ -130,6 +180,7 @@ export default class LocusInfo extends EventsScope {
130
180
  private createHashTreeParser;
131
181
  /**
132
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)
133
184
  * @returns {undefined}
134
185
  * @memberof LocusInfo
135
186
  */
@@ -145,7 +196,13 @@ export default class LocusInfo extends EventsScope {
145
196
  } | {
146
197
  trigger: 'get-loci-response';
147
198
  locus?: LocusDTO;
148
- }): 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;
149
206
  /**
150
207
  * Handles HTTP response from Locus API call.
151
208
  * @param {Meeting} meeting meeting object
@@ -167,6 +224,28 @@ export default class LocusInfo extends EventsScope {
167
224
  * @returns {void}
168
225
  */
169
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;
170
249
  /**
171
250
  * Checks if the hash tree message should trigger a switch to a different HashTreeParser
172
251
  *
@@ -183,6 +262,17 @@ export default class LocusInfo extends EventsScope {
183
262
  * @returns {void}
184
263
  */
185
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>;
186
276
  /**
187
277
  * Callback registered with HashTreeParser to receive locus info updates.
188
278
  * Updates our locus info based on the data parsed by the hash tree parser.
@@ -282,6 +372,14 @@ export default class LocusInfo extends EventsScope {
282
372
  * @memberof LocusInfo
283
373
  */
284
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;
285
383
  /**
286
384
  * checks if the host permissions have changed while in the meeting
287
385
  * This would be the case if your role as host or moderator has been updated
@@ -1,2 +1,10 @@
1
+ export declare enum DisplayHintSection {
2
+ JOINED = "joined",
3
+ MODERATOR = "moderator",
4
+ COHOST = "coHost",
5
+ PRESENTER = "presenter",
6
+ PANELIST = "panelist",
7
+ ATTENDEE = "attendee"
8
+ }
1
9
  declare const InfoUtils: any;
2
10
  export default InfoUtils;
@@ -1,14 +1,30 @@
1
+ import { Enum } from '../constants';
1
2
  import { HtMeta } from '../hashTree/types';
3
+ export declare const EndMeetingReason: {
4
+ readonly maxMeetingDuration: "MAX_MEETING_DURATION";
5
+ readonly allParticipantsLeft: "ALL_PARTICIPANTS_LEFT";
6
+ readonly sipHostLeft: "SIP_HOST_LEFT";
7
+ readonly noHost: "NO_HOST";
8
+ readonly waitingForMpsEndMeetingTimeout: "WAITING_FOR_MPS_END_MEETING_TIMEOUT";
9
+ readonly fraudDetection: "FRAUD_DETECTION";
10
+ readonly meetingEndedByHost: "MEETING_ENDED_BY_HOST";
11
+ readonly meetingUpdated: "MEETING_UPDATED";
12
+ readonly meetingCancelled: "MEETING_CANCELLED";
13
+ readonly autoEndWithSingleParticipant: "AUTO_END_WITH_SINGLE_PARTICIPANT";
14
+ readonly breakoutEnded: "BREAKOUT_ENDED";
15
+ };
16
+ export type EndMeetingReason = Enum<typeof EndMeetingReason>;
2
17
  export type LocusFullState = {
3
18
  active: boolean;
4
19
  count: number;
5
20
  lastActive: string;
6
21
  locked: boolean;
7
22
  sessionId: string;
8
- seessionIds: string[];
23
+ sessionIds: string[];
9
24
  startTime: number;
10
25
  state: string;
11
26
  type: string;
27
+ endMeetingReason?: EndMeetingReason;
12
28
  };
13
29
  export type Links = {
14
30
  services: Record<'breakout' | 'record', {
@@ -59,3 +75,8 @@ export type ReplacesInfo = {
59
75
  replacedAt: string;
60
76
  sessionId: string;
61
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>;