cmd-control-client-lib 3.0.125 → 3.0.128
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/index.d.ts +1 -0
- package/dist/@types/ireaction.d.ts +4 -0
- package/dist/cmd-control-client-lib.js +1 -1
- package/dist/cmd-control-client-lib.js.map +1 -1
- package/dist/protocol/chatstate.d.ts +2 -2
- package/dist/protocol/command/action.d.ts +2 -1
- package/dist/protocol/message.d.ts +22 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EnumBooleanDigitized } from "../@types";
|
|
2
2
|
/**
|
|
3
|
-
* Type that definitely has `
|
|
3
|
+
* Type that definitely has `chatId` field
|
|
4
4
|
*/
|
|
5
5
|
export declare type chatIdType = {
|
|
6
6
|
chatID: string;
|
|
@@ -8,7 +8,7 @@ export declare type chatIdType = {
|
|
|
8
8
|
/**
|
|
9
9
|
* chat state
|
|
10
10
|
*/
|
|
11
|
-
export declare type ChatState = {
|
|
11
|
+
export declare type ChatState = chatIdType & {
|
|
12
12
|
/** single ability */
|
|
13
13
|
canSingle?: EnumBooleanDigitized;
|
|
14
14
|
/** single status */
|
|
@@ -152,5 +152,6 @@ export declare enum ACTION {
|
|
|
152
152
|
CMDP_SGETSEDCARDPICTURES = "CMDP_SGETSEDCARDPICTURES",
|
|
153
153
|
CMDC_SEDCARDPICTURE = "CMDC_SEDCARDPICTURE",
|
|
154
154
|
CMDP_CSTATUS = "CMDP_CSTATUS",
|
|
155
|
-
CMDP_CINIT = "CMDP_CINIT"
|
|
155
|
+
CMDP_CINIT = "CMDP_CINIT",
|
|
156
|
+
CMDP_SMSGREACTION = "CMDP_SMSGREACTION"
|
|
156
157
|
}
|
|
@@ -202,3 +202,25 @@ export declare class CMDP_MSGDELETE_RESPONSE extends CMDP_MSGDELETE implements I
|
|
|
202
202
|
/** unused */
|
|
203
203
|
values: IKeyMaybeValue;
|
|
204
204
|
}
|
|
205
|
+
/**
|
|
206
|
+
* reaction to message. s. IReaction and CMDP_SINIT.values.reactions
|
|
207
|
+
* CMDC_CMSG will be sent by backend to update the message
|
|
208
|
+
*/
|
|
209
|
+
export declare class CMDP_SMSGREACTION implements ICOMMAND {
|
|
210
|
+
action: ACTION;
|
|
211
|
+
params: baseParamsType & channelIdType & MessageId & {
|
|
212
|
+
text?: string;
|
|
213
|
+
/** if the text is empty or not set, the code musst be set to one of CMDP_SINIT.values.reactions */
|
|
214
|
+
code?: string;
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Response for CMDP_MSGDELETE
|
|
219
|
+
*/
|
|
220
|
+
export declare class CMDP_SMSGREACTION_RESPONSE extends CMDP_SMSGREACTION implements IRESPONSE {
|
|
221
|
+
result: RESULT;
|
|
222
|
+
/** unused */
|
|
223
|
+
commands: ICOMMAND[];
|
|
224
|
+
/** unused */
|
|
225
|
+
values: IKeyMaybeValue;
|
|
226
|
+
}
|