| Export | Kind | Notes |
makeWASocket (default) | function | Creates a multi-device WhatsApp socket |
useMultiFileAuthState(folder) | async function | Folder-based session โ { state, saveCreds } |
makeInMemoryStore(config?) | function | The in-memory store (restored by AunuBaileys) |
DisconnectReason | enum | Disconnect reasons, e.g. loggedOut |
PHONENUMBER_MCC | object | Phone country-code table (legacy export) |
processedMessages | โ | Compatibility export for older scripts |
initInMemoryKeyStore() | function | In-memory key store (compatibility export) |
| Export | Since | Notes |
AunuAntiBan / wrapAntiBan | 1.0.5 | Account-protection layer โ dedicated page |
classifyDisconnect / RateLimiter / gaussianJitter | 1.0.5 | AntiBan support components |
Button (aliases Buttons, ButtonBuilder) | 1.0.4 | Native-flow button builder |
ButtonV2 (alias ListButton) | 1.0.4 | Button + list builder |
Carousel (alias CarouselBuilder) | 1.0.4 | Card carousel builder |
AIRich (aliases AiRich, RichResponse) | 1.0.4 | AI-style rich response builder |
Toolkit (alias Tools) | 1.0.4 | Static button & list helpers |
AunuHandler | 1.0.3 | Ergonomic socket wrapper (send/reply/react/sendInteractive/newsletterId) |
| Method | Since | Notes |
sock.aunuHandler | 1.0.3 | A ready-to-use AunuHandler instance on every socket |
sock.registerSocketEndHandler(fn) | 1.0.3 | Register a callback for when the socket ends |
sock.fetchAccountReachoutTimelock() | 1.0.3 | Check the account's reachout timelock status |
sock.fetchNewChatMessageCap() | 1.0.3 | Check the account's new-chat message cap |
sock.requestPairingCode(phone) | upstream | Request a pairing code for a number (international format, no +) |
sock.ev.destroy() | 1.0.4 | Cleanly destroy the event emitter |