Interface GrantRecord

One durable grant an app holds, for the §8.11 capability audit view.

interface GrantRecord {
    appKey: string;
    mode: "ro" | "rw";
    mountId: string;
    name?: string;
    spaceId: string;
    subtree?: string;
}

Properties

appKey: string

The app's provider-qualified program identity (AA-01 appKey). The DEFAULT program keys to the bare provider__namespace__repository; a NAMED mini-app appends a fourth enc()-escaped component (provider__namespace__repository__name) so its grants isolate from the repo's other programs. Host-supplied — the app never builds this key.

mode: "ro" | "rw"
mountId: string

Universal mount id (§3.5).

name?: string
spaceId: string
subtree?: string