Alpha: Document API is currently alpha and subject to breaking changes.
Summary
Check whether the target sequence can continue numbering from a previous compatible sequence.- Operation ID:
lists.canContinuePrevious - API member path:
editor.doc.lists.canContinuePrevious(...) - Mutates document:
no - Idempotency:
idempotent - Supports tracked mode:
no - Supports dry run:
no - Deterministic target resolution:
yes
Expected result
Returns a ListsCanContinuePreviousResult indicating feasibility.Input fields
| Field | Type | Required | Description |
|---|---|---|---|
target | ListItemAddress | yes | ListItemAddress |
target.kind | "block" | yes | Constant: "block" |
target.nodeId | string | yes | |
target.nodeType | "listItem" | yes | Constant: "listItem" |
Example request
Output fields
| Field | Type | Required | Description |
|---|---|---|---|
canContinue | boolean | yes | |
previousListId | string | no | |
reason | enum | no | "NO_PREVIOUS_LIST", "INCOMPATIBLE_DEFINITIONS", "ALREADY_CONTINUOUS" |
Example response
Pre-apply throws
TARGET_NOT_FOUNDINVALID_TARGETINVALID_INPUT
Non-applied failure codes
- None
Raw schemas
Raw input schema
Raw input schema
Raw output schema
Raw output schema

