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": {
+ "entries": {
+ "description": "This page of log entries, newest first.",
+ "items": {
+ "description": "A logged write.",
+ "properties": {
+ "adopted_from": {
+ "description": "adopt: the store and document it came from.",
+ "type": "object"
+ },
+ "author": {
+ "description": "Revision author.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "backup": {
+ "description": "Backup taken before it.",
+ "type": "string"
+ },
+ "deleted": {
+ "description": "Paragraphs it deleted that history.restore can bring back (first 5).",
+ "items": {
+ "description": "A deleted paragraph.",
+ "properties": {
+ "change": {
+ "description": "Change number.",
+ "type": "integer"
+ },
+ "text": {
+ "description": "Text (clipped).",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "engine": {
+ "description": "live for a live-engine edit.",
+ "type": "string"
+ },
+ "kind": {
+ "description": "batch, restore, style, undo, open, purge or adopt.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "op_id": {
+ "description": "Op id (history.undo / history.restore).",
+ "type": "string"
+ },
+ "ops": {
+ "description": "Operation kinds in the request.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "paragraphs": {
+ "description": "Paragraphs it changed.",
+ "type": "integer"
+ },
+ "removed": {
+ "description": "purge: entries removed.",
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "restores": {
+ "description": "Op id it restored from.",
+ "type": "string"
+ },
+ "scope": {
+ "description": "purge: what was removed.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "sha256_after": {
+ "description": "File hash after it.",
+ "type": "string"
+ },
+ "tag": {
+ "description": "Author tag.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "time": {
+ "description": "When (ISO 8601).",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "tracked": {
+ "description": "False for a plain write.",
+ "type": "boolean"
+ },
+ "undoes": {
+ "description": "Op id it undid.",
+ "type": "string"
+ },
+ "undone": {
+ "description": "Whether it was taken back.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "total": {
+ "description": "Entries in the log (after the kind filter).",
+ "type": "integer"
+ },
+ "unreadable_lines": {
+ "description": "Log lines that could not be read.",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "entries",
+ "total"
+ ],
+ "type": "object"
+ },
+ "warnings": {
+ "description": "Things to know about the result.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "api",
+ "ok",
+ "op",
+ "result",
+ "warnings",
+ "next"
+ ],
+ "type": "object"
+}