@superdoc/sdk 2.20.1-next.8 → 2.21.0-next.1

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;
@@ -19655,7 +19436,7 @@ export interface DocMutationsPreviewParams {
19655
19436
  });
19656
19437
  expectedRevision?: string;
19657
19438
  atomic: boolean;
19658
- changeMode: string;
19439
+ changeMode: "direct" | "tracked";
19659
19440
  steps: Array<({
19660
19441
  id: string;
19661
19442
  op: "text.rewrite";
@@ -22976,7 +22757,7 @@ export interface DocCapabilitiesGetParams {
22976
22757
  export interface DocCapabilitiesCheckParams {
22977
22758
  doc?: string;
22978
22759
  sessionId?: string;
22979
- operation: string;
22760
+ operation: "insert" | "replace" | "projectHtml" | "projectMarkdown";
22980
22761
  input?: ({
22981
22762
  in?: ({
22982
22763
  kind: "story";
@@ -23860,7 +23641,7 @@ export interface DocCapabilitiesCheckParams {
23860
23641
  export interface DocCapabilitiesResolveParams {
23861
23642
  doc?: string;
23862
23643
  sessionId?: string;
23863
- operationId: string;
23644
+ 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
23645
  input?: unknown;
23865
23646
  options?: unknown;
23866
23647
  }
@@ -24215,7 +23996,7 @@ export interface DocTablesConvertToTextParams {
24215
23996
  nodeId: string;
24216
23997
  };
24217
23998
  nodeId?: string;
24218
- delimiter?: string;
23999
+ delimiter?: "tab" | "comma" | "paragraph";
24219
24000
  }
24220
24001
  export interface DocTablesSetLayoutParams {
24221
24002
  doc?: string;
@@ -24232,11 +24013,11 @@ export interface DocTablesSetLayoutParams {
24232
24013
  };
24233
24014
  nodeId?: string;
24234
24015
  preferredWidth?: number;
24235
- preferredWidthType?: string;
24236
- alignment?: string;
24016
+ preferredWidthType?: "dxa" | "auto" | "pct";
24017
+ alignment?: "left" | "center" | "right";
24237
24018
  leftIndentPt?: number;
24238
- autoFitMode?: string;
24239
- tableDirection?: string;
24019
+ autoFitMode?: "fixedWidth" | "fitContents" | "fitWindow";
24020
+ tableDirection?: "ltr" | "rtl";
24240
24021
  }
24241
24022
  export interface DocTablesInsertRowParams {
24242
24023
  doc?: string;
@@ -24255,7 +24036,7 @@ export interface DocTablesInsertRowParams {
24255
24036
  nodeType: "table";
24256
24037
  nodeId: string;
24257
24038
  });
24258
- position?: string;
24039
+ position?: "above" | "below";
24259
24040
  count?: number;
24260
24041
  rowIndex?: number;
24261
24042
  nodeId?: string;
@@ -24349,7 +24130,7 @@ export interface DocTablesSetRowHeightParams {
24349
24130
  nodeId: string;
24350
24131
  });
24351
24132
  heightPt: number;
24352
- rule?: string;
24133
+ rule?: "atLeast" | "exact" | "auto";
24353
24134
  rowIndex?: number;
24354
24135
  nodeId?: string;
24355
24136
  }
@@ -24415,7 +24196,7 @@ export interface DocTablesInsertColumnParams {
24415
24196
  };
24416
24197
  nodeId?: string;
24417
24198
  columnIndex?: number;
24418
- position: string;
24199
+ position: "left" | "right" | "first" | "last";
24419
24200
  count?: number;
24420
24201
  }
24421
24202
  export interface DocTablesDeleteColumnParams {
@@ -24511,7 +24292,7 @@ export interface DocTablesInsertCellParams {
24511
24292
  nodeId: string;
24512
24293
  };
24513
24294
  nodeId?: string;
24514
- mode: string;
24295
+ mode: "shiftRight" | "shiftDown";
24515
24296
  }
24516
24297
  export interface DocTablesDeleteCellParams {
24517
24298
  doc?: string;
@@ -24527,7 +24308,7 @@ export interface DocTablesDeleteCellParams {
24527
24308
  nodeId: string;
24528
24309
  };
24529
24310
  nodeId?: string;
24530
- mode: string;
24311
+ mode: "shiftLeft" | "shiftUp";
24531
24312
  }
24532
24313
  export interface DocTablesMergeCellsParams {
24533
24314
  doc?: string;
@@ -24605,8 +24386,8 @@ export interface DocTablesSetCellPropertiesParams {
24605
24386
  };
24606
24387
  nodeId?: string;
24607
24388
  preferredWidthPt?: number;
24608
- preferredWidthType?: string;
24609
- verticalAlign?: string;
24389
+ preferredWidthType?: "auto" | "dxa" | "pct";
24390
+ verticalAlign?: "top" | "center" | "bottom";
24610
24391
  wrapText?: boolean;
24611
24392
  fitText?: boolean;
24612
24393
  }
@@ -24714,7 +24495,7 @@ export interface DocTablesSetStyleOptionParams {
24714
24495
  nodeId: string;
24715
24496
  };
24716
24497
  nodeId?: string;
24717
- flag: string;
24498
+ flag: "headerRow" | "lastRow" | "totalRow" | "firstColumn" | "lastColumn" | "bandedRows" | "bandedColumns";
24718
24499
  enabled: boolean;
24719
24500
  }
24720
24501
  export interface DocTablesSetBorderParams {
@@ -24731,7 +24512,7 @@ export interface DocTablesSetBorderParams {
24731
24512
  nodeId: string;
24732
24513
  };
24733
24514
  nodeId?: string;
24734
- edge: string;
24515
+ edge: "top" | "bottom" | "left" | "right" | "insideH" | "insideV" | "diagonalDown" | "diagonalUp";
24735
24516
  lineStyle: string;
24736
24517
  lineWeightPt: number;
24737
24518
  color: string;
@@ -24750,7 +24531,7 @@ export interface DocTablesClearBorderParams {
24750
24531
  nodeId: string;
24751
24532
  };
24752
24533
  nodeId?: string;
24753
- edge: string;
24534
+ edge: "top" | "bottom" | "left" | "right" | "insideH" | "insideV" | "diagonalDown" | "diagonalUp";
24754
24535
  }
24755
24536
  export interface DocTablesApplyBorderPresetParams {
24756
24537
  doc?: string;
@@ -24766,7 +24547,7 @@ export interface DocTablesApplyBorderPresetParams {
24766
24547
  nodeId: string;
24767
24548
  };
24768
24549
  nodeId?: string;
24769
- preset: string;
24550
+ preset: "box" | "all" | "none" | "grid" | "custom";
24770
24551
  }
24771
24552
  export interface DocTablesSetShadingParams {
24772
24553
  doc?: string;
@@ -24969,8 +24750,8 @@ export interface DocTablesSetBordersParams {
24969
24750
  });
24970
24751
  };
24971
24752
  nodeId?: string;
24972
- mode: string;
24973
- applyTo?: string;
24753
+ mode: "applyTo" | "edges";
24754
+ applyTo?: "all" | "outside" | "inside" | "top" | "bottom" | "left" | "right" | "insideH" | "insideV";
24974
24755
  border?: ({
24975
24756
  lineStyle: string;
24976
24757
  lineWeightPt: number;
@@ -25076,7 +24857,7 @@ export interface DocTablesApplyPresetParams {
25076
24857
  nodeId: string;
25077
24858
  };
25078
24859
  nodeId?: string;
25079
- preset: string;
24860
+ preset: "grid" | "minimal" | "striped" | "accent";
25080
24861
  accentColor?: string;
25081
24862
  }
25082
24863
  export interface DocTablesGetParams {
@@ -25311,7 +25092,7 @@ export interface DocTocUpdateParams {
25311
25092
  nodeType: "tableOfContents";
25312
25093
  nodeId: string;
25313
25094
  };
25314
- mode?: string;
25095
+ mode?: "all" | "pageNumbers";
25315
25096
  }
25316
25097
  export interface DocTocRemoveParams {
25317
25098
  doc?: string;
@@ -25824,7 +25605,7 @@ export interface DocImagesSetWrapTypeParams {
25824
25605
  changeMode?: string;
25825
25606
  dryRun?: boolean;
25826
25607
  imageId: string;
25827
- type: string;
25608
+ type: "None" | "Square" | "Through" | "Tight" | "TopAndBottom" | "Inline";
25828
25609
  }
25829
25610
  export interface DocImagesSetWrapSideParams {
25830
25611
  doc?: string;
@@ -25835,7 +25616,7 @@ export interface DocImagesSetWrapSideParams {
25835
25616
  changeMode?: string;
25836
25617
  dryRun?: boolean;
25837
25618
  imageId: string;
25838
- side: string;
25619
+ side: "bothSides" | "left" | "right" | "largest";
25839
25620
  }
25840
25621
  export interface DocImagesSetWrapDistancesParams {
25841
25622
  doc?: string;
@@ -26296,12 +26077,12 @@ export interface DocHyperlinksRemoveParams {
26296
26077
  };
26297
26078
  };
26298
26079
  };
26299
- mode?: string;
26080
+ mode?: "unwrap" | "deleteText";
26300
26081
  }
26301
26082
  export interface DocHeaderFootersListParams {
26302
26083
  doc?: string;
26303
26084
  sessionId?: string;
26304
- kind?: string;
26085
+ kind?: "header" | "footer";
26305
26086
  section?: {
26306
26087
  kind: "section";
26307
26088
  sectionId: string;
@@ -26394,7 +26175,7 @@ export interface DocHeaderFootersRefsSetLinkedToPreviousParams {
26394
26175
  export interface DocHeaderFootersPartsListParams {
26395
26176
  doc?: string;
26396
26177
  sessionId?: string;
26397
- kind?: string;
26178
+ kind?: "header" | "footer";
26398
26179
  limit?: number;
26399
26180
  offset?: number;
26400
26181
  }
@@ -26406,7 +26187,7 @@ export interface DocHeaderFootersPartsCreateParams {
26406
26187
  expectedRevision?: string;
26407
26188
  changeMode?: string;
26408
26189
  dryRun?: boolean;
26409
- kind: string;
26190
+ kind: "header" | "footer";
26410
26191
  sourceRefId?: string;
26411
26192
  }
26412
26193
  export interface DocHeaderFootersPartsDeleteParams {
@@ -26442,10 +26223,10 @@ export interface DocHeaderFootersPageNumbersInsertParams {
26442
26223
  kind: "section";
26443
26224
  sectionId: string;
26444
26225
  };
26445
- kind: string;
26446
- alignment?: string;
26226
+ kind: "header" | "footer";
26227
+ alignment?: "left" | "center" | "right";
26447
26228
  showOnFirstPage?: boolean;
26448
- format?: string;
26229
+ format?: "decimal" | "lowerLetter" | "upperLetter" | "lowerRoman" | "upperRoman" | "numberInDash" | "hebrew1" | "hebrew2";
26449
26230
  start?: number | unknown;
26450
26231
  }
26451
26232
  export interface DocHeaderFootersPageNumbersSetParams {
@@ -26460,10 +26241,10 @@ export interface DocHeaderFootersPageNumbersSetParams {
26460
26241
  kind: "section";
26461
26242
  sectionId: string;
26462
26243
  };
26463
- kind: string;
26464
- alignment?: string;
26244
+ kind: "header" | "footer";
26245
+ alignment?: "left" | "center" | "right";
26465
26246
  showOnFirstPage?: boolean;
26466
- format?: string;
26247
+ format?: "decimal" | "lowerLetter" | "upperLetter" | "lowerRoman" | "upperRoman" | "numberInDash" | "hebrew1" | "hebrew2";
26467
26248
  start?: number | unknown;
26468
26249
  }
26469
26250
  export interface DocHeaderFootersPageNumbersRemoveParams {
@@ -26478,7 +26259,7 @@ export interface DocHeaderFootersPageNumbersRemoveParams {
26478
26259
  kind: "section";
26479
26260
  sectionId: string;
26480
26261
  };
26481
- kind?: string;
26262
+ kind?: "header" | "footer";
26482
26263
  }
26483
26264
  export interface DocWatermarksApplyParams {
26484
26265
  doc?: string;
@@ -26502,7 +26283,7 @@ export interface DocWatermarksApplyParams {
26502
26283
  variant: "default" | "first" | "even";
26503
26284
  }>;
26504
26285
  });
26505
- action: string;
26286
+ action: "insert" | "replace" | "remove";
26506
26287
  watermark?: ({
26507
26288
  kind: "text";
26508
26289
  text: string;
@@ -26584,7 +26365,7 @@ export interface DocWatermarksApplyParams {
26584
26365
  watermarkId: string;
26585
26366
  };
26586
26367
  });
26587
- watermarkIds?: string[];
26368
+ watermarkIds?: Array<string>;
26588
26369
  }
26589
26370
  export interface DocWatermarksListParams {
26590
26371
  doc?: string;
@@ -26761,7 +26542,7 @@ export interface DocCreateContentControlParams {
26761
26542
  expectedRevision?: string;
26762
26543
  changeMode?: string;
26763
26544
  dryRun?: boolean;
26764
- kind: string;
26545
+ kind: "block" | "inline";
26765
26546
  controlType?: string;
26766
26547
  target?: {
26767
26548
  kind: "block" | "inline";
@@ -26986,7 +26767,7 @@ export interface DocCreateContentControlParams {
26986
26767
  };
26987
26768
  tag?: string;
26988
26769
  alias?: string;
26989
- lockMode?: string;
26770
+ lockMode?: "unlocked" | "sdtLocked" | "contentLocked" | "sdtContentLocked";
26990
26771
  content?: string;
26991
26772
  html?: string;
26992
26773
  json?: Record<string, unknown> | Array<Record<string, unknown>>;
@@ -27151,7 +26932,7 @@ export interface DocContentControlsWrapParams {
27151
26932
  expectedRevision?: string;
27152
26933
  changeMode?: string;
27153
26934
  dryRun?: boolean;
27154
- kind: string;
26935
+ kind: "block" | "inline";
27155
26936
  target: {
27156
26937
  kind: "block" | "inline";
27157
26938
  nodeType: "sdt";
@@ -27190,7 +26971,7 @@ export interface DocContentControlsWrapParams {
27190
26971
  };
27191
26972
  tag?: string;
27192
26973
  alias?: string;
27193
- lockMode?: string;
26974
+ lockMode?: "unlocked" | "sdtLocked" | "contentLocked" | "sdtContentLocked";
27194
26975
  }
27195
26976
  export interface DocContentControlsUnwrapParams {
27196
26977
  doc?: string;
@@ -27610,7 +27391,7 @@ export interface DocContentControlsPatchParams {
27610
27391
  };
27611
27392
  alias?: unknown;
27612
27393
  tag?: unknown;
27613
- appearance?: string;
27394
+ appearance?: "boundingBox" | "tags" | "hidden";
27614
27395
  color?: string;
27615
27396
  placeholder?: string | unknown;
27616
27397
  showingPlaceholder?: boolean;
@@ -27661,7 +27442,7 @@ export interface DocContentControlsSetLockModeParams {
27661
27442
  textboxId: string;
27662
27443
  });
27663
27444
  };
27664
- lockMode: string;
27445
+ lockMode: "unlocked" | "sdtLocked" | "contentLocked" | "sdtContentLocked";
27665
27446
  addToHistory?: boolean;
27666
27447
  }
27667
27448
  export interface DocContentControlsSetTypeParams {
@@ -27795,7 +27576,7 @@ export interface DocContentControlsReplaceContentParams {
27795
27576
  });
27796
27577
  };
27797
27578
  content: string;
27798
- format?: string;
27579
+ format?: "text" | "html" | "ooxml";
27799
27580
  }
27800
27581
  export interface DocContentControlsClearContentParams {
27801
27582
  doc?: string;
@@ -27887,7 +27668,7 @@ export interface DocContentControlsAppendContentParams {
27887
27668
  });
27888
27669
  };
27889
27670
  content: string;
27890
- format?: string;
27671
+ format?: "text" | "html";
27891
27672
  }
27892
27673
  export interface DocContentControlsPrependContentParams {
27893
27674
  doc?: string;
@@ -27934,7 +27715,7 @@ export interface DocContentControlsPrependContentParams {
27934
27715
  });
27935
27716
  };
27936
27717
  content: string;
27937
- format?: string;
27718
+ format?: "text" | "html";
27938
27719
  }
27939
27720
  export interface DocContentControlsInsertBeforeParams {
27940
27721
  doc?: string;
@@ -27981,7 +27762,7 @@ export interface DocContentControlsInsertBeforeParams {
27981
27762
  });
27982
27763
  };
27983
27764
  content: string;
27984
- format?: string;
27765
+ format?: "text" | "html";
27985
27766
  }
27986
27767
  export interface DocContentControlsInsertAfterParams {
27987
27768
  doc?: string;
@@ -28028,7 +27809,7 @@ export interface DocContentControlsInsertAfterParams {
28028
27809
  });
28029
27810
  };
28030
27811
  content: string;
28031
- format?: string;
27812
+ format?: "text" | "html";
28032
27813
  }
28033
27814
  export interface DocContentControlsGetBindingParams {
28034
27815
  doc?: string;
@@ -29688,7 +29469,7 @@ export interface DocBookmarksRemoveParams {
29688
29469
  export interface DocFootnotesListParams {
29689
29470
  doc?: string;
29690
29471
  sessionId?: string;
29691
- type?: string;
29472
+ type?: "footnote" | "endnote";
29692
29473
  limit?: number;
29693
29474
  offset?: number;
29694
29475
  }
@@ -29751,7 +29532,7 @@ export interface DocFootnotesInsertParams {
29751
29532
  });
29752
29533
  coordinateSpace?: "visible" | "tracked";
29753
29534
  };
29754
- type: string;
29535
+ type: "footnote" | "endnote";
29755
29536
  content?: string;
29756
29537
  body?: Record<string, unknown> | Array<Record<string, unknown>>;
29757
29538
  }
@@ -29796,7 +29577,7 @@ export interface DocFootnotesConfigureParams {
29796
29577
  expectedRevision?: string;
29797
29578
  changeMode?: string;
29798
29579
  dryRun?: boolean;
29799
- type: string;
29580
+ type: "footnote" | "endnote";
29800
29581
  scope: ({
29801
29582
  kind: "document";
29802
29583
  }) | ({
@@ -29833,7 +29614,7 @@ export interface DocClipboardInsertParams {
29833
29614
  plan?: Record<string, unknown>;
29834
29615
  fragment?: Record<string, unknown>;
29835
29616
  target?: Record<string, unknown>;
29836
- fallback?: string;
29617
+ fallback?: "reject-rich" | "plain-with-warning";
29837
29618
  }
29838
29619
  export interface DocClipboardSerializeSelectionParams {
29839
29620
  doc?: string;
@@ -29935,7 +29716,7 @@ export interface DocCrossRefsInsertParams {
29935
29716
  styleName: string;
29936
29717
  direction?: "before" | "after";
29937
29718
  });
29938
- display: string;
29719
+ display: "content" | "pageNumber" | "noteNumber" | "labelAndNumber" | "aboveBelow" | "numberOnly" | "numberFullContext" | "styledContent" | "styledPageNumber";
29939
29720
  }
29940
29721
  export interface DocCrossRefsRebuildParams {
29941
29722
  doc?: string;
@@ -30362,7 +30143,7 @@ export interface DocCaptionsInsertParams {
30362
30143
  textboxId: string;
30363
30144
  });
30364
30145
  };
30365
- position: string;
30146
+ position: "above" | "below";
30366
30147
  label: string;
30367
30148
  text?: string;
30368
30149
  }
@@ -30406,7 +30187,7 @@ export interface DocCaptionsConfigureParams {
30406
30187
  changeMode?: string;
30407
30188
  dryRun?: boolean;
30408
30189
  label: string;
30409
- format?: string;
30190
+ format?: "decimal" | "lowerRoman" | "upperRoman" | "lowerLetter" | "upperLetter";
30410
30191
  includeChapter?: boolean;
30411
30192
  chapterStyle?: string;
30412
30193
  }
@@ -30481,7 +30262,7 @@ export interface DocFieldsInsertParams {
30481
30262
  };
30482
30263
  instruction: string;
30483
30264
  cachedResultText?: string;
30484
- updatePolicy?: string;
30265
+ updatePolicy?: "rebuild" | "preserveCached";
30485
30266
  }
30486
30267
  export interface DocFieldsRebuildParams {
30487
30268
  doc?: string;
@@ -30626,7 +30407,7 @@ export interface DocCitationsInsertParams {
30626
30407
  });
30627
30408
  coordinateSpace?: "visible" | "tracked";
30628
30409
  };
30629
- sourceIds: string[];
30410
+ sourceIds: Array<string>;
30630
30411
  }
30631
30412
  export interface DocCitationsUpdateParams {
30632
30413
  doc?: string;
@@ -30769,7 +30550,7 @@ export interface DocCitationsSourcesInsertParams {
30769
30550
  expectedRevision?: string;
30770
30551
  changeMode?: string;
30771
30552
  dryRun?: boolean;
30772
- type: string;
30553
+ type: "book" | "journalArticle" | "conferenceProceedings" | "report" | "website" | "patent" | "case" | "statute" | "thesis" | "film" | "interview" | "misc";
30773
30554
  fields: {
30774
30555
  title?: string;
30775
30556
  authors?: Array<{
@@ -31323,7 +31104,7 @@ export interface DocDiffCompareParams {
31323
31104
  };
31324
31105
  payload: Record<string, unknown>;
31325
31106
  };
31326
- styleChangeMode?: string;
31107
+ styleChangeMode?: "direct";
31327
31108
  }
31328
31109
  export interface DocDiffApplyParams {
31329
31110
  doc?: string;
@@ -31392,12 +31173,12 @@ export interface DocDiffApplyParams {
31392
31173
  }>;
31393
31174
  payload: Record<string, unknown>;
31394
31175
  };
31395
- styleChangeMode?: string;
31176
+ styleChangeMode?: "direct";
31396
31177
  }
31397
31178
  export interface DocExportToDocxParams {
31398
31179
  doc?: string;
31399
31180
  sessionId?: string;
31400
- mode?: string;
31181
+ mode?: "review-preserving" | "final" | "original";
31401
31182
  }
31402
31183
  export interface DocProtectionGetParams {
31403
31184
  doc?: string;
@@ -31411,7 +31192,7 @@ export interface DocProtectionSetEditingRestrictionParams {
31411
31192
  expectedRevision?: string;
31412
31193
  changeMode?: string;
31413
31194
  dryRun?: boolean;
31414
- mode: string;
31195
+ mode: "readOnly";
31415
31196
  formattingRestricted?: boolean;
31416
31197
  }
31417
31198
  export interface DocProtectionClearEditingRestrictionParams {
@@ -31683,7 +31464,7 @@ export interface DocCustomXmlPartsCreateParams {
31683
31464
  changeMode?: string;
31684
31465
  dryRun?: boolean;
31685
31466
  content: string;
31686
- schemaRefs?: string[];
31467
+ schemaRefs?: Array<string>;
31687
31468
  }
31688
31469
  export interface DocCustomXmlPartsPatchParams {
31689
31470
  doc?: string;
@@ -31699,7 +31480,7 @@ export interface DocCustomXmlPartsPatchParams {
31699
31480
  partName: string;
31700
31481
  });
31701
31482
  content?: string;
31702
- schemaRefs?: string[];
31483
+ schemaRefs?: Array<string>;
31703
31484
  }
31704
31485
  export interface DocCustomXmlPartsRemoveParams {
31705
31486
  doc?: string;
@@ -32144,7 +31925,7 @@ export interface DocOpenParams {
32144
31925
  documentId?: string;
32145
31926
  tokenEnv?: string;
32146
31927
  headersEnv?: string;
32147
- params?: Record<string, unknown>;
31928
+ params?: Record<string, string>;
32148
31929
  syncTimeoutMs?: number;
32149
31930
  roomMode?: "join" | "create";
32150
31931
  bootstrapSettlingMs?: number;
@@ -32174,7 +31955,7 @@ export interface DocOpenParams {
32174
31955
  overrideType?: string;
32175
31956
  roomMode?: string;
32176
31957
  bootstrapSettlingMs?: number;
32177
- runtime?: string;
31958
+ runtime?: "v2";
32178
31959
  userName?: string;
32179
31960
  userEmail?: string;
32180
31961
  password?: string;
@@ -32183,7 +31964,7 @@ export interface DocSaveParams {
32183
31964
  sessionId?: string;
32184
31965
  out?: string;
32185
31966
  force?: boolean;
32186
- mode?: string;
31967
+ mode?: "review-preserving" | "final" | "original";
32187
31968
  inPlace?: boolean;
32188
31969
  }
32189
31970
  export interface DocCloseParams {
@@ -32196,7 +31977,7 @@ export interface DocInsertTabParams {
32196
31977
  out?: string;
32197
31978
  force?: boolean;
32198
31979
  expectedRevision?: string;
32199
- target?: Record<string, unknown> | unknown[];
31980
+ target?: unknown;
32200
31981
  ref?: string;
32201
31982
  blockId?: string;
32202
31983
  start?: number;
@@ -32209,7 +31990,7 @@ export interface DocInsertLineBreakParams {
32209
31990
  out?: string;
32210
31991
  force?: boolean;
32211
31992
  expectedRevision?: string;
32212
- target?: Record<string, unknown> | unknown[];
31993
+ target?: unknown;
32213
31994
  ref?: string;
32214
31995
  blockId?: string;
32215
31996
  start?: number;
@@ -32254,7 +32035,7 @@ export interface DocPresetGetCatalogParams {
32254
32035
  preset?: string;
32255
32036
  }
32256
32037
  export interface DocPresetGetToolsParams {
32257
- provider: string;
32038
+ provider: "openai" | "anthropic" | "vercel" | "generic";
32258
32039
  preset?: string;
32259
32040
  cache?: boolean;
32260
32041
  excludeActions?: string;
@@ -32274,7 +32055,7 @@ export interface DocPresetDispatchParams {
32274
32055
  sessionId?: string;
32275
32056
  expectedRevision?: number;
32276
32057
  toolName: string;
32277
- args?: Record<string, unknown> | unknown[];
32058
+ args?: unknown;
32278
32059
  excludeActions?: string;
32279
32060
  enforceChangeMode?: string;
32280
32061
  allowDirectActions?: string;
@@ -33590,13 +33371,13 @@ export type DocMarkdownToFragmentResult = {
33590
33371
  }) | ({
33591
33372
  id?: string;
33592
33373
  kind: "lineBreak";
33593
- lineBreak: Record<string, unknown>;
33374
+ lineBreak: Record<string, never>;
33594
33375
  })>;
33595
33376
  };
33596
33377
  }) | ({
33597
33378
  id?: string;
33598
33379
  kind: "lineBreak";
33599
- lineBreak: Record<string, unknown>;
33380
+ lineBreak: Record<string, never>;
33600
33381
  })>;
33601
33382
  styleRef?: string;
33602
33383
  props?: {
@@ -33701,13 +33482,13 @@ export type DocMarkdownToFragmentResult = {
33701
33482
  }) | ({
33702
33483
  id?: string;
33703
33484
  kind: "lineBreak";
33704
- lineBreak: Record<string, unknown>;
33485
+ lineBreak: Record<string, never>;
33705
33486
  })>;
33706
33487
  };
33707
33488
  }) | ({
33708
33489
  id?: string;
33709
33490
  kind: "lineBreak";
33710
- lineBreak: Record<string, unknown>;
33491
+ lineBreak: Record<string, never>;
33711
33492
  })>;
33712
33493
  styleRef?: string;
33713
33494
  props?: {
@@ -33778,7 +33559,7 @@ export type DocMarkdownToFragmentResult = {
33778
33559
  }) | ({
33779
33560
  id?: string;
33780
33561
  kind: "horizontalRule";
33781
- horizontalRule: Record<string, unknown>;
33562
+ horizontalRule: Record<string, never>;
33782
33563
  })) | (Array<({
33783
33564
  id?: string;
33784
33565
  kind: "paragraph";
@@ -33862,13 +33643,13 @@ export type DocMarkdownToFragmentResult = {
33862
33643
  }) | ({
33863
33644
  id?: string;
33864
33645
  kind: "lineBreak";
33865
- lineBreak: Record<string, unknown>;
33646
+ lineBreak: Record<string, never>;
33866
33647
  })>;
33867
33648
  };
33868
33649
  }) | ({
33869
33650
  id?: string;
33870
33651
  kind: "lineBreak";
33871
- lineBreak: Record<string, unknown>;
33652
+ lineBreak: Record<string, never>;
33872
33653
  })>;
33873
33654
  styleRef?: string;
33874
33655
  props?: {
@@ -33973,13 +33754,13 @@ export type DocMarkdownToFragmentResult = {
33973
33754
  }) | ({
33974
33755
  id?: string;
33975
33756
  kind: "lineBreak";
33976
- lineBreak: Record<string, unknown>;
33757
+ lineBreak: Record<string, never>;
33977
33758
  })>;
33978
33759
  };
33979
33760
  }) | ({
33980
33761
  id?: string;
33981
33762
  kind: "lineBreak";
33982
- lineBreak: Record<string, unknown>;
33763
+ lineBreak: Record<string, never>;
33983
33764
  })>;
33984
33765
  styleRef?: string;
33985
33766
  props?: {
@@ -34050,7 +33831,7 @@ export type DocMarkdownToFragmentResult = {
34050
33831
  }) | ({
34051
33832
  id?: string;
34052
33833
  kind: "horizontalRule";
34053
- horizontalRule: Record<string, unknown>;
33834
+ horizontalRule: Record<string, never>;
34054
33835
  })>);
34055
33836
  lossy: boolean;
34056
33837
  diagnostics: Array<{
@@ -34158,13 +33939,13 @@ export type DocHtmlToFragmentResult = {
34158
33939
  }) | ({
34159
33940
  id?: string;
34160
33941
  kind: "lineBreak";
34161
- lineBreak: Record<string, unknown>;
33942
+ lineBreak: Record<string, never>;
34162
33943
  })>;
34163
33944
  };
34164
33945
  }) | ({
34165
33946
  id?: string;
34166
33947
  kind: "lineBreak";
34167
- lineBreak: Record<string, unknown>;
33948
+ lineBreak: Record<string, never>;
34168
33949
  })>;
34169
33950
  styleRef?: string;
34170
33951
  props?: {
@@ -34269,13 +34050,13 @@ export type DocHtmlToFragmentResult = {
34269
34050
  }) | ({
34270
34051
  id?: string;
34271
34052
  kind: "lineBreak";
34272
- lineBreak: Record<string, unknown>;
34053
+ lineBreak: Record<string, never>;
34273
34054
  })>;
34274
34055
  };
34275
34056
  }) | ({
34276
34057
  id?: string;
34277
34058
  kind: "lineBreak";
34278
- lineBreak: Record<string, unknown>;
34059
+ lineBreak: Record<string, never>;
34279
34060
  })>;
34280
34061
  styleRef?: string;
34281
34062
  props?: {
@@ -34346,7 +34127,7 @@ export type DocHtmlToFragmentResult = {
34346
34127
  }) | ({
34347
34128
  id?: string;
34348
34129
  kind: "horizontalRule";
34349
- horizontalRule: Record<string, unknown>;
34130
+ horizontalRule: Record<string, never>;
34350
34131
  })) | (Array<({
34351
34132
  id?: string;
34352
34133
  kind: "paragraph";
@@ -34430,13 +34211,13 @@ export type DocHtmlToFragmentResult = {
34430
34211
  }) | ({
34431
34212
  id?: string;
34432
34213
  kind: "lineBreak";
34433
- lineBreak: Record<string, unknown>;
34214
+ lineBreak: Record<string, never>;
34434
34215
  })>;
34435
34216
  };
34436
34217
  }) | ({
34437
34218
  id?: string;
34438
34219
  kind: "lineBreak";
34439
- lineBreak: Record<string, unknown>;
34220
+ lineBreak: Record<string, never>;
34440
34221
  })>;
34441
34222
  styleRef?: string;
34442
34223
  props?: {
@@ -34541,13 +34322,13 @@ export type DocHtmlToFragmentResult = {
34541
34322
  }) | ({
34542
34323
  id?: string;
34543
34324
  kind: "lineBreak";
34544
- lineBreak: Record<string, unknown>;
34325
+ lineBreak: Record<string, never>;
34545
34326
  })>;
34546
34327
  };
34547
34328
  }) | ({
34548
34329
  id?: string;
34549
34330
  kind: "lineBreak";
34550
- lineBreak: Record<string, unknown>;
34331
+ lineBreak: Record<string, never>;
34551
34332
  })>;
34552
34333
  styleRef?: string;
34553
34334
  props?: {
@@ -34618,7 +34399,7 @@ export type DocHtmlToFragmentResult = {
34618
34399
  }) | ({
34619
34400
  id?: string;
34620
34401
  kind: "horizontalRule";
34621
- horizontalRule: Record<string, unknown>;
34402
+ horizontalRule: Record<string, never>;
34622
34403
  })>);
34623
34404
  lossy: boolean;
34624
34405
  diagnostics: Array<{
@@ -81210,12 +80991,12 @@ export type DocStylesApplyResult = {
81210
80991
  };
81211
80992
  export type DocStylesGetCatalogResult = {
81212
80993
  version: "style-catalog/v1";
81213
- revision: unknown;
80994
+ revision: string | null;
81214
80995
  view: "quickGallery" | "recommended" | "currentDocument" | "all" | "inUse";
81215
80996
  defaults: {
81216
- paragraphStyleId: unknown;
81217
- characterStyleId: unknown;
81218
- tableStyleId: unknown;
80997
+ paragraphStyleId: string | null;
80998
+ characterStyleId: string | null;
80999
+ tableStyleId: string | null;
81219
81000
  };
81220
81001
  items: Array<{
81221
81002
  id: string;
@@ -81225,10 +81006,10 @@ export type DocStylesGetCatalogResult = {
81225
81006
  custom: boolean;
81226
81007
  builtin: boolean;
81227
81008
  default: boolean;
81228
- basedOn: unknown;
81229
- next: unknown;
81230
- link: unknown;
81231
- priority: unknown;
81009
+ basedOn: string | null;
81010
+ next: string | null;
81011
+ link: string | null;
81012
+ priority: number | null;
81232
81013
  qFormat: boolean;
81233
81014
  hidden: boolean;
81234
81015
  semiHidden: boolean;
@@ -81262,10 +81043,10 @@ export type DocStylesGetCatalogResult = {
81262
81043
  custom: boolean;
81263
81044
  builtin: boolean;
81264
81045
  default: boolean;
81265
- basedOn: unknown;
81266
- next: unknown;
81267
- link: unknown;
81268
- priority: unknown;
81046
+ basedOn: string | null;
81047
+ next: string | null;
81048
+ link: string | null;
81049
+ priority: number | null;
81269
81050
  qFormat: boolean;
81270
81051
  hidden: boolean;
81271
81052
  semiHidden: boolean;
@@ -81479,7 +81260,7 @@ export type DocCreateParagraphResult = {
81479
81260
  handle: {
81480
81261
  ref: string;
81481
81262
  refStability: "stable" | "ephemeral";
81482
- targetKind: unknown;
81263
+ targetKind: "text" | "node" | "list" | "comment" | "trackedChange" | "table" | "tableCell" | "tableOfContents" | "section" | "sdt" | "field" | string;
81483
81264
  };
81484
81265
  evaluatedRevision: string;
81485
81266
  ref?: string;
@@ -81600,7 +81381,7 @@ export type DocCreateHeadingResult = {
81600
81381
  handle: {
81601
81382
  ref: string;
81602
81383
  refStability: "stable" | "ephemeral";
81603
- targetKind: unknown;
81384
+ targetKind: "text" | "node" | "list" | "comment" | "trackedChange" | "table" | "tableCell" | "tableOfContents" | "section" | "sdt" | "field" | string;
81604
81385
  };
81605
81386
  evaluatedRevision: string;
81606
81387
  ref?: string;
@@ -81717,7 +81498,43 @@ export type DocSectionsListResult = {
81717
81498
  first?: string;
81718
81499
  even?: string;
81719
81500
  };
81720
- pageBorders?: unknown | unknown | unknown | unknown | unknown | unknown | unknown;
81501
+ pageBorders?: {
81502
+ display?: "allPages" | "firstPage" | "notFirstPage";
81503
+ offsetFrom?: "page" | "text";
81504
+ zOrder?: "front" | "back";
81505
+ top?: {
81506
+ style?: string;
81507
+ size?: number;
81508
+ space?: number;
81509
+ color?: string;
81510
+ shadow?: boolean;
81511
+ frame?: boolean;
81512
+ };
81513
+ right?: {
81514
+ style?: string;
81515
+ size?: number;
81516
+ space?: number;
81517
+ color?: string;
81518
+ shadow?: boolean;
81519
+ frame?: boolean;
81520
+ };
81521
+ bottom?: {
81522
+ style?: string;
81523
+ size?: number;
81524
+ space?: number;
81525
+ color?: string;
81526
+ shadow?: boolean;
81527
+ frame?: boolean;
81528
+ };
81529
+ left?: {
81530
+ style?: string;
81531
+ size?: number;
81532
+ space?: number;
81533
+ color?: string;
81534
+ shadow?: boolean;
81535
+ frame?: boolean;
81536
+ };
81537
+ };
81721
81538
  }>;
81722
81539
  page: {
81723
81540
  limit: number;
@@ -81785,7 +81602,43 @@ export type DocSectionsGetResult = {
81785
81602
  first?: string;
81786
81603
  even?: string;
81787
81604
  };
81788
- pageBorders?: unknown | unknown | unknown | unknown | unknown | unknown | unknown;
81605
+ pageBorders?: {
81606
+ display?: "allPages" | "firstPage" | "notFirstPage";
81607
+ offsetFrom?: "page" | "text";
81608
+ zOrder?: "front" | "back";
81609
+ top?: {
81610
+ style?: string;
81611
+ size?: number;
81612
+ space?: number;
81613
+ color?: string;
81614
+ shadow?: boolean;
81615
+ frame?: boolean;
81616
+ };
81617
+ right?: {
81618
+ style?: string;
81619
+ size?: number;
81620
+ space?: number;
81621
+ color?: string;
81622
+ shadow?: boolean;
81623
+ frame?: boolean;
81624
+ };
81625
+ bottom?: {
81626
+ style?: string;
81627
+ size?: number;
81628
+ space?: number;
81629
+ color?: string;
81630
+ shadow?: boolean;
81631
+ frame?: boolean;
81632
+ };
81633
+ left?: {
81634
+ style?: string;
81635
+ size?: number;
81636
+ space?: number;
81637
+ color?: string;
81638
+ shadow?: boolean;
81639
+ frame?: boolean;
81640
+ };
81641
+ };
81789
81642
  };
81790
81643
  export type DocSectionsSetBreakTypeResult = {
81791
81644
  success: true;
@@ -87975,7 +87828,7 @@ export type DocListsListResult = {
87975
87828
  handle: {
87976
87829
  ref: string;
87977
87830
  refStability: "stable" | "ephemeral";
87978
- targetKind: unknown;
87831
+ targetKind: "text" | "node" | "list" | "comment" | "trackedChange" | "table" | "tableCell" | "tableOfContents" | "section" | "sdt" | "field" | string;
87979
87832
  };
87980
87833
  address: {
87981
87834
  kind: "block";
@@ -89436,7 +89289,7 @@ export type DocListsSplitResult = {
89436
89289
  success: true;
89437
89290
  listId: string;
89438
89291
  numId: number;
89439
- restartedAt: unknown;
89292
+ restartedAt: number | null;
89440
89293
  };
89441
89294
  export type DocListsSetLevelResult = {
89442
89295
  success: true;
@@ -95236,7 +95089,7 @@ export type DocListsGetStyleResult = {
95236
95089
  trailingCharacter?: "tab" | "space" | "nothing";
95237
95090
  markerFont?: string;
95238
95091
  pictureBulletId?: number;
95239
- tabStopAt?: unknown;
95092
+ tabStopAt?: number | null;
95240
95093
  }>;
95241
95094
  };
95242
95095
  };
@@ -97529,11 +97382,11 @@ export type DocListsSetLevelLayoutResult = {
97529
97382
  export type DocListsGetStateResult = ({
97530
97383
  success: true;
97531
97384
  isListItem: boolean;
97532
- numId?: unknown;
97385
+ numId?: string | null;
97533
97386
  ilvl: number;
97534
- abstractNumId?: unknown;
97535
- numFmt?: unknown;
97536
- lvlText?: unknown;
97387
+ abstractNumId?: string | null;
97388
+ numFmt?: string | null;
97389
+ lvlText?: string | null;
97537
97390
  seed?: "bullet" | "ordered" | null;
97538
97391
  }) | ({
97539
97392
  success: false;
@@ -101370,7 +101223,7 @@ export type DocCommentsGetResult = {
101370
101223
  creatorImage?: string;
101371
101224
  trackedChange?: boolean;
101372
101225
  trackedChangeType?: "insertion" | "deletion" | "replacement" | "formatting" | "move" | "structural" | "insert" | "delete" | "format";
101373
- trackedChangeDisplayType?: unknown;
101226
+ trackedChangeDisplayType?: string | null;
101374
101227
  trackedChangeStory?: (({
101375
101228
  kind: "story";
101376
101229
  storyType: "body";
@@ -101402,10 +101255,10 @@ export type DocCommentsGetResult = {
101402
101255
  storyType: "textbox";
101403
101256
  textboxId: string;
101404
101257
  })) | null;
101405
- trackedChangeAnchorKey?: unknown;
101406
- trackedChangeText?: unknown;
101407
- insertedText?: unknown;
101408
- deletedText?: unknown;
101258
+ trackedChangeAnchorKey?: string | null;
101259
+ trackedChangeText?: string | null;
101260
+ insertedText?: string | null;
101261
+ deletedText?: string | null;
101409
101262
  trackedChangeLink?: ({
101410
101263
  trackedChange: true;
101411
101264
  trackedChangeId: string;
@@ -101424,7 +101277,7 @@ export type DocCommentsListResult = {
101424
101277
  handle: {
101425
101278
  ref: string;
101426
101279
  refStability: "stable" | "ephemeral";
101427
- targetKind: unknown;
101280
+ targetKind: "text" | "node" | "list" | "comment" | "trackedChange" | "table" | "tableCell" | "tableOfContents" | "section" | "sdt" | "field" | string;
101428
101281
  };
101429
101282
  address: {
101430
101283
  kind: "entity";
@@ -101493,7 +101346,7 @@ export type DocCommentsListResult = {
101493
101346
  creatorImage?: string;
101494
101347
  trackedChange?: boolean;
101495
101348
  trackedChangeType?: "insertion" | "deletion" | "replacement" | "formatting" | "move" | "structural" | "insert" | "delete" | "format";
101496
- trackedChangeDisplayType?: unknown;
101349
+ trackedChangeDisplayType?: string | null;
101497
101350
  trackedChangeStory?: (({
101498
101351
  kind: "story";
101499
101352
  storyType: "body";
@@ -101525,10 +101378,10 @@ export type DocCommentsListResult = {
101525
101378
  storyType: "textbox";
101526
101379
  textboxId: string;
101527
101380
  })) | null;
101528
- trackedChangeAnchorKey?: unknown;
101529
- trackedChangeText?: unknown;
101530
- insertedText?: unknown;
101531
- deletedText?: unknown;
101381
+ trackedChangeAnchorKey?: string | null;
101382
+ trackedChangeText?: string | null;
101383
+ insertedText?: string | null;
101384
+ deletedText?: string | null;
101532
101385
  trackedChangeLink?: ({
101533
101386
  trackedChange: true;
101534
101387
  trackedChangeId: string;
@@ -101553,7 +101406,7 @@ export type DocTrackChangesListResult = {
101553
101406
  handle: {
101554
101407
  ref: string;
101555
101408
  refStability: "stable" | "ephemeral";
101556
- targetKind: unknown;
101409
+ targetKind: "text" | "node" | "list" | "comment" | "trackedChange" | "table" | "tableCell" | "tableOfContents" | "section" | "sdt" | "field" | string;
101557
101410
  };
101558
101411
  address: {
101559
101412
  kind: "entity";
@@ -103142,7 +102995,7 @@ export type DocQueryMatchResult = {
103142
102995
  handle: {
103143
102996
  ref: string;
103144
102997
  refStability: "stable" | "ephemeral";
103145
- targetKind: unknown;
102998
+ targetKind: "text" | "node" | "list" | "comment" | "trackedChange" | "table" | "tableCell" | "tableOfContents" | "section" | "sdt" | "field" | string;
103146
102999
  };
103147
103000
  matchKind: "text";
103148
103001
  address: {
@@ -103416,13 +103269,13 @@ export type DocQueryMatchResult = {
103416
103269
  ref: string;
103417
103270
  }>;
103418
103271
  }>;
103419
- groups?: Array<unknown>;
103272
+ groups?: Array<string | null>;
103420
103273
  }) | ({
103421
103274
  id: string;
103422
103275
  handle: {
103423
103276
  ref: string;
103424
103277
  refStability: "stable" | "ephemeral";
103425
- targetKind: unknown;
103278
+ targetKind: "text" | "node" | "list" | "comment" | "trackedChange" | "table" | "tableCell" | "tableOfContents" | "section" | "sdt" | "field" | string;
103426
103279
  };
103427
103280
  matchKind: "node";
103428
103281
  address: ({
@@ -104277,7 +104130,7 @@ export type DocSelectionExtractOoxmlResult = {
104277
104130
  fragment: {
104278
104131
  placement: "inline" | "blocks" | "table";
104279
104132
  xml: string;
104280
- namespaces: Record<string, unknown>;
104133
+ namespaces: Record<string, string>;
104281
104134
  table?: {
104282
104135
  tableId: string;
104283
104136
  gridColumnCount: number;
@@ -104522,7 +104375,7 @@ export type DocPlanExecuteResult = {
104522
104375
  entryIndex: number;
104523
104376
  operationId: string;
104524
104377
  status: "passed" | "allowed-failure" | "expected-failure";
104525
- captureAs: unknown;
104378
+ captureAs: string | null;
104526
104379
  error?: string;
104527
104380
  }>;
104528
104381
  captures: Record<string, unknown>;
@@ -107853,13 +107706,13 @@ export type DocCapabilitiesCheckResult = ({
107853
107706
  }) | ({
107854
107707
  id?: string;
107855
107708
  kind: "lineBreak";
107856
- lineBreak: Record<string, unknown>;
107709
+ lineBreak: Record<string, never>;
107857
107710
  })>;
107858
107711
  };
107859
107712
  }) | ({
107860
107713
  id?: string;
107861
107714
  kind: "lineBreak";
107862
- lineBreak: Record<string, unknown>;
107715
+ lineBreak: Record<string, never>;
107863
107716
  })>;
107864
107717
  styleRef?: string;
107865
107718
  props?: {
@@ -107964,13 +107817,13 @@ export type DocCapabilitiesCheckResult = ({
107964
107817
  }) | ({
107965
107818
  id?: string;
107966
107819
  kind: "lineBreak";
107967
- lineBreak: Record<string, unknown>;
107820
+ lineBreak: Record<string, never>;
107968
107821
  })>;
107969
107822
  };
107970
107823
  }) | ({
107971
107824
  id?: string;
107972
107825
  kind: "lineBreak";
107973
- lineBreak: Record<string, unknown>;
107826
+ lineBreak: Record<string, never>;
107974
107827
  })>;
107975
107828
  styleRef?: string;
107976
107829
  props?: {
@@ -108041,7 +107894,7 @@ export type DocCapabilitiesCheckResult = ({
108041
107894
  }) | ({
108042
107895
  id?: string;
108043
107896
  kind: "horizontalRule";
108044
- horizontalRule: Record<string, unknown>;
107897
+ horizontalRule: Record<string, never>;
108045
107898
  })) | (Array<({
108046
107899
  id?: string;
108047
107900
  kind: "paragraph";
@@ -108125,13 +107978,13 @@ export type DocCapabilitiesCheckResult = ({
108125
107978
  }) | ({
108126
107979
  id?: string;
108127
107980
  kind: "lineBreak";
108128
- lineBreak: Record<string, unknown>;
107981
+ lineBreak: Record<string, never>;
108129
107982
  })>;
108130
107983
  };
108131
107984
  }) | ({
108132
107985
  id?: string;
108133
107986
  kind: "lineBreak";
108134
- lineBreak: Record<string, unknown>;
107987
+ lineBreak: Record<string, never>;
108135
107988
  })>;
108136
107989
  styleRef?: string;
108137
107990
  props?: {
@@ -108236,13 +108089,13 @@ export type DocCapabilitiesCheckResult = ({
108236
108089
  }) | ({
108237
108090
  id?: string;
108238
108091
  kind: "lineBreak";
108239
- lineBreak: Record<string, unknown>;
108092
+ lineBreak: Record<string, never>;
108240
108093
  })>;
108241
108094
  };
108242
108095
  }) | ({
108243
108096
  id?: string;
108244
108097
  kind: "lineBreak";
108245
- lineBreak: Record<string, unknown>;
108098
+ lineBreak: Record<string, never>;
108246
108099
  })>;
108247
108100
  styleRef?: string;
108248
108101
  props?: {
@@ -108313,7 +108166,7 @@ export type DocCapabilitiesCheckResult = ({
108313
108166
  }) | ({
108314
108167
  id?: string;
108315
108168
  kind: "horizontalRule";
108316
- horizontalRule: Record<string, unknown>;
108169
+ horizontalRule: Record<string, never>;
108317
108170
  })>);
108318
108171
  resolution: {
108319
108172
  target: ({
@@ -111849,16 +111702,16 @@ export type DocTablesGetPropertiesResult = {
111849
111702
  cellSpacingPt?: number;
111850
111703
  };
111851
111704
  export type DocTablesGetStylesResult = {
111852
- explicitDefaultStyleId: unknown;
111853
- effectiveDefaultStyleId: unknown;
111705
+ explicitDefaultStyleId: string | null;
111706
+ effectiveDefaultStyleId: string | null;
111854
111707
  effectiveDefaultSource: string;
111855
111708
  styles: Array<{
111856
111709
  id: string;
111857
- name: unknown;
111858
- basedOn: unknown;
111710
+ name: string | null;
111711
+ basedOn: string | null;
111859
111712
  isDefault: boolean;
111860
111713
  isCustom: boolean;
111861
- uiPriority: unknown;
111714
+ uiPriority: number | null;
111862
111715
  hidden: boolean;
111863
111716
  quickFormat: boolean;
111864
111717
  conditionalRegions: Array<string>;
@@ -111886,7 +111739,7 @@ export type DocTocListResult = {
111886
111739
  handle: {
111887
111740
  ref: string;
111888
111741
  refStability: "stable" | "ephemeral";
111889
- targetKind: unknown;
111742
+ targetKind: "text" | "node" | "list" | "comment" | "trackedChange" | "table" | "tableCell" | "tableOfContents" | "section" | "sdt" | "field" | string;
111890
111743
  };
111891
111744
  address: {
111892
111745
  kind: "block";
@@ -111964,7 +111817,7 @@ export type DocTocListEntriesResult = {
111964
111817
  handle: {
111965
111818
  ref: string;
111966
111819
  refStability: "stable" | "ephemeral";
111967
- targetKind: unknown;
111820
+ targetKind: "text" | "node" | "list" | "comment" | "trackedChange" | "table" | "tableCell" | "tableOfContents" | "section" | "sdt" | "field" | string;
111968
111821
  };
111969
111822
  address: {
111970
111823
  kind: "inline";
@@ -113403,7 +113256,7 @@ export type DocHeaderFootersListResult = {
113403
113256
  handle: {
113404
113257
  ref: string;
113405
113258
  refStability: "stable" | "ephemeral";
113406
- targetKind: unknown;
113259
+ targetKind: "text" | "node" | "list" | "comment" | "trackedChange" | "table" | "tableCell" | "tableOfContents" | "section" | "sdt" | "field" | string;
113407
113260
  };
113408
113261
  section: {
113409
113262
  kind: "section";
@@ -113412,7 +113265,7 @@ export type DocHeaderFootersListResult = {
113412
113265
  sectionIndex: number;
113413
113266
  kind: "header" | "footer";
113414
113267
  variant: "default" | "first" | "even";
113415
- refId?: unknown;
113268
+ refId?: string | null;
113416
113269
  isExplicit: boolean;
113417
113270
  }>;
113418
113271
  page: {
@@ -113429,7 +113282,7 @@ export type DocHeaderFootersGetResult = {
113429
113282
  sectionIndex: number;
113430
113283
  kind: "header" | "footer";
113431
113284
  variant: "default" | "first" | "even";
113432
- refId?: unknown;
113285
+ refId?: string | null;
113433
113286
  isExplicit: boolean;
113434
113287
  };
113435
113288
  export type DocHeaderFootersResolveResult = ({
@@ -113479,7 +113332,7 @@ export type DocHeaderFootersPartsListResult = {
113479
113332
  handle: {
113480
113333
  ref: string;
113481
113334
  refStability: "stable" | "ephemeral";
113482
- targetKind: unknown;
113335
+ targetKind: "text" | "node" | "list" | "comment" | "trackedChange" | "table" | "tableCell" | "tableOfContents" | "section" | "sdt" | "field" | string;
113483
113336
  };
113484
113337
  refId: string;
113485
113338
  kind: "header" | "footer";
@@ -123493,8 +123346,8 @@ export type DocDiffCompareResult = {
123493
123346
  partChanges?: Array<{
123494
123347
  partUri: string;
123495
123348
  kind: "added" | "removed" | "modified";
123496
- beforeFingerprint: unknown;
123497
- afterFingerprint: unknown;
123349
+ beforeFingerprint: string | null;
123350
+ afterFingerprint: string | null;
123498
123351
  }>;
123499
123352
  payload: Record<string, unknown>;
123500
123353
  };
@@ -124069,11 +123922,11 @@ export interface DocFindBoundParams {
124069
123922
  pattern?: string;
124070
123923
  mode?: string;
124071
123924
  caseSensitive?: boolean;
124072
- query?: Record<string, unknown> | unknown[];
123925
+ query?: unknown;
124073
123926
  }
124074
123927
  export interface DocGetNodeBoundParams {
124075
- kind?: string;
124076
- nodeType?: string;
123928
+ kind?: "block" | "inline";
123929
+ 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
123930
  nodeId?: string;
124078
123931
  story?: ({
124079
123932
  kind: "story";
@@ -124116,11 +123969,11 @@ export interface DocGetNodeBoundParams {
124116
123969
  offset: number;
124117
123970
  };
124118
123971
  };
124119
- address?: Record<string, unknown> | unknown[];
123972
+ address?: unknown;
124120
123973
  }
124121
123974
  export interface DocGetNodeByIdBoundParams {
124122
123975
  id: string;
124123
- nodeType?: string;
123976
+ nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
124124
123977
  }
124125
123978
  export interface DocGetTextBoundParams {
124126
123979
  in?: ({
@@ -124187,7 +124040,7 @@ export interface DocGetMarkdownBoundParams {
124187
124040
  storyType: "textbox";
124188
124041
  textboxId: string;
124189
124042
  });
124190
- reviewMode?: string;
124043
+ reviewMode?: "final" | "original" | "redline";
124191
124044
  scope?: ({
124192
124045
  kind: "block";
124193
124046
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
@@ -124441,7 +124294,7 @@ export interface DocGetHtmlBoundParams {
124441
124294
  storyType: "textbox";
124442
124295
  textboxId: string;
124443
124296
  });
124444
- reviewMode?: string;
124297
+ reviewMode?: "final" | "original" | "redline";
124445
124298
  scope?: ({
124446
124299
  kind: "block";
124447
124300
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
@@ -124696,7 +124549,7 @@ export interface DocProjectMarkdownBoundParams {
124696
124549
  storyType: "textbox";
124697
124550
  textboxId: string;
124698
124551
  });
124699
- reviewMode?: string;
124552
+ reviewMode?: "final" | "original" | "redline";
124700
124553
  scope?: ({
124701
124554
  kind: "block";
124702
124555
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
@@ -124951,7 +124804,7 @@ export interface DocProjectHtmlBoundParams {
124951
124804
  storyType: "textbox";
124952
124805
  textboxId: string;
124953
124806
  });
124954
- reviewMode?: string;
124807
+ reviewMode?: "final" | "original" | "redline";
124955
124808
  scope?: ({
124956
124809
  kind: "block";
124957
124810
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
@@ -125388,225 +125241,6 @@ export interface DocInsertBoundParams {
125388
125241
  textboxId: string;
125389
125242
  });
125390
125243
  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
125244
  }) | ({
125611
125245
  kind: "block";
125612
125246
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
@@ -125675,9 +125309,9 @@ export interface DocInsertBoundParams {
125675
125309
  textboxId: string;
125676
125310
  });
125677
125311
  value?: string;
125678
- type?: string;
125312
+ type?: "text" | "markdown" | "html";
125679
125313
  ref?: string;
125680
- placement?: string;
125314
+ placement?: "before" | "after" | "insideStart" | "insideEnd";
125681
125315
  content?: Record<string, unknown> | Array<Record<string, unknown>>;
125682
125316
  nestingPolicy?: {
125683
125317
  tables?: "forbid" | "allow";
@@ -125963,7 +125597,7 @@ export interface DocReplaceBoundParams {
125963
125597
  tables?: "forbid" | "allow";
125964
125598
  };
125965
125599
  value?: string;
125966
- type?: string;
125600
+ type?: "html" | "markdown";
125967
125601
  blockId?: string;
125968
125602
  start?: number;
125969
125603
  end?: number;
@@ -126190,7 +125824,7 @@ export interface DocDeleteBoundParams {
126190
125824
  storyType: "textbox";
126191
125825
  textboxId: string;
126192
125826
  });
126193
- behavior?: string;
125827
+ behavior?: "selection" | "exact";
126194
125828
  ref?: string;
126195
125829
  blockId?: string;
126196
125830
  start?: number;
@@ -126509,7 +126143,7 @@ export interface DocBlocksFindTextBoundParams {
126509
126143
  limit?: number;
126510
126144
  }
126511
126145
  export interface DocBlocksListBoundParams {
126512
- nodeIds?: string[];
126146
+ nodeIds?: Array<string>;
126513
126147
  textSearch?: {
126514
126148
  terms: Array<string>;
126515
126149
  match?: "all" | "any";
@@ -126550,7 +126184,7 @@ export interface DocBlocksListBoundParams {
126550
126184
  limit?: number;
126551
126185
  nodeTypes?: Array<"paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt">;
126552
126186
  includeText?: boolean;
126553
- reviewMode?: string;
126187
+ reviewMode?: "final" | "original" | "redline";
126554
126188
  }
126555
126189
  export interface DocBlocksDeleteBoundParams {
126556
126190
  out?: string;
@@ -126874,7 +126508,7 @@ export interface DocBlocksMoveBoundParams {
126874
126508
  textboxId: string;
126875
126509
  });
126876
126510
  };
126877
- placement: string;
126511
+ placement: "before" | "after";
126878
126512
  }
126879
126513
  export interface DocFormatApplyBoundParams {
126880
126514
  out?: string;
@@ -135958,7 +135592,7 @@ export interface DocStylesApplyBoundParams {
135958
135592
  });
135959
135593
  }
135960
135594
  export interface DocStylesGetCatalogBoundParams {
135961
- view?: string;
135595
+ view?: "quickGallery" | "recommended" | "currentDocument" | "all" | "inUse";
135962
135596
  types?: Array<"paragraph" | "character" | "linked" | "table" | "numbering">;
135963
135597
  includeHidden?: boolean;
135964
135598
  includeLatent?: boolean;
@@ -136102,7 +135736,7 @@ export interface DocCreateParagraphBoundParams {
136102
135736
  });
136103
135737
  text?: string;
136104
135738
  styleId?: string;
136105
- input?: Record<string, unknown> | unknown[];
135739
+ input?: unknown;
136106
135740
  }
136107
135741
  export interface DocCreateHeadingBoundParams {
136108
135742
  out?: string;
@@ -136225,7 +135859,7 @@ export interface DocCreateHeadingBoundParams {
136225
135859
  });
136226
135860
  text?: string;
136227
135861
  styleId?: string;
136228
- input?: Record<string, unknown> | unknown[];
135862
+ input?: unknown;
136229
135863
  }
136230
135864
  export interface DocCreateSectionBreakBoundParams {
136231
135865
  out?: string;
@@ -136314,8 +135948,8 @@ export interface DocCreateSectionBreakBoundParams {
136314
135948
  });
136315
135949
  };
136316
135950
  });
136317
- representation?: string;
136318
- breakType?: string;
135951
+ representation?: "asNewParagraph" | "attachToPreviousParagraph";
135952
+ breakType?: "continuous" | "nextPage" | "evenPage" | "oddPage";
136319
135953
  pageMargins?: {
136320
135954
  top?: number;
136321
135955
  right?: number;
@@ -136348,7 +135982,7 @@ export interface DocSectionsSetBreakTypeBoundParams {
136348
135982
  kind: "section";
136349
135983
  sectionId: string;
136350
135984
  };
136351
- breakType: string;
135985
+ breakType: "continuous" | "nextPage" | "evenPage" | "oddPage";
136352
135986
  }
136353
135987
  export interface DocSectionsSetPageMarginsBoundParams {
136354
135988
  out?: string;
@@ -136391,7 +136025,7 @@ export interface DocSectionsSetPageSetupBoundParams {
136391
136025
  };
136392
136026
  width?: number;
136393
136027
  height?: number;
136394
- orientation?: string;
136028
+ orientation?: "portrait" | "landscape";
136395
136029
  paperSize?: string;
136396
136030
  }
136397
136031
  export interface DocSectionsSetColumnsBoundParams {
@@ -136422,7 +136056,7 @@ export interface DocSectionsSetLineNumberingBoundParams {
136422
136056
  countBy?: number;
136423
136057
  start?: number;
136424
136058
  distance?: number;
136425
- restart?: string;
136059
+ restart?: "continuous" | "newPage" | "newSection";
136426
136060
  }
136427
136061
  export interface DocSectionsSetPageNumberingBoundParams {
136428
136062
  out?: string;
@@ -136435,9 +136069,9 @@ export interface DocSectionsSetPageNumberingBoundParams {
136435
136069
  sectionId: string;
136436
136070
  };
136437
136071
  start?: number | unknown;
136438
- format?: string;
136072
+ format?: "decimal" | "lowerLetter" | "upperLetter" | "lowerRoman" | "upperRoman" | "numberInDash" | "hebrew1" | "hebrew2";
136439
136073
  chapterStyle?: number;
136440
- chapterSeparator?: string;
136074
+ chapterSeparator?: "hyphen" | "period" | "colon" | "emDash" | "enDash";
136441
136075
  }
136442
136076
  export interface DocSectionsSetTitlePageBoundParams {
136443
136077
  out?: string;
@@ -136469,7 +136103,7 @@ export interface DocSectionsSetVerticalAlignBoundParams {
136469
136103
  kind: "section";
136470
136104
  sectionId: string;
136471
136105
  };
136472
- value: string;
136106
+ value: "top" | "center" | "bottom" | "both";
136473
136107
  }
136474
136108
  export interface DocSectionsSetSectionDirectionBoundParams {
136475
136109
  out?: string;
@@ -136481,7 +136115,7 @@ export interface DocSectionsSetSectionDirectionBoundParams {
136481
136115
  kind: "section";
136482
136116
  sectionId: string;
136483
136117
  };
136484
- direction: string;
136118
+ direction: "ltr" | "rtl";
136485
136119
  }
136486
136120
  export interface DocSectionsSetHeaderFooterRefBoundParams {
136487
136121
  out?: string;
@@ -136493,8 +136127,8 @@ export interface DocSectionsSetHeaderFooterRefBoundParams {
136493
136127
  kind: "section";
136494
136128
  sectionId: string;
136495
136129
  };
136496
- kind: string;
136497
- variant: string;
136130
+ kind: "header" | "footer";
136131
+ variant: "default" | "first" | "even";
136498
136132
  refId: string;
136499
136133
  }
136500
136134
  export interface DocSectionsClearHeaderFooterRefBoundParams {
@@ -136507,8 +136141,8 @@ export interface DocSectionsClearHeaderFooterRefBoundParams {
136507
136141
  kind: "section";
136508
136142
  sectionId: string;
136509
136143
  };
136510
- kind: string;
136511
- variant: string;
136144
+ kind: "header" | "footer";
136145
+ variant: "default" | "first" | "even";
136512
136146
  }
136513
136147
  export interface DocSectionsSetLinkToPreviousBoundParams {
136514
136148
  out?: string;
@@ -136520,8 +136154,8 @@ export interface DocSectionsSetLinkToPreviousBoundParams {
136520
136154
  kind: "section";
136521
136155
  sectionId: string;
136522
136156
  };
136523
- kind: string;
136524
- variant: string;
136157
+ kind: "header" | "footer";
136158
+ variant: "default" | "first" | "even";
136525
136159
  linked: boolean;
136526
136160
  }
136527
136161
  export interface DocSectionsSetPageBordersBoundParams {
@@ -136534,7 +136168,7 @@ export interface DocSectionsSetPageBordersBoundParams {
136534
136168
  kind: "section";
136535
136169
  sectionId: string;
136536
136170
  };
136537
- borders: unknown | unknown | unknown | unknown | unknown | unknown | unknown;
136171
+ borders: unknown;
136538
136172
  }
136539
136173
  export interface DocSectionsClearPageBordersBoundParams {
136540
136174
  out?: string;
@@ -137115,7 +136749,7 @@ export interface DocFormatParagraphSetAlignmentBoundParams {
137115
136749
  textboxId: string;
137116
136750
  });
137117
136751
  });
137118
- alignment?: string;
136752
+ alignment?: "left" | "center" | "right" | "justify";
137119
136753
  blockId?: string;
137120
136754
  }
137121
136755
  export interface DocFormatParagraphClearAlignmentBoundParams {
@@ -137579,7 +137213,7 @@ export interface DocFormatParagraphSetSpacingBoundParams {
137579
137213
  before?: number;
137580
137214
  after?: number;
137581
137215
  line?: number;
137582
- lineRule?: string;
137216
+ lineRule?: "auto" | "exact" | "atLeast";
137583
137217
  blockId?: string;
137584
137218
  }
137585
137219
  export interface DocFormatParagraphClearSpacingBoundParams {
@@ -138162,8 +137796,8 @@ export interface DocFormatParagraphSetTabStopBoundParams {
138162
137796
  });
138163
137797
  });
138164
137798
  position?: number;
138165
- alignment?: string;
138166
- leader?: string;
137799
+ alignment?: "left" | "center" | "right" | "decimal" | "bar" | "clear";
137800
+ leader?: "none" | "dot" | "hyphen" | "underscore" | "heavy" | "middleDot";
138167
137801
  blockId?: string;
138168
137802
  }
138169
137803
  export interface DocFormatParagraphClearTabStopBoundParams {
@@ -138507,7 +138141,7 @@ export interface DocFormatParagraphSetBorderBoundParams {
138507
138141
  textboxId: string;
138508
138142
  });
138509
138143
  });
138510
- side?: string;
138144
+ side?: "top" | "bottom" | "left" | "right" | "between" | "bar";
138511
138145
  style?: string;
138512
138146
  color?: string;
138513
138147
  size?: number;
@@ -138626,7 +138260,7 @@ export interface DocFormatParagraphClearBorderBoundParams {
138626
138260
  textboxId: string;
138627
138261
  });
138628
138262
  });
138629
- side?: string;
138263
+ side?: "top" | "bottom" | "left" | "right" | "between" | "bar" | "all";
138630
138264
  blockId?: string;
138631
138265
  }
138632
138266
  export interface DocFormatParagraphSetShadingBoundParams {
@@ -139200,8 +138834,8 @@ export interface DocFormatParagraphSetDirectionBoundParams {
139200
138834
  textboxId: string;
139201
138835
  });
139202
138836
  });
139203
- direction?: string;
139204
- alignmentPolicy?: string;
138837
+ direction?: "ltr" | "rtl";
138838
+ alignmentPolicy?: "preserve" | "matchDirection";
139205
138839
  blockId?: string;
139206
138840
  }
139207
138841
  export interface DocFormatParagraphClearDirectionBoundParams {
@@ -139473,10 +139107,10 @@ export interface DocListsListBoundParams {
139473
139107
  };
139474
139108
  limit?: number;
139475
139109
  offset?: number;
139476
- kind?: string;
139110
+ kind?: "ordered" | "bullet";
139477
139111
  level?: number;
139478
139112
  ordinal?: number;
139479
- query?: Record<string, unknown> | unknown[];
139113
+ query?: unknown;
139480
139114
  }
139481
139115
  export interface DocListsGetBoundParams {
139482
139116
  address: {
@@ -139558,9 +139192,9 @@ export interface DocListsInsertBoundParams {
139558
139192
  textboxId: string;
139559
139193
  });
139560
139194
  };
139561
- position?: string;
139195
+ position?: "before" | "after";
139562
139196
  text?: string;
139563
- input?: Record<string, unknown> | unknown[];
139197
+ input?: unknown;
139564
139198
  nodeId?: string;
139565
139199
  }
139566
139200
  export interface DocListsCreateBoundParams {
@@ -139569,7 +139203,7 @@ export interface DocListsCreateBoundParams {
139569
139203
  expectedRevision?: string;
139570
139204
  changeMode?: string;
139571
139205
  dryRun?: boolean;
139572
- mode?: string;
139206
+ mode?: "empty" | "fromParagraphs";
139573
139207
  at?: {
139574
139208
  kind: "block";
139575
139209
  nodeType: "paragraph";
@@ -139591,9 +139225,9 @@ export interface DocListsCreateBoundParams {
139591
139225
  nodeId: string;
139592
139226
  };
139593
139227
  });
139594
- kind?: string;
139228
+ kind?: "ordered" | "bullet";
139595
139229
  level?: number;
139596
- preset?: string;
139230
+ preset?: "decimal" | "decimalParenthesis" | "lowerLetter" | "lowerLetterParenthesis" | "upperLetter" | "upperLetterParenthesis" | "lowerRoman" | "upperRoman" | "disc" | "circle" | "square" | "dash";
139597
139231
  style?: {
139598
139232
  version: 1;
139599
139233
  levels: Array<{
@@ -139619,7 +139253,7 @@ export interface DocListsCreateBoundParams {
139619
139253
  }) | ({
139620
139254
  mode: "continuePrevious";
139621
139255
  });
139622
- input?: Record<string, unknown> | unknown[];
139256
+ input?: unknown;
139623
139257
  }
139624
139258
  export interface DocListsAttachBoundParams {
139625
139259
  out?: string;
@@ -139680,7 +139314,7 @@ export interface DocListsAttachBoundParams {
139680
139314
  });
139681
139315
  };
139682
139316
  level?: number;
139683
- input?: Record<string, unknown> | unknown[];
139317
+ input?: unknown;
139684
139318
  }
139685
139319
  export interface DocListsDetachBoundParams {
139686
139320
  out?: string;
@@ -139724,7 +139358,7 @@ export interface DocListsDetachBoundParams {
139724
139358
  textboxId: string;
139725
139359
  });
139726
139360
  };
139727
- input?: Record<string, unknown> | unknown[];
139361
+ input?: unknown;
139728
139362
  nodeId?: string;
139729
139363
  }
139730
139364
  export interface DocListsDeleteBoundParams {
@@ -139812,7 +139446,7 @@ export interface DocListsIndentBoundParams {
139812
139446
  textboxId: string;
139813
139447
  });
139814
139448
  };
139815
- input?: Record<string, unknown> | unknown[];
139449
+ input?: unknown;
139816
139450
  nodeId?: string;
139817
139451
  }
139818
139452
  export interface DocListsOutdentBoundParams {
@@ -139857,7 +139491,7 @@ export interface DocListsOutdentBoundParams {
139857
139491
  textboxId: string;
139858
139492
  });
139859
139493
  };
139860
- input?: Record<string, unknown> | unknown[];
139494
+ input?: unknown;
139861
139495
  nodeId?: string;
139862
139496
  }
139863
139497
  export interface DocListsJoinBoundParams {
@@ -139902,8 +139536,8 @@ export interface DocListsJoinBoundParams {
139902
139536
  textboxId: string;
139903
139537
  });
139904
139538
  };
139905
- direction?: string;
139906
- input?: Record<string, unknown> | unknown[];
139539
+ direction?: "withPrevious" | "withNext";
139540
+ input?: unknown;
139907
139541
  }
139908
139542
  export interface DocListsCanJoinBoundParams {
139909
139543
  target?: {
@@ -139942,8 +139576,8 @@ export interface DocListsCanJoinBoundParams {
139942
139576
  textboxId: string;
139943
139577
  });
139944
139578
  };
139945
- direction?: string;
139946
- input?: Record<string, unknown> | unknown[];
139579
+ direction?: "withPrevious" | "withNext";
139580
+ input?: unknown;
139947
139581
  }
139948
139582
  export interface DocListsSeparateBoundParams {
139949
139583
  out?: string;
@@ -139988,7 +139622,7 @@ export interface DocListsSeparateBoundParams {
139988
139622
  });
139989
139623
  };
139990
139624
  copyOverrides?: boolean;
139991
- input?: Record<string, unknown> | unknown[];
139625
+ input?: unknown;
139992
139626
  nodeId?: string;
139993
139627
  }
139994
139628
  export interface DocListsMergeBoundParams {
@@ -140033,7 +139667,7 @@ export interface DocListsMergeBoundParams {
140033
139667
  textboxId: string;
140034
139668
  });
140035
139669
  };
140036
- direction: string;
139670
+ direction: "withPrevious" | "withNext";
140037
139671
  }
140038
139672
  export interface DocListsSplitBoundParams {
140039
139673
  out?: string;
@@ -140122,7 +139756,7 @@ export interface DocListsSetLevelBoundParams {
140122
139756
  });
140123
139757
  };
140124
139758
  level?: number;
140125
- input?: Record<string, unknown> | unknown[];
139759
+ input?: unknown;
140126
139760
  nodeId?: string;
140127
139761
  }
140128
139762
  export interface DocListsSetValueBoundParams {
@@ -140168,7 +139802,7 @@ export interface DocListsSetValueBoundParams {
140168
139802
  });
140169
139803
  };
140170
139804
  value?: unknown;
140171
- input?: Record<string, unknown> | unknown[];
139805
+ input?: unknown;
140172
139806
  nodeId?: string;
140173
139807
  }
140174
139808
  export interface DocListsContinuePreviousBoundParams {
@@ -140213,7 +139847,7 @@ export interface DocListsContinuePreviousBoundParams {
140213
139847
  textboxId: string;
140214
139848
  });
140215
139849
  };
140216
- input?: Record<string, unknown> | unknown[];
139850
+ input?: unknown;
140217
139851
  nodeId?: string;
140218
139852
  }
140219
139853
  export interface DocListsCanContinuePreviousBoundParams {
@@ -140253,7 +139887,7 @@ export interface DocListsCanContinuePreviousBoundParams {
140253
139887
  textboxId: string;
140254
139888
  });
140255
139889
  };
140256
- input?: Record<string, unknown> | unknown[];
139890
+ input?: unknown;
140257
139891
  nodeId?: string;
140258
139892
  }
140259
139893
  export interface DocListsSetLevelRestartBoundParams {
@@ -140300,8 +139934,8 @@ export interface DocListsSetLevelRestartBoundParams {
140300
139934
  };
140301
139935
  level?: number;
140302
139936
  restartAfterLevel?: unknown;
140303
- scope?: string;
140304
- input?: Record<string, unknown> | unknown[];
139937
+ scope?: "definition" | "instance";
139938
+ input?: unknown;
140305
139939
  }
140306
139940
  export interface DocListsConvertToTextBoundParams {
140307
139941
  out?: string;
@@ -140346,7 +139980,7 @@ export interface DocListsConvertToTextBoundParams {
140346
139980
  });
140347
139981
  };
140348
139982
  includeMarker?: boolean;
140349
- input?: Record<string, unknown> | unknown[];
139983
+ input?: unknown;
140350
139984
  nodeId?: string;
140351
139985
  }
140352
139986
  export interface DocListsApplyTemplateBoundParams {
@@ -140410,7 +140044,7 @@ export interface DocListsApplyTemplateBoundParams {
140410
140044
  }>;
140411
140045
  };
140412
140046
  levels?: Array<number>;
140413
- input?: Record<string, unknown> | unknown[];
140047
+ input?: unknown;
140414
140048
  }
140415
140049
  export interface DocListsApplyPresetBoundParams {
140416
140050
  out?: string;
@@ -140454,9 +140088,9 @@ export interface DocListsApplyPresetBoundParams {
140454
140088
  textboxId: string;
140455
140089
  });
140456
140090
  };
140457
- preset?: string;
140091
+ preset?: "decimal" | "decimalParenthesis" | "lowerLetter" | "lowerLetterParenthesis" | "upperLetter" | "upperLetterParenthesis" | "lowerRoman" | "upperRoman" | "disc" | "circle" | "square" | "dash";
140458
140092
  levels?: Array<number>;
140459
- input?: Record<string, unknown> | unknown[];
140093
+ input?: unknown;
140460
140094
  }
140461
140095
  export interface DocListsSetTypeBoundParams {
140462
140096
  out?: string;
@@ -140500,8 +140134,8 @@ export interface DocListsSetTypeBoundParams {
140500
140134
  textboxId: string;
140501
140135
  });
140502
140136
  };
140503
- kind: string;
140504
- continuity?: string;
140137
+ kind: "ordered" | "bullet";
140138
+ continuity?: "preserve" | "none";
140505
140139
  }
140506
140140
  export interface DocListsCaptureTemplateBoundParams {
140507
140141
  target?: {
@@ -140541,7 +140175,7 @@ export interface DocListsCaptureTemplateBoundParams {
140541
140175
  });
140542
140176
  };
140543
140177
  levels?: Array<number>;
140544
- input?: Record<string, unknown> | unknown[];
140178
+ input?: unknown;
140545
140179
  }
140546
140180
  export interface DocListsSetLevelNumberingBoundParams {
140547
140181
  out?: string;
@@ -140590,7 +140224,7 @@ export interface DocListsSetLevelNumberingBoundParams {
140590
140224
  lvlText?: string;
140591
140225
  start?: number;
140592
140226
  isLgl?: boolean;
140593
- input?: Record<string, unknown> | unknown[];
140227
+ input?: unknown;
140594
140228
  }
140595
140229
  export interface DocListsSetLevelBulletBoundParams {
140596
140230
  out?: string;
@@ -140636,7 +140270,7 @@ export interface DocListsSetLevelBulletBoundParams {
140636
140270
  };
140637
140271
  level?: number;
140638
140272
  markerText?: string;
140639
- input?: Record<string, unknown> | unknown[];
140273
+ input?: unknown;
140640
140274
  }
140641
140275
  export interface DocListsSetLevelPictureBulletBoundParams {
140642
140276
  out?: string;
@@ -140682,7 +140316,7 @@ export interface DocListsSetLevelPictureBulletBoundParams {
140682
140316
  };
140683
140317
  level?: number;
140684
140318
  pictureBulletId?: number;
140685
- input?: Record<string, unknown> | unknown[];
140319
+ input?: unknown;
140686
140320
  }
140687
140321
  export interface DocListsSetLevelAlignmentBoundParams {
140688
140322
  out?: string;
@@ -140727,8 +140361,8 @@ export interface DocListsSetLevelAlignmentBoundParams {
140727
140361
  });
140728
140362
  };
140729
140363
  level?: number;
140730
- alignment?: string;
140731
- input?: Record<string, unknown> | unknown[];
140364
+ alignment?: "left" | "center" | "right";
140365
+ input?: unknown;
140732
140366
  }
140733
140367
  export interface DocListsSetLevelIndentsBoundParams {
140734
140368
  out?: string;
@@ -140776,7 +140410,7 @@ export interface DocListsSetLevelIndentsBoundParams {
140776
140410
  left?: number;
140777
140411
  hanging?: number;
140778
140412
  firstLine?: number;
140779
- input?: Record<string, unknown> | unknown[];
140413
+ input?: unknown;
140780
140414
  }
140781
140415
  export interface DocListsSetLevelTrailingCharacterBoundParams {
140782
140416
  out?: string;
@@ -140821,8 +140455,8 @@ export interface DocListsSetLevelTrailingCharacterBoundParams {
140821
140455
  });
140822
140456
  };
140823
140457
  level?: number;
140824
- trailingCharacter?: string;
140825
- input?: Record<string, unknown> | unknown[];
140458
+ trailingCharacter?: "tab" | "space" | "nothing";
140459
+ input?: unknown;
140826
140460
  }
140827
140461
  export interface DocListsSetLevelMarkerFontBoundParams {
140828
140462
  out?: string;
@@ -140868,7 +140502,7 @@ export interface DocListsSetLevelMarkerFontBoundParams {
140868
140502
  };
140869
140503
  level?: number;
140870
140504
  fontFamily?: string;
140871
- input?: Record<string, unknown> | unknown[];
140505
+ input?: unknown;
140872
140506
  }
140873
140507
  export interface DocListsClearLevelOverridesBoundParams {
140874
140508
  out?: string;
@@ -140913,7 +140547,7 @@ export interface DocListsClearLevelOverridesBoundParams {
140913
140547
  });
140914
140548
  };
140915
140549
  level?: number;
140916
- input?: Record<string, unknown> | unknown[];
140550
+ input?: unknown;
140917
140551
  }
140918
140552
  export interface DocListsGetStyleBoundParams {
140919
140553
  target: {
@@ -141272,7 +140906,7 @@ export interface DocListsApplyBoundParams {
141272
140906
  nodeType: "listItem";
141273
140907
  nodeId: string;
141274
140908
  });
141275
- seed: string;
140909
+ seed: "bullet" | "ordered";
141276
140910
  reuseNumId?: string;
141277
140911
  ilvl?: number;
141278
140912
  }
@@ -141661,7 +141295,7 @@ export interface DocCommentsCreateBoundParams {
141661
141295
  });
141662
141296
  });
141663
141297
  trackedChangeId?: string;
141664
- side?: string;
141298
+ side?: "inserted" | "deleted" | "source" | "destination";
141665
141299
  story?: ({
141666
141300
  kind: "story";
141667
141301
  storyType: "body";
@@ -142003,7 +141637,7 @@ export interface DocCommentsPatchBoundParams {
142003
141637
  textboxId: string;
142004
141638
  });
142005
141639
  });
142006
- status?: string;
141640
+ status?: "resolved" | "active";
142007
141641
  isInternal?: boolean;
142008
141642
  blockId?: string;
142009
141643
  start?: number;
@@ -142027,7 +141661,7 @@ export interface DocCommentsListBoundParams {
142027
141661
  export interface DocTrackChangesListBoundParams {
142028
141662
  limit?: number;
142029
141663
  offset?: number;
142030
- type?: string;
141664
+ type?: "insertion" | "deletion" | "replacement" | "formatting" | "move" | "structural" | "insert" | "delete" | "format";
142031
141665
  in?: (({
142032
141666
  kind: "story";
142033
141667
  storyType: "body";
@@ -142098,7 +141732,7 @@ export interface DocTrackChangesDecideBoundParams {
142098
141732
  out?: string;
142099
141733
  force?: boolean;
142100
141734
  changeMode?: string;
142101
- decision: string;
141735
+ decision: "accept" | "reject";
142102
141736
  expectedRevision?: string;
142103
141737
  target: ({
142104
141738
  kind: "id";
@@ -142518,8 +142152,8 @@ export interface DocQueryMatchBoundParams {
142518
142152
  textboxId: string;
142519
142153
  });
142520
142154
  };
142521
- require?: string;
142522
- mode?: string;
142155
+ require?: "any" | "first" | "exactlyOne" | "all";
142156
+ mode?: "strict" | "candidates";
142523
142157
  includeNodes?: boolean;
142524
142158
  limit?: number;
142525
142159
  offset?: number;
@@ -142995,7 +142629,7 @@ export interface DocMutationsPreviewBoundParams {
142995
142629
  });
142996
142630
  expectedRevision?: string;
142997
142631
  atomic: boolean;
142998
- changeMode: string;
142632
+ changeMode: "direct" | "tracked";
142999
142633
  steps: Array<({
143000
142634
  id: string;
143001
142635
  op: "text.rewrite";
@@ -146309,7 +145943,7 @@ export interface DocPlanExecuteBoundParams {
146309
145943
  export interface DocCapabilitiesGetBoundParams {
146310
145944
  }
146311
145945
  export interface DocCapabilitiesCheckBoundParams {
146312
- operation: string;
145946
+ operation: "insert" | "replace" | "projectHtml" | "projectMarkdown";
146313
145947
  input?: ({
146314
145948
  in?: ({
146315
145949
  kind: "story";
@@ -147191,7 +146825,7 @@ export interface DocCapabilitiesCheckBoundParams {
147191
146825
  };
147192
146826
  }
147193
146827
  export interface DocCapabilitiesResolveBoundParams {
147194
- operationId: string;
146828
+ 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
146829
  input?: unknown;
147196
146830
  options?: unknown;
147197
146831
  }
@@ -147532,7 +147166,7 @@ export interface DocTablesConvertToTextBoundParams {
147532
147166
  nodeId: string;
147533
147167
  };
147534
147168
  nodeId?: string;
147535
- delimiter?: string;
147169
+ delimiter?: "tab" | "comma" | "paragraph";
147536
147170
  }
147537
147171
  export interface DocTablesSetLayoutBoundParams {
147538
147172
  out?: string;
@@ -147547,11 +147181,11 @@ export interface DocTablesSetLayoutBoundParams {
147547
147181
  };
147548
147182
  nodeId?: string;
147549
147183
  preferredWidth?: number;
147550
- preferredWidthType?: string;
147551
- alignment?: string;
147184
+ preferredWidthType?: "dxa" | "auto" | "pct";
147185
+ alignment?: "left" | "center" | "right";
147552
147186
  leftIndentPt?: number;
147553
- autoFitMode?: string;
147554
- tableDirection?: string;
147187
+ autoFitMode?: "fixedWidth" | "fitContents" | "fitWindow";
147188
+ tableDirection?: "ltr" | "rtl";
147555
147189
  }
147556
147190
  export interface DocTablesInsertRowBoundParams {
147557
147191
  out?: string;
@@ -147568,7 +147202,7 @@ export interface DocTablesInsertRowBoundParams {
147568
147202
  nodeType: "table";
147569
147203
  nodeId: string;
147570
147204
  });
147571
- position?: string;
147205
+ position?: "above" | "below";
147572
147206
  count?: number;
147573
147207
  rowIndex?: number;
147574
147208
  nodeId?: string;
@@ -147656,7 +147290,7 @@ export interface DocTablesSetRowHeightBoundParams {
147656
147290
  nodeId: string;
147657
147291
  });
147658
147292
  heightPt: number;
147659
- rule?: string;
147293
+ rule?: "atLeast" | "exact" | "auto";
147660
147294
  rowIndex?: number;
147661
147295
  nodeId?: string;
147662
147296
  }
@@ -147716,7 +147350,7 @@ export interface DocTablesInsertColumnBoundParams {
147716
147350
  };
147717
147351
  nodeId?: string;
147718
147352
  columnIndex?: number;
147719
- position: string;
147353
+ position: "left" | "right" | "first" | "last";
147720
147354
  count?: number;
147721
147355
  }
147722
147356
  export interface DocTablesDeleteColumnBoundParams {
@@ -147802,7 +147436,7 @@ export interface DocTablesInsertCellBoundParams {
147802
147436
  nodeId: string;
147803
147437
  };
147804
147438
  nodeId?: string;
147805
- mode: string;
147439
+ mode: "shiftRight" | "shiftDown";
147806
147440
  }
147807
147441
  export interface DocTablesDeleteCellBoundParams {
147808
147442
  out?: string;
@@ -147816,7 +147450,7 @@ export interface DocTablesDeleteCellBoundParams {
147816
147450
  nodeId: string;
147817
147451
  };
147818
147452
  nodeId?: string;
147819
- mode: string;
147453
+ mode: "shiftLeft" | "shiftUp";
147820
147454
  }
147821
147455
  export interface DocTablesMergeCellsBoundParams {
147822
147456
  out?: string;
@@ -147886,8 +147520,8 @@ export interface DocTablesSetCellPropertiesBoundParams {
147886
147520
  };
147887
147521
  nodeId?: string;
147888
147522
  preferredWidthPt?: number;
147889
- preferredWidthType?: string;
147890
- verticalAlign?: string;
147523
+ preferredWidthType?: "auto" | "dxa" | "pct";
147524
+ verticalAlign?: "top" | "center" | "bottom";
147891
147525
  wrapText?: boolean;
147892
147526
  fitText?: boolean;
147893
147527
  }
@@ -147983,7 +147617,7 @@ export interface DocTablesSetStyleOptionBoundParams {
147983
147617
  nodeId: string;
147984
147618
  };
147985
147619
  nodeId?: string;
147986
- flag: string;
147620
+ flag: "headerRow" | "lastRow" | "totalRow" | "firstColumn" | "lastColumn" | "bandedRows" | "bandedColumns";
147987
147621
  enabled: boolean;
147988
147622
  }
147989
147623
  export interface DocTablesSetBorderBoundParams {
@@ -147998,7 +147632,7 @@ export interface DocTablesSetBorderBoundParams {
147998
147632
  nodeId: string;
147999
147633
  };
148000
147634
  nodeId?: string;
148001
- edge: string;
147635
+ edge: "top" | "bottom" | "left" | "right" | "insideH" | "insideV" | "diagonalDown" | "diagonalUp";
148002
147636
  lineStyle: string;
148003
147637
  lineWeightPt: number;
148004
147638
  color: string;
@@ -148015,7 +147649,7 @@ export interface DocTablesClearBorderBoundParams {
148015
147649
  nodeId: string;
148016
147650
  };
148017
147651
  nodeId?: string;
148018
- edge: string;
147652
+ edge: "top" | "bottom" | "left" | "right" | "insideH" | "insideV" | "diagonalDown" | "diagonalUp";
148019
147653
  }
148020
147654
  export interface DocTablesApplyBorderPresetBoundParams {
148021
147655
  out?: string;
@@ -148029,7 +147663,7 @@ export interface DocTablesApplyBorderPresetBoundParams {
148029
147663
  nodeId: string;
148030
147664
  };
148031
147665
  nodeId?: string;
148032
- preset: string;
147666
+ preset: "box" | "all" | "none" | "grid" | "custom";
148033
147667
  }
148034
147668
  export interface DocTablesSetShadingBoundParams {
148035
147669
  out?: string;
@@ -148216,8 +147850,8 @@ export interface DocTablesSetBordersBoundParams {
148216
147850
  });
148217
147851
  };
148218
147852
  nodeId?: string;
148219
- mode: string;
148220
- applyTo?: string;
147853
+ mode: "applyTo" | "edges";
147854
+ applyTo?: "all" | "outside" | "inside" | "top" | "bottom" | "left" | "right" | "insideH" | "insideV";
148221
147855
  border?: ({
148222
147856
  lineStyle: string;
148223
147857
  lineWeightPt: number;
@@ -148319,7 +147953,7 @@ export interface DocTablesApplyPresetBoundParams {
148319
147953
  nodeId: string;
148320
147954
  };
148321
147955
  nodeId?: string;
148322
- preset: string;
147956
+ preset: "grid" | "minimal" | "striped" | "accent";
148323
147957
  accentColor?: string;
148324
147958
  }
148325
147959
  export interface DocTablesGetBoundParams {
@@ -148532,7 +148166,7 @@ export interface DocTocUpdateBoundParams {
148532
148166
  nodeType: "tableOfContents";
148533
148167
  nodeId: string;
148534
148168
  };
148535
- mode?: string;
148169
+ mode?: "all" | "pageNumbers";
148536
148170
  }
148537
148171
  export interface DocTocRemoveBoundParams {
148538
148172
  out?: string;
@@ -149009,7 +148643,7 @@ export interface DocImagesSetWrapTypeBoundParams {
149009
148643
  changeMode?: string;
149010
148644
  dryRun?: boolean;
149011
148645
  imageId: string;
149012
- type: string;
148646
+ type: "None" | "Square" | "Through" | "Tight" | "TopAndBottom" | "Inline";
149013
148647
  }
149014
148648
  export interface DocImagesSetWrapSideBoundParams {
149015
148649
  out?: string;
@@ -149018,7 +148652,7 @@ export interface DocImagesSetWrapSideBoundParams {
149018
148652
  changeMode?: string;
149019
148653
  dryRun?: boolean;
149020
148654
  imageId: string;
149021
- side: string;
148655
+ side: "bothSides" | "left" | "right" | "largest";
149022
148656
  }
149023
148657
  export interface DocImagesSetWrapDistancesBoundParams {
149024
148658
  out?: string;
@@ -149431,10 +149065,10 @@ export interface DocHyperlinksRemoveBoundParams {
149431
149065
  };
149432
149066
  };
149433
149067
  };
149434
- mode?: string;
149068
+ mode?: "unwrap" | "deleteText";
149435
149069
  }
149436
149070
  export interface DocHeaderFootersListBoundParams {
149437
- kind?: string;
149071
+ kind?: "header" | "footer";
149438
149072
  section?: {
149439
149073
  kind: "section";
149440
149074
  sectionId: string;
@@ -149515,7 +149149,7 @@ export interface DocHeaderFootersRefsSetLinkedToPreviousBoundParams {
149515
149149
  linked: boolean;
149516
149150
  }
149517
149151
  export interface DocHeaderFootersPartsListBoundParams {
149518
- kind?: string;
149152
+ kind?: "header" | "footer";
149519
149153
  limit?: number;
149520
149154
  offset?: number;
149521
149155
  }
@@ -149525,7 +149159,7 @@ export interface DocHeaderFootersPartsCreateBoundParams {
149525
149159
  expectedRevision?: string;
149526
149160
  changeMode?: string;
149527
149161
  dryRun?: boolean;
149528
- kind: string;
149162
+ kind: "header" | "footer";
149529
149163
  sourceRefId?: string;
149530
149164
  }
149531
149165
  export interface DocHeaderFootersPartsDeleteBoundParams {
@@ -149555,10 +149189,10 @@ export interface DocHeaderFootersPageNumbersInsertBoundParams {
149555
149189
  kind: "section";
149556
149190
  sectionId: string;
149557
149191
  };
149558
- kind: string;
149559
- alignment?: string;
149192
+ kind: "header" | "footer";
149193
+ alignment?: "left" | "center" | "right";
149560
149194
  showOnFirstPage?: boolean;
149561
- format?: string;
149195
+ format?: "decimal" | "lowerLetter" | "upperLetter" | "lowerRoman" | "upperRoman" | "numberInDash" | "hebrew1" | "hebrew2";
149562
149196
  start?: number | unknown;
149563
149197
  }
149564
149198
  export interface DocHeaderFootersPageNumbersSetBoundParams {
@@ -149571,10 +149205,10 @@ export interface DocHeaderFootersPageNumbersSetBoundParams {
149571
149205
  kind: "section";
149572
149206
  sectionId: string;
149573
149207
  };
149574
- kind: string;
149575
- alignment?: string;
149208
+ kind: "header" | "footer";
149209
+ alignment?: "left" | "center" | "right";
149576
149210
  showOnFirstPage?: boolean;
149577
- format?: string;
149211
+ format?: "decimal" | "lowerLetter" | "upperLetter" | "lowerRoman" | "upperRoman" | "numberInDash" | "hebrew1" | "hebrew2";
149578
149212
  start?: number | unknown;
149579
149213
  }
149580
149214
  export interface DocHeaderFootersPageNumbersRemoveBoundParams {
@@ -149587,7 +149221,7 @@ export interface DocHeaderFootersPageNumbersRemoveBoundParams {
149587
149221
  kind: "section";
149588
149222
  sectionId: string;
149589
149223
  };
149590
- kind?: string;
149224
+ kind?: "header" | "footer";
149591
149225
  }
149592
149226
  export interface DocWatermarksApplyBoundParams {
149593
149227
  out?: string;
@@ -149609,7 +149243,7 @@ export interface DocWatermarksApplyBoundParams {
149609
149243
  variant: "default" | "first" | "even";
149610
149244
  }>;
149611
149245
  });
149612
- action: string;
149246
+ action: "insert" | "replace" | "remove";
149613
149247
  watermark?: ({
149614
149248
  kind: "text";
149615
149249
  text: string;
@@ -149691,7 +149325,7 @@ export interface DocWatermarksApplyBoundParams {
149691
149325
  watermarkId: string;
149692
149326
  };
149693
149327
  });
149694
- watermarkIds?: string[];
149328
+ watermarkIds?: Array<string>;
149695
149329
  }
149696
149330
  export interface DocWatermarksListBoundParams {
149697
149331
  target?: ({
@@ -149858,7 +149492,7 @@ export interface DocCreateContentControlBoundParams {
149858
149492
  expectedRevision?: string;
149859
149493
  changeMode?: string;
149860
149494
  dryRun?: boolean;
149861
- kind: string;
149495
+ kind: "block" | "inline";
149862
149496
  controlType?: string;
149863
149497
  target?: {
149864
149498
  kind: "block" | "inline";
@@ -150083,7 +149717,7 @@ export interface DocCreateContentControlBoundParams {
150083
149717
  };
150084
149718
  tag?: string;
150085
149719
  alias?: string;
150086
- lockMode?: string;
149720
+ lockMode?: "unlocked" | "sdtLocked" | "contentLocked" | "sdtContentLocked";
150087
149721
  content?: string;
150088
149722
  html?: string;
150089
149723
  json?: Record<string, unknown> | Array<Record<string, unknown>>;
@@ -150232,7 +149866,7 @@ export interface DocContentControlsWrapBoundParams {
150232
149866
  expectedRevision?: string;
150233
149867
  changeMode?: string;
150234
149868
  dryRun?: boolean;
150235
- kind: string;
149869
+ kind: "block" | "inline";
150236
149870
  target: {
150237
149871
  kind: "block" | "inline";
150238
149872
  nodeType: "sdt";
@@ -150271,7 +149905,7 @@ export interface DocContentControlsWrapBoundParams {
150271
149905
  };
150272
149906
  tag?: string;
150273
149907
  alias?: string;
150274
- lockMode?: string;
149908
+ lockMode?: "unlocked" | "sdtLocked" | "contentLocked" | "sdtContentLocked";
150275
149909
  }
150276
149910
  export interface DocContentControlsUnwrapBoundParams {
150277
149911
  out?: string;
@@ -150681,7 +150315,7 @@ export interface DocContentControlsPatchBoundParams {
150681
150315
  };
150682
150316
  alias?: unknown;
150683
150317
  tag?: unknown;
150684
- appearance?: string;
150318
+ appearance?: "boundingBox" | "tags" | "hidden";
150685
150319
  color?: string;
150686
150320
  placeholder?: string | unknown;
150687
150321
  showingPlaceholder?: boolean;
@@ -150730,7 +150364,7 @@ export interface DocContentControlsSetLockModeBoundParams {
150730
150364
  textboxId: string;
150731
150365
  });
150732
150366
  };
150733
- lockMode: string;
150367
+ lockMode: "unlocked" | "sdtLocked" | "contentLocked" | "sdtContentLocked";
150734
150368
  addToHistory?: boolean;
150735
150369
  }
150736
150370
  export interface DocContentControlsSetTypeBoundParams {
@@ -150858,7 +150492,7 @@ export interface DocContentControlsReplaceContentBoundParams {
150858
150492
  });
150859
150493
  };
150860
150494
  content: string;
150861
- format?: string;
150495
+ format?: "text" | "html" | "ooxml";
150862
150496
  }
150863
150497
  export interface DocContentControlsClearContentBoundParams {
150864
150498
  out?: string;
@@ -150946,7 +150580,7 @@ export interface DocContentControlsAppendContentBoundParams {
150946
150580
  });
150947
150581
  };
150948
150582
  content: string;
150949
- format?: string;
150583
+ format?: "text" | "html";
150950
150584
  }
150951
150585
  export interface DocContentControlsPrependContentBoundParams {
150952
150586
  out?: string;
@@ -150991,7 +150625,7 @@ export interface DocContentControlsPrependContentBoundParams {
150991
150625
  });
150992
150626
  };
150993
150627
  content: string;
150994
- format?: string;
150628
+ format?: "text" | "html";
150995
150629
  }
150996
150630
  export interface DocContentControlsInsertBeforeBoundParams {
150997
150631
  out?: string;
@@ -151036,7 +150670,7 @@ export interface DocContentControlsInsertBeforeBoundParams {
151036
150670
  });
151037
150671
  };
151038
150672
  content: string;
151039
- format?: string;
150673
+ format?: "text" | "html";
151040
150674
  }
151041
150675
  export interface DocContentControlsInsertAfterBoundParams {
151042
150676
  out?: string;
@@ -151081,7 +150715,7 @@ export interface DocContentControlsInsertAfterBoundParams {
151081
150715
  });
151082
150716
  };
151083
150717
  content: string;
151084
- format?: string;
150718
+ format?: "text" | "html";
151085
150719
  }
151086
150720
  export interface DocContentControlsGetBindingBoundParams {
151087
150721
  target: {
@@ -152665,7 +152299,7 @@ export interface DocBookmarksRemoveBoundParams {
152665
152299
  };
152666
152300
  }
152667
152301
  export interface DocFootnotesListBoundParams {
152668
- type?: string;
152302
+ type?: "footnote" | "endnote";
152669
152303
  limit?: number;
152670
152304
  offset?: number;
152671
152305
  }
@@ -152724,7 +152358,7 @@ export interface DocFootnotesInsertBoundParams {
152724
152358
  });
152725
152359
  coordinateSpace?: "visible" | "tracked";
152726
152360
  };
152727
- type: string;
152361
+ type: "footnote" | "endnote";
152728
152362
  content?: string;
152729
152363
  body?: Record<string, unknown> | Array<Record<string, unknown>>;
152730
152364
  }
@@ -152763,7 +152397,7 @@ export interface DocFootnotesConfigureBoundParams {
152763
152397
  expectedRevision?: string;
152764
152398
  changeMode?: string;
152765
152399
  dryRun?: boolean;
152766
- type: string;
152400
+ type: "footnote" | "endnote";
152767
152401
  scope: ({
152768
152402
  kind: "document";
152769
152403
  }) | ({
@@ -152796,7 +152430,7 @@ export interface DocClipboardInsertBoundParams {
152796
152430
  plan?: Record<string, unknown>;
152797
152431
  fragment?: Record<string, unknown>;
152798
152432
  target?: Record<string, unknown>;
152799
- fallback?: string;
152433
+ fallback?: "reject-rich" | "plain-with-warning";
152800
152434
  }
152801
152435
  export interface DocClipboardSerializeSelectionBoundParams {
152802
152436
  target?: Record<string, unknown>;
@@ -152890,7 +152524,7 @@ export interface DocCrossRefsInsertBoundParams {
152890
152524
  styleName: string;
152891
152525
  direction?: "before" | "after";
152892
152526
  });
152893
- display: string;
152527
+ display: "content" | "pageNumber" | "noteNumber" | "labelAndNumber" | "aboveBelow" | "numberOnly" | "numberFullContext" | "styledContent" | "styledPageNumber";
152894
152528
  }
152895
152529
  export interface DocCrossRefsRebuildBoundParams {
152896
152530
  out?: string;
@@ -153285,7 +152919,7 @@ export interface DocCaptionsInsertBoundParams {
153285
152919
  textboxId: string;
153286
152920
  });
153287
152921
  };
153288
- position: string;
152922
+ position: "above" | "below";
153289
152923
  label: string;
153290
152924
  text?: string;
153291
152925
  }
@@ -153323,7 +152957,7 @@ export interface DocCaptionsConfigureBoundParams {
153323
152957
  changeMode?: string;
153324
152958
  dryRun?: boolean;
153325
152959
  label: string;
153326
- format?: string;
152960
+ format?: "decimal" | "lowerRoman" | "upperRoman" | "lowerLetter" | "upperLetter";
153327
152961
  includeChapter?: boolean;
153328
152962
  chapterStyle?: string;
153329
152963
  }
@@ -153392,7 +153026,7 @@ export interface DocFieldsInsertBoundParams {
153392
153026
  };
153393
153027
  instruction: string;
153394
153028
  cachedResultText?: string;
153395
- updatePolicy?: string;
153029
+ updatePolicy?: "rebuild" | "preserveCached";
153396
153030
  }
153397
153031
  export interface DocFieldsRebuildBoundParams {
153398
153032
  out?: string;
@@ -153527,7 +153161,7 @@ export interface DocCitationsInsertBoundParams {
153527
153161
  });
153528
153162
  coordinateSpace?: "visible" | "tracked";
153529
153163
  };
153530
- sourceIds: string[];
153164
+ sourceIds: Array<string>;
153531
153165
  }
153532
153166
  export interface DocCitationsUpdateBoundParams {
153533
153167
  out?: string;
@@ -153660,7 +153294,7 @@ export interface DocCitationsSourcesInsertBoundParams {
153660
153294
  expectedRevision?: string;
153661
153295
  changeMode?: string;
153662
153296
  dryRun?: boolean;
153663
- type: string;
153297
+ type: "book" | "journalArticle" | "conferenceProceedings" | "report" | "website" | "patent" | "case" | "statute" | "thesis" | "film" | "interview" | "misc";
153664
153298
  fields: {
153665
153299
  title?: string;
153666
153300
  authors?: Array<{
@@ -154174,7 +153808,7 @@ export interface DocDiffCompareBoundParams {
154174
153808
  };
154175
153809
  payload: Record<string, unknown>;
154176
153810
  };
154177
- styleChangeMode?: string;
153811
+ styleChangeMode?: "direct";
154178
153812
  }
154179
153813
  export interface DocDiffApplyBoundParams {
154180
153814
  out?: string;
@@ -154241,10 +153875,10 @@ export interface DocDiffApplyBoundParams {
154241
153875
  }>;
154242
153876
  payload: Record<string, unknown>;
154243
153877
  };
154244
- styleChangeMode?: string;
153878
+ styleChangeMode?: "direct";
154245
153879
  }
154246
153880
  export interface DocExportToDocxBoundParams {
154247
- mode?: string;
153881
+ mode?: "review-preserving" | "final" | "original";
154248
153882
  }
154249
153883
  export interface DocProtectionGetBoundParams {
154250
153884
  }
@@ -154254,7 +153888,7 @@ export interface DocProtectionSetEditingRestrictionBoundParams {
154254
153888
  expectedRevision?: string;
154255
153889
  changeMode?: string;
154256
153890
  dryRun?: boolean;
154257
- mode: string;
153891
+ mode: "readOnly";
154258
153892
  formattingRestricted?: boolean;
154259
153893
  }
154260
153894
  export interface DocProtectionClearEditingRestrictionBoundParams {
@@ -154508,7 +154142,7 @@ export interface DocCustomXmlPartsCreateBoundParams {
154508
154142
  changeMode?: string;
154509
154143
  dryRun?: boolean;
154510
154144
  content: string;
154511
- schemaRefs?: string[];
154145
+ schemaRefs?: Array<string>;
154512
154146
  }
154513
154147
  export interface DocCustomXmlPartsPatchBoundParams {
154514
154148
  out?: string;
@@ -154522,7 +154156,7 @@ export interface DocCustomXmlPartsPatchBoundParams {
154522
154156
  partName: string;
154523
154157
  });
154524
154158
  content?: string;
154525
- schemaRefs?: string[];
154159
+ schemaRefs?: Array<string>;
154526
154160
  }
154527
154161
  export interface DocCustomXmlPartsRemoveBoundParams {
154528
154162
  out?: string;
@@ -154947,7 +154581,7 @@ export interface DocMetadataResolveBoundParams {
154947
154581
  export interface DocSaveBoundParams {
154948
154582
  out?: string;
154949
154583
  force?: boolean;
154950
- mode?: string;
154584
+ mode?: "review-preserving" | "final" | "original";
154951
154585
  inPlace?: boolean;
154952
154586
  }
154953
154587
  export interface DocCloseBoundParams {
@@ -154957,7 +154591,7 @@ export interface DocInsertTabBoundParams {
154957
154591
  out?: string;
154958
154592
  force?: boolean;
154959
154593
  expectedRevision?: string;
154960
- target?: Record<string, unknown> | unknown[];
154594
+ target?: unknown;
154961
154595
  ref?: string;
154962
154596
  blockId?: string;
154963
154597
  start?: number;
@@ -154968,7 +154602,7 @@ export interface DocInsertLineBreakBoundParams {
154968
154602
  out?: string;
154969
154603
  force?: boolean;
154970
154604
  expectedRevision?: string;
154971
- target?: Record<string, unknown> | unknown[];
154605
+ target?: unknown;
154972
154606
  ref?: string;
154973
154607
  blockId?: string;
154974
154608
  start?: number;
@@ -154985,7 +154619,7 @@ export interface DocPresetGetCatalogBoundParams {
154985
154619
  preset?: string;
154986
154620
  }
154987
154621
  export interface DocPresetGetToolsBoundParams {
154988
- provider: string;
154622
+ provider: "openai" | "anthropic" | "vercel" | "generic";
154989
154623
  preset?: string;
154990
154624
  cache?: boolean;
154991
154625
  excludeActions?: string;
@@ -155004,7 +154638,7 @@ export interface DocPresetGetMcpPromptBoundParams {
155004
154638
  export interface DocPresetDispatchBoundParams {
155005
154639
  expectedRevision?: number;
155006
154640
  toolName: string;
155007
- args?: Record<string, unknown> | unknown[];
154641
+ args?: unknown;
155008
154642
  excludeActions?: string;
155009
154643
  enforceChangeMode?: string;
155010
154644
  allowDirectActions?: string;