> ## 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.

# checkInboundContract()

> Function exported by @botmesh/core/testing.

```ts theme={null}
function checkInboundContract(events, options?): InboundViolation[];
```

Defined in: [testing/inboundContract.ts:111](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/inboundContract.ts#L111)

Check normalized events against the inbound shape contract (epoch-ms timestamps,
message fields) and return every violation (empty array = conforming). Events without
a timestamp (connection, reaction, group, …) are skipped but keep their index.

## Parameters

| Parameter | Type |
| - | - |
| `events` | readonly [`InboundContractInput`](https://botmesh.afaya.com.co/api/core/testing/type-aliases/InboundContractInput)\[] |
| `options?` | [`InboundContractOptions`](https://botmesh.afaya.com.co/api/core/testing/interfaces/InboundContractOptions) |

## Returns

[`InboundViolation`](https://botmesh.afaya.com.co/api/core/testing/interfaces/InboundViolation)\[]


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