changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "api": {
+ "description": "API version (1.0).",
+ "type": "string"
+ },
+ "doc": {
+ "description": "The document read or written: path, sha256 and paragraph count.",
+ "properties": {
+ "characters": {
+ "description": "text.normalize of a text string: its length.",
+ "type": "integer"
+ },
+ "paragraphs": {
+ "description": "Body paragraphs.",
+ "type": "integer"
+ },
+ "path": {
+ "description": "Path of the document.",
+ "type": "string"
+ },
+ "sha256": {
+ "description": "sha256 of the file (pass as expect.sha256 to a write).",
+ "type": "string"
+ },
+ "source": {
+ "description": "A .txt/.md/.odt source's format, encoding and split mode; \"text\" for a text string (text.normalize).",
+ "type": [
+ "object",
+ "string"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "next": {
+ "description": "Cursor for the next page (pass as cursor), or null.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "ok": {
+ "description": "Always true on success.",
+ "type": "boolean"
+ },
+ "op": {
+ "description": "The operation that ran.",
+ "type": "string"
+ },
+ "result": {
+ "description": "What the operation returns.",
+ "properties": {
+ "backup": {
+ "description": "Path of the backup taken before the write.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "changes": {
+ "description": "What changed (or would): section properties, breaks, header/footer text, settings.",
+ "items": {
+ "additionalProperties": true,
+ "description": "A change.",
+ "properties": {
+ "at": {
+ "description": "Where: section <n> or a paragraph address.",
+ "type": "string"
+ },
+ "kind": {
+ "description": "section.props, section.break, settings, header/footer text...",
+ "type": "string"
+ },
+ "revision_ids": {
+ "description": "w:id of every revision this write created.",
+ "items": {
+ "type": [
+ "integer",
+ "string"
+ ]
+ },
+ "type": "array"
+ },
+ "tracked": {
+ "description": "Whether it is a tracked change.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "dry_run": {
+ "description": "True when nothing was written (a preview).",
+ "type": "boolean"
+ },
+ "op_id": {
+ "description": "Undo-log id of this write (history.undo / history.restore).",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "plan": {
+ "description": "The page plan after the write (as layout.get returns it).",
+ "properties": {
+ "mirror_margins": {
+ "description": "Mirrored margins.",
+ "type": "boolean"
+ },
+ "sections": {
+ "description": "Each section, in order.",
+ "items": {
+ "description": "A section of the plan.",
+ "properties": {
+ "break": {
+ "description": "nextPage, oddPage, evenPage or continuous.",
+ "type": "string"
+ },
+ "first_page_different": {
+ "description": "Different first page.",
+ "type": "boolean"
+ },
+ "footer": {
+ "description": "Text per kind; {PAGE}, {NUMPAGES} and {chapter} stand for fields; null: inherited.",
+ "properties": {
+ "default": {
+ "description": "Default (odd) pages.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "even": {
+ "description": "Even pages.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "first": {
+ "description": "First page.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "from": {
+ "description": "Paragraph address, p<n>#<fingerprint> (story-prefixed in notes/headers).",
+ "type": "string"
+ },
+ "header": {
+ "description": "Text per kind; {PAGE}, {NUMPAGES} and {chapter} stand for fields; null: inherited.",
+ "properties": {
+ "default": {
+ "description": "Default (odd) pages.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "even": {
+ "description": "Even pages.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "first": {
+ "description": "First page.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "numbering": {
+ "description": "Page numbering.",
+ "properties": {
+ "format": {
+ "description": "decimal, lowerRoman, upperRoman, lowerLetter, upperLetter...",
+ "type": "string"
+ },
+ "shown": {
+ "description": "A page number is printed (checked, not set).",
+ "type": "boolean"
+ },
+ "start": {
+ "description": "Restart value, or null to continue.",
+ "type": [
+ "integer",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "two_sided": {
+ "description": "Different even and odd headers.",
+ "type": "boolean"
+ },
+ "version": {
+ "description": "Plan format version (1).",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "revision_ids": {
+ "description": "w:id of every revision this write created.",
+ "items": {
+ "type": [
+ "integer",
+ "string"
+ ]
+ },
+ "type": "array"
+ },
+ "sha256": {
+ "description": "sha256 of the file after the write (pass as expect.sha256 next).",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "dry_run",
+ "changes",
+ "plan"
+ ],
+ "type": "object"
+ },
+ "warnings": {
+ "description": "Things to know about the result.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "api",
+ "ok",
+ "op",
+ "result",
+ "warnings",
+ "next"
+ ],
+ "type": "object"
+}