sip-connector 29.0.0 → 29.1.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 (29) hide show
  1. package/dist/CallManager/types.d.ts +1 -1
  2. package/dist/ConnectionManager/@ConnectionManager.d.ts +3 -3
  3. package/dist/ConnectionManager/ConnectionFlow.d.ts +2 -2
  4. package/dist/ConnectionManager/ConnectionStateMachine/ConnectionStateMachine.d.ts +9 -9
  5. package/dist/ConnectionManager/ConnectionStateMachine/createConnectionMachine.d.ts +6 -6
  6. package/dist/ConnectionManager/ConnectionStateMachine/createConnectionMachineSetup.d.ts +6 -6
  7. package/dist/ConnectionManager/ConnectionStateMachine/types.d.ts +7 -7
  8. package/dist/ConnectionManager/UAFactory.d.ts +5 -5
  9. package/dist/ConnectionManager/events.d.ts +3 -3
  10. package/dist/ConnectionManager/index.d.ts +5 -5
  11. package/dist/ConnectionManager/types.d.ts +8 -3
  12. package/dist/PresentationManager/@PresentationManager.d.ts +4 -3
  13. package/dist/PresentationManager/resolveSendEncodings.d.ts +8 -0
  14. package/dist/PresentationManager/types.d.ts +4 -0
  15. package/dist/SipConnector/@SipConnector.d.ts +1 -1
  16. package/dist/SipConnector/events.d.ts +2 -2
  17. package/dist/{SipConnector-CrXIcpdZ.js → SipConnector-BF2Oie7f.js} +414 -386
  18. package/dist/SipConnector-Dfaryw3N.cjs +1 -0
  19. package/dist/SipConnectorFacade/@SipConnectorFacade.d.ts +2 -2
  20. package/dist/__fixtures__/RTCPeerConnectionMock.d.ts +2 -2
  21. package/dist/__fixtures__/UA.mock.d.ts +1 -1
  22. package/dist/__fixtures__/index.d.ts +4 -4
  23. package/dist/doMock.cjs +1 -1
  24. package/dist/doMock.js +2 -2
  25. package/dist/index.cjs +1 -1
  26. package/dist/index.d.ts +1 -1
  27. package/dist/index.js +1 -1
  28. package/package.json +10 -10
  29. package/dist/SipConnector-C7FWGjfv.cjs +0 -1
@@ -32,7 +32,7 @@ export type TCustomError = Error & {
32
32
  url?: string;
33
33
  code?: string;
34
34
  };
35
- export type TCallConfiguration = {
35
+ export type TCallConfig = {
36
36
  answer?: boolean;
37
37
  number?: string;
38
38
  };
@@ -6,7 +6,7 @@ import { TGetUri } from '../CallManager';
6
6
  import { TJsSIP } from '../types';
7
7
  import { TConnect } from './ConnectionFlow';
8
8
  import { TEventMap } from './events';
9
- import { TConnectionConfiguration, TParametersConnection } from './types';
9
+ import { TConnectionConfig, TParametersConnection } from './types';
10
10
  type TConnectParameters = (() => Promise<TParametersConnection>) | TParametersConnection;
11
11
  type TConnectOptions = Parameters<TConnect>[1] & {
12
12
  hasReadyForConnection?: () => boolean;
@@ -33,7 +33,7 @@ export default class ConnectionManager extends EventEmitterProxy<TEventMap> {
33
33
  get connectionState(): import('./ConnectionStateMachine').EConnectionStatus;
34
34
  get isRegistered(): boolean;
35
35
  get isRegisterConfig(): boolean;
36
- connect: (parameters: TConnectParameters, options?: TConnectOptions) => Promise<TConnectionConfiguration>;
36
+ connect: (parameters: TConnectParameters, options?: TConnectOptions) => Promise<TConnectionConfig>;
37
37
  disconnect: () => Promise<void>;
38
38
  register(): Promise<RegisteredEvent>;
39
39
  unregister(): Promise<UnRegisteredEvent>;
@@ -42,7 +42,7 @@ export default class ConnectionManager extends EventEmitterProxy<TEventMap> {
42
42
  ping: (body?: Parameters<SipOperations["ping"]>[0], extraHeaders?: Parameters<SipOperations["ping"]>[1]) => Promise<void>;
43
43
  checkTelephony: (parameters: TParametersCheckTelephony) => Promise<void>;
44
44
  isConfigured(): boolean;
45
- getConnectionConfiguration: () => TConnectionConfiguration | undefined;
45
+ getConnectionConfiguration: () => TConnectionConfig | undefined;
46
46
  destroy(): void;
47
47
  getUri: TGetUri;
48
48
  getUser(): string | undefined;
@@ -3,12 +3,12 @@ import { TGetUri } from '../CallManager';
3
3
  import { ConnectionStateMachine } from './ConnectionStateMachine';
4
4
  import { TEvents } from './events';
5
5
  import { default as RegistrationManager } from './RegistrationManager';
6
- import { TConnectionConfiguration, TParametersConnection } from './types';
6
+ import { TConnectionConfig, TParametersConnection } from './types';
7
7
  import { default as UAFactory } from './UAFactory';
8
8
  type TConnectParameters = (() => Promise<TParametersConnection>) | TParametersConnection;
9
9
  export type TConnect = (parameters: TConnectParameters, options?: {
10
10
  numberOfConnectionAttempts?: number;
11
- }) => Promise<TConnectionConfiguration>;
11
+ }) => Promise<TConnectionConfig>;
12
12
  interface IDependencies {
13
13
  events: TEvents;
14
14
  uaFactory: UAFactory;
@@ -1,29 +1,29 @@
1
1
  import { BaseStateMachine } from '../../tools/BaseStateMachine';
2
2
  import { EEvents, EState } from './constants';
3
3
  import { TEvents } from '../events';
4
- import { TConnectionConfiguration } from '../types';
4
+ import { TConnectionConfig } from '../types';
5
5
  import { TContext, TContextMap } from './types';
6
6
  declare const connectionMachine: import('xstate').StateMachine<{
7
7
  connectionConfiguration: undefined;
8
8
  } | {
9
9
  connectionConfiguration: undefined;
10
10
  } | {
11
- connectionConfiguration: TConnectionConfiguration;
11
+ connectionConfiguration: TConnectionConfig;
12
12
  } | {
13
- connectionConfiguration: TConnectionConfiguration;
13
+ connectionConfiguration: TConnectionConfig;
14
14
  } | {
15
- connectionConfiguration: TConnectionConfiguration;
15
+ connectionConfiguration: TConnectionConfig;
16
16
  } | {
17
- connectionConfiguration: TConnectionConfiguration;
17
+ connectionConfiguration: TConnectionConfig;
18
18
  } | {
19
- connectionConfiguration: TConnectionConfiguration;
19
+ connectionConfiguration: TConnectionConfig;
20
20
  } | {
21
21
  connectionConfiguration: undefined;
22
22
  }, {
23
23
  type: EEvents.START_CONNECT;
24
24
  } | {
25
25
  type: EEvents.START_UA;
26
- configuration: TConnectionConfiguration;
26
+ configuration: TConnectionConfig;
27
27
  } | {
28
28
  type: EEvents.START_DISCONNECT;
29
29
  } | {
@@ -114,9 +114,9 @@ export declare class ConnectionStateMachine extends BaseStateMachine<typeof conn
114
114
  get isPendingInitUa(): boolean;
115
115
  get isActiveConnection(): boolean;
116
116
  readonly toStartConnect: () => void;
117
- readonly toStartUa: (configuration: TConnectionConfiguration) => void;
117
+ readonly toStartUa: (config: TConnectionConfig) => void;
118
118
  reset(): void;
119
- getConnectionConfiguration(): TConnectionConfiguration | undefined;
119
+ getConnectionConfiguration(): TConnectionConfig | undefined;
120
120
  isRegisterEnabled(): boolean;
121
121
  destroy(): void;
122
122
  private hasState;
@@ -4,22 +4,22 @@ export declare const createConnectionMachine: () => import('xstate').StateMachin
4
4
  } | {
5
5
  connectionConfiguration: undefined;
6
6
  } | {
7
- connectionConfiguration: import('..').TConnectionConfiguration;
7
+ connectionConfiguration: import('..').TConnectionConfig;
8
8
  } | {
9
- connectionConfiguration: import('..').TConnectionConfiguration;
9
+ connectionConfiguration: import('..').TConnectionConfig;
10
10
  } | {
11
- connectionConfiguration: import('..').TConnectionConfiguration;
11
+ connectionConfiguration: import('..').TConnectionConfig;
12
12
  } | {
13
- connectionConfiguration: import('..').TConnectionConfiguration;
13
+ connectionConfiguration: import('..').TConnectionConfig;
14
14
  } | {
15
- connectionConfiguration: import('..').TConnectionConfiguration;
15
+ connectionConfiguration: import('..').TConnectionConfig;
16
16
  } | {
17
17
  connectionConfiguration: undefined;
18
18
  }, {
19
19
  type: EEvents.START_CONNECT;
20
20
  } | {
21
21
  type: EEvents.START_UA;
22
- configuration: import('..').TConnectionConfiguration;
22
+ configuration: import('..').TConnectionConfig;
23
23
  } | {
24
24
  type: EEvents.START_DISCONNECT;
25
25
  } | {
@@ -4,22 +4,22 @@ export declare const createConnectionMachineSetup: () => import('xstate').SetupR
4
4
  } | {
5
5
  connectionConfiguration: undefined;
6
6
  } | {
7
- connectionConfiguration: import('..').TConnectionConfiguration;
7
+ connectionConfiguration: import('..').TConnectionConfig;
8
8
  } | {
9
- connectionConfiguration: import('..').TConnectionConfiguration;
9
+ connectionConfiguration: import('..').TConnectionConfig;
10
10
  } | {
11
- connectionConfiguration: import('..').TConnectionConfiguration;
11
+ connectionConfiguration: import('..').TConnectionConfig;
12
12
  } | {
13
- connectionConfiguration: import('..').TConnectionConfiguration;
13
+ connectionConfiguration: import('..').TConnectionConfig;
14
14
  } | {
15
- connectionConfiguration: import('..').TConnectionConfiguration;
15
+ connectionConfiguration: import('..').TConnectionConfig;
16
16
  } | {
17
17
  connectionConfiguration: undefined;
18
18
  }, {
19
19
  type: EEvents.START_CONNECT;
20
20
  } | {
21
21
  type: EEvents.START_UA;
22
- configuration: import('..').TConnectionConfiguration;
22
+ configuration: import('..').TConnectionConfig;
23
23
  } | {
24
24
  type: EEvents.START_DISCONNECT;
25
25
  } | {
@@ -1,10 +1,10 @@
1
- import { TConnectionConfiguration } from '../types';
1
+ import { TConnectionConfig } from '../types';
2
2
  import { EEvents, EState } from './constants';
3
3
  export type TConnectionMachineEvents = {
4
4
  type: EEvents.START_CONNECT;
5
5
  } | {
6
6
  type: EEvents.START_UA;
7
- configuration: TConnectionConfiguration;
7
+ configuration: TConnectionConfig;
8
8
  } | {
9
9
  type: EEvents.START_DISCONNECT;
10
10
  } | {
@@ -31,19 +31,19 @@ export type TContextMap = {
31
31
  connectionConfiguration: undefined;
32
32
  };
33
33
  [EState.CONNECTING]: {
34
- connectionConfiguration: TConnectionConfiguration;
34
+ connectionConfiguration: TConnectionConfig;
35
35
  };
36
36
  [EState.CONNECTED]: {
37
- connectionConfiguration: TConnectionConfiguration;
37
+ connectionConfiguration: TConnectionConfig;
38
38
  };
39
39
  [EState.REGISTERED]: {
40
- connectionConfiguration: TConnectionConfiguration;
40
+ connectionConfiguration: TConnectionConfig;
41
41
  };
42
42
  [EState.ESTABLISHED]: {
43
- connectionConfiguration: TConnectionConfiguration;
43
+ connectionConfiguration: TConnectionConfig;
44
44
  };
45
45
  [EState.DISCONNECTING]: {
46
- connectionConfiguration: TConnectionConfiguration;
46
+ connectionConfiguration: TConnectionConfig;
47
47
  };
48
48
  [EState.DISCONNECTED]: {
49
49
  connectionConfiguration: undefined;
@@ -1,6 +1,6 @@
1
1
  import { UA, UAConfigurationParams, WebSocketInterface } from '@krivega/jssip';
2
2
  import { TJsSIP } from '../types';
3
- export type TUAConfiguration = {
3
+ export type TUAConfig = {
4
4
  configuration: UAConfigurationParams;
5
5
  helpers: {
6
6
  socket: WebSocketInterface;
@@ -11,7 +11,7 @@ export type TCreateUAParameters = UAConfigurationParams & {
11
11
  remoteAddress?: string;
12
12
  extraHeaders?: string[];
13
13
  };
14
- type TParametersCreateUaConfiguration = {
14
+ type TParametersCreateUaConfig = {
15
15
  sipServerUrl: string;
16
16
  displayName: string;
17
17
  sipServerIp: string;
@@ -32,19 +32,19 @@ export default class UAFactory {
32
32
  private static resolveAuthorizationUser;
33
33
  private static buildExtraHeaders;
34
34
  createConfiguration({ user, password, sipServerUrl, displayName, sipServerIp, register, sessionTimers, registerExpires, // 5 minutes in sec
35
- connectionRecoveryMinInterval, connectionRecoveryMaxInterval, userAgent, }: TParametersCreateUaConfiguration): TUAConfiguration;
35
+ connectionRecoveryMinInterval, connectionRecoveryMaxInterval, userAgent, }: TParametersCreateUaConfig): TUAConfig;
36
36
  createUA({ remoteAddress, extraHeaders, ...parameters }: TCreateUAParameters): UA;
37
37
  /**
38
38
  * Создает UA с полным жизненным циклом - конфигурация + создание + настройка событий
39
39
  */
40
- createUAWithConfiguration(parameters: TParametersCreateUaConfiguration & {
40
+ createUAWithConfiguration(parameters: TParametersCreateUaConfig & {
41
41
  remoteAddress?: string;
42
42
  extraHeaders?: string[];
43
43
  }, events: {
44
44
  eachTriggers: (callback: (trigger: (...args: unknown[]) => void, eventName: string) => void) => void;
45
45
  }): {
46
46
  ua: UA;
47
- helpers: TUAConfiguration['helpers'];
47
+ helpers: TUAConfig['helpers'];
48
48
  };
49
49
  }
50
50
  export {};
@@ -1,6 +1,6 @@
1
1
  import { TypedEvents } from 'events-constructor';
2
2
  import { ConnectedEvent, ConnectingEvent, DisconnectEvent, IncomingMessageEvent, IncomingRequest, OutgoingMessageEvent, RegisteredEvent, RTCSessionEvent, UnRegisteredEvent, RegistrationFailedEvent } from '@krivega/jssip';
3
- import { TConnectionConfiguration, TParametersConnection } from './types';
3
+ import { TConnectionConfig, TParametersConnection } from './types';
4
4
  export declare const UA_EVENT_NAMES: readonly ["connecting", "connected", "disconnected", "newRTCSession", "registered", "unregistered", "registrationFailed", "newMessage", "sipEvent"];
5
5
  export declare const EVENT_NAMES: readonly ["connecting", "connected", "disconnected", "newRTCSession", "registered", "unregistered", "registrationFailed", "newMessage", "sipEvent", "disconnecting", "connect-started", "connect-succeeded", "connect-failed", "connect-parameters-resolve-success", "connect-parameters-resolve-failed", "connected-with-configuration"];
6
6
  export type TEventMap = {
@@ -18,8 +18,8 @@ export type TEventMap = {
18
18
  request: IncomingRequest;
19
19
  };
20
20
  'connect-started': Record<string, never>;
21
- 'connect-succeeded': TConnectionConfiguration;
22
- 'connected-with-configuration': TConnectionConfiguration;
21
+ 'connect-succeeded': TConnectionConfig;
22
+ 'connected-with-configuration': TConnectionConfig;
23
23
  'connect-failed': unknown;
24
24
  'connect-parameters-resolve-success': TParametersConnection;
25
25
  'connect-parameters-resolve-failed': unknown;
@@ -1,7 +1,7 @@
1
1
  export { default as ConnectionManager } from './@ConnectionManager';
2
- export { EConnectionStatus, ConnectionStateMachine, EConnectionStateMachineEvents, } from './ConnectionStateMachine';
3
- export { hasNotReadyForConnectionError, createNotReadyForConnectionError } from './utils';
2
+ export { ConnectionStateMachine, EConnectionStateMachineEvents, EConnectionStatus, } from './ConnectionStateMachine';
4
3
  export { EVENT_NAMES as CONNECTION_MANAGER_EVENT_NAMES, createEvents } from './events';
5
- export type { TIceServer, TServerConfiguration, TParametersConnection, TConnectionConfiguration, } from './types';
6
- export type { TEvents as TConnectionManagerEvents, TEventMap as TConnectionManagerEventMap, } from './events';
7
- export type { TConnectionSnapshot, TConnectionContextMap } from './ConnectionStateMachine';
4
+ export { createNotReadyForConnectionError, hasNotReadyForConnectionError } from './utils';
5
+ export type { TIceServer, TMaxAvailableResolution, TServerConfig, TParametersConnection, TConnectionConfig, } from './types';
6
+ export type { TEventMap as TConnectionManagerEventMap, TEvents as TConnectionManagerEvents, } from './events';
7
+ export type { TConnectionContextMap, TConnectionSnapshot } from './ConnectionStateMachine';
@@ -6,13 +6,18 @@ export type TIceServer = {
6
6
  username?: string;
7
7
  credential?: string;
8
8
  };
9
- export type TServerConfiguration = {
9
+ export type TMaxAvailableResolution = {
10
+ width: number;
11
+ height: number;
12
+ };
13
+ export type TServerConfig = {
10
14
  sipServerUrl: string;
11
15
  sipServerIp: string;
12
16
  remoteAddress: string;
13
17
  iceServers: TIceServer[];
18
+ maxAvailableResolution?: TMaxAvailableResolution;
14
19
  };
15
- export type TParametersConnection = TServerConfiguration & TOptionsExtraHeaders & {
20
+ export type TParametersConnection = TServerConfig & TOptionsExtraHeaders & {
16
21
  displayName: string;
17
22
  register?: boolean;
18
23
  user?: string;
@@ -23,7 +28,7 @@ export type TParametersConnection = TServerConfiguration & TOptionsExtraHeaders
23
28
  connectionRecoveryMinInterval?: number;
24
29
  connectionRecoveryMaxInterval?: number;
25
30
  };
26
- export type TConnectionConfiguration = TServerConfiguration & {
31
+ export type TConnectionConfig = TServerConfig & {
27
32
  displayName: string;
28
33
  authorizationUser: string;
29
34
  register?: boolean;
@@ -2,11 +2,12 @@ import { EventEmitterProxy } from 'events-constructor';
2
2
  import { PresentationStateMachine } from './PresentationStateMachine';
3
3
  import { CallManager } from '../CallManager';
4
4
  import { TEventMap } from './events';
5
- import { TContentHint, TOnAddedTransceiver } from './types';
5
+ import { TContentHint, TMaxResolution, TOnAddedTransceiver } from './types';
6
6
  type TPresentationOptions = {
7
7
  isNeedReinvite?: boolean;
8
8
  contentHint?: TContentHint;
9
9
  sendEncodings?: RTCRtpEncodingParameters[];
10
+ maxResolution?: TMaxResolution;
10
11
  onAddedTransceiver?: TOnAddedTransceiver;
11
12
  };
12
13
  export declare const hasCanceledStartPresentationError: (error: unknown) => error is import('repeated-calls').TCanceledError<unknown>;
@@ -24,11 +25,11 @@ declare class PresentationManager extends EventEmitterProxy<TEventMap> {
24
25
  });
25
26
  get isPendingPresentation(): boolean;
26
27
  get isPresentationInProcess(): boolean;
27
- startPresentation(beforeStartPresentation: () => Promise<void>, stream: MediaStream, { isNeedReinvite, contentHint, sendEncodings, onAddedTransceiver }?: TPresentationOptions, options?: {
28
+ startPresentation(beforeStartPresentation: () => Promise<void>, stream: MediaStream, { isNeedReinvite, contentHint, sendEncodings, maxResolution, onAddedTransceiver, }?: TPresentationOptions, options?: {
28
29
  callLimit: number;
29
30
  }): Promise<MediaStream>;
30
31
  stopPresentation(beforeStopPresentation: () => Promise<void>): Promise<MediaStream | undefined>;
31
- updatePresentation(beforeStartPresentation: () => Promise<void>, stream: MediaStream, { contentHint, sendEncodings, onAddedTransceiver }?: TPresentationOptions): Promise<MediaStream | undefined>;
32
+ updatePresentation(beforeStartPresentation: () => Promise<void>, stream: MediaStream, { contentHint, sendEncodings, maxResolution, onAddedTransceiver }?: TPresentationOptions): Promise<MediaStream | undefined>;
32
33
  cancelSendPresentationWithRepeatedCalls(): void;
33
34
  private subscribe;
34
35
  private sendPresentationWithDuplicatedCalls;
@@ -0,0 +1,8 @@
1
+ import { TMaxResolution } from './types';
2
+ type TParameters = {
3
+ stream: MediaStream;
4
+ sendEncodings?: RTCRtpEncodingParameters[];
5
+ maxResolution?: TMaxResolution;
6
+ };
7
+ declare const resolveSendEncodings: ({ stream, sendEncodings, maxResolution, }: TParameters) => RTCRtpEncodingParameters[] | undefined;
8
+ export default resolveSendEncodings;
@@ -1,2 +1,6 @@
1
1
  export type TOnAddedTransceiver = (transceiver: RTCRtpTransceiver, track: MediaStreamTrack, streams: MediaStream[]) => Promise<void>;
2
2
  export type TContentHint = 'motion' | 'detail' | 'text' | 'none';
3
+ export type TMaxResolution = {
4
+ width: number;
5
+ height: number;
6
+ };
@@ -71,7 +71,7 @@ declare class SipConnector extends EventEmitterProxy<TEventMap> {
71
71
  ping: (body?: Parameters<ConnectionManager["ping"]>[0], extraHeaders?: Parameters<ConnectionManager["ping"]>[1]) => Promise<void>;
72
72
  checkTelephony: ConnectionManager['checkTelephony'];
73
73
  isConfigured: () => boolean;
74
- getConnectionConfiguration: () => import('../ConnectionManager').TConnectionConfiguration | undefined;
74
+ getConnectionConfiguration: () => import('../ConnectionManager').TConnectionConfig | undefined;
75
75
  getUri: TGetUri;
76
76
  startAutoConnect: (...args: Parameters<AutoConnectorManager["start"]>) => Promise<Awaited<ReturnType<AutoConnectorManager["start"]>>>;
77
77
  stopAutoConnect: AutoConnectorManager['stop'];
@@ -3,7 +3,7 @@ import { TApiManagerEventMap } from '../ApiManager';
3
3
  import { TAutoConnectorManagerEventMap } from '../AutoConnectorManager';
4
4
  import { TCallManagerEventMap } from '../CallManager';
5
5
  import { TCallReconnectManagerEventMap } from '../CallReconnectManager';
6
- import { TConnectionConfiguration, TConnectionManagerEventMap } from '../ConnectionManager';
6
+ import { TConnectionConfig, TConnectionManagerEventMap } from '../ConnectionManager';
7
7
  import { TIncomingCallManagerEventMap } from '../IncomingCallManager';
8
8
  import { TMainStreamHealthMonitorEventMap } from '../MainStreamHealthMonitor';
9
9
  import { TPresentationManagerEventMap } from '../PresentationManager';
@@ -17,7 +17,7 @@ type PrefixedEventMap<T extends Record<string, unknown>, Prefix extends string>
17
17
  };
18
18
  type TSipConnectorEventMap = {
19
19
  'disconnected-from-out-of-call': Record<string, never>;
20
- 'connected-with-configuration-from-out-of-call': TConnectionConfiguration;
20
+ 'connected-with-configuration-from-out-of-call': TConnectionConfig;
21
21
  'stopped-presentation-by-server-command': Record<string, never>;
22
22
  };
23
23
  export type TEventMap = PrefixedEventMap<TAutoConnectorManagerEventMap, 'auto-connect'> & PrefixedEventMap<TCallReconnectManagerEventMap, 'call-reconnect'> & PrefixedEventMap<TConnectionManagerEventMap, 'connection'> & PrefixedEventMap<TCallManagerEventMap, 'call'> & 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;