@superdoc/sdk 2.21.0-next.5 → 2.21.0-next.7

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.
@@ -1546,7 +1546,55 @@ export interface DocInsertParams {
1546
1546
  requestSha256: string;
1547
1547
  analysisSha256: string;
1548
1548
  };
1549
+ value?: string;
1550
+ type?: "ooxml" | "text" | "markdown" | "html";
1551
+ namespaces?: Record<string, unknown>;
1552
+ sourcePartUri?: string;
1553
+ dependencies?: Array<{
1554
+ sourcePartUri: string;
1555
+ relationshipId: string;
1556
+ relationshipType: string;
1557
+ target: string;
1558
+ targetMode: "Internal" | "External";
1559
+ contentType: string | unknown;
1560
+ dataBase64?: string;
1561
+ }>;
1549
1562
  target?: ({
1563
+ kind: "block";
1564
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
1565
+ nodeId: string;
1566
+ story?: ({
1567
+ kind: "story";
1568
+ storyType: "body";
1569
+ }) | ({
1570
+ kind: "story";
1571
+ storyType: "headerFooterSlot";
1572
+ section: {
1573
+ kind: "section";
1574
+ sectionId: string;
1575
+ };
1576
+ headerFooterKind: "header" | "footer";
1577
+ variant: "default" | "first" | "even";
1578
+ resolution?: "effective" | "explicit";
1579
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
1580
+ }) | ({
1581
+ kind: "story";
1582
+ storyType: "headerFooterPart";
1583
+ refId: string;
1584
+ }) | ({
1585
+ kind: "story";
1586
+ storyType: "footnote";
1587
+ noteId: string;
1588
+ }) | ({
1589
+ kind: "story";
1590
+ storyType: "endnote";
1591
+ noteId: string;
1592
+ }) | ({
1593
+ kind: "story";
1594
+ storyType: "textbox";
1595
+ textboxId: string;
1596
+ });
1597
+ }) | ({
1550
1598
  kind: "selection";
1551
1599
  start: ({
1552
1600
  kind: "text";
@@ -1730,41 +1778,6 @@ export interface DocInsertParams {
1730
1778
  textboxId: string;
1731
1779
  });
1732
1780
  coordinateSpace?: "visible" | "tracked";
1733
- }) | ({
1734
- kind: "block";
1735
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
1736
- nodeId: string;
1737
- story?: ({
1738
- kind: "story";
1739
- storyType: "body";
1740
- }) | ({
1741
- kind: "story";
1742
- storyType: "headerFooterSlot";
1743
- section: {
1744
- kind: "section";
1745
- sectionId: string;
1746
- };
1747
- headerFooterKind: "header" | "footer";
1748
- variant: "default" | "first" | "even";
1749
- resolution?: "effective" | "explicit";
1750
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
1751
- }) | ({
1752
- kind: "story";
1753
- storyType: "headerFooterPart";
1754
- refId: string;
1755
- }) | ({
1756
- kind: "story";
1757
- storyType: "footnote";
1758
- noteId: string;
1759
- }) | ({
1760
- kind: "story";
1761
- storyType: "endnote";
1762
- noteId: string;
1763
- }) | ({
1764
- kind: "story";
1765
- storyType: "textbox";
1766
- textboxId: string;
1767
- });
1768
1781
  });
1769
1782
  in?: ({
1770
1783
  kind: "story";
@@ -1797,10 +1810,315 @@ export interface DocInsertParams {
1797
1810
  storyType: "textbox";
1798
1811
  textboxId: string;
1799
1812
  });
1800
- value?: string;
1801
- type?: "text" | "markdown" | "html";
1802
- ref?: string;
1803
1813
  placement?: "before" | "after" | "insideStart" | "insideEnd";
1814
+ capture?: {
1815
+ formatVersion: 1;
1816
+ snapshotId?: string;
1817
+ at: ({
1818
+ kind: "selection";
1819
+ start: ({
1820
+ kind: "text";
1821
+ blockId: string;
1822
+ offset: number;
1823
+ story?: ({
1824
+ kind: "story";
1825
+ storyType: "body";
1826
+ }) | ({
1827
+ kind: "story";
1828
+ storyType: "headerFooterSlot";
1829
+ section: {
1830
+ kind: "section";
1831
+ sectionId: string;
1832
+ };
1833
+ headerFooterKind: "header" | "footer";
1834
+ variant: "default" | "first" | "even";
1835
+ resolution?: "effective" | "explicit";
1836
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
1837
+ }) | ({
1838
+ kind: "story";
1839
+ storyType: "headerFooterPart";
1840
+ refId: string;
1841
+ }) | ({
1842
+ kind: "story";
1843
+ storyType: "footnote";
1844
+ noteId: string;
1845
+ }) | ({
1846
+ kind: "story";
1847
+ storyType: "endnote";
1848
+ noteId: string;
1849
+ }) | ({
1850
+ kind: "story";
1851
+ storyType: "textbox";
1852
+ textboxId: string;
1853
+ });
1854
+ }) | ({
1855
+ kind: "nodeEdge";
1856
+ node: {
1857
+ kind: "block";
1858
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
1859
+ nodeId: string;
1860
+ story?: ({
1861
+ kind: "story";
1862
+ storyType: "body";
1863
+ }) | ({
1864
+ kind: "story";
1865
+ storyType: "headerFooterSlot";
1866
+ section: {
1867
+ kind: "section";
1868
+ sectionId: string;
1869
+ };
1870
+ headerFooterKind: "header" | "footer";
1871
+ variant: "default" | "first" | "even";
1872
+ resolution?: "effective" | "explicit";
1873
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
1874
+ }) | ({
1875
+ kind: "story";
1876
+ storyType: "headerFooterPart";
1877
+ refId: string;
1878
+ }) | ({
1879
+ kind: "story";
1880
+ storyType: "footnote";
1881
+ noteId: string;
1882
+ }) | ({
1883
+ kind: "story";
1884
+ storyType: "endnote";
1885
+ noteId: string;
1886
+ }) | ({
1887
+ kind: "story";
1888
+ storyType: "textbox";
1889
+ textboxId: string;
1890
+ });
1891
+ };
1892
+ edge: "before" | "after";
1893
+ });
1894
+ end: ({
1895
+ kind: "text";
1896
+ blockId: string;
1897
+ offset: number;
1898
+ story?: ({
1899
+ kind: "story";
1900
+ storyType: "body";
1901
+ }) | ({
1902
+ kind: "story";
1903
+ storyType: "headerFooterSlot";
1904
+ section: {
1905
+ kind: "section";
1906
+ sectionId: string;
1907
+ };
1908
+ headerFooterKind: "header" | "footer";
1909
+ variant: "default" | "first" | "even";
1910
+ resolution?: "effective" | "explicit";
1911
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
1912
+ }) | ({
1913
+ kind: "story";
1914
+ storyType: "headerFooterPart";
1915
+ refId: string;
1916
+ }) | ({
1917
+ kind: "story";
1918
+ storyType: "footnote";
1919
+ noteId: string;
1920
+ }) | ({
1921
+ kind: "story";
1922
+ storyType: "endnote";
1923
+ noteId: string;
1924
+ }) | ({
1925
+ kind: "story";
1926
+ storyType: "textbox";
1927
+ textboxId: string;
1928
+ });
1929
+ }) | ({
1930
+ kind: "nodeEdge";
1931
+ node: {
1932
+ kind: "block";
1933
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
1934
+ nodeId: string;
1935
+ story?: ({
1936
+ kind: "story";
1937
+ storyType: "body";
1938
+ }) | ({
1939
+ kind: "story";
1940
+ storyType: "headerFooterSlot";
1941
+ section: {
1942
+ kind: "section";
1943
+ sectionId: string;
1944
+ };
1945
+ headerFooterKind: "header" | "footer";
1946
+ variant: "default" | "first" | "even";
1947
+ resolution?: "effective" | "explicit";
1948
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
1949
+ }) | ({
1950
+ kind: "story";
1951
+ storyType: "headerFooterPart";
1952
+ refId: string;
1953
+ }) | ({
1954
+ kind: "story";
1955
+ storyType: "footnote";
1956
+ noteId: string;
1957
+ }) | ({
1958
+ kind: "story";
1959
+ storyType: "endnote";
1960
+ noteId: string;
1961
+ }) | ({
1962
+ kind: "story";
1963
+ storyType: "textbox";
1964
+ textboxId: string;
1965
+ });
1966
+ };
1967
+ edge: "before" | "after";
1968
+ });
1969
+ story?: ({
1970
+ kind: "story";
1971
+ storyType: "body";
1972
+ }) | ({
1973
+ kind: "story";
1974
+ storyType: "headerFooterSlot";
1975
+ section: {
1976
+ kind: "section";
1977
+ sectionId: string;
1978
+ };
1979
+ headerFooterKind: "header" | "footer";
1980
+ variant: "default" | "first" | "even";
1981
+ resolution?: "effective" | "explicit";
1982
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
1983
+ }) | ({
1984
+ kind: "story";
1985
+ storyType: "headerFooterPart";
1986
+ refId: string;
1987
+ }) | ({
1988
+ kind: "story";
1989
+ storyType: "footnote";
1990
+ noteId: string;
1991
+ }) | ({
1992
+ kind: "story";
1993
+ storyType: "endnote";
1994
+ noteId: string;
1995
+ }) | ({
1996
+ kind: "story";
1997
+ storyType: "textbox";
1998
+ textboxId: string;
1999
+ });
2000
+ coordinateSpace?: "visible" | "tracked";
2001
+ }) | ({
2002
+ kind: "tableCells";
2003
+ selectionMode?: "cells";
2004
+ isRectangular?: true;
2005
+ tableId: string;
2006
+ start: {
2007
+ rowIndex: number;
2008
+ columnIndex: number;
2009
+ };
2010
+ end: {
2011
+ rowIndex: number;
2012
+ columnIndex: number;
2013
+ };
2014
+ story?: ({
2015
+ kind: "story";
2016
+ storyType: "body";
2017
+ }) | ({
2018
+ kind: "story";
2019
+ storyType: "headerFooterSlot";
2020
+ section: {
2021
+ kind: "section";
2022
+ sectionId: string;
2023
+ };
2024
+ headerFooterKind: "header" | "footer";
2025
+ variant: "default" | "first" | "even";
2026
+ resolution?: "effective" | "explicit";
2027
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
2028
+ }) | ({
2029
+ kind: "story";
2030
+ storyType: "headerFooterPart";
2031
+ refId: string;
2032
+ }) | ({
2033
+ kind: "story";
2034
+ storyType: "footnote";
2035
+ noteId: string;
2036
+ }) | ({
2037
+ kind: "story";
2038
+ storyType: "endnote";
2039
+ noteId: string;
2040
+ }) | ({
2041
+ kind: "story";
2042
+ storyType: "textbox";
2043
+ textboxId: string;
2044
+ });
2045
+ });
2046
+ evaluatedRevision: string;
2047
+ fragment: {
2048
+ placement: "inline" | "blocks" | "table";
2049
+ xml: string;
2050
+ namespaces: Record<string, unknown>;
2051
+ table?: {
2052
+ tableId: string;
2053
+ gridColumnCount: number;
2054
+ cells: Array<{
2055
+ rowIndex: number;
2056
+ columnIndex: number;
2057
+ gridSpan: number;
2058
+ vMerge: "none" | "restart" | "continue";
2059
+ }>;
2060
+ };
2061
+ };
2062
+ source: {
2063
+ story: (({
2064
+ kind: "story";
2065
+ storyType: "body";
2066
+ }) | ({
2067
+ kind: "story";
2068
+ storyType: "headerFooterSlot";
2069
+ section: {
2070
+ kind: "section";
2071
+ sectionId: string;
2072
+ };
2073
+ headerFooterKind: "header" | "footer";
2074
+ variant: "default" | "first" | "even";
2075
+ resolution?: "effective" | "explicit";
2076
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
2077
+ }) | ({
2078
+ kind: "story";
2079
+ storyType: "headerFooterPart";
2080
+ refId: string;
2081
+ }) | ({
2082
+ kind: "story";
2083
+ storyType: "footnote";
2084
+ noteId: string;
2085
+ }) | ({
2086
+ kind: "story";
2087
+ storyType: "endnote";
2088
+ noteId: string;
2089
+ }) | ({
2090
+ kind: "story";
2091
+ storyType: "textbox";
2092
+ textboxId: string;
2093
+ })) | unknown;
2094
+ partUri: string;
2095
+ paragraphStyleId: string | unknown;
2096
+ packageRevision?: string;
2097
+ };
2098
+ context: {
2099
+ xml: Array<string>;
2100
+ tableMerges?: Array<{
2101
+ selectedRowIndex: number;
2102
+ columnIndex: number;
2103
+ restartRowIndex: number;
2104
+ restartCellPropertiesXml: string;
2105
+ }>;
2106
+ };
2107
+ dependencies: Array<{
2108
+ sourcePartUri: string;
2109
+ relationshipId: string;
2110
+ relationshipType: string;
2111
+ target: string;
2112
+ targetMode: "Internal" | "External";
2113
+ contentType: string | unknown;
2114
+ dataBase64?: string;
2115
+ }>;
2116
+ diagnostics: Array<{
2117
+ code: string;
2118
+ message: string;
2119
+ }>;
2120
+ };
2121
+ ref?: string;
1804
2122
  content?: Record<string, unknown> | Array<Record<string, unknown>>;
1805
2123
  nestingPolicy?: {
1806
2124
  tables?: "forbid" | "allow";
@@ -1826,7 +2144,44 @@ export interface DocReplaceParams {
1826
2144
  requestSha256: string;
1827
2145
  analysisSha256: string;
1828
2146
  };
2147
+ replaceMode?: "contents";
2148
+ expectedSnapshotId?: string;
1829
2149
  target?: ({
2150
+ kind: "block";
2151
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
2152
+ nodeId: string;
2153
+ story?: ({
2154
+ kind: "story";
2155
+ storyType: "body";
2156
+ }) | ({
2157
+ kind: "story";
2158
+ storyType: "headerFooterSlot";
2159
+ section: {
2160
+ kind: "section";
2161
+ sectionId: string;
2162
+ };
2163
+ headerFooterKind: "header" | "footer";
2164
+ variant: "default" | "first" | "even";
2165
+ resolution?: "effective" | "explicit";
2166
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
2167
+ }) | ({
2168
+ kind: "story";
2169
+ storyType: "headerFooterPart";
2170
+ refId: string;
2171
+ }) | ({
2172
+ kind: "story";
2173
+ storyType: "footnote";
2174
+ noteId: string;
2175
+ }) | ({
2176
+ kind: "story";
2177
+ storyType: "endnote";
2178
+ noteId: string;
2179
+ }) | ({
2180
+ kind: "story";
2181
+ storyType: "textbox";
2182
+ textboxId: string;
2183
+ });
2184
+ }) | ({
1830
2185
  kind: "selection";
1831
2186
  start: ({
1832
2187
  kind: "text";
@@ -1975,120 +2330,404 @@ export interface DocReplaceParams {
1975
2330
  storyType: "textbox";
1976
2331
  textboxId: string;
1977
2332
  });
1978
- };
1979
- edge: "before" | "after";
1980
- });
1981
- story?: ({
1982
- kind: "story";
1983
- storyType: "body";
2333
+ };
2334
+ edge: "before" | "after";
2335
+ });
2336
+ story?: ({
2337
+ kind: "story";
2338
+ storyType: "body";
2339
+ }) | ({
2340
+ kind: "story";
2341
+ storyType: "headerFooterSlot";
2342
+ section: {
2343
+ kind: "section";
2344
+ sectionId: string;
2345
+ };
2346
+ headerFooterKind: "header" | "footer";
2347
+ variant: "default" | "first" | "even";
2348
+ resolution?: "effective" | "explicit";
2349
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
2350
+ }) | ({
2351
+ kind: "story";
2352
+ storyType: "headerFooterPart";
2353
+ refId: string;
2354
+ }) | ({
2355
+ kind: "story";
2356
+ storyType: "footnote";
2357
+ noteId: string;
2358
+ }) | ({
2359
+ kind: "story";
2360
+ storyType: "endnote";
2361
+ noteId: string;
2362
+ }) | ({
2363
+ kind: "story";
2364
+ storyType: "textbox";
2365
+ textboxId: string;
2366
+ });
2367
+ coordinateSpace?: "visible" | "tracked";
2368
+ }) | ({
2369
+ kind: "story";
2370
+ storyType: "body";
2371
+ });
2372
+ text?: string;
2373
+ snapshotId?: string;
2374
+ value?: string;
2375
+ type?: "ooxml" | "html" | "markdown";
2376
+ namespaces?: Record<string, unknown>;
2377
+ sourcePartUri?: string;
2378
+ dependencies?: Array<{
2379
+ sourcePartUri: string;
2380
+ relationshipId: string;
2381
+ relationshipType: string;
2382
+ target: string;
2383
+ targetMode: "Internal" | "External";
2384
+ contentType: string | unknown;
2385
+ dataBase64?: string;
2386
+ }>;
2387
+ in?: ({
2388
+ kind: "story";
2389
+ storyType: "body";
2390
+ }) | ({
2391
+ kind: "story";
2392
+ storyType: "headerFooterSlot";
2393
+ section: {
2394
+ kind: "section";
2395
+ sectionId: string;
2396
+ };
2397
+ headerFooterKind: "header" | "footer";
2398
+ variant: "default" | "first" | "even";
2399
+ resolution?: "effective" | "explicit";
2400
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
2401
+ }) | ({
2402
+ kind: "story";
2403
+ storyType: "headerFooterPart";
2404
+ refId: string;
2405
+ }) | ({
2406
+ kind: "story";
2407
+ storyType: "footnote";
2408
+ noteId: string;
2409
+ }) | ({
2410
+ kind: "story";
2411
+ storyType: "endnote";
2412
+ noteId: string;
2413
+ }) | ({
2414
+ kind: "story";
2415
+ storyType: "textbox";
2416
+ textboxId: string;
2417
+ });
2418
+ nestingPolicy?: {
2419
+ tables?: "forbid" | "allow";
2420
+ };
2421
+ capture?: {
2422
+ formatVersion: 1;
2423
+ snapshotId?: string;
2424
+ at: ({
2425
+ kind: "selection";
2426
+ start: ({
2427
+ kind: "text";
2428
+ blockId: string;
2429
+ offset: number;
2430
+ story?: ({
2431
+ kind: "story";
2432
+ storyType: "body";
2433
+ }) | ({
2434
+ kind: "story";
2435
+ storyType: "headerFooterSlot";
2436
+ section: {
2437
+ kind: "section";
2438
+ sectionId: string;
2439
+ };
2440
+ headerFooterKind: "header" | "footer";
2441
+ variant: "default" | "first" | "even";
2442
+ resolution?: "effective" | "explicit";
2443
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
2444
+ }) | ({
2445
+ kind: "story";
2446
+ storyType: "headerFooterPart";
2447
+ refId: string;
2448
+ }) | ({
2449
+ kind: "story";
2450
+ storyType: "footnote";
2451
+ noteId: string;
2452
+ }) | ({
2453
+ kind: "story";
2454
+ storyType: "endnote";
2455
+ noteId: string;
2456
+ }) | ({
2457
+ kind: "story";
2458
+ storyType: "textbox";
2459
+ textboxId: string;
2460
+ });
2461
+ }) | ({
2462
+ kind: "nodeEdge";
2463
+ node: {
2464
+ kind: "block";
2465
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
2466
+ nodeId: string;
2467
+ story?: ({
2468
+ kind: "story";
2469
+ storyType: "body";
2470
+ }) | ({
2471
+ kind: "story";
2472
+ storyType: "headerFooterSlot";
2473
+ section: {
2474
+ kind: "section";
2475
+ sectionId: string;
2476
+ };
2477
+ headerFooterKind: "header" | "footer";
2478
+ variant: "default" | "first" | "even";
2479
+ resolution?: "effective" | "explicit";
2480
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
2481
+ }) | ({
2482
+ kind: "story";
2483
+ storyType: "headerFooterPart";
2484
+ refId: string;
2485
+ }) | ({
2486
+ kind: "story";
2487
+ storyType: "footnote";
2488
+ noteId: string;
2489
+ }) | ({
2490
+ kind: "story";
2491
+ storyType: "endnote";
2492
+ noteId: string;
2493
+ }) | ({
2494
+ kind: "story";
2495
+ storyType: "textbox";
2496
+ textboxId: string;
2497
+ });
2498
+ };
2499
+ edge: "before" | "after";
2500
+ });
2501
+ end: ({
2502
+ kind: "text";
2503
+ blockId: string;
2504
+ offset: number;
2505
+ story?: ({
2506
+ kind: "story";
2507
+ storyType: "body";
2508
+ }) | ({
2509
+ kind: "story";
2510
+ storyType: "headerFooterSlot";
2511
+ section: {
2512
+ kind: "section";
2513
+ sectionId: string;
2514
+ };
2515
+ headerFooterKind: "header" | "footer";
2516
+ variant: "default" | "first" | "even";
2517
+ resolution?: "effective" | "explicit";
2518
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
2519
+ }) | ({
2520
+ kind: "story";
2521
+ storyType: "headerFooterPart";
2522
+ refId: string;
2523
+ }) | ({
2524
+ kind: "story";
2525
+ storyType: "footnote";
2526
+ noteId: string;
2527
+ }) | ({
2528
+ kind: "story";
2529
+ storyType: "endnote";
2530
+ noteId: string;
2531
+ }) | ({
2532
+ kind: "story";
2533
+ storyType: "textbox";
2534
+ textboxId: string;
2535
+ });
2536
+ }) | ({
2537
+ kind: "nodeEdge";
2538
+ node: {
2539
+ kind: "block";
2540
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
2541
+ nodeId: string;
2542
+ story?: ({
2543
+ kind: "story";
2544
+ storyType: "body";
2545
+ }) | ({
2546
+ kind: "story";
2547
+ storyType: "headerFooterSlot";
2548
+ section: {
2549
+ kind: "section";
2550
+ sectionId: string;
2551
+ };
2552
+ headerFooterKind: "header" | "footer";
2553
+ variant: "default" | "first" | "even";
2554
+ resolution?: "effective" | "explicit";
2555
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
2556
+ }) | ({
2557
+ kind: "story";
2558
+ storyType: "headerFooterPart";
2559
+ refId: string;
2560
+ }) | ({
2561
+ kind: "story";
2562
+ storyType: "footnote";
2563
+ noteId: string;
2564
+ }) | ({
2565
+ kind: "story";
2566
+ storyType: "endnote";
2567
+ noteId: string;
2568
+ }) | ({
2569
+ kind: "story";
2570
+ storyType: "textbox";
2571
+ textboxId: string;
2572
+ });
2573
+ };
2574
+ edge: "before" | "after";
2575
+ });
2576
+ story?: ({
2577
+ kind: "story";
2578
+ storyType: "body";
2579
+ }) | ({
2580
+ kind: "story";
2581
+ storyType: "headerFooterSlot";
2582
+ section: {
2583
+ kind: "section";
2584
+ sectionId: string;
2585
+ };
2586
+ headerFooterKind: "header" | "footer";
2587
+ variant: "default" | "first" | "even";
2588
+ resolution?: "effective" | "explicit";
2589
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
2590
+ }) | ({
2591
+ kind: "story";
2592
+ storyType: "headerFooterPart";
2593
+ refId: string;
2594
+ }) | ({
2595
+ kind: "story";
2596
+ storyType: "footnote";
2597
+ noteId: string;
2598
+ }) | ({
2599
+ kind: "story";
2600
+ storyType: "endnote";
2601
+ noteId: string;
2602
+ }) | ({
2603
+ kind: "story";
2604
+ storyType: "textbox";
2605
+ textboxId: string;
2606
+ });
2607
+ coordinateSpace?: "visible" | "tracked";
1984
2608
  }) | ({
1985
- kind: "story";
1986
- storyType: "headerFooterSlot";
1987
- section: {
1988
- kind: "section";
1989
- sectionId: string;
2609
+ kind: "tableCells";
2610
+ selectionMode?: "cells";
2611
+ isRectangular?: true;
2612
+ tableId: string;
2613
+ start: {
2614
+ rowIndex: number;
2615
+ columnIndex: number;
1990
2616
  };
1991
- headerFooterKind: "header" | "footer";
1992
- variant: "default" | "first" | "even";
1993
- resolution?: "effective" | "explicit";
1994
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
1995
- }) | ({
1996
- kind: "story";
1997
- storyType: "headerFooterPart";
1998
- refId: string;
1999
- }) | ({
2000
- kind: "story";
2001
- storyType: "footnote";
2002
- noteId: string;
2003
- }) | ({
2004
- kind: "story";
2005
- storyType: "endnote";
2006
- noteId: string;
2007
- }) | ({
2008
- kind: "story";
2009
- storyType: "textbox";
2010
- textboxId: string;
2011
- });
2012
- coordinateSpace?: "visible" | "tracked";
2013
- }) | ({
2014
- kind: "story";
2015
- storyType: "body";
2016
- }) | ({
2017
- kind: "block";
2018
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
2019
- nodeId: string;
2020
- story?: ({
2021
- kind: "story";
2022
- storyType: "body";
2023
- }) | ({
2024
- kind: "story";
2025
- storyType: "headerFooterSlot";
2026
- section: {
2027
- kind: "section";
2028
- sectionId: string;
2617
+ end: {
2618
+ rowIndex: number;
2619
+ columnIndex: number;
2029
2620
  };
2030
- headerFooterKind: "header" | "footer";
2031
- variant: "default" | "first" | "even";
2032
- resolution?: "effective" | "explicit";
2033
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
2034
- }) | ({
2035
- kind: "story";
2036
- storyType: "headerFooterPart";
2037
- refId: string;
2038
- }) | ({
2039
- kind: "story";
2040
- storyType: "footnote";
2041
- noteId: string;
2042
- }) | ({
2043
- kind: "story";
2044
- storyType: "endnote";
2045
- noteId: string;
2046
- }) | ({
2047
- kind: "story";
2048
- storyType: "textbox";
2049
- textboxId: string;
2621
+ story?: ({
2622
+ kind: "story";
2623
+ storyType: "body";
2624
+ }) | ({
2625
+ kind: "story";
2626
+ storyType: "headerFooterSlot";
2627
+ section: {
2628
+ kind: "section";
2629
+ sectionId: string;
2630
+ };
2631
+ headerFooterKind: "header" | "footer";
2632
+ variant: "default" | "first" | "even";
2633
+ resolution?: "effective" | "explicit";
2634
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
2635
+ }) | ({
2636
+ kind: "story";
2637
+ storyType: "headerFooterPart";
2638
+ refId: string;
2639
+ }) | ({
2640
+ kind: "story";
2641
+ storyType: "footnote";
2642
+ noteId: string;
2643
+ }) | ({
2644
+ kind: "story";
2645
+ storyType: "endnote";
2646
+ noteId: string;
2647
+ }) | ({
2648
+ kind: "story";
2649
+ storyType: "textbox";
2650
+ textboxId: string;
2651
+ });
2050
2652
  });
2051
- });
2052
- in?: ({
2053
- kind: "story";
2054
- storyType: "body";
2055
- }) | ({
2056
- kind: "story";
2057
- storyType: "headerFooterSlot";
2058
- section: {
2059
- kind: "section";
2060
- sectionId: string;
2653
+ evaluatedRevision: string;
2654
+ fragment: {
2655
+ placement: "inline" | "blocks" | "table";
2656
+ xml: string;
2657
+ namespaces: Record<string, unknown>;
2658
+ table?: {
2659
+ tableId: string;
2660
+ gridColumnCount: number;
2661
+ cells: Array<{
2662
+ rowIndex: number;
2663
+ columnIndex: number;
2664
+ gridSpan: number;
2665
+ vMerge: "none" | "restart" | "continue";
2666
+ }>;
2667
+ };
2061
2668
  };
2062
- headerFooterKind: "header" | "footer";
2063
- variant: "default" | "first" | "even";
2064
- resolution?: "effective" | "explicit";
2065
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
2066
- }) | ({
2067
- kind: "story";
2068
- storyType: "headerFooterPart";
2069
- refId: string;
2070
- }) | ({
2071
- kind: "story";
2072
- storyType: "footnote";
2073
- noteId: string;
2074
- }) | ({
2075
- kind: "story";
2076
- storyType: "endnote";
2077
- noteId: string;
2078
- }) | ({
2079
- kind: "story";
2080
- storyType: "textbox";
2081
- textboxId: string;
2082
- });
2083
- text?: string;
2669
+ source: {
2670
+ story: (({
2671
+ kind: "story";
2672
+ storyType: "body";
2673
+ }) | ({
2674
+ kind: "story";
2675
+ storyType: "headerFooterSlot";
2676
+ section: {
2677
+ kind: "section";
2678
+ sectionId: string;
2679
+ };
2680
+ headerFooterKind: "header" | "footer";
2681
+ variant: "default" | "first" | "even";
2682
+ resolution?: "effective" | "explicit";
2683
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
2684
+ }) | ({
2685
+ kind: "story";
2686
+ storyType: "headerFooterPart";
2687
+ refId: string;
2688
+ }) | ({
2689
+ kind: "story";
2690
+ storyType: "footnote";
2691
+ noteId: string;
2692
+ }) | ({
2693
+ kind: "story";
2694
+ storyType: "endnote";
2695
+ noteId: string;
2696
+ }) | ({
2697
+ kind: "story";
2698
+ storyType: "textbox";
2699
+ textboxId: string;
2700
+ })) | unknown;
2701
+ partUri: string;
2702
+ paragraphStyleId: string | unknown;
2703
+ packageRevision?: string;
2704
+ };
2705
+ context: {
2706
+ xml: Array<string>;
2707
+ tableMerges?: Array<{
2708
+ selectedRowIndex: number;
2709
+ columnIndex: number;
2710
+ restartRowIndex: number;
2711
+ restartCellPropertiesXml: string;
2712
+ }>;
2713
+ };
2714
+ dependencies: Array<{
2715
+ sourcePartUri: string;
2716
+ relationshipId: string;
2717
+ relationshipType: string;
2718
+ target: string;
2719
+ targetMode: "Internal" | "External";
2720
+ contentType: string | unknown;
2721
+ dataBase64?: string;
2722
+ }>;
2723
+ diagnostics: Array<{
2724
+ code: string;
2725
+ message: string;
2726
+ }>;
2727
+ };
2084
2728
  expectedText?: string;
2085
2729
  ref?: string;
2086
2730
  content?: Record<string, unknown> | Array<Record<string, unknown>>;
2087
- nestingPolicy?: {
2088
- tables?: "forbid" | "allow";
2089
- };
2090
- value?: string;
2091
- type?: "html" | "markdown";
2092
2731
  blockId?: string;
2093
2732
  start?: number;
2094
2733
  end?: number;
@@ -19168,9 +19807,15 @@ export interface DocSelectionCurrentParams {
19168
19807
  sessionId?: string;
19169
19808
  includeText?: boolean;
19170
19809
  }
19810
+ export interface DocSelectionReleaseSnapshotParams {
19811
+ doc?: string;
19812
+ sessionId?: string;
19813
+ snapshotId: string;
19814
+ }
19171
19815
  export interface DocSelectionExtractOoxmlParams {
19172
19816
  doc?: string;
19173
19817
  sessionId?: string;
19818
+ retain?: boolean;
19174
19819
  at?: ({
19175
19820
  kind: "selection";
19176
19821
  start: ({
@@ -23636,14 +24281,18 @@ export interface DocCapabilitiesCheckParams {
23636
24281
  });
23637
24282
  includeSourceMap?: boolean;
23638
24283
  });
23639
- options?: {
24284
+ options?: ({
23640
24285
  changeMode?: "direct" | "tracked";
23641
- };
24286
+ }) | ({
24287
+ changeMode?: "direct" | "tracked";
24288
+ replaceMode?: "contents";
24289
+ expectedSnapshotId?: string;
24290
+ });
23642
24291
  }
23643
24292
  export interface DocCapabilitiesResolveParams {
23644
24293
  doc?: string;
23645
24294
  sessionId?: string;
23646
- operationId: "get" | "find" | "getNode" | "getNodeById" | "getText" | "getMarkdown" | "getHtml" | "projectMarkdown" | "projectHtml" | "markdownToFragment" | "htmlToFragment" | "info" | "extract" | "clearContent" | "insert" | "replace" | "delete" | "formatRange" | "blocks.findText" | "blocks.list" | "blocks.delete" | "blocks.deleteRange" | "blocks.split" | "blocks.merge" | "blocks.move" | "format.apply" | "format.bold" | "format.italic" | "format.strike" | "format.underline" | "format.highlight" | "format.color" | "format.fontSize" | "format.fontFamily" | "format.letterSpacing" | "format.vertAlign" | "format.position" | "format.dstrike" | "format.smallCaps" | "format.caps" | "format.shading" | "format.border" | "format.outline" | "format.shadow" | "format.emboss" | "format.imprint" | "format.charScale" | "format.kerning" | "format.vanish" | "format.webHidden" | "format.specVanish" | "format.rtl" | "format.cs" | "format.bCs" | "format.iCs" | "format.eastAsianLayout" | "format.em" | "format.fitText" | "format.snapToGrid" | "format.lang" | "format.oMath" | "format.rStyle" | "format.rFonts" | "format.fontSizeCs" | "format.ligatures" | "format.numForm" | "format.numSpacing" | "format.stylisticSets" | "format.contextualAlternates" | "styles.apply" | "styles.getCatalog" | "templates.apply" | "create.paragraph" | "create.heading" | "create.sectionBreak" | "sections.list" | "sections.get" | "sections.setBreakType" | "sections.setPageMargins" | "sections.setHeaderFooterMargins" | "sections.setPageSetup" | "sections.setColumns" | "sections.setLineNumbering" | "sections.setPageNumbering" | "sections.setTitlePage" | "sections.setOddEvenHeadersFooters" | "sections.setVerticalAlign" | "sections.setSectionDirection" | "sections.setHeaderFooterRef" | "sections.clearHeaderFooterRef" | "sections.setLinkToPrevious" | "sections.setPageBorders" | "sections.clearPageBorders" | "styles.paragraph.setStyle" | "styles.paragraph.setStyleRef" | "styles.paragraph.clearStyle" | "format.paragraph.resetDirectFormatting" | "format.paragraph.setAlignment" | "format.paragraph.clearAlignment" | "format.paragraph.setIndentation" | "format.paragraph.clearIndentation" | "format.paragraph.setSpacing" | "format.paragraph.clearSpacing" | "format.paragraph.setKeepOptions" | "format.paragraph.setOutlineLevel" | "format.paragraph.setFlowOptions" | "format.paragraph.setTabStop" | "format.paragraph.clearTabStop" | "format.paragraph.clearAllTabStops" | "format.paragraph.setBorder" | "format.paragraph.clearBorder" | "format.paragraph.setShading" | "format.paragraph.clearShading" | "format.paragraph.setMarkRunProps" | "format.paragraph.setDirection" | "format.paragraph.clearDirection" | "format.paragraph.setNumbering" | "lists.list" | "lists.get" | "lists.insert" | "lists.create" | "lists.attach" | "lists.detach" | "lists.delete" | "lists.indent" | "lists.outdent" | "lists.join" | "lists.canJoin" | "lists.separate" | "lists.merge" | "lists.split" | "lists.setLevel" | "lists.setValue" | "lists.continuePrevious" | "lists.canContinuePrevious" | "lists.setLevelRestart" | "lists.convertToText" | "lists.applyTemplate" | "lists.applyPreset" | "lists.setType" | "lists.captureTemplate" | "lists.setLevelNumbering" | "lists.setLevelBullet" | "lists.setLevelPictureBullet" | "lists.setLevelAlignment" | "lists.setLevelIndents" | "lists.setLevelTrailingCharacter" | "lists.setLevelMarkerFont" | "lists.clearLevelOverrides" | "lists.getStyle" | "lists.applyStyle" | "lists.restartAt" | "lists.setLevelNumberStyle" | "lists.setLevelText" | "lists.setLevelStart" | "lists.setLevelLayout" | "lists.getState" | "lists.apply" | "lists.continue" | "lists.restart" | "lists.remove" | "comments.create" | "comments.patch" | "comments.delete" | "comments.get" | "comments.list" | "trackChanges.list" | "trackChanges.get" | "trackChanges.decide" | "query.match" | "ranges.resolve" | "selection.current" | "selection.extractOoxml" | "mutations.preview" | "mutations.apply" | "plan.execute" | "capabilities.get" | "capabilities.check" | "capabilities.resolve" | "create.table" | "tables.convertFromText" | "tables.delete" | "tables.clearContents" | "tables.move" | "tables.split" | "tables.convertToText" | "tables.setLayout" | "tables.insertRow" | "tables.deleteRow" | "tables.moveRow" | "tables.setRowHeight" | "tables.distributeRows" | "tables.setRowOptions" | "tables.insertColumn" | "tables.deleteColumn" | "tables.moveColumn" | "tables.setColumnWidth" | "tables.distributeColumns" | "tables.insertCell" | "tables.deleteCell" | "tables.mergeCells" | "tables.unmergeCells" | "tables.splitCell" | "tables.setCellProperties" | "tables.setCellText" | "tables.sort" | "tables.setAltText" | "tables.setStyle" | "tables.clearStyle" | "tables.setStyleOption" | "tables.setBorder" | "tables.clearBorder" | "tables.applyBorderPreset" | "tables.setShading" | "tables.clearShading" | "tables.setTablePadding" | "tables.setCellPadding" | "tables.setCellSpacing" | "tables.clearCellSpacing" | "tables.applyStyle" | "tables.setBorders" | "tables.setTableOptions" | "tables.applyPreset" | "tables.get" | "tables.getCells" | "tables.getProperties" | "tables.getStyles" | "tables.setDefaultStyle" | "tables.clearDefaultStyle" | "create.tableOfContents" | "toc.list" | "toc.get" | "toc.configure" | "toc.update" | "toc.remove" | "toc.markEntry" | "toc.unmarkEntry" | "toc.listEntries" | "toc.getEntry" | "toc.editEntry" | "history.get" | "history.undo" | "history.redo" | "create.image" | "images.list" | "images.get" | "images.delete" | "images.move" | "images.convertToInline" | "images.convertToFloating" | "images.setSize" | "images.setWrapType" | "images.setWrapSide" | "images.setWrapDistances" | "images.setPosition" | "images.setAnchorOptions" | "images.setZOrder" | "images.scale" | "images.setLockAspectRatio" | "images.rotate" | "images.flip" | "images.crop" | "images.resetCrop" | "images.replaceSource" | "images.setAltText" | "images.setDecorative" | "images.setName" | "images.setHyperlink" | "images.insertCaption" | "images.updateCaption" | "images.removeCaption" | "hyperlinks.list" | "hyperlinks.get" | "hyperlinks.wrap" | "hyperlinks.insert" | "hyperlinks.patch" | "hyperlinks.remove" | "headerFooters.list" | "headerFooters.get" | "headerFooters.resolve" | "headerFooters.refs.set" | "headerFooters.refs.clear" | "headerFooters.refs.setLinkedToPrevious" | "headerFooters.parts.list" | "headerFooters.parts.create" | "headerFooters.parts.delete" | "headerFooters.pageNumbers.get" | "headerFooters.pageNumbers.insert" | "headerFooters.pageNumbers.set" | "headerFooters.pageNumbers.remove" | "watermarks.apply" | "watermarks.list" | "watermarks.insert" | "watermarks.replace" | "watermarks.remove" | "create.contentControl" | "contentControls.list" | "contentControls.get" | "contentControls.listInRange" | "contentControls.selectByTag" | "contentControls.selectByTitle" | "contentControls.listChildren" | "contentControls.getParent" | "contentControls.wrap" | "contentControls.unwrap" | "contentControls.delete" | "contentControls.copy" | "contentControls.move" | "contentControls.patch" | "contentControls.setLockMode" | "contentControls.setType" | "contentControls.getContent" | "contentControls.replaceContent" | "contentControls.clearContent" | "contentControls.appendContent" | "contentControls.prependContent" | "contentControls.insertBefore" | "contentControls.insertAfter" | "contentControls.getBinding" | "contentControls.setBinding" | "contentControls.clearBinding" | "contentControls.getRawProperties" | "contentControls.patchRawProperties" | "contentControls.validateWordCompatibility" | "contentControls.normalizeWordCompatibility" | "contentControls.normalizeTagPayload" | "contentControls.text.setMultiline" | "contentControls.text.setValue" | "contentControls.text.clearValue" | "contentControls.date.setValue" | "contentControls.date.clearValue" | "contentControls.date.setDisplayFormat" | "contentControls.date.setDisplayLocale" | "contentControls.date.setStorageFormat" | "contentControls.date.setCalendar" | "contentControls.checkbox.getState" | "contentControls.checkbox.setState" | "contentControls.checkbox.toggle" | "contentControls.checkbox.setSymbolPair" | "contentControls.choiceList.getItems" | "contentControls.choiceList.setItems" | "contentControls.choiceList.setSelected" | "contentControls.repeatingSection.listItems" | "contentControls.repeatingSection.insertItemBefore" | "contentControls.repeatingSection.insertItemAfter" | "contentControls.repeatingSection.cloneItem" | "contentControls.repeatingSection.deleteItem" | "contentControls.repeatingSection.setAllowInsertDelete" | "contentControls.group.wrap" | "contentControls.group.ungroup" | "bookmarks.list" | "bookmarks.get" | "bookmarks.insert" | "bookmarks.rename" | "bookmarks.remove" | "footnotes.list" | "footnotes.get" | "footnotes.insert" | "footnotes.update" | "footnotes.remove" | "footnotes.configure" | "clipboard.parse" | "clipboard.insert" | "clipboard.serializeSelection" | "crossRefs.list" | "crossRefs.get" | "crossRefs.insert" | "crossRefs.rebuild" | "crossRefs.remove" | "index.list" | "index.get" | "index.insert" | "index.configure" | "index.rebuild" | "index.remove" | "index.entries.list" | "index.entries.get" | "index.entries.insert" | "index.entries.update" | "index.entries.remove" | "captions.list" | "captions.get" | "captions.insert" | "captions.update" | "captions.remove" | "captions.configure" | "fields.list" | "fields.get" | "fields.insert" | "fields.rebuild" | "fields.remove" | "citations.list" | "citations.get" | "citations.insert" | "citations.update" | "citations.remove" | "citations.sources.list" | "citations.sources.get" | "citations.sources.insert" | "citations.sources.update" | "citations.sources.remove" | "citations.bibliography.get" | "citations.bibliography.insert" | "citations.bibliography.rebuild" | "citations.bibliography.configure" | "citations.bibliography.remove" | "authorities.list" | "authorities.get" | "authorities.insert" | "authorities.configure" | "authorities.rebuild" | "authorities.remove" | "authorities.entries.list" | "authorities.entries.get" | "authorities.entries.insert" | "authorities.entries.update" | "authorities.entries.remove" | "diff.capture" | "diff.compare" | "diff.apply" | "export.toDocx" | "protection.get" | "protection.setEditingRestriction" | "protection.clearEditingRestriction" | "permissionRanges.list" | "permissionRanges.get" | "permissionRanges.create" | "permissionRanges.remove" | "permissionRanges.updatePrincipal" | "customXml.parts.list" | "customXml.parts.get" | "customXml.parts.create" | "customXml.parts.patch" | "customXml.parts.remove" | "metadata.attach" | "metadata.list" | "metadata.get" | "metadata.update" | "metadata.remove" | "metadata.resolve";
24295
+ operationId: "get" | "find" | "getNode" | "getNodeById" | "getText" | "getMarkdown" | "getHtml" | "projectMarkdown" | "projectHtml" | "markdownToFragment" | "htmlToFragment" | "info" | "extract" | "clearContent" | "insert" | "replace" | "delete" | "formatRange" | "blocks.findText" | "blocks.list" | "blocks.delete" | "blocks.deleteRange" | "blocks.split" | "blocks.merge" | "blocks.move" | "format.apply" | "format.bold" | "format.italic" | "format.strike" | "format.underline" | "format.highlight" | "format.color" | "format.fontSize" | "format.fontFamily" | "format.letterSpacing" | "format.vertAlign" | "format.position" | "format.dstrike" | "format.smallCaps" | "format.caps" | "format.shading" | "format.border" | "format.outline" | "format.shadow" | "format.emboss" | "format.imprint" | "format.charScale" | "format.kerning" | "format.vanish" | "format.webHidden" | "format.specVanish" | "format.rtl" | "format.cs" | "format.bCs" | "format.iCs" | "format.eastAsianLayout" | "format.em" | "format.fitText" | "format.snapToGrid" | "format.lang" | "format.oMath" | "format.rStyle" | "format.rFonts" | "format.fontSizeCs" | "format.ligatures" | "format.numForm" | "format.numSpacing" | "format.stylisticSets" | "format.contextualAlternates" | "styles.apply" | "styles.getCatalog" | "templates.apply" | "create.paragraph" | "create.heading" | "create.sectionBreak" | "sections.list" | "sections.get" | "sections.setBreakType" | "sections.setPageMargins" | "sections.setHeaderFooterMargins" | "sections.setPageSetup" | "sections.setColumns" | "sections.setLineNumbering" | "sections.setPageNumbering" | "sections.setTitlePage" | "sections.setOddEvenHeadersFooters" | "sections.setVerticalAlign" | "sections.setSectionDirection" | "sections.setHeaderFooterRef" | "sections.clearHeaderFooterRef" | "sections.setLinkToPrevious" | "sections.setPageBorders" | "sections.clearPageBorders" | "styles.paragraph.setStyle" | "styles.paragraph.setStyleRef" | "styles.paragraph.clearStyle" | "format.paragraph.resetDirectFormatting" | "format.paragraph.setAlignment" | "format.paragraph.clearAlignment" | "format.paragraph.setIndentation" | "format.paragraph.clearIndentation" | "format.paragraph.setSpacing" | "format.paragraph.clearSpacing" | "format.paragraph.setKeepOptions" | "format.paragraph.setOutlineLevel" | "format.paragraph.setFlowOptions" | "format.paragraph.setTabStop" | "format.paragraph.clearTabStop" | "format.paragraph.clearAllTabStops" | "format.paragraph.setBorder" | "format.paragraph.clearBorder" | "format.paragraph.setShading" | "format.paragraph.clearShading" | "format.paragraph.setMarkRunProps" | "format.paragraph.setDirection" | "format.paragraph.clearDirection" | "format.paragraph.setNumbering" | "lists.list" | "lists.get" | "lists.insert" | "lists.create" | "lists.attach" | "lists.detach" | "lists.delete" | "lists.indent" | "lists.outdent" | "lists.join" | "lists.canJoin" | "lists.separate" | "lists.merge" | "lists.split" | "lists.setLevel" | "lists.setValue" | "lists.continuePrevious" | "lists.canContinuePrevious" | "lists.setLevelRestart" | "lists.convertToText" | "lists.applyTemplate" | "lists.applyPreset" | "lists.setType" | "lists.captureTemplate" | "lists.setLevelNumbering" | "lists.setLevelBullet" | "lists.setLevelPictureBullet" | "lists.setLevelAlignment" | "lists.setLevelIndents" | "lists.setLevelTrailingCharacter" | "lists.setLevelMarkerFont" | "lists.clearLevelOverrides" | "lists.getStyle" | "lists.applyStyle" | "lists.restartAt" | "lists.setLevelNumberStyle" | "lists.setLevelText" | "lists.setLevelStart" | "lists.setLevelLayout" | "lists.getState" | "lists.apply" | "lists.continue" | "lists.restart" | "lists.remove" | "comments.create" | "comments.patch" | "comments.delete" | "comments.get" | "comments.list" | "trackChanges.list" | "trackChanges.get" | "trackChanges.decide" | "query.match" | "ranges.resolve" | "selection.current" | "selection.releaseSnapshot" | "selection.extractOoxml" | "mutations.preview" | "mutations.apply" | "plan.execute" | "capabilities.get" | "capabilities.check" | "capabilities.resolve" | "create.table" | "tables.convertFromText" | "tables.delete" | "tables.clearContents" | "tables.move" | "tables.split" | "tables.convertToText" | "tables.setLayout" | "tables.insertRow" | "tables.deleteRow" | "tables.moveRow" | "tables.setRowHeight" | "tables.distributeRows" | "tables.setRowOptions" | "tables.insertColumn" | "tables.deleteColumn" | "tables.moveColumn" | "tables.setColumnWidth" | "tables.distributeColumns" | "tables.insertCell" | "tables.deleteCell" | "tables.mergeCells" | "tables.unmergeCells" | "tables.splitCell" | "tables.setCellProperties" | "tables.setCellText" | "tables.sort" | "tables.setAltText" | "tables.setStyle" | "tables.clearStyle" | "tables.setStyleOption" | "tables.setBorder" | "tables.clearBorder" | "tables.applyBorderPreset" | "tables.setShading" | "tables.clearShading" | "tables.setTablePadding" | "tables.setCellPadding" | "tables.setCellSpacing" | "tables.clearCellSpacing" | "tables.applyStyle" | "tables.setBorders" | "tables.setTableOptions" | "tables.applyPreset" | "tables.get" | "tables.getCells" | "tables.getProperties" | "tables.getStyles" | "tables.setDefaultStyle" | "tables.clearDefaultStyle" | "create.tableOfContents" | "toc.list" | "toc.get" | "toc.configure" | "toc.update" | "toc.remove" | "toc.markEntry" | "toc.unmarkEntry" | "toc.listEntries" | "toc.getEntry" | "toc.editEntry" | "history.get" | "history.undo" | "history.redo" | "create.image" | "images.list" | "images.get" | "images.delete" | "images.move" | "images.convertToInline" | "images.convertToFloating" | "images.setSize" | "images.setWrapType" | "images.setWrapSide" | "images.setWrapDistances" | "images.setPosition" | "images.setAnchorOptions" | "images.setZOrder" | "images.scale" | "images.setLockAspectRatio" | "images.rotate" | "images.flip" | "images.crop" | "images.resetCrop" | "images.replaceSource" | "images.setAltText" | "images.setDecorative" | "images.setName" | "images.setHyperlink" | "images.insertCaption" | "images.updateCaption" | "images.removeCaption" | "hyperlinks.list" | "hyperlinks.get" | "hyperlinks.wrap" | "hyperlinks.insert" | "hyperlinks.patch" | "hyperlinks.remove" | "headerFooters.list" | "headerFooters.get" | "headerFooters.resolve" | "headerFooters.refs.set" | "headerFooters.refs.clear" | "headerFooters.refs.setLinkedToPrevious" | "headerFooters.parts.list" | "headerFooters.parts.create" | "headerFooters.parts.delete" | "headerFooters.pageNumbers.get" | "headerFooters.pageNumbers.insert" | "headerFooters.pageNumbers.set" | "headerFooters.pageNumbers.remove" | "watermarks.apply" | "watermarks.list" | "watermarks.insert" | "watermarks.replace" | "watermarks.remove" | "create.contentControl" | "contentControls.list" | "contentControls.get" | "contentControls.listInRange" | "contentControls.selectByTag" | "contentControls.selectByTitle" | "contentControls.listChildren" | "contentControls.getParent" | "contentControls.wrap" | "contentControls.unwrap" | "contentControls.delete" | "contentControls.copy" | "contentControls.move" | "contentControls.patch" | "contentControls.setLockMode" | "contentControls.setType" | "contentControls.getContent" | "contentControls.replaceContent" | "contentControls.clearContent" | "contentControls.appendContent" | "contentControls.prependContent" | "contentControls.insertBefore" | "contentControls.insertAfter" | "contentControls.getBinding" | "contentControls.setBinding" | "contentControls.clearBinding" | "contentControls.getRawProperties" | "contentControls.patchRawProperties" | "contentControls.validateWordCompatibility" | "contentControls.normalizeWordCompatibility" | "contentControls.normalizeTagPayload" | "contentControls.text.setMultiline" | "contentControls.text.setValue" | "contentControls.text.clearValue" | "contentControls.date.setValue" | "contentControls.date.clearValue" | "contentControls.date.setDisplayFormat" | "contentControls.date.setDisplayLocale" | "contentControls.date.setStorageFormat" | "contentControls.date.setCalendar" | "contentControls.checkbox.getState" | "contentControls.checkbox.setState" | "contentControls.checkbox.toggle" | "contentControls.checkbox.setSymbolPair" | "contentControls.choiceList.getItems" | "contentControls.choiceList.setItems" | "contentControls.choiceList.setSelected" | "contentControls.repeatingSection.listItems" | "contentControls.repeatingSection.insertItemBefore" | "contentControls.repeatingSection.insertItemAfter" | "contentControls.repeatingSection.cloneItem" | "contentControls.repeatingSection.deleteItem" | "contentControls.repeatingSection.setAllowInsertDelete" | "contentControls.group.wrap" | "contentControls.group.ungroup" | "bookmarks.list" | "bookmarks.get" | "bookmarks.insert" | "bookmarks.rename" | "bookmarks.remove" | "footnotes.list" | "footnotes.get" | "footnotes.insert" | "footnotes.update" | "footnotes.remove" | "footnotes.configure" | "clipboard.parse" | "clipboard.insert" | "clipboard.serializeSelection" | "crossRefs.list" | "crossRefs.get" | "crossRefs.insert" | "crossRefs.rebuild" | "crossRefs.remove" | "index.list" | "index.get" | "index.insert" | "index.configure" | "index.rebuild" | "index.remove" | "index.entries.list" | "index.entries.get" | "index.entries.insert" | "index.entries.update" | "index.entries.remove" | "captions.list" | "captions.get" | "captions.insert" | "captions.update" | "captions.remove" | "captions.configure" | "fields.list" | "fields.get" | "fields.insert" | "fields.rebuild" | "fields.remove" | "citations.list" | "citations.get" | "citations.insert" | "citations.update" | "citations.remove" | "citations.sources.list" | "citations.sources.get" | "citations.sources.insert" | "citations.sources.update" | "citations.sources.remove" | "citations.bibliography.get" | "citations.bibliography.insert" | "citations.bibliography.rebuild" | "citations.bibliography.configure" | "citations.bibliography.remove" | "authorities.list" | "authorities.get" | "authorities.insert" | "authorities.configure" | "authorities.rebuild" | "authorities.remove" | "authorities.entries.list" | "authorities.entries.get" | "authorities.entries.insert" | "authorities.entries.update" | "authorities.entries.remove" | "diff.capture" | "diff.compare" | "diff.apply" | "export.toDocx" | "protection.get" | "protection.setEditingRestriction" | "protection.clearEditingRestriction" | "permissionRanges.list" | "permissionRanges.get" | "permissionRanges.create" | "permissionRanges.remove" | "permissionRanges.updatePrincipal" | "customXml.parts.list" | "customXml.parts.get" | "customXml.parts.create" | "customXml.parts.patch" | "customXml.parts.remove" | "metadata.attach" | "metadata.list" | "metadata.get" | "metadata.update" | "metadata.remove" | "metadata.resolve";
23647
24296
  input?: unknown;
23648
24297
  options?: unknown;
23649
24298
  }
@@ -103903,8 +104552,12 @@ export type DocSelectionCurrentResult = {
103903
104552
  activeChangeIds: Array<string>;
103904
104553
  text?: string;
103905
104554
  };
104555
+ export type DocSelectionReleaseSnapshotResult = {
104556
+ released: boolean;
104557
+ };
103906
104558
  export type DocSelectionExtractOoxmlResult = {
103907
104559
  formatVersion: 1;
104560
+ snapshotId?: string;
103908
104561
  at: ({
103909
104562
  kind: "selection";
103910
104563
  start: ({
@@ -104184,6 +104837,7 @@ export type DocSelectionExtractOoxmlResult = {
104184
104837
  })) | null;
104185
104838
  partUri: string;
104186
104839
  paragraphStyleId: string | null;
104840
+ packageRevision?: string;
104187
104841
  };
104188
104842
  context: {
104189
104843
  xml: Array<string>;
@@ -105711,6 +106365,12 @@ export type DocCapabilitiesGetResult = {
105711
106365
  dryRun: boolean;
105712
106366
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE" | "TARGET_CONTEXT_REQUIRED" | "TARGET_UNSUPPORTED">;
105713
106367
  };
106368
+ "selection.releaseSnapshot": {
106369
+ available: boolean;
106370
+ tracked: boolean;
106371
+ dryRun: boolean;
106372
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE" | "TARGET_CONTEXT_REQUIRED" | "TARGET_UNSUPPORTED">;
106373
+ };
105714
106374
  "selection.extractOoxml": {
105715
106375
  available: boolean;
105716
106376
  tracked: boolean;
@@ -109470,7 +110130,7 @@ export type DocCapabilitiesCheckResult = ({
109470
110130
  };
109471
110131
  });
109472
110132
  export type DocCapabilitiesResolveResult = {
109473
- operationId: "get" | "find" | "getNode" | "getNodeById" | "getText" | "getMarkdown" | "getHtml" | "projectMarkdown" | "projectHtml" | "markdownToFragment" | "htmlToFragment" | "info" | "extract" | "clearContent" | "insert" | "replace" | "delete" | "formatRange" | "blocks.findText" | "blocks.list" | "blocks.delete" | "blocks.deleteRange" | "blocks.split" | "blocks.merge" | "blocks.move" | "format.apply" | "format.bold" | "format.italic" | "format.strike" | "format.underline" | "format.highlight" | "format.color" | "format.fontSize" | "format.fontFamily" | "format.letterSpacing" | "format.vertAlign" | "format.position" | "format.dstrike" | "format.smallCaps" | "format.caps" | "format.shading" | "format.border" | "format.outline" | "format.shadow" | "format.emboss" | "format.imprint" | "format.charScale" | "format.kerning" | "format.vanish" | "format.webHidden" | "format.specVanish" | "format.rtl" | "format.cs" | "format.bCs" | "format.iCs" | "format.eastAsianLayout" | "format.em" | "format.fitText" | "format.snapToGrid" | "format.lang" | "format.oMath" | "format.rStyle" | "format.rFonts" | "format.fontSizeCs" | "format.ligatures" | "format.numForm" | "format.numSpacing" | "format.stylisticSets" | "format.contextualAlternates" | "styles.apply" | "styles.getCatalog" | "templates.apply" | "create.paragraph" | "create.heading" | "create.sectionBreak" | "sections.list" | "sections.get" | "sections.setBreakType" | "sections.setPageMargins" | "sections.setHeaderFooterMargins" | "sections.setPageSetup" | "sections.setColumns" | "sections.setLineNumbering" | "sections.setPageNumbering" | "sections.setTitlePage" | "sections.setOddEvenHeadersFooters" | "sections.setVerticalAlign" | "sections.setSectionDirection" | "sections.setHeaderFooterRef" | "sections.clearHeaderFooterRef" | "sections.setLinkToPrevious" | "sections.setPageBorders" | "sections.clearPageBorders" | "styles.paragraph.setStyle" | "styles.paragraph.setStyleRef" | "styles.paragraph.clearStyle" | "format.paragraph.resetDirectFormatting" | "format.paragraph.setAlignment" | "format.paragraph.clearAlignment" | "format.paragraph.setIndentation" | "format.paragraph.clearIndentation" | "format.paragraph.setSpacing" | "format.paragraph.clearSpacing" | "format.paragraph.setKeepOptions" | "format.paragraph.setOutlineLevel" | "format.paragraph.setFlowOptions" | "format.paragraph.setTabStop" | "format.paragraph.clearTabStop" | "format.paragraph.clearAllTabStops" | "format.paragraph.setBorder" | "format.paragraph.clearBorder" | "format.paragraph.setShading" | "format.paragraph.clearShading" | "format.paragraph.setMarkRunProps" | "format.paragraph.setDirection" | "format.paragraph.clearDirection" | "format.paragraph.setNumbering" | "lists.list" | "lists.get" | "lists.insert" | "lists.create" | "lists.attach" | "lists.detach" | "lists.delete" | "lists.indent" | "lists.outdent" | "lists.join" | "lists.canJoin" | "lists.separate" | "lists.merge" | "lists.split" | "lists.setLevel" | "lists.setValue" | "lists.continuePrevious" | "lists.canContinuePrevious" | "lists.setLevelRestart" | "lists.convertToText" | "lists.applyTemplate" | "lists.applyPreset" | "lists.setType" | "lists.captureTemplate" | "lists.setLevelNumbering" | "lists.setLevelBullet" | "lists.setLevelPictureBullet" | "lists.setLevelAlignment" | "lists.setLevelIndents" | "lists.setLevelTrailingCharacter" | "lists.setLevelMarkerFont" | "lists.clearLevelOverrides" | "lists.getStyle" | "lists.applyStyle" | "lists.restartAt" | "lists.setLevelNumberStyle" | "lists.setLevelText" | "lists.setLevelStart" | "lists.setLevelLayout" | "lists.getState" | "lists.apply" | "lists.continue" | "lists.restart" | "lists.remove" | "comments.create" | "comments.patch" | "comments.delete" | "comments.get" | "comments.list" | "trackChanges.list" | "trackChanges.get" | "trackChanges.decide" | "query.match" | "ranges.resolve" | "selection.current" | "selection.extractOoxml" | "mutations.preview" | "mutations.apply" | "plan.execute" | "capabilities.get" | "capabilities.check" | "capabilities.resolve" | "create.table" | "tables.convertFromText" | "tables.delete" | "tables.clearContents" | "tables.move" | "tables.split" | "tables.convertToText" | "tables.setLayout" | "tables.insertRow" | "tables.deleteRow" | "tables.moveRow" | "tables.setRowHeight" | "tables.distributeRows" | "tables.setRowOptions" | "tables.insertColumn" | "tables.deleteColumn" | "tables.moveColumn" | "tables.setColumnWidth" | "tables.distributeColumns" | "tables.insertCell" | "tables.deleteCell" | "tables.mergeCells" | "tables.unmergeCells" | "tables.splitCell" | "tables.setCellProperties" | "tables.setCellText" | "tables.sort" | "tables.setAltText" | "tables.setStyle" | "tables.clearStyle" | "tables.setStyleOption" | "tables.setBorder" | "tables.clearBorder" | "tables.applyBorderPreset" | "tables.setShading" | "tables.clearShading" | "tables.setTablePadding" | "tables.setCellPadding" | "tables.setCellSpacing" | "tables.clearCellSpacing" | "tables.applyStyle" | "tables.setBorders" | "tables.setTableOptions" | "tables.applyPreset" | "tables.get" | "tables.getCells" | "tables.getProperties" | "tables.getStyles" | "tables.setDefaultStyle" | "tables.clearDefaultStyle" | "create.tableOfContents" | "toc.list" | "toc.get" | "toc.configure" | "toc.update" | "toc.remove" | "toc.markEntry" | "toc.unmarkEntry" | "toc.listEntries" | "toc.getEntry" | "toc.editEntry" | "history.get" | "history.undo" | "history.redo" | "create.image" | "images.list" | "images.get" | "images.delete" | "images.move" | "images.convertToInline" | "images.convertToFloating" | "images.setSize" | "images.setWrapType" | "images.setWrapSide" | "images.setWrapDistances" | "images.setPosition" | "images.setAnchorOptions" | "images.setZOrder" | "images.scale" | "images.setLockAspectRatio" | "images.rotate" | "images.flip" | "images.crop" | "images.resetCrop" | "images.replaceSource" | "images.setAltText" | "images.setDecorative" | "images.setName" | "images.setHyperlink" | "images.insertCaption" | "images.updateCaption" | "images.removeCaption" | "hyperlinks.list" | "hyperlinks.get" | "hyperlinks.wrap" | "hyperlinks.insert" | "hyperlinks.patch" | "hyperlinks.remove" | "headerFooters.list" | "headerFooters.get" | "headerFooters.resolve" | "headerFooters.refs.set" | "headerFooters.refs.clear" | "headerFooters.refs.setLinkedToPrevious" | "headerFooters.parts.list" | "headerFooters.parts.create" | "headerFooters.parts.delete" | "headerFooters.pageNumbers.get" | "headerFooters.pageNumbers.insert" | "headerFooters.pageNumbers.set" | "headerFooters.pageNumbers.remove" | "watermarks.apply" | "watermarks.list" | "watermarks.insert" | "watermarks.replace" | "watermarks.remove" | "create.contentControl" | "contentControls.list" | "contentControls.get" | "contentControls.listInRange" | "contentControls.selectByTag" | "contentControls.selectByTitle" | "contentControls.listChildren" | "contentControls.getParent" | "contentControls.wrap" | "contentControls.unwrap" | "contentControls.delete" | "contentControls.copy" | "contentControls.move" | "contentControls.patch" | "contentControls.setLockMode" | "contentControls.setType" | "contentControls.getContent" | "contentControls.replaceContent" | "contentControls.clearContent" | "contentControls.appendContent" | "contentControls.prependContent" | "contentControls.insertBefore" | "contentControls.insertAfter" | "contentControls.getBinding" | "contentControls.setBinding" | "contentControls.clearBinding" | "contentControls.getRawProperties" | "contentControls.patchRawProperties" | "contentControls.validateWordCompatibility" | "contentControls.normalizeWordCompatibility" | "contentControls.normalizeTagPayload" | "contentControls.text.setMultiline" | "contentControls.text.setValue" | "contentControls.text.clearValue" | "contentControls.date.setValue" | "contentControls.date.clearValue" | "contentControls.date.setDisplayFormat" | "contentControls.date.setDisplayLocale" | "contentControls.date.setStorageFormat" | "contentControls.date.setCalendar" | "contentControls.checkbox.getState" | "contentControls.checkbox.setState" | "contentControls.checkbox.toggle" | "contentControls.checkbox.setSymbolPair" | "contentControls.choiceList.getItems" | "contentControls.choiceList.setItems" | "contentControls.choiceList.setSelected" | "contentControls.repeatingSection.listItems" | "contentControls.repeatingSection.insertItemBefore" | "contentControls.repeatingSection.insertItemAfter" | "contentControls.repeatingSection.cloneItem" | "contentControls.repeatingSection.deleteItem" | "contentControls.repeatingSection.setAllowInsertDelete" | "contentControls.group.wrap" | "contentControls.group.ungroup" | "bookmarks.list" | "bookmarks.get" | "bookmarks.insert" | "bookmarks.rename" | "bookmarks.remove" | "footnotes.list" | "footnotes.get" | "footnotes.insert" | "footnotes.update" | "footnotes.remove" | "footnotes.configure" | "clipboard.parse" | "clipboard.insert" | "clipboard.serializeSelection" | "crossRefs.list" | "crossRefs.get" | "crossRefs.insert" | "crossRefs.rebuild" | "crossRefs.remove" | "index.list" | "index.get" | "index.insert" | "index.configure" | "index.rebuild" | "index.remove" | "index.entries.list" | "index.entries.get" | "index.entries.insert" | "index.entries.update" | "index.entries.remove" | "captions.list" | "captions.get" | "captions.insert" | "captions.update" | "captions.remove" | "captions.configure" | "fields.list" | "fields.get" | "fields.insert" | "fields.rebuild" | "fields.remove" | "citations.list" | "citations.get" | "citations.insert" | "citations.update" | "citations.remove" | "citations.sources.list" | "citations.sources.get" | "citations.sources.insert" | "citations.sources.update" | "citations.sources.remove" | "citations.bibliography.get" | "citations.bibliography.insert" | "citations.bibliography.rebuild" | "citations.bibliography.configure" | "citations.bibliography.remove" | "authorities.list" | "authorities.get" | "authorities.insert" | "authorities.configure" | "authorities.rebuild" | "authorities.remove" | "authorities.entries.list" | "authorities.entries.get" | "authorities.entries.insert" | "authorities.entries.update" | "authorities.entries.remove" | "diff.capture" | "diff.compare" | "diff.apply" | "export.toDocx" | "protection.get" | "protection.setEditingRestriction" | "protection.clearEditingRestriction" | "permissionRanges.list" | "permissionRanges.get" | "permissionRanges.create" | "permissionRanges.remove" | "permissionRanges.updatePrincipal" | "customXml.parts.list" | "customXml.parts.get" | "customXml.parts.create" | "customXml.parts.patch" | "customXml.parts.remove" | "metadata.attach" | "metadata.list" | "metadata.get" | "metadata.update" | "metadata.remove" | "metadata.resolve";
110133
+ operationId: "get" | "find" | "getNode" | "getNodeById" | "getText" | "getMarkdown" | "getHtml" | "projectMarkdown" | "projectHtml" | "markdownToFragment" | "htmlToFragment" | "info" | "extract" | "clearContent" | "insert" | "replace" | "delete" | "formatRange" | "blocks.findText" | "blocks.list" | "blocks.delete" | "blocks.deleteRange" | "blocks.split" | "blocks.merge" | "blocks.move" | "format.apply" | "format.bold" | "format.italic" | "format.strike" | "format.underline" | "format.highlight" | "format.color" | "format.fontSize" | "format.fontFamily" | "format.letterSpacing" | "format.vertAlign" | "format.position" | "format.dstrike" | "format.smallCaps" | "format.caps" | "format.shading" | "format.border" | "format.outline" | "format.shadow" | "format.emboss" | "format.imprint" | "format.charScale" | "format.kerning" | "format.vanish" | "format.webHidden" | "format.specVanish" | "format.rtl" | "format.cs" | "format.bCs" | "format.iCs" | "format.eastAsianLayout" | "format.em" | "format.fitText" | "format.snapToGrid" | "format.lang" | "format.oMath" | "format.rStyle" | "format.rFonts" | "format.fontSizeCs" | "format.ligatures" | "format.numForm" | "format.numSpacing" | "format.stylisticSets" | "format.contextualAlternates" | "styles.apply" | "styles.getCatalog" | "templates.apply" | "create.paragraph" | "create.heading" | "create.sectionBreak" | "sections.list" | "sections.get" | "sections.setBreakType" | "sections.setPageMargins" | "sections.setHeaderFooterMargins" | "sections.setPageSetup" | "sections.setColumns" | "sections.setLineNumbering" | "sections.setPageNumbering" | "sections.setTitlePage" | "sections.setOddEvenHeadersFooters" | "sections.setVerticalAlign" | "sections.setSectionDirection" | "sections.setHeaderFooterRef" | "sections.clearHeaderFooterRef" | "sections.setLinkToPrevious" | "sections.setPageBorders" | "sections.clearPageBorders" | "styles.paragraph.setStyle" | "styles.paragraph.setStyleRef" | "styles.paragraph.clearStyle" | "format.paragraph.resetDirectFormatting" | "format.paragraph.setAlignment" | "format.paragraph.clearAlignment" | "format.paragraph.setIndentation" | "format.paragraph.clearIndentation" | "format.paragraph.setSpacing" | "format.paragraph.clearSpacing" | "format.paragraph.setKeepOptions" | "format.paragraph.setOutlineLevel" | "format.paragraph.setFlowOptions" | "format.paragraph.setTabStop" | "format.paragraph.clearTabStop" | "format.paragraph.clearAllTabStops" | "format.paragraph.setBorder" | "format.paragraph.clearBorder" | "format.paragraph.setShading" | "format.paragraph.clearShading" | "format.paragraph.setMarkRunProps" | "format.paragraph.setDirection" | "format.paragraph.clearDirection" | "format.paragraph.setNumbering" | "lists.list" | "lists.get" | "lists.insert" | "lists.create" | "lists.attach" | "lists.detach" | "lists.delete" | "lists.indent" | "lists.outdent" | "lists.join" | "lists.canJoin" | "lists.separate" | "lists.merge" | "lists.split" | "lists.setLevel" | "lists.setValue" | "lists.continuePrevious" | "lists.canContinuePrevious" | "lists.setLevelRestart" | "lists.convertToText" | "lists.applyTemplate" | "lists.applyPreset" | "lists.setType" | "lists.captureTemplate" | "lists.setLevelNumbering" | "lists.setLevelBullet" | "lists.setLevelPictureBullet" | "lists.setLevelAlignment" | "lists.setLevelIndents" | "lists.setLevelTrailingCharacter" | "lists.setLevelMarkerFont" | "lists.clearLevelOverrides" | "lists.getStyle" | "lists.applyStyle" | "lists.restartAt" | "lists.setLevelNumberStyle" | "lists.setLevelText" | "lists.setLevelStart" | "lists.setLevelLayout" | "lists.getState" | "lists.apply" | "lists.continue" | "lists.restart" | "lists.remove" | "comments.create" | "comments.patch" | "comments.delete" | "comments.get" | "comments.list" | "trackChanges.list" | "trackChanges.get" | "trackChanges.decide" | "query.match" | "ranges.resolve" | "selection.current" | "selection.releaseSnapshot" | "selection.extractOoxml" | "mutations.preview" | "mutations.apply" | "plan.execute" | "capabilities.get" | "capabilities.check" | "capabilities.resolve" | "create.table" | "tables.convertFromText" | "tables.delete" | "tables.clearContents" | "tables.move" | "tables.split" | "tables.convertToText" | "tables.setLayout" | "tables.insertRow" | "tables.deleteRow" | "tables.moveRow" | "tables.setRowHeight" | "tables.distributeRows" | "tables.setRowOptions" | "tables.insertColumn" | "tables.deleteColumn" | "tables.moveColumn" | "tables.setColumnWidth" | "tables.distributeColumns" | "tables.insertCell" | "tables.deleteCell" | "tables.mergeCells" | "tables.unmergeCells" | "tables.splitCell" | "tables.setCellProperties" | "tables.setCellText" | "tables.sort" | "tables.setAltText" | "tables.setStyle" | "tables.clearStyle" | "tables.setStyleOption" | "tables.setBorder" | "tables.clearBorder" | "tables.applyBorderPreset" | "tables.setShading" | "tables.clearShading" | "tables.setTablePadding" | "tables.setCellPadding" | "tables.setCellSpacing" | "tables.clearCellSpacing" | "tables.applyStyle" | "tables.setBorders" | "tables.setTableOptions" | "tables.applyPreset" | "tables.get" | "tables.getCells" | "tables.getProperties" | "tables.getStyles" | "tables.setDefaultStyle" | "tables.clearDefaultStyle" | "create.tableOfContents" | "toc.list" | "toc.get" | "toc.configure" | "toc.update" | "toc.remove" | "toc.markEntry" | "toc.unmarkEntry" | "toc.listEntries" | "toc.getEntry" | "toc.editEntry" | "history.get" | "history.undo" | "history.redo" | "create.image" | "images.list" | "images.get" | "images.delete" | "images.move" | "images.convertToInline" | "images.convertToFloating" | "images.setSize" | "images.setWrapType" | "images.setWrapSide" | "images.setWrapDistances" | "images.setPosition" | "images.setAnchorOptions" | "images.setZOrder" | "images.scale" | "images.setLockAspectRatio" | "images.rotate" | "images.flip" | "images.crop" | "images.resetCrop" | "images.replaceSource" | "images.setAltText" | "images.setDecorative" | "images.setName" | "images.setHyperlink" | "images.insertCaption" | "images.updateCaption" | "images.removeCaption" | "hyperlinks.list" | "hyperlinks.get" | "hyperlinks.wrap" | "hyperlinks.insert" | "hyperlinks.patch" | "hyperlinks.remove" | "headerFooters.list" | "headerFooters.get" | "headerFooters.resolve" | "headerFooters.refs.set" | "headerFooters.refs.clear" | "headerFooters.refs.setLinkedToPrevious" | "headerFooters.parts.list" | "headerFooters.parts.create" | "headerFooters.parts.delete" | "headerFooters.pageNumbers.get" | "headerFooters.pageNumbers.insert" | "headerFooters.pageNumbers.set" | "headerFooters.pageNumbers.remove" | "watermarks.apply" | "watermarks.list" | "watermarks.insert" | "watermarks.replace" | "watermarks.remove" | "create.contentControl" | "contentControls.list" | "contentControls.get" | "contentControls.listInRange" | "contentControls.selectByTag" | "contentControls.selectByTitle" | "contentControls.listChildren" | "contentControls.getParent" | "contentControls.wrap" | "contentControls.unwrap" | "contentControls.delete" | "contentControls.copy" | "contentControls.move" | "contentControls.patch" | "contentControls.setLockMode" | "contentControls.setType" | "contentControls.getContent" | "contentControls.replaceContent" | "contentControls.clearContent" | "contentControls.appendContent" | "contentControls.prependContent" | "contentControls.insertBefore" | "contentControls.insertAfter" | "contentControls.getBinding" | "contentControls.setBinding" | "contentControls.clearBinding" | "contentControls.getRawProperties" | "contentControls.patchRawProperties" | "contentControls.validateWordCompatibility" | "contentControls.normalizeWordCompatibility" | "contentControls.normalizeTagPayload" | "contentControls.text.setMultiline" | "contentControls.text.setValue" | "contentControls.text.clearValue" | "contentControls.date.setValue" | "contentControls.date.clearValue" | "contentControls.date.setDisplayFormat" | "contentControls.date.setDisplayLocale" | "contentControls.date.setStorageFormat" | "contentControls.date.setCalendar" | "contentControls.checkbox.getState" | "contentControls.checkbox.setState" | "contentControls.checkbox.toggle" | "contentControls.checkbox.setSymbolPair" | "contentControls.choiceList.getItems" | "contentControls.choiceList.setItems" | "contentControls.choiceList.setSelected" | "contentControls.repeatingSection.listItems" | "contentControls.repeatingSection.insertItemBefore" | "contentControls.repeatingSection.insertItemAfter" | "contentControls.repeatingSection.cloneItem" | "contentControls.repeatingSection.deleteItem" | "contentControls.repeatingSection.setAllowInsertDelete" | "contentControls.group.wrap" | "contentControls.group.ungroup" | "bookmarks.list" | "bookmarks.get" | "bookmarks.insert" | "bookmarks.rename" | "bookmarks.remove" | "footnotes.list" | "footnotes.get" | "footnotes.insert" | "footnotes.update" | "footnotes.remove" | "footnotes.configure" | "clipboard.parse" | "clipboard.insert" | "clipboard.serializeSelection" | "crossRefs.list" | "crossRefs.get" | "crossRefs.insert" | "crossRefs.rebuild" | "crossRefs.remove" | "index.list" | "index.get" | "index.insert" | "index.configure" | "index.rebuild" | "index.remove" | "index.entries.list" | "index.entries.get" | "index.entries.insert" | "index.entries.update" | "index.entries.remove" | "captions.list" | "captions.get" | "captions.insert" | "captions.update" | "captions.remove" | "captions.configure" | "fields.list" | "fields.get" | "fields.insert" | "fields.rebuild" | "fields.remove" | "citations.list" | "citations.get" | "citations.insert" | "citations.update" | "citations.remove" | "citations.sources.list" | "citations.sources.get" | "citations.sources.insert" | "citations.sources.update" | "citations.sources.remove" | "citations.bibliography.get" | "citations.bibliography.insert" | "citations.bibliography.rebuild" | "citations.bibliography.configure" | "citations.bibliography.remove" | "authorities.list" | "authorities.get" | "authorities.insert" | "authorities.configure" | "authorities.rebuild" | "authorities.remove" | "authorities.entries.list" | "authorities.entries.get" | "authorities.entries.insert" | "authorities.entries.update" | "authorities.entries.remove" | "diff.capture" | "diff.compare" | "diff.apply" | "export.toDocx" | "protection.get" | "protection.setEditingRestriction" | "protection.clearEditingRestriction" | "permissionRanges.list" | "permissionRanges.get" | "permissionRanges.create" | "permissionRanges.remove" | "permissionRanges.updatePrincipal" | "customXml.parts.list" | "customXml.parts.get" | "customXml.parts.create" | "customXml.parts.patch" | "customXml.parts.remove" | "metadata.attach" | "metadata.list" | "metadata.get" | "metadata.update" | "metadata.remove" | "metadata.resolve";
109474
110134
  available: ({
109475
110135
  kind: "supported";
109476
110136
  }) | ({
@@ -125065,7 +125725,55 @@ export interface DocInsertBoundParams {
125065
125725
  requestSha256: string;
125066
125726
  analysisSha256: string;
125067
125727
  };
125728
+ value?: string;
125729
+ type?: "ooxml" | "text" | "markdown" | "html";
125730
+ namespaces?: Record<string, unknown>;
125731
+ sourcePartUri?: string;
125732
+ dependencies?: Array<{
125733
+ sourcePartUri: string;
125734
+ relationshipId: string;
125735
+ relationshipType: string;
125736
+ target: string;
125737
+ targetMode: "Internal" | "External";
125738
+ contentType: string | unknown;
125739
+ dataBase64?: string;
125740
+ }>;
125068
125741
  target?: ({
125742
+ kind: "block";
125743
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
125744
+ nodeId: string;
125745
+ story?: ({
125746
+ kind: "story";
125747
+ storyType: "body";
125748
+ }) | ({
125749
+ kind: "story";
125750
+ storyType: "headerFooterSlot";
125751
+ section: {
125752
+ kind: "section";
125753
+ sectionId: string;
125754
+ };
125755
+ headerFooterKind: "header" | "footer";
125756
+ variant: "default" | "first" | "even";
125757
+ resolution?: "effective" | "explicit";
125758
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
125759
+ }) | ({
125760
+ kind: "story";
125761
+ storyType: "headerFooterPart";
125762
+ refId: string;
125763
+ }) | ({
125764
+ kind: "story";
125765
+ storyType: "footnote";
125766
+ noteId: string;
125767
+ }) | ({
125768
+ kind: "story";
125769
+ storyType: "endnote";
125770
+ noteId: string;
125771
+ }) | ({
125772
+ kind: "story";
125773
+ storyType: "textbox";
125774
+ textboxId: string;
125775
+ });
125776
+ }) | ({
125069
125777
  kind: "selection";
125070
125778
  start: ({
125071
125779
  kind: "text";
@@ -125249,41 +125957,6 @@ export interface DocInsertBoundParams {
125249
125957
  textboxId: string;
125250
125958
  });
125251
125959
  coordinateSpace?: "visible" | "tracked";
125252
- }) | ({
125253
- kind: "block";
125254
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
125255
- nodeId: string;
125256
- story?: ({
125257
- kind: "story";
125258
- storyType: "body";
125259
- }) | ({
125260
- kind: "story";
125261
- storyType: "headerFooterSlot";
125262
- section: {
125263
- kind: "section";
125264
- sectionId: string;
125265
- };
125266
- headerFooterKind: "header" | "footer";
125267
- variant: "default" | "first" | "even";
125268
- resolution?: "effective" | "explicit";
125269
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
125270
- }) | ({
125271
- kind: "story";
125272
- storyType: "headerFooterPart";
125273
- refId: string;
125274
- }) | ({
125275
- kind: "story";
125276
- storyType: "footnote";
125277
- noteId: string;
125278
- }) | ({
125279
- kind: "story";
125280
- storyType: "endnote";
125281
- noteId: string;
125282
- }) | ({
125283
- kind: "story";
125284
- storyType: "textbox";
125285
- textboxId: string;
125286
- });
125287
125960
  });
125288
125961
  in?: ({
125289
125962
  kind: "story";
@@ -125316,10 +125989,315 @@ export interface DocInsertBoundParams {
125316
125989
  storyType: "textbox";
125317
125990
  textboxId: string;
125318
125991
  });
125319
- value?: string;
125320
- type?: "text" | "markdown" | "html";
125321
- ref?: string;
125322
125992
  placement?: "before" | "after" | "insideStart" | "insideEnd";
125993
+ capture?: {
125994
+ formatVersion: 1;
125995
+ snapshotId?: string;
125996
+ at: ({
125997
+ kind: "selection";
125998
+ start: ({
125999
+ kind: "text";
126000
+ blockId: string;
126001
+ offset: number;
126002
+ story?: ({
126003
+ kind: "story";
126004
+ storyType: "body";
126005
+ }) | ({
126006
+ kind: "story";
126007
+ storyType: "headerFooterSlot";
126008
+ section: {
126009
+ kind: "section";
126010
+ sectionId: string;
126011
+ };
126012
+ headerFooterKind: "header" | "footer";
126013
+ variant: "default" | "first" | "even";
126014
+ resolution?: "effective" | "explicit";
126015
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
126016
+ }) | ({
126017
+ kind: "story";
126018
+ storyType: "headerFooterPart";
126019
+ refId: string;
126020
+ }) | ({
126021
+ kind: "story";
126022
+ storyType: "footnote";
126023
+ noteId: string;
126024
+ }) | ({
126025
+ kind: "story";
126026
+ storyType: "endnote";
126027
+ noteId: string;
126028
+ }) | ({
126029
+ kind: "story";
126030
+ storyType: "textbox";
126031
+ textboxId: string;
126032
+ });
126033
+ }) | ({
126034
+ kind: "nodeEdge";
126035
+ node: {
126036
+ kind: "block";
126037
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
126038
+ nodeId: string;
126039
+ story?: ({
126040
+ kind: "story";
126041
+ storyType: "body";
126042
+ }) | ({
126043
+ kind: "story";
126044
+ storyType: "headerFooterSlot";
126045
+ section: {
126046
+ kind: "section";
126047
+ sectionId: string;
126048
+ };
126049
+ headerFooterKind: "header" | "footer";
126050
+ variant: "default" | "first" | "even";
126051
+ resolution?: "effective" | "explicit";
126052
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
126053
+ }) | ({
126054
+ kind: "story";
126055
+ storyType: "headerFooterPart";
126056
+ refId: string;
126057
+ }) | ({
126058
+ kind: "story";
126059
+ storyType: "footnote";
126060
+ noteId: string;
126061
+ }) | ({
126062
+ kind: "story";
126063
+ storyType: "endnote";
126064
+ noteId: string;
126065
+ }) | ({
126066
+ kind: "story";
126067
+ storyType: "textbox";
126068
+ textboxId: string;
126069
+ });
126070
+ };
126071
+ edge: "before" | "after";
126072
+ });
126073
+ end: ({
126074
+ kind: "text";
126075
+ blockId: string;
126076
+ offset: number;
126077
+ story?: ({
126078
+ kind: "story";
126079
+ storyType: "body";
126080
+ }) | ({
126081
+ kind: "story";
126082
+ storyType: "headerFooterSlot";
126083
+ section: {
126084
+ kind: "section";
126085
+ sectionId: string;
126086
+ };
126087
+ headerFooterKind: "header" | "footer";
126088
+ variant: "default" | "first" | "even";
126089
+ resolution?: "effective" | "explicit";
126090
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
126091
+ }) | ({
126092
+ kind: "story";
126093
+ storyType: "headerFooterPart";
126094
+ refId: string;
126095
+ }) | ({
126096
+ kind: "story";
126097
+ storyType: "footnote";
126098
+ noteId: string;
126099
+ }) | ({
126100
+ kind: "story";
126101
+ storyType: "endnote";
126102
+ noteId: string;
126103
+ }) | ({
126104
+ kind: "story";
126105
+ storyType: "textbox";
126106
+ textboxId: string;
126107
+ });
126108
+ }) | ({
126109
+ kind: "nodeEdge";
126110
+ node: {
126111
+ kind: "block";
126112
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
126113
+ nodeId: string;
126114
+ story?: ({
126115
+ kind: "story";
126116
+ storyType: "body";
126117
+ }) | ({
126118
+ kind: "story";
126119
+ storyType: "headerFooterSlot";
126120
+ section: {
126121
+ kind: "section";
126122
+ sectionId: string;
126123
+ };
126124
+ headerFooterKind: "header" | "footer";
126125
+ variant: "default" | "first" | "even";
126126
+ resolution?: "effective" | "explicit";
126127
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
126128
+ }) | ({
126129
+ kind: "story";
126130
+ storyType: "headerFooterPart";
126131
+ refId: string;
126132
+ }) | ({
126133
+ kind: "story";
126134
+ storyType: "footnote";
126135
+ noteId: string;
126136
+ }) | ({
126137
+ kind: "story";
126138
+ storyType: "endnote";
126139
+ noteId: string;
126140
+ }) | ({
126141
+ kind: "story";
126142
+ storyType: "textbox";
126143
+ textboxId: string;
126144
+ });
126145
+ };
126146
+ edge: "before" | "after";
126147
+ });
126148
+ story?: ({
126149
+ kind: "story";
126150
+ storyType: "body";
126151
+ }) | ({
126152
+ kind: "story";
126153
+ storyType: "headerFooterSlot";
126154
+ section: {
126155
+ kind: "section";
126156
+ sectionId: string;
126157
+ };
126158
+ headerFooterKind: "header" | "footer";
126159
+ variant: "default" | "first" | "even";
126160
+ resolution?: "effective" | "explicit";
126161
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
126162
+ }) | ({
126163
+ kind: "story";
126164
+ storyType: "headerFooterPart";
126165
+ refId: string;
126166
+ }) | ({
126167
+ kind: "story";
126168
+ storyType: "footnote";
126169
+ noteId: string;
126170
+ }) | ({
126171
+ kind: "story";
126172
+ storyType: "endnote";
126173
+ noteId: string;
126174
+ }) | ({
126175
+ kind: "story";
126176
+ storyType: "textbox";
126177
+ textboxId: string;
126178
+ });
126179
+ coordinateSpace?: "visible" | "tracked";
126180
+ }) | ({
126181
+ kind: "tableCells";
126182
+ selectionMode?: "cells";
126183
+ isRectangular?: true;
126184
+ tableId: string;
126185
+ start: {
126186
+ rowIndex: number;
126187
+ columnIndex: number;
126188
+ };
126189
+ end: {
126190
+ rowIndex: number;
126191
+ columnIndex: number;
126192
+ };
126193
+ story?: ({
126194
+ kind: "story";
126195
+ storyType: "body";
126196
+ }) | ({
126197
+ kind: "story";
126198
+ storyType: "headerFooterSlot";
126199
+ section: {
126200
+ kind: "section";
126201
+ sectionId: string;
126202
+ };
126203
+ headerFooterKind: "header" | "footer";
126204
+ variant: "default" | "first" | "even";
126205
+ resolution?: "effective" | "explicit";
126206
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
126207
+ }) | ({
126208
+ kind: "story";
126209
+ storyType: "headerFooterPart";
126210
+ refId: string;
126211
+ }) | ({
126212
+ kind: "story";
126213
+ storyType: "footnote";
126214
+ noteId: string;
126215
+ }) | ({
126216
+ kind: "story";
126217
+ storyType: "endnote";
126218
+ noteId: string;
126219
+ }) | ({
126220
+ kind: "story";
126221
+ storyType: "textbox";
126222
+ textboxId: string;
126223
+ });
126224
+ });
126225
+ evaluatedRevision: string;
126226
+ fragment: {
126227
+ placement: "inline" | "blocks" | "table";
126228
+ xml: string;
126229
+ namespaces: Record<string, unknown>;
126230
+ table?: {
126231
+ tableId: string;
126232
+ gridColumnCount: number;
126233
+ cells: Array<{
126234
+ rowIndex: number;
126235
+ columnIndex: number;
126236
+ gridSpan: number;
126237
+ vMerge: "none" | "restart" | "continue";
126238
+ }>;
126239
+ };
126240
+ };
126241
+ source: {
126242
+ story: (({
126243
+ kind: "story";
126244
+ storyType: "body";
126245
+ }) | ({
126246
+ kind: "story";
126247
+ storyType: "headerFooterSlot";
126248
+ section: {
126249
+ kind: "section";
126250
+ sectionId: string;
126251
+ };
126252
+ headerFooterKind: "header" | "footer";
126253
+ variant: "default" | "first" | "even";
126254
+ resolution?: "effective" | "explicit";
126255
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
126256
+ }) | ({
126257
+ kind: "story";
126258
+ storyType: "headerFooterPart";
126259
+ refId: string;
126260
+ }) | ({
126261
+ kind: "story";
126262
+ storyType: "footnote";
126263
+ noteId: string;
126264
+ }) | ({
126265
+ kind: "story";
126266
+ storyType: "endnote";
126267
+ noteId: string;
126268
+ }) | ({
126269
+ kind: "story";
126270
+ storyType: "textbox";
126271
+ textboxId: string;
126272
+ })) | unknown;
126273
+ partUri: string;
126274
+ paragraphStyleId: string | unknown;
126275
+ packageRevision?: string;
126276
+ };
126277
+ context: {
126278
+ xml: Array<string>;
126279
+ tableMerges?: Array<{
126280
+ selectedRowIndex: number;
126281
+ columnIndex: number;
126282
+ restartRowIndex: number;
126283
+ restartCellPropertiesXml: string;
126284
+ }>;
126285
+ };
126286
+ dependencies: Array<{
126287
+ sourcePartUri: string;
126288
+ relationshipId: string;
126289
+ relationshipType: string;
126290
+ target: string;
126291
+ targetMode: "Internal" | "External";
126292
+ contentType: string | unknown;
126293
+ dataBase64?: string;
126294
+ }>;
126295
+ diagnostics: Array<{
126296
+ code: string;
126297
+ message: string;
126298
+ }>;
126299
+ };
126300
+ ref?: string;
125323
126301
  content?: Record<string, unknown> | Array<Record<string, unknown>>;
125324
126302
  nestingPolicy?: {
125325
126303
  tables?: "forbid" | "allow";
@@ -125343,7 +126321,44 @@ export interface DocReplaceBoundParams {
125343
126321
  requestSha256: string;
125344
126322
  analysisSha256: string;
125345
126323
  };
126324
+ replaceMode?: "contents";
126325
+ expectedSnapshotId?: string;
125346
126326
  target?: ({
126327
+ kind: "block";
126328
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
126329
+ nodeId: string;
126330
+ story?: ({
126331
+ kind: "story";
126332
+ storyType: "body";
126333
+ }) | ({
126334
+ kind: "story";
126335
+ storyType: "headerFooterSlot";
126336
+ section: {
126337
+ kind: "section";
126338
+ sectionId: string;
126339
+ };
126340
+ headerFooterKind: "header" | "footer";
126341
+ variant: "default" | "first" | "even";
126342
+ resolution?: "effective" | "explicit";
126343
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
126344
+ }) | ({
126345
+ kind: "story";
126346
+ storyType: "headerFooterPart";
126347
+ refId: string;
126348
+ }) | ({
126349
+ kind: "story";
126350
+ storyType: "footnote";
126351
+ noteId: string;
126352
+ }) | ({
126353
+ kind: "story";
126354
+ storyType: "endnote";
126355
+ noteId: string;
126356
+ }) | ({
126357
+ kind: "story";
126358
+ storyType: "textbox";
126359
+ textboxId: string;
126360
+ });
126361
+ }) | ({
125347
126362
  kind: "selection";
125348
126363
  start: ({
125349
126364
  kind: "text";
@@ -125492,120 +126507,404 @@ export interface DocReplaceBoundParams {
125492
126507
  storyType: "textbox";
125493
126508
  textboxId: string;
125494
126509
  });
125495
- };
125496
- edge: "before" | "after";
125497
- });
125498
- story?: ({
125499
- kind: "story";
125500
- storyType: "body";
126510
+ };
126511
+ edge: "before" | "after";
126512
+ });
126513
+ story?: ({
126514
+ kind: "story";
126515
+ storyType: "body";
126516
+ }) | ({
126517
+ kind: "story";
126518
+ storyType: "headerFooterSlot";
126519
+ section: {
126520
+ kind: "section";
126521
+ sectionId: string;
126522
+ };
126523
+ headerFooterKind: "header" | "footer";
126524
+ variant: "default" | "first" | "even";
126525
+ resolution?: "effective" | "explicit";
126526
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
126527
+ }) | ({
126528
+ kind: "story";
126529
+ storyType: "headerFooterPart";
126530
+ refId: string;
126531
+ }) | ({
126532
+ kind: "story";
126533
+ storyType: "footnote";
126534
+ noteId: string;
126535
+ }) | ({
126536
+ kind: "story";
126537
+ storyType: "endnote";
126538
+ noteId: string;
126539
+ }) | ({
126540
+ kind: "story";
126541
+ storyType: "textbox";
126542
+ textboxId: string;
126543
+ });
126544
+ coordinateSpace?: "visible" | "tracked";
126545
+ }) | ({
126546
+ kind: "story";
126547
+ storyType: "body";
126548
+ });
126549
+ text?: string;
126550
+ snapshotId?: string;
126551
+ value?: string;
126552
+ type?: "ooxml" | "html" | "markdown";
126553
+ namespaces?: Record<string, unknown>;
126554
+ sourcePartUri?: string;
126555
+ dependencies?: Array<{
126556
+ sourcePartUri: string;
126557
+ relationshipId: string;
126558
+ relationshipType: string;
126559
+ target: string;
126560
+ targetMode: "Internal" | "External";
126561
+ contentType: string | unknown;
126562
+ dataBase64?: string;
126563
+ }>;
126564
+ in?: ({
126565
+ kind: "story";
126566
+ storyType: "body";
126567
+ }) | ({
126568
+ kind: "story";
126569
+ storyType: "headerFooterSlot";
126570
+ section: {
126571
+ kind: "section";
126572
+ sectionId: string;
126573
+ };
126574
+ headerFooterKind: "header" | "footer";
126575
+ variant: "default" | "first" | "even";
126576
+ resolution?: "effective" | "explicit";
126577
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
126578
+ }) | ({
126579
+ kind: "story";
126580
+ storyType: "headerFooterPart";
126581
+ refId: string;
126582
+ }) | ({
126583
+ kind: "story";
126584
+ storyType: "footnote";
126585
+ noteId: string;
126586
+ }) | ({
126587
+ kind: "story";
126588
+ storyType: "endnote";
126589
+ noteId: string;
126590
+ }) | ({
126591
+ kind: "story";
126592
+ storyType: "textbox";
126593
+ textboxId: string;
126594
+ });
126595
+ nestingPolicy?: {
126596
+ tables?: "forbid" | "allow";
126597
+ };
126598
+ capture?: {
126599
+ formatVersion: 1;
126600
+ snapshotId?: string;
126601
+ at: ({
126602
+ kind: "selection";
126603
+ start: ({
126604
+ kind: "text";
126605
+ blockId: string;
126606
+ offset: number;
126607
+ story?: ({
126608
+ kind: "story";
126609
+ storyType: "body";
126610
+ }) | ({
126611
+ kind: "story";
126612
+ storyType: "headerFooterSlot";
126613
+ section: {
126614
+ kind: "section";
126615
+ sectionId: string;
126616
+ };
126617
+ headerFooterKind: "header" | "footer";
126618
+ variant: "default" | "first" | "even";
126619
+ resolution?: "effective" | "explicit";
126620
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
126621
+ }) | ({
126622
+ kind: "story";
126623
+ storyType: "headerFooterPart";
126624
+ refId: string;
126625
+ }) | ({
126626
+ kind: "story";
126627
+ storyType: "footnote";
126628
+ noteId: string;
126629
+ }) | ({
126630
+ kind: "story";
126631
+ storyType: "endnote";
126632
+ noteId: string;
126633
+ }) | ({
126634
+ kind: "story";
126635
+ storyType: "textbox";
126636
+ textboxId: string;
126637
+ });
126638
+ }) | ({
126639
+ kind: "nodeEdge";
126640
+ node: {
126641
+ kind: "block";
126642
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
126643
+ nodeId: string;
126644
+ story?: ({
126645
+ kind: "story";
126646
+ storyType: "body";
126647
+ }) | ({
126648
+ kind: "story";
126649
+ storyType: "headerFooterSlot";
126650
+ section: {
126651
+ kind: "section";
126652
+ sectionId: string;
126653
+ };
126654
+ headerFooterKind: "header" | "footer";
126655
+ variant: "default" | "first" | "even";
126656
+ resolution?: "effective" | "explicit";
126657
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
126658
+ }) | ({
126659
+ kind: "story";
126660
+ storyType: "headerFooterPart";
126661
+ refId: string;
126662
+ }) | ({
126663
+ kind: "story";
126664
+ storyType: "footnote";
126665
+ noteId: string;
126666
+ }) | ({
126667
+ kind: "story";
126668
+ storyType: "endnote";
126669
+ noteId: string;
126670
+ }) | ({
126671
+ kind: "story";
126672
+ storyType: "textbox";
126673
+ textboxId: string;
126674
+ });
126675
+ };
126676
+ edge: "before" | "after";
126677
+ });
126678
+ end: ({
126679
+ kind: "text";
126680
+ blockId: string;
126681
+ offset: number;
126682
+ story?: ({
126683
+ kind: "story";
126684
+ storyType: "body";
126685
+ }) | ({
126686
+ kind: "story";
126687
+ storyType: "headerFooterSlot";
126688
+ section: {
126689
+ kind: "section";
126690
+ sectionId: string;
126691
+ };
126692
+ headerFooterKind: "header" | "footer";
126693
+ variant: "default" | "first" | "even";
126694
+ resolution?: "effective" | "explicit";
126695
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
126696
+ }) | ({
126697
+ kind: "story";
126698
+ storyType: "headerFooterPart";
126699
+ refId: string;
126700
+ }) | ({
126701
+ kind: "story";
126702
+ storyType: "footnote";
126703
+ noteId: string;
126704
+ }) | ({
126705
+ kind: "story";
126706
+ storyType: "endnote";
126707
+ noteId: string;
126708
+ }) | ({
126709
+ kind: "story";
126710
+ storyType: "textbox";
126711
+ textboxId: string;
126712
+ });
126713
+ }) | ({
126714
+ kind: "nodeEdge";
126715
+ node: {
126716
+ kind: "block";
126717
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
126718
+ nodeId: string;
126719
+ story?: ({
126720
+ kind: "story";
126721
+ storyType: "body";
126722
+ }) | ({
126723
+ kind: "story";
126724
+ storyType: "headerFooterSlot";
126725
+ section: {
126726
+ kind: "section";
126727
+ sectionId: string;
126728
+ };
126729
+ headerFooterKind: "header" | "footer";
126730
+ variant: "default" | "first" | "even";
126731
+ resolution?: "effective" | "explicit";
126732
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
126733
+ }) | ({
126734
+ kind: "story";
126735
+ storyType: "headerFooterPart";
126736
+ refId: string;
126737
+ }) | ({
126738
+ kind: "story";
126739
+ storyType: "footnote";
126740
+ noteId: string;
126741
+ }) | ({
126742
+ kind: "story";
126743
+ storyType: "endnote";
126744
+ noteId: string;
126745
+ }) | ({
126746
+ kind: "story";
126747
+ storyType: "textbox";
126748
+ textboxId: string;
126749
+ });
126750
+ };
126751
+ edge: "before" | "after";
126752
+ });
126753
+ story?: ({
126754
+ kind: "story";
126755
+ storyType: "body";
126756
+ }) | ({
126757
+ kind: "story";
126758
+ storyType: "headerFooterSlot";
126759
+ section: {
126760
+ kind: "section";
126761
+ sectionId: string;
126762
+ };
126763
+ headerFooterKind: "header" | "footer";
126764
+ variant: "default" | "first" | "even";
126765
+ resolution?: "effective" | "explicit";
126766
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
126767
+ }) | ({
126768
+ kind: "story";
126769
+ storyType: "headerFooterPart";
126770
+ refId: string;
126771
+ }) | ({
126772
+ kind: "story";
126773
+ storyType: "footnote";
126774
+ noteId: string;
126775
+ }) | ({
126776
+ kind: "story";
126777
+ storyType: "endnote";
126778
+ noteId: string;
126779
+ }) | ({
126780
+ kind: "story";
126781
+ storyType: "textbox";
126782
+ textboxId: string;
126783
+ });
126784
+ coordinateSpace?: "visible" | "tracked";
125501
126785
  }) | ({
125502
- kind: "story";
125503
- storyType: "headerFooterSlot";
125504
- section: {
125505
- kind: "section";
125506
- sectionId: string;
126786
+ kind: "tableCells";
126787
+ selectionMode?: "cells";
126788
+ isRectangular?: true;
126789
+ tableId: string;
126790
+ start: {
126791
+ rowIndex: number;
126792
+ columnIndex: number;
125507
126793
  };
125508
- headerFooterKind: "header" | "footer";
125509
- variant: "default" | "first" | "even";
125510
- resolution?: "effective" | "explicit";
125511
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
125512
- }) | ({
125513
- kind: "story";
125514
- storyType: "headerFooterPart";
125515
- refId: string;
125516
- }) | ({
125517
- kind: "story";
125518
- storyType: "footnote";
125519
- noteId: string;
125520
- }) | ({
125521
- kind: "story";
125522
- storyType: "endnote";
125523
- noteId: string;
125524
- }) | ({
125525
- kind: "story";
125526
- storyType: "textbox";
125527
- textboxId: string;
125528
- });
125529
- coordinateSpace?: "visible" | "tracked";
125530
- }) | ({
125531
- kind: "story";
125532
- storyType: "body";
125533
- }) | ({
125534
- kind: "block";
125535
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
125536
- nodeId: string;
125537
- story?: ({
125538
- kind: "story";
125539
- storyType: "body";
125540
- }) | ({
125541
- kind: "story";
125542
- storyType: "headerFooterSlot";
125543
- section: {
125544
- kind: "section";
125545
- sectionId: string;
126794
+ end: {
126795
+ rowIndex: number;
126796
+ columnIndex: number;
125546
126797
  };
125547
- headerFooterKind: "header" | "footer";
125548
- variant: "default" | "first" | "even";
125549
- resolution?: "effective" | "explicit";
125550
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
125551
- }) | ({
125552
- kind: "story";
125553
- storyType: "headerFooterPart";
125554
- refId: string;
125555
- }) | ({
125556
- kind: "story";
125557
- storyType: "footnote";
125558
- noteId: string;
125559
- }) | ({
125560
- kind: "story";
125561
- storyType: "endnote";
125562
- noteId: string;
125563
- }) | ({
125564
- kind: "story";
125565
- storyType: "textbox";
125566
- textboxId: string;
126798
+ story?: ({
126799
+ kind: "story";
126800
+ storyType: "body";
126801
+ }) | ({
126802
+ kind: "story";
126803
+ storyType: "headerFooterSlot";
126804
+ section: {
126805
+ kind: "section";
126806
+ sectionId: string;
126807
+ };
126808
+ headerFooterKind: "header" | "footer";
126809
+ variant: "default" | "first" | "even";
126810
+ resolution?: "effective" | "explicit";
126811
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
126812
+ }) | ({
126813
+ kind: "story";
126814
+ storyType: "headerFooterPart";
126815
+ refId: string;
126816
+ }) | ({
126817
+ kind: "story";
126818
+ storyType: "footnote";
126819
+ noteId: string;
126820
+ }) | ({
126821
+ kind: "story";
126822
+ storyType: "endnote";
126823
+ noteId: string;
126824
+ }) | ({
126825
+ kind: "story";
126826
+ storyType: "textbox";
126827
+ textboxId: string;
126828
+ });
125567
126829
  });
125568
- });
125569
- in?: ({
125570
- kind: "story";
125571
- storyType: "body";
125572
- }) | ({
125573
- kind: "story";
125574
- storyType: "headerFooterSlot";
125575
- section: {
125576
- kind: "section";
125577
- sectionId: string;
126830
+ evaluatedRevision: string;
126831
+ fragment: {
126832
+ placement: "inline" | "blocks" | "table";
126833
+ xml: string;
126834
+ namespaces: Record<string, unknown>;
126835
+ table?: {
126836
+ tableId: string;
126837
+ gridColumnCount: number;
126838
+ cells: Array<{
126839
+ rowIndex: number;
126840
+ columnIndex: number;
126841
+ gridSpan: number;
126842
+ vMerge: "none" | "restart" | "continue";
126843
+ }>;
126844
+ };
125578
126845
  };
125579
- headerFooterKind: "header" | "footer";
125580
- variant: "default" | "first" | "even";
125581
- resolution?: "effective" | "explicit";
125582
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
125583
- }) | ({
125584
- kind: "story";
125585
- storyType: "headerFooterPart";
125586
- refId: string;
125587
- }) | ({
125588
- kind: "story";
125589
- storyType: "footnote";
125590
- noteId: string;
125591
- }) | ({
125592
- kind: "story";
125593
- storyType: "endnote";
125594
- noteId: string;
125595
- }) | ({
125596
- kind: "story";
125597
- storyType: "textbox";
125598
- textboxId: string;
125599
- });
125600
- text?: string;
126846
+ source: {
126847
+ story: (({
126848
+ kind: "story";
126849
+ storyType: "body";
126850
+ }) | ({
126851
+ kind: "story";
126852
+ storyType: "headerFooterSlot";
126853
+ section: {
126854
+ kind: "section";
126855
+ sectionId: string;
126856
+ };
126857
+ headerFooterKind: "header" | "footer";
126858
+ variant: "default" | "first" | "even";
126859
+ resolution?: "effective" | "explicit";
126860
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
126861
+ }) | ({
126862
+ kind: "story";
126863
+ storyType: "headerFooterPart";
126864
+ refId: string;
126865
+ }) | ({
126866
+ kind: "story";
126867
+ storyType: "footnote";
126868
+ noteId: string;
126869
+ }) | ({
126870
+ kind: "story";
126871
+ storyType: "endnote";
126872
+ noteId: string;
126873
+ }) | ({
126874
+ kind: "story";
126875
+ storyType: "textbox";
126876
+ textboxId: string;
126877
+ })) | unknown;
126878
+ partUri: string;
126879
+ paragraphStyleId: string | unknown;
126880
+ packageRevision?: string;
126881
+ };
126882
+ context: {
126883
+ xml: Array<string>;
126884
+ tableMerges?: Array<{
126885
+ selectedRowIndex: number;
126886
+ columnIndex: number;
126887
+ restartRowIndex: number;
126888
+ restartCellPropertiesXml: string;
126889
+ }>;
126890
+ };
126891
+ dependencies: Array<{
126892
+ sourcePartUri: string;
126893
+ relationshipId: string;
126894
+ relationshipType: string;
126895
+ target: string;
126896
+ targetMode: "Internal" | "External";
126897
+ contentType: string | unknown;
126898
+ dataBase64?: string;
126899
+ }>;
126900
+ diagnostics: Array<{
126901
+ code: string;
126902
+ message: string;
126903
+ }>;
126904
+ };
125601
126905
  expectedText?: string;
125602
126906
  ref?: string;
125603
126907
  content?: Record<string, unknown> | Array<Record<string, unknown>>;
125604
- nestingPolicy?: {
125605
- tables?: "forbid" | "allow";
125606
- };
125607
- value?: string;
125608
- type?: "html" | "markdown";
125609
126908
  blockId?: string;
125610
126909
  start?: number;
125611
126910
  end?: number;
@@ -142373,7 +143672,11 @@ export interface DocRangesResolveBoundParams {
142373
143672
  export interface DocSelectionCurrentBoundParams {
142374
143673
  includeText?: boolean;
142375
143674
  }
143675
+ export interface DocSelectionReleaseSnapshotBoundParams {
143676
+ snapshotId: string;
143677
+ }
142376
143678
  export interface DocSelectionExtractOoxmlBoundParams {
143679
+ retain?: boolean;
142377
143680
  at?: ({
142378
143681
  kind: "selection";
142379
143682
  start: ({
@@ -146830,12 +148133,16 @@ export interface DocCapabilitiesCheckBoundParams {
146830
148133
  });
146831
148134
  includeSourceMap?: boolean;
146832
148135
  });
146833
- options?: {
148136
+ options?: ({
146834
148137
  changeMode?: "direct" | "tracked";
146835
- };
148138
+ }) | ({
148139
+ changeMode?: "direct" | "tracked";
148140
+ replaceMode?: "contents";
148141
+ expectedSnapshotId?: string;
148142
+ });
146836
148143
  }
146837
148144
  export interface DocCapabilitiesResolveBoundParams {
146838
- operationId: "get" | "find" | "getNode" | "getNodeById" | "getText" | "getMarkdown" | "getHtml" | "projectMarkdown" | "projectHtml" | "markdownToFragment" | "htmlToFragment" | "info" | "extract" | "clearContent" | "insert" | "replace" | "delete" | "formatRange" | "blocks.findText" | "blocks.list" | "blocks.delete" | "blocks.deleteRange" | "blocks.split" | "blocks.merge" | "blocks.move" | "format.apply" | "format.bold" | "format.italic" | "format.strike" | "format.underline" | "format.highlight" | "format.color" | "format.fontSize" | "format.fontFamily" | "format.letterSpacing" | "format.vertAlign" | "format.position" | "format.dstrike" | "format.smallCaps" | "format.caps" | "format.shading" | "format.border" | "format.outline" | "format.shadow" | "format.emboss" | "format.imprint" | "format.charScale" | "format.kerning" | "format.vanish" | "format.webHidden" | "format.specVanish" | "format.rtl" | "format.cs" | "format.bCs" | "format.iCs" | "format.eastAsianLayout" | "format.em" | "format.fitText" | "format.snapToGrid" | "format.lang" | "format.oMath" | "format.rStyle" | "format.rFonts" | "format.fontSizeCs" | "format.ligatures" | "format.numForm" | "format.numSpacing" | "format.stylisticSets" | "format.contextualAlternates" | "styles.apply" | "styles.getCatalog" | "templates.apply" | "create.paragraph" | "create.heading" | "create.sectionBreak" | "sections.list" | "sections.get" | "sections.setBreakType" | "sections.setPageMargins" | "sections.setHeaderFooterMargins" | "sections.setPageSetup" | "sections.setColumns" | "sections.setLineNumbering" | "sections.setPageNumbering" | "sections.setTitlePage" | "sections.setOddEvenHeadersFooters" | "sections.setVerticalAlign" | "sections.setSectionDirection" | "sections.setHeaderFooterRef" | "sections.clearHeaderFooterRef" | "sections.setLinkToPrevious" | "sections.setPageBorders" | "sections.clearPageBorders" | "styles.paragraph.setStyle" | "styles.paragraph.setStyleRef" | "styles.paragraph.clearStyle" | "format.paragraph.resetDirectFormatting" | "format.paragraph.setAlignment" | "format.paragraph.clearAlignment" | "format.paragraph.setIndentation" | "format.paragraph.clearIndentation" | "format.paragraph.setSpacing" | "format.paragraph.clearSpacing" | "format.paragraph.setKeepOptions" | "format.paragraph.setOutlineLevel" | "format.paragraph.setFlowOptions" | "format.paragraph.setTabStop" | "format.paragraph.clearTabStop" | "format.paragraph.clearAllTabStops" | "format.paragraph.setBorder" | "format.paragraph.clearBorder" | "format.paragraph.setShading" | "format.paragraph.clearShading" | "format.paragraph.setMarkRunProps" | "format.paragraph.setDirection" | "format.paragraph.clearDirection" | "format.paragraph.setNumbering" | "lists.list" | "lists.get" | "lists.insert" | "lists.create" | "lists.attach" | "lists.detach" | "lists.delete" | "lists.indent" | "lists.outdent" | "lists.join" | "lists.canJoin" | "lists.separate" | "lists.merge" | "lists.split" | "lists.setLevel" | "lists.setValue" | "lists.continuePrevious" | "lists.canContinuePrevious" | "lists.setLevelRestart" | "lists.convertToText" | "lists.applyTemplate" | "lists.applyPreset" | "lists.setType" | "lists.captureTemplate" | "lists.setLevelNumbering" | "lists.setLevelBullet" | "lists.setLevelPictureBullet" | "lists.setLevelAlignment" | "lists.setLevelIndents" | "lists.setLevelTrailingCharacter" | "lists.setLevelMarkerFont" | "lists.clearLevelOverrides" | "lists.getStyle" | "lists.applyStyle" | "lists.restartAt" | "lists.setLevelNumberStyle" | "lists.setLevelText" | "lists.setLevelStart" | "lists.setLevelLayout" | "lists.getState" | "lists.apply" | "lists.continue" | "lists.restart" | "lists.remove" | "comments.create" | "comments.patch" | "comments.delete" | "comments.get" | "comments.list" | "trackChanges.list" | "trackChanges.get" | "trackChanges.decide" | "query.match" | "ranges.resolve" | "selection.current" | "selection.extractOoxml" | "mutations.preview" | "mutations.apply" | "plan.execute" | "capabilities.get" | "capabilities.check" | "capabilities.resolve" | "create.table" | "tables.convertFromText" | "tables.delete" | "tables.clearContents" | "tables.move" | "tables.split" | "tables.convertToText" | "tables.setLayout" | "tables.insertRow" | "tables.deleteRow" | "tables.moveRow" | "tables.setRowHeight" | "tables.distributeRows" | "tables.setRowOptions" | "tables.insertColumn" | "tables.deleteColumn" | "tables.moveColumn" | "tables.setColumnWidth" | "tables.distributeColumns" | "tables.insertCell" | "tables.deleteCell" | "tables.mergeCells" | "tables.unmergeCells" | "tables.splitCell" | "tables.setCellProperties" | "tables.setCellText" | "tables.sort" | "tables.setAltText" | "tables.setStyle" | "tables.clearStyle" | "tables.setStyleOption" | "tables.setBorder" | "tables.clearBorder" | "tables.applyBorderPreset" | "tables.setShading" | "tables.clearShading" | "tables.setTablePadding" | "tables.setCellPadding" | "tables.setCellSpacing" | "tables.clearCellSpacing" | "tables.applyStyle" | "tables.setBorders" | "tables.setTableOptions" | "tables.applyPreset" | "tables.get" | "tables.getCells" | "tables.getProperties" | "tables.getStyles" | "tables.setDefaultStyle" | "tables.clearDefaultStyle" | "create.tableOfContents" | "toc.list" | "toc.get" | "toc.configure" | "toc.update" | "toc.remove" | "toc.markEntry" | "toc.unmarkEntry" | "toc.listEntries" | "toc.getEntry" | "toc.editEntry" | "history.get" | "history.undo" | "history.redo" | "create.image" | "images.list" | "images.get" | "images.delete" | "images.move" | "images.convertToInline" | "images.convertToFloating" | "images.setSize" | "images.setWrapType" | "images.setWrapSide" | "images.setWrapDistances" | "images.setPosition" | "images.setAnchorOptions" | "images.setZOrder" | "images.scale" | "images.setLockAspectRatio" | "images.rotate" | "images.flip" | "images.crop" | "images.resetCrop" | "images.replaceSource" | "images.setAltText" | "images.setDecorative" | "images.setName" | "images.setHyperlink" | "images.insertCaption" | "images.updateCaption" | "images.removeCaption" | "hyperlinks.list" | "hyperlinks.get" | "hyperlinks.wrap" | "hyperlinks.insert" | "hyperlinks.patch" | "hyperlinks.remove" | "headerFooters.list" | "headerFooters.get" | "headerFooters.resolve" | "headerFooters.refs.set" | "headerFooters.refs.clear" | "headerFooters.refs.setLinkedToPrevious" | "headerFooters.parts.list" | "headerFooters.parts.create" | "headerFooters.parts.delete" | "headerFooters.pageNumbers.get" | "headerFooters.pageNumbers.insert" | "headerFooters.pageNumbers.set" | "headerFooters.pageNumbers.remove" | "watermarks.apply" | "watermarks.list" | "watermarks.insert" | "watermarks.replace" | "watermarks.remove" | "create.contentControl" | "contentControls.list" | "contentControls.get" | "contentControls.listInRange" | "contentControls.selectByTag" | "contentControls.selectByTitle" | "contentControls.listChildren" | "contentControls.getParent" | "contentControls.wrap" | "contentControls.unwrap" | "contentControls.delete" | "contentControls.copy" | "contentControls.move" | "contentControls.patch" | "contentControls.setLockMode" | "contentControls.setType" | "contentControls.getContent" | "contentControls.replaceContent" | "contentControls.clearContent" | "contentControls.appendContent" | "contentControls.prependContent" | "contentControls.insertBefore" | "contentControls.insertAfter" | "contentControls.getBinding" | "contentControls.setBinding" | "contentControls.clearBinding" | "contentControls.getRawProperties" | "contentControls.patchRawProperties" | "contentControls.validateWordCompatibility" | "contentControls.normalizeWordCompatibility" | "contentControls.normalizeTagPayload" | "contentControls.text.setMultiline" | "contentControls.text.setValue" | "contentControls.text.clearValue" | "contentControls.date.setValue" | "contentControls.date.clearValue" | "contentControls.date.setDisplayFormat" | "contentControls.date.setDisplayLocale" | "contentControls.date.setStorageFormat" | "contentControls.date.setCalendar" | "contentControls.checkbox.getState" | "contentControls.checkbox.setState" | "contentControls.checkbox.toggle" | "contentControls.checkbox.setSymbolPair" | "contentControls.choiceList.getItems" | "contentControls.choiceList.setItems" | "contentControls.choiceList.setSelected" | "contentControls.repeatingSection.listItems" | "contentControls.repeatingSection.insertItemBefore" | "contentControls.repeatingSection.insertItemAfter" | "contentControls.repeatingSection.cloneItem" | "contentControls.repeatingSection.deleteItem" | "contentControls.repeatingSection.setAllowInsertDelete" | "contentControls.group.wrap" | "contentControls.group.ungroup" | "bookmarks.list" | "bookmarks.get" | "bookmarks.insert" | "bookmarks.rename" | "bookmarks.remove" | "footnotes.list" | "footnotes.get" | "footnotes.insert" | "footnotes.update" | "footnotes.remove" | "footnotes.configure" | "clipboard.parse" | "clipboard.insert" | "clipboard.serializeSelection" | "crossRefs.list" | "crossRefs.get" | "crossRefs.insert" | "crossRefs.rebuild" | "crossRefs.remove" | "index.list" | "index.get" | "index.insert" | "index.configure" | "index.rebuild" | "index.remove" | "index.entries.list" | "index.entries.get" | "index.entries.insert" | "index.entries.update" | "index.entries.remove" | "captions.list" | "captions.get" | "captions.insert" | "captions.update" | "captions.remove" | "captions.configure" | "fields.list" | "fields.get" | "fields.insert" | "fields.rebuild" | "fields.remove" | "citations.list" | "citations.get" | "citations.insert" | "citations.update" | "citations.remove" | "citations.sources.list" | "citations.sources.get" | "citations.sources.insert" | "citations.sources.update" | "citations.sources.remove" | "citations.bibliography.get" | "citations.bibliography.insert" | "citations.bibliography.rebuild" | "citations.bibliography.configure" | "citations.bibliography.remove" | "authorities.list" | "authorities.get" | "authorities.insert" | "authorities.configure" | "authorities.rebuild" | "authorities.remove" | "authorities.entries.list" | "authorities.entries.get" | "authorities.entries.insert" | "authorities.entries.update" | "authorities.entries.remove" | "diff.capture" | "diff.compare" | "diff.apply" | "export.toDocx" | "protection.get" | "protection.setEditingRestriction" | "protection.clearEditingRestriction" | "permissionRanges.list" | "permissionRanges.get" | "permissionRanges.create" | "permissionRanges.remove" | "permissionRanges.updatePrincipal" | "customXml.parts.list" | "customXml.parts.get" | "customXml.parts.create" | "customXml.parts.patch" | "customXml.parts.remove" | "metadata.attach" | "metadata.list" | "metadata.get" | "metadata.update" | "metadata.remove" | "metadata.resolve";
148145
+ operationId: "get" | "find" | "getNode" | "getNodeById" | "getText" | "getMarkdown" | "getHtml" | "projectMarkdown" | "projectHtml" | "markdownToFragment" | "htmlToFragment" | "info" | "extract" | "clearContent" | "insert" | "replace" | "delete" | "formatRange" | "blocks.findText" | "blocks.list" | "blocks.delete" | "blocks.deleteRange" | "blocks.split" | "blocks.merge" | "blocks.move" | "format.apply" | "format.bold" | "format.italic" | "format.strike" | "format.underline" | "format.highlight" | "format.color" | "format.fontSize" | "format.fontFamily" | "format.letterSpacing" | "format.vertAlign" | "format.position" | "format.dstrike" | "format.smallCaps" | "format.caps" | "format.shading" | "format.border" | "format.outline" | "format.shadow" | "format.emboss" | "format.imprint" | "format.charScale" | "format.kerning" | "format.vanish" | "format.webHidden" | "format.specVanish" | "format.rtl" | "format.cs" | "format.bCs" | "format.iCs" | "format.eastAsianLayout" | "format.em" | "format.fitText" | "format.snapToGrid" | "format.lang" | "format.oMath" | "format.rStyle" | "format.rFonts" | "format.fontSizeCs" | "format.ligatures" | "format.numForm" | "format.numSpacing" | "format.stylisticSets" | "format.contextualAlternates" | "styles.apply" | "styles.getCatalog" | "templates.apply" | "create.paragraph" | "create.heading" | "create.sectionBreak" | "sections.list" | "sections.get" | "sections.setBreakType" | "sections.setPageMargins" | "sections.setHeaderFooterMargins" | "sections.setPageSetup" | "sections.setColumns" | "sections.setLineNumbering" | "sections.setPageNumbering" | "sections.setTitlePage" | "sections.setOddEvenHeadersFooters" | "sections.setVerticalAlign" | "sections.setSectionDirection" | "sections.setHeaderFooterRef" | "sections.clearHeaderFooterRef" | "sections.setLinkToPrevious" | "sections.setPageBorders" | "sections.clearPageBorders" | "styles.paragraph.setStyle" | "styles.paragraph.setStyleRef" | "styles.paragraph.clearStyle" | "format.paragraph.resetDirectFormatting" | "format.paragraph.setAlignment" | "format.paragraph.clearAlignment" | "format.paragraph.setIndentation" | "format.paragraph.clearIndentation" | "format.paragraph.setSpacing" | "format.paragraph.clearSpacing" | "format.paragraph.setKeepOptions" | "format.paragraph.setOutlineLevel" | "format.paragraph.setFlowOptions" | "format.paragraph.setTabStop" | "format.paragraph.clearTabStop" | "format.paragraph.clearAllTabStops" | "format.paragraph.setBorder" | "format.paragraph.clearBorder" | "format.paragraph.setShading" | "format.paragraph.clearShading" | "format.paragraph.setMarkRunProps" | "format.paragraph.setDirection" | "format.paragraph.clearDirection" | "format.paragraph.setNumbering" | "lists.list" | "lists.get" | "lists.insert" | "lists.create" | "lists.attach" | "lists.detach" | "lists.delete" | "lists.indent" | "lists.outdent" | "lists.join" | "lists.canJoin" | "lists.separate" | "lists.merge" | "lists.split" | "lists.setLevel" | "lists.setValue" | "lists.continuePrevious" | "lists.canContinuePrevious" | "lists.setLevelRestart" | "lists.convertToText" | "lists.applyTemplate" | "lists.applyPreset" | "lists.setType" | "lists.captureTemplate" | "lists.setLevelNumbering" | "lists.setLevelBullet" | "lists.setLevelPictureBullet" | "lists.setLevelAlignment" | "lists.setLevelIndents" | "lists.setLevelTrailingCharacter" | "lists.setLevelMarkerFont" | "lists.clearLevelOverrides" | "lists.getStyle" | "lists.applyStyle" | "lists.restartAt" | "lists.setLevelNumberStyle" | "lists.setLevelText" | "lists.setLevelStart" | "lists.setLevelLayout" | "lists.getState" | "lists.apply" | "lists.continue" | "lists.restart" | "lists.remove" | "comments.create" | "comments.patch" | "comments.delete" | "comments.get" | "comments.list" | "trackChanges.list" | "trackChanges.get" | "trackChanges.decide" | "query.match" | "ranges.resolve" | "selection.current" | "selection.releaseSnapshot" | "selection.extractOoxml" | "mutations.preview" | "mutations.apply" | "plan.execute" | "capabilities.get" | "capabilities.check" | "capabilities.resolve" | "create.table" | "tables.convertFromText" | "tables.delete" | "tables.clearContents" | "tables.move" | "tables.split" | "tables.convertToText" | "tables.setLayout" | "tables.insertRow" | "tables.deleteRow" | "tables.moveRow" | "tables.setRowHeight" | "tables.distributeRows" | "tables.setRowOptions" | "tables.insertColumn" | "tables.deleteColumn" | "tables.moveColumn" | "tables.setColumnWidth" | "tables.distributeColumns" | "tables.insertCell" | "tables.deleteCell" | "tables.mergeCells" | "tables.unmergeCells" | "tables.splitCell" | "tables.setCellProperties" | "tables.setCellText" | "tables.sort" | "tables.setAltText" | "tables.setStyle" | "tables.clearStyle" | "tables.setStyleOption" | "tables.setBorder" | "tables.clearBorder" | "tables.applyBorderPreset" | "tables.setShading" | "tables.clearShading" | "tables.setTablePadding" | "tables.setCellPadding" | "tables.setCellSpacing" | "tables.clearCellSpacing" | "tables.applyStyle" | "tables.setBorders" | "tables.setTableOptions" | "tables.applyPreset" | "tables.get" | "tables.getCells" | "tables.getProperties" | "tables.getStyles" | "tables.setDefaultStyle" | "tables.clearDefaultStyle" | "create.tableOfContents" | "toc.list" | "toc.get" | "toc.configure" | "toc.update" | "toc.remove" | "toc.markEntry" | "toc.unmarkEntry" | "toc.listEntries" | "toc.getEntry" | "toc.editEntry" | "history.get" | "history.undo" | "history.redo" | "create.image" | "images.list" | "images.get" | "images.delete" | "images.move" | "images.convertToInline" | "images.convertToFloating" | "images.setSize" | "images.setWrapType" | "images.setWrapSide" | "images.setWrapDistances" | "images.setPosition" | "images.setAnchorOptions" | "images.setZOrder" | "images.scale" | "images.setLockAspectRatio" | "images.rotate" | "images.flip" | "images.crop" | "images.resetCrop" | "images.replaceSource" | "images.setAltText" | "images.setDecorative" | "images.setName" | "images.setHyperlink" | "images.insertCaption" | "images.updateCaption" | "images.removeCaption" | "hyperlinks.list" | "hyperlinks.get" | "hyperlinks.wrap" | "hyperlinks.insert" | "hyperlinks.patch" | "hyperlinks.remove" | "headerFooters.list" | "headerFooters.get" | "headerFooters.resolve" | "headerFooters.refs.set" | "headerFooters.refs.clear" | "headerFooters.refs.setLinkedToPrevious" | "headerFooters.parts.list" | "headerFooters.parts.create" | "headerFooters.parts.delete" | "headerFooters.pageNumbers.get" | "headerFooters.pageNumbers.insert" | "headerFooters.pageNumbers.set" | "headerFooters.pageNumbers.remove" | "watermarks.apply" | "watermarks.list" | "watermarks.insert" | "watermarks.replace" | "watermarks.remove" | "create.contentControl" | "contentControls.list" | "contentControls.get" | "contentControls.listInRange" | "contentControls.selectByTag" | "contentControls.selectByTitle" | "contentControls.listChildren" | "contentControls.getParent" | "contentControls.wrap" | "contentControls.unwrap" | "contentControls.delete" | "contentControls.copy" | "contentControls.move" | "contentControls.patch" | "contentControls.setLockMode" | "contentControls.setType" | "contentControls.getContent" | "contentControls.replaceContent" | "contentControls.clearContent" | "contentControls.appendContent" | "contentControls.prependContent" | "contentControls.insertBefore" | "contentControls.insertAfter" | "contentControls.getBinding" | "contentControls.setBinding" | "contentControls.clearBinding" | "contentControls.getRawProperties" | "contentControls.patchRawProperties" | "contentControls.validateWordCompatibility" | "contentControls.normalizeWordCompatibility" | "contentControls.normalizeTagPayload" | "contentControls.text.setMultiline" | "contentControls.text.setValue" | "contentControls.text.clearValue" | "contentControls.date.setValue" | "contentControls.date.clearValue" | "contentControls.date.setDisplayFormat" | "contentControls.date.setDisplayLocale" | "contentControls.date.setStorageFormat" | "contentControls.date.setCalendar" | "contentControls.checkbox.getState" | "contentControls.checkbox.setState" | "contentControls.checkbox.toggle" | "contentControls.checkbox.setSymbolPair" | "contentControls.choiceList.getItems" | "contentControls.choiceList.setItems" | "contentControls.choiceList.setSelected" | "contentControls.repeatingSection.listItems" | "contentControls.repeatingSection.insertItemBefore" | "contentControls.repeatingSection.insertItemAfter" | "contentControls.repeatingSection.cloneItem" | "contentControls.repeatingSection.deleteItem" | "contentControls.repeatingSection.setAllowInsertDelete" | "contentControls.group.wrap" | "contentControls.group.ungroup" | "bookmarks.list" | "bookmarks.get" | "bookmarks.insert" | "bookmarks.rename" | "bookmarks.remove" | "footnotes.list" | "footnotes.get" | "footnotes.insert" | "footnotes.update" | "footnotes.remove" | "footnotes.configure" | "clipboard.parse" | "clipboard.insert" | "clipboard.serializeSelection" | "crossRefs.list" | "crossRefs.get" | "crossRefs.insert" | "crossRefs.rebuild" | "crossRefs.remove" | "index.list" | "index.get" | "index.insert" | "index.configure" | "index.rebuild" | "index.remove" | "index.entries.list" | "index.entries.get" | "index.entries.insert" | "index.entries.update" | "index.entries.remove" | "captions.list" | "captions.get" | "captions.insert" | "captions.update" | "captions.remove" | "captions.configure" | "fields.list" | "fields.get" | "fields.insert" | "fields.rebuild" | "fields.remove" | "citations.list" | "citations.get" | "citations.insert" | "citations.update" | "citations.remove" | "citations.sources.list" | "citations.sources.get" | "citations.sources.insert" | "citations.sources.update" | "citations.sources.remove" | "citations.bibliography.get" | "citations.bibliography.insert" | "citations.bibliography.rebuild" | "citations.bibliography.configure" | "citations.bibliography.remove" | "authorities.list" | "authorities.get" | "authorities.insert" | "authorities.configure" | "authorities.rebuild" | "authorities.remove" | "authorities.entries.list" | "authorities.entries.get" | "authorities.entries.insert" | "authorities.entries.update" | "authorities.entries.remove" | "diff.capture" | "diff.compare" | "diff.apply" | "export.toDocx" | "protection.get" | "protection.setEditingRestriction" | "protection.clearEditingRestriction" | "permissionRanges.list" | "permissionRanges.get" | "permissionRanges.create" | "permissionRanges.remove" | "permissionRanges.updatePrincipal" | "customXml.parts.list" | "customXml.parts.get" | "customXml.parts.create" | "customXml.parts.patch" | "customXml.parts.remove" | "metadata.attach" | "metadata.list" | "metadata.get" | "metadata.update" | "metadata.remove" | "metadata.resolve";
146839
148146
  input?: unknown;
146840
148147
  options?: unknown;
146841
148148
  }
@@ -154859,6 +156166,7 @@ export declare function createDocApi(runtime: RuntimeInvoker): {
154859
156166
  };
154860
156167
  selection: {
154861
156168
  current: (params?: DocSelectionCurrentParams, options?: InvokeOptions) => Promise<DocSelectionCurrentResult>;
156169
+ releaseSnapshot: (params: DocSelectionReleaseSnapshotParams, options?: InvokeOptions) => Promise<DocSelectionReleaseSnapshotResult>;
154862
156170
  extractOoxml: (params?: DocSelectionExtractOoxmlParams, options?: InvokeOptions) => Promise<DocSelectionExtractOoxmlResult>;
154863
156171
  };
154864
156172
  mutations: {
@@ -155435,6 +156743,7 @@ export declare function createBoundDocApi(runtime: RuntimeInvoker): {
155435
156743
  };
155436
156744
  selection: {
155437
156745
  current: (params?: DocSelectionCurrentBoundParams, options?: InvokeOptions) => Promise<DocSelectionCurrentResult>;
156746
+ releaseSnapshot: (params: DocSelectionReleaseSnapshotBoundParams, options?: InvokeOptions) => Promise<DocSelectionReleaseSnapshotResult>;
155438
156747
  extractOoxml: (params?: DocSelectionExtractOoxmlBoundParams, options?: InvokeOptions) => Promise<DocSelectionExtractOoxmlResult>;
155439
156748
  };
155440
156749
  mutations: {