Component evidence

Vellum Assistant Channel Types (channels/types.ts)

vellum-assistant · assistant/src/channels/types.ts · typescript · MIT
ailang:typescripttag:channels

Defines types and guard utilities for communication channels and host proxy capabilities. Use when integrating messaging channels in AI assistants.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/vellum-ai/vellum-assistant | License: MIT | Copyright 2025 Vellum AI
// Provided via justclaw.it.com; keep this notice with the code.
import {
  CHANNEL_IDS,
  type ChannelId,
  isChannelId,
} from "@vellumai/service-contracts/channels";

import {
  HOST_PROXY_CAPABILITIES,
  HOST_PROXY_SUPPORT,
  hostProxyCapabilities,
  type HostProxyCapability,
  type HostProxyInterfaceId,
  isHostProxyInterfaceId,
} from "../types/host-capabilities.js";

// The assistant understands the full canonical channel set, so it adopts the
// shared vocabulary wholesale. `parseChannelId` stays local — it is only used
// daemon-side and is a thin convenience over the shared guard.
export { CHANNEL_IDS, type ChannelId, isChannelId };

export function parseChannelId(value: unknown): C

... (truncated -- full source via MCP)