@mxlabs/okxnotify
Version:
OKX notification package with Feishu, Cloudflare Workers, and Gemini AI agent integration - Complete bundle
37 lines (36 loc) • 1.05 kB
TypeScript
export interface FeishuRobotMessageResponse {
code: number;
data: {
body: {
content: string;
};
chat_id: string;
create_time: string;
deleted: false;
message_id: string;
msg_type: 'text' | 'post' | 'interactive';
sender: {
id: string;
id_type: 'app_id' | 'user_id' | 'chat_id' | 'union_group_id' | 'email' | 'open_id';
sender_type: 'app' | 'user' | 'chat' | 'group' | 'email' | 'open_id';
tenant_key: string;
};
update_time: string;
updated: boolean;
};
msg: string;
}
export declare const replyFeishuRobotTextMessage: ({ userId, text, }: {
userId: string;
text: string;
}) => Promise<FeishuRobotMessageResponse>;
/**
* 回复飞书富文本消息
* @param param0
* @returns
*/
export declare const replyFeishuRobotPostMessage: ({ title, userId, richList, }: {
title: string;
userId: string;
richList: Array<string>;
}) => Promise<FeishuRobotMessageResponse>;