Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

1.1 KB
Raw Blame
export type ViewMode = 'card' | 'list';

export type StatusFilter = 'all' | 'active' | 'running' | 'completed' | 'archived';

/**
 * `bot` is an IM bot platform (Discord, Telegram, …); `channel` is a multi-agent Channel, whose
 * conversations are listed as Channels rather than as topics; `share` lists visitors' direct
 * Channels with the Agent through its share link.
 */
export type TriggerFilter =
  'chat' | 'api' | 'task' | 'eval' | 'bot' | 'channel' | 'share' | 'webhook';

export type TimeRangeFilter = 'all' | 'today' | 'week' | 'month';

export type SortBy = 'updatedAt' | 'createdAt' | 'title';

export type GroupBy = 'byProject' | 'byTime' | 'none';

/**
 * A bot source platform, identified by `topic.metadata.bot.platform`
 * (e.g. `discord` / `telegram`). One value selects topics that arrived
 * through any channel of that platform's bot.
 */
export type BotChannelFilter = string;

/** One selectable bot source platform inside the flattened channel menu. */
export interface BotChannelOption {
  /** Platform id, e.g. `discord` — the filter value. */
  key: string;
  /** Display label, e.g. `Discord` / `Telegram`. */
  label: string;
}