@zetagoaurum-socket/decagramton 3.2.5 → 3.3.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 (92) hide show
  1. package/README.md +55 -93
  2. package/WAProto/index.js +56886 -17506
  3. package/engine-requirements.js +91 -0
  4. package/lib/Defaults/index.js +32 -2
  5. package/lib/Signal/Group/ciphertext-message.d.ts +9 -0
  6. package/lib/Signal/Group/ciphertext-message.js +15 -0
  7. package/lib/Signal/Group/group-session-builder.d.ts +14 -0
  8. package/lib/Signal/Group/group-session-builder.js +64 -0
  9. package/lib/Signal/Group/group_cipher.d.ts +17 -0
  10. package/lib/Signal/Group/group_cipher.js +96 -0
  11. package/lib/Signal/Group/index.d.ts +11 -0
  12. package/lib/Signal/Group/index.js +57 -0
  13. package/lib/Signal/Group/keyhelper.d.ts +10 -0
  14. package/lib/Signal/Group/keyhelper.js +55 -0
  15. package/lib/Signal/Group/queue-job.d.ts +1 -0
  16. package/lib/Signal/Group/queue-job.js +57 -0
  17. package/lib/Signal/Group/sender-chain-key.d.ts +13 -0
  18. package/lib/Signal/Group/sender-chain-key.js +34 -0
  19. package/lib/Signal/Group/sender-key-distribution-message.d.ts +16 -0
  20. package/lib/Signal/Group/sender-key-distribution-message.js +66 -0
  21. package/lib/Signal/Group/sender-key-message.d.ts +18 -0
  22. package/lib/Signal/Group/sender-key-message.js +69 -0
  23. package/lib/Signal/Group/sender-key-name.d.ts +17 -0
  24. package/lib/Signal/Group/sender-key-name.js +51 -0
  25. package/lib/Signal/Group/sender-key-record.d.ts +30 -0
  26. package/lib/Signal/Group/sender-key-record.js +53 -0
  27. package/lib/Signal/Group/sender-key-state.d.ts +38 -0
  28. package/lib/Signal/Group/sender-key-state.js +99 -0
  29. package/lib/Signal/Group/sender-message-key.d.ts +11 -0
  30. package/{WASignalGroup/sender_message_key.js → lib/Signal/Group/sender-message-key.js} +6 -16
  31. package/lib/Signal/libsignal.js +51 -29
  32. package/lib/Socket/business.d.ts +3 -2
  33. package/lib/Socket/chats.d.ts +215 -28
  34. package/lib/Socket/chats.js +166 -70
  35. package/lib/Socket/dugong.d.ts +254 -0
  36. package/lib/Socket/dugong.js +432 -141
  37. package/lib/Socket/groups.js +20 -23
  38. package/lib/Socket/index.js +2 -15
  39. package/lib/Socket/messages-recv.d.ts +56 -55
  40. package/lib/Socket/messages-recv.js +367 -131
  41. package/lib/Socket/messages-send.d.ts +3 -2
  42. package/lib/Socket/messages-send.js +423 -380
  43. package/lib/Socket/newsletter.js +120 -21
  44. package/lib/Socket/socket.js +156 -148
  45. package/lib/Socket/usync.d.ts +3 -3
  46. package/lib/Types/GroupMetadata.d.ts +1 -0
  47. package/lib/Types/Newsletter.d.ts +97 -86
  48. package/lib/Types/Newsletter.js +38 -32
  49. package/lib/Types/USync.d.ts +25 -0
  50. package/lib/Types/USync.js +2 -0
  51. package/lib/Utils/anti-crash.js +31 -0
  52. package/lib/Utils/chat-utils.js +6 -1
  53. package/lib/Utils/generics.js +66 -34
  54. package/lib/Utils/history.js +6 -1
  55. package/lib/Utils/index.js +0 -1
  56. package/lib/Utils/link-preview.js +1 -1
  57. package/lib/Utils/messages-media.js +145 -57
  58. package/lib/Utils/messages.js +92 -306
  59. package/lib/Utils/signal.js +48 -46
  60. package/lib/Utils/use-multi-file-auth-state.js +45 -6
  61. package/lib/Utils/validate-connection.js +89 -65
  62. package/lib/WABinary/constants.d.ts +27 -24
  63. package/lib/WABinary/encode.js +160 -123
  64. package/lib/WABinary/generic-utils.d.ts +2 -0
  65. package/lib/WABinary/generic-utils.js +124 -36
  66. package/lib/WABinary/jid-utils.js +5 -26
  67. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +1 -1
  68. package/lib/index.d.ts +1 -0
  69. package/lib/index.js +56 -0
  70. package/package.json +113 -101
  71. package/LICENSE +0 -21
  72. package/WAProto/GenerateStatics.sh +0 -4
  73. package/WAProto/WAProto.proto +0 -3344
  74. package/WAProto/index.d.ts +0 -37016
  75. package/WASignalGroup/GroupProtocol.js +0 -1697
  76. package/WASignalGroup/ciphertext_message.js +0 -16
  77. package/WASignalGroup/group_cipher.js +0 -120
  78. package/WASignalGroup/group_session_builder.js +0 -46
  79. package/WASignalGroup/index.js +0 -5
  80. package/WASignalGroup/keyhelper.js +0 -21
  81. package/WASignalGroup/protobufs.js +0 -3
  82. package/WASignalGroup/queue_job.js +0 -69
  83. package/WASignalGroup/sender_chain_key.js +0 -50
  84. package/WASignalGroup/sender_key_distribution_message.js +0 -78
  85. package/WASignalGroup/sender_key_message.js +0 -92
  86. package/WASignalGroup/sender_key_name.js +0 -70
  87. package/WASignalGroup/sender_key_record.js +0 -56
  88. package/WASignalGroup/sender_key_state.js +0 -129
  89. package/decagramton.jpg +0 -0
  90. package/lib/Utils/rate-limiter.js +0 -55
  91. package/lib/WAUSync/Fall +0 -1
  92. package/lib/WAUSync/Protocols/Fal +0 -1
package/README.md CHANGED
@@ -1,113 +1,75 @@
1
+ # <div align="center">ZetaGo-Aurum Decagramton</div>
2
+
1
3
  <div align="center">
2
- <img src="./decagramton.jpg" alt="Decagramton Banner" width="100%" />
3
-
4
- # DECAGRAMTON - By ZetaGo-Aurum
5
-
6
- [![npm version](https://img.shields.io/npm/v/@zetagoaurum-socket/decagramton.svg?style=flat-square)](https://www.npmjs.com/package/@zetagoaurum-socket/decagramton)
7
- [![License](https://img.shields.io/npm/l/@zetagoaurum-socket/decagramton.svg?style=flat-square)](https://github.com/ZetaGo-Aurum/baileys-V1/blob/main/LICENSE)
8
-
9
- <p align="center">
10
- <b>The Ten-Pointed Star of Perfection</b><br>
11
- <i>10 Titik Kesempurnaan Socket WhatsApp Enterprise</i><br>
12
- <b>Product</b>: Decagramton | <b>Author</b>: ZetaGo-Aurum
13
- </p>
14
- </div>
15
4
 
16
- ---
5
+ ![ZetaGo-Aurum](https://img.shields.io/badge/ZetaGo--Aurum--Decagramton-v3.3.0-gold?style=for-the-badge&logo=whatsapp&logoColor=white)
6
+ ![Version](https://img.shields.io/badge/Version-3.3.0-blue?style=for-the-badge)
7
+ ![License](https://img.shields.io/badge/License-MIT-green?style=for-the-badge)
17
8
 
18
- ## 🇮🇩 Bahasa Indonesia (ID)
9
+ **The Ten-Pointed Star of Speed**
10
+ *Lightweight. Powerful. Perfection.*
19
11
 
20
- ### 🚀 Filosofi DECAGRAMTON
21
- **DECAGRAMTON** bukan sekadar library. Ini adalah manifestasi dari **10 Titik Kesempurnaan** (The 10 Points). Kami merancang library ini untuk memenuhi standar Enterprise tertinggi: **Kenyamanan**, **Kecepatan**, **Keamanan**, dan **Stabilitas**.
12
+ [Installation](#installation) [The 10 Features](#the-10-features) • [Contributors](#contributors)
22
13
 
23
- ### 🌟 THE 10 STARS (10 Fitur Unggulan)
24
- Sesuai lambang Decagram, library ini memiliki 10 kekuatan utama:
14
+ </div>
25
15
 
26
- 1. **🛡️ Smart Rate Limiter (Security)**: Algoritma cerdas "Anti-Neko-Neko" yang menjaga akun aman dari banned akibat spam.
27
- 2. **🔌 Auto-Healing Socket (Stability)**: Koneksi putus? Decagramton menyambung kembali otomatis dalam milidetik.
28
- 3. **⚡ Lightning Fast (Speed)**: Kode yang dibersihkan dari "bloatware" untuk latensi ultra-rendah.
29
- 4. **🤖 Hybrid I-AI (Intelligence)**: Badge pintar yang membedakan bot Private (`biz_bot`) dan Group (`supportPayload`).
30
- 5. **🎮 Decagram Interactive (Interactivity)**: Dukungan penuh Button, List, Carousel, Payment, dan Polling via `dugong.js`.
31
- 6. **🧱 Anti-Crash System (Reliability)**: Proteksi lapis ganda terhadap error runtime (seperti Axios 400).
32
- 7. **💾 Multi-Session Store (Scalability)**: Manajemen sesi file yang efisien untuk skala besar.
33
- 8. **📱 Multi-Device Support (Compatibility)**: Mendukung penuh arsitektur WA Multi-Device terbaru.
34
- 9. **🛠️ Developer Comfort (Usability)**: Dokumentasi Bilingual (ID/EN) dan API yang mudah dipahami.
35
- 10. **🎨 Exclusive Console (Beauty)**: Banner startup "Decagramton" yang mewah dan log yang indah.
16
+ ---
36
17
 
37
- ### 📦 Instalasi (Installation)
18
+ ## 🚀 Installation
38
19
 
39
- **Via NPM (Recommended):**
40
20
  ```bash
41
21
  npm install @zetagoaurum-socket/decagramton
42
- # atau
43
- yarn add @zetagoaurum-socket/decagramton
44
22
  ```
45
23
 
46
- **Via GitHub (Latest/Dev):**
47
- ```bash
48
- npm install github:ZetaGo-Aurum/Decagramton
49
- ```
24
+ ---
25
+
26
+ ## 🌟 The 10 Features of Decagramton
27
+
28
+ Decagramton is built on the philosophy of 10 points of perfection, ensuring a lightweight yet powerful WhatsApp socket experience.
29
+
30
+ ### 1. ⚡ Lightweight Core
31
+ Optimized codebase stripped of unnecessary bloatware, ensuring maximum performance and low memory footprint.
32
+
33
+ ### 2. 🛡️ Anti-Kill Protection
34
+ Robust error handling system that prevents the process from crashing due to unhandled exceptions or rejections.
50
35
 
51
- > [!TIP]
52
- > **Migration from WhiskeySockets/Baileys?**
53
- > Decagramton is a **Drop-in Replacement**. Simply uninstall your old baileys and install Decagramton.
54
- > `npm uninstall @whiskeysockets/baileys && npm install @zetagoaurum-socket/decagramton`
55
- > Then update your require/import:
56
- > `const { ... } = require('@zetagoaurum-socket/decagramton')`
36
+ ### 3. ✅ Meta Verified Mimicry
37
+ Automatically injects "Enterprise" and "Verified" attributes into message payloads to mimic official business accounts and reduce ban risks.
38
+
39
+ ### 4. 🚀 Fast Connect
40
+ Enhanced connection logic for rapid authentication and socket establishment.
41
+
42
+ ### 5. 📱 Multi-Device Support
43
+ Full compatibility with the latest WhatsApp Multi-Device (MD) architecture.
44
+
45
+ ### 6. 🔐 Custom Pairing
46
+ Supports both automatic QR scanning and custom pairing code methods for flexible login.
47
+
48
+ ### 7. 💬 Interactive Messages
49
+ Native support for interactive buttons, list messages, and dynamic menus.
50
+
51
+ ### 8. 🔄 Stable Sessions
52
+ Advanced session management to ensure long-term connectivity without frequent logouts.
53
+
54
+ ### 9. 🔒 Secure Encryption
55
+ Implements standard Signal protocol encryption for secure end-to-end communication.
56
+
57
+ ### 10. 🎨 Stylish TUI
58
+ Beautiful text-based user interface with colored logs and the signature Decagramton banner.
57
59
 
58
60
  ---
59
61
 
60
- ## 🇺🇸 English (EN)
61
-
62
- ### 🚀 The DECAGRAMTON Philosophy
63
- **DECAGRAMTON** is built upon the "10 Points of Perfection". It is an Enterprise-Grade library designed to deliver the ultimate balance of **Comfort**, **Speed**, **Security**, and **Stability**.
64
-
65
- ### 🌟 THE 10 STARS (Key Features)
66
- Representing the 10 points of our star:
67
-
68
- 1. **🛡️ Smart Rate Limiter (Security)**: Intelligent "Anti-Neko-Neko" engine to prevent spam flags.
69
- 2. **🔌 Auto-Healing Socket (Stability)**: Instantly recovers from connection drops or `Bad MAC` errors.
70
- 3. **⚡ Lightning Fast (Speed)**: Zero-bloat architecture for maximum throughput.
71
- 4. **🤖 Hybrid I-AI (Intelligence)**: Smart badge switching for Private vs Group chats.
72
- 5. **🎮 Decagram Interactive (Interactivity)**: Full support for Buttons, Lists, Polls, and more via `dugong.js`.
73
- 6. **🧱 Anti-Crash System (Reliability)**: Built-in safeguards against common runtime crashes.
74
- 7. **💾 Multi-Session Store (Scalability)**: Optimized file-based session management.
75
- 8. **📱 Multi-Device Support (Compatibility)**: Fully compatible with modern MD protocols.
76
- 9. **🛠️ Developer Comfort (Usability)**: Clear API and Bilingual Documentation.
77
- 10. **🎨 Exclusive Console (Beauty)**: Stunning startup banner and styled logs.
78
-
79
- ## 🛠️ Usage / Penggunaan
80
-
81
- ```javascript
82
- const { makeWASocket, useMultiFileAuthState } = require('@zetagoaurum-socket/decagramton');
83
-
84
- async function connectToWhatsApp() {
85
- const { state, saveCreds } = await useMultiFileAuthState('auth_info');
86
-
87
- // Decagramton: The 10-Point Star of Speed
88
- const sock = makeWASocket({
89
- auth: state,
90
- printQRInTerminal: true
91
- });
92
-
93
- sock.ev.on('creds.update', saveCreds);
94
-
95
- sock.ev.on('connection.update', (update) => {
96
- const { connection } = update;
97
- if(connection === 'open') {
98
- console.log('✨ Connected to DECAGRAMTON!');
99
- }
100
- });
101
- }
102
-
103
- connectToWhatsApp();
104
- ```
62
+ ## 👥 Contributors
105
63
 
106
- ## 📜 License
107
- Distributed under the MIT License.
64
+ This project is the result of the hard work of many developers. We acknowledge and thank them for their contributions:
108
65
 
109
- ## 📞 Contact
110
- **ZetaGo-Aurum** - [GitHub](https://github.com/ZetaGo-Aurum)
66
+ - **Adhiraj Singh** (Original Creator of Baileys)
67
+ - **ZetaGo-Aurum** (Current Maintainer & Decagramton Developer)
68
+ - **FallZx Infinity** (Base Repository)
69
+ - **IbraDecode** (Contributor)
111
70
 
112
71
  ---
113
- <p align="center">Made with 🌟 by ZetaGo-Aurum | DECAGRAMTON Enterprise</p>
72
+
73
+ <div align="center">
74
+ © 2026 ZetaGo-Aurum. All Rights Reserved.
75
+ </div>