@superdoc-dev/sdk 1.16.0-next.5 → 1.16.0-next.50
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 +8 -0
- package/dist/generated/client.d.ts +55931 -4682
- package/dist/generated/client.d.ts.map +1 -1
- package/dist/generated/client.js +8 -0
- package/dist/generated/contract.cjs +118331 -28612
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +118458 -28556
- 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 +2575 -130
- package/tools/tools-policy.json +1 -1
- package/tools/tools.anthropic.json +2570 -111
- package/tools/tools.generic.json +2570 -111
- package/tools/tools.openai.json +2570 -111
- package/tools/tools.vercel.json +2570 -111
package/tools/catalog.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."
|
|
@@ -154,6 +158,174 @@
|
|
|
154
158
|
},
|
|
155
159
|
"offset": {
|
|
156
160
|
"type": "number"
|
|
161
|
+
},
|
|
162
|
+
"story": {
|
|
163
|
+
"oneOf": [
|
|
164
|
+
{
|
|
165
|
+
"type": "object",
|
|
166
|
+
"properties": {
|
|
167
|
+
"kind": {
|
|
168
|
+
"const": "story",
|
|
169
|
+
"type": "string"
|
|
170
|
+
},
|
|
171
|
+
"storyType": {
|
|
172
|
+
"const": "body",
|
|
173
|
+
"type": "string"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"required": [
|
|
177
|
+
"kind",
|
|
178
|
+
"storyType"
|
|
179
|
+
]
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"type": "object",
|
|
183
|
+
"properties": {
|
|
184
|
+
"kind": {
|
|
185
|
+
"const": "story",
|
|
186
|
+
"type": "string"
|
|
187
|
+
},
|
|
188
|
+
"storyType": {
|
|
189
|
+
"const": "headerFooterSlot",
|
|
190
|
+
"type": "string"
|
|
191
|
+
},
|
|
192
|
+
"section": {
|
|
193
|
+
"type": "object",
|
|
194
|
+
"properties": {
|
|
195
|
+
"kind": {
|
|
196
|
+
"const": "section",
|
|
197
|
+
"type": "string"
|
|
198
|
+
},
|
|
199
|
+
"sectionId": {
|
|
200
|
+
"type": "string"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"required": [
|
|
204
|
+
"kind",
|
|
205
|
+
"sectionId"
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
|
+
"headerFooterKind": {
|
|
209
|
+
"enum": [
|
|
210
|
+
"header",
|
|
211
|
+
"footer"
|
|
212
|
+
]
|
|
213
|
+
},
|
|
214
|
+
"variant": {
|
|
215
|
+
"enum": [
|
|
216
|
+
"default",
|
|
217
|
+
"first",
|
|
218
|
+
"even"
|
|
219
|
+
]
|
|
220
|
+
},
|
|
221
|
+
"resolution": {
|
|
222
|
+
"enum": [
|
|
223
|
+
"effective",
|
|
224
|
+
"explicit"
|
|
225
|
+
]
|
|
226
|
+
},
|
|
227
|
+
"onWrite": {
|
|
228
|
+
"enum": [
|
|
229
|
+
"materializeIfInherited",
|
|
230
|
+
"editResolvedPart",
|
|
231
|
+
"error"
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"required": [
|
|
236
|
+
"kind",
|
|
237
|
+
"storyType",
|
|
238
|
+
"section",
|
|
239
|
+
"headerFooterKind",
|
|
240
|
+
"variant"
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"type": "object",
|
|
245
|
+
"properties": {
|
|
246
|
+
"kind": {
|
|
247
|
+
"const": "story",
|
|
248
|
+
"type": "string"
|
|
249
|
+
},
|
|
250
|
+
"storyType": {
|
|
251
|
+
"const": "headerFooterPart",
|
|
252
|
+
"type": "string"
|
|
253
|
+
},
|
|
254
|
+
"refId": {
|
|
255
|
+
"type": "string"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"required": [
|
|
259
|
+
"kind",
|
|
260
|
+
"storyType",
|
|
261
|
+
"refId"
|
|
262
|
+
]
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"type": "object",
|
|
266
|
+
"properties": {
|
|
267
|
+
"kind": {
|
|
268
|
+
"const": "story",
|
|
269
|
+
"type": "string"
|
|
270
|
+
},
|
|
271
|
+
"storyType": {
|
|
272
|
+
"const": "footnote",
|
|
273
|
+
"type": "string"
|
|
274
|
+
},
|
|
275
|
+
"noteId": {
|
|
276
|
+
"type": "string"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"required": [
|
|
280
|
+
"kind",
|
|
281
|
+
"storyType",
|
|
282
|
+
"noteId"
|
|
283
|
+
]
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"type": "object",
|
|
287
|
+
"properties": {
|
|
288
|
+
"kind": {
|
|
289
|
+
"const": "story",
|
|
290
|
+
"type": "string"
|
|
291
|
+
},
|
|
292
|
+
"storyType": {
|
|
293
|
+
"const": "endnote",
|
|
294
|
+
"type": "string"
|
|
295
|
+
},
|
|
296
|
+
"noteId": {
|
|
297
|
+
"type": "string"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"required": [
|
|
301
|
+
"kind",
|
|
302
|
+
"storyType",
|
|
303
|
+
"noteId"
|
|
304
|
+
]
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"type": "object",
|
|
308
|
+
"properties": {
|
|
309
|
+
"kind": {
|
|
310
|
+
"const": "story",
|
|
311
|
+
"type": "string"
|
|
312
|
+
},
|
|
313
|
+
"storyType": {
|
|
314
|
+
"const": "textbox",
|
|
315
|
+
"type": "string"
|
|
316
|
+
},
|
|
317
|
+
"textboxId": {
|
|
318
|
+
"type": "string"
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"required": [
|
|
322
|
+
"kind",
|
|
323
|
+
"storyType",
|
|
324
|
+
"textboxId"
|
|
325
|
+
]
|
|
326
|
+
}
|
|
327
|
+
],
|
|
328
|
+
"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."
|
|
157
329
|
}
|
|
158
330
|
},
|
|
159
331
|
"required": [
|
|
@@ -188,6 +360,174 @@
|
|
|
188
360
|
},
|
|
189
361
|
"nodeId": {
|
|
190
362
|
"type": "string"
|
|
363
|
+
},
|
|
364
|
+
"story": {
|
|
365
|
+
"oneOf": [
|
|
366
|
+
{
|
|
367
|
+
"type": "object",
|
|
368
|
+
"properties": {
|
|
369
|
+
"kind": {
|
|
370
|
+
"const": "story",
|
|
371
|
+
"type": "string"
|
|
372
|
+
},
|
|
373
|
+
"storyType": {
|
|
374
|
+
"const": "body",
|
|
375
|
+
"type": "string"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"required": [
|
|
379
|
+
"kind",
|
|
380
|
+
"storyType"
|
|
381
|
+
]
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"type": "object",
|
|
385
|
+
"properties": {
|
|
386
|
+
"kind": {
|
|
387
|
+
"const": "story",
|
|
388
|
+
"type": "string"
|
|
389
|
+
},
|
|
390
|
+
"storyType": {
|
|
391
|
+
"const": "headerFooterSlot",
|
|
392
|
+
"type": "string"
|
|
393
|
+
},
|
|
394
|
+
"section": {
|
|
395
|
+
"type": "object",
|
|
396
|
+
"properties": {
|
|
397
|
+
"kind": {
|
|
398
|
+
"const": "section",
|
|
399
|
+
"type": "string"
|
|
400
|
+
},
|
|
401
|
+
"sectionId": {
|
|
402
|
+
"type": "string"
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"required": [
|
|
406
|
+
"kind",
|
|
407
|
+
"sectionId"
|
|
408
|
+
]
|
|
409
|
+
},
|
|
410
|
+
"headerFooterKind": {
|
|
411
|
+
"enum": [
|
|
412
|
+
"header",
|
|
413
|
+
"footer"
|
|
414
|
+
]
|
|
415
|
+
},
|
|
416
|
+
"variant": {
|
|
417
|
+
"enum": [
|
|
418
|
+
"default",
|
|
419
|
+
"first",
|
|
420
|
+
"even"
|
|
421
|
+
]
|
|
422
|
+
},
|
|
423
|
+
"resolution": {
|
|
424
|
+
"enum": [
|
|
425
|
+
"effective",
|
|
426
|
+
"explicit"
|
|
427
|
+
]
|
|
428
|
+
},
|
|
429
|
+
"onWrite": {
|
|
430
|
+
"enum": [
|
|
431
|
+
"materializeIfInherited",
|
|
432
|
+
"editResolvedPart",
|
|
433
|
+
"error"
|
|
434
|
+
]
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
"required": [
|
|
438
|
+
"kind",
|
|
439
|
+
"storyType",
|
|
440
|
+
"section",
|
|
441
|
+
"headerFooterKind",
|
|
442
|
+
"variant"
|
|
443
|
+
]
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"type": "object",
|
|
447
|
+
"properties": {
|
|
448
|
+
"kind": {
|
|
449
|
+
"const": "story",
|
|
450
|
+
"type": "string"
|
|
451
|
+
},
|
|
452
|
+
"storyType": {
|
|
453
|
+
"const": "headerFooterPart",
|
|
454
|
+
"type": "string"
|
|
455
|
+
},
|
|
456
|
+
"refId": {
|
|
457
|
+
"type": "string"
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
"required": [
|
|
461
|
+
"kind",
|
|
462
|
+
"storyType",
|
|
463
|
+
"refId"
|
|
464
|
+
]
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"type": "object",
|
|
468
|
+
"properties": {
|
|
469
|
+
"kind": {
|
|
470
|
+
"const": "story",
|
|
471
|
+
"type": "string"
|
|
472
|
+
},
|
|
473
|
+
"storyType": {
|
|
474
|
+
"const": "footnote",
|
|
475
|
+
"type": "string"
|
|
476
|
+
},
|
|
477
|
+
"noteId": {
|
|
478
|
+
"type": "string"
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
"required": [
|
|
482
|
+
"kind",
|
|
483
|
+
"storyType",
|
|
484
|
+
"noteId"
|
|
485
|
+
]
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"type": "object",
|
|
489
|
+
"properties": {
|
|
490
|
+
"kind": {
|
|
491
|
+
"const": "story",
|
|
492
|
+
"type": "string"
|
|
493
|
+
},
|
|
494
|
+
"storyType": {
|
|
495
|
+
"const": "endnote",
|
|
496
|
+
"type": "string"
|
|
497
|
+
},
|
|
498
|
+
"noteId": {
|
|
499
|
+
"type": "string"
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
"required": [
|
|
503
|
+
"kind",
|
|
504
|
+
"storyType",
|
|
505
|
+
"noteId"
|
|
506
|
+
]
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"type": "object",
|
|
510
|
+
"properties": {
|
|
511
|
+
"kind": {
|
|
512
|
+
"const": "story",
|
|
513
|
+
"type": "string"
|
|
514
|
+
},
|
|
515
|
+
"storyType": {
|
|
516
|
+
"const": "textbox",
|
|
517
|
+
"type": "string"
|
|
518
|
+
},
|
|
519
|
+
"textboxId": {
|
|
520
|
+
"type": "string"
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
"required": [
|
|
524
|
+
"kind",
|
|
525
|
+
"storyType",
|
|
526
|
+
"textboxId"
|
|
527
|
+
]
|
|
528
|
+
}
|
|
529
|
+
],
|
|
530
|
+
"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."
|
|
191
531
|
}
|
|
192
532
|
},
|
|
193
533
|
"required": [
|
|
@@ -226,6 +566,174 @@
|
|
|
226
566
|
},
|
|
227
567
|
"offset": {
|
|
228
568
|
"type": "number"
|
|
569
|
+
},
|
|
570
|
+
"story": {
|
|
571
|
+
"oneOf": [
|
|
572
|
+
{
|
|
573
|
+
"type": "object",
|
|
574
|
+
"properties": {
|
|
575
|
+
"kind": {
|
|
576
|
+
"const": "story",
|
|
577
|
+
"type": "string"
|
|
578
|
+
},
|
|
579
|
+
"storyType": {
|
|
580
|
+
"const": "body",
|
|
581
|
+
"type": "string"
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
"required": [
|
|
585
|
+
"kind",
|
|
586
|
+
"storyType"
|
|
587
|
+
]
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"type": "object",
|
|
591
|
+
"properties": {
|
|
592
|
+
"kind": {
|
|
593
|
+
"const": "story",
|
|
594
|
+
"type": "string"
|
|
595
|
+
},
|
|
596
|
+
"storyType": {
|
|
597
|
+
"const": "headerFooterSlot",
|
|
598
|
+
"type": "string"
|
|
599
|
+
},
|
|
600
|
+
"section": {
|
|
601
|
+
"type": "object",
|
|
602
|
+
"properties": {
|
|
603
|
+
"kind": {
|
|
604
|
+
"const": "section",
|
|
605
|
+
"type": "string"
|
|
606
|
+
},
|
|
607
|
+
"sectionId": {
|
|
608
|
+
"type": "string"
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
"required": [
|
|
612
|
+
"kind",
|
|
613
|
+
"sectionId"
|
|
614
|
+
]
|
|
615
|
+
},
|
|
616
|
+
"headerFooterKind": {
|
|
617
|
+
"enum": [
|
|
618
|
+
"header",
|
|
619
|
+
"footer"
|
|
620
|
+
]
|
|
621
|
+
},
|
|
622
|
+
"variant": {
|
|
623
|
+
"enum": [
|
|
624
|
+
"default",
|
|
625
|
+
"first",
|
|
626
|
+
"even"
|
|
627
|
+
]
|
|
628
|
+
},
|
|
629
|
+
"resolution": {
|
|
630
|
+
"enum": [
|
|
631
|
+
"effective",
|
|
632
|
+
"explicit"
|
|
633
|
+
]
|
|
634
|
+
},
|
|
635
|
+
"onWrite": {
|
|
636
|
+
"enum": [
|
|
637
|
+
"materializeIfInherited",
|
|
638
|
+
"editResolvedPart",
|
|
639
|
+
"error"
|
|
640
|
+
]
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
"required": [
|
|
644
|
+
"kind",
|
|
645
|
+
"storyType",
|
|
646
|
+
"section",
|
|
647
|
+
"headerFooterKind",
|
|
648
|
+
"variant"
|
|
649
|
+
]
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"type": "object",
|
|
653
|
+
"properties": {
|
|
654
|
+
"kind": {
|
|
655
|
+
"const": "story",
|
|
656
|
+
"type": "string"
|
|
657
|
+
},
|
|
658
|
+
"storyType": {
|
|
659
|
+
"const": "headerFooterPart",
|
|
660
|
+
"type": "string"
|
|
661
|
+
},
|
|
662
|
+
"refId": {
|
|
663
|
+
"type": "string"
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
"required": [
|
|
667
|
+
"kind",
|
|
668
|
+
"storyType",
|
|
669
|
+
"refId"
|
|
670
|
+
]
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"type": "object",
|
|
674
|
+
"properties": {
|
|
675
|
+
"kind": {
|
|
676
|
+
"const": "story",
|
|
677
|
+
"type": "string"
|
|
678
|
+
},
|
|
679
|
+
"storyType": {
|
|
680
|
+
"const": "footnote",
|
|
681
|
+
"type": "string"
|
|
682
|
+
},
|
|
683
|
+
"noteId": {
|
|
684
|
+
"type": "string"
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
"required": [
|
|
688
|
+
"kind",
|
|
689
|
+
"storyType",
|
|
690
|
+
"noteId"
|
|
691
|
+
]
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"type": "object",
|
|
695
|
+
"properties": {
|
|
696
|
+
"kind": {
|
|
697
|
+
"const": "story",
|
|
698
|
+
"type": "string"
|
|
699
|
+
},
|
|
700
|
+
"storyType": {
|
|
701
|
+
"const": "endnote",
|
|
702
|
+
"type": "string"
|
|
703
|
+
},
|
|
704
|
+
"noteId": {
|
|
705
|
+
"type": "string"
|
|
706
|
+
}
|
|
707
|
+
},
|
|
708
|
+
"required": [
|
|
709
|
+
"kind",
|
|
710
|
+
"storyType",
|
|
711
|
+
"noteId"
|
|
712
|
+
]
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"type": "object",
|
|
716
|
+
"properties": {
|
|
717
|
+
"kind": {
|
|
718
|
+
"const": "story",
|
|
719
|
+
"type": "string"
|
|
720
|
+
},
|
|
721
|
+
"storyType": {
|
|
722
|
+
"const": "textbox",
|
|
723
|
+
"type": "string"
|
|
724
|
+
},
|
|
725
|
+
"textboxId": {
|
|
726
|
+
"type": "string"
|
|
727
|
+
}
|
|
728
|
+
},
|
|
729
|
+
"required": [
|
|
730
|
+
"kind",
|
|
731
|
+
"storyType",
|
|
732
|
+
"textboxId"
|
|
733
|
+
]
|
|
734
|
+
}
|
|
735
|
+
],
|
|
736
|
+
"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."
|
|
229
737
|
}
|
|
230
738
|
},
|
|
231
739
|
"required": [
|
|
@@ -260,6 +768,174 @@
|
|
|
260
768
|
},
|
|
261
769
|
"nodeId": {
|
|
262
770
|
"type": "string"
|
|
771
|
+
},
|
|
772
|
+
"story": {
|
|
773
|
+
"oneOf": [
|
|
774
|
+
{
|
|
775
|
+
"type": "object",
|
|
776
|
+
"properties": {
|
|
777
|
+
"kind": {
|
|
778
|
+
"const": "story",
|
|
779
|
+
"type": "string"
|
|
780
|
+
},
|
|
781
|
+
"storyType": {
|
|
782
|
+
"const": "body",
|
|
783
|
+
"type": "string"
|
|
784
|
+
}
|
|
785
|
+
},
|
|
786
|
+
"required": [
|
|
787
|
+
"kind",
|
|
788
|
+
"storyType"
|
|
789
|
+
]
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"type": "object",
|
|
793
|
+
"properties": {
|
|
794
|
+
"kind": {
|
|
795
|
+
"const": "story",
|
|
796
|
+
"type": "string"
|
|
797
|
+
},
|
|
798
|
+
"storyType": {
|
|
799
|
+
"const": "headerFooterSlot",
|
|
800
|
+
"type": "string"
|
|
801
|
+
},
|
|
802
|
+
"section": {
|
|
803
|
+
"type": "object",
|
|
804
|
+
"properties": {
|
|
805
|
+
"kind": {
|
|
806
|
+
"const": "section",
|
|
807
|
+
"type": "string"
|
|
808
|
+
},
|
|
809
|
+
"sectionId": {
|
|
810
|
+
"type": "string"
|
|
811
|
+
}
|
|
812
|
+
},
|
|
813
|
+
"required": [
|
|
814
|
+
"kind",
|
|
815
|
+
"sectionId"
|
|
816
|
+
]
|
|
817
|
+
},
|
|
818
|
+
"headerFooterKind": {
|
|
819
|
+
"enum": [
|
|
820
|
+
"header",
|
|
821
|
+
"footer"
|
|
822
|
+
]
|
|
823
|
+
},
|
|
824
|
+
"variant": {
|
|
825
|
+
"enum": [
|
|
826
|
+
"default",
|
|
827
|
+
"first",
|
|
828
|
+
"even"
|
|
829
|
+
]
|
|
830
|
+
},
|
|
831
|
+
"resolution": {
|
|
832
|
+
"enum": [
|
|
833
|
+
"effective",
|
|
834
|
+
"explicit"
|
|
835
|
+
]
|
|
836
|
+
},
|
|
837
|
+
"onWrite": {
|
|
838
|
+
"enum": [
|
|
839
|
+
"materializeIfInherited",
|
|
840
|
+
"editResolvedPart",
|
|
841
|
+
"error"
|
|
842
|
+
]
|
|
843
|
+
}
|
|
844
|
+
},
|
|
845
|
+
"required": [
|
|
846
|
+
"kind",
|
|
847
|
+
"storyType",
|
|
848
|
+
"section",
|
|
849
|
+
"headerFooterKind",
|
|
850
|
+
"variant"
|
|
851
|
+
]
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
"type": "object",
|
|
855
|
+
"properties": {
|
|
856
|
+
"kind": {
|
|
857
|
+
"const": "story",
|
|
858
|
+
"type": "string"
|
|
859
|
+
},
|
|
860
|
+
"storyType": {
|
|
861
|
+
"const": "headerFooterPart",
|
|
862
|
+
"type": "string"
|
|
863
|
+
},
|
|
864
|
+
"refId": {
|
|
865
|
+
"type": "string"
|
|
866
|
+
}
|
|
867
|
+
},
|
|
868
|
+
"required": [
|
|
869
|
+
"kind",
|
|
870
|
+
"storyType",
|
|
871
|
+
"refId"
|
|
872
|
+
]
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"type": "object",
|
|
876
|
+
"properties": {
|
|
877
|
+
"kind": {
|
|
878
|
+
"const": "story",
|
|
879
|
+
"type": "string"
|
|
880
|
+
},
|
|
881
|
+
"storyType": {
|
|
882
|
+
"const": "footnote",
|
|
883
|
+
"type": "string"
|
|
884
|
+
},
|
|
885
|
+
"noteId": {
|
|
886
|
+
"type": "string"
|
|
887
|
+
}
|
|
888
|
+
},
|
|
889
|
+
"required": [
|
|
890
|
+
"kind",
|
|
891
|
+
"storyType",
|
|
892
|
+
"noteId"
|
|
893
|
+
]
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
"type": "object",
|
|
897
|
+
"properties": {
|
|
898
|
+
"kind": {
|
|
899
|
+
"const": "story",
|
|
900
|
+
"type": "string"
|
|
901
|
+
},
|
|
902
|
+
"storyType": {
|
|
903
|
+
"const": "endnote",
|
|
904
|
+
"type": "string"
|
|
905
|
+
},
|
|
906
|
+
"noteId": {
|
|
907
|
+
"type": "string"
|
|
908
|
+
}
|
|
909
|
+
},
|
|
910
|
+
"required": [
|
|
911
|
+
"kind",
|
|
912
|
+
"storyType",
|
|
913
|
+
"noteId"
|
|
914
|
+
]
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"type": "object",
|
|
918
|
+
"properties": {
|
|
919
|
+
"kind": {
|
|
920
|
+
"const": "story",
|
|
921
|
+
"type": "string"
|
|
922
|
+
},
|
|
923
|
+
"storyType": {
|
|
924
|
+
"const": "textbox",
|
|
925
|
+
"type": "string"
|
|
926
|
+
},
|
|
927
|
+
"textboxId": {
|
|
928
|
+
"type": "string"
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
"required": [
|
|
932
|
+
"kind",
|
|
933
|
+
"storyType",
|
|
934
|
+
"textboxId"
|
|
935
|
+
]
|
|
936
|
+
}
|
|
937
|
+
],
|
|
938
|
+
"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."
|
|
263
939
|
}
|
|
264
940
|
},
|
|
265
941
|
"required": [
|
|
@@ -283,65 +959,977 @@
|
|
|
283
959
|
}
|
|
284
960
|
],
|
|
285
961
|
"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."
|
|
286
|
-
}
|
|
287
|
-
},
|
|
288
|
-
"required": [
|
|
289
|
-
"kind",
|
|
290
|
-
"start",
|
|
291
|
-
"end"
|
|
292
|
-
]
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"type": "object",
|
|
296
|
-
"properties": {
|
|
297
|
-
"kind": {
|
|
298
|
-
"const": "block",
|
|
299
|
-
"type": "string"
|
|
300
|
-
},
|
|
301
|
-
"nodeType": {
|
|
302
|
-
"enum": [
|
|
303
|
-
"paragraph",
|
|
304
|
-
"heading",
|
|
305
|
-
"listItem",
|
|
306
|
-
"table",
|
|
307
|
-
"tableRow",
|
|
308
|
-
"tableCell",
|
|
309
|
-
"tableOfContents",
|
|
310
|
-
"image",
|
|
311
|
-
"sdt"
|
|
312
|
-
]
|
|
313
|
-
},
|
|
314
|
-
"nodeId": {
|
|
315
|
-
"type": "string"
|
|
316
|
-
}
|
|
317
|
-
},
|
|
318
|
-
"required": [
|
|
319
|
-
"kind",
|
|
320
|
-
"nodeType",
|
|
321
|
-
"nodeId"
|
|
322
|
-
]
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
"type": "object",
|
|
326
|
-
"properties": {
|
|
327
|
-
"kind": {
|
|
328
|
-
"const": "selection",
|
|
329
|
-
"type": "string"
|
|
330
962
|
},
|
|
331
|
-
"
|
|
963
|
+
"story": {
|
|
332
964
|
"oneOf": [
|
|
333
965
|
{
|
|
334
966
|
"type": "object",
|
|
335
967
|
"properties": {
|
|
336
968
|
"kind": {
|
|
337
|
-
"const": "
|
|
969
|
+
"const": "story",
|
|
338
970
|
"type": "string"
|
|
339
971
|
},
|
|
340
|
-
"
|
|
972
|
+
"storyType": {
|
|
973
|
+
"const": "body",
|
|
974
|
+
"type": "string"
|
|
975
|
+
}
|
|
976
|
+
},
|
|
977
|
+
"required": [
|
|
978
|
+
"kind",
|
|
979
|
+
"storyType"
|
|
980
|
+
]
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"type": "object",
|
|
984
|
+
"properties": {
|
|
985
|
+
"kind": {
|
|
986
|
+
"const": "story",
|
|
987
|
+
"type": "string"
|
|
988
|
+
},
|
|
989
|
+
"storyType": {
|
|
990
|
+
"const": "headerFooterSlot",
|
|
991
|
+
"type": "string"
|
|
992
|
+
},
|
|
993
|
+
"section": {
|
|
994
|
+
"type": "object",
|
|
995
|
+
"properties": {
|
|
996
|
+
"kind": {
|
|
997
|
+
"const": "section",
|
|
998
|
+
"type": "string"
|
|
999
|
+
},
|
|
1000
|
+
"sectionId": {
|
|
1001
|
+
"type": "string"
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
"required": [
|
|
1005
|
+
"kind",
|
|
1006
|
+
"sectionId"
|
|
1007
|
+
]
|
|
1008
|
+
},
|
|
1009
|
+
"headerFooterKind": {
|
|
1010
|
+
"enum": [
|
|
1011
|
+
"header",
|
|
1012
|
+
"footer"
|
|
1013
|
+
]
|
|
1014
|
+
},
|
|
1015
|
+
"variant": {
|
|
1016
|
+
"enum": [
|
|
1017
|
+
"default",
|
|
1018
|
+
"first",
|
|
1019
|
+
"even"
|
|
1020
|
+
]
|
|
1021
|
+
},
|
|
1022
|
+
"resolution": {
|
|
1023
|
+
"enum": [
|
|
1024
|
+
"effective",
|
|
1025
|
+
"explicit"
|
|
1026
|
+
]
|
|
1027
|
+
},
|
|
1028
|
+
"onWrite": {
|
|
1029
|
+
"enum": [
|
|
1030
|
+
"materializeIfInherited",
|
|
1031
|
+
"editResolvedPart",
|
|
1032
|
+
"error"
|
|
1033
|
+
]
|
|
1034
|
+
}
|
|
1035
|
+
},
|
|
1036
|
+
"required": [
|
|
1037
|
+
"kind",
|
|
1038
|
+
"storyType",
|
|
1039
|
+
"section",
|
|
1040
|
+
"headerFooterKind",
|
|
1041
|
+
"variant"
|
|
1042
|
+
]
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
"type": "object",
|
|
1046
|
+
"properties": {
|
|
1047
|
+
"kind": {
|
|
1048
|
+
"const": "story",
|
|
1049
|
+
"type": "string"
|
|
1050
|
+
},
|
|
1051
|
+
"storyType": {
|
|
1052
|
+
"const": "headerFooterPart",
|
|
1053
|
+
"type": "string"
|
|
1054
|
+
},
|
|
1055
|
+
"refId": {
|
|
1056
|
+
"type": "string"
|
|
1057
|
+
}
|
|
1058
|
+
},
|
|
1059
|
+
"required": [
|
|
1060
|
+
"kind",
|
|
1061
|
+
"storyType",
|
|
1062
|
+
"refId"
|
|
1063
|
+
]
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
"type": "object",
|
|
1067
|
+
"properties": {
|
|
1068
|
+
"kind": {
|
|
1069
|
+
"const": "story",
|
|
1070
|
+
"type": "string"
|
|
1071
|
+
},
|
|
1072
|
+
"storyType": {
|
|
1073
|
+
"const": "footnote",
|
|
1074
|
+
"type": "string"
|
|
1075
|
+
},
|
|
1076
|
+
"noteId": {
|
|
1077
|
+
"type": "string"
|
|
1078
|
+
}
|
|
1079
|
+
},
|
|
1080
|
+
"required": [
|
|
1081
|
+
"kind",
|
|
1082
|
+
"storyType",
|
|
1083
|
+
"noteId"
|
|
1084
|
+
]
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"type": "object",
|
|
1088
|
+
"properties": {
|
|
1089
|
+
"kind": {
|
|
1090
|
+
"const": "story",
|
|
1091
|
+
"type": "string"
|
|
1092
|
+
},
|
|
1093
|
+
"storyType": {
|
|
1094
|
+
"const": "endnote",
|
|
1095
|
+
"type": "string"
|
|
1096
|
+
},
|
|
1097
|
+
"noteId": {
|
|
1098
|
+
"type": "string"
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
"required": [
|
|
1102
|
+
"kind",
|
|
1103
|
+
"storyType",
|
|
1104
|
+
"noteId"
|
|
1105
|
+
]
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
1108
|
+
"type": "object",
|
|
1109
|
+
"properties": {
|
|
1110
|
+
"kind": {
|
|
1111
|
+
"const": "story",
|
|
1112
|
+
"type": "string"
|
|
1113
|
+
},
|
|
1114
|
+
"storyType": {
|
|
1115
|
+
"const": "textbox",
|
|
1116
|
+
"type": "string"
|
|
1117
|
+
},
|
|
1118
|
+
"textboxId": {
|
|
1119
|
+
"type": "string"
|
|
1120
|
+
}
|
|
1121
|
+
},
|
|
1122
|
+
"required": [
|
|
1123
|
+
"kind",
|
|
1124
|
+
"storyType",
|
|
1125
|
+
"textboxId"
|
|
1126
|
+
]
|
|
1127
|
+
}
|
|
1128
|
+
],
|
|
1129
|
+
"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."
|
|
1130
|
+
}
|
|
1131
|
+
},
|
|
1132
|
+
"required": [
|
|
1133
|
+
"kind",
|
|
1134
|
+
"start",
|
|
1135
|
+
"end"
|
|
1136
|
+
]
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
"type": "object",
|
|
1140
|
+
"properties": {
|
|
1141
|
+
"kind": {
|
|
1142
|
+
"const": "block",
|
|
1143
|
+
"type": "string"
|
|
1144
|
+
},
|
|
1145
|
+
"nodeType": {
|
|
1146
|
+
"enum": [
|
|
1147
|
+
"paragraph",
|
|
1148
|
+
"heading",
|
|
1149
|
+
"listItem",
|
|
1150
|
+
"table",
|
|
1151
|
+
"tableRow",
|
|
1152
|
+
"tableCell",
|
|
1153
|
+
"tableOfContents",
|
|
1154
|
+
"image",
|
|
1155
|
+
"sdt"
|
|
1156
|
+
]
|
|
1157
|
+
},
|
|
1158
|
+
"nodeId": {
|
|
1159
|
+
"type": "string"
|
|
1160
|
+
},
|
|
1161
|
+
"story": {
|
|
1162
|
+
"oneOf": [
|
|
1163
|
+
{
|
|
1164
|
+
"type": "object",
|
|
1165
|
+
"properties": {
|
|
1166
|
+
"kind": {
|
|
1167
|
+
"const": "story",
|
|
1168
|
+
"type": "string"
|
|
1169
|
+
},
|
|
1170
|
+
"storyType": {
|
|
1171
|
+
"const": "body",
|
|
1172
|
+
"type": "string"
|
|
1173
|
+
}
|
|
1174
|
+
},
|
|
1175
|
+
"required": [
|
|
1176
|
+
"kind",
|
|
1177
|
+
"storyType"
|
|
1178
|
+
]
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
"type": "object",
|
|
1182
|
+
"properties": {
|
|
1183
|
+
"kind": {
|
|
1184
|
+
"const": "story",
|
|
1185
|
+
"type": "string"
|
|
1186
|
+
},
|
|
1187
|
+
"storyType": {
|
|
1188
|
+
"const": "headerFooterSlot",
|
|
1189
|
+
"type": "string"
|
|
1190
|
+
},
|
|
1191
|
+
"section": {
|
|
1192
|
+
"type": "object",
|
|
1193
|
+
"properties": {
|
|
1194
|
+
"kind": {
|
|
1195
|
+
"const": "section",
|
|
1196
|
+
"type": "string"
|
|
1197
|
+
},
|
|
1198
|
+
"sectionId": {
|
|
1199
|
+
"type": "string"
|
|
1200
|
+
}
|
|
1201
|
+
},
|
|
1202
|
+
"required": [
|
|
1203
|
+
"kind",
|
|
1204
|
+
"sectionId"
|
|
1205
|
+
]
|
|
1206
|
+
},
|
|
1207
|
+
"headerFooterKind": {
|
|
1208
|
+
"enum": [
|
|
1209
|
+
"header",
|
|
1210
|
+
"footer"
|
|
1211
|
+
]
|
|
1212
|
+
},
|
|
1213
|
+
"variant": {
|
|
1214
|
+
"enum": [
|
|
1215
|
+
"default",
|
|
1216
|
+
"first",
|
|
1217
|
+
"even"
|
|
1218
|
+
]
|
|
1219
|
+
},
|
|
1220
|
+
"resolution": {
|
|
1221
|
+
"enum": [
|
|
1222
|
+
"effective",
|
|
1223
|
+
"explicit"
|
|
1224
|
+
]
|
|
1225
|
+
},
|
|
1226
|
+
"onWrite": {
|
|
1227
|
+
"enum": [
|
|
1228
|
+
"materializeIfInherited",
|
|
1229
|
+
"editResolvedPart",
|
|
1230
|
+
"error"
|
|
1231
|
+
]
|
|
1232
|
+
}
|
|
1233
|
+
},
|
|
1234
|
+
"required": [
|
|
1235
|
+
"kind",
|
|
1236
|
+
"storyType",
|
|
1237
|
+
"section",
|
|
1238
|
+
"headerFooterKind",
|
|
1239
|
+
"variant"
|
|
1240
|
+
]
|
|
1241
|
+
},
|
|
1242
|
+
{
|
|
1243
|
+
"type": "object",
|
|
1244
|
+
"properties": {
|
|
1245
|
+
"kind": {
|
|
1246
|
+
"const": "story",
|
|
1247
|
+
"type": "string"
|
|
1248
|
+
},
|
|
1249
|
+
"storyType": {
|
|
1250
|
+
"const": "headerFooterPart",
|
|
1251
|
+
"type": "string"
|
|
1252
|
+
},
|
|
1253
|
+
"refId": {
|
|
1254
|
+
"type": "string"
|
|
1255
|
+
}
|
|
1256
|
+
},
|
|
1257
|
+
"required": [
|
|
1258
|
+
"kind",
|
|
1259
|
+
"storyType",
|
|
1260
|
+
"refId"
|
|
1261
|
+
]
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
"type": "object",
|
|
1265
|
+
"properties": {
|
|
1266
|
+
"kind": {
|
|
1267
|
+
"const": "story",
|
|
1268
|
+
"type": "string"
|
|
1269
|
+
},
|
|
1270
|
+
"storyType": {
|
|
1271
|
+
"const": "footnote",
|
|
1272
|
+
"type": "string"
|
|
1273
|
+
},
|
|
1274
|
+
"noteId": {
|
|
1275
|
+
"type": "string"
|
|
1276
|
+
}
|
|
1277
|
+
},
|
|
1278
|
+
"required": [
|
|
1279
|
+
"kind",
|
|
1280
|
+
"storyType",
|
|
1281
|
+
"noteId"
|
|
1282
|
+
]
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
"type": "object",
|
|
1286
|
+
"properties": {
|
|
1287
|
+
"kind": {
|
|
1288
|
+
"const": "story",
|
|
1289
|
+
"type": "string"
|
|
1290
|
+
},
|
|
1291
|
+
"storyType": {
|
|
1292
|
+
"const": "endnote",
|
|
1293
|
+
"type": "string"
|
|
1294
|
+
},
|
|
1295
|
+
"noteId": {
|
|
1296
|
+
"type": "string"
|
|
1297
|
+
}
|
|
1298
|
+
},
|
|
1299
|
+
"required": [
|
|
1300
|
+
"kind",
|
|
1301
|
+
"storyType",
|
|
1302
|
+
"noteId"
|
|
1303
|
+
]
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
"type": "object",
|
|
1307
|
+
"properties": {
|
|
1308
|
+
"kind": {
|
|
1309
|
+
"const": "story",
|
|
1310
|
+
"type": "string"
|
|
1311
|
+
},
|
|
1312
|
+
"storyType": {
|
|
1313
|
+
"const": "textbox",
|
|
1314
|
+
"type": "string"
|
|
1315
|
+
},
|
|
1316
|
+
"textboxId": {
|
|
1317
|
+
"type": "string"
|
|
1318
|
+
}
|
|
1319
|
+
},
|
|
1320
|
+
"required": [
|
|
1321
|
+
"kind",
|
|
1322
|
+
"storyType",
|
|
1323
|
+
"textboxId"
|
|
1324
|
+
]
|
|
1325
|
+
}
|
|
1326
|
+
],
|
|
1327
|
+
"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."
|
|
1328
|
+
}
|
|
1329
|
+
},
|
|
1330
|
+
"required": [
|
|
1331
|
+
"kind",
|
|
1332
|
+
"nodeType",
|
|
1333
|
+
"nodeId"
|
|
1334
|
+
]
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
"type": "object",
|
|
1338
|
+
"properties": {
|
|
1339
|
+
"kind": {
|
|
1340
|
+
"const": "selection",
|
|
1341
|
+
"type": "string"
|
|
1342
|
+
},
|
|
1343
|
+
"start": {
|
|
1344
|
+
"oneOf": [
|
|
1345
|
+
{
|
|
1346
|
+
"type": "object",
|
|
1347
|
+
"properties": {
|
|
1348
|
+
"kind": {
|
|
1349
|
+
"const": "text",
|
|
1350
|
+
"type": "string"
|
|
1351
|
+
},
|
|
1352
|
+
"blockId": {
|
|
1353
|
+
"type": "string"
|
|
1354
|
+
},
|
|
1355
|
+
"offset": {
|
|
1356
|
+
"type": "number"
|
|
1357
|
+
},
|
|
1358
|
+
"story": {
|
|
1359
|
+
"oneOf": [
|
|
1360
|
+
{
|
|
1361
|
+
"type": "object",
|
|
1362
|
+
"properties": {
|
|
1363
|
+
"kind": {
|
|
1364
|
+
"const": "story",
|
|
1365
|
+
"type": "string"
|
|
1366
|
+
},
|
|
1367
|
+
"storyType": {
|
|
1368
|
+
"const": "body",
|
|
1369
|
+
"type": "string"
|
|
1370
|
+
}
|
|
1371
|
+
},
|
|
1372
|
+
"required": [
|
|
1373
|
+
"kind",
|
|
1374
|
+
"storyType"
|
|
1375
|
+
]
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
"type": "object",
|
|
1379
|
+
"properties": {
|
|
1380
|
+
"kind": {
|
|
1381
|
+
"const": "story",
|
|
1382
|
+
"type": "string"
|
|
1383
|
+
},
|
|
1384
|
+
"storyType": {
|
|
1385
|
+
"const": "headerFooterSlot",
|
|
1386
|
+
"type": "string"
|
|
1387
|
+
},
|
|
1388
|
+
"section": {
|
|
1389
|
+
"type": "object",
|
|
1390
|
+
"properties": {
|
|
1391
|
+
"kind": {
|
|
1392
|
+
"const": "section",
|
|
1393
|
+
"type": "string"
|
|
1394
|
+
},
|
|
1395
|
+
"sectionId": {
|
|
1396
|
+
"type": "string"
|
|
1397
|
+
}
|
|
1398
|
+
},
|
|
1399
|
+
"required": [
|
|
1400
|
+
"kind",
|
|
1401
|
+
"sectionId"
|
|
1402
|
+
]
|
|
1403
|
+
},
|
|
1404
|
+
"headerFooterKind": {
|
|
1405
|
+
"enum": [
|
|
1406
|
+
"header",
|
|
1407
|
+
"footer"
|
|
1408
|
+
]
|
|
1409
|
+
},
|
|
1410
|
+
"variant": {
|
|
1411
|
+
"enum": [
|
|
1412
|
+
"default",
|
|
1413
|
+
"first",
|
|
1414
|
+
"even"
|
|
1415
|
+
]
|
|
1416
|
+
},
|
|
1417
|
+
"resolution": {
|
|
1418
|
+
"enum": [
|
|
1419
|
+
"effective",
|
|
1420
|
+
"explicit"
|
|
1421
|
+
]
|
|
1422
|
+
},
|
|
1423
|
+
"onWrite": {
|
|
1424
|
+
"enum": [
|
|
1425
|
+
"materializeIfInherited",
|
|
1426
|
+
"editResolvedPart",
|
|
1427
|
+
"error"
|
|
1428
|
+
]
|
|
1429
|
+
}
|
|
1430
|
+
},
|
|
1431
|
+
"required": [
|
|
1432
|
+
"kind",
|
|
1433
|
+
"storyType",
|
|
1434
|
+
"section",
|
|
1435
|
+
"headerFooterKind",
|
|
1436
|
+
"variant"
|
|
1437
|
+
]
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
"type": "object",
|
|
1441
|
+
"properties": {
|
|
1442
|
+
"kind": {
|
|
1443
|
+
"const": "story",
|
|
1444
|
+
"type": "string"
|
|
1445
|
+
},
|
|
1446
|
+
"storyType": {
|
|
1447
|
+
"const": "headerFooterPart",
|
|
1448
|
+
"type": "string"
|
|
1449
|
+
},
|
|
1450
|
+
"refId": {
|
|
1451
|
+
"type": "string"
|
|
1452
|
+
}
|
|
1453
|
+
},
|
|
1454
|
+
"required": [
|
|
1455
|
+
"kind",
|
|
1456
|
+
"storyType",
|
|
1457
|
+
"refId"
|
|
1458
|
+
]
|
|
1459
|
+
},
|
|
1460
|
+
{
|
|
1461
|
+
"type": "object",
|
|
1462
|
+
"properties": {
|
|
1463
|
+
"kind": {
|
|
1464
|
+
"const": "story",
|
|
1465
|
+
"type": "string"
|
|
1466
|
+
},
|
|
1467
|
+
"storyType": {
|
|
1468
|
+
"const": "footnote",
|
|
1469
|
+
"type": "string"
|
|
1470
|
+
},
|
|
1471
|
+
"noteId": {
|
|
1472
|
+
"type": "string"
|
|
1473
|
+
}
|
|
1474
|
+
},
|
|
1475
|
+
"required": [
|
|
1476
|
+
"kind",
|
|
1477
|
+
"storyType",
|
|
1478
|
+
"noteId"
|
|
1479
|
+
]
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
"type": "object",
|
|
1483
|
+
"properties": {
|
|
1484
|
+
"kind": {
|
|
1485
|
+
"const": "story",
|
|
1486
|
+
"type": "string"
|
|
1487
|
+
},
|
|
1488
|
+
"storyType": {
|
|
1489
|
+
"const": "endnote",
|
|
1490
|
+
"type": "string"
|
|
1491
|
+
},
|
|
1492
|
+
"noteId": {
|
|
1493
|
+
"type": "string"
|
|
1494
|
+
}
|
|
1495
|
+
},
|
|
1496
|
+
"required": [
|
|
1497
|
+
"kind",
|
|
1498
|
+
"storyType",
|
|
1499
|
+
"noteId"
|
|
1500
|
+
]
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
"type": "object",
|
|
1504
|
+
"properties": {
|
|
1505
|
+
"kind": {
|
|
1506
|
+
"const": "story",
|
|
1507
|
+
"type": "string"
|
|
1508
|
+
},
|
|
1509
|
+
"storyType": {
|
|
1510
|
+
"const": "textbox",
|
|
1511
|
+
"type": "string"
|
|
1512
|
+
},
|
|
1513
|
+
"textboxId": {
|
|
1514
|
+
"type": "string"
|
|
1515
|
+
}
|
|
1516
|
+
},
|
|
1517
|
+
"required": [
|
|
1518
|
+
"kind",
|
|
1519
|
+
"storyType",
|
|
1520
|
+
"textboxId"
|
|
1521
|
+
]
|
|
1522
|
+
}
|
|
1523
|
+
],
|
|
1524
|
+
"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."
|
|
1525
|
+
}
|
|
1526
|
+
},
|
|
1527
|
+
"required": [
|
|
1528
|
+
"kind",
|
|
1529
|
+
"blockId",
|
|
1530
|
+
"offset"
|
|
1531
|
+
]
|
|
1532
|
+
},
|
|
1533
|
+
{
|
|
1534
|
+
"type": "object",
|
|
1535
|
+
"properties": {
|
|
1536
|
+
"kind": {
|
|
1537
|
+
"const": "nodeEdge",
|
|
1538
|
+
"type": "string"
|
|
1539
|
+
},
|
|
1540
|
+
"node": {
|
|
1541
|
+
"type": "object",
|
|
1542
|
+
"properties": {
|
|
1543
|
+
"kind": {
|
|
1544
|
+
"const": "block",
|
|
1545
|
+
"type": "string"
|
|
1546
|
+
},
|
|
1547
|
+
"nodeType": {
|
|
1548
|
+
"enum": [
|
|
1549
|
+
"paragraph",
|
|
1550
|
+
"heading",
|
|
1551
|
+
"table",
|
|
1552
|
+
"tableOfContents",
|
|
1553
|
+
"sdt",
|
|
1554
|
+
"image"
|
|
1555
|
+
]
|
|
1556
|
+
},
|
|
1557
|
+
"nodeId": {
|
|
1558
|
+
"type": "string"
|
|
1559
|
+
},
|
|
1560
|
+
"story": {
|
|
1561
|
+
"oneOf": [
|
|
1562
|
+
{
|
|
1563
|
+
"type": "object",
|
|
1564
|
+
"properties": {
|
|
1565
|
+
"kind": {
|
|
1566
|
+
"const": "story",
|
|
1567
|
+
"type": "string"
|
|
1568
|
+
},
|
|
1569
|
+
"storyType": {
|
|
1570
|
+
"const": "body",
|
|
1571
|
+
"type": "string"
|
|
1572
|
+
}
|
|
1573
|
+
},
|
|
1574
|
+
"required": [
|
|
1575
|
+
"kind",
|
|
1576
|
+
"storyType"
|
|
1577
|
+
]
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
"type": "object",
|
|
1581
|
+
"properties": {
|
|
1582
|
+
"kind": {
|
|
1583
|
+
"const": "story",
|
|
1584
|
+
"type": "string"
|
|
1585
|
+
},
|
|
1586
|
+
"storyType": {
|
|
1587
|
+
"const": "headerFooterSlot",
|
|
1588
|
+
"type": "string"
|
|
1589
|
+
},
|
|
1590
|
+
"section": {
|
|
1591
|
+
"type": "object",
|
|
1592
|
+
"properties": {
|
|
1593
|
+
"kind": {
|
|
1594
|
+
"const": "section",
|
|
1595
|
+
"type": "string"
|
|
1596
|
+
},
|
|
1597
|
+
"sectionId": {
|
|
1598
|
+
"type": "string"
|
|
1599
|
+
}
|
|
1600
|
+
},
|
|
1601
|
+
"required": [
|
|
1602
|
+
"kind",
|
|
1603
|
+
"sectionId"
|
|
1604
|
+
]
|
|
1605
|
+
},
|
|
1606
|
+
"headerFooterKind": {
|
|
1607
|
+
"enum": [
|
|
1608
|
+
"header",
|
|
1609
|
+
"footer"
|
|
1610
|
+
]
|
|
1611
|
+
},
|
|
1612
|
+
"variant": {
|
|
1613
|
+
"enum": [
|
|
1614
|
+
"default",
|
|
1615
|
+
"first",
|
|
1616
|
+
"even"
|
|
1617
|
+
]
|
|
1618
|
+
},
|
|
1619
|
+
"resolution": {
|
|
1620
|
+
"enum": [
|
|
1621
|
+
"effective",
|
|
1622
|
+
"explicit"
|
|
1623
|
+
]
|
|
1624
|
+
},
|
|
1625
|
+
"onWrite": {
|
|
1626
|
+
"enum": [
|
|
1627
|
+
"materializeIfInherited",
|
|
1628
|
+
"editResolvedPart",
|
|
1629
|
+
"error"
|
|
1630
|
+
]
|
|
1631
|
+
}
|
|
1632
|
+
},
|
|
1633
|
+
"required": [
|
|
1634
|
+
"kind",
|
|
1635
|
+
"storyType",
|
|
1636
|
+
"section",
|
|
1637
|
+
"headerFooterKind",
|
|
1638
|
+
"variant"
|
|
1639
|
+
]
|
|
1640
|
+
},
|
|
1641
|
+
{
|
|
1642
|
+
"type": "object",
|
|
1643
|
+
"properties": {
|
|
1644
|
+
"kind": {
|
|
1645
|
+
"const": "story",
|
|
1646
|
+
"type": "string"
|
|
1647
|
+
},
|
|
1648
|
+
"storyType": {
|
|
1649
|
+
"const": "headerFooterPart",
|
|
1650
|
+
"type": "string"
|
|
1651
|
+
},
|
|
1652
|
+
"refId": {
|
|
1653
|
+
"type": "string"
|
|
1654
|
+
}
|
|
1655
|
+
},
|
|
1656
|
+
"required": [
|
|
1657
|
+
"kind",
|
|
1658
|
+
"storyType",
|
|
1659
|
+
"refId"
|
|
1660
|
+
]
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
"type": "object",
|
|
1664
|
+
"properties": {
|
|
1665
|
+
"kind": {
|
|
1666
|
+
"const": "story",
|
|
1667
|
+
"type": "string"
|
|
1668
|
+
},
|
|
1669
|
+
"storyType": {
|
|
1670
|
+
"const": "footnote",
|
|
1671
|
+
"type": "string"
|
|
1672
|
+
},
|
|
1673
|
+
"noteId": {
|
|
1674
|
+
"type": "string"
|
|
1675
|
+
}
|
|
1676
|
+
},
|
|
1677
|
+
"required": [
|
|
1678
|
+
"kind",
|
|
1679
|
+
"storyType",
|
|
1680
|
+
"noteId"
|
|
1681
|
+
]
|
|
1682
|
+
},
|
|
1683
|
+
{
|
|
1684
|
+
"type": "object",
|
|
1685
|
+
"properties": {
|
|
1686
|
+
"kind": {
|
|
1687
|
+
"const": "story",
|
|
1688
|
+
"type": "string"
|
|
1689
|
+
},
|
|
1690
|
+
"storyType": {
|
|
1691
|
+
"const": "endnote",
|
|
1692
|
+
"type": "string"
|
|
1693
|
+
},
|
|
1694
|
+
"noteId": {
|
|
1695
|
+
"type": "string"
|
|
1696
|
+
}
|
|
1697
|
+
},
|
|
1698
|
+
"required": [
|
|
1699
|
+
"kind",
|
|
1700
|
+
"storyType",
|
|
1701
|
+
"noteId"
|
|
1702
|
+
]
|
|
1703
|
+
},
|
|
1704
|
+
{
|
|
1705
|
+
"type": "object",
|
|
1706
|
+
"properties": {
|
|
1707
|
+
"kind": {
|
|
1708
|
+
"const": "story",
|
|
1709
|
+
"type": "string"
|
|
1710
|
+
},
|
|
1711
|
+
"storyType": {
|
|
1712
|
+
"const": "textbox",
|
|
1713
|
+
"type": "string"
|
|
1714
|
+
},
|
|
1715
|
+
"textboxId": {
|
|
1716
|
+
"type": "string"
|
|
1717
|
+
}
|
|
1718
|
+
},
|
|
1719
|
+
"required": [
|
|
1720
|
+
"kind",
|
|
1721
|
+
"storyType",
|
|
1722
|
+
"textboxId"
|
|
1723
|
+
]
|
|
1724
|
+
}
|
|
1725
|
+
],
|
|
1726
|
+
"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."
|
|
1727
|
+
}
|
|
1728
|
+
},
|
|
1729
|
+
"required": [
|
|
1730
|
+
"kind",
|
|
1731
|
+
"nodeType",
|
|
1732
|
+
"nodeId"
|
|
1733
|
+
]
|
|
1734
|
+
},
|
|
1735
|
+
"edge": {
|
|
1736
|
+
"enum": [
|
|
1737
|
+
"before",
|
|
1738
|
+
"after"
|
|
1739
|
+
]
|
|
1740
|
+
}
|
|
1741
|
+
},
|
|
1742
|
+
"required": [
|
|
1743
|
+
"kind",
|
|
1744
|
+
"node",
|
|
1745
|
+
"edge"
|
|
1746
|
+
]
|
|
1747
|
+
}
|
|
1748
|
+
],
|
|
1749
|
+
"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."
|
|
1750
|
+
},
|
|
1751
|
+
"end": {
|
|
1752
|
+
"oneOf": [
|
|
1753
|
+
{
|
|
1754
|
+
"type": "object",
|
|
1755
|
+
"properties": {
|
|
1756
|
+
"kind": {
|
|
1757
|
+
"const": "text",
|
|
1758
|
+
"type": "string"
|
|
1759
|
+
},
|
|
1760
|
+
"blockId": {
|
|
341
1761
|
"type": "string"
|
|
342
1762
|
},
|
|
343
1763
|
"offset": {
|
|
344
1764
|
"type": "number"
|
|
1765
|
+
},
|
|
1766
|
+
"story": {
|
|
1767
|
+
"oneOf": [
|
|
1768
|
+
{
|
|
1769
|
+
"type": "object",
|
|
1770
|
+
"properties": {
|
|
1771
|
+
"kind": {
|
|
1772
|
+
"const": "story",
|
|
1773
|
+
"type": "string"
|
|
1774
|
+
},
|
|
1775
|
+
"storyType": {
|
|
1776
|
+
"const": "body",
|
|
1777
|
+
"type": "string"
|
|
1778
|
+
}
|
|
1779
|
+
},
|
|
1780
|
+
"required": [
|
|
1781
|
+
"kind",
|
|
1782
|
+
"storyType"
|
|
1783
|
+
]
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
"type": "object",
|
|
1787
|
+
"properties": {
|
|
1788
|
+
"kind": {
|
|
1789
|
+
"const": "story",
|
|
1790
|
+
"type": "string"
|
|
1791
|
+
},
|
|
1792
|
+
"storyType": {
|
|
1793
|
+
"const": "headerFooterSlot",
|
|
1794
|
+
"type": "string"
|
|
1795
|
+
},
|
|
1796
|
+
"section": {
|
|
1797
|
+
"type": "object",
|
|
1798
|
+
"properties": {
|
|
1799
|
+
"kind": {
|
|
1800
|
+
"const": "section",
|
|
1801
|
+
"type": "string"
|
|
1802
|
+
},
|
|
1803
|
+
"sectionId": {
|
|
1804
|
+
"type": "string"
|
|
1805
|
+
}
|
|
1806
|
+
},
|
|
1807
|
+
"required": [
|
|
1808
|
+
"kind",
|
|
1809
|
+
"sectionId"
|
|
1810
|
+
]
|
|
1811
|
+
},
|
|
1812
|
+
"headerFooterKind": {
|
|
1813
|
+
"enum": [
|
|
1814
|
+
"header",
|
|
1815
|
+
"footer"
|
|
1816
|
+
]
|
|
1817
|
+
},
|
|
1818
|
+
"variant": {
|
|
1819
|
+
"enum": [
|
|
1820
|
+
"default",
|
|
1821
|
+
"first",
|
|
1822
|
+
"even"
|
|
1823
|
+
]
|
|
1824
|
+
},
|
|
1825
|
+
"resolution": {
|
|
1826
|
+
"enum": [
|
|
1827
|
+
"effective",
|
|
1828
|
+
"explicit"
|
|
1829
|
+
]
|
|
1830
|
+
},
|
|
1831
|
+
"onWrite": {
|
|
1832
|
+
"enum": [
|
|
1833
|
+
"materializeIfInherited",
|
|
1834
|
+
"editResolvedPart",
|
|
1835
|
+
"error"
|
|
1836
|
+
]
|
|
1837
|
+
}
|
|
1838
|
+
},
|
|
1839
|
+
"required": [
|
|
1840
|
+
"kind",
|
|
1841
|
+
"storyType",
|
|
1842
|
+
"section",
|
|
1843
|
+
"headerFooterKind",
|
|
1844
|
+
"variant"
|
|
1845
|
+
]
|
|
1846
|
+
},
|
|
1847
|
+
{
|
|
1848
|
+
"type": "object",
|
|
1849
|
+
"properties": {
|
|
1850
|
+
"kind": {
|
|
1851
|
+
"const": "story",
|
|
1852
|
+
"type": "string"
|
|
1853
|
+
},
|
|
1854
|
+
"storyType": {
|
|
1855
|
+
"const": "headerFooterPart",
|
|
1856
|
+
"type": "string"
|
|
1857
|
+
},
|
|
1858
|
+
"refId": {
|
|
1859
|
+
"type": "string"
|
|
1860
|
+
}
|
|
1861
|
+
},
|
|
1862
|
+
"required": [
|
|
1863
|
+
"kind",
|
|
1864
|
+
"storyType",
|
|
1865
|
+
"refId"
|
|
1866
|
+
]
|
|
1867
|
+
},
|
|
1868
|
+
{
|
|
1869
|
+
"type": "object",
|
|
1870
|
+
"properties": {
|
|
1871
|
+
"kind": {
|
|
1872
|
+
"const": "story",
|
|
1873
|
+
"type": "string"
|
|
1874
|
+
},
|
|
1875
|
+
"storyType": {
|
|
1876
|
+
"const": "footnote",
|
|
1877
|
+
"type": "string"
|
|
1878
|
+
},
|
|
1879
|
+
"noteId": {
|
|
1880
|
+
"type": "string"
|
|
1881
|
+
}
|
|
1882
|
+
},
|
|
1883
|
+
"required": [
|
|
1884
|
+
"kind",
|
|
1885
|
+
"storyType",
|
|
1886
|
+
"noteId"
|
|
1887
|
+
]
|
|
1888
|
+
},
|
|
1889
|
+
{
|
|
1890
|
+
"type": "object",
|
|
1891
|
+
"properties": {
|
|
1892
|
+
"kind": {
|
|
1893
|
+
"const": "story",
|
|
1894
|
+
"type": "string"
|
|
1895
|
+
},
|
|
1896
|
+
"storyType": {
|
|
1897
|
+
"const": "endnote",
|
|
1898
|
+
"type": "string"
|
|
1899
|
+
},
|
|
1900
|
+
"noteId": {
|
|
1901
|
+
"type": "string"
|
|
1902
|
+
}
|
|
1903
|
+
},
|
|
1904
|
+
"required": [
|
|
1905
|
+
"kind",
|
|
1906
|
+
"storyType",
|
|
1907
|
+
"noteId"
|
|
1908
|
+
]
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
"type": "object",
|
|
1912
|
+
"properties": {
|
|
1913
|
+
"kind": {
|
|
1914
|
+
"const": "story",
|
|
1915
|
+
"type": "string"
|
|
1916
|
+
},
|
|
1917
|
+
"storyType": {
|
|
1918
|
+
"const": "textbox",
|
|
1919
|
+
"type": "string"
|
|
1920
|
+
},
|
|
1921
|
+
"textboxId": {
|
|
1922
|
+
"type": "string"
|
|
1923
|
+
}
|
|
1924
|
+
},
|
|
1925
|
+
"required": [
|
|
1926
|
+
"kind",
|
|
1927
|
+
"storyType",
|
|
1928
|
+
"textboxId"
|
|
1929
|
+
]
|
|
1930
|
+
}
|
|
1931
|
+
],
|
|
1932
|
+
"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."
|
|
345
1933
|
}
|
|
346
1934
|
},
|
|
347
1935
|
"required": [
|
|
@@ -376,6 +1964,174 @@
|
|
|
376
1964
|
},
|
|
377
1965
|
"nodeId": {
|
|
378
1966
|
"type": "string"
|
|
1967
|
+
},
|
|
1968
|
+
"story": {
|
|
1969
|
+
"oneOf": [
|
|
1970
|
+
{
|
|
1971
|
+
"type": "object",
|
|
1972
|
+
"properties": {
|
|
1973
|
+
"kind": {
|
|
1974
|
+
"const": "story",
|
|
1975
|
+
"type": "string"
|
|
1976
|
+
},
|
|
1977
|
+
"storyType": {
|
|
1978
|
+
"const": "body",
|
|
1979
|
+
"type": "string"
|
|
1980
|
+
}
|
|
1981
|
+
},
|
|
1982
|
+
"required": [
|
|
1983
|
+
"kind",
|
|
1984
|
+
"storyType"
|
|
1985
|
+
]
|
|
1986
|
+
},
|
|
1987
|
+
{
|
|
1988
|
+
"type": "object",
|
|
1989
|
+
"properties": {
|
|
1990
|
+
"kind": {
|
|
1991
|
+
"const": "story",
|
|
1992
|
+
"type": "string"
|
|
1993
|
+
},
|
|
1994
|
+
"storyType": {
|
|
1995
|
+
"const": "headerFooterSlot",
|
|
1996
|
+
"type": "string"
|
|
1997
|
+
},
|
|
1998
|
+
"section": {
|
|
1999
|
+
"type": "object",
|
|
2000
|
+
"properties": {
|
|
2001
|
+
"kind": {
|
|
2002
|
+
"const": "section",
|
|
2003
|
+
"type": "string"
|
|
2004
|
+
},
|
|
2005
|
+
"sectionId": {
|
|
2006
|
+
"type": "string"
|
|
2007
|
+
}
|
|
2008
|
+
},
|
|
2009
|
+
"required": [
|
|
2010
|
+
"kind",
|
|
2011
|
+
"sectionId"
|
|
2012
|
+
]
|
|
2013
|
+
},
|
|
2014
|
+
"headerFooterKind": {
|
|
2015
|
+
"enum": [
|
|
2016
|
+
"header",
|
|
2017
|
+
"footer"
|
|
2018
|
+
]
|
|
2019
|
+
},
|
|
2020
|
+
"variant": {
|
|
2021
|
+
"enum": [
|
|
2022
|
+
"default",
|
|
2023
|
+
"first",
|
|
2024
|
+
"even"
|
|
2025
|
+
]
|
|
2026
|
+
},
|
|
2027
|
+
"resolution": {
|
|
2028
|
+
"enum": [
|
|
2029
|
+
"effective",
|
|
2030
|
+
"explicit"
|
|
2031
|
+
]
|
|
2032
|
+
},
|
|
2033
|
+
"onWrite": {
|
|
2034
|
+
"enum": [
|
|
2035
|
+
"materializeIfInherited",
|
|
2036
|
+
"editResolvedPart",
|
|
2037
|
+
"error"
|
|
2038
|
+
]
|
|
2039
|
+
}
|
|
2040
|
+
},
|
|
2041
|
+
"required": [
|
|
2042
|
+
"kind",
|
|
2043
|
+
"storyType",
|
|
2044
|
+
"section",
|
|
2045
|
+
"headerFooterKind",
|
|
2046
|
+
"variant"
|
|
2047
|
+
]
|
|
2048
|
+
},
|
|
2049
|
+
{
|
|
2050
|
+
"type": "object",
|
|
2051
|
+
"properties": {
|
|
2052
|
+
"kind": {
|
|
2053
|
+
"const": "story",
|
|
2054
|
+
"type": "string"
|
|
2055
|
+
},
|
|
2056
|
+
"storyType": {
|
|
2057
|
+
"const": "headerFooterPart",
|
|
2058
|
+
"type": "string"
|
|
2059
|
+
},
|
|
2060
|
+
"refId": {
|
|
2061
|
+
"type": "string"
|
|
2062
|
+
}
|
|
2063
|
+
},
|
|
2064
|
+
"required": [
|
|
2065
|
+
"kind",
|
|
2066
|
+
"storyType",
|
|
2067
|
+
"refId"
|
|
2068
|
+
]
|
|
2069
|
+
},
|
|
2070
|
+
{
|
|
2071
|
+
"type": "object",
|
|
2072
|
+
"properties": {
|
|
2073
|
+
"kind": {
|
|
2074
|
+
"const": "story",
|
|
2075
|
+
"type": "string"
|
|
2076
|
+
},
|
|
2077
|
+
"storyType": {
|
|
2078
|
+
"const": "footnote",
|
|
2079
|
+
"type": "string"
|
|
2080
|
+
},
|
|
2081
|
+
"noteId": {
|
|
2082
|
+
"type": "string"
|
|
2083
|
+
}
|
|
2084
|
+
},
|
|
2085
|
+
"required": [
|
|
2086
|
+
"kind",
|
|
2087
|
+
"storyType",
|
|
2088
|
+
"noteId"
|
|
2089
|
+
]
|
|
2090
|
+
},
|
|
2091
|
+
{
|
|
2092
|
+
"type": "object",
|
|
2093
|
+
"properties": {
|
|
2094
|
+
"kind": {
|
|
2095
|
+
"const": "story",
|
|
2096
|
+
"type": "string"
|
|
2097
|
+
},
|
|
2098
|
+
"storyType": {
|
|
2099
|
+
"const": "endnote",
|
|
2100
|
+
"type": "string"
|
|
2101
|
+
},
|
|
2102
|
+
"noteId": {
|
|
2103
|
+
"type": "string"
|
|
2104
|
+
}
|
|
2105
|
+
},
|
|
2106
|
+
"required": [
|
|
2107
|
+
"kind",
|
|
2108
|
+
"storyType",
|
|
2109
|
+
"noteId"
|
|
2110
|
+
]
|
|
2111
|
+
},
|
|
2112
|
+
{
|
|
2113
|
+
"type": "object",
|
|
2114
|
+
"properties": {
|
|
2115
|
+
"kind": {
|
|
2116
|
+
"const": "story",
|
|
2117
|
+
"type": "string"
|
|
2118
|
+
},
|
|
2119
|
+
"storyType": {
|
|
2120
|
+
"const": "textbox",
|
|
2121
|
+
"type": "string"
|
|
2122
|
+
},
|
|
2123
|
+
"textboxId": {
|
|
2124
|
+
"type": "string"
|
|
2125
|
+
}
|
|
2126
|
+
},
|
|
2127
|
+
"required": [
|
|
2128
|
+
"kind",
|
|
2129
|
+
"storyType",
|
|
2130
|
+
"textboxId"
|
|
2131
|
+
]
|
|
2132
|
+
}
|
|
2133
|
+
],
|
|
2134
|
+
"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."
|
|
379
2135
|
}
|
|
380
2136
|
},
|
|
381
2137
|
"required": [
|
|
@@ -400,77 +2156,173 @@
|
|
|
400
2156
|
],
|
|
401
2157
|
"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."
|
|
402
2158
|
},
|
|
403
|
-
"
|
|
2159
|
+
"story": {
|
|
404
2160
|
"oneOf": [
|
|
405
2161
|
{
|
|
406
2162
|
"type": "object",
|
|
407
2163
|
"properties": {
|
|
408
2164
|
"kind": {
|
|
409
|
-
"const": "
|
|
2165
|
+
"const": "story",
|
|
410
2166
|
"type": "string"
|
|
411
2167
|
},
|
|
412
|
-
"
|
|
2168
|
+
"storyType": {
|
|
2169
|
+
"const": "body",
|
|
413
2170
|
"type": "string"
|
|
414
|
-
},
|
|
415
|
-
"offset": {
|
|
416
|
-
"type": "number"
|
|
417
2171
|
}
|
|
418
2172
|
},
|
|
419
2173
|
"required": [
|
|
420
2174
|
"kind",
|
|
421
|
-
"
|
|
422
|
-
"offset"
|
|
2175
|
+
"storyType"
|
|
423
2176
|
]
|
|
424
2177
|
},
|
|
425
2178
|
{
|
|
426
2179
|
"type": "object",
|
|
427
2180
|
"properties": {
|
|
428
2181
|
"kind": {
|
|
429
|
-
"const": "
|
|
2182
|
+
"const": "story",
|
|
430
2183
|
"type": "string"
|
|
431
2184
|
},
|
|
432
|
-
"
|
|
2185
|
+
"storyType": {
|
|
2186
|
+
"const": "headerFooterSlot",
|
|
2187
|
+
"type": "string"
|
|
2188
|
+
},
|
|
2189
|
+
"section": {
|
|
433
2190
|
"type": "object",
|
|
434
2191
|
"properties": {
|
|
435
2192
|
"kind": {
|
|
436
|
-
"const": "
|
|
2193
|
+
"const": "section",
|
|
437
2194
|
"type": "string"
|
|
438
2195
|
},
|
|
439
|
-
"
|
|
440
|
-
"enum": [
|
|
441
|
-
"paragraph",
|
|
442
|
-
"heading",
|
|
443
|
-
"table",
|
|
444
|
-
"tableOfContents",
|
|
445
|
-
"sdt",
|
|
446
|
-
"image"
|
|
447
|
-
]
|
|
448
|
-
},
|
|
449
|
-
"nodeId": {
|
|
2196
|
+
"sectionId": {
|
|
450
2197
|
"type": "string"
|
|
451
2198
|
}
|
|
452
2199
|
},
|
|
453
2200
|
"required": [
|
|
454
2201
|
"kind",
|
|
455
|
-
"
|
|
456
|
-
"nodeId"
|
|
2202
|
+
"sectionId"
|
|
457
2203
|
]
|
|
458
2204
|
},
|
|
459
|
-
"
|
|
2205
|
+
"headerFooterKind": {
|
|
460
2206
|
"enum": [
|
|
461
|
-
"
|
|
462
|
-
"
|
|
2207
|
+
"header",
|
|
2208
|
+
"footer"
|
|
2209
|
+
]
|
|
2210
|
+
},
|
|
2211
|
+
"variant": {
|
|
2212
|
+
"enum": [
|
|
2213
|
+
"default",
|
|
2214
|
+
"first",
|
|
2215
|
+
"even"
|
|
2216
|
+
]
|
|
2217
|
+
},
|
|
2218
|
+
"resolution": {
|
|
2219
|
+
"enum": [
|
|
2220
|
+
"effective",
|
|
2221
|
+
"explicit"
|
|
2222
|
+
]
|
|
2223
|
+
},
|
|
2224
|
+
"onWrite": {
|
|
2225
|
+
"enum": [
|
|
2226
|
+
"materializeIfInherited",
|
|
2227
|
+
"editResolvedPart",
|
|
2228
|
+
"error"
|
|
463
2229
|
]
|
|
464
2230
|
}
|
|
465
2231
|
},
|
|
466
2232
|
"required": [
|
|
467
2233
|
"kind",
|
|
468
|
-
"
|
|
469
|
-
"
|
|
2234
|
+
"storyType",
|
|
2235
|
+
"section",
|
|
2236
|
+
"headerFooterKind",
|
|
2237
|
+
"variant"
|
|
2238
|
+
]
|
|
2239
|
+
},
|
|
2240
|
+
{
|
|
2241
|
+
"type": "object",
|
|
2242
|
+
"properties": {
|
|
2243
|
+
"kind": {
|
|
2244
|
+
"const": "story",
|
|
2245
|
+
"type": "string"
|
|
2246
|
+
},
|
|
2247
|
+
"storyType": {
|
|
2248
|
+
"const": "headerFooterPart",
|
|
2249
|
+
"type": "string"
|
|
2250
|
+
},
|
|
2251
|
+
"refId": {
|
|
2252
|
+
"type": "string"
|
|
2253
|
+
}
|
|
2254
|
+
},
|
|
2255
|
+
"required": [
|
|
2256
|
+
"kind",
|
|
2257
|
+
"storyType",
|
|
2258
|
+
"refId"
|
|
2259
|
+
]
|
|
2260
|
+
},
|
|
2261
|
+
{
|
|
2262
|
+
"type": "object",
|
|
2263
|
+
"properties": {
|
|
2264
|
+
"kind": {
|
|
2265
|
+
"const": "story",
|
|
2266
|
+
"type": "string"
|
|
2267
|
+
},
|
|
2268
|
+
"storyType": {
|
|
2269
|
+
"const": "footnote",
|
|
2270
|
+
"type": "string"
|
|
2271
|
+
},
|
|
2272
|
+
"noteId": {
|
|
2273
|
+
"type": "string"
|
|
2274
|
+
}
|
|
2275
|
+
},
|
|
2276
|
+
"required": [
|
|
2277
|
+
"kind",
|
|
2278
|
+
"storyType",
|
|
2279
|
+
"noteId"
|
|
2280
|
+
]
|
|
2281
|
+
},
|
|
2282
|
+
{
|
|
2283
|
+
"type": "object",
|
|
2284
|
+
"properties": {
|
|
2285
|
+
"kind": {
|
|
2286
|
+
"const": "story",
|
|
2287
|
+
"type": "string"
|
|
2288
|
+
},
|
|
2289
|
+
"storyType": {
|
|
2290
|
+
"const": "endnote",
|
|
2291
|
+
"type": "string"
|
|
2292
|
+
},
|
|
2293
|
+
"noteId": {
|
|
2294
|
+
"type": "string"
|
|
2295
|
+
}
|
|
2296
|
+
},
|
|
2297
|
+
"required": [
|
|
2298
|
+
"kind",
|
|
2299
|
+
"storyType",
|
|
2300
|
+
"noteId"
|
|
2301
|
+
]
|
|
2302
|
+
},
|
|
2303
|
+
{
|
|
2304
|
+
"type": "object",
|
|
2305
|
+
"properties": {
|
|
2306
|
+
"kind": {
|
|
2307
|
+
"const": "story",
|
|
2308
|
+
"type": "string"
|
|
2309
|
+
},
|
|
2310
|
+
"storyType": {
|
|
2311
|
+
"const": "textbox",
|
|
2312
|
+
"type": "string"
|
|
2313
|
+
},
|
|
2314
|
+
"textboxId": {
|
|
2315
|
+
"type": "string"
|
|
2316
|
+
}
|
|
2317
|
+
},
|
|
2318
|
+
"required": [
|
|
2319
|
+
"kind",
|
|
2320
|
+
"storyType",
|
|
2321
|
+
"textboxId"
|
|
470
2322
|
]
|
|
471
2323
|
}
|
|
472
2324
|
],
|
|
473
|
-
"description": "
|
|
2325
|
+
"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."
|
|
474
2326
|
}
|
|
475
2327
|
},
|
|
476
2328
|
"required": [
|
|
@@ -491,6 +2343,192 @@
|
|
|
491
2343
|
],
|
|
492
2344
|
"description": "Block address for structural insertion: {kind:'block', nodeType:'...', nodeId:'...'}."
|
|
493
2345
|
},
|
|
2346
|
+
"in": {
|
|
2347
|
+
"oneOf": [
|
|
2348
|
+
{
|
|
2349
|
+
"oneOf": [
|
|
2350
|
+
{
|
|
2351
|
+
"$ref": "#/$defs/StoryLocator",
|
|
2352
|
+
"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."
|
|
2353
|
+
},
|
|
2354
|
+
{
|
|
2355
|
+
"oneOf": [
|
|
2356
|
+
{
|
|
2357
|
+
"type": "object",
|
|
2358
|
+
"properties": {
|
|
2359
|
+
"kind": {
|
|
2360
|
+
"const": "story",
|
|
2361
|
+
"type": "string"
|
|
2362
|
+
},
|
|
2363
|
+
"storyType": {
|
|
2364
|
+
"const": "body",
|
|
2365
|
+
"type": "string"
|
|
2366
|
+
}
|
|
2367
|
+
},
|
|
2368
|
+
"required": [
|
|
2369
|
+
"kind",
|
|
2370
|
+
"storyType"
|
|
2371
|
+
]
|
|
2372
|
+
},
|
|
2373
|
+
{
|
|
2374
|
+
"type": "object",
|
|
2375
|
+
"properties": {
|
|
2376
|
+
"kind": {
|
|
2377
|
+
"const": "story",
|
|
2378
|
+
"type": "string"
|
|
2379
|
+
},
|
|
2380
|
+
"storyType": {
|
|
2381
|
+
"const": "headerFooterSlot",
|
|
2382
|
+
"type": "string"
|
|
2383
|
+
},
|
|
2384
|
+
"section": {
|
|
2385
|
+
"type": "object",
|
|
2386
|
+
"properties": {
|
|
2387
|
+
"kind": {
|
|
2388
|
+
"const": "section",
|
|
2389
|
+
"type": "string"
|
|
2390
|
+
},
|
|
2391
|
+
"sectionId": {
|
|
2392
|
+
"type": "string"
|
|
2393
|
+
}
|
|
2394
|
+
},
|
|
2395
|
+
"required": [
|
|
2396
|
+
"kind",
|
|
2397
|
+
"sectionId"
|
|
2398
|
+
]
|
|
2399
|
+
},
|
|
2400
|
+
"headerFooterKind": {
|
|
2401
|
+
"enum": [
|
|
2402
|
+
"header",
|
|
2403
|
+
"footer"
|
|
2404
|
+
]
|
|
2405
|
+
},
|
|
2406
|
+
"variant": {
|
|
2407
|
+
"enum": [
|
|
2408
|
+
"default",
|
|
2409
|
+
"first",
|
|
2410
|
+
"even"
|
|
2411
|
+
]
|
|
2412
|
+
},
|
|
2413
|
+
"resolution": {
|
|
2414
|
+
"enum": [
|
|
2415
|
+
"effective",
|
|
2416
|
+
"explicit"
|
|
2417
|
+
]
|
|
2418
|
+
},
|
|
2419
|
+
"onWrite": {
|
|
2420
|
+
"enum": [
|
|
2421
|
+
"materializeIfInherited",
|
|
2422
|
+
"editResolvedPart",
|
|
2423
|
+
"error"
|
|
2424
|
+
]
|
|
2425
|
+
}
|
|
2426
|
+
},
|
|
2427
|
+
"required": [
|
|
2428
|
+
"kind",
|
|
2429
|
+
"storyType",
|
|
2430
|
+
"section",
|
|
2431
|
+
"headerFooterKind",
|
|
2432
|
+
"variant"
|
|
2433
|
+
]
|
|
2434
|
+
},
|
|
2435
|
+
{
|
|
2436
|
+
"type": "object",
|
|
2437
|
+
"properties": {
|
|
2438
|
+
"kind": {
|
|
2439
|
+
"const": "story",
|
|
2440
|
+
"type": "string"
|
|
2441
|
+
},
|
|
2442
|
+
"storyType": {
|
|
2443
|
+
"const": "headerFooterPart",
|
|
2444
|
+
"type": "string"
|
|
2445
|
+
},
|
|
2446
|
+
"refId": {
|
|
2447
|
+
"type": "string"
|
|
2448
|
+
}
|
|
2449
|
+
},
|
|
2450
|
+
"required": [
|
|
2451
|
+
"kind",
|
|
2452
|
+
"storyType",
|
|
2453
|
+
"refId"
|
|
2454
|
+
]
|
|
2455
|
+
},
|
|
2456
|
+
{
|
|
2457
|
+
"type": "object",
|
|
2458
|
+
"properties": {
|
|
2459
|
+
"kind": {
|
|
2460
|
+
"const": "story",
|
|
2461
|
+
"type": "string"
|
|
2462
|
+
},
|
|
2463
|
+
"storyType": {
|
|
2464
|
+
"const": "footnote",
|
|
2465
|
+
"type": "string"
|
|
2466
|
+
},
|
|
2467
|
+
"noteId": {
|
|
2468
|
+
"type": "string"
|
|
2469
|
+
}
|
|
2470
|
+
},
|
|
2471
|
+
"required": [
|
|
2472
|
+
"kind",
|
|
2473
|
+
"storyType",
|
|
2474
|
+
"noteId"
|
|
2475
|
+
]
|
|
2476
|
+
},
|
|
2477
|
+
{
|
|
2478
|
+
"type": "object",
|
|
2479
|
+
"properties": {
|
|
2480
|
+
"kind": {
|
|
2481
|
+
"const": "story",
|
|
2482
|
+
"type": "string"
|
|
2483
|
+
},
|
|
2484
|
+
"storyType": {
|
|
2485
|
+
"const": "endnote",
|
|
2486
|
+
"type": "string"
|
|
2487
|
+
},
|
|
2488
|
+
"noteId": {
|
|
2489
|
+
"type": "string"
|
|
2490
|
+
}
|
|
2491
|
+
},
|
|
2492
|
+
"required": [
|
|
2493
|
+
"kind",
|
|
2494
|
+
"storyType",
|
|
2495
|
+
"noteId"
|
|
2496
|
+
]
|
|
2497
|
+
},
|
|
2498
|
+
{
|
|
2499
|
+
"type": "object",
|
|
2500
|
+
"properties": {
|
|
2501
|
+
"kind": {
|
|
2502
|
+
"const": "story",
|
|
2503
|
+
"type": "string"
|
|
2504
|
+
},
|
|
2505
|
+
"storyType": {
|
|
2506
|
+
"const": "textbox",
|
|
2507
|
+
"type": "string"
|
|
2508
|
+
},
|
|
2509
|
+
"textboxId": {
|
|
2510
|
+
"type": "string"
|
|
2511
|
+
}
|
|
2512
|
+
},
|
|
2513
|
+
"required": [
|
|
2514
|
+
"kind",
|
|
2515
|
+
"storyType",
|
|
2516
|
+
"textboxId"
|
|
2517
|
+
]
|
|
2518
|
+
}
|
|
2519
|
+
],
|
|
2520
|
+
"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."
|
|
2521
|
+
}
|
|
2522
|
+
],
|
|
2523
|
+
"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."
|
|
2524
|
+
},
|
|
2525
|
+
{
|
|
2526
|
+
"$ref": "#/$defs/StoryLocator",
|
|
2527
|
+
"description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes."
|
|
2528
|
+
}
|
|
2529
|
+
],
|
|
2530
|
+
"description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes."
|
|
2531
|
+
},
|
|
494
2532
|
"value": {
|
|
495
2533
|
"type": "string",
|
|
496
2534
|
"description": "Text content to insert. Only for action 'insert'. Omit for other actions."
|
|
@@ -827,6 +2865,10 @@
|
|
|
827
2865
|
],
|
|
828
2866
|
"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'."
|
|
829
2867
|
},
|
|
2868
|
+
"in": {
|
|
2869
|
+
"$ref": "#/$defs/StoryLocator",
|
|
2870
|
+
"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."
|
|
2871
|
+
},
|
|
830
2872
|
"inline": {
|
|
831
2873
|
"type": "object",
|
|
832
2874
|
"properties": {
|
|
@@ -1657,12 +3699,10 @@
|
|
|
1657
3699
|
},
|
|
1658
3700
|
"left": {
|
|
1659
3701
|
"type": "integer",
|
|
1660
|
-
"minimum": 0,
|
|
1661
3702
|
"description": "Left indentation in twips (1440 = 1 inch). Only for action 'set_indentation'. Omit for other actions."
|
|
1662
3703
|
},
|
|
1663
3704
|
"right": {
|
|
1664
3705
|
"type": "integer",
|
|
1665
|
-
"minimum": 0,
|
|
1666
3706
|
"description": "Right indentation in twips (1440 = 1 inch). Only for action 'set_indentation'. Omit for other actions."
|
|
1667
3707
|
},
|
|
1668
3708
|
"firstLine": {
|
|
@@ -1710,6 +3750,22 @@
|
|
|
1710
3750
|
"type": "boolean",
|
|
1711
3751
|
"description": "Only for action 'set_flow_options'. Omit for other actions."
|
|
1712
3752
|
},
|
|
3753
|
+
"autoSpaceDE": {
|
|
3754
|
+
"type": "boolean",
|
|
3755
|
+
"description": "Only for action 'set_flow_options'. Omit for other actions."
|
|
3756
|
+
},
|
|
3757
|
+
"autoSpaceDN": {
|
|
3758
|
+
"type": "boolean",
|
|
3759
|
+
"description": "Only for action 'set_flow_options'. Omit for other actions."
|
|
3760
|
+
},
|
|
3761
|
+
"adjustRightInd": {
|
|
3762
|
+
"type": "boolean",
|
|
3763
|
+
"description": "Only for action 'set_flow_options'. Omit for other actions."
|
|
3764
|
+
},
|
|
3765
|
+
"snapToGrid": {
|
|
3766
|
+
"type": "boolean",
|
|
3767
|
+
"description": "Only for action 'set_flow_options'. Omit for other actions."
|
|
3768
|
+
},
|
|
1713
3769
|
"direction": {
|
|
1714
3770
|
"type": "string",
|
|
1715
3771
|
"enum": [
|
|
@@ -1781,19 +3837,8 @@
|
|
|
1781
3837
|
{
|
|
1782
3838
|
"operationId": "doc.format.paragraph.setFlowOptions",
|
|
1783
3839
|
"intentAction": "set_flow_options",
|
|
1784
|
-
"
|
|
1785
|
-
|
|
1786
|
-
"target",
|
|
1787
|
-
"contextualSpacing"
|
|
1788
|
-
],
|
|
1789
|
-
[
|
|
1790
|
-
"target",
|
|
1791
|
-
"pageBreakBefore"
|
|
1792
|
-
],
|
|
1793
|
-
[
|
|
1794
|
-
"target",
|
|
1795
|
-
"suppressAutoHyphens"
|
|
1796
|
-
]
|
|
3840
|
+
"required": [
|
|
3841
|
+
"target"
|
|
1797
3842
|
]
|
|
1798
3843
|
},
|
|
1799
3844
|
{
|
|
@@ -1837,6 +3882,10 @@
|
|
|
1837
3882
|
"type": "boolean",
|
|
1838
3883
|
"description": "Preview the result without applying changes."
|
|
1839
3884
|
},
|
|
3885
|
+
"in": {
|
|
3886
|
+
"$ref": "#/$defs/StoryLocator",
|
|
3887
|
+
"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."
|
|
3888
|
+
},
|
|
1840
3889
|
"at": {
|
|
1841
3890
|
"oneOf": [
|
|
1842
3891
|
{
|
|
@@ -2551,7 +4600,7 @@
|
|
|
2551
4600
|
},
|
|
2552
4601
|
{
|
|
2553
4602
|
"toolName": "superdoc_comment",
|
|
2554
|
-
"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\"
|
|
4603
|
+
"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 is not supported for new comment patch behavior. 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>\"}",
|
|
2555
4604
|
"inputSchema": {
|
|
2556
4605
|
"type": "object",
|
|
2557
4606
|
"properties": {
|
|
@@ -2594,6 +4643,7 @@
|
|
|
2594
4643
|
"target": {
|
|
2595
4644
|
"oneOf": [
|
|
2596
4645
|
{
|
|
4646
|
+
"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 .",
|
|
2597
4647
|
"oneOf": [
|
|
2598
4648
|
{
|
|
2599
4649
|
"$ref": "#/$defs/TextAddress"
|
|
@@ -2606,28 +4656,74 @@
|
|
|
2606
4656
|
},
|
|
2607
4657
|
{
|
|
2608
4658
|
"$ref": "#/$defs/CommentTrackedChangeTarget"
|
|
4659
|
+
},
|
|
4660
|
+
{
|
|
4661
|
+
"type": "object",
|
|
4662
|
+
"properties": {
|
|
4663
|
+
"text": {
|
|
4664
|
+
"type": "string",
|
|
4665
|
+
"description": "Text to find and anchor the comment to. The adapter resolves the first body/story match."
|
|
4666
|
+
},
|
|
4667
|
+
"story": {
|
|
4668
|
+
"$ref": "#/$defs/StoryLocator"
|
|
4669
|
+
}
|
|
4670
|
+
},
|
|
4671
|
+
"additionalProperties": false,
|
|
4672
|
+
"required": [
|
|
4673
|
+
"text"
|
|
4674
|
+
]
|
|
2609
4675
|
}
|
|
2610
|
-
]
|
|
2611
|
-
"description": "Comment target. Accepts a TextAddress, TextTarget, SelectionTarget, or {trackedChangeId, kind?:'trackedChange'} to anchor directly on tracked content."
|
|
4676
|
+
]
|
|
2612
4677
|
},
|
|
2613
4678
|
{
|
|
2614
4679
|
"oneOf": [
|
|
2615
4680
|
{
|
|
2616
4681
|
"$ref": "#/$defs/TextAddress"
|
|
2617
4682
|
},
|
|
2618
|
-
{
|
|
2619
|
-
"$ref": "#/$defs/TextTarget"
|
|
2620
|
-
},
|
|
2621
4683
|
{
|
|
2622
4684
|
"$ref": "#/$defs/SelectionTarget"
|
|
2623
4685
|
},
|
|
2624
4686
|
{
|
|
2625
4687
|
"$ref": "#/$defs/CommentTrackedChangeTarget"
|
|
4688
|
+
},
|
|
4689
|
+
{
|
|
4690
|
+
"type": "object",
|
|
4691
|
+
"properties": {
|
|
4692
|
+
"text": {
|
|
4693
|
+
"type": "string",
|
|
4694
|
+
"description": "Text to find and anchor the comment to. The adapter resolves the first body/story match."
|
|
4695
|
+
},
|
|
4696
|
+
"story": {
|
|
4697
|
+
"$ref": "#/$defs/StoryLocator"
|
|
4698
|
+
}
|
|
4699
|
+
},
|
|
4700
|
+
"additionalProperties": false,
|
|
4701
|
+
"required": [
|
|
4702
|
+
"text"
|
|
4703
|
+
]
|
|
2626
4704
|
}
|
|
2627
|
-
]
|
|
4705
|
+
],
|
|
4706
|
+
"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 ."
|
|
2628
4707
|
}
|
|
2629
4708
|
],
|
|
2630
|
-
"description": "
|
|
4709
|
+
"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."
|
|
4710
|
+
},
|
|
4711
|
+
"trackedChangeId": {
|
|
4712
|
+
"type": "string",
|
|
4713
|
+
"description": "Compatibility shorthand for target: { trackedChangeId }. Used only when target is omitted. Only for action 'create'. Omit for other actions."
|
|
4714
|
+
},
|
|
4715
|
+
"side": {
|
|
4716
|
+
"enum": [
|
|
4717
|
+
"inserted",
|
|
4718
|
+
"deleted",
|
|
4719
|
+
"source",
|
|
4720
|
+
"destination"
|
|
4721
|
+
],
|
|
4722
|
+
"description": "Optional side for the top-level trackedChangeId shorthand. Only for action 'create'. Omit for other actions."
|
|
4723
|
+
},
|
|
4724
|
+
"story": {
|
|
4725
|
+
"$ref": "#/$defs/StoryLocator",
|
|
4726
|
+
"description": "Optional story for the top-level trackedChangeId shorthand. Only for action 'create'. Omit for other actions."
|
|
2631
4727
|
},
|
|
2632
4728
|
"parentId": {
|
|
2633
4729
|
"type": "string",
|
|
@@ -2646,7 +4742,7 @@
|
|
|
2646
4742
|
},
|
|
2647
4743
|
"isInternal": {
|
|
2648
4744
|
"type": "boolean",
|
|
2649
|
-
"description": "
|
|
4745
|
+
"description": "Legacy v1/document-api compatibility field. Not supported for new comment patch behavior. A `comments.patch` request containing `isInternal` fails 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."
|
|
2650
4746
|
},
|
|
2651
4747
|
"includeResolved": {
|
|
2652
4748
|
"type": "boolean",
|
|
@@ -2701,7 +4797,7 @@
|
|
|
2701
4797
|
},
|
|
2702
4798
|
{
|
|
2703
4799
|
"toolName": "superdoc_track_changes",
|
|
2704
|
-
"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\":\"
|
|
4800
|
+
"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\"}}",
|
|
2705
4801
|
"inputSchema": {
|
|
2706
4802
|
"type": "object",
|
|
2707
4803
|
"properties": {
|
|
@@ -2723,12 +4819,29 @@
|
|
|
2723
4819
|
},
|
|
2724
4820
|
"type": {
|
|
2725
4821
|
"enum": [
|
|
4822
|
+
"insertion",
|
|
4823
|
+
"deletion",
|
|
4824
|
+
"replacement",
|
|
4825
|
+
"formatting",
|
|
4826
|
+
"move",
|
|
4827
|
+
"structural",
|
|
2726
4828
|
"insert",
|
|
2727
4829
|
"delete",
|
|
2728
|
-
"replacement",
|
|
2729
4830
|
"format"
|
|
2730
4831
|
],
|
|
2731
|
-
"description": "Filter by change type: '
|
|
4832
|
+
"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."
|
|
4833
|
+
},
|
|
4834
|
+
"in": {
|
|
4835
|
+
"oneOf": [
|
|
4836
|
+
{
|
|
4837
|
+
"$ref": "#/$defs/StoryLocator"
|
|
4838
|
+
},
|
|
4839
|
+
{
|
|
4840
|
+
"const": "all",
|
|
4841
|
+
"type": "string"
|
|
4842
|
+
}
|
|
4843
|
+
],
|
|
4844
|
+
"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."
|
|
2732
4845
|
},
|
|
2733
4846
|
"force": {
|
|
2734
4847
|
"type": "boolean",
|
|
@@ -2749,24 +4862,45 @@
|
|
|
2749
4862
|
],
|
|
2750
4863
|
"description": "Required for action 'decide'."
|
|
2751
4864
|
},
|
|
4865
|
+
"expectedRevision": {
|
|
4866
|
+
"type": "string",
|
|
4867
|
+
"description": "Backward-compatible alias for options.expectedRevision. Explicit mutation options take precedence when both are supplied. Only for action 'decide'. Omit for other actions."
|
|
4868
|
+
},
|
|
2752
4869
|
"target": {
|
|
4870
|
+
"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'.",
|
|
2753
4871
|
"oneOf": [
|
|
2754
4872
|
{
|
|
2755
4873
|
"type": "object",
|
|
2756
4874
|
"properties": {
|
|
4875
|
+
"kind": {
|
|
4876
|
+
"const": "id",
|
|
4877
|
+
"type": "string"
|
|
4878
|
+
},
|
|
2757
4879
|
"id": {
|
|
2758
4880
|
"type": "string"
|
|
2759
4881
|
},
|
|
2760
4882
|
"story": {
|
|
2761
4883
|
"$ref": "#/$defs/StoryLocator"
|
|
2762
4884
|
},
|
|
2763
|
-
"
|
|
2764
|
-
"
|
|
2765
|
-
|
|
4885
|
+
"moveRole": {
|
|
4886
|
+
"enum": [
|
|
4887
|
+
"pair",
|
|
4888
|
+
"source",
|
|
4889
|
+
"destination"
|
|
4890
|
+
],
|
|
4891
|
+
"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."
|
|
4892
|
+
},
|
|
4893
|
+
"side": {
|
|
4894
|
+
"enum": [
|
|
4895
|
+
"inserted",
|
|
4896
|
+
"deleted"
|
|
4897
|
+
],
|
|
4898
|
+
"description": "Optional replacement side. When the id resolves to a paired replacement, decides only the 'inserted' or 'deleted' half, leaving the other half as a standalone pending change."
|
|
2766
4899
|
}
|
|
2767
4900
|
},
|
|
2768
4901
|
"additionalProperties": false,
|
|
2769
4902
|
"required": [
|
|
4903
|
+
"kind",
|
|
2770
4904
|
"id"
|
|
2771
4905
|
]
|
|
2772
4906
|
},
|
|
@@ -2780,17 +4914,236 @@
|
|
|
2780
4914
|
"range": {
|
|
2781
4915
|
"$ref": "#/$defs/TextTarget"
|
|
2782
4916
|
},
|
|
4917
|
+
"overlap": {
|
|
4918
|
+
"type": "string",
|
|
4919
|
+
"description": "Optional logical overlap selector for callers that already resolved an ambiguous overlap surface. Adapter-owned interpretation."
|
|
4920
|
+
},
|
|
4921
|
+
"side": {
|
|
4922
|
+
"enum": [
|
|
4923
|
+
"insert",
|
|
4924
|
+
"inserted",
|
|
4925
|
+
"delete",
|
|
4926
|
+
"deleted",
|
|
4927
|
+
"source",
|
|
4928
|
+
"destination"
|
|
4929
|
+
],
|
|
4930
|
+
"description": "Optional revision side for paired replacement or move targets."
|
|
4931
|
+
},
|
|
2783
4932
|
"story": {
|
|
2784
|
-
"$ref": "#/$defs/StoryLocator"
|
|
4933
|
+
"$ref": "#/$defs/StoryLocator",
|
|
4934
|
+
"description": "Optional story containing the range target."
|
|
4935
|
+
},
|
|
4936
|
+
"part": {
|
|
4937
|
+
"type": "string",
|
|
4938
|
+
"description": "Compatibility alias used by older range callers; interpretation is adapter-owned."
|
|
4939
|
+
}
|
|
4940
|
+
},
|
|
4941
|
+
"additionalProperties": false,
|
|
4942
|
+
"required": [
|
|
4943
|
+
"kind",
|
|
4944
|
+
"range"
|
|
4945
|
+
]
|
|
4946
|
+
},
|
|
4947
|
+
{
|
|
4948
|
+
"type": "object",
|
|
4949
|
+
"properties": {
|
|
4950
|
+
"kind": {
|
|
4951
|
+
"const": "range",
|
|
4952
|
+
"type": "string"
|
|
4953
|
+
},
|
|
4954
|
+
"range": {
|
|
4955
|
+
"type": "object",
|
|
4956
|
+
"properties": {
|
|
4957
|
+
"anchor": {
|
|
4958
|
+
"type": "string"
|
|
4959
|
+
},
|
|
4960
|
+
"relativeStart": {
|
|
4961
|
+
"type": "integer",
|
|
4962
|
+
"minimum": 0
|
|
4963
|
+
},
|
|
4964
|
+
"relativeEnd": {
|
|
4965
|
+
"type": "integer",
|
|
4966
|
+
"minimum": 0
|
|
4967
|
+
}
|
|
4968
|
+
},
|
|
4969
|
+
"additionalProperties": false,
|
|
4970
|
+
"required": [
|
|
4971
|
+
"anchor",
|
|
4972
|
+
"relativeStart",
|
|
4973
|
+
"relativeEnd"
|
|
4974
|
+
]
|
|
4975
|
+
},
|
|
4976
|
+
"overlap": {
|
|
4977
|
+
"type": "string",
|
|
4978
|
+
"description": "Optional logical overlap selector for callers that already resolved an ambiguous overlap surface. Adapter-owned interpretation."
|
|
4979
|
+
},
|
|
4980
|
+
"side": {
|
|
4981
|
+
"enum": [
|
|
4982
|
+
"insert",
|
|
4983
|
+
"inserted",
|
|
4984
|
+
"delete",
|
|
4985
|
+
"deleted",
|
|
4986
|
+
"source",
|
|
4987
|
+
"destination"
|
|
4988
|
+
],
|
|
4989
|
+
"description": "Optional revision side for paired replacement or move targets."
|
|
4990
|
+
},
|
|
4991
|
+
"story": {
|
|
4992
|
+
"$ref": "#/$defs/StoryLocator",
|
|
4993
|
+
"description": "Optional story containing the range target."
|
|
4994
|
+
},
|
|
4995
|
+
"part": {
|
|
4996
|
+
"type": "string",
|
|
4997
|
+
"description": "Compatibility alias used by older range callers; interpretation is adapter-owned."
|
|
4998
|
+
}
|
|
4999
|
+
},
|
|
5000
|
+
"additionalProperties": false,
|
|
5001
|
+
"required": [
|
|
5002
|
+
"kind",
|
|
5003
|
+
"range"
|
|
5004
|
+
]
|
|
5005
|
+
},
|
|
5006
|
+
{
|
|
5007
|
+
"type": "object",
|
|
5008
|
+
"properties": {
|
|
5009
|
+
"kind": {
|
|
5010
|
+
"const": "range",
|
|
5011
|
+
"type": "string"
|
|
5012
|
+
},
|
|
5013
|
+
"anchor": {
|
|
5014
|
+
"type": "string"
|
|
5015
|
+
},
|
|
5016
|
+
"relativeStart": {
|
|
5017
|
+
"type": "integer",
|
|
5018
|
+
"minimum": 0
|
|
5019
|
+
},
|
|
5020
|
+
"relativeEnd": {
|
|
5021
|
+
"type": "integer",
|
|
5022
|
+
"minimum": 0
|
|
5023
|
+
},
|
|
5024
|
+
"overlap": {
|
|
5025
|
+
"type": "string",
|
|
5026
|
+
"description": "Optional logical overlap selector for callers that already resolved an ambiguous overlap surface. Adapter-owned interpretation."
|
|
5027
|
+
},
|
|
5028
|
+
"side": {
|
|
5029
|
+
"enum": [
|
|
5030
|
+
"insert",
|
|
5031
|
+
"inserted",
|
|
5032
|
+
"delete",
|
|
5033
|
+
"deleted",
|
|
5034
|
+
"source",
|
|
5035
|
+
"destination"
|
|
5036
|
+
],
|
|
5037
|
+
"description": "Optional revision side for paired replacement or move targets."
|
|
5038
|
+
},
|
|
5039
|
+
"story": {
|
|
5040
|
+
"$ref": "#/$defs/StoryLocator",
|
|
5041
|
+
"description": "Optional story containing the range target."
|
|
2785
5042
|
},
|
|
2786
5043
|
"part": {
|
|
2787
5044
|
"type": "string",
|
|
2788
|
-
"description": "
|
|
5045
|
+
"description": "Compatibility alias used by older range callers; interpretation is adapter-owned."
|
|
2789
5046
|
}
|
|
2790
5047
|
},
|
|
2791
5048
|
"additionalProperties": false,
|
|
2792
5049
|
"required": [
|
|
2793
5050
|
"kind",
|
|
5051
|
+
"anchor",
|
|
5052
|
+
"relativeStart",
|
|
5053
|
+
"relativeEnd"
|
|
5054
|
+
]
|
|
5055
|
+
},
|
|
5056
|
+
{
|
|
5057
|
+
"type": "object",
|
|
5058
|
+
"properties": {
|
|
5059
|
+
"kind": {
|
|
5060
|
+
"const": "all",
|
|
5061
|
+
"type": "string"
|
|
5062
|
+
},
|
|
5063
|
+
"story": {
|
|
5064
|
+
"oneOf": [
|
|
5065
|
+
{
|
|
5066
|
+
"$ref": "#/$defs/StoryLocator"
|
|
5067
|
+
},
|
|
5068
|
+
{
|
|
5069
|
+
"const": "all",
|
|
5070
|
+
"type": "string"
|
|
5071
|
+
}
|
|
5072
|
+
],
|
|
5073
|
+
"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."
|
|
5074
|
+
}
|
|
5075
|
+
},
|
|
5076
|
+
"additionalProperties": false,
|
|
5077
|
+
"required": [
|
|
5078
|
+
"kind"
|
|
5079
|
+
]
|
|
5080
|
+
},
|
|
5081
|
+
{
|
|
5082
|
+
"type": "object",
|
|
5083
|
+
"properties": {
|
|
5084
|
+
"id": {
|
|
5085
|
+
"type": "string"
|
|
5086
|
+
},
|
|
5087
|
+
"story": {
|
|
5088
|
+
"$ref": "#/$defs/StoryLocator"
|
|
5089
|
+
},
|
|
5090
|
+
"moveRole": {
|
|
5091
|
+
"enum": [
|
|
5092
|
+
"pair",
|
|
5093
|
+
"source",
|
|
5094
|
+
"destination"
|
|
5095
|
+
],
|
|
5096
|
+
"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."
|
|
5097
|
+
},
|
|
5098
|
+
"side": {
|
|
5099
|
+
"enum": [
|
|
5100
|
+
"inserted",
|
|
5101
|
+
"deleted"
|
|
5102
|
+
],
|
|
5103
|
+
"description": "Optional replacement side. When the id resolves to a paired replacement, decides only the 'inserted' or 'deleted' half."
|
|
5104
|
+
}
|
|
5105
|
+
},
|
|
5106
|
+
"additionalProperties": false,
|
|
5107
|
+
"required": [
|
|
5108
|
+
"id"
|
|
5109
|
+
]
|
|
5110
|
+
},
|
|
5111
|
+
{
|
|
5112
|
+
"type": "object",
|
|
5113
|
+
"properties": {
|
|
5114
|
+
"id": {
|
|
5115
|
+
"type": "string"
|
|
5116
|
+
},
|
|
5117
|
+
"range": {
|
|
5118
|
+
"type": "object",
|
|
5119
|
+
"properties": {
|
|
5120
|
+
"kind": {
|
|
5121
|
+
"const": "partial",
|
|
5122
|
+
"type": "string"
|
|
5123
|
+
},
|
|
5124
|
+
"start": {
|
|
5125
|
+
"type": "integer",
|
|
5126
|
+
"minimum": 0
|
|
5127
|
+
},
|
|
5128
|
+
"end": {
|
|
5129
|
+
"type": "integer",
|
|
5130
|
+
"minimum": 0
|
|
5131
|
+
}
|
|
5132
|
+
},
|
|
5133
|
+
"additionalProperties": false,
|
|
5134
|
+
"required": [
|
|
5135
|
+
"kind",
|
|
5136
|
+
"start",
|
|
5137
|
+
"end"
|
|
5138
|
+
]
|
|
5139
|
+
},
|
|
5140
|
+
"story": {
|
|
5141
|
+
"$ref": "#/$defs/StoryLocator"
|
|
5142
|
+
}
|
|
5143
|
+
},
|
|
5144
|
+
"additionalProperties": false,
|
|
5145
|
+
"required": [
|
|
5146
|
+
"id",
|
|
2794
5147
|
"range"
|
|
2795
5148
|
]
|
|
2796
5149
|
},
|
|
@@ -2820,8 +5173,7 @@
|
|
|
2820
5173
|
"scope"
|
|
2821
5174
|
]
|
|
2822
5175
|
}
|
|
2823
|
-
]
|
|
2824
|
-
"description": "Required for action 'decide'."
|
|
5176
|
+
]
|
|
2825
5177
|
}
|
|
2826
5178
|
},
|
|
2827
5179
|
"required": [
|
|
@@ -2851,6 +5203,10 @@
|
|
|
2851
5203
|
"inputSchema": {
|
|
2852
5204
|
"type": "object",
|
|
2853
5205
|
"properties": {
|
|
5206
|
+
"in": {
|
|
5207
|
+
"$ref": "#/$defs/StoryLocator",
|
|
5208
|
+
"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."
|
|
5209
|
+
},
|
|
2854
5210
|
"select": {
|
|
2855
5211
|
"description": "Search selector. Use {type:'text', pattern:'...'} for text search or {type:'node', nodeType:'paragraph'|'heading'|...} for node search.",
|
|
2856
5212
|
"oneOf": [
|
|
@@ -2864,18 +5220,22 @@
|
|
|
2864
5220
|
},
|
|
2865
5221
|
"pattern": {
|
|
2866
5222
|
"type": "string",
|
|
2867
|
-
"description": "Text
|
|
5223
|
+
"description": "Text to match. In regex mode, patterns are validated for syntax, maximum length, and safety before execution."
|
|
2868
5224
|
},
|
|
2869
5225
|
"mode": {
|
|
2870
5226
|
"enum": [
|
|
2871
5227
|
"contains",
|
|
2872
5228
|
"regex"
|
|
2873
5229
|
],
|
|
2874
|
-
"description": "Match mode: 'contains' (substring) or 'regex'."
|
|
5230
|
+
"description": "Match mode: 'contains' (literal substring, recommended for literal text) or 'regex' (validated regular expression)."
|
|
2875
5231
|
},
|
|
2876
5232
|
"caseSensitive": {
|
|
2877
5233
|
"type": "boolean",
|
|
2878
5234
|
"description": "Case-sensitive matching. Default: false."
|
|
5235
|
+
},
|
|
5236
|
+
"wholeWord": {
|
|
5237
|
+
"type": "boolean",
|
|
5238
|
+
"description": "Require word-boundary matches. Default: false."
|
|
2879
5239
|
}
|
|
2880
5240
|
},
|
|
2881
5241
|
"additionalProperties": false,
|
|
@@ -2999,6 +5359,10 @@
|
|
|
2999
5359
|
],
|
|
3000
5360
|
"description": "The action to perform. One of: apply, preview."
|
|
3001
5361
|
},
|
|
5362
|
+
"in": {
|
|
5363
|
+
"$ref": "#/$defs/StoryLocator",
|
|
5364
|
+
"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."
|
|
5365
|
+
},
|
|
3002
5366
|
"expectedRevision": {
|
|
3003
5367
|
"type": "string",
|
|
3004
5368
|
"description": "Document revision for optimistic concurrency. Mutation fails if document was modified since this revision. Only for action 'preview'. Omit for other actions."
|
|
@@ -3050,18 +5414,22 @@
|
|
|
3050
5414
|
},
|
|
3051
5415
|
"pattern": {
|
|
3052
5416
|
"type": "string",
|
|
3053
|
-
"description": "Text
|
|
5417
|
+
"description": "Text to match. In regex mode, patterns are validated for syntax, maximum length, and safety before execution."
|
|
3054
5418
|
},
|
|
3055
5419
|
"mode": {
|
|
3056
5420
|
"enum": [
|
|
3057
5421
|
"contains",
|
|
3058
5422
|
"regex"
|
|
3059
5423
|
],
|
|
3060
|
-
"description": "Match mode: 'contains' (substring) or 'regex'."
|
|
5424
|
+
"description": "Match mode: 'contains' (literal substring, recommended for literal text) or 'regex' (validated regular expression)."
|
|
3061
5425
|
},
|
|
3062
5426
|
"caseSensitive": {
|
|
3063
5427
|
"type": "boolean",
|
|
3064
5428
|
"description": "Case-sensitive matching. Default: false."
|
|
5429
|
+
},
|
|
5430
|
+
"wholeWord": {
|
|
5431
|
+
"type": "boolean",
|
|
5432
|
+
"description": "Require word-boundary matches. Default: false."
|
|
3065
5433
|
}
|
|
3066
5434
|
},
|
|
3067
5435
|
"additionalProperties": false,
|
|
@@ -3386,18 +5754,22 @@
|
|
|
3386
5754
|
},
|
|
3387
5755
|
"pattern": {
|
|
3388
5756
|
"type": "string",
|
|
3389
|
-
"description": "Text
|
|
5757
|
+
"description": "Text to match. In regex mode, patterns are validated for syntax, maximum length, and safety before execution."
|
|
3390
5758
|
},
|
|
3391
5759
|
"mode": {
|
|
3392
5760
|
"enum": [
|
|
3393
5761
|
"contains",
|
|
3394
5762
|
"regex"
|
|
3395
5763
|
],
|
|
3396
|
-
"description": "Match mode: 'contains' (substring) or 'regex'."
|
|
5764
|
+
"description": "Match mode: 'contains' (literal substring, recommended for literal text) or 'regex' (validated regular expression)."
|
|
3397
5765
|
},
|
|
3398
5766
|
"caseSensitive": {
|
|
3399
5767
|
"type": "boolean",
|
|
3400
5768
|
"description": "Case-sensitive matching. Default: false."
|
|
5769
|
+
},
|
|
5770
|
+
"wholeWord": {
|
|
5771
|
+
"type": "boolean",
|
|
5772
|
+
"description": "Require word-boundary matches. Default: false."
|
|
3401
5773
|
}
|
|
3402
5774
|
},
|
|
3403
5775
|
"additionalProperties": false,
|
|
@@ -3671,18 +6043,22 @@
|
|
|
3671
6043
|
},
|
|
3672
6044
|
"pattern": {
|
|
3673
6045
|
"type": "string",
|
|
3674
|
-
"description": "Text
|
|
6046
|
+
"description": "Text to match. In regex mode, patterns are validated for syntax, maximum length, and safety before execution."
|
|
3675
6047
|
},
|
|
3676
6048
|
"mode": {
|
|
3677
6049
|
"enum": [
|
|
3678
6050
|
"contains",
|
|
3679
6051
|
"regex"
|
|
3680
6052
|
],
|
|
3681
|
-
"description": "Match mode: 'contains' (substring) or 'regex'."
|
|
6053
|
+
"description": "Match mode: 'contains' (literal substring, recommended for literal text) or 'regex' (validated regular expression)."
|
|
3682
6054
|
},
|
|
3683
6055
|
"caseSensitive": {
|
|
3684
6056
|
"type": "boolean",
|
|
3685
6057
|
"description": "Case-sensitive matching. Default: false."
|
|
6058
|
+
},
|
|
6059
|
+
"wholeWord": {
|
|
6060
|
+
"type": "boolean",
|
|
6061
|
+
"description": "Require word-boundary matches. Default: false."
|
|
3686
6062
|
}
|
|
3687
6063
|
},
|
|
3688
6064
|
"additionalProperties": false,
|
|
@@ -3878,18 +6254,22 @@
|
|
|
3878
6254
|
},
|
|
3879
6255
|
"pattern": {
|
|
3880
6256
|
"type": "string",
|
|
3881
|
-
"description": "Text
|
|
6257
|
+
"description": "Text to match. In regex mode, patterns are validated for syntax, maximum length, and safety before execution."
|
|
3882
6258
|
},
|
|
3883
6259
|
"mode": {
|
|
3884
6260
|
"enum": [
|
|
3885
6261
|
"contains",
|
|
3886
6262
|
"regex"
|
|
3887
6263
|
],
|
|
3888
|
-
"description": "Match mode: 'contains' (substring) or 'regex'."
|
|
6264
|
+
"description": "Match mode: 'contains' (literal substring, recommended for literal text) or 'regex' (validated regular expression)."
|
|
3889
6265
|
},
|
|
3890
6266
|
"caseSensitive": {
|
|
3891
6267
|
"type": "boolean",
|
|
3892
6268
|
"description": "Case-sensitive matching. Default: false."
|
|
6269
|
+
},
|
|
6270
|
+
"wholeWord": {
|
|
6271
|
+
"type": "boolean",
|
|
6272
|
+
"description": "Require word-boundary matches. Default: false."
|
|
3893
6273
|
}
|
|
3894
6274
|
},
|
|
3895
6275
|
"additionalProperties": false,
|
|
@@ -4908,18 +7288,22 @@
|
|
|
4908
7288
|
},
|
|
4909
7289
|
"pattern": {
|
|
4910
7290
|
"type": "string",
|
|
4911
|
-
"description": "Text
|
|
7291
|
+
"description": "Text to match. In regex mode, patterns are validated for syntax, maximum length, and safety before execution."
|
|
4912
7292
|
},
|
|
4913
7293
|
"mode": {
|
|
4914
7294
|
"enum": [
|
|
4915
7295
|
"contains",
|
|
4916
7296
|
"regex"
|
|
4917
7297
|
],
|
|
4918
|
-
"description": "Match mode: 'contains' (substring) or 'regex'."
|
|
7298
|
+
"description": "Match mode: 'contains' (literal substring, recommended for literal text) or 'regex' (validated regular expression)."
|
|
4919
7299
|
},
|
|
4920
7300
|
"caseSensitive": {
|
|
4921
7301
|
"type": "boolean",
|
|
4922
7302
|
"description": "Case-sensitive matching. Default: false."
|
|
7303
|
+
},
|
|
7304
|
+
"wholeWord": {
|
|
7305
|
+
"type": "boolean",
|
|
7306
|
+
"description": "Require word-boundary matches. Default: false."
|
|
4923
7307
|
}
|
|
4924
7308
|
},
|
|
4925
7309
|
"additionalProperties": false,
|
|
@@ -5258,6 +7642,14 @@
|
|
|
5258
7642
|
"type": "number",
|
|
5259
7643
|
"description": "Only for action 'set_layout'. Omit for other actions."
|
|
5260
7644
|
},
|
|
7645
|
+
"preferredWidthType": {
|
|
7646
|
+
"enum": [
|
|
7647
|
+
"dxa",
|
|
7648
|
+
"auto",
|
|
7649
|
+
"pct"
|
|
7650
|
+
],
|
|
7651
|
+
"description": "Only for action 'set_layout'. Omit for other actions."
|
|
7652
|
+
},
|
|
5261
7653
|
"alignment": {
|
|
5262
7654
|
"enum": [
|
|
5263
7655
|
"left",
|
|
@@ -5317,7 +7709,7 @@
|
|
|
5317
7709
|
"exact",
|
|
5318
7710
|
"auto"
|
|
5319
7711
|
],
|
|
5320
|
-
"description": "
|
|
7712
|
+
"description": "Only for action 'set_row'. Omit for other actions."
|
|
5321
7713
|
},
|
|
5322
7714
|
"allowBreakAcrossPages": {
|
|
5323
7715
|
"type": "boolean",
|
|
@@ -5327,6 +7719,62 @@
|
|
|
5327
7719
|
"type": "boolean",
|
|
5328
7720
|
"description": "Only for action 'set_row_options'. Omit for other actions."
|
|
5329
7721
|
},
|
|
7722
|
+
"gridBefore": {
|
|
7723
|
+
"type": "integer",
|
|
7724
|
+
"minimum": 0,
|
|
7725
|
+
"description": "Only for action 'set_row_options'. Omit for other actions."
|
|
7726
|
+
},
|
|
7727
|
+
"gridAfter": {
|
|
7728
|
+
"type": "integer",
|
|
7729
|
+
"minimum": 0,
|
|
7730
|
+
"description": "Only for action 'set_row_options'. Omit for other actions."
|
|
7731
|
+
},
|
|
7732
|
+
"wBefore": {
|
|
7733
|
+
"type": "object",
|
|
7734
|
+
"properties": {
|
|
7735
|
+
"value": {
|
|
7736
|
+
"type": "integer",
|
|
7737
|
+
"minimum": 0
|
|
7738
|
+
},
|
|
7739
|
+
"type": {
|
|
7740
|
+
"enum": [
|
|
7741
|
+
"auto",
|
|
7742
|
+
"dxa",
|
|
7743
|
+
"nil",
|
|
7744
|
+
"pct"
|
|
7745
|
+
]
|
|
7746
|
+
}
|
|
7747
|
+
},
|
|
7748
|
+
"additionalProperties": false,
|
|
7749
|
+
"required": [
|
|
7750
|
+
"value",
|
|
7751
|
+
"type"
|
|
7752
|
+
],
|
|
7753
|
+
"description": "Only for action 'set_row_options'. Omit for other actions."
|
|
7754
|
+
},
|
|
7755
|
+
"wAfter": {
|
|
7756
|
+
"type": "object",
|
|
7757
|
+
"properties": {
|
|
7758
|
+
"value": {
|
|
7759
|
+
"type": "integer",
|
|
7760
|
+
"minimum": 0
|
|
7761
|
+
},
|
|
7762
|
+
"type": {
|
|
7763
|
+
"enum": [
|
|
7764
|
+
"auto",
|
|
7765
|
+
"dxa",
|
|
7766
|
+
"nil",
|
|
7767
|
+
"pct"
|
|
7768
|
+
]
|
|
7769
|
+
}
|
|
7770
|
+
},
|
|
7771
|
+
"additionalProperties": false,
|
|
7772
|
+
"required": [
|
|
7773
|
+
"value",
|
|
7774
|
+
"type"
|
|
7775
|
+
],
|
|
7776
|
+
"description": "Only for action 'set_row_options'. Omit for other actions."
|
|
7777
|
+
},
|
|
5330
7778
|
"columnIndex": {
|
|
5331
7779
|
"type": "integer",
|
|
5332
7780
|
"minimum": 0,
|
|
@@ -5797,20 +8245,17 @@
|
|
|
5797
8245
|
"requiredOneOf": [
|
|
5798
8246
|
[
|
|
5799
8247
|
"target",
|
|
5800
|
-
"heightPt"
|
|
5801
|
-
"rule"
|
|
8248
|
+
"heightPt"
|
|
5802
8249
|
],
|
|
5803
8250
|
[
|
|
5804
8251
|
"target",
|
|
5805
8252
|
"rowIndex",
|
|
5806
|
-
"heightPt"
|
|
5807
|
-
"rule"
|
|
8253
|
+
"heightPt"
|
|
5808
8254
|
],
|
|
5809
8255
|
[
|
|
5810
8256
|
"nodeId",
|
|
5811
8257
|
"rowIndex",
|
|
5812
|
-
"heightPt"
|
|
5813
|
-
"rule"
|
|
8258
|
+
"heightPt"
|
|
5814
8259
|
]
|
|
5815
8260
|
]
|
|
5816
8261
|
},
|