@webex/plugin-meetings 3.13.0-next.6 → 3.13.0-next.8

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.
@@ -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.6"
418
+ version: "3.13.0-next.8"
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.6"
21
+ version: "3.13.0-next.8"
22
22
  });
23
23
  var _default = exports.default = SILanguage;
24
24
  //# sourceMappingURL=siLanguage.js.map
@@ -0,0 +1,94 @@
1
+ /*!
2
+ * Copyright (c) 2015-2026 Cisco Systems, Inc. See LICENSE file.
3
+ */
4
+ import type LLMChannel from '@webex/internal-plugin-llm';
5
+ /** Source labels passed to the MLS engine for incoming signaling messages. */
6
+ type E2eeSignalingSource = 'llm' | 'mercury';
7
+ /** LLM event carrying the channel's connection state. */
8
+ export declare const LLM_ONLINE_EVENT = "online";
9
+ /** Mercury events carrying MLS protocol messages. */
10
+ export declare const MEDIA_ENCRYPTION_MERCURY_EVENTS: string[];
11
+ /** The subset of the MLS engine the signaling adapter drives. */
12
+ export interface IMlsSignalingTarget {
13
+ handleEvent(bytes: Uint8Array, source: E2eeSignalingSource): void;
14
+ setLlmConnectedBeforeJoin(connected: boolean): void;
15
+ llmConnected(): void;
16
+ }
17
+ /** The subset of a mercury channel the adapter subscribes to for MLS protocol events. */
18
+ export interface IMercuryChannel {
19
+ on(event: string, handler: (envelope: any) => void): void;
20
+ off(event: string, handler: (envelope: any) => void): void;
21
+ }
22
+ /**
23
+ * Mercury (and LLM) adapter for the MLS engine. Subscribes to this meeting's
24
+ * media_encryption.* events on both the LLM and mercury channels and forwards them to the engine,
25
+ * and tracks whether the signaling channel is connected so the engine knows when it can proceed
26
+ * with its join.
27
+ */
28
+ export default class E2eeSignaling {
29
+ private llm?;
30
+ private readonly mercury;
31
+ private readonly getLocusUrl;
32
+ private readonly session;
33
+ private started;
34
+ /**
35
+ * @param {Object} deps
36
+ * @param {LLMChannel} [deps.llm] - This meeting's LLM channel, when one is available.
37
+ * @param {IMercuryChannel} deps.mercury - The mercury channel (webex.internal.mercury).
38
+ * @param {Function} deps.getLocusUrl - Returns the meeting's current locus url (read live, as it
39
+ * can change, e.g. when moving between breakout sessions).
40
+ * @param {IMlsSignalingTarget} deps.session - The MLS engine to drive.
41
+ */
42
+ constructor({ llm, mercury, getLocusUrl, session, }: {
43
+ llm?: LLMChannel;
44
+ mercury: IMercuryChannel;
45
+ getLocusUrl: () => string | undefined;
46
+ session: IMlsSignalingTarget;
47
+ });
48
+ /**
49
+ * Subscribes to MLS mercury events and wires up connection tracking. Idempotent.
50
+ * @returns {void}
51
+ */
52
+ start(): void;
53
+ /**
54
+ * Removes all subscriptions. Idempotent.
55
+ * @returns {void}
56
+ */
57
+ stop(): void;
58
+ /**
59
+ * Replaces the meeting-owned LLM channel after the meeting reconnects its data channel.
60
+ * @param {LLMChannel} [llm]
61
+ * @returns {void}
62
+ */
63
+ setLlmChannel(llm?: LLMChannel): void;
64
+ /**
65
+ * Forwards a signaling envelope to the engine, tagging which channel it came from.
66
+ * @param {Object} envelope - The mercury event envelope.
67
+ * @param {E2eeSignalingSource} source - The channel the envelope arrived on.
68
+ * @returns {void}
69
+ */
70
+ private forwardEvent;
71
+ /**
72
+ * @param {Object} envelope - The mercury event envelope from the LLM channel.
73
+ * @returns {void}
74
+ */
75
+ private onLlmEvent;
76
+ /**
77
+ * @param {Object} envelope - The mercury event envelope from the mercury channel.
78
+ * @returns {void}
79
+ */
80
+ private onMercuryEvent;
81
+ /**
82
+ * @returns {void}
83
+ */
84
+ private onLlmOnline;
85
+ /** @returns {void} */
86
+ private subscribeToLlmEvents;
87
+ /** @returns {void} */
88
+ private unsubscribeFromLlmEvents;
89
+ /**
90
+ * @returns {boolean} whether the LLM is connected for this specific session (locus-url matched).
91
+ */
92
+ private isLlmOnlineForThisSession;
93
+ }
94
+ export {};
@@ -0,0 +1,27 @@
1
+ /*!
2
+ * Copyright (c) 2015-2026 Cisco Systems, Inc. See LICENSE file.
3
+ */
4
+ /** The bound webex.request function shape consumed by this adapter. */
5
+ type WebexRequestMethod = (options: Record<string, any>) => Promise<any>;
6
+ /**
7
+ * Routes the MLS engine's protocol HTTP requests to the media-encryption service via
8
+ * webex.request. Bodies are plain JS objects; MLS owns the conversion to/from the engine's bytes.
9
+ * Requests use standard webex auth (Authorization bearer token) — no custom header is needed.
10
+ */
11
+ export default class MediaEncryptionService {
12
+ private readonly webexRequest;
13
+ /**
14
+ * @param {Object} deps
15
+ * @param {WebexRequestMethod} deps.webexRequest - The (bound) webex.request method.
16
+ */
17
+ constructor({ webexRequest }: {
18
+ webexRequest: WebexRequestMethod;
19
+ });
20
+ /**
21
+ * @param {string} url - The absolute request URL provided by the engine.
22
+ * @param {unknown} body - Request payload, sent as JSON.
23
+ * @returns {Promise<unknown>} The JSON-parsed response body.
24
+ */
25
+ request(url: string, body: unknown): Promise<unknown>;
26
+ }
27
+ export {};
@@ -0,0 +1,191 @@
1
+ /*!
2
+ * Copyright (c) 2015-2026 Cisco Systems, Inc. See LICENSE file.
3
+ */
4
+ import type { E2eeKey, E2eeRosterMember, E2eeSignalingSource, IMlsHttpClient, MLSConfig, SframeParams } from './types';
5
+ import type { ModuleInstance } from './wasm';
6
+ /** Payloads for each event emitted by {@link MLS}. */
7
+ export interface MLSEventMap {
8
+ joinSuccess: {
9
+ epoch: number;
10
+ securityCode: string;
11
+ sframe: SframeParams;
12
+ key: E2eeKey;
13
+ };
14
+ joinFailure: {
15
+ reason: string;
16
+ };
17
+ mediaEncryptionRequestFailure: {
18
+ errorCode: number;
19
+ message: string;
20
+ };
21
+ newKey: E2eeKey;
22
+ useKey: {
23
+ epoch: number;
24
+ };
25
+ purgeKeys: {
26
+ epoch: number;
27
+ };
28
+ rosterAdded: E2eeRosterMember[];
29
+ rosterRemoved: {
30
+ urls: string[];
31
+ };
32
+ leaderChanged: {
33
+ isLeader: boolean;
34
+ };
35
+ evicted: void;
36
+ versionNegotiated: {
37
+ version: number;
38
+ };
39
+ securityCodeChanged: {
40
+ code: string;
41
+ };
42
+ }
43
+ export type MLSEvent = keyof MLSEventMap;
44
+ /**
45
+ * Pure MLS protocol engine wrapping the WebE2EE WASM module. It has no webex/HTTP/LLM
46
+ * dependencies: all I/O flows through the injected {@link IMlsHttpClient}, and all outputs are
47
+ * emitted as typed events. This keeps it unit-testable in isolation.
48
+ */
49
+ export default class MLS {
50
+ private readonly loadModule;
51
+ private readonly httpClient;
52
+ private readonly emitter;
53
+ private readonly transactions;
54
+ private e2ee;
55
+ private lastSecurityCode;
56
+ /**
57
+ * @param {Object} deps
58
+ * @param {IMlsHttpClient} deps.httpClient - Transport for the engine's protocol requests.
59
+ * @param {Function} deps.loadModule - Loads the WASM module instance; supplied by the integration layer.
60
+ */
61
+ constructor({ httpClient, loadModule, }: {
62
+ httpClient: IMlsHttpClient;
63
+ loadModule: () => Promise<ModuleInstance>;
64
+ });
65
+ /**
66
+ * Subscribe to an engine event.
67
+ * @param {MLSEvent} event
68
+ * @param {Function} listener
69
+ * @returns {void}
70
+ */
71
+ on<K extends MLSEvent>(event: K, listener: (payload: MLSEventMap[K]) => void): void;
72
+ /**
73
+ * Unsubscribe from an engine event.
74
+ * @param {MLSEvent} event
75
+ * @param {Function} listener
76
+ * @returns {void}
77
+ */
78
+ off<K extends MLSEvent>(event: K, listener: (payload: MLSEventMap[K]) => void): void;
79
+ /**
80
+ * @param {MLSEvent} event
81
+ * @param {*} [payload]
82
+ * @returns {void}
83
+ */
84
+ private emitEvent;
85
+ /**
86
+ * Loads the WASM module, instantiates the engine, wires its callbacks, and applies credentials,
87
+ * trust anchors and timeouts. Must be called before {@link join}.
88
+ * @param {MLSConfig} config
89
+ * @returns {Promise<void>}
90
+ */
91
+ initialize(config: MLSConfig): Promise<void>;
92
+ /**
93
+ * @returns {void}
94
+ */
95
+ private setupCallbacks;
96
+ /**
97
+ * Sends an engine HTTP request through the injected {@link IMlsHttpClient}, converting between
98
+ * the engine's JSON bytes and the client's objects. Conversion failures reject so the engine's
99
+ * request is completed as failed.
100
+ * @param {string} url - The absolute request URL provided by the engine.
101
+ * @param {Uint8Array} body - JSON request payload as bytes (owned copy, not a WASM memory view).
102
+ * @returns {Promise<Uint8Array>} JSON response payload as bytes.
103
+ */
104
+ private sendHttpRequest;
105
+ /**
106
+ * @param {string} url - Request URL, used only for logging.
107
+ * @param {Uint8Array} body - JSON request payload as bytes.
108
+ * @returns {unknown} the parsed request body.
109
+ * @throws {Error} when the bytes are not valid JSON.
110
+ */
111
+ private static decodeRequestBody;
112
+ /**
113
+ * @param {string} url - Request URL, used only for logging.
114
+ * @param {unknown} response - Response object from the HTTP client.
115
+ * @returns {Uint8Array} the response serialized as JSON bytes.
116
+ * @throws {Error} when the response cannot be serialized to JSON.
117
+ */
118
+ private static encodeResponseBody;
119
+ /**
120
+ * Hands a media-encryption service request outcome back to the engine. libe2ee throws
121
+ * `e2ee_negotiation_failure` out of this call when it can't recover from the service's error code
122
+ * or fails to process a successful response; this surfaces in JS as an opaque value with no
123
+ * message. That is unrecoverable for the in-flight operation, so it is reported as
124
+ * `mediaEncryptionRequestFailure` instead of escaping as an unhandled rejection.
125
+ * @param {number} handlerId
126
+ * @param {boolean} success
127
+ * @param {Uint8Array} body
128
+ * @param {number} errorCode - Media-encryption service error code, or 0 when not applicable.
129
+ * @param {string} message
130
+ * @returns {void}
131
+ */
132
+ private completeHttpRequest;
133
+ /**
134
+ * @param {*} error - Rejection from the HTTP client.
135
+ * @returns {number} the media-encryption service error code from the response body, or 0.
136
+ */
137
+ private static getMesErrorCode;
138
+ /**
139
+ * @returns {void}
140
+ */
141
+ private emitSecurityCodeIfChanged;
142
+ /**
143
+ * Starts the MLS join.
144
+ * @returns {void}
145
+ */
146
+ join(): void;
147
+ /**
148
+ * Leaves the MLS group.
149
+ * @returns {void}
150
+ */
151
+ leave(): void;
152
+ /**
153
+ * Forwards an incoming MLS protocol event (from the signaling channel) to the engine.
154
+ * @param {Uint8Array} eventData
155
+ * @param {E2eeSignalingSource} source - Which channel the event arrived on, logged for diagnostics.
156
+ * @returns {void}
157
+ */
158
+ handleEvent(eventData: Uint8Array, source: E2eeSignalingSource): void;
159
+ /**
160
+ * Tells the engine whether the signaling channel was already connected before join.
161
+ * @param {boolean} connected
162
+ * @returns {void}
163
+ */
164
+ setLlmConnectedBeforeJoin(connected: boolean): void;
165
+ /**
166
+ * Notifies the engine that the signaling channel is now connected.
167
+ * @returns {void}
168
+ */
169
+ llmConnected(): void;
170
+ /**
171
+ * @returns {string} the current security code, or '' if not initialized.
172
+ */
173
+ getSecurityCode(): string;
174
+ /**
175
+ * @returns {E2eeRosterMember[]} the current MLS roster, or [] if not initialized.
176
+ */
177
+ getRoster(): E2eeRosterMember[];
178
+ /**
179
+ * @returns {boolean} whether this client is the group leader.
180
+ */
181
+ isLeader(): boolean;
182
+ /**
183
+ * @returns {WebE2EEInstance}
184
+ */
185
+ private assertInitialized;
186
+ /**
187
+ * @param {RosterMember} member - raw WASM roster member.
188
+ * @returns {E2eeRosterMember}
189
+ */
190
+ private static toRosterMember;
191
+ }
@@ -0,0 +1,104 @@
1
+ /*!
2
+ * Copyright (c) 2015-2026 Cisco Systems, Inc. See LICENSE file.
3
+ */
4
+ /**
5
+ * SDK-facing shapes used by the isolated MLS protocol engine. Integration-specific meeting,
6
+ * identity-plugin and signaling types are added by the later adapter phases.
7
+ */
8
+ /** Credential-validation outcome from the MLS roster. Keep ordinals in sync with libe2ee. */
9
+ export declare const E2eeValidationResult: {
10
+ readonly Success: 0;
11
+ readonly PartialSuccess: 1;
12
+ readonly Failure: 2;
13
+ readonly ParseError: 3;
14
+ readonly UnknownIssuer: 4;
15
+ readonly UnknownPublicKey: 5;
16
+ readonly InvalidSignature: 6;
17
+ readonly Expired: 7;
18
+ readonly Inactive: 8;
19
+ readonly Revoked: 9;
20
+ readonly UnsupportedCaType: 10;
21
+ readonly InvalidKeypackageSignature: 11;
22
+ readonly UnsupportedCredentialType: 12;
23
+ readonly MissingDisplayNameExtension: 13;
24
+ };
25
+ export type E2eeValidationResult = (typeof E2eeValidationResult)[keyof typeof E2eeValidationResult];
26
+ /** Identity type attached to the leaf certificate. Keep ordinals in sync with libe2ee. */
27
+ export declare const E2eeIdentityType: {
28
+ readonly WebexAnonymousIdentity: 0;
29
+ readonly WebexMachineIdentity: 1;
30
+ readonly WebexUserIdentity: 2;
31
+ readonly ExternalVerifiedIdentity: 3;
32
+ };
33
+ export type E2eeIdentityType = (typeof E2eeIdentityType)[keyof typeof E2eeIdentityType];
34
+ /** A media-encryption (SFrame) key for an MLS epoch. */
35
+ export interface E2eeKey {
36
+ epoch: number;
37
+ baseKey: Uint8Array;
38
+ index: number;
39
+ indexBits: number;
40
+ canEncrypt: boolean;
41
+ }
42
+ /** SFrame parameters negotiated for an MLS group. */
43
+ export interface SframeParams {
44
+ cipherSuite: number;
45
+ epochBits: number;
46
+ }
47
+ /** Parsed certificate information returned with a roster member. */
48
+ export interface E2eeCertificateInfo {
49
+ primaryName: string;
50
+ commonName: string;
51
+ organizationName: string;
52
+ emailAddresses: string[];
53
+ domainNames: string[];
54
+ notBefore: number;
55
+ notAfter: number;
56
+ signatureAlgorithm: string;
57
+ publicKeyAlgorithm: string;
58
+ identityType?: E2eeIdentityType;
59
+ der: Uint8Array;
60
+ }
61
+ export interface E2eeIdentityResult {
62
+ result: E2eeValidationResult;
63
+ certificateChain: E2eeCertificateInfo[];
64
+ failedCertIndex?: number;
65
+ }
66
+ /** A member of the MLS roster and its credential-validation result. */
67
+ export interface E2eeRosterMember {
68
+ url: string;
69
+ displayName: string;
70
+ deviceType: string;
71
+ validationResult: E2eeValidationResult;
72
+ identityResults?: E2eeIdentityResult[];
73
+ }
74
+ /** Credentials and trust anchors consumed by the WASM engine. */
75
+ export interface MLSConfig {
76
+ participantId: string;
77
+ deviceUrl: string;
78
+ deviceType?: string;
79
+ correlationId: string;
80
+ displayName: string;
81
+ serviceUrl: string;
82
+ credentials?: {
83
+ privateKey: Uint8Array;
84
+ certChain: Uint8Array[];
85
+ };
86
+ trustAnchors?: {
87
+ webexCaRoots?: string;
88
+ domainNameRoots?: string;
89
+ userIdentityRoots?: string;
90
+ domainNameRootsP7b?: Uint8Array;
91
+ };
92
+ joinTimeout?: number;
93
+ coalesceWindow?: number;
94
+ }
95
+ /**
96
+ * HTTP transport the MLS engine uses for its protocol requests. Implemented by
97
+ * MediaEncryptionService (which routes to webex.request); injected so the engine stays pure.
98
+ * Bodies are plain JS objects: MLS converts the engine's JSON bytes to/from objects at its boundary.
99
+ */
100
+ export interface IMlsHttpClient {
101
+ request(url: string, body: unknown): Promise<unknown>;
102
+ }
103
+ /** Signaling transport that delivered an MLS protocol message. */
104
+ export type E2eeSignalingSource = 'llm' | 'mercury';
@@ -912,7 +912,7 @@ var Webinar = _webexCore.WebexPlugin.extend({
912
912
  }, _callee10);
913
913
  }))();
914
914
  },
915
- version: "3.13.0-next.6"
915
+ version: "3.13.0-next.8"
916
916
  });
917
917
  var _default = exports.default = Webinar;
918
918
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -96,5 +96,5 @@
96
96
  "//": [
97
97
  "TODO: upgrade jwt-decode when moving to node 18"
98
98
  ],
99
- "version": "3.13.0-next.6"
99
+ "version": "3.13.0-next.8"
100
100
  }