@open-wa/wa-automate 4.32.5 → 4.32.8
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) => {
|
@@ -103,8 +103,7 @@ function initPage(sessionId, config, qrManager, customUserAgent, spinner, _page,
|
|
103
103
|
const cacheEnabled = (config === null || config === void 0 ? void 0 : config.cacheEnabled) === false ? false : true;
|
104
104
|
const blockCrashLogs = (config === null || config === void 0 ? void 0 : config.blockCrashLogs) === false ? false : true;
|
105
105
|
setupPromises.push(waPage.setBypassCSP((config === null || config === void 0 ? void 0 : config.bypassCSP) || false));
|
106
|
-
|
107
|
-
setupPromises.push(waPage.setCacheEnabled(cacheEnabled));
|
106
|
+
setupPromises.push(waPage.setCacheEnabled(cacheEnabled));
|
108
107
|
const blockAssets = !(config === null || config === void 0 ? void 0 : config.headless) ? false : (config === null || config === void 0 ? void 0 : config.blockAssets) || false;
|
109
108
|
if (blockAssets) {
|
110
109
|
const { default: block } = yield Promise.resolve().then(() => __importStar(require('puppeteer-extra-plugin-block-resources')));
|
package/package.json
CHANGED