features: supports WeChat channel

This commit is contained in:
xintaofei
2026-04-02 00:17:23 +08:00
parent a34d14bf59
commit 8050e30a55
25 changed files with 1223 additions and 65 deletions

View File

@@ -1440,3 +1440,23 @@ export async function getChatMessageLanguage(): Promise<string> {
export async function setChatMessageLanguage(language: string): Promise<void> {
return getTransport().call("set_chat_message_language", { language })
}
// ─── WeChat QR Code Auth ───
export async function weixinGetQrcode(): Promise<{
qrcode_id: string
qrcode_img_content: string
}> {
return getTransport().call("weixin_get_qrcode")
}
export async function weixinCheckQrcode(
channelId: number,
qrcode: string
): Promise<{
status: string
bot_token?: string
base_url?: string
}> {
return getTransport().call("weixin_check_qrcode", { channelId, qrcode })
}

View File

@@ -850,7 +850,7 @@ export interface PreflightResult {
// ─── Chat Channels ───
export type ChannelType = "lark" | "telegram"
export type ChannelType = "lark" | "telegram" | "weixin"
export type ChannelConnectionStatus =
| "connected"