talkyzap-wapp-api 1.0.21 → 1.0.23

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +22 -0
  3. package/dist/chat/functions/list.d.ts +4 -0
  4. package/dist/conn/functions/getABProps.d.ts +83 -0
  5. package/dist/conn/functions/getAutoDownloadSettings.d.ts +34 -0
  6. package/dist/conn/functions/getBuildConstants.d.ts +15 -0
  7. package/dist/conn/functions/getMigrationState.d.ts +0 -2
  8. package/dist/{whatsapp/misc/UsernameGatingUtils.d.ts → conn/functions/getMyUserLid.d.ts} +9 -9
  9. package/dist/conn/functions/getTheme.d.ts +39 -0
  10. package/dist/conn/functions/index.d.ts +7 -0
  11. package/dist/conn/functions/setAutoDownloadSettings.d.ts +56 -0
  12. package/dist/conn/functions/setTheme.d.ts +36 -0
  13. package/dist/contact/functions/index.d.ts +1 -0
  14. package/dist/contact/functions/reportContact.d.ts +62 -0
  15. package/dist/newsletter/functions/follow.d.ts +27 -0
  16. package/dist/newsletter/functions/index.d.ts +3 -0
  17. package/dist/newsletter/functions/search.d.ts +64 -0
  18. package/dist/newsletter/functions/unfollow.d.ts +27 -0
  19. package/dist/util/index.d.ts +1 -0
  20. package/dist/util/toArrayBuffer.d.ts +21 -0
  21. package/dist/whatsapp/enums/CHANNEL_EVENT_SURFACE.d.ts +27 -0
  22. package/dist/whatsapp/enums/index.d.ts +1 -0
  23. package/dist/whatsapp/functions/abPropsCache.d.ts +36 -0
  24. package/dist/whatsapp/functions/index.d.ts +6 -0
  25. package/dist/whatsapp/functions/markSeen.d.ts +13 -4
  26. package/dist/whatsapp/functions/mexFetchNewsletterDirectorySearchResults.d.ts +24 -0
  27. package/dist/whatsapp/functions/mexJoinNewsletter.d.ts +19 -0
  28. package/dist/whatsapp/functions/mexLeaveNewsletter.d.ts +19 -0
  29. package/dist/whatsapp/functions/reportSpam.d.ts +34 -0
  30. package/dist/whatsapp/functions/shouldHaveAccountLid.d.ts +3 -1
  31. package/dist/whatsapp/functions/toUserLid.d.ts +6 -0
  32. package/dist/whatsapp/functions/toggleNewsletterAdminActivityMuteStateAction.d.ts +22 -0
  33. package/dist/whatsapp/misc/Cmd.d.ts +7 -1
  34. package/dist/whatsapp/misc/DBCreateLidPnMappings.d.ts +31 -0
  35. package/dist/whatsapp/misc/LruMediaStore.d.ts +24 -0
  36. package/dist/whatsapp/misc/UserPrefsGeneral.d.ts +67 -0
  37. package/dist/whatsapp/misc/index.d.ts +2 -1
  38. package/dist/whatsapp/stores.d.ts +67 -56
  39. package/dist/wppconnect-wa.js +1 -1
  40. package/dist/wppconnect-wa.js.LICENSE.txt +17 -1
  41. package/eslint.config.mjs +1 -0
  42. package/package.json +24 -19
  43. package/scripts/compare-wa-versions.sh +85 -0
@@ -88,6 +88,22 @@
88
88
  * limitations under the License.
89
89
  */
90
90
 
91
+ /*!
92
+ * Copyright 2026 WPPConnect Team
93
+ *
94
+ * Licensed under the Apache License, Version 2.0 (the "License");
95
+ * you may not use this file except in compliance with the License.
96
+ * You may obtain a copy of the License at
97
+ *
98
+ * http://www.apache.org/licenses/LICENSE-2.0
99
+ *
100
+ * Unless required by applicable law or agreed to in writing, software
101
+ * distributed under the License is distributed on an "AS IS" BASIS,
102
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
103
+ * See the License for the specific language governing permissions and
104
+ * limitations under the License.
105
+ */
106
+
91
107
  /*!
92
108
  * EventEmitter2
93
109
  * https://github.com/hij1nx/EventEmitter2
@@ -105,4 +121,4 @@
105
121
 
106
122
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
107
123
 
108
- /*! wppconnect-team/wa-js v1.0.21 */
124
+ /*! wppconnect-team/wa-js v1.0.23 */
package/eslint.config.mjs CHANGED
@@ -62,6 +62,7 @@ export default [
62
62
  caughtErrorsIgnorePattern: '^_',
63
63
  },
64
64
  ],
65
+ 'no-useless-assignment': 'off',
65
66
  'header/header': [
66
67
  'error',
67
68
  'block',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "talkyzap-wapp-api",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "WPPConnect/WA-JS is an open-source project with the aim of exporting functions from WhatsApp Web",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -8,6 +8,10 @@
8
8
  "email": "edgardmessias@gmail.com",
9
9
  "url": "https://github.com/edgardmessias"
10
10
  },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/wppconnect-team/wa-js"
14
+ },
11
15
  "exports": {
12
16
  ".": {
13
17
  "types": "./dist/index.d.ts",
@@ -36,33 +40,34 @@
36
40
  "update-models-attributes": "ts-node ./src/tools/updateModelsAttributes.ts",
37
41
  "update-module-id": "ts-node ./src/tools/updateModuleID.ts",
38
42
  "wa-source:clean": "shx rm -rf wa-source",
39
- "wa-source:format": "prettier --write ./wa-source",
43
+ "wa-source:format": "prettier --ignore-path .prettierignore --write ./wa-source",
40
44
  "watch": "webpack watch --devtool inline-source-map --mode development"
41
45
  },
42
46
  "devDependencies": {
43
- "@commitlint/cli": "^20.3.0",
44
- "@commitlint/config-conventional": "^20.3.0",
45
- "@commitlint/prompt-cli": "^20.3.0",
46
- "@playwright/test": "^1.57.0",
47
- "@tony.ganchev/eslint-plugin-header": "^3.1.11",
47
+ "@commitlint/cli": "^20.4.1",
48
+ "@commitlint/config-conventional": "^20.4.1",
49
+ "@commitlint/prompt-cli": "^20.4.1",
50
+ "@eslint/js": "^10.0.1",
51
+ "@playwright/test": "^1.58.2",
52
+ "@tony.ganchev/eslint-plugin-header": "^3.2.1",
48
53
  "@types/debug": "^4.1.12",
49
54
  "@types/node": "^16.18.126",
50
55
  "@types/node-fetch": "^2.6.13",
51
56
  "@types/parse-data-url": "^3.0.2",
52
57
  "@types/shelljs": "^0.10.0",
53
- "@typescript-eslint/eslint-plugin": "^8.51.0",
54
- "@typescript-eslint/parser": "^8.51.0",
55
- "@wppconnect/wa-version": "^1.5.2811",
58
+ "@typescript-eslint/eslint-plugin": "^8.55.0",
59
+ "@typescript-eslint/parser": "^8.55.0",
60
+ "@wppconnect/wa-version": "^1.5.3245",
56
61
  "buffer": "^6.0.3",
57
62
  "compare-versions": "^6.1.1",
58
63
  "compressorjs": "^1.2.1",
59
64
  "conventional-changelog-angular": "^8.1.0",
60
65
  "conventional-changelog-cli": "^5.0.0",
61
66
  "debug": "^4.4.3",
62
- "eslint": "^9.39.2",
67
+ "eslint": "^10.0.0",
63
68
  "eslint-config-prettier": "^10.1.8",
64
69
  "eslint-plugin-import": "^2.32.0",
65
- "eslint-plugin-prettier": "^5.5.4",
70
+ "eslint-plugin-prettier": "^5.5.5",
66
71
  "eslint-plugin-simple-import-sort": "^12.1.1",
67
72
  "eventemitter2": "^6.4.9",
68
73
  "file-type": "~16.5.4",
@@ -70,21 +75,21 @@
70
75
  "lint-staged": "^16.2.7",
71
76
  "node-fetch": "^2.7.0",
72
77
  "parse-data-url": "^6.0.0",
73
- "playwright-chromium": "^1.57.0",
74
- "prettier": "^3.7.4",
75
- "release-it": "^19.2.2",
78
+ "playwright-chromium": "^1.58.2",
79
+ "prettier": "^3.8.1",
80
+ "release-it": "^19.2.4",
76
81
  "shx": "^0.4.0",
77
82
  "terser-webpack-plugin": "^5.3.16",
78
83
  "ts-loader": "^9.5.4",
79
84
  "ts-morph": "^27.0.2",
80
85
  "ts-node": "^10.9.2",
81
- "typedoc": "^0.28.15",
82
- "typedoc-plugin-mdn-links": "^5.0.10",
86
+ "typedoc": "^0.28.16",
87
+ "typedoc-plugin-mdn-links": "^5.1.1",
83
88
  "typedoc-plugin-missing-exports": "^4.1.2",
84
89
  "typescript": "^5.9.3",
85
90
  "typescript-debounce-decorator": "^0.0.18",
86
- "typescript-eslint": "^8.51.0",
87
- "webpack": "^5.104.1",
91
+ "typescript-eslint": "^8.55.0",
92
+ "webpack": "^5.105.1",
88
93
  "webpack-cli": "^6.0.1"
89
94
  },
90
95
  "engines": {
@@ -0,0 +1,85 @@
1
+ #!/bin/bash
2
+ # Compare WhatsApp Web source between two versions
3
+ # Usage: ./scripts/compare-wa-versions.sh <version1> <version2> [module_name]
4
+ #
5
+ # Examples:
6
+ # ./scripts/compare-wa-versions.sh 2.3000.1031980585 2.3000.1031992593
7
+ # ./scripts/compare-wa-versions.sh 2.3000.1031980585 2.3000.1031992593 WAWebUpdateUnreadChatAction
8
+
9
+ V1="$1"
10
+ V2="$2"
11
+ MODULE="$3"
12
+
13
+ WA_SOURCE_DIR="$(dirname "$0")/../wa-source"
14
+
15
+ if [ -z "$V1" ] || [ -z "$V2" ]; then
16
+ echo "Usage: $0 <version1> <version2> [module_name]"
17
+ echo ""
18
+ echo "Available versions:"
19
+ ls -1 "$WA_SOURCE_DIR" | tail -10
20
+ exit 1
21
+ fi
22
+
23
+ DIR1="$WA_SOURCE_DIR/$V1"
24
+ DIR2="$WA_SOURCE_DIR/$V2"
25
+
26
+ if [ ! -d "$DIR1" ]; then
27
+ echo "Error: Version $V1 not found"
28
+ exit 1
29
+ fi
30
+
31
+ if [ ! -d "$DIR2" ]; then
32
+ echo "Error: Version $V2 not found"
33
+ exit 1
34
+ fi
35
+
36
+ if [ -n "$MODULE" ]; then
37
+ echo "=== Comparing module: $MODULE ==="
38
+ echo ""
39
+
40
+ # Extract module from both versions
41
+ TMP1=$(mktemp)
42
+ TMP2=$(mktemp)
43
+
44
+ grep -h "__d(\"$MODULE\"" "$DIR1"/*.js 2>/dev/null | head -1 > "$TMP1"
45
+ grep -h "__d(\"$MODULE\"" "$DIR2"/*.js 2>/dev/null | head -1 > "$TMP2"
46
+
47
+ if [ ! -s "$TMP1" ]; then
48
+ echo "Module $MODULE not found in $V1"
49
+ rm "$TMP1" "$TMP2"
50
+ exit 1
51
+ fi
52
+
53
+ if [ ! -s "$TMP2" ]; then
54
+ echo "Module $MODULE not found in $V2"
55
+ rm "$TMP1" "$TMP2"
56
+ exit 1
57
+ fi
58
+
59
+ # Show diff
60
+ diff --color=always "$TMP1" "$TMP2" || true
61
+
62
+ rm "$TMP1" "$TMP2"
63
+ else
64
+ echo "=== File count comparison ==="
65
+ echo "$V1: $(ls "$DIR1"/*.js 2>/dev/null | wc -l) JS files"
66
+ echo "$V2: $(ls "$DIR2"/*.js 2>/dev/null | wc -l) JS files"
67
+ echo ""
68
+
69
+ echo "=== Module differences ==="
70
+ # Extract all module names
71
+ TMP1=$(mktemp)
72
+ TMP2=$(mktemp)
73
+
74
+ grep -oh '__d("[^"]*"' "$DIR1"/*.js 2>/dev/null | sort -u > "$TMP1"
75
+ grep -oh '__d("[^"]*"' "$DIR2"/*.js 2>/dev/null | sort -u > "$TMP2"
76
+
77
+ echo "Modules only in $V1:"
78
+ comm -23 "$TMP1" "$TMP2" | head -20
79
+ echo ""
80
+
81
+ echo "Modules only in $V2:"
82
+ comm -13 "$TMP1" "$TMP2" | head -20
83
+
84
+ rm "$TMP1" "$TMP2"
85
+ fi