List the foreshadows of a draft
Code Mode: praxis.studio.works.drafts.foreshadows.list
HTTP: GET /studio/v1/works/{work}/drafts/{draft}/foreshadows
List the threads this draft sets up and pays off: each foreshadow names the unit that plants it, the unit that pays it off (or null while it is still open) and a note on what was planted. The foreshadow_paid check reports every open one in the draft’s status and review, so a mystery or serial that plants a clue in chapter 2 is reminded until a later chapter answers it.
签名
praxis.studio.works.drafts.foreshadows.list(args:{path:{/** e.g. "wu-gang" */ work:string;/** e.g. "novel" */ draft:string}}):Promise<{/** Every foreshadow planted in this draft, open or paid off. */ items:Array<{/** Your name for the thread, unique in the work. e.g. "改造告示" */ key:string;/** Unit that plants it, by identifier. e.g. "unt_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ setup:string;/** Unit that pays it off, by identifier, or null while the thread is still open. e.g. "unt_01JQ8Z3M9K4V7B2N6C5X0YTRHX" */ payoff:string|null;/** What was planted, in a sentence, so a later session knows what the payoff must answer. e.g. "电线杆上的改造告示,结尾门脸真的退了两米" */ note:string}>}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| work | path | string | 是 | The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value. |
| draft | path | string | 是 | Draft being addressed, either its in-work key such as novel or its drf_ identifier; a key renamed earlier still resolves through its previous value. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | The draft’s foreshadows. |
| 400 | application/json | INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call. |
| 401 | application/json | The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header. |
| 404 | application/json | WORK_NOT_FOUND or DRAFT_NOT_FOUND means the work or the draft inside it is not reachable; use the slug and the draft key from the lists, or resolve a loose name first. A draft renamed earlier still answers under its previous key. |
| 500 | application/json | INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed. |