minca
ApiCoreType aliases

Type Alias: AccessEvent

type AccessEvent = EventBase & (
  | {
  grants: ReadonlyArray<SpaceGrant>;
  kind: "role";
  name: string;
  nests: ReadonlyArray<string>;
  title?: string;
}
  | {
  assigned: boolean;
  did: string;
  kind: "assign";
  role: string;
  viaInvite?: string;
}
  | {
  did: string;
  kind: "remove" | "stepdown";
}
  | {
  kind: "succeed";
  space: string;
}
  | {
  inviteKey: string;
  kind: "invite";
  open: boolean;
  role: string;
}
  | {
  kind: "revoke";
  target: string;
}
  | {
  deleted: boolean;
  kind: "definition";
  name: string;
}
  | {
  keyId: string;
  kind: "key";
  readKey: string;
}
  | object & ForkedLine
  | {
  kind: "relays";
  relays: ReadonlyArray<string>;
}
  | {
  copies: number | null;
  keepers: ReadonlyArray<Keeper>;
  kind: "keepers";
});

Defined in: packages/core/src/space/roles.ts:130