@superdoc/cli 0.35.2-next.1 → 0.36.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/tools/catalog.json +142 -97
- package/dist/tools/tools.anthropic.json +127 -97
- package/dist/tools/tools.generic.json +130 -98
- package/dist/tools/tools.openai.json +127 -97
- package/dist/tools/tools.vercel.json +127 -97
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/dist/index.js
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 36221500 bytes
|
|
4
|
+
sha256: 4536966c58410642d42e7abd2c3bc3374989930945fce85d721b2146cc728604
|
package/dist/tools/catalog.json
CHANGED
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
155
|
"toolName": "superdoc_edit",
|
|
156
|
-
"description": "The primary tool for inserting content into documents. ALWAYS use action \"insert\" with type \"markdown\" to create headings, paragraphs, or any block content: this is faster and creates proper document structure in one call. Do NOT use superdoc_create for headings or paragraphs. The markdown parser creates headings from # markers (# = Heading1, ## = Heading2), bold from **text**, italic from *text*, and numbered/bullet lists. Position markdown inserts with \"target\" (a BlockNodeAddress like {kind:\"block\", nodeType, nodeId}) and \"placement\" (before, after, insideStart, insideEnd). Without a target, content appends at the end of the document. IMPORTANT: After a markdown insert, analyze the document context (what kind of document, how titles and body text are styled) and follow up with ONE superdoc_mutations call to format inserted blocks so they look like they belong. Each format.apply step accepts \"inline\" (fontFamily, fontSize, bold, underline, color), \"alignment\", and \"scope\" in the same step. Use scope: \"block\" so formatting covers the entire paragraph. Copy the exact property values from the existing get_content blocks (fontFamily, fontSize, color, alignment, bold, underline). Do NOT invent values: use what the blocks show. Also supports replace, delete, and undo/redo. For ordinary replace and delete, pass a \"ref\" from superdoc_search or superdoc_get_content blocks. A search ref covers only the matched substring; a block ref covers the entire block text, so use block refs when rewriting or shortening whole paragraphs. To replace every block in the main body, use action \"replace\" with target:{kind:\"story\",storyType:\"body\"}, one text/value/content payload, and changeMode:\"direct\". This replaces body content, not the DOCX package, and does not require a search first. Tracked whole-body replacement is unsupported. For multi-step redlines or whole-clause rewrites, prefer superdoc_mutations with where:{by:\"block\", nodeType, nodeId} from superdoc_get_content action \"blocks\" includeText:true rather than relying on text selectors. Refs expire after any mutation; always re-search before the next edit. For 2+ edits that must succeed or fail atomically, use superdoc_mutations instead. Before an exact HTML or Markdown insert/replace that must be fidelity-checked, use action \"check_support\", review its outcome and diagnostics, then pass its guard back as \"supportCheck\" on the unchanged write. Supports \"dryRun\" to preview changes and \"changeMode: tracked\" to record edits as tracked changes. Do NOT build \"target\" objects manually when a ref is available; prefer \"ref\" for simpler, more reliable targeting.\n\nEXAMPLES:\n 1. {\"action\":\"insert\",\"type\":\"markdown\",\"target\":{\"kind\":\"block\",\"nodeType\":\"paragraph\",\"nodeId\":\"<nodeId>\"},\"placement\":\"before\",\"value\":\"# Executive Summary\\n\\nThis agreement sets forth the principal terms...\",\"changeMode\":\"direct\"}\n 2. {\"action\":\"insert\",\"type\":\"html\",\"value\":\"<h2>Review heading</h2><p>Tracked rich content.</p>\",\"changeMode\":\"tracked\"}\n 3. {\"action\":\"insert\",\"type\":\"markdown\",\"value\":\"# Section Title\\n\\nParagraph content here.\\n\\n# Another Section\\n\\nMore content with **bold** and *italic*.\"}\n 4. {\"action\":\"replace\",\"ref\":\"<handle.ref>\",\"text\":\"new text here\"}\n 5. {\"action\":\"replace\",\"ref\":\"<handle.ref>\",\"value\":\"**Direct rich replacement**\",\"type\":\"markdown\",\"changeMode\":\"direct\"}\n 6. {\"action\":\"replace\",\"ref\":\"<handle.ref>\",\"value\":\"<strong>Tracked rich replacement</strong>\",\"type\":\"html\",\"changeMode\":\"tracked\"}\n 7. {\"action\":\"check_support\",\"operation\":\"insert\",\"input\":{\"type\":\"markdown\",\"value\":\"# Checked section\"},\"options\":{\"changeMode\":\"direct\"}}\n 8. {\"action\":\"replace\",\"target\":{\"kind\":\"story\",\"storyType\":\"body\"},\"value\":\"# Replacement\\n\\nComplete new body.\",\"type\":\"markdown\",\"changeMode\":\"direct\"}\n 9. {\"action\":\"delete\",\"ref\":\"<handle.ref>\"}\n 10. {\"action\":\"undo\"}",
|
|
156
|
+
"description": "The primary tool for inserting content into documents. ALWAYS use action \"insert\" with type \"markdown\" to create headings, paragraphs, or any block content: this is faster and creates proper document structure in one call. Do NOT use superdoc_create for headings or paragraphs. The markdown parser creates headings from # markers (# = Heading1, ## = Heading2), bold from **text**, italic from *text*, and numbered/bullet lists. Position markdown inserts with \"target\" (a BlockNodeAddress like {kind:\"block\", nodeType, nodeId}) and \"placement\" (before, after, insideStart, insideEnd). Without a target, content appends at the end of the document. IMPORTANT: After a markdown insert, analyze the document context (what kind of document, how titles and body text are styled) and follow up with ONE superdoc_mutations call to format inserted blocks so they look like they belong. Each format.apply step accepts \"inline\" (fontFamily, fontSize, bold, underline, color), \"alignment\", and \"scope\" in the same step. Use scope: \"block\" so formatting covers the entire paragraph. Copy the exact property values from the existing get_content blocks (fontFamily, fontSize, color, alignment, bold, underline). Do NOT invent values: use what the blocks show. Also supports replace, delete, and undo/redo. For ordinary replace and delete, pass a \"ref\" from superdoc_search or superdoc_get_content blocks. Action \"delete\" removes a text range and leaves the block container in place. To remove a whole paragraph, heading, list item, or table, use action \"delete_block\" with target:{kind:\"block\", nodeType, nodeId} from superdoc_get_content action \"blocks\", or action \"delete_block_range\" with \"start\" and \"end\" block addresses to remove a contiguous span of top-level blocks (inclusive). A search ref covers only the matched substring; a block ref covers the entire block text, so use block refs when rewriting or shortening whole paragraphs. To replace every block in the main body, use action \"replace\" with target:{kind:\"story\",storyType:\"body\"}, one text/value/content payload, and changeMode:\"direct\". This replaces body content, not the DOCX package, and does not require a search first. Tracked whole-body replacement is unsupported. For multi-step redlines or whole-clause rewrites, prefer superdoc_mutations with where:{by:\"block\", nodeType, nodeId} from superdoc_get_content action \"blocks\" includeText:true rather than relying on text selectors. Refs expire after any mutation; always re-search before the next edit. For 2+ edits that must succeed or fail atomically, use superdoc_mutations instead. Before an exact HTML or Markdown insert/replace that must be fidelity-checked, use action \"check_support\", review its outcome and diagnostics, then pass its guard back as \"supportCheck\" on the unchanged write. Supports \"dryRun\" to preview changes and \"changeMode: tracked\" to record edits as tracked changes. Do NOT build \"target\" objects manually when a ref is available; prefer \"ref\" for simpler, more reliable targeting.\n\nEXAMPLES:\n 1. {\"action\":\"insert\",\"type\":\"markdown\",\"target\":{\"kind\":\"block\",\"nodeType\":\"paragraph\",\"nodeId\":\"<nodeId>\"},\"placement\":\"before\",\"value\":\"# Executive Summary\\n\\nThis agreement sets forth the principal terms...\",\"changeMode\":\"direct\"}\n 2. {\"action\":\"insert\",\"type\":\"html\",\"value\":\"<h2>Review heading</h2><p>Tracked rich content.</p>\",\"changeMode\":\"tracked\"}\n 3. {\"action\":\"insert\",\"type\":\"markdown\",\"value\":\"# Section Title\\n\\nParagraph content here.\\n\\n# Another Section\\n\\nMore content with **bold** and *italic*.\"}\n 4. {\"action\":\"replace\",\"ref\":\"<handle.ref>\",\"text\":\"new text here\"}\n 5. {\"action\":\"replace\",\"ref\":\"<handle.ref>\",\"value\":\"**Direct rich replacement**\",\"type\":\"markdown\",\"changeMode\":\"direct\"}\n 6. {\"action\":\"replace\",\"ref\":\"<handle.ref>\",\"value\":\"<strong>Tracked rich replacement</strong>\",\"type\":\"html\",\"changeMode\":\"tracked\"}\n 7. {\"action\":\"check_support\",\"operation\":\"insert\",\"input\":{\"type\":\"markdown\",\"value\":\"# Checked section\"},\"options\":{\"changeMode\":\"direct\"}}\n 8. {\"action\":\"replace\",\"target\":{\"kind\":\"story\",\"storyType\":\"body\"},\"value\":\"# Replacement\\n\\nComplete new body.\",\"type\":\"markdown\",\"changeMode\":\"direct\"}\n 9. {\"action\":\"delete\",\"ref\":\"<handle.ref>\"}\n 10. {\"action\":\"delete_block\",\"target\":{\"kind\":\"block\",\"nodeType\":\"heading\",\"nodeId\":\"<nodeId>\"}}\n 11. {\"action\":\"undo\"}",
|
|
157
157
|
"inputSchema": {
|
|
158
158
|
"type": "object",
|
|
159
159
|
"properties": {
|
|
@@ -162,12 +162,14 @@
|
|
|
162
162
|
"enum": [
|
|
163
163
|
"check_support",
|
|
164
164
|
"delete",
|
|
165
|
+
"delete_block",
|
|
166
|
+
"delete_block_range",
|
|
165
167
|
"insert",
|
|
166
168
|
"redo",
|
|
167
169
|
"replace",
|
|
168
170
|
"undo"
|
|
169
171
|
],
|
|
170
|
-
"description": "The action to perform. One of: check_support, delete, insert, redo, replace, undo."
|
|
172
|
+
"description": "The action to perform. One of: check_support, delete, delete_block, delete_block_range, insert, redo, replace, undo."
|
|
171
173
|
},
|
|
172
174
|
"force": {
|
|
173
175
|
"type": "boolean",
|
|
@@ -179,7 +181,7 @@
|
|
|
179
181
|
},
|
|
180
182
|
"dryRun": {
|
|
181
183
|
"type": "boolean",
|
|
182
|
-
"description": "Preview the result without applying changes.
|
|
184
|
+
"description": "Preview the result without applying changes."
|
|
183
185
|
},
|
|
184
186
|
"supportCheck": {
|
|
185
187
|
"type": "object",
|
|
@@ -215,45 +217,53 @@
|
|
|
215
217
|
"description": "Guard returned by capabilities check for this exact HTML or Markdown write. Only for actions 'insert', 'replace'. Omit for other actions."
|
|
216
218
|
},
|
|
217
219
|
"target": {
|
|
218
|
-
"
|
|
220
|
+
"anyOf": [
|
|
219
221
|
{
|
|
220
|
-
"
|
|
222
|
+
"anyOf": [
|
|
221
223
|
{
|
|
222
|
-
"
|
|
224
|
+
"anyOf": [
|
|
225
|
+
{
|
|
226
|
+
"$ref": "#/$defs/BlockNodeAddress",
|
|
227
|
+
"description": "Block address for structural insertion: {kind:'block', nodeType:'...', nodeId:'...'}."
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"type": "object",
|
|
231
|
+
"properties": {
|
|
232
|
+
"kind": {
|
|
233
|
+
"const": "story",
|
|
234
|
+
"type": "string"
|
|
235
|
+
},
|
|
236
|
+
"storyType": {
|
|
237
|
+
"const": "body",
|
|
238
|
+
"type": "string"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"additionalProperties": false,
|
|
242
|
+
"required": [
|
|
243
|
+
"kind",
|
|
244
|
+
"storyType"
|
|
245
|
+
]
|
|
246
|
+
}
|
|
247
|
+
],
|
|
223
248
|
"description": "Block address for structural insertion: {kind:'block', nodeType:'...', nodeId:'...'}."
|
|
224
249
|
},
|
|
225
250
|
{
|
|
226
|
-
"
|
|
227
|
-
"
|
|
228
|
-
"kind": {
|
|
229
|
-
"const": "story",
|
|
230
|
-
"type": "string"
|
|
231
|
-
},
|
|
232
|
-
"storyType": {
|
|
233
|
-
"const": "body",
|
|
234
|
-
"type": "string"
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
"additionalProperties": false,
|
|
238
|
-
"required": [
|
|
239
|
-
"kind",
|
|
240
|
-
"storyType"
|
|
241
|
-
]
|
|
251
|
+
"$ref": "#/$defs/SelectionTarget",
|
|
252
|
+
"description": "Selection target: {kind:'selection', start:{kind:'text', blockId, offset}, end:{kind:'text', blockId, offset}}. Use 'ref' instead when you have a search result handle."
|
|
242
253
|
}
|
|
243
254
|
],
|
|
244
255
|
"description": "Block address for structural insertion: {kind:'block', nodeType:'...', nodeId:'...'}."
|
|
245
256
|
},
|
|
246
257
|
{
|
|
247
|
-
"$ref": "#/$defs/
|
|
248
|
-
"description": "Selection target: {kind:'selection', start:{kind:'text', blockId, offset}, end:{kind:'text', blockId, offset}}. Use 'ref' instead when you have a search result handle."
|
|
258
|
+
"$ref": "#/$defs/DeletableBlockNodeAddress"
|
|
249
259
|
}
|
|
250
260
|
],
|
|
251
|
-
"description": "Block address for structural insertion: {kind:'block', nodeType:'...', nodeId:'...'}.
|
|
261
|
+
"description": "Block address for structural insertion: {kind:'block', nodeType:'...', nodeId:'...'}. Required for action 'delete_block'."
|
|
252
262
|
},
|
|
253
263
|
"in": {
|
|
254
|
-
"
|
|
264
|
+
"anyOf": [
|
|
255
265
|
{
|
|
256
|
-
"
|
|
266
|
+
"anyOf": [
|
|
257
267
|
{
|
|
258
268
|
"$ref": "#/$defs/StoryLocator",
|
|
259
269
|
"description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes."
|
|
@@ -437,7 +447,7 @@
|
|
|
437
447
|
"description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes. Only for actions 'insert', 'replace', 'delete'. Omit for other actions."
|
|
438
448
|
},
|
|
439
449
|
"value": {
|
|
440
|
-
"
|
|
450
|
+
"anyOf": [
|
|
441
451
|
{
|
|
442
452
|
"type": "string",
|
|
443
453
|
"description": "HTML or Markdown content to convert and insert."
|
|
@@ -450,7 +460,7 @@
|
|
|
450
460
|
"description": "HTML or Markdown content to convert and insert. Only for actions 'insert', 'replace'. Omit for other actions."
|
|
451
461
|
},
|
|
452
462
|
"type": {
|
|
453
|
-
"
|
|
463
|
+
"anyOf": [
|
|
454
464
|
{
|
|
455
465
|
"type": "string",
|
|
456
466
|
"oneOf": [
|
|
@@ -478,9 +488,9 @@
|
|
|
478
488
|
"description": "Only for actions 'insert', 'replace'. Omit for other actions."
|
|
479
489
|
},
|
|
480
490
|
"ref": {
|
|
481
|
-
"
|
|
491
|
+
"anyOf": [
|
|
482
492
|
{
|
|
483
|
-
"
|
|
493
|
+
"anyOf": [
|
|
484
494
|
{
|
|
485
495
|
"type": "string",
|
|
486
496
|
"description": "Handle ref from superdoc_search result (pass handle.ref value directly). Preferred over building a target object."
|
|
@@ -509,7 +519,7 @@
|
|
|
509
519
|
"description": "Where to place content relative to target: 'before', 'after', 'insideStart', or 'insideEnd'. Only for action 'insert'. Omit for other actions."
|
|
510
520
|
},
|
|
511
521
|
"content": {
|
|
512
|
-
"
|
|
522
|
+
"anyOf": [
|
|
513
523
|
{
|
|
514
524
|
"oneOf": [
|
|
515
525
|
{
|
|
@@ -543,7 +553,7 @@
|
|
|
543
553
|
"description": "Document fragment to insert (structured content). Only for actions 'insert', 'replace'. Omit for other actions."
|
|
544
554
|
},
|
|
545
555
|
"nestingPolicy": {
|
|
546
|
-
"
|
|
556
|
+
"anyOf": [
|
|
547
557
|
{
|
|
548
558
|
"type": "object",
|
|
549
559
|
"properties": {
|
|
@@ -580,14 +590,28 @@
|
|
|
580
590
|
"$ref": "#/$defs/DeleteBehavior",
|
|
581
591
|
"description": "Delete behavior: 'selection' (default) or 'exact'. Only for action 'delete'. Omit for other actions."
|
|
582
592
|
},
|
|
593
|
+
"start": {
|
|
594
|
+
"$ref": "#/$defs/BlockNodeAddress",
|
|
595
|
+
"description": "Required for action 'delete_block_range'."
|
|
596
|
+
},
|
|
597
|
+
"end": {
|
|
598
|
+
"$ref": "#/$defs/BlockNodeAddress",
|
|
599
|
+
"description": "Required for action 'delete_block_range'."
|
|
600
|
+
},
|
|
583
601
|
"operation": {
|
|
584
|
-
"
|
|
602
|
+
"anyOf": [
|
|
585
603
|
{
|
|
586
|
-
"
|
|
604
|
+
"anyOf": [
|
|
587
605
|
{
|
|
588
|
-
"
|
|
589
|
-
|
|
590
|
-
|
|
606
|
+
"anyOf": [
|
|
607
|
+
{
|
|
608
|
+
"const": "insert",
|
|
609
|
+
"type": "string"
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"const": "replace",
|
|
613
|
+
"type": "string"
|
|
614
|
+
}
|
|
591
615
|
]
|
|
592
616
|
},
|
|
593
617
|
{
|
|
@@ -604,11 +628,11 @@
|
|
|
604
628
|
"description": "Required for action 'check_support'."
|
|
605
629
|
},
|
|
606
630
|
"input": {
|
|
607
|
-
"
|
|
631
|
+
"anyOf": [
|
|
608
632
|
{
|
|
609
|
-
"
|
|
633
|
+
"anyOf": [
|
|
610
634
|
{
|
|
611
|
-
"
|
|
635
|
+
"anyOf": [
|
|
612
636
|
{
|
|
613
637
|
"oneOf": [
|
|
614
638
|
{
|
|
@@ -964,6 +988,21 @@
|
|
|
964
988
|
]
|
|
965
989
|
]
|
|
966
990
|
},
|
|
991
|
+
{
|
|
992
|
+
"operationId": "doc.blocks.delete",
|
|
993
|
+
"intentAction": "delete_block",
|
|
994
|
+
"required": [
|
|
995
|
+
"target"
|
|
996
|
+
]
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
"operationId": "doc.blocks.deleteRange",
|
|
1000
|
+
"intentAction": "delete_block_range",
|
|
1001
|
+
"required": [
|
|
1002
|
+
"start",
|
|
1003
|
+
"end"
|
|
1004
|
+
]
|
|
1005
|
+
},
|
|
967
1006
|
{
|
|
968
1007
|
"operationId": "doc.capabilities.check",
|
|
969
1008
|
"intentAction": "check_support",
|
|
@@ -1027,19 +1066,19 @@
|
|
|
1027
1066
|
"description": "Preview the result without applying changes."
|
|
1028
1067
|
},
|
|
1029
1068
|
"target": {
|
|
1030
|
-
"
|
|
1069
|
+
"anyOf": [
|
|
1031
1070
|
{
|
|
1032
|
-
"
|
|
1071
|
+
"anyOf": [
|
|
1033
1072
|
{
|
|
1034
|
-
"
|
|
1073
|
+
"anyOf": [
|
|
1035
1074
|
{
|
|
1036
|
-
"
|
|
1075
|
+
"anyOf": [
|
|
1037
1076
|
{
|
|
1038
|
-
"
|
|
1077
|
+
"anyOf": [
|
|
1039
1078
|
{
|
|
1040
|
-
"
|
|
1079
|
+
"anyOf": [
|
|
1041
1080
|
{
|
|
1042
|
-
"
|
|
1081
|
+
"anyOf": [
|
|
1043
1082
|
{
|
|
1044
1083
|
"$ref": "#/$defs/SelectionTarget",
|
|
1045
1084
|
"description": "Selection target: {kind:'selection', start:{kind:'text', blockId, offset}, end:{kind:'text', blockId, offset}}. Use 'ref' instead when you have a search result handle."
|
|
@@ -1975,7 +2014,7 @@
|
|
|
1975
2014
|
"description": "Handle ref string from a superdoc_search result. Pass the handle.ref value directly (e.g. 'text:eyJ...'). Preferred over 'target' for inline formatting. Only for action 'inline'. Omit for other actions."
|
|
1976
2015
|
},
|
|
1977
2016
|
"styleId": {
|
|
1978
|
-
"
|
|
2017
|
+
"anyOf": [
|
|
1979
2018
|
{
|
|
1980
2019
|
"type": "string",
|
|
1981
2020
|
"minLength": 1,
|
|
@@ -2254,7 +2293,7 @@
|
|
|
2254
2293
|
"description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes."
|
|
2255
2294
|
},
|
|
2256
2295
|
"at": {
|
|
2257
|
-
"
|
|
2296
|
+
"anyOf": [
|
|
2258
2297
|
{
|
|
2259
2298
|
"description": "Position: {kind:'documentEnd'} to append, {kind:'documentStart'} to prepend, or {kind:'before'|'after', target:{kind:'block', nodeType:'...', nodeId:'...'}} for relative placement.",
|
|
2260
2299
|
"oneOf": [
|
|
@@ -2450,7 +2489,7 @@
|
|
|
2450
2489
|
"description": "Position: {kind:'documentEnd'} to append, {kind:'documentStart'} to prepend, or {kind:'before'|'after', target:{kind:'block', nodeType:'...', nodeId:'...'}} for relative placement."
|
|
2451
2490
|
},
|
|
2452
2491
|
"text": {
|
|
2453
|
-
"
|
|
2492
|
+
"anyOf": [
|
|
2454
2493
|
{
|
|
2455
2494
|
"type": "string",
|
|
2456
2495
|
"description": "Paragraph text content. Each call creates ONE paragraph. For multiple items (e.g. list items), call superdoc_create separately for each item: do NOT use newlines to put multiple items in one paragraph."
|
|
@@ -2463,7 +2502,7 @@
|
|
|
2463
2502
|
"description": "Paragraph text content. Each call creates ONE paragraph. For multiple items (e.g. list items), call superdoc_create separately for each item: do NOT use newlines to put multiple items in one paragraph."
|
|
2464
2503
|
},
|
|
2465
2504
|
"input": {
|
|
2466
|
-
"
|
|
2505
|
+
"anyOf": [
|
|
2467
2506
|
{
|
|
2468
2507
|
"type": "object",
|
|
2469
2508
|
"description": "Full paragraph input as JSON (alternative to individual text/at params)."
|
|
@@ -2558,29 +2597,29 @@
|
|
|
2558
2597
|
"description": "Preview the result without applying changes."
|
|
2559
2598
|
},
|
|
2560
2599
|
"target": {
|
|
2561
|
-
"
|
|
2600
|
+
"anyOf": [
|
|
2562
2601
|
{
|
|
2563
|
-
"
|
|
2602
|
+
"anyOf": [
|
|
2564
2603
|
{
|
|
2565
|
-
"
|
|
2604
|
+
"anyOf": [
|
|
2566
2605
|
{
|
|
2567
|
-
"
|
|
2606
|
+
"anyOf": [
|
|
2568
2607
|
{
|
|
2569
|
-
"
|
|
2608
|
+
"anyOf": [
|
|
2570
2609
|
{
|
|
2571
|
-
"
|
|
2610
|
+
"anyOf": [
|
|
2572
2611
|
{
|
|
2573
|
-
"
|
|
2612
|
+
"anyOf": [
|
|
2574
2613
|
{
|
|
2575
|
-
"
|
|
2614
|
+
"anyOf": [
|
|
2576
2615
|
{
|
|
2577
|
-
"
|
|
2616
|
+
"anyOf": [
|
|
2578
2617
|
{
|
|
2579
|
-
"
|
|
2618
|
+
"anyOf": [
|
|
2580
2619
|
{
|
|
2581
|
-
"
|
|
2620
|
+
"anyOf": [
|
|
2582
2621
|
{
|
|
2583
|
-
"
|
|
2622
|
+
"anyOf": [
|
|
2584
2623
|
{
|
|
2585
2624
|
"$ref": "#/$defs/ListItemAddress",
|
|
2586
2625
|
"description": "The target list item. For 'insert': the item to insert relative to. For 'create' with mode 'fromParagraphs': use nodeType 'paragraph' instead. Format: {kind:'block', nodeType:'listItem', nodeId:'<id>'}."
|
|
@@ -2696,9 +2735,9 @@
|
|
|
2696
2735
|
"description": "List type: 'bullet' for bullet points, 'ordered' for numbered lists. Required for action 'set_type'."
|
|
2697
2736
|
},
|
|
2698
2737
|
"level": {
|
|
2699
|
-
"
|
|
2738
|
+
"anyOf": [
|
|
2700
2739
|
{
|
|
2701
|
-
"
|
|
2740
|
+
"anyOf": [
|
|
2702
2741
|
{
|
|
2703
2742
|
"type": "integer",
|
|
2704
2743
|
"minimum": 0,
|
|
@@ -3017,7 +3056,7 @@
|
|
|
3017
3056
|
"description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
|
|
3018
3057
|
},
|
|
3019
3058
|
"text": {
|
|
3020
|
-
"
|
|
3059
|
+
"anyOf": [
|
|
3021
3060
|
{
|
|
3022
3061
|
"type": "string",
|
|
3023
3062
|
"description": "Comment text content."
|
|
@@ -3030,7 +3069,7 @@
|
|
|
3030
3069
|
"description": "Comment text content. Required for action 'create'."
|
|
3031
3070
|
},
|
|
3032
3071
|
"target": {
|
|
3033
|
-
"
|
|
3072
|
+
"anyOf": [
|
|
3034
3073
|
{
|
|
3035
3074
|
"description": "Text range to anchor the comment. Accepts either a single-block TextAddress {kind:'text', blockId, range}, a multi-segment TextTarget {kind:'text', segments:[{blockId, range}, ...]} for selections that span blocks, a SelectionTarget {kind:'selection', start, end} returned by query.match, a TextSearchCommentTarget {text, story?}, or a TrackedChangeCommentTarget ({kind:'trackedChange', trackedChangeId, side?} or {trackedChangeId, side?}) that names a logical tracked-change id as a convenience anchor .",
|
|
3036
3075
|
"oneOf": [
|
|
@@ -5976,46 +6015,46 @@
|
|
|
5976
6015
|
"description": "Preview the result without applying changes."
|
|
5977
6016
|
},
|
|
5978
6017
|
"target": {
|
|
5979
|
-
"
|
|
6018
|
+
"anyOf": [
|
|
5980
6019
|
{
|
|
5981
|
-
"
|
|
6020
|
+
"anyOf": [
|
|
5982
6021
|
{
|
|
5983
|
-
"
|
|
6022
|
+
"anyOf": [
|
|
5984
6023
|
{
|
|
5985
|
-
"
|
|
6024
|
+
"anyOf": [
|
|
5986
6025
|
{
|
|
5987
|
-
"
|
|
6026
|
+
"anyOf": [
|
|
5988
6027
|
{
|
|
5989
|
-
"
|
|
6028
|
+
"anyOf": [
|
|
5990
6029
|
{
|
|
5991
|
-
"
|
|
6030
|
+
"anyOf": [
|
|
5992
6031
|
{
|
|
5993
|
-
"
|
|
6032
|
+
"anyOf": [
|
|
5994
6033
|
{
|
|
5995
|
-
"
|
|
6034
|
+
"anyOf": [
|
|
5996
6035
|
{
|
|
5997
|
-
"
|
|
6036
|
+
"anyOf": [
|
|
5998
6037
|
{
|
|
5999
|
-
"
|
|
6038
|
+
"anyOf": [
|
|
6000
6039
|
{
|
|
6001
|
-
"
|
|
6040
|
+
"anyOf": [
|
|
6002
6041
|
{
|
|
6003
|
-
"
|
|
6042
|
+
"anyOf": [
|
|
6004
6043
|
{
|
|
6005
|
-
"
|
|
6044
|
+
"anyOf": [
|
|
6006
6045
|
{
|
|
6007
|
-
"
|
|
6046
|
+
"anyOf": [
|
|
6008
6047
|
{
|
|
6009
|
-
"
|
|
6048
|
+
"anyOf": [
|
|
6010
6049
|
{
|
|
6011
|
-
"
|
|
6050
|
+
"anyOf": [
|
|
6012
6051
|
{
|
|
6013
6052
|
"$ref": "#/$defs/TableAddress"
|
|
6014
6053
|
},
|
|
6015
6054
|
{
|
|
6016
|
-
"
|
|
6055
|
+
"anyOf": [
|
|
6017
6056
|
{
|
|
6018
|
-
"
|
|
6057
|
+
"anyOf": [
|
|
6019
6058
|
{
|
|
6020
6059
|
"$ref": "#/$defs/TableRowAddress"
|
|
6021
6060
|
},
|
|
@@ -6032,7 +6071,7 @@
|
|
|
6032
6071
|
]
|
|
6033
6072
|
},
|
|
6034
6073
|
{
|
|
6035
|
-
"
|
|
6074
|
+
"anyOf": [
|
|
6036
6075
|
{
|
|
6037
6076
|
"$ref": "#/$defs/TableRowAddress"
|
|
6038
6077
|
},
|
|
@@ -6044,7 +6083,7 @@
|
|
|
6044
6083
|
]
|
|
6045
6084
|
},
|
|
6046
6085
|
{
|
|
6047
|
-
"
|
|
6086
|
+
"anyOf": [
|
|
6048
6087
|
{
|
|
6049
6088
|
"$ref": "#/$defs/TableRowAddress"
|
|
6050
6089
|
},
|
|
@@ -6056,7 +6095,7 @@
|
|
|
6056
6095
|
]
|
|
6057
6096
|
},
|
|
6058
6097
|
{
|
|
6059
|
-
"
|
|
6098
|
+
"anyOf": [
|
|
6060
6099
|
{
|
|
6061
6100
|
"$ref": "#/$defs/TableRowAddress"
|
|
6062
6101
|
},
|
|
@@ -6068,7 +6107,7 @@
|
|
|
6068
6107
|
]
|
|
6069
6108
|
},
|
|
6070
6109
|
{
|
|
6071
|
-
"
|
|
6110
|
+
"anyOf": [
|
|
6072
6111
|
{
|
|
6073
6112
|
"$ref": "#/$defs/TableRowAddress"
|
|
6074
6113
|
},
|
|
@@ -6105,7 +6144,7 @@
|
|
|
6105
6144
|
]
|
|
6106
6145
|
},
|
|
6107
6146
|
{
|
|
6108
|
-
"
|
|
6147
|
+
"anyOf": [
|
|
6109
6148
|
{
|
|
6110
6149
|
"$ref": "#/$defs/TableCellAddress"
|
|
6111
6150
|
},
|
|
@@ -6122,7 +6161,7 @@
|
|
|
6122
6161
|
]
|
|
6123
6162
|
},
|
|
6124
6163
|
{
|
|
6125
|
-
"
|
|
6164
|
+
"anyOf": [
|
|
6126
6165
|
{
|
|
6127
6166
|
"$ref": "#/$defs/TableCellAddress"
|
|
6128
6167
|
},
|
|
@@ -6218,7 +6257,7 @@
|
|
|
6218
6257
|
"description": "Only for actions 'insert_row', 'delete_row', 'move_row', 'set_row', 'set_row_options', 'unmerge_cells', 'set_cell_text'. Omit for other actions."
|
|
6219
6258
|
},
|
|
6220
6259
|
"destination": {
|
|
6221
|
-
"
|
|
6260
|
+
"anyOf": [
|
|
6222
6261
|
{
|
|
6223
6262
|
"oneOf": [
|
|
6224
6263
|
{
|
|
@@ -6616,9 +6655,15 @@
|
|
|
6616
6655
|
"description": "Only for action 'set_style_options'. Omit for other actions."
|
|
6617
6656
|
},
|
|
6618
6657
|
"mode": {
|
|
6619
|
-
"
|
|
6620
|
-
|
|
6621
|
-
|
|
6658
|
+
"anyOf": [
|
|
6659
|
+
{
|
|
6660
|
+
"const": "applyTo",
|
|
6661
|
+
"type": "string"
|
|
6662
|
+
},
|
|
6663
|
+
{
|
|
6664
|
+
"const": "edges",
|
|
6665
|
+
"type": "string"
|
|
6666
|
+
}
|
|
6622
6667
|
],
|
|
6623
6668
|
"description": "Required for action 'set_borders'."
|
|
6624
6669
|
},
|