# MOTION_EVENTS

<!-- DO NOT EDIT: this page is autogenerated from the type comments -->

```ts
const MOTION_EVENTS: object;
```

Defined in: [packages/ai/src/activities/generateMotion/index.ts:61](https://github.com/TanStack/ai/blob/main/packages/ai/src/activities/generateMotion/index.ts#L61)

Custom stream event names emitted by `generateMotion({ stream: true })`.

## Type Declaration

### JOB\_CREATED

```ts
readonly JOB_CREATED: "motion:job:created" = 'motion:job:created';
```

`{ jobId, model }` once the provider accepted the job

### STATUS

```ts
readonly STATUS: "motion:status" = 'motion:status';
```

`{ jobId, status, progress?, queuePosition?, error? }` on every poll
