-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Motivation
The chat SDK currently supports Slack, Google Chat, and Microsoft Teams. Feishu (飞书) / Lark is the dominant enterprise communication platform in China and growing internationally — it's used by ByteDance, and many companies in APAC rely on it as their primary workspace.
Adding Feishu support would significantly expand the SDK's reach into the Chinese enterprise market, where Slack/Teams adoption is limited.
Scope
A new @chat-adapter/feishu package implementing the full Adapter interface:
- Webhook handling — Feishu Event v2.0 schema, URL verification challenge, AES-256-CBC encrypted event decryption
- Message operations — send, reply, edit, delete, fetch via Feishu Open API v1
- Rich text — markdown ↔ Feishu post (富文本) format conversion via mdast
- Interactive cards — card message support with Feishu card template mapping
- Reactions — emoji mapping verified against official Feishu emoji docs (Feishu uses a proprietary naming system with inconsistent casing)
- Auth — auto-refreshing
tenant_access_tokenwith concurrent-safe refresh - Thread IDs —
feishu:{chatId}[:{rootId}][:{dm}]format, consistent with existing adapter conventions
Minor upstream changes
chatpackage: add"feishu"toconvertEmojiPlaceholdersplatform union@chat-adapter/shared: add"feishu"toPlatformNametype and button style mappings
References
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels