Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
Merge remote-tracking branch 'origin/main' into docs/infrastructure-response-schemas
Yudhi Armyndharisb9b602e68dcc
diff --cc CHANGELOG.mdindex 3f55b94ad,2da637834..68eecd1a8--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -21,7 -21,7 +21,8 @@@ and this project adheres to [Semantic V### Changed+ - **The catalog endpoints now publish the shape of what they return, including one that disagrees with the rest of the API** — `POST /messages/send-product` answers `{id, timestamp}` while every send served by the message module answers `{messageId, timestamp}` for the same value, because this route passes the engine result through unmapped; the schema records the field the code actually sends rather than the one the neighbouring routes use. `send-catalog` is left with no success schema on purpose: no engine can send a catalog link, so a 2xx there would document a response that cannot occur.+- **The twelve infrastructure endpoints now publish the shape of what they return, and one of them no longer describes the wrong thing** — `GET /infra/storage/export` was documented as a "Tar.gz archive stream" but answers JSON pointing at an archive it wrote under `data/exports/`, so a client following the contract would have waited for a binary body that never comes; the save and restart payloads also now state that a failed config write still answers `200` with `saved: false`, which is the flag a caller has to read.- **The ten contacts endpoints now publish the shape of what they return** — they documented a status and a sentence but no schema, so the committed OpenAPI snapshot had nothing to diff for any of them and a change to a response body could reach clients without the contract gate noticing; `GET /contacts/{contactId}/phone` returning `null` for an unresolvable id, and the batch picture lookup answering `null` per id rather than failing, are now stated rather than discovered by calling.- **The eighteen group endpoints now publish the shape of what they return** — the whole module documented statuses and prose but not one response schema, so the committed OpenAPI snapshot had nothing to diff for any of it; the per-participant `results` array that an add/remove/promote/demote returns, and the fact that a partial refusal is reported inside a `200` rather than as an error, are now in the contract instead of only in a sentence.- **Fourteen more boolean environment variables are now validated at boot** — they are read with a bare `=== 'true'` / `!== 'false'` comparison, so a spelling like `DATABASE_SSL=require` silently configured the opposite of what was asked for; `DATABASE_SSL` in particular read as OFF and sent credentials in plaintext to a server the operator believed was TLS-protected. Only `true`/`false` (or blank) are accepted now, so a deployment using another spelling will fail startup until it is corrected. `MCP_READONLY` and `PUPPETEER_HEADLESS` stay tolerant deliberately — both fail toward the safe state.