cmd-control-client-lib 3.0.58 → 3.0.65
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/channel.d.ts +1 -1
- package/dist/protocol/command/action.d.ts +5 -1
- package/dist/protocol/live/live-commands.d.ts +2 -1
- package/dist/protocol/live/msettings.d.ts +120 -0
- package/dist/protocol/mediaoffer.d.ts +15 -0
- package/dist/protocol/systemmessagekey.d.ts +2 -1
- package/package.json +1 -1
package/dist/cmd-protocol.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export * from "./protocol/live/streamstate";
|
|
|
36
36
|
export * from "./protocol/live/onlinesummary";
|
|
37
37
|
export * from "./protocol/live/usersettings";
|
|
38
38
|
export * from "./protocol/live/testchat";
|
|
39
|
+
export * from "./protocol/live/msettings";
|
|
39
40
|
export * from "./protocol/messenger/expo";
|
|
40
41
|
export * from "./protocol/messenger/signup";
|
|
41
42
|
export * from "./protocol/single-c2c";
|
|
@@ -23,7 +23,7 @@ export declare type channelIdType = {
|
|
|
23
23
|
/**
|
|
24
24
|
* Type that may or may not have `channelId` field
|
|
25
25
|
*/
|
|
26
|
-
export interface IMayHaveChannelId {
|
|
26
|
+
export interface IMayHaveChannelId extends IKeyMaybeValue {
|
|
27
27
|
channelId?: string;
|
|
28
28
|
}
|
|
29
29
|
export declare type usrKeyType = {
|
|
@@ -122,5 +122,9 @@ export declare enum ACTION {
|
|
|
122
122
|
CMDP_SGETTICKETS = "CMDP_SGETTICKETS",
|
|
123
123
|
CMDP_SCHECKUPLOADEDMEDIA = "CMDP_SCHECKUPLOADEDMEDIA",
|
|
124
124
|
CMDP_SGETUPLOADEDMEDIA = "CMDP_SGETUPLOADEDMEDIA",
|
|
125
|
-
CMDC_CMEDIA = "CMDC_CMEDIA"
|
|
125
|
+
CMDC_CMEDIA = "CMDC_CMEDIA",
|
|
126
|
+
CMDP_SCLOSETICKET = "CMDP_SCLOSETICKET",
|
|
127
|
+
CMDP_SGETMSETTINGS = "CMDP_SGETMSETTINGS",
|
|
128
|
+
CMDP_SSETMSETTING = "CMDP_SSETMSETTING",
|
|
129
|
+
CMDC_MSETTINGS = "CMDC_MSETTINGS"
|
|
126
130
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { chatIdType } from "../chatstate";
|
|
2
|
+
import { IMayHaveChannelId } from "./../channel";
|
|
2
3
|
import { ACTION } from "../command/action";
|
|
3
4
|
import { baseParamsType } from "../command/baseparams";
|
|
4
5
|
import { ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "../command/icommand";
|
|
@@ -319,7 +320,7 @@ export declare enum QueryUserKeyEnum {
|
|
|
319
320
|
}
|
|
320
321
|
export declare class CMDC_QUERYUSER implements ICOMMAND {
|
|
321
322
|
action: ACTION;
|
|
322
|
-
params: {
|
|
323
|
+
params: IMayHaveChannelId & {
|
|
323
324
|
queryId: string;
|
|
324
325
|
key: QueryUserKeyEnum;
|
|
325
326
|
caption: string;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { JSONString } from "../../@types";
|
|
2
|
+
import { ICOMMAND, ACTION, IRESPONSE, RESULT, IKeyMaybeValue } from "../../cmd-protocol";
|
|
3
|
+
import { baseParamsType, SupportedLanguage } from "../command/baseparams";
|
|
4
|
+
export declare enum MSettingNameEnum {
|
|
5
|
+
ConversionChat = 0,
|
|
6
|
+
HeatmapEnabled = 1,
|
|
7
|
+
LiveChatPreview = 2,
|
|
8
|
+
LovenseToyRequest = 3,
|
|
9
|
+
MessengerPrice = 4,
|
|
10
|
+
VideoChatPrice = 5,
|
|
11
|
+
PrivateChatPrice = 6,
|
|
12
|
+
SoftChatEnabled = 7,
|
|
13
|
+
VoyeurChatEnabled = 8,
|
|
14
|
+
VoyeurChatPrivateAudio = 9,
|
|
15
|
+
FreeChatEnabled = 10,
|
|
16
|
+
PartyChatEnabled = 11
|
|
17
|
+
}
|
|
18
|
+
export declare enum MSettingValueTypeEnum {
|
|
19
|
+
FLOAT = "float",
|
|
20
|
+
BOOL = "bool",
|
|
21
|
+
ENUM = "enum",
|
|
22
|
+
MULTILANGSTRING = "multiLangString"
|
|
23
|
+
}
|
|
24
|
+
export declare class MSetting {
|
|
25
|
+
name: MSettingNameEnum;
|
|
26
|
+
type: MSettingValueTypeEnum;
|
|
27
|
+
isDisabled: boolean;
|
|
28
|
+
isReadOnly: boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare class MSettingFloat extends MSetting {
|
|
31
|
+
type: MSettingValueTypeEnum.FLOAT;
|
|
32
|
+
value: number;
|
|
33
|
+
minValue: number;
|
|
34
|
+
maxValue: number;
|
|
35
|
+
}
|
|
36
|
+
export declare class MSettingBool extends MSetting {
|
|
37
|
+
type: MSettingValueTypeEnum.BOOL;
|
|
38
|
+
value: boolean;
|
|
39
|
+
}
|
|
40
|
+
export declare enum ToyRequestEnum {
|
|
41
|
+
notSet = 0,
|
|
42
|
+
notAllowed = 1,
|
|
43
|
+
requested = 2,
|
|
44
|
+
accepted = 3,
|
|
45
|
+
rejected = 4
|
|
46
|
+
}
|
|
47
|
+
export declare class MSettingEnumToyRequest {
|
|
48
|
+
type: MSettingValueTypeEnum.ENUM;
|
|
49
|
+
value: ToyRequestEnum;
|
|
50
|
+
}
|
|
51
|
+
export declare class LanguageText {
|
|
52
|
+
lang: SupportedLanguage;
|
|
53
|
+
text: string | null;
|
|
54
|
+
}
|
|
55
|
+
export declare class MSettingMultiLangString extends MSetting {
|
|
56
|
+
type: MSettingValueTypeEnum.ENUM;
|
|
57
|
+
requiredLangs: SupportedLanguage[];
|
|
58
|
+
value: LanguageText[];
|
|
59
|
+
minLength: number | null;
|
|
60
|
+
maxLength: number | null;
|
|
61
|
+
}
|
|
62
|
+
/** if one of feilds is missing, so the Settig is not applicable to this account */
|
|
63
|
+
export declare class MSettings {
|
|
64
|
+
ConversionChat?: MSettingBool;
|
|
65
|
+
HeatmapEnabled?: MSettingBool;
|
|
66
|
+
HeatmapDescription?: MSettingMultiLangString;
|
|
67
|
+
LiveChatPreview?: MSettingBool;
|
|
68
|
+
LovenseToyRequest?: MSettingEnumToyRequest;
|
|
69
|
+
MessengerPrice?: MSettingFloat;
|
|
70
|
+
VideoChatPrice?: MSettingFloat;
|
|
71
|
+
PrivateChatPrice?: MSettingFloat;
|
|
72
|
+
SoftChatEnabled?: MSettingBool;
|
|
73
|
+
VoyeurChatEnabled?: MSettingBool;
|
|
74
|
+
VoyeurChatPrivateAudio?: MSettingBool;
|
|
75
|
+
FreeChatEnabled?: MSettingBool;
|
|
76
|
+
PartyChatEnabled?: MSettingBool;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Get command
|
|
80
|
+
*/
|
|
81
|
+
export declare class CMDP_SGETMSETTINGS implements ICOMMAND {
|
|
82
|
+
action: ACTION;
|
|
83
|
+
params: baseParamsType;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Get command response
|
|
87
|
+
*/
|
|
88
|
+
export declare class CMDP_SGETMSETTINGS_RESPONSE extends CMDP_SGETMSETTINGS implements IRESPONSE {
|
|
89
|
+
result: RESULT;
|
|
90
|
+
commands: ICOMMAND[];
|
|
91
|
+
values: {
|
|
92
|
+
mSettings: JSONString<MSettings>;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* set command,
|
|
97
|
+
* the settingValue is JSONString of value for settingName
|
|
98
|
+
*/
|
|
99
|
+
export declare class CMDP_SSETMSETTING implements ICOMMAND {
|
|
100
|
+
action: ACTION;
|
|
101
|
+
params: baseParamsType & {
|
|
102
|
+
settingName: MSettingNameEnum;
|
|
103
|
+
settingValue: string;
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Set command response
|
|
108
|
+
*/
|
|
109
|
+
export declare class CMDP_SSETMSETTING_RESPONSE extends CMDP_SSETMSETTING implements IRESPONSE {
|
|
110
|
+
result: RESULT;
|
|
111
|
+
commands: ICOMMAND[];
|
|
112
|
+
values: IKeyMaybeValue;
|
|
113
|
+
}
|
|
114
|
+
/** NOOP update command */
|
|
115
|
+
export declare class CMDC_MSETTINGS implements ICOMMAND {
|
|
116
|
+
action: ACTION;
|
|
117
|
+
params: {
|
|
118
|
+
mSettings: JSONString<MSettings>;
|
|
119
|
+
};
|
|
120
|
+
}
|
|
@@ -53,4 +53,19 @@ export declare class CMDP_SGETTICKETS_PRESPONSE extends CMDP_SGETTICKETS impleme
|
|
|
53
53
|
commands: CMDC_CMEDIA[];
|
|
54
54
|
values: IKeyMaybeValue;
|
|
55
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Frontend command for close of ticket.
|
|
58
|
+
*/
|
|
59
|
+
export declare class CMDP_SCLOSETICKET implements ICOMMAND {
|
|
60
|
+
action: ACTION;
|
|
61
|
+
params: baseParamsType & channelIdType;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Response command for CMDP_SCLOSETICKED.
|
|
65
|
+
*/
|
|
66
|
+
export declare class CMDP_SCLOSETICKET_PRESPONSE extends CMDP_SCLOSETICKET implements IRESPONSE {
|
|
67
|
+
result: RESULT;
|
|
68
|
+
commands: ICOMMAND[];
|
|
69
|
+
values: IKeyMaybeValue;
|
|
70
|
+
}
|
|
56
71
|
export {};
|
|
@@ -308,5 +308,6 @@ export declare enum SystemMessageKey {
|
|
|
308
308
|
h_test_50 = "h_test_50",
|
|
309
309
|
h_video_cancel = "h_video_cancel",
|
|
310
310
|
h_video_delayed = "h_video_delayed",
|
|
311
|
-
h_video_reconnect = "h_video_reconnect"
|
|
311
|
+
h_video_reconnect = "h_video_reconnect",
|
|
312
|
+
h_session_singlec2c_query_sent = "h_session_singlec2c_query_sent"
|
|
312
313
|
}
|