Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

899 B
Raw Blame
import type { ChannelProviderCapability, ChannelProviderId } from "./types";
import { ChannelError } from "./errors";

const providers: Record<ChannelProviderId, ChannelProviderCapability> = {
  telegram: {
    id: "telegram",
    title: "Telegram",
    inbound: "webhook",
    sendText: true,
    inboundEvents: true,
    notes: "Bot API send + verified webhook updates.",
  },
  discord: {
    id: "discord",
    title: "Discord",
    inbound: "interactions",
    sendText: true,
    inboundEvents: true,
    notes: "REST send + signed Interactions endpoint. Gateway message ingestion is not enabled.",
  },
};

export const listChannelProviders = () => Object.values(providers).map((value) => ({ ...value }));
export function channelProvider(id: ChannelProviderId) {
  const provider = providers[id];
  if (!provider) throw new ChannelError("unknown_channel_provider", 404);
  return provider;
}