From be300d86434b5eeffe3c4f534e119ed564fba95e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=85=E8=86=80?= Date: Fri, 23 Oct 2026 23:23:40 +0800 Subject: [PATCH] refactor(console): model group revisions Carry server revisions explicitly so console writes can reject changes based on an outdated group snapshot. --- app/types.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/types.ts b/app/types.ts index 6f76452..a08cfe0 100644 --- a/app/types.ts +++ b/app/types.ts @@ -85,6 +85,12 @@ export interface Group { owners?: string[]; providers?: ("github" | "gitea" | "gitlab")[]; installationId?: number; + /** Self-service group: only its own webhook ingress dispatches to it (super-only). */ + isolated?: boolean; + /** Immutable server-assigned group identity (kept across renames). */ + instance?: string; + /** Server revision of the stored group; sent back on update to detect stale edits. */ + revision?: string; emoji?: boolean; forgeSources?: ForgeSource[]; lang?: string;