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": {
+ "address_map": {
+ "description": "Old address -> new address of every paragraph whose address changed.",
+ "type": "object"
+ },
+ "applied": {
+ "description": "Edits applied (1).",
+ "type": "integer"
+ },
+ "author": {
+ "description": "Revision author stamped on the changes.",
+ "type": "string"
+ },
+ "backup": {
+ "description": "Path of the backup taken before the write.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "comment_ids": {
+ "description": "Ids of the comments added.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "date": {
+ "description": "Revision date (UTC, ISO 8601).",
+ "type": "string"
+ },
+ "dry_run": {
+ "description": "True when nothing was written (a preview).",
+ "type": "boolean"
+ },
+ "engine": {
+ "description": "live: edited in the open app; nothing backed up or verified.",
+ "type": "string"
+ },
+ "footprint": {
+ "description": "Part name -> the paragraphs or items it touched in that part.",
+ "type": "object"
+ },
+ "op_id": {
+ "description": "Undo-log id of this write (history.undo / history.restore).",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "op_ids": {
+ "description": "Live: one log entry per edit, in request order.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "preview": {
+ "description": "One entry per edit: what changes where.",
+ "items": {
+ "description": "A previewed edit.",
+ "properties": {
+ "action": {
+ "description": "accept or reject (revision kinds).",
+ "type": "string"
+ },
+ "after": {
+ "description": "Text after.",
+ "type": "string"
+ },
+ "at": {
+ "description": "Where it applies.",
+ "type": "string"
+ },
+ "before": {
+ "description": "Text before.",
+ "type": "string"
+ },
+ "op": {
+ "description": "Index of the edit in ops.",
+ "type": "integer"
+ },
+ "revisions": {
+ "description": "Revisions it resolves (revision kinds).",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "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"
+ ]
+ },
+ "tracked": {
+ "description": "False for a plain (untracked) write.",
+ "type": "boolean"
+ },
+ "warnings": {
+ "description": "Notes on what the write could not do as asked.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "applied"
+ ],
+ "type": "object"
+ },
+ "warnings": {
+ "description": "Things to know about the result.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "api",
+ "ok",
+ "op",
+ "result",
+ "warnings",
+ "next"
+ ],
+ "type": "object"
+}