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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) hide show
  1. package/AGENTS.md +9 -0
  2. package/dist/aiEnableRequest/index.js +197 -0
  3. package/dist/aiEnableRequest/index.js.map +1 -0
  4. package/dist/aiEnableRequest/utils.js +36 -0
  5. package/dist/aiEnableRequest/utils.js.map +1 -0
  6. package/dist/annotation/index.js +14 -5
  7. package/dist/annotation/index.js.map +1 -1
  8. package/dist/breakouts/breakout.js +8 -3
  9. package/dist/breakouts/breakout.js.map +1 -1
  10. package/dist/breakouts/events.js +29 -14
  11. package/dist/breakouts/events.js.map +1 -1
  12. package/dist/breakouts/index.js +90 -3
  13. package/dist/breakouts/index.js.map +1 -1
  14. package/dist/common/errors/webex-errors.js +49 -5
  15. package/dist/common/errors/webex-errors.js.map +1 -1
  16. package/dist/config.js +8 -3
  17. package/dist/config.js.map +1 -1
  18. package/dist/constants.js +60 -11
  19. package/dist/constants.js.map +1 -1
  20. package/dist/controls-options-manager/constants.js +11 -1
  21. package/dist/controls-options-manager/constants.js.map +1 -1
  22. package/dist/controls-options-manager/index.js +67 -29
  23. package/dist/controls-options-manager/index.js.map +1 -1
  24. package/dist/controls-options-manager/util.js +91 -0
  25. package/dist/controls-options-manager/util.js.map +1 -1
  26. package/dist/hashTree/constants.js +16 -2
  27. package/dist/hashTree/constants.js.map +1 -1
  28. package/dist/hashTree/hashTree.js +18 -0
  29. package/dist/hashTree/hashTree.js.map +1 -1
  30. package/dist/hashTree/hashTreeParser.js +1655 -538
  31. package/dist/hashTree/hashTreeParser.js.map +1 -1
  32. package/dist/hashTree/types.js +4 -2
  33. package/dist/hashTree/types.js.map +1 -1
  34. package/dist/hashTree/utils.js +52 -0
  35. package/dist/hashTree/utils.js.map +1 -1
  36. package/dist/index.js +18 -2
  37. package/dist/index.js.map +1 -1
  38. package/dist/interceptors/constant.js +12 -0
  39. package/dist/interceptors/constant.js.map +1 -0
  40. package/dist/interceptors/dataChannelAuthToken.js +350 -0
  41. package/dist/interceptors/dataChannelAuthToken.js.map +1 -0
  42. package/dist/interceptors/index.js +7 -0
  43. package/dist/interceptors/index.js.map +1 -1
  44. package/dist/interceptors/locusRetry.js +23 -8
  45. package/dist/interceptors/locusRetry.js.map +1 -1
  46. package/dist/interceptors/utils.js +27 -0
  47. package/dist/interceptors/utils.js.map +1 -0
  48. package/dist/interpretation/index.js +11 -2
  49. package/dist/interpretation/index.js.map +1 -1
  50. package/dist/interpretation/interpretation.types.js +7 -0
  51. package/dist/interpretation/interpretation.types.js.map +1 -0
  52. package/dist/interpretation/siLanguage.js +1 -1
  53. package/dist/locus-info/controlsUtils.js +9 -4
  54. package/dist/locus-info/controlsUtils.js.map +1 -1
  55. package/dist/locus-info/index.js +911 -211
  56. package/dist/locus-info/index.js.map +1 -1
  57. package/dist/locus-info/infoUtils.js +36 -5
  58. package/dist/locus-info/infoUtils.js.map +1 -1
  59. package/dist/locus-info/selfUtils.js +1 -0
  60. package/dist/locus-info/selfUtils.js.map +1 -1
  61. package/dist/locus-info/types.js +19 -0
  62. package/dist/locus-info/types.js.map +1 -1
  63. package/dist/media/MediaConnectionAwaiter.js +72 -3
  64. package/dist/media/MediaConnectionAwaiter.js.map +1 -1
  65. package/dist/media/index.js +8 -2
  66. package/dist/media/index.js.map +1 -1
  67. package/dist/media/properties.js +8 -7
  68. package/dist/media/properties.js.map +1 -1
  69. package/dist/meeting/in-meeting-actions.js +11 -1
  70. package/dist/meeting/in-meeting-actions.js.map +1 -1
  71. package/dist/meeting/index.js +2276 -1067
  72. package/dist/meeting/index.js.map +1 -1
  73. package/dist/meeting/locusMediaRequest.js +229 -82
  74. package/dist/meeting/locusMediaRequest.js.map +1 -1
  75. package/dist/meeting/muteState.js +10 -1
  76. package/dist/meeting/muteState.js.map +1 -1
  77. package/dist/meeting/request.js +55 -2
  78. package/dist/meeting/request.js.map +1 -1
  79. package/dist/meeting/request.type.js.map +1 -1
  80. package/dist/meeting/util.js +168 -5
  81. package/dist/meeting/util.js.map +1 -1
  82. package/dist/meeting-info/meeting-info-v2.js +2 -2
  83. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  84. package/dist/meetings/index.js +369 -162
  85. package/dist/meetings/index.js.map +1 -1
  86. package/dist/meetings/meetings.types.js +6 -1
  87. package/dist/meetings/meetings.types.js.map +1 -1
  88. package/dist/meetings/request.js +39 -0
  89. package/dist/meetings/request.js.map +1 -1
  90. package/dist/meetings/util.js +116 -18
  91. package/dist/meetings/util.js.map +1 -1
  92. package/dist/member/index.js +20 -0
  93. package/dist/member/index.js.map +1 -1
  94. package/dist/member/types.js.map +1 -1
  95. package/dist/member/util.js +40 -0
  96. package/dist/member/util.js.map +1 -1
  97. package/dist/members/index.js +101 -43
  98. package/dist/members/index.js.map +1 -1
  99. package/dist/members/util.js +8 -1
  100. package/dist/members/util.js.map +1 -1
  101. package/dist/metrics/constants.js +12 -1
  102. package/dist/metrics/constants.js.map +1 -1
  103. package/dist/multistream/codec/constants.js +63 -0
  104. package/dist/multistream/codec/constants.js.map +1 -0
  105. package/dist/multistream/mediaRequestManager.js +64 -68
  106. package/dist/multistream/mediaRequestManager.js.map +1 -1
  107. package/dist/multistream/receiveSlot.js +9 -0
  108. package/dist/multistream/receiveSlot.js.map +1 -1
  109. package/dist/multistream/remoteMediaManager.js +11 -0
  110. package/dist/multistream/remoteMediaManager.js.map +1 -1
  111. package/dist/multistream/sendSlotManager.js +116 -2
  112. package/dist/multistream/sendSlotManager.js.map +1 -1
  113. package/dist/reachability/clusterReachability.js.map +1 -1
  114. package/dist/reachability/index.js +139 -93
  115. package/dist/reachability/index.js.map +1 -1
  116. package/dist/reachability/reachability.types.js +2 -0
  117. package/dist/reachability/reachability.types.js.map +1 -1
  118. package/dist/reachability/util.js +45 -0
  119. package/dist/reachability/util.js.map +1 -1
  120. package/dist/reactions/reactions.type.js.map +1 -1
  121. package/dist/reconnection-manager/index.js +0 -1
  122. package/dist/reconnection-manager/index.js.map +1 -1
  123. package/dist/recording-controller/index.js +1 -3
  124. package/dist/recording-controller/index.js.map +1 -1
  125. package/dist/roap/turnDiscovery.js +8 -1
  126. package/dist/roap/turnDiscovery.js.map +1 -1
  127. package/dist/types/aiEnableRequest/index.d.ts +5 -0
  128. package/dist/types/aiEnableRequest/utils.d.ts +2 -0
  129. package/dist/types/common/errors/webex-errors.d.ts +32 -2
  130. package/dist/types/config.d.ts +6 -2
  131. package/dist/types/constants.d.ts +35 -1
  132. package/dist/types/controls-options-manager/constants.d.ts +6 -1
  133. package/dist/types/controls-options-manager/index.d.ts +16 -0
  134. package/dist/types/hashTree/constants.d.ts +3 -0
  135. package/dist/types/hashTree/hashTree.d.ts +7 -0
  136. package/dist/types/hashTree/hashTreeParser.d.ts +315 -30
  137. package/dist/types/hashTree/types.d.ts +3 -0
  138. package/dist/types/hashTree/utils.d.ts +24 -0
  139. package/dist/types/index.d.ts +4 -0
  140. package/dist/types/interceptors/constant.d.ts +5 -0
  141. package/dist/types/interceptors/dataChannelAuthToken.d.ts +43 -0
  142. package/dist/types/interceptors/index.d.ts +2 -1
  143. package/dist/types/interceptors/locusRetry.d.ts +4 -4
  144. package/dist/types/interceptors/utils.d.ts +1 -0
  145. package/dist/types/interpretation/interpretation.types.d.ts +10 -0
  146. package/dist/types/locus-info/index.d.ts +126 -15
  147. package/dist/types/locus-info/infoUtils.d.ts +8 -0
  148. package/dist/types/locus-info/types.d.ts +28 -1
  149. package/dist/types/media/MediaConnectionAwaiter.d.ts +20 -2
  150. package/dist/types/media/properties.d.ts +8 -3
  151. package/dist/types/meeting/in-meeting-actions.d.ts +10 -0
  152. package/dist/types/meeting/index.d.ts +245 -16
  153. package/dist/types/meeting/locusMediaRequest.d.ts +12 -0
  154. package/dist/types/meeting/request.d.ts +17 -1
  155. package/dist/types/meeting/request.type.d.ts +5 -0
  156. package/dist/types/meeting/util.d.ts +40 -0
  157. package/dist/types/meetings/index.d.ts +42 -20
  158. package/dist/types/meetings/meetings.types.d.ts +15 -0
  159. package/dist/types/meetings/request.d.ts +14 -0
  160. package/dist/types/member/index.d.ts +2 -0
  161. package/dist/types/member/types.d.ts +1 -0
  162. package/dist/types/member/util.d.ts +14 -0
  163. package/dist/types/members/index.d.ts +15 -2
  164. package/dist/types/members/util.d.ts +1 -5
  165. package/dist/types/metrics/constants.d.ts +11 -0
  166. package/dist/types/multistream/codec/constants.d.ts +7 -0
  167. package/dist/types/multistream/mediaRequestManager.d.ts +20 -26
  168. package/dist/types/multistream/sendSlotManager.d.ts +23 -1
  169. package/dist/types/reachability/clusterReachability.d.ts +3 -3
  170. package/dist/types/reachability/index.d.ts +10 -3
  171. package/dist/types/reachability/reachability.types.d.ts +7 -0
  172. package/dist/types/reachability/util.d.ts +17 -0
  173. package/dist/types/reactions/reactions.type.d.ts +4 -0
  174. package/dist/types/webinar/utils.d.ts +6 -0
  175. package/dist/webinar/index.js +585 -164
  176. package/dist/webinar/index.js.map +1 -1
  177. package/dist/webinar/utils.js +25 -0
  178. package/dist/webinar/utils.js.map +1 -0
  179. package/package.json +24 -23
  180. package/src/aiEnableRequest/README.md +84 -0
  181. package/src/aiEnableRequest/index.ts +186 -0
  182. package/src/aiEnableRequest/utils.ts +25 -0
  183. package/src/annotation/index.ts +27 -7
  184. package/src/breakouts/breakout.ts +3 -1
  185. package/src/breakouts/events.ts +33 -11
  186. package/src/breakouts/index.ts +110 -1
  187. package/src/common/errors/webex-errors.ts +50 -3
  188. package/src/config.ts +6 -2
  189. package/src/constants.ts +49 -3
  190. package/src/controls-options-manager/constants.ts +14 -1
  191. package/src/controls-options-manager/index.ts +87 -28
  192. package/src/controls-options-manager/util.ts +81 -1
  193. package/src/hashTree/constants.ts +17 -0
  194. package/src/hashTree/hashTree.ts +17 -0
  195. package/src/hashTree/hashTreeParser.ts +1482 -361
  196. package/src/hashTree/types.ts +4 -0
  197. package/src/hashTree/utils.ts +45 -0
  198. package/src/index.ts +14 -1
  199. package/src/interceptors/constant.ts +6 -0
  200. package/src/interceptors/dataChannelAuthToken.ts +246 -0
  201. package/src/interceptors/index.ts +2 -1
  202. package/src/interceptors/locusRetry.ts +25 -4
  203. package/src/interceptors/utils.ts +16 -0
  204. package/src/interpretation/index.ts +29 -11
  205. package/src/interpretation/interpretation.types.ts +11 -0
  206. package/src/locus-info/controlsUtils.ts +14 -1
  207. package/src/locus-info/index.ts +975 -203
  208. package/src/locus-info/infoUtils.ts +41 -6
  209. package/src/locus-info/selfUtils.ts +1 -0
  210. package/src/locus-info/types.ts +33 -1
  211. package/src/media/MediaConnectionAwaiter.ts +62 -5
  212. package/src/media/index.ts +10 -1
  213. package/src/media/properties.ts +11 -4
  214. package/src/meeting/in-meeting-actions.ts +20 -0
  215. package/src/meeting/index.ts +1272 -164
  216. package/src/meeting/locusMediaRequest.ts +106 -6
  217. package/src/meeting/muteState.ts +10 -1
  218. package/src/meeting/request.ts +53 -0
  219. package/src/meeting/request.type.ts +6 -0
  220. package/src/meeting/util.ts +207 -7
  221. package/src/meeting-info/meeting-info-v2.ts +4 -2
  222. package/src/meetings/index.ts +319 -117
  223. package/src/meetings/meetings.types.ts +19 -0
  224. package/src/meetings/request.ts +43 -0
  225. package/src/meetings/util.ts +117 -4
  226. package/src/member/index.ts +20 -0
  227. package/src/member/types.ts +1 -0
  228. package/src/member/util.ts +41 -0
  229. package/src/members/index.ts +70 -7
  230. package/src/members/util.ts +12 -4
  231. package/src/metrics/constants.ts +12 -0
  232. package/src/multistream/codec/constants.ts +58 -0
  233. package/src/multistream/mediaRequestManager.ts +117 -76
  234. package/src/multistream/receiveSlot.ts +18 -0
  235. package/src/multistream/remoteMediaManager.ts +13 -0
  236. package/src/multistream/sendSlotManager.ts +97 -3
  237. package/src/reachability/clusterReachability.ts +3 -2
  238. package/src/reachability/index.ts +56 -16
  239. package/src/reachability/reachability.types.ts +11 -0
  240. package/src/reachability/util.ts +36 -0
  241. package/src/reactions/reactions.type.ts +4 -0
  242. package/src/reconnection-manager/index.ts +0 -1
  243. package/src/recording-controller/index.ts +1 -2
  244. package/src/roap/turnDiscovery.ts +9 -1
  245. package/src/webinar/index.ts +448 -11
  246. package/src/webinar/utils.ts +16 -0
  247. package/test/unit/spec/aiEnableRequest/index.ts +1067 -0
  248. package/test/unit/spec/aiEnableRequest/utils.ts +130 -0
  249. package/test/unit/spec/annotation/index.ts +69 -7
  250. package/test/unit/spec/breakouts/breakout.ts +9 -3
  251. package/test/unit/spec/breakouts/events.ts +120 -2
  252. package/test/unit/spec/breakouts/index.ts +191 -2
  253. package/test/unit/spec/common/errors/webex-errors.ts +78 -0
  254. package/test/unit/spec/controls-options-manager/index.js +244 -29
  255. package/test/unit/spec/controls-options-manager/util.js +165 -0
  256. package/test/unit/spec/hashTree/hashTree.ts +66 -0
  257. package/test/unit/spec/hashTree/hashTreeParser.ts +4528 -171
  258. package/test/unit/spec/hashTree/utils.ts +125 -1
  259. package/test/unit/spec/interceptors/dataChannelAuthToken.ts +406 -0
  260. package/test/unit/spec/interceptors/locusRetry.ts +205 -4
  261. package/test/unit/spec/interceptors/utils.ts +75 -0
  262. package/test/unit/spec/interpretation/index.ts +26 -4
  263. package/test/unit/spec/locus-info/controlsUtils.js +200 -56
  264. package/test/unit/spec/locus-info/index.js +1848 -164
  265. package/test/unit/spec/locus-info/infoUtils.js +184 -1
  266. package/test/unit/spec/media/MediaConnectionAwaiter.ts +96 -1
  267. package/test/unit/spec/media/index.ts +92 -0
  268. package/test/unit/spec/media/properties.ts +35 -26
  269. package/test/unit/spec/meeting/in-meeting-actions.ts +12 -2
  270. package/test/unit/spec/meeting/index.js +3706 -405
  271. package/test/unit/spec/meeting/locusMediaRequest.ts +406 -4
  272. package/test/unit/spec/meeting/muteState.js +81 -0
  273. package/test/unit/spec/meeting/request.js +82 -0
  274. package/test/unit/spec/meeting/utils.js +595 -27
  275. package/test/unit/spec/meeting-info/meetinginfov2.js +19 -10
  276. package/test/unit/spec/meetings/index.js +1138 -86
  277. package/test/unit/spec/meetings/request.js +141 -0
  278. package/test/unit/spec/meetings/utils.js +402 -51
  279. package/test/unit/spec/member/index.js +35 -4
  280. package/test/unit/spec/member/util.js +154 -27
  281. package/test/unit/spec/members/index.js +216 -0
  282. package/test/unit/spec/members/request.js +37 -1
  283. package/test/unit/spec/members/utils.js +63 -0
  284. package/test/unit/spec/multistream/mediaRequestManager.ts +503 -122
  285. package/test/unit/spec/multistream/remoteMediaManager.ts +30 -0
  286. package/test/unit/spec/multistream/sendSlotManager.ts +135 -36
  287. package/test/unit/spec/reachability/index.ts +151 -46
  288. package/test/unit/spec/reachability/util.ts +31 -0
  289. package/test/unit/spec/reconnection-manager/index.js +4 -8
  290. package/test/unit/spec/recording-controller/index.js +9 -8
  291. package/test/unit/spec/roap/turnDiscovery.ts +20 -0
  292. package/test/unit/spec/webinar/index.ts +837 -39
  293. package/test/unit/spec/webinar/utils.ts +39 -0
@@ -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
- import { HashTreeObject } from './types';
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>;
@@ -23,20 +31,77 @@ export interface HashTreeMessage {
23
31
  locusStateElements?: Array<HashTreeObject>;
24
32
  locusSessionId?: string;
25
33
  locusUrl: string;
34
+ heartbeatIntervalMs?: number;
35
+ }
36
+ export interface VisibleDataSetInfo {
37
+ name: string;
38
+ url: string;
39
+ dataChannelUrl?: string;
40
+ }
41
+ export interface Metadata {
42
+ htMeta: HtMeta;
43
+ visibleDataSets: VisibleDataSetInfo[];
26
44
  }
27
45
  interface InternalDataSet extends DataSet {
28
46
  hashTree?: HashTree;
29
47
  timer?: ReturnType<typeof setTimeout>;
48
+ heartbeatWatchdogTimer?: ReturnType<typeof setTimeout>;
49
+ syncAbortController?: AbortController;
30
50
  }
31
51
  type WebexRequestMethod = (options: Record<string, any>) => Promise<any>;
52
+ type GenerateTrackingId = () => string | undefined;
32
53
  export declare const LocusInfoUpdateType: {
33
54
  readonly OBJECTS_UPDATED: "OBJECTS_UPDATED";
34
55
  readonly MEETING_ENDED: "MEETING_ENDED";
56
+ readonly LOCUS_NOT_FOUND: "LOCUS_NOT_FOUND";
35
57
  };
36
58
  export type LocusInfoUpdateType = Enum<typeof LocusInfoUpdateType>;
37
- export type LocusInfoUpdateCallback = (updateType: LocusInfoUpdateType, data?: {
38
- updatedObjects: HashTreeObject[];
39
- }) => void;
59
+ interface LocusUpdatePayloads {
60
+ [LocusInfoUpdateType.OBJECTS_UPDATED]: {
61
+ updatedObjects: HashTreeObject[];
62
+ };
63
+ [LocusInfoUpdateType.MEETING_ENDED]: unknown;
64
+ [LocusInfoUpdateType.LOCUS_NOT_FOUND]: unknown;
65
+ }
66
+ export type LocusInfoUpdate = {
67
+ [K in keyof LocusUpdatePayloads]: {
68
+ updateType: K;
69
+ } & LocusUpdatePayloads[K];
70
+ }[keyof LocusUpdatePayloads];
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
+ };
92
+ /**
93
+ * This error is thrown if we receive information that the meeting has ended while we're processing some hash messages.
94
+ * It's handled internally by HashTreeParser and results in MEETING_ENDED being sent up.
95
+ */
96
+ export declare class MeetingEndedError extends Error {
97
+ }
98
+ /**
99
+ * This error is thrown when a 404 is received from Locus hash tree endpoints, indicating that the locus URL
100
+ * is no longer valid (e.g. participant moved to a breakout room, or meeting ended).
101
+ * It's handled internally by HashTreeParser and results in LOCUS_NOT_FOUND being sent up.
102
+ */
103
+ export declare class LocusNotFoundError extends Error {
104
+ }
40
105
  /**
41
106
  * Parses hash tree eventing locus data
42
107
  */
@@ -44,9 +109,18 @@ declare class HashTreeParser {
44
109
  dataSets: Record<string, InternalDataSet>;
45
110
  visibleDataSetsUrl: string;
46
111
  webexRequest: WebexRequestMethod;
47
- locusInfoUpdateCallback: LocusInfoUpdateCallback;
48
- visibleDataSets: string[];
112
+ private callbacks;
113
+ private syncLatencyMeetingId;
114
+ visibleDataSets: VisibleDataSetInfo[];
49
115
  debugId: string;
116
+ private excludedDataSets;
117
+ state: 'active' | 'stopped';
118
+ private syncQueue;
119
+ private isSyncInProgress;
120
+ private syncAllBackoffType;
121
+ private dataSetsSyncedDuringBackoff;
122
+ private syncQueueProcessingPromise;
123
+ private topLevelHeartbeatIntervalMs?;
50
124
  /**
51
125
  * Constructor for HashTreeParser
52
126
  * @param {Object} options
@@ -57,34 +131,56 @@ declare class HashTreeParser {
57
131
  dataSets: Array<DataSet>;
58
132
  locus: any;
59
133
  };
134
+ metadata: Metadata | null;
60
135
  webexRequest: WebexRequestMethod;
61
- locusInfoUpdateCallback: LocusInfoUpdateCallback;
136
+ callbacks: HashTreeParserCallbacks;
62
137
  debugId: string;
138
+ excludedDataSets?: string[];
139
+ syncLatencyMeetingId: string;
63
140
  });
141
+ /**
142
+ * Sets the visible data sets list for the HashTreeParser. This method should be called only at the start, to initialize
143
+ * the visible data sets, before any message processsing, so for example from the constructor or when resuming the parser.
144
+ *
145
+ * @param {Array<VisibleDataSetInfo>} visibleDataSets - The visible data sets to set
146
+ * @param {Array<DataSet>} dataSets - The "dataSets" list from Locus (yes, Locus sends visibleDataSets and dataSets as separate lists and they can differ)
147
+ * @returns {void}
148
+ */
149
+ private setVisibleDataSets;
150
+ /**
151
+ * Checks if the given data set name is in the list of visible data sets
152
+ * @param {string} dataSetName data set name to check
153
+ * @returns {Boolean} True if the data set is visible, false otherwise
154
+ */
155
+ private isVisibleDataSet;
156
+ /**
157
+ * Checks if the given data set name is in the excluded list
158
+ * @param {string} dataSetName data set name to check
159
+ * @returns {boolean} True if the data set is excluded, false otherwise
160
+ */
161
+ private isExcludedDataSet;
162
+ /**
163
+ * Adds a data set to the visible data sets list, unless it is in the excluded list.
164
+ * @param {VisibleDataSetInfo} dataSetInfo data set info to add
165
+ * @returns {boolean} True if the data set was added, false if it was excluded
166
+ */
167
+ private addToVisibleDataSetsList;
64
168
  /**
65
169
  * Initializes a new visible data set by creating a hash tree for it, adding it to all the internal structures,
66
170
  * and sending an initial sync request to Locus with empty leaf data - that will trigger Locus to gives us all the data
67
171
  * from that dataset (in the response or via messages).
68
172
  *
69
- * @param {DataSet} dataSet The new data set to be added
173
+ * @param {VisibleDataSetInfo} visibleDataSetInfo Information about the new visible data set
174
+ * @param {DataSet} dataSetInfo The new data set to be added
70
175
  * @returns {Promise}
71
176
  */
72
177
  private initializeNewVisibleDataSet;
73
178
  /**
74
- * Sends a special sync request to Locus with all leaves empty - this is a way to get all the data for a given dataset.
179
+ * Queries Locus for all up-to-date information about all visible data sets
75
180
  *
76
- * @param {string} datasetName - name of the dataset for which to send the request
77
- * @param {string} debugText - text to include in logs
78
181
  * @returns {Promise}
79
182
  */
80
- private sendInitializationSyncRequestToLocus;
81
- /**
82
- * Queries Locus for information about all the data sets
83
- *
84
- * @param {string} url - url from which we can get info about all data sets
85
- * @returns {Promise}
86
- */
87
- private getAllDataSetsMetadata;
183
+ private getAllVisibleDataSetsFromLocus;
88
184
  /**
89
185
  * Initializes the hash tree parser from a message received from Locus.
90
186
  *
@@ -105,7 +201,7 @@ declare class HashTreeParser {
105
201
  /**
106
202
  * Initializes data sets by doing an initialization sync on each visible data set that doesn't have a hash tree yet.
107
203
  *
108
- * @param {DataSet[]} dataSets Array of DataSet objects to initialize
204
+ * @param {DataSet[]} visibleDataSets Array of visible DataSet objects to initialize
109
205
  * @param {string} debugText Text to include in logs for debugging purposes
110
206
  * @returns {Promise}
111
207
  */
@@ -121,6 +217,15 @@ declare class HashTreeParser {
121
217
  * @returns {any} - An object mapping dataset names to arrays of leaf data
122
218
  */
123
219
  private analyzeLocusHtMeta;
220
+ /**
221
+ * Analyzes the Metadata object that is sent outside of Locus object, and appends its data to passed in leafInfo
222
+ * structure.
223
+ *
224
+ * @param {Record<string, LeafInfo[]>} leafInfo the structure to which the Metadata info will be appended
225
+ * @param {Metadata} metadata Metadata object
226
+ * @returns {void}
227
+ */
228
+ private analyzeMetadata;
124
229
  /**
125
230
  * Checks if the provided hash tree message indicates the end of the meeting and that there won't be any more updates.
126
231
  *
@@ -135,6 +240,29 @@ declare class HashTreeParser {
135
240
  * @returns {void}
136
241
  */
137
242
  private handleRootHashHeartBeatMessage;
243
+ /**
244
+ * Handles known errors that can happen during syncs
245
+ *
246
+ * @param {any} error - The error to handle
247
+ * @returns {boolean} true if the error was recognized and handled, false otherwise
248
+ */
249
+ private handleSyncErrors;
250
+ /**
251
+ * Asynchronously initializes new visible data sets
252
+ *
253
+ * @param {VisibleDataSetInfo[]} dataSetsRequiringInitialization list of datasets to initialize
254
+ * @returns {void}
255
+ */
256
+ private queueInitForNewVisibleDataSets;
257
+ /**
258
+ * Handles updates to Metadata object that we receive from Locus via other means than messages. Right now
259
+ * that means only in the API response alongside locus object.
260
+ *
261
+ * @param {Metadata} metadata received in Locus update other than a message (for example in an API response)
262
+ * @param {HashTreeObject[]} updatedObjects a list of updated hash tree objects to which any updates resulting from new Metadata will be added
263
+ * @returns {void}
264
+ */
265
+ handleMetadataUpdate(metadata: Metadata, updatedObjects: HashTreeObject[]): void;
138
266
  /**
139
267
  * This method should be called when we receive a partial locus DTO that contains dataSets and htMeta information
140
268
  * It updates the hash trees with the new leaf data based on the received Locus
@@ -145,6 +273,7 @@ declare class HashTreeParser {
145
273
  handleLocusUpdate(update: {
146
274
  dataSets?: Array<DataSet>;
147
275
  locus: any;
276
+ metadata?: Metadata;
148
277
  }): void;
149
278
  /**
150
279
  * Updates the internal data set information based on the received data set from Locus.
@@ -153,6 +282,14 @@ declare class HashTreeParser {
153
282
  * @returns {void}
154
283
  */
155
284
  private updateDataSetInfo;
285
+ /**
286
+ * Updates the leaf count for a data set, resizing its hash tree accordingly.
287
+ *
288
+ * @param {InternalDataSet} dataSet - The data set to update
289
+ * @param {number} newLeafCount - The new leaf count
290
+ * @returns {void}
291
+ */
292
+ private updateDataSetLeafCount;
156
293
  /**
157
294
  * Checks for changes in the visible data sets based on the updated objects.
158
295
  * @param {HashTreeObject[]} updatedObjects - The list of updated hash tree objects.
@@ -175,18 +312,17 @@ declare class HashTreeParser {
175
312
  * visible data sets and they require async initialization, the names of these data sets
176
313
  * are returned in an array.
177
314
  *
178
- * @param {string[]} removedDataSets - The list of removed data sets.
179
- * @param {string[]} addedDataSets - The list of added data sets.
315
+ * @param {VisibleDataSetInfo[]} removedDataSets - The list of removed data sets.
316
+ * @param {VisibleDataSetInfo[]} addedDataSets - The list of added data sets.
180
317
  * @param {HashTreeObject[]} updatedObjects - The list of updated hash tree objects to which changes will be added.
181
- * @returns {string[]} names of data sets that couldn't be initialized synchronously
318
+ * @returns {VisibleDataSetInfo[]} list of data sets that couldn't be initialized synchronously
182
319
  */
183
320
  private processVisibleDataSetChanges;
184
321
  /**
185
322
  * Adds entries to the passed in updateObjects array
186
323
  * for the changes that result from adding and removing visible data sets.
187
324
  *
188
- * @param {HashTreeMessage} message - The hash tree message that triggered the visible data set changes.
189
- * @param {string[]} addedDataSets - The list of added data sets.
325
+ * @param {VisibleDataSetInfo[]} addedDataSets - The list of added data sets.
190
326
  * @returns {Promise<void>}
191
327
  */
192
328
  private initializeNewVisibleDataSets;
@@ -195,7 +331,7 @@ declare class HashTreeParser {
195
331
  *
196
332
  * @param {HashTreeMessage} message - The hash tree message containing data sets and objects to be processed
197
333
  * @param {string} [debugText] - Optional debug text to include in logs
198
- * @returns {Promise}
334
+ * @returns {HashTreeObject[]} list of hash tree objects that were updated as a result of processing the message
199
335
  */
200
336
  private parseMessage;
201
337
  /**
@@ -205,7 +341,16 @@ declare class HashTreeParser {
205
341
  * @param {string} [debugText] - Optional debug text to include in logs
206
342
  * @returns {void}
207
343
  */
208
- handleMessage(message: HashTreeMessage, debugText?: string): Promise<void>;
344
+ handleMessage(message: HashTreeMessage, debugText?: string): void;
345
+ /**
346
+ * Checks if Locus sync latency metrics should be collected for a dataset.
347
+ *
348
+ * @param {string} dataSetName dataset name
349
+ * @param {boolean} [isInitialization=false] whether this is an initialization sync
350
+ * @returns {boolean}
351
+ */
352
+ private shouldCollectSyncMetrics;
353
+ private saveSyncBackoffLatency;
209
354
  /**
210
355
  * Calls the updateInfo callback if there are any updates to report
211
356
  *
@@ -220,6 +365,103 @@ declare class HashTreeParser {
220
365
  * @returns {number} - A weighted backoff time based on the provided configuration, using algorithm supplied by Locus team
221
366
  */
222
367
  private getWeightedBackoffTime;
368
+ /**
369
+ * Returns a copy of a hash tree message restricted to a single dataset, keeping only the
370
+ * requested dataset and the elements belonging to it. Used to strip out datasets that Locus
371
+ * may include in a sync response but that we didn't request (e.g. "unjoined" sharing elements
372
+ * with "main"), which would otherwise be applied once per dataset.
373
+ *
374
+ * @param {HashTreeMessage} message the sync response message
375
+ * @param {string} dataSetName the dataset that was requested
376
+ * @returns {HashTreeMessage} a new message containing only the requested dataset
377
+ */
378
+ private filterMessageToDataSet;
379
+ /**
380
+ * Performs a sync for the given data set.
381
+ *
382
+ * @param {InternalDataSet} dataSet - The data set to sync
383
+ * @param {string} reason - The reason for the sync (used for logging)
384
+ * @param {boolean} [isInitialization] - Whether this is an initialization sync (sends empty leaves data instead of comparing hashes)
385
+ * @returns {Promise<void>}
386
+ */
387
+ private performSync;
388
+ /**
389
+ * Cancels any pending or in-flight syncs for the specified data sets.
390
+ * This removes matching entries from the sync queue and aborts any in-flight sync HTTP requests.
391
+ *
392
+ * @param {string[]} dataSetNames - The names of the data sets to cancel syncs for
393
+ * @returns {void}
394
+ */
395
+ private cancelPendingSyncsForDataSets;
396
+ /**
397
+ * If a syncAllDatasets backoff sleep is in progress, marks the given data sets to be skipped
398
+ * after the sleep completes.
399
+ *
400
+ * @param {string[]} dataSetNames - The names of the data sets to mark
401
+ * @returns {void}
402
+ */
403
+ private markDataSetsForSyncAllBackoffSkip;
404
+ /**
405
+ * Aborts any in-flight sync HTTP requests for the specified data sets.
406
+ *
407
+ * @param {string[]} dataSetNames - The names of the data sets whose syncs should be aborted
408
+ * @returns {void}
409
+ */
410
+ private abortInFlightSyncs;
411
+ /**
412
+ * Enqueues a sync for the given data set. If the data set is already in the queue, the request is ignored.
413
+ * This ensures that all syncs are executed sequentially and no more than 1 sync runs at a time.
414
+ *
415
+ * @param {string} dataSetName - The name of the data set to sync
416
+ * @param {string} reason - The reason for the sync (used for logging)
417
+ * @param {boolean} [isInitialization=false] - Whether this is an initialization sync (uses empty leaves data instead of hash comparison)
418
+ * @returns {void}
419
+ */
420
+ private enqueueSyncForDataset;
421
+ /**
422
+ * Processes the sync queue sequentially. Only one instance of this method runs at a time.
423
+ *
424
+ * @returns {Promise<void>}
425
+ */
426
+ private processSyncQueue;
427
+ /**
428
+ * sets the backoff type for syncAllDatasets calls, which determines the scope of datasets that will be synced after the backoff delay.
429
+ *
430
+ * @param {boolean} onlyLLM - Whether the backoff is for a syncAllDatasets call that is syncing only LLM datasets
431
+ * @returns {void}
432
+ */
433
+ private setSyncAllBackoffType;
434
+ /**
435
+ * Checks if a syncAll backoff is already in progress. If so, upgrades the scope from
436
+ * onlyLLM to all datasets when the new call has a broader scope.
437
+ *
438
+ * @param {boolean} onlyLLM - Whether the current call is for LLM datasets only
439
+ * @returns {boolean} true if a backoff is already pending (caller should return early)
440
+ */
441
+ private tryUpgradePendingBackoff;
442
+ /**
443
+ * Syncs all data sets that have hash trees, one by one in sequence, using the priority order
444
+ * provided by sortByInitPriority().
445
+ *
446
+ * If a call is already waiting in the backoff delay phase, a new call with a broader scope
447
+ * (onlyLLM=false) will upgrade the pending scope, and the dataset list will be computed after
448
+ * the backoff using the upgraded scope. After the backoff, the sync queue handles deduplication
449
+ * so no guard is needed.
450
+ *
451
+ * @param {Object} [options={}] - Options for syncing
452
+ * @param {boolean} [options.onlyLLM=false] - Whether to sync only LLM based data sets
453
+ * @returns {Promise<void>}
454
+ */
455
+ syncAllDatasets(options?: {
456
+ onlyLLM?: boolean;
457
+ }): Promise<void>;
458
+ /**
459
+ * Returns the list of data sets that have hash trees, sorted by the priority order provided by sortByInitPriority().
460
+ *
461
+ * @param {boolean} onlyLLM - Whether to include only LLM based data sets
462
+ * @returns {Array<{name: string, backoff: {maxMs: number, exponent: number}}>} The sorted list of data sets with their backoff configurations
463
+ */
464
+ private getSortedDataSetsWithHashTrees;
223
465
  /**
224
466
  * Runs the sync algorithm for the given data set.
225
467
  *
@@ -227,23 +469,66 @@ declare class HashTreeParser {
227
469
  * @returns {void}
228
470
  */
229
471
  private runSyncAlgorithm;
472
+ /**
473
+ * Resets the heartbeat watchdog timers for the specified data sets. Each data set has its own
474
+ * watchdog timer that monitors whether heartbeats are being received within the expected interval.
475
+ * If a heartbeat is not received for a specific data set within heartbeatIntervalMs plus
476
+ * a backoff-calculated time, the sync algorithm is initiated for that data set
477
+ *
478
+ * @param {Array<DataSet>} receivedDataSets - The data sets from the received message for which watchdog timers should be reset
479
+ * @returns {void}
480
+ */
481
+ private resetHeartbeatWatchdogs;
230
482
  /**
231
483
  * Stops all timers for the data sets to prevent any further sync attempts.
232
484
  * @returns {void}
233
485
  */
234
486
  private stopAllTimers;
487
+ /**
488
+ * Stops the HashTreeParser, preventing it from processing any further messages and clearing all timers.
489
+ * It also clears all the hash trees, so if the parser is resumed later, it will need to do a sync
490
+ * to be up-to-date.
491
+ * @returns {void}
492
+ */
493
+ stop(): void;
494
+ /**
495
+ * Cleans up the HashTreeParser, stopping all timers and clearing all internal state.
496
+ * After calling this, the parser should not be used anymore.
497
+ * @returns {void}
498
+ */
499
+ cleanUp(): void;
500
+ /**
501
+ * Resumes the HashTreeParser that was previously stopped, using a hash tree message.
502
+ * @param {HashTreeMessage} message - The message to resume with, it must contain metadata with visible data sets info
503
+ * @returns {void}
504
+ */
505
+ resumeFromMessage(message: HashTreeMessage): void;
506
+ /**
507
+ * Resumes the HashTreeParser that was previously stopped, using a Locus API response.
508
+ * Unlike resumeFromMessage(), this does not require metadata/dataSets in the input,
509
+ * as it fetches all necessary information from Locus via initializeFromGetLociResponse.
510
+ * @param {LocusDTO} locus - locus object from an API response
511
+ * @returns {Promise}
512
+ */
513
+ resumeFromApiResponse(locus: LocusDTO): Promise<void>;
514
+ private checkForSentinelHttpResponse;
235
515
  /**
236
516
  * Gets the current hashes from the locus for a specific data set.
237
517
  * @param {string} dataSetName
238
- * @returns {string[]}
518
+ * @param {string} currentRootHash
519
+ * @param {Object} [trackingIds] tracking ids for the /hashtree request
520
+ * @param {string} [trackingIds.requestTrackingId] tracking id forced onto the /hashtree HTTP request header (kept distinct from the /sync request's tracking id)
521
+ * @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
522
+ * @returns {Object|null} An object containing the hashes and leaf count, or null if the hashes match and no sync is needed
239
523
  */
240
524
  private getHashesFromLocus;
241
525
  /**
242
526
  * Sends a sync request to Locus for the specified data set.
243
527
  *
244
528
  * @param {InternalDataSet} dataSet The data set to sync.
245
- * @param {Record<number, LeafDataItem[]>} mismatchedLeavesData The mismatched leaves data to include in the sync request.
246
- * @returns {Promise<HashTreeMessage|null>}
529
+ * @param {Object} options Either `{ isInitialization: true }` for init syncs (uses leafCount=1 with empty leaf data) or `{ mismatchedLeavesData }` for normal syncs.
530
+ * @param {string} [trackingId] tracking id
531
+ * @returns {Promise<HashTreeMessage | null>}
247
532
  */
248
533
  private sendSyncRequestToLocus;
249
534
  }
@@ -8,6 +8,8 @@ export declare const ObjectType: {
8
8
  readonly fullState: "fullstate";
9
9
  readonly links: "links";
10
10
  readonly control: "controlentry";
11
+ readonly metadata: "metadata";
12
+ readonly embeddedApp: "embeddedapp";
11
13
  };
12
14
  export type ObjectType = Enum<typeof ObjectType>;
13
15
  export declare const ObjectTypeToLocusKeyMap: {
@@ -18,6 +20,7 @@ export declare const ObjectTypeToLocusKeyMap: {
18
20
  participant: string;
19
21
  mediashare: string;
20
22
  controlentry: string;
23
+ embeddedapp: string;
21
24
  };
22
25
  export interface HtMeta {
23
26
  elementId: {
@@ -5,6 +5,12 @@ import { HashTreeObject } from './types';
5
5
  * @returns {boolean} True if the object is of type "self", false otherwise
6
6
  */
7
7
  export declare function isSelf(object: HashTreeObject): boolean;
8
+ /**
9
+ * Checks if the given hash tree object is of type "Metadata"
10
+ * @param {HashTreeObject} object object to check
11
+ * @returns {boolean} True if the object is of type "Metadata", false otherwise
12
+ */
13
+ export declare function isMetadata(object: HashTreeObject): boolean;
8
14
  /**
9
15
  * Analyzes given part of Locus DTO recursively and delete any nested objects that have their own htMeta
10
16
  *
@@ -14,3 +20,21 @@ export declare function isSelf(object: HashTreeObject): boolean;
14
20
  * @returns {void}
15
21
  */
16
22
  export declare const deleteNestedObjectsWithHtMeta: (currentLocusPart: any, parent?: any, currentKey?: string | number) => void;
23
+ /**
24
+ * Reorders items so that those matching the given priority list come first (in priority order),
25
+ * followed by everything else in their original order.
26
+ *
27
+ * @param {Array<T>} items - The items to reorder
28
+ * @param {string[]} priority - Ordered list of names that should come first
29
+ * @returns {Array<T>} A new array with prioritized items first
30
+ */
31
+ export declare function sortByInitPriority<T extends {
32
+ name: string;
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,10 @@ 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';
25
+ export { getAIEnablementApprover } from './aiEnableRequest/utils';
@@ -0,0 +1,5 @@
1
+ declare const DATA_CHANNEL_AUTH_HEADER = "Data-Channel-Auth-Token";
2
+ declare const MAX_RETRY = 1;
3
+ declare const RETRY_INTERVAL = 2000;
4
+ declare const RETRY_KEY = "_dcRetryKey";
5
+ export { DATA_CHANNEL_AUTH_HEADER, MAX_RETRY, RETRY_INTERVAL, RETRY_KEY };
@@ -0,0 +1,43 @@
1
+ /*!
2
+ * Copyright (c) 2015-2026 Cisco Systems, Inc. See LICENSE file.
3
+ */
4
+ import { Interceptor } from '@webex/http-core';
5
+ /**
6
+ * @class
7
+ */
8
+ export default class DataChannelAuthTokenInterceptor extends Interceptor {
9
+ private _refreshDataChannelToken;
10
+ private _isDataChannelTokenEnabled;
11
+ constructor(options: any);
12
+ /**
13
+ * @returns {DataChannelAuthTokenInterceptor}
14
+ */
15
+ static create(): DataChannelAuthTokenInterceptor;
16
+ private getRetryKey;
17
+ private getHeader;
18
+ /**
19
+ * Intercepts outgoing requests and refreshes the Data-Channel-Auth-Token
20
+ * if the current JWT token is expired before the request is sent.
21
+ *
22
+ * @param {Object} options - The original request options.
23
+ * @returns {Promise<Object>} Updated request options with refreshed token if needed.
24
+ */
25
+ onRequest(options: any): Promise<any>;
26
+ /**
27
+ * Intercept responses and, on 401/403 with `Data-Channel-Auth-Token` header,
28
+ * attempt to refresh the data channel token and retry the original request once.
29
+ *
30
+ * @param {Object} options
31
+ * @param {Object} reason
32
+ * @returns {Promise<HttpResponse>}
33
+ */
34
+ onResponseError(options: any, reason: any): Promise<unknown>;
35
+ /**
36
+ * Retry the failed data channel request after a delay.
37
+ * Refreshes the Data-Channel-Auth-Token and re-sends the original request.
38
+ *
39
+ * @param {Object} options - Original request options.
40
+ * @returns {Promise<HttpResponse>} - Resolves on successful retry.
41
+ */
42
+ refreshTokenAndRetryWithDelay(options: any): Promise<unknown>;
43
+ }
@@ -1,3 +1,4 @@
1
1
  import LocusRetryStatusInterceptor from './locusRetry';
2
2
  import LocusRouteTokenInterceptor from './locusRouteToken';
3
- export { LocusRetryStatusInterceptor, LocusRouteTokenInterceptor };
3
+ import DataChannelAuthTokenInterceptor from './dataChannelAuthToken';
4
+ export { LocusRetryStatusInterceptor, LocusRouteTokenInterceptor, DataChannelAuthTokenInterceptor };
@@ -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 @@
1
+ export declare const isJwtTokenExpired: (token: string) => boolean;
@@ -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
+ };