TypeScript definitions for multi‑platform bot message structures.
// Source: https://github.com/markus-global/markus | License: Apache-2.0 | Copyright 2026 Markus Contributors
// Provided via justclaw.it.com; keep this notice with the code.
export type MessageDirection = 'inbound' | 'outbound';
export type MessagePlatform =
| 'feishu'
| 'whatsapp'
| 'slack'
| 'telegram'
| 'discord'
| 'webui'
| 'internal';
/**
* Conversation kind inside a bot instance (messaging gateway, design §6.2).
* `main` is a *designation* (the channel is the agent's home), not a native
* platform type; adapters report `dm` / `group` / `notification` and the gateway
* may promote a channel to `main` from its binding.
*/
export type MessageChannelKind = 'main' | 'dm' | 'group' | 'notification';
export interface Message {
id: string;
platform: MessagePlatform;
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key