cmd-control-client-lib 3.0.1
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/.arcconfig +4 -0
- package/.eslintignore +3 -0
- package/.eslintrc.js +65 -0
- package/.husky/pre-commit +5 -0
- package/README.md +35 -0
- package/dist/@types/enum-boolean-digitized.d.ts +4 -0
- package/dist/@types/enum-boolean-stringified-extended.d.ts +6 -0
- package/dist/@types/enum-boolean-stringified.d.ts +4 -0
- package/dist/@types/enum-channel-flags.d.ts +14 -0
- package/dist/@types/enum-currency.d.ts +5 -0
- package/dist/@types/enum-status-type.d.ts +15 -0
- package/dist/@types/icurrency-description.d.ts +5 -0
- package/dist/@types/iemoji.d.ts +4 -0
- package/dist/@types/index.d.ts +9 -0
- package/dist/@types/json-stringified.d.ts +8 -0
- package/dist/cmd-connection.d.ts +71 -0
- package/dist/cmd-control-client-lib.js +2 -0
- package/dist/cmd-control-client-lib.js.map +1 -0
- package/dist/cmd-control-lib.d.ts +5 -0
- package/dist/cmd-protocol.d.ts +35 -0
- package/dist/cmd-session.d.ts +15 -0
- package/dist/logger.d.ts +28 -0
- package/dist/protocol/b2b/b2bcontact.d.ts +58 -0
- package/dist/protocol/b2b/b2buserinfo.d.ts +106 -0
- package/dist/protocol/backend.d.ts +48 -0
- package/dist/protocol/channel.d.ts +341 -0
- package/dist/protocol/channelinfo.d.ts +98 -0
- package/dist/protocol/chatstate.d.ts +42 -0
- package/dist/protocol/command/action.d.ts +116 -0
- package/dist/protocol/command/baseparams.d.ts +40 -0
- package/dist/protocol/command/icommand.d.ts +61 -0
- package/dist/protocol/command/resultcode.d.ts +44 -0
- package/dist/protocol/connection.d.ts +16 -0
- package/dist/protocol/contactnote.d.ts +62 -0
- package/dist/protocol/gifts.d.ts +19 -0
- package/dist/protocol/init.d.ts +64 -0
- package/dist/protocol/live/devicestatus.d.ts +30 -0
- package/dist/protocol/live/live-commands.d.ts +386 -0
- package/dist/protocol/live/login.d.ts +14 -0
- package/dist/protocol/live/onlinesummary.d.ts +21 -0
- package/dist/protocol/live/products-config.d.ts +19 -0
- package/dist/protocol/live/streamstate.d.ts +25 -0
- package/dist/protocol/live/supdate.d.ts +34 -0
- package/dist/protocol/live/usersettings.d.ts +40 -0
- package/dist/protocol/lobby.d.ts +37 -0
- package/dist/protocol/login.d.ts +57 -0
- package/dist/protocol/logout.d.ts +22 -0
- package/dist/protocol/mediaoffer.d.ts +48 -0
- package/dist/protocol/mediapurchase.d.ts +49 -0
- package/dist/protocol/mediaupload.d.ts +86 -0
- package/dist/protocol/message.d.ts +184 -0
- package/dist/protocol/messenger/expo.d.ts +19 -0
- package/dist/protocol/noop.d.ts +14 -0
- package/dist/protocol/onlinestate.d.ts +74 -0
- package/dist/protocol/sessionstate.d.ts +74 -0
- package/dist/protocol/systemmessagekey.d.ts +157 -0
- package/dist/protocol/toy.d.ts +60 -0
- package/dist/protocol/unused.d.ts +26 -0
- package/dist/protocol/update-state.d.ts +11 -0
- package/dist/version.d.ts +1 -0
- package/package.json +88 -0
- package/test/.eslintrc.js +12 -0
- package/test/json-stringified.spec.ts +11 -0
- package/test/result.spec.ts +18 -0
- package/test/session-state.spec.ts +23 -0
- package/workspace.code-workspace +13 -0
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
import { chatIdType } from "../chatstate";
|
|
2
|
+
import { ACTION } from "../command/action";
|
|
3
|
+
import { baseParamsType } from "../command/baseparams";
|
|
4
|
+
import { ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "../command/icommand";
|
|
5
|
+
import { EnumBooleanDigitized, EnumBooleanStringified, EnumBooleanStringifiedExtended, EnumStreamStatusType } from "../../@types";
|
|
6
|
+
import { CMDC_CMSG } from "../message";
|
|
7
|
+
export declare class CMDP_STARTSEND implements ICOMMAND {
|
|
8
|
+
action: ACTION;
|
|
9
|
+
params: baseParamsType & {
|
|
10
|
+
camName?: string;
|
|
11
|
+
videoWidth?: string;
|
|
12
|
+
videoHeight?: string;
|
|
13
|
+
fps?: string;
|
|
14
|
+
hasAudio?: EnumBooleanDigitized;
|
|
15
|
+
microName?: string;
|
|
16
|
+
bandWidth?: string;
|
|
17
|
+
cpuLoad?: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export declare class CMDP_STARTSEND_RESPONSE extends CMDP_STARTSEND implements IRESPONSE {
|
|
21
|
+
result: RESULT;
|
|
22
|
+
commands: ICOMMAND[];
|
|
23
|
+
values: IKeyMaybeValue;
|
|
24
|
+
}
|
|
25
|
+
export declare class CMDP_STOPSEND implements ICOMMAND {
|
|
26
|
+
action: ACTION;
|
|
27
|
+
params: baseParamsType & {
|
|
28
|
+
streamError?: EnumBooleanStringifiedExtended;
|
|
29
|
+
errorCode?: string;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export declare class CMDP_STOPSEND_RESPONSE extends CMDP_STOPSEND implements IRESPONSE {
|
|
33
|
+
result: RESULT;
|
|
34
|
+
commands: ICOMMAND[];
|
|
35
|
+
values: IKeyMaybeValue;
|
|
36
|
+
}
|
|
37
|
+
export declare class CMDP_SSTATUS implements ICOMMAND {
|
|
38
|
+
action: ACTION;
|
|
39
|
+
params: baseParamsType & {
|
|
40
|
+
type: EnumStreamStatusType;
|
|
41
|
+
value: string;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export declare class CMDP_SSTATUS_RESPONSE extends CMDP_SSTATUS implements IRESPONSE {
|
|
45
|
+
result: RESULT;
|
|
46
|
+
commands: ICOMMAND[];
|
|
47
|
+
values: IKeyMaybeValue;
|
|
48
|
+
}
|
|
49
|
+
export declare class CMDP_TRACERT_REPLY implements ICOMMAND {
|
|
50
|
+
action: ACTION;
|
|
51
|
+
params: baseParamsType & {
|
|
52
|
+
tracertID: string;
|
|
53
|
+
hopID: string;
|
|
54
|
+
targetIP: string;
|
|
55
|
+
replyHost: string;
|
|
56
|
+
replyIP: string;
|
|
57
|
+
replyTime: string;
|
|
58
|
+
replyCode: string;
|
|
59
|
+
replyString: string;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export declare class CMDP_TRACERT_REPLY_RESPONSE extends CMDP_TRACERT_REPLY implements IRESPONSE {
|
|
63
|
+
result: RESULT;
|
|
64
|
+
commands: ICOMMAND[];
|
|
65
|
+
values: IKeyMaybeValue;
|
|
66
|
+
}
|
|
67
|
+
export declare class CMDP_KICK implements ICOMMAND {
|
|
68
|
+
action: ACTION;
|
|
69
|
+
params: baseParamsType & chatIdType & {
|
|
70
|
+
time?: string;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
export declare class CMDP_KICK_RESPONSE extends CMDP_KICK implements IRESPONSE {
|
|
74
|
+
result: RESULT;
|
|
75
|
+
commands: ICOMMAND[];
|
|
76
|
+
values: IKeyMaybeValue;
|
|
77
|
+
}
|
|
78
|
+
export declare class CMDP_FSK16 implements ICOMMAND {
|
|
79
|
+
action: ACTION.CMDP_FSK16;
|
|
80
|
+
params: baseParamsType & {
|
|
81
|
+
fsk16: EnumBooleanStringified;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
export declare class CMDP_SGETCHATS implements ICOMMAND {
|
|
85
|
+
action: ACTION;
|
|
86
|
+
params: baseParamsType & {
|
|
87
|
+
chatID?: string;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
export declare class CMDP_SGETCHATS_RESPONSE extends CMDP_SGETCHATS implements IRESPONSE {
|
|
91
|
+
result: RESULT;
|
|
92
|
+
commands: CMDC_CINIT[];
|
|
93
|
+
values: IKeyMaybeValue;
|
|
94
|
+
}
|
|
95
|
+
export declare class CMDP_SGETCHATHISTORY implements ICOMMAND {
|
|
96
|
+
action: ACTION;
|
|
97
|
+
params: baseParamsType & chatIdType & {
|
|
98
|
+
skipChannelMessages: EnumBooleanStringified;
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
export declare class CMDP_SGETCHATHISTORY_RESPONSE extends CMDP_SGETCHATHISTORY implements IRESPONSE {
|
|
102
|
+
result: RESULT;
|
|
103
|
+
commands: CMDC_CMSG[];
|
|
104
|
+
values: IKeyMaybeValue;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Chat flags
|
|
108
|
+
* SELECT CHAT_FLAG_SHORT || ' = "' || CHAT_FLAG_SHORT || '",// ' || CHAT_FLAG_DESCRIPTION FROM CHAT_FLAGS order by CHAT_FLAG_VAL
|
|
109
|
+
*/
|
|
110
|
+
export declare enum ChatFlags {
|
|
111
|
+
_FREE_ = "_FREE_",
|
|
112
|
+
VOYEUR = "VOYEUR",
|
|
113
|
+
CAM2CAM = "CAM2CAM",
|
|
114
|
+
SINGLE = "SINGLE",
|
|
115
|
+
DISCOUNT = "DISCOUNT",
|
|
116
|
+
TEXT = "TEXT",
|
|
117
|
+
FSK16 = "FSK16",
|
|
118
|
+
VOYEUR2S = "VOYEUR2S",
|
|
119
|
+
RECORD = "RECORD",
|
|
120
|
+
FREE = "FREE",
|
|
121
|
+
HASUPLPICS = "HASUPLPICS",
|
|
122
|
+
PREVIEW = "PREVIEW",
|
|
123
|
+
FSKACK = "FSKACK",
|
|
124
|
+
VOYSHOWN = "VOYSHOWN",
|
|
125
|
+
PARTY = "PARTY",
|
|
126
|
+
FREECHAT = "FREECHAT",
|
|
127
|
+
TOY = "TOY",
|
|
128
|
+
CONVERSION = "CONVERSION",
|
|
129
|
+
TESTCHAT = "TESTCHAT",
|
|
130
|
+
SECONDARY = "SECONDARY",
|
|
131
|
+
AUDIO = "AUDIO",
|
|
132
|
+
CONVERTED = "CONVERTED",
|
|
133
|
+
TIP = "TIP",
|
|
134
|
+
GUESTCHAT = "GUESTCHAT",
|
|
135
|
+
MOBILE = "MOBILE",
|
|
136
|
+
FLATRATE = "FLATRATE"
|
|
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
|
+
canSingle?: 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
|
+
export declare class CMDP_START_STREAM_PREVIEW implements ICOMMAND {
|
|
196
|
+
action: ACTION;
|
|
197
|
+
params: baseParamsType & {
|
|
198
|
+
duration: string;
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
export declare class CMDP_START_STREAM_PREVIEW_RESPONSE extends CMDP_START_STREAM_PREVIEW implements IRESPONSE {
|
|
202
|
+
result: RESULT;
|
|
203
|
+
commands: ICOMMAND[];
|
|
204
|
+
values: {
|
|
205
|
+
dataURL: string;
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
export declare class CMDP_STOP_STREAM_PREVIEW implements ICOMMAND {
|
|
209
|
+
action: ACTION;
|
|
210
|
+
params: baseParamsType & {
|
|
211
|
+
dataURL: string;
|
|
212
|
+
dataID: string;
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
export declare class CMDP_STOP_STREAM_PREVIEW_RESPONSE extends CMDP_STOP_STREAM_PREVIEW implements IRESPONSE {
|
|
216
|
+
result: RESULT;
|
|
217
|
+
commands: ICOMMAND[];
|
|
218
|
+
values: IKeyMaybeValue;
|
|
219
|
+
}
|
|
220
|
+
export declare class CMDP_STARTBANDWIDTHTEST implements ICOMMAND {
|
|
221
|
+
action: ACTION;
|
|
222
|
+
params: baseParamsType;
|
|
223
|
+
}
|
|
224
|
+
export declare class CMDP_STARTBANDWIDTHTEST_RESPONSE extends CMDP_STARTBANDWIDTHTEST implements IRESPONSE {
|
|
225
|
+
result: RESULT;
|
|
226
|
+
commands: ICOMMAND[];
|
|
227
|
+
values: {
|
|
228
|
+
testID: string;
|
|
229
|
+
seconds: string;
|
|
230
|
+
dataURL: string;
|
|
231
|
+
dataID: string;
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
export declare class CMDP_STOPBANDWIDTHTEST implements ICOMMAND {
|
|
235
|
+
action: ACTION;
|
|
236
|
+
params: baseParamsType & {
|
|
237
|
+
testID: string;
|
|
238
|
+
seconds: string;
|
|
239
|
+
dataID: string;
|
|
240
|
+
bitrate: string;
|
|
241
|
+
cpuUsage: string;
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
export declare class CMDP_STOPBANDWIDTHTEST_RESPONSE extends CMDP_STOPBANDWIDTHTEST implements IRESPONSE {
|
|
245
|
+
result: RESULT;
|
|
246
|
+
commands: ICOMMAND[];
|
|
247
|
+
values: {
|
|
248
|
+
validated: EnumBooleanStringified;
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
export declare class CMDP_STARTLOOPBACK9 implements ICOMMAND {
|
|
252
|
+
action: ACTION;
|
|
253
|
+
params: baseParamsType;
|
|
254
|
+
}
|
|
255
|
+
export declare class CMDP_STARTLOOPBACK9_RESPONSE extends CMDP_STARTLOOPBACK9 implements IRESPONSE {
|
|
256
|
+
result: RESULT;
|
|
257
|
+
commands: ICOMMAND[];
|
|
258
|
+
values: {
|
|
259
|
+
testID: string;
|
|
260
|
+
pushUrl: string;
|
|
261
|
+
pullUrl: string;
|
|
262
|
+
pushUrlAudio: string;
|
|
263
|
+
pullUrlAudio: string;
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
export declare class CMDP_STOPLOOPBACK9 implements ICOMMAND {
|
|
267
|
+
action: ACTION;
|
|
268
|
+
params: baseParamsType & {
|
|
269
|
+
testID: string;
|
|
270
|
+
VideoDevice: string;
|
|
271
|
+
VideoDeviceWidth: string;
|
|
272
|
+
VideoDeviceHeight: string;
|
|
273
|
+
VideoDeviceFPS: string;
|
|
274
|
+
VideoSendBitrate: string;
|
|
275
|
+
VideoSendFPS: string;
|
|
276
|
+
AudioDevice: string | "-";
|
|
277
|
+
AudioDeviceFPS: string;
|
|
278
|
+
AudioSendFPS: string;
|
|
279
|
+
AudioSendBitrate: string;
|
|
280
|
+
CPU: string | "-1";
|
|
281
|
+
localCode: string | "0";
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
export declare class CMDP_STOPLOOPBACK9_RESPONSE extends CMDP_STOPLOOPBACK9 implements IRESPONSE {
|
|
285
|
+
result: RESULT;
|
|
286
|
+
commands: ICOMMAND[];
|
|
287
|
+
values: {
|
|
288
|
+
statusCode: string;
|
|
289
|
+
statusText: string;
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
export declare class CMDP_SQUERY_FORMAT implements ICOMMAND {
|
|
293
|
+
action: ACTION;
|
|
294
|
+
params: baseParamsType & {
|
|
295
|
+
width: string;
|
|
296
|
+
height: string;
|
|
297
|
+
fps: string;
|
|
298
|
+
bandWidth: string;
|
|
299
|
+
cpuUsage: string;
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
export declare class CMDP_SQUERY_FORMAT_RESPONSE extends CMDP_SQUERY_FORMAT implements IRESPONSE {
|
|
303
|
+
result: RESULT;
|
|
304
|
+
commands: ICOMMAND[];
|
|
305
|
+
values: {
|
|
306
|
+
width: string;
|
|
307
|
+
height: string;
|
|
308
|
+
fps: string;
|
|
309
|
+
ref_width: string;
|
|
310
|
+
ref_height: string;
|
|
311
|
+
ref_fps: string;
|
|
312
|
+
rtmp?: EnumBooleanDigitized.TRUE;
|
|
313
|
+
codec?: string;
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
export declare class CMDC_QUERYUSER implements ICOMMAND {
|
|
317
|
+
action: ACTION;
|
|
318
|
+
params: {
|
|
319
|
+
queryId: string;
|
|
320
|
+
key: string;
|
|
321
|
+
caption: string;
|
|
322
|
+
text: string;
|
|
323
|
+
btn0: string;
|
|
324
|
+
btn1: string;
|
|
325
|
+
timeout: string;
|
|
326
|
+
sound: string;
|
|
327
|
+
btnDefault: EnumBooleanDigitized;
|
|
328
|
+
btndef: "btn0" | "btn1";
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
export declare class CMDP_QUERYUSER implements ICOMMAND {
|
|
332
|
+
action: ACTION;
|
|
333
|
+
params: baseParamsType & chatIdType & {
|
|
334
|
+
key: "fsk" | "single";
|
|
335
|
+
button: EnumBooleanDigitized;
|
|
336
|
+
queryId: string;
|
|
337
|
+
/** if the answer sent by timeout */
|
|
338
|
+
isTimeout?: EnumBooleanDigitized;
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
export declare class CMDP_QUERYUSER_RESPONSE extends CMDP_QUERYUSER implements IRESPONSE {
|
|
342
|
+
result: RESULT;
|
|
343
|
+
commands: ICOMMAND[];
|
|
344
|
+
values: IKeyMaybeValue;
|
|
345
|
+
}
|
|
346
|
+
export declare class CMDC_QUERYANSWERED implements ICOMMAND {
|
|
347
|
+
action: ACTION;
|
|
348
|
+
params: {
|
|
349
|
+
queryId: string;
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
export declare class CMDP_SQUERY_DISCOUNT implements ICOMMAND {
|
|
353
|
+
action: ACTION;
|
|
354
|
+
params: baseParamsType & {
|
|
355
|
+
rate: string;
|
|
356
|
+
time: string;
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
export declare class CMDP_SQUERY_DISCOUNT_RESPONSE extends CMDP_SQUERY_DISCOUNT implements IRESPONSE {
|
|
360
|
+
result: RESULT;
|
|
361
|
+
commands: ICOMMAND[];
|
|
362
|
+
values: IKeyMaybeValue;
|
|
363
|
+
}
|
|
364
|
+
export declare class CMDP_SET_DISCOUNT implements ICOMMAND {
|
|
365
|
+
action: ACTION;
|
|
366
|
+
params: baseParamsType & {
|
|
367
|
+
rate: string;
|
|
368
|
+
time: string;
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
export declare class CMDP_SET_DISCOUNT_RESPONSE extends CMDP_SET_DISCOUNT implements IRESPONSE {
|
|
372
|
+
result: RESULT;
|
|
373
|
+
commands: ICOMMAND[];
|
|
374
|
+
values: IKeyMaybeValue;
|
|
375
|
+
}
|
|
376
|
+
export declare type ChatOnlineStats = {
|
|
377
|
+
/** the video time in seconds */
|
|
378
|
+
videoTime?: string;
|
|
379
|
+
/** the video time as string 00:33:22 */
|
|
380
|
+
videoTimeString?: string;
|
|
381
|
+
lobbyNumber?: string;
|
|
382
|
+
};
|
|
383
|
+
export declare class CMDC_UPDATE_CHAT implements ICOMMAND {
|
|
384
|
+
action: ACTION;
|
|
385
|
+
params: SChatInfo & ChatOnlineStats;
|
|
386
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CMDP_LOGIN, CMDP_LOGIN_RESPONSE } from "../login";
|
|
2
|
+
import { ACTION } from "../../cmd-protocol";
|
|
3
|
+
/**
|
|
4
|
+
* 8320 only
|
|
5
|
+
*/
|
|
6
|
+
export declare class CMDP_SLOGIN extends CMDP_LOGIN {
|
|
7
|
+
action: ACTION;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* response for CMDP_SLOGIN, 8320 only
|
|
11
|
+
*/
|
|
12
|
+
export declare class CMDP_SLOGIN_RESPONSE extends CMDP_LOGIN_RESPONSE {
|
|
13
|
+
action: ACTION;
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum EnumProductLinks {
|
|
2
|
+
CHAT_MOTTO = "chatmotto",
|
|
3
|
+
CHAT_SETTINGS = "chatsettings",
|
|
4
|
+
HELP = "help",
|
|
5
|
+
HELP_TOY = "helplovense",
|
|
6
|
+
MESSAGING = "messaging",
|
|
7
|
+
PICTURE_TOOL = "picturepool",
|
|
8
|
+
PROFILE = "profile",
|
|
9
|
+
/** @deprecated*/
|
|
10
|
+
PASSWORDRESET = "passwordReset",
|
|
11
|
+
PASSWORD_RESET = "passwordreset",
|
|
12
|
+
SERVICE0900 = "service0900"
|
|
13
|
+
}
|
|
14
|
+
export interface IProductConfig {
|
|
15
|
+
key: string;
|
|
16
|
+
links: {
|
|
17
|
+
[key in EnumProductLinks]: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ACTION } from "../command/action";
|
|
2
|
+
import { ICOMMAND } from "../command/icommand";
|
|
3
|
+
import { EnumBooleanStringifiedExtended } from "../../cmd-control-lib";
|
|
4
|
+
export declare enum EnumStreamQuality {
|
|
5
|
+
NONE = "NONE",
|
|
6
|
+
EXCELLENT = "EXCELLENT",
|
|
7
|
+
GOOD = "GOOD",
|
|
8
|
+
BAD = "BAD"
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Update incomming stream state.
|
|
12
|
+
* Server inform you about the state of incloming video audio stream.
|
|
13
|
+
*/
|
|
14
|
+
export declare class CMDC_STREAMSTATE implements ICOMMAND {
|
|
15
|
+
action: ACTION;
|
|
16
|
+
params: {
|
|
17
|
+
bandwith?: string;
|
|
18
|
+
quality?: EnumStreamQuality;
|
|
19
|
+
videoWidth?: string;
|
|
20
|
+
videoHeigth?: string;
|
|
21
|
+
videoFps?: string;
|
|
22
|
+
hasAudio?: EnumBooleanStringifiedExtended;
|
|
23
|
+
audioMuted?: EnumBooleanStringifiedExtended;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ACTION } from "../command/action";
|
|
2
|
+
import { baseParamsType, SupportedLanguage } from "../command/baseparams";
|
|
3
|
+
import { ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "../command/icommand";
|
|
4
|
+
import { EnumBooleanStringified } from "../../cmd-control-lib";
|
|
5
|
+
export declare enum EnumService0900State {
|
|
6
|
+
ACTIVE = "active",
|
|
7
|
+
INACTIVE = "inactive"
|
|
8
|
+
}
|
|
9
|
+
export declare enum EnumService0900Operation {
|
|
10
|
+
ENABLE = "turnOn",
|
|
11
|
+
DISABLE = "turnOff"
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Update session state or control features
|
|
15
|
+
*/
|
|
16
|
+
export declare class CMDP_SUPDATE implements ICOMMAND {
|
|
17
|
+
action: ACTION;
|
|
18
|
+
params: baseParamsType & {
|
|
19
|
+
language?: SupportedLanguage;
|
|
20
|
+
broadcastData?: string;
|
|
21
|
+
permanentData?: string;
|
|
22
|
+
service0900State?: EnumService0900State;
|
|
23
|
+
livePreviewState?: EnumBooleanStringified;
|
|
24
|
+
babeStation24State?: EnumBooleanStringified;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Response for CMDP_UPDATE
|
|
29
|
+
*/
|
|
30
|
+
export declare class CMDP_SUPDATE_RESPONSE extends CMDP_SUPDATE implements IRESPONSE {
|
|
31
|
+
result: RESULT;
|
|
32
|
+
commands: ICOMMAND[];
|
|
33
|
+
values: IKeyMaybeValue;
|
|
34
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ICOMMAND, ACTION, IRESPONSE, RESULT, IKeyMaybeValue } from "../../cmd-protocol";
|
|
2
|
+
import { baseParamsType } from "../command/baseparams";
|
|
3
|
+
export declare enum EnumPushNotificationFilter {
|
|
4
|
+
ALL = "all",
|
|
5
|
+
REGULAR = "regular",
|
|
6
|
+
NONE = "none"
|
|
7
|
+
}
|
|
8
|
+
export declare type UserSettings = {
|
|
9
|
+
pushNotificationFilter?: EnumPushNotificationFilter;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* set user setting
|
|
13
|
+
*/
|
|
14
|
+
export declare class CMDP_GETSETTINGS implements ICOMMAND {
|
|
15
|
+
action: ACTION;
|
|
16
|
+
params: baseParamsType;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* set user setting response
|
|
20
|
+
*/
|
|
21
|
+
export declare class CMDP_GETSETTINGS_RESPONSE extends CMDP_GETSETTINGS implements IRESPONSE {
|
|
22
|
+
result: RESULT;
|
|
23
|
+
commands: ICOMMAND[];
|
|
24
|
+
values: IKeyMaybeValue & UserSettings;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* set user setting
|
|
28
|
+
*/
|
|
29
|
+
export declare class CMDP_SETSETTINGS implements ICOMMAND {
|
|
30
|
+
action: ACTION;
|
|
31
|
+
params: baseParamsType & UserSettings;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* set user setting response
|
|
35
|
+
*/
|
|
36
|
+
export declare class CMDP_SETSETTINGS_RESPONSE extends CMDP_SETSETTINGS implements IRESPONSE {
|
|
37
|
+
result: RESULT;
|
|
38
|
+
commands: ICOMMAND[];
|
|
39
|
+
values: IKeyMaybeValue;
|
|
40
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ACTION, baseParamsType, ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "../cmd-protocol";
|
|
2
|
+
/**
|
|
3
|
+
* open lobby chat
|
|
4
|
+
*/
|
|
5
|
+
export declare class CMDP_OPEN_LOBBY implements ICOMMAND {
|
|
6
|
+
action: ACTION;
|
|
7
|
+
params: baseParamsType & {
|
|
8
|
+
/** custom lobby name */
|
|
9
|
+
ualias?: string;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Response for CMDP_OPEN_LOBBY
|
|
14
|
+
*/
|
|
15
|
+
export declare class CMDP_OPEN_LOBBY_RESPONSE extends CMDP_OPEN_LOBBY implements IRESPONSE {
|
|
16
|
+
result: RESULT;
|
|
17
|
+
commands: ICOMMAND[];
|
|
18
|
+
values: IKeyMaybeValue & {
|
|
19
|
+
/** the lobby chat id */
|
|
20
|
+
chatID: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* close the lobby chat
|
|
25
|
+
*/
|
|
26
|
+
export declare class CMDP_CLOSE_LOBBY implements ICOMMAND {
|
|
27
|
+
action: ACTION;
|
|
28
|
+
params: baseParamsType;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Response for CMDP_CLOSE_LOBBY
|
|
32
|
+
*/
|
|
33
|
+
export declare class CMDP_CLOSE_LOBBY_RESPONSE extends CMDP_CLOSE_LOBBY implements IRESPONSE {
|
|
34
|
+
result: RESULT;
|
|
35
|
+
commands: ICOMMAND[];
|
|
36
|
+
values: IKeyMaybeValue;
|
|
37
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { EnumBooleanDigitized } from "../@types/enum-boolean-digitized";
|
|
2
|
+
import { IBACKENDPAYLOAD } from "./backend";
|
|
3
|
+
import { ACTION } from "./command/action";
|
|
4
|
+
import { baseParamsType } from "./command/baseparams";
|
|
5
|
+
import { ICOMMAND, IRESPONSE, RESULT } from "./command/icommand";
|
|
6
|
+
import { SessionState } from "./sessionstate";
|
|
7
|
+
/** web token format need for login with web token. obligatory fields in token-payload
|
|
8
|
+
* \{
|
|
9
|
+
* userPoolId: number \{10\}, - the id of your user pool
|
|
10
|
+
* usrKey: string \{36 bytes\} - the uniq user key in your pool
|
|
11
|
+
* \}
|
|
12
|
+
*/
|
|
13
|
+
export declare type loginWithWebtokenType = {
|
|
14
|
+
webtoken: string;
|
|
15
|
+
};
|
|
16
|
+
/** login with user name & password */
|
|
17
|
+
export declare type loginWithUserNameType = {
|
|
18
|
+
/** your bussines Id in CmdControl system, will be obligatory in future to check the password by your backend */
|
|
19
|
+
usrId?: string;
|
|
20
|
+
/** username. if usrId not set, your B2B username. if usrId is set the username of customer. LIVE: username of Model */
|
|
21
|
+
login: string;
|
|
22
|
+
/** password in plain MD5 or other format to check it by your backend */
|
|
23
|
+
password: string;
|
|
24
|
+
};
|
|
25
|
+
export declare type foreignSIDType = {
|
|
26
|
+
/** upgrade from foreignSID, 8320 only */
|
|
27
|
+
foreignSID?: string;
|
|
28
|
+
};
|
|
29
|
+
/** additional params */
|
|
30
|
+
export declare type otherLoginParamsType = {
|
|
31
|
+
/** B2B: user key. Obligatory, If you want to create end-user-session and if not set already in webtoken. max 36 symbols */
|
|
32
|
+
usrKey?: string;
|
|
33
|
+
/** this is session with messenger functions, default is "0" */
|
|
34
|
+
msn: EnumBooleanDigitized;
|
|
35
|
+
};
|
|
36
|
+
/** login union type */
|
|
37
|
+
export declare type loginParamType = loginWithWebtokenType | loginWithUserNameType | foreignSIDType;
|
|
38
|
+
export interface ILoginBackendPayload {
|
|
39
|
+
guest: any;
|
|
40
|
+
}
|
|
41
|
+
export declare class CMDP_LOGIN implements ICOMMAND, IBACKENDPAYLOAD {
|
|
42
|
+
action: ACTION;
|
|
43
|
+
/** login params */
|
|
44
|
+
params: baseParamsType & loginParamType & otherLoginParamsType;
|
|
45
|
+
/** payload to sent it to backend */
|
|
46
|
+
payload?: unknown;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* response for Login
|
|
50
|
+
*/
|
|
51
|
+
export declare class CMDP_LOGIN_RESPONSE extends CMDP_LOGIN implements IRESPONSE, IBACKENDPAYLOAD {
|
|
52
|
+
result: RESULT;
|
|
53
|
+
commands: ICOMMAND[];
|
|
54
|
+
values: SessionState;
|
|
55
|
+
/** payload from backend */
|
|
56
|
+
payload?: ILoginBackendPayload;
|
|
57
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IBACKENDPAYLOAD } from "./backend";
|
|
2
|
+
import { ACTION } from "./command/action";
|
|
3
|
+
import { baseParamsType } from "./command/baseparams";
|
|
4
|
+
import { ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "./command/icommand";
|
|
5
|
+
export declare class CMDP_LOGOUT implements ICOMMAND, IBACKENDPAYLOAD {
|
|
6
|
+
action: ACTION;
|
|
7
|
+
params: baseParamsType & {
|
|
8
|
+
code?: number;
|
|
9
|
+
};
|
|
10
|
+
payload?: unknown;
|
|
11
|
+
}
|
|
12
|
+
export declare class CMDP_LOGOUT_RESPONSE extends CMDP_LOGOUT implements IRESPONSE {
|
|
13
|
+
result: RESULT;
|
|
14
|
+
commands: ICOMMAND[];
|
|
15
|
+
values: IKeyMaybeValue;
|
|
16
|
+
}
|
|
17
|
+
export declare class CMDP_SLOGOUT extends CMDP_LOGOUT {
|
|
18
|
+
action: ACTION;
|
|
19
|
+
}
|
|
20
|
+
export declare class CMDP_SLOGOUT_RESPONSE extends CMDP_LOGOUT_RESPONSE {
|
|
21
|
+
action: ACTION;
|
|
22
|
+
}
|