@webex/plugin-meetings 3.13.0-next.1 → 3.13.0-next.11

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 (56) hide show
  1. package/babel.config.js +17 -1
  2. package/dist/aiEnableRequest/index.js +1 -1
  3. package/dist/breakouts/breakout.js +1 -1
  4. package/dist/breakouts/index.js +1 -1
  5. package/dist/common/wasm-loader.js +174 -0
  6. package/dist/common/wasm-loader.js.map +1 -0
  7. package/dist/config.js +2 -1
  8. package/dist/config.js.map +1 -1
  9. package/dist/constants.js +1 -1
  10. package/dist/constants.js.map +1 -1
  11. package/dist/e2ee/E2eeManager.js +91 -0
  12. package/dist/e2ee/E2eeManager.js.map +1 -0
  13. package/dist/e2ee/E2eeSignaling.js +200 -0
  14. package/dist/e2ee/E2eeSignaling.js.map +1 -0
  15. package/dist/e2ee/MediaEncryptionService.js +75 -0
  16. package/dist/e2ee/MediaEncryptionService.js.map +1 -0
  17. package/dist/e2ee/mls.js +558 -0
  18. package/dist/e2ee/mls.js.map +1 -0
  19. package/dist/e2ee/types.js +59 -0
  20. package/dist/e2ee/types.js.map +1 -0
  21. package/dist/e2ee/wasm.d.js +7 -0
  22. package/dist/e2ee/wasm.d.js.map +1 -0
  23. package/dist/interpretation/index.js +1 -1
  24. package/dist/interpretation/siLanguage.js +1 -1
  25. package/dist/meetings/index.js +20 -0
  26. package/dist/meetings/index.js.map +1 -1
  27. package/dist/types/common/wasm-loader.d.ts +55 -0
  28. package/dist/types/config.d.ts +1 -0
  29. package/dist/types/constants.d.ts +1 -1
  30. package/dist/types/e2ee/E2eeManager.d.ts +23 -0
  31. package/dist/types/e2ee/E2eeSignaling.d.ts +94 -0
  32. package/dist/types/e2ee/MediaEncryptionService.d.ts +27 -0
  33. package/dist/types/e2ee/mls.d.ts +191 -0
  34. package/dist/types/e2ee/types.d.ts +104 -0
  35. package/dist/types/meetings/index.d.ts +4 -0
  36. package/dist/webinar/index.js +1 -1
  37. package/package.json +21 -21
  38. package/src/common/wasm-loader.ts +124 -0
  39. package/src/config.ts +1 -0
  40. package/src/constants.ts +1 -1
  41. package/src/e2ee/E2eeManager.ts +58 -0
  42. package/src/e2ee/E2eeSignaling.ts +215 -0
  43. package/src/e2ee/MediaEncryptionService.ts +41 -0
  44. package/src/e2ee/mls.ts +548 -0
  45. package/src/e2ee/types.ts +114 -0
  46. package/src/e2ee/wasm.d.ts +153 -0
  47. package/src/meetings/ai-docs/meetings-spec.md +2 -0
  48. package/src/meetings/index.ts +18 -0
  49. package/test/integration/spec/transcription.js +1 -1
  50. package/test/unit/spec/common/wasm-loader.ts +171 -0
  51. package/test/unit/spec/e2ee/E2eeManager.ts +82 -0
  52. package/test/unit/spec/e2ee/E2eeSignaling.ts +172 -0
  53. package/test/unit/spec/e2ee/MediaEncryptionService.ts +43 -0
  54. package/test/unit/spec/e2ee/mls.ts +765 -0
  55. package/test/unit/spec/meeting-info/index.js +2 -3
  56. package/test/unit/spec/meetings/index.js +20 -0
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+
3
+ var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
4
+ _Object$defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.E2eeValidationResult = exports.E2eeIdentityType = void 0;
8
+ /*!
9
+ * Copyright (c) 2015-2026 Cisco Systems, Inc. See LICENSE file.
10
+ */
11
+
12
+ /**
13
+ * SDK-facing shapes used by the isolated MLS protocol engine. Integration-specific meeting,
14
+ * identity-plugin and signaling types are added by the later adapter phases.
15
+ */
16
+
17
+ /** Credential-validation outcome from the MLS roster. Keep ordinals in sync with libe2ee. */
18
+ var E2eeValidationResult = exports.E2eeValidationResult = {
19
+ Success: 0,
20
+ PartialSuccess: 1,
21
+ Failure: 2,
22
+ ParseError: 3,
23
+ UnknownIssuer: 4,
24
+ UnknownPublicKey: 5,
25
+ InvalidSignature: 6,
26
+ Expired: 7,
27
+ Inactive: 8,
28
+ Revoked: 9,
29
+ UnsupportedCaType: 10,
30
+ InvalidKeypackageSignature: 11,
31
+ UnsupportedCredentialType: 12,
32
+ MissingDisplayNameExtension: 13
33
+ };
34
+ /** Identity type attached to the leaf certificate. Keep ordinals in sync with libe2ee. */
35
+ var E2eeIdentityType = exports.E2eeIdentityType = {
36
+ WebexAnonymousIdentity: 0,
37
+ WebexMachineIdentity: 1,
38
+ WebexUserIdentity: 2,
39
+ ExternalVerifiedIdentity: 3
40
+ };
41
+
42
+ /** A media-encryption (SFrame) key for an MLS epoch. */
43
+
44
+ /** SFrame parameters negotiated for an MLS group. */
45
+
46
+ /** Parsed certificate information returned with a roster member. */
47
+
48
+ /** A member of the MLS roster and its credential-validation result. */
49
+
50
+ /** Credentials and trust anchors consumed by the WASM engine. */
51
+
52
+ /**
53
+ * HTTP transport the MLS engine uses for its protocol requests. Implemented by
54
+ * MediaEncryptionService (which routes to webex.request); injected so the engine stays pure.
55
+ * Bodies are plain JS objects: MLS converts the engine's JSON bytes to/from objects at its boundary.
56
+ */
57
+
58
+ /** Signaling transport that delivered an MLS protocol message. */
59
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["E2eeValidationResult","exports","Success","PartialSuccess","Failure","ParseError","UnknownIssuer","UnknownPublicKey","InvalidSignature","Expired","Inactive","Revoked","UnsupportedCaType","InvalidKeypackageSignature","UnsupportedCredentialType","MissingDisplayNameExtension","E2eeIdentityType","WebexAnonymousIdentity","WebexMachineIdentity","WebexUserIdentity","ExternalVerifiedIdentity"],"sources":["types.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-2026 Cisco Systems, Inc. See LICENSE file.\n */\n\n/**\n * SDK-facing shapes used by the isolated MLS protocol engine. Integration-specific meeting,\n * identity-plugin and signaling types are added by the later adapter phases.\n */\n\n/** Credential-validation outcome from the MLS roster. Keep ordinals in sync with libe2ee. */\nexport const E2eeValidationResult = {\n Success: 0,\n PartialSuccess: 1,\n Failure: 2,\n ParseError: 3,\n UnknownIssuer: 4,\n UnknownPublicKey: 5,\n InvalidSignature: 6,\n Expired: 7,\n Inactive: 8,\n Revoked: 9,\n UnsupportedCaType: 10,\n InvalidKeypackageSignature: 11,\n UnsupportedCredentialType: 12,\n MissingDisplayNameExtension: 13,\n} as const;\n\nexport type E2eeValidationResult = (typeof E2eeValidationResult)[keyof typeof E2eeValidationResult];\n\n/** Identity type attached to the leaf certificate. Keep ordinals in sync with libe2ee. */\nexport const E2eeIdentityType = {\n WebexAnonymousIdentity: 0,\n WebexMachineIdentity: 1,\n WebexUserIdentity: 2,\n ExternalVerifiedIdentity: 3,\n} as const;\n\nexport type E2eeIdentityType = (typeof E2eeIdentityType)[keyof typeof E2eeIdentityType];\n\n/** A media-encryption (SFrame) key for an MLS epoch. */\nexport interface E2eeKey {\n epoch: number;\n baseKey: Uint8Array;\n index: number;\n indexBits: number;\n canEncrypt: boolean;\n}\n\n/** SFrame parameters negotiated for an MLS group. */\nexport interface SframeParams {\n cipherSuite: number;\n epochBits: number;\n}\n\n/** Parsed certificate information returned with a roster member. */\nexport interface E2eeCertificateInfo {\n primaryName: string;\n commonName: string;\n organizationName: string;\n emailAddresses: string[];\n domainNames: string[];\n notBefore: number;\n notAfter: number;\n signatureAlgorithm: string;\n publicKeyAlgorithm: string;\n identityType?: E2eeIdentityType;\n der: Uint8Array;\n}\n\nexport interface E2eeIdentityResult {\n result: E2eeValidationResult;\n certificateChain: E2eeCertificateInfo[];\n failedCertIndex?: number;\n}\n\n/** A member of the MLS roster and its credential-validation result. */\nexport interface E2eeRosterMember {\n url: string;\n displayName: string;\n deviceType: string;\n validationResult: E2eeValidationResult;\n identityResults?: E2eeIdentityResult[];\n}\n\n/** Credentials and trust anchors consumed by the WASM engine. */\nexport interface MLSConfig {\n participantId: string;\n deviceUrl: string;\n deviceType?: string;\n correlationId: string;\n displayName: string;\n serviceUrl: string;\n credentials?: {privateKey: Uint8Array; certChain: Uint8Array[]};\n trustAnchors?: {\n webexCaRoots?: string;\n domainNameRoots?: string;\n userIdentityRoots?: string;\n domainNameRootsP7b?: Uint8Array;\n };\n joinTimeout?: number;\n coalesceWindow?: number;\n}\n\n/**\n * HTTP transport the MLS engine uses for its protocol requests. Implemented by\n * MediaEncryptionService (which routes to webex.request); injected so the engine stays pure.\n * Bodies are plain JS objects: MLS converts the engine's JSON bytes to/from objects at its boundary.\n */\nexport interface IMlsHttpClient {\n request(url: string, body: unknown): Promise<unknown>;\n}\n\n/** Signaling transport that delivered an MLS protocol message. */\nexport type E2eeSignalingSource = 'llm' | 'mercury';\n"],"mappings":";;;;;;;AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACO,IAAMA,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,GAAG;EAClCE,OAAO,EAAE,CAAC;EACVC,cAAc,EAAE,CAAC;EACjBC,OAAO,EAAE,CAAC;EACVC,UAAU,EAAE,CAAC;EACbC,aAAa,EAAE,CAAC;EAChBC,gBAAgB,EAAE,CAAC;EACnBC,gBAAgB,EAAE,CAAC;EACnBC,OAAO,EAAE,CAAC;EACVC,QAAQ,EAAE,CAAC;EACXC,OAAO,EAAE,CAAC;EACVC,iBAAiB,EAAE,EAAE;EACrBC,0BAA0B,EAAE,EAAE;EAC9BC,yBAAyB,EAAE,EAAE;EAC7BC,2BAA2B,EAAE;AAC/B,CAAU;AAIV;AACO,IAAMC,gBAAgB,GAAAf,OAAA,CAAAe,gBAAA,GAAG;EAC9BC,sBAAsB,EAAE,CAAC;EACzBC,oBAAoB,EAAE,CAAC;EACvBC,iBAAiB,EAAE,CAAC;EACpBC,wBAAwB,EAAE;AAC5B,CAAU;;AAIV;;AASA;;AAMA;;AAqBA;;AASA;;AAmBA;AACA;AACA;AACA;AACA;;AAKA","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
4
+ _Object$defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ //# sourceMappingURL=wasm.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["wasm.d.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-2026 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport type {E2eeIdentityType, E2eeValidationResult} from './types';\n\n/**\n * Raw WebAssembly (WebE2EE) boundary types. These mirror the emscripten-generated MLS engine API\n * exactly (including its snake_case fields); the SDK-facing camelCase shapes live in types.ts.\n */\n\nexport interface Transaction {\n id: string;\n type: 'join' | 'update';\n}\n\nexport interface JoinSuccessResult {\n status: 'join_success';\n epoch: number;\n base_key: Uint8Array;\n index: number;\n index_bits: number;\n sec_code: string;\n sframe_cipher_suite: number;\n sframe_epoch_bits: number;\n}\n\nexport interface UpdateSuccessResult {\n status: 'update_success';\n}\n\nexport interface TransactionFailureResult {\n status: 'failure';\n reason:\n | 'timeout'\n | 'join_failure'\n | 'tree_fetch_failure'\n | 'commit_fetch_failure'\n | 'update_override';\n}\n\nexport type TransactionResult = JoinSuccessResult | UpdateSuccessResult | TransactionFailureResult;\n\nexport interface HTTPRequest {\n url: string;\n /** A view into WASM memory (`typed_memory_view`); only valid during the callback — copy before async use. */\n body: Uint8Array;\n handlerId: number;\n}\n\nexport interface EpochInfo {\n epoch: number;\n base_key: Uint8Array;\n index: number;\n index_bits: number;\n sec_code: string;\n}\n\nexport interface CertificateInfo {\n primary_name: string;\n common_name: string;\n organization_name: string;\n email_addresses: string[];\n domain_names: string[];\n not_before: number;\n not_after: number;\n signature_algorithm: string;\n public_key_algorithm: string;\n identity_type?: E2eeIdentityType;\n der: Uint8Array;\n}\n\nexport interface CertificateResult {\n result: E2eeValidationResult;\n member_certs: CertificateInfo[];\n failed_cert_index?: number;\n}\n\nexport interface RosterMember {\n url: string;\n display_name: string;\n device_type: string;\n validation_result: E2eeValidationResult;\n x509?: CertificateResult[];\n}\n\nexport interface WebE2EEInstance {\n initialize(\n participantId: string,\n deviceUrl: string,\n deviceType: string,\n correlationId: string,\n displayName: string,\n serviceUrl: string\n ): void;\n\n addX509Credential(privateKey: Uint8Array, certChain: Uint8Array[]): void;\n setTrustAnchors(\n webexCaRoots: string,\n domainNameRoots: string,\n userIdentityRoots: string,\n domainNameRootsP7b: Uint8Array\n ): void;\n\n join(): void;\n leave(): void;\n joined(): boolean;\n securityCode(): string;\n sessionSecret(): Uint8Array | null;\n contentKey(): Uint8Array | null;\n contentKeyId(): string;\n roster(): RosterMember[];\n handle(event: Uint8Array): void;\n isLeader(): boolean;\n /**\n * Used by backend services such as Homer; client SDKs do not need to call this.\n */\n keepAlive(): void;\n llmConnected(): void;\n setLlmConnectedBeforeJoin(connected: boolean): void;\n setGzipThreshold(threshold: number): void;\n setCoalesceWindow(milliseconds: number): void;\n setJoinTimeout(milliseconds: number): void;\n setPurgeKeysTimeout(milliseconds: number): void;\n\n setOnNewTransaction(callback: (transaction: Transaction) => void): void;\n setOnCompleteTransaction(callback: (id: string, result: TransactionResult) => void): void;\n setOnHttpRequest(callback: (request: HTTPRequest) => void): void;\n setOnWait(callback: (milliseconds: number, handlerId: number) => void): void;\n setOnGotKey(callback: (epoch: EpochInfo) => void): void;\n setOnUseKey(callback: (epoch: number) => void): void;\n setOnLeader(callback: () => void): void;\n setOnPurgeBefore(callback: (epoch: number) => void): void;\n setOnEvicted(callback: () => void): void;\n setOnAddRoster(callback: (added: RosterMember[]) => void): void;\n setOnRemoveRoster(callback: (removed: string[]) => void): void;\n setOnE2eeVersion(callback: (version: number) => void): void;\n setOnMissingCommit(callback: (mlsEpoch: number, useKeyEpoch: number) => void): void;\n setOnLog(callback: (level: number, message: string) => void): void;\n\n completeHttpRequest(\n handlerId: number,\n success: boolean,\n body: Uint8Array,\n errorCode: number,\n errorMessage: string\n ): void;\n completeWait(handlerId: number): void;\n}\n\nexport interface ModuleInstance {\n WebE2EE: new () => WebE2EEInstance;\n}\n"],"mappings":"","ignoreList":[]}
@@ -415,7 +415,7 @@ var SimultaneousInterpretation = _webexCore.WebexPlugin.extend({
415
415
  throw error;
416
416
  });
417
417
  },
418
- version: "3.13.0-next.1"
418
+ version: "3.13.0-next.11"
419
419
  });
420
420
  var _default = exports.default = SimultaneousInterpretation;
421
421
  //# sourceMappingURL=index.js.map
@@ -18,7 +18,7 @@ var SILanguage = _webexCore.WebexPlugin.extend({
18
18
  languageCode: 'number',
19
19
  languageName: 'string'
20
20
  },
21
- version: "3.13.0-next.1"
21
+ version: "3.13.0-next.11"
22
22
  });
23
23
  var _default = exports.default = SILanguage;
24
24
  //# sourceMappingURL=siLanguage.js.map
@@ -46,6 +46,8 @@ var _request = _interopRequireDefault(require("../common/logs/request"));
46
46
  var _triggerProxy = _interopRequireDefault(require("../common/events/trigger-proxy"));
47
47
  var _media = _interopRequireDefault(require("../media"));
48
48
  var _util = _interopRequireDefault(require("../meeting/util"));
49
+ var _wasmLoader = _interopRequireDefault(require("../common/wasm-loader"));
50
+ var _E2eeManager = _interopRequireDefault(require("../e2ee/E2eeManager"));
49
51
  var _constants = require("../constants");
50
52
  var _constants2 = _interopRequireDefault(require("../metrics/constants"));
51
53
  var _meetingInfo = _interopRequireDefault(require("../meeting-info"));
@@ -206,6 +208,8 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
206
208
  (0, _defineProperty2.default)(_this, "breakoutLocusForHandleLater", void 0);
207
209
  (0, _defineProperty2.default)(_this, "namespace", _constants.MEETINGS);
208
210
  (0, _defineProperty2.default)(_this, "registrationStatus", void 0);
211
+ (0, _defineProperty2.default)(_this, "wasmLoader", void 0);
212
+ (0, _defineProperty2.default)(_this, "e2eeManager", void 0);
209
213
  /**
210
214
  * Emits a metric describing how well this browser runs WebAssembly, used to spot browsers
211
215
  * where real-time WASM effects (e.g. background noise removal) run poorly.
@@ -385,6 +389,9 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
385
389
  _this.media = {
386
390
  getUserMedia: _media.default.getUserMedia
387
391
  };
392
+
393
+ // Shared runtime cache for WASM modules used by meetings.
394
+ _this.wasmLoader = new _wasmLoader.default();
388
395
  _this.onReady();
389
396
  return _this;
390
397
  }
@@ -783,6 +790,13 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
783
790
  mediaLogger = new MediaLogger();
784
791
  (0, _internalMediaCore.setLogger)(mediaLogger);
785
792
 
793
+ // Construct after READY because the manager uses the initialized webex client and config.
794
+ // @ts-ignore
795
+ _this4.e2eeManager = new _E2eeManager.default({
796
+ webex: _this4.webex,
797
+ wasmLoader: _this4.wasmLoader
798
+ });
799
+
786
800
  /**
787
801
  * The MeetingInfo object to interact with server
788
802
  * @instance
@@ -1072,6 +1086,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1072
1086
  }), this.executeRegistrationStep(function () {
1073
1087
  return _promise.default.resolve(_util2.default.checkH264Support.call(_this6));
1074
1088
  }, 'checkH264Support')]).then(function () {
1089
+ var _this6$e2eeManager;
1075
1090
  _this6.listenForEvents();
1076
1091
  _triggerProxy.default.trigger(_this6, {
1077
1092
  file: 'meetings',
@@ -1079,6 +1094,11 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1079
1094
  }, _constants.EVENT_TRIGGERS.MEETINGS_REGISTERED);
1080
1095
  _this6.registered = true;
1081
1096
  _metrics.default.sendBehavioralMetric(_constants2.default.MEETINGS_REGISTRATION_SUCCESS);
1097
+
1098
+ // Preload is best-effort and must not delay or fail Meetings registration.
1099
+ (_this6$e2eeManager = _this6.e2eeManager) === null || _this6$e2eeManager === void 0 ? void 0 : _this6$e2eeManager.preload().catch(function (error) {
1100
+ _loggerProxy.default.logger.warn("Meetings:index#register --> E2EE preload failed: ".concat((error === null || error === void 0 ? void 0 : error.message) || error));
1101
+ });
1082
1102
  }).catch(function (error) {
1083
1103
  _loggerProxy.default.logger.error("Meetings:index#register --> ERROR, Unable to register, ".concat(error.message));
1084
1104
  _metrics.default.sendBehavioralMetric(_constants2.default.MEETINGS_REGISTRATION_FAILED, {