@open-wa/wa-automate 4.32.4 → 4.32.7
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.
@@ -12,6 +12,9 @@ export interface Contact {
|
|
12
12
|
formattedName: string;
|
13
13
|
id: ContactId;
|
14
14
|
isBusiness: boolean;
|
15
|
+
/**
|
16
|
+
* Most likely true when the account has a green tick. See `verifiedLevel` also.
|
17
|
+
*/
|
15
18
|
isEnterprise: boolean;
|
16
19
|
isMe: boolean;
|
17
20
|
isMyContact: boolean;
|
@@ -34,7 +37,14 @@ export interface Contact {
|
|
34
37
|
shortName: string;
|
35
38
|
statusMute: boolean;
|
36
39
|
type: string;
|
37
|
-
|
40
|
+
/**
|
41
|
+
* 0 = not verified
|
42
|
+
* 2 = verified (most likely represents a blue tick)
|
43
|
+
*/
|
44
|
+
verifiedLevel: number;
|
45
|
+
/**
|
46
|
+
* The business account name verified by WA.
|
47
|
+
*/
|
38
48
|
verifiedName: string;
|
39
49
|
isOnline?: boolean;
|
40
50
|
lastSeen?: number;
|
@@ -25,6 +25,26 @@ export interface GroupMetadata {
|
|
25
25
|
* Unknown.
|
26
26
|
*/
|
27
27
|
pendingParticipants: Participant[];
|
28
|
+
/**
|
29
|
+
* The description of the group
|
30
|
+
*/
|
31
|
+
desc?: string;
|
32
|
+
/**
|
33
|
+
* The account that set the description last.
|
34
|
+
*/
|
35
|
+
descOwner?: ContactId;
|
36
|
+
/**
|
37
|
+
*
|
38
|
+
*/
|
39
|
+
trusted?: boolean;
|
40
|
+
/**
|
41
|
+
* Not sure what this represents
|
42
|
+
*/
|
43
|
+
suspended?: boolean;
|
44
|
+
/**
|
45
|
+
* Not sure what this represents
|
46
|
+
*/
|
47
|
+
support?: boolean;
|
28
48
|
}
|
29
49
|
export declare enum groupChangeEvent {
|
30
50
|
remove = "remove",
|
package/dist/cli/server.js
CHANGED
@@ -322,7 +322,8 @@ const setupSocketServer = (cliConfig, client) => __awaiter(void 0, void 0, void
|
|
322
322
|
io.use((socket, next) => {
|
323
323
|
if (socket.handshake.auth["apiKey"] == cliConfig.key)
|
324
324
|
next();
|
325
|
-
|
325
|
+
else
|
326
|
+
next(new Error("Authentication error"));
|
326
327
|
});
|
327
328
|
}
|
328
329
|
io.on("connection", (socket) => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@open-wa/wa-automate",
|
3
|
-
"version": "4.32.
|
3
|
+
"version": "4.32.7",
|
4
4
|
"licenseCheckUrl": "https://funcs.openwa.dev/license-check",
|
5
5
|
"brokenMethodReportUrl": "https://funcs.openwa.dev/report-bm",
|
6
6
|
"patches": "https://cdn.openwa.dev/patches.json",
|
@@ -169,9 +169,9 @@
|
|
169
169
|
"update-notifier": "^5.0.0",
|
170
170
|
"uuid": "^8.3.2",
|
171
171
|
"uuid-apikey": "^1.5.3",
|
172
|
-
"winston": "^3.
|
172
|
+
"winston": "^3.6.0",
|
173
173
|
"winston-daily-rotate-file": "^4.5.5",
|
174
|
-
"winston-syslog": "^2.
|
174
|
+
"winston-syslog": "^2.5.0",
|
175
175
|
"xmlbuilder2": "^3.0.2"
|
176
176
|
}
|
177
177
|
}
|