@teamqadeer1/baileys 0.0.0-stage β†’ 1.0.0

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 (98) hide show
  1. package/LICENSE +23 -0
  2. package/README.md +134 -2
  3. package/WAProto/index.js +115857 -0
  4. package/engine-requirements.js +10 -0
  5. package/lib/Defaults/index.js +120 -0
  6. package/lib/Defaults/noxleyss-version.json +3 -0
  7. package/lib/Signal/Group/ciphertext-message.js +15 -0
  8. package/lib/Signal/Group/group-session-builder.js +64 -0
  9. package/lib/Signal/Group/group_cipher.js +96 -0
  10. package/lib/Signal/Group/index.js +57 -0
  11. package/lib/Signal/Group/keyhelper.js +55 -0
  12. package/lib/Signal/Group/queue-job.js +57 -0
  13. package/lib/Signal/Group/sender-chain-key.js +34 -0
  14. package/lib/Signal/Group/sender-key-distribution-message.js +66 -0
  15. package/lib/Signal/Group/sender-key-message.js +69 -0
  16. package/lib/Signal/Group/sender-key-name.js +51 -0
  17. package/lib/Signal/Group/sender-key-record.js +53 -0
  18. package/lib/Signal/Group/sender-key-state.js +99 -0
  19. package/lib/Signal/Group/sender-message-key.js +29 -0
  20. package/lib/Signal/libsignal.js +184 -0
  21. package/lib/Socket/Client/index.js +18 -0
  22. package/lib/Socket/Client/types.js +13 -0
  23. package/lib/Socket/Client/websocket.js +72 -0
  24. package/lib/Socket/business.js +260 -0
  25. package/lib/Socket/chats.js +997 -0
  26. package/lib/Socket/groups.js +332 -0
  27. package/lib/Socket/index.js +10 -0
  28. package/lib/Socket/messages-recv.js +1107 -0
  29. package/lib/Socket/messages-send.js +944 -0
  30. package/lib/Socket/newsletter.js +286 -0
  31. package/lib/Socket/socket.js +646 -0
  32. package/lib/Socket/usync.js +70 -0
  33. package/lib/Store/index.js +8 -0
  34. package/lib/Store/make-in-memory-store.js +439 -0
  35. package/lib/Store/make-ordered-dictionary.js +81 -0
  36. package/lib/Store/object-repository.js +27 -0
  37. package/lib/Types/Auth.js +2 -0
  38. package/lib/Types/Call.js +2 -0
  39. package/lib/Types/Chat.js +4 -0
  40. package/lib/Types/Contact.js +2 -0
  41. package/lib/Types/Events.js +2 -0
  42. package/lib/Types/GroupMetadata.js +2 -0
  43. package/lib/Types/Label.js +27 -0
  44. package/lib/Types/LabelAssociation.js +9 -0
  45. package/lib/Types/Message.js +7 -0
  46. package/lib/Types/Newsletter.js +18 -0
  47. package/lib/Types/Product.js +2 -0
  48. package/lib/Types/Signal.js +2 -0
  49. package/lib/Types/Socket.js +2 -0
  50. package/lib/Types/State.js +2 -0
  51. package/lib/Types/USync.js +2 -0
  52. package/lib/Types/index.js +42 -0
  53. package/lib/Utils/auth-utils.js +199 -0
  54. package/lib/Utils/browser-utils.js +35 -0
  55. package/lib/Utils/business.js +234 -0
  56. package/lib/Utils/chat-utils.js +730 -0
  57. package/lib/Utils/crypto.js +193 -0
  58. package/lib/Utils/decode-wa-message.js +217 -0
  59. package/lib/Utils/event-buffer.js +518 -0
  60. package/lib/Utils/generics.js +467 -0
  61. package/lib/Utils/history.js +94 -0
  62. package/lib/Utils/index.js +35 -0
  63. package/lib/Utils/link-preview.js +126 -0
  64. package/lib/Utils/logger.js +7 -0
  65. package/lib/Utils/lt-hash.js +51 -0
  66. package/lib/Utils/make-mutex.js +43 -0
  67. package/lib/Utils/message-retry-manager.js +185 -0
  68. package/lib/Utils/messages-media.js +879 -0
  69. package/lib/Utils/messages.js +1944 -0
  70. package/lib/Utils/noise-handler.js +150 -0
  71. package/lib/Utils/process-message.js +404 -0
  72. package/lib/Utils/qadeer-event-stream.js +63 -0
  73. package/lib/Utils/signal.js +153 -0
  74. package/lib/Utils/use-multi-file-auth-state.js +124 -0
  75. package/lib/Utils/validate-connection.js +229 -0
  76. package/lib/WABinary/constants.js +1303 -0
  77. package/lib/WABinary/decode.js +265 -0
  78. package/lib/WABinary/encode.js +250 -0
  79. package/lib/WABinary/generic-utils.js +110 -0
  80. package/lib/WABinary/index.js +21 -0
  81. package/lib/WABinary/jid-utils.js +85 -0
  82. package/lib/WABinary/types.js +2 -0
  83. package/lib/WAM/BinaryInfo.js +13 -0
  84. package/lib/WAM/constants.js +15350 -0
  85. package/lib/WAM/encode.js +155 -0
  86. package/lib/WAM/index.js +19 -0
  87. package/lib/WAUSync/Protocols/USyncContactProtocol.js +32 -0
  88. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +57 -0
  89. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +30 -0
  90. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +42 -0
  91. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +53 -0
  92. package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +24 -0
  93. package/lib/WAUSync/Protocols/index.js +20 -0
  94. package/lib/WAUSync/USyncQuery.js +89 -0
  95. package/lib/WAUSync/USyncUser.js +26 -0
  96. package/lib/WAUSync/index.js +19 -0
  97. package/lib/index.js +80 -0
  98. package/package.json +110 -4
package/LICENSE ADDED
@@ -0,0 +1,23 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Cantarella
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ,
package/README.md CHANGED
@@ -1,3 +1,135 @@
1
- # Temporary Holding Version
1
+ ⚑ TEAM QADEER BAILEYS
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ <p align="center">
4
+ <img src="https://upload.zireku.com/get/7W4ZZ8.jpg" alt="Team Qadeer Baileys" width="100%" />
5
+ </p><p align="center">
6
+ <strong>A Flexible WhatsApp Automation Library for Node.js</strong>
7
+ <br />
8
+ Built for developers. Designed for flexibility. Powered by Team Qadeer.
9
+ </p><p align="center">
10
+ <img src="https://img.shields.io/badge/PROJECT-TEAM%20QADEER-16A34A?style=for-the-badge" alt="Team Qadeer" />
11
+ <img src="https://img.shields.io/badge/PLATFORM-WHATSAPP-25D366?style=for-the-badge&logo=whatsapp&logoColor=white" alt="WhatsApp" />
12
+ <img src="https://img.shields.io/badge/RUNTIME-NODE.JS-339933?style=for-the-badge&logo=nodedotjs&logoColor=white" alt="Node.js" />
13
+ </p>---
14
+
15
+ πŸ“– Introduction
16
+
17
+ Team Qadeer Baileys is a Node.js library project designed for developers who want to build WhatsApp-connected applications, automation tools, chatbots, and messaging solutions.
18
+
19
+ With a developer-focused approach, the project aims to provide a flexible foundation for implementing WhatsApp connectivity, authentication, session handling, and messaging workflows.
20
+
21
+ Whether you're building a personal assistant, an automated messaging system, or a custom communication application, Team Qadeer Baileys is designed to support your development workflow.
22
+
23
+ ✨ Key Features
24
+
25
+ - πŸ” Flexible Pairing β€” Pairing options according to the methods implemented by the package.
26
+ - πŸ”„ Session Management β€” Organize authentication credentials and session data.
27
+ - πŸ’¬ Messaging Capabilities β€” Build messaging workflows using the APIs supported by the library.
28
+ - πŸ“± Multi-Device Support β€” Designed for WhatsApp multi-device environments, subject to compatibility.
29
+ - βš™οΈ Easy Integration β€” Integrate the package into Node.js applications.
30
+ - πŸ€– Bot Development β€” Build command-based bots, automated replies, and custom workflows.
31
+ - 🧩 Customizable Architecture β€” Adapt your implementation to your project's requirements.
32
+ - πŸ›‘οΈ Security Awareness β€” Follow best practices for authentication, privacy, and session protection.
33
+
34
+ Actual functionality depends on the implementation and version of the published package.
35
+
36
+ πŸ“¦ Installation
37
+
38
+ Install the package using npm:
39
+
40
+ npm install teamqadeer-baileys
41
+
42
+ Alternatively, use Yarn:
43
+
44
+ yarn add teamqadeer-baileys
45
+
46
+ Or pnpm:
47
+
48
+ pnpm add teamqadeer-baileys
49
+
50
+ Β«Note: Replace "teamqadeer-baileys" with the actual published npm package name if it differs.Β»
51
+
52
+ ⚑ Getting Started
53
+
54
+ Before using the library, ensure that Node.js and a supported package manager are installed.
55
+
56
+ Check your environment:
57
+
58
+ node --version
59
+ npm --version
60
+
61
+ Install the package and refer to its exported APIs and included examples to configure your WhatsApp connection.
62
+
63
+ Basic Import Example
64
+
65
+ // CommonJS import example.
66
+ // The exported API depends on your package implementation.
67
+
68
+ const baileys = require('teamqadeer-baileys');
69
+
70
+ console.log('Team Qadeer Baileys loaded.');
71
+
72
+ This example demonstrates package importing only. Connection initialization, pairing, authentication, and messaging must use the actual APIs exported by the package.
73
+
74
+ πŸ› οΈ Development
75
+
76
+ When developing applications with Team Qadeer Baileys:
77
+
78
+ 1. Install the package and its required dependencies.
79
+ 2. Configure authentication and session handling.
80
+ 3. Initialize the connection using the supported API.
81
+ 4. Implement the messaging and event-handling workflows your application needs.
82
+ 5. Handle connection errors and reconnection scenarios.
83
+ 6. Protect authentication credentials and session files.
84
+
85
+ For exact methods, configuration options, and supported features, consult the project's source code and examples.
86
+
87
+ πŸ”’ Security Best Practices
88
+
89
+ Protect your application and users by following these recommendations:
90
+
91
+ - Never publish WhatsApp authentication credentials or session files.
92
+ - Keep API keys and sensitive configuration in environment variables.
93
+ - Add private configuration files and session directories to ".gitignore".
94
+ - Avoid logging authentication secrets or private message contents.
95
+ - Store session data securely and restrict unauthorized access.
96
+ - Keep dependencies updated and review security advisories.
97
+ - Never expose private credentials in public repositories or npm packages.
98
+
99
+ ⚠️ Responsible Use
100
+
101
+ This library is intended for legitimate development, testing, and authorized automation.
102
+
103
+ Users are responsible for ensuring that their applications comply with applicable laws, privacy requirements, and WhatsApp's terms and policies.
104
+
105
+ Do not use this project for spam, scams, harassment, unauthorized access, or the collection and distribution of private information without permission.
106
+
107
+ WhatsApp may change its protocols or behavior, which can affect compatibility, connectivity, and feature availability.
108
+
109
+ πŸ“„ License and Copyright
110
+
111
+ Copyright Β© 2026 Team Qadeer Baileys. All Rights Reserved.
112
+
113
+ - Creator: Qadeer Khan
114
+ - Project: Team Qadeer Baileys
115
+ - Brand: Team Qadeer
116
+
117
+ Unless expressly authorized in writing by the copyright holder, unauthorized copying, redistribution, republication, or commercial resale of original proprietary code and materials from this project is prohibited.
118
+
119
+ Users may not falsely claim authorship of the original project or its proprietary components.
120
+
121
+ Third-party dependencies and incorporated code remain subject to their respective licenses. This notice does not replace or override any applicable third-party license.
122
+
123
+ For permission or licensing inquiries, contact the project owner through the project's official contact channel.
124
+
125
+ πŸ™Œ Acknowledgements
126
+
127
+ Thank you for your interest in Team Qadeer Baileys.
128
+
129
+ The project is developed under the Team Qadeer brand with a focus on flexibility, maintainability, and developer experience.
130
+
131
+ <p align="center">
132
+ <strong>TEAM QADEER</strong>
133
+ <br />
134
+ <em>Code with Purpose. Build Without Limits.</em>
135
+ </p>