Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(engine): expand the capability matrix into a full three-way inventory
Yudhi Armyndharis5297ff8945d6
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 128a4c635..eccdaf18d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0### Added+- **The engine capability matrix now covers every library method, event and install-time patch** — `docs/29` grew from the 105-method contract view into a three-way comparison of the Baileys library, the whatsapp-web.js library and what OpenWA actually exposes: all 152 Baileys socket methods and 81 whatsapp-web.js Client methods mapped to the interface method that uses them (or marked unexposed, which is the implementation backlog), all 34 + 31 library events marked consumed or dropped, all five install-time patches with the rows that depend on them, and the capabilities both libraries already have that only OpenWA lacks. Every exposure mark was traced back to adapter code, so the inventory reflects what the adapters call rather than what they mention.- **An onboarding modal the detector does not recognise now shows up in the logs instead of failing silently** — when the "What's new" probe finds nothing to click, the watcher reports the visible dialog's heading and confirm-button labels once per distinct dialog (`action: onboarding_dialog_unrecognized`), so a renamed or localised modal can be covered via `WWEBJS_ONBOARDING_CONTINUE_LABELS` before WhatsApp unlinks the companion. The watcher also logs when it arms and a summary when it stops at its lifetime cap (both debug). Refs #1072.## [0.15.0] - 2026-08-09diff --git a/docs/29-engine-capability-matrix.md b/docs/29-engine-capability-matrix.mdindex 8555d5ac8..456cc8893 100644--- a/docs/29-engine-capability-matrix.md+++ b/docs/29-engine-capability-matrix.md@@ -1,194 +1,870 @@# 29 - Engine Capability Matrix-This page is the operator- and engineer-facing view of which `IWhatsAppEngine` capabilities are real on each adapter — `wwjs` (whatsapp-web.js, the default) and `baileys` (the browser-free alternative) — and, for the ones that are missing, _why_ and _where to start_.--The committed source of truth is `src/engine/engine-capability-matrix.ts`. Every `IWhatsAppEngine` method has a row with two adapters; each adapter is either `supported` (works end-to-end) or `not-available`, and each `not-available` cell carries a **rootCause**:--- **`adapter-gap`** — the underlying library already HAS the capability; only the OpenWA adapter wiring is missing. **Fixable in this repo** with a PR that calls the library symbol the evidence points at.-- **`library-limitation`** — the underlying library exposes no first-class symbol for the operation. Not fixable without a raw-proto/fork effort or an event-cache hack.-- **`uncertain`** — the source trace was inconclusive; needs a live spike.--Each row also cites an **evidence** string (the exact library file:symbol inspected), so an engineer can open the file and start wiring immediately.--## How the matrix stays honest--`src/engine/engine-parity.spec.ts` is a **structural gate**: it verifies the matrix keys correspond exactly to `IWhatsAppEngine` methods and checks the adapter throw-invariants it can observe through `Class.prototype.method.toString()`. No engine is instantiated and no Chromium/socket is opened. The gate does not read this document and cannot detect a non-throwing phantom stub becoming real (or regressing), so status/evidence changes still require source review and a deliberate documentation update.--The `rootCause`/`evidence` fields are hand-curated from source traces of the installed libraries (`node_modules/@whiskeysockets/baileys`, `node_modules/whatsapp-web.js`); they are not regenerated by the spec and are updated by hand as adapters are wired or libraries change.--> **Phantom support.** The drift gate's throw-heuristic cannot see adapter methods that silently stub (return `null`/`[]` + a warn log) without throwing. The wwjs catalog reads — `getCatalog`, `getProducts`, `getProduct` — used to be the live example (marked `not-available` here while their adapter bodies did not throw); the stubs have since been replaced with explicit `EngineNotSupportedError` 501s, so the throw-scan now covers them like every other unavailable row. Any future `not-available` row that must stay non-throwing cannot be verified by the gate — keep it hand-tracked in the matrix (or make the adapter throw).--**Upstream surface drift** is guarded from the other direction by `scripts/check-upstream-surface.mjs` (wired into `npm run test:scripts`): it extracts the installed engines' public capability surface — whatsapp-web.js `Client` methods + `Events` values, Baileys socket methods + `BaileysEventMap` events — and compares it against the committed, reviewed snapshot (`scripts/upstream-surface.snapshot.json`). An engine bump that introduces new symbols fails the check until each one is reviewed (expose / defer / record the exclusion) and the snapshot is refreshed with `node scripts/check-upstream-surface.mjs --update`. This closes the blindspot where a capability both engines already supported sat unreviewed until a user asked for it.-------## Unwired-capability inventory--21 of the 105 interface methods are `not-available` on at least one adapter (22 not-available adapter-cells total). Grouped by cluster below. Each entry shows: status today → rootCause → evidence → wiring note.--### Channels / Newsletter--| Method | baileys | wwjs |-| ----------------------- | -------------------------------------- | ------------------------------- |-| `getChannelMessages` | not-available — **adapter-gap** | supported |-| `getSubscribedChannels` | not-available — **library-limitation** | supported |-| `subscribeToChannel` | supported | not-available — **adapter-gap** |--> **Wired.** ✅ `getChannelById`, `subscribeToChannel`, `unsubscribeFromChannel` on Baileys — via `newsletterMetadata('jid'|'invite', …)` → `NewsletterMetadata` mapped to `Channel` (id/name/description/inviteCode/subscriberCount/picture/verified/createdAt), `newsletterFollow` (subscribe, invite→jid bridge), `newsletterUnfollow` (unsubscribe, 1:1). `getChannelById` on Baileys resolves ANY channel by jid (richer than the wwjs subscribed-list lookup).--- **`subscribeToChannel` (wwjs, adapter-gap).** whatsapp-web.js `Client.subscribeToChannel(channelId)` takes a channel ID and resolves a boolean (`Client.js:2533`) — it cannot satisfy the subscribe-by-invite-code contract on its own. The correct wiring is two-step: `getChannelByInviteCode(inviteCode)` (`Client.js:1707`) → `subscribeToChannel(channel.id)`. The adapter previously passed the invite code straight in and fabricated a `Channel` out of the returned boolean (`{ id: "undefined" }` — a reported success that never subscribed); it now throws an honest `EngineNotSupportedError` (501) until the two-step flow is verified against a live session.-- **`getChannelMessages` (baileys, adapter-gap).** `sock.newsletterFetchMessages(channelId, limit, 0, 0)` (`Socket/newsletter.d.ts:19`) returns the **raw `BinaryNode`** of `<message_updates>` children (`newsletter.js:149`). The fetch is one line; the real work is walking the children and mapping each to `ChannelMessage{id,body,timestamp,hasMedia}` — no library parser is exposed. Not wired: a hand-written BinaryNode walk can't be verified without a live WhatsApp session, so it stays a documented gap rather than an unverified implementation.-- **`getSubscribedChannels` (baileys, library-limitation).** No enumerate-subscribed-newsletters query in the library. All 19 newsletter members of `Socket/newsletter.d.ts` address a single newsletter — by jid, by invite key, or by creating one (`newsletterMetadata('invite'|'jid', key)` requires a key; `newsletterSubscribers(jid)` returns the count of one newsletter; `newsletterCreate(name, description?)` makes a new one). The `newsletter` event surfaces jids opportunistically during live sync, but that is incremental, not a list-all. Would require a raw WMex/app-state hack against an undocumented XWAPath.--### Labels (WhatsApp Business)--| Method | baileys | wwjs |-| --------------- | -------------------------------------- | --------- |-| `getLabels` | not-available — **library-limitation** | supported |-| `getLabelById` | not-available — **library-limitation** | supported |-| `getChatLabels` | not-available — **library-limitation** | supported |--> **Wired.** ✅ `addLabelToChat` / `removeLabelFromChat` on the Baileys engine — 1:1 to `sock.addChatLabel(chatId, labelId)` / `sock.removeChatLabel(chatId, labelId)` (`Socket/chats.d.ts:70-71`). WhatsApp-Business-only (rejects on personal accounts). Do **not** use `addLabel(jid, LabelActionBody)` (`chats.d.ts:69`) — that creates/edits the label _definition_, not the chat association.--- **`getLabels` / `getLabelById` / `getChatLabels` (baileys, library-limitation).** No label read/fetch symbol anywhere in `lib/**/*.d.ts` (`Types/Label.d.ts` has only the interface + `LabelColor` enum; `chats.d.ts`/`business.d.ts` expose only writes). Label data does arrive via app-state sync (`messaging-history.set`), so a determined adapter could capture+cache labels from the event stream — but that is a relay/cache hack, not a first-class getter, and there is no network fetch to seed/refresh it on demand.--### Catalog / Products / Orders (WhatsApp Business)--| Method | baileys | wwjs |-| ------------- | -------------------------------------- | -------------------------------------- |-| `getCatalog` | supported | not-available — **library-limitation** |-| `getProducts` | supported | not-available — **library-limitation** |-| `getProduct` | supported | not-available — **library-limitation** |-| `sendProduct` | supported | not-available — **library-limitation** |-| `sendCatalog` | not-available — **library-limitation** | not-available — **library-limitation** |--> **Wired (#905).** ✅ `getCatalog` / `getProducts` / `getProduct` / `sendProduct` on the Baileys engine (`src/engine/adapters/baileys-catalog.ts`, `baileys-messaging.ts`). `getProducts` cursor-walks `sock.getCatalog({jid, limit, cursor})` (`Socket/business.d.ts:7`) to exhaustion, then slices page/limit in memory — `pagination.total`/`totalPages` are exact. `getCatalog` synthesizes the `Catalog` metadata from the first `getCollections(jid)` entry (`business.d.ts:11`; `null` when the business has no collections). `getProduct` reuses the walk + find-by-id. `sendProduct` is the documented 2-step: the adapter resolves the product, then sends `{product: WASendableProduct, businessOwnerJid, body}` (`Types/Message.d.ts:203`) with `priceAmount1000 = price × 1000` and the catalog image handed to Baileys as a URL upload; a product without an image is rejected `400`, an unknown id `404`.--- **`sendCatalog` (both, library-limitation).** No catalog-share message type exists in either library. Baileys `AnyMessageContent` has only `{product}` (single product); the catalog CRUD nodes (`Socket/business.js:294-362`) mutate the catalog, they don't send it. Would require raw-proto relay hacks (unverified).-- **wwjs catalog (library-limitation).** `whatsapp-web.js` has no `Client.getCatalog`/`getProducts`/`getProduct`/`sendProduct`/`sendCatalog` (`index.d.ts` grep = 0 hits). `Product`/`Order` are inbound-only parsers. The adapter throws an explicit `EngineNotSupportedError` (501) for the reads (they used to be phantom `null`/`[]` stubs) and the sends alike.--### Status — post / delete--> **Wired.** ✅ `postTextStatus` / `postImageStatus` / `postVideoStatus` + `deleteStatus` on whatsapp-web.js. Posts route via `sendMessage('status@broadcast', …)` (`{ extra: { backgroundColor, fontStyle } }` for text; `{ caption }` for media); `deleteStatus` calls `revokeStatusMessage(statusId)` (own-status only). **Caveat:** whatsapp-web.js has no status-recipient arg, so `StatusPostOptions.recipients` is not honored on this engine (it broadcasts to the account's status-privacy audience; a one-time warning is logged). The Baileys engine honors `recipients` (`statusJidList`).--- **`deleteStatus` (baileys) caveat.** Marked `supported` (no throw), but the adapter self-describes its `sendMessage(status@broadcast,{delete})` revoke shape as _empirically unverified_ (`baileys.adapter.ts`, the `deleteStatus()` doc comment) — only posting was live-spiked. May need a fallback to `EngineNotSupportedError` if WA rejects the shape.--### Status — read (contact stories)--| Method | baileys | wwjs |-| -------------------- | -------------------------------------- | --------- |-| `getContactStatus` | not-available — **library-limitation** | supported |-| `getContactStatuses` | not-available — **library-limitation** | supported |--> **Wired.** ✅ `getContactStatus` / `getContactStatuses` on whatsapp-web.js — `getBroadcastById(id)` / `getBroadcasts()` flattened to `Status[]` (contact via `broadcast.getContact()`; type from `MessageTypes`; 24h TTL). **Caveat:** `Status.type` is the `text|image|video` union — audio/other story types collapse to `text`.--- **`getContactStatus` / `getContactStatuses` (baileys, library-limitation).** `fetchStatus` (`Socket/chats.d.ts:42` via `USyncStatusProtocol`) returns the _about/profile text_ line (`{status, setAt}`), **not** 24h stories. No story-read getter exists; story broadcasts surface only as `status@broadcast` messages via `messages.upsert` / `messaging-history.set` events. These raw engine methods are still unimplemented on Baileys and still throw `EngineNotSupportedError` (`501`) if called directly.-- **API-level parity shipped without adapter wiring.** The `status@broadcast` accumulator this row calls for exists now — as an OpenWA-side store (`StatusStoreService`, `src/modules/status-store/`) fed by inbound status ingestion on both engines, not inside the Baileys adapter. `GET /sessions/:id/status` and `GET /sessions/:id/status/:contactId` read from that store instead of calling `getContactStatus`/`getContactStatuses`, so the REST API is at parity across engines even though these two adapter cells remain, correctly, `not-available`.--### Messaging misc — delete / history / reactions--| Method | baileys | wwjs |-| --------------------- | -------------------------------------- | --------- |-| `getChatHistory` | not-available — **library-limitation** | supported |-| `getMessageReactions` | not-available — **library-limitation** | supported |--- **`getChatHistory` (baileys, library-limitation).** The only history primitive is `fetchMessageHistory(count, oldestMsgKey, oldestMsgTimestamp)` (`Socket/business.d.ts:25`) — it returns a sync-token _string_, not messages; the messages are delivered later via the `messaging-history.set` event. There is no per-chat `fetchMessages(chatId, limit)` on the socket. A synchronous `Promise<IncomingMessage[]>` for one chat would require an OpenWA-side chat-indexed store populated from `messages.upsert` + `messaging-history.set` events.-- **`getMessageReactions` (baileys, library-limitation).** No on-demand server fetch. Reactions exist only as event-augmented state on `WAMessage.reactions` (`proto.IReaction[]` at `WAProto/index.d.ts:10623`), mutated by `updateMessageWithReaction` and surfaced via the `messages.reaction` event. The adapter already processes `reactionMessage` events (`baileys.adapter.ts`, the `reactionMessage` branch of `processInboundMessage()`) and emits `onMessageReaction`, but it does **not** persist `.reactions` into its `messageStore` (that branch returns before the `messageStore.put`). A store-backed read would need that persistence added first; even then, only reactions observed since session start are known (no historical backfill).--### Groups — disappearing messages--| Method | baileys | wwjs |-| ------------------- | --------- | -------------------------------------- |-| `setGroupEphemeral` | supported | not-available — **library-limitation** |--- **`setGroupEphemeral` (wwjs, library-limitation).** whatsapp-web.js 1.34.7 exposes no disappearing-timer setter (0 hits for `ephemeral` in `index.d.ts`); the only timer surface is the create-time `messageTimer` option (`Client.js:2371`). The adapter throws `EngineNotSupportedError` (501). Baileys wires `groupToggleEphemeral(jid, ephemeralExpiration)` (`Socket/groups.d.ts:40`).-------## Prioritized roadmap — adapter gaps (fixable in this repo)--These are the capabilities the underlying library already supports but the OpenWA adapter does not wire. Ranked high-value + low-effort first. Each is a self-contained backlog item; an engineer can open the cited symbol and start.--> **Progress.** ✅ `deleteMessage` (`forEveryone=false`, Baileys) — wired via `chatModify({ deleteForMe })`; moved to `supported`.--### Tier 1 — small effort, high value ✅ shipped--All Tier-1 adapter-gaps have been wired:--- ✅ `deleteMessage(forEveryone=false)` — Baileys (`chatModify({ deleteForMe })`)-- ✅ `postTextStatus` / `postImageStatus` / `postVideoStatus` — whatsapp-web.js (`sendMessage('status@broadcast', …)`; `recipients` not honored)-- ✅ `addLabelToChat` / `removeLabelFromChat` — Baileys (`addChatLabel` / `removeChatLabel`; WhatsApp-Business-only)-- ✅ `getChannelById` / `subscribeToChannel` / `unsubscribeFromChannel` — Baileys (`newsletterMetadata` / `newsletterFollow` / `newsletterUnfollow`)--### Tier 2 — small-to-medium effort, medium-high value--_All Tier-2 items wired (see progress above). Remaining channel work is Tier 3: `getChannelMessages` (raw BinaryNode, no library parser)._--### Tier 3 — medium effort--| # | Method : engine | Library call to wire | Effort | Value |-| --- | ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------- |-| 13 | `getChannelMessages` : **baileys** | `sock.newsletterFetchMessages(jid,count,since,after)` (`Socket/newsletter.d.ts:19`) + hand-written `BinaryNode`→`ChannelMessage` parser | **M** | Read channel posts. The fetch is 1 line; the BinaryNode parsing/normalization is the real work (no library parser exposed). |--_✅ #14 `getProducts`, #15 `sendProduct`, #16 `getCatalog` — wired on Baileys (#905); see §Catalog / Products / Orders above._--### Tier 4 — small effort, lower value--| # | Method : engine | Library call to wire | Effort | Value |-| --- | ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| 18 | `subscribeToChannel` : **wwjs** | 2-step: `getChannelByInviteCode(inviteCode)` (`index.d.ts:103`; `Client.js:1707`) → `subscribeToChannel(channel.id)` (`Client.js:2533`, boolean → throw on false) | **S** | Channel subscribe-by-invite parity with Baileys. Must be verified against a live session — the previous one-step call was a phantom (it passed the invite code where a channel id belongs and fabricated the returned Channel). |--_✅ #17 `getProduct` — wired on Baileys (#905); see §Catalog / Products / Orders above._-------## Library limitations — not available without raw-proto/fork effort--These are honestly out of reach of a clean adapter wiring because the installed library exposes no first-class symbol. Listed so operators can plan around them rather than file unactionable bugs.--**baileys (11 cells):**--- `getChatsByLabel` — label WRITES only (`Socket/chats.d.ts:69-73`: `addLabel`, `addChatLabel`, `removeChatLabel`); there is no label query of any kind and `Types/Label.d.ts` is types-only. Listing a label's chats needs an app-state cache fed by the label-association sync events, which is its own piece of work. whatsapp-web.js: `Client.getChatsByLabelId`.--- `getSubscribedChannels` — no enumerate-newsletters query; all 19 newsletter members of `Socket/newsletter.d.ts` address a single newsletter (by jid, by invite key, or by creating one). Needs a raw WMex/app-state hack.-- `getLabels` / `getLabelById` / `getChatLabels` — no label read symbol; only writes (`Types/Label.d.ts` is types-only). Workaround: capture labels from the `messaging-history.set` app-state event into an in-memory cache (relay hack, no on-demand refresh).-- `getChatHistory` — only `fetchMessageHistory` (event-delivered sync token); no synchronous per-chat `fetchMessages`. Needs an OpenWA-side chat-indexed store fed from `messages.upsert` + `messaging-history.set`.-- `getMessageReactions` — no on-demand fetch; reactions only arrive via the `messages.reaction` event. Partial local path: persist each event into the `messageStore`, then read (no historical backfill).-- `getContactStatus` / `getContactStatuses` — `fetchStatus` returns the _about_ text, not 24h stories; stories only surface as `status@broadcast` messages. The engine-level Baileys adapter methods remain unimplemented (`501`); however, the REST API reads are served from the `StatusStoreService` accumulator (see §Status — read above), so API-level parity is shipped.-- `sendCatalog` — no catalog-share message type in `AnyMessageContent` (only single `{product}`).-- `votePoll` — no vote-SEND helper at all; the library only decrypts INCOMING votes (`decryptPollVote`). Sending one means hand-building a `proto.Message.PollUpdateMessage` with HMAC-SHA256 vote encryption keyed by the poll creation's `messageSecret`. Supported on whatsapp-web.js.--**wwjs (9 cells):**--- `upsertLabel` / `deleteLabel` — whatsapp-web.js 1.34.7 can READ labels and assign them, but cannot edit one: `index.d.ts:129-154` exposes `getLabels`, `getLabelById`, `getChatLabels`, `getChatsByLabelId` and `addOrRemoveLabels`, and nothing that creates, renames, recolours or deletes a label. Baileys: one `addLabel` write covering all four.--- `subscribeToPresence` — no way to observe another party's presence. `WAWebPresenceChatAction` offers only `sendPresenceAvailable` / `sendPresenceUnavailable` (`index.d.ts:230,233`), which publish the ACCOUNT's own presence, and the library emits no presence event at all. Baileys: `presenceSubscribe` + the `presence.update` event. Reaching it would mean injecting page-level subscriptions against undocumented WA Web modules.-- `getCatalog` / `getProducts` / `getProduct` — no catalog API at all (`index.d.ts` 0 hits; `Product` is inbound-only).-- `sendProduct` — no outbound product content type.-- `sendCatalog` — no outbound catalog content type.-- `setGroupEphemeral` — no disappearing-timer setter in whatsapp-web.js 1.34.7; the timer is only reachable through the create-time `messageTimer` option (`index.d.ts:870`), which `Client.js` maps to the internal `ephemeralDuration` wire field. Baileys: `groupToggleEphemeral`.-------## Snapshot summary--These are hand-maintained and had drifted from the source before this pass; they are now recomputed-from `engine-capability-matrix.ts` rather than adjusted by hand. Re-derive them the same way when-adding a method, instead of incrementing the previous figure.--- **105** interface methods, **210** adapter-cells (105 × 2 engines).-- **188** supported cells; **22** not-available cells across **21** methods.-- Of the 22 not-available cells: **2 adapter-gaps** (fixable) + **20 library-limitations** + **0 uncertain**.-- **0 phantom-support rows** — every `not-available` row throws at the adapter boundary.-- Note that the drift gate does **not** verify that for whatsapp-web.js. `engine-parity.spec.ts`- detects a throw with `Class.prototype.method.toString()`, and the wwjs adapter's methods are thin- forwarders whose throws live in delegate modules (`wwebjs-catalog.ts` and friends), so the scan- sees no throwing method on that adapter at all — its `supported ⇒ does not throw` invariant is- vacuously true for those. Baileys is unaffected: its unavailable methods call `this.unsupported(...)`- inline on the adapter. Until the delegated ones are addressed, most of the wwjs column is guarded by- review rather than by the gate.-- New wwjs `not-available` methods should therefore throw **inline on the adapter class**, the way- `subscribeToPresence` does, so the scan can see them — a delegate keeps the code tidy at the cost of- the only automated check this column has.+Three-way comparison of every capability: the **Baileys library** (`@whiskeysockets/baileys`+7.0.0-rc13), the **whatsapp-web.js library** (1.34.7), and what **OpenWA actually exposes** through+its adapter layer and REST API — including which "supported" cells only work because OpenWA patches+the installed library. Coverage is total: all 105 `IWhatsAppEngine` methods (29.4), **all 152+Baileys + 81 whatsapp-web.js library methods** (29.5), all 34 + 31 library events (29.5.4), and all+5 install-time patches (29.3). If it exists upstream or in OpenWA, it has a row here.++## 29.1 How to read this matrix++Statuses used in the tables:++- **✅** — works end-to-end through the OpenWA adapter.+- **✅🔧ⁿ** — works end-to-end, but **only because OpenWA patches the installed library** (patch+ `🔧ⁿ`, see 29.3). On a stock, unpatched install of the library this cell would be broken.+- **❌ gap** — _adapter-gap_: the underlying library HAS the capability; only the OpenWA adapter+ wiring is missing. Fixable in this repo.+- **❌ lib** — _library-limitation_: the underlying library exposes no first-class symbol for the+ operation. Not fixable without raw-proto/fork work or an event-cache hack.+- **OpenWA REST** column — what a caller of the REST API gets: **✅** on any engine session,+ **⚠️ `<engine>` only** when the answer depends on the session's engine (the other engine+ answers HTTP 501), **❌ 501** on both engines.++Two complementary views:++- **29.4 — the OpenWA contract view.** Rows are the 105 `IWhatsAppEngine` methods; use it to see+ what a REST caller gets per engine. Source of truth: `src/engine/engine-capability-matrix.ts`+ (per-cell `evidence` strings cite the exact library `file:symbol` inspected).+- **29.5 — the full engine inventory.** Rows are **every method the installed libraries expose**,+ each mapped to the OpenWA interface method that uses it (or marked unexposed). Use it as the+ implementation backlog: anything `❌ not exposed` with a library symbol behind it is wiring work,+ not research work. 29.5.3 distills the sweetest spot: capabilities **both** libraries already+ have and only OpenWA lacks.++## 29.2 Adapter architecture++OpenWA never calls a WhatsApp library directly from a controller. Every session owns one engine+instance behind the neutral `IWhatsAppEngine` interface (105 methods ++`EngineEventCallbacks`), and all modules go through it:++```mermaid+flowchart LR+ subgraph OpenWA["OpenWA"]+ API["REST API controllers"] --> SVC["Modules / services"]+ SVC --> IF["IWhatsAppEngine - 105 methods"]+ IF --> WA["WwebjsAdapter"]+ IF --> BA["BaileysAdapter"]+ SVC --> STORE["OpenWA-side stores"]+ end+ WA --> WLIB["whatsapp-web.js 1.34.7<br/>+ 4 OpenWA patches"]+ BA --> BLIB["@whiskeysockets/baileys 7.0.0-rc13<br/>+ 1 OpenWA patch"]+ WLIB --> WEB["WhatsApp Web<br/>headless Chromium"]+ BLIB --> WAS["WhatsApp servers<br/>browser-free socket"]+ WA -.->|"not-available"| E["EngineNotSupportedError<br/>HTTP 501"]+ BA -.->|"not-available"| E+```++Key adapter facts:++- **Engine is chosen per session** (`wwjs` is the default, `baileys` the browser-free alternative).+ The REST surface is identical for both; availability differences surface only as 501s, which the+ matrix in 29.4 enumerates.+- **The 501 contract is deliberate.** A capability the engine cannot deliver throws+ `EngineNotSupportedError` (HTTP 501) at the adapter boundary — never a fabricated success. The+ wwjs catalog reads used to silently return `null`/`[]` ("phantom support"); those stubs were+ replaced with explicit 501s, and any future `not-available` row must keep throwing to stay+ verifiable.+- **The two adapters are structured differently.** `WwebjsAdapter` methods are thin forwarders to+ delegate modules (`wwebjs-catalog.ts`, `wwebjs-groups.ts`, …), so their throws live in the+ delegates. `BaileysAdapter` throws inline via `this.unsupported(...)`. The drift gate below+ covers both shapes: besides the `Class.prototype.method.toString()` throw-scan it derives a+ throw registry from the `EngineNotSupportedError('method')` / `this.unsupported('method')`+ literals in every adapter and delegate source file (`engine-parity.spec.ts`), so a throw in a+ delegate is machine-checked exactly like an inline one.+- **Inbound events** flow the other way: each adapter normalizes library events into the neutral+ `EngineEventCallbacks` (`onMessage`, `onMessageAck`, `onGroupEvent`, `onCall`, …), which the+ session module turns into OpenWA webhook events. Which library events are consumed — and which+ are dropped — is listed in 29.5.4.+- **Some REST reads bypass the engine entirely.** `GET …/status` reads are served from+ `StatusStoreService` (fed by inbound ingestion on both engines), so status-read parity holds at+ the API level even where the Baileys adapter cells are `❌ lib`. These rows are marked+ `✅ (store) ‡`.++Three automated gates keep the matrix honest:++```mermaid+flowchart TD+ M["engine-capability-matrix.ts<br/>hand-curated status + evidence"] --> SPEC["engine-parity.spec.ts<br/>matrix keys match interface methods<br/>throw-invariants scan"]+ NM["node_modules<br/>installed engines"] --> SURF["check-upstream-surface.mjs<br/>npm run test:scripts"]+ SNAP["upstream-surface.snapshot.json<br/>reviewed surface"] --> SURF+ SURF -->|"new or removed symbol"| FAIL["fail until reviewed:<br/>expose / defer / record exclusion"]+ ADAPT["src/engine/adapters/*.ts"] --> INV["engine-inventory-parity.spec.ts<br/>29.5 exposure + 29.5.4 event marks"]+ DOC["this document, 29.5"] --> INV+```++`engine-parity.spec.ts` guarantees every interface method has exactly one matrix row (and vice+versa) and checks the throw-invariants it can observe. `check-upstream-surface.mjs` extracts the+installed libraries' public surface (Client/socket methods + events) and fails on any drift from+the reviewed snapshot, so an engine bump can never smuggle an unreviewed capability in. Neither+of those two reads this document — status changes land in the matrix first, then here.++`engine-inventory-parity.spec.ts` is the one gate that **does** read this page, because 29.5's two+right-hand columns are hand-filled and nothing else could see them drift. It asserts that every+symbol marked ✅/⚙️ appears in adapter code rather than only in a comment, that every interface+method named in a ✅ cell is `supported` for that engine in the matrix, and that the ✅ marks in+29.5.4 match the events the adapters actually register. Its limits are deliberate and worth knowing+before trusting a green run: it cannot see **under-mapping** (a ✅ row listing four interface+methods where the symbol really serves eight still passes), it cannot separate a library symbol+from an adapter method of the same name (`logout`), and it cannot see a mapping pointed at the+wrong interface method. Those three remain reader-verified.++## 29.3 Install-time patches OpenWA applies to the libraries++OpenWA ships five exact, self-disabling source transforms over the installed engines. Each runs at+`npm install` (`scripts/postinstall.js`, `--best-effort`) and again in the Docker production stage+(**without** best-effort — dependency drift fails the image build). "Self-disabling" means the+patcher no-ops once the fix is present upstream, and an unrecognized source shape fails loudly+rather than shipping a silently partial patch.++### 29.3.1 The five patches++| # | Patcher | Library target | What it repairs | Stand-down predicate |+| --- | ---------------------------------------------------------- | ------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |+| 🔧¹ | `scripts/patch-wwebjs-201832.js` (+ `wwebjs-201832.patch`) | whatsapp-web.js models | WhatsApp Web 2.3000.x renamed the serialized message-id property `id._serialized` → `id.$1`; 1.34.7 reads the old name in the `Message` constructor and ~40 downstream sites, so message ids, acks, quoted-message resolution and media downloads break. Backports upstream fix #201832 (`Base._normalizeId()`). One known harmless reject on 1.34.7 (a LID-aware `Contact.js` path that does not exist there); any other reject aborts the build. | no-ops once `_normalizeId` exists upstream. Runtime double-check: `src/engine/adapters/wwebjs-backport-check.ts` detects an unpatched install and logs an error naming the fix as the wwjs session starts (`whatsapp-web-js.adapter.ts:430`). It is diagnostic, **not** preventive — startup continues, so a session reaching READY is not evidence the patch landed. |+| 🔧² | `scripts/patch-wwebjs-status.js` | whatsapp-web.js injected status send | Two independent breakages in current WhatsApp Web builds: (1) the `canCheckStatusRankingPosterGating()` helper is gone and its call threw before any status send — now called when present, `false` (pre-gating meaning) when not; (2) `sendStatusMediaMsgAction` changed signature from positional `(msg, mediaUpdate)` to a single options object — adopted from upstream PR #201816. The two edits of the media repair are all-or-nothing. | exact-shape match; unknown shape fails the build. |+| 🔧³ | `scripts/patch-wwebjs-newsletter-preview.js` | whatsapp-web.js `Injected/Utils.js` | Link-preview generation omitted the destination chat, so WhatsApp Web could not select the newsletter preview transport: `getLinkPreview(link)` → `getLinkPreview(link, chat)`. | exact-shape match; unknown shape fails the build. |+| 🔧⁴ | `scripts/patch-wwebjs-ready-sync.js` | whatsapp-web.js readiness pipeline | Two live-observed races: on a warm profile the page can reach `hasSynced=true` before the edge listener attaches (the whole post-auth pipeline silently never runs), and a partial `attachEventListeners` failure was swallowed (message bridge dead while sends still work). Adds an `eventsAttached` completion marker and fires the handler once when the level is already true; double-fire is deduped by the adapter. | exact-shape, one group all-or-nothing; unknown shape fails the build. |+| 🔧⁵ | `scripts/patch-baileys-appstate.js` | Baileys `lib/Socket/chats.js` | `resyncAppState`'s `while (collectionsToHandle.size)` loop: `query()` resolves `undefined` on its own 60s timeout, decoding to `{}`, and every loop exit — including the library's own attempts guard — lives inside `for (const key in decoded)`, which never runs on an empty decode. The loop would burn one 60s query per pass for the life of the socket (~1000 wasted queries/day). The patch adds the missing exit: empty decode → `break`. | exact-shape match; remove once upstream bounds the loop. |++### 29.3.2 Which matrix rows depend on which patch++This is the patch visibility the matrix cells refer to. **No row requires patches on both+engines** — every patch is engine-specific (4 on wwjs, 1 on Baileys).++| Patch | Matrix rows that depend on it |+| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |+| 🔧¹ message-id backport | **The whole wwjs column** (header-marked, not repeated per row): every wwjs cell that sends, receives or resolves a message id. On unpatched 1.34.7 against WhatsApp Web ≥ 2.3000.x, sends return no message object and chat/media reads throw the minified `r: r`. Not row-specific, so the wwjs column header carries `🔧¹`. |+| 🔧² status-send repair | `postTextStatus`, `postImageStatus`, `postVideoStatus`, `postVoiceStatus` — **wwjs cells only**. Stock 1.34.7 throws before any status send on current WhatsApp Web builds. These four rows are ✅ on both engines, but the wwjs side works only because of this patch. |+| 🔧³ newsletter link preview | `sendTextMessage` (and any send carrying a link preview) **to a channel JID** on wwjs. Row-marked on `sendTextMessage` as the common case. |+| 🔧⁴ ready-sync | `initialize` on wwjs (warm-restore readiness race). Row-marked. |+| 🔧⁵ app-state resync bound | No single row — keeps the Baileys socket's app-state resync from spinning (~1000 wasted 60s queries/day). Connection health under **every baileys cell**; the baileys column header carries `🔧⁵`. |++Rows that are ✅ on **both** engines where one side is patch-dependent: `initialize` (🔧⁴ wwjs),+`sendTextMessage` (🔧³ wwjs), `postTextStatus` / `postImageStatus` / `postVideoStatus` /+`postVoiceStatus` (🔧² wwjs). Everything else that is ✅-both runs on stock library code on both+sides.++## 29.4 Full capability matrix — the OpenWA contract view (105 methods)++Legend recap: **✅** supported · **✅🔧ⁿ** supported via OpenWA patch `🔧ⁿ` (29.3) ·+**❌ gap** adapter-gap · **❌ lib** library-limitation. Column headers carry the engine-wide+patch dependencies (🔧¹ message-id backport + 🔧⁴ ready-sync on wwjs; 🔧⁵ app-state bound on+Baileys). The **OpenWA REST** column reads from the caller's side: ✅ works whatever engine the+session runs; ⚠️ depends on the session engine; ❌ 501 on both.++### 29.4.1 Session & connection++| Method | Baileys adapter 🔧⁵ | wwjs adapter 🔧¹ ⁴ | OpenWA REST |+| -------------------- | ------------------- | ------------------ | ----------- |+| `initialize` | ✅ | ✅🔧⁴ | ✅ |+| `disconnect` | ✅ | ✅ | ✅ |+| `logout` | ✅ | ✅ | ✅ |+| `destroy` | ✅ | ✅ | ✅ |+| `forceDestroy` | ✅ | ✅ | ✅ |+| `getQRCode` | ✅ | ✅ | ✅ |+| `requestPairingCode` | ✅ | ✅ | ✅ |+| `getStatus` | ✅ | ✅ | ✅ |++### 29.4.2 Sending messages++| Method | Baileys adapter 🔧⁵ | wwjs adapter 🔧¹ ⁴ | OpenWA REST |+| --------------------- | ------------------- | ------------------ | --------------- |+| `sendTextMessage` | ✅ | ✅🔧³ | ✅ |+| `sendImageMessage` | ✅ | ✅ | ✅ |+| `sendVideoMessage` | ✅ | ✅ | ✅ |+| `sendAudioMessage` | ✅ | ✅ | ✅ |+| `sendDocumentMessage` | ✅ | ✅ | ✅ |+| `sendStickerMessage` | ✅ | ✅ | ✅ |+| `sendContactMessage` | ✅ | ✅ | ✅ |+| `sendLocationMessage` | ✅ | ✅ | ✅ |+| `sendPollMessage` | ✅ | ✅ | ✅ |+| `sendProduct` | ✅ | ❌ lib | ⚠️ baileys only |+| `sendCatalog` | ❌ lib | ❌ lib | ❌ 501 |+| `replyToMessage` | ✅ | ✅ | ✅ |+| `forwardMessage` | ✅ | ✅ | ✅ |+| `sendChatState` | ✅ | ✅ | ✅ |+| `sendSeen` | ✅ | ✅ | ✅ |++### 29.4.3 Message management++| Method | Baileys adapter 🔧⁵ | wwjs adapter 🔧¹ ⁴ | OpenWA REST |+| --------------------- | ------------------- | ------------------ | ------------ |+| `editMessage` | ✅ | ✅ | ✅ |+| `deleteMessage` | ✅ | ✅ | ✅ |+| `reactToMessage` | ✅ | ✅ | ✅ |+| `starMessage` | ✅ | ✅ | ✅ |+| `pinMessage` | ✅ | ✅ | ✅ |+| `unpinMessage` | ✅ | ✅ | ✅ |+| `getMessageReactions` | ❌ lib | ✅ | ⚠️ wwjs only |+| `votePoll` | ❌ lib | ✅ | ⚠️ wwjs only |++### 29.4.4 Chats++| Method | Baileys adapter 🔧⁵ | wwjs adapter 🔧¹ ⁴ | OpenWA REST |+| ------------------- | ------------------- | ------------------ | ------------ |+| `getChats` | ✅ | ✅ | ✅ |+| `getChatHistory` | ❌ lib | ✅ | ⚠️ wwjs only |+| `archiveChat` | ✅ | ✅ | ✅ |+| `clearChatMessages` | ✅ | ✅ | ✅ |+| `deleteChat` | ✅ | ✅ | ✅ |+| `markUnread` | ✅ | ✅ | ✅ |++### 29.4.5 Contacts++| Method | Baileys adapter 🔧⁵ | wwjs adapter 🔧¹ ⁴ | OpenWA REST |+| --------------------- | ------------------- | ------------------ | ----------- |+| `getContacts` | ✅ | ✅ | ✅ |+| `getContactById` | ✅ | ✅ | ✅ |+| `upsertContact` | ✅ | ✅ | ✅ |+| `deleteContact` | ✅ | ✅ | ✅ |+| `blockContact` | ✅ | ✅ | ✅ |+| `unblockContact` | ✅ | ✅ | ✅ |+| `getBlockedContacts` | ✅ | ✅ | ✅ |+| `checkNumberExists` | ✅ | ✅ | ✅ |+| `getNumberId` | ✅ | ✅ | ✅ |+| `getPhoneNumber` | ✅ | ✅ | ✅ |+| `getPushName` | ✅ | ✅ | ✅ |+| `resolveContactPhone` | ✅ | ✅ | ✅ |+| `getProfilePicture` | ✅ | ✅ | ✅ |++### 29.4.6 Groups++| Method | Baileys adapter 🔧⁵ | wwjs adapter 🔧¹ ⁴ | OpenWA REST |+| -------------------------------- | ------------------- | ------------------ | --------------- |+| `createGroup` | ✅ | ✅ | ✅ |+| `getGroups` | ✅ | ✅ | ✅ |+| `getGroupInfo` | ✅ | ✅ | ✅ |+| `addParticipants` | ✅ | ✅ | ✅ |+| `removeParticipants` | ✅ | ✅ | ✅ |+| `promoteParticipants` | ✅ | ✅ | ✅ |+| `demoteParticipants` | ✅ | ✅ | ✅ |+| `approveGroupMembershipRequests` | ✅ | ✅ | ✅ |+| `rejectGroupMembershipRequests` | ✅ | ✅ | ✅ |+| `getGroupMembershipRequests` | ✅ | ✅ | ✅ |+| `leaveGroup` | ✅ | ✅ | ✅ |+| `getGroupInviteCode` | ✅ | ✅ | ✅ |+| `joinGroupViaInviteCode` | ✅ | ✅ | ✅ |+| `revokeGroupInviteCode` | ✅ | ✅ | ✅ |+| `getGroupJoinInfo` | ✅ | ✅ | ✅ |+| `setGroupSubject` | ✅ | ✅ | ✅ |+| `setGroupDescription` | ✅ | ✅ | ✅ |+| `setGroupPicture` | ✅ | ✅ | ✅ |+| `deleteGroupPicture` | ✅ | ✅ | ✅ |+| `setGroupMessagesAdminsOnly` | ✅ | ✅ | ✅ |+| `setGroupInfoAdminsOnly` | ✅ | ✅ | ✅ |+| `setGroupMemberAddMode` | ✅ | ✅ | ✅ |+| `setGroupEphemeral` | ✅ | ❌ lib | ⚠️ baileys only |++### 29.4.7 Channels++| Method | Baileys adapter 🔧⁵ | wwjs adapter 🔧¹ ⁴ | OpenWA REST |+| ------------------------ | ------------------- | ------------------ | --------------- |+| `createChannel` | ✅ | ✅ | ✅ |+| `deleteChannel` | ✅ | ✅ | ✅ |+| `muteChannel` | ✅ | ✅ | ✅ |+| `getChannelById` | ✅ | ✅ | ✅ |+| `getChannelMessages` | ❌ gap | ✅ | ⚠️ wwjs only |+| `getSubscribedChannels` | ❌ lib | ✅ | ⚠️ wwjs only |+| `subscribeToChannel` | ✅ | ❌ gap | ⚠️ baileys only |+| `unsubscribeFromChannel` | ✅ | ✅ | ✅ |++### 29.4.8 Status / stories++| Method | Baileys adapter 🔧⁵ | wwjs adapter 🔧¹ ⁴ | OpenWA REST |+| -------------------- | ------------------- | ------------------ | ------------ |+| `postTextStatus` | ✅ | ✅🔧² | ✅ |+| `postImageStatus` | ✅ | ✅🔧² | ✅ |+| `postVideoStatus` | ✅ | ✅🔧² | ✅ |+| `postVoiceStatus` | ✅ | ✅🔧² | ✅ |+| `deleteStatus` | ✅ | ✅ | ✅ |+| `getContactStatus` | ❌ lib | ✅ | ✅ (store) ‡ |+| `getContactStatuses` | ❌ lib | ✅ | ✅ (store) ‡ |++‡ Status **reads** are served from `StatusStoreService` (fed by inbound status ingestion on both+engines), not by calling the engine — so the REST API is engine-neutral here even though the+Baileys adapter cell is, correctly, `❌ lib`. Calling the Baileys engine method directly still+answers 501.++### 29.4.9 Labels (WA Business)++| Method | Baileys adapter 🔧⁵ | wwjs adapter 🔧¹ ⁴ | OpenWA REST |+| --------------------- | ------------------- | ------------------ | --------------- |+| `getLabels` | ❌ lib | ✅ | ⚠️ wwjs only |+| `getLabelById` | ❌ lib | ✅ | ⚠️ wwjs only |+| `getChatLabels` | ❌ lib | ✅ | ⚠️ wwjs only |+| `getChatsByLabel` | ❌ lib | ✅ | ⚠️ wwjs only |+| `addLabelToChat` | ✅ | ✅ | ✅ |+| `removeLabelFromChat` | ✅ | ✅ | ✅ |+| `upsertLabel` | ✅ | ❌ lib | ⚠️ baileys only |+| `deleteLabel` | ✅ | ❌ lib | ⚠️ baileys only |++### 29.4.10 Catalog & products (WA Business)++| Method | Baileys adapter 🔧⁵ | wwjs adapter 🔧¹ ⁴ | OpenWA REST |+| ------------- | ------------------- | ------------------ | --------------- |+| `getCatalog` | ✅ | ❌ lib | ⚠️ baileys only |+| `getProducts` | ✅ | ❌ lib | ⚠️ baileys only |+| `getProduct` | ✅ | ❌ lib | ⚠️ baileys only |++### 29.4.11 Own profile & presence++| Method | Baileys adapter 🔧⁵ | wwjs adapter 🔧¹ ⁴ | OpenWA REST |+| ------------------- | ------------------- | ------------------ | ----------- |+| `setProfileName` | ✅ | ✅ | ✅ |+| `setProfilePicture` | ✅ | ✅ | ✅ |+| `setProfileStatus` | ✅ | ✅ | ✅ |+| `setOnlinePresence` | ✅ | ✅ | ✅ |++### 29.4.12 Presence & calls++| Method | Baileys adapter 🔧⁵ | wwjs adapter 🔧¹ ⁴ | OpenWA REST |+| --------------------- | ------------------- | ------------------ | --------------- |+| `subscribeToPresence` | ✅ | ❌ lib | ⚠️ baileys only |+| `rejectCall` | ✅ | ✅ | ✅ |++**Totals:** 105 methods → 210 adapter cells: **188 ✅, 22 ❌** (2 adapter-gaps, 20+library-limitations, 0 uncertain) across 21 methods. From the REST caller's side: **86** methods+work on any engine (84 fully supported + 2 store-backed status reads), **9** are Baileys-only,+**9** are wwjs-only (the 2 store-backed rows excluded), **1** (`sendCatalog`) is 501 on both.++## 29.5 Full engine method inventory — every library method, mapped to OpenWA++This is the backlog view: **all 152 Baileys socket methods and all 81 whatsapp-web.js Client+methods**, each marked with where OpenWA uses it. The symbol list itself is gated:+`check-upstream-surface.mjs` extracts the installed libraries' public surface and fails on any+drift from `scripts/upstream-surface.snapshot.json`, so a library bump forces a review of this+section. The exposure mapping is hand-maintained against the adapter sources+(`src/engine/adapters/*.ts`), and partly gated: `engine-inventory-parity.spec.ts` fails when a+✅/⚙️ symbol exists only in a comment, when a ✅ cell names a method the matrix calls unavailable,+or when a 29.5.4 ✅ has no listener behind it. It does **not** check that a ✅ row lists every+interface method the symbol serves — see 29.2 for what stays reader-verified.++Exposure column values:++- **✅ `<InterfaceMethod>`** — the adapter wires this library symbol inside these+ `IWhatsAppEngine` methods.+- **⚙️ internal wiring** — referenced in `src/` but not inside any interface-method body (event+ wiring, health probes, helpers).+- **🔩 plumbing** — E2EE/socket/media-transport internals that are adapter machinery, not user+ capabilities; correctly never exposed.+- **❌ not exposed** — a real library capability with no OpenWA path. **This is the implementation+ backlog.**++### 29.5.1 Baileys — 152 socket methods++**Messaging & media** (19)++| Library method | OpenWA exposure |+| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |+| `getMediaHost` | 🔩 plumbing |+| `readMessages` | ✅ `sendSeen` |+| `refreshMediaConn` | 🔩 plumbing |+| `relayMessage` | 🔩 plumbing |+| `requestPlaceholderResend` | 🔩 plumbing |+| `sendMessage` | ✅ `sendTextMessage`, `sendImageMessage`, `sendVideoMessage`, `sendAudioMessage`, `sendDocumentMessage`, `sendStickerMessage`, `sendLocationMessage`, `sendContactMessage`, `sendPollMessage`, `sendProduct`, `replyToMessage`, `forwardMessage`, `reactToMessage`, `editMessage`, `deleteMessage`, `pinMessage`, `unpinMessage`, `postTextStatus`, `postImageStatus`, `postVideoStatus`, `postVoiceStatus`, `deleteStatus` |+| `sendMessageAck` | 🔩 plumbing |+| `sendNode` | 🔩 plumbing |+| `sendPeerDataOperationMessage` | 🔩 plumbing |+| `sendPresenceUpdate` | ✅ `sendChatState`, `setOnlinePresence` |+| `sendRawMessage` | 🔩 plumbing |+| `sendReceipt` | 🔩 plumbing |+| `sendReceipts` | 🔩 plumbing |+| `sendRetryRequest` | 🔩 plumbing |+| `sendUnifiedSession` | 🔩 plumbing |+| `sendWAMBuffer` | 🔩 plumbing |+| `updateMediaMessage` | ⚙️ internal wiring |+| `upsertMessage` | 🔩 plumbing |+| `waitForMessage` | 🔩 plumbing |++**Groups** (19)++| Library method | OpenWA exposure |+| -------------------------------- | --------------------------------------------------------------------------------------- |+| `groupAcceptInvite` | ✅ `joinGroupViaInviteCode` |+| `groupAcceptInviteV4` | ❌ **not exposed** |+| `groupCreate` | ✅ `createGroup` |+| `groupFetchAllParticipating` | ✅ `getGroups` |+| `groupGetInviteInfo` | ✅ `getGroupJoinInfo` |+| `groupInviteCode` | ✅ `getGroupInviteCode` |+| `groupJoinApprovalMode` | ❌ **not exposed** |+| `groupLeave` | ✅ `leaveGroup` |+| `groupMemberAddMode` | ✅ `setGroupMemberAddMode` |+| `groupMetadata` | ✅ `getGroupInfo`, `getGroups` |+| `groupParticipantsUpdate` | ✅ `addParticipants`, `removeParticipants`, `promoteParticipants`, `demoteParticipants` |+| `groupRequestParticipantsList` | ✅ `getGroupMembershipRequests` |+| `groupRequestParticipantsUpdate` | ✅ `approveGroupMembershipRequests`, `rejectGroupMembershipRequests` |+| `groupRevokeInvite` | ✅ `revokeGroupInviteCode` |+| `groupRevokeInviteV4` | ❌ **not exposed** |+| `groupSettingUpdate` | ✅ `setGroupMessagesAdminsOnly`, `setGroupInfoAdminsOnly`, `setGroupMemberAddMode` |+| `groupToggleEphemeral` | ✅ `setGroupEphemeral` |+| `groupUpdateDescription` | ✅ `setGroupDescription` |+| `groupUpdateSubject` | ✅ `setGroupSubject` |++**Communities** (23) — the largest single gap: an entire WhatsApp feature area (groups-of-groups)+with zero OpenWA surface. Baileys-only; whatsapp-web.js has no community API at all.++| Library method | OpenWA exposure |+| ------------------------------------ | ------------------ |+| `communityAcceptInvite` | ❌ **not exposed** |+| `communityAcceptInviteV4` | ❌ **not exposed** |+| `communityCreate` | ❌ **not exposed** |+| `communityCreateGroup` | ❌ **not exposed** |+| `communityFetchAllParticipating` | ❌ **not exposed** |+| `communityFetchLinkedGroups` | ❌ **not exposed** |+| `communityGetInviteInfo` | ❌ **not exposed** |+| `communityInviteCode` | ❌ **not exposed** |+| `communityJoinApprovalMode` | ❌ **not exposed** |+| `communityLeave` | ❌ **not exposed** |+| `communityLinkGroup` | ❌ **not exposed** |+| `communityMemberAddMode` | ❌ **not exposed** |+| `communityMetadata` | ❌ **not exposed** |+| `communityParticipantsUpdate` | ❌ **not exposed** |+| `communityRequestParticipantsList` | ❌ **not exposed** |+| `communityRequestParticipantsUpdate` | ❌ **not exposed** |+| `communityRevokeInvite` | ❌ **not exposed** |+| `communityRevokeInviteV4` | ❌ **not exposed** |+| `communitySettingUpdate` | ❌ **not exposed** |+| `communityToggleEphemeral` | ❌ **not exposed** |+| `communityUnlinkGroup` | ❌ **not exposed** |+| `communityUpdateDescription` | ❌ **not exposed** |+| `communityUpdateSubject` | ❌ **not exposed** |++**Newsletters (channels)** (19)++| Library method | OpenWA exposure |+| ----------------------------- | -------------------------------------------- |+| `newsletterAdminCount` | ❌ **not exposed** |+| `newsletterChangeOwner` | ❌ **not exposed** |+| `newsletterCreate` | ✅ `createChannel` |+| `newsletterDelete` | ✅ `deleteChannel` |+| `newsletterDemote` | ❌ **not exposed** |+| `newsletterFetchMessages` | ❌ **not exposed** — adapter-gap #1 (29.6.1) |+| `newsletterFollow` | ✅ `subscribeToChannel` |+| `newsletterMetadata` | ✅ `getChannelById`, `subscribeToChannel` |+| `newsletterMute` | ✅ `muteChannel` |+| `newsletterReactMessage` | ❌ **not exposed** |+| `newsletterRemovePicture` | ❌ **not exposed** |+| `newsletterSubscribers` | ❌ **not exposed** |+| `newsletterUnfollow` | ✅ `unsubscribeFromChannel` |+| `newsletterUnmute` | ✅ `muteChannel` |+| `newsletterUpdate` | ❌ **not exposed** |+| `newsletterUpdateDescription` | ❌ **not exposed** |+| `newsletterUpdateName` | ❌ **not exposed** |+| `newsletterUpdatePicture` | ❌ **not exposed** |+| `subscribeNewsletterUpdates` | ❌ **not exposed** |++**Business & catalog** (12)++| Library method | OpenWA exposure |+| ----------------------- | -------------------------------------------------------------------------------------------------- |+| `addOrEditQuickReply` | ❌ **not exposed** |+| `fetchMessageHistory` | ❌ **not exposed** |+| `getBotListV2` | ❌ **not exposed** |+| `getBusinessProfile` | ❌ **not exposed** |+| `getCatalog` | ✅ `getProducts`, `getProduct` — the paged product walk, not the interface method of the same name |+| `getCollections` | ✅ `getCatalog` |+| `getOrderDetails` | ❌ **not exposed** |+| `productCreate` | ❌ **not exposed** |+| `productDelete` | ❌ **not exposed** |+| `productUpdate` | ❌ **not exposed** |+| `removeQuickReply` | ❌ **not exposed** |+| `updateBussinesProfile` | ❌ **not exposed** |++**Labels** (6)++| Library method | OpenWA exposure |+| -------------------- | ------------------------------- |+| `addChatLabel` | ✅ `addLabelToChat` |+| `addLabel` | ✅ `upsertLabel`, `deleteLabel` |+| `addMessageLabel` | ❌ **not exposed** |+| `removeChatLabel` | ✅ `removeLabelFromChat` |+| `removeMessageLabel` | ❌ **not exposed** |+| `updateMemberLabel` | ❌ **not exposed** |++**Privacy & account settings** (13)++| Library method | OpenWA exposure |+| ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |+| `fetchPrivacySettings` | ❌ **not exposed** — never called by the adapter; the library reaches it internally from `readMessages` (`sendSeen`), and its raw TypeError on an unanswered query is what forces the deadline bound |+| `issuePrivacyTokens` | ❌ **not exposed** |+| `updateBlockStatus` | ✅ `blockContact`, `unblockContact` |+| `updateCallPrivacy` | ❌ **not exposed** |+| `updateDefaultDisappearingMode` | ❌ **not exposed** |+| `updateDisableLinkPreviewsPrivacy` | ❌ **not exposed** |+| `updateGroupsAddPrivacy` | ❌ **not exposed** |+| `updateLastSeenPrivacy` | ❌ **not exposed** |+| `updateMessagesPrivacy` | ❌ **not exposed** |+| `updateOnlinePrivacy` | ❌ **not exposed** |+| `updateProfilePicturePrivacy` | ❌ **not exposed** |+| `updateReadReceiptsPrivacy` | ❌ **not exposed** |+| `updateStatusPrivacy` | ❌ **not exposed** |++**Queries** (8)++| Library method | OpenWA exposure |+| ------------------------------ | ----------------------- |+| `executeUSyncQuery` | ❌ **not exposed** |+| `fetchAccountReachoutTimelock` | ⚙️ internal wiring |+| `fetchBlocklist` | ✅ `getBlockedContacts` |+| `fetchDisappearingDuration` | ❌ **not exposed** |+| `fetchNewChatMessageCap` | ❌ **not exposed** |+| `fetchStatus` | ❌ **not exposed** |+| `getUSyncDevices` | ❌ **not exposed** |+| `onWhatsApp` | ✅ `getNumberId` |++**Profile, contacts & presence** (12)++| Library method | OpenWA exposure |+| ------------------------ | ----------------------------------------- |+| `addOrEditContact` | ✅ `upsertContact` |+| `createCallLink` | ❌ **not exposed** |+| `presenceSubscribe` | ✅ `subscribeToPresence` |+| `removeContact` | ✅ `deleteContact` |+| `removeCoverPhoto` | ❌ **not exposed** |+| `removeProfilePicture` | ✅ `deleteGroupPicture` |+| `star` | ✅ `starMessage` |+| `updateCoverPhoto` | ❌ **not exposed** |+| `updateProfileName` | ✅ `setProfileName` |+| `updateProfilePicture` | ✅ `setProfilePicture`, `setGroupPicture` |+| `updateProfileStatus` | ✅ `setProfileStatus` |+| `updateServerTimeOffset` | 🔩 plumbing |++**Socket, session & plumbing** (21)++| Library method | OpenWA exposure |+| --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |+| `appPatch` | 🔩 plumbing |+| `assertSessions` | 🔩 plumbing |+| `chatModify` | ✅ `upsertContact`, `markUnread`, `clearChatMessages`, `archiveChat`, `deleteChat`, `deleteMessage`, `starMessage` |+| `cleanDirtyBits` | 🔩 plumbing |+| `createParticipantNodes` | 🔩 plumbing |+| `digestKeyBundle` | 🔩 plumbing |+| `end` | ⚙️ internal wiring (socket teardown) |+| `generateMessageTag` | 🔩 plumbing |+| `logout` | ❌ **not exposed** — deliberately bypassed: it resolves on a socket write flush, not an IQ ack, so the unlink uses a raw `remove-companion-device` IQ via `query()` instead |+| `onUnexpectedError` | 🔩 plumbing |+| `profilePictureUrl` | ✅ `getProfilePicture` |+| `query` | ⚙️ internal transport (deadline-bounded iq queries inside read methods) |+| `registerSocketEndHandler` | 🔩 plumbing |+| `rejectCall` | ✅ `rejectCall`, `disconnect` |+| `requestPairingCode` | ✅ `requestPairingCode` |+| `resyncAppState` | ⚙️ internal wiring |+| `rotateSignedPreKey` | 🔩 plumbing |+| `uploadPreKeys` | 🔩 plumbing |+| `uploadPreKeysToServerIfRequired` | 🔩 plumbing |+| `waitForConnectionUpdate` | 🔩 plumbing |+| `waitForSocketOpen` | 🔩 plumbing |++### 29.5.2 whatsapp-web.js — 81 Client methods++**Session & connection** (16)++| Library method | OpenWA exposure |+| -------------------------- | ------------------------------------------------------------------------------------------------- |+| `cancelPairingCode` | ❌ **not exposed** — session/transport setting, not a WhatsApp capability |+| `constructor` | — class plumbing (not a capability) |+| `destroy` | ✅ `initialize`, `destroy`, `forceDestroy`, `disconnect`, `logout` |+| `getState` | ⚙️ internal wiring |+| `getWWebVersion` | ❌ **not exposed** — the build is pinned from `wa-web-version.ts`, never read back off the client |+| `initialize` | ✅ `initialize` |+| `logout` | ✅ `initialize`, `logout`, `disconnect` |+| `on` | ⚙️ EventEmitter surface — the adapter's event wiring (29.5.4) |+| `requestPairingCode` | ✅ `requestPairingCode` |+| `resetState` | ❌ **not exposed** — session/transport setting, not a WhatsApp capability |+| `setAutoDownloadAudio` | ❌ **not exposed** — session/transport setting, not a WhatsApp capability |+| `setAutoDownloadDocuments` | ❌ **not exposed** — session/transport setting, not a WhatsApp capability |+| `setAutoDownloadPhotos` | ❌ **not exposed** — session/transport setting, not a WhatsApp capability |+| `setAutoDownloadVideos` | ❌ **not exposed** — session/transport setting, not a WhatsApp capability |+| `setBackgroundSync` | ❌ **not exposed** — session/transport setting, not a WhatsApp capability |+| `syncHistory` | ❌ **not exposed** — session/transport setting, not a WhatsApp capability |++**Messages** (8)++| Library method | OpenWA exposure |+| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |+| `getMessageById` | ❌ **not exposed** |+| `getPinnedMessages` | ❌ **not exposed** |+| `getPollVotes` | ❌ **not exposed** |+| `searchMessages` | ❌ **not exposed** |+| `sendMessage` | ✅ `sendTextMessage`, `sendImageMessage`, `sendVideoMessage`, `sendAudioMessage`, `sendDocumentMessage`, `sendStickerMessage`, `sendLocationMessage`, `sendContactMessage`, `sendPollMessage`, `postTextStatus`, `postImageStatus`, `postVideoStatus`, `postVoiceStatus` |+| `sendReaction` | ❌ **not exposed** |+| `sendResponseToScheduledEvent` | ❌ **not exposed** |+| `sendSeen` | ✅ `sendSeen`, `clearChatMessages` |++**Chats** (9)++| Library method | OpenWA exposure |+| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |+| `archiveChat` | ✅ `archiveChat`, `clearChatMessages` |+| `getChatById` | ✅ `muteChannel`, `sendSeen`, `clearChatMessages`, `markUnread`, `deleteChat`, `sendChatState`, `getGroups`, `getGroupInfo`, `addParticipants`, `leaveGroup`, `setGroupSubject`, `setGroupDescription`, `getGroupInviteCode`, `revokeGroupInviteCode`, `getChatsByLabel`, `getChatLabels`, `replyToMessage`, `forwardMessage`, `reactToMessage`, `getMessageReactions`, `getChatHistory`, `deleteMessage`, `editMessage` |+| `getChats` | ✅ `getChats`, `getGroups` |+| `markChatUnread` | ❌ **not exposed** |+| `muteChat` | ❌ **not exposed** |+| `pinChat` | ❌ **not exposed** |+| `unarchiveChat` | ✅ `archiveChat` |+| `unmuteChat` | ❌ **not exposed** |+| `unpinChat` | ❌ **not exposed** |++**Groups** (7)++| Library method | OpenWA exposure |+| -------------------------------- | ----------------------------------- |+| `acceptInvite` | ✅ `joinGroupViaInviteCode` |+| `approveGroupMembershipRequests` | ✅ `approveGroupMembershipRequests` |+| `createGroup` | ✅ `createGroup` |+| `getCommonGroups` | ❌ **not exposed** |+| `getGroupMembershipRequests` | ✅ `getGroupMembershipRequests` |+| `getInviteInfo` | ✅ `getGroupJoinInfo` |+| `rejectGroupMembershipRequests` | ✅ `rejectGroupMembershipRequests` |++**Channels** (12)++| Library method | OpenWA exposure |+| -------------------------- | ---------------------------------------------------------------------------------------------------- |+| `acceptChannelAdminInvite` | ❌ **not exposed** |+| `createChannel` | ✅ `createChannel` |+| `deleteChannel` | ✅ `deleteChannel`, `deleteChat` |+| `demoteChannelAdmin` | ❌ **not exposed** |+| `getChannelByInviteCode` | ❌ **not exposed** — the invite→channel bridge adapter-gap #2 needs (29.6.2) |+| `getChannels` | ✅ `getSubscribedChannels`, `getChannelMessages` |+| `revokeChannelAdminInvite` | ❌ **not exposed** |+| `searchChannels` | ❌ **not exposed** |+| `sendChannelAdminInvite` | ❌ **not exposed** |+| `subscribeToChannel` | ❌ **not exposed** — adapter-gap #2; the delegate throws pending a verified two-step wiring (29.6.2) |+| `transferChannelOwnership` | ❌ **not exposed** |+| `unsubscribeFromChannel` | ✅ `unsubscribeFromChannel` |++**Labels** (5)++| Library method | OpenWA exposure |+| ------------------- | ------------------------------------------ |+| `addOrRemoveLabels` | ✅ `addLabelToChat`, `removeLabelFromChat` |+| `getChatLabels` | ✅ `getChatLabels` |+| `getChatsByLabelId` | ✅ `getChatsByLabel` |+| `getLabelById` | ✅ `getLabelById`, `getChatsByLabel` |+| `getLabels` | ✅ `getLabels`, `getChatLabels` |++**Status & broadcasts** (3)++| Library method | OpenWA exposure |+| --------------------- | ----------------------- |+| `getBroadcastById` | ✅ `getContactStatus` |+| `getBroadcasts` | ✅ `getContactStatuses` |+| `revokeStatusMessage` | ✅ `deleteStatus` |++**Contacts & numbers** (11)++| Library method | OpenWA exposure |+| ------------------------------ | ----------------------------------------------------- |+| `deleteAddressbookContact` | ✅ `deleteContact` |+| `getBlockedContacts` | ✅ `getBlockedContacts` |+| `getContactById` | ✅ `getContactById`, `blockContact`, `unblockContact` |+| `getContactDeviceCount` | ❌ **not exposed** |+| `getContactLidAndPhone` | ✅ `resolveContactPhone` |+| `getContacts` | ✅ `getContacts` |+| `getCountryCode` | ❌ **not exposed** |+| `getFormattedNumber` | ❌ **not exposed** |+| `getNumberId` | ✅ `checkNumberExists`, `getNumberId` |+| `isRegisteredUser` | ❌ **not exposed** |+| `saveOrEditAddressbookContact` | ✅ `upsertContact` |++**Business** (2)++| Library method | OpenWA exposure |+| ----------------------- | ------------------ |+| `addOrEditCustomerNote` | ❌ **not exposed** |+| `getCustomerNote` | ❌ **not exposed** |++**Profile & presence** (7)++| Library method | OpenWA exposure |+| ------------------------- | ----------------------------------------- |+| `deleteProfilePicture` | ❌ **not exposed** |+| `getProfilePicUrl` | ✅ `getProfilePicture` |+| `sendPresenceAvailable` | ✅ `setOnlinePresence` |+| `sendPresenceUnavailable` | ✅ `setOnlinePresence` |+| `setDisplayName` | ✅ `setProfileName` |+| `setProfilePicture` | ✅ `setProfilePicture`, `setGroupPicture` |+| `setStatus` | ✅ `setProfileStatus` |++**Misc** (1)++| Library method | OpenWA exposure |+| ---------------- | ------------------ |+| `createCallLink` | ❌ **not exposed** |++### 29.5.3 Supported by BOTH libraries — missing only in OpenWA++The highest-value backlog: capabilities with first-class symbols on **both** engines, so a single+new `IWhatsAppEngine` method wires both adapters at once. All cross-checked against the installed+`.d.ts` files.++| Capability | Baileys symbol | wwjs symbol | Note |+| -------------------------- | -------------------------------------------------------- | ----------------------------------- | --------------------------------------------------------------------- |+| Chat mute / unmute | `chatModify({mute})` (`Types/Chat.d.ts:72`) | `muteChat` / `unmuteChat` | the adapter already drives `chatModify` for archive/clear/star/delete |+| Chat pin / unpin | `chatModify({pin})` (`Types/Chat.d.ts:69`) | `pinChat` / `unpinChat` | chat-level pin — distinct from `pinMessage` (message-level) |+| Create call link | `createCallLink` (`Socket/chats.d.ts:17`) | `createCallLink` (`index.d.ts:342`) | identical shape on both |+| Delete own profile picture | `removeProfilePicture(ownJid)` (`Socket/groups.d.ts:83`) | `deleteProfilePicture` | the Baileys symbol is already wired for `deleteGroupPicture` |+| Channel admin demote | `newsletterDemote` (`Socket/newsletter.d.ts:25`) | `demoteChannelAdmin` | pair with the ❌-exposed invite flows below |+| Channel ownership transfer | `newsletterChangeOwner` (`Socket/newsletter.d.ts:24`) | `transferChannelOwnership` | |++Near-misses (both libraries have the area, but the symbol sets only partially overlap — still+worth an interface method): **channel admin invites** (wwjs+`sendChannelAdminInvite`/`acceptChannelAdminInvite`/`revokeChannelAdminInvite`; Baileys has no+invite-symbol counterpart), **message search** (wwjs `searchMessages`; Baileys has no server-side+search — would be store-backed), **poll-vote read** (wwjs `getPollVotes`; Baileys inbound-only via+`decryptPollVote`).++### 29.5.4 Events inventory — all 34 Baileys + 31 wwjs events++OpenWA consumes events by normalizing them into `EngineEventCallbacks`; anything else is dropped.+"Consumed" below means referenced by the adapter code.++**Baileys (34):**++| Event | OpenWA | | Event | OpenWA |+| --------------------------- | --------------------------------------------------- | --- | -------------------------------- | ------------------------------- |+| `messages.upsert` | ✅ | | `chats.lock` | ❌ |+| `messages.update` | ✅ | | `message-capping.update` | ❌ |+| `messages.reaction` | ❌ — inbound reactions arrive via `messages.upsert` | | `message-receipt.update` | ❌ |+| `messages.delete` | ❌ candidate (delete-for-me webhook) | | `messages.media-update` | ❌ |+| `messaging-history.set` | ✅ | | `messaging-history.status` | ❌ |+| `chats.upsert` | ✅ | | `newsletter-participants.update` | ❌ |+| `chats.update` | ✅ | | `newsletter-settings.update` | ❌ |+| `chats.delete` | ❌ | | `newsletter.reaction` | ❌ |+| `contacts.upsert` | ✅ | | `newsletter.view` | ❌ |+| `contacts.update` | ✅ | | `settings.update` | ❌ |+| `groups.update` | ✅ | | `blocklist.set` | ❌ |+| `groups.upsert` | ❌ | | `blocklist.update` | ❌ |+| `group-participants.update` | ✅ | | `labels.association` | ❌ candidate (label-read cache) |+| `group.join-request` | ✅ | | `labels.edit` | ❌ candidate (label-read cache) |+| `group.member-tag.update` | ❌ | | `lid-mapping.update` | ✅ |+| `call` | ✅ | | `presence.update` | ✅ |+| `connection.update` | ✅ | | `creds.update` | ✅ |++**whatsapp-web.js (31):**++| Event | OpenWA | | Event | OpenWA |+| --------------------------- | ------------ | --- | ---------------------- | ------------------------------------------------------------------------------- |+| `message` | ✅ | | `change_battery` | ❌ |+| `message_create` | ✅ | | `change_state` | ❌ |+| `message_ack` | ✅ | | `chat_archived` | ❌ candidate |+| `message_edit` | ✅ | | `chat_removed` | ❌ |+| `message_reaction` | ✅ | | `contact_changed` | ❌ |+| `message_revoke_everyone` | ✅ | | `group_admin_changed` | ❌ |+| `message_revoke_me` | ❌ candidate | | `loading_screen` | ❌ |+| `message_ciphertext` | ❌ | | `media_uploaded` | ❌ |+| `message_ciphertext_failed` | ❌ | | `remote_session_saved` | ❌ |+| `call` | ✅ | | `unread_count` | ❌ candidate |+| `qr` | ✅ | | `vote_update` | ❌ candidate (poll-vote webhook) |+| `ready` | ✅ | | `authenticated` | ✅ |+| `auth_failure` | ✅ | | `code` | ❌ — the pairing code is the return value of `requestPairingCode`, not an event |+| `disconnected` | ✅ | | `group_join` | ✅ |+| `group_leave` | ✅ | | `group_update` | ✅ |+| `group_membership_request` | ✅ | | | |++## 29.6 The 22 not-available cells in detail++Every ❌ in 29.4, with the exact library symbol inspected (full evidence strings:+`engine-capability-matrix.ts`). All of these throw `EngineNotSupportedError` → HTTP 501 at the+adapter boundary — none silently stubs.++### 29.6.1 Baileys adapter (12 cells)++| Method | Cause | What's missing (evidence) |+| ----------------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |+| `getChannelMessages` | gap | `sock.newsletterFetchMessages(jid,count,since,after)` (`Socket/newsletter.d.ts:19`) returns the raw `BinaryNode` of `<message_updates>` (`newsletter.js:144`); the fetch is one line, but no library parser maps `BinaryNode`→`ChannelMessage`, and a hand-written walk can't be verified without a live session. The one remaining Baileys adapter-gap. |+| `getSubscribedChannels` | lib | No enumerate-subscribed-newsletters query; 18 of the 19 `Socket/newsletter.d.ts` members address a single newsletter by jid/invite key (the 19th creates one). The `newsletter` event surfaces jids only incrementally. |+| `getLabels` | lib | No label read symbol anywhere in `lib/**/*.d.ts`; `Types/Label.d.ts` is types-only, `chats.d.ts:69-73` exposes writes only. Labels arrive only via app-state sync (`messaging-history.set`) — a cache hack, not a getter. |+| `getLabelById` | lib | Same as above. |+| `getChatLabels` | lib | Same; `Types/LabelAssociation.d.ts` defines the type but no query fn (only `addChatLabel`/`removeChatLabel` writes, `chats.d.ts:70-71`). |+| `getChatsByLabel` | lib | Same; listing a label's chats needs an app-state cache fed by label-association sync events. |+| `getChatHistory` | lib | Only `fetchMessageHistory(count, oldestKey, oldestTs)` (`Socket/business.d.ts:25`), which returns a sync-token _string_; messages arrive later via the `messaging-history.set` event. No synchronous per-chat `fetchMessages`. |+| `getMessageReactions` | lib | No on-demand fetch; reactions exist only as event-augmented `WAMessage.reactions` via the `messages.reaction` event, and the adapter does not persist them into its store. Inbound reaction _events_ (`onMessageReaction`) work fine — only the read-back is unavailable. |+| `getContactStatus` | lib | `fetchStatus` (`Socket/chats.d.ts:42`, via `USyncStatusProtocol`) returns the _about/profile text_ line, not 24h stories. Stories surface only as `status@broadcast` messages. REST reads are store-backed — see ‡ above. |+| `getContactStatuses` | lib | Same as above. |+| `sendCatalog` | lib | `AnyMessageContent` (`Types/Message.d.ts:166-210`) has only `{product}` (single product); the catalog CRUD nodes (`Socket/business.js:294-362`) mutate the catalog, they don't send it. |+| `votePoll` | lib | No vote-send helper at all; the library only _decrypts incoming_ votes (`decryptPollVote`). Sending needs a hand-built `proto.Message.PollUpdateMessage` with HMAC-SHA256 encryption keyed by the poll creation's `messageSecret`. |++### 29.6.2 wwjs adapter (10 cells)++| Method | Cause | What's missing (evidence) |+| --------------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |+| `subscribeToChannel` | gap | `Client.subscribeToChannel(channelId)` (`Client.js:2542`) takes a channel **id** and resolves a boolean — it cannot satisfy the subscribe-by-invite-code contract alone. Correct wiring is two-step: `getChannelByInviteCode(inviteCode)` (`Client.js:1716`) → `subscribeToChannel(channel.id)`, unverified against a live session (the previous one-step call was a phantom success). The one remaining wwjs adapter-gap. |+| `upsertLabel` | lib | 1.34.7 reads labels and assigns them (`getLabels`, `getLabelById`, `getChatLabels`, `getChatsByLabelId`, `addOrRemoveLabels`, `index.d.ts:129-154`) but exposes nothing that creates/edits a label definition. |+| `deleteLabel` | lib | Same as above. |+| `subscribeToPresence` | lib | Only `sendPresenceAvailable`/`sendPresenceUnavailable` (`index.d.ts:230,233`), which publish the _account's own_ presence; no subscribe call and no presence event is emitted. |+| `getCatalog` | lib | No `Client.getCatalog` in `index.d.ts` (0 hits); `Product`/`Order` are inbound-only parsers. |+| `getProducts` | lib | Same as above. |+| `getProduct` | lib | Only page-internal `getProductMetadata` (`Utils.js:1290`), not a public Client fn. |+| `sendProduct` | lib | No outbound product content type. |+| `sendCatalog` | lib | No `Client.sendCatalog` in `index.d.ts` (0 hits). |+| `setGroupEphemeral` | lib | No disappearing-timer setter (0 hits for `ephemeral` in `index.d.ts`); only the create-time `messageTimer` option (`Client.js:2328`). |++## 29.7 Caveats on supported rows++✅ means works end-to-end — but these rows carry behavioral differences worth knowing:++- **`postTextStatus` / `postImageStatus` / `postVideoStatus` / `postVoiceStatus` (wwjs).**+ whatsapp-web.js has no status-recipient argument, so `StatusPostOptions.recipients` is **not+ honored** — the post broadcasts to the account's status-privacy audience (a one-time warning is+ logged). All four go through the same warning (`wwebjs-status.ts`: `postTextStatus` directly, the+ other three via `postMediaStatus`). The Baileys engine honors `recipients` (`statusJidList`). The+ wwjs cells also depend on patch 🔧² (29.3.2).+- **Media sends to a channel JID (wwjs) answer 501.** `sendImageMessage`, `sendVideoMessage`,+ `sendAudioMessage`, `sendDocumentMessage` and `sendStickerMessage` are ✅ on wwjs for chats and+ groups, but a `<id>@newsletter` recipient throws `ChannelMediaNotSupportedError` (a+ `NotImplementedException` → HTTP 501) at `ensureNotChannelRecipient`+ (`wwebjs-messaging.ts:354` for the media funnel, `:409` for stickers). whatsapp-web.js calls+ `msg.avParams()`, removed in a recent WA Web build (upstream wwebjs#201823, unresolved).+ Text→channel is unaffected, and Baileys has no such restriction — so these five rows are the one+ place where an engine difference does **not** show up as a per-row ❌ in 29.4.+- **`deleteStatus` (baileys).** Marked ✅ (no throw), but the `sendMessage(status@broadcast,+{delete})` revoke shape is _empirically unverified_ — only posting was live-spiked. May fall back+ to 501 if WA rejects the shape. On wwjs it calls `revokeStatusMessage(statusId)` (own status+ only).+- **`getContactStatus` / `getContactStatuses` (wwjs).** `Status.type` is the `text|image|video`+ union — audio/other story types collapse to `text`.+- **`archiveChat` / `clearChatMessages` (baileys).** `chatModify` needs the chat's last known+ message; a chat with no known history resolves `false` rather than throwing.+- **`starMessage` (baileys).** Needs the stored key's `fromMe` — the same id means different+ messages depending on direction.+- **`addParticipants` result shape.** wwjs returns a per-participant `{code,message}` object or a+ batch refusal string; Baileys returns per-jid `[{status}]`. Both are mapped onto the HTTP+ `results` field; a total refusal throws.+- **`setGroupMemberAddMode` read side.** The engines disagree (Baileys boolean+ `memberAddMode`, wwjs raw WhatsApp strings — and wwjs's own type declares the opposite sense);+ both are normalized to `'all'|'admins'` at the adapter.+- **`deleteContact` addressing.** wwjs addresses by phone number+ (`deleteAddressbookContact`), Baileys by JID (`removeContact`) — the adapter converts.+- **`deleteMessage` (baileys, `forEveryone=false`).** Wired via `chatModify({deleteForMe})`.++## 29.8 Snapshot summary++Recomputed from `engine-capability-matrix.ts`, `upstream-surface.snapshot.json`, and a scan of the+adapter sources — re-derive the same way when anything changes:++- **105** interface methods → **210** adapter cells: **188 ✅** / **22 ❌** (2 adapter-gaps, 20+ library-limitations, 0 uncertain), spanning **21** methods.+- Of the 188 ✅ cells, **6 wwjs cells carry an explicit patch dependency** (4 × 🔧² status send,+ 1 × 🔧³ channel link preview, 1 × 🔧⁴ ready-sync) and the whole wwjs column additionally+ depends on 🔧¹, the whole Baileys column on 🔧⁵. No row is patch-dependent on both engines.+- REST caller's view: **86** engine-neutral (84 + 2 store-backed status reads), **9** Baileys-only,+ **9** wwjs-only, **1** unavailable on both (`sendCatalog`).+- Full engine inventory (29.5), split by the exposure legend rather than lumped: Baileys **152**+ socket methods — 46 wired into interface methods, 5 internal wiring, 29 plumbing, **72 ❌ not+ exposed** (incl. the whole 23-method community cluster); wwjs **81** Client methods — 41 wired,+ 2 internal wiring, 1 class plumbing, **37 ❌ not exposed** (29 real capabilities + 8+ session/transport settings that are not WhatsApp capabilities). The backlog is the ❌ rows minus+ those 8 settings; 🔩 plumbing is correctly never exposed.+- Events: Baileys **34** (15 consumed / 19 dropped), wwjs **31** (16 consumed / 15 dropped).+- **6** capabilities are supported by **both** libraries and missing only in OpenWA (29.5.3) — the+ cheapest backlog: chat mute, chat pin, create-call-link, delete-own-profile-picture, channel+ admin demote, channel ownership transfer.+- **5** install-time patches (4 whatsapp-web.js + 1 Baileys), all exact and self-disabling.+- **0 phantom-support rows** — every `not-available` cell throws at the adapter boundary.+- Remaining adapter-gaps (fixable in this repo, ranked): **#1** `getChannelMessages` (Baileys —+ fetch is one line, `BinaryNode`→`ChannelMessage` parser is the work); **#2** `subscribeToChannel`+ (wwjs — two-step `getChannelByInviteCode` → `subscribeToChannel`, needs live verification).diff --git a/src/engine/engine-capability-matrix.ts b/src/engine/engine-capability-matrix.tsindex 3ce7fb91c..6c4ab70e5 100644--- a/src/engine/engine-capability-matrix.ts+++ b/src/engine/engine-capability-matrix.ts@@ -84,7 +84,7 @@ export const ENGINE_CAPABILITY_MATRIX: Record<string, MethodCapability> = {wwjs: { status: 'supported' },baileys: { status: 'supported' },evidence:- "wwjs Client.approveGroupMembershipRequests(groupId, {requesterIds, sleep}) → per-requester [{requesterId, error?, message}] (index.d.ts:360; Client.js:3024-3038), requesterIds null = every pending request; baileys groupRequestParticipantsUpdate(jid, pids, 'approve') → per-jid [{status:'200'|error, jid}] (Socket/groups.d.ts:13; groups.js:116-139) — no act-on-all form, so an omitted list enumerates groupRequestParticipantsList first",+ "wwjs Client.approveGroupMembershipRequests(groupId, {requesterIds, sleep}) → per-requester [{requesterId, error?, message}] (index.d.ts:360; Client.js:3022), requesterIds null = every pending request; baileys groupRequestParticipantsUpdate(jid, pids, 'approve') → per-jid [{status:'200'|error, jid}] (Socket/groups.d.ts:13; groups.js:116-139) — no act-on-all form, so an omitted list enumerates groupRequestParticipantsList first",},archiveChat: {wwjs: { status: 'supported' },@@ -104,7 +104,7 @@ export const ENGINE_CAPABILITY_MATRIX: Record<string, MethodCapability> = {wwjs: { status: 'supported' },baileys: { status: 'supported' },evidence:- 'wwjs Chat.clearMessages() → boolean (index.d.ts:1896); the injected sendClearChat returns false for an unknown chat (Injected/Utils.js:1192-1199); baileys chatModify({clear:true,lastMessages}, jid) (Types/Chat.d.ts:75-78) — same last-message requirement as archiveChat, so a chat with no known history resolves false',+ 'wwjs Chat.clearMessages() → boolean (index.d.ts:1896); the injected sendClearChat returns false for an unknown chat (Injected/Utils.js:1220); baileys chatModify({clear:true,lastMessages}, jid) (Types/Chat.d.ts:75-78) — same last-message requirement as archiveChat, so a chat with no known history resolves false',},createGroup: { wwjs: { status: 'supported' }, baileys: { status: 'supported' } },deleteChat: { wwjs: { status: 'supported' }, baileys: { status: 'supported' } },@@ -159,7 +159,7 @@ export const ENGINE_CAPABILITY_MATRIX: Record<string, MethodCapability> = {wwjs: { status: 'supported' },baileys: { status: 'not-available', rootCause: 'adapter-gap' },evidence:- 'baileys Socket/newsletter.d.ts:19 newsletterFetchMessages(jid,count,since,after) returns RAW BinaryNode of <message_updates> (newsletter.js:149) — adapter unwired AND no exposed library parser (BinaryNode→ChannelMessage mapping is the work); wwjs Channel.fetchMessages (Channel.js:327)',+ 'baileys Socket/newsletter.d.ts:19 newsletterFetchMessages(jid,count,since,after) returns RAW BinaryNode of <message_updates> (newsletter.js:144) — adapter unwired AND no exposed library parser (BinaryNode→ChannelMessage mapping is the work); wwjs Channel.fetchMessages (Channel.js:327)',},getChatHistory: {wwjs: { status: 'supported' },@@ -171,7 +171,7 @@ export const ENGINE_CAPABILITY_MATRIX: Record<string, MethodCapability> = {wwjs: { status: 'supported' },baileys: { status: 'not-available', rootCause: 'library-limitation' },evidence:- 'baileys no getChatLabels in lib/**/*.d.ts; Types/LabelAssociation.d.ts defines ChatLabelAssociation but no query fn (only addChatLabel/removeChatLabel writes @chats.d.ts:70-71); wwjs Client.getChatLabels (Client.js:2838)',+ 'baileys no getChatLabels in lib/**/*.d.ts; Types/LabelAssociation.d.ts defines ChatLabelAssociation but no query fn (only addChatLabel/removeChatLabel writes @chats.d.ts:70-71); wwjs Client.getChatLabels (Client.js:2851)',},getChats: { wwjs: { status: 'supported' }, baileys: { status: 'supported' } },getContactById: { wwjs: { status: 'supported' }, baileys: { status: 'supported' } },@@ -194,13 +194,13 @@ export const ENGINE_CAPABILITY_MATRIX: Record<string, MethodCapability> = {wwjs: { status: 'supported' },baileys: { status: 'not-available', rootCause: 'library-limitation' },evidence:- 'baileys no getLabel/getLabelById in lib/**/*.d.ts (Types/Label.d.ts has only Label interface + LabelColor enum + LabelActionBody); derivable only from an app-state-sync label cache; wwjs Client.getLabelById (Client.js:2825)',+ 'baileys no getLabel/getLabelById in lib/**/*.d.ts (Types/Label.d.ts has only Label interface + LabelColor enum + LabelActionBody); derivable only from an app-state-sync label cache; wwjs Client.getLabelById (Client.js:2838)',},getLabels: {wwjs: { status: 'supported' },baileys: { status: 'not-available', rootCause: 'library-limitation' },evidence:- 'baileys no getLabel/fetchLabel in lib/**/*.d.ts; chats.d.ts:69-73 + business.d.ts:162-166 expose ONLY writes; derivable only from an app-state-sync event cache; wwjs Client.getLabels (Client.js:2747)',+ 'baileys no getLabel/fetchLabel in lib/**/*.d.ts; chats.d.ts:69-73 + business.d.ts:162-166 expose ONLY writes; derivable only from an app-state-sync event cache; wwjs Client.getLabels (Client.js:2760)',},getMessageReactions: {wwjs: { status: 'supported' },@@ -214,7 +214,7 @@ export const ENGINE_CAPABILITY_MATRIX: Record<string, MethodCapability> = {wwjs: { status: 'not-available', rootCause: 'library-limitation' },baileys: { status: 'supported' },evidence:- 'baileys getCatalog cursor-walk then find-by-id (compose-and-filter over the full catalog; adapters/baileys-catalog.ts; #905); wwjs no Client.getProduct — only page-internal getProductMetadata (Utils.js:1253), not a public Client fn — adapter throws EngineNotSupportedError',+ 'baileys getCatalog cursor-walk then find-by-id (compose-and-filter over the full catalog; adapters/baileys-catalog.ts; #905); wwjs no Client.getProduct — only page-internal getProductMetadata (Utils.js:1290), not a public Client fn — adapter throws EngineNotSupportedError',},getProducts: {wwjs: { status: 'not-available', rootCause: 'library-limitation' },@@ -230,14 +230,14 @@ export const ENGINE_CAPABILITY_MATRIX: Record<string, MethodCapability> = {wwjs: { status: 'supported' },baileys: { status: 'not-available', rootCause: 'library-limitation' },evidence:- 'baileys no enumerate-newsletters fn; 18 of the 19 Socket/newsletter.d.ts newsletter members are per-jid (only newsletterCreate is not) (newsletterMetadata requires a key; newsletterSubscribers returns the count of ONE). Only the newsletter EVENT surfaces jids opportunistically (incremental, not list-all); wwjs Client.getChannels (Client.js:1680)',+ 'baileys no enumerate-newsletters fn; 18 of the 19 Socket/newsletter.d.ts newsletter members are per-jid (only newsletterCreate is not) (newsletterMetadata requires a key; newsletterSubscribers returns the count of ONE). Only the newsletter EVENT surfaces jids opportunistically (incremental, not list-all); wwjs Client.getChannels (Client.js:1691)',},initialize: { wwjs: { status: 'supported' }, baileys: { status: 'supported' } },joinGroupViaInviteCode: {wwjs: { status: 'supported' },baileys: { status: 'supported' },evidence:- 'wwjs Client.acceptInvite(inviteCode) → res.gid._serialized (index.d.ts:23; Client.js:1836-1844); baileys groupAcceptInvite(code) → string|undefined (Socket/groups.d.ts:25) — undefined mapped to a thrown error',+ 'wwjs Client.acceptInvite(inviteCode) → res.gid._serialized (index.d.ts:23; Client.js:1845); baileys groupAcceptInvite(code) → string|undefined (Socket/groups.d.ts:25) — undefined mapped to a thrown error',},leaveGroup: { wwjs: { status: 'supported' }, baileys: { status: 'supported' } },logout: { wwjs: { status: 'supported' }, baileys: { status: 'supported' } },@@ -246,7 +246,7 @@ export const ENGINE_CAPABILITY_MATRIX: Record<string, MethodCapability> = {wwjs: { status: 'supported' },baileys: { status: 'supported' },evidence:- 'wwjs Message.pin(duration) → boolean (index.d.ts:1340); the injected helper returns false for a non-number duration and for an unknown message (Injected/Utils.js:1670-1696), so the adapter maps false → EngineRefusedError; baileys sendMessage(jid,{pin:key,type:PinInChat.Type.PIN_FOR_ALL,time}) (Types/Message.d.ts:196-201) — NOT chatModify({pin}), which pins the CHAT in the chat list',+ 'wwjs Message.pin(duration) → boolean (index.d.ts:1340); the injected helper returns false for a non-number duration and for an unknown message (Injected/Utils.js:1698), so the adapter maps false → EngineRefusedError; baileys sendMessage(jid,{pin:key,type:PinInChat.Type.PIN_FOR_ALL,time}) (Types/Message.d.ts:196-201) — NOT chatModify({pin}), which pins the CHAT in the chat list',},postImageStatus: { wwjs: { status: 'supported' }, baileys: { status: 'supported' } },postTextStatus: { wwjs: { status: 'supported' }, baileys: { status: 'supported' } },@@ -270,7 +270,7 @@ export const ENGINE_CAPABILITY_MATRIX: Record<string, MethodCapability> = {wwjs: { status: 'supported' },baileys: { status: 'supported' },evidence:- "same shapes as approveGroupMembershipRequests with the 'Reject' page action (wwjs Client.js:3050-3064) / the 'reject' update action (baileys groups.js:116-139)",+ "same shapes as approveGroupMembershipRequests with the 'Reject' page action (wwjs Client.js:3044) / the 'reject' update action (baileys groups.js:116-139)",},rejectCall: {wwjs: { status: 'supported' },@@ -327,13 +327,13 @@ export const ENGINE_CAPABILITY_MATRIX: Record<string, MethodCapability> = {wwjs: { status: 'not-available', rootCause: 'library-limitation' },baileys: { status: 'supported' },evidence:- 'wwjs 1.34.7 exposes NO ephemeral setter — 0 hits for ephemeral in index.d.ts; only a create-time messageTimer option (Client.js:2371); adapter throws EngineNotSupportedError; baileys groupToggleEphemeral(jid, ephemeralExpiration) (Socket/groups.d.ts:40)',+ 'wwjs 1.34.7 exposes NO ephemeral setter — 0 hits for ephemeral in index.d.ts; only a create-time messageTimer option (Client.js:2328); adapter throws EngineNotSupportedError; baileys groupToggleEphemeral(jid, ephemeralExpiration) (Socket/groups.d.ts:40)',},setGroupInfoAdminsOnly: {wwjs: { status: 'supported' },baileys: { status: 'supported' },evidence:- "wwjs GroupChat.setInfoAdminsOnly(adminsOnly?) (index.d.ts:2216; sets groupMetadata.restrict, GroupChat.js:544); baileys groupSettingUpdate(jid, 'locked'|'unlocked') (Socket/groups.d.ts:41)",+ "wwjs GroupChat.setInfoAdminsOnly(adminsOnly?) (index.d.ts:2216; sets groupMetadata.restrict, GroupChat.js:522); baileys groupSettingUpdate(jid, 'locked'|'unlocked') (Socket/groups.d.ts:41)",},setGroupMemberAddMode: {wwjs: { status: 'supported' },@@ -345,7 +345,7 @@ export const ENGINE_CAPABILITY_MATRIX: Record<string, MethodCapability> = {wwjs: { status: 'supported' },baileys: { status: 'supported' },evidence:- "wwjs GroupChat.setMessagesAdminsOnly(adminsOnly?) (index.d.ts:2210; sets groupMetadata.announce, GroupChat.js:513); baileys groupSettingUpdate(jid, 'announcement'|'not_announcement') (Socket/groups.d.ts:41)",+ "wwjs GroupChat.setMessagesAdminsOnly(adminsOnly?) (index.d.ts:2210; sets groupMetadata.announce, GroupChat.js:487); baileys groupSettingUpdate(jid, 'announcement'|'not_announcement') (Socket/groups.d.ts:41)",},setGroupPicture: {wwjs: { status: 'supported' },@@ -387,19 +387,19 @@ export const ENGINE_CAPABILITY_MATRIX: Record<string, MethodCapability> = {wwjs: { status: 'not-available', rootCause: 'adapter-gap' },baileys: { status: 'supported' },evidence:- "wwjs Client.subscribeToChannel(channelId) → boolean (index.d.ts:71; Client.js:2533) takes a CHANNEL id, not the interface's invite code, and getChannelByInviteCode(inviteCode) (index.d.ts:103; Client.js:1707) is the invite→channel bridge — the adapter used to pass the invite code straight in and fabricate a Channel from the returned boolean; now an honest EngineNotSupportedError pending a verified two-step wiring; baileys newsletterMetadata('invite', code) + newsletterFollow (Socket/newsletter.d.ts)",+ "wwjs Client.subscribeToChannel(channelId) → boolean (index.d.ts:71; Client.js:2542) takes a CHANNEL id, not the interface's invite code, and getChannelByInviteCode(inviteCode) (index.d.ts:103; Client.js:1716) is the invite→channel bridge — the adapter used to pass the invite code straight in and fabricate a Channel from the returned boolean; now an honest EngineNotSupportedError pending a verified two-step wiring; baileys newsletterMetadata('invite', code) + newsletterFollow (Socket/newsletter.d.ts)",},upsertContact: {wwjs: { status: 'supported' },baileys: { status: 'supported' },evidence:- "wwjs Client.saveOrEditAddressbookContact(phoneNumber, firstName, lastName, syncToAddressbook=false) → void (index.d.ts:293-299; Client.js:3266) — lastName is positional and required, so an absent one is passed as ''; baileys addOrEditContact(jid, IContactAction{firstName,fullName,saveOnPrimaryAddressbook}) (Socket/chats.d.ts:66; WAProto IContactAction:11812)",+ "wwjs Client.saveOrEditAddressbookContact(phoneNumber, firstName, lastName, syncToAddressbook=false) → void (index.d.ts:293-299; Client.js:3275) — lastName is positional and required, so an absent one is passed as ''; baileys addOrEditContact(jid, IContactAction{firstName,fullName,saveOnPrimaryAddressbook}) (Socket/chats.d.ts:66; WAProto IContactAction:11812)",},votePoll: {wwjs: { status: 'supported' },baileys: { status: 'not-available', rootCause: 'library-limitation' },evidence:- "wwjs Message.vote(selectedOptions: string[]) (index.d.ts:1376) matches poll options BY NAME against msg.pollOptions and throws a bare STRING on a non-poll target (Message.js:1009-1040); baileys has no vote-send helper at all — only decryptPollVote for RECEIVING (Utils/messages.d.ts), so sending needs a hand-built proto.Message.PollUpdateMessage with HMAC-SHA256 vote encryption keyed by the poll creation's messageSecret",+ "wwjs Message.vote(selectedOptions: string[]) (index.d.ts:1376) matches poll options BY NAME against msg.pollOptions and throws a bare STRING on a non-poll target (Message.js:1009-1040); baileys has no vote-send helper at all — only decryptPollVote for RECEIVING (Utils/process-message.d.ts), so sending needs a hand-built proto.Message.PollUpdateMessage with HMAC-SHA256 vote encryption keyed by the poll creation's messageSecret",},unblockContact: { wwjs: { status: 'supported' }, baileys: { status: 'supported' } },unpinMessage: {@@ -412,6 +412,6 @@ export const ENGINE_CAPABILITY_MATRIX: Record<string, MethodCapability> = {wwjs: { status: 'supported' },baileys: { status: 'supported' },evidence:- 'wwjs Client.unsubscribeFromChannel(channelId, options?) → boolean (index.d.ts:74; Client.js:2556; false → adapter throws EngineRefusedError); baileys newsletterUnfollow(jid) (Socket/newsletter.d.ts)',+ 'wwjs Client.unsubscribeFromChannel(channelId, options?) → boolean (index.d.ts:74; Client.js:2563; false → adapter throws EngineRefusedError); baileys newsletterUnfollow(jid) (Socket/newsletter.d.ts)',},};