List a project's cleanup ledger
Code Mode: praxis.devops.projects.cleanups.list
HTTP: GET /devops/v1/projects/{project}/cleanups
List what the daily cleanup job removed or archived for the project, newest decision first: merged branches deleted when their pull request merged, stopped units deleted after the project’s window, test evidence past its age, and prebuilds beyond the kept versions. Each row names the kind of thing, which one, whether it was archived (the record stays, the heavy content goes) or deleted, the reason and when it was decided and done; error is set while the last attempt failed and the job will try again. The ledger is read-only: the job is its only writer, and a project changes what is kept through settings.retention on devops.projects.update. A project with no row has had nothing cleaned.
签名
praxis.devops.projects.cleanups.list(args:{path:{/** e.g. "dvp_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ project:string};query?:{/** e.g. 20 */ pageSize?:number;/** e.g. "pt1.eyJvIjoyMH0" */ pageToken?:string}}):Promise<{/** The ledger rows on this page. */ items:Array<{/** The ledger row's id. e.g. "cln_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string;/** Always cleanup. e.g. "cleanup" */ object:string;/** When the action was decided (RFC 3339). e.g. "2026-11-24T03:00:00.000Z" */ createTime:string;/** When the action was last touched: done, or decided when it is not done yet. e.g. "2026-11-24T03:00:02.000Z" */ updateTime:string;/** The Console page of the project the action belongs to. e.g. "https://console.deepraxis.com/devops/dvp_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ viewerUrl:string;/** The project the action belongs to. e.g. "dvp_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ project:string;/** What was cleaned. e.g. "branch" */ kind:"branch"|"unit"|"evidence"|"prebuild";/** Which one: branch name and pull request number, unit id, evidence table and cutoff day, or prebuild id. e.g. "docs/walk-readme-clarity#2" */ subject:string;/** archive keeps the record and drops the heavy content; delete removes it. e.g. "delete" */ action:"archive"|"delete";/** Why, as a stable code with its numbers, for example branch-merged, unit-stopped-30d, evidence-older-than-90d (37 rows) or prebuild-beyond-2. e.g. "branch-merged" */ reason:string;/** When the job decided the action (RFC 3339). e.g. "2026-11-24T03:00:00.000Z" */ decidedAt:string;/** When the action was carried out; null while it is not done. e.g. "2026-11-24T03:00:02.000Z" */ doneAt:string|null;/** Why the last attempt failed; null once it is done. e.g. null */ error:string|null}>;/** How many rows the project's ledger holds across every page; returned on the first page only. e.g. 12 */ totalSize?:number;/** Cursor for the next page; an empty string means this was the last page. e.g. "pt1.eyJvIjo1MH0" */ nextPageToken:string}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| project | path | string | 是 | Identifies the project whose data you are reading, from the project list or create answer. |
| pageSize | query | number | 否 | How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone. |
| pageToken | query | string | 否 | The cursor from the previous page’s nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | One page of the project’s cleanup ledger, newest decision first. |
| 400 | application/json | INVALID_PARAMS or INVALID_ARGUMENT means a field, query value or identifier violates the documented format or range — an unknown enum value, a pageSize outside 1..100, an unsupported filter or orderBy field, or an id with the wrong prefix. Correct the named input; nothing was read or written. |
| 401 | application/json | The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying. |
| 403 | application/json | The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project’s organization. No cross-organization read is possible. |
| 404 | application/json | PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer. |
| 500 | application/json | INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again. |