cmd-control-client-lib 3.0.177 → 3.0.179
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/MAINTAINER +1 -0
- package/dist/cmd-control-client-lib.js +1 -1
- package/dist/cmd-control-client-lib.js.map +1 -1
- package/dist/protocol/command/action.d.ts +5 -1
- package/dist/protocol/live/live-commands.d.ts +7 -6
- package/dist/protocol/live/supdate.d.ts +1 -0
- package/dist/protocol/sessionstate.d.ts +5 -1
- package/dist/protocol/websip.d.ts +21 -0
- package/dist/protocol/websipasterisk.d.ts +39 -0
- package/package.json +1 -1
|
@@ -161,5 +161,9 @@ export declare enum ACTION {
|
|
|
161
161
|
CMDP_STARTMOBILECALL = "CMDP_STARTMOBILECALL",
|
|
162
162
|
CMDC_STARTMOBILECALL = "CMDC_STARTMOBILECALL",
|
|
163
163
|
CMDP_STOPMOBILECALL = "CMDP_STOPMOBILECALL",
|
|
164
|
-
CMDC_STOPMOBILECALL = "CMDC_STOPMOBILECALL"
|
|
164
|
+
CMDC_STOPMOBILECALL = "CMDC_STOPMOBILECALL",
|
|
165
|
+
CMDC_STARTWEBSIP = "CMDC_STARTWEBSIP",
|
|
166
|
+
CMDC_STOPWEBSIP = "CMDC_STOPWEBSIP",
|
|
167
|
+
CMDP_WSA_ADDUPDATEUSER = "CMDP_WSA_ADDUPDATEUSER",
|
|
168
|
+
CMDP_WSA_HEARTBEAT = "CMDP_WSA_HEARTBEAT"
|
|
165
169
|
}
|
|
@@ -4,17 +4,18 @@ import { ACTION } from "../command/action";
|
|
|
4
4
|
import { baseParamsType } from "../command/baseparams";
|
|
5
5
|
import { ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "../command/icommand";
|
|
6
6
|
import { EnumBooleanDigitized, EnumBooleanStringified, EnumBooleanStringifiedExtended } from "../../@types";
|
|
7
|
+
export declare enum EnumPowerEstimation {
|
|
8
|
+
LOW = "LOW",
|
|
9
|
+
MIDDLE = "MIDDLE",
|
|
10
|
+
HIGH = "HIGH"
|
|
11
|
+
}
|
|
7
12
|
export declare class CMDP_STARTSEND implements ICOMMAND {
|
|
8
13
|
action: ACTION;
|
|
9
14
|
params: baseParamsType & {
|
|
10
|
-
camName?: string;
|
|
11
|
-
videoWidth?: string;
|
|
12
|
-
videoHeight?: string;
|
|
13
|
-
fps?: string;
|
|
14
15
|
hasAudio?: EnumBooleanDigitized;
|
|
15
|
-
microName?: string;
|
|
16
16
|
bandWidth?: string;
|
|
17
|
-
|
|
17
|
+
capabilities?: string;
|
|
18
|
+
powerEstimation?: EnumPowerEstimation;
|
|
18
19
|
};
|
|
19
20
|
}
|
|
20
21
|
export declare class CMDP_STARTSEND_RESPONSE extends CMDP_STARTSEND implements IRESPONSE {
|
|
@@ -74,10 +74,14 @@ export interface SessionState extends IKeyMaybeValue {
|
|
|
74
74
|
service0900State?: EnumService0900State;
|
|
75
75
|
/** the live preview*/
|
|
76
76
|
livePreviewState?: EnumBooleanStringified;
|
|
77
|
-
/** */
|
|
77
|
+
/** only exclusive stream available*/
|
|
78
78
|
babeStation24State?: EnumBooleanStringified;
|
|
79
|
+
/** ticket show allowed*/
|
|
79
80
|
canOpenLobby?: EnumBooleanStringified;
|
|
81
|
+
/** private ticket show allowed*/
|
|
80
82
|
canSellSingleC2CTicket?: EnumBooleanStringified;
|
|
83
|
+
/** web sip allowed*/
|
|
84
|
+
webSIPState?: EnumBooleanStringified;
|
|
81
85
|
userLinks?: JSONString<IProductConfig["links"]>;
|
|
82
86
|
chatMotto?: string;
|
|
83
87
|
showInfoWizards?: ComaSeparatedValues<InfoWizard> | string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ACTION } from "./command/action";
|
|
2
|
+
import { ICOMMAND } from "./command/icommand";
|
|
3
|
+
/** web sip client endpoint configuration */
|
|
4
|
+
export declare type wsaEndpointConfig = {
|
|
5
|
+
sipEndpoint: string;
|
|
6
|
+
sipExtension: string;
|
|
7
|
+
sipUser: string;
|
|
8
|
+
sipPassword: string;
|
|
9
|
+
};
|
|
10
|
+
export declare class CMDC_STARTWEBSIP implements ICOMMAND {
|
|
11
|
+
action: ACTION.CMDC_STARTWEBSIP;
|
|
12
|
+
params: {
|
|
13
|
+
sessionID: string;
|
|
14
|
+
} & wsaEndpointConfig;
|
|
15
|
+
}
|
|
16
|
+
export declare class CMDC_STOPWEBSIPSOCKET implements ICOMMAND {
|
|
17
|
+
action: ACTION.CMDC_STOPWEBSIP;
|
|
18
|
+
params: {
|
|
19
|
+
sessionID: string;
|
|
20
|
+
} & wsaEndpointConfig;
|
|
21
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ACTION } from "./command/action";
|
|
2
|
+
import { ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "./command/icommand";
|
|
3
|
+
import { baseParamsType } from "./command/baseparams";
|
|
4
|
+
import { EnumBooleanStringified } from "../@types";
|
|
5
|
+
export declare type wsaUser = {
|
|
6
|
+
id: string;
|
|
7
|
+
username: string;
|
|
8
|
+
password: string;
|
|
9
|
+
max_contacts: string;
|
|
10
|
+
qualify_frequency: string;
|
|
11
|
+
};
|
|
12
|
+
/** command to asterisk*/
|
|
13
|
+
export declare class CMDP_WSA_ADDUPDATEUSER implements ICOMMAND {
|
|
14
|
+
action: ACTION.CMDP_WSA_ADDUPDATEUSER;
|
|
15
|
+
params: baseParamsType & wsaUser;
|
|
16
|
+
}
|
|
17
|
+
export declare class CMDP_WSA_ADDUPDATEUSER_RESPONSE extends CMDP_WSA_ADDUPDATEUSER implements IRESPONSE {
|
|
18
|
+
result: RESULT;
|
|
19
|
+
values: IKeyMaybeValue;
|
|
20
|
+
commands: ICOMMAND[];
|
|
21
|
+
}
|
|
22
|
+
/** command from asterisk*/
|
|
23
|
+
export declare class CMDP_WSA_HEARTBEAT implements ICOMMAND {
|
|
24
|
+
action: ACTION.CMDP_WSA_HEARTBEAT;
|
|
25
|
+
params: baseParamsType & {
|
|
26
|
+
accessKey: string;
|
|
27
|
+
hostName: string;
|
|
28
|
+
shutdown: EnumBooleanStringified;
|
|
29
|
+
response: string;
|
|
30
|
+
startup_time: string;
|
|
31
|
+
reload_time: string;
|
|
32
|
+
current_calls: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export declare class CMDP_WSA_HEARTBEAT_RESPONSE extends CMDP_WSA_HEARTBEAT implements IRESPONSE {
|
|
36
|
+
result: RESULT;
|
|
37
|
+
values: IKeyMaybeValue;
|
|
38
|
+
commands: ICOMMAND[];
|
|
39
|
+
}
|