changedInput schema / properties / operations / items / oneOf
Previous value: -[
- {
- "properties": {
- "blockId": {
- "maxLength": 64,
- "minLength": 1,
- "type": "string"
- },
- "op": {
- "const": "set_text",
- "type": "string"
- },
- "text": {
- "type": "string"
- }
- },
- "required": [
- "op",
- "blockId",
- "text"
- ],
- "type": "object"
- },
- {
- "properties": {
- "blockId": {
- "maxLength": 64,
- "minLength": 1,
- "type": "string"
- },
- "items": {
- "items": {
- "type": "string"
- },
- "maxItems": 200,
- "minItems": 1,
- "type": "array"
- },
- "op": {
- "const": "set_items",
- "type": "string"
- }
- },
- "required": [
- "op",
- "blockId",
- "items"
- ],
- "type": "object"
- },
- {
- "properties": {
- "blockId": {
- "maxLength": 64,
- "minLength": 1,
- "type": "string"
- },
- "level": {
- "anyOf": [
- {
- "const": 1,
- "type": "number"
- },
- {
- "const": 2,
- "type": "number"
- },
- {
- "const": 3,
- "type": "number"
- }
- ]
- },
- "op": {
- "const": "set_heading_level",
- "type": "string"
- }
- },
- "required": [
- "op",
- "blockId",
- "level"
- ],
- "type": "object"
- },
- {
- "properties": {
- "afterBlockId": {
- "description": "omit to insert at the very start of the ebook",
- "maxLength": 64,
- "minLength": 1,
- "type": "string"
- },
- "block": {
- "properties": {
- "items": {
- "items": {
- "type": "string"
- },
- "maxItems": 200,
- "type": "array"
- },
- "level": {
- "anyOf": [
- {
- "const": 1,
- "type": "number"
- },
- {
- "const": 2,
- "type": "number"
- },
- {
- "const": 3,
- "type": "number"
- }
- ]
- },
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "heading",
- "subheading",
- "paragraph",
- "quote",
- "bulletList",
- "numberedList",
- "sectionBreak"
- ],
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- },
- "op": {
- "const": "insert_after",
- "type": "string"
- }
- },
- "required": [
- "op",
- "block"
- ],
- "type": "object"
- },
- {
- "properties": {
- "blockId": {
- "maxLength": 64,
- "minLength": 1,
- "type": "string"
- },
- "op": {
- "const": "delete_block",
- "type": "string"
- }
- },
- "required": [
- "op",
- "blockId"
- ],
- "type": "object"
- },
- {
- "properties": {
- "afterBlockId": {
- "description": "omit to move the block to the very start of the ebook",
- "maxLength": 64,
- "minLength": 1,
- "type": "string"
- },
- "blockId": {
- "maxLength": 64,
- "minLength": 1,
- "type": "string"
- },
- "op": {
- "const": "move_after",
- "type": "string"
- }
- },
- "required": [
- "op",
- "blockId"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "properties": {
+ "blockId": {
+ "description": "a block id from get_ebook, or \"ref:<name>\" for a block an earlier operation in this call named",
+ "maxLength": 64,
+ "minLength": 1,
+ "type": "string"
+ },
+ "op": {
+ "const": "set_text",
+ "type": "string"
+ },
+ "text": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "op",
+ "blockId",
+ "text"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "blockId": {
+ "description": "a block id from get_ebook, or \"ref:<name>\" for a block an earlier operation in this call named",
+ "maxLength": 64,
+ "minLength": 1,
+ "type": "string"
+ },
+ "items": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 200,
+ "minItems": 1,
+ "type": "array"
+ },
+ "op": {
+ "const": "set_items",
+ "type": "string"
+ }
+ },
+ "required": [
+ "op",
+ "blockId",
+ "items"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "blockId": {
+ "description": "a block id from get_ebook, or \"ref:<name>\" for a block an earlier operation in this call named",
+ "maxLength": 64,
+ "minLength": 1,
+ "type": "string"
+ },
+ "level": {
+ "anyOf": [
+ {
+ "const": 1,
+ "type": "number"
+ },
+ {
+ "const": 2,
+ "type": "number"
+ },
+ {
+ "const": 3,
+ "type": "number"
+ }
+ ]
+ },
+ "op": {
+ "const": "set_heading_level",
+ "type": "string"
+ }
+ },
+ "required": [
+ "op",
+ "blockId",
+ "level"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "afterBlockId": {
+ "description": "omit to insert at the very start of the ebook; may be \"ref:<name>\"; after an image means after its caption",
+ "maxLength": 64,
+ "minLength": 1,
+ "type": "string"
+ },
+ "block": {
+ "properties": {
+ "href": {
+ "description": "required for type button: the web address it links to (http or https; a bare domain is read as https). Any other scheme is refused.",
+ "maxLength": 500,
+ "type": "string"
+ },
+ "items": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 200,
+ "type": "array"
+ },
+ "level": {
+ "anyOf": [
+ {
+ "const": 1,
+ "type": "number"
+ },
+ {
+ "const": 2,
+ "type": "number"
+ },
+ {
+ "const": 3,
+ "type": "number"
+ }
+ ]
+ },
+ "table": {
+ "description": "required for type table",
+ "properties": {
+ "align": {
+ "description": "per column; null or omitted means left",
+ "items": {
+ "anyOf": [
+ {
+ "enum": [
+ "left",
+ "center",
+ "right"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "maxItems": 10,
+ "type": "array"
+ },
+ "headers": {
+ "items": {
+ "maxLength": 300,
+ "type": "string"
+ },
+ "maxItems": 10,
+ "minItems": 1,
+ "type": "array"
+ },
+ "rows": {
+ "description": "one array of cells per row, one cell per header; a short row is padded with empty cells",
+ "items": {
+ "items": {
+ "maxLength": 300,
+ "type": "string"
+ },
+ "maxItems": 10,
+ "type": "array"
+ },
+ "maxItems": 100,
+ "type": "array"
+ }
+ },
+ "required": [
+ "headers",
+ "rows"
+ ],
+ "type": "object"
+ },
+ "text": {
+ "description": "the block's text; for a button, its label (at most 40 characters)",
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "heading",
+ "subheading",
+ "paragraph",
+ "quote",
+ "bulletList",
+ "numberedList",
+ "sectionBreak",
+ "table",
+ "button"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ "op": {
+ "const": "insert_after",
+ "type": "string"
+ },
+ "ref": {
+ "description": "optional name for the new block, so later operations in this call can address it as \"ref:<name>\". The result's refs map each name to the block's real id.",
+ "pattern": "^[A-Za-z0-9_-]{1,40}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "op",
+ "block"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "blockId": {
+ "description": "deleting an image also deletes its caption",
+ "maxLength": 64,
+ "minLength": 1,
+ "type": "string"
+ },
+ "op": {
+ "const": "delete_block",
+ "type": "string"
+ }
+ },
+ "required": [
+ "op",
+ "blockId"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "afterBlockId": {
+ "description": "omit to move the block to the very start of the ebook; after an image means after its caption",
+ "maxLength": 64,
+ "minLength": 1,
+ "type": "string"
+ },
+ "blockId": {
+ "description": "an image moves together with its caption; a caption cannot be moved apart from its image",
+ "maxLength": 64,
+ "minLength": 1,
+ "type": "string"
+ },
+ "op": {
+ "const": "move_after",
+ "type": "string"
+ }
+ },
+ "required": [
+ "op",
+ "blockId"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "blockId": {
+ "description": "a block id from get_ebook, or \"ref:<name>\" for a block an earlier operation in this call named",
+ "maxLength": 64,
+ "minLength": 1,
+ "type": "string"
+ },
+ "op": {
+ "const": "set_table",
+ "type": "string"
+ },
+ "table": {
+ "description": "at most 10 columns and 100 rows, each cell at most 300 characters of plain text or inline markdown",
+ "properties": {
+ "align": {
+ "description": "per column; null or omitted means left",
+ "items": {
+ "anyOf": [
+ {
+ "enum": [
+ "left",
+ "center",
+ "right"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "maxItems": 10,
+ "type": "array"
+ },
+ "headers": {
+ "items": {
+ "maxLength": 300,
+ "type": "string"
+ },
+ "maxItems": 10,
+ "minItems": 1,
+ "type": "array"
+ },
+ "rows": {
+ "description": "one array of cells per row, one cell per header; a short row is padded with empty cells",
+ "items": {
+ "items": {
+ "maxLength": 300,
+ "type": "string"
+ },
+ "maxItems": 10,
+ "type": "array"
+ },
+ "maxItems": 100,
+ "type": "array"
+ }
+ },
+ "required": [
+ "headers",
+ "rows"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "op",
+ "blockId",
+ "table"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "blockId": {
+ "description": "a block id from get_ebook, or \"ref:<name>\" for a block an earlier operation in this call named",
+ "maxLength": 64,
+ "minLength": 1,
+ "type": "string"
+ },
+ "op": {
+ "const": "convert_block",
+ "type": "string"
+ },
+ "type": {
+ "description": "paragraph, heading, subheading and quote blocks convert into one another; any automatic treatment is removed",
+ "enum": [
+ "paragraph",
+ "heading",
+ "subheading",
+ "quote"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "op",
+ "blockId",
+ "type"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "blockId": {
+ "description": "the block to copy to directly after itself; title, image and caption blocks cannot be copied",
+ "maxLength": 64,
+ "minLength": 1,
+ "type": "string"
+ },
+ "op": {
+ "const": "duplicate_block",
+ "type": "string"
+ },
+ "ref": {
+ "description": "optional name for the new block, so later operations in this call can address it as \"ref:<name>\". The result's refs map each name to the block's real id.",
+ "pattern": "^[A-Za-z0-9_-]{1,40}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "op",
+ "blockId"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "align": {
+ "enum": [
+ "left",
+ "center",
+ "right"
+ ],
+ "type": "string"
+ },
+ "alt": {
+ "description": "\"\" removes the alt text",
+ "maxLength": 300,
+ "type": "string"
+ },
+ "blockId": {
+ "description": "a block id from get_ebook, or \"ref:<name>\" for a block an earlier operation in this call named",
+ "maxLength": 64,
+ "minLength": 1,
+ "type": "string"
+ },
+ "caption": {
+ "anyOf": [
+ {
+ "maxLength": 200,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "text creates or rewrites the caption block under the image; null removes it"
+ },
+ "op": {
+ "const": "set_image",
+ "type": "string"
+ },
+ "sizePreset": {
+ "description": "auto lets Unplain shrink it to avoid a half-empty page; the others are fixed widths",
+ "enum": [
+ "auto",
+ "small",
+ "medium",
+ "large",
+ "full"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "op",
+ "blockId"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "blockId": {
+ "description": "limit the replacement to this block; omit to replace across the whole ebook",
+ "maxLength": 64,
+ "minLength": 1,
+ "type": "string"
+ },
+ "find": {
+ "description": "exact, case-sensitive text to replace everywhere it occurs in block text, list items, button labels and table cells; the whole call fails if it occurs nowhere",
+ "maxLength": 1000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "op": {
+ "const": "replace_text",
+ "type": "string"
+ },
+ "replace": {
+ "maxLength": 20000,
+ "type": "string"
+ }
+ },
+ "required": [
+ "op",
+ "find",
+ "replace"
+ ],
+ "type": "object"
+ }
+]