Skip to main content
Defined in: durability/types.ts:204 One journaled outbound send.

Properties

key

Defined in: durability/types.ts:206 Idempotency key: explicit, derived from the inbound being handled, or random.

chatId

Defined in: durability/types.ts:207

causationId?

Defined in: durability/types.ts:209 The inbound record (or job) whose handling produced this send.

op

Defined in: durability/types.ts:210

content

Defined in: durability/types.ts:212 Encoded OutboundContent (Buffers base64-encoded).

options?

Defined in: durability/types.ts:214 Encoded SendOptions (without idempotencyKey).

state

Defined in: durability/types.ts:215

attempts

Defined in: durability/types.ts:217 Provider attempts so far.

nextAttemptAt

Defined in: durability/types.ts:218

leaseUntil?

Defined in: durability/types.ts:219

owner?

Defined in: durability/types.ts:220

fencingToken

Defined in: durability/types.ts:221

result?

Defined in: durability/types.ts:223 The provider’s message ref, written by the same operation that sets sent.

ref


fingerprint?

Defined in: durability/types.ts:228 Hash of the chat + encoded content the record was journaled with (before before('send') hooks). A replay whose derived key matches but whose content differs is a new send.

previousPart?

Defined in: durability/types.ts:235 The key of the record that must be sent before this one: set on the later parts of a split text (<key>#2 follows <key>, <key>#3 follows <key>#2…). The sweeper never sends a record while that one is still to be sent, and dead-letters it when that one is dead. A key ending in #<n> chosen by the caller has no such link.

createdAt

Defined in: durability/types.ts:236

sentAt?

Defined in: durability/types.ts:237

completedAt?

Defined in: durability/types.ts:239 When the record reached a terminal state (sent, dead, unknown).

lastError?

Defined in: durability/types.ts:240