@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.
- package/CallsSDK.d.ts +8 -4
- package/abstract/BaseSignaling.d.ts +6 -3
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +10 -5
- package/classes/ParticipantIdRegistry.d.ts +2 -0
- package/classes/ProducerCommandSerializationService.d.ts +17 -0
- package/classes/screenshare/ScreenCaptureSender.d.ts +1 -1
- package/classes/screenshare/Utils.d.ts +1 -0
- package/default/Api.d.ts +1 -0
- package/default/Api.test.d.ts +1 -0
- package/default/Signaling.d.ts +12 -4
- package/enums/ConversationOption.d.ts +2 -1
- package/enums/HangupType.d.ts +3 -1
- package/enums/SignalingNotification.d.ts +5 -1
- package/package.json +1 -1
- package/static/ApiTransport.d.ts +1 -1
- package/static/External.d.ts +63 -4
- package/static/Params.d.ts +60 -2
- package/static/Utils.d.ts +5 -1
- package/types/Conversation.d.ts +12 -0
- package/types/ConversationParams.d.ts +1 -0
- package/types/ExternalId.d.ts +2 -0
- package/types/LayoutUtils.d.ts +5 -0
- package/types/MediaSettings.d.ts +1 -1
- package/types/MovieShare.d.ts +42 -0
- package/types/Participant.d.ts +2 -0
- package/types/ParticipantLayout.d.ts +7 -1
- package/types/SignalingMessage.d.ts +13 -0
- package/utils/Conversation.d.ts +2 -0
- package/utils/MsgPackerBufferUtils.d.ts +31 -0
|
@@ -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,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
|
+
};
|