Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
chore(release): v0.23.0
Yudhi Armyndharis6b786907d776
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 4ca52179b..263f32f92 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0## [Unreleased]+## [0.23.0] - 2026-08-20+### Added- `POST /sessions/{sessionId}/chats/read` takes an optional `messageIds` array (up to 100) naming which messages to acknowledge. Baileys acknowledges individual messages, so without it a burst left its earlier messages unread. Ids resolve through the message store, so a group receipt carries its `participant`. Available on the agent tool and all five clients; ignored by whatsapp-web.js. Thanks @m7fz7.@@ -16,7 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- The agent tools accept `mentions` on every send whose engine carries it (text, the four media sends, sticker, template and reply) and `customLinkPreview` on the text send, matching the REST routes. A tool schema is not strict, so an agent that passed either field before had it dropped without an error.- `mentions` reaches every route whose engine can carry it: `reply`, `edit`, `send-template` and each `send-bulk` item, alongside the send routes that already had it. `send-template` also gained `linkPreview`. On `edit` the tags are re-applied rather than preserved, because an edit replaces the message content. Thanks @Magnarks for the report.- `POST /sessions/{sessionId}/chats/unread` publishes its own `MarkChatUnreadDto` rather than sharing `MarkChatReadDto`. The body is unchanged (`chatId` alone), but a generated client sees the schema under a new name.-- ⚠️ **Breaking (Go, Java and typed Python callers).** `markRead` and `subscribePresence` each take their own request type rather than the shared `MarkChatRequest`, which now serves `markUnread` alone. Swap the type at both call sites; the wire body is unchanged and the JavaScript and PHP clients are unaffected. `SubscribePresenceDto` had no contract-gate coverage while one type stood for two routes.+- ⚠️ **Breaking (Go, Java and typed Python callers).** `markRead` and `subscribePresence` each take their own request type rather than the shared `MarkChatRequest`, which now serves `markUnread` alone. Go and Java need the swap at both call sites; typed Python only at `markRead`, its `subscribePresence` body being structurally identical. The wire body is unchanged, and JavaScript and PHP are unaffected.### Fixeddiff --git a/SECURITY.md b/SECURITY.mdindex ad3413b7d..c48db8a28 100644--- a/SECURITY.md+++ b/SECURITY.md@@ -6,13 +6,13 @@ socket. Security matters here, and we appreciate responsible disclosure.## Supported versions-Security fixes land on the latest minor release (currently 0.22.x). Older minor+Security fixes land on the latest minor release (currently 0.23.x). Older minorlines receive no backports — please upgrade older deployments.| Version | Supported || ------- | ------------------ |-| 0.22.x | :white_check_mark: |-| < 0.22 | :x: |+| 0.23.x | :white_check_mark: |+| < 0.23 | :x: |## Reporting a vulnerabilitydiff --git a/charts/openwa/Chart.yaml b/charts/openwa/Chart.yamlindex 68047d897..2ebb24416 100644--- a/charts/openwa/Chart.yaml+++ b/charts/openwa/Chart.yaml@@ -2,8 +2,8 @@ apiVersion: v2name: openwadescription: OpenWA — WhatsApp API. Single-instance StatefulSet (see values.yaml replicaCount warning).type: application-version: 0.1.16-appVersion: '0.22.0'+version: 0.1.17+appVersion: '0.23.0'keywords:- openwadiff --git a/docs/14-migration-guide.md b/docs/14-migration-guide.mdindex c6fb4c4c1..11e976022 100644--- a/docs/14-migration-guide.md+++ b/docs/14-migration-guide.md@@ -729,6 +729,7 @@ docker compose run --rm openwa-api npm run migration:run:prod| Release | Change | Action || -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |+| `0.23.0` | Typed SDK clients: `markRead` and `subscribePresence` each take their own request type instead of the shared `MarkChatRequest`, which now serves `markUnread` alone | Go and Java: swap the type at both call sites. Typed Python: only at `markRead`, its `subscribePresence` body being structurally identical. JavaScript and PHP need no change; the wire body is unchanged || `0.22.0` | Baileys refuses a reply whose quoted id, or a forward whose `fromChatId`, does not name the addressed chat, with the `404` whatsapp-web.js already answered; leaving a group, unsubscribing from a channel and labelling a channel surface WhatsApp's refusal; membership requests for an id that is not a group are refused | Handle a refusal on those six calls, which previously answered `200` whatever happened || `0.22.0` | Typed SDK clients narrow their request bodies: 19 Python request types mark the fields the server requires, and Go and Java type the proxy scheme, call kind, membership method, chat state, pin window and status font as enums | Pass the named constants instead of bare strings or numbers and supply every required field; untyped callers are unaffected || `0.22.0` | `isReadOnly` on a group answers for the calling account rather than repeating the group setting, and `isMyContact` reflects whether the contact is actually saved | Re-read either field wherever logic branched on the old value |diff --git a/openapi.json b/openapi.jsonindex b09a35952..9bf4b4361 100644--- a/openapi.json+++ b/openapi.json@@ -9425,7 +9425,7 @@"info": {"title": "OpenWA API","description": "Open Source WhatsApp API Gateway - Free, Self-Hosted HTTP API\n\n**Gateway-wide responses.** Two statuses are returned by middleware before routing, so any operation can emit them:\n\n- `415 Unsupported Media Type` — the request body carries a `Content-Encoding` other than `identity`. The aggregate in-flight body cap counts wire bytes, so a compressed body would be admitted on its compressed size and then inflated past the memory it is meant to bound. Send the body uncompressed.\n- `503 Service Unavailable` with `Retry-After` — the gateway already has too much request body data in flight. The body is not read; retry after the given delay.",- "version": "0.22.0",+ "version": "0.23.0","contact": {"name": "OpenWA","url": "https://github.com/rmyndharis/OpenWA",diff --git a/package-lock.json b/package-lock.jsonindex d2f99ddba..93e49843a 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "openwa",- "version": "0.22.0",+ "version": "0.23.0","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "openwa",- "version": "0.22.0",+ "version": "0.23.0","hasInstallScript": true,"license": "MIT","dependencies": {diff --git a/package.json b/package.jsonindex c60152b55..1eecbb949 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "openwa",- "version": "0.22.0",+ "version": "0.23.0","description": "Open Source WhatsApp API Gateway - Free, Self-Hosted HTTP API for WhatsApp","author": "Yudhi Armyndharis & OpenWA Contributors","private": true,