@superdoc/cli 0.35.2-next.1 → 0.36.0-next.1
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 +95327 -94954
- 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
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
"name": "superdoc_edit",
|
|
119
|
-
"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\"}",
|
|
119
|
+
"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\"}",
|
|
120
120
|
"input_schema": {
|
|
121
121
|
"type": "object",
|
|
122
122
|
"properties": {
|
|
@@ -125,12 +125,14 @@
|
|
|
125
125
|
"enum": [
|
|
126
126
|
"check_support",
|
|
127
127
|
"delete",
|
|
128
|
+
"delete_block",
|
|
129
|
+
"delete_block_range",
|
|
128
130
|
"insert",
|
|
129
131
|
"redo",
|
|
130
132
|
"replace",
|
|
131
133
|
"undo"
|
|
132
134
|
],
|
|
133
|
-
"description": "The action to perform. One of: check_support, delete, insert, redo, replace, undo."
|
|
135
|
+
"description": "The action to perform. One of: check_support, delete, delete_block, delete_block_range, insert, redo, replace, undo."
|
|
134
136
|
},
|
|
135
137
|
"force": {
|
|
136
138
|
"type": "boolean",
|
|
@@ -142,7 +144,7 @@
|
|
|
142
144
|
},
|
|
143
145
|
"dryRun": {
|
|
144
146
|
"type": "boolean",
|
|
145
|
-
"description": "Preview the result without applying changes.
|
|
147
|
+
"description": "Preview the result without applying changes."
|
|
146
148
|
},
|
|
147
149
|
"supportCheck": {
|
|
148
150
|
"type": "object",
|
|
@@ -178,45 +180,53 @@
|
|
|
178
180
|
"description": "Guard returned by capabilities check for this exact HTML or Markdown write. Only for actions 'insert', 'replace'. Omit for other actions."
|
|
179
181
|
},
|
|
180
182
|
"target": {
|
|
181
|
-
"
|
|
183
|
+
"anyOf": [
|
|
182
184
|
{
|
|
183
|
-
"
|
|
185
|
+
"anyOf": [
|
|
184
186
|
{
|
|
185
|
-
"
|
|
187
|
+
"anyOf": [
|
|
188
|
+
{
|
|
189
|
+
"$ref": "#/$defs/BlockNodeAddress",
|
|
190
|
+
"description": "Block address for structural insertion: {kind:'block', nodeType:'...', nodeId:'...'}."
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"type": "object",
|
|
194
|
+
"properties": {
|
|
195
|
+
"kind": {
|
|
196
|
+
"const": "story",
|
|
197
|
+
"type": "string"
|
|
198
|
+
},
|
|
199
|
+
"storyType": {
|
|
200
|
+
"const": "body",
|
|
201
|
+
"type": "string"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"additionalProperties": false,
|
|
205
|
+
"required": [
|
|
206
|
+
"kind",
|
|
207
|
+
"storyType"
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
],
|
|
186
211
|
"description": "Block address for structural insertion: {kind:'block', nodeType:'...', nodeId:'...'}."
|
|
187
212
|
},
|
|
188
213
|
{
|
|
189
|
-
"
|
|
190
|
-
"
|
|
191
|
-
"kind": {
|
|
192
|
-
"const": "story",
|
|
193
|
-
"type": "string"
|
|
194
|
-
},
|
|
195
|
-
"storyType": {
|
|
196
|
-
"const": "body",
|
|
197
|
-
"type": "string"
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
"additionalProperties": false,
|
|
201
|
-
"required": [
|
|
202
|
-
"kind",
|
|
203
|
-
"storyType"
|
|
204
|
-
]
|
|
214
|
+
"$ref": "#/$defs/SelectionTarget",
|
|
215
|
+
"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."
|
|
205
216
|
}
|
|
206
217
|
],
|
|
207
218
|
"description": "Block address for structural insertion: {kind:'block', nodeType:'...', nodeId:'...'}."
|
|
208
219
|
},
|
|
209
220
|
{
|
|
210
|
-
"$ref": "#/$defs/
|
|
211
|
-
"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."
|
|
221
|
+
"$ref": "#/$defs/DeletableBlockNodeAddress"
|
|
212
222
|
}
|
|
213
223
|
],
|
|
214
|
-
"description": "Block address for structural insertion: {kind:'block', nodeType:'...', nodeId:'...'}.
|
|
224
|
+
"description": "Block address for structural insertion: {kind:'block', nodeType:'...', nodeId:'...'}. Required for action 'delete_block'."
|
|
215
225
|
},
|
|
216
226
|
"in": {
|
|
217
|
-
"
|
|
227
|
+
"anyOf": [
|
|
218
228
|
{
|
|
219
|
-
"
|
|
229
|
+
"anyOf": [
|
|
220
230
|
{
|
|
221
231
|
"$ref": "#/$defs/StoryLocator",
|
|
222
232
|
"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."
|
|
@@ -400,7 +410,7 @@
|
|
|
400
410
|
"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."
|
|
401
411
|
},
|
|
402
412
|
"value": {
|
|
403
|
-
"
|
|
413
|
+
"anyOf": [
|
|
404
414
|
{
|
|
405
415
|
"type": "string",
|
|
406
416
|
"description": "HTML or Markdown content to convert and insert."
|
|
@@ -413,7 +423,7 @@
|
|
|
413
423
|
"description": "HTML or Markdown content to convert and insert. Only for actions 'insert', 'replace'. Omit for other actions."
|
|
414
424
|
},
|
|
415
425
|
"type": {
|
|
416
|
-
"
|
|
426
|
+
"anyOf": [
|
|
417
427
|
{
|
|
418
428
|
"type": "string",
|
|
419
429
|
"oneOf": [
|
|
@@ -441,9 +451,9 @@
|
|
|
441
451
|
"description": "Only for actions 'insert', 'replace'. Omit for other actions."
|
|
442
452
|
},
|
|
443
453
|
"ref": {
|
|
444
|
-
"
|
|
454
|
+
"anyOf": [
|
|
445
455
|
{
|
|
446
|
-
"
|
|
456
|
+
"anyOf": [
|
|
447
457
|
{
|
|
448
458
|
"type": "string",
|
|
449
459
|
"description": "Handle ref from superdoc_search result (pass handle.ref value directly). Preferred over building a target object."
|
|
@@ -472,7 +482,7 @@
|
|
|
472
482
|
"description": "Where to place content relative to target: 'before', 'after', 'insideStart', or 'insideEnd'. Only for action 'insert'. Omit for other actions."
|
|
473
483
|
},
|
|
474
484
|
"content": {
|
|
475
|
-
"
|
|
485
|
+
"anyOf": [
|
|
476
486
|
{
|
|
477
487
|
"oneOf": [
|
|
478
488
|
{
|
|
@@ -506,7 +516,7 @@
|
|
|
506
516
|
"description": "Document fragment to insert (structured content). Only for actions 'insert', 'replace'. Omit for other actions."
|
|
507
517
|
},
|
|
508
518
|
"nestingPolicy": {
|
|
509
|
-
"
|
|
519
|
+
"anyOf": [
|
|
510
520
|
{
|
|
511
521
|
"type": "object",
|
|
512
522
|
"properties": {
|
|
@@ -543,14 +553,28 @@
|
|
|
543
553
|
"$ref": "#/$defs/DeleteBehavior",
|
|
544
554
|
"description": "Delete behavior: 'selection' (default) or 'exact'. Only for action 'delete'. Omit for other actions."
|
|
545
555
|
},
|
|
556
|
+
"start": {
|
|
557
|
+
"$ref": "#/$defs/BlockNodeAddress",
|
|
558
|
+
"description": "Required for action 'delete_block_range'."
|
|
559
|
+
},
|
|
560
|
+
"end": {
|
|
561
|
+
"$ref": "#/$defs/BlockNodeAddress",
|
|
562
|
+
"description": "Required for action 'delete_block_range'."
|
|
563
|
+
},
|
|
546
564
|
"operation": {
|
|
547
|
-
"
|
|
565
|
+
"anyOf": [
|
|
548
566
|
{
|
|
549
|
-
"
|
|
567
|
+
"anyOf": [
|
|
550
568
|
{
|
|
551
|
-
"
|
|
552
|
-
|
|
553
|
-
|
|
569
|
+
"anyOf": [
|
|
570
|
+
{
|
|
571
|
+
"const": "insert",
|
|
572
|
+
"type": "string"
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"const": "replace",
|
|
576
|
+
"type": "string"
|
|
577
|
+
}
|
|
554
578
|
]
|
|
555
579
|
},
|
|
556
580
|
{
|
|
@@ -567,11 +591,11 @@
|
|
|
567
591
|
"description": "Required for action 'check_support'."
|
|
568
592
|
},
|
|
569
593
|
"input": {
|
|
570
|
-
"
|
|
594
|
+
"anyOf": [
|
|
571
595
|
{
|
|
572
|
-
"
|
|
596
|
+
"anyOf": [
|
|
573
597
|
{
|
|
574
|
-
"
|
|
598
|
+
"anyOf": [
|
|
575
599
|
{
|
|
576
600
|
"oneOf": [
|
|
577
601
|
{
|
|
@@ -868,19 +892,19 @@
|
|
|
868
892
|
"description": "Preview the result without applying changes."
|
|
869
893
|
},
|
|
870
894
|
"target": {
|
|
871
|
-
"
|
|
895
|
+
"anyOf": [
|
|
872
896
|
{
|
|
873
|
-
"
|
|
897
|
+
"anyOf": [
|
|
874
898
|
{
|
|
875
|
-
"
|
|
899
|
+
"anyOf": [
|
|
876
900
|
{
|
|
877
|
-
"
|
|
901
|
+
"anyOf": [
|
|
878
902
|
{
|
|
879
|
-
"
|
|
903
|
+
"anyOf": [
|
|
880
904
|
{
|
|
881
|
-
"
|
|
905
|
+
"anyOf": [
|
|
882
906
|
{
|
|
883
|
-
"
|
|
907
|
+
"anyOf": [
|
|
884
908
|
{
|
|
885
909
|
"$ref": "#/$defs/SelectionTarget",
|
|
886
910
|
"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."
|
|
@@ -1816,7 +1840,7 @@
|
|
|
1816
1840
|
"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."
|
|
1817
1841
|
},
|
|
1818
1842
|
"styleId": {
|
|
1819
|
-
"
|
|
1843
|
+
"anyOf": [
|
|
1820
1844
|
{
|
|
1821
1845
|
"type": "string",
|
|
1822
1846
|
"minLength": 1,
|
|
@@ -2026,7 +2050,7 @@
|
|
|
2026
2050
|
"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."
|
|
2027
2051
|
},
|
|
2028
2052
|
"at": {
|
|
2029
|
-
"
|
|
2053
|
+
"anyOf": [
|
|
2030
2054
|
{
|
|
2031
2055
|
"description": "Position: {kind:'documentEnd'} to append, {kind:'documentStart'} to prepend, or {kind:'before'|'after', target:{kind:'block', nodeType:'...', nodeId:'...'}} for relative placement.",
|
|
2032
2056
|
"oneOf": [
|
|
@@ -2222,7 +2246,7 @@
|
|
|
2222
2246
|
"description": "Position: {kind:'documentEnd'} to append, {kind:'documentStart'} to prepend, or {kind:'before'|'after', target:{kind:'block', nodeType:'...', nodeId:'...'}} for relative placement."
|
|
2223
2247
|
},
|
|
2224
2248
|
"text": {
|
|
2225
|
-
"
|
|
2249
|
+
"anyOf": [
|
|
2226
2250
|
{
|
|
2227
2251
|
"type": "string",
|
|
2228
2252
|
"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."
|
|
@@ -2235,7 +2259,7 @@
|
|
|
2235
2259
|
"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."
|
|
2236
2260
|
},
|
|
2237
2261
|
"input": {
|
|
2238
|
-
"
|
|
2262
|
+
"anyOf": [
|
|
2239
2263
|
{
|
|
2240
2264
|
"type": "object",
|
|
2241
2265
|
"description": "Full paragraph input as JSON (alternative to individual text/at params)."
|
|
@@ -2308,29 +2332,29 @@
|
|
|
2308
2332
|
"description": "Preview the result without applying changes."
|
|
2309
2333
|
},
|
|
2310
2334
|
"target": {
|
|
2311
|
-
"
|
|
2335
|
+
"anyOf": [
|
|
2312
2336
|
{
|
|
2313
|
-
"
|
|
2337
|
+
"anyOf": [
|
|
2314
2338
|
{
|
|
2315
|
-
"
|
|
2339
|
+
"anyOf": [
|
|
2316
2340
|
{
|
|
2317
|
-
"
|
|
2341
|
+
"anyOf": [
|
|
2318
2342
|
{
|
|
2319
|
-
"
|
|
2343
|
+
"anyOf": [
|
|
2320
2344
|
{
|
|
2321
|
-
"
|
|
2345
|
+
"anyOf": [
|
|
2322
2346
|
{
|
|
2323
|
-
"
|
|
2347
|
+
"anyOf": [
|
|
2324
2348
|
{
|
|
2325
|
-
"
|
|
2349
|
+
"anyOf": [
|
|
2326
2350
|
{
|
|
2327
|
-
"
|
|
2351
|
+
"anyOf": [
|
|
2328
2352
|
{
|
|
2329
|
-
"
|
|
2353
|
+
"anyOf": [
|
|
2330
2354
|
{
|
|
2331
|
-
"
|
|
2355
|
+
"anyOf": [
|
|
2332
2356
|
{
|
|
2333
|
-
"
|
|
2357
|
+
"anyOf": [
|
|
2334
2358
|
{
|
|
2335
2359
|
"$ref": "#/$defs/ListItemAddress",
|
|
2336
2360
|
"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>'}."
|
|
@@ -2446,9 +2470,9 @@
|
|
|
2446
2470
|
"description": "List type: 'bullet' for bullet points, 'ordered' for numbered lists. Required for action 'set_type'."
|
|
2447
2471
|
},
|
|
2448
2472
|
"level": {
|
|
2449
|
-
"
|
|
2473
|
+
"anyOf": [
|
|
2450
2474
|
{
|
|
2451
|
-
"
|
|
2475
|
+
"anyOf": [
|
|
2452
2476
|
{
|
|
2453
2477
|
"type": "integer",
|
|
2454
2478
|
"minimum": 0,
|
|
@@ -2667,7 +2691,7 @@
|
|
|
2667
2691
|
"description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
|
|
2668
2692
|
},
|
|
2669
2693
|
"text": {
|
|
2670
|
-
"
|
|
2694
|
+
"anyOf": [
|
|
2671
2695
|
{
|
|
2672
2696
|
"type": "string",
|
|
2673
2697
|
"description": "Comment text content."
|
|
@@ -2680,7 +2704,7 @@
|
|
|
2680
2704
|
"description": "Comment text content. Required for action 'create'."
|
|
2681
2705
|
},
|
|
2682
2706
|
"target": {
|
|
2683
|
-
"
|
|
2707
|
+
"anyOf": [
|
|
2684
2708
|
{
|
|
2685
2709
|
"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 .",
|
|
2686
2710
|
"oneOf": [
|
|
@@ -5548,46 +5572,46 @@
|
|
|
5548
5572
|
"description": "Preview the result without applying changes."
|
|
5549
5573
|
},
|
|
5550
5574
|
"target": {
|
|
5551
|
-
"
|
|
5575
|
+
"anyOf": [
|
|
5552
5576
|
{
|
|
5553
|
-
"
|
|
5577
|
+
"anyOf": [
|
|
5554
5578
|
{
|
|
5555
|
-
"
|
|
5579
|
+
"anyOf": [
|
|
5556
5580
|
{
|
|
5557
|
-
"
|
|
5581
|
+
"anyOf": [
|
|
5558
5582
|
{
|
|
5559
|
-
"
|
|
5583
|
+
"anyOf": [
|
|
5560
5584
|
{
|
|
5561
|
-
"
|
|
5585
|
+
"anyOf": [
|
|
5562
5586
|
{
|
|
5563
|
-
"
|
|
5587
|
+
"anyOf": [
|
|
5564
5588
|
{
|
|
5565
|
-
"
|
|
5589
|
+
"anyOf": [
|
|
5566
5590
|
{
|
|
5567
|
-
"
|
|
5591
|
+
"anyOf": [
|
|
5568
5592
|
{
|
|
5569
|
-
"
|
|
5593
|
+
"anyOf": [
|
|
5570
5594
|
{
|
|
5571
|
-
"
|
|
5595
|
+
"anyOf": [
|
|
5572
5596
|
{
|
|
5573
|
-
"
|
|
5597
|
+
"anyOf": [
|
|
5574
5598
|
{
|
|
5575
|
-
"
|
|
5599
|
+
"anyOf": [
|
|
5576
5600
|
{
|
|
5577
|
-
"
|
|
5601
|
+
"anyOf": [
|
|
5578
5602
|
{
|
|
5579
|
-
"
|
|
5603
|
+
"anyOf": [
|
|
5580
5604
|
{
|
|
5581
|
-
"
|
|
5605
|
+
"anyOf": [
|
|
5582
5606
|
{
|
|
5583
|
-
"
|
|
5607
|
+
"anyOf": [
|
|
5584
5608
|
{
|
|
5585
5609
|
"$ref": "#/$defs/TableAddress"
|
|
5586
5610
|
},
|
|
5587
5611
|
{
|
|
5588
|
-
"
|
|
5612
|
+
"anyOf": [
|
|
5589
5613
|
{
|
|
5590
|
-
"
|
|
5614
|
+
"anyOf": [
|
|
5591
5615
|
{
|
|
5592
5616
|
"$ref": "#/$defs/TableRowAddress"
|
|
5593
5617
|
},
|
|
@@ -5604,7 +5628,7 @@
|
|
|
5604
5628
|
]
|
|
5605
5629
|
},
|
|
5606
5630
|
{
|
|
5607
|
-
"
|
|
5631
|
+
"anyOf": [
|
|
5608
5632
|
{
|
|
5609
5633
|
"$ref": "#/$defs/TableRowAddress"
|
|
5610
5634
|
},
|
|
@@ -5616,7 +5640,7 @@
|
|
|
5616
5640
|
]
|
|
5617
5641
|
},
|
|
5618
5642
|
{
|
|
5619
|
-
"
|
|
5643
|
+
"anyOf": [
|
|
5620
5644
|
{
|
|
5621
5645
|
"$ref": "#/$defs/TableRowAddress"
|
|
5622
5646
|
},
|
|
@@ -5628,7 +5652,7 @@
|
|
|
5628
5652
|
]
|
|
5629
5653
|
},
|
|
5630
5654
|
{
|
|
5631
|
-
"
|
|
5655
|
+
"anyOf": [
|
|
5632
5656
|
{
|
|
5633
5657
|
"$ref": "#/$defs/TableRowAddress"
|
|
5634
5658
|
},
|
|
@@ -5640,7 +5664,7 @@
|
|
|
5640
5664
|
]
|
|
5641
5665
|
},
|
|
5642
5666
|
{
|
|
5643
|
-
"
|
|
5667
|
+
"anyOf": [
|
|
5644
5668
|
{
|
|
5645
5669
|
"$ref": "#/$defs/TableRowAddress"
|
|
5646
5670
|
},
|
|
@@ -5677,7 +5701,7 @@
|
|
|
5677
5701
|
]
|
|
5678
5702
|
},
|
|
5679
5703
|
{
|
|
5680
|
-
"
|
|
5704
|
+
"anyOf": [
|
|
5681
5705
|
{
|
|
5682
5706
|
"$ref": "#/$defs/TableCellAddress"
|
|
5683
5707
|
},
|
|
@@ -5694,7 +5718,7 @@
|
|
|
5694
5718
|
]
|
|
5695
5719
|
},
|
|
5696
5720
|
{
|
|
5697
|
-
"
|
|
5721
|
+
"anyOf": [
|
|
5698
5722
|
{
|
|
5699
5723
|
"$ref": "#/$defs/TableCellAddress"
|
|
5700
5724
|
},
|
|
@@ -5790,7 +5814,7 @@
|
|
|
5790
5814
|
"description": "Only for actions 'insert_row', 'delete_row', 'move_row', 'set_row', 'set_row_options', 'unmerge_cells', 'set_cell_text'. Omit for other actions."
|
|
5791
5815
|
},
|
|
5792
5816
|
"destination": {
|
|
5793
|
-
"
|
|
5817
|
+
"anyOf": [
|
|
5794
5818
|
{
|
|
5795
5819
|
"oneOf": [
|
|
5796
5820
|
{
|
|
@@ -6188,9 +6212,15 @@
|
|
|
6188
6212
|
"description": "Only for action 'set_style_options'. Omit for other actions."
|
|
6189
6213
|
},
|
|
6190
6214
|
"mode": {
|
|
6191
|
-
"
|
|
6192
|
-
|
|
6193
|
-
|
|
6215
|
+
"anyOf": [
|
|
6216
|
+
{
|
|
6217
|
+
"const": "applyTo",
|
|
6218
|
+
"type": "string"
|
|
6219
|
+
},
|
|
6220
|
+
{
|
|
6221
|
+
"const": "edges",
|
|
6222
|
+
"type": "string"
|
|
6223
|
+
}
|
|
6194
6224
|
],
|
|
6195
6225
|
"description": "Required for action 'set_borders'."
|
|
6196
6226
|
},
|