Skip to content

MOTION_EVENTS

ts
const MOTION_EVENTS: object;

Defined in: packages/ai/src/activities/generateMotion/index.ts:61

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