Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

Merge pull request #1272 from rmyndharis/docs/env-example-missing-knobs

Yudhi Armyndharis536e4fadfe9b
diff --cc CHANGELOG.md
index c7a4f7076,b2e57c251..24531fbad
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -15,15 -11,11 +15,16 @@@ and this project adheres to [Semantic V
- Turkish (`tr`) dashboard translation. Thanks @codedByCan.
+### Fixed
+
+- 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.
+
### Documentation
+ - `.env.example` calls itself the single source of truth for configuration, and the Helm chart and `docs/10` both defer to it, but seven live operator knobs were missing from it — including `SERVE_DASHBOARD`, which the bundled compose forwards explicitly, so an operator wanting an API-only deployment was told the capability did not exist. A new spec binds the file to the key lists `env.validation.ts`, `env-precedence.ts` and compose already maintain, so the next one cannot go missing quietly.
- `RESOLVE_LID_TO_PHONE` was documented nowhere outside `.env.example`, so an operator receiving `@lid` senders had no path to the flag that resolves them; the event catalog now carries the `senderPhone` opt-in callout, the contact-phone endpoint points back to it, and the troubleshooting FAQ covers the symptom.
- The chat-history response example advertised a `senderPhone` field that endpoint has never returned, and showed it on a plain `@c.us` sender that not even the inbound path would resolve; the example now matches what the route emits, and points at the contact-phone endpoint instead.
+- `WEBHOOK_CONTACT_DETAILS` was absent from `docs/`; the event catalog now names the twelve fields it adds to `contact` on `message.received`, notes that opting in costs no extra WhatsApp lookup, and records that only the whatsapp-web.js path reads the flag — which `.env.example` now says too.
## [0.16.0] - 2026-08-11