Stores a new entry with a copy of its envelope.
The entry.
A promise that resolves when stored.
Nothing to release.
A resolved promise.
Returns the entries of a run in seq order.
The run.
The entries.
Returns the entry of eventId.
The envelope id.
The entry, or undefined.
Returns the entries in one of states in seq order.
The states asked for.
The entries.
Returns whether jti is remembered beyond nowMs.
The token ID.
The current wall time.
Whether the jti is still remembered.
Drops the expired jti rows.
The current wall time.
A promise that resolves when done.
Counts a redelivery; see InboxStore.redelivered.
The envelope id.
The token of the redelivery, if any.
Its iat.
Its jti.
The entry after the update.
Remembers jti until untilMs (an earlier end never shortens a later one).
The token ID.
When the token cannot pass anymore (exp plus the leeway).
A promise that resolves when stored.
Replaces the token unconditionally.
The envelope id.
The granted token.
Its iat.
Its jti.
A promise that resolves when stored.
Sets the state of an entry.
The envelope id.
The new state.
A promise that resolves when stored.
An in-memory InboxStore for tests; it behaves like
FileInboxStorebut is lost on exit. Entries are kept in arrival order, so entries withoutseqkeep their arrival order.Example