sip-connector 21.0.0 → 23.0.0

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 (32) hide show
  1. package/dist/{@SipConnector-CQ2xR48Y.js → @SipConnector-CmHfa0Ce.js} +892 -669
  2. package/dist/@SipConnector-DwgaqxCG.cjs +1 -0
  3. package/dist/ApiManager/@ApiManager.d.ts +8 -10
  4. package/dist/ApiManager/constants.d.ts +80 -44
  5. package/dist/ApiManager/events.d.ts +40 -40
  6. package/dist/ApiManager/getHeader.d.ts +3 -0
  7. package/dist/ApiManager/index.d.ts +3 -2
  8. package/dist/CallManager/@CallManager.d.ts +7 -1
  9. package/dist/CallManager/StreamsChangeTracker.d.ts +35 -0
  10. package/dist/CallManager/StreamsManagerProvider.d.ts +11 -3
  11. package/dist/ConnectionManager/ConnectionStateMachine.d.ts +0 -2
  12. package/dist/ContentedStreamManager/@ContentedStreamManager.d.ts +19 -0
  13. package/dist/ContentedStreamManager/ContentedStreamStateMachine.d.ts +52 -0
  14. package/dist/ContentedStreamManager/events.d.ts +15 -0
  15. package/dist/ContentedStreamManager/index.d.ts +4 -0
  16. package/dist/ContentedStreamManager/types.d.ts +7 -0
  17. package/dist/SipConnector/@SipConnector.d.ts +2 -5
  18. package/dist/SipConnector/events.d.ts +2 -2
  19. package/dist/SipConnectorFacade/@SipConnectorFacade.d.ts +3 -3
  20. package/dist/StatsPeerConnection/@StatsPeerConnection.d.ts +2 -1
  21. package/dist/VideoSendingBalancer/types.d.ts +2 -2
  22. package/dist/__fixtures__/constants.d.ts +5 -6
  23. package/dist/__fixtures__/createManagers.d.ts +12 -0
  24. package/dist/__fixtures__/eventNames.d.ts +3 -3
  25. package/dist/doMock.cjs +1 -1
  26. package/dist/doMock.js +70 -71
  27. package/dist/index.cjs +1 -1
  28. package/dist/index.d.ts +1 -1
  29. package/dist/index.js +11 -11
  30. package/dist/tools/BaseStateMachine.d.ts +2 -0
  31. package/package.json +4 -4
  32. package/dist/@SipConnector-B7rwpjv6.cjs +0 -1
@@ -1,7 +1,16 @@
1
1
  import { TypedEvents } from 'events-constructor';
2
- import { EUseLicense, EEventsMainCAM } from './constants';
2
+ import { EContentedStreamCodec, EContentUseLicense, EContentMainCAM } from './constants';
3
3
  import { TChannels, TParametersModeratorsList, TParametersWebcast, TParametersConferenceParticipantTokenIssued } from './types';
4
4
  export declare enum EEvent {
5
+ ENTER_ROOM = "enter-room",
6
+ MAIN_CAM_CONTROL = "main-cam-control",
7
+ USE_LICENSE = "use-license",
8
+ NEW_DTMF = "new-dtmf",
9
+ CONFERENCE_PARTICIPANT_TOKEN_ISSUED = "conference:participant-token-issued",
10
+ CONTENTED_STREAM_AVAILABLE = "contented-stream:available",
11
+ CONTENTED_STREAM_NOT_AVAILABLE = "contented-stream:not-available",
12
+ PRESENTATION_MUST_STOP = "presentation:must-stop",
13
+ CHANNELS_ALL = "channels:all",
5
14
  CHANNELS_NOTIFY = "channels:notify",
6
15
  PARTICIPANT_ADDED_TO_LIST_MODERATORS = "participant:added-to-list-moderators",
7
16
  PARTICIPANT_REMOVED_FROM_LIST_MODERATORS = "participant:removed-from-list-moderators",
@@ -16,24 +25,33 @@ export declare enum EEvent {
16
25
  WEBCAST_STOPPED = "webcast:stopped",
17
26
  ACCOUNT_CHANGED = "account:changed",
18
27
  ACCOUNT_DELETED = "account:deleted",
19
- CONFERENCE_PARTICIPANT_TOKEN_ISSUED = "conference:participant-token-issued",
20
- CHANNELS = "channels",
21
- ENTER_ROOM = "enterRoom",
22
- SHARE_STATE = "shareState",
23
- MAIN_CAM_CONTROL = "main-cam-control",
24
- USE_LICENSE = "useLicense",
25
- ADMIN_START_MAIN_CAM = "admin-start-main-cam",
26
- ADMIN_STOP_MAIN_CAM = "admin-stop-main-cam",
27
- ADMIN_START_MIC = "admin-start-mic",
28
- ADMIN_STOP_MIC = "admin-stop-mic",
29
- ADMIN_FORCE_SYNC_MEDIA_STATE = "admin-force-sync-media-state",
30
- AVAILABLE_SECOND_REMOTE_STREAM = "availableSecondRemoteStream",
31
- NOT_AVAILABLE_SECOND_REMOTE_STREAM = "notAvailableSecondRemoteStream",
32
- MUST_STOP_PRESENTATION = "mustStopPresentation",
33
- NEW_DTMF = "newDTMF"
28
+ ADMIN_START_MAIN_CAM = "admin:start-main-cam",
29
+ ADMIN_STOP_MAIN_CAM = "admin:stop-main-cam",
30
+ ADMIN_START_MIC = "admin:start-mic",
31
+ ADMIN_STOP_MIC = "admin:stop-mic",
32
+ ADMIN_FORCE_SYNC_MEDIA_STATE = "admin:force-sync-media-state"
34
33
  }
35
- export declare const EVENT_NAMES: readonly ["participation:accepting-word-request", "participation:cancelling-word-request", "participant:move-request-to-stream", "channels:notify", "conference:participant-token-issued", "account:changed", "account:deleted", "webcast:started", "webcast:stopped", "participant:added-to-list-moderators", "participant:removed-from-list-moderators", "participant:move-request-to-spectators", "participant:move-request-to-spectators-synthetic", "participant:move-request-to-spectators-with-audio-id", "participant:move-request-to-participants", "channels", "enterRoom", "shareState", "main-cam-control", "useLicense", "admin-start-main-cam", "admin-stop-main-cam", "admin-start-mic", "admin-stop-mic", "admin-force-sync-media-state", "availableSecondRemoteStream", "notAvailableSecondRemoteStream", "mustStopPresentation", "newDTMF"];
34
+ export declare const EVENT_NAMES: readonly ["enter-room", "main-cam-control", "use-license", "new-dtmf", "conference:participant-token-issued", "contented-stream:available", "contented-stream:not-available", "presentation:must-stop", "channels:all", "channels:notify", "participant:added-to-list-moderators", "participant:removed-from-list-moderators", "participant:move-request-to-stream", "participant:move-request-to-spectators", "participant:move-request-to-spectators-synthetic", "participant:move-request-to-spectators-with-audio-id", "participant:move-request-to-participants", "participation:accepting-word-request", "participation:cancelling-word-request", "webcast:started", "webcast:stopped", "account:changed", "account:deleted", "admin:start-main-cam", "admin:stop-main-cam", "admin:start-mic", "admin:stop-mic", "admin:force-sync-media-state"];
36
35
  export type TEventMap = {
36
+ 'enter-room': {
37
+ room: string;
38
+ participantName?: string;
39
+ };
40
+ 'main-cam-control': {
41
+ mainCam?: EContentMainCAM;
42
+ resolutionMainCam?: string;
43
+ };
44
+ 'use-license': EContentUseLicense;
45
+ 'new-dtmf': {
46
+ originator: string;
47
+ };
48
+ 'conference:participant-token-issued': TParametersConferenceParticipantTokenIssued;
49
+ 'contented-stream:available': {
50
+ codec?: EContentedStreamCodec;
51
+ };
52
+ 'contented-stream:not-available': Record<string, never>;
53
+ 'presentation:must-stop': Record<string, never>;
54
+ 'channels:all': TChannels;
37
55
  'channels:notify': TChannels;
38
56
  'participant:added-to-list-moderators': TParametersModeratorsList;
39
57
  'participant:removed-from-list-moderators': TParametersModeratorsList;
@@ -55,39 +73,21 @@ export type TEventMap = {
55
73
  'webcast:stopped': TParametersWebcast;
56
74
  'account:changed': Record<string, never>;
57
75
  'account:deleted': Record<string, never>;
58
- 'conference:participant-token-issued': TParametersConferenceParticipantTokenIssued;
59
- channels: TChannels;
60
- enterRoom: {
61
- room: string;
62
- participantName: string;
63
- };
64
- shareState: Record<string, never>;
65
- 'main-cam-control': {
66
- mainCam?: EEventsMainCAM;
67
- resolutionMainCam?: string;
68
- };
69
- useLicense: EUseLicense;
70
- 'admin-start-main-cam': {
76
+ 'admin:start-main-cam': {
71
77
  isSyncForced: boolean;
72
78
  };
73
- 'admin-stop-main-cam': {
79
+ 'admin:stop-main-cam': {
74
80
  isSyncForced: boolean;
75
81
  };
76
- 'admin-start-mic': {
82
+ 'admin:start-mic': {
77
83
  isSyncForced: boolean;
78
84
  };
79
- 'admin-stop-mic': {
85
+ 'admin:stop-mic': {
80
86
  isSyncForced: boolean;
81
87
  };
82
- 'admin-force-sync-media-state': {
88
+ 'admin:force-sync-media-state': {
83
89
  isSyncForced: boolean;
84
90
  };
85
- availableSecondRemoteStream: Record<string, never>;
86
- notAvailableSecondRemoteStream: Record<string, never>;
87
- mustStopPresentation: Record<string, never>;
88
- newDTMF: {
89
- originator: string;
90
- };
91
91
  };
92
92
  export type TEvents = TypedEvents<TEventMap>;
93
93
  export declare const createEvents: () => TypedEvents<TEventMap, readonly (keyof TEventMap)[]>;
@@ -0,0 +1,3 @@
1
+ import { EKeyHeader, EValueHeader } from './constants';
2
+ import { IncomingRequest } from '@krivega/jssip';
3
+ export declare const getHeader: <T extends EKeyHeader>(request: IncomingRequest, header: T) => EValueHeader<T> | undefined;
@@ -1,5 +1,6 @@
1
1
  export { default as ApiManager } from './@ApiManager';
2
- export { EContentTypeReceived, EContentTypeSent, EEventsMainCAM, EEventsMic, EEventsSyncMediaState, EHeader, EShareState, EUseLicense, } from './constants';
2
+ export { createEvents as createApiManagerEvents } from './events';
3
+ export { EContentTypeReceived, EContentTypeSent, EContentMainCAM, EContentMic, EContentSyncMediaState, EHeader, EKeyHeader, EContentedStreamSendAndReceive, EContentUseLicense, EContentedStreamCodec, } from './constants';
3
4
  export { EVENT_NAMES as API_MANAGER_EVENT_NAMES } from './events';
4
- export type { TEventMap as TApiManagerEventMap } from './events';
5
+ export type { TEventMap as TApiManagerEventMap, TEvents as TApiManagerEvents } from './events';
5
6
  export type { TChannels } from './types';
@@ -2,6 +2,7 @@ import { CallStateMachine, TCallActor } from './CallStateMachine';
2
2
  import { StreamsManagerProvider } from './StreamsManagerProvider';
3
3
  import { RTCSession } from '@krivega/jssip';
4
4
  import { ConferenceStateManager } from '../ConferenceStateManager';
5
+ import { ContentedStreamManager } from '../ContentedStreamManager';
5
6
  import { TEventMap, TEvents } from './events';
6
7
  import { TAnswerToIncomingCall, TCallRoleSpectator, TReplaceMediaStream, TStartCall, TRemoteStreams } from './types';
7
8
  declare class CallManager {
@@ -14,16 +15,19 @@ declare class CallManager {
14
15
  private readonly mainRemoteStreamsManager;
15
16
  private readonly recvRemoteStreamsManager;
16
17
  private readonly streamsManagerProvider;
18
+ private readonly contentedStreamManager;
17
19
  private readonly roleManager;
18
20
  private readonly mcuSession;
19
21
  private recvSession?;
20
22
  private disposeRecvSessionTrackListener?;
21
- constructor(conferenceStateManager: ConferenceStateManager);
23
+ private readonly streamsChangeTracker;
24
+ constructor(conferenceStateManager: ConferenceStateManager, contentedStreamManager: ContentedStreamManager);
22
25
  get callActor(): TCallActor;
23
26
  get requested(): boolean;
24
27
  get connection(): RTCPeerConnection | undefined;
25
28
  get isCallActive(): boolean;
26
29
  getStreamsManagerProvider(): StreamsManagerProvider;
30
+ getContentedStreamManager(): ContentedStreamManager;
27
31
  getEstablishedRTCSession: () => RTCSession | undefined;
28
32
  on<T extends keyof TEventMap>(eventName: T, handler: (data: TEventMap[T]) => void): () => void;
29
33
  onRace<T extends keyof TEventMap>(eventNames: T[], handler: (data: TEventMap[T], eventName: string) => void): () => void;
@@ -37,6 +41,7 @@ declare class CallManager {
37
41
  answerToIncomingCall: TAnswerToIncomingCall;
38
42
  getMainRemoteStream(): MediaStream | undefined;
39
43
  getRemoteStreams(): TRemoteStreams;
44
+ readonly getActivePeerConnection: () => RTCPeerConnection | undefined;
40
45
  setCallRoleParticipant(): void;
41
46
  setCallRoleSpectatorSynthetic(): void;
42
47
  setCallRoleSpectator(recvParams: TCallRoleSpectator['recvParams']): void;
@@ -61,5 +66,6 @@ declare class CallManager {
61
66
  private startRecvSession;
62
67
  private stopRecvSession;
63
68
  private readonly onRoleChanged;
69
+ private subscribeContentedStreamEvents;
64
70
  }
65
71
  export default CallManager;
@@ -0,0 +1,35 @@
1
+ import { TRemoteStreams } from './types';
2
+ /**
3
+ * Сравнивает два объекта TRemoteStreams на равенство по ID потоков
4
+ * @param streams1 - Первый объект streams для сравнения
5
+ * @param streams2 - Второй объект streams для сравнения
6
+ * @returns true, если streams равны (имеют одинаковые ID mainStream и contentedStream)
7
+ */
8
+ export declare const hasStreamsEqual: (streams1?: TRemoteStreams, streams2?: TRemoteStreams) => boolean;
9
+ /**
10
+ * Класс для отслеживания изменений удаленных streams
11
+ * Хранит последнее состояние streams и определяет, изменились ли они
12
+ */
13
+ export declare class StreamsChangeTracker {
14
+ private lastEmittedStreams?;
15
+ /**
16
+ * Проверяет, изменились ли streams с последнего сохраненного состояния
17
+ * @param streams - Текущие streams для проверки
18
+ * @returns true, если streams изменились
19
+ */
20
+ hasChanged(streams: TRemoteStreams): boolean;
21
+ /**
22
+ * Сохраняет текущие streams как последнее эмитнутое состояние
23
+ * @param streams - Streams для сохранения
24
+ */
25
+ updateLastEmittedStreams(streams: TRemoteStreams): void;
26
+ /**
27
+ * Получает последние эмитнутые streams
28
+ * @returns Последние сохраненные streams или undefined
29
+ */
30
+ getLastEmittedStreams(): TRemoteStreams | undefined;
31
+ /**
32
+ * Сбрасывает состояние трекера
33
+ */
34
+ reset(): void;
35
+ }
@@ -1,10 +1,18 @@
1
+ import { TContentedStreamStateInfo } from '../ContentedStreamManager';
1
2
  import { RemoteStreamsManager } from './RemoteStreamsManager';
2
3
  import { TStreamsManagerTools } from './types';
3
4
  export declare class StreamsManagerProvider {
4
5
  private readonly mainRemoteStreamsManager;
5
6
  private readonly recvRemoteStreamsManager;
6
7
  constructor(mainRemoteStreamsManager: RemoteStreamsManager, recvRemoteStreamsManager: RemoteStreamsManager);
7
- getActiveStreamsManagerTools(isSpectator: boolean): TStreamsManagerTools;
8
- getMainRemoteStreamsManagerTools(): TStreamsManagerTools;
9
- getRecvRemoteStreamsManagerTools(): TStreamsManagerTools;
8
+ getActiveStreamsManagerTools({ isSpectator, stateInfo, }: {
9
+ isSpectator: boolean;
10
+ stateInfo: TContentedStreamStateInfo;
11
+ }): TStreamsManagerTools;
12
+ getMainRemoteStreamsManagerTools({ stateInfo, }: {
13
+ stateInfo: TContentedStreamStateInfo;
14
+ }): TStreamsManagerTools;
15
+ getRecvRemoteStreamsManagerTools({ stateInfo, }: {
16
+ stateInfo: TContentedStreamStateInfo;
17
+ }): TStreamsManagerTools;
10
18
  }
@@ -71,7 +71,6 @@ declare const connectionMachine: import('xstate').StateMachine<IConnectionMachin
71
71
  export type TConnectionSnapshot = SnapshotFrom<typeof connectionMachine>;
72
72
  export type TConnectionActor = ActorRefFrom<typeof connectionMachine>;
73
73
  export default class ConnectionStateMachine extends BaseStateMachine<typeof connectionMachine, EState> {
74
- private readonly stateChangeListeners;
75
74
  private readonly events;
76
75
  private unsubscribeFromEvents?;
77
76
  constructor(events: TEvents);
@@ -92,7 +91,6 @@ export default class ConnectionStateMachine extends BaseStateMachine<typeof conn
92
91
  startInitUa(): void;
93
92
  reset(): void;
94
93
  destroy(): void;
95
- onStateChange(listener: (state: EState) => void): () => void;
96
94
  canTransition(event: TConnectionMachineEvent): boolean;
97
95
  getValidEvents(): TConnectionMachineEvent[];
98
96
  private hasState;
@@ -0,0 +1,19 @@
1
+ import { ContentedStreamStateMachine } from './ContentedStreamStateMachine';
2
+ import { ApiManager, EContentedStreamCodec } from '../ApiManager';
3
+ import { TEventMap, TEvents } from './events';
4
+ import { TContentedStreamStateInfo } from './types';
5
+ declare class ContentedStreamManager {
6
+ readonly events: TEvents;
7
+ readonly stateMachine: ContentedStreamStateMachine;
8
+ constructor();
9
+ get isAvailable(): boolean;
10
+ get codec(): EContentedStreamCodec | undefined;
11
+ getStateInfo(): TContentedStreamStateInfo;
12
+ reset(): void;
13
+ on<T extends keyof TEventMap>(eventName: T, handler: (data: TEventMap[T]) => void): () => void;
14
+ once<T extends keyof TEventMap>(eventName: T, handler: (data: TEventMap[T]) => void): () => void;
15
+ off<T extends keyof TEventMap>(eventName: T, handler: (data: TEventMap[T]) => void): void;
16
+ subscribeToApiEvents(apiManager: ApiManager): void;
17
+ private proxyEvents;
18
+ }
19
+ export default ContentedStreamManager;
@@ -0,0 +1,52 @@
1
+ import { BaseStateMachine } from '../tools/BaseStateMachine';
2
+ import { ActorRefFrom, SnapshotFrom } from 'xstate';
3
+ import { TApiManagerEvents, EContentedStreamCodec } from '../ApiManager';
4
+ import { TContentedStreamStateInfo } from './types';
5
+ export declare enum EState {
6
+ NOT_AVAILABLE = "contented-stream:not-available",
7
+ AVAILABLE = "contented-stream:available"
8
+ }
9
+ type TContentedStreamEvent = {
10
+ type: 'CONTENTED_STREAM.AVAILABLE';
11
+ codec?: EContentedStreamCodec;
12
+ } | {
13
+ type: 'CONTENTED_STREAM.NOT_AVAILABLE';
14
+ } | {
15
+ type: 'CONTENTED_STREAM.RESET';
16
+ };
17
+ interface IContentedStreamContext {
18
+ codec?: EContentedStreamCodec;
19
+ }
20
+ declare const contentedStreamMachine: import('xstate').StateMachine<IContentedStreamContext, {
21
+ type: "CONTENTED_STREAM.AVAILABLE";
22
+ codec?: EContentedStreamCodec;
23
+ } | {
24
+ type: "CONTENTED_STREAM.NOT_AVAILABLE";
25
+ } | {
26
+ type: "CONTENTED_STREAM.RESET";
27
+ }, {}, never, {
28
+ type: "setCodec";
29
+ params: import('xstate').NonReducibleUnknown;
30
+ } | {
31
+ type: "clearCodec";
32
+ params: import('xstate').NonReducibleUnknown;
33
+ }, never, never, EState, string, import('xstate').NonReducibleUnknown, import('xstate').NonReducibleUnknown, import('xstate').EventObject, import('xstate').MetaObject, {
34
+ id: "contented-stream";
35
+ states: {
36
+ readonly "contented-stream:not-available": {};
37
+ readonly "contented-stream:available": {};
38
+ };
39
+ }>;
40
+ export type TContentedStreamSnapshot = SnapshotFrom<typeof contentedStreamMachine>;
41
+ export type TContentedStreamActor = ActorRefFrom<typeof contentedStreamMachine>;
42
+ export declare class ContentedStreamStateMachine extends BaseStateMachine<typeof contentedStreamMachine, EState> {
43
+ constructor();
44
+ get isAvailable(): boolean;
45
+ get isNotAvailable(): boolean;
46
+ get codec(): EContentedStreamCodec | undefined;
47
+ getStateInfo(): TContentedStreamStateInfo;
48
+ reset(): void;
49
+ send(event: TContentedStreamEvent): void;
50
+ subscribeToApiEvents(apiManager: TApiManagerEvents): void;
51
+ }
52
+ export {};
@@ -0,0 +1,15 @@
1
+ import { TypedEvents } from 'events-constructor';
2
+ import { EContentedStreamCodec } from '../ApiManager';
3
+ export declare enum EEvent {
4
+ AVAILABLE = "available",
5
+ NOT_AVAILABLE = "not-available"
6
+ }
7
+ export declare const EVENT_NAMES: readonly [EEvent.AVAILABLE, EEvent.NOT_AVAILABLE];
8
+ export type TEventMap = {
9
+ available: {
10
+ codec?: EContentedStreamCodec;
11
+ };
12
+ 'not-available': Record<string, never>;
13
+ };
14
+ export type TEvents = TypedEvents<TEventMap>;
15
+ export declare const createEvents: () => TypedEvents<TEventMap, readonly (keyof TEventMap)[]>;
@@ -0,0 +1,4 @@
1
+ export { default as ContentedStreamManager } from './@ContentedStreamManager';
2
+ export { ContentedStreamStateMachine, EState } from './ContentedStreamStateMachine';
3
+ export type { TContentedStreamActor, TContentedStreamSnapshot, } from './ContentedStreamStateMachine';
4
+ export type { TContentedStreamStateInfo } from './types';
@@ -0,0 +1,7 @@
1
+ import { EContentedStreamCodec } from '../ApiManager';
2
+ export type TContentedStreamStateInfo = {
3
+ isAvailable: true;
4
+ codec?: EContentedStreamCodec;
5
+ } | {
6
+ isAvailable: false;
7
+ };
@@ -4,6 +4,7 @@ import { CallManager, TGetUri } from '../CallManager';
4
4
  import { ConferenceStateManager } from '../ConferenceStateManager';
5
5
  import { ConnectionManager } from '../ConnectionManager';
6
6
  import { ConnectionQueueManager } from '../ConnectionQueueManager';
7
+ import { ContentedStreamManager } from '../ContentedStreamManager';
7
8
  import { IncomingCallManager } from '../IncomingCallManager';
8
9
  import { PresentationManager, TContentHint, TOnAddedTransceiver } from '../PresentationManager';
9
10
  import { SessionManager } from '../SessionManager';
@@ -18,6 +19,7 @@ declare class SipConnector {
18
19
  readonly connectionManager: ConnectionManager;
19
20
  readonly connectionQueueManager: ConnectionQueueManager;
20
21
  readonly conferenceStateManager: ConferenceStateManager;
22
+ readonly contentedStreamManager: ContentedStreamManager;
21
23
  readonly callManager: CallManager;
22
24
  readonly autoConnectorManager: AutoConnectorManager;
23
25
  readonly apiManager: ApiManager;
@@ -110,11 +112,6 @@ declare class SipConnector {
110
112
  sendRefusalToTurnOn(...args: Parameters<ApiManager['sendRefusalToTurnOn']>): Promise<void>;
111
113
  sendRefusalToTurnOnMic(...args: Parameters<ApiManager['sendRefusalToTurnOnMic']>): Promise<void>;
112
114
  sendRefusalToTurnOnCam(...args: Parameters<ApiManager['sendRefusalToTurnOnCam']>): Promise<void>;
113
- sendMustStopPresentationP2P(...args: Parameters<ApiManager['sendMustStopPresentationP2P']>): Promise<void>;
114
- sendStoppedPresentationP2P(...args: Parameters<ApiManager['sendStoppedPresentationP2P']>): Promise<void>;
115
- sendStoppedPresentation(...args: Parameters<ApiManager['sendStoppedPresentation']>): Promise<void>;
116
- askPermissionToStartPresentationP2P(...args: Parameters<ApiManager['askPermissionToStartPresentationP2P']>): Promise<void>;
117
- askPermissionToStartPresentation(...args: Parameters<ApiManager['askPermissionToStartPresentation']>): Promise<void>;
118
115
  askPermissionToEnableCam(...args: Parameters<ApiManager['askPermissionToEnableCam']>): Promise<void>;
119
116
  private subscribeDisconnectedFromOutOfCall;
120
117
  private subscribeConnectedWithConfigurationFromOutOfCall;
@@ -10,7 +10,7 @@ import { TPresentationManagerEventMap } from '../PresentationManager';
10
10
  import { TSessionManagerEventMap } from '../SessionManager';
11
11
  import { TStatsManagerEventMap } from '../StatsManager';
12
12
  import { TVideoSendingBalancerManagerEventMap } from '../VideoSendingBalancerManager';
13
- export declare const EVENT_NAMES: readonly [...("call:connecting" | "call:accepted" | "call:ended" | "call:failed" | "connection:connecting" | "connection:connected" | "connection:registered" | "connection:disconnected" | "auto-connect:before-attempt" | "auto-connect:success" | "auto-connect:failed-all-attempts" | "auto-connect:cancelled-attempts" | "auto-connect:changed-attempt-status" | "auto-connect:stop-attempts-by-error" | "auto-connect:limit-reached-attempts" | "connection:disconnecting" | "connection:newRTCSession" | "connection:unregistered" | "connection:registrationFailed" | "connection:newMessage" | "connection:sipEvent" | "connection:connect-started" | "connection:connect-succeeded" | "connection:connected-with-configuration" | "connection:connect-failed" | "connection:connect-parameters-resolve-success" | "connection:connect-parameters-resolve-failed" | "call:peerconnection" | "call:sending" | "call:progress" | "call:confirmed" | "call:newDTMF" | "call:newInfo" | "call:hold" | "call:unhold" | "call:muted" | "call:unmuted" | "call:reinvite" | "call:update" | "call:refer" | "call:replaces" | "call:sdp" | "call:icecandidate" | "call:getusermediafailed" | "call:peerconnection:createofferfailed" | "call:peerconnection:createanswerfailed" | "call:peerconnection:setlocaldescriptionfailed" | "call:peerconnection:setremotedescriptionfailed" | "call:presentation:start" | "call:presentation:started" | "call:presentation:end" | "call:presentation:ended" | "call:presentation:failed" | "call:peerconnection:confirmed" | "call:peerconnection:ontrack" | "call:ended:fromserver" | "call:call-status-changed" | "call:remote-tracks-changed" | "call:remote-streams-changed" | "conference-state:state-changed" | "conference-state:state-reset" | "api:channels:notify" | "api:participant:added-to-list-moderators" | "api:participant:removed-from-list-moderators" | "api:participant:move-request-to-stream" | "api:participant:move-request-to-participants" | "api:participant:move-request-to-spectators" | "api:participant:move-request-to-spectators-synthetic" | "api:participant:move-request-to-spectators-with-audio-id" | "api:participation:accepting-word-request" | "api:participation:cancelling-word-request" | "api:webcast:started" | "api:webcast:stopped" | "api:account:changed" | "api:account:deleted" | "api:conference:participant-token-issued" | "api:channels" | "api:enterRoom" | "api:shareState" | "api:main-cam-control" | "api:useLicense" | "api:admin-start-main-cam" | "api:admin-stop-main-cam" | "api:admin-start-mic" | "api:admin-stop-mic" | "api:admin-force-sync-media-state" | "api:availableSecondRemoteStream" | "api:notAvailableSecondRemoteStream" | "api:mustStopPresentation" | "api:newDTMF" | "incoming-call:ringing" | "incoming-call:declinedIncomingCall" | "incoming-call:terminatedIncomingCall" | "incoming-call:failedIncomingCall" | "presentation:presentation:start" | "presentation:presentation:started" | "presentation:presentation:end" | "presentation:presentation:ended" | "presentation:presentation:failed" | "stats:collected" | "video-balancer:balancing-scheduled" | "video-balancer:balancing-started" | "video-balancer:balancing-stopped" | "video-balancer:parameters-updated" | "main-stream-health:no-inbound-frames" | "session:snapshot-changed")[], "disconnected-from-out-of-call", "connected-with-configuration-from-out-of-call", "stopped-presentation-by-server-command"];
13
+ export declare const EVENT_NAMES: readonly [...("call:connecting" | "call:accepted" | "call:ended" | "call:failed" | "connection:connecting" | "connection:connected" | "connection:registered" | "connection:disconnected" | "auto-connect:before-attempt" | "auto-connect:success" | "auto-connect:failed-all-attempts" | "auto-connect:cancelled-attempts" | "auto-connect:changed-attempt-status" | "auto-connect:stop-attempts-by-error" | "auto-connect:limit-reached-attempts" | "connection:disconnecting" | "connection:newRTCSession" | "connection:unregistered" | "connection:registrationFailed" | "connection:newMessage" | "connection:sipEvent" | "connection:connect-started" | "connection:connect-succeeded" | "connection:connected-with-configuration" | "connection:connect-failed" | "connection:connect-parameters-resolve-success" | "connection:connect-parameters-resolve-failed" | "call:peerconnection" | "call:sending" | "call:progress" | "call:confirmed" | "call:newDTMF" | "call:newInfo" | "call:hold" | "call:unhold" | "call:muted" | "call:unmuted" | "call:reinvite" | "call:update" | "call:refer" | "call:replaces" | "call:sdp" | "call:icecandidate" | "call:getusermediafailed" | "call:peerconnection:createofferfailed" | "call:peerconnection:createanswerfailed" | "call:peerconnection:setlocaldescriptionfailed" | "call:peerconnection:setremotedescriptionfailed" | "call:presentation:start" | "call:presentation:started" | "call:presentation:end" | "call:presentation:ended" | "call:presentation:failed" | "call:peerconnection:confirmed" | "call:peerconnection:ontrack" | "call:ended:fromserver" | "call:call-status-changed" | "call:remote-tracks-changed" | "call:remote-streams-changed" | "conference-state:state-changed" | "conference-state:state-reset" | "api:enter-room" | "api:main-cam-control" | "api:use-license" | "api:new-dtmf" | "api:conference:participant-token-issued" | "api:contented-stream:available" | "api:contented-stream:not-available" | "api:presentation:must-stop" | "api:channels:all" | "api:channels:notify" | "api:participant:added-to-list-moderators" | "api:participant:removed-from-list-moderators" | "api:participant:move-request-to-stream" | "api:participant:move-request-to-participants" | "api:participant:move-request-to-spectators" | "api:participant:move-request-to-spectators-synthetic" | "api:participant:move-request-to-spectators-with-audio-id" | "api:participation:accepting-word-request" | "api:participation:cancelling-word-request" | "api:webcast:started" | "api:webcast:stopped" | "api:account:changed" | "api:account:deleted" | "api:admin:start-main-cam" | "api:admin:stop-main-cam" | "api:admin:start-mic" | "api:admin:stop-mic" | "api:admin:force-sync-media-state" | "incoming-call:ringing" | "incoming-call:declinedIncomingCall" | "incoming-call:terminatedIncomingCall" | "incoming-call:failedIncomingCall" | "presentation:presentation:start" | "presentation:presentation:started" | "presentation:presentation:end" | "presentation:presentation:ended" | "presentation:presentation:failed" | "stats:collected" | "video-balancer:balancing-scheduled" | "video-balancer:balancing-started" | "video-balancer:balancing-stopped" | "video-balancer:parameters-updated" | "main-stream-health:no-inbound-frames" | "session:snapshot-changed")[], "disconnected-from-out-of-call", "connected-with-configuration-from-out-of-call", "stopped-presentation-by-server-command"];
14
14
  export type TEventName = (typeof EVENT_NAMES)[number];
15
15
  type PrefixedEventMap<T extends Record<string, unknown>, Prefix extends string> = {
16
16
  [K in keyof T as `${Prefix}:${string & K}`]: T[K];
@@ -22,5 +22,5 @@ type TSipConnectorEventMap = {
22
22
  };
23
23
  export type TEventMap = PrefixedEventMap<TAutoConnectorManagerEventMap, 'auto-connect'> & PrefixedEventMap<TConnectionManagerEventMap, 'connection'> & PrefixedEventMap<TCallManagerEventMap, 'call'> & PrefixedEventMap<TConferenceStateManagerEventMap, 'conference-state'> & PrefixedEventMap<TApiManagerEventMap, 'api'> & PrefixedEventMap<TIncomingCallManagerEventMap, 'incoming-call'> & PrefixedEventMap<TPresentationManagerEventMap, 'presentation'> & PrefixedEventMap<TStatsManagerEventMap, 'stats'> & PrefixedEventMap<TVideoSendingBalancerManagerEventMap, 'video-balancer'> & PrefixedEventMap<TMainStreamHealthMonitorEventMap, 'main-stream-health'> & PrefixedEventMap<TSessionManagerEventMap, 'session'> & TSipConnectorEventMap;
24
24
  export type TEvents = TypedEvents<TEventMap>;
25
- export declare const createEvents: () => TypedEvents<TEventMap, readonly ("call:connecting" | "call:accepted" | "call:ended" | "call:failed" | "connection:connecting" | "connection:connected" | "connection:registered" | "connection:disconnected" | "auto-connect:before-attempt" | "auto-connect:success" | "auto-connect:failed-all-attempts" | "auto-connect:cancelled-attempts" | "auto-connect:changed-attempt-status" | "auto-connect:stop-attempts-by-error" | "auto-connect:limit-reached-attempts" | "connection:disconnecting" | "connection:newRTCSession" | "connection:unregistered" | "connection:registrationFailed" | "connection:newMessage" | "connection:sipEvent" | "connection:connect-started" | "connection:connect-succeeded" | "connection:connected-with-configuration" | "connection:connect-failed" | "connection:connect-parameters-resolve-success" | "connection:connect-parameters-resolve-failed" | "call:peerconnection" | "call:sending" | "call:progress" | "call:confirmed" | "call:newDTMF" | "call:newInfo" | "call:hold" | "call:unhold" | "call:muted" | "call:unmuted" | "call:reinvite" | "call:update" | "call:refer" | "call:replaces" | "call:sdp" | "call:icecandidate" | "call:getusermediafailed" | "call:peerconnection:createofferfailed" | "call:peerconnection:createanswerfailed" | "call:peerconnection:setlocaldescriptionfailed" | "call:peerconnection:setremotedescriptionfailed" | "call:presentation:start" | "call:presentation:started" | "call:presentation:end" | "call:presentation:ended" | "call:presentation:failed" | "call:peerconnection:confirmed" | "call:peerconnection:ontrack" | "call:ended:fromserver" | "call:call-status-changed" | "call:remote-tracks-changed" | "call:remote-streams-changed" | "conference-state:state-changed" | "conference-state:state-reset" | "api:channels:notify" | "api:participant:added-to-list-moderators" | "api:participant:removed-from-list-moderators" | "api:participant:move-request-to-stream" | "api:participant:move-request-to-participants" | "api:participant:move-request-to-spectators" | "api:participant:move-request-to-spectators-synthetic" | "api:participant:move-request-to-spectators-with-audio-id" | "api:participation:accepting-word-request" | "api:participation:cancelling-word-request" | "api:webcast:started" | "api:webcast:stopped" | "api:account:changed" | "api:account:deleted" | "api:conference:participant-token-issued" | "api:channels" | "api:enterRoom" | "api:shareState" | "api:main-cam-control" | "api:useLicense" | "api:admin-start-main-cam" | "api:admin-stop-main-cam" | "api:admin-start-mic" | "api:admin-stop-mic" | "api:admin-force-sync-media-state" | "api:availableSecondRemoteStream" | "api:notAvailableSecondRemoteStream" | "api:mustStopPresentation" | "api:newDTMF" | "incoming-call:ringing" | "incoming-call:declinedIncomingCall" | "incoming-call:terminatedIncomingCall" | "incoming-call:failedIncomingCall" | "presentation:presentation:start" | "presentation:presentation:started" | "presentation:presentation:end" | "presentation:presentation:ended" | "presentation:presentation:failed" | "stats:collected" | "video-balancer:balancing-scheduled" | "video-balancer:balancing-started" | "video-balancer:balancing-stopped" | "video-balancer:parameters-updated" | "main-stream-health:no-inbound-frames" | "session:snapshot-changed" | keyof TSipConnectorEventMap)[]>;
25
+ export declare const createEvents: () => TypedEvents<TEventMap, readonly ("call:connecting" | "call:accepted" | "call:ended" | "call:failed" | "connection:connecting" | "connection:connected" | "connection:registered" | "connection:disconnected" | "auto-connect:before-attempt" | "auto-connect:success" | "auto-connect:failed-all-attempts" | "auto-connect:cancelled-attempts" | "auto-connect:changed-attempt-status" | "auto-connect:stop-attempts-by-error" | "auto-connect:limit-reached-attempts" | "connection:disconnecting" | "connection:newRTCSession" | "connection:unregistered" | "connection:registrationFailed" | "connection:newMessage" | "connection:sipEvent" | "connection:connect-started" | "connection:connect-succeeded" | "connection:connected-with-configuration" | "connection:connect-failed" | "connection:connect-parameters-resolve-success" | "connection:connect-parameters-resolve-failed" | "call:peerconnection" | "call:sending" | "call:progress" | "call:confirmed" | "call:newDTMF" | "call:newInfo" | "call:hold" | "call:unhold" | "call:muted" | "call:unmuted" | "call:reinvite" | "call:update" | "call:refer" | "call:replaces" | "call:sdp" | "call:icecandidate" | "call:getusermediafailed" | "call:peerconnection:createofferfailed" | "call:peerconnection:createanswerfailed" | "call:peerconnection:setlocaldescriptionfailed" | "call:peerconnection:setremotedescriptionfailed" | "call:presentation:start" | "call:presentation:started" | "call:presentation:end" | "call:presentation:ended" | "call:presentation:failed" | "call:peerconnection:confirmed" | "call:peerconnection:ontrack" | "call:ended:fromserver" | "call:call-status-changed" | "call:remote-tracks-changed" | "call:remote-streams-changed" | "conference-state:state-changed" | "conference-state:state-reset" | "api:enter-room" | "api:main-cam-control" | "api:use-license" | "api:new-dtmf" | "api:conference:participant-token-issued" | "api:contented-stream:available" | "api:contented-stream:not-available" | "api:presentation:must-stop" | "api:channels:all" | "api:channels:notify" | "api:participant:added-to-list-moderators" | "api:participant:removed-from-list-moderators" | "api:participant:move-request-to-stream" | "api:participant:move-request-to-participants" | "api:participant:move-request-to-spectators" | "api:participant:move-request-to-spectators-synthetic" | "api:participant:move-request-to-spectators-with-audio-id" | "api:participation:accepting-word-request" | "api:participation:cancelling-word-request" | "api:webcast:started" | "api:webcast:stopped" | "api:account:changed" | "api:account:deleted" | "api:admin:start-main-cam" | "api:admin:stop-main-cam" | "api:admin:start-mic" | "api:admin:stop-mic" | "api:admin:force-sync-media-state" | "incoming-call:ringing" | "incoming-call:declinedIncomingCall" | "incoming-call:terminatedIncomingCall" | "incoming-call:failedIncomingCall" | "presentation:presentation:start" | "presentation:presentation:started" | "presentation:presentation:end" | "presentation:presentation:ended" | "presentation:presentation:failed" | "stats:collected" | "video-balancer:balancing-scheduled" | "video-balancer:balancing-started" | "video-balancer:balancing-stopped" | "video-balancer:parameters-updated" | "main-stream-health:no-inbound-frames" | "session:snapshot-changed" | keyof TSipConnectorEventMap)[]>;
26
26
  export {};
@@ -1,4 +1,4 @@
1
- import { EUseLicense } from '../ApiManager';
1
+ import { EContentUseLicense } from '../ApiManager';
2
2
  import { TOnAddedTransceiver, TRemoteStreams } from '../CallManager';
3
3
  import { TParametersConnection, TConnectionConfigurationWithUa } from '../ConnectionManager';
4
4
  import { TContentHint } from '../PresentationManager';
@@ -132,7 +132,7 @@ declare class SipConnectorFacade implements IProxyMethods {
132
132
  onAddedTransceiver?: TOnAddedTransceiver;
133
133
  callLimit?: number;
134
134
  }) => Promise<MediaStream | undefined>;
135
- stopShareSipConnector: ({ isP2P }?: {
135
+ stopPresentation: ({ isP2P }?: {
136
136
  isP2P?: boolean;
137
137
  }) => Promise<void | MediaStream | undefined>;
138
138
  sendRefusalToTurnOnMic: () => Promise<void>;
@@ -163,7 +163,7 @@ declare class SipConnectorFacade implements IProxyMethods {
163
163
  track: MediaStreamTrack;
164
164
  }) => void;
165
165
  getRemoteStreams: () => TRemoteStreams;
166
- onUseLicense: (handler: (license: EUseLicense) => void) => (() => void);
166
+ onUseLicense: (handler: (license: EContentUseLicense) => void) => (() => void);
167
167
  onMustStopPresentation: (handler: () => void) => (() => void);
168
168
  onMoveToSpectators: (handler: () => void) => (() => void);
169
169
  onMoveToParticipants: (handler: () => void) => (() => void);
@@ -5,7 +5,7 @@ declare class StatsPeerConnection {
5
5
  private readonly requesterAllStatistics;
6
6
  constructor();
7
7
  get requested(): boolean;
8
- start(peerConnection: RTCPeerConnection, { interval, onError, }?: {
8
+ start(getPeerConnection: () => RTCPeerConnection | undefined, { interval, onError, }?: {
9
9
  onError?: (error: unknown) => void;
10
10
  interval?: number;
11
11
  }): void;
@@ -16,5 +16,6 @@ declare class StatsPeerConnection {
16
16
  wait<T extends keyof TEventMap>(eventName: T): Promise<TEventMap[T]>;
17
17
  off<T extends keyof TEventMap>(eventName: T, handler: (data: TEventMap[T]) => void): void;
18
18
  private readonly collectStatistics;
19
+ private readonly requestAllStatistics;
19
20
  }
20
21
  export default StatsPeerConnection;
@@ -1,11 +1,11 @@
1
- import { EEventsMainCAM } from '../ApiManager';
1
+ import { EContentMainCAM } from '../ApiManager';
2
2
  import { TOnSetParameters, TResultSetParametersToSender } from '../tools';
3
3
  export interface IBalancerOptions {
4
4
  ignoreForCodec?: string;
5
5
  onSetParameters?: TOnSetParameters;
6
6
  }
7
7
  export interface IMainCamHeaders {
8
- mainCam?: EEventsMainCAM;
8
+ mainCam?: EContentMainCAM;
9
9
  resolutionMainCam?: string;
10
10
  }
11
11
  export interface IBalancingContext {
@@ -14,7 +14,6 @@ export declare const SIP_EVENT = "sipEvent";
14
14
  export declare const AVAILABLE_SECOND_REMOTE_STREAM_EVENT = "availableSecondRemoteStream";
15
15
  export declare const NOT_AVAILABLE_SECOND_REMOTE_STREAM_EVENT = "notAvailableSecondRemoteStream";
16
16
  export declare const MUST_STOP_PRESENTATION_EVENT = "mustStopPresentation";
17
- export declare const SHARE_STATE = "shareState";
18
17
  export declare const ENTER_ROOM = "enterRoom";
19
18
  export declare const USE_LICENSE = "useLicense";
20
19
  export declare const PEER_CONNECTION_CONFIRMED = "peerconnection:confirmed";
@@ -23,11 +22,11 @@ export declare const CHANNELS = "channels";
23
22
  export declare const CHANNELS_NOTIFY = "channels:notify";
24
23
  export declare const ENDED_FROM_SERVER = "ended:fromserver";
25
24
  export declare const MAIN_CAM_CONTROL = "main-cam-control";
26
- export declare const ADMIN_STOP_MAIN_CAM = "admin-stop-main-cam";
27
- export declare const ADMIN_START_MAIN_CAM = "admin-start-main-cam";
28
- export declare const ADMIN_STOP_MIC = "admin-stop-mic";
29
- export declare const ADMIN_START_MIC = "admin-start-mic";
30
- export declare const ADMIN_FORCE_SYNC_MEDIA_STATE = "admin-force-sync-media-state";
25
+ export declare const ADMIN_STOP_MAIN_CAM = "admin:stop-main-cam";
26
+ export declare const ADMIN_START_MAIN_CAM = "admin:start-main-cam";
27
+ export declare const ADMIN_STOP_MIC = "admin:stop-mic";
28
+ export declare const ADMIN_START_MIC = "admin:start-mic";
29
+ export declare const ADMIN_FORCE_SYNC_MEDIA_STATE = "admin:force-sync-media-state";
31
30
  export declare const PARTICIPANT_ADDED_TO_LIST_MODERATORS = "participant:added-to-list-moderators";
32
31
  export declare const PARTICIPANT_REMOVED_FROM_LIST_MODERATORS = "participant:removed-from-list-moderators";
33
32
  export declare const PARTICIPANT_MOVE_REQUEST_TO_STREAM = "participant:move-request-to-stream";
@@ -0,0 +1,12 @@
1
+ import { ApiManager } from '../ApiManager';
2
+ import { CallManager } from '../CallManager';
3
+ import { ConferenceStateManager } from '../ConferenceStateManager';
4
+ import { ConnectionManager } from '../ConnectionManager';
5
+ import { ContentedStreamManager } from '../ContentedStreamManager';
6
+ export declare const createManagers: () => {
7
+ conferenceStateManager: ConferenceStateManager;
8
+ connectionManager: ConnectionManager;
9
+ contentedStreamManager: ContentedStreamManager;
10
+ callManager: CallManager;
11
+ apiManager: ApiManager;
12
+ };
@@ -1,8 +1,8 @@
1
1
  export declare const UA_SYNTHETICS_EVENT_NAMES: readonly ["incomingCall", "declinedIncomingCall", "terminatedIncomingCall", "failedIncomingCall", "participation:accepting-word-request", "participation:cancelling-word-request", "participant:move-request-to-stream", "channels:notify", "conference:participant-token-issued", "account:changed", "account:deleted", "webcast:started", "webcast:stopped", "participant:added-to-list-moderators", "participant:removed-from-list-moderators"];
2
2
  export declare const UA_JSSIP_EVENT_NAMES: readonly ["connecting", "connected", "disconnected", "newRTCSession", "registered", "unregistered", "registrationFailed", "newMessage", "sipEvent"];
3
- export declare const SESSION_SYNTHETICS_EVENT_NAMES: readonly ["availableSecondRemoteStream", "notAvailableSecondRemoteStream", "mustStopPresentation", "shareState", "enterRoom", "useLicense", "peerconnection:confirmed", "peerconnection:ontrack", "channels", "ended:fromserver", "main-cam-control", "admin-start-main-cam", "admin-stop-main-cam", "admin-stop-mic", "admin-start-mic", "admin-force-sync-media-state", "participant:move-request-to-spectators", "participant:move-request-to-participants"];
3
+ export declare const SESSION_SYNTHETICS_EVENT_NAMES: readonly ["availableSecondRemoteStream", "notAvailableSecondRemoteStream", "mustStopPresentation", "enterRoom", "useLicense", "peerconnection:confirmed", "peerconnection:ontrack", "channels", "ended:fromserver", "main-cam-control", "admin:start-main-cam", "admin:stop-main-cam", "admin:stop-mic", "admin:start-mic", "admin:force-sync-media-state", "participant:move-request-to-spectators", "participant:move-request-to-participants"];
4
4
  export declare const SESSION_JSSIP_EVENT_NAMES: readonly ["ended", "connecting", "sending", "reinvite", "replaces", "refer", "progress", "accepted", "confirmed", "peerconnection", "failed", "muted", "unmuted", "newDTMF", "newInfo", "hold", "unhold", "update", "sdp", "icecandidate", "getusermediafailed", "peerconnection:createofferfailed", "peerconnection:createanswerfailed", "peerconnection:setlocaldescriptionfailed", "peerconnection:setremotedescriptionfailed", "presentation:start", "presentation:started", "presentation:end", "presentation:ended", "presentation:failed"];
5
- export declare const UA_EVENT_NAMES: ("channels:notify" | "participant:added-to-list-moderators" | "participant:removed-from-list-moderators" | "participant:move-request-to-stream" | "participation:accepting-word-request" | "participation:cancelling-word-request" | "webcast:started" | "webcast:stopped" | "account:changed" | "account:deleted" | "conference:participant-token-issued" | "connecting" | "connected" | "disconnected" | "newRTCSession" | "registered" | "unregistered" | "registrationFailed" | "newMessage" | "sipEvent" | "declinedIncomingCall" | "terminatedIncomingCall" | "failedIncomingCall" | "incomingCall")[];
6
- export declare const SESSION_EVENT_NAMES: readonly ["ended", "connecting", "sending", "reinvite", "replaces", "refer", "progress", "accepted", "confirmed", "peerconnection", "failed", "muted", "unmuted", "newDTMF", "newInfo", "hold", "unhold", "update", "sdp", "icecandidate", "getusermediafailed", "peerconnection:createofferfailed", "peerconnection:createanswerfailed", "peerconnection:setlocaldescriptionfailed", "peerconnection:setremotedescriptionfailed", "presentation:start", "presentation:started", "presentation:end", "presentation:ended", "presentation:failed", "availableSecondRemoteStream", "notAvailableSecondRemoteStream", "mustStopPresentation", "shareState", "enterRoom", "useLicense", "peerconnection:confirmed", "peerconnection:ontrack", "channels", "ended:fromserver", "main-cam-control", "admin-start-main-cam", "admin-stop-main-cam", "admin-stop-mic", "admin-start-mic", "admin-force-sync-media-state", "participant:move-request-to-spectators", "participant:move-request-to-participants"];
5
+ export declare const UA_EVENT_NAMES: ("conference:participant-token-issued" | "channels:notify" | "participant:added-to-list-moderators" | "participant:removed-from-list-moderators" | "participant:move-request-to-stream" | "participation:accepting-word-request" | "participation:cancelling-word-request" | "webcast:started" | "webcast:stopped" | "account:changed" | "account:deleted" | "connecting" | "connected" | "disconnected" | "newRTCSession" | "registered" | "unregistered" | "registrationFailed" | "newMessage" | "sipEvent" | "declinedIncomingCall" | "terminatedIncomingCall" | "failedIncomingCall" | "incomingCall")[];
6
+ export declare const SESSION_EVENT_NAMES: readonly ["ended", "connecting", "sending", "reinvite", "replaces", "refer", "progress", "accepted", "confirmed", "peerconnection", "failed", "muted", "unmuted", "newDTMF", "newInfo", "hold", "unhold", "update", "sdp", "icecandidate", "getusermediafailed", "peerconnection:createofferfailed", "peerconnection:createanswerfailed", "peerconnection:setlocaldescriptionfailed", "peerconnection:setremotedescriptionfailed", "presentation:start", "presentation:started", "presentation:end", "presentation:ended", "presentation:failed", "availableSecondRemoteStream", "notAvailableSecondRemoteStream", "mustStopPresentation", "enterRoom", "useLicense", "peerconnection:confirmed", "peerconnection:ontrack", "channels", "ended:fromserver", "main-cam-control", "admin:start-main-cam", "admin:stop-main-cam", "admin:stop-mic", "admin:start-mic", "admin:force-sync-media-state", "participant:move-request-to-spectators", "participant:move-request-to-participants"];
7
7
  export type TEventUA = (typeof UA_EVENT_NAMES)[number];
8
8
  export type TEventSession = (typeof SESSION_EVENT_NAMES)[number];