> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# InboxRecord

> Interface exported by @botmesh/core/spi.

Defined in: [durability/types.ts:49](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/types.ts#L49)

One journaled inbound event.

## Properties

### id

```ts theme={null}
id: string;
```

Defined in: [durability/types.ts:51](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/types.ts#L51)

Stable id: a hash of the namespace + the event's idempotency key, or a random id for events without one.

***

### idempotencyKey?

```ts theme={null}
idempotencyKey?: string;
```

Defined in: [durability/types.ts:53](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/types.ts#L53)

The inbound dedupe key + content fingerprint the id was derived from (diagnostics).

***

### partitionKey

```ts theme={null}
partitionKey: string;
```

Defined in: [durability/types.ts:55](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/types.ts#L55)

Ordering partition (namespace + chat): records of one partition are replayed in `receivedAt` order.

***

### kind

```ts theme={null}
kind: "message" | "interaction";
```

Defined in: [durability/types.ts:56](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/types.ts#L56)

***

### payload

```ts theme={null}
payload: JsonValue;
```

Defined in: [durability/types.ts:58](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/types.ts#L58)

The serialized inbound event (`raw` is never stored).

***

### state

```ts theme={null}
state: InboxState;
```

Defined in: [durability/types.ts:59](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/types.ts#L59)

***

### attempts

```ts theme={null}
attempts: number;
```

Defined in: [durability/types.ts:61](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/types.ts#L61)

Claims charged so far (a `release` is not charged).

***

### nextAttemptAt

```ts theme={null}
nextAttemptAt: number;
```

Defined in: [durability/types.ts:63](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/types.ts#L63)

Epoch ms when a `pending`/`failed` record becomes due.

***

### leaseUntil?

```ts theme={null}
leaseUntil?: number;
```

Defined in: [durability/types.ts:65](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/types.ts#L65)

Epoch ms when the current `processing` lease expires.

***

### owner?

```ts theme={null}
owner?: string;
```

Defined in: [durability/types.ts:67](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/types.ts#L67)

Lease owner (`DurabilityConfig.instanceId`).

***

### fencingToken

```ts theme={null}
fencingToken: number;
```

Defined in: [durability/types.ts:69](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/types.ts#L69)

Strictly increasing per record; `0` before the first claim.

***

### receivedAt

```ts theme={null}
receivedAt: number;
```

Defined in: [durability/types.ts:70](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/types.ts#L70)

***

### completedAt?

```ts theme={null}
completedAt?: number;
```

Defined in: [durability/types.ts:71](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/types.ts#L71)

***

### lastError?

```ts theme={null}
lastError?: string;
```

Defined in: [durability/types.ts:72](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/types.ts#L72)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.