fix(ci): reuse sdk tool auth error for whatsapp

This commit is contained in:
Peter Steinberger 2026-04-03 11:34:09 +01:00
parent 5400980305
commit 52225db134
No known key found for this signature in database
1 changed files with 1 additions and 7 deletions

View File

@ -14,6 +14,7 @@ export {
jsonResult,
readReactionParams,
readStringParam,
ToolAuthorizationError,
} from "openclaw/plugin-sdk/channel-actions";
export { normalizeE164 } from "openclaw/plugin-sdk/account-resolution";
export type { DmPolicy, GroupPolicy } from "openclaw/plugin-sdk/config-runtime";
@ -47,13 +48,6 @@ export type WhatsAppAccountConfig = NonNullable<
NonNullable<NonNullable<RuntimeOpenClawConfig["channels"]>["whatsapp"]>["accounts"]
>[string];
export class ToolAuthorizationError extends Error {
constructor(message: string) {
super(message);
this.name = "ToolAuthorizationError";
}
}
type MonitorWebChannel = typeof import("./channel.runtime.js").monitorWebChannel;
let channelRuntimePromise: Promise<typeof import("./channel.runtime.js")> | null = null;