cmd-control-client-lib 3.0.137 → 3.0.140
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/@types/enum-status-type.d.ts +3 -1
- package/dist/cmd-control-client-lib.js +1 -1
- package/dist/cmd-control-client-lib.js.map +1 -1
- package/dist/protocol/channel.d.ts +2 -0
- package/dist/protocol/clivechat.d.ts +3 -1
- package/dist/protocol/command/action.d.ts +2 -1
- package/dist/protocol/live/channelgroups.d.ts +6 -4
- package/dist/protocol/status.d.ts +29 -3
- package/package.json +1 -1
|
@@ -151,6 +151,8 @@ export declare type channelIdSelector = {
|
|
|
151
151
|
export declare type getChannelsParamsType = {
|
|
152
152
|
/** from serial, default = 0 */
|
|
153
153
|
serial?: string;
|
|
154
|
+
/** query offset */
|
|
155
|
+
skip?: string;
|
|
154
156
|
/** limit, default is 1000 */
|
|
155
157
|
limit?: string;
|
|
156
158
|
/** get CMDC_CONTACTNOTE in commands, default 0, deprecated */
|
|
@@ -10,7 +10,9 @@ export declare enum EnumClientStatusType {
|
|
|
10
10
|
PLAYER_EVENT = "16",
|
|
11
11
|
PAGE_HIDDEN = "20",
|
|
12
12
|
PAGE_VISIBLE = "21",
|
|
13
|
-
PROXY_STATE_INFO = "22"
|
|
13
|
+
PROXY_STATE_INFO = "22",
|
|
14
|
+
MEDIA_PLAYER_EVENT = "23",
|
|
15
|
+
WEBRTC_STATS = "24"
|
|
14
16
|
}
|
|
15
17
|
export declare class CMDP_CSTATUS implements ICOMMAND {
|
|
16
18
|
action: ACTION;
|
|
@@ -153,5 +153,6 @@ export declare enum ACTION {
|
|
|
153
153
|
CMDC_SEDCARDPICTURE = "CMDC_SEDCARDPICTURE",
|
|
154
154
|
CMDP_CSTATUS = "CMDP_CSTATUS",
|
|
155
155
|
CMDP_CINIT = "CMDP_CINIT",
|
|
156
|
-
CMDP_SMSGREACTION = "CMDP_SMSGREACTION"
|
|
156
|
+
CMDP_SMSGREACTION = "CMDP_SMSGREACTION",
|
|
157
|
+
CMDC_SSTATUS = "CMDC_SSTATUS"
|
|
157
158
|
}
|
|
@@ -45,8 +45,9 @@ export declare class CMDP_SADDGROUP implements ICOMMAND {
|
|
|
45
45
|
groupName: string;
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
export declare class CMDP_SADDGROUP_RESPONSE extends CMDP_SADDGROUP {
|
|
49
|
-
|
|
48
|
+
export declare class CMDP_SADDGROUP_RESPONSE extends CMDP_SADDGROUP implements IRESPONSE {
|
|
49
|
+
result: RESULT;
|
|
50
|
+
commands: CMDC_GROUP[];
|
|
50
51
|
values: IKeyMaybeValue;
|
|
51
52
|
}
|
|
52
53
|
export declare class CMDP_SUPDATEGROUP implements ICOMMAND {
|
|
@@ -58,8 +59,9 @@ export declare class CMDP_SUPDATEGROUP implements ICOMMAND {
|
|
|
58
59
|
groupActive?: "0" | "1" | string;
|
|
59
60
|
};
|
|
60
61
|
}
|
|
61
|
-
export declare class CMDP_SUPDATEGROUP_RESPONSE extends CMDP_SUPDATEGROUP {
|
|
62
|
-
|
|
62
|
+
export declare class CMDP_SUPDATEGROUP_RESPONSE extends CMDP_SUPDATEGROUP implements IRESPONSE {
|
|
63
|
+
result: RESULT;
|
|
64
|
+
commands: ICOMMAND[];
|
|
63
65
|
values: IKeyMaybeValue;
|
|
64
66
|
}
|
|
65
67
|
export declare class CMDP_SGETGROUPCHANNELS implements ICOMMAND {
|
|
@@ -1,15 +1,35 @@
|
|
|
1
1
|
import { EnumStreamStatusType } from "../@types";
|
|
2
2
|
import { ICOMMAND, ACTION, baseParamsType, IRESPONSE, RESULT, IKeyMaybeValue } from "../cmd-protocol";
|
|
3
|
+
export declare enum EnumPlayerEventType {
|
|
4
|
+
Play = 0,
|
|
5
|
+
Error = 1,
|
|
6
|
+
Warn = 2,
|
|
7
|
+
Info = 3
|
|
8
|
+
}
|
|
9
|
+
/** for EnumStreamStatusType.MEDIA_PLAYER_EVENT, value = JSON.stringify(MediaPlayerEvent) */
|
|
10
|
+
export declare class MediaPlayerEvent {
|
|
11
|
+
/** the messageId with media */
|
|
12
|
+
messageId: string;
|
|
13
|
+
/** player name. hlsjs, native, etc */
|
|
14
|
+
player: string;
|
|
15
|
+
/** the url of media */
|
|
16
|
+
mediaUrl: string;
|
|
17
|
+
/** the event type */
|
|
18
|
+
eventType: EnumPlayerEventType;
|
|
19
|
+
/**detailed info: error details, player details. etc. JSON.stringify(object)*/
|
|
20
|
+
eventData: string;
|
|
21
|
+
}
|
|
3
22
|
/** */
|
|
4
23
|
export declare class CMDP_SSTATUS implements ICOMMAND {
|
|
5
24
|
action: ACTION;
|
|
6
25
|
params: baseParamsType & {
|
|
7
26
|
type: EnumStreamStatusType;
|
|
8
27
|
value: string;
|
|
9
|
-
|
|
28
|
+
} & {
|
|
29
|
+
/**comaseparated list for PROXY_STATE_INFO*/
|
|
10
30
|
channelId?: string;
|
|
11
|
-
/**comaseparated list */
|
|
12
|
-
chatIDs
|
|
31
|
+
/**comaseparated list for PROXY_STATE_INFO*/
|
|
32
|
+
chatIDs?: string;
|
|
13
33
|
};
|
|
14
34
|
}
|
|
15
35
|
export declare class CMDP_SSTATUS_RESPONSE extends CMDP_SSTATUS implements IRESPONSE {
|
|
@@ -17,3 +37,9 @@ export declare class CMDP_SSTATUS_RESPONSE extends CMDP_SSTATUS implements IRESP
|
|
|
17
37
|
commands: ICOMMAND[];
|
|
18
38
|
values: IKeyMaybeValue;
|
|
19
39
|
}
|
|
40
|
+
export declare class CMDC_SSTATUS implements ICOMMAND {
|
|
41
|
+
action: ACTION;
|
|
42
|
+
params: {
|
|
43
|
+
type: EnumStreamStatusType;
|
|
44
|
+
};
|
|
45
|
+
}
|