@superdoc/cli 0.25.1 → 0.27.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/index.js +158314 -98849
- package/dist/tools/catalog.json +577 -2344
- package/dist/tools/system-prompt-mcp.md +20 -2
- package/dist/tools/system-prompt.md +19 -2
- package/dist/tools/tools.anthropic.json +413 -2245
- package/dist/tools/tools.generic.json +418 -2247
- package/dist/tools/tools.openai.json +413 -2245
- package/dist/tools/tools.vercel.json +413 -2245
- package/package.json +9 -9
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"tools": [
|
|
4
4
|
{
|
|
5
5
|
"name": "superdoc_get_content",
|
|
6
|
-
"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.
|
|
6
|
+
"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. Actions \"text\", \"markdown\", and \"html\" return compact strings. Actions \"markdown_projection\" and \"html_projection\" return detailed async projections with review modes, scopes, diagnostics, annotations, block maps, and optional source maps. Projection source targets use tracked coordinates and are valid only at evaluatedRevision; after any mutation, reproject before using them. Treat omitted or partially emitted annotations according to their status instead of guessing an anchor from rendered text. 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.\n\nEXAMPLES:\n 1. {\"action\":\"blocks\"}\n 2. {\"action\":\"blocks\",\"includeText\":true,\"offset\":0,\"limit\":20}\n 3. {\"action\":\"blocks\",\"offset\":0,\"limit\":20,\"nodeTypes\":[\"heading\",\"paragraph\"]}\n 4. {\"action\":\"text\"}\n 5. {\"action\":\"info\"}\n 6. {\"action\":\"html_projection\",\"reviewMode\":\"redline\",\"includeSourceMap\":true}\n 7. {\"action\":\"markdown_projection\",\"reviewMode\":\"original\",\"scope\":{\"kind\":\"block\",\"nodeType\":\"paragraph\",\"nodeId\":\"paragraph-id\"},\"includeSourceMap\":true}",
|
|
7
7
|
"parameters": {
|
|
8
8
|
"type": "object",
|
|
9
9
|
"properties": {
|
|
@@ -13,11 +13,13 @@
|
|
|
13
13
|
"blocks",
|
|
14
14
|
"extract",
|
|
15
15
|
"html",
|
|
16
|
+
"html_projection",
|
|
16
17
|
"info",
|
|
17
18
|
"markdown",
|
|
19
|
+
"markdown_projection",
|
|
18
20
|
"text"
|
|
19
21
|
],
|
|
20
|
-
"description": "The action to perform. One of: blocks, extract, html, info, markdown, text."
|
|
22
|
+
"description": "The action to perform. One of: blocks, extract, html, html_projection, info, markdown, markdown_projection, text."
|
|
21
23
|
},
|
|
22
24
|
"in": {
|
|
23
25
|
"$ref": "#/$defs/StoryLocator",
|
|
@@ -25,7 +27,19 @@
|
|
|
25
27
|
},
|
|
26
28
|
"unflattenLists": {
|
|
27
29
|
"type": "boolean",
|
|
28
|
-
"description": "
|
|
30
|
+
"description": "Deprecated and ignored by V2. V2 always emits canonical nested semantic lists. Only for action 'html'. Omit for other actions."
|
|
31
|
+
},
|
|
32
|
+
"reviewMode": {
|
|
33
|
+
"$ref": "#/$defs/SDProjectionReviewMode",
|
|
34
|
+
"description": "Only for actions 'markdown_projection', 'html_projection'. Omit for other actions."
|
|
35
|
+
},
|
|
36
|
+
"scope": {
|
|
37
|
+
"$ref": "#/$defs/SDProjectionScope",
|
|
38
|
+
"description": "Only for actions 'markdown_projection', 'html_projection'. Omit for other actions."
|
|
39
|
+
},
|
|
40
|
+
"includeSourceMap": {
|
|
41
|
+
"type": "boolean",
|
|
42
|
+
"description": "Only for actions 'markdown_projection', 'html_projection'. Omit for other actions."
|
|
29
43
|
},
|
|
30
44
|
"offset": {
|
|
31
45
|
"type": "number",
|
|
@@ -66,11 +80,13 @@
|
|
|
66
80
|
},
|
|
67
81
|
"metadata": {
|
|
68
82
|
"mutates": false,
|
|
69
|
-
"operationCount":
|
|
83
|
+
"operationCount": 8,
|
|
70
84
|
"operations": [
|
|
71
85
|
"doc.getText",
|
|
72
86
|
"doc.getMarkdown",
|
|
73
87
|
"doc.getHtml",
|
|
88
|
+
"doc.projectMarkdown",
|
|
89
|
+
"doc.projectHtml",
|
|
74
90
|
"doc.info",
|
|
75
91
|
"doc.extract",
|
|
76
92
|
"doc.blocks.list"
|
|
@@ -88,20 +104,21 @@
|
|
|
88
104
|
},
|
|
89
105
|
{
|
|
90
106
|
"name": "superdoc_edit",
|
|
91
|
-
"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
|
|
107
|
+
"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\"}",
|
|
92
108
|
"parameters": {
|
|
93
109
|
"type": "object",
|
|
94
110
|
"properties": {
|
|
95
111
|
"action": {
|
|
96
112
|
"type": "string",
|
|
97
113
|
"enum": [
|
|
114
|
+
"check_support",
|
|
98
115
|
"delete",
|
|
99
116
|
"insert",
|
|
100
117
|
"redo",
|
|
101
118
|
"replace",
|
|
102
119
|
"undo"
|
|
103
120
|
],
|
|
104
|
-
"description": "The action to perform. One of: delete, insert, redo, replace, undo."
|
|
121
|
+
"description": "The action to perform. One of: check_support, delete, insert, redo, replace, undo."
|
|
105
122
|
},
|
|
106
123
|
"force": {
|
|
107
124
|
"type": "boolean",
|
|
@@ -113,2224 +130,65 @@
|
|
|
113
130
|
},
|
|
114
131
|
"dryRun": {
|
|
115
132
|
"type": "boolean",
|
|
116
|
-
"description": "Preview the result without applying changes."
|
|
133
|
+
"description": "Preview the result without applying changes. Only for actions 'insert', 'replace', 'delete'. Omit for other actions."
|
|
117
134
|
},
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
{
|
|
170
|
-
"type": "object",
|
|
171
|
-
"properties": {
|
|
172
|
-
"kind": {
|
|
173
|
-
"const": "story",
|
|
174
|
-
"type": "string"
|
|
175
|
-
},
|
|
176
|
-
"storyType": {
|
|
177
|
-
"const": "headerFooterSlot",
|
|
178
|
-
"type": "string"
|
|
179
|
-
},
|
|
180
|
-
"section": {
|
|
181
|
-
"type": "object",
|
|
182
|
-
"properties": {
|
|
183
|
-
"kind": {
|
|
184
|
-
"const": "section",
|
|
185
|
-
"type": "string"
|
|
186
|
-
},
|
|
187
|
-
"sectionId": {
|
|
188
|
-
"type": "string"
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
"required": [
|
|
192
|
-
"kind",
|
|
193
|
-
"sectionId"
|
|
194
|
-
]
|
|
195
|
-
},
|
|
196
|
-
"headerFooterKind": {
|
|
197
|
-
"enum": [
|
|
198
|
-
"header",
|
|
199
|
-
"footer"
|
|
200
|
-
]
|
|
201
|
-
},
|
|
202
|
-
"variant": {
|
|
203
|
-
"enum": [
|
|
204
|
-
"default",
|
|
205
|
-
"first",
|
|
206
|
-
"even"
|
|
207
|
-
]
|
|
208
|
-
},
|
|
209
|
-
"resolution": {
|
|
210
|
-
"enum": [
|
|
211
|
-
"effective",
|
|
212
|
-
"explicit"
|
|
213
|
-
]
|
|
214
|
-
},
|
|
215
|
-
"onWrite": {
|
|
216
|
-
"enum": [
|
|
217
|
-
"materializeIfInherited",
|
|
218
|
-
"editResolvedPart",
|
|
219
|
-
"error"
|
|
220
|
-
]
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
"required": [
|
|
224
|
-
"kind",
|
|
225
|
-
"storyType",
|
|
226
|
-
"section",
|
|
227
|
-
"headerFooterKind",
|
|
228
|
-
"variant"
|
|
229
|
-
]
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"type": "object",
|
|
233
|
-
"properties": {
|
|
234
|
-
"kind": {
|
|
235
|
-
"const": "story",
|
|
236
|
-
"type": "string"
|
|
237
|
-
},
|
|
238
|
-
"storyType": {
|
|
239
|
-
"const": "headerFooterPart",
|
|
240
|
-
"type": "string"
|
|
241
|
-
},
|
|
242
|
-
"refId": {
|
|
243
|
-
"type": "string"
|
|
244
|
-
}
|
|
245
|
-
},
|
|
246
|
-
"required": [
|
|
247
|
-
"kind",
|
|
248
|
-
"storyType",
|
|
249
|
-
"refId"
|
|
250
|
-
]
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
"type": "object",
|
|
254
|
-
"properties": {
|
|
255
|
-
"kind": {
|
|
256
|
-
"const": "story",
|
|
257
|
-
"type": "string"
|
|
258
|
-
},
|
|
259
|
-
"storyType": {
|
|
260
|
-
"const": "footnote",
|
|
261
|
-
"type": "string"
|
|
262
|
-
},
|
|
263
|
-
"noteId": {
|
|
264
|
-
"type": "string"
|
|
265
|
-
}
|
|
266
|
-
},
|
|
267
|
-
"required": [
|
|
268
|
-
"kind",
|
|
269
|
-
"storyType",
|
|
270
|
-
"noteId"
|
|
271
|
-
]
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
"type": "object",
|
|
275
|
-
"properties": {
|
|
276
|
-
"kind": {
|
|
277
|
-
"const": "story",
|
|
278
|
-
"type": "string"
|
|
279
|
-
},
|
|
280
|
-
"storyType": {
|
|
281
|
-
"const": "endnote",
|
|
282
|
-
"type": "string"
|
|
283
|
-
},
|
|
284
|
-
"noteId": {
|
|
285
|
-
"type": "string"
|
|
286
|
-
}
|
|
287
|
-
},
|
|
288
|
-
"required": [
|
|
289
|
-
"kind",
|
|
290
|
-
"storyType",
|
|
291
|
-
"noteId"
|
|
292
|
-
]
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"type": "object",
|
|
296
|
-
"properties": {
|
|
297
|
-
"kind": {
|
|
298
|
-
"const": "story",
|
|
299
|
-
"type": "string"
|
|
300
|
-
},
|
|
301
|
-
"storyType": {
|
|
302
|
-
"const": "textbox",
|
|
303
|
-
"type": "string"
|
|
304
|
-
},
|
|
305
|
-
"textboxId": {
|
|
306
|
-
"type": "string"
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
"required": [
|
|
310
|
-
"kind",
|
|
311
|
-
"storyType",
|
|
312
|
-
"textboxId"
|
|
313
|
-
]
|
|
314
|
-
}
|
|
315
|
-
],
|
|
316
|
-
"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."
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
|
-
"required": [
|
|
320
|
-
"kind",
|
|
321
|
-
"blockId",
|
|
322
|
-
"offset"
|
|
323
|
-
]
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
"type": "object",
|
|
327
|
-
"properties": {
|
|
328
|
-
"kind": {
|
|
329
|
-
"const": "nodeEdge",
|
|
330
|
-
"type": "string"
|
|
331
|
-
},
|
|
332
|
-
"node": {
|
|
333
|
-
"type": "object",
|
|
334
|
-
"properties": {
|
|
335
|
-
"kind": {
|
|
336
|
-
"const": "block",
|
|
337
|
-
"type": "string"
|
|
338
|
-
},
|
|
339
|
-
"nodeType": {
|
|
340
|
-
"enum": [
|
|
341
|
-
"paragraph",
|
|
342
|
-
"heading",
|
|
343
|
-
"table",
|
|
344
|
-
"tableOfContents",
|
|
345
|
-
"sdt",
|
|
346
|
-
"image"
|
|
347
|
-
]
|
|
348
|
-
},
|
|
349
|
-
"nodeId": {
|
|
350
|
-
"type": "string"
|
|
351
|
-
},
|
|
352
|
-
"story": {
|
|
353
|
-
"oneOf": [
|
|
354
|
-
{
|
|
355
|
-
"type": "object",
|
|
356
|
-
"properties": {
|
|
357
|
-
"kind": {
|
|
358
|
-
"const": "story",
|
|
359
|
-
"type": "string"
|
|
360
|
-
},
|
|
361
|
-
"storyType": {
|
|
362
|
-
"const": "body",
|
|
363
|
-
"type": "string"
|
|
364
|
-
}
|
|
365
|
-
},
|
|
366
|
-
"required": [
|
|
367
|
-
"kind",
|
|
368
|
-
"storyType"
|
|
369
|
-
]
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
"type": "object",
|
|
373
|
-
"properties": {
|
|
374
|
-
"kind": {
|
|
375
|
-
"const": "story",
|
|
376
|
-
"type": "string"
|
|
377
|
-
},
|
|
378
|
-
"storyType": {
|
|
379
|
-
"const": "headerFooterSlot",
|
|
380
|
-
"type": "string"
|
|
381
|
-
},
|
|
382
|
-
"section": {
|
|
383
|
-
"type": "object",
|
|
384
|
-
"properties": {
|
|
385
|
-
"kind": {
|
|
386
|
-
"const": "section",
|
|
387
|
-
"type": "string"
|
|
388
|
-
},
|
|
389
|
-
"sectionId": {
|
|
390
|
-
"type": "string"
|
|
391
|
-
}
|
|
392
|
-
},
|
|
393
|
-
"required": [
|
|
394
|
-
"kind",
|
|
395
|
-
"sectionId"
|
|
396
|
-
]
|
|
397
|
-
},
|
|
398
|
-
"headerFooterKind": {
|
|
399
|
-
"enum": [
|
|
400
|
-
"header",
|
|
401
|
-
"footer"
|
|
402
|
-
]
|
|
403
|
-
},
|
|
404
|
-
"variant": {
|
|
405
|
-
"enum": [
|
|
406
|
-
"default",
|
|
407
|
-
"first",
|
|
408
|
-
"even"
|
|
409
|
-
]
|
|
410
|
-
},
|
|
411
|
-
"resolution": {
|
|
412
|
-
"enum": [
|
|
413
|
-
"effective",
|
|
414
|
-
"explicit"
|
|
415
|
-
]
|
|
416
|
-
},
|
|
417
|
-
"onWrite": {
|
|
418
|
-
"enum": [
|
|
419
|
-
"materializeIfInherited",
|
|
420
|
-
"editResolvedPart",
|
|
421
|
-
"error"
|
|
422
|
-
]
|
|
423
|
-
}
|
|
424
|
-
},
|
|
425
|
-
"required": [
|
|
426
|
-
"kind",
|
|
427
|
-
"storyType",
|
|
428
|
-
"section",
|
|
429
|
-
"headerFooterKind",
|
|
430
|
-
"variant"
|
|
431
|
-
]
|
|
432
|
-
},
|
|
433
|
-
{
|
|
434
|
-
"type": "object",
|
|
435
|
-
"properties": {
|
|
436
|
-
"kind": {
|
|
437
|
-
"const": "story",
|
|
438
|
-
"type": "string"
|
|
439
|
-
},
|
|
440
|
-
"storyType": {
|
|
441
|
-
"const": "headerFooterPart",
|
|
442
|
-
"type": "string"
|
|
443
|
-
},
|
|
444
|
-
"refId": {
|
|
445
|
-
"type": "string"
|
|
446
|
-
}
|
|
447
|
-
},
|
|
448
|
-
"required": [
|
|
449
|
-
"kind",
|
|
450
|
-
"storyType",
|
|
451
|
-
"refId"
|
|
452
|
-
]
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
"type": "object",
|
|
456
|
-
"properties": {
|
|
457
|
-
"kind": {
|
|
458
|
-
"const": "story",
|
|
459
|
-
"type": "string"
|
|
460
|
-
},
|
|
461
|
-
"storyType": {
|
|
462
|
-
"const": "footnote",
|
|
463
|
-
"type": "string"
|
|
464
|
-
},
|
|
465
|
-
"noteId": {
|
|
466
|
-
"type": "string"
|
|
467
|
-
}
|
|
468
|
-
},
|
|
469
|
-
"required": [
|
|
470
|
-
"kind",
|
|
471
|
-
"storyType",
|
|
472
|
-
"noteId"
|
|
473
|
-
]
|
|
474
|
-
},
|
|
475
|
-
{
|
|
476
|
-
"type": "object",
|
|
477
|
-
"properties": {
|
|
478
|
-
"kind": {
|
|
479
|
-
"const": "story",
|
|
480
|
-
"type": "string"
|
|
481
|
-
},
|
|
482
|
-
"storyType": {
|
|
483
|
-
"const": "endnote",
|
|
484
|
-
"type": "string"
|
|
485
|
-
},
|
|
486
|
-
"noteId": {
|
|
487
|
-
"type": "string"
|
|
488
|
-
}
|
|
489
|
-
},
|
|
490
|
-
"required": [
|
|
491
|
-
"kind",
|
|
492
|
-
"storyType",
|
|
493
|
-
"noteId"
|
|
494
|
-
]
|
|
495
|
-
},
|
|
496
|
-
{
|
|
497
|
-
"type": "object",
|
|
498
|
-
"properties": {
|
|
499
|
-
"kind": {
|
|
500
|
-
"const": "story",
|
|
501
|
-
"type": "string"
|
|
502
|
-
},
|
|
503
|
-
"storyType": {
|
|
504
|
-
"const": "textbox",
|
|
505
|
-
"type": "string"
|
|
506
|
-
},
|
|
507
|
-
"textboxId": {
|
|
508
|
-
"type": "string"
|
|
509
|
-
}
|
|
510
|
-
},
|
|
511
|
-
"required": [
|
|
512
|
-
"kind",
|
|
513
|
-
"storyType",
|
|
514
|
-
"textboxId"
|
|
515
|
-
]
|
|
516
|
-
}
|
|
517
|
-
],
|
|
518
|
-
"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."
|
|
519
|
-
}
|
|
520
|
-
},
|
|
521
|
-
"required": [
|
|
522
|
-
"kind",
|
|
523
|
-
"nodeType",
|
|
524
|
-
"nodeId"
|
|
525
|
-
]
|
|
526
|
-
},
|
|
527
|
-
"edge": {
|
|
528
|
-
"enum": [
|
|
529
|
-
"before",
|
|
530
|
-
"after"
|
|
531
|
-
]
|
|
532
|
-
}
|
|
533
|
-
},
|
|
534
|
-
"required": [
|
|
535
|
-
"kind",
|
|
536
|
-
"node",
|
|
537
|
-
"edge"
|
|
538
|
-
]
|
|
539
|
-
}
|
|
540
|
-
],
|
|
541
|
-
"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."
|
|
542
|
-
},
|
|
543
|
-
"end": {
|
|
544
|
-
"oneOf": [
|
|
545
|
-
{
|
|
546
|
-
"type": "object",
|
|
547
|
-
"properties": {
|
|
548
|
-
"kind": {
|
|
549
|
-
"const": "text",
|
|
550
|
-
"type": "string"
|
|
551
|
-
},
|
|
552
|
-
"blockId": {
|
|
553
|
-
"type": "string"
|
|
554
|
-
},
|
|
555
|
-
"offset": {
|
|
556
|
-
"type": "number"
|
|
557
|
-
},
|
|
558
|
-
"story": {
|
|
559
|
-
"oneOf": [
|
|
560
|
-
{
|
|
561
|
-
"type": "object",
|
|
562
|
-
"properties": {
|
|
563
|
-
"kind": {
|
|
564
|
-
"const": "story",
|
|
565
|
-
"type": "string"
|
|
566
|
-
},
|
|
567
|
-
"storyType": {
|
|
568
|
-
"const": "body",
|
|
569
|
-
"type": "string"
|
|
570
|
-
}
|
|
571
|
-
},
|
|
572
|
-
"required": [
|
|
573
|
-
"kind",
|
|
574
|
-
"storyType"
|
|
575
|
-
]
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
"type": "object",
|
|
579
|
-
"properties": {
|
|
580
|
-
"kind": {
|
|
581
|
-
"const": "story",
|
|
582
|
-
"type": "string"
|
|
583
|
-
},
|
|
584
|
-
"storyType": {
|
|
585
|
-
"const": "headerFooterSlot",
|
|
586
|
-
"type": "string"
|
|
587
|
-
},
|
|
588
|
-
"section": {
|
|
589
|
-
"type": "object",
|
|
590
|
-
"properties": {
|
|
591
|
-
"kind": {
|
|
592
|
-
"const": "section",
|
|
593
|
-
"type": "string"
|
|
594
|
-
},
|
|
595
|
-
"sectionId": {
|
|
596
|
-
"type": "string"
|
|
597
|
-
}
|
|
598
|
-
},
|
|
599
|
-
"required": [
|
|
600
|
-
"kind",
|
|
601
|
-
"sectionId"
|
|
602
|
-
]
|
|
603
|
-
},
|
|
604
|
-
"headerFooterKind": {
|
|
605
|
-
"enum": [
|
|
606
|
-
"header",
|
|
607
|
-
"footer"
|
|
608
|
-
]
|
|
609
|
-
},
|
|
610
|
-
"variant": {
|
|
611
|
-
"enum": [
|
|
612
|
-
"default",
|
|
613
|
-
"first",
|
|
614
|
-
"even"
|
|
615
|
-
]
|
|
616
|
-
},
|
|
617
|
-
"resolution": {
|
|
618
|
-
"enum": [
|
|
619
|
-
"effective",
|
|
620
|
-
"explicit"
|
|
621
|
-
]
|
|
622
|
-
},
|
|
623
|
-
"onWrite": {
|
|
624
|
-
"enum": [
|
|
625
|
-
"materializeIfInherited",
|
|
626
|
-
"editResolvedPart",
|
|
627
|
-
"error"
|
|
628
|
-
]
|
|
629
|
-
}
|
|
630
|
-
},
|
|
631
|
-
"required": [
|
|
632
|
-
"kind",
|
|
633
|
-
"storyType",
|
|
634
|
-
"section",
|
|
635
|
-
"headerFooterKind",
|
|
636
|
-
"variant"
|
|
637
|
-
]
|
|
638
|
-
},
|
|
639
|
-
{
|
|
640
|
-
"type": "object",
|
|
641
|
-
"properties": {
|
|
642
|
-
"kind": {
|
|
643
|
-
"const": "story",
|
|
644
|
-
"type": "string"
|
|
645
|
-
},
|
|
646
|
-
"storyType": {
|
|
647
|
-
"const": "headerFooterPart",
|
|
648
|
-
"type": "string"
|
|
649
|
-
},
|
|
650
|
-
"refId": {
|
|
651
|
-
"type": "string"
|
|
652
|
-
}
|
|
653
|
-
},
|
|
654
|
-
"required": [
|
|
655
|
-
"kind",
|
|
656
|
-
"storyType",
|
|
657
|
-
"refId"
|
|
658
|
-
]
|
|
659
|
-
},
|
|
660
|
-
{
|
|
661
|
-
"type": "object",
|
|
662
|
-
"properties": {
|
|
663
|
-
"kind": {
|
|
664
|
-
"const": "story",
|
|
665
|
-
"type": "string"
|
|
666
|
-
},
|
|
667
|
-
"storyType": {
|
|
668
|
-
"const": "footnote",
|
|
669
|
-
"type": "string"
|
|
670
|
-
},
|
|
671
|
-
"noteId": {
|
|
672
|
-
"type": "string"
|
|
673
|
-
}
|
|
674
|
-
},
|
|
675
|
-
"required": [
|
|
676
|
-
"kind",
|
|
677
|
-
"storyType",
|
|
678
|
-
"noteId"
|
|
679
|
-
]
|
|
680
|
-
},
|
|
681
|
-
{
|
|
682
|
-
"type": "object",
|
|
683
|
-
"properties": {
|
|
684
|
-
"kind": {
|
|
685
|
-
"const": "story",
|
|
686
|
-
"type": "string"
|
|
687
|
-
},
|
|
688
|
-
"storyType": {
|
|
689
|
-
"const": "endnote",
|
|
690
|
-
"type": "string"
|
|
691
|
-
},
|
|
692
|
-
"noteId": {
|
|
693
|
-
"type": "string"
|
|
694
|
-
}
|
|
695
|
-
},
|
|
696
|
-
"required": [
|
|
697
|
-
"kind",
|
|
698
|
-
"storyType",
|
|
699
|
-
"noteId"
|
|
700
|
-
]
|
|
701
|
-
},
|
|
702
|
-
{
|
|
703
|
-
"type": "object",
|
|
704
|
-
"properties": {
|
|
705
|
-
"kind": {
|
|
706
|
-
"const": "story",
|
|
707
|
-
"type": "string"
|
|
708
|
-
},
|
|
709
|
-
"storyType": {
|
|
710
|
-
"const": "textbox",
|
|
711
|
-
"type": "string"
|
|
712
|
-
},
|
|
713
|
-
"textboxId": {
|
|
714
|
-
"type": "string"
|
|
715
|
-
}
|
|
716
|
-
},
|
|
717
|
-
"required": [
|
|
718
|
-
"kind",
|
|
719
|
-
"storyType",
|
|
720
|
-
"textboxId"
|
|
721
|
-
]
|
|
722
|
-
}
|
|
723
|
-
],
|
|
724
|
-
"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."
|
|
725
|
-
}
|
|
726
|
-
},
|
|
727
|
-
"required": [
|
|
728
|
-
"kind",
|
|
729
|
-
"blockId",
|
|
730
|
-
"offset"
|
|
731
|
-
]
|
|
732
|
-
},
|
|
733
|
-
{
|
|
734
|
-
"type": "object",
|
|
735
|
-
"properties": {
|
|
736
|
-
"kind": {
|
|
737
|
-
"const": "nodeEdge",
|
|
738
|
-
"type": "string"
|
|
739
|
-
},
|
|
740
|
-
"node": {
|
|
741
|
-
"type": "object",
|
|
742
|
-
"properties": {
|
|
743
|
-
"kind": {
|
|
744
|
-
"const": "block",
|
|
745
|
-
"type": "string"
|
|
746
|
-
},
|
|
747
|
-
"nodeType": {
|
|
748
|
-
"enum": [
|
|
749
|
-
"paragraph",
|
|
750
|
-
"heading",
|
|
751
|
-
"table",
|
|
752
|
-
"tableOfContents",
|
|
753
|
-
"sdt",
|
|
754
|
-
"image"
|
|
755
|
-
]
|
|
756
|
-
},
|
|
757
|
-
"nodeId": {
|
|
758
|
-
"type": "string"
|
|
759
|
-
},
|
|
760
|
-
"story": {
|
|
761
|
-
"oneOf": [
|
|
762
|
-
{
|
|
763
|
-
"type": "object",
|
|
764
|
-
"properties": {
|
|
765
|
-
"kind": {
|
|
766
|
-
"const": "story",
|
|
767
|
-
"type": "string"
|
|
768
|
-
},
|
|
769
|
-
"storyType": {
|
|
770
|
-
"const": "body",
|
|
771
|
-
"type": "string"
|
|
772
|
-
}
|
|
773
|
-
},
|
|
774
|
-
"required": [
|
|
775
|
-
"kind",
|
|
776
|
-
"storyType"
|
|
777
|
-
]
|
|
778
|
-
},
|
|
779
|
-
{
|
|
780
|
-
"type": "object",
|
|
781
|
-
"properties": {
|
|
782
|
-
"kind": {
|
|
783
|
-
"const": "story",
|
|
784
|
-
"type": "string"
|
|
785
|
-
},
|
|
786
|
-
"storyType": {
|
|
787
|
-
"const": "headerFooterSlot",
|
|
788
|
-
"type": "string"
|
|
789
|
-
},
|
|
790
|
-
"section": {
|
|
791
|
-
"type": "object",
|
|
792
|
-
"properties": {
|
|
793
|
-
"kind": {
|
|
794
|
-
"const": "section",
|
|
795
|
-
"type": "string"
|
|
796
|
-
},
|
|
797
|
-
"sectionId": {
|
|
798
|
-
"type": "string"
|
|
799
|
-
}
|
|
800
|
-
},
|
|
801
|
-
"required": [
|
|
802
|
-
"kind",
|
|
803
|
-
"sectionId"
|
|
804
|
-
]
|
|
805
|
-
},
|
|
806
|
-
"headerFooterKind": {
|
|
807
|
-
"enum": [
|
|
808
|
-
"header",
|
|
809
|
-
"footer"
|
|
810
|
-
]
|
|
811
|
-
},
|
|
812
|
-
"variant": {
|
|
813
|
-
"enum": [
|
|
814
|
-
"default",
|
|
815
|
-
"first",
|
|
816
|
-
"even"
|
|
817
|
-
]
|
|
818
|
-
},
|
|
819
|
-
"resolution": {
|
|
820
|
-
"enum": [
|
|
821
|
-
"effective",
|
|
822
|
-
"explicit"
|
|
823
|
-
]
|
|
824
|
-
},
|
|
825
|
-
"onWrite": {
|
|
826
|
-
"enum": [
|
|
827
|
-
"materializeIfInherited",
|
|
828
|
-
"editResolvedPart",
|
|
829
|
-
"error"
|
|
830
|
-
]
|
|
831
|
-
}
|
|
832
|
-
},
|
|
833
|
-
"required": [
|
|
834
|
-
"kind",
|
|
835
|
-
"storyType",
|
|
836
|
-
"section",
|
|
837
|
-
"headerFooterKind",
|
|
838
|
-
"variant"
|
|
839
|
-
]
|
|
840
|
-
},
|
|
841
|
-
{
|
|
842
|
-
"type": "object",
|
|
843
|
-
"properties": {
|
|
844
|
-
"kind": {
|
|
845
|
-
"const": "story",
|
|
846
|
-
"type": "string"
|
|
847
|
-
},
|
|
848
|
-
"storyType": {
|
|
849
|
-
"const": "headerFooterPart",
|
|
850
|
-
"type": "string"
|
|
851
|
-
},
|
|
852
|
-
"refId": {
|
|
853
|
-
"type": "string"
|
|
854
|
-
}
|
|
855
|
-
},
|
|
856
|
-
"required": [
|
|
857
|
-
"kind",
|
|
858
|
-
"storyType",
|
|
859
|
-
"refId"
|
|
860
|
-
]
|
|
861
|
-
},
|
|
862
|
-
{
|
|
863
|
-
"type": "object",
|
|
864
|
-
"properties": {
|
|
865
|
-
"kind": {
|
|
866
|
-
"const": "story",
|
|
867
|
-
"type": "string"
|
|
868
|
-
},
|
|
869
|
-
"storyType": {
|
|
870
|
-
"const": "footnote",
|
|
871
|
-
"type": "string"
|
|
872
|
-
},
|
|
873
|
-
"noteId": {
|
|
874
|
-
"type": "string"
|
|
875
|
-
}
|
|
876
|
-
},
|
|
877
|
-
"required": [
|
|
878
|
-
"kind",
|
|
879
|
-
"storyType",
|
|
880
|
-
"noteId"
|
|
881
|
-
]
|
|
882
|
-
},
|
|
883
|
-
{
|
|
884
|
-
"type": "object",
|
|
885
|
-
"properties": {
|
|
886
|
-
"kind": {
|
|
887
|
-
"const": "story",
|
|
888
|
-
"type": "string"
|
|
889
|
-
},
|
|
890
|
-
"storyType": {
|
|
891
|
-
"const": "endnote",
|
|
892
|
-
"type": "string"
|
|
893
|
-
},
|
|
894
|
-
"noteId": {
|
|
895
|
-
"type": "string"
|
|
896
|
-
}
|
|
897
|
-
},
|
|
898
|
-
"required": [
|
|
899
|
-
"kind",
|
|
900
|
-
"storyType",
|
|
901
|
-
"noteId"
|
|
902
|
-
]
|
|
903
|
-
},
|
|
904
|
-
{
|
|
905
|
-
"type": "object",
|
|
906
|
-
"properties": {
|
|
907
|
-
"kind": {
|
|
908
|
-
"const": "story",
|
|
909
|
-
"type": "string"
|
|
910
|
-
},
|
|
911
|
-
"storyType": {
|
|
912
|
-
"const": "textbox",
|
|
913
|
-
"type": "string"
|
|
914
|
-
},
|
|
915
|
-
"textboxId": {
|
|
916
|
-
"type": "string"
|
|
917
|
-
}
|
|
918
|
-
},
|
|
919
|
-
"required": [
|
|
920
|
-
"kind",
|
|
921
|
-
"storyType",
|
|
922
|
-
"textboxId"
|
|
923
|
-
]
|
|
924
|
-
}
|
|
925
|
-
],
|
|
926
|
-
"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."
|
|
927
|
-
}
|
|
928
|
-
},
|
|
929
|
-
"required": [
|
|
930
|
-
"kind",
|
|
931
|
-
"nodeType",
|
|
932
|
-
"nodeId"
|
|
933
|
-
]
|
|
934
|
-
},
|
|
935
|
-
"edge": {
|
|
936
|
-
"enum": [
|
|
937
|
-
"before",
|
|
938
|
-
"after"
|
|
939
|
-
]
|
|
940
|
-
}
|
|
941
|
-
},
|
|
942
|
-
"required": [
|
|
943
|
-
"kind",
|
|
944
|
-
"node",
|
|
945
|
-
"edge"
|
|
946
|
-
]
|
|
947
|
-
}
|
|
948
|
-
],
|
|
949
|
-
"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."
|
|
950
|
-
},
|
|
951
|
-
"story": {
|
|
952
|
-
"oneOf": [
|
|
953
|
-
{
|
|
954
|
-
"type": "object",
|
|
955
|
-
"properties": {
|
|
956
|
-
"kind": {
|
|
957
|
-
"const": "story",
|
|
958
|
-
"type": "string"
|
|
959
|
-
},
|
|
960
|
-
"storyType": {
|
|
961
|
-
"const": "body",
|
|
962
|
-
"type": "string"
|
|
963
|
-
}
|
|
964
|
-
},
|
|
965
|
-
"required": [
|
|
966
|
-
"kind",
|
|
967
|
-
"storyType"
|
|
968
|
-
]
|
|
969
|
-
},
|
|
970
|
-
{
|
|
971
|
-
"type": "object",
|
|
972
|
-
"properties": {
|
|
973
|
-
"kind": {
|
|
974
|
-
"const": "story",
|
|
975
|
-
"type": "string"
|
|
976
|
-
},
|
|
977
|
-
"storyType": {
|
|
978
|
-
"const": "headerFooterSlot",
|
|
979
|
-
"type": "string"
|
|
980
|
-
},
|
|
981
|
-
"section": {
|
|
982
|
-
"type": "object",
|
|
983
|
-
"properties": {
|
|
984
|
-
"kind": {
|
|
985
|
-
"const": "section",
|
|
986
|
-
"type": "string"
|
|
987
|
-
},
|
|
988
|
-
"sectionId": {
|
|
989
|
-
"type": "string"
|
|
990
|
-
}
|
|
991
|
-
},
|
|
992
|
-
"required": [
|
|
993
|
-
"kind",
|
|
994
|
-
"sectionId"
|
|
995
|
-
]
|
|
996
|
-
},
|
|
997
|
-
"headerFooterKind": {
|
|
998
|
-
"enum": [
|
|
999
|
-
"header",
|
|
1000
|
-
"footer"
|
|
1001
|
-
]
|
|
1002
|
-
},
|
|
1003
|
-
"variant": {
|
|
1004
|
-
"enum": [
|
|
1005
|
-
"default",
|
|
1006
|
-
"first",
|
|
1007
|
-
"even"
|
|
1008
|
-
]
|
|
1009
|
-
},
|
|
1010
|
-
"resolution": {
|
|
1011
|
-
"enum": [
|
|
1012
|
-
"effective",
|
|
1013
|
-
"explicit"
|
|
1014
|
-
]
|
|
1015
|
-
},
|
|
1016
|
-
"onWrite": {
|
|
1017
|
-
"enum": [
|
|
1018
|
-
"materializeIfInherited",
|
|
1019
|
-
"editResolvedPart",
|
|
1020
|
-
"error"
|
|
1021
|
-
]
|
|
1022
|
-
}
|
|
1023
|
-
},
|
|
1024
|
-
"required": [
|
|
1025
|
-
"kind",
|
|
1026
|
-
"storyType",
|
|
1027
|
-
"section",
|
|
1028
|
-
"headerFooterKind",
|
|
1029
|
-
"variant"
|
|
1030
|
-
]
|
|
1031
|
-
},
|
|
1032
|
-
{
|
|
1033
|
-
"type": "object",
|
|
1034
|
-
"properties": {
|
|
1035
|
-
"kind": {
|
|
1036
|
-
"const": "story",
|
|
1037
|
-
"type": "string"
|
|
1038
|
-
},
|
|
1039
|
-
"storyType": {
|
|
1040
|
-
"const": "headerFooterPart",
|
|
1041
|
-
"type": "string"
|
|
1042
|
-
},
|
|
1043
|
-
"refId": {
|
|
1044
|
-
"type": "string"
|
|
1045
|
-
}
|
|
1046
|
-
},
|
|
1047
|
-
"required": [
|
|
1048
|
-
"kind",
|
|
1049
|
-
"storyType",
|
|
1050
|
-
"refId"
|
|
1051
|
-
]
|
|
1052
|
-
},
|
|
1053
|
-
{
|
|
1054
|
-
"type": "object",
|
|
1055
|
-
"properties": {
|
|
1056
|
-
"kind": {
|
|
1057
|
-
"const": "story",
|
|
1058
|
-
"type": "string"
|
|
1059
|
-
},
|
|
1060
|
-
"storyType": {
|
|
1061
|
-
"const": "footnote",
|
|
1062
|
-
"type": "string"
|
|
1063
|
-
},
|
|
1064
|
-
"noteId": {
|
|
1065
|
-
"type": "string"
|
|
1066
|
-
}
|
|
1067
|
-
},
|
|
1068
|
-
"required": [
|
|
1069
|
-
"kind",
|
|
1070
|
-
"storyType",
|
|
1071
|
-
"noteId"
|
|
1072
|
-
]
|
|
1073
|
-
},
|
|
1074
|
-
{
|
|
1075
|
-
"type": "object",
|
|
1076
|
-
"properties": {
|
|
1077
|
-
"kind": {
|
|
1078
|
-
"const": "story",
|
|
1079
|
-
"type": "string"
|
|
1080
|
-
},
|
|
1081
|
-
"storyType": {
|
|
1082
|
-
"const": "endnote",
|
|
1083
|
-
"type": "string"
|
|
1084
|
-
},
|
|
1085
|
-
"noteId": {
|
|
1086
|
-
"type": "string"
|
|
1087
|
-
}
|
|
1088
|
-
},
|
|
1089
|
-
"required": [
|
|
1090
|
-
"kind",
|
|
1091
|
-
"storyType",
|
|
1092
|
-
"noteId"
|
|
1093
|
-
]
|
|
1094
|
-
},
|
|
1095
|
-
{
|
|
1096
|
-
"type": "object",
|
|
1097
|
-
"properties": {
|
|
1098
|
-
"kind": {
|
|
1099
|
-
"const": "story",
|
|
1100
|
-
"type": "string"
|
|
1101
|
-
},
|
|
1102
|
-
"storyType": {
|
|
1103
|
-
"const": "textbox",
|
|
1104
|
-
"type": "string"
|
|
1105
|
-
},
|
|
1106
|
-
"textboxId": {
|
|
1107
|
-
"type": "string"
|
|
1108
|
-
}
|
|
1109
|
-
},
|
|
1110
|
-
"required": [
|
|
1111
|
-
"kind",
|
|
1112
|
-
"storyType",
|
|
1113
|
-
"textboxId"
|
|
1114
|
-
]
|
|
1115
|
-
}
|
|
1116
|
-
],
|
|
1117
|
-
"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."
|
|
1118
|
-
},
|
|
1119
|
-
"coordinateSpace": {
|
|
1120
|
-
"enum": [
|
|
1121
|
-
"visible",
|
|
1122
|
-
"tracked"
|
|
1123
|
-
]
|
|
1124
|
-
}
|
|
1125
|
-
},
|
|
1126
|
-
"required": [
|
|
1127
|
-
"kind",
|
|
1128
|
-
"start",
|
|
1129
|
-
"end"
|
|
1130
|
-
]
|
|
1131
|
-
},
|
|
1132
|
-
{
|
|
1133
|
-
"type": "object",
|
|
1134
|
-
"properties": {
|
|
1135
|
-
"kind": {
|
|
1136
|
-
"const": "block",
|
|
1137
|
-
"type": "string"
|
|
1138
|
-
},
|
|
1139
|
-
"nodeType": {
|
|
1140
|
-
"enum": [
|
|
1141
|
-
"paragraph",
|
|
1142
|
-
"heading",
|
|
1143
|
-
"listItem",
|
|
1144
|
-
"table",
|
|
1145
|
-
"tableRow",
|
|
1146
|
-
"tableCell",
|
|
1147
|
-
"tableOfContents",
|
|
1148
|
-
"image",
|
|
1149
|
-
"sdt"
|
|
1150
|
-
]
|
|
1151
|
-
},
|
|
1152
|
-
"nodeId": {
|
|
1153
|
-
"type": "string"
|
|
1154
|
-
},
|
|
1155
|
-
"story": {
|
|
1156
|
-
"oneOf": [
|
|
1157
|
-
{
|
|
1158
|
-
"type": "object",
|
|
1159
|
-
"properties": {
|
|
1160
|
-
"kind": {
|
|
1161
|
-
"const": "story",
|
|
1162
|
-
"type": "string"
|
|
1163
|
-
},
|
|
1164
|
-
"storyType": {
|
|
1165
|
-
"const": "body",
|
|
1166
|
-
"type": "string"
|
|
1167
|
-
}
|
|
1168
|
-
},
|
|
1169
|
-
"required": [
|
|
1170
|
-
"kind",
|
|
1171
|
-
"storyType"
|
|
1172
|
-
]
|
|
1173
|
-
},
|
|
1174
|
-
{
|
|
1175
|
-
"type": "object",
|
|
1176
|
-
"properties": {
|
|
1177
|
-
"kind": {
|
|
1178
|
-
"const": "story",
|
|
1179
|
-
"type": "string"
|
|
1180
|
-
},
|
|
1181
|
-
"storyType": {
|
|
1182
|
-
"const": "headerFooterSlot",
|
|
1183
|
-
"type": "string"
|
|
1184
|
-
},
|
|
1185
|
-
"section": {
|
|
1186
|
-
"type": "object",
|
|
1187
|
-
"properties": {
|
|
1188
|
-
"kind": {
|
|
1189
|
-
"const": "section",
|
|
1190
|
-
"type": "string"
|
|
1191
|
-
},
|
|
1192
|
-
"sectionId": {
|
|
1193
|
-
"type": "string"
|
|
1194
|
-
}
|
|
1195
|
-
},
|
|
1196
|
-
"required": [
|
|
1197
|
-
"kind",
|
|
1198
|
-
"sectionId"
|
|
1199
|
-
]
|
|
1200
|
-
},
|
|
1201
|
-
"headerFooterKind": {
|
|
1202
|
-
"enum": [
|
|
1203
|
-
"header",
|
|
1204
|
-
"footer"
|
|
1205
|
-
]
|
|
1206
|
-
},
|
|
1207
|
-
"variant": {
|
|
1208
|
-
"enum": [
|
|
1209
|
-
"default",
|
|
1210
|
-
"first",
|
|
1211
|
-
"even"
|
|
1212
|
-
]
|
|
1213
|
-
},
|
|
1214
|
-
"resolution": {
|
|
1215
|
-
"enum": [
|
|
1216
|
-
"effective",
|
|
1217
|
-
"explicit"
|
|
1218
|
-
]
|
|
1219
|
-
},
|
|
1220
|
-
"onWrite": {
|
|
1221
|
-
"enum": [
|
|
1222
|
-
"materializeIfInherited",
|
|
1223
|
-
"editResolvedPart",
|
|
1224
|
-
"error"
|
|
1225
|
-
]
|
|
1226
|
-
}
|
|
1227
|
-
},
|
|
1228
|
-
"required": [
|
|
1229
|
-
"kind",
|
|
1230
|
-
"storyType",
|
|
1231
|
-
"section",
|
|
1232
|
-
"headerFooterKind",
|
|
1233
|
-
"variant"
|
|
1234
|
-
]
|
|
1235
|
-
},
|
|
1236
|
-
{
|
|
1237
|
-
"type": "object",
|
|
1238
|
-
"properties": {
|
|
1239
|
-
"kind": {
|
|
1240
|
-
"const": "story",
|
|
1241
|
-
"type": "string"
|
|
1242
|
-
},
|
|
1243
|
-
"storyType": {
|
|
1244
|
-
"const": "headerFooterPart",
|
|
1245
|
-
"type": "string"
|
|
1246
|
-
},
|
|
1247
|
-
"refId": {
|
|
1248
|
-
"type": "string"
|
|
1249
|
-
}
|
|
1250
|
-
},
|
|
1251
|
-
"required": [
|
|
1252
|
-
"kind",
|
|
1253
|
-
"storyType",
|
|
1254
|
-
"refId"
|
|
1255
|
-
]
|
|
1256
|
-
},
|
|
1257
|
-
{
|
|
1258
|
-
"type": "object",
|
|
1259
|
-
"properties": {
|
|
1260
|
-
"kind": {
|
|
1261
|
-
"const": "story",
|
|
1262
|
-
"type": "string"
|
|
1263
|
-
},
|
|
1264
|
-
"storyType": {
|
|
1265
|
-
"const": "footnote",
|
|
1266
|
-
"type": "string"
|
|
1267
|
-
},
|
|
1268
|
-
"noteId": {
|
|
1269
|
-
"type": "string"
|
|
1270
|
-
}
|
|
1271
|
-
},
|
|
1272
|
-
"required": [
|
|
1273
|
-
"kind",
|
|
1274
|
-
"storyType",
|
|
1275
|
-
"noteId"
|
|
1276
|
-
]
|
|
1277
|
-
},
|
|
1278
|
-
{
|
|
1279
|
-
"type": "object",
|
|
1280
|
-
"properties": {
|
|
1281
|
-
"kind": {
|
|
1282
|
-
"const": "story",
|
|
1283
|
-
"type": "string"
|
|
1284
|
-
},
|
|
1285
|
-
"storyType": {
|
|
1286
|
-
"const": "endnote",
|
|
1287
|
-
"type": "string"
|
|
1288
|
-
},
|
|
1289
|
-
"noteId": {
|
|
1290
|
-
"type": "string"
|
|
1291
|
-
}
|
|
1292
|
-
},
|
|
1293
|
-
"required": [
|
|
1294
|
-
"kind",
|
|
1295
|
-
"storyType",
|
|
1296
|
-
"noteId"
|
|
1297
|
-
]
|
|
1298
|
-
},
|
|
1299
|
-
{
|
|
1300
|
-
"type": "object",
|
|
1301
|
-
"properties": {
|
|
1302
|
-
"kind": {
|
|
1303
|
-
"const": "story",
|
|
1304
|
-
"type": "string"
|
|
1305
|
-
},
|
|
1306
|
-
"storyType": {
|
|
1307
|
-
"const": "textbox",
|
|
1308
|
-
"type": "string"
|
|
1309
|
-
},
|
|
1310
|
-
"textboxId": {
|
|
1311
|
-
"type": "string"
|
|
1312
|
-
}
|
|
1313
|
-
},
|
|
1314
|
-
"required": [
|
|
1315
|
-
"kind",
|
|
1316
|
-
"storyType",
|
|
1317
|
-
"textboxId"
|
|
1318
|
-
]
|
|
1319
|
-
}
|
|
1320
|
-
],
|
|
1321
|
-
"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."
|
|
1322
|
-
}
|
|
1323
|
-
},
|
|
1324
|
-
"required": [
|
|
1325
|
-
"kind",
|
|
1326
|
-
"nodeType",
|
|
1327
|
-
"nodeId"
|
|
1328
|
-
]
|
|
1329
|
-
},
|
|
1330
|
-
{
|
|
1331
|
-
"type": "object",
|
|
1332
|
-
"properties": {
|
|
1333
|
-
"kind": {
|
|
1334
|
-
"const": "selection",
|
|
1335
|
-
"type": "string"
|
|
1336
|
-
},
|
|
1337
|
-
"start": {
|
|
1338
|
-
"oneOf": [
|
|
1339
|
-
{
|
|
1340
|
-
"type": "object",
|
|
1341
|
-
"properties": {
|
|
1342
|
-
"kind": {
|
|
1343
|
-
"const": "text",
|
|
1344
|
-
"type": "string"
|
|
1345
|
-
},
|
|
1346
|
-
"blockId": {
|
|
1347
|
-
"type": "string"
|
|
1348
|
-
},
|
|
1349
|
-
"offset": {
|
|
1350
|
-
"type": "number"
|
|
1351
|
-
},
|
|
1352
|
-
"story": {
|
|
1353
|
-
"oneOf": [
|
|
1354
|
-
{
|
|
1355
|
-
"type": "object",
|
|
1356
|
-
"properties": {
|
|
1357
|
-
"kind": {
|
|
1358
|
-
"const": "story",
|
|
1359
|
-
"type": "string"
|
|
1360
|
-
},
|
|
1361
|
-
"storyType": {
|
|
1362
|
-
"const": "body",
|
|
1363
|
-
"type": "string"
|
|
1364
|
-
}
|
|
1365
|
-
},
|
|
1366
|
-
"required": [
|
|
1367
|
-
"kind",
|
|
1368
|
-
"storyType"
|
|
1369
|
-
]
|
|
1370
|
-
},
|
|
1371
|
-
{
|
|
1372
|
-
"type": "object",
|
|
1373
|
-
"properties": {
|
|
1374
|
-
"kind": {
|
|
1375
|
-
"const": "story",
|
|
1376
|
-
"type": "string"
|
|
1377
|
-
},
|
|
1378
|
-
"storyType": {
|
|
1379
|
-
"const": "headerFooterSlot",
|
|
1380
|
-
"type": "string"
|
|
1381
|
-
},
|
|
1382
|
-
"section": {
|
|
1383
|
-
"type": "object",
|
|
1384
|
-
"properties": {
|
|
1385
|
-
"kind": {
|
|
1386
|
-
"const": "section",
|
|
1387
|
-
"type": "string"
|
|
1388
|
-
},
|
|
1389
|
-
"sectionId": {
|
|
1390
|
-
"type": "string"
|
|
1391
|
-
}
|
|
1392
|
-
},
|
|
1393
|
-
"required": [
|
|
1394
|
-
"kind",
|
|
1395
|
-
"sectionId"
|
|
1396
|
-
]
|
|
1397
|
-
},
|
|
1398
|
-
"headerFooterKind": {
|
|
1399
|
-
"enum": [
|
|
1400
|
-
"header",
|
|
1401
|
-
"footer"
|
|
1402
|
-
]
|
|
1403
|
-
},
|
|
1404
|
-
"variant": {
|
|
1405
|
-
"enum": [
|
|
1406
|
-
"default",
|
|
1407
|
-
"first",
|
|
1408
|
-
"even"
|
|
1409
|
-
]
|
|
1410
|
-
},
|
|
1411
|
-
"resolution": {
|
|
1412
|
-
"enum": [
|
|
1413
|
-
"effective",
|
|
1414
|
-
"explicit"
|
|
1415
|
-
]
|
|
1416
|
-
},
|
|
1417
|
-
"onWrite": {
|
|
1418
|
-
"enum": [
|
|
1419
|
-
"materializeIfInherited",
|
|
1420
|
-
"editResolvedPart",
|
|
1421
|
-
"error"
|
|
1422
|
-
]
|
|
1423
|
-
}
|
|
1424
|
-
},
|
|
1425
|
-
"required": [
|
|
1426
|
-
"kind",
|
|
1427
|
-
"storyType",
|
|
1428
|
-
"section",
|
|
1429
|
-
"headerFooterKind",
|
|
1430
|
-
"variant"
|
|
1431
|
-
]
|
|
1432
|
-
},
|
|
1433
|
-
{
|
|
1434
|
-
"type": "object",
|
|
1435
|
-
"properties": {
|
|
1436
|
-
"kind": {
|
|
1437
|
-
"const": "story",
|
|
1438
|
-
"type": "string"
|
|
1439
|
-
},
|
|
1440
|
-
"storyType": {
|
|
1441
|
-
"const": "headerFooterPart",
|
|
1442
|
-
"type": "string"
|
|
1443
|
-
},
|
|
1444
|
-
"refId": {
|
|
1445
|
-
"type": "string"
|
|
1446
|
-
}
|
|
1447
|
-
},
|
|
1448
|
-
"required": [
|
|
1449
|
-
"kind",
|
|
1450
|
-
"storyType",
|
|
1451
|
-
"refId"
|
|
1452
|
-
]
|
|
1453
|
-
},
|
|
1454
|
-
{
|
|
1455
|
-
"type": "object",
|
|
1456
|
-
"properties": {
|
|
1457
|
-
"kind": {
|
|
1458
|
-
"const": "story",
|
|
1459
|
-
"type": "string"
|
|
1460
|
-
},
|
|
1461
|
-
"storyType": {
|
|
1462
|
-
"const": "footnote",
|
|
1463
|
-
"type": "string"
|
|
1464
|
-
},
|
|
1465
|
-
"noteId": {
|
|
1466
|
-
"type": "string"
|
|
1467
|
-
}
|
|
1468
|
-
},
|
|
1469
|
-
"required": [
|
|
1470
|
-
"kind",
|
|
1471
|
-
"storyType",
|
|
1472
|
-
"noteId"
|
|
1473
|
-
]
|
|
1474
|
-
},
|
|
1475
|
-
{
|
|
1476
|
-
"type": "object",
|
|
1477
|
-
"properties": {
|
|
1478
|
-
"kind": {
|
|
1479
|
-
"const": "story",
|
|
1480
|
-
"type": "string"
|
|
1481
|
-
},
|
|
1482
|
-
"storyType": {
|
|
1483
|
-
"const": "endnote",
|
|
1484
|
-
"type": "string"
|
|
1485
|
-
},
|
|
1486
|
-
"noteId": {
|
|
1487
|
-
"type": "string"
|
|
1488
|
-
}
|
|
1489
|
-
},
|
|
1490
|
-
"required": [
|
|
1491
|
-
"kind",
|
|
1492
|
-
"storyType",
|
|
1493
|
-
"noteId"
|
|
1494
|
-
]
|
|
1495
|
-
},
|
|
1496
|
-
{
|
|
1497
|
-
"type": "object",
|
|
1498
|
-
"properties": {
|
|
1499
|
-
"kind": {
|
|
1500
|
-
"const": "story",
|
|
1501
|
-
"type": "string"
|
|
1502
|
-
},
|
|
1503
|
-
"storyType": {
|
|
1504
|
-
"const": "textbox",
|
|
1505
|
-
"type": "string"
|
|
1506
|
-
},
|
|
1507
|
-
"textboxId": {
|
|
1508
|
-
"type": "string"
|
|
1509
|
-
}
|
|
1510
|
-
},
|
|
1511
|
-
"required": [
|
|
1512
|
-
"kind",
|
|
1513
|
-
"storyType",
|
|
1514
|
-
"textboxId"
|
|
1515
|
-
]
|
|
1516
|
-
}
|
|
1517
|
-
],
|
|
1518
|
-
"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."
|
|
1519
|
-
}
|
|
1520
|
-
},
|
|
1521
|
-
"required": [
|
|
1522
|
-
"kind",
|
|
1523
|
-
"blockId",
|
|
1524
|
-
"offset"
|
|
1525
|
-
]
|
|
1526
|
-
},
|
|
1527
|
-
{
|
|
1528
|
-
"type": "object",
|
|
1529
|
-
"properties": {
|
|
1530
|
-
"kind": {
|
|
1531
|
-
"const": "nodeEdge",
|
|
1532
|
-
"type": "string"
|
|
1533
|
-
},
|
|
1534
|
-
"node": {
|
|
1535
|
-
"type": "object",
|
|
1536
|
-
"properties": {
|
|
1537
|
-
"kind": {
|
|
1538
|
-
"const": "block",
|
|
1539
|
-
"type": "string"
|
|
1540
|
-
},
|
|
1541
|
-
"nodeType": {
|
|
1542
|
-
"enum": [
|
|
1543
|
-
"paragraph",
|
|
1544
|
-
"heading",
|
|
1545
|
-
"table",
|
|
1546
|
-
"tableOfContents",
|
|
1547
|
-
"sdt",
|
|
1548
|
-
"image"
|
|
1549
|
-
]
|
|
1550
|
-
},
|
|
1551
|
-
"nodeId": {
|
|
1552
|
-
"type": "string"
|
|
1553
|
-
},
|
|
1554
|
-
"story": {
|
|
1555
|
-
"oneOf": [
|
|
1556
|
-
{
|
|
1557
|
-
"type": "object",
|
|
1558
|
-
"properties": {
|
|
1559
|
-
"kind": {
|
|
1560
|
-
"const": "story",
|
|
1561
|
-
"type": "string"
|
|
1562
|
-
},
|
|
1563
|
-
"storyType": {
|
|
1564
|
-
"const": "body",
|
|
1565
|
-
"type": "string"
|
|
1566
|
-
}
|
|
1567
|
-
},
|
|
1568
|
-
"required": [
|
|
1569
|
-
"kind",
|
|
1570
|
-
"storyType"
|
|
1571
|
-
]
|
|
1572
|
-
},
|
|
1573
|
-
{
|
|
1574
|
-
"type": "object",
|
|
1575
|
-
"properties": {
|
|
1576
|
-
"kind": {
|
|
1577
|
-
"const": "story",
|
|
1578
|
-
"type": "string"
|
|
1579
|
-
},
|
|
1580
|
-
"storyType": {
|
|
1581
|
-
"const": "headerFooterSlot",
|
|
1582
|
-
"type": "string"
|
|
1583
|
-
},
|
|
1584
|
-
"section": {
|
|
1585
|
-
"type": "object",
|
|
1586
|
-
"properties": {
|
|
1587
|
-
"kind": {
|
|
1588
|
-
"const": "section",
|
|
1589
|
-
"type": "string"
|
|
1590
|
-
},
|
|
1591
|
-
"sectionId": {
|
|
1592
|
-
"type": "string"
|
|
1593
|
-
}
|
|
1594
|
-
},
|
|
1595
|
-
"required": [
|
|
1596
|
-
"kind",
|
|
1597
|
-
"sectionId"
|
|
1598
|
-
]
|
|
1599
|
-
},
|
|
1600
|
-
"headerFooterKind": {
|
|
1601
|
-
"enum": [
|
|
1602
|
-
"header",
|
|
1603
|
-
"footer"
|
|
1604
|
-
]
|
|
1605
|
-
},
|
|
1606
|
-
"variant": {
|
|
1607
|
-
"enum": [
|
|
1608
|
-
"default",
|
|
1609
|
-
"first",
|
|
1610
|
-
"even"
|
|
1611
|
-
]
|
|
1612
|
-
},
|
|
1613
|
-
"resolution": {
|
|
1614
|
-
"enum": [
|
|
1615
|
-
"effective",
|
|
1616
|
-
"explicit"
|
|
1617
|
-
]
|
|
1618
|
-
},
|
|
1619
|
-
"onWrite": {
|
|
1620
|
-
"enum": [
|
|
1621
|
-
"materializeIfInherited",
|
|
1622
|
-
"editResolvedPart",
|
|
1623
|
-
"error"
|
|
1624
|
-
]
|
|
1625
|
-
}
|
|
1626
|
-
},
|
|
1627
|
-
"required": [
|
|
1628
|
-
"kind",
|
|
1629
|
-
"storyType",
|
|
1630
|
-
"section",
|
|
1631
|
-
"headerFooterKind",
|
|
1632
|
-
"variant"
|
|
1633
|
-
]
|
|
1634
|
-
},
|
|
1635
|
-
{
|
|
1636
|
-
"type": "object",
|
|
1637
|
-
"properties": {
|
|
1638
|
-
"kind": {
|
|
1639
|
-
"const": "story",
|
|
1640
|
-
"type": "string"
|
|
1641
|
-
},
|
|
1642
|
-
"storyType": {
|
|
1643
|
-
"const": "headerFooterPart",
|
|
1644
|
-
"type": "string"
|
|
1645
|
-
},
|
|
1646
|
-
"refId": {
|
|
1647
|
-
"type": "string"
|
|
1648
|
-
}
|
|
1649
|
-
},
|
|
1650
|
-
"required": [
|
|
1651
|
-
"kind",
|
|
1652
|
-
"storyType",
|
|
1653
|
-
"refId"
|
|
1654
|
-
]
|
|
1655
|
-
},
|
|
1656
|
-
{
|
|
1657
|
-
"type": "object",
|
|
1658
|
-
"properties": {
|
|
1659
|
-
"kind": {
|
|
1660
|
-
"const": "story",
|
|
1661
|
-
"type": "string"
|
|
1662
|
-
},
|
|
1663
|
-
"storyType": {
|
|
1664
|
-
"const": "footnote",
|
|
1665
|
-
"type": "string"
|
|
1666
|
-
},
|
|
1667
|
-
"noteId": {
|
|
1668
|
-
"type": "string"
|
|
1669
|
-
}
|
|
1670
|
-
},
|
|
1671
|
-
"required": [
|
|
1672
|
-
"kind",
|
|
1673
|
-
"storyType",
|
|
1674
|
-
"noteId"
|
|
1675
|
-
]
|
|
1676
|
-
},
|
|
1677
|
-
{
|
|
1678
|
-
"type": "object",
|
|
1679
|
-
"properties": {
|
|
1680
|
-
"kind": {
|
|
1681
|
-
"const": "story",
|
|
1682
|
-
"type": "string"
|
|
1683
|
-
},
|
|
1684
|
-
"storyType": {
|
|
1685
|
-
"const": "endnote",
|
|
1686
|
-
"type": "string"
|
|
1687
|
-
},
|
|
1688
|
-
"noteId": {
|
|
1689
|
-
"type": "string"
|
|
1690
|
-
}
|
|
1691
|
-
},
|
|
1692
|
-
"required": [
|
|
1693
|
-
"kind",
|
|
1694
|
-
"storyType",
|
|
1695
|
-
"noteId"
|
|
1696
|
-
]
|
|
1697
|
-
},
|
|
1698
|
-
{
|
|
1699
|
-
"type": "object",
|
|
1700
|
-
"properties": {
|
|
1701
|
-
"kind": {
|
|
1702
|
-
"const": "story",
|
|
1703
|
-
"type": "string"
|
|
1704
|
-
},
|
|
1705
|
-
"storyType": {
|
|
1706
|
-
"const": "textbox",
|
|
1707
|
-
"type": "string"
|
|
1708
|
-
},
|
|
1709
|
-
"textboxId": {
|
|
1710
|
-
"type": "string"
|
|
1711
|
-
}
|
|
1712
|
-
},
|
|
1713
|
-
"required": [
|
|
1714
|
-
"kind",
|
|
1715
|
-
"storyType",
|
|
1716
|
-
"textboxId"
|
|
1717
|
-
]
|
|
1718
|
-
}
|
|
1719
|
-
],
|
|
1720
|
-
"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."
|
|
1721
|
-
}
|
|
1722
|
-
},
|
|
1723
|
-
"required": [
|
|
1724
|
-
"kind",
|
|
1725
|
-
"nodeType",
|
|
1726
|
-
"nodeId"
|
|
1727
|
-
]
|
|
1728
|
-
},
|
|
1729
|
-
"edge": {
|
|
1730
|
-
"enum": [
|
|
1731
|
-
"before",
|
|
1732
|
-
"after"
|
|
1733
|
-
]
|
|
1734
|
-
}
|
|
1735
|
-
},
|
|
1736
|
-
"required": [
|
|
1737
|
-
"kind",
|
|
1738
|
-
"node",
|
|
1739
|
-
"edge"
|
|
1740
|
-
]
|
|
1741
|
-
}
|
|
1742
|
-
],
|
|
1743
|
-
"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."
|
|
1744
|
-
},
|
|
1745
|
-
"end": {
|
|
1746
|
-
"oneOf": [
|
|
1747
|
-
{
|
|
1748
|
-
"type": "object",
|
|
1749
|
-
"properties": {
|
|
1750
|
-
"kind": {
|
|
1751
|
-
"const": "text",
|
|
1752
|
-
"type": "string"
|
|
1753
|
-
},
|
|
1754
|
-
"blockId": {
|
|
1755
|
-
"type": "string"
|
|
1756
|
-
},
|
|
1757
|
-
"offset": {
|
|
1758
|
-
"type": "number"
|
|
1759
|
-
},
|
|
1760
|
-
"story": {
|
|
1761
|
-
"oneOf": [
|
|
1762
|
-
{
|
|
1763
|
-
"type": "object",
|
|
1764
|
-
"properties": {
|
|
1765
|
-
"kind": {
|
|
1766
|
-
"const": "story",
|
|
1767
|
-
"type": "string"
|
|
1768
|
-
},
|
|
1769
|
-
"storyType": {
|
|
1770
|
-
"const": "body",
|
|
1771
|
-
"type": "string"
|
|
1772
|
-
}
|
|
1773
|
-
},
|
|
1774
|
-
"required": [
|
|
1775
|
-
"kind",
|
|
1776
|
-
"storyType"
|
|
1777
|
-
]
|
|
1778
|
-
},
|
|
1779
|
-
{
|
|
1780
|
-
"type": "object",
|
|
1781
|
-
"properties": {
|
|
1782
|
-
"kind": {
|
|
1783
|
-
"const": "story",
|
|
1784
|
-
"type": "string"
|
|
1785
|
-
},
|
|
1786
|
-
"storyType": {
|
|
1787
|
-
"const": "headerFooterSlot",
|
|
1788
|
-
"type": "string"
|
|
1789
|
-
},
|
|
1790
|
-
"section": {
|
|
1791
|
-
"type": "object",
|
|
1792
|
-
"properties": {
|
|
1793
|
-
"kind": {
|
|
1794
|
-
"const": "section",
|
|
1795
|
-
"type": "string"
|
|
1796
|
-
},
|
|
1797
|
-
"sectionId": {
|
|
1798
|
-
"type": "string"
|
|
1799
|
-
}
|
|
1800
|
-
},
|
|
1801
|
-
"required": [
|
|
1802
|
-
"kind",
|
|
1803
|
-
"sectionId"
|
|
1804
|
-
]
|
|
1805
|
-
},
|
|
1806
|
-
"headerFooterKind": {
|
|
1807
|
-
"enum": [
|
|
1808
|
-
"header",
|
|
1809
|
-
"footer"
|
|
1810
|
-
]
|
|
1811
|
-
},
|
|
1812
|
-
"variant": {
|
|
1813
|
-
"enum": [
|
|
1814
|
-
"default",
|
|
1815
|
-
"first",
|
|
1816
|
-
"even"
|
|
1817
|
-
]
|
|
1818
|
-
},
|
|
1819
|
-
"resolution": {
|
|
1820
|
-
"enum": [
|
|
1821
|
-
"effective",
|
|
1822
|
-
"explicit"
|
|
1823
|
-
]
|
|
1824
|
-
},
|
|
1825
|
-
"onWrite": {
|
|
1826
|
-
"enum": [
|
|
1827
|
-
"materializeIfInherited",
|
|
1828
|
-
"editResolvedPart",
|
|
1829
|
-
"error"
|
|
1830
|
-
]
|
|
1831
|
-
}
|
|
1832
|
-
},
|
|
1833
|
-
"required": [
|
|
1834
|
-
"kind",
|
|
1835
|
-
"storyType",
|
|
1836
|
-
"section",
|
|
1837
|
-
"headerFooterKind",
|
|
1838
|
-
"variant"
|
|
1839
|
-
]
|
|
1840
|
-
},
|
|
1841
|
-
{
|
|
1842
|
-
"type": "object",
|
|
1843
|
-
"properties": {
|
|
1844
|
-
"kind": {
|
|
1845
|
-
"const": "story",
|
|
1846
|
-
"type": "string"
|
|
1847
|
-
},
|
|
1848
|
-
"storyType": {
|
|
1849
|
-
"const": "headerFooterPart",
|
|
1850
|
-
"type": "string"
|
|
1851
|
-
},
|
|
1852
|
-
"refId": {
|
|
1853
|
-
"type": "string"
|
|
1854
|
-
}
|
|
1855
|
-
},
|
|
1856
|
-
"required": [
|
|
1857
|
-
"kind",
|
|
1858
|
-
"storyType",
|
|
1859
|
-
"refId"
|
|
1860
|
-
]
|
|
1861
|
-
},
|
|
1862
|
-
{
|
|
1863
|
-
"type": "object",
|
|
1864
|
-
"properties": {
|
|
1865
|
-
"kind": {
|
|
1866
|
-
"const": "story",
|
|
1867
|
-
"type": "string"
|
|
1868
|
-
},
|
|
1869
|
-
"storyType": {
|
|
1870
|
-
"const": "footnote",
|
|
1871
|
-
"type": "string"
|
|
1872
|
-
},
|
|
1873
|
-
"noteId": {
|
|
1874
|
-
"type": "string"
|
|
1875
|
-
}
|
|
1876
|
-
},
|
|
1877
|
-
"required": [
|
|
1878
|
-
"kind",
|
|
1879
|
-
"storyType",
|
|
1880
|
-
"noteId"
|
|
1881
|
-
]
|
|
1882
|
-
},
|
|
1883
|
-
{
|
|
1884
|
-
"type": "object",
|
|
1885
|
-
"properties": {
|
|
1886
|
-
"kind": {
|
|
1887
|
-
"const": "story",
|
|
1888
|
-
"type": "string"
|
|
1889
|
-
},
|
|
1890
|
-
"storyType": {
|
|
1891
|
-
"const": "endnote",
|
|
1892
|
-
"type": "string"
|
|
1893
|
-
},
|
|
1894
|
-
"noteId": {
|
|
1895
|
-
"type": "string"
|
|
1896
|
-
}
|
|
1897
|
-
},
|
|
1898
|
-
"required": [
|
|
1899
|
-
"kind",
|
|
1900
|
-
"storyType",
|
|
1901
|
-
"noteId"
|
|
1902
|
-
]
|
|
1903
|
-
},
|
|
1904
|
-
{
|
|
1905
|
-
"type": "object",
|
|
1906
|
-
"properties": {
|
|
1907
|
-
"kind": {
|
|
1908
|
-
"const": "story",
|
|
1909
|
-
"type": "string"
|
|
1910
|
-
},
|
|
1911
|
-
"storyType": {
|
|
1912
|
-
"const": "textbox",
|
|
1913
|
-
"type": "string"
|
|
1914
|
-
},
|
|
1915
|
-
"textboxId": {
|
|
1916
|
-
"type": "string"
|
|
1917
|
-
}
|
|
1918
|
-
},
|
|
1919
|
-
"required": [
|
|
1920
|
-
"kind",
|
|
1921
|
-
"storyType",
|
|
1922
|
-
"textboxId"
|
|
1923
|
-
]
|
|
1924
|
-
}
|
|
1925
|
-
],
|
|
1926
|
-
"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."
|
|
1927
|
-
}
|
|
1928
|
-
},
|
|
1929
|
-
"required": [
|
|
1930
|
-
"kind",
|
|
1931
|
-
"blockId",
|
|
1932
|
-
"offset"
|
|
1933
|
-
]
|
|
1934
|
-
},
|
|
1935
|
-
{
|
|
1936
|
-
"type": "object",
|
|
1937
|
-
"properties": {
|
|
1938
|
-
"kind": {
|
|
1939
|
-
"const": "nodeEdge",
|
|
1940
|
-
"type": "string"
|
|
1941
|
-
},
|
|
1942
|
-
"node": {
|
|
1943
|
-
"type": "object",
|
|
1944
|
-
"properties": {
|
|
1945
|
-
"kind": {
|
|
1946
|
-
"const": "block",
|
|
1947
|
-
"type": "string"
|
|
1948
|
-
},
|
|
1949
|
-
"nodeType": {
|
|
1950
|
-
"enum": [
|
|
1951
|
-
"paragraph",
|
|
1952
|
-
"heading",
|
|
1953
|
-
"table",
|
|
1954
|
-
"tableOfContents",
|
|
1955
|
-
"sdt",
|
|
1956
|
-
"image"
|
|
1957
|
-
]
|
|
1958
|
-
},
|
|
1959
|
-
"nodeId": {
|
|
1960
|
-
"type": "string"
|
|
1961
|
-
},
|
|
1962
|
-
"story": {
|
|
1963
|
-
"oneOf": [
|
|
1964
|
-
{
|
|
1965
|
-
"type": "object",
|
|
1966
|
-
"properties": {
|
|
1967
|
-
"kind": {
|
|
1968
|
-
"const": "story",
|
|
1969
|
-
"type": "string"
|
|
1970
|
-
},
|
|
1971
|
-
"storyType": {
|
|
1972
|
-
"const": "body",
|
|
1973
|
-
"type": "string"
|
|
1974
|
-
}
|
|
1975
|
-
},
|
|
1976
|
-
"required": [
|
|
1977
|
-
"kind",
|
|
1978
|
-
"storyType"
|
|
1979
|
-
]
|
|
1980
|
-
},
|
|
1981
|
-
{
|
|
1982
|
-
"type": "object",
|
|
1983
|
-
"properties": {
|
|
1984
|
-
"kind": {
|
|
1985
|
-
"const": "story",
|
|
1986
|
-
"type": "string"
|
|
1987
|
-
},
|
|
1988
|
-
"storyType": {
|
|
1989
|
-
"const": "headerFooterSlot",
|
|
1990
|
-
"type": "string"
|
|
1991
|
-
},
|
|
1992
|
-
"section": {
|
|
1993
|
-
"type": "object",
|
|
1994
|
-
"properties": {
|
|
1995
|
-
"kind": {
|
|
1996
|
-
"const": "section",
|
|
1997
|
-
"type": "string"
|
|
1998
|
-
},
|
|
1999
|
-
"sectionId": {
|
|
2000
|
-
"type": "string"
|
|
2001
|
-
}
|
|
2002
|
-
},
|
|
2003
|
-
"required": [
|
|
2004
|
-
"kind",
|
|
2005
|
-
"sectionId"
|
|
2006
|
-
]
|
|
2007
|
-
},
|
|
2008
|
-
"headerFooterKind": {
|
|
2009
|
-
"enum": [
|
|
2010
|
-
"header",
|
|
2011
|
-
"footer"
|
|
2012
|
-
]
|
|
2013
|
-
},
|
|
2014
|
-
"variant": {
|
|
2015
|
-
"enum": [
|
|
2016
|
-
"default",
|
|
2017
|
-
"first",
|
|
2018
|
-
"even"
|
|
2019
|
-
]
|
|
2020
|
-
},
|
|
2021
|
-
"resolution": {
|
|
2022
|
-
"enum": [
|
|
2023
|
-
"effective",
|
|
2024
|
-
"explicit"
|
|
2025
|
-
]
|
|
2026
|
-
},
|
|
2027
|
-
"onWrite": {
|
|
2028
|
-
"enum": [
|
|
2029
|
-
"materializeIfInherited",
|
|
2030
|
-
"editResolvedPart",
|
|
2031
|
-
"error"
|
|
2032
|
-
]
|
|
2033
|
-
}
|
|
2034
|
-
},
|
|
2035
|
-
"required": [
|
|
2036
|
-
"kind",
|
|
2037
|
-
"storyType",
|
|
2038
|
-
"section",
|
|
2039
|
-
"headerFooterKind",
|
|
2040
|
-
"variant"
|
|
2041
|
-
]
|
|
2042
|
-
},
|
|
2043
|
-
{
|
|
2044
|
-
"type": "object",
|
|
2045
|
-
"properties": {
|
|
2046
|
-
"kind": {
|
|
2047
|
-
"const": "story",
|
|
2048
|
-
"type": "string"
|
|
2049
|
-
},
|
|
2050
|
-
"storyType": {
|
|
2051
|
-
"const": "headerFooterPart",
|
|
2052
|
-
"type": "string"
|
|
2053
|
-
},
|
|
2054
|
-
"refId": {
|
|
2055
|
-
"type": "string"
|
|
2056
|
-
}
|
|
2057
|
-
},
|
|
2058
|
-
"required": [
|
|
2059
|
-
"kind",
|
|
2060
|
-
"storyType",
|
|
2061
|
-
"refId"
|
|
2062
|
-
]
|
|
2063
|
-
},
|
|
2064
|
-
{
|
|
2065
|
-
"type": "object",
|
|
2066
|
-
"properties": {
|
|
2067
|
-
"kind": {
|
|
2068
|
-
"const": "story",
|
|
2069
|
-
"type": "string"
|
|
2070
|
-
},
|
|
2071
|
-
"storyType": {
|
|
2072
|
-
"const": "footnote",
|
|
2073
|
-
"type": "string"
|
|
2074
|
-
},
|
|
2075
|
-
"noteId": {
|
|
2076
|
-
"type": "string"
|
|
2077
|
-
}
|
|
2078
|
-
},
|
|
2079
|
-
"required": [
|
|
2080
|
-
"kind",
|
|
2081
|
-
"storyType",
|
|
2082
|
-
"noteId"
|
|
2083
|
-
]
|
|
2084
|
-
},
|
|
2085
|
-
{
|
|
2086
|
-
"type": "object",
|
|
2087
|
-
"properties": {
|
|
2088
|
-
"kind": {
|
|
2089
|
-
"const": "story",
|
|
2090
|
-
"type": "string"
|
|
2091
|
-
},
|
|
2092
|
-
"storyType": {
|
|
2093
|
-
"const": "endnote",
|
|
2094
|
-
"type": "string"
|
|
2095
|
-
},
|
|
2096
|
-
"noteId": {
|
|
2097
|
-
"type": "string"
|
|
2098
|
-
}
|
|
2099
|
-
},
|
|
2100
|
-
"required": [
|
|
2101
|
-
"kind",
|
|
2102
|
-
"storyType",
|
|
2103
|
-
"noteId"
|
|
2104
|
-
]
|
|
2105
|
-
},
|
|
2106
|
-
{
|
|
2107
|
-
"type": "object",
|
|
2108
|
-
"properties": {
|
|
2109
|
-
"kind": {
|
|
2110
|
-
"const": "story",
|
|
2111
|
-
"type": "string"
|
|
2112
|
-
},
|
|
2113
|
-
"storyType": {
|
|
2114
|
-
"const": "textbox",
|
|
2115
|
-
"type": "string"
|
|
2116
|
-
},
|
|
2117
|
-
"textboxId": {
|
|
2118
|
-
"type": "string"
|
|
2119
|
-
}
|
|
2120
|
-
},
|
|
2121
|
-
"required": [
|
|
2122
|
-
"kind",
|
|
2123
|
-
"storyType",
|
|
2124
|
-
"textboxId"
|
|
2125
|
-
]
|
|
2126
|
-
}
|
|
2127
|
-
],
|
|
2128
|
-
"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."
|
|
2129
|
-
}
|
|
2130
|
-
},
|
|
2131
|
-
"required": [
|
|
2132
|
-
"kind",
|
|
2133
|
-
"nodeType",
|
|
2134
|
-
"nodeId"
|
|
2135
|
-
]
|
|
2136
|
-
},
|
|
2137
|
-
"edge": {
|
|
2138
|
-
"enum": [
|
|
2139
|
-
"before",
|
|
2140
|
-
"after"
|
|
2141
|
-
]
|
|
2142
|
-
}
|
|
2143
|
-
},
|
|
2144
|
-
"required": [
|
|
2145
|
-
"kind",
|
|
2146
|
-
"node",
|
|
2147
|
-
"edge"
|
|
2148
|
-
]
|
|
2149
|
-
}
|
|
2150
|
-
],
|
|
2151
|
-
"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."
|
|
2152
|
-
},
|
|
2153
|
-
"story": {
|
|
2154
|
-
"oneOf": [
|
|
2155
|
-
{
|
|
2156
|
-
"type": "object",
|
|
2157
|
-
"properties": {
|
|
2158
|
-
"kind": {
|
|
2159
|
-
"const": "story",
|
|
2160
|
-
"type": "string"
|
|
2161
|
-
},
|
|
2162
|
-
"storyType": {
|
|
2163
|
-
"const": "body",
|
|
2164
|
-
"type": "string"
|
|
2165
|
-
}
|
|
2166
|
-
},
|
|
2167
|
-
"required": [
|
|
2168
|
-
"kind",
|
|
2169
|
-
"storyType"
|
|
2170
|
-
]
|
|
2171
|
-
},
|
|
2172
|
-
{
|
|
2173
|
-
"type": "object",
|
|
2174
|
-
"properties": {
|
|
2175
|
-
"kind": {
|
|
2176
|
-
"const": "story",
|
|
2177
|
-
"type": "string"
|
|
2178
|
-
},
|
|
2179
|
-
"storyType": {
|
|
2180
|
-
"const": "headerFooterSlot",
|
|
2181
|
-
"type": "string"
|
|
2182
|
-
},
|
|
2183
|
-
"section": {
|
|
2184
|
-
"type": "object",
|
|
2185
|
-
"properties": {
|
|
2186
|
-
"kind": {
|
|
2187
|
-
"const": "section",
|
|
2188
|
-
"type": "string"
|
|
2189
|
-
},
|
|
2190
|
-
"sectionId": {
|
|
2191
|
-
"type": "string"
|
|
2192
|
-
}
|
|
2193
|
-
},
|
|
2194
|
-
"required": [
|
|
2195
|
-
"kind",
|
|
2196
|
-
"sectionId"
|
|
2197
|
-
]
|
|
2198
|
-
},
|
|
2199
|
-
"headerFooterKind": {
|
|
2200
|
-
"enum": [
|
|
2201
|
-
"header",
|
|
2202
|
-
"footer"
|
|
2203
|
-
]
|
|
2204
|
-
},
|
|
2205
|
-
"variant": {
|
|
2206
|
-
"enum": [
|
|
2207
|
-
"default",
|
|
2208
|
-
"first",
|
|
2209
|
-
"even"
|
|
2210
|
-
]
|
|
2211
|
-
},
|
|
2212
|
-
"resolution": {
|
|
2213
|
-
"enum": [
|
|
2214
|
-
"effective",
|
|
2215
|
-
"explicit"
|
|
2216
|
-
]
|
|
2217
|
-
},
|
|
2218
|
-
"onWrite": {
|
|
2219
|
-
"enum": [
|
|
2220
|
-
"materializeIfInherited",
|
|
2221
|
-
"editResolvedPart",
|
|
2222
|
-
"error"
|
|
2223
|
-
]
|
|
2224
|
-
}
|
|
2225
|
-
},
|
|
2226
|
-
"required": [
|
|
2227
|
-
"kind",
|
|
2228
|
-
"storyType",
|
|
2229
|
-
"section",
|
|
2230
|
-
"headerFooterKind",
|
|
2231
|
-
"variant"
|
|
2232
|
-
]
|
|
2233
|
-
},
|
|
2234
|
-
{
|
|
2235
|
-
"type": "object",
|
|
2236
|
-
"properties": {
|
|
2237
|
-
"kind": {
|
|
2238
|
-
"const": "story",
|
|
2239
|
-
"type": "string"
|
|
2240
|
-
},
|
|
2241
|
-
"storyType": {
|
|
2242
|
-
"const": "headerFooterPart",
|
|
2243
|
-
"type": "string"
|
|
2244
|
-
},
|
|
2245
|
-
"refId": {
|
|
2246
|
-
"type": "string"
|
|
2247
|
-
}
|
|
2248
|
-
},
|
|
2249
|
-
"required": [
|
|
2250
|
-
"kind",
|
|
2251
|
-
"storyType",
|
|
2252
|
-
"refId"
|
|
2253
|
-
]
|
|
2254
|
-
},
|
|
2255
|
-
{
|
|
2256
|
-
"type": "object",
|
|
2257
|
-
"properties": {
|
|
2258
|
-
"kind": {
|
|
2259
|
-
"const": "story",
|
|
2260
|
-
"type": "string"
|
|
2261
|
-
},
|
|
2262
|
-
"storyType": {
|
|
2263
|
-
"const": "footnote",
|
|
2264
|
-
"type": "string"
|
|
2265
|
-
},
|
|
2266
|
-
"noteId": {
|
|
2267
|
-
"type": "string"
|
|
2268
|
-
}
|
|
2269
|
-
},
|
|
2270
|
-
"required": [
|
|
2271
|
-
"kind",
|
|
2272
|
-
"storyType",
|
|
2273
|
-
"noteId"
|
|
2274
|
-
]
|
|
2275
|
-
},
|
|
2276
|
-
{
|
|
2277
|
-
"type": "object",
|
|
2278
|
-
"properties": {
|
|
2279
|
-
"kind": {
|
|
2280
|
-
"const": "story",
|
|
2281
|
-
"type": "string"
|
|
2282
|
-
},
|
|
2283
|
-
"storyType": {
|
|
2284
|
-
"const": "endnote",
|
|
2285
|
-
"type": "string"
|
|
2286
|
-
},
|
|
2287
|
-
"noteId": {
|
|
2288
|
-
"type": "string"
|
|
2289
|
-
}
|
|
2290
|
-
},
|
|
2291
|
-
"required": [
|
|
2292
|
-
"kind",
|
|
2293
|
-
"storyType",
|
|
2294
|
-
"noteId"
|
|
2295
|
-
]
|
|
2296
|
-
},
|
|
2297
|
-
{
|
|
2298
|
-
"type": "object",
|
|
2299
|
-
"properties": {
|
|
2300
|
-
"kind": {
|
|
2301
|
-
"const": "story",
|
|
2302
|
-
"type": "string"
|
|
2303
|
-
},
|
|
2304
|
-
"storyType": {
|
|
2305
|
-
"const": "textbox",
|
|
2306
|
-
"type": "string"
|
|
2307
|
-
},
|
|
2308
|
-
"textboxId": {
|
|
2309
|
-
"type": "string"
|
|
2310
|
-
}
|
|
2311
|
-
},
|
|
2312
|
-
"required": [
|
|
2313
|
-
"kind",
|
|
2314
|
-
"storyType",
|
|
2315
|
-
"textboxId"
|
|
2316
|
-
]
|
|
2317
|
-
}
|
|
2318
|
-
],
|
|
2319
|
-
"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."
|
|
2320
|
-
},
|
|
2321
|
-
"coordinateSpace": {
|
|
2322
|
-
"enum": [
|
|
2323
|
-
"visible",
|
|
2324
|
-
"tracked"
|
|
2325
|
-
]
|
|
2326
|
-
}
|
|
2327
|
-
},
|
|
2328
|
-
"required": [
|
|
2329
|
-
"kind",
|
|
2330
|
-
"start",
|
|
2331
|
-
"end"
|
|
2332
|
-
]
|
|
135
|
+
"supportCheck": {
|
|
136
|
+
"type": "object",
|
|
137
|
+
"properties": {
|
|
138
|
+
"version": {
|
|
139
|
+
"const": "sd-html-markdown-check/1",
|
|
140
|
+
"type": "string"
|
|
141
|
+
},
|
|
142
|
+
"operation": {
|
|
143
|
+
"enum": [
|
|
144
|
+
"insert",
|
|
145
|
+
"replace"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"evaluatedRevision": {
|
|
149
|
+
"type": "string"
|
|
150
|
+
},
|
|
151
|
+
"requestSha256": {
|
|
152
|
+
"type": "string"
|
|
153
|
+
},
|
|
154
|
+
"analysisSha256": {
|
|
155
|
+
"type": "string"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"required": [
|
|
159
|
+
"version",
|
|
160
|
+
"operation",
|
|
161
|
+
"evaluatedRevision",
|
|
162
|
+
"requestSha256",
|
|
163
|
+
"analysisSha256"
|
|
164
|
+
],
|
|
165
|
+
"additionalProperties": false,
|
|
166
|
+
"description": "Guard returned by capabilities check for this exact HTML or Markdown write. Only for actions 'insert', 'replace'. Omit for other actions."
|
|
167
|
+
},
|
|
168
|
+
"target": {
|
|
169
|
+
"oneOf": [
|
|
170
|
+
{
|
|
171
|
+
"oneOf": [
|
|
172
|
+
{
|
|
173
|
+
"$ref": "#/$defs/BlockNodeAddress",
|
|
174
|
+
"description": "Block address for structural insertion: {kind:'block', nodeType:'...', nodeId:'...'}."
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"type": "object",
|
|
178
|
+
"properties": {
|
|
179
|
+
"kind": {
|
|
180
|
+
"const": "story",
|
|
181
|
+
"type": "string"
|
|
182
|
+
},
|
|
183
|
+
"storyType": {
|
|
184
|
+
"const": "body",
|
|
185
|
+
"type": "string"
|
|
2333
186
|
}
|
|
187
|
+
},
|
|
188
|
+
"additionalProperties": false,
|
|
189
|
+
"required": [
|
|
190
|
+
"kind",
|
|
191
|
+
"storyType"
|
|
2334
192
|
]
|
|
2335
193
|
}
|
|
2336
194
|
],
|
|
@@ -2341,7 +199,7 @@
|
|
|
2341
199
|
"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."
|
|
2342
200
|
}
|
|
2343
201
|
],
|
|
2344
|
-
"description": "Block address for structural insertion: {kind:'block', nodeType:'...', nodeId:'...'}."
|
|
202
|
+
"description": "Block address for structural insertion: {kind:'block', nodeType:'...', nodeId:'...'}. Only for actions 'insert', 'replace', 'delete'. Omit for other actions."
|
|
2345
203
|
},
|
|
2346
204
|
"in": {
|
|
2347
205
|
"oneOf": [
|
|
@@ -2527,20 +385,48 @@
|
|
|
2527
385
|
"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."
|
|
2528
386
|
}
|
|
2529
387
|
],
|
|
2530
|
-
"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."
|
|
388
|
+
"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."
|
|
2531
389
|
},
|
|
2532
390
|
"value": {
|
|
2533
|
-
"
|
|
2534
|
-
|
|
391
|
+
"oneOf": [
|
|
392
|
+
{
|
|
393
|
+
"type": "string",
|
|
394
|
+
"description": "HTML or Markdown content to convert and insert."
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"type": "string",
|
|
398
|
+
"description": "HTML or Markdown that replaces the complete main body."
|
|
399
|
+
}
|
|
400
|
+
],
|
|
401
|
+
"description": "HTML or Markdown content to convert and insert. Only for actions 'insert', 'replace'. Omit for other actions."
|
|
2535
402
|
},
|
|
2536
403
|
"type": {
|
|
2537
|
-
"
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
404
|
+
"oneOf": [
|
|
405
|
+
{
|
|
406
|
+
"type": "string",
|
|
407
|
+
"oneOf": [
|
|
408
|
+
{
|
|
409
|
+
"const": "text",
|
|
410
|
+
"description": "Plain-text content format. Omit for the same 'text' default.",
|
|
411
|
+
"type": "string"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"enum": [
|
|
415
|
+
"markdown",
|
|
416
|
+
"html"
|
|
417
|
+
]
|
|
418
|
+
}
|
|
419
|
+
]
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"type": "string",
|
|
423
|
+
"enum": [
|
|
424
|
+
"html",
|
|
425
|
+
"markdown"
|
|
426
|
+
]
|
|
427
|
+
}
|
|
428
|
+
],
|
|
429
|
+
"description": "Only for actions 'insert', 'replace'. Omit for other actions."
|
|
2544
430
|
},
|
|
2545
431
|
"ref": {
|
|
2546
432
|
"oneOf": [
|
|
@@ -2562,7 +448,16 @@
|
|
|
2562
448
|
"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."
|
|
2563
449
|
}
|
|
2564
450
|
],
|
|
2565
|
-
"description": "Handle ref from superdoc_search result (pass handle.ref value directly). Preferred over building a target object."
|
|
451
|
+
"description": "Handle ref from superdoc_search result (pass handle.ref value directly). Preferred over building a target object. Only for actions 'insert', 'replace', 'delete'. Omit for other actions."
|
|
452
|
+
},
|
|
453
|
+
"placement": {
|
|
454
|
+
"enum": [
|
|
455
|
+
"before",
|
|
456
|
+
"after",
|
|
457
|
+
"insideStart",
|
|
458
|
+
"insideEnd"
|
|
459
|
+
],
|
|
460
|
+
"description": "Where to place content relative to target: 'before', 'after', 'insideStart', or 'insideEnd'. Only for action 'insert'. Omit for other actions."
|
|
2566
461
|
},
|
|
2567
462
|
"content": {
|
|
2568
463
|
"oneOf": [
|
|
@@ -2593,21 +488,11 @@
|
|
|
2593
488
|
"properties": {}
|
|
2594
489
|
}
|
|
2595
490
|
}
|
|
2596
|
-
]
|
|
2597
|
-
"description": "Document fragment to replace with (structured content)."
|
|
491
|
+
]
|
|
2598
492
|
}
|
|
2599
493
|
],
|
|
2600
494
|
"description": "Document fragment to insert (structured content). Only for actions 'insert', 'replace'. Omit for other actions."
|
|
2601
495
|
},
|
|
2602
|
-
"placement": {
|
|
2603
|
-
"enum": [
|
|
2604
|
-
"before",
|
|
2605
|
-
"after",
|
|
2606
|
-
"insideStart",
|
|
2607
|
-
"insideEnd"
|
|
2608
|
-
],
|
|
2609
|
-
"description": "Where to place content relative to target: 'before', 'after', 'insideStart', or 'insideEnd'. Only for action 'insert'. Omit for other actions."
|
|
2610
|
-
},
|
|
2611
496
|
"nestingPolicy": {
|
|
2612
497
|
"oneOf": [
|
|
2613
498
|
{
|
|
@@ -2640,11 +525,296 @@
|
|
|
2640
525
|
},
|
|
2641
526
|
"text": {
|
|
2642
527
|
"type": "string",
|
|
2643
|
-
"description": "
|
|
528
|
+
"description": "Complete replacement text for the main body. Only for action 'replace'. Omit for other actions."
|
|
2644
529
|
},
|
|
2645
530
|
"behavior": {
|
|
2646
531
|
"$ref": "#/$defs/DeleteBehavior",
|
|
2647
532
|
"description": "Delete behavior: 'selection' (default) or 'exact'. Only for action 'delete'. Omit for other actions."
|
|
533
|
+
},
|
|
534
|
+
"operation": {
|
|
535
|
+
"oneOf": [
|
|
536
|
+
{
|
|
537
|
+
"oneOf": [
|
|
538
|
+
{
|
|
539
|
+
"enum": [
|
|
540
|
+
"insert",
|
|
541
|
+
"replace"
|
|
542
|
+
]
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"const": "projectHtml",
|
|
546
|
+
"type": "string"
|
|
547
|
+
}
|
|
548
|
+
]
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"const": "projectMarkdown",
|
|
552
|
+
"type": "string"
|
|
553
|
+
}
|
|
554
|
+
],
|
|
555
|
+
"description": "Required for action 'check_support'."
|
|
556
|
+
},
|
|
557
|
+
"input": {
|
|
558
|
+
"oneOf": [
|
|
559
|
+
{
|
|
560
|
+
"oneOf": [
|
|
561
|
+
{
|
|
562
|
+
"oneOf": [
|
|
563
|
+
{
|
|
564
|
+
"oneOf": [
|
|
565
|
+
{
|
|
566
|
+
"type": "object",
|
|
567
|
+
"properties": {
|
|
568
|
+
"in": {
|
|
569
|
+
"$ref": "#/$defs/StoryLocator"
|
|
570
|
+
},
|
|
571
|
+
"target": {
|
|
572
|
+
"oneOf": [
|
|
573
|
+
{
|
|
574
|
+
"$ref": "#/$defs/SelectionTarget"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"$ref": "#/$defs/BlockNodeAddress"
|
|
578
|
+
}
|
|
579
|
+
]
|
|
580
|
+
},
|
|
581
|
+
"value": {
|
|
582
|
+
"type": "string"
|
|
583
|
+
},
|
|
584
|
+
"type": {
|
|
585
|
+
"enum": [
|
|
586
|
+
"html",
|
|
587
|
+
"markdown"
|
|
588
|
+
]
|
|
589
|
+
},
|
|
590
|
+
"placement": {
|
|
591
|
+
"enum": [
|
|
592
|
+
"before",
|
|
593
|
+
"after",
|
|
594
|
+
"insideStart",
|
|
595
|
+
"insideEnd"
|
|
596
|
+
]
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
"additionalProperties": false,
|
|
600
|
+
"required": [
|
|
601
|
+
"target",
|
|
602
|
+
"value",
|
|
603
|
+
"type"
|
|
604
|
+
]
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"type": "object",
|
|
608
|
+
"properties": {
|
|
609
|
+
"in": {
|
|
610
|
+
"$ref": "#/$defs/StoryLocator"
|
|
611
|
+
},
|
|
612
|
+
"ref": {
|
|
613
|
+
"type": "string",
|
|
614
|
+
"minLength": 1
|
|
615
|
+
},
|
|
616
|
+
"value": {
|
|
617
|
+
"type": "string"
|
|
618
|
+
},
|
|
619
|
+
"type": {
|
|
620
|
+
"enum": [
|
|
621
|
+
"html",
|
|
622
|
+
"markdown"
|
|
623
|
+
]
|
|
624
|
+
},
|
|
625
|
+
"placement": {
|
|
626
|
+
"enum": [
|
|
627
|
+
"before",
|
|
628
|
+
"after",
|
|
629
|
+
"insideStart",
|
|
630
|
+
"insideEnd"
|
|
631
|
+
]
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
"additionalProperties": false,
|
|
635
|
+
"required": [
|
|
636
|
+
"ref",
|
|
637
|
+
"value",
|
|
638
|
+
"type"
|
|
639
|
+
]
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"type": "object",
|
|
643
|
+
"properties": {
|
|
644
|
+
"in": {
|
|
645
|
+
"$ref": "#/$defs/StoryLocator"
|
|
646
|
+
},
|
|
647
|
+
"value": {
|
|
648
|
+
"type": "string"
|
|
649
|
+
},
|
|
650
|
+
"type": {
|
|
651
|
+
"enum": [
|
|
652
|
+
"html",
|
|
653
|
+
"markdown"
|
|
654
|
+
]
|
|
655
|
+
},
|
|
656
|
+
"placement": {
|
|
657
|
+
"enum": [
|
|
658
|
+
"before",
|
|
659
|
+
"after",
|
|
660
|
+
"insideStart",
|
|
661
|
+
"insideEnd"
|
|
662
|
+
]
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
"additionalProperties": false,
|
|
666
|
+
"required": [
|
|
667
|
+
"value",
|
|
668
|
+
"type"
|
|
669
|
+
]
|
|
670
|
+
}
|
|
671
|
+
]
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"oneOf": [
|
|
675
|
+
{
|
|
676
|
+
"type": "object",
|
|
677
|
+
"properties": {
|
|
678
|
+
"in": {
|
|
679
|
+
"$ref": "#/$defs/StoryLocator"
|
|
680
|
+
},
|
|
681
|
+
"target": {
|
|
682
|
+
"oneOf": [
|
|
683
|
+
{
|
|
684
|
+
"$ref": "#/$defs/SelectionTarget"
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
"$ref": "#/$defs/BlockNodeAddress"
|
|
688
|
+
}
|
|
689
|
+
]
|
|
690
|
+
},
|
|
691
|
+
"value": {
|
|
692
|
+
"type": "string"
|
|
693
|
+
},
|
|
694
|
+
"type": {
|
|
695
|
+
"enum": [
|
|
696
|
+
"html",
|
|
697
|
+
"markdown"
|
|
698
|
+
]
|
|
699
|
+
},
|
|
700
|
+
"nestingPolicy": {
|
|
701
|
+
"type": "object",
|
|
702
|
+
"properties": {
|
|
703
|
+
"tables": {
|
|
704
|
+
"enum": [
|
|
705
|
+
"forbid",
|
|
706
|
+
"allow"
|
|
707
|
+
]
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
"additionalProperties": false,
|
|
711
|
+
"description": "Controls nesting behavior. tables: 'allow' permits inserting tables inside other tables."
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
"additionalProperties": false,
|
|
715
|
+
"required": [
|
|
716
|
+
"target",
|
|
717
|
+
"value",
|
|
718
|
+
"type"
|
|
719
|
+
]
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"type": "object",
|
|
723
|
+
"properties": {
|
|
724
|
+
"in": {
|
|
725
|
+
"$ref": "#/$defs/StoryLocator"
|
|
726
|
+
},
|
|
727
|
+
"ref": {
|
|
728
|
+
"type": "string",
|
|
729
|
+
"minLength": 1
|
|
730
|
+
},
|
|
731
|
+
"value": {
|
|
732
|
+
"type": "string"
|
|
733
|
+
},
|
|
734
|
+
"type": {
|
|
735
|
+
"enum": [
|
|
736
|
+
"html",
|
|
737
|
+
"markdown"
|
|
738
|
+
]
|
|
739
|
+
},
|
|
740
|
+
"nestingPolicy": {
|
|
741
|
+
"type": "object",
|
|
742
|
+
"properties": {
|
|
743
|
+
"tables": {
|
|
744
|
+
"enum": [
|
|
745
|
+
"forbid",
|
|
746
|
+
"allow"
|
|
747
|
+
]
|
|
748
|
+
}
|
|
749
|
+
},
|
|
750
|
+
"additionalProperties": false,
|
|
751
|
+
"description": "Controls nesting behavior. tables: 'allow' permits inserting tables inside other tables."
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
"additionalProperties": false,
|
|
755
|
+
"required": [
|
|
756
|
+
"ref",
|
|
757
|
+
"value",
|
|
758
|
+
"type"
|
|
759
|
+
]
|
|
760
|
+
}
|
|
761
|
+
]
|
|
762
|
+
}
|
|
763
|
+
]
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
"type": "object",
|
|
767
|
+
"properties": {
|
|
768
|
+
"in": {
|
|
769
|
+
"$ref": "#/$defs/StoryLocator"
|
|
770
|
+
},
|
|
771
|
+
"reviewMode": {
|
|
772
|
+
"$ref": "#/$defs/SDProjectionReviewMode"
|
|
773
|
+
},
|
|
774
|
+
"scope": {
|
|
775
|
+
"$ref": "#/$defs/SDProjectionScope"
|
|
776
|
+
},
|
|
777
|
+
"includeSourceMap": {
|
|
778
|
+
"type": "boolean"
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
"additionalProperties": false
|
|
782
|
+
}
|
|
783
|
+
]
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
"type": "object",
|
|
787
|
+
"properties": {
|
|
788
|
+
"in": {
|
|
789
|
+
"$ref": "#/$defs/StoryLocator"
|
|
790
|
+
},
|
|
791
|
+
"reviewMode": {
|
|
792
|
+
"$ref": "#/$defs/SDProjectionReviewMode"
|
|
793
|
+
},
|
|
794
|
+
"scope": {
|
|
795
|
+
"$ref": "#/$defs/SDProjectionScope"
|
|
796
|
+
},
|
|
797
|
+
"includeSourceMap": {
|
|
798
|
+
"type": "boolean"
|
|
799
|
+
}
|
|
800
|
+
},
|
|
801
|
+
"additionalProperties": false
|
|
802
|
+
}
|
|
803
|
+
],
|
|
804
|
+
"description": "Only for action 'check_support'. Omit for other actions."
|
|
805
|
+
},
|
|
806
|
+
"options": {
|
|
807
|
+
"type": "object",
|
|
808
|
+
"properties": {
|
|
809
|
+
"changeMode": {
|
|
810
|
+
"enum": [
|
|
811
|
+
"direct",
|
|
812
|
+
"tracked"
|
|
813
|
+
]
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
"additionalProperties": false,
|
|
817
|
+
"description": "Only for action 'check_support'. Omit for other actions."
|
|
2648
818
|
}
|
|
2649
819
|
},
|
|
2650
820
|
"required": [
|
|
@@ -2654,11 +824,12 @@
|
|
|
2654
824
|
},
|
|
2655
825
|
"metadata": {
|
|
2656
826
|
"mutates": true,
|
|
2657
|
-
"operationCount":
|
|
827
|
+
"operationCount": 6,
|
|
2658
828
|
"operations": [
|
|
2659
829
|
"doc.insert",
|
|
2660
830
|
"doc.replace",
|
|
2661
831
|
"doc.delete",
|
|
832
|
+
"doc.capabilities.check",
|
|
2662
833
|
"doc.history.undo",
|
|
2663
834
|
"doc.history.redo"
|
|
2664
835
|
]
|