export interface FeishuConfig { appId: string; appSecret: string; channelId?: string; verificationToken?: string; } export interface FeishuMessage { message_id: string; root_id?: string; parent_id?: string; chat_id: string; message_type: string; content: string; create_time: string; sender: { sender_id: { union_id?: string; user_id?: string; open_id?: string; }; sender_type: string; }; } export interface FeishuEvent { schema: string; header: { event_id: string; event_type: string; create_time: string; token: string; app_id: string; tenant_key: string; }; event: { sender: { sender_id: { union_id?: string; user_id?: string; open_id?: string; }; sender_type: string; tenant_key: string; }; message: FeishuMessage; }; } export interface FeishuCardAction { tag: 'button'; text: { tag: 'plain_text'; content: string; }; type: 'primary' | 'default' | 'danger'; value: Record; } export interface FeishuNoteElement { tag: 'plain_text'; content: string; } export interface FeishuCardElement { tag: 'div' | 'markdown' | 'note' | 'hr' | 'action' | 'code'; text?: { tag: 'plain_text' | 'lark_md'; content: string; }; content?: string; language?: string; elements?: FeishuNoteElement[]; actions?: FeishuCardAction[]; } export interface FeishuCard { config?: { wide_screen_mode?: boolean; }; header?: { title: { tag: 'plain_text'; content: string; }; subtitle?: { tag: 'plain_text'; content: string; }; template?: string; }; elements: FeishuCardElement[]; } export interface CardCallbackEvent { schema: string; header: { event_id: string; event_type: string; create_time: string; token: string; app_id: string; tenant_key: string; }; event: { operator: { open_id: string; user_id?: string; union_id?: string; }; action: { value: Record; }; context: { open_message_id: string; open_chat_id: string; }; }; } //# sourceMappingURL=types.d.ts.map