# SidechannelEventSchema
Source: https://docs.maelstrom-ai.co/dev/reference/protocol/variables/sidechanneleventschema/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

> `const` **SidechannelEventSchema**: `ZodReadonly`<`ZodDiscriminatedUnion`<\[`ZodObject`<{ `at`: `ZodNumber`; `final`: `ZodBoolean`; `role`: `ZodEnum`<{ `assistant`: `"assistant"`; `user`: `"user"`; }>; `sessionId`: `ZodPipe`<`ZodString`, `ZodTransform`<[`SessionId`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/sessionid/), `string`\>>; `text`: `ZodString`; `type`: `ZodLiteral`<`"transcript"`\>; }, `$strip`\>, `ZodObject`<{ `argumentsJson`: `ZodString`; `at`: `ZodNumber`; `callId`: `ZodPipe`<`ZodString`, `ZodTransform`<[`ToolCallId`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/toolcallid/), `string`\>>; `name`: `ZodString`; `sessionId`: `ZodPipe`<`ZodString`, `ZodTransform`<[`SessionId`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/sessionid/), `string`\>>; `type`: `ZodLiteral`<`"tool_call"`\>; }, `$strip`\>, `ZodObject`<{ `at`: `ZodNumber`; `callId`: `ZodPipe`<`ZodString`, `ZodTransform`<[`ToolCallId`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/toolcallid/), `string`\>>; `latencyMs`: `ZodNumber`; `ok`: `ZodBoolean`; `sessionId`: `ZodPipe`<`ZodString`, `ZodTransform`<[`SessionId`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/sessionid/), `string`\>>; `type`: `ZodLiteral`<`"tool_result"`\>; }, `$strip`\>, `ZodObject`<{ `at`: `ZodNumber`; `label`: `ZodString`; `ms`: `ZodNumber`; `sessionId`: `ZodPipe`<`ZodString`, `ZodTransform`<[`SessionId`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/sessionid/), `string`\>>; `type`: `ZodLiteral`<`"timing"`\>; }, `$strip`\>\], `"type"`\>>

Defined in: [packages/protocol/src/lib/sidechannel-event.ts:29](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/sidechannel-event.ts#L29)

The transcript/event stream the client emits to the consumer’s backend for observability (metering, recording, debugging). Intentionally carries **no audio** — only transcripts, tool-call metadata, and timings. This is the exact contract the cloud tier’s metering later rides on, so additive-only.

`at` on each event is client-clock time and drifts across clients. Any receiver that needs a trustworthy clock for cross-client ordering, metering, or billing must stamp its own receipt time on ingest and use that instead — `at` is diagnostic only.
