@webex/plugin-meetings 3.12.0-auth-prejoin-fetch.1 → 3.12.0-llmrefactor.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/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/hashTree/hashTreeParser.js +101 -48
- package/dist/hashTree/hashTreeParser.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/locus-info/index.js +27 -2
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/types.js +2 -1
- package/dist/locus-info/types.js.map +1 -1
- package/dist/meeting/index.js +913 -921
- 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/meeting/voicea-meeting.js +2 -1
- package/dist/meeting/voicea-meeting.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +36 -92
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meetings/index.js +33 -93
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/meetings.types.js.map +1 -1
- package/dist/types/annotation/index.d.ts +19 -0
- package/dist/types/hashTree/hashTreeParser.d.ts +12 -0
- package/dist/types/locus-info/index.d.ts +6 -0
- package/dist/types/locus-info/types.d.ts +1 -0
- package/dist/types/meeting/index.d.ts +47 -20
- package/dist/types/meeting/util.d.ts +3 -1
- package/dist/types/meeting-info/meeting-info-v2.d.ts +1 -24
- package/dist/types/meetings/index.d.ts +2 -13
- package/dist/types/meetings/meetings.types.d.ts +1 -15
- package/dist/webinar/index.js +298 -255
- package/dist/webinar/index.js.map +1 -1
- package/package.json +21 -21
- package/src/annotation/index.ts +55 -25
- package/src/breakouts/index.ts +33 -11
- package/src/hashTree/hashTreeParser.ts +67 -3
- package/src/interceptors/dataChannelAuthToken.ts +48 -77
- package/src/locus-info/index.ts +20 -0
- package/src/locus-info/types.ts +1 -0
- package/src/meeting/index.ts +318 -332
- package/src/meeting/util.ts +2 -2
- package/src/meeting/voicea-meeting.ts +1 -1
- package/src/meeting-info/meeting-info-v2.ts +18 -74
- package/src/meetings/index.ts +6 -70
- package/src/meetings/meetings.types.ts +1 -17
- 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/hashTree/hashTreeParser.ts +212 -1
- package/test/unit/spec/interceptors/dataChannelAuthToken.ts +81 -99
- package/test/unit/spec/locus-info/index.js +79 -0
- package/test/unit/spec/meeting/index.js +979 -701
- package/test/unit/spec/meeting/utils.js +16 -2
- package/test/unit/spec/meeting/voicea-meeting.ts +85 -1
- package/test/unit/spec/meeting-info/meetinginfov2.js +0 -210
- package/test/unit/spec/meetings/index.js +5 -231
- package/test/unit/spec/webinar/index.ts +886 -718
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MEETING_KEY","exports","CONVERSATION_URL","SIP_URI","LOCUS_URL","MEETINGNUMBER","CORRELATION_ID","SitePreferenceSelectOption","DEFAULT_SITE_PREFERENCE_SELECT_OPTIONS","SCHEDULING"],"sources":["meetings.types.ts"],"sourcesContent":["import type {\n NoiseReductionEffectOptions,\n VirtualBackgroundEffectOptions,\n} from '@webex/media-helpers';\nimport
|
|
1
|
+
{"version":3,"names":["MEETING_KEY","exports","CONVERSATION_URL","SIP_URI","LOCUS_URL","MEETINGNUMBER","CORRELATION_ID","SitePreferenceSelectOption","DEFAULT_SITE_PREFERENCE_SELECT_OPTIONS","SCHEDULING"],"sources":["meetings.types.ts"],"sourcesContent":["import type {\n NoiseReductionEffectOptions,\n VirtualBackgroundEffectOptions,\n} from '@webex/media-helpers';\nimport {Enum} from '../constants';\n\ntype INoiseReductionEffect = Omit<\n NoiseReductionEffectOptions,\n 'authToken' | 'workletProcessorUrl' | 'legacyProcessorUrl'\n>;\ntype IVirtualBackgroundEffect = Omit<VirtualBackgroundEffectOptions, 'authToken'>;\n\nexport type {INoiseReductionEffect, IVirtualBackgroundEffect};\n\nexport const MEETING_KEY = {\n CONVERSATION_URL: 'conversationUrl',\n SIP_URI: 'sipUri',\n LOCUS_URL: 'locusUrl',\n MEETINGNUMBER: 'meetingNumber',\n CORRELATION_ID: 'correlationId',\n} as const;\n\nexport type MEETING_KEY = Enum<typeof MEETING_KEY>;\n\n// finer grained status for registration steps\nexport type MeetingRegistrationStatus = {\n fetchWebexSite: boolean;\n getGeoHint: boolean;\n startReachability: boolean;\n deviceRegister: boolean;\n mercuryConnect: boolean;\n checkH264Support: boolean;\n};\n\nexport enum SitePreferenceSelectOption {\n SCHEDULING = 'scheduling',\n}\n\nexport type FetchSitePreferencesMeViaSiteOptions = {\n siteUrl?: string;\n siteName?: string;\n selectOptions?: SitePreferenceSelectOption[];\n};\n\nexport const DEFAULT_SITE_PREFERENCE_SELECT_OPTIONS = [SitePreferenceSelectOption.SCHEDULING];\n\nexport type SitePreferencesResponse = {\n scheduling?: {\n supportScheduleWebinar?: boolean;\n webinarWebLink?: string;\n };\n};\n"],"mappings":";;;;;;;AAcO,IAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG;EACzBE,gBAAgB,EAAE,iBAAiB;EACnCC,OAAO,EAAE,QAAQ;EACjBC,SAAS,EAAE,UAAU;EACrBC,aAAa,EAAE,eAAe;EAC9BC,cAAc,EAAE;AAClB,CAAU;;AAIV;AAAA,IAUYC,0BAA0B,GAAAN,OAAA,CAAAM,0BAAA,0BAA1BA,0BAA0B;EAA1BA,0BAA0B;EAAA,OAA1BA,0BAA0B;AAAA;AAU/B,IAAMC,sCAAsC,GAAAP,OAAA,CAAAO,sCAAA,GAAG,CAACD,0BAA0B,CAACE,UAAU,CAAC","ignoreList":[]}
|
|
@@ -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;
|
|
@@ -88,6 +88,7 @@ export type HashTreeParserCallbacks = {
|
|
|
88
88
|
locusInfoUpdateCallback: LocusInfoUpdateCallback;
|
|
89
89
|
syncLatencyTracker?: SyncLatencyTracker;
|
|
90
90
|
generateTrackingId?: GenerateTrackingId;
|
|
91
|
+
isLlmExpected: () => boolean;
|
|
91
92
|
};
|
|
92
93
|
/**
|
|
93
94
|
* This error is thrown if we receive information that the meeting has ended while we're processing some hash messages.
|
|
@@ -121,6 +122,7 @@ declare class HashTreeParser {
|
|
|
121
122
|
private dataSetsSyncedDuringBackoff;
|
|
122
123
|
private syncQueueProcessingPromise;
|
|
123
124
|
private topLevelHeartbeatIntervalMs?;
|
|
125
|
+
private pendingLlmWatchdogDataSetNames;
|
|
124
126
|
/**
|
|
125
127
|
* Constructor for HashTreeParser
|
|
126
128
|
* @param {Object} options
|
|
@@ -479,6 +481,16 @@ declare class HashTreeParser {
|
|
|
479
481
|
* @returns {void}
|
|
480
482
|
*/
|
|
481
483
|
private resetHeartbeatWatchdogs;
|
|
484
|
+
/**
|
|
485
|
+
* Re-evaluates heartbeat watchdog timers for LLM data sets. While LLM is not expected,
|
|
486
|
+
* resetHeartbeatWatchdogs skips setting watchdog timers for LLM data sets and records them in
|
|
487
|
+
* pendingLlmWatchdogDataSetNames. This must be called when LLM transitions to expected (e.g. self
|
|
488
|
+
* reports JOINED) to arm the watchdogs for those pending data sets (avoids a timing issue where
|
|
489
|
+
* the "main"/"atd-active"/"atd-unmuted" data set arrives before the self update). The pending set
|
|
490
|
+
* is consumed and cleared here.
|
|
491
|
+
* @returns {void}
|
|
492
|
+
*/
|
|
493
|
+
reevaluateLlmWatchdogs(): void;
|
|
482
494
|
/**
|
|
483
495
|
* Stops all timers for the data sets to prevent any further sync attempts.
|
|
484
496
|
* @returns {void}
|
|
@@ -124,6 +124,12 @@ export default class LocusInfo extends EventsScope {
|
|
|
124
124
|
* @memberof LocusInfo
|
|
125
125
|
*/
|
|
126
126
|
init(locus?: any): void;
|
|
127
|
+
/**
|
|
128
|
+
* Whether we expect to receive updates over the LLM connection. This is used by hash tree parsers
|
|
129
|
+
* to decide whether to arm heartbeat watchdog timers for LLM data sets.
|
|
130
|
+
* @returns {boolean}
|
|
131
|
+
*/
|
|
132
|
+
private isLlmExpected;
|
|
127
133
|
/**
|
|
128
134
|
* Creates a HashTreeParser instance for a given locusUrl and stores it in the map.
|
|
129
135
|
* @param {Object} params
|
|
@@ -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 Roap, { type TurnDiscoverySkipReason } from '../roap/index';
|
|
9
10
|
import { type TurnServerInfo } from '../roap/types';
|
|
10
11
|
import { type BundlePolicy } from '../media';
|
|
@@ -13,7 +14,6 @@ import ReconnectionManager from '../reconnection-manager';
|
|
|
13
14
|
import MeetingRequest from './request';
|
|
14
15
|
import Members from '../members/index';
|
|
15
16
|
import { DESTINATION_TYPE, NETWORK_STATUS } from '../constants';
|
|
16
|
-
import type { PrefetchedMeetingInfo } from '../meetings/meetings.types';
|
|
17
17
|
import { ReceiveSlotManager } from '../multistream/receiveSlotManager';
|
|
18
18
|
import { MediaRequestManager } from '../multistream/mediaRequestManager';
|
|
19
19
|
import { Configuration as RemoteMediaManagerConfiguration, RemoteMediaManager } from '../multistream/remoteMediaManager';
|
|
@@ -492,6 +492,13 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
492
492
|
turnDiscoverySkippedReason: TurnDiscoverySkipReason;
|
|
493
493
|
turnServerUsed: boolean;
|
|
494
494
|
areVoiceaEventsSetup: boolean;
|
|
495
|
+
/**
|
|
496
|
+
* Returns the initial transcription object shape.
|
|
497
|
+
* Used by constructor and reset paths to ensure consistent initialization.
|
|
498
|
+
* @private
|
|
499
|
+
* @returns {Transcription}
|
|
500
|
+
*/
|
|
501
|
+
private getInitialTranscription;
|
|
495
502
|
isMoveToInProgress: boolean;
|
|
496
503
|
registrationIdStatus: string;
|
|
497
504
|
brbState: BrbState;
|
|
@@ -512,6 +519,19 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
512
519
|
private logUploadIntervalIndex;
|
|
513
520
|
private mediaServerIp;
|
|
514
521
|
private llmHealthCheckTimer?;
|
|
522
|
+
/**
|
|
523
|
+
* The LLM channel owned by this meeting for datachannel communication.
|
|
524
|
+
* Created in updateLLMConnection, cleaned up in cleanupLLMConneciton.
|
|
525
|
+
*/
|
|
526
|
+
private llmChannel?;
|
|
527
|
+
/**
|
|
528
|
+
* The Voicea channel for transcription/captions, bound to this meeting's LLM channel.
|
|
529
|
+
*/
|
|
530
|
+
voiceaChannel?: VoiceaChannel;
|
|
531
|
+
/**
|
|
532
|
+
* Pending datachannel token saved from join response, used when creating the LLM channel.
|
|
533
|
+
*/
|
|
534
|
+
private _pendingDatachannelToken?;
|
|
515
535
|
/**
|
|
516
536
|
* @param {Object} attrs
|
|
517
537
|
* @param {Object} options
|
|
@@ -657,13 +677,6 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
657
677
|
* @returns {Promise}
|
|
658
678
|
*/
|
|
659
679
|
fetchMeetingInfo(options: FetchMeetingInfoParams): Promise<void>;
|
|
660
|
-
/**
|
|
661
|
-
* Consumes meeting information requested before this Meeting was created.
|
|
662
|
-
*
|
|
663
|
-
* @param {PrefetchedMeetingInfo} prefetchedMeetingInfo opaque early request handle
|
|
664
|
-
* @returns {Promise<void>} resolves after the response is applied to this Meeting
|
|
665
|
-
*/
|
|
666
|
-
consumePrefetchedMeetingInfo(prefetchedMeetingInfo: PrefetchedMeetingInfo): Promise<void>;
|
|
667
680
|
/**
|
|
668
681
|
* Checks if the supplied password/host key is correct. It returns a promise with information whether the
|
|
669
682
|
* password and captcha code were correct or not.
|
|
@@ -1385,6 +1398,8 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1385
1398
|
private processLocusLLMEvent;
|
|
1386
1399
|
/**
|
|
1387
1400
|
* Verifies the relay event was delivered for the active LLM session binding.
|
|
1401
|
+
* With the factory pattern, each meeting owns its channel, so we just verify
|
|
1402
|
+
* the route matches our channel's binding or the practice session binding.
|
|
1388
1403
|
* @param {RelayEvent} event Event object coming from LLM Connection
|
|
1389
1404
|
* @returns {boolean}
|
|
1390
1405
|
*/
|
|
@@ -1474,28 +1489,25 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1474
1489
|
*/
|
|
1475
1490
|
private stopListeningForMeetingEvents;
|
|
1476
1491
|
/**
|
|
1477
|
-
* Disconnects and cleans up the
|
|
1478
|
-
*
|
|
1479
|
-
* Ownership-aware: only calls `disconnectLLM` when this meeting is the
|
|
1480
|
-
* current owner of the default LLM session (or when no owner is recorded).
|
|
1481
|
-
* Event listeners belonging to this meeting instance are always detached
|
|
1482
|
-
* so they do not receive another meeting's relay events.
|
|
1492
|
+
* Disconnects and cleans up the LLM channel owned by this meeting.
|
|
1483
1493
|
*
|
|
1484
1494
|
* @param {Object} options
|
|
1485
|
-
* @param {boolean} [options.removeOnlineListener=true] removes the one-time online listener
|
|
1486
1495
|
* @param {boolean} [options.throwOnError=true] rethrows disconnect errors when true
|
|
1496
|
+
* @param {boolean} [options.preserveVoiceaChannel=false] when true, keeps voiceaChannel for switchLLMChannel() during reconnects
|
|
1487
1497
|
* @returns {Promise<void>}
|
|
1488
1498
|
*/
|
|
1489
1499
|
private cleanupLLMConneciton;
|
|
1490
1500
|
/**
|
|
1491
|
-
*
|
|
1492
|
-
*
|
|
1501
|
+
* Sets the datachannel token on the meeting's LLM channel.
|
|
1502
|
+
* Used by the DataChannelAuthTokenInterceptor after refreshing tokens.
|
|
1503
|
+
* @param {string} token - The new datachannel token
|
|
1493
1504
|
* @returns {void}
|
|
1494
1505
|
*/
|
|
1495
|
-
|
|
1506
|
+
setLLMChannelDataToken(token: string): void;
|
|
1496
1507
|
/**
|
|
1497
|
-
* Saves the data channel tokens from the join response
|
|
1498
|
-
*
|
|
1508
|
+
* Saves the data channel tokens from the join response.
|
|
1509
|
+
* Default session token is stored on this.llmChannel when available.
|
|
1510
|
+
* Practice session token is stored on the webinar's practice LLM channel.
|
|
1499
1511
|
* @param {Object} join - The parsed join response (from MeetingUtil.parseLocusJoin)
|
|
1500
1512
|
* @returns {void}
|
|
1501
1513
|
*/
|
|
@@ -1616,6 +1628,7 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1616
1628
|
* @returns {boolean}
|
|
1617
1629
|
*/
|
|
1618
1630
|
private isErrorMeaningLocusDroppedUs;
|
|
1631
|
+
private isLocusUserFullError;
|
|
1619
1632
|
/**
|
|
1620
1633
|
* Determines if the next media attempt should use only TURN-TLS (iceTransportPolicy='relay').
|
|
1621
1634
|
* We do this in the hope that it will minimize the chance of Homer sending DTLS packets on a wrong
|
|
@@ -2316,6 +2329,20 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
2316
2329
|
dataChannelTokenType: DataChannelTokenType;
|
|
2317
2330
|
};
|
|
2318
2331
|
}>;
|
|
2332
|
+
/**
|
|
2333
|
+
* Checks if the LLM channel is connected.
|
|
2334
|
+
* Handles practice session context automatically - returns practice session
|
|
2335
|
+
* LLM channel status when in practice session, main LLM channel status otherwise.
|
|
2336
|
+
* @returns {boolean} True if the appropriate LLM channel is connected
|
|
2337
|
+
*/
|
|
2338
|
+
isLLMConnected(): boolean;
|
|
2339
|
+
/**
|
|
2340
|
+
* Gets the locus URL from the LLM channel.
|
|
2341
|
+
* Handles practice session context automatically - returns practice session
|
|
2342
|
+
* LLM channel's locus URL when in practice session, main LLM channel's locus URL otherwise.
|
|
2343
|
+
* @returns {string | undefined} The locus URL or undefined
|
|
2344
|
+
*/
|
|
2345
|
+
getLLMLocusUrl(): string | undefined;
|
|
2319
2346
|
/**
|
|
2320
2347
|
* Determines the current data channel token type based on the meeting state.
|
|
2321
2348
|
*
|
|
@@ -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.
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
import { DESTINATION_TYPE } from '../constants';
|
|
2
|
-
export type PreJoinContext = {
|
|
3
|
-
correlationId: string;
|
|
4
|
-
sessionCorrelationId?: string;
|
|
5
|
-
};
|
|
6
|
-
type MeetingInfoV2Config = {
|
|
7
|
-
api?: 'meetingInfo';
|
|
8
|
-
preJoinContext?: never;
|
|
9
|
-
} | {
|
|
10
|
-
api: 'preJoin';
|
|
11
|
-
preJoinContext: PreJoinContext;
|
|
12
|
-
};
|
|
13
2
|
/**
|
|
14
3
|
* Error to indicate that wbxappapi requires a password
|
|
15
4
|
*/
|
|
@@ -161,22 +150,11 @@ export declare class MeetingInfoV2StaticMeetingLinkAlreadyExists extends Error {
|
|
|
161
150
|
*/
|
|
162
151
|
export default class MeetingInfoV2 {
|
|
163
152
|
webex: any;
|
|
164
|
-
private readonly api;
|
|
165
|
-
private readonly preJoinContext?;
|
|
166
153
|
/**
|
|
167
154
|
*
|
|
168
155
|
* @param {WebexSDK} webex
|
|
169
|
-
* @param {MeetingInfoV2Config} config
|
|
170
156
|
*/
|
|
171
|
-
constructor(webex: any
|
|
172
|
-
/**
|
|
173
|
-
* Creates a meeting-info provider whose requests consistently use preJoin.
|
|
174
|
-
*
|
|
175
|
-
* @param {WebexSDK} webex
|
|
176
|
-
* @param {PreJoinContext} preJoinContext identifiers retained for later requests
|
|
177
|
-
* @returns {MeetingInfoV2}
|
|
178
|
-
*/
|
|
179
|
-
static createPreJoinProvider(webex: any, preJoinContext: PreJoinContext): MeetingInfoV2;
|
|
157
|
+
constructor(webex: any);
|
|
180
158
|
/**
|
|
181
159
|
* converts hydra id into conversation url and persons Id
|
|
182
160
|
* @param {String} destination one of many different types of destinations to look up info for
|
|
@@ -277,4 +255,3 @@ export default class MeetingInfoV2 {
|
|
|
277
255
|
correlationId?: string;
|
|
278
256
|
}, registrationId?: string, fullSiteUrl?: string, classificationId?: string): Promise<any>;
|
|
279
257
|
}
|
|
280
|
-
export {};
|
|
@@ -8,7 +8,7 @@ import 'webrtc-adapter';
|
|
|
8
8
|
import { LOCUSEVENT, DESTINATION_TYPE } from '../constants';
|
|
9
9
|
import { CallStateForMetrics } from '../meeting';
|
|
10
10
|
import Reachability from '../reachability';
|
|
11
|
-
import { FetchSitePreferencesMeViaSiteOptions, INoiseReductionEffect, IVirtualBackgroundEffect, MeetingRegistrationStatus,
|
|
11
|
+
import { FetchSitePreferencesMeViaSiteOptions, INoiseReductionEffect, IVirtualBackgroundEffect, MeetingRegistrationStatus, SitePreferencesResponse } from './meetings.types';
|
|
12
12
|
import { HashTreeMessage } from '../hashTree/hashTreeParser';
|
|
13
13
|
export type LocusEvent = {
|
|
14
14
|
eventType: LOCUSEVENT;
|
|
@@ -429,21 +429,11 @@ export default class Meetings extends WebexPlugin {
|
|
|
429
429
|
* @param {String} [meetingLookupUrl] - meeting info prefetch url
|
|
430
430
|
* @param {string} sessionCorrelationId - the optional specified sessionCorrelationId (callStateForMetrics.sessionCorrelationId) can be provided instead
|
|
431
431
|
* @param {String} classificationId - If space support classification, it will provide it while start instant meeting
|
|
432
|
-
* @param {PrefetchedMeetingInfo} prefetchedMeetingInfo - meeting information requested before creating the Meeting
|
|
433
432
|
* @returns {Promise<Meeting>} A new Meeting.
|
|
434
433
|
* @public
|
|
435
434
|
* @memberof Meetings
|
|
436
435
|
*/
|
|
437
|
-
create(destination: string, type?: DESTINATION_TYPE, useRandomDelayForInfo?: boolean, infoExtraParams?: {}, correlationId?: string, failOnMissingMeetingInfo?: boolean, callStateForMetrics?: CallStateForMetrics, meetingInfo?: any, meetingLookupUrl?: any, sessionCorrelationId?: string, classificationId?: string
|
|
438
|
-
/**
|
|
439
|
-
* Starts meeting-information retrieval without creating or registering a Meeting.
|
|
440
|
-
*
|
|
441
|
-
* @param {PrefetchMeetingInfoParams} params request destination and metric identifiers
|
|
442
|
-
* @returns {PrefetchedMeetingInfo} opaque handle consumed later by create() or Meeting
|
|
443
|
-
* @public
|
|
444
|
-
* @memberof Meetings
|
|
445
|
-
*/
|
|
446
|
-
prefetchMeetingInfo({ destination, type, extraParams, preJoinContext, classificationId, }: PrefetchMeetingInfoParams): PrefetchedMeetingInfo;
|
|
436
|
+
create(destination: string, type?: DESTINATION_TYPE, useRandomDelayForInfo?: boolean, infoExtraParams?: {}, correlationId?: string, failOnMissingMeetingInfo?: boolean, callStateForMetrics?: CallStateForMetrics, meetingInfo?: any, meetingLookupUrl?: any, sessionCorrelationId?: string, classificationId?: string): any;
|
|
447
437
|
/**
|
|
448
438
|
* Enable static meeting links for given conversation url.
|
|
449
439
|
*
|
|
@@ -478,7 +468,6 @@ export default class Meetings extends WebexPlugin {
|
|
|
478
468
|
* @param {Object} [meetingInfo] - Pre-fetched complete meeting info
|
|
479
469
|
* @param {String} [meetingLookupUrl] - meeting info prefetch url
|
|
480
470
|
* @param {String} classificationId see create()
|
|
481
|
-
* @param {PrefetchedMeetingInfo} prefetchedMeetingInfo - meeting information requested before creating the Meeting
|
|
482
471
|
* @returns {Promise} a new meeting instance complete with meeting info and destination
|
|
483
472
|
* @private
|
|
484
473
|
* @memberof Meetings
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { NoiseReductionEffectOptions, VirtualBackgroundEffectOptions } from '@webex/media-helpers';
|
|
2
|
-
import
|
|
3
|
-
import type { PreJoinContext } from '../meeting-info/meeting-info-v2';
|
|
4
|
-
import { DESTINATION_TYPE, Enum } from '../constants';
|
|
2
|
+
import { Enum } from '../constants';
|
|
5
3
|
type INoiseReductionEffect = Omit<NoiseReductionEffectOptions, 'authToken' | 'workletProcessorUrl' | 'legacyProcessorUrl'>;
|
|
6
4
|
type IVirtualBackgroundEffect = Omit<VirtualBackgroundEffectOptions, 'authToken'>;
|
|
7
5
|
export type { INoiseReductionEffect, IVirtualBackgroundEffect };
|
|
@@ -36,15 +34,3 @@ export type SitePreferencesResponse = {
|
|
|
36
34
|
webinarWebLink?: string;
|
|
37
35
|
};
|
|
38
36
|
};
|
|
39
|
-
export type PrefetchMeetingInfoParams = {
|
|
40
|
-
destination: any;
|
|
41
|
-
type?: DESTINATION_TYPE;
|
|
42
|
-
extraParams?: Record<string, any>;
|
|
43
|
-
preJoinContext: PreJoinContext;
|
|
44
|
-
classificationId?: string;
|
|
45
|
-
};
|
|
46
|
-
export type PrefetchedMeetingInfo = {
|
|
47
|
-
request: Promise<any>;
|
|
48
|
-
provider: MeetingInfoV2;
|
|
49
|
-
extraParams: Record<string, any>;
|
|
50
|
-
};
|