cmd-control-client-lib 3.0.218 → 3.0.224
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/cmd-control-client-lib.js +1 -1
- package/dist/cmd-control-client-lib.js.map +1 -1
- package/dist/cmd-protocol.d.ts +1 -0
- package/dist/protocol/command/action.d.ts +5 -0
- package/dist/protocol/command/baseparams.d.ts +2 -0
- package/dist/protocol/websipasterisk.d.ts +53 -2
- package/package.json +1 -1
package/dist/cmd-protocol.d.ts
CHANGED
|
@@ -47,4 +47,5 @@ export * from "./protocol/status";
|
|
|
47
47
|
export * from "./protocol/exit-code";
|
|
48
48
|
export * from "./protocol/clivechat";
|
|
49
49
|
export * from "./protocol/feedback";
|
|
50
|
+
export * from "./protocol/messenger/videosdk";
|
|
50
51
|
export { SupportedLanguage, CmdClientAgent, EnumFormatValues, baseParamsType } from "./protocol/command/baseparams";
|
|
@@ -165,6 +165,11 @@ export declare enum ACTION {
|
|
|
165
165
|
CMDC_STARTWEBSIP = "CMDC_STARTWEBSIP",
|
|
166
166
|
CMDC_STOPWEBSIP = "CMDC_STOPWEBSIP",
|
|
167
167
|
CMDP_WSA_ADDUPDATEUSER = "CMDP_WSA_ADDUPDATEUSER",
|
|
168
|
+
CMDP_WSA_DELETEUSER = "CMDP_WSA_DELETEUSER",
|
|
169
|
+
CMDP_WSA_GET_USERS = "CMDP_WSA_GET_USERS",
|
|
170
|
+
CMDC_WSA_USER = "CMDC_WSA_USER",
|
|
171
|
+
CMDP_WSA_GET_CLIENTS = "CMDP_WSA_GET_CLIENTS",
|
|
172
|
+
CMDC_WSA_CLIENT = "CMDC_WSA_CLIENT",
|
|
168
173
|
CMDP_WSA_HEARTBEAT = "CMDP_WSA_HEARTBEAT",
|
|
169
174
|
CMDP_DEEPL = "CMDP_DEEPL",
|
|
170
175
|
CMDP_SGETSTREAMPARAMS = "CMDP_SGETSTREAMPARAMS",
|
|
@@ -16,6 +16,8 @@ export declare enum EnumFormatValues {
|
|
|
16
16
|
export declare type baseParamsType = {
|
|
17
17
|
/** your app instance id, internal */
|
|
18
18
|
_iid?: string;
|
|
19
|
+
/** unique command id, internal */
|
|
20
|
+
_uniq?: string;
|
|
19
21
|
/** your app type */
|
|
20
22
|
agent?: CmdClientAgent;
|
|
21
23
|
/** your sessionID from CMDP_LOGIN_RESPONSE, Ignored in CMDP_LOGIN, CMDP_INIT */
|
|
@@ -2,7 +2,7 @@ import { ACTION } from "./command/action";
|
|
|
2
2
|
import { ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "./command/icommand";
|
|
3
3
|
import { baseParamsType } from "./command/baseparams";
|
|
4
4
|
import { EnumBooleanStringified } from "../@types";
|
|
5
|
-
export declare type
|
|
5
|
+
export declare type wsaUserType = {
|
|
6
6
|
id: string;
|
|
7
7
|
username: string;
|
|
8
8
|
password: string;
|
|
@@ -12,13 +12,64 @@ export declare type wsaUser = {
|
|
|
12
12
|
/** command to asterisk*/
|
|
13
13
|
export declare class CMDP_WSA_ADDUPDATEUSER implements ICOMMAND {
|
|
14
14
|
action: ACTION.CMDP_WSA_ADDUPDATEUSER;
|
|
15
|
-
params:
|
|
15
|
+
params: wsaUserType;
|
|
16
16
|
}
|
|
17
17
|
export declare class CMDP_WSA_ADDUPDATEUSER_RESPONSE extends CMDP_WSA_ADDUPDATEUSER implements IRESPONSE {
|
|
18
18
|
result: RESULT;
|
|
19
19
|
values: IKeyMaybeValue;
|
|
20
20
|
commands: ICOMMAND[];
|
|
21
21
|
}
|
|
22
|
+
export declare class CMDP_WSA_DELETEUSER implements ICOMMAND {
|
|
23
|
+
action: ACTION.CMDP_WSA_DELETEUSER;
|
|
24
|
+
params: wsaUserType;
|
|
25
|
+
}
|
|
26
|
+
export declare class CMDP_WSA_DELETEUSER_RESPONSE extends CMDP_WSA_DELETEUSER implements IRESPONSE {
|
|
27
|
+
result: RESULT;
|
|
28
|
+
values: IKeyMaybeValue;
|
|
29
|
+
commands: ICOMMAND[];
|
|
30
|
+
}
|
|
31
|
+
export declare class CMDP_WSA_GET_USERS implements ICOMMAND {
|
|
32
|
+
action: ACTION.CMDP_WSA_GET_USERS;
|
|
33
|
+
params: IKeyMaybeValue;
|
|
34
|
+
}
|
|
35
|
+
export declare class CMDC_WSA_USER implements ICOMMAND {
|
|
36
|
+
action: ACTION.CMDC_WSA_USER;
|
|
37
|
+
params: {
|
|
38
|
+
objectName: string;
|
|
39
|
+
transport: string;
|
|
40
|
+
contacts: string;
|
|
41
|
+
deviceState: string;
|
|
42
|
+
activeChannels: string;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export declare class CMDP_WSA_GET_USERS_RESPONSE extends CMDP_WSA_GET_USERS implements IRESPONSE {
|
|
46
|
+
result: RESULT;
|
|
47
|
+
values: IKeyMaybeValue;
|
|
48
|
+
commands: CMDC_WSA_USER[];
|
|
49
|
+
}
|
|
50
|
+
export declare class CMDP_WSA_GET_CLIENTS implements ICOMMAND {
|
|
51
|
+
action: ACTION.CMDP_WSA_GET_CLIENTS;
|
|
52
|
+
params: IKeyMaybeValue;
|
|
53
|
+
}
|
|
54
|
+
export declare class CMDC_WSA_CLIENT implements ICOMMAND {
|
|
55
|
+
action: ACTION.CMDC_WSA_CLIENT;
|
|
56
|
+
params: {
|
|
57
|
+
callId: string;
|
|
58
|
+
endPoint: string;
|
|
59
|
+
expirationTime: string;
|
|
60
|
+
objectName: string;
|
|
61
|
+
qualifyTimeout: string;
|
|
62
|
+
roundripUsec: string;
|
|
63
|
+
status: string;
|
|
64
|
+
uri: string;
|
|
65
|
+
viaAddr: string;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export declare class CMDP_WSA_GET_CLIENTS_RESPONSE extends CMDP_WSA_GET_CLIENTS implements IRESPONSE {
|
|
69
|
+
result: RESULT;
|
|
70
|
+
values: IKeyMaybeValue;
|
|
71
|
+
commands: CMDC_WSA_CLIENT[];
|
|
72
|
+
}
|
|
22
73
|
/** command from asterisk*/
|
|
23
74
|
export declare class CMDP_WSA_HEARTBEAT implements ICOMMAND {
|
|
24
75
|
action: ACTION.CMDP_WSA_HEARTBEAT;
|