# isUncageEvent

<!-- https://uncage.vercel.app/docs/api/client/functions/isuncageevent/ -->

```ts
function isUncageEvent(v): v is UncageEvent;
```

Defined in: client/src/guards.ts:45

An event envelope: ids, a non-negative integer `sequence`, a dotted `type` and an object payload
carrying the id its type is keyed on (`session.id`, `run.id`/`runId`, `approval.id`,
`messageId`, `toolId`). Types this client does not know yet (a newer daemon) pass through with
only the envelope checked; consumers switch on `type` and ignore the rest.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `v` | `unknown` |

## Returns

`v is UncageEvent`
