@superdoc/sdk 2.20.1-next.9 → 2.21.0-next.2

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.
@@ -138,13 +138,13 @@ export type ContractSDInboundContentNode = ({
138
138
  }) | ({
139
139
  id?: string;
140
140
  kind: "lineBreak";
141
- lineBreak: Record<string, unknown>;
141
+ lineBreak: Record<string, never>;
142
142
  })>;
143
143
  };
144
144
  }) | ({
145
145
  id?: string;
146
146
  kind: "lineBreak";
147
- lineBreak: Record<string, unknown>;
147
+ lineBreak: Record<string, never>;
148
148
  })>;
149
149
  styleRef?: string;
150
150
  props?: {
@@ -249,13 +249,13 @@ export type ContractSDInboundContentNode = ({
249
249
  }) | ({
250
250
  id?: string;
251
251
  kind: "lineBreak";
252
- lineBreak: Record<string, unknown>;
252
+ lineBreak: Record<string, never>;
253
253
  })>;
254
254
  };
255
255
  }) | ({
256
256
  id?: string;
257
257
  kind: "lineBreak";
258
- lineBreak: Record<string, unknown>;
258
+ lineBreak: Record<string, never>;
259
259
  })>;
260
260
  styleRef?: string;
261
261
  props?: {
@@ -279,7 +279,7 @@ export type ContractSDInboundContentNode = ({
279
279
  }) | ContractSDInboundList | ContractSDInboundTable | ({
280
280
  id?: string;
281
281
  kind: "horizontalRule";
282
- horizontalRule: Record<string, unknown>;
282
+ horizontalRule: Record<string, never>;
283
283
  });
284
284
  export interface DocGetParams {
285
285
  doc?: string;
@@ -385,13 +385,13 @@ export interface DocFindParams {
385
385
  pattern?: string;
386
386
  mode?: string;
387
387
  caseSensitive?: boolean;
388
- query?: Record<string, unknown> | unknown[];
388
+ query?: unknown;
389
389
  }
390
390
  export interface DocGetNodeParams {
391
391
  doc?: string;
392
392
  sessionId?: string;
393
- kind?: string;
394
- nodeType?: string;
393
+ kind?: "block" | "inline";
394
+ nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
395
395
  nodeId?: string;
396
396
  story?: ({
397
397
  kind: "story";
@@ -434,13 +434,13 @@ export interface DocGetNodeParams {
434
434
  offset: number;
435
435
  };
436
436
  };
437
- address?: Record<string, unknown> | unknown[];
437
+ address?: unknown;
438
438
  }
439
439
  export interface DocGetNodeByIdParams {
440
440
  doc?: string;
441
441
  sessionId?: string;
442
442
  id: string;
443
- nodeType?: string;
443
+ nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
444
444
  }
445
445
  export interface DocGetTextParams {
446
446
  doc?: string;
@@ -511,7 +511,7 @@ export interface DocGetMarkdownParams {
511
511
  storyType: "textbox";
512
512
  textboxId: string;
513
513
  });
514
- reviewMode?: string;
514
+ reviewMode?: "final" | "original" | "redline";
515
515
  scope?: ({
516
516
  kind: "block";
517
517
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
@@ -767,7 +767,7 @@ export interface DocGetHtmlParams {
767
767
  storyType: "textbox";
768
768
  textboxId: string;
769
769
  });
770
- reviewMode?: string;
770
+ reviewMode?: "final" | "original" | "redline";
771
771
  scope?: ({
772
772
  kind: "block";
773
773
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
@@ -1024,7 +1024,7 @@ export interface DocProjectMarkdownParams {
1024
1024
  storyType: "textbox";
1025
1025
  textboxId: string;
1026
1026
  });
1027
- reviewMode?: string;
1027
+ reviewMode?: "final" | "original" | "redline";
1028
1028
  scope?: ({
1029
1029
  kind: "block";
1030
1030
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
@@ -1281,7 +1281,7 @@ export interface DocProjectHtmlParams {
1281
1281
  storyType: "textbox";
1282
1282
  textboxId: string;
1283
1283
  });
1284
- reviewMode?: string;
1284
+ reviewMode?: "final" | "original" | "redline";
1285
1285
  scope?: ({
1286
1286
  kind: "block";
1287
1287
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
@@ -1730,225 +1730,6 @@ export interface DocInsertParams {
1730
1730
  textboxId: string;
1731
1731
  });
1732
1732
  coordinateSpace?: "visible" | "tracked";
1733
- }) | ({
1734
- kind: "selection";
1735
- start: ({
1736
- kind: "text";
1737
- blockId: string;
1738
- offset: number;
1739
- story?: ({
1740
- kind: "story";
1741
- storyType: "body";
1742
- }) | ({
1743
- kind: "story";
1744
- storyType: "headerFooterSlot";
1745
- section: {
1746
- kind: "section";
1747
- sectionId: string;
1748
- };
1749
- headerFooterKind: "header" | "footer";
1750
- variant: "default" | "first" | "even";
1751
- resolution?: "effective" | "explicit";
1752
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
1753
- }) | ({
1754
- kind: "story";
1755
- storyType: "headerFooterPart";
1756
- refId: string;
1757
- }) | ({
1758
- kind: "story";
1759
- storyType: "footnote";
1760
- noteId: string;
1761
- }) | ({
1762
- kind: "story";
1763
- storyType: "endnote";
1764
- noteId: string;
1765
- }) | ({
1766
- kind: "story";
1767
- storyType: "textbox";
1768
- textboxId: string;
1769
- });
1770
- }) | ({
1771
- kind: "nodeEdge";
1772
- node: {
1773
- kind: "block";
1774
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
1775
- nodeId: string;
1776
- story?: ({
1777
- kind: "story";
1778
- storyType: "body";
1779
- }) | ({
1780
- kind: "story";
1781
- storyType: "headerFooterSlot";
1782
- section: {
1783
- kind: "section";
1784
- sectionId: string;
1785
- };
1786
- headerFooterKind: "header" | "footer";
1787
- variant: "default" | "first" | "even";
1788
- resolution?: "effective" | "explicit";
1789
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
1790
- }) | ({
1791
- kind: "story";
1792
- storyType: "headerFooterPart";
1793
- refId: string;
1794
- }) | ({
1795
- kind: "story";
1796
- storyType: "footnote";
1797
- noteId: string;
1798
- }) | ({
1799
- kind: "story";
1800
- storyType: "endnote";
1801
- noteId: string;
1802
- }) | ({
1803
- kind: "story";
1804
- storyType: "textbox";
1805
- textboxId: string;
1806
- });
1807
- };
1808
- edge: "before" | "after";
1809
- });
1810
- end: ({
1811
- kind: "text";
1812
- blockId: string;
1813
- offset: number;
1814
- story?: ({
1815
- kind: "story";
1816
- storyType: "body";
1817
- }) | ({
1818
- kind: "story";
1819
- storyType: "headerFooterSlot";
1820
- section: {
1821
- kind: "section";
1822
- sectionId: string;
1823
- };
1824
- headerFooterKind: "header" | "footer";
1825
- variant: "default" | "first" | "even";
1826
- resolution?: "effective" | "explicit";
1827
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
1828
- }) | ({
1829
- kind: "story";
1830
- storyType: "headerFooterPart";
1831
- refId: string;
1832
- }) | ({
1833
- kind: "story";
1834
- storyType: "footnote";
1835
- noteId: string;
1836
- }) | ({
1837
- kind: "story";
1838
- storyType: "endnote";
1839
- noteId: string;
1840
- }) | ({
1841
- kind: "story";
1842
- storyType: "textbox";
1843
- textboxId: string;
1844
- });
1845
- }) | ({
1846
- kind: "nodeEdge";
1847
- node: {
1848
- kind: "block";
1849
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
1850
- nodeId: string;
1851
- story?: ({
1852
- kind: "story";
1853
- storyType: "body";
1854
- }) | ({
1855
- kind: "story";
1856
- storyType: "headerFooterSlot";
1857
- section: {
1858
- kind: "section";
1859
- sectionId: string;
1860
- };
1861
- headerFooterKind: "header" | "footer";
1862
- variant: "default" | "first" | "even";
1863
- resolution?: "effective" | "explicit";
1864
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
1865
- }) | ({
1866
- kind: "story";
1867
- storyType: "headerFooterPart";
1868
- refId: string;
1869
- }) | ({
1870
- kind: "story";
1871
- storyType: "footnote";
1872
- noteId: string;
1873
- }) | ({
1874
- kind: "story";
1875
- storyType: "endnote";
1876
- noteId: string;
1877
- }) | ({
1878
- kind: "story";
1879
- storyType: "textbox";
1880
- textboxId: string;
1881
- });
1882
- };
1883
- edge: "before" | "after";
1884
- });
1885
- story?: ({
1886
- kind: "story";
1887
- storyType: "body";
1888
- }) | ({
1889
- kind: "story";
1890
- storyType: "headerFooterSlot";
1891
- section: {
1892
- kind: "section";
1893
- sectionId: string;
1894
- };
1895
- headerFooterKind: "header" | "footer";
1896
- variant: "default" | "first" | "even";
1897
- resolution?: "effective" | "explicit";
1898
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
1899
- }) | ({
1900
- kind: "story";
1901
- storyType: "headerFooterPart";
1902
- refId: string;
1903
- }) | ({
1904
- kind: "story";
1905
- storyType: "footnote";
1906
- noteId: string;
1907
- }) | ({
1908
- kind: "story";
1909
- storyType: "endnote";
1910
- noteId: string;
1911
- }) | ({
1912
- kind: "story";
1913
- storyType: "textbox";
1914
- textboxId: string;
1915
- });
1916
- coordinateSpace?: "visible" | "tracked";
1917
- }) | ({
1918
- kind: "block";
1919
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
1920
- nodeId: string;
1921
- story?: ({
1922
- kind: "story";
1923
- storyType: "body";
1924
- }) | ({
1925
- kind: "story";
1926
- storyType: "headerFooterSlot";
1927
- section: {
1928
- kind: "section";
1929
- sectionId: string;
1930
- };
1931
- headerFooterKind: "header" | "footer";
1932
- variant: "default" | "first" | "even";
1933
- resolution?: "effective" | "explicit";
1934
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
1935
- }) | ({
1936
- kind: "story";
1937
- storyType: "headerFooterPart";
1938
- refId: string;
1939
- }) | ({
1940
- kind: "story";
1941
- storyType: "footnote";
1942
- noteId: string;
1943
- }) | ({
1944
- kind: "story";
1945
- storyType: "endnote";
1946
- noteId: string;
1947
- }) | ({
1948
- kind: "story";
1949
- storyType: "textbox";
1950
- textboxId: string;
1951
- });
1952
1733
  }) | ({
1953
1734
  kind: "block";
1954
1735
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
@@ -2017,9 +1798,9 @@ export interface DocInsertParams {
2017
1798
  textboxId: string;
2018
1799
  });
2019
1800
  value?: string;
2020
- type?: string;
1801
+ type?: "text" | "markdown" | "html";
2021
1802
  ref?: string;
2022
- placement?: string;
1803
+ placement?: "before" | "after" | "insideStart" | "insideEnd";
2023
1804
  content?: Record<string, unknown> | Array<Record<string, unknown>>;
2024
1805
  nestingPolicy?: {
2025
1806
  tables?: "forbid" | "allow";
@@ -2307,7 +2088,7 @@ export interface DocReplaceParams {
2307
2088
  tables?: "forbid" | "allow";
2308
2089
  };
2309
2090
  value?: string;
2310
- type?: string;
2091
+ type?: "html" | "markdown";
2311
2092
  blockId?: string;
2312
2093
  start?: number;
2313
2094
  end?: number;
@@ -2536,7 +2317,7 @@ export interface DocDeleteParams {
2536
2317
  storyType: "textbox";
2537
2318
  textboxId: string;
2538
2319
  });
2539
- behavior?: string;
2320
+ behavior?: "selection" | "exact";
2540
2321
  ref?: string;
2541
2322
  blockId?: string;
2542
2323
  start?: number;
@@ -2861,7 +2642,7 @@ export interface DocBlocksFindTextParams {
2861
2642
  export interface DocBlocksListParams {
2862
2643
  doc?: string;
2863
2644
  sessionId?: string;
2864
- nodeIds?: string[];
2645
+ nodeIds?: Array<string>;
2865
2646
  textSearch?: {
2866
2647
  terms: Array<string>;
2867
2648
  match?: "all" | "any";
@@ -2902,7 +2683,7 @@ export interface DocBlocksListParams {
2902
2683
  limit?: number;
2903
2684
  nodeTypes?: Array<"paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt">;
2904
2685
  includeText?: boolean;
2905
- reviewMode?: string;
2686
+ reviewMode?: "final" | "original" | "redline";
2906
2687
  }
2907
2688
  export interface DocBlocksDeleteParams {
2908
2689
  doc?: string;
@@ -3236,7 +3017,7 @@ export interface DocBlocksMoveParams {
3236
3017
  textboxId: string;
3237
3018
  });
3238
3019
  };
3239
- placement: string;
3020
+ placement: "before" | "after";
3240
3021
  }
3241
3022
  export interface DocFormatApplyParams {
3242
3023
  doc?: string;
@@ -12412,7 +12193,7 @@ export interface DocStylesApplyParams {
12412
12193
  export interface DocStylesGetCatalogParams {
12413
12194
  doc?: string;
12414
12195
  sessionId?: string;
12415
- view?: string;
12196
+ view?: "quickGallery" | "recommended" | "currentDocument" | "all" | "inUse";
12416
12197
  types?: Array<"paragraph" | "character" | "linked" | "table" | "numbering">;
12417
12198
  includeHidden?: boolean;
12418
12199
  includeLatent?: boolean;
@@ -12560,7 +12341,7 @@ export interface DocCreateParagraphParams {
12560
12341
  });
12561
12342
  text?: string;
12562
12343
  styleId?: string;
12563
- input?: Record<string, unknown> | unknown[];
12344
+ input?: unknown;
12564
12345
  }
12565
12346
  export interface DocCreateHeadingParams {
12566
12347
  doc?: string;
@@ -12685,7 +12466,7 @@ export interface DocCreateHeadingParams {
12685
12466
  });
12686
12467
  text?: string;
12687
12468
  styleId?: string;
12688
- input?: Record<string, unknown> | unknown[];
12469
+ input?: unknown;
12689
12470
  }
12690
12471
  export interface DocCreateSectionBreakParams {
12691
12472
  doc?: string;
@@ -12776,8 +12557,8 @@ export interface DocCreateSectionBreakParams {
12776
12557
  });
12777
12558
  };
12778
12559
  });
12779
- representation?: string;
12780
- breakType?: string;
12560
+ representation?: "asNewParagraph" | "attachToPreviousParagraph";
12561
+ breakType?: "continuous" | "nextPage" | "evenPage" | "oddPage";
12781
12562
  pageMargins?: {
12782
12563
  top?: number;
12783
12564
  right?: number;
@@ -12816,7 +12597,7 @@ export interface DocSectionsSetBreakTypeParams {
12816
12597
  kind: "section";
12817
12598
  sectionId: string;
12818
12599
  };
12819
- breakType: string;
12600
+ breakType: "continuous" | "nextPage" | "evenPage" | "oddPage";
12820
12601
  }
12821
12602
  export interface DocSectionsSetPageMarginsParams {
12822
12603
  doc?: string;
@@ -12865,7 +12646,7 @@ export interface DocSectionsSetPageSetupParams {
12865
12646
  };
12866
12647
  width?: number;
12867
12648
  height?: number;
12868
- orientation?: string;
12649
+ orientation?: "portrait" | "landscape";
12869
12650
  paperSize?: string;
12870
12651
  }
12871
12652
  export interface DocSectionsSetColumnsParams {
@@ -12900,7 +12681,7 @@ export interface DocSectionsSetLineNumberingParams {
12900
12681
  countBy?: number;
12901
12682
  start?: number;
12902
12683
  distance?: number;
12903
- restart?: string;
12684
+ restart?: "continuous" | "newPage" | "newSection";
12904
12685
  }
12905
12686
  export interface DocSectionsSetPageNumberingParams {
12906
12687
  doc?: string;
@@ -12915,9 +12696,9 @@ export interface DocSectionsSetPageNumberingParams {
12915
12696
  sectionId: string;
12916
12697
  };
12917
12698
  start?: number | unknown;
12918
- format?: string;
12699
+ format?: "decimal" | "lowerLetter" | "upperLetter" | "lowerRoman" | "upperRoman" | "numberInDash" | "hebrew1" | "hebrew2";
12919
12700
  chapterStyle?: number;
12920
- chapterSeparator?: string;
12701
+ chapterSeparator?: "hyphen" | "period" | "colon" | "emDash" | "enDash";
12921
12702
  }
12922
12703
  export interface DocSectionsSetTitlePageParams {
12923
12704
  doc?: string;
@@ -12955,7 +12736,7 @@ export interface DocSectionsSetVerticalAlignParams {
12955
12736
  kind: "section";
12956
12737
  sectionId: string;
12957
12738
  };
12958
- value: string;
12739
+ value: "top" | "center" | "bottom" | "both";
12959
12740
  }
12960
12741
  export interface DocSectionsSetSectionDirectionParams {
12961
12742
  doc?: string;
@@ -12969,7 +12750,7 @@ export interface DocSectionsSetSectionDirectionParams {
12969
12750
  kind: "section";
12970
12751
  sectionId: string;
12971
12752
  };
12972
- direction: string;
12753
+ direction: "ltr" | "rtl";
12973
12754
  }
12974
12755
  export interface DocSectionsSetHeaderFooterRefParams {
12975
12756
  doc?: string;
@@ -12983,8 +12764,8 @@ export interface DocSectionsSetHeaderFooterRefParams {
12983
12764
  kind: "section";
12984
12765
  sectionId: string;
12985
12766
  };
12986
- kind: string;
12987
- variant: string;
12767
+ kind: "header" | "footer";
12768
+ variant: "default" | "first" | "even";
12988
12769
  refId: string;
12989
12770
  }
12990
12771
  export interface DocSectionsClearHeaderFooterRefParams {
@@ -12999,8 +12780,8 @@ export interface DocSectionsClearHeaderFooterRefParams {
12999
12780
  kind: "section";
13000
12781
  sectionId: string;
13001
12782
  };
13002
- kind: string;
13003
- variant: string;
12783
+ kind: "header" | "footer";
12784
+ variant: "default" | "first" | "even";
13004
12785
  }
13005
12786
  export interface DocSectionsSetLinkToPreviousParams {
13006
12787
  doc?: string;
@@ -13014,8 +12795,8 @@ export interface DocSectionsSetLinkToPreviousParams {
13014
12795
  kind: "section";
13015
12796
  sectionId: string;
13016
12797
  };
13017
- kind: string;
13018
- variant: string;
12798
+ kind: "header" | "footer";
12799
+ variant: "default" | "first" | "even";
13019
12800
  linked: boolean;
13020
12801
  }
13021
12802
  export interface DocSectionsSetPageBordersParams {
@@ -13030,7 +12811,7 @@ export interface DocSectionsSetPageBordersParams {
13030
12811
  kind: "section";
13031
12812
  sectionId: string;
13032
12813
  };
13033
- borders: unknown | unknown | unknown | unknown | unknown | unknown | unknown;
12814
+ borders: unknown;
13034
12815
  }
13035
12816
  export interface DocSectionsClearPageBordersParams {
13036
12817
  doc?: string;
@@ -13623,7 +13404,7 @@ export interface DocFormatParagraphSetAlignmentParams {
13623
13404
  textboxId: string;
13624
13405
  });
13625
13406
  });
13626
- alignment?: string;
13407
+ alignment?: "left" | "center" | "right" | "justify";
13627
13408
  blockId?: string;
13628
13409
  }
13629
13410
  export interface DocFormatParagraphClearAlignmentParams {
@@ -14095,7 +13876,7 @@ export interface DocFormatParagraphSetSpacingParams {
14095
13876
  before?: number;
14096
13877
  after?: number;
14097
13878
  line?: number;
14098
- lineRule?: string;
13879
+ lineRule?: "auto" | "exact" | "atLeast";
14099
13880
  blockId?: string;
14100
13881
  }
14101
13882
  export interface DocFormatParagraphClearSpacingParams {
@@ -14688,8 +14469,8 @@ export interface DocFormatParagraphSetTabStopParams {
14688
14469
  });
14689
14470
  });
14690
14471
  position?: number;
14691
- alignment?: string;
14692
- leader?: string;
14472
+ alignment?: "left" | "center" | "right" | "decimal" | "bar" | "clear";
14473
+ leader?: "none" | "dot" | "hyphen" | "underscore" | "heavy" | "middleDot";
14693
14474
  blockId?: string;
14694
14475
  }
14695
14476
  export interface DocFormatParagraphClearTabStopParams {
@@ -15039,7 +14820,7 @@ export interface DocFormatParagraphSetBorderParams {
15039
14820
  textboxId: string;
15040
14821
  });
15041
14822
  });
15042
- side?: string;
14823
+ side?: "top" | "bottom" | "left" | "right" | "between" | "bar";
15043
14824
  style?: string;
15044
14825
  color?: string;
15045
14826
  size?: number;
@@ -15160,7 +14941,7 @@ export interface DocFormatParagraphClearBorderParams {
15160
14941
  textboxId: string;
15161
14942
  });
15162
14943
  });
15163
- side?: string;
14944
+ side?: "top" | "bottom" | "left" | "right" | "between" | "bar" | "all";
15164
14945
  blockId?: string;
15165
14946
  }
15166
14947
  export interface DocFormatParagraphSetShadingParams {
@@ -15742,8 +15523,8 @@ export interface DocFormatParagraphSetDirectionParams {
15742
15523
  textboxId: string;
15743
15524
  });
15744
15525
  });
15745
- direction?: string;
15746
- alignmentPolicy?: string;
15526
+ direction?: "ltr" | "rtl";
15527
+ alignmentPolicy?: "preserve" | "matchDirection";
15747
15528
  blockId?: string;
15748
15529
  }
15749
15530
  export interface DocFormatParagraphClearDirectionParams {
@@ -16021,10 +15802,10 @@ export interface DocListsListParams {
16021
15802
  };
16022
15803
  limit?: number;
16023
15804
  offset?: number;
16024
- kind?: string;
15805
+ kind?: "ordered" | "bullet";
16025
15806
  level?: number;
16026
15807
  ordinal?: number;
16027
- query?: Record<string, unknown> | unknown[];
15808
+ query?: unknown;
16028
15809
  }
16029
15810
  export interface DocListsGetParams {
16030
15811
  doc?: string;
@@ -16110,9 +15891,9 @@ export interface DocListsInsertParams {
16110
15891
  textboxId: string;
16111
15892
  });
16112
15893
  };
16113
- position?: string;
15894
+ position?: "before" | "after";
16114
15895
  text?: string;
16115
- input?: Record<string, unknown> | unknown[];
15896
+ input?: unknown;
16116
15897
  nodeId?: string;
16117
15898
  }
16118
15899
  export interface DocListsCreateParams {
@@ -16123,7 +15904,7 @@ export interface DocListsCreateParams {
16123
15904
  expectedRevision?: string;
16124
15905
  changeMode?: string;
16125
15906
  dryRun?: boolean;
16126
- mode?: string;
15907
+ mode?: "empty" | "fromParagraphs";
16127
15908
  at?: {
16128
15909
  kind: "block";
16129
15910
  nodeType: "paragraph";
@@ -16145,9 +15926,9 @@ export interface DocListsCreateParams {
16145
15926
  nodeId: string;
16146
15927
  };
16147
15928
  });
16148
- kind?: string;
15929
+ kind?: "ordered" | "bullet";
16149
15930
  level?: number;
16150
- preset?: string;
15931
+ preset?: "decimal" | "decimalParenthesis" | "lowerLetter" | "lowerLetterParenthesis" | "upperLetter" | "upperLetterParenthesis" | "lowerRoman" | "upperRoman" | "disc" | "circle" | "square" | "dash";
16151
15932
  style?: {
16152
15933
  version: 1;
16153
15934
  levels: Array<{
@@ -16173,7 +15954,7 @@ export interface DocListsCreateParams {
16173
15954
  }) | ({
16174
15955
  mode: "continuePrevious";
16175
15956
  });
16176
- input?: Record<string, unknown> | unknown[];
15957
+ input?: unknown;
16177
15958
  }
16178
15959
  export interface DocListsAttachParams {
16179
15960
  doc?: string;
@@ -16236,7 +16017,7 @@ export interface DocListsAttachParams {
16236
16017
  });
16237
16018
  };
16238
16019
  level?: number;
16239
- input?: Record<string, unknown> | unknown[];
16020
+ input?: unknown;
16240
16021
  }
16241
16022
  export interface DocListsDetachParams {
16242
16023
  doc?: string;
@@ -16282,7 +16063,7 @@ export interface DocListsDetachParams {
16282
16063
  textboxId: string;
16283
16064
  });
16284
16065
  };
16285
- input?: Record<string, unknown> | unknown[];
16066
+ input?: unknown;
16286
16067
  nodeId?: string;
16287
16068
  }
16288
16069
  export interface DocListsDeleteParams {
@@ -16374,7 +16155,7 @@ export interface DocListsIndentParams {
16374
16155
  textboxId: string;
16375
16156
  });
16376
16157
  };
16377
- input?: Record<string, unknown> | unknown[];
16158
+ input?: unknown;
16378
16159
  nodeId?: string;
16379
16160
  }
16380
16161
  export interface DocListsOutdentParams {
@@ -16421,7 +16202,7 @@ export interface DocListsOutdentParams {
16421
16202
  textboxId: string;
16422
16203
  });
16423
16204
  };
16424
- input?: Record<string, unknown> | unknown[];
16205
+ input?: unknown;
16425
16206
  nodeId?: string;
16426
16207
  }
16427
16208
  export interface DocListsJoinParams {
@@ -16468,8 +16249,8 @@ export interface DocListsJoinParams {
16468
16249
  textboxId: string;
16469
16250
  });
16470
16251
  };
16471
- direction?: string;
16472
- input?: Record<string, unknown> | unknown[];
16252
+ direction?: "withPrevious" | "withNext";
16253
+ input?: unknown;
16473
16254
  }
16474
16255
  export interface DocListsCanJoinParams {
16475
16256
  doc?: string;
@@ -16510,8 +16291,8 @@ export interface DocListsCanJoinParams {
16510
16291
  textboxId: string;
16511
16292
  });
16512
16293
  };
16513
- direction?: string;
16514
- input?: Record<string, unknown> | unknown[];
16294
+ direction?: "withPrevious" | "withNext";
16295
+ input?: unknown;
16515
16296
  }
16516
16297
  export interface DocListsSeparateParams {
16517
16298
  doc?: string;
@@ -16558,7 +16339,7 @@ export interface DocListsSeparateParams {
16558
16339
  });
16559
16340
  };
16560
16341
  copyOverrides?: boolean;
16561
- input?: Record<string, unknown> | unknown[];
16342
+ input?: unknown;
16562
16343
  nodeId?: string;
16563
16344
  }
16564
16345
  export interface DocListsMergeParams {
@@ -16605,7 +16386,7 @@ export interface DocListsMergeParams {
16605
16386
  textboxId: string;
16606
16387
  });
16607
16388
  };
16608
- direction: string;
16389
+ direction: "withPrevious" | "withNext";
16609
16390
  }
16610
16391
  export interface DocListsSplitParams {
16611
16392
  doc?: string;
@@ -16698,7 +16479,7 @@ export interface DocListsSetLevelParams {
16698
16479
  });
16699
16480
  };
16700
16481
  level?: number;
16701
- input?: Record<string, unknown> | unknown[];
16482
+ input?: unknown;
16702
16483
  nodeId?: string;
16703
16484
  }
16704
16485
  export interface DocListsSetValueParams {
@@ -16746,7 +16527,7 @@ export interface DocListsSetValueParams {
16746
16527
  });
16747
16528
  };
16748
16529
  value?: unknown;
16749
- input?: Record<string, unknown> | unknown[];
16530
+ input?: unknown;
16750
16531
  nodeId?: string;
16751
16532
  }
16752
16533
  export interface DocListsContinuePreviousParams {
@@ -16793,7 +16574,7 @@ export interface DocListsContinuePreviousParams {
16793
16574
  textboxId: string;
16794
16575
  });
16795
16576
  };
16796
- input?: Record<string, unknown> | unknown[];
16577
+ input?: unknown;
16797
16578
  nodeId?: string;
16798
16579
  }
16799
16580
  export interface DocListsCanContinuePreviousParams {
@@ -16835,7 +16616,7 @@ export interface DocListsCanContinuePreviousParams {
16835
16616
  textboxId: string;
16836
16617
  });
16837
16618
  };
16838
- input?: Record<string, unknown> | unknown[];
16619
+ input?: unknown;
16839
16620
  nodeId?: string;
16840
16621
  }
16841
16622
  export interface DocListsSetLevelRestartParams {
@@ -16884,8 +16665,8 @@ export interface DocListsSetLevelRestartParams {
16884
16665
  };
16885
16666
  level?: number;
16886
16667
  restartAfterLevel?: unknown;
16887
- scope?: string;
16888
- input?: Record<string, unknown> | unknown[];
16668
+ scope?: "definition" | "instance";
16669
+ input?: unknown;
16889
16670
  }
16890
16671
  export interface DocListsConvertToTextParams {
16891
16672
  doc?: string;
@@ -16932,7 +16713,7 @@ export interface DocListsConvertToTextParams {
16932
16713
  });
16933
16714
  };
16934
16715
  includeMarker?: boolean;
16935
- input?: Record<string, unknown> | unknown[];
16716
+ input?: unknown;
16936
16717
  nodeId?: string;
16937
16718
  }
16938
16719
  export interface DocListsApplyTemplateParams {
@@ -16998,7 +16779,7 @@ export interface DocListsApplyTemplateParams {
16998
16779
  }>;
16999
16780
  };
17000
16781
  levels?: Array<number>;
17001
- input?: Record<string, unknown> | unknown[];
16782
+ input?: unknown;
17002
16783
  }
17003
16784
  export interface DocListsApplyPresetParams {
17004
16785
  doc?: string;
@@ -17044,9 +16825,9 @@ export interface DocListsApplyPresetParams {
17044
16825
  textboxId: string;
17045
16826
  });
17046
16827
  };
17047
- preset?: string;
16828
+ preset?: "decimal" | "decimalParenthesis" | "lowerLetter" | "lowerLetterParenthesis" | "upperLetter" | "upperLetterParenthesis" | "lowerRoman" | "upperRoman" | "disc" | "circle" | "square" | "dash";
17048
16829
  levels?: Array<number>;
17049
- input?: Record<string, unknown> | unknown[];
16830
+ input?: unknown;
17050
16831
  }
17051
16832
  export interface DocListsSetTypeParams {
17052
16833
  doc?: string;
@@ -17092,8 +16873,8 @@ export interface DocListsSetTypeParams {
17092
16873
  textboxId: string;
17093
16874
  });
17094
16875
  };
17095
- kind: string;
17096
- continuity?: string;
16876
+ kind: "ordered" | "bullet";
16877
+ continuity?: "preserve" | "none";
17097
16878
  }
17098
16879
  export interface DocListsCaptureTemplateParams {
17099
16880
  doc?: string;
@@ -17135,7 +16916,7 @@ export interface DocListsCaptureTemplateParams {
17135
16916
  });
17136
16917
  };
17137
16918
  levels?: Array<number>;
17138
- input?: Record<string, unknown> | unknown[];
16919
+ input?: unknown;
17139
16920
  }
17140
16921
  export interface DocListsSetLevelNumberingParams {
17141
16922
  doc?: string;
@@ -17186,7 +16967,7 @@ export interface DocListsSetLevelNumberingParams {
17186
16967
  lvlText?: string;
17187
16968
  start?: number;
17188
16969
  isLgl?: boolean;
17189
- input?: Record<string, unknown> | unknown[];
16970
+ input?: unknown;
17190
16971
  }
17191
16972
  export interface DocListsSetLevelBulletParams {
17192
16973
  doc?: string;
@@ -17234,7 +17015,7 @@ export interface DocListsSetLevelBulletParams {
17234
17015
  };
17235
17016
  level?: number;
17236
17017
  markerText?: string;
17237
- input?: Record<string, unknown> | unknown[];
17018
+ input?: unknown;
17238
17019
  }
17239
17020
  export interface DocListsSetLevelPictureBulletParams {
17240
17021
  doc?: string;
@@ -17282,7 +17063,7 @@ export interface DocListsSetLevelPictureBulletParams {
17282
17063
  };
17283
17064
  level?: number;
17284
17065
  pictureBulletId?: number;
17285
- input?: Record<string, unknown> | unknown[];
17066
+ input?: unknown;
17286
17067
  }
17287
17068
  export interface DocListsSetLevelAlignmentParams {
17288
17069
  doc?: string;
@@ -17329,8 +17110,8 @@ export interface DocListsSetLevelAlignmentParams {
17329
17110
  });
17330
17111
  };
17331
17112
  level?: number;
17332
- alignment?: string;
17333
- input?: Record<string, unknown> | unknown[];
17113
+ alignment?: "left" | "center" | "right";
17114
+ input?: unknown;
17334
17115
  }
17335
17116
  export interface DocListsSetLevelIndentsParams {
17336
17117
  doc?: string;
@@ -17380,7 +17161,7 @@ export interface DocListsSetLevelIndentsParams {
17380
17161
  left?: number;
17381
17162
  hanging?: number;
17382
17163
  firstLine?: number;
17383
- input?: Record<string, unknown> | unknown[];
17164
+ input?: unknown;
17384
17165
  }
17385
17166
  export interface DocListsSetLevelTrailingCharacterParams {
17386
17167
  doc?: string;
@@ -17427,8 +17208,8 @@ export interface DocListsSetLevelTrailingCharacterParams {
17427
17208
  });
17428
17209
  };
17429
17210
  level?: number;
17430
- trailingCharacter?: string;
17431
- input?: Record<string, unknown> | unknown[];
17211
+ trailingCharacter?: "tab" | "space" | "nothing";
17212
+ input?: unknown;
17432
17213
  }
17433
17214
  export interface DocListsSetLevelMarkerFontParams {
17434
17215
  doc?: string;
@@ -17476,7 +17257,7 @@ export interface DocListsSetLevelMarkerFontParams {
17476
17257
  };
17477
17258
  level?: number;
17478
17259
  fontFamily?: string;
17479
- input?: Record<string, unknown> | unknown[];
17260
+ input?: unknown;
17480
17261
  }
17481
17262
  export interface DocListsClearLevelOverridesParams {
17482
17263
  doc?: string;
@@ -17523,7 +17304,7 @@ export interface DocListsClearLevelOverridesParams {
17523
17304
  });
17524
17305
  };
17525
17306
  level?: number;
17526
- input?: Record<string, unknown> | unknown[];
17307
+ input?: unknown;
17527
17308
  }
17528
17309
  export interface DocListsGetStyleParams {
17529
17310
  doc?: string;
@@ -17900,7 +17681,7 @@ export interface DocListsApplyParams {
17900
17681
  nodeType: "listItem";
17901
17682
  nodeId: string;
17902
17683
  });
17903
- seed: string;
17684
+ seed: "bullet" | "ordered";
17904
17685
  reuseNumId?: string;
17905
17686
  ilvl?: number;
17906
17687
  }
@@ -18297,7 +18078,7 @@ export interface DocCommentsCreateParams {
18297
18078
  });
18298
18079
  });
18299
18080
  trackedChangeId?: string;
18300
- side?: string;
18081
+ side?: "inserted" | "deleted" | "source" | "destination";
18301
18082
  story?: ({
18302
18083
  kind: "story";
18303
18084
  storyType: "body";
@@ -18641,7 +18422,7 @@ export interface DocCommentsPatchParams {
18641
18422
  textboxId: string;
18642
18423
  });
18643
18424
  });
18644
- status?: string;
18425
+ status?: "resolved" | "active";
18645
18426
  isInternal?: boolean;
18646
18427
  blockId?: string;
18647
18428
  start?: number;
@@ -18673,7 +18454,7 @@ export interface DocTrackChangesListParams {
18673
18454
  sessionId?: string;
18674
18455
  limit?: number;
18675
18456
  offset?: number;
18676
- type?: string;
18457
+ type?: "insertion" | "deletion" | "replacement" | "formatting" | "move" | "structural" | "insert" | "delete" | "format";
18677
18458
  in?: (({
18678
18459
  kind: "story";
18679
18460
  storyType: "body";
@@ -18748,7 +18529,7 @@ export interface DocTrackChangesDecideParams {
18748
18529
  out?: string;
18749
18530
  force?: boolean;
18750
18531
  changeMode?: string;
18751
- decision: string;
18532
+ decision: "accept" | "reject";
18752
18533
  expectedRevision?: string;
18753
18534
  target: ({
18754
18535
  kind: "id";
@@ -19170,8 +18951,8 @@ export interface DocQueryMatchParams {
19170
18951
  textboxId: string;
19171
18952
  });
19172
18953
  };
19173
- require?: string;
19174
- mode?: string;
18954
+ require?: "any" | "first" | "exactlyOne" | "all";
18955
+ mode?: "strict" | "candidates";
19175
18956
  includeNodes?: boolean;
19176
18957
  limit?: number;
19177
18958
  offset?: number;
@@ -19576,6 +19357,8 @@ export interface DocSelectionExtractOoxmlParams {
19576
19357
  coordinateSpace?: "visible" | "tracked";
19577
19358
  }) | ({
19578
19359
  kind: "tableCells";
19360
+ selectionMode?: "cells";
19361
+ isRectangular?: true;
19579
19362
  tableId: string;
19580
19363
  start: {
19581
19364
  rowIndex: number;
@@ -19655,7 +19438,7 @@ export interface DocMutationsPreviewParams {
19655
19438
  });
19656
19439
  expectedRevision?: string;
19657
19440
  atomic: boolean;
19658
- changeMode: string;
19441
+ changeMode: "direct" | "tracked";
19659
19442
  steps: Array<({
19660
19443
  id: string;
19661
19444
  op: "text.rewrite";
@@ -22976,7 +22759,7 @@ export interface DocCapabilitiesGetParams {
22976
22759
  export interface DocCapabilitiesCheckParams {
22977
22760
  doc?: string;
22978
22761
  sessionId?: string;
22979
- operation: string;
22762
+ operation: "insert" | "replace" | "projectHtml" | "projectMarkdown";
22980
22763
  input?: ({
22981
22764
  in?: ({
22982
22765
  kind: "story";
@@ -23860,7 +23643,7 @@ export interface DocCapabilitiesCheckParams {
23860
23643
  export interface DocCapabilitiesResolveParams {
23861
23644
  doc?: string;
23862
23645
  sessionId?: string;
23863
- operationId: 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";
23864
23647
  input?: unknown;
23865
23648
  options?: unknown;
23866
23649
  }
@@ -24215,7 +23998,7 @@ export interface DocTablesConvertToTextParams {
24215
23998
  nodeId: string;
24216
23999
  };
24217
24000
  nodeId?: string;
24218
- delimiter?: string;
24001
+ delimiter?: "tab" | "comma" | "paragraph";
24219
24002
  }
24220
24003
  export interface DocTablesSetLayoutParams {
24221
24004
  doc?: string;
@@ -24232,11 +24015,11 @@ export interface DocTablesSetLayoutParams {
24232
24015
  };
24233
24016
  nodeId?: string;
24234
24017
  preferredWidth?: number;
24235
- preferredWidthType?: string;
24236
- alignment?: string;
24018
+ preferredWidthType?: "dxa" | "auto" | "pct";
24019
+ alignment?: "left" | "center" | "right";
24237
24020
  leftIndentPt?: number;
24238
- autoFitMode?: string;
24239
- tableDirection?: string;
24021
+ autoFitMode?: "fixedWidth" | "fitContents" | "fitWindow";
24022
+ tableDirection?: "ltr" | "rtl";
24240
24023
  }
24241
24024
  export interface DocTablesInsertRowParams {
24242
24025
  doc?: string;
@@ -24255,7 +24038,7 @@ export interface DocTablesInsertRowParams {
24255
24038
  nodeType: "table";
24256
24039
  nodeId: string;
24257
24040
  });
24258
- position?: string;
24041
+ position?: "above" | "below";
24259
24042
  count?: number;
24260
24043
  rowIndex?: number;
24261
24044
  nodeId?: string;
@@ -24349,7 +24132,7 @@ export interface DocTablesSetRowHeightParams {
24349
24132
  nodeId: string;
24350
24133
  });
24351
24134
  heightPt: number;
24352
- rule?: string;
24135
+ rule?: "atLeast" | "exact" | "auto";
24353
24136
  rowIndex?: number;
24354
24137
  nodeId?: string;
24355
24138
  }
@@ -24415,7 +24198,7 @@ export interface DocTablesInsertColumnParams {
24415
24198
  };
24416
24199
  nodeId?: string;
24417
24200
  columnIndex?: number;
24418
- position: string;
24201
+ position: "left" | "right" | "first" | "last";
24419
24202
  count?: number;
24420
24203
  }
24421
24204
  export interface DocTablesDeleteColumnParams {
@@ -24511,7 +24294,7 @@ export interface DocTablesInsertCellParams {
24511
24294
  nodeId: string;
24512
24295
  };
24513
24296
  nodeId?: string;
24514
- mode: string;
24297
+ mode: "shiftRight" | "shiftDown";
24515
24298
  }
24516
24299
  export interface DocTablesDeleteCellParams {
24517
24300
  doc?: string;
@@ -24527,7 +24310,7 @@ export interface DocTablesDeleteCellParams {
24527
24310
  nodeId: string;
24528
24311
  };
24529
24312
  nodeId?: string;
24530
- mode: string;
24313
+ mode: "shiftLeft" | "shiftUp";
24531
24314
  }
24532
24315
  export interface DocTablesMergeCellsParams {
24533
24316
  doc?: string;
@@ -24605,8 +24388,8 @@ export interface DocTablesSetCellPropertiesParams {
24605
24388
  };
24606
24389
  nodeId?: string;
24607
24390
  preferredWidthPt?: number;
24608
- preferredWidthType?: string;
24609
- verticalAlign?: string;
24391
+ preferredWidthType?: "auto" | "dxa" | "pct";
24392
+ verticalAlign?: "top" | "center" | "bottom";
24610
24393
  wrapText?: boolean;
24611
24394
  fitText?: boolean;
24612
24395
  }
@@ -24714,7 +24497,7 @@ export interface DocTablesSetStyleOptionParams {
24714
24497
  nodeId: string;
24715
24498
  };
24716
24499
  nodeId?: string;
24717
- flag: string;
24500
+ flag: "headerRow" | "lastRow" | "totalRow" | "firstColumn" | "lastColumn" | "bandedRows" | "bandedColumns";
24718
24501
  enabled: boolean;
24719
24502
  }
24720
24503
  export interface DocTablesSetBorderParams {
@@ -24731,7 +24514,7 @@ export interface DocTablesSetBorderParams {
24731
24514
  nodeId: string;
24732
24515
  };
24733
24516
  nodeId?: string;
24734
- edge: string;
24517
+ edge: "top" | "bottom" | "left" | "right" | "insideH" | "insideV" | "diagonalDown" | "diagonalUp";
24735
24518
  lineStyle: string;
24736
24519
  lineWeightPt: number;
24737
24520
  color: string;
@@ -24750,7 +24533,7 @@ export interface DocTablesClearBorderParams {
24750
24533
  nodeId: string;
24751
24534
  };
24752
24535
  nodeId?: string;
24753
- edge: string;
24536
+ edge: "top" | "bottom" | "left" | "right" | "insideH" | "insideV" | "diagonalDown" | "diagonalUp";
24754
24537
  }
24755
24538
  export interface DocTablesApplyBorderPresetParams {
24756
24539
  doc?: string;
@@ -24766,7 +24549,7 @@ export interface DocTablesApplyBorderPresetParams {
24766
24549
  nodeId: string;
24767
24550
  };
24768
24551
  nodeId?: string;
24769
- preset: string;
24552
+ preset: "box" | "all" | "none" | "grid" | "custom";
24770
24553
  }
24771
24554
  export interface DocTablesSetShadingParams {
24772
24555
  doc?: string;
@@ -24969,8 +24752,8 @@ export interface DocTablesSetBordersParams {
24969
24752
  });
24970
24753
  };
24971
24754
  nodeId?: string;
24972
- mode: string;
24973
- applyTo?: string;
24755
+ mode: "applyTo" | "edges";
24756
+ applyTo?: "all" | "outside" | "inside" | "top" | "bottom" | "left" | "right" | "insideH" | "insideV";
24974
24757
  border?: ({
24975
24758
  lineStyle: string;
24976
24759
  lineWeightPt: number;
@@ -25076,7 +24859,7 @@ export interface DocTablesApplyPresetParams {
25076
24859
  nodeId: string;
25077
24860
  };
25078
24861
  nodeId?: string;
25079
- preset: string;
24862
+ preset: "grid" | "minimal" | "striped" | "accent";
25080
24863
  accentColor?: string;
25081
24864
  }
25082
24865
  export interface DocTablesGetParams {
@@ -25311,7 +25094,7 @@ export interface DocTocUpdateParams {
25311
25094
  nodeType: "tableOfContents";
25312
25095
  nodeId: string;
25313
25096
  };
25314
- mode?: string;
25097
+ mode?: "all" | "pageNumbers";
25315
25098
  }
25316
25099
  export interface DocTocRemoveParams {
25317
25100
  doc?: string;
@@ -25824,7 +25607,7 @@ export interface DocImagesSetWrapTypeParams {
25824
25607
  changeMode?: string;
25825
25608
  dryRun?: boolean;
25826
25609
  imageId: string;
25827
- type: string;
25610
+ type: "None" | "Square" | "Through" | "Tight" | "TopAndBottom" | "Inline";
25828
25611
  }
25829
25612
  export interface DocImagesSetWrapSideParams {
25830
25613
  doc?: string;
@@ -25835,7 +25618,7 @@ export interface DocImagesSetWrapSideParams {
25835
25618
  changeMode?: string;
25836
25619
  dryRun?: boolean;
25837
25620
  imageId: string;
25838
- side: string;
25621
+ side: "bothSides" | "left" | "right" | "largest";
25839
25622
  }
25840
25623
  export interface DocImagesSetWrapDistancesParams {
25841
25624
  doc?: string;
@@ -26296,12 +26079,12 @@ export interface DocHyperlinksRemoveParams {
26296
26079
  };
26297
26080
  };
26298
26081
  };
26299
- mode?: string;
26082
+ mode?: "unwrap" | "deleteText";
26300
26083
  }
26301
26084
  export interface DocHeaderFootersListParams {
26302
26085
  doc?: string;
26303
26086
  sessionId?: string;
26304
- kind?: string;
26087
+ kind?: "header" | "footer";
26305
26088
  section?: {
26306
26089
  kind: "section";
26307
26090
  sectionId: string;
@@ -26394,7 +26177,7 @@ export interface DocHeaderFootersRefsSetLinkedToPreviousParams {
26394
26177
  export interface DocHeaderFootersPartsListParams {
26395
26178
  doc?: string;
26396
26179
  sessionId?: string;
26397
- kind?: string;
26180
+ kind?: "header" | "footer";
26398
26181
  limit?: number;
26399
26182
  offset?: number;
26400
26183
  }
@@ -26406,7 +26189,7 @@ export interface DocHeaderFootersPartsCreateParams {
26406
26189
  expectedRevision?: string;
26407
26190
  changeMode?: string;
26408
26191
  dryRun?: boolean;
26409
- kind: string;
26192
+ kind: "header" | "footer";
26410
26193
  sourceRefId?: string;
26411
26194
  }
26412
26195
  export interface DocHeaderFootersPartsDeleteParams {
@@ -26442,10 +26225,10 @@ export interface DocHeaderFootersPageNumbersInsertParams {
26442
26225
  kind: "section";
26443
26226
  sectionId: string;
26444
26227
  };
26445
- kind: string;
26446
- alignment?: string;
26228
+ kind: "header" | "footer";
26229
+ alignment?: "left" | "center" | "right";
26447
26230
  showOnFirstPage?: boolean;
26448
- format?: string;
26231
+ format?: "decimal" | "lowerLetter" | "upperLetter" | "lowerRoman" | "upperRoman" | "numberInDash" | "hebrew1" | "hebrew2";
26449
26232
  start?: number | unknown;
26450
26233
  }
26451
26234
  export interface DocHeaderFootersPageNumbersSetParams {
@@ -26460,10 +26243,10 @@ export interface DocHeaderFootersPageNumbersSetParams {
26460
26243
  kind: "section";
26461
26244
  sectionId: string;
26462
26245
  };
26463
- kind: string;
26464
- alignment?: string;
26246
+ kind: "header" | "footer";
26247
+ alignment?: "left" | "center" | "right";
26465
26248
  showOnFirstPage?: boolean;
26466
- format?: string;
26249
+ format?: "decimal" | "lowerLetter" | "upperLetter" | "lowerRoman" | "upperRoman" | "numberInDash" | "hebrew1" | "hebrew2";
26467
26250
  start?: number | unknown;
26468
26251
  }
26469
26252
  export interface DocHeaderFootersPageNumbersRemoveParams {
@@ -26478,7 +26261,7 @@ export interface DocHeaderFootersPageNumbersRemoveParams {
26478
26261
  kind: "section";
26479
26262
  sectionId: string;
26480
26263
  };
26481
- kind?: string;
26264
+ kind?: "header" | "footer";
26482
26265
  }
26483
26266
  export interface DocWatermarksApplyParams {
26484
26267
  doc?: string;
@@ -26502,7 +26285,7 @@ export interface DocWatermarksApplyParams {
26502
26285
  variant: "default" | "first" | "even";
26503
26286
  }>;
26504
26287
  });
26505
- action: string;
26288
+ action: "insert" | "replace" | "remove";
26506
26289
  watermark?: ({
26507
26290
  kind: "text";
26508
26291
  text: string;
@@ -26584,7 +26367,7 @@ export interface DocWatermarksApplyParams {
26584
26367
  watermarkId: string;
26585
26368
  };
26586
26369
  });
26587
- watermarkIds?: string[];
26370
+ watermarkIds?: Array<string>;
26588
26371
  }
26589
26372
  export interface DocWatermarksListParams {
26590
26373
  doc?: string;
@@ -26761,7 +26544,7 @@ export interface DocCreateContentControlParams {
26761
26544
  expectedRevision?: string;
26762
26545
  changeMode?: string;
26763
26546
  dryRun?: boolean;
26764
- kind: string;
26547
+ kind: "block" | "inline";
26765
26548
  controlType?: string;
26766
26549
  target?: {
26767
26550
  kind: "block" | "inline";
@@ -26986,7 +26769,7 @@ export interface DocCreateContentControlParams {
26986
26769
  };
26987
26770
  tag?: string;
26988
26771
  alias?: string;
26989
- lockMode?: string;
26772
+ lockMode?: "unlocked" | "sdtLocked" | "contentLocked" | "sdtContentLocked";
26990
26773
  content?: string;
26991
26774
  html?: string;
26992
26775
  json?: Record<string, unknown> | Array<Record<string, unknown>>;
@@ -27151,7 +26934,7 @@ export interface DocContentControlsWrapParams {
27151
26934
  expectedRevision?: string;
27152
26935
  changeMode?: string;
27153
26936
  dryRun?: boolean;
27154
- kind: string;
26937
+ kind: "block" | "inline";
27155
26938
  target: {
27156
26939
  kind: "block" | "inline";
27157
26940
  nodeType: "sdt";
@@ -27190,7 +26973,7 @@ export interface DocContentControlsWrapParams {
27190
26973
  };
27191
26974
  tag?: string;
27192
26975
  alias?: string;
27193
- lockMode?: string;
26976
+ lockMode?: "unlocked" | "sdtLocked" | "contentLocked" | "sdtContentLocked";
27194
26977
  }
27195
26978
  export interface DocContentControlsUnwrapParams {
27196
26979
  doc?: string;
@@ -27610,7 +27393,7 @@ export interface DocContentControlsPatchParams {
27610
27393
  };
27611
27394
  alias?: unknown;
27612
27395
  tag?: unknown;
27613
- appearance?: string;
27396
+ appearance?: "boundingBox" | "tags" | "hidden";
27614
27397
  color?: string;
27615
27398
  placeholder?: string | unknown;
27616
27399
  showingPlaceholder?: boolean;
@@ -27661,7 +27444,7 @@ export interface DocContentControlsSetLockModeParams {
27661
27444
  textboxId: string;
27662
27445
  });
27663
27446
  };
27664
- lockMode: string;
27447
+ lockMode: "unlocked" | "sdtLocked" | "contentLocked" | "sdtContentLocked";
27665
27448
  addToHistory?: boolean;
27666
27449
  }
27667
27450
  export interface DocContentControlsSetTypeParams {
@@ -27795,7 +27578,7 @@ export interface DocContentControlsReplaceContentParams {
27795
27578
  });
27796
27579
  };
27797
27580
  content: string;
27798
- format?: string;
27581
+ format?: "text" | "html" | "ooxml";
27799
27582
  }
27800
27583
  export interface DocContentControlsClearContentParams {
27801
27584
  doc?: string;
@@ -27887,7 +27670,7 @@ export interface DocContentControlsAppendContentParams {
27887
27670
  });
27888
27671
  };
27889
27672
  content: string;
27890
- format?: string;
27673
+ format?: "text" | "html";
27891
27674
  }
27892
27675
  export interface DocContentControlsPrependContentParams {
27893
27676
  doc?: string;
@@ -27934,7 +27717,7 @@ export interface DocContentControlsPrependContentParams {
27934
27717
  });
27935
27718
  };
27936
27719
  content: string;
27937
- format?: string;
27720
+ format?: "text" | "html";
27938
27721
  }
27939
27722
  export interface DocContentControlsInsertBeforeParams {
27940
27723
  doc?: string;
@@ -27981,7 +27764,7 @@ export interface DocContentControlsInsertBeforeParams {
27981
27764
  });
27982
27765
  };
27983
27766
  content: string;
27984
- format?: string;
27767
+ format?: "text" | "html";
27985
27768
  }
27986
27769
  export interface DocContentControlsInsertAfterParams {
27987
27770
  doc?: string;
@@ -28028,7 +27811,7 @@ export interface DocContentControlsInsertAfterParams {
28028
27811
  });
28029
27812
  };
28030
27813
  content: string;
28031
- format?: string;
27814
+ format?: "text" | "html";
28032
27815
  }
28033
27816
  export interface DocContentControlsGetBindingParams {
28034
27817
  doc?: string;
@@ -29688,7 +29471,7 @@ export interface DocBookmarksRemoveParams {
29688
29471
  export interface DocFootnotesListParams {
29689
29472
  doc?: string;
29690
29473
  sessionId?: string;
29691
- type?: string;
29474
+ type?: "footnote" | "endnote";
29692
29475
  limit?: number;
29693
29476
  offset?: number;
29694
29477
  }
@@ -29751,7 +29534,7 @@ export interface DocFootnotesInsertParams {
29751
29534
  });
29752
29535
  coordinateSpace?: "visible" | "tracked";
29753
29536
  };
29754
- type: string;
29537
+ type: "footnote" | "endnote";
29755
29538
  content?: string;
29756
29539
  body?: Record<string, unknown> | Array<Record<string, unknown>>;
29757
29540
  }
@@ -29796,7 +29579,7 @@ export interface DocFootnotesConfigureParams {
29796
29579
  expectedRevision?: string;
29797
29580
  changeMode?: string;
29798
29581
  dryRun?: boolean;
29799
- type: string;
29582
+ type: "footnote" | "endnote";
29800
29583
  scope: ({
29801
29584
  kind: "document";
29802
29585
  }) | ({
@@ -29833,7 +29616,7 @@ export interface DocClipboardInsertParams {
29833
29616
  plan?: Record<string, unknown>;
29834
29617
  fragment?: Record<string, unknown>;
29835
29618
  target?: Record<string, unknown>;
29836
- fallback?: string;
29619
+ fallback?: "reject-rich" | "plain-with-warning";
29837
29620
  }
29838
29621
  export interface DocClipboardSerializeSelectionParams {
29839
29622
  doc?: string;
@@ -29935,7 +29718,7 @@ export interface DocCrossRefsInsertParams {
29935
29718
  styleName: string;
29936
29719
  direction?: "before" | "after";
29937
29720
  });
29938
- display: string;
29721
+ display: "content" | "pageNumber" | "noteNumber" | "labelAndNumber" | "aboveBelow" | "numberOnly" | "numberFullContext" | "styledContent" | "styledPageNumber";
29939
29722
  }
29940
29723
  export interface DocCrossRefsRebuildParams {
29941
29724
  doc?: string;
@@ -30362,7 +30145,7 @@ export interface DocCaptionsInsertParams {
30362
30145
  textboxId: string;
30363
30146
  });
30364
30147
  };
30365
- position: string;
30148
+ position: "above" | "below";
30366
30149
  label: string;
30367
30150
  text?: string;
30368
30151
  }
@@ -30406,7 +30189,7 @@ export interface DocCaptionsConfigureParams {
30406
30189
  changeMode?: string;
30407
30190
  dryRun?: boolean;
30408
30191
  label: string;
30409
- format?: string;
30192
+ format?: "decimal" | "lowerRoman" | "upperRoman" | "lowerLetter" | "upperLetter";
30410
30193
  includeChapter?: boolean;
30411
30194
  chapterStyle?: string;
30412
30195
  }
@@ -30481,7 +30264,7 @@ export interface DocFieldsInsertParams {
30481
30264
  };
30482
30265
  instruction: string;
30483
30266
  cachedResultText?: string;
30484
- updatePolicy?: string;
30267
+ updatePolicy?: "rebuild" | "preserveCached";
30485
30268
  }
30486
30269
  export interface DocFieldsRebuildParams {
30487
30270
  doc?: string;
@@ -30626,7 +30409,7 @@ export interface DocCitationsInsertParams {
30626
30409
  });
30627
30410
  coordinateSpace?: "visible" | "tracked";
30628
30411
  };
30629
- sourceIds: string[];
30412
+ sourceIds: Array<string>;
30630
30413
  }
30631
30414
  export interface DocCitationsUpdateParams {
30632
30415
  doc?: string;
@@ -30769,7 +30552,7 @@ export interface DocCitationsSourcesInsertParams {
30769
30552
  expectedRevision?: string;
30770
30553
  changeMode?: string;
30771
30554
  dryRun?: boolean;
30772
- type: string;
30555
+ type: "book" | "journalArticle" | "conferenceProceedings" | "report" | "website" | "patent" | "case" | "statute" | "thesis" | "film" | "interview" | "misc";
30773
30556
  fields: {
30774
30557
  title?: string;
30775
30558
  authors?: Array<{
@@ -31323,7 +31106,7 @@ export interface DocDiffCompareParams {
31323
31106
  };
31324
31107
  payload: Record<string, unknown>;
31325
31108
  };
31326
- styleChangeMode?: string;
31109
+ styleChangeMode?: "direct";
31327
31110
  }
31328
31111
  export interface DocDiffApplyParams {
31329
31112
  doc?: string;
@@ -31392,12 +31175,12 @@ export interface DocDiffApplyParams {
31392
31175
  }>;
31393
31176
  payload: Record<string, unknown>;
31394
31177
  };
31395
- styleChangeMode?: string;
31178
+ styleChangeMode?: "direct";
31396
31179
  }
31397
31180
  export interface DocExportToDocxParams {
31398
31181
  doc?: string;
31399
31182
  sessionId?: string;
31400
- mode?: string;
31183
+ mode?: "review-preserving" | "final" | "original";
31401
31184
  }
31402
31185
  export interface DocProtectionGetParams {
31403
31186
  doc?: string;
@@ -31411,7 +31194,7 @@ export interface DocProtectionSetEditingRestrictionParams {
31411
31194
  expectedRevision?: string;
31412
31195
  changeMode?: string;
31413
31196
  dryRun?: boolean;
31414
- mode: string;
31197
+ mode: "readOnly";
31415
31198
  formattingRestricted?: boolean;
31416
31199
  }
31417
31200
  export interface DocProtectionClearEditingRestrictionParams {
@@ -31683,7 +31466,7 @@ export interface DocCustomXmlPartsCreateParams {
31683
31466
  changeMode?: string;
31684
31467
  dryRun?: boolean;
31685
31468
  content: string;
31686
- schemaRefs?: string[];
31469
+ schemaRefs?: Array<string>;
31687
31470
  }
31688
31471
  export interface DocCustomXmlPartsPatchParams {
31689
31472
  doc?: string;
@@ -31699,7 +31482,7 @@ export interface DocCustomXmlPartsPatchParams {
31699
31482
  partName: string;
31700
31483
  });
31701
31484
  content?: string;
31702
- schemaRefs?: string[];
31485
+ schemaRefs?: Array<string>;
31703
31486
  }
31704
31487
  export interface DocCustomXmlPartsRemoveParams {
31705
31488
  doc?: string;
@@ -32144,7 +31927,7 @@ export interface DocOpenParams {
32144
31927
  documentId?: string;
32145
31928
  tokenEnv?: string;
32146
31929
  headersEnv?: string;
32147
- params?: Record<string, unknown>;
31930
+ params?: Record<string, string>;
32148
31931
  syncTimeoutMs?: number;
32149
31932
  roomMode?: "join" | "create";
32150
31933
  bootstrapSettlingMs?: number;
@@ -32174,7 +31957,7 @@ export interface DocOpenParams {
32174
31957
  overrideType?: string;
32175
31958
  roomMode?: string;
32176
31959
  bootstrapSettlingMs?: number;
32177
- runtime?: string;
31960
+ runtime?: "v2";
32178
31961
  userName?: string;
32179
31962
  userEmail?: string;
32180
31963
  password?: string;
@@ -32183,7 +31966,7 @@ export interface DocSaveParams {
32183
31966
  sessionId?: string;
32184
31967
  out?: string;
32185
31968
  force?: boolean;
32186
- mode?: string;
31969
+ mode?: "review-preserving" | "final" | "original";
32187
31970
  inPlace?: boolean;
32188
31971
  }
32189
31972
  export interface DocCloseParams {
@@ -32196,7 +31979,7 @@ export interface DocInsertTabParams {
32196
31979
  out?: string;
32197
31980
  force?: boolean;
32198
31981
  expectedRevision?: string;
32199
- target?: Record<string, unknown> | unknown[];
31982
+ target?: unknown;
32200
31983
  ref?: string;
32201
31984
  blockId?: string;
32202
31985
  start?: number;
@@ -32209,7 +31992,7 @@ export interface DocInsertLineBreakParams {
32209
31992
  out?: string;
32210
31993
  force?: boolean;
32211
31994
  expectedRevision?: string;
32212
- target?: Record<string, unknown> | unknown[];
31995
+ target?: unknown;
32213
31996
  ref?: string;
32214
31997
  blockId?: string;
32215
31998
  start?: number;
@@ -32254,7 +32037,7 @@ export interface DocPresetGetCatalogParams {
32254
32037
  preset?: string;
32255
32038
  }
32256
32039
  export interface DocPresetGetToolsParams {
32257
- provider: string;
32040
+ provider: "openai" | "anthropic" | "vercel" | "generic";
32258
32041
  preset?: string;
32259
32042
  cache?: boolean;
32260
32043
  excludeActions?: string;
@@ -32274,7 +32057,7 @@ export interface DocPresetDispatchParams {
32274
32057
  sessionId?: string;
32275
32058
  expectedRevision?: number;
32276
32059
  toolName: string;
32277
- args?: Record<string, unknown> | unknown[];
32060
+ args?: unknown;
32278
32061
  excludeActions?: string;
32279
32062
  enforceChangeMode?: string;
32280
32063
  allowDirectActions?: string;
@@ -33590,13 +33373,13 @@ export type DocMarkdownToFragmentResult = {
33590
33373
  }) | ({
33591
33374
  id?: string;
33592
33375
  kind: "lineBreak";
33593
- lineBreak: Record<string, unknown>;
33376
+ lineBreak: Record<string, never>;
33594
33377
  })>;
33595
33378
  };
33596
33379
  }) | ({
33597
33380
  id?: string;
33598
33381
  kind: "lineBreak";
33599
- lineBreak: Record<string, unknown>;
33382
+ lineBreak: Record<string, never>;
33600
33383
  })>;
33601
33384
  styleRef?: string;
33602
33385
  props?: {
@@ -33701,13 +33484,13 @@ export type DocMarkdownToFragmentResult = {
33701
33484
  }) | ({
33702
33485
  id?: string;
33703
33486
  kind: "lineBreak";
33704
- lineBreak: Record<string, unknown>;
33487
+ lineBreak: Record<string, never>;
33705
33488
  })>;
33706
33489
  };
33707
33490
  }) | ({
33708
33491
  id?: string;
33709
33492
  kind: "lineBreak";
33710
- lineBreak: Record<string, unknown>;
33493
+ lineBreak: Record<string, never>;
33711
33494
  })>;
33712
33495
  styleRef?: string;
33713
33496
  props?: {
@@ -33778,7 +33561,7 @@ export type DocMarkdownToFragmentResult = {
33778
33561
  }) | ({
33779
33562
  id?: string;
33780
33563
  kind: "horizontalRule";
33781
- horizontalRule: Record<string, unknown>;
33564
+ horizontalRule: Record<string, never>;
33782
33565
  })) | (Array<({
33783
33566
  id?: string;
33784
33567
  kind: "paragraph";
@@ -33862,13 +33645,13 @@ export type DocMarkdownToFragmentResult = {
33862
33645
  }) | ({
33863
33646
  id?: string;
33864
33647
  kind: "lineBreak";
33865
- lineBreak: Record<string, unknown>;
33648
+ lineBreak: Record<string, never>;
33866
33649
  })>;
33867
33650
  };
33868
33651
  }) | ({
33869
33652
  id?: string;
33870
33653
  kind: "lineBreak";
33871
- lineBreak: Record<string, unknown>;
33654
+ lineBreak: Record<string, never>;
33872
33655
  })>;
33873
33656
  styleRef?: string;
33874
33657
  props?: {
@@ -33973,13 +33756,13 @@ export type DocMarkdownToFragmentResult = {
33973
33756
  }) | ({
33974
33757
  id?: string;
33975
33758
  kind: "lineBreak";
33976
- lineBreak: Record<string, unknown>;
33759
+ lineBreak: Record<string, never>;
33977
33760
  })>;
33978
33761
  };
33979
33762
  }) | ({
33980
33763
  id?: string;
33981
33764
  kind: "lineBreak";
33982
- lineBreak: Record<string, unknown>;
33765
+ lineBreak: Record<string, never>;
33983
33766
  })>;
33984
33767
  styleRef?: string;
33985
33768
  props?: {
@@ -34050,7 +33833,7 @@ export type DocMarkdownToFragmentResult = {
34050
33833
  }) | ({
34051
33834
  id?: string;
34052
33835
  kind: "horizontalRule";
34053
- horizontalRule: Record<string, unknown>;
33836
+ horizontalRule: Record<string, never>;
34054
33837
  })>);
34055
33838
  lossy: boolean;
34056
33839
  diagnostics: Array<{
@@ -34158,13 +33941,13 @@ export type DocHtmlToFragmentResult = {
34158
33941
  }) | ({
34159
33942
  id?: string;
34160
33943
  kind: "lineBreak";
34161
- lineBreak: Record<string, unknown>;
33944
+ lineBreak: Record<string, never>;
34162
33945
  })>;
34163
33946
  };
34164
33947
  }) | ({
34165
33948
  id?: string;
34166
33949
  kind: "lineBreak";
34167
- lineBreak: Record<string, unknown>;
33950
+ lineBreak: Record<string, never>;
34168
33951
  })>;
34169
33952
  styleRef?: string;
34170
33953
  props?: {
@@ -34269,13 +34052,13 @@ export type DocHtmlToFragmentResult = {
34269
34052
  }) | ({
34270
34053
  id?: string;
34271
34054
  kind: "lineBreak";
34272
- lineBreak: Record<string, unknown>;
34055
+ lineBreak: Record<string, never>;
34273
34056
  })>;
34274
34057
  };
34275
34058
  }) | ({
34276
34059
  id?: string;
34277
34060
  kind: "lineBreak";
34278
- lineBreak: Record<string, unknown>;
34061
+ lineBreak: Record<string, never>;
34279
34062
  })>;
34280
34063
  styleRef?: string;
34281
34064
  props?: {
@@ -34346,7 +34129,7 @@ export type DocHtmlToFragmentResult = {
34346
34129
  }) | ({
34347
34130
  id?: string;
34348
34131
  kind: "horizontalRule";
34349
- horizontalRule: Record<string, unknown>;
34132
+ horizontalRule: Record<string, never>;
34350
34133
  })) | (Array<({
34351
34134
  id?: string;
34352
34135
  kind: "paragraph";
@@ -34430,13 +34213,13 @@ export type DocHtmlToFragmentResult = {
34430
34213
  }) | ({
34431
34214
  id?: string;
34432
34215
  kind: "lineBreak";
34433
- lineBreak: Record<string, unknown>;
34216
+ lineBreak: Record<string, never>;
34434
34217
  })>;
34435
34218
  };
34436
34219
  }) | ({
34437
34220
  id?: string;
34438
34221
  kind: "lineBreak";
34439
- lineBreak: Record<string, unknown>;
34222
+ lineBreak: Record<string, never>;
34440
34223
  })>;
34441
34224
  styleRef?: string;
34442
34225
  props?: {
@@ -34541,13 +34324,13 @@ export type DocHtmlToFragmentResult = {
34541
34324
  }) | ({
34542
34325
  id?: string;
34543
34326
  kind: "lineBreak";
34544
- lineBreak: Record<string, unknown>;
34327
+ lineBreak: Record<string, never>;
34545
34328
  })>;
34546
34329
  };
34547
34330
  }) | ({
34548
34331
  id?: string;
34549
34332
  kind: "lineBreak";
34550
- lineBreak: Record<string, unknown>;
34333
+ lineBreak: Record<string, never>;
34551
34334
  })>;
34552
34335
  styleRef?: string;
34553
34336
  props?: {
@@ -34618,7 +34401,7 @@ export type DocHtmlToFragmentResult = {
34618
34401
  }) | ({
34619
34402
  id?: string;
34620
34403
  kind: "horizontalRule";
34621
- horizontalRule: Record<string, unknown>;
34404
+ horizontalRule: Record<string, never>;
34622
34405
  })>);
34623
34406
  lossy: boolean;
34624
34407
  diagnostics: Array<{
@@ -81210,12 +80993,12 @@ export type DocStylesApplyResult = {
81210
80993
  };
81211
80994
  export type DocStylesGetCatalogResult = {
81212
80995
  version: "style-catalog/v1";
81213
- revision: unknown;
80996
+ revision: string | null;
81214
80997
  view: "quickGallery" | "recommended" | "currentDocument" | "all" | "inUse";
81215
80998
  defaults: {
81216
- paragraphStyleId: unknown;
81217
- characterStyleId: unknown;
81218
- tableStyleId: unknown;
80999
+ paragraphStyleId: string | null;
81000
+ characterStyleId: string | null;
81001
+ tableStyleId: string | null;
81219
81002
  };
81220
81003
  items: Array<{
81221
81004
  id: string;
@@ -81225,10 +81008,10 @@ export type DocStylesGetCatalogResult = {
81225
81008
  custom: boolean;
81226
81009
  builtin: boolean;
81227
81010
  default: boolean;
81228
- basedOn: unknown;
81229
- next: unknown;
81230
- link: unknown;
81231
- priority: unknown;
81011
+ basedOn: string | null;
81012
+ next: string | null;
81013
+ link: string | null;
81014
+ priority: number | null;
81232
81015
  qFormat: boolean;
81233
81016
  hidden: boolean;
81234
81017
  semiHidden: boolean;
@@ -81262,10 +81045,10 @@ export type DocStylesGetCatalogResult = {
81262
81045
  custom: boolean;
81263
81046
  builtin: boolean;
81264
81047
  default: boolean;
81265
- basedOn: unknown;
81266
- next: unknown;
81267
- link: unknown;
81268
- priority: unknown;
81048
+ basedOn: string | null;
81049
+ next: string | null;
81050
+ link: string | null;
81051
+ priority: number | null;
81269
81052
  qFormat: boolean;
81270
81053
  hidden: boolean;
81271
81054
  semiHidden: boolean;
@@ -81479,7 +81262,7 @@ export type DocCreateParagraphResult = {
81479
81262
  handle: {
81480
81263
  ref: string;
81481
81264
  refStability: "stable" | "ephemeral";
81482
- targetKind: unknown;
81265
+ targetKind: "text" | "node" | "list" | "comment" | "trackedChange" | "table" | "tableCell" | "tableOfContents" | "section" | "sdt" | "field" | string;
81483
81266
  };
81484
81267
  evaluatedRevision: string;
81485
81268
  ref?: string;
@@ -81600,7 +81383,7 @@ export type DocCreateHeadingResult = {
81600
81383
  handle: {
81601
81384
  ref: string;
81602
81385
  refStability: "stable" | "ephemeral";
81603
- targetKind: unknown;
81386
+ targetKind: "text" | "node" | "list" | "comment" | "trackedChange" | "table" | "tableCell" | "tableOfContents" | "section" | "sdt" | "field" | string;
81604
81387
  };
81605
81388
  evaluatedRevision: string;
81606
81389
  ref?: string;
@@ -81717,7 +81500,43 @@ export type DocSectionsListResult = {
81717
81500
  first?: string;
81718
81501
  even?: string;
81719
81502
  };
81720
- pageBorders?: unknown | unknown | unknown | unknown | unknown | unknown | unknown;
81503
+ pageBorders?: {
81504
+ display?: "allPages" | "firstPage" | "notFirstPage";
81505
+ offsetFrom?: "page" | "text";
81506
+ zOrder?: "front" | "back";
81507
+ top?: {
81508
+ style?: string;
81509
+ size?: number;
81510
+ space?: number;
81511
+ color?: string;
81512
+ shadow?: boolean;
81513
+ frame?: boolean;
81514
+ };
81515
+ right?: {
81516
+ style?: string;
81517
+ size?: number;
81518
+ space?: number;
81519
+ color?: string;
81520
+ shadow?: boolean;
81521
+ frame?: boolean;
81522
+ };
81523
+ bottom?: {
81524
+ style?: string;
81525
+ size?: number;
81526
+ space?: number;
81527
+ color?: string;
81528
+ shadow?: boolean;
81529
+ frame?: boolean;
81530
+ };
81531
+ left?: {
81532
+ style?: string;
81533
+ size?: number;
81534
+ space?: number;
81535
+ color?: string;
81536
+ shadow?: boolean;
81537
+ frame?: boolean;
81538
+ };
81539
+ };
81721
81540
  }>;
81722
81541
  page: {
81723
81542
  limit: number;
@@ -81785,7 +81604,43 @@ export type DocSectionsGetResult = {
81785
81604
  first?: string;
81786
81605
  even?: string;
81787
81606
  };
81788
- pageBorders?: unknown | unknown | unknown | unknown | unknown | unknown | unknown;
81607
+ pageBorders?: {
81608
+ display?: "allPages" | "firstPage" | "notFirstPage";
81609
+ offsetFrom?: "page" | "text";
81610
+ zOrder?: "front" | "back";
81611
+ top?: {
81612
+ style?: string;
81613
+ size?: number;
81614
+ space?: number;
81615
+ color?: string;
81616
+ shadow?: boolean;
81617
+ frame?: boolean;
81618
+ };
81619
+ right?: {
81620
+ style?: string;
81621
+ size?: number;
81622
+ space?: number;
81623
+ color?: string;
81624
+ shadow?: boolean;
81625
+ frame?: boolean;
81626
+ };
81627
+ bottom?: {
81628
+ style?: string;
81629
+ size?: number;
81630
+ space?: number;
81631
+ color?: string;
81632
+ shadow?: boolean;
81633
+ frame?: boolean;
81634
+ };
81635
+ left?: {
81636
+ style?: string;
81637
+ size?: number;
81638
+ space?: number;
81639
+ color?: string;
81640
+ shadow?: boolean;
81641
+ frame?: boolean;
81642
+ };
81643
+ };
81789
81644
  };
81790
81645
  export type DocSectionsSetBreakTypeResult = {
81791
81646
  success: true;
@@ -87975,7 +87830,7 @@ export type DocListsListResult = {
87975
87830
  handle: {
87976
87831
  ref: string;
87977
87832
  refStability: "stable" | "ephemeral";
87978
- targetKind: unknown;
87833
+ targetKind: "text" | "node" | "list" | "comment" | "trackedChange" | "table" | "tableCell" | "tableOfContents" | "section" | "sdt" | "field" | string;
87979
87834
  };
87980
87835
  address: {
87981
87836
  kind: "block";
@@ -89436,7 +89291,7 @@ export type DocListsSplitResult = {
89436
89291
  success: true;
89437
89292
  listId: string;
89438
89293
  numId: number;
89439
- restartedAt: unknown;
89294
+ restartedAt: number | null;
89440
89295
  };
89441
89296
  export type DocListsSetLevelResult = {
89442
89297
  success: true;
@@ -95236,7 +95091,7 @@ export type DocListsGetStyleResult = {
95236
95091
  trailingCharacter?: "tab" | "space" | "nothing";
95237
95092
  markerFont?: string;
95238
95093
  pictureBulletId?: number;
95239
- tabStopAt?: unknown;
95094
+ tabStopAt?: number | null;
95240
95095
  }>;
95241
95096
  };
95242
95097
  };
@@ -97529,11 +97384,11 @@ export type DocListsSetLevelLayoutResult = {
97529
97384
  export type DocListsGetStateResult = ({
97530
97385
  success: true;
97531
97386
  isListItem: boolean;
97532
- numId?: unknown;
97387
+ numId?: string | null;
97533
97388
  ilvl: number;
97534
- abstractNumId?: unknown;
97535
- numFmt?: unknown;
97536
- lvlText?: unknown;
97389
+ abstractNumId?: string | null;
97390
+ numFmt?: string | null;
97391
+ lvlText?: string | null;
97537
97392
  seed?: "bullet" | "ordered" | null;
97538
97393
  }) | ({
97539
97394
  success: false;
@@ -101370,7 +101225,7 @@ export type DocCommentsGetResult = {
101370
101225
  creatorImage?: string;
101371
101226
  trackedChange?: boolean;
101372
101227
  trackedChangeType?: "insertion" | "deletion" | "replacement" | "formatting" | "move" | "structural" | "insert" | "delete" | "format";
101373
- trackedChangeDisplayType?: unknown;
101228
+ trackedChangeDisplayType?: string | null;
101374
101229
  trackedChangeStory?: (({
101375
101230
  kind: "story";
101376
101231
  storyType: "body";
@@ -101402,10 +101257,10 @@ export type DocCommentsGetResult = {
101402
101257
  storyType: "textbox";
101403
101258
  textboxId: string;
101404
101259
  })) | null;
101405
- trackedChangeAnchorKey?: unknown;
101406
- trackedChangeText?: unknown;
101407
- insertedText?: unknown;
101408
- deletedText?: unknown;
101260
+ trackedChangeAnchorKey?: string | null;
101261
+ trackedChangeText?: string | null;
101262
+ insertedText?: string | null;
101263
+ deletedText?: string | null;
101409
101264
  trackedChangeLink?: ({
101410
101265
  trackedChange: true;
101411
101266
  trackedChangeId: string;
@@ -101424,7 +101279,7 @@ export type DocCommentsListResult = {
101424
101279
  handle: {
101425
101280
  ref: string;
101426
101281
  refStability: "stable" | "ephemeral";
101427
- targetKind: unknown;
101282
+ targetKind: "text" | "node" | "list" | "comment" | "trackedChange" | "table" | "tableCell" | "tableOfContents" | "section" | "sdt" | "field" | string;
101428
101283
  };
101429
101284
  address: {
101430
101285
  kind: "entity";
@@ -101493,7 +101348,7 @@ export type DocCommentsListResult = {
101493
101348
  creatorImage?: string;
101494
101349
  trackedChange?: boolean;
101495
101350
  trackedChangeType?: "insertion" | "deletion" | "replacement" | "formatting" | "move" | "structural" | "insert" | "delete" | "format";
101496
- trackedChangeDisplayType?: unknown;
101351
+ trackedChangeDisplayType?: string | null;
101497
101352
  trackedChangeStory?: (({
101498
101353
  kind: "story";
101499
101354
  storyType: "body";
@@ -101525,10 +101380,10 @@ export type DocCommentsListResult = {
101525
101380
  storyType: "textbox";
101526
101381
  textboxId: string;
101527
101382
  })) | null;
101528
- trackedChangeAnchorKey?: unknown;
101529
- trackedChangeText?: unknown;
101530
- insertedText?: unknown;
101531
- deletedText?: unknown;
101383
+ trackedChangeAnchorKey?: string | null;
101384
+ trackedChangeText?: string | null;
101385
+ insertedText?: string | null;
101386
+ deletedText?: string | null;
101532
101387
  trackedChangeLink?: ({
101533
101388
  trackedChange: true;
101534
101389
  trackedChangeId: string;
@@ -101553,7 +101408,7 @@ export type DocTrackChangesListResult = {
101553
101408
  handle: {
101554
101409
  ref: string;
101555
101410
  refStability: "stable" | "ephemeral";
101556
- targetKind: unknown;
101411
+ targetKind: "text" | "node" | "list" | "comment" | "trackedChange" | "table" | "tableCell" | "tableOfContents" | "section" | "sdt" | "field" | string;
101557
101412
  };
101558
101413
  address: {
101559
101414
  kind: "entity";
@@ -103142,7 +102997,7 @@ export type DocQueryMatchResult = {
103142
102997
  handle: {
103143
102998
  ref: string;
103144
102999
  refStability: "stable" | "ephemeral";
103145
- targetKind: unknown;
103000
+ targetKind: "text" | "node" | "list" | "comment" | "trackedChange" | "table" | "tableCell" | "tableOfContents" | "section" | "sdt" | "field" | string;
103146
103001
  };
103147
103002
  matchKind: "text";
103148
103003
  address: {
@@ -103416,13 +103271,13 @@ export type DocQueryMatchResult = {
103416
103271
  ref: string;
103417
103272
  }>;
103418
103273
  }>;
103419
- groups?: Array<unknown>;
103274
+ groups?: Array<string | null>;
103420
103275
  }) | ({
103421
103276
  id: string;
103422
103277
  handle: {
103423
103278
  ref: string;
103424
103279
  refStability: "stable" | "ephemeral";
103425
- targetKind: unknown;
103280
+ targetKind: "text" | "node" | "list" | "comment" | "trackedChange" | "table" | "tableCell" | "tableOfContents" | "section" | "sdt" | "field" | string;
103426
103281
  };
103427
103282
  matchKind: "node";
103428
103283
  address: ({
@@ -103993,6 +103848,8 @@ export type DocSelectionCurrentResult = {
103993
103848
  tableSelection?: ({
103994
103849
  kind: "tableCells";
103995
103850
  type: "table" | "cell" | "cells";
103851
+ selectionMode: "text" | "cells";
103852
+ isRectangular: boolean;
103996
103853
  tableId: string;
103997
103854
  story?: ({
103998
103855
  kind: "story";
@@ -104037,6 +103894,8 @@ export type DocSelectionCurrentResult = {
104037
103894
  nodeId: string;
104038
103895
  rowIndex: number;
104039
103896
  columnIndex: number;
103897
+ rowspan: number;
103898
+ colspan: number;
104040
103899
  }>;
104041
103900
  }) | null;
104042
103901
  activeMarks: Array<string>;
@@ -104232,6 +104091,8 @@ export type DocSelectionExtractOoxmlResult = {
104232
104091
  coordinateSpace?: "visible" | "tracked";
104233
104092
  }) | ({
104234
104093
  kind: "tableCells";
104094
+ selectionMode?: "cells";
104095
+ isRectangular?: true;
104235
104096
  tableId: string;
104236
104097
  start: {
104237
104098
  rowIndex: number;
@@ -104277,7 +104138,7 @@ export type DocSelectionExtractOoxmlResult = {
104277
104138
  fragment: {
104278
104139
  placement: "inline" | "blocks" | "table";
104279
104140
  xml: string;
104280
- namespaces: Record<string, unknown>;
104141
+ namespaces: Record<string, string>;
104281
104142
  table?: {
104282
104143
  tableId: string;
104283
104144
  gridColumnCount: number;
@@ -104522,7 +104383,7 @@ export type DocPlanExecuteResult = {
104522
104383
  entryIndex: number;
104523
104384
  operationId: string;
104524
104385
  status: "passed" | "allowed-failure" | "expected-failure";
104525
- captureAs: unknown;
104386
+ captureAs: string | null;
104526
104387
  error?: string;
104527
104388
  }>;
104528
104389
  captures: Record<string, unknown>;
@@ -107853,13 +107714,13 @@ export type DocCapabilitiesCheckResult = ({
107853
107714
  }) | ({
107854
107715
  id?: string;
107855
107716
  kind: "lineBreak";
107856
- lineBreak: Record<string, unknown>;
107717
+ lineBreak: Record<string, never>;
107857
107718
  })>;
107858
107719
  };
107859
107720
  }) | ({
107860
107721
  id?: string;
107861
107722
  kind: "lineBreak";
107862
- lineBreak: Record<string, unknown>;
107723
+ lineBreak: Record<string, never>;
107863
107724
  })>;
107864
107725
  styleRef?: string;
107865
107726
  props?: {
@@ -107964,13 +107825,13 @@ export type DocCapabilitiesCheckResult = ({
107964
107825
  }) | ({
107965
107826
  id?: string;
107966
107827
  kind: "lineBreak";
107967
- lineBreak: Record<string, unknown>;
107828
+ lineBreak: Record<string, never>;
107968
107829
  })>;
107969
107830
  };
107970
107831
  }) | ({
107971
107832
  id?: string;
107972
107833
  kind: "lineBreak";
107973
- lineBreak: Record<string, unknown>;
107834
+ lineBreak: Record<string, never>;
107974
107835
  })>;
107975
107836
  styleRef?: string;
107976
107837
  props?: {
@@ -108041,7 +107902,7 @@ export type DocCapabilitiesCheckResult = ({
108041
107902
  }) | ({
108042
107903
  id?: string;
108043
107904
  kind: "horizontalRule";
108044
- horizontalRule: Record<string, unknown>;
107905
+ horizontalRule: Record<string, never>;
108045
107906
  })) | (Array<({
108046
107907
  id?: string;
108047
107908
  kind: "paragraph";
@@ -108125,13 +107986,13 @@ export type DocCapabilitiesCheckResult = ({
108125
107986
  }) | ({
108126
107987
  id?: string;
108127
107988
  kind: "lineBreak";
108128
- lineBreak: Record<string, unknown>;
107989
+ lineBreak: Record<string, never>;
108129
107990
  })>;
108130
107991
  };
108131
107992
  }) | ({
108132
107993
  id?: string;
108133
107994
  kind: "lineBreak";
108134
- lineBreak: Record<string, unknown>;
107995
+ lineBreak: Record<string, never>;
108135
107996
  })>;
108136
107997
  styleRef?: string;
108137
107998
  props?: {
@@ -108236,13 +108097,13 @@ export type DocCapabilitiesCheckResult = ({
108236
108097
  }) | ({
108237
108098
  id?: string;
108238
108099
  kind: "lineBreak";
108239
- lineBreak: Record<string, unknown>;
108100
+ lineBreak: Record<string, never>;
108240
108101
  })>;
108241
108102
  };
108242
108103
  }) | ({
108243
108104
  id?: string;
108244
108105
  kind: "lineBreak";
108245
- lineBreak: Record<string, unknown>;
108106
+ lineBreak: Record<string, never>;
108246
108107
  })>;
108247
108108
  styleRef?: string;
108248
108109
  props?: {
@@ -108313,7 +108174,7 @@ export type DocCapabilitiesCheckResult = ({
108313
108174
  }) | ({
108314
108175
  id?: string;
108315
108176
  kind: "horizontalRule";
108316
- horizontalRule: Record<string, unknown>;
108177
+ horizontalRule: Record<string, never>;
108317
108178
  })>);
108318
108179
  resolution: {
108319
108180
  target: ({
@@ -111849,16 +111710,16 @@ export type DocTablesGetPropertiesResult = {
111849
111710
  cellSpacingPt?: number;
111850
111711
  };
111851
111712
  export type DocTablesGetStylesResult = {
111852
- explicitDefaultStyleId: unknown;
111853
- effectiveDefaultStyleId: unknown;
111713
+ explicitDefaultStyleId: string | null;
111714
+ effectiveDefaultStyleId: string | null;
111854
111715
  effectiveDefaultSource: string;
111855
111716
  styles: Array<{
111856
111717
  id: string;
111857
- name: unknown;
111858
- basedOn: unknown;
111718
+ name: string | null;
111719
+ basedOn: string | null;
111859
111720
  isDefault: boolean;
111860
111721
  isCustom: boolean;
111861
- uiPriority: unknown;
111722
+ uiPriority: number | null;
111862
111723
  hidden: boolean;
111863
111724
  quickFormat: boolean;
111864
111725
  conditionalRegions: Array<string>;
@@ -111886,7 +111747,7 @@ export type DocTocListResult = {
111886
111747
  handle: {
111887
111748
  ref: string;
111888
111749
  refStability: "stable" | "ephemeral";
111889
- targetKind: unknown;
111750
+ targetKind: "text" | "node" | "list" | "comment" | "trackedChange" | "table" | "tableCell" | "tableOfContents" | "section" | "sdt" | "field" | string;
111890
111751
  };
111891
111752
  address: {
111892
111753
  kind: "block";
@@ -111964,7 +111825,7 @@ export type DocTocListEntriesResult = {
111964
111825
  handle: {
111965
111826
  ref: string;
111966
111827
  refStability: "stable" | "ephemeral";
111967
- targetKind: unknown;
111828
+ targetKind: "text" | "node" | "list" | "comment" | "trackedChange" | "table" | "tableCell" | "tableOfContents" | "section" | "sdt" | "field" | string;
111968
111829
  };
111969
111830
  address: {
111970
111831
  kind: "inline";
@@ -113403,7 +113264,7 @@ export type DocHeaderFootersListResult = {
113403
113264
  handle: {
113404
113265
  ref: string;
113405
113266
  refStability: "stable" | "ephemeral";
113406
- targetKind: unknown;
113267
+ targetKind: "text" | "node" | "list" | "comment" | "trackedChange" | "table" | "tableCell" | "tableOfContents" | "section" | "sdt" | "field" | string;
113407
113268
  };
113408
113269
  section: {
113409
113270
  kind: "section";
@@ -113412,7 +113273,7 @@ export type DocHeaderFootersListResult = {
113412
113273
  sectionIndex: number;
113413
113274
  kind: "header" | "footer";
113414
113275
  variant: "default" | "first" | "even";
113415
- refId?: unknown;
113276
+ refId?: string | null;
113416
113277
  isExplicit: boolean;
113417
113278
  }>;
113418
113279
  page: {
@@ -113429,7 +113290,7 @@ export type DocHeaderFootersGetResult = {
113429
113290
  sectionIndex: number;
113430
113291
  kind: "header" | "footer";
113431
113292
  variant: "default" | "first" | "even";
113432
- refId?: unknown;
113293
+ refId?: string | null;
113433
113294
  isExplicit: boolean;
113434
113295
  };
113435
113296
  export type DocHeaderFootersResolveResult = ({
@@ -113479,7 +113340,7 @@ export type DocHeaderFootersPartsListResult = {
113479
113340
  handle: {
113480
113341
  ref: string;
113481
113342
  refStability: "stable" | "ephemeral";
113482
- targetKind: unknown;
113343
+ targetKind: "text" | "node" | "list" | "comment" | "trackedChange" | "table" | "tableCell" | "tableOfContents" | "section" | "sdt" | "field" | string;
113483
113344
  };
113484
113345
  refId: string;
113485
113346
  kind: "header" | "footer";
@@ -123493,8 +123354,8 @@ export type DocDiffCompareResult = {
123493
123354
  partChanges?: Array<{
123494
123355
  partUri: string;
123495
123356
  kind: "added" | "removed" | "modified";
123496
- beforeFingerprint: unknown;
123497
- afterFingerprint: unknown;
123357
+ beforeFingerprint: string | null;
123358
+ afterFingerprint: string | null;
123498
123359
  }>;
123499
123360
  payload: Record<string, unknown>;
123500
123361
  };
@@ -124069,11 +123930,11 @@ export interface DocFindBoundParams {
124069
123930
  pattern?: string;
124070
123931
  mode?: string;
124071
123932
  caseSensitive?: boolean;
124072
- query?: Record<string, unknown> | unknown[];
123933
+ query?: unknown;
124073
123934
  }
124074
123935
  export interface DocGetNodeBoundParams {
124075
- kind?: string;
124076
- nodeType?: string;
123936
+ kind?: "block" | "inline";
123937
+ nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
124077
123938
  nodeId?: string;
124078
123939
  story?: ({
124079
123940
  kind: "story";
@@ -124116,11 +123977,11 @@ export interface DocGetNodeBoundParams {
124116
123977
  offset: number;
124117
123978
  };
124118
123979
  };
124119
- address?: Record<string, unknown> | unknown[];
123980
+ address?: unknown;
124120
123981
  }
124121
123982
  export interface DocGetNodeByIdBoundParams {
124122
123983
  id: string;
124123
- nodeType?: string;
123984
+ nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
124124
123985
  }
124125
123986
  export interface DocGetTextBoundParams {
124126
123987
  in?: ({
@@ -124187,7 +124048,7 @@ export interface DocGetMarkdownBoundParams {
124187
124048
  storyType: "textbox";
124188
124049
  textboxId: string;
124189
124050
  });
124190
- reviewMode?: string;
124051
+ reviewMode?: "final" | "original" | "redline";
124191
124052
  scope?: ({
124192
124053
  kind: "block";
124193
124054
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
@@ -124441,7 +124302,7 @@ export interface DocGetHtmlBoundParams {
124441
124302
  storyType: "textbox";
124442
124303
  textboxId: string;
124443
124304
  });
124444
- reviewMode?: string;
124305
+ reviewMode?: "final" | "original" | "redline";
124445
124306
  scope?: ({
124446
124307
  kind: "block";
124447
124308
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
@@ -124696,7 +124557,7 @@ export interface DocProjectMarkdownBoundParams {
124696
124557
  storyType: "textbox";
124697
124558
  textboxId: string;
124698
124559
  });
124699
- reviewMode?: string;
124560
+ reviewMode?: "final" | "original" | "redline";
124700
124561
  scope?: ({
124701
124562
  kind: "block";
124702
124563
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
@@ -124951,7 +124812,7 @@ export interface DocProjectHtmlBoundParams {
124951
124812
  storyType: "textbox";
124952
124813
  textboxId: string;
124953
124814
  });
124954
- reviewMode?: string;
124815
+ reviewMode?: "final" | "original" | "redline";
124955
124816
  scope?: ({
124956
124817
  kind: "block";
124957
124818
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
@@ -125388,225 +125249,6 @@ export interface DocInsertBoundParams {
125388
125249
  textboxId: string;
125389
125250
  });
125390
125251
  coordinateSpace?: "visible" | "tracked";
125391
- }) | ({
125392
- kind: "selection";
125393
- start: ({
125394
- kind: "text";
125395
- blockId: string;
125396
- offset: number;
125397
- story?: ({
125398
- kind: "story";
125399
- storyType: "body";
125400
- }) | ({
125401
- kind: "story";
125402
- storyType: "headerFooterSlot";
125403
- section: {
125404
- kind: "section";
125405
- sectionId: string;
125406
- };
125407
- headerFooterKind: "header" | "footer";
125408
- variant: "default" | "first" | "even";
125409
- resolution?: "effective" | "explicit";
125410
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
125411
- }) | ({
125412
- kind: "story";
125413
- storyType: "headerFooterPart";
125414
- refId: string;
125415
- }) | ({
125416
- kind: "story";
125417
- storyType: "footnote";
125418
- noteId: string;
125419
- }) | ({
125420
- kind: "story";
125421
- storyType: "endnote";
125422
- noteId: string;
125423
- }) | ({
125424
- kind: "story";
125425
- storyType: "textbox";
125426
- textboxId: string;
125427
- });
125428
- }) | ({
125429
- kind: "nodeEdge";
125430
- node: {
125431
- kind: "block";
125432
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
125433
- nodeId: string;
125434
- story?: ({
125435
- kind: "story";
125436
- storyType: "body";
125437
- }) | ({
125438
- kind: "story";
125439
- storyType: "headerFooterSlot";
125440
- section: {
125441
- kind: "section";
125442
- sectionId: string;
125443
- };
125444
- headerFooterKind: "header" | "footer";
125445
- variant: "default" | "first" | "even";
125446
- resolution?: "effective" | "explicit";
125447
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
125448
- }) | ({
125449
- kind: "story";
125450
- storyType: "headerFooterPart";
125451
- refId: string;
125452
- }) | ({
125453
- kind: "story";
125454
- storyType: "footnote";
125455
- noteId: string;
125456
- }) | ({
125457
- kind: "story";
125458
- storyType: "endnote";
125459
- noteId: string;
125460
- }) | ({
125461
- kind: "story";
125462
- storyType: "textbox";
125463
- textboxId: string;
125464
- });
125465
- };
125466
- edge: "before" | "after";
125467
- });
125468
- end: ({
125469
- kind: "text";
125470
- blockId: string;
125471
- offset: number;
125472
- story?: ({
125473
- kind: "story";
125474
- storyType: "body";
125475
- }) | ({
125476
- kind: "story";
125477
- storyType: "headerFooterSlot";
125478
- section: {
125479
- kind: "section";
125480
- sectionId: string;
125481
- };
125482
- headerFooterKind: "header" | "footer";
125483
- variant: "default" | "first" | "even";
125484
- resolution?: "effective" | "explicit";
125485
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
125486
- }) | ({
125487
- kind: "story";
125488
- storyType: "headerFooterPart";
125489
- refId: string;
125490
- }) | ({
125491
- kind: "story";
125492
- storyType: "footnote";
125493
- noteId: string;
125494
- }) | ({
125495
- kind: "story";
125496
- storyType: "endnote";
125497
- noteId: string;
125498
- }) | ({
125499
- kind: "story";
125500
- storyType: "textbox";
125501
- textboxId: string;
125502
- });
125503
- }) | ({
125504
- kind: "nodeEdge";
125505
- node: {
125506
- kind: "block";
125507
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
125508
- nodeId: string;
125509
- story?: ({
125510
- kind: "story";
125511
- storyType: "body";
125512
- }) | ({
125513
- kind: "story";
125514
- storyType: "headerFooterSlot";
125515
- section: {
125516
- kind: "section";
125517
- sectionId: string;
125518
- };
125519
- headerFooterKind: "header" | "footer";
125520
- variant: "default" | "first" | "even";
125521
- resolution?: "effective" | "explicit";
125522
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
125523
- }) | ({
125524
- kind: "story";
125525
- storyType: "headerFooterPart";
125526
- refId: string;
125527
- }) | ({
125528
- kind: "story";
125529
- storyType: "footnote";
125530
- noteId: string;
125531
- }) | ({
125532
- kind: "story";
125533
- storyType: "endnote";
125534
- noteId: string;
125535
- }) | ({
125536
- kind: "story";
125537
- storyType: "textbox";
125538
- textboxId: string;
125539
- });
125540
- };
125541
- edge: "before" | "after";
125542
- });
125543
- story?: ({
125544
- kind: "story";
125545
- storyType: "body";
125546
- }) | ({
125547
- kind: "story";
125548
- storyType: "headerFooterSlot";
125549
- section: {
125550
- kind: "section";
125551
- sectionId: string;
125552
- };
125553
- headerFooterKind: "header" | "footer";
125554
- variant: "default" | "first" | "even";
125555
- resolution?: "effective" | "explicit";
125556
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
125557
- }) | ({
125558
- kind: "story";
125559
- storyType: "headerFooterPart";
125560
- refId: string;
125561
- }) | ({
125562
- kind: "story";
125563
- storyType: "footnote";
125564
- noteId: string;
125565
- }) | ({
125566
- kind: "story";
125567
- storyType: "endnote";
125568
- noteId: string;
125569
- }) | ({
125570
- kind: "story";
125571
- storyType: "textbox";
125572
- textboxId: string;
125573
- });
125574
- coordinateSpace?: "visible" | "tracked";
125575
- }) | ({
125576
- kind: "block";
125577
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
125578
- nodeId: string;
125579
- story?: ({
125580
- kind: "story";
125581
- storyType: "body";
125582
- }) | ({
125583
- kind: "story";
125584
- storyType: "headerFooterSlot";
125585
- section: {
125586
- kind: "section";
125587
- sectionId: string;
125588
- };
125589
- headerFooterKind: "header" | "footer";
125590
- variant: "default" | "first" | "even";
125591
- resolution?: "effective" | "explicit";
125592
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
125593
- }) | ({
125594
- kind: "story";
125595
- storyType: "headerFooterPart";
125596
- refId: string;
125597
- }) | ({
125598
- kind: "story";
125599
- storyType: "footnote";
125600
- noteId: string;
125601
- }) | ({
125602
- kind: "story";
125603
- storyType: "endnote";
125604
- noteId: string;
125605
- }) | ({
125606
- kind: "story";
125607
- storyType: "textbox";
125608
- textboxId: string;
125609
- });
125610
125252
  }) | ({
125611
125253
  kind: "block";
125612
125254
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
@@ -125675,9 +125317,9 @@ export interface DocInsertBoundParams {
125675
125317
  textboxId: string;
125676
125318
  });
125677
125319
  value?: string;
125678
- type?: string;
125320
+ type?: "text" | "markdown" | "html";
125679
125321
  ref?: string;
125680
- placement?: string;
125322
+ placement?: "before" | "after" | "insideStart" | "insideEnd";
125681
125323
  content?: Record<string, unknown> | Array<Record<string, unknown>>;
125682
125324
  nestingPolicy?: {
125683
125325
  tables?: "forbid" | "allow";
@@ -125963,7 +125605,7 @@ export interface DocReplaceBoundParams {
125963
125605
  tables?: "forbid" | "allow";
125964
125606
  };
125965
125607
  value?: string;
125966
- type?: string;
125608
+ type?: "html" | "markdown";
125967
125609
  blockId?: string;
125968
125610
  start?: number;
125969
125611
  end?: number;
@@ -126190,7 +125832,7 @@ export interface DocDeleteBoundParams {
126190
125832
  storyType: "textbox";
126191
125833
  textboxId: string;
126192
125834
  });
126193
- behavior?: string;
125835
+ behavior?: "selection" | "exact";
126194
125836
  ref?: string;
126195
125837
  blockId?: string;
126196
125838
  start?: number;
@@ -126509,7 +126151,7 @@ export interface DocBlocksFindTextBoundParams {
126509
126151
  limit?: number;
126510
126152
  }
126511
126153
  export interface DocBlocksListBoundParams {
126512
- nodeIds?: string[];
126154
+ nodeIds?: Array<string>;
126513
126155
  textSearch?: {
126514
126156
  terms: Array<string>;
126515
126157
  match?: "all" | "any";
@@ -126550,7 +126192,7 @@ export interface DocBlocksListBoundParams {
126550
126192
  limit?: number;
126551
126193
  nodeTypes?: Array<"paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt">;
126552
126194
  includeText?: boolean;
126553
- reviewMode?: string;
126195
+ reviewMode?: "final" | "original" | "redline";
126554
126196
  }
126555
126197
  export interface DocBlocksDeleteBoundParams {
126556
126198
  out?: string;
@@ -126874,7 +126516,7 @@ export interface DocBlocksMoveBoundParams {
126874
126516
  textboxId: string;
126875
126517
  });
126876
126518
  };
126877
- placement: string;
126519
+ placement: "before" | "after";
126878
126520
  }
126879
126521
  export interface DocFormatApplyBoundParams {
126880
126522
  out?: string;
@@ -135958,7 +135600,7 @@ export interface DocStylesApplyBoundParams {
135958
135600
  });
135959
135601
  }
135960
135602
  export interface DocStylesGetCatalogBoundParams {
135961
- view?: string;
135603
+ view?: "quickGallery" | "recommended" | "currentDocument" | "all" | "inUse";
135962
135604
  types?: Array<"paragraph" | "character" | "linked" | "table" | "numbering">;
135963
135605
  includeHidden?: boolean;
135964
135606
  includeLatent?: boolean;
@@ -136102,7 +135744,7 @@ export interface DocCreateParagraphBoundParams {
136102
135744
  });
136103
135745
  text?: string;
136104
135746
  styleId?: string;
136105
- input?: Record<string, unknown> | unknown[];
135747
+ input?: unknown;
136106
135748
  }
136107
135749
  export interface DocCreateHeadingBoundParams {
136108
135750
  out?: string;
@@ -136225,7 +135867,7 @@ export interface DocCreateHeadingBoundParams {
136225
135867
  });
136226
135868
  text?: string;
136227
135869
  styleId?: string;
136228
- input?: Record<string, unknown> | unknown[];
135870
+ input?: unknown;
136229
135871
  }
136230
135872
  export interface DocCreateSectionBreakBoundParams {
136231
135873
  out?: string;
@@ -136314,8 +135956,8 @@ export interface DocCreateSectionBreakBoundParams {
136314
135956
  });
136315
135957
  };
136316
135958
  });
136317
- representation?: string;
136318
- breakType?: string;
135959
+ representation?: "asNewParagraph" | "attachToPreviousParagraph";
135960
+ breakType?: "continuous" | "nextPage" | "evenPage" | "oddPage";
136319
135961
  pageMargins?: {
136320
135962
  top?: number;
136321
135963
  right?: number;
@@ -136348,7 +135990,7 @@ export interface DocSectionsSetBreakTypeBoundParams {
136348
135990
  kind: "section";
136349
135991
  sectionId: string;
136350
135992
  };
136351
- breakType: string;
135993
+ breakType: "continuous" | "nextPage" | "evenPage" | "oddPage";
136352
135994
  }
136353
135995
  export interface DocSectionsSetPageMarginsBoundParams {
136354
135996
  out?: string;
@@ -136391,7 +136033,7 @@ export interface DocSectionsSetPageSetupBoundParams {
136391
136033
  };
136392
136034
  width?: number;
136393
136035
  height?: number;
136394
- orientation?: string;
136036
+ orientation?: "portrait" | "landscape";
136395
136037
  paperSize?: string;
136396
136038
  }
136397
136039
  export interface DocSectionsSetColumnsBoundParams {
@@ -136422,7 +136064,7 @@ export interface DocSectionsSetLineNumberingBoundParams {
136422
136064
  countBy?: number;
136423
136065
  start?: number;
136424
136066
  distance?: number;
136425
- restart?: string;
136067
+ restart?: "continuous" | "newPage" | "newSection";
136426
136068
  }
136427
136069
  export interface DocSectionsSetPageNumberingBoundParams {
136428
136070
  out?: string;
@@ -136435,9 +136077,9 @@ export interface DocSectionsSetPageNumberingBoundParams {
136435
136077
  sectionId: string;
136436
136078
  };
136437
136079
  start?: number | unknown;
136438
- format?: string;
136080
+ format?: "decimal" | "lowerLetter" | "upperLetter" | "lowerRoman" | "upperRoman" | "numberInDash" | "hebrew1" | "hebrew2";
136439
136081
  chapterStyle?: number;
136440
- chapterSeparator?: string;
136082
+ chapterSeparator?: "hyphen" | "period" | "colon" | "emDash" | "enDash";
136441
136083
  }
136442
136084
  export interface DocSectionsSetTitlePageBoundParams {
136443
136085
  out?: string;
@@ -136469,7 +136111,7 @@ export interface DocSectionsSetVerticalAlignBoundParams {
136469
136111
  kind: "section";
136470
136112
  sectionId: string;
136471
136113
  };
136472
- value: string;
136114
+ value: "top" | "center" | "bottom" | "both";
136473
136115
  }
136474
136116
  export interface DocSectionsSetSectionDirectionBoundParams {
136475
136117
  out?: string;
@@ -136481,7 +136123,7 @@ export interface DocSectionsSetSectionDirectionBoundParams {
136481
136123
  kind: "section";
136482
136124
  sectionId: string;
136483
136125
  };
136484
- direction: string;
136126
+ direction: "ltr" | "rtl";
136485
136127
  }
136486
136128
  export interface DocSectionsSetHeaderFooterRefBoundParams {
136487
136129
  out?: string;
@@ -136493,8 +136135,8 @@ export interface DocSectionsSetHeaderFooterRefBoundParams {
136493
136135
  kind: "section";
136494
136136
  sectionId: string;
136495
136137
  };
136496
- kind: string;
136497
- variant: string;
136138
+ kind: "header" | "footer";
136139
+ variant: "default" | "first" | "even";
136498
136140
  refId: string;
136499
136141
  }
136500
136142
  export interface DocSectionsClearHeaderFooterRefBoundParams {
@@ -136507,8 +136149,8 @@ export interface DocSectionsClearHeaderFooterRefBoundParams {
136507
136149
  kind: "section";
136508
136150
  sectionId: string;
136509
136151
  };
136510
- kind: string;
136511
- variant: string;
136152
+ kind: "header" | "footer";
136153
+ variant: "default" | "first" | "even";
136512
136154
  }
136513
136155
  export interface DocSectionsSetLinkToPreviousBoundParams {
136514
136156
  out?: string;
@@ -136520,8 +136162,8 @@ export interface DocSectionsSetLinkToPreviousBoundParams {
136520
136162
  kind: "section";
136521
136163
  sectionId: string;
136522
136164
  };
136523
- kind: string;
136524
- variant: string;
136165
+ kind: "header" | "footer";
136166
+ variant: "default" | "first" | "even";
136525
136167
  linked: boolean;
136526
136168
  }
136527
136169
  export interface DocSectionsSetPageBordersBoundParams {
@@ -136534,7 +136176,7 @@ export interface DocSectionsSetPageBordersBoundParams {
136534
136176
  kind: "section";
136535
136177
  sectionId: string;
136536
136178
  };
136537
- borders: unknown | unknown | unknown | unknown | unknown | unknown | unknown;
136179
+ borders: unknown;
136538
136180
  }
136539
136181
  export interface DocSectionsClearPageBordersBoundParams {
136540
136182
  out?: string;
@@ -137115,7 +136757,7 @@ export interface DocFormatParagraphSetAlignmentBoundParams {
137115
136757
  textboxId: string;
137116
136758
  });
137117
136759
  });
137118
- alignment?: string;
136760
+ alignment?: "left" | "center" | "right" | "justify";
137119
136761
  blockId?: string;
137120
136762
  }
137121
136763
  export interface DocFormatParagraphClearAlignmentBoundParams {
@@ -137579,7 +137221,7 @@ export interface DocFormatParagraphSetSpacingBoundParams {
137579
137221
  before?: number;
137580
137222
  after?: number;
137581
137223
  line?: number;
137582
- lineRule?: string;
137224
+ lineRule?: "auto" | "exact" | "atLeast";
137583
137225
  blockId?: string;
137584
137226
  }
137585
137227
  export interface DocFormatParagraphClearSpacingBoundParams {
@@ -138162,8 +137804,8 @@ export interface DocFormatParagraphSetTabStopBoundParams {
138162
137804
  });
138163
137805
  });
138164
137806
  position?: number;
138165
- alignment?: string;
138166
- leader?: string;
137807
+ alignment?: "left" | "center" | "right" | "decimal" | "bar" | "clear";
137808
+ leader?: "none" | "dot" | "hyphen" | "underscore" | "heavy" | "middleDot";
138167
137809
  blockId?: string;
138168
137810
  }
138169
137811
  export interface DocFormatParagraphClearTabStopBoundParams {
@@ -138507,7 +138149,7 @@ export interface DocFormatParagraphSetBorderBoundParams {
138507
138149
  textboxId: string;
138508
138150
  });
138509
138151
  });
138510
- side?: string;
138152
+ side?: "top" | "bottom" | "left" | "right" | "between" | "bar";
138511
138153
  style?: string;
138512
138154
  color?: string;
138513
138155
  size?: number;
@@ -138626,7 +138268,7 @@ export interface DocFormatParagraphClearBorderBoundParams {
138626
138268
  textboxId: string;
138627
138269
  });
138628
138270
  });
138629
- side?: string;
138271
+ side?: "top" | "bottom" | "left" | "right" | "between" | "bar" | "all";
138630
138272
  blockId?: string;
138631
138273
  }
138632
138274
  export interface DocFormatParagraphSetShadingBoundParams {
@@ -139200,8 +138842,8 @@ export interface DocFormatParagraphSetDirectionBoundParams {
139200
138842
  textboxId: string;
139201
138843
  });
139202
138844
  });
139203
- direction?: string;
139204
- alignmentPolicy?: string;
138845
+ direction?: "ltr" | "rtl";
138846
+ alignmentPolicy?: "preserve" | "matchDirection";
139205
138847
  blockId?: string;
139206
138848
  }
139207
138849
  export interface DocFormatParagraphClearDirectionBoundParams {
@@ -139473,10 +139115,10 @@ export interface DocListsListBoundParams {
139473
139115
  };
139474
139116
  limit?: number;
139475
139117
  offset?: number;
139476
- kind?: string;
139118
+ kind?: "ordered" | "bullet";
139477
139119
  level?: number;
139478
139120
  ordinal?: number;
139479
- query?: Record<string, unknown> | unknown[];
139121
+ query?: unknown;
139480
139122
  }
139481
139123
  export interface DocListsGetBoundParams {
139482
139124
  address: {
@@ -139558,9 +139200,9 @@ export interface DocListsInsertBoundParams {
139558
139200
  textboxId: string;
139559
139201
  });
139560
139202
  };
139561
- position?: string;
139203
+ position?: "before" | "after";
139562
139204
  text?: string;
139563
- input?: Record<string, unknown> | unknown[];
139205
+ input?: unknown;
139564
139206
  nodeId?: string;
139565
139207
  }
139566
139208
  export interface DocListsCreateBoundParams {
@@ -139569,7 +139211,7 @@ export interface DocListsCreateBoundParams {
139569
139211
  expectedRevision?: string;
139570
139212
  changeMode?: string;
139571
139213
  dryRun?: boolean;
139572
- mode?: string;
139214
+ mode?: "empty" | "fromParagraphs";
139573
139215
  at?: {
139574
139216
  kind: "block";
139575
139217
  nodeType: "paragraph";
@@ -139591,9 +139233,9 @@ export interface DocListsCreateBoundParams {
139591
139233
  nodeId: string;
139592
139234
  };
139593
139235
  });
139594
- kind?: string;
139236
+ kind?: "ordered" | "bullet";
139595
139237
  level?: number;
139596
- preset?: string;
139238
+ preset?: "decimal" | "decimalParenthesis" | "lowerLetter" | "lowerLetterParenthesis" | "upperLetter" | "upperLetterParenthesis" | "lowerRoman" | "upperRoman" | "disc" | "circle" | "square" | "dash";
139597
139239
  style?: {
139598
139240
  version: 1;
139599
139241
  levels: Array<{
@@ -139619,7 +139261,7 @@ export interface DocListsCreateBoundParams {
139619
139261
  }) | ({
139620
139262
  mode: "continuePrevious";
139621
139263
  });
139622
- input?: Record<string, unknown> | unknown[];
139264
+ input?: unknown;
139623
139265
  }
139624
139266
  export interface DocListsAttachBoundParams {
139625
139267
  out?: string;
@@ -139680,7 +139322,7 @@ export interface DocListsAttachBoundParams {
139680
139322
  });
139681
139323
  };
139682
139324
  level?: number;
139683
- input?: Record<string, unknown> | unknown[];
139325
+ input?: unknown;
139684
139326
  }
139685
139327
  export interface DocListsDetachBoundParams {
139686
139328
  out?: string;
@@ -139724,7 +139366,7 @@ export interface DocListsDetachBoundParams {
139724
139366
  textboxId: string;
139725
139367
  });
139726
139368
  };
139727
- input?: Record<string, unknown> | unknown[];
139369
+ input?: unknown;
139728
139370
  nodeId?: string;
139729
139371
  }
139730
139372
  export interface DocListsDeleteBoundParams {
@@ -139812,7 +139454,7 @@ export interface DocListsIndentBoundParams {
139812
139454
  textboxId: string;
139813
139455
  });
139814
139456
  };
139815
- input?: Record<string, unknown> | unknown[];
139457
+ input?: unknown;
139816
139458
  nodeId?: string;
139817
139459
  }
139818
139460
  export interface DocListsOutdentBoundParams {
@@ -139857,7 +139499,7 @@ export interface DocListsOutdentBoundParams {
139857
139499
  textboxId: string;
139858
139500
  });
139859
139501
  };
139860
- input?: Record<string, unknown> | unknown[];
139502
+ input?: unknown;
139861
139503
  nodeId?: string;
139862
139504
  }
139863
139505
  export interface DocListsJoinBoundParams {
@@ -139902,8 +139544,8 @@ export interface DocListsJoinBoundParams {
139902
139544
  textboxId: string;
139903
139545
  });
139904
139546
  };
139905
- direction?: string;
139906
- input?: Record<string, unknown> | unknown[];
139547
+ direction?: "withPrevious" | "withNext";
139548
+ input?: unknown;
139907
139549
  }
139908
139550
  export interface DocListsCanJoinBoundParams {
139909
139551
  target?: {
@@ -139942,8 +139584,8 @@ export interface DocListsCanJoinBoundParams {
139942
139584
  textboxId: string;
139943
139585
  });
139944
139586
  };
139945
- direction?: string;
139946
- input?: Record<string, unknown> | unknown[];
139587
+ direction?: "withPrevious" | "withNext";
139588
+ input?: unknown;
139947
139589
  }
139948
139590
  export interface DocListsSeparateBoundParams {
139949
139591
  out?: string;
@@ -139988,7 +139630,7 @@ export interface DocListsSeparateBoundParams {
139988
139630
  });
139989
139631
  };
139990
139632
  copyOverrides?: boolean;
139991
- input?: Record<string, unknown> | unknown[];
139633
+ input?: unknown;
139992
139634
  nodeId?: string;
139993
139635
  }
139994
139636
  export interface DocListsMergeBoundParams {
@@ -140033,7 +139675,7 @@ export interface DocListsMergeBoundParams {
140033
139675
  textboxId: string;
140034
139676
  });
140035
139677
  };
140036
- direction: string;
139678
+ direction: "withPrevious" | "withNext";
140037
139679
  }
140038
139680
  export interface DocListsSplitBoundParams {
140039
139681
  out?: string;
@@ -140122,7 +139764,7 @@ export interface DocListsSetLevelBoundParams {
140122
139764
  });
140123
139765
  };
140124
139766
  level?: number;
140125
- input?: Record<string, unknown> | unknown[];
139767
+ input?: unknown;
140126
139768
  nodeId?: string;
140127
139769
  }
140128
139770
  export interface DocListsSetValueBoundParams {
@@ -140168,7 +139810,7 @@ export interface DocListsSetValueBoundParams {
140168
139810
  });
140169
139811
  };
140170
139812
  value?: unknown;
140171
- input?: Record<string, unknown> | unknown[];
139813
+ input?: unknown;
140172
139814
  nodeId?: string;
140173
139815
  }
140174
139816
  export interface DocListsContinuePreviousBoundParams {
@@ -140213,7 +139855,7 @@ export interface DocListsContinuePreviousBoundParams {
140213
139855
  textboxId: string;
140214
139856
  });
140215
139857
  };
140216
- input?: Record<string, unknown> | unknown[];
139858
+ input?: unknown;
140217
139859
  nodeId?: string;
140218
139860
  }
140219
139861
  export interface DocListsCanContinuePreviousBoundParams {
@@ -140253,7 +139895,7 @@ export interface DocListsCanContinuePreviousBoundParams {
140253
139895
  textboxId: string;
140254
139896
  });
140255
139897
  };
140256
- input?: Record<string, unknown> | unknown[];
139898
+ input?: unknown;
140257
139899
  nodeId?: string;
140258
139900
  }
140259
139901
  export interface DocListsSetLevelRestartBoundParams {
@@ -140300,8 +139942,8 @@ export interface DocListsSetLevelRestartBoundParams {
140300
139942
  };
140301
139943
  level?: number;
140302
139944
  restartAfterLevel?: unknown;
140303
- scope?: string;
140304
- input?: Record<string, unknown> | unknown[];
139945
+ scope?: "definition" | "instance";
139946
+ input?: unknown;
140305
139947
  }
140306
139948
  export interface DocListsConvertToTextBoundParams {
140307
139949
  out?: string;
@@ -140346,7 +139988,7 @@ export interface DocListsConvertToTextBoundParams {
140346
139988
  });
140347
139989
  };
140348
139990
  includeMarker?: boolean;
140349
- input?: Record<string, unknown> | unknown[];
139991
+ input?: unknown;
140350
139992
  nodeId?: string;
140351
139993
  }
140352
139994
  export interface DocListsApplyTemplateBoundParams {
@@ -140410,7 +140052,7 @@ export interface DocListsApplyTemplateBoundParams {
140410
140052
  }>;
140411
140053
  };
140412
140054
  levels?: Array<number>;
140413
- input?: Record<string, unknown> | unknown[];
140055
+ input?: unknown;
140414
140056
  }
140415
140057
  export interface DocListsApplyPresetBoundParams {
140416
140058
  out?: string;
@@ -140454,9 +140096,9 @@ export interface DocListsApplyPresetBoundParams {
140454
140096
  textboxId: string;
140455
140097
  });
140456
140098
  };
140457
- preset?: string;
140099
+ preset?: "decimal" | "decimalParenthesis" | "lowerLetter" | "lowerLetterParenthesis" | "upperLetter" | "upperLetterParenthesis" | "lowerRoman" | "upperRoman" | "disc" | "circle" | "square" | "dash";
140458
140100
  levels?: Array<number>;
140459
- input?: Record<string, unknown> | unknown[];
140101
+ input?: unknown;
140460
140102
  }
140461
140103
  export interface DocListsSetTypeBoundParams {
140462
140104
  out?: string;
@@ -140500,8 +140142,8 @@ export interface DocListsSetTypeBoundParams {
140500
140142
  textboxId: string;
140501
140143
  });
140502
140144
  };
140503
- kind: string;
140504
- continuity?: string;
140145
+ kind: "ordered" | "bullet";
140146
+ continuity?: "preserve" | "none";
140505
140147
  }
140506
140148
  export interface DocListsCaptureTemplateBoundParams {
140507
140149
  target?: {
@@ -140541,7 +140183,7 @@ export interface DocListsCaptureTemplateBoundParams {
140541
140183
  });
140542
140184
  };
140543
140185
  levels?: Array<number>;
140544
- input?: Record<string, unknown> | unknown[];
140186
+ input?: unknown;
140545
140187
  }
140546
140188
  export interface DocListsSetLevelNumberingBoundParams {
140547
140189
  out?: string;
@@ -140590,7 +140232,7 @@ export interface DocListsSetLevelNumberingBoundParams {
140590
140232
  lvlText?: string;
140591
140233
  start?: number;
140592
140234
  isLgl?: boolean;
140593
- input?: Record<string, unknown> | unknown[];
140235
+ input?: unknown;
140594
140236
  }
140595
140237
  export interface DocListsSetLevelBulletBoundParams {
140596
140238
  out?: string;
@@ -140636,7 +140278,7 @@ export interface DocListsSetLevelBulletBoundParams {
140636
140278
  };
140637
140279
  level?: number;
140638
140280
  markerText?: string;
140639
- input?: Record<string, unknown> | unknown[];
140281
+ input?: unknown;
140640
140282
  }
140641
140283
  export interface DocListsSetLevelPictureBulletBoundParams {
140642
140284
  out?: string;
@@ -140682,7 +140324,7 @@ export interface DocListsSetLevelPictureBulletBoundParams {
140682
140324
  };
140683
140325
  level?: number;
140684
140326
  pictureBulletId?: number;
140685
- input?: Record<string, unknown> | unknown[];
140327
+ input?: unknown;
140686
140328
  }
140687
140329
  export interface DocListsSetLevelAlignmentBoundParams {
140688
140330
  out?: string;
@@ -140727,8 +140369,8 @@ export interface DocListsSetLevelAlignmentBoundParams {
140727
140369
  });
140728
140370
  };
140729
140371
  level?: number;
140730
- alignment?: string;
140731
- input?: Record<string, unknown> | unknown[];
140372
+ alignment?: "left" | "center" | "right";
140373
+ input?: unknown;
140732
140374
  }
140733
140375
  export interface DocListsSetLevelIndentsBoundParams {
140734
140376
  out?: string;
@@ -140776,7 +140418,7 @@ export interface DocListsSetLevelIndentsBoundParams {
140776
140418
  left?: number;
140777
140419
  hanging?: number;
140778
140420
  firstLine?: number;
140779
- input?: Record<string, unknown> | unknown[];
140421
+ input?: unknown;
140780
140422
  }
140781
140423
  export interface DocListsSetLevelTrailingCharacterBoundParams {
140782
140424
  out?: string;
@@ -140821,8 +140463,8 @@ export interface DocListsSetLevelTrailingCharacterBoundParams {
140821
140463
  });
140822
140464
  };
140823
140465
  level?: number;
140824
- trailingCharacter?: string;
140825
- input?: Record<string, unknown> | unknown[];
140466
+ trailingCharacter?: "tab" | "space" | "nothing";
140467
+ input?: unknown;
140826
140468
  }
140827
140469
  export interface DocListsSetLevelMarkerFontBoundParams {
140828
140470
  out?: string;
@@ -140868,7 +140510,7 @@ export interface DocListsSetLevelMarkerFontBoundParams {
140868
140510
  };
140869
140511
  level?: number;
140870
140512
  fontFamily?: string;
140871
- input?: Record<string, unknown> | unknown[];
140513
+ input?: unknown;
140872
140514
  }
140873
140515
  export interface DocListsClearLevelOverridesBoundParams {
140874
140516
  out?: string;
@@ -140913,7 +140555,7 @@ export interface DocListsClearLevelOverridesBoundParams {
140913
140555
  });
140914
140556
  };
140915
140557
  level?: number;
140916
- input?: Record<string, unknown> | unknown[];
140558
+ input?: unknown;
140917
140559
  }
140918
140560
  export interface DocListsGetStyleBoundParams {
140919
140561
  target: {
@@ -141272,7 +140914,7 @@ export interface DocListsApplyBoundParams {
141272
140914
  nodeType: "listItem";
141273
140915
  nodeId: string;
141274
140916
  });
141275
- seed: string;
140917
+ seed: "bullet" | "ordered";
141276
140918
  reuseNumId?: string;
141277
140919
  ilvl?: number;
141278
140920
  }
@@ -141661,7 +141303,7 @@ export interface DocCommentsCreateBoundParams {
141661
141303
  });
141662
141304
  });
141663
141305
  trackedChangeId?: string;
141664
- side?: string;
141306
+ side?: "inserted" | "deleted" | "source" | "destination";
141665
141307
  story?: ({
141666
141308
  kind: "story";
141667
141309
  storyType: "body";
@@ -142003,7 +141645,7 @@ export interface DocCommentsPatchBoundParams {
142003
141645
  textboxId: string;
142004
141646
  });
142005
141647
  });
142006
- status?: string;
141648
+ status?: "resolved" | "active";
142007
141649
  isInternal?: boolean;
142008
141650
  blockId?: string;
142009
141651
  start?: number;
@@ -142027,7 +141669,7 @@ export interface DocCommentsListBoundParams {
142027
141669
  export interface DocTrackChangesListBoundParams {
142028
141670
  limit?: number;
142029
141671
  offset?: number;
142030
- type?: string;
141672
+ type?: "insertion" | "deletion" | "replacement" | "formatting" | "move" | "structural" | "insert" | "delete" | "format";
142031
141673
  in?: (({
142032
141674
  kind: "story";
142033
141675
  storyType: "body";
@@ -142098,7 +141740,7 @@ export interface DocTrackChangesDecideBoundParams {
142098
141740
  out?: string;
142099
141741
  force?: boolean;
142100
141742
  changeMode?: string;
142101
- decision: string;
141743
+ decision: "accept" | "reject";
142102
141744
  expectedRevision?: string;
142103
141745
  target: ({
142104
141746
  kind: "id";
@@ -142518,8 +142160,8 @@ export interface DocQueryMatchBoundParams {
142518
142160
  textboxId: string;
142519
142161
  });
142520
142162
  };
142521
- require?: string;
142522
- mode?: string;
142163
+ require?: "any" | "first" | "exactlyOne" | "all";
142164
+ mode?: "strict" | "candidates";
142523
142165
  includeNodes?: boolean;
142524
142166
  limit?: number;
142525
142167
  offset?: number;
@@ -142918,6 +142560,8 @@ export interface DocSelectionExtractOoxmlBoundParams {
142918
142560
  coordinateSpace?: "visible" | "tracked";
142919
142561
  }) | ({
142920
142562
  kind: "tableCells";
142563
+ selectionMode?: "cells";
142564
+ isRectangular?: true;
142921
142565
  tableId: string;
142922
142566
  start: {
142923
142567
  rowIndex: number;
@@ -142995,7 +142639,7 @@ export interface DocMutationsPreviewBoundParams {
142995
142639
  });
142996
142640
  expectedRevision?: string;
142997
142641
  atomic: boolean;
142998
- changeMode: string;
142642
+ changeMode: "direct" | "tracked";
142999
142643
  steps: Array<({
143000
142644
  id: string;
143001
142645
  op: "text.rewrite";
@@ -146309,7 +145953,7 @@ export interface DocPlanExecuteBoundParams {
146309
145953
  export interface DocCapabilitiesGetBoundParams {
146310
145954
  }
146311
145955
  export interface DocCapabilitiesCheckBoundParams {
146312
- operation: string;
145956
+ operation: "insert" | "replace" | "projectHtml" | "projectMarkdown";
146313
145957
  input?: ({
146314
145958
  in?: ({
146315
145959
  kind: "story";
@@ -147191,7 +146835,7 @@ export interface DocCapabilitiesCheckBoundParams {
147191
146835
  };
147192
146836
  }
147193
146837
  export interface DocCapabilitiesResolveBoundParams {
147194
- operationId: string;
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";
147195
146839
  input?: unknown;
147196
146840
  options?: unknown;
147197
146841
  }
@@ -147532,7 +147176,7 @@ export interface DocTablesConvertToTextBoundParams {
147532
147176
  nodeId: string;
147533
147177
  };
147534
147178
  nodeId?: string;
147535
- delimiter?: string;
147179
+ delimiter?: "tab" | "comma" | "paragraph";
147536
147180
  }
147537
147181
  export interface DocTablesSetLayoutBoundParams {
147538
147182
  out?: string;
@@ -147547,11 +147191,11 @@ export interface DocTablesSetLayoutBoundParams {
147547
147191
  };
147548
147192
  nodeId?: string;
147549
147193
  preferredWidth?: number;
147550
- preferredWidthType?: string;
147551
- alignment?: string;
147194
+ preferredWidthType?: "dxa" | "auto" | "pct";
147195
+ alignment?: "left" | "center" | "right";
147552
147196
  leftIndentPt?: number;
147553
- autoFitMode?: string;
147554
- tableDirection?: string;
147197
+ autoFitMode?: "fixedWidth" | "fitContents" | "fitWindow";
147198
+ tableDirection?: "ltr" | "rtl";
147555
147199
  }
147556
147200
  export interface DocTablesInsertRowBoundParams {
147557
147201
  out?: string;
@@ -147568,7 +147212,7 @@ export interface DocTablesInsertRowBoundParams {
147568
147212
  nodeType: "table";
147569
147213
  nodeId: string;
147570
147214
  });
147571
- position?: string;
147215
+ position?: "above" | "below";
147572
147216
  count?: number;
147573
147217
  rowIndex?: number;
147574
147218
  nodeId?: string;
@@ -147656,7 +147300,7 @@ export interface DocTablesSetRowHeightBoundParams {
147656
147300
  nodeId: string;
147657
147301
  });
147658
147302
  heightPt: number;
147659
- rule?: string;
147303
+ rule?: "atLeast" | "exact" | "auto";
147660
147304
  rowIndex?: number;
147661
147305
  nodeId?: string;
147662
147306
  }
@@ -147716,7 +147360,7 @@ export interface DocTablesInsertColumnBoundParams {
147716
147360
  };
147717
147361
  nodeId?: string;
147718
147362
  columnIndex?: number;
147719
- position: string;
147363
+ position: "left" | "right" | "first" | "last";
147720
147364
  count?: number;
147721
147365
  }
147722
147366
  export interface DocTablesDeleteColumnBoundParams {
@@ -147802,7 +147446,7 @@ export interface DocTablesInsertCellBoundParams {
147802
147446
  nodeId: string;
147803
147447
  };
147804
147448
  nodeId?: string;
147805
- mode: string;
147449
+ mode: "shiftRight" | "shiftDown";
147806
147450
  }
147807
147451
  export interface DocTablesDeleteCellBoundParams {
147808
147452
  out?: string;
@@ -147816,7 +147460,7 @@ export interface DocTablesDeleteCellBoundParams {
147816
147460
  nodeId: string;
147817
147461
  };
147818
147462
  nodeId?: string;
147819
- mode: string;
147463
+ mode: "shiftLeft" | "shiftUp";
147820
147464
  }
147821
147465
  export interface DocTablesMergeCellsBoundParams {
147822
147466
  out?: string;
@@ -147886,8 +147530,8 @@ export interface DocTablesSetCellPropertiesBoundParams {
147886
147530
  };
147887
147531
  nodeId?: string;
147888
147532
  preferredWidthPt?: number;
147889
- preferredWidthType?: string;
147890
- verticalAlign?: string;
147533
+ preferredWidthType?: "auto" | "dxa" | "pct";
147534
+ verticalAlign?: "top" | "center" | "bottom";
147891
147535
  wrapText?: boolean;
147892
147536
  fitText?: boolean;
147893
147537
  }
@@ -147983,7 +147627,7 @@ export interface DocTablesSetStyleOptionBoundParams {
147983
147627
  nodeId: string;
147984
147628
  };
147985
147629
  nodeId?: string;
147986
- flag: string;
147630
+ flag: "headerRow" | "lastRow" | "totalRow" | "firstColumn" | "lastColumn" | "bandedRows" | "bandedColumns";
147987
147631
  enabled: boolean;
147988
147632
  }
147989
147633
  export interface DocTablesSetBorderBoundParams {
@@ -147998,7 +147642,7 @@ export interface DocTablesSetBorderBoundParams {
147998
147642
  nodeId: string;
147999
147643
  };
148000
147644
  nodeId?: string;
148001
- edge: string;
147645
+ edge: "top" | "bottom" | "left" | "right" | "insideH" | "insideV" | "diagonalDown" | "diagonalUp";
148002
147646
  lineStyle: string;
148003
147647
  lineWeightPt: number;
148004
147648
  color: string;
@@ -148015,7 +147659,7 @@ export interface DocTablesClearBorderBoundParams {
148015
147659
  nodeId: string;
148016
147660
  };
148017
147661
  nodeId?: string;
148018
- edge: string;
147662
+ edge: "top" | "bottom" | "left" | "right" | "insideH" | "insideV" | "diagonalDown" | "diagonalUp";
148019
147663
  }
148020
147664
  export interface DocTablesApplyBorderPresetBoundParams {
148021
147665
  out?: string;
@@ -148029,7 +147673,7 @@ export interface DocTablesApplyBorderPresetBoundParams {
148029
147673
  nodeId: string;
148030
147674
  };
148031
147675
  nodeId?: string;
148032
- preset: string;
147676
+ preset: "box" | "all" | "none" | "grid" | "custom";
148033
147677
  }
148034
147678
  export interface DocTablesSetShadingBoundParams {
148035
147679
  out?: string;
@@ -148216,8 +147860,8 @@ export interface DocTablesSetBordersBoundParams {
148216
147860
  });
148217
147861
  };
148218
147862
  nodeId?: string;
148219
- mode: string;
148220
- applyTo?: string;
147863
+ mode: "applyTo" | "edges";
147864
+ applyTo?: "all" | "outside" | "inside" | "top" | "bottom" | "left" | "right" | "insideH" | "insideV";
148221
147865
  border?: ({
148222
147866
  lineStyle: string;
148223
147867
  lineWeightPt: number;
@@ -148319,7 +147963,7 @@ export interface DocTablesApplyPresetBoundParams {
148319
147963
  nodeId: string;
148320
147964
  };
148321
147965
  nodeId?: string;
148322
- preset: string;
147966
+ preset: "grid" | "minimal" | "striped" | "accent";
148323
147967
  accentColor?: string;
148324
147968
  }
148325
147969
  export interface DocTablesGetBoundParams {
@@ -148532,7 +148176,7 @@ export interface DocTocUpdateBoundParams {
148532
148176
  nodeType: "tableOfContents";
148533
148177
  nodeId: string;
148534
148178
  };
148535
- mode?: string;
148179
+ mode?: "all" | "pageNumbers";
148536
148180
  }
148537
148181
  export interface DocTocRemoveBoundParams {
148538
148182
  out?: string;
@@ -149009,7 +148653,7 @@ export interface DocImagesSetWrapTypeBoundParams {
149009
148653
  changeMode?: string;
149010
148654
  dryRun?: boolean;
149011
148655
  imageId: string;
149012
- type: string;
148656
+ type: "None" | "Square" | "Through" | "Tight" | "TopAndBottom" | "Inline";
149013
148657
  }
149014
148658
  export interface DocImagesSetWrapSideBoundParams {
149015
148659
  out?: string;
@@ -149018,7 +148662,7 @@ export interface DocImagesSetWrapSideBoundParams {
149018
148662
  changeMode?: string;
149019
148663
  dryRun?: boolean;
149020
148664
  imageId: string;
149021
- side: string;
148665
+ side: "bothSides" | "left" | "right" | "largest";
149022
148666
  }
149023
148667
  export interface DocImagesSetWrapDistancesBoundParams {
149024
148668
  out?: string;
@@ -149431,10 +149075,10 @@ export interface DocHyperlinksRemoveBoundParams {
149431
149075
  };
149432
149076
  };
149433
149077
  };
149434
- mode?: string;
149078
+ mode?: "unwrap" | "deleteText";
149435
149079
  }
149436
149080
  export interface DocHeaderFootersListBoundParams {
149437
- kind?: string;
149081
+ kind?: "header" | "footer";
149438
149082
  section?: {
149439
149083
  kind: "section";
149440
149084
  sectionId: string;
@@ -149515,7 +149159,7 @@ export interface DocHeaderFootersRefsSetLinkedToPreviousBoundParams {
149515
149159
  linked: boolean;
149516
149160
  }
149517
149161
  export interface DocHeaderFootersPartsListBoundParams {
149518
- kind?: string;
149162
+ kind?: "header" | "footer";
149519
149163
  limit?: number;
149520
149164
  offset?: number;
149521
149165
  }
@@ -149525,7 +149169,7 @@ export interface DocHeaderFootersPartsCreateBoundParams {
149525
149169
  expectedRevision?: string;
149526
149170
  changeMode?: string;
149527
149171
  dryRun?: boolean;
149528
- kind: string;
149172
+ kind: "header" | "footer";
149529
149173
  sourceRefId?: string;
149530
149174
  }
149531
149175
  export interface DocHeaderFootersPartsDeleteBoundParams {
@@ -149555,10 +149199,10 @@ export interface DocHeaderFootersPageNumbersInsertBoundParams {
149555
149199
  kind: "section";
149556
149200
  sectionId: string;
149557
149201
  };
149558
- kind: string;
149559
- alignment?: string;
149202
+ kind: "header" | "footer";
149203
+ alignment?: "left" | "center" | "right";
149560
149204
  showOnFirstPage?: boolean;
149561
- format?: string;
149205
+ format?: "decimal" | "lowerLetter" | "upperLetter" | "lowerRoman" | "upperRoman" | "numberInDash" | "hebrew1" | "hebrew2";
149562
149206
  start?: number | unknown;
149563
149207
  }
149564
149208
  export interface DocHeaderFootersPageNumbersSetBoundParams {
@@ -149571,10 +149215,10 @@ export interface DocHeaderFootersPageNumbersSetBoundParams {
149571
149215
  kind: "section";
149572
149216
  sectionId: string;
149573
149217
  };
149574
- kind: string;
149575
- alignment?: string;
149218
+ kind: "header" | "footer";
149219
+ alignment?: "left" | "center" | "right";
149576
149220
  showOnFirstPage?: boolean;
149577
- format?: string;
149221
+ format?: "decimal" | "lowerLetter" | "upperLetter" | "lowerRoman" | "upperRoman" | "numberInDash" | "hebrew1" | "hebrew2";
149578
149222
  start?: number | unknown;
149579
149223
  }
149580
149224
  export interface DocHeaderFootersPageNumbersRemoveBoundParams {
@@ -149587,7 +149231,7 @@ export interface DocHeaderFootersPageNumbersRemoveBoundParams {
149587
149231
  kind: "section";
149588
149232
  sectionId: string;
149589
149233
  };
149590
- kind?: string;
149234
+ kind?: "header" | "footer";
149591
149235
  }
149592
149236
  export interface DocWatermarksApplyBoundParams {
149593
149237
  out?: string;
@@ -149609,7 +149253,7 @@ export interface DocWatermarksApplyBoundParams {
149609
149253
  variant: "default" | "first" | "even";
149610
149254
  }>;
149611
149255
  });
149612
- action: string;
149256
+ action: "insert" | "replace" | "remove";
149613
149257
  watermark?: ({
149614
149258
  kind: "text";
149615
149259
  text: string;
@@ -149691,7 +149335,7 @@ export interface DocWatermarksApplyBoundParams {
149691
149335
  watermarkId: string;
149692
149336
  };
149693
149337
  });
149694
- watermarkIds?: string[];
149338
+ watermarkIds?: Array<string>;
149695
149339
  }
149696
149340
  export interface DocWatermarksListBoundParams {
149697
149341
  target?: ({
@@ -149858,7 +149502,7 @@ export interface DocCreateContentControlBoundParams {
149858
149502
  expectedRevision?: string;
149859
149503
  changeMode?: string;
149860
149504
  dryRun?: boolean;
149861
- kind: string;
149505
+ kind: "block" | "inline";
149862
149506
  controlType?: string;
149863
149507
  target?: {
149864
149508
  kind: "block" | "inline";
@@ -150083,7 +149727,7 @@ export interface DocCreateContentControlBoundParams {
150083
149727
  };
150084
149728
  tag?: string;
150085
149729
  alias?: string;
150086
- lockMode?: string;
149730
+ lockMode?: "unlocked" | "sdtLocked" | "contentLocked" | "sdtContentLocked";
150087
149731
  content?: string;
150088
149732
  html?: string;
150089
149733
  json?: Record<string, unknown> | Array<Record<string, unknown>>;
@@ -150232,7 +149876,7 @@ export interface DocContentControlsWrapBoundParams {
150232
149876
  expectedRevision?: string;
150233
149877
  changeMode?: string;
150234
149878
  dryRun?: boolean;
150235
- kind: string;
149879
+ kind: "block" | "inline";
150236
149880
  target: {
150237
149881
  kind: "block" | "inline";
150238
149882
  nodeType: "sdt";
@@ -150271,7 +149915,7 @@ export interface DocContentControlsWrapBoundParams {
150271
149915
  };
150272
149916
  tag?: string;
150273
149917
  alias?: string;
150274
- lockMode?: string;
149918
+ lockMode?: "unlocked" | "sdtLocked" | "contentLocked" | "sdtContentLocked";
150275
149919
  }
150276
149920
  export interface DocContentControlsUnwrapBoundParams {
150277
149921
  out?: string;
@@ -150681,7 +150325,7 @@ export interface DocContentControlsPatchBoundParams {
150681
150325
  };
150682
150326
  alias?: unknown;
150683
150327
  tag?: unknown;
150684
- appearance?: string;
150328
+ appearance?: "boundingBox" | "tags" | "hidden";
150685
150329
  color?: string;
150686
150330
  placeholder?: string | unknown;
150687
150331
  showingPlaceholder?: boolean;
@@ -150730,7 +150374,7 @@ export interface DocContentControlsSetLockModeBoundParams {
150730
150374
  textboxId: string;
150731
150375
  });
150732
150376
  };
150733
- lockMode: string;
150377
+ lockMode: "unlocked" | "sdtLocked" | "contentLocked" | "sdtContentLocked";
150734
150378
  addToHistory?: boolean;
150735
150379
  }
150736
150380
  export interface DocContentControlsSetTypeBoundParams {
@@ -150858,7 +150502,7 @@ export interface DocContentControlsReplaceContentBoundParams {
150858
150502
  });
150859
150503
  };
150860
150504
  content: string;
150861
- format?: string;
150505
+ format?: "text" | "html" | "ooxml";
150862
150506
  }
150863
150507
  export interface DocContentControlsClearContentBoundParams {
150864
150508
  out?: string;
@@ -150946,7 +150590,7 @@ export interface DocContentControlsAppendContentBoundParams {
150946
150590
  });
150947
150591
  };
150948
150592
  content: string;
150949
- format?: string;
150593
+ format?: "text" | "html";
150950
150594
  }
150951
150595
  export interface DocContentControlsPrependContentBoundParams {
150952
150596
  out?: string;
@@ -150991,7 +150635,7 @@ export interface DocContentControlsPrependContentBoundParams {
150991
150635
  });
150992
150636
  };
150993
150637
  content: string;
150994
- format?: string;
150638
+ format?: "text" | "html";
150995
150639
  }
150996
150640
  export interface DocContentControlsInsertBeforeBoundParams {
150997
150641
  out?: string;
@@ -151036,7 +150680,7 @@ export interface DocContentControlsInsertBeforeBoundParams {
151036
150680
  });
151037
150681
  };
151038
150682
  content: string;
151039
- format?: string;
150683
+ format?: "text" | "html";
151040
150684
  }
151041
150685
  export interface DocContentControlsInsertAfterBoundParams {
151042
150686
  out?: string;
@@ -151081,7 +150725,7 @@ export interface DocContentControlsInsertAfterBoundParams {
151081
150725
  });
151082
150726
  };
151083
150727
  content: string;
151084
- format?: string;
150728
+ format?: "text" | "html";
151085
150729
  }
151086
150730
  export interface DocContentControlsGetBindingBoundParams {
151087
150731
  target: {
@@ -152665,7 +152309,7 @@ export interface DocBookmarksRemoveBoundParams {
152665
152309
  };
152666
152310
  }
152667
152311
  export interface DocFootnotesListBoundParams {
152668
- type?: string;
152312
+ type?: "footnote" | "endnote";
152669
152313
  limit?: number;
152670
152314
  offset?: number;
152671
152315
  }
@@ -152724,7 +152368,7 @@ export interface DocFootnotesInsertBoundParams {
152724
152368
  });
152725
152369
  coordinateSpace?: "visible" | "tracked";
152726
152370
  };
152727
- type: string;
152371
+ type: "footnote" | "endnote";
152728
152372
  content?: string;
152729
152373
  body?: Record<string, unknown> | Array<Record<string, unknown>>;
152730
152374
  }
@@ -152763,7 +152407,7 @@ export interface DocFootnotesConfigureBoundParams {
152763
152407
  expectedRevision?: string;
152764
152408
  changeMode?: string;
152765
152409
  dryRun?: boolean;
152766
- type: string;
152410
+ type: "footnote" | "endnote";
152767
152411
  scope: ({
152768
152412
  kind: "document";
152769
152413
  }) | ({
@@ -152796,7 +152440,7 @@ export interface DocClipboardInsertBoundParams {
152796
152440
  plan?: Record<string, unknown>;
152797
152441
  fragment?: Record<string, unknown>;
152798
152442
  target?: Record<string, unknown>;
152799
- fallback?: string;
152443
+ fallback?: "reject-rich" | "plain-with-warning";
152800
152444
  }
152801
152445
  export interface DocClipboardSerializeSelectionBoundParams {
152802
152446
  target?: Record<string, unknown>;
@@ -152890,7 +152534,7 @@ export interface DocCrossRefsInsertBoundParams {
152890
152534
  styleName: string;
152891
152535
  direction?: "before" | "after";
152892
152536
  });
152893
- display: string;
152537
+ display: "content" | "pageNumber" | "noteNumber" | "labelAndNumber" | "aboveBelow" | "numberOnly" | "numberFullContext" | "styledContent" | "styledPageNumber";
152894
152538
  }
152895
152539
  export interface DocCrossRefsRebuildBoundParams {
152896
152540
  out?: string;
@@ -153285,7 +152929,7 @@ export interface DocCaptionsInsertBoundParams {
153285
152929
  textboxId: string;
153286
152930
  });
153287
152931
  };
153288
- position: string;
152932
+ position: "above" | "below";
153289
152933
  label: string;
153290
152934
  text?: string;
153291
152935
  }
@@ -153323,7 +152967,7 @@ export interface DocCaptionsConfigureBoundParams {
153323
152967
  changeMode?: string;
153324
152968
  dryRun?: boolean;
153325
152969
  label: string;
153326
- format?: string;
152970
+ format?: "decimal" | "lowerRoman" | "upperRoman" | "lowerLetter" | "upperLetter";
153327
152971
  includeChapter?: boolean;
153328
152972
  chapterStyle?: string;
153329
152973
  }
@@ -153392,7 +153036,7 @@ export interface DocFieldsInsertBoundParams {
153392
153036
  };
153393
153037
  instruction: string;
153394
153038
  cachedResultText?: string;
153395
- updatePolicy?: string;
153039
+ updatePolicy?: "rebuild" | "preserveCached";
153396
153040
  }
153397
153041
  export interface DocFieldsRebuildBoundParams {
153398
153042
  out?: string;
@@ -153527,7 +153171,7 @@ export interface DocCitationsInsertBoundParams {
153527
153171
  });
153528
153172
  coordinateSpace?: "visible" | "tracked";
153529
153173
  };
153530
- sourceIds: string[];
153174
+ sourceIds: Array<string>;
153531
153175
  }
153532
153176
  export interface DocCitationsUpdateBoundParams {
153533
153177
  out?: string;
@@ -153660,7 +153304,7 @@ export interface DocCitationsSourcesInsertBoundParams {
153660
153304
  expectedRevision?: string;
153661
153305
  changeMode?: string;
153662
153306
  dryRun?: boolean;
153663
- type: string;
153307
+ type: "book" | "journalArticle" | "conferenceProceedings" | "report" | "website" | "patent" | "case" | "statute" | "thesis" | "film" | "interview" | "misc";
153664
153308
  fields: {
153665
153309
  title?: string;
153666
153310
  authors?: Array<{
@@ -154174,7 +153818,7 @@ export interface DocDiffCompareBoundParams {
154174
153818
  };
154175
153819
  payload: Record<string, unknown>;
154176
153820
  };
154177
- styleChangeMode?: string;
153821
+ styleChangeMode?: "direct";
154178
153822
  }
154179
153823
  export interface DocDiffApplyBoundParams {
154180
153824
  out?: string;
@@ -154241,10 +153885,10 @@ export interface DocDiffApplyBoundParams {
154241
153885
  }>;
154242
153886
  payload: Record<string, unknown>;
154243
153887
  };
154244
- styleChangeMode?: string;
153888
+ styleChangeMode?: "direct";
154245
153889
  }
154246
153890
  export interface DocExportToDocxBoundParams {
154247
- mode?: string;
153891
+ mode?: "review-preserving" | "final" | "original";
154248
153892
  }
154249
153893
  export interface DocProtectionGetBoundParams {
154250
153894
  }
@@ -154254,7 +153898,7 @@ export interface DocProtectionSetEditingRestrictionBoundParams {
154254
153898
  expectedRevision?: string;
154255
153899
  changeMode?: string;
154256
153900
  dryRun?: boolean;
154257
- mode: string;
153901
+ mode: "readOnly";
154258
153902
  formattingRestricted?: boolean;
154259
153903
  }
154260
153904
  export interface DocProtectionClearEditingRestrictionBoundParams {
@@ -154508,7 +154152,7 @@ export interface DocCustomXmlPartsCreateBoundParams {
154508
154152
  changeMode?: string;
154509
154153
  dryRun?: boolean;
154510
154154
  content: string;
154511
- schemaRefs?: string[];
154155
+ schemaRefs?: Array<string>;
154512
154156
  }
154513
154157
  export interface DocCustomXmlPartsPatchBoundParams {
154514
154158
  out?: string;
@@ -154522,7 +154166,7 @@ export interface DocCustomXmlPartsPatchBoundParams {
154522
154166
  partName: string;
154523
154167
  });
154524
154168
  content?: string;
154525
- schemaRefs?: string[];
154169
+ schemaRefs?: Array<string>;
154526
154170
  }
154527
154171
  export interface DocCustomXmlPartsRemoveBoundParams {
154528
154172
  out?: string;
@@ -154947,7 +154591,7 @@ export interface DocMetadataResolveBoundParams {
154947
154591
  export interface DocSaveBoundParams {
154948
154592
  out?: string;
154949
154593
  force?: boolean;
154950
- mode?: string;
154594
+ mode?: "review-preserving" | "final" | "original";
154951
154595
  inPlace?: boolean;
154952
154596
  }
154953
154597
  export interface DocCloseBoundParams {
@@ -154957,7 +154601,7 @@ export interface DocInsertTabBoundParams {
154957
154601
  out?: string;
154958
154602
  force?: boolean;
154959
154603
  expectedRevision?: string;
154960
- target?: Record<string, unknown> | unknown[];
154604
+ target?: unknown;
154961
154605
  ref?: string;
154962
154606
  blockId?: string;
154963
154607
  start?: number;
@@ -154968,7 +154612,7 @@ export interface DocInsertLineBreakBoundParams {
154968
154612
  out?: string;
154969
154613
  force?: boolean;
154970
154614
  expectedRevision?: string;
154971
- target?: Record<string, unknown> | unknown[];
154615
+ target?: unknown;
154972
154616
  ref?: string;
154973
154617
  blockId?: string;
154974
154618
  start?: number;
@@ -154985,7 +154629,7 @@ export interface DocPresetGetCatalogBoundParams {
154985
154629
  preset?: string;
154986
154630
  }
154987
154631
  export interface DocPresetGetToolsBoundParams {
154988
- provider: string;
154632
+ provider: "openai" | "anthropic" | "vercel" | "generic";
154989
154633
  preset?: string;
154990
154634
  cache?: boolean;
154991
154635
  excludeActions?: string;
@@ -155004,7 +154648,7 @@ export interface DocPresetGetMcpPromptBoundParams {
155004
154648
  export interface DocPresetDispatchBoundParams {
155005
154649
  expectedRevision?: number;
155006
154650
  toolName: string;
155007
- args?: Record<string, unknown> | unknown[];
154651
+ args?: unknown;
155008
154652
  excludeActions?: string;
155009
154653
  enforceChangeMode?: string;
155010
154654
  allowDirectActions?: string;