30 lines
1.1 KiB
TypeScript
Raw Permalink Normal View History

import type { AnyAgentTool, OpenClawPluginApi } from "openclaw/plugin-sdk/zalouser";
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk/zalouser";
2026-01-20 13:29:19 +00:00
import { zalouserDock, zalouserPlugin } from "./src/channel.js";
import { setZalouserRuntime } from "./src/runtime.js";
import { ZalouserToolSchema, executeZalouserTool } from "./src/tool.js";
const plugin = {
id: "zalouser",
name: "Zalo Personal",
description: "Zalo personal account messaging via native zca-js integration",
2026-01-19 03:38:51 +00:00
configSchema: emptyPluginConfigSchema(),
2026-01-30 03:15:10 +01:00
register(api: OpenClawPluginApi) {
setZalouserRuntime(api.runtime);
2026-01-20 13:29:19 +00:00
api.registerChannel({ plugin: zalouserPlugin, dock: zalouserDock });
api.registerTool({
name: "zalouser",
label: "Zalo Personal",
description:
"Send messages and access data via Zalo personal account. " +
"Actions: send (text message), image (send image URL), link (send link), " +
"friends (list/search friends), groups (list groups), me (profile info), status (auth check).",
parameters: ZalouserToolSchema,
execute: executeZalouserTool,
} as AnyAgentTool);
},
};
export default plugin;