@superdoc-dev/sdk 1.0.0-alpha.44 → 1.0.0-alpha.46

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.
@@ -12,21 +12,9 @@ export interface DocFindParams {
12
12
  doc?: string;
13
13
  sessionId?: string;
14
14
  within?: {
15
- kind: "content" | "inline" | "annotation" | "section";
16
- stability: "stable" | "ephemeral";
17
- nodeId?: string;
18
- anchor?: {
19
- start?: {
20
- blockId: string;
21
- offset: number;
22
- };
23
- end?: {
24
- blockId: string;
25
- offset: number;
26
- };
27
- };
28
- evaluatedRevision?: string;
29
- path?: Array<string | number>;
15
+ kind: "block";
16
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
17
+ nodeId: string;
30
18
  };
31
19
  limit?: number;
32
20
  offset?: number;
@@ -47,6 +35,19 @@ export interface DocFindParams {
47
35
  export interface DocGetNodeParams {
48
36
  doc?: string;
49
37
  sessionId?: string;
38
+ kind?: string;
39
+ 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";
40
+ nodeId?: string;
41
+ anchor?: {
42
+ start: {
43
+ blockId: string;
44
+ offset: number;
45
+ };
46
+ end: {
47
+ blockId: string;
48
+ offset: number;
49
+ };
50
+ };
50
51
  address?: Record<string, unknown> | unknown[];
51
52
  }
52
53
  export interface DocGetNodeByIdParams {
@@ -93,16 +94,25 @@ export interface DocInsertParams {
93
94
  expectedRevision?: number;
94
95
  changeMode?: string;
95
96
  dryRun?: boolean;
96
- target?: {
97
+ target?: ({
97
98
  kind: "text";
98
99
  blockId: string;
99
100
  range: {
100
101
  start: number;
101
102
  end: number;
102
103
  };
103
- };
104
+ }) | ({
105
+ kind: "block";
106
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
107
+ nodeId: string;
108
+ });
104
109
  value?: string;
105
110
  type?: string;
111
+ content?: Record<string, unknown> | Array<Record<string, unknown>>;
112
+ placement?: string;
113
+ nestingPolicy?: {
114
+ tables?: "forbid" | "allow";
115
+ };
106
116
  blockId?: string;
107
117
  offset?: number;
108
118
  }
@@ -114,15 +124,45 @@ export interface DocReplaceParams {
114
124
  expectedRevision?: number;
115
125
  changeMode?: string;
116
126
  dryRun?: boolean;
117
- target?: {
118
- kind: "text";
119
- blockId: string;
120
- range: {
121
- start: number;
122
- end: number;
123
- };
124
- };
127
+ target?: ({
128
+ kind: "selection";
129
+ start: ({
130
+ kind: "text";
131
+ blockId: string;
132
+ offset: number;
133
+ }) | ({
134
+ kind: "nodeEdge";
135
+ node: {
136
+ kind: "block";
137
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
138
+ nodeId: string;
139
+ };
140
+ edge: "before" | "after";
141
+ });
142
+ end: ({
143
+ kind: "text";
144
+ blockId: string;
145
+ offset: number;
146
+ }) | ({
147
+ kind: "nodeEdge";
148
+ node: {
149
+ kind: "block";
150
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
151
+ nodeId: string;
152
+ };
153
+ edge: "before" | "after";
154
+ });
155
+ }) | ({
156
+ kind: "block";
157
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
158
+ nodeId: string;
159
+ });
125
160
  text?: string;
161
+ ref?: string;
162
+ content?: Record<string, unknown> | Array<Record<string, unknown>>;
163
+ nestingPolicy?: {
164
+ tables?: "forbid" | "allow";
165
+ };
126
166
  blockId?: string;
127
167
  start?: number;
128
168
  end?: number;
@@ -136,13 +176,36 @@ export interface DocDeleteParams {
136
176
  changeMode?: string;
137
177
  dryRun?: boolean;
138
178
  target?: {
139
- kind: "text";
140
- blockId: string;
141
- range: {
142
- start: number;
143
- end: number;
144
- };
179
+ kind: "selection";
180
+ start: ({
181
+ kind: "text";
182
+ blockId: string;
183
+ offset: number;
184
+ }) | ({
185
+ kind: "nodeEdge";
186
+ node: {
187
+ kind: "block";
188
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
189
+ nodeId: string;
190
+ };
191
+ edge: "before" | "after";
192
+ });
193
+ end: ({
194
+ kind: "text";
195
+ blockId: string;
196
+ offset: number;
197
+ }) | ({
198
+ kind: "nodeEdge";
199
+ node: {
200
+ kind: "block";
201
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
202
+ nodeId: string;
203
+ };
204
+ edge: "before" | "after";
205
+ });
145
206
  };
207
+ behavior?: string;
208
+ ref?: string;
146
209
  blockId?: string;
147
210
  start?: number;
148
211
  end?: number;
@@ -198,12 +261,33 @@ export interface DocFormatApplyParams {
198
261
  changeMode?: string;
199
262
  dryRun?: boolean;
200
263
  target?: {
201
- kind: "text";
202
- blockId: string;
203
- range: {
204
- start: number;
205
- end: number;
206
- };
264
+ kind: "selection";
265
+ start: ({
266
+ kind: "text";
267
+ blockId: string;
268
+ offset: number;
269
+ }) | ({
270
+ kind: "nodeEdge";
271
+ node: {
272
+ kind: "block";
273
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
274
+ nodeId: string;
275
+ };
276
+ edge: "before" | "after";
277
+ });
278
+ end: ({
279
+ kind: "text";
280
+ blockId: string;
281
+ offset: number;
282
+ }) | ({
283
+ kind: "nodeEdge";
284
+ node: {
285
+ kind: "block";
286
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
287
+ nodeId: string;
288
+ };
289
+ edge: "before" | "after";
290
+ });
207
291
  };
208
292
  inline?: {
209
293
  bold?: boolean | unknown;
@@ -289,6 +373,7 @@ export interface DocFormatApplyParams {
289
373
  }>) | unknown;
290
374
  contextualAlternates?: boolean | unknown;
291
375
  };
376
+ ref?: string;
292
377
  blockId?: string;
293
378
  start?: number;
294
379
  end?: number;
@@ -302,14 +387,36 @@ export interface DocFormatBoldParams {
302
387
  changeMode?: string;
303
388
  dryRun?: boolean;
304
389
  target?: {
305
- kind: "text";
306
- blockId: string;
307
- range: {
308
- start: number;
309
- end: number;
310
- };
390
+ kind: "selection";
391
+ start: ({
392
+ kind: "text";
393
+ blockId: string;
394
+ offset: number;
395
+ }) | ({
396
+ kind: "nodeEdge";
397
+ node: {
398
+ kind: "block";
399
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
400
+ nodeId: string;
401
+ };
402
+ edge: "before" | "after";
403
+ });
404
+ end: ({
405
+ kind: "text";
406
+ blockId: string;
407
+ offset: number;
408
+ }) | ({
409
+ kind: "nodeEdge";
410
+ node: {
411
+ kind: "block";
412
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
413
+ nodeId: string;
414
+ };
415
+ edge: "before" | "after";
416
+ });
311
417
  };
312
418
  value?: boolean | unknown;
419
+ ref?: string;
313
420
  blockId?: string;
314
421
  start?: number;
315
422
  end?: number;
@@ -323,14 +430,36 @@ export interface DocFormatItalicParams {
323
430
  changeMode?: string;
324
431
  dryRun?: boolean;
325
432
  target?: {
326
- kind: "text";
327
- blockId: string;
328
- range: {
329
- start: number;
330
- end: number;
331
- };
433
+ kind: "selection";
434
+ start: ({
435
+ kind: "text";
436
+ blockId: string;
437
+ offset: number;
438
+ }) | ({
439
+ kind: "nodeEdge";
440
+ node: {
441
+ kind: "block";
442
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
443
+ nodeId: string;
444
+ };
445
+ edge: "before" | "after";
446
+ });
447
+ end: ({
448
+ kind: "text";
449
+ blockId: string;
450
+ offset: number;
451
+ }) | ({
452
+ kind: "nodeEdge";
453
+ node: {
454
+ kind: "block";
455
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
456
+ nodeId: string;
457
+ };
458
+ edge: "before" | "after";
459
+ });
332
460
  };
333
461
  value?: boolean | unknown;
462
+ ref?: string;
334
463
  blockId?: string;
335
464
  start?: number;
336
465
  end?: number;
@@ -344,14 +473,36 @@ export interface DocFormatStrikeParams {
344
473
  changeMode?: string;
345
474
  dryRun?: boolean;
346
475
  target?: {
347
- kind: "text";
348
- blockId: string;
349
- range: {
350
- start: number;
351
- end: number;
352
- };
476
+ kind: "selection";
477
+ start: ({
478
+ kind: "text";
479
+ blockId: string;
480
+ offset: number;
481
+ }) | ({
482
+ kind: "nodeEdge";
483
+ node: {
484
+ kind: "block";
485
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
486
+ nodeId: string;
487
+ };
488
+ edge: "before" | "after";
489
+ });
490
+ end: ({
491
+ kind: "text";
492
+ blockId: string;
493
+ offset: number;
494
+ }) | ({
495
+ kind: "nodeEdge";
496
+ node: {
497
+ kind: "block";
498
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
499
+ nodeId: string;
500
+ };
501
+ edge: "before" | "after";
502
+ });
353
503
  };
354
504
  value?: boolean | unknown;
505
+ ref?: string;
355
506
  blockId?: string;
356
507
  start?: number;
357
508
  end?: number;
@@ -365,18 +516,40 @@ export interface DocFormatUnderlineParams {
365
516
  changeMode?: string;
366
517
  dryRun?: boolean;
367
518
  target?: {
368
- kind: "text";
369
- blockId: string;
370
- range: {
371
- start: number;
372
- end: number;
373
- };
519
+ kind: "selection";
520
+ start: ({
521
+ kind: "text";
522
+ blockId: string;
523
+ offset: number;
524
+ }) | ({
525
+ kind: "nodeEdge";
526
+ node: {
527
+ kind: "block";
528
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
529
+ nodeId: string;
530
+ };
531
+ edge: "before" | "after";
532
+ });
533
+ end: ({
534
+ kind: "text";
535
+ blockId: string;
536
+ offset: number;
537
+ }) | ({
538
+ kind: "nodeEdge";
539
+ node: {
540
+ kind: "block";
541
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
542
+ nodeId: string;
543
+ };
544
+ edge: "before" | "after";
545
+ });
374
546
  };
375
547
  value?: boolean | unknown | ({
376
548
  style?: string | unknown;
377
549
  color?: string | unknown;
378
550
  themeColor?: string | unknown;
379
551
  });
552
+ ref?: string;
380
553
  blockId?: string;
381
554
  start?: number;
382
555
  end?: number;
@@ -390,14 +563,36 @@ export interface DocFormatHighlightParams {
390
563
  changeMode?: string;
391
564
  dryRun?: boolean;
392
565
  target?: {
393
- kind: "text";
394
- blockId: string;
395
- range: {
396
- start: number;
397
- end: number;
398
- };
566
+ kind: "selection";
567
+ start: ({
568
+ kind: "text";
569
+ blockId: string;
570
+ offset: number;
571
+ }) | ({
572
+ kind: "nodeEdge";
573
+ node: {
574
+ kind: "block";
575
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
576
+ nodeId: string;
577
+ };
578
+ edge: "before" | "after";
579
+ });
580
+ end: ({
581
+ kind: "text";
582
+ blockId: string;
583
+ offset: number;
584
+ }) | ({
585
+ kind: "nodeEdge";
586
+ node: {
587
+ kind: "block";
588
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
589
+ nodeId: string;
590
+ };
591
+ edge: "before" | "after";
592
+ });
399
593
  };
400
594
  value?: string | unknown;
595
+ ref?: string;
401
596
  blockId?: string;
402
597
  start?: number;
403
598
  end?: number;
@@ -411,14 +606,36 @@ export interface DocFormatColorParams {
411
606
  changeMode?: string;
412
607
  dryRun?: boolean;
413
608
  target?: {
414
- kind: "text";
415
- blockId: string;
416
- range: {
417
- start: number;
418
- end: number;
419
- };
609
+ kind: "selection";
610
+ start: ({
611
+ kind: "text";
612
+ blockId: string;
613
+ offset: number;
614
+ }) | ({
615
+ kind: "nodeEdge";
616
+ node: {
617
+ kind: "block";
618
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
619
+ nodeId: string;
620
+ };
621
+ edge: "before" | "after";
622
+ });
623
+ end: ({
624
+ kind: "text";
625
+ blockId: string;
626
+ offset: number;
627
+ }) | ({
628
+ kind: "nodeEdge";
629
+ node: {
630
+ kind: "block";
631
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
632
+ nodeId: string;
633
+ };
634
+ edge: "before" | "after";
635
+ });
420
636
  };
421
637
  value?: string | unknown;
638
+ ref?: string;
422
639
  blockId?: string;
423
640
  start?: number;
424
641
  end?: number;
@@ -432,14 +649,36 @@ export interface DocFormatFontSizeParams {
432
649
  changeMode?: string;
433
650
  dryRun?: boolean;
434
651
  target?: {
435
- kind: "text";
436
- blockId: string;
437
- range: {
438
- start: number;
439
- end: number;
440
- };
652
+ kind: "selection";
653
+ start: ({
654
+ kind: "text";
655
+ blockId: string;
656
+ offset: number;
657
+ }) | ({
658
+ kind: "nodeEdge";
659
+ node: {
660
+ kind: "block";
661
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
662
+ nodeId: string;
663
+ };
664
+ edge: "before" | "after";
665
+ });
666
+ end: ({
667
+ kind: "text";
668
+ blockId: string;
669
+ offset: number;
670
+ }) | ({
671
+ kind: "nodeEdge";
672
+ node: {
673
+ kind: "block";
674
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
675
+ nodeId: string;
676
+ };
677
+ edge: "before" | "after";
678
+ });
441
679
  };
442
680
  value?: number | unknown;
681
+ ref?: string;
443
682
  blockId?: string;
444
683
  start?: number;
445
684
  end?: number;
@@ -453,14 +692,36 @@ export interface DocFormatFontFamilyParams {
453
692
  changeMode?: string;
454
693
  dryRun?: boolean;
455
694
  target?: {
456
- kind: "text";
457
- blockId: string;
458
- range: {
459
- start: number;
460
- end: number;
461
- };
695
+ kind: "selection";
696
+ start: ({
697
+ kind: "text";
698
+ blockId: string;
699
+ offset: number;
700
+ }) | ({
701
+ kind: "nodeEdge";
702
+ node: {
703
+ kind: "block";
704
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
705
+ nodeId: string;
706
+ };
707
+ edge: "before" | "after";
708
+ });
709
+ end: ({
710
+ kind: "text";
711
+ blockId: string;
712
+ offset: number;
713
+ }) | ({
714
+ kind: "nodeEdge";
715
+ node: {
716
+ kind: "block";
717
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
718
+ nodeId: string;
719
+ };
720
+ edge: "before" | "after";
721
+ });
462
722
  };
463
723
  value?: string | unknown;
724
+ ref?: string;
464
725
  blockId?: string;
465
726
  start?: number;
466
727
  end?: number;
@@ -474,14 +735,36 @@ export interface DocFormatLetterSpacingParams {
474
735
  changeMode?: string;
475
736
  dryRun?: boolean;
476
737
  target?: {
477
- kind: "text";
478
- blockId: string;
479
- range: {
480
- start: number;
481
- end: number;
482
- };
738
+ kind: "selection";
739
+ start: ({
740
+ kind: "text";
741
+ blockId: string;
742
+ offset: number;
743
+ }) | ({
744
+ kind: "nodeEdge";
745
+ node: {
746
+ kind: "block";
747
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
748
+ nodeId: string;
749
+ };
750
+ edge: "before" | "after";
751
+ });
752
+ end: ({
753
+ kind: "text";
754
+ blockId: string;
755
+ offset: number;
756
+ }) | ({
757
+ kind: "nodeEdge";
758
+ node: {
759
+ kind: "block";
760
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
761
+ nodeId: string;
762
+ };
763
+ edge: "before" | "after";
764
+ });
483
765
  };
484
766
  value?: number | unknown;
767
+ ref?: string;
485
768
  blockId?: string;
486
769
  start?: number;
487
770
  end?: number;
@@ -495,14 +778,36 @@ export interface DocFormatVertAlignParams {
495
778
  changeMode?: string;
496
779
  dryRun?: boolean;
497
780
  target?: {
498
- kind: "text";
499
- blockId: string;
500
- range: {
501
- start: number;
502
- end: number;
503
- };
781
+ kind: "selection";
782
+ start: ({
783
+ kind: "text";
784
+ blockId: string;
785
+ offset: number;
786
+ }) | ({
787
+ kind: "nodeEdge";
788
+ node: {
789
+ kind: "block";
790
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
791
+ nodeId: string;
792
+ };
793
+ edge: "before" | "after";
794
+ });
795
+ end: ({
796
+ kind: "text";
797
+ blockId: string;
798
+ offset: number;
799
+ }) | ({
800
+ kind: "nodeEdge";
801
+ node: {
802
+ kind: "block";
803
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
804
+ nodeId: string;
805
+ };
806
+ edge: "before" | "after";
807
+ });
504
808
  };
505
809
  value?: "superscript" | "subscript" | "baseline" | unknown;
810
+ ref?: string;
506
811
  blockId?: string;
507
812
  start?: number;
508
813
  end?: number;
@@ -516,14 +821,36 @@ export interface DocFormatPositionParams {
516
821
  changeMode?: string;
517
822
  dryRun?: boolean;
518
823
  target?: {
519
- kind: "text";
520
- blockId: string;
521
- range: {
522
- start: number;
523
- end: number;
524
- };
824
+ kind: "selection";
825
+ start: ({
826
+ kind: "text";
827
+ blockId: string;
828
+ offset: number;
829
+ }) | ({
830
+ kind: "nodeEdge";
831
+ node: {
832
+ kind: "block";
833
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
834
+ nodeId: string;
835
+ };
836
+ edge: "before" | "after";
837
+ });
838
+ end: ({
839
+ kind: "text";
840
+ blockId: string;
841
+ offset: number;
842
+ }) | ({
843
+ kind: "nodeEdge";
844
+ node: {
845
+ kind: "block";
846
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
847
+ nodeId: string;
848
+ };
849
+ edge: "before" | "after";
850
+ });
525
851
  };
526
852
  value?: number | unknown;
853
+ ref?: string;
527
854
  blockId?: string;
528
855
  start?: number;
529
856
  end?: number;
@@ -537,14 +864,36 @@ export interface DocFormatDstrikeParams {
537
864
  changeMode?: string;
538
865
  dryRun?: boolean;
539
866
  target?: {
540
- kind: "text";
541
- blockId: string;
542
- range: {
543
- start: number;
544
- end: number;
545
- };
867
+ kind: "selection";
868
+ start: ({
869
+ kind: "text";
870
+ blockId: string;
871
+ offset: number;
872
+ }) | ({
873
+ kind: "nodeEdge";
874
+ node: {
875
+ kind: "block";
876
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
877
+ nodeId: string;
878
+ };
879
+ edge: "before" | "after";
880
+ });
881
+ end: ({
882
+ kind: "text";
883
+ blockId: string;
884
+ offset: number;
885
+ }) | ({
886
+ kind: "nodeEdge";
887
+ node: {
888
+ kind: "block";
889
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
890
+ nodeId: string;
891
+ };
892
+ edge: "before" | "after";
893
+ });
546
894
  };
547
895
  value?: boolean | unknown;
896
+ ref?: string;
548
897
  blockId?: string;
549
898
  start?: number;
550
899
  end?: number;
@@ -558,14 +907,36 @@ export interface DocFormatSmallCapsParams {
558
907
  changeMode?: string;
559
908
  dryRun?: boolean;
560
909
  target?: {
561
- kind: "text";
562
- blockId: string;
563
- range: {
564
- start: number;
565
- end: number;
566
- };
910
+ kind: "selection";
911
+ start: ({
912
+ kind: "text";
913
+ blockId: string;
914
+ offset: number;
915
+ }) | ({
916
+ kind: "nodeEdge";
917
+ node: {
918
+ kind: "block";
919
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
920
+ nodeId: string;
921
+ };
922
+ edge: "before" | "after";
923
+ });
924
+ end: ({
925
+ kind: "text";
926
+ blockId: string;
927
+ offset: number;
928
+ }) | ({
929
+ kind: "nodeEdge";
930
+ node: {
931
+ kind: "block";
932
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
933
+ nodeId: string;
934
+ };
935
+ edge: "before" | "after";
936
+ });
567
937
  };
568
938
  value?: boolean | unknown;
939
+ ref?: string;
569
940
  blockId?: string;
570
941
  start?: number;
571
942
  end?: number;
@@ -579,14 +950,36 @@ export interface DocFormatCapsParams {
579
950
  changeMode?: string;
580
951
  dryRun?: boolean;
581
952
  target?: {
582
- kind: "text";
583
- blockId: string;
584
- range: {
585
- start: number;
586
- end: number;
587
- };
953
+ kind: "selection";
954
+ start: ({
955
+ kind: "text";
956
+ blockId: string;
957
+ offset: number;
958
+ }) | ({
959
+ kind: "nodeEdge";
960
+ node: {
961
+ kind: "block";
962
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
963
+ nodeId: string;
964
+ };
965
+ edge: "before" | "after";
966
+ });
967
+ end: ({
968
+ kind: "text";
969
+ blockId: string;
970
+ offset: number;
971
+ }) | ({
972
+ kind: "nodeEdge";
973
+ node: {
974
+ kind: "block";
975
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
976
+ nodeId: string;
977
+ };
978
+ edge: "before" | "after";
979
+ });
588
980
  };
589
981
  value?: boolean | unknown;
982
+ ref?: string;
590
983
  blockId?: string;
591
984
  start?: number;
592
985
  end?: number;
@@ -600,18 +993,40 @@ export interface DocFormatShadingParams {
600
993
  changeMode?: string;
601
994
  dryRun?: boolean;
602
995
  target?: {
603
- kind: "text";
604
- blockId: string;
605
- range: {
606
- start: number;
607
- end: number;
608
- };
996
+ kind: "selection";
997
+ start: ({
998
+ kind: "text";
999
+ blockId: string;
1000
+ offset: number;
1001
+ }) | ({
1002
+ kind: "nodeEdge";
1003
+ node: {
1004
+ kind: "block";
1005
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1006
+ nodeId: string;
1007
+ };
1008
+ edge: "before" | "after";
1009
+ });
1010
+ end: ({
1011
+ kind: "text";
1012
+ blockId: string;
1013
+ offset: number;
1014
+ }) | ({
1015
+ kind: "nodeEdge";
1016
+ node: {
1017
+ kind: "block";
1018
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1019
+ nodeId: string;
1020
+ };
1021
+ edge: "before" | "after";
1022
+ });
609
1023
  };
610
1024
  value?: ({
611
1025
  fill?: string | unknown;
612
1026
  color?: string | unknown;
613
1027
  val?: string | unknown;
614
1028
  }) | unknown;
1029
+ ref?: string;
615
1030
  blockId?: string;
616
1031
  start?: number;
617
1032
  end?: number;
@@ -625,12 +1040,33 @@ export interface DocFormatBorderParams {
625
1040
  changeMode?: string;
626
1041
  dryRun?: boolean;
627
1042
  target?: {
628
- kind: "text";
629
- blockId: string;
630
- range: {
631
- start: number;
632
- end: number;
633
- };
1043
+ kind: "selection";
1044
+ start: ({
1045
+ kind: "text";
1046
+ blockId: string;
1047
+ offset: number;
1048
+ }) | ({
1049
+ kind: "nodeEdge";
1050
+ node: {
1051
+ kind: "block";
1052
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1053
+ nodeId: string;
1054
+ };
1055
+ edge: "before" | "after";
1056
+ });
1057
+ end: ({
1058
+ kind: "text";
1059
+ blockId: string;
1060
+ offset: number;
1061
+ }) | ({
1062
+ kind: "nodeEdge";
1063
+ node: {
1064
+ kind: "block";
1065
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1066
+ nodeId: string;
1067
+ };
1068
+ edge: "before" | "after";
1069
+ });
634
1070
  };
635
1071
  value?: ({
636
1072
  val?: string | unknown;
@@ -638,6 +1074,7 @@ export interface DocFormatBorderParams {
638
1074
  color?: string | unknown;
639
1075
  space?: number | unknown;
640
1076
  }) | unknown;
1077
+ ref?: string;
641
1078
  blockId?: string;
642
1079
  start?: number;
643
1080
  end?: number;
@@ -651,14 +1088,36 @@ export interface DocFormatOutlineParams {
651
1088
  changeMode?: string;
652
1089
  dryRun?: boolean;
653
1090
  target?: {
654
- kind: "text";
655
- blockId: string;
656
- range: {
657
- start: number;
658
- end: number;
659
- };
1091
+ kind: "selection";
1092
+ start: ({
1093
+ kind: "text";
1094
+ blockId: string;
1095
+ offset: number;
1096
+ }) | ({
1097
+ kind: "nodeEdge";
1098
+ node: {
1099
+ kind: "block";
1100
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1101
+ nodeId: string;
1102
+ };
1103
+ edge: "before" | "after";
1104
+ });
1105
+ end: ({
1106
+ kind: "text";
1107
+ blockId: string;
1108
+ offset: number;
1109
+ }) | ({
1110
+ kind: "nodeEdge";
1111
+ node: {
1112
+ kind: "block";
1113
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1114
+ nodeId: string;
1115
+ };
1116
+ edge: "before" | "after";
1117
+ });
660
1118
  };
661
1119
  value?: boolean | unknown;
1120
+ ref?: string;
662
1121
  blockId?: string;
663
1122
  start?: number;
664
1123
  end?: number;
@@ -672,14 +1131,36 @@ export interface DocFormatShadowParams {
672
1131
  changeMode?: string;
673
1132
  dryRun?: boolean;
674
1133
  target?: {
675
- kind: "text";
676
- blockId: string;
677
- range: {
678
- start: number;
679
- end: number;
680
- };
1134
+ kind: "selection";
1135
+ start: ({
1136
+ kind: "text";
1137
+ blockId: string;
1138
+ offset: number;
1139
+ }) | ({
1140
+ kind: "nodeEdge";
1141
+ node: {
1142
+ kind: "block";
1143
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1144
+ nodeId: string;
1145
+ };
1146
+ edge: "before" | "after";
1147
+ });
1148
+ end: ({
1149
+ kind: "text";
1150
+ blockId: string;
1151
+ offset: number;
1152
+ }) | ({
1153
+ kind: "nodeEdge";
1154
+ node: {
1155
+ kind: "block";
1156
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1157
+ nodeId: string;
1158
+ };
1159
+ edge: "before" | "after";
1160
+ });
681
1161
  };
682
1162
  value?: boolean | unknown;
1163
+ ref?: string;
683
1164
  blockId?: string;
684
1165
  start?: number;
685
1166
  end?: number;
@@ -693,14 +1174,36 @@ export interface DocFormatEmbossParams {
693
1174
  changeMode?: string;
694
1175
  dryRun?: boolean;
695
1176
  target?: {
696
- kind: "text";
697
- blockId: string;
698
- range: {
699
- start: number;
700
- end: number;
701
- };
1177
+ kind: "selection";
1178
+ start: ({
1179
+ kind: "text";
1180
+ blockId: string;
1181
+ offset: number;
1182
+ }) | ({
1183
+ kind: "nodeEdge";
1184
+ node: {
1185
+ kind: "block";
1186
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1187
+ nodeId: string;
1188
+ };
1189
+ edge: "before" | "after";
1190
+ });
1191
+ end: ({
1192
+ kind: "text";
1193
+ blockId: string;
1194
+ offset: number;
1195
+ }) | ({
1196
+ kind: "nodeEdge";
1197
+ node: {
1198
+ kind: "block";
1199
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1200
+ nodeId: string;
1201
+ };
1202
+ edge: "before" | "after";
1203
+ });
702
1204
  };
703
1205
  value?: boolean | unknown;
1206
+ ref?: string;
704
1207
  blockId?: string;
705
1208
  start?: number;
706
1209
  end?: number;
@@ -714,14 +1217,36 @@ export interface DocFormatImprintParams {
714
1217
  changeMode?: string;
715
1218
  dryRun?: boolean;
716
1219
  target?: {
717
- kind: "text";
718
- blockId: string;
719
- range: {
720
- start: number;
721
- end: number;
722
- };
1220
+ kind: "selection";
1221
+ start: ({
1222
+ kind: "text";
1223
+ blockId: string;
1224
+ offset: number;
1225
+ }) | ({
1226
+ kind: "nodeEdge";
1227
+ node: {
1228
+ kind: "block";
1229
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1230
+ nodeId: string;
1231
+ };
1232
+ edge: "before" | "after";
1233
+ });
1234
+ end: ({
1235
+ kind: "text";
1236
+ blockId: string;
1237
+ offset: number;
1238
+ }) | ({
1239
+ kind: "nodeEdge";
1240
+ node: {
1241
+ kind: "block";
1242
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1243
+ nodeId: string;
1244
+ };
1245
+ edge: "before" | "after";
1246
+ });
723
1247
  };
724
1248
  value?: boolean | unknown;
1249
+ ref?: string;
725
1250
  blockId?: string;
726
1251
  start?: number;
727
1252
  end?: number;
@@ -735,14 +1260,36 @@ export interface DocFormatCharScaleParams {
735
1260
  changeMode?: string;
736
1261
  dryRun?: boolean;
737
1262
  target?: {
738
- kind: "text";
739
- blockId: string;
740
- range: {
741
- start: number;
742
- end: number;
743
- };
1263
+ kind: "selection";
1264
+ start: ({
1265
+ kind: "text";
1266
+ blockId: string;
1267
+ offset: number;
1268
+ }) | ({
1269
+ kind: "nodeEdge";
1270
+ node: {
1271
+ kind: "block";
1272
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1273
+ nodeId: string;
1274
+ };
1275
+ edge: "before" | "after";
1276
+ });
1277
+ end: ({
1278
+ kind: "text";
1279
+ blockId: string;
1280
+ offset: number;
1281
+ }) | ({
1282
+ kind: "nodeEdge";
1283
+ node: {
1284
+ kind: "block";
1285
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1286
+ nodeId: string;
1287
+ };
1288
+ edge: "before" | "after";
1289
+ });
744
1290
  };
745
1291
  value?: number | unknown;
1292
+ ref?: string;
746
1293
  blockId?: string;
747
1294
  start?: number;
748
1295
  end?: number;
@@ -756,14 +1303,36 @@ export interface DocFormatKerningParams {
756
1303
  changeMode?: string;
757
1304
  dryRun?: boolean;
758
1305
  target?: {
759
- kind: "text";
760
- blockId: string;
761
- range: {
762
- start: number;
763
- end: number;
764
- };
1306
+ kind: "selection";
1307
+ start: ({
1308
+ kind: "text";
1309
+ blockId: string;
1310
+ offset: number;
1311
+ }) | ({
1312
+ kind: "nodeEdge";
1313
+ node: {
1314
+ kind: "block";
1315
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1316
+ nodeId: string;
1317
+ };
1318
+ edge: "before" | "after";
1319
+ });
1320
+ end: ({
1321
+ kind: "text";
1322
+ blockId: string;
1323
+ offset: number;
1324
+ }) | ({
1325
+ kind: "nodeEdge";
1326
+ node: {
1327
+ kind: "block";
1328
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1329
+ nodeId: string;
1330
+ };
1331
+ edge: "before" | "after";
1332
+ });
765
1333
  };
766
1334
  value?: number | unknown;
1335
+ ref?: string;
767
1336
  blockId?: string;
768
1337
  start?: number;
769
1338
  end?: number;
@@ -777,14 +1346,36 @@ export interface DocFormatVanishParams {
777
1346
  changeMode?: string;
778
1347
  dryRun?: boolean;
779
1348
  target?: {
780
- kind: "text";
781
- blockId: string;
782
- range: {
783
- start: number;
784
- end: number;
785
- };
1349
+ kind: "selection";
1350
+ start: ({
1351
+ kind: "text";
1352
+ blockId: string;
1353
+ offset: number;
1354
+ }) | ({
1355
+ kind: "nodeEdge";
1356
+ node: {
1357
+ kind: "block";
1358
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1359
+ nodeId: string;
1360
+ };
1361
+ edge: "before" | "after";
1362
+ });
1363
+ end: ({
1364
+ kind: "text";
1365
+ blockId: string;
1366
+ offset: number;
1367
+ }) | ({
1368
+ kind: "nodeEdge";
1369
+ node: {
1370
+ kind: "block";
1371
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1372
+ nodeId: string;
1373
+ };
1374
+ edge: "before" | "after";
1375
+ });
786
1376
  };
787
1377
  value?: boolean | unknown;
1378
+ ref?: string;
788
1379
  blockId?: string;
789
1380
  start?: number;
790
1381
  end?: number;
@@ -798,14 +1389,36 @@ export interface DocFormatWebHiddenParams {
798
1389
  changeMode?: string;
799
1390
  dryRun?: boolean;
800
1391
  target?: {
801
- kind: "text";
802
- blockId: string;
803
- range: {
804
- start: number;
805
- end: number;
806
- };
1392
+ kind: "selection";
1393
+ start: ({
1394
+ kind: "text";
1395
+ blockId: string;
1396
+ offset: number;
1397
+ }) | ({
1398
+ kind: "nodeEdge";
1399
+ node: {
1400
+ kind: "block";
1401
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1402
+ nodeId: string;
1403
+ };
1404
+ edge: "before" | "after";
1405
+ });
1406
+ end: ({
1407
+ kind: "text";
1408
+ blockId: string;
1409
+ offset: number;
1410
+ }) | ({
1411
+ kind: "nodeEdge";
1412
+ node: {
1413
+ kind: "block";
1414
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1415
+ nodeId: string;
1416
+ };
1417
+ edge: "before" | "after";
1418
+ });
807
1419
  };
808
1420
  value?: boolean | unknown;
1421
+ ref?: string;
809
1422
  blockId?: string;
810
1423
  start?: number;
811
1424
  end?: number;
@@ -819,14 +1432,36 @@ export interface DocFormatSpecVanishParams {
819
1432
  changeMode?: string;
820
1433
  dryRun?: boolean;
821
1434
  target?: {
822
- kind: "text";
823
- blockId: string;
824
- range: {
825
- start: number;
826
- end: number;
827
- };
1435
+ kind: "selection";
1436
+ start: ({
1437
+ kind: "text";
1438
+ blockId: string;
1439
+ offset: number;
1440
+ }) | ({
1441
+ kind: "nodeEdge";
1442
+ node: {
1443
+ kind: "block";
1444
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1445
+ nodeId: string;
1446
+ };
1447
+ edge: "before" | "after";
1448
+ });
1449
+ end: ({
1450
+ kind: "text";
1451
+ blockId: string;
1452
+ offset: number;
1453
+ }) | ({
1454
+ kind: "nodeEdge";
1455
+ node: {
1456
+ kind: "block";
1457
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1458
+ nodeId: string;
1459
+ };
1460
+ edge: "before" | "after";
1461
+ });
828
1462
  };
829
1463
  value?: boolean | unknown;
1464
+ ref?: string;
830
1465
  blockId?: string;
831
1466
  start?: number;
832
1467
  end?: number;
@@ -840,14 +1475,36 @@ export interface DocFormatRtlParams {
840
1475
  changeMode?: string;
841
1476
  dryRun?: boolean;
842
1477
  target?: {
843
- kind: "text";
844
- blockId: string;
845
- range: {
846
- start: number;
847
- end: number;
848
- };
1478
+ kind: "selection";
1479
+ start: ({
1480
+ kind: "text";
1481
+ blockId: string;
1482
+ offset: number;
1483
+ }) | ({
1484
+ kind: "nodeEdge";
1485
+ node: {
1486
+ kind: "block";
1487
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1488
+ nodeId: string;
1489
+ };
1490
+ edge: "before" | "after";
1491
+ });
1492
+ end: ({
1493
+ kind: "text";
1494
+ blockId: string;
1495
+ offset: number;
1496
+ }) | ({
1497
+ kind: "nodeEdge";
1498
+ node: {
1499
+ kind: "block";
1500
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1501
+ nodeId: string;
1502
+ };
1503
+ edge: "before" | "after";
1504
+ });
849
1505
  };
850
1506
  value?: boolean | unknown;
1507
+ ref?: string;
851
1508
  blockId?: string;
852
1509
  start?: number;
853
1510
  end?: number;
@@ -861,14 +1518,36 @@ export interface DocFormatCsParams {
861
1518
  changeMode?: string;
862
1519
  dryRun?: boolean;
863
1520
  target?: {
864
- kind: "text";
865
- blockId: string;
866
- range: {
867
- start: number;
868
- end: number;
869
- };
1521
+ kind: "selection";
1522
+ start: ({
1523
+ kind: "text";
1524
+ blockId: string;
1525
+ offset: number;
1526
+ }) | ({
1527
+ kind: "nodeEdge";
1528
+ node: {
1529
+ kind: "block";
1530
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1531
+ nodeId: string;
1532
+ };
1533
+ edge: "before" | "after";
1534
+ });
1535
+ end: ({
1536
+ kind: "text";
1537
+ blockId: string;
1538
+ offset: number;
1539
+ }) | ({
1540
+ kind: "nodeEdge";
1541
+ node: {
1542
+ kind: "block";
1543
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1544
+ nodeId: string;
1545
+ };
1546
+ edge: "before" | "after";
1547
+ });
870
1548
  };
871
1549
  value?: boolean | unknown;
1550
+ ref?: string;
872
1551
  blockId?: string;
873
1552
  start?: number;
874
1553
  end?: number;
@@ -882,14 +1561,36 @@ export interface DocFormatBCsParams {
882
1561
  changeMode?: string;
883
1562
  dryRun?: boolean;
884
1563
  target?: {
885
- kind: "text";
886
- blockId: string;
887
- range: {
888
- start: number;
889
- end: number;
890
- };
1564
+ kind: "selection";
1565
+ start: ({
1566
+ kind: "text";
1567
+ blockId: string;
1568
+ offset: number;
1569
+ }) | ({
1570
+ kind: "nodeEdge";
1571
+ node: {
1572
+ kind: "block";
1573
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1574
+ nodeId: string;
1575
+ };
1576
+ edge: "before" | "after";
1577
+ });
1578
+ end: ({
1579
+ kind: "text";
1580
+ blockId: string;
1581
+ offset: number;
1582
+ }) | ({
1583
+ kind: "nodeEdge";
1584
+ node: {
1585
+ kind: "block";
1586
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1587
+ nodeId: string;
1588
+ };
1589
+ edge: "before" | "after";
1590
+ });
891
1591
  };
892
1592
  value?: boolean | unknown;
1593
+ ref?: string;
893
1594
  blockId?: string;
894
1595
  start?: number;
895
1596
  end?: number;
@@ -903,14 +1604,36 @@ export interface DocFormatICsParams {
903
1604
  changeMode?: string;
904
1605
  dryRun?: boolean;
905
1606
  target?: {
906
- kind: "text";
907
- blockId: string;
908
- range: {
909
- start: number;
910
- end: number;
911
- };
1607
+ kind: "selection";
1608
+ start: ({
1609
+ kind: "text";
1610
+ blockId: string;
1611
+ offset: number;
1612
+ }) | ({
1613
+ kind: "nodeEdge";
1614
+ node: {
1615
+ kind: "block";
1616
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1617
+ nodeId: string;
1618
+ };
1619
+ edge: "before" | "after";
1620
+ });
1621
+ end: ({
1622
+ kind: "text";
1623
+ blockId: string;
1624
+ offset: number;
1625
+ }) | ({
1626
+ kind: "nodeEdge";
1627
+ node: {
1628
+ kind: "block";
1629
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1630
+ nodeId: string;
1631
+ };
1632
+ edge: "before" | "after";
1633
+ });
912
1634
  };
913
1635
  value?: boolean | unknown;
1636
+ ref?: string;
914
1637
  blockId?: string;
915
1638
  start?: number;
916
1639
  end?: number;
@@ -924,12 +1647,33 @@ export interface DocFormatEastAsianLayoutParams {
924
1647
  changeMode?: string;
925
1648
  dryRun?: boolean;
926
1649
  target?: {
927
- kind: "text";
928
- blockId: string;
929
- range: {
930
- start: number;
931
- end: number;
932
- };
1650
+ kind: "selection";
1651
+ start: ({
1652
+ kind: "text";
1653
+ blockId: string;
1654
+ offset: number;
1655
+ }) | ({
1656
+ kind: "nodeEdge";
1657
+ node: {
1658
+ kind: "block";
1659
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1660
+ nodeId: string;
1661
+ };
1662
+ edge: "before" | "after";
1663
+ });
1664
+ end: ({
1665
+ kind: "text";
1666
+ blockId: string;
1667
+ offset: number;
1668
+ }) | ({
1669
+ kind: "nodeEdge";
1670
+ node: {
1671
+ kind: "block";
1672
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1673
+ nodeId: string;
1674
+ };
1675
+ edge: "before" | "after";
1676
+ });
933
1677
  };
934
1678
  value?: ({
935
1679
  id?: string | unknown;
@@ -938,6 +1682,7 @@ export interface DocFormatEastAsianLayoutParams {
938
1682
  vert?: boolean | unknown;
939
1683
  vertCompress?: boolean | unknown;
940
1684
  }) | unknown;
1685
+ ref?: string;
941
1686
  blockId?: string;
942
1687
  start?: number;
943
1688
  end?: number;
@@ -951,14 +1696,36 @@ export interface DocFormatEmParams {
951
1696
  changeMode?: string;
952
1697
  dryRun?: boolean;
953
1698
  target?: {
954
- kind: "text";
955
- blockId: string;
956
- range: {
957
- start: number;
958
- end: number;
959
- };
1699
+ kind: "selection";
1700
+ start: ({
1701
+ kind: "text";
1702
+ blockId: string;
1703
+ offset: number;
1704
+ }) | ({
1705
+ kind: "nodeEdge";
1706
+ node: {
1707
+ kind: "block";
1708
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1709
+ nodeId: string;
1710
+ };
1711
+ edge: "before" | "after";
1712
+ });
1713
+ end: ({
1714
+ kind: "text";
1715
+ blockId: string;
1716
+ offset: number;
1717
+ }) | ({
1718
+ kind: "nodeEdge";
1719
+ node: {
1720
+ kind: "block";
1721
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1722
+ nodeId: string;
1723
+ };
1724
+ edge: "before" | "after";
1725
+ });
960
1726
  };
961
1727
  value?: string | unknown;
1728
+ ref?: string;
962
1729
  blockId?: string;
963
1730
  start?: number;
964
1731
  end?: number;
@@ -972,17 +1739,39 @@ export interface DocFormatFitTextParams {
972
1739
  changeMode?: string;
973
1740
  dryRun?: boolean;
974
1741
  target?: {
975
- kind: "text";
976
- blockId: string;
977
- range: {
978
- start: number;
979
- end: number;
980
- };
1742
+ kind: "selection";
1743
+ start: ({
1744
+ kind: "text";
1745
+ blockId: string;
1746
+ offset: number;
1747
+ }) | ({
1748
+ kind: "nodeEdge";
1749
+ node: {
1750
+ kind: "block";
1751
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1752
+ nodeId: string;
1753
+ };
1754
+ edge: "before" | "after";
1755
+ });
1756
+ end: ({
1757
+ kind: "text";
1758
+ blockId: string;
1759
+ offset: number;
1760
+ }) | ({
1761
+ kind: "nodeEdge";
1762
+ node: {
1763
+ kind: "block";
1764
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1765
+ nodeId: string;
1766
+ };
1767
+ edge: "before" | "after";
1768
+ });
981
1769
  };
982
1770
  value?: ({
983
1771
  val?: number | unknown;
984
1772
  id?: string | unknown;
985
1773
  }) | unknown;
1774
+ ref?: string;
986
1775
  blockId?: string;
987
1776
  start?: number;
988
1777
  end?: number;
@@ -996,14 +1785,36 @@ export interface DocFormatSnapToGridParams {
996
1785
  changeMode?: string;
997
1786
  dryRun?: boolean;
998
1787
  target?: {
999
- kind: "text";
1000
- blockId: string;
1001
- range: {
1002
- start: number;
1003
- end: number;
1004
- };
1788
+ kind: "selection";
1789
+ start: ({
1790
+ kind: "text";
1791
+ blockId: string;
1792
+ offset: number;
1793
+ }) | ({
1794
+ kind: "nodeEdge";
1795
+ node: {
1796
+ kind: "block";
1797
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1798
+ nodeId: string;
1799
+ };
1800
+ edge: "before" | "after";
1801
+ });
1802
+ end: ({
1803
+ kind: "text";
1804
+ blockId: string;
1805
+ offset: number;
1806
+ }) | ({
1807
+ kind: "nodeEdge";
1808
+ node: {
1809
+ kind: "block";
1810
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1811
+ nodeId: string;
1812
+ };
1813
+ edge: "before" | "after";
1814
+ });
1005
1815
  };
1006
1816
  value?: boolean | unknown;
1817
+ ref?: string;
1007
1818
  blockId?: string;
1008
1819
  start?: number;
1009
1820
  end?: number;
@@ -1017,18 +1828,40 @@ export interface DocFormatLangParams {
1017
1828
  changeMode?: string;
1018
1829
  dryRun?: boolean;
1019
1830
  target?: {
1020
- kind: "text";
1021
- blockId: string;
1022
- range: {
1023
- start: number;
1024
- end: number;
1025
- };
1831
+ kind: "selection";
1832
+ start: ({
1833
+ kind: "text";
1834
+ blockId: string;
1835
+ offset: number;
1836
+ }) | ({
1837
+ kind: "nodeEdge";
1838
+ node: {
1839
+ kind: "block";
1840
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1841
+ nodeId: string;
1842
+ };
1843
+ edge: "before" | "after";
1844
+ });
1845
+ end: ({
1846
+ kind: "text";
1847
+ blockId: string;
1848
+ offset: number;
1849
+ }) | ({
1850
+ kind: "nodeEdge";
1851
+ node: {
1852
+ kind: "block";
1853
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1854
+ nodeId: string;
1855
+ };
1856
+ edge: "before" | "after";
1857
+ });
1026
1858
  };
1027
1859
  value?: ({
1028
1860
  val?: string | unknown;
1029
1861
  eastAsia?: string | unknown;
1030
1862
  bidi?: string | unknown;
1031
1863
  }) | unknown;
1864
+ ref?: string;
1032
1865
  blockId?: string;
1033
1866
  start?: number;
1034
1867
  end?: number;
@@ -1042,14 +1875,36 @@ export interface DocFormatOMathParams {
1042
1875
  changeMode?: string;
1043
1876
  dryRun?: boolean;
1044
1877
  target?: {
1045
- kind: "text";
1046
- blockId: string;
1047
- range: {
1048
- start: number;
1049
- end: number;
1050
- };
1878
+ kind: "selection";
1879
+ start: ({
1880
+ kind: "text";
1881
+ blockId: string;
1882
+ offset: number;
1883
+ }) | ({
1884
+ kind: "nodeEdge";
1885
+ node: {
1886
+ kind: "block";
1887
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1888
+ nodeId: string;
1889
+ };
1890
+ edge: "before" | "after";
1891
+ });
1892
+ end: ({
1893
+ kind: "text";
1894
+ blockId: string;
1895
+ offset: number;
1896
+ }) | ({
1897
+ kind: "nodeEdge";
1898
+ node: {
1899
+ kind: "block";
1900
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1901
+ nodeId: string;
1902
+ };
1903
+ edge: "before" | "after";
1904
+ });
1051
1905
  };
1052
1906
  value?: boolean | unknown;
1907
+ ref?: string;
1053
1908
  blockId?: string;
1054
1909
  start?: number;
1055
1910
  end?: number;
@@ -1063,14 +1918,36 @@ export interface DocFormatRStyleParams {
1063
1918
  changeMode?: string;
1064
1919
  dryRun?: boolean;
1065
1920
  target?: {
1066
- kind: "text";
1067
- blockId: string;
1068
- range: {
1069
- start: number;
1070
- end: number;
1071
- };
1921
+ kind: "selection";
1922
+ start: ({
1923
+ kind: "text";
1924
+ blockId: string;
1925
+ offset: number;
1926
+ }) | ({
1927
+ kind: "nodeEdge";
1928
+ node: {
1929
+ kind: "block";
1930
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1931
+ nodeId: string;
1932
+ };
1933
+ edge: "before" | "after";
1934
+ });
1935
+ end: ({
1936
+ kind: "text";
1937
+ blockId: string;
1938
+ offset: number;
1939
+ }) | ({
1940
+ kind: "nodeEdge";
1941
+ node: {
1942
+ kind: "block";
1943
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1944
+ nodeId: string;
1945
+ };
1946
+ edge: "before" | "after";
1947
+ });
1072
1948
  };
1073
1949
  value?: string | unknown;
1950
+ ref?: string;
1074
1951
  blockId?: string;
1075
1952
  start?: number;
1076
1953
  end?: number;
@@ -1084,12 +1961,33 @@ export interface DocFormatRFontsParams {
1084
1961
  changeMode?: string;
1085
1962
  dryRun?: boolean;
1086
1963
  target?: {
1087
- kind: "text";
1088
- blockId: string;
1089
- range: {
1090
- start: number;
1091
- end: number;
1092
- };
1964
+ kind: "selection";
1965
+ start: ({
1966
+ kind: "text";
1967
+ blockId: string;
1968
+ offset: number;
1969
+ }) | ({
1970
+ kind: "nodeEdge";
1971
+ node: {
1972
+ kind: "block";
1973
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1974
+ nodeId: string;
1975
+ };
1976
+ edge: "before" | "after";
1977
+ });
1978
+ end: ({
1979
+ kind: "text";
1980
+ blockId: string;
1981
+ offset: number;
1982
+ }) | ({
1983
+ kind: "nodeEdge";
1984
+ node: {
1985
+ kind: "block";
1986
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
1987
+ nodeId: string;
1988
+ };
1989
+ edge: "before" | "after";
1990
+ });
1093
1991
  };
1094
1992
  value?: ({
1095
1993
  ascii?: string | unknown;
@@ -1102,6 +2000,7 @@ export interface DocFormatRFontsParams {
1102
2000
  csTheme?: string | unknown;
1103
2001
  hint?: string | unknown;
1104
2002
  }) | unknown;
2003
+ ref?: string;
1105
2004
  blockId?: string;
1106
2005
  start?: number;
1107
2006
  end?: number;
@@ -1115,14 +2014,36 @@ export interface DocFormatFontSizeCsParams {
1115
2014
  changeMode?: string;
1116
2015
  dryRun?: boolean;
1117
2016
  target?: {
1118
- kind: "text";
1119
- blockId: string;
1120
- range: {
1121
- start: number;
1122
- end: number;
1123
- };
2017
+ kind: "selection";
2018
+ start: ({
2019
+ kind: "text";
2020
+ blockId: string;
2021
+ offset: number;
2022
+ }) | ({
2023
+ kind: "nodeEdge";
2024
+ node: {
2025
+ kind: "block";
2026
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
2027
+ nodeId: string;
2028
+ };
2029
+ edge: "before" | "after";
2030
+ });
2031
+ end: ({
2032
+ kind: "text";
2033
+ blockId: string;
2034
+ offset: number;
2035
+ }) | ({
2036
+ kind: "nodeEdge";
2037
+ node: {
2038
+ kind: "block";
2039
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
2040
+ nodeId: string;
2041
+ };
2042
+ edge: "before" | "after";
2043
+ });
1124
2044
  };
1125
2045
  value?: number | unknown;
2046
+ ref?: string;
1126
2047
  blockId?: string;
1127
2048
  start?: number;
1128
2049
  end?: number;
@@ -1136,14 +2057,36 @@ export interface DocFormatLigaturesParams {
1136
2057
  changeMode?: string;
1137
2058
  dryRun?: boolean;
1138
2059
  target?: {
1139
- kind: "text";
1140
- blockId: string;
1141
- range: {
1142
- start: number;
1143
- end: number;
1144
- };
2060
+ kind: "selection";
2061
+ start: ({
2062
+ kind: "text";
2063
+ blockId: string;
2064
+ offset: number;
2065
+ }) | ({
2066
+ kind: "nodeEdge";
2067
+ node: {
2068
+ kind: "block";
2069
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
2070
+ nodeId: string;
2071
+ };
2072
+ edge: "before" | "after";
2073
+ });
2074
+ end: ({
2075
+ kind: "text";
2076
+ blockId: string;
2077
+ offset: number;
2078
+ }) | ({
2079
+ kind: "nodeEdge";
2080
+ node: {
2081
+ kind: "block";
2082
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
2083
+ nodeId: string;
2084
+ };
2085
+ edge: "before" | "after";
2086
+ });
1145
2087
  };
1146
2088
  value?: string | unknown;
2089
+ ref?: string;
1147
2090
  blockId?: string;
1148
2091
  start?: number;
1149
2092
  end?: number;
@@ -1157,14 +2100,36 @@ export interface DocFormatNumFormParams {
1157
2100
  changeMode?: string;
1158
2101
  dryRun?: boolean;
1159
2102
  target?: {
1160
- kind: "text";
1161
- blockId: string;
1162
- range: {
1163
- start: number;
1164
- end: number;
1165
- };
2103
+ kind: "selection";
2104
+ start: ({
2105
+ kind: "text";
2106
+ blockId: string;
2107
+ offset: number;
2108
+ }) | ({
2109
+ kind: "nodeEdge";
2110
+ node: {
2111
+ kind: "block";
2112
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
2113
+ nodeId: string;
2114
+ };
2115
+ edge: "before" | "after";
2116
+ });
2117
+ end: ({
2118
+ kind: "text";
2119
+ blockId: string;
2120
+ offset: number;
2121
+ }) | ({
2122
+ kind: "nodeEdge";
2123
+ node: {
2124
+ kind: "block";
2125
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
2126
+ nodeId: string;
2127
+ };
2128
+ edge: "before" | "after";
2129
+ });
1166
2130
  };
1167
2131
  value?: string | unknown;
2132
+ ref?: string;
1168
2133
  blockId?: string;
1169
2134
  start?: number;
1170
2135
  end?: number;
@@ -1178,14 +2143,36 @@ export interface DocFormatNumSpacingParams {
1178
2143
  changeMode?: string;
1179
2144
  dryRun?: boolean;
1180
2145
  target?: {
1181
- kind: "text";
1182
- blockId: string;
1183
- range: {
1184
- start: number;
1185
- end: number;
1186
- };
2146
+ kind: "selection";
2147
+ start: ({
2148
+ kind: "text";
2149
+ blockId: string;
2150
+ offset: number;
2151
+ }) | ({
2152
+ kind: "nodeEdge";
2153
+ node: {
2154
+ kind: "block";
2155
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
2156
+ nodeId: string;
2157
+ };
2158
+ edge: "before" | "after";
2159
+ });
2160
+ end: ({
2161
+ kind: "text";
2162
+ blockId: string;
2163
+ offset: number;
2164
+ }) | ({
2165
+ kind: "nodeEdge";
2166
+ node: {
2167
+ kind: "block";
2168
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
2169
+ nodeId: string;
2170
+ };
2171
+ edge: "before" | "after";
2172
+ });
1187
2173
  };
1188
2174
  value?: string | unknown;
2175
+ ref?: string;
1189
2176
  blockId?: string;
1190
2177
  start?: number;
1191
2178
  end?: number;
@@ -1199,17 +2186,39 @@ export interface DocFormatStylisticSetsParams {
1199
2186
  changeMode?: string;
1200
2187
  dryRun?: boolean;
1201
2188
  target?: {
1202
- kind: "text";
1203
- blockId: string;
1204
- range: {
1205
- start: number;
1206
- end: number;
1207
- };
2189
+ kind: "selection";
2190
+ start: ({
2191
+ kind: "text";
2192
+ blockId: string;
2193
+ offset: number;
2194
+ }) | ({
2195
+ kind: "nodeEdge";
2196
+ node: {
2197
+ kind: "block";
2198
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
2199
+ nodeId: string;
2200
+ };
2201
+ edge: "before" | "after";
2202
+ });
2203
+ end: ({
2204
+ kind: "text";
2205
+ blockId: string;
2206
+ offset: number;
2207
+ }) | ({
2208
+ kind: "nodeEdge";
2209
+ node: {
2210
+ kind: "block";
2211
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
2212
+ nodeId: string;
2213
+ };
2214
+ edge: "before" | "after";
2215
+ });
1208
2216
  };
1209
2217
  value?: (Array<{
1210
2218
  id: number;
1211
2219
  val?: boolean;
1212
2220
  }>) | unknown;
2221
+ ref?: string;
1213
2222
  blockId?: string;
1214
2223
  start?: number;
1215
2224
  end?: number;
@@ -1223,14 +2232,36 @@ export interface DocFormatContextualAlternatesParams {
1223
2232
  changeMode?: string;
1224
2233
  dryRun?: boolean;
1225
2234
  target?: {
1226
- kind: "text";
1227
- blockId: string;
1228
- range: {
1229
- start: number;
1230
- end: number;
1231
- };
2235
+ kind: "selection";
2236
+ start: ({
2237
+ kind: "text";
2238
+ blockId: string;
2239
+ offset: number;
2240
+ }) | ({
2241
+ kind: "nodeEdge";
2242
+ node: {
2243
+ kind: "block";
2244
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
2245
+ nodeId: string;
2246
+ };
2247
+ edge: "before" | "after";
2248
+ });
2249
+ end: ({
2250
+ kind: "text";
2251
+ blockId: string;
2252
+ offset: number;
2253
+ }) | ({
2254
+ kind: "nodeEdge";
2255
+ node: {
2256
+ kind: "block";
2257
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
2258
+ nodeId: string;
2259
+ };
2260
+ edge: "before" | "after";
2261
+ });
1232
2262
  };
1233
2263
  value?: boolean | unknown;
2264
+ ref?: string;
1234
2265
  blockId?: string;
1235
2266
  start?: number;
1236
2267
  end?: number;
@@ -1243,8 +2274,259 @@ export interface DocStylesApplyParams {
1243
2274
  expectedRevision?: number;
1244
2275
  changeMode?: string;
1245
2276
  dryRun?: boolean;
1246
- target?: Record<string, unknown> | unknown[];
1247
- patch?: Record<string, unknown> | unknown[];
2277
+ target?: ({
2278
+ scope: "docDefaults";
2279
+ channel: "run";
2280
+ }) | ({
2281
+ scope: "docDefaults";
2282
+ channel: "paragraph";
2283
+ });
2284
+ patch?: ({
2285
+ bold?: boolean;
2286
+ boldCs?: boolean;
2287
+ italic?: boolean;
2288
+ iCs?: boolean;
2289
+ smallCaps?: boolean;
2290
+ strike?: boolean;
2291
+ dstrike?: boolean;
2292
+ emboss?: boolean;
2293
+ imprint?: boolean;
2294
+ outline?: boolean;
2295
+ shadow?: boolean;
2296
+ vanish?: boolean;
2297
+ webHidden?: boolean;
2298
+ specVanish?: boolean;
2299
+ snapToGrid?: boolean;
2300
+ noProof?: boolean;
2301
+ fontSize?: number;
2302
+ fontSizeCs?: number;
2303
+ letterSpacing?: number;
2304
+ kern?: number;
2305
+ position?: number;
2306
+ w?: number;
2307
+ textTransform?: "uppercase" | "none";
2308
+ vertAlign?: "superscript" | "subscript" | "baseline";
2309
+ em?: "none" | "dot" | "comma" | "circle" | "sesame";
2310
+ effect?: string;
2311
+ fontFamily?: {
2312
+ hint?: string;
2313
+ ascii?: string;
2314
+ hAnsi?: string;
2315
+ eastAsia?: string;
2316
+ cs?: string;
2317
+ val?: string;
2318
+ asciiTheme?: string;
2319
+ hAnsiTheme?: string;
2320
+ eastAsiaTheme?: string;
2321
+ cstheme?: string;
2322
+ };
2323
+ color?: {
2324
+ val?: string;
2325
+ themeColor?: string;
2326
+ themeTint?: string;
2327
+ themeShade?: string;
2328
+ };
2329
+ underline?: {
2330
+ val?: "single" | "double" | "thick" | "dotted" | "dottedHeavy" | "dash" | "dashedHeavy" | "dashLong" | "dashLongHeavy" | "dotDash" | "dashDotHeavy" | "dotDotDash" | "dashDotDotHeavy" | "wave" | "wavyHeavy" | "wavyDouble" | "words" | "none";
2331
+ color?: string;
2332
+ themeColor?: string;
2333
+ themeTint?: string;
2334
+ themeShade?: string;
2335
+ };
2336
+ borders?: {
2337
+ val?: string;
2338
+ color?: string;
2339
+ themeColor?: string;
2340
+ themeTint?: string;
2341
+ themeShade?: string;
2342
+ size?: number;
2343
+ space?: number;
2344
+ shadow?: boolean;
2345
+ frame?: boolean;
2346
+ };
2347
+ shading?: {
2348
+ color?: string;
2349
+ fill?: string;
2350
+ themeColor?: string;
2351
+ themeFill?: string;
2352
+ themeFillShade?: string;
2353
+ themeFillTint?: string;
2354
+ themeShade?: string;
2355
+ themeTint?: string;
2356
+ val?: string;
2357
+ };
2358
+ lang?: {
2359
+ val?: string;
2360
+ eastAsia?: string;
2361
+ bidi?: string;
2362
+ };
2363
+ eastAsianLayout?: {
2364
+ id?: number;
2365
+ combine?: boolean;
2366
+ combineBrackets?: string;
2367
+ vert?: boolean;
2368
+ vertCompress?: boolean;
2369
+ };
2370
+ fitText?: {
2371
+ val?: number;
2372
+ id?: number;
2373
+ };
2374
+ }) | ({
2375
+ keepLines?: boolean;
2376
+ keepNext?: boolean;
2377
+ widowControl?: boolean;
2378
+ contextualSpacing?: boolean;
2379
+ pageBreakBefore?: boolean;
2380
+ suppressAutoHyphens?: boolean;
2381
+ suppressLineNumbers?: boolean;
2382
+ suppressOverlap?: boolean;
2383
+ mirrorIndents?: boolean;
2384
+ wordWrap?: boolean;
2385
+ kinsoku?: boolean;
2386
+ overflowPunct?: boolean;
2387
+ topLinePunct?: boolean;
2388
+ autoSpaceDE?: boolean;
2389
+ autoSpaceDN?: boolean;
2390
+ adjustRightInd?: boolean;
2391
+ rightToLeft?: boolean;
2392
+ snapToGrid?: boolean;
2393
+ outlineLvl?: number;
2394
+ justification?: "left" | "center" | "right" | "justify" | "distribute";
2395
+ textAlignment?: "top" | "center" | "baseline" | "bottom" | "auto";
2396
+ textDirection?: "lrTb" | "tbRl" | "btLr" | "lrTbV" | "tbRlV" | "tbLrV";
2397
+ textboxTightWrap?: "none" | "allLines" | "firstAndLastLine" | "firstLineOnly" | "lastLineOnly";
2398
+ spacing?: {
2399
+ after?: number;
2400
+ afterAutospacing?: boolean;
2401
+ afterLines?: number;
2402
+ before?: number;
2403
+ beforeAutospacing?: boolean;
2404
+ beforeLines?: number;
2405
+ line?: number;
2406
+ lineRule?: "auto" | "exact" | "atLeast";
2407
+ };
2408
+ indent?: {
2409
+ end?: number;
2410
+ endChars?: number;
2411
+ firstLine?: number;
2412
+ firstLineChars?: number;
2413
+ hanging?: number;
2414
+ hangingChars?: number;
2415
+ left?: number;
2416
+ leftChars?: number;
2417
+ right?: number;
2418
+ rightChars?: number;
2419
+ start?: number;
2420
+ startChars?: number;
2421
+ };
2422
+ shading?: {
2423
+ color?: string;
2424
+ fill?: string;
2425
+ themeColor?: string;
2426
+ themeFill?: string;
2427
+ themeFillShade?: string;
2428
+ themeFillTint?: string;
2429
+ themeShade?: string;
2430
+ themeTint?: string;
2431
+ val?: string;
2432
+ };
2433
+ numberingProperties?: {
2434
+ ilvl?: number;
2435
+ numId?: number;
2436
+ };
2437
+ framePr?: {
2438
+ anchorLock?: boolean;
2439
+ dropCap?: string;
2440
+ h?: number;
2441
+ hAnchor?: string;
2442
+ hRule?: string;
2443
+ hSpace?: number;
2444
+ lines?: number;
2445
+ vAnchor?: string;
2446
+ vSpace?: number;
2447
+ w?: number;
2448
+ wrap?: string;
2449
+ x?: number;
2450
+ xAlign?: string;
2451
+ y?: number;
2452
+ yAlign?: string;
2453
+ };
2454
+ borders?: {
2455
+ top?: {
2456
+ val?: string;
2457
+ color?: string;
2458
+ themeColor?: string;
2459
+ themeTint?: string;
2460
+ themeShade?: string;
2461
+ size?: number;
2462
+ space?: number;
2463
+ shadow?: boolean;
2464
+ frame?: boolean;
2465
+ };
2466
+ bottom?: {
2467
+ val?: string;
2468
+ color?: string;
2469
+ themeColor?: string;
2470
+ themeTint?: string;
2471
+ themeShade?: string;
2472
+ size?: number;
2473
+ space?: number;
2474
+ shadow?: boolean;
2475
+ frame?: boolean;
2476
+ };
2477
+ left?: {
2478
+ val?: string;
2479
+ color?: string;
2480
+ themeColor?: string;
2481
+ themeTint?: string;
2482
+ themeShade?: string;
2483
+ size?: number;
2484
+ space?: number;
2485
+ shadow?: boolean;
2486
+ frame?: boolean;
2487
+ };
2488
+ right?: {
2489
+ val?: string;
2490
+ color?: string;
2491
+ themeColor?: string;
2492
+ themeTint?: string;
2493
+ themeShade?: string;
2494
+ size?: number;
2495
+ space?: number;
2496
+ shadow?: boolean;
2497
+ frame?: boolean;
2498
+ };
2499
+ between?: {
2500
+ val?: string;
2501
+ color?: string;
2502
+ themeColor?: string;
2503
+ themeTint?: string;
2504
+ themeShade?: string;
2505
+ size?: number;
2506
+ space?: number;
2507
+ shadow?: boolean;
2508
+ frame?: boolean;
2509
+ };
2510
+ bar?: {
2511
+ val?: string;
2512
+ color?: string;
2513
+ themeColor?: string;
2514
+ themeTint?: string;
2515
+ themeShade?: string;
2516
+ size?: number;
2517
+ space?: number;
2518
+ shadow?: boolean;
2519
+ frame?: boolean;
2520
+ };
2521
+ };
2522
+ tabStops?: Array<{
2523
+ tab?: {
2524
+ tabType?: string;
2525
+ pos?: number;
2526
+ leader?: string;
2527
+ };
2528
+ }>;
2529
+ });
1248
2530
  }
1249
2531
  export interface DocCreateParagraphParams {
1250
2532
  doc?: string;
@@ -2716,30 +3998,68 @@ export interface DocQueryMatchParams {
2716
3998
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
2717
3999
  kind?: "block" | "inline";
2718
4000
  });
2719
- within?: ({
4001
+ within?: {
2720
4002
  kind: "block";
2721
4003
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
2722
4004
  nodeId: string;
2723
- }) | ({
2724
- kind: "inline";
2725
- nodeType: "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
2726
- anchor: {
2727
- start: {
2728
- blockId: string;
2729
- offset: number;
2730
- };
2731
- end: {
2732
- blockId: string;
2733
- offset: number;
2734
- };
2735
- };
2736
- });
4005
+ };
2737
4006
  require?: string;
2738
4007
  mode?: string;
2739
4008
  includeNodes?: boolean;
2740
4009
  limit?: number;
2741
4010
  offset?: number;
2742
4011
  }
4012
+ export interface DocRangesResolveParams {
4013
+ doc?: string;
4014
+ sessionId?: string;
4015
+ start: ({
4016
+ kind: "document";
4017
+ edge: "start" | "end";
4018
+ }) | ({
4019
+ kind: "point";
4020
+ point: ({
4021
+ kind: "text";
4022
+ blockId: string;
4023
+ offset: number;
4024
+ }) | ({
4025
+ kind: "nodeEdge";
4026
+ node: {
4027
+ kind: "block";
4028
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
4029
+ nodeId: string;
4030
+ };
4031
+ edge: "before" | "after";
4032
+ });
4033
+ }) | ({
4034
+ kind: "ref";
4035
+ ref: string;
4036
+ boundary: "start" | "end";
4037
+ });
4038
+ end: ({
4039
+ kind: "document";
4040
+ edge: "start" | "end";
4041
+ }) | ({
4042
+ kind: "point";
4043
+ point: ({
4044
+ kind: "text";
4045
+ blockId: string;
4046
+ offset: number;
4047
+ }) | ({
4048
+ kind: "nodeEdge";
4049
+ node: {
4050
+ kind: "block";
4051
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
4052
+ nodeId: string;
4053
+ };
4054
+ edge: "before" | "after";
4055
+ });
4056
+ }) | ({
4057
+ kind: "ref";
4058
+ ref: string;
4059
+ boundary: "start" | "end";
4060
+ });
4061
+ expectedRevision?: string;
4062
+ }
2743
4063
  export interface DocMutationsPreviewParams {
2744
4064
  doc?: string;
2745
4065
  sessionId?: string;
@@ -2761,46 +4081,51 @@ export interface DocMutationsPreviewParams {
2761
4081
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
2762
4082
  kind?: "block" | "inline";
2763
4083
  });
2764
- within?: ({
4084
+ within?: {
2765
4085
  kind: "block";
2766
4086
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
2767
4087
  nodeId: string;
2768
- }) | ({
2769
- kind: "inline";
2770
- nodeType: "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
2771
- anchor: {
2772
- start: {
2773
- blockId: string;
2774
- offset: number;
2775
- };
2776
- end: {
2777
- blockId: string;
2778
- offset: number;
2779
- };
2780
- };
2781
- });
4088
+ };
2782
4089
  require: "first" | "exactlyOne" | "all";
2783
4090
  }) | ({
2784
4091
  by: "ref";
2785
4092
  ref: string;
2786
- within?: ({
4093
+ within?: {
2787
4094
  kind: "block";
2788
4095
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
2789
4096
  nodeId: string;
2790
- }) | ({
2791
- kind: "inline";
2792
- nodeType: "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
2793
- anchor: {
2794
- start: {
2795
- blockId: string;
2796
- offset: number;
4097
+ };
4098
+ }) | ({
4099
+ by: "target";
4100
+ target: {
4101
+ kind: "selection";
4102
+ start: ({
4103
+ kind: "text";
4104
+ blockId: string;
4105
+ offset: number;
4106
+ }) | ({
4107
+ kind: "nodeEdge";
4108
+ node: {
4109
+ kind: "block";
4110
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
4111
+ nodeId: string;
2797
4112
  };
2798
- end: {
2799
- blockId: string;
2800
- offset: number;
4113
+ edge: "before" | "after";
4114
+ });
4115
+ end: ({
4116
+ kind: "text";
4117
+ blockId: string;
4118
+ offset: number;
4119
+ }) | ({
4120
+ kind: "nodeEdge";
4121
+ node: {
4122
+ kind: "block";
4123
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
4124
+ nodeId: string;
2801
4125
  };
2802
- };
2803
- });
4126
+ edge: "before" | "after";
4127
+ });
4128
+ };
2804
4129
  });
2805
4130
  args: {
2806
4131
  replacement: ({
@@ -2842,24 +4167,11 @@ export interface DocMutationsPreviewParams {
2842
4167
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
2843
4168
  kind?: "block" | "inline";
2844
4169
  });
2845
- within?: ({
4170
+ within?: {
2846
4171
  kind: "block";
2847
4172
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
2848
4173
  nodeId: string;
2849
- }) | ({
2850
- kind: "inline";
2851
- nodeType: "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
2852
- anchor: {
2853
- start: {
2854
- blockId: string;
2855
- offset: number;
2856
- };
2857
- end: {
2858
- blockId: string;
2859
- offset: number;
2860
- };
2861
- };
2862
- });
4174
+ };
2863
4175
  require: "first" | "exactlyOne";
2864
4176
  };
2865
4177
  args: {
@@ -2894,48 +4206,55 @@ export interface DocMutationsPreviewParams {
2894
4206
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
2895
4207
  kind?: "block" | "inline";
2896
4208
  });
2897
- within?: ({
4209
+ within?: {
2898
4210
  kind: "block";
2899
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
2900
- nodeId: string;
2901
- }) | ({
2902
- kind: "inline";
2903
- nodeType: "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
2904
- anchor: {
2905
- start: {
2906
- blockId: string;
2907
- offset: number;
2908
- };
2909
- end: {
2910
- blockId: string;
2911
- offset: number;
2912
- };
2913
- };
2914
- });
4211
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
4212
+ nodeId: string;
4213
+ };
2915
4214
  require: "first" | "exactlyOne" | "all";
2916
4215
  }) | ({
2917
4216
  by: "ref";
2918
4217
  ref: string;
2919
- within?: ({
4218
+ within?: {
2920
4219
  kind: "block";
2921
4220
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
2922
4221
  nodeId: string;
2923
- }) | ({
2924
- kind: "inline";
2925
- nodeType: "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
2926
- anchor: {
2927
- start: {
2928
- blockId: string;
2929
- offset: number;
4222
+ };
4223
+ }) | ({
4224
+ by: "target";
4225
+ target: {
4226
+ kind: "selection";
4227
+ start: ({
4228
+ kind: "text";
4229
+ blockId: string;
4230
+ offset: number;
4231
+ }) | ({
4232
+ kind: "nodeEdge";
4233
+ node: {
4234
+ kind: "block";
4235
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
4236
+ nodeId: string;
2930
4237
  };
2931
- end: {
2932
- blockId: string;
2933
- offset: number;
4238
+ edge: "before" | "after";
4239
+ });
4240
+ end: ({
4241
+ kind: "text";
4242
+ blockId: string;
4243
+ offset: number;
4244
+ }) | ({
4245
+ kind: "nodeEdge";
4246
+ node: {
4247
+ kind: "block";
4248
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
4249
+ nodeId: string;
2934
4250
  };
2935
- };
2936
- });
4251
+ edge: "before" | "after";
4252
+ });
4253
+ };
2937
4254
  });
2938
- args: Record<string, unknown>;
4255
+ args: {
4256
+ behavior?: "selection" | "exact";
4257
+ };
2939
4258
  }) | ({
2940
4259
  id: string;
2941
4260
  op: "format.apply";
@@ -2951,46 +4270,51 @@ export interface DocMutationsPreviewParams {
2951
4270
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
2952
4271
  kind?: "block" | "inline";
2953
4272
  });
2954
- within?: ({
4273
+ within?: {
2955
4274
  kind: "block";
2956
4275
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
2957
4276
  nodeId: string;
2958
- }) | ({
2959
- kind: "inline";
2960
- nodeType: "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
2961
- anchor: {
2962
- start: {
2963
- blockId: string;
2964
- offset: number;
2965
- };
2966
- end: {
2967
- blockId: string;
2968
- offset: number;
2969
- };
2970
- };
2971
- });
4277
+ };
2972
4278
  require: "first" | "exactlyOne" | "all";
2973
4279
  }) | ({
2974
4280
  by: "ref";
2975
4281
  ref: string;
2976
- within?: ({
4282
+ within?: {
2977
4283
  kind: "block";
2978
4284
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
2979
4285
  nodeId: string;
2980
- }) | ({
2981
- kind: "inline";
2982
- nodeType: "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
2983
- anchor: {
2984
- start: {
2985
- blockId: string;
2986
- offset: number;
4286
+ };
4287
+ }) | ({
4288
+ by: "target";
4289
+ target: {
4290
+ kind: "selection";
4291
+ start: ({
4292
+ kind: "text";
4293
+ blockId: string;
4294
+ offset: number;
4295
+ }) | ({
4296
+ kind: "nodeEdge";
4297
+ node: {
4298
+ kind: "block";
4299
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
4300
+ nodeId: string;
2987
4301
  };
2988
- end: {
2989
- blockId: string;
2990
- offset: number;
4302
+ edge: "before" | "after";
4303
+ });
4304
+ end: ({
4305
+ kind: "text";
4306
+ blockId: string;
4307
+ offset: number;
4308
+ }) | ({
4309
+ kind: "nodeEdge";
4310
+ node: {
4311
+ kind: "block";
4312
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
4313
+ nodeId: string;
2991
4314
  };
2992
- };
2993
- });
4315
+ edge: "before" | "after";
4316
+ });
4317
+ };
2994
4318
  });
2995
4319
  args: {
2996
4320
  inline: {
@@ -3093,24 +4417,11 @@ export interface DocMutationsPreviewParams {
3093
4417
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
3094
4418
  kind?: "block" | "inline";
3095
4419
  });
3096
- within?: ({
4420
+ within?: {
3097
4421
  kind: "block";
3098
4422
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
3099
4423
  nodeId: string;
3100
- }) | ({
3101
- kind: "inline";
3102
- nodeType: "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
3103
- anchor: {
3104
- start: {
3105
- blockId: string;
3106
- offset: number;
3107
- };
3108
- end: {
3109
- blockId: string;
3110
- offset: number;
3111
- };
3112
- };
3113
- });
4424
+ };
3114
4425
  };
3115
4426
  args: {
3116
4427
  expectCount: number;
@@ -3140,46 +4451,51 @@ export interface DocMutationsApplyParams {
3140
4451
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
3141
4452
  kind?: "block" | "inline";
3142
4453
  });
3143
- within?: ({
4454
+ within?: {
3144
4455
  kind: "block";
3145
4456
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
3146
4457
  nodeId: string;
3147
- }) | ({
3148
- kind: "inline";
3149
- nodeType: "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
3150
- anchor: {
3151
- start: {
3152
- blockId: string;
3153
- offset: number;
3154
- };
3155
- end: {
3156
- blockId: string;
3157
- offset: number;
3158
- };
3159
- };
3160
- });
4458
+ };
3161
4459
  require: "first" | "exactlyOne" | "all";
3162
4460
  }) | ({
3163
4461
  by: "ref";
3164
4462
  ref: string;
3165
- within?: ({
4463
+ within?: {
3166
4464
  kind: "block";
3167
4465
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
3168
4466
  nodeId: string;
3169
- }) | ({
3170
- kind: "inline";
3171
- nodeType: "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
3172
- anchor: {
3173
- start: {
3174
- blockId: string;
3175
- offset: number;
4467
+ };
4468
+ }) | ({
4469
+ by: "target";
4470
+ target: {
4471
+ kind: "selection";
4472
+ start: ({
4473
+ kind: "text";
4474
+ blockId: string;
4475
+ offset: number;
4476
+ }) | ({
4477
+ kind: "nodeEdge";
4478
+ node: {
4479
+ kind: "block";
4480
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
4481
+ nodeId: string;
3176
4482
  };
3177
- end: {
3178
- blockId: string;
3179
- offset: number;
4483
+ edge: "before" | "after";
4484
+ });
4485
+ end: ({
4486
+ kind: "text";
4487
+ blockId: string;
4488
+ offset: number;
4489
+ }) | ({
4490
+ kind: "nodeEdge";
4491
+ node: {
4492
+ kind: "block";
4493
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
4494
+ nodeId: string;
3180
4495
  };
3181
- };
3182
- });
4496
+ edge: "before" | "after";
4497
+ });
4498
+ };
3183
4499
  });
3184
4500
  args: {
3185
4501
  replacement: ({
@@ -3221,24 +4537,11 @@ export interface DocMutationsApplyParams {
3221
4537
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
3222
4538
  kind?: "block" | "inline";
3223
4539
  });
3224
- within?: ({
4540
+ within?: {
3225
4541
  kind: "block";
3226
4542
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
3227
4543
  nodeId: string;
3228
- }) | ({
3229
- kind: "inline";
3230
- nodeType: "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
3231
- anchor: {
3232
- start: {
3233
- blockId: string;
3234
- offset: number;
3235
- };
3236
- end: {
3237
- blockId: string;
3238
- offset: number;
3239
- };
3240
- };
3241
- });
4544
+ };
3242
4545
  require: "first" | "exactlyOne";
3243
4546
  };
3244
4547
  args: {
@@ -3273,48 +4576,55 @@ export interface DocMutationsApplyParams {
3273
4576
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
3274
4577
  kind?: "block" | "inline";
3275
4578
  });
3276
- within?: ({
4579
+ within?: {
3277
4580
  kind: "block";
3278
4581
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
3279
4582
  nodeId: string;
3280
- }) | ({
3281
- kind: "inline";
3282
- nodeType: "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
3283
- anchor: {
3284
- start: {
3285
- blockId: string;
3286
- offset: number;
3287
- };
3288
- end: {
3289
- blockId: string;
3290
- offset: number;
3291
- };
3292
- };
3293
- });
4583
+ };
3294
4584
  require: "first" | "exactlyOne" | "all";
3295
4585
  }) | ({
3296
4586
  by: "ref";
3297
4587
  ref: string;
3298
- within?: ({
4588
+ within?: {
3299
4589
  kind: "block";
3300
4590
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
3301
4591
  nodeId: string;
3302
- }) | ({
3303
- kind: "inline";
3304
- nodeType: "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
3305
- anchor: {
3306
- start: {
3307
- blockId: string;
3308
- offset: number;
4592
+ };
4593
+ }) | ({
4594
+ by: "target";
4595
+ target: {
4596
+ kind: "selection";
4597
+ start: ({
4598
+ kind: "text";
4599
+ blockId: string;
4600
+ offset: number;
4601
+ }) | ({
4602
+ kind: "nodeEdge";
4603
+ node: {
4604
+ kind: "block";
4605
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
4606
+ nodeId: string;
3309
4607
  };
3310
- end: {
3311
- blockId: string;
3312
- offset: number;
4608
+ edge: "before" | "after";
4609
+ });
4610
+ end: ({
4611
+ kind: "text";
4612
+ blockId: string;
4613
+ offset: number;
4614
+ }) | ({
4615
+ kind: "nodeEdge";
4616
+ node: {
4617
+ kind: "block";
4618
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
4619
+ nodeId: string;
3313
4620
  };
3314
- };
3315
- });
4621
+ edge: "before" | "after";
4622
+ });
4623
+ };
3316
4624
  });
3317
- args: Record<string, unknown>;
4625
+ args: {
4626
+ behavior?: "selection" | "exact";
4627
+ };
3318
4628
  }) | ({
3319
4629
  id: string;
3320
4630
  op: "format.apply";
@@ -3330,46 +4640,51 @@ export interface DocMutationsApplyParams {
3330
4640
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
3331
4641
  kind?: "block" | "inline";
3332
4642
  });
3333
- within?: ({
4643
+ within?: {
3334
4644
  kind: "block";
3335
4645
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
3336
4646
  nodeId: string;
3337
- }) | ({
3338
- kind: "inline";
3339
- nodeType: "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
3340
- anchor: {
3341
- start: {
3342
- blockId: string;
3343
- offset: number;
3344
- };
3345
- end: {
3346
- blockId: string;
3347
- offset: number;
3348
- };
3349
- };
3350
- });
4647
+ };
3351
4648
  require: "first" | "exactlyOne" | "all";
3352
4649
  }) | ({
3353
4650
  by: "ref";
3354
4651
  ref: string;
3355
- within?: ({
4652
+ within?: {
3356
4653
  kind: "block";
3357
4654
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
3358
4655
  nodeId: string;
3359
- }) | ({
3360
- kind: "inline";
3361
- nodeType: "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
3362
- anchor: {
3363
- start: {
3364
- blockId: string;
3365
- offset: number;
4656
+ };
4657
+ }) | ({
4658
+ by: "target";
4659
+ target: {
4660
+ kind: "selection";
4661
+ start: ({
4662
+ kind: "text";
4663
+ blockId: string;
4664
+ offset: number;
4665
+ }) | ({
4666
+ kind: "nodeEdge";
4667
+ node: {
4668
+ kind: "block";
4669
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
4670
+ nodeId: string;
3366
4671
  };
3367
- end: {
3368
- blockId: string;
3369
- offset: number;
4672
+ edge: "before" | "after";
4673
+ });
4674
+ end: ({
4675
+ kind: "text";
4676
+ blockId: string;
4677
+ offset: number;
4678
+ }) | ({
4679
+ kind: "nodeEdge";
4680
+ node: {
4681
+ kind: "block";
4682
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
4683
+ nodeId: string;
3370
4684
  };
3371
- };
3372
- });
4685
+ edge: "before" | "after";
4686
+ });
4687
+ };
3373
4688
  });
3374
4689
  args: {
3375
4690
  inline: {
@@ -3472,24 +4787,11 @@ export interface DocMutationsApplyParams {
3472
4787
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
3473
4788
  kind?: "block" | "inline";
3474
4789
  });
3475
- within?: ({
4790
+ within?: {
3476
4791
  kind: "block";
3477
4792
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
3478
4793
  nodeId: string;
3479
- }) | ({
3480
- kind: "inline";
3481
- nodeType: "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
3482
- anchor: {
3483
- start: {
3484
- blockId: string;
3485
- offset: number;
3486
- };
3487
- end: {
3488
- blockId: string;
3489
- offset: number;
3490
- };
3491
- };
3492
- });
4794
+ };
3493
4795
  };
3494
4796
  args: {
3495
4797
  expectCount: number;
@@ -4865,24 +6167,11 @@ export interface DocImagesRemoveCaptionParams {
4865
6167
  export interface DocHyperlinksListParams {
4866
6168
  doc?: string;
4867
6169
  sessionId?: string;
4868
- within?: ({
6170
+ within?: {
4869
6171
  kind: "block";
4870
6172
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
4871
6173
  nodeId: string;
4872
- }) | ({
4873
- kind: "inline";
4874
- nodeType: "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
4875
- anchor: {
4876
- start: {
4877
- blockId: string;
4878
- offset: number;
4879
- };
4880
- end: {
4881
- blockId: string;
4882
- offset: number;
4883
- };
4884
- };
4885
- });
6174
+ };
4886
6175
  hrefPattern?: string;
4887
6176
  anchor?: string;
4888
6177
  textPattern?: string;
@@ -6985,6 +8274,65 @@ export interface DocAuthoritiesEntriesRemoveParams {
6985
8274
  };
6986
8275
  };
6987
8276
  }
8277
+ export interface DocDiffCaptureParams {
8278
+ doc?: string;
8279
+ sessionId?: string;
8280
+ }
8281
+ export interface DocDiffCompareParams {
8282
+ doc?: string;
8283
+ sessionId?: string;
8284
+ targetSnapshot: {
8285
+ version: "sd-diff-snapshot/v1";
8286
+ engine: "super-editor";
8287
+ fingerprint: string;
8288
+ coverage: {
8289
+ body: true;
8290
+ comments: boolean;
8291
+ styles: boolean;
8292
+ numbering: boolean;
8293
+ headerFooters: false;
8294
+ };
8295
+ payload: Record<string, unknown>;
8296
+ };
8297
+ }
8298
+ export interface DocDiffApplyParams {
8299
+ doc?: string;
8300
+ sessionId?: string;
8301
+ out?: string;
8302
+ force?: boolean;
8303
+ expectedRevision?: number;
8304
+ changeMode?: string;
8305
+ diff: {
8306
+ version: "sd-diff-payload/v1";
8307
+ engine: "super-editor";
8308
+ baseFingerprint: string;
8309
+ targetFingerprint: string;
8310
+ coverage: {
8311
+ body: true;
8312
+ comments: boolean;
8313
+ styles: boolean;
8314
+ numbering: boolean;
8315
+ headerFooters: false;
8316
+ };
8317
+ summary: {
8318
+ hasChanges: boolean;
8319
+ changedComponents: Array<"body" | "comments" | "styles" | "numbering">;
8320
+ body: {
8321
+ hasChanges: boolean;
8322
+ };
8323
+ comments: {
8324
+ hasChanges: boolean;
8325
+ };
8326
+ styles: {
8327
+ hasChanges: boolean;
8328
+ };
8329
+ numbering: {
8330
+ hasChanges: boolean;
8331
+ };
8332
+ };
8333
+ payload: Record<string, unknown>;
8334
+ };
8335
+ }
6988
8336
  export interface DocOpenParams {
6989
8337
  doc?: string;
6990
8338
  sessionId?: string;
@@ -7037,23 +8385,7 @@ export type DocGetResult = {
7037
8385
  };
7038
8386
  export type DocFindResult = {
7039
8387
  items: Array<{
7040
- address: {
7041
- anchor?: {
7042
- end?: {
7043
- blockId: string;
7044
- offset: number;
7045
- };
7046
- start?: {
7047
- blockId: string;
7048
- offset: number;
7049
- };
7050
- };
7051
- evaluatedRevision?: string;
7052
- kind: "content" | "inline" | "annotation" | "section";
7053
- nodeId?: string;
7054
- path?: Array<string | number>;
7055
- stability: "stable" | "ephemeral";
7056
- };
8388
+ address: unknown;
7057
8389
  context?: Record<string, unknown>;
7058
8390
  node: Record<string, unknown>;
7059
8391
  }>;
@@ -7062,44 +8394,12 @@ export type DocFindResult = {
7062
8394
  total: number;
7063
8395
  };
7064
8396
  export type DocGetNodeResult = {
7065
- address: {
7066
- anchor?: {
7067
- end?: {
7068
- blockId: string;
7069
- offset: number;
7070
- };
7071
- start?: {
7072
- blockId: string;
7073
- offset: number;
7074
- };
7075
- };
7076
- evaluatedRevision?: string;
7077
- kind: "content" | "inline" | "annotation" | "section";
7078
- nodeId?: string;
7079
- path?: Array<string | number>;
7080
- stability: "stable" | "ephemeral";
7081
- };
8397
+ address: unknown;
7082
8398
  context?: Record<string, unknown>;
7083
8399
  node: Record<string, unknown>;
7084
8400
  };
7085
8401
  export type DocGetNodeByIdResult = {
7086
- address: {
7087
- anchor?: {
7088
- end?: {
7089
- blockId: string;
7090
- offset: number;
7091
- };
7092
- start?: {
7093
- blockId: string;
7094
- offset: number;
7095
- };
7096
- };
7097
- evaluatedRevision?: string;
7098
- kind: "content" | "inline" | "annotation" | "section";
7099
- nodeId?: string;
7100
- path?: Array<string | number>;
7101
- stability: "stable" | "ephemeral";
7102
- };
8402
+ address: unknown;
7103
8403
  context?: Record<string, unknown>;
7104
8404
  node: Record<string, unknown>;
7105
8405
  };
@@ -7145,40 +8445,9 @@ export type DocInsertResult = {
7145
8445
  before: string;
7146
8446
  };
7147
8447
  resolution?: {
7148
- requestedTarget?: {
7149
- anchor?: {
7150
- end?: {
7151
- blockId: string;
7152
- offset: number;
7153
- };
7154
- start?: {
7155
- blockId: string;
7156
- offset: number;
7157
- };
7158
- };
7159
- evaluatedRevision?: string;
7160
- kind: "content" | "inline" | "annotation" | "section";
7161
- nodeId?: string;
7162
- path?: Array<string | number>;
7163
- stability: "stable" | "ephemeral";
7164
- };
7165
- target: {
7166
- anchor?: {
7167
- end?: {
7168
- blockId: string;
7169
- offset: number;
7170
- };
7171
- start?: {
7172
- blockId: string;
7173
- offset: number;
7174
- };
7175
- };
7176
- evaluatedRevision?: string;
7177
- kind: "content" | "inline" | "annotation" | "section";
7178
- nodeId?: string;
7179
- path?: Array<string | number>;
7180
- stability: "stable" | "ephemeral";
7181
- };
8448
+ range: unknown;
8449
+ selectionTarget?: unknown;
8450
+ target: unknown | unknown;
7182
8451
  };
7183
8452
  success: true;
7184
8453
  };
@@ -7188,40 +8457,9 @@ export type DocReplaceResult = {
7188
8457
  before: string;
7189
8458
  };
7190
8459
  resolution?: {
7191
- requestedTarget?: {
7192
- anchor?: {
7193
- end?: {
7194
- blockId: string;
7195
- offset: number;
7196
- };
7197
- start?: {
7198
- blockId: string;
7199
- offset: number;
7200
- };
7201
- };
7202
- evaluatedRevision?: string;
7203
- kind: "content" | "inline" | "annotation" | "section";
7204
- nodeId?: string;
7205
- path?: Array<string | number>;
7206
- stability: "stable" | "ephemeral";
7207
- };
7208
- target: {
7209
- anchor?: {
7210
- end?: {
7211
- blockId: string;
7212
- offset: number;
7213
- };
7214
- start?: {
7215
- blockId: string;
7216
- offset: number;
7217
- };
7218
- };
7219
- evaluatedRevision?: string;
7220
- kind: "content" | "inline" | "annotation" | "section";
7221
- nodeId?: string;
7222
- path?: Array<string | number>;
7223
- stability: "stable" | "ephemeral";
7224
- };
8460
+ range: unknown;
8461
+ selectionTarget?: unknown;
8462
+ target: unknown | unknown;
7225
8463
  };
7226
8464
  success: true;
7227
8465
  };
@@ -8008,6 +9246,7 @@ export type DocQueryMatchResult = {
8008
9246
  id: string;
8009
9247
  matchKind: "text";
8010
9248
  snippet: string;
9249
+ target: unknown;
8011
9250
  }) | ({
8012
9251
  address: unknown;
8013
9252
  blocks: Array<unknown>;
@@ -8021,6 +9260,24 @@ export type DocQueryMatchResult = {
8021
9260
  page: unknown;
8022
9261
  total: number;
8023
9262
  };
9263
+ export type DocRangesResolveResult = {
9264
+ evaluatedRevision: string;
9265
+ handle: {
9266
+ coversFullTarget: boolean;
9267
+ ref: string | null;
9268
+ refStability: "ephemeral";
9269
+ };
9270
+ preview: {
9271
+ blocks: Array<{
9272
+ nodeId: string;
9273
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
9274
+ textPreview: string;
9275
+ }>;
9276
+ text: string;
9277
+ truncated: boolean;
9278
+ };
9279
+ target: unknown;
9280
+ };
8024
9281
  export type DocMutationsPreviewResult = {
8025
9282
  evaluatedRevision: string;
8026
9283
  failures?: Array<Record<string, unknown>>;
@@ -9008,6 +10265,24 @@ export type DocCapabilitiesGetResult = {
9008
10265
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
9009
10266
  tracked: boolean;
9010
10267
  };
10268
+ "diff.apply": {
10269
+ available: boolean;
10270
+ dryRun: boolean;
10271
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
10272
+ tracked: boolean;
10273
+ };
10274
+ "diff.capture": {
10275
+ available: boolean;
10276
+ dryRun: boolean;
10277
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
10278
+ tracked: boolean;
10279
+ };
10280
+ "diff.compare": {
10281
+ available: boolean;
10282
+ dryRun: boolean;
10283
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
10284
+ tracked: boolean;
10285
+ };
9011
10286
  "fields.get": {
9012
10287
  available: boolean;
9013
10288
  dryRun: boolean;
@@ -10028,6 +11303,12 @@ export type DocCapabilitiesGetResult = {
10028
11303
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
10029
11304
  tracked: boolean;
10030
11305
  };
11306
+ "ranges.resolve": {
11307
+ available: boolean;
11308
+ dryRun: boolean;
11309
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
11310
+ tracked: boolean;
11311
+ };
10031
11312
  replace: {
10032
11313
  available: boolean;
10033
11314
  dryRun: boolean;
@@ -12050,6 +13331,78 @@ export type DocAuthoritiesEntriesRemoveResult = {
12050
13331
  };
12051
13332
  success: true;
12052
13333
  };
13334
+ export type DocDiffCaptureResult = {
13335
+ coverage: {
13336
+ body: true;
13337
+ comments: boolean;
13338
+ headerFooters: false;
13339
+ numbering: boolean;
13340
+ styles: boolean;
13341
+ };
13342
+ engine: "super-editor";
13343
+ fingerprint: string;
13344
+ payload: Record<string, unknown>;
13345
+ version: "sd-diff-snapshot/v1";
13346
+ };
13347
+ export type DocDiffCompareResult = {
13348
+ baseFingerprint: string;
13349
+ coverage: {
13350
+ body: true;
13351
+ comments: boolean;
13352
+ headerFooters: false;
13353
+ numbering: boolean;
13354
+ styles: boolean;
13355
+ };
13356
+ engine: "super-editor";
13357
+ payload: Record<string, unknown>;
13358
+ summary: {
13359
+ body: {
13360
+ hasChanges: boolean;
13361
+ };
13362
+ changedComponents: Array<"body" | "comments" | "styles" | "numbering">;
13363
+ comments: {
13364
+ hasChanges: boolean;
13365
+ };
13366
+ hasChanges: boolean;
13367
+ numbering: {
13368
+ hasChanges: boolean;
13369
+ };
13370
+ styles: {
13371
+ hasChanges: boolean;
13372
+ };
13373
+ };
13374
+ targetFingerprint: string;
13375
+ version: "sd-diff-payload/v1";
13376
+ };
13377
+ export type DocDiffApplyResult = {
13378
+ appliedOperations: number;
13379
+ baseFingerprint: string;
13380
+ coverage: {
13381
+ body: true;
13382
+ comments: boolean;
13383
+ headerFooters: false;
13384
+ numbering: boolean;
13385
+ styles: boolean;
13386
+ };
13387
+ diagnostics: Array<string>;
13388
+ summary: {
13389
+ body: {
13390
+ hasChanges: boolean;
13391
+ };
13392
+ changedComponents: Array<"body" | "comments" | "styles" | "numbering">;
13393
+ comments: {
13394
+ hasChanges: boolean;
13395
+ };
13396
+ hasChanges: boolean;
13397
+ numbering: {
13398
+ hasChanges: boolean;
13399
+ };
13400
+ styles: {
13401
+ hasChanges: boolean;
13402
+ };
13403
+ };
13404
+ targetFingerprint: string;
13405
+ };
12053
13406
  export type DocOpenResult = {
12054
13407
  active: boolean;
12055
13408
  contextId: string;
@@ -12355,6 +13708,9 @@ export declare function createDocApi(runtime: SuperDocRuntime): {
12355
13708
  query: {
12356
13709
  match: (params: DocQueryMatchParams, options?: InvokeOptions) => Promise<DocQueryMatchResult>;
12357
13710
  };
13711
+ ranges: {
13712
+ resolve: (params: DocRangesResolveParams, options?: InvokeOptions) => Promise<DocRangesResolveResult>;
13713
+ };
12358
13714
  mutations: {
12359
13715
  preview: (params: DocMutationsPreviewParams, options?: InvokeOptions) => Promise<DocMutationsPreviewResult>;
12360
13716
  apply: (params: DocMutationsApplyParams, options?: InvokeOptions) => Promise<DocMutationsApplyResult>;
@@ -12631,6 +13987,11 @@ export declare function createDocApi(runtime: SuperDocRuntime): {
12631
13987
  remove: (params: DocAuthoritiesEntriesRemoveParams, options?: InvokeOptions) => Promise<DocAuthoritiesEntriesRemoveResult>;
12632
13988
  };
12633
13989
  };
13990
+ diff: {
13991
+ capture: (params?: DocDiffCaptureParams, options?: InvokeOptions) => Promise<DocDiffCaptureResult>;
13992
+ compare: (params: DocDiffCompareParams, options?: InvokeOptions) => Promise<DocDiffCompareResult>;
13993
+ apply: (params: DocDiffApplyParams, options?: InvokeOptions) => Promise<DocDiffApplyResult>;
13994
+ };
12634
13995
  open: (params?: DocOpenParams, options?: InvokeOptions) => Promise<DocOpenResult>;
12635
13996
  save: (params?: DocSaveParams, options?: InvokeOptions) => Promise<DocSaveResult>;
12636
13997
  close: (params?: DocCloseParams, options?: InvokeOptions) => Promise<DocCloseResult>;