StoreEvent
interfaceextends BaseMessage
An event emitted by a store, forwarded to extensions.
This is the primary data-flow message. Each
StoreEvent carries the
original event payload plus an array of JsonPatch operations
describing the resulting state delta. Extensions can apply the patches
incrementally or request a full StateSnapshot when needed.Properties
| Name | Type | Description |
|---|---|---|
committed | boolean | true if the event passed middleware; false if bounced. |
event | { channel: string; id: string; payload: unknown; truncated?: boolean; type: string } | |
patches | JsonPatch[] | RFC 6902 JSON Patch operations describing state changes. |
patchesTruncated? | boolean | true when at least one patch value was replaced by a truncation marker. |
reason? | "vetoed" | "deduped" | "cascade" | Why the event did not commit. Absent when it did. |
snapshotVersion | number | Monotonically increasing snapshot version counter. |
sourceId | string | UUID of the sender (store wrapper ID or extension ID). |
sourceRole | DevtoolsRole | Role of the sender. |
storeId | string | |
timestamp | string | ISO 8601 timestamp of when the message was created. |
type | "STORE_EVENT" | Discriminant field identifying the message type. |
vetoedBy? | string | Which middleware vetoed, when one did and it had a name. |