cmd-control-client-lib 3.0.288 → 3.0.290

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.
@@ -1,6 +1,6 @@
1
1
  import { ComaSeparatedValues } from "./sessionstate";
2
2
  import { chatIdType } from "./chatstate";
3
- import { EnumChannelFlags, EnumBooleanStringified, EnumBooleanStringifiedExtended } from "../@types";
3
+ import { EnumBooleanStringified, EnumBooleanStringifiedExtended, EnumChannelFlags } from "../@types";
4
4
  import { IBACKENDPAYLOAD } from "./backend";
5
5
  import { ACTION } from "./command/action";
6
6
  import { baseParamsType } from "./command/baseparams";
@@ -360,8 +360,7 @@ export declare enum EnumUpdateChannelPropertyName {
360
360
  BLOCKED_INBOUND = "blockedInbound",
361
361
  BLOCKED_OUTBOUND = "blockedOutbound"
362
362
  }
363
- export declare class updateChannelParamsType implements IKeyMaybeValue {
364
- [key: string]: string;
363
+ export declare class updateChannelParamsType {
365
364
  /** flag name */
366
365
  propertyName: EnumUpdateChannelPropertyName;
367
366
  /** flag value */
@@ -373,7 +372,7 @@ export declare class updateChannelParamsType implements IKeyMaybeValue {
373
372
  */
374
373
  export declare class CMDP_UPDATECHANNEL implements ICOMMAND, IBACKENDPAYLOAD {
375
374
  action: ACTION;
376
- params: baseParamsType & updateChannelParamsType;
375
+ params: baseParamsType & updateChannelParamsType & IKeyMaybeValue;
377
376
  payload?: unknown;
378
377
  }
379
378
  /**
@@ -1,4 +1,6 @@
1
1
  import { EnumBooleanDigitized } from "../@types";
2
+ import { ComaSeparatedValues } from "./sessionstate";
3
+ import { ChatFlags } from "../protocol/live/livechat";
2
4
  /**
3
5
  * Type that definitely has `chatId` field
4
6
  */
@@ -27,6 +29,7 @@ export declare type ChatState = chatIdType & {
27
29
  timelimit?: string;
28
30
  /** preview video time limit */
29
31
  previewlimit?: string;
32
+ below_threshold?: EnumBooleanDigitized;
30
33
  /** HLS is allowed */
31
34
  useHLSJS?: EnumBooleanDigitized;
32
35
  /** TIP-function ability */
@@ -39,4 +42,11 @@ export declare type ChatState = chatIdType & {
39
42
  canCharge?: EnumBooleanDigitized;
40
43
  /** the chat is lobby mass show */
41
44
  isLobby?: EnumBooleanDigitized;
45
+ /** text ability */
46
+ canText?: EnumBooleanDigitized;
47
+ /** c2c ability */
48
+ canCam2Cam?: EnumBooleanDigitized;
49
+ /** video ability */
50
+ canVideo?: EnumBooleanDigitized;
51
+ flags?: ComaSeparatedValues<ChatFlags> | ChatFlags;
42
52
  };
@@ -1,4 +1,5 @@
1
- import { ICOMMAND, ACTION, IRESPONSE, RESULT, IKeyMaybeValue } from "../cmd-protocol";
1
+ import { ACTION, chatIdType, ComaSeparatedValues, ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "../cmd-protocol";
2
+ import { EnumBooleanStringified, EnumBooleanStringifiedExtended, EnumCurrency, EnumPlayerFormat, JSONString } from "../@types";
2
3
  export declare type clientID = {
3
4
  clientID: string;
4
5
  _iid?: string;
@@ -26,16 +27,172 @@ export declare class CMDP_CSTATUS_RESPONSE extends CMDP_CSTATUS implements IRESP
26
27
  commands: ICOMMAND[];
27
28
  values: IKeyMaybeValue;
28
29
  }
29
- export declare class CMDP_CINIT implements ICOMMAND {
30
+ export declare type ChargeAmount = {
31
+ value: number;
32
+ caption1: string;
33
+ caption2: string;
34
+ };
35
+ export declare type ChargeInfo = {
36
+ allowed: EnumBooleanStringifiedExtended;
37
+ currency: EnumCurrency;
38
+ autoCharge?: string;
39
+ amounts?: ComaSeparatedValues<string>;
40
+ chargeAmounts?: JSONString<ChargeAmount[]>;
41
+ additionalCurrencies?: JSONString<{
42
+ amounts: number[];
43
+ currency: EnumCurrency;
44
+ }>;
45
+ };
46
+ export declare class CMDP_CQUERY_CHARGE implements ICOMMAND {
47
+ action: ACTION;
48
+ params: clientID;
49
+ }
50
+ export declare class CMDP_CQUERY_CHARGE_RESPONSE extends CMDP_CQUERY_CHARGE implements IRESPONSE {
51
+ result: RESULT;
52
+ commands: ICOMMAND[];
53
+ values: ChargeInfo;
54
+ }
55
+ export declare type StreamSources = {
56
+ dataURL: string;
57
+ streamPriority: ComaSeparatedValues<EnumPlayerFormat>;
58
+ width?: string;
59
+ height?: string;
60
+ fps?: string;
61
+ quality?: string;
62
+ mediaH5Live?: string;
63
+ mediaHlsMobileUrl?: string;
64
+ mediaHlsUrl?: string;
65
+ mediaJpegUrl?: string;
66
+ mediaJpegWsUrl?: string;
67
+ mediaWebRtc?: string;
68
+ mediaVideoSdk?: string;
69
+ mediaRtmp?: string;
70
+ mediaRtmpUrl?: string;
71
+ };
72
+ export declare class CMDP_CSTARTVIDEOPULL implements ICOMMAND {
73
+ action: ACTION;
74
+ params: clientID;
75
+ }
76
+ export declare class CMDP_CSTARTVIDEOPULL_RESPONSE extends CMDP_CSTARTVIDEOPULL implements IRESPONSE {
77
+ result: RESULT;
78
+ commands: ICOMMAND[];
79
+ values: StreamSources;
80
+ }
81
+ export declare class CMDC_CSTARTVIDEOPULL implements ICOMMAND {
82
+ action: ACTION;
83
+ params: StreamSources;
84
+ }
85
+ export declare class CMDC_CSTOPVIDEOPULL implements ICOMMAND {
86
+ action: ACTION;
87
+ params: clientID & chatIdType & {
88
+ code: string;
89
+ time?: string;
90
+ };
91
+ }
92
+ export declare class CMDP_CSTARTAUDIOPULL implements ICOMMAND {
93
+ action: ACTION;
94
+ params: clientID;
95
+ }
96
+ export declare class CMDP_CSTARTAUDIOPULL_RESPONSE extends CMDP_CSTARTAUDIOPULL implements IRESPONSE {
97
+ result: RESULT;
98
+ commands: ICOMMAND[];
99
+ values: Pick<StreamSources, "dataURL" | "streamPriority">;
100
+ }
101
+ export declare class CMDC_CSTARTAUDIOPULL implements ICOMMAND {
102
+ action: ACTION;
103
+ params: Pick<StreamSources, "dataURL" | "streamPriority">;
104
+ }
105
+ export declare class CMDC_CSTOPAUDIOPULL implements ICOMMAND {
106
+ action: ACTION;
107
+ params: clientID & chatIdType & {
108
+ code: string;
109
+ time?: string;
110
+ };
111
+ }
112
+ export declare class CMDP_CSTARTPREVIEW implements ICOMMAND {
113
+ action: ACTION;
114
+ params: clientID;
115
+ }
116
+ export declare class CMDP_CSTARTPREVIEW_RESPONSE extends CMDP_CSTARTPREVIEW implements IRESPONSE {
117
+ result: RESULT;
118
+ commands: ICOMMAND[];
119
+ values: StreamSources;
120
+ }
121
+ export declare class CMDC_CSTOPPREVIEW implements ICOMMAND {
122
+ action: ACTION;
123
+ params: clientID & chatIdType & {
124
+ code: string;
125
+ time?: string;
126
+ };
127
+ }
128
+ export declare class CMDP_CSTARTVIDEOPUSH implements ICOMMAND {
129
+ action: ACTION;
130
+ params: clientID & {
131
+ flashclient: boolean;
132
+ };
133
+ }
134
+ export declare class CMDP_CSTARTVIDEOPUSH_RESPONSE extends CMDP_CSTARTVIDEOPUSH implements ICOMMAND {
135
+ result: RESULT;
136
+ commands: ICOMMAND[];
137
+ values: Pick<StreamSources, "dataURL" | "width" | "height" | "mediaJpegWsUrl" | "streamPriority" | "mediaWebRtc" | "fps" | "quality">;
138
+ }
139
+ export declare class CMDP_CSTOPVIDEOPUSH implements ICOMMAND {
140
+ action: ACTION;
141
+ params: clientID;
142
+ }
143
+ export declare class CMDP_CSTOPVIDEOPUSH_RESPONSE extends CMDP_CSTOPVIDEOPUSH implements IRESPONSE {
144
+ result: RESULT;
145
+ commands: ICOMMAND[];
146
+ values: IKeyMaybeValue;
147
+ }
148
+ export declare class CMDC_CSTOPTEXT implements ICOMMAND {
149
+ action: ACTION;
150
+ params: clientID & chatIdType & {
151
+ code: string;
152
+ time?: string;
153
+ };
154
+ }
155
+ export declare class CMDP_CSTARTTEXT implements ICOMMAND {
156
+ action: ACTION;
157
+ params: clientID;
158
+ }
159
+ export declare class CMDP_CSTARTTEXT_RESPONSE extends CMDP_CSTARTTEXT implements IRESPONSE {
160
+ result: RESULT;
161
+ commands: ICOMMAND[];
162
+ values: IKeyMaybeValue;
163
+ }
164
+ export declare class CMDC_PUBLICCHAT implements ICOMMAND {
165
+ action: ACTION;
166
+ params: clientID & chatIdType & {
167
+ user: JSONString<{
168
+ userName: string;
169
+ }>;
170
+ event: "entered" | "left";
171
+ };
172
+ }
173
+ export declare class CMDP_CTIP implements ICOMMAND {
30
174
  action: ACTION;
31
175
  params: clientID & {
32
- version: string;
33
- initData: string;
34
- messengerProperties: string;
176
+ cent: number;
177
+ gift: ComaSeparatedValues<string>;
178
+ currency: EnumCurrency;
35
179
  };
36
180
  }
37
- export declare class CMDP_CINIT_RESPONSE extends CMDP_CINIT implements IRESPONSE {
181
+ export declare class CMDP_CTIP_RESPONSE extends CMDP_CTIP implements IRESPONSE {
38
182
  result: RESULT;
39
183
  commands: ICOMMAND[];
40
184
  values: IKeyMaybeValue;
41
185
  }
186
+ export declare class CMDP_CCHARGE implements ICOMMAND {
187
+ action: ACTION;
188
+ params: clientID & {
189
+ amount: number;
190
+ };
191
+ }
192
+ export declare class CMDP_CCHARGE_RESPONSE extends CMDP_CCHARGE implements IRESPONSE {
193
+ result: RESULT;
194
+ commands: ICOMMAND[];
195
+ values: {
196
+ successfully: EnumBooleanStringified;
197
+ };
198
+ }
@@ -8,6 +8,7 @@ export declare enum ACTION {
8
8
  CMDP_SLOGIN = "CMDP_SLOGIN",
9
9
  CMDP_LOGOUT = "CMDP_LOGOUT",
10
10
  CMDP_SLOGOUT = "CMDP_SLOGOUT",
11
+ CMDP_CLOGOUT = "CMDP_CLOGOUT",
11
12
  CMDC_USERINFO = "CMDC_USERINFO",
12
13
  CMDP_SETUSERINFO = "CMDP_SETUSERINFO",
13
14
  CMDP_GETUSERINFO = "CMDP_GETUSERINFO",
@@ -82,13 +83,30 @@ export declare enum ACTION {
82
83
  CMDC_TOYACTION = "CMDC_TOYACTION",
83
84
  CMDC_CSTREAMRESTART = "CMDC_CSTREAMRESTART",
84
85
  CMDP_SUPLOADMEDIA = "CMDP_SUPLOADMEDIA",
86
+ CMDP_CQUERY_CHARGE = "CMDP_CQUERY_CHARGE",
87
+ CMDP_CSTARTVIDEOPULL = "CMDP_CSTARTVIDEOPULL",
88
+ CMDP_CSTARTAUDIOPULL = "CMDP_CSTARTAUDIOPULL",
89
+ CMDP_CSTARTPREVIEW = "CMDP_CSTARTPREVIEW",
90
+ CMDP_CSTARTTEXT = "CMDP_CSTARTTEXT",
91
+ CMDP_CQUERY_SINGLE = "CMDP_CQUERY_SINGLE",
92
+ CMDP_CQUERYUSER = "CMDP_CQUERYUSER",
93
+ CMDC_CSTOPVIDEOPULL = "CMDC_CSTOPVIDEOPULL",
94
+ CMDC_CSTOPAUDIOPULL = "CMDC_CSTOPAUDIOPULL",
95
+ CMDC_CSTOPPREVIEW = "CMDC_CSTOPPREVIEW",
96
+ CMDC_CSTOPTEXT = "CMDC_CSTOPTEXT",
97
+ CMDC_PUBLICCHAT = "CMDC_PUBLICCHAT",
98
+ CMDP_CSTARTVIDEOPUSH = "CMDP_CSTARTVIDEOPUSH",
99
+ CMDP_CSTOPVIDEOPUSH = "CMDP_CSTOPVIDEOPUSH",
100
+ CMDP_CTIP = "CMDP_CTIP",
101
+ CMDP_CMSG = "CMDP_CMSG",
102
+ CMDP_CCHARGE = "CMDP_CCHARGE",
85
103
  /** Commands used on Live but not mentioned here **/
86
104
  CMDC_CSTOPAUDIOPUSH = "CMDC_CSTOPAUDIOPUSH",
87
105
  CMDC_CSTARTAUDIOPUSH = "CMDC_CSTARTAUDIOPUSH",
88
106
  CMDP_CSTOPTEXT = "CMDP_CSTOPTEXT",
89
107
  CMDC_CSTARTVIDEOPULL = "CMDC_CSTARTVIDEOPULL",
108
+ CMDC_CSTARTAUDIOPULL = "CMDC_CSTARTAUDIOPULL",
90
109
  CMDC_CSTARTVOYEUR = "CMDC_CSTARTVOYEUR",
91
- CMDC_CSTOPVIDEOPULL = "CMDC_CSTOPVIDEOPULL",
92
110
  CMDC_CSTOPVOYEUR = "CMDC_CSTOPVOYEUR",
93
111
  CMDP_SUPDATE = "CMDP_SUPDATE",
94
112
  CMDC_CSHOWADMIN = "CMDC_CSHOWADMIN",
@@ -1,4 +1,4 @@
1
- import { ICOMMAND, ACTION, IRESPONSE, RESULT, IKeyMaybeValue } from "../cmd-protocol";
1
+ import { ACTION, ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "../cmd-protocol";
2
2
  import { IBACKENDPAYLOAD } from "./backend";
3
3
  import { baseParamsType } from "./command/baseparams";
4
4
  import { channelIdOrChatId } from "./channel";
@@ -1,9 +1,14 @@
1
- import { EnumCurrency, ICurrencyDescription, IEmoji, IReaction, JSONString } from "../@types";
1
+ import { EnumBooleanStringifiedExtended, EnumCurrency, EnumPlayerFormat, ICurrencyDescription, IEmoji, IReaction, JSONString } from "../@types";
2
2
  import { IGift } from "./gifts";
3
3
  import { IBACKENDPAYLOAD } from "./backend";
4
4
  import { ACTION } from "./command/action";
5
5
  import { baseParamsType, SupportedLanguage } from "./command/baseparams";
6
- import { ICOMMAND, IKeyValue, IRESPONSE, RESULT } from "./command/icommand";
6
+ import { ICOMMAND, IKeyMaybeValue, IKeyValue, IRESPONSE, RESULT } from "./command/icommand";
7
+ import { SChatInfo } from "./live/livechat";
8
+ import { ChatState } from "./chatstate";
9
+ import { ComaSeparatedValues } from "./sessionstate";
10
+ import { clientID } from "./clivechat";
11
+ import { EnumInitDataFormat } from "../cmd-connection";
7
12
  export interface IInitBackendPayload {
8
13
  giftBundles: any;
9
14
  giftCategories: any;
@@ -27,7 +32,7 @@ export declare class CMDP_INIT implements ICOMMAND {
27
32
  action: ACTION;
28
33
  params: baseParamsType & {
29
34
  login?: string;
30
- initData?: string;
35
+ initData?: EnumInitDataFormat;
31
36
  };
32
37
  }
33
38
  /**
@@ -75,3 +80,47 @@ export declare class CMDP_SINIT extends CMDP_INIT {
75
80
  export declare class CMDP_SINIT_RESPONSE extends CMDP_INIT_RESPONSE {
76
81
  action: ACTION;
77
82
  }
83
+ /**
84
+ * the initial chat command
85
+ */
86
+ export declare class CMDP_CINIT implements ICOMMAND {
87
+ action: ACTION;
88
+ params: clientID & {
89
+ version: string;
90
+ initData: EnumInitDataFormat;
91
+ messengerProperties: string;
92
+ };
93
+ }
94
+ /**
95
+ * Response for CMDP_CINIT
96
+ */
97
+ export declare class CMDP_CINIT_RESPONSE extends CMDP_CINIT implements IRESPONSE {
98
+ result: RESULT;
99
+ commands: ICOMMAND[];
100
+ values: Omit<SChatInfo & ChatState, "chatID" | "type" | "startTime"> & {
101
+ chatId: string;
102
+ hostId: string;
103
+ hostlogin: string;
104
+ introVideoHls?: string;
105
+ rechargeWarningThres?: string;
106
+ rollbarKey?: string;
107
+ server?: string;
108
+ singlePrice?: string;
109
+ timeStamp: string;
110
+ fsk16?: EnumBooleanStringifiedExtended;
111
+ /** where to send message media */
112
+ uploadMediaUrl?: string;
113
+ uploadFeedbackUrl?: string;
114
+ formatsIncluded?: ComaSeparatedValues<EnumPlayerFormat>;
115
+ formatsExcluded?: ComaSeparatedValues<EnumPlayerFormat>;
116
+ translations?: JSONString<InitialTranslations>;
117
+ emojiList?: JSONString<IEmoji[]>;
118
+ currency: EnumCurrency;
119
+ currencyFormat?: JSONString<InitialCurrencies>;
120
+ reactions?: JSONString<IReaction[]>;
121
+ publicUsers?: JSONString<{
122
+ userName: string;
123
+ }[]>;
124
+ vxc_factor?: string;
125
+ } & IKeyMaybeValue;
126
+ }
@@ -1,4 +1,4 @@
1
- import { ICOMMAND, ACTION, IRESPONSE, RESULT, IKeyMaybeValue } from "../../cmd-protocol";
1
+ import { ACTION, ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "../../cmd-protocol";
2
2
  import { baseParamsType } from "../command/baseparams";
3
3
  /**
4
4
  * update media device infos
@@ -4,6 +4,7 @@ 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 } from "../../@types";
7
+ import { clientID } from "../clivechat";
7
8
  export declare enum EnumPowerEstimation {
8
9
  LOW = "LOW",
9
10
  MIDDLE = "MIDDLE",
@@ -182,24 +183,36 @@ export declare class CMDP_SQUERY_FORMAT_RESPONSE extends CMDP_SQUERY_FORMAT impl
182
183
  export declare enum QueryUserKeyEnum {
183
184
  FSK = "fsk",
184
185
  SINGLE = "single",
185
- SINGLEC2C = "singleC2C"
186
+ SINGLEC2C = "singleC2C",
187
+ QUERY_SINGLE = "querysingle"
186
188
  }
187
- export interface IQueryUserParams extends IKeyMaybeValue {
189
+ export declare enum QueryUserButtons {
190
+ btn0 = "btn0",
191
+ btn1 = "btn1"
192
+ }
193
+ export interface IQueryUserParams {
188
194
  queryId: string;
189
195
  key: QueryUserKeyEnum;
190
196
  caption: string;
191
197
  text: string;
192
- btn0: string;
193
- btn1: string;
198
+ [QueryUserButtons.btn0]: string;
199
+ [QueryUserButtons.btn1]: string;
194
200
  timeout: string;
195
201
  sound: string;
196
202
  btnDefault: EnumBooleanDigitized;
197
- btndef: "btn0" | "btn1";
203
+ btndef: QueryUserButtons;
198
204
  }
199
205
  export declare class CMDC_QUERYUSER implements ICOMMAND {
200
206
  action: ACTION;
201
207
  params: IMayHaveChannelId & IQueryUserParams;
202
208
  }
209
+ export declare class CMDC_CQUERYUSER implements ICOMMAND {
210
+ action: ACTION;
211
+ params: clientID & chatIdType & Omit<IQueryUserParams, "btnDefault" | "sound"> & {
212
+ price?: string;
213
+ default: string;
214
+ };
215
+ }
203
216
  export declare class CMDP_QUERYUSER implements ICOMMAND {
204
217
  action: ACTION;
205
218
  params: baseParamsType & chatIdType & IMayHaveChannelId & {
@@ -215,6 +228,18 @@ export declare class CMDP_QUERYUSER_RESPONSE extends CMDP_QUERYUSER implements I
215
228
  commands: ICOMMAND[];
216
229
  values: IKeyMaybeValue;
217
230
  }
231
+ export declare class CMDP_CQUERYUSER implements ICOMMAND {
232
+ action: ACTION;
233
+ params: clientID & {
234
+ key: QueryUserKeyEnum;
235
+ response: IQueryUserParams[QueryUserButtons];
236
+ };
237
+ }
238
+ export declare class CMDP_CQUERYUSER_RESPONSE extends CMDP_CQUERYUSER implements IRESPONSE {
239
+ result: RESULT;
240
+ commands: ICOMMAND[];
241
+ values: IKeyMaybeValue;
242
+ }
218
243
  export declare class CMDC_QUERYANSWERED implements ICOMMAND {
219
244
  action: ACTION;
220
245
  params: {
@@ -242,3 +267,12 @@ export declare class CMDC_CSTARTSTREAMPUSH implements ICOMMAND {
242
267
  action: ACTION;
243
268
  params: baseParamsType & StreamParams;
244
269
  }
270
+ export declare class CMDP_CQUERY_SINGLE implements ICOMMAND {
271
+ action: ACTION;
272
+ params: clientID;
273
+ }
274
+ export declare class CMDP_CQUERY_SINGLE_RESPONSE extends CMDP_CQUERY_SINGLE implements IRESPONSE {
275
+ result: RESULT;
276
+ commands: ICOMMAND[];
277
+ values: IKeyMaybeValue;
278
+ }
@@ -1,5 +1,5 @@
1
1
  import { EnumBooleanDigitized, EnumBooleanStringified, JSONString } from "../../@types";
2
- import { ACTION, baseParamsType, chatIdType, CMDC_CMSG, EnumChannelFilterValues, ICOMMAND } from "../../cmd-protocol";
2
+ import { ACTION, baseParamsType, chatIdType, CMDC_CMSG, ComaSeparatedValues, EnumChannelFilterValues, EnumFsk, ICOMMAND, SessionFlag } from "../../cmd-protocol";
3
3
  import { IKeyMaybeValue, IRESPONSE, RESULT } from "../command/icommand";
4
4
  /**
5
5
  * Chat flags
@@ -40,14 +40,13 @@ export declare enum EnumIntentionString {
40
40
  VIDEO = "VIDEO",
41
41
  SINGLECAM2CAM = "SINGLECAM2CAM"
42
42
  }
43
- export declare class SChatInfo implements IKeyMaybeValue {
44
- [key: string]: string;
43
+ export declare class SChatInfo {
45
44
  /** the unique chatId*/
46
45
  chatID: string;
47
46
  /** the chat type, can be changed. 15 contentpartner, 16 prepaid, 13 - dialerchat*/
48
47
  type: string;
49
48
  /** chat flags coma separated. see enum ChatFlags*/
50
- flags: string | keyof typeof ChatFlags;
49
+ flags: ComaSeparatedValues<SessionFlag> | SessionFlag;
51
50
  /** start timestamp */
52
51
  startTime: string;
53
52
  /** stop timestamp */
@@ -58,7 +57,7 @@ export declare class SChatInfo implements IKeyMaybeValue {
58
57
  exitCode?: string;
59
58
  /** admin chat */
60
59
  admin?: EnumBooleanDigitized;
61
- /** you can kick und ban this user */
60
+ /** you can kick and ban this user */
62
61
  canBan?: EnumBooleanDigitized;
63
62
  /** you can give a discount to this user*/
64
63
  canDiscount?: EnumBooleanDigitized;
@@ -73,7 +72,7 @@ export declare class SChatInfo implements IKeyMaybeValue {
73
72
  /** @deprecated */
74
73
  fixedPayout?: string;
75
74
  /** the soft/hard status */
76
- fsk?: "16" | "18";
75
+ fsk?: EnumFsk;
77
76
  /** the discount */
78
77
  hasDiscount?: string;
79
78
  /** info message for this chat */
@@ -104,7 +103,7 @@ export declare class SChatInfo implements IKeyMaybeValue {
104
103
  }
105
104
  export declare class CMDC_CINIT implements ICOMMAND {
106
105
  action: ACTION;
107
- params: SChatInfo;
106
+ params: SChatInfo & IKeyMaybeValue;
108
107
  }
109
108
  export declare type ChatOnlineStats = {
110
109
  /** the video time in seconds */
@@ -115,7 +114,7 @@ export declare type ChatOnlineStats = {
115
114
  };
116
115
  export declare class CMDC_UPDATE_CHAT implements ICOMMAND {
117
116
  action: ACTION;
118
- params: SChatInfo & ChatOnlineStats;
117
+ params: SChatInfo & ChatOnlineStats & IKeyMaybeValue;
119
118
  }
120
119
  export declare enum EndChatType {
121
120
  PREPARED = "PREPARED",
@@ -1,5 +1,5 @@
1
1
  import { EnumCurrency, JSONString } from "../../@types";
2
- import { ICOMMAND, ACTION, IRESPONSE, RESULT } from "../../cmd-protocol";
2
+ import { ACTION, ICOMMAND, IRESPONSE, RESULT } from "../../cmd-protocol";
3
3
  import { baseParamsType, SupportedLanguage } from "../command/baseparams";
4
4
  export declare enum MSettingNameEnum {
5
5
  CONVERSION_CHAT = "ConversionChat",
@@ -1,4 +1,5 @@
1
- import { ACTION, baseParamsType, ICOMMAND, IRESPONSE, RESULT, StringBasedType } from "../../cmd-protocol";
1
+ import { ACTION, baseParamsType, ComaSeparatedValues, ICOMMAND, IRESPONSE, RESULT, StringBasedType } from "../../cmd-protocol";
2
+ import { EnumPlayerFormat } from "../../@types";
2
3
  /**
3
4
  * 8320 only
4
5
  */
@@ -19,9 +20,9 @@ export declare class CMDP_SSTARTTESTVIDEOCHAT implements ICOMMAND {
19
20
  publicText?: string;
20
21
  guestAvatar?: string;
21
22
  modelAvatar?: string;
22
- formatsIncluded?: string;
23
- formatsExcluded?: string;
24
- formatsPriority?: string;
23
+ formatsIncluded?: ComaSeparatedValues<EnumPlayerFormat>;
24
+ formatsExcluded?: ComaSeparatedValues<EnumPlayerFormat>;
25
+ formatsPriority?: ComaSeparatedValues<EnumPlayerFormat>;
25
26
  };
26
27
  }
27
28
  /**
@@ -1,5 +1,5 @@
1
1
  import { EnumCurrency } from "../../@types";
2
- import { ICOMMAND, ACTION, baseParamsType, IRESPONSE, RESULT, IKeyMaybeValue } from "../../cmd-protocol";
2
+ import { ACTION, baseParamsType, ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "../../cmd-protocol";
3
3
  export declare enum EnumTicketShowStatusType {
4
4
  OK = "ok",
5
5
  CANCELLED = "cancelled",
@@ -1,5 +1,5 @@
1
1
  import { EnumBooleanStringified } from "../../@types";
2
- import { ICOMMAND, ACTION, IRESPONSE, RESULT, IKeyMaybeValue } from "../../cmd-protocol";
2
+ import { ACTION, ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "../../cmd-protocol";
3
3
  import { baseParamsType } from "../command/baseparams";
4
4
  export declare enum EnumPushNotificationFilter {
5
5
  ALL = "all",
@@ -3,6 +3,9 @@ import { ACTION } from "./command/action";
3
3
  import { baseParamsType } from "./command/baseparams";
4
4
  import { ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "./command/icommand";
5
5
  import { EnumBooleanStringified } from "../@types";
6
+ import { ExitCode } from "./exit-code";
7
+ import { clientID } from "./clivechat";
8
+ import { EndChatType } from "./live/livechat";
6
9
  export declare class CMDP_LOGOUT implements ICOMMAND, IBACKENDPAYLOAD {
7
10
  action: ACTION;
8
11
  params: baseParamsType & {
@@ -22,3 +25,18 @@ export declare class CMDP_SLOGOUT extends CMDP_LOGOUT {
22
25
  export declare class CMDP_SLOGOUT_RESPONSE extends CMDP_LOGOUT_RESPONSE {
23
26
  action: ACTION;
24
27
  }
28
+ export declare class CMDP_CLOGOUT implements ICOMMAND {
29
+ action: ACTION;
30
+ params: baseParamsType & clientID & {
31
+ exitCode?: ExitCode;
32
+ exitMessage?: string;
33
+ };
34
+ }
35
+ export declare class CMDP_CLOGOUT_RESPONSE extends CMDP_CLOGOUT implements IRESPONSE {
36
+ result: RESULT;
37
+ commands: ICOMMAND[];
38
+ values: {
39
+ endChatType: EndChatType;
40
+ videoTime?: string;
41
+ };
42
+ }
@@ -3,7 +3,7 @@ import { channelIdType } from "./channel";
3
3
  import { ACTION } from "./command/action";
4
4
  import { baseParamsType } from "./command/baseparams";
5
5
  import { ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "./command/icommand";
6
- import { MediaFile, MediaMd5, MediaPrice, EnumMediaType, EnumMediaState } from "./message";
6
+ import { EnumMediaState, EnumMediaType, MediaFile, MediaMd5, MediaPrice } from "./message";
7
7
  import { ComaSeparatedValues } from "./sessionstate";
8
8
  export declare type MayHaveChannelId = {
9
9
  channelId?: string;
@@ -2,7 +2,7 @@ import { IBACKENDPAYLOAD } from "./backend";
2
2
  import { channelIdSelectOrFilter } from "./channel";
3
3
  import { ACTION } from "./command/action";
4
4
  import { baseParamsType } from "./command/baseparams";
5
- import { ICOMMAND, IRESPONSE, RESULT, IKeyMaybeValue } from "./command/icommand";
5
+ import { ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "./command/icommand";
6
6
  import { EnumMediaType, MediaOffer, MessageParams } from "./message";
7
7
  export declare enum UploadStep {
8
8
  earlyreject = "earlyreject",
@@ -6,6 +6,8 @@ import { ACTION } from "./command/action";
6
6
  import { baseParamsType } from "./command/baseparams";
7
7
  import { ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "./command/icommand";
8
8
  import { ChannelMediaLinkState, MayHaveChannelId } from "./media";
9
+ import { clientID } from "./clivechat";
10
+ import { chatIdType } from "./chatstate";
9
11
  export declare enum MessageFlags {
10
12
  "canDeleted" = 0,
11
13
  "isDeleted" = 1
@@ -183,7 +185,28 @@ export declare class CMDP_MSG_RESPONSE extends CMDP_MSG implements IRESPONSE {
183
185
  commands: ICOMMAND[];
184
186
  /** unused */
185
187
  values: IKeyMaybeValue;
186
- /** if jwt-session, any json-payload for transport to to client */
188
+ /** if jwt-session, any json-payload for transport to client */
189
+ payload?: unknown;
190
+ }
191
+ /**
192
+ * send chat message
193
+ */
194
+ export declare class CMDP_CMSG implements ICOMMAND {
195
+ action: ACTION;
196
+ params: baseParamsType & MessageParams & clientID & chatIdType;
197
+ /** if jwt-session, any json-payload for transport to backend */
198
+ payload?: unknown;
199
+ }
200
+ /**
201
+ * Response command for CMDP_CMSG
202
+ */
203
+ export declare class CMDP_CMSG_RESPONSE extends CMDP_CMSG implements IRESPONSE {
204
+ result: RESULT;
205
+ /** unused */
206
+ commands: ICOMMAND[];
207
+ /** unused */
208
+ values: IKeyMaybeValue;
209
+ /** if jwt-session, any json-payload for transport to client */
187
210
  payload?: unknown;
188
211
  }
189
212
  /**
@@ -1,4 +1,4 @@
1
- import { ICOMMAND, ACTION, IRESPONSE, RESULT, IKeyMaybeValue } from "../../cmd-protocol";
1
+ import { ACTION, ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "../../cmd-protocol";
2
2
  import { baseParamsType } from "../command/baseparams";
3
3
  export declare class CMDP_SETEXPOTOKEN implements ICOMMAND {
4
4
  action: ACTION;
@@ -2,7 +2,7 @@ import { IProductConfig } from "./live/products-config";
2
2
  import { EnumService0900State } from "./live/supdate";
3
3
  import { IKeyMaybeValue } from "./command/icommand";
4
4
  import { SupportedLanguage } from "./command/baseparams";
5
- import { EnumBooleanStringified, JSONString, EnumBooleanStringifiedExtended } from "../@types";
5
+ import { EnumBooleanStringified, EnumBooleanStringifiedExtended, JSONString } from "../@types";
6
6
  export declare enum EnumSetTp {
7
7
  OFFLINE = "0",
8
8
  ONLINE = "1",
@@ -1,5 +1,5 @@
1
1
  import { EnumStreamStatusType } from "../@types";
2
- import { ICOMMAND, ACTION, baseParamsType, IRESPONSE, RESULT, IKeyMaybeValue } from "../cmd-protocol";
2
+ import { ACTION, baseParamsType, ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "../cmd-protocol";
3
3
  export declare enum EnumPlayerEventType {
4
4
  Play = "Play",
5
5
  Error = "Error",