cmd-control-client-lib 3.0.105 → 3.0.107
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 -3
- package/dist/protocol/channel.d.ts +9 -0
- package/dist/protocol/command/action.d.ts +4 -1
- package/dist/protocol/live/live-commands.d.ts +0 -157
- package/dist/protocol/live/livechat.d.ts +282 -0
- package/dist/protocol/mediaupload.d.ts +2 -1
- package/dist/protocol/message.d.ts +2 -2
- package/dist/protocol/sessionstate.d.ts +1 -1
- package/package.json +1 -1
- package/dist/protocol/chat.d.ts +0 -22
- package/dist/protocol/live/chat.d.ts +0 -38
- package/dist/protocol/live/onlinesummary.d.ts +0 -21
package/dist/cmd-protocol.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from "./protocol/command/icommand";
|
|
2
2
|
export * from "./protocol/command/action";
|
|
3
3
|
export * from "./protocol/command/resultcode";
|
|
4
|
-
export * from "./protocol/chat";
|
|
5
4
|
export * from "./protocol/backend";
|
|
6
5
|
export * from "./protocol/channel";
|
|
7
6
|
export * from "./protocol/channelinfo";
|
|
@@ -35,11 +34,10 @@ export * from "./protocol/live/devicestatus";
|
|
|
35
34
|
export * from "./protocol/live/supdate";
|
|
36
35
|
export * from "./protocol/live/products-config";
|
|
37
36
|
export * from "./protocol/live/streamstate";
|
|
38
|
-
export * from "./protocol/live/onlinesummary";
|
|
39
37
|
export * from "./protocol/live/usersettings";
|
|
40
38
|
export * from "./protocol/live/testchat";
|
|
41
39
|
export * from "./protocol/live/msettings";
|
|
42
|
-
export * from "./protocol/live/
|
|
40
|
+
export * from "./protocol/live/livechat";
|
|
43
41
|
export * from "./protocol/live/ticketshow";
|
|
44
42
|
export * from "./protocol/messenger/expo";
|
|
45
43
|
export * from "./protocol/messenger/signup";
|
|
@@ -136,6 +136,15 @@ export declare enum EnumProductId {
|
|
|
136
136
|
PARTNER = "3",
|
|
137
137
|
TV = "4"
|
|
138
138
|
}
|
|
139
|
+
/** channel selector type */
|
|
140
|
+
export declare type channelIdSelector = {
|
|
141
|
+
channelId?: ComaSeparatedValues<string> | string;
|
|
142
|
+
selectRegularCustomer?: EnumBooleanStringified;
|
|
143
|
+
selectAdvertised?: EnumBooleanStringified;
|
|
144
|
+
selectPinned?: EnumBooleanStringified;
|
|
145
|
+
selectVip?: EnumBooleanStringified;
|
|
146
|
+
groupId?: ComaSeparatedValues<string> | string;
|
|
147
|
+
};
|
|
139
148
|
export declare type getChannelsParamsType = {
|
|
140
149
|
/** from serial, default = 0 */
|
|
141
150
|
serial?: string;
|
|
@@ -143,5 +143,8 @@ export declare enum ACTION {
|
|
|
143
143
|
CMDP_SDELETETICKETSHOW = "CMDP_SDELETETICKETSHOW",
|
|
144
144
|
CMDP_SSTARTTICKETSHOW = "CMDP_SSTARTTICKETSHOW",
|
|
145
145
|
CMDP_SSTOPTICKETSHOW = "CMDP_SSTOPTICKETSHOW",
|
|
146
|
-
CMDP_SGETCHATSSUMMARY = "CMDP_SGETCHATSSUMMARY"
|
|
146
|
+
CMDP_SGETCHATSSUMMARY = "CMDP_SGETCHATSSUMMARY",
|
|
147
|
+
CMDP_GETLIVEHISTORY = "CMDP_GETLIVEHISTORY",
|
|
148
|
+
CMDC_LIVESESSION = "CMDC_LIVESESSION",
|
|
149
|
+
CMDC_LIVECHAT = "CMDC_LIVECHAT"
|
|
147
150
|
}
|
|
@@ -4,7 +4,6 @@ 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, EnumStreamStatusType } from "../../@types";
|
|
7
|
-
import { CMDC_CMSG } from "../message";
|
|
8
7
|
export declare class CMDP_STARTSEND implements ICOMMAND {
|
|
9
8
|
action: ACTION;
|
|
10
9
|
params: baseParamsType & {
|
|
@@ -65,133 +64,12 @@ export declare class CMDP_TRACERT_REPLY_RESPONSE extends CMDP_TRACERT_REPLY impl
|
|
|
65
64
|
commands: ICOMMAND[];
|
|
66
65
|
values: IKeyMaybeValue;
|
|
67
66
|
}
|
|
68
|
-
export declare class CMDP_KICK implements ICOMMAND {
|
|
69
|
-
action: ACTION;
|
|
70
|
-
params: baseParamsType & chatIdType;
|
|
71
|
-
}
|
|
72
|
-
export declare class CMDP_KICK_RESPONSE extends CMDP_KICK implements IRESPONSE {
|
|
73
|
-
result: RESULT;
|
|
74
|
-
commands: ICOMMAND[];
|
|
75
|
-
values: IKeyMaybeValue;
|
|
76
|
-
}
|
|
77
67
|
export declare class CMDP_FSK16 implements ICOMMAND {
|
|
78
68
|
action: ACTION.CMDP_FSK16;
|
|
79
69
|
params: baseParamsType & {
|
|
80
70
|
fsk16: EnumBooleanStringified;
|
|
81
71
|
};
|
|
82
72
|
}
|
|
83
|
-
export declare class CMDP_SGETCHATS implements ICOMMAND {
|
|
84
|
-
action: ACTION;
|
|
85
|
-
params: baseParamsType & {
|
|
86
|
-
chatID?: string;
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
export declare class CMDP_SGETCHATS_RESPONSE extends CMDP_SGETCHATS implements IRESPONSE {
|
|
90
|
-
result: RESULT;
|
|
91
|
-
commands: CMDC_CINIT[];
|
|
92
|
-
values: IKeyMaybeValue;
|
|
93
|
-
}
|
|
94
|
-
export declare class CMDP_SGETCHATHISTORY implements ICOMMAND {
|
|
95
|
-
action: ACTION;
|
|
96
|
-
params: baseParamsType & chatIdType & {
|
|
97
|
-
skipChannelMessages: EnumBooleanStringified;
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
export declare class CMDP_SGETCHATHISTORY_RESPONSE extends CMDP_SGETCHATHISTORY implements IRESPONSE {
|
|
101
|
-
result: RESULT;
|
|
102
|
-
commands: CMDC_CMSG[];
|
|
103
|
-
values: IKeyMaybeValue;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Chat flags
|
|
107
|
-
* SELECT CHAT_FLAG_SHORT || ' = "' || CHAT_FLAG_SHORT || '",// ' || CHAT_FLAG_DESCRIPTION FROM CHAT_FLAGS order by CHAT_FLAG_VAL
|
|
108
|
-
*/
|
|
109
|
-
export declare enum ChatFlags {
|
|
110
|
-
_FREE_ = "_FREE_",
|
|
111
|
-
VOYEUR = "VOYEUR",
|
|
112
|
-
CAM2CAM = "CAM2CAM",
|
|
113
|
-
SINGLE = "SINGLE",
|
|
114
|
-
DISCOUNT = "DISCOUNT",
|
|
115
|
-
TEXT = "TEXT",
|
|
116
|
-
FSK16 = "FSK16",
|
|
117
|
-
VOYEUR2S = "VOYEUR2S",
|
|
118
|
-
RECORD = "RECORD",
|
|
119
|
-
FREE = "FREE",
|
|
120
|
-
HASUPLPICS = "HASUPLPICS",
|
|
121
|
-
PREVIEW = "PREVIEW",
|
|
122
|
-
FSKACK = "FSKACK",
|
|
123
|
-
VOYSHOWN = "VOYSHOWN",
|
|
124
|
-
PARTY = "PARTY",
|
|
125
|
-
FREECHAT = "FREECHAT",
|
|
126
|
-
TOY = "TOY",
|
|
127
|
-
CONVERSION = "CONVERSION",
|
|
128
|
-
TESTCHAT = "TESTCHAT",
|
|
129
|
-
SECONDARY = "SECONDARY",
|
|
130
|
-
AUDIO = "AUDIO",
|
|
131
|
-
CONVERTED = "CONVERTED",
|
|
132
|
-
TIP = "TIP",
|
|
133
|
-
GUESTCHAT = "GUESTCHAT",
|
|
134
|
-
MOBILE = "MOBILE",
|
|
135
|
-
FLATRATE = "FLATRATE",
|
|
136
|
-
SINGLEC2C = "SINGLEC2C"
|
|
137
|
-
}
|
|
138
|
-
export declare class SChatInfo implements IKeyMaybeValue {
|
|
139
|
-
[key: string]: string;
|
|
140
|
-
/** the unique chatId*/
|
|
141
|
-
chatID: string;
|
|
142
|
-
/** the chat type, can be changed. 15 contentpartner, 16 prepaid, 13 - dialerchat*/
|
|
143
|
-
type: string;
|
|
144
|
-
/** chat flags coma separated. see enum ChatFlags*/
|
|
145
|
-
flags: string | keyof typeof ChatFlags;
|
|
146
|
-
/** start timestamp */
|
|
147
|
-
startTime: string;
|
|
148
|
-
/** stop timestamp */
|
|
149
|
-
stopTime?: string;
|
|
150
|
-
/** the paid time */
|
|
151
|
-
paidTime?: string;
|
|
152
|
-
/** exit code, see */
|
|
153
|
-
exitCode?: string;
|
|
154
|
-
/** admin chat */
|
|
155
|
-
admin?: EnumBooleanDigitized;
|
|
156
|
-
/** you can kick und ban this user */
|
|
157
|
-
canBan?: EnumBooleanDigitized;
|
|
158
|
-
/** you can give a discount to this user*/
|
|
159
|
-
canDiscount?: EnumBooleanDigitized;
|
|
160
|
-
/** single ability */
|
|
161
|
-
canSingle?: EnumBooleanDigitized;
|
|
162
|
-
/** c2c ability */
|
|
163
|
-
canCam2Cam?: EnumBooleanDigitized;
|
|
164
|
-
/** the category */
|
|
165
|
-
ccl_cat2?: string;
|
|
166
|
-
/** messenger channel id */
|
|
167
|
-
channelId?: string;
|
|
168
|
-
/** @deprecated */
|
|
169
|
-
fixedPayout?: string;
|
|
170
|
-
/** the soft/hard status */
|
|
171
|
-
fsk?: "16" | "18";
|
|
172
|
-
/** the discount */
|
|
173
|
-
hasDiscount?: string;
|
|
174
|
-
/** info message for this chat */
|
|
175
|
-
infoMessage?: string;
|
|
176
|
-
/** the chat is public, others users in ther public chats can see your messages */
|
|
177
|
-
isPublicText?: EnumBooleanDigitized;
|
|
178
|
-
/** the chat is a mass lobby show, no system messages or CMDC_CHAT_UPDATE will be arrived */
|
|
179
|
-
isLobby?: EnumBooleanDigitized;
|
|
180
|
-
/** stats about this user*/
|
|
181
|
-
jsonStats?: string;
|
|
182
|
-
/** language of user */
|
|
183
|
-
lang?: string;
|
|
184
|
-
/** the user name */
|
|
185
|
-
login?: string;
|
|
186
|
-
/** the admin is shown */
|
|
187
|
-
showAdmin?: string;
|
|
188
|
-
/** internal, the usr_id of user for type 13 chat */
|
|
189
|
-
userKey?: string;
|
|
190
|
-
}
|
|
191
|
-
export declare class CMDC_CINIT implements ICOMMAND {
|
|
192
|
-
action: ACTION;
|
|
193
|
-
params: SChatInfo;
|
|
194
|
-
}
|
|
195
73
|
export declare class CMDP_START_STREAM_PREVIEW implements ICOMMAND {
|
|
196
74
|
action: ACTION;
|
|
197
75
|
params: baseParamsType & {
|
|
@@ -355,38 +233,3 @@ export declare class CMDC_QUERYANSWERED implements ICOMMAND {
|
|
|
355
233
|
queryId: string;
|
|
356
234
|
};
|
|
357
235
|
}
|
|
358
|
-
export declare class CMDP_SQUERY_DISCOUNT implements ICOMMAND {
|
|
359
|
-
action: ACTION;
|
|
360
|
-
params: baseParamsType & {
|
|
361
|
-
rate: string;
|
|
362
|
-
time: string;
|
|
363
|
-
};
|
|
364
|
-
}
|
|
365
|
-
export declare class CMDP_SQUERY_DISCOUNT_RESPONSE extends CMDP_SQUERY_DISCOUNT implements IRESPONSE {
|
|
366
|
-
result: RESULT;
|
|
367
|
-
commands: ICOMMAND[];
|
|
368
|
-
values: IKeyMaybeValue;
|
|
369
|
-
}
|
|
370
|
-
export declare class CMDP_SET_DISCOUNT implements ICOMMAND {
|
|
371
|
-
action: ACTION;
|
|
372
|
-
params: baseParamsType & {
|
|
373
|
-
rate: string;
|
|
374
|
-
time: string;
|
|
375
|
-
};
|
|
376
|
-
}
|
|
377
|
-
export declare class CMDP_SET_DISCOUNT_RESPONSE extends CMDP_SET_DISCOUNT implements IRESPONSE {
|
|
378
|
-
result: RESULT;
|
|
379
|
-
commands: ICOMMAND[];
|
|
380
|
-
values: IKeyMaybeValue;
|
|
381
|
-
}
|
|
382
|
-
export declare type ChatOnlineStats = {
|
|
383
|
-
/** the video time in seconds */
|
|
384
|
-
videoTime?: string;
|
|
385
|
-
/** the video time as string 00:33:22 */
|
|
386
|
-
videoTimeString?: string;
|
|
387
|
-
lobbyNumber?: string;
|
|
388
|
-
};
|
|
389
|
-
export declare class CMDC_UPDATE_CHAT implements ICOMMAND {
|
|
390
|
-
action: ACTION;
|
|
391
|
-
params: SChatInfo & ChatOnlineStats;
|
|
392
|
-
}
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import { EnumBooleanDigitized, EnumBooleanStringified, JSONString } from "../../@types";
|
|
2
|
+
import { ACTION, baseParamsType, chatIdType, CMDC_CMSG, ICOMMAND } from "../../cmd-protocol";
|
|
3
|
+
import { IKeyMaybeValue, IRESPONSE, RESULT } from "../command/icommand";
|
|
4
|
+
/**
|
|
5
|
+
* Chat flags
|
|
6
|
+
* SELECT CHAT_FLAG_SHORT || ' = "' || CHAT_FLAG_SHORT || '",// ' || CHAT_FLAG_DESCRIPTION FROM CHAT_FLAGS order by CHAT_FLAG_VAL
|
|
7
|
+
*/
|
|
8
|
+
export declare enum ChatFlags {
|
|
9
|
+
_FREE_ = "_FREE_",
|
|
10
|
+
VOYEUR = "VOYEUR",
|
|
11
|
+
CAM2CAM = "CAM2CAM",
|
|
12
|
+
SINGLE = "SINGLE",
|
|
13
|
+
DISCOUNT = "DISCOUNT",
|
|
14
|
+
TEXT = "TEXT",
|
|
15
|
+
FSK16 = "FSK16",
|
|
16
|
+
VOYEUR2S = "VOYEUR2S",
|
|
17
|
+
RECORD = "RECORD",
|
|
18
|
+
FREE = "FREE",
|
|
19
|
+
HASUPLPICS = "HASUPLPICS",
|
|
20
|
+
PREVIEW = "PREVIEW",
|
|
21
|
+
FSKACK = "FSKACK",
|
|
22
|
+
VOYSHOWN = "VOYSHOWN",
|
|
23
|
+
PARTY = "PARTY",
|
|
24
|
+
FREECHAT = "FREECHAT",
|
|
25
|
+
TOY = "TOY",
|
|
26
|
+
CONVERSION = "CONVERSION",
|
|
27
|
+
TESTCHAT = "TESTCHAT",
|
|
28
|
+
SECONDARY = "SECONDARY",
|
|
29
|
+
AUDIO = "AUDIO",
|
|
30
|
+
CONVERTED = "CONVERTED",
|
|
31
|
+
TIP = "TIP",
|
|
32
|
+
GUESTCHAT = "GUESTCHAT",
|
|
33
|
+
MOBILE = "MOBILE",
|
|
34
|
+
FLATRATE = "FLATRATE",
|
|
35
|
+
SINGLEC2C = "SINGLEC2C"
|
|
36
|
+
}
|
|
37
|
+
export declare class SChatInfo implements IKeyMaybeValue {
|
|
38
|
+
[key: string]: string;
|
|
39
|
+
/** the unique chatId*/
|
|
40
|
+
chatID: string;
|
|
41
|
+
/** the chat type, can be changed. 15 contentpartner, 16 prepaid, 13 - dialerchat*/
|
|
42
|
+
type: string;
|
|
43
|
+
/** chat flags coma separated. see enum ChatFlags*/
|
|
44
|
+
flags: string | keyof typeof ChatFlags;
|
|
45
|
+
/** start timestamp */
|
|
46
|
+
startTime: string;
|
|
47
|
+
/** stop timestamp */
|
|
48
|
+
stopTime?: string;
|
|
49
|
+
/** the paid time */
|
|
50
|
+
paidTime?: string;
|
|
51
|
+
/** exit code, see */
|
|
52
|
+
exitCode?: string;
|
|
53
|
+
/** admin chat */
|
|
54
|
+
admin?: EnumBooleanDigitized;
|
|
55
|
+
/** you can kick und ban this user */
|
|
56
|
+
canBan?: EnumBooleanDigitized;
|
|
57
|
+
/** you can give a discount to this user*/
|
|
58
|
+
canDiscount?: EnumBooleanDigitized;
|
|
59
|
+
/** single ability */
|
|
60
|
+
canSingle?: EnumBooleanDigitized;
|
|
61
|
+
/** c2c ability */
|
|
62
|
+
canCam2Cam?: EnumBooleanDigitized;
|
|
63
|
+
/** the category */
|
|
64
|
+
ccl_cat2?: string;
|
|
65
|
+
/** messenger channel id */
|
|
66
|
+
channelId?: string;
|
|
67
|
+
/** @deprecated */
|
|
68
|
+
fixedPayout?: string;
|
|
69
|
+
/** the soft/hard status */
|
|
70
|
+
fsk?: "16" | "18";
|
|
71
|
+
/** the discount */
|
|
72
|
+
hasDiscount?: string;
|
|
73
|
+
/** info message for this chat */
|
|
74
|
+
infoMessage?: string;
|
|
75
|
+
/** the chat is public, others users in ther public chats can see your messages */
|
|
76
|
+
isPublicText?: EnumBooleanDigitized;
|
|
77
|
+
/** the chat is a mass lobby show, no system messages or CMDC_CHAT_UPDATE will be arrived */
|
|
78
|
+
isLobby?: EnumBooleanDigitized;
|
|
79
|
+
/** stats about this user*/
|
|
80
|
+
jsonStats?: string;
|
|
81
|
+
/** language of user */
|
|
82
|
+
lang?: string;
|
|
83
|
+
/** the user name */
|
|
84
|
+
login?: string;
|
|
85
|
+
/** the admin is shown */
|
|
86
|
+
showAdmin?: string;
|
|
87
|
+
/** internal, the usr_id of user for type 13 chat */
|
|
88
|
+
userKey?: string;
|
|
89
|
+
/** the related tiked id*/
|
|
90
|
+
ticketId?: string;
|
|
91
|
+
imgSrc?: string;
|
|
92
|
+
/** is voyeur to single */
|
|
93
|
+
voyeur2single?: EnumBooleanDigitized;
|
|
94
|
+
}
|
|
95
|
+
export declare class CMDC_CINIT implements ICOMMAND {
|
|
96
|
+
action: ACTION;
|
|
97
|
+
params: SChatInfo;
|
|
98
|
+
}
|
|
99
|
+
export declare type ChatOnlineStats = {
|
|
100
|
+
/** the video time in seconds */
|
|
101
|
+
videoTime?: string;
|
|
102
|
+
/** the video time as string 00:33:22 */
|
|
103
|
+
videoTimeString?: string;
|
|
104
|
+
lobbyNumber?: string;
|
|
105
|
+
};
|
|
106
|
+
export declare class CMDC_UPDATE_CHAT implements ICOMMAND {
|
|
107
|
+
action: ACTION;
|
|
108
|
+
params: SChatInfo & ChatOnlineStats;
|
|
109
|
+
}
|
|
110
|
+
/**unused */
|
|
111
|
+
export declare enum EndChatType {
|
|
112
|
+
PREPARED = "PREPARED",
|
|
113
|
+
LOBBY = "LOBBY ",
|
|
114
|
+
SINGLEC2C = "SINGLEC2C",
|
|
115
|
+
LIVE = "LIVE",
|
|
116
|
+
VOYEUR = "VOYEUR",
|
|
117
|
+
VOYEUR2S = "VOYEUR2S",
|
|
118
|
+
PREVIEW_VIP = "PREVIEW_VIP",
|
|
119
|
+
PREVIEW_SHORT = "PREVIEW_SHORT",
|
|
120
|
+
PREVIEW_VOUCHER = "PREVIEW_VOUCHER"
|
|
121
|
+
}
|
|
122
|
+
export declare class CMDC_CEXIT implements ICOMMAND {
|
|
123
|
+
action: ACTION;
|
|
124
|
+
params: {
|
|
125
|
+
[key: string]: string;
|
|
126
|
+
chatID: string;
|
|
127
|
+
exitCode: string;
|
|
128
|
+
exitMessage?: string;
|
|
129
|
+
endChatType?: EndChatType;
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
export declare class CMDP_SGETCHATS implements ICOMMAND {
|
|
133
|
+
action: ACTION;
|
|
134
|
+
params: baseParamsType & {
|
|
135
|
+
chatID?: string;
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
export declare class CMDP_SGETCHATS_RESPONSE extends CMDP_SGETCHATS implements IRESPONSE {
|
|
139
|
+
result: RESULT;
|
|
140
|
+
commands: CMDC_CINIT[];
|
|
141
|
+
values: IKeyMaybeValue;
|
|
142
|
+
}
|
|
143
|
+
export declare class CMDP_SGETCHATHISTORY implements ICOMMAND {
|
|
144
|
+
action: ACTION;
|
|
145
|
+
params: baseParamsType & chatIdType & {
|
|
146
|
+
skipChannelMessages: EnumBooleanStringified;
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
export declare class CMDP_SGETCHATHISTORY_RESPONSE extends CMDP_SGETCHATHISTORY implements IRESPONSE {
|
|
150
|
+
result: RESULT;
|
|
151
|
+
commands: CMDC_CMSG[];
|
|
152
|
+
values: IKeyMaybeValue;
|
|
153
|
+
}
|
|
154
|
+
export declare class CMDP_SQUERY_DISCOUNT implements ICOMMAND {
|
|
155
|
+
action: ACTION;
|
|
156
|
+
params: baseParamsType & chatIdType;
|
|
157
|
+
}
|
|
158
|
+
export declare class CMDP_SQUERY_DISCOUNT_RESPONSE extends CMDP_SQUERY_DISCOUNT implements IRESPONSE {
|
|
159
|
+
result: RESULT;
|
|
160
|
+
commands: ICOMMAND[];
|
|
161
|
+
values: {
|
|
162
|
+
canDiscount?: EnumBooleanDigitized;
|
|
163
|
+
reason?: string;
|
|
164
|
+
hasDiscount: EnumBooleanDigitized;
|
|
165
|
+
endDate?: string;
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
export declare class CMDP_SET_DISCOUNT implements ICOMMAND {
|
|
169
|
+
action: ACTION;
|
|
170
|
+
params: baseParamsType & chatIdType & {
|
|
171
|
+
rate: string;
|
|
172
|
+
time: string;
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
export declare class CMDP_SET_DISCOUNT_RESPONSE extends CMDP_SET_DISCOUNT implements IRESPONSE {
|
|
176
|
+
result: RESULT;
|
|
177
|
+
commands: ICOMMAND[];
|
|
178
|
+
values: IKeyMaybeValue;
|
|
179
|
+
}
|
|
180
|
+
export declare class CMDP_KICK implements ICOMMAND {
|
|
181
|
+
action: ACTION;
|
|
182
|
+
params: baseParamsType & chatIdType;
|
|
183
|
+
}
|
|
184
|
+
export declare class CMDP_KICK_RESPONSE extends CMDP_KICK implements IRESPONSE {
|
|
185
|
+
result: RESULT;
|
|
186
|
+
commands: ICOMMAND[];
|
|
187
|
+
values: IKeyMaybeValue;
|
|
188
|
+
}
|
|
189
|
+
export declare class CMDP_SGETCHATSSUMMARY implements ICOMMAND {
|
|
190
|
+
action: ACTION;
|
|
191
|
+
params: baseParamsType & {
|
|
192
|
+
channelId: string;
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
export declare class CMDP_SGETCHATSSUMMARY_RESPONSE extends CMDP_SGETCHATSSUMMARY implements IRESPONSE {
|
|
196
|
+
result: RESULT;
|
|
197
|
+
commands: ICOMMAND[];
|
|
198
|
+
values: IKeyMaybeValue & {
|
|
199
|
+
summary?: string;
|
|
200
|
+
} & {
|
|
201
|
+
first?: string;
|
|
202
|
+
last?: string;
|
|
203
|
+
chats?: string;
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* query online time summary for last 3 month
|
|
208
|
+
*/
|
|
209
|
+
export declare class CMDP_GETONLINESUMMARY implements ICOMMAND {
|
|
210
|
+
action: ACTION;
|
|
211
|
+
params: baseParamsType;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Response for CMDP_GETONLINESUMMARY
|
|
215
|
+
*/
|
|
216
|
+
export declare class CMDP_GETONLINESUMMARY_RESPONSE extends CMDP_GETONLINESUMMARY implements IRESPONSE {
|
|
217
|
+
result: RESULT;
|
|
218
|
+
commands: ICOMMAND[];
|
|
219
|
+
values: {
|
|
220
|
+
summary: JSONString<any> | string;
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
export declare class CMDC_LIVESESSION implements ICOMMAND {
|
|
224
|
+
action: ACTION.CMDC_LIVESESSION;
|
|
225
|
+
params: {
|
|
226
|
+
/** the Id on the session, not unique, but sesId + startTime is unique */
|
|
227
|
+
sesID: string;
|
|
228
|
+
/** start time */
|
|
229
|
+
startTime: string;
|
|
230
|
+
/** stop time */
|
|
231
|
+
stopTime: string;
|
|
232
|
+
/** live chats counter*/
|
|
233
|
+
chats: string;
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
export declare class CMDC_LIVECHAT implements ICOMMAND {
|
|
237
|
+
action: ACTION.CMDC_LIVECHAT;
|
|
238
|
+
params: {
|
|
239
|
+
/** the id of live session */
|
|
240
|
+
sesID: string;
|
|
241
|
+
/** start time of live chat, is between startTime and stopTime of live session */
|
|
242
|
+
startTime: string;
|
|
243
|
+
/** last timestamp of live chat*/
|
|
244
|
+
stopTime: string;
|
|
245
|
+
/** the exit code, 0 -if chat is live */
|
|
246
|
+
exitCode: string;
|
|
247
|
+
/** VIDEO, VOYEUR, SINGLE */
|
|
248
|
+
type: string;
|
|
249
|
+
/** user name if given */
|
|
250
|
+
ualias?: string;
|
|
251
|
+
/** channelId, if given */
|
|
252
|
+
channelId?: string;
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* query online time history for last 2 month max
|
|
257
|
+
*/
|
|
258
|
+
export declare class CMDP_GETLIVEHISTORY implements ICOMMAND {
|
|
259
|
+
action: ACTION;
|
|
260
|
+
params: baseParamsType & {
|
|
261
|
+
/** json-encoded datetime, default now-6 month, will be adjusted if set to smaller than first known date */
|
|
262
|
+
dateFrom?: string;
|
|
263
|
+
/** json-encoded datetime, default now() +1 day */
|
|
264
|
+
dateTo?: string;
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Response for CMDP_GETLIVEHISTORY
|
|
269
|
+
*/
|
|
270
|
+
export declare class CMDP_GETLIVEHISTORY_RESPONSE extends CMDP_GETLIVEHISTORY implements IRESPONSE {
|
|
271
|
+
result: RESULT;
|
|
272
|
+
/** array of CMDC_LIVESESSION[] + CMDC_LIVECHAT[] */
|
|
273
|
+
commands: ICOMMAND[];
|
|
274
|
+
values: {
|
|
275
|
+
/** json-encoded datetime*/
|
|
276
|
+
firstLiveSession: string;
|
|
277
|
+
/** json-encoded datetime*/
|
|
278
|
+
lastLiveSession: string;
|
|
279
|
+
/** number of total chats */
|
|
280
|
+
totalChats: string;
|
|
281
|
+
};
|
|
282
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IBACKENDPAYLOAD } from "./backend";
|
|
2
|
+
import { channelIdSelector } from "./channel";
|
|
2
3
|
import { ACTION } from "./command/action";
|
|
3
4
|
import { baseParamsType } from "./command/baseparams";
|
|
4
5
|
import { ICOMMAND, IRESPONSE, RESULT, IKeyMaybeValue } from "./command/icommand";
|
|
@@ -39,7 +40,7 @@ export declare type UploadServiceReadOnlyParams = {
|
|
|
39
40
|
*/
|
|
40
41
|
export declare class CMDP_SUPLOADMEDIA implements ICOMMAND {
|
|
41
42
|
action: ACTION;
|
|
42
|
-
params: baseParamsType & MessageParams & UploadServiceReadOnlyParams & MediaOffer;
|
|
43
|
+
params: baseParamsType & channelIdSelector & MessageParams & UploadServiceReadOnlyParams & MediaOffer;
|
|
43
44
|
}
|
|
44
45
|
/**
|
|
45
46
|
* Response for CMDP_SUPLOADMEDIA
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { channelIdType, IMayHaveChannelId } from "./channel";
|
|
1
|
+
import { channelIdSelector, channelIdType, IMayHaveChannelId } from "./channel";
|
|
2
2
|
import { EnumBooleanStringified, EnumCurrency } from "../@types";
|
|
3
3
|
import { SystemMessageKey } from "./systemmessagekey";
|
|
4
4
|
import { IBACKENDPAYLOAD } from "./backend";
|
|
@@ -167,7 +167,7 @@ export declare class CMDC_CMSG implements ICOMMAND {
|
|
|
167
167
|
*/
|
|
168
168
|
export declare class CMDP_MSG implements ICOMMAND, IBACKENDPAYLOAD {
|
|
169
169
|
action: ACTION;
|
|
170
|
-
params: baseParamsType & MessageParams;
|
|
170
|
+
params: baseParamsType & MessageParams & channelIdSelector;
|
|
171
171
|
/** if jwt-session, any json-payload for transport to backend */
|
|
172
172
|
payload?: unknown;
|
|
173
173
|
}
|
|
@@ -78,5 +78,5 @@ export interface SessionState extends IKeyMaybeValue {
|
|
|
78
78
|
canSellSingleC2CTicket?: EnumBooleanStringified;
|
|
79
79
|
userLinks?: JSONString<IProductConfig["links"]>;
|
|
80
80
|
chatMotto?: string;
|
|
81
|
-
showInfoWizards?: ComaSeparatedValues<InfoWizard
|
|
81
|
+
showInfoWizards?: ComaSeparatedValues<InfoWizard> | string;
|
|
82
82
|
}
|
package/package.json
CHANGED
package/dist/protocol/chat.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ACTION, ICOMMAND } from "../cmd-protocol";
|
|
2
|
-
export declare enum EndChatType {
|
|
3
|
-
PREPARED = "PREPARED",
|
|
4
|
-
LOBBY = "LOBBY ",
|
|
5
|
-
SINGLEC2C = "SINGLEC2C",
|
|
6
|
-
LIVE = "LIVE",
|
|
7
|
-
VOYEUR = "VOYEUR",
|
|
8
|
-
VOYEUR2S = "VOYEUR2S",
|
|
9
|
-
PREVIEW_VIP = "PREVIEW_VIP",
|
|
10
|
-
PREVIEW_SHORT = "PREVIEW_SHORT",
|
|
11
|
-
PREVIEW_VOUCHER = "PREVIEW_VOUCHER"
|
|
12
|
-
}
|
|
13
|
-
export declare class CMDC_CEXIT implements ICOMMAND {
|
|
14
|
-
action: ACTION;
|
|
15
|
-
params: {
|
|
16
|
-
[key: string]: string;
|
|
17
|
-
chatID: string;
|
|
18
|
-
exitCode: string;
|
|
19
|
-
exitMessage?: string;
|
|
20
|
-
endChatType?: EndChatType;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ACTION, baseParamsType, CMDC_CMEDIA, ICOMMAND } from "../../cmd-protocol";
|
|
2
|
-
import { IKeyMaybeValue, IRESPONSE, RESULT } from "../command/icommand";
|
|
3
|
-
export declare class CMDC_CINIT_LIVE implements ICOMMAND {
|
|
4
|
-
action: ACTION;
|
|
5
|
-
params: IKeyMaybeValue & {
|
|
6
|
-
login?: string;
|
|
7
|
-
lang?: string;
|
|
8
|
-
fsk?: string;
|
|
9
|
-
canBan?: string;
|
|
10
|
-
admin?: string;
|
|
11
|
-
channelId?: string;
|
|
12
|
-
canDiscount?: string;
|
|
13
|
-
showAdmin?: string;
|
|
14
|
-
jsonStats?: string;
|
|
15
|
-
voyeur2single?: string;
|
|
16
|
-
canSingle?: string;
|
|
17
|
-
hasDiscount?: string;
|
|
18
|
-
ticketId?: string;
|
|
19
|
-
canCam2Cam?: string;
|
|
20
|
-
isLobby?: string;
|
|
21
|
-
isPublicText?: string;
|
|
22
|
-
infoMessage?: string;
|
|
23
|
-
imgSrc?: string;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export declare class CMDP_SGETCHATSSUMMARY implements ICOMMAND {
|
|
27
|
-
action: ACTION;
|
|
28
|
-
params: baseParamsType & {
|
|
29
|
-
channelId: string;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
export declare class CMDP_SGETCHATSSUMMARY_RESPONSE extends CMDP_SGETCHATSSUMMARY implements IRESPONSE {
|
|
33
|
-
result: RESULT;
|
|
34
|
-
commands: CMDC_CMEDIA[];
|
|
35
|
-
values: IKeyMaybeValue & {
|
|
36
|
-
summary?: string;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { JSONString } from "../../@types/json-stringified";
|
|
2
|
-
import { ACTION } from "../command/action";
|
|
3
|
-
import { baseParamsType } from "../command/baseparams";
|
|
4
|
-
import { ICOMMAND, IRESPONSE, RESULT } from "../command/icommand";
|
|
5
|
-
/**
|
|
6
|
-
* query online time summary for last 3 month
|
|
7
|
-
*/
|
|
8
|
-
export declare class CMDP_GETONLINESUMMARY implements ICOMMAND {
|
|
9
|
-
action: ACTION;
|
|
10
|
-
params: baseParamsType;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Response for CMDP_GETONLINESUMMARY
|
|
14
|
-
*/
|
|
15
|
-
export declare class CMDP_GETONLINESUMMARY_RESPONSE extends CMDP_GETONLINESUMMARY implements IRESPONSE {
|
|
16
|
-
result: RESULT;
|
|
17
|
-
commands: ICOMMAND[];
|
|
18
|
-
values: {
|
|
19
|
-
summary: JSONString<any> | string;
|
|
20
|
-
};
|
|
21
|
-
}
|