From 39c96144f8c903e2d38a271dd9390d2aba307892 Mon Sep 17 00:00:00 2001 From: Yudhi Armyndharis Date: Mon, 27 Jul 2026 01:32:00 +0700 Subject: [PATCH] fix(types,http-action): align the vendored SDK type and http-action floor with core MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two low-severity contract-drift fixes against core 0.10.10. types/openwa.d.ts: add the two HookEvents core dispatches that the vendored SDK type omitted — message:persisted and ingress:error. A plugin that wrote ctx.registerHook('message:persisted', …) against this type got a TypeScript error even though the host would accept and dispatch it; the runtime allowed what the type forbade. The type now mirrors core's HookEvent union (19 events). http-action: minOpenWAVersion 0.8.7 → 0.8.0. The two capabilities http-action relies on — conversation:send and net.allowConfigHosts — both shipped in 0.8.0 (the Integration Fabric release). The 0.8.7 floor was overstated by seven patch versions, refusing an install on servers that would in fact run the plugin correctly. Widening compatibility, not a behaviour change — no version bump. plugins.json + http-action/README regenerated by `npm run catalog` so the catalog and the manifest stay in sync (the catalog:check CI gate). --- http-action/README.md | 2 +- http-action/manifest.json | 2 +- plugins.json | 2 +- types/openwa.d.ts | 5 +++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/http-action/README.md b/http-action/README.md index 292f553..f906a86 100644 --- a/http-action/README.md +++ b/http-action/README.md @@ -20,7 +20,7 @@ | **Author** | Yudhi Armyndharis | | **License** | MIT | | **Type** | `extension` | -| **Requires OpenWA** | ≥ 0.8.7 (tested null) | +| **Requires OpenWA** | ≥ 0.8.0 (tested null) | | **Keywords** | api, rest, automation, connector, whatsapp, openwa | | **Repository** | [OpenWA-plugins/http-action](https://github.com/rmyndharis/OpenWA-plugins/tree/main/http-action) | diff --git a/http-action/manifest.json b/http-action/manifest.json index 016febe..3c4c60e 100644 --- a/http-action/manifest.json +++ b/http-action/manifest.json @@ -11,7 +11,7 @@ "repository": "https://github.com/rmyndharis/OpenWA-plugins", "keywords": ["api", "rest", "automation", "connector", "whatsapp", "openwa"], "status": "beta", - "minOpenWAVersion": "0.8.7", + "minOpenWAVersion": "0.8.0", "sdkVersion": "1", "provides": ["api-automation", "rest-connector", "dynamic-reply"], "permissions": ["net:fetch", "conversation:send"], diff --git a/plugins.json b/plugins.json index 96aa969..cd9c610 100644 --- a/plugins.json +++ b/plugins.json @@ -1285,7 +1285,7 @@ "whatsapp", "openwa" ], - "minOpenWAVersion": "0.8.7", + "minOpenWAVersion": "0.8.0", "testedOpenWAVersion": null, "releasedAt": "2026-07-11", "repoPath": "http-action", diff --git a/types/openwa.d.ts b/types/openwa.d.ts index 48b9ecd..516c70b 100644 --- a/types/openwa.d.ts +++ b/types/openwa.d.ts @@ -11,8 +11,9 @@ export type HookEvent = | 'session:created' | 'session:starting' | 'session:ready' | 'session:qr' | 'session:disconnected' | 'session:error' | 'session:deleted' - | 'message:received' | 'message:sending' | 'message:sent' | 'message:failed' | 'message:ack' - | 'webhook:before' | 'webhook:queued' | 'webhook:delivered' | 'webhook:after' | 'webhook:error'; + | 'message:received' | 'message:sending' | 'message:sent' | 'message:failed' | 'message:ack' | 'message:persisted' + | 'webhook:before' | 'webhook:queued' | 'webhook:delivered' | 'webhook:after' | 'webhook:error' + | 'ingress:error'; export interface HookContext { event: HookEvent;