@superdoc-dev/sdk 1.1.0-next.9 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,6 +15,7 @@ const CONTRACT = {
15
15
  "description": "Read the full document as an SDDocument structure.",
16
16
  "requiresDocumentContext": true,
17
17
  "docRequirement": "optional",
18
+ "responseEnvelopeKey": "result",
18
19
  "params": [
19
20
  {
20
21
  "name": "doc",
@@ -104,6 +105,7 @@ const CONTRACT = {
104
105
  "description": "Search the document for text or node matches using SDM/1 selectors. Returns discovery-grade results — for mutation targeting, use query.match instead.",
105
106
  "requiresDocumentContext": true,
106
107
  "docRequirement": "optional",
108
+ "responseEnvelopeKey": "result",
107
109
  "params": [
108
110
  {
109
111
  "name": "doc",
@@ -282,6 +284,146 @@ const CONTRACT = {
282
284
  "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.",
283
285
  "agentVisible": false
284
286
  },
287
+ {
288
+ "name": "select",
289
+ "kind": "jsonFlag",
290
+ "type": "json",
291
+ "flag": "select-json",
292
+ "schema": {
293
+ "oneOf": [
294
+ {
295
+ "type": "object",
296
+ "properties": {
297
+ "type": {
298
+ "const": "text"
299
+ },
300
+ "pattern": {
301
+ "type": "string"
302
+ },
303
+ "mode": {
304
+ "oneOf": [
305
+ {
306
+ "const": "contains"
307
+ },
308
+ {
309
+ "const": "regex"
310
+ }
311
+ ]
312
+ },
313
+ "caseSensitive": {
314
+ "type": "boolean"
315
+ }
316
+ },
317
+ "required": [
318
+ "type",
319
+ "pattern"
320
+ ]
321
+ },
322
+ {
323
+ "type": "object",
324
+ "properties": {
325
+ "type": {
326
+ "const": "node"
327
+ },
328
+ "nodeType": {
329
+ "type": "string"
330
+ },
331
+ "kind": {
332
+ "oneOf": [
333
+ {
334
+ "const": "block"
335
+ },
336
+ {
337
+ "const": "inline"
338
+ }
339
+ ]
340
+ }
341
+ },
342
+ "required": [
343
+ "type"
344
+ ]
345
+ },
346
+ {
347
+ "type": "object",
348
+ "properties": {
349
+ "type": {
350
+ "oneOf": [
351
+ {
352
+ "const": "paragraph"
353
+ },
354
+ {
355
+ "const": "heading"
356
+ },
357
+ {
358
+ "const": "listItem"
359
+ },
360
+ {
361
+ "const": "table"
362
+ },
363
+ {
364
+ "const": "tableRow"
365
+ },
366
+ {
367
+ "const": "tableCell"
368
+ },
369
+ {
370
+ "const": "tableOfContents"
371
+ },
372
+ {
373
+ "const": "image"
374
+ },
375
+ {
376
+ "const": "sdt"
377
+ },
378
+ {
379
+ "const": "run"
380
+ },
381
+ {
382
+ "const": "bookmark"
383
+ },
384
+ {
385
+ "const": "comment"
386
+ },
387
+ {
388
+ "const": "hyperlink"
389
+ },
390
+ {
391
+ "const": "footnoteRef"
392
+ },
393
+ {
394
+ "const": "endnoteRef"
395
+ },
396
+ {
397
+ "const": "crossRef"
398
+ },
399
+ {
400
+ "const": "indexEntry"
401
+ },
402
+ {
403
+ "const": "citation"
404
+ },
405
+ {
406
+ "const": "authorityEntry"
407
+ },
408
+ {
409
+ "const": "sequenceField"
410
+ },
411
+ {
412
+ "const": "tab"
413
+ },
414
+ {
415
+ "const": "lineBreak"
416
+ }
417
+ ]
418
+ }
419
+ },
420
+ "required": [
421
+ "type"
422
+ ]
423
+ }
424
+ ]
425
+ }
426
+ },
285
427
  {
286
428
  "name": "within",
287
429
  "kind": "jsonFlag",
@@ -369,39 +511,45 @@ const CONTRACT = {
369
511
  "name": "type",
370
512
  "kind": "flag",
371
513
  "type": "string",
372
- "description": "Selector type: 'text' for text search or 'node' for node type search."
514
+ "description": "Selector type: 'text' for text search or 'node' for node type search.",
515
+ "agentVisible": false
373
516
  },
374
517
  {
375
518
  "name": "nodeType",
376
519
  "kind": "flag",
377
520
  "type": "string",
378
521
  "flag": "node-type",
379
- "description": "Node type to match (paragraph, heading, table, listItem, etc.)."
522
+ "description": "Node type to match (paragraph, heading, table, listItem, etc.).",
523
+ "agentVisible": false
380
524
  },
381
525
  {
382
526
  "name": "kind",
383
527
  "kind": "flag",
384
528
  "type": "string",
385
- "description": "Filter: 'block' or 'inline'."
529
+ "description": "Filter: 'block' or 'inline'.",
530
+ "agentVisible": false
386
531
  },
387
532
  {
388
533
  "name": "pattern",
389
534
  "kind": "flag",
390
535
  "type": "string",
391
- "description": "Text or regex pattern to match."
536
+ "description": "Text or regex pattern to match.",
537
+ "agentVisible": false
392
538
  },
393
539
  {
394
540
  "name": "mode",
395
541
  "kind": "flag",
396
542
  "type": "string",
397
- "description": "Match mode: 'contains' (substring) or 'regex'."
543
+ "description": "Match mode: 'contains' (substring) or 'regex'.",
544
+ "agentVisible": false
398
545
  },
399
546
  {
400
547
  "name": "caseSensitive",
401
548
  "kind": "flag",
402
549
  "type": "boolean",
403
550
  "flag": "case-sensitive",
404
- "description": "Case-sensitive matching. Default: false."
551
+ "description": "Case-sensitive matching. Default: false.",
552
+ "agentVisible": false
405
553
  },
406
554
  {
407
555
  "name": "query",
@@ -574,6 +722,7 @@ const CONTRACT = {
574
722
  "description": "Retrieve a single node by target position.",
575
723
  "requiresDocumentContext": true,
576
724
  "docRequirement": "optional",
725
+ "responseEnvelopeKey": "node",
577
726
  "params": [
578
727
  {
579
728
  "name": "doc",
@@ -791,6 +940,7 @@ const CONTRACT = {
791
940
  "description": "Retrieve a single node by its unique ID.",
792
941
  "requiresDocumentContext": true,
793
942
  "docRequirement": "optional",
943
+ "responseEnvelopeKey": "node",
794
944
  "params": [
795
945
  {
796
946
  "name": "doc",
@@ -910,6 +1060,7 @@ const CONTRACT = {
910
1060
  "description": "Extract the plain-text content of the document.",
911
1061
  "requiresDocumentContext": true,
912
1062
  "docRequirement": "optional",
1063
+ "responseEnvelopeKey": "text",
913
1064
  "params": [
914
1065
  {
915
1066
  "name": "doc",
@@ -1120,6 +1271,7 @@ const CONTRACT = {
1120
1271
  "description": "Extract the document content as a Markdown string.",
1121
1272
  "requiresDocumentContext": true,
1122
1273
  "docRequirement": "optional",
1274
+ "responseEnvelopeKey": "markdown",
1123
1275
  "params": [
1124
1276
  {
1125
1277
  "name": "doc",
@@ -1330,6 +1482,7 @@ const CONTRACT = {
1330
1482
  "description": "Extract the document content as an HTML string.",
1331
1483
  "requiresDocumentContext": true,
1332
1484
  "docRequirement": "optional",
1485
+ "responseEnvelopeKey": "html",
1333
1486
  "params": [
1334
1487
  {
1335
1488
  "name": "doc",
@@ -1551,6 +1704,7 @@ const CONTRACT = {
1551
1704
  "description": "Convert a Markdown string into an SDM/1 structural fragment.",
1552
1705
  "requiresDocumentContext": true,
1553
1706
  "docRequirement": "optional",
1707
+ "responseEnvelopeKey": "result",
1554
1708
  "params": [
1555
1709
  {
1556
1710
  "name": "doc",
@@ -1650,6 +1804,7 @@ const CONTRACT = {
1650
1804
  "description": "Return document summary info including word, character, paragraph, heading, table, image, comment, tracked-change, SDT-field, list, and page counts, plus outline and capabilities.",
1651
1805
  "requiresDocumentContext": true,
1652
1806
  "docRequirement": "optional",
1807
+ "responseEnvelopeKey": null,
1653
1808
  "params": [
1654
1809
  {
1655
1810
  "name": "doc",
@@ -1861,6 +2016,7 @@ const CONTRACT = {
1861
2016
  "description": "Clear all document body content, leaving a single empty paragraph.",
1862
2017
  "requiresDocumentContext": true,
1863
2018
  "docRequirement": "optional",
2019
+ "responseEnvelopeKey": "receipt",
1864
2020
  "params": [
1865
2021
  {
1866
2022
  "name": "doc",
@@ -2004,6 +2160,7 @@ const CONTRACT = {
2004
2160
  "description": "Insert content into the document. Two input shapes: text-based (value + type) inserts inline content at a SelectionTarget or ref position within an existing block; structural SDFragment (content) inserts one or more blocks as siblings relative to a BlockNodeAddress target. When target/ref is omitted, content appends at the end of the document. Text mode supports text (default), markdown, and html content types via the `type` field. Structural mode uses `placement` (before/after/insideStart/insideEnd) to position relative to the target block.",
2005
2161
  "requiresDocumentContext": true,
2006
2162
  "docRequirement": "optional",
2163
+ "responseEnvelopeKey": null,
2007
2164
  "params": [
2008
2165
  {
2009
2166
  "name": "doc",
@@ -3038,6 +3195,7 @@ const CONTRACT = {
3038
3195
  "description": "Replace content at a contiguous document selection. Text path accepts a SelectionTarget or ref plus replacement text. Structural path accepts a BlockNodeAddress (replaces whole block), SelectionTarget (expands to full covered block boundaries), or ref plus SDFragment content.",
3039
3196
  "requiresDocumentContext": true,
3040
3197
  "docRequirement": "optional",
3198
+ "responseEnvelopeKey": null,
3041
3199
  "params": [
3042
3200
  {
3043
3201
  "name": "doc",
@@ -4218,6 +4376,7 @@ const CONTRACT = {
4218
4376
  "description": "Delete content at a contiguous document selection. Accepts a SelectionTarget or mutation-ready ref. Supports cross-block deletion and optional block-edge expansion via behavior mode.",
4219
4377
  "requiresDocumentContext": true,
4220
4378
  "docRequirement": "optional",
4379
+ "responseEnvelopeKey": null,
4221
4380
  "params": [
4222
4381
  {
4223
4382
  "name": "doc",
@@ -4813,6 +4972,7 @@ const CONTRACT = {
4813
4972
  "description": "List top-level blocks in document order with IDs, types, and text previews. Supports pagination via offset/limit and optional nodeType filtering.",
4814
4973
  "requiresDocumentContext": true,
4815
4974
  "docRequirement": "optional",
4975
+ "responseEnvelopeKey": "result",
4816
4976
  "params": [
4817
4977
  {
4818
4978
  "name": "doc",
@@ -5030,6 +5190,7 @@ const CONTRACT = {
5030
5190
  "description": "Delete an entire block node (paragraph, heading, list item, table, image, or sdt) deterministically.",
5031
5191
  "requiresDocumentContext": true,
5032
5192
  "docRequirement": "optional",
5193
+ "responseEnvelopeKey": "result",
5033
5194
  "params": [
5034
5195
  {
5035
5196
  "name": "doc",
@@ -5288,6 +5449,7 @@ const CONTRACT = {
5288
5449
  "description": "Delete a contiguous range of top-level blocks between two endpoints (inclusive). Both endpoints must be direct children of the document node. Supports dry-run preview.",
5289
5450
  "requiresDocumentContext": true,
5290
5451
  "docRequirement": "optional",
5452
+ "responseEnvelopeKey": "result",
5291
5453
  "params": [
5292
5454
  {
5293
5455
  "name": "doc",
@@ -5632,6 +5794,7 @@ const CONTRACT = {
5632
5794
  "description": "Apply inline run-property patch changes to the target range with explicit set/clear semantics.",
5633
5795
  "requiresDocumentContext": true,
5634
5796
  "docRequirement": "optional",
5797
+ "responseEnvelopeKey": null,
5635
5798
  "params": [
5636
5799
  {
5637
5800
  "name": "doc",
@@ -8602,6 +8765,7 @@ const CONTRACT = {
8602
8765
  "description": "Set or clear the `bold` inline run property on the target text range.",
8603
8766
  "requiresDocumentContext": true,
8604
8767
  "docRequirement": "optional",
8768
+ "responseEnvelopeKey": null,
8605
8769
  "params": [
8606
8770
  {
8607
8771
  "name": "doc",
@@ -9041,6 +9205,7 @@ const CONTRACT = {
9041
9205
  "description": "Set or clear the `italic` inline run property on the target text range.",
9042
9206
  "requiresDocumentContext": true,
9043
9207
  "docRequirement": "optional",
9208
+ "responseEnvelopeKey": null,
9044
9209
  "params": [
9045
9210
  {
9046
9211
  "name": "doc",
@@ -9480,6 +9645,7 @@ const CONTRACT = {
9480
9645
  "description": "Set or clear the `strike` inline run property on the target text range.",
9481
9646
  "requiresDocumentContext": true,
9482
9647
  "docRequirement": "optional",
9648
+ "responseEnvelopeKey": null,
9483
9649
  "params": [
9484
9650
  {
9485
9651
  "name": "doc",
@@ -9919,6 +10085,7 @@ const CONTRACT = {
9919
10085
  "description": "Set or clear the `underline` inline run property on the target text range.",
9920
10086
  "requiresDocumentContext": true,
9921
10087
  "docRequirement": "optional",
10088
+ "responseEnvelopeKey": null,
9922
10089
  "params": [
9923
10090
  {
9924
10091
  "name": "doc",
@@ -10473,6 +10640,7 @@ const CONTRACT = {
10473
10640
  "description": "Set or clear the `highlight` inline run property on the target text range.",
10474
10641
  "requiresDocumentContext": true,
10475
10642
  "docRequirement": "optional",
10643
+ "responseEnvelopeKey": null,
10476
10644
  "params": [
10477
10645
  {
10478
10646
  "name": "doc",
@@ -10916,6 +11084,7 @@ const CONTRACT = {
10916
11084
  "description": "Set or clear the `color` inline run property on the target text range.",
10917
11085
  "requiresDocumentContext": true,
10918
11086
  "docRequirement": "optional",
11087
+ "responseEnvelopeKey": null,
10919
11088
  "params": [
10920
11089
  {
10921
11090
  "name": "doc",
@@ -11359,6 +11528,7 @@ const CONTRACT = {
11359
11528
  "description": "Set or clear the `fontSize` inline run property on the target text range.",
11360
11529
  "requiresDocumentContext": true,
11361
11530
  "docRequirement": "optional",
11531
+ "responseEnvelopeKey": null,
11362
11532
  "params": [
11363
11533
  {
11364
11534
  "name": "doc",
@@ -11800,6 +11970,7 @@ const CONTRACT = {
11800
11970
  "description": "Set or clear the `fontFamily` inline run property on the target text range.",
11801
11971
  "requiresDocumentContext": true,
11802
11972
  "docRequirement": "optional",
11973
+ "responseEnvelopeKey": null,
11803
11974
  "params": [
11804
11975
  {
11805
11976
  "name": "doc",
@@ -12243,6 +12414,7 @@ const CONTRACT = {
12243
12414
  "description": "Set or clear the `letterSpacing` inline run property on the target text range.",
12244
12415
  "requiresDocumentContext": true,
12245
12416
  "docRequirement": "optional",
12417
+ "responseEnvelopeKey": null,
12246
12418
  "params": [
12247
12419
  {
12248
12420
  "name": "doc",
@@ -12684,6 +12856,7 @@ const CONTRACT = {
12684
12856
  "description": "Set or clear the `vertAlign` inline run property on the target text range.",
12685
12857
  "requiresDocumentContext": true,
12686
12858
  "docRequirement": "optional",
12859
+ "responseEnvelopeKey": null,
12687
12860
  "params": [
12688
12861
  {
12689
12862
  "name": "doc",
@@ -13143,6 +13316,7 @@ const CONTRACT = {
13143
13316
  "description": "Set or clear the `position` inline run property on the target text range.",
13144
13317
  "requiresDocumentContext": true,
13145
13318
  "docRequirement": "optional",
13319
+ "responseEnvelopeKey": null,
13146
13320
  "params": [
13147
13321
  {
13148
13322
  "name": "doc",
@@ -13584,6 +13758,7 @@ const CONTRACT = {
13584
13758
  "description": "Set or clear the `dstrike` inline run property on the target text range.",
13585
13759
  "requiresDocumentContext": true,
13586
13760
  "docRequirement": "optional",
13761
+ "responseEnvelopeKey": null,
13587
13762
  "params": [
13588
13763
  {
13589
13764
  "name": "doc",
@@ -14023,6 +14198,7 @@ const CONTRACT = {
14023
14198
  "description": "Set or clear the `smallCaps` inline run property on the target text range.",
14024
14199
  "requiresDocumentContext": true,
14025
14200
  "docRequirement": "optional",
14201
+ "responseEnvelopeKey": null,
14026
14202
  "params": [
14027
14203
  {
14028
14204
  "name": "doc",
@@ -14462,6 +14638,7 @@ const CONTRACT = {
14462
14638
  "description": "Set or clear the `caps` inline run property on the target text range.",
14463
14639
  "requiresDocumentContext": true,
14464
14640
  "docRequirement": "optional",
14641
+ "responseEnvelopeKey": null,
14465
14642
  "params": [
14466
14643
  {
14467
14644
  "name": "doc",
@@ -14901,6 +15078,7 @@ const CONTRACT = {
14901
15078
  "description": "Set or clear the `shading` inline run property on the target text range.",
14902
15079
  "requiresDocumentContext": true,
14903
15080
  "docRequirement": "optional",
15081
+ "responseEnvelopeKey": null,
14904
15082
  "params": [
14905
15083
  {
14906
15084
  "name": "doc",
@@ -15448,6 +15626,7 @@ const CONTRACT = {
15448
15626
  "description": "Set or clear the `border` inline run property on the target text range.",
15449
15627
  "requiresDocumentContext": true,
15450
15628
  "docRequirement": "optional",
15629
+ "responseEnvelopeKey": null,
15451
15630
  "params": [
15452
15631
  {
15453
15632
  "name": "doc",
@@ -16023,6 +16202,7 @@ const CONTRACT = {
16023
16202
  "description": "Set or clear the `outline` inline run property on the target text range.",
16024
16203
  "requiresDocumentContext": true,
16025
16204
  "docRequirement": "optional",
16205
+ "responseEnvelopeKey": null,
16026
16206
  "params": [
16027
16207
  {
16028
16208
  "name": "doc",
@@ -16462,6 +16642,7 @@ const CONTRACT = {
16462
16642
  "description": "Set or clear the `shadow` inline run property on the target text range.",
16463
16643
  "requiresDocumentContext": true,
16464
16644
  "docRequirement": "optional",
16645
+ "responseEnvelopeKey": null,
16465
16646
  "params": [
16466
16647
  {
16467
16648
  "name": "doc",
@@ -16901,6 +17082,7 @@ const CONTRACT = {
16901
17082
  "description": "Set or clear the `emboss` inline run property on the target text range.",
16902
17083
  "requiresDocumentContext": true,
16903
17084
  "docRequirement": "optional",
17085
+ "responseEnvelopeKey": null,
16904
17086
  "params": [
16905
17087
  {
16906
17088
  "name": "doc",
@@ -17340,6 +17522,7 @@ const CONTRACT = {
17340
17522
  "description": "Set or clear the `imprint` inline run property on the target text range.",
17341
17523
  "requiresDocumentContext": true,
17342
17524
  "docRequirement": "optional",
17525
+ "responseEnvelopeKey": null,
17343
17526
  "params": [
17344
17527
  {
17345
17528
  "name": "doc",
@@ -17779,6 +17962,7 @@ const CONTRACT = {
17779
17962
  "description": "Set or clear the `charScale` inline run property on the target text range.",
17780
17963
  "requiresDocumentContext": true,
17781
17964
  "docRequirement": "optional",
17965
+ "responseEnvelopeKey": null,
17782
17966
  "params": [
17783
17967
  {
17784
17968
  "name": "doc",
@@ -18220,6 +18404,7 @@ const CONTRACT = {
18220
18404
  "description": "Set or clear the `kerning` inline run property on the target text range.",
18221
18405
  "requiresDocumentContext": true,
18222
18406
  "docRequirement": "optional",
18407
+ "responseEnvelopeKey": null,
18223
18408
  "params": [
18224
18409
  {
18225
18410
  "name": "doc",
@@ -18661,6 +18846,7 @@ const CONTRACT = {
18661
18846
  "description": "Set or clear the `vanish` inline run property on the target text range.",
18662
18847
  "requiresDocumentContext": true,
18663
18848
  "docRequirement": "optional",
18849
+ "responseEnvelopeKey": null,
18664
18850
  "params": [
18665
18851
  {
18666
18852
  "name": "doc",
@@ -19100,6 +19286,7 @@ const CONTRACT = {
19100
19286
  "description": "Set or clear the `webHidden` inline run property on the target text range.",
19101
19287
  "requiresDocumentContext": true,
19102
19288
  "docRequirement": "optional",
19289
+ "responseEnvelopeKey": null,
19103
19290
  "params": [
19104
19291
  {
19105
19292
  "name": "doc",
@@ -19539,6 +19726,7 @@ const CONTRACT = {
19539
19726
  "description": "Set or clear the `specVanish` inline run property on the target text range.",
19540
19727
  "requiresDocumentContext": true,
19541
19728
  "docRequirement": "optional",
19729
+ "responseEnvelopeKey": null,
19542
19730
  "params": [
19543
19731
  {
19544
19732
  "name": "doc",
@@ -19978,6 +20166,7 @@ const CONTRACT = {
19978
20166
  "description": "Set or clear the `rtl` inline run property on the target text range. This does not change paragraph direction; use `format.paragraph.setDirection` for paragraph-level RTL.",
19979
20167
  "requiresDocumentContext": true,
19980
20168
  "docRequirement": "optional",
20169
+ "responseEnvelopeKey": null,
19981
20170
  "params": [
19982
20171
  {
19983
20172
  "name": "doc",
@@ -20417,6 +20606,7 @@ const CONTRACT = {
20417
20606
  "description": "Set or clear the `cs` inline run property on the target text range.",
20418
20607
  "requiresDocumentContext": true,
20419
20608
  "docRequirement": "optional",
20609
+ "responseEnvelopeKey": null,
20420
20610
  "params": [
20421
20611
  {
20422
20612
  "name": "doc",
@@ -20856,6 +21046,7 @@ const CONTRACT = {
20856
21046
  "description": "Set or clear the `bCs` inline run property on the target text range.",
20857
21047
  "requiresDocumentContext": true,
20858
21048
  "docRequirement": "optional",
21049
+ "responseEnvelopeKey": null,
20859
21050
  "params": [
20860
21051
  {
20861
21052
  "name": "doc",
@@ -21295,6 +21486,7 @@ const CONTRACT = {
21295
21486
  "description": "Set or clear the `iCs` inline run property on the target text range.",
21296
21487
  "requiresDocumentContext": true,
21297
21488
  "docRequirement": "optional",
21489
+ "responseEnvelopeKey": null,
21298
21490
  "params": [
21299
21491
  {
21300
21492
  "name": "doc",
@@ -21734,6 +21926,7 @@ const CONTRACT = {
21734
21926
  "description": "Set or clear the `eastAsianLayout` inline run property on the target text range.",
21735
21927
  "requiresDocumentContext": true,
21736
21928
  "docRequirement": "optional",
21929
+ "responseEnvelopeKey": null,
21737
21930
  "params": [
21738
21931
  {
21739
21932
  "name": "doc",
@@ -22339,6 +22532,7 @@ const CONTRACT = {
22339
22532
  "description": "Set or clear the `em` inline run property on the target text range.",
22340
22533
  "requiresDocumentContext": true,
22341
22534
  "docRequirement": "optional",
22535
+ "responseEnvelopeKey": null,
22342
22536
  "params": [
22343
22537
  {
22344
22538
  "name": "doc",
@@ -22782,6 +22976,7 @@ const CONTRACT = {
22782
22976
  "description": "Set or clear the `fitText` inline run property on the target text range.",
22783
22977
  "requiresDocumentContext": true,
22784
22978
  "docRequirement": "optional",
22979
+ "responseEnvelopeKey": null,
22785
22980
  "params": [
22786
22981
  {
22787
22982
  "name": "doc",
@@ -23295,6 +23490,7 @@ const CONTRACT = {
23295
23490
  "description": "Set or clear the `snapToGrid` inline run property on the target text range.",
23296
23491
  "requiresDocumentContext": true,
23297
23492
  "docRequirement": "optional",
23493
+ "responseEnvelopeKey": null,
23298
23494
  "params": [
23299
23495
  {
23300
23496
  "name": "doc",
@@ -23734,6 +23930,7 @@ const CONTRACT = {
23734
23930
  "description": "Set or clear the `lang` inline run property on the target text range.",
23735
23931
  "requiresDocumentContext": true,
23736
23932
  "docRequirement": "optional",
23933
+ "responseEnvelopeKey": null,
23737
23934
  "params": [
23738
23935
  {
23739
23936
  "name": "doc",
@@ -24281,6 +24478,7 @@ const CONTRACT = {
24281
24478
  "description": "Set or clear the `oMath` inline run property on the target text range.",
24282
24479
  "requiresDocumentContext": true,
24283
24480
  "docRequirement": "optional",
24481
+ "responseEnvelopeKey": null,
24284
24482
  "params": [
24285
24483
  {
24286
24484
  "name": "doc",
@@ -24720,6 +24918,7 @@ const CONTRACT = {
24720
24918
  "description": "Set or clear the `rStyle` inline run property on the target text range.",
24721
24919
  "requiresDocumentContext": true,
24722
24920
  "docRequirement": "optional",
24921
+ "responseEnvelopeKey": null,
24723
24922
  "params": [
24724
24923
  {
24725
24924
  "name": "doc",
@@ -25163,6 +25362,7 @@ const CONTRACT = {
25163
25362
  "description": "Set or clear the `rFonts` inline run property on the target text range.",
25164
25363
  "requiresDocumentContext": true,
25165
25364
  "docRequirement": "optional",
25365
+ "responseEnvelopeKey": null,
25166
25366
  "params": [
25167
25367
  {
25168
25368
  "name": "doc",
@@ -25902,6 +26102,7 @@ const CONTRACT = {
25902
26102
  "description": "Set or clear the `fontSizeCs` inline run property on the target text range.",
25903
26103
  "requiresDocumentContext": true,
25904
26104
  "docRequirement": "optional",
26105
+ "responseEnvelopeKey": null,
25905
26106
  "params": [
25906
26107
  {
25907
26108
  "name": "doc",
@@ -26343,6 +26544,7 @@ const CONTRACT = {
26343
26544
  "description": "Set or clear the `ligatures` inline run property on the target text range.",
26344
26545
  "requiresDocumentContext": true,
26345
26546
  "docRequirement": "optional",
26547
+ "responseEnvelopeKey": null,
26346
26548
  "params": [
26347
26549
  {
26348
26550
  "name": "doc",
@@ -26786,6 +26988,7 @@ const CONTRACT = {
26786
26988
  "description": "Set or clear the `numForm` inline run property on the target text range.",
26787
26989
  "requiresDocumentContext": true,
26788
26990
  "docRequirement": "optional",
26991
+ "responseEnvelopeKey": null,
26789
26992
  "params": [
26790
26993
  {
26791
26994
  "name": "doc",
@@ -27229,6 +27432,7 @@ const CONTRACT = {
27229
27432
  "description": "Set or clear the `numSpacing` inline run property on the target text range.",
27230
27433
  "requiresDocumentContext": true,
27231
27434
  "docRequirement": "optional",
27435
+ "responseEnvelopeKey": null,
27232
27436
  "params": [
27233
27437
  {
27234
27438
  "name": "doc",
@@ -27672,6 +27876,7 @@ const CONTRACT = {
27672
27876
  "description": "Set or clear the `stylisticSets` inline run property on the target text range.",
27673
27877
  "requiresDocumentContext": true,
27674
27878
  "docRequirement": "optional",
27879
+ "responseEnvelopeKey": null,
27675
27880
  "params": [
27676
27881
  {
27677
27882
  "name": "doc",
@@ -28159,6 +28364,7 @@ const CONTRACT = {
28159
28364
  "description": "Set or clear the `contextualAlternates` inline run property on the target text range.",
28160
28365
  "requiresDocumentContext": true,
28161
28366
  "docRequirement": "optional",
28367
+ "responseEnvelopeKey": null,
28162
28368
  "params": [
28163
28369
  {
28164
28370
  "name": "doc",
@@ -28598,6 +28804,7 @@ const CONTRACT = {
28598
28804
  "description": "Apply document-level default style changes to the stylesheet (word/styles.xml). Targets docDefaults run and paragraph channels with set-style patch semantics.",
28599
28805
  "requiresDocumentContext": true,
28600
28806
  "docRequirement": "optional",
28807
+ "responseEnvelopeKey": "receipt",
28601
28808
  "params": [
28602
28809
  {
28603
28810
  "name": "doc",
@@ -32879,6 +33086,7 @@ const CONTRACT = {
32879
33086
  "description": "Create a standalone paragraph at the target position. To add a list item, use lists.insert instead.",
32880
33087
  "requiresDocumentContext": true,
32881
33088
  "docRequirement": "optional",
33089
+ "responseEnvelopeKey": "result",
32882
33090
  "params": [
32883
33091
  {
32884
33092
  "name": "doc",
@@ -33476,6 +33684,7 @@ const CONTRACT = {
33476
33684
  "description": "Create a new heading at the target position.",
33477
33685
  "requiresDocumentContext": true,
33478
33686
  "docRequirement": "optional",
33687
+ "responseEnvelopeKey": "result",
33479
33688
  "params": [
33480
33689
  {
33481
33690
  "name": "doc",
@@ -34088,6 +34297,7 @@ const CONTRACT = {
34088
34297
  "description": "Create a section break at the target location with optional initial section properties.",
34089
34298
  "requiresDocumentContext": true,
34090
34299
  "docRequirement": "optional",
34300
+ "responseEnvelopeKey": null,
34091
34301
  "params": [
34092
34302
  {
34093
34303
  "name": "doc",
@@ -34597,6 +34807,7 @@ const CONTRACT = {
34597
34807
  "description": "List sections in deterministic order with section-target handles.",
34598
34808
  "requiresDocumentContext": true,
34599
34809
  "docRequirement": "optional",
34810
+ "responseEnvelopeKey": null,
34600
34811
  "params": [
34601
34812
  {
34602
34813
  "name": "doc",
@@ -35223,6 +35434,7 @@ const CONTRACT = {
35223
35434
  "description": "Retrieve full section information by section address.",
35224
35435
  "requiresDocumentContext": true,
35225
35436
  "docRequirement": "optional",
35437
+ "responseEnvelopeKey": null,
35226
35438
  "params": [
35227
35439
  {
35228
35440
  "name": "doc",
@@ -35809,6 +36021,7 @@ const CONTRACT = {
35809
36021
  "description": "Set the section break type.",
35810
36022
  "requiresDocumentContext": true,
35811
36023
  "docRequirement": "optional",
36024
+ "responseEnvelopeKey": null,
35812
36025
  "params": [
35813
36026
  {
35814
36027
  "name": "doc",
@@ -36051,6 +36264,7 @@ const CONTRACT = {
36051
36264
  "description": "Set page-edge margins for a section.",
36052
36265
  "requiresDocumentContext": true,
36053
36266
  "docRequirement": "optional",
36267
+ "responseEnvelopeKey": null,
36054
36268
  "params": [
36055
36269
  {
36056
36270
  "name": "doc",
@@ -36338,6 +36552,7 @@ const CONTRACT = {
36338
36552
  "description": "Set header/footer margin distances for a section.",
36339
36553
  "requiresDocumentContext": true,
36340
36554
  "docRequirement": "optional",
36555
+ "responseEnvelopeKey": null,
36341
36556
  "params": [
36342
36557
  {
36343
36558
  "name": "doc",
@@ -36580,6 +36795,7 @@ const CONTRACT = {
36580
36795
  "description": "Set page size/orientation properties for a section.",
36581
36796
  "requiresDocumentContext": true,
36582
36797
  "docRequirement": "optional",
36798
+ "responseEnvelopeKey": null,
36583
36799
  "params": [
36584
36800
  {
36585
36801
  "name": "doc",
@@ -36865,6 +37081,7 @@ const CONTRACT = {
36865
37081
  "description": "Set column configuration for a section.",
36866
37082
  "requiresDocumentContext": true,
36867
37083
  "docRequirement": "optional",
37084
+ "responseEnvelopeKey": null,
36868
37085
  "params": [
36869
37086
  {
36870
37087
  "name": "doc",
@@ -37122,6 +37339,7 @@ const CONTRACT = {
37122
37339
  "description": "Enable or configure line numbering for a section.",
37123
37340
  "requiresDocumentContext": true,
37124
37341
  "docRequirement": "optional",
37342
+ "responseEnvelopeKey": null,
37125
37343
  "params": [
37126
37344
  {
37127
37345
  "name": "doc",
@@ -37395,6 +37613,7 @@ const CONTRACT = {
37395
37613
  "description": "Set page numbering format/start for a section.",
37396
37614
  "requiresDocumentContext": true,
37397
37615
  "docRequirement": "optional",
37616
+ "responseEnvelopeKey": null,
37398
37617
  "params": [
37399
37618
  {
37400
37619
  "name": "doc",
@@ -37665,6 +37884,7 @@ const CONTRACT = {
37665
37884
  "description": "Enable or disable title-page behavior for a section.",
37666
37885
  "requiresDocumentContext": true,
37667
37886
  "docRequirement": "optional",
37887
+ "responseEnvelopeKey": null,
37668
37888
  "params": [
37669
37889
  {
37670
37890
  "name": "doc",
@@ -37885,6 +38105,7 @@ const CONTRACT = {
37885
38105
  "description": "Enable or disable odd/even header-footer mode in document settings.",
37886
38106
  "requiresDocumentContext": true,
37887
38107
  "docRequirement": "optional",
38108
+ "responseEnvelopeKey": null,
37888
38109
  "params": [
37889
38110
  {
37890
38111
  "name": "doc",
@@ -38069,6 +38290,7 @@ const CONTRACT = {
38069
38290
  "description": "Set vertical page alignment for a section.",
38070
38291
  "requiresDocumentContext": true,
38071
38292
  "docRequirement": "optional",
38293
+ "responseEnvelopeKey": null,
38072
38294
  "params": [
38073
38295
  {
38074
38296
  "name": "doc",
@@ -38310,6 +38532,7 @@ const CONTRACT = {
38310
38532
  "description": "Set section text flow direction (LTR/RTL).",
38311
38533
  "requiresDocumentContext": true,
38312
38534
  "docRequirement": "optional",
38535
+ "responseEnvelopeKey": null,
38313
38536
  "params": [
38314
38537
  {
38315
38538
  "name": "doc",
@@ -38543,6 +38766,7 @@ const CONTRACT = {
38543
38766
  "description": "Set or replace a section header/footer reference for a variant.",
38544
38767
  "requiresDocumentContext": true,
38545
38768
  "docRequirement": "optional",
38769
+ "responseEnvelopeKey": null,
38546
38770
  "params": [
38547
38771
  {
38548
38772
  "name": "doc",
@@ -38815,6 +39039,7 @@ const CONTRACT = {
38815
39039
  "description": "Clear a section header/footer reference for a specific variant.",
38816
39040
  "requiresDocumentContext": true,
38817
39041
  "docRequirement": "optional",
39042
+ "responseEnvelopeKey": null,
38818
39043
  "params": [
38819
39044
  {
38820
39045
  "name": "doc",
@@ -39075,6 +39300,7 @@ const CONTRACT = {
39075
39300
  "description": "Set or clear link-to-previous behavior for a header/footer variant.",
39076
39301
  "requiresDocumentContext": true,
39077
39302
  "docRequirement": "optional",
39303
+ "responseEnvelopeKey": null,
39078
39304
  "params": [
39079
39305
  {
39080
39306
  "name": "doc",
@@ -39345,6 +39571,7 @@ const CONTRACT = {
39345
39571
  "description": "Set page border configuration for a section.",
39346
39572
  "requiresDocumentContext": true,
39347
39573
  "docRequirement": "optional",
39574
+ "responseEnvelopeKey": null,
39348
39575
  "params": [
39349
39576
  {
39350
39577
  "name": "doc",
@@ -39882,6 +40109,7 @@ const CONTRACT = {
39882
40109
  "description": "Clear page border configuration for a section.",
39883
40110
  "requiresDocumentContext": true,
39884
40111
  "docRequirement": "optional",
40112
+ "responseEnvelopeKey": null,
39885
40113
  "params": [
39886
40114
  {
39887
40115
  "name": "doc",
@@ -40093,6 +40321,7 @@ const CONTRACT = {
40093
40321
  "description": "Apply a paragraph style (w:pStyle) to a paragraph-like block, clearing direct run formatting while preserving character-style references.",
40094
40322
  "requiresDocumentContext": true,
40095
40323
  "docRequirement": "optional",
40324
+ "responseEnvelopeKey": "result",
40096
40325
  "params": [
40097
40326
  {
40098
40327
  "name": "doc",
@@ -40482,6 +40711,7 @@ const CONTRACT = {
40482
40711
  "description": "Remove the paragraph style reference from a paragraph-like block.",
40483
40712
  "requiresDocumentContext": true,
40484
40713
  "docRequirement": "optional",
40714
+ "responseEnvelopeKey": "result",
40485
40715
  "params": [
40486
40716
  {
40487
40717
  "name": "doc",
@@ -40855,6 +41085,7 @@ const CONTRACT = {
40855
41085
  "description": "Strip all direct paragraph formatting while preserving style reference, numbering, and section metadata.",
40856
41086
  "requiresDocumentContext": true,
40857
41087
  "docRequirement": "optional",
41088
+ "responseEnvelopeKey": "result",
40858
41089
  "params": [
40859
41090
  {
40860
41091
  "name": "doc",
@@ -41249,6 +41480,7 @@ const CONTRACT = {
41249
41480
  "description": "Set paragraph alignment (justification) on a paragraph-like block.",
41250
41481
  "requiresDocumentContext": true,
41251
41482
  "docRequirement": "optional",
41483
+ "responseEnvelopeKey": "result",
41252
41484
  "params": [
41253
41485
  {
41254
41486
  "name": "doc",
@@ -41675,6 +41907,7 @@ const CONTRACT = {
41675
41907
  "description": "Remove direct paragraph alignment, reverting to style-defined or default alignment.",
41676
41908
  "requiresDocumentContext": true,
41677
41909
  "docRequirement": "optional",
41910
+ "responseEnvelopeKey": "result",
41678
41911
  "params": [
41679
41912
  {
41680
41913
  "name": "doc",
@@ -42069,6 +42302,7 @@ const CONTRACT = {
42069
42302
  "description": "Set paragraph indentation properties (left, right, firstLine, hanging) in twips.",
42070
42303
  "requiresDocumentContext": true,
42071
42304
  "docRequirement": "optional",
42305
+ "responseEnvelopeKey": "result",
42072
42306
  "params": [
42073
42307
  {
42074
42308
  "name": "doc",
@@ -42538,6 +42772,7 @@ const CONTRACT = {
42538
42772
  "description": "Remove all direct paragraph indentation.",
42539
42773
  "requiresDocumentContext": true,
42540
42774
  "docRequirement": "optional",
42775
+ "responseEnvelopeKey": "result",
42541
42776
  "params": [
42542
42777
  {
42543
42778
  "name": "doc",
@@ -42932,6 +43167,7 @@ const CONTRACT = {
42932
43167
  "description": "Set paragraph spacing properties (before, after, line, lineRule) in twips.",
42933
43168
  "requiresDocumentContext": true,
42934
43169
  "docRequirement": "optional",
43170
+ "responseEnvelopeKey": "result",
42935
43171
  "params": [
42936
43172
  {
42937
43173
  "name": "doc",
@@ -43422,6 +43658,7 @@ const CONTRACT = {
43422
43658
  "description": "Remove all direct paragraph spacing.",
43423
43659
  "requiresDocumentContext": true,
43424
43660
  "docRequirement": "optional",
43661
+ "responseEnvelopeKey": "result",
43425
43662
  "params": [
43426
43663
  {
43427
43664
  "name": "doc",
@@ -43816,6 +44053,7 @@ const CONTRACT = {
43816
44053
  "description": "Set keep-with-next, keep-lines-together, and widow/orphan control flags.",
43817
44054
  "requiresDocumentContext": true,
43818
44055
  "docRequirement": "optional",
44056
+ "responseEnvelopeKey": "result",
43819
44057
  "params": [
43820
44058
  {
43821
44059
  "name": "doc",
@@ -44257,6 +44495,7 @@ const CONTRACT = {
44257
44495
  "description": "Set the paragraph outline level (0–9) or null to clear.",
44258
44496
  "requiresDocumentContext": true,
44259
44497
  "docRequirement": "optional",
44498
+ "responseEnvelopeKey": "result",
44260
44499
  "params": [
44261
44500
  {
44262
44501
  "name": "doc",
@@ -44680,6 +44919,7 @@ const CONTRACT = {
44680
44919
  "description": "Set contextual spacing, page-break-before, and suppress-auto-hyphens flags.",
44681
44920
  "requiresDocumentContext": true,
44682
44921
  "docRequirement": "optional",
44922
+ "responseEnvelopeKey": "result",
44683
44923
  "params": [
44684
44924
  {
44685
44925
  "name": "doc",
@@ -45121,6 +45361,7 @@ const CONTRACT = {
45121
45361
  "description": "Add or replace a tab stop at a given position.",
45122
45362
  "requiresDocumentContext": true,
45123
45363
  "docRequirement": "optional",
45364
+ "responseEnvelopeKey": "result",
45124
45365
  "params": [
45125
45366
  {
45126
45367
  "name": "doc",
@@ -45596,6 +45837,7 @@ const CONTRACT = {
45596
45837
  "description": "Remove a tab stop at a given position.",
45597
45838
  "requiresDocumentContext": true,
45598
45839
  "docRequirement": "optional",
45840
+ "responseEnvelopeKey": "result",
45599
45841
  "params": [
45600
45842
  {
45601
45843
  "name": "doc",
@@ -46000,6 +46242,7 @@ const CONTRACT = {
46000
46242
  "description": "Remove all tab stops from a paragraph.",
46001
46243
  "requiresDocumentContext": true,
46002
46244
  "docRequirement": "optional",
46245
+ "responseEnvelopeKey": "result",
46003
46246
  "params": [
46004
46247
  {
46005
46248
  "name": "doc",
@@ -46394,6 +46637,7 @@ const CONTRACT = {
46394
46637
  "description": "Set border properties for a specific side of a paragraph.",
46395
46638
  "requiresDocumentContext": true,
46396
46639
  "docRequirement": "optional",
46640
+ "responseEnvelopeKey": "result",
46397
46641
  "params": [
46398
46642
  {
46399
46643
  "name": "doc",
@@ -46863,6 +47107,7 @@ const CONTRACT = {
46863
47107
  "description": "Remove border for a specific side or all sides of a paragraph.",
46864
47108
  "requiresDocumentContext": true,
46865
47109
  "docRequirement": "optional",
47110
+ "responseEnvelopeKey": "result",
46866
47111
  "params": [
46867
47112
  {
46868
47113
  "name": "doc",
@@ -47299,6 +47544,7 @@ const CONTRACT = {
47299
47544
  "description": "Set paragraph shading (background fill, pattern color, pattern type).",
47300
47545
  "requiresDocumentContext": true,
47301
47546
  "docRequirement": "optional",
47547
+ "responseEnvelopeKey": "result",
47302
47548
  "params": [
47303
47549
  {
47304
47550
  "name": "doc",
@@ -47740,6 +47986,7 @@ const CONTRACT = {
47740
47986
  "description": "Remove all paragraph shading.",
47741
47987
  "requiresDocumentContext": true,
47742
47988
  "docRequirement": "optional",
47989
+ "responseEnvelopeKey": "result",
47743
47990
  "params": [
47744
47991
  {
47745
47992
  "name": "doc",
@@ -48134,6 +48381,7 @@ const CONTRACT = {
48134
48381
  "description": "Set paragraph base direction (LTR or RTL via w:bidi). Optionally align text to match.",
48135
48382
  "requiresDocumentContext": true,
48136
48383
  "docRequirement": "optional",
48384
+ "responseEnvelopeKey": null,
48137
48385
  "params": [
48138
48386
  {
48139
48387
  "name": "doc",
@@ -48576,6 +48824,7 @@ const CONTRACT = {
48576
48824
  "description": "Remove explicit paragraph direction, reverting to inherited or default (LTR).",
48577
48825
  "requiresDocumentContext": true,
48578
48826
  "docRequirement": "optional",
48827
+ "responseEnvelopeKey": null,
48579
48828
  "params": [
48580
48829
  {
48581
48830
  "name": "doc",
@@ -48969,6 +49218,7 @@ const CONTRACT = {
48969
49218
  "description": "List all list nodes in the document, optionally filtered by scope.",
48970
49219
  "requiresDocumentContext": true,
48971
49220
  "docRequirement": "optional",
49221
+ "responseEnvelopeKey": "result",
48972
49222
  "params": [
48973
49223
  {
48974
49224
  "name": "doc",
@@ -49223,6 +49473,7 @@ const CONTRACT = {
49223
49473
  "description": "Retrieve a specific list node by target.",
49224
49474
  "requiresDocumentContext": true,
49225
49475
  "docRequirement": "optional",
49476
+ "responseEnvelopeKey": "item",
49226
49477
  "params": [
49227
49478
  {
49228
49479
  "name": "doc",
@@ -49334,6 +49585,7 @@ const CONTRACT = {
49334
49585
  "description": "Insert a new list item before or after an existing list item. The new item inherits the target list context.",
49335
49586
  "requiresDocumentContext": true,
49336
49587
  "docRequirement": "optional",
49588
+ "responseEnvelopeKey": "result",
49337
49589
  "params": [
49338
49590
  {
49339
49591
  "name": "doc",
@@ -49616,6 +49868,7 @@ const CONTRACT = {
49616
49868
  "description": "Create a new list from one or more paragraphs. Supports optional preset or style for new sequences. When sequence.mode is \"continuePrevious\", preset and style are not allowed — the new items inherit formatting from the previous sequence.",
49617
49869
  "requiresDocumentContext": true,
49618
49870
  "docRequirement": "optional",
49871
+ "responseEnvelopeKey": "result",
49619
49872
  "params": [
49620
49873
  {
49621
49874
  "name": "doc",
@@ -50342,6 +50595,7 @@ const CONTRACT = {
50342
50595
  "description": "Convert non-list paragraphs to list items under an existing list sequence.",
50343
50596
  "requiresDocumentContext": true,
50344
50597
  "docRequirement": "optional",
50598
+ "responseEnvelopeKey": "result",
50345
50599
  "params": [
50346
50600
  {
50347
50601
  "name": "doc",
@@ -50650,6 +50904,7 @@ const CONTRACT = {
50650
50904
  "description": "Remove numbering properties from list items, converting them to plain paragraphs.",
50651
50905
  "requiresDocumentContext": true,
50652
50906
  "docRequirement": "optional",
50907
+ "responseEnvelopeKey": "result",
50653
50908
  "params": [
50654
50909
  {
50655
50910
  "name": "doc",
@@ -50875,6 +51130,7 @@ const CONTRACT = {
50875
51130
  "description": "Increase the indentation level of a list item.",
50876
51131
  "requiresDocumentContext": true,
50877
51132
  "docRequirement": "optional",
51133
+ "responseEnvelopeKey": "result",
50878
51134
  "params": [
50879
51135
  {
50880
51136
  "name": "doc",
@@ -51104,6 +51360,7 @@ const CONTRACT = {
51104
51360
  "description": "Decrease the indentation level of a list item.",
51105
51361
  "requiresDocumentContext": true,
51106
51362
  "docRequirement": "optional",
51363
+ "responseEnvelopeKey": "result",
51107
51364
  "params": [
51108
51365
  {
51109
51366
  "name": "doc",
@@ -51333,6 +51590,7 @@ const CONTRACT = {
51333
51590
  "description": "Merge two adjacent list sequences into one.",
51334
51591
  "requiresDocumentContext": true,
51335
51592
  "docRequirement": "optional",
51593
+ "responseEnvelopeKey": "result",
51336
51594
  "params": [
51337
51595
  {
51338
51596
  "name": "doc",
@@ -51577,6 +51835,7 @@ const CONTRACT = {
51577
51835
  "description": "Check whether two adjacent list sequences can be joined.",
51578
51836
  "requiresDocumentContext": true,
51579
51837
  "docRequirement": "optional",
51838
+ "responseEnvelopeKey": "result",
51580
51839
  "params": [
51581
51840
  {
51582
51841
  "name": "doc",
@@ -51698,6 +51957,7 @@ const CONTRACT = {
51698
51957
  "description": "Split a list sequence at the target item, creating a new sequence from that point forward.",
51699
51958
  "requiresDocumentContext": true,
51700
51959
  "docRequirement": "optional",
51960
+ "responseEnvelopeKey": "result",
51701
51961
  "params": [
51702
51962
  {
51703
51963
  "name": "doc",
@@ -51940,6 +52200,7 @@ const CONTRACT = {
51940
52200
  "description": "Set the absolute nesting level (0..8) of a list item.",
51941
52201
  "requiresDocumentContext": true,
51942
52202
  "docRequirement": "optional",
52203
+ "responseEnvelopeKey": "result",
51943
52204
  "params": [
51944
52205
  {
51945
52206
  "name": "doc",
@@ -52180,6 +52441,7 @@ const CONTRACT = {
52180
52441
  "description": "Set an explicit numbering value at the target item. Mid-sequence targets are atomically separated first.",
52181
52442
  "requiresDocumentContext": true,
52182
52443
  "docRequirement": "optional",
52444
+ "responseEnvelopeKey": "result",
52183
52445
  "params": [
52184
52446
  {
52185
52447
  "name": "doc",
@@ -52421,6 +52683,7 @@ const CONTRACT = {
52421
52683
  "description": "Continue numbering from the nearest compatible previous list sequence.",
52422
52684
  "requiresDocumentContext": true,
52423
52685
  "docRequirement": "optional",
52686
+ "responseEnvelopeKey": "result",
52424
52687
  "params": [
52425
52688
  {
52426
52689
  "name": "doc",
@@ -52648,6 +52911,7 @@ const CONTRACT = {
52648
52911
  "description": "Check whether the target sequence can continue numbering from a previous compatible sequence.",
52649
52912
  "requiresDocumentContext": true,
52650
52913
  "docRequirement": "optional",
52914
+ "responseEnvelopeKey": "result",
52651
52915
  "params": [
52652
52916
  {
52653
52917
  "name": "doc",
@@ -52754,6 +53018,7 @@ const CONTRACT = {
52754
53018
  "description": "Set the restart behavior for a specific list level.",
52755
53019
  "requiresDocumentContext": true,
52756
53020
  "docRequirement": "optional",
53021
+ "responseEnvelopeKey": "result",
52757
53022
  "params": [
52758
53023
  {
52759
53024
  "name": "doc",
@@ -53020,6 +53285,7 @@ const CONTRACT = {
53020
53285
  "description": "Convert list items to plain paragraphs, optionally prepending the rendered marker text.",
53021
53286
  "requiresDocumentContext": true,
53022
53287
  "docRequirement": "optional",
53288
+ "responseEnvelopeKey": "result",
53023
53289
  "params": [
53024
53290
  {
53025
53291
  "name": "doc",
@@ -53252,6 +53518,7 @@ const CONTRACT = {
53252
53518
  "description": "Advanced alias for lists.applyStyle. Apply a captured ListTemplate to the target list (abstract-scoped, no clone-on-write).",
53253
53519
  "requiresDocumentContext": true,
53254
53520
  "docRequirement": "optional",
53521
+ "responseEnvelopeKey": "result",
53255
53522
  "params": [
53256
53523
  {
53257
53524
  "name": "doc",
@@ -53656,6 +53923,7 @@ const CONTRACT = {
53656
53923
  "description": "Apply a built-in list formatting preset to the target list.",
53657
53924
  "requiresDocumentContext": true,
53658
53925
  "docRequirement": "optional",
53926
+ "responseEnvelopeKey": "result",
53659
53927
  "params": [
53660
53928
  {
53661
53929
  "name": "doc",
@@ -53952,6 +54220,7 @@ const CONTRACT = {
53952
54220
  "description": "Convert a list to ordered or bullet and merge adjacent compatible sequences to preserve continuous numbering.",
53953
54221
  "requiresDocumentContext": true,
53954
54222
  "docRequirement": "optional",
54223
+ "responseEnvelopeKey": null,
53955
54224
  "params": [
53956
54225
  {
53957
54226
  "name": "doc",
@@ -54215,6 +54484,7 @@ const CONTRACT = {
54215
54484
  "description": "Advanced alias for lists.getStyle. Capture list formatting from the abstract definition only (does not merge lvlOverride formatting).",
54216
54485
  "requiresDocumentContext": true,
54217
54486
  "docRequirement": "optional",
54487
+ "responseEnvelopeKey": "result",
54218
54488
  "params": [
54219
54489
  {
54220
54490
  "name": "doc",
@@ -54558,6 +54828,7 @@ const CONTRACT = {
54558
54828
  "description": "Advanced alias for lists.setLevelNumberStyle/setLevelText/setLevelStart. Set format, pattern, and start in one call (abstract-scoped, no clone-on-write).",
54559
54829
  "requiresDocumentContext": true,
54560
54830
  "docRequirement": "optional",
54831
+ "responseEnvelopeKey": "result",
54561
54832
  "params": [
54562
54833
  {
54563
54834
  "name": "doc",
@@ -54819,6 +55090,7 @@ const CONTRACT = {
54819
55090
  "description": "Set the bullet marker text for a specific list level.",
54820
55091
  "requiresDocumentContext": true,
54821
55092
  "docRequirement": "optional",
55093
+ "responseEnvelopeKey": "result",
54822
55094
  "params": [
54823
55095
  {
54824
55096
  "name": "doc",
@@ -55062,6 +55334,7 @@ const CONTRACT = {
55062
55334
  "description": "Set a picture bullet for a specific list level by its OOXML lvlPicBulletId.",
55063
55335
  "requiresDocumentContext": true,
55064
55336
  "docRequirement": "optional",
55337
+ "responseEnvelopeKey": "result",
55065
55338
  "params": [
55066
55339
  {
55067
55340
  "name": "doc",
@@ -55309,6 +55582,7 @@ const CONTRACT = {
55309
55582
  "description": "Set the marker alignment (left, center, right) for a specific list level.",
55310
55583
  "requiresDocumentContext": true,
55311
55584
  "docRequirement": "optional",
55585
+ "responseEnvelopeKey": "result",
55312
55586
  "params": [
55313
55587
  {
55314
55588
  "name": "doc",
@@ -55568,6 +55842,7 @@ const CONTRACT = {
55568
55842
  "description": "Set the paragraph indentation values (left, hanging, firstLine) for a specific list level.",
55569
55843
  "requiresDocumentContext": true,
55570
55844
  "docRequirement": "optional",
55845
+ "responseEnvelopeKey": "result",
55571
55846
  "params": [
55572
55847
  {
55573
55848
  "name": "doc",
@@ -55851,6 +56126,7 @@ const CONTRACT = {
55851
56126
  "description": "Set the trailing character (tab, space, nothing) after the marker for a specific list level.",
55852
56127
  "requiresDocumentContext": true,
55853
56128
  "docRequirement": "optional",
56129
+ "responseEnvelopeKey": "result",
55854
56130
  "params": [
55855
56131
  {
55856
56132
  "name": "doc",
@@ -56111,6 +56387,7 @@ const CONTRACT = {
56111
56387
  "description": "Set the font family used for the marker character at a specific list level.",
56112
56388
  "requiresDocumentContext": true,
56113
56389
  "docRequirement": "optional",
56390
+ "responseEnvelopeKey": "result",
56114
56391
  "params": [
56115
56392
  {
56116
56393
  "name": "doc",
@@ -56354,6 +56631,7 @@ const CONTRACT = {
56354
56631
  "description": "Remove instance-level overrides for a specific list level, restoring abstract definition values.",
56355
56632
  "requiresDocumentContext": true,
56356
56633
  "docRequirement": "optional",
56634
+ "responseEnvelopeKey": "result",
56357
56635
  "params": [
56358
56636
  {
56359
56637
  "name": "doc",
@@ -56585,6 +56863,7 @@ const CONTRACT = {
56585
56863
  "description": "Read the effective reusable style of a list, including instance-level overrides. Returns a ListStyle that can be applied to other lists via lists.applyStyle.",
56586
56864
  "requiresDocumentContext": true,
56587
56865
  "docRequirement": "optional",
56866
+ "responseEnvelopeKey": null,
56588
56867
  "params": [
56589
56868
  {
56590
56869
  "name": "doc",
@@ -56934,6 +57213,7 @@ const CONTRACT = {
56934
57213
  "description": "Apply a reusable list style to the target list. Sequence-local: if the abstract definition is shared with other lists, it is cloned first to avoid affecting them.",
56935
57214
  "requiresDocumentContext": true,
56936
57215
  "docRequirement": "optional",
57216
+ "responseEnvelopeKey": null,
56937
57217
  "params": [
56938
57218
  {
56939
57219
  "name": "doc",
@@ -57342,6 +57622,7 @@ const CONTRACT = {
57342
57622
  "description": "Restart numbering at the target list item with a specific value. If the item is mid-sequence, it is separated first.",
57343
57623
  "requiresDocumentContext": true,
57344
57624
  "docRequirement": "optional",
57625
+ "responseEnvelopeKey": null,
57345
57626
  "params": [
57346
57627
  {
57347
57628
  "name": "doc",
@@ -57568,6 +57849,7 @@ const CONTRACT = {
57568
57849
  "description": "Set the numbering style (e.g. decimal, lowerLetter, upperRoman) for a specific list level. Rejects \"bullet\" — use setLevelBullet instead. Sequence-local: clones shared definitions.",
57569
57850
  "requiresDocumentContext": true,
57570
57851
  "docRequirement": "optional",
57852
+ "responseEnvelopeKey": null,
57571
57853
  "params": [
57572
57854
  {
57573
57855
  "name": "doc",
@@ -57809,6 +58091,7 @@ const CONTRACT = {
57809
58091
  "description": "Set the level text pattern (e.g. \"%1.\", \"(%1)\") for a specific list level. Uses OOXML level-placeholder syntax. Sequence-local: clones shared definitions.",
57810
58092
  "requiresDocumentContext": true,
57811
58093
  "docRequirement": "optional",
58094
+ "responseEnvelopeKey": null,
57812
58095
  "params": [
57813
58096
  {
57814
58097
  "name": "doc",
@@ -58049,6 +58332,7 @@ const CONTRACT = {
58049
58332
  "description": "Set the start value for a specific list level. Rejects bullet levels and non-positive values. Sequence-local: clones shared definitions.",
58050
58333
  "requiresDocumentContext": true,
58051
58334
  "docRequirement": "optional",
58335
+ "responseEnvelopeKey": null,
58052
58336
  "params": [
58053
58337
  {
58054
58338
  "name": "doc",
@@ -58291,6 +58575,7 @@ const CONTRACT = {
58291
58575
  "description": "Set the layout properties (alignment, indentation, trailing character, tab stop) for a specific list level. Accepts partial updates — omitted fields are left unchanged. Sequence-local: clones shared definitions.",
58292
58576
  "requiresDocumentContext": true,
58293
58577
  "docRequirement": "optional",
58578
+ "responseEnvelopeKey": null,
58294
58579
  "params": [
58295
58580
  {
58296
58581
  "name": "doc",
@@ -58601,6 +58886,7 @@ const CONTRACT = {
58601
58886
  "description": "Create a new comment thread (or reply when parentCommentId is given).",
58602
58887
  "requiresDocumentContext": true,
58603
58888
  "docRequirement": "optional",
58889
+ "responseEnvelopeKey": "receipt",
58604
58890
  "params": [
58605
58891
  {
58606
58892
  "name": "doc",
@@ -58838,6 +59124,7 @@ const CONTRACT = {
58838
59124
  "description": "Patch fields on an existing comment (text, target, status, or isInternal).",
58839
59125
  "requiresDocumentContext": true,
58840
59126
  "docRequirement": "optional",
59127
+ "responseEnvelopeKey": "receipt",
58841
59128
  "params": [
58842
59129
  {
58843
59130
  "name": "doc",
@@ -59101,6 +59388,7 @@ const CONTRACT = {
59101
59388
  "description": "Remove a comment or reply by ID.",
59102
59389
  "requiresDocumentContext": true,
59103
59390
  "docRequirement": "optional",
59391
+ "responseEnvelopeKey": "receipt",
59104
59392
  "params": [
59105
59393
  {
59106
59394
  "name": "doc",
@@ -59260,6 +59548,7 @@ const CONTRACT = {
59260
59548
  "description": "Retrieve a single comment thread by ID.",
59261
59549
  "requiresDocumentContext": true,
59262
59550
  "docRequirement": "optional",
59551
+ "responseEnvelopeKey": "comment",
59263
59552
  "params": [
59264
59553
  {
59265
59554
  "name": "doc",
@@ -59363,6 +59652,7 @@ const CONTRACT = {
59363
59652
  "description": "List all comment threads in the document.",
59364
59653
  "requiresDocumentContext": true,
59365
59654
  "docRequirement": "optional",
59655
+ "responseEnvelopeKey": "result",
59366
59656
  "params": [
59367
59657
  {
59368
59658
  "name": "doc",
@@ -59514,6 +59804,7 @@ const CONTRACT = {
59514
59804
  "description": "List all tracked changes in the document.",
59515
59805
  "requiresDocumentContext": true,
59516
59806
  "docRequirement": "optional",
59807
+ "responseEnvelopeKey": "result",
59517
59808
  "params": [
59518
59809
  {
59519
59810
  "name": "doc",
@@ -59671,6 +59962,7 @@ const CONTRACT = {
59671
59962
  "description": "Retrieve a single tracked change by ID.",
59672
59963
  "requiresDocumentContext": true,
59673
59964
  "docRequirement": "optional",
59965
+ "responseEnvelopeKey": "change",
59674
59966
  "params": [
59675
59967
  {
59676
59968
  "name": "doc",
@@ -59761,6 +60053,7 @@ const CONTRACT = {
59761
60053
  "description": "Accept or reject a tracked change (by ID or scope: all).",
59762
60054
  "requiresDocumentContext": true,
59763
60055
  "docRequirement": "optional",
60056
+ "responseEnvelopeKey": "receipt",
59764
60057
  "params": [
59765
60058
  {
59766
60059
  "name": "doc",
@@ -60001,6 +60294,7 @@ const CONTRACT = {
60001
60294
  "description": "Deterministic selector-based search returning mutation-grade addresses and text ranges. Use this to discover targets before any mutation.",
60002
60295
  "requiresDocumentContext": true,
60003
60296
  "docRequirement": "optional",
60297
+ "responseEnvelopeKey": "result",
60004
60298
  "params": [
60005
60299
  {
60006
60300
  "name": "doc",
@@ -60697,6 +60991,7 @@ const CONTRACT = {
60697
60991
  "description": "Resolve two explicit anchors into a contiguous document range. Returns a transparent SelectionTarget, a mutation-ready ref, and preview metadata. Stateless and deterministic.",
60698
60992
  "requiresDocumentContext": true,
60699
60993
  "docRequirement": "optional",
60994
+ "responseEnvelopeKey": null,
60700
60995
  "params": [
60701
60996
  {
60702
60997
  "name": "doc",
@@ -61282,6 +61577,7 @@ const CONTRACT = {
61282
61577
  "description": "Dry-run a mutation plan, returning resolved targets without applying changes.",
61283
61578
  "requiresDocumentContext": true,
61284
61579
  "docRequirement": "optional",
61580
+ "responseEnvelopeKey": "result",
61285
61581
  "params": [
61286
61582
  {
61287
61583
  "name": "doc",
@@ -66352,6 +66648,7 @@ const CONTRACT = {
66352
66648
  "description": "Execute a mutation plan atomically against the document.",
66353
66649
  "requiresDocumentContext": true,
66354
66650
  "docRequirement": "optional",
66651
+ "responseEnvelopeKey": "result",
66355
66652
  "params": [
66356
66653
  {
66357
66654
  "name": "doc",
@@ -71557,6 +71854,7 @@ const CONTRACT = {
71557
71854
  "description": "Query runtime capabilities supported by the current document engine.",
71558
71855
  "requiresDocumentContext": false,
71559
71856
  "docRequirement": "none",
71857
+ "responseEnvelopeKey": "capabilities",
71560
71858
  "params": [
71561
71859
  {
71562
71860
  "name": "sessionId",
@@ -86850,6 +87148,7 @@ const CONTRACT = {
86850
87148
  "description": "Create a new table at the target position.",
86851
87149
  "requiresDocumentContext": true,
86852
87150
  "docRequirement": "optional",
87151
+ "responseEnvelopeKey": "result",
86853
87152
  "params": [
86854
87153
  {
86855
87154
  "name": "doc",
@@ -87342,6 +87641,7 @@ const CONTRACT = {
87342
87641
  "description": "Convert a text range into a table.",
87343
87642
  "requiresDocumentContext": true,
87344
87643
  "docRequirement": "optional",
87644
+ "responseEnvelopeKey": "result",
87345
87645
  "params": [
87346
87646
  {
87347
87647
  "name": "doc",
@@ -87690,6 +87990,7 @@ const CONTRACT = {
87690
87990
  "description": "Delete the target table from the document.",
87691
87991
  "requiresDocumentContext": true,
87692
87992
  "docRequirement": "optional",
87993
+ "responseEnvelopeKey": "result",
87693
87994
  "params": [
87694
87995
  {
87695
87996
  "name": "doc",
@@ -87933,6 +88234,7 @@ const CONTRACT = {
87933
88234
  "description": "Clear the contents of the target table or cell range.",
87934
88235
  "requiresDocumentContext": true,
87935
88236
  "docRequirement": "optional",
88237
+ "responseEnvelopeKey": "result",
87936
88238
  "params": [
87937
88239
  {
87938
88240
  "name": "doc",
@@ -88176,6 +88478,7 @@ const CONTRACT = {
88176
88478
  "description": "Move a table to a new position in the document.",
88177
88479
  "requiresDocumentContext": true,
88178
88480
  "docRequirement": "optional",
88481
+ "responseEnvelopeKey": "result",
88179
88482
  "params": [
88180
88483
  {
88181
88484
  "name": "doc",
@@ -88695,6 +88998,7 @@ const CONTRACT = {
88695
88998
  "description": "Split a table into two tables at the target row.",
88696
88999
  "requiresDocumentContext": true,
88697
89000
  "docRequirement": "optional",
89001
+ "responseEnvelopeKey": "result",
88698
89002
  "params": [
88699
89003
  {
88700
89004
  "name": "doc",
@@ -88952,6 +89256,7 @@ const CONTRACT = {
88952
89256
  "description": "Convert a table back to plain text.",
88953
89257
  "requiresDocumentContext": true,
88954
89258
  "docRequirement": "optional",
89259
+ "responseEnvelopeKey": "result",
88955
89260
  "params": [
88956
89261
  {
88957
89262
  "name": "doc",
@@ -89220,6 +89525,7 @@ const CONTRACT = {
89220
89525
  "description": "Set the layout mode of the target table.",
89221
89526
  "requiresDocumentContext": true,
89222
89527
  "docRequirement": "optional",
89528
+ "responseEnvelopeKey": "result",
89223
89529
  "params": [
89224
89530
  {
89225
89531
  "name": "doc",
@@ -89554,6 +89860,7 @@ const CONTRACT = {
89554
89860
  "description": "Insert a new row into the target table.",
89555
89861
  "requiresDocumentContext": true,
89556
89862
  "docRequirement": "optional",
89863
+ "responseEnvelopeKey": "result",
89557
89864
  "params": [
89558
89865
  {
89559
89866
  "name": "doc",
@@ -89906,6 +90213,7 @@ const CONTRACT = {
89906
90213
  "description": "Delete a row from the target table.",
89907
90214
  "requiresDocumentContext": true,
89908
90215
  "docRequirement": "optional",
90216
+ "responseEnvelopeKey": "result",
89909
90217
  "params": [
89910
90218
  {
89911
90219
  "name": "doc",
@@ -90204,6 +90512,7 @@ const CONTRACT = {
90204
90512
  "description": "Set the height of a table row.",
90205
90513
  "requiresDocumentContext": true,
90206
90514
  "docRequirement": "optional",
90515
+ "responseEnvelopeKey": "result",
90207
90516
  "params": [
90208
90517
  {
90209
90518
  "name": "doc",
@@ -90567,6 +90876,7 @@ const CONTRACT = {
90567
90876
  "description": "Distribute row heights evenly across the target table.",
90568
90877
  "requiresDocumentContext": true,
90569
90878
  "docRequirement": "optional",
90879
+ "responseEnvelopeKey": "result",
90570
90880
  "params": [
90571
90881
  {
90572
90882
  "name": "doc",
@@ -90810,6 +91120,7 @@ const CONTRACT = {
90810
91120
  "description": "Set options on a table row such as header repeat or page break.",
90811
91121
  "requiresDocumentContext": true,
90812
91122
  "docRequirement": "optional",
91123
+ "responseEnvelopeKey": "result",
90813
91124
  "params": [
90814
91125
  {
90815
91126
  "name": "doc",
@@ -91138,6 +91449,7 @@ const CONTRACT = {
91138
91449
  "description": "Insert a new column into the target table.",
91139
91450
  "requiresDocumentContext": true,
91140
91451
  "docRequirement": "optional",
91452
+ "responseEnvelopeKey": "result",
91141
91453
  "params": [
91142
91454
  {
91143
91455
  "name": "doc",
@@ -91427,6 +91739,7 @@ const CONTRACT = {
91427
91739
  "description": "Delete a column from the target table.",
91428
91740
  "requiresDocumentContext": true,
91429
91741
  "docRequirement": "optional",
91742
+ "responseEnvelopeKey": "result",
91430
91743
  "params": [
91431
91744
  {
91432
91745
  "name": "doc",
@@ -91684,6 +91997,7 @@ const CONTRACT = {
91684
91997
  "description": "Set the width of a table column.",
91685
91998
  "requiresDocumentContext": true,
91686
91999
  "docRequirement": "optional",
92000
+ "responseEnvelopeKey": "result",
91687
92001
  "params": [
91688
92002
  {
91689
92003
  "name": "doc",
@@ -91953,6 +92267,7 @@ const CONTRACT = {
91953
92267
  "description": "Distribute column widths evenly across the target table.",
91954
92268
  "requiresDocumentContext": true,
91955
92269
  "docRequirement": "optional",
92270
+ "responseEnvelopeKey": "result",
91956
92271
  "params": [
91957
92272
  {
91958
92273
  "name": "doc",
@@ -92235,6 +92550,7 @@ const CONTRACT = {
92235
92550
  "description": "Insert a new cell into a table row.",
92236
92551
  "requiresDocumentContext": true,
92237
92552
  "docRequirement": "optional",
92553
+ "responseEnvelopeKey": "result",
92238
92554
  "params": [
92239
92555
  {
92240
92556
  "name": "doc",
@@ -92503,6 +92819,7 @@ const CONTRACT = {
92503
92819
  "description": "Delete a cell from a table row.",
92504
92820
  "requiresDocumentContext": true,
92505
92821
  "docRequirement": "optional",
92822
+ "responseEnvelopeKey": "result",
92506
92823
  "params": [
92507
92824
  {
92508
92825
  "name": "doc",
@@ -92771,6 +93088,7 @@ const CONTRACT = {
92771
93088
  "description": "Merge a range of table cells into one.",
92772
93089
  "requiresDocumentContext": true,
92773
93090
  "docRequirement": "optional",
93091
+ "responseEnvelopeKey": "result",
92774
93092
  "params": [
92775
93093
  {
92776
93094
  "name": "doc",
@@ -93098,6 +93416,7 @@ const CONTRACT = {
93098
93416
  "description": "Unmerge a previously merged table cell.",
93099
93417
  "requiresDocumentContext": true,
93100
93418
  "docRequirement": "optional",
93419
+ "responseEnvelopeKey": "result",
93101
93420
  "params": [
93102
93421
  {
93103
93422
  "name": "doc",
@@ -93424,6 +93743,7 @@ const CONTRACT = {
93424
93743
  "description": "Split a table cell into multiple cells.",
93425
93744
  "requiresDocumentContext": true,
93426
93745
  "docRequirement": "optional",
93746
+ "responseEnvelopeKey": "result",
93427
93747
  "params": [
93428
93748
  {
93429
93749
  "name": "doc",
@@ -93691,6 +94011,7 @@ const CONTRACT = {
93691
94011
  "description": "Set properties on a table cell such as vertical alignment or text direction.",
93692
94012
  "requiresDocumentContext": true,
93693
94013
  "docRequirement": "optional",
94014
+ "responseEnvelopeKey": "result",
93694
94015
  "params": [
93695
94016
  {
93696
94017
  "name": "doc",
@@ -93987,6 +94308,7 @@ const CONTRACT = {
93987
94308
  "description": "Sort table rows by a column value.",
93988
94309
  "requiresDocumentContext": true,
93989
94310
  "docRequirement": "optional",
94311
+ "responseEnvelopeKey": "result",
93990
94312
  "params": [
93991
94313
  {
93992
94314
  "name": "doc",
@@ -94310,6 +94632,7 @@ const CONTRACT = {
94310
94632
  "description": "Set the alternative text description for a table.",
94311
94633
  "requiresDocumentContext": true,
94312
94634
  "docRequirement": "optional",
94635
+ "responseEnvelopeKey": "result",
94313
94636
  "params": [
94314
94637
  {
94315
94638
  "name": "doc",
@@ -94569,6 +94892,7 @@ const CONTRACT = {
94569
94892
  "description": "Apply a named table style to the target table.",
94570
94893
  "requiresDocumentContext": true,
94571
94894
  "docRequirement": "optional",
94895
+ "responseEnvelopeKey": "result",
94572
94896
  "params": [
94573
94897
  {
94574
94898
  "name": "doc",
@@ -94825,6 +95149,7 @@ const CONTRACT = {
94825
95149
  "description": "Remove the applied table style, reverting to defaults.",
94826
95150
  "requiresDocumentContext": true,
94827
95151
  "docRequirement": "optional",
95152
+ "responseEnvelopeKey": "result",
94828
95153
  "params": [
94829
95154
  {
94830
95155
  "name": "doc",
@@ -95068,6 +95393,7 @@ const CONTRACT = {
95068
95393
  "description": "Toggle a conditional style option such as banded rows or first column.",
95069
95394
  "requiresDocumentContext": true,
95070
95395
  "docRequirement": "optional",
95396
+ "responseEnvelopeKey": "result",
95071
95397
  "params": [
95072
95398
  {
95073
95399
  "name": "doc",
@@ -95366,6 +95692,7 @@ const CONTRACT = {
95366
95692
  "description": "Set border properties on a table or cell range.",
95367
95693
  "requiresDocumentContext": true,
95368
95694
  "docRequirement": "optional",
95695
+ "responseEnvelopeKey": "result",
95369
95696
  "params": [
95370
95697
  {
95371
95698
  "name": "doc",
@@ -95699,6 +96026,7 @@ const CONTRACT = {
95699
96026
  "description": "Remove border formatting from a table or cell range.",
95700
96027
  "requiresDocumentContext": true,
95701
96028
  "docRequirement": "optional",
96029
+ "responseEnvelopeKey": "result",
95702
96030
  "params": [
95703
96031
  {
95704
96032
  "name": "doc",
@@ -95998,6 +96326,7 @@ const CONTRACT = {
95998
96326
  "description": "Apply a border preset (e.g. all borders, outside only) to a table.",
95999
96327
  "requiresDocumentContext": true,
96000
96328
  "docRequirement": "optional",
96329
+ "responseEnvelopeKey": "result",
96001
96330
  "params": [
96002
96331
  {
96003
96332
  "name": "doc",
@@ -96278,6 +96607,7 @@ const CONTRACT = {
96278
96607
  "description": "Set the background shading color on a table or cell range.",
96279
96608
  "requiresDocumentContext": true,
96280
96609
  "docRequirement": "optional",
96610
+ "responseEnvelopeKey": "result",
96281
96611
  "params": [
96282
96612
  {
96283
96613
  "name": "doc",
@@ -96541,6 +96871,7 @@ const CONTRACT = {
96541
96871
  "description": "Remove shading from a table or cell range.",
96542
96872
  "requiresDocumentContext": true,
96543
96873
  "docRequirement": "optional",
96874
+ "responseEnvelopeKey": "result",
96544
96875
  "params": [
96545
96876
  {
96546
96877
  "name": "doc",
@@ -96791,6 +97122,7 @@ const CONTRACT = {
96791
97122
  "description": "Set default cell padding for the entire table.",
96792
97123
  "requiresDocumentContext": true,
96793
97124
  "docRequirement": "optional",
97125
+ "responseEnvelopeKey": "result",
96794
97126
  "params": [
96795
97127
  {
96796
97128
  "name": "doc",
@@ -97084,6 +97416,7 @@ const CONTRACT = {
97084
97416
  "description": "Set padding on a specific table cell or cell range.",
97085
97417
  "requiresDocumentContext": true,
97086
97418
  "docRequirement": "optional",
97419
+ "responseEnvelopeKey": "result",
97087
97420
  "params": [
97088
97421
  {
97089
97422
  "name": "doc",
@@ -97377,6 +97710,7 @@ const CONTRACT = {
97377
97710
  "description": "Set the cell spacing for the target table.",
97378
97711
  "requiresDocumentContext": true,
97379
97712
  "docRequirement": "optional",
97713
+ "responseEnvelopeKey": "result",
97380
97714
  "params": [
97381
97715
  {
97382
97716
  "name": "doc",
@@ -97634,6 +97968,7 @@ const CONTRACT = {
97634
97968
  "description": "Remove custom cell spacing from the target table.",
97635
97969
  "requiresDocumentContext": true,
97636
97970
  "docRequirement": "optional",
97971
+ "responseEnvelopeKey": "result",
97637
97972
  "params": [
97638
97973
  {
97639
97974
  "name": "doc",
@@ -97877,6 +98212,7 @@ const CONTRACT = {
97877
98212
  "description": "Apply a table style and/or style options in one call.",
97878
98213
  "requiresDocumentContext": true,
97879
98214
  "docRequirement": "optional",
98215
+ "responseEnvelopeKey": null,
97880
98216
  "params": [
97881
98217
  {
97882
98218
  "name": "doc",
@@ -98216,6 +98552,7 @@ const CONTRACT = {
98216
98552
  "description": "Set borders on a table using a target set or per-edge patch.",
98217
98553
  "requiresDocumentContext": true,
98218
98554
  "docRequirement": "optional",
98555
+ "responseEnvelopeKey": null,
98219
98556
  "params": [
98220
98557
  {
98221
98558
  "name": "doc",
@@ -99004,6 +99341,7 @@ const CONTRACT = {
99004
99341
  "description": "Set table-level default cell margins and/or cell spacing.",
99005
99342
  "requiresDocumentContext": true,
99006
99343
  "docRequirement": "optional",
99344
+ "responseEnvelopeKey": null,
99007
99345
  "params": [
99008
99346
  {
99009
99347
  "name": "doc",
@@ -99359,6 +99697,7 @@ const CONTRACT = {
99359
99697
  "description": "Retrieve table structure and dimensions by locator.",
99360
99698
  "requiresDocumentContext": true,
99361
99699
  "docRequirement": "optional",
99700
+ "responseEnvelopeKey": "result",
99362
99701
  "params": [
99363
99702
  {
99364
99703
  "name": "doc",
@@ -99473,6 +99812,7 @@ const CONTRACT = {
99473
99812
  "description": "Retrieve cell information for a table, optionally filtered by row or column.",
99474
99813
  "requiresDocumentContext": true,
99475
99814
  "docRequirement": "optional",
99815
+ "responseEnvelopeKey": "result",
99476
99816
  "params": [
99477
99817
  {
99478
99818
  "name": "doc",
@@ -99637,6 +99977,7 @@ const CONTRACT = {
99637
99977
  "description": "Retrieve layout and style properties of a table.",
99638
99978
  "requiresDocumentContext": true,
99639
99979
  "docRequirement": "optional",
99980
+ "responseEnvelopeKey": "result",
99640
99981
  "params": [
99641
99982
  {
99642
99983
  "name": "doc",
@@ -99992,6 +100333,7 @@ const CONTRACT = {
99992
100333
  "description": "List all table styles and the document-level default table style setting.",
99993
100334
  "requiresDocumentContext": true,
99994
100335
  "docRequirement": "optional",
100336
+ "responseEnvelopeKey": "result",
99995
100337
  "params": [
99996
100338
  {
99997
100339
  "name": "doc",
@@ -100116,6 +100458,7 @@ const CONTRACT = {
100116
100458
  "description": "Set the document-level default table style (w:defaultTableStyle in settings.xml).",
100117
100459
  "requiresDocumentContext": true,
100118
100460
  "docRequirement": "optional",
100461
+ "responseEnvelopeKey": "result",
100119
100462
  "params": [
100120
100463
  {
100121
100464
  "name": "doc",
@@ -100301,6 +100644,7 @@ const CONTRACT = {
100301
100644
  "description": "Remove the document-level default table style setting.",
100302
100645
  "requiresDocumentContext": true,
100303
100646
  "docRequirement": "optional",
100647
+ "responseEnvelopeKey": "result",
100304
100648
  "params": [
100305
100649
  {
100306
100650
  "name": "doc",
@@ -100470,6 +100814,7 @@ const CONTRACT = {
100470
100814
  "description": "Insert a new table of contents at the target position.",
100471
100815
  "requiresDocumentContext": true,
100472
100816
  "docRequirement": "optional",
100817
+ "responseEnvelopeKey": "result",
100473
100818
  "params": [
100474
100819
  {
100475
100820
  "name": "doc",
@@ -101082,6 +101427,7 @@ const CONTRACT = {
101082
101427
  "description": "List all tables of contents in the document.",
101083
101428
  "requiresDocumentContext": true,
101084
101429
  "docRequirement": "optional",
101430
+ "responseEnvelopeKey": "result",
101085
101431
  "params": [
101086
101432
  {
101087
101433
  "name": "doc",
@@ -101215,6 +101561,7 @@ const CONTRACT = {
101215
101561
  "description": "Retrieve details of a specific table of contents.",
101216
101562
  "requiresDocumentContext": true,
101217
101563
  "docRequirement": "optional",
101564
+ "responseEnvelopeKey": "result",
101218
101565
  "params": [
101219
101566
  {
101220
101567
  "name": "doc",
@@ -101345,6 +101692,7 @@ const CONTRACT = {
101345
101692
  "description": "Update the configuration switches of a table of contents.",
101346
101693
  "requiresDocumentContext": true,
101347
101694
  "docRequirement": "optional",
101695
+ "responseEnvelopeKey": "result",
101348
101696
  "params": [
101349
101697
  {
101350
101698
  "name": "doc",
@@ -101798,6 +102146,7 @@ const CONTRACT = {
101798
102146
  "description": "Rebuild or refresh the materialized content of a table of contents.",
101799
102147
  "requiresDocumentContext": true,
101800
102148
  "docRequirement": "optional",
102149
+ "responseEnvelopeKey": "result",
101801
102150
  "params": [
101802
102151
  {
101803
102152
  "name": "doc",
@@ -102090,6 +102439,7 @@ const CONTRACT = {
102090
102439
  "description": "Remove a table of contents from the document.",
102091
102440
  "requiresDocumentContext": true,
102092
102441
  "docRequirement": "optional",
102442
+ "responseEnvelopeKey": "result",
102093
102443
  "params": [
102094
102444
  {
102095
102445
  "name": "doc",
@@ -102361,6 +102711,7 @@ const CONTRACT = {
102361
102711
  "description": "Insert a TC (table of contents entry) field at the target paragraph.",
102362
102712
  "requiresDocumentContext": true,
102363
102713
  "docRequirement": "optional",
102714
+ "responseEnvelopeKey": "result",
102364
102715
  "params": [
102365
102716
  {
102366
102717
  "name": "doc",
@@ -102703,6 +103054,7 @@ const CONTRACT = {
102703
103054
  "description": "Remove a TC (table of contents entry) field from the document.",
102704
103055
  "requiresDocumentContext": true,
102705
103056
  "docRequirement": "optional",
103057
+ "responseEnvelopeKey": "result",
102706
103058
  "params": [
102707
103059
  {
102708
103060
  "name": "doc",
@@ -102974,6 +103326,7 @@ const CONTRACT = {
102974
103326
  "description": "List all TC (table of contents entry) fields in the document body.",
102975
103327
  "requiresDocumentContext": true,
102976
103328
  "docRequirement": "optional",
103329
+ "responseEnvelopeKey": "result",
102977
103330
  "params": [
102978
103331
  {
102979
103332
  "name": "doc",
@@ -103155,6 +103508,7 @@ const CONTRACT = {
103155
103508
  "description": "Retrieve details of a specific TC (table of contents entry) field.",
103156
103509
  "requiresDocumentContext": true,
103157
103510
  "docRequirement": "optional",
103511
+ "responseEnvelopeKey": "result",
103158
103512
  "params": [
103159
103513
  {
103160
103514
  "name": "doc",
@@ -103287,6 +103641,7 @@ const CONTRACT = {
103287
103641
  "description": "Update the properties of a TC (table of contents entry) field.",
103288
103642
  "requiresDocumentContext": true,
103289
103643
  "docRequirement": "optional",
103644
+ "responseEnvelopeKey": "result",
103290
103645
  "params": [
103291
103646
  {
103292
103647
  "name": "doc",
@@ -103603,6 +103958,7 @@ const CONTRACT = {
103603
103958
  "description": "Query the current undo/redo history state of the active editor.",
103604
103959
  "requiresDocumentContext": true,
103605
103960
  "docRequirement": "optional",
103961
+ "responseEnvelopeKey": "result",
103606
103962
  "params": [
103607
103963
  {
103608
103964
  "name": "doc",
@@ -103674,6 +104030,7 @@ const CONTRACT = {
103674
104030
  "description": "Undo the most recent history-safe mutation in the active editor.",
103675
104031
  "requiresDocumentContext": true,
103676
104032
  "docRequirement": "optional",
104033
+ "responseEnvelopeKey": "result",
103677
104034
  "params": [
103678
104035
  {
103679
104036
  "name": "doc",
@@ -103836,6 +104193,7 @@ const CONTRACT = {
103836
104193
  "description": "Redo the most recently undone action in the active editor.",
103837
104194
  "requiresDocumentContext": true,
103838
104195
  "docRequirement": "optional",
104196
+ "responseEnvelopeKey": "result",
103839
104197
  "params": [
103840
104198
  {
103841
104199
  "name": "doc",
@@ -103998,6 +104356,7 @@ const CONTRACT = {
103998
104356
  "description": "Insert a new image at the target position.",
103999
104357
  "requiresDocumentContext": true,
104000
104358
  "docRequirement": "optional",
104359
+ "responseEnvelopeKey": "result",
104001
104360
  "params": [
104002
104361
  {
104003
104362
  "name": "doc",
@@ -104654,6 +105013,7 @@ const CONTRACT = {
104654
105013
  "description": "List all images in the document.",
104655
105014
  "requiresDocumentContext": true,
104656
105015
  "docRequirement": "optional",
105016
+ "responseEnvelopeKey": "result",
104657
105017
  "params": [
104658
105018
  {
104659
105019
  "name": "doc",
@@ -104728,6 +105088,7 @@ const CONTRACT = {
104728
105088
  "description": "Get details for a specific image by its stable ID.",
104729
105089
  "requiresDocumentContext": true,
104730
105090
  "docRequirement": "optional",
105091
+ "responseEnvelopeKey": "result",
104731
105092
  "params": [
104732
105093
  {
104733
105094
  "name": "doc",
@@ -104783,6 +105144,7 @@ const CONTRACT = {
104783
105144
  "description": "Delete an image from the document.",
104784
105145
  "requiresDocumentContext": true,
104785
105146
  "docRequirement": "optional",
105147
+ "responseEnvelopeKey": "result",
104786
105148
  "params": [
104787
105149
  {
104788
105150
  "name": "doc",
@@ -104934,6 +105296,7 @@ const CONTRACT = {
104934
105296
  "description": "Move an image to a new location in the document.",
104935
105297
  "requiresDocumentContext": true,
104936
105298
  "docRequirement": "optional",
105299
+ "responseEnvelopeKey": "result",
104937
105300
  "params": [
104938
105301
  {
104939
105302
  "name": "doc",
@@ -105378,6 +105741,7 @@ const CONTRACT = {
105378
105741
  "description": "Convert a floating image to inline placement.",
105379
105742
  "requiresDocumentContext": true,
105380
105743
  "docRequirement": "optional",
105744
+ "responseEnvelopeKey": "result",
105381
105745
  "params": [
105382
105746
  {
105383
105747
  "name": "doc",
@@ -105529,6 +105893,7 @@ const CONTRACT = {
105529
105893
  "description": "Convert an inline image to floating placement.",
105530
105894
  "requiresDocumentContext": true,
105531
105895
  "docRequirement": "optional",
105896
+ "responseEnvelopeKey": "result",
105532
105897
  "params": [
105533
105898
  {
105534
105899
  "name": "doc",
@@ -105680,6 +106045,7 @@ const CONTRACT = {
105680
106045
  "description": "Set explicit width/height for an image.",
105681
106046
  "requiresDocumentContext": true,
105682
106047
  "docRequirement": "optional",
106048
+ "responseEnvelopeKey": "result",
105683
106049
  "params": [
105684
106050
  {
105685
106051
  "name": "doc",
@@ -105893,6 +106259,7 @@ const CONTRACT = {
105893
106259
  "description": "Set the text wrapping type for a floating image.",
105894
106260
  "requiresDocumentContext": true,
105895
106261
  "docRequirement": "optional",
106262
+ "responseEnvelopeKey": "result",
105896
106263
  "params": [
105897
106264
  {
105898
106265
  "name": "doc",
@@ -106084,6 +106451,7 @@ const CONTRACT = {
106084
106451
  "description": "Set which side(s) text wraps around a floating image.",
106085
106452
  "requiresDocumentContext": true,
106086
106453
  "docRequirement": "optional",
106454
+ "responseEnvelopeKey": "result",
106087
106455
  "params": [
106088
106456
  {
106089
106457
  "name": "doc",
@@ -106267,6 +106635,7 @@ const CONTRACT = {
106267
106635
  "description": "Set the text-wrap distance margins for a floating image.",
106268
106636
  "requiresDocumentContext": true,
106269
106637
  "docRequirement": "optional",
106638
+ "responseEnvelopeKey": "result",
106270
106639
  "params": [
106271
106640
  {
106272
106641
  "name": "doc",
@@ -106461,6 +106830,7 @@ const CONTRACT = {
106461
106830
  "description": "Set the anchor position for a floating image.",
106462
106831
  "requiresDocumentContext": true,
106463
106832
  "docRequirement": "optional",
106833
+ "responseEnvelopeKey": "result",
106464
106834
  "params": [
106465
106835
  {
106466
106836
  "name": "doc",
@@ -106678,6 +107048,7 @@ const CONTRACT = {
106678
107048
  "description": "Set anchor behavior options for a floating image.",
106679
107049
  "requiresDocumentContext": true,
106680
107050
  "docRequirement": "optional",
107051
+ "responseEnvelopeKey": "result",
106681
107052
  "params": [
106682
107053
  {
106683
107054
  "name": "doc",
@@ -106878,6 +107249,7 @@ const CONTRACT = {
106878
107249
  "description": "Set the z-order (relativeHeight) for a floating image.",
106879
107250
  "requiresDocumentContext": true,
106880
107251
  "docRequirement": "optional",
107252
+ "responseEnvelopeKey": "result",
106881
107253
  "params": [
106882
107254
  {
106883
107255
  "name": "doc",
@@ -107062,6 +107434,7 @@ const CONTRACT = {
107062
107434
  "description": "Scale an image by a uniform factor applied to both dimensions.",
107063
107435
  "requiresDocumentContext": true,
107064
107436
  "docRequirement": "optional",
107437
+ "responseEnvelopeKey": null,
107065
107438
  "params": [
107066
107439
  {
107067
107440
  "name": "doc",
@@ -107224,6 +107597,7 @@ const CONTRACT = {
107224
107597
  "description": "Lock or unlock the aspect ratio for an image.",
107225
107598
  "requiresDocumentContext": true,
107226
107599
  "docRequirement": "optional",
107600
+ "responseEnvelopeKey": null,
107227
107601
  "params": [
107228
107602
  {
107229
107603
  "name": "doc",
@@ -107385,6 +107759,7 @@ const CONTRACT = {
107385
107759
  "description": "Set the absolute rotation angle for an image.",
107386
107760
  "requiresDocumentContext": true,
107387
107761
  "docRequirement": "optional",
107762
+ "responseEnvelopeKey": null,
107388
107763
  "params": [
107389
107764
  {
107390
107765
  "name": "doc",
@@ -107548,6 +107923,7 @@ const CONTRACT = {
107548
107923
  "description": "Set horizontal and/or vertical flip state for an image.",
107549
107924
  "requiresDocumentContext": true,
107550
107925
  "docRequirement": "optional",
107926
+ "responseEnvelopeKey": null,
107551
107927
  "params": [
107552
107928
  {
107553
107929
  "name": "doc",
@@ -107715,6 +108091,7 @@ const CONTRACT = {
107715
108091
  "description": "Apply rectangular edge-percentage crop to an image.",
107716
108092
  "requiresDocumentContext": true,
107717
108093
  "docRequirement": "optional",
108094
+ "responseEnvelopeKey": null,
107718
108095
  "params": [
107719
108096
  {
107720
108097
  "name": "doc",
@@ -107917,6 +108294,7 @@ const CONTRACT = {
107917
108294
  "description": "Remove all cropping from an image.",
107918
108295
  "requiresDocumentContext": true,
107919
108296
  "docRequirement": "optional",
108297
+ "responseEnvelopeKey": null,
107920
108298
  "params": [
107921
108299
  {
107922
108300
  "name": "doc",
@@ -108068,6 +108446,7 @@ const CONTRACT = {
108068
108446
  "description": "Replace the image source while preserving identity and placement.",
108069
108447
  "requiresDocumentContext": true,
108070
108448
  "docRequirement": "optional",
108449
+ "responseEnvelopeKey": null,
108071
108450
  "params": [
108072
108451
  {
108073
108452
  "name": "doc",
@@ -108238,6 +108617,7 @@ const CONTRACT = {
108238
108617
  "description": "Set the accessibility description (alt text) for an image.",
108239
108618
  "requiresDocumentContext": true,
108240
108619
  "docRequirement": "optional",
108620
+ "responseEnvelopeKey": null,
108241
108621
  "params": [
108242
108622
  {
108243
108623
  "name": "doc",
@@ -108399,6 +108779,7 @@ const CONTRACT = {
108399
108779
  "description": "Mark or unmark an image as decorative.",
108400
108780
  "requiresDocumentContext": true,
108401
108781
  "docRequirement": "optional",
108782
+ "responseEnvelopeKey": null,
108402
108783
  "params": [
108403
108784
  {
108404
108785
  "name": "doc",
@@ -108560,6 +108941,7 @@ const CONTRACT = {
108560
108941
  "description": "Set the object name for an image.",
108561
108942
  "requiresDocumentContext": true,
108562
108943
  "docRequirement": "optional",
108944
+ "responseEnvelopeKey": null,
108563
108945
  "params": [
108564
108946
  {
108565
108947
  "name": "doc",
@@ -108721,6 +109103,7 @@ const CONTRACT = {
108721
109103
  "description": "Set or remove the hyperlink attached to an image.",
108722
109104
  "requiresDocumentContext": true,
108723
109105
  "docRequirement": "optional",
109106
+ "responseEnvelopeKey": null,
108724
109107
  "params": [
108725
109108
  {
108726
109109
  "name": "doc",
@@ -108897,6 +109280,7 @@ const CONTRACT = {
108897
109280
  "description": "Insert a caption paragraph below the image.",
108898
109281
  "requiresDocumentContext": true,
108899
109282
  "docRequirement": "optional",
109283
+ "responseEnvelopeKey": null,
108900
109284
  "params": [
108901
109285
  {
108902
109286
  "name": "doc",
@@ -109058,6 +109442,7 @@ const CONTRACT = {
109058
109442
  "description": "Update the text of an existing caption paragraph.",
109059
109443
  "requiresDocumentContext": true,
109060
109444
  "docRequirement": "optional",
109445
+ "responseEnvelopeKey": null,
109061
109446
  "params": [
109062
109447
  {
109063
109448
  "name": "doc",
@@ -109219,6 +109604,7 @@ const CONTRACT = {
109219
109604
  "description": "Remove the caption paragraph from below the image.",
109220
109605
  "requiresDocumentContext": true,
109221
109606
  "docRequirement": "optional",
109607
+ "responseEnvelopeKey": null,
109222
109608
  "params": [
109223
109609
  {
109224
109610
  "name": "doc",
@@ -109370,6 +109756,7 @@ const CONTRACT = {
109370
109756
  "description": "List all hyperlinks in the document, with optional filtering by href, anchor, or display text.",
109371
109757
  "requiresDocumentContext": true,
109372
109758
  "docRequirement": "optional",
109759
+ "responseEnvelopeKey": null,
109373
109760
  "params": [
109374
109761
  {
109375
109762
  "name": "doc",
@@ -109589,6 +109976,7 @@ const CONTRACT = {
109589
109976
  "description": "Retrieve details of a specific hyperlink by its inline address.",
109590
109977
  "requiresDocumentContext": true,
109591
109978
  "docRequirement": "optional",
109979
+ "responseEnvelopeKey": null,
109592
109980
  "params": [
109593
109981
  {
109594
109982
  "name": "doc",
@@ -109770,6 +110158,7 @@ const CONTRACT = {
109770
110158
  "description": "Wrap an existing text range with a hyperlink.",
109771
110159
  "requiresDocumentContext": true,
109772
110160
  "docRequirement": "optional",
110161
+ "responseEnvelopeKey": null,
109773
110162
  "params": [
109774
110163
  {
109775
110164
  "name": "doc",
@@ -110108,6 +110497,7 @@ const CONTRACT = {
110108
110497
  "description": "Insert new linked text at a target position.",
110109
110498
  "requiresDocumentContext": true,
110110
110499
  "docRequirement": "optional",
110500
+ "responseEnvelopeKey": null,
110111
110501
  "params": [
110112
110502
  {
110113
110503
  "name": "doc",
@@ -110454,6 +110844,7 @@ const CONTRACT = {
110454
110844
  "description": "Update hyperlink metadata (destination, tooltip, target, rel) without changing display text.",
110455
110845
  "requiresDocumentContext": true,
110456
110846
  "docRequirement": "optional",
110847
+ "responseEnvelopeKey": null,
110457
110848
  "params": [
110458
110849
  {
110459
110850
  "name": "doc",
@@ -110900,6 +111291,7 @@ const CONTRACT = {
110900
111291
  "description": "Remove a hyperlink. Mode 'unwrap' preserves display text; 'deleteText' removes the linked content entirely.",
110901
111292
  "requiresDocumentContext": true,
110902
111293
  "docRequirement": "optional",
111294
+ "responseEnvelopeKey": null,
110903
111295
  "params": [
110904
111296
  {
110905
111297
  "name": "doc",
@@ -111228,6 +111620,7 @@ const CONTRACT = {
111228
111620
  "description": "List header/footer slot entries across sections.",
111229
111621
  "requiresDocumentContext": true,
111230
111622
  "docRequirement": "optional",
111623
+ "responseEnvelopeKey": "result",
111231
111624
  "params": [
111232
111625
  {
111233
111626
  "name": "doc",
@@ -111405,6 +111798,7 @@ const CONTRACT = {
111405
111798
  "description": "Get a single header/footer slot entry by address.",
111406
111799
  "requiresDocumentContext": true,
111407
111800
  "docRequirement": "optional",
111801
+ "responseEnvelopeKey": "result",
111408
111802
  "params": [
111409
111803
  {
111410
111804
  "name": "doc",
@@ -111579,6 +111973,7 @@ const CONTRACT = {
111579
111973
  "description": "Resolve the effective header/footer reference for a slot, walking the section inheritance chain.",
111580
111974
  "requiresDocumentContext": true,
111581
111975
  "docRequirement": "optional",
111976
+ "responseEnvelopeKey": "result",
111582
111977
  "params": [
111583
111978
  {
111584
111979
  "name": "doc",
@@ -111776,6 +112171,7 @@ const CONTRACT = {
111776
112171
  "description": "Set an explicit header/footer reference on a section slot.",
111777
112172
  "requiresDocumentContext": true,
111778
112173
  "docRequirement": "optional",
112174
+ "responseEnvelopeKey": "result",
111779
112175
  "params": [
111780
112176
  {
111781
112177
  "name": "doc",
@@ -112064,6 +112460,7 @@ const CONTRACT = {
112064
112460
  "description": "Clear an explicit header/footer reference from a section slot.",
112065
112461
  "requiresDocumentContext": true,
112066
112462
  "docRequirement": "optional",
112463
+ "responseEnvelopeKey": "result",
112067
112464
  "params": [
112068
112465
  {
112069
112466
  "name": "doc",
@@ -112336,6 +112733,7 @@ const CONTRACT = {
112336
112733
  "description": "Link or unlink a header/footer slot to/from the previous section.",
112337
112734
  "requiresDocumentContext": true,
112338
112735
  "docRequirement": "optional",
112736
+ "responseEnvelopeKey": "result",
112339
112737
  "params": [
112340
112738
  {
112341
112739
  "name": "doc",
@@ -112622,6 +113020,7 @@ const CONTRACT = {
112622
113020
  "description": "List unique header/footer part records from document relationships.",
112623
113021
  "requiresDocumentContext": true,
112624
113022
  "docRequirement": "optional",
113023
+ "responseEnvelopeKey": "result",
112625
113024
  "params": [
112626
113025
  {
112627
113026
  "name": "doc",
@@ -112764,6 +113163,7 @@ const CONTRACT = {
112764
113163
  "description": "Create a new independent header/footer part, optionally cloned from an existing part.",
112765
113164
  "requiresDocumentContext": true,
112766
113165
  "docRequirement": "optional",
113166
+ "responseEnvelopeKey": "result",
112767
113167
  "params": [
112768
113168
  {
112769
113169
  "name": "doc",
@@ -112986,6 +113386,7 @@ const CONTRACT = {
112986
113386
  "description": "Delete a header/footer part and its associated relationship when no section slots reference it.",
112987
113387
  "requiresDocumentContext": true,
112988
113388
  "docRequirement": "optional",
113389
+ "responseEnvelopeKey": "result",
112989
113390
  "params": [
112990
113391
  {
112991
113392
  "name": "doc",
@@ -113214,6 +113615,7 @@ const CONTRACT = {
113214
113615
  "description": "Create a new content control (SDT) in the document.",
113215
113616
  "requiresDocumentContext": true,
113216
113617
  "docRequirement": "optional",
113618
+ "responseEnvelopeKey": null,
113217
113619
  "params": [
113218
113620
  {
113219
113621
  "name": "doc",
@@ -113589,6 +113991,7 @@ const CONTRACT = {
113589
113991
  "description": "List all content controls in the document with optional type/tag filtering.",
113590
113992
  "requiresDocumentContext": true,
113591
113993
  "docRequirement": "optional",
113994
+ "responseEnvelopeKey": null,
113592
113995
  "params": [
113593
113996
  {
113594
113997
  "name": "doc",
@@ -113680,6 +114083,7 @@ const CONTRACT = {
113680
114083
  "description": "Retrieve a single content control by target.",
113681
114084
  "requiresDocumentContext": true,
113682
114085
  "docRequirement": "optional",
114086
+ "responseEnvelopeKey": null,
113683
114087
  "params": [
113684
114088
  {
113685
114089
  "name": "doc",
@@ -113782,6 +114186,7 @@ const CONTRACT = {
113782
114186
  "description": "List content controls within a block range.",
113783
114187
  "requiresDocumentContext": true,
113784
114188
  "docRequirement": "optional",
114189
+ "responseEnvelopeKey": null,
113785
114190
  "params": [
113786
114191
  {
113787
114192
  "name": "doc",
@@ -113880,6 +114285,7 @@ const CONTRACT = {
113880
114285
  "description": "Select content controls matching a specific tag value.",
113881
114286
  "requiresDocumentContext": true,
113882
114287
  "docRequirement": "optional",
114288
+ "responseEnvelopeKey": null,
113883
114289
  "params": [
113884
114290
  {
113885
114291
  "name": "doc",
@@ -113966,6 +114372,7 @@ const CONTRACT = {
113966
114372
  "description": "Select content controls matching a specific title (alias) value.",
113967
114373
  "requiresDocumentContext": true,
113968
114374
  "docRequirement": "optional",
114375
+ "responseEnvelopeKey": null,
113969
114376
  "params": [
113970
114377
  {
113971
114378
  "name": "doc",
@@ -114052,6 +114459,7 @@ const CONTRACT = {
114052
114459
  "description": "List direct child content controls nested inside the target.",
114053
114460
  "requiresDocumentContext": true,
114054
114461
  "docRequirement": "optional",
114462
+ "responseEnvelopeKey": null,
114055
114463
  "params": [
114056
114464
  {
114057
114465
  "name": "doc",
@@ -114185,6 +114593,7 @@ const CONTRACT = {
114185
114593
  "description": "Get the parent content control of the target, if any.",
114186
114594
  "requiresDocumentContext": true,
114187
114595
  "docRequirement": "optional",
114596
+ "responseEnvelopeKey": null,
114188
114597
  "params": [
114189
114598
  {
114190
114599
  "name": "doc",
@@ -114294,6 +114703,7 @@ const CONTRACT = {
114294
114703
  "description": "Wrap existing content with a new content control.",
114295
114704
  "requiresDocumentContext": true,
114296
114705
  "docRequirement": "optional",
114706
+ "responseEnvelopeKey": null,
114297
114707
  "params": [
114298
114708
  {
114299
114709
  "name": "doc",
@@ -114654,6 +115064,7 @@ const CONTRACT = {
114654
115064
  "description": "Remove the content control wrapper, preserving its content in place.",
114655
115065
  "requiresDocumentContext": true,
114656
115066
  "docRequirement": "optional",
115067
+ "responseEnvelopeKey": null,
114657
115068
  "params": [
114658
115069
  {
114659
115070
  "name": "doc",
@@ -114945,6 +115356,7 @@ const CONTRACT = {
114945
115356
  "description": "Delete a content control and its content from the document.",
114946
115357
  "requiresDocumentContext": true,
114947
115358
  "docRequirement": "optional",
115359
+ "responseEnvelopeKey": null,
114948
115360
  "params": [
114949
115361
  {
114950
115362
  "name": "doc",
@@ -115236,6 +115648,7 @@ const CONTRACT = {
115236
115648
  "description": "Copy a content control to a destination position. Copied SDTs receive new IDs.",
115237
115649
  "requiresDocumentContext": true,
115238
115650
  "docRequirement": "optional",
115651
+ "responseEnvelopeKey": null,
115239
115652
  "params": [
115240
115653
  {
115241
115654
  "name": "doc",
@@ -115584,6 +115997,7 @@ const CONTRACT = {
115584
115997
  "description": "Move a content control to a new position. Preserves original IDs.",
115585
115998
  "requiresDocumentContext": true,
115586
115999
  "docRequirement": "optional",
116000
+ "responseEnvelopeKey": null,
115587
116001
  "params": [
115588
116002
  {
115589
116003
  "name": "doc",
@@ -115932,6 +116346,7 @@ const CONTRACT = {
115932
116346
  "description": "Patch metadata properties on a content control (tag, alias, appearance, color, etc.).",
115933
116347
  "requiresDocumentContext": true,
115934
116348
  "docRequirement": "optional",
116349
+ "responseEnvelopeKey": null,
115935
116350
  "params": [
115936
116351
  {
115937
116352
  "name": "doc",
@@ -116310,6 +116725,7 @@ const CONTRACT = {
116310
116725
  "description": "Set the lock mode on a content control.",
116311
116726
  "requiresDocumentContext": true,
116312
116727
  "docRequirement": "optional",
116728
+ "responseEnvelopeKey": null,
116313
116729
  "params": [
116314
116730
  {
116315
116731
  "name": "doc",
@@ -116633,6 +117049,7 @@ const CONTRACT = {
116633
117049
  "description": "Transition a content control to a different semantic type. Metadata-only; no implicit content rewrite.",
116634
117050
  "requiresDocumentContext": true,
116635
117051
  "docRequirement": "optional",
117052
+ "responseEnvelopeKey": null,
116636
117053
  "params": [
116637
117054
  {
116638
117055
  "name": "doc",
@@ -116935,6 +117352,7 @@ const CONTRACT = {
116935
117352
  "description": "Get the text content of a content control.",
116936
117353
  "requiresDocumentContext": true,
116937
117354
  "docRequirement": "optional",
117355
+ "responseEnvelopeKey": null,
116938
117356
  "params": [
116939
117357
  {
116940
117358
  "name": "doc",
@@ -117052,6 +117470,7 @@ const CONTRACT = {
117052
117470
  "description": "Replace the entire content of a content control.",
117053
117471
  "requiresDocumentContext": true,
117054
117472
  "docRequirement": "optional",
117473
+ "responseEnvelopeKey": null,
117055
117474
  "params": [
117056
117475
  {
117057
117476
  "name": "doc",
@@ -117374,6 +117793,7 @@ const CONTRACT = {
117374
117793
  "description": "Clear all content inside a content control, leaving it empty.",
117375
117794
  "requiresDocumentContext": true,
117376
117795
  "docRequirement": "optional",
117796
+ "responseEnvelopeKey": null,
117377
117797
  "params": [
117378
117798
  {
117379
117799
  "name": "doc",
@@ -117665,6 +118085,7 @@ const CONTRACT = {
117665
118085
  "description": "Append content to the end of a content control.",
117666
118086
  "requiresDocumentContext": true,
117667
118087
  "docRequirement": "optional",
118088
+ "responseEnvelopeKey": null,
117668
118089
  "params": [
117669
118090
  {
117670
118091
  "name": "doc",
@@ -117987,6 +118408,7 @@ const CONTRACT = {
117987
118408
  "description": "Prepend content to the beginning of a content control.",
117988
118409
  "requiresDocumentContext": true,
117989
118410
  "docRequirement": "optional",
118411
+ "responseEnvelopeKey": null,
117990
118412
  "params": [
117991
118413
  {
117992
118414
  "name": "doc",
@@ -118309,6 +118731,7 @@ const CONTRACT = {
118309
118731
  "description": "Insert content immediately before a content control.",
118310
118732
  "requiresDocumentContext": true,
118311
118733
  "docRequirement": "optional",
118734
+ "responseEnvelopeKey": null,
118312
118735
  "params": [
118313
118736
  {
118314
118737
  "name": "doc",
@@ -118631,6 +119054,7 @@ const CONTRACT = {
118631
119054
  "description": "Insert content immediately after a content control.",
118632
119055
  "requiresDocumentContext": true,
118633
119056
  "docRequirement": "optional",
119057
+ "responseEnvelopeKey": null,
118634
119058
  "params": [
118635
119059
  {
118636
119060
  "name": "doc",
@@ -118953,6 +119377,7 @@ const CONTRACT = {
118953
119377
  "description": "Get the data binding metadata (w:dataBinding) of a content control.",
118954
119378
  "requiresDocumentContext": true,
118955
119379
  "docRequirement": "optional",
119380
+ "responseEnvelopeKey": null,
118956
119381
  "params": [
118957
119382
  {
118958
119383
  "name": "doc",
@@ -119077,6 +119502,7 @@ const CONTRACT = {
119077
119502
  "description": "Set data binding metadata on a content control.",
119078
119503
  "requiresDocumentContext": true,
119079
119504
  "docRequirement": "optional",
119505
+ "responseEnvelopeKey": null,
119080
119506
  "params": [
119081
119507
  {
119082
119508
  "name": "doc",
@@ -119398,6 +119824,7 @@ const CONTRACT = {
119398
119824
  "description": "Remove data binding metadata from a content control.",
119399
119825
  "requiresDocumentContext": true,
119400
119826
  "docRequirement": "optional",
119827
+ "responseEnvelopeKey": null,
119401
119828
  "params": [
119402
119829
  {
119403
119830
  "name": "doc",
@@ -119689,6 +120116,7 @@ const CONTRACT = {
119689
120116
  "description": "Get the raw sdtPr properties of a content control as a passthrough hash.",
119690
120117
  "requiresDocumentContext": true,
119691
120118
  "docRequirement": "optional",
120119
+ "responseEnvelopeKey": null,
119692
120120
  "params": [
119693
120121
  {
119694
120122
  "name": "doc",
@@ -119799,6 +120227,7 @@ const CONTRACT = {
119799
120227
  "description": "Apply raw XML-level patches to the sdtPr subtree of a content control.",
119800
120228
  "requiresDocumentContext": true,
119801
120229
  "docRequirement": "optional",
120230
+ "responseEnvelopeKey": null,
119802
120231
  "params": [
119803
120232
  {
119804
120233
  "name": "doc",
@@ -120111,6 +120540,7 @@ const CONTRACT = {
120111
120540
  "description": "Validate a content control for Word compatibility issues.",
120112
120541
  "requiresDocumentContext": true,
120113
120542
  "docRequirement": "optional",
120543
+ "responseEnvelopeKey": null,
120114
120544
  "params": [
120115
120545
  {
120116
120546
  "name": "doc",
@@ -120228,6 +120658,7 @@ const CONTRACT = {
120228
120658
  "description": "Normalize a content control to resolve Word compatibility issues.",
120229
120659
  "requiresDocumentContext": true,
120230
120660
  "docRequirement": "optional",
120661
+ "responseEnvelopeKey": null,
120231
120662
  "params": [
120232
120663
  {
120233
120664
  "name": "doc",
@@ -120519,6 +120950,7 @@ const CONTRACT = {
120519
120950
  "description": "Normalize a content control tag between plain-string and JSON-encoded formats.",
120520
120951
  "requiresDocumentContext": true,
120521
120952
  "docRequirement": "optional",
120953
+ "responseEnvelopeKey": null,
120522
120954
  "params": [
120523
120955
  {
120524
120956
  "name": "doc",
@@ -120811,6 +121243,7 @@ const CONTRACT = {
120811
121243
  "description": "Set or clear the multiline attribute on a plain-text content control.",
120812
121244
  "requiresDocumentContext": true,
120813
121245
  "docRequirement": "optional",
121246
+ "responseEnvelopeKey": null,
120814
121247
  "params": [
120815
121248
  {
120816
121249
  "name": "doc",
@@ -121113,6 +121546,7 @@ const CONTRACT = {
121113
121546
  "description": "Set the text value of a plain-text content control.",
121114
121547
  "requiresDocumentContext": true,
121115
121548
  "docRequirement": "optional",
121549
+ "responseEnvelopeKey": null,
121116
121550
  "params": [
121117
121551
  {
121118
121552
  "name": "doc",
@@ -121415,6 +121849,7 @@ const CONTRACT = {
121415
121849
  "description": "Clear the text value of a plain-text content control.",
121416
121850
  "requiresDocumentContext": true,
121417
121851
  "docRequirement": "optional",
121852
+ "responseEnvelopeKey": null,
121418
121853
  "params": [
121419
121854
  {
121420
121855
  "name": "doc",
@@ -121707,6 +122142,7 @@ const CONTRACT = {
121707
122142
  "description": "Set the date value of a date content control.",
121708
122143
  "requiresDocumentContext": true,
121709
122144
  "docRequirement": "optional",
122145
+ "responseEnvelopeKey": null,
121710
122146
  "params": [
121711
122147
  {
121712
122148
  "name": "doc",
@@ -122009,6 +122445,7 @@ const CONTRACT = {
122009
122445
  "description": "Clear the date value of a date content control.",
122010
122446
  "requiresDocumentContext": true,
122011
122447
  "docRequirement": "optional",
122448
+ "responseEnvelopeKey": null,
122012
122449
  "params": [
122013
122450
  {
122014
122451
  "name": "doc",
@@ -122301,6 +122738,7 @@ const CONTRACT = {
122301
122738
  "description": "Set the display format string for a date content control.",
122302
122739
  "requiresDocumentContext": true,
122303
122740
  "docRequirement": "optional",
122741
+ "responseEnvelopeKey": null,
122304
122742
  "params": [
122305
122743
  {
122306
122744
  "name": "doc",
@@ -122603,6 +123041,7 @@ const CONTRACT = {
122603
123041
  "description": "Set the display locale for a date content control.",
122604
123042
  "requiresDocumentContext": true,
122605
123043
  "docRequirement": "optional",
123044
+ "responseEnvelopeKey": null,
122606
123045
  "params": [
122607
123046
  {
122608
123047
  "name": "doc",
@@ -122905,6 +123344,7 @@ const CONTRACT = {
122905
123344
  "description": "Set the XML storage format for a date content control.",
122906
123345
  "requiresDocumentContext": true,
122907
123346
  "docRequirement": "optional",
123347
+ "responseEnvelopeKey": null,
122908
123348
  "params": [
122909
123349
  {
122910
123350
  "name": "doc",
@@ -123207,6 +123647,7 @@ const CONTRACT = {
123207
123647
  "description": "Set the calendar type for a date content control.",
123208
123648
  "requiresDocumentContext": true,
123209
123649
  "docRequirement": "optional",
123650
+ "responseEnvelopeKey": null,
123210
123651
  "params": [
123211
123652
  {
123212
123653
  "name": "doc",
@@ -123509,6 +123950,7 @@ const CONTRACT = {
123509
123950
  "description": "Get the checked state of a checkbox content control.",
123510
123951
  "requiresDocumentContext": true,
123511
123952
  "docRequirement": "optional",
123953
+ "responseEnvelopeKey": null,
123512
123954
  "params": [
123513
123955
  {
123514
123956
  "name": "doc",
@@ -123620,6 +124062,7 @@ const CONTRACT = {
123620
124062
  "description": "Set the checked state of a checkbox content control.",
123621
124063
  "requiresDocumentContext": true,
123622
124064
  "docRequirement": "optional",
124065
+ "responseEnvelopeKey": null,
123623
124066
  "params": [
123624
124067
  {
123625
124068
  "name": "doc",
@@ -123922,6 +124365,7 @@ const CONTRACT = {
123922
124365
  "description": "Toggle the checked state of a checkbox content control.",
123923
124366
  "requiresDocumentContext": true,
123924
124367
  "docRequirement": "optional",
124368
+ "responseEnvelopeKey": null,
123925
124369
  "params": [
123926
124370
  {
123927
124371
  "name": "doc",
@@ -124214,6 +124658,7 @@ const CONTRACT = {
124214
124658
  "description": "Set the checked and unchecked symbol glyphs for a checkbox content control.",
124215
124659
  "requiresDocumentContext": true,
124216
124660
  "docRequirement": "optional",
124661
+ "responseEnvelopeKey": null,
124217
124662
  "params": [
124218
124663
  {
124219
124664
  "name": "doc",
@@ -124536,6 +124981,7 @@ const CONTRACT = {
124536
124981
  "description": "Get the list items and selected value of a comboBox or dropDownList content control.",
124537
124982
  "requiresDocumentContext": true,
124538
124983
  "docRequirement": "optional",
124984
+ "responseEnvelopeKey": null,
124539
124985
  "params": [
124540
124986
  {
124541
124987
  "name": "doc",
@@ -124653,6 +125099,7 @@ const CONTRACT = {
124653
125099
  "description": "Replace the list items of a comboBox or dropDownList content control.",
124654
125100
  "requiresDocumentContext": true,
124655
125101
  "docRequirement": "optional",
125102
+ "responseEnvelopeKey": null,
124656
125103
  "params": [
124657
125104
  {
124658
125105
  "name": "doc",
@@ -124966,6 +125413,7 @@ const CONTRACT = {
124966
125413
  "description": "Set the selected value of a comboBox or dropDownList content control.",
124967
125414
  "requiresDocumentContext": true,
124968
125415
  "docRequirement": "optional",
125416
+ "responseEnvelopeKey": null,
124969
125417
  "params": [
124970
125418
  {
124971
125419
  "name": "doc",
@@ -125268,6 +125716,7 @@ const CONTRACT = {
125268
125716
  "description": "List the repeating section items inside a repeating section content control.",
125269
125717
  "requiresDocumentContext": true,
125270
125718
  "docRequirement": "optional",
125719
+ "responseEnvelopeKey": null,
125271
125720
  "params": [
125272
125721
  {
125273
125722
  "name": "doc",
@@ -125386,6 +125835,7 @@ const CONTRACT = {
125386
125835
  "description": "Insert a new item before a specific index in a repeating section.",
125387
125836
  "requiresDocumentContext": true,
125388
125837
  "docRequirement": "optional",
125838
+ "responseEnvelopeKey": null,
125389
125839
  "params": [
125390
125840
  {
125391
125841
  "name": "doc",
@@ -125688,6 +126138,7 @@ const CONTRACT = {
125688
126138
  "description": "Insert a new item after a specific index in a repeating section.",
125689
126139
  "requiresDocumentContext": true,
125690
126140
  "docRequirement": "optional",
126141
+ "responseEnvelopeKey": null,
125691
126142
  "params": [
125692
126143
  {
125693
126144
  "name": "doc",
@@ -125990,6 +126441,7 @@ const CONTRACT = {
125990
126441
  "description": "Clone a repeating section item at the given index. Cloned SDTs receive new IDs.",
125991
126442
  "requiresDocumentContext": true,
125992
126443
  "docRequirement": "optional",
126444
+ "responseEnvelopeKey": null,
125993
126445
  "params": [
125994
126446
  {
125995
126447
  "name": "doc",
@@ -126292,6 +126744,7 @@ const CONTRACT = {
126292
126744
  "description": "Delete a repeating section item at the given index.",
126293
126745
  "requiresDocumentContext": true,
126294
126746
  "docRequirement": "optional",
126747
+ "responseEnvelopeKey": null,
126295
126748
  "params": [
126296
126749
  {
126297
126750
  "name": "doc",
@@ -126594,6 +127047,7 @@ const CONTRACT = {
126594
127047
  "description": "Set the allowInsertDelete flag on a repeating section.",
126595
127048
  "requiresDocumentContext": true,
126596
127049
  "docRequirement": "optional",
127050
+ "responseEnvelopeKey": null,
126597
127051
  "params": [
126598
127052
  {
126599
127053
  "name": "doc",
@@ -126896,6 +127350,7 @@ const CONTRACT = {
126896
127350
  "description": "Wrap a content control inside a new group content control. Always nests; not idempotent.",
126897
127351
  "requiresDocumentContext": true,
126898
127352
  "docRequirement": "optional",
127353
+ "responseEnvelopeKey": null,
126899
127354
  "params": [
126900
127355
  {
126901
127356
  "name": "doc",
@@ -127188,6 +127643,7 @@ const CONTRACT = {
127188
127643
  "description": "Remove the group designation from a group content control.",
127189
127644
  "requiresDocumentContext": true,
127190
127645
  "docRequirement": "optional",
127646
+ "responseEnvelopeKey": null,
127191
127647
  "params": [
127192
127648
  {
127193
127649
  "name": "doc",
@@ -127479,6 +127935,7 @@ const CONTRACT = {
127479
127935
  "description": "List all bookmarks in the document.",
127480
127936
  "requiresDocumentContext": true,
127481
127937
  "docRequirement": "optional",
127938
+ "responseEnvelopeKey": null,
127482
127939
  "params": [
127483
127940
  {
127484
127941
  "name": "doc",
@@ -127539,6 +127996,7 @@ const CONTRACT = {
127539
127996
  "description": "Get detailed information about a specific bookmark.",
127540
127997
  "requiresDocumentContext": true,
127541
127998
  "docRequirement": "optional",
127999
+ "responseEnvelopeKey": null,
127542
128000
  "params": [
127543
128001
  {
127544
128002
  "name": "doc",
@@ -127630,6 +128088,7 @@ const CONTRACT = {
127630
128088
  "description": "Insert a new named bookmark at a target location.",
127631
128089
  "requiresDocumentContext": true,
127632
128090
  "docRequirement": "optional",
128091
+ "responseEnvelopeKey": null,
127633
128092
  "params": [
127634
128093
  {
127635
128094
  "name": "doc",
@@ -127940,6 +128399,7 @@ const CONTRACT = {
127940
128399
  "description": "Rename an existing bookmark.",
127941
128400
  "requiresDocumentContext": true,
127942
128401
  "docRequirement": "optional",
128402
+ "responseEnvelopeKey": null,
127943
128403
  "params": [
127944
128404
  {
127945
128405
  "name": "doc",
@@ -128208,6 +128668,7 @@ const CONTRACT = {
128208
128668
  "description": "Remove a bookmark from the document.",
128209
128669
  "requiresDocumentContext": true,
128210
128670
  "docRequirement": "optional",
128671
+ "responseEnvelopeKey": null,
128211
128672
  "params": [
128212
128673
  {
128213
128674
  "name": "doc",
@@ -128465,6 +128926,7 @@ const CONTRACT = {
128465
128926
  "description": "List all footnotes and endnotes in the document.",
128466
128927
  "requiresDocumentContext": true,
128467
128928
  "docRequirement": "optional",
128929
+ "responseEnvelopeKey": null,
128468
128930
  "params": [
128469
128931
  {
128470
128932
  "name": "doc",
@@ -128544,6 +129006,7 @@ const CONTRACT = {
128544
129006
  "description": "Get detailed information about a specific footnote or endnote.",
128545
129007
  "requiresDocumentContext": true,
128546
129008
  "docRequirement": "optional",
129009
+ "responseEnvelopeKey": null,
128547
129010
  "params": [
128548
129011
  {
128549
129012
  "name": "doc",
@@ -128635,6 +129098,7 @@ const CONTRACT = {
128635
129098
  "description": "Insert a new footnote or endnote at a target location.",
128636
129099
  "requiresDocumentContext": true,
128637
129100
  "docRequirement": "optional",
129101
+ "responseEnvelopeKey": null,
128638
129102
  "params": [
128639
129103
  {
128640
129104
  "name": "doc",
@@ -128931,6 +129395,7 @@ const CONTRACT = {
128931
129395
  "description": "Update the content of an existing footnote or endnote.",
128932
129396
  "requiresDocumentContext": true,
128933
129397
  "docRequirement": "optional",
129398
+ "responseEnvelopeKey": null,
128934
129399
  "params": [
128935
129400
  {
128936
129401
  "name": "doc",
@@ -129213,6 +129678,7 @@ const CONTRACT = {
129213
129678
  "description": "Remove a footnote or endnote from the document.",
129214
129679
  "requiresDocumentContext": true,
129215
129680
  "docRequirement": "optional",
129681
+ "responseEnvelopeKey": null,
129216
129682
  "params": [
129217
129683
  {
129218
129684
  "name": "doc",
@@ -129470,6 +129936,7 @@ const CONTRACT = {
129470
129936
  "description": "Configure numbering and placement for footnotes or endnotes.",
129471
129937
  "requiresDocumentContext": true,
129472
129938
  "docRequirement": "optional",
129939
+ "responseEnvelopeKey": null,
129473
129940
  "params": [
129474
129941
  {
129475
129942
  "name": "doc",
@@ -129830,6 +130297,7 @@ const CONTRACT = {
129830
130297
  "description": "List all cross-reference fields in the document.",
129831
130298
  "requiresDocumentContext": true,
129832
130299
  "docRequirement": "optional",
130300
+ "responseEnvelopeKey": null,
129833
130301
  "params": [
129834
130302
  {
129835
130303
  "name": "doc",
@@ -129890,6 +130358,7 @@ const CONTRACT = {
129890
130358
  "description": "Get detailed information about a specific cross-reference field.",
129891
130359
  "requiresDocumentContext": true,
129892
130360
  "docRequirement": "optional",
130361
+ "responseEnvelopeKey": null,
129893
130362
  "params": [
129894
130363
  {
129895
130364
  "name": "doc",
@@ -130017,6 +130486,7 @@ const CONTRACT = {
130017
130486
  "description": "Insert a new cross-reference field at a target location.",
130018
130487
  "requiresDocumentContext": true,
130019
130488
  "docRequirement": "optional",
130489
+ "responseEnvelopeKey": null,
130020
130490
  "params": [
130021
130491
  {
130022
130492
  "name": "doc",
@@ -130549,6 +131019,7 @@ const CONTRACT = {
130549
131019
  "description": "Rebuild (recalculate) a cross-reference field.",
130550
131020
  "requiresDocumentContext": true,
130551
131021
  "docRequirement": "optional",
131022
+ "responseEnvelopeKey": null,
130552
131023
  "params": [
130553
131024
  {
130554
131025
  "name": "doc",
@@ -130842,6 +131313,7 @@ const CONTRACT = {
130842
131313
  "description": "Remove a cross-reference field from the document.",
130843
131314
  "requiresDocumentContext": true,
130844
131315
  "docRequirement": "optional",
131316
+ "responseEnvelopeKey": null,
130845
131317
  "params": [
130846
131318
  {
130847
131319
  "name": "doc",
@@ -131135,6 +131607,7 @@ const CONTRACT = {
131135
131607
  "description": "List all index blocks in the document.",
131136
131608
  "requiresDocumentContext": true,
131137
131609
  "docRequirement": "optional",
131610
+ "responseEnvelopeKey": null,
131138
131611
  "params": [
131139
131612
  {
131140
131613
  "name": "doc",
@@ -131195,6 +131668,7 @@ const CONTRACT = {
131195
131668
  "description": "Get detailed information about a specific index block.",
131196
131669
  "requiresDocumentContext": true,
131197
131670
  "docRequirement": "optional",
131671
+ "responseEnvelopeKey": null,
131198
131672
  "params": [
131199
131673
  {
131200
131674
  "name": "doc",
@@ -131286,6 +131760,7 @@ const CONTRACT = {
131286
131760
  "description": "Insert a new index block at a target location.",
131287
131761
  "requiresDocumentContext": true,
131288
131762
  "docRequirement": "optional",
131763
+ "responseEnvelopeKey": null,
131289
131764
  "params": [
131290
131765
  {
131291
131766
  "name": "doc",
@@ -131810,6 +132285,7 @@ const CONTRACT = {
131810
132285
  "description": "Update the configuration of an existing index block.",
131811
132286
  "requiresDocumentContext": true,
131812
132287
  "docRequirement": "optional",
132288
+ "responseEnvelopeKey": null,
131813
132289
  "params": [
131814
132290
  {
131815
132291
  "name": "doc",
@@ -132171,6 +132647,7 @@ const CONTRACT = {
132171
132647
  "description": "Rebuild (regenerate) an index block from its entries.",
132172
132648
  "requiresDocumentContext": true,
132173
132649
  "docRequirement": "optional",
132650
+ "responseEnvelopeKey": null,
132174
132651
  "params": [
132175
132652
  {
132176
132653
  "name": "doc",
@@ -132428,6 +132905,7 @@ const CONTRACT = {
132428
132905
  "description": "Remove an index block from the document.",
132429
132906
  "requiresDocumentContext": true,
132430
132907
  "docRequirement": "optional",
132908
+ "responseEnvelopeKey": null,
132431
132909
  "params": [
132432
132910
  {
132433
132911
  "name": "doc",
@@ -132686,6 +133164,7 @@ const CONTRACT = {
132686
133164
  "description": "List all XE (index entry) fields in the document.",
132687
133165
  "requiresDocumentContext": true,
132688
133166
  "docRequirement": "optional",
133167
+ "responseEnvelopeKey": null,
132689
133168
  "params": [
132690
133169
  {
132691
133170
  "name": "doc",
@@ -132754,6 +133233,7 @@ const CONTRACT = {
132754
133233
  "description": "Get detailed information about a specific XE index entry.",
132755
133234
  "requiresDocumentContext": true,
132756
133235
  "docRequirement": "optional",
133236
+ "responseEnvelopeKey": null,
132757
133237
  "params": [
132758
133238
  {
132759
133239
  "name": "doc",
@@ -132882,6 +133362,7 @@ const CONTRACT = {
132882
133362
  "description": "Insert a new XE index entry field at a target location.",
132883
133363
  "requiresDocumentContext": true,
132884
133364
  "docRequirement": "optional",
133365
+ "responseEnvelopeKey": null,
132885
133366
  "params": [
132886
133367
  {
132887
133368
  "name": "doc",
@@ -133219,6 +133700,7 @@ const CONTRACT = {
133219
133700
  "description": "Update the properties of an existing XE index entry.",
133220
133701
  "requiresDocumentContext": true,
133221
133702
  "docRequirement": "optional",
133703
+ "responseEnvelopeKey": null,
133222
133704
  "params": [
133223
133705
  {
133224
133706
  "name": "doc",
@@ -133580,6 +134062,7 @@ const CONTRACT = {
133580
134062
  "description": "Remove an XE index entry field from the document.",
133581
134063
  "requiresDocumentContext": true,
133582
134064
  "docRequirement": "optional",
134065
+ "responseEnvelopeKey": null,
133583
134066
  "params": [
133584
134067
  {
133585
134068
  "name": "doc",
@@ -133873,6 +134356,7 @@ const CONTRACT = {
133873
134356
  "description": "List all caption paragraphs in the document.",
133874
134357
  "requiresDocumentContext": true,
133875
134358
  "docRequirement": "optional",
134359
+ "responseEnvelopeKey": null,
133876
134360
  "params": [
133877
134361
  {
133878
134362
  "name": "doc",
@@ -133939,6 +134423,7 @@ const CONTRACT = {
133939
134423
  "description": "Get detailed information about a specific caption paragraph.",
133940
134424
  "requiresDocumentContext": true,
133941
134425
  "docRequirement": "optional",
134426
+ "responseEnvelopeKey": null,
133942
134427
  "params": [
133943
134428
  {
133944
134429
  "name": "doc",
@@ -134030,6 +134515,7 @@ const CONTRACT = {
134030
134515
  "description": "Insert a new caption paragraph adjacent to a target block.",
134031
134516
  "requiresDocumentContext": true,
134032
134517
  "docRequirement": "optional",
134518
+ "responseEnvelopeKey": null,
134033
134519
  "params": [
134034
134520
  {
134035
134521
  "name": "doc",
@@ -134339,6 +134825,7 @@ const CONTRACT = {
134339
134825
  "description": "Update the text of an existing caption paragraph.",
134340
134826
  "requiresDocumentContext": true,
134341
134827
  "docRequirement": "optional",
134828
+ "responseEnvelopeKey": null,
134342
134829
  "params": [
134343
134830
  {
134344
134831
  "name": "doc",
@@ -134621,6 +135108,7 @@ const CONTRACT = {
134621
135108
  "description": "Remove a caption paragraph from the document.",
134622
135109
  "requiresDocumentContext": true,
134623
135110
  "docRequirement": "optional",
135111
+ "responseEnvelopeKey": null,
134624
135112
  "params": [
134625
135113
  {
134626
135114
  "name": "doc",
@@ -134878,6 +135366,7 @@ const CONTRACT = {
134878
135366
  "description": "Configure numbering format for a caption label.",
134879
135367
  "requiresDocumentContext": true,
134880
135368
  "docRequirement": "optional",
135369
+ "responseEnvelopeKey": null,
134881
135370
  "params": [
134882
135371
  {
134883
135372
  "name": "doc",
@@ -135107,6 +135596,7 @@ const CONTRACT = {
135107
135596
  "description": "List all fields in the document.",
135108
135597
  "requiresDocumentContext": true,
135109
135598
  "docRequirement": "optional",
135599
+ "responseEnvelopeKey": null,
135110
135600
  "params": [
135111
135601
  {
135112
135602
  "name": "doc",
@@ -135167,6 +135657,7 @@ const CONTRACT = {
135167
135657
  "description": "Get detailed information about a specific field.",
135168
135658
  "requiresDocumentContext": true,
135169
135659
  "docRequirement": "optional",
135660
+ "responseEnvelopeKey": null,
135170
135661
  "params": [
135171
135662
  {
135172
135663
  "name": "doc",
@@ -135264,6 +135755,7 @@ const CONTRACT = {
135264
135755
  "description": "Insert a raw field code at a target location.",
135265
135756
  "requiresDocumentContext": true,
135266
135757
  "docRequirement": "optional",
135758
+ "responseEnvelopeKey": null,
135267
135759
  "params": [
135268
135760
  {
135269
135761
  "name": "doc",
@@ -135557,6 +136049,7 @@ const CONTRACT = {
135557
136049
  "description": "Rebuild (recalculate) a field.",
135558
136050
  "requiresDocumentContext": true,
135559
136051
  "docRequirement": "optional",
136052
+ "responseEnvelopeKey": null,
135560
136053
  "params": [
135561
136054
  {
135562
136055
  "name": "doc",
@@ -135826,6 +136319,7 @@ const CONTRACT = {
135826
136319
  "description": "Remove a field from the document.",
135827
136320
  "requiresDocumentContext": true,
135828
136321
  "docRequirement": "optional",
136322
+ "responseEnvelopeKey": null,
135829
136323
  "params": [
135830
136324
  {
135831
136325
  "name": "doc",
@@ -136109,6 +136603,7 @@ const CONTRACT = {
136109
136603
  "description": "List all citation marks in the document.",
136110
136604
  "requiresDocumentContext": true,
136111
136605
  "docRequirement": "optional",
136606
+ "responseEnvelopeKey": null,
136112
136607
  "params": [
136113
136608
  {
136114
136609
  "name": "doc",
@@ -136169,6 +136664,7 @@ const CONTRACT = {
136169
136664
  "description": "Get detailed information about a specific citation mark.",
136170
136665
  "requiresDocumentContext": true,
136171
136666
  "docRequirement": "optional",
136667
+ "responseEnvelopeKey": null,
136172
136668
  "params": [
136173
136669
  {
136174
136670
  "name": "doc",
@@ -136296,6 +136792,7 @@ const CONTRACT = {
136296
136792
  "description": "Insert a new citation mark at a target location.",
136297
136793
  "requiresDocumentContext": true,
136298
136794
  "docRequirement": "optional",
136795
+ "responseEnvelopeKey": null,
136299
136796
  "params": [
136300
136797
  {
136301
136798
  "name": "doc",
@@ -136579,6 +137076,7 @@ const CONTRACT = {
136579
137076
  "description": "Update an existing citation mark's source references.",
136580
137077
  "requiresDocumentContext": true,
136581
137078
  "docRequirement": "optional",
137079
+ "responseEnvelopeKey": null,
136582
137080
  "params": [
136583
137081
  {
136584
137082
  "name": "doc",
@@ -136903,6 +137401,7 @@ const CONTRACT = {
136903
137401
  "description": "Remove a citation mark from the document.",
136904
137402
  "requiresDocumentContext": true,
136905
137403
  "docRequirement": "optional",
137404
+ "responseEnvelopeKey": null,
136906
137405
  "params": [
136907
137406
  {
136908
137407
  "name": "doc",
@@ -137197,6 +137696,7 @@ const CONTRACT = {
137197
137696
  "description": "List all citation sources in the document store.",
137198
137697
  "requiresDocumentContext": true,
137199
137698
  "docRequirement": "optional",
137699
+ "responseEnvelopeKey": null,
137200
137700
  "params": [
137201
137701
  {
137202
137702
  "name": "doc",
@@ -137264,6 +137764,7 @@ const CONTRACT = {
137264
137764
  "description": "Get detailed information about a specific citation source.",
137265
137765
  "requiresDocumentContext": true,
137266
137766
  "docRequirement": "optional",
137767
+ "responseEnvelopeKey": null,
137267
137768
  "params": [
137268
137769
  {
137269
137770
  "name": "doc",
@@ -137356,6 +137857,7 @@ const CONTRACT = {
137356
137857
  "description": "Register a new citation source in the document store.",
137357
137858
  "requiresDocumentContext": true,
137358
137859
  "docRequirement": "optional",
137860
+ "responseEnvelopeKey": null,
137359
137861
  "params": [
137360
137862
  {
137361
137863
  "name": "doc",
@@ -137856,6 +138358,7 @@ const CONTRACT = {
137856
138358
  "description": "Update the fields of an existing citation source.",
137857
138359
  "requiresDocumentContext": true,
137858
138360
  "docRequirement": "optional",
138361
+ "responseEnvelopeKey": null,
137859
138362
  "params": [
137860
138363
  {
137861
138364
  "name": "doc",
@@ -138340,6 +138843,7 @@ const CONTRACT = {
138340
138843
  "description": "Remove a citation source from the document store.",
138341
138844
  "requiresDocumentContext": true,
138342
138845
  "docRequirement": "optional",
138846
+ "responseEnvelopeKey": null,
138343
138847
  "params": [
138344
138848
  {
138345
138849
  "name": "doc",
@@ -138598,6 +139102,7 @@ const CONTRACT = {
138598
139102
  "description": "Get information about the bibliography block.",
138599
139103
  "requiresDocumentContext": true,
138600
139104
  "docRequirement": "optional",
139105
+ "responseEnvelopeKey": null,
138601
139106
  "params": [
138602
139107
  {
138603
139108
  "name": "doc",
@@ -138690,6 +139195,7 @@ const CONTRACT = {
138690
139195
  "description": "Insert a bibliography block at a target location.",
138691
139196
  "requiresDocumentContext": true,
138692
139197
  "docRequirement": "optional",
139198
+ "responseEnvelopeKey": null,
138693
139199
  "params": [
138694
139200
  {
138695
139201
  "name": "doc",
@@ -139121,6 +139627,7 @@ const CONTRACT = {
139121
139627
  "description": "Rebuild the bibliography from current sources.",
139122
139628
  "requiresDocumentContext": true,
139123
139629
  "docRequirement": "optional",
139630
+ "responseEnvelopeKey": null,
139124
139631
  "params": [
139125
139632
  {
139126
139633
  "name": "doc",
@@ -139379,6 +139886,7 @@ const CONTRACT = {
139379
139886
  "description": "Configure the bibliography style.",
139380
139887
  "requiresDocumentContext": true,
139381
139888
  "docRequirement": "optional",
139889
+ "responseEnvelopeKey": null,
139382
139890
  "params": [
139383
139891
  {
139384
139892
  "name": "doc",
@@ -139647,6 +140155,7 @@ const CONTRACT = {
139647
140155
  "description": "Remove the bibliography block from the document.",
139648
140156
  "requiresDocumentContext": true,
139649
140157
  "docRequirement": "optional",
140158
+ "responseEnvelopeKey": null,
139650
140159
  "params": [
139651
140160
  {
139652
140161
  "name": "doc",
@@ -139904,6 +140413,7 @@ const CONTRACT = {
139904
140413
  "description": "List all table-of-authorities blocks in the document.",
139905
140414
  "requiresDocumentContext": true,
139906
140415
  "docRequirement": "optional",
140416
+ "responseEnvelopeKey": null,
139907
140417
  "params": [
139908
140418
  {
139909
140419
  "name": "doc",
@@ -139964,6 +140474,7 @@ const CONTRACT = {
139964
140474
  "description": "Get detailed information about a specific table-of-authorities block.",
139965
140475
  "requiresDocumentContext": true,
139966
140476
  "docRequirement": "optional",
140477
+ "responseEnvelopeKey": null,
139967
140478
  "params": [
139968
140479
  {
139969
140480
  "name": "doc",
@@ -140055,6 +140566,7 @@ const CONTRACT = {
140055
140566
  "description": "Insert a new table-of-authorities block at a target location.",
140056
140567
  "requiresDocumentContext": true,
140057
140568
  "docRequirement": "optional",
140569
+ "responseEnvelopeKey": null,
140058
140570
  "params": [
140059
140571
  {
140060
140572
  "name": "doc",
@@ -140530,6 +141042,7 @@ const CONTRACT = {
140530
141042
  "description": "Update the configuration of an existing table-of-authorities block.",
140531
141043
  "requiresDocumentContext": true,
140532
141044
  "docRequirement": "optional",
141045
+ "responseEnvelopeKey": null,
140533
141046
  "params": [
140534
141047
  {
140535
141048
  "name": "doc",
@@ -140842,6 +141355,7 @@ const CONTRACT = {
140842
141355
  "description": "Rebuild a table-of-authorities block from its entries.",
140843
141356
  "requiresDocumentContext": true,
140844
141357
  "docRequirement": "optional",
141358
+ "responseEnvelopeKey": null,
140845
141359
  "params": [
140846
141360
  {
140847
141361
  "name": "doc",
@@ -141099,6 +141613,7 @@ const CONTRACT = {
141099
141613
  "description": "Remove a table-of-authorities block from the document.",
141100
141614
  "requiresDocumentContext": true,
141101
141615
  "docRequirement": "optional",
141616
+ "responseEnvelopeKey": null,
141102
141617
  "params": [
141103
141618
  {
141104
141619
  "name": "doc",
@@ -141357,6 +141872,7 @@ const CONTRACT = {
141357
141872
  "description": "List all TA (authority entry) fields in the document.",
141358
141873
  "requiresDocumentContext": true,
141359
141874
  "docRequirement": "optional",
141875
+ "responseEnvelopeKey": null,
141360
141876
  "params": [
141361
141877
  {
141362
141878
  "name": "doc",
@@ -141442,6 +141958,7 @@ const CONTRACT = {
141442
141958
  "description": "Get detailed information about a specific TA authority entry.",
141443
141959
  "requiresDocumentContext": true,
141444
141960
  "docRequirement": "optional",
141961
+ "responseEnvelopeKey": null,
141445
141962
  "params": [
141446
141963
  {
141447
141964
  "name": "doc",
@@ -141570,6 +142087,7 @@ const CONTRACT = {
141570
142087
  "description": "Insert a new TA authority entry field at a target location.",
141571
142088
  "requiresDocumentContext": true,
141572
142089
  "docRequirement": "optional",
142090
+ "responseEnvelopeKey": null,
141573
142091
  "params": [
141574
142092
  {
141575
142093
  "name": "doc",
@@ -141905,6 +142423,7 @@ const CONTRACT = {
141905
142423
  "description": "Update the properties of an existing TA authority entry.",
141906
142424
  "requiresDocumentContext": true,
141907
142425
  "docRequirement": "optional",
142426
+ "responseEnvelopeKey": null,
141908
142427
  "params": [
141909
142428
  {
141910
142429
  "name": "doc",
@@ -142262,6 +142781,7 @@ const CONTRACT = {
142262
142781
  "description": "Remove a TA authority entry field from the document.",
142263
142782
  "requiresDocumentContext": true,
142264
142783
  "docRequirement": "optional",
142784
+ "responseEnvelopeKey": null,
142265
142785
  "params": [
142266
142786
  {
142267
142787
  "name": "doc",
@@ -142555,6 +143075,7 @@ const CONTRACT = {
142555
143075
  "description": "Capture the current document's diffable state as a versioned snapshot. v1 covers body, comments, styles, and numbering. Header/footer content is not included.",
142556
143076
  "requiresDocumentContext": true,
142557
143077
  "docRequirement": "optional",
143078
+ "responseEnvelopeKey": "snapshot",
142558
143079
  "params": [
142559
143080
  {
142560
143081
  "name": "doc",
@@ -142654,6 +143175,7 @@ const CONTRACT = {
142654
143175
  "description": "Compare the current document (base) against a previously captured target snapshot. Returns a versioned diff payload describing the changes from base to target.",
142655
143176
  "requiresDocumentContext": true,
142656
143177
  "docRequirement": "optional",
143178
+ "responseEnvelopeKey": "diff",
142657
143179
  "params": [
142658
143180
  {
142659
143181
  "name": "doc",
@@ -142963,6 +143485,7 @@ const CONTRACT = {
142963
143485
  "description": "Apply a previously computed diff payload to the current document. The document fingerprint must match the diff base fingerprint. Tracked mode governs body content only; styles, numbering, and comments are always applied directly.",
142964
143486
  "requiresDocumentContext": true,
142965
143487
  "docRequirement": "optional",
143488
+ "responseEnvelopeKey": "result",
142966
143489
  "params": [
142967
143490
  {
142968
143491
  "name": "doc",
@@ -143602,6 +144125,7 @@ const CONTRACT = {
143602
144125
  "description": "Open a document and create a persistent editing session. Optionally override the document body with contentOverride + overrideType (markdown, html, or text).",
143603
144126
  "requiresDocumentContext": false,
143604
144127
  "docRequirement": "none",
144128
+ "responseEnvelopeKey": null,
143605
144129
  "params": [
143606
144130
  {
143607
144131
  "name": "doc",
@@ -143619,7 +144143,148 @@ const CONTRACT = {
143619
144143
  "name": "collaboration",
143620
144144
  "kind": "jsonFlag",
143621
144145
  "type": "json",
143622
- "flag": "collaboration-json"
144146
+ "flag": "collaboration-json",
144147
+ "schema": {
144148
+ "oneOf": [
144149
+ {
144150
+ "type": "object",
144151
+ "description": "WebSocket-based collaboration (y-websocket or Hocuspocus).",
144152
+ "properties": {
144153
+ "providerType": {
144154
+ "type": "string",
144155
+ "enum": [
144156
+ "y-websocket",
144157
+ "hocuspocus"
144158
+ ],
144159
+ "description": "Collaboration provider."
144160
+ },
144161
+ "url": {
144162
+ "type": "string",
144163
+ "description": "WebSocket server URL."
144164
+ },
144165
+ "documentId": {
144166
+ "type": "string",
144167
+ "description": "Room/document identifier. Defaults to session ID if omitted."
144168
+ },
144169
+ "tokenEnv": {
144170
+ "type": "string",
144171
+ "description": "Environment variable name containing the auth token."
144172
+ },
144173
+ "syncTimeoutMs": {
144174
+ "type": "number",
144175
+ "description": "Max time (ms) to wait for initial sync."
144176
+ },
144177
+ "onMissing": {
144178
+ "type": "string",
144179
+ "enum": [
144180
+ "seedFromDoc",
144181
+ "blank",
144182
+ "error"
144183
+ ],
144184
+ "description": "What to do when the remote room is empty."
144185
+ },
144186
+ "bootstrapSettlingMs": {
144187
+ "type": "number",
144188
+ "description": "Time (ms) to wait for bootstrap claim propagation."
144189
+ }
144190
+ },
144191
+ "required": [
144192
+ "providerType",
144193
+ "url"
144194
+ ]
144195
+ },
144196
+ {
144197
+ "type": "object",
144198
+ "description": "Liveblocks collaboration with a public API key.",
144199
+ "properties": {
144200
+ "providerType": {
144201
+ "type": "string",
144202
+ "enum": [
144203
+ "liveblocks"
144204
+ ],
144205
+ "description": "Collaboration provider."
144206
+ },
144207
+ "roomId": {
144208
+ "type": "string",
144209
+ "description": "Liveblocks room identifier."
144210
+ },
144211
+ "publicApiKey": {
144212
+ "type": "string",
144213
+ "description": "Liveblocks public API key (pk_...)."
144214
+ },
144215
+ "syncTimeoutMs": {
144216
+ "type": "number",
144217
+ "description": "Max time (ms) to wait for initial sync."
144218
+ },
144219
+ "onMissing": {
144220
+ "type": "string",
144221
+ "enum": [
144222
+ "seedFromDoc",
144223
+ "blank",
144224
+ "error"
144225
+ ],
144226
+ "description": "What to do when the remote room is empty."
144227
+ },
144228
+ "bootstrapSettlingMs": {
144229
+ "type": "number",
144230
+ "description": "Time (ms) to wait for bootstrap claim propagation."
144231
+ }
144232
+ },
144233
+ "required": [
144234
+ "providerType",
144235
+ "roomId",
144236
+ "publicApiKey"
144237
+ ]
144238
+ },
144239
+ {
144240
+ "type": "object",
144241
+ "description": "Liveblocks collaboration with a custom auth endpoint.",
144242
+ "properties": {
144243
+ "providerType": {
144244
+ "type": "string",
144245
+ "enum": [
144246
+ "liveblocks"
144247
+ ],
144248
+ "description": "Collaboration provider."
144249
+ },
144250
+ "roomId": {
144251
+ "type": "string",
144252
+ "description": "Liveblocks room identifier."
144253
+ },
144254
+ "authEndpoint": {
144255
+ "type": "string",
144256
+ "description": "Absolute URL of the auth endpoint."
144257
+ },
144258
+ "authHeadersEnv": {
144259
+ "type": "string",
144260
+ "description": "Env var name containing JSON headers for the auth endpoint."
144261
+ },
144262
+ "syncTimeoutMs": {
144263
+ "type": "number",
144264
+ "description": "Max time (ms) to wait for initial sync."
144265
+ },
144266
+ "onMissing": {
144267
+ "type": "string",
144268
+ "enum": [
144269
+ "seedFromDoc",
144270
+ "blank",
144271
+ "error"
144272
+ ],
144273
+ "description": "What to do when the remote room is empty."
144274
+ },
144275
+ "bootstrapSettlingMs": {
144276
+ "type": "number",
144277
+ "description": "Time (ms) to wait for bootstrap claim propagation."
144278
+ }
144279
+ },
144280
+ "required": [
144281
+ "providerType",
144282
+ "roomId",
144283
+ "authEndpoint"
144284
+ ]
144285
+ }
144286
+ ]
144287
+ }
143623
144288
  },
143624
144289
  {
143625
144290
  "name": "collabDocumentId",
@@ -143709,14 +144374,28 @@ const CONTRACT = {
143709
144374
  },
143710
144375
  "collaboration": {
143711
144376
  "type": "object",
144377
+ "description": "Collaboration summary (auth config redacted).",
143712
144378
  "properties": {
144379
+ "providerType": {
144380
+ "type": "string",
144381
+ "enum": [
144382
+ "y-websocket",
144383
+ "hocuspocus",
144384
+ "liveblocks"
144385
+ ]
144386
+ },
143713
144387
  "documentId": {
143714
144388
  "type": "string"
143715
144389
  },
143716
144390
  "url": {
143717
- "type": "string"
144391
+ "type": "string",
144392
+ "description": "WebSocket URL (websocket providers only)."
143718
144393
  }
143719
- }
144394
+ },
144395
+ "required": [
144396
+ "providerType",
144397
+ "documentId"
144398
+ ]
143720
144399
  },
143721
144400
  "bootstrap": {
143722
144401
  "type": "object",
@@ -143757,6 +144436,7 @@ const CONTRACT = {
143757
144436
  "description": "Save the current session to the original file or a new path.",
143758
144437
  "requiresDocumentContext": false,
143759
144438
  "docRequirement": "none",
144439
+ "responseEnvelopeKey": null,
143760
144440
  "params": [
143761
144441
  {
143762
144442
  "name": "sessionId",
@@ -143858,6 +144538,7 @@ const CONTRACT = {
143858
144538
  "description": "Close the active editing session and clean up resources.",
143859
144539
  "requiresDocumentContext": false,
143860
144540
  "docRequirement": "none",
144541
+ "responseEnvelopeKey": null,
143861
144542
  "params": [
143862
144543
  {
143863
144544
  "name": "sessionId",
@@ -143930,6 +144611,7 @@ const CONTRACT = {
143930
144611
  "description": "Show the current session status and document metadata.",
143931
144612
  "requiresDocumentContext": false,
143932
144613
  "docRequirement": "none",
144614
+ "responseEnvelopeKey": null,
143933
144615
  "params": [
143934
144616
  {
143935
144617
  "name": "sessionId",
@@ -143997,14 +144679,28 @@ const CONTRACT = {
143997
144679
  },
143998
144680
  "collaboration": {
143999
144681
  "type": "object",
144682
+ "description": "Collaboration summary (auth config redacted).",
144000
144683
  "properties": {
144684
+ "providerType": {
144685
+ "type": "string",
144686
+ "enum": [
144687
+ "y-websocket",
144688
+ "hocuspocus",
144689
+ "liveblocks"
144690
+ ]
144691
+ },
144001
144692
  "documentId": {
144002
144693
  "type": "string"
144003
144694
  },
144004
144695
  "url": {
144005
- "type": "string"
144696
+ "type": "string",
144697
+ "description": "WebSocket URL (websocket providers only)."
144006
144698
  }
144007
- }
144699
+ },
144700
+ "required": [
144701
+ "providerType",
144702
+ "documentId"
144703
+ ]
144008
144704
  },
144009
144705
  "openedAt": {
144010
144706
  "type": "string"
@@ -144032,6 +144728,7 @@ const CONTRACT = {
144032
144728
  "description": "List all available CLI operations and contract metadata.",
144033
144729
  "requiresDocumentContext": false,
144034
144730
  "docRequirement": "none",
144731
+ "responseEnvelopeKey": null,
144035
144732
  "params": [],
144036
144733
  "constraints": null,
144037
144734
  "mutates": false,
@@ -144083,6 +144780,7 @@ const CONTRACT = {
144083
144780
  "description": "Show detailed metadata for a single CLI operation.",
144084
144781
  "requiresDocumentContext": false,
144085
144782
  "docRequirement": "none",
144783
+ "responseEnvelopeKey": null,
144086
144784
  "params": [
144087
144785
  {
144088
144786
  "name": "operationId",
@@ -144134,6 +144832,7 @@ const CONTRACT = {
144134
144832
  "description": "List all active editing sessions.",
144135
144833
  "requiresDocumentContext": false,
144136
144834
  "docRequirement": "none",
144835
+ "responseEnvelopeKey": null,
144137
144836
  "params": [],
144138
144837
  "constraints": null,
144139
144838
  "mutates": false,
@@ -144162,6 +144861,31 @@ const CONTRACT = {
144162
144861
  },
144163
144862
  "revision": {
144164
144863
  "type": "number"
144864
+ },
144865
+ "collaboration": {
144866
+ "type": "object",
144867
+ "description": "Collaboration summary (auth config redacted).",
144868
+ "properties": {
144869
+ "providerType": {
144870
+ "type": "string",
144871
+ "enum": [
144872
+ "y-websocket",
144873
+ "hocuspocus",
144874
+ "liveblocks"
144875
+ ]
144876
+ },
144877
+ "documentId": {
144878
+ "type": "string"
144879
+ },
144880
+ "url": {
144881
+ "type": "string",
144882
+ "description": "WebSocket URL (websocket providers only)."
144883
+ }
144884
+ },
144885
+ "required": [
144886
+ "providerType",
144887
+ "documentId"
144888
+ ]
144165
144889
  }
144166
144890
  }
144167
144891
  }
@@ -144184,6 +144908,7 @@ const CONTRACT = {
144184
144908
  "description": "Persist the current session state.",
144185
144909
  "requiresDocumentContext": false,
144186
144910
  "docRequirement": "none",
144911
+ "responseEnvelopeKey": null,
144187
144912
  "params": [
144188
144913
  {
144189
144914
  "name": "sessionId",
@@ -144273,6 +144998,7 @@ const CONTRACT = {
144273
144998
  "description": "Close a specific editing session by ID.",
144274
144999
  "requiresDocumentContext": false,
144275
145000
  "docRequirement": "none",
145001
+ "responseEnvelopeKey": null,
144276
145002
  "params": [
144277
145003
  {
144278
145004
  "name": "sessionId",
@@ -144347,6 +145073,7 @@ const CONTRACT = {
144347
145073
  "description": "Set the default session for subsequent commands.",
144348
145074
  "requiresDocumentContext": false,
144349
145075
  "docRequirement": "none",
145076
+ "responseEnvelopeKey": null,
144350
145077
  "params": [
144351
145078
  {
144352
145079
  "name": "sessionId",