@superdoc/sdk 2.16.0-next.5 → 2.16.0-next.6

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.
@@ -19562,6 +19562,238 @@ export interface DocSelectionCurrentParams {
19562
19562
  sessionId?: string;
19563
19563
  includeText?: boolean;
19564
19564
  }
19565
+ export interface DocSelectionExtractOoxmlParams {
19566
+ doc?: string;
19567
+ sessionId?: string;
19568
+ at?: ({
19569
+ kind: "selection";
19570
+ start: ({
19571
+ kind: "text";
19572
+ blockId: string;
19573
+ offset: number;
19574
+ story?: ({
19575
+ kind: "story";
19576
+ storyType: "body";
19577
+ }) | ({
19578
+ kind: "story";
19579
+ storyType: "headerFooterSlot";
19580
+ section: {
19581
+ kind: "section";
19582
+ sectionId: string;
19583
+ };
19584
+ headerFooterKind: "header" | "footer";
19585
+ variant: "default" | "first" | "even";
19586
+ resolution?: "effective" | "explicit";
19587
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
19588
+ }) | ({
19589
+ kind: "story";
19590
+ storyType: "headerFooterPart";
19591
+ refId: string;
19592
+ }) | ({
19593
+ kind: "story";
19594
+ storyType: "footnote";
19595
+ noteId: string;
19596
+ }) | ({
19597
+ kind: "story";
19598
+ storyType: "endnote";
19599
+ noteId: string;
19600
+ }) | ({
19601
+ kind: "story";
19602
+ storyType: "textbox";
19603
+ textboxId: string;
19604
+ });
19605
+ }) | ({
19606
+ kind: "nodeEdge";
19607
+ node: {
19608
+ kind: "block";
19609
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
19610
+ nodeId: string;
19611
+ story?: ({
19612
+ kind: "story";
19613
+ storyType: "body";
19614
+ }) | ({
19615
+ kind: "story";
19616
+ storyType: "headerFooterSlot";
19617
+ section: {
19618
+ kind: "section";
19619
+ sectionId: string;
19620
+ };
19621
+ headerFooterKind: "header" | "footer";
19622
+ variant: "default" | "first" | "even";
19623
+ resolution?: "effective" | "explicit";
19624
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
19625
+ }) | ({
19626
+ kind: "story";
19627
+ storyType: "headerFooterPart";
19628
+ refId: string;
19629
+ }) | ({
19630
+ kind: "story";
19631
+ storyType: "footnote";
19632
+ noteId: string;
19633
+ }) | ({
19634
+ kind: "story";
19635
+ storyType: "endnote";
19636
+ noteId: string;
19637
+ }) | ({
19638
+ kind: "story";
19639
+ storyType: "textbox";
19640
+ textboxId: string;
19641
+ });
19642
+ };
19643
+ edge: "before" | "after";
19644
+ });
19645
+ end: ({
19646
+ kind: "text";
19647
+ blockId: string;
19648
+ offset: number;
19649
+ story?: ({
19650
+ kind: "story";
19651
+ storyType: "body";
19652
+ }) | ({
19653
+ kind: "story";
19654
+ storyType: "headerFooterSlot";
19655
+ section: {
19656
+ kind: "section";
19657
+ sectionId: string;
19658
+ };
19659
+ headerFooterKind: "header" | "footer";
19660
+ variant: "default" | "first" | "even";
19661
+ resolution?: "effective" | "explicit";
19662
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
19663
+ }) | ({
19664
+ kind: "story";
19665
+ storyType: "headerFooterPart";
19666
+ refId: string;
19667
+ }) | ({
19668
+ kind: "story";
19669
+ storyType: "footnote";
19670
+ noteId: string;
19671
+ }) | ({
19672
+ kind: "story";
19673
+ storyType: "endnote";
19674
+ noteId: string;
19675
+ }) | ({
19676
+ kind: "story";
19677
+ storyType: "textbox";
19678
+ textboxId: string;
19679
+ });
19680
+ }) | ({
19681
+ kind: "nodeEdge";
19682
+ node: {
19683
+ kind: "block";
19684
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
19685
+ nodeId: string;
19686
+ story?: ({
19687
+ kind: "story";
19688
+ storyType: "body";
19689
+ }) | ({
19690
+ kind: "story";
19691
+ storyType: "headerFooterSlot";
19692
+ section: {
19693
+ kind: "section";
19694
+ sectionId: string;
19695
+ };
19696
+ headerFooterKind: "header" | "footer";
19697
+ variant: "default" | "first" | "even";
19698
+ resolution?: "effective" | "explicit";
19699
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
19700
+ }) | ({
19701
+ kind: "story";
19702
+ storyType: "headerFooterPart";
19703
+ refId: string;
19704
+ }) | ({
19705
+ kind: "story";
19706
+ storyType: "footnote";
19707
+ noteId: string;
19708
+ }) | ({
19709
+ kind: "story";
19710
+ storyType: "endnote";
19711
+ noteId: string;
19712
+ }) | ({
19713
+ kind: "story";
19714
+ storyType: "textbox";
19715
+ textboxId: string;
19716
+ });
19717
+ };
19718
+ edge: "before" | "after";
19719
+ });
19720
+ story?: ({
19721
+ kind: "story";
19722
+ storyType: "body";
19723
+ }) | ({
19724
+ kind: "story";
19725
+ storyType: "headerFooterSlot";
19726
+ section: {
19727
+ kind: "section";
19728
+ sectionId: string;
19729
+ };
19730
+ headerFooterKind: "header" | "footer";
19731
+ variant: "default" | "first" | "even";
19732
+ resolution?: "effective" | "explicit";
19733
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
19734
+ }) | ({
19735
+ kind: "story";
19736
+ storyType: "headerFooterPart";
19737
+ refId: string;
19738
+ }) | ({
19739
+ kind: "story";
19740
+ storyType: "footnote";
19741
+ noteId: string;
19742
+ }) | ({
19743
+ kind: "story";
19744
+ storyType: "endnote";
19745
+ noteId: string;
19746
+ }) | ({
19747
+ kind: "story";
19748
+ storyType: "textbox";
19749
+ textboxId: string;
19750
+ });
19751
+ coordinateSpace?: "visible" | "tracked";
19752
+ }) | ({
19753
+ kind: "tableCells";
19754
+ tableId: string;
19755
+ start: {
19756
+ rowIndex: number;
19757
+ columnIndex: number;
19758
+ };
19759
+ end: {
19760
+ rowIndex: number;
19761
+ columnIndex: number;
19762
+ };
19763
+ story?: ({
19764
+ kind: "story";
19765
+ storyType: "body";
19766
+ }) | ({
19767
+ kind: "story";
19768
+ storyType: "headerFooterSlot";
19769
+ section: {
19770
+ kind: "section";
19771
+ sectionId: string;
19772
+ };
19773
+ headerFooterKind: "header" | "footer";
19774
+ variant: "default" | "first" | "even";
19775
+ resolution?: "effective" | "explicit";
19776
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
19777
+ }) | ({
19778
+ kind: "story";
19779
+ storyType: "headerFooterPart";
19780
+ refId: string;
19781
+ }) | ({
19782
+ kind: "story";
19783
+ storyType: "footnote";
19784
+ noteId: string;
19785
+ }) | ({
19786
+ kind: "story";
19787
+ storyType: "endnote";
19788
+ noteId: string;
19789
+ }) | ({
19790
+ kind: "story";
19791
+ storyType: "textbox";
19792
+ textboxId: string;
19793
+ });
19794
+ });
19795
+ selection?: "current";
19796
+ }
19565
19797
  export interface DocMutationsPreviewParams {
19566
19798
  doc?: string;
19567
19799
  sessionId?: string;
@@ -103205,12 +103437,315 @@ export type DocSelectionCurrentResult = {
103205
103437
  storyType: "textbox";
103206
103438
  textboxId: string;
103207
103439
  });
103208
- coordinateSpace?: "visible" | "tracked";
103209
- }) | null;
103210
- activeMarks: Array<string>;
103211
- activeCommentIds: Array<string>;
103212
- activeChangeIds: Array<string>;
103213
- text?: string;
103440
+ coordinateSpace?: "visible" | "tracked";
103441
+ }) | null;
103442
+ activeMarks: Array<string>;
103443
+ activeCommentIds: Array<string>;
103444
+ activeChangeIds: Array<string>;
103445
+ text?: string;
103446
+ };
103447
+ export type DocSelectionExtractOoxmlResult = {
103448
+ formatVersion: 1;
103449
+ at: ({
103450
+ kind: "selection";
103451
+ start: ({
103452
+ kind: "text";
103453
+ blockId: string;
103454
+ offset: number;
103455
+ story?: ({
103456
+ kind: "story";
103457
+ storyType: "body";
103458
+ }) | ({
103459
+ kind: "story";
103460
+ storyType: "headerFooterSlot";
103461
+ section: {
103462
+ kind: "section";
103463
+ sectionId: string;
103464
+ };
103465
+ headerFooterKind: "header" | "footer";
103466
+ variant: "default" | "first" | "even";
103467
+ resolution?: "effective" | "explicit";
103468
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
103469
+ }) | ({
103470
+ kind: "story";
103471
+ storyType: "headerFooterPart";
103472
+ refId: string;
103473
+ }) | ({
103474
+ kind: "story";
103475
+ storyType: "footnote";
103476
+ noteId: string;
103477
+ }) | ({
103478
+ kind: "story";
103479
+ storyType: "endnote";
103480
+ noteId: string;
103481
+ }) | ({
103482
+ kind: "story";
103483
+ storyType: "textbox";
103484
+ textboxId: string;
103485
+ });
103486
+ }) | ({
103487
+ kind: "nodeEdge";
103488
+ node: {
103489
+ kind: "block";
103490
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
103491
+ nodeId: string;
103492
+ story?: ({
103493
+ kind: "story";
103494
+ storyType: "body";
103495
+ }) | ({
103496
+ kind: "story";
103497
+ storyType: "headerFooterSlot";
103498
+ section: {
103499
+ kind: "section";
103500
+ sectionId: string;
103501
+ };
103502
+ headerFooterKind: "header" | "footer";
103503
+ variant: "default" | "first" | "even";
103504
+ resolution?: "effective" | "explicit";
103505
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
103506
+ }) | ({
103507
+ kind: "story";
103508
+ storyType: "headerFooterPart";
103509
+ refId: string;
103510
+ }) | ({
103511
+ kind: "story";
103512
+ storyType: "footnote";
103513
+ noteId: string;
103514
+ }) | ({
103515
+ kind: "story";
103516
+ storyType: "endnote";
103517
+ noteId: string;
103518
+ }) | ({
103519
+ kind: "story";
103520
+ storyType: "textbox";
103521
+ textboxId: string;
103522
+ });
103523
+ };
103524
+ edge: "before" | "after";
103525
+ });
103526
+ end: ({
103527
+ kind: "text";
103528
+ blockId: string;
103529
+ offset: number;
103530
+ story?: ({
103531
+ kind: "story";
103532
+ storyType: "body";
103533
+ }) | ({
103534
+ kind: "story";
103535
+ storyType: "headerFooterSlot";
103536
+ section: {
103537
+ kind: "section";
103538
+ sectionId: string;
103539
+ };
103540
+ headerFooterKind: "header" | "footer";
103541
+ variant: "default" | "first" | "even";
103542
+ resolution?: "effective" | "explicit";
103543
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
103544
+ }) | ({
103545
+ kind: "story";
103546
+ storyType: "headerFooterPart";
103547
+ refId: string;
103548
+ }) | ({
103549
+ kind: "story";
103550
+ storyType: "footnote";
103551
+ noteId: string;
103552
+ }) | ({
103553
+ kind: "story";
103554
+ storyType: "endnote";
103555
+ noteId: string;
103556
+ }) | ({
103557
+ kind: "story";
103558
+ storyType: "textbox";
103559
+ textboxId: string;
103560
+ });
103561
+ }) | ({
103562
+ kind: "nodeEdge";
103563
+ node: {
103564
+ kind: "block";
103565
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
103566
+ nodeId: string;
103567
+ story?: ({
103568
+ kind: "story";
103569
+ storyType: "body";
103570
+ }) | ({
103571
+ kind: "story";
103572
+ storyType: "headerFooterSlot";
103573
+ section: {
103574
+ kind: "section";
103575
+ sectionId: string;
103576
+ };
103577
+ headerFooterKind: "header" | "footer";
103578
+ variant: "default" | "first" | "even";
103579
+ resolution?: "effective" | "explicit";
103580
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
103581
+ }) | ({
103582
+ kind: "story";
103583
+ storyType: "headerFooterPart";
103584
+ refId: string;
103585
+ }) | ({
103586
+ kind: "story";
103587
+ storyType: "footnote";
103588
+ noteId: string;
103589
+ }) | ({
103590
+ kind: "story";
103591
+ storyType: "endnote";
103592
+ noteId: string;
103593
+ }) | ({
103594
+ kind: "story";
103595
+ storyType: "textbox";
103596
+ textboxId: string;
103597
+ });
103598
+ };
103599
+ edge: "before" | "after";
103600
+ });
103601
+ story?: ({
103602
+ kind: "story";
103603
+ storyType: "body";
103604
+ }) | ({
103605
+ kind: "story";
103606
+ storyType: "headerFooterSlot";
103607
+ section: {
103608
+ kind: "section";
103609
+ sectionId: string;
103610
+ };
103611
+ headerFooterKind: "header" | "footer";
103612
+ variant: "default" | "first" | "even";
103613
+ resolution?: "effective" | "explicit";
103614
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
103615
+ }) | ({
103616
+ kind: "story";
103617
+ storyType: "headerFooterPart";
103618
+ refId: string;
103619
+ }) | ({
103620
+ kind: "story";
103621
+ storyType: "footnote";
103622
+ noteId: string;
103623
+ }) | ({
103624
+ kind: "story";
103625
+ storyType: "endnote";
103626
+ noteId: string;
103627
+ }) | ({
103628
+ kind: "story";
103629
+ storyType: "textbox";
103630
+ textboxId: string;
103631
+ });
103632
+ coordinateSpace?: "visible" | "tracked";
103633
+ }) | ({
103634
+ kind: "tableCells";
103635
+ tableId: string;
103636
+ start: {
103637
+ rowIndex: number;
103638
+ columnIndex: number;
103639
+ };
103640
+ end: {
103641
+ rowIndex: number;
103642
+ columnIndex: number;
103643
+ };
103644
+ story?: ({
103645
+ kind: "story";
103646
+ storyType: "body";
103647
+ }) | ({
103648
+ kind: "story";
103649
+ storyType: "headerFooterSlot";
103650
+ section: {
103651
+ kind: "section";
103652
+ sectionId: string;
103653
+ };
103654
+ headerFooterKind: "header" | "footer";
103655
+ variant: "default" | "first" | "even";
103656
+ resolution?: "effective" | "explicit";
103657
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
103658
+ }) | ({
103659
+ kind: "story";
103660
+ storyType: "headerFooterPart";
103661
+ refId: string;
103662
+ }) | ({
103663
+ kind: "story";
103664
+ storyType: "footnote";
103665
+ noteId: string;
103666
+ }) | ({
103667
+ kind: "story";
103668
+ storyType: "endnote";
103669
+ noteId: string;
103670
+ }) | ({
103671
+ kind: "story";
103672
+ storyType: "textbox";
103673
+ textboxId: string;
103674
+ });
103675
+ });
103676
+ evaluatedRevision: string;
103677
+ fragment: {
103678
+ placement: "inline" | "blocks" | "table";
103679
+ xml: string;
103680
+ namespaces: Record<string, unknown>;
103681
+ table?: {
103682
+ tableId: string;
103683
+ gridColumnCount: number;
103684
+ cells: Array<{
103685
+ rowIndex: number;
103686
+ columnIndex: number;
103687
+ gridSpan: number;
103688
+ vMerge: "none" | "restart" | "continue";
103689
+ }>;
103690
+ };
103691
+ };
103692
+ source: {
103693
+ story: (({
103694
+ kind: "story";
103695
+ storyType: "body";
103696
+ }) | ({
103697
+ kind: "story";
103698
+ storyType: "headerFooterSlot";
103699
+ section: {
103700
+ kind: "section";
103701
+ sectionId: string;
103702
+ };
103703
+ headerFooterKind: "header" | "footer";
103704
+ variant: "default" | "first" | "even";
103705
+ resolution?: "effective" | "explicit";
103706
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
103707
+ }) | ({
103708
+ kind: "story";
103709
+ storyType: "headerFooterPart";
103710
+ refId: string;
103711
+ }) | ({
103712
+ kind: "story";
103713
+ storyType: "footnote";
103714
+ noteId: string;
103715
+ }) | ({
103716
+ kind: "story";
103717
+ storyType: "endnote";
103718
+ noteId: string;
103719
+ }) | ({
103720
+ kind: "story";
103721
+ storyType: "textbox";
103722
+ textboxId: string;
103723
+ })) | null;
103724
+ partUri: string;
103725
+ paragraphStyleId: string | null;
103726
+ };
103727
+ context: {
103728
+ xml: Array<string>;
103729
+ tableMerges?: Array<{
103730
+ selectedRowIndex: number;
103731
+ columnIndex: number;
103732
+ restartRowIndex: number;
103733
+ restartCellPropertiesXml: string;
103734
+ }>;
103735
+ };
103736
+ dependencies: Array<{
103737
+ sourcePartUri: string;
103738
+ relationshipId: string;
103739
+ relationshipType: string;
103740
+ target: string;
103741
+ targetMode: "Internal" | "External";
103742
+ contentType: string | null;
103743
+ dataBase64?: string;
103744
+ }>;
103745
+ diagnostics: Array<{
103746
+ code: string;
103747
+ message: string;
103748
+ }>;
103214
103749
  };
103215
103750
  export type DocMutationsPreviewResult = {
103216
103751
  evaluatedRevision: string;
@@ -104715,6 +105250,12 @@ export type DocCapabilitiesGetResult = {
104715
105250
  dryRun: boolean;
104716
105251
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE" | "TARGET_CONTEXT_REQUIRED" | "TARGET_UNSUPPORTED">;
104717
105252
  };
105253
+ "selection.extractOoxml": {
105254
+ available: boolean;
105255
+ tracked: boolean;
105256
+ dryRun: boolean;
105257
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE" | "TARGET_CONTEXT_REQUIRED" | "TARGET_UNSUPPORTED">;
105258
+ };
104718
105259
  "mutations.preview": {
104719
105260
  available: boolean;
104720
105261
  tracked: boolean;
@@ -108427,7 +108968,7 @@ export type DocCapabilitiesCheckResult = ({
108427
108968
  };
108428
108969
  });
108429
108970
  export type DocCapabilitiesResolveResult = {
108430
- 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" | "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" | "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";
108971
+ 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" | "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";
108431
108972
  available: ({
108432
108973
  kind: "supported";
108433
108974
  }) | ({
@@ -141665,6 +142206,236 @@ export interface DocRangesResolveBoundParams {
141665
142206
  export interface DocSelectionCurrentBoundParams {
141666
142207
  includeText?: boolean;
141667
142208
  }
142209
+ export interface DocSelectionExtractOoxmlBoundParams {
142210
+ at?: ({
142211
+ kind: "selection";
142212
+ start: ({
142213
+ kind: "text";
142214
+ blockId: string;
142215
+ offset: number;
142216
+ story?: ({
142217
+ kind: "story";
142218
+ storyType: "body";
142219
+ }) | ({
142220
+ kind: "story";
142221
+ storyType: "headerFooterSlot";
142222
+ section: {
142223
+ kind: "section";
142224
+ sectionId: string;
142225
+ };
142226
+ headerFooterKind: "header" | "footer";
142227
+ variant: "default" | "first" | "even";
142228
+ resolution?: "effective" | "explicit";
142229
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
142230
+ }) | ({
142231
+ kind: "story";
142232
+ storyType: "headerFooterPart";
142233
+ refId: string;
142234
+ }) | ({
142235
+ kind: "story";
142236
+ storyType: "footnote";
142237
+ noteId: string;
142238
+ }) | ({
142239
+ kind: "story";
142240
+ storyType: "endnote";
142241
+ noteId: string;
142242
+ }) | ({
142243
+ kind: "story";
142244
+ storyType: "textbox";
142245
+ textboxId: string;
142246
+ });
142247
+ }) | ({
142248
+ kind: "nodeEdge";
142249
+ node: {
142250
+ kind: "block";
142251
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
142252
+ nodeId: string;
142253
+ story?: ({
142254
+ kind: "story";
142255
+ storyType: "body";
142256
+ }) | ({
142257
+ kind: "story";
142258
+ storyType: "headerFooterSlot";
142259
+ section: {
142260
+ kind: "section";
142261
+ sectionId: string;
142262
+ };
142263
+ headerFooterKind: "header" | "footer";
142264
+ variant: "default" | "first" | "even";
142265
+ resolution?: "effective" | "explicit";
142266
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
142267
+ }) | ({
142268
+ kind: "story";
142269
+ storyType: "headerFooterPart";
142270
+ refId: string;
142271
+ }) | ({
142272
+ kind: "story";
142273
+ storyType: "footnote";
142274
+ noteId: string;
142275
+ }) | ({
142276
+ kind: "story";
142277
+ storyType: "endnote";
142278
+ noteId: string;
142279
+ }) | ({
142280
+ kind: "story";
142281
+ storyType: "textbox";
142282
+ textboxId: string;
142283
+ });
142284
+ };
142285
+ edge: "before" | "after";
142286
+ });
142287
+ end: ({
142288
+ kind: "text";
142289
+ blockId: string;
142290
+ offset: number;
142291
+ story?: ({
142292
+ kind: "story";
142293
+ storyType: "body";
142294
+ }) | ({
142295
+ kind: "story";
142296
+ storyType: "headerFooterSlot";
142297
+ section: {
142298
+ kind: "section";
142299
+ sectionId: string;
142300
+ };
142301
+ headerFooterKind: "header" | "footer";
142302
+ variant: "default" | "first" | "even";
142303
+ resolution?: "effective" | "explicit";
142304
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
142305
+ }) | ({
142306
+ kind: "story";
142307
+ storyType: "headerFooterPart";
142308
+ refId: string;
142309
+ }) | ({
142310
+ kind: "story";
142311
+ storyType: "footnote";
142312
+ noteId: string;
142313
+ }) | ({
142314
+ kind: "story";
142315
+ storyType: "endnote";
142316
+ noteId: string;
142317
+ }) | ({
142318
+ kind: "story";
142319
+ storyType: "textbox";
142320
+ textboxId: string;
142321
+ });
142322
+ }) | ({
142323
+ kind: "nodeEdge";
142324
+ node: {
142325
+ kind: "block";
142326
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
142327
+ nodeId: string;
142328
+ story?: ({
142329
+ kind: "story";
142330
+ storyType: "body";
142331
+ }) | ({
142332
+ kind: "story";
142333
+ storyType: "headerFooterSlot";
142334
+ section: {
142335
+ kind: "section";
142336
+ sectionId: string;
142337
+ };
142338
+ headerFooterKind: "header" | "footer";
142339
+ variant: "default" | "first" | "even";
142340
+ resolution?: "effective" | "explicit";
142341
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
142342
+ }) | ({
142343
+ kind: "story";
142344
+ storyType: "headerFooterPart";
142345
+ refId: string;
142346
+ }) | ({
142347
+ kind: "story";
142348
+ storyType: "footnote";
142349
+ noteId: string;
142350
+ }) | ({
142351
+ kind: "story";
142352
+ storyType: "endnote";
142353
+ noteId: string;
142354
+ }) | ({
142355
+ kind: "story";
142356
+ storyType: "textbox";
142357
+ textboxId: string;
142358
+ });
142359
+ };
142360
+ edge: "before" | "after";
142361
+ });
142362
+ story?: ({
142363
+ kind: "story";
142364
+ storyType: "body";
142365
+ }) | ({
142366
+ kind: "story";
142367
+ storyType: "headerFooterSlot";
142368
+ section: {
142369
+ kind: "section";
142370
+ sectionId: string;
142371
+ };
142372
+ headerFooterKind: "header" | "footer";
142373
+ variant: "default" | "first" | "even";
142374
+ resolution?: "effective" | "explicit";
142375
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
142376
+ }) | ({
142377
+ kind: "story";
142378
+ storyType: "headerFooterPart";
142379
+ refId: string;
142380
+ }) | ({
142381
+ kind: "story";
142382
+ storyType: "footnote";
142383
+ noteId: string;
142384
+ }) | ({
142385
+ kind: "story";
142386
+ storyType: "endnote";
142387
+ noteId: string;
142388
+ }) | ({
142389
+ kind: "story";
142390
+ storyType: "textbox";
142391
+ textboxId: string;
142392
+ });
142393
+ coordinateSpace?: "visible" | "tracked";
142394
+ }) | ({
142395
+ kind: "tableCells";
142396
+ tableId: string;
142397
+ start: {
142398
+ rowIndex: number;
142399
+ columnIndex: number;
142400
+ };
142401
+ end: {
142402
+ rowIndex: number;
142403
+ columnIndex: number;
142404
+ };
142405
+ story?: ({
142406
+ kind: "story";
142407
+ storyType: "body";
142408
+ }) | ({
142409
+ kind: "story";
142410
+ storyType: "headerFooterSlot";
142411
+ section: {
142412
+ kind: "section";
142413
+ sectionId: string;
142414
+ };
142415
+ headerFooterKind: "header" | "footer";
142416
+ variant: "default" | "first" | "even";
142417
+ resolution?: "effective" | "explicit";
142418
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
142419
+ }) | ({
142420
+ kind: "story";
142421
+ storyType: "headerFooterPart";
142422
+ refId: string;
142423
+ }) | ({
142424
+ kind: "story";
142425
+ storyType: "footnote";
142426
+ noteId: string;
142427
+ }) | ({
142428
+ kind: "story";
142429
+ storyType: "endnote";
142430
+ noteId: string;
142431
+ }) | ({
142432
+ kind: "story";
142433
+ storyType: "textbox";
142434
+ textboxId: string;
142435
+ });
142436
+ });
142437
+ selection?: "current";
142438
+ }
141668
142439
  export interface DocMutationsPreviewBoundParams {
141669
142440
  in?: ({
141670
142441
  kind: "story";
@@ -153237,6 +154008,7 @@ export declare function createDocApi(runtime: RuntimeInvoker): {
153237
154008
  };
153238
154009
  selection: {
153239
154010
  current: (params?: DocSelectionCurrentParams, options?: InvokeOptions) => Promise<DocSelectionCurrentResult>;
154011
+ extractOoxml: (params?: DocSelectionExtractOoxmlParams, options?: InvokeOptions) => Promise<DocSelectionExtractOoxmlResult>;
153240
154012
  };
153241
154013
  mutations: {
153242
154014
  preview: (params: DocMutationsPreviewParams, options?: InvokeOptions) => Promise<DocMutationsPreviewResult>;
@@ -153806,6 +154578,7 @@ export declare function createBoundDocApi(runtime: RuntimeInvoker): {
153806
154578
  };
153807
154579
  selection: {
153808
154580
  current: (params?: DocSelectionCurrentBoundParams, options?: InvokeOptions) => Promise<DocSelectionCurrentResult>;
154581
+ extractOoxml: (params?: DocSelectionExtractOoxmlBoundParams, options?: InvokeOptions) => Promise<DocSelectionExtractOoxmlResult>;
153809
154582
  };
153810
154583
  mutations: {
153811
154584
  preview: (params: DocMutationsPreviewBoundParams, options?: InvokeOptions) => Promise<DocMutationsPreviewResult>;