ephemeral-key
Type Aliases
Section titled “Type Aliases”ReplayKey
Section titled “ReplayKey”ReplayKey =
string&object
UUIDv7 key for one command, retained unchanged across ambiguous retries.
Type Declaration
Section titled “Type Declaration”[ephemeralKeyBrand]
Section titled “[ephemeralKeyBrand]”
readonly[ephemeralKeyBrand]:"replay"
Distinguishes a replay command from other string identifiers.
CorrelationKey
Section titled “CorrelationKey”CorrelationKey =
string&object
UUIDv4 correlation key for a transport or external provider protocol.
Type Declaration
Section titled “Type Declaration”[ephemeralKeyBrand]
Section titled “[ephemeralKeyBrand]”
readonly[ephemeralKeyBrand]:"correlation"
Distinguishes a transport correlation from a replay command.
Functions
Section titled “Functions”replayKey()
Section titled “replayKey()”replayKey():
ReplayKey
Mint once per command; the caller owns retention and completion.
Returns
Section titled “Returns”correlationKey()
Section titled “correlationKey()”correlationKey():
CorrelationKey
Generate a correlation UUID without creating a durable domain identity.
Returns
Section titled “Returns”createCorrelationSequence()
Section titled “createCorrelationSequence()”createCorrelationSequence(): () =>
number
Own a connection-local sequence for protocols such as CDP that require numeric correlation IDs. A new connection owns a new sequence.
Returns
Section titled “Returns”() => number