Alpha: Document API is currently alpha and subject to breaking changes.
Summary
Check whether two adjacent list sequences can be joined.- Operation ID:
lists.canJoin - API member path:
editor.doc.lists.canJoin(...) - Mutates document:
no - Idempotency:
idempotent - Supports tracked mode:
no - Supports dry run:
no - Deterministic target resolution:
yes
Expected result
Returns a ListsCanJoinResult indicating feasibility and reason if not possible.Input fields
| Field | Type | Required | Description |
|---|---|---|---|
direction | enum | yes | "withPrevious", "withNext" |
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 |
|---|---|---|---|
adjacentListId | string | no | |
canJoin | boolean | yes | |
reason | enum | no | "NO_ADJACENT_SEQUENCE", "INCOMPATIBLE_DEFINITIONS", "ALREADY_SAME_SEQUENCE" |
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

