@webex/plugin-meetings 3.12.0-next.171 → 3.12.0-next.173
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/dist/aiEnableRequest/index.js +1 -1
- package/dist/annotation/index.js +53 -17
- package/dist/annotation/index.js.map +1 -1
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +35 -9
- package/dist/breakouts/index.js.map +1 -1
- package/dist/interceptors/dataChannelAuthToken.js +41 -59
- package/dist/interceptors/dataChannelAuthToken.js.map +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/meeting/index.js +327 -292
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/util.js +5 -1
- package/dist/meeting/util.js.map +1 -1
- package/dist/meetings/index.js +4 -1
- package/dist/meetings/index.js.map +1 -1
- package/dist/types/annotation/index.d.ts +19 -0
- package/dist/types/meeting/index.d.ts +46 -12
- package/dist/types/meeting/util.d.ts +3 -1
- package/dist/webinar/index.js +298 -255
- package/dist/webinar/index.js.map +1 -1
- package/package.json +13 -13
- package/src/annotation/index.ts +55 -25
- package/src/breakouts/index.ts +33 -11
- package/src/interceptors/dataChannelAuthToken.ts +48 -77
- package/src/meeting/index.ts +296 -289
- package/src/meeting/util.ts +2 -2
- package/src/meetings/index.ts +2 -1
- package/src/webinar/index.ts +168 -188
- package/test/unit/spec/annotation/index.ts +214 -182
- package/test/unit/spec/breakouts/index.ts +126 -25
- package/test/unit/spec/interceptors/dataChannelAuthToken.ts +81 -99
- package/test/unit/spec/meeting/index.js +939 -705
- package/test/unit/spec/meeting/utils.js +16 -2
- package/test/unit/spec/meetings/index.js +5 -0
- package/test/unit/spec/webinar/index.ts +886 -718
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { WebexPlugin } from '@webex/webex-core';
|
|
2
|
+
import type LLMChannel from '@webex/internal-plugin-llm';
|
|
2
3
|
import { StrokeData, RequestData, IAnnotationChannel } from './annotation.types';
|
|
3
4
|
/**
|
|
4
5
|
* @description Annotation to handle LLM and Mercury message and locus API
|
|
@@ -11,10 +12,27 @@ declare class AnnotationChannel extends WebexPlugin implements IAnnotationChanne
|
|
|
11
12
|
approvalUrl: string;
|
|
12
13
|
locusUrl: string;
|
|
13
14
|
deviceUrl: string;
|
|
15
|
+
/** Currently registered LLM channel */
|
|
16
|
+
private channel?;
|
|
17
|
+
/** Event handler bound to the channel, for cleanup */
|
|
18
|
+
private channelHandler?;
|
|
14
19
|
/**
|
|
15
20
|
* Initializes annotation module
|
|
16
21
|
*/
|
|
17
22
|
constructor(...args: any[]);
|
|
23
|
+
/**
|
|
24
|
+
* Register an LLMChannel with annotation. Only one channel can be registered
|
|
25
|
+
* at a time - the owner is responsible for switching channels when context
|
|
26
|
+
* changes (e.g., entering/leaving practice session).
|
|
27
|
+
* @param {LLMChannel} channel - The LLM channel to register
|
|
28
|
+
* @returns {void}
|
|
29
|
+
*/
|
|
30
|
+
registerChannel(channel: LLMChannel): void;
|
|
31
|
+
/**
|
|
32
|
+
* Unregister the current LLMChannel from annotation
|
|
33
|
+
* @returns {void}
|
|
34
|
+
*/
|
|
35
|
+
unregisterChannel(): void;
|
|
18
36
|
/**
|
|
19
37
|
* Process Stroke Data
|
|
20
38
|
* @param {object} data
|
|
@@ -33,6 +51,7 @@ declare class AnnotationChannel extends WebexPlugin implements IAnnotationChanne
|
|
|
33
51
|
private eventDataProcessor;
|
|
34
52
|
/**
|
|
35
53
|
* Listen to websocket messages
|
|
54
|
+
* @deprecated LLM event subscription is now handled by registerChannel()
|
|
36
55
|
* @returns {undefined}
|
|
37
56
|
*/
|
|
38
57
|
private listenToEvents;
|
|
@@ -5,6 +5,7 @@ import type { ClientEvent as RawClientEvent } from '@webex/event-dictionary-ts';
|
|
|
5
5
|
import { MediaType, StatsAnalyzer, NetworkQualityMonitor, StatsMonitor } from '@webex/internal-media-core';
|
|
6
6
|
import { DataChannelTokenType } from '@webex/internal-plugin-llm';
|
|
7
7
|
import { LocalStream, LocalCameraStream, LocalDisplayStream, LocalSystemAudioStream, LocalMicrophoneStream } from '@webex/media-helpers';
|
|
8
|
+
import { type VoiceaChannel } from '@webex/internal-plugin-voicea';
|
|
8
9
|
import type { MetricEventMeetingJoinPhase } from '@webex/internal-plugin-metrics/src/metrics.types';
|
|
9
10
|
import Roap, { type TurnDiscoverySkipReason } from '../roap/index';
|
|
10
11
|
import { type TurnServerInfo } from '../roap/types';
|
|
@@ -493,6 +494,13 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
493
494
|
turnDiscoverySkippedReason: TurnDiscoverySkipReason;
|
|
494
495
|
turnServerUsed: boolean;
|
|
495
496
|
areVoiceaEventsSetup: boolean;
|
|
497
|
+
/**
|
|
498
|
+
* Returns the initial transcription object shape.
|
|
499
|
+
* Used by constructor and reset paths to ensure consistent initialization.
|
|
500
|
+
* @private
|
|
501
|
+
* @returns {Transcription}
|
|
502
|
+
*/
|
|
503
|
+
private getInitialTranscription;
|
|
496
504
|
isMoveToInProgress: boolean;
|
|
497
505
|
registrationIdStatus: string;
|
|
498
506
|
brbState: BrbState;
|
|
@@ -513,6 +521,19 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
513
521
|
private logUploadIntervalIndex;
|
|
514
522
|
private mediaServerIp;
|
|
515
523
|
private llmHealthCheckTimer?;
|
|
524
|
+
/**
|
|
525
|
+
* The LLM channel owned by this meeting for datachannel communication.
|
|
526
|
+
* Created in updateLLMConnection, cleaned up in cleanupLLMConneciton.
|
|
527
|
+
*/
|
|
528
|
+
private llmChannel?;
|
|
529
|
+
/**
|
|
530
|
+
* The Voicea channel for transcription/captions, bound to this meeting's LLM channel.
|
|
531
|
+
*/
|
|
532
|
+
voiceaChannel?: VoiceaChannel;
|
|
533
|
+
/**
|
|
534
|
+
* Pending datachannel token saved from join response, used when creating the LLM channel.
|
|
535
|
+
*/
|
|
536
|
+
private _pendingDatachannelToken?;
|
|
516
537
|
/**
|
|
517
538
|
* @param {Object} attrs
|
|
518
539
|
* @param {Object} options
|
|
@@ -1379,6 +1400,8 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1379
1400
|
private processLocusLLMEvent;
|
|
1380
1401
|
/**
|
|
1381
1402
|
* Verifies the relay event was delivered for the active LLM session binding.
|
|
1403
|
+
* With the factory pattern, each meeting owns its channel, so we just verify
|
|
1404
|
+
* the route matches our channel's binding or the practice session binding.
|
|
1382
1405
|
* @param {RelayEvent} event Event object coming from LLM Connection
|
|
1383
1406
|
* @returns {boolean}
|
|
1384
1407
|
*/
|
|
@@ -1468,28 +1491,25 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1468
1491
|
*/
|
|
1469
1492
|
private stopListeningForMeetingEvents;
|
|
1470
1493
|
/**
|
|
1471
|
-
* Disconnects and cleans up the
|
|
1472
|
-
*
|
|
1473
|
-
* Ownership-aware: only calls `disconnectLLM` when this meeting is the
|
|
1474
|
-
* current owner of the default LLM session (or when no owner is recorded).
|
|
1475
|
-
* Event listeners belonging to this meeting instance are always detached
|
|
1476
|
-
* so they do not receive another meeting's relay events.
|
|
1494
|
+
* Disconnects and cleans up the LLM channel owned by this meeting.
|
|
1477
1495
|
*
|
|
1478
1496
|
* @param {Object} options
|
|
1479
|
-
* @param {boolean} [options.removeOnlineListener=true] removes the one-time online listener
|
|
1480
1497
|
* @param {boolean} [options.throwOnError=true] rethrows disconnect errors when true
|
|
1498
|
+
* @param {boolean} [options.preserveVoiceaChannel=false] when true, keeps voiceaChannel for switchLLMChannel() during reconnects
|
|
1481
1499
|
* @returns {Promise<void>}
|
|
1482
1500
|
*/
|
|
1483
1501
|
private cleanupLLMConneciton;
|
|
1484
1502
|
/**
|
|
1485
|
-
*
|
|
1486
|
-
*
|
|
1503
|
+
* Sets the datachannel token on the meeting's LLM channel.
|
|
1504
|
+
* Used by the DataChannelAuthTokenInterceptor after refreshing tokens.
|
|
1505
|
+
* @param {string} token - The new datachannel token
|
|
1487
1506
|
* @returns {void}
|
|
1488
1507
|
*/
|
|
1489
|
-
|
|
1508
|
+
setLLMChannelDataToken(token: string): void;
|
|
1490
1509
|
/**
|
|
1491
|
-
* Saves the data channel tokens from the join response
|
|
1492
|
-
*
|
|
1510
|
+
* Saves the data channel tokens from the join response.
|
|
1511
|
+
* Default session token is stored on this.llmChannel when available.
|
|
1512
|
+
* Practice session token is stored on the webinar's practice LLM channel.
|
|
1493
1513
|
* @param {Object} join - The parsed join response (from MeetingUtil.parseLocusJoin)
|
|
1494
1514
|
* @returns {void}
|
|
1495
1515
|
*/
|
|
@@ -2311,6 +2331,20 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
2311
2331
|
dataChannelTokenType: DataChannelTokenType;
|
|
2312
2332
|
};
|
|
2313
2333
|
}>;
|
|
2334
|
+
/**
|
|
2335
|
+
* Checks if the LLM channel is connected.
|
|
2336
|
+
* Handles practice session context automatically - returns practice session
|
|
2337
|
+
* LLM channel status when in practice session, main LLM channel status otherwise.
|
|
2338
|
+
* @returns {boolean} True if the appropriate LLM channel is connected
|
|
2339
|
+
*/
|
|
2340
|
+
isLLMConnected(): boolean;
|
|
2341
|
+
/**
|
|
2342
|
+
* Gets the locus URL from the LLM channel.
|
|
2343
|
+
* Handles practice session context automatically - returns practice session
|
|
2344
|
+
* LLM channel's locus URL when in practice session, main LLM channel's locus URL otherwise.
|
|
2345
|
+
* @returns {string | undefined} The locus URL or undefined
|
|
2346
|
+
*/
|
|
2347
|
+
getLLMLocusUrl(): string | undefined;
|
|
2314
2348
|
/**
|
|
2315
2349
|
* Determines the current data channel token type based on the meeting state.
|
|
2316
2350
|
*
|
|
@@ -49,7 +49,9 @@ declare const MeetingUtil: {
|
|
|
49
49
|
*/
|
|
50
50
|
getCaEventLabelsForIpVersion(webex: any): Array<string> | undefined;
|
|
51
51
|
joinMeeting: (meeting: any, options: any) => Promise<any>;
|
|
52
|
-
cleanUp: (meeting: any
|
|
52
|
+
cleanUp: (meeting: any, { preserveVoiceaChannel }?: {
|
|
53
|
+
preserveVoiceaChannel?: boolean;
|
|
54
|
+
}) => any;
|
|
53
55
|
disconnectPhoneAudio: (meeting: any, phoneUrl: any) => any;
|
|
54
56
|
/**
|
|
55
57
|
* Returns options for leaving a meeting.
|