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.

1.2 KB
Raw Blame
export const CHANNEL_PROVIDER_IDS = ["telegram", "discord"] as const;
export type ChannelProviderId = (typeof CHANNEL_PROVIDER_IDS)[number];

export type ChannelCredentialRef = {
  user: string;
  connection: string;
};

export type ChannelCheck = {
  at: string;
  ok: boolean;
  detail: string;
};

export type ChannelRecord = {
  id: string;
  name: string;
  provider: ChannelProviderId;
  credential: ChannelCredentialRef;
  enabled: boolean;
  defaultTarget?: string;
  workflowId?: string;
  agentGroupId?: string;
  workflowBinding?: { owner: string; nodeId: string; revision: string };
  createdAt: string;
  updatedAt: string;
  lastCheck?: ChannelCheck;
  lastActivityAt?: string;
};

export type ChannelState = {
  version: 1;
  revision: number;
  channels: ChannelRecord[];
};

export type ChannelInboundEvent = {
  provider: ChannelProviderId;
  eventId: string;
  kind: string;
  target?: string;
  sender?: string;
  text?: string;
  receivedAt: string;
  raw: unknown;
};

export type ChannelProviderCapability = {
  id: ChannelProviderId;
  title: string;
  inbound: "webhook" | "interactions";
  sendText: boolean;
  inboundEvents: boolean;
  notes: string;
};