refactor: share webhook channel status helpers

This commit is contained in:
Peter Steinberger
2026-03-29 02:10:58 +01:00
parent 2afc655bd5
commit 148a65fe90
16 changed files with 610 additions and 418 deletions

View File

@@ -1,4 +1,4 @@
import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
import { describeWebhookAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
import { formatNormalizedAllowFromEntries } from "openclaw/plugin-sdk/allow-from";
import {
adaptScopedAccountAccessor,
@@ -58,12 +58,11 @@ export const bluebubblesConfigAdapter =
});
export function describeBlueBubblesAccount(account: ResolvedBlueBubblesAccount) {
return describeAccountSnapshot({
return describeWebhookAccountSnapshot({
account,
configured: account.configured,
extra: {
baseUrl: account.baseUrl,
mode: "webhook",
},
});
}