UNPKG

@mxlabs/okxnotify

Version:

OKX notification package with Feishu, Cloudflare Workers, and Gemini AI agent integration - Complete bundle

66 lines (65 loc) 1.74 kB
export declare const handleResponse: (response: any) => any; export interface TwitterEntity { tweet_id: string; bookmarks: number; created_at: string; favorites: number; text: string; views: string; quotes: number; replies: number; retweets: number; conversation_id: string; media: { photo: { media_url_https: string; id: string; }[]; }; author: { rest_id: string; name: string; screen_name: string; avatar: string; blue_verified: boolean; }; quoted?: TwitterEntity[]; } export interface TimelineResponse { pinned?: TwitterEntity; timeline: TwitterEntity[]; } /** * 获取 Twitter 用户的时间线,发推记录 * @param username 用户名 * @returns 时间线 */ export declare const fetchTwitterTimelineByUsername: (username: string) => Promise<TimelineResponse>; export interface SearchEntityItem { tweet_id: string; screen_name: string; created_at: string; /** 内容关键字段, 推文内容 */ text: string; user_info: { screen_name: string; name: string; created_at: string; description: string; rest_id: string; followers_count: number; }; } export interface SearchCommunitiesTopResponse { timeline: SearchEntityItem[]; } /** * 获取 Twitter 社区的 top 帖子 * @returns 社区的 top 帖子 */ export declare const fetchSearchCommunitiesTop: (keyword: string) => Promise<SearchCommunitiesTopResponse>; /** * 搜索关键词的 top 帖子 * @returns 关键词的 top 帖子 */ export declare const fetchSearchKeywordTop: (keyword: string) => Promise<SearchCommunitiesTopResponse>;