openclaw-home-pc/openclaw/extensions/xiaoyi/dist/push.d.ts
2026-03-24 04:00:48 +08:00

29 lines
811 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { XiaoYiChannelConfig } from "./types";
/**
* Push message sending service
* Sends notifications to XiaoYi clients via webhook API
*/
export declare class XiaoYiPushService {
private config;
private readonly pushUrl;
constructor(config: XiaoYiChannelConfig);
/**
* Check if push functionality is configured
*/
isConfigured(): boolean;
/**
* Generate HMAC-SHA256 signature
*/
private generateSignature;
/**
* Generate UUID
*/
private generateUUID;
/**
* Send push notification (with summary text)
* @param text - Summary text to send (e.g., first 30 characters)
* @param pushText - Push notification message (e.g., "任务已完成xxx...")
*/
sendPush(text: string, pushText: string): Promise<boolean>;
}