diff --git a/extensions/whatsapp/src/runtime-api.ts b/extensions/whatsapp/src/runtime-api.ts index 86e9c117f72..749374d0998 100644 --- a/extensions/whatsapp/src/runtime-api.ts +++ b/extensions/whatsapp/src/runtime-api.ts @@ -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["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 | null = null;