{"draft":null,"from":116,"to":318,"files":[{"path":"client/src/issues-wire.ts","added":57,"removed":0,"diff":"--- a/client/src/issues-wire.ts\n+++ b/client/src/issues-wire.ts\n@@ -191,3 +191,60 @@\n \t/** Only meaning search found it: the words differ, the meaning matches. */\n \tmeaning?: true;\n }\n+\n+/** A group: a named set of agents and people in one project, with one shared history. */\n+export interface Group {\n+\tid: number;\n+\tname: string;\n+\t/** Hidden from those not in it; joined, if joinable, only by its exact name. */\n+\tprivate: boolean;\n+\t/** Anyone in the project may join; otherwise its maker or a project owner adds members. */\n+\tjoinable: boolean;\n+\tpolicyRevision: number;\n+\tmembershipRevision: number;\n+\t/** The number of its newest event. */\n+\tlastEvent: number;\n+\tcreatedBy: string;\n+\tcreatedAt: number;\n+\tupdatedAt: number;\n+}\n+\n+/** A group as one caller sees it in a list. */\n+export interface GroupSummary extends Group {\n+\tmembers: number;\n+\tmember: boolean;\n+}\n+\n+/** One group with its roster. */\n+export interface GroupShown {\n+\tgroup: Group;\n+\tmembers: { who: string; since: number }[];\n+\tmember: boolean;\n+\t/** Who can read its history, said where members see it. */\n+\twhoReads: string;\n+}\n+\n+/** One thing that happened in a group, numbered from 1. Events are only added, never changed. */\n+export interface GroupEvent {\n+\tn: number;\n+\tkind: \"created\" | \"message\" | \"joined\" | \"left\" | \"added\" | \"removed\" | \"settings\";\n+\tby: string;\n+\tat: number;\n+\ttext?: string;\n+\treplyTo?: number;\n+\twho?: string;\n+\tdetail?: Record<string, unknown>;\n+\tmembershipRevision: number;\n+\tpolicyRevision: number;\n+\t/** A message's news: who it went to when sent. Empty means history only. */\n+\tnews?: string[];\n+}\n+\n+/** A group write's answer. */\n+export interface GroupWrite {\n+\tgroup: Group;\n+\tevent?: GroupEvent;\n+\t/** A retry of a post already made: this is the first one. */\n+\treplayed?: boolean;\n+\tnews?: News;\n+}"}],"unmatched":[]}