@superdoc-dev/sdk 1.16.1 → 1.18.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.cjs +28 -0
- package/dist/generated/client.d.ts +72321 -18453
- package/dist/generated/client.d.ts.map +1 -1
- package/dist/generated/client.js +28 -0
- package/dist/generated/contract.cjs +131476 -35664
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +132855 -36860
- package/dist/generated/intent-dispatch.generated.cjs +1 -0
- package/dist/generated/intent-dispatch.generated.d.ts.map +1 -1
- package/dist/generated/intent-dispatch.generated.js +1 -0
- 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 +2817 -216
- package/tools/intent_dispatch_generated.py +2 -0
- package/tools/tools-policy.json +1 -1
- package/tools/tools.anthropic.json +2726 -131
- package/tools/tools.generic.json +2728 -132
- package/tools/tools.openai.json +2726 -131
- package/tools/tools.vercel.json +2726 -131
package/tools/tools.vercel.json
CHANGED
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
],
|
|
22
22
|
"description": "The action to perform. One of: blocks, extract, html, info, markdown, text."
|
|
23
23
|
},
|
|
24
|
+
"in": {
|
|
25
|
+
"$ref": "#/$defs/StoryLocator",
|
|
26
|
+
"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."
|
|
27
|
+
},
|
|
24
28
|
"unflattenLists": {
|
|
25
29
|
"type": "boolean",
|
|
26
30
|
"description": "When true, flattens nested list structures in output. Default: false. Only for action 'html'. Omit for other actions."
|
|
@@ -130,6 +134,174 @@
|
|
|
130
134
|
},
|
|
131
135
|
"offset": {
|
|
132
136
|
"type": "number"
|
|
137
|
+
},
|
|
138
|
+
"story": {
|
|
139
|
+
"oneOf": [
|
|
140
|
+
{
|
|
141
|
+
"type": "object",
|
|
142
|
+
"properties": {
|
|
143
|
+
"kind": {
|
|
144
|
+
"const": "story",
|
|
145
|
+
"type": "string"
|
|
146
|
+
},
|
|
147
|
+
"storyType": {
|
|
148
|
+
"const": "body",
|
|
149
|
+
"type": "string"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"required": [
|
|
153
|
+
"kind",
|
|
154
|
+
"storyType"
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"type": "object",
|
|
159
|
+
"properties": {
|
|
160
|
+
"kind": {
|
|
161
|
+
"const": "story",
|
|
162
|
+
"type": "string"
|
|
163
|
+
},
|
|
164
|
+
"storyType": {
|
|
165
|
+
"const": "headerFooterSlot",
|
|
166
|
+
"type": "string"
|
|
167
|
+
},
|
|
168
|
+
"section": {
|
|
169
|
+
"type": "object",
|
|
170
|
+
"properties": {
|
|
171
|
+
"kind": {
|
|
172
|
+
"const": "section",
|
|
173
|
+
"type": "string"
|
|
174
|
+
},
|
|
175
|
+
"sectionId": {
|
|
176
|
+
"type": "string"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"required": [
|
|
180
|
+
"kind",
|
|
181
|
+
"sectionId"
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
"headerFooterKind": {
|
|
185
|
+
"enum": [
|
|
186
|
+
"header",
|
|
187
|
+
"footer"
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
"variant": {
|
|
191
|
+
"enum": [
|
|
192
|
+
"default",
|
|
193
|
+
"first",
|
|
194
|
+
"even"
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
"resolution": {
|
|
198
|
+
"enum": [
|
|
199
|
+
"effective",
|
|
200
|
+
"explicit"
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
"onWrite": {
|
|
204
|
+
"enum": [
|
|
205
|
+
"materializeIfInherited",
|
|
206
|
+
"editResolvedPart",
|
|
207
|
+
"error"
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"required": [
|
|
212
|
+
"kind",
|
|
213
|
+
"storyType",
|
|
214
|
+
"section",
|
|
215
|
+
"headerFooterKind",
|
|
216
|
+
"variant"
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"type": "object",
|
|
221
|
+
"properties": {
|
|
222
|
+
"kind": {
|
|
223
|
+
"const": "story",
|
|
224
|
+
"type": "string"
|
|
225
|
+
},
|
|
226
|
+
"storyType": {
|
|
227
|
+
"const": "headerFooterPart",
|
|
228
|
+
"type": "string"
|
|
229
|
+
},
|
|
230
|
+
"refId": {
|
|
231
|
+
"type": "string"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"required": [
|
|
235
|
+
"kind",
|
|
236
|
+
"storyType",
|
|
237
|
+
"refId"
|
|
238
|
+
]
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"type": "object",
|
|
242
|
+
"properties": {
|
|
243
|
+
"kind": {
|
|
244
|
+
"const": "story",
|
|
245
|
+
"type": "string"
|
|
246
|
+
},
|
|
247
|
+
"storyType": {
|
|
248
|
+
"const": "footnote",
|
|
249
|
+
"type": "string"
|
|
250
|
+
},
|
|
251
|
+
"noteId": {
|
|
252
|
+
"type": "string"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"required": [
|
|
256
|
+
"kind",
|
|
257
|
+
"storyType",
|
|
258
|
+
"noteId"
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"type": "object",
|
|
263
|
+
"properties": {
|
|
264
|
+
"kind": {
|
|
265
|
+
"const": "story",
|
|
266
|
+
"type": "string"
|
|
267
|
+
},
|
|
268
|
+
"storyType": {
|
|
269
|
+
"const": "endnote",
|
|
270
|
+
"type": "string"
|
|
271
|
+
},
|
|
272
|
+
"noteId": {
|
|
273
|
+
"type": "string"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"required": [
|
|
277
|
+
"kind",
|
|
278
|
+
"storyType",
|
|
279
|
+
"noteId"
|
|
280
|
+
]
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"type": "object",
|
|
284
|
+
"properties": {
|
|
285
|
+
"kind": {
|
|
286
|
+
"const": "story",
|
|
287
|
+
"type": "string"
|
|
288
|
+
},
|
|
289
|
+
"storyType": {
|
|
290
|
+
"const": "textbox",
|
|
291
|
+
"type": "string"
|
|
292
|
+
},
|
|
293
|
+
"textboxId": {
|
|
294
|
+
"type": "string"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"required": [
|
|
298
|
+
"kind",
|
|
299
|
+
"storyType",
|
|
300
|
+
"textboxId"
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
],
|
|
304
|
+
"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."
|
|
133
305
|
}
|
|
134
306
|
},
|
|
135
307
|
"required": [
|
|
@@ -164,6 +336,174 @@
|
|
|
164
336
|
},
|
|
165
337
|
"nodeId": {
|
|
166
338
|
"type": "string"
|
|
339
|
+
},
|
|
340
|
+
"story": {
|
|
341
|
+
"oneOf": [
|
|
342
|
+
{
|
|
343
|
+
"type": "object",
|
|
344
|
+
"properties": {
|
|
345
|
+
"kind": {
|
|
346
|
+
"const": "story",
|
|
347
|
+
"type": "string"
|
|
348
|
+
},
|
|
349
|
+
"storyType": {
|
|
350
|
+
"const": "body",
|
|
351
|
+
"type": "string"
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
"required": [
|
|
355
|
+
"kind",
|
|
356
|
+
"storyType"
|
|
357
|
+
]
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"type": "object",
|
|
361
|
+
"properties": {
|
|
362
|
+
"kind": {
|
|
363
|
+
"const": "story",
|
|
364
|
+
"type": "string"
|
|
365
|
+
},
|
|
366
|
+
"storyType": {
|
|
367
|
+
"const": "headerFooterSlot",
|
|
368
|
+
"type": "string"
|
|
369
|
+
},
|
|
370
|
+
"section": {
|
|
371
|
+
"type": "object",
|
|
372
|
+
"properties": {
|
|
373
|
+
"kind": {
|
|
374
|
+
"const": "section",
|
|
375
|
+
"type": "string"
|
|
376
|
+
},
|
|
377
|
+
"sectionId": {
|
|
378
|
+
"type": "string"
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
"required": [
|
|
382
|
+
"kind",
|
|
383
|
+
"sectionId"
|
|
384
|
+
]
|
|
385
|
+
},
|
|
386
|
+
"headerFooterKind": {
|
|
387
|
+
"enum": [
|
|
388
|
+
"header",
|
|
389
|
+
"footer"
|
|
390
|
+
]
|
|
391
|
+
},
|
|
392
|
+
"variant": {
|
|
393
|
+
"enum": [
|
|
394
|
+
"default",
|
|
395
|
+
"first",
|
|
396
|
+
"even"
|
|
397
|
+
]
|
|
398
|
+
},
|
|
399
|
+
"resolution": {
|
|
400
|
+
"enum": [
|
|
401
|
+
"effective",
|
|
402
|
+
"explicit"
|
|
403
|
+
]
|
|
404
|
+
},
|
|
405
|
+
"onWrite": {
|
|
406
|
+
"enum": [
|
|
407
|
+
"materializeIfInherited",
|
|
408
|
+
"editResolvedPart",
|
|
409
|
+
"error"
|
|
410
|
+
]
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
"required": [
|
|
414
|
+
"kind",
|
|
415
|
+
"storyType",
|
|
416
|
+
"section",
|
|
417
|
+
"headerFooterKind",
|
|
418
|
+
"variant"
|
|
419
|
+
]
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"type": "object",
|
|
423
|
+
"properties": {
|
|
424
|
+
"kind": {
|
|
425
|
+
"const": "story",
|
|
426
|
+
"type": "string"
|
|
427
|
+
},
|
|
428
|
+
"storyType": {
|
|
429
|
+
"const": "headerFooterPart",
|
|
430
|
+
"type": "string"
|
|
431
|
+
},
|
|
432
|
+
"refId": {
|
|
433
|
+
"type": "string"
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
"required": [
|
|
437
|
+
"kind",
|
|
438
|
+
"storyType",
|
|
439
|
+
"refId"
|
|
440
|
+
]
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"type": "object",
|
|
444
|
+
"properties": {
|
|
445
|
+
"kind": {
|
|
446
|
+
"const": "story",
|
|
447
|
+
"type": "string"
|
|
448
|
+
},
|
|
449
|
+
"storyType": {
|
|
450
|
+
"const": "footnote",
|
|
451
|
+
"type": "string"
|
|
452
|
+
},
|
|
453
|
+
"noteId": {
|
|
454
|
+
"type": "string"
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
"required": [
|
|
458
|
+
"kind",
|
|
459
|
+
"storyType",
|
|
460
|
+
"noteId"
|
|
461
|
+
]
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"type": "object",
|
|
465
|
+
"properties": {
|
|
466
|
+
"kind": {
|
|
467
|
+
"const": "story",
|
|
468
|
+
"type": "string"
|
|
469
|
+
},
|
|
470
|
+
"storyType": {
|
|
471
|
+
"const": "endnote",
|
|
472
|
+
"type": "string"
|
|
473
|
+
},
|
|
474
|
+
"noteId": {
|
|
475
|
+
"type": "string"
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
"required": [
|
|
479
|
+
"kind",
|
|
480
|
+
"storyType",
|
|
481
|
+
"noteId"
|
|
482
|
+
]
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"type": "object",
|
|
486
|
+
"properties": {
|
|
487
|
+
"kind": {
|
|
488
|
+
"const": "story",
|
|
489
|
+
"type": "string"
|
|
490
|
+
},
|
|
491
|
+
"storyType": {
|
|
492
|
+
"const": "textbox",
|
|
493
|
+
"type": "string"
|
|
494
|
+
},
|
|
495
|
+
"textboxId": {
|
|
496
|
+
"type": "string"
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
"required": [
|
|
500
|
+
"kind",
|
|
501
|
+
"storyType",
|
|
502
|
+
"textboxId"
|
|
503
|
+
]
|
|
504
|
+
}
|
|
505
|
+
],
|
|
506
|
+
"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."
|
|
167
507
|
}
|
|
168
508
|
},
|
|
169
509
|
"required": [
|
|
@@ -202,6 +542,174 @@
|
|
|
202
542
|
},
|
|
203
543
|
"offset": {
|
|
204
544
|
"type": "number"
|
|
545
|
+
},
|
|
546
|
+
"story": {
|
|
547
|
+
"oneOf": [
|
|
548
|
+
{
|
|
549
|
+
"type": "object",
|
|
550
|
+
"properties": {
|
|
551
|
+
"kind": {
|
|
552
|
+
"const": "story",
|
|
553
|
+
"type": "string"
|
|
554
|
+
},
|
|
555
|
+
"storyType": {
|
|
556
|
+
"const": "body",
|
|
557
|
+
"type": "string"
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
"required": [
|
|
561
|
+
"kind",
|
|
562
|
+
"storyType"
|
|
563
|
+
]
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"type": "object",
|
|
567
|
+
"properties": {
|
|
568
|
+
"kind": {
|
|
569
|
+
"const": "story",
|
|
570
|
+
"type": "string"
|
|
571
|
+
},
|
|
572
|
+
"storyType": {
|
|
573
|
+
"const": "headerFooterSlot",
|
|
574
|
+
"type": "string"
|
|
575
|
+
},
|
|
576
|
+
"section": {
|
|
577
|
+
"type": "object",
|
|
578
|
+
"properties": {
|
|
579
|
+
"kind": {
|
|
580
|
+
"const": "section",
|
|
581
|
+
"type": "string"
|
|
582
|
+
},
|
|
583
|
+
"sectionId": {
|
|
584
|
+
"type": "string"
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
"required": [
|
|
588
|
+
"kind",
|
|
589
|
+
"sectionId"
|
|
590
|
+
]
|
|
591
|
+
},
|
|
592
|
+
"headerFooterKind": {
|
|
593
|
+
"enum": [
|
|
594
|
+
"header",
|
|
595
|
+
"footer"
|
|
596
|
+
]
|
|
597
|
+
},
|
|
598
|
+
"variant": {
|
|
599
|
+
"enum": [
|
|
600
|
+
"default",
|
|
601
|
+
"first",
|
|
602
|
+
"even"
|
|
603
|
+
]
|
|
604
|
+
},
|
|
605
|
+
"resolution": {
|
|
606
|
+
"enum": [
|
|
607
|
+
"effective",
|
|
608
|
+
"explicit"
|
|
609
|
+
]
|
|
610
|
+
},
|
|
611
|
+
"onWrite": {
|
|
612
|
+
"enum": [
|
|
613
|
+
"materializeIfInherited",
|
|
614
|
+
"editResolvedPart",
|
|
615
|
+
"error"
|
|
616
|
+
]
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
"required": [
|
|
620
|
+
"kind",
|
|
621
|
+
"storyType",
|
|
622
|
+
"section",
|
|
623
|
+
"headerFooterKind",
|
|
624
|
+
"variant"
|
|
625
|
+
]
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"type": "object",
|
|
629
|
+
"properties": {
|
|
630
|
+
"kind": {
|
|
631
|
+
"const": "story",
|
|
632
|
+
"type": "string"
|
|
633
|
+
},
|
|
634
|
+
"storyType": {
|
|
635
|
+
"const": "headerFooterPart",
|
|
636
|
+
"type": "string"
|
|
637
|
+
},
|
|
638
|
+
"refId": {
|
|
639
|
+
"type": "string"
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
"required": [
|
|
643
|
+
"kind",
|
|
644
|
+
"storyType",
|
|
645
|
+
"refId"
|
|
646
|
+
]
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"type": "object",
|
|
650
|
+
"properties": {
|
|
651
|
+
"kind": {
|
|
652
|
+
"const": "story",
|
|
653
|
+
"type": "string"
|
|
654
|
+
},
|
|
655
|
+
"storyType": {
|
|
656
|
+
"const": "footnote",
|
|
657
|
+
"type": "string"
|
|
658
|
+
},
|
|
659
|
+
"noteId": {
|
|
660
|
+
"type": "string"
|
|
661
|
+
}
|
|
662
|
+
},
|
|
663
|
+
"required": [
|
|
664
|
+
"kind",
|
|
665
|
+
"storyType",
|
|
666
|
+
"noteId"
|
|
667
|
+
]
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"type": "object",
|
|
671
|
+
"properties": {
|
|
672
|
+
"kind": {
|
|
673
|
+
"const": "story",
|
|
674
|
+
"type": "string"
|
|
675
|
+
},
|
|
676
|
+
"storyType": {
|
|
677
|
+
"const": "endnote",
|
|
678
|
+
"type": "string"
|
|
679
|
+
},
|
|
680
|
+
"noteId": {
|
|
681
|
+
"type": "string"
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
"required": [
|
|
685
|
+
"kind",
|
|
686
|
+
"storyType",
|
|
687
|
+
"noteId"
|
|
688
|
+
]
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"type": "object",
|
|
692
|
+
"properties": {
|
|
693
|
+
"kind": {
|
|
694
|
+
"const": "story",
|
|
695
|
+
"type": "string"
|
|
696
|
+
},
|
|
697
|
+
"storyType": {
|
|
698
|
+
"const": "textbox",
|
|
699
|
+
"type": "string"
|
|
700
|
+
},
|
|
701
|
+
"textboxId": {
|
|
702
|
+
"type": "string"
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
"required": [
|
|
706
|
+
"kind",
|
|
707
|
+
"storyType",
|
|
708
|
+
"textboxId"
|
|
709
|
+
]
|
|
710
|
+
}
|
|
711
|
+
],
|
|
712
|
+
"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."
|
|
205
713
|
}
|
|
206
714
|
},
|
|
207
715
|
"required": [
|
|
@@ -236,6 +744,174 @@
|
|
|
236
744
|
},
|
|
237
745
|
"nodeId": {
|
|
238
746
|
"type": "string"
|
|
747
|
+
},
|
|
748
|
+
"story": {
|
|
749
|
+
"oneOf": [
|
|
750
|
+
{
|
|
751
|
+
"type": "object",
|
|
752
|
+
"properties": {
|
|
753
|
+
"kind": {
|
|
754
|
+
"const": "story",
|
|
755
|
+
"type": "string"
|
|
756
|
+
},
|
|
757
|
+
"storyType": {
|
|
758
|
+
"const": "body",
|
|
759
|
+
"type": "string"
|
|
760
|
+
}
|
|
761
|
+
},
|
|
762
|
+
"required": [
|
|
763
|
+
"kind",
|
|
764
|
+
"storyType"
|
|
765
|
+
]
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"type": "object",
|
|
769
|
+
"properties": {
|
|
770
|
+
"kind": {
|
|
771
|
+
"const": "story",
|
|
772
|
+
"type": "string"
|
|
773
|
+
},
|
|
774
|
+
"storyType": {
|
|
775
|
+
"const": "headerFooterSlot",
|
|
776
|
+
"type": "string"
|
|
777
|
+
},
|
|
778
|
+
"section": {
|
|
779
|
+
"type": "object",
|
|
780
|
+
"properties": {
|
|
781
|
+
"kind": {
|
|
782
|
+
"const": "section",
|
|
783
|
+
"type": "string"
|
|
784
|
+
},
|
|
785
|
+
"sectionId": {
|
|
786
|
+
"type": "string"
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
"required": [
|
|
790
|
+
"kind",
|
|
791
|
+
"sectionId"
|
|
792
|
+
]
|
|
793
|
+
},
|
|
794
|
+
"headerFooterKind": {
|
|
795
|
+
"enum": [
|
|
796
|
+
"header",
|
|
797
|
+
"footer"
|
|
798
|
+
]
|
|
799
|
+
},
|
|
800
|
+
"variant": {
|
|
801
|
+
"enum": [
|
|
802
|
+
"default",
|
|
803
|
+
"first",
|
|
804
|
+
"even"
|
|
805
|
+
]
|
|
806
|
+
},
|
|
807
|
+
"resolution": {
|
|
808
|
+
"enum": [
|
|
809
|
+
"effective",
|
|
810
|
+
"explicit"
|
|
811
|
+
]
|
|
812
|
+
},
|
|
813
|
+
"onWrite": {
|
|
814
|
+
"enum": [
|
|
815
|
+
"materializeIfInherited",
|
|
816
|
+
"editResolvedPart",
|
|
817
|
+
"error"
|
|
818
|
+
]
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
"required": [
|
|
822
|
+
"kind",
|
|
823
|
+
"storyType",
|
|
824
|
+
"section",
|
|
825
|
+
"headerFooterKind",
|
|
826
|
+
"variant"
|
|
827
|
+
]
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
"type": "object",
|
|
831
|
+
"properties": {
|
|
832
|
+
"kind": {
|
|
833
|
+
"const": "story",
|
|
834
|
+
"type": "string"
|
|
835
|
+
},
|
|
836
|
+
"storyType": {
|
|
837
|
+
"const": "headerFooterPart",
|
|
838
|
+
"type": "string"
|
|
839
|
+
},
|
|
840
|
+
"refId": {
|
|
841
|
+
"type": "string"
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
"required": [
|
|
845
|
+
"kind",
|
|
846
|
+
"storyType",
|
|
847
|
+
"refId"
|
|
848
|
+
]
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
"type": "object",
|
|
852
|
+
"properties": {
|
|
853
|
+
"kind": {
|
|
854
|
+
"const": "story",
|
|
855
|
+
"type": "string"
|
|
856
|
+
},
|
|
857
|
+
"storyType": {
|
|
858
|
+
"const": "footnote",
|
|
859
|
+
"type": "string"
|
|
860
|
+
},
|
|
861
|
+
"noteId": {
|
|
862
|
+
"type": "string"
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
"required": [
|
|
866
|
+
"kind",
|
|
867
|
+
"storyType",
|
|
868
|
+
"noteId"
|
|
869
|
+
]
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
"type": "object",
|
|
873
|
+
"properties": {
|
|
874
|
+
"kind": {
|
|
875
|
+
"const": "story",
|
|
876
|
+
"type": "string"
|
|
877
|
+
},
|
|
878
|
+
"storyType": {
|
|
879
|
+
"const": "endnote",
|
|
880
|
+
"type": "string"
|
|
881
|
+
},
|
|
882
|
+
"noteId": {
|
|
883
|
+
"type": "string"
|
|
884
|
+
}
|
|
885
|
+
},
|
|
886
|
+
"required": [
|
|
887
|
+
"kind",
|
|
888
|
+
"storyType",
|
|
889
|
+
"noteId"
|
|
890
|
+
]
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"type": "object",
|
|
894
|
+
"properties": {
|
|
895
|
+
"kind": {
|
|
896
|
+
"const": "story",
|
|
897
|
+
"type": "string"
|
|
898
|
+
},
|
|
899
|
+
"storyType": {
|
|
900
|
+
"const": "textbox",
|
|
901
|
+
"type": "string"
|
|
902
|
+
},
|
|
903
|
+
"textboxId": {
|
|
904
|
+
"type": "string"
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
"required": [
|
|
908
|
+
"kind",
|
|
909
|
+
"storyType",
|
|
910
|
+
"textboxId"
|
|
911
|
+
]
|
|
912
|
+
}
|
|
913
|
+
],
|
|
914
|
+
"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."
|
|
239
915
|
}
|
|
240
916
|
},
|
|
241
917
|
"required": [
|
|
@@ -259,65 +935,977 @@
|
|
|
259
935
|
}
|
|
260
936
|
],
|
|
261
937
|
"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."
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
"required": [
|
|
265
|
-
"kind",
|
|
266
|
-
"start",
|
|
267
|
-
"end"
|
|
268
|
-
]
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
"type": "object",
|
|
272
|
-
"properties": {
|
|
273
|
-
"kind": {
|
|
274
|
-
"const": "block",
|
|
275
|
-
"type": "string"
|
|
276
|
-
},
|
|
277
|
-
"nodeType": {
|
|
278
|
-
"enum": [
|
|
279
|
-
"paragraph",
|
|
280
|
-
"heading",
|
|
281
|
-
"listItem",
|
|
282
|
-
"table",
|
|
283
|
-
"tableRow",
|
|
284
|
-
"tableCell",
|
|
285
|
-
"tableOfContents",
|
|
286
|
-
"image",
|
|
287
|
-
"sdt"
|
|
288
|
-
]
|
|
289
|
-
},
|
|
290
|
-
"nodeId": {
|
|
291
|
-
"type": "string"
|
|
292
|
-
}
|
|
293
|
-
},
|
|
294
|
-
"required": [
|
|
295
|
-
"kind",
|
|
296
|
-
"nodeType",
|
|
297
|
-
"nodeId"
|
|
298
|
-
]
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
"type": "object",
|
|
302
|
-
"properties": {
|
|
303
|
-
"kind": {
|
|
304
|
-
"const": "selection",
|
|
305
|
-
"type": "string"
|
|
306
938
|
},
|
|
307
|
-
"
|
|
939
|
+
"story": {
|
|
308
940
|
"oneOf": [
|
|
309
941
|
{
|
|
310
942
|
"type": "object",
|
|
311
943
|
"properties": {
|
|
312
944
|
"kind": {
|
|
313
|
-
"const": "
|
|
945
|
+
"const": "story",
|
|
314
946
|
"type": "string"
|
|
315
947
|
},
|
|
316
|
-
"
|
|
948
|
+
"storyType": {
|
|
949
|
+
"const": "body",
|
|
950
|
+
"type": "string"
|
|
951
|
+
}
|
|
952
|
+
},
|
|
953
|
+
"required": [
|
|
954
|
+
"kind",
|
|
955
|
+
"storyType"
|
|
956
|
+
]
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"type": "object",
|
|
960
|
+
"properties": {
|
|
961
|
+
"kind": {
|
|
962
|
+
"const": "story",
|
|
963
|
+
"type": "string"
|
|
964
|
+
},
|
|
965
|
+
"storyType": {
|
|
966
|
+
"const": "headerFooterSlot",
|
|
967
|
+
"type": "string"
|
|
968
|
+
},
|
|
969
|
+
"section": {
|
|
970
|
+
"type": "object",
|
|
971
|
+
"properties": {
|
|
972
|
+
"kind": {
|
|
973
|
+
"const": "section",
|
|
974
|
+
"type": "string"
|
|
975
|
+
},
|
|
976
|
+
"sectionId": {
|
|
977
|
+
"type": "string"
|
|
978
|
+
}
|
|
979
|
+
},
|
|
980
|
+
"required": [
|
|
981
|
+
"kind",
|
|
982
|
+
"sectionId"
|
|
983
|
+
]
|
|
984
|
+
},
|
|
985
|
+
"headerFooterKind": {
|
|
986
|
+
"enum": [
|
|
987
|
+
"header",
|
|
988
|
+
"footer"
|
|
989
|
+
]
|
|
990
|
+
},
|
|
991
|
+
"variant": {
|
|
992
|
+
"enum": [
|
|
993
|
+
"default",
|
|
994
|
+
"first",
|
|
995
|
+
"even"
|
|
996
|
+
]
|
|
997
|
+
},
|
|
998
|
+
"resolution": {
|
|
999
|
+
"enum": [
|
|
1000
|
+
"effective",
|
|
1001
|
+
"explicit"
|
|
1002
|
+
]
|
|
1003
|
+
},
|
|
1004
|
+
"onWrite": {
|
|
1005
|
+
"enum": [
|
|
1006
|
+
"materializeIfInherited",
|
|
1007
|
+
"editResolvedPart",
|
|
1008
|
+
"error"
|
|
1009
|
+
]
|
|
1010
|
+
}
|
|
1011
|
+
},
|
|
1012
|
+
"required": [
|
|
1013
|
+
"kind",
|
|
1014
|
+
"storyType",
|
|
1015
|
+
"section",
|
|
1016
|
+
"headerFooterKind",
|
|
1017
|
+
"variant"
|
|
1018
|
+
]
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"type": "object",
|
|
1022
|
+
"properties": {
|
|
1023
|
+
"kind": {
|
|
1024
|
+
"const": "story",
|
|
1025
|
+
"type": "string"
|
|
1026
|
+
},
|
|
1027
|
+
"storyType": {
|
|
1028
|
+
"const": "headerFooterPart",
|
|
1029
|
+
"type": "string"
|
|
1030
|
+
},
|
|
1031
|
+
"refId": {
|
|
1032
|
+
"type": "string"
|
|
1033
|
+
}
|
|
1034
|
+
},
|
|
1035
|
+
"required": [
|
|
1036
|
+
"kind",
|
|
1037
|
+
"storyType",
|
|
1038
|
+
"refId"
|
|
1039
|
+
]
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
"type": "object",
|
|
1043
|
+
"properties": {
|
|
1044
|
+
"kind": {
|
|
1045
|
+
"const": "story",
|
|
1046
|
+
"type": "string"
|
|
1047
|
+
},
|
|
1048
|
+
"storyType": {
|
|
1049
|
+
"const": "footnote",
|
|
1050
|
+
"type": "string"
|
|
1051
|
+
},
|
|
1052
|
+
"noteId": {
|
|
1053
|
+
"type": "string"
|
|
1054
|
+
}
|
|
1055
|
+
},
|
|
1056
|
+
"required": [
|
|
1057
|
+
"kind",
|
|
1058
|
+
"storyType",
|
|
1059
|
+
"noteId"
|
|
1060
|
+
]
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
"type": "object",
|
|
1064
|
+
"properties": {
|
|
1065
|
+
"kind": {
|
|
1066
|
+
"const": "story",
|
|
1067
|
+
"type": "string"
|
|
1068
|
+
},
|
|
1069
|
+
"storyType": {
|
|
1070
|
+
"const": "endnote",
|
|
1071
|
+
"type": "string"
|
|
1072
|
+
},
|
|
1073
|
+
"noteId": {
|
|
1074
|
+
"type": "string"
|
|
1075
|
+
}
|
|
1076
|
+
},
|
|
1077
|
+
"required": [
|
|
1078
|
+
"kind",
|
|
1079
|
+
"storyType",
|
|
1080
|
+
"noteId"
|
|
1081
|
+
]
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
"type": "object",
|
|
1085
|
+
"properties": {
|
|
1086
|
+
"kind": {
|
|
1087
|
+
"const": "story",
|
|
1088
|
+
"type": "string"
|
|
1089
|
+
},
|
|
1090
|
+
"storyType": {
|
|
1091
|
+
"const": "textbox",
|
|
1092
|
+
"type": "string"
|
|
1093
|
+
},
|
|
1094
|
+
"textboxId": {
|
|
1095
|
+
"type": "string"
|
|
1096
|
+
}
|
|
1097
|
+
},
|
|
1098
|
+
"required": [
|
|
1099
|
+
"kind",
|
|
1100
|
+
"storyType",
|
|
1101
|
+
"textboxId"
|
|
1102
|
+
]
|
|
1103
|
+
}
|
|
1104
|
+
],
|
|
1105
|
+
"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."
|
|
1106
|
+
}
|
|
1107
|
+
},
|
|
1108
|
+
"required": [
|
|
1109
|
+
"kind",
|
|
1110
|
+
"start",
|
|
1111
|
+
"end"
|
|
1112
|
+
]
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
"type": "object",
|
|
1116
|
+
"properties": {
|
|
1117
|
+
"kind": {
|
|
1118
|
+
"const": "block",
|
|
1119
|
+
"type": "string"
|
|
1120
|
+
},
|
|
1121
|
+
"nodeType": {
|
|
1122
|
+
"enum": [
|
|
1123
|
+
"paragraph",
|
|
1124
|
+
"heading",
|
|
1125
|
+
"listItem",
|
|
1126
|
+
"table",
|
|
1127
|
+
"tableRow",
|
|
1128
|
+
"tableCell",
|
|
1129
|
+
"tableOfContents",
|
|
1130
|
+
"image",
|
|
1131
|
+
"sdt"
|
|
1132
|
+
]
|
|
1133
|
+
},
|
|
1134
|
+
"nodeId": {
|
|
1135
|
+
"type": "string"
|
|
1136
|
+
},
|
|
1137
|
+
"story": {
|
|
1138
|
+
"oneOf": [
|
|
1139
|
+
{
|
|
1140
|
+
"type": "object",
|
|
1141
|
+
"properties": {
|
|
1142
|
+
"kind": {
|
|
1143
|
+
"const": "story",
|
|
1144
|
+
"type": "string"
|
|
1145
|
+
},
|
|
1146
|
+
"storyType": {
|
|
1147
|
+
"const": "body",
|
|
1148
|
+
"type": "string"
|
|
1149
|
+
}
|
|
1150
|
+
},
|
|
1151
|
+
"required": [
|
|
1152
|
+
"kind",
|
|
1153
|
+
"storyType"
|
|
1154
|
+
]
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
"type": "object",
|
|
1158
|
+
"properties": {
|
|
1159
|
+
"kind": {
|
|
1160
|
+
"const": "story",
|
|
1161
|
+
"type": "string"
|
|
1162
|
+
},
|
|
1163
|
+
"storyType": {
|
|
1164
|
+
"const": "headerFooterSlot",
|
|
1165
|
+
"type": "string"
|
|
1166
|
+
},
|
|
1167
|
+
"section": {
|
|
1168
|
+
"type": "object",
|
|
1169
|
+
"properties": {
|
|
1170
|
+
"kind": {
|
|
1171
|
+
"const": "section",
|
|
1172
|
+
"type": "string"
|
|
1173
|
+
},
|
|
1174
|
+
"sectionId": {
|
|
1175
|
+
"type": "string"
|
|
1176
|
+
}
|
|
1177
|
+
},
|
|
1178
|
+
"required": [
|
|
1179
|
+
"kind",
|
|
1180
|
+
"sectionId"
|
|
1181
|
+
]
|
|
1182
|
+
},
|
|
1183
|
+
"headerFooterKind": {
|
|
1184
|
+
"enum": [
|
|
1185
|
+
"header",
|
|
1186
|
+
"footer"
|
|
1187
|
+
]
|
|
1188
|
+
},
|
|
1189
|
+
"variant": {
|
|
1190
|
+
"enum": [
|
|
1191
|
+
"default",
|
|
1192
|
+
"first",
|
|
1193
|
+
"even"
|
|
1194
|
+
]
|
|
1195
|
+
},
|
|
1196
|
+
"resolution": {
|
|
1197
|
+
"enum": [
|
|
1198
|
+
"effective",
|
|
1199
|
+
"explicit"
|
|
1200
|
+
]
|
|
1201
|
+
},
|
|
1202
|
+
"onWrite": {
|
|
1203
|
+
"enum": [
|
|
1204
|
+
"materializeIfInherited",
|
|
1205
|
+
"editResolvedPart",
|
|
1206
|
+
"error"
|
|
1207
|
+
]
|
|
1208
|
+
}
|
|
1209
|
+
},
|
|
1210
|
+
"required": [
|
|
1211
|
+
"kind",
|
|
1212
|
+
"storyType",
|
|
1213
|
+
"section",
|
|
1214
|
+
"headerFooterKind",
|
|
1215
|
+
"variant"
|
|
1216
|
+
]
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
"type": "object",
|
|
1220
|
+
"properties": {
|
|
1221
|
+
"kind": {
|
|
1222
|
+
"const": "story",
|
|
1223
|
+
"type": "string"
|
|
1224
|
+
},
|
|
1225
|
+
"storyType": {
|
|
1226
|
+
"const": "headerFooterPart",
|
|
1227
|
+
"type": "string"
|
|
1228
|
+
},
|
|
1229
|
+
"refId": {
|
|
1230
|
+
"type": "string"
|
|
1231
|
+
}
|
|
1232
|
+
},
|
|
1233
|
+
"required": [
|
|
1234
|
+
"kind",
|
|
1235
|
+
"storyType",
|
|
1236
|
+
"refId"
|
|
1237
|
+
]
|
|
1238
|
+
},
|
|
1239
|
+
{
|
|
1240
|
+
"type": "object",
|
|
1241
|
+
"properties": {
|
|
1242
|
+
"kind": {
|
|
1243
|
+
"const": "story",
|
|
1244
|
+
"type": "string"
|
|
1245
|
+
},
|
|
1246
|
+
"storyType": {
|
|
1247
|
+
"const": "footnote",
|
|
1248
|
+
"type": "string"
|
|
1249
|
+
},
|
|
1250
|
+
"noteId": {
|
|
1251
|
+
"type": "string"
|
|
1252
|
+
}
|
|
1253
|
+
},
|
|
1254
|
+
"required": [
|
|
1255
|
+
"kind",
|
|
1256
|
+
"storyType",
|
|
1257
|
+
"noteId"
|
|
1258
|
+
]
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"type": "object",
|
|
1262
|
+
"properties": {
|
|
1263
|
+
"kind": {
|
|
1264
|
+
"const": "story",
|
|
1265
|
+
"type": "string"
|
|
1266
|
+
},
|
|
1267
|
+
"storyType": {
|
|
1268
|
+
"const": "endnote",
|
|
1269
|
+
"type": "string"
|
|
1270
|
+
},
|
|
1271
|
+
"noteId": {
|
|
1272
|
+
"type": "string"
|
|
1273
|
+
}
|
|
1274
|
+
},
|
|
1275
|
+
"required": [
|
|
1276
|
+
"kind",
|
|
1277
|
+
"storyType",
|
|
1278
|
+
"noteId"
|
|
1279
|
+
]
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
"type": "object",
|
|
1283
|
+
"properties": {
|
|
1284
|
+
"kind": {
|
|
1285
|
+
"const": "story",
|
|
1286
|
+
"type": "string"
|
|
1287
|
+
},
|
|
1288
|
+
"storyType": {
|
|
1289
|
+
"const": "textbox",
|
|
1290
|
+
"type": "string"
|
|
1291
|
+
},
|
|
1292
|
+
"textboxId": {
|
|
1293
|
+
"type": "string"
|
|
1294
|
+
}
|
|
1295
|
+
},
|
|
1296
|
+
"required": [
|
|
1297
|
+
"kind",
|
|
1298
|
+
"storyType",
|
|
1299
|
+
"textboxId"
|
|
1300
|
+
]
|
|
1301
|
+
}
|
|
1302
|
+
],
|
|
1303
|
+
"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."
|
|
1304
|
+
}
|
|
1305
|
+
},
|
|
1306
|
+
"required": [
|
|
1307
|
+
"kind",
|
|
1308
|
+
"nodeType",
|
|
1309
|
+
"nodeId"
|
|
1310
|
+
]
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
"type": "object",
|
|
1314
|
+
"properties": {
|
|
1315
|
+
"kind": {
|
|
1316
|
+
"const": "selection",
|
|
1317
|
+
"type": "string"
|
|
1318
|
+
},
|
|
1319
|
+
"start": {
|
|
1320
|
+
"oneOf": [
|
|
1321
|
+
{
|
|
1322
|
+
"type": "object",
|
|
1323
|
+
"properties": {
|
|
1324
|
+
"kind": {
|
|
1325
|
+
"const": "text",
|
|
1326
|
+
"type": "string"
|
|
1327
|
+
},
|
|
1328
|
+
"blockId": {
|
|
1329
|
+
"type": "string"
|
|
1330
|
+
},
|
|
1331
|
+
"offset": {
|
|
1332
|
+
"type": "number"
|
|
1333
|
+
},
|
|
1334
|
+
"story": {
|
|
1335
|
+
"oneOf": [
|
|
1336
|
+
{
|
|
1337
|
+
"type": "object",
|
|
1338
|
+
"properties": {
|
|
1339
|
+
"kind": {
|
|
1340
|
+
"const": "story",
|
|
1341
|
+
"type": "string"
|
|
1342
|
+
},
|
|
1343
|
+
"storyType": {
|
|
1344
|
+
"const": "body",
|
|
1345
|
+
"type": "string"
|
|
1346
|
+
}
|
|
1347
|
+
},
|
|
1348
|
+
"required": [
|
|
1349
|
+
"kind",
|
|
1350
|
+
"storyType"
|
|
1351
|
+
]
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
"type": "object",
|
|
1355
|
+
"properties": {
|
|
1356
|
+
"kind": {
|
|
1357
|
+
"const": "story",
|
|
1358
|
+
"type": "string"
|
|
1359
|
+
},
|
|
1360
|
+
"storyType": {
|
|
1361
|
+
"const": "headerFooterSlot",
|
|
1362
|
+
"type": "string"
|
|
1363
|
+
},
|
|
1364
|
+
"section": {
|
|
1365
|
+
"type": "object",
|
|
1366
|
+
"properties": {
|
|
1367
|
+
"kind": {
|
|
1368
|
+
"const": "section",
|
|
1369
|
+
"type": "string"
|
|
1370
|
+
},
|
|
1371
|
+
"sectionId": {
|
|
1372
|
+
"type": "string"
|
|
1373
|
+
}
|
|
1374
|
+
},
|
|
1375
|
+
"required": [
|
|
1376
|
+
"kind",
|
|
1377
|
+
"sectionId"
|
|
1378
|
+
]
|
|
1379
|
+
},
|
|
1380
|
+
"headerFooterKind": {
|
|
1381
|
+
"enum": [
|
|
1382
|
+
"header",
|
|
1383
|
+
"footer"
|
|
1384
|
+
]
|
|
1385
|
+
},
|
|
1386
|
+
"variant": {
|
|
1387
|
+
"enum": [
|
|
1388
|
+
"default",
|
|
1389
|
+
"first",
|
|
1390
|
+
"even"
|
|
1391
|
+
]
|
|
1392
|
+
},
|
|
1393
|
+
"resolution": {
|
|
1394
|
+
"enum": [
|
|
1395
|
+
"effective",
|
|
1396
|
+
"explicit"
|
|
1397
|
+
]
|
|
1398
|
+
},
|
|
1399
|
+
"onWrite": {
|
|
1400
|
+
"enum": [
|
|
1401
|
+
"materializeIfInherited",
|
|
1402
|
+
"editResolvedPart",
|
|
1403
|
+
"error"
|
|
1404
|
+
]
|
|
1405
|
+
}
|
|
1406
|
+
},
|
|
1407
|
+
"required": [
|
|
1408
|
+
"kind",
|
|
1409
|
+
"storyType",
|
|
1410
|
+
"section",
|
|
1411
|
+
"headerFooterKind",
|
|
1412
|
+
"variant"
|
|
1413
|
+
]
|
|
1414
|
+
},
|
|
1415
|
+
{
|
|
1416
|
+
"type": "object",
|
|
1417
|
+
"properties": {
|
|
1418
|
+
"kind": {
|
|
1419
|
+
"const": "story",
|
|
1420
|
+
"type": "string"
|
|
1421
|
+
},
|
|
1422
|
+
"storyType": {
|
|
1423
|
+
"const": "headerFooterPart",
|
|
1424
|
+
"type": "string"
|
|
1425
|
+
},
|
|
1426
|
+
"refId": {
|
|
1427
|
+
"type": "string"
|
|
1428
|
+
}
|
|
1429
|
+
},
|
|
1430
|
+
"required": [
|
|
1431
|
+
"kind",
|
|
1432
|
+
"storyType",
|
|
1433
|
+
"refId"
|
|
1434
|
+
]
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
"type": "object",
|
|
1438
|
+
"properties": {
|
|
1439
|
+
"kind": {
|
|
1440
|
+
"const": "story",
|
|
1441
|
+
"type": "string"
|
|
1442
|
+
},
|
|
1443
|
+
"storyType": {
|
|
1444
|
+
"const": "footnote",
|
|
1445
|
+
"type": "string"
|
|
1446
|
+
},
|
|
1447
|
+
"noteId": {
|
|
1448
|
+
"type": "string"
|
|
1449
|
+
}
|
|
1450
|
+
},
|
|
1451
|
+
"required": [
|
|
1452
|
+
"kind",
|
|
1453
|
+
"storyType",
|
|
1454
|
+
"noteId"
|
|
1455
|
+
]
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
"type": "object",
|
|
1459
|
+
"properties": {
|
|
1460
|
+
"kind": {
|
|
1461
|
+
"const": "story",
|
|
1462
|
+
"type": "string"
|
|
1463
|
+
},
|
|
1464
|
+
"storyType": {
|
|
1465
|
+
"const": "endnote",
|
|
1466
|
+
"type": "string"
|
|
1467
|
+
},
|
|
1468
|
+
"noteId": {
|
|
1469
|
+
"type": "string"
|
|
1470
|
+
}
|
|
1471
|
+
},
|
|
1472
|
+
"required": [
|
|
1473
|
+
"kind",
|
|
1474
|
+
"storyType",
|
|
1475
|
+
"noteId"
|
|
1476
|
+
]
|
|
1477
|
+
},
|
|
1478
|
+
{
|
|
1479
|
+
"type": "object",
|
|
1480
|
+
"properties": {
|
|
1481
|
+
"kind": {
|
|
1482
|
+
"const": "story",
|
|
1483
|
+
"type": "string"
|
|
1484
|
+
},
|
|
1485
|
+
"storyType": {
|
|
1486
|
+
"const": "textbox",
|
|
1487
|
+
"type": "string"
|
|
1488
|
+
},
|
|
1489
|
+
"textboxId": {
|
|
1490
|
+
"type": "string"
|
|
1491
|
+
}
|
|
1492
|
+
},
|
|
1493
|
+
"required": [
|
|
1494
|
+
"kind",
|
|
1495
|
+
"storyType",
|
|
1496
|
+
"textboxId"
|
|
1497
|
+
]
|
|
1498
|
+
}
|
|
1499
|
+
],
|
|
1500
|
+
"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."
|
|
1501
|
+
}
|
|
1502
|
+
},
|
|
1503
|
+
"required": [
|
|
1504
|
+
"kind",
|
|
1505
|
+
"blockId",
|
|
1506
|
+
"offset"
|
|
1507
|
+
]
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
"type": "object",
|
|
1511
|
+
"properties": {
|
|
1512
|
+
"kind": {
|
|
1513
|
+
"const": "nodeEdge",
|
|
1514
|
+
"type": "string"
|
|
1515
|
+
},
|
|
1516
|
+
"node": {
|
|
1517
|
+
"type": "object",
|
|
1518
|
+
"properties": {
|
|
1519
|
+
"kind": {
|
|
1520
|
+
"const": "block",
|
|
1521
|
+
"type": "string"
|
|
1522
|
+
},
|
|
1523
|
+
"nodeType": {
|
|
1524
|
+
"enum": [
|
|
1525
|
+
"paragraph",
|
|
1526
|
+
"heading",
|
|
1527
|
+
"table",
|
|
1528
|
+
"tableOfContents",
|
|
1529
|
+
"sdt",
|
|
1530
|
+
"image"
|
|
1531
|
+
]
|
|
1532
|
+
},
|
|
1533
|
+
"nodeId": {
|
|
1534
|
+
"type": "string"
|
|
1535
|
+
},
|
|
1536
|
+
"story": {
|
|
1537
|
+
"oneOf": [
|
|
1538
|
+
{
|
|
1539
|
+
"type": "object",
|
|
1540
|
+
"properties": {
|
|
1541
|
+
"kind": {
|
|
1542
|
+
"const": "story",
|
|
1543
|
+
"type": "string"
|
|
1544
|
+
},
|
|
1545
|
+
"storyType": {
|
|
1546
|
+
"const": "body",
|
|
1547
|
+
"type": "string"
|
|
1548
|
+
}
|
|
1549
|
+
},
|
|
1550
|
+
"required": [
|
|
1551
|
+
"kind",
|
|
1552
|
+
"storyType"
|
|
1553
|
+
]
|
|
1554
|
+
},
|
|
1555
|
+
{
|
|
1556
|
+
"type": "object",
|
|
1557
|
+
"properties": {
|
|
1558
|
+
"kind": {
|
|
1559
|
+
"const": "story",
|
|
1560
|
+
"type": "string"
|
|
1561
|
+
},
|
|
1562
|
+
"storyType": {
|
|
1563
|
+
"const": "headerFooterSlot",
|
|
1564
|
+
"type": "string"
|
|
1565
|
+
},
|
|
1566
|
+
"section": {
|
|
1567
|
+
"type": "object",
|
|
1568
|
+
"properties": {
|
|
1569
|
+
"kind": {
|
|
1570
|
+
"const": "section",
|
|
1571
|
+
"type": "string"
|
|
1572
|
+
},
|
|
1573
|
+
"sectionId": {
|
|
1574
|
+
"type": "string"
|
|
1575
|
+
}
|
|
1576
|
+
},
|
|
1577
|
+
"required": [
|
|
1578
|
+
"kind",
|
|
1579
|
+
"sectionId"
|
|
1580
|
+
]
|
|
1581
|
+
},
|
|
1582
|
+
"headerFooterKind": {
|
|
1583
|
+
"enum": [
|
|
1584
|
+
"header",
|
|
1585
|
+
"footer"
|
|
1586
|
+
]
|
|
1587
|
+
},
|
|
1588
|
+
"variant": {
|
|
1589
|
+
"enum": [
|
|
1590
|
+
"default",
|
|
1591
|
+
"first",
|
|
1592
|
+
"even"
|
|
1593
|
+
]
|
|
1594
|
+
},
|
|
1595
|
+
"resolution": {
|
|
1596
|
+
"enum": [
|
|
1597
|
+
"effective",
|
|
1598
|
+
"explicit"
|
|
1599
|
+
]
|
|
1600
|
+
},
|
|
1601
|
+
"onWrite": {
|
|
1602
|
+
"enum": [
|
|
1603
|
+
"materializeIfInherited",
|
|
1604
|
+
"editResolvedPart",
|
|
1605
|
+
"error"
|
|
1606
|
+
]
|
|
1607
|
+
}
|
|
1608
|
+
},
|
|
1609
|
+
"required": [
|
|
1610
|
+
"kind",
|
|
1611
|
+
"storyType",
|
|
1612
|
+
"section",
|
|
1613
|
+
"headerFooterKind",
|
|
1614
|
+
"variant"
|
|
1615
|
+
]
|
|
1616
|
+
},
|
|
1617
|
+
{
|
|
1618
|
+
"type": "object",
|
|
1619
|
+
"properties": {
|
|
1620
|
+
"kind": {
|
|
1621
|
+
"const": "story",
|
|
1622
|
+
"type": "string"
|
|
1623
|
+
},
|
|
1624
|
+
"storyType": {
|
|
1625
|
+
"const": "headerFooterPart",
|
|
1626
|
+
"type": "string"
|
|
1627
|
+
},
|
|
1628
|
+
"refId": {
|
|
1629
|
+
"type": "string"
|
|
1630
|
+
}
|
|
1631
|
+
},
|
|
1632
|
+
"required": [
|
|
1633
|
+
"kind",
|
|
1634
|
+
"storyType",
|
|
1635
|
+
"refId"
|
|
1636
|
+
]
|
|
1637
|
+
},
|
|
1638
|
+
{
|
|
1639
|
+
"type": "object",
|
|
1640
|
+
"properties": {
|
|
1641
|
+
"kind": {
|
|
1642
|
+
"const": "story",
|
|
1643
|
+
"type": "string"
|
|
1644
|
+
},
|
|
1645
|
+
"storyType": {
|
|
1646
|
+
"const": "footnote",
|
|
1647
|
+
"type": "string"
|
|
1648
|
+
},
|
|
1649
|
+
"noteId": {
|
|
1650
|
+
"type": "string"
|
|
1651
|
+
}
|
|
1652
|
+
},
|
|
1653
|
+
"required": [
|
|
1654
|
+
"kind",
|
|
1655
|
+
"storyType",
|
|
1656
|
+
"noteId"
|
|
1657
|
+
]
|
|
1658
|
+
},
|
|
1659
|
+
{
|
|
1660
|
+
"type": "object",
|
|
1661
|
+
"properties": {
|
|
1662
|
+
"kind": {
|
|
1663
|
+
"const": "story",
|
|
1664
|
+
"type": "string"
|
|
1665
|
+
},
|
|
1666
|
+
"storyType": {
|
|
1667
|
+
"const": "endnote",
|
|
1668
|
+
"type": "string"
|
|
1669
|
+
},
|
|
1670
|
+
"noteId": {
|
|
1671
|
+
"type": "string"
|
|
1672
|
+
}
|
|
1673
|
+
},
|
|
1674
|
+
"required": [
|
|
1675
|
+
"kind",
|
|
1676
|
+
"storyType",
|
|
1677
|
+
"noteId"
|
|
1678
|
+
]
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
"type": "object",
|
|
1682
|
+
"properties": {
|
|
1683
|
+
"kind": {
|
|
1684
|
+
"const": "story",
|
|
1685
|
+
"type": "string"
|
|
1686
|
+
},
|
|
1687
|
+
"storyType": {
|
|
1688
|
+
"const": "textbox",
|
|
1689
|
+
"type": "string"
|
|
1690
|
+
},
|
|
1691
|
+
"textboxId": {
|
|
1692
|
+
"type": "string"
|
|
1693
|
+
}
|
|
1694
|
+
},
|
|
1695
|
+
"required": [
|
|
1696
|
+
"kind",
|
|
1697
|
+
"storyType",
|
|
1698
|
+
"textboxId"
|
|
1699
|
+
]
|
|
1700
|
+
}
|
|
1701
|
+
],
|
|
1702
|
+
"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."
|
|
1703
|
+
}
|
|
1704
|
+
},
|
|
1705
|
+
"required": [
|
|
1706
|
+
"kind",
|
|
1707
|
+
"nodeType",
|
|
1708
|
+
"nodeId"
|
|
1709
|
+
]
|
|
1710
|
+
},
|
|
1711
|
+
"edge": {
|
|
1712
|
+
"enum": [
|
|
1713
|
+
"before",
|
|
1714
|
+
"after"
|
|
1715
|
+
]
|
|
1716
|
+
}
|
|
1717
|
+
},
|
|
1718
|
+
"required": [
|
|
1719
|
+
"kind",
|
|
1720
|
+
"node",
|
|
1721
|
+
"edge"
|
|
1722
|
+
]
|
|
1723
|
+
}
|
|
1724
|
+
],
|
|
1725
|
+
"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."
|
|
1726
|
+
},
|
|
1727
|
+
"end": {
|
|
1728
|
+
"oneOf": [
|
|
1729
|
+
{
|
|
1730
|
+
"type": "object",
|
|
1731
|
+
"properties": {
|
|
1732
|
+
"kind": {
|
|
1733
|
+
"const": "text",
|
|
1734
|
+
"type": "string"
|
|
1735
|
+
},
|
|
1736
|
+
"blockId": {
|
|
317
1737
|
"type": "string"
|
|
318
1738
|
},
|
|
319
1739
|
"offset": {
|
|
320
1740
|
"type": "number"
|
|
1741
|
+
},
|
|
1742
|
+
"story": {
|
|
1743
|
+
"oneOf": [
|
|
1744
|
+
{
|
|
1745
|
+
"type": "object",
|
|
1746
|
+
"properties": {
|
|
1747
|
+
"kind": {
|
|
1748
|
+
"const": "story",
|
|
1749
|
+
"type": "string"
|
|
1750
|
+
},
|
|
1751
|
+
"storyType": {
|
|
1752
|
+
"const": "body",
|
|
1753
|
+
"type": "string"
|
|
1754
|
+
}
|
|
1755
|
+
},
|
|
1756
|
+
"required": [
|
|
1757
|
+
"kind",
|
|
1758
|
+
"storyType"
|
|
1759
|
+
]
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
"type": "object",
|
|
1763
|
+
"properties": {
|
|
1764
|
+
"kind": {
|
|
1765
|
+
"const": "story",
|
|
1766
|
+
"type": "string"
|
|
1767
|
+
},
|
|
1768
|
+
"storyType": {
|
|
1769
|
+
"const": "headerFooterSlot",
|
|
1770
|
+
"type": "string"
|
|
1771
|
+
},
|
|
1772
|
+
"section": {
|
|
1773
|
+
"type": "object",
|
|
1774
|
+
"properties": {
|
|
1775
|
+
"kind": {
|
|
1776
|
+
"const": "section",
|
|
1777
|
+
"type": "string"
|
|
1778
|
+
},
|
|
1779
|
+
"sectionId": {
|
|
1780
|
+
"type": "string"
|
|
1781
|
+
}
|
|
1782
|
+
},
|
|
1783
|
+
"required": [
|
|
1784
|
+
"kind",
|
|
1785
|
+
"sectionId"
|
|
1786
|
+
]
|
|
1787
|
+
},
|
|
1788
|
+
"headerFooterKind": {
|
|
1789
|
+
"enum": [
|
|
1790
|
+
"header",
|
|
1791
|
+
"footer"
|
|
1792
|
+
]
|
|
1793
|
+
},
|
|
1794
|
+
"variant": {
|
|
1795
|
+
"enum": [
|
|
1796
|
+
"default",
|
|
1797
|
+
"first",
|
|
1798
|
+
"even"
|
|
1799
|
+
]
|
|
1800
|
+
},
|
|
1801
|
+
"resolution": {
|
|
1802
|
+
"enum": [
|
|
1803
|
+
"effective",
|
|
1804
|
+
"explicit"
|
|
1805
|
+
]
|
|
1806
|
+
},
|
|
1807
|
+
"onWrite": {
|
|
1808
|
+
"enum": [
|
|
1809
|
+
"materializeIfInherited",
|
|
1810
|
+
"editResolvedPart",
|
|
1811
|
+
"error"
|
|
1812
|
+
]
|
|
1813
|
+
}
|
|
1814
|
+
},
|
|
1815
|
+
"required": [
|
|
1816
|
+
"kind",
|
|
1817
|
+
"storyType",
|
|
1818
|
+
"section",
|
|
1819
|
+
"headerFooterKind",
|
|
1820
|
+
"variant"
|
|
1821
|
+
]
|
|
1822
|
+
},
|
|
1823
|
+
{
|
|
1824
|
+
"type": "object",
|
|
1825
|
+
"properties": {
|
|
1826
|
+
"kind": {
|
|
1827
|
+
"const": "story",
|
|
1828
|
+
"type": "string"
|
|
1829
|
+
},
|
|
1830
|
+
"storyType": {
|
|
1831
|
+
"const": "headerFooterPart",
|
|
1832
|
+
"type": "string"
|
|
1833
|
+
},
|
|
1834
|
+
"refId": {
|
|
1835
|
+
"type": "string"
|
|
1836
|
+
}
|
|
1837
|
+
},
|
|
1838
|
+
"required": [
|
|
1839
|
+
"kind",
|
|
1840
|
+
"storyType",
|
|
1841
|
+
"refId"
|
|
1842
|
+
]
|
|
1843
|
+
},
|
|
1844
|
+
{
|
|
1845
|
+
"type": "object",
|
|
1846
|
+
"properties": {
|
|
1847
|
+
"kind": {
|
|
1848
|
+
"const": "story",
|
|
1849
|
+
"type": "string"
|
|
1850
|
+
},
|
|
1851
|
+
"storyType": {
|
|
1852
|
+
"const": "footnote",
|
|
1853
|
+
"type": "string"
|
|
1854
|
+
},
|
|
1855
|
+
"noteId": {
|
|
1856
|
+
"type": "string"
|
|
1857
|
+
}
|
|
1858
|
+
},
|
|
1859
|
+
"required": [
|
|
1860
|
+
"kind",
|
|
1861
|
+
"storyType",
|
|
1862
|
+
"noteId"
|
|
1863
|
+
]
|
|
1864
|
+
},
|
|
1865
|
+
{
|
|
1866
|
+
"type": "object",
|
|
1867
|
+
"properties": {
|
|
1868
|
+
"kind": {
|
|
1869
|
+
"const": "story",
|
|
1870
|
+
"type": "string"
|
|
1871
|
+
},
|
|
1872
|
+
"storyType": {
|
|
1873
|
+
"const": "endnote",
|
|
1874
|
+
"type": "string"
|
|
1875
|
+
},
|
|
1876
|
+
"noteId": {
|
|
1877
|
+
"type": "string"
|
|
1878
|
+
}
|
|
1879
|
+
},
|
|
1880
|
+
"required": [
|
|
1881
|
+
"kind",
|
|
1882
|
+
"storyType",
|
|
1883
|
+
"noteId"
|
|
1884
|
+
]
|
|
1885
|
+
},
|
|
1886
|
+
{
|
|
1887
|
+
"type": "object",
|
|
1888
|
+
"properties": {
|
|
1889
|
+
"kind": {
|
|
1890
|
+
"const": "story",
|
|
1891
|
+
"type": "string"
|
|
1892
|
+
},
|
|
1893
|
+
"storyType": {
|
|
1894
|
+
"const": "textbox",
|
|
1895
|
+
"type": "string"
|
|
1896
|
+
},
|
|
1897
|
+
"textboxId": {
|
|
1898
|
+
"type": "string"
|
|
1899
|
+
}
|
|
1900
|
+
},
|
|
1901
|
+
"required": [
|
|
1902
|
+
"kind",
|
|
1903
|
+
"storyType",
|
|
1904
|
+
"textboxId"
|
|
1905
|
+
]
|
|
1906
|
+
}
|
|
1907
|
+
],
|
|
1908
|
+
"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."
|
|
321
1909
|
}
|
|
322
1910
|
},
|
|
323
1911
|
"required": [
|
|
@@ -352,6 +1940,174 @@
|
|
|
352
1940
|
},
|
|
353
1941
|
"nodeId": {
|
|
354
1942
|
"type": "string"
|
|
1943
|
+
},
|
|
1944
|
+
"story": {
|
|
1945
|
+
"oneOf": [
|
|
1946
|
+
{
|
|
1947
|
+
"type": "object",
|
|
1948
|
+
"properties": {
|
|
1949
|
+
"kind": {
|
|
1950
|
+
"const": "story",
|
|
1951
|
+
"type": "string"
|
|
1952
|
+
},
|
|
1953
|
+
"storyType": {
|
|
1954
|
+
"const": "body",
|
|
1955
|
+
"type": "string"
|
|
1956
|
+
}
|
|
1957
|
+
},
|
|
1958
|
+
"required": [
|
|
1959
|
+
"kind",
|
|
1960
|
+
"storyType"
|
|
1961
|
+
]
|
|
1962
|
+
},
|
|
1963
|
+
{
|
|
1964
|
+
"type": "object",
|
|
1965
|
+
"properties": {
|
|
1966
|
+
"kind": {
|
|
1967
|
+
"const": "story",
|
|
1968
|
+
"type": "string"
|
|
1969
|
+
},
|
|
1970
|
+
"storyType": {
|
|
1971
|
+
"const": "headerFooterSlot",
|
|
1972
|
+
"type": "string"
|
|
1973
|
+
},
|
|
1974
|
+
"section": {
|
|
1975
|
+
"type": "object",
|
|
1976
|
+
"properties": {
|
|
1977
|
+
"kind": {
|
|
1978
|
+
"const": "section",
|
|
1979
|
+
"type": "string"
|
|
1980
|
+
},
|
|
1981
|
+
"sectionId": {
|
|
1982
|
+
"type": "string"
|
|
1983
|
+
}
|
|
1984
|
+
},
|
|
1985
|
+
"required": [
|
|
1986
|
+
"kind",
|
|
1987
|
+
"sectionId"
|
|
1988
|
+
]
|
|
1989
|
+
},
|
|
1990
|
+
"headerFooterKind": {
|
|
1991
|
+
"enum": [
|
|
1992
|
+
"header",
|
|
1993
|
+
"footer"
|
|
1994
|
+
]
|
|
1995
|
+
},
|
|
1996
|
+
"variant": {
|
|
1997
|
+
"enum": [
|
|
1998
|
+
"default",
|
|
1999
|
+
"first",
|
|
2000
|
+
"even"
|
|
2001
|
+
]
|
|
2002
|
+
},
|
|
2003
|
+
"resolution": {
|
|
2004
|
+
"enum": [
|
|
2005
|
+
"effective",
|
|
2006
|
+
"explicit"
|
|
2007
|
+
]
|
|
2008
|
+
},
|
|
2009
|
+
"onWrite": {
|
|
2010
|
+
"enum": [
|
|
2011
|
+
"materializeIfInherited",
|
|
2012
|
+
"editResolvedPart",
|
|
2013
|
+
"error"
|
|
2014
|
+
]
|
|
2015
|
+
}
|
|
2016
|
+
},
|
|
2017
|
+
"required": [
|
|
2018
|
+
"kind",
|
|
2019
|
+
"storyType",
|
|
2020
|
+
"section",
|
|
2021
|
+
"headerFooterKind",
|
|
2022
|
+
"variant"
|
|
2023
|
+
]
|
|
2024
|
+
},
|
|
2025
|
+
{
|
|
2026
|
+
"type": "object",
|
|
2027
|
+
"properties": {
|
|
2028
|
+
"kind": {
|
|
2029
|
+
"const": "story",
|
|
2030
|
+
"type": "string"
|
|
2031
|
+
},
|
|
2032
|
+
"storyType": {
|
|
2033
|
+
"const": "headerFooterPart",
|
|
2034
|
+
"type": "string"
|
|
2035
|
+
},
|
|
2036
|
+
"refId": {
|
|
2037
|
+
"type": "string"
|
|
2038
|
+
}
|
|
2039
|
+
},
|
|
2040
|
+
"required": [
|
|
2041
|
+
"kind",
|
|
2042
|
+
"storyType",
|
|
2043
|
+
"refId"
|
|
2044
|
+
]
|
|
2045
|
+
},
|
|
2046
|
+
{
|
|
2047
|
+
"type": "object",
|
|
2048
|
+
"properties": {
|
|
2049
|
+
"kind": {
|
|
2050
|
+
"const": "story",
|
|
2051
|
+
"type": "string"
|
|
2052
|
+
},
|
|
2053
|
+
"storyType": {
|
|
2054
|
+
"const": "footnote",
|
|
2055
|
+
"type": "string"
|
|
2056
|
+
},
|
|
2057
|
+
"noteId": {
|
|
2058
|
+
"type": "string"
|
|
2059
|
+
}
|
|
2060
|
+
},
|
|
2061
|
+
"required": [
|
|
2062
|
+
"kind",
|
|
2063
|
+
"storyType",
|
|
2064
|
+
"noteId"
|
|
2065
|
+
]
|
|
2066
|
+
},
|
|
2067
|
+
{
|
|
2068
|
+
"type": "object",
|
|
2069
|
+
"properties": {
|
|
2070
|
+
"kind": {
|
|
2071
|
+
"const": "story",
|
|
2072
|
+
"type": "string"
|
|
2073
|
+
},
|
|
2074
|
+
"storyType": {
|
|
2075
|
+
"const": "endnote",
|
|
2076
|
+
"type": "string"
|
|
2077
|
+
},
|
|
2078
|
+
"noteId": {
|
|
2079
|
+
"type": "string"
|
|
2080
|
+
}
|
|
2081
|
+
},
|
|
2082
|
+
"required": [
|
|
2083
|
+
"kind",
|
|
2084
|
+
"storyType",
|
|
2085
|
+
"noteId"
|
|
2086
|
+
]
|
|
2087
|
+
},
|
|
2088
|
+
{
|
|
2089
|
+
"type": "object",
|
|
2090
|
+
"properties": {
|
|
2091
|
+
"kind": {
|
|
2092
|
+
"const": "story",
|
|
2093
|
+
"type": "string"
|
|
2094
|
+
},
|
|
2095
|
+
"storyType": {
|
|
2096
|
+
"const": "textbox",
|
|
2097
|
+
"type": "string"
|
|
2098
|
+
},
|
|
2099
|
+
"textboxId": {
|
|
2100
|
+
"type": "string"
|
|
2101
|
+
}
|
|
2102
|
+
},
|
|
2103
|
+
"required": [
|
|
2104
|
+
"kind",
|
|
2105
|
+
"storyType",
|
|
2106
|
+
"textboxId"
|
|
2107
|
+
]
|
|
2108
|
+
}
|
|
2109
|
+
],
|
|
2110
|
+
"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."
|
|
355
2111
|
}
|
|
356
2112
|
},
|
|
357
2113
|
"required": [
|
|
@@ -376,96 +2132,378 @@
|
|
|
376
2132
|
],
|
|
377
2133
|
"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."
|
|
378
2134
|
},
|
|
379
|
-
"
|
|
2135
|
+
"story": {
|
|
380
2136
|
"oneOf": [
|
|
381
2137
|
{
|
|
382
2138
|
"type": "object",
|
|
383
2139
|
"properties": {
|
|
384
2140
|
"kind": {
|
|
385
|
-
"const": "
|
|
2141
|
+
"const": "story",
|
|
386
2142
|
"type": "string"
|
|
387
2143
|
},
|
|
388
|
-
"
|
|
2144
|
+
"storyType": {
|
|
2145
|
+
"const": "body",
|
|
389
2146
|
"type": "string"
|
|
390
|
-
},
|
|
391
|
-
"offset": {
|
|
392
|
-
"type": "number"
|
|
393
2147
|
}
|
|
394
2148
|
},
|
|
395
2149
|
"required": [
|
|
396
2150
|
"kind",
|
|
397
|
-
"
|
|
398
|
-
"offset"
|
|
2151
|
+
"storyType"
|
|
399
2152
|
]
|
|
400
2153
|
},
|
|
401
2154
|
{
|
|
402
2155
|
"type": "object",
|
|
403
2156
|
"properties": {
|
|
404
2157
|
"kind": {
|
|
405
|
-
"const": "
|
|
2158
|
+
"const": "story",
|
|
406
2159
|
"type": "string"
|
|
407
2160
|
},
|
|
408
|
-
"
|
|
2161
|
+
"storyType": {
|
|
2162
|
+
"const": "headerFooterSlot",
|
|
2163
|
+
"type": "string"
|
|
2164
|
+
},
|
|
2165
|
+
"section": {
|
|
409
2166
|
"type": "object",
|
|
410
2167
|
"properties": {
|
|
411
2168
|
"kind": {
|
|
412
|
-
"const": "
|
|
2169
|
+
"const": "section",
|
|
413
2170
|
"type": "string"
|
|
414
2171
|
},
|
|
415
|
-
"
|
|
416
|
-
"enum": [
|
|
417
|
-
"paragraph",
|
|
418
|
-
"heading",
|
|
419
|
-
"table",
|
|
420
|
-
"tableOfContents",
|
|
421
|
-
"sdt",
|
|
422
|
-
"image"
|
|
423
|
-
]
|
|
424
|
-
},
|
|
425
|
-
"nodeId": {
|
|
2172
|
+
"sectionId": {
|
|
426
2173
|
"type": "string"
|
|
427
2174
|
}
|
|
428
2175
|
},
|
|
429
2176
|
"required": [
|
|
430
2177
|
"kind",
|
|
431
|
-
"
|
|
432
|
-
"nodeId"
|
|
2178
|
+
"sectionId"
|
|
433
2179
|
]
|
|
434
2180
|
},
|
|
435
|
-
"
|
|
2181
|
+
"headerFooterKind": {
|
|
436
2182
|
"enum": [
|
|
437
|
-
"
|
|
438
|
-
"
|
|
2183
|
+
"header",
|
|
2184
|
+
"footer"
|
|
2185
|
+
]
|
|
2186
|
+
},
|
|
2187
|
+
"variant": {
|
|
2188
|
+
"enum": [
|
|
2189
|
+
"default",
|
|
2190
|
+
"first",
|
|
2191
|
+
"even"
|
|
2192
|
+
]
|
|
2193
|
+
},
|
|
2194
|
+
"resolution": {
|
|
2195
|
+
"enum": [
|
|
2196
|
+
"effective",
|
|
2197
|
+
"explicit"
|
|
2198
|
+
]
|
|
2199
|
+
},
|
|
2200
|
+
"onWrite": {
|
|
2201
|
+
"enum": [
|
|
2202
|
+
"materializeIfInherited",
|
|
2203
|
+
"editResolvedPart",
|
|
2204
|
+
"error"
|
|
439
2205
|
]
|
|
440
2206
|
}
|
|
441
2207
|
},
|
|
442
2208
|
"required": [
|
|
443
2209
|
"kind",
|
|
444
|
-
"
|
|
445
|
-
"
|
|
2210
|
+
"storyType",
|
|
2211
|
+
"section",
|
|
2212
|
+
"headerFooterKind",
|
|
2213
|
+
"variant"
|
|
2214
|
+
]
|
|
2215
|
+
},
|
|
2216
|
+
{
|
|
2217
|
+
"type": "object",
|
|
2218
|
+
"properties": {
|
|
2219
|
+
"kind": {
|
|
2220
|
+
"const": "story",
|
|
2221
|
+
"type": "string"
|
|
2222
|
+
},
|
|
2223
|
+
"storyType": {
|
|
2224
|
+
"const": "headerFooterPart",
|
|
2225
|
+
"type": "string"
|
|
2226
|
+
},
|
|
2227
|
+
"refId": {
|
|
2228
|
+
"type": "string"
|
|
2229
|
+
}
|
|
2230
|
+
},
|
|
2231
|
+
"required": [
|
|
2232
|
+
"kind",
|
|
2233
|
+
"storyType",
|
|
2234
|
+
"refId"
|
|
2235
|
+
]
|
|
2236
|
+
},
|
|
2237
|
+
{
|
|
2238
|
+
"type": "object",
|
|
2239
|
+
"properties": {
|
|
2240
|
+
"kind": {
|
|
2241
|
+
"const": "story",
|
|
2242
|
+
"type": "string"
|
|
2243
|
+
},
|
|
2244
|
+
"storyType": {
|
|
2245
|
+
"const": "footnote",
|
|
2246
|
+
"type": "string"
|
|
2247
|
+
},
|
|
2248
|
+
"noteId": {
|
|
2249
|
+
"type": "string"
|
|
2250
|
+
}
|
|
2251
|
+
},
|
|
2252
|
+
"required": [
|
|
2253
|
+
"kind",
|
|
2254
|
+
"storyType",
|
|
2255
|
+
"noteId"
|
|
2256
|
+
]
|
|
2257
|
+
},
|
|
2258
|
+
{
|
|
2259
|
+
"type": "object",
|
|
2260
|
+
"properties": {
|
|
2261
|
+
"kind": {
|
|
2262
|
+
"const": "story",
|
|
2263
|
+
"type": "string"
|
|
2264
|
+
},
|
|
2265
|
+
"storyType": {
|
|
2266
|
+
"const": "endnote",
|
|
2267
|
+
"type": "string"
|
|
2268
|
+
},
|
|
2269
|
+
"noteId": {
|
|
2270
|
+
"type": "string"
|
|
2271
|
+
}
|
|
2272
|
+
},
|
|
2273
|
+
"required": [
|
|
2274
|
+
"kind",
|
|
2275
|
+
"storyType",
|
|
2276
|
+
"noteId"
|
|
2277
|
+
]
|
|
2278
|
+
},
|
|
2279
|
+
{
|
|
2280
|
+
"type": "object",
|
|
2281
|
+
"properties": {
|
|
2282
|
+
"kind": {
|
|
2283
|
+
"const": "story",
|
|
2284
|
+
"type": "string"
|
|
2285
|
+
},
|
|
2286
|
+
"storyType": {
|
|
2287
|
+
"const": "textbox",
|
|
2288
|
+
"type": "string"
|
|
2289
|
+
},
|
|
2290
|
+
"textboxId": {
|
|
2291
|
+
"type": "string"
|
|
2292
|
+
}
|
|
2293
|
+
},
|
|
2294
|
+
"required": [
|
|
2295
|
+
"kind",
|
|
2296
|
+
"storyType",
|
|
2297
|
+
"textboxId"
|
|
446
2298
|
]
|
|
447
2299
|
}
|
|
448
|
-
],
|
|
449
|
-
"description": "
|
|
2300
|
+
],
|
|
2301
|
+
"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."
|
|
2302
|
+
}
|
|
2303
|
+
},
|
|
2304
|
+
"required": [
|
|
2305
|
+
"kind",
|
|
2306
|
+
"start",
|
|
2307
|
+
"end"
|
|
2308
|
+
]
|
|
2309
|
+
}
|
|
2310
|
+
]
|
|
2311
|
+
}
|
|
2312
|
+
],
|
|
2313
|
+
"description": "Block address for structural insertion: {kind:'block', nodeType:'...', nodeId:'...'}."
|
|
2314
|
+
},
|
|
2315
|
+
{
|
|
2316
|
+
"$ref": "#/$defs/SelectionTarget",
|
|
2317
|
+
"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."
|
|
2318
|
+
}
|
|
2319
|
+
],
|
|
2320
|
+
"description": "Block address for structural insertion: {kind:'block', nodeType:'...', nodeId:'...'}."
|
|
2321
|
+
},
|
|
2322
|
+
"in": {
|
|
2323
|
+
"oneOf": [
|
|
2324
|
+
{
|
|
2325
|
+
"oneOf": [
|
|
2326
|
+
{
|
|
2327
|
+
"$ref": "#/$defs/StoryLocator",
|
|
2328
|
+
"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."
|
|
2329
|
+
},
|
|
2330
|
+
{
|
|
2331
|
+
"oneOf": [
|
|
2332
|
+
{
|
|
2333
|
+
"type": "object",
|
|
2334
|
+
"properties": {
|
|
2335
|
+
"kind": {
|
|
2336
|
+
"const": "story",
|
|
2337
|
+
"type": "string"
|
|
2338
|
+
},
|
|
2339
|
+
"storyType": {
|
|
2340
|
+
"const": "body",
|
|
2341
|
+
"type": "string"
|
|
2342
|
+
}
|
|
2343
|
+
},
|
|
2344
|
+
"required": [
|
|
2345
|
+
"kind",
|
|
2346
|
+
"storyType"
|
|
2347
|
+
]
|
|
2348
|
+
},
|
|
2349
|
+
{
|
|
2350
|
+
"type": "object",
|
|
2351
|
+
"properties": {
|
|
2352
|
+
"kind": {
|
|
2353
|
+
"const": "story",
|
|
2354
|
+
"type": "string"
|
|
2355
|
+
},
|
|
2356
|
+
"storyType": {
|
|
2357
|
+
"const": "headerFooterSlot",
|
|
2358
|
+
"type": "string"
|
|
2359
|
+
},
|
|
2360
|
+
"section": {
|
|
2361
|
+
"type": "object",
|
|
2362
|
+
"properties": {
|
|
2363
|
+
"kind": {
|
|
2364
|
+
"const": "section",
|
|
2365
|
+
"type": "string"
|
|
2366
|
+
},
|
|
2367
|
+
"sectionId": {
|
|
2368
|
+
"type": "string"
|
|
2369
|
+
}
|
|
2370
|
+
},
|
|
2371
|
+
"required": [
|
|
2372
|
+
"kind",
|
|
2373
|
+
"sectionId"
|
|
2374
|
+
]
|
|
2375
|
+
},
|
|
2376
|
+
"headerFooterKind": {
|
|
2377
|
+
"enum": [
|
|
2378
|
+
"header",
|
|
2379
|
+
"footer"
|
|
2380
|
+
]
|
|
2381
|
+
},
|
|
2382
|
+
"variant": {
|
|
2383
|
+
"enum": [
|
|
2384
|
+
"default",
|
|
2385
|
+
"first",
|
|
2386
|
+
"even"
|
|
2387
|
+
]
|
|
2388
|
+
},
|
|
2389
|
+
"resolution": {
|
|
2390
|
+
"enum": [
|
|
2391
|
+
"effective",
|
|
2392
|
+
"explicit"
|
|
2393
|
+
]
|
|
2394
|
+
},
|
|
2395
|
+
"onWrite": {
|
|
2396
|
+
"enum": [
|
|
2397
|
+
"materializeIfInherited",
|
|
2398
|
+
"editResolvedPart",
|
|
2399
|
+
"error"
|
|
2400
|
+
]
|
|
450
2401
|
}
|
|
451
2402
|
},
|
|
452
2403
|
"required": [
|
|
453
2404
|
"kind",
|
|
454
|
-
"
|
|
455
|
-
"
|
|
2405
|
+
"storyType",
|
|
2406
|
+
"section",
|
|
2407
|
+
"headerFooterKind",
|
|
2408
|
+
"variant"
|
|
2409
|
+
]
|
|
2410
|
+
},
|
|
2411
|
+
{
|
|
2412
|
+
"type": "object",
|
|
2413
|
+
"properties": {
|
|
2414
|
+
"kind": {
|
|
2415
|
+
"const": "story",
|
|
2416
|
+
"type": "string"
|
|
2417
|
+
},
|
|
2418
|
+
"storyType": {
|
|
2419
|
+
"const": "headerFooterPart",
|
|
2420
|
+
"type": "string"
|
|
2421
|
+
},
|
|
2422
|
+
"refId": {
|
|
2423
|
+
"type": "string"
|
|
2424
|
+
}
|
|
2425
|
+
},
|
|
2426
|
+
"required": [
|
|
2427
|
+
"kind",
|
|
2428
|
+
"storyType",
|
|
2429
|
+
"refId"
|
|
2430
|
+
]
|
|
2431
|
+
},
|
|
2432
|
+
{
|
|
2433
|
+
"type": "object",
|
|
2434
|
+
"properties": {
|
|
2435
|
+
"kind": {
|
|
2436
|
+
"const": "story",
|
|
2437
|
+
"type": "string"
|
|
2438
|
+
},
|
|
2439
|
+
"storyType": {
|
|
2440
|
+
"const": "footnote",
|
|
2441
|
+
"type": "string"
|
|
2442
|
+
},
|
|
2443
|
+
"noteId": {
|
|
2444
|
+
"type": "string"
|
|
2445
|
+
}
|
|
2446
|
+
},
|
|
2447
|
+
"required": [
|
|
2448
|
+
"kind",
|
|
2449
|
+
"storyType",
|
|
2450
|
+
"noteId"
|
|
2451
|
+
]
|
|
2452
|
+
},
|
|
2453
|
+
{
|
|
2454
|
+
"type": "object",
|
|
2455
|
+
"properties": {
|
|
2456
|
+
"kind": {
|
|
2457
|
+
"const": "story",
|
|
2458
|
+
"type": "string"
|
|
2459
|
+
},
|
|
2460
|
+
"storyType": {
|
|
2461
|
+
"const": "endnote",
|
|
2462
|
+
"type": "string"
|
|
2463
|
+
},
|
|
2464
|
+
"noteId": {
|
|
2465
|
+
"type": "string"
|
|
2466
|
+
}
|
|
2467
|
+
},
|
|
2468
|
+
"required": [
|
|
2469
|
+
"kind",
|
|
2470
|
+
"storyType",
|
|
2471
|
+
"noteId"
|
|
2472
|
+
]
|
|
2473
|
+
},
|
|
2474
|
+
{
|
|
2475
|
+
"type": "object",
|
|
2476
|
+
"properties": {
|
|
2477
|
+
"kind": {
|
|
2478
|
+
"const": "story",
|
|
2479
|
+
"type": "string"
|
|
2480
|
+
},
|
|
2481
|
+
"storyType": {
|
|
2482
|
+
"const": "textbox",
|
|
2483
|
+
"type": "string"
|
|
2484
|
+
},
|
|
2485
|
+
"textboxId": {
|
|
2486
|
+
"type": "string"
|
|
2487
|
+
}
|
|
2488
|
+
},
|
|
2489
|
+
"required": [
|
|
2490
|
+
"kind",
|
|
2491
|
+
"storyType",
|
|
2492
|
+
"textboxId"
|
|
456
2493
|
]
|
|
457
2494
|
}
|
|
458
|
-
]
|
|
2495
|
+
],
|
|
2496
|
+
"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."
|
|
459
2497
|
}
|
|
460
2498
|
],
|
|
461
|
-
"description": "
|
|
2499
|
+
"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."
|
|
462
2500
|
},
|
|
463
2501
|
{
|
|
464
|
-
"$ref": "#/$defs/
|
|
465
|
-
"description": "
|
|
2502
|
+
"$ref": "#/$defs/StoryLocator",
|
|
2503
|
+
"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."
|
|
466
2504
|
}
|
|
467
2505
|
],
|
|
468
|
-
"description": "
|
|
2506
|
+
"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."
|
|
469
2507
|
},
|
|
470
2508
|
"value": {
|
|
471
2509
|
"type": "string",
|
|
@@ -741,6 +2779,10 @@
|
|
|
741
2779
|
],
|
|
742
2780
|
"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. Required for actions 'set_style', 'set_alignment', 'set_indentation', 'set_spacing', 'set_flow_options', 'set_direction'."
|
|
743
2781
|
},
|
|
2782
|
+
"in": {
|
|
2783
|
+
"$ref": "#/$defs/StoryLocator",
|
|
2784
|
+
"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 action 'inline'. Omit for other actions."
|
|
2785
|
+
},
|
|
744
2786
|
"inline": {
|
|
745
2787
|
"type": "object",
|
|
746
2788
|
"properties": {
|
|
@@ -1571,12 +3613,10 @@
|
|
|
1571
3613
|
},
|
|
1572
3614
|
"left": {
|
|
1573
3615
|
"type": "integer",
|
|
1574
|
-
"minimum": 0,
|
|
1575
3616
|
"description": "Left indentation in twips (1440 = 1 inch). Only for action 'set_indentation'. Omit for other actions."
|
|
1576
3617
|
},
|
|
1577
3618
|
"right": {
|
|
1578
3619
|
"type": "integer",
|
|
1579
|
-
"minimum": 0,
|
|
1580
3620
|
"description": "Right indentation in twips (1440 = 1 inch). Only for action 'set_indentation'. Omit for other actions."
|
|
1581
3621
|
},
|
|
1582
3622
|
"firstLine": {
|
|
@@ -1624,6 +3664,22 @@
|
|
|
1624
3664
|
"type": "boolean",
|
|
1625
3665
|
"description": "Only for action 'set_flow_options'. Omit for other actions."
|
|
1626
3666
|
},
|
|
3667
|
+
"autoSpaceDE": {
|
|
3668
|
+
"type": "boolean",
|
|
3669
|
+
"description": "Only for action 'set_flow_options'. Omit for other actions."
|
|
3670
|
+
},
|
|
3671
|
+
"autoSpaceDN": {
|
|
3672
|
+
"type": "boolean",
|
|
3673
|
+
"description": "Only for action 'set_flow_options'. Omit for other actions."
|
|
3674
|
+
},
|
|
3675
|
+
"adjustRightInd": {
|
|
3676
|
+
"type": "boolean",
|
|
3677
|
+
"description": "Only for action 'set_flow_options'. Omit for other actions."
|
|
3678
|
+
},
|
|
3679
|
+
"snapToGrid": {
|
|
3680
|
+
"type": "boolean",
|
|
3681
|
+
"description": "Only for action 'set_flow_options'. Omit for other actions."
|
|
3682
|
+
},
|
|
1627
3683
|
"direction": {
|
|
1628
3684
|
"type": "string",
|
|
1629
3685
|
"enum": [
|
|
@@ -1681,6 +3737,10 @@
|
|
|
1681
3737
|
"type": "boolean",
|
|
1682
3738
|
"description": "Preview the result without applying changes."
|
|
1683
3739
|
},
|
|
3740
|
+
"in": {
|
|
3741
|
+
"$ref": "#/$defs/StoryLocator",
|
|
3742
|
+
"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."
|
|
3743
|
+
},
|
|
1684
3744
|
"at": {
|
|
1685
3745
|
"oneOf": [
|
|
1686
3746
|
{
|
|
@@ -2279,7 +4339,7 @@
|
|
|
2279
4339
|
"type": "function",
|
|
2280
4340
|
"function": {
|
|
2281
4341
|
"name": "superdoc_comment",
|
|
2282
|
-
"description": "Manage document comment threads: create, read, update, and delete. To create a comment, first use superdoc_search to find the target text, then pass action \"create\" with the comment text and a target built from items[0].blocks. For a single-block match use {kind:\"text\", blockId: items[0].blocks[0].blockId, range: items[0].blocks[0].range}. For a cross-block match use {kind:\"text\", segments: items[0].blocks.map(b => ({blockId: b.blockId, range: b.range}))}. Do NOT use items[0].highlightRange (snippet-relative, not block-relative) or items[0].target (a SelectionTarget, not accepted by comments.create). For threaded replies, pass \"parentId\" with the parent comment ID. Action \"list\" returns all comments with optional pagination (limit, offset) and filtering (includeResolved:true to include resolved). Action \"get\" retrieves a single comment by ID. Action \"update\" changes status to \"resolved\"
|
|
4342
|
+
"description": "Manage document comment threads: create, read, update, and delete. To create a comment, first use superdoc_search to find the target text, then pass action \"create\" with the comment text and a target built from items[0].blocks. For a single-block match use {kind:\"text\", blockId: items[0].blocks[0].blockId, range: items[0].blocks[0].range}. For a cross-block match use {kind:\"text\", segments: items[0].blocks.map(b => ({blockId: b.blockId, range: b.range}))}. Do NOT use items[0].highlightRange (snippet-relative, not block-relative) or items[0].target (a SelectionTarget, not accepted by comments.create). For threaded replies, pass \"parentId\" with the parent comment ID. Action \"list\" returns all comments with optional pagination (limit, offset) and filtering (includeResolved:true to include resolved). Action \"get\" retrieves a single comment by ID. Action \"update\" changes comment text, re-anchors the thread, or changes status to \"resolved\". The legacy `isInternal` field remains in schema for v1 compatibility but the v2 surface rejects it with `CAPABILITY_UNAVAILABLE`. Action \"delete\" removes a comment or reply by ID. Do NOT pass \"ref\", \"id\", or \"parentId\" when creating a new top-level comment; only \"action\", \"text\", and \"target\" are needed.\n\nEXAMPLES:\n 1. {\"action\":\"create\",\"text\":\"Please review this section.\",\"target\":{\"kind\":\"text\",\"blockId\":\"<blockId>\",\"range\":{\"start\":5,\"end\":25}}}\n 2. {\"action\":\"list\",\"limit\":20,\"offset\":0}\n 3. {\"action\":\"update\",\"id\":\"<commentId>\",\"status\":\"resolved\"}\n 4. {\"action\":\"delete\",\"id\":\"<commentId>\"}",
|
|
2283
4343
|
"parameters": {
|
|
2284
4344
|
"type": "object",
|
|
2285
4345
|
"properties": {
|
|
@@ -2322,6 +4382,7 @@
|
|
|
2322
4382
|
"target": {
|
|
2323
4383
|
"oneOf": [
|
|
2324
4384
|
{
|
|
4385
|
+
"description": "Text range to anchor the comment. Accepts either a single-block TextAddress {kind:'text', blockId, range}, a multi-segment TextTarget {kind:'text', segments:[{blockId, range}, ...]} for selections that span blocks, a SelectionTarget {kind:'selection', start, end} returned by query.match, a TextSearchCommentTarget {text, story?}, or a TrackedChangeCommentTarget ({kind:'trackedChange', trackedChangeId, side?} or {trackedChangeId, side?}) that names a logical tracked-change id as a convenience anchor .",
|
|
2325
4386
|
"oneOf": [
|
|
2326
4387
|
{
|
|
2327
4388
|
"$ref": "#/$defs/TextAddress"
|
|
@@ -2334,28 +4395,74 @@
|
|
|
2334
4395
|
},
|
|
2335
4396
|
{
|
|
2336
4397
|
"$ref": "#/$defs/CommentTrackedChangeTarget"
|
|
4398
|
+
},
|
|
4399
|
+
{
|
|
4400
|
+
"type": "object",
|
|
4401
|
+
"properties": {
|
|
4402
|
+
"text": {
|
|
4403
|
+
"type": "string",
|
|
4404
|
+
"description": "Text to find and anchor the comment to. The adapter resolves the first body/story match."
|
|
4405
|
+
},
|
|
4406
|
+
"story": {
|
|
4407
|
+
"$ref": "#/$defs/StoryLocator"
|
|
4408
|
+
}
|
|
4409
|
+
},
|
|
4410
|
+
"additionalProperties": false,
|
|
4411
|
+
"required": [
|
|
4412
|
+
"text"
|
|
4413
|
+
]
|
|
2337
4414
|
}
|
|
2338
|
-
]
|
|
2339
|
-
"description": "Comment target. Accepts a TextAddress, TextTarget, SelectionTarget, or {trackedChangeId, kind?:'trackedChange'} to anchor directly on tracked content."
|
|
4415
|
+
]
|
|
2340
4416
|
},
|
|
2341
4417
|
{
|
|
2342
4418
|
"oneOf": [
|
|
2343
4419
|
{
|
|
2344
4420
|
"$ref": "#/$defs/TextAddress"
|
|
2345
4421
|
},
|
|
2346
|
-
{
|
|
2347
|
-
"$ref": "#/$defs/TextTarget"
|
|
2348
|
-
},
|
|
2349
4422
|
{
|
|
2350
4423
|
"$ref": "#/$defs/SelectionTarget"
|
|
2351
4424
|
},
|
|
2352
4425
|
{
|
|
2353
4426
|
"$ref": "#/$defs/CommentTrackedChangeTarget"
|
|
4427
|
+
},
|
|
4428
|
+
{
|
|
4429
|
+
"type": "object",
|
|
4430
|
+
"properties": {
|
|
4431
|
+
"text": {
|
|
4432
|
+
"type": "string",
|
|
4433
|
+
"description": "Text to find and anchor the comment to. The adapter resolves the first body/story match."
|
|
4434
|
+
},
|
|
4435
|
+
"story": {
|
|
4436
|
+
"$ref": "#/$defs/StoryLocator"
|
|
4437
|
+
}
|
|
4438
|
+
},
|
|
4439
|
+
"additionalProperties": false,
|
|
4440
|
+
"required": [
|
|
4441
|
+
"text"
|
|
4442
|
+
]
|
|
2354
4443
|
}
|
|
2355
|
-
]
|
|
4444
|
+
],
|
|
4445
|
+
"description": "New anchor for the comment. Accepts a plain TextAddress, a SelectionTarget {kind:'selection', start, end}, a TextSearchCommentTarget {text, story?}, or a TrackedChangeCommentTarget, with or without kind, that names a logical tracked-change id as a convenience re-anchor target ."
|
|
2356
4446
|
}
|
|
2357
4447
|
],
|
|
2358
|
-
"description": "
|
|
4448
|
+
"description": "Text range to anchor the comment. Accepts either a single-block TextAddress {kind:'text', blockId, range}, a multi-segment TextTarget {kind:'text', segments:[{blockId, range}, ...]} for selections that span blocks, a SelectionTarget {kind:'selection', start, end} returned by query.match, a TextSearchCommentTarget {text, story?}, or a TrackedChangeCommentTarget ({kind:'trackedChange', trackedChangeId, side?} or {trackedChangeId, side?}) that names a logical tracked-change id as a convenience anchor . Only for actions 'create', 'update'. Omit for other actions."
|
|
4449
|
+
},
|
|
4450
|
+
"trackedChangeId": {
|
|
4451
|
+
"type": "string",
|
|
4452
|
+
"description": "Compatibility shorthand for target: { trackedChangeId }. Used only when target is omitted. Only for action 'create'. Omit for other actions."
|
|
4453
|
+
},
|
|
4454
|
+
"side": {
|
|
4455
|
+
"enum": [
|
|
4456
|
+
"inserted",
|
|
4457
|
+
"deleted",
|
|
4458
|
+
"source",
|
|
4459
|
+
"destination"
|
|
4460
|
+
],
|
|
4461
|
+
"description": "Optional side for the top-level trackedChangeId shorthand. Only for action 'create'. Omit for other actions."
|
|
4462
|
+
},
|
|
4463
|
+
"story": {
|
|
4464
|
+
"$ref": "#/$defs/StoryLocator",
|
|
4465
|
+
"description": "Optional story for the top-level trackedChangeId shorthand. Only for action 'create'. Omit for other actions."
|
|
2359
4466
|
},
|
|
2360
4467
|
"parentId": {
|
|
2361
4468
|
"type": "string",
|
|
@@ -2374,7 +4481,7 @@
|
|
|
2374
4481
|
},
|
|
2375
4482
|
"isInternal": {
|
|
2376
4483
|
"type": "boolean",
|
|
2377
|
-
"description": "
|
|
4484
|
+
"description": "Legacy v1/document-api compatibility field. Not a supported v2 behavior. V2 adapters MUST reject a `comments.patch` request containing `isInternal` with `CAPABILITY_UNAVAILABLE` (kernel reason `internal-comments-unsupported`). The field is preserved in the schema only so v1 callers keep their input shape (`comments-spec.md` §7, §14.6). Only for action 'update'. Omit for other actions."
|
|
2378
4485
|
},
|
|
2379
4486
|
"includeResolved": {
|
|
2380
4487
|
"type": "boolean",
|
|
@@ -2400,7 +4507,7 @@
|
|
|
2400
4507
|
"type": "function",
|
|
2401
4508
|
"function": {
|
|
2402
4509
|
"name": "superdoc_track_changes",
|
|
2403
|
-
"description": "Review and resolve tracked changes (insertions, deletions, replacements, format changes) in the document. Action \"list\" returns all tracked changes with optional filtering by type (insert, delete, replacement, format) and pagination (limit, offset). Each change includes an ID, type, author, timestamp, and content preview. Action \"decide\" accepts or rejects changes. Pass decision:\"accept\" to apply the change permanently, or decision:\"reject\" to discard it. Target a single change with {id:\"<changeId>\"}, a partial selection with {kind:\"range\", range:{...}}, or all changes at once with {scope:\"all\"} (optionally plus story). Do NOT use this tool unless the document has tracked changes. Use superdoc_get_content info to check the tracked change count first.\n\nEXAMPLES:\n 1. {\"action\":\"list\"}\n 2. {\"action\":\"list\",\"type\":\"
|
|
4510
|
+
"description": "Review and resolve tracked changes (insertions, deletions, replacements, format changes) in the document. Action \"list\" returns all tracked changes with optional filtering by type (insert, delete, replacement, format) and pagination (limit, offset). Each change includes an ID, type, author, timestamp, and content preview. Action \"decide\" accepts or rejects changes. Pass decision:\"accept\" to apply the change permanently, or decision:\"reject\" to discard it. Target a single change with {id:\"<changeId>\"}, a partial selection with {kind:\"range\", range:{...}}, or all changes at once with {scope:\"all\"} (optionally plus story). Do NOT use this tool unless the document has tracked changes. Use superdoc_get_content info to check the tracked change count first.\n\nEXAMPLES:\n 1. {\"action\":\"list\"}\n 2. {\"action\":\"list\",\"type\":\"insertion\",\"limit\":10}\n 3. {\"action\":\"list\",\"type\":\"replacement\",\"limit\":10}\n 4. {\"action\":\"decide\",\"decision\":\"accept\",\"target\":{\"id\":\"<changeId>\"}}\n 5. {\"action\":\"decide\",\"decision\":\"reject\",\"target\":{\"kind\":\"range\",\"range\":{\"kind\":\"text\",\"segments\":[{\"blockId\":\"<blockId>\",\"range\":{\"start\":0,\"end\":5}}]}}}\n 6. {\"action\":\"decide\",\"decision\":\"reject\",\"target\":{\"scope\":\"all\"}}",
|
|
2404
4511
|
"parameters": {
|
|
2405
4512
|
"type": "object",
|
|
2406
4513
|
"properties": {
|
|
@@ -2422,12 +4529,29 @@
|
|
|
2422
4529
|
},
|
|
2423
4530
|
"type": {
|
|
2424
4531
|
"enum": [
|
|
4532
|
+
"insertion",
|
|
4533
|
+
"deletion",
|
|
4534
|
+
"replacement",
|
|
4535
|
+
"formatting",
|
|
4536
|
+
"move",
|
|
4537
|
+
"structural",
|
|
2425
4538
|
"insert",
|
|
2426
4539
|
"delete",
|
|
2427
|
-
"replacement",
|
|
2428
4540
|
"format"
|
|
2429
4541
|
],
|
|
2430
|
-
"description": "Filter by change type: '
|
|
4542
|
+
"description": "Filter by change type. Canonical values: 'insertion', 'deletion', 'replacement', 'formatting', 'move', 'structural'. Legacy aliases 'insert', 'delete', and 'format' remain accepted during migration. Only for action 'list'. Omit for other actions."
|
|
4543
|
+
},
|
|
4544
|
+
"in": {
|
|
4545
|
+
"oneOf": [
|
|
4546
|
+
{
|
|
4547
|
+
"$ref": "#/$defs/StoryLocator"
|
|
4548
|
+
},
|
|
4549
|
+
{
|
|
4550
|
+
"const": "all",
|
|
4551
|
+
"type": "string"
|
|
4552
|
+
}
|
|
4553
|
+
],
|
|
4554
|
+
"description": "Story scope. Omit for body only, pass a StoryLocator for a single story, or 'all' for body + every revision-capable non-body story. Only for action 'list'. Omit for other actions."
|
|
2431
4555
|
},
|
|
2432
4556
|
"force": {
|
|
2433
4557
|
"type": "boolean",
|
|
@@ -2448,8 +4572,215 @@
|
|
|
2448
4572
|
],
|
|
2449
4573
|
"description": "Required for action 'decide'."
|
|
2450
4574
|
},
|
|
4575
|
+
"expectedRevision": {
|
|
4576
|
+
"type": "string",
|
|
4577
|
+
"description": "Backward-compatible alias for options.expectedRevision. Explicit mutation options take precedence when both are supplied. Only for action 'decide'. Omit for other actions."
|
|
4578
|
+
},
|
|
2451
4579
|
"target": {
|
|
4580
|
+
"description": "Decision target. Canonical shapes: { kind: 'id', id, story? } (whole logical tracked change), { kind: 'range', range: TextTarget, overlap?, side?, story?, part? } or { kind: 'range', range: { anchor, relativeStart, relativeEnd }, overlap?, side?, story?, part? } (resolves only the selected overlap; may split fragments), { kind: 'all' } (every active tracked change). Legacy { id, story? } / { id, range: { kind: 'partial', start, end } } / { scope: 'all' } shapes are accepted and transparently promoted to canonical targets. Required for action 'decide'.",
|
|
2452
4581
|
"oneOf": [
|
|
4582
|
+
{
|
|
4583
|
+
"type": "object",
|
|
4584
|
+
"properties": {
|
|
4585
|
+
"kind": {
|
|
4586
|
+
"const": "id",
|
|
4587
|
+
"type": "string"
|
|
4588
|
+
},
|
|
4589
|
+
"id": {
|
|
4590
|
+
"type": "string"
|
|
4591
|
+
},
|
|
4592
|
+
"story": {
|
|
4593
|
+
"$ref": "#/$defs/StoryLocator"
|
|
4594
|
+
},
|
|
4595
|
+
"moveRole": {
|
|
4596
|
+
"enum": [
|
|
4597
|
+
"pair",
|
|
4598
|
+
"source",
|
|
4599
|
+
"destination"
|
|
4600
|
+
],
|
|
4601
|
+
"description": "Optional move pairing assertion. 'pair' requires the resolved tracked change to be a paired move; 'source' / 'destination' further narrow to a specific half. When the assertion does not hold the decide adapter fails closed."
|
|
4602
|
+
}
|
|
4603
|
+
},
|
|
4604
|
+
"additionalProperties": false,
|
|
4605
|
+
"required": [
|
|
4606
|
+
"kind",
|
|
4607
|
+
"id"
|
|
4608
|
+
]
|
|
4609
|
+
},
|
|
4610
|
+
{
|
|
4611
|
+
"type": "object",
|
|
4612
|
+
"properties": {
|
|
4613
|
+
"kind": {
|
|
4614
|
+
"const": "range",
|
|
4615
|
+
"type": "string"
|
|
4616
|
+
},
|
|
4617
|
+
"range": {
|
|
4618
|
+
"$ref": "#/$defs/TextTarget"
|
|
4619
|
+
},
|
|
4620
|
+
"overlap": {
|
|
4621
|
+
"type": "string",
|
|
4622
|
+
"description": "Optional logical overlap selector for callers that already resolved an ambiguous overlap surface. Adapter-owned interpretation."
|
|
4623
|
+
},
|
|
4624
|
+
"side": {
|
|
4625
|
+
"enum": [
|
|
4626
|
+
"insert",
|
|
4627
|
+
"inserted",
|
|
4628
|
+
"delete",
|
|
4629
|
+
"deleted",
|
|
4630
|
+
"source",
|
|
4631
|
+
"destination"
|
|
4632
|
+
],
|
|
4633
|
+
"description": "Optional revision side for paired replacement or move targets."
|
|
4634
|
+
},
|
|
4635
|
+
"story": {
|
|
4636
|
+
"$ref": "#/$defs/StoryLocator",
|
|
4637
|
+
"description": "Optional story containing the range target."
|
|
4638
|
+
},
|
|
4639
|
+
"part": {
|
|
4640
|
+
"type": "string",
|
|
4641
|
+
"description": "Compatibility alias used by older range callers; interpretation is adapter-owned."
|
|
4642
|
+
}
|
|
4643
|
+
},
|
|
4644
|
+
"additionalProperties": false,
|
|
4645
|
+
"required": [
|
|
4646
|
+
"kind",
|
|
4647
|
+
"range"
|
|
4648
|
+
]
|
|
4649
|
+
},
|
|
4650
|
+
{
|
|
4651
|
+
"type": "object",
|
|
4652
|
+
"properties": {
|
|
4653
|
+
"kind": {
|
|
4654
|
+
"const": "range",
|
|
4655
|
+
"type": "string"
|
|
4656
|
+
},
|
|
4657
|
+
"range": {
|
|
4658
|
+
"type": "object",
|
|
4659
|
+
"properties": {
|
|
4660
|
+
"anchor": {
|
|
4661
|
+
"type": "string"
|
|
4662
|
+
},
|
|
4663
|
+
"relativeStart": {
|
|
4664
|
+
"type": "integer",
|
|
4665
|
+
"minimum": 0
|
|
4666
|
+
},
|
|
4667
|
+
"relativeEnd": {
|
|
4668
|
+
"type": "integer",
|
|
4669
|
+
"minimum": 0
|
|
4670
|
+
}
|
|
4671
|
+
},
|
|
4672
|
+
"additionalProperties": false,
|
|
4673
|
+
"required": [
|
|
4674
|
+
"anchor",
|
|
4675
|
+
"relativeStart",
|
|
4676
|
+
"relativeEnd"
|
|
4677
|
+
]
|
|
4678
|
+
},
|
|
4679
|
+
"overlap": {
|
|
4680
|
+
"type": "string",
|
|
4681
|
+
"description": "Optional logical overlap selector for callers that already resolved an ambiguous overlap surface. Adapter-owned interpretation."
|
|
4682
|
+
},
|
|
4683
|
+
"side": {
|
|
4684
|
+
"enum": [
|
|
4685
|
+
"insert",
|
|
4686
|
+
"inserted",
|
|
4687
|
+
"delete",
|
|
4688
|
+
"deleted",
|
|
4689
|
+
"source",
|
|
4690
|
+
"destination"
|
|
4691
|
+
],
|
|
4692
|
+
"description": "Optional revision side for paired replacement or move targets."
|
|
4693
|
+
},
|
|
4694
|
+
"story": {
|
|
4695
|
+
"$ref": "#/$defs/StoryLocator",
|
|
4696
|
+
"description": "Optional story containing the range target."
|
|
4697
|
+
},
|
|
4698
|
+
"part": {
|
|
4699
|
+
"type": "string",
|
|
4700
|
+
"description": "Compatibility alias used by older range callers; interpretation is adapter-owned."
|
|
4701
|
+
}
|
|
4702
|
+
},
|
|
4703
|
+
"additionalProperties": false,
|
|
4704
|
+
"required": [
|
|
4705
|
+
"kind",
|
|
4706
|
+
"range"
|
|
4707
|
+
]
|
|
4708
|
+
},
|
|
4709
|
+
{
|
|
4710
|
+
"type": "object",
|
|
4711
|
+
"properties": {
|
|
4712
|
+
"kind": {
|
|
4713
|
+
"const": "range",
|
|
4714
|
+
"type": "string"
|
|
4715
|
+
},
|
|
4716
|
+
"anchor": {
|
|
4717
|
+
"type": "string"
|
|
4718
|
+
},
|
|
4719
|
+
"relativeStart": {
|
|
4720
|
+
"type": "integer",
|
|
4721
|
+
"minimum": 0
|
|
4722
|
+
},
|
|
4723
|
+
"relativeEnd": {
|
|
4724
|
+
"type": "integer",
|
|
4725
|
+
"minimum": 0
|
|
4726
|
+
},
|
|
4727
|
+
"overlap": {
|
|
4728
|
+
"type": "string",
|
|
4729
|
+
"description": "Optional logical overlap selector for callers that already resolved an ambiguous overlap surface. Adapter-owned interpretation."
|
|
4730
|
+
},
|
|
4731
|
+
"side": {
|
|
4732
|
+
"enum": [
|
|
4733
|
+
"insert",
|
|
4734
|
+
"inserted",
|
|
4735
|
+
"delete",
|
|
4736
|
+
"deleted",
|
|
4737
|
+
"source",
|
|
4738
|
+
"destination"
|
|
4739
|
+
],
|
|
4740
|
+
"description": "Optional revision side for paired replacement or move targets."
|
|
4741
|
+
},
|
|
4742
|
+
"story": {
|
|
4743
|
+
"$ref": "#/$defs/StoryLocator",
|
|
4744
|
+
"description": "Optional story containing the range target."
|
|
4745
|
+
},
|
|
4746
|
+
"part": {
|
|
4747
|
+
"type": "string",
|
|
4748
|
+
"description": "Compatibility alias used by older range callers; interpretation is adapter-owned."
|
|
4749
|
+
}
|
|
4750
|
+
},
|
|
4751
|
+
"additionalProperties": false,
|
|
4752
|
+
"required": [
|
|
4753
|
+
"kind",
|
|
4754
|
+
"anchor",
|
|
4755
|
+
"relativeStart",
|
|
4756
|
+
"relativeEnd"
|
|
4757
|
+
]
|
|
4758
|
+
},
|
|
4759
|
+
{
|
|
4760
|
+
"type": "object",
|
|
4761
|
+
"properties": {
|
|
4762
|
+
"kind": {
|
|
4763
|
+
"const": "all",
|
|
4764
|
+
"type": "string"
|
|
4765
|
+
},
|
|
4766
|
+
"story": {
|
|
4767
|
+
"oneOf": [
|
|
4768
|
+
{
|
|
4769
|
+
"$ref": "#/$defs/StoryLocator"
|
|
4770
|
+
},
|
|
4771
|
+
{
|
|
4772
|
+
"const": "all",
|
|
4773
|
+
"type": "string"
|
|
4774
|
+
}
|
|
4775
|
+
],
|
|
4776
|
+
"description": "Optional explicit bulk filter. Omit or pass 'all' to target every revision-capable story, or pass a StoryLocator to scope the decision to one story."
|
|
4777
|
+
}
|
|
4778
|
+
},
|
|
4779
|
+
"additionalProperties": false,
|
|
4780
|
+
"required": [
|
|
4781
|
+
"kind"
|
|
4782
|
+
]
|
|
4783
|
+
},
|
|
2453
4784
|
{
|
|
2454
4785
|
"type": "object",
|
|
2455
4786
|
"properties": {
|
|
@@ -2459,9 +4790,13 @@
|
|
|
2459
4790
|
"story": {
|
|
2460
4791
|
"$ref": "#/$defs/StoryLocator"
|
|
2461
4792
|
},
|
|
2462
|
-
"
|
|
2463
|
-
"
|
|
2464
|
-
|
|
4793
|
+
"moveRole": {
|
|
4794
|
+
"enum": [
|
|
4795
|
+
"pair",
|
|
4796
|
+
"source",
|
|
4797
|
+
"destination"
|
|
4798
|
+
],
|
|
4799
|
+
"description": "Optional move pairing assertion. 'pair' requires the resolved tracked change to be a paired move; 'source' / 'destination' further narrow to a specific half. When the assertion does not hold the decide adapter fails closed."
|
|
2465
4800
|
}
|
|
2466
4801
|
},
|
|
2467
4802
|
"additionalProperties": false,
|
|
@@ -2472,24 +4807,39 @@
|
|
|
2472
4807
|
{
|
|
2473
4808
|
"type": "object",
|
|
2474
4809
|
"properties": {
|
|
2475
|
-
"
|
|
2476
|
-
"const": "range",
|
|
4810
|
+
"id": {
|
|
2477
4811
|
"type": "string"
|
|
2478
4812
|
},
|
|
2479
4813
|
"range": {
|
|
2480
|
-
"
|
|
4814
|
+
"type": "object",
|
|
4815
|
+
"properties": {
|
|
4816
|
+
"kind": {
|
|
4817
|
+
"const": "partial",
|
|
4818
|
+
"type": "string"
|
|
4819
|
+
},
|
|
4820
|
+
"start": {
|
|
4821
|
+
"type": "integer",
|
|
4822
|
+
"minimum": 0
|
|
4823
|
+
},
|
|
4824
|
+
"end": {
|
|
4825
|
+
"type": "integer",
|
|
4826
|
+
"minimum": 0
|
|
4827
|
+
}
|
|
4828
|
+
},
|
|
4829
|
+
"additionalProperties": false,
|
|
4830
|
+
"required": [
|
|
4831
|
+
"kind",
|
|
4832
|
+
"start",
|
|
4833
|
+
"end"
|
|
4834
|
+
]
|
|
2481
4835
|
},
|
|
2482
4836
|
"story": {
|
|
2483
4837
|
"$ref": "#/$defs/StoryLocator"
|
|
2484
|
-
},
|
|
2485
|
-
"part": {
|
|
2486
|
-
"type": "string",
|
|
2487
|
-
"description": "Optional part discriminator for the range target."
|
|
2488
4838
|
}
|
|
2489
4839
|
},
|
|
2490
4840
|
"additionalProperties": false,
|
|
2491
4841
|
"required": [
|
|
2492
|
-
"
|
|
4842
|
+
"id",
|
|
2493
4843
|
"range"
|
|
2494
4844
|
]
|
|
2495
4845
|
},
|
|
@@ -2519,8 +4869,7 @@
|
|
|
2519
4869
|
"scope"
|
|
2520
4870
|
]
|
|
2521
4871
|
}
|
|
2522
|
-
]
|
|
2523
|
-
"description": "Required for action 'decide'."
|
|
4872
|
+
]
|
|
2524
4873
|
}
|
|
2525
4874
|
},
|
|
2526
4875
|
"required": [
|
|
@@ -2538,6 +4887,10 @@
|
|
|
2538
4887
|
"parameters": {
|
|
2539
4888
|
"type": "object",
|
|
2540
4889
|
"properties": {
|
|
4890
|
+
"in": {
|
|
4891
|
+
"$ref": "#/$defs/StoryLocator",
|
|
4892
|
+
"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."
|
|
4893
|
+
},
|
|
2541
4894
|
"select": {
|
|
2542
4895
|
"description": "Search selector. Use {type:'text', pattern:'...'} for text search or {type:'node', nodeType:'paragraph'|'heading'|...} for node search.",
|
|
2543
4896
|
"oneOf": [
|
|
@@ -2551,18 +4904,22 @@
|
|
|
2551
4904
|
},
|
|
2552
4905
|
"pattern": {
|
|
2553
4906
|
"type": "string",
|
|
2554
|
-
"description": "Text
|
|
4907
|
+
"description": "Text to match. In regex mode, patterns are validated for syntax, maximum length, and safety before execution."
|
|
2555
4908
|
},
|
|
2556
4909
|
"mode": {
|
|
2557
4910
|
"enum": [
|
|
2558
4911
|
"contains",
|
|
2559
4912
|
"regex"
|
|
2560
4913
|
],
|
|
2561
|
-
"description": "Match mode: 'contains' (substring) or 'regex'."
|
|
4914
|
+
"description": "Match mode: 'contains' (literal substring, recommended for literal text) or 'regex' (validated regular expression)."
|
|
2562
4915
|
},
|
|
2563
4916
|
"caseSensitive": {
|
|
2564
4917
|
"type": "boolean",
|
|
2565
4918
|
"description": "Case-sensitive matching. Default: false."
|
|
4919
|
+
},
|
|
4920
|
+
"wholeWord": {
|
|
4921
|
+
"type": "boolean",
|
|
4922
|
+
"description": "Require word-boundary matches. Default: false."
|
|
2566
4923
|
}
|
|
2567
4924
|
},
|
|
2568
4925
|
"additionalProperties": false,
|
|
@@ -2679,6 +5036,10 @@
|
|
|
2679
5036
|
],
|
|
2680
5037
|
"description": "The action to perform. One of: apply, preview."
|
|
2681
5038
|
},
|
|
5039
|
+
"in": {
|
|
5040
|
+
"$ref": "#/$defs/StoryLocator",
|
|
5041
|
+
"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."
|
|
5042
|
+
},
|
|
2682
5043
|
"expectedRevision": {
|
|
2683
5044
|
"type": "string",
|
|
2684
5045
|
"description": "Document revision for optimistic concurrency. Mutation fails if document was modified since this revision. Only for action 'preview'. Omit for other actions."
|
|
@@ -2730,18 +5091,22 @@
|
|
|
2730
5091
|
},
|
|
2731
5092
|
"pattern": {
|
|
2732
5093
|
"type": "string",
|
|
2733
|
-
"description": "Text
|
|
5094
|
+
"description": "Text to match. In regex mode, patterns are validated for syntax, maximum length, and safety before execution."
|
|
2734
5095
|
},
|
|
2735
5096
|
"mode": {
|
|
2736
5097
|
"enum": [
|
|
2737
5098
|
"contains",
|
|
2738
5099
|
"regex"
|
|
2739
5100
|
],
|
|
2740
|
-
"description": "Match mode: 'contains' (substring) or 'regex'."
|
|
5101
|
+
"description": "Match mode: 'contains' (literal substring, recommended for literal text) or 'regex' (validated regular expression)."
|
|
2741
5102
|
},
|
|
2742
5103
|
"caseSensitive": {
|
|
2743
5104
|
"type": "boolean",
|
|
2744
5105
|
"description": "Case-sensitive matching. Default: false."
|
|
5106
|
+
},
|
|
5107
|
+
"wholeWord": {
|
|
5108
|
+
"type": "boolean",
|
|
5109
|
+
"description": "Require word-boundary matches. Default: false."
|
|
2745
5110
|
}
|
|
2746
5111
|
},
|
|
2747
5112
|
"additionalProperties": false,
|
|
@@ -3066,18 +5431,22 @@
|
|
|
3066
5431
|
},
|
|
3067
5432
|
"pattern": {
|
|
3068
5433
|
"type": "string",
|
|
3069
|
-
"description": "Text
|
|
5434
|
+
"description": "Text to match. In regex mode, patterns are validated for syntax, maximum length, and safety before execution."
|
|
3070
5435
|
},
|
|
3071
5436
|
"mode": {
|
|
3072
5437
|
"enum": [
|
|
3073
5438
|
"contains",
|
|
3074
5439
|
"regex"
|
|
3075
5440
|
],
|
|
3076
|
-
"description": "Match mode: 'contains' (substring) or 'regex'."
|
|
5441
|
+
"description": "Match mode: 'contains' (literal substring, recommended for literal text) or 'regex' (validated regular expression)."
|
|
3077
5442
|
},
|
|
3078
5443
|
"caseSensitive": {
|
|
3079
5444
|
"type": "boolean",
|
|
3080
5445
|
"description": "Case-sensitive matching. Default: false."
|
|
5446
|
+
},
|
|
5447
|
+
"wholeWord": {
|
|
5448
|
+
"type": "boolean",
|
|
5449
|
+
"description": "Require word-boundary matches. Default: false."
|
|
3081
5450
|
}
|
|
3082
5451
|
},
|
|
3083
5452
|
"additionalProperties": false,
|
|
@@ -3351,18 +5720,22 @@
|
|
|
3351
5720
|
},
|
|
3352
5721
|
"pattern": {
|
|
3353
5722
|
"type": "string",
|
|
3354
|
-
"description": "Text
|
|
5723
|
+
"description": "Text to match. In regex mode, patterns are validated for syntax, maximum length, and safety before execution."
|
|
3355
5724
|
},
|
|
3356
5725
|
"mode": {
|
|
3357
5726
|
"enum": [
|
|
3358
5727
|
"contains",
|
|
3359
5728
|
"regex"
|
|
3360
5729
|
],
|
|
3361
|
-
"description": "Match mode: 'contains' (substring) or 'regex'."
|
|
5730
|
+
"description": "Match mode: 'contains' (literal substring, recommended for literal text) or 'regex' (validated regular expression)."
|
|
3362
5731
|
},
|
|
3363
5732
|
"caseSensitive": {
|
|
3364
5733
|
"type": "boolean",
|
|
3365
5734
|
"description": "Case-sensitive matching. Default: false."
|
|
5735
|
+
},
|
|
5736
|
+
"wholeWord": {
|
|
5737
|
+
"type": "boolean",
|
|
5738
|
+
"description": "Require word-boundary matches. Default: false."
|
|
3366
5739
|
}
|
|
3367
5740
|
},
|
|
3368
5741
|
"additionalProperties": false,
|
|
@@ -3558,18 +5931,22 @@
|
|
|
3558
5931
|
},
|
|
3559
5932
|
"pattern": {
|
|
3560
5933
|
"type": "string",
|
|
3561
|
-
"description": "Text
|
|
5934
|
+
"description": "Text to match. In regex mode, patterns are validated for syntax, maximum length, and safety before execution."
|
|
3562
5935
|
},
|
|
3563
5936
|
"mode": {
|
|
3564
5937
|
"enum": [
|
|
3565
5938
|
"contains",
|
|
3566
5939
|
"regex"
|
|
3567
5940
|
],
|
|
3568
|
-
"description": "Match mode: 'contains' (substring) or 'regex'."
|
|
5941
|
+
"description": "Match mode: 'contains' (literal substring, recommended for literal text) or 'regex' (validated regular expression)."
|
|
3569
5942
|
},
|
|
3570
5943
|
"caseSensitive": {
|
|
3571
5944
|
"type": "boolean",
|
|
3572
5945
|
"description": "Case-sensitive matching. Default: false."
|
|
5946
|
+
},
|
|
5947
|
+
"wholeWord": {
|
|
5948
|
+
"type": "boolean",
|
|
5949
|
+
"description": "Require word-boundary matches. Default: false."
|
|
3573
5950
|
}
|
|
3574
5951
|
},
|
|
3575
5952
|
"additionalProperties": false,
|
|
@@ -4588,18 +6965,22 @@
|
|
|
4588
6965
|
},
|
|
4589
6966
|
"pattern": {
|
|
4590
6967
|
"type": "string",
|
|
4591
|
-
"description": "Text
|
|
6968
|
+
"description": "Text to match. In regex mode, patterns are validated for syntax, maximum length, and safety before execution."
|
|
4592
6969
|
},
|
|
4593
6970
|
"mode": {
|
|
4594
6971
|
"enum": [
|
|
4595
6972
|
"contains",
|
|
4596
6973
|
"regex"
|
|
4597
6974
|
],
|
|
4598
|
-
"description": "Match mode: 'contains' (substring) or 'regex'."
|
|
6975
|
+
"description": "Match mode: 'contains' (literal substring, recommended for literal text) or 'regex' (validated regular expression)."
|
|
4599
6976
|
},
|
|
4600
6977
|
"caseSensitive": {
|
|
4601
6978
|
"type": "boolean",
|
|
4602
6979
|
"description": "Case-sensitive matching. Default: false."
|
|
6980
|
+
},
|
|
6981
|
+
"wholeWord": {
|
|
6982
|
+
"type": "boolean",
|
|
6983
|
+
"description": "Require word-boundary matches. Default: false."
|
|
4603
6984
|
}
|
|
4604
6985
|
},
|
|
4605
6986
|
"additionalProperties": false,
|
|
@@ -4725,6 +7106,7 @@
|
|
|
4725
7106
|
"insert_column",
|
|
4726
7107
|
"insert_row",
|
|
4727
7108
|
"merge_cells",
|
|
7109
|
+
"move_row",
|
|
4728
7110
|
"set_borders",
|
|
4729
7111
|
"set_cell",
|
|
4730
7112
|
"set_cell_text",
|
|
@@ -4737,7 +7119,7 @@
|
|
|
4737
7119
|
"set_style_options",
|
|
4738
7120
|
"unmerge_cells"
|
|
4739
7121
|
],
|
|
4740
|
-
"description": "The action to perform. One of: delete, delete_column, delete_row, insert_column, insert_row, merge_cells, set_borders, set_cell, set_cell_text, set_column, set_layout, set_options, set_row, set_row_options, set_shading, set_style_options, unmerge_cells."
|
|
7122
|
+
"description": "The action to perform. One of: delete, delete_column, delete_row, insert_column, insert_row, merge_cells, move_row, set_borders, set_cell, set_cell_text, set_column, set_layout, set_options, set_row, set_row_options, set_shading, set_style_options, unmerge_cells."
|
|
4741
7123
|
},
|
|
4742
7124
|
"force": {
|
|
4743
7125
|
"type": "boolean",
|
|
@@ -4785,20 +7167,34 @@
|
|
|
4785
7167
|
"oneOf": [
|
|
4786
7168
|
{
|
|
4787
7169
|
"oneOf": [
|
|
4788
|
-
{
|
|
4789
|
-
"$ref": "#/$defs/TableAddress"
|
|
4790
|
-
},
|
|
4791
7170
|
{
|
|
4792
7171
|
"oneOf": [
|
|
7172
|
+
{
|
|
7173
|
+
"$ref": "#/$defs/TableAddress"
|
|
7174
|
+
},
|
|
4793
7175
|
{
|
|
4794
7176
|
"oneOf": [
|
|
4795
7177
|
{
|
|
4796
|
-
"
|
|
7178
|
+
"oneOf": [
|
|
7179
|
+
{
|
|
7180
|
+
"$ref": "#/$defs/TableRowAddress"
|
|
7181
|
+
},
|
|
7182
|
+
{
|
|
7183
|
+
"$ref": "#/$defs/TableAddress"
|
|
7184
|
+
}
|
|
7185
|
+
]
|
|
4797
7186
|
},
|
|
4798
7187
|
{
|
|
4799
7188
|
"$ref": "#/$defs/TableAddress"
|
|
4800
7189
|
}
|
|
4801
7190
|
]
|
|
7191
|
+
}
|
|
7192
|
+
]
|
|
7193
|
+
},
|
|
7194
|
+
{
|
|
7195
|
+
"oneOf": [
|
|
7196
|
+
{
|
|
7197
|
+
"$ref": "#/$defs/TableRowAddress"
|
|
4802
7198
|
},
|
|
4803
7199
|
{
|
|
4804
7200
|
"$ref": "#/$defs/TableAddress"
|
|
@@ -4920,6 +7316,14 @@
|
|
|
4920
7316
|
"type": "number",
|
|
4921
7317
|
"description": "Only for action 'set_layout'. Omit for other actions."
|
|
4922
7318
|
},
|
|
7319
|
+
"preferredWidthType": {
|
|
7320
|
+
"enum": [
|
|
7321
|
+
"dxa",
|
|
7322
|
+
"auto",
|
|
7323
|
+
"pct"
|
|
7324
|
+
],
|
|
7325
|
+
"description": "Only for action 'set_layout'. Omit for other actions."
|
|
7326
|
+
},
|
|
4923
7327
|
"alignment": {
|
|
4924
7328
|
"enum": [
|
|
4925
7329
|
"left",
|
|
@@ -4966,7 +7370,142 @@
|
|
|
4966
7370
|
"rowIndex": {
|
|
4967
7371
|
"type": "integer",
|
|
4968
7372
|
"minimum": 0,
|
|
4969
|
-
"description": "Only for actions 'insert_row', 'delete_row', 'set_row', 'set_row_options', 'unmerge_cells', 'set_cell_text'. Omit for other actions."
|
|
7373
|
+
"description": "Only for actions 'insert_row', 'delete_row', 'move_row', 'set_row', 'set_row_options', 'unmerge_cells', 'set_cell_text'. Omit for other actions."
|
|
7374
|
+
},
|
|
7375
|
+
"destination": {
|
|
7376
|
+
"oneOf": [
|
|
7377
|
+
{
|
|
7378
|
+
"type": "object",
|
|
7379
|
+
"properties": {
|
|
7380
|
+
"kind": {
|
|
7381
|
+
"const": "first",
|
|
7382
|
+
"type": "string"
|
|
7383
|
+
}
|
|
7384
|
+
},
|
|
7385
|
+
"additionalProperties": false,
|
|
7386
|
+
"required": [
|
|
7387
|
+
"kind"
|
|
7388
|
+
]
|
|
7389
|
+
},
|
|
7390
|
+
{
|
|
7391
|
+
"type": "object",
|
|
7392
|
+
"properties": {
|
|
7393
|
+
"kind": {
|
|
7394
|
+
"const": "last",
|
|
7395
|
+
"type": "string"
|
|
7396
|
+
}
|
|
7397
|
+
},
|
|
7398
|
+
"additionalProperties": false,
|
|
7399
|
+
"required": [
|
|
7400
|
+
"kind"
|
|
7401
|
+
]
|
|
7402
|
+
},
|
|
7403
|
+
{
|
|
7404
|
+
"type": "object",
|
|
7405
|
+
"properties": {
|
|
7406
|
+
"kind": {
|
|
7407
|
+
"const": "before",
|
|
7408
|
+
"type": "string"
|
|
7409
|
+
},
|
|
7410
|
+
"rowIndex": {
|
|
7411
|
+
"type": "integer",
|
|
7412
|
+
"minimum": 0
|
|
7413
|
+
}
|
|
7414
|
+
},
|
|
7415
|
+
"additionalProperties": false,
|
|
7416
|
+
"required": [
|
|
7417
|
+
"kind",
|
|
7418
|
+
"rowIndex"
|
|
7419
|
+
]
|
|
7420
|
+
},
|
|
7421
|
+
{
|
|
7422
|
+
"type": "object",
|
|
7423
|
+
"properties": {
|
|
7424
|
+
"kind": {
|
|
7425
|
+
"const": "after",
|
|
7426
|
+
"type": "string"
|
|
7427
|
+
},
|
|
7428
|
+
"rowIndex": {
|
|
7429
|
+
"type": "integer",
|
|
7430
|
+
"minimum": 0
|
|
7431
|
+
}
|
|
7432
|
+
},
|
|
7433
|
+
"additionalProperties": false,
|
|
7434
|
+
"required": [
|
|
7435
|
+
"kind",
|
|
7436
|
+
"rowIndex"
|
|
7437
|
+
]
|
|
7438
|
+
},
|
|
7439
|
+
{
|
|
7440
|
+
"type": "object",
|
|
7441
|
+
"properties": {
|
|
7442
|
+
"kind": {
|
|
7443
|
+
"const": "before",
|
|
7444
|
+
"type": "string"
|
|
7445
|
+
},
|
|
7446
|
+
"target": {
|
|
7447
|
+
"$ref": "#/$defs/TableRowAddress"
|
|
7448
|
+
}
|
|
7449
|
+
},
|
|
7450
|
+
"additionalProperties": false,
|
|
7451
|
+
"required": [
|
|
7452
|
+
"kind",
|
|
7453
|
+
"target"
|
|
7454
|
+
]
|
|
7455
|
+
},
|
|
7456
|
+
{
|
|
7457
|
+
"type": "object",
|
|
7458
|
+
"properties": {
|
|
7459
|
+
"kind": {
|
|
7460
|
+
"const": "after",
|
|
7461
|
+
"type": "string"
|
|
7462
|
+
},
|
|
7463
|
+
"target": {
|
|
7464
|
+
"$ref": "#/$defs/TableRowAddress"
|
|
7465
|
+
}
|
|
7466
|
+
},
|
|
7467
|
+
"additionalProperties": false,
|
|
7468
|
+
"required": [
|
|
7469
|
+
"kind",
|
|
7470
|
+
"target"
|
|
7471
|
+
]
|
|
7472
|
+
},
|
|
7473
|
+
{
|
|
7474
|
+
"type": "object",
|
|
7475
|
+
"properties": {
|
|
7476
|
+
"kind": {
|
|
7477
|
+
"const": "before",
|
|
7478
|
+
"type": "string"
|
|
7479
|
+
},
|
|
7480
|
+
"nodeId": {
|
|
7481
|
+
"type": "string"
|
|
7482
|
+
}
|
|
7483
|
+
},
|
|
7484
|
+
"additionalProperties": false,
|
|
7485
|
+
"required": [
|
|
7486
|
+
"kind",
|
|
7487
|
+
"nodeId"
|
|
7488
|
+
]
|
|
7489
|
+
},
|
|
7490
|
+
{
|
|
7491
|
+
"type": "object",
|
|
7492
|
+
"properties": {
|
|
7493
|
+
"kind": {
|
|
7494
|
+
"const": "after",
|
|
7495
|
+
"type": "string"
|
|
7496
|
+
},
|
|
7497
|
+
"nodeId": {
|
|
7498
|
+
"type": "string"
|
|
7499
|
+
}
|
|
7500
|
+
},
|
|
7501
|
+
"additionalProperties": false,
|
|
7502
|
+
"required": [
|
|
7503
|
+
"kind",
|
|
7504
|
+
"nodeId"
|
|
7505
|
+
]
|
|
7506
|
+
}
|
|
7507
|
+
],
|
|
7508
|
+
"description": "Required for action 'move_row'."
|
|
4970
7509
|
},
|
|
4971
7510
|
"heightPt": {
|
|
4972
7511
|
"type": "number",
|
|
@@ -4979,7 +7518,7 @@
|
|
|
4979
7518
|
"exact",
|
|
4980
7519
|
"auto"
|
|
4981
7520
|
],
|
|
4982
|
-
"description": "
|
|
7521
|
+
"description": "Only for action 'set_row'. Omit for other actions."
|
|
4983
7522
|
},
|
|
4984
7523
|
"allowBreakAcrossPages": {
|
|
4985
7524
|
"type": "boolean",
|
|
@@ -4989,6 +7528,62 @@
|
|
|
4989
7528
|
"type": "boolean",
|
|
4990
7529
|
"description": "Only for action 'set_row_options'. Omit for other actions."
|
|
4991
7530
|
},
|
|
7531
|
+
"gridBefore": {
|
|
7532
|
+
"type": "integer",
|
|
7533
|
+
"minimum": 0,
|
|
7534
|
+
"description": "Only for action 'set_row_options'. Omit for other actions."
|
|
7535
|
+
},
|
|
7536
|
+
"gridAfter": {
|
|
7537
|
+
"type": "integer",
|
|
7538
|
+
"minimum": 0,
|
|
7539
|
+
"description": "Only for action 'set_row_options'. Omit for other actions."
|
|
7540
|
+
},
|
|
7541
|
+
"wBefore": {
|
|
7542
|
+
"type": "object",
|
|
7543
|
+
"properties": {
|
|
7544
|
+
"value": {
|
|
7545
|
+
"type": "integer",
|
|
7546
|
+
"minimum": 0
|
|
7547
|
+
},
|
|
7548
|
+
"type": {
|
|
7549
|
+
"enum": [
|
|
7550
|
+
"auto",
|
|
7551
|
+
"dxa",
|
|
7552
|
+
"nil",
|
|
7553
|
+
"pct"
|
|
7554
|
+
]
|
|
7555
|
+
}
|
|
7556
|
+
},
|
|
7557
|
+
"additionalProperties": false,
|
|
7558
|
+
"required": [
|
|
7559
|
+
"value",
|
|
7560
|
+
"type"
|
|
7561
|
+
],
|
|
7562
|
+
"description": "Only for action 'set_row_options'. Omit for other actions."
|
|
7563
|
+
},
|
|
7564
|
+
"wAfter": {
|
|
7565
|
+
"type": "object",
|
|
7566
|
+
"properties": {
|
|
7567
|
+
"value": {
|
|
7568
|
+
"type": "integer",
|
|
7569
|
+
"minimum": 0
|
|
7570
|
+
},
|
|
7571
|
+
"type": {
|
|
7572
|
+
"enum": [
|
|
7573
|
+
"auto",
|
|
7574
|
+
"dxa",
|
|
7575
|
+
"nil",
|
|
7576
|
+
"pct"
|
|
7577
|
+
]
|
|
7578
|
+
}
|
|
7579
|
+
},
|
|
7580
|
+
"additionalProperties": false,
|
|
7581
|
+
"required": [
|
|
7582
|
+
"value",
|
|
7583
|
+
"type"
|
|
7584
|
+
],
|
|
7585
|
+
"description": "Only for action 'set_row_options'. Omit for other actions."
|
|
7586
|
+
},
|
|
4992
7587
|
"columnIndex": {
|
|
4993
7588
|
"type": "integer",
|
|
4994
7589
|
"minimum": 0,
|