@superdoc/sdk 2.22.0-next.9 → 2.23.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16810,6 +16810,42 @@ export interface DocListsInsertParams {
16810
16810
  };
16811
16811
  position?: "before" | "after";
16812
16812
  text?: string;
16813
+ inheritFrom?: {
16814
+ kind: "block";
16815
+ nodeType: "listItem";
16816
+ nodeId: string;
16817
+ story?: ({
16818
+ kind: "story";
16819
+ storyType: "body";
16820
+ }) | ({
16821
+ kind: "story";
16822
+ storyType: "headerFooterSlot";
16823
+ section: {
16824
+ kind: "section";
16825
+ sectionId: string;
16826
+ };
16827
+ headerFooterKind: "header" | "footer";
16828
+ variant: "default" | "first" | "even";
16829
+ resolution?: "effective" | "explicit";
16830
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
16831
+ }) | ({
16832
+ kind: "story";
16833
+ storyType: "headerFooterPart";
16834
+ refId: string;
16835
+ }) | ({
16836
+ kind: "story";
16837
+ storyType: "footnote";
16838
+ noteId: string;
16839
+ }) | ({
16840
+ kind: "story";
16841
+ storyType: "endnote";
16842
+ noteId: string;
16843
+ }) | ({
16844
+ kind: "story";
16845
+ storyType: "textbox";
16846
+ textboxId: string;
16847
+ });
16848
+ };
16813
16849
  input?: unknown;
16814
16850
  nodeId?: string;
16815
16851
  }
@@ -19868,7 +19904,7 @@ export interface DocQueryMatchParams {
19868
19904
  textboxId: string;
19869
19905
  });
19870
19906
  };
19871
- require?: "any" | "first" | "exactlyOne" | "all";
19907
+ require?: "any" | "first" | "last" | "exactlyOne" | "all";
19872
19908
  mode?: "strict" | "candidates";
19873
19909
  includeNodes?: boolean;
19874
19910
  limit?: number;
@@ -21985,112 +22021,18 @@ export interface DocMutationsPreviewParams {
21985
22021
  args: {
21986
22022
  expectCount: number;
21987
22023
  };
21988
- })>;
21989
- detail?: {
21990
- offset?: number;
21991
- limit?: number;
21992
- };
21993
- }
21994
- export interface DocMutationsApplyParams {
21995
- doc?: string;
21996
- sessionId?: string;
21997
- out?: string;
21998
- force?: boolean;
21999
- expectedRevision?: string;
22000
- changeMode?: string;
22001
- in?: ({
22002
- kind: "story";
22003
- storyType: "body";
22004
- }) | ({
22005
- kind: "story";
22006
- storyType: "headerFooterSlot";
22007
- section: {
22008
- kind: "section";
22009
- sectionId: string;
22010
- };
22011
- headerFooterKind: "header" | "footer";
22012
- variant: "default" | "first" | "even";
22013
- resolution?: "effective" | "explicit";
22014
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
22015
22024
  }) | ({
22016
- kind: "story";
22017
- storyType: "headerFooterPart";
22018
- refId: string;
22019
- }) | ({
22020
- kind: "story";
22021
- storyType: "footnote";
22022
- noteId: string;
22023
- }) | ({
22024
- kind: "story";
22025
- storyType: "endnote";
22026
- noteId: string;
22027
- }) | ({
22028
- kind: "story";
22029
- storyType: "textbox";
22030
- textboxId: string;
22031
- });
22032
- atomic: boolean;
22033
- steps: Array<({
22034
22025
  id: string;
22035
- op: "text.rewrite";
22036
- where: ({
22037
- by: "select";
22038
- select: ({
22039
- type: "text";
22040
- pattern: string;
22041
- mode?: "contains" | "regex";
22042
- caseSensitive?: boolean;
22043
- wholeWord?: boolean;
22044
- includeDeletedText?: boolean;
22045
- }) | ({
22046
- type: "node";
22047
- nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
22048
- kind?: "block" | "inline";
22049
- });
22050
- within?: {
22051
- kind: "block";
22052
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
22053
- nodeId: string;
22054
- story?: ({
22055
- kind: "story";
22056
- storyType: "body";
22057
- }) | ({
22058
- kind: "story";
22059
- storyType: "headerFooterSlot";
22060
- section: {
22061
- kind: "section";
22062
- sectionId: string;
22063
- };
22064
- headerFooterKind: "header" | "footer";
22065
- variant: "default" | "first" | "even";
22066
- resolution?: "effective" | "explicit";
22067
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
22068
- }) | ({
22069
- kind: "story";
22070
- storyType: "headerFooterPart";
22071
- refId: string;
22072
- }) | ({
22073
- kind: "story";
22074
- storyType: "footnote";
22075
- noteId: string;
22076
- }) | ({
22077
- kind: "story";
22078
- storyType: "endnote";
22079
- noteId: string;
22080
- }) | ({
22081
- kind: "story";
22082
- storyType: "textbox";
22083
- textboxId: string;
22084
- });
22085
- };
22086
- require: "first" | "exactlyOne" | "all";
22087
- }) | ({
22088
- by: "ref";
22089
- ref: string;
22090
- within?: {
22091
- kind: "block";
22092
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
22093
- nodeId: string;
22026
+ op: "comments.patch";
22027
+ args: {
22028
+ commentId: string;
22029
+ target: ({
22030
+ kind: "text";
22031
+ blockId: string;
22032
+ range: {
22033
+ start: number;
22034
+ end: number;
22035
+ };
22094
22036
  story?: ({
22095
22037
  kind: "story";
22096
22038
  storyType: "body";
@@ -22122,10 +22064,7 @@ export interface DocMutationsApplyParams {
22122
22064
  storyType: "textbox";
22123
22065
  textboxId: string;
22124
22066
  });
22125
- };
22126
- }) | ({
22127
- by: "target";
22128
- target: {
22067
+ }) | ({
22129
22068
  kind: "selection";
22130
22069
  start: ({
22131
22070
  kind: "text";
@@ -22309,42 +22248,69 @@ export interface DocMutationsApplyParams {
22309
22248
  textboxId: string;
22310
22249
  });
22311
22250
  coordinateSpace?: "visible" | "tracked";
22312
- };
22313
- }) | ({
22314
- by: "block";
22315
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
22316
- nodeId: string;
22317
- });
22251
+ });
22252
+ };
22253
+ }) | ({
22254
+ id: string;
22255
+ op: "trackChanges.decide";
22318
22256
  args: {
22319
- replacement: ({
22320
- text: string;
22257
+ decision: "accept" | "reject";
22258
+ target: ({
22259
+ kind: "id";
22260
+ id: string;
22321
22261
  }) | ({
22322
- blocks: Array<{
22323
- text: string;
22324
- }>;
22262
+ kind: "ids";
22263
+ ids: Array<string>;
22325
22264
  });
22326
- replacementMode?: "literal" | "regex-template";
22327
- caseHandling?: "exact" | "preserve-match";
22328
- style?: {
22329
- inline: {
22330
- mode: "preserve" | "set" | "clear" | "merge";
22331
- requireUniform?: boolean;
22332
- onNonUniform?: "error" | "useLeadingRun" | "majority" | "union";
22333
- setMarks?: {
22334
- bold?: "on" | "off" | "clear";
22335
- italic?: "on" | "off" | "clear";
22336
- underline?: "on" | "off" | "clear";
22337
- strike?: "on" | "off" | "clear";
22338
- };
22339
- };
22340
- paragraph?: {
22341
- mode: "preserve" | "set" | "clear";
22342
- };
22343
- };
22344
22265
  };
22266
+ })>;
22267
+ detail?: {
22268
+ offset?: number;
22269
+ limit?: number;
22270
+ };
22271
+ }
22272
+ export interface DocMutationsApplyParams {
22273
+ doc?: string;
22274
+ sessionId?: string;
22275
+ out?: string;
22276
+ force?: boolean;
22277
+ expectedRevision?: string;
22278
+ changeMode?: string;
22279
+ in?: ({
22280
+ kind: "story";
22281
+ storyType: "body";
22282
+ }) | ({
22283
+ kind: "story";
22284
+ storyType: "headerFooterSlot";
22285
+ section: {
22286
+ kind: "section";
22287
+ sectionId: string;
22288
+ };
22289
+ headerFooterKind: "header" | "footer";
22290
+ variant: "default" | "first" | "even";
22291
+ resolution?: "effective" | "explicit";
22292
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
22293
+ }) | ({
22294
+ kind: "story";
22295
+ storyType: "headerFooterPart";
22296
+ refId: string;
22297
+ }) | ({
22298
+ kind: "story";
22299
+ storyType: "footnote";
22300
+ noteId: string;
22301
+ }) | ({
22302
+ kind: "story";
22303
+ storyType: "endnote";
22304
+ noteId: string;
22345
22305
  }) | ({
22306
+ kind: "story";
22307
+ storyType: "textbox";
22308
+ textboxId: string;
22309
+ });
22310
+ atomic: boolean;
22311
+ steps: Array<({
22346
22312
  id: string;
22347
- op: "text.insert";
22313
+ op: "text.rewrite";
22348
22314
  where: ({
22349
22315
  by: "select";
22350
22316
  select: ({
@@ -22395,7 +22361,7 @@ export interface DocMutationsApplyParams {
22395
22361
  textboxId: string;
22396
22362
  });
22397
22363
  };
22398
- require: "first" | "exactlyOne";
22364
+ require: "first" | "exactlyOne" | "all";
22399
22365
  }) | ({
22400
22366
  by: "ref";
22401
22367
  ref: string;
@@ -22628,13 +22594,20 @@ export interface DocMutationsApplyParams {
22628
22594
  nodeId: string;
22629
22595
  });
22630
22596
  args: {
22631
- position: "before" | "after";
22632
- content: {
22597
+ replacement: ({
22633
22598
  text: string;
22634
- };
22599
+ }) | ({
22600
+ blocks: Array<{
22601
+ text: string;
22602
+ }>;
22603
+ });
22604
+ replacementMode?: "literal" | "regex-template";
22605
+ caseHandling?: "exact" | "preserve-match";
22635
22606
  style?: {
22636
22607
  inline: {
22637
- mode: "inherit" | "set" | "clear";
22608
+ mode: "preserve" | "set" | "clear" | "merge";
22609
+ requireUniform?: boolean;
22610
+ onNonUniform?: "error" | "useLeadingRun" | "majority" | "union";
22638
22611
  setMarks?: {
22639
22612
  bold?: "on" | "off" | "clear";
22640
22613
  italic?: "on" | "off" | "clear";
@@ -22642,11 +22615,14 @@ export interface DocMutationsApplyParams {
22642
22615
  strike?: "on" | "off" | "clear";
22643
22616
  };
22644
22617
  };
22618
+ paragraph?: {
22619
+ mode: "preserve" | "set" | "clear";
22620
+ };
22645
22621
  };
22646
22622
  };
22647
22623
  }) | ({
22648
22624
  id: string;
22649
- op: "text.delete";
22625
+ op: "text.insert";
22650
22626
  where: ({
22651
22627
  by: "select";
22652
22628
  select: ({
@@ -22697,7 +22673,7 @@ export interface DocMutationsApplyParams {
22697
22673
  textboxId: string;
22698
22674
  });
22699
22675
  };
22700
- require: "first" | "exactlyOne" | "all";
22676
+ require: "first" | "exactlyOne";
22701
22677
  }) | ({
22702
22678
  by: "ref";
22703
22679
  ref: string;
@@ -22930,11 +22906,25 @@ export interface DocMutationsApplyParams {
22930
22906
  nodeId: string;
22931
22907
  });
22932
22908
  args: {
22933
- behavior?: "selection" | "exact";
22909
+ position: "before" | "after";
22910
+ content: {
22911
+ text: string;
22912
+ };
22913
+ style?: {
22914
+ inline: {
22915
+ mode: "inherit" | "set" | "clear";
22916
+ setMarks?: {
22917
+ bold?: "on" | "off" | "clear";
22918
+ italic?: "on" | "off" | "clear";
22919
+ underline?: "on" | "off" | "clear";
22920
+ strike?: "on" | "off" | "clear";
22921
+ };
22922
+ };
22923
+ };
22934
22924
  };
22935
22925
  }) | ({
22936
22926
  id: string;
22937
- op: "format.apply";
22927
+ op: "text.delete";
22938
22928
  where: ({
22939
22929
  by: "select";
22940
22930
  select: ({
@@ -23218,96 +23208,11 @@ export interface DocMutationsApplyParams {
23218
23208
  nodeId: string;
23219
23209
  });
23220
23210
  args: {
23221
- inline?: {
23222
- bold?: boolean | unknown;
23223
- italic?: boolean | unknown;
23224
- strike?: boolean | unknown;
23225
- underline?: boolean | unknown | ({
23226
- style?: string | unknown;
23227
- color?: string | unknown;
23228
- themeColor?: string | unknown;
23229
- });
23230
- highlight?: string | unknown;
23231
- color?: string | unknown;
23232
- fontSize?: number | unknown;
23233
- fontFamily?: string | unknown;
23234
- letterSpacing?: number | unknown;
23235
- vertAlign?: "superscript" | "subscript" | "baseline" | unknown;
23236
- position?: number | unknown;
23237
- dstrike?: boolean | unknown;
23238
- smallCaps?: boolean | unknown;
23239
- caps?: boolean | unknown;
23240
- shading?: ({
23241
- fill?: string | unknown;
23242
- color?: string | unknown;
23243
- val?: string | unknown;
23244
- }) | unknown;
23245
- border?: ({
23246
- val?: string | unknown;
23247
- sz?: number | unknown;
23248
- color?: string | unknown;
23249
- space?: number | unknown;
23250
- }) | unknown;
23251
- outline?: boolean | unknown;
23252
- shadow?: boolean | unknown;
23253
- emboss?: boolean | unknown;
23254
- imprint?: boolean | unknown;
23255
- charScale?: number | unknown;
23256
- kerning?: number | unknown;
23257
- vanish?: boolean | unknown;
23258
- webHidden?: boolean | unknown;
23259
- specVanish?: boolean | unknown;
23260
- rtl?: boolean | unknown;
23261
- cs?: boolean | unknown;
23262
- bCs?: boolean | unknown;
23263
- iCs?: boolean | unknown;
23264
- eastAsianLayout?: ({
23265
- id?: string | unknown;
23266
- combine?: boolean | unknown;
23267
- combineBrackets?: string | unknown;
23268
- vert?: boolean | unknown;
23269
- vertCompress?: boolean | unknown;
23270
- }) | unknown;
23271
- em?: string | unknown;
23272
- fitText?: ({
23273
- val?: number | unknown;
23274
- id?: string | unknown;
23275
- }) | unknown;
23276
- snapToGrid?: boolean | unknown;
23277
- lang?: ({
23278
- val?: string | unknown;
23279
- eastAsia?: string | unknown;
23280
- bidi?: string | unknown;
23281
- }) | unknown;
23282
- oMath?: boolean | unknown;
23283
- rStyle?: string | unknown;
23284
- rFonts?: ({
23285
- ascii?: string | unknown;
23286
- hAnsi?: string | unknown;
23287
- eastAsia?: string | unknown;
23288
- cs?: string | unknown;
23289
- asciiTheme?: string | unknown;
23290
- hAnsiTheme?: string | unknown;
23291
- eastAsiaTheme?: string | unknown;
23292
- csTheme?: string | unknown;
23293
- hint?: string | unknown;
23294
- }) | unknown;
23295
- fontSizeCs?: number | unknown;
23296
- ligatures?: string | unknown;
23297
- numForm?: string | unknown;
23298
- numSpacing?: string | unknown;
23299
- stylisticSets?: (Array<{
23300
- id: number;
23301
- val?: boolean;
23302
- }>) | unknown;
23303
- contextualAlternates?: boolean | unknown;
23304
- };
23305
- alignment?: "left" | "center" | "right" | "justify";
23306
- scope?: "match" | "block";
23211
+ behavior?: "selection" | "exact";
23307
23212
  };
23308
23213
  }) | ({
23309
23214
  id: string;
23310
- op: "structural.replace";
23215
+ op: "format.apply";
23311
23216
  where: ({
23312
23217
  by: "select";
23313
23218
  select: ({
@@ -23591,15 +23496,97 @@ export interface DocMutationsApplyParams {
23591
23496
  nodeId: string;
23592
23497
  });
23593
23498
  args: {
23594
- content: Record<string, unknown> | Array<Record<string, unknown>>;
23595
- nestingPolicy?: {
23596
- tables?: "forbid" | "allow";
23499
+ inline?: {
23500
+ bold?: boolean | unknown;
23501
+ italic?: boolean | unknown;
23502
+ strike?: boolean | unknown;
23503
+ underline?: boolean | unknown | ({
23504
+ style?: string | unknown;
23505
+ color?: string | unknown;
23506
+ themeColor?: string | unknown;
23507
+ });
23508
+ highlight?: string | unknown;
23509
+ color?: string | unknown;
23510
+ fontSize?: number | unknown;
23511
+ fontFamily?: string | unknown;
23512
+ letterSpacing?: number | unknown;
23513
+ vertAlign?: "superscript" | "subscript" | "baseline" | unknown;
23514
+ position?: number | unknown;
23515
+ dstrike?: boolean | unknown;
23516
+ smallCaps?: boolean | unknown;
23517
+ caps?: boolean | unknown;
23518
+ shading?: ({
23519
+ fill?: string | unknown;
23520
+ color?: string | unknown;
23521
+ val?: string | unknown;
23522
+ }) | unknown;
23523
+ border?: ({
23524
+ val?: string | unknown;
23525
+ sz?: number | unknown;
23526
+ color?: string | unknown;
23527
+ space?: number | unknown;
23528
+ }) | unknown;
23529
+ outline?: boolean | unknown;
23530
+ shadow?: boolean | unknown;
23531
+ emboss?: boolean | unknown;
23532
+ imprint?: boolean | unknown;
23533
+ charScale?: number | unknown;
23534
+ kerning?: number | unknown;
23535
+ vanish?: boolean | unknown;
23536
+ webHidden?: boolean | unknown;
23537
+ specVanish?: boolean | unknown;
23538
+ rtl?: boolean | unknown;
23539
+ cs?: boolean | unknown;
23540
+ bCs?: boolean | unknown;
23541
+ iCs?: boolean | unknown;
23542
+ eastAsianLayout?: ({
23543
+ id?: string | unknown;
23544
+ combine?: boolean | unknown;
23545
+ combineBrackets?: string | unknown;
23546
+ vert?: boolean | unknown;
23547
+ vertCompress?: boolean | unknown;
23548
+ }) | unknown;
23549
+ em?: string | unknown;
23550
+ fitText?: ({
23551
+ val?: number | unknown;
23552
+ id?: string | unknown;
23553
+ }) | unknown;
23554
+ snapToGrid?: boolean | unknown;
23555
+ lang?: ({
23556
+ val?: string | unknown;
23557
+ eastAsia?: string | unknown;
23558
+ bidi?: string | unknown;
23559
+ }) | unknown;
23560
+ oMath?: boolean | unknown;
23561
+ rStyle?: string | unknown;
23562
+ rFonts?: ({
23563
+ ascii?: string | unknown;
23564
+ hAnsi?: string | unknown;
23565
+ eastAsia?: string | unknown;
23566
+ cs?: string | unknown;
23567
+ asciiTheme?: string | unknown;
23568
+ hAnsiTheme?: string | unknown;
23569
+ eastAsiaTheme?: string | unknown;
23570
+ csTheme?: string | unknown;
23571
+ hint?: string | unknown;
23572
+ }) | unknown;
23573
+ fontSizeCs?: number | unknown;
23574
+ ligatures?: string | unknown;
23575
+ numForm?: string | unknown;
23576
+ numSpacing?: string | unknown;
23577
+ stylisticSets?: (Array<{
23578
+ id: number;
23579
+ val?: boolean;
23580
+ }>) | unknown;
23581
+ contextualAlternates?: boolean | unknown;
23597
23582
  };
23583
+ alignment?: "left" | "center" | "right" | "justify";
23584
+ scope?: "match" | "block";
23598
23585
  };
23599
23586
  }) | ({
23600
23587
  id: string;
23601
- op: "assert";
23602
- where: {
23588
+ op: "structural.replace";
23589
+ where: ({
23603
23590
  by: "select";
23604
23591
  select: ({
23605
23592
  type: "text";
@@ -23649,78 +23636,612 @@ export interface DocMutationsApplyParams {
23649
23636
  textboxId: string;
23650
23637
  });
23651
23638
  };
23652
- };
23653
- args: {
23654
- expectCount: number;
23655
- };
23656
- })>;
23657
- }
23658
- export interface DocPlanExecuteParams {
23659
- doc?: string;
23660
- sessionId?: string;
23661
- out?: string;
23662
- force?: boolean;
23663
- expectedRevision?: string;
23664
- changeMode?: string;
23665
- entries: Array<{
23666
- operationId: string;
23667
- input?: unknown;
23668
- options?: unknown;
23669
- captureAs?: string;
23670
- expect?: {
23671
- success?: boolean;
23672
- failureCode?: string;
23673
- failureMessageIncludes?: string;
23674
- allowFailureMessageIncludes?: string;
23675
- };
23676
- }>;
23677
- captureReturns?: "*" | Array<string>;
23678
- }
23679
- export interface DocCapabilitiesGetParams {
23680
- sessionId?: string;
23681
- }
23682
- export interface DocCapabilitiesCheckParams {
23683
- doc?: string;
23684
- sessionId?: string;
23685
- operation: "insert" | "replace" | "projectHtml" | "projectMarkdown";
23686
- input?: ({
23687
- in?: ({
23688
- kind: "story";
23689
- storyType: "body";
23690
- }) | ({
23691
- kind: "story";
23692
- storyType: "headerFooterSlot";
23693
- section: {
23694
- kind: "section";
23695
- sectionId: string;
23696
- };
23697
- headerFooterKind: "header" | "footer";
23698
- variant: "default" | "first" | "even";
23699
- resolution?: "effective" | "explicit";
23700
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
23701
- }) | ({
23702
- kind: "story";
23703
- storyType: "headerFooterPart";
23704
- refId: string;
23705
- }) | ({
23706
- kind: "story";
23707
- storyType: "footnote";
23708
- noteId: string;
23709
- }) | ({
23710
- kind: "story";
23711
- storyType: "endnote";
23712
- noteId: string;
23639
+ require: "first" | "exactlyOne" | "all";
23713
23640
  }) | ({
23714
- kind: "story";
23715
- storyType: "textbox";
23716
- textboxId: string;
23717
- });
23718
- target: ({
23719
- kind: "selection";
23720
- start: ({
23721
- kind: "text";
23722
- blockId: string;
23723
- offset: number;
23641
+ by: "ref";
23642
+ ref: string;
23643
+ within?: {
23644
+ kind: "block";
23645
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
23646
+ nodeId: string;
23647
+ story?: ({
23648
+ kind: "story";
23649
+ storyType: "body";
23650
+ }) | ({
23651
+ kind: "story";
23652
+ storyType: "headerFooterSlot";
23653
+ section: {
23654
+ kind: "section";
23655
+ sectionId: string;
23656
+ };
23657
+ headerFooterKind: "header" | "footer";
23658
+ variant: "default" | "first" | "even";
23659
+ resolution?: "effective" | "explicit";
23660
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
23661
+ }) | ({
23662
+ kind: "story";
23663
+ storyType: "headerFooterPart";
23664
+ refId: string;
23665
+ }) | ({
23666
+ kind: "story";
23667
+ storyType: "footnote";
23668
+ noteId: string;
23669
+ }) | ({
23670
+ kind: "story";
23671
+ storyType: "endnote";
23672
+ noteId: string;
23673
+ }) | ({
23674
+ kind: "story";
23675
+ storyType: "textbox";
23676
+ textboxId: string;
23677
+ });
23678
+ };
23679
+ }) | ({
23680
+ by: "target";
23681
+ target: {
23682
+ kind: "selection";
23683
+ start: ({
23684
+ kind: "text";
23685
+ blockId: string;
23686
+ offset: number;
23687
+ story?: ({
23688
+ kind: "story";
23689
+ storyType: "body";
23690
+ }) | ({
23691
+ kind: "story";
23692
+ storyType: "headerFooterSlot";
23693
+ section: {
23694
+ kind: "section";
23695
+ sectionId: string;
23696
+ };
23697
+ headerFooterKind: "header" | "footer";
23698
+ variant: "default" | "first" | "even";
23699
+ resolution?: "effective" | "explicit";
23700
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
23701
+ }) | ({
23702
+ kind: "story";
23703
+ storyType: "headerFooterPart";
23704
+ refId: string;
23705
+ }) | ({
23706
+ kind: "story";
23707
+ storyType: "footnote";
23708
+ noteId: string;
23709
+ }) | ({
23710
+ kind: "story";
23711
+ storyType: "endnote";
23712
+ noteId: string;
23713
+ }) | ({
23714
+ kind: "story";
23715
+ storyType: "textbox";
23716
+ textboxId: string;
23717
+ });
23718
+ }) | ({
23719
+ kind: "nodeEdge";
23720
+ node: {
23721
+ kind: "block";
23722
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
23723
+ nodeId: string;
23724
+ story?: ({
23725
+ kind: "story";
23726
+ storyType: "body";
23727
+ }) | ({
23728
+ kind: "story";
23729
+ storyType: "headerFooterSlot";
23730
+ section: {
23731
+ kind: "section";
23732
+ sectionId: string;
23733
+ };
23734
+ headerFooterKind: "header" | "footer";
23735
+ variant: "default" | "first" | "even";
23736
+ resolution?: "effective" | "explicit";
23737
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
23738
+ }) | ({
23739
+ kind: "story";
23740
+ storyType: "headerFooterPart";
23741
+ refId: string;
23742
+ }) | ({
23743
+ kind: "story";
23744
+ storyType: "footnote";
23745
+ noteId: string;
23746
+ }) | ({
23747
+ kind: "story";
23748
+ storyType: "endnote";
23749
+ noteId: string;
23750
+ }) | ({
23751
+ kind: "story";
23752
+ storyType: "textbox";
23753
+ textboxId: string;
23754
+ });
23755
+ };
23756
+ edge: "before" | "after";
23757
+ });
23758
+ end: ({
23759
+ kind: "text";
23760
+ blockId: string;
23761
+ offset: number;
23762
+ story?: ({
23763
+ kind: "story";
23764
+ storyType: "body";
23765
+ }) | ({
23766
+ kind: "story";
23767
+ storyType: "headerFooterSlot";
23768
+ section: {
23769
+ kind: "section";
23770
+ sectionId: string;
23771
+ };
23772
+ headerFooterKind: "header" | "footer";
23773
+ variant: "default" | "first" | "even";
23774
+ resolution?: "effective" | "explicit";
23775
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
23776
+ }) | ({
23777
+ kind: "story";
23778
+ storyType: "headerFooterPart";
23779
+ refId: string;
23780
+ }) | ({
23781
+ kind: "story";
23782
+ storyType: "footnote";
23783
+ noteId: string;
23784
+ }) | ({
23785
+ kind: "story";
23786
+ storyType: "endnote";
23787
+ noteId: string;
23788
+ }) | ({
23789
+ kind: "story";
23790
+ storyType: "textbox";
23791
+ textboxId: string;
23792
+ });
23793
+ }) | ({
23794
+ kind: "nodeEdge";
23795
+ node: {
23796
+ kind: "block";
23797
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
23798
+ nodeId: string;
23799
+ story?: ({
23800
+ kind: "story";
23801
+ storyType: "body";
23802
+ }) | ({
23803
+ kind: "story";
23804
+ storyType: "headerFooterSlot";
23805
+ section: {
23806
+ kind: "section";
23807
+ sectionId: string;
23808
+ };
23809
+ headerFooterKind: "header" | "footer";
23810
+ variant: "default" | "first" | "even";
23811
+ resolution?: "effective" | "explicit";
23812
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
23813
+ }) | ({
23814
+ kind: "story";
23815
+ storyType: "headerFooterPart";
23816
+ refId: string;
23817
+ }) | ({
23818
+ kind: "story";
23819
+ storyType: "footnote";
23820
+ noteId: string;
23821
+ }) | ({
23822
+ kind: "story";
23823
+ storyType: "endnote";
23824
+ noteId: string;
23825
+ }) | ({
23826
+ kind: "story";
23827
+ storyType: "textbox";
23828
+ textboxId: string;
23829
+ });
23830
+ };
23831
+ edge: "before" | "after";
23832
+ });
23833
+ story?: ({
23834
+ kind: "story";
23835
+ storyType: "body";
23836
+ }) | ({
23837
+ kind: "story";
23838
+ storyType: "headerFooterSlot";
23839
+ section: {
23840
+ kind: "section";
23841
+ sectionId: string;
23842
+ };
23843
+ headerFooterKind: "header" | "footer";
23844
+ variant: "default" | "first" | "even";
23845
+ resolution?: "effective" | "explicit";
23846
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
23847
+ }) | ({
23848
+ kind: "story";
23849
+ storyType: "headerFooterPart";
23850
+ refId: string;
23851
+ }) | ({
23852
+ kind: "story";
23853
+ storyType: "footnote";
23854
+ noteId: string;
23855
+ }) | ({
23856
+ kind: "story";
23857
+ storyType: "endnote";
23858
+ noteId: string;
23859
+ }) | ({
23860
+ kind: "story";
23861
+ storyType: "textbox";
23862
+ textboxId: string;
23863
+ });
23864
+ coordinateSpace?: "visible" | "tracked";
23865
+ };
23866
+ }) | ({
23867
+ by: "block";
23868
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
23869
+ nodeId: string;
23870
+ });
23871
+ args: {
23872
+ content: Record<string, unknown> | Array<Record<string, unknown>>;
23873
+ nestingPolicy?: {
23874
+ tables?: "forbid" | "allow";
23875
+ };
23876
+ };
23877
+ }) | ({
23878
+ id: string;
23879
+ op: "assert";
23880
+ where: {
23881
+ by: "select";
23882
+ select: ({
23883
+ type: "text";
23884
+ pattern: string;
23885
+ mode?: "contains" | "regex";
23886
+ caseSensitive?: boolean;
23887
+ wholeWord?: boolean;
23888
+ includeDeletedText?: boolean;
23889
+ }) | ({
23890
+ type: "node";
23891
+ nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
23892
+ kind?: "block" | "inline";
23893
+ });
23894
+ within?: {
23895
+ kind: "block";
23896
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
23897
+ nodeId: string;
23898
+ story?: ({
23899
+ kind: "story";
23900
+ storyType: "body";
23901
+ }) | ({
23902
+ kind: "story";
23903
+ storyType: "headerFooterSlot";
23904
+ section: {
23905
+ kind: "section";
23906
+ sectionId: string;
23907
+ };
23908
+ headerFooterKind: "header" | "footer";
23909
+ variant: "default" | "first" | "even";
23910
+ resolution?: "effective" | "explicit";
23911
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
23912
+ }) | ({
23913
+ kind: "story";
23914
+ storyType: "headerFooterPart";
23915
+ refId: string;
23916
+ }) | ({
23917
+ kind: "story";
23918
+ storyType: "footnote";
23919
+ noteId: string;
23920
+ }) | ({
23921
+ kind: "story";
23922
+ storyType: "endnote";
23923
+ noteId: string;
23924
+ }) | ({
23925
+ kind: "story";
23926
+ storyType: "textbox";
23927
+ textboxId: string;
23928
+ });
23929
+ };
23930
+ };
23931
+ args: {
23932
+ expectCount: number;
23933
+ };
23934
+ }) | ({
23935
+ id: string;
23936
+ op: "comments.patch";
23937
+ args: {
23938
+ commentId: string;
23939
+ target: ({
23940
+ kind: "text";
23941
+ blockId: string;
23942
+ range: {
23943
+ start: number;
23944
+ end: number;
23945
+ };
23946
+ story?: ({
23947
+ kind: "story";
23948
+ storyType: "body";
23949
+ }) | ({
23950
+ kind: "story";
23951
+ storyType: "headerFooterSlot";
23952
+ section: {
23953
+ kind: "section";
23954
+ sectionId: string;
23955
+ };
23956
+ headerFooterKind: "header" | "footer";
23957
+ variant: "default" | "first" | "even";
23958
+ resolution?: "effective" | "explicit";
23959
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
23960
+ }) | ({
23961
+ kind: "story";
23962
+ storyType: "headerFooterPart";
23963
+ refId: string;
23964
+ }) | ({
23965
+ kind: "story";
23966
+ storyType: "footnote";
23967
+ noteId: string;
23968
+ }) | ({
23969
+ kind: "story";
23970
+ storyType: "endnote";
23971
+ noteId: string;
23972
+ }) | ({
23973
+ kind: "story";
23974
+ storyType: "textbox";
23975
+ textboxId: string;
23976
+ });
23977
+ }) | ({
23978
+ kind: "selection";
23979
+ start: ({
23980
+ kind: "text";
23981
+ blockId: string;
23982
+ offset: number;
23983
+ story?: ({
23984
+ kind: "story";
23985
+ storyType: "body";
23986
+ }) | ({
23987
+ kind: "story";
23988
+ storyType: "headerFooterSlot";
23989
+ section: {
23990
+ kind: "section";
23991
+ sectionId: string;
23992
+ };
23993
+ headerFooterKind: "header" | "footer";
23994
+ variant: "default" | "first" | "even";
23995
+ resolution?: "effective" | "explicit";
23996
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
23997
+ }) | ({
23998
+ kind: "story";
23999
+ storyType: "headerFooterPart";
24000
+ refId: string;
24001
+ }) | ({
24002
+ kind: "story";
24003
+ storyType: "footnote";
24004
+ noteId: string;
24005
+ }) | ({
24006
+ kind: "story";
24007
+ storyType: "endnote";
24008
+ noteId: string;
24009
+ }) | ({
24010
+ kind: "story";
24011
+ storyType: "textbox";
24012
+ textboxId: string;
24013
+ });
24014
+ }) | ({
24015
+ kind: "nodeEdge";
24016
+ node: {
24017
+ kind: "block";
24018
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
24019
+ nodeId: string;
24020
+ story?: ({
24021
+ kind: "story";
24022
+ storyType: "body";
24023
+ }) | ({
24024
+ kind: "story";
24025
+ storyType: "headerFooterSlot";
24026
+ section: {
24027
+ kind: "section";
24028
+ sectionId: string;
24029
+ };
24030
+ headerFooterKind: "header" | "footer";
24031
+ variant: "default" | "first" | "even";
24032
+ resolution?: "effective" | "explicit";
24033
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
24034
+ }) | ({
24035
+ kind: "story";
24036
+ storyType: "headerFooterPart";
24037
+ refId: string;
24038
+ }) | ({
24039
+ kind: "story";
24040
+ storyType: "footnote";
24041
+ noteId: string;
24042
+ }) | ({
24043
+ kind: "story";
24044
+ storyType: "endnote";
24045
+ noteId: string;
24046
+ }) | ({
24047
+ kind: "story";
24048
+ storyType: "textbox";
24049
+ textboxId: string;
24050
+ });
24051
+ };
24052
+ edge: "before" | "after";
24053
+ });
24054
+ end: ({
24055
+ kind: "text";
24056
+ blockId: string;
24057
+ offset: number;
24058
+ story?: ({
24059
+ kind: "story";
24060
+ storyType: "body";
24061
+ }) | ({
24062
+ kind: "story";
24063
+ storyType: "headerFooterSlot";
24064
+ section: {
24065
+ kind: "section";
24066
+ sectionId: string;
24067
+ };
24068
+ headerFooterKind: "header" | "footer";
24069
+ variant: "default" | "first" | "even";
24070
+ resolution?: "effective" | "explicit";
24071
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
24072
+ }) | ({
24073
+ kind: "story";
24074
+ storyType: "headerFooterPart";
24075
+ refId: string;
24076
+ }) | ({
24077
+ kind: "story";
24078
+ storyType: "footnote";
24079
+ noteId: string;
24080
+ }) | ({
24081
+ kind: "story";
24082
+ storyType: "endnote";
24083
+ noteId: string;
24084
+ }) | ({
24085
+ kind: "story";
24086
+ storyType: "textbox";
24087
+ textboxId: string;
24088
+ });
24089
+ }) | ({
24090
+ kind: "nodeEdge";
24091
+ node: {
24092
+ kind: "block";
24093
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
24094
+ nodeId: string;
24095
+ story?: ({
24096
+ kind: "story";
24097
+ storyType: "body";
24098
+ }) | ({
24099
+ kind: "story";
24100
+ storyType: "headerFooterSlot";
24101
+ section: {
24102
+ kind: "section";
24103
+ sectionId: string;
24104
+ };
24105
+ headerFooterKind: "header" | "footer";
24106
+ variant: "default" | "first" | "even";
24107
+ resolution?: "effective" | "explicit";
24108
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
24109
+ }) | ({
24110
+ kind: "story";
24111
+ storyType: "headerFooterPart";
24112
+ refId: string;
24113
+ }) | ({
24114
+ kind: "story";
24115
+ storyType: "footnote";
24116
+ noteId: string;
24117
+ }) | ({
24118
+ kind: "story";
24119
+ storyType: "endnote";
24120
+ noteId: string;
24121
+ }) | ({
24122
+ kind: "story";
24123
+ storyType: "textbox";
24124
+ textboxId: string;
24125
+ });
24126
+ };
24127
+ edge: "before" | "after";
24128
+ });
24129
+ story?: ({
24130
+ kind: "story";
24131
+ storyType: "body";
24132
+ }) | ({
24133
+ kind: "story";
24134
+ storyType: "headerFooterSlot";
24135
+ section: {
24136
+ kind: "section";
24137
+ sectionId: string;
24138
+ };
24139
+ headerFooterKind: "header" | "footer";
24140
+ variant: "default" | "first" | "even";
24141
+ resolution?: "effective" | "explicit";
24142
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
24143
+ }) | ({
24144
+ kind: "story";
24145
+ storyType: "headerFooterPart";
24146
+ refId: string;
24147
+ }) | ({
24148
+ kind: "story";
24149
+ storyType: "footnote";
24150
+ noteId: string;
24151
+ }) | ({
24152
+ kind: "story";
24153
+ storyType: "endnote";
24154
+ noteId: string;
24155
+ }) | ({
24156
+ kind: "story";
24157
+ storyType: "textbox";
24158
+ textboxId: string;
24159
+ });
24160
+ coordinateSpace?: "visible" | "tracked";
24161
+ });
24162
+ };
24163
+ }) | ({
24164
+ id: string;
24165
+ op: "trackChanges.decide";
24166
+ args: {
24167
+ decision: "accept" | "reject";
24168
+ target: ({
24169
+ kind: "id";
24170
+ id: string;
24171
+ }) | ({
24172
+ kind: "ids";
24173
+ ids: Array<string>;
24174
+ });
24175
+ };
24176
+ })>;
24177
+ }
24178
+ export interface DocPlanExecuteParams {
24179
+ doc?: string;
24180
+ sessionId?: string;
24181
+ out?: string;
24182
+ force?: boolean;
24183
+ expectedRevision?: string;
24184
+ changeMode?: string;
24185
+ atomic?: boolean;
24186
+ entries: Array<{
24187
+ operationId: string;
24188
+ input?: unknown;
24189
+ options?: unknown;
24190
+ captureAs?: string;
24191
+ expect?: {
24192
+ success?: boolean;
24193
+ failureCode?: string;
24194
+ failureMessageIncludes?: string;
24195
+ allowFailureMessageIncludes?: string;
24196
+ };
24197
+ }>;
24198
+ captureReturns?: "*" | Array<string>;
24199
+ }
24200
+ export interface DocCapabilitiesGetParams {
24201
+ sessionId?: string;
24202
+ }
24203
+ export interface DocCapabilitiesCheckParams {
24204
+ doc?: string;
24205
+ sessionId?: string;
24206
+ operation: "insert" | "replace" | "projectHtml" | "projectMarkdown";
24207
+ input?: ({
24208
+ in?: ({
24209
+ kind: "story";
24210
+ storyType: "body";
24211
+ }) | ({
24212
+ kind: "story";
24213
+ storyType: "headerFooterSlot";
24214
+ section: {
24215
+ kind: "section";
24216
+ sectionId: string;
24217
+ };
24218
+ headerFooterKind: "header" | "footer";
24219
+ variant: "default" | "first" | "even";
24220
+ resolution?: "effective" | "explicit";
24221
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
24222
+ }) | ({
24223
+ kind: "story";
24224
+ storyType: "headerFooterPart";
24225
+ refId: string;
24226
+ }) | ({
24227
+ kind: "story";
24228
+ storyType: "footnote";
24229
+ noteId: string;
24230
+ }) | ({
24231
+ kind: "story";
24232
+ storyType: "endnote";
24233
+ noteId: string;
24234
+ }) | ({
24235
+ kind: "story";
24236
+ storyType: "textbox";
24237
+ textboxId: string;
24238
+ });
24239
+ target: ({
24240
+ kind: "selection";
24241
+ start: ({
24242
+ kind: "text";
24243
+ blockId: string;
24244
+ offset: number;
23724
24245
  story?: ({
23725
24246
  kind: "story";
23726
24247
  storyType: "body";
@@ -28506,6 +29027,7 @@ export interface DocContentControlsReplaceContentParams {
28506
29027
  };
28507
29028
  content: string;
28508
29029
  format?: "text" | "html" | "ooxml";
29030
+ overrideContentLock?: boolean;
28509
29031
  }
28510
29032
  export interface DocContentControlsClearContentParams {
28511
29033
  doc?: string;
@@ -275559,15 +276081,58 @@ export interface DocListsListBoundParams {
275559
276081
  textboxId: string;
275560
276082
  });
275561
276083
  };
275562
- limit?: number;
275563
- offset?: number;
275564
- kind?: "ordered" | "bullet";
275565
- level?: number;
275566
- ordinal?: number;
275567
- query?: unknown;
276084
+ limit?: number;
276085
+ offset?: number;
276086
+ kind?: "ordered" | "bullet";
276087
+ level?: number;
276088
+ ordinal?: number;
276089
+ query?: unknown;
276090
+ }
276091
+ export interface DocListsGetBoundParams {
276092
+ address: {
276093
+ kind: "block";
276094
+ nodeType: "listItem";
276095
+ nodeId: string;
276096
+ story?: ({
276097
+ kind: "story";
276098
+ storyType: "body";
276099
+ }) | ({
276100
+ kind: "story";
276101
+ storyType: "headerFooterSlot";
276102
+ section: {
276103
+ kind: "section";
276104
+ sectionId: string;
276105
+ };
276106
+ headerFooterKind: "header" | "footer";
276107
+ variant: "default" | "first" | "even";
276108
+ resolution?: "effective" | "explicit";
276109
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
276110
+ }) | ({
276111
+ kind: "story";
276112
+ storyType: "headerFooterPart";
276113
+ refId: string;
276114
+ }) | ({
276115
+ kind: "story";
276116
+ storyType: "footnote";
276117
+ noteId: string;
276118
+ }) | ({
276119
+ kind: "story";
276120
+ storyType: "endnote";
276121
+ noteId: string;
276122
+ }) | ({
276123
+ kind: "story";
276124
+ storyType: "textbox";
276125
+ textboxId: string;
276126
+ });
276127
+ };
275568
276128
  }
275569
- export interface DocListsGetBoundParams {
275570
- address: {
276129
+ export interface DocListsInsertBoundParams {
276130
+ out?: string;
276131
+ force?: boolean;
276132
+ expectedRevision?: string;
276133
+ changeMode?: string;
276134
+ dryRun?: boolean;
276135
+ target?: {
275571
276136
  kind: "block";
275572
276137
  nodeType: "listItem";
275573
276138
  nodeId: string;
@@ -275603,14 +276168,9 @@ export interface DocListsGetBoundParams {
275603
276168
  textboxId: string;
275604
276169
  });
275605
276170
  };
275606
- }
275607
- export interface DocListsInsertBoundParams {
275608
- out?: string;
275609
- force?: boolean;
275610
- expectedRevision?: string;
275611
- changeMode?: string;
275612
- dryRun?: boolean;
275613
- target?: {
276171
+ position?: "before" | "after";
276172
+ text?: string;
276173
+ inheritFrom?: {
275614
276174
  kind: "block";
275615
276175
  nodeType: "listItem";
275616
276176
  nodeId: string;
@@ -275646,8 +276206,6 @@ export interface DocListsInsertBoundParams {
275646
276206
  textboxId: string;
275647
276207
  });
275648
276208
  };
275649
- position?: "before" | "after";
275650
- text?: string;
275651
276209
  input?: unknown;
275652
276210
  nodeId?: string;
275653
276211
  }
@@ -278606,7 +279164,7 @@ export interface DocQueryMatchBoundParams {
278606
279164
  textboxId: string;
278607
279165
  });
278608
279166
  };
278609
- require?: "any" | "first" | "exactlyOne" | "all";
279167
+ require?: "any" | "first" | "last" | "exactlyOne" | "all";
278610
279168
  mode?: "strict" | "candidates";
278611
279169
  includeNodes?: boolean;
278612
279170
  limit?: number;
@@ -280713,6 +281271,248 @@ export interface DocMutationsPreviewBoundParams {
280713
281271
  args: {
280714
281272
  expectCount: number;
280715
281273
  };
281274
+ }) | ({
281275
+ id: string;
281276
+ op: "comments.patch";
281277
+ args: {
281278
+ commentId: string;
281279
+ target: ({
281280
+ kind: "text";
281281
+ blockId: string;
281282
+ range: {
281283
+ start: number;
281284
+ end: number;
281285
+ };
281286
+ story?: ({
281287
+ kind: "story";
281288
+ storyType: "body";
281289
+ }) | ({
281290
+ kind: "story";
281291
+ storyType: "headerFooterSlot";
281292
+ section: {
281293
+ kind: "section";
281294
+ sectionId: string;
281295
+ };
281296
+ headerFooterKind: "header" | "footer";
281297
+ variant: "default" | "first" | "even";
281298
+ resolution?: "effective" | "explicit";
281299
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
281300
+ }) | ({
281301
+ kind: "story";
281302
+ storyType: "headerFooterPart";
281303
+ refId: string;
281304
+ }) | ({
281305
+ kind: "story";
281306
+ storyType: "footnote";
281307
+ noteId: string;
281308
+ }) | ({
281309
+ kind: "story";
281310
+ storyType: "endnote";
281311
+ noteId: string;
281312
+ }) | ({
281313
+ kind: "story";
281314
+ storyType: "textbox";
281315
+ textboxId: string;
281316
+ });
281317
+ }) | ({
281318
+ kind: "selection";
281319
+ start: ({
281320
+ kind: "text";
281321
+ blockId: string;
281322
+ offset: number;
281323
+ story?: ({
281324
+ kind: "story";
281325
+ storyType: "body";
281326
+ }) | ({
281327
+ kind: "story";
281328
+ storyType: "headerFooterSlot";
281329
+ section: {
281330
+ kind: "section";
281331
+ sectionId: string;
281332
+ };
281333
+ headerFooterKind: "header" | "footer";
281334
+ variant: "default" | "first" | "even";
281335
+ resolution?: "effective" | "explicit";
281336
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
281337
+ }) | ({
281338
+ kind: "story";
281339
+ storyType: "headerFooterPart";
281340
+ refId: string;
281341
+ }) | ({
281342
+ kind: "story";
281343
+ storyType: "footnote";
281344
+ noteId: string;
281345
+ }) | ({
281346
+ kind: "story";
281347
+ storyType: "endnote";
281348
+ noteId: string;
281349
+ }) | ({
281350
+ kind: "story";
281351
+ storyType: "textbox";
281352
+ textboxId: string;
281353
+ });
281354
+ }) | ({
281355
+ kind: "nodeEdge";
281356
+ node: {
281357
+ kind: "block";
281358
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
281359
+ nodeId: string;
281360
+ story?: ({
281361
+ kind: "story";
281362
+ storyType: "body";
281363
+ }) | ({
281364
+ kind: "story";
281365
+ storyType: "headerFooterSlot";
281366
+ section: {
281367
+ kind: "section";
281368
+ sectionId: string;
281369
+ };
281370
+ headerFooterKind: "header" | "footer";
281371
+ variant: "default" | "first" | "even";
281372
+ resolution?: "effective" | "explicit";
281373
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
281374
+ }) | ({
281375
+ kind: "story";
281376
+ storyType: "headerFooterPart";
281377
+ refId: string;
281378
+ }) | ({
281379
+ kind: "story";
281380
+ storyType: "footnote";
281381
+ noteId: string;
281382
+ }) | ({
281383
+ kind: "story";
281384
+ storyType: "endnote";
281385
+ noteId: string;
281386
+ }) | ({
281387
+ kind: "story";
281388
+ storyType: "textbox";
281389
+ textboxId: string;
281390
+ });
281391
+ };
281392
+ edge: "before" | "after";
281393
+ });
281394
+ end: ({
281395
+ kind: "text";
281396
+ blockId: string;
281397
+ offset: number;
281398
+ story?: ({
281399
+ kind: "story";
281400
+ storyType: "body";
281401
+ }) | ({
281402
+ kind: "story";
281403
+ storyType: "headerFooterSlot";
281404
+ section: {
281405
+ kind: "section";
281406
+ sectionId: string;
281407
+ };
281408
+ headerFooterKind: "header" | "footer";
281409
+ variant: "default" | "first" | "even";
281410
+ resolution?: "effective" | "explicit";
281411
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
281412
+ }) | ({
281413
+ kind: "story";
281414
+ storyType: "headerFooterPart";
281415
+ refId: string;
281416
+ }) | ({
281417
+ kind: "story";
281418
+ storyType: "footnote";
281419
+ noteId: string;
281420
+ }) | ({
281421
+ kind: "story";
281422
+ storyType: "endnote";
281423
+ noteId: string;
281424
+ }) | ({
281425
+ kind: "story";
281426
+ storyType: "textbox";
281427
+ textboxId: string;
281428
+ });
281429
+ }) | ({
281430
+ kind: "nodeEdge";
281431
+ node: {
281432
+ kind: "block";
281433
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
281434
+ nodeId: string;
281435
+ story?: ({
281436
+ kind: "story";
281437
+ storyType: "body";
281438
+ }) | ({
281439
+ kind: "story";
281440
+ storyType: "headerFooterSlot";
281441
+ section: {
281442
+ kind: "section";
281443
+ sectionId: string;
281444
+ };
281445
+ headerFooterKind: "header" | "footer";
281446
+ variant: "default" | "first" | "even";
281447
+ resolution?: "effective" | "explicit";
281448
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
281449
+ }) | ({
281450
+ kind: "story";
281451
+ storyType: "headerFooterPart";
281452
+ refId: string;
281453
+ }) | ({
281454
+ kind: "story";
281455
+ storyType: "footnote";
281456
+ noteId: string;
281457
+ }) | ({
281458
+ kind: "story";
281459
+ storyType: "endnote";
281460
+ noteId: string;
281461
+ }) | ({
281462
+ kind: "story";
281463
+ storyType: "textbox";
281464
+ textboxId: string;
281465
+ });
281466
+ };
281467
+ edge: "before" | "after";
281468
+ });
281469
+ story?: ({
281470
+ kind: "story";
281471
+ storyType: "body";
281472
+ }) | ({
281473
+ kind: "story";
281474
+ storyType: "headerFooterSlot";
281475
+ section: {
281476
+ kind: "section";
281477
+ sectionId: string;
281478
+ };
281479
+ headerFooterKind: "header" | "footer";
281480
+ variant: "default" | "first" | "even";
281481
+ resolution?: "effective" | "explicit";
281482
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
281483
+ }) | ({
281484
+ kind: "story";
281485
+ storyType: "headerFooterPart";
281486
+ refId: string;
281487
+ }) | ({
281488
+ kind: "story";
281489
+ storyType: "footnote";
281490
+ noteId: string;
281491
+ }) | ({
281492
+ kind: "story";
281493
+ storyType: "endnote";
281494
+ noteId: string;
281495
+ }) | ({
281496
+ kind: "story";
281497
+ storyType: "textbox";
281498
+ textboxId: string;
281499
+ });
281500
+ coordinateSpace?: "visible" | "tracked";
281501
+ });
281502
+ };
281503
+ }) | ({
281504
+ id: string;
281505
+ op: "trackChanges.decide";
281506
+ args: {
281507
+ decision: "accept" | "reject";
281508
+ target: ({
281509
+ kind: "id";
281510
+ id: string;
281511
+ }) | ({
281512
+ kind: "ids";
281513
+ ids: Array<string>;
281514
+ });
281515
+ };
280716
281516
  })>;
280717
281517
  detail?: {
280718
281518
  offset?: number;
@@ -281656,11 +282456,384 @@ export interface DocMutationsApplyBoundParams {
281656
282456
  nodeId: string;
281657
282457
  });
281658
282458
  args: {
281659
- behavior?: "selection" | "exact";
282459
+ behavior?: "selection" | "exact";
282460
+ };
282461
+ }) | ({
282462
+ id: string;
282463
+ op: "format.apply";
282464
+ where: ({
282465
+ by: "select";
282466
+ select: ({
282467
+ type: "text";
282468
+ pattern: string;
282469
+ mode?: "contains" | "regex";
282470
+ caseSensitive?: boolean;
282471
+ wholeWord?: boolean;
282472
+ includeDeletedText?: boolean;
282473
+ }) | ({
282474
+ type: "node";
282475
+ nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
282476
+ kind?: "block" | "inline";
282477
+ });
282478
+ within?: {
282479
+ kind: "block";
282480
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
282481
+ nodeId: string;
282482
+ story?: ({
282483
+ kind: "story";
282484
+ storyType: "body";
282485
+ }) | ({
282486
+ kind: "story";
282487
+ storyType: "headerFooterSlot";
282488
+ section: {
282489
+ kind: "section";
282490
+ sectionId: string;
282491
+ };
282492
+ headerFooterKind: "header" | "footer";
282493
+ variant: "default" | "first" | "even";
282494
+ resolution?: "effective" | "explicit";
282495
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
282496
+ }) | ({
282497
+ kind: "story";
282498
+ storyType: "headerFooterPart";
282499
+ refId: string;
282500
+ }) | ({
282501
+ kind: "story";
282502
+ storyType: "footnote";
282503
+ noteId: string;
282504
+ }) | ({
282505
+ kind: "story";
282506
+ storyType: "endnote";
282507
+ noteId: string;
282508
+ }) | ({
282509
+ kind: "story";
282510
+ storyType: "textbox";
282511
+ textboxId: string;
282512
+ });
282513
+ };
282514
+ require: "first" | "exactlyOne" | "all";
282515
+ }) | ({
282516
+ by: "ref";
282517
+ ref: string;
282518
+ within?: {
282519
+ kind: "block";
282520
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
282521
+ nodeId: string;
282522
+ story?: ({
282523
+ kind: "story";
282524
+ storyType: "body";
282525
+ }) | ({
282526
+ kind: "story";
282527
+ storyType: "headerFooterSlot";
282528
+ section: {
282529
+ kind: "section";
282530
+ sectionId: string;
282531
+ };
282532
+ headerFooterKind: "header" | "footer";
282533
+ variant: "default" | "first" | "even";
282534
+ resolution?: "effective" | "explicit";
282535
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
282536
+ }) | ({
282537
+ kind: "story";
282538
+ storyType: "headerFooterPart";
282539
+ refId: string;
282540
+ }) | ({
282541
+ kind: "story";
282542
+ storyType: "footnote";
282543
+ noteId: string;
282544
+ }) | ({
282545
+ kind: "story";
282546
+ storyType: "endnote";
282547
+ noteId: string;
282548
+ }) | ({
282549
+ kind: "story";
282550
+ storyType: "textbox";
282551
+ textboxId: string;
282552
+ });
282553
+ };
282554
+ }) | ({
282555
+ by: "target";
282556
+ target: {
282557
+ kind: "selection";
282558
+ start: ({
282559
+ kind: "text";
282560
+ blockId: string;
282561
+ offset: number;
282562
+ story?: ({
282563
+ kind: "story";
282564
+ storyType: "body";
282565
+ }) | ({
282566
+ kind: "story";
282567
+ storyType: "headerFooterSlot";
282568
+ section: {
282569
+ kind: "section";
282570
+ sectionId: string;
282571
+ };
282572
+ headerFooterKind: "header" | "footer";
282573
+ variant: "default" | "first" | "even";
282574
+ resolution?: "effective" | "explicit";
282575
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
282576
+ }) | ({
282577
+ kind: "story";
282578
+ storyType: "headerFooterPart";
282579
+ refId: string;
282580
+ }) | ({
282581
+ kind: "story";
282582
+ storyType: "footnote";
282583
+ noteId: string;
282584
+ }) | ({
282585
+ kind: "story";
282586
+ storyType: "endnote";
282587
+ noteId: string;
282588
+ }) | ({
282589
+ kind: "story";
282590
+ storyType: "textbox";
282591
+ textboxId: string;
282592
+ });
282593
+ }) | ({
282594
+ kind: "nodeEdge";
282595
+ node: {
282596
+ kind: "block";
282597
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
282598
+ nodeId: string;
282599
+ story?: ({
282600
+ kind: "story";
282601
+ storyType: "body";
282602
+ }) | ({
282603
+ kind: "story";
282604
+ storyType: "headerFooterSlot";
282605
+ section: {
282606
+ kind: "section";
282607
+ sectionId: string;
282608
+ };
282609
+ headerFooterKind: "header" | "footer";
282610
+ variant: "default" | "first" | "even";
282611
+ resolution?: "effective" | "explicit";
282612
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
282613
+ }) | ({
282614
+ kind: "story";
282615
+ storyType: "headerFooterPart";
282616
+ refId: string;
282617
+ }) | ({
282618
+ kind: "story";
282619
+ storyType: "footnote";
282620
+ noteId: string;
282621
+ }) | ({
282622
+ kind: "story";
282623
+ storyType: "endnote";
282624
+ noteId: string;
282625
+ }) | ({
282626
+ kind: "story";
282627
+ storyType: "textbox";
282628
+ textboxId: string;
282629
+ });
282630
+ };
282631
+ edge: "before" | "after";
282632
+ });
282633
+ end: ({
282634
+ kind: "text";
282635
+ blockId: string;
282636
+ offset: number;
282637
+ story?: ({
282638
+ kind: "story";
282639
+ storyType: "body";
282640
+ }) | ({
282641
+ kind: "story";
282642
+ storyType: "headerFooterSlot";
282643
+ section: {
282644
+ kind: "section";
282645
+ sectionId: string;
282646
+ };
282647
+ headerFooterKind: "header" | "footer";
282648
+ variant: "default" | "first" | "even";
282649
+ resolution?: "effective" | "explicit";
282650
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
282651
+ }) | ({
282652
+ kind: "story";
282653
+ storyType: "headerFooterPart";
282654
+ refId: string;
282655
+ }) | ({
282656
+ kind: "story";
282657
+ storyType: "footnote";
282658
+ noteId: string;
282659
+ }) | ({
282660
+ kind: "story";
282661
+ storyType: "endnote";
282662
+ noteId: string;
282663
+ }) | ({
282664
+ kind: "story";
282665
+ storyType: "textbox";
282666
+ textboxId: string;
282667
+ });
282668
+ }) | ({
282669
+ kind: "nodeEdge";
282670
+ node: {
282671
+ kind: "block";
282672
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
282673
+ nodeId: string;
282674
+ story?: ({
282675
+ kind: "story";
282676
+ storyType: "body";
282677
+ }) | ({
282678
+ kind: "story";
282679
+ storyType: "headerFooterSlot";
282680
+ section: {
282681
+ kind: "section";
282682
+ sectionId: string;
282683
+ };
282684
+ headerFooterKind: "header" | "footer";
282685
+ variant: "default" | "first" | "even";
282686
+ resolution?: "effective" | "explicit";
282687
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
282688
+ }) | ({
282689
+ kind: "story";
282690
+ storyType: "headerFooterPart";
282691
+ refId: string;
282692
+ }) | ({
282693
+ kind: "story";
282694
+ storyType: "footnote";
282695
+ noteId: string;
282696
+ }) | ({
282697
+ kind: "story";
282698
+ storyType: "endnote";
282699
+ noteId: string;
282700
+ }) | ({
282701
+ kind: "story";
282702
+ storyType: "textbox";
282703
+ textboxId: string;
282704
+ });
282705
+ };
282706
+ edge: "before" | "after";
282707
+ });
282708
+ story?: ({
282709
+ kind: "story";
282710
+ storyType: "body";
282711
+ }) | ({
282712
+ kind: "story";
282713
+ storyType: "headerFooterSlot";
282714
+ section: {
282715
+ kind: "section";
282716
+ sectionId: string;
282717
+ };
282718
+ headerFooterKind: "header" | "footer";
282719
+ variant: "default" | "first" | "even";
282720
+ resolution?: "effective" | "explicit";
282721
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
282722
+ }) | ({
282723
+ kind: "story";
282724
+ storyType: "headerFooterPart";
282725
+ refId: string;
282726
+ }) | ({
282727
+ kind: "story";
282728
+ storyType: "footnote";
282729
+ noteId: string;
282730
+ }) | ({
282731
+ kind: "story";
282732
+ storyType: "endnote";
282733
+ noteId: string;
282734
+ }) | ({
282735
+ kind: "story";
282736
+ storyType: "textbox";
282737
+ textboxId: string;
282738
+ });
282739
+ coordinateSpace?: "visible" | "tracked";
282740
+ };
282741
+ }) | ({
282742
+ by: "block";
282743
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
282744
+ nodeId: string;
282745
+ });
282746
+ args: {
282747
+ inline?: {
282748
+ bold?: boolean | unknown;
282749
+ italic?: boolean | unknown;
282750
+ strike?: boolean | unknown;
282751
+ underline?: boolean | unknown | ({
282752
+ style?: string | unknown;
282753
+ color?: string | unknown;
282754
+ themeColor?: string | unknown;
282755
+ });
282756
+ highlight?: string | unknown;
282757
+ color?: string | unknown;
282758
+ fontSize?: number | unknown;
282759
+ fontFamily?: string | unknown;
282760
+ letterSpacing?: number | unknown;
282761
+ vertAlign?: "superscript" | "subscript" | "baseline" | unknown;
282762
+ position?: number | unknown;
282763
+ dstrike?: boolean | unknown;
282764
+ smallCaps?: boolean | unknown;
282765
+ caps?: boolean | unknown;
282766
+ shading?: ({
282767
+ fill?: string | unknown;
282768
+ color?: string | unknown;
282769
+ val?: string | unknown;
282770
+ }) | unknown;
282771
+ border?: ({
282772
+ val?: string | unknown;
282773
+ sz?: number | unknown;
282774
+ color?: string | unknown;
282775
+ space?: number | unknown;
282776
+ }) | unknown;
282777
+ outline?: boolean | unknown;
282778
+ shadow?: boolean | unknown;
282779
+ emboss?: boolean | unknown;
282780
+ imprint?: boolean | unknown;
282781
+ charScale?: number | unknown;
282782
+ kerning?: number | unknown;
282783
+ vanish?: boolean | unknown;
282784
+ webHidden?: boolean | unknown;
282785
+ specVanish?: boolean | unknown;
282786
+ rtl?: boolean | unknown;
282787
+ cs?: boolean | unknown;
282788
+ bCs?: boolean | unknown;
282789
+ iCs?: boolean | unknown;
282790
+ eastAsianLayout?: ({
282791
+ id?: string | unknown;
282792
+ combine?: boolean | unknown;
282793
+ combineBrackets?: string | unknown;
282794
+ vert?: boolean | unknown;
282795
+ vertCompress?: boolean | unknown;
282796
+ }) | unknown;
282797
+ em?: string | unknown;
282798
+ fitText?: ({
282799
+ val?: number | unknown;
282800
+ id?: string | unknown;
282801
+ }) | unknown;
282802
+ snapToGrid?: boolean | unknown;
282803
+ lang?: ({
282804
+ val?: string | unknown;
282805
+ eastAsia?: string | unknown;
282806
+ bidi?: string | unknown;
282807
+ }) | unknown;
282808
+ oMath?: boolean | unknown;
282809
+ rStyle?: string | unknown;
282810
+ rFonts?: ({
282811
+ ascii?: string | unknown;
282812
+ hAnsi?: string | unknown;
282813
+ eastAsia?: string | unknown;
282814
+ cs?: string | unknown;
282815
+ asciiTheme?: string | unknown;
282816
+ hAnsiTheme?: string | unknown;
282817
+ eastAsiaTheme?: string | unknown;
282818
+ csTheme?: string | unknown;
282819
+ hint?: string | unknown;
282820
+ }) | unknown;
282821
+ fontSizeCs?: number | unknown;
282822
+ ligatures?: string | unknown;
282823
+ numForm?: string | unknown;
282824
+ numSpacing?: string | unknown;
282825
+ stylisticSets?: (Array<{
282826
+ id: number;
282827
+ val?: boolean;
282828
+ }>) | unknown;
282829
+ contextualAlternates?: boolean | unknown;
282830
+ };
282831
+ alignment?: "left" | "center" | "right" | "justify";
282832
+ scope?: "match" | "block";
281660
282833
  };
281661
282834
  }) | ({
281662
282835
  id: string;
281663
- op: "format.apply";
282836
+ op: "structural.replace";
281664
282837
  where: ({
281665
282838
  by: "select";
281666
282839
  select: ({
@@ -281944,97 +283117,15 @@ export interface DocMutationsApplyBoundParams {
281944
283117
  nodeId: string;
281945
283118
  });
281946
283119
  args: {
281947
- inline?: {
281948
- bold?: boolean | unknown;
281949
- italic?: boolean | unknown;
281950
- strike?: boolean | unknown;
281951
- underline?: boolean | unknown | ({
281952
- style?: string | unknown;
281953
- color?: string | unknown;
281954
- themeColor?: string | unknown;
281955
- });
281956
- highlight?: string | unknown;
281957
- color?: string | unknown;
281958
- fontSize?: number | unknown;
281959
- fontFamily?: string | unknown;
281960
- letterSpacing?: number | unknown;
281961
- vertAlign?: "superscript" | "subscript" | "baseline" | unknown;
281962
- position?: number | unknown;
281963
- dstrike?: boolean | unknown;
281964
- smallCaps?: boolean | unknown;
281965
- caps?: boolean | unknown;
281966
- shading?: ({
281967
- fill?: string | unknown;
281968
- color?: string | unknown;
281969
- val?: string | unknown;
281970
- }) | unknown;
281971
- border?: ({
281972
- val?: string | unknown;
281973
- sz?: number | unknown;
281974
- color?: string | unknown;
281975
- space?: number | unknown;
281976
- }) | unknown;
281977
- outline?: boolean | unknown;
281978
- shadow?: boolean | unknown;
281979
- emboss?: boolean | unknown;
281980
- imprint?: boolean | unknown;
281981
- charScale?: number | unknown;
281982
- kerning?: number | unknown;
281983
- vanish?: boolean | unknown;
281984
- webHidden?: boolean | unknown;
281985
- specVanish?: boolean | unknown;
281986
- rtl?: boolean | unknown;
281987
- cs?: boolean | unknown;
281988
- bCs?: boolean | unknown;
281989
- iCs?: boolean | unknown;
281990
- eastAsianLayout?: ({
281991
- id?: string | unknown;
281992
- combine?: boolean | unknown;
281993
- combineBrackets?: string | unknown;
281994
- vert?: boolean | unknown;
281995
- vertCompress?: boolean | unknown;
281996
- }) | unknown;
281997
- em?: string | unknown;
281998
- fitText?: ({
281999
- val?: number | unknown;
282000
- id?: string | unknown;
282001
- }) | unknown;
282002
- snapToGrid?: boolean | unknown;
282003
- lang?: ({
282004
- val?: string | unknown;
282005
- eastAsia?: string | unknown;
282006
- bidi?: string | unknown;
282007
- }) | unknown;
282008
- oMath?: boolean | unknown;
282009
- rStyle?: string | unknown;
282010
- rFonts?: ({
282011
- ascii?: string | unknown;
282012
- hAnsi?: string | unknown;
282013
- eastAsia?: string | unknown;
282014
- cs?: string | unknown;
282015
- asciiTheme?: string | unknown;
282016
- hAnsiTheme?: string | unknown;
282017
- eastAsiaTheme?: string | unknown;
282018
- csTheme?: string | unknown;
282019
- hint?: string | unknown;
282020
- }) | unknown;
282021
- fontSizeCs?: number | unknown;
282022
- ligatures?: string | unknown;
282023
- numForm?: string | unknown;
282024
- numSpacing?: string | unknown;
282025
- stylisticSets?: (Array<{
282026
- id: number;
282027
- val?: boolean;
282028
- }>) | unknown;
282029
- contextualAlternates?: boolean | unknown;
283120
+ content: Record<string, unknown> | Array<Record<string, unknown>>;
283121
+ nestingPolicy?: {
283122
+ tables?: "forbid" | "allow";
282030
283123
  };
282031
- alignment?: "left" | "center" | "right" | "justify";
282032
- scope?: "match" | "block";
282033
283124
  };
282034
283125
  }) | ({
282035
283126
  id: string;
282036
- op: "structural.replace";
282037
- where: ({
283127
+ op: "assert";
283128
+ where: {
282038
283129
  by: "select";
282039
283130
  select: ({
282040
283131
  type: "text";
@@ -282084,14 +283175,22 @@ export interface DocMutationsApplyBoundParams {
282084
283175
  textboxId: string;
282085
283176
  });
282086
283177
  };
282087
- require: "first" | "exactlyOne" | "all";
282088
- }) | ({
282089
- by: "ref";
282090
- ref: string;
282091
- within?: {
282092
- kind: "block";
282093
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
282094
- nodeId: string;
283178
+ };
283179
+ args: {
283180
+ expectCount: number;
283181
+ };
283182
+ }) | ({
283183
+ id: string;
283184
+ op: "comments.patch";
283185
+ args: {
283186
+ commentId: string;
283187
+ target: ({
283188
+ kind: "text";
283189
+ blockId: string;
283190
+ range: {
283191
+ start: number;
283192
+ end: number;
283193
+ };
282095
283194
  story?: ({
282096
283195
  kind: "story";
282097
283196
  storyType: "body";
@@ -282123,10 +283222,7 @@ export interface DocMutationsApplyBoundParams {
282123
283222
  storyType: "textbox";
282124
283223
  textboxId: string;
282125
283224
  });
282126
- };
282127
- }) | ({
282128
- by: "target";
282129
- target: {
283225
+ }) | ({
282130
283226
  kind: "selection";
282131
283227
  start: ({
282132
283228
  kind: "text";
@@ -282310,74 +283406,20 @@ export interface DocMutationsApplyBoundParams {
282310
283406
  textboxId: string;
282311
283407
  });
282312
283408
  coordinateSpace?: "visible" | "tracked";
282313
- };
282314
- }) | ({
282315
- by: "block";
282316
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
282317
- nodeId: string;
282318
- });
282319
- args: {
282320
- content: Record<string, unknown> | Array<Record<string, unknown>>;
282321
- nestingPolicy?: {
282322
- tables?: "forbid" | "allow";
282323
- };
283409
+ });
282324
283410
  };
282325
283411
  }) | ({
282326
283412
  id: string;
282327
- op: "assert";
282328
- where: {
282329
- by: "select";
282330
- select: ({
282331
- type: "text";
282332
- pattern: string;
282333
- mode?: "contains" | "regex";
282334
- caseSensitive?: boolean;
282335
- wholeWord?: boolean;
282336
- includeDeletedText?: boolean;
283413
+ op: "trackChanges.decide";
283414
+ args: {
283415
+ decision: "accept" | "reject";
283416
+ target: ({
283417
+ kind: "id";
283418
+ id: string;
282337
283419
  }) | ({
282338
- type: "node";
282339
- nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
282340
- kind?: "block" | "inline";
283420
+ kind: "ids";
283421
+ ids: Array<string>;
282341
283422
  });
282342
- within?: {
282343
- kind: "block";
282344
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
282345
- nodeId: string;
282346
- story?: ({
282347
- kind: "story";
282348
- storyType: "body";
282349
- }) | ({
282350
- kind: "story";
282351
- storyType: "headerFooterSlot";
282352
- section: {
282353
- kind: "section";
282354
- sectionId: string;
282355
- };
282356
- headerFooterKind: "header" | "footer";
282357
- variant: "default" | "first" | "even";
282358
- resolution?: "effective" | "explicit";
282359
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
282360
- }) | ({
282361
- kind: "story";
282362
- storyType: "headerFooterPart";
282363
- refId: string;
282364
- }) | ({
282365
- kind: "story";
282366
- storyType: "footnote";
282367
- noteId: string;
282368
- }) | ({
282369
- kind: "story";
282370
- storyType: "endnote";
282371
- noteId: string;
282372
- }) | ({
282373
- kind: "story";
282374
- storyType: "textbox";
282375
- textboxId: string;
282376
- });
282377
- };
282378
- };
282379
- args: {
282380
- expectCount: number;
282381
283423
  };
282382
283424
  })>;
282383
283425
  }
@@ -282386,6 +283428,7 @@ export interface DocPlanExecuteBoundParams {
282386
283428
  force?: boolean;
282387
283429
  expectedRevision?: string;
282388
283430
  changeMode?: string;
283431
+ atomic?: boolean;
282389
283432
  entries: Array<{
282390
283433
  operationId: string;
282391
283434
  input?: unknown;
@@ -286957,6 +288000,7 @@ export interface DocContentControlsReplaceContentBoundParams {
286957
288000
  };
286958
288001
  content: string;
286959
288002
  format?: "text" | "html" | "ooxml";
288003
+ overrideContentLock?: boolean;
286960
288004
  }
286961
288005
  export interface DocContentControlsClearContentBoundParams {
286962
288006
  out?: string;