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