@vkontakte/calls-sdk 2.8.12-dev.8c2bbcbf.0 → 2.8.12-dev.a796d948.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 +0 -3
- package/abstract/BaseApi.d.ts +1 -1
- package/abstract/BaseSignaling.d.ts +5 -4
- package/calls-sdk.cjs.js +9 -9
- package/calls-sdk.esm.js +3256 -2735
- package/classes/CallRegistry.d.ts +1 -1
- package/classes/ExternalIdCache.d.ts +1 -0
- package/classes/{Conversation.d.ts → conversation/Conversation.d.ts} +37 -34
- package/classes/conversation/Conversation.testUtils.d.ts +148 -0
- package/classes/{ConversationResponseValidator.d.ts → conversation/ConversationResponseValidator.d.ts} +1 -1
- package/classes/{DisplayLayoutRequester.d.ts → conversation/DisplayLayoutRequester.d.ts} +5 -5
- package/classes/conversation/index.d.ts +1 -0
- package/classes/stat/CallFinishClassifier.d.ts +11 -0
- package/classes/stat/CallLifecycleStats.d.ts +1 -2
- package/default/Api.d.ts +2 -2
- package/default/Signaling.d.ts +11 -14
- package/default/SignalingTransport.d.ts +7 -1
- package/enums/HangupType.d.ts +0 -1
- package/package.json +1 -1
- package/static/External.d.ts +1 -1
- package/static/Params.d.ts +1 -1
- package/static/WebRTCUtils.d.ts +4 -0
- package/types/SignalingMessage.d.ts +4 -1
- package/types/WebTransport.d.ts +14 -15
package/CallsSDK.d.ts
CHANGED
|
@@ -769,9 +769,6 @@ export declare function stopAsr(params?: IAsrStopParams): Promise<void>;
|
|
|
769
769
|
export declare function requestAsr(request: boolean): Promise<void>;
|
|
770
770
|
export declare function startUrlSharing(sharedUrl: string): Promise<void>;
|
|
771
771
|
export declare function stopUrlSharing(): Promise<void>;
|
|
772
|
-
export declare function sendTestCommand(name: string, params?: any): void;
|
|
773
|
-
export declare function startAnalyzingAudio(expectAudio: boolean, expectedActiveTracks?: number | null, expectedTrackFrequencies?: number[] | null): void;
|
|
774
|
-
export declare function stopAnalyzingAudio(): void;
|
|
775
772
|
export declare function switchCall(conversationId: string): Promise<void>;
|
|
776
773
|
export declare function getActiveCallId(): string | null;
|
|
777
774
|
/**
|
package/abstract/BaseApi.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export default abstract class BaseApi {
|
|
|
38
38
|
*/
|
|
39
39
|
setAbortSignal(signal: AbortSignal | undefined): void;
|
|
40
40
|
abstract authorize(): Promise<void>;
|
|
41
|
-
abstract userId(participantId: ParticipantId):
|
|
41
|
+
abstract userId(participantId: ParticipantId): ExternalParticipantId;
|
|
42
42
|
abstract deviceId(): string;
|
|
43
43
|
abstract createConversation(conversationId: string, payload?: string, requireAuthToJoin?: boolean, createConversationParameters?: {
|
|
44
44
|
onlyAdminCanShareMovie?: boolean;
|
|
@@ -42,6 +42,9 @@ export interface AddParticipantParams {
|
|
|
42
42
|
*/
|
|
43
43
|
payload?: string;
|
|
44
44
|
}
|
|
45
|
+
export declare class SignalingDisposedError extends Error {
|
|
46
|
+
constructor(command?: string);
|
|
47
|
+
}
|
|
45
48
|
/**
|
|
46
49
|
* Should trigger SignalingEvent.NOTIFICATION on notification message and SignalingEvent.FAILED on error
|
|
47
50
|
* https://wiki.odkl.ru/display/projects/Signaling+API#SignalingAPI-Notifications
|
|
@@ -55,7 +58,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
55
58
|
*/
|
|
56
59
|
setAbortSignal(signal: AbortSignal | undefined): void;
|
|
57
60
|
abstract connect(connectionType: SignalingConnectionType, conversation?: ConversationResponse): Promise<SignalingMessage.Connection>;
|
|
58
|
-
abstract
|
|
61
|
+
abstract dispose(cause?: Error): void;
|
|
59
62
|
abstract hangup(reason: string): Promise<SignalingMessage | void>;
|
|
60
63
|
abstract acceptCall(mediaSettings: MediaSettings): Promise<SignalingMessage>;
|
|
61
64
|
abstract sendSdp(participantId: ParticipantId, sdp: RTCSessionDescriptionInit, extraPayload?: Record<string, any>): Promise<SignalingMessage>;
|
|
@@ -130,9 +133,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
130
133
|
requestRealloc(): void;
|
|
131
134
|
setEndpoint(endpoint: string): void;
|
|
132
135
|
setWebTransportEndpoint(endpoint: string | null): void;
|
|
133
|
-
setConversationId(conversationId: string): void;
|
|
134
136
|
readyToSend(isReady?: boolean): void;
|
|
135
|
-
|
|
136
|
-
requestTestMode(consumerCommand: string, producerCommand: string | null): void;
|
|
137
|
+
requestTestMode(consumerCommand: string, producerCommand: string | null): Promise<SignalingMessage | void>;
|
|
137
138
|
getNextCommandSequenceNumber(): number;
|
|
138
139
|
}
|