@vkontakte/calls-sdk 2.8.11-dev.50a3a6bf.0 → 2.8.11-dev.54118420.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 -0
- package/abstract/BaseApi.d.ts +2 -0
- package/calls-sdk.cjs.js +9 -9
- package/calls-sdk.esm.js +812 -708
- package/classes/CallRegistry.d.ts +1 -1
- package/classes/Conversation.d.ts +1 -1
- package/classes/codec/WorkerBase.d.ts +2 -0
- package/default/Api.d.ts +7 -0
- package/package.json +1 -1
- package/types/PushData.d.ts +3 -0
|
@@ -12,7 +12,7 @@ export declare class CallRegistry {
|
|
|
12
12
|
remove(id: string | null): void;
|
|
13
13
|
get(id: string): HoldableConversation | undefined;
|
|
14
14
|
getActive(): HoldableConversation | null;
|
|
15
|
-
|
|
15
|
+
getFirst(): HoldableConversation | null;
|
|
16
16
|
getActiveId(): string | null;
|
|
17
17
|
has(id: string): boolean;
|
|
18
18
|
getAll(): HoldableConversation[];
|
|
@@ -117,7 +117,7 @@ export default class Conversation extends EventEmitter {
|
|
|
117
117
|
destroy(): Promise<void>;
|
|
118
118
|
private _getConversationParams;
|
|
119
119
|
private _setConversationParams;
|
|
120
|
-
private
|
|
120
|
+
private _buildSignalingEndpoint;
|
|
121
121
|
/**
|
|
122
122
|
* @throws ErrorEvent
|
|
123
123
|
*/
|
package/default/Api.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import ConversationParams from '../types/ConversationParams';
|
|
|
5
5
|
import ConversationResponse from '../types/ConversationResponse';
|
|
6
6
|
import { ExternalId, ExternalParticipantId, ExternalUserId } from '../types/ExternalId';
|
|
7
7
|
import { CompositeUserId, OkUserId, ParticipantId } from '../types/Participant';
|
|
8
|
+
import PushData from '../types/PushData';
|
|
8
9
|
export default class Api extends BaseApi {
|
|
9
10
|
private _userId;
|
|
10
11
|
private _uuid;
|
|
@@ -13,6 +14,11 @@ export default class Api extends BaseApi {
|
|
|
13
14
|
protected _call(method: string, data?: any, noSession?: boolean): Promise<any>;
|
|
14
15
|
userId(participantId: ParticipantId): Promise<ExternalParticipantId>;
|
|
15
16
|
authorize(): Promise<void>;
|
|
17
|
+
private _getAnonymLoginCacheKey;
|
|
18
|
+
private _getCachedAnonymLogin;
|
|
19
|
+
private _setCachedAnonymLogin;
|
|
20
|
+
private _removeCachedAnonymLogin;
|
|
21
|
+
private _applyAnonymLogin;
|
|
16
22
|
logClientStats(items: ClientStats[]): void;
|
|
17
23
|
logClientEvents(items: ClientEvent[]): void;
|
|
18
24
|
uploadDebugLogs(conversationId: string, startTime: number, endTime: number, log: string): Promise<void>;
|
|
@@ -60,4 +66,5 @@ export default class Api extends BaseApi {
|
|
|
60
66
|
cleanup(): void;
|
|
61
67
|
private _getExternalIdsByOkIds;
|
|
62
68
|
getServerTime(): Promise<number>;
|
|
69
|
+
getInbounds(): Promise<PushData[]>;
|
|
63
70
|
}
|
package/package.json
CHANGED
package/types/PushData.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import IceServer from './IceServer';
|
|
1
2
|
type PushData = {
|
|
2
3
|
caller_id: string;
|
|
3
4
|
caller_client_type?: string;
|
|
4
5
|
conversation_id: string;
|
|
5
6
|
endpoint: string;
|
|
7
|
+
wt_endpoint?: string;
|
|
8
|
+
turn_server?: IceServer;
|
|
6
9
|
is_video: boolean;
|
|
7
10
|
token: string;
|
|
8
11
|
sdp_offer?: string;
|