@superdoc-dev/sdk 1.8.0-next.3 → 1.8.0-next.31

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.
@@ -3997,6 +3997,36 @@ export interface DocListsSeparateParams {
3997
3997
  input?: Record<string, unknown> | unknown[];
3998
3998
  nodeId?: string;
3999
3999
  }
4000
+ export interface DocListsMergeParams {
4001
+ doc?: string;
4002
+ sessionId?: string;
4003
+ out?: string;
4004
+ force?: boolean;
4005
+ expectedRevision?: number;
4006
+ changeMode?: string;
4007
+ dryRun?: boolean;
4008
+ target: {
4009
+ kind: "block";
4010
+ nodeType: "listItem";
4011
+ nodeId: string;
4012
+ };
4013
+ direction: string;
4014
+ }
4015
+ export interface DocListsSplitParams {
4016
+ doc?: string;
4017
+ sessionId?: string;
4018
+ out?: string;
4019
+ force?: boolean;
4020
+ expectedRevision?: number;
4021
+ changeMode?: string;
4022
+ dryRun?: boolean;
4023
+ target: {
4024
+ kind: "block";
4025
+ nodeType: "listItem";
4026
+ nodeId: string;
4027
+ };
4028
+ restartNumbering?: boolean;
4029
+ }
4000
4030
  export interface DocListsSetLevelParams {
4001
4031
  doc?: string;
4002
4032
  sessionId?: string;
@@ -4447,14 +4477,50 @@ export interface DocCommentsCreateParams {
4447
4477
  expectedRevision?: number;
4448
4478
  changeMode?: string;
4449
4479
  text?: string;
4450
- target?: {
4480
+ target?: ({
4451
4481
  kind: "text";
4452
4482
  blockId: string;
4453
4483
  range: {
4454
4484
  start: number;
4455
4485
  end: number;
4456
4486
  };
4457
- };
4487
+ }) | ({
4488
+ kind: "text";
4489
+ segments: Array<{
4490
+ blockId: string;
4491
+ range: {
4492
+ start: number;
4493
+ end: number;
4494
+ };
4495
+ }>;
4496
+ story?: ({
4497
+ kind: "story";
4498
+ storyType: "body";
4499
+ }) | ({
4500
+ kind: "story";
4501
+ storyType: "headerFooterSlot";
4502
+ section: {
4503
+ kind: "section";
4504
+ sectionId: string;
4505
+ };
4506
+ headerFooterKind: "header" | "footer";
4507
+ variant: "default" | "first" | "even";
4508
+ resolution?: "effective" | "explicit";
4509
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
4510
+ }) | ({
4511
+ kind: "story";
4512
+ storyType: "headerFooterPart";
4513
+ refId: string;
4514
+ }) | ({
4515
+ kind: "story";
4516
+ storyType: "footnote";
4517
+ noteId: string;
4518
+ }) | ({
4519
+ kind: "story";
4520
+ storyType: "endnote";
4521
+ noteId: string;
4522
+ });
4523
+ });
4458
4524
  parentId?: string;
4459
4525
  blockId?: string;
4460
4526
  start?: number;
@@ -4713,6 +4779,11 @@ export interface DocRangesResolveParams {
4713
4779
  });
4714
4780
  expectedRevision?: string;
4715
4781
  }
4782
+ export interface DocSelectionCurrentParams {
4783
+ doc?: string;
4784
+ sessionId?: string;
4785
+ includeText?: boolean;
4786
+ }
4716
4787
  export interface DocMutationsPreviewParams {
4717
4788
  doc?: string;
4718
4789
  sessionId?: string;
@@ -8168,6 +8239,33 @@ export interface DocBookmarksListParams {
8168
8239
  sessionId?: string;
8169
8240
  limit?: number;
8170
8241
  offset?: number;
8242
+ in?: ({
8243
+ kind: "story";
8244
+ storyType: "body";
8245
+ }) | ({
8246
+ kind: "story";
8247
+ storyType: "headerFooterSlot";
8248
+ section: {
8249
+ kind: "section";
8250
+ sectionId: string;
8251
+ };
8252
+ headerFooterKind: "header" | "footer";
8253
+ variant: "default" | "first" | "even";
8254
+ resolution?: "effective" | "explicit";
8255
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
8256
+ }) | ({
8257
+ kind: "story";
8258
+ storyType: "headerFooterPart";
8259
+ refId: string;
8260
+ }) | ({
8261
+ kind: "story";
8262
+ storyType: "footnote";
8263
+ noteId: string;
8264
+ }) | ({
8265
+ kind: "story";
8266
+ storyType: "endnote";
8267
+ noteId: string;
8268
+ });
8171
8269
  }
8172
8270
  export interface DocBookmarksGetParams {
8173
8271
  doc?: string;
@@ -8176,6 +8274,33 @@ export interface DocBookmarksGetParams {
8176
8274
  kind: "entity";
8177
8275
  entityType: "bookmark";
8178
8276
  name: string;
8277
+ story?: ({
8278
+ kind: "story";
8279
+ storyType: "body";
8280
+ }) | ({
8281
+ kind: "story";
8282
+ storyType: "headerFooterSlot";
8283
+ section: {
8284
+ kind: "section";
8285
+ sectionId: string;
8286
+ };
8287
+ headerFooterKind: "header" | "footer";
8288
+ variant: "default" | "first" | "even";
8289
+ resolution?: "effective" | "explicit";
8290
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
8291
+ }) | ({
8292
+ kind: "story";
8293
+ storyType: "headerFooterPart";
8294
+ refId: string;
8295
+ }) | ({
8296
+ kind: "story";
8297
+ storyType: "footnote";
8298
+ noteId: string;
8299
+ }) | ({
8300
+ kind: "story";
8301
+ storyType: "endnote";
8302
+ noteId: string;
8303
+ });
8179
8304
  };
8180
8305
  }
8181
8306
  export interface DocBookmarksInsertParams {
@@ -8196,6 +8321,33 @@ export interface DocBookmarksInsertParams {
8196
8321
  end: number;
8197
8322
  };
8198
8323
  }>;
8324
+ story?: ({
8325
+ kind: "story";
8326
+ storyType: "body";
8327
+ }) | ({
8328
+ kind: "story";
8329
+ storyType: "headerFooterSlot";
8330
+ section: {
8331
+ kind: "section";
8332
+ sectionId: string;
8333
+ };
8334
+ headerFooterKind: "header" | "footer";
8335
+ variant: "default" | "first" | "even";
8336
+ resolution?: "effective" | "explicit";
8337
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
8338
+ }) | ({
8339
+ kind: "story";
8340
+ storyType: "headerFooterPart";
8341
+ refId: string;
8342
+ }) | ({
8343
+ kind: "story";
8344
+ storyType: "footnote";
8345
+ noteId: string;
8346
+ }) | ({
8347
+ kind: "story";
8348
+ storyType: "endnote";
8349
+ noteId: string;
8350
+ });
8199
8351
  };
8200
8352
  tableColumn?: {
8201
8353
  colFirst: number;
@@ -8214,6 +8366,33 @@ export interface DocBookmarksRenameParams {
8214
8366
  kind: "entity";
8215
8367
  entityType: "bookmark";
8216
8368
  name: string;
8369
+ story?: ({
8370
+ kind: "story";
8371
+ storyType: "body";
8372
+ }) | ({
8373
+ kind: "story";
8374
+ storyType: "headerFooterSlot";
8375
+ section: {
8376
+ kind: "section";
8377
+ sectionId: string;
8378
+ };
8379
+ headerFooterKind: "header" | "footer";
8380
+ variant: "default" | "first" | "even";
8381
+ resolution?: "effective" | "explicit";
8382
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
8383
+ }) | ({
8384
+ kind: "story";
8385
+ storyType: "headerFooterPart";
8386
+ refId: string;
8387
+ }) | ({
8388
+ kind: "story";
8389
+ storyType: "footnote";
8390
+ noteId: string;
8391
+ }) | ({
8392
+ kind: "story";
8393
+ storyType: "endnote";
8394
+ noteId: string;
8395
+ });
8217
8396
  };
8218
8397
  newName: string;
8219
8398
  }
@@ -8229,6 +8408,33 @@ export interface DocBookmarksRemoveParams {
8229
8408
  kind: "entity";
8230
8409
  entityType: "bookmark";
8231
8410
  name: string;
8411
+ story?: ({
8412
+ kind: "story";
8413
+ storyType: "body";
8414
+ }) | ({
8415
+ kind: "story";
8416
+ storyType: "headerFooterSlot";
8417
+ section: {
8418
+ kind: "section";
8419
+ sectionId: string;
8420
+ };
8421
+ headerFooterKind: "header" | "footer";
8422
+ variant: "default" | "first" | "even";
8423
+ resolution?: "effective" | "explicit";
8424
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
8425
+ }) | ({
8426
+ kind: "story";
8427
+ storyType: "headerFooterPart";
8428
+ refId: string;
8429
+ }) | ({
8430
+ kind: "story";
8431
+ storyType: "footnote";
8432
+ noteId: string;
8433
+ }) | ({
8434
+ kind: "story";
8435
+ storyType: "endnote";
8436
+ noteId: string;
8437
+ });
8232
8438
  };
8233
8439
  }
8234
8440
  export interface DocFootnotesListParams {
@@ -8264,6 +8470,33 @@ export interface DocFootnotesInsertParams {
8264
8470
  end: number;
8265
8471
  };
8266
8472
  }>;
8473
+ story?: ({
8474
+ kind: "story";
8475
+ storyType: "body";
8476
+ }) | ({
8477
+ kind: "story";
8478
+ storyType: "headerFooterSlot";
8479
+ section: {
8480
+ kind: "section";
8481
+ sectionId: string;
8482
+ };
8483
+ headerFooterKind: "header" | "footer";
8484
+ variant: "default" | "first" | "even";
8485
+ resolution?: "effective" | "explicit";
8486
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
8487
+ }) | ({
8488
+ kind: "story";
8489
+ storyType: "headerFooterPart";
8490
+ refId: string;
8491
+ }) | ({
8492
+ kind: "story";
8493
+ storyType: "footnote";
8494
+ noteId: string;
8495
+ }) | ({
8496
+ kind: "story";
8497
+ storyType: "endnote";
8498
+ noteId: string;
8499
+ });
8267
8500
  };
8268
8501
  type: string;
8269
8502
  content: string;
@@ -8362,29 +8595,56 @@ export interface DocCrossRefsInsertParams {
8362
8595
  end: number;
8363
8596
  };
8364
8597
  }>;
8365
- };
8366
- target: ({
8367
- kind: "bookmark";
8368
- name: string;
8369
- }) | ({
8370
- kind: "heading";
8371
- nodeId: string;
8372
- }) | ({
8373
- kind: "note";
8374
- noteId: string;
8375
- }) | ({
8376
- kind: "caption";
8377
- nodeId: string;
8378
- }) | ({
8379
- kind: "numberedItem";
8380
- nodeId: string;
8381
- }) | ({
8382
- kind: "styledParagraph";
8383
- styleName: string;
8384
- direction?: "before" | "after";
8385
- });
8386
- display: string;
8387
- }
8598
+ story?: ({
8599
+ kind: "story";
8600
+ storyType: "body";
8601
+ }) | ({
8602
+ kind: "story";
8603
+ storyType: "headerFooterSlot";
8604
+ section: {
8605
+ kind: "section";
8606
+ sectionId: string;
8607
+ };
8608
+ headerFooterKind: "header" | "footer";
8609
+ variant: "default" | "first" | "even";
8610
+ resolution?: "effective" | "explicit";
8611
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
8612
+ }) | ({
8613
+ kind: "story";
8614
+ storyType: "headerFooterPart";
8615
+ refId: string;
8616
+ }) | ({
8617
+ kind: "story";
8618
+ storyType: "footnote";
8619
+ noteId: string;
8620
+ }) | ({
8621
+ kind: "story";
8622
+ storyType: "endnote";
8623
+ noteId: string;
8624
+ });
8625
+ };
8626
+ target: ({
8627
+ kind: "bookmark";
8628
+ name: string;
8629
+ }) | ({
8630
+ kind: "heading";
8631
+ nodeId: string;
8632
+ }) | ({
8633
+ kind: "note";
8634
+ noteId: string;
8635
+ }) | ({
8636
+ kind: "caption";
8637
+ nodeId: string;
8638
+ }) | ({
8639
+ kind: "numberedItem";
8640
+ nodeId: string;
8641
+ }) | ({
8642
+ kind: "styledParagraph";
8643
+ styleName: string;
8644
+ direction?: "before" | "after";
8645
+ });
8646
+ display: string;
8647
+ }
8388
8648
  export interface DocCrossRefsRebuildParams {
8389
8649
  doc?: string;
8390
8650
  sessionId?: string;
@@ -8588,6 +8848,33 @@ export interface DocIndexEntriesInsertParams {
8588
8848
  end: number;
8589
8849
  };
8590
8850
  }>;
8851
+ story?: ({
8852
+ kind: "story";
8853
+ storyType: "body";
8854
+ }) | ({
8855
+ kind: "story";
8856
+ storyType: "headerFooterSlot";
8857
+ section: {
8858
+ kind: "section";
8859
+ sectionId: string;
8860
+ };
8861
+ headerFooterKind: "header" | "footer";
8862
+ variant: "default" | "first" | "even";
8863
+ resolution?: "effective" | "explicit";
8864
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
8865
+ }) | ({
8866
+ kind: "story";
8867
+ storyType: "headerFooterPart";
8868
+ refId: string;
8869
+ }) | ({
8870
+ kind: "story";
8871
+ storyType: "footnote";
8872
+ noteId: string;
8873
+ }) | ({
8874
+ kind: "story";
8875
+ storyType: "endnote";
8876
+ noteId: string;
8877
+ });
8591
8878
  };
8592
8879
  entry: {
8593
8880
  text: string;
@@ -8767,6 +9054,33 @@ export interface DocFieldsInsertParams {
8767
9054
  end: number;
8768
9055
  };
8769
9056
  }>;
9057
+ story?: ({
9058
+ kind: "story";
9059
+ storyType: "body";
9060
+ }) | ({
9061
+ kind: "story";
9062
+ storyType: "headerFooterSlot";
9063
+ section: {
9064
+ kind: "section";
9065
+ sectionId: string;
9066
+ };
9067
+ headerFooterKind: "header" | "footer";
9068
+ variant: "default" | "first" | "even";
9069
+ resolution?: "effective" | "explicit";
9070
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
9071
+ }) | ({
9072
+ kind: "story";
9073
+ storyType: "headerFooterPart";
9074
+ refId: string;
9075
+ }) | ({
9076
+ kind: "story";
9077
+ storyType: "footnote";
9078
+ noteId: string;
9079
+ }) | ({
9080
+ kind: "story";
9081
+ storyType: "endnote";
9082
+ noteId: string;
9083
+ });
8770
9084
  };
8771
9085
  instruction: string;
8772
9086
  }
@@ -8842,6 +9156,33 @@ export interface DocCitationsInsertParams {
8842
9156
  end: number;
8843
9157
  };
8844
9158
  }>;
9159
+ story?: ({
9160
+ kind: "story";
9161
+ storyType: "body";
9162
+ }) | ({
9163
+ kind: "story";
9164
+ storyType: "headerFooterSlot";
9165
+ section: {
9166
+ kind: "section";
9167
+ sectionId: string;
9168
+ };
9169
+ headerFooterKind: "header" | "footer";
9170
+ variant: "default" | "first" | "even";
9171
+ resolution?: "effective" | "explicit";
9172
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
9173
+ }) | ({
9174
+ kind: "story";
9175
+ storyType: "headerFooterPart";
9176
+ refId: string;
9177
+ }) | ({
9178
+ kind: "story";
9179
+ storyType: "footnote";
9180
+ noteId: string;
9181
+ }) | ({
9182
+ kind: "story";
9183
+ storyType: "endnote";
9184
+ noteId: string;
9185
+ });
8845
9186
  };
8846
9187
  sourceIds: string[];
8847
9188
  }
@@ -9234,6 +9575,33 @@ export interface DocAuthoritiesEntriesInsertParams {
9234
9575
  end: number;
9235
9576
  };
9236
9577
  }>;
9578
+ story?: ({
9579
+ kind: "story";
9580
+ storyType: "body";
9581
+ }) | ({
9582
+ kind: "story";
9583
+ storyType: "headerFooterSlot";
9584
+ section: {
9585
+ kind: "section";
9586
+ sectionId: string;
9587
+ };
9588
+ headerFooterKind: "header" | "footer";
9589
+ variant: "default" | "first" | "even";
9590
+ resolution?: "effective" | "explicit";
9591
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
9592
+ }) | ({
9593
+ kind: "story";
9594
+ storyType: "headerFooterPart";
9595
+ refId: string;
9596
+ }) | ({
9597
+ kind: "story";
9598
+ storyType: "footnote";
9599
+ noteId: string;
9600
+ }) | ({
9601
+ kind: "story";
9602
+ storyType: "endnote";
9603
+ noteId: string;
9604
+ });
9237
9605
  };
9238
9606
  entry: {
9239
9607
  longCitation: string;
@@ -9693,6 +10061,13 @@ export type DocExtractResult = {
9693
10061
  nodeId: string;
9694
10062
  type: string;
9695
10063
  text: string;
10064
+ textSpans?: Array<{
10065
+ text: string;
10066
+ trackedChanges?: Array<{
10067
+ entityId: string;
10068
+ type: "insert" | "delete" | "format";
10069
+ }>;
10070
+ }>;
9696
10071
  headingLevel?: number;
9697
10072
  tableContext?: {
9698
10073
  tableOrdinal: number;
@@ -9716,6 +10091,12 @@ export type DocExtractResult = {
9716
10091
  trackedChanges: Array<{
9717
10092
  entityId: string;
9718
10093
  type: "insert" | "delete" | "format";
10094
+ blockIds?: Array<string>;
10095
+ wordRevisionIds?: {
10096
+ insert?: string;
10097
+ delete?: string;
10098
+ format?: string;
10099
+ };
9719
10100
  excerpt?: string;
9720
10101
  author?: string;
9721
10102
  date?: string;
@@ -18607,6 +18988,18 @@ export type DocListsSeparateResult = {
18607
18988
  listId: string;
18608
18989
  numId: number;
18609
18990
  };
18991
+ export type DocListsMergeResult = {
18992
+ success: true;
18993
+ listId: string;
18994
+ absorbedCount: number;
18995
+ removedEmptyBlocks: number;
18996
+ };
18997
+ export type DocListsSplitResult = {
18998
+ success: true;
18999
+ listId: string;
19000
+ numId: number;
19001
+ restartedAt: unknown;
19002
+ };
18610
19003
  export type DocListsSetLevelResult = {
18611
19004
  success: true;
18612
19005
  item: {
@@ -19185,6 +19578,33 @@ export type DocCommentsGetResult = {
19185
19578
  end: number;
19186
19579
  };
19187
19580
  }>;
19581
+ story?: ({
19582
+ kind: "story";
19583
+ storyType: "body";
19584
+ }) | ({
19585
+ kind: "story";
19586
+ storyType: "headerFooterSlot";
19587
+ section: {
19588
+ kind: "section";
19589
+ sectionId: string;
19590
+ };
19591
+ headerFooterKind: "header" | "footer";
19592
+ variant: "default" | "first" | "even";
19593
+ resolution?: "effective" | "explicit";
19594
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
19595
+ }) | ({
19596
+ kind: "story";
19597
+ storyType: "headerFooterPart";
19598
+ refId: string;
19599
+ }) | ({
19600
+ kind: "story";
19601
+ storyType: "footnote";
19602
+ noteId: string;
19603
+ }) | ({
19604
+ kind: "story";
19605
+ storyType: "endnote";
19606
+ noteId: string;
19607
+ });
19188
19608
  };
19189
19609
  anchoredText?: string;
19190
19610
  createdTime?: number;
@@ -19220,6 +19640,33 @@ export type DocCommentsListResult = {
19220
19640
  end: number;
19221
19641
  };
19222
19642
  }>;
19643
+ story?: ({
19644
+ kind: "story";
19645
+ storyType: "body";
19646
+ }) | ({
19647
+ kind: "story";
19648
+ storyType: "headerFooterSlot";
19649
+ section: {
19650
+ kind: "section";
19651
+ sectionId: string;
19652
+ };
19653
+ headerFooterKind: "header" | "footer";
19654
+ variant: "default" | "first" | "even";
19655
+ resolution?: "effective" | "explicit";
19656
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
19657
+ }) | ({
19658
+ kind: "story";
19659
+ storyType: "headerFooterPart";
19660
+ refId: string;
19661
+ }) | ({
19662
+ kind: "story";
19663
+ storyType: "footnote";
19664
+ noteId: string;
19665
+ }) | ({
19666
+ kind: "story";
19667
+ storyType: "endnote";
19668
+ noteId: string;
19669
+ });
19223
19670
  };
19224
19671
  anchoredText?: string;
19225
19672
  createdTime?: number;
@@ -19665,35 +20112,79 @@ export type DocRangesResolveResult = {
19665
20112
  }>;
19666
20113
  };
19667
20114
  };
19668
- export type DocMutationsPreviewResult = {
19669
- evaluatedRevision: string;
19670
- steps: Array<Record<string, unknown>>;
19671
- valid: boolean;
19672
- failures?: Array<Record<string, unknown>>;
19673
- };
19674
- export type DocMutationsApplyResult = {
19675
- success: true;
19676
- revision: {
19677
- before: string;
19678
- after: string;
19679
- };
19680
- steps: Array<Record<string, unknown>>;
19681
- timing: {
19682
- totalMs: number;
19683
- };
19684
- };
19685
- export type DocCapabilitiesGetResult = {
19686
- global: {
19687
- trackChanges: {
19688
- enabled: boolean;
19689
- reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
19690
- };
19691
- comments: {
19692
- enabled: boolean;
19693
- reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
19694
- };
19695
- lists: {
19696
- enabled: boolean;
20115
+ export type DocSelectionCurrentResult = {
20116
+ empty: boolean;
20117
+ target: ({
20118
+ kind: "text";
20119
+ segments: Array<{
20120
+ blockId: string;
20121
+ range: {
20122
+ start: number;
20123
+ end: number;
20124
+ };
20125
+ }>;
20126
+ story?: ({
20127
+ kind: "story";
20128
+ storyType: "body";
20129
+ }) | ({
20130
+ kind: "story";
20131
+ storyType: "headerFooterSlot";
20132
+ section: {
20133
+ kind: "section";
20134
+ sectionId: string;
20135
+ };
20136
+ headerFooterKind: "header" | "footer";
20137
+ variant: "default" | "first" | "even";
20138
+ resolution?: "effective" | "explicit";
20139
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
20140
+ }) | ({
20141
+ kind: "story";
20142
+ storyType: "headerFooterPart";
20143
+ refId: string;
20144
+ }) | ({
20145
+ kind: "story";
20146
+ storyType: "footnote";
20147
+ noteId: string;
20148
+ }) | ({
20149
+ kind: "story";
20150
+ storyType: "endnote";
20151
+ noteId: string;
20152
+ });
20153
+ }) | null;
20154
+ activeMarks: Array<string>;
20155
+ activeCommentIds: Array<string>;
20156
+ activeChangeIds: Array<string>;
20157
+ text?: string;
20158
+ };
20159
+ export type DocMutationsPreviewResult = {
20160
+ evaluatedRevision: string;
20161
+ steps: Array<Record<string, unknown>>;
20162
+ valid: boolean;
20163
+ failures?: Array<Record<string, unknown>>;
20164
+ };
20165
+ export type DocMutationsApplyResult = {
20166
+ success: true;
20167
+ revision: {
20168
+ before: string;
20169
+ after: string;
20170
+ };
20171
+ steps: Array<Record<string, unknown>>;
20172
+ timing: {
20173
+ totalMs: number;
20174
+ };
20175
+ };
20176
+ export type DocCapabilitiesGetResult = {
20177
+ global: {
20178
+ trackChanges: {
20179
+ enabled: boolean;
20180
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
20181
+ };
20182
+ comments: {
20183
+ enabled: boolean;
20184
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
20185
+ };
20186
+ lists: {
20187
+ enabled: boolean;
19697
20188
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
19698
20189
  };
19699
20190
  dryRun: {
@@ -20658,6 +21149,18 @@ export type DocCapabilitiesGetResult = {
20658
21149
  dryRun: boolean;
20659
21150
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
20660
21151
  };
21152
+ "lists.merge": {
21153
+ available: boolean;
21154
+ tracked: boolean;
21155
+ dryRun: boolean;
21156
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
21157
+ };
21158
+ "lists.split": {
21159
+ available: boolean;
21160
+ tracked: boolean;
21161
+ dryRun: boolean;
21162
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
21163
+ };
20661
21164
  "lists.setLevel": {
20662
21165
  available: boolean;
20663
21166
  tracked: boolean;
@@ -20868,6 +21371,12 @@ export type DocCapabilitiesGetResult = {
20868
21371
  dryRun: boolean;
20869
21372
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
20870
21373
  };
21374
+ "selection.current": {
21375
+ available: boolean;
21376
+ tracked: boolean;
21377
+ dryRun: boolean;
21378
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
21379
+ };
20871
21380
  "mutations.preview": {
20872
21381
  available: boolean;
20873
21382
  tracked: boolean;
@@ -25255,6 +25764,33 @@ export type DocBookmarksInsertResult = {
25255
25764
  kind: "entity";
25256
25765
  entityType: "bookmark";
25257
25766
  name: string;
25767
+ story?: ({
25768
+ kind: "story";
25769
+ storyType: "body";
25770
+ }) | ({
25771
+ kind: "story";
25772
+ storyType: "headerFooterSlot";
25773
+ section: {
25774
+ kind: "section";
25775
+ sectionId: string;
25776
+ };
25777
+ headerFooterKind: "header" | "footer";
25778
+ variant: "default" | "first" | "even";
25779
+ resolution?: "effective" | "explicit";
25780
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
25781
+ }) | ({
25782
+ kind: "story";
25783
+ storyType: "headerFooterPart";
25784
+ refId: string;
25785
+ }) | ({
25786
+ kind: "story";
25787
+ storyType: "footnote";
25788
+ noteId: string;
25789
+ }) | ({
25790
+ kind: "story";
25791
+ storyType: "endnote";
25792
+ noteId: string;
25793
+ });
25258
25794
  };
25259
25795
  };
25260
25796
  export type DocBookmarksRenameResult = {
@@ -25263,6 +25799,33 @@ export type DocBookmarksRenameResult = {
25263
25799
  kind: "entity";
25264
25800
  entityType: "bookmark";
25265
25801
  name: string;
25802
+ story?: ({
25803
+ kind: "story";
25804
+ storyType: "body";
25805
+ }) | ({
25806
+ kind: "story";
25807
+ storyType: "headerFooterSlot";
25808
+ section: {
25809
+ kind: "section";
25810
+ sectionId: string;
25811
+ };
25812
+ headerFooterKind: "header" | "footer";
25813
+ variant: "default" | "first" | "even";
25814
+ resolution?: "effective" | "explicit";
25815
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
25816
+ }) | ({
25817
+ kind: "story";
25818
+ storyType: "headerFooterPart";
25819
+ refId: string;
25820
+ }) | ({
25821
+ kind: "story";
25822
+ storyType: "footnote";
25823
+ noteId: string;
25824
+ }) | ({
25825
+ kind: "story";
25826
+ storyType: "endnote";
25827
+ noteId: string;
25828
+ });
25266
25829
  };
25267
25830
  };
25268
25831
  export type DocBookmarksRemoveResult = {
@@ -25271,6 +25834,33 @@ export type DocBookmarksRemoveResult = {
25271
25834
  kind: "entity";
25272
25835
  entityType: "bookmark";
25273
25836
  name: string;
25837
+ story?: ({
25838
+ kind: "story";
25839
+ storyType: "body";
25840
+ }) | ({
25841
+ kind: "story";
25842
+ storyType: "headerFooterSlot";
25843
+ section: {
25844
+ kind: "section";
25845
+ sectionId: string;
25846
+ };
25847
+ headerFooterKind: "header" | "footer";
25848
+ variant: "default" | "first" | "even";
25849
+ resolution?: "effective" | "explicit";
25850
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
25851
+ }) | ({
25852
+ kind: "story";
25853
+ storyType: "headerFooterPart";
25854
+ refId: string;
25855
+ }) | ({
25856
+ kind: "story";
25857
+ storyType: "footnote";
25858
+ noteId: string;
25859
+ }) | ({
25860
+ kind: "story";
25861
+ storyType: "endnote";
25862
+ noteId: string;
25863
+ });
25274
25864
  };
25275
25865
  };
25276
25866
  export type DocFootnotesListResult = Record<string, unknown>;
@@ -29732,6 +30322,32 @@ export interface DocListsSeparateBoundParams {
29732
30322
  input?: Record<string, unknown> | unknown[];
29733
30323
  nodeId?: string;
29734
30324
  }
30325
+ export interface DocListsMergeBoundParams {
30326
+ out?: string;
30327
+ force?: boolean;
30328
+ expectedRevision?: number;
30329
+ changeMode?: string;
30330
+ dryRun?: boolean;
30331
+ target: {
30332
+ kind: "block";
30333
+ nodeType: "listItem";
30334
+ nodeId: string;
30335
+ };
30336
+ direction: string;
30337
+ }
30338
+ export interface DocListsSplitBoundParams {
30339
+ out?: string;
30340
+ force?: boolean;
30341
+ expectedRevision?: number;
30342
+ changeMode?: string;
30343
+ dryRun?: boolean;
30344
+ target: {
30345
+ kind: "block";
30346
+ nodeType: "listItem";
30347
+ nodeId: string;
30348
+ };
30349
+ restartNumbering?: boolean;
30350
+ }
29735
30351
  export interface DocListsSetLevelBoundParams {
29736
30352
  out?: string;
29737
30353
  force?: boolean;
@@ -30130,14 +30746,50 @@ export interface DocCommentsCreateBoundParams {
30130
30746
  expectedRevision?: number;
30131
30747
  changeMode?: string;
30132
30748
  text?: string;
30133
- target?: {
30749
+ target?: ({
30134
30750
  kind: "text";
30135
30751
  blockId: string;
30136
30752
  range: {
30137
30753
  start: number;
30138
30754
  end: number;
30139
30755
  };
30140
- };
30756
+ }) | ({
30757
+ kind: "text";
30758
+ segments: Array<{
30759
+ blockId: string;
30760
+ range: {
30761
+ start: number;
30762
+ end: number;
30763
+ };
30764
+ }>;
30765
+ story?: ({
30766
+ kind: "story";
30767
+ storyType: "body";
30768
+ }) | ({
30769
+ kind: "story";
30770
+ storyType: "headerFooterSlot";
30771
+ section: {
30772
+ kind: "section";
30773
+ sectionId: string;
30774
+ };
30775
+ headerFooterKind: "header" | "footer";
30776
+ variant: "default" | "first" | "even";
30777
+ resolution?: "effective" | "explicit";
30778
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
30779
+ }) | ({
30780
+ kind: "story";
30781
+ storyType: "headerFooterPart";
30782
+ refId: string;
30783
+ }) | ({
30784
+ kind: "story";
30785
+ storyType: "footnote";
30786
+ noteId: string;
30787
+ }) | ({
30788
+ kind: "story";
30789
+ storyType: "endnote";
30790
+ noteId: string;
30791
+ });
30792
+ });
30141
30793
  parentId?: string;
30142
30794
  blockId?: string;
30143
30795
  start?: number;
@@ -30378,6 +31030,9 @@ export interface DocRangesResolveBoundParams {
30378
31030
  });
30379
31031
  expectedRevision?: string;
30380
31032
  }
31033
+ export interface DocSelectionCurrentBoundParams {
31034
+ includeText?: boolean;
31035
+ }
30381
31036
  export interface DocMutationsPreviewBoundParams {
30382
31037
  in?: ({
30383
31038
  kind: "story";
@@ -33510,13 +34165,67 @@ export interface DocContentControlsGroupUngroupBoundParams {
33510
34165
  export interface DocBookmarksListBoundParams {
33511
34166
  limit?: number;
33512
34167
  offset?: number;
34168
+ in?: ({
34169
+ kind: "story";
34170
+ storyType: "body";
34171
+ }) | ({
34172
+ kind: "story";
34173
+ storyType: "headerFooterSlot";
34174
+ section: {
34175
+ kind: "section";
34176
+ sectionId: string;
34177
+ };
34178
+ headerFooterKind: "header" | "footer";
34179
+ variant: "default" | "first" | "even";
34180
+ resolution?: "effective" | "explicit";
34181
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
34182
+ }) | ({
34183
+ kind: "story";
34184
+ storyType: "headerFooterPart";
34185
+ refId: string;
34186
+ }) | ({
34187
+ kind: "story";
34188
+ storyType: "footnote";
34189
+ noteId: string;
34190
+ }) | ({
34191
+ kind: "story";
34192
+ storyType: "endnote";
34193
+ noteId: string;
34194
+ });
33513
34195
  }
33514
34196
  export interface DocBookmarksGetBoundParams {
33515
34197
  target: {
33516
34198
  kind: "entity";
33517
34199
  entityType: "bookmark";
33518
34200
  name: string;
33519
- };
34201
+ story?: ({
34202
+ kind: "story";
34203
+ storyType: "body";
34204
+ }) | ({
34205
+ kind: "story";
34206
+ storyType: "headerFooterSlot";
34207
+ section: {
34208
+ kind: "section";
34209
+ sectionId: string;
34210
+ };
34211
+ headerFooterKind: "header" | "footer";
34212
+ variant: "default" | "first" | "even";
34213
+ resolution?: "effective" | "explicit";
34214
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
34215
+ }) | ({
34216
+ kind: "story";
34217
+ storyType: "headerFooterPart";
34218
+ refId: string;
34219
+ }) | ({
34220
+ kind: "story";
34221
+ storyType: "footnote";
34222
+ noteId: string;
34223
+ }) | ({
34224
+ kind: "story";
34225
+ storyType: "endnote";
34226
+ noteId: string;
34227
+ });
34228
+ };
33520
34229
  }
33521
34230
  export interface DocBookmarksInsertBoundParams {
33522
34231
  out?: string;
@@ -33534,6 +34243,33 @@ export interface DocBookmarksInsertBoundParams {
33534
34243
  end: number;
33535
34244
  };
33536
34245
  }>;
34246
+ story?: ({
34247
+ kind: "story";
34248
+ storyType: "body";
34249
+ }) | ({
34250
+ kind: "story";
34251
+ storyType: "headerFooterSlot";
34252
+ section: {
34253
+ kind: "section";
34254
+ sectionId: string;
34255
+ };
34256
+ headerFooterKind: "header" | "footer";
34257
+ variant: "default" | "first" | "even";
34258
+ resolution?: "effective" | "explicit";
34259
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
34260
+ }) | ({
34261
+ kind: "story";
34262
+ storyType: "headerFooterPart";
34263
+ refId: string;
34264
+ }) | ({
34265
+ kind: "story";
34266
+ storyType: "footnote";
34267
+ noteId: string;
34268
+ }) | ({
34269
+ kind: "story";
34270
+ storyType: "endnote";
34271
+ noteId: string;
34272
+ });
33537
34273
  };
33538
34274
  tableColumn?: {
33539
34275
  colFirst: number;
@@ -33550,6 +34286,33 @@ export interface DocBookmarksRenameBoundParams {
33550
34286
  kind: "entity";
33551
34287
  entityType: "bookmark";
33552
34288
  name: string;
34289
+ story?: ({
34290
+ kind: "story";
34291
+ storyType: "body";
34292
+ }) | ({
34293
+ kind: "story";
34294
+ storyType: "headerFooterSlot";
34295
+ section: {
34296
+ kind: "section";
34297
+ sectionId: string;
34298
+ };
34299
+ headerFooterKind: "header" | "footer";
34300
+ variant: "default" | "first" | "even";
34301
+ resolution?: "effective" | "explicit";
34302
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
34303
+ }) | ({
34304
+ kind: "story";
34305
+ storyType: "headerFooterPart";
34306
+ refId: string;
34307
+ }) | ({
34308
+ kind: "story";
34309
+ storyType: "footnote";
34310
+ noteId: string;
34311
+ }) | ({
34312
+ kind: "story";
34313
+ storyType: "endnote";
34314
+ noteId: string;
34315
+ });
33553
34316
  };
33554
34317
  newName: string;
33555
34318
  }
@@ -33563,6 +34326,33 @@ export interface DocBookmarksRemoveBoundParams {
33563
34326
  kind: "entity";
33564
34327
  entityType: "bookmark";
33565
34328
  name: string;
34329
+ story?: ({
34330
+ kind: "story";
34331
+ storyType: "body";
34332
+ }) | ({
34333
+ kind: "story";
34334
+ storyType: "headerFooterSlot";
34335
+ section: {
34336
+ kind: "section";
34337
+ sectionId: string;
34338
+ };
34339
+ headerFooterKind: "header" | "footer";
34340
+ variant: "default" | "first" | "even";
34341
+ resolution?: "effective" | "explicit";
34342
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
34343
+ }) | ({
34344
+ kind: "story";
34345
+ storyType: "headerFooterPart";
34346
+ refId: string;
34347
+ }) | ({
34348
+ kind: "story";
34349
+ storyType: "footnote";
34350
+ noteId: string;
34351
+ }) | ({
34352
+ kind: "story";
34353
+ storyType: "endnote";
34354
+ noteId: string;
34355
+ });
33566
34356
  };
33567
34357
  }
33568
34358
  export interface DocFootnotesListBoundParams {
@@ -33592,6 +34382,33 @@ export interface DocFootnotesInsertBoundParams {
33592
34382
  end: number;
33593
34383
  };
33594
34384
  }>;
34385
+ story?: ({
34386
+ kind: "story";
34387
+ storyType: "body";
34388
+ }) | ({
34389
+ kind: "story";
34390
+ storyType: "headerFooterSlot";
34391
+ section: {
34392
+ kind: "section";
34393
+ sectionId: string;
34394
+ };
34395
+ headerFooterKind: "header" | "footer";
34396
+ variant: "default" | "first" | "even";
34397
+ resolution?: "effective" | "explicit";
34398
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
34399
+ }) | ({
34400
+ kind: "story";
34401
+ storyType: "headerFooterPart";
34402
+ refId: string;
34403
+ }) | ({
34404
+ kind: "story";
34405
+ storyType: "footnote";
34406
+ noteId: string;
34407
+ }) | ({
34408
+ kind: "story";
34409
+ storyType: "endnote";
34410
+ noteId: string;
34411
+ });
33595
34412
  };
33596
34413
  type: string;
33597
34414
  content: string;
@@ -33678,6 +34495,33 @@ export interface DocCrossRefsInsertBoundParams {
33678
34495
  end: number;
33679
34496
  };
33680
34497
  }>;
34498
+ story?: ({
34499
+ kind: "story";
34500
+ storyType: "body";
34501
+ }) | ({
34502
+ kind: "story";
34503
+ storyType: "headerFooterSlot";
34504
+ section: {
34505
+ kind: "section";
34506
+ sectionId: string;
34507
+ };
34508
+ headerFooterKind: "header" | "footer";
34509
+ variant: "default" | "first" | "even";
34510
+ resolution?: "effective" | "explicit";
34511
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
34512
+ }) | ({
34513
+ kind: "story";
34514
+ storyType: "headerFooterPart";
34515
+ refId: string;
34516
+ }) | ({
34517
+ kind: "story";
34518
+ storyType: "footnote";
34519
+ noteId: string;
34520
+ }) | ({
34521
+ kind: "story";
34522
+ storyType: "endnote";
34523
+ noteId: string;
34524
+ });
33681
34525
  };
33682
34526
  target: ({
33683
34527
  kind: "bookmark";
@@ -33882,6 +34726,33 @@ export interface DocIndexEntriesInsertBoundParams {
33882
34726
  end: number;
33883
34727
  };
33884
34728
  }>;
34729
+ story?: ({
34730
+ kind: "story";
34731
+ storyType: "body";
34732
+ }) | ({
34733
+ kind: "story";
34734
+ storyType: "headerFooterSlot";
34735
+ section: {
34736
+ kind: "section";
34737
+ sectionId: string;
34738
+ };
34739
+ headerFooterKind: "header" | "footer";
34740
+ variant: "default" | "first" | "even";
34741
+ resolution?: "effective" | "explicit";
34742
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
34743
+ }) | ({
34744
+ kind: "story";
34745
+ storyType: "headerFooterPart";
34746
+ refId: string;
34747
+ }) | ({
34748
+ kind: "story";
34749
+ storyType: "footnote";
34750
+ noteId: string;
34751
+ }) | ({
34752
+ kind: "story";
34753
+ storyType: "endnote";
34754
+ noteId: string;
34755
+ });
33885
34756
  };
33886
34757
  entry: {
33887
34758
  text: string;
@@ -34039,6 +34910,33 @@ export interface DocFieldsInsertBoundParams {
34039
34910
  end: number;
34040
34911
  };
34041
34912
  }>;
34913
+ story?: ({
34914
+ kind: "story";
34915
+ storyType: "body";
34916
+ }) | ({
34917
+ kind: "story";
34918
+ storyType: "headerFooterSlot";
34919
+ section: {
34920
+ kind: "section";
34921
+ sectionId: string;
34922
+ };
34923
+ headerFooterKind: "header" | "footer";
34924
+ variant: "default" | "first" | "even";
34925
+ resolution?: "effective" | "explicit";
34926
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
34927
+ }) | ({
34928
+ kind: "story";
34929
+ storyType: "headerFooterPart";
34930
+ refId: string;
34931
+ }) | ({
34932
+ kind: "story";
34933
+ storyType: "footnote";
34934
+ noteId: string;
34935
+ }) | ({
34936
+ kind: "story";
34937
+ storyType: "endnote";
34938
+ noteId: string;
34939
+ });
34042
34940
  };
34043
34941
  instruction: string;
34044
34942
  }
@@ -34104,6 +35002,33 @@ export interface DocCitationsInsertBoundParams {
34104
35002
  end: number;
34105
35003
  };
34106
35004
  }>;
35005
+ story?: ({
35006
+ kind: "story";
35007
+ storyType: "body";
35008
+ }) | ({
35009
+ kind: "story";
35010
+ storyType: "headerFooterSlot";
35011
+ section: {
35012
+ kind: "section";
35013
+ sectionId: string;
35014
+ };
35015
+ headerFooterKind: "header" | "footer";
35016
+ variant: "default" | "first" | "even";
35017
+ resolution?: "effective" | "explicit";
35018
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
35019
+ }) | ({
35020
+ kind: "story";
35021
+ storyType: "headerFooterPart";
35022
+ refId: string;
35023
+ }) | ({
35024
+ kind: "story";
35025
+ storyType: "footnote";
35026
+ noteId: string;
35027
+ }) | ({
35028
+ kind: "story";
35029
+ storyType: "endnote";
35030
+ noteId: string;
35031
+ });
34107
35032
  };
34108
35033
  sourceIds: string[];
34109
35034
  }
@@ -34454,6 +35379,33 @@ export interface DocAuthoritiesEntriesInsertBoundParams {
34454
35379
  end: number;
34455
35380
  };
34456
35381
  }>;
35382
+ story?: ({
35383
+ kind: "story";
35384
+ storyType: "body";
35385
+ }) | ({
35386
+ kind: "story";
35387
+ storyType: "headerFooterSlot";
35388
+ section: {
35389
+ kind: "section";
35390
+ sectionId: string;
35391
+ };
35392
+ headerFooterKind: "header" | "footer";
35393
+ variant: "default" | "first" | "even";
35394
+ resolution?: "effective" | "explicit";
35395
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
35396
+ }) | ({
35397
+ kind: "story";
35398
+ storyType: "headerFooterPart";
35399
+ refId: string;
35400
+ }) | ({
35401
+ kind: "story";
35402
+ storyType: "footnote";
35403
+ noteId: string;
35404
+ }) | ({
35405
+ kind: "story";
35406
+ storyType: "endnote";
35407
+ noteId: string;
35408
+ });
34457
35409
  };
34458
35410
  entry: {
34459
35411
  longCitation: string;
@@ -34823,6 +35775,8 @@ export declare function createDocApi(runtime: RuntimeInvoker): {
34823
35775
  join: (params?: DocListsJoinParams, options?: InvokeOptions) => Promise<DocListsJoinResult>;
34824
35776
  canJoin: (params?: DocListsCanJoinParams, options?: InvokeOptions) => Promise<DocListsCanJoinResult>;
34825
35777
  separate: (params?: DocListsSeparateParams, options?: InvokeOptions) => Promise<DocListsSeparateResult>;
35778
+ merge: (params: DocListsMergeParams, options?: InvokeOptions) => Promise<DocListsMergeResult>;
35779
+ split: (params: DocListsSplitParams, options?: InvokeOptions) => Promise<DocListsSplitResult>;
34826
35780
  setLevel: (params?: DocListsSetLevelParams, options?: InvokeOptions) => Promise<DocListsSetLevelResult>;
34827
35781
  setValue: (params?: DocListsSetValueParams, options?: InvokeOptions) => Promise<DocListsSetValueResult>;
34828
35782
  continuePrevious: (params?: DocListsContinuePreviousParams, options?: InvokeOptions) => Promise<DocListsContinuePreviousResult>;
@@ -34867,6 +35821,9 @@ export declare function createDocApi(runtime: RuntimeInvoker): {
34867
35821
  ranges: {
34868
35822
  resolve: (params: DocRangesResolveParams, options?: InvokeOptions) => Promise<DocRangesResolveResult>;
34869
35823
  };
35824
+ selection: {
35825
+ current: (params?: DocSelectionCurrentParams, options?: InvokeOptions) => Promise<DocSelectionCurrentResult>;
35826
+ };
34870
35827
  mutations: {
34871
35828
  preview: (params: DocMutationsPreviewParams, options?: InvokeOptions) => Promise<DocMutationsPreviewResult>;
34872
35829
  apply: (params: DocMutationsApplyParams, options?: InvokeOptions) => Promise<DocMutationsApplyResult>;
@@ -35315,6 +36272,8 @@ export declare function createBoundDocApi(runtime: RuntimeInvoker): {
35315
36272
  join: (params?: DocListsJoinBoundParams, options?: InvokeOptions) => Promise<DocListsJoinResult>;
35316
36273
  canJoin: (params?: DocListsCanJoinBoundParams, options?: InvokeOptions) => Promise<DocListsCanJoinResult>;
35317
36274
  separate: (params?: DocListsSeparateBoundParams, options?: InvokeOptions) => Promise<DocListsSeparateResult>;
36275
+ merge: (params: DocListsMergeBoundParams, options?: InvokeOptions) => Promise<DocListsMergeResult>;
36276
+ split: (params: DocListsSplitBoundParams, options?: InvokeOptions) => Promise<DocListsSplitResult>;
35318
36277
  setLevel: (params?: DocListsSetLevelBoundParams, options?: InvokeOptions) => Promise<DocListsSetLevelResult>;
35319
36278
  setValue: (params?: DocListsSetValueBoundParams, options?: InvokeOptions) => Promise<DocListsSetValueResult>;
35320
36279
  continuePrevious: (params?: DocListsContinuePreviousBoundParams, options?: InvokeOptions) => Promise<DocListsContinuePreviousResult>;
@@ -35359,6 +36318,9 @@ export declare function createBoundDocApi(runtime: RuntimeInvoker): {
35359
36318
  ranges: {
35360
36319
  resolve: (params: DocRangesResolveBoundParams, options?: InvokeOptions) => Promise<DocRangesResolveResult>;
35361
36320
  };
36321
+ selection: {
36322
+ current: (params?: DocSelectionCurrentBoundParams, options?: InvokeOptions) => Promise<DocSelectionCurrentResult>;
36323
+ };
35362
36324
  mutations: {
35363
36325
  preview: (params: DocMutationsPreviewBoundParams, options?: InvokeOptions) => Promise<DocMutationsPreviewResult>;
35364
36326
  apply: (params: DocMutationsApplyBoundParams, options?: InvokeOptions) => Promise<DocMutationsApplyResult>;