Client functions for job CRUD operations.
Source: web/frontend/src/api/jobs.ts
| Function | HTTP | Endpoint | Description |
|---|---|---|---|
createJob(req) |
POST | /api/jobs |
Create job + dispatch |
listJobs(status?, limit, offset) |
GET | /api/jobs |
List with filter/pagination |
getJob(id) |
GET | /api/jobs/{id} |
Get single job |
deleteJob(id) |
DELETE | /api/jobs/{id} |
Delete job + files |
stopJob(id) |
POST | /api/jobs/{id}/stop |
Request early stop for a running lip-sync job |
getDownloadUrl(id) |
— | /api/jobs/{id}/download |
Returns URL string |
requestEpubExport(id) |
POST | /api/jobs/{id}/export-epub |
Start a text-and-narration EPUB export |
getEpubExportStatus(id) |
GET | /api/jobs/{id}/export-epub/status |
Poll EPUB export state |
getEpubExportDownloadUrl(id) |
— | /api/jobs/{id}/export-epub/download |
Returns exported EPUB URL string |
JobCreateRequest — Request body for createJob()Job — Response from getJob()JobListResponse — Response from listJobs()EpubExportState — Independent export status responseAll types defined in types/index.ts.
listJobs()createJob()getJob(), deleteJob(), getDownloadUrl()stopJob()Calls Jobs Router endpoints.