@vkontakte/calls-sdk 2.6.2-dev.2b57aff.0 → 2.6.2-dev.316e7e2.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.
@@ -9,6 +9,7 @@ import UserRole from '../enums/UserRole';
9
9
  import UserType from '../enums/UserType';
10
10
  import MediaModifiers from './MediaModifiers';
11
11
  import MediaSettings from './MediaSettings';
12
+ import { ISharedMovieInfo, ISharedMovieState, ISharedMovieStoppedInfo } from './MovieShare';
12
13
  import MuteStates from './MuteStates';
13
14
  import { CompositeUserId, OkUserId, ParticipantId, ParticipantListMarker as ParticipantParticipantListMarker, ParticipantListMarkers, ParticipantListType as ParticipantParticipantListType } from './Participant';
14
15
  import VideoSettings from './VideoSettings';
@@ -54,6 +55,7 @@ declare namespace SignalingMessage {
54
55
  unmuteOptions?: MediaOption[];
55
56
  markers?: ParticipantListMarkers;
56
57
  observedIds?: CompositeUserId[];
58
+ movieShareInfos?: ISharedMovieInfo[];
57
59
  }
58
60
  export interface ParticipantListChunk extends Notification {
59
61
  participants: (Participant & Required<Pick<Participant, 'markers'>>)[];
@@ -148,6 +150,8 @@ declare namespace SignalingMessage {
148
150
  muteStates: MuteStates;
149
151
  unmuteOptions?: MediaOption[];
150
152
  mediaOptions: MediaOption[];
153
+ requestedMedia?: MediaOption[];
154
+ stateUpdated?: boolean;
151
155
  unmute?: boolean;
152
156
  muteAll?: boolean;
153
157
  }
@@ -240,6 +244,7 @@ declare namespace SignalingMessage {
240
244
  demote: boolean;
241
245
  mediaModifiers: MediaModifiers;
242
246
  conversation: Conversation;
247
+ participants?: ParticipantListChunk;
243
248
  }
244
249
  export interface ChatRoomUpdated extends Notification {
245
250
  eventType: ChatRoomEventType;
@@ -276,6 +281,14 @@ declare namespace SignalingMessage {
276
281
  export interface JoinLinkChanged extends Notification {
277
282
  joinLink: string;
278
283
  }
284
+ export interface SharedMovieState extends Notification {
285
+ data: ISharedMovieState[];
286
+ }
287
+ export interface SharedMovieInfo extends Notification {
288
+ movieShareInfo: ISharedMovieInfo;
289
+ }
290
+ export interface SharedMovieStoppedInfo extends Notification, ISharedMovieStoppedInfo {
291
+ }
279
292
  export {};
280
293
  }
281
294
  export default SignalingMessage;
@@ -0,0 +1,2 @@
1
+ import { MuteState, MediaOption, MuteStates } from '../CallsSDK';
2
+ export declare const getMediaOptionsByMuteState: (muteStates: MuteStates, value: MuteState) => MediaOption[];
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Fork from messagepack internals.
3
+ * Package messagepack doesn't export createWriteBuffer and createReadBuffer methods.
4
+ */
5
+ export declare function createWriteBuffer(): {
6
+ put(v: BufferSource): void;
7
+ putI8(v: number): void;
8
+ putI16(v: number): void;
9
+ putI32(v: number): void;
10
+ putI64(v: number): void;
11
+ putUi8(v: number): void;
12
+ putUi16(v: number): void;
13
+ putUi32(v: number): void;
14
+ putUi64(v: number): void;
15
+ putF(v: number): void;
16
+ ui8array(): Uint8Array;
17
+ };
18
+ export declare function createReadBuffer(buf: BufferSource): {
19
+ peek(): number;
20
+ get(len: number): ArrayBuffer;
21
+ getI8(): number;
22
+ getI16(): number;
23
+ getI32(): number;
24
+ getI64(): number;
25
+ getUi8(): number;
26
+ getUi16(): number;
27
+ getUi32(): number;
28
+ getUi64(): number;
29
+ getF32(): number;
30
+ getF64(): number;
31
+ };