@superdoc-dev/sdk 1.0.0-next.74 → 1.0.0-next.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/client.d.ts +21 -4
- package/dist/generated/client.d.ts.map +1 -1
- package/dist/generated/contract.cjs +576 -246
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +576 -246
- package/dist/generated/intent-dispatch.generated.cjs +1 -0
- package/dist/generated/intent-dispatch.generated.d.ts.map +1 -1
- package/dist/generated/intent-dispatch.generated.js +1 -0
- package/dist/tools.cjs +10 -1
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +10 -1
- 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 +121 -988
- package/tools/intent_dispatch_generated.py +2 -0
- package/tools/system-prompt.md +47 -11
- package/tools/tools-policy.json +1 -1
- package/tools/tools.anthropic.json +116 -987
- package/tools/tools.generic.json +120 -990
- package/tools/tools.openai.json +116 -987
- package/tools/tools.vercel.json +116 -987
package/tools/tools.openai.json
CHANGED
|
@@ -5,169 +5,49 @@
|
|
|
5
5
|
"type": "function",
|
|
6
6
|
"function": {
|
|
7
7
|
"name": "superdoc_get_content",
|
|
8
|
-
"description": "Read document content
|
|
8
|
+
"description": "Read document content. Use action \"info\" for structure and styles, \"blocks\" for all block IDs and types, \"text\" or \"markdown\" for content. Call info or blocks before editing.",
|
|
9
9
|
"parameters": {
|
|
10
10
|
"type": "object",
|
|
11
11
|
"properties": {
|
|
12
12
|
"action": {
|
|
13
13
|
"type": "string",
|
|
14
14
|
"enum": [
|
|
15
|
+
"blocks",
|
|
15
16
|
"html",
|
|
16
17
|
"info",
|
|
17
18
|
"markdown",
|
|
18
19
|
"text"
|
|
19
20
|
],
|
|
20
|
-
"description": "The action to perform. One of: html, info, markdown, text."
|
|
21
|
-
},
|
|
22
|
-
"in": {
|
|
23
|
-
"oneOf": [
|
|
24
|
-
{
|
|
25
|
-
"type": "object",
|
|
26
|
-
"properties": {
|
|
27
|
-
"kind": {
|
|
28
|
-
"const": "story",
|
|
29
|
-
"type": "string"
|
|
30
|
-
},
|
|
31
|
-
"storyType": {
|
|
32
|
-
"const": "body",
|
|
33
|
-
"type": "string"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"required": [
|
|
37
|
-
"kind",
|
|
38
|
-
"storyType"
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"type": "object",
|
|
43
|
-
"properties": {
|
|
44
|
-
"kind": {
|
|
45
|
-
"const": "story",
|
|
46
|
-
"type": "string"
|
|
47
|
-
},
|
|
48
|
-
"storyType": {
|
|
49
|
-
"const": "headerFooterSlot",
|
|
50
|
-
"type": "string"
|
|
51
|
-
},
|
|
52
|
-
"section": {
|
|
53
|
-
"type": "object",
|
|
54
|
-
"properties": {
|
|
55
|
-
"kind": {
|
|
56
|
-
"const": "section",
|
|
57
|
-
"type": "string"
|
|
58
|
-
},
|
|
59
|
-
"sectionId": {
|
|
60
|
-
"type": "string"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"required": [
|
|
64
|
-
"kind",
|
|
65
|
-
"sectionId"
|
|
66
|
-
]
|
|
67
|
-
},
|
|
68
|
-
"headerFooterKind": {
|
|
69
|
-
"enum": [
|
|
70
|
-
"header",
|
|
71
|
-
"footer"
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
"variant": {
|
|
75
|
-
"enum": [
|
|
76
|
-
"default",
|
|
77
|
-
"first",
|
|
78
|
-
"even"
|
|
79
|
-
]
|
|
80
|
-
},
|
|
81
|
-
"resolution": {
|
|
82
|
-
"enum": [
|
|
83
|
-
"effective",
|
|
84
|
-
"explicit"
|
|
85
|
-
]
|
|
86
|
-
},
|
|
87
|
-
"onWrite": {
|
|
88
|
-
"enum": [
|
|
89
|
-
"materializeIfInherited",
|
|
90
|
-
"editResolvedPart",
|
|
91
|
-
"error"
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
"required": [
|
|
96
|
-
"kind",
|
|
97
|
-
"storyType",
|
|
98
|
-
"section",
|
|
99
|
-
"headerFooterKind",
|
|
100
|
-
"variant"
|
|
101
|
-
]
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"type": "object",
|
|
105
|
-
"properties": {
|
|
106
|
-
"kind": {
|
|
107
|
-
"const": "story",
|
|
108
|
-
"type": "string"
|
|
109
|
-
},
|
|
110
|
-
"storyType": {
|
|
111
|
-
"const": "headerFooterPart",
|
|
112
|
-
"type": "string"
|
|
113
|
-
},
|
|
114
|
-
"refId": {
|
|
115
|
-
"type": "string"
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
"required": [
|
|
119
|
-
"kind",
|
|
120
|
-
"storyType",
|
|
121
|
-
"refId"
|
|
122
|
-
]
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"type": "object",
|
|
126
|
-
"properties": {
|
|
127
|
-
"kind": {
|
|
128
|
-
"const": "story",
|
|
129
|
-
"type": "string"
|
|
130
|
-
},
|
|
131
|
-
"storyType": {
|
|
132
|
-
"const": "footnote",
|
|
133
|
-
"type": "string"
|
|
134
|
-
},
|
|
135
|
-
"noteId": {
|
|
136
|
-
"type": "string"
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
"required": [
|
|
140
|
-
"kind",
|
|
141
|
-
"storyType",
|
|
142
|
-
"noteId"
|
|
143
|
-
]
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"type": "object",
|
|
147
|
-
"properties": {
|
|
148
|
-
"kind": {
|
|
149
|
-
"const": "story",
|
|
150
|
-
"type": "string"
|
|
151
|
-
},
|
|
152
|
-
"storyType": {
|
|
153
|
-
"const": "endnote",
|
|
154
|
-
"type": "string"
|
|
155
|
-
},
|
|
156
|
-
"noteId": {
|
|
157
|
-
"type": "string"
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
"required": [
|
|
161
|
-
"kind",
|
|
162
|
-
"storyType",
|
|
163
|
-
"noteId"
|
|
164
|
-
]
|
|
165
|
-
}
|
|
166
|
-
]
|
|
21
|
+
"description": "The action to perform. One of: blocks, html, info, markdown, text."
|
|
167
22
|
},
|
|
168
23
|
"unflattenLists": {
|
|
169
24
|
"type": "boolean",
|
|
170
|
-
"description": "When true, flattens nested list structures in output. Default: false."
|
|
25
|
+
"description": "When true, flattens nested list structures in output. Default: false. Only for action 'html'. Omit for other actions."
|
|
26
|
+
},
|
|
27
|
+
"offset": {
|
|
28
|
+
"type": "number",
|
|
29
|
+
"description": "Number of blocks to skip. Default: 0. Only for action 'blocks'. Omit for other actions."
|
|
30
|
+
},
|
|
31
|
+
"limit": {
|
|
32
|
+
"type": "number",
|
|
33
|
+
"description": "Maximum blocks to return. Omit for all blocks. Only for action 'blocks'. Omit for other actions."
|
|
34
|
+
},
|
|
35
|
+
"nodeTypes": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": {
|
|
38
|
+
"enum": [
|
|
39
|
+
"paragraph",
|
|
40
|
+
"heading",
|
|
41
|
+
"listItem",
|
|
42
|
+
"table",
|
|
43
|
+
"tableRow",
|
|
44
|
+
"tableCell",
|
|
45
|
+
"tableOfContents",
|
|
46
|
+
"image",
|
|
47
|
+
"sdt"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"description": "Filter by block types (e.g. ['paragraph', 'heading']). Omit for all types. Only for action 'blocks'. Omit for other actions."
|
|
171
51
|
}
|
|
172
52
|
},
|
|
173
53
|
"required": [
|
|
@@ -405,159 +285,13 @@
|
|
|
405
285
|
],
|
|
406
286
|
"description": "Target address object. Use 'ref' instead if you have a search handle. Format: {kind:'text', blockId, range:{start,end}} or {kind:'block', nodeType, nodeId}."
|
|
407
287
|
},
|
|
408
|
-
"in": {
|
|
409
|
-
"oneOf": [
|
|
410
|
-
{
|
|
411
|
-
"type": "object",
|
|
412
|
-
"properties": {
|
|
413
|
-
"kind": {
|
|
414
|
-
"const": "story",
|
|
415
|
-
"type": "string"
|
|
416
|
-
},
|
|
417
|
-
"storyType": {
|
|
418
|
-
"const": "body",
|
|
419
|
-
"type": "string"
|
|
420
|
-
}
|
|
421
|
-
},
|
|
422
|
-
"required": [
|
|
423
|
-
"kind",
|
|
424
|
-
"storyType"
|
|
425
|
-
]
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
"type": "object",
|
|
429
|
-
"properties": {
|
|
430
|
-
"kind": {
|
|
431
|
-
"const": "story",
|
|
432
|
-
"type": "string"
|
|
433
|
-
},
|
|
434
|
-
"storyType": {
|
|
435
|
-
"const": "headerFooterSlot",
|
|
436
|
-
"type": "string"
|
|
437
|
-
},
|
|
438
|
-
"section": {
|
|
439
|
-
"type": "object",
|
|
440
|
-
"properties": {
|
|
441
|
-
"kind": {
|
|
442
|
-
"const": "section",
|
|
443
|
-
"type": "string"
|
|
444
|
-
},
|
|
445
|
-
"sectionId": {
|
|
446
|
-
"type": "string"
|
|
447
|
-
}
|
|
448
|
-
},
|
|
449
|
-
"required": [
|
|
450
|
-
"kind",
|
|
451
|
-
"sectionId"
|
|
452
|
-
]
|
|
453
|
-
},
|
|
454
|
-
"headerFooterKind": {
|
|
455
|
-
"enum": [
|
|
456
|
-
"header",
|
|
457
|
-
"footer"
|
|
458
|
-
]
|
|
459
|
-
},
|
|
460
|
-
"variant": {
|
|
461
|
-
"enum": [
|
|
462
|
-
"default",
|
|
463
|
-
"first",
|
|
464
|
-
"even"
|
|
465
|
-
]
|
|
466
|
-
},
|
|
467
|
-
"resolution": {
|
|
468
|
-
"enum": [
|
|
469
|
-
"effective",
|
|
470
|
-
"explicit"
|
|
471
|
-
]
|
|
472
|
-
},
|
|
473
|
-
"onWrite": {
|
|
474
|
-
"enum": [
|
|
475
|
-
"materializeIfInherited",
|
|
476
|
-
"editResolvedPart",
|
|
477
|
-
"error"
|
|
478
|
-
]
|
|
479
|
-
}
|
|
480
|
-
},
|
|
481
|
-
"required": [
|
|
482
|
-
"kind",
|
|
483
|
-
"storyType",
|
|
484
|
-
"section",
|
|
485
|
-
"headerFooterKind",
|
|
486
|
-
"variant"
|
|
487
|
-
]
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
"type": "object",
|
|
491
|
-
"properties": {
|
|
492
|
-
"kind": {
|
|
493
|
-
"const": "story",
|
|
494
|
-
"type": "string"
|
|
495
|
-
},
|
|
496
|
-
"storyType": {
|
|
497
|
-
"const": "headerFooterPart",
|
|
498
|
-
"type": "string"
|
|
499
|
-
},
|
|
500
|
-
"refId": {
|
|
501
|
-
"type": "string"
|
|
502
|
-
}
|
|
503
|
-
},
|
|
504
|
-
"required": [
|
|
505
|
-
"kind",
|
|
506
|
-
"storyType",
|
|
507
|
-
"refId"
|
|
508
|
-
]
|
|
509
|
-
},
|
|
510
|
-
{
|
|
511
|
-
"type": "object",
|
|
512
|
-
"properties": {
|
|
513
|
-
"kind": {
|
|
514
|
-
"const": "story",
|
|
515
|
-
"type": "string"
|
|
516
|
-
},
|
|
517
|
-
"storyType": {
|
|
518
|
-
"const": "footnote",
|
|
519
|
-
"type": "string"
|
|
520
|
-
},
|
|
521
|
-
"noteId": {
|
|
522
|
-
"type": "string"
|
|
523
|
-
}
|
|
524
|
-
},
|
|
525
|
-
"required": [
|
|
526
|
-
"kind",
|
|
527
|
-
"storyType",
|
|
528
|
-
"noteId"
|
|
529
|
-
]
|
|
530
|
-
},
|
|
531
|
-
{
|
|
532
|
-
"type": "object",
|
|
533
|
-
"properties": {
|
|
534
|
-
"kind": {
|
|
535
|
-
"const": "story",
|
|
536
|
-
"type": "string"
|
|
537
|
-
},
|
|
538
|
-
"storyType": {
|
|
539
|
-
"const": "endnote",
|
|
540
|
-
"type": "string"
|
|
541
|
-
},
|
|
542
|
-
"noteId": {
|
|
543
|
-
"type": "string"
|
|
544
|
-
}
|
|
545
|
-
},
|
|
546
|
-
"required": [
|
|
547
|
-
"kind",
|
|
548
|
-
"storyType",
|
|
549
|
-
"noteId"
|
|
550
|
-
]
|
|
551
|
-
}
|
|
552
|
-
]
|
|
553
|
-
},
|
|
554
288
|
"value": {
|
|
555
289
|
"type": "string",
|
|
556
|
-
"description": "Text content to insert."
|
|
290
|
+
"description": "Text content to insert. Only for action 'insert'. Omit for other actions."
|
|
557
291
|
},
|
|
558
292
|
"type": {
|
|
559
293
|
"type": "string",
|
|
560
|
-
"description": "Content format: 'text' (default), 'markdown', or 'html'.",
|
|
294
|
+
"description": "Content format: 'text' (default), 'markdown', or 'html'. Only for action 'insert'. Omit for other actions.",
|
|
561
295
|
"enum": [
|
|
562
296
|
"text",
|
|
563
297
|
"markdown",
|
|
@@ -582,11 +316,11 @@
|
|
|
582
316
|
}
|
|
583
317
|
}
|
|
584
318
|
],
|
|
585
|
-
"description": "Document fragment to insert (structured content)."
|
|
319
|
+
"description": "Document fragment to insert (structured content). Only for actions 'insert', 'replace'. Omit for other actions."
|
|
586
320
|
},
|
|
587
321
|
"placement": {
|
|
588
322
|
"type": "string",
|
|
589
|
-
"description": "Where to place content relative to target: 'before', 'after', 'insideStart', or 'insideEnd'.",
|
|
323
|
+
"description": "Where to place content relative to target: 'before', 'after', 'insideStart', or 'insideEnd'. Only for action 'insert'. Omit for other actions.",
|
|
590
324
|
"enum": [
|
|
591
325
|
"before",
|
|
592
326
|
"after",
|
|
@@ -604,7 +338,7 @@
|
|
|
604
338
|
]
|
|
605
339
|
}
|
|
606
340
|
},
|
|
607
|
-
"description": "Controls nesting behavior. tables: 'allow' permits inserting tables inside other tables."
|
|
341
|
+
"description": "Controls nesting behavior. tables: 'allow' permits inserting tables inside other tables. Only for actions 'insert', 'replace'. Omit for other actions."
|
|
608
342
|
},
|
|
609
343
|
"blockId": {
|
|
610
344
|
"type": "string",
|
|
@@ -620,11 +354,11 @@
|
|
|
620
354
|
},
|
|
621
355
|
"offset": {
|
|
622
356
|
"type": "number",
|
|
623
|
-
"description": "Character offset for insertion (alias for --start/--end with same value)."
|
|
357
|
+
"description": "Character offset for insertion (alias for --start/--end with same value). Only for action 'insert'. Omit for other actions."
|
|
624
358
|
},
|
|
625
359
|
"text": {
|
|
626
360
|
"type": "string",
|
|
627
|
-
"description": "Replacement text content."
|
|
361
|
+
"description": "Replacement text content. Only for action 'replace'. Omit for other actions."
|
|
628
362
|
},
|
|
629
363
|
"behavior": {
|
|
630
364
|
"type": "string",
|
|
@@ -632,7 +366,7 @@
|
|
|
632
366
|
"selection",
|
|
633
367
|
"exact"
|
|
634
368
|
],
|
|
635
|
-
"description": "Delete behavior: 'selection' (default) or 'exact'."
|
|
369
|
+
"description": "Delete behavior: 'selection' (default) or 'exact'. Only for action 'delete'. Omit for other actions."
|
|
636
370
|
}
|
|
637
371
|
},
|
|
638
372
|
"required": [
|
|
@@ -646,7 +380,7 @@
|
|
|
646
380
|
"type": "function",
|
|
647
381
|
"function": {
|
|
648
382
|
"name": "superdoc_format",
|
|
649
|
-
"description": "Change text and paragraph formatting",
|
|
383
|
+
"description": "Change text and paragraph formatting. Use action \"inline\" with a search ref for bold/italic/etc. Use action \"set_style\" with a styleId from superdoc_get_content info to apply a named paragraph style.",
|
|
650
384
|
"parameters": {
|
|
651
385
|
"type": "object",
|
|
652
386
|
"properties": {
|
|
@@ -837,152 +571,6 @@
|
|
|
837
571
|
],
|
|
838
572
|
"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_direction'."
|
|
839
573
|
},
|
|
840
|
-
"in": {
|
|
841
|
-
"oneOf": [
|
|
842
|
-
{
|
|
843
|
-
"type": "object",
|
|
844
|
-
"properties": {
|
|
845
|
-
"kind": {
|
|
846
|
-
"const": "story",
|
|
847
|
-
"type": "string"
|
|
848
|
-
},
|
|
849
|
-
"storyType": {
|
|
850
|
-
"const": "body",
|
|
851
|
-
"type": "string"
|
|
852
|
-
}
|
|
853
|
-
},
|
|
854
|
-
"required": [
|
|
855
|
-
"kind",
|
|
856
|
-
"storyType"
|
|
857
|
-
]
|
|
858
|
-
},
|
|
859
|
-
{
|
|
860
|
-
"type": "object",
|
|
861
|
-
"properties": {
|
|
862
|
-
"kind": {
|
|
863
|
-
"const": "story",
|
|
864
|
-
"type": "string"
|
|
865
|
-
},
|
|
866
|
-
"storyType": {
|
|
867
|
-
"const": "headerFooterSlot",
|
|
868
|
-
"type": "string"
|
|
869
|
-
},
|
|
870
|
-
"section": {
|
|
871
|
-
"type": "object",
|
|
872
|
-
"properties": {
|
|
873
|
-
"kind": {
|
|
874
|
-
"const": "section",
|
|
875
|
-
"type": "string"
|
|
876
|
-
},
|
|
877
|
-
"sectionId": {
|
|
878
|
-
"type": "string"
|
|
879
|
-
}
|
|
880
|
-
},
|
|
881
|
-
"required": [
|
|
882
|
-
"kind",
|
|
883
|
-
"sectionId"
|
|
884
|
-
]
|
|
885
|
-
},
|
|
886
|
-
"headerFooterKind": {
|
|
887
|
-
"enum": [
|
|
888
|
-
"header",
|
|
889
|
-
"footer"
|
|
890
|
-
]
|
|
891
|
-
},
|
|
892
|
-
"variant": {
|
|
893
|
-
"enum": [
|
|
894
|
-
"default",
|
|
895
|
-
"first",
|
|
896
|
-
"even"
|
|
897
|
-
]
|
|
898
|
-
},
|
|
899
|
-
"resolution": {
|
|
900
|
-
"enum": [
|
|
901
|
-
"effective",
|
|
902
|
-
"explicit"
|
|
903
|
-
]
|
|
904
|
-
},
|
|
905
|
-
"onWrite": {
|
|
906
|
-
"enum": [
|
|
907
|
-
"materializeIfInherited",
|
|
908
|
-
"editResolvedPart",
|
|
909
|
-
"error"
|
|
910
|
-
]
|
|
911
|
-
}
|
|
912
|
-
},
|
|
913
|
-
"required": [
|
|
914
|
-
"kind",
|
|
915
|
-
"storyType",
|
|
916
|
-
"section",
|
|
917
|
-
"headerFooterKind",
|
|
918
|
-
"variant"
|
|
919
|
-
]
|
|
920
|
-
},
|
|
921
|
-
{
|
|
922
|
-
"type": "object",
|
|
923
|
-
"properties": {
|
|
924
|
-
"kind": {
|
|
925
|
-
"const": "story",
|
|
926
|
-
"type": "string"
|
|
927
|
-
},
|
|
928
|
-
"storyType": {
|
|
929
|
-
"const": "headerFooterPart",
|
|
930
|
-
"type": "string"
|
|
931
|
-
},
|
|
932
|
-
"refId": {
|
|
933
|
-
"type": "string"
|
|
934
|
-
}
|
|
935
|
-
},
|
|
936
|
-
"required": [
|
|
937
|
-
"kind",
|
|
938
|
-
"storyType",
|
|
939
|
-
"refId"
|
|
940
|
-
]
|
|
941
|
-
},
|
|
942
|
-
{
|
|
943
|
-
"type": "object",
|
|
944
|
-
"properties": {
|
|
945
|
-
"kind": {
|
|
946
|
-
"const": "story",
|
|
947
|
-
"type": "string"
|
|
948
|
-
},
|
|
949
|
-
"storyType": {
|
|
950
|
-
"const": "footnote",
|
|
951
|
-
"type": "string"
|
|
952
|
-
},
|
|
953
|
-
"noteId": {
|
|
954
|
-
"type": "string"
|
|
955
|
-
}
|
|
956
|
-
},
|
|
957
|
-
"required": [
|
|
958
|
-
"kind",
|
|
959
|
-
"storyType",
|
|
960
|
-
"noteId"
|
|
961
|
-
]
|
|
962
|
-
},
|
|
963
|
-
{
|
|
964
|
-
"type": "object",
|
|
965
|
-
"properties": {
|
|
966
|
-
"kind": {
|
|
967
|
-
"const": "story",
|
|
968
|
-
"type": "string"
|
|
969
|
-
},
|
|
970
|
-
"storyType": {
|
|
971
|
-
"const": "endnote",
|
|
972
|
-
"type": "string"
|
|
973
|
-
},
|
|
974
|
-
"noteId": {
|
|
975
|
-
"type": "string"
|
|
976
|
-
}
|
|
977
|
-
},
|
|
978
|
-
"required": [
|
|
979
|
-
"kind",
|
|
980
|
-
"storyType",
|
|
981
|
-
"noteId"
|
|
982
|
-
]
|
|
983
|
-
}
|
|
984
|
-
]
|
|
985
|
-
},
|
|
986
574
|
"inline": {
|
|
987
575
|
"type": "object",
|
|
988
576
|
"properties": {
|
|
@@ -1242,27 +830,15 @@
|
|
|
1242
830
|
"type": "boolean"
|
|
1243
831
|
}
|
|
1244
832
|
},
|
|
1245
|
-
"description": "Inline formatting properties to apply. Set a property to apply it, use null to clear it. Example: {bold: true, italic: true} or {bold: null} to remove bold."
|
|
833
|
+
"description": "Inline formatting properties to apply. Set a property to apply it, use null to clear it. Example: {bold: true, italic: true} or {bold: null} to remove bold. Only for action 'inline'. Omit for other actions."
|
|
1246
834
|
},
|
|
1247
835
|
"ref": {
|
|
1248
836
|
"type": "string",
|
|
1249
|
-
"description": "Handle ref string from a superdoc_search result. Pass the handle.ref value directly (e.g. 'text:eyJ...'). Preferred over 'target' for inline formatting."
|
|
1250
|
-
},
|
|
1251
|
-
"blockId": {
|
|
1252
|
-
"type": "string",
|
|
1253
|
-
"description": "Block ID of the target paragraph."
|
|
1254
|
-
},
|
|
1255
|
-
"start": {
|
|
1256
|
-
"type": "number",
|
|
1257
|
-
"description": "Start offset within the block (character index)."
|
|
1258
|
-
},
|
|
1259
|
-
"end": {
|
|
1260
|
-
"type": "number",
|
|
1261
|
-
"description": "End offset within the block (character index)."
|
|
837
|
+
"description": "Handle ref string from a superdoc_search result. Pass the handle.ref value directly (e.g. 'text:eyJ...'). Preferred over 'target' for inline formatting. Only for action 'inline'. Omit for other actions."
|
|
1262
838
|
},
|
|
1263
839
|
"styleId": {
|
|
1264
840
|
"type": "string",
|
|
1265
|
-
"description": "Required for action 'set_style'."
|
|
841
|
+
"description": "Named paragraph style ID (e.g. 'Normal', 'Heading1', 'BodyText'). Use superdoc_search to find a nearby paragraph, then inspect its style to determine the correct styleId. Required for action 'set_style'."
|
|
1266
842
|
},
|
|
1267
843
|
"alignment": {
|
|
1268
844
|
"type": "string",
|
|
@@ -1276,35 +852,35 @@
|
|
|
1276
852
|
},
|
|
1277
853
|
"left": {
|
|
1278
854
|
"type": "number",
|
|
1279
|
-
"description": "Left indentation in twips (1440 = 1 inch)."
|
|
855
|
+
"description": "Left indentation in twips (1440 = 1 inch). Only for action 'set_indentation'. Omit for other actions."
|
|
1280
856
|
},
|
|
1281
857
|
"right": {
|
|
1282
858
|
"type": "number",
|
|
1283
|
-
"description": "Right indentation in twips (1440 = 1 inch)."
|
|
859
|
+
"description": "Right indentation in twips (1440 = 1 inch). Only for action 'set_indentation'. Omit for other actions."
|
|
1284
860
|
},
|
|
1285
861
|
"firstLine": {
|
|
1286
862
|
"type": "number",
|
|
1287
|
-
"description": "First line indent in twips. Cannot be combined with hanging."
|
|
863
|
+
"description": "First line indent in twips. Cannot be combined with hanging. Only for action 'set_indentation'. Omit for other actions."
|
|
1288
864
|
},
|
|
1289
865
|
"hanging": {
|
|
1290
866
|
"type": "number",
|
|
1291
|
-
"description": "Hanging indent in twips. Cannot be combined with firstLine."
|
|
867
|
+
"description": "Hanging indent in twips. Cannot be combined with firstLine. Only for action 'set_indentation'. Omit for other actions."
|
|
1292
868
|
},
|
|
1293
869
|
"before": {
|
|
1294
870
|
"type": "number",
|
|
1295
|
-
"description": "Space before paragraph in twips (20 twips = 1pt)."
|
|
871
|
+
"description": "Space before paragraph in twips (20 twips = 1pt). Only for action 'set_spacing'. Omit for other actions."
|
|
1296
872
|
},
|
|
1297
873
|
"after": {
|
|
1298
874
|
"type": "number",
|
|
1299
|
-
"description": "Space after paragraph in twips (20 twips = 1pt)."
|
|
875
|
+
"description": "Space after paragraph in twips (20 twips = 1pt). Only for action 'set_spacing'. Omit for other actions."
|
|
1300
876
|
},
|
|
1301
877
|
"line": {
|
|
1302
878
|
"type": "number",
|
|
1303
|
-
"description": "Line spacing value. Meaning depends on lineRule. Must be provided together with lineRule."
|
|
879
|
+
"description": "Line spacing value. Meaning depends on lineRule. Must be provided together with lineRule. Only for action 'set_spacing'. Omit for other actions."
|
|
1304
880
|
},
|
|
1305
881
|
"lineRule": {
|
|
1306
882
|
"type": "string",
|
|
1307
|
-
"description": "Line spacing rule. Required when 'line' is set.",
|
|
883
|
+
"description": "Line spacing rule. Required when 'line' is set. Only for action 'set_spacing'. Omit for other actions.",
|
|
1308
884
|
"enum": [
|
|
1309
885
|
"auto",
|
|
1310
886
|
"exact",
|
|
@@ -1323,194 +899,49 @@
|
|
|
1323
899
|
"type": "string",
|
|
1324
900
|
"enum": [
|
|
1325
901
|
"preserve",
|
|
1326
|
-
"matchDirection"
|
|
1327
|
-
]
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
"
|
|
1340
|
-
|
|
1341
|
-
"
|
|
1342
|
-
"
|
|
1343
|
-
|
|
1344
|
-
"
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
"
|
|
1348
|
-
|
|
1349
|
-
"
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
"
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
"
|
|
1360
|
-
|
|
1361
|
-
"
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
"
|
|
1368
|
-
|
|
1369
|
-
"in": {
|
|
1370
|
-
"oneOf": [
|
|
1371
|
-
{
|
|
1372
|
-
"type": "object",
|
|
1373
|
-
"properties": {
|
|
1374
|
-
"kind": {
|
|
1375
|
-
"const": "story",
|
|
1376
|
-
"type": "string"
|
|
1377
|
-
},
|
|
1378
|
-
"storyType": {
|
|
1379
|
-
"const": "body",
|
|
1380
|
-
"type": "string"
|
|
1381
|
-
}
|
|
1382
|
-
},
|
|
1383
|
-
"required": [
|
|
1384
|
-
"kind",
|
|
1385
|
-
"storyType"
|
|
1386
|
-
]
|
|
1387
|
-
},
|
|
1388
|
-
{
|
|
1389
|
-
"type": "object",
|
|
1390
|
-
"properties": {
|
|
1391
|
-
"kind": {
|
|
1392
|
-
"const": "story",
|
|
1393
|
-
"type": "string"
|
|
1394
|
-
},
|
|
1395
|
-
"storyType": {
|
|
1396
|
-
"const": "headerFooterSlot",
|
|
1397
|
-
"type": "string"
|
|
1398
|
-
},
|
|
1399
|
-
"section": {
|
|
1400
|
-
"type": "object",
|
|
1401
|
-
"properties": {
|
|
1402
|
-
"kind": {
|
|
1403
|
-
"const": "section",
|
|
1404
|
-
"type": "string"
|
|
1405
|
-
},
|
|
1406
|
-
"sectionId": {
|
|
1407
|
-
"type": "string"
|
|
1408
|
-
}
|
|
1409
|
-
},
|
|
1410
|
-
"required": [
|
|
1411
|
-
"kind",
|
|
1412
|
-
"sectionId"
|
|
1413
|
-
]
|
|
1414
|
-
},
|
|
1415
|
-
"headerFooterKind": {
|
|
1416
|
-
"enum": [
|
|
1417
|
-
"header",
|
|
1418
|
-
"footer"
|
|
1419
|
-
]
|
|
1420
|
-
},
|
|
1421
|
-
"variant": {
|
|
1422
|
-
"enum": [
|
|
1423
|
-
"default",
|
|
1424
|
-
"first",
|
|
1425
|
-
"even"
|
|
1426
|
-
]
|
|
1427
|
-
},
|
|
1428
|
-
"resolution": {
|
|
1429
|
-
"enum": [
|
|
1430
|
-
"effective",
|
|
1431
|
-
"explicit"
|
|
1432
|
-
]
|
|
1433
|
-
},
|
|
1434
|
-
"onWrite": {
|
|
1435
|
-
"enum": [
|
|
1436
|
-
"materializeIfInherited",
|
|
1437
|
-
"editResolvedPart",
|
|
1438
|
-
"error"
|
|
1439
|
-
]
|
|
1440
|
-
}
|
|
1441
|
-
},
|
|
1442
|
-
"required": [
|
|
1443
|
-
"kind",
|
|
1444
|
-
"storyType",
|
|
1445
|
-
"section",
|
|
1446
|
-
"headerFooterKind",
|
|
1447
|
-
"variant"
|
|
1448
|
-
]
|
|
1449
|
-
},
|
|
1450
|
-
{
|
|
1451
|
-
"type": "object",
|
|
1452
|
-
"properties": {
|
|
1453
|
-
"kind": {
|
|
1454
|
-
"const": "story",
|
|
1455
|
-
"type": "string"
|
|
1456
|
-
},
|
|
1457
|
-
"storyType": {
|
|
1458
|
-
"const": "headerFooterPart",
|
|
1459
|
-
"type": "string"
|
|
1460
|
-
},
|
|
1461
|
-
"refId": {
|
|
1462
|
-
"type": "string"
|
|
1463
|
-
}
|
|
1464
|
-
},
|
|
1465
|
-
"required": [
|
|
1466
|
-
"kind",
|
|
1467
|
-
"storyType",
|
|
1468
|
-
"refId"
|
|
1469
|
-
]
|
|
1470
|
-
},
|
|
1471
|
-
{
|
|
1472
|
-
"type": "object",
|
|
1473
|
-
"properties": {
|
|
1474
|
-
"kind": {
|
|
1475
|
-
"const": "story",
|
|
1476
|
-
"type": "string"
|
|
1477
|
-
},
|
|
1478
|
-
"storyType": {
|
|
1479
|
-
"const": "footnote",
|
|
1480
|
-
"type": "string"
|
|
1481
|
-
},
|
|
1482
|
-
"noteId": {
|
|
1483
|
-
"type": "string"
|
|
1484
|
-
}
|
|
1485
|
-
},
|
|
1486
|
-
"required": [
|
|
1487
|
-
"kind",
|
|
1488
|
-
"storyType",
|
|
1489
|
-
"noteId"
|
|
1490
|
-
]
|
|
1491
|
-
},
|
|
1492
|
-
{
|
|
1493
|
-
"type": "object",
|
|
1494
|
-
"properties": {
|
|
1495
|
-
"kind": {
|
|
1496
|
-
"const": "story",
|
|
1497
|
-
"type": "string"
|
|
1498
|
-
},
|
|
1499
|
-
"storyType": {
|
|
1500
|
-
"const": "endnote",
|
|
1501
|
-
"type": "string"
|
|
1502
|
-
},
|
|
1503
|
-
"noteId": {
|
|
1504
|
-
"type": "string"
|
|
1505
|
-
}
|
|
1506
|
-
},
|
|
1507
|
-
"required": [
|
|
1508
|
-
"kind",
|
|
1509
|
-
"storyType",
|
|
1510
|
-
"noteId"
|
|
1511
|
-
]
|
|
1512
|
-
}
|
|
1513
|
-
]
|
|
902
|
+
"matchDirection"
|
|
903
|
+
],
|
|
904
|
+
"description": "Only for action 'set_direction'. Omit for other actions."
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
"required": [
|
|
908
|
+
"action"
|
|
909
|
+
],
|
|
910
|
+
"additionalProperties": false
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
"type": "function",
|
|
916
|
+
"function": {
|
|
917
|
+
"name": "superdoc_create",
|
|
918
|
+
"description": "Create one paragraph or heading per call. After creating, search for it and apply formatting (fontFamily, fontSize) from neighboring blocks. For multiple paragraphs, use superdoc_mutations with text.insert steps instead of calling create repeatedly.",
|
|
919
|
+
"parameters": {
|
|
920
|
+
"type": "object",
|
|
921
|
+
"properties": {
|
|
922
|
+
"action": {
|
|
923
|
+
"type": "string",
|
|
924
|
+
"enum": [
|
|
925
|
+
"heading",
|
|
926
|
+
"paragraph"
|
|
927
|
+
],
|
|
928
|
+
"description": "The action to perform. One of: heading, paragraph."
|
|
929
|
+
},
|
|
930
|
+
"force": {
|
|
931
|
+
"type": "boolean",
|
|
932
|
+
"description": "Bypass confirmation checks."
|
|
933
|
+
},
|
|
934
|
+
"changeMode": {
|
|
935
|
+
"type": "string",
|
|
936
|
+
"enum": [
|
|
937
|
+
"direct",
|
|
938
|
+
"tracked"
|
|
939
|
+
],
|
|
940
|
+
"description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
|
|
941
|
+
},
|
|
942
|
+
"dryRun": {
|
|
943
|
+
"type": "boolean",
|
|
944
|
+
"description": "Preview the result without applying changes."
|
|
1514
945
|
},
|
|
1515
946
|
"at": {
|
|
1516
947
|
"oneOf": [
|
|
@@ -1629,7 +1060,7 @@
|
|
|
1629
1060
|
},
|
|
1630
1061
|
"text": {
|
|
1631
1062
|
"type": "string",
|
|
1632
|
-
"description": "Paragraph text content."
|
|
1063
|
+
"description": "Paragraph text content. Each call creates ONE paragraph. For multiple items (e.g. list items), call superdoc_create separately for each item — do NOT use newlines to put multiple items in one paragraph."
|
|
1633
1064
|
},
|
|
1634
1065
|
"input": {
|
|
1635
1066
|
"type": "object",
|
|
@@ -1716,7 +1147,7 @@
|
|
|
1716
1147
|
},
|
|
1717
1148
|
"text": {
|
|
1718
1149
|
"type": "string",
|
|
1719
|
-
"description": "Text content for the new list item."
|
|
1150
|
+
"description": "Text content for the new list item. Only for action 'insert'. Omit for other actions."
|
|
1720
1151
|
},
|
|
1721
1152
|
"input": {
|
|
1722
1153
|
"type": "object",
|
|
@@ -1728,7 +1159,7 @@
|
|
|
1728
1159
|
},
|
|
1729
1160
|
"mode": {
|
|
1730
1161
|
"type": "string",
|
|
1731
|
-
"description": "Required.
|
|
1162
|
+
"description": "Required. 'fromParagraphs' converts existing paragraphs into list items — each paragraph becomes one item, so create one paragraph per item first. 'empty' creates a new empty list at 'at'. Required for action 'create'.",
|
|
1732
1163
|
"enum": [
|
|
1733
1164
|
"empty",
|
|
1734
1165
|
"fromParagraphs"
|
|
@@ -1754,7 +1185,7 @@
|
|
|
1754
1185
|
"nodeType",
|
|
1755
1186
|
"nodeId"
|
|
1756
1187
|
],
|
|
1757
|
-
"description": "Required when mode is 'empty'. The paragraph to create the list at. Format: {kind:'block', nodeType:'paragraph', nodeId:'<id>'}."
|
|
1188
|
+
"description": "Required when mode is 'empty'. The paragraph to create the list at. Format: {kind:'block', nodeType:'paragraph', nodeId:'<id>'}. Only for action 'create'. Omit for other actions."
|
|
1758
1189
|
},
|
|
1759
1190
|
"kind": {
|
|
1760
1191
|
"type": "string",
|
|
@@ -1770,7 +1201,7 @@
|
|
|
1770
1201
|
},
|
|
1771
1202
|
"preset": {
|
|
1772
1203
|
"type": "string",
|
|
1773
|
-
"description": "Predefined list style preset. Overrides 'kind' with a specific numbering or bullet format.",
|
|
1204
|
+
"description": "Predefined list style preset. Overrides 'kind' with a specific numbering or bullet format. Only for action 'create'. Omit for other actions.",
|
|
1774
1205
|
"enum": [
|
|
1775
1206
|
"decimal",
|
|
1776
1207
|
"decimalParenthesis",
|
|
@@ -1853,7 +1284,8 @@
|
|
|
1853
1284
|
"required": [
|
|
1854
1285
|
"version",
|
|
1855
1286
|
"levels"
|
|
1856
|
-
]
|
|
1287
|
+
],
|
|
1288
|
+
"description": "Only for action 'create'. Omit for other actions."
|
|
1857
1289
|
},
|
|
1858
1290
|
"sequence": {
|
|
1859
1291
|
"oneOf": [
|
|
@@ -1884,11 +1316,12 @@
|
|
|
1884
1316
|
"mode"
|
|
1885
1317
|
]
|
|
1886
1318
|
}
|
|
1887
|
-
]
|
|
1319
|
+
],
|
|
1320
|
+
"description": "Only for action 'create'. Omit for other actions."
|
|
1888
1321
|
},
|
|
1889
1322
|
"continuity": {
|
|
1890
1323
|
"type": "string",
|
|
1891
|
-
"description": "Numbering continuity: 'preserve' keeps numbering; 'none' restarts.",
|
|
1324
|
+
"description": "Numbering continuity: 'preserve' keeps numbering; 'none' restarts. Only for action 'set_type'. Omit for other actions.",
|
|
1892
1325
|
"enum": [
|
|
1893
1326
|
"preserve",
|
|
1894
1327
|
"none"
|
|
@@ -1968,23 +1401,11 @@
|
|
|
1968
1401
|
"blockId",
|
|
1969
1402
|
"range"
|
|
1970
1403
|
],
|
|
1971
|
-
"description": "Text range to anchor the comment: {kind:'text', blockId:'...', range:{start:N, end:N}}."
|
|
1404
|
+
"description": "Text range to anchor the comment: {kind:'text', blockId:'...', range:{start:N, end:N}}. Only for actions 'create', 'update'. Omit for other actions."
|
|
1972
1405
|
},
|
|
1973
1406
|
"parentId": {
|
|
1974
1407
|
"type": "string",
|
|
1975
|
-
"description": "Parent comment ID for creating a threaded reply."
|
|
1976
|
-
},
|
|
1977
|
-
"blockId": {
|
|
1978
|
-
"type": "string",
|
|
1979
|
-
"description": "Block ID of the target paragraph."
|
|
1980
|
-
},
|
|
1981
|
-
"start": {
|
|
1982
|
-
"type": "number",
|
|
1983
|
-
"description": "Start offset within the block (character index)."
|
|
1984
|
-
},
|
|
1985
|
-
"end": {
|
|
1986
|
-
"type": "number",
|
|
1987
|
-
"description": "End offset within the block (character index)."
|
|
1408
|
+
"description": "Parent comment ID for creating a threaded reply. Only for action 'create'. Omit for other actions."
|
|
1988
1409
|
},
|
|
1989
1410
|
"id": {
|
|
1990
1411
|
"type": "string",
|
|
@@ -1992,26 +1413,26 @@
|
|
|
1992
1413
|
},
|
|
1993
1414
|
"status": {
|
|
1994
1415
|
"type": "string",
|
|
1995
|
-
"description": "Set comment status. Use 'resolved' to mark as resolved.",
|
|
1416
|
+
"description": "Set comment status. Use 'resolved' to mark as resolved. Only for action 'update'. Omit for other actions.",
|
|
1996
1417
|
"enum": [
|
|
1997
1418
|
"resolved"
|
|
1998
1419
|
]
|
|
1999
1420
|
},
|
|
2000
1421
|
"isInternal": {
|
|
2001
1422
|
"type": "boolean",
|
|
2002
|
-
"description": "When true, marks the comment as internal (hidden from external collaborators)."
|
|
1423
|
+
"description": "When true, marks the comment as internal (hidden from external collaborators). Only for action 'update'. Omit for other actions."
|
|
2003
1424
|
},
|
|
2004
1425
|
"includeResolved": {
|
|
2005
1426
|
"type": "boolean",
|
|
2006
|
-
"description": "When true, includes resolved comments in results. Default: false."
|
|
1427
|
+
"description": "When true, includes resolved comments in results. Default: false. Only for action 'list'. Omit for other actions."
|
|
2007
1428
|
},
|
|
2008
1429
|
"limit": {
|
|
2009
1430
|
"type": "number",
|
|
2010
|
-
"description": "Maximum number of comments to return."
|
|
1431
|
+
"description": "Maximum number of comments to return. Only for action 'list'. Omit for other actions."
|
|
2011
1432
|
},
|
|
2012
1433
|
"offset": {
|
|
2013
1434
|
"type": "number",
|
|
2014
|
-
"description": "Number of comments to skip for pagination."
|
|
1435
|
+
"description": "Number of comments to skip for pagination. Only for action 'list'. Omit for other actions."
|
|
2015
1436
|
}
|
|
2016
1437
|
},
|
|
2017
1438
|
"required": [
|
|
@@ -2039,15 +1460,15 @@
|
|
|
2039
1460
|
},
|
|
2040
1461
|
"limit": {
|
|
2041
1462
|
"type": "number",
|
|
2042
|
-
"description": "Maximum number of tracked changes to return."
|
|
1463
|
+
"description": "Maximum number of tracked changes to return. Only for action 'list'. Omit for other actions."
|
|
2043
1464
|
},
|
|
2044
1465
|
"offset": {
|
|
2045
1466
|
"type": "number",
|
|
2046
|
-
"description": "Number of tracked changes to skip for pagination."
|
|
1467
|
+
"description": "Number of tracked changes to skip for pagination. Only for action 'list'. Omit for other actions."
|
|
2047
1468
|
},
|
|
2048
1469
|
"type": {
|
|
2049
1470
|
"type": "string",
|
|
2050
|
-
"description": "Filter by change type: 'insert', 'delete', or 'format'.",
|
|
1471
|
+
"description": "Filter by change type: 'insert', 'delete', or 'format'. Only for action 'list'. Omit for other actions.",
|
|
2051
1472
|
"enum": [
|
|
2052
1473
|
"insert",
|
|
2053
1474
|
"delete",
|
|
@@ -2056,7 +1477,7 @@
|
|
|
2056
1477
|
},
|
|
2057
1478
|
"force": {
|
|
2058
1479
|
"type": "boolean",
|
|
2059
|
-
"description": "Bypass confirmation checks."
|
|
1480
|
+
"description": "Bypass confirmation checks. Only for action 'decide'. Omit for other actions."
|
|
2060
1481
|
},
|
|
2061
1482
|
"changeMode": {
|
|
2062
1483
|
"type": "string",
|
|
@@ -2064,7 +1485,7 @@
|
|
|
2064
1485
|
"direct",
|
|
2065
1486
|
"tracked"
|
|
2066
1487
|
],
|
|
2067
|
-
"description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
|
|
1488
|
+
"description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions. Only for action 'decide'. Omit for other actions."
|
|
2068
1489
|
},
|
|
2069
1490
|
"decision": {
|
|
2070
1491
|
"type": "string",
|
|
@@ -2119,152 +1540,6 @@
|
|
|
2119
1540
|
"parameters": {
|
|
2120
1541
|
"type": "object",
|
|
2121
1542
|
"properties": {
|
|
2122
|
-
"in": {
|
|
2123
|
-
"oneOf": [
|
|
2124
|
-
{
|
|
2125
|
-
"type": "object",
|
|
2126
|
-
"properties": {
|
|
2127
|
-
"kind": {
|
|
2128
|
-
"const": "story",
|
|
2129
|
-
"type": "string"
|
|
2130
|
-
},
|
|
2131
|
-
"storyType": {
|
|
2132
|
-
"const": "body",
|
|
2133
|
-
"type": "string"
|
|
2134
|
-
}
|
|
2135
|
-
},
|
|
2136
|
-
"required": [
|
|
2137
|
-
"kind",
|
|
2138
|
-
"storyType"
|
|
2139
|
-
]
|
|
2140
|
-
},
|
|
2141
|
-
{
|
|
2142
|
-
"type": "object",
|
|
2143
|
-
"properties": {
|
|
2144
|
-
"kind": {
|
|
2145
|
-
"const": "story",
|
|
2146
|
-
"type": "string"
|
|
2147
|
-
},
|
|
2148
|
-
"storyType": {
|
|
2149
|
-
"const": "headerFooterSlot",
|
|
2150
|
-
"type": "string"
|
|
2151
|
-
},
|
|
2152
|
-
"section": {
|
|
2153
|
-
"type": "object",
|
|
2154
|
-
"properties": {
|
|
2155
|
-
"kind": {
|
|
2156
|
-
"const": "section",
|
|
2157
|
-
"type": "string"
|
|
2158
|
-
},
|
|
2159
|
-
"sectionId": {
|
|
2160
|
-
"type": "string"
|
|
2161
|
-
}
|
|
2162
|
-
},
|
|
2163
|
-
"required": [
|
|
2164
|
-
"kind",
|
|
2165
|
-
"sectionId"
|
|
2166
|
-
]
|
|
2167
|
-
},
|
|
2168
|
-
"headerFooterKind": {
|
|
2169
|
-
"enum": [
|
|
2170
|
-
"header",
|
|
2171
|
-
"footer"
|
|
2172
|
-
]
|
|
2173
|
-
},
|
|
2174
|
-
"variant": {
|
|
2175
|
-
"enum": [
|
|
2176
|
-
"default",
|
|
2177
|
-
"first",
|
|
2178
|
-
"even"
|
|
2179
|
-
]
|
|
2180
|
-
},
|
|
2181
|
-
"resolution": {
|
|
2182
|
-
"enum": [
|
|
2183
|
-
"effective",
|
|
2184
|
-
"explicit"
|
|
2185
|
-
]
|
|
2186
|
-
},
|
|
2187
|
-
"onWrite": {
|
|
2188
|
-
"enum": [
|
|
2189
|
-
"materializeIfInherited",
|
|
2190
|
-
"editResolvedPart",
|
|
2191
|
-
"error"
|
|
2192
|
-
]
|
|
2193
|
-
}
|
|
2194
|
-
},
|
|
2195
|
-
"required": [
|
|
2196
|
-
"kind",
|
|
2197
|
-
"storyType",
|
|
2198
|
-
"section",
|
|
2199
|
-
"headerFooterKind",
|
|
2200
|
-
"variant"
|
|
2201
|
-
]
|
|
2202
|
-
},
|
|
2203
|
-
{
|
|
2204
|
-
"type": "object",
|
|
2205
|
-
"properties": {
|
|
2206
|
-
"kind": {
|
|
2207
|
-
"const": "story",
|
|
2208
|
-
"type": "string"
|
|
2209
|
-
},
|
|
2210
|
-
"storyType": {
|
|
2211
|
-
"const": "headerFooterPart",
|
|
2212
|
-
"type": "string"
|
|
2213
|
-
},
|
|
2214
|
-
"refId": {
|
|
2215
|
-
"type": "string"
|
|
2216
|
-
}
|
|
2217
|
-
},
|
|
2218
|
-
"required": [
|
|
2219
|
-
"kind",
|
|
2220
|
-
"storyType",
|
|
2221
|
-
"refId"
|
|
2222
|
-
]
|
|
2223
|
-
},
|
|
2224
|
-
{
|
|
2225
|
-
"type": "object",
|
|
2226
|
-
"properties": {
|
|
2227
|
-
"kind": {
|
|
2228
|
-
"const": "story",
|
|
2229
|
-
"type": "string"
|
|
2230
|
-
},
|
|
2231
|
-
"storyType": {
|
|
2232
|
-
"const": "footnote",
|
|
2233
|
-
"type": "string"
|
|
2234
|
-
},
|
|
2235
|
-
"noteId": {
|
|
2236
|
-
"type": "string"
|
|
2237
|
-
}
|
|
2238
|
-
},
|
|
2239
|
-
"required": [
|
|
2240
|
-
"kind",
|
|
2241
|
-
"storyType",
|
|
2242
|
-
"noteId"
|
|
2243
|
-
]
|
|
2244
|
-
},
|
|
2245
|
-
{
|
|
2246
|
-
"type": "object",
|
|
2247
|
-
"properties": {
|
|
2248
|
-
"kind": {
|
|
2249
|
-
"const": "story",
|
|
2250
|
-
"type": "string"
|
|
2251
|
-
},
|
|
2252
|
-
"storyType": {
|
|
2253
|
-
"const": "endnote",
|
|
2254
|
-
"type": "string"
|
|
2255
|
-
},
|
|
2256
|
-
"noteId": {
|
|
2257
|
-
"type": "string"
|
|
2258
|
-
}
|
|
2259
|
-
},
|
|
2260
|
-
"required": [
|
|
2261
|
-
"kind",
|
|
2262
|
-
"storyType",
|
|
2263
|
-
"noteId"
|
|
2264
|
-
]
|
|
2265
|
-
}
|
|
2266
|
-
]
|
|
2267
|
-
},
|
|
2268
1543
|
"select": {
|
|
2269
1544
|
"oneOf": [
|
|
2270
1545
|
{
|
|
@@ -2431,155 +1706,9 @@
|
|
|
2431
1706
|
],
|
|
2432
1707
|
"description": "The action to perform. One of: apply, preview."
|
|
2433
1708
|
},
|
|
2434
|
-
"in": {
|
|
2435
|
-
"oneOf": [
|
|
2436
|
-
{
|
|
2437
|
-
"type": "object",
|
|
2438
|
-
"properties": {
|
|
2439
|
-
"kind": {
|
|
2440
|
-
"const": "story",
|
|
2441
|
-
"type": "string"
|
|
2442
|
-
},
|
|
2443
|
-
"storyType": {
|
|
2444
|
-
"const": "body",
|
|
2445
|
-
"type": "string"
|
|
2446
|
-
}
|
|
2447
|
-
},
|
|
2448
|
-
"required": [
|
|
2449
|
-
"kind",
|
|
2450
|
-
"storyType"
|
|
2451
|
-
]
|
|
2452
|
-
},
|
|
2453
|
-
{
|
|
2454
|
-
"type": "object",
|
|
2455
|
-
"properties": {
|
|
2456
|
-
"kind": {
|
|
2457
|
-
"const": "story",
|
|
2458
|
-
"type": "string"
|
|
2459
|
-
},
|
|
2460
|
-
"storyType": {
|
|
2461
|
-
"const": "headerFooterSlot",
|
|
2462
|
-
"type": "string"
|
|
2463
|
-
},
|
|
2464
|
-
"section": {
|
|
2465
|
-
"type": "object",
|
|
2466
|
-
"properties": {
|
|
2467
|
-
"kind": {
|
|
2468
|
-
"const": "section",
|
|
2469
|
-
"type": "string"
|
|
2470
|
-
},
|
|
2471
|
-
"sectionId": {
|
|
2472
|
-
"type": "string"
|
|
2473
|
-
}
|
|
2474
|
-
},
|
|
2475
|
-
"required": [
|
|
2476
|
-
"kind",
|
|
2477
|
-
"sectionId"
|
|
2478
|
-
]
|
|
2479
|
-
},
|
|
2480
|
-
"headerFooterKind": {
|
|
2481
|
-
"enum": [
|
|
2482
|
-
"header",
|
|
2483
|
-
"footer"
|
|
2484
|
-
]
|
|
2485
|
-
},
|
|
2486
|
-
"variant": {
|
|
2487
|
-
"enum": [
|
|
2488
|
-
"default",
|
|
2489
|
-
"first",
|
|
2490
|
-
"even"
|
|
2491
|
-
]
|
|
2492
|
-
},
|
|
2493
|
-
"resolution": {
|
|
2494
|
-
"enum": [
|
|
2495
|
-
"effective",
|
|
2496
|
-
"explicit"
|
|
2497
|
-
]
|
|
2498
|
-
},
|
|
2499
|
-
"onWrite": {
|
|
2500
|
-
"enum": [
|
|
2501
|
-
"materializeIfInherited",
|
|
2502
|
-
"editResolvedPart",
|
|
2503
|
-
"error"
|
|
2504
|
-
]
|
|
2505
|
-
}
|
|
2506
|
-
},
|
|
2507
|
-
"required": [
|
|
2508
|
-
"kind",
|
|
2509
|
-
"storyType",
|
|
2510
|
-
"section",
|
|
2511
|
-
"headerFooterKind",
|
|
2512
|
-
"variant"
|
|
2513
|
-
]
|
|
2514
|
-
},
|
|
2515
|
-
{
|
|
2516
|
-
"type": "object",
|
|
2517
|
-
"properties": {
|
|
2518
|
-
"kind": {
|
|
2519
|
-
"const": "story",
|
|
2520
|
-
"type": "string"
|
|
2521
|
-
},
|
|
2522
|
-
"storyType": {
|
|
2523
|
-
"const": "headerFooterPart",
|
|
2524
|
-
"type": "string"
|
|
2525
|
-
},
|
|
2526
|
-
"refId": {
|
|
2527
|
-
"type": "string"
|
|
2528
|
-
}
|
|
2529
|
-
},
|
|
2530
|
-
"required": [
|
|
2531
|
-
"kind",
|
|
2532
|
-
"storyType",
|
|
2533
|
-
"refId"
|
|
2534
|
-
]
|
|
2535
|
-
},
|
|
2536
|
-
{
|
|
2537
|
-
"type": "object",
|
|
2538
|
-
"properties": {
|
|
2539
|
-
"kind": {
|
|
2540
|
-
"const": "story",
|
|
2541
|
-
"type": "string"
|
|
2542
|
-
},
|
|
2543
|
-
"storyType": {
|
|
2544
|
-
"const": "footnote",
|
|
2545
|
-
"type": "string"
|
|
2546
|
-
},
|
|
2547
|
-
"noteId": {
|
|
2548
|
-
"type": "string"
|
|
2549
|
-
}
|
|
2550
|
-
},
|
|
2551
|
-
"required": [
|
|
2552
|
-
"kind",
|
|
2553
|
-
"storyType",
|
|
2554
|
-
"noteId"
|
|
2555
|
-
]
|
|
2556
|
-
},
|
|
2557
|
-
{
|
|
2558
|
-
"type": "object",
|
|
2559
|
-
"properties": {
|
|
2560
|
-
"kind": {
|
|
2561
|
-
"const": "story",
|
|
2562
|
-
"type": "string"
|
|
2563
|
-
},
|
|
2564
|
-
"storyType": {
|
|
2565
|
-
"const": "endnote",
|
|
2566
|
-
"type": "string"
|
|
2567
|
-
},
|
|
2568
|
-
"noteId": {
|
|
2569
|
-
"type": "string"
|
|
2570
|
-
}
|
|
2571
|
-
},
|
|
2572
|
-
"required": [
|
|
2573
|
-
"kind",
|
|
2574
|
-
"storyType",
|
|
2575
|
-
"noteId"
|
|
2576
|
-
]
|
|
2577
|
-
}
|
|
2578
|
-
]
|
|
2579
|
-
},
|
|
2580
1709
|
"expectedRevision": {
|
|
2581
1710
|
"type": "string",
|
|
2582
|
-
"description": "Document revision for optimistic concurrency. Mutation fails if document was modified since this revision."
|
|
1711
|
+
"description": "Document revision for optimistic concurrency. Mutation fails if document was modified since this revision. Only for action 'preview'. Omit for other actions."
|
|
2583
1712
|
},
|
|
2584
1713
|
"atomic": {
|
|
2585
1714
|
"type": "boolean",
|
|
@@ -4502,7 +3631,7 @@
|
|
|
4502
3631
|
},
|
|
4503
3632
|
"force": {
|
|
4504
3633
|
"type": "boolean",
|
|
4505
|
-
"description": "Bypass confirmation checks."
|
|
3634
|
+
"description": "Bypass confirmation checks. Only for action 'apply'. Omit for other actions."
|
|
4506
3635
|
}
|
|
4507
3636
|
},
|
|
4508
3637
|
"required": [
|