Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs: correct four release claims that overstate what shipped

Yudhi Armyndharis72f3ae15335b
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2efdaa322..b0d34a14a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,13 +13,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `AUDIT_RETENTION_DAYS` is checked at boot, so a typo fails startup with a named error instead of silently reverting to the 90-day default. It is validated as an integer of any sign rather than a positive one, because both `0` and any negative value are documented switches that disable audit-log pruning entirely.
- `message.controller.spec.ts` holds the two headers the stored-media download sends, `X-Content-Type-Options: nosniff` and `Content-Disposition: attachment`; deleting either had passed every suite in the repo.
- That same spec now also holds the passthrough declaration and the returned bytes, so a media response carrying both security headers and no body at all no longer passes it.
-- Optional `quotedMessageId` on every `send-*` message endpoint and its MCP tool, so a reply can carry media, a location, a contact card or a poll instead of only text. An id the engine cannot resolve now fails the send rather than delivering the message unquoted. Thanks @nirizr for the report.
+- Optional `quotedMessageId` on the nine `send-*` message endpoints that carry a single message — text, image, video, audio, document, sticker, location, contact and poll — and on their MCP tools, so a reply can carry media, a location, a contact card or a poll instead of only text. `send-template`, `send-bulk`, `send-product` and `send-catalog` do not accept it. An id the engine cannot resolve now fails the send rather than delivering the message unquoted. Thanks @nirizr for the report.
- All five SDK clients expose `quotedMessageId` on their send request types, so a typed caller can reply with media, a location, a contact card or a poll without hand-building the body.
### Changed
- Plugins must declare a `storage:use` permission to reach `ctx.storage`, and an installed plugin that persists state needs that one manifest line added before it can store again. The four storage verbs dispatched with no permission check at all, so a plugin whose manifest declared nothing still wrote to the host disk and the operator reading that manifest could not see it. The per-plugin directory, key check and byte quota already bounded the access, so this puts a plugin's use of host storage in the manifest rather than closing an escape.
-- Seven official plugins declare it as of `chatwoot-adapter` 0.9.1, `chat-flow` 1.1.2, `group-translate` 1.3.1, `gsheets-logger` 0.3.3, `http-action` 0.2.2, `typebot-connector` 0.2.2 and `voice-transcription` 1.2.3; upgrade to at least these before upgrading the gateway, since a plugin below them is denied at its next storage call rather than at load. `after-hours`, `faq-bot` and `supabase-otp-hook` never touch `ctx.storage` and need no upgrade.
+- Seven official plugins declare it as of `chatwoot-adapter` 0.9.1, `chat-flow` 1.1.2, `group-translate` 1.3.1, `gsheets-logger` 0.3.3, `http-action` 0.2.2, `typebot-connector` 0.2.2 and `voice-transcription` 1.2.3; upgrade to at least these before upgrading the gateway, since a plugin below them is denied at its next storage call rather than at load — and one that stores during `onEnable` is left in `ERROR` by that denial, not merely refused the write. `after-hours`, `faq-bot` and `supabase-otp-hook` never touch `ctx.storage` and need no upgrade.
### Fixed
@@ -27,11 +27,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- The dashboard bundled all thirteen locales into one 476 KB chunk the page preloaded, so every visitor downloaded twelve languages to read one; each is now fetched on demand.
- Fifteen return and parameter annotations in the Python SDK named `list[...]` inside classes that define a `list` method, so each resolved to the method rather than the builtin. That package ships `py.typed`, so the wrong types were what a consumer's own type checker read. Its CI now runs mypy, which nothing did before.
- A locale chunk that failed to load left the dashboard right-to-left around English copy, because text direction followed the requested language rather than the catalogue that answered; it now follows what actually rendered.
-- `check:sdk-routes` scanned the JavaScript client for backtick-delimited paths only, while its PHP and Python rules already accepted every quote style, so the nine routes that client writes as single-quoted strings were never compared to the contract — `/api/health/ready` among them, which is also the container healthcheck and Kubernetes readiness path. Renaming one of those server-side passed every gate and the JS suite, and the published client would have 404'd with CI green.
+- `check:sdk-routes` scanned the JavaScript client for backtick-delimited paths only, while its PHP and Python rules already accepted every quote style, so the nine routes that client writes as single-quoted strings were never compared to the contract — `/api/health/ready` among them, which is also the container healthcheck and Kubernetes readiness path. All nine are written by the PHP and Python clients too, and those rules did accept every quote style, so a server-side rename still reddened this gate through them and `check:sdk-coverage` — the JavaScript client simply had no cover of its own, and would have been the one shipping a stale path.
- The JavaScript, Python, Go and Java SDKs omitted `contact`, `call` and `ephemeralDuration` from their chat-history message type, so a typed client had to cast to read three fields the endpoint returns; all four now mirror the engine payload.
- `POST /api/infra/import-data` bound its body to an inline type, which erases at runtime, so on the replace-all restore the global ValidationPipe's `whitelist` and `forbidNonWhitelisted` never ran: a body carrying no `tables` failed as a 500 from inside the import, and a misspelled key was accepted in silence. It now takes a DTO — a missing `tables` answers 400 instead, naming the field outside production, where field-level detail is suppressed unless `VALIDATION_ERROR_DETAIL=true`; an unknown key is refused, and `force`/`stopOrphans` accept only a real boolean or an exact `'true'`/`'false'`, so an ambiguous spelling cannot open the orphan-engine escape. The export file still posts back verbatim: the five metadata fields it wraps `tables` in are accepted and ignored, and a spec probes every field the export publishes so a new one cannot start failing the restore.
- The engine parity gate took an adapter file's engine from its filename prefix and credited the rest to whatsapp-web.js, so a `501` added to four of the five unprefixed modules would be blamed on the wrong engine — and the invariant would then demand that the engine which really refuses be marked `supported`. Those files are now attributed explicitly, and one that is neither prefixed nor attributed fails the spec by name. The three modules both adapters import are marked shared rather than attributed, because no attribution is correct for them: crediting both engines demands `not-available` from the one that never refuses, crediting neither demands `supported` from the one that does. A refusal added to a shared module is now refused by name, pointing at the engine delegate it belongs in.
- Replying with an attachment in the dashboard composer silently dropped the quote: the media branch never carried the quoted id, the optimistic bubble's metadata took the same either/or, and the reply banner was cleared regardless — so it looked exactly like a quoted reply had been sent. Both payloads now carry the quote, and the two builders moved to a tested utility module.
+- An unresolvable `quotedMessageId` answered 500 on whatsapp-web.js where Baileys answered 404 for the identical request, and the bare page error also counted against the send breaker, which exempts a 4xx. Both engines now answer 404.
+- The Java SDK omitted `quotedMessageId` from its send-audio request, the one send whose model is a separate record rather than the shared media one, so send-audio was the single quotable route a Java caller could not quote on.
+- The spec binding `docs/19` to the plugin denial message covered only the sentence that names the fix, leaving the sentence that names the fault free to be reworded with the document still asserting the old text.
+- The chat-media backlog test timed out on every full-suite run while passing whenever its file ran alone, reporting itself as a product failure; it now carries a timeout matching the work it does.
### Documentation
diff --git a/docs/06-api-specification.md b/docs/06-api-specification.md
index f1982b021..a83ca87c9 100644
--- a/docs/06-api-specification.md
+++ b/docs/06-api-specification.md
@@ -1496,9 +1496,14 @@ rejected with `400` rather than guessing which half was meant.
##### Quoted sends
-Every `send-*` route above accepts an optional `quotedMessageId`. Supplying it turns that send into a
-reply, so a reply can carry media, a location, a contact card or a poll — not only text.
-`POST .../messages/reply` is unchanged and remains the text shorthand.
+Nine `send-*` routes accept an optional `quotedMessageId`: `send-text` above, and `send-image`,
+`send-video`, `send-audio`, `send-document`, `send-sticker`, `send-location`, `send-contact` and
+`send-poll` below. Supplying it turns that send into a reply, so a reply can carry media, a location,
+a contact card or a poll — not only text. `POST .../messages/reply` is unchanged and remains the text
+shorthand.
+
+`send-template`, `send-bulk`, `send-product` and `send-catalog` do NOT accept the field, and reject it
+as an unknown property.
```json
{
diff --git a/scripts/check-sdk-routes.mjs b/scripts/check-sdk-routes.mjs
index 9bd07e6ee..de709ea85 100644
--- a/scripts/check-sdk-routes.mjs
+++ b/scripts/check-sdk-routes.mjs
@@ -55,10 +55,15 @@ const SDKS = [
// Any quote style, not just backticks. The JS client writes its parameterless routes as
// single-quoted strings — nine of them, including the `/api/health/ready` path Kubernetes and the
// container HEALTHCHECK probe — and a backtick-only scan never saw one. Renaming any of those on
- // the server regenerated openapi.json, passed `openapi:check`, passed this gate (which never
- // harvested the literal), and passed the JS suite (whose oracle is the URL the SDK itself built),
- // so the published client would 404 with CI fully green. check-sdk-coverage.mjs already harvests
- // every quote style; this brings the forward gate level with it.
+ // the server regenerated openapi.json, passed `openapi:check`, passed THIS rule (which never
+ // harvested the literal), and passed the JS suite (whose oracle is the URL the SDK itself built).
+ //
+ // CI as a whole still went red: every one of those nine paths is written by the PHP and Python
+ // clients too, and their rules below already accepted any quote style, so the rename tripped this
+ // gate through them and `check:sdk-coverage` besides. The exposure was narrower than "green CI"
+ // and worth naming precisely — the JavaScript client was the one carrying an unchecked path, so a
+ // route only IT names is where a stale literal could actually have shipped.
+ // check-sdk-coverage.mjs already harvests every quote style; this brings the forward gate level.
{ name: 'javascript', dir: 'sdk/javascript/src', exts: ['.ts'], re: /[`"'](\/api\/[^`"']*)[`"']/g },
{ name: 'php', dir: 'sdk/php/src', exts: ['.php'], re: /["'](\/api\/[^"']*)["']/g },
{ name: 'python', dir: 'sdk/python/openwa', exts: ['.py'], re: /["'](\/api\/[^"']*)["']/g },