Overview
API reference for the Chat SDK core package.
Complete API reference for the chat package. All exports are available from the top-level import:
import { Chat, root, paragraph, text, Card, Button, emoji } from "chat";Core
| Export | Description |
|---|---|
Chat | Main class — registers adapters, event handlers, and webhook routing |
Thread | Conversation thread with methods for posting, subscribing, and state |
Channel | Channel/conversation container that holds threads |
Message | Normalized message with text, AST, author, and metadata |
Message formats
| Export | Description |
|---|---|
PostableMessage | Union type accepted by thread.post() |
Cards | Rich card components — Card, Text, Button, Actions, etc. |
Markdown | AST builder functions — root, paragraph, text, strong, etc. |
Modals | Modal form components — Modal, TextInput, Select, etc. |