@usine/core/event
Classes
Section titled “Classes”One deduplicated fact the engine may react to: a trigger match or an operator approval. Trigger payloads retain the snapshot that selection expressions and prompt interpolation use; retries keep that recorded snapshot.
Extends
Section titled “Extends”Schema.Class
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Event(…
args):Event
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args |
[props: object, options?: MakeOptions] |
Returns
Section titled “Returns”Properties
Section titled “Properties”dedupKey
Section titled “dedupKey”
readonlydedupKey:string&Brand<"DedupKey">
readonlyid:string&Brand<"EventId">
payload
Section titled “payload”
readonlypayload:Json
receivedAt
Section titled “receivedAt”
readonlyreceivedAt:Utc
Type Aliases
Section titled “Type Aliases”DedupKey
Section titled “DedupKey”DedupKey = typeof
DedupKey.Type
Idempotency key the engine derives from watched state, timestamps excluded. The same state is the same Event forever, so a loop file never sets it (ADR 0002).
EventId
Section titled “EventId”EventId = typeof
EventId.Type
Identity of one recorded fact; repeated sightings are matched through its dedup key.
Variables
Section titled “Variables”DedupKey
Section titled “DedupKey”
constDedupKey:Schema.brand<Schema.NonEmptyString,"DedupKey">
Idempotency key the engine derives from watched state, timestamps excluded. The same state is the same Event forever, so a loop file never sets it (ADR 0002).
EventId
Section titled “EventId”
constEventId:Schema.brand<Schema.NonEmptyString,"EventId">
Identity of one recorded fact; repeated sightings are matched through its dedup key.