@webex/plugin-meetings 3.12.0 → 3.13.0-next.10
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.
- package/.sdd/manifest.json +1312 -0
- package/.sdd/templates/.source.json +30 -0
- package/.sdd/templates/component-repo/module-docs/module-spec-quality.md +111 -0
- package/.sdd/templates/component-repo/module-docs/module-spec.template.md +321 -0
- package/.sdd/templates/component-repo/reference-docs/adr/_adr-example.md +59 -0
- package/.sdd/templates/component-repo/reference-docs/patterns/_pattern-example.md +49 -0
- package/.sdd/templates/component-repo/reference-docs/rules/_rule-example.md +42 -0
- package/.sdd/templates/component-repo/standing-docs/AGENTS.template.md +120 -0
- package/.sdd/templates/component-repo/standing-docs/ARCHITECTURE.template.md +206 -0
- package/.sdd/templates/component-repo/standing-docs/CONTRACTS.template.md +90 -0
- package/.sdd/templates/component-repo/standing-docs/DATA_MODEL.template.md +68 -0
- package/.sdd/templates/component-repo/standing-docs/GETTING_STARTED.template.md +111 -0
- package/.sdd/templates/component-repo/standing-docs/GLOSSARY.template.md +57 -0
- package/.sdd/templates/component-repo/standing-docs/REVIEW_CHECKLIST.template.md +69 -0
- package/.sdd/templates/component-repo/standing-docs/RULES.template.md +96 -0
- package/.sdd/templates/component-repo/standing-docs/SECURITY.template.md +84 -0
- package/.sdd/templates/component-repo/standing-docs/SERVICE_STATE.template.md +82 -0
- package/.sdd/templates/component-repo/standing-docs/SPEC_INDEX.template.md +94 -0
- package/.sdd/templates/component-repo/standing-docs/TEST_INDEX.template.md +64 -0
- package/.sdd/templates/component-repo/template-map.json +112 -0
- package/AGENTS.md +135 -0
- package/ai-docs/ARCHITECTURE.md +208 -0
- package/ai-docs/CONTRACTS.md +267 -0
- package/ai-docs/DATA_MODEL.md +64 -0
- package/ai-docs/GETTING_STARTED.md +73 -0
- package/ai-docs/GLOSSARY.md +56 -0
- package/ai-docs/REVIEW_CHECKLIST.md +45 -0
- package/ai-docs/RULES.md +79 -0
- package/ai-docs/SECURITY.md +74 -0
- package/ai-docs/SERVICE_STATE.md +59 -0
- package/ai-docs/SPEC_INDEX.md +85 -0
- package/ai-docs/TEST_INDEX.md +45 -0
- package/ai-docs/adr/0001-migrate-existing-docs-into-sdd.md +61 -0
- package/ai-docs/patterns/defensive-error-propagation.md +55 -0
- package/ai-docs/patterns/event-scope-emission.md +46 -0
- package/ai-docs/patterns/source-to-test-path-mirroring.md +45 -0
- package/ai-docs/patterns/stateless-plugin-request-classes.md +53 -0
- package/ai-docs/patterns/typed-constants-and-enum-values.md +47 -0
- package/assets/README.md +28 -0
- package/assets/e2ee-0.0.1.js +2 -0
- package/assets/e2ee-0.0.1.wasm +0 -0
- package/babel.config.js +17 -1
- package/dist/aiEnableRequest/index.js +15 -2
- package/dist/aiEnableRequest/index.js.map +1 -1
- package/dist/annotation/index.js +55 -19
- package/dist/annotation/index.js.map +1 -1
- package/dist/assets/e2ee-0.0.1.js +2 -0
- package/dist/assets/e2ee-0.0.1.wasm +0 -0
- package/dist/breakouts/breakout.js +8 -3
- package/dist/breakouts/breakout.js.map +1 -1
- package/dist/breakouts/events.js +29 -14
- package/dist/breakouts/events.js.map +1 -1
- package/dist/breakouts/index.js +128 -7
- package/dist/breakouts/index.js.map +1 -1
- package/dist/common/errors/webex-errors.js +54 -5
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/common/wasm-loader.js +174 -0
- package/dist/common/wasm-loader.js.map +1 -0
- package/dist/config.js +5 -2
- package/dist/config.js.map +1 -1
- package/dist/constants.js +39 -11
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/constants.js +11 -1
- package/dist/controls-options-manager/constants.js.map +1 -1
- package/dist/controls-options-manager/index.js +67 -29
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/controls-options-manager/util.js +91 -0
- package/dist/controls-options-manager/util.js.map +1 -1
- package/dist/e2ee/E2eeManager.js +91 -0
- package/dist/e2ee/E2eeManager.js.map +1 -0
- package/dist/e2ee/E2eeSignaling.js +200 -0
- package/dist/e2ee/E2eeSignaling.js.map +1 -0
- package/dist/e2ee/MediaEncryptionService.js +75 -0
- package/dist/e2ee/MediaEncryptionService.js.map +1 -0
- package/dist/e2ee/mls.js +558 -0
- package/dist/e2ee/mls.js.map +1 -0
- package/dist/e2ee/types.js +59 -0
- package/dist/e2ee/types.js.map +1 -0
- package/dist/e2ee/wasm.d.js +7 -0
- package/dist/e2ee/wasm.d.js.map +1 -0
- package/dist/hashTree/constants.js +13 -1
- package/dist/hashTree/constants.js.map +1 -1
- package/dist/hashTree/hashTreeParser.js +1245 -404
- package/dist/hashTree/hashTreeParser.js.map +1 -1
- package/dist/hashTree/utils.js +42 -0
- package/dist/hashTree/utils.js.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/interceptors/dataChannelAuthToken.js +58 -16
- package/dist/interceptors/dataChannelAuthToken.js.map +1 -1
- package/dist/interceptors/locusRetry.js +24 -9
- package/dist/interceptors/locusRetry.js.map +1 -1
- package/dist/interpretation/index.js +55 -12
- package/dist/interpretation/index.js.map +1 -1
- package/dist/interpretation/interpretation.types.js +7 -0
- package/dist/interpretation/interpretation.types.js.map +1 -0
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/controlsUtils.js +4 -1
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/index.js +914 -196
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js +36 -5
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/types.js +20 -0
- package/dist/locus-info/types.js.map +1 -1
- package/dist/media/MediaConnectionAwaiter.js +229 -166
- package/dist/media/MediaConnectionAwaiter.js.map +1 -1
- package/dist/media/index.js +8 -2
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.js +4 -5
- package/dist/media/properties.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js +5 -1
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +1931 -887
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/locusMediaRequest.js +229 -82
- package/dist/meeting/locusMediaRequest.js.map +1 -1
- package/dist/meeting/muteState.js +10 -1
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js +5 -2
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/util.js +42 -3
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting/voicea-meeting.js +2 -1
- package/dist/meeting/voicea-meeting.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +12 -5
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meetings/index.js +342 -129
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/meetings.types.js +6 -1
- package/dist/meetings/meetings.types.js.map +1 -1
- package/dist/meetings/request.js +39 -0
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +116 -18
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js +10 -0
- package/dist/member/index.js.map +1 -1
- package/dist/member/types.js.map +1 -1
- package/dist/member/util.js +30 -0
- package/dist/member/util.js.map +1 -1
- package/dist/members/index.js +101 -43
- package/dist/members/index.js.map +1 -1
- package/dist/members/util.js +8 -1
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/constants.js +11 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/multistream/codec/constants.js +63 -0
- package/dist/multistream/codec/constants.js.map +1 -0
- package/dist/multistream/mediaRequestManager.js +62 -15
- package/dist/multistream/mediaRequestManager.js.map +1 -1
- package/dist/multistream/receiveSlot.js +9 -0
- package/dist/multistream/receiveSlot.js.map +1 -1
- package/dist/multistream/remoteMediaManager.js +32 -4
- package/dist/multistream/remoteMediaManager.js.map +1 -1
- package/dist/multistream/sendSlotManager.js +127 -3
- package/dist/multistream/sendSlotManager.js.map +1 -1
- package/dist/reachability/clusterReachability.js.map +1 -1
- package/dist/reachability/index.js +121 -83
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/reachability.types.js +2 -0
- package/dist/reachability/reachability.types.js.map +1 -1
- package/dist/reachability/util.js +45 -0
- package/dist/reachability/util.js.map +1 -1
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/recording-controller/index.js +1 -3
- package/dist/recording-controller/index.js.map +1 -1
- package/dist/roap/turnDiscovery.js +8 -1
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/types/annotation/index.d.ts +19 -0
- package/dist/types/common/errors/webex-errors.d.ts +36 -2
- package/dist/types/common/wasm-loader.d.ts +55 -0
- package/dist/types/config.d.ts +5 -2
- package/dist/types/constants.d.ts +15 -2
- package/dist/types/controls-options-manager/constants.d.ts +6 -1
- package/dist/types/controls-options-manager/index.d.ts +16 -0
- package/dist/types/e2ee/E2eeManager.d.ts +23 -0
- package/dist/types/e2ee/E2eeSignaling.d.ts +94 -0
- package/dist/types/e2ee/MediaEncryptionService.d.ts +27 -0
- package/dist/types/e2ee/mls.d.ts +191 -0
- package/dist/types/e2ee/types.d.ts +104 -0
- package/dist/types/hashTree/constants.d.ts +2 -0
- package/dist/types/hashTree/hashTreeParser.d.ts +230 -18
- package/dist/types/hashTree/utils.d.ts +18 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/interceptors/locusRetry.d.ts +4 -4
- package/dist/types/interpretation/interpretation.types.d.ts +10 -0
- package/dist/types/locus-info/index.d.ts +151 -15
- package/dist/types/locus-info/infoUtils.d.ts +8 -0
- package/dist/types/locus-info/types.d.ts +28 -1
- package/dist/types/media/MediaConnectionAwaiter.d.ts +66 -49
- package/dist/types/media/properties.d.ts +6 -2
- package/dist/types/meeting/in-meeting-actions.d.ts +4 -0
- package/dist/types/meeting/index.d.ts +247 -13
- package/dist/types/meeting/locusMediaRequest.d.ts +12 -0
- package/dist/types/meeting/request.d.ts +1 -0
- package/dist/types/meeting/util.d.ts +12 -1
- package/dist/types/meeting-info/meeting-info-v2.d.ts +1 -0
- package/dist/types/meetings/index.d.ts +44 -19
- package/dist/types/meetings/meetings.types.d.ts +15 -0
- package/dist/types/meetings/request.d.ts +14 -0
- package/dist/types/member/index.d.ts +1 -0
- package/dist/types/member/types.d.ts +1 -0
- package/dist/types/member/util.d.ts +9 -0
- package/dist/types/members/index.d.ts +15 -2
- package/dist/types/members/util.d.ts +1 -5
- package/dist/types/metrics/constants.d.ts +10 -0
- package/dist/types/multistream/codec/constants.d.ts +7 -0
- package/dist/types/multistream/mediaRequestManager.d.ts +22 -5
- package/dist/types/multistream/remoteMediaManager.d.ts +18 -0
- package/dist/types/multistream/sendSlotManager.d.ts +28 -2
- package/dist/types/reachability/clusterReachability.d.ts +3 -3
- package/dist/types/reachability/index.d.ts +10 -3
- package/dist/types/reachability/reachability.types.d.ts +7 -0
- package/dist/types/reachability/util.d.ts +17 -0
- package/dist/types/reactions/reactions.type.d.ts +3 -0
- package/dist/webinar/index.js +539 -245
- package/dist/webinar/index.js.map +1 -1
- package/package.json +26 -24
- package/src/aiEnableRequest/ai-docs/ai-enable-request-spec.md +223 -0
- package/src/aiEnableRequest/index.ts +16 -0
- package/src/annotation/ai-docs/annotation-spec.md +236 -0
- package/src/annotation/index.ts +61 -29
- package/src/breakouts/ai-docs/breakouts-spec.md +324 -0
- package/src/breakouts/breakout.ts +3 -1
- package/src/breakouts/events.ts +33 -11
- package/src/breakouts/index.ts +145 -3
- package/src/common/errors/webex-errors.ts +56 -3
- package/src/common/wasm-loader.ts +124 -0
- package/src/config.ts +9 -3
- package/src/constants.ts +23 -4
- package/src/controls-options-manager/ai-docs/controls-options-manager-spec.md +243 -0
- package/src/controls-options-manager/constants.ts +14 -1
- package/src/controls-options-manager/index.ts +87 -28
- package/src/controls-options-manager/util.ts +81 -1
- package/src/e2ee/E2eeManager.ts +58 -0
- package/src/e2ee/E2eeSignaling.ts +215 -0
- package/src/e2ee/MediaEncryptionService.ts +41 -0
- package/src/e2ee/mls.ts +548 -0
- package/src/e2ee/types.ts +114 -0
- package/src/e2ee/wasm.d.ts +153 -0
- package/src/hashTree/ai-docs/hash-tree-spec.md +267 -0
- package/src/hashTree/constants.ts +16 -0
- package/src/hashTree/hashTreeParser.ts +1021 -214
- package/src/hashTree/utils.ts +36 -0
- package/src/index.ts +7 -0
- package/src/interceptors/ai-docs/interceptors-spec.md +247 -0
- package/src/interceptors/dataChannelAuthToken.ts +59 -12
- package/src/interceptors/locusRetry.ts +26 -5
- package/src/interpretation/ai-docs/interpretation-spec.md +256 -0
- package/src/interpretation/index.ts +65 -10
- package/src/interpretation/interpretation.types.ts +11 -0
- package/src/locus-info/ai-docs/locus-info-spec.md +293 -0
- package/src/locus-info/controlsUtils.ts +3 -1
- package/src/locus-info/index.ts +907 -184
- package/src/locus-info/infoUtils.ts +41 -6
- package/src/locus-info/types.ts +33 -1
- package/src/media/MediaConnectionAwaiter.ts +229 -196
- package/src/media/ai-docs/media-spec.md +267 -0
- package/src/media/index.ts +10 -1
- package/src/media/properties.ts +8 -3
- package/src/meeting/ai-docs/meeting-spec.md +404 -0
- package/src/meeting/in-meeting-actions.ts +8 -0
- package/src/meeting/index.ts +1237 -254
- package/src/meeting/locusMediaRequest.ts +106 -6
- package/src/meeting/muteState.ts +10 -1
- package/src/meeting/request.ts +11 -0
- package/src/meeting/util.ts +53 -8
- package/src/meeting/voicea-meeting.ts +1 -1
- package/src/meeting-info/ai-docs/meeting-info-spec.md +261 -0
- package/src/meeting-info/meeting-info-v2.ts +11 -4
- package/src/meetings/ai-docs/meetings-spec.md +298 -0
- package/src/meetings/index.ts +242 -80
- package/src/meetings/meetings.types.ts +19 -0
- package/src/meetings/request.ts +43 -0
- package/src/meetings/util.ts +117 -4
- package/src/member/ai-docs/member-spec.md +196 -0
- package/src/member/index.ts +10 -0
- package/src/member/types.ts +1 -0
- package/src/member/util.ts +29 -0
- package/src/members/ai-docs/members-spec.md +256 -0
- package/src/members/index.ts +70 -7
- package/src/members/util.ts +12 -4
- package/src/metrics/ai-docs/metrics-spec.md +185 -0
- package/src/metrics/constants.ts +11 -0
- package/src/multistream/ai-docs/multistream-spec.md +295 -0
- package/src/multistream/codec/constants.ts +58 -0
- package/src/multistream/mediaRequestManager.ts +119 -28
- package/src/multistream/receiveSlot.ts +18 -0
- package/src/multistream/remoteMediaManager.ts +23 -1
- package/src/multistream/sendSlotManager.ts +112 -4
- package/src/personal-meeting-room/ai-docs/personal-meeting-room-spec.md +234 -0
- package/src/reachability/ai-docs/reachability-spec.md +261 -0
- package/src/reachability/clusterReachability.ts +3 -2
- package/src/reachability/index.ts +47 -16
- package/src/reachability/reachability.types.ts +11 -0
- package/src/reachability/util.ts +36 -0
- package/src/reactions/ai-docs/reactions-spec.md +198 -0
- package/src/reactions/reactions.type.ts +3 -0
- package/src/reconnection-manager/ai-docs/reconnection-manager-spec.md +272 -0
- package/src/recording-controller/ai-docs/recording-controller-spec.md +223 -0
- package/src/recording-controller/index.ts +1 -2
- package/src/roap/ai-docs/roap-spec.md +241 -0
- package/src/roap/turnDiscovery.ts +9 -1
- package/src/webinar/ai-docs/webinar-spec.md +243 -0
- package/src/webinar/index.ts +333 -73
- package/test/unit/spec/aiEnableRequest/index.ts +86 -0
- package/test/unit/spec/annotation/index.ts +214 -182
- package/test/unit/spec/breakouts/breakout.ts +9 -3
- package/test/unit/spec/breakouts/events.ts +120 -2
- package/test/unit/spec/breakouts/index.ts +336 -15
- package/test/unit/spec/common/errors/webex-errors.ts +78 -0
- package/test/unit/spec/common/wasm-loader.ts +171 -0
- package/test/unit/spec/controls-options-manager/index.js +244 -29
- package/test/unit/spec/controls-options-manager/util.js +165 -0
- package/test/unit/spec/e2ee/E2eeManager.ts +82 -0
- package/test/unit/spec/e2ee/E2eeSignaling.ts +172 -0
- package/test/unit/spec/e2ee/MediaEncryptionService.ts +43 -0
- package/test/unit/spec/e2ee/mls.ts +765 -0
- package/test/unit/spec/hashTree/hashTreeParser.ts +3126 -238
- package/test/unit/spec/hashTree/utils.ts +125 -1
- package/test/unit/spec/interceptors/dataChannelAuthToken.ts +179 -1
- package/test/unit/spec/interceptors/locusRetry.ts +234 -5
- package/test/unit/spec/interpretation/index.ts +119 -4
- package/test/unit/spec/locus-info/controlsUtils.js +172 -57
- package/test/unit/spec/locus-info/index.js +1880 -136
- package/test/unit/spec/locus-info/infoUtils.js +184 -1
- package/test/unit/spec/media/MediaConnectionAwaiter.ts +479 -17
- package/test/unit/spec/media/index.ts +92 -0
- package/test/unit/spec/media/properties.ts +26 -26
- package/test/unit/spec/meeting/in-meeting-actions.ts +4 -0
- package/test/unit/spec/meeting/index.js +3697 -501
- package/test/unit/spec/meeting/locusMediaRequest.ts +406 -4
- package/test/unit/spec/meeting/muteState.js +81 -0
- package/test/unit/spec/meeting/request.js +12 -0
- package/test/unit/spec/meeting/utils.js +206 -16
- package/test/unit/spec/meeting/voicea-meeting.ts +85 -1
- package/test/unit/spec/meeting-info/index.js +2 -3
- package/test/unit/spec/meeting-info/meetinginfov2.js +88 -11
- package/test/unit/spec/meetings/index.js +606 -53
- package/test/unit/spec/meetings/request.js +141 -0
- package/test/unit/spec/meetings/utils.js +402 -51
- package/test/unit/spec/member/index.js +7 -0
- package/test/unit/spec/member/util.js +89 -0
- package/test/unit/spec/members/index.js +216 -0
- package/test/unit/spec/members/request.js +37 -1
- package/test/unit/spec/members/utils.js +63 -0
- package/test/unit/spec/multistream/mediaRequestManager.ts +501 -37
- package/test/unit/spec/multistream/remoteMediaManager.ts +46 -0
- package/test/unit/spec/multistream/sendSlotManager.ts +165 -38
- package/test/unit/spec/reachability/index.ts +128 -46
- package/test/unit/spec/reachability/util.ts +31 -0
- package/test/unit/spec/recording-controller/index.js +9 -8
- package/test/unit/spec/roap/turnDiscovery.ts +20 -0
- package/test/unit/spec/webinar/index.ts +982 -328
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@webex/internal-plugin-identity';
|
|
1
2
|
import Meetings from './meetings';
|
|
2
3
|
import CaptchaError from './common/errors/captcha-error';
|
|
3
4
|
import IntentToJoinError from './common/errors/intent-to-join';
|
|
@@ -16,6 +17,9 @@ export * as REACTIONS from './reactions/reactions';
|
|
|
16
17
|
export * as sdkAnnotationTypes from './annotation/annotation.types';
|
|
17
18
|
export * as MeetingInfoV2 from './meeting-info/meeting-info-v2';
|
|
18
19
|
export { type Reaction } from './reactions/reactions.type';
|
|
20
|
+
export { SitePreferenceSelectOption } from './meetings/meetings.types';
|
|
21
|
+
export type { FetchSitePreferencesMeViaSiteOptions, SitePreferencesResponse, } from './meetings/meetings.types';
|
|
22
|
+
export type { Interpreter, InterpreterUsingResource } from './interpretation/interpretation.types';
|
|
19
23
|
export { CaptchaError, IntentToJoinError, JoinMeetingError, PasswordError, PermissionError, ReclaimHostIsHostAlreadyError, ReclaimHostNotAllowedError, ReclaimHostNotSupportedError, ReclaimHostEmptyWrongKeyError, Meeting, MeetingInfoUtil, JoinWebinarError, SdpResponseTimeoutError, };
|
|
20
24
|
export { RemoteMedia } from './multistream/remoteMedia';
|
|
21
25
|
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
|
-
*
|
|
15
|
-
* @param {
|
|
16
|
-
* @
|
|
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
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import EventsScope from '../common/events/events-scope';
|
|
2
2
|
import { LOCUSEVENT } from '../constants';
|
|
3
|
-
import HashTreeParser, { DataSet, HashTreeMessage, Metadata } from '../hashTree/hashTreeParser';
|
|
3
|
+
import HashTreeParser, { DataSet, HashTreeMessage, Metadata, SyncLatencyTracker } from '../hashTree/hashTreeParser';
|
|
4
4
|
import { HashTreeObject } from '../hashTree/types';
|
|
5
5
|
import { Links, LocusDTO } from './types';
|
|
6
|
+
import MeetingCollection from '../meetings/collection';
|
|
6
7
|
export type LocusLLMEvent = {
|
|
8
|
+
trackingId?: string;
|
|
7
9
|
data: {
|
|
8
10
|
eventType: typeof LOCUSEVENT.HASH_TREE_DATA_UPDATED;
|
|
9
11
|
stateElementsMessage: HashTreeMessage;
|
|
@@ -13,7 +15,24 @@ export type LocusApiResponseBody = {
|
|
|
13
15
|
dataSets?: DataSet[];
|
|
14
16
|
locus: LocusDTO;
|
|
15
17
|
metadata?: Metadata;
|
|
18
|
+
} | LocusDTO;
|
|
19
|
+
export type HashTreeParserEntry = {
|
|
20
|
+
parser: HashTreeParser;
|
|
21
|
+
replacedAt?: string;
|
|
22
|
+
initializedFromHashTree: boolean;
|
|
16
23
|
};
|
|
24
|
+
export type LocusInfoCallbacks = {
|
|
25
|
+
updateMeeting: (object: any) => void;
|
|
26
|
+
syncLatencyTracker?: SyncLatencyTracker;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Finds a meeting for a given hash tree message.
|
|
30
|
+
*
|
|
31
|
+
* @param {HashTreeMessage} message - The hash tree message to find the meeting for
|
|
32
|
+
* @param {MeetingCollection} meetingCollection - The collection of meetings to search
|
|
33
|
+
* @returns {any} The meeting if found, otherwise undefined
|
|
34
|
+
*/
|
|
35
|
+
export declare function findMeetingForHashTreeMessage(message: HashTreeMessage | undefined, meetingCollection: MeetingCollection): any;
|
|
17
36
|
/**
|
|
18
37
|
* Creates a locus object from the objects received in a hash tree message. It usually will be
|
|
19
38
|
* incomplete, because hash tree messages only contain the parts of locus that have changed,
|
|
@@ -38,7 +57,6 @@ export default class LocusInfo extends EventsScope {
|
|
|
38
57
|
locusParser: any;
|
|
39
58
|
meetingId: any;
|
|
40
59
|
parsedLocus: any;
|
|
41
|
-
updateMeeting: any;
|
|
42
60
|
webex: any;
|
|
43
61
|
aclUrl: any;
|
|
44
62
|
baseSequence: any;
|
|
@@ -59,17 +77,26 @@ export default class LocusInfo extends EventsScope {
|
|
|
59
77
|
links?: Links;
|
|
60
78
|
mainSessionLocusCache: any;
|
|
61
79
|
self: any;
|
|
62
|
-
|
|
80
|
+
hashTreeParsers: Map<string, HashTreeParserEntry>;
|
|
63
81
|
hashTreeObjectId2ParticipantId: Map<number, string>;
|
|
64
82
|
classicVsHashTreeMismatchMetricCounter: number;
|
|
83
|
+
private callbacks;
|
|
84
|
+
private destroyMeetingSuspended;
|
|
65
85
|
/**
|
|
66
86
|
* Constructor
|
|
67
|
-
* @param {
|
|
87
|
+
* @param {Object} callbacks callbacks used by LocusInfo
|
|
88
|
+
* @param {function} callbacks.updateMeeting callback to update the meeting object from an object
|
|
68
89
|
* @param {object} webex
|
|
69
90
|
* @param {string} meetingId
|
|
70
91
|
* @returns {undefined}
|
|
71
92
|
*/
|
|
72
|
-
constructor(
|
|
93
|
+
constructor(callbacks: LocusInfoCallbacks, webex: any, meetingId: any);
|
|
94
|
+
/**
|
|
95
|
+
* Whether this meeting uses hash tree based Locus (as opposed to a classic, delta based Locus).
|
|
96
|
+
*
|
|
97
|
+
* @returns {boolean}
|
|
98
|
+
*/
|
|
99
|
+
isUsingHashTrees(): boolean;
|
|
73
100
|
/**
|
|
74
101
|
* Does a Locus sync. It tries to get the latest delta DTO or if it can't, it falls back to getting the full Locus DTO.
|
|
75
102
|
* WARNING: This function must not be used for hash tree based Locus meetings.
|
|
@@ -77,9 +104,41 @@ export default class LocusInfo extends EventsScope {
|
|
|
77
104
|
* @param {Meeting} meeting
|
|
78
105
|
* @param {boolean} isLocusUrlChanged
|
|
79
106
|
* @param {Locus} locus
|
|
80
|
-
* @
|
|
107
|
+
* @param {Object} [options]
|
|
108
|
+
* @param {boolean} [options.destroyOnTransientFailure=true] controls what happens on a *transient*
|
|
109
|
+
* sync failure (a terminal failure, e.g. a 403 meaning the meeting has ended, always destroys
|
|
110
|
+
* the meeting regardless of this flag). When true, a transient failure destroys the meeting and
|
|
111
|
+
* the returned promise still resolves. When false, the meeting is preserved and the returned
|
|
112
|
+
* promise rejects so the caller can retry.
|
|
113
|
+
* @returns {Promise} resolves once the fetched DTO has been applied; see destroyOnTransientFailure
|
|
114
|
+
* for the failure behavior
|
|
81
115
|
*/
|
|
82
116
|
private doLocusSync;
|
|
117
|
+
/**
|
|
118
|
+
* Syncs this meeting's Locus state (e.g. after a network reconnection), routing to whichever
|
|
119
|
+
* mechanism the meeting uses (a meeting only ever uses one): hash tree datasets via
|
|
120
|
+
* syncAllHashTreeDatasets() or a standalone Locus DTO fetch for classic meetings.
|
|
121
|
+
* A transient failure preserves the meeting (so the caller can retry); only a terminal failure
|
|
122
|
+
* (e.g. a 403 meaning the meeting has ended) destroys it.
|
|
123
|
+
*
|
|
124
|
+
* The classic path is only needed when Meetings#syncMeetings() can't do its usual
|
|
125
|
+
* getActiveMeetings() fetch (e.g. unverified guests, for whom Locus rejects that call); signed-in
|
|
126
|
+
* users resync classic meetings via getActiveMeetings() and pass canSyncClassicLocus as false.
|
|
127
|
+
*
|
|
128
|
+
* @param {Meeting} meeting
|
|
129
|
+
* @param {Object} options
|
|
130
|
+
* @param {boolean} options.canSyncClassicLocus - whether this sync is allowed to fetch a
|
|
131
|
+
* standalone Locus DTO for classic meetings
|
|
132
|
+
* @param {boolean} options.canSyncHashTree - whether this sync is allowed to sync hash tree
|
|
133
|
+
* datasets for hash tree based meetings
|
|
134
|
+
* @returns {Promise<void>} resolves once the sync (hash tree or classic) completes; for the
|
|
135
|
+
* classic path it rejects only on a transient failure, so the caller can retry (a terminal
|
|
136
|
+
* failure destroys the meeting and resolves)
|
|
137
|
+
*/
|
|
138
|
+
sync(meeting: any, { canSyncClassicLocus, canSyncHashTree }: {
|
|
139
|
+
canSyncClassicLocus: boolean;
|
|
140
|
+
canSyncHashTree: boolean;
|
|
141
|
+
}): Promise<void>;
|
|
83
142
|
/**
|
|
84
143
|
* Apply locus delta data to meeting
|
|
85
144
|
* @param {string} action Locus delta action
|
|
@@ -104,13 +163,24 @@ export default class LocusInfo extends EventsScope {
|
|
|
104
163
|
*/
|
|
105
164
|
init(locus?: any): void;
|
|
106
165
|
/**
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
* @returns {
|
|
166
|
+
* Whether we expect to receive updates over the LLM connection. This is used by hash tree parsers
|
|
167
|
+
* to decide whether to arm heartbeat watchdog timers for LLM data sets.
|
|
168
|
+
* @returns {boolean}
|
|
169
|
+
*/
|
|
170
|
+
private isLlmExpected;
|
|
171
|
+
/**
|
|
172
|
+
* Creates a HashTreeParser instance for a given locusUrl and stores it in the map.
|
|
173
|
+
* @param {Object} params
|
|
174
|
+
* @param {string} params.locusUrl - the locus URL used as the map key
|
|
175
|
+
* @param {Object} params.initialLocus - initial locus data
|
|
176
|
+
* @param {Object} params.metadata - hash tree metadata
|
|
177
|
+
* @param {string} params.replacedAt - timestamp from Locus indicating when the replacement happened
|
|
178
|
+
* @returns {HashTreeParser} the newly created parser
|
|
110
179
|
*/
|
|
111
180
|
private createHashTreeParser;
|
|
112
181
|
/**
|
|
113
182
|
* @param {Object} data - data to initialize locus info with. It may be from a join or GET /loci response or from a Mercury event that triggers a creation of meeting object
|
|
183
|
+
* @param {Function} [onLocusSynced] - optional callback that will be called at the end of initial setup, when locus info is fully synced. It will be called with the full locus snapshot as an argument (which may be null if we haven't received any full locus DTOs during the initial setup, for example in case we receive only hash tree messages without full locus DTOs)
|
|
114
184
|
* @returns {undefined}
|
|
115
185
|
* @memberof LocusInfo
|
|
116
186
|
*/
|
|
@@ -126,7 +196,13 @@ export default class LocusInfo extends EventsScope {
|
|
|
126
196
|
} | {
|
|
127
197
|
trigger: 'get-loci-response';
|
|
128
198
|
locus?: LocusDTO;
|
|
129
|
-
}): Promise<void>;
|
|
199
|
+
}, onLocusSynced?: (locus: LocusDTO) => void): Promise<void>;
|
|
200
|
+
/**
|
|
201
|
+
* Builds a full locus DTO snapshot from current internal locus state.
|
|
202
|
+
*
|
|
203
|
+
* @returns {LocusDTO}
|
|
204
|
+
*/
|
|
205
|
+
private getCurrentLocusSnapshot;
|
|
130
206
|
/**
|
|
131
207
|
* Handles HTTP response from Locus API call.
|
|
132
208
|
* @param {Meeting} meeting meeting object
|
|
@@ -135,7 +211,6 @@ export default class LocusInfo extends EventsScope {
|
|
|
135
211
|
*/
|
|
136
212
|
handleLocusAPIResponse(meeting: any, responseBody: LocusApiResponseBody): void;
|
|
137
213
|
/**
|
|
138
|
-
*
|
|
139
214
|
* @param {HashTreeObject} object data set object
|
|
140
215
|
* @param {any} locus
|
|
141
216
|
* @returns {void}
|
|
@@ -149,6 +224,35 @@ export default class LocusInfo extends EventsScope {
|
|
|
149
224
|
* @returns {void}
|
|
150
225
|
*/
|
|
151
226
|
sendClassicVsHashTreeMismatchMetric(meeting: any, message: string): void;
|
|
227
|
+
/**
|
|
228
|
+
* Helper that handles the common logic for reactivating a stopped HashTreeParser when
|
|
229
|
+
* a newer "replaces" is detected. Used by both the message and API response parser switch methods.
|
|
230
|
+
*
|
|
231
|
+
* @param {string} callerName - name of the calling method, used in log messages
|
|
232
|
+
* @param {string} locusUrl - the locus URL of the stopped parser
|
|
233
|
+
* @param {HashTreeParserEntry} stoppedEntry - the stopped parser entry
|
|
234
|
+
* @param {ReplacesInfo} replaces - replacement info extracted from self
|
|
235
|
+
* @param {Function} resumeCallback - callback to invoke after reactivation to resume the parser
|
|
236
|
+
* @returns {void}
|
|
237
|
+
*/
|
|
238
|
+
private resumeStoppedParser;
|
|
239
|
+
/**
|
|
240
|
+
* Handles an API response whose locusUrl doesn't match any active HashTreeParser
|
|
241
|
+
* (either no entry exists, or the existing entry is stopped).
|
|
242
|
+
* Creates a new parser or reactivates a stopped one using initializeFromGetLociResponse.
|
|
243
|
+
*
|
|
244
|
+
* @param {string} locusUrl - the locus URL from the API response
|
|
245
|
+
* @param {LocusDTO} locus - the locus DTO from the API response
|
|
246
|
+
* @returns {void}
|
|
247
|
+
*/
|
|
248
|
+
private handleHashTreeParserSwitchForAPIResponse;
|
|
249
|
+
/**
|
|
250
|
+
* Checks if the hash tree message should trigger a switch to a different HashTreeParser
|
|
251
|
+
*
|
|
252
|
+
* @param {HashTreeMessage} message incoming hash tree message
|
|
253
|
+
* @returns {boolean} true if the message was handled as a parser switch, false otherwise
|
|
254
|
+
*/
|
|
255
|
+
private handleHashTreeParserSwitch;
|
|
152
256
|
/**
|
|
153
257
|
* Handles a hash tree message received from Locus.
|
|
154
258
|
*
|
|
@@ -158,12 +262,23 @@ export default class LocusInfo extends EventsScope {
|
|
|
158
262
|
* @returns {void}
|
|
159
263
|
*/
|
|
160
264
|
private handleHashTreeMessage;
|
|
265
|
+
/**
|
|
266
|
+
* Triggers a sync of all hash tree datasets for all hash tree parsers associated with this meeting.
|
|
267
|
+
* The syncs are executed sequentially within each parser.
|
|
268
|
+
*
|
|
269
|
+
* @param {Object} [options={}] - Options for syncing
|
|
270
|
+
* @param {boolean} [options.onlyLLM=false] - Whether to sync only LLM based data sets
|
|
271
|
+
* @returns {Promise<void>}
|
|
272
|
+
*/
|
|
273
|
+
syncAllHashTreeDatasets(options?: {
|
|
274
|
+
onlyLLM?: boolean;
|
|
275
|
+
}): Promise<void>;
|
|
161
276
|
/**
|
|
162
277
|
* Callback registered with HashTreeParser to receive locus info updates.
|
|
163
278
|
* Updates our locus info based on the data parsed by the hash tree parser.
|
|
164
279
|
*
|
|
165
|
-
* @param {
|
|
166
|
-
* @param {
|
|
280
|
+
* @param {string} locusUrl - the locus URL for which the update is received
|
|
281
|
+
* @param {LocusInfoUpdate} update - Details about the update.
|
|
167
282
|
* @returns {void}
|
|
168
283
|
*/
|
|
169
284
|
private updateFromHashTree;
|
|
@@ -188,8 +303,8 @@ export default class LocusInfo extends EventsScope {
|
|
|
188
303
|
* @param {string} debugText string explaining the trigger for this call, added to logs for debugging purposes
|
|
189
304
|
* @param {object} locus locus object
|
|
190
305
|
* @param {object} metadata locus hash trees metadata
|
|
191
|
-
* @param {string} eventType locus event
|
|
192
306
|
* @param {DataSet[]} dataSets
|
|
307
|
+
* @param {string} eventType locus event
|
|
193
308
|
* @returns {void}
|
|
194
309
|
*/
|
|
195
310
|
private onFullLocusWithHashTrees;
|
|
@@ -226,6 +341,13 @@ export default class LocusInfo extends EventsScope {
|
|
|
226
341
|
* @memberof LocusInfo
|
|
227
342
|
*/
|
|
228
343
|
handleOneOnOneEvent(eventType: string): void;
|
|
344
|
+
/**
|
|
345
|
+
* Makes sure that passed in locus object has a participant object for self.
|
|
346
|
+
*
|
|
347
|
+
* @param {LocusDTO} locus The locus object to check and modify if needed
|
|
348
|
+
* @returns {void}
|
|
349
|
+
*/
|
|
350
|
+
ensureSelfParticipantExists(locus: any): void;
|
|
229
351
|
/**
|
|
230
352
|
* @param {Object} locus
|
|
231
353
|
* @returns {undefined}
|
|
@@ -237,7 +359,7 @@ export default class LocusInfo extends EventsScope {
|
|
|
237
359
|
* @returns {undefined}
|
|
238
360
|
* @memberof LocusInfo
|
|
239
361
|
*/
|
|
240
|
-
updateLocusInfo(locus: any):
|
|
362
|
+
updateLocusInfo(locus: any): boolean;
|
|
241
363
|
/**
|
|
242
364
|
* @param {Array} participants
|
|
243
365
|
* @param {Object} self
|
|
@@ -250,6 +372,14 @@ export default class LocusInfo extends EventsScope {
|
|
|
250
372
|
* @memberof LocusInfo
|
|
251
373
|
*/
|
|
252
374
|
isMeetingActive(): void;
|
|
375
|
+
/**
|
|
376
|
+
* Suspends or resumes the emission of DESTROY_MEETING events in certain situations.
|
|
377
|
+
* Used by joinWithMedia to prevent meeting destruction during retry flows.
|
|
378
|
+
* @param {boolean} suspend - true to suppress, false to resume
|
|
379
|
+
* @returns {undefined}
|
|
380
|
+
* @memberof LocusInfo
|
|
381
|
+
*/
|
|
382
|
+
suspendDestroyMeeting(suspend: boolean): void;
|
|
253
383
|
/**
|
|
254
384
|
* checks if the host permissions have changed while in the meeting
|
|
255
385
|
* This would be the case if your role as host or moderator has been updated
|
|
@@ -411,4 +541,10 @@ export default class LocusInfo extends EventsScope {
|
|
|
411
541
|
* @memberof LocusInfo
|
|
412
542
|
*/
|
|
413
543
|
clearMainSessionLocusCache(): void;
|
|
544
|
+
/**
|
|
545
|
+
* Cleans up all hash tree parsers and clears internal maps.
|
|
546
|
+
* @returns {void}
|
|
547
|
+
* @memberof LocusInfo
|
|
548
|
+
*/
|
|
549
|
+
cleanUp(): void;
|
|
414
550
|
}
|
|
@@ -1,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
|
-
|
|
23
|
+
sessionIds: string[];
|
|
9
24
|
startTime: number;
|
|
10
25
|
state: string;
|
|
11
26
|
type: string;
|
|
27
|
+
endMeetingReason?: EndMeetingReason;
|
|
12
28
|
};
|
|
13
29
|
export type Links = {
|
|
14
30
|
services: Record<'breakout' | 'record', {
|
|
@@ -33,6 +49,7 @@ export type LocusDTO = {
|
|
|
33
49
|
info?: any;
|
|
34
50
|
jsSdkMeta?: {
|
|
35
51
|
removedParticipantIds: string[];
|
|
52
|
+
forceReplaceMembers?: boolean;
|
|
36
53
|
};
|
|
37
54
|
links?: Links;
|
|
38
55
|
mediaShares?: any[];
|
|
@@ -53,3 +70,13 @@ export type LocusDTO = {
|
|
|
53
70
|
syncUrl?: string;
|
|
54
71
|
url?: string;
|
|
55
72
|
};
|
|
73
|
+
export type ReplacesInfo = {
|
|
74
|
+
locusUrl: string;
|
|
75
|
+
replacedAt: string;
|
|
76
|
+
sessionId: string;
|
|
77
|
+
};
|
|
78
|
+
export declare const LocusErrorCodes: {
|
|
79
|
+
readonly LOCUS_INACTIVE: 2403004;
|
|
80
|
+
readonly LOCUS_USER_FULL: 2423001;
|
|
81
|
+
};
|
|
82
|
+
export type LocusErrorCodes = Enum<typeof LocusErrorCodes>;
|
|
@@ -2,89 +2,106 @@ export interface MediaConnectionAwaiterProps {
|
|
|
2
2
|
webrtcMediaConnection: any;
|
|
3
3
|
correlationId: string;
|
|
4
4
|
}
|
|
5
|
+
export interface FailureResult {
|
|
6
|
+
iceConnected: boolean;
|
|
7
|
+
iceConnectedAtLeastOnce: boolean;
|
|
8
|
+
}
|
|
5
9
|
/**
|
|
6
|
-
*
|
|
10
|
+
* Waits for ICE and DTLS connectivity using explicit lifecycle states.
|
|
7
11
|
*/
|
|
8
12
|
export default class MediaConnectionAwaiter {
|
|
9
|
-
private
|
|
10
|
-
private
|
|
13
|
+
private props;
|
|
14
|
+
private state;
|
|
15
|
+
private timer?;
|
|
16
|
+
private iceConnectedAtLeastOnce;
|
|
11
17
|
private defer;
|
|
12
|
-
private retried;
|
|
13
|
-
private iceConnected;
|
|
14
|
-
private correlationId;
|
|
15
|
-
private onTimeoutCallback;
|
|
16
|
-
private peerConnectionStateCallback;
|
|
17
|
-
private iceConnectionStateCallback;
|
|
18
|
-
private iceGatheringStateCallback;
|
|
19
18
|
/**
|
|
20
|
-
* @param {MediaConnectionAwaiterProps}
|
|
19
|
+
* @param {MediaConnectionAwaiterProps} props
|
|
21
20
|
*/
|
|
22
|
-
constructor(
|
|
21
|
+
constructor(props: MediaConnectionAwaiterProps);
|
|
23
22
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* @returns {boolean}
|
|
23
|
+
* Registers listeners and starts the wait once, settling terminal connections immediately.
|
|
24
|
+
* @returns {Promise<void>} Rejects with FailureResult on failure
|
|
27
25
|
*/
|
|
28
|
-
|
|
26
|
+
waitForMediaConnectionConnected(): Promise<void>;
|
|
29
27
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* @
|
|
28
|
+
* Applies a transition to a new state and owns its deadline or terminal settlement.
|
|
29
|
+
* @param {EnteredState} next - State to enter; an active wait cannot return to idle
|
|
30
|
+
* @param {string} reason - Trigger or reason for the transition
|
|
31
|
+
* @returns {void}
|
|
33
32
|
*/
|
|
34
|
-
private
|
|
33
|
+
private enter;
|
|
35
34
|
/**
|
|
36
|
-
* Returns
|
|
37
|
-
*
|
|
35
|
+
* Returns whether the promise has settled.
|
|
38
36
|
* @returns {boolean}
|
|
39
37
|
*/
|
|
40
|
-
private
|
|
38
|
+
private isTerminal;
|
|
39
|
+
/**
|
|
40
|
+
* Returns the current state only if it owns a connection deadline.
|
|
41
|
+
* @returns {ActiveState | undefined}
|
|
42
|
+
*/
|
|
43
|
+
private getActiveState;
|
|
44
|
+
/**
|
|
45
|
+
* Logs current browser state and transitions when connectivity or phase changes.
|
|
46
|
+
* @param {string} trigger - Callback or operation that triggered evaluation
|
|
47
|
+
* @returns {boolean} Whether a state transition occurred
|
|
48
|
+
*/
|
|
49
|
+
private evaluate;
|
|
41
50
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
51
|
+
* Listener for peer connection state changes.
|
|
44
52
|
* @returns {void}
|
|
45
53
|
*/
|
|
46
|
-
|
|
54
|
+
peerConnectionStateHandler: () => void;
|
|
47
55
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
56
|
+
* Listener for ICE connection state changes.
|
|
50
57
|
* @returns {void}
|
|
51
58
|
*/
|
|
52
|
-
|
|
59
|
+
iceConnectionStateHandler: () => void;
|
|
53
60
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
61
|
+
* Restarts only an unchanged ICE phase when gathering completes.
|
|
56
62
|
* @returns {void}
|
|
57
63
|
*/
|
|
58
|
-
|
|
64
|
+
iceGatheringStateHandler: () => void;
|
|
59
65
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
66
|
+
* Rechecks connectivity before applying the deadline or the ICE gathering retry.
|
|
62
67
|
* @returns {void}
|
|
63
68
|
*/
|
|
64
|
-
|
|
69
|
+
onTimeout: () => void;
|
|
65
70
|
/**
|
|
66
|
-
*
|
|
67
|
-
*
|
|
71
|
+
* Arms an active phase's deadline and logs every start or restart.
|
|
72
|
+
* @param {ActiveState} state - Active state whose deadline is being started
|
|
73
|
+
* @param {string} reason - Why the deadline is being started or restarted
|
|
68
74
|
* @returns {void}
|
|
69
75
|
*/
|
|
70
|
-
|
|
76
|
+
private armTimer;
|
|
71
77
|
/**
|
|
72
|
-
*
|
|
73
|
-
* issues where browser doesn't update the RTCPeerConnection's iceConnectionState or connectionState
|
|
74
|
-
*
|
|
78
|
+
* Releases the deadline and registered listeners on either terminal transition.
|
|
75
79
|
* @returns {void}
|
|
76
80
|
*/
|
|
77
|
-
|
|
81
|
+
private teardown;
|
|
78
82
|
/**
|
|
79
|
-
*
|
|
80
|
-
*
|
|
83
|
+
* Registers each callback once with a stable function reference.
|
|
81
84
|
* @returns {void}
|
|
82
85
|
*/
|
|
83
|
-
|
|
86
|
+
private registerCallbacks;
|
|
84
87
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* @returns {Promise}
|
|
88
|
+
* Removes callbacks when the wait reaches a terminal state.
|
|
89
|
+
* @returns {void}
|
|
88
90
|
*/
|
|
89
|
-
|
|
91
|
+
private unregisterCallbacks;
|
|
92
|
+
/**
|
|
93
|
+
* Returns whether ICE gathering has completed.
|
|
94
|
+
* @returns {boolean}
|
|
95
|
+
*/
|
|
96
|
+
private isIceGatheringCompleted;
|
|
97
|
+
/**
|
|
98
|
+
* Captures current and historical ICE connectivity for failures and metrics.
|
|
99
|
+
* @returns {FailureResult}
|
|
100
|
+
*/
|
|
101
|
+
private getConnectivity;
|
|
102
|
+
/**
|
|
103
|
+
* Sends connectivity diagnostics when a deadline expires.
|
|
104
|
+
* @returns {Promise<void>}
|
|
105
|
+
*/
|
|
106
|
+
private sendMetric;
|
|
90
107
|
}
|
|
@@ -26,6 +26,7 @@ export default class MediaProperties {
|
|
|
26
26
|
shareAudioStream?: LocalSystemAudioStream;
|
|
27
27
|
videoDeviceId: any;
|
|
28
28
|
videoStream?: LocalCameraStream;
|
|
29
|
+
srtpCipher: string | undefined;
|
|
29
30
|
namespace: string;
|
|
30
31
|
mediaIssueCounters: {
|
|
31
32
|
[key: string]: number;
|
|
@@ -147,8 +148,11 @@ export default class MediaProperties {
|
|
|
147
148
|
*
|
|
148
149
|
* @param {string} issueType
|
|
149
150
|
* @param {string} issueSubType
|
|
150
|
-
* @param {
|
|
151
|
+
* @param {Object} metadata
|
|
151
152
|
* @returns {void}
|
|
152
153
|
*/
|
|
153
|
-
sendMediaIssueMetric(issueType: string, issueSubType: string,
|
|
154
|
+
sendMediaIssueMetric(issueType: string, issueSubType: string, metadata: {
|
|
155
|
+
correlationId: string;
|
|
156
|
+
isMultistream: boolean;
|
|
157
|
+
}): void;
|
|
154
158
|
}
|
|
@@ -115,6 +115,8 @@ interface IInMeetingActions {
|
|
|
115
115
|
canDisablePollingQA?: boolean;
|
|
116
116
|
canAttendeeRequestAiAssistantEnabled?: boolean;
|
|
117
117
|
isAttendeeRequestAiAssistantDeclinedAll?: boolean;
|
|
118
|
+
isAnonymizeDisplayNamesEnabled?: boolean;
|
|
119
|
+
canViewTheParticipantList?: boolean;
|
|
118
120
|
}
|
|
119
121
|
/**
|
|
120
122
|
* @class InMeetingActions
|
|
@@ -230,6 +232,8 @@ export default class InMeetingActions implements IInMeetingActions {
|
|
|
230
232
|
canDisablePollingQA: any;
|
|
231
233
|
canAttendeeRequestAiAssistantEnabled: any;
|
|
232
234
|
isAttendeeRequestAiAssistantDeclinedAll: any;
|
|
235
|
+
isAnonymizeDisplayNamesEnabled: any;
|
|
236
|
+
canViewTheParticipantList: any;
|
|
233
237
|
/**
|
|
234
238
|
* Returns all meeting action options
|
|
235
239
|
* @returns {Object}
|