Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
chore(sdk): release 0.5.1 across all five SDKs
Yudhi Armyndharis635f49a739c3
diff --git a/docs/18-sdk-design.md b/docs/18-sdk-design.mdindex 284f20e6c..4997ea9b4 100644--- a/docs/18-sdk-design.md+++ b/docs/18-sdk-design.md@@ -45,8 +45,6 @@ All five SDKs expose the same fluent surface:| `media` | conversionStatus, convertVoice _(OPERATOR)_, convertVideo _(OPERATOR)_ || `health` | check, live, ready |-The tables describe `main`. The 0.5.0 registry builds do not include `sessions.getProxy`, `sessions.updateProxy` or `messages.clickButton` (`get_proxy`, `update_proxy` and `click_button` in Python; `GetProxy`, `UpdateProxy` and `ClickButton` in Go); they ship with the next SDK release. The webhook signature helpers (`verifyWebhookSignature`, `verify_webhook_signature`, `VerifyWebhookSignature`, `WebhookSignature.verify`, `WebhookSignature::verify`), the `WebhookDelivery` types and the API error code, retry-delay and headers accessors are not in 0.5.0 either; they also ship with the next SDK release. Nor is the Java fallback to `UNKNOWN`: 0.5.0 decodes a response enum value it does not recognise to `null` (`MessageType` and `ChatKind` included), and `SessionStatus`, `DeliveryStatus` and the other response enums that lack an `unknown` wire value have no `UNKNOWN` constant there. Nor is the `name` filter on `sessions.list` (`ListSessionsQuery.Name` in Go, the `name` field of `ListSessionsQuery` in Java, JavaScript and Python); it ships with the next SDK release. The refusal of an empty, `.` or `..` id (and, in the JavaScript, Go and Java raw-request methods, of a `.` or `..` path segment), the refusal by all five raw-request methods of a path that does not begin with `/`, the PHP `sessions->create()` fix that sends an empty `config` as `{}`, the PHP `allowInsecureHttp` option (0.5.0 always raises an `E_USER_WARNING` for a non-local `http://` `baseUrl`), and the PHP `catalog->info()` / `catalog->product()` `null` return on an empty body are not in 0.5.0 either; they ship with the next SDK release.-> The SDKs cover the user-facing resources above and stop there. The administrative and operational surfaces are deliberately left out — `auth/api-keys`, `audit`, `settings`, `stats`, `automation`, `infra`, `plugins` and the `integration` management routes are predominantly `ADMIN`-gated; `metrics` is a `@Public()` Prometheus scrape gated by `METRICS_TOKEN` rather than by role; `mcp` is a Streamable-HTTP transport mounted straight onto the Express adapter; and `ingress` is the `@Public()` receiver that integration providers post into. `docker` has no HTTP surface at all — it is an internal service module. Methods that require an `OPERATOR`-level key are annotated **OPERATOR** in the per-language tables below.## 18.2 TypeScript / JavaScript SDKdiff --git a/sdk/README.md b/sdk/README.mdindex 7d3789f16..ed0f8d421 100644--- a/sdk/README.md+++ b/sdk/README.md@@ -44,31 +44,6 @@ All five SDKs expose the same fluent resource surface:| `health` | check, live, ready || `auth` | validate (`client.auth()`; `client.Auth.Validate` in Go) |-The table describes `main`. The 0.5.0 registry builds do not include-`sessions.getProxy`, `sessions.updateProxy` or `messages.clickButton`-(`get_proxy`, `update_proxy` and `click_button` in Python; `GetProxy`,-`UpdateProxy` and `ClickButton` in Go); they ship with the next SDK release.-The webhook signature helpers (`verifyWebhookSignature`,-`verify_webhook_signature`, `VerifyWebhookSignature`, `WebhookSignature.verify`,-`WebhookSignature::verify`), the `WebhookDelivery` types and the API error code,-retry-delay and headers accessors are not in 0.5.0 either; they also ship with-the next SDK release.-Nor is the Java fallback to `UNKNOWN`: 0.5.0 decodes a response enum value it-does not recognise to `null` (`MessageType` and `ChatKind` included), and-`SessionStatus`, `DeliveryStatus` and the other response enums that lack an-`unknown` wire value have no `UNKNOWN` constant there.-The refusal of an empty, `.` or `..` id (and, in the JavaScript, Go and Java-raw-request methods, of a `.` or `..` path segment), the refusal by all five-raw-request methods of a path that does not begin with `/`, the PHP-`sessions->create()` fix that sends an empty `config` as `{}`, the PHP-`allowInsecureHttp` option (0.5.0 always raises an `E_USER_WARNING` for a-non-local `http://` `baseUrl`) and the `null` return of PHP `catalog->info()`-and `catalog->product()` for a missing catalog or product (0.5.0 throws a-`TypeError`) are not in 0.5.0 either; they ship with the next SDK release.-Nor is the `name` filter on `sessions.list` (`ListSessionsQuery.Name` in Go,-the `name` field of `ListSessionsQuery` in Java, JavaScript and Python); it-ships with the next SDK release.-> ⚠️ Endpoints requiring an `OPERATOR`-level API key are noted in the inline> docs. Deliberately **not** exposed, matching `docs/18-sdk-design.md` exactly:> `auth/api-keys` (key validation itself is the `auth` row above), `audit`,@@ -199,7 +174,7 @@ handler is a `MockHandler` — no global state, no network.<dependency><groupId>com.rmyndharis</groupId><artifactId>openwa</artifactId>- <version>0.5.0</version>+ <version>0.5.1</version></dependency>```diff --git a/sdk/go/README.md b/sdk/go/README.mdindex 89f6a7100..1e99f241d 100644--- a/sdk/go/README.md+++ b/sdk/go/README.md@@ -13,17 +13,6 @@ go get github.com/rmyndharis/OpenWA/sdk/goRequires Go 1.22+.-This README describes `main`. The v0.5.0 release lacks, among other additions,-`Sessions.GetProxy`, `Sessions.UpdateProxy`, `Messages.ClickButton`,-`VerifyWebhookSignature`, the `WebhookDelivery` type, the `ListSessionsQuery.Name`-filter, the `After` and `InlineMedia` fields of `ListMessagesQuery`, the-`Archived`, `Pinned`, `Muted` and `MuteExpiration` fields of `ChatSummary`, the-`Order` and `Product` fields of `ChatHistoryMessage`, the `APIError` fields-`Code`, `RetryAfter` and `Header`, the refusal of empty and dot ids and the-refusal of a `Do` path that does not begin with `/`; they ship with the next SDK-release. See-[the SDK overview](../README.md#coverage).-## Quick start```go@@ -264,10 +253,10 @@ subdirectory rather than at the repository root:```bash# Correct — `sdk/go/` prefix, matching `module github.com/rmyndharis/OpenWA/sdk/go`-git tag sdk/go/v0.5.0 && git push origin sdk/go/v0.5.0+git tag sdk/go/v0.5.1 && git push origin sdk/go/v0.5.1```-A bare `v0.5.0` tag is the _app_ version and does nothing for this module.+A bare `v0.5.1` tag is the _app_ version and does nothing for this module.Without a prefixed tag, `go get` resolves a pseudo-version(`v0.0.0-<date>-<commit>`) — usable, but callers cannot pin a release.diff --git a/sdk/go/options.go b/sdk/go/options.goindex b625799da..34ab2d074 100644--- a/sdk/go/options.go+++ b/sdk/go/options.go@@ -10,7 +10,7 @@ const DefaultTimeout = 30 * time.Second// DefaultUserAgent is sent on every request unless overridden with// WithUserAgent or a caller-supplied User-Agent header.-const DefaultUserAgent = "openwa-go/0.5.0"+const DefaultUserAgent = "openwa-go/0.5.1"// config is the resolved, internal configuration assembled from the options.type config struct {diff --git a/sdk/java/README.md b/sdk/java/README.mdindex 437f1030c..e4cafe0be 100644--- a/sdk/java/README.md+++ b/sdk/java/README.md@@ -17,27 +17,16 @@ Java 17+, one runtime dependency ([Gson](https://github.com/google/gson)).<dependency><groupId>com.rmyndharis</groupId><artifactId>openwa</artifactId>- <version>0.5.0</version>+ <version>0.5.1</version></dependency>```**Gradle**```groovy-implementation 'com.rmyndharis:openwa:0.5.0'+implementation 'com.rmyndharis:openwa:0.5.1'```-This README describes `main`. The 0.5.0 release lacks, among other additions,-`sessions.getProxy`, `sessions.updateProxy`, `messages.clickButton`, the `name`-filter of `ListSessionsQuery`, the `after` and `inlineMedia` filters of-`ListMessagesQuery`, the `archived`, `pinned`, `muted` and `muteExpiration`-fields of `ChatSummary`, the `order` and `product` fields of-`ChatHistoryMessage`, `WebhookSignature.verify`, the `WebhookDelivery` types, the-`code()`, `retryAfterSeconds()` and `headers()` error accessors, the `UNKNOWN`-enum fallback, the refusal of an empty, `.` or `..` id or path segment and the-refusal of a raw request path that does not begin with `/`; they ship with the-next SDK release. See [the SDK overview](../README.md#coverage).-## Quickstart```java@@ -220,7 +209,7 @@ before tagging rather than tagging to see what happens.Cutting a release:1. Bump `<version>` in `pom.xml` and land it on `main`.-2. Tag that commit `java-sdk-v<version>` (e.g. `java-sdk-v0.5.0`) and push the+2. Tag that commit `java-sdk-v<version>` (e.g. `java-sdk-v0.5.1`) and push thetag. The SDK has its own version line — the monorepo's `v*` tags are the appversion and never trigger an SDK publish.3. The workflow builds, signs, and publishes; Central syncs within a few hours.diff --git a/sdk/java/pom.xml b/sdk/java/pom.xmlindex 66638fd96..eb1fcf303 100644--- a/sdk/java/pom.xml+++ b/sdk/java/pom.xml@@ -6,7 +6,7 @@<groupId>com.rmyndharis</groupId><artifactId>openwa</artifactId>- <version>0.5.0</version>+ <version>0.5.1</version><packaging>jar</packaging><name>OpenWA Java SDK</name>diff --git a/sdk/javascript/README.md b/sdk/javascript/README.mdindex 98f2731f3..e652bad18 100644--- a/sdk/javascript/README.md+++ b/sdk/javascript/README.md@@ -12,17 +12,6 @@ npm install @rmyndharis/openwaRequires Node.js >= 18 (relies on the global `fetch`).-This README describes `main`. The 0.5.0 release lacks, among other additions,-`sessions.getProxy`, `sessions.updateProxy`, `messages.clickButton`, the `name`-filter on `sessions.list`, the `after` and `inlineMedia` keys of the-`messages.list` query, the `archived`, `pinned`, `muted` and `muteExpiration`-fields of `ChatSummary`, the `order` and `product` fields of-`ChatHistoryMessage`, `verifyWebhookSignature`, the `WebhookDelivery` types, the-`code`, `retryAfterSeconds` and `headers` error fields, the refusal of an-empty, `.` or `..` id or path segment and the refusal of a raw request path-that does not begin with `/`; they ship with the next SDK release. See-[the SDK overview](../README.md#coverage).-## Usage```typescript@@ -126,7 +115,7 @@ rejects the publish, so configure it first.Cutting a release:1. Bump `version` in `package.json` and land it on `main`.-2. Tag that commit `js-sdk-v<version>` (e.g. `js-sdk-v0.5.0`) and push the tag.+2. Tag that commit `js-sdk-v<version>` (e.g. `js-sdk-v0.5.1`) and push the tag.The SDK has its own version line — the monorepo's `v*` tags are the appversion and never trigger an SDK publish.3. The workflow re-runs the SDK's tests, typecheck, build and dual CJS/ESMdiff --git a/sdk/javascript/package-lock.json b/sdk/javascript/package-lock.jsonindex 5b8bde730..b9d56fcf4 100644--- a/sdk/javascript/package-lock.json+++ b/sdk/javascript/package-lock.json@@ -1,12 +1,12 @@{"name": "@rmyndharis/openwa",- "version": "0.5.0",+ "version": "0.5.1","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "@openwa/sdk",- "version": "0.5.0",+ "version": "0.5.1","license": "MIT","devDependencies": {"typescript": "^5.7.3",diff --git a/sdk/javascript/package.json b/sdk/javascript/package.jsonindex 1eb789607..5e0f5b582 100644--- a/sdk/javascript/package.json+++ b/sdk/javascript/package.json@@ -1,6 +1,6 @@{"name": "@rmyndharis/openwa",- "version": "0.5.0",+ "version": "0.5.1","description": "Official JavaScript/TypeScript SDK for OpenWA, the open-source WhatsApp API Gateway (not affiliated with WhatsApp or Meta)","type": "module","main": "./dist/cjs/index.js",diff --git a/sdk/php/README.md b/sdk/php/README.mdindex 097690ccd..a79ada66b 100644--- a/sdk/php/README.md+++ b/sdk/php/README.md@@ -12,16 +12,6 @@ composer require rmyndharis/openwaRequires PHP 8.1+ and Guzzle 7. The namespace is `OpenWA\`.-This README describes `main`. The 0.5.0 release lacks `sessions->getProxy`,-`sessions->updateProxy`, `messages->clickButton`, `WebhookSignature::verify`, the-`getErrorCode()`, `getRetryAfterSeconds()` and `getHeaders()` exception methods, the refusal of an-empty, `.` or `..` id, the refusal of a `request()` path that does not begin with `/`, the-`sessions->create()` fix that sends an empty `config` as `{}`, the-`allowInsecureHttp` option (0.5.0 always raises an `E_USER_WARNING` for a non-local `http://`-`baseUrl`) and the `null` return of `catalog->info()` and `catalog->product()` for a missing catalog-or product (0.5.0 throws a `TypeError`); they-ship with the next SDK release. See [the SDK overview](../README.md#coverage).-## Usage```php@@ -147,7 +137,7 @@ Cutting a release:1. If the minor line changes, update `extra.branch-alias.dev-main` in`composer.json` (e.g. `0.1.x-dev` → `0.2.x-dev`) and land it on `main`. Therelease workflow refuses to publish when the alias does not match the tag.-2. Tag that commit `php-sdk-v<version>` (e.g. `php-sdk-v0.5.0`) and push the+2. Tag that commit `php-sdk-v<version>` (e.g. `php-sdk-v0.5.1`) and push thetag. The SDK has its own version line — the monorepo's `v*` tags are the appversion and never trigger an SDK release.3. The workflow runs the test suite, then tags the mirror `<version>` (no `v`diff --git a/sdk/python/README.md b/sdk/python/README.mdindex a0064f87f..8ed824212 100644--- a/sdk/python/README.md+++ b/sdk/python/README.md@@ -12,16 +12,6 @@ pip install rmyndharis-openwaRequires Python 3.9+. The importable module is `openwa`.-This README describes `main`. The 0.5.0 release lacks, among other additions, `sessions.get_proxy`,-`sessions.update_proxy`, `messages.click_button`, `verify_webhook_signature`, the `WebhookDelivery`-type, the `.code`, `.retry_after_seconds` and `.headers` error attributes, the `name` key of-`ListSessionsQuery`, the `after` and `inlineMedia` keys of `ListMessagesQuery`, the `archived`,-`pinned`, `muted` and `muteExpiration` keys of `ChatSummary`, the `order` and `product` keys of-`ChatHistoryMessage`, the refusal of an empty, `.` or `..` id and the `ValueError` that-`client.request` raises for a path that does not begin with `/` (0.5.0 resolves `api/health`-against the base URL); they ship with the next SDK release. See-[the SDK overview](../README.md#coverage).-## Usage```python@@ -166,7 +156,7 @@ rejects the upload, so configure it first.Cutting a release:1. Bump `version` in `pyproject.toml` and land it on `main`.-2. Tag that commit `py-sdk-v<version>` (e.g. `py-sdk-v0.5.0`) and push the tag.+2. Tag that commit `py-sdk-v<version>` (e.g. `py-sdk-v0.5.1`) and push the tag.The SDK has its own version line — the monorepo's `v*` tags are the appversion and never trigger an SDK publish.3. The workflow re-runs the test suite, builds the sdist and wheel, anddiff --git a/sdk/python/pyproject.toml b/sdk/python/pyproject.tomlindex 1c28cbed5..d3feed601 100644--- a/sdk/python/pyproject.toml+++ b/sdk/python/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"[project]name = "rmyndharis-openwa"-version = "0.5.0"+version = "0.5.1"description = "Official Python SDK for OpenWA, the open-source WhatsApp API Gateway (not affiliated with WhatsApp or Meta)"readme = "README.md"license = { text = "MIT" }