UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

10 lines (9 loc) • 387 B
import { c as normalizeOptionalLowercaseString } from "./string-coerce-1VuiLaaR.mjs"; //#region src/channels/chat-type.ts function normalizeChatType(raw) { const value = normalizeOptionalLowercaseString(raw); if (value === "dm") return "direct"; return value === "direct" || value === "group" || value === "channel" ? value : void 0; } //#endregion export { normalizeChatType as t };