@vkontakte/calls-sdk 2.8.2-dev.d8da99a.0 → 2.8.2-dev.e1d7e72.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.
@@ -2,10 +2,12 @@ import { TransportTopology } from '../classes/transport/Transport';
2
2
  import ChatRoomEventType from '../enums/ChatRoomEventType';
3
3
  import ConversationFeature from '../enums/ConversationFeature';
4
4
  import ConversationOption from '../enums/ConversationOption';
5
+ import FatalError from '../enums/FatalError';
5
6
  import HangupType from '../enums/HangupType';
6
7
  import MediaOption from '../enums/MediaOption';
7
8
  import ParticipantState from '../enums/ParticipantState';
8
9
  import RoomsEventType from '../enums/RoomsEventType';
10
+ import SignalingCommandType from '../enums/SignalingCommandType';
9
11
  import UserRole from '../enums/UserRole';
10
12
  import UserType from '../enums/UserType';
11
13
  import { AsrInfo } from './Asr';
@@ -26,6 +28,13 @@ export type RecordInfo = {
26
28
  recordExternalMovieId?: string;
27
29
  recordExternalOwnerId?: string;
28
30
  };
31
+ export interface SignalingResponse extends SignalingMessage {
32
+ response?: SignalingCommandType;
33
+ error?: string;
34
+ reason?: HangupType | FatalError;
35
+ sequence?: number;
36
+ type: 'response' | 'error' | 'timeout';
37
+ }
29
38
  declare namespace SignalingMessage {
30
39
  export interface ExternalId {
31
40
  type: 'UNKNOWN' | 'VK' | 'ANONYM';
@@ -351,13 +360,6 @@ declare namespace SignalingMessage {
351
360
  export interface ParticipantAnimojiChanged extends Notification {
352
361
  participantId: ParticipantId;
353
362
  }
354
- export interface AsrStartNotification extends Notification {
355
- asrInfo: AsrInfo;
356
- roomId?: number;
357
- }
358
- export interface AsrStopNotification extends Notification {
359
- roomId?: number;
360
- }
361
363
  export {};
362
364
  }
363
365
  export default SignalingMessage;