Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Record bot access changes, answered access requests and owner changes in Activity (#4162)
Azad Jagtapca5f0bacb914
diff --git a/server/cloud-team-bot-access.e2e.test.ts b/server/cloud-team-bot-access.e2e.test.tsindex a93d5d05b1..af50dad513 100644--- a/server/cloud-team-bot-access.e2e.test.ts+++ b/server/cloud-team-bot-access.e2e.test.ts@@ -370,4 +370,23 @@ describe("asking to chat", () => {expect(refused.status, JSON.stringify(refused.body)).toBe(403);expect((await botOf("eve", atlas.id))).toMatchObject({ yourAccess: "view" });});++ it("shows each sharing change, answered ask and owner hand-over in the admins' Activity", async () => {+ type Entry = { who: string; action: string; target?: { id: string; name?: string }; after?: Record<string, unknown> };+ const activity = async (who = "ada") => ((await as(who, "GET", "/api/admin-activity?what=visibility")).body.entries ?? []) as Entry[];+ const made = await as("ada", "POST", "/api/bots", { name: "Archive", reportsTo: CARA.email });+ const archive = made.body.bot as Bot;+ expect((await share("ada", archive.id, { everyone: "none", people: { [EVE.email]: "view" } })).status).toBe(200);+ expect((await as("eve", "POST", `/api/bots/${archive.id}/access-request`)).status).toBe(201);+ expect((await answer("cara", (await asks("cara", archive.id))[0]!, "Allow")).status).toBe(200);+ expect((await as("ada", "PUT", `/api/bots/${archive.id}/reports-to`, { email: DAN.email })).status).toBe(200);+ await until(async () => (await activity()).filter((entry) => entry.target?.id === archive.id).length >= 2);+ const rows = (await activity()).filter((entry) => entry.target?.id === archive.id);+ expect(rows).toEqual(expect.arrayContaining([+ expect.objectContaining({ action: "access.update", target: expect.objectContaining({ name: "Archive" }), after: { access: { everyone: "none", people: { [EVE.email]: "view" } } } }),+ expect.objectContaining({ action: "access.allow", who: expect.stringContaining(CARA.email) }),+ ]));+ await until(async () => ((await as("ada", "GET", "/api/admin-activity?what=bot")).body.entries as Entry[]).some((entry) => entry.action === "owner.update" && entry.target?.id === archive.id));+ expect((await as("bob", "GET", "/api/admin-activity?what=visibility")).status, "a member never reads it").toBe(403);+ });});diff --git a/server/host/access-requests.test.ts b/server/host/access-requests.test.tsindex 6092482d03..b368602d5b 100644--- a/server/host/access-requests.test.ts+++ b/server/host/access-requests.test.ts@@ -20,6 +20,7 @@ function fixture(bot: Partial<BotRecord>) {const homes = new Map([OLIVE, ADA, BOB].map((person) => [key(person.email), `inbox-${person.email}`]));const levels: Record<string, BotAccessLevel> = { [OLIVE.email]: "edit", [ADA.email]: "edit", [BOB.email]: "view" };const writes: unknown[] = [];+ const audited: Array<{ row: { action: string; after?: unknown }; by: string }> = [];const record = { id: "ledger", name: "Ledger", threadId: "t-ledger", createdBy: "[email protected]", access: { everyone: "none", people: { [BOB.email]: "view" } }, ...bot } as BotRecord;const requests = createAccessRequests({team: { id: "team-acme", name: "Acme" } as never,@@ -45,6 +46,7 @@ function fixture(bot: Partial<BotRecord>) {visibleTo: (viewer) => ({ level: () => levels[viewer.email ?? ""] ?? "none" }) as unknown as VisibleSet,levelOf: (auth) => levels[auth.kind === "session" ? auth.session.email ?? "" : ""] ?? "none",writeAccess: (_bot, access) => { writes.push(access); return record; },+ record: (row, by) => { audited.push({ row, by }); },});const ask = async (email: string) => {let answered: { status: number; body: unknown } | undefined;@@ -53,12 +55,12 @@ function fixture(bot: Partial<BotRecord>) {return answered!;};const cards = (email: string) => (threads.get(`inbox-${email}`) ?? []).filter((line) => line.card?.accessRequest);- return { requests, ask, cards, writes, threads };+ return { requests, ask, cards, writes, threads, audited, record };}describe("asking to chat", () => {it("asks every admin when the bot's owner is no longer on the team, and one admin's Allow settles every copy", async () => {- const { requests, ask, cards, writes } = fixture({});+ const { requests, ask, cards, writes, audited } = fixture({});expect(await ask(BOB.email)).toMatchObject({ status: 201, body: { asked: [{ email: OLIVE.email }, { email: ADA.email }] } });expect((await ask(BOB.email)).status, "asked once").toBe(200);expect(cards(OLIVE.email)).toHaveLength(1);@@ -66,19 +68,33 @@ describe("asking to chat", () => {const card = cards(ADA.email)[0]!.card!;expect(requests.resolve(`inbox-${ADA.email}`, card.requestId!, "answer", "Allow")).toMatchObject({ status: 200, body: { outcome: "allowed" } });expect(writes).toEqual([{ everyone: "none", people: { [BOB.email]: "chat" } }]);+ // Settings → Activity: who allowed whom, on which bot, and the access it now has.+ expect(audited).toEqual([{ by: ADA.email, row: expect.objectContaining({ category: "visibility", action: "access.allow", target: { kind: "bot", id: "ledger", name: "Ledger" }, after: { access: { everyone: "none", people: { [BOB.email]: "chat" } }, asked: BOB.email } }) }]);expect(cards(OLIVE.email)[0]!.card).toMatchObject({ answered: "answer", answeredText: "Allow" });expect(requests.resolve(`inbox-${OLIVE.email}`, cards(OLIVE.email)[0]!.card!.requestId!, "answer", "Allow")?.status).toBe(409);});it("asks the owner alone while they are on the team, and Not now gives nothing", async () => {- const { requests, ask, cards, writes } = fixture({ reportsTo: OLIVE.email });+ const { requests, ask, cards, writes, audited } = fixture({ reportsTo: OLIVE.email });expect(await ask(BOB.email)).toMatchObject({ status: 201, body: { asked: [{ email: OLIVE.email }] } });expect(cards(ADA.email)).toEqual([]);expect(requests.resolve(`inbox-${OLIVE.email}`, cards(OLIVE.email)[0]!.card!.requestId!, "answer", "Not now")).toMatchObject({ body: { outcome: "declined" } });expect(writes).toEqual([]);+ expect(audited).toEqual([{ by: OLIVE.email, row: expect.objectContaining({ action: "access.decline", after: { asked: BOB.email } }) }]);expect(requests.resolve(`inbox-${OLIVE.email}`, "some-other-card", "answer", "Allow")).toBeNull();});+ it("records the access as it stands when the asker already got more than chat before the Allow", async () => {+ const { requests, ask, cards, writes, audited, record } = fixture({ reportsTo: OLIVE.email });+ await ask(BOB.email);+ const card = cards(OLIVE.email)[0]!.card!;+ const raised = { everyone: "none" as const, people: { [BOB.email]: "edit" as const } };+ record.access = raised;+ expect(requests.resolve(`inbox-${OLIVE.email}`, card.requestId!, "answer", "Allow")?.status).toBe(200);+ expect(writes).toEqual([]);+ expect(audited[0]!.row.after).toEqual({ access: raised, asked: BOB.email });+ });+it("refuses an ask from someone who can already chat", async () => {const { ask } = fixture({});expect((await ask(ADA.email)).status).toBe(409);diff --git a/server/host/access-requests.ts b/server/host/access-requests.tsindex edec2dc015..54fdd8e136 100644--- a/server/host/access-requests.ts+++ b/server/host/access-requests.ts@@ -2,6 +2,7 @@// the inbox of the bot's owner (or of each admin, when nobody owns it). Allow gives the asker Can chat at once and tells// them in their own inbox. Security: the route is client-scoped and the gate lets anyone who can view the bot reach it;// the card's answer takes effect only while the person answering can edit the bot.+import type { AdminActionRow } from "../admin-activity.ts";import { randomUUID } from "node:crypto";import { ACCESS_REQUEST_OPTIONS, atLeast, type BotAccessLevel } from "../../shared/bot-access.ts";@@ -34,6 +35,8 @@ export interface AccessRequestDeps {visibleTo(viewer: Viewer): VisibleSet;levelOf(auth: RequestAuth, botId: string): BotAccessLevel;writeAccess(bot: BotRecord, access: ReturnType<typeof accessOf>): BotRecord | null;+ /** Settings → Activity, as the person who answered from their inbox. */+ record?(row: Omit<AdminActionRow, "at" | "actor">, by: string): void;}export function createAccessRequests(deps: AccessRequestDeps) {@@ -99,12 +102,16 @@ export function createAccessRequests(deps: AccessRequestDeps) {if (allow) {if (!bot || !person || levelFor(person, bot.id) !== "edit") return { status: 403, body: { error: `Only people who can edit ${ask.botName} can let someone chat with it.` } };const access = accessOf(bot);- if (!atLeast(access.people[ask.email], "chat")) deps.writeAccess(bot, { everyone: access.everyone, people: { ...access.people, [ask.email]: "chat" } });+ const raised = !atLeast(access.people[ask.email], "chat");+ const after = raised ? { everyone: access.everyone, people: { ...access.people, [ask.email]: "chat" as const } } : access;+ if (raised) deps.writeAccess(bot, after);+ deps.record?.({ category: "visibility", action: "access.allow", target: { kind: "bot", id: bot.id, name: bot.name }, before: { access, asked: ask.email }, after: { access: after, asked: ask.email } }, person.email);deps.inbox().deliver(personKeyOf(ask.email), {kind: "notice", from: { name: nameOf(person.email), email: person.email },text: `${nameOf(person.email)} let you chat with ${bot.name}.`, title: `You can chat with ${bot.name}`, notify: "done",});}+ if (!allow && bot && person) deps.record?.({ category: "visibility", action: "access.decline", target: { kind: "bot", id: bot.id, name: bot.name }, after: { asked: ask.email } }, person.email);for (const open of [{ threadId, line }, ...(bot ? openAsks(bot, ask.email).filter((other) => other.threadId !== threadId) : [])]) {deps.store().patchMessage(open.threadId, open.line.id, { card: { ...open.line.card!, answered: "answer", answeredText: allow ? ACCESS_REQUEST_OPTIONS[0] : ACCESS_REQUEST_OPTIONS[1] } });}diff --git a/server/index.ts b/server/index.tsindex 41c3813e5f..1cece45870 100644--- a/server/index.ts+++ b/server/index.ts@@ -1185,7 +1185,7 @@ async function answeringCardAs(auth: RequestAuth, threadId: string, requestId: s}const { viewerFor, threadOwner, visibleTo, forgetVisibility, threadShown, subjectVisible, hiddenRoutineTarget, roomFeedsBot, settleRoomFloor } = createVisibilityHost({ store: () => store, routines: () => routines,- team: Boolean(CLOUD_TEAM), audiencesFor: (viewer) => teamHost.audiencesFor(viewer), threadsReferencing }); if (CLOUD_TEAM) hideOthersSyncFolders(() => store.bots, threadShown); const botAccess = createBotAccessHost({ visibleFor: (auth) => visibleTo(viewerFor(auth)), store: () => store, routines: () => routines, threadOwner, routineWriter: (id) => cloudRoutineAuthors?.writer(id) }), { levelOf } = botAccess; const accessRequests = createAccessRequests({ team: CLOUD_TEAM, store: () => store, people: () => teamOwners.people?.list() ?? [], profileName: (email) => teamHost.people.profile(personKey({ id: "", email })).name, inbox: () => teamMessages.inbox, visibleTo, levelOf, writeAccess: (bot, access) => writeAccess({ store, publicGroupState, broadcast, audienceChanged }, bot, access) });+ team: Boolean(CLOUD_TEAM), audiencesFor: (viewer) => teamHost.audiencesFor(viewer), threadsReferencing }); if (CLOUD_TEAM) hideOthersSyncFolders(() => store.bots, threadShown); const botAccess = createBotAccessHost({ visibleFor: (auth) => visibleTo(viewerFor(auth)), store: () => store, routines: () => routines, threadOwner, routineWriter: (id) => cloudRoutineAuthors?.writer(id) }), { levelOf } = botAccess; const accessRequests = createAccessRequests({ team: CLOUD_TEAM, store: () => store, people: () => teamOwners.people?.list() ?? [], profileName: (email) => teamHost.people.profile(personKey({ id: "", email })).name, inbox: () => teamMessages.inbox, visibleTo, levelOf, writeAccess: (bot, access) => writeAccess({ store, publicGroupState, broadcast, audienceChanged }, bot, access), record: (row, by) => appendAdminAction(DATA_DIR, { ...row, actor: { kind: "session", sessionId: "", label: by, email: by } }) });function recentWorkFilter(threadId: string): { include?: (threadId: string) => boolean; privateThread?: (threadId: string) => boolean } {return CLOUD_TEAM ? { include: teamHost.readableFrom(threadId), privateThread: (id) => teamHost.privateTo(id) !== null } : CLOUD_HOME ? { include: cloudOwnerOnlyThread } : {};@@ -12284,7 +12284,7 @@ ROUTES.push(createBotCreateRoutes({routines: () => routines,storedAvatarExists, defaultSelection, checkedModelSelection, cloudOwnerSession, wireBot, team: CLOUD_TEAM && teamOwners.people ? { name: CLOUD_TEAM.name, people: teamOwners.people } : null,personaliseSetupCard: (bot) => setupSuggestions.personalise(bot.id),-}), createTeamOwnerRoutes({ team: CLOUD_TEAM, people: teamOwners.people, store, sees: (auth, botId) => visibleTo(viewerFor(auth)).bot(botId), publicBot,+}), createTeamOwnerRoutes({ team: CLOUD_TEAM, people: teamOwners.people, store, record: (auth, row) => appendAdminAction(DATA_DIR, { ...row, actor: decisionActorFor(auth) }), sees: (auth, botId) => visibleTo(viewerFor(auth)).bot(botId), publicBot,profileOf: (email) => teamHost.people.profile(personKey({ id: "", email })) }));ROUTES.push(createBotSettingsRoutes({store, cfg, registry, commandAllowlist, commandAllowlistDrivers: COMMAND_ALLOWLIST_DRIVERS,@@ -12293,7 +12293,7 @@ ROUTES.push(createBotSettingsRoutes({requestedTaskBot, threadBusy, activeGroupTurnForBot, checkedModelSelection, engineSwitchNeedsAsk, readCursor,canManageCommandAllowlist, commandAllowlistResponse, cardAnswerRefusal, threadRead: teamMessages.seen, levelOf,}));-ROUTES.push(createBotOrderRoutes({ store, visibleFor: (auth) => visibleTo(viewerFor(auth)) }), createBotAccessRoutes({ team: CLOUD_TEAM, people: teamOwners.people, store, levelOf, wireBot, publicGroupState, broadcast, audienceChanged }), accessRequests.routes);+ROUTES.push(createBotOrderRoutes({ store, visibleFor: (auth) => visibleTo(viewerFor(auth)) }), createBotAccessRoutes({ team: CLOUD_TEAM, people: teamOwners.people, store, levelOf, wireBot, publicGroupState, broadcast, audienceChanged, record: (auth, row) => appendAdminAction(DATA_DIR, { ...row, actor: decisionActorFor(auth) }) }), accessRequests.routes);ROUTES.push(createBotPatchRoutes({store, cfg, registry, sessions, browserRuntime, browserLive, memoryUpkeep, cacheKeepWarm, hostedModels, supportsApprovalMode,routines: () => routines, activeVpsThreads,diff --git a/server/routes/bot-access.ts b/server/routes/bot-access.tsindex 86f02ff774..71dee71800 100644--- a/server/routes/bot-access.ts+++ b/server/routes/bot-access.ts@@ -3,12 +3,13 @@// person must be a member of the team, and the bot's visibility follows in the same write so the rest of the server's// "who sees it" checks stay true.import type { BotAccess } from "../../shared/bot-access.ts";-import { visibilityFromAccess } from "../../shared/bot-access.ts";+import { sameAccess, visibilityFromAccess } from "../../shared/bot-access.ts";import { botOwner } from "../../shared/bot-owner.ts";import type { WireBot } from "../../shared/wire.ts";import { accessOf, parseBotAccess, sameAudience } from "../bot-visibility.ts";import type { CloudTeam } from "../cloud-team.ts";import { refusalFor } from "../host/bot-access-gate.ts";+import type { AdminActionRow } from "../admin-activity.ts";import type { RequestAuth } from "../request-auth.ts";import type { BotRecord, GroupRecord, Store } from "../store.ts";import type { TeamPeople } from "../team-people.ts";@@ -25,6 +26,8 @@ export interface BotAccessRouteDeps {publicGroupState(group: GroupRecord): unknown;broadcast(payload: Record<string, unknown>): void;audienceChanged(): void;+ /** Settings → Activity: the request is client-scoped, so the admin audit never sees it. */+ record?(auth: RequestAuth, row: Omit<AdminActionRow, "at" | "actor">): void;}/** The bot's sharing with `next` applied: the owner is never listed (they always edit), and nobody new comes in from@@ -71,7 +74,11 @@ export function createBotAccessRoutes(deps: BotAccessRouteDeps): RouteHandler {if (!current) return json(res, 404, { error: "no such bot" });const settled = settledAccess(current, parsed.access, (email) => people.has(email));if (!settled.ok) return json(res, 400, { error: settled.error });+ const before = accessOf(current);const updated = writeAccess(deps, current, settled.access);+ if (updated && !sameAccess(before, settled.access)) {+ deps.record?.(auth, { category: "visibility", action: "access.update", target: { kind: "bot", id: updated.id, name: updated.name }, before: { access: before }, after: { access: settled.access } });+ }return updated ? json(res, 200, { bot: deps.wireBot(updated) }) : json(res, 404, { error: "no such bot" });};}diff --git a/server/routes/team-owners.test.ts b/server/routes/team-owners.test.tsindex e13592d0aa..915c353097 100644--- a/server/routes/team-owners.test.ts+++ b/server/routes/team-owners.test.ts@@ -8,6 +8,7 @@ import { ATTACHMENTS_DIR } from "../attachments.ts";import { personKey } from "../person-key.ts";import type { RequestAuth } from "../request-auth.ts";import type { SessionRecord } from "../sessions.ts";+import type { BotRecord } from "../store.ts";import { createTeamPeople } from "../team-people.ts";import { PASS } from "./table.ts";import { createTeamOwnerRoutes, TEAM_PEOPLE_PATH } from "./team-owners.ts";@@ -112,3 +113,27 @@ describe("teammates' pictures on a Team Cloud", () => {auth: BOB_SESSION, json: (() => {}) as never, readBody: (async () => ({})) as never })).toBe(PASS);});});++describe("who a bot reports to, in Settings → Activity", () => {+ it("records each owner change with who made it, before and after, and nothing when it stays the same", async () => {+ const people = createTeamPeople(mkdtempSync(join(tmpdir(), "omb-team-owner-audit-")));+ people.seen(ADA, "owner");+ people.seen(BOB, "member");+ const bots = [{ id: "ledger", name: "Ledger", reportsTo: ADA }, { id: "payroll", name: "Payroll", reportsTo: ADA }] as unknown as BotRecord[];+ const store = {+ get bots() { return bots; },+ bot: (id: string) => bots.find((bot) => bot.id === id),+ patchBot: (id: string, patch: Partial<BotRecord>) => { const bot = bots.find((one) => one.id === id)!; Object.assign(bot, patch); return bot; },+ };+ const rows: Array<{ auth: RequestAuth; row: { action: string; target?: unknown; before?: unknown; after?: unknown } }> = [];+ const route = createTeamOwnerRoutes({ team: TEAM, people, store: store as never, sees: () => true, publicBot: (bot) => bot, record: (auth, row) => { rows.push({ auth, row }); } });+ const admin = asSession(session({ id: "s-ada", email: ADA, teamRole: "owner", scopes: ["admin", "client"] }));+ const put = (path: string, body: unknown) => route({ req: { headers: {} } as IncomingMessage, res: {} as ServerResponse, url: new URL(`http://x${path}`), path, method: "PUT", auth: admin,+ json: (() => undefined) as never, readBody: (async () => body) as never });+ await put("/api/bots/ledger/reports-to", { email: BOB });+ expect(rows).toEqual([{ auth: admin, row: expect.objectContaining({ category: "bot", action: "owner.update", target: { kind: "bot", id: "ledger", name: "Ledger" }, before: { owner: ADA }, after: { owner: BOB } }) }]);+ await put("/api/team/reports-to", { botIds: ["ledger", "payroll"], email: BOB });+ expect(rows.map((one) => (one.row.target as { id: string }).id)).toEqual(["ledger", "payroll"]);+ });+});+diff --git a/server/routes/team-owners.ts b/server/routes/team-owners.tsindex f3d40070d5..e9e8861f1c 100644--- a/server/routes/team-owners.ts+++ b/server/routes/team-owners.ts@@ -4,6 +4,7 @@// sets a whole department's at once, for an Admin.// Security: all but the last are client-scoped, so the checks here are the gate. A member's name and picture are shown// to the team's signed-in members and nobody else; nothing else of their profile (About you) is ever served here.+import type { AdminActionRow } from "../admin-activity.ts";import { createHash } from "node:crypto";import { z } from "zod";@@ -36,6 +37,8 @@ export interface TeamOwnerRouteDeps {/** Whether the session may see this bot at all. */sees(auth: RequestAuth, botId: string): boolean;publicBot(bot: BotRecord): unknown;+ /** Settings → Activity: who a bot reports to decides who edits it. */+ record?(auth: RequestAuth, row: Omit<AdminActionRow, "at" | "actor">): void;}/** The address a session speaks for: a team member's, or none (a loopback service, a session the Admin never signed). */@@ -57,6 +60,11 @@ function teamPictureUrl(email: string, avatarUrl: string): string {}export function createTeamOwnerRoutes(deps: TeamOwnerRouteDeps): RouteHandler {+ const recordOwner = (auth: RequestAuth, bot: BotRecord, previous: string | null | undefined) => {+ const now = botOwner(bot);+ if ((previous ?? null) === (now ?? null)) return;+ deps.record?.(auth, { category: "bot", action: "owner.update", target: { kind: "bot", id: bot.id, name: bot.name }, before: { owner: previous ?? null }, after: { owner: now ?? null } });+ };const profileOf = (email: string) => deps.profileOf?.(email) ?? {};const nameOf = (email: string) => profileOf(email).name?.trim() || nameFromEmail(email);return async ({ req, res, path, method, auth, json, readBody }) => {@@ -112,8 +120,10 @@ export function createTeamOwnerRoutes(deps: TeamOwnerRouteDeps): RouteHandler {const { email } = parsed.data;if (unknownPerson(email)) return json(res, 400, { error: `Choose someone in ${team.name}.` });const botIds = parsed.data.botIds.filter((id) => !deps.store.bot(id)?.defaultBot?.person);+ const owners = new Map(botIds.map((id) => { const one = deps.store.bot(id); return [id, one && botOwner(one)]; }));const changed = setReportsTo(deps.store, botIds, email);if (!changed.ok) return changed.reason === "chief-conflict" ? conflict(email) : json(res, 404, { error: "One or more bots are unavailable." });+ for (const updated of changed.bots) recordOwner(auth, updated, owners.get(updated.id));return json(res, 200, { bots: changed.bots.map((bot) => deps.publicBot(bot)) });}@@ -129,8 +139,10 @@ export function createTeamOwnerRoutes(deps: TeamOwnerRouteDeps): RouteHandler {}const { email } = parsed.data;if (unknownPerson(email)) return json(res, 400, { error: `Choose someone in ${team.name}.` });+ const previous = botOwner(bot);const changed = setReportsTo(deps.store, [bot.id], email);if (!changed.ok) return changed.reason === "chief-conflict" ? conflict(email) : json(res, 404, { error: "no such bot" });+ recordOwner(auth, changed.bots[0]!, previous);return json(res, 200, { bot: deps.publicBot(changed.bots[0]!) });};}diff --git a/src/locales/en.json b/src/locales/en.jsonindex d60972ea7f..16b2cc5ebf 100644--- a/src/locales/en.json+++ b/src/locales/en.json@@ -3911,6 +3911,10 @@"activity.action.bot.update": "Changed a bot's permissions","activity.action.bot.delete": "Deleted a bot","activity.action.visibility.update": "Changed who can see a bot",+ "activity.action.access.update": "Changed who can use a bot",+ "activity.action.access.allow": "Let someone chat with a bot",+ "activity.action.access.decline": "Turned down a request to chat with a bot",+ "activity.action.owner.update": "Changed who a bot reports to","activity.action.room.audience-reset": "Widened who can see a room","activity.action.webhook.create": "Created a webhook","activity.action.webhook.update": "Changed a webhook",