@superdoc-dev/sdk 1.6.0-next.9 → 1.7.0
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/generated/client.d.ts +301 -12
- package/dist/generated/client.d.ts.map +1 -1
- package/dist/generated/contract.cjs +2018 -494
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +2018 -494
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/tools.cjs +53 -5
- package/dist/tools.d.ts +12 -1
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +52 -5
- package/package.json +6 -6
- package/tools/__pycache__/__init__.cpython-312.pyc +0 -0
- package/tools/__pycache__/intent_dispatch_generated.cpython-312.pyc +0 -0
- package/tools/catalog.json +432 -74
- package/tools/prompt-templates/system-prompt-core.md +276 -0
- package/tools/prompt-templates/system-prompt-mcp-header.md +50 -0
- package/tools/prompt-templates/system-prompt-sdk-header.md +5 -0
- package/tools/system-prompt-mcp.md +325 -0
- package/tools/system-prompt.md +101 -15
- package/tools/tools-policy.json +1 -1
- package/tools/tools.anthropic.json +432 -74
- package/tools/tools.generic.json +432 -74
- package/tools/tools.openai.json +432 -74
- package/tools/tools.vercel.json +432 -74
package/tools/tools.vercel.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "function",
|
|
6
6
|
"function": {
|
|
7
7
|
"name": "superdoc_get_content",
|
|
8
|
-
"description": "Read document content in various formats. Call this first in any workflow to understand document structure before making edits. Action \"blocks\" returns structured block data with nodeId, nodeType, textPreview, formatting properties (fontFamily, fontSize, color, bold, underline, alignment), and ref handles for immediate use with superdoc_edit or superdoc_format. Action \"text\" and \"markdown\" return the full document as plain text or Markdown. Action \"html\" returns HTML. Action \"info\" returns document metadata: word count, paragraph count, page count, outline, available styles, and capability flags. The \"blocks\" action supports pagination via \"offset\" and \"limit\", and filtering via \"nodeTypes\". Other actions ignore these parameters. This tool never modifies the document. Do NOT call superdoc_edit or superdoc_format without first reading blocks to get valid refs and formatting reference values.",
|
|
8
|
+
"description": "Read document content in various formats. Call this first in any workflow to understand document structure before making edits. Action \"blocks\" returns structured block data with nodeId, nodeType, textPreview, optional full text when includeText:true, formatting properties (fontFamily, fontSize, color, bold, underline, alignment), and ref handles for immediate use with superdoc_edit or superdoc_format. When you need to evaluate or rewrite existing paragraphs or clauses, prefer action \"blocks\" with includeText:true so you can identify the correct block and then target it by nodeId. Action \"text\" and \"markdown\" return the full document as plain text or Markdown. Action \"html\" returns HTML. Action \"info\" returns document metadata: word count, paragraph count, page count, outline, available styles, and capability flags. The \"blocks\" action supports pagination via \"offset\" and \"limit\", and filtering via \"nodeTypes\". Other actions ignore these parameters. This tool never modifies the document. Do NOT call superdoc_edit or superdoc_format without first reading blocks to get valid refs and formatting reference values.",
|
|
9
9
|
"parameters": {
|
|
10
10
|
"type": "object",
|
|
11
11
|
"properties": {
|
|
@@ -49,6 +49,10 @@
|
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
51
|
"description": "Filter by block types (e.g. ['paragraph', 'heading']). Omit for all types. Only for action 'blocks'. Omit for other actions."
|
|
52
|
+
},
|
|
53
|
+
"includeText": {
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"description": "When true, includes the full flattened block text in each block entry. Only for action 'blocks'. Omit for other actions."
|
|
52
56
|
}
|
|
53
57
|
},
|
|
54
58
|
"required": [
|
|
@@ -62,7 +66,7 @@
|
|
|
62
66
|
"type": "function",
|
|
63
67
|
"function": {
|
|
64
68
|
"name": "superdoc_edit",
|
|
65
|
-
"description": "
|
|
69
|
+
"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 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. 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. Supports \"dryRun\" to preview changes and \"changeMode: tracked\" to record edits as tracked changes (not supported for markdown/html inserts). Do NOT build \"target\" objects manually when a ref is available; prefer \"ref\" for simpler, more reliable targeting.",
|
|
66
70
|
"parameters": {
|
|
67
71
|
"type": "object",
|
|
68
72
|
"properties": {
|
|
@@ -365,7 +369,7 @@
|
|
|
365
369
|
"type": "function",
|
|
366
370
|
"function": {
|
|
367
371
|
"name": "superdoc_format",
|
|
368
|
-
"description": "Change text and paragraph formatting.
|
|
372
|
+
"description": "Change text and paragraph formatting. To format multiple items at once, use superdoc_mutations with format.apply steps instead of calling this tool repeatedly. Use require \"all\" with a node selector to format every heading or paragraph in one batch. Use this tool for single-item formatting when you have a valid ref or nodeId. Action \"inline\" applies character formatting (bold, italic, underline, color, fontSize, fontFamily, highlight, strike, vertAlign) to a text range via \"ref\". Action \"set_style\" applies a named paragraph style by styleId (get available styles from superdoc_get_content info). Actions \"set_alignment\", \"set_indentation\", \"set_spacing\", \"set_direction\", and \"set_flow_options\" change paragraph-level properties and require a block target: {kind:\"block\", nodeType:\"paragraph\", nodeId:\"<nodeId>\"}, NOT a ref. Use \"set_flow_options\" with pageBreakBefore:true to start a paragraph on a new page. Supports \"dryRun\" and \"changeMode: tracked\" for inline formatting. Paragraph-level actions do NOT support tracked changes. Do NOT use a search ref for paragraph-level actions; they require a block target with nodeId. Do NOT use {kind:\"block\", start:{kind:\"nodeEdge\",...}} or selection-like structures for paragraph actions. ONLY {kind:\"block\", nodeType, nodeId} is accepted. Do NOT issue multiple superdoc_format calls in parallel; each call invalidates refs for subsequent calls.",
|
|
369
373
|
"parameters": {
|
|
370
374
|
"type": "object",
|
|
371
375
|
"properties": {
|
|
@@ -913,7 +917,7 @@
|
|
|
913
917
|
"type": "function",
|
|
914
918
|
"function": {
|
|
915
919
|
"name": "superdoc_create",
|
|
916
|
-
"description": "
|
|
920
|
+
"description": "IMPORTANT: For headings and paragraphs, use superdoc_edit with type \"markdown\" instead — it is faster, creates proper styles, and handles positioning via target + placement. Only use superdoc_create for tables or when markdown cannot express the content. Creates a single paragraph, heading, or table. Returns nodeId and ref for the created block. After creating, the returned ref is valid for ONE immediate superdoc_format call. For subsequent operations, re-fetch blocks with superdoc_get_content to get fresh refs (refs expire after any mutation). When the user asks for a \"heading\", use action \"heading\" with a level (default 1). Use action \"paragraph\" for regular body text. Position with \"at\": {kind:\"documentEnd\"} (default), {kind:\"documentStart\"}, or {kind:\"after\"/\"before\", target:{kind:\"block\", nodeType, nodeId}} for relative placement. When creating multiple items in sequence, use the previous response nodeId as the next \"at\" target to maintain correct ordering. Do NOT use newlines in \"text\" to create multiple paragraphs; call this tool separately for each one.",
|
|
917
921
|
"parameters": {
|
|
918
922
|
"type": "object",
|
|
919
923
|
"properties": {
|
|
@@ -1543,7 +1547,7 @@
|
|
|
1543
1547
|
"type": "function",
|
|
1544
1548
|
"function": {
|
|
1545
1549
|
"name": "superdoc_search",
|
|
1546
|
-
"description": "
|
|
1550
|
+
"description": "Find text patterns or nodes in the document and get ref handles for targeting edits and formatting. Refs expire after any mutation that changes the document. Re-search before the next edit when using individual tools (superdoc_edit, superdoc_format). Within a superdoc_mutations batch, selectors in \"where\" clauses resolve automatically at compile time; no manual re-searching needed between steps. Text search returns handle.ref covering only the matched substring. Node search finds blocks by type (paragraph, heading, table, listItem, etc.). The \"require\" parameter controls match cardinality: \"first\" returns one match, \"all\" returns every match, \"exactlyOne\" fails if not exactly one match. Supports scoping via \"within\" to search inside a single block. Do NOT use regex or markdown formatting markers (#, **, etc.) in search patterns; patterns are plain text only. Do NOT use this tool when you already have a ref from superdoc_get_content blocks or superdoc_create; use that ref directly.",
|
|
1547
1551
|
"parameters": {
|
|
1548
1552
|
"type": "object",
|
|
1549
1553
|
"properties": {
|
|
@@ -1701,7 +1705,7 @@
|
|
|
1701
1705
|
"type": "function",
|
|
1702
1706
|
"function": {
|
|
1703
1707
|
"name": "superdoc_mutations",
|
|
1704
|
-
"description": "All steps succeed or all fail; no partial application. Execute multiple
|
|
1708
|
+
"description": "All steps succeed or all fail; no partial application. Execute multiple operations atomically in one batch. Use this for any workflow needing 2+ changes. Supported step types: text (text.rewrite, text.insert, text.delete), format (format.apply), create (create.heading, create.paragraph, create.table), assert. Each step has an id, an op, a \"where\" clause for targeting ({by:\"select\", select:{...}, require:\"first\"|\"exactlyOne\"|\"all\"} or {by:\"ref\", ref:\"...\"} or {by:\"block\", nodeType:\"paragraph\", nodeId:\"...\"}), and \"args\" with operation-specific parameters. Use {by:\"block\", nodeType, nodeId} when you want to rewrite, delete, format, or anchor against a whole known block from superdoc_get_content action \"blocks\" without relying on text matching. For full-paragraph or full-clause rewrites, first call superdoc_get_content with action:\"blocks\" and includeText:true, then rewrite the matching block by nodeId. Use {by:\"select\"} only for substring edits, discovery, or insertion relative to a sentence fragment; do NOT use a shortened text selector to replace an entire known block. For create steps, \"where\" targets an existing anchor block and args.position (\"before\" or \"after\") controls placement. Sequential creates targeting the same anchor maintain correct order via internal position mapping. For format.apply with require \"all\", use a node selector to format every heading or paragraph at once: {by:\"select\", select:{type:\"node\", nodeType:\"heading\"}, require:\"all\"}. Selectors resolve at compile time (before execution). This means format.apply steps CANNOT target content created by earlier create steps in the same batch. Split creates and formatting into separate batches: first a mutations call with creates, then a mutations call with format.apply. Action \"preview\" dry-runs the plan. Action \"apply\" executes it. If a selector matches nothing, the failure reports the step id plus selector details so you can retry with a shorter or more distinctive anchor. Do NOT create two steps that target overlapping text in the same block; combine them into a single text.rewrite step.",
|
|
1705
1709
|
"parameters": {
|
|
1706
1710
|
"type": "object",
|
|
1707
1711
|
"properties": {
|
|
@@ -2092,6 +2096,36 @@
|
|
|
2092
2096
|
"by",
|
|
2093
2097
|
"target"
|
|
2094
2098
|
]
|
|
2099
|
+
},
|
|
2100
|
+
{
|
|
2101
|
+
"type": "object",
|
|
2102
|
+
"properties": {
|
|
2103
|
+
"by": {
|
|
2104
|
+
"const": "block",
|
|
2105
|
+
"type": "string"
|
|
2106
|
+
},
|
|
2107
|
+
"nodeType": {
|
|
2108
|
+
"enum": [
|
|
2109
|
+
"paragraph",
|
|
2110
|
+
"heading",
|
|
2111
|
+
"listItem",
|
|
2112
|
+
"table",
|
|
2113
|
+
"tableRow",
|
|
2114
|
+
"tableCell",
|
|
2115
|
+
"tableOfContents",
|
|
2116
|
+
"image",
|
|
2117
|
+
"sdt"
|
|
2118
|
+
]
|
|
2119
|
+
},
|
|
2120
|
+
"nodeId": {
|
|
2121
|
+
"type": "string"
|
|
2122
|
+
}
|
|
2123
|
+
},
|
|
2124
|
+
"required": [
|
|
2125
|
+
"by",
|
|
2126
|
+
"nodeType",
|
|
2127
|
+
"nodeId"
|
|
2128
|
+
]
|
|
2095
2129
|
}
|
|
2096
2130
|
]
|
|
2097
2131
|
},
|
|
@@ -2242,53 +2276,155 @@
|
|
|
2242
2276
|
"type": "string"
|
|
2243
2277
|
},
|
|
2244
2278
|
"where": {
|
|
2245
|
-
"
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
"
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
{
|
|
2279
|
+
"oneOf": [
|
|
2280
|
+
{
|
|
2281
|
+
"type": "object",
|
|
2282
|
+
"properties": {
|
|
2283
|
+
"by": {
|
|
2284
|
+
"const": "select",
|
|
2285
|
+
"type": "string"
|
|
2286
|
+
},
|
|
2287
|
+
"select": {
|
|
2288
|
+
"oneOf": [
|
|
2289
|
+
{
|
|
2290
|
+
"type": "object",
|
|
2291
|
+
"properties": {
|
|
2292
|
+
"type": {
|
|
2293
|
+
"const": "text",
|
|
2294
|
+
"description": "Must be 'text' for text pattern search.",
|
|
2295
|
+
"type": "string"
|
|
2296
|
+
},
|
|
2297
|
+
"pattern": {
|
|
2298
|
+
"type": "string",
|
|
2299
|
+
"description": "Text or regex pattern to match."
|
|
2300
|
+
},
|
|
2301
|
+
"mode": {
|
|
2302
|
+
"description": "Match mode: 'contains' (substring) or 'regex'.",
|
|
2303
|
+
"enum": [
|
|
2304
|
+
"contains",
|
|
2305
|
+
"regex"
|
|
2306
|
+
]
|
|
2307
|
+
},
|
|
2308
|
+
"caseSensitive": {
|
|
2309
|
+
"type": "boolean",
|
|
2310
|
+
"description": "Case-sensitive matching. Default: false."
|
|
2311
|
+
}
|
|
2312
|
+
},
|
|
2313
|
+
"required": [
|
|
2314
|
+
"type",
|
|
2315
|
+
"pattern"
|
|
2316
|
+
]
|
|
2317
|
+
},
|
|
2318
|
+
{
|
|
2319
|
+
"type": "object",
|
|
2320
|
+
"properties": {
|
|
2321
|
+
"type": {
|
|
2322
|
+
"const": "node",
|
|
2323
|
+
"description": "Must be 'node' for node type search.",
|
|
2324
|
+
"type": "string"
|
|
2325
|
+
},
|
|
2326
|
+
"nodeType": {
|
|
2327
|
+
"description": "Block type to match (paragraph, heading, table, listItem, etc.).",
|
|
2328
|
+
"enum": [
|
|
2329
|
+
"paragraph",
|
|
2330
|
+
"heading",
|
|
2331
|
+
"listItem",
|
|
2332
|
+
"table",
|
|
2333
|
+
"tableRow",
|
|
2334
|
+
"tableCell",
|
|
2335
|
+
"tableOfContents",
|
|
2336
|
+
"image",
|
|
2337
|
+
"sdt",
|
|
2338
|
+
"run",
|
|
2339
|
+
"bookmark",
|
|
2340
|
+
"comment",
|
|
2341
|
+
"hyperlink",
|
|
2342
|
+
"footnoteRef",
|
|
2343
|
+
"endnoteRef",
|
|
2344
|
+
"crossRef",
|
|
2345
|
+
"indexEntry",
|
|
2346
|
+
"citation",
|
|
2347
|
+
"authorityEntry",
|
|
2348
|
+
"sequenceField",
|
|
2349
|
+
"tab",
|
|
2350
|
+
"lineBreak"
|
|
2351
|
+
]
|
|
2352
|
+
},
|
|
2353
|
+
"kind": {
|
|
2354
|
+
"description": "Filter: 'block' or 'inline'.",
|
|
2355
|
+
"enum": [
|
|
2356
|
+
"block",
|
|
2357
|
+
"inline"
|
|
2358
|
+
]
|
|
2359
|
+
}
|
|
2360
|
+
},
|
|
2361
|
+
"required": [
|
|
2362
|
+
"type"
|
|
2363
|
+
]
|
|
2364
|
+
}
|
|
2365
|
+
]
|
|
2366
|
+
},
|
|
2367
|
+
"within": {
|
|
2254
2368
|
"type": "object",
|
|
2255
2369
|
"properties": {
|
|
2256
|
-
"
|
|
2257
|
-
"const": "
|
|
2258
|
-
"description": "Must be 'text' for text pattern search.",
|
|
2370
|
+
"kind": {
|
|
2371
|
+
"const": "block",
|
|
2259
2372
|
"type": "string"
|
|
2260
2373
|
},
|
|
2261
|
-
"
|
|
2262
|
-
"type": "string",
|
|
2263
|
-
"description": "Text or regex pattern to match."
|
|
2264
|
-
},
|
|
2265
|
-
"mode": {
|
|
2266
|
-
"description": "Match mode: 'contains' (substring) or 'regex'.",
|
|
2374
|
+
"nodeType": {
|
|
2267
2375
|
"enum": [
|
|
2268
|
-
"
|
|
2269
|
-
"
|
|
2376
|
+
"paragraph",
|
|
2377
|
+
"heading",
|
|
2378
|
+
"listItem",
|
|
2379
|
+
"table",
|
|
2380
|
+
"tableRow",
|
|
2381
|
+
"tableCell",
|
|
2382
|
+
"tableOfContents",
|
|
2383
|
+
"image",
|
|
2384
|
+
"sdt"
|
|
2270
2385
|
]
|
|
2271
2386
|
},
|
|
2272
|
-
"
|
|
2273
|
-
"type": "
|
|
2274
|
-
"description": "Case-sensitive matching. Default: false."
|
|
2387
|
+
"nodeId": {
|
|
2388
|
+
"type": "string"
|
|
2275
2389
|
}
|
|
2276
2390
|
},
|
|
2277
2391
|
"required": [
|
|
2278
|
-
"
|
|
2279
|
-
"
|
|
2392
|
+
"kind",
|
|
2393
|
+
"nodeType",
|
|
2394
|
+
"nodeId"
|
|
2280
2395
|
]
|
|
2281
2396
|
},
|
|
2282
|
-
{
|
|
2397
|
+
"require": {
|
|
2398
|
+
"enum": [
|
|
2399
|
+
"first",
|
|
2400
|
+
"exactlyOne"
|
|
2401
|
+
]
|
|
2402
|
+
}
|
|
2403
|
+
},
|
|
2404
|
+
"required": [
|
|
2405
|
+
"by",
|
|
2406
|
+
"select",
|
|
2407
|
+
"require"
|
|
2408
|
+
]
|
|
2409
|
+
},
|
|
2410
|
+
{
|
|
2411
|
+
"type": "object",
|
|
2412
|
+
"properties": {
|
|
2413
|
+
"by": {
|
|
2414
|
+
"const": "ref",
|
|
2415
|
+
"type": "string"
|
|
2416
|
+
},
|
|
2417
|
+
"ref": {
|
|
2418
|
+
"type": "string"
|
|
2419
|
+
},
|
|
2420
|
+
"within": {
|
|
2283
2421
|
"type": "object",
|
|
2284
2422
|
"properties": {
|
|
2285
|
-
"
|
|
2286
|
-
"const": "
|
|
2287
|
-
"description": "Must be 'node' for node type search.",
|
|
2423
|
+
"kind": {
|
|
2424
|
+
"const": "block",
|
|
2288
2425
|
"type": "string"
|
|
2289
2426
|
},
|
|
2290
2427
|
"nodeType": {
|
|
2291
|
-
"description": "Block type to match (paragraph, heading, table, listItem, etc.).",
|
|
2292
2428
|
"enum": [
|
|
2293
2429
|
"paragraph",
|
|
2294
2430
|
"heading",
|
|
@@ -2298,40 +2434,200 @@
|
|
|
2298
2434
|
"tableCell",
|
|
2299
2435
|
"tableOfContents",
|
|
2300
2436
|
"image",
|
|
2301
|
-
"sdt"
|
|
2302
|
-
"run",
|
|
2303
|
-
"bookmark",
|
|
2304
|
-
"comment",
|
|
2305
|
-
"hyperlink",
|
|
2306
|
-
"footnoteRef",
|
|
2307
|
-
"endnoteRef",
|
|
2308
|
-
"crossRef",
|
|
2309
|
-
"indexEntry",
|
|
2310
|
-
"citation",
|
|
2311
|
-
"authorityEntry",
|
|
2312
|
-
"sequenceField",
|
|
2313
|
-
"tab",
|
|
2314
|
-
"lineBreak"
|
|
2437
|
+
"sdt"
|
|
2315
2438
|
]
|
|
2316
2439
|
},
|
|
2440
|
+
"nodeId": {
|
|
2441
|
+
"type": "string"
|
|
2442
|
+
}
|
|
2443
|
+
},
|
|
2444
|
+
"required": [
|
|
2445
|
+
"kind",
|
|
2446
|
+
"nodeType",
|
|
2447
|
+
"nodeId"
|
|
2448
|
+
]
|
|
2449
|
+
}
|
|
2450
|
+
},
|
|
2451
|
+
"required": [
|
|
2452
|
+
"by",
|
|
2453
|
+
"ref"
|
|
2454
|
+
]
|
|
2455
|
+
},
|
|
2456
|
+
{
|
|
2457
|
+
"type": "object",
|
|
2458
|
+
"properties": {
|
|
2459
|
+
"by": {
|
|
2460
|
+
"const": "target",
|
|
2461
|
+
"type": "string"
|
|
2462
|
+
},
|
|
2463
|
+
"target": {
|
|
2464
|
+
"type": "object",
|
|
2465
|
+
"properties": {
|
|
2317
2466
|
"kind": {
|
|
2318
|
-
"
|
|
2319
|
-
"
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2467
|
+
"const": "selection",
|
|
2468
|
+
"type": "string"
|
|
2469
|
+
},
|
|
2470
|
+
"start": {
|
|
2471
|
+
"oneOf": [
|
|
2472
|
+
{
|
|
2473
|
+
"type": "object",
|
|
2474
|
+
"properties": {
|
|
2475
|
+
"kind": {
|
|
2476
|
+
"const": "text",
|
|
2477
|
+
"type": "string"
|
|
2478
|
+
},
|
|
2479
|
+
"blockId": {
|
|
2480
|
+
"type": "string"
|
|
2481
|
+
},
|
|
2482
|
+
"offset": {
|
|
2483
|
+
"type": "number"
|
|
2484
|
+
}
|
|
2485
|
+
},
|
|
2486
|
+
"required": [
|
|
2487
|
+
"kind",
|
|
2488
|
+
"blockId",
|
|
2489
|
+
"offset"
|
|
2490
|
+
]
|
|
2491
|
+
},
|
|
2492
|
+
{
|
|
2493
|
+
"type": "object",
|
|
2494
|
+
"properties": {
|
|
2495
|
+
"kind": {
|
|
2496
|
+
"const": "nodeEdge",
|
|
2497
|
+
"type": "string"
|
|
2498
|
+
},
|
|
2499
|
+
"node": {
|
|
2500
|
+
"type": "object",
|
|
2501
|
+
"properties": {
|
|
2502
|
+
"kind": {
|
|
2503
|
+
"const": "block",
|
|
2504
|
+
"type": "string"
|
|
2505
|
+
},
|
|
2506
|
+
"nodeType": {
|
|
2507
|
+
"enum": [
|
|
2508
|
+
"paragraph",
|
|
2509
|
+
"heading",
|
|
2510
|
+
"table",
|
|
2511
|
+
"tableOfContents",
|
|
2512
|
+
"sdt",
|
|
2513
|
+
"image"
|
|
2514
|
+
]
|
|
2515
|
+
},
|
|
2516
|
+
"nodeId": {
|
|
2517
|
+
"type": "string"
|
|
2518
|
+
}
|
|
2519
|
+
},
|
|
2520
|
+
"required": [
|
|
2521
|
+
"kind",
|
|
2522
|
+
"nodeType",
|
|
2523
|
+
"nodeId"
|
|
2524
|
+
]
|
|
2525
|
+
},
|
|
2526
|
+
"edge": {
|
|
2527
|
+
"enum": [
|
|
2528
|
+
"before",
|
|
2529
|
+
"after"
|
|
2530
|
+
]
|
|
2531
|
+
}
|
|
2532
|
+
},
|
|
2533
|
+
"required": [
|
|
2534
|
+
"kind",
|
|
2535
|
+
"node",
|
|
2536
|
+
"edge"
|
|
2537
|
+
]
|
|
2538
|
+
}
|
|
2539
|
+
],
|
|
2540
|
+
"description": "A point in the document. Use {kind:'text', blockId, offset} for character positions or {kind:'nodeEdge', node:{kind:'block', nodeType, nodeId}, edge:'before'|'after'} for block boundaries."
|
|
2541
|
+
},
|
|
2542
|
+
"end": {
|
|
2543
|
+
"oneOf": [
|
|
2544
|
+
{
|
|
2545
|
+
"type": "object",
|
|
2546
|
+
"properties": {
|
|
2547
|
+
"kind": {
|
|
2548
|
+
"const": "text",
|
|
2549
|
+
"type": "string"
|
|
2550
|
+
},
|
|
2551
|
+
"blockId": {
|
|
2552
|
+
"type": "string"
|
|
2553
|
+
},
|
|
2554
|
+
"offset": {
|
|
2555
|
+
"type": "number"
|
|
2556
|
+
}
|
|
2557
|
+
},
|
|
2558
|
+
"required": [
|
|
2559
|
+
"kind",
|
|
2560
|
+
"blockId",
|
|
2561
|
+
"offset"
|
|
2562
|
+
]
|
|
2563
|
+
},
|
|
2564
|
+
{
|
|
2565
|
+
"type": "object",
|
|
2566
|
+
"properties": {
|
|
2567
|
+
"kind": {
|
|
2568
|
+
"const": "nodeEdge",
|
|
2569
|
+
"type": "string"
|
|
2570
|
+
},
|
|
2571
|
+
"node": {
|
|
2572
|
+
"type": "object",
|
|
2573
|
+
"properties": {
|
|
2574
|
+
"kind": {
|
|
2575
|
+
"const": "block",
|
|
2576
|
+
"type": "string"
|
|
2577
|
+
},
|
|
2578
|
+
"nodeType": {
|
|
2579
|
+
"enum": [
|
|
2580
|
+
"paragraph",
|
|
2581
|
+
"heading",
|
|
2582
|
+
"table",
|
|
2583
|
+
"tableOfContents",
|
|
2584
|
+
"sdt",
|
|
2585
|
+
"image"
|
|
2586
|
+
]
|
|
2587
|
+
},
|
|
2588
|
+
"nodeId": {
|
|
2589
|
+
"type": "string"
|
|
2590
|
+
}
|
|
2591
|
+
},
|
|
2592
|
+
"required": [
|
|
2593
|
+
"kind",
|
|
2594
|
+
"nodeType",
|
|
2595
|
+
"nodeId"
|
|
2596
|
+
]
|
|
2597
|
+
},
|
|
2598
|
+
"edge": {
|
|
2599
|
+
"enum": [
|
|
2600
|
+
"before",
|
|
2601
|
+
"after"
|
|
2602
|
+
]
|
|
2603
|
+
}
|
|
2604
|
+
},
|
|
2605
|
+
"required": [
|
|
2606
|
+
"kind",
|
|
2607
|
+
"node",
|
|
2608
|
+
"edge"
|
|
2609
|
+
]
|
|
2610
|
+
}
|
|
2611
|
+
],
|
|
2612
|
+
"description": "A point in the document. Use {kind:'text', blockId, offset} for character positions or {kind:'nodeEdge', node:{kind:'block', nodeType, nodeId}, edge:'before'|'after'} for block boundaries."
|
|
2323
2613
|
}
|
|
2324
2614
|
},
|
|
2325
2615
|
"required": [
|
|
2326
|
-
"
|
|
2616
|
+
"kind",
|
|
2617
|
+
"start",
|
|
2618
|
+
"end"
|
|
2327
2619
|
]
|
|
2328
2620
|
}
|
|
2621
|
+
},
|
|
2622
|
+
"required": [
|
|
2623
|
+
"by",
|
|
2624
|
+
"target"
|
|
2329
2625
|
]
|
|
2330
2626
|
},
|
|
2331
|
-
|
|
2627
|
+
{
|
|
2332
2628
|
"type": "object",
|
|
2333
2629
|
"properties": {
|
|
2334
|
-
"
|
|
2630
|
+
"by": {
|
|
2335
2631
|
"const": "block",
|
|
2336
2632
|
"type": "string"
|
|
2337
2633
|
},
|
|
@@ -2353,22 +2649,11 @@
|
|
|
2353
2649
|
}
|
|
2354
2650
|
},
|
|
2355
2651
|
"required": [
|
|
2356
|
-
"
|
|
2652
|
+
"by",
|
|
2357
2653
|
"nodeType",
|
|
2358
2654
|
"nodeId"
|
|
2359
2655
|
]
|
|
2360
|
-
},
|
|
2361
|
-
"require": {
|
|
2362
|
-
"enum": [
|
|
2363
|
-
"first",
|
|
2364
|
-
"exactlyOne"
|
|
2365
|
-
]
|
|
2366
2656
|
}
|
|
2367
|
-
},
|
|
2368
|
-
"required": [
|
|
2369
|
-
"by",
|
|
2370
|
-
"select",
|
|
2371
|
-
"require"
|
|
2372
2657
|
]
|
|
2373
2658
|
},
|
|
2374
2659
|
"args": {
|
|
@@ -2820,6 +3105,36 @@
|
|
|
2820
3105
|
"by",
|
|
2821
3106
|
"target"
|
|
2822
3107
|
]
|
|
3108
|
+
},
|
|
3109
|
+
{
|
|
3110
|
+
"type": "object",
|
|
3111
|
+
"properties": {
|
|
3112
|
+
"by": {
|
|
3113
|
+
"const": "block",
|
|
3114
|
+
"type": "string"
|
|
3115
|
+
},
|
|
3116
|
+
"nodeType": {
|
|
3117
|
+
"enum": [
|
|
3118
|
+
"paragraph",
|
|
3119
|
+
"heading",
|
|
3120
|
+
"listItem",
|
|
3121
|
+
"table",
|
|
3122
|
+
"tableRow",
|
|
3123
|
+
"tableCell",
|
|
3124
|
+
"tableOfContents",
|
|
3125
|
+
"image",
|
|
3126
|
+
"sdt"
|
|
3127
|
+
]
|
|
3128
|
+
},
|
|
3129
|
+
"nodeId": {
|
|
3130
|
+
"type": "string"
|
|
3131
|
+
}
|
|
3132
|
+
},
|
|
3133
|
+
"required": [
|
|
3134
|
+
"by",
|
|
3135
|
+
"nodeType",
|
|
3136
|
+
"nodeId"
|
|
3137
|
+
]
|
|
2823
3138
|
}
|
|
2824
3139
|
]
|
|
2825
3140
|
},
|
|
@@ -3201,6 +3516,36 @@
|
|
|
3201
3516
|
"by",
|
|
3202
3517
|
"target"
|
|
3203
3518
|
]
|
|
3519
|
+
},
|
|
3520
|
+
{
|
|
3521
|
+
"type": "object",
|
|
3522
|
+
"properties": {
|
|
3523
|
+
"by": {
|
|
3524
|
+
"const": "block",
|
|
3525
|
+
"type": "string"
|
|
3526
|
+
},
|
|
3527
|
+
"nodeType": {
|
|
3528
|
+
"enum": [
|
|
3529
|
+
"paragraph",
|
|
3530
|
+
"heading",
|
|
3531
|
+
"listItem",
|
|
3532
|
+
"table",
|
|
3533
|
+
"tableRow",
|
|
3534
|
+
"tableCell",
|
|
3535
|
+
"tableOfContents",
|
|
3536
|
+
"image",
|
|
3537
|
+
"sdt"
|
|
3538
|
+
]
|
|
3539
|
+
},
|
|
3540
|
+
"nodeId": {
|
|
3541
|
+
"type": "string"
|
|
3542
|
+
}
|
|
3543
|
+
},
|
|
3544
|
+
"required": [
|
|
3545
|
+
"by",
|
|
3546
|
+
"nodeType",
|
|
3547
|
+
"nodeId"
|
|
3548
|
+
]
|
|
3204
3549
|
}
|
|
3205
3550
|
]
|
|
3206
3551
|
},
|
|
@@ -3466,11 +3811,24 @@
|
|
|
3466
3811
|
"type": "boolean"
|
|
3467
3812
|
}
|
|
3468
3813
|
}
|
|
3814
|
+
},
|
|
3815
|
+
"alignment": {
|
|
3816
|
+
"description": "Set paragraph alignment on the target block(s). Can be combined with inline formatting in the same step.",
|
|
3817
|
+
"enum": [
|
|
3818
|
+
"left",
|
|
3819
|
+
"center",
|
|
3820
|
+
"right",
|
|
3821
|
+
"justify"
|
|
3822
|
+
]
|
|
3823
|
+
},
|
|
3824
|
+
"scope": {
|
|
3825
|
+
"description": "When \"block\", inline formatting expands to cover the entire parent paragraph(s), not just the matched text. Use \"block\" after markdown inserts to format whole paragraphs with a short identifying pattern. Default: \"match\".",
|
|
3826
|
+
"enum": [
|
|
3827
|
+
"match",
|
|
3828
|
+
"block"
|
|
3829
|
+
]
|
|
3469
3830
|
}
|
|
3470
|
-
}
|
|
3471
|
-
"required": [
|
|
3472
|
-
"inline"
|
|
3473
|
-
]
|
|
3831
|
+
}
|
|
3474
3832
|
}
|
|
3475
3833
|
},
|
|
3476
3834
|
"required": [
|