Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

781 B
Raw Blame
import type { AccessLevel } from "../../data/visibility";

/** The access levels as they apply to a room. The shared wording speaks to
 * the owner ("only you"); this holds for whoever is viewing, and a private
 * room is also seen by those taking part in it. */
export const ROOM_ACCESS_HELPERS: Record<AccessLevel, string> = {
  private:
    "Only those taking part in the room, its owner and admins can see it. Only its owner and admins can change it.",
  read_only:
    "Everyone in the workspace can see it. Only its owner and admins can change it.",
  public:
    "Everyone in the workspace can see and change it. Only its owner and admins can change its access.",
};

export const ROOM_ACCESS_OPTION_LABELS: Partial<Record<AccessLevel, string>> = {
  private: "Private",
};