mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-27 19:36:39 +01:00
37 lines
807 B
TypeScript
37 lines
807 B
TypeScript
import {
|
|
createRuntimeWhatsAppLoginTool,
|
|
getActiveWebListener,
|
|
getWebAuthAgeMs,
|
|
handleWhatsAppAction,
|
|
logWebSelfId,
|
|
loginWeb,
|
|
logoutWeb,
|
|
monitorWebChannel,
|
|
readWebSelfId,
|
|
sendMessageWhatsApp,
|
|
sendPollWhatsApp,
|
|
startWebLoginWithQr,
|
|
waitForWebLogin,
|
|
webAuthExists,
|
|
} from "./runtime-whatsapp-boundary.js";
|
|
import type { PluginRuntime } from "./types.js";
|
|
|
|
export function createRuntimeWhatsApp(): PluginRuntime["channel"]["whatsapp"] {
|
|
return {
|
|
getActiveWebListener,
|
|
getWebAuthAgeMs,
|
|
logoutWeb,
|
|
logWebSelfId,
|
|
readWebSelfId,
|
|
webAuthExists,
|
|
sendMessageWhatsApp,
|
|
sendPollWhatsApp,
|
|
loginWeb,
|
|
startWebLoginWithQr,
|
|
waitForWebLogin,
|
|
monitorWebChannel,
|
|
handleWhatsAppAction,
|
|
createLoginTool: createRuntimeWhatsAppLoginTool,
|
|
};
|
|
}
|