@vkontakte/calls-sdk 2.8.8-dev.35731b45.0 → 2.8.8-dev.35ca581e.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 +2 -1
- package/abstract/BaseApi.d.ts +1 -0
- package/calls-sdk.cjs.js +10 -10
- package/calls-sdk.esm.js +10 -10
- package/classes/Conversation.d.ts +1 -0
- package/default/Api.d.ts +4 -2
- package/enums/ConversationOption.d.ts +2 -0
- package/package.json +1 -1
- package/static/External.d.ts +1 -0
- package/static/SignalingCapabilities.d.ts +5 -0
- package/types/Conversation.d.ts +1 -0
- package/types/Params.d.ts +1 -1
|
@@ -81,6 +81,7 @@ export default class Conversation extends EventEmitter {
|
|
|
81
81
|
private _extractExternalRoomsData;
|
|
82
82
|
onPush(conversationId: string, type?: UserType, peerId?: number, conversationParams?: string, wsEndpoint?: string): Promise<void>;
|
|
83
83
|
private _isInWaitingHall;
|
|
84
|
+
private _isWaitForAdmin;
|
|
84
85
|
private _isRestricted;
|
|
85
86
|
private _isAudienceMode;
|
|
86
87
|
private _isAudienceModeListener;
|
package/default/Api.d.ts
CHANGED
|
@@ -20,13 +20,15 @@ export default class Api extends BaseApi {
|
|
|
20
20
|
logClientEvents(items: ClientEvent[]): void;
|
|
21
21
|
uploadDebugLogs(conversationId: string, startTime: number, endTime: number, log: string): Promise<void>;
|
|
22
22
|
joinConversation(conversationId: string, isVideo?: boolean, chatId?: string): Promise<ConversationResponse>;
|
|
23
|
-
createConversation(conversationId: string, payload?: string, requireAuthToJoin?: boolean, { onlyAdminCanShareMovie, audienceMode, audioOnly, }?: {
|
|
23
|
+
createConversation(conversationId: string, payload?: string, requireAuthToJoin?: boolean, { onlyAdminCanShareMovie, audienceMode, audioOnly, waitForAdmin, }?: {
|
|
24
24
|
onlyAdminCanShareMovie?: boolean;
|
|
25
25
|
audienceMode?: boolean;
|
|
26
26
|
audioOnly?: boolean;
|
|
27
|
+
waitForAdmin?: boolean;
|
|
27
28
|
}, speakerIds?: OkUserId[]): Promise<ConversationResponse>;
|
|
28
|
-
startConversation(conversationId: string, ids?: OkUserId[], type?: CallType, isVideo?: boolean, payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, { onlyAdminCanShareMovie }?: {
|
|
29
|
+
startConversation(conversationId: string, ids?: OkUserId[], type?: CallType, isVideo?: boolean, payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, { onlyAdminCanShareMovie, waitForAdmin }?: {
|
|
29
30
|
onlyAdminCanShareMovie?: boolean;
|
|
31
|
+
waitForAdmin?: boolean;
|
|
30
32
|
}, externalIds?: ExternalId[]): Promise<ConversationResponse>;
|
|
31
33
|
protected _ensureUuid(): void;
|
|
32
34
|
deviceId(): string;
|
|
@@ -5,6 +5,8 @@ declare enum ConversationOption {
|
|
|
5
5
|
REQUIRE_AUTH_TO_JOIN = "REQUIRE_AUTH_TO_JOIN",
|
|
6
6
|
AUDIENCE_MODE = "AUDIENCE_MODE",// Stereo chat room
|
|
7
7
|
WAITING_HALL = "WAITING_HALL",// Waiting Hall is ON
|
|
8
|
+
WAIT_FOR_ADMIN = "WAIT_FOR_ADMIN",
|
|
9
|
+
ADMIN_IS_HERE = "ADMIN_IS_HERE",
|
|
8
10
|
ASR = "ASR",
|
|
9
11
|
FEEDBACK = "FEEDBACK",// Reactions (default = off)
|
|
10
12
|
RECURRING = "RECURRING"
|
package/package.json
CHANGED
package/static/External.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ import { ParticipantCapabilities } from './SignalingCapabilities';
|
|
|
28
28
|
*/
|
|
29
29
|
export declare enum ParticipantStatus {
|
|
30
30
|
WAITING_HALL = "WAITING_HALL",
|
|
31
|
+
WAIT_FOR_ADMIN = "WAIT_FOR_ADMIN",
|
|
31
32
|
WAITING = "WAITING",
|
|
32
33
|
CONNECTING = "CONNECTING",
|
|
33
34
|
CONNECTED = "CONNECTED",
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @see https://confluence.vk.team/display/VIDEOOK/Websocket+Capability+Flags
|
|
3
|
+
*/
|
|
1
4
|
declare const PREDICATES: {
|
|
2
5
|
readonly producerScreenTrack: () => boolean;
|
|
3
6
|
readonly videoTracksCount: () => boolean;
|
|
@@ -13,7 +16,9 @@ declare const PREDICATES: {
|
|
|
13
16
|
readonly useChatRooms: () => boolean;
|
|
14
17
|
readonly audienceModeHandUpTimestamps: () => boolean;
|
|
15
18
|
readonly animojiBackendRender: () => boolean;
|
|
19
|
+
readonly sessionStateUpdates: () => boolean;
|
|
16
20
|
readonly addParticipant: () => boolean;
|
|
21
|
+
readonly waitForAdmin: () => boolean;
|
|
17
22
|
};
|
|
18
23
|
type ParticipantCapabilitiesKeys = keyof typeof PREDICATES;
|
|
19
24
|
export type ParticipantCapabilities = Record<ParticipantCapabilitiesKeys, boolean>;
|
package/types/Conversation.d.ts
CHANGED
package/types/Params.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type IApiEnv = 'AUTO' | 'PROD' | 'CALLS' | 'PROD_OK' | 'TEST' | 'VIDEOTEST' | 'CALLSTEST' | string;
|
|
1
|
+
export type IApiEnv = 'AUTO' | 'PROD' | 'CALLS' | 'PROD_OK' | 'TEST' | 'VIDEOTEST' | 'CALLSTEST' | 'CALLS_BETA' | 'CALLS_BENDER' | 'CALLS_MAMES' | 'CALLS_MARS' | string;
|
|
2
2
|
export type IAPIBaseUrl = string | null;
|