@cognigy/click-to-call-sdk 0.0.7 → 0.1.1
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/dist/ConfigManager.d.ts +5 -0
- package/dist/SipManager.d.ts +3 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/internal.d.ts +4 -0
- package/dist/webRTCSDK.cjs.js +1 -1
- package/dist/webRTCSDK.cjs.js.br +0 -0
- package/dist/webRTCSDK.cjs.js.gz +0 -0
- package/dist/webRTCSDK.es.js +1 -1
- package/dist/webRTCSDK.es.js.br +0 -0
- package/dist/webRTCSDK.es.js.gz +0 -0
- package/dist/webRTCSDK.js +1 -1
- package/dist/webRTCSDK.js.br +0 -0
- package/dist/webRTCSDK.js.gz +0 -0
- package/package.json +7 -1
package/dist/ConfigManager.d.ts
CHANGED
|
@@ -9,13 +9,18 @@ export declare class ConfigManager {
|
|
|
9
9
|
getConfig(): EndpointConfig | null;
|
|
10
10
|
getSipCredentials(): {
|
|
11
11
|
fullUsername: string;
|
|
12
|
+
userId: string;
|
|
12
13
|
password: string;
|
|
13
14
|
username: string;
|
|
14
15
|
wsUri: string;
|
|
15
16
|
applicationSid: string;
|
|
16
17
|
realm: string;
|
|
18
|
+
organisationId: string;
|
|
19
|
+
projectId: string;
|
|
20
|
+
endpointId: string | undefined;
|
|
17
21
|
};
|
|
18
22
|
getApplicationSid(): string;
|
|
23
|
+
getCallTarget(): string;
|
|
19
24
|
isActive(): boolean;
|
|
20
25
|
getPrivacySettings(): {
|
|
21
26
|
enabled: boolean;
|
package/dist/SipManager.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import { InternalClientConfig, InternalClientSettings, SipManagerState } from '.
|
|
|
4
4
|
export declare class SipManager extends SDKEventEmitter {
|
|
5
5
|
private ua;
|
|
6
6
|
private pcConfig?;
|
|
7
|
+
private identityHeaders;
|
|
8
|
+
private requiresRegistration;
|
|
7
9
|
private state;
|
|
8
10
|
initialize(client: InternalClientConfig, settings: InternalClientSettings): void;
|
|
9
11
|
private setupEventHandlers;
|
|
@@ -13,6 +15,7 @@ export declare class SipManager extends SDKEventEmitter {
|
|
|
13
15
|
call(number: string, originalNumber?: string): void;
|
|
14
16
|
getState(): SipManagerState;
|
|
15
17
|
isConnected(): boolean;
|
|
18
|
+
needsRegistration(): boolean;
|
|
16
19
|
isRegistered(): boolean;
|
|
17
20
|
isConnecting(): boolean;
|
|
18
21
|
getUserAgent(): IUA | null;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export interface EndpointConfig {
|
|
|
15
15
|
active: boolean;
|
|
16
16
|
label?: string;
|
|
17
17
|
};
|
|
18
|
+
endpointId?: string;
|
|
18
19
|
};
|
|
19
20
|
settings?: {
|
|
20
21
|
privacyNotice?: {
|
|
@@ -79,6 +80,7 @@ export interface WebRTCClientEvents {
|
|
|
79
80
|
}) => void;
|
|
80
81
|
'error': (error: Error) => void;
|
|
81
82
|
'captureAudio': (stream: MediaStream) => void;
|
|
83
|
+
'transcription': (data: any) => void;
|
|
82
84
|
}
|
|
83
85
|
export type EventName = keyof WebRTCClientEvents;
|
|
84
86
|
export type EventCallback<T extends EventName> = WebRTCClientEvents[T];
|
package/dist/types/internal.d.ts
CHANGED
|
@@ -18,6 +18,10 @@ export interface InternalClientConfig {
|
|
|
18
18
|
fullUsername: string;
|
|
19
19
|
password: string;
|
|
20
20
|
username: string;
|
|
21
|
+
userId?: string;
|
|
22
|
+
organisationId?: string;
|
|
23
|
+
projectId?: string;
|
|
24
|
+
endpointId?: string;
|
|
21
25
|
}
|
|
22
26
|
export interface InternalClientSettings {
|
|
23
27
|
wsUri: string;
|