cmd-control-client-lib 3.0.291 → 3.0.294
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.
|
@@ -194,5 +194,9 @@ export declare enum ACTION {
|
|
|
194
194
|
CMDP_SUPSERTMVCSCHEDULES = "CMDP_SUPSERTMVCSCHEDULES",
|
|
195
195
|
CMDP_SDELETEMVCSCHEDULE = "CMDP_SDELETEMVCSCHEDULE",
|
|
196
196
|
CMDP_SGETUPLOADEDMEDIA2 = "CMDP_SGETUPLOADEDMEDIA2",
|
|
197
|
-
CMDP_SSETMSETTINGS = "CMDP_SSETMSETTINGS"
|
|
197
|
+
CMDP_SSETMSETTINGS = "CMDP_SSETMSETTINGS",
|
|
198
|
+
CMDP_REMOTETOYAPPQRCODE = "CMDP_REMOTETOYAPPQRCODE",
|
|
199
|
+
CMDP_REMOTETOYAPPDATA = "CMDP_REMOTETOYAPPDATA",
|
|
200
|
+
CMDP_REMOTETOYAPPCOMMAND = "CMDP_REMOTETOYAPPCOMMAND",
|
|
201
|
+
CMDC_REMOTETOYAPPDATA = "CMDC_REMOTETOYAPPDATA"
|
|
198
202
|
}
|
|
@@ -74,8 +74,9 @@ export declare type MessageParams = IMayHaveChannelId & {
|
|
|
74
74
|
link?: string;
|
|
75
75
|
clientData?: string;
|
|
76
76
|
isBulk?: EnumBooleanStringified;
|
|
77
|
-
/**
|
|
77
|
+
/** reaction */
|
|
78
78
|
reaction?: string;
|
|
79
|
+
reactionTime?: string;
|
|
79
80
|
};
|
|
80
81
|
export declare type MediaMd5 = {
|
|
81
82
|
mediaMd5?: string;
|
package/dist/protocol/toy.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { IMayHaveChannelId } from "./channel";
|
|
|
2
2
|
import { ACTION } from "./command/action";
|
|
3
3
|
import { baseParamsType } from "./command/baseparams";
|
|
4
4
|
import { ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "./command/icommand";
|
|
5
|
+
import { JSONString } from "../@types";
|
|
5
6
|
/**
|
|
6
7
|
* update the toy state
|
|
7
8
|
*/
|
|
@@ -37,7 +38,7 @@ export declare type toyActionParams = {
|
|
|
37
38
|
language?: string;
|
|
38
39
|
};
|
|
39
40
|
/**
|
|
40
|
-
* command to send the toy action to channel
|
|
41
|
+
* B2B only. command to send the toy action to channel
|
|
41
42
|
*/
|
|
42
43
|
export declare class CMDP_TOYACTION implements ICOMMAND {
|
|
43
44
|
action: ACTION;
|
|
@@ -58,3 +59,86 @@ export declare class CMDC_TOYACTION implements ICOMMAND {
|
|
|
58
59
|
action: ACTION;
|
|
59
60
|
params: IMayHaveChannelId & toyActionParams & IKeyMaybeValue;
|
|
60
61
|
}
|
|
62
|
+
export declare type remoteToyType = {
|
|
63
|
+
nickname: string;
|
|
64
|
+
name: string;
|
|
65
|
+
id: string;
|
|
66
|
+
status: number;
|
|
67
|
+
};
|
|
68
|
+
export declare type remoteToyAppType = {
|
|
69
|
+
uid: string;
|
|
70
|
+
appVersion: string;
|
|
71
|
+
toys: Map<string, remoteToyType>;
|
|
72
|
+
utoken: string;
|
|
73
|
+
appType: string;
|
|
74
|
+
version: string;
|
|
75
|
+
platform: string;
|
|
76
|
+
};
|
|
77
|
+
export declare class CMDP_REMOTETOYAPPQRCODE implements ICOMMAND {
|
|
78
|
+
action: ACTION;
|
|
79
|
+
params: baseParamsType;
|
|
80
|
+
}
|
|
81
|
+
export declare class CMDP_REMOTETOYAPPQRCODE_RESPONSE extends CMDP_REMOTETOYAPPQRCODE implements IRESPONSE {
|
|
82
|
+
result: RESULT;
|
|
83
|
+
values: {
|
|
84
|
+
code?: string;
|
|
85
|
+
};
|
|
86
|
+
commands: ICOMMAND[];
|
|
87
|
+
}
|
|
88
|
+
export declare class CMDP_REMOTETOYAPPDATA implements ICOMMAND {
|
|
89
|
+
action: ACTION;
|
|
90
|
+
params: baseParamsType & ({
|
|
91
|
+
clientID?: string;
|
|
92
|
+
} | {
|
|
93
|
+
chatID?: string;
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
export declare class CMDP_REMOTETOYAPPDATA_RESPONSE extends CMDP_REMOTETOYAPPDATA implements IRESPONSE {
|
|
97
|
+
result: RESULT;
|
|
98
|
+
values: {
|
|
99
|
+
remoteAppData?: JSONString<remoteToyAppType>;
|
|
100
|
+
};
|
|
101
|
+
commands: ICOMMAND[];
|
|
102
|
+
}
|
|
103
|
+
export declare class CMDC_REMOTETOYAPPDATA implements ICOMMAND {
|
|
104
|
+
action: ACTION;
|
|
105
|
+
params: {
|
|
106
|
+
sessionID: string;
|
|
107
|
+
remoteAppData: JSONString<remoteToyAppType>;
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
export declare type toyCommandFunctionType = {
|
|
111
|
+
command: "Function" | string;
|
|
112
|
+
toyAction: string;
|
|
113
|
+
timeSec: string;
|
|
114
|
+
loopRunningSec?: string;
|
|
115
|
+
loopPauseSec?: string;
|
|
116
|
+
toy: string;
|
|
117
|
+
stopPrevious?: "1" | "0" | string;
|
|
118
|
+
};
|
|
119
|
+
export declare type toyCommandPatternType = {
|
|
120
|
+
command: "Pattern" | string;
|
|
121
|
+
rule: string;
|
|
122
|
+
strength: string;
|
|
123
|
+
timeSec: string;
|
|
124
|
+
toy: string;
|
|
125
|
+
};
|
|
126
|
+
export declare type toyCommandPresetType = {
|
|
127
|
+
command: "Preset" | string;
|
|
128
|
+
name: string;
|
|
129
|
+
timeSec: string;
|
|
130
|
+
toy: string;
|
|
131
|
+
};
|
|
132
|
+
export declare class CMDP_REMOTETOYAPPCOMMAND implements ICOMMAND {
|
|
133
|
+
action: ACTION;
|
|
134
|
+
params: baseParamsType & ({
|
|
135
|
+
clientID?: string;
|
|
136
|
+
} | {
|
|
137
|
+
chatID?: string;
|
|
138
|
+
}) & (toyCommandFunctionType | toyCommandPatternType | toyCommandPresetType);
|
|
139
|
+
}
|
|
140
|
+
export declare class CMDP_REMOTETOYAPPCOMMAND_RESPONSE extends CMDP_REMOTETOYAPPCOMMAND implements IRESPONSE {
|
|
141
|
+
result: RESULT;
|
|
142
|
+
values: IKeyMaybeValue;
|
|
143
|
+
commands: ICOMMAND[];
|
|
144
|
+
}
|