Correct the entry type's account of what a level is

The payload type still said the level is read throughout and `canWrite` false.
Both were true of the shipped release and neither survives the invitation
gaining a choice. Also says what `canWrite` does not mean, since the word
invites a larger reading than the thing it grants.
This commit is contained in:
Marc-André Bombeck committed 2026-08-03 10:20:26 +02:00
1 parent ca3a654e47
commit fe142bbd3a
1 file changed
+6 -2
+6 -2
View File
@@ -20,9 +20,13 @@ export interface AccountAccessEntry {
accountId: string;
username: string;
displayName: string | null;
/** The grant's level. `"read"` throughout v1. */
/** The grant's level, as the owner offered it and the caller accepted it. */
access: "read" | "write";
/** May this caller change that record. Resolved server-side; `false` in v1. */
/**
* May this caller ADD to that record. Resolved server-side. It never means
* edit or delete: those stay with the owner at both levels, and no field
* here offers them.
*/
canWrite: boolean;
}