burying-beetle - v0.1.0
    Preparing search index...

    Interface GuardEvent

    One event, described by four values you read out of your own payload.

    interface GuardEvent {
        id: string;
        kind: "write" | "delete";
        scope: string;
        version: Version;
    }
    Index
    id: string

    The entity's ID within the scope.

    kind: "write" | "delete"

    Whether the event writes the entity or deletes it.

    scope: string

    Whose entities these are: a tenant, an account, a source. Entities in different scopes never meet.

    version: Version

    The event's version. See Version.